PluginProbe
WP Coder – Insert & Manage Code Snippets / 4.4
WP Coder – Insert & Manage Code Snippets v4.4
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
wp-coder / classes / Tools / page.php

page.php in WP Coder – Insert & Manage Code Snippets 4.4, at classes/Tools/page.php

279 lines 11.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use WPCoder\Dashboard\FieldHelper;
4
5 defined( 'ABSPATH' ) || exit;
6
7 ?>
8
9 <div class="wowp-snippet__list">
10
11
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 </div>
53 </div>
54 </div>
55
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>
90 </label>
91 </div>
92 <?php endforeach; ?>
93 </div>
94 </div>
95 </div>
96
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 </div>
115 </div>
116 </div>
117
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>
140
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>
153
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>
167
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>
180
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>
201
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>
214
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>
229
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
279