Skip to content
Browse files

# [#29281] Fix open div in com_content blog view (again). Thanks Kyle

and Andy
  • Loading branch information...
1 parent 50d803a commit bc0e63f4b7e7fe397d0240e0fb06dce22e6cce93 @andreatarr andreatarr committed with infograf768 Sep 23, 2012
Showing with 5 additions and 1 deletion.
  1. +4 −1 components/com_content/views/category/tmpl/blog_item.php
  2. +1 −0 installation/CHANGELOG
View
5 components/com_content/views/category/tmpl/blog_item.php
@@ -34,8 +34,9 @@
</ul>
</div>
<?php endif; ?>
- <?php if ($params->get('show_title')) : ?>
+ <?php if ($params->get('show_title') || $this->item->state == 0 || ($params->get('show_author') && !empty($this->item->author ))) : ?>
<div class="page-header">
+ <?php if ($params->get('show_title')) : ?>
<h2>
<?php if ($params->get('link_titles') && $params->get('access-view')) : ?>
<a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>"> <?php echo $this->escape($this->item->title); ?></a>
@@ -44,6 +45,7 @@
<?php endif; ?>
</h2>
<?php endif; ?>
+
<?php if ($this->item->state == 0): ?>
<span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span>
<?php endif; ?>
@@ -62,6 +64,7 @@
<?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?>
<?php endif; ?>
</small>
+ <?php endif; ?>
</div>
<?php endif; ?>
View
1 installation/CHANGELOG
@@ -30,6 +30,7 @@ $ -> Language fix or change
$ Improving ta-IN installation ini
# [#29285] String Last Updated appears twice in frontend. Thanks Stella.
# [#29244] *Blocked/unblocked activated/not activated not displaying in user manager. Thanks Yannick
+ # [#29281] Fix open div in com_content blog view (again). Thanks Kyle and Andy
22-Sep-2012 Mark Dexter
# [#28764] user notes category is not properly nested in the assets table. Thanks Elin.

0 comments on commit bc0e63f

Please sign in to comment.
Something went wrong with that request. Please try again.