CMS  Version 3.9
VideoGalleryView Class Reference

Public Member Functions

 VideoGalleryView ($videos, $linkFormat, $id="videos", $onClick)
 
 drawGallery ()
 

Public Attributes

 $listView
 
 $id
 
 $videos
 
 $linkFormat
 
 $spacing = 0
 
 $styles
 
 $onClick
 

Detailed Description

Definition at line 39 of file video_gallery_view.inc.

Member Function Documentation

◆ drawGallery()

VideoGalleryView::drawGallery ( )

Definition at line 56 of file video_gallery_view.inc.

57  {
58  global $script;
59 
60  $script .= <<<ENDSCRIPT
61  <script type="text/javascript" src="/components/video/js/video_gallery.js"></script>
62  <script type="text/javascript">
63  var gallery;
64  window.addEvent('domready', function()
65  {
66  gallery = new VideoGallery('$this->id');
67  });
68  </script>
69 ENDSCRIPT;
70 
71  $width = intval((count($this->listView->videos) / 2) + 1) * 185;
72  $this->listView->styles="position: absolute; width: {$width}px";
73  $this->listView->spacing = $this->spacing;
74 
75 ?>
76 <div>
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">
79 <?
80  $this->listView->drawGrid();
81 ?>
82 </div>
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>
84 </div>
85 <?
86  }
& nbsp
Definition: index.inc:49
$helpTree style
Definition: tree.inc:46
$width
Definition: cover.inc:37

◆ VideoGalleryView()

VideoGalleryView::VideoGalleryView (   $videos,
  $linkFormat,
  $id = "videos",
  $onClick 
)

Definition at line 50 of file video_gallery_view.inc.

Member Data Documentation

◆ $id

VideoGalleryView::$id

Definition at line 42 of file video_gallery_view.inc.

◆ $linkFormat

VideoGalleryView::$linkFormat

Definition at line 45 of file video_gallery_view.inc.

◆ $listView

VideoGalleryView::$listView

Definition at line 41 of file video_gallery_view.inc.

◆ $onClick

VideoGalleryView::$onClick

Definition at line 48 of file video_gallery_view.inc.

◆ $spacing

VideoGalleryView::$spacing = 0

Definition at line 46 of file video_gallery_view.inc.

◆ $styles

VideoGalleryView::$styles

Definition at line 47 of file video_gallery_view.inc.

◆ $videos

VideoGalleryView::$videos

Definition at line 44 of file video_gallery_view.inc.


The documentation for this class was generated from the following file: