Plugin Directory

Changeset 1980919


Ignore:
Timestamp:
11/26/2018 10:52:13 PM (7 years ago)
Author:
quantcast
Message:

tagging version 1.0.1

Location:
audience-analytics-by-quantcast
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • audience-analytics-by-quantcast/tags/1.0.1/trunk/audience-analytics.php

    r1552930 r1980919  
    44Plugin URI:  https://www.quantcast.com/
    55Description: Quantcast Measure provides free, powerful audience measurement for your site. Please go to Settings - Quantcast to get started.
    6 Version:     1.0.0
     6Version:     1.0.1
    77Author:      Quantcast
    88Author URI:  https://www.quantcast.com/
    99Requires at least: 4.0
    10 Tested up to: 4.7
     10Tested up to: 4.9.8
    1111License:     GPL2
    1212License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2020
    2121class WP_Quantcast {
    22    
     22
    2323    protected static $_instance = null;
    2424    protected $plugin_name;
    2525    protected $version;
    26    
     26
    2727    public static function instance() {
    2828        if ( is_null( self::$_instance ) ) {
     
    3131        return self::$_instance;
    3232    }
    33    
     33
    3434    public function __construct() {
    35        
     35
    3636        $this->plugin_name = 'wp-quantcast';
    37         $this->version = '1.0.0';
    38        
     37        $this->version = '1.0.1';
     38
    3939        add_action( 'init' , array( $this, 'init' ) );
    4040    }
    41    
     41
    4242    public function init() {
    43        
     43
    4444        add_action( 'admin_menu', array( $this, 'qc_add_admin_menu' ) );
    4545        add_action( 'admin_init', array( $this, 'qc_admin_menu_init' ) );
    4646        add_action( 'wp_footer',  array( $this, 'qc_footer_scripts' ) );
    4747        add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array( $this, 'qc_settings_link' ) );
    48         add_action( 'admin_notices', array( $this, 'qc_admin_notice_pcode' ) );     
     48        add_action( 'admin_notices', array( $this, 'qc_admin_notice_pcode' ) );
    4949    }
    5050
     
    5959    public function qc_settings_link( $links ) {
    6060        $links[] = sprintf( '<a href="%s">%s</a>', admin_url( 'options-general.php?page=wp-quantcast' ),  __( 'Settings', 'wp-quantcast' ) );
    61        
     61
    6262        return $links;
    6363    }
    64    
     64
    6565    public function qc_admin_menu_init() {
    6666        register_setting( 'wp-quantcast', 'wp-quantcast_settings' );
    67        
     67
    6868        add_settings_section(
    69             'qc_section', 
    70             '', 
    71             array( $this, 'qc_settings_section_callback' ), 
     69            'qc_section',
     70            '',
     71            array( $this, 'qc_settings_section_callback' ),
    7272            'wp-quantcast'
    7373        );
    74        
     74
    7575        add_settings_field(
    7676            'qc-pcode',
    77             __( 'Your Tracking ID (P-code)', 'wp-quantcast' ), 
    78             array( $this, 'qc_p_code_callback' ), 
    79             'wp-quantcast', 
    80             'qc_section' 
     77            __( 'Your Tracking ID (P-code)', 'wp-quantcast' ),
     78            array( $this, 'qc_p_code_callback' ),
     79            'wp-quantcast',
     80            'qc_section'
    8181        );
    82        
     82
    8383    }
    84    
     84
    8585    public function qc_admin_notice_pcode() {
    8686
    8787        $setting = get_option( 'wp-quantcast_settings' );
    88    
     88
    8989        if( ! $setting['qc-pcode'] ) {
    9090            $error = sprintf( '%s<a href="%s">%s</a>', __( 'Audience Analytics – by Quantcast requires Your Tracking ID (P-code) for data collection. ', 'wp-quantcast' ) , admin_url( 'options-general.php?page=wp-quantcast' ),  __( 'Settings', 'wp-quantcast' ) );
     
    9696        }
    9797    }
    98    
     98
    9999    public function qc_settings_section_callback() {
    100100        ?>
     
    104104        <?php
    105105    }
    106    
     106
    107107    public function qc_p_code_callback() {
    108108
     
    112112        <?php
    113113    }
    114    
     114
    115115    public function qc_add_admin_menu() {
    116116        add_options_page( __( 'Quantcast', 'wp-quantcast' ), __( 'Quantcast', 'wp-quantcast' ), 'manage_options', 'wp-quantcast', array( $this, 'quantcast_admin_page' ) );
    117117    }
    118    
     118
    119119    public function quantcast_admin_page() {
    120120        $setting = get_option( 'wp-quantcast_settings' );
     
    136136            </form>
    137137        </div>
    138     <?php       
     138    <?php
    139139    }
    140    
     140
    141141    public function qc_footer_scripts() {
    142142        $setting = get_option( 'wp-quantcast_settings' );
  • audience-analytics-by-quantcast/trunk/audience-analytics.php

    r1552930 r1980919  
    44Plugin URI:  https://www.quantcast.com/
    55Description: Quantcast Measure provides free, powerful audience measurement for your site. Please go to Settings - Quantcast to get started.
    6 Version:     1.0.0
     6Version:     1.0.1
    77Author:      Quantcast
    88Author URI:  https://www.quantcast.com/
    99Requires at least: 4.0
    10 Tested up to: 4.7
     10Tested up to: 4.9.8
    1111License:     GPL2
    1212License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    2020
    2121class WP_Quantcast {
    22    
     22
    2323    protected static $_instance = null;
    2424    protected $plugin_name;
    2525    protected $version;
    26    
     26
    2727    public static function instance() {
    2828        if ( is_null( self::$_instance ) ) {
     
    3131        return self::$_instance;
    3232    }
    33    
     33
    3434    public function __construct() {
    35        
     35
    3636        $this->plugin_name = 'wp-quantcast';
    37         $this->version = '1.0.0';
    38        
     37        $this->version = '1.0.1';
     38
    3939        add_action( 'init' , array( $this, 'init' ) );
    4040    }
    41    
     41
    4242    public function init() {
    43        
     43
    4444        add_action( 'admin_menu', array( $this, 'qc_add_admin_menu' ) );
    4545        add_action( 'admin_init', array( $this, 'qc_admin_menu_init' ) );
    4646        add_action( 'wp_footer',  array( $this, 'qc_footer_scripts' ) );
    4747        add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array( $this, 'qc_settings_link' ) );
    48         add_action( 'admin_notices', array( $this, 'qc_admin_notice_pcode' ) );     
     48        add_action( 'admin_notices', array( $this, 'qc_admin_notice_pcode' ) );
    4949    }
    5050
     
    5959    public function qc_settings_link( $links ) {
    6060        $links[] = sprintf( '<a href="%s">%s</a>', admin_url( 'options-general.php?page=wp-quantcast' ),  __( 'Settings', 'wp-quantcast' ) );
    61        
     61
    6262        return $links;
    6363    }
    64    
     64
    6565    public function qc_admin_menu_init() {
    6666        register_setting( 'wp-quantcast', 'wp-quantcast_settings' );
    67        
     67
    6868        add_settings_section(
    69             'qc_section', 
    70             '', 
    71             array( $this, 'qc_settings_section_callback' ), 
     69            'qc_section',
     70            '',
     71            array( $this, 'qc_settings_section_callback' ),
    7272            'wp-quantcast'
    7373        );
    74        
     74
    7575        add_settings_field(
    7676            'qc-pcode',
    77             __( 'Your Tracking ID (P-code)', 'wp-quantcast' ), 
    78             array( $this, 'qc_p_code_callback' ), 
    79             'wp-quantcast', 
    80             'qc_section' 
     77            __( 'Your Tracking ID (P-code)', 'wp-quantcast' ),
     78            array( $this, 'qc_p_code_callback' ),
     79            'wp-quantcast',
     80            'qc_section'
    8181        );
    82        
     82
    8383    }
    84    
     84
    8585    public function qc_admin_notice_pcode() {
    8686
    8787        $setting = get_option( 'wp-quantcast_settings' );
    88    
     88
    8989        if( ! $setting['qc-pcode'] ) {
    9090            $error = sprintf( '%s<a href="%s">%s</a>', __( 'Audience Analytics – by Quantcast requires Your Tracking ID (P-code) for data collection. ', 'wp-quantcast' ) , admin_url( 'options-general.php?page=wp-quantcast' ),  __( 'Settings', 'wp-quantcast' ) );
     
    9696        }
    9797    }
    98    
     98
    9999    public function qc_settings_section_callback() {
    100100        ?>
     
    104104        <?php
    105105    }
    106    
     106
    107107    public function qc_p_code_callback() {
    108108
     
    112112        <?php
    113113    }
    114    
     114
    115115    public function qc_add_admin_menu() {
    116116        add_options_page( __( 'Quantcast', 'wp-quantcast' ), __( 'Quantcast', 'wp-quantcast' ), 'manage_options', 'wp-quantcast', array( $this, 'quantcast_admin_page' ) );
    117117    }
    118    
     118
    119119    public function quantcast_admin_page() {
    120120        $setting = get_option( 'wp-quantcast_settings' );
     
    136136            </form>
    137137        </div>
    138     <?php       
     138    <?php
    139139    }
    140    
     140
    141141    public function qc_footer_scripts() {
    142142        $setting = get_option( 'wp-quantcast_settings' );
Note: See TracChangeset for help on using the changeset viewer.