62 <script type=
"text/javascript">
63 window.addEvent(
'domready',
function()
65 $$(
".videoGrid a").each(
function(elt)
69 'mouseover':
function()
71 this.morph({
'background-color':
'#A9CDED',
'border-color':
'#666666'});
73 'mouseout':
function()
75 this.morph({
'background-color':
'#eeeeff',
'border-color':
'#cccccc'});
92 <ul
class=
"videoGrid" id=
"<?echo $this->id?>"<?
if ($this->
styles) echo
" style='{$this->styles}'";?>>
95 foreach($this->videos as
$video)
97 $thumb = $imgMgr->thumbnailLink(
$video->get(
"video_id"), 125);
101 if (is_callable($this->titleFormat))
102 $caption = call_user_func($this->titleFormat,
$video);
104 $caption =
$video->format($this->titleFormat);
107 <li><div
class=
"videoLink"<?
if ($this->
spacing) echo
" style='margin: {$this->spacing}'";?>><a href=
"<?echo $link?>"<?
if (
$onClick) echo
" onClick=\"$onClick\""; ?>>
108 <span
class=
"wrapVideo"><img src=
"<?echo $thumb ?> " alt=
"Small version of video"/></span>
109 <span
class=
"caption"><?echo $caption ?></span></a>
122 <script type=
"text/javascript">
123 window.addEvent(
'domready',
function() { document.id(
'videos_box').resizable(); });
150 $table =
new DataListView(
$videos,
"videos");
151 $table->column(
"Title",
"<a href='{$this->link}'>{title}</a>",
true,
"width: 50%")
152 ->column(
"Video File",
"{video_file}",
true,
"width: 50%");
153 $table->emptyMessage =
"No videos have been added to this gallery";
163 return $this->table->writeScript();
168 $this->table->drawView();
VideoGalleryListView($gallery, $link="video_form?video_id={video_id}")
static writeResizeScript()
VideoListView($videos, $linkFormat, $id="videos", $titleFormat="", $onClick="")