31 $imageSize = $this->grid->retinaMode ?
$size * 2 :
$size;
32 $mode = $this->grid->useBackgroundImages ?
"thumbnail" :
"iconize";
34 $src = $this->image_id ?
"/action/image/{$mode}?image_id={$this->image_id}&size={$imageSize}" :
"/fakoli/images/noimage.gif";
37 foreach($attrs as
$name => $value)
39 $dataAttrs .=
"$name='$value' ";
44 if ($this->grid->useBackgroundImages)
46 $styles = $this->grid->inlineSizing ?
"width: {$size}px; height: {$size}px; margin: 10px'" :
"";
48 <li <?echo $cssClass?>data-details=
'<?echo $this->id?>' style=
'background-image: url(<?echo $src?>);background-size: cover;<?echo $styles?>' onclick=
'<?echo $this->onclick?>'><div
class=
'title'><?echo $this->
title?></div></li>
54 <li <?echo $cssClass?>data-details=
'<?echo $this->id?>' <?echo $dataAttrs?>
style=
'width: <?echo $size + 10?>px; height: <?echo $size + 40?>px; margin: 10px'><div onclick=
'<?echo $this->onclick?>' style=
'width: <?echo $size ?>px; height: <?echo $size + 40?>px'><img src=
"<?echo $src?>" alt=
"<?echo $this->title?>" style=
'width: <?echo $size?>px; height: <?echo $size?>px'></img><br/><?echo $this->
title?></div></li>
75 $this->items = array();
90 $this->items[] = $item;
100 $this->tagItemCallbacks[] =
$handler;
108 $puff = $this->puff ?
'true' :
'false';
110 <script type=
"text/javascript">
111 window.addEvent(
'domready',
function()
126 <ul
id=
"<?echo $this->id?>" class=
'<?echo $cssClass?>'>
128 foreach($this->items as $item)
132 foreach($this->tagItemCallbacks as
$handler)
134 $attrs = call_user_func(
$handler, $item->item, $attrs);
137 $item->draw($this->
size, $attrs);
static usingFeature()
Uses the specified framework feature(s).
__construct($id, $size=200, $puff=true, $useBackgroundImages=false)
addItem($image_id, $title, $text, $onclick="return false;")
addFacetTaggingHandler($handler)
Adds a row tagging handler.
__construct($grid, $image_id, $title, $text, $onclick="return false;")
static getValue($component, $name)
Retrieve the value of the specified Setting.