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

Commit

Permalink
user interface: added config swtich to hide the home button on the re…
Browse files Browse the repository at this point in the history
…sults screen
  • Loading branch information
jacques42 committed Jun 10, 2021
1 parent 2434343 commit 99cde05
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@

<!-- Result Page -->
<div class="stages rotarygroup" id="result">

<?php if ($config['button']['homescreen']): ?>
<a href="#" class="<?php echo $btnClass1; ?> homebtn rotaryfocus"><i class="fa fa-home"></i> <span data-i18n="home"></span></a>
<?php endif; ?>

<div class="resultInner hidden">
<?php if ($config['gallery']['enabled']): ?>
<a href="#" class="<?php echo $btnClass1; ?> gallery-button rotaryfocus" ><i class="fa <?php echo $galleryIcon; ?>"></i> <span data-i18n="gallery"></span></a>
Expand Down
6 changes: 6 additions & 0 deletions lib/configsetup.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -1524,6 +1524,12 @@
'name' => 'button[show_fs]',
'value' => $config['button']['show_fs'],
],
'button_homescreen' => [
'view' => 'advanced',
'type' => 'checkbox',
'name' => 'button[homescreen]',
'value' => $config['button']['homescreen'],
],
'ui_font_size' => [
'view' => 'advanced',
'type' => 'input',
Expand Down
2 changes: 2 additions & 0 deletions resources/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@
"manual:userinterface:background_admin": "CSS Style for background on admin panel.",
"manual:userinterface:background_chroma": "CSS Style for background on chromakeying page.",
"manual:userinterface:background_defaults": "CSS Style for background on start-, login- and slideshow pages.",
"manual:userinterface:button_homescreen": "If disabled, the home button on the results screen will be hidden.",
"manual:userinterface:button_show_fs": "If enabled, a button to toggle fullscreenmode will be added to the start screen.",
"manual:userinterface:ui_decore_lines": "If enabled, decorate lines will be visible on start page.",
"manual:userinterface:ui_font_size": "Enter the default font size used for the Photobooth interface.",
Expand Down Expand Up @@ -519,6 +520,7 @@
"userinterface:background_admin": "Admin panel background image path",
"userinterface:background_chroma": "Chroma keying panel background image path",
"userinterface:background_defaults": "Background image path",
"userinterface:button_homescreen": "Show home button on results screen",
"userinterface:button_show_fs": "Show button to toggle fullscreen",
"userinterface:colors_background_countdown": "Countdown background color",
"userinterface:colors_border": "Border color",
Expand Down

0 comments on commit 99cde05

Please sign in to comment.