當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。