Guest User

Untitled

a guest
Dec 11th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. foreach ($terms as $term) :
  2. if ($term->parent == 0) {
  3. $out .= ($current == $term->slug) ?
  4. '<li><a href="' . get_term_link($term->slug, 'catalog') . '" class="current"><span><!-- --></span>' . $term->name . '</a></li>' :
  5. '<li><a href="' . get_term_link($term->slug, 'catalog') . '"><span><!-- --></span>' . $term->name . '</a></li>';
  6. }
  7. endforeach;
Add Comment
Please, Sign In to add comment