PluginProbe ʕ •ᴥ•ʔ
Independent Analytics – WordPress Analytics Plugin / 2.10.0
Independent Analytics – WordPress Analytics Plugin v2.10.0
2.15.5 2.15.4 2.15.3 2.15.2 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 / click-tracking / link.blade.php
independent-analytics / views / click-tracking Last commit date
link.blade.php 1 year ago menu.blade.php 1 year ago
link.blade.php
98 lines
1 <div class="trackable-link" data-id="{{ esc_attr($link['id']) }}">
2 <div class="input-container">
3 <div class="inner-container name">
4 <input class="link-name" type="text" value="{{ esc_attr($link['name']) }}" />
5 </div>
6 <div class="inner-container type">
7 <select class="link-type" value="{{ esc_attr($link['type']) }}">
8 @foreach ($types as $type => $title)
9 <option value="{{ esc_attr($type) }}" {{ selected($type, $link['type'], true )}}>{{ esc_html($title) }}</option>
10 @endforeach
11 </select>
12 </div>
13 <div class="inner-container value">
14 @foreach ($types as $type => $title)
15 <span class="value-container {{ esc_attr($type) }} {{ $type == $link['type'] ? 'visible' : '' }}">
16 @if ($type == 'extension')
17 <select class="link-value">
18 @foreach ($extensions as $extension)
19 <?php $selected = $link['type'] !== 'extension' ? 'pdf' : $link['value']; ?>
20 <option value="{{ esc_attr($extension) }}" {{ selected($extension, $selected, true)}}>{{ esc_html($extension) }}</option>
21 @endforeach
22 </select>
23 @elseif ($type == 'protocol')
24 <select class="link-value">
25 @foreach ($protocols as $protocol)
26 <option value="{{ esc_attr($protocol) }}" {{ selected($protocol, $link['value'], true)}}>{{ esc_html($protocol) }}</option>
27 @endforeach
28 </select>
29 @elseif ($type === 'external')
30 <input class="link-value external" type="text" disabled/>
31 @else
32 @if ($type == 'class')
33 <span class="value-prefix">.</span>
34 @endif
35 @if ($type == 'subdirectory')
36 <span class="value-prefix">/</span>
37 @endif
38 <input class="link-value {{ esc_attr($type) }}" type="text" value="{{ esc_attr($type == $link['type'] ? $link['value'] : '') }}" />
39 @if ($type == 'subdirectory')
40 <span class="value-suffix">/</span>
41 @endif
42 @endif
43 </span>
44 @endforeach
45 </div>
46 </div>
47 <div class="value-text-container">
48 <span class="name">
49 @if ($link['is_active'])
50 <span class="dashicons dashicons-yes-alt"></span>
51 @else
52 <span class="dashicons dashicons-dismiss"></span>
53 @endif
54 {{ esc_html($link['name']) }}
55 </span>
56 <span class="type">{{ esc_html($types[$link['type']]) }}</span>
57 <span class="value">
58 @if ($link['type'] == 'class')
59 {{ '.' . esc_html($link['value']) }}
60 <button class="copy-class" data-controller="clipboard" data-action="clipboard#copy"
61 data-clipboard-text-value="{{ esc_attr($link['value']) }}">
62 <span class="dashicons dashicons-clipboard"></span>
63 </button>
64 @elseif ($link['type'] == 'extension')
65 {{ '.' . esc_html($link['value']) }}
66 @elseif ($link['type'] == 'domain')
67 {{ esc_html($link['value']) }}
68 @elseif ($link['type'] == 'subdirectory')
69 {{ '/' . esc_html($link['value']) . '/' }}
70 @elseif ($link['type'] == 'protocol')
71 {{ esc_html($link['value']) . ':' }}
72 @else
73 {{ esc_html($link['value']) }}
74 @endif
75 </span>
76 </div>
77 @if ($link['is_active'] !== false)
78 <div class="action-buttons">
79 <div class="edit-container">
80 <button class="edit-button">{{ esc_html__('Edit', 'independent-analytics') }}</button>
81 </div>
82 <div class="save-cancel-container">
83 <button class="save-button">{{ esc_html__('Save', 'independent-analytics') }}</button>
84 <button class="cancel-button">{{ esc_html__('Cancel', 'independent-analytics') }}</button>
85 </div>
86 </div>
87 @endif
88 <button class="archive-button">
89 @if($link['is_active'])
90 {{ esc_html__('Archive', 'independent-analytics' )}}
91 @else
92 {{ esc_html__('Resume Tracking', 'independent-analytics' )}}
93 @endif
94 </button>
95 @if ($link['is_active'] === false)
96 <button class="delete-link-button">{{ esc_html__('Delete', 'independent-analytics' )}}</button>
97 @endif
98 </div>