Development

Changeset 27771

You must first sign up to be able to contribute.

Changeset 27771

Show
Ignore:
Timestamp:
02/09/10 04:13:07 (1 month ago)
Author:
weaverryan
Message:

[1.4][sfSympalPlugin][1.0] Making the published_at slot renderer format configurable. This uses ths sfDateFormat class, which I'm not familiar with, so there may be a better way to do this.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfSympalPlugin/trunk/config/app.yml

    r27627 r27771  
    88    # Configure the default culture 
    99    default_culture: en 
     10     
     11    # used for outputting date published slot. See sfDateFormat::getPattern() 
     12    # http://trac.symfony-project.org/browser/branches/1.4/lib/i18n/sfDateFormat.class.php 
     13    date_published_format: D 
    1014 
    1115    # Configure whether or not to allow the theme to be changed with a  
  • plugins/sfSympalPlugin/trunk/lib/helper/SympalContentSlotHelper.php

    r27621 r27771  
    2121{ 
    2222  use_helper('Date'); 
    23   return format_datetime($content->date_published); 
     23  return format_datetime($content->date_published, sfSympalConfig::get('date_published_format')); 
    2424} 
    2525 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.