HEX
Server: Apache
System: Linux host.fiblib.com 5.14.0-570.58.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 29 06:24:11 EDT 2025 x86_64
User: scientificreligi (1062)
PHP: 8.0.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/cwd/wp-content/plugins/yith-woocommerce-compare/templates/yith-compare-counter.php
<?php
/**
 * Woocommerce Compare counter shortcode template
 *
 * @author YITH <plugins@yithemes.com>
 * @package YITH\Compare
 * @version 2.3.2
 */

defined( 'YITH_WOOCOMPARE' ) || exit; // Exit if accessed directly.

global $yith_woocompare;
?>

<div class="yith-woocompare-counter" data-type="<?php echo esc_attr( $type ); ?>" data-text_o="<?php echo esc_attr( $text_o ); ?>">
	<a class="yith-woocompare-open" href="<?php echo esc_url( YITH_WooCompare_Frontend::instance()->get_table_url() ); ?>">
		<span class="yith-woocompare-counter">
			<?php if ( 'yes' === $show_icon ) : ?>
				<span class="yith-woocompare-icon">
					<img src="<?php echo esc_url( $icon ); ?>" />
				</span>
			<?php endif; ?>
			<span class="yith-woocompare-count">
				<?php
				switch ( $type ) :
					case 'text':
						echo esc_html( $text );
						break;
					case 'number':
					default:
						echo esc_html( $items_count );
						break;
					endswitch;
				?>
			</span>
		</span>
	</a>
</div>

<?php
wp_enqueue_script( 'yith-woocompare-main' );