Changeset 14481


Ignore:
Timestamp:
Apr 27, 2012, 7:51:01 PM (9 years ago)
Author:
Zaphod
Message:

version 2.2.0.beta for Piwigo 2.4

Location:
extensions/stripped
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped/readme.txt

    r14451 r14481  
    3131Changelog
    3232---------
     33
     34*** version 2.2.0.beta
     35
     36- first version for Piwigo 2.4 (beta test)
    3337
    3438*** version 2.1.4
  • extensions/stripped/template/mainpage_categories.tpl

    r12960 r14481  
    99                <div class="illustration">
    1010                        <a href="{$cat.URL}">
    11                                 <img src="{$cat.TN_SRC}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}">
     11                                <img src="{$pwg->derivative_url($derivative_params, $cat.representative.src_image)}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}">
    1212                        </a>
    1313                </div>
  • extensions/stripped/template/picture.tpl

    r12968 r14481  
     1{define_derivative name='derivative_stripped_pict' type='xlarge'}
     2{assign var=derivative value=$pwg->derivative($derivative_stripped_pict, $current.src_image)}
     3{assign var='size' value=$derivative->get_size()}
    14{literal}
    25<script type="text/javascript">
    3 var image_w = {/literal}{$WIDTH_IMG}{literal}
    4 var image_h = {/literal}{$HEIGHT_IMG}{literal}
     6var image_w = {/literal}{$size[0]}{literal}
     7var image_h = {/literal}{$size[1]}{literal}
    58</script>
    69{/literal}
  • extensions/stripped/template/picture_content.tpl

    r12960 r14481  
    44        $this->assign( 'stripped', $stripped );
    55{/php}
    6 {if isset($high)}
     6{if isset($U_ORIGINAL)}
    77        {if ($HDShadowbox_loaded)}
    88                {assign var='pwghigh' value=true}
     
    1212{/if}
    1313<div id="theImg" {if ($stripped.imageFrame)}class="img_frame"{/if}>
    14         {if isset($high)}
    15                 {if isset($pwghigh)}<a href="{$high.U_HIGH}" rel="shadowbox" class="hd_link">&nbsp;</a>{/if}
    16                 {if isset($winhigh)}<div onclick="openDisplayHigh('{$high.U_HIGH}');" class="hd_link">&nbsp;</div>{/if}
    17                 {if ($stripped.imagePreloadHD)}<div class="preload" style="display:none;">{$high.U_HIGH}</div>{/if}
     14        {if isset($U_ORIGINAL)}
     15                {if isset($pwghigh)}<a href="{$U_ORIGINAL}" rel="shadowbox" class="hd_link">&nbsp;</a>{/if}
     16                {if isset($winhigh)}<div onclick="openDisplayHigh('{$U_ORIGINAL}');" class="hd_link">&nbsp;</div>{/if}
     17                {if ($stripped.imagePreloadHD)}<div class="preload" style="display:none;">{$U_ORIGINAL}</div>{/if}
    1818        {/if}
    1919        {if ($stripped.imageArrows) }
     
    2828                {/if}
    2929        {/if}
    30         <img src="{$SRC_IMG}" style="width:{$WIDTH_IMG}px;height:{$HEIGHT_IMG}px;" alt="{$ALT_IMG}" id="theMainImage" class="hideTabs">
     30  {define_derivative name='derivative_stripped_pict' type='xlarge'}
     31  {assign var=derivative value=$pwg->derivative($derivative_stripped_pict, $current.src_image)}
     32        <img src="{$derivative->get_url()}" {$derivative->get_size_htm()} alt="{$ALT_IMG}" id="theMainImage" class="hideTabs">
    3133</div>
  • extensions/stripped/template/thumbnails.tpl

    r12893 r14481  
    1 {if !empty($thumbnails)}
    2 {php}
    3         global $pwg_loaded_plugins, $conf, $stripped;
    4         $this->assign('downloadMulti_loaded', isset($pwg_loaded_plugins[ 'download_multi' ]));
    5         $this->assign( 'stripped', $stripped );
    6 {/php}
     1{if !empty($thumbnails)}{strip}
     2{combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'}
     3{combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'}
     4{*define_derivative name='derivative_params' width=160 height=90 crop=true*}
    75<ul class="thumbList">
    8         {strip}{foreach from=$thumbnails item=thumbnail}
     6        {foreach from=$thumbnails item=thumbnail}
     7                {assign var=derivative value=$pwg->derivative($derivative_params, $thumbnail.src_image)}
     8                {php}
     9                        global $pwg_loaded_plugins, $conf, $stripped;
     10                        $this->assign('downloadMulti_loaded', isset($pwg_loaded_plugins[ 'download_multi' ]));
     11                        $this->assign( 'stripped', $stripped );
     12                {/php}
    913                <li>
    1014                        <span class="wrap1">
    1115                                <span class="wrap2 {if !($stripped.showThumbLegend)}wrap2full{/if}">
    1216                                        <a href="{$thumbnail.URL}"><div class="thumbframe"><div class="thumbpos">
    13                                                 <img class="thumbnail" src="{$thumbnail.TN_SRC}" alt="{$thumbnail.TN_ALT}" {if ((isset($thumbnail.NAME))&!($downloadMulti_loaded))}title="{$thumbnail.NAME}"{else}title="{$thumbnail.TN_TITLE}"{/if} />
     17                                                <img class="thumbnail" {if !$derivative->is_cached()}data-{/if}src="{$derivative->get_url()}" alt="{$thumbnail.TN_ALT}" {if ((isset($thumbnail.NAME))&!($downloadMulti_loaded))}title="{$thumbnail.NAME}"{else}title="{$thumbnail.TN_TITLE}"{/if} />
    1418                                                {if (isset($stripped.imagePreload) & isset($stripped.imagePreloadThumbs))}<div class="preload" style="display:none;">{$thumbnail.FILE_PATH}</div>{/if}
    1519                                        </div></div></a>
     
    3539                        </span>
    3640                </li>
    37         {/foreach}{/strip}
     41        {/foreach}
    3842</ul>
    39 {/if}
     43{/strip}{/if}
  • extensions/stripped/themeconf.inc.php

    r12961 r14481  
    6565}
    6666
     67// Preload function
     68
    6769if (isset($stripped['imagePreload']) && ($user['theme'] == 'stripped')) {
    6870        add_event_handler('loc_end_picture', 'assign_next_images_url');
     
    112114                }
    113115
    114                 $picturenext[$in]['image_url'] = get_image_url( $picturenext[$in] );
     116                $picturenext[$in]['image_url'] = ''; /*get_image_url( $picturenext[$in] );*/
    115117        }
    116118
     
    123125}
    124126
    125 
    126127?>
Note: See TracChangeset for help on using the changeset viewer.