From 2de6b6a3b1bc5744fe2fb987918ff2a0b062ccb7 Mon Sep 17 00:00:00 2001 From: Diego Najar Date: Tue, 20 Apr 2021 23:21:44 +0200 Subject: [PATCH] PopEye theme updates --- bl-kernel/boot/rules/69.pages.php | 14 +++++-------- bl-themes/popeye/css/helpers.css | 16 ++++++++++++++ bl-themes/popeye/css/style.css | 35 +++++++++++++++++++++++++++++-- bl-themes/popeye/index.php | 2 +- bl-themes/popeye/php/footer.php | 20 +++++++++--------- bl-themes/popeye/php/home.php | 22 +++++++++---------- bl-themes/popeye/php/navbar.php | 11 +++++----- bl-themes/popeye/php/page.php | 21 +++++++++---------- 8 files changed, 92 insertions(+), 49 deletions(-) create mode 100644 bl-themes/popeye/css/helpers.css diff --git a/bl-kernel/boot/rules/69.pages.php b/bl-kernel/boot/rules/69.pages.php index aa613ed2..58651653 100644 --- a/bl-kernel/boot/rules/69.pages.php +++ b/bl-kernel/boot/rules/69.pages.php @@ -16,7 +16,7 @@ */ $content = array(); -// Page filtered by the user, is a Page Object +// Page filtered by the user, will be a Page Object $page = false; // Array with static content, each item is a Page Object @@ -29,7 +29,7 @@ $page = false; N => Page Object ) */ -$staticContent = $staticPages = buildStaticPages(); +$staticContent = buildStaticPages(); // ============================================================================ // Main @@ -61,7 +61,7 @@ if ($site->homepage() && $url->whereAmI()==='home') { // Build specific page if ($url->whereAmI()==='page') { - $content[0] = $page = buildThePage(); + $page = buildThePage(); } // Build content by tag elseif ($url->whereAmI()==='tag') { @@ -73,14 +73,10 @@ elseif ($url->whereAmI()==='category') { } // Build content for the homepage elseif ( ($url->whereAmI()==='home') || ($url->whereAmI()==='blog') ) { - $content = buildPagesForHome(); -} - -if (isset($content[0])) { - $page = $content[0]; + $content = buildPagesForHome(); } // If set notFound, create the page 404 if ($url->notFound()) { - $content[0] = $page = buildErrorPage(); + $page = buildErrorPage(); } diff --git a/bl-themes/popeye/css/helpers.css b/bl-themes/popeye/css/helpers.css new file mode 100644 index 00000000..0bce3543 --- /dev/null +++ b/bl-themes/popeye/css/helpers.css @@ -0,0 +1,16 @@ +/* HELPERs */ +.color-blue { + color: #0a58ca; +} + +.color-light { + color: #495057; +} + +.bold { + font-weight: 600; +} + +.italic { + font-style: italic; +} \ No newline at end of file diff --git a/bl-themes/popeye/css/style.css b/bl-themes/popeye/css/style.css index 5fc9f877..3170c372 100755 --- a/bl-themes/popeye/css/style.css +++ b/bl-themes/popeye/css/style.css @@ -9,9 +9,40 @@ a:hover { color: #0a58ca; } -.page-date { +img { + max-width: 100%; +} + +pre, code { + color: #f8f8f8; + background-color: #495057; +} + +code { + display: inline-block; + padding: 0 0.5em; + line-height: 1.4em; + border-radius: 3px; +} + +pre { + overflow-x: scroll; + padding: 1.6rem 2.2rem; + line-height: 1.5; + border-radius: 5px !important; +} + +/* PAGE */ +section.page h1.title { + font-size: 2rem; +} + +section.page .description { + font-style: italic; +} + +section.page a { color: #0a58ca; - font-weight: 600; } /* VIDEO EMBED RESPONSIVE */ diff --git a/bl-themes/popeye/index.php b/bl-themes/popeye/index.php index 900b53ec..23489286 100755 --- a/bl-themes/popeye/index.php +++ b/bl-themes/popeye/index.php @@ -21,7 +21,7 @@ - + diff --git a/bl-themes/popeye/php/footer.php b/bl-themes/popeye/php/footer.php index e4cf68ba..52f5fe8e 100644 --- a/bl-themes/popeye/php/footer.php +++ b/bl-themes/popeye/php/footer.php @@ -1,12 +1,12 @@ \ No newline at end of file diff --git a/bl-themes/popeye/php/home.php b/bl-themes/popeye/php/home.php index d07265a6..ddb27014 100644 --- a/bl-themes/popeye/php/home.php +++ b/bl-themes/popeye/php/home.php @@ -1,11 +1,11 @@ - -
+
- + + description()) : ?>

description(); ?>

@@ -28,19 +28,19 @@
- +
- +
- -
title() ?>
+
+
title() ?>
- relativeTime() ?> + relativeTime() ?>
@@ -48,10 +48,10 @@ tags(true); - if (!empty($tmp)) { + $tagsList = $tmp->tags(true); + if (!empty($tagsList)) { echo ''; - foreach ($tmp as $tagKey => $tagName) { + foreach ($tagsList as $tagKey => $tagName) { echo '' . $tagName . ''; } echo ''; diff --git a/bl-themes/popeye/php/navbar.php b/bl-themes/popeye/php/navbar.php index 4e817b0f..a567f5e7 100644 --- a/bl-themes/popeye/php/navbar.php +++ b/bl-themes/popeye/php/navbar.php @@ -1,11 +1,12 @@ -