<?php
$cat = get_term_by('slug', $params['category'], 'product_cat');
$cat_name = ( $cat ) ? $cat->name : '';
?>
<div class="qodef-category-holder <?php echo esc_html($skin) ?>">
	<?php  if ( ! empty( $custom_link ) ) { ?>
		<a itemprop="url" class="qodef-pc-custom-link" href="<?php echo esc_url( $custom_link ); ?>" target="<?php echo esc_attr( $custom_link_target ); ?>"></a>
	<?php } ?>
    <div class="qodef-category-image">
        <?php echo wp_get_attachment_image($params['category_image'], $category_image_size); ?>
        <div class="qodef-category-text-wrapper">
            <div class="qodef-category-text-holder">
                <div class="qodef-category-text">
                    <<?php echo peggi_select_escape_title_tag($params['title_tag']); ?> class="qodef-category-title"> <?php echo esc_html($cat_name) ?> </<?php echo peggi_select_escape_title_tag($params['title_tag']); ?>>
                </div>
            </div>
        </div>
    </div>
</div>