Implement navigation for photo pages.

This commit is contained in:
2016-09-04 16:00:39 +02:00
parent 67a182671f
commit c11c5c2677
5 changed files with 109 additions and 6 deletions

View File

@@ -13,6 +13,7 @@ class PhotosIndex extends SubTemplate
protected $show_labels;
protected $row_limit = 1000;
protected $previous_header = '';
protected $url_suffix;
const PANORAMA_WIDTH = 1280;
const PANORAMA_HEIGHT = null;
@@ -95,7 +96,7 @@ class PhotosIndex extends SubTemplate
<a class="edit" href="', BASEURL, '/editasset/?id=', $image->getId(), '">Edit</a>';
echo '
<a href="', $image->getPageUrl(), '">
<a href="', $image->getPageUrl(), $this->url_suffix, '">
<img src="', $image->getThumbnailUrl($width, $height, $crop, $fit), '" alt="" title="', $image->getTitle(), '">';
if ($this->show_labels)
@@ -262,4 +263,9 @@ class PhotosIndex extends SubTemplate
echo '
</div>';
}
public function setUrlSuffix($suffix)
{
$this->url_suffix = $suffix;
}
}