This enables dynamic resizing of the photo displayed, and enables the pseudo-lightbox popup to view the “full” resized image for users that can’t view the true full image.
< ?php defined("SYSPATH") or die("No direct script access.") ?>
< ?= $theme->photo_top() ?>
< ?= $theme->paginator() ?>
< ?= $theme->resize_top($item) ?>
< ? if (access::can("view_full", $item)): ?>
for_html_attr() ?>">
< ? else: ?>
for_html_attr() ?>">
< ? endif; ?>
< ?= $item->resize_img(array("id" => "g-item-id-{$item->id}", "class" => "g-resize")) ?>
< ?= $theme->resize_bottom($item) ?>
< ?= html::purify($item->title) ?>
< ?= nl2br(html::purify($item->description)) ?>
< ?= $theme->photo_bottom() ?>
Leave a Reply