/** * Get list of terms * * @return array * * @since 1.0 */ function yit_the_terms($sep = ',') { $terms = yit_work_get('terms'); if (empty($terms)) { $vars = yit_portfolio_query_vars(); if (!empty($vars->item['terms'])) { $terms = $vars->item['terms']; } else { return; } } $categories = yit_work_get('categories'); foreach ($terms as $i => $term) { $terms[$i] = '<a href="' . yit_term_link($term) . '">' . $categories[$term] . '</a>'; } echo implode("{$sep} ", $terms); }
<?php /** * Your Inspiration Themes * * @package WordPress * @subpackage Your Inspiration Themes * @author Your Inspiration Themes Team <*****@*****.**> * * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://www.gnu.org/licenses/gpl-3.0.txt */ global $post; $vars = yit_portfolio_query_vars(); get_header(); do_action('yit_before_primary'); ?> <!-- START PRIMARY --> <div id="primary" class="sidebar-no"> <div class="container group"> <div class="row"> <?php do_action('yit_before_content'); ?> <!-- START CONTENT --> <div id="content-page" class="span12 content group"> <?php