Changeset 2451128
- Timestamp:
- 01/06/2021 09:37:12 AM (5 years ago)
- Location:
- jackshare/trunk
- Files:
-
- 3 edited
-
inc/class-jackshare-functions.php (modified) (7 diffs)
-
jackshare.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
jackshare/trunk/inc/class-jackshare-functions.php
r2400018 r2451128 39 39 40 40 41 if ( $jackshare_options['jackshare_facebook_meta']== true ) : ?>41 if ( isset($jackshare_options['jackshare_facebook_meta']) == true ) : ?> 42 42 43 43 <!-- JACKSHARE ENABLE FACEBOOK OPEN GRAPH TAGS --> … … 64 64 global $post; 65 65 66 $twitter_via = $jackshare_options['jackshare_twitter_via'];66 $twitter_via = $jackshare_options['jackshare_twitter_via']; 67 67 68 68 69 69 //Current position selected by user 70 $position = $jackshare_options['jackshare_position'];70 $position = $jackshare_options['jackshare_position']; 71 71 72 72 // Display Names of social media 73 $display_names = $jackshare_options['jackshare_enable_social_names'];73 $display_names = $jackshare_options['jackshare_enable_social_names']; 74 74 75 75 // Display the selected theme and make them lowercase to use it as css class … … 96 96 97 97 // Social media enabled from dashboard 98 $enable_fb = $jackshare_options['jackshare_facebook'];99 $enable_messenger = $jackshare_options['jackshare_messenger'];100 $enable_twitter = $jackshare_options['jackshare_twitter'];101 $enable_pinterest = $jackshare_options['jackshare_pinterest'];102 $enable_linkedin = $jackshare_options['jackshare_linkedin'];103 $enable_viber = $jackshare_options['jackshare_viber'];104 $enable_whatsapp = $jackshare_options['jackshare_whatsapp'];98 $enable_fb = isset($jackshare_options['jackshare_facebook']) ? $jackshare_options['jackshare_facebook'] : 0; 99 $enable_messenger = isset($jackshare_options['jackshare_messenger']) ? $jackshare_options['jackshare_messenger'] : 0; 100 $enable_twitter = isset($jackshare_options['jackshare_twitter']) ? $jackshare_options['jackshare_twitter'] : 0; 101 $enable_pinterest = isset($jackshare_options['jackshare_pinterest']) ? $jackshare_options['jackshare_pinterest'] : 0; 102 $enable_linkedin = isset($jackshare_options['jackshare_linkedin']) ? $jackshare_options['jackshare_linkedin'] : 0 ; 103 $enable_viber = isset($jackshare_options['jackshare_viber']) ? $jackshare_options['jackshare_viber'] : 0; 104 $enable_whatsapp = isset($jackshare_options['jackshare_whatsapp']) ? $jackshare_options['jackshare_whatsapp'] : 0; 105 105 106 106 // Get the current post's URL that will be shared … … 145 145 146 146 // Create the share links for Facebook, Twitter, Pinterest and Linkedin 147 $jackshare_pinterest = ""; 147 148 $jackshare_fb = sprintf( 'https://www.facebook.com/dialog/share?app_id=%2$s&display=popup&href=%1$s&redirect_uri=%1$s', $jackshare_post_url, $fb_app_id ); 148 149 $jackshare_messenger = sprintf( 'http://www.facebook.com/dialog/send?app_id=%1$s&link=%2$s&redirect_uri=%2$s&display=popup', $fb_app_id, $jackshare_post_url ); … … 185 186 $response = wp_remote_retrieve_body( $request ); 186 187 $share_data = json_decode( $response ); 187 188 if ( !empty( $share_data ) ) { 188 $share_number = 0; 189 $reaction_number = 0; 190 $comment_count = 0; 191 192 if ( !empty( $share_data ) && !$share_data->error ) { 189 193 190 194 $share_number = intval($share_data->engagement->share_count); … … 230 234 } 231 235 236 $share_number_element = ""; 232 237 if ( $share_number > 0 ){ 233 238 $share_number_element = '<span class="share-number">'. $share_number .'</span>'; … … 289 294 290 295 291 292 293 294 295 296 297 298 299 300 301 302 296 ?> -
jackshare/trunk/jackshare.php
r2400021 r2451128 5 5 * Plugin URI: https://wordpress.org/plugins/jackshare 6 6 * Description: Super simple Social media sharing buttons with minimal design and lightning fast performance. 7 * Version: 2.1. 57 * Version: 2.1.6 8 8 * License: GPL v3 9 9 * License URI: http://www.gnu.org/licenses/gpl-3.0.txt … … 22 22 //Plugin name and version 23 23 define( 'JACKSHARE_PLUGIN_NAME', 'Jackshare'); 24 define( 'JACKSHARE_PLUGIN_VERSION', 'v2.1. 5');24 define( 'JACKSHARE_PLUGIN_VERSION', 'v2.1.6'); 25 25 26 26 define( 'JACKSHARE_PLUGIN_FILE', __FILE__ ); -
jackshare/trunk/readme.txt
r2400024 r2451128 4 4 Tags: facebook, social sharing, twitter, social media, share buttons, social share counter 5 5 Requires at least: 4.0 6 Tested up to: 5. 5.17 Stable tag: 2.1. 56 Tested up to: 5.6 7 Stable tag: 2.1.6 8 8 License: GPL v3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 31 31 32 32 == Changelog == 33 34 = 2.1.6 = 35 36 * Code Optimization 33 37 34 38 = 2.1.5 =
Note: See TracChangeset
for help on using the changeset viewer.