PluginProbe ʕ •ᴥ•ʔ
Independent Analytics – WordPress Analytics Plugin / 2.7.2
Independent Analytics – WordPress Analytics Plugin v2.7.2
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 / plugin-group-options.blade.php
independent-analytics / views Last commit date
email 2 years ago icons 2 years ago interrupt 1 year ago partials 1 year ago settings 1 year ago tables 2 years ago campaign-builder.blade.php 2 years ago chart.blade.php 1 year ago plugin-group-options.blade.php 2 years ago quick-stats.blade.php 2 years ago real_time.blade.php 2 years ago support.blade.php 1 year ago updates.blade.php 1 year ago
plugin-group-options.blade.php
111 lines
1 @php /** @var \IAWP\Plugin_Group[] $plugin_groups */ @endphp
2 @php /** @var \IAWP\Plugin_Group_Option[] $options */ @endphp
3 @php /** @var string $option_type */ @endphp
4 @php /** @var string $option_name */ @endphp
5 @php /** @var string $option_icon */ @endphp
6
7 {{-- Array indicies are used to add section headers. Make sure there are no gaps. --}}
8 @php $options = array_values($options); @endphp
9
10 <div data-controller="plugin-group-options"
11 data-plugin-group-options-option-type-value="{{ $option_type }}"
12 class="button-modal-container"
13 >
14 {{-- Toggle button --}}
15 <button id=""
16 class="stats-toggle-button iawp-button"
17 data-plugin-group-options-target="modalButton"
18 data-action="plugin-group-options#toggleModal"
19 >
20 <span class="dashicons dashicons-{{ $option_icon }}"></span>
21 {{ $option_name }}
22 </button>
23
24 {{-- Toggle modal --}}
25 <div data-plugin-group-options-target="modal"
26 class="stats-toggle"
27 >
28 <div class="top title-small"><?php esc_html_e('Choose Stats to Display', 'independent-analytics'); ?></div>
29 <div class="inner">
30 <div id="stats-toggle-sidebar" class="sidebar">
31 <ul>
32 @foreach($plugin_groups as $plugin_group)
33 <li>
34 <a class="link-dark {{ $plugin_group->id() === 'general' ? 'current' : '' }}"
35 data-option-id="{{ $plugin_group->id() }}"
36 data-action="plugin-group-options#requestGroupChange"
37 data-plugin-group-options-target="tab"
38 href="#"
39 >
40 <span>{{ $plugin_group->name() }}</span>
41 @if($plugin_group->requires_pro() && iawp_is_free())
42 <span class="pro-label"><?php esc_html_e('PRO', 'independent-analytics'); ?></span>
43 @endif
44 </a>
45 </li>
46 @endforeach
47 </ul>
48 </div>
49 <div class="main">
50 @foreach($plugin_groups as $plugin_group)
51 <div class="checkbox-container {{ $plugin_group->id() === 'general' ? 'current' : '' }}"
52 data-option-id="{{ $plugin_group->id() }}"
53 data-plugin-group-options-target="checkboxContainer"
54 {{-- data-metric-category="{{ $plugin_group->id() }}"--}}
55 >
56 <span class="metrics-title">{{ $plugin_group->name() }}</span>
57
58 @foreach($options as $index => $option)
59 @if(!$option->is_subgroup_plugin_enabled() || !$option->is_member_of_plugin_group($plugin_group->id()))
60 @continue
61 @endif
62
63 @if(is_string($option->plugin_group_header()) && array_key_exists($index - 1, $options) && ($options[$index -1])->plugin_group_header() !== $option->plugin_group_header())
64 <span class="metrics-subtitle">{{ $option->plugin_group_header() }}</span>
65 @endif
66
67 <label class="{{ !$option->is_group_plugin_enabled() ? 'disabled' : '' }}">
68 @if(!$option->is_group_plugin_enabled())
69 <input id="iawp_{{ $option_type }}_{{$option->id()}}"
70 type="checkbox"
71 disabled="disabled">
72 @else
73 <input id="iawp_{{ $option_type }}_{{$option->id()}}"
74 type="checkbox"
75 data-action="plugin-group-options#toggleOption"
76 data-plugin-group-options-target="checkbox"
77 name="{{ $option->id() }}"
78 {{ checked(true, $option->is_visible(), true) }}
79 />
80 @endif
81 <span>{{ $option->name() }}</span>
82 </label>
83 @endforeach
84
85 @if($plugin_group->requires_pro() && iawp_is_free())
86 <div class="required-plugin-note">
87 <p>{{ $plugin_group->upgrade_message() }}</p>
88 <p><a href="{{ $plugin_group->upgrade_link() }}"
89 class="link-purple"
90 target="_blank"><?php esc_html_e('Learn more', 'independent-analytics'); ?></a>
91 </p>
92 </div>
93 @elseif(!$plugin_group->has_active_group_plugins() && iawp_is_pro())
94 <div class="required-plugin-note">
95 <p>{{ $plugin_group->activate_message() }}</p>
96 <p><a href="{{ $plugin_group->activate_link() }}"
97 class="link-purple"
98 target="_blank"><?php esc_html_e('Learn more', 'independent-analytics'); ?></a>
99 </p>
100 </div>
101 @elseif(!$plugin_group->has_tracked_data())
102 <div class="required-plugin-note">
103 <p>{{$plugin_group->no_tracked_data_message()}}</p>
104 </div>
105 @endif
106 </div>
107 @endforeach
108 </div>
109 </div>
110 </div>
111 </div>