74 $this->showControls =
true;
75 $this->showInfo =
true;
76 $this->showThumbnails =
true;
77 $this->autoPlay =
false;
78 $this->preload =
true;
85 $this->items[] = array_filter(
$items, validURL);
101 <link rel=
"stylesheet" type=
"text/css" href=
"/fakoli/slideshow/ie.css"/>
104 <script type=
"text/javascript"><!--
107 window.addEvent(
'domready',
function() {
109 var slideshow =
new Slideshow({preload: <?echo $this->preload ?
"true" :
"false"?>, showThumbnails: <?echo $this->showThumbnails ?
"true" :
"false"?>, showInfo: <?echo $this->showInfo ?
"true" :
"false" ?>, autoPlay: <?echo $this->autoPlay ?
"true" :
"false"?>});
111 slideshow.thumbnails = [
114 foreach($this->items as $item)
116 $thumbs[] =
"'http://".$config[
'http_host'].$mgr->thumbnailLink($item->image_id, 100).
"'";
119 echo implode(
", ", $thumbs);
126 foreach($this->items as $item)
128 $images[] =
"'http://".$config[
'http_host'].$mgr->imageLink($item->image_id).
"'";
135 slideshow.captions = [
138 foreach($this->items as $item)
140 if (!$first) echo
", ";
142 "<?echo jsSafe(trim($item->getCaption())) ?>"
149 slideshow.credits = [
152 foreach($this->items as $item)
154 if (!$first) echo
", ";
156 "<i><? echo jsSafe(trim($item->getShortCredit())) ?></i>"
182 <div
class=
"text"></div>
183 <div
class=
"border"><div
class=
"bar">&
nbsp;</div><div
id=
"progress_count"></div></div>
185 <table
id=
"slideshow" cellpadding=
"0" cellspacing=
"0" style=
"width: <? echo $this->width ?>px;">
188 <div
id=
"viewport" style=
"height: <?echo $this->height ?>px">
189 <div
id=
"gallery" style=
"height: <?echo $this->height ?>px">
190 <div
id=
"zoom_overlay" style=
"left: <? echo $this->width - 40 ?>px">
191 <table
id=
"zoomer" cellpadding=
"0" cellspacing=
"0">
193 <td
id=
"zoom_in"></td>
196 <td
id=
"zoom_slider">
197 <div
id=
"zoom_scale">
198 <div
id=
"zoom_thumb"><img src=
"/fakoli/slideshow/images/zoom_thumb.gif" width=
"24" height=
"12" alt=
"" style=
"display: block;"/></div>
203 <td
id=
"zoom_out"></td>
211 <tr<?
if (!$this->showControls) echo
" style='display:none'"; ?>>
212 <td
colspan=
"3" id=
"controlbar"><div
id=
"play_button" class=
"play">&
nbsp;</div><div
id=
"info_button" class=
"info">&
nbsp;</div><span
id=
"caption">&
nbsp;</span></td>
214 <tr<?
if (!$this->showControls) echo
" style='display:none'"; ?>>
215 <td
colspan=
"3" id=
"credit">&
nbsp;<span
id=
"creditText"></span></td>
218 <table cellpadding=
"0" cellspacing=
"0">
221 <table
id=
"thumbnails" cellpadding=
"0" cellspacing=
"0" style=
"width:<? echo $this->width."px
"; if (!$this->showThumbnails) echo "; display:none
"; ?>">
223 <td
id=
"scroll_left"></td>
225 <div
id=
"thumbnail_strip" style=
"width: <? echo $this->width - 46 ?>px">
226 <div
id=
"thumbnail_scroll"><div
id=
"thumbnail_highlight"></div></div>
229 <td
id=
"scroll_right"></td>
static using()
Import the datamodels, views and manifest for the specified component(s).
The ImageManager class provides basic Image manipulation functions that are useful when working with ...
The Slideshow class provides a reusable user interface control that displays images from the database...
Slideshow($items, $width=500, $height=400)