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

Changeset 1051

Show
Ignore:
Timestamp:
04/26/10 09:58:14 (2 years ago)
Author:
dordille
Message:

Include blog sidebar on blog post show view. Fixes #292.

Location:
plugins/apostropheBlogPlugin/trunk/modules/aBlog
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • plugins/apostropheBlogPlugin/trunk/modules/aBlog/lib/BaseaBlogActions.class.php

    r963 r1051  
    6363  public function executeShow(sfWebRequest $request) 
    6464  { 
     65    $this->buildParams(); 
     66    $this->dateRange = ''; 
    6567    $this->aBlogPost = $this->getRoute()->getObject(); 
    6668  } 
  • plugins/apostropheBlogPlugin/trunk/modules/aBlog/lib/BaseaBlogComponents.class.php

    r853 r1051  
    2929      ->orderBy('c.name') 
    3030      ->execute(); 
     31 
     32    if($this->reset == true) 
     33    { 
     34      $this->params['cat'] = array(); 
     35      $this->params['tag'] = array(); 
     36    } 
    3137  } 
    3238   
  • plugins/apostropheBlogPlugin/trunk/modules/aBlog/templates/_sidebar.php

    r540 r1051  
    5656</div> 
    5757 
     58<?php if(isset($noFeed)): ?> 
    5859<hr /> 
    5960<h5><?php echo link_to('RSS Feed',  aUrl::addParams('aBlog/index?feed=rss', $params['tag'], $params['cat'])) ?></h5> 
     61<?php endif ?> 
    6062 
    6163<script type="text/javascript"> 
  • plugins/apostropheBlogPlugin/trunk/modules/aBlog/templates/showSuccess.php

    r1037 r1051  
    11<?php slot('body_class') ?>a-blog <?php echo $sf_params->get('module'); ?> <?php echo $sf_params->get('action') ?><?php end_slot() ?> 
    22 
    3 <?php if (0): ?> 
    4 <?php // TODO: Dan, pass in the right variables to make this work as per Rick's ticket ?> 
    53<?php slot('a-subnav') ?> 
    64        <div class="a-subnav-wrapper blog"> 
    75                <div class="a-subnav-inner"> 
    8             <?php include_component('aBlog', 'sidebar', array('params' => $params, 'dateRange' => $dateRange, 'categories' => $blogCategories)) ?> 
     6            <?php include_component('aBlog', 'sidebar', array('params' => $params, 'dateRange' => $dateRange, 'categories' => $blogCategories, 'reset' => true)) ?> 
    97          </div>  
    108        </div> 
    119<?php end_slot() ?> 
    12 <?php endif ?> 
    1310 
    1411<?php echo include_partial('aBlog/post', array('a_blog_post' => $aBlogPost)) ?>