Changeset 2959739
- Timestamp:
- 08/29/2023 08:45:01 AM (3 years ago)
- Location:
- mediajel-tracker/trunk
- Files:
-
- 4 added
- 4 deleted
- 10 edited
-
README.txt (modified) (4 diffs)
-
admin/class-mj-tracker-admin.php (modified) (18 diffs)
-
admin/css/campaign-kpi-tracker-admin.css (added)
-
admin/css/mediajel-tracker-admin.css (deleted)
-
admin/js/campaign-kpi-tracker-admin.js (added)
-
admin/js/mediajel-tracker-admin.js (deleted)
-
admin/partials/campaign-kpi-tracker-admin-display.php (added)
-
admin/partials/mediajel-tracker-admin-display.php (deleted)
-
campaign-kpi-tracker.php (added)
-
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) (3 diffs)
-
includes/class-mj-tracker-loader.php (modified) (1 diff)
-
includes/class-mj-tracker.php (modified) (2 diffs)
-
mediajel-tracker.php (deleted)
-
public/class-mj-tracker-public.php (modified) (9 diffs)
-
public/partials/mj-tracker.php (modified) (1 diff)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mediajel-tracker/trunk/README.txt
r2946357 r2959739 1 === MediaJel Tracker === 2 Contributors: mediajel 3 Tags: mediajel, universal tracker, mvp, header script, jpbaroma 4 Donate link: https://www.mediajel.com/contact-us 1 === Campaign KPI tracker === 2 Contributors: Performance Advertising Company 3 Tags: universal tracker, mvp, header script 5 4 Requires at least: 5.0 6 5 Tested up to: 6.2 7 6 Requires PHP: 7.0 8 Stable tag: 1.2. 17 Stable tag: 1.2.2 9 8 License: GPLv2 or later 10 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 10 12 A plugin for adding settings that is mostly used for identifying, tracking and/or monitoring websites of MediaJelclients.11 A plugin for adding settings that is mostly used for identifying, tracking and/or monitoring websites of Performance Advertising Company clients. 13 12 14 13 == Description == 15 This plugin will provide a section in WP Admin dashboard where MediaJelclients can save some specific details that are needed for identifying, tracking or monitoring performance of their websites.14 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. 16 15 17 In this current version of the plugin, it includes a setting for a Universal Tracker where client has to input a unique APP ID that will be provided for them by MediaJel. This setting also has an option where the client has to select if their website is either on a testing mode or a production mode.16 In this current version of the plugin, it includes a setting for a Universal Tracker where client has to input a unique APP ID that will be provided for them by Performance Advertising Company. This setting also has an option where the client has to select if their website is either on a testing mode or a production mode. 18 17 19 18 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. 20 19 21 20 == Installation == 22 Install MediaJel Tracker like you would install any other WordPress plugin.21 Install Campaign KPI tracker like you would install any other WordPress plugin. 23 22 24 23 Dashboard Method: 25 24 26 25 1. Login to your Wordpress Admin dashboard, and select Plugins -> Add New from the dashboard menu. 27 2. Input \" MediaJel Tracker\" in the search bar and select MediaJel Tracker from the list of plugins.26 2. Input \"Campaign KPI tracker\" in the search bar and select Campaign KPI tracker from the list of plugins. 28 27 3. Click \"Install\", and then click on \"Activate Plugin\". 29 28 30 29 Upload Method: 31 30 32 1. Unzip the plugin and upload the \" mediajel-tracker\" folder to your \'wp-content/plugins\' directory.31 1. Unzip the plugin and upload the \"campaign-kpi-tracker\" folder to your \'wp-content/plugins\' directory. 33 32 2. Login to your Wordpress Admin dashboard, and go to Plugins page. 34 3. Look for the MediaJel Tracker from the list of plugins, the click on Activate.33 3. Look for the Campaign KPI tracker from the list of plugins, the click on Activate. 35 34 36 35 After plugin is activated: 37 1. Once the plugin is activated, you should see the \\\' MediaJel Tracker\\\' menu just below the \\\'Dashboard\\\' menu. Click that menu, and should be taken to a page for the MediaJeltracker.38 2. Under the Universal Tracker (MVP) section, input the APP ID that will be provided to you by MediaJel. Then also tick the option if your site is on testing mode, if not, then just leave it unselected.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. 37 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. 39 38 3. Click on \\\'Save Changes\\\' button, and you\\\'re all set. 40 39 … … 44 43 45 44 = Where can I get the APP ID? = 46 The APP ID for the Universal Tracker will be provided to you by MediaJel. You can contact us or reach-out to us if you don\'t have your APP ID yet.45 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. 47 46 48 = I don\'t have an APP ID yet, can I already install the MediaJel Tracker plugin? =47 = I don\'t have an APP ID yet, can I already install the Campaign KPI tracker plugin? = 49 48 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. 50 49 … … 56 55 57 56 == Screenshots == 58 1. The MediaJel Tracker menu being added on the WP Dashboard menu after plugin is activated57 1. The Campaign KPI tracker menu being added on the WP Dashboard menu after plugin is activated 59 58 2. The Universal Tracker settings section 60 59 61 60 == Changelog == 62 61 63 = 1.2.1 = 62 = 1.2.2 = 63 64 *Release Date - 29 Aug 2023* 65 66 *Update information 67 68 = 1.2.2 = 64 69 65 70 *Release Date - 02 Aug 2023* … … 80 85 *Release Date - 06 January 2022* 81 86 82 *The name of the plugin has been changed to MediaJel Tracker, and all references to files and code has also been updated.to use mediajel-tracker.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. 83 88 84 89 = 1.1.1 = 85 90 *Release Date - 06 January 2022* 86 91 87 *Changed the name of the plugin to MediaJel Tracker92 *Changed the name of the plugin to Campaign KPI tracker 88 93 89 94 = 1.1.0 = -
mediajel-tracker/trunk/admin/class-mj-tracker-admin.php
r2946357 r2959739 7 7 * enqueue the admin-specific stylesheet and JavaScript. 8 8 * 9 * @package MediaJel Tracker10 * @subpackage mediajel-tracker/admin11 * @author JP Baroma <jonathanbaroma@mediajel.com>9 * @package Campaign KPI tracker 10 * @subpackage campaign-kpi-tracker/admin 11 * @author Performance Advertising Company 12 12 */ 13 13 class MJ_Tracker_Admin { … … 16 16 * The ID of this plugin. 17 17 * 18 * @since 1.2. 118 * @since 1.2.2 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. 127 * @since 1.2.2 28 28 * @access private 29 29 * @var string $version The current version of this plugin. … … 32 32 33 33 /** 34 * All options for the MediaJelscripts.35 * 36 * @since 1.2. 134 * All options for the Performance Advertising Company scripts. 35 * 36 * @since 1.2.2 37 37 * @access private 38 * @var array $ mediajel_tracker_options An array of options for the MediaJelScripts.39 */ 40 private $ mediajel_tracker_options;38 * @var array $campaign_kpi_tracker_options An array of options for the Performance Advertising Company Scripts. 39 */ 40 private $campaign_kpi_tracker_options; 41 41 42 42 /** 43 43 * Initialize the class and set its properties. 44 44 * 45 * @since 1.2. 145 * @since 1.2.2 46 46 * @param string $MJ_Tracker The name of this plugin. 47 47 * @param string $version The version of this plugin. … … 57 57 * Register the stylesheets for the admin area. 58 58 * 59 * @since 1.2. 159 * @since 1.2.2 60 60 */ 61 61 public function enqueue_styles() { … … 73 73 */ 74 74 75 wp_enqueue_style( $this->MJ_Tracker, plugin_dir_url( __FILE__ ) . 'css/ mediajel-tracker-admin.css', array(), $this->version, 'all' );75 wp_enqueue_style( $this->MJ_Tracker, plugin_dir_url( __FILE__ ) . 'css/campaign-kpi-tracker-admin.css', array(), $this->version, 'all' ); 76 76 77 77 } … … 80 80 * Register the JavaScript for the admin area. 81 81 * 82 * @since 1.2. 182 * @since 1.2.2 83 83 */ 84 84 public function enqueue_scripts() { … … 96 96 */ 97 97 98 wp_enqueue_script( $this->MJ_Tracker, plugin_dir_url( __FILE__ ) . 'js/ mediajel-tracker-admin.js', array( 'jquery' ), $this->version, false );99 100 } 101 102 /** 103 * Add the MediaJel Tracker page104 * 105 * @since 1.2. 198 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 106 */ 107 107 108 108 109 109 110 public function jpb_add_ mediajel_page() {110 public function jpb_add_kpi_page() { 111 111 112 112 add_menu_page( 113 ' MediaJel Tracker', // page_title114 ' MediaJel Tracker', // menu_title113 'Campaign KPI tracker', // page_title 114 'Campaign KPI tracker', // menu_title 115 115 'manage_options', // capability 116 ' mediajel-tracker', // menu_slug117 array( $this, 'jpb_ mediajel_tracker_create_admin_page' ), // function116 'campaign-kpi-tracker', // menu_slug 117 array( $this, 'jpb_campaign_kpi_tracker_create_admin_page' ), // function 118 118 'dashicons-admin-generic', // icon_url 119 119 2 // position … … 122 122 } 123 123 124 public function jpb_ mediajel_tracker_create_admin_page() {125 $this-> mediajel_tracker_options = get_option( 'mediajel_tracker_option_name' ); ?>124 public function jpb_campaign_kpi_tracker_create_admin_page() { 125 $this->campaign_kpi_tracker_options = get_option( 'campaign_kpi_tracker_option_name' ); ?> 126 126 127 127 <div class="wrap"> 128 <h2> MediaJel Tracker</h2>128 <h2>Campaign KPI tracker</h2> 129 129 <p></p> 130 130 <?php settings_errors(); ?> … … 132 132 <form method="post" action="options.php"> 133 133 <?php 134 settings_fields( ' mediajel_tracker_option_group' );135 do_settings_sections( ' mediajel-tracker-admin' );134 settings_fields( 'campaign_kpi_tracker_option_group' ); 135 do_settings_sections( 'campaign-kpi-tracker-admin' ); 136 136 submit_button(); 137 137 ?> … … 143 143 * Add the setting sections and fields 144 144 * 145 * @since 1.2. 1145 * @since 1.2.2 146 146 */ 147 147 … … 150 150 151 151 register_setting( 152 ' mediajel_tracker_option_group', // option_group153 ' mediajel_tracker_option_name', // option_name154 array( $this, 'jpb_ mediajel_tracker_sanitize' ) // sanitize_callback152 '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 155 155 ); 156 156 … … 159 159 'Universal Tracker (MVP)', // title 160 160 array( $this, 'jpb_Tracker_section_info' ), // callback 161 ' mediajel-tracker-admin' // page161 'campaign-kpi-tracker-admin' // page 162 162 ); 163 163 … … 166 166 'APP ID', // title 167 167 array( $this, 'jpb_Tracker_app_id_callback' ), // callback 168 ' mediajel-tracker-admin', // page168 'campaign-kpi-tracker-admin', // page 169 169 'Tracker_setting_section' // section 170 170 ); … … 174 174 'Cart', // title 175 175 array( $this, 'jpb_Tracker_cart_callback' ), // callback 176 ' mediajel-tracker-admin', // page176 'campaign-kpi-tracker-admin', // page 177 177 'Tracker_setting_section' // section 178 178 ); … … 180 180 } 181 181 182 public function jpb_ mediajel_tracker_sanitize($input) {182 public function jpb_campaign_kpi_tracker_sanitize($input) { 183 183 $sanitary_values = array(); 184 184 if ( isset( $input['jpb_Tracker_app_id'] ) ) { … … 203 203 public function jpb_Tracker_app_id_callback() { 204 204 printf( 205 '<input class="regular-text" type="text" name=" mediajel_tracker_option_name[jpb_Tracker_app_id]" id="jpb_Tracker_app_id" value="%s">',206 isset( $this-> mediajel_tracker_options['jpb_Tracker_app_id'] ) ? esc_attr( $this->mediajel_tracker_options['jpb_Tracker_app_id']) : ''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 207 ); 208 208 } … … 210 210 public function jpb_Tracker_cart_callback() { 211 211 212 $selected_0 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "none" ? "selected" : "" ;213 214 $selected_1 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "jane" ? "selected" : "" ;215 216 $selected_2 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "dutchie-subdomain" ? "selected" : "" ;217 218 $selected_3 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "dutchie-iframe" ? "selected" : "" ;219 220 $selected_4 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "meadow" ? "selected" : "" ;221 222 $selected_5 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "tymber" ? "selected" : "" ;223 224 $selected_6 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "woocommerce" ? "selected" : "" ;225 226 $selected_7 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "greenrush" ? "selected" : "" ;227 228 $selected_8 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "buddi" ? "selected" : "";229 230 $selected_9 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "shopify" ? "selected" : "" ;231 232 $selected_10 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "lightspeed" ? "selected" : "" ;233 234 $selected_11 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "olla" ? "selected" : "";235 236 $selected_12 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "grassdoor" ? "selected" : "";237 238 $selected_13 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "wefunder" ? "selected" : "";239 240 $selected_14 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "ecwid" ? "selected" : "";241 242 $selected_15 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "square" ? "selected" : "";243 244 $selected_16 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "dutchieplus" ? "selected" : "";245 246 $selected_17 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "webjoint" ? "selected" : "";247 248 $selected_18 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "sticky-leaf" ? "selected" : "";249 250 $selected_19 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "dispense" ? "selected" : "";251 252 $selected_20 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "bigcommerce" ? "selected" : "";253 254 $selected_21 = isset( $this-> mediajel_tracker_options["jpb_Tracker_cart"] ) && $this->mediajel_tracker_options["jpb_Tracker_cart"] == "yotpo" ? "selected" : "";255 256 257 echo '<select name=" mediajel_tracker_option_name[jpb_Tracker_cart]" id="jpb_Tracker_cart">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 258 <option value="none" '. $selected_0 .'>none</option> 259 259 <option value="jane" '. $selected_1 .'>jane</option> -
mediajel-tracker/trunk/includes/class-mj-tracker-activator.php
r2672044 r2959739 7 7 * 8 8 * @since 1.1.2 9 * @package MediaJel Tracker10 * @subpackage mediajel-tracker/includes11 * @author JP Baroma <jonathanbaroma@mediajel.com>9 * @package Campaign KPI tracker 10 * @subpackage campaign-kpi-tracker/includes 11 * @author Performance Advertising Company 12 12 */ 13 13 class MJ_Tracker_Activator { -
mediajel-tracker/trunk/includes/class-mj-tracker-deactivator.php
r2946357 r2959739 6 6 * This class defines all code necessary to run during the plugin's deactivation. 7 7 * 8 * @since 1.2. 18 * @since 1.2.2 9 9 * 10 * @package MediaJel Tracker11 * @subpackage mediajel-tracker/includes12 * @author JP Baroma <jonathanbaroma@mediajel.com>10 * @package Campaign KPI tracker 11 * @subpackage campaign-kpi-tracker/includes 12 * @author Performance Advertising Company 13 13 */ 14 14 class MJ_Tracker_Deactivator { … … 19 19 * Long Description. 20 20 * 21 * @since 1.2. 121 * @since 1.2.2 22 22 */ 23 23 public static function deactivate() { -
mediajel-tracker/trunk/includes/class-mj-tracker-i18n.php
r2946357 r2959739 7 7 * so that it is ready for translation. 8 8 * 9 * @link https://www. mediajel.com10 * @since 1.2. 19 * @link https://www.google.com 10 * @since 1.2.2 11 11 * 12 12 * @package MJ_Settings … … 20 20 * so that it is ready for translation. 21 21 * 22 * @since 1.2. 123 * @package MediaJel Tracker24 * @subpackage mediajel-tracker/includes25 * @author JP Baroma <jonathanbaroma@mediajel.com>22 * @since 1.2.2 23 * @package Campaign KPI tracker 24 * @subpackage campaign-kpi-tracker/includes 25 * @author Performance Advertising Company 26 26 */ 27 27 class MJ_Tracker_i18n { … … 31 31 * Load the plugin text domain for translation. 32 32 * 33 * @since 1.2. 133 * @since 1.2.2 34 34 */ 35 35 public function load_plugin_textdomain() { -
mediajel-tracker/trunk/includes/class-mj-tracker-loader.php
r2682554 r2959739 8 8 * run function to execute the list of actions and filters. 9 9 * 10 * @package MediaJel Tracker11 * @subpackage mediajel-tracker/includes12 * @author JP Baroma <jonathanbaroma@mediajel.com>10 * @package Campaign KPI tracker 11 * @subpackage campaign-kpi-tracker/includes 12 * @author Performance Advertising Company 13 13 */ 14 14 class MJ_Tracker_Loader { -
mediajel-tracker/trunk/includes/class-mj-tracker.php
r2672044 r2959739 11 11 * 12 12 * @since 1.1.2 13 * @package MediaJel Tracker14 * @subpackage mediajel-tracker/includes15 * @author JP Baroma <jonathanbaroma@mediajel.com>13 * @package Campaign KPI tracker 14 * @subpackage campaign-kpi-tracker/includes 15 * @author Performance Advertising Company 16 16 */ 17 17 class MJ_Tracker { … … 146 146 147 147 $this->loader->add_action( 'admin_init', $plugin_admin, 'jpb_register_settings' ); 148 $this->loader->add_action( 'admin_menu', $plugin_admin, 'jpb_add_ mediajel_page' );148 $this->loader->add_action( 'admin_menu', $plugin_admin, 'jpb_add_kpi_page' ); 149 149 150 150 -
mediajel-tracker/trunk/public/class-mj-tracker-public.php
r2946357 r2959739 7 7 * enqueue the public-facing stylesheet and JavaScript. 8 8 * 9 * @package MediaJel Tracker10 * @subpackage mediajel-tracker/public11 * @author JP Baroma <jonathanbaroma@mediajel.com>9 * @package Campaign KPI tracker 10 * @subpackage campaign-kpi-tracker/public 11 * @author Performance Advertising Company 12 12 */ 13 13 class MJ_Tracker_Public { … … 16 16 * The ID of this plugin. 17 17 * 18 * @since 1.2. 118 * @since 1.2.2 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. 127 * @since 1.2.2 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. 136 * @since 1.2.2 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. 150 * @since 1.2.2 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. 173 * @since 1.2.2 74 74 */ 75 75 public function enqueue_scripts() { … … 94 94 * Add the script on the header. 95 95 * 96 * @since 1.2. 196 * @since 1.2.2 97 97 */ 98 98 public function jpb_display_Settings() { … … 104 104 function custom_head_script() { 105 105 $environment = ''; 106 $mj_scripts_options = get_option(' mediajel_tracker_option_name');106 $mj_scripts_options = get_option('campaign_kpi_tracker_option_name'); 107 107 108 108 $hs_app_id = $mj_scripts_options['jpb_Tracker_app_id']; … … 122 122 $product = array(); 123 123 global $wp_query; 124 $mj_scripts_options = get_option(' mediajel_tracker_option_name');124 $mj_scripts_options = get_option('campaign_kpi_tracker_option_name'); 125 125 $hs_cart = $mj_scripts_options['jpb_Tracker_cart']; 126 126 -
mediajel-tracker/trunk/public/partials/mj-tracker.php
r2672044 r2959739 6 6 * This file is used to markup the public-facing aspects of the plugin. 7 7 * 8 * @link https://www. mediajel.com8 * @link https://www.google.com 9 9 * @since 1.1.2 10 10 * 11 * @package MediaJel Tracker12 * @subpackage mediajel-tracker/public/partials11 * @package Campaign KPI tracker 12 * @subpackage campaign-kpi-tracker/public/partials 13 13 */ 14 14 ?> -
mediajel-tracker/trunk/uninstall.php
r2672044 r2959739 20 20 * https://github.com/tommcfarlin/WordPress-Plugin-Boilerplate/pull/123#issuecomment-28541913 21 21 * 22 * @link http://www. mediajel.com22 * @link http://www.google.com 23 23 * @since 1.1.2 24 24 * 25 * @package MediaJel Tracker25 * @package Campaign KPI tracker 26 26 */ 27 27
Note: See TracChangeset
for help on using the changeset viewer.