Changeset 3188 for trunk/template/yoga


Ignore:
Timestamp:
Mar 11, 2009, 6:25:26 PM (15 years ago)
Author:
patdenice
Message:

Move get_icon function.

Location:
trunk/template/yoga
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/template/yoga/mainpage_categories.tpl

    r3120 r3188  
    1313                                <h3>
    1414                                        <a href="{$cat.URL}">{$cat.NAME}</a>
    15                                         {$cat.ICON_TS}
     15                                        {if !empty($cat.icon_ts)}
     16                                        <img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" class="icon" alt="(!)" />
     17                                        {/if}
    1618                                </h3>
    1719                <div class="text">
  • trunk/template/yoga/menubar_categories.tpl

    r3171 r3188  
    2222      <span class="{if $cat.nb_images > 0}menuInfoCat{else}menuInfoCatByChild{/if}" title="{$cat.TITLE}">[{$cat.count_images}]</span>
    2323      {/if}
    24       {$cat.ICON_TS}
     24      {if !empty($cat.icon_ts)}
     25      <img title="{$cat.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent{if $cat.icon_ts.IS_CHILD_DATE}_by_child{/if}.png" class="icon" alt="(!)" />
     26      {/if}
    2527  {assign var='ref_level' value=$cat.LEVEL}
    2628{/foreach}
  • trunk/template/yoga/thumbnails.tpl

    r3185 r3188  
    1313                <span class="thumbLegend">
    1414                {if isset($thumbnail.NAME)}{$thumbnail.NAME}{/if}
    15                 {$thumbnail.ICON_TS}
     15                {if !empty($thumbnail.icon_ts)}
     16                <img title="{$thumbnail.icon_ts.TITLE}" src="{$ROOT_URL}{$themeconf.icon_dir}/recent.png" class="icon" alt="(!)" />
     17                {/if}
    1618                {if isset($thumbnail.NB_COMMENTS)}
    1719                <span class="{if 0==$thumbnail.NB_COMMENTS}zero {/if}nb-comments">
Note: See TracChangeset for help on using the changeset viewer.