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

Source for file modifier.published.php

Documentation is available at modifier.published.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.published.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|published]-->
  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 modified output
  26.  */
  27. function smarty_modifier_published($string)
  28. {
  29.     return strftime('%a, %d %b %Y %H:%M:%S %z'strtotime($string));
  30. }

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