admin
2 years ago
core
2 years ago
class-activator.php
3 years ago
class-assets.php
2 years ago
class-builder-page.php
3 years ago
class-deactivator.php
3 years ago
class-debug-info.php
2 years ago
class-feed-ajax.php
2 years ago
class-feed-block.php
2 years ago
class-feed-deserializer.php
2 years ago
class-feed-old.php
4 years ago
class-feed-page.php
3 years ago
class-feed-serializer.php
3 years ago
class-feed-shortcode.php
3 years ago
class-feed-widget.php
4 years ago
class-plugin-overview-ajax.php
3 years ago
class-plugin-overview.php
3 years ago
class-plugin-settings.php
2 years ago
class-plugin-support.php
3 years ago
class-plugin.php
2 years ago
class-post-types.php
3 years ago
class-reviews-cron.php
2 years ago
class-settings-save.php
3 years ago
class-view.php
2 years ago
index.php
4 years ago
page-setting-fig.php
3 years ago
page-setting-support.php
4 years ago
class-plugin-overview.php
95 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WP_Rplg_Google_Reviews\Includes; |
| 4 | |
| 5 | use WP_Rplg_Google_Reviews\Includes\Core\Core; |
| 6 | |
| 7 | class Plugin_Overview { |
| 8 | |
| 9 | public function __construct() { |
| 10 | } |
| 11 | |
| 12 | public function register() { |
| 13 | add_action('grw_admin_page_grw', array($this, 'init')); |
| 14 | add_action('grw_admin_page_grw', array($this, 'render')); |
| 15 | } |
| 16 | |
| 17 | public function init() { |
| 18 | |
| 19 | } |
| 20 | |
| 21 | public function render() { |
| 22 | |
| 23 | wp_nonce_field('grw_wpnonce', 'grw_nonce'); |
| 24 | |
| 25 | wp_enqueue_script('grw-admin-apexcharts-js'); |
| 26 | |
| 27 | ?> |
| 28 | |
| 29 | <div class="grw-page-title"> |
| 30 | Overview |
| 31 | </div> |
| 32 | |
| 33 | <div class="grw-overview-workspace"> |
| 34 | |
| 35 | <div class="grw-overview-places"> |
| 36 | <select id="grw-overview-months"> |
| 37 | <option value="6" selected>6 months</option> |
| 38 | <option value="12">a year</option> |
| 39 | <option value="24">2 years</option> |
| 40 | <option value="36">3 years</option> |
| 41 | <option value="60">5 years</option> |
| 42 | </select> |
| 43 | <select id="grw-overview-places"></select> |
| 44 | </div> |
| 45 | |
| 46 | <div class="grw-flex-row"> |
| 47 | <div class="grw-flex-col6"> |
| 48 | |
| 49 | <div class="grw-card"> |
| 50 | <div class="grw-card-body"> |
| 51 | <div id="chart"></div> |
| 52 | </div> |
| 53 | </div> |
| 54 | |
| 55 | </div> |
| 56 | |
| 57 | <div class="grw-flex-col4"> |
| 58 | |
| 59 | <div class="grw-flex-row"> |
| 60 | |
| 61 | <div class="grw-flex-col"> |
| 62 | <div class="grw-card"> |
| 63 | <div class="grw-card-header">Rating</div> |
| 64 | <div class="grw-card-body grw-card-fh"> |
| 65 | <div id="grw-overview-rating"><img src="<?php echo GRW_ASSETS_URL; ?>img/dots-spinner.svg"></div> |
| 66 | </div> |
| 67 | </div><br> |
| 68 | <div class="grw-card"> |
| 69 | <div class="grw-card-header">Usage Stats</div> |
| 70 | <div class="grw-card-body grw-card-fh"> |
| 71 | <div id="grw-overview-stats"><img src="<?php echo GRW_ASSETS_URL; ?>img/dots-spinner.svg"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | </div> |
| 75 | |
| 76 | <div class="grw-flex-col"> |
| 77 | <div class="grw-card"> |
| 78 | <div class="grw-card-header">Latest Reviews</div> |
| 79 | <div class="grw-card-body grw-card-fh" style="padding-top:0"> |
| 80 | <div id="grw-overview-reviews"><img src="<?php echo GRW_ASSETS_URL; ?>img/dots-spinner.svg"></div> |
| 81 | </div> |
| 82 | </div> |
| 83 | </div> |
| 84 | </div> |
| 85 | |
| 86 | </div> |
| 87 | |
| 88 | </div> |
| 89 | |
| 90 | </div> |
| 91 | |
| 92 | <?php |
| 93 | } |
| 94 | } |
| 95 |