Changeset 740291
- Timestamp:
- 07/13/2013 02:22:57 PM (13 years ago)
- Location:
- share-center-pro
- Files:
-
- 35 added
- 3 edited
-
tags/2.4.6 (added)
-
tags/2.4.6/inc (added)
-
tags/2.4.6/inc/admin.php (added)
-
tags/2.4.6/inc/index.php (added)
-
tags/2.4.6/inc/setup.php (added)
-
tags/2.4.6/inc/share.js (added)
-
tags/2.4.6/inc/style.css (added)
-
tags/2.4.6/inc/widget.php (added)
-
tags/2.4.6/index.php (added)
-
tags/2.4.6/languages (added)
-
tags/2.4.6/languages/index.php (added)
-
tags/2.4.6/languages/share-center-pro-es_ES.mo (added)
-
tags/2.4.6/languages/share-center-pro-es_ES.po (added)
-
tags/2.4.6/languages/share-center-pro.pot (added)
-
tags/2.4.6/languages/share-center-pro_sk_SK.mo (added)
-
tags/2.4.6/languages/share-center-pro_sk_SK.po (added)
-
tags/2.4.6/lib (added)
-
tags/2.4.6/lib/bit51 (added)
-
tags/2.4.6/lib/bit51/bit51.css (added)
-
tags/2.4.6/lib/bit51/bit51.php (added)
-
tags/2.4.6/lib/bit51/images (added)
-
tags/2.4.6/lib/bit51/images/bit51-small.png (added)
-
tags/2.4.6/lib/bit51/images/bit51.png (added)
-
tags/2.4.6/lib/bit51/images/facebook.png (added)
-
tags/2.4.6/lib/bit51/images/google.png (added)
-
tags/2.4.6/lib/bit51/images/index.php (added)
-
tags/2.4.6/lib/bit51/images/subscribe.png (added)
-
tags/2.4.6/lib/bit51/images/twitter.png (added)
-
tags/2.4.6/lib/bit51/index.php (added)
-
tags/2.4.6/lib/index.php (added)
-
tags/2.4.6/readme.txt (added)
-
tags/2.4.6/screenshot-1.png (added)
-
tags/2.4.6/screenshot-2.png (added)
-
tags/2.4.6/screenshot-3.png (added)
-
tags/2.4.6/share-center-pro.php (added)
-
trunk/inc/admin.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/share-center-pro.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
share-center-pro/trunk/inc/admin.php
r642686 r740291 202 202 <td colspan="2"> 203 203 <h4><?php _e( 'Other Options', $this->hook ); ?></h4> 204 <p><input type="checkbox" name="bit51_scp[usecss]" id="usecss" value="1" <?php if ( $scpoptions['usecss'] == 1 ) echo "checked"; ?> /> <label for="single"> <?php _e( 'Use provided CSS', $this->hook ); ?></label><br />204 <p><input type="checkbox" name="bit51_scp[usecss]" id="usecss" value="1" <?php if ( isset( $scpoptions['usecss'] ) && $scpoptions['usecss'] == 1 ) echo "checked"; ?> /> <label for="single"> <?php _e( 'Use provided CSS', $this->hook ); ?></label><br /> 205 205 <em><?php _e( 'Note: Turning off this option will remove the CSS stylesheet provided by the plugin allowing you to style it your own way.', $this->hook ); ?></em></p> 206 206 <p><label for"header"><?php _e( 'Enter text to appear before the sharing buttons (if needed)', $this->hook ); ?></label> <input name="bit51_scp[header]" id="header" value="<?php echo $scpoptions['header']; ?>" type="text"><br /> 207 207 <label for"fbappid"><?php _e( 'Enter your Facebook App ID (if you have one)', $this->hook ); ?></label> <input name="bit51_scp[fbappid]" id="fbappid" value="<?php echo $scpoptions['fbappid']; ?>" type="text"><br /></p> 208 <p><input type="checkbox" name="bit51_scp[fbog]" id="fbog" value="1" <?php if ( $scpoptions['fbog'] == 1 ) echo "checked"; ?> /> <label for="single"> <?php _e( 'Use Facebook OpenGraph meta data', $this->hook ); ?></label><br />208 <p><input type="checkbox" name="bit51_scp[fbog]" id="fbog" value="1" <?php if ( isset( $scpoptions['fbog'] ) && $scpoptions['fbog'] == 1 ) echo "checked"; ?> /> <label for="single"> <?php _e( 'Use Facebook OpenGraph meta data', $this->hook ); ?></label><br /> 209 209 <em><?php _e( 'Note that using Facebook OpenGraph here will override Jetpack\'s OpenGraph if you have installed it. If you are using WordPress SEO by Yoast you probably don\'t need this option.', $this->hook ); ?></em></p> 210 210 <p><label for"twitteruser"><?php _e( 'Enter your twitter username (for link tracking and twitter card meta data)', $this->hook ); ?></label> <input name="bit51_scp[twitteruser]" id="twitteruser" value="<?php echo $scpoptions['twitteruser']; ?>" type="text"></p> 211 <p><input type="checkbox" name="bit51_scp[tcmd]" id="fbog" value="1" <?php if ( $scpoptions['tcmd'] == 1 ) echo "checked"; ?> /> <label for="single"> <?php _e( 'Use Twitter card meta data', $this->hook ); ?></label><br />211 <p><input type="checkbox" name="bit51_scp[tcmd]" id="fbog" value="1" <?php if ( isset( $scpoptions['tcmd'] ) && $scpoptions['tcmd'] == 1 ) echo "checked"; ?> /> <label for="single"> <?php _e( 'Use Twitter card meta data', $this->hook ); ?></label><br /> 212 212 <em><?php _e( 'If you are using WordPress SEO by Yoast you probably don\'t need this option.', $this->hook ); ?></em></p> 213 213 </td> -
share-center-pro/trunk/readme.txt
r724400 r740291 6 6 Requires at least: 3.0 7 7 Tested up to: 3.6 8 Stable tag: 2.4. 58 Stable tag: 2.4.6 9 9 10 10 Adds asynchronous (won't slow your site down) sharing buttons for Google plus, Facebook, Twitter, LinkedIn, Buffer, and Reddit. … … 59 59 60 60 == Changelog == 61 62 = 2.4.6 = 63 * Updated Facebook code to fix like button 64 * Added better variable checking to reduce PHP warnings 61 65 62 66 = 2.4.5 = -
share-center-pro/trunk/share-center-pro.php
r724400 r740291 4 4 Plugin URI: http://bit51.com/software/share-center-pro/ 5 5 Description: Add common social sharing services in a widget to be used anywhere on your page or at the bottom of your posts or other content. 6 Version: 2.4. 56 Version: 2.4.6 7 7 Text Domain: share-center-pro 8 8 Domain Path: /languages … … 10 10 Author URI: http://bit51.com 11 11 License: GPLv2 12 Copyright 201 2 Bit51.com(email : [email protected])12 Copyright 2013 Bit51 (email : [email protected]) 13 13 */ 14 14 … … 113 113 114 114 //Enqueue the stylesheet 115 if ( $scpoptions['usecss'] == 1 ) {115 if ( isset( $scpoptions['usecss'] ) && $scpoptions['usecss'] == 1 ) { 116 116 add_action( 'wp_print_styles', array( &$this, 'scp_addstylesheet' ) ); 117 117 } 118 118 119 if ( $scpoptions['fbog'] == 1 || $scpoptions['tcmd'] == 1) {119 if ( ( isset( $scpoptions['fbog'] ) && $scpoptions['fbog'] == 1 ) || ( isset( $scpoptions['tcmd'] ) && $scpoptions['tcmd'] == 1 ) ) { 120 120 121 121 //Add facebook meta to header … … 123 123 124 124 //remove jetpack OpenGraph (if needed) 125 if ( $scpoptions['fbog'] == 1 ) {125 if ( isset( $scpoptions['fbog'] ) && $scpoptions['fbog'] == 1 ) { 126 126 127 127 $active_plugins = get_option( 'active_plugins', array() ); … … 365 365 case 'Facebook': 366 366 if ( $scpoptions['facebook'] == 1 ) { 367 $buttons .= "<div class=\"scpFacebook\">< fb:like href=\"" . urlencode( $share_url ) . "\" send=\"false\" layout=\"box_count\" width=\"450\" show_faces=\"false\" font=\"arial\"></fb:like></div>\n";367 $buttons .= "<div class=\"scpFacebook\"><div class=\"fb-like\" data-href=\"" . urldecode( $share_url ) . "\" data-send=\"false\" data-layout=\"box_count\" data-width=\"450\" data-show-faces=\"false\"></div></div>\n"; 368 368 } 369 369 break;
Note: See TracChangeset
for help on using the changeset viewer.