Plugin Directory

Changeset 2574575


Ignore:
Timestamp:
07/29/2021 09:51:26 AM (5 years ago)
Author:
schweizersolutions
Message:

1.9

  • Updated: Support for WordPress 5.8
  • Updated: Compatibility of all supported Google Analaytics tracking plugins.
  • Fixed: System directory separator was not used in constants.
  • Changed: Increase version in dependencies check on plugin activation.
Location:
opt-out-for-google-analytics
Files:
39 added
7 edited

Legend:

Unmodified
Added
Removed
  • opt-out-for-google-analytics/trunk/assets/admin.css

    r2524476 r2574575  
    9191#dashboard-widgets #ga-opt-out a {
    9292    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;
    93107}
    94108
  • opt-out-for-google-analytics/trunk/constants.php

    r2524476 r2574575  
    44
    55    // 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 );
    99    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' );
    1111    defined( 'GAOO_SHORTCODE' ) || define( 'GAOO_SHORTCODE', '[ga_optout]' );
    1212    defined( 'GAOO_CAPABILITY' ) || define( 'GAOO_CAPABILITY', 'manage_options' );
  • opt-out-for-google-analytics/trunk/ga-opt-out.php

    r2524476 r2574575  
    44     * Plugin URI: https://www.schweizersolutions.com/?utm_source=wordpress&utm_medium=plugin&utm_campaign=plugin_uri
    55     * 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.8
     6     * Version: 1.9
    77     * Author: Schweizer Solutions GmbH
    88     * Author URI: https://www.schweizersolutions.com/?utm_source=wordpress&utm_medium=plugin&utm_campaign=author_uri
     
    5454        public function run() {
    5555            // 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() );
    5757
    5858            // Starts Classes
  • opt-out-for-google-analytics/trunk/inc/activator.class.php

    r2518448 r2574575  
    5151         * @global wpdb $wpdb         WordPress database abstraction object.
    5252         *
    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)
    5555         * @param string $dbv         Mandatory Database version. (Default: 5.6)
    5656         */
    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' ) {
    5858            global $wp_version, $wpdb;
    5959
  • opt-out-for-google-analytics/trunk/inc/admin.class.php

    r2524476 r2574575  
    5555            GAOO_Utils::render_checklist();
    5656
    57             printf( '<p><span class="dashicons dashicons-admin-settings"></span>&nbsp;<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>';
    5881        }
    5982
     
    221244            $ga_plugins = array(
    222245                'monsterinsights' => array(
    223                     'label'        => 'MonsterInsights – Google Analytics Dashboard for WordPress (Website Stats Made Easy)',
     246                    'label'        => 'Google Analytics for WordPress by MonsterInsights',
    224247                    'url_install'  => admin_url( 'plugin-install.php?tab=search&s=Google+Analytics+MonsterInsights' ),
    225248                    'url_activate' => admin_url( 'plugins.php?plugin_status=inactive&s=MonsterInsights' ),
     
    235258                ),
    236259                'analytify'       => array(
    237                     'label'        => 'Google Analytics Dashboard Plugin for WordPress by Analytify',
     260                    'label'        => 'Analytify – Google Analytics Dashboard Plugin For WordPress',
    238261                    'url_install'  => admin_url( 'plugin-install.php?tab=search&s=Analytify' ),
    239262                    'url_activate' => admin_url( 'plugins.php?plugin_status=inactive&s=Analytify' ),
  • opt-out-for-google-analytics/trunk/inc/utils.class.php

    r2524476 r2574575  
    394394                $anonymip_url     = admin_url( 'admin.php?page=analytify-settings#wp-analytify-advanced' );
    395395
    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' );
    397397
    398398            }
  • opt-out-for-google-analytics/trunk/readme.txt

    r2524508 r2574575  
    33Tags: google analytics, opt-out, dsgvo, gdpr, analytics
    44Requires at least: 3.5
    5 Tested up to: 5.7.1
     5Tested up to: 5.8
    66Requires PHP: 7.0
    7 Stable tag: 1.8
     7Stable tag: 1.9
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5858
    5959* [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/)
    6161* [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/)
    6363* [GA Google Analytics](https://wordpress.org/plugins/ga-google-analytics/)
    6464* [Site Kit by Google](https://wordpress.org/plugins/google-site-kit/)
     
    286286
    287287== 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.
    288294
    289295= 1.8 =
Note: See TracChangeset for help on using the changeset viewer.