mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Only display help icon when help text is present. Cron/Schedule page styling tweak.
This commit is contained in:
@@ -548,7 +548,7 @@ class cron_admin_form_ui extends e_admin_form_ui
|
|||||||
|
|
||||||
|
|
||||||
return "<a class='e-tip' href=''>".ADMIN_INFO_ICON."</a>
|
return "<a class='e-tip' href=''>".ADMIN_INFO_ICON."</a>
|
||||||
<div class='field-help>".$text."</div>";
|
<div class='field-help'>".$text."</div>";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -201,6 +201,7 @@ class admin_shortcodes extends e_shortcode
|
|||||||
$ns = e107::getRender();
|
$ns = e107::getRender();
|
||||||
$pref = e107::getPref();
|
$pref = e107::getPref();
|
||||||
$help_text = '';
|
$help_text = '';
|
||||||
|
$ret = '';
|
||||||
|
|
||||||
|
|
||||||
if(function_exists('e_help') && ($tmp = e_help())) // new in v2.x for non-admin-ui admin pages.
|
if(function_exists('e_help') && ($tmp = e_help())) // new in v2.x for non-admin-ui admin pages.
|
||||||
@@ -256,10 +257,13 @@ class admin_shortcodes extends e_shortcode
|
|||||||
$help_text .= ob_get_clean();
|
$help_text .= ob_get_clean();
|
||||||
}
|
}
|
||||||
|
|
||||||
$text = '<div class="sidebar-toggle-panel">'.$help_text.'</div>';
|
if(!empty($help_text))
|
||||||
$text .= $this->renderHelpIcon();
|
{
|
||||||
|
$ret = '<div class="sidebar-toggle-panel">'.$help_text.'</div>';
|
||||||
|
$ret .= $this->renderHelpIcon();
|
||||||
|
}
|
||||||
|
|
||||||
return $text;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function sc_admin_icon()
|
public function sc_admin_icon()
|
||||||
@@ -2654,6 +2658,7 @@ Inverse 10 <span class="badge badge-inverse">10</span>
|
|||||||
*/
|
*/
|
||||||
private function renderHelpIcon()
|
private function renderHelpIcon()
|
||||||
{
|
{
|
||||||
|
|
||||||
$text = '
|
$text = '
|
||||||
<ul class="nav nav-pills nav-stacked" style="position: absolute;bottom: 100px;">
|
<ul class="nav nav-pills nav-stacked" style="position: absolute;bottom: 100px;">
|
||||||
<li>
|
<li>
|
||||||
|
@@ -1617,5 +1617,5 @@ ul.col-selection > li a { border-bottom: 1px solid rgba(255,255,255,0.3); }
|
|||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-left-panel { max-width: 300px; }
|
#admin-cron .admin-left-panel { max-width: 300px; }
|
||||||
}
|
}
|
@@ -1636,5 +1636,5 @@ ul.col-selection { background-color: #FCFDFF; }
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.admin-left-panel { max-width: 300px; }
|
#admin-cron .admin-left-panel { max-width: 300px; }
|
||||||
}
|
}
|
Reference in New Issue
Block a user