Changeset 2574575
- Timestamp:
- 07/29/2021 09:51:26 AM (5 years ago)
- Location:
- opt-out-for-google-analytics
- Files:
-
- 39 added
- 7 edited
-
tags/1.9 (added)
-
tags/1.9/assets (added)
-
tags/1.9/assets/admin.css (added)
-
tags/1.9/assets/admin.js (added)
-
tags/1.9/assets/icon.png (added)
-
tags/1.9/assets/index.php (added)
-
tags/1.9/assets/optout-block.js (added)
-
tags/1.9/assets/public.js (added)
-
tags/1.9/assets/public.min.js (added)
-
tags/1.9/assets/tinymce.js (added)
-
tags/1.9/constants.php (added)
-
tags/1.9/ga-opt-out.php (added)
-
tags/1.9/inc (added)
-
tags/1.9/inc/activator.class.php (added)
-
tags/1.9/inc/admin.class.php (added)
-
tags/1.9/inc/deactivator.class.php (added)
-
tags/1.9/inc/index.php (added)
-
tags/1.9/inc/messages.class.php (added)
-
tags/1.9/inc/promo.class.php (added)
-
tags/1.9/inc/public.class.php (added)
-
tags/1.9/inc/singleton.class.php (added)
-
tags/1.9/inc/utils.class.php (added)
-
tags/1.9/index.php (added)
-
tags/1.9/lib (added)
-
tags/1.9/lib/csstidy (added)
-
tags/1.9/lib/csstidy/class.csstidy.php (added)
-
tags/1.9/lib/csstidy/class.csstidy_optimise.php (added)
-
tags/1.9/lib/csstidy/class.csstidy_print.php (added)
-
tags/1.9/lib/csstidy/data.inc.php (added)
-
tags/1.9/lib/csstidy/index.php (added)
-
tags/1.9/lib/csstidy/lang.inc.php (added)
-
tags/1.9/lib/index.php (added)
-
tags/1.9/readme.txt (added)
-
tags/1.9/templates (added)
-
tags/1.9/templates/index.php (added)
-
tags/1.9/templates/promotion.php (added)
-
tags/1.9/templates/settings.php (added)
-
tags/1.9/uninstall.php (added)
-
tags/1.9/wpml-config.xml (added)
-
trunk/assets/admin.css (modified) (1 diff)
-
trunk/constants.php (modified) (1 diff)
-
trunk/ga-opt-out.php (modified) (2 diffs)
-
trunk/inc/activator.class.php (modified) (1 diff)
-
trunk/inc/admin.class.php (modified) (3 diffs)
-
trunk/inc/utils.class.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
opt-out-for-google-analytics/trunk/assets/admin.css
r2524476 r2574575 91 91 #dashboard-widgets #ga-opt-out a { 92 92 text-decoration: none; 93 } 94 95 #dashboard-widgets-wrap #ga-opt-out .subsubsub { 96 float: none; 97 border-top: 1px solid #f0f0f1; 98 margin: 15px -12px -12px; 99 padding: 8px 12px 4px; 100 } 101 102 103 #dashboard-widgets-wrap #ga-opt-out .subsubsub li + li:before { 104 content: '|'; 105 padding: 0 6px; 106 color: #ccc; 93 107 } 94 108 -
opt-out-for-google-analytics/trunk/constants.php
r2524476 r2574575 4 4 5 5 // Define global paths 6 defined( 'GAOO_PLUGIN_NAME' ) || define( 'GAOO_PLUGIN_NAME', trim( dirname( plugin_basename( __FILE__ ) ), '/') );7 defined( 'GAOO_PLUGIN_DIR' ) || define( 'GAOO_PLUGIN_DIR', WP_PLUGIN_DIR . '/'. GAOO_PLUGIN_NAME );8 defined( 'GAOO_PLUGIN_URL' ) || define( 'GAOO_PLUGIN_URL', WP_PLUGIN_URL . '/'. GAOO_PLUGIN_NAME );6 defined( 'GAOO_PLUGIN_NAME' ) || define( 'GAOO_PLUGIN_NAME', trim( dirname( plugin_basename( __FILE__ ) ), DIRECTORY_SEPARATOR ) ); 7 defined( 'GAOO_PLUGIN_DIR' ) || define( 'GAOO_PLUGIN_DIR', WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . GAOO_PLUGIN_NAME ); 8 defined( 'GAOO_PLUGIN_URL' ) || define( 'GAOO_PLUGIN_URL', WP_PLUGIN_URL . DIRECTORY_SEPARATOR . GAOO_PLUGIN_NAME ); 9 9 defined( 'GAOO_PREFIX' ) || define( 'GAOO_PREFIX', '_gaoo_' ); 10 defined( 'GAOO_VERSION' ) || define( 'GAOO_VERSION', '1. 8' );10 defined( 'GAOO_VERSION' ) || define( 'GAOO_VERSION', '1.9' ); 11 11 defined( 'GAOO_SHORTCODE' ) || define( 'GAOO_SHORTCODE', '[ga_optout]' ); 12 12 defined( 'GAOO_CAPABILITY' ) || define( 'GAOO_CAPABILITY', 'manage_options' ); -
opt-out-for-google-analytics/trunk/ga-opt-out.php
r2524476 r2574575 4 4 * Plugin URI: https://www.schweizersolutions.com/?utm_source=wordpress&utm_medium=plugin&utm_campaign=plugin_uri 5 5 * Description: Adds the possibility for the user to opt out from Google Analytics. The user will not be tracked by Google Analytics on this site until he allows it again, clears his cookies or uses a different browser. 6 * Version: 1. 86 * Version: 1.9 7 7 * Author: Schweizer Solutions GmbH 8 8 * Author URI: https://www.schweizersolutions.com/?utm_source=wordpress&utm_medium=plugin&utm_campaign=author_uri … … 54 54 public function run() { 55 55 // Load translations 56 defined( 'GAOO_LOCALE' ) || define( 'GAOO_LOCALE', apply_filters( 'plugin_locale', get_user_locale()) );56 defined( 'GAOO_LOCALE' ) || define( 'GAOO_LOCALE', determine_locale() ); 57 57 58 58 // Starts Classes -
opt-out-for-google-analytics/trunk/inc/activator.class.php
r2518448 r2574575 51 51 * @global wpdb $wpdb WordPress database abstraction object. 52 52 * 53 * @param string $phpv Mandatory PHP version. (Default: 5.3)54 * @param string $wpv Mandatory WordPress version. (Default: 3.5)53 * @param string $phpv Mandatory PHP version. (Default: 7.0) 54 * @param string $wpv Mandatory WordPress version. (Default: 4.0) 55 55 * @param string $dbv Mandatory Database version. (Default: 5.6) 56 56 */ 57 public static function check_dependencies( $phpv = ' 5.4', $wpv = '3.5', $dbv = '5.6' ) {57 public static function check_dependencies( $phpv = '7.0', $wpv = '4.0', $dbv = '5.6' ) { 58 58 global $wp_version, $wpdb; 59 59 -
opt-out-for-google-analytics/trunk/inc/admin.class.php
r2524476 r2574575 55 55 GAOO_Utils::render_checklist(); 56 56 57 printf( '<p><span class="dashicons dashicons-admin-settings"></span> <a href="%s">%s</a></p>', esc_url( admin_url( 'options-general.php?page=gaoo' ) ), esc_html__( 'Settings' ) ); 57 $promo = GAOO_Promo::get_data(); 58 $links = array( 59 array( 60 'link' => esc_url( admin_url( 'options-general.php?page=gaoo' ) ), 61 'text' => esc_html__( 'Settings' ), 62 ), 63 ); 64 65 if ( ! empty( $promo ) && ! empty( $promo[ 'promo' ] ) ) { 66 $promo = array_pop( $promo[ 'promo' ] ); 67 $links[] = array( 68 'link' => $promo[ 'link' ], 69 'text' => $promo[ 'link_text' ], 70 'target' => '_blank', 71 ); 72 } 73 74 echo '<ul class="subsubsub">'; 75 76 foreach ( $links as $link ) { 77 printf( '<li><a href="%s" %s>%s</a></li>', $link[ 'link' ], ( empty( $link[ 'target' ] ) ? '' : 'target="' . esc_attr( $link[ 'target' ] ) . '"' ), $link[ 'text' ] ); 78 } 79 80 echo '</ul>'; 58 81 } 59 82 … … 221 244 $ga_plugins = array( 222 245 'monsterinsights' => array( 223 'label' => ' MonsterInsights – Google Analytics Dashboard for WordPress (Website Stats Made Easy)',246 'label' => 'Google Analytics for WordPress by MonsterInsights', 224 247 'url_install' => admin_url( 'plugin-install.php?tab=search&s=Google+Analytics+MonsterInsights' ), 225 248 'url_activate' => admin_url( 'plugins.php?plugin_status=inactive&s=MonsterInsights' ), … … 235 258 ), 236 259 'analytify' => array( 237 'label' => ' Google Analytics Dashboard Plugin for WordPress by Analytify',260 'label' => 'Analytify – Google Analytics Dashboard Plugin For WordPress', 238 261 'url_install' => admin_url( 'plugin-install.php?tab=search&s=Analytify' ), 239 262 'url_activate' => admin_url( 'plugins.php?plugin_status=inactive&s=Analytify' ), -
opt-out-for-google-analytics/trunk/inc/utils.class.php
r2524476 r2574575 394 394 $anonymip_url = admin_url( 'admin.php?page=analytify-settings#wp-analytify-advanced' ); 395 395 396 $uacode_url = admin_url( 'admin.php?page=analytify-settings#wp-analytify- profile' );396 $uacode_url = admin_url( 'admin.php?page=analytify-settings#wp-analytify-advanced' ); 397 397 398 398 } -
opt-out-for-google-analytics/trunk/readme.txt
r2524508 r2574575 3 3 Tags: google analytics, opt-out, dsgvo, gdpr, analytics 4 4 Requires at least: 3.5 5 Tested up to: 5. 7.15 Tested up to: 5.8 6 6 Requires PHP: 7.0 7 Stable tag: 1. 87 Stable tag: 1.9 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 58 58 59 59 * [MonsterInsights Pro](https://www.monsterinsights.com/?utm_source=wordpressorg&utm_medium=opt-out-for-google-analytics) 60 * [ MonsterInsights – Google Analytics Dashboard for WordPress (Website Stats Made Easy)](https://wordpress.org/plugins/google-analytics-for-wordpress/)60 * [Google Analytics for WordPress by MonsterInsights](https://wordpress.org/plugins/google-analytics-for-wordpress/) 61 61 * [ExactMetrics – Google Analytics Dashboard for WordPress (Website Stats Plugin)](https://wordpress.org/plugins/google-analytics-dashboard-for-wp/) 62 * [ Google Analytics Dashboard Plugin for WordPress by Analytify](https://wordpress.org/plugins/wp-analytify/)62 * [Analytify – Google Analytics Dashboard Plugin For WordPress](https://wordpress.org/plugins/wp-analytify/) 63 63 * [GA Google Analytics](https://wordpress.org/plugins/ga-google-analytics/) 64 64 * [Site Kit by Google](https://wordpress.org/plugins/google-site-kit/) … … 286 286 287 287 == Changelog == 288 289 = 1.9 = 290 * Updated: Support for WordPress 5.8 291 * Updated: Compatibility of all supported Google Analaytics tracking plugins. 292 * Fixed: System directory separator was not used in constants. 293 * Changed: Increase version in dependencies check on plugin activation. 288 294 289 295 = 1.8 =
Note: See TracChangeset
for help on using the changeset viewer.