Zikula_Themes
[ class tree: Zikula_Themes ] [ index: Zikula_Themes ] [ all elements ]

Source for file modifier.updated.php

Documentation is available at modifier.updated.php

  1. <?php
  2. /**
  3.  * Zikula Application Framework
  4.  *
  5.  * @copyright (c) 2001, Zikula Development Team
  6.  * @link http://www.zikula.org
  7.  * @version $Id: modifier.updated.php 22138 2007-06-01 10:19:14Z markwest $
  8.  * @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
  9.  *
  10.  * @package Zikula_Themes
  11.  * @subpackage rss
  12.  */
  13.  
  14. /**
  15.  * Smarty modifier format an issue date for an atom news feed
  16.  *
  17.  * Example
  18.  *
  19.  *   <!--[$MyVar|updated]-->
  20.  *
  21.  * @author      Mark West
  22.  * @author      Franz Skaaning
  23.  * @since        02 March 2004
  24.  * @param       array    $string     the contents to transform
  25.  * @return       string   the updated output
  26.  */
  27. function smarty_modifier_updated($string)
  28. {
  29.     global $rss_feed_lastupdated;
  30.  
  31.     $timestamp strtotime($string);
  32.  
  33.     if (!isset($rss_feed_lastupdated|| $timestamp $rss_feed_lastupdated{
  34.         $rss_feed_lastupdated $timestamp;
  35.     }
  36.  
  37.     return $string;
  38. }

Documentation generated on Fri, 18 Jul 2008 21:47:52 +0200 by phpDocumentor 1.4.1