Plugin Directory

Changeset 740291


Ignore:
Timestamp:
07/13/2013 02:22:57 PM (13 years ago)
Author:
Bit51
Message:

Version 2.4.6

Location:
share-center-pro
Files:
35 added
3 edited

Legend:

Unmodified
Added
Removed
  • share-center-pro/trunk/inc/admin.php

    r642686 r740291  
    202202                        <td colspan="2">
    203203                            <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 />
    205205                            <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>
    206206                            <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 />
    207207                            <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 />
    209209                            <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>
    210210                            <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 />
    212212                            <em><?php _e( 'If you are using WordPress SEO by Yoast you probably don\'t need this option.', $this->hook ); ?></em></p>
    213213                        </td>
  • share-center-pro/trunk/readme.txt

    r724400 r740291  
    66Requires at least: 3.0
    77Tested up to: 3.6
    8 Stable tag: 2.4.5
     8Stable tag: 2.4.6
    99
    1010Adds asynchronous (won't slow your site down) sharing buttons for Google plus, Facebook, Twitter, LinkedIn, Buffer, and Reddit.
     
    5959
    6060== Changelog ==
     61
     62= 2.4.6 =
     63* Updated Facebook code to fix like button
     64* Added better variable checking to reduce PHP warnings
    6165
    6266= 2.4.5 =
  • share-center-pro/trunk/share-center-pro.php

    r724400 r740291  
    44    Plugin URI: http://bit51.com/software/share-center-pro/
    55    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.5
     6    Version: 2.4.6
    77    Text Domain: share-center-pro
    88    Domain Path: /languages
     
    1010    Author URI: http://bit51.com
    1111    License: GPLv2
    12     Copyright 2012  Bit51.com  (email : [email protected])
     12    Copyright 2013  Bit51  (email : [email protected])
    1313*/
    1414
     
    113113
    114114            //Enqueue the stylesheet
    115             if ( $scpoptions['usecss'] == 1 ) {
     115            if ( isset( $scpoptions['usecss'] ) && $scpoptions['usecss'] == 1 ) {
    116116                add_action( 'wp_print_styles', array( &$this, 'scp_addstylesheet' ) );
    117117            }
    118118
    119             if ( $scpoptions['fbog'] == 1 || $scpoptions['tcmd'] == 1 ) {
     119            if ( ( isset( $scpoptions['fbog'] ) && $scpoptions['fbog'] == 1 ) || ( isset( $scpoptions['tcmd'] ) && $scpoptions['tcmd'] == 1 ) ) {
    120120
    121121                //Add facebook meta to header
     
    123123
    124124                //remove jetpack OpenGraph (if needed)
    125                 if ( $scpoptions['fbog'] == 1 ) {
     125                if ( isset( $scpoptions['fbog'] ) && $scpoptions['fbog'] == 1 ) {
    126126
    127127                    $active_plugins = get_option( 'active_plugins', array() );
     
    365365                    case 'Facebook':
    366366                        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";
    368368                        }
    369369                        break;
Note: See TracChangeset for help on using the changeset viewer.