mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Bootstrap3 admin is now the default.
This commit is contained in:
@@ -88,6 +88,7 @@ class admin_start
|
|||||||
$this->checkIncompatiblePlugins();
|
$this->checkIncompatiblePlugins();
|
||||||
$this->checkFileTypes();
|
$this->checkFileTypes();
|
||||||
$this->checkSuspiciousFiles();
|
$this->checkSuspiciousFiles();
|
||||||
|
$this->checkDeprecated();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -147,6 +148,40 @@ class admin_start
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function checkDeprecated()
|
||||||
|
{
|
||||||
|
$deprecated = array(
|
||||||
|
e_ADMIN."ad_links.php",
|
||||||
|
e_PLUGIN."tinymce4/e_meta.php", e_THEME."bootstrap3/css/bootstrap_dark.css",
|
||||||
|
e_PLUGIN."search_menu/languages/English.php",
|
||||||
|
e_LANGUAGEDIR."English/lan_parser_functions.php",
|
||||||
|
e_HANDLER."np_class.php",
|
||||||
|
e_CORE."shortcodes/single/user_extended.sc",
|
||||||
|
e_ADMIN."download.php"
|
||||||
|
);
|
||||||
|
|
||||||
|
$found = array();
|
||||||
|
foreach($deprecated as $path)
|
||||||
|
{
|
||||||
|
if(file_exists($path))
|
||||||
|
{
|
||||||
|
$found[] = $path;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!empty($found))
|
||||||
|
{
|
||||||
|
$text = "The following old files can be safely deleted from your system: ";
|
||||||
|
$text .= "<ul><li>".implode("</li><li>", $found)."</li></ul>";
|
||||||
|
|
||||||
|
e107::getMessage()->addWarning($text);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function checkFileTypes()
|
function checkFileTypes()
|
||||||
{
|
{
|
||||||
|
@@ -26,7 +26,7 @@ define('e_CAPTCHA_FONTCOLOR','#F9A533');
|
|||||||
$core = e107::getConfig('core');
|
$core = e107::getConfig('core');
|
||||||
if($core->get('admintheme') != 'bootstrap' && $core->get('admintheme') != 'bootstrap3')
|
if($core->get('admintheme') != 'bootstrap' && $core->get('admintheme') != 'bootstrap3')
|
||||||
{
|
{
|
||||||
$core->update('admintheme','bootstrap');
|
$core->update('admintheme','bootstrap3');
|
||||||
$core->update('adminstyle','infopanel');
|
$core->update('adminstyle','infopanel');
|
||||||
$core->update('admincss','admin_dark.css');
|
$core->update('admincss','admin_dark.css');
|
||||||
$core->set('e_jslib_core',array('prototype' => 'none', 'jquery'=> 'auto'));
|
$core->set('e_jslib_core',array('prototype' => 'none', 'jquery'=> 'auto'));
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
<core name="adminlanguage"></core>
|
<core name="adminlanguage"></core>
|
||||||
<core name="adminpwordchange">0</core>
|
<core name="adminpwordchange">0</core>
|
||||||
<core name="adminstyle">infopanel</core>
|
<core name="adminstyle">infopanel</core>
|
||||||
<core name="admintheme">bootstrap</core>
|
<core name="admintheme">bootstrap3</core>
|
||||||
<core name="allowCommentEdit">0</core>
|
<core name="allowCommentEdit">0</core>
|
||||||
<core name="allowEmailLogin">2</core>
|
<core name="allowEmailLogin">2</core>
|
||||||
<core name="anon_post">0</core>
|
<core name="anon_post">0</core>
|
||||||
|
@@ -53,7 +53,7 @@ a.core-mainpanel-link-icon:hover { text-decoration: none; filter: none; }
|
|||||||
|
|
||||||
.carousel-indicators { top:10px; max-width: 200px; height: 40px; margin-left: 100px; }
|
.carousel-indicators { top:10px; max-width: 200px; height: 40px; margin-left: 100px; }
|
||||||
|
|
||||||
li.divider { padding-top: 10px; border-bottom: 1px outset #262626; margin-bottom: 10px; }
|
#admin-ui-nav-menu li.divider { padding-top: 10px; border-bottom: 1px outset #262626; margin-bottom: 10px; }
|
||||||
|
|
||||||
/* TODO - use col-xx-x markup where core-mainpanel-block occurs. ? */
|
/* TODO - use col-xx-x markup where core-mainpanel-block occurs. ? */
|
||||||
@media (max-width: 1700px){
|
@media (max-width: 1700px){
|
||||||
|
Reference in New Issue
Block a user