mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Display Theme/Plugin update shortcode on dashboard only.
This commit is contained in:
@@ -63,7 +63,7 @@ if(in_array($pref['adminstyle'], array('infopanel', 'flexpanel')))
|
||||
}
|
||||
|
||||
|
||||
|
||||
define('e_ADMIN_HOME', true); // used by some admin shortcodes.
|
||||
|
||||
require_once(e_ADMIN.'boot.php');
|
||||
require_once(e_ADMIN.'auth.php');
|
||||
|
@@ -415,9 +415,9 @@ class admin_shortcodes
|
||||
|
||||
function sc_admin_latest($parm)
|
||||
{
|
||||
if(($parm == 'infopanel' || $parm == 'flexpanel') && e_PAGE != 'admin.php')
|
||||
if(($parm == 'infopanel' || $parm == 'flexpanel') && !deftrue('e_ADMIN_HOME'))
|
||||
{
|
||||
return;
|
||||
return null;
|
||||
}
|
||||
|
||||
if (ADMIN) {
|
||||
@@ -1110,7 +1110,7 @@ class admin_shortcodes
|
||||
|
||||
function sc_admin_status($parm)
|
||||
{
|
||||
if(($parm == 'infopanel' || $parm == 'flexpanel') && e_PAGE != 'admin.php')
|
||||
if(($parm == 'infopanel' || $parm == 'flexpanel') && !deftrue('e_ADMIN_HOME'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -1321,11 +1321,12 @@ Inverse 10 <span class="badge badge-inverse">10</span>
|
||||
|
||||
function sc_admin_addon_updates()
|
||||
{
|
||||
if(!getperms('0'))
|
||||
if(!getperms('0') || !deftrue('e_ADMIN_HOME'))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
$themes = $this->getUpdateable('theme');
|
||||
$plugins = $this->getUpdateable('plugin');
|
||||
|
||||
|
@@ -24,19 +24,9 @@ e107::library('load', 'bootstrap');
|
||||
e107::library('load', 'fontawesome');
|
||||
e107::library('load', 'bootstrap.editable');
|
||||
|
||||
|
||||
$adminStyle = e107::pref('core', 'admincss');
|
||||
|
||||
//e107::css('theme', 'css/bootstrap-dark.min.css');
|
||||
$adminStyle = e107::pref('core', 'admincss', 'css/bootstrap-dark.min.css');
|
||||
e107::css('theme', $adminStyle);
|
||||
e107::css('theme', 'admin_style.css');
|
||||
|
||||
if(!deftrue('e_DEBUG'))
|
||||
{
|
||||
e107::css('theme', 'admin_dark.css');
|
||||
}
|
||||
|
||||
|
||||
e107::css('theme', 'ie_all.css', null, 'all', "<!--[if IE]>", "<![endif]-->");
|
||||
|
||||
e107::css('inline', "
|
||||
|
Reference in New Issue
Block a user