Changeset 909009
- Timestamp:
- 05/06/2014 02:31:33 PM (12 years ago)
- Location:
- universal-analytics
- Files:
-
- 27 added
- 2 edited
-
tags/1.0.1 (added)
-
tags/1.0.1/LICENSE (added)
-
tags/1.0.1/README.md (added)
-
tags/1.0.1/assets (added)
-
tags/1.0.1/assets/gua-main.css (added)
-
tags/1.0.1/assets/gua-main.js (added)
-
tags/1.0.1/bootstrap (added)
-
tags/1.0.1/bootstrap/css (added)
-
tags/1.0.1/bootstrap/css/bootstrap-switch.min.css (added)
-
tags/1.0.1/bootstrap/css/bootstrap-theme.css (added)
-
tags/1.0.1/bootstrap/css/bootstrap-theme.css.map (added)
-
tags/1.0.1/bootstrap/css/bootstrap-theme.min.css (added)
-
tags/1.0.1/bootstrap/css/bootstrap.css (added)
-
tags/1.0.1/bootstrap/css/bootstrap.css.map (added)
-
tags/1.0.1/bootstrap/css/bootstrap.min.css (added)
-
tags/1.0.1/bootstrap/fonts (added)
-
tags/1.0.1/bootstrap/fonts/glyphicons-halflings-regular.eot (added)
-
tags/1.0.1/bootstrap/fonts/glyphicons-halflings-regular.svg (added)
-
tags/1.0.1/bootstrap/fonts/glyphicons-halflings-regular.ttf (added)
-
tags/1.0.1/bootstrap/fonts/glyphicons-halflings-regular.woff (added)
-
tags/1.0.1/bootstrap/js (added)
-
tags/1.0.1/bootstrap/js/bootstrap-switch.min.js (added)
-
tags/1.0.1/bootstrap/js/bootstrap.min.js (added)
-
tags/1.0.1/options.php (added)
-
tags/1.0.1/readme.txt (added)
-
tags/1.0.1/tracking-code.php (added)
-
tags/1.0.1/universalanalytics.php (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/universalanalytics.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
universal-analytics/trunk/readme.txt
r908678 r909009 4 4 Requires at least: 3.0 5 5 Tested up to: 3.9 6 Stable tag: 1.0. 06 Stable tag: 1.0.1 7 7 License: GPLv2 or later 8 8 … … 45 45 * Initial release. 46 46 47 = 1.0.1 = 48 * Fixed bug with plugin folder that didn't allow plugin to load. 49 47 50 == Upgrade Notice == 48 51 49 52 = 1.0.0 = 50 53 * Initial release. 54 55 = 1.0.1 = 56 * Fixed bug with plugin folder that didn't allow plugin to load. -
universal-analytics/trunk/universalanalytics.php
r908674 r909009 4 4 Plugin URI: http://wordpress.org/extend/plugins/universal-analytics/ 5 5 Description: A simple method to add Google's Universal Analytics JavaScript tracking code to your WordPress website. 6 Version: 1.0. 06 Version: 1.0.1 7 7 Author: Matchbox Design Group 8 8 Author URI: http://matchboxdesigngroup.com/ … … 24 24 delete_option('plugin_switch'); 25 25 delete_option('track_links'); 26 delete_option('enable_display'); 26 delete_option('enable_display'); 27 27 delete_option('anonymize_ip'); 28 28 delete_option('tracking_off_for_this_role'); … … 38 38 // Load the options page (the markup) 39 39 function mdg_options_page_google_universal_analytics() { 40 include(WP_PLUGIN_DIR.'/ wp-universal-analytics/options.php');40 include(WP_PLUGIN_DIR.'/universal-analytics/options.php'); 41 41 } 42 42 … … 51 51 if($hook != $settings_page && $hook != $settings_page1) 52 52 return; 53 53 54 54 // Register styles 55 wp_register_style( 'bootstrap-css', plugins_url( ' wp-universal-analytics/bootstrap/css/bootstrap.min.css' , dirname(__FILE__) ) );56 wp_register_style( 'bootstrap-switch-css', plugins_url( ' wp-universal-analytics/bootstrap/css/bootstrap-switch.min.css' , dirname(__FILE__) ) );57 wp_register_style( 'main-css', plugins_url( ' wp-universal-analytics/assets/gua-main.css' , dirname(__FILE__) ) );55 wp_register_style( 'bootstrap-css', plugins_url( 'universal-analytics/bootstrap/css/bootstrap.min.css' , dirname(__FILE__) ) ); 56 wp_register_style( 'bootstrap-switch-css', plugins_url( 'universal-analytics/bootstrap/css/bootstrap-switch.min.css' , dirname(__FILE__) ) ); 57 wp_register_style( 'main-css', plugins_url( 'universal-analytics/assets/gua-main.css' , dirname(__FILE__) ) ); 58 58 59 59 // Register scripts 60 60 wp_register_script( 'google-js', '//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js', array(), '', true ); 61 wp_register_script( 'bootstrap-js', plugins_url( ' wp-universal-analytics/bootstrap/js/bootstrap.min.js' , dirname(__FILE__) ), array('google-js'), '', true );62 wp_register_script( 'bootstrap-switch-js', plugins_url( ' wp-universal-analytics/bootstrap/js/bootstrap-switch.min.js' , dirname(__FILE__) ) , array('bootstrap-js'),'',true );63 wp_register_script( 'main-js', plugins_url( ' wp-universal-analytics/assets/gua-main.js' , dirname(__FILE__) ) , array('google-js'),'',true );61 wp_register_script( 'bootstrap-js', plugins_url( 'universal-analytics/bootstrap/js/bootstrap.min.js' , dirname(__FILE__) ), array('google-js'), '', true ); 62 wp_register_script( 'bootstrap-switch-js', plugins_url( 'universal-analytics/bootstrap/js/bootstrap-switch.min.js' , dirname(__FILE__) ) , array('bootstrap-js'),'',true ); 63 wp_register_script( 'main-js', plugins_url( 'universal-analytics/assets/gua-main.js' , dirname(__FILE__) ) , array('google-js'),'',true ); 64 64 65 65 // Enqueue styles … … 78 78 79 79 if (is_admin()) { 80 add_action('admin_enqueue_scripts', 'mdg_google_universal_analytics_scripts'); 80 add_action('admin_enqueue_scripts', 'mdg_google_universal_analytics_scripts'); 81 81 add_action('admin_menu', 'mdg_admin_menu_google_universal_analytics'); 82 82 } … … 132 132 $tracking_off_for_this_role = $_REQUEST['tracking_off_for_this_role']; 133 133 $tracking_off_for_role = $_REQUEST['tracking_off_for_role']; 134 134 135 135 update_option('web_property_id', $property_id); 136 136 update_option('in_footer', $in_footer);
Note: See TracChangeset
for help on using the changeset viewer.