PluginProbe ʕ •ᴥ•ʔ
Independent Analytics – WordPress Analytics Plugin / 2.15.1
Independent Analytics – WordPress Analytics Plugin v2.15.1
2.15.1 2.15.0 2.14.10 trunk 1.1 1.10 1.10.1 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.17.1 1.17.2 1.17.3 1.17.4 1.18 1.18.1 1.19.0 1.19.1 1.2 1.20.0 1.21.0 1.22.0 1.22.1 1.23.0 1.23.1 1.24.0 1.24.1 1.25.0 1.25.1 1.26.0 1.27.0 1.28.0 1.28.1 1.28.2 1.28.3 1.29.0 1.3 1.30.0 1.30.1 1.4 1.5 1.6 1.7 1.8 1.9 2.0.0 2.0.1 2.1.4 2.1.5 2.1.6 2.10.0 2.10.1 2.10.2 2.10.3 2.10.4 2.11.0 2.11.1 2.11.10 2.11.2 2.11.3 2.11.4 2.11.5 2.11.6 2.11.7 2.11.8 2.11.9 2.12.0 2.12.1 2.12.2 2.13.1 2.13.2 2.13.5 2.13.6 2.14.0 2.14.1 2.14.2 2.14.4 2.14.6 2.14.7 2.14.8 2.14.9 2.2.0 2.2.1 2.3.1 2.3.2 2.4.2 2.4.3 2.5.0 2.5.1 2.6.0 2.6.1 2.6.2 2.6.3 2.6.4 2.7.0 2.7.1 2.7.2 2.7.3 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.8.9 2.9.2 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7
independent-analytics / views / date-picker / date-picker.blade.php
independent-analytics / views / date-picker Last commit date
calendar-month.blade.php 5 days ago date-picker.blade.php 1 week ago
date-picker.blade.php
82 lines
1 <div id="iawp-date-picker" class="iawp-date-picker" data-relative-range="<?php echo esc_attr($relative_range); ?>">
2 <div class="iawp-date-inputs">
3 <div class="iawp-input-container prev-month">
4 <button class="iawp-fast-travel prev-month"
5 data-month="<?php echo esc_attr($start_date->format('Y-m')); ?>"
6 tabindex="-1">
7 <span class="dashicons dashicons-calendar-alt" aria-hidden="true"></span>
8 </button>
9 <input id="iawp-start-date-keyboard" class="iawp-start-date-keyboard keyboard-input" type="date"
10 value="<?php echo esc_attr(iawp()->date_i18n('Y-m-d', $start_date)); ?>"
11 aria-label="<?php esc_html_e('Start date', 'independent-analytics'); ?>" />
12 <input id="iawp-start-date" class="iawp-start-date iawp-active" type="text"
13 readonly value="<?php echo esc_attr(iawp()->date_i18n($user_format, $start_date)); ?>"
14 data-date="<?php echo esc_attr($start_date->format('Y-m-d')); ?>"
15 data-month="<?php echo esc_attr($start_date->format('Y-m')); ?>"
16 tabindex="-1" />
17 </div>
18 <span class="iawp-date-input-separator">-</span>
19 <div class="iawp-input-container current-month">
20 <input id="iawp-end-date-keyboard" class="iawp-end-date-keyboard keyboard-input" type="date"
21 value="<?php echo esc_attr(iawp()->date_i18n('Y-m-d', $end_date)); ?>"
22 aria-label="<?php esc_html_e('End date', 'independent-analytics'); ?>" />
23 <input id="iawp-end-date" class="iawp-end-date" type="text"
24 readonly value="<?php echo esc_attr(iawp()->date_i18n($user_format, $end_date)); ?>"
25 data-date="<?php echo esc_attr($end_date->format('Y-m-d')); ?>"
26 data-month="<?php echo esc_attr($end_date->format('Y-m')); ?>"
27 tabindex="-1" />
28 <button class="iawp-fast-travel current-month"
29 data-month="<?php echo esc_attr($end_date->format('Y-m')); ?>"
30 tabindex="-1">
31 <span class="dashicons dashicons-calendar-alt" aria-hidden="true"></span>
32 </button>
33 </div>
34 <div class="apply-buttons">
35 <button id="apply-date"
36 class="iawp-button purple"
37 data-testid="apply-dates"
38 >
39 <?php esc_html_e('Apply', 'independent-analytics'); ?>
40 </button>
41 <button id="cancel-date"
42 class="iawp-button ghost-purple"
43 data-testid="close-calendar"
44 >
45 <?php esc_html_e('Cancel', 'independent-analytics'); ?>
46 </button>
47 </div>
48 </div>
49 <div id="iawp-calendars" class="iawp-calendars"><?php
50 foreach($months as $month) {
51 echo iawp_render('date-picker.calendar-month', [
52 'month' => $month,
53 'start_date' => $start_date->format('Y-m-d'),
54 'end_date' => $end_date->format('Y-m-d'),
55 'user_format' => $user_format,
56 'first_data' => $first_data,
57 ]);
58 } ?>
59 </div>
60 <div class="relative-dates iawp-date-range-buttons"><?php
61 foreach ($date_ranges as $date_range):
62 $exact_start = $date_range->start()->setTimezone($timezone)->format('Y-m-d');
63 $exact_end = $date_range->end()->setTimezone($timezone)->format('Y-m-d');
64 $classes = $relative_range == $date_range->relative_range_id() ? 'iawp-button active' : 'iawp-button'; ?>
65 <button class="<?php echo esc_attr($classes); ?>"
66 data-dates-target="relativeRange"
67 data-action="dates#relativeRangeSelected"
68 data-relative-range-id="<?php echo esc_attr($date_range->relative_range_id()) ?>"
69 data-relative-range-label="<?php echo esc_attr($date_range->label()) ?>"
70 data-relative-range-start="<?php echo esc_attr($exact_start) ?>"
71 data-relative-range-end="<?php echo esc_attr($exact_end) ?>"
72 data-display-date-start="<?php echo (new \DateTime($exact_start, new \DateTimeZone('utc')))->format($user_format); ?>"
73 data-display-date-end="<?php echo (new \DateTime($exact_end, new \DateTimeZone('utc')))->format($user_format); ?>"
74 data-timestamp-start="<?php echo strtotime($exact_start); ?>"
75 data-timestamp-end="<?php echo strtotime($exact_end); ?>"
76 >
77 <?php echo esc_html($date_range->label()) ?>
78 </button>
79 <?php endforeach; ?>
80 </div>
81 </div>
82