// moved admin css and backward compatibility css to admin theme css directory
This commit is contained in:
@@ -1923,18 +1923,16 @@ class AdminControllerCore extends Controller
|
||||
$admin_webpath = str_ireplace(_PS_ROOT_DIR_, '', _PS_ADMIN_DIR_);
|
||||
$admin_webpath = preg_replace('/^'.preg_quote(DIRECTORY_SEPARATOR, '/').'/', '', $admin_webpath);
|
||||
|
||||
// Deprecated stylesheets
|
||||
if (!$this->bootstrap)
|
||||
{
|
||||
$this->addCSS(_PS_CSS_DIR_.'admin.css', 'all');
|
||||
$this->addCSS(__PS_BASE_URI__.$admin_webpath.'/themes/'.$this->bo_theme.'/css/backward/admin.css', 'all');
|
||||
}
|
||||
//Bootstrap v3.00 + Specific Admin Theme
|
||||
//Bootstrap v3.01 + Specific Admin Theme
|
||||
$this->addCSS(__PS_BASE_URI__.$admin_webpath.'/themes/'.$this->bo_theme.'/css/admin-theme.css', 'all');
|
||||
|
||||
// Reset bootstrap style for the #nobootstrap field - Backward compatibility
|
||||
$this->addCSS(_PS_CSS_DIR_.'bootstrap_admin_reset.css', 'all');
|
||||
|
||||
// Deprecated stylesheets + reset bootstrap style for the #nobootstrap field - Backward compatibility
|
||||
if (!$this->bootstrap)
|
||||
{
|
||||
$this->addCSS(__PS_BASE_URI__.$admin_webpath.'/themes/'.$this->bo_theme.'/css/backward/admin.css', 'all');
|
||||
$this->addCSS(__PS_BASE_URI__.$admin_webpath.'/themes/'.$this->bo_theme.'/css/backward/bootstrap_admin_reset.css', 'all');
|
||||
}
|
||||
|
||||
if ($this->context->language->is_rtl)
|
||||
$this->addCSS(_THEME_CSS_DIR_.'rtl.css');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user