PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.9
4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 All 140 releases
← All changes | templates/profile/tabs/statistics/item-count.php +29 -29 4.3.8 → 4.4.9 View file →
@@ -1,29 +1,29 @@
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 -}
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 +}