Lines Matching refs:image

99         foreach ($images as $image) {
100 $this->renderImage($image);
106 protected function renderImage(Image $image) argument
111 [$w, $h] = $this->getThumbnailSize($image, 2);
116 $img['src'] = ml($image->getSrc(), ['w' => $w, 'h' => $h], true, '&');
117 $img['alt'] = $image->getFilename();
122 $a['href'] = $this->getDetailLink($image);
123 $a['title'] = $image->getTitle();
128 '<b>' . hsc($image->getTitle()) . '</b>',
129 hsc($image->getDescription())
133 $a['data-url'] = $this->getLightboxLink($image);
152 'href' => $this->getDetailLink($image),
154 'title' => $image->getTitle(),
156 $html .= '<a ' . buildAttributes($a) . '>' . hsc($image->getTitle()) . '</a>';
162 … $html .= '<div ' . buildAttributes($p) . '>' . hsc($image->getDescription()) . '</div>';
166 'href' => $this->getDetailLink($image),
168 'title' => $image->getFilename(),
170 $html .= '<a ' . buildAttributes($a) . '>' . hsc($image->getFilename()) . '</a>';
186 * @param Image $image
189 protected function getDetailLink(Image $image) argument
193 if ($image->getDetaillink()) {
195 return $image->getDetaillink();
197 return ml($image->getSrc(), ['id' => $ID], $this->options->direct, '&');
204 * @param Image $image
207 protected function getLightboxLink(Image $image) argument
210 if (!$image->getWidth() || !$image->getHeight()) {
211 return ml($image->getSrc(), '', true, '&');
216 $image->getWidth(),
217 $image->getHeight(),
223 if ($width > $image->getWidth() || $height > $image->getHeight()) {
224 return ml($image->getSrc(), '', true, '&');
227 return ml($image->getSrc(), ['w' => $width, 'h' => $height], true, '&');