mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Add a way to show status/log icons by the help icon. Define $statusurl and/or $logurl in the same manner as $pgtitle and if the variables are defined and not empty, the shortcut icons will appear. Ticket #623.
This commit is contained in:
parent
67252466b8
commit
c2e23f7b4b
@ -408,9 +408,17 @@ function add_to_menu($url, $name) {
|
||||
|
||||
<div>
|
||||
<span class="pgtitle"><?=genhtmltitle($pgtitle);?></font></span>
|
||||
<?php if(! $g['disablehelpicon']): ?>
|
||||
<span style="float:right; margin: 0 0 20px 20px;"><a href="<?php echo $helpurl; ?>" target="_new" title="Help for items on this page."><img src="/themes/<?php echo $g['theme']; ?>/images/help.png" border="0"></a></span>
|
||||
<span style="float:right; margin: 0 0 20px 20px;">
|
||||
<?php if(! empty($statusurl)): ?>
|
||||
<a href="<?php echo $statusurl; ?>" target="_new" title="Status of items on this page."><img src="/themes/<?php echo $g['theme']; ?>/images/status.png" border="0"></a>
|
||||
<?php endif; ?>
|
||||
<?php if(! empty($logurl)): ?>
|
||||
<a href="<?php echo $logurl; ?>" target="_new" title="Log entries for items on this page."><img src="/themes/<?php echo $g['theme']; ?>/images/log.png" border="0"></a>
|
||||
<?php endif; ?>
|
||||
<?php if(! $g['disablehelpicon']): ?>
|
||||
<a href="<?php echo $helpurl; ?>" target="_new" title="Help for items on this page."><img src="/themes/<?php echo $g['theme']; ?>/images/help.png" border="0"></a>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user