From 86982dc7d00aba7d2a37f14eb16b5c38405e4f97 Mon Sep 17 00:00:00 2001 From: Mohammad Jamil Asfihani <51300528+mjamilasfihani@users.noreply.github.com> Date: Sat, 10 Jul 2021 18:28:18 +0700 Subject: [PATCH] Release v1.1.0 --- app/Controllers/Landing.php | 21 +++++++++++++++++---- app/Libraries/AssetsLoader.php | 8 ++++---- 2 files changed, 21 insertions(+), 8 deletions(-) diff --git a/app/Controllers/Landing.php b/app/Controllers/Landing.php index bc8ab7a..3eba933 100644 --- a/app/Controllers/Landing.php +++ b/app/Controllers/Landing.php @@ -20,10 +20,23 @@ protected function __render(string $name = '', array $data = [], array $options // Calling the library $template = new \App\Libraries\AssetsLoader(); - // A little conguration - $template->body(['preload' => true]); - $template->html(['language' => 'en']); - $template->meta(['author' => 'Website Developer']); + // A little Body conguration + $template->body([ + 'attributes' => ['id' => 'landing-page'], + 'preload' => true + ]); + + // A little Html configuration + $template->html([ + 'language' => 'en', + 'title' => 'Coming Soon' + ]); + + // A little Meta configuration + $template->meta([ + 'author' => 'Website Developer', + 'description' => 'Thank you for visiting our website, currently this website is coming soon.' + ]); // Render it return $template->render(view($name, $data, $options)); diff --git a/app/Libraries/AssetsLoader.php b/app/Libraries/AssetsLoader.php index 41972d6..33a024d 100644 --- a/app/Libraries/AssetsLoader.php +++ b/app/Libraries/AssetsLoader.php @@ -49,13 +49,13 @@ * 'doctype' => 'html5', * 'charset' => null, * 'language' => null, - * 'title' => 'Coming Soon', + * 'title' => 'Your Website Title', * 'favicon' => null * ]; * * $meta = * [ - * 'description' => 'Thank you for visiting our website, currently this website is coming soon.', + * 'description' => '', * 'keywords' => [], * 'author' => '', * 'viewport' => 'width=device-width, initial-scale=1, shrink-to-fit=no', @@ -206,7 +206,7 @@ class AssetsLoader * * @var string */ - protected $title = 'Coming Soon'; + protected $title = 'Your Website Title'; /** * -------------------------------------------------------------------------- @@ -239,7 +239,7 @@ class AssetsLoader */ protected $meta = [ - 'description' => 'Thank you for visiting our website, currently this website is coming soon.', + 'description' => '', 'keywords' => [], 'author' => '', 'viewport' => 'width=device-width, initial-scale=1, shrink-to-fit=no',