SHARE
TWEET

Untitled

a guest Feb 19th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php $i = 0;
  2.     foreach ($countries as $k => $v): ?>
  3.  
  4.     <?php  if ($i % 5 == 4){
  5.          $class = 'last';
  6.     }else{
  7.         $class= '';
  8.     } ?>
  9.  
  10.     <a href="<?php echo $this->Html->url($v['Country']['link']); ?>"class="box <?php echo $class; ?>">
  11.  
  12.         <span>
  13.             <p>
  14.                 <?php echo $v['Country']['name']; ?>
  15.             </p>
  16.         </span>
  17.         <?php $img = current($v['Media']); ?>
  18.  
  19.     <?php echo $this->Html->image(sprintf($img['filef'],140,138)); ?>
  20.     </a>
  21.  
  22. <?php
  23.     $i++;
  24.     endforeach;
  25. ?>
  26. <div style="clear:both"></div>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top