Ignore:
Timestamp:
Jan 23, 2015, 7:56:01 PM (10 years ago)
Author:
SergeD
Message:

version 1.0.15 - please refer to changelog for more details

Location:
extensions/GDThumb/template
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/GDThumb/template/gdthumb_cat.tpl

    r30225 r30901  
    1515      <span class="thumbName">
    1616        <span class="thumbTitle">{$cat.NAME}
    17         {if !empty($cat.icon_ts)}
    18         <img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" alt="(!)">
     17        {if $GDThumb.thumb_mode_album !== "overlay-ex"}
     18          {if !empty($cat.icon_ts)}
     19          <img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" alt="(!)">
     20          {/if}
    1921        {/if}
    2022        </span>
    2123        {if $GDThumb.thumb_mode_album == "overlay-ex"}
    22           <span class="thumbInfo">
    23             <span class="item-num">{$cat.count_images}</span>
    24             <span class="glyphicon glyphicon-th-large grid-gallery-icon"></span>
    25           </span>
     24        <span class="thumbInfo">
     25          <span class="item-num">{$cat.count_images}</span>
     26          <span class="glyphicon glyphicon-th-large grid-gallery-icon"></span>
     27          {if !empty($cat.icon_ts)}
     28          <span class="new-thumb glyphicon glyphicon-asterisk" title="{$cat.icon_ts.TITLE}" alt="(!)"></span>
     29          {/if}
     30        </span>
    2631        {elseif $GDThumb.thumb_metamode !== "hide"}
    2732          {if isset($cat.INFO_DATES) }
  • extensions/GDThumb/template/gdthumb_thumb.tpl

    r30890 r30901  
    11{if !empty($thumbnails)}
    2 
     2{*
     3  {$thumbnails|print_r}
     4*}
    35{foreach from=$thumbnails item=thumbnail}
    46{assign var=derivative value=$pwg->derivative($GDThumb_derivative_params, $thumbnail.src_image)}
     7{assign var=media_type value={media_type file=$thumbnail.file}}
     8
    59<li class="gdthumb">
    610  {if $GDThumb.thumb_mode_photo !== "hide" }
     
    2024      {/if}
    2125    {/if}
     26    {if $GDThumb.thumb_mode_album !== "overlay-ex"}
    2227      {if !empty($thumbnail.icon_ts)}
    2328      <img title="{$thumbnail.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent.png" alt="(!)">
    2429      {/if}
     30    {/if}
    2531    </span>
    2632    {if $GDThumb.thumb_mode_album == "overlay-ex"}
    2733      <span class="thumbInfo">
    2834        <span class="hit-num">{$thumbnail.hit}</span>
    29         <span class="glyphicon {if $derivative->is_cached()}{if $derivative->get_url()|strstr:"/piwigo-videojs/"}glyphicon-film{else}glyphicon-picture{/if}{else}glyphicon-picture{/if}"></span>
     35        <span class="glyphicon {if $media_type=="video"}glyphicon-film{elseif $media_type=="music"}glyphicon-music{elseif $media_type=="doc"}glyphicon-file{elseif $media_type=="pdf"}glyphicon-book{else}glyphicon-picture{/if}"></span>
     36        {if !empty($thumbnail.icon_ts)}
     37        <span class="new-thumb glyphicon glyphicon-asterisk" title="{$thumbnail.icon_ts.TITLE}" alt="(!)"></span>
     38        {/if}
    3039        {if $thumbnail.rating_score > 0}
    3140        <span class="rank-num glyphicon glyphicon-star">{$thumbnail.rating_score|string_format:"%d"}</span>
Note: See TracChangeset for help on using the changeset viewer.