mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 22:27:34 +02:00
Switch styling
This commit is contained in:
@@ -2322,16 +2322,15 @@ class e_form
|
|||||||
$options_off = array_merge($options, array('class' => 'e-expandit-off'));
|
$options_off = array_merge($options, array('class' => 'e-expandit-off'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(deftrue('e_DEBUG') && e_ADMIN_AREA === true && empty($label_enabled) && empty($label_disabled))
|
if(deftrue('e_DEBUG') && e_ADMIN_AREA === true)
|
||||||
{
|
{
|
||||||
$options['switch'] = 'small';
|
$options['switch'] = 'small';
|
||||||
$options['wrapperClass'] = 'wrapper form-control';
|
$options['wrapperClass'] = 'wrapper form-control';
|
||||||
$label_enabled = strtoupper(LAN_ON);
|
$label_enabled = ($label_enabled) ? strtoupper($label_enabled) : strtoupper(LAN_ON);
|
||||||
$label_disabled = strtoupper(LAN_OFF);
|
$label_disabled = ($label_disabled) ? strtoupper($label_disabled): strtoupper(LAN_OFF);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$options_on['label'] = $label_enabled ? defset($label_enabled, $label_enabled) : LAN_ENABLED;
|
$options_on['label'] = $label_enabled ? defset($label_enabled, $label_enabled) : LAN_ENABLED;
|
||||||
$options_off['label'] = $label_disabled ? defset($label_disabled, $label_disabled) : LAN_DISABLED;
|
$options_off['label'] = $label_disabled ? defset($label_disabled, $label_disabled) : LAN_DISABLED;
|
||||||
|
|
||||||
|
@@ -223,6 +223,7 @@ a.tweet_action { font-size:8px }
|
|||||||
|
|
||||||
.bootstrap-switch .bootstrap-switch-label { background: inherit }
|
.bootstrap-switch .bootstrap-switch-label { background: inherit }
|
||||||
.bootstrap-switch.form-control { padding:0; height:auto }
|
.bootstrap-switch.form-control { padding:0; height:auto }
|
||||||
|
td.center .bootstrap-switch.form-control { margin-left: auto; margin-right: auto; }
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user