<?php
/**
 * Loop item title
 */

$count  = $category->count;
$before = ! is_rtl() ? $this->get_attr( 'count_before_text' ) : $this->get_attr( 'count_after_text' );
$after  = ! is_rtl() ? $this->get_attr( 'count_after_text' ) : $this->get_attr( 'count_before_text' );

if ( 'yes' !== $this->get_attr( 'show_count' ) ) {
	return;
}

echo sprintf( '<span class="jet-woo-category-count">%2$s%1$s%3$s</span>', $count, $before, $after );
