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


PHP HtmlPage::generateSubMenu方法代碼示例

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


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

示例1: generateUserMenu

    function generateUserMenu()
    {
        $menu = HtmlPage::generateSubMenu();
        $menu .= '
            <li ' . ($this->startswith($this->id, 'exercises/my_propose_list') ? 'class= "active"' : '') . '><a href="' . RessourceManager::getInnerUrl('exercises/my_propose_list') . '/">' . _('My proposed exercises') . '</a></li>

            ';
        return $menu;
    }
開發者ID:niavok,項目名稱:perroquet-website,代碼行數:9,代碼來源:exercise_page.php

示例2: generateSubMenu

 function generateSubMenu()
 {
     $menu = HtmlPage::generateSubMenu();
     $menu .= '
         <li ' . ($this->startswith($this->id, 'documentation/installation') ? 'class= "active"' : '') . '><a href="' . RessourceManager::getInnerUrl('documentation/installation/index') . '/">' . _('Installation') . '</a></li>
         <li ' . ($this->startswith($this->id, 'documentation/use') ? 'class= "active"' : '') . '><a href="' . RessourceManager::getInnerUrl('documentation/use/index') . '/">' . _('Use perroquet') . '</a></li>
         <li ' . ($this->startswith($this->id, 'documentation/help') ? 'class= "active"' : '') . '><a href="' . RessourceManager::getInnerUrl('documentation/help/index') . '/">' . _('Help tools') . '</a></li>
         <li ' . ($this->startswith($this->id, 'documentation/repositories') ? 'class= "active"' : '') . '><a href="' . RessourceManager::getInnerUrl('documentation/repositories/index') . '/">' . _('Reporitories') . '</a></li>
         <li ' . ($this->startswith($this->id, 'documentation/exercise_creation') ? 'class= "active"' : '') . '><a href="' . RessourceManager::getInnerUrl('documentation/exercise_creation/index') . '/">' . _('Exercise creation') . '</a></li>
         <li ' . ($this->startswith($this->id, 'documentation/development') ? 'class= "active"' : '') . '><a href="' . RessourceManager::getInnerUrl('documentation/development/index') . '/">' . _('Development') . '</a></li>
         ';
     return $menu;
 }
開發者ID:niavok,項目名稱:perroquet-website,代碼行數:13,代碼來源:documentation_page.php


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