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


PHP admin_tools::GetFrequentlyUsed方法代码示例

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


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

示例1: AdminPanelLinks


//.........这里部分代码省略.........
     if ($links = admin_tools::GetAdminGroup('settings')) {
         echo '<div class="panelgroup" id="panelgroup_settings' . $id_piece . '">';
         self::PanelHeading($in_panel, $langmessage['Settings'], 'icon_edapp', 'set');
         echo '<ul class="submenu">';
         echo '<li class="submenu_top"><a class="submenu_top">' . $langmessage['Settings'] . '</a></li>';
         echo $links;
         echo '</ul>';
         echo '</div>';
         echo '</div>';
     }
     //updates
     if (count(self::$new_versions) > 0) {
         ob_start();
         if (gp_remote_update && isset(self::$new_versions['core'])) {
             echo '<li>';
             echo '<a href="' . common::GetDir('/include/install/update.php') . '">gpEasy ' . self::$new_versions['core'] . '</a>';
             echo '</li>';
         }
         foreach (self::$new_versions as $addon_id => $new_addon_info) {
             if (!is_numeric($addon_id)) {
                 continue;
             }
             $label = $new_addon_info['name'] . ':  ' . $new_addon_info['version'];
             if ($new_addon_info['type'] == 'theme' && gp_remote_themes) {
                 $url = 'Themes';
             } elseif ($new_addon_info['type'] == 'plugin' && gp_remote_plugins) {
                 $url = 'Plugins';
             } else {
                 continue;
             }
             echo '<li><a href="' . addon_browse_path . '/' . $url . '/' . $addon_id . '" data-cmd="remote">' . $label . '</a></li>';
         }
         $list = ob_get_clean();
         if (!empty($list)) {
             echo '<div class="panelgroup" id="panelgroup_versions' . $id_piece . '">';
             self::PanelHeading($in_panel, $langmessage['updates'], 'icon_rfrsh', 'upd');
             echo '<ul class="submenu">';
             echo '<li class="submenu_top"><a class="submenu_top">' . $langmessage['updates'] . '</a></li>';
             echo $list;
             echo '</ul>';
             echo '</div>';
             echo '</div>';
         }
     }
     //username
     echo '<div class="panelgroup" id="panelgroup_user' . $id_piece . '">';
     self::PanelHeading($in_panel, $gpAdmin['useralias'], 'icon_user', 'use');
     echo '<ul class="submenu">';
     echo '<li class="submenu_top"><a class="submenu_top">' . $gpAdmin['username'] . '</a></li>';
     admin_tools::GetFrequentlyUsed($in_panel);
     echo '<li>';
     echo common::Link('Admin_Preferences', $langmessage['Preferences']);
     echo '</li>';
     echo '<li>';
     echo common::Link($page->title, $langmessage['logout'], 'cmd=logout', array('data-cmd' => 'creq'));
     echo '</li>';
     echo '<li>';
     echo common::Link('Admin_About', 'About gpEasy');
     echo '</li>';
     echo '</ul>';
     echo '</div>';
     echo '</div>';
     //gpEasy stats
     echo '<div class="panelgroup" id="panelgroup_gpeasy' . $id_piece . '">';
     self::PanelHeading($in_panel, $langmessage['Performance'], 'icon_chart', 'gpe');
     echo '<ul class="submenu">';
     echo '<li class="submenu_top"><a class="submenu_top">' . $langmessage['Performance'] . '</a></li>';
     echo '<li><a><span gpeasy-memory-usage>?</span> Memory</a></li>';
     echo '<li><a><span gpeasy-memory-max>?</span> Max Memory</a></li>';
     echo '<li><a><span gpeasy-seconds>?</span> Seconds</a></li>';
     echo '<li><a><span gpeasy-ms>?</span> Milliseconds</a></li>';
     echo '<li><a>0 DB Queries</a></li>';
     echo '</ul>';
     echo '</div>';
     echo '</div>';
     //resources
     if ($page->pagetype === 'admin_display') {
         echo '<div class="panelgroup" id="panelgroup_resources' . $id_piece . '">';
         self::PanelHeading($in_panel, $langmessage['resources'], 'icon_page_gear', 'res');
         echo '<ul class="submenu">';
         if (gp_remote_plugins && admin_tools::HasPermission('Admin_Addons')) {
             echo '<li>' . common::Link('Admin_Addons/Remote', $langmessage['Download Plugins']) . '</li>';
         }
         if (gp_remote_themes && admin_tools::HasPermission('Admin_Theme_Content')) {
             echo '<li>' . common::Link('Admin_Theme_Content/Remote', $langmessage['Download Themes']) . '</li>';
         }
         echo '<li><a href="http://gpeasy.com/Forum">Support Forum</a></li>';
         echo '<li><a href="http://gpeasy.com/Services">Service Providers</a></li>';
         echo '<li><a href="http://gpeasy.com">Official gpEasy Site</a></li>';
         echo '<li><a href="https://github.com/oyejorge/gpEasy-CMS/issues">Report A Bug</a></li>';
         echo '</ul>';
         echo '</div>';
         echo '</div>';
         if ($in_panel) {
             echo '<div class="gpversion">';
             echo 'gpEasy ' . gpversion;
             echo '</div>';
         }
     }
 }
开发者ID:Bomberus,项目名称:gpEasy-CMS,代码行数:101,代码来源:admin_tools.php

示例2: AdminPanelLinks


//.........这里部分代码省略.........
         echo '</div>';
         echo '</div>';
     }
     //settings
     if ($links = admin_tools::GetAdminGroup('settings')) {
         echo '<div class="panelgroup">';
         $label = '<span>' . $langmessage['Settings'] . '</span>';
         if (!$in_panel) {
             echo '<span class="icon_cog">' . $label . '</span>';
             echo '<div class="panelgroup2">';
         } else {
             echo '<a class="toplink icon_cog" name="toplink" rel="set">';
             echo $label;
             echo '</a>';
             if ($gpAdmin['gpui_vis'] == 'set') {
                 echo '<div class="panelgroup2 in_window">';
             } else {
                 echo '<div class="panelgroup2 in_window nodisplay">';
             }
         }
         echo '<ul class="submenu">';
         echo '<li class="submenu_top"><a class="submenu_top">' . $langmessage['Settings'] . '</a></li>';
         echo $links;
         echo '</ul>';
         echo '</div>';
         echo '</div>';
     }
     //updates
     if (count($new_versions) > 0) {
         echo '<div class="panelgroup">';
         $label = '<span>' . $langmessage['updates'] . '</span>';
         if (!$in_panel) {
             echo '<span class="icon_rfrsh">' . $label . '</span>';
             echo '<div class="panelgroup2">';
         } else {
             echo '<a class="toplink icon_rfrsh" name="toplink" rel="upd">';
             echo $label;
             echo '</a>';
             if ($gpAdmin['gpui_vis'] == 'upd') {
                 echo '<div class="panelgroup2 in_window">';
             } else {
                 echo '<div class="panelgroup2 in_window nodisplay">';
             }
         }
         echo '<ul class="submenu">';
         echo '<li class="submenu_top"><a class="submenu_top">' . $langmessage['updates'] . '</a></li>';
         if (isset($new_versions['core'])) {
             echo '<li>';
             echo '<a href="' . common::GetDir('/include/install/update.php') . '">gpEasy ' . $new_versions['core'] . '</a>';
             echo '</li>';
         }
         foreach ($new_versions as $addon_id => $new_addon_info) {
             if (!is_numeric($addon_id)) {
                 continue;
             }
             $label = $new_addon_info['name'] . ':  ' . $new_addon_info['version'];
             if ($new_addon_info['type'] == 'theme') {
                 echo '<li>' . common::Link('Admin_Theme_Content', $label, 'cmd=remote') . '</li>';
             } elseif ($new_addon_info['type'] == 'plugin') {
                 echo '<li>' . common::Link('Admin_Addons', $label, 'cmd=remote') . '</li>';
             } else {
                 continue;
             }
         }
         echo '</ul>';
         echo '</div>';
         echo '</div>';
     }
     //username
     echo '<div class="panelgroup">';
     $label = '<span>' . $gpAdmin['username'] . '</span>';
     if (!$in_panel) {
         echo '<span class="icon_user">' . $label . '</span>';
         echo '<div class="panelgroup2">';
     } else {
         echo '<a class="toplink icon_user" name="toplink" rel="use">';
         echo $label;
         echo '</a>';
         if ($gpAdmin['gpui_vis'] == 'use') {
             echo '<div class="panelgroup2 in_window">';
         } else {
             echo '<div class="panelgroup2 in_window nodisplay">';
         }
     }
     echo '<ul class="submenu">';
     echo '<li class="submenu_top"><a class="submenu_top">' . $gpAdmin['username'] . '</a></li>';
     admin_tools::GetFrequentlyUsed($in_panel);
     echo '<li>';
     echo common::Link('Admin_Preferences', $langmessage['Preferences'], '', 'name="gpabox"');
     echo '</li>';
     echo '<li>';
     echo common::Link($page->title, $langmessage['logout'], 'cmd=logout', ' name="creq" ');
     echo '</li>';
     echo '<li>';
     echo common::Link('Admin_About', 'About gpEasy', '', ' name="gpabox" ');
     echo '</li>';
     echo '</ul>';
     echo '</div>';
     echo '</div>';
 }
开发者ID:rizub4u,项目名称:gpEasy-CMS,代码行数:101,代码来源:admin_tools.php


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