diff --git a/ext/random_list/info.php b/ext/random_list/info.php index fab27994..76d9c161 100644 --- a/ext/random_list/info.php +++ b/ext/random_list/info.php @@ -9,8 +9,8 @@ class RandomListInfo extends ExtensionInfo public $url = "http://www.drudexsoftware.com"; public $authors = ["Drudex Software"=>"support@drudexsoftware.com"]; public $license = self::LICENSE_GPLV2; - public $description = "Allows displaying a page with random images"; + public $description = "Allows displaying a page with random posts"; public $documentation = -"Random image list can be accessed through www.yoursite.com/random +"Random post list can be accessed through www.yoursite.com/random It is recommended that you create a link to this page so users know it exists."; } diff --git a/ext/random_list/main.php b/ext/random_list/main.php index dbef258a..95a43ee0 100644 --- a/ext/random_list/main.php +++ b/ext/random_list/main.php @@ -35,7 +35,7 @@ class RandomList extends Extension $images_per_page = $config->get_int("random_images_list_count", 12); $random_images = []; - // generate random images + // generate random posts for ($i = 0; $i < $images_per_page; $i++) { $random_image = Image::by_random($search_terms); if (!$random_image) { @@ -57,12 +57,12 @@ class RandomList extends Extension public function onSetupBuilding(SetupBuildingEvent $event) { - $sb = new SetupBlock("Random Images List"); + $sb = new SetupBlock("Random Posts List"); // custom headers $sb->add_int_option( "random_images_list_count", - "Amount of Random images to display " + "Amount of Random posts to display " ); $event->panel->add_block($sb); diff --git a/ext/random_list/theme.php b/ext/random_list/theme.php index 3714d3ad..cf45bb63 100644 --- a/ext/random_list/theme.php +++ b/ext/random_list/theme.php @@ -17,9 +17,9 @@ class RandomListTheme extends Themelet */ public function display_page(Page $page, array $images) { - $page->title = "Random Images"; + $page->title = "Random Posts"; - $html = "Refresh the page to view more images"; + $html = "Refresh the page to view more posts"; if (count($images)) { $html .= "
"; @@ -29,10 +29,10 @@ class RandomListTheme extends Themelet $html .= "
"; } else { - $html .= "

No images were found to match the search criteria"; + $html .= "

No posts were found to match the search criteria"; } - $page->add_block(new Block("Random Images", $html)); + $page->add_block(new Block("Random Posts", $html)); $nav = $this->build_navigation($this->search_terms); $page->add_block(new Block("Navigation", $nav, "left", 0));