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


PHP admin_tools::AdminPanelLinks方法代码示例

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


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

示例1: GetAdminPanel

 /**
  * Output the main admin toolbar
  * @static
  */
 static function GetAdminPanel()
 {
     global $page, $gpAdmin;
     //don't send the panel when it's a gpreq=json request
     if (!self::$show_toolbar) {
         return;
     }
     $reqtype = common::RequestType();
     if ($reqtype != 'template' && $reqtype != 'admin') {
         return;
     }
     $class = '';
     $position = '';
     if (common::RequestType() != 'admin') {
         $position = ' style="top:' . max(-10, $gpAdmin['gpui_ty']) . 'px;left:' . max(-10, $gpAdmin['gpui_tx']) . 'px"';
         if (isset($gpAdmin['gpui_cmpct']) && $gpAdmin['gpui_cmpct']) {
             $class = ' compact';
             if ($gpAdmin['gpui_cmpct'] === 2) {
                 $class = ' compact min';
             } elseif ($gpAdmin['gpui_cmpct'] === 3) {
                 $class = ' minb';
             }
         }
     }
     $class = ' class="keep_viewable' . $class . '"';
     echo "\n\n";
     echo '<div id="simplepanel"' . $class . $position . '><div>';
     //toolbar
     echo '<div class="toolbar">';
     echo '<a class="toggle_panel" data-cmd="toggle_panel"></a>';
     echo common::Link('', '<i class="gpicon_home"></i>');
     echo common::Link('Admin', '<i class="gpicon_admin"></i>');
     echo common::Link('special_gpsearch', '<i class="gpicon_search"></i>', '', array('data-cmd' => 'gpabox'));
     echo '<a class="extra admin_arrow_out"></a>';
     echo '</div>';
     admin_tools::AdminPanelLinks(true);
     echo '</div></div>';
     //end simplepanel
     echo "\n\n";
 }
开发者ID:Bomberus,项目名称:gpEasy-CMS,代码行数:44,代码来源:admin_tools.php

示例2: AdminPanel

 /**
  * Show the default admin page
  *
  */
 function AdminPanel()
 {
     global $langmessage;
     $cmd = common::GetCommand();
     switch ($cmd) {
         case 'embededcheck':
             includeFile('tool/update.php');
             new update_class('embededcheck');
             return;
         case 'autocomplete-titles':
             $opts = array('var_name' => false);
             echo gp_edit::AutoCompleteValues(false, $opts);
             die;
     }
     $this->head_js[] = '/include/js/auto_width.js';
     echo '<h2>' . $langmessage['administration'] . '</h2>';
     echo '<div id="adminlinks2">';
     admin_tools::AdminPanelLinks(false);
     echo '</div>';
 }
开发者ID:jdearaujo,项目名称:gpEasy-CMS,代码行数:24,代码来源:admin_display.php

示例3: AdminPanel

 /**
  * Show the default admin page
  *
  */
 function AdminPanel()
 {
     global $langmessage;
     $cmd = common::GetCommand();
     switch ($cmd) {
         case 'embededcheck':
             $this->EmbededCheck();
             return;
     }
     echo '<div id="adminlinks2" class="cf">';
     admin_tools::AdminPanelLinks(false);
     //resources
     echo '<div class="panelgroup">';
     echo '<span class="icon_page_gear"><span>' . $langmessage['resources'] . ' (gpEasy.com)</span></span>';
     echo '<ul>';
     echo '<li>' . common::Link('Admin_Addons', $langmessage['Download Plugins'], 'cmd=remote') . '</li>';
     echo '<li>' . common::Link('Admin_Theme_Content', $langmessage['Download Themes'], 'cmd=remote') . '</li>';
     echo '<li><a href="http://gpeasy.com">Support Forum</a></li>';
     echo '<li><a href="http://gpeasy.com/Special_Services">Service Providers</a></li>';
     echo '<li><a href="http://gpeasy.com">Official gpEasy Site</a></li>';
     echo '<li><a href="https://sourceforge.net/tracker/?group_id=264307&amp;atid=1127698">Report A Bug (sf.net)</a></li>';
     echo '</ul>';
     echo '</div>';
     echo '</div>';
     echo '<div id="adminfooter">';
     echo '<ul>';
     echo '<li>';
     echo 'WYSIWYG editor by  <a href="http://ckeditor.com/">CKEditor.net</a>';
     echo '</li>';
     echo '<li>';
     echo 'Galleries made possible by <a href="http://colorpowered.com/colorbox/">ColorBox</a>';
     echo '</li>';
     echo '<li>';
     echo 'Icons by <a href="http://www.famfamfam.com/">famfamfam.com</a>';
     echo '</li>';
     echo '</ul>';
     echo '</div>';
 }
开发者ID:rizub4u,项目名称:gpEasy-CMS,代码行数:42,代码来源:admin_display.php

示例4: GetAdminPanel

 /**
  * Output the main admin toolbar
  * @param array $new_versions Data about newly available versions of gpEasy and addons
  * @static
  */
 function GetAdminPanel($new_versions)
 {
     global $page, $gpAdmin, $config;
     //don't send the panel when it's a gpreq=json request
     if (!empty($_REQUEST['gpreq'])) {
         return;
     }
     $class = '';
     if (isset($gpAdmin['gpui_cmpct']) && $gpAdmin['gpui_cmpct']) {
         $class = ' compact';
         if ($gpAdmin['gpui_cmpct'] === 2) {
             $class = ' compact min';
         } elseif ($gpAdmin['gpui_cmpct'] === 3) {
             $class = ' minb';
         }
     }
     $class = ' class="keep_viewable' . $class . '"';
     $position = ' style="top:' . max(-10, $gpAdmin['gpui_ty']) . 'px;left:' . max(-10, $gpAdmin['gpui_tx']) . 'px"';
     echo "\n\n";
     echo '<div id="simplepanel"' . $class . $position . '><div>';
     //toolbar
     echo '<div class="toolbar cf">';
     echo '<a href="#" class="toggle_panel" name="toggle_panel" ></a>';
     echo common::Link('Admin_Main', '', '', 'class="icon_admin_home"');
     echo '<span class="extra admin_arrow_out"></span>';
     echo '</div>';
     admin_tools::AdminPanelLinks(true, $new_versions);
     echo '</div></div>';
     //end simplepanel
     echo "\n\n";
     admin_tools::InlineEditArea();
 }
开发者ID:rizub4u,项目名称:gpEasy-CMS,代码行数:37,代码来源:admin_tools.php


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