1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-14 17:42:10 +02:00

Improved check for Bootstrap3

This commit is contained in:
Cameron 2013-12-24 02:24:14 -08:00
parent 7ac3f78dbf
commit 2e7232aa9a
4 changed files with 6 additions and 6 deletions

View File

@ -101,7 +101,7 @@ class news_cat_ui extends e_admin_ui
'category_meta_description' => array('title'=> LAN_DESCRIPTION, 'type' => 'textarea', 'width' => 'auto', 'thclass' => 'left','readParms' => 'expand=...&truncate=150&bb=1', 'readonly'=>FALSE),
'category_meta_keywords' => array('title'=> LAN_KEYWORDS, 'type' => 'text', 'width' => 'auto', 'thclass' => 'left', 'readonly'=>FALSE),
'category_sef' => array('title'=> LAN_SEFURL, 'type' => 'text', 'width' => 'auto', 'readonly'=>FALSE), // Display name
'category_sef' => array('title'=> LAN_SEFURL, 'type' => 'text', 'inline'=>true, 'width' => 'auto', 'readonly'=>FALSE), // Display name
'category_manager' => array('title'=> "Manage Permissions",'type' => 'userclass', 'inline'=>true, 'width' => 'auto', 'data' => 'int','batch'=>TRUE, 'filter'=>TRUE),
'category_order' => array('title'=> LAN_ORDER, 'type' => 'text', 'width' => 'auto', 'thclass' => 'right', 'class'=> 'right' ),
'options' => array('title'=> LAN_OPTIONS, 'type' => null, 'width' => '10%', 'forced'=>TRUE, 'thclass' => 'center last', 'class' => 'center', 'sort' => true)

View File

@ -2678,7 +2678,7 @@ class e_parser
$cls = str_replace('icon-', 'fa fa-', $cls);
}
$text = (deftrue('BOOTSTRAP') == 3) ? "<span class='".$cls."'></span>" : "<i class='".$cls."'></i>"; // retain space.
$text = (deftrue('BOOTSTRAP') === 3) ? "<span class='".$cls."'></span>" : "<i class='".$cls."'></i>"; // retain space.
$text .= ($space !== false) ? $space : "";
return $text;

View File

@ -200,7 +200,7 @@ class e_form
$options['class'] = "tbox";
}
if(deftrue('BOOTSTRAP') == 3)
if(deftrue('BOOTSTRAP') === 3)
{
$options['class'] = 'form-control';
}
@ -1631,7 +1631,7 @@ class e_form
}
}
$sep = (deftrue('BOOTSTRAP') == 3) ? "" : "<span class='divider'>/</span>";
$sep = (deftrue('BOOTSTRAP') === 3) ? "" : "<span class='divider'>/</span>";
$text .= implode($sep."</li><li>",$opt);
@ -1937,7 +1937,7 @@ class e_form
// 'multiple' => false, - see case 'select'
);
$form_control = (deftrue('BOOTSTRAP') == 3) ? ' form-control' : '';
$form_control = (deftrue('BOOTSTRAP') === 3) ? ' form-control' : '';
switch ($type) {
case 'hidden':

View File

@ -60,7 +60,7 @@ $userMethods = e107::getUserSession();
require_once (e_HANDLER.'ren_help.php');
if(deftrue('BOOTSTRAP')==3)
if(deftrue('BOOTSTRAP')===3)
{
$template = e107::getCoreTemplate('usersettings','', true, true); // always merge