Skip to content

Commit

Permalink
Changes on beez3 override of com_contact category list view to displa…
Browse files Browse the repository at this point in the history
…y contact image
  • Loading branch information
drmenzelit committed Apr 14, 2016
1 parent 9947a91 commit f813274
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions templates/beez3/html/com_contact/category/default_items.php
Expand Up @@ -33,6 +33,10 @@
<?php if ($this->params->get('show_headings')) : ?>
<thead><tr>

<?php if ($this->params->get('show_image_heading')) : ?>
<th class="item-image">
</th>
<?php endif; ?>
<th class="item-title">
<?php echo JHtml::_('grid.sort', 'COM_CONTACT_CONTACT_EMAIL_NAME_LABEL', 'a.name', $listDirn, $listOrder); ?>
</th>
Expand Down Expand Up @@ -94,6 +98,14 @@
<tr class="cat-list-row<?php echo $i % 2; ?>" >
<?php endif; ?>

<?php if ($this->params->get('show_image_heading')) : ?>
<td class="item-image">
<?php if ($this->items[$i]->image) : ?>
<?php echo JHtml::_('image', $this->items[$i]->image, JText::_('COM_CONTACT_IMAGE_DETAILS'), array('class' => 'contact-thumbnail img-thumbnail')); ?>
<?php endif; ?>
</td>
<?php endif; ?>

<td class="item-title">
<a href="<?php echo JRoute::_(ContactHelperRoute::getContactRoute($item->slug, $item->catid)); ?>">
<?php echo $item->name; ?></a>
Expand Down

0 comments on commit f813274

Please sign in to comment.