mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 12:20:44 +02:00
Renamed bootstrap flag e_BOOTSTRAP to BOOTSTRAP. Set e_BOOTSTRAP as path of bootstrap folder.
This commit is contained in:
@@ -517,7 +517,7 @@ class e107_db_debug {
|
||||
|
||||
|
||||
$inc = array(
|
||||
'HEADERF','FOOTERF','FILE_UPLOADS','FLOODPROTECT','FLOODTIMEOUT','CHARSET',
|
||||
'BOOTSTRAP','HEADERF','FOOTERF','FILE_UPLOADS','FLOODPROTECT','FLOODTIMEOUT','CHARSET',
|
||||
'GUESTS_ONLINE','MEMBERS_ONLINE','PAGE_NAME','STANDARDS_MODE','TIMEOFFSET',
|
||||
'TOTAL_ONLINE','THEME','THEME_ABS','THEME_LAYOUT','THEME_STYLE','META_OG','META_DESCRIPTION','MPREFIX','VIEWPORT','BODYTAG','CSSORDER'
|
||||
);
|
||||
|
@@ -1663,9 +1663,9 @@ class e107
|
||||
*/
|
||||
public static function css($type, $data, $dep = null, $media = 'all', $preComment = '', $postComment = '', $dependence = null)
|
||||
{
|
||||
if((strstr($data,'bootstrap.css') || strstr($data,'bootstrap.min.css')) && !defined("e_BOOTSTRAP")) // detect bootstrap is enabled. - used in nextprev.sc and forum currently.
|
||||
if((strstr($data,'bootstrap.css') || strstr($data,'bootstrap.min.css')) && !defined("BOOTSTRAP")) // detect bootstrap is enabled. - used in nextprev.sc and forum currently.
|
||||
{
|
||||
define("e_BOOTSTRAP", true);
|
||||
define("BOOTSTRAP", true);
|
||||
}
|
||||
|
||||
$jshandler = e107::getJs();
|
||||
@@ -3007,6 +3007,10 @@ class e107
|
||||
define('e_AVATAR_UPLOAD_ABS', $this->get_override_http('AVATARS_UPLOAD'));
|
||||
define('e_AVATAR_DEFAULT_ABS', $this->get_override_http('AVATARS_DEFAULT'));
|
||||
|
||||
// Special
|
||||
|
||||
define('e_BOOTSTRAP', e_WEB."bootstrap/");
|
||||
|
||||
|
||||
}
|
||||
return $this;
|
||||
|
@@ -58,7 +58,7 @@ class emailprint
|
||||
|
||||
|
||||
|
||||
if(deftrue('e_BOOTSTRAP'))
|
||||
if(deftrue('BOOTSTRAP'))
|
||||
{
|
||||
$genericMail = "<i class='icon-envelope'></i>";
|
||||
$genericPrint = "<i class='icon-print'></i>";
|
||||
|
@@ -825,7 +825,7 @@ class e_form
|
||||
*/
|
||||
public function progressBar($name,$value,$options=array())
|
||||
{
|
||||
if(!deftrue('e_BOOTSTRAP'))
|
||||
if(!deftrue('BOOTSTRAP'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -1537,7 +1537,7 @@ class e_form
|
||||
*/
|
||||
public function button($name, $value, $action = 'submit', $label = '', $options = array())
|
||||
{
|
||||
if(deftrue('e_BOOTSTRAP') && $action == 'dropdown' && is_array($value))
|
||||
if(deftrue('BOOTSTRAP') && $action == 'dropdown' && is_array($value))
|
||||
{
|
||||
// $options = $this->format_options('admin_button', $name, $options);
|
||||
$options['class'] = vartrue($options['class']);
|
||||
|
@@ -713,7 +713,7 @@ class e107_user_extended
|
||||
|
||||
$label = deftrue($label, $label);
|
||||
|
||||
if(deftrue('e_BOOTSTRAP'))
|
||||
if(deftrue('BOOTSTRAP'))
|
||||
{
|
||||
$ret .= $frm->radio($fname,$val,($curval == $val),array('label'=>$label));
|
||||
}
|
||||
@@ -749,7 +749,7 @@ class e107_user_extended
|
||||
}
|
||||
$label = deftrue($label, $label);
|
||||
|
||||
if(deftrue('e_BOOTSTRAP'))
|
||||
if(deftrue('BOOTSTRAP'))
|
||||
{
|
||||
$ret .= $frm->checkbox($fname,$val,($curval == $val),array('label'=>$label));
|
||||
}
|
||||
|
Reference in New Issue
Block a user