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

Changeset 4460

Show
Ignore:
Timestamp:
01/06/12 16:28:50 (5 months ago)
Author:
jake
Message:

app.yml setting to show excerpts in the blog index page

Location:
plugins/apostropheBlogPlugin/branches/1.5/modules/aBlog/templates
Files:
1 added
2 modified

Legend:

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

    r3557 r4460  
    1414                </ul> 
    1515        <?php endif ?> 
    16          
    17         <?php include_partial('aBlog/'.$a_blog_post->getTemplate(), array('a_blog_post' => $a_blog_post, 'edit' => false)) ?> 
     16 
     17  <?php include_partial('aBlog/'.$a_blog_post->getTemplate(), array('a_blog_post' => $a_blog_post, 'edit' => false)) ?> 
    1818 
    1919</div> 
  • plugins/apostropheBlogPlugin/branches/1.5/modules/aBlog/templates/indexSuccess.php

    r4015 r4460  
    1212                <div class="a-subnav-inner"> 
    1313            <?php include_component('aBlog', 'sidebar', array('params' => $params, 'dateRange' => $dateRange, 'info' => $info, 'url' => 'aBlog/index', 'searchLabel' => a_('Search Posts'), 'newLabel' => a_('New Post'), 'newModule' => 'aBlogAdmin', 'newComponent' => 'newPost')) ?> 
    14           </div>  
     14          </div> 
    1515        </div> 
    1616<?php end_slot() ?> 
     
    2222                <?php if (count($slots) || $page->userHasPrivilege('edit')): ?> 
    2323                  <?php a_area('blog-heading', array( 
    24                                 'areaLabel' => a_('Add Blog Heading'),  
     24                                'areaLabel' => a_('Add Blog Heading'), 
    2525                                'allowed_types' => array( 
    26                                         'aRichText',  
    27                                         'aSlideshow',  
     26                                        'aRichText', 
     27                                        'aSlideshow', 
    2828                                        'aSmartSlideshow' 
    2929                                ), 
     
    3333                                                'height' => 280, 
    3434                                                'resizeType' => 'c', 
    35                                                 'flexHeight' => false,   
    36                                                 'constraints' => array('minimum-width' => 720, 'minimum-height' => 280),    
    37                                         ),  
     35                                                'flexHeight' => false, 
     36                                                'constraints' => array('minimum-width' => 720, 'minimum-height' => 280), 
     37                                        ), 
    3838                                        'aSmartSlideshow' => array( 
    3939                                                'width' => 720, 
    4040                                                'height' => 280, 
    4141                                                'resizeType' => 'c', 
    42                                                 'flexHeight' => false,   
    43                                                 'constraints' => array('minimum-width' => 720, 'minimum-height' => 280),    
     42                                                'flexHeight' => false, 
     43                                                'constraints' => array('minimum-width' => 720, 'minimum-height' => 280), 
    4444                                        ), 
    45                                 ),  
     45                                ), 
    4646                        )) ?> 
    4747                <?php endif ?> 
     
    5454 
    5555  <?php foreach ($pager->getResults() as $a_blog_post): ?> 
     56 
     57    <?php if (sfConfig::get('app_aBlog_excerpts_show')): ?> 
     58    <?php include_partial('aBlog/excerptTemplate', array('a_blog_post' => $a_blog_post, 'edit' => false)) ?> 
     59    <?php else: ?> 
    5660        <?php echo include_partial('aBlog/post', array('a_blog_post' => $a_blog_post)) ?> 
     61    <?php endif ?> 
    5762        <hr class="a-hr" /> 
     63 
    5864  <?php endforeach ?> 
    5965 
     
    6167        <?php include_partial('aBlog/pager', array('max_per_page' => $max_per_page, 'pager' => $pager, 'pagerUrl' => url_for('aBlog/index?' . http_build_query($params['pagination'])))) ?> 
    6268        <?php endif ?> 
    63                    
     69 
    6470</div>