PluginProbe
Independent Analytics – WordPress Analytics Plugin / 2.9.2
Independent Analytics – WordPress Analytics Plugin v2.9.2
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 All 120 releases
independent-analytics / views / click-tracking / link.blade.php
link.blade.php
93 lines 4.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 @else
30 @if ($type == 'class')
31 <span class="value-prefix">.</span>
32 @endif
33 @if ($type == 'domain')
34 <span class="value-prefix">http://</span>
35 @endif
36 @if ($type == 'subdirectory')
37 <span class="value-prefix">/</span>
38 @endif
39 <input class="link-value {{ esc_attr($type) }}" type="text" value="{{ esc_attr($type == $link['type'] ? $link['value'] : '') }}" />
40 @if ($type == 'subdirectory')
41 <span class="value-suffix">/</span>
42 @endif
43 @endif
44 </span>
45 @endforeach
46 </div>
47 </div>
48 <div class="value-text-container">
49 <span class="name">
50 @if ($link['is_active'])
51 <span class="dashicons dashicons-yes-alt"></span>
52 @else
53 <span class="dashicons dashicons-dismiss"></span>
54 @endif
55 {{ esc_html($link['name']) }}
56 </span>
57 <span class="type">{{ esc_html($types[$link['type']]) }}</span>
58 <span class="value">
59 @if ($link['type'] == 'class' || $link['type'] == 'extension')
60 {{ '.' . esc_html($link['value']) }}
61 @elseif ($link['type'] == 'domain')
62 {{ 'http://' . esc_html($link['value']) }}
63 @elseif ($link['type'] == 'subdirectory')
64 {{ '/' . esc_html($link['value']) . '/' }}
65 @elseif ($link['type'] == 'protocol')
66 {{ esc_html($link['value']) . ':' }}
67 @else
68 {{ esc_html($link['value']) }}
69 @endif
70 </span>
71 </div>
72 @if ($link['is_active'] !== false)
73 <div class="action-buttons">
74 <div class="edit-container">
75 <button class="edit-button">{{ esc_html__('Edit', 'independent-analytics') }}</button>
76 </div>
77 <div class="save-cancel-container">
78 <button class="save-button">{{ esc_html__('Save', 'independent-analytics') }}</button>
79 <button class="cancel-button">{{ esc_html__('Cancel', 'independent-analytics') }}</button>
80 </div>
81 </div>
82 @endif
83 <button class="archive-button">
84 @if($link['is_active'])
85 {{ esc_html__('Archive', 'independent-analytics' )}}
86 @else
87 {{ esc_html__('Resume Tracking', 'independent-analytics' )}}
88 @endif
89 </button>
90 @if ($link['is_active'] === false)
91 <button class="delete-link-button">{{ esc_html__('Delete', 'independent-analytics' )}}</button>
92 @endif
93 </div>