当前位置: 首页>>代码示例>>PHP>>正文


PHP admin_tools::GetAddonTitles方法代码示例

本文整理汇总了PHP中admin_tools::GetAddonTitles方法的典型用法代码示例。如果您正苦于以下问题:PHP admin_tools::GetAddonTitles方法的具体用法?PHP admin_tools::GetAddonTitles怎么用?PHP admin_tools::GetAddonTitles使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在admin_tools的用法示例。


在下文中一共展示了admin_tools::GetAddonTitles方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: GetAddonSubLinks

 /**
  * Return a formatted list of links associated with $addon
  * @return string
  */
 static function GetAddonSubLinks($addon = false)
 {
     global $config;
     $special_links = admin_tools::GetAddonTitles($addon);
     $admin_links = admin_tools::GetAddonComponents($config['admin_links'], $addon);
     $result = '';
     foreach ($special_links as $linkName => $linkInfo) {
         $result .= '<li>';
         $result .= common::Link($linkName, $linkInfo['label']);
         $result .= '</li>';
     }
     foreach ($admin_links as $linkName => $linkInfo) {
         if (admin_tools::HasPermission($linkName)) {
             $result .= '<li>';
             $result .= common::Link($linkName, $linkInfo['label']);
             $result .= '</li>';
         }
     }
     return $result;
 }
开发者ID:Bomberus,项目名称:gpEasy-CMS,代码行数:24,代码来源:admin_tools.php

示例2: AddonPanel_Special

 function AddonPanel_Special($addon_key, $format)
 {
     $sublinks = admin_tools::GetAddonTitles($addon_key);
     $this->AdminLinkList($sublinks, 'Special Links', $format);
 }
开发者ID:VTAMAGNO,项目名称:gpEasy-CMS,代码行数:5,代码来源:admin_addons_tool.php

示例3: ShowAddon

 function ShowAddon($addon = false)
 {
     global $config, $langmessage;
     if ($addon === false) {
         $addon =& $_REQUEST['addon'];
     }
     if (!isset($config['addons'][$addon])) {
         message($langmessage['OOPS'] . '(s1)');
         $this->Select();
         return;
     }
     $cmd = common::GetCommand();
     switch ($cmd) {
         case 'enable':
         case 'disable':
             $this->GadgetVisibility($addon, $cmd);
             break;
             /*
             			case 'changeinstall':
             				$this->ChangeInstallType($addon);
             			break;
             
             			case 'changeinstall_confirmed':
             				$this->ChangeInstallConfirmed($addon);
             			break;
             */
     }
     $this->FindForm();
     echo '<h2 class="hmargin">';
     echo common::Link('Admin_Addons', $langmessage['Manage Plugins']);
     echo ' &#187; ';
     echo $config['addons'][$addon]['name'];
     echo '</h2>';
     echo '<table class="bordered" style="width:90%">';
     //show Special Links
     $sublinks = admin_tools::GetAddonTitles($addon);
     if (!empty($sublinks)) {
         echo '<tr><th>';
         echo 'Special Links';
         echo '</th>';
         echo '<th>';
         echo $langmessage['options'];
         echo '</th></tr>';
         foreach ($sublinks as $linkName => $linkInfo) {
             echo '<tr><td>';
             echo common::Link($linkName, $linkInfo['label']);
             echo '</td>';
             echo '<td>';
             echo '-';
             echo '</td></tr>';
         }
     }
     //show Admin Links
     $sublinks = admin_tools::GetAddonComponents($config['admin_links'], $addon);
     if (!empty($sublinks)) {
         echo '<tr><th>';
         echo 'Admin Links';
         echo '</th>';
         echo '<th>';
         echo $langmessage['options'];
         echo '</th></tr>';
         foreach ($sublinks as $linkName => $linkInfo) {
             echo '<tr><td>';
             echo common::Link($linkName, $linkInfo['label']);
             echo '</td>';
             echo '<td>';
             echo '-';
             echo '</td></tr>';
         }
     }
     //show Gadgets
     $gadgets = admin_tools::GetAddonComponents($config['gadgets'], $addon);
     if (is_array($gadgets) && count($gadgets) > 0) {
         echo '<tr><th>';
         echo $langmessage['gadgets'];
         echo '</th>';
         echo '<th>';
         echo $langmessage['options'];
         echo '</th></tr>';
         foreach ($gadgets as $name => $value) {
             echo '<tr><td>';
             echo str_replace('_', ' ', $name);
             echo '</td><td>';
             if (isset($value['disabled'])) {
                 echo common::Link('Admin_Addons', $langmessage['enable'], 'cmd=enable&addon=' . $addon . '&gadget=' . rawurlencode($name), ' name="creq" ');
                 echo ' - ';
                 echo '<b>' . $langmessage['disabled'] . '</b>';
             } else {
                 echo ' <b>' . $langmessage['enabled'] . '</b>';
                 echo ' - ';
                 echo common::Link('Admin_Addons', $langmessage['disable'], 'cmd=disable&addon=' . $addon . '&gadget=' . rawurlencode($name), ' name="creq" ');
             }
             echo '</td></tr>';
         }
     }
     //editable text
     if (isset($config['addons'][$addon]['editable_text']) && admin_tools::HasPermission('Admin_Theme_Content')) {
         echo '<tr><th>';
         echo $langmessage['editable_text'];
         echo '</th>';
//.........这里部分代码省略.........
开发者ID:rizub4u,项目名称:gpEasy-CMS,代码行数:101,代码来源:admin_addons.php

示例4: AddonPanel_Special

 function AddonPanel_Special($addon_key)
 {
     //show Special Links
     $sublinks = admin_tools::GetAddonTitles($addon_key);
     if (!empty($sublinks)) {
         echo '<li class="expand_child_click">';
         echo '<a>Special Links (' . count($sublinks) . ')</a>';
         $this->AdminLinkList($sublinks);
         echo '</li>';
     }
 }
开发者ID:GedionChang,项目名称:gpEasy-CMS,代码行数:11,代码来源:admin_addons_tool.php


注:本文中的admin_tools::GetAddonTitles方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。