1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 17:39:46 +01:00

Only display help icon when help text is present. Cron/Schedule page styling tweak.

This commit is contained in:
Cameron 2021-02-05 12:57:08 -08:00
parent c2c0979b3a
commit 2f8d880998
4 changed files with 11 additions and 6 deletions

View File

@ -548,7 +548,7 @@ class cron_admin_form_ui extends e_admin_form_ui
return "<a class='e-tip' href=''>".ADMIN_INFO_ICON."</a>
<div class='field-help>".$text."</div>";
<div class='field-help'>".$text."</div>";
}

View File

@ -201,6 +201,7 @@ class admin_shortcodes extends e_shortcode
$ns = e107::getRender();
$pref = e107::getPref();
$help_text = '';
$ret = '';
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();
}
$text = '<div class="sidebar-toggle-panel">'.$help_text.'</div>';
$text .= $this->renderHelpIcon();
if(!empty($help_text))
{
$ret = '<div class="sidebar-toggle-panel">'.$help_text.'</div>';
$ret .= $this->renderHelpIcon();
}
return $text;
return $ret;
}
public function sc_admin_icon()
@ -2654,6 +2658,7 @@ Inverse 10 <span class="badge badge-inverse">10</span>
*/
private function renderHelpIcon()
{
$text = '
<ul class="nav nav-pills nav-stacked" style="position: absolute;bottom: 100px;">
<li>

View File

@ -1617,5 +1617,5 @@ ul.col-selection > li a { border-bottom: 1px solid rgba(255,255,255,0.3); }
vertical-align: top;
}
.admin-left-panel { max-width: 300px; }
#admin-cron .admin-left-panel { max-width: 300px; }
}

View File

@ -1636,5 +1636,5 @@ ul.col-selection { background-color: #FCFDFF; }
}
.admin-left-panel { max-width: 300px; }
#admin-cron .admin-left-panel { max-width: 300px; }
}