Dotclear


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

Add "republished" test attribute for EntryIf? tag and used in atom.xml. May be useful for theme creators in order to add a mention if a post has been modified since his publication. Fixes #1161.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/public/class.dc.template.php

    r899 r912  
    12691269     show_comments  (0|1)     #IMPLIED  -- there are comments for this post (value : 1) or not (value : 0) 
    12701270     show_pings     (0|1)     #IMPLIED  -- there are trackbacks for this post (value : 1) or not (value : 0) 
     1271     republished    (0|1)     #IMPLIED  -- post has been updated since publication (value : 1) or not (value : 0) 
    12711272     operator  (and|or)  #IMPLIED  -- combination of conditions, if more than 1 specifiec (default: and) 
    12721273     url       CDATA     #IMPLIED  -- post has given url 
     
    13661367                    $if[] = '(!$_ctx->posts->hasTrackbacks() && !$_ctx->posts->trackbacksActive())'; 
    13671368               } 
     1369          } 
     1370           
     1371          if (isset($attr['republished'])) { 
     1372               $sign = (boolean) $attr['republished'] ? '' : '!'; 
     1373               $if[] = $sign.'(boolean)$_ctx->posts->isRepublished()'; 
    13681374          } 
    13691375           
Note: See TracChangeset for help on using the changeset viewer.

Sites map