Advertisement
Guest User

Fonction portfolio isotope (archive-portfolio.php)

a guest
Feb 20th, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.65 KB | None | 0 0
  1. <?php
  2.             $terms = get_terms("type");
  3.              $count = count($terms);
  4.              echo '<ul id="portfolio-filter">';
  5.              echo '<li class="active-tag btn btn-small filter">Trier : &nbsp;&nbsp;&nbsp;<a href="#all" data-filter="*" class="active" title="Tout">Tout</a></li>';
  6.              if ( $count > 0 ) {
  7.              foreach ( $terms as $term ) {
  8.              $termname = ($term->slug);
  9.              echo '&nbsp;<li class="btn btn-small filter"><a href="#'.$termname.'" title="" data-filter=".'.$termname.'" rel="'.$termname.'">'.$term->name.'</a></li>';
  10.              }
  11.              }
  12.              echo "</ul>";
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement