Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $i = 0;
- foreach ($countries as $k => $v): ?>
- <?php if ($i % 5 == 4){
- $class = 'last';
- }else{
- $class= '';
- } ?>
- <a href="<?php echo $this->Html->url($v['Country']['link']); ?>"class="box <?php echo $class; ?>">
- <span>
- <p>
- <?php echo $v['Country']['name']; ?>
- </p>
- </span>
- <?php $img = current($v['Media']); ?>
- <?php echo $this->Html->image(sprintf($img['filef'],140,138)); ?>
- </a>
- <?php
- $i++;
- endforeach;
- ?>
- <div style="clear:both"></div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement