To participate you must create an account on apostrophenow.org. If you have already done so, click Login.
Changeset 4491
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r3916
|
r4491
|
|
| 17 | 17 | <?php // Allows styling based on whether there is media in the post, ?> |
| 18 | 18 | <?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 ?>"> |
| 20 | 21 | <?php // TODO: passing a variable as both underscore and intercap is silly clean this up make the partials consistent but look out for overrides ?> |
| 21 | 22 | <?php include_partial('aBlog/'.$template.$suffix, array('aBlogPost' => $aBlogItem, 'a_blog_post' => $aBlogItem, 'edit' => false, 'options' => $options)) ?> |
Download in other formats: