diff --git a/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in b/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in index f660e5bcf..1aba8dbac 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in +++ b/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in @@ -1578,6 +1578,20 @@ our @options = ( type => $types{string}, category => 'web', }, + { + name => 'ZM_HOME_ABOUT', + default => 'yes', + description => 'Whether enable the ZoneMinder About menu.', + help => q` + When enabled, the ZoneMinder logo in the top left corner of the + navigation bar becomes a menu with links to: the ZoneMinder + website, ZoneMinder Documentation, and the ZoneMinder forum. + End users wishing to rebrand their system may want to disable this + as the menu items are currently hard coded. + `, + type => $types{boolean}, + category => 'web', + }, { name => 'ZM_WEB_CONSOLE_BANNER', default => '', diff --git a/web/skins/classic/includes/functions.php b/web/skins/classic/includes/functions.php index 4723f3054..9c25a7703 100644 --- a/web/skins/classic/includes/functions.php +++ b/web/skins/classic/includes/functions.php @@ -605,11 +605,21 @@ function getZMVersionHTML() { return $result; } -// Returns the html representing the ZoneMinder logo +// Returns the html representing the ZoneMinder logo and about menu function getNavBrandHTML() { $result = ''; - + + $zm_home_about = true; + if ( $zm_home_about ) { + $result .= 'ZoneMinder'.PHP_EOL; + $result .= '
'.PHP_EOL; + } else { $result .= '' .ZM_HOME_CONTENT. ''.PHP_EOL; + } return $result; }