本文整理汇总了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";
}
示例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>';
}
示例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&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>';
}
示例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();
}