90 <ul
class=
"imageGrid" id=
"<?echo $this->id?>"<?
if ($this->
styles) echo
" style='{$this->styles}'";?>>
93 foreach($this->images as
$image)
95 $thumb = $imgMgr->thumbnailLink(
$image->get(
"image_id"), 125,
true);
98 if (is_callable($this->titleFormat))
99 $caption = call_user_func($this->titleFormat,
$image);
101 $caption =
$image->format($this->titleFormat);
104 <li><div
class=
"imageLink"<?
if ($this->
spacing) echo
" style='margin: {$this->spacing}'";?>><a href=
"<?echo $link?>">
105 <span
class=
"wrapImage"><img src=
"<?echo $thumb ?> " alt=
"Small version of image"/></span>
106 <span
class=
"caption"><?echo ellipsis($caption, 40,
false) ?></span></a>
119 <script type=
"text/javascript">
120 window.addEvent(
'domready',
function() { document.id(
'images_box').resizable(); });
147 $table =
new DataListView(
$images,
"images");
148 $table->column(
"Title",
"<a href='{$this->link}'>{title}</a>",
true,
"width: 40%")
149 ->column(
"Image File",
"{image_file}",
true,
"width: 40%")
150 ->column(
"Date Taken",
"{date_taken}",
true,
"width: 20%");
151 $table->emptyMessage =
"No images have been added to this gallery";
161 return $this->table->writeScript();
166 $this->table->drawView();
185 $table =
new DataListView(
$galleries,
"galleries");
187 ->column(
"Identifier",
"{identifier}",
true,
"width: 15%")
188 ->column(
"Owner",
"{getOwnerName()}",
true,
"width: 25%")
189 ->column(
"# Images",
"{countImages()}",
true,
"width: 15%;text-align: right")
190 ->column(
"Published", array($this,
showPublished),
false,
"text-align: center");
195 $table->emptyMessage =
"No Image Galleries have been created.";
202 return $this->table->writeScript();
207 $this->table->drawView();
212 return $gallery->format(
"<a href='image_gallery_form?gallery_id={gallery_id}'>{gallery_name}</a>");
217 $img =
$gallery->published ?
"on.png" :
"off.png";
218 $alt =
$gallery->published ?
"Enabled" :
"Disabled";
220 return "<img src='/fakoli/images/$img' alt='$alt' onclick='toggleGalleryPublished(this, {$gallery->gallery_id})' style='display: inline-block; vertical-align: middle; border: none; cursor: pointer'/>";
228 parent::ImageGalleriesView($showHidden);
233 return $gallery->format(
"<a href='/admin/image_gallery_form?gallery_id={gallery_id}'>{gallery_name}</a>");
formatTitleLink($gallery)
AdminImageGalleriesView($showHidden=false)
formatTitleLink($gallery)
ImageGalleriesView($showHidden=false)
ImageGalleryListView($gallery, $link="image_form?image_id={image_id}")
static writeResizeScript()
ImageListView($images, $linkFormat, $id="images", $titleFormat="")
The ImageManager class provides basic Image manipulation functions that are useful when working with ...