diff options
Diffstat (limited to 'www/inc/funkce.inc.php')
-rw-r--r-- | www/inc/funkce.inc.php | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/www/inc/funkce.inc.php b/www/inc/funkce.inc.php index be897f7..e45d725 100644 --- a/www/inc/funkce.inc.php +++ b/www/inc/funkce.inc.php @@ -1,66 +1,4 @@ <?php -function navigation ($gallery, $snapshot, $image) { - global $gallery_dir, $root, $ThisScript, $textnav, $img, - $show_thumbs, $exif_style, $PNthumbScale; - - $next = $snapshot + 1; - $prev = $snapshot - 1; - - if (!$image) { // this will render a navigation bar - max 3 buttons - echo "\n<div class=\"navbuttons\">\n"; - echo "<div class=\"navbuttonsshell\">\n"; - if ($snapshot > 1) { //previous - echo "<a id=\"previcon\" href=\"$ThisScript?galerie=$gallery&photo=$prev"; - echo "&exif_style=$exif_style&show_thumbs=$show_thumbs\""; - echo " accesskey=\"p\">"; - echo "< <span class=\"accesskey\">P</span>revious</a>\n"; - } - echo " "; - if (is_file("$gallery_dir/$gallery/lq/img-$next.jpg")) { //next - echo "<a id=\"nexticon\" href=\"$ThisScript?galerie=$gallery&photo=$next"; - echo "&exif_style=$exif_style&show_thumbs=$show_thumbs\""; - echo " accesskey=\"n\">"; - echo "<span class=\"accesskey\">N</span>ext ></a>\n"; - } - echo "</div>\n</div>\n"; - } elseif ($image=="prev") { //previous thumbnail - if ($snapshot > 1) { //previous - echo "<div class=\"prevthumb\">"; - echo "<a href=\"$ThisScript?galerie=$gallery&photo=$prev"; - echo "&exif_style=$exif_style&show_thumbs=$show_thumbs\">"; - if (file_exists("$gallery_dir/$gallery/thumbs/img-$prev.png")) { - $Pthumb = "$gallery_dir/$gallery/thumbs/img-$prev.png"; - } else { - $Pthumb = "$gallery_dir/$gallery/thumbs/img-$prev.jpg"; - } - $v = getimagesize("$root/$Pthumb"); - echo "<img alt=\"Previous\" src=\""; - echo $Pthumb . "\" width=\"" . round($v[0]/$PNthumbScale); - echo "\" height=\"" . round($v[1]/$PNthumbScale) . "\" />"; - echo "<br />" . __('Previous'); - echo "</a></div>\n"; - } - } else { //next thumbnail - if (is_file("$gallery_dir/$gallery/lq/img-$next.jpg")) { - echo "<div class=\"nextthumb\">"; - echo "<a href=\"$ThisScript?galerie=$gallery&photo=$next"; - echo "&exif_style=$exif_style&show_thumbs=$show_thumbs\">"; - if (file_exists("$gallery_dir/$gallery/thumbs/img-$next.png")) { - $Nthumb = "$gallery_dir/$gallery/thumbs/img-$next.png"; - } else { - $Nthumb = "$gallery_dir/$gallery/thumbs/img-$next.jpg"; - } - $v = getimagesize("$root/$Nthumb"); - echo "<img alt=\"Next\" src=\""; - echo $Nthumb . "\" width=\"" . round($v[0]/$PNthumbScale); - echo "\" height=\"" . round($v[1]/$PNthumbScale) . "\" />"; - //echo "<br /><span class=\"accesskey\">N</span>ext"; - echo "<br />" . __('Next') ; - echo "</a></div>\n"; - } - } - -} function check($file) { global $gallery_dir, $page; |