public function menu(AddHandlerEvent $event) { $menu = [['name' => 'Experts only', 'icon' => 'glyphicon glyphicon-th-large', 'priority' => 'low', 'sub-menu' => [['name' => 'Cron jobs', 'href' => 'cron-jobs', 'icon' => 'glyphicon glyphicon-time', 'priority' => 'low']]]]; $event->addHandler($menu); }
public function admin(AddHandlerEvent $event) { $menu = [['name' => 'Mails', 'icon' => 'glyphicon glyphicon-envelope', 'priority' => 'highest', 'sub-menu' => [['name' => 'Auto responder', 'icon' => 'glyphicon glyphicon-retweet', 'priority' => 'high', 'href' => 'autoresponder/campaigns'], ['name' => 'Broadcast', 'icon' => 'glyphicon glyphicon-bullhorn', 'priority' => 'medium', 'href' => 'autoresponder/broadcast'], ['name' => 'Lists', 'icon' => 'glyphicon glyphicon-tasks', 'priority' => 'low', 'href' => 'autoresponder/lists']]]]; $event->addHandler($menu); }