Changeset 3599


Ignore:
Timestamp:
07/16/09 00:43:16 (11 years ago)
Author:
tiico
Message:

some minor corrections
add block.tpl from pwg_stuff (for flopure)
add prometeus module (javascript)
[TO BE COMPLETED]

Location:
extensions/Flash_Gallery
Files:
40 added
23 edited

Legend:

Unmodified
Added
Removed
  • extensions/Flash_Gallery/include/class.inc.php

    r3531 r3599  
    254254 
    255255    if (isset($modulename)) 
     256        { 
    256257                $dir = FLASHGAL_PATH . 'modules/'.$modulename .'/'; 
     258                return $dir.$file; 
     259        } 
    257260        else 
     261        { 
    258262                $dir = FLASHGAL_PATH . 'template/'; 
    259  
     263                $theme_file = $dir.$user['template'].'/'.$user['theme'].'/'.$file; 
     264                $template_file = $dir.$user['template'].'/'.$file; 
     265            if (file_exists($theme_file)) 
     266            { 
     267              return $theme_file; 
     268            } 
     269            elseif (file_exists($template_file)) 
     270            { 
     271              return $template_file; 
     272            } 
     273            else 
     274                { 
     275                        return $dir.$file; 
     276                } 
     277        } 
    260278//                      echo "dir=".$dir.$file; 
    261     return $dir.$file; 
    262279  } 
    263280} 
  • extensions/Flash_Gallery/modules/3DFlip/3DFlip.tpl

    r3531 r3599  
    1 <div class="Caroussel_block"> 
     1<div class="3DFlip_block"> 
    22        <object width="100%" height="{$block.HEIGHT}" 
    33          type="application/x-shockwave-flash" 
  • extensions/Flash_Gallery/modules/3DFlip/admin/config.inc.php

    r3531 r3599  
    9797{ 
    9898 
    99         if ($key == "fullscreen") 
     99        if ($key == "fullscreen" or $key == "vertical") 
    100100                $template->assign(array( '3DFlip_'.$key => (($ext_datas[$key]) ? 'checked="checked"': ''))); 
    101101                 
  • extensions/Flash_Gallery/modules/3DFlip/main.inc.php

    r3531 r3599  
    66        $block['FLASHNAME'] = embellish_url(get_root_url().$block['FLASHNAME']); 
    77 
    8 $full_url = embellish_url( get_root_url().FLASHGAL_PATH.'modules/TiltViewer/js'); 
    9 $block['SCRIPT'] = '<script type="text/javascript" src="'.$full_url.'/swfobject.js"></script>'; 
    10  
    11  
    128$module['ext_datas'] = (!empty($module['ext_datas']) ? unserialize($module['ext_datas']) : array('')); 
    139 
  • extensions/Flash_Gallery/modules/ArtGallery/ArtGallery.tpl

    r3531 r3599  
    1 <div class="ZenGallery_block"> 
     1<div class="ArtGallery_block"> 
    22        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="{$block.HEIGHT}" id="gal" align="middle"> 
    33        <param name="allowScriptAccess" value="sameDomain" /> 
     
    66        <param name="quality" value="high" /> 
    77        <param name="bgcolor" value="{$block.BGCOLOR}" />        
    8         {if $block.TRANSPARENT}   <PARAM NAME="wmode" VALUE="transparent">  {/if} 
    9         <PARAM NAME="allowFullScreen" VALUE="{$block.FULLSCREEN}">  
     8        {if $block.TRANSPARENT}   <param name="wmode" value="transparent">  {/if} 
     9        <param name="allowFullScreen" value="{$block.FULLSCREEN}">  
    1010        <embed {if $block.TRANSPARENT}   wmode="transparent"  {/if}  src="{$block.FLASHNAME}" quality="high" bgcolor="{$block.BGCOLOR}" width="100%" height="{$block.HEIGHT}" name="gal" flashvars="{$block.FLASHVARXML}={$block.XMLFEED}" align="middle" allowScriptAccess="sameDomain" allowFullScreen="{$block.FULLSCREEN}" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> 
    1111        </object> 
  • extensions/Flash_Gallery/modules/ArtGallery/main.inc.php

    r3531 r3599  
    55if (!url_is_remote($block['FLASHNAME'])) 
    66        $block['FLASHNAME'] = embellish_url(get_root_url().$block['FLASHNAME']); 
    7  
    8 $full_url = embellish_url( get_root_url().FLASHGAL_PATH.'modules/TiltViewer/js'); 
    9 $block['SCRIPT'] = '<script type="text/javascript" src="'.$full_url.'/swfobject.js"></script>'; 
    107 
    118 
  • extensions/Flash_Gallery/modules/Carousel/Carousel.tpl

    r3531 r3599  
    77          <param name="flashvars" value="{$block.FLASHVARXML}={$block.XMLFEED}" /> 
    88          <param name="allowScriptAccess" value="sameDomain" /> 
    9           {if $block.TRANSPARENT}   <PARAM NAME="wmode" VALUE="transparent">  {/if} 
    10           <param name="allowFullScreen" VALUE="{$block.FULLSCREEN}">  
     9          {if $block.TRANSPARENT}   <param name="wmode" value="transparent">  {/if} 
     10          <param name="allowFullScreen" value="{$block.FULLSCREEN}">  
    1111          <embed {if $block.TRANSPARENT}   wmode="transparent"  {/if}  src="{$block.FLASHNAME}" quality="high" bgcolor="{$block.BGCOLOR}" width="100%" height="{$block.HEIGHT}" flashvars="{$block.FLASHVARXML}={$block.XMLFEED}" align="middle" allowScriptAccess="sameDomain" allowFullScreen="{$block.FULLSCREEN}" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> 
    1212           
  • extensions/Flash_Gallery/modules/Carousel/main.inc.php

    r3531 r3599  
    66        $block['FLASHNAME'] = embellish_url(get_root_url().$block['FLASHNAME']); 
    77 
    8 $full_url = embellish_url( get_root_url().FLASHGAL_PATH.'modules/TiltViewer/js'); 
    9 $block['SCRIPT'] = '<script type="text/javascript" src="'.$full_url.'/swfobject.js"></script>'; 
    10  
    11  
    128$module['ext_datas'] = (!empty($module['ext_datas']) ? unserialize($module['ext_datas']) : array('')); 
    139 
  • extensions/Flash_Gallery/modules/FlashGallery/config.php

    r3531 r3599  
    11<?php 
    2 //header("Content-Type: application/xml; charset=UTF-8"); 
    32 
    4 //$module['ext_datas'] = (!empty($module['ext_datas']) ? unserialize($module['ext_datas']) : array('')); 
    5 // module['ext_datas']  doit etre deja unserialise... 
    6  
    7 // Parameters for module 
     3// Parameters XML for module FlashGallery 
    84 
    95define('PHPWG_ROOT_PATH','../../../../'); 
    106 
    117include_once(PHPWG_ROOT_PATH.'include/common.inc.php'); 
    12 include_once FLASHGAL_PATH.'include/class.inc.php'; 
    13 $home = null; 
    14 $catid =  null ; 
    15 $permalinkcat = null; 
    168 
    17 if (isset($_GET['home'])) 
     9// recuperation des parametres dans la base (ext_datas) 
     10$query = ' 
     11SELECT ext_datas 
     12FROM ' . FLASHGAL_TABLE . ' 
     13WHERE type LIKE "%FlashGallery"' 
     14. ' LIMIT 1'; 
     15 
     16$result = pwg_query($query); 
     17 
     18// Module non dispo 
     19if (!($module = mysql_fetch_assoc($result))) 
    1820{ 
    19         $home = true; 
    20         $page['section'] = 'categories'; 
    21 } 
    22 elseif (isset($_GET['catid'])) 
    23 { 
    24         $catid = $_GET['catid']; 
    25         $page['section'] = 'categories'; 
    26         $page['category']['id'] = $catid; 
    27 } 
    28 elseif (isset($_GET['permalink'])) 
    29 { 
    30         $permalink = $_GET['permalink']; 
    31         $page['section'] = 'categories'; 
    32         $page['category']['id'] = $permalink; 
     21        echo '<?xml version="1.0"?> 
     22        <settings 
     23        />';     
    3324} 
    3425else 
    3526{ 
    36         include(PHPWG_ROOT_PATH.'include/section_init.inc.php'); 
     27        $module['ext_datas'] = (!empty($module['ext_datas']) ? unserialize($module['ext_datas']) : array('')); 
    3728 
    38         $home = (($page['section'] == 'categories') and empty($page['category'])) ? true : null ; 
    39         $catid = ($page['section'] == 'categories' and  
    40                                 isset($page['category'])) ? $page['category']['id'] : null ; 
    41         $permalinkcat = empty($page['category']['permalink']) ? null : $page['category']['permalink']; 
     29        foreach ($module['ext_datas'] as $key => $value) 
     30        { 
     31                $module['ext_datas'][$key] = str_replace("#", "", $value); 
     32        } 
     33 
     34        echo '<?xml version="1.0"?> 
     35 
     36        <settings 
     37        thumb_bg_color="'.$module['ext_datas']['thumb_bg_color'].'" 
     38        thumb_bg_over="'.$module['ext_datas']['thumb_bg_over'].'" 
     39        scroll_but_bg="'.$module['ext_datas']['scroll_but_bg'].'" 
     40        scroll_but_arrow="'.$module['ext_datas']['scroll_but_arrow'].'" 
     41        scroll_but_bg_over="'.$module['ext_datas']['scroll_but_bg_over'].'" 
     42        scroll_but_arrow_over="'.$module['ext_datas']['scroll_but_arrow_over'].'" 
     43        big_pic_border="'.$module['ext_datas']['big_pic_border'].'" 
     44        next_pic_bg="'.$module['ext_datas']['next_pic_bg'].'" 
     45        next_pic_arrow="'.$module['ext_datas']['next_pic_arrow'].'" 
     46        next_pic_bg_over="'.$module['ext_datas']['next_pic_bg_over'].'" 
     47        next_pic_arrow_over="'.$module['ext_datas']['next_pic_arrow_over'].'" 
     48        background_color="'.$module['ext_datas']['background_color'].'" 
     49        text_color="'.$module['ext_datas']['text_color'].'" 
     50 
     51        text_visible="'.($module['ext_datas']['text_visible'] ? "on" : "off").'" 
     52        fullscreen_visible="'.($module['ext_datas']['fullscreen_visible'] ? "on" : "off").'" 
     53        />'; 
    4254} 
    43  
    44 $flashgal = new flashgal($catid, $home, $permalinkcat); 
    45 $module = $flashgal->module; 
    46  
    47  
    48 $module['ext_datas'] = (!empty($module['ext_datas']) ? unserialize($module['ext_datas']) : array('')); 
    49  
    50 foreach ($module['ext_datas'] as $key => $value) 
    51 { 
    52         $module['ext_datas'][$key] = str_replace("#", "", $value); 
    53 } 
    54  
    55 echo '<?xml version="1.0"?> 
    56  
    57 <settings 
    58 thumb_bg_color="'.$module['ext_datas']['thumb_bg_color'].'" 
    59 thumb_bg_over="'.$module['ext_datas']['thumb_bg_over'].'" 
    60 scroll_but_bg="'.$module['ext_datas']['scroll_but_bg'].'" 
    61 scroll_but_arrow="'.$module['ext_datas']['scroll_but_arrow'].'" 
    62 scroll_but_bg_over="'.$module['ext_datas']['scroll_but_bg_over'].'" 
    63 scroll_but_arrow_over="'.$module['ext_datas']['scroll_but_arrow_over'].'" 
    64 big_pic_border="'.$module['ext_datas']['big_pic_border'].'" 
    65 next_pic_bg="'.$module['ext_datas']['next_pic_bg'].'" 
    66 next_pic_arrow="'.$module['ext_datas']['next_pic_arrow'].'" 
    67 next_pic_bg_over="'.$module['ext_datas']['next_pic_bg_over'].'" 
    68 next_pic_arrow_over="'.$module['ext_datas']['next_pic_arrow_over'].'" 
    69 background_color="'.$module['ext_datas']['background_color'].'" 
    70 text_color="'.$module['ext_datas']['text_color'].'" 
    71  
    72 text_visible="'.($module['ext_datas']['text_visible'] ? "on" : "off").'" 
    73 fullscreen_visible="'.($module['ext_datas']['fullscreen_visible'] ? "on" : "off").'" 
    74 />'; 
    75  
    7655?> 
  • extensions/Flash_Gallery/modules/FlashGallery/main.inc.php

    r3531 r3599  
    1010$block['SCRIPT'] = '<script type="text/javascript" src="'.$full_url.'/swfobject.js"></script>'; 
    1111 
    12 $block['XMLPARAM']=embellish_url( get_root_url().FLASHGAL_PATH.'modules/FlashGallery/config.php?/'.(isset($permalinkcat) ? 'category/'.$permalinkcat : (isset($catid) ? 'category/' . $catid  : 'categories' ))); 
     12$block['XMLPARAM']=embellish_url( get_root_url().FLASHGAL_PATH.'modules/FlashGallery/config.php'); 
     13unset_make_full_url(); 
    1314 
    14 // Ajouter les infos home, catid... pour le xmlparam 
    15  
    16 unset_make_full_url(); 
    1715$module['ext_datas'] = (!empty($module['ext_datas']) ? unserialize($module['ext_datas']) : array('')); 
    1816 
  • extensions/Flash_Gallery/modules/FlashGallery/module.inc.php

    r3531 r3599  
    1919 
    2020$module_data['no_xml_header'] = true;   // Pas d'entete xml du flux genere 
     21 
    2122?> 
  • extensions/Flash_Gallery/modules/FlashPageFlip/FlashPageFlip.tpl

    r3531 r3599  
    1515  {if $block.TRANSPARENT}<param name="wmode" value="transparent");  
    1616  {/if} 
    17   <embed {if $block.TRANSPARENT}wmode="transparent" {/if} src="{$block.FLASHNAME}?{$block.FLASHVARXML}={$block.XMLFEED}" width="100%" height="{$block.HEIGHT}" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowFullScreen="{$block.FULLSCREEN}" allowScriptAccess="sameDomain"></embed> 
     17  <embed {if $block.TRANSPARENT}wmode="transparent" {/if} src="{$block.FLASHNAME}?{$block.FLASHVARXML}={$block.XMLFEED}" width="100%" height="{$block.HEIGHT}" bgcolor="{$block.BGCOLOR}" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowFullScreen="{$block.FULLSCREEN}" allowScriptAccess="sameDomain"></embed> 
    1818</object></noscript> 
    1919 
  • extensions/Flash_Gallery/modules/LeMonde/LeMonde.tpl

    r3531 r3599  
    1 <div class="polaroid_block"> 
     1<div class="LeMonde_block"> 
    22<OBJECT  classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
    33         WIDTH="100%" HEIGHT="{$block.HEIGHT}"> 
     
    77   <PARAM NAME="quality" VALUE="high"> 
    88   <PARAM NAME="bgcolor" VALUE="{$block.BGCOLOR}"> 
    9 {if $block.TRANSPARENT}   <PARAM NAME="wmode" VALUE="transparent">  {/if} 
     9        {if $block.TRANSPARENT}   <PARAM NAME="wmode" VALUE="transparent">  {/if} 
    1010   <PARAM NAME="allowFullScreen" VALUE="{$block.FULLSCREEN}">  
    1111   <EMBED     {if $block.TRANSPARENT}   wmode="transparent"  {/if}  
  • extensions/Flash_Gallery/modules/PhotoFlowGallery/PhotoFlowGallery.tpl

    r3531 r3599  
    1 <div class="ZenGallery_block"> 
     1<div class="PhotoFlowGallery_block"> 
    22        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="{$block.HEIGHT}" id="gal" align="middle"> 
    33        <param name="allowScriptAccess" value="sameDomain" /> 
  • extensions/Flash_Gallery/modules/PhotoFlowGallery/main.inc.php

    r3531 r3599  
    55if (!url_is_remote($block['FLASHNAME'])) 
    66        $block['FLASHNAME'] = embellish_url(get_root_url().$block['FLASHNAME']); 
    7  
    8 $full_url = embellish_url( get_root_url().FLASHGAL_PATH.'modules/TiltViewer/js'); 
    9 $block['SCRIPT'] = '<script type="text/javascript" src="'.$full_url.'/swfobject.js"></script>'; 
    107 
    118 
  • extensions/Flash_Gallery/modules/PhotoStack2/PhotoStack2.tpl

    r3531 r3599  
    1 <div id="postcard_block"> 
     1<div id="Photostack2_block"> 
    22 
    33        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="{$block.HEIGHT}"> 
     
    55                <param name="quality" value="high" /> 
    66                <PARAM NAME="bgcolor" VALUE="{$block.BGCOLOR}"> 
    7 {if $block.TRANSPARENT}   <PARAM NAME="wmode" VALUE="transparent">  {/if} 
     7                {if $block.TRANSPARENT}   <PARAM NAME="wmode" VALUE="transparent">  {/if} 
    88                <PARAM NAME="allowFullScreen" VALUE="{$block.FULLSCREEN}">  
    9                 <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}"> 
     9                <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}" bgcolor="{$block.BGCOLOR}" allowFullScreen="{$block.FULLSCREEN}"> 
    1010                </embed> 
    1111        </object> 
  • extensions/Flash_Gallery/modules/PostCardViewer/PostCardViewer.tpl

    r3531 r3599  
    77         
    88 
    9                 var fo = new SWFObject("{$block.FLASHNAME}", "viewer", "100%", "{$block.HEIGHT}", "8", "#181818");               
     9                var fo = new SWFObject("{$block.FLASHNAME}", "viewer", "100%", "{$block.HEIGHT}", "8", "{$block.BGCOLOR}");              
    1010                                                                                                                 
    1111                // XML GALLERY OPTIONS 
     
    1313                fo.addVariable("langOpenImage", "{$block.langOpenImage}"); 
    1414                fo.addVariable("langAbout", "{$block.langAbout}"); 
     15                fo.addParam("bgcolor", "{$block.BGCOLOR}"); 
    1516 
    1617                fo.addParam("allowFullScreen","{$block.FULLSCREEN}"); 
  • extensions/Flash_Gallery/modules/StackGallery/StackGallery.tpl

    r3531 r3599  
    1 <div class="ZenGallery_block"> 
     1<div class="StackGallery_block"> 
    22        <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="{$block.HEIGHT}" id="gal" align="middle"> 
    33        <param name="allowScriptAccess" value="sameDomain" /> 
  • extensions/Flash_Gallery/modules/ZenGallery/main.inc.php

    r3531 r3599  
    66        $block['FLASHNAME'] = embellish_url(get_root_url().$block['FLASHNAME']); 
    77 
    8 $full_url = embellish_url( get_root_url().FLASHGAL_PATH.'modules/TiltViewer/js'); 
    9 $block['SCRIPT'] = '<script type="text/javascript" src="'.$full_url.'/swfobject.js"></script>'; 
    10  
    118 
    129$module['ext_datas'] = (!empty($module['ext_datas']) ? unserialize($module['ext_datas']) : array('')); 
  • extensions/Flash_Gallery/modules/_Exemple/admin/config.inc.php

    r3531 r3599  
    11<?php 
    22 
    3 // extended parameters for  
    4 // simpleviewer module 
    5  
    6 /* 
    7 Option Name     Default Value   Description 
    8 maxImageWidth   480     Width of the widest image in the gallery. Used to determine the best layout for your gallery (pixels). 
    9 maxImageHeight  480     Height of tallest image in the gallery. Used to determine the best layout for your gallery (pixels). 
    10 textColor       0xFFFFFF        Color of title and caption text (hexidecimal color value). 
    11 frameColor      0xFFFFFF        Color of image frame, navigation buttons and thumbnail frame (hexidecimal color value). 
    12 frameWidth      20      Width of image frame (pixels). 
    13 stagePadding    40      Width of padding around gallery edge (pixels). To have the image flush to the edge of the swf, set this to 0. 
    14 navPadding      40      Distance between image and thumbnails (pixels). 
    15 thumbnailColumns        3       Number of thumbnail columns. To disable thumbnails completely set this value to 0 
    16 thumbnailRows   3       Number of thumbnail rows. To disable thumbnails completely set this value to 0. 
    17 navPosition     left    Position of thumbnails relative to image. Can be "top", "bottom","left" or "right". 
    18 vAlign  center  Vertical placment of the image and thumbnails within the SWF. Can be "center", "top" or "bottom". 
    19                                 For large format galleries this is best set to "center". For small format galleries setting this to "top" or "bottom" can help get the image flush to the edge of the swf. 
    20 hAlign  center  Horizontal placement of the image and thumbnails within the SWF. Can be "center", "left" or "right". 
    21                                 For large format galleries this is best set to "center". For small format galleries setting this to "left" or "right" can help get the image flush to the edge of the swf. 
    22 title   SimpleViewer Gallery    Text to display as gallery Title 
    23 enableRightClickOpen    true    Whether to display a 'Open In new Window...' dialog when right-clicking on an image. Can be "true" or "false" 
    24 backgroundImagePath             Relative or absolute path to a JPG or SWF to load as the gallery background. 
    25                                 Relative paths are relative to the HTML document that contains SimpleViewer. For example: "images/bkgnd.jpg". 
    26 */ 
    273 
    284if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); 
    295 
    30 $navPosition = array( l10n('SV_top'), l10n('SV_bottom'), l10n('SV_left'), l10n('SV_rigt')); 
    31 $vAlign = array( l10n('SV_top'), l10n('SV_center'), l10n('SV_bottom')); 
    32 $hAlign = array( l10n('SV_left'), l10n('SV_center'), l10n('SV_rigt')); 
    33  
    346// default values 
    35 if (!isset($ext_datas)) $ext_datas = array( 
    36                 'maxImageWidth'                 => "480",  
    37                 'maxImageHeight'                => "480" , 
    38                 'textColor'                             => "0xFFFFFF" , 
    39                 'frameColor'                    => "0xFFFFFF" , 
    40                 'frameWidth'                    => "20" , 
    41                 'stagePadding'                  => "40" , 
    42                 'navPadding'                    => "40" , 
    43                 'thumbnailColumns'              => "3" , 
    44                 'thumbnailRows'                 => "3" , 
    45                 'navPosition'                   => 3, //"left" , 
    46                 'vAlign'                                => 2, //"center" , 
    47                 'hAlign'                                => 2, //"center" , 
    48                 'title'                                 => "SimpleViewer Gallery" , 
    49                 'enableRightClickOpen'  => true , 
    50                 'backgroundImagePath'   => "" ); 
    51  
    52  
    53 // Enregistrement de la configuration 
    54 if (isset($_POST['submit']) and !is_adviser()) 
    55 { 
    56  
    57         foreach ($ext_datas as $key =>$value) 
    58         { 
    59                 if ($key == "enableRightClickOpen") 
    60                         $ext_datas[$key] = isset($_POST['SV_'.$key]); 
    61                 else 
    62                         $ext_datas[$key] = $_POST['SV_'.$key]; 
    63         } 
    64 } 
    65  
    66 foreach ($ext_datas as $key => $value) 
    67 { 
    68  
    69         if ($key == "enableRightClickOpen") 
    70                 $template->assign(array( 'SV_'.$key => (isset($ext_datas[$key]) ? 'checked="checked"': ''))); 
    71         elseif ($key == "navPosition") 
    72         { 
    73                 $i=1; 
    74                 foreach ( $navPosition as $order ) //on parcours le tableau  
    75                 { 
    76                         $template->append('SV_NavPosition',array('ID' => $i,'NAME' => $order,'SELECTED' => ($ext_datas['navPosition'] == $i ? 'selected' : ''))); 
    77                         $i++;    
    78                 } 
    79         } 
    80         elseif ($key == "vAlign") 
    81         { 
    82                 $i=1; 
    83                 foreach ( $vAlign as $order ) //on parcours le tableau  
    84                 { 
    85                         $template->append('SV_vAlign',array('ID' => $i,'NAME' => $order,'SELECTED' => ($ext_datas['vAlign'] == $i ? 'selected' : ''))); 
    86                         $i++;    
    87                 } 
    88         } 
    89         elseif ($key == "hAlign") 
    90         { 
    91                 $i=1; 
    92                 foreach ( $hAlign as $order ) //on parcours le tableau  
    93                 { 
    94                         $template->append('SV_hAlign',array('ID' => $i,'NAME' => $order,'SELECTED' => ($ext_datas['hAlign'] == $i ? 'selected' : ''))); 
    95                         $i++;    
    96                 } 
    97         } 
    98         else 
    99                 $template->assign(array( 'SV_'.$key => $ext_datas[$key])); 
    100  
    101 } 
    102 /* 
    103 $template->append('head_elements',' 
    104                         <script type="text/javascript" src="'.PHPWG_PLUGINS_PATH.'AddThis/farbtastic/farbtastic.js"></script> 
    105                         <link href="'.PHPWG_PLUGINS_PATH.'AddThis/farbtastic/farbtastic.css" rel="stylesheet" type="text/css"  />'); 
    106 */ 
    107 $template->assign(array('OTHERS_SCRIPT' => 
    108                         '<script type="text/javascript" src="'.FLASHGAL_PATH.'farbtastic/farbtastic.js"></script> 
    109                         <link href="'.FLASHGAL_PATH.'farbtastic/farbtastic.css" rel="stylesheet" type="text/css"  />')); 
     7if (!isset($ext_datas)) $ext_datas = array(); 
    1108 
    1119$template->set_filenames(array('module_options' => dirname(__FILE__) . '/config.tpl')); 
  • extensions/Flash_Gallery/modules/_Exemple/admin/config.tpl

    r3531 r3599  
    1 <br> 
    2 <div id="colorpicker" style="float: right;"></div>       
    3 <table> 
    4  
    5         <tr> 
    6                 <td colspan="3" align="left"><label>{'SV_options_label'|@translate}</label> 
    7                 </td> 
    8         </tr> 
    9         <tr> 
    10                 <td>{'SV_maxImageWidth'|@translate}</td> 
    11                 <td colspan="2"><input type="text" size="3" maxlength="3" name="SV_maxImageWidth" value="{$SV_maxImageWidth}" />&nbsp;px</td> 
    12         </tr> 
    13         <tr> 
    14                 <td>{'SV_maxImageHeight'|@translate}</td> 
    15                 <td colspan="2"><input type="text" size="3" maxlength="3" name="SV_maxImageHeight" value="{$SV_maxImageHeight}" />&nbsp;px</td> 
    16         </tr> 
    17         <tr> 
    18                 <td>{'SV_textColor'|@translate}</td> 
    19                 <td colspan="2"><input type="text" size="7" maxlength="7" name="SV_textColor" class="colorwell" value="{$SV_textColor}" /></td> 
    20         </tr> 
    21         <tr> 
    22                 <td>{'SV_frameColor'|@translate}</td>                    
    23                 <td colspan="2"><input type="text" size="7" maxlength="7" name="SV_frameColor" class="colorwell" value="{$SV_frameColor}" /></td> 
    24         </tr> 
    25         <tr> 
    26                 <td>{'SV_frameWidth'|@translate}</td> 
    27                 <td colspan="2"><input type="text" size="2" maxlength="2" name="SV_frameWidth" value="{$SV_frameWidth}" />&nbsp;px</td> 
    28         </tr> 
    29         <tr> 
    30                 <td>{'SV_stagePadding'|@translate}</td> 
    31                 <td colspan="2"><input type="text" size="2" maxlength="2" name="SV_stagePadding" value="{$SV_stagePadding}" />&nbsp;px</td> 
    32         </tr> 
    33         <tr> 
    34                 <td>{'SV_navPadding'|@translate}</td> 
    35                 <td colspan="2"><input type="text" size="2" maxlength="2" name="SV_navPadding" value="{$SV_navPadding}" />&nbsp;px</td> 
    36         </tr> 
    37         <tr> 
    38                         <td>&nbsp;</td> 
    39                         <td>{'SV_thumbnailColumns'|@translate}</label></td> 
    40                         <td>{'SV_thumbnailRows'|@translate}</td> 
    41         </tr> 
    42         <tr> 
    43                 <td>{'SV_thumbnail'|@translate}</td> 
    44                 <td><input type="text" size="2" maxlength="2" name="SV_thumbnailColumns" value="{$SV_thumbnailColumns}" /></td> 
    45                 <td><input type="text" size="2" maxlength="2" name="SV_thumbnailRows" value="{$SV_thumbnailRows}" /></td> 
    46         </tr> 
    47  
    48         <tr> 
    49                 <td>{'SV_NavPosition'|@translate}</td> 
    50                 <td colspan="2"> 
    51                         <select id="SV_NavPosition" name="SV_NavPosition"> 
    52                         {foreach from=$SV_NavPosition item=SV_NavPosition} 
    53                                 <option value="{$SV_NavPosition.ID}" {$SV_NavPosition.SELECTED}>{$SV_NavPosition.NAME}</option> 
    54                         {/foreach} 
    55                         </select> 
    56                 </td> 
    57         </tr> 
    58                 <td>{'SV_vAlign'|@translate}</td> 
    59                 <td colspan="2"> 
    60                         <select id="SV_vAlign" name="SV_vAlign"> 
    61                         {foreach from=$SV_vAlign item=SV_vAlign} 
    62                                 <option value="{$SV_vAlign.ID}" {$SV_vAlign.SELECTED}>{$SV_vAlign.NAME}</option> 
    63                         {/foreach} 
    64                         </select> 
    65                 </td> 
    66         </tr> 
    67         </tr> 
    68                 <td>{'SV_hAlign'|@translate}</td> 
    69                 <td colspan="2"> 
    70                         <select id="SV_hAlign" name="SV_hAlign"> 
    71                         {foreach from=$SV_hAlign item=SV_hAlign} 
    72                                 <option value="{$SV_hAlign.ID}" {$SV_hAlign.SELECTED}>{$SV_hAlign.NAME}</option> 
    73                         {/foreach} 
    74                         </select> 
    75                 </td> 
    76         </tr> 
    77          
    78         <tr> 
    79                 <td>{'SV_title'|@translate}</td> 
    80                 <td colspan="2"><input type="text" size="30" maxlength="30" name="SV_title" value="{$SV_title}" /></td> 
    81         </tr> 
    82          
    83         <tr> 
    84                 <td>{'SV_enableRightClickOpen'|@translate}</td> 
    85                 <td colspan="2"><input type="checkbox" name="SV_enableRightClickOpen" {$SV_enableRightClickOpen}/></td> 
    86         </tr> 
    87          
    88 </table> 
    89  
    90 {literal} 
    91  
    92 <script type="text/javascript" charset="utf-8"> 
    93  $(document).ready(function() { 
    94      var f = $.farbtastic('#colorpicker'); 
    95      var selected; 
    96      $('.colorwell') 
    97        .each(function () { f.linkTo(this);  }) 
    98        .focus(function() { 
    99         f.linkTo(this); 
    100  
    101        }); 
    102   }); 
    103 </script> 
    104 {/literal} 
    105          
     1<div style="text-align:center;"> 
     2<br>{'flashgal_no_options'|@translate} 
     3</div> 
  • extensions/Flash_Gallery/template/blocks.tpl

    r3531 r3599  
    1 <div class="content flash_block"> 
     1<div class="content flashgal_block"> 
    22{foreach from=$blocks item=block key=key} 
    33    <div id="flashgal_block_{$block.ID}"> 
  • extensions/Flash_Gallery/template/index.css

    r3531 r3599  
    33} 
    44 
    5 .stuffs_block { 
     5.flashgal_block { 
    66  background-color: transparent; 
    77  background-image: none; 
     
    1111} 
    1212 
    13 .stuffs { 
    14   margin: 1em 0; 
     13.flashgal { 
     14  margin: 0 0 1em; 
    1515  overflow: hidden; 
    1616} 
     
    5757 
    5858/* Hack IE6 */ 
    59 * html  .stuffs, * html .middle_block { overflow-y: visible; } 
     59* html  .flashgal, * html .middle_block { overflow-y: visible; } 
Note: See TracChangeset for help on using the changeset viewer.