diff --git a/ngallery-example.yaml b/ngallery-example.yaml index abf37a8..e1bb7c5 100644 --- a/ngallery-example.yaml +++ b/ngallery-example.yaml @@ -1,12 +1,16 @@ ngallery: root: title: "NativeGallery" + showtitle: false logo: "/static/img/logosmall.png" description: "" keywords: "" maintenance: false debug: true botkey: '' + access: + type: 'allow' + countries: '' cloudflare-caching: false db: name: '' diff --git a/views/components/Navbar.php b/views/components/Navbar.php index 5bb7c43..35ed498 100644 --- a/views/components/Navbar.php +++ b/views/components/Navbar.php @@ -11,8 +11,10 @@ if (NGALLERY['root']['logo'] != null) { $logo = '/static/img/logosmall.png'; } -if (NGALLERY['root']['title'] != null) { +if (NGALLERY['root']['title'] != null && NGALLERY['root']['showtitle'] === true) { $title = NGALLERY['root']['title']; +} else if (NGALLERY['root']['showtitle'] === false) { + $title = ''; } else { $title = 'NativeGallery'; } diff --git a/views/pages/Main.php b/views/pages/Main.php index 5090919..7c8c59b 100644 --- a/views/pages/Main.php +++ b/views/pages/Main.php @@ -175,7 +175,7 @@ foreach ($photos as $pd) { '; ?> ")'> - '; +