Plugin Directory

Changeset 1231087


Ignore:
Timestamp:
08/26/2015 10:20:54 AM (10 years ago)
Author:
StatCounter
Message:

2.0 upgrade

Location:
official-statcounter-plugin-for-wordpress/tags/2.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • official-statcounter-plugin-for-wordpress/tags/2.0/StatCounter-Wordpress-Plugin.php

    r1110995 r1231087  
    22/*
    33 * Plugin Name: Official StatCounter Plugin
    4  * Version: 1.7.1
     4 * Version: 2.0
    55 * Plugin URI: http://statcounter.com/
    66 * Description: Adds the StatCounter tracking code to your blog. <br>To get setup: 1) Activate this plugin  2) Enter your StatCounter Project ID and Security Code in the <a href="options-general.php?page=StatCounter-Wordpress-Plugin.php"><strong>options page</strong></a>.
     
    2727add_action('admin_menu' , 'add_sc_option_page' );
    2828add_action( 'admin_menu', 'statcounter_admin_menu' );
     29add_action('wp_head', 'addToTags');
    2930
    3031function statcounter_admin_menu() {
     
    241242}
    242243
     244function addToTags($pid){
     245   if (is_single()) {
     246       global $post;
     247       $queried_post = get_post($pid);
     248       $authorId = $queried_post->post_author;
     249       ?>
     250        <script type="text/javascript">
     251            var _statcounter = _statcounter || [];
     252            _statcounter.push({"tags": {"author": "<?php the_author_meta( 'nickname', $authorId); ?>"}});
     253        </script>
     254       <?php       
     255   }
     256}
     257
    243258?>
  • official-statcounter-plugin-for-wordpress/tags/2.0/readme.txt

    r1219261 r1231087  
    55Requires at least: 2.0.2
    66Tested up to: 4.3
    7 Stable tag: 1.7.1
     7Stable tag: 2.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7070
    7171== Changelog ==
     72
     73= 2.0 =
     74
     75StatCounter Tags supported.
    7276
    7377= 1.7.1 =
     
    149153Upgrade to allow for fully functioning PayPal upgrade options.
    150154
     155
Note: See TracChangeset for help on using the changeset viewer.