From 05d916e333544239dbb82310542ee7f50a611a2a Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Sat, 27 Jan 2018 20:34:26 +0100 Subject: [PATCH] alternative theme improves --- bl-kernel/functions.php | 2 +- bl-kernel/helpers/paginator.class.php | 5 ++++ bl-themes/alternative/css/style.css | 9 +++++++ bl-themes/alternative/index.php | 26 ++++---------------- bl-themes/alternative/php/home.php | 33 ++++++++++++++++++-------- bl-themes/alternative/php/navbar.php | 20 ++++++++++++++++ bl-themes/alternative/php/page.php | 34 +++++++++++++++------------ 7 files changed, 81 insertions(+), 48 deletions(-) create mode 100644 bl-themes/alternative/php/navbar.php diff --git a/bl-kernel/functions.php b/bl-kernel/functions.php index e52b2865..a3068224 100644 --- a/bl-kernel/functions.php +++ b/bl-kernel/functions.php @@ -216,7 +216,7 @@ function buildStaticPages() { global $dbPages; $tmp = array(); - $staticPages = $dbPages->getStaticDB($onlyKeys=true); + $staticPages = $dbPages->getStaticDB(); foreach ($staticPages as $pageKey) { $staticPage = buildPage($pageKey); array_push($tmp, $staticPage); diff --git a/bl-kernel/helpers/paginator.class.php b/bl-kernel/helpers/paginator.class.php index 87893e32..b18c654b 100644 --- a/bl-kernel/helpers/paginator.class.php +++ b/bl-kernel/helpers/paginator.class.php @@ -30,6 +30,11 @@ class Paginator { return self::get('amountOfPages'); } + public static function currentPage() + { + return self::get('currentPage'); + } + public static function nextPage() { return self::get('nextPage'); diff --git a/bl-themes/alternative/css/style.css b/bl-themes/alternative/css/style.css index 5467f402..8b937b60 100755 --- a/bl-themes/alternative/css/style.css +++ b/bl-themes/alternative/css/style.css @@ -32,6 +32,10 @@ section.page:nth-child(even) { background: #FAFAFA; } +a.page-title { + color: #333; +} + .page-description { font-size: 1.25rem; font-weight: 300; @@ -39,4 +43,9 @@ section.page:nth-child(even) { .page-cover-image { background-size: cover; background-position: center; +} + +.nav-link { + font-size: 0.8em; + text-transform: uppercase; } \ No newline at end of file diff --git a/bl-themes/alternative/index.php b/bl-themes/alternative/index.php index ce81c52f..75a1bdad 100755 --- a/bl-themes/alternative/index.php +++ b/bl-themes/alternative/index.php @@ -1,32 +1,14 @@ - - - - + +
-

title() ?>

+ +

title() ?>

+
@@ -36,16 +38,27 @@ - + \ No newline at end of file diff --git a/bl-themes/alternative/php/navbar.php b/bl-themes/alternative/php/navbar.php new file mode 100644 index 00000000..9d84ad8a --- /dev/null +++ b/bl-themes/alternative/php/navbar.php @@ -0,0 +1,20 @@ + + \ No newline at end of file diff --git a/bl-themes/alternative/php/page.php b/bl-themes/alternative/php/page.php index 3c9659f6..1ee7a739 100644 --- a/bl-themes/alternative/php/page.php +++ b/bl-themes/alternative/php/page.php @@ -1,23 +1,27 @@
- -

title() ?>

+
+
+ +

title() ?>

- - description()): ?> -

description() ?>

- + + description()): ?> +

description() ?>

+ - - coverImage()): ?> -
-
-
- + + coverImage()): ?> +
+
+
+ - -
- content() ?> + +
+ content() ?> +
+
\ No newline at end of file