| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template for displaying count item. |
| 4 |
* |
| 5 |
* @since 4.2.3 |
| 6 |
* @version 1.0.0 |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit; |
| 11 |
} |
| 12 |
|
| 13 |
if ( ! isset( $data ) ) { |
| 14 |
return; |
| 15 |
} |
| 16 |
|
| 17 |
foreach ( $data as $key => $item ) { |
| 18 |
?> |
| 19 |
<div class="statistic-box" title="<?php echo esc_attr( $item['title'] ?? '' ); ?>"> |
| 20 |
<div class="statistic-box__icon"> |
| 21 |
<span class="lp-icon-<?php echo esc_attr($key) ?>"></span> |
| 22 |
</div> |
| 23 |
<div class="statistic-box__text"> |
| 24 |
<label><?php echo esc_html( $item['label'] ?? '' ); ?></label> |
| 25 |
<span class="statistic-box__text__number"><?php echo esc_html( $item['count'] ?? 0 ); ?></span> |
| 26 |
</div> |
| 27 |
</div> |
| 28 |
<?php |
| 29 |
} |
| 30 |
|