| @@ -5,120 +5,95 @@ | ||
| 5 | 5 | defined( 'ABSPATH' ) || exit; |
| 6 | 6 | |
| 7 | 7 | ?> |
| 8 | 8 | |
| 9 | -<dl class="wowp-snippet__list"> | |
| 9 | +<div 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> | |
| 60 | 11 | |
| 61 | - </div> | |
| 62 | - </details> | |
| 63 | - </dd> | |
| 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"> | |
| 64 | 27 | |
| 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> | |
| 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> | |
| 97 | 51 | |
| 98 | 52 | </div> |
| 99 | - </details> | |
| 100 | - </dd> | |
| 53 | + </div> | |
| 54 | + </div> | |
| 101 | 55 | |
| 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 | |
| 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> | |
| 104 | 76 | |
| 105 | - </dd> | |
| 77 | + <p><b>Disable Google AdSense Ads for these user roles:</b></p> | |
| 106 | 78 | |
| 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. | |
| 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> | |
| 109 | 96 | |
| 110 | - </dd> | |
| 97 | +</div> | |
| 111 | 98 | |
| 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> | |
| 99 | +<?php | |