/** * 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"; }
/** * 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>'; }
/** * 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>'; }
/** * 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(); }