PluginProbe
WP Coder – Insert & Manage Code Snippets / 3.5.1
WP Coder – Insert & Manage Code Snippets v3.5.1
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 3.5.1, at classes/Tools/page.php

125 lines 5.5 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 <dl class="wowp-snippet__list">
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>
60
61 </div>
62 </details>
63 </dd>
64
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' ); ?>
76 </label>
77 <a target="_blank"
78 href="https://support.google.com/adsense/answer/105516?hl=en">Find your publisher ID</a>
79 </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>
97
98 </div>
99 </details>
100 </dd>
101
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
104
105 </dd>
106
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.
109
110 </dd>
111
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>
115
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>
119
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>
123
124 </dl>
125