Changeset 2860401
- Timestamp:
- 02/05/2023 11:43:53 AM (2 years ago)
- Location:
- wp-social-widget
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
wp-social-widget/trunk/assets/js/social-color_picker.js
r1304922 r2860401 4 4 jQuery( '.color-field' ).wpColorPicker(); 5 5 } 6 7 jQuery(document).ready(function($) { 8 social_color_picker(); 9 10 jQuery(document).on('click', '.social-choose .outline', function(event) { 11 event.stopImmediatePropagation(); 12 var getTargetClassName = jQuery(this).attr('class').split(' '); 13 var uniqueTargetClassSingleName = getTargetClassName[1]; 14 var uniqueTargetClassName = getTargetClassName[2]; 15 16 if (jQuery(this).hasClass('active')) { 17 jQuery(this).removeClass('active'); 18 jQuery('.url-link.' + uniqueTargetClassName).removeClass('active'); 19 jQuery('input#show_hide_' + uniqueTargetClassSingleName).val('off'); 20 } else { 21 jQuery(this).addClass('active'); 22 jQuery('.url-link.' + uniqueTargetClassName).addClass('active'); 23 jQuery('input#show_hide_' + uniqueTargetClassSingleName).val('on'); 24 } 25 }); 26 }); -
wp-social-widget/trunk/inc/social-widget.php
r2844464 r2860401 37 37 38 38 $mail = isset($instance['mail']) ? $instance['mail'] : ''; 39 $show_hide_mail = ( '' != $instance['mail']) ? 'on' : 'off';39 $show_hide_mail = ( isset( $instance['mail']) && '' != $instance['mail']) ? 'on' : 'off'; 40 40 41 41 $rss = isset($instance['rss']) ? $instance['rss'] : ''; 42 $show_hide_rss = ('' != $instance['rss']) ? 'on' : 'off';42 $show_hide_rss = ( isset($instance['rss']) && '' != $instance['rss']) ? 'on' : 'off'; 43 43 44 44 $behance = isset($instance['behance']) ? $instance['behance'] : ''; 45 $show_hide_behance = ( '' != $instance['behance']) ? 'on' : 'off';45 $show_hide_behance = ( isset($instance['behance']) && '' != $instance['behance']) ? 'on' : 'off'; 46 46 47 47 $foursquare = isset($instance['foursquare']) ? $instance['foursquare'] : ''; 48 $show_hide_foursquare = ( '' != $instance['foursquare']) ? 'on' : 'off';48 $show_hide_foursquare = (isset($instance['foursquare']) && '' != $instance['foursquare']) ? 'on' : 'off'; 49 49 50 50 $skype = isset($instance['skype']) ? $instance['skype'] : ''; 51 $show_hide_skype = ( '' != $instance['skype']) ? 'on' : 'off';51 $show_hide_skype = (isset($instance['skype']) && '' != $instance['skype']) ? 'on' : 'off'; 52 52 53 53 $soundcloud = isset($instance['soundcloud']) ? $instance['soundcloud'] : ''; 54 $show_hide_soundcloud = ( '' != $instance['soundcloud']) ? 'on' : 'off';54 $show_hide_soundcloud = (isset($instance['soundcloud']) && '' != $instance['soundcloud']) ? 'on' : 'off'; 55 55 56 56 $vine = isset($instance['vine']) ? $instance['vine'] : ''; 57 $show_hide_vine = ( '' != $instance['vine']) ? 'on' : 'off';57 $show_hide_vine = (isset($instance['vine']) && '' != $instance['vine']) ? 'on' : 'off'; 58 58 59 59 $vk = isset($instance['vk']) ? $instance['vk'] : ''; 60 $show_hide_vk = ( '' != $instance['vk']) ? 'on' : 'off';60 $show_hide_vk = (isset($instance['vk']) && '' != $instance['vk']) ? 'on' : 'off'; 61 61 62 62 $xing = isset($instance['xing']) ? $instance['xing'] : ''; 63 $show_hide_xing = ( '' != $instance['xing']) ? 'on' : 'off';63 $show_hide_xing = (isset($instance['xing']) && '' != $instance['xing']) ? 'on' : 'off'; 64 64 65 65 $yelp = isset($instance['yelp']) ? $instance['yelp'] : ''; 66 $show_hide_yelp = ( '' != $instance['yelp']) ? 'on' : 'off';66 $show_hide_yelp = ( isset($instance['yelp']) && '' != $instance['yelp']) ? 'on' : 'off'; 67 67 68 68 $youtube = isset($instance['youtube']) ? $instance['youtube'] : ''; 69 $show_hide_youtube = ( '' != $instance['youtube']) ? 'on' : 'off';69 $show_hide_youtube = (isset($instance['youtube']) && '' != $instance['youtube']) ? 'on' : 'off'; 70 70 71 71 $dribbble = isset($instance['dribbble']) ? $instance['dribbble'] : ''; 72 $show_hide_dribbble = ( '' != $instance['dribbble']) ? 'on' : 'off';72 $show_hide_dribbble = (isset($instance['dribbble']) && '' != $instance['dribbble']) ? 'on' : 'off'; 73 73 74 74 $facebook = isset($instance['facebook']) ? $instance['facebook'] : ''; 75 $show_hide_facebook = ( '' != $instance['facebook']) ? 'on' : 'off';75 $show_hide_facebook = (isset($instance['facebook']) && '' != $instance['facebook']) ? 'on' : 'off'; 76 76 77 77 $flickr = isset($instance['flickr']) ? $instance['flickr'] : ''; 78 $show_hide_flickr = ( '' != $instance['flickr']) ? 'on' : 'off';78 $show_hide_flickr = (isset($instance['flickr']) && '' != $instance['flickr']) ? 'on' : 'off'; 79 79 80 80 $github = isset($instance['github']) ? $instance['github'] : ''; 81 $show_hide_github = ( '' != $instance['github']) ? 'on' : 'off';81 $show_hide_github = (isset($instance['github']) && '' != $instance['github']) ? 'on' : 'off'; 82 82 83 83 $google = isset($instance['google']) ? $instance['google'] : ''; 84 $show_hide_google = ( '' != $instance['google']) ? 'on' : 'off';84 $show_hide_google = (isset($instance['google']) && '' != $instance['google']) ? 'on' : 'off'; 85 85 86 86 $instagram = isset($instance['instagram']) ? $instance['instagram'] : ''; 87 $show_hide_instagram = ( '' != $instance['instagram']) ? 'on' : 'off';87 $show_hide_instagram = (isset($instance['instagram']) && '' != $instance['instagram']) ? 'on' : 'off'; 88 88 89 89 $linkedin = isset($instance['linkedin']) ? $instance['linkedin'] : ''; 90 $show_hide_linkedin = ( '' != $instance['linkedin']) ? 'on' : 'off';90 $show_hide_linkedin = (isset($instance['linkedin']) && '' != $instance['linkedin']) ? 'on' : 'off'; 91 91 92 92 $pinterest = isset($instance['pinterest']) ? $instance['pinterest'] : ''; 93 $show_hide_pinterest = ( '' != $instance['pinterest']) ? 'on' : 'off';93 $show_hide_pinterest = (isset($instance['pinterest']) && '' != $instance['pinterest']) ? 'on' : 'off'; 94 94 95 95 $stumbleupon = isset($instance['stumbleupon']) ? $instance['stumbleupon'] : ''; 96 $show_hide_stumbleupon = ( '' != $instance['stumbleupon']) ? 'on' : 'off';96 $show_hide_stumbleupon = (isset($instance['stumbleupon']) && '' != $instance['stumbleupon']) ? 'on' : 'off'; 97 97 98 98 $tumblr = isset($instance['tumblr']) ? $instance['tumblr'] : ''; 99 $show_hide_tumblr = ( '' != $instance['tumblr']) ? 'on' : 'off';99 $show_hide_tumblr = (isset($instance['tumblr']) && '' != $instance['tumblr']) ? 'on' : 'off'; 100 100 101 101 $twitter = isset($instance['twitter']) ? $instance['twitter'] : ''; 102 $show_hide_twitter = ( '' != $instance['twitter']) ? 'on' : 'off';102 $show_hide_twitter = (isset($instance['twitter']) && '' != $instance['twitter']) ? 'on' : 'off'; 103 103 104 104 $vimeo = isset($instance['vimeo']) ? $instance['vimeo'] : ''; 105 $show_hide_vimeo = ( '' != $instance['vimeo']) ? 'on' : 'off';105 $show_hide_vimeo = (isset($instance['vimeo']) && '' != $instance['vimeo']) ? 'on' : 'off'; 106 106 107 107 ?> … … 428 428 429 429 </div> 430 <script type="text/javascript">431 jQuery(document).ready(function($) {432 social_color_picker();433 434 jQuery(document).on('click', '.social-choose .outline', function(event) {435 event.stopImmediatePropagation();436 var getTargetClassName = jQuery(this).attr('class').split(' ');437 var uniqueTargetClassSingleName = getTargetClassName[1];438 var uniqueTargetClassName = getTargetClassName[2];439 440 if (jQuery(this).hasClass('active')) {441 jQuery(this).removeClass('active');442 jQuery('.url-link.' + uniqueTargetClassName).removeClass('active');443 jQuery('input#show_hide_' + uniqueTargetClassSingleName).val('off');444 } else {445 jQuery(this).addClass('active');446 jQuery('.url-link.' + uniqueTargetClassName).addClass('active');447 jQuery('input#show_hide_' + uniqueTargetClassSingleName).val('on');448 }449 });450 });451 </script>452 430 <?php 453 431 } … … 663 641 add_action('widgets_init', 'wpsw_register_social_network'); 664 642 643 -
wp-social-widget/trunk/readme.txt
r2844459 r2860401 4 4 Requires at least: 2.8 5 5 Tested up to: 6.1 6 Stable tag: 2.2. 46 Stable tag: 2.2.5 7 7 Donate link:https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=contact%40catchsquare%2ecom&lc=US&item_name=WP%20Social%20Widget&no_note=0¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest 8 8 License: GPLv2 or later … … 98 98 99 99 == Changelog == 100 = 2.2.5 = 101 fixes click event 102 100 103 = 2.2.4 = 101 104 escaping url -
wp-social-widget/trunk/socials.php
r2844459 r2860401 4 4 Plugin URI: https://wordpress.org/plugins/wp-social-widget/ 5 5 Description: A wordpress plugin to share links of social networking sites. 6 Version: 2.2. 46 Version: 2.2.5 7 7 Author: catchsquare 8 8 Author URI: http://catchsquare.com … … 23 23 24 24 /*Define Constants for this plugin*/ 25 define( 'SOCIAL_NETWORK_VERSION', '2.2. 4' );25 define( 'SOCIAL_NETWORK_VERSION', '2.2.5' ); 26 26 define( 'SOCIAL_NETWORK_PATH', plugin_dir_path( __FILE__ ) ); 27 27 define( 'SOCIAL_NETWORK_URL', plugin_dir_url( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.