Random List now displays actual random images...

Also arrowkey navigation extension now supports Random List extension
This commit is contained in:
DrudexSoftware 2013-03-10 07:53:09 +01:00
parent 8251133270
commit e54c8439cb
2 changed files with 8 additions and 1 deletions

View file

@ -24,6 +24,13 @@ class arrowkey_navigation extends Extension {
$next_url = make_http(make_link("post/list/".$pageinfo["next"]));
$this->add_arrowkeys_code($prev_url, $next_url);
}
// for random_list extension
else if ($event->page_matches("random")) {
$prev_url = make_http(make_link("random"));
$next_url = make_http(make_link("random"));
$this->add_arrowkeys_code($prev_url, $next_url);
}
}
# adds the javascript to the page with the given urls

View file

@ -14,7 +14,7 @@ class RandomList extends Extension {
if($event->page_matches("random")) {
// set vars
$images_per_page = $config->get_int("index_images") / 2;
$images_per_page = $config->get_int("random_images_list_count", 12);
$random_images = array();
$random_html = "<b>Refresh the page to view more images</b>
<div class='shm-image-list'>";