source: extensions/Flash_Gallery/modules/JWImageRotator/main.inc.php @ 3531

Revision 3531, 1.5 KB checked in by tiico, 11 years ago (diff)

First revision (for testing)
Only in French (translation to be done)

Line 
1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5if (!url_is_remote($block['FLASHNAME']))
6        $block['FLASHNAME'] = embellish_url(get_root_url().$block['FLASHNAME']);
7
8$full_url = embellish_url( get_root_url().FLASHGAL_PATH.'js');
9$block['SCRIPT'] = '<script type="text/javascript" src="'.$full_url.'/swfobject.js"></script>';
10
11$block['XMLFEED'] = str_replace("?", "%3F" , $block['XMLFEED']) ; //. "&transition=blocks";
12
13$module['ext_datas'] = (!empty($module['ext_datas']) ? unserialize($module['ext_datas']) : array(''));
14
15
16foreach ($module['ext_datas'] as $key => $value)
17{
18        if ($key == "showicons" OR $key == "shownavigation" OR $key == "usefullscreen" 
19                OR $key == "linkfromdisplay" OR $key == "repeat" OR $key == "shuffle")
20                $block[$key] = ($value ? "true" : "false");
21        else
22                $block[$key] = $value;
23}
24
25$block['backcolor'] = str_replace("#", "0x", $block['backcolor']);
26$block['frontcolor'] = str_replace("#", "0x", $block['frontcolor']);
27$block['lightcolor'] = str_replace("#", "0x", $block['lightcolor']);
28$block['screencolor'] = str_replace("#", "0x", $block['screencolor']);
29
30$transition = array( '','random','fade','bgfade','blocks','bubbles','circles','flash','fluids','lines','slowfade');
31$overstretch = array( '', 'false', 'true', 'fit');
32$linktarget = array( '','_self', '_blank');
33
34$block['transition'] = $transition[$block['transition']];
35$block['linktarget'] = $linktarget[$block['linktarget']];
36$block['overstretch'] = $linktarget[$block['overstretch']];
37
38
39?>
Note: See TracBrowser for help on using the repository browser.