diff --git a/ext/arrowkey_navigation/main.php b/ext/arrowkey_navigation/main.php new file mode 100644 index 00000000..15136dfa --- /dev/null +++ b/ext/arrowkey_navigation/main.php @@ -0,0 +1,35 @@ + + * Link: http://drudexsoftware.com + * License: GPLv2 + * Description: Allows viewers no navigate between images using the left & right arrow keys. + * Documentation: + * Simply enable this extention in the extention manager to enable arrow key navigation. + */ +class arrowkey_navigation extends Extension { + public function onDisplayingImage(DisplayingImageEvent $event) { + global $page; + + $prev_url = "http://".$_SERVER['HTTP_HOST']."/post/prev/".$event->image->id; + $next_url = "http://".$_SERVER['HTTP_HOST']."/post/next/".$event->image->id; + + $page->add_html_header(""); + } +} +?>