" title="<?php echo $noticia['title']; ?> "> <?php if ($noticia['video']) { echo $noticia['video']; } else { echo $noticia['fip']; } ?> </a> </div> <?php $t = get_terms_array('departamentos'); } ?> <article class="post-content"> <div class="post-info-container"> <div class="post-info"> <h2><a class="main-color" href="<?php echo $noticia['permalink']; ?> " title="<?php echo $noticia['title']; ?> "><?php echo $noticia['title']; ?>
?> "><a href="#<?php //echo get_page_link_translated(202); ?> " title="<?php pll_e("Concesionarios"); ?> Concesionarios"><i class="fa fa-map-marker"></i><span><?php pll_e("Concesionarios"); ?> </span></a> <ul> <?php $prodCats = get_terms_array('concesionarias'); if ($prodCats) { $last = ''; $int = array(); foreach ($prodCats as $cat) { if ($cat->slug == 'tractores') { $last = '<li style="background: #222; text-transform: uppercase;"><a style="background: #222;" href="' . $home_url . $cat->taxonomy . '/' . $cat->slug . '/" title="' . $cat->name . '">' . $cat->name . '</a></li>'; } elseif ($cat->slug == 'uruguay' || $cat->slug == 'sudafrica' || $cat->slug == 'bolivia') { $int[] = '<li style="background: #c13715; text-transform: uppercase;"><a style="background: #c13715;" href="' . $home_url . $cat->taxonomy . '/' . $cat->slug . '/" title="' . $cat->name . '">' . $cat->name . '</a></li>'; } else { echo '<li><a href="' . $home_url . $cat->taxonomy . '/' . $cat->slug . '/" title="' . $cat->name . '">' . $cat->name . '</a></li>'; } } echo join("", $int); echo $last; }