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

Changeset 4462

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

copied excerpt in index view code to the events side of the blog plugin, works in the same way.

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

Legend:

Unmodified
Added
Removed
  • plugins/apostropheBlogPlugin/branches/1.5/modules/aEvent/templates/indexSuccess.php

    r3933 r4462  
    1212                <div class="a-subnav-inner"> 
    1313            <?php include_component('aBlog', 'sidebar', array('params' => $params, 'dateRange' => $dateRange, 'info' => $info, 'url' => 'aEvent/index', 'searchLabel' => a_('Search Events'), 'newLabel' => a_('New Event'), 'newModule' => 'aEventAdmin', 'newComponent' => 'newEvent', 'calendar' => $calendar)) ?> 
    14           </div>  
     14          </div> 
    1515        </div> 
    1616<?php end_slot() ?> 
    1717 
    1818<div id="a-blog-main" class="a-blog-main clearfix"> 
    19    
     19 
    2020        <div class="a-ui a-blog-heading"> 
    2121                <?php ($page) ? $slots = $page->getArea('blog-heading') : $slots = array() ?> 
     
    3131 
    3232  <?php foreach ($pager->getResults() as $a_event): ?> 
    33         <?php echo include_partial('aEvent/post', array('a_event' => $a_event)) ?> 
    34         <hr class="a-hr" /> 
     33 
     34    <?php if (sfConfig::get('app_aEvents_excerpts_show')): ?> 
     35    <?php include_partial('aEvent/excerptTemplate', array('a_event' => $a_event, 'edit' => false)) ?> 
     36    <?php else: ?> 
     37    <?php echo include_partial('aEvent/post', array('a_event' => $a_event)) ?> 
     38    <?php endif ?> 
     39    <hr class="a-hr" /> 
     40 
    3541  <?php endforeach ?> 
    3642