PluginProbe
WP Directory Kit / 1.3.4
WP Directory Kit v1.3.4
1.5.6 1.5.5 1.5.4 1.5.3 trunk 1.1.0 1.1.6 1.1.8 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.8 1.4.0 1.4.1 All 35 releases
wpdirectorykit / dash-widgets / views / dash-widgets-statistics-usage.php

dash-widgets-statistics-usage.php in WP Directory Kit 1.3.4, at dash-widgets/views/dash-widgets-statistics-usage.php

38 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The template for Shortcode Listings list
4 * This is the template that Shortcode listings list
5 *
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit; // Exit if accessed directly.
10 }
11
12 ?>
13 <div class="wdk-dashwidget-element" id="wdk_dashwidget_<?php echo esc_attr($id_element);?>">
14 <div class="dash-widgets-statistics-usage wdk-wrap">
15
16 <?php if(isset($stats)) foreach ($stats as $stat):?>
17 <?php if(wmvc_show_data('link', $stat, false)):?>
18 <a href="<?php echo esc_attr(wmvc_show_data('link', $stat,''));?>" title="<?php echo esc_html(wmvc_show_data('title', $stat,''));?>" class="stat-card <?php echo esc_attr(wmvc_show_data('class', $stat,''));?>">
19 <?php else:?>
20 <div class="stat-card <?php echo esc_attr(wmvc_show_data('class', $stat,''));?>">
21 <?php endif;?>
22
23 <div class="body">
24 <div class="count"><?php echo esc_html(wmvc_show_data('value', $stat,''));?></div>
25 <div class="title"><?php echo esc_html(wmvc_show_data('title', $stat,''));?></div>
26 </div>
27 <div class="side"><span class=" <?php echo esc_attr((wdk_show_data('icon', $stat,false)? wdk_show_data('icon', $stat) : 'dashicons dashicons-chart-bar'));?>"></span></div>
28
29 <?php if(wmvc_show_data('link', $stat, false)):?>
30 </a>
31 <?php else:?>
32 </div>
33 <?php endif;?>
34 <?php endforeach;?>
35 </div>
36 </div>
37
38