61 <script type=
"text/javascript" src=
"/components/video/js/video_gallery.js"></script>
62 <script type=
"text/javascript">
64 window.addEvent(
'domready',
function()
71 $width = intval((count($this->listView->videos) / 2) + 1) * 185;
72 $this->listView->styles=
"position: absolute; width: {$width}px";
77 <div
id=
"<?echo $this->id?>_left" style=
"width: 32px; float: left;<?echo $this->styles?>"><img
id=
"<?echo $this->id?>_scroll_left" src=
"/components/video/images/scroll_left.png" style=
"margin-top: 160px"/>&
nbsp;</div>
78 <div
id=
"<?echo $this->id?>" style=
"width: 560px; height: 450px; position: relative; overflow: hidden; float: left">
80 $this->listView->drawGrid();
83 <div
id=
"<?echo $this->id?>_right" style=
"width: 32px; float: left"><img
id=
"<?echo $this->id?>_scroll_right" src=
"/components/video/images/scroll_right.png" style=
"margin-top: 160px"/>&
nbsp;</div>
104 $this->galleryView->listView->titleFormat =
"{Gallery.gallery_name}";
109 $this->videos = array();
111 if (count($this->galleries) == 0)
return;
113 $ids = formatItems($this->galleries,
"{gallery_id}",
", ");
114 $groupedVideos = GroupedQuery::create(
Video,
"WHERE gallery_id IN (".
$ids .
") AND published=1",
"gallery_id")
127 if (count($this->videos) == 0)
129 echo
"<p>No videos have been published on this site.</p>";
133 $this->galleryView->drawGallery();
138 if (count($this->videos) == 0)
140 echo
"<p>No videos have been published on this site.</p>";
144 $this->galleryView->listView->drawGrid();
VideoGalleryList($galleries, $linkFormat, $id="galleries")
VideoGalleryView($videos, $linkFormat, $id="videos", $onClick)