Advertisement
deliciousthemes

Haze - Portfolio Page

Jun 25th, 2012
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.00 KB | None | 0 0
  1.             <div class="breadcrumbs">
  2.                 <div class="one-fourth align-left">
  3.                     <?php if (function_exists('dt_breadcrumbs')) dt_breadcrumbs(); ?>
  4.                 </div>
  5.                
  6.                 <div class="three-fourth column-last align-right">
  7.                     <ul id="filters">
  8.                         <li><?php _e('Sort By: ', 'haze'); ?></li>
  9.                         <li class="selected active"><a data-value="all" href="#"><?php _e('All', 'haze') ?></a></li>
  10.                         <?php
  11.                             $terms = get_terms('portfolio_cats');
  12.                             $count = count($terms);
  13.                             $i=0;
  14.                             $term_list = '';
  15.                             if ($count > 0) {
  16.                                 foreach ($terms as $term) {
  17.                                     $i++;
  18.                                     $term_list .= '<li class=""><a href="#" data-value="'. $term->slug .'" class="'. $term->slug .'">' . $term->name . '</a></li>';
  19.                                     if ($count != $i)
  20.                                     {
  21.                                         $term_list .= '';
  22.                                     }
  23.                                     else
  24.                                     {
  25.                                         $term_list .= '';
  26.                                     }
  27.                                 }
  28.                                 echo $term_list;
  29.                             }
  30.                         ?>
  31.                     </ul>                  
  32.                 </div>
  33.             </div><!--end breadcrumbs-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement