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

Changeset 4491

Show
Ignore:
Timestamp:
01/20/12 15:47:56 (4 months ago)
Author:
kerry
Message:

index and show success output the .category-catname class on the .a-blog-item div
the blog slot .a-blog-item div did not get this same treatment. So i ported over the implementation to _post.php for blog slots

Files:
1 modified

Legend:

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

    r3916 r4491  
    1717<?php // Allows styling based on whether there is media in the post, ?> 
    1818<?php // the blog template, and the subtemplate ?> 
    19 <div id="a-blog-item-<?php echo $name ?>-<?php echo $permid ?>-<?php echo $aBlogItem->getId() ?>" class="a-blog-item post<?php echo ($aBlogItem->hasMedia())? ' has-media':''; ?> <?php echo $template ?> <?php echo $subtemplate ?>"> 
     19<?php $catClass = ""; foreach ($aBlogItem->getCategories() as $category): ?><?php $catClass .= " category-".aTools::slugify($category); ?><?php endforeach ?> 
     20<div id="a-blog-item-<?php echo $name ?>-<?php echo $permid ?>-<?php echo $aBlogItem->getId() ?>" class="a-blog-item post<?php echo ($aBlogItem->hasMedia())? ' has-media':''; ?> <?php echo $template ?> <?php echo $subtemplate ?> <?php echo $catClass ?>"> 
    2021<?php // TODO: passing a variable as both underscore and intercap is silly clean this up make the partials consistent but look out for overrides ?> 
    2122<?php include_partial('aBlog/'.$template.$suffix, array('aBlogPost' => $aBlogItem, 'a_blog_post' => $aBlogItem, 'edit' => false, 'options' => $options)) ?>