PluginProbe
WP Coder – Insert & Manage Code Snippets / 3.5
WP Coder – Insert & Manage Code Snippets v3.5
4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 3.5.1 All 39 releases
← All changes | classes/Tools/page.php +100 -254 4.5.13.5 View file →
@@ -5,274 +5,120 @@
5 5 defined( 'ABSPATH' ) || exit;
6 6
7 7 ?>
8 8
9 -<div class="wowp-snippet__list">
9 +<dl class="wowp-snippet__list">
10 10
11 + <dt><label>
12 + <?php self::field( 'checkbox', 'enable_tracking_tool' ); ?>Tracking Code Manager</label>
13 + </dt>
14 + <dd>Easily integrate your website with popular platforms like Google, Facebook, and Pinterest by adding their
15 + respective IDs, enabling seamless tracking and analytics.
16 + <details class="wpcoder-expand"<?php self::expand( 'enable_tracking_tool' ); ?>>
17 + <summary class="wpcoder-expand__title">Expand</summary>
18 + <div class="wpcoder-expand__content">
19 + <fieldset class="_bg-white">
20 + <div class="wowp-field">
21 + <label><span class="label">Google Analytics</span>
22 + <?php self::field( 'text', 'tracking_tool_google', '', 'set tracking ID' ); ?>
23 + </label>
24 + <a target="_blank" href="https://support.google.com/analytics/answer/9539598?hl=en">How to
25 + find the tracking ID</a>
26 + </div>
27 + <div class="wowp-field">
28 + <label><span class="label">Facebook Pixel</span>
29 + <?php self::field( 'text', 'tracking_tool_facebook', '', 'set Pixel ID' ); ?>
30 + </label>
31 + <a target="_blank"
32 + href="https://en-gb.facebook.com/business/help/952192354843755?id=1205376682832142">How
33 + to find the Facebook pixel ID</a>
34 + </div>
35 + <div class="wowp-field">
36 + <label><span class="label">Pintrest Pixel</span>
37 + <?php self::field( 'text', 'tracking_tool_pintrest', '', 'set Pixel ID' ); ?>
38 + </label>
39 + <a target="_blank"
40 + href="https://help.pinterest.com/en/business/article/install-the-pinterest-tag">How to
41 + find the Pinterest pixel ID</a>
42 + </div>
43 + </fieldset>
44 + <p><b>Disable tracking for users:</b></p>
45 + <fieldset class="_bg-white">
46 + <?php foreach ( FieldHelper::user_roles() as $key => $value ) :
47 + if ( $key === 'all' ) {
48 + continue;
49 + }
50 + ?>
51 + <div class="wowp-field has-checkbox">
52 + <label>
53 + <span class="label"><?php echo esc_html( $value ); ?></span>
54 + <?php self::field( 'checkbox', 'disable_tracking_tool_user_' . $key ); ?>
55 + <span><?php esc_html_e( 'Enable', 'wpcoder' ); ?></span>
56 + </label>
57 + </div>
58 + <?php endforeach; ?>
59 + </fieldset>
11 60
12 - <div class="wowp-snippet__item">
13 - <div class="wowp-snippet__item-header">
14 - <label for="enable_tracking_tool">Tracking Code Manager</label>
15 - <p class="wowp-snippet__item-description">Easily integrate your website with popular platforms like
16 - Google, Facebook, and Pinterest by adding their
17 - respective IDs, enabling seamless tracking and analytics.</p>
18 - </div>
19 - <div class="wowp-field has-checkbox">
20 - <label class="switch">
21 - <?php self::field( 'checkbox', 'enable_tracking_tool' ); ?>
22 - <span class="slider"></span>
23 - </label>
24 - </div>
25 - <div class="wowp-snippet__item-expand is-hidden">
26 - <div class="wowp-fields__group">
27 -
28 - <div class="wowp-field is-column">
29 - <label><span class="label">Google Analytics</span>
30 - <?php self::field( 'text', 'tracking_tool_google', '', 'set tracking ID' ); ?>
31 - </label>
32 - <a target="_blank" href="https://support.google.com/analytics/answer/9539598?hl=en" rel="noopener noreferrer nofollow">How to
33 - find the tracking ID</a>
34 - </div>
35 - <div class="wowp-field is-column">
36 - <label><span class="label">Facebook Pixel</span>
37 - <?php self::field( 'text', 'tracking_tool_facebook', '', 'set Pixel ID' ); ?>
38 - </label>
39 - <a target="_blank"
40 - href="https://en-gb.facebook.com/business/help/952192354843755?id=1205376682832142" rel="noopener noreferrer nofollow">How
41 - to find the Facebook pixel ID</a>
42 - </div>
43 - <div class="wowp-field is-column">
44 - <label><span class="label">Pintrest Pixel</span>
45 - <?php self::field( 'text', 'tracking_tool_pintrest', '', 'set Pixel ID' ); ?>
46 - </label>
47 - <a target="_blank"
48 - href="https://help.pinterest.com/en/business/article/install-the-pinterest-tag" rel="noopener noreferrer nofollow">How to
49 - find the Pinterest pixel ID</a>
50 - </div>
51 -
52 61 </div>
53 - </div>
54 - </div>
62 + </details>
63 + </dd>
55 64
56 - <div class="wowp-snippet__item">
57 - <div class="wowp-snippet__item-header">
58 - <label for="enable_google_adsense">Google AdSense</label>
59 - <p class="wowp-snippet__item-description">Easily add Google AdSense to your WordPress site.</p>
60 - </div>
61 - <div class="wowp-field has-checkbox">
62 - <label class="switch">
63 - <?php self::field( 'checkbox', 'enable_google_adsense' ); ?>
64 - <span class="slider"></span>
65 - </label>
66 - </div>
67 - <div class="wowp-snippet__item-expand is-hidden">
68 - <div class="wowp-field is-column">
69 - <label>
70 - <span class="label">Publisher ID</span>
71 - <?php self::field( 'text', 'google_adsense_publisher', '', 'e.g pub-1234567890111213' ); ?>
72 - </label>
73 - <a target="_blank"
74 - href="https://support.google.com/adsense/answer/105516?hl=en" rel="noopener noreferrer nofollow">Find your publisher ID</a>
75 - </div>
76 -
77 - <p><b>Disable Google AdSense Ads for these user roles:</b></p>
78 -
79 - <div class="wowp-fields__group">
80 - <?php foreach ( FieldHelper::user_roles() as $key => $value ) :
81 - if ( $key === 'all' ) {
82 - continue;
83 - }
84 - ?>
85 - <div class="wowp-field has-checkbox">
86 - <span class="label"><?php echo esc_html( $value ); ?></span>
87 - <label class="switch">
88 - <?php self::field( 'checkbox', 'disable_google_adsense_user_' . $key ); ?>
89 - <span class="slider"></span>
65 + <dt><label>
66 + <?php self::field( 'checkbox', 'enable_google_adsense' ); ?>Google AdSense </label>
67 + </dt>
68 + <dd>Easily add Google AdSense to your WordPress site.
69 + <details class="wpcoder-expand"<?php self::expand( 'enable_google_adsense' ); ?>>
70 + <summary class="wpcoder-expand__title">Expand</summary>
71 + <div class="wpcoder-expand__content">
72 + <fieldset class="_bg-white">
73 + <div class="wowp-field">
74 + <label><span class="label">Publisher ID</span>
75 + <?php self::field( 'text', 'google_adsense_publisher', '', 'e.g pub-1234567890111213' ); ?>
90 76 </label>
77 + <a target="_blank"
78 + href="https://support.google.com/adsense/answer/105516?hl=en">Find your publisher ID</a>
91 79 </div>
92 - <?php endforeach; ?>
93 - </div>
94 - </div>
95 - </div>
80 + </fieldset>
81 + <p><b>Disable Google AdSense Ads for users:</b></p>
82 + <fieldset class="_bg-white">
83 + <?php foreach ( FieldHelper::user_roles() as $key => $value ) :
84 + if ( $key === 'all' ) {
85 + continue;
86 + }
87 + ?>
88 + <div class="wowp-field has-checkbox">
89 + <label>
90 + <span class="label"><?php echo esc_html( $value ); ?></span>
91 + <?php self::field( 'checkbox', 'disable_google_adsense_user_' . $key ); ?>
92 + <span><?php esc_html_e( 'Enable', 'wpcoder' ); ?></span>
93 + </label>
94 + </div>
95 + <?php endforeach; ?>
96 + </fieldset>
96 97
97 - <div class="wowp-snippet__item">
98 - <div class="wowp-snippet__item-header">
99 - <label for="enable_login_style">Enable Style and Script on Login Page </label>
100 - <p class="wowp-snippet__item-description">Add Login page custom Style and Script</p>
101 - </div>
102 - <div class="wowp-field has-checkbox">
103 - <label class="switch">
104 - <?php self::field( 'checkbox', 'enable_login_style' ); ?>
105 - <span class="slider"></span>
106 - </label>
107 - </div>
108 - <div class="wowp-snippet__item-expand is-hidden">
109 - <div class="wowp-field">
110 - <label>
111 - <span class="label">Code ID</span>
112 - <?php self::field( 'number', 'enable_login_code_id', '', 1 ); ?>
113 - </label>
114 98 </div>
115 - </div>
116 - </div>
99 + </details>
100 + </dd>
117 101
118 - <div class="wowp-snippet__item">
119 - <div class="wowp-snippet__item-header">
120 - <label for="enable_maintenance_mode">Enable Maintenance Mode</label>
121 - <p class="wowp-snippet__item-description">Show a customizable maintenance page on the frontend while
122 - performing a brief maintenance to your site. Logged-in administrators can still view the site as
123 - usual.</p>
124 - </div>
125 - <div class="wowp-field has-checkbox">
126 - <label class="switch">
127 - <?php self::field( 'checkbox', 'enable_maintenance_mode' ); ?>
128 - <span class="slider"></span>
129 - </label>
130 - </div>
131 - <div class="wowp-snippet__item-expand is-hidden">
132 - <div class="wowp-field">
133 - <label><span class="label">Code ID</span>
134 - <?php
135 - self::field( 'number', 'enable_maintenance_mode_id', '', 2 ); ?>
136 - </label>
137 - </div>
138 - </div>
139 - </div>
102 + <dt><label><b style="color: var(--wowp-orange);">PRO</b> Enable Style and Script on Login Page </label></dt>
103 + <dd>Add Login page custom Style and Script
140 104
141 - <div class="wowp-snippet__item">
142 - <div class="wowp-snippet__item-header">
143 - <label for="enable_tax_icon">Enable Extra Icon</label>
144 - <p class="wowp-snippet__item-description">Enable Extra Icon for categories/tags and pages/posts.</p>
145 - </div>
146 - <div class="wowp-field has-checkbox">
147 - <label class="switch">
148 - <?php self::field( 'checkbox', 'enable_tax_icon' ); ?>
149 - <span class="slider"></span>
150 - </label>
151 - </div>
152 - </div>
105 + </dd>
153 106
154 - <div class="wowp-snippet__item">
155 - <div class="wowp-snippet__item-header">
156 - <label for="enable_breadcrumbs">Enable Breadcrumbs</label>
157 - <p class="wowp-snippet__item-description">You can use the function <code>wpc_get_breadcrumbs()</code> on
158 - the template for display breadcrumbs.</p>
159 - </div>
160 - <div class="wowp-field has-checkbox">
161 - <label class="switch">
162 - <?php self::field( 'checkbox', 'enable_breadcrumbs' ); ?>
163 - <span class="slider"></span>
164 - </label>
165 - </div>
166 - </div>
107 + <dt><label><b style="color: var(--wowp-orange);">PRO</b> Enable Maintenance Mode</label></dt>
108 + <dd>Show a customizable maintenance page on the frontend while performing a brief maintenance to your site. Logged-in administrators can still view the site as usual.
167 109
168 - <div class="wowp-snippet__item">
169 - <div class="wowp-snippet__item-header">
170 - <label for="enable_quickcode">Enable QuickCode</label>
171 - <p class="wowp-snippet__item-description">Enable tool for uses QuickCodes in the Items.</p>
172 - </div>
173 - <div class="wowp-field has-checkbox">
174 - <label class="switch">
175 - <?php self::field( 'checkbox', 'enable_quickcode' ); ?>
176 - <span class="slider"></span>
177 - </label>
178 - </div>
179 - </div>
110 + </dd>
180 111
181 - <div class="wowp-snippet__item">
182 - <div class="wowp-snippet__item-header">
183 - <label for="enable_page_template">Create Page Templates</label>
184 - <p class="wowp-snippet__item-description">Define custom page templates by name.</p>
185 - </div>
186 - <div class="wowp-field has-checkbox">
187 - <label class="switch">
188 - <?php self::field( 'checkbox', 'enable_page_template' ); ?>
189 - <span class="slider"></span>
190 - </label>
191 - </div>
192 - <div class="wowp-snippet__item-expand is-hidden">
193 - <div class="wowp-field is-column">
194 - <label><span class="label">Template Names</span>
195 - <?php self::field( 'text', 'enable_custom_page_templates', '', 'Home, About Us, Contact' ); ?>
196 - </label>
197 - <small>Separate multiple templates with commas (e.g. Full Width, Landing Page).</small>
198 - </div>
199 - </div>
200 - </div>
112 + <dt><label><b style="color: var(--wowp-orange);">PRO</b> Enable Extra Icon</label>
113 + </dt>
114 + <dd>Enable Extra Icon for categories/tags and pages/posts.</dd>
201 115
202 - <div class="wowp-snippet__item">
203 - <div class="wowp-snippet__item-header">
204 - <label for="enable_menu">Register Menu</label>
205 - <p class="wowp-snippet__item-description">Automatically register a WordPress menu if it doesn’t exist.</p>
206 - </div>
207 - <div class="wowp-field has-checkbox">
208 - <label class="switch">
209 - <?php self::field( 'checkbox', 'enable_menu' ); ?>
210 - <span class="slider"></span>
211 - </label>
212 - </div>
213 - </div>
116 + <dt><label><b style="color: var(--wowp-orange);">PRO</b> Enable Breadcrumbs</label
117 + </dt>
118 + <dd>You can use the function <code>wpc_get_breadcrumbs()</code> on the template for display breadcrumbs. </dd>
214 119
215 - <div class="wowp-snippet__item">
216 - <div class="wowp-snippet__item-header">
217 - <label for="show_page_debug_info">Show Page Debug Info</label>
218 - <p class="wowp-snippet__item-description">
219 - Display technical info for the current request in the Admin Bar (template, query type, object, body classes). Admins only.
220 - </p>
221 - </div>
222 - <div class="wowp-field has-checkbox">
223 - <label class="switch">
224 - <?php self::field( 'checkbox', 'show_page_debug_info' ); ?>
225 - <span class="slider"></span>
226 - </label>
227 - </div>
228 - </div>
120 + <dt><label><b style="color: var(--wowp-orange);">PRO</b> Enable QuickCode</label
121 + </dt>
122 + <dd>Enable tool for uses QuickCodes in the Items. </dd>
229 123
230 - <div class="wowp-snippet__item">
231 - <div class="wowp-snippet__item-header">
232 - <label for="test_users">Test Users</label>
233 - <p class="wowp-snippet__item-description">
234 - Quickly test other user roles from a super admin account, to see what other users experience.
235 - </p>
236 - </div>
237 - <div class="wowp-field has-checkbox">
238 - <label class="switch">
239 - <?php self::field( 'checkbox', 'test_users' ); ?>
240 - <span class="slider"></span>
241 - </label>
242 - </div>
243 - </div>
244 -
245 - <div class="wowp-snippet__item">
246 - <div class="wowp-snippet__item-header">
247 - <label for="theme_switcher">Theme Switcher</label>
248 - <p class="wowp-snippet__item-description">
249 - Quickly switch between installed themes directly from the admin bar.
250 - </p>
251 - </div>
252 - <div class="wowp-field has-checkbox">
253 - <label class="switch">
254 - <?php self::field( 'checkbox', 'theme_switcher' ); ?>
255 - <span class="slider"></span>
256 - </label>
257 - </div>
258 - </div>
259 -
260 - <div class="wowp-snippet__item">
261 - <div class="wowp-snippet__item-header">
262 - <label for="plugin_switcher">Plugin Switcher</label>
263 - <p class="wowp-snippet__item-description">
264 - Quickly activate or deactivate installed plugins directly from the admin bar.
265 - </p>
266 - </div>
267 - <div class="wowp-field has-checkbox">
268 - <label class="switch">
269 - <?php self::field( 'checkbox', 'plugin_switcher' ); ?>
270 - <span class="slider"></span>
271 - </label>
272 - </div>
273 - </div>
274 -
275 -
276 -</div>
277 -
278 -<?php
124 +</dl>