Image to Post - random list

This commit is contained in:
Matthew Barbour
2020-10-26 10:18:13 -05:00
parent f497094482
commit 456176ac11
3 changed files with 9 additions and 9 deletions

View File

@ -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);