Changeset 3535


Ignore:
Timestamp:
07/07/09 00:14:04 (11 years ago)
Author:
tiico
Message:

Add 2 new parameters from Piclens/Cooliris plugin : swf file link and number of rows

Location:
extensions/PWG_Stuffs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/PWG_Stuffs/modules/piclenswall/main.inc.php

    r3300 r3535  
    4242  $block['SHOWSEARCH'] = (@$obj->my_config['piclens_wall_showsearch'] ? "true" : "false"); 
    4343  $block['TRANSPARENT'] = @$obj->my_config['piclens_wall_transparent']; 
     44  $block['SWF_LINK'] = ( (isset($obj->my_config['piclens_wall_swflocal']) and @$obj->my_config['piclens_wall_swflocal']) ? @$obj->root_site_piclens.PICLENS_PATH.'swf/cooliris.swf' : 'http://apps.cooliris.com/embed/cooliris.swf'); 
     45  $block['NBLIGNE'] = (isset($obj->my_config['piclens_wall_nb_ligne']) ? @$obj->my_config['piclens_wall_nb_ligne'] : "3"); 
     46   
    4447} 
    4548else 
  • extensions/PWG_Stuffs/template/piclenswall.tpl

    r3300 r3535  
    11{if !empty($block.RSSFEED)} 
    22<object id="o" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="{$block.PIC_HEIGHT}"> 
    3                 <param name="movie" value="http://apps.cooliris.com/embed/cooliris.swf?feed={$block.RSSFEED}&amp;style={$block.COLOR}&amp;showEmbed={$block.SHOWEMBED}&amp;showFullScreen={$block.SHOWFULLSCREEN}&amp;showSearch={$block.SHOWSEARCH}" /> 
     3                <param name="movie" value="{$block.SWF_LINK}?feed={$block.RSSFEED}&amp;style={$block.COLOR}&amp;numRows={$block.NBLIGNE}&amp;showEmbed={$block.SHOWEMBED}&amp;showFullScreen={$block.SHOWFULLSCREEN}&amp;showSearch={$block.SHOWSEARCH}" /> 
    44                <param name="allowFullScreen" value="{$block.SHOWFULLSCREEN}" /> 
    55                <param name="showEmbed" value="{$block.SHOWEMBED}" /> 
    66                <param name="showSearch" value="{$block.SHOWSEARCH}" /> 
    77                <param name="allowScriptAccess" value="always" /> 
     8        <param name="flashvars" value="feed=api://www.flickr.com/&amp;style={$block.COLOR}&amp;numRows={$block.NBLIGNE}" /> 
    89                {if $block.TRANSPARENT} 
    910                <param name="wmode" value="transparent" /> 
    1011    {/if} 
    11                 <embed {if $block.TRANSPARENT}WMODE="transparent" {/if}type="application/x-shockwave-flash" src="http://apps.cooliris.com/embed/cooliris.swf?feed={$block.RSSFEED}&amp;style={$block.COLOR}&amp;showEmbed={$block.SHOWEMBED}&amp;showFullScreen={$block.SHOWFULLSCREEN}&amp;showSearch={$block.SHOWSEARCH}" width="100%" height="{$block.PIC_HEIGHT}" showEmbed="{$block.SHOWEMBED}" showSearch="{$block.SHOWSEARCH}" allowFullScreen="{$block.SHOWFULLSCREEN}" allowScriptAccess="always" /> 
     12                <embed {if $block.TRANSPARENT}WMODE="transparent" {/if}type="application/x-shockwave-flash" src="{$block.SWF_LINK}?feed={$block.RSSFEED}&amp;style={$block.COLOR}&amp;numRows={$block.NBLIGNE}&amp;showEmbed={$block.SHOWEMBED}&amp;showFullScreen={$block.SHOWFULLSCREEN}&amp;showSearch={$block.SHOWSEARCH}" width="100%" height="{$block.PIC_HEIGHT}" showEmbed="{$block.SHOWEMBED}" showSearch="{$block.SHOWSEARCH}" allowFullScreen="{$block.SHOWFULLSCREEN}" allowScriptAccess="always"  style="{$block.COLOR}" numRows="{$block.NBLIGNE}/> 
    1213</object> 
    1314{/if} 
Note: See TracChangeset for help on using the changeset viewer.