To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Changeset 4530

Show
Ignore:
Timestamp:
01/29/12 10:22:19 (4 months ago)
Author:
tboutell
Message:

* Documented existing app_aBlog_excerpts_show flag correctly in _excerptTemplate
* References to "categories" can be changed to another name conveniently via:

app_aBlog_categories_label: "Topics"
app_aBlog_category_filter_label: 'on the topic %category%'

Avoids overwriting entire nontrivial partials

Location:
plugins/apostropheBlogPlugin/branches/1.5/modules/aBlog/templates
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostropheBlogPlugin/branches/1.5/modules/aBlog/templates/_excerptTemplate.php

    r4460 r4530  
    11<?php 
    2 // If the app.yml setting of "excerpt" is set to true, this template will be used for every post on 
     2// If app_aBlog_excerpts_show is true, this template will be used for every post on 
    33// the index page of the blog 
    44 ?> 
  • plugins/apostropheBlogPlugin/branches/1.5/modules/aBlog/templates/_filters.php

    r3961 r4530  
    2424          <?php $category = Doctrine::getTable('aCategory')->findOneBySlug($sf_params->get('cat')) ?> 
    2525          <?php if ($category): ?> 
    26             <?php $filters[] = a_('in the category %category%', array('%category%' => a_remove_filter_button($category->name, $filterUrl, 'cat'))) ?> 
     26            <?php $filters[] = a_(sfConfig::get('app_aBlog_category_filter_label', 'in the category %category%'), array('%category%' => a_remove_filter_button($category->name, $filterUrl, 'cat'))) ?> 
    2727          <?php endif ?> 
    2828        <?php endif ?> 
  • plugins/apostropheBlogPlugin/branches/1.5/modules/aBlog/templates/_sidebar.php

    r4137 r4530  
    7878<hr class="a-hr" /> 
    7979<div class="a-subnav-section categories"> 
    80   <h4><?php echo a_('Categories') ?></h4> 
     80  <h4><?php echo a_(sfConfig::get('app_aBlog_categories_label', 'Categories')) ?></h4> 
    8181  <div class="a-filter-options blog clearfix"> 
    8282          <?php foreach ($categories as $category): ?>