Development

Changeset 4884

You must first sign up to be able to contribute.

Changeset 4884

Show
Ignore:
Timestamp:
08/21/07 22:31:57 (1 year ago)
Author:
francois
Message:

sfSimpleBlogPlugin

  • Fixed number of comments displayed in post list
  • Split the configuration into an application-wide and a project-wide file (closes #2103)
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfSimpleBlogPlugin/README

    r4821 r4884  
    9797=== The `sfSimpleBlog.yml` file === 
    9898 
    99 The plugin is highly configurable and should be easy to integrate to an existing project. Here is the default plugin configuration, taken from `myproject/plugins/sfSimpleBlogPlugin/config/sfSimpleBlog.yml.sample`: 
     99The plugin schema is configurable to match your database table names. Here is the default plugin configuration, taken from `myproject/plugins/sfSimpleBlogPlugin/config/sfSimpleBlog.yml.sample`: 
    100100 
    101101{{{ 
     
    108108  comment_table: sf_blog_comment # comment table name 
    109109  tag_table:     sf_blog_tag     # tag table name 
    110  
    111 blog: 
    112   title:         How is life on earth? 
    113   tagline:       You'd better start to live before it's too late 
    114   author:        John Doe 
    115   email:         john.doe@howislifeonearth.com   # Used only for alerts on comments 
    116    
    117   sidebar:       [custom, recent_posts, tags, feeds, blogroll, meta] 
    118    
    119   custom : | 
    120     <h2>About the author</h2> 
    121     <p>My name is John Doe and I'm a freelance freelancer. I do things when I have time,  
    122     and the rest of the time, I write things here.</p> 
    123  
    124   blogroll: 
    125     - { title: how is life on earth?, url: 'http://www.howislifeonearth.com' } 
    126     - { title: google, url: 'http://www.google.com' } 
     110}}} 
     111 
     112You can customize these settings in `myproject/config/sfBlogPlugin.yml`. 
     113 
     114Note: After modifying the `schema` settings, you must rebuild your model. 
     115 
     116=== The `app.yml` file === 
     117 
     118The plugin is highly configurable and should be easy to integrate to an existing project. Here is the default plugin configuration, taken from `myproject/plugins/sfSimpleBlogPlugin/config/sfSimpleBlog.yml.sample`: 
     119 
     120{{{ 
     121all: 
     122  sfSimpleBlog: 
     123    blog: 
     124      title:         How is life on earth? 
     125      tagline:       You'd better start to live before it's too late 
     126      author:        John Doe 
     127      email:         john.doe@howislifeonearth.com   # Used only for alerts on comments 
     128       
     129      sidebar:       [custom, recent_posts, tags, feeds, blogroll, meta] 
     130       
     131      custom : | 
     132        <h2>About the author</h2> 
     133        <p>My name is John Doe and I'm a freelance freelancer. I do things when I have time,  
     134        and the rest of the time, I write things here.</p> 
    127135     
    128   use_bundled_layout: true       # if true, the three modules will use sfSimpleBlog/templates/layout.php for layout; if false, they will use the layout settings from the view.yml 
    129   use_ajax:      true            # enable posting of comments in Ajax 
    130   use_feeds:     true            # enable feeds (require sfFeed2Plugin) 
    131   use_rich_text: false           # enable tinyMCE 
    132   use_media_library: false       # enable support for sfMediaLibrary in TinyMCE (requires sfMediaLibraryPlugin) 
    133    
    134 post: 
    135   max_per_page:  5               # number of posts displayed in a list of posts 
    136   recent:        5               # number of posts to display in the recent sidebar widget 
    137  
    138 comment: 
    139   enabled:        on             # enable comments by default on new posts 
    140   disable_after:  30             # number of days after which comments on a post are not possible anymore 
    141                                  # set to 0 for unlimited comments 
    142   automoderation: on             # triggers the automoderation of comments. Possible values are: 
    143                                  # on: comments are not published until a moderator accepts them 
    144                                  # first_post: the first comment of a user must be accepted, subsequent posts are accepted automatically 
    145                                  # off: comments are automatically accepted and published 
    146  
    147   mail_alert: on                 # send an email to the blog owner when a comment is posted. 
    148                                  # Possible values are:  
    149                                  # on: send an email for every posted comment 
    150                                  # moderated: send an email for every automoderated comment 
    151                                   
    152 feed: 
    153   count:         5               # number of posts appearing in the RSS feed 
    154 }}} 
     136      blogroll: 
     137        - { title: how is life on earth?, url: 'http://www.howislifeonearth.com' } 
     138        - { title: google, url: 'http://www.google.com' } 
     139         
     140      use_bundled_layout: true       # if true, the three modules will use sfSimpleBlog/templates/layout.php for layout; if false, they will use the layout settings from the view.yml 
     141      use_ajax:      true            # enable posting of comments in Ajax 
     142      use_feeds:     true            # enable feeds (require sfFeed2Plugin) 
     143      use_rich_text: false           # enable tinyMCE 
     144      use_media_library: false       # enable support for sfMediaLibrary in TinyMCE (requires sfMediaLibraryPlugin) 
     145       
     146    post: 
     147      max_per_page:  5               # number of posts displayed in a list of posts 
     148      recent:        5               # number of posts to display in the recent sidebar widget 
     149     
     150    comment: 
     151      enabled:        on             # enable comments by default on new posts 
     152      disable_after:  30             # number of days after which comments on a post are not possible anymore 
     153                                     # set to 0 for unlimited comments 
     154      automoderation: on             # triggers the automoderation of comments. Possible values are: 
     155                                     # on: comments are not published until a moderator accepts them 
     156                                     # first_post: the first comment of a user must be accepted, subsequent posts are accepted automatically 
     157                                     # off: comments are automatically accepted and published 
     158     
     159      mail_alert: on                 # send an email to the blog owner when a comment is posted. 
     160                                     # Possible values are:  
     161                                     # on: send an email for every posted comment 
     162                                     # moderated: send an email for every automoderated comment 
     163                                      
     164    feed: 
     165      count:         5               # number of posts appearing in the RSS feed 
     166}}} 
     167 
     168You can customize these settings in `myproject/apps/myapp/config/app.yml` 
    155169 
    156170The `sidebar` array controls which widgets, and in which order, appear in the sidebar of the blog frontend. The existing widgets are: 
     
    161175 - `blogroll`: list of blogs 
    162176 - `meta`: not much for now (link to administration modules, but the link works only if the modules are in the same application) 
    163  
    164 Note: After modifying the `schema` settings, you must rebuild your model. 
    165177 
    166178=== Security, view configuration, custom templates, etc. === 
     
    209221=== Trunk === 
    210222 
    211  * fabien: don't save empty tags 
    212  * francois: made the default schema play well with sfGuard 
     223 * francois: Fixed number of comments displayed in post list 
     224 * francois: Split the configuration into an application-wide and a project-wide file 
     225 * fabien: Don't save empty tags 
     226 * francois: Made the default schema play well with sfGuard 
    213227 
    214228=== 2007-06-10 | 0.8.4 Beta === 
  • plugins/sfSimpleBlogPlugin/data/generator/sfPropelAdmin/sfSimpleBlogAdmin/template/templates/_administration.php

    r3781 r4884  
    33  <li>[?php echo link_to(__('Posts'), 'sfSimpleBlogPostAdmin/index') ?]</li> 
    44  <li>[?php echo link_to(__('Comments'), 'sfSimpleBlogCommentAdmin/index') ?]</li> 
    5   [?php if(sfConfig::get('sf_simple_blog_blog_use_media_library', false)): ?] 
     5  [?php if(sfConfig::get('app_sfSimpleBlog_blog_use_media_library', false)): ?] 
    66  <li>[?php echo link_to(__('Media Library'), 'sfMediaLibrary/index') ?]</li> 
    77  [?php endif; ?] 
  • plugins/sfSimpleBlogPlugin/lib/model/sfSimpleBlogPost.php

    r4765 r4884  
    9595    if ($this->getAllowComments()) 
    9696    { 
    97       $validity = sfConfig::get('sf_simple_blog_comment_disable_after', 30); 
     97      $validity = sfConfig::get('app_sfSimpleBlog_comment_disable_after', 30); 
    9898      if ($validity == 0 || $this->getCreatedSinceDays() < $validity) 
    9999      { 
  • plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/lib/BasesfSimpleBlogActions.class.php

    r3868 r4884  
    2121  public function preExecute() 
    2222  { 
    23     if(sfConfig::get('sf_simple_blog_blog_use_bundled_layout', true)) 
     23    if(sfConfig::get('app_sfSimpleBlog_blog_use_bundled_layout', true)) 
    2424    { 
    2525      $this->setLayout(sfLoader::getTemplateDir('sfSimpleBlog', 'layout.php').'/layout'); 
     
    3131  { 
    3232    $this->post_pager = sfSimpleBlogPostPeer::getRecentPager( 
    33       sfConfig::get('sf_simple_blog_post_max_per_page', 5), 
     33      sfConfig::get('app_sfSimpleBlog_post_max_per_page', 5), 
    3434      $this->getRequestParameter('page', 1) 
    3535    ); 
     
    3939  { 
    4040    sfLoader::loadHelpers(array('I18N')); 
    41     $posts = sfSimpleBlogPostPeer::getRecent($this->getRequestParameter('nb', sfConfig::get('sf_simple_blog_feed_count', 5))); 
     41    $posts = sfSimpleBlogPostPeer::getRecent($this->getRequestParameter('nb', sfConfig::get('app_sfSimpleBlog_feed_count', 5))); 
    4242       
    4343    $this->feed = sfFeedPeer::createFromObjects( 
     
    4545      array( 
    4646        'format'      => $this->getRequestParameter('format', 'atom1'), 
    47         'title'       => __('Posts from %1%', array('%1%' => sfConfig::get('sf_simple_blog_blog_title', ''))), 
     47        'title'       => __('Posts from %1%', array('%1%' => sfConfig::get('app_sfSimpleBlog_blog_title', ''))), 
    4848        'link'        => $this->getController()->genUrl('sfSimpleBlog/index'), 
    49         'authorName'  => sfConfig::get('sf_simple_blog_blog_author', ''), 
     49        'authorName'  => sfConfig::get('app_sfSimpleBlog_blog_author', ''), 
    5050        'methods'     => array('authorEmail' => '', 'authorName'  => 'getAuthor') 
    5151      ) 
     
    5757  { 
    5858    sfLoader::loadHelpers(array('I18N')); 
    59     $comments = sfSimpleBlogCommentPeer::getRecent($this->getRequestParameter('nb', sfConfig::get('sf_simple_blog_feed_count', 5))); 
     59    $comments = sfSimpleBlogCommentPeer::getRecent($this->getRequestParameter('nb', sfConfig::get('app_sfSimpleBlog_feed_count', 5))); 
    6060       
    6161    $this->feed = sfFeedPeer::createFromObjects( 
     
    6363      array( 
    6464        'format'      => $this->getRequestParameter('format', 'atom1'), 
    65         'title'       => __('Comments from %1%', array('%1%' => sfConfig::get('sf_simple_blog_blog_title', ''))), 
     65        'title'       => __('Comments from %1%', array('%1%' => sfConfig::get('app_sfSimpleBlog_blog_title', ''))), 
    6666        'link'        => $this->getController()->genUrl('sfSimpleBlog/index'), 
    67         'authorName'  => sfConfig::get('sf_simple_blog_blog_author', ''), 
     67        'authorName'  => sfConfig::get('app_sfSimpleBlog_blog_author', ''), 
    6868        'methods'     => array('title' => 'getPostTitle', 'authorEmail' => '') 
    6969      ) 
     
    7777    $post = sfSimpleBlogPostPeer::retrieveByStrippedTitle($this->getRequestParameter('stripped_title')); 
    7878    $this->forward404Unless($post); 
    79     $comments = sfSimpleBlogCommentPeer::getForPost($post, $this->getRequestParameter('nb', sfConfig::get('sf_simple_blog_feed_count', 5))); 
     79    $comments = sfSimpleBlogCommentPeer::getForPost($post, $this->getRequestParameter('nb', sfConfig::get('app_sfSimpleBlog_feed_count', 5))); 
    8080     
    8181    $this->feed = sfFeedPeer::createFromObjects( 
     
    8383      array( 
    8484        'format'      => $this->getRequestParameter('format', 'atom1'), 
    85         'title'       => __('Comments on post "%1%" from %2%', array('%1%' => $post->getTitle(), '%2%' => sfConfig::get('sf_simple_blog_blog_title', ''))), 
     85        'title'       => __('Comments on post "%1%" from %2%', array('%1%' => $post->getTitle(), '%2%' => sfConfig::get('app_sfSimpleBlog_blog_title', ''))), 
    8686        'link'        => $this->getController()->genUrl('sfSimpleBlog/show?stripped_title='.$post->getStrippedTitle()), 
    87         'authorName'  => sfConfig::get('sf_simple_blog_blog_author', ''), 
     87        'authorName'  => sfConfig::get('app_sfSimpleBlog_blog_author', ''), 
    8888        'methods'     => array('title' => 'getPostTitle', 'authorEmail' => '') 
    8989      ) 
     
    9898    $this->post_pager = sfSimpleBlogPostPeer::getTaggedPager( 
    9999      $tag, 
    100       sfConfig::get('sf_simple_blog_post_max_per_page', 5), 
     100      sfConfig::get('app_sfSimpleBlog_post_max_per_page', 5), 
    101101      $this->getRequestParameter('page', 1) 
    102102    );  
     
    108108    $tag = $this->getRequestParameter('tag'); 
    109109    $this->forward404Unless($tag); 
    110     $posts = sfSimpleBlogPostPeer::getTagged($tag, $this->getRequestParameter('nb', sfConfig::get('sf_simple_blog_feed_count', 5))); 
     110    $posts = sfSimpleBlogPostPeer::getTagged($tag, $this->getRequestParameter('nb', sfConfig::get('app_sfSimpleBlog_feed_count', 5))); 
    111111     
    112112    $this->feed = sfFeedPeer::createFromObjects( 
     
    114114      array( 
    115115        'format'      => $this->getRequestParameter('format', 'atom1'), 
    116         'title'       => __('Posts tagged "%1%" from %2%', array('%1%' => $tag, '%2%' => sfConfig::get('sf_simple_blog_blog_title', ''))), 
     116        'title'       => __('Posts tagged "%1%" from %2%', array('%1%' => $tag, '%2%' => sfConfig::get('app_sfSimpleBlog_blog_title', ''))), 
    117117        'link'        => $this->getController()->genUrl('sfSimpleBlog/showByTag?tag='.$tag), 
    118         'authorName'  => sfConfig::get('sf_simple_blog_blog_author', ''), 
     118        'authorName'  => sfConfig::get('app_sfSimpleBlog_blog_author', ''), 
    119119        'methods'     => array('authorEmail' => '') 
    120120      ) 
     
    132132  public function executeAddComment() 
    133133  { 
    134     $this->forward404Unless(sfConfig::get('sf_simple_blog_comment_enabled', true)); 
     134    $this->forward404Unless(sfConfig::get('app_sfSimpleBlog_comment_enabled', true)); 
    135135    $post = sfSimpleBlogPostPeer::retrieveByStrippedTitle($this->getRequestParameter('stripped_title')); 
    136136    $this->forward404Unless($post); 
     
    139139    $comment = new sfSimpleBlogComment(); 
    140140    $comment->setSfBlogPostId($post->getId()); 
    141     $automoderation = sfConfig::get('sf_simple_blog_comment_automoderation', 'first_post'); 
     141    $automoderation = sfConfig::get('app_sfSimpleBlog_comment_automoderation', 'first_post'); 
    142142    if($automoderation === true || (($automoderation == 'first_post') && !sfSimpleBlogCommentPeer::isAuthorApproved($this->getRequestParameter('name'),$this->getRequestParameter('mail')))) 
    143143    { 
     
    162162    $comment->save(); 
    163163     
    164     $email_pref = sfConfig::get('sf_simple_blog_comment_mail_alert', 1); 
     164    $email_pref = sfConfig::get('app_sfSimpleBlog_comment_mail_alert', 1); 
    165165    if($email_pref == 1 || ($email_pref == 'moderated' && $comment->getIsModerated())) 
    166166    { 
     
    194194    $mail->setSender('no-reply@'.$this->getRequest()->getHost()); 
    195195    $mail->setMailer('mail'); 
    196     $mail->setFrom($mail->getSender(), sfConfig::get('sf_simple_blog_blog_title')); 
    197  
    198     $mail->addAddress(sfConfig::get('sf_simple_blog_blog_email')); 
     196    $mail->setFrom($mail->getSender(), sfConfig::get('app_sfSimpleBlog_blog_title')); 
     197 
     198    $mail->addAddress(sfConfig::get('app_sfSimpleBlog_blog_email')); 
    199199 
    200200    if($this->comment->getIsModerated()) 
     
    207207    } 
    208208    $mail->setSubject(__($subject_string, array( 
    209         '%1%' => sfConfig::get('sf_simple_blog_blog_title'), 
     209        '%1%' => sfConfig::get('app_sfSimpleBlog_blog_title'), 
    210210        '%2%' => $this->comment->getPostTitle() 
    211211    ))); 
  • plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/lib/BasesfSimpleBlogComponents.class.php

    r3708 r4884  
    2121  public function executeRecentPosts() 
    2222  { 
    23     $this->post_pager = sfSimpleBlogPostPeer::getRecentPager(sfConfig::get('sf_simple_blog_post_recent', 5), 1 ); 
     23    $this->post_pager = sfSimpleBlogPostPeer::getRecentPager(sfConfig::get('app_sfSimpleBlog_post_recent', 5), 1 ); 
    2424  } 
    2525   
  • plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/_add_comment.php

    r3708 r4884  
    2828</form> 
    2929 
    30 <?php if(sfConfig::get('sf_simple_blog_blog_use_ajax', true)): ?> 
     30<?php if(sfConfig::get('app_sfSimpleBlog_blog_use_ajax', true)): ?> 
    3131<script> 
    3232  document.getElementById('sfSimpleBlog_add_comment_form').onsubmit = function () {  
  • plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/_blogroll.php

    r3715 r4884  
    11<h2><?php echo __('Blogroll') ?></h2> 
    22<ul> 
    3   <?php foreach(sfConfig::get('sf_simple_blog_blog_blogroll') as $blog): ?> 
     3  <?php foreach(sfConfig::get('app_sfSimpleBlog_blog_blogroll', array( 
     4    array('title' => 'how is life on earth?', 'url' => 'http://www.howislifeonearth.com'), 
     5    array('title' => 'google', 'url' => 'http://www.google.com') 
     6  )) as $blog): ?> 
    47  <li><?php echo link_to($blog['title'], $blog['url']) ?></li> 
    58  <?php endforeach; ?> 
  • plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/_comment_list.php

    r3868 r4884  
    44<?php endforeach; ?> 
    55 
    6 <?php if(!sfConfig::get('sf_simple_blog_comment_enabled', true) || !$post->allowComments()): ?> 
     6<?php if(!sfConfig::get('app_sfSimpleBlog_comment_enabled', true) || !$post->allowComments()): ?> 
    77  <div class="related_details"><?php echo __('Comments are closed.') ?></div> 
    88<?php elseif($sf_flash->get('add_comment') == 'moderated'): ?> 
  • plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/_post_short.php

    r3708 r4884  
    1515 
    1616  <div class="related_details"> 
    17   <?php echo link_to(format_number_choice('[0]no comment|[1]one comment|(1,+Inf]%1% comments', array('%1%' => $post->countsfSimpleBlogComments()), $post->getNbComments()), 'sfSimpleBlog/show?stripped_title='.$post->getStrippedTitle().'#comments') ?> 
     17  <?php echo link_to(format_number_choice('[0]no comment|[1]one comment|(1,+Inf]%1% comments', array('%1%' => $post->getNbComments()), $post->getNbComments()), 'sfSimpleBlog/show?stripped_title='.$post->getStrippedTitle().'#comments') ?> 
    1818  </div> 
    1919</div> 
  • plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/_sidebar.php

    r3715 r4884  
    11<?php slot('sfSimpleBlog_sidebar') ?> 
    2   <?php foreach(sfConfig::get('sf_simple_blog_blog_sidebar') as $widget): ?> 
     2  <?php foreach(sfConfig::get('app_sfSimpleBlog_blog_sidebar', array('custom', 'recent_posts', 'tags', 'feeds', 'blogroll', 'meta')) as $widget): ?> 
    33 
    4     <?php if($widget == 'feeds' && sfConfig::get('sf_simple_blog_blog_use_feeds', true)): ?> 
     4    <?php if($widget == 'feeds' && sfConfig::get('app_sfSimpleBlog_blog_use_feeds', true)): ?> 
    55      <?php include_partial('sfSimpleBlog/feed') ?> 
    66    <?php elseif($widget == 'tags'): ?> 
     
    1313      <?php include_partial('sfSimpleBlog/blogroll') ?> 
    1414    <?php else: ?> 
    15       <?php echo sfConfig::get('sf_simple_blog_blog_'.$widget) ?> 
     15      <?php echo sfConfig::get('app_sfSimpleBlog_blog_'.$widget) ?> 
    1616    <?php endif; ?> 
    1717     
  • plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/indexSuccess.php

    r3708 r4884  
    11<?php use_helper('I18N', 'Date') ?> 
    2 <?php $sf_context->getResponse()->setTitle(sfConfig::get('sf_simple_blog_blog_title', '')) ?> 
     2<?php $sf_context->getResponse()->setTitle(sfConfig::get('app_sfSimpleBlog_blog_title', 'How is life on earth?')) ?> 
    33 
    4 <?php if(sfConfig::get('sf_simple_blog_blog_use_feeds', true)): ?> 
     4<?php if(sfConfig::get('app_sfSimpleBlog_blog_use_feeds', true)): ?> 
    55<?php slot('auto_discovery_link_tag') ?> 
    6   <?php echo auto_discovery_link_tag('rss', 'sfSimpleBlog/postsFeed', array('title' => __('Posts from %1%', array('%1%' => sfConfig::get('sf_simple_blog_blog_title', ''))))) ?> 
     6  <?php echo auto_discovery_link_tag('rss', 'sfSimpleBlog/postsFeed', array('title' => __('Posts from %1%', array('%1%' => sfConfig::get('app_sfSimpleBlog_blog_title', 'How is life on earth?'))))) ?> 
    77<?php end_slot() ?> 
    88<?php endif; ?> 
  • plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/layout.php

    r3708 r4884  
    1414<div id="sfSimpleBlog_container"> 
    1515  <div id="header"> 
    16     <h1><?php echo link_to(sfConfig::get('sf_simple_blog_blog_title'), 'sfSimpleBlog/index') ?></h1> 
    17     <div id="tagline"><?php echo sfConfig::get('sf_simple_blog_blog_tagline') ?></div> 
     16    <h1><?php echo link_to(sfConfig::get('app_sfSimpleBlog_blog_title', 'How is life on earth?'), 'sfSimpleBlog/index') ?></h1> 
     17    <div id="tagline"><?php echo sfConfig::get('app_sfSimpleBlog_blog_tagline', 'You\'d better start to live before it\'s too late') ?></div> 
    1818  </div> 
    1919  <div id="sidebar-a"> 
  • plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/showByTagSuccess.php

    r3708 r4884  
    11<?php use_helper('I18N', 'Date') ?> 
    2 <?php $sf_context->getResponse()->setTitle(sfConfig::get('sf_simple_blog_blog_title', '')) ?> 
     2<?php $sf_context->getResponse()->setTitle(sfConfig::get('app_sfSimpleBlog_blog_title', 'How is life on earth?')) ?> 
    33 
    4 <?php if(sfConfig::get('sf_simple_blog_blog_use_feeds', true)): ?> 
     4<?php if(sfConfig::get('app_sfSimpleBlog_blog_use_feeds', true)): ?> 
    55  <?php slot('auto_discovery_link_tag') ?> 
    6     <?php echo auto_discovery_link_tag('rss', 'sfSimpleBlog/postsForTagFeed?tag='.$sf_params->get('tag'), array('title' => __('Posts tagged "%1%" from %2%', array('%1%' => $sf_params->get('tag'), '%2%' => sfConfig::get('sf_simple_blog_blog_title', ''))))) ?> 
     6    <?php echo auto_discovery_link_tag('rss', 'sfSimpleBlog/postsForTagFeed?tag='.$sf_params->get('tag'), array('title' => __('Posts tagged "%1%" from %2%', array('%1%' => $sf_params->get('tag'), '%2%' => sfConfig::get('app_sfSimpleBlog_blog_title', 'How is life on earth?'))))) ?> 
    77  <?php end_slot() ?> 
    88<?php endif; ?> 
  • plugins/sfSimpleBlogPlugin/modules/sfSimpleBlog/templates/showSuccess.php

    r3708 r4884  
    11<?php use_helper('I18N') ?> 
    2 <?php if(sfConfig::get('sf_simple_blog_blog_use_ajax', true)): ?> 
     2<?php if(sfConfig::get('app_sfSimpleBlog_blog_use_ajax', true)): ?> 
    33  <?php use_javascript('/sf/prototype/js/prototype.js') ?> 
    44<?php endif; ?> 
    5 <?php $sf_context->getResponse()->setTitle(sfConfig::get('sf_simple_blog_blog_title', '').' > '.$post->getTitle()) ?> 
     5<?php $sf_context->getResponse()->setTitle(sfConfig::get('app_sfSimpleBlog_blog_title', 'How is life on earth?').' > '.$post->getTitle()) ?> 
    66 
    7 <?php if(sfConfig::get('sf_simple_blog_blog_use_feeds', true)): ?> 
     7<?php if(sfConfig::get('app_sfSimpleBlog_blog_use_feeds', true)): ?> 
    88  <?php slot('auto_discovery_link_tag') ?> 
    9     <?php echo auto_discovery_link_tag('rss', 'sfSimpleBlog/commentsForPostFeed?stripped_title='.$post->getStrippedTitle(), array('title' => __('Comments on post "%1%" from %2%', array('%1%' => $post->getTitle(), '%2%' => sfConfig::get('sf_simple_blog_blog_title', ''))))) ?> 
     9    <?php echo auto_discovery_link_tag('rss', 'sfSimpleBlog/commentsForPostFeed?stripped_title='.$post->getStrippedTitle(), array('title' => __('Comments on post "%1%" from %2%', array('%1%' => $post->getTitle(), '%2%' => sfConfig::get('app_sfSimpleBlog_blog_title', 'How is life on earth?'))))) ?> 
    1010  <?php end_slot() ?> 
    1111<?php endif; ?> 
  • plugins/sfSimpleBlogPlugin/modules/sfSimpleBlogCommentAdmin/lib/BasesfSimpleBlogCommentAdminActions.class.php

    r3729 r4884  
    55  public function preExecute() 
    66  { 
    7     if(sfConfig::get('sf_simple_blog_blog_use_bundled_layout', true)) 
     7    if(sfConfig::get('app_sfSimpleBlog_blog_use_bundled_layout', true)) 
    88    { 
    99      $this->setLayout(sfLoader::getTemplateDir('sfSimpleBlog', 'layout.php').'/layout'); 
  • plugins/sfSimpleBlogPlugin/modules/sfSimpleBlogPostAdmin/config/generator.yml

    r3868 r4884  
    2323      fields: 
    2424        tags_as_string: { name: Tags, type: input_tag } 
    25         content:        { params: size=60x30 <?php if(sfConfig::get('sf_simple_blog_blog_use_rich_text', false)): echo 'rich=true'; endif; ?> <?php if(sfConfig::get('sf_simple_blog_blog_use_media_library', false)): echo 'tinymce_options=\'file_browser_callback:"sfMediaLibrary.fileBrowserCallBack"\''; endif; ?> } 
     25        content:        { params: size=60x30 <?php if(sfConfig::get('app_sfSimpleBlog_blog_use_rich_text', false)): echo 'rich=true'; endif; ?> <?php if(sfConfig::get('app_sfSimpleBlog_blog_use_media_library', false)): echo 'tinymce_options=\'file_browser_callback:"sfMediaLibrary.fileBrowserCallBack"\''; endif; ?> } 
    2626      actions:  
    2727        _save:          ~ 
  • plugins/sfSimpleBlogPlugin/modules/sfSimpleBlogPostAdmin/lib/BasesfSimpleBlogPostAdminActions.class.php

    r4765 r4884  
    55  public function preExecute() 
    66  { 
    7     if(sfConfig::get('sf_simple_blog_blog_use_bundled_layout', true)) 
     7    if(sfConfig::get('app_sfSimpleBlog_blog_use_bundled_layout', true)) 
    88    { 
    99      $this->setLayout(sfLoader::getTemplateDir('sfSimpleBlog', 'layout.php').'/layout'); 
  • plugins/sfSimpleBlogPlugin/modules/sfSimpleBlogPostAdmin/templates/_edit_header.php

    r3781 r4884  
    1 <?php if(sfConfig::get('sf_simple_blog_blog_use_media_library', false)): ?> 
     1<?php if(sfConfig::get('app_sfSimpleBlog_blog_use_media_library', false)): ?> 
    22  <?php use_helper('sfMediaLibrary') ?> 
    33  <?php echo init_media_library() ?> 
  • plugins/sfSimpleBlogPlugin/package.xml

    r4209 r4884  
    2525   <dir name="/"> 
    2626     <dir name="config"> 
     27       <file name="app.yml.sample" role="data"/> 
    2728       <file name="config.php" role="data"/> 
    2829       <file name="schema.yml" role="data"/>