Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
1 to 8 of 8
function plogger_get_next_picture_link() {
global $config;
$next_url = plogger_get_next_picture_url();
$image_list = $GLOBALS["image_list"];
$row = $GLOBALS["current_picture"];
$current_picture = array_search($row['id'],$image_list);
if ($current_picture < sizeof($image_list)-1){
$id = $image_list[$current_picture+1];
}
$pic_data = get_picture_by_id($id);
$thumb=generate_thumb($pic_data['path'], $id);
if ($next_url){
$next_link = '<a accesskey="." href="'.$next_url.'" title="Next" class="screenshot" rel="'.$thumb.'">Next »</a>';
}
else{
$next_link = '';
}
return $next_link;
}
function plogger_get_prev_picture_link() {
$prev_url = plogger_get_prev_picture_url();
$image_list = $GLOBALS["image_list"];
$row = $GLOBALS["current_picture"];
$current_picture = array_search($row['id'],$image_list);
if ($current_picture > 0){
$id = $image_list[$current_picture-1];
}
$pic_data = get_picture_by_id($id);
$thumb = generate_thumb($pic_data['path'], $id);
if ($prev_url){
$prev_link = '<a accesskey="," href="'.$prev_url.'" title="Previous" class="screenshot" rel="'.$thumb.'">« Previous</a>';
}
else{
$prev_link = '';
}
return $prev_link;
}
#screenshot
{
position:absolute;
border:1px solid #ccc;
background:#333;
padding:5px;
display:none;
color:#fff;
}
<div id="thumbnail-nav" class="clearfix">
<?php echo plogger_get_thumbnail_nav(); ?>
</div>
1 to 8 of 8