Definition at line 39 of file image_list_view.inc.
◆ drawGrid()
ImageListView::drawGrid |
( |
| ) |
|
Definition at line 84 of file image_list_view.inc.
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>
The ImageManager class provides basic Image manipulation functions that are useful when working with ...
◆ ImageListView()
ImageListView::ImageListView |
( |
|
$images, |
|
|
|
$linkFormat, |
|
|
|
$id = "images" , |
|
|
|
$titleFormat = "" |
|
) |
| |
◆ writeResizeScript()
static ImageListView::writeResizeScript |
( |
| ) |
|
|
static |
Definition at line 115 of file image_list_view.inc.
119 <script type=
"text/javascript">
120 window.addEvent(
'domready',
function() { document.id(
'images_box').resizable(); });
◆ writeScript()
ImageListView::writeScript |
( |
| ) |
|
◆ $id
◆ $images
◆ $linkFormat
ImageListView::$linkFormat |
◆ $spacing
ImageListView::$spacing = 0 |
◆ $styles
◆ $titleFormat
ImageListView::$titleFormat = "{title}" |
The documentation for this class was generated from the following file: