PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.3.9
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.3.9
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 4.2.1 All 138 releases
learnpress / inc / admin / views / dashboard / html-orders.php

html-orders.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.3.9, at inc/admin/views/dashboard/html-orders.php

49 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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; ?>
49