コード例 #1
0
ファイル: admin_menu.php プロジェクト: ZyXelP/oxwall
 public function onBeforeRender()
 {
     parent::onBeforeRender();
     /* @var $menuItem BASE_MenuItem */
     foreach ($this->menuItems as $menuItem) {
         if ($menuItem->isActive()) {
             $this->active = true;
         }
     }
 }
コード例 #2
0
ファイル: top_menu.php プロジェクト: ecki/oxwall
 public function onBeforeRender()
 {
     parent::onBeforeRender();
     $event = new BASE_CLASS_EventCollector('base.mobile_top_menu_add_options');
     OW::getEventManager()->trigger($event);
     $data = $event->getData();
     $optionsArray = array();
     foreach ($data as $item) {
         $optionsArray[$item['prefix'] . $item['key']] = array('url' => isset($item['url']) ? trim($item['url']) : null);
     }
     foreach ($this->assignedVars['data'] as $key => $dataItem) {
         if (!empty($optionsArray[$dataItem['prefix'] . $dataItem['key']]['url'])) {
             $this->assignedVars['data'][$key]['addUrl'] = $optionsArray[$dataItem['prefix'] . $dataItem['key']]['url'];
         }
     }
 }
コード例 #3
0
ファイル: responsive_menu.php プロジェクト: ZyXelP/oxwall
 public function onBeforeRender()
 {
     $this->initStatic();
     $this->assign("uniqId", $this->uniqId);
     parent::onBeforeRender();
 }