diff options
author | jim-p <jimp@pfsense.org> | 2010-06-01 15:24:27 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-06-01 15:24:27 -0400 |
commit | c2e23f7b4b36bde9965d209f5cd5fd8b80bb03ce (patch) | |
tree | 62858e3f66755d1decf48aec4a96697cd2ba9903 /usr | |
parent | 67252466b83d24e512c3abeb7cc7c266dd2619f0 (diff) | |
download | pfsense-c2e23f7b4b36bde9965d209f5cd5fd8b80bb03ce.zip pfsense-c2e23f7b4b36bde9965d209f5cd5fd8b80bb03ce.tar.gz |
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.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/fbegin.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usr/local/www/fbegin.inc b/usr/local/www/fbegin.inc index 5f02b69..acdd9b8 100755 --- a/usr/local/www/fbegin.inc +++ b/usr/local/www/fbegin.inc @@ -408,9 +408,17 @@ function add_to_menu($url, $name) { <div> <span class="pgtitle"><?=genhtmltitle($pgtitle);?></font></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']): ?> -<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> +<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 /> |