diff --git a/ngallery-example.yaml b/ngallery-example.yaml index 17021fe..7c4e227 100644 --- a/ngallery-example.yaml +++ b/ngallery-example.yaml @@ -1,5 +1,7 @@ ngallery: root: + title: "NativeGallery" + logo: "/static/img/logosmall.png" maintenance: false debug: true botkey: '' diff --git a/views/components/Navbar.php b/views/components/Navbar.php index d170d65..13bd6bc 100644 --- a/views/components/Navbar.php +++ b/views/components/Navbar.php @@ -4,6 +4,19 @@ use \App\Services\Auth; use \App\Models\User; $user = new \App\Models\User(Auth::userid()); + +if (NGALLERY['root']['logo'] != null) { + $logo = NGALLERY['root']['logo']; +} else { + $logo = '/static/img/logosmall.png'; +} + +if (NGALLERY['root']['title'] != null) { + $title = NGALLERY['root']['title']; +} else { + $title = 'NativeGallery'; +} + ?>