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/class.dc.template.php

    r863 r899  
    16011601     class          CDATA          #IMPLIED  -- Class to add on image tag 
    16021602     with_category  (1|0)          #IMPLIED  -- Search in entry category description if present (default 0) 
     1603     no_tag    (1|0)     #IMPLIED  -- Return image URL without HTML tag (default 0) 
    16031604     > 
    16041605     */ 
     
    16081609          $class = !empty($attr['class']) ? $attr['class'] : ''; 
    16091610          $with_category = !empty($attr['with_category']) ? 'true' : 'false'; 
    1610            
    1611           return "<?php echo context::EntryFirstImageHelper('".addslashes($size)."',".$with_category.",'".addslashes($class)."'); ?>"; 
     1611          $no_tag = !empty($attr['no_tag']) ? 'true' : 'false'; 
     1612           
     1613          return "<?php echo context::EntryFirstImageHelper('".addslashes($size)."',".$with_category.",'".addslashes($class).",'".$no_tag."'); ?>"; 
    16121614     } 
    16131615      
Note: See TracChangeset for help on using the changeset viewer.

Sites map