Skip to content

Commit

Permalink
Merge pull request #21 from mjamilasfihani/development
Browse files Browse the repository at this point in the history
Release v1.1.0
  • Loading branch information
mjamilasfihani authored Jul 10, 2021
2 parents e2c8245 + 86982dc commit 6e48b35
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
21 changes: 17 additions & 4 deletions app/Controllers/Landing.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
8 changes: 4 additions & 4 deletions app/Libraries/AssetsLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -206,7 +206,7 @@ class AssetsLoader
*
* @var string
*/
protected $title = 'Coming Soon';
protected $title = 'Your Website Title';

/**
* --------------------------------------------------------------------------
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit 6e48b35

Please sign in to comment.