Plugin Directory

Changeset 2860401


Ignore:
Timestamp:
02/05/2023 11:43:53 AM (2 years ago)
Author:
catchsquare
Message:

ver 2.2.5

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  
    44        jQuery( '.color-field' ).wpColorPicker();
    55}
     6
     7jQuery(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  
    3737
    3838        $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';
    4040
    4141        $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';
    4343
    4444        $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';
    4646
    4747        $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';
    4949
    5050        $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';
    5252
    5353        $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';
    5555
    5656        $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';
    5858
    5959        $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';
    6161
    6262        $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';
    6464
    6565        $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';
    6767
    6868        $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';
    7070
    7171        $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';
    7373
    7474        $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';
    7676
    7777        $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';
    7979
    8080        $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';
    8282
    8383        $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';
    8585
    8686        $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';
    8888
    8989        $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';
    9191
    9292        $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';
    9494
    9595        $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';
    9797
    9898        $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';
    100100
    101101        $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';
    103103
    104104        $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';
    106106
    107107?>
     
    428428
    429429        </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>
    452430<?php
    453431    }
     
    663641add_action('widgets_init', 'wpsw_register_social_network');
    664642
     643
  • wp-social-widget/trunk/readme.txt

    r2844459 r2860401  
    44Requires at least: 2.8
    55Tested up to: 6.1
    6 Stable tag: 2.2.4
     6Stable tag: 2.2.5
    77Donate link:https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=contact%40catchsquare%2ecom&lc=US&item_name=WP%20Social%20Widget&no_note=0&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHostedGuest
    88License: GPLv2 or later
     
    9898
    9999== Changelog ==
     100= 2.2.5 =
     101fixes click event
     102
    100103= 2.2.4 =
    101104escaping url
  • wp-social-widget/trunk/socials.php

    r2844459 r2860401  
    44Plugin URI: https://wordpress.org/plugins/wp-social-widget/
    55Description: A wordpress plugin to share links of social networking sites.
    6 Version: 2.2.4
     6Version: 2.2.5
    77Author: catchsquare
    88Author URI: http://catchsquare.com
     
    2323
    2424/*Define Constants for this plugin*/
    25 define( 'SOCIAL_NETWORK_VERSION', '2.2.4' );
     25define( 'SOCIAL_NETWORK_VERSION', '2.2.5' );
    2626define( 'SOCIAL_NETWORK_PATH', plugin_dir_path( __FILE__ ) );
    2727define( 'SOCIAL_NETWORK_URL', plugin_dir_url( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.