Skip to content

Commit

Permalink
JBR Workshop Stap 13
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderpotjer committed Jan 25, 2015
1 parent 517ad7b commit 312672a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions html/com_weblinks/category/default.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php
defined('_JEXEC') or die;
?>
<div class="row-fluid">
<div class="span3">
<h3><?php echo $this->escape($this->category->title); ?></h3>
<?php echo JHtml::_('content.prepare', $this->category->description, '', 'com_weblinks.category'); ?>
</div>
<div class="span9">
<div class="row-fluid">
<ul class="thumbnails">
<?php
foreach ($this->items as $i => $item) :
$images = json_decode($item->images);
?>
<li class="span4 <?php if(($i-1)%3 == 2):?>firstinrow<?php endif;?>">
<a class="thumbnail" href="<?php echo($item->link);?>">
<img src="<?php echo htmlspecialchars($images->image_first); ?>" alt="<?php echo htmlspecialchars($images->image_first_alt); ?>"/>
<div class="caption">
<h5><?php echo $this->escape($item->title); ?></h5>
<?php echo $item->description; ?>
</div>
</a>
</li>
<?php endforeach;?>
</ul>
</div>
</div>
</div>

0 comments on commit 312672a

Please sign in to comment.