Changeset View
Changeset View
Standalone View
Standalone View
src/applications/pholio/view/PholioMockImagesView.php
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | foreach ($mock->getImages() as $image) { | ||||
? $file->getBestURI() | ? $file->getBestURI() | ||||
: $default->getBestURI()), | : $default->getBestURI()), | ||||
'pageURI' => $this->getImagePageURI($image, $mock), | 'pageURI' => $this->getImagePageURI($image, $mock), | ||||
'downloadURI' => $file->getDownloadURI(), | 'downloadURI' => $file->getDownloadURI(), | ||||
'historyURI' => $history_uri, | 'historyURI' => $history_uri, | ||||
'width' => $x, | 'width' => $x, | ||||
'height' => $y, | 'height' => $y, | ||||
'title' => $image->getName(), | 'title' => $image->getName(), | ||||
'descriptionMarkup' => $description, | 'descriptionMarkup' => hsprintf('%s', $description), | ||||
'isObsolete' => (bool)$image->getIsObsolete(), | 'isObsolete' => (bool)$image->getIsObsolete(), | ||||
'isImage' => $file->isViewableImage(), | 'isImage' => $file->isViewableImage(), | ||||
'isViewable' => $file->isViewableInBrowser(), | 'isViewable' => $file->isViewableInBrowser(), | ||||
); | ); | ||||
} | } | ||||
$ids = mpull($mock->getActiveImages(), null, 'getID'); | $ids = mpull($mock->getActiveImages(), null, 'getID'); | ||||
if ($this->imageID && isset($ids[$this->imageID])) { | if ($this->imageID && isset($ids[$this->imageID])) { | ||||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |