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/core/class.dc.rs.extensions.php

    r776 r912  
    165165     { 
    166166          return $rs->nb_trackback > 0; 
     167     } 
     168 
     169     /** 
     170     Returns whether post has been updated since publication. 
     171 
     172     @return <b>boolean</b> 
     173     */ 
     174     public static function isRepublished($rs) 
     175     { 
     176          return ($rs->getTS('upddt') + dt::getTimeOffset($rs->post_tz)) > $rs->getTS(); 
    167177     } 
    168178      
Note: See TracChangeset for help on using the changeset viewer.

Sites map