From c50f228a1583fe694993778e8576322877a15bba Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Mon, 9 Jan 2017 08:25:01 +0545 Subject: Breadcrumb links support --- src/usr/local/www/guiconfig.inc | 19 ++++++++++++++++--- src/usr/local/www/head.inc | 2 +- 2 files changed, 17 insertions(+), 4 deletions(-) (limited to 'src/usr') diff --git a/src/usr/local/www/guiconfig.inc b/src/usr/local/www/guiconfig.inc index d4fc383..927e85f 100644 --- a/src/usr/local/www/guiconfig.inc +++ b/src/usr/local/www/guiconfig.inc @@ -492,15 +492,28 @@ function gentitle($title) { } } -function genhtmltitle($title) { +function genhtmltitle($title, $links=array()) { // If the array contains only one element, there are no breadcrumbs, so don't // add anything else if (count($title) > 1) { $bc = ''; diff --git a/src/usr/local/www/head.inc b/src/usr/local/www/head.inc index 6205772..8c3b223 100644 --- a/src/usr/local/www/head.inc +++ b/src/usr/local/www/head.inc @@ -514,7 +514,7 @@ if (are_notices_pending()) { print('
'); unset($notitle); } else { - print(genhtmltitle($pgtitle)); + print(genhtmltitle($pgtitle, $pglinks)); } ?>