Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.
1 to 5 of 5
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="v" href="'.$next_url.'" title="Next" rel="'.$thumb.'">Next »</a><br /><a accesskey="v" href="'.$next_url.'"><img class="photos-large" src="'.$thumb.'" width="100" height="100" border="0"/></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="v" href="'.$prev_url.'" title="Previous" rel="'.$thumb.'">« Previous</a><br /><a accesskey="v" href="'.$prev_url.'"><img class="photos-large" src="'.$thumb.'" width="100" height="100" border="0"/></a>';
}
else{
$prev_link = '';
}
return $prev_link;
}
function plogger_get_next_picture_link() {
global $config;
$next_url = plogger_get_next_picture_url();
if ($next_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);
$next_link = '<a accesskey="v" href="'.$next_url.'" title="Next" rel="'.$thumb.'">Next »</a><br /><a accesskey="v" href="'.$next_url.'"><img class="photos-large" src="'.$thumb.'" width="100" height="100" border="0"/></a>';
}
else{
$next_link = '';
}
return $next_link;
}
function plogger_get_prev_picture_link() {
$prev_url = plogger_get_prev_picture_url();
if ($prev_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);
$prev_link = '<a accesskey="v" href="'.$prev_url.'" title="Previous" rel="'.$thumb.'">« Previous</a><br /><a accesskey="v" href="'.$prev_url.'"><img class="photos-large" src="'.$thumb.'" width="100" height="100" border="0"/></a>';
}
else{
$prev_link = '';
}
return $prev_link;
}
1 to 5 of 5