0 && $image_height > 0): ?>
= h($title) ?>
= media_description_html($description) ?>= h($description) ?>
';
$prev = $current - 1;
$next = $current + 1;
if ($prev >= 1) {
echo '‹';
} else {
echo '‹';
}
$range = range(max(1, $current-2), min($total, $current+2));
if (!in_array(1, $range)) { echo '1…'; }
foreach ($range as $p) {
if ($p === $current) echo '' . $p . '';
else echo '' . $p . '';
}
if (!in_array($total, $range)) { echo '…' . $total . ''; }
if ($next <= $total) {
echo '›';
} else {
echo '›';
}
echo '';
}