From 37133dd1703aad740d612e7f581fae02e155263f Mon Sep 17 00:00:00 2001 From: Carl Ansell <10620927+carlansell94@users.noreply.github.com> Date: Sun, 29 Dec 2024 21:38:36 +0000 Subject: [PATCH] fix: Stying and query fixes --- src/Model/Post.php | 7 ------- src/Model/PostList.php | 8 +++++++- themes/default/style.css | 4 ++-- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/src/Model/Post.php b/src/Model/Post.php index 7781307..258de22 100755 --- a/src/Model/Post.php +++ b/src/Model/Post.php @@ -109,9 +109,6 @@ public function get(): \mysqli_result|false post_title, post_excerpt, post_content, - post_image, - post_banner, - post_icon, post_status_id, post_date, GROUP_CONCAT( @@ -197,8 +194,6 @@ public function create(): bool $this->setId($this->db->getLastInsertId()); - - var_dump($this->added_categories); $this->addTags(); $this->addCategories(); @@ -331,8 +326,6 @@ private function addCategories(): bool post_id = '{$this->id}' ) t2"; - echo $query; - if (!$this->db->runQuery($query)) { return false; } diff --git a/src/Model/PostList.php b/src/Model/PostList.php index acd5669..56ee41c 100755 --- a/src/Model/PostList.php +++ b/src/Model/PostList.php @@ -46,7 +46,13 @@ public function get(): \mysqli_result|false $status = "1"; } - $query = "SELECT *, + $query = "SELECT + post_id, + post_slug, + post_title, + post_excerpt, + post_status_id, + post_date, GROUP_CONCAT( DISTINCT( CONCAT_WS(',', category_name, category_slug) diff --git a/themes/default/style.css b/themes/default/style.css index 91d1fe4..871750d 100755 --- a/themes/default/style.css +++ b/themes/default/style.css @@ -237,7 +237,7 @@ div.meta > .post-date { padding-left: 0; } -div#meta > p { +:is(div#meta, div.meta) > p { display: inline-block; font-size: 0.9rem; font-weight: bold; @@ -248,7 +248,7 @@ div.meta > img { vertical-align: middle; } -div#meta > img { +:is(div#meta, div.meta) > img { max-height: 21px; vertical-align: text-top; padding: 0 0.5rem 0 1.5rem;