Definition at line 39 of file video_list_view.inc.
◆ drawGrid()
VideoListView::drawGrid |
( |
| ) |
|
Definition at line 86 of file video_list_view.inc.
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>
◆ VideoListView()
VideoListView::VideoListView |
( |
|
$videos, |
|
|
|
$linkFormat, |
|
|
|
$id = "videos" , |
|
|
|
$titleFormat = "" , |
|
|
|
$onClick = "" |
|
) |
| |
◆ writeResizeScript()
static VideoListView::writeResizeScript |
( |
| ) |
|
|
static |
Definition at line 118 of file video_list_view.inc.
122 <script type=
"text/javascript">
123 window.addEvent(
'domready',
function() { document.id(
'videos_box').resizable(); });
◆ writeScript()
VideoListView::writeScript |
( |
| ) |
|
Definition at line 58 of file video_list_view.inc.
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'});
◆ $id
◆ $linkFormat
VideoListView::$linkFormat |
◆ $onClick
◆ $spacing
VideoListView::$spacing = 0 |
◆ $styles
◆ $titleFormat
VideoListView::$titleFormat = "{title}" |
◆ $videos
The documentation for this class was generated from the following file: