Guest User

Untitled

a guest
Feb 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. <?php if (count($potfolioItems) > 15) echo '<ul>'; ?>
  2. <?php
  3. foreach ($potfolioItems as $id => $item) :
  4. if ( $id > 15 && $id < 30 ) : // Change to 30 then 45 then 60 ect....
  5. ?>
  6. <li class="port_item">
  7. <a href="items/full/<?=$item['img_name']?>" title="<?=$item['name'].', '.$item['type']?>">
  8. <div class="view_large"></div>
  9. <div style="background-image:url(items/thumbs/<?=$item['img_name']?>);" class="img" ></div>
  10. </a>
  11. <!--<a href="<?=$item['url']?>" title="<?=$item['name'].', '.$item['type']?>">-->
  12. <p>
  13. <strong><?=$item['name']?></strong><br />
  14. <?=$item['type']?> <br />
  15. <span><?=$item['work']?></span>
  16. </p>
  17. <!--</a>-->
  18. </li>
  19. <?php endif; endforeach; ?>
  20. <?php if (count($potfolioItems) > 15) echo '</ul>'; ?>
Add Comment
Please, Sign In to add comment