PluginProbe
Wp Tracking Codes / 1.9.2
Wp Tracking Codes v1.9.2
trunk 1.0 1.0.1 1.0.2 1.0.3 1.0.4 1.1.0 1.1.0, 1.10.0 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.5.0 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3
wp-tracking-codes / includes / admin / views / html-admin-page.php

html-admin-page.php in Wp Tracking Codes 1.9.2, at includes/admin/views/html-admin-page.php

115 lines 4.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Admin help message.
4 *
5 * @package WpTrackingCodes
6 */
7
8 if ( ! defined( 'ABSPATH' ) ) {
9 exit;
10 }
11 ?>
12 <style type="text/css">
13 .form-table{
14 clear:none !important;
15 }
16 .title-section{
17 position: relative;
18 display: inline-block;
19 }
20 .title-section:after{
21 content:'NEW';
22 background: yellow;
23 padding: 5px;
24 color:#000;
25 font-weight: bold;
26 position: absolute;
27 right: -48px;
28 top: -5px;
29 }
30 .title-section-{
31 position: relative;
32 display: inline-block;
33 font-size: 16px;
34 margin-top: 20px;
35 }
36 .status{
37 display: inline-block;
38 position: relative;
39 top: -10px;
40 left: 0px;
41 }
42 .status .dashicons{
43 font-size: 40px;
44 color:green;
45 }
46 #google_merchant_estimative_delivery_days{
47 text-align: right;
48 }
49 </style>
50 <div class="wrap">
51 <form method="POST" action="options.php">
52 <h2><?php echo esc_html( get_admin_page_title() ); ?></h2>
53 <div id="poststuff" class="metabox-holder has-right-sidebar">
54 <div class="inner-sidebar">
55 <div class="meta-box-sortabless ui-sortable" style="position:relative;">
56 <div id="sm_pnres" class="postbox" style="border: 5px dashed #ccd0d4;">
57 <div class="inside">
58 <h3 class="hndle"><span><?php esc_html_e( 'Datalayer for WooCommerce?', 'wp-tracking-codes' ); ?></span></h3>
59 <br>
60 <a class="button activate-now button-primary" target="_blank" href="https://woo.com/products/datalayer-for-woocommerce/" style="font-size:18px;display: block;text-align: center;">
61 <?php esc_html_e( 'READ MORE', 'wp-tracking-codes' ); ?>
62 </a>
63 </div>
64 </div>
65 </div>
66 </div>
67 <div class="inner-sidebar">
68 <div id="side-sortables" class="meta-box-sortabless ui-sortable" style="position:relative;">
69 <div id="sm_pnres" class="postbox">
70 <h3 class="hndle"><span><?php esc_html_e( 'About this Plugin:', 'wp-tracking-codes' ); ?></span></h3>
71 <div class="inside">
72 <br>
73 <a class="button activate-now button-primary" target="_blank" href="https://wordpress.org/support/plugin/wp-tracking-codes/reviews/" style="font-size:18px;display: block;text-align: center;">
74 <?php esc_html_e( 'Send Your Review', 'wp-tracking-codes' ); ?>
75 </a>
76 <br>
77 <br>
78 <a class="sm_button sm_pluginHome" target="_blank" href="https://wordpress.org/support/plugin/wp-tracking-codes/"><?php esc_html_e( 'Support Plugin', 'wp-tracking-codes' ); ?></a><br><br>
79 <a class="sm_button sm_pluginHome" target="_blank" href="https://wordpress.org/plugins/wp-tracking-codes/"><?php esc_html_e( 'Page Plugin', 'wp-tracking-codes' ); ?></a><br><br>
80 </div>
81 </div>
82 </div>
83 </div>
84 <div class="has-sidebar sm-padded">
85 <div id="post-body-content" class="has-sidebar-content">
86 <div class="meta-box-sortabless">
87 <!-- Rebuild Area -->
88 <div id="sm_rebuild" class="postbox">
89 <h3 class="hndle"><span><?php esc_html_e( 'My Tracking Codes', 'wp-tracking-codes' ); ?></span></h3>
90 <div class="inside">
91 <?php //echo $options = get_option( 'tracking_analytics' ); ?>
92 <?php settings_fields( 'wp-tracking-codes' ); //pass slug name of page, also referred
93 //to in Settings API as option group name
94 do_settings_sections( 'wp-tracking-codes' ); //pass slug name of page
95 submit_button();
96 ?>
97 </div>
98 </div>
99 </div>
100 </div>
101 </div>
102 </div>
103 </form>
104 </div>
105 <script>
106 let searchParams = new URLSearchParams(window.location.search);
107 let desativate_datalayer = searchParams.get('desativate_datalayer')
108 if(desativate_datalayer=='true'){
109 jQuery("#data_layer_google_tag_manager").trigger('click');
110 jQuery("#submit").trigger('click');
111 var href = new URL(window.location.href);
112 href.searchParams.set('desativate_datalayer', '');
113 location.replace(href.toString());
114 }
115 </script>