Changeset 425415
- Timestamp:
- 08/18/2011 03:26:01 PM (15 years ago)
- Location:
- share-rail/trunk
- Files:
-
- 3 edited
-
incs/footer.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
-
share-rail.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
share-rail/trunk/incs/footer.php
r425056 r425415 7 7 8 8 $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"]); 9 10 $stumbleActive = get_option("share-rail-stumble-active", $shareRail->editFields["settings"]["share-rail-stumble-active"]["default"]); 10 11 $facebookActive = get_option("share-rail-facebook-active", $shareRail->editFields["settings"]["share-rail-facebook-active"]["default"]); 11 12 $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 12 16 13 17 … … 68 72 } 69 73 } 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 } ?> 70 84 }); 71 85 </script> -
share-rail/trunk/readme.txt
r425071 r425415 4 4 Plugin URI: http://studio.bloafer.com/wordpress-plugins/share-rail/ 5 5 Description: Use this plugin to apply floating shares to your posts and pages. 6 Version: 0. 56 Version: 0.6 7 7 Author: Kerry James 8 8 Author URI: http://studio.bloafer.com/ … … 35 35 == Changelog == 36 36 37 = 0.6 = 38 * Added GA Social Interaction Analytics 37 39 = 0.5 = 38 40 * Custom content rendering fixed 39 40 41 = 0.4 = 41 42 * Added the option to stop Google +1 script from loading twice 42 43 * Added LinkedIn 43 44 * Added Stumble Upon 44 45 45 = 0.3 = 46 46 * Added custom content option area to settings page 47 47 * Added custom CSS option area to settings page 48 49 48 = 0.2 = 50 49 * Updated settings page … … 52 51 * jQuery modifications added, these allow more flexability 53 52 * Added screenshots as requested 54 55 53 = 0.1 = 56 57 54 Initial testing release -
share-rail/trunk/share-rail.php
r425080 r425415 4 4 Plugin URI: http://studio.bloafer.com/wordpress-plugins/share-rail/ 5 5 Description: Use this plugin to apply floating shares to your posts and pages. 6 Version: 0. 56 Version: 0.6 7 7 Author: Kerry James 8 8 Author URI: http://studio.bloafer.com/ … … 14 14 class shareRail { 15 15 var $pluginName = "Share Rail"; 16 var $version = "0. 5";16 var $version = "0.6"; 17 17 var $nonceField = ""; 18 18 function shareRail(){ … … 28 28 $this->editFields["settings"]["share-rail-twitter-username"] = array("default"=>false, "label"=>"Twitter Username", "type"=>"text", "description"=>"The username is required to allow tweets"); 29 29 $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"); 30 31 $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"); 31 32 $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.