From c155c0c310af70d0a01bf5effe2e9310fcac1a6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zden=C4=9Bk=20Borovec?= Date: Mon, 13 May 2024 00:03:56 +0200 Subject: [PATCH] css change --- assets/common/styles.css | 9 ++++++++- docs/www/blog/article.php | 5 +++-- docs/www/blog/index.php | 9 +++++---- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/assets/common/styles.css b/assets/common/styles.css index 12557d3..215d77a 100755 --- a/assets/common/styles.css +++ b/assets/common/styles.css @@ -269,8 +269,15 @@ ul { display: inline-block; } +.blog-tags { + padding: 0px; +} + .blog-publish-date { - float: right; + display: inline-block; + text-align: right; + padding: 0px; + width: 100%; } .comment .comment { diff --git a/docs/www/blog/article.php b/docs/www/blog/article.php index 86b1ad7..25805f2 100644 --- a/docs/www/blog/article.php +++ b/docs/www/blog/article.php @@ -178,7 +178,8 @@ class Blogpost printf("

%s

", $this->title); // Display the blog metadata - printf("
"); + print_r(" +
"); // Display tags for($i = 0; $i < count($this->tags); $i++) { @@ -190,7 +191,7 @@ class Blogpost } // Display publish date and end metadata div - printf("Published on: %s", + printf("Published on: %s
", date("Y-m-d", strtotime($this->date_posted))); // Display hrule, article content and end the article diff --git a/docs/www/blog/index.php b/docs/www/blog/index.php index fe2cf92..f25ee27 100755 --- a/docs/www/blog/index.php +++ b/docs/www/blog/index.php @@ -15,9 +15,11 @@ function display_blog_preview($blogpost_id, $title, $abstract, %s -
", $blogpost_id, $title); + print_r(" +
"); + for($i = 0; $i < count($tags); $i++) { $tag = $tags[$i]; printf(" @@ -27,10 +29,9 @@ function display_blog_preview($blogpost_id, $title, $abstract, } printf(" - + Published on: %s - - +

%s