當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CMenu::run方法代碼示例

本文整理匯總了PHP中CMenu::run方法的典型用法代碼示例。如果您正苦於以下問題:PHP CMenu::run方法的具體用法?PHP CMenu::run怎麽用?PHP CMenu::run使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CMenu的用法示例。


在下文中一共展示了CMenu::run方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: run

 /**
  * Run the widget
  */
 public function run()
 {
     $this->publishAssets();
     $this->registerClientScripts();
     $this->registerCssFile($this->cssFile);
     $htmlOptions['id'] = 'nav-container';
     echo CHtml::openTag('div', $htmlOptions) . "\n";
     $htmlOptions['id'] = 'nav-bar';
     echo CHtml::openTag('div', $htmlOptions) . "\n";
     parent::run();
     echo CHtml::closeTag('div');
     echo CHtml::closeTag('div');
 }
開發者ID:prayagKhanal,項目名稱:menubuilder,代碼行數:16,代碼來源:MbMenu.php

示例2: run

    public function run()
    {
        $items = $this->items;
        foreach ($items as $item) {
            $this->items = $item['items'];
            if (count($this->items) == 0) {
                continue;
            }
            echo '<div class="panel panel-default">
              <a class="panel-heading collapsed" href="#smm-' . $item['id_object'] . '" data-toggle="collapse">' . $item['label'] . '</a>
              <div id="smm-' . $item['id_object'] . '" class="collapse panel-collapse">';
            parent::run();
            echo '
              </div>
            </div>
';
        }
    }
開發者ID:Cranky4,項目名稱:npfs,代碼行數:18,代碼來源:MainMenuWidget.php

示例3: run

 function run()
 {
     if (array_key_exists('class', $this->htmlOptions)) {
         $this->htmlOptions['class'] .= " sf-menu";
     } else {
         $this->htmlOptions['class'] = " sf-menu";
     }
     $cs = Yii::app()->getClientScript();
     $id = $this->getId();
     $assets = Yii::app()->getAssetManager()->publish(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'assets');
     $cs->registerCssFile($assets . '/css/superfish.css');
     if ($this->vertical) {
         $cs->registerCssFile($assets . '/css/superfish-vertical.css');
         $this->htmlOptions['class'] .= " sf-vertical";
     }
     if ($this->navbar) {
         $cs->registerCssFile($assets . '/css/superfish-navbar.css');
         $this->htmlOptions['class'] .= " sf-navbar";
     }
     if ($this->hoverIntent) {
         $cs->registerScriptFile($assets . '/js/hoverIntent.js');
     }
     $cs->registerScriptFile($assets . '/js/superfish.js');
     $options = $this->makeOptions();
     $js = "jQuery('#{$id}')";
     if ($this->supersubs['enable']) {
         $cs->registerScriptFile($assets . '/js/supersubs.js');
         //make subpersubs options
         $supersubsOptions = CJavaScript::encode($this->supersubs['options']);
         $js .= ".supersubs({$supersubsOptions})";
     }
     $js .= ".superfish({$options});";
     $cs->registerScript(__CLASS__ . '#' . $id, $js);
     parent::run();
 }
開發者ID:prayagKhanal,項目名稱:menubuilder,代碼行數:35,代碼來源:RSuperfish.php

示例4: run

 /**
  * Run the widget
  */
 public function run()
 {
     $this->publishAssets();
     $this->registerClientScripts();
     parent::run();
 }
開發者ID:buildshop,項目名稱:bs-common,代碼行數:9,代碼來源:MenuCategoryShop.php

示例5: run

 /**
  * Menu running
  */
 public function run()
 {
     return parent::run();
 }
開發者ID:rash012,項目名稱:cms,代碼行數:7,代碼來源:OutMenu.php

示例6: run

 /**
  * Run the widget.
  */
 public function run()
 {
     $this->registerClientScripts();
     $this->registerCssFile();
     parent::run();
 }
開發者ID:RamaKavanan,項目名稱:InitialVersion,代碼行數:9,代碼來源:MbMenu.php

示例7: run

 /**
  * Run the widget
  */
 public function run()
 {
     $this->publishAssets();
     $this->registerClientScripts();
     $this->registerCssFile($this->cssFile);
     $htmlOptions['id'] = 'nav-container';
     echo CHtml::openTag('div', $htmlOptions) . "\n";
     $htmlOptions['id'] = 'nav-bar';
     echo CHtml::openTag('div', $htmlOptions) . "\n";
     parent::run();
     $q = isset($_GET['q']) ? $_GET['q'] : '';
     echo CHtml::textField('q', $q, array('class' => 'input-small search-query pull-right', 'placeholder' => 'Pesquisa', 'id' => 'sq'));
     echo CHtml::closeTag('div');
     echo CHtml::closeTag('div');
 }
開發者ID:elikristina,項目名稱:portalcegov,代碼行數:18,代碼來源:MbMenu.php

示例8: run

 public function run()
 {
     if ($this->baseTemplate == null) {
         parent::run();
     } else {
         ob_start();
         ob_implicit_flush(false);
         parent::run();
         echo strtr($this->baseTemplate, array('{menu}' => ob_get_clean()));
     }
 }
開發者ID:kot-ezhva,項目名稱:ygin,代碼行數:11,代碼來源:MenuWidget.php

示例9: run

 public function run()
 {
     parent::run();
 }
開發者ID:raphaelrocha,項目名稱:mtcontrool_mtcontext,代碼行數:4,代碼來源:EBootstrapNavigation.php

示例10: run

 public function run()
 {
     parent::run();
     echo EBootstrap::closeTag('div');
 }
開發者ID:raphaelrocha,項目名稱:mtcontrool_mtcontext,代碼行數:5,代碼來源:EBootstrapSidebar.php

示例11: run

 /**
  * Runs the menu widget.
  */
 public function run()
 {
     parent::run();
     $id = $this->getId();
     Yii::app()->clientScript->registerScript(__CLASS__ . '#' . $id, "\r\n\t\t\tjQuery('#{$id} .dropdown-toggle').bind('click', function() {\r\n\t\t\t\t\$(this).parent().toggleClass('open');\r\n\t\t\t});\r\n\t\t");
 }
開發者ID:vangogogo,項目名稱:justsns,代碼行數:9,代碼來源:BootMenu.php


注:本文中的CMenu::run方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。