click-tracking
11 months ago
date-picker
5 months ago
email
9 months ago
examiner
11 months ago
icons
6 months ago
integrations
11 months ago
interrupt
11 months ago
journeys
6 months ago
notices
6 months ago
overview
6 months ago
partials
5 months ago
settings
5 months ago
tables
6 months ago
campaign-builder.blade.php
11 months ago
chart.blade.php
11 months ago
debug.blade.php
11 months ago
plugin-group-options.blade.php
11 months ago
quick-stat-loading.blade.php
11 months ago
quick-stat.blade.php
5 months ago
quick-stats.blade.php
11 months ago
real-time.blade.php
6 months ago
support.blade.php
6 months ago
updates.blade.php
6 months ago
woocommerce-order-meta-box.blade.php
6 months ago
real-time.blade.php
112 lines
| 1 | <div id="report-title-bar" class="report-title-bar"> |
| 2 | <div class="primary-report-title-container"> |
| 3 | <h1 class="report-title"><?php esc_html_e('Real-Time', 'independent-analytics'); ?></h1> |
| 4 | </div> |
| 5 | |
| 6 | <div class="buttons"> |
| 7 | <div> |
| 8 | <button id="favorite-report-button" |
| 9 | data-controller="set-favorite-report" |
| 10 | data-set-favorite-report-type-value="real-time" |
| 11 | data-action="set-favorite-report#setFavoriteReport" |
| 12 | class="iawp-button favorite <?php echo $env->is_favorite('real-time') ? 'active' : ''; ?>" |
| 13 | > |
| 14 | <span class="dashicons dashicons-star-filled"></span> |
| 15 | <?php esc_html_e('Make default', 'independent-analytics'); ?> |
| 16 | </button> |
| 17 | </div> |
| 18 | </div> |
| 19 | </div> |
| 20 | |
| 21 | |
| 22 | <div id="real-time-dashboard" class="real-time-dashboard refreshed" |
| 23 | data-controller="real-time" |
| 24 | data-real-time-chart-data-value="<?php echo esc_attr(json_encode($chart_data)) ?>" |
| 25 | data-real-time-nonce-value="<?php echo wp_create_nonce('iawp_real_time') ?>" |
| 26 | > |
| 27 | <div class="iawp-heading"> |
| 28 | <div class="iawp-title"> |
| 29 | <div class="iawp-title-inner"> |
| 30 | <svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" |
| 31 | xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 32 | <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> |
| 33 | <g> |
| 34 | <circle class="recording-icon-outer" fill="#F2998F" cx="16" cy="16" |
| 35 | r="16"></circle> |
| 36 | <circle class="recording-icon-inner" fill="#D93B29" cx="16" cy="16" |
| 37 | r="9.70491803"></circle> |
| 38 | </g> |
| 39 | </g> |
| 40 | </svg> |
| 41 | <span data-real-time-target="visitorMessage" data-testid="real-time-title"><?php echo esc_html($visitor_message) ?></span> |
| 42 | <a class="learn-more" href="#" data-controller="tooltip" data-tooltip-text-value="Active Visitors is the number of people who have viewed a page within the last 5 minutes."> |
| 43 | <span class="dashicons dashicons-info-outline"></span> |
| 44 | </a> |
| 45 | </div> |
| 46 | </div> |
| 47 | <div class="iawp-overview"><span |
| 48 | data-real-time-target="pageMessage" data-testid="page-count"><?php echo esc_html($page_message) ?></span> |
| 49 | • <span |
| 50 | data-real-time-target="referrerMessage" data-testid="referrer-count"><?php echo esc_html($referrer_message); ?></span> |
| 51 | • <span |
| 52 | data-real-time-target="countryMessage" data-testid="country-count"><?php echo esc_html($country_message) ?></span> |
| 53 | </div> |
| 54 | </div> |
| 55 | |
| 56 | <div id="charts" class="charts"> |
| 57 | <div class="chart-container"> |
| 58 | <div class="chart-inner"> |
| 59 | <div class="legend-container"> |
| 60 | <h2 class="legend-title"><?php esc_html_e('The Last 5 Minutes', 'independent-analytics') ?></h2> |
| 61 | <div class="legend"></div> |
| 62 | </div> |
| 63 | <canvas data-real-time-target="secondChart" |
| 64 | width="400" |
| 65 | height="200"></canvas> |
| 66 | </div> |
| 67 | </div> |
| 68 | <div class="chart-container"> |
| 69 | <div class="chart-inner"> |
| 70 | <div class="legend-container"> |
| 71 | <h2 class="legend-title"><?php esc_html_e('The Last 30 Minutes', 'independent-analytics') ?></h2> |
| 72 | <div class="legend"></div> |
| 73 | </div> |
| 74 | <canvas data-real-time-target="minuteChart" |
| 75 | width="400" |
| 76 | height="200"></canvas> |
| 77 | </div> |
| 78 | </div> |
| 79 | </div> |
| 80 | <div class="most-popular-container"> |
| 81 | <?php foreach ($lists as $list_id => $list) : ?> |
| 82 | <div class="most-popular-list" data-testid="<?php echo esc_attr(sanitize_title($list['title'])); ?>"> |
| 83 | <div class="heading"> |
| 84 | <div class="title-med"><?php echo esc_html($list['title']) ?></div> |
| 85 | <div class="views-heading"><?php esc_html_e('Views', 'independent-analytics'); ?></div> |
| 86 | </div> |
| 87 | <ol data-real-time-target="<?php echo esc_attr($list_id) ?>List"> |
| 88 | <?php foreach ($list['entries'] as $index => $item): ?> |
| 89 | <li data-id="<?php echo esc_attr($item['id']) ?>" |
| 90 | data-position="<?php echo esc_attr($index + 1); ?>" |
| 91 | > |
| 92 | <span class="real-time-position"><?php echo absint($index + 1) ?>.</span> |
| 93 | <?php if (!empty($item['flag'])): ?> |
| 94 | <?php echo $item['flag'] ?> |
| 95 | <?php endif; ?> |
| 96 | <span class="real-time-resource"> |
| 97 | <?php echo esc_html($item['title']) ?> |
| 98 | |
| 99 | <?php if (!empty($item['subtitle'])): ?> |
| 100 | <span class="real-time-subtitle"><?php echo esc_html($item['subtitle']); ?></span> |
| 101 | <?php endif; ?> |
| 102 | </span> |
| 103 | <span class="real-time-stat"><?php echo absint($item['views']) ?></span> |
| 104 | </li> |
| 105 | <?php endforeach; ?> |
| 106 | </ol> |
| 107 | <p class="most-popular-empty-message <?php echo count($list['entries']) > 0 ? esc_attr('hide') : '' ?>"><?php esc_html_e('No results in the last 5 minutes.', 'independent-analytics') ?></p> |
| 108 | </div> |
| 109 | <?php endforeach; ?> |
| 110 | </div> |
| 111 | </div> |
| 112 |