mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Preparations for a bootstrap3 admin area.
This commit is contained in:
@@ -272,11 +272,11 @@ class adminstyle_infopanel
|
||||
echo $mes->render().'
|
||||
|
||||
<!-- INFOPANEL -->
|
||||
<div class="span6">
|
||||
<div class="span6 col-md-6">
|
||||
<ul class="thumbnails">'.$text.'</ul>
|
||||
</div>
|
||||
|
||||
<div class="span6">
|
||||
<div class="span6 col-md-6">
|
||||
<ul class="thumbnails">'.$text2.'</ul>
|
||||
</div>
|
||||
|
||||
|
@@ -232,12 +232,25 @@ class e_jsmanager
|
||||
|
||||
if($this->isInAdmin()) // Include jquery-ui in the admin-area only - Jquery-UI to eventually be removed from e107 completely if possible.
|
||||
{
|
||||
$this->_libraries['jquery'] = array(
|
||||
|
||||
if(isset($_SERVER['E_B3_ADMIN']) && $_SERVER['E_B3_ADMIN'] === 'true') // Test with a Bootstrap 3 admin area.
|
||||
{
|
||||
$this->_libraries['jquery'] = array(
|
||||
"http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js",
|
||||
"https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js",
|
||||
"https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css",
|
||||
// "http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js",
|
||||
// "http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/themes/base/jquery-ui.css",
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->_libraries['jquery'] = array(
|
||||
"http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js",
|
||||
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/jquery-ui.min.js",
|
||||
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.1/themes/base/jquery-ui.css",
|
||||
);
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user