Dotclear


Ignore:
Timestamp:
10/23/12 15:00:14 (13 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add no_tag attribute to {{tpl:EntryFirstImage}}, fixes #1294

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/public/lib.tpl.context.php

    r839 r899  
    341341      
    342342     # First post image helpers 
    343      public static function EntryFirstImageHelper($size,$with_category,$class="") 
     343     public static function EntryFirstImageHelper($size,$with_category,$class="",$no_tag=false) 
    344344     { 
    345345          global $core, $_ctx; 
     
    396396           
    397397          if ($src) { 
    398                return '<img alt="'.$alt.'" src="'.$src.'" class="'.$class.'" />'; 
     398               if ($no_tag) { 
     399                    return $src; 
     400               } else { 
     401                    return '<img alt="'.$alt.'" src="'.$src.'" class="'.$class.'" />'; 
     402               } 
    399403          } 
    400404     } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map