HEX
Server: LiteSpeed
System: Linux l24.yourwebhosting.net 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User: turkishi (1582)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/turkishi/www/wp-content/plugins/learnpress/templates/profile/tabs/statistics/item-count.php
<?php
/**
 * Template for displaying count item.
 *
 * @since 4.2.3
 * @version 1.0.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

if ( ! isset( $data ) ) {
	return;
}

foreach ( $data as $key => $item ) {
 	?>
	<div class="statistic-box" title="<?php echo esc_attr( $item['title'] ?? '' ); ?>">
		<div class="statistic-box__icon">
			<span class="lp-icon-<?php echo esc_attr($key) ?>"></span>
		</div>
		<div class="statistic-box__text">
			<label><?php echo esc_html( $item['label'] ?? '' ); ?></label>
			<span class="statistic-box__text__number"><?php echo esc_html( $item['count'] ?? 0 ); ?></span>
		</div>
	</div>
	<?php
}