Changeset 21216


Ignore:
Timestamp:
03/05/13 20:01:31 (7 years ago)
Author:
flop25
Message:

* version 2.4.0

  • update for 2.5:

--website for comments (r21215)
--ajax loader and thumbnails icons
--navigation bar updated (r21210)

Location:
extensions/stripped
Files:
3 added
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/stripped/readme.txt

    r20410 r21216  
    3131Changelog 
    3232--------- 
     33 
     34*** version 2.4.0 
     35 
     36- update for 2.5: 
     37--website for comments 
     38--ajax loader and thumbnails icons 
     39--navigation bar updated 
    3340 
    3441*** version 2.3.2 
  • extensions/stripped/template/comment_list.tpl

    r21215 r21216  
    1313        {foreach from=$comments item=comment name=comment_loop} 
    1414                <li class="commentElement {if $smarty.foreach.comment_loop.index is odd}odd{else}even{/if}"> 
    15                         {if isset($comment.src_image)} 
     15      {if isset($comment.src_image)} 
     16      {if isset($comment_derivative_params)} 
     17      {assign var=derivative value=$pwg->derivative($comment_derivative_params, $comment.src_image)} 
     18      {else} 
     19      {assign var=derivative value=$pwg->derivative($derivative_params, $comment.src_image)} 
     20      {/if} 
     21      {if !$derivative->is_cached()} 
     22      {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} 
     23      {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} 
     24      {/if} 
    1625                                <div class="illustration"> 
    1726                                        <a href="{$comment.U_PICTURE}"> 
    18                                                 <img src="{$pwg->derivative_url($derivative_params, $comment.src_image)}" alt="{$comment.ALT}"> 
     27            <img {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}{$themeconf.icon_dir}/img_small.png" data-src="{$derivative->get_url()}"{/if} alt="{$comment.ALT}"> 
    1928                                        </a> 
    2029                                </div> 
  • extensions/stripped/template/index.tpl

    r21210 r21216  
    100100                                                {/if} 
    101101                                </div> 
     102        <div class="loader"><img src="{$ROOT_URL}{$themeconf.img_dir}/ajax_loader.gif"></div> 
    102103                        {/if} 
    103104                        {if !empty($PLUGIN_INDEX_CONTENT_END) }<div class="content_block">{$PLUGIN_INDEX_CONTENT_END}</div>{/if} 
  • extensions/stripped/template/mainpage_categories.tpl

    r14687 r21216  
    33        $this->assign( 'stripped', $stripped ); 
    44{/php} 
     5{footer_script} 
     6  var error_icon = "{$ROOT_URL}{$themeconf.icon_dir}/errors_small.png", max_requests = {$maxRequests}; 
     7{/footer_script} 
     8<div class="loader"><img src="{$ROOT_URL}{$themeconf.img_dir}/ajax_loader.gif"></div> 
    59<ul class="thumbnailCategories"> 
    610  {foreach from=$category_thumbnails item=cat name=catloop} 
     11  {if !$derivative->is_cached()} 
     12  {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} 
     13  {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} 
     14  {/if} 
     15  {assign var=derivative value=$pwg->derivative($stripped.albumSize, $cat.representative.src_image)} 
    716  <li class="odd{if ($smarty.foreach.catloop.iteration-1) % 2 == 0}0{else}1{/if}" {if ($stripped.albumFrame)}onclick="window.location='{$cat.URL}';"{/if}> 
    817        <div class="thumbnailCategory"> 
    918                <div class="illustration"> 
    1019                        <a href="{$cat.URL}"> 
    11                                 <img src="{$pwg->derivative_url($stripped.albumSize, $cat.representative.src_image)}" alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}"> 
     20        <img {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}{$themeconf.icon_dir}/img_small.png" data-src="{$derivative->get_url()}"{/if} alt="{$cat.TN_ALT}" title="{$cat.NAME|@replace:'"':' '|@strip_tags:false} - {'display this album'|@translate}"> 
    1221                        </a> 
    1322                </div> 
  • extensions/stripped/template/thumbnails.tpl

    r20443 r21216  
    33        $this->assign( 'stripped', $stripped ); 
    44{/php} 
     5{footer_script} 
     6  var error_icon = "{$ROOT_URL}{$themeconf.icon_dir}/errors_small.png", max_requests = {$maxRequests}; 
     7{/footer_script} 
    58{if !empty($thumbnails)}{strip} 
    6 {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} 
    7 {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} 
    89<ul class="thumbList"> 
    910        {foreach from=$thumbnails item=thumbnail} 
    1011                {assign var=derivative value=$pwg->derivative($stripped.thumbSize, $thumbnail.src_image)} 
    11                 {php} 
     12  {if !$derivative->is_cached()} 
     13  {combine_script id='jquery.ajaxmanager' path='themes/default/js/plugins/jquery.ajaxmanager.js' load='footer'} 
     14  {combine_script id='thumbnails.loader' path='themes/default/js/thumbnails.loader.js' require='jquery.ajaxmanager' load='footer'} 
     15  {/if} 
     16  {php} 
    1217                        global $pwg_loaded_plugins, $conf, $stripped; 
    13                         $this->assign('downloadMulti_loaded', isset($pwg_loaded_plugins[ 'download_multi' ])); 
    1418                        $this->assign( 'stripped', $stripped ); 
    1519                {/php} 
     
    1822                                <span class="wrap2 {if !($stripped.showThumbLegend)}wrap2full{/if}"> 
    1923                                        <a href="{$thumbnail.URL}"><div class="thumbframe"><div class="thumbpos"> 
    20                                                 <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|@replace:'"':' '}"{else}title="{$thumbnail.TN_TITLE}"{/if} /> 
     24                                                <img class="thumbnail" {if $derivative->is_cached()}src="{$derivative->get_url()}"{else}src="{$ROOT_URL}{$themeconf.icon_dir}/img_small.png" data-src="{$derivative->get_url()}"{/if} alt="{$thumbnail.TN_ALT}" title="{if isset($thumbnail.NAME)}{$thumbnail.NAME|@replace:'"':' '}{else}{$thumbnail.TN_TITLE}{/if}"> 
    2125                                                {if (isset($stripped.imagePreload) & isset($stripped.imagePreloadThumbs))} 
    2226                                                        {assign var=preload value=$pwg->derivative($stripped.imageSize, $thumbnail.src_image)} 
  • extensions/stripped/theme.css

    r21215 r21216  
    618618.navigationBar { 
    619619  padding: 0.5em; 
    620   text-align: right; 
     620  text-align: center; 
    621621} 
    622622 
     
    15001500#content .stuffs_block  .wrap2 { height:130px!important;} 
    15011501#content .stuffs_block .wrap1 .wrap2full { height:160px!important;} 
     1502/* Loader gif new in 2.5 */ 
     1503.loader { 
     1504  display: none; 
     1505  position: fixed; 
     1506  right: 0; 
     1507  bottom: 0; 
     1508} 
  • extensions/stripped/themeconf.inc.php

    r17961 r21216  
    5050  'theme_dir' => 'stripped', 
    5151  'icon_dir' => 'themes/stripped/icon', 
     52  'img_dir'      => 'themes/stripped/images', 
    5253  'admin_icon_dir' => 'themes/default/icon/admin', 
    5354  'mime_icon_dir' => 'themes/default/icon/mimetypes/', 
Note: See TracChangeset for help on using the changeset viewer.