Skip to content
This repository was archived by the owner on Aug 27, 2022. It is now read-only.

Commit 99cde05

Browse files
committed
user interface: added config swtich to hide the home button on the results screen
1 parent 2434343 commit 99cde05

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

index.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@
114114

115115
<!-- Result Page -->
116116
<div class="stages rotarygroup" id="result">
117+
118+
<?php if ($config['button']['homescreen']): ?>
117119
<a href="#" class="<?php echo $btnClass1; ?> homebtn rotaryfocus"><i class="fa fa-home"></i> <span data-i18n="home"></span></a>
120+
<?php endif; ?>
121+
118122
<div class="resultInner hidden">
119123
<?php if ($config['gallery']['enabled']): ?>
120124
<a href="#" class="<?php echo $btnClass1; ?> gallery-button rotaryfocus" ><i class="fa <?php echo $galleryIcon; ?>"></i> <span data-i18n="gallery"></span></a>

lib/configsetup.inc.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,6 +1524,12 @@
15241524
'name' => 'button[show_fs]',
15251525
'value' => $config['button']['show_fs'],
15261526
],
1527+
'button_homescreen' => [
1528+
'view' => 'advanced',
1529+
'type' => 'checkbox',
1530+
'name' => 'button[homescreen]',
1531+
'value' => $config['button']['homescreen'],
1532+
],
15271533
'ui_font_size' => [
15281534
'view' => 'advanced',
15291535
'type' => 'input',

resources/lang/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@
384384
"manual:userinterface:background_admin": "CSS Style for background on admin panel.",
385385
"manual:userinterface:background_chroma": "CSS Style for background on chromakeying page.",
386386
"manual:userinterface:background_defaults": "CSS Style for background on start-, login- and slideshow pages.",
387+
"manual:userinterface:button_homescreen": "If disabled, the home button on the results screen will be hidden.",
387388
"manual:userinterface:button_show_fs": "If enabled, a button to toggle fullscreenmode will be added to the start screen.",
388389
"manual:userinterface:ui_decore_lines": "If enabled, decorate lines will be visible on start page.",
389390
"manual:userinterface:ui_font_size": "Enter the default font size used for the Photobooth interface.",
@@ -519,6 +520,7 @@
519520
"userinterface:background_admin": "Admin panel background image path",
520521
"userinterface:background_chroma": "Chroma keying panel background image path",
521522
"userinterface:background_defaults": "Background image path",
523+
"userinterface:button_homescreen": "Show home button on results screen",
522524
"userinterface:button_show_fs": "Show button to toggle fullscreen",
523525
"userinterface:colors_background_countdown": "Countdown background color",
524526
"userinterface:colors_border": "Border color",

0 commit comments

Comments
 (0)