Lines Matching full:image

70      * @param Image[] $images
99 foreach ($images as $image) {
100 $this->renderImage($image);
106 protected function renderImage(Image $image) argument
110 // thumbnail image properties
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);
138 $fig['class'] = 'gallery-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>';
184 * Access the detail link for this image
186 * @param Image $image
189 protected function getDetailLink(Image $image) argument
193 if ($image->getDetaillink()) {
194 // external image
195 return $image->getDetaillink();
197 return ml($image->getSrc(), ['id' => $ID], $this->options->direct, '&');
202 * Get the direct link to the image but limit it to a certain size
204 * @param Image $image
207 protected function getLightboxLink(Image $image) argument
209 // use original image if no size is available
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, '&');
233 * @param Image[] $images
234 * @return Image[][]