--- /Users/joldfather/Desktop/development/slideshowpro/slideshowpro.module 2008-01-24 14:29:43.000000000 -0500
+++ /wwwRoot/www.star883.com/blog/modules/slideshowpro/slideshowpro.module 2008-06-03 14:44:25.000000000 -0400
@@ -358,41 +358,68 @@
function slideshowpro_embed($args) {
static $id = 0;
$id++;
- // path to xml
+
+
+ // path to xml
$flash_vars = 'xmlfilepath='. url($args['path'], NULL, NULL, TRUE);
- // check, wether parameters available
- $flash_vars .= '¶meters=';
- if (isset($args['params'])) {
- $params = explode(',', $args['params']);
- foreach ($params as $param) {
- if ($var = explode(':', $param)) {
- // if we use titles as captions, ignore showCaptionHeader
- $flash_vars .= $var[0] .':'. check_plain($var[1]) .',';
- }
- }
- }
- // hide caption header if we are using titles as captions
- if (variable_get('slideshowpro_title_as_caption', 0)) {
- $flash_vars .= 'showCaptionHeader:False,';
- }
- // width and height
- if (isset($args['width'])) {
- $width = ' width="'.$args['width'].'" ';
- }
- if (isset($args['height'])) {
- $height = ' height="'.$args['height'].'" ';
- }
+ $vars['xmlfilepath']=url($args['path'], NULL, NULL, TRUE);
+
+
+ // check, wether parameters available
+ $flash_vars .= '¶meters=';
+ $vars['parameters']='';
+ if (isset($args['params'])) {
+ $params = explode(',', $args['params']);
+ foreach ($params as $param) {
+ if ($var = explode(':', $param)) {
+ // if we use titles as captions, ignore showCaptionHeader
+ $flash_vars .= $var[0] .':'. check_plain($var[1]) .',';
+ $vars['parameters'] .= $var[0] .':'. check_plain($var[1]) .',';
+ }
+ }
+ }
+ // hide caption header if we are using titles as captions
+ if (variable_get('slideshowpro_title_as_caption', 0)) {
+ $flash_vars .= 'showCaptionHeader:False,';
+ $vars['parameters'] .= 'showCaptionHeader:False,';
+ }
+ // width and height
+ if (isset($args['width'])) {
+ $width = ' width="'.$args['width'].'" ';
+ }
+ if (isset($args['height'])) {
+ $height = ' height="'.$args['height'].'" ';
+ }
- return theme('slideshowpro_embed',
- '', $id);
+ if(module_exists('swfobject_api')){
+ $params = array(
+ 'width' => $args['width'],
+ 'height' => $args['height'],
+ 'version' => 8,
+ 'allowScriptAccess' => 'sameDomain',
+ 'quality' => 'high',
+ 'movie' => base_path() . slideshowpro_path_to_ssp(),
+ 'wmode' => 'transparent',
+ 'express_redirect' => true,
+ 'no_flash' => t('')
+ );
+
+ return theme("swfobject_api", base_path() . slideshowpro_path_to_ssp(), $params, $vars );
+
+ }
+ else{
+ return theme('slideshowpro_embed',
+ '', $id);
+ }
}
/**