Skip to content

Commit

Permalink
fix: Stying and query fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
carlansell94 committed Dec 29, 2024
1 parent 8353f90 commit 37133dd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
7 changes: 0 additions & 7 deletions src/Model/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -197,8 +194,6 @@ public function create(): bool

$this->setId($this->db->getLastInsertId());


var_dump($this->added_categories);
$this->addTags();
$this->addCategories();

Expand Down Expand Up @@ -331,8 +326,6 @@ private function addCategories(): bool
post_id = '{$this->id}'
) t2";

echo $query;

if (!$this->db->runQuery($query)) {
return false;
}
Expand Down
8 changes: 7 additions & 1 deletion src/Model/PostList.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions themes/default/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 37133dd

Please sign in to comment.