Changeset 1282723
- Timestamp:
- 11/09/2015 07:07:19 PM (10 years ago)
- Location:
- adblock-x/trunk
- Files:
-
- 1 added
- 1 deleted
- 2 edited
-
adblock-x.php (modified) (3 diffs)
-
js/abx.js (added)
-
js/abx_detect.js (deleted)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
adblock-x/trunk/adblock-x.php
r1278934 r1282723 3 3 * Plugin Name: AdBlock X 4 4 * Plugin URI: http://www.adblockx.com 5 * Version: 1.0. 55 * Version: 1.0.6 6 6 * Description: Plugin designed to help you examine ad-blockers' impact on your website(s). Registration required, see Settings -> AdBlock X 7 7 * Author: DDC Inc. … … 12 12 defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); 13 13 14 define( 'DDC_ABX_PLUGIN_VER', '1.0. 5' );14 define( 'DDC_ABX_PLUGIN_VER', '1.0.6' ); 15 15 define( 'DDC_ABX_PLUGIN_URI', plugins_url('', __FILE__) ); 16 16 define( 'DDC_ABX_PLUGIN_DIR', trailingslashit( dirname(__FILE__) ) ); … … 39 39 } 40 40 41 $php_vars = array( 42 'site_scheme' => $wp_url_arr['scheme'], 43 'site_path' => $wp_url_arr['host'] . $wp_url_arr['path'], 44 'tracking_code' => $tracking_code, 45 'site_url' => get_site_url() 41 $path = isset($wp_url_arr['path']) ? $wp_url_arr['path'] : ""; 42 $abx = array( 43 'sp' => $wp_url_arr['host'] . $path, 44 'tc' => $tracking_code 46 45 ); 47 46 48 wp_enqueue_script( 'ddc-abx', DDC_ABX_PLUGIN_URI . '/js/abx _detect.js', array(), DDC_ABX_PLUGIN_VER, false );49 wp_localize_script( 'ddc-abx', 'abx _php_vars', $php_vars);47 wp_enqueue_script( 'ddc-abx', DDC_ABX_PLUGIN_URI . '/js/abx.js', array(), DDC_ABX_PLUGIN_VER, false ); 48 wp_localize_script( 'ddc-abx', 'abx', $abx ); 50 49 } 51 50 -
adblock-x/trunk/readme.txt
r1278934 r1282723 55 55 == Changelog == 56 56 57 = 1.0.6 = 58 * optimized plugin footprint 59 57 60 = 1.0.5 = 58 61 * fix various UI bugs
Note: See TracChangeset
for help on using the changeset viewer.