mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Tool-tip placement options added to admin prefs. (Applies to Admin-ui areas only)
Admin styling tweaks.
This commit is contained in:
parent
5671fbb557
commit
82fbeab43c
@ -166,24 +166,24 @@ class system_tools
|
||||
$this->_utf8_exclude = array(MPREFIX."core");
|
||||
|
||||
$this->_options = array(
|
||||
"db_update" => array('diz'=>DBLAN_15, 'label'=>DBLAN_16),
|
||||
"verify_sql" => array('diz'=>DBLAN_4, 'label'=>DBLAN_5),
|
||||
'optimize_sql' => array('diz'=>DBLAN_6, 'label'=> DBLAN_7),
|
||||
'plugin_scan' => array('diz'=>DBLAN_28, 'label'=> DBLAN_29),
|
||||
'pref_editor' => array('diz'=>DBLAN_19, 'label'=> DBLAN_20),
|
||||
"db_update" => array('diz'=>DBLAN_15, 'label'=>DBLAN_16, 'icon'=>'fas-angle-double-up.glyph'),
|
||||
"verify_sql" => array('diz'=>DBLAN_4, 'label'=>DBLAN_5, 'icon'=>'fas-database.glyph'),
|
||||
'optimize_sql' => array('diz'=>DBLAN_6, 'label'=> DBLAN_7, 'icon'=>'fas-wrench.glyph'),
|
||||
'plugin_scan' => array('diz'=>DBLAN_28, 'label'=> DBLAN_29, 'icon'=>'fas-plug.glyph'),
|
||||
'pref_editor' => array('diz'=>DBLAN_19, 'label'=> DBLAN_20, 'icon'=>'fas-edit.glyph'),
|
||||
// 'backup_core' => array('diz'=>DBLAN_8, 'label'=> DBLAN_9),
|
||||
// 'verify_sql_record' => array('diz'=>DBLAN_35, 'label'=> DBLAN_36),
|
||||
'importForm' => array('diz'=>DBLAN_59, 'label'=> DBLAN_59),
|
||||
'exportForm' => array('diz'=>DBLAN_58, 'label'=> DBLAN_58),
|
||||
'sc_override_scan' => array('diz'=>DBLAN_55, 'label'=> DBLAN_56),
|
||||
'convert_to_utf8' => array('diz'=>DBLAN_64,'label'=>DBLAN_65),
|
||||
'correct_perms' => array('diz'=>DBLAN_66,'label'=>DBLAN_67),
|
||||
'importForm' => array('diz'=>DBLAN_59, 'label'=> DBLAN_59, 'icon'=>'fas-file-import.glyph'),
|
||||
'exportForm' => array('diz'=>DBLAN_58, 'label'=> DBLAN_58, 'icon'=>'fas-file-export.glyph'),
|
||||
'sc_override_scan' => array('diz'=>DBLAN_55, 'label'=> DBLAN_56, 'icon'=>'fas-search.glyph'),
|
||||
'convert_to_utf8' => array('diz'=>DBLAN_64,'label'=>DBLAN_65, 'icon'=>'fas-language.glyph'),
|
||||
'correct_perms' => array('diz'=>DBLAN_66,'label'=>DBLAN_67, 'icon'=>'fas-folder.glyph'),
|
||||
'backup' => array('diz'=>DBLAN_68,'label'=>DBLAN_69, 'icon'=>'fas-archive.glyph')
|
||||
);
|
||||
|
||||
if(deftrue('e_DEVELOPER'))
|
||||
{
|
||||
$this->_options['multisite'] = array('diz'=>"<span class='label label-warning'>".DBLAN_114."</span>", 'label'=> 'Multi-Site' );
|
||||
$this->_options['multisite'] = array('diz'=>"<span class='label label-warning'>".DBLAN_114."</span>", 'label'=> 'Multi-Site' , 'icon'=>'fas-clone.glyph');
|
||||
$this->_options['github'] = array('diz'=>"<span class='label label-warning'>".DBLAN_114."</span> ".DBLAN_115."", 'label'=> DBLAN_112, 'icon'=>'fab-github.glyph' );
|
||||
}
|
||||
|
||||
@ -1032,7 +1032,8 @@ class system_tools
|
||||
private function render_options()
|
||||
{
|
||||
|
||||
$mes = e107::getMessage();
|
||||
$mes = e107::getMessage();
|
||||
$tp = e107::getParser();
|
||||
|
||||
$text = "
|
||||
<form method='post' action='".e_SELF."' id='core-db-main-form'>
|
||||
@ -1052,7 +1053,7 @@ class system_tools
|
||||
{
|
||||
|
||||
$text .= "<div class='pull-left' style='width:50%;padding-bottom:10px'>
|
||||
<a class='btn btn-default btn-secondary btn-large pull-left' style='margin-right:10px' href='".e_SELF."?mode=".$key."' title=\"".$val['label']."\">".ADMIN_EXECUTE_ICON."</a>
|
||||
<a class='btn btn-default btn-secondary btn-lg btn-large pull-left' style='margin-right:10px' href='".e_SELF."?mode=".$key."' title=\"".$val['label']."\">".$tp->toGlyph($val['icon'], ['fw'=>true])."</a>
|
||||
<h4 style='margin-bottom:3px'><a href='".e_SELF."?mode=".$key."' title=\"".$val['label']."\">".$val['label']."</a></h4><small>".$val['diz']."</small>
|
||||
</div>";
|
||||
|
||||
|
@ -690,6 +690,12 @@ $text .= "
|
||||
".$frm->radio_switch('admin_collapse_sidebar', varset($pref['admin_collapse_sidebar']))."
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for='admin-collapse-sidebar'>".PRFLAN_285."</label></td>
|
||||
<td>
|
||||
".$frm->radio('admin_helptip_location',['-1'=> LAN_DISABLED, '0' => PRFLAN_286, '1' => PRFLAN_287], varset($pref['admin_helptip_location']))."
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
<core name="admin_separate_plugins">0</core>
|
||||
<core name="admin_collapse_sidebar">0</core>
|
||||
<core name="admin_navbar_labels">0</core>
|
||||
<core name="admin_helptip_location">1</core>
|
||||
<core name="admincode">0</core>
|
||||
<core name="admincss">css/modern-light.css</core>
|
||||
<core name="adminlanguage"></core>
|
||||
|
@ -7326,6 +7326,11 @@ var_dump($select_options);*/
|
||||
$required_help = false;
|
||||
$hidden_fields = array();
|
||||
|
||||
|
||||
$helpTipLocation = (int) e107::getPref('admin_helptip_location');
|
||||
$help = '';
|
||||
|
||||
|
||||
foreach($fdata['fields'] as $key => $att)
|
||||
{
|
||||
if($tab !== false && varset($att['tab'], 0) !== $tab)
|
||||
@ -7350,8 +7355,11 @@ var_dump($select_options);*/
|
||||
parse_str($parms, $parms);
|
||||
}
|
||||
$label = !empty($att['note']) ? '<div class="label-note">'.deftrue($att['note'], $att['note']).'</div>' : '';
|
||||
$help = !empty($att['help']) ? '<div class="field-help" data-placement="left">'.deftrue($att['help'], $att['help']).'</div>' : '';
|
||||
|
||||
if($helpTipLocation !== -1) // -1 = help disabled.
|
||||
{
|
||||
$help = !empty($att['help']) ? '<div class="field-help" data-placement="left">'.deftrue($att['help'], $att['help']).'</div>' : '';
|
||||
}
|
||||
|
||||
$valPath = trim(vartrue($att['dataPath'], $key), '/');
|
||||
$keyName = $key;
|
||||
@ -7436,8 +7444,10 @@ var_dump($select_options);*/
|
||||
}
|
||||
|
||||
$leftCell = "<span{$required_class}>".defset(vartrue($att['title']), vartrue($att['title'])). '</span>' .$required.$label;
|
||||
$rightCell = $this->renderElement($keyName, $model->getIfPosted($valPath), $att, varset($model_required[$key], array()), $model->getId()). ' ' .$help;
|
||||
|
||||
$leftCell .= (!empty($help) && $helpTipLocation === 1) ? "<i class='admin-ui-help-tip far fa-question-circle'><!-- --></i>".$help : '';
|
||||
$rightCell = $this->renderElement($keyName, $model->getIfPosted($valPath), $att, varset($model_required[$key], array()), $model->getId()). ' '.$help;
|
||||
$rightCell .= (!empty($help) && $helpTipLocation === 0) ? $help : '';
|
||||
$att['writeParms'] = $writeParms;
|
||||
|
||||
$text .= $this->renderCreateFieldRow($leftCell, $rightCell, $att);
|
||||
|
@ -305,4 +305,7 @@ define("PRFLAN_281", "The 2 links above are used on various page on this site (e
|
||||
define("PRFLAN_282", "Session Save Method");
|
||||
|
||||
define("PRFLAN_283", "Display navigation-bar labels");
|
||||
define("PRFLAN_284", "Collapse navigation side-bar by default");
|
||||
define("PRFLAN_284", "Collapse navigation side-bar by default");
|
||||
define("PRFLAN_285", "Display field help tips");
|
||||
define("PRFLAN_286", "When hovering over the field.");
|
||||
define("PRFLAN_287", "When hovering on a help icon to the left of the field.");
|
||||
|
@ -88,7 +88,8 @@ a.core-mainpanel-link-icon:hover { text-decoration: none; filter: none; }
|
||||
#core-admin-log-list-form .fa-exclamation-circle { color: #FAA732 }
|
||||
#core-admin-log-list-form .fa-warning { color: #ee5f5b }
|
||||
|
||||
|
||||
.admin-ui-help-tip { padding-top: 5px; font-size: 18px; cursor: help; color: rgb(192, 192, 192,0.5); float: right; }
|
||||
.admin-ui-help-tip:hover { color: #5bc0de; }
|
||||
/*
|
||||
|
||||
#admin-ui-carousel .carousel-inner { min-height: 65vh; }
|
||||
|
@ -908,11 +908,11 @@ select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.i
|
||||
.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#2f2f2f;border-color:#77acd9}
|
||||
.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}
|
||||
.nav>li>a>img{max-width:none}
|
||||
.nav-tabs{border-bottom:1px solid #999}
|
||||
.nav-tabs{border-bottom:1px solid rgba(255,255,255,0.2);}
|
||||
.nav-tabs>li{float:left;margin-bottom:-1px}
|
||||
.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}
|
||||
.nav-tabs>li>a:hover{border-color:#999}
|
||||
.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#fff;background-color:#373737;border:1px solid #999;border-bottom-color:transparent;cursor:default}
|
||||
.nav-tabs>li>a:hover{border-color:rgba(255,255,255,0.2);border-bottom-color:rgba(255,255,255,0.15);}
|
||||
.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#fff;background-color:#373737;border:1px solid rgba(255,255,255,0.15);border-bottom-color:transparent;cursor:default}
|
||||
.nav-tabs.nav-justified{width:100%;border-bottom:0}
|
||||
.nav-tabs.nav-justified>li{float:none}
|
||||
.nav-tabs.nav-justified>li>a{text-align:center;margin-bottom:5px;margin-right:0;border-radius:4px}
|
||||
@ -1523,7 +1523,7 @@ thead tr{background-color:#363636;background-image:linear-gradient(to bottom,#44
|
||||
.bootstrap-select.btn-group .dropdown-menu .optgroup-div{color:#363636}
|
||||
.btn-primary>[class^=icon-],.dropdown-menu>.active>a>[class*=" icon-"],.dropdown-menu>.active>a>[class^=icon-],.dropdown-menu>li>a:hover>[class*=" icon-"],.dropdown-menu>li>a:hover>[class^=icon-],.dropdown-submenu:hover>a>[class*=" icon-"],.dropdown-submenu:hover>a>[class^=icon-],.icon-white,.nav-list>.active>a>[class*=" icon-"],.nav-list>.active>a>[class^=icon-],.nav-pills>.active>a>[class*=" icon-"],.nav-pills>.active>a>[class^=icon-],.nav-tabs>li>a>[class^=icon-],.navbar-inverse .nav>.active>a>[class*=" icon-"],.navbar-inverse .nav>.active>a>[class^=icon-],h1>[class^=icon-],h2>[class^=icon-],h3>[class^=icon-],h4>[class^=icon-],h5>[class^=icon-]{background-image:none}
|
||||
#admin-ui-nav-menu a.link-active{color:#fff}
|
||||
.tab-content{background-color:#373737}
|
||||
.tab-content{background-color:#373737; border-left:1px solid rgba(255,255,255,0.1); border-right:1px solid rgba(255,255,255,0.1);border-bottom:1px solid rgba(255,255,255,0.1); border-bottom-left-radius: 4px;border-bottom-right-radius: 4px;border-top-right-radius: 4px;}
|
||||
input:invalid:focus,select:invalid:focus,textarea:invalid:focus{border-color:red;box-shadow:0 1px 1px 0 rgba(255,0,0,.75) inset}
|
||||
td.forumheader{background-image:linear-gradient(#303030,#212121 60%,#171717);filter:none}
|
||||
|
||||
|
@ -87,7 +87,7 @@ var e107 = e107 || {'settings': {}, 'behaviors': {}};
|
||||
e107.behaviors.fieldHelpTooltip = {
|
||||
attach: function (context, settings)
|
||||
{
|
||||
var selector = 'div.tbox,div.checkboxes,input,textarea,select,label,.e-tip,div.form-control';
|
||||
var selector = '.admin-ui-help-tip,div.tbox,div.checkboxes,input,textarea,select,label,.e-tip,div.form-control';
|
||||
|
||||
$(context).find(selector).once('field-help-tooltip').each(function ()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user