Ignore:
Timestamp:
11/19/09 00:51:01 (10 years ago)
Author:
tiico
Message:

[Flash_Gallery] bug 1230 : Update JWImageRotator module with autostart option

Location:
extensions/Flash_Gallery/modules/JWImageRotator
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extensions/Flash_Gallery/modules/JWImageRotator/JWImageRotator.tpl

    r3531 r4312  
    99 
    1010                // XML GALLERY OPTIONS 
    11                 fo.addVariable("{$block.FLASHVARXML}", "{$block.XMLFEED}"); 
     11                fo.addVariable("{$block.FLASHVARXML}", "{$block.XMLFEED}{if $block.autostart=='true'}&autostart=true{/if}"); 
    1212// Ajout de toutes les variables necessaires 
    1313                fo.addVariable("height",                "{$block.height}"); 
  • extensions/Flash_Gallery/modules/JWImageRotator/admin/config.inc.php

    r3531 r4312  
    2727   'shuffle'  =>'false),Set this to true to playback the images in random order. 
    2828   'volume'  =>'80', sets the startup volume of the MP3 background music.  
     29   'autostart' => false, set to tre to autostart the slideshow 
    2930*/ 
    3031 
     
    5455   'repeat'                     => false, 
    5556   'rotatetime'                 => '5', 
    56    'shuffle'                    => false 
     57   'shuffle'                    => false, 
     58   'autostart'          => false 
    5759); 
    5860 
     
    6668        { 
    6769                if ($key == "overstretch" or $key == "showicons" OR $key == "shownavigation" OR $key == "usefullscreen"  
    68                         OR $key == "linkfromdisplay" OR $key == "repeat" OR $key == "shuffle") 
     70                        OR $key == "linkfromdisplay" OR $key == "repeat" OR $key == "shuffle" OR $key == "autostart") 
    6971                        $ext_datas[$key] = isset($_POST['JWIR_'.$key]); 
    7072                else 
     
    7779 
    7880        if ($key == "showicons" OR $key == "shownavigation" OR $key == "usefullscreen"  
    79                 OR $key == "linkfromdisplay" OR $key == "repeat" OR $key == "shuffle") 
     81                OR $key == "linkfromdisplay" OR $key == "repeat" OR $key == "shuffle" OR $key == "autostart") 
    8082                $template->assign(array( 'JWIR_'.$key => ($ext_datas[$key] ? 'checked="checked"': ''))); 
    8183        elseif ($key == "transition") 
  • extensions/Flash_Gallery/modules/JWImageRotator/admin/config.tpl

    r3531 r4312  
    9999                <td colspan="2"><input type="checkbox" name="JWIR_shuffle" {$JWIR_shuffle}/></td> 
    100100        </tr> 
     101        <tr> 
     102                <td>{'JWIR_autostart'|@translate}</td> 
     103                <td colspan="2"><input type="checkbox" name="JWIR_autostart" {$JWIR_autostart}/></td> 
     104        </tr> 
    101105         
    102106</table> 
  • extensions/Flash_Gallery/modules/JWImageRotator/language/fr_FR/module.lang.php

    r3531 r4312  
    4343$lang['JWIR_fit_label']                         = 'Non proportionnel'; 
    4444 
     45$lang['JWIR_autostart']                         = 'Démarrer automatiquement le diaporame'; 
    4546 
    4647?> 
  • extensions/Flash_Gallery/modules/JWImageRotator/main.inc.php

    r3531 r4312  
    1717{ 
    1818        if ($key == "showicons" OR $key == "shownavigation" OR $key == "usefullscreen"  
    19                 OR $key == "linkfromdisplay" OR $key == "repeat" OR $key == "shuffle") 
     19                OR $key == "linkfromdisplay" OR $key == "repeat" OR $key == "shuffle" OR $key == "autostart") 
    2020                $block[$key] = ($value ? "true" : "false"); 
    2121        else 
Note: See TracChangeset for help on using the changeset viewer.