PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
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 4.2.0 All 139 releases
← All changes | inc/admin/views/dashboard/html-orders.php +48 -48 4.3.9.14.4.8 View file →
@@ -1,48 +1,48 @@
1 -<?php
2 -/**
3 - * Template for displaying statistic orders dashboard in wp-admin
4 - *
5 - * @author ThimPress
6 - * @package LearnPress/Inc/Admin/Views/
7 - * @version 4.0.1
8 - */
9 -
10 -defined( 'ABSPATH' ) || exit;
11 -
12 -if ( ! isset( $order_statuses ) || ! isset( $lp_order_icons ) ) {
13 - return;
14 -}
15 -?>
16 -
17 -<li class="count-number total-raised">
18 - <span>
19 - <i class="dashicons dashicons-chart-bar"></i>
20 - <?php echo learn_press_get_total_price_order_complete(); ?></span>
21 - <p><?php esc_html_e( 'Total Raised', 'learnpress' ); ?></p>
22 -</li>
23 -
24 -<?php
25 -$counts = learn_press_count_orders();
26 -foreach ( $order_statuses as $key => $status ) :
27 - $count = $counts[ $key ];
28 - $url = $count ? admin_url( 'edit.php?post_type=' . LP_ORDER_CPT . '&post_status=' . $key ) : '#';
29 - ?>
30 -
31 - <li class="counter-number order-<?php echo $status; ?>">
32 - <div class="counter-inner">
33 - <a href="<?php echo esc_url_raw( $url ); ?>">
34 - <span>
35 - <?php
36 - if ( $count ) {
37 - printf( translate_nooped_plural( _n_noop( '%d order', '%d orders', 'learnpress' ), $count, 'learnpress' ), $count );
38 - } else {
39 - printf( __( '%d order', 'learnpress' ), 0 );
40 - }
41 - //echo $lp_order_icons[ $status ];
42 - ?>
43 - </span>
44 - <p><?php printf( '%s', LP_Order::get_status_label( $status ) ); ?></p>
45 - </a>
46 - </div>
47 - </li>
48 -<?php endforeach; ?>
1 +<?php
2 +/**
3 + * Template for displaying statistic orders dashboard in wp-admin
4 + *
5 + * @author ThimPress
6 + * @package LearnPress/Inc/Admin/Views/
7 + * @version 4.0.1
8 + */
9 +
10 +defined( 'ABSPATH' ) || exit;
11 +
12 +if ( ! isset( $order_statuses ) || ! isset( $lp_order_icons ) ) {
13 + return;
14 +}
15 +?>
16 +
17 +<li class="count-number total-raised">
18 + <span>
19 + <i class="dashicons dashicons-chart-bar"></i>
20 + <?php echo learn_press_get_total_price_order_complete(); ?></span>
21 + <p><?php esc_html_e( 'Total Raised', 'learnpress' ); ?></p>
22 +</li>
23 +
24 +<?php
25 +$counts = learn_press_count_orders();
26 +foreach ( $order_statuses as $key => $status ) :
27 + $count = $counts[ $key ];
28 + $url = $count ? admin_url( 'edit.php?post_type=' . LP_ORDER_CPT . '&post_status=' . $key ) : '#';
29 + ?>
30 +
31 + <li class="counter-number order-<?php echo $status; ?>">
32 + <div class="counter-inner">
33 + <a href="<?php echo esc_url_raw( $url ); ?>">
34 + <span>
35 + <?php
36 + if ( $count ) {
37 + printf( translate_nooped_plural( _n_noop( '%d order', '%d orders', 'learnpress' ), $count, 'learnpress' ), $count );
38 + } else {
39 + printf( __( '%d order', 'learnpress' ), 0 );
40 + }
41 + //echo $lp_order_icons[ $status ];
42 + ?>
43 + </span>
44 + <p><?php printf( '%s', LP_Order::get_status_label( $status ) ); ?></p>
45 + </a>
46 + </div>
47 + </li>
48 +<?php endforeach; ?>