Skip to content

Commit

Permalink
Added Article count in com_content component + direct links to Catego…
Browse files Browse the repository at this point in the history
…ry Manager
  • Loading branch information
pe7er committed May 10, 2015
1 parent 00798d6 commit 1c0e496
Showing 1 changed file with 17 additions and 11 deletions.
Expand Up @@ -179,17 +179,23 @@
<?php endif; ?>
</span>
</td>
<?php if ($component == 'com_content') : ?>
<td class="small hidden-phone">
<?php echo (int) $item->count_published; ?>
</td>
<td class="small hidden-phone">
<?php echo (int) $item->count_unpublished; ?>
</td>
<td class="small hidden-phone">
<?php echo (int) $item->count_trashed; ?>
</td>
<?php endif; ?>
<?php if ($component == 'com_content') : ?>
<td class="center btns">
<a class="badge <?php if ($item->count_published > 0) echo "badge-success"; ?>" href="<?php echo JRoute::_('index.php?option=com_content&view=articles&filter[category_id]='
. (int) $item->id . '&filter[published]=1' . '&filter[level]=' . (int) $item->level);?>">
<?php echo $item->count_published; ?></a>
</td>
<td class="center btns">
<a class="badge <?php if ($item->count_unpublished > 0) echo "badge-important"; ?>" href="<?php echo JRoute::_('index.php?option=com_content&view=articles&filter[category_id]='
. (int) $item->id . '&filter[published]=0' . '&filter[level]=' . (int) $item->level);?>">
<?php echo $item->count_unpublished; ?></a>
</td>
<td class="center btns">
<a class="badge <?php if ($item->count_trashed > 0) echo "badge-inverse"; ?>" href="<?php echo JRoute::_('index.php?option=com_content&view=articles&filter[category_id]='
. (int) $item->id . '&filter[published]=-2' . '&filter[level]=' . (int) $item->level);?>">
<?php echo $item->count_trashed; ?></a>
</td>
<?php endif; ?>
<td class="small hidden-phone">
<?php echo $this->escape($item->access_level); ?>
</td>
Expand Down

0 comments on commit 1c0e496

Please sign in to comment.