Plugin Directory

Changeset 425415


Ignore:
Timestamp:
08/18/2011 03:26:01 PM (15 years ago)
Author:
Bloafer
Message:

Updated to vaersion 0.6

Location:
share-rail/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • share-rail/trunk/incs/footer.php

    r425056 r425415  
    77
    88$googleActive = get_option("share-rail-google-active", $shareRail->editFields["settings"]["share-rail-google-active"]["default"]);
     9$twitterActive = get_option("share-rail-twitter-active", $shareRail->editFields["settings"]["share-rail-twitter-active"]["default"]);
    910$stumbleActive = get_option("share-rail-stumble-active", $shareRail->editFields["settings"]["share-rail-stumble-active"]["default"]);
    1011$facebookActive = get_option("share-rail-facebook-active", $shareRail->editFields["settings"]["share-rail-facebook-active"]["default"]);
    1112$linkedinActive = get_option("share-rail-linkedin-active", $shareRail->editFields["settings"]["share-rail-linkedin-active"]["default"]);
     13
     14$googleSocialActive = get_option("share-rail-google-analytics-social", $shareRail->editFields["settings"]["share-rail-google-analytics-social"]["default"]);
     15
    1216
    1317
     
    6872        }
    6973    }
     74<?php if($googleSocialActive){ ?>
     75<?php   if($facebookActive){ ?>
     76        FB.Event.subscribe('edge.create', function(targetUrl) { _gaq.push(['_trackSocial', 'facebook', 'like', targetUrl]); });
     77        FB.Event.subscribe('edge.remove', function(targetUrl) { _gaq.push(['_trackSocial', 'facebook', 'unlike', targetUrl]); });
     78        FB.Event.subscribe('message.send', function(targetUrl) { _gaq.push(['_trackSocial', 'facebook', 'send', targetUrl]); });
     79<?php   } ?>
     80<?php   if($twitterActive){ ?>
     81        twttr.events.bind('tweet', function(event) { if (event) { _gaq.push(['_trackSocial', 'twitter', 'tweet', '<?php print $currentURL ?>']); } });
     82<?php   } ?>
     83<?php } ?>
    7084});
    7185</script>
  • share-rail/trunk/readme.txt

    r425071 r425415  
    44Plugin URI: http://studio.bloafer.com/wordpress-plugins/share-rail/
    55Description: Use this plugin to apply floating shares to your posts and pages.
    6 Version: 0.5
     6Version: 0.6
    77Author: Kerry James
    88Author URI: http://studio.bloafer.com/
     
    3535== Changelog ==
    3636
     37= 0.6 =
     38* Added GA Social Interaction Analytics
    3739= 0.5 =
    3840* Custom content rendering fixed
    39 
    4041= 0.4 =
    4142* Added the option to stop Google +1 script from loading twice
    4243* Added LinkedIn
    4344* Added Stumble Upon
    44 
    4545= 0.3 =
    4646* Added custom content option area to settings page
    4747* Added custom CSS option area to settings page
    48 
    4948= 0.2 =
    5049* Updated settings page
     
    5251* jQuery modifications added, these allow more flexability
    5352* Added screenshots as requested
    54 
    5553= 0.1 =
    56 
    5754Initial testing release
  • share-rail/trunk/share-rail.php

    r425080 r425415  
    44Plugin URI: http://studio.bloafer.com/wordpress-plugins/share-rail/
    55Description: Use this plugin to apply floating shares to your posts and pages.
    6 Version: 0.5
     6Version: 0.6
    77Author: Kerry James
    88Author URI: http://studio.bloafer.com/
     
    1414class shareRail {
    1515    var $pluginName = "Share Rail";
    16     var $version = "0.5";
     16    var $version = "0.6";
    1717    var $nonceField = "";
    1818    function shareRail(){
     
    2828        $this->editFields["settings"]["share-rail-twitter-username"] = array("default"=>false, "label"=>"Twitter Username", "type"=>"text", "description"=>"The username is required to allow tweets");
    2929        $this->editFields["settings"]["share-rail-facebook-active"] = array("default"=>false, "label"=>"Show Facebook", "type"=>"check", "description"=>"You can switch the Facebook feed on and off here");
     30        $this->editFields["settings"]["share-rail-google-analytics-social"] = array("default"=>false, "label"=>"Use Google Social Interaction Analytics", "type"=>"check", "description"=>"If you have Google Analytics installed you can use this to track social interactions");
    3031        $this->editFields["settings"]["share-rail-google-active"] = array("default"=>false, "label"=>"Show Google +1", "type"=>"check", "description"=>"You can switch the Google +1 feed on and off here");
    3132        $this->editFields["settings"]["share-rail-google-load"] = array("default"=>true, "label"=>"Load Google +1 API", "type"=>"check", "description"=>"You can switch the Google +1 API on and off here, if you already have a Google +1 plugin running untick this");
Note: See TracChangeset for help on using the changeset viewer.