Changeset 3936


Ignore:
Timestamp:
09/28/09 22:42:10 (10 years ago)
Author:
tiico
Message:

[Flash_Gallery] Fix bug 0001178 (Simpleviewer bug on IE) + Add possibility to add a background image on simpleviewer
Correct prometeus config file

Location:
extensions/Flash_Gallery/modules
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/Flash_Gallery/modules/prometeus/module.inc.php

    r3599 r3936  
    44 
    55// Parametres generaux du module : nom et parametre du fichier xml 
    6 $module_data['FlashName'] = "BananAlbum.swf"; 
    7 $module_data['FlashvarXML'] = "xmlfile"; 
     6$module_data['FlashName'] = ""; 
     7$module_data['FlashvarXML'] = ""; 
    88 
    99// Parametre d'affichage des donnees (les donnees peuvent etre utilisees dans le fichier imageNode.xml.php) 
  • extensions/Flash_Gallery/modules/simpleviewer/admin/config.tpl

    r3531 r3936  
    8686                <td colspan="2"><input type="checkbox" name="SV_enableRightClickOpen" {$SV_enableRightClickOpen}/></td> 
    8787        </tr> 
     88    <tr> 
     89        <td>{'SV_backgroundImagePath'|@translate}&nbsp;</td> 
     90        <td><input type="text" size="40" maxlength="200" name="SV_backgroundImagePath" value="{$SV_backgroundImagePath}" /></td> 
     91    </tr>                
    8892         
    8993</table> 
  • extensions/Flash_Gallery/modules/simpleviewer/language/fr_FR/module.lang.php

    r3531 r3936  
    2525$lang['SV_title']                       = 'Titre de la galerie (dans le SWF)'; 
    2626$lang['SV_enableRightClickOpen']        = 'Autoriser le Clic droit'; 
    27 $lang['SV_backgroundImagePath']         = 'Chemin d\'acc&egrave; de l\'image de fond'; 
     27$lang['SV_backgroundImagePath']         = 'Chemin d\'accès de l\'image de fond'; 
    2828 
    2929$lang['SV_top']         = 'Haut'; 
  • extensions/Flash_Gallery/modules/simpleviewer/main.inc.php

    r3531 r3936  
    33if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 
    44 
     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>'; 
    510 
    611 
  • extensions/Flash_Gallery/modules/simpleviewer/simpleviewer.tpl

    r3531 r3936  
    1 <div class="simpleviewer_block"> 
    2         <object type="application/x-shockwave-flash" data="{$block.FLASHNAME}?{$block.FLASHVARXML}={$block.XMLFEED}" width="100%" height="{$block.HEIGHT}"> 
    3                 <param name="movie" value="{$block.FLASHVARXML}={$block.XMLFEED}" /> 
    4                 <PARAM NAME="bgcolor" VALUE="{$block.BGCOLOR}"> 
    5                 {if $block.TRANSPARENT}   <PARAM NAME="wmode" VALUE="transparent">  {/if} 
    6                 <PARAM NAME="allowFullScreen" VALUE="{$block.FULLSCREEN}">  
    7                 <embed {if $block.TRANSPARENT}   wmode="transparent"  {/if} src="{$block.FLASHNAME}?{$block.FLASHVARXML}={$block.XMLFEED}" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="{$block.HEIGHT}" allowFullScreen="{$block.FULLSCREEN}"> 
    8                 </embed> 
    9         </object> 
     1{html_head} 
     2{$block.SCRIPT} 
     3{/html_head} 
     4<div id="simpleviewer_block"> 
     5 
     6        <script type="text/javascript"> 
     7 
     8                var fo = new SWFObject("{$block.FLASHNAME}", "simpleviewer", "100%", "{$block.HEIGHT}", "8", "{$block.BGCOLOR}");                                
     9                                                                                                                 
     10                // XML GALLERY OPTIONS 
     11                // To use local images defined in an XML document, use this block                
     12                fo.addParam("allowFullScreen","{$block.FULLSCREEN}"); 
     13                {if $block.TRANSPARENT}fo.addParam("wmode", "transparent");  
     14                {/if} 
     15                fo.addVariable("{$block.FLASHVARXML}", "{$block.XMLFEED}"); 
     16 
     17                fo.write("simpleviewer_block");                  
     18        </script> 
     19 
     20         
    1021</div> 
  • extensions/Flash_Gallery/modules/simpleviewer/xml/header.xml.php

    r3531 r3936  
    1818           .' title="'.$module['ext_datas']['title']."\"\n" 
    1919           .' enableRightClickOpen="'.(($module['ext_datas']['enableRightClickOpen']) ? "true" : "false")."\"\n" 
    20            .' backgroundImagePath="" ' 
     20           .' backgroundImagePath="'.(isset($module['ext_datas']['backgroundImagePath']) ? $module['ext_datas']['backgroundImagePath'] : '').'" ' 
    2121           .' imagePath="'.get_root_url()."\"\n" 
    2222                .' thumbPath="'.get_root_url().'">'; 
Note: See TracChangeset for help on using the changeset viewer.