summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-06-30 08:21:00 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-06-30 08:21:00 -0700
commit8ed6d1183b50de62d495361ff37be71fcc00d48b (patch)
tree71941d913da77a09321a4d3bdf72f9b59bbd9b3a /themes
parent4943103700332a11f16319496e485cfd7fd9e36a (diff)
Fix for #319.
Created a new view "movieplayer.html.php", which is rendered by Item_Model::movie_img(). Changed movie.html.php to use movie_img to render the movie player link.
Diffstat (limited to 'themes')
-rw-r--r--themes/default/views/movie.html.php18
1 files changed, 1 insertions, 17 deletions
diff --git a/themes/default/views/movie.html.php b/themes/default/views/movie.html.php
index 134e3571..c2fb0e30 100644
--- a/themes/default/views/movie.html.php
+++ b/themes/default/views/movie.html.php
@@ -12,23 +12,7 @@
<? endif ?>
</ul>
- <a id="gMovieId-<?= $item->id ?>"
- href="<?= $item->file_url(true) ?>"
- style="display: block; width: <?= $item->width ?>px; height: <?= $item->height ?>px">
- </a>
- <script>
- flowplayer("gMovieId-<?= $item->id ?>", "<?= url::abs_file("lib/flowplayer.swf") ?>", {
- plugins: {
- h264streaming: {
- url: "<?= url::abs_file("lib/flowplayer.h264streaming.swf") ?>"
- },
- controls: {
- autoHide: 'always',
- hideDelay: 2000
- }
- }
- })
- </script>
+ <?= $item->movie_img(array("class" => "gMovie", "id" => "gMovieId-{$item->id}")) ?>
<div id="gInfo">
<h1><?= p::clean($item->title) ?></h1>