From c18c7347bf36b9aa658439b3ed2b55db907761c7 Mon Sep 17 00:00:00 2001 From: Matthew Barbour Date: Mon, 26 Oct 2020 10:27:04 -0500 Subject: [PATCH] Image to Post - danbooru theme --- themes/danbooru/index.theme.php | 6 +++--- themes/danbooru/page.class.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/danbooru/index.theme.php b/themes/danbooru/index.theme.php index 7b72857b..65855620 100644 --- a/themes/danbooru/index.theme.php +++ b/themes/danbooru/index.theme.php @@ -26,14 +26,14 @@ class CustomIndexTheme extends IndexTheme $page->add_block(new Block("Search", $nav, "left", 0)); if (count($images) > 0) { if ($query) { - $page->add_block(new Block("Images", $this->build_table($images, "search=$query"), "main", 10)); + $page->add_block(new Block("Posts", $this->build_table($images, "search=$query"), "main", 10)); $this->display_paginator($page, "post/list/$query", null, $this->page_number, $this->total_pages); } else { - $page->add_block(new Block("Images", $this->build_table($images, null), "main", 10)); + $page->add_block(new Block("Posts", $this->build_table($images, null), "main", 10)); $this->display_paginator($page, "post/list", null, $this->page_number, $this->total_pages); } } else { - $page->add_block(new Block("No Images Found", "No images were found to match the search criteria")); + $page->add_block(new Block("No Posts Found", "No images were found to match the search criteria")); } } diff --git a/themes/danbooru/page.class.php b/themes/danbooru/page.class.php index beb9ca93..5b593d63 100644 --- a/themes/danbooru/page.class.php +++ b/themes/danbooru/page.class.php @@ -74,7 +74,7 @@ class Page extends BasePage $sub_block_html .= $block->body; // $this->block_to_html($block, true); break; case "main": - if ($block->header == "Images") { + if ($block->header == "Posts") { $block->header = " "; } $main_block_html .= $block->get_html(false);