summaryrefslogtreecommitdiff
path: root/modules/gallery/views
diff options
context:
space:
mode:
authorshadlaws <shad@shadlaws.com>2013-03-04 23:44:50 +0100
committershadlaws <shad@shadlaws.com>2013-03-04 23:44:50 +0100
commita517d9a33a47a2308cec1c9bfb1138abf181a909 (patch)
tree7d134143cd5cd667b2b2036fe8584183b8b5c865 /modules/gallery/views
parente77276736351700b3bbd1080369738620ff8be28 (diff)
Follow-on to #2033 - Change variables and js script loading for Flash Flowplayer.
- changed movie_img event variable names to have "flash" in them. - moved flowplayer.js loading from page.html.php to movieplayer-flash. - removed conditional loading for small, photo-specific JS files in page.html.php to keep combined JS consistent between page types (better for caching).
Diffstat (limited to 'modules/gallery/views')
-rw-r--r--modules/gallery/views/movieplayer-flash.html.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/gallery/views/movieplayer-flash.html.php b/modules/gallery/views/movieplayer-flash.html.php
index 6d3cee2a..12303bf4 100644
--- a/modules/gallery/views/movieplayer-flash.html.php
+++ b/modules/gallery/views/movieplayer-flash.html.php
@@ -1,4 +1,5 @@
<?php defined("SYSPATH") or die("No direct script access.") ?>
+<script type="text/javascript" src="<?= url::file("lib/flowplayer-flash/flowplayer.js") ?>"></script>
<?= html::anchor($url, "", $attrs) ?>
<script type="text/javascript">
var id = "<?= $attrs["id"] ?>";
@@ -23,7 +24,7 @@
"src": "<?= url::abs_file("lib/flowplayer-flash/flowplayer.swf") ?>",
"wmode": "transparent",
"provider": "pseudostreaming"
- }, <?= json_encode($fp_params) ?>),
+ }, <?= json_encode($fp_flash_params) ?>),
$.extend(true, {
"plugins": {
"pseudostreaming": {
@@ -42,7 +43,7 @@
set_movie_size(parseInt(clip.metaData.width), parseInt(clip.metaData.height));
}
}
- }, <?= json_encode($fp_config) ?>)
+ }, <?= json_encode($fp_flash_config) ?>)
).ipad();
// set movie size using width and height passed from movie_img function
$("document").ready(set_movie_size(<?= $width ?>, <?= $height ?>));