asset-manager
5 years ago
dashboard-widgets
6 months ago
metaboxes
1 week ago
settings
4 months ago
stats
1 week ago
templates
1 week ago
addons-list.php
1 week ago
admin-footer.php
2 months ago
admin-head.php
2 years ago
edit-store-profile.php
5 years ago
iconfinder.php
2 years ago
page-header.php
6 months ago
settings.php
6 months ago
stats.php
6 months ago
welcome.php
6 months ago
stats.php
61 lines
| 1 | <?php |
| 2 | $type = wpdm_query_var('type', array('validate' => 'alpha', 'default' => 'history')); |
| 3 | $base_page_uri = "edit.php?post_type=wpdmpro&page=wpdm-stats"; |
| 4 | ?> |
| 5 | <link rel="stylesheet" href="<?php echo WPDM_BASE_URL; ?>assets/css/wpdm-elegant-history.css?v=<?php echo WPDM_VERSION; ?>"> |
| 6 | <div class="wrap w3eden"> |
| 7 | |
| 8 | <?php |
| 9 | |
| 10 | $actions = [ |
| 11 | ['link' => "#", "class" => "success disabled", "name" => '<i class="sinc far fa-arrow-alt-circle-down"></i> ' . __("Export Full History", "download-manager")] |
| 12 | ]; |
| 13 | |
| 14 | $menus = [ |
| 15 | ['link' => "edit.php?post_type=wpdmpro&page=wpdm-stats&type=overview", "name" => __("Overview", "download-manager"), "active" => ($type === 'overview')], |
| 16 | ['link' => "edit.php?post_type=wpdmpro&page=wpdm-stats", "name" => __("Download History", "download-manager"), "active" => ($type === 'history')], |
| 17 | ['link' => "edit.php?post_type=wpdmpro&page=wpdm-stats&type=insight", "name" => __("Insights", "download-manager"), "active" => ($type === 'insight')], |
| 18 | ]; |
| 19 | |
| 20 | WPDM()->admin->pageHeader(esc_attr__( 'History and Stats', WPDM_TEXT_DOMAIN ), 'chart-pie color-purple', $menus, $actions); |
| 21 | |
| 22 | ?> |
| 23 | |
| 24 | |
| 25 | |
| 26 | <!--<div class="panel-heading"> |
| 27 | <a class="btn btn-primary btn-sm pull-right" href="<?/*= $base_page_uri; */?>&task=export&__xnonce=<?/*=wp_create_nonce(NONCE_KEY); */?>" style="font-weight: 400"> |
| 28 | <i class="sinc far fa-arrow-alt-circle-down"></i> <?php /*_e("Export History", 'download-manager'); */?> |
| 29 | </a> |
| 30 | <b><i class="fas fa-chart-line color-purple"></i> <?php /*echo __("Download Statistics", "download-manager"); */?></b> |
| 31 | |
| 32 | </div>--> |
| 33 | |
| 34 | |
| 35 | <div class="wpdm-admin-page-content"> |
| 36 | <?php |
| 37 | if(file_exists(wpdm_admin_tpl_path("stats/{$type}.php"))) include wpdm_admin_tpl_path("stats/{$type}.php"); |
| 38 | else if (isset($stat_types[$type])) call_user_func($stat_types[$type]['callback']); |
| 39 | else { |
| 40 | ?> |
| 41 | <div style="display: flex;width: 100%;"> |
| 42 | <div style="display: inline-block; margin: 20px auto"> |
| 43 | <div class="panel panel-default"> |
| 44 | <div class="panel-body"> |
| 45 | <strong><?php echo __( 'Extended Download Stats', 'download-manager' ) ?></strong><br/> |
| 46 | <?php echo __( 'Available with the pro version only!', 'download-manager' ) ?> |
| 47 | </div> |
| 48 | <div class="panel-footer"><a href="https://try.wpdownloadmanager.com/wp-admin/edit.php?post_type=wpdmpro&page=wpdm-stats&y=2025&m=9" target="_blank" class="btn btn-primary btn-sm">Preview</a></div> |
| 49 | </div> |
| 50 | </div> |
| 51 | </div> |
| 52 | <?php |
| 53 | } |
| 54 | ?> |
| 55 | </div> |
| 56 | |
| 57 | |
| 58 | <style> |
| 59 | .notice{ display: none; } |
| 60 | </style> |
| 61 |