Changeset 2977874
- Timestamp:
- 10/12/2023 01:53:28 AM (2 years ago)
- Location:
- mediajel-tracker/trunk
- Files:
-
- 12 edited
-
README.txt (modified) (8 diffs)
-
admin/class-mj-tracker-admin.php (modified) (11 diffs)
-
admin/partials/campaign-kpi-tracker-admin-display.php (modified) (1 diff)
-
campaign-kpi-tracker.php (modified) (6 diffs)
-
includes/class-mj-tracker-activator.php (modified) (1 diff)
-
includes/class-mj-tracker-deactivator.php (modified) (2 diffs)
-
includes/class-mj-tracker-i18n.php (modified) (4 diffs)
-
includes/class-mj-tracker-loader.php (modified) (1 diff)
-
includes/class-mj-tracker.php (modified) (3 diffs)
-
public/class-mj-tracker-public.php (modified) (10 diffs)
-
public/partials/mj-tracker.php (modified) (1 diff)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mediajel-tracker/trunk/README.txt
r2959739 r2977874 1 === Campaign KPI tracker ===1 === MJ Tracker === 2 2 Contributors: Performance Advertising Company 3 3 Tags: universal tracker, mvp, header script … … 5 5 Tested up to: 6.2 6 6 Requires PHP: 7.0 7 Stable tag: 1. 2.27 Stable tag: 1.3.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 12 12 13 13 == Description == 14 15 This plugin is using our services (https://www.mediajel.com/) to provide unique solutions Human+Data approach to tough digital marketing categories. 16 14 17 This plugin will provide a section in WP Admin dashboard where Performance Advertising Company clients can save some specific details that are needed for identifying, tracking or monitoring performance of their websites. 15 18 … … 18 21 The plugin adds a specified script in the head section of each page which includes the details provided by the client on the settings, like the APP ID. The script will be used for specific analytics and tracking performace of their websites. 19 22 23 Services: https://www.mediajel.com/ 24 Privacy Policy: https://mediajel.io/privacy-policy 25 Terms of Use: https://www.mediajel.com/terms/ 26 20 27 == Installation == 21 Install Campaign KPI tracker like you would install any other WordPress plugin.28 Install MJ Tracker like you would install any other WordPress plugin. 22 29 23 30 Dashboard Method: 24 31 25 32 1. Login to your Wordpress Admin dashboard, and select Plugins -> Add New from the dashboard menu. 26 2. Input \" Campaign KPI tracker\" in the search bar and select Campaign KPI tracker from the list of plugins.33 2. Input \"MJ Tracker\" in the search bar and select MJ Tracker from the list of plugins. 27 34 3. Click \"Install\", and then click on \"Activate Plugin\". 28 35 29 36 Upload Method: 30 37 31 1. Unzip the plugin and upload the \" campaign-kpi-tracker\" folder to your \'wp-content/plugins\' directory.38 1. Unzip the plugin and upload the \"mj-tracker\" folder to your \'wp-content/plugins\' directory. 32 39 2. Login to your Wordpress Admin dashboard, and go to Plugins page. 33 3. Look for the Campaign KPI tracker from the list of plugins, the click on Activate.40 3. Look for the MJ Tracker from the list of plugins, the click on Activate. 34 41 35 42 After plugin is activated: 36 1. Once the plugin is activated, you should see the \\\' Campaign KPI tracker\\\' menu just below the \\\'Dashboard\\\' menu. Click that menu, and should be taken to a page for the Campaign KPI tracker.43 1. Once the plugin is activated, you should see the \\\'MJ Tracker\\\' menu just below the \\\'Dashboard\\\' menu. Click that menu, and should be taken to a page for the MJ Tracker. 37 44 2. Under the Universal Tracker (MVP) section, input the APP ID that will be provided to you by Performance Advertising Company. Then also tick the option if your site is on testing mode, if not, then just leave it unselected. 38 45 3. Click on \\\'Save Changes\\\' button, and you\\\'re all set. … … 45 52 The APP ID for the Universal Tracker will be provided to you by Performance Advertising Company. You can contact us or reach-out to us if you don\'t have your APP ID yet. 46 53 47 = I don\'t have an APP ID yet, can I already install the Campaign KPI tracker plugin? =54 = I don\'t have an APP ID yet, can I already install the MJ Tracker plugin? = 48 55 Even if you don\'t have your APP ID yet, you can already install the plugin already on the website and add your details later on. 49 56 … … 55 62 56 63 == Screenshots == 57 1. The Campaign KPI tracker menu being added on the WP Dashboard menu after plugin is activated64 1. The MJ Tracker menu being added on the WP Dashboard menu after plugin is activated 58 65 2. The Universal Tracker settings section 59 66 60 67 == Changelog == 68 69 = 1.3.0 = 70 71 *Release Date - 12 Oct 2023* 72 73 *Refactor code and information 61 74 62 75 = 1.2.2 = … … 66 79 *Update information 67 80 68 = 1.2. 2=81 = 1.2.1 = 69 82 70 83 *Release Date - 02 Aug 2023* … … 85 98 *Release Date - 06 January 2022* 86 99 87 *The name of the plugin has been changed to Campaign KPI tracker, and all references to files and code has also been updated.to use campaign-kpi-tracker.100 *The name of the plugin has been changed to MJ Tracker, and all references to files and code has also been updated.to use mj-tracker. 88 101 89 102 = 1.1.1 = 90 103 *Release Date - 06 January 2022* 91 104 92 *Changed the name of the plugin to Campaign KPI tracker105 *Changed the name of the plugin to MJ Tracker 93 106 94 107 = 1.1.0 = -
mediajel-tracker/trunk/admin/class-mj-tracker-admin.php
r2959739 r2977874 7 7 * enqueue the admin-specific stylesheet and JavaScript. 8 8 * 9 * @package Campaign KPI tracker10 * @subpackage campaign-kpi-tracker/admin9 * @package MJ Tracker 10 * @subpackage mj-tracker/admin 11 11 * @author Performance Advertising Company 12 12 */ 13 class MJ_Tracker_Admin { 13 class MJ_Tracker_Admin 14 { 14 15 15 16 /** 16 17 * The ID of this plugin. 17 18 * 18 * @since 1. 2.219 * @since 1.3.0 19 20 * @access private 20 21 * @var string $MJ_Tracker The ID of this plugin. … … 25 26 * The version of this plugin. 26 27 * 27 * @since 1. 2.228 * @since 1.3.0 28 29 * @access private 29 30 * @var string $version The current version of this plugin. … … 34 35 * All options for the Performance Advertising Company scripts. 35 36 * 36 * @since 1. 2.237 * @since 1.3.0 37 38 * @access private 38 * @var array $ campaign_kpi_tracker_options An array of options for the Performance Advertising Company Scripts.39 */ 40 private $ campaign_kpi_tracker_options;39 * @var array $mj_tracker_options An array of options for the Performance Advertising Company Scripts. 40 */ 41 private $mj_tracker_options; 41 42 42 43 /** 43 44 * Initialize the class and set its properties. 44 45 * 45 * @since 1. 2.246 * @since 1.3.0 46 47 * @param string $MJ_Tracker The name of this plugin. 47 48 * @param string $version The version of this plugin. 48 49 */ 49 public function __construct( $MJ_Tracker, $version ) { 50 public function __construct($MJ_Tracker, $version) 51 { 50 52 51 53 $this->MJ_Tracker = $MJ_Tracker; … … 57 59 * Register the stylesheets for the admin area. 58 60 * 59 * @since 1.2.2 60 */ 61 public function enqueue_styles() { 61 * @since 1.3.0 62 */ 63 public function enqueue_styles() 64 { 62 65 63 66 /** … … 73 76 */ 74 77 75 wp_enqueue_style( $this->MJ_Tracker, plugin_dir_url( __FILE__ ) . 'css/campaign-kpi-tracker-admin.css', array(), $this->version, 'all');78 wp_enqueue_style($this->MJ_Tracker, plugin_dir_url(__FILE__) . 'css/mj-tracker-admin.css', array(), $this->version, 'all'); 76 79 77 80 } … … 80 83 * Register the JavaScript for the admin area. 81 84 * 82 * @since 1.2.2 83 */ 84 public function enqueue_scripts() { 85 * @since 1.3.0 86 */ 87 public function enqueue_scripts() 88 { 85 89 86 90 /** … … 96 100 */ 97 101 98 wp_enqueue_script( $this->MJ_Tracker, plugin_dir_url( __FILE__ ) . 'js/campaign-kpi-tracker-admin.js', array( 'jquery' ), $this->version, false ); 99 100 } 101 102 /** 103 * Add the Campaign KPI tracker page 104 * 105 * @since 1.2.2 106 */ 107 108 109 110 public function jpb_add_kpi_page() { 111 102 wp_enqueue_script($this->MJ_Tracker, plugin_dir_url(__FILE__) . 'js/mj-tracker-admin.js', array('jquery'), $this->version, false); 103 104 } 105 106 /** 107 * Add the MJ Tracker page 108 * 109 * @since 1.3.0 110 */ 111 112 113 114 public function pixel_add_kpi_page() 115 { 116 112 117 add_menu_page( 113 'Campaign KPI tracker', // page_title 114 'Campaign KPI tracker', // menu_title 115 'manage_options', // capability 116 'campaign-kpi-tracker', // menu_slug 117 array( $this, 'jpb_campaign_kpi_tracker_create_admin_page' ), // function 118 'dashicons-admin-generic', // icon_url 118 'MJ Tracker', 119 // page_title 120 'MJ Tracker', 121 // menu_title 122 'manage_options', 123 // capability 124 'mj-tracker', 125 // menu_slug 126 array($this, 'pixel_mj_tracker_create_admin_page'), 127 // function 128 'dashicons-admin-generic', 129 // icon_url 119 130 2 // position 120 131 ); 121 122 } 123 124 public function jpb_campaign_kpi_tracker_create_admin_page() { 125 $this->campaign_kpi_tracker_options = get_option( 'campaign_kpi_tracker_option_name' ); ?> 132 133 } 134 135 public function pixel_mj_tracker_create_admin_page() 136 { 137 $this->mj_tracker_options = get_option('mj_tracker_option_name'); ?> 126 138 127 139 <div class="wrap"> 128 <h2> Campaign KPI tracker</h2>140 <h2>MJ Tracker</h2> 129 141 <p></p> 130 142 <?php settings_errors(); ?> … … 132 144 <form method="post" action="options.php"> 133 145 <?php 134 settings_fields( 'campaign_kpi_tracker_option_group');135 do_settings_sections( 'campaign-kpi-tracker-admin');136 submit_button();146 settings_fields('mj_tracker_option_group'); 147 do_settings_sections('mj-tracker-admin'); 148 submit_button(); 137 149 ?> 138 150 </form> … … 143 155 * Add the setting sections and fields 144 156 * 145 * @since 1.2.2 146 */ 147 148 149 public function jpb_register_settings() { 150 157 * @since 1.3.0 158 */ 159 160 161 public function pixel_register_settings() 162 { 163 151 164 register_setting( 152 'campaign_kpi_tracker_option_group', // option_group 153 'campaign_kpi_tracker_option_name', // option_name 154 array( $this, 'jpb_campaign_kpi_tracker_sanitize' ) // sanitize_callback 165 'mj_tracker_option_group', 166 // option_group 167 'mj_tracker_option_name', 168 // option_name 169 array($this, 'pixel_mj_tracker_sanitize') // sanitize_callback 155 170 ); 156 171 157 172 add_settings_section( 158 'Tracker_setting_section', // id 159 'Universal Tracker (MVP)', // title 160 array( $this, 'jpb_Tracker_section_info' ), // callback 161 'campaign-kpi-tracker-admin' // page 173 'Tracker_setting_section', 174 // id 175 'Universal Tracker (MVP)', 176 // title 177 array($this, 'pixel_Tracker_section_info'), 178 // callback 179 'mj-tracker-admin' // page 162 180 ); 163 181 164 182 add_settings_field( 165 'jpb_Tracker_app_id', // id 166 'APP ID', // title 167 array( $this, 'jpb_Tracker_app_id_callback' ), // callback 168 'campaign-kpi-tracker-admin', // page 183 'pixel_Tracker_app_id', 184 // id 185 'APP ID', 186 // title 187 array($this, 'pixel_Tracker_app_id_callback'), 188 // callback 189 'mj-tracker-admin', 190 // page 169 191 'Tracker_setting_section' // section 170 192 ); 171 193 172 194 add_settings_field( 173 'jpb_Tracker_cart', // id 174 'Cart', // title 175 array( $this, 'jpb_Tracker_cart_callback' ), // callback 176 'campaign-kpi-tracker-admin', // page 195 'pixel_Tracker_cart', 196 // id 197 'Cart', 198 // title 199 array($this, 'pixel_Tracker_cart_callback'), 200 // callback 201 'mj-tracker-admin', 202 // page 177 203 'Tracker_setting_section' // section 178 204 ); … … 180 206 } 181 207 182 public function jpb_campaign_kpi_tracker_sanitize($input) { 208 public function pixel_mj_tracker_sanitize($input) 209 { 183 210 $sanitary_values = array(); 184 if ( isset( $input['jpb_Tracker_app_id'] )) {185 $sanitary_values[' jpb_Tracker_app_id'] = sanitize_text_field( $input['jpb_Tracker_app_id']);186 } 187 188 if ( isset( $input['jpb_Tracker_cart'] )) {189 $sanitary_values[' jpb_Tracker_cart'] = $input['jpb_Tracker_cart'];190 } 191 192 if ( isset( $input['jpb_Tracker_testing'] )) {193 $sanitary_values[' jpb_Tracker_testing'] = $input['jpb_Tracker_testing'];211 if (isset($input['pixel_Tracker_app_id'])) { 212 $sanitary_values['pixel_Tracker_app_id'] = sanitize_text_field($input['pixel_Tracker_app_id']); 213 } 214 215 if (isset($input['pixel_Tracker_cart'])) { 216 $sanitary_values['pixel_Tracker_cart'] = $input['pixel_Tracker_cart']; 217 } 218 219 if (isset($input['pixel_Tracker_testing'])) { 220 $sanitary_values['pixel_Tracker_testing'] = $input['pixel_Tracker_testing']; 194 221 } 195 222 … … 197 224 } 198 225 199 public function jpb_Tracker_section_info() { 200 201 } 202 203 public function jpb_Tracker_app_id_callback() { 226 public function pixel_Tracker_section_info() 227 { 228 229 } 230 231 public function pixel_Tracker_app_id_callback() 232 { 204 233 printf( 205 '<input class="regular-text" type="text" name="campaign_kpi_tracker_option_name[jpb_Tracker_app_id]" id="jpb_Tracker_app_id" value="%s">', 206 isset( $this->campaign_kpi_tracker_options['jpb_Tracker_app_id'] ) ? esc_attr( $this->campaign_kpi_tracker_options['jpb_Tracker_app_id']) : '' 207 ); 208 } 209 210 public function jpb_Tracker_cart_callback() { 211 212 $selected_0 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "none" ? "selected" : "" ; 213 214 $selected_1 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "jane" ? "selected" : "" ; 215 216 $selected_2 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "dutchie-subdomain" ? "selected" : "" ; 217 218 $selected_3 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "dutchie-iframe" ? "selected" : "" ; 219 220 $selected_4 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "meadow" ? "selected" : "" ; 221 222 $selected_5 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "tymber" ? "selected" : "" ; 223 224 $selected_6 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "woocommerce" ? "selected" : "" ; 225 226 $selected_7 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "greenrush" ? "selected" : "" ; 227 228 $selected_8 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "buddi" ? "selected" : ""; 229 230 $selected_9 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "shopify" ? "selected" : "" ; 231 232 $selected_10 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "lightspeed" ? "selected" : "" ; 233 234 $selected_11 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "olla" ? "selected" : ""; 235 236 $selected_12 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "grassdoor" ? "selected" : ""; 237 238 $selected_13 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "wefunder" ? "selected" : ""; 239 240 $selected_14 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "ecwid" ? "selected" : ""; 241 242 $selected_15 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "square" ? "selected" : ""; 243 244 $selected_16 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "dutchieplus" ? "selected" : ""; 245 246 $selected_17 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "webjoint" ? "selected" : ""; 247 248 $selected_18 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "sticky-leaf" ? "selected" : ""; 249 250 $selected_19 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "dispense" ? "selected" : ""; 251 252 $selected_20 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "bigcommerce" ? "selected" : ""; 253 254 $selected_21 = isset( $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] ) && $this->campaign_kpi_tracker_options["jpb_Tracker_cart"] == "yotpo" ? "selected" : ""; 255 256 257 echo '<select name="campaign_kpi_tracker_option_name[jpb_Tracker_cart]" id="jpb_Tracker_cart"> 258 <option value="none" '. $selected_0 .'>none</option> 259 <option value="jane" '. $selected_1 .'>jane</option> 260 <option value="dutchie-subdomain" '. $selected_2 .'>dutchie-subdomain</option> 261 <option value="dutchie-iframe" '. $selected_3 .'>dutchie-iframe</option> 262 <option value="meadow" '. $selected_4 .'>meadow</option> 263 <option value="tymber" '. $selected_5 .'>tymber</option> 264 <option value="woocommerce" '. $selected_6 .'>woocommerce</option> 265 <option value="greenrush" '. $selected_7 .'>greenrush</option> 266 <option value="buddi" '. $selected_8 .'>buddi</option> 267 <option value="shopify" '. $selected_9 .'>shopify</option> 268 <option value="lightspeed" '. $selected_10 .'>lightspeed</option> 269 <option value="olla" '. $selected_11 .'>olla</option> 270 <option value="grassdoor" '. $selected_12 .'>grassdoor</option> 271 <option value="wefunder" '. $selected_13 .'>wefunder</option> 272 <option value="ecwid" '. $selected_14 .'>ecwid</option> 273 <option value="square" '. $selected_15 .'>square</option> 274 <option value="dutchieplus" '. $selected_16 .'>dutchieplus</option> 275 <option value="webjoint" '. $selected_17 .'>webjoint</option> 276 <option value="sticky-leaf" '. $selected_18 .'>sticky-leaf</option> 277 <option value="dispense" '. $selected_19 .'>dispense</option> 278 <option value="bigcommerce" '. $selected_20 .'>bigcommerce</option> 279 <option value="yotpo" '. $selected_21 .'>yotpo</option></select>'; 280 234 '<input class="regular-text" type="text" name="mj_tracker_option_name[pixel_Tracker_app_id]" id="pixel_Tracker_app_id" value="%s">', 235 isset($this->mj_tracker_options['pixel_Tracker_app_id']) ? esc_attr($this->mj_tracker_options['pixel_Tracker_app_id']) : '' 236 ); 237 } 238 239 public function pixel_Tracker_cart_callback() 240 { 241 242 $options = array( 243 "none" => "none", 244 "jane" => "jane", 245 "dutchie-subdomain" => "dutchie-subdomain", 246 "dutchie-iframe" => "dutchie-iframe", 247 "meadow" => "meadow", 248 "tymber" => "tymber", 249 "woocommerce" => "woocommerce", 250 "greenrush" => "greenrush", 251 "buddi" => "buddi", 252 "shopify" => "shopify", 253 "lightspeed" => "lightspeed", 254 "olla" => "olla", 255 "grassdoor" => "grassdoor", 256 "wefunder" => "wefunder", 257 "ecwid" => "ecwid", 258 "square" => "square", 259 "dutchieplus" => "dutchieplus", 260 "webjoint" => "webjoint", 261 "sticky-leaf" => "sticky-leaf", 262 "dispense" => "dispense", 263 "bigcommerce" => "bigcommerce", 264 "yotpo" => "yotpo" 265 ); 266 267 $selected = isset($this->mj_tracker_options["pixel_Tracker_cart"]) ? $this->mj_tracker_options["pixel_Tracker_cart"] : "none"; 268 269 echo '<select name="mj_tracker_option_name[pixel_Tracker_cart]" id="pixel_Tracker_cart">'; 270 foreach ($options as $value => $label) { 271 $selected_attr = selected($selected, $value, false); 272 echo '<option value="' . esc_attr($value) . '" ' . $selected_attr . '>' . esc_html($label) . '</option>'; 273 } 274 echo '</select>'; 275 281 276 } 282 277 -
mediajel-tracker/trunk/admin/partials/campaign-kpi-tracker-admin-display.php
r2959739 r2977874 7 7 * 8 8 * @link http://www.google.com 9 * @since 1. 2.29 * @since 1.3.0 10 10 * 11 * @package Campaign KPI tracker12 * @subpackage campaign-kpi-tracker/admin/partials11 * @package MJ Tracker 12 * @subpackage mj-tracker/admin/partials 13 13 */ 14 14 ?> -
mediajel-tracker/trunk/campaign-kpi-tracker.php
r2959739 r2977874 2 2 3 3 /** 4 * @package Campaign KPI tracker4 * @package MJ Tracker 5 5 * 6 * Plugin Name: Campaign KPI tracker7 * Plugin URI: https://wordpress.org/plugins/campaign- kpi-tracker8 * Description: Custom settings page for Campaign KPI tracker9 * Version: 1. 2.26 * Plugin Name: MJ Tracker 7 * Plugin URI: https://wordpress.org/plugins/campaign-performance-tracker 8 * Description: Custom settings page for MJ Tracker 9 * Version: 1.3.0 10 10 * Author: Performance Advertising Company 11 * Author URI: https:// wordpress.org/plugins/campaign-kpi-tracker11 * Author URI: https://google.com 12 12 * License: GPLv2 or later 13 13 * License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 25 25 * 26 26 */ 27 define( 'MJ_Tracker_VERSION', '1. 2.2' );27 define( 'MJ_Tracker_VERSION', '1.3.0' ); 28 28 29 29 /** … … 31 31 * This action is documented in includes/class-mj-tracker-activator.php 32 32 */ 33 function activate_mj_tracker() {33 function mj_on_tracker() { 34 34 require_once plugin_dir_path( __FILE__ ) . 'includes/class-mj-tracker-activator.php'; 35 35 MJ_Tracker_Activator::activate(); … … 40 40 * This action is documented in includes/class-plugin-name-deactivator.php 41 41 */ 42 function deactivate_mj_tracker() {42 function mj_off_tracker() { 43 43 require_once plugin_dir_path( __FILE__ ) . 'includes/class-mj-tracker-deactivator.php'; 44 44 MJ_Tracker_Deactivator::deactivate(); 45 45 } 46 46 47 register_activation_hook( __FILE__, ' activate_mj_tracker' );48 register_deactivation_hook( __FILE__, ' deactivate_mj_tracker' );47 register_activation_hook( __FILE__, 'mj_on_tracker' ); 48 register_deactivation_hook( __FILE__, 'mj_off_tracker' ); 49 49 50 50 /** … … 61 61 * not affect the page life cycle. 62 62 * 63 * @since 1. 2.263 * @since 1.3.0 64 64 */ 65 function run_mj_tracker() {65 function mj_pixel_tracker() { 66 66 67 67 $plugin = new mj_tracker(); … … 69 69 70 70 } 71 run_mj_tracker();71 mj_pixel_tracker(); -
mediajel-tracker/trunk/includes/class-mj-tracker-activator.php
r2959739 r2977874 7 7 * 8 8 * @since 1.1.2 9 * @package Campaign KPI tracker10 * @subpackage campaign-kpi-tracker/includes9 * @package MJ Tracker 10 * @subpackage mj-tracker/includes 11 11 * @author Performance Advertising Company 12 12 */ -
mediajel-tracker/trunk/includes/class-mj-tracker-deactivator.php
r2959739 r2977874 6 6 * This class defines all code necessary to run during the plugin's deactivation. 7 7 * 8 * @since 1. 2.28 * @since 1.3.0 9 9 * 10 * @package Campaign KPI tracker11 * @subpackage campaign-kpi-tracker/includes10 * @package MJ Tracker 11 * @subpackage mj-tracker/includes 12 12 * @author Performance Advertising Company 13 13 */ … … 19 19 * Long Description. 20 20 * 21 * @since 1. 2.221 * @since 1.3.0 22 22 */ 23 23 public static function deactivate() { -
mediajel-tracker/trunk/includes/class-mj-tracker-i18n.php
r2959739 r2977874 8 8 * 9 9 * @link https://www.google.com 10 * @since 1. 2.210 * @since 1.3.0 11 11 * 12 12 * @package MJ_Settings … … 20 20 * so that it is ready for translation. 21 21 * 22 * @since 1. 2.223 * @package Campaign KPI tracker24 * @subpackage campaign-kpi-tracker/includes22 * @since 1.3.0 23 * @package MJ Tracker 24 * @subpackage mj-tracker/includes 25 25 * @author Performance Advertising Company 26 26 */ … … 31 31 * Load the plugin text domain for translation. 32 32 * 33 * @since 1. 2.233 * @since 1.3.0 34 34 */ 35 35 public function load_plugin_textdomain() { … … 38 38 'mj-tracker', 39 39 false, 40 dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/'40 plugin_dir_path(__FILE__) . 'languages/' 41 41 ); 42 42 -
mediajel-tracker/trunk/includes/class-mj-tracker-loader.php
r2959739 r2977874 8 8 * run function to execute the list of actions and filters. 9 9 * 10 * @package Campaign KPI tracker11 * @subpackage campaign-kpi-tracker/includes10 * @package MJ Tracker 11 * @subpackage mj-tracker/includes 12 12 * @author Performance Advertising Company 13 13 */ -
mediajel-tracker/trunk/includes/class-mj-tracker.php
r2959739 r2977874 11 11 * 12 12 * @since 1.1.2 13 * @package Campaign KPI tracker14 * @subpackage campaign-kpi-tracker/includes13 * @package MJ Tracker 14 * @subpackage mj-tracker/includes 15 15 * @author Performance Advertising Company 16 16 */ … … 145 145 $this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' ); 146 146 147 $this->loader->add_action( 'admin_init', $plugin_admin, ' jpb_register_settings' );148 $this->loader->add_action( 'admin_menu', $plugin_admin, ' jpb_add_kpi_page' );147 $this->loader->add_action( 'admin_init', $plugin_admin, 'pixel_register_settings' ); 148 $this->loader->add_action( 'admin_menu', $plugin_admin, 'pixel_add_kpi_page' ); 149 149 150 150 … … 166 166 $this->loader->add_action( 'wp_enqueue_scripts', $plugin_public, 'enqueue_scripts' ); 167 167 168 $this->loader->add_action( 'wp_head', $plugin_public, ' jpb_display_Settings', -1000 );168 $this->loader->add_action( 'wp_head', $plugin_public, 'pixel_display_Settings', -1000 ); 169 169 170 170 } -
mediajel-tracker/trunk/public/class-mj-tracker-public.php
r2959739 r2977874 7 7 * enqueue the public-facing stylesheet and JavaScript. 8 8 * 9 * @package Campaign KPI tracker10 * @subpackage campaign-kpi-tracker/public9 * @package MJ Tracker 10 * @subpackage mj-tracker/public 11 11 * @author Performance Advertising Company 12 12 */ … … 16 16 * The ID of this plugin. 17 17 * 18 * @since 1. 2.218 * @since 1.3.0 19 19 * @access private 20 20 * @var string $MJ_Tracker The ID of this plugin. … … 25 25 * The version of this plugin. 26 26 * 27 * @since 1. 2.227 * @since 1.3.0 28 28 * @access private 29 29 * @var string $version The current version of this plugin. … … 34 34 * Initialize the class and set its properties. 35 35 * 36 * @since 1. 2.236 * @since 1.3.0 37 37 * @param string $MJ_Tracker The name of the plugin. 38 38 * @param string $version The version of this plugin. … … 48 48 * Register the stylesheets for the public-facing side of the site. 49 49 * 50 * @since 1. 2.250 * @since 1.3.0 51 51 */ 52 52 public function enqueue_styles() { … … 71 71 * Register the JavaScript for the public-facing side of the site. 72 72 * 73 * @since 1. 2.273 * @since 1.3.0 74 74 */ 75 75 public function enqueue_scripts() { … … 94 94 * Add the script on the header. 95 95 * 96 * @since 1. 2.296 * @since 1.3.0 97 97 */ 98 public function jpb_display_Settings() {98 public function pixel_display_Settings() { 99 99 100 100 /** … … 102 102 */ 103 103 104 function custom_head_script() {104 function mj_head_script() { 105 105 $environment = ''; 106 $mj_scripts_options = get_option(' campaign_kpi_tracker_option_name');106 $mj_scripts_options = get_option('mj_tracker_option_name'); 107 107 108 $hs_app_id = $mj_scripts_options[' jpb_Tracker_app_id'];109 $hs_cart = $mj_scripts_options[' jpb_Tracker_cart'];108 $hs_app_id = $mj_scripts_options['pixel_Tracker_app_id']; 109 $hs_cart = $mj_scripts_options['pixel_Tracker_cart']; 110 110 111 111 if ($hs_cart != 'none') { … … 118 118 } 119 119 120 function woocommerce_tracker()120 function mj_pixel_tracker() 121 121 { 122 122 $product = array(); 123 123 global $wp_query; 124 $mj_scripts_options = get_option(' campaign_kpi_tracker_option_name');125 $hs_cart = $mj_scripts_options[' jpb_Tracker_cart'];124 $mj_scripts_options = get_option('mj_tracker_option_name'); 125 $hs_cart = $mj_scripts_options['pixel_Tracker_cart']; 126 126 127 127 if ($hs_cart === 'woocommerce') { … … 154 154 } 155 155 156 add_action('wp_enqueue_scripts', ' custom_head_script');157 add_action('wp_head', ' woocommerce_tracker');156 add_action('wp_enqueue_scripts', 'mj_pixel_head_script'); 157 add_action('wp_head', 'mj_pixel_tracker'); 158 158 159 159 } -
mediajel-tracker/trunk/public/partials/mj-tracker.php
r2959739 r2977874 9 9 * @since 1.1.2 10 10 * 11 * @package Campaign KPI tracker12 * @subpackage campaign-kpi-tracker/public/partials11 * @package MJ Tracker 12 * @subpackage mj-tracker/public/partials 13 13 */ 14 14 ?> -
mediajel-tracker/trunk/uninstall.php
r2959739 r2977874 23 23 * @since 1.1.2 24 24 * 25 * @package Campaign KPI tracker25 * @package MJ Tracker 26 26 */ 27 27
Note: See TracChangeset
for help on using the changeset viewer.