<?php if(conall_edge_options()->getOptionValue('portfolio_single_hide_categories') !== 'yes') : ?>

    <?php
    $categories   = wp_get_post_terms(get_the_ID(), 'portfolio-category');
    $categy_names = array();
    if(is_array($categories) && count($categories)) :
        foreach($categories as $category) {
            $categy_names[] = $category->name;
        }
        ?>
        <div class="edgtf-portfolio-info-item edgtf-portfolio-categories">
            <p class="edgtf-portfolio-info-title"><?php esc_html_e('Category:', 'conall'); ?></p>
            <p><?php echo esc_html(implode(', ', $categy_names)); ?></p>
        </div>
    <?php endif; ?>

<?php endif; ?>