Plugin Directory

Changeset 3436359


Ignore:
Timestamp:
01/10/2026 02:07:06 AM (3 months ago)
Author:
pickplugins
Message:

version update

Location:
social-share-button/trunk
Files:
53 edited

Legend:

Unmodified
Added
Removed
  • social-share-button/trunk/assets/front/js/scripts.js

    r2076431 r3436359  
    1 jQuery(document).ready(function($)
    2     {
     1jQuery(document).ready(function ($) {
    32
    4        
    5         $(document).on('click', '.wp-share-button-popup .close', function(){
    6            
    7             $(this).parent().parent().fadeOut();
    8            
    9            
    10             })         
    113
    12         $(document).on('click', '.wp-share-button .share-button-more ', function(){
    13            
    14             var post_id = $(this).attr("post-id");
    15            
    16             $('.wp-share-button-popup-'+post_id).fadeIn();
    17            
    18            
    19             })     
    20        
    21        
    22        
     4    $(document).on('click', '.wp-share-button-popup .close', function () {
    235
    24         $(document).on('click', '.wp-share-button .share-button', function(){
    25                
    26                 //alert('Hello');
    27                
    28                 var post_id = $(this).attr("post-id");
    29                 var site_id = $(this).attr("id");           
    30                 var count = parseInt($(this).children('.button-count').text());
    31                
    32                
    33                
    34                
    35                 $.ajax(
    36                     {
    37                     type:"POST",
    38                     context:this,
    39                     url:social_share_button_ajax.social_share_button_ajaxurl,
    40                     data:{action:"social_share_button_ajax_update_count",site_id:site_id,post_id:post_id},
    41                     success:function(data)
    42                         {
    43                             $(this).children('.button-count').text(count+1);
    44                             $(this).prop('disabled',true);
    45                             $(this).css('cursor','not-allowed');
     6        $(this).parent().parent().fadeOut();
    467
    47                            
    48                         }
    49                     })
    50                
    51                
    52                
    53                
    54                
    55                
    56             }) 
     8
     9    })
     10
     11    $(document).on('click', '.wp-share-button .share-button-more ', function () {
     12
     13        var post_id = $(this).attr("post-id");
     14
     15        $('.wp-share-button-popup-' + post_id).fadeIn();
     16
     17
     18    })
    5719
    5820
    5921
    60     });
    61    
    62    
    63    
    64    
    6522
    66    
     23    $(document).on('click', '.wp-share-button .share-button', function () {
     24
     25        //alert('Hello');
     26
     27        var post_id = $(this).attr("post-id");
     28        var site_id = $(this).attr("id");
     29        var nonce = $(this).attr("data-nonce");
     30        var count = parseInt($(this).children('.button-count').text());
     31
     32        console.log(nonce);
     33
     34
     35
     36        $.ajax(
     37            {
     38                type: "POST",
     39                context: this,
     40                url: social_share_button_ajax.social_share_button_ajaxurl,
     41                data: { action: "social_share_button_ajax_update_count", site_id: site_id, post_id: post_id, nonce: nonce },
     42                success: function (data) {
     43                    $(this).children('.button-count').text(count + 1);
     44                    $(this).prop('disabled', true);
     45                    $(this).css('cursor', 'not-allowed');
     46
     47
     48                }
     49            })
     50
     51
     52
     53
     54
     55
     56    })
     57
     58
     59
     60});
     61
     62
     63
     64
     65
  • social-share-button/trunk/assets/settings-tabs/settings-tabs.css

    r3428462 r3436359  
    177177
    178178
    179 .radio-img {
    180 
    181     display: flex;
    182     flex-wrap: wrap;
    183 }
     179
    184180
    185181
     
    691687.range-input {}
    692688
    693 .range-input .range-value {
    694     display: inline-block;
    695     vertical-align: top;
    696     margin: 0 0;
    697     padding: 4px 10px;
    698     background: #eee;
    699 }
     689        .range-input .range-value {
     690          display: inline-block;
     691          vertical-align: top;
     692          margin: 0 0;
     693          padding: 4px 10px;
     694          background: #eee;
     695        }
    700696
    701697.text-icon {}
    702698
    703 .text-icon .icon {
    704     /* width: 30px; */
    705     background: #ddd;
    706     /* height: 28px; */
    707     display: inline-block;
    708     vertical-align: top;
    709     text-align: center;
    710     font-size: 14px;
    711     padding: 5px 10px;
    712     line-height: normal;
    713 }
     699        .text-icon .icon {
     700          /* width: 30px; */
     701          background: #ddd;
     702          /* height: 28px; */
     703          display: inline-block;
     704          vertical-align: top;
     705          text-align: center;
     706          font-size: 14px;
     707          padding: 5px 10px;
     708          line-height: normal;
     709        }
    714710
    715711
  • social-share-button/trunk/includes/class-functions.php

    r2076431 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
  • social-share-button/trunk/includes/class-migrate.php

    r3428462 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
  • social-share-button/trunk/includes/class-settings.php

    r2076431 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74if ( ! defined('ABSPATH')) exit;  // if direct access
    85
     
    2421        $social_share_button_migrate_2_1_6 = get_option('social_share_button_migrate_2_1_6');
    2522       
    26         add_menu_page('social_share_button', __('Social Share Button','social-share-button'), 'manage_options', 'social-share-button', array( $this, 'settings_page' ),'dashicons-share');
     23        add_menu_page('Social Share Button', __('Social Share Button','social-share-button'), 'manage_options', 'social-share-button', array( $this, 'settings_page' ),'dashicons-share');
    2724       
    2825
    2926        if($social_share_button_migrate_2_1_1!='done')
    30         add_submenu_page( 'social_share_button', __( 'Migrate', 'social-share-button' ), __( 'Migrate', 'social-share-button' ), 'manage_options', 'social_share_button_migrate', array( $this, 'migrate' ) );
     27        add_submenu_page( 'Social Share Button', __( 'Migrate', 'social-share-button' ), __( 'Migrate', 'social-share-button' ), 'manage_options', 'social_share_button_migrate', array( $this, 'migrate' ) );
    3128
    3229        if($social_share_button_migrate_2_1_6!='done')
  • social-share-button/trunk/includes/functions-settings.php

    r3428462 r3436359  
    794794        <h3>Provide your feedback</h3>
    795795
    796         <a class="button" href="https://wordpress.org/support/plugin/social-share-button/reviews/?filter=5" target="_blank">Submit Reviews</a> <a class="button" href="https://wordpress.org/support/plugin/social-share-button/#new-topic-0" target="_blank">Ask wordpress.org</a><p>We spent thousand+ hours to development on this plugin, please submit your reviews wisely.</p><p>If you have any issue with this plugin please submit our forums or contact our support first.</p><p class="description">Your feedback and reviews are most important things to keep our development on track. If you have time please submit us five star <span style="color: orange"><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i></span> reviews.</p>
     796        <a class="button" href="https://wordpress.org/support/plugin/social-share-button/reviews/" target="_blank">Submit Reviews</a> <a class="button" href="https://wordpress.org/support/plugin/social-share-button/#new-topic-0" target="_blank">Ask wordpress.org</a><p>We spent thousand+ hours to development on this plugin, please submit your reviews wisely.</p><p>If you have any issue with this plugin please submit our forums or contact our support first.</p><p class="description">Your feedback and reviews are most important things to keep our development on track. If you have time please submit us five star <span style="color: orange"><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i><i class="fas fa-star"></i></span> reviews.</p>
    797797
    798798        <?php
  • social-share-button/trunk/includes/functions.php

    r3428462 r3436359  
    11<?php
    2 /*
    3 * @Author       ParaTheme
    4 * Copyright:    2015 ParaTheme
    5 */
     2
    63if ( ! defined('ABSPATH')) exit;  // if direct access
    74
     
    318315
    319316function social_share_button_ajax_update_count(){
     317
     318        $nonce = sanitize_text_field(wp_unslash($_POST['nonce']));
     319
     320
     321        if (wp_verify_nonce($nonce, 'social_share_button_nonce')) {
     322
     323            die();
     324        }
     325
     326
    320327        $current_site_id = isset($_POST['site_id']) ? sanitize_text_field(wp_unslash($_POST['site_id'])) : '';
    321         $post_id = isset($_POST['post_id']) ? (int)wp_unslash($_POST['post_id']) : '';
     328        $post_id = isset($_POST['post_id']) ? (int)sanitize_text_field(wp_unslash($_POST['post_id'])) : '';
    322329       
    323330        $social_share_button_sites = get_option( 'social_share_button_sites' );
  • social-share-button/trunk/readme.txt

    r3428462 r3436359  
    22    Contributors: pickplugins
    33    Donate link: http://pickplugins.com
    4     Tags: Share, social share buttons, social share button, share button, social share, social share plugin
     4    Tags: social share buttons, social share button, share button, social share, social share plugin
    55    Requires at least: 4.1
    66    Tested up to: 6.9
    7     Stable tag: 2.1.13
     7    Stable tag: 2.1.14
    88    License: GPLv2 or later
    99    License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7878
    7979== Changelog ==
     80
     81= 2.1.14 =
     82* 2026-01-10 - fix - nonce issue fixed.
    8083
    8184= 2.1.12 =
  • social-share-button/trunk/social-share-button.php

    r3428462 r3436359  
    44Plugin URI: http://pickplugins.com
    55Description: Awesome Share Button.
    6 Version: 2.1.13
     6Version: 2.1.14
    77Author: PickPlugins
    88Author URI: http://pickplugins.com
     
    2222        define('social_share_button_plugin_dir', plugin_dir_path( __FILE__ ) );
    2323        define('social_share_button_plugin_name', "Social Share Button" );
    24         define('social_share_button_plugin_version', '2.1.13' );
     24        define('social_share_button_plugin_version', '2.1.14' );
    2525
    2626
  • social-share-button/trunk/templates/buttons.php

    r2076431 r3436359  
    44
    55
    6 $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';
     6ob_start();
    77
    8 $html_button.= '<span class="button-icon">'.$site_info['icon'].'</span>';
    9 $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
     8?>
     9<a target="_blank" href="<?php echo esc_url($url); ?>" post-id="<?php echo esc_attr(get_the_ID()); ?>" class="share-button share-button-<?php echo esc_attr(get_the_ID()); ?> <?php echo esc_attr($site_info['id']); ?>" id="<?php echo esc_attr($site_info['id']); ?>" data-nonce="<?php echo esc_attr( wp_create_nonce( 'social_share_button_nonce' ) ); ?>">
    1010
     11<span class="button-icon"><?php echo esc_html($site_info['icon']); ?></span>
     12<span class="button-name"><?php echo esc_html($site_info['title']); ?></span>
    1113
     14<?php
    1215if($social_share_button_count_format=='short'){
    13 
    14 
    1516    $share_count_value = social_share_button_number_short($share_count_value);
    1617    }
     18?>
     19<span class="button-count"><?php echo esc_html($share_count_value); ?></span>
    1720
     21</a>
    1822
    19 $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
     23<?php
    2024
    21 $html_button.= '</a>';
     25$html_button .= ob_get_clean();
  • social-share-button/trunk/templates/count.php

    r2076431 r3436359  
    2020
    2121
    22 $html_first.= '<span class="button-count">'.$share_count_value.'</span>';
     22$html_first.= '<span class="button-count">'.esc_html($share_count_value).'</span>';
  • social-share-button/trunk/templates/icon.php

    r2076431 r3436359  
    22if ( ! defined('ABSPATH')) exit;  // if direct access
    33
    4 $html_first.= '<span class="button-icon">'.$site_info['icon'].'</span>';
     4$html_first.= '<span class="button-icon">'.wp_kses_post($site_info['icon']).'</span>';
  • social-share-button/trunk/templates/more.php

    r2076431 r3436359  
    22if ( ! defined('ABSPATH')) exit;  // if direct access
    33
    4 $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     4$html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    55$html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    66$html_more_button.= '</a>';
  • social-share-button/trunk/templates/name.php

    r2076431 r3436359  
    22if ( ! defined('ABSPATH')) exit;  // if direct access
    33
    4 $html_first.= '<span class="button-name">'.$site_info['title'].'</span>';
     4$html_first.= '<span class="button-name">'.wp_kses_post($site_info['title']).'</span>';
  • social-share-button/trunk/templates/popup-buttons.php

    r2076431 r3436359  
    99
    1010
    11 $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';
    1211
    13 $html_popup_buttons.= '<span class="button-icon">'.$site_info['icon'].'</i>
    14 </span>';
    15 $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';
    16 $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
     12ob_start();
    1713
    18 $html_popup_buttons.= '</a>';
     14?>
     15<a target="_blank" href="<?php echo esc_url($url); ?>" post-id="<?php echo esc_attr(get_the_ID()); ?>" class="share-button share-button-<?php echo esc_attr(get_the_ID()); ?> <?php echo esc_attr($site_info['id']); ?>" id="<?php echo esc_attr($site_info['id']); ?>" >
     16
     17<span class="button-icon"><?php echo wp_kses_post($site_info['icon']); ?></span>
     18<span class="button-name"><?php echo wp_kses_post($site_info['title']); ?></span>
     19<span class="button-count"><?php echo wp_kses_post($share_count_value); ?></span>               
     20
     21</a>
     22<?php
     23
     24$html_popup_buttons .= ob_get_clean();
  • social-share-button/trunk/themes/theme1/index.php

    r1765288 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
    96
    107
    11 //echo '<pre>'.var_export(get_permalink(), true).'</pre>';
    12 //echo '<pre>'.var_export(get_the_title(), true).'</pre>';
     8
    139include social_share_button_plugin_dir.'/templates/variables.php';
    1410
    15     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     11    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1612   
    1713    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    2521
    2622
    27         $url = strtr($site_info['share_url'], $vars);
     23        $url = isset($site_info['share_url']) ? strtr($site_info['share_url'], $vars) : '';
    2824
    29         $site_id = $site_info['id'];
     25        $site_id = isset($site_info['id']) ? $site_info['id'] : '';
    3026       
    3127       
     
    6157            //include social_share_button_plugin_dir.'/templates/more.php';
    6258           
    63             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     59            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    6460            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    6561            $html_more_button.= '</a>';
     
    7066    $html.= $html_button;
    7167    $html.= $html_more_button; 
    72     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close"><i class="fa fa-times"></i> </span>'.$html_popup_buttons.'</div></div>';
     68    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close"><i class="fa fa-times"></i> </span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    7369
    7470    $html.= '</div>';
  • social-share-button/trunk/themes/theme10/index.php

    r1764621 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    3835               
    39                 // $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';     
    40                
    41                 // $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42                 // $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    43                 // $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44                
    45                 // $html_button.= '</a>';
    46                
    47                
    48                
    49                
    5036                }
    5137            else{
    5238                    include social_share_button_plugin_dir.'/templates/popup-buttons.php';
    53                    
    54                    
    55                    
    56                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    57                    
    58                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    59                     // </span>';           
    60                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    61                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    62                    
    63                     // $html_popup_buttons.= '</a>';
    64                    
    6539                   
    6640                }
     
    7650            //include social_share_button_plugin_dir.'/templates/more.php';
    7751           
    78             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     52            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7953            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8054            $html_more_button.= '</a>';
     
    8559    $html.= $html_button;
    8660    $html.= $html_more_button; 
    87     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     61    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8862
    8963    $html.= '</div>';
  • social-share-button/trunk/themes/theme11/index.php

    r1764621 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    3835               
    39                 // $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';     
    40                
    41                 // $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42                 // $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    43                 // $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44                
    45                 // $html_button.= '</a>';
     36
    4637               
    4738               
     
    5445                   
    5546                   
    56                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    57                    
    58                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    59                     // </span>';           
    60                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    61                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    62                    
    63                     // $html_popup_buttons.= '</a>';
     47
    6448                   
    6549                   
     
    7660            //include social_share_button_plugin_dir.'/templates/more.php';
    7761           
    78             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     62            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7963            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8064            $html_more_button.= '</a>';
     
    8569    $html.= $html_button;
    8670    $html.= $html_more_button; 
    87     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     71    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8872
    8973    $html.= '</div>';
  • social-share-button/trunk/themes/theme12/index.php

    r1764621 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107    include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    3835               
    39                 // $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';     
    40                
    41                 // $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42                 // $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    43                 // $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44                
    45                 // $html_button.= '</a>';
    46                
     36           
    4737               
    4838               
     
    5444                   
    5545                   
    56                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    57                    
    58                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    59                     // </span>';           
    60                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    61                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    62                    
    63                     // $html_popup_buttons.= '</a>';
     46
    6447                   
    6548                   
     
    7659            //include social_share_button_plugin_dir.'/templates/more.php';
    7760           
    78             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     61            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7962            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8063            $html_more_button.= '</a>';
     
    8568    $html.= $html_button;
    8669    $html.= $html_more_button; 
    87     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     70    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8871
    8972    $html.= '</div>';
  • social-share-button/trunk/themes/theme13/index.php

    r1764621 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    3835               
    39                 // $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';     
    40                
    41                 // $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42                 // $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    43                 // $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44                
    45                 // $html_button.= '</a>';
    46                
     36           
    4737               
    4838               
     
    5343                   
    5444                   
    55                    
    56                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    57                    
    58                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    59                     // </span>';           
    60                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    61                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    62                    
    63                     // $html_popup_buttons.= '</a>';
     45
    6446                   
    6547                   
     
    7658            //include social_share_button_plugin_dir.'/templates/more.php';
    7759           
    78             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     60            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7961            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8062            $html_more_button.= '</a>';
     
    8567    $html.= $html_button;
    8668    $html.= $html_more_button; 
    87     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     69    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8870
    8971    $html.= '</div>';
  • social-share-button/trunk/themes/theme14/index.php

    r1764621 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3835                include social_share_button_plugin_dir.'/templates/buttons.php';
    3936               
    40                 // $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';     
    41                
    42                 // $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    43                 // $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    44                 // $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    45                
    46                 // $html_button.= '</a>';
     37
    4738               
    4839               
     
    5546                   
    5647                   
    57                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    58                    
    59                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    60                     // </span>';           
    61                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    62                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    63                    
    64                     // $html_popup_buttons.= '</a>';
     48
    6549                   
    6650                   
     
    7761            //include social_share_button_plugin_dir.'/templates/more.php';
    7862           
    79             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     63            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    8064            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8165            $html_more_button.= '</a>';
     
    8670    $html.= $html_button;
    8771    $html.= $html_more_button; 
    88     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     72    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8973
    9074    $html.= '</div>';
  • social-share-button/trunk/themes/theme15/index.php

    r1764621 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    3835               
    39                 // $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';     
    40                
    41                 // $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42                 // $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    43                 // $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44                
    45                 // $html_button.= '</a>';
    46                
    47                
    48                
    49                
    5036                }
    5137            else{
     
    5440                   
    5541                   
    56                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    57                    
    58                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    59                     // </span>';           
    60                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    61                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    62                    
    63                     // $html_popup_buttons.= '</a>';
     42
    6443                   
    6544                   
     
    7655            //include social_share_button_plugin_dir.'/templates/more.php';
    7756           
    78             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     57            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7958            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8059            $html_more_button.= '</a>';
     
    8564    $html.= $html_button;
    8665    $html.= $html_more_button; 
    87     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     66    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8867
    8968    $html.= '</div>';
  • social-share-button/trunk/themes/theme16/index.php

    r2076431 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    3835               
    39 //              $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';
    40 //
    41 //              $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42 //              $html_button.= '<span class="button-name">Share on '.$site_info['title'].'</span>';
    43                 //$html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44                
    45                 // $html_button.= '</a>';
    46                
     36       
    4737               
    4838               
     
    5343                   
    5444                   
    55                    
    56                    
    57                    
    58 //                  $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';
    59 //
    60 //                  $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    61 //                  $html_popup_buttons.= '<span class="button-name">Share on '.$site_info['title'].'</span>';
    62                     //$html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';             
    63                    
    64                     //$html_popup_buttons.= '</a>';
    6545                }
    6646               
     
    7555            //include social_share_button_plugin_dir.'/templates/more.php';
    7656           
    77             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     57            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7858            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    7959            $html_more_button.= '</a>';
     
    8565    $html.= $html_button;
    8666    $html.= $html_more_button; 
    87     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     67    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8868
    8969    $html.= '</div>';
  • social-share-button/trunk/themes/theme17/index.php

    r1764621 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    3835               
    39                 // $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';     
    40                
    41                 // $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42                 // $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    43                 // $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44                
    45                 // $html_button.= '</a>';
     36
    4637               
    4738               
     
    5445                   
    5546                   
    56                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    57                    
    58                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    59                     // </span>';           
    60                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    61                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    62                    
    63                     // $html_popup_buttons.= '</a>';
     47
    6448                   
    6549                   
     
    7660            //include social_share_button_plugin_dir.'/templates/more.php';
    7761           
    78             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     62            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7963            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8064            $html_more_button.= '</a>';
     
    8569    $html.= $html_button;
    8670    $html.= $html_more_button; 
    87     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     71    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8872
    8973    $html.= '</div>';
  • social-share-button/trunk/themes/theme18/index.php

    r1764621 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    3835               
    39                 // $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';     
    40                
    41                 // $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42                 // $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    43                 // $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44                
    45                 // $html_button.= '</a>';
     36
    4637               
    4738               
     
    5445                   
    5546                   
    56                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    57                    
    58                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    59                     // </span>';           
    60                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    61                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    62                    
    63                     // $html_popup_buttons.= '</a>';
     47
    6448                   
    6549                   
     
    7660            //include social_share_button_plugin_dir.'/templates/more.php';
    7761           
    78             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     62            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7963            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8064            $html_more_button.= '</a>';
     
    8569    $html.= $html_button;
    8670    $html.= $html_more_button; 
    87     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     71    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8872
    8973    $html.= '</div>';
  • social-share-button/trunk/themes/theme19/index.php

    r2076431 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    3835               
    39 //              $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';
    40 //
    41 //              $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i> '.$site_info['title'].'</span>';
    42 //              $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    43 //              $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44                
    45                 // $html_button.= '</a>';
     36
    4637               
    4738               
     
    5344                   
    5445                   
     46            }
    5547                   
    56                    
    57                    
    58 //                  $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';
    59 //
    60 //                  $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>  '.$site_info['title'].'</span>';
    61 //                  $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';
    62 //                  $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';
    63 //
    64 //                  $html_popup_buttons.= '</a>';
    65                 }
     48
    6649               
    6750            $i++;
     
    7558            //include social_share_button_plugin_dir.'/templates/more.php';
    7659           
    77             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     60            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7861            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    7962            $html_more_button.= '</a>';
     
    8568    $html.= $html_button;
    8669    $html.= $html_more_button; 
    87     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     70    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8871
    8972    $html.= '</div>';
  • social-share-button/trunk/themes/theme2/index.php

    r1764621 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107    include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310   
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    5451            //include social_share_button_plugin_dir.'/templates/more.php';
    5552           
    56             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     53            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    5754            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    5855            $html_more_button.= '</a>';
     
    6360    $html.= $html_button;
    6461    $html.= $html_more_button; 
    65     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     62    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    6663
    6764    $html.= '</div>';
  • social-share-button/trunk/themes/theme20/index.php

    r2076431 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    3835               
    39 //              $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';
    40 //
    41 //              $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42 //              $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    43 //              //$html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44 //
    45 //              $html_button.= '</a>';
     36
    4637
    4738                }
     
    4940                    include social_share_button_plugin_dir.'/templates/popup-buttons.php';
    5041                   
    51 //              $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';
    52 //
    53 //              $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    54 //              $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';
    55 //              //$html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    56 //
    57 //              $html_popup_buttons.= '</a>';
     42
    5843                   
    5944                }
     
    6954            //include social_share_button_plugin_dir.'/templates/more.php';
    7055           
    71             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     56            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7257            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    7358            $html_more_button.= '</a>';
     
    7964    $html.= $html_button;
    8065    $html.= $html_more_button; 
    81     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     66    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8267
    8368    $html.= '</div>';
  • social-share-button/trunk/themes/theme21/index.php

    r2096770 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    1916
    2017
    21     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     18    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    2219   
    2320    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    4643                include social_share_button_plugin_dir.'/templates/buttons.php';
    4744               
    48                 /*$html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    49                
    50                 $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    51                 $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    52                 $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    53                
    54                 $html_button.= '</a>';
    55                 */
    5645               
    5746               
     
    6352                   
    6453                   
    65                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    66                    
    67                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    68                     // </span>';           
    69                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    70                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    71                    
    72                     // $html_popup_buttons.= '</a>';
     54
    7355                   
    7456                   
     
    8567            //include social_share_button_plugin_dir.'/templates/more.php';
    8668           
    87             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     69            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    8870            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8971            $html_more_button.= '</a>';
     
    9476    $html.= $html_button;
    9577    $html.= $html_more_button; 
    96     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     78    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    9779
    9880    $html.= '</div>';
  • social-share-button/trunk/themes/theme22/index.php

    r1764621 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    3835               
    39                 /*$html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    40                
    41                 $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42                 $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    43                 $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44                
    45                 $html_button.= '</a>';
    46                 */
     36
    4737               
    4838               
     
    5444                   
    5545                   
    56                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    57                    
    58                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    59                     // </span>';           
    60                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    61                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    62                    
    63                     // $html_popup_buttons.= '</a>';
     46
    6447                   
    6548                   
     
    7659            //include social_share_button_plugin_dir.'/templates/more.php';
    7760           
    78             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     61            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7962            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8063            $html_more_button.= '</a>';
     
    8568    $html.= $html_button;
    8669    $html.= $html_more_button; 
    87     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     70    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8871
    8972    $html.= '</div>';
  • social-share-button/trunk/themes/theme23/index.php

    r2096770 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    2017
    2118
    22     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     19    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    2320
    2421    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    6663            //include social_share_button_plugin_dir.'/templates/more.php';
    6764           
    68             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     65            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    6966            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    7067            $html_more_button.= '</a>';
     
    7572    $html.= $html_button;
    7673    $html.= $html_more_button; 
    77     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     74    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    7875
    7976    $html.= '</div>';
  • social-share-button/trunk/themes/theme24/index.php

    r2096770 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    1916
    2017
    21     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     18    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    2219
    2320    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    4643                include social_share_button_plugin_dir.'/templates/buttons.php';
    4744               
    48                 // $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';     
    49                
    50                 // $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    51                 // $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    52                 // $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    53                
    54                 // $html_button.= '</a>';
     45
    5546               
    5647               
     
    6354                   
    6455                   
    65                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    66                    
    67                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    68                     // </span>';           
    69                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    70                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    71                    
    72                     // $html_popup_buttons.= '</a>';
     56
    7357                   
    7458                   
     
    8569            //include social_share_button_plugin_dir.'/templates/more.php';
    8670           
    87             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     71            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    8872            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8973            $html_more_button.= '</a>';
     
    9478    $html.= $html_button;
    9579    $html.= $html_more_button; 
    96     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     80    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    9781
    9882    $html.= '</div>';
  • social-share-button/trunk/themes/theme25/index.php

    r2096770 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    1815
    1916
    20     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     17    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    2118
    2219    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    4542                include social_share_button_plugin_dir.'/templates/buttons.php';
    4643               
    47                 // $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';     
    48                
    49                 // $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    50                 // $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    51                 // $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    52                
    53                 // $html_button.= '</a>';
     44
    5445               
    5546               
     
    6253                   
    6354                   
    64                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    65                    
    66                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    67                     // </span>';           
    68                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    69                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    70                    
    71                     // $html_popup_buttons.= '</a>';
     55
    7256                   
    7357                   
     
    8468            //include social_share_button_plugin_dir.'/templates/more.php';
    8569           
    86             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     70            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    8771            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8872            $html_more_button.= '</a>';
     
    9377    $html.= $html_button;
    9478    $html.= $html_more_button; 
    95     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     79    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    9680
    9781    $html.= '</div>';
  • social-share-button/trunk/themes/theme26/index.php

    r2096770 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    2017
    2118
    22     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     19    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    2320
    2421    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    4744                include social_share_button_plugin_dir.'/templates/buttons.php';
    4845               
    49                 /*$html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    50                
    51                 $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    52                 $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    53                 $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    54                
    55                 $html_button.= '</a>';
    56                 */
     46
    5747               
    5848               
     
    6454                   
    6555                   
    66                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    67                    
    68                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    69                     // </span>';           
    70                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    71                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    72                    
    73                     // $html_popup_buttons.= '</a>';
     56
    7457                   
    7558                   
     
    8669            //include social_share_button_plugin_dir.'/templates/more.php';
    8770           
    88             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     71            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    8972            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    9073            $html_more_button.= '</a>';
     
    9578    $html.= $html_button;
    9679    $html.= $html_more_button; 
    97     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     80    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    9881
    9982    $html.= '</div>';
  • social-share-button/trunk/themes/theme27/index.php

    r2096770 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    2017
    2118
    22     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     19    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    2320
    2421    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    4542            if($i<$social_share_button_total){
    4643           
    47                 //include social_share_button_plugin_dir.'/templates/buttons.php';
    48                
    49                 $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';     
    50                
    51                 $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    52                 $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    53                 //$html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    54                
    55                 $html_button.= '</a>';
    56                
    57                
    58                
     44                include social_share_button_plugin_dir.'/templates/buttons.php';
    5945               
    6046                }
    61             else{
    62                     //include social_share_button_plugin_dir.'/templates/popup-buttons.php';
    63                    
    64                    
    65                    
    66                     $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';     
    67                    
    68                     $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    69                     </span>';           
    70                     $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    71                     //$html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';             
    72                    
    73                     $html_popup_buttons.= '</a>';
    74                    
     47            else{                   
     48                    include social_share_button_plugin_dir.'/templates/popup-buttons.php';
    7549                   
    7650                }
     
    8660            //include social_share_button_plugin_dir.'/templates/more.php';
    8761           
    88             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     62            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    8963            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    9064            $html_more_button.= '</a>';
     
    9569    $html.= $html_button;
    9670    $html.= $html_more_button; 
    97     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     71    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    9872
    9973    $html.= '</div>';
  • social-share-button/trunk/themes/theme28/index.php

    r2096770 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    2017
    2118
    22     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     19    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    2320
    2421    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    4744                include social_share_button_plugin_dir.'/templates/buttons.php';
    4845               
    49 //              $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';
    50 //
    51 //              $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    52 //              $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    53 //              //$html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    54 //
    55 //              $html_button.= '</a>';
     46
    5647               
    5748               
     
    6455                   
    6556                   
    66 //                  $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';
    67 //
    68 //                  $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    69 //                  </span>';
    70 //                  $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';
    71 //                  //$html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';
    72 //
    73 //                  $html_popup_buttons.= '</a>';
    74                    
     57
    7558                   
    7659                }
     
    8669            //include social_share_button_plugin_dir.'/templates/more.php';
    8770           
    88             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     71            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    8972            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    9073            $html_more_button.= '</a>';
     
    9578    $html.= $html_button;
    9679    $html.= $html_more_button; 
    97     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     80    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    9881
    9982    $html.= '</div>';
  • social-share-button/trunk/themes/theme29/index.php

    r2096770 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    2219
    2320
    24     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     21    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    2522
    2623    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    5249                include social_share_button_plugin_dir.'/templates/buttons.php';
    5350               
    54                 /*$html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    55                
    56                 $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    57                 $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    58                 $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    59                
    60                 $html_button.= '</a>';
    61                 */
     51
    6252               
    6353               
     
    6959                   
    7060                   
    71                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    72                    
    73                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    74                     // </span>';           
    75                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    76                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    77                    
    78                     // $html_popup_buttons.= '</a>';
     61
    7962                   
    8063                   
     
    9174            //include social_share_button_plugin_dir.'/templates/more.php';
    9275           
    93             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     76            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    9477            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    9578            $html_more_button.= '</a>';
     
    10083    $html.= $html_button;
    10184    $html.= $html_more_button; 
    102     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     85    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    10386
    10487    $html.= '</div>';
  • social-share-button/trunk/themes/theme3/index.php

    r2076431 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107    include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310   
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    5552            //include social_share_button_plugin_dir.'/templates/more.php';
    5653           
    57             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     54            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    5855            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    5956            $html_more_button.= '</a>';
     
    6461    $html.= $html_button;
    6562    $html.= $html_more_button; 
    66     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     63    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    6764
    6865    $html.= '</div>';
  • social-share-button/trunk/themes/theme30/index.php

    r2076431 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    3835               
    39 //              $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';
    40 //
    41 //              $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42 //              $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    43 //              //$html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44 //
    45 //              $html_button.= '</a>';
     36
    4637               
    4738               
     
    5243                    include social_share_button_plugin_dir.'/templates/popup-buttons.php';
    5344                   
    54                    
    55 //
    56 //                  $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';
    57 //
    58 //                  $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    59 //                  </span>';
    60 //                  $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';
    61 //                  //$html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';
    62 //
    63 //                  $html_popup_buttons.= '</a>';
     45
    6446                   
    6547                   
     
    7658            //include social_share_button_plugin_dir.'/templates/more.php';
    7759           
    78             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     60            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7961            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8062            $html_more_button.= '</a>';
     
    8567    $html.= $html_button;
    8668    $html.= $html_more_button; 
    87     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     69    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8870
    8971    $html.= '</div>';
  • social-share-button/trunk/themes/theme31/index.php

    r2076431 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    3835               
    39 //              $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';
    40 //
    41 //              $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42 //              $html_button.= '<span class="button-name">Share ON '.$site_info['title'].'</span>';
    43 //              //$html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44 //
    45 //              $html_button.= '</a>';
     36
    4637
    4738                }
     
    4940                    include social_share_button_plugin_dir.'/templates/popup-buttons.php';
    5041                   
    51 //              $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';
    52 //
    53 //              $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    54 //              $html_popup_buttons.= '<span class="button-name">Share ON '.$site_info['title'].'</span>';
    55 //              //$html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    56 //
    57 //              $html_popup_buttons.= '</a>';
     42
    5843                   
    5944                }
     
    6954            //include social_share_button_plugin_dir.'/templates/more.php';
    7055           
    71             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     56            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7257            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    7358            $html_more_button.= '</a>';
     
    7964    $html.= $html_button;
    8065    $html.= $html_more_button; 
    81     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     66    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8267
    8368    $html.= '</div>';
  • social-share-button/trunk/themes/theme32/index.php

    r1764621 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    3835               
    39                 // $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';     
    40                
    41                 // $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42                 // $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    43                 // $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44                
    45                 // $html_button.= '</a>';
     36
    4637               
    4738               
     
    5445                   
    5546                   
    56                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    57                    
    58                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    59                     // </span>';           
    60                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    61                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    62                    
    63                     // $html_popup_buttons.= '</a>';
     47
    6448                   
    6549                   
     
    7660            //include social_share_button_plugin_dir.'/templates/more.php';
    7761           
    78             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     62            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7963            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8064            $html_more_button.= '</a>';
     
    8569    $html.= $html_button;
    8670    $html.= $html_more_button; 
    87     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     71    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8872
    8973    $html.= '</div>';
  • social-share-button/trunk/themes/theme33/index.php

    r1764621 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    3835               
    39                 // $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';     
    40                
    41                 // $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42                 // $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    43                 // $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44                
    45                 // $html_button.= '</a>';
     36
    4637               
    4738               
     
    5445                   
    5546                   
    56                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    57                    
    58                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    59                     // </span>';           
    60                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    61                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    62                    
    63                     // $html_popup_buttons.= '</a>';
     47
    6448                   
    6549                   
     
    7660            //include social_share_button_plugin_dir.'/templates/more.php';
    7761           
    78             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     62            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7963            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8064            $html_more_button.= '</a>';
     
    8569    $html.= $html_button;
    8670    $html.= $html_more_button; 
    87     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     71    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8872
    8973    $html.= '</div>';
  • social-share-button/trunk/themes/theme34/index.php

    r2076431 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3633           
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    38 //
    39 //              $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';
    40 //
    41 //              $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42 //              $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    43                 //$html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44                
    45                 // $html_button.= '</a>';
     35
    4636               
    4737               
     
    5343                   
    5444                   
    55                    
    56                    
    57                    
    58 //                  $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';
    59 //
    60 //                  $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    61 //                  $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';
    62 //                  //$html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';
    63 //
    64 //                  $html_popup_buttons.= '</a>';
     45
    6546                }
    6647               
     
    7556            //include social_share_button_plugin_dir.'/templates/more.php';
    7657           
    77             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     58            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7859            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    7960            $html_more_button.= '</a>';
     
    8566    $html.= $html_button;
    8667    $html.= $html_more_button; 
    87     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     68    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8869
    8970    $html.= '</div>';
  • social-share-button/trunk/themes/theme35/index.php

    r2076431 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    3835               
    39 //              $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';
    40 //
    41 //              $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42 //              $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    43 //              //$html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44 //
    45 //              $html_button.= '</a>';
     36
    4637               
    4738               
     
    5445                   
    5546                   
    56 //                  $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';
    57 //
    58 //                  $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    59 //                  </span>';
    60 //                  $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';
    61 //                  //$html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';
    62 //
    63 //                  $html_popup_buttons.= '</a>';
    64                    
     47
    6548                   
    6649                }
     
    7659            //include social_share_button_plugin_dir.'/templates/more.php';
    7760           
    78             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     61            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7962            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8063            $html_more_button.= '</a>';
     
    8568    $html.= $html_button;
    8669    $html.= $html_more_button; 
    87     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     70    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8871
    8972    $html.= '</div>';
  • social-share-button/trunk/themes/theme36/index.php

    r1764621 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    3835               
    39                 // $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';     
    40                
    41                 // $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42                 // $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    43                 // $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44                
    45                 // $html_button.= '</a>';
     36
    4637               
    4738               
     
    5445                   
    5546                   
    56                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    57                    
    58                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    59                     // </span>';           
    60                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    61                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    62                    
    63                     // $html_popup_buttons.= '</a>';
     47
    6448                   
    6549                   
     
    7660            //include social_share_button_plugin_dir.'/templates/more.php';
    7761           
    78             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     62            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7963            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8064            $html_more_button.= '</a>';
     
    8569    $html.= $html_button;
    8670    $html.= $html_more_button; 
    87     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     71    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8872
    8973    $html.= '</div>';
  • social-share-button/trunk/themes/theme37/index.php

    r2076431 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    6057            //include social_share_button_plugin_dir.'/templates/more.php';
    6158           
    62             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     59            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    6360            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    6461            $html_more_button.= '</a>';
     
    6966    $html.= $html_button;
    7067    $html.= $html_more_button; 
    71     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     68    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    7269
    7370    $html.= '</div>';
  • social-share-button/trunk/themes/theme38/index.php

    r2076431 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    5653           
    5754
    58             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     55            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    5956            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    6057            $html_more_button.= '</a>';
     
    6562    $html.= $html_button;
    6663    $html.= $html_more_button; 
    67     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     64    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    6865
    6966    $html.= '</div>';
  • social-share-button/trunk/themes/theme4/index.php

    r1764621 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    3835               
    39                 // $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';     
    40                
    41                 // $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42                 // $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    43                 // $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44                
    45                 // $html_button.= '</a>';
     36
    4637               
    4738               
     
    5445                   
    5546                   
    56                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    57                    
    58                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    59                     // </span>';           
    60                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    61                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    62                    
    63                     // $html_popup_buttons.= '</a>';
     47
    6448                   
    6549                   
     
    7660            //include social_share_button_plugin_dir.'/templates/more.php';
    7761           
    78             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     62            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7963            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8064            $html_more_button.= '</a>';
     
    8569    $html.= $html_button;
    8670    $html.= $html_more_button; 
    87     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     71    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8872
    8973    $html.= '</div>';
  • social-share-button/trunk/themes/theme5/index.php

    r1764621 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310   
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3835                include social_share_button_plugin_dir.'/templates/buttons.php';
    3936               
    40                 // $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';     
    41                
    42                 // $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    43                 // $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    44                 // $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    45                
    46                 // $html_button.= '</a>';
     37
    4738               
    4839               
     
    5546                   
    5647                   
    57                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    58                    
    59                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    60                     // </span>';           
    61                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    62                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    63                    
    64                     // $html_popup_buttons.= '</a>';
     48
    6549                   
    6650                   
     
    7761            //include social_share_button_plugin_dir.'/templates/more.php';
    7862           
    79             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     63            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    8064            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8165            $html_more_button.= '</a>';
     
    8670    $html.= $html_button;
    8771    $html.= $html_more_button; 
    88     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     72    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8973
    9074    $html.= '</div>';
  • social-share-button/trunk/themes/theme6/index.php

    r1764621 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    3835               
    39                 // $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';     
    40                
    41                 // $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42                 // $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    43                 // $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44                
    45                 // $html_button.= '</a>';
     36
    4637               
    4738               
     
    5445                   
    5546                   
    56                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    57                    
    58                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    59                     // </span>';           
    60                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    61                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    62                    
    63                     // $html_popup_buttons.= '</a>';
     47
    6448                   
    6549                   
     
    7660            //include social_share_button_plugin_dir.'/templates/more.php';
    7761           
    78             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     62            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7963            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8064            $html_more_button.= '</a>';
     
    8569    $html.= $html_button;
    8670    $html.= $html_more_button; 
    87     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     71    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8872
    8973    $html.= '</div>';
  • social-share-button/trunk/themes/theme7/index.php

    r1764621 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    3835               
    39                 // $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';     
    40                
    41                 // $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42                 // $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    43                 // $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44                
    45                 // $html_button.= '</a>';
     36
    4637               
    4738               
     
    5445                   
    5546                   
    56                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    57                    
    58                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    59                     // </span>';           
    60                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    61                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    62                    
    63                     // $html_popup_buttons.= '</a>';
     47
    6448                   
    6549                   
     
    7660            //include social_share_button_plugin_dir.'/templates/more.php';
    7761           
    78             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     62            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7963            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8064            $html_more_button.= '</a>';
     
    8569    $html.= $html_button;
    8670    $html.= $html_more_button; 
    87     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     71    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8872
    8973    $html.= '</div>';
  • social-share-button/trunk/themes/theme8/index.php

    r1764621 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3633           
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    38                
    39                 /*$html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    40                
    41                 $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42                 $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    43                 $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44                
    45                 $html_button.= '</a>';
    46                 */
    47                
     35
    4836               
    4937               
     
    5442                   
    5543                   
    56                     // $html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    57                    
    58                     // $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    59                     // </span>';           
    60                     // $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    61                     // $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    62                    
    63                     // $html_popup_buttons.= '</a>';
     44
    6445                   
    6546                   
     
    7657            //include social_share_button_plugin_dir.'/templates/more.php';
    7758           
    78             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     59            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7960            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8061            $html_more_button.= '</a>';
     
    8566    $html.= $html_button;
    8667    $html.= $html_more_button; 
    87     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     68    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8869
    8970    $html.= '</div>';
  • social-share-button/trunk/themes/theme9/index.php

    r1764621 r3436359  
    11<?php
    22
    3 /*
    4 * @Author       ParaTheme
    5 * Copyright:    2015 ParaTheme
    6 */
     3
    74
    85if ( ! defined('ABSPATH')) exit;  // if direct access
     
    107include social_share_button_plugin_dir.'/templates/variables.php';
    118
    12     $html.= '<div id="wp-share-button-'.$post_id.'" class="wp-share-button '.$themes.'">';
     9    $html.= '<div id="wp-share-button-'.esc_attr($post_id).'" class="wp-share-button '.esc_attr($themes).'">';
    1310
    1411    $html.= apply_filters('social_share_button_filter_buttons_before','');
     
    3633           
    3734                include social_share_button_plugin_dir.'/templates/buttons.php';
    38                 /*
    39                 $html_button.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';     
    40                
    41                 $html_button.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i></span>';
    42                 $html_button.= '<span class="button-name">'.$site_info['title'].'</span>';
    43                 $html_button.= '<span class="button-count">'.$share_count_value.'</span>';
    44                
    45                 $html_button.= '</a>';*/
     35
    4636               
    4737               
     
    5343                   
    5444                   
    55                    
    56                     /*$html_popup_buttons.= '<a target="_blank" href="'.$url.'" post-id="'.get_the_ID().'" class="share-button share-button-'.get_the_ID().' '.$site_info['id'].'" id="'.$site_info['id'].'" >';       
    57                    
    58                     $html_popup_buttons.= '<span class="button-icon"><i class="fa fa-'.$site_info['icon'].'"></i>
    59                     </span>';           
    60                     $html_popup_buttons.= '<span class="button-name">'.$site_info['title'].'</span>';           
    61                     $html_popup_buttons.= '<span class="button-count">'.$share_count_value.'</span>';               
    62                    
    63                     $html_popup_buttons.= '</a>';*/
    6445                   
    6546                   
     
    7657            //include social_share_button_plugin_dir.'/templates/more.php';
    7758           
    78             $html_more_button.= '<a title="More..." href="#wp-share-button-'.$post_id.'" post-id="'.get_the_ID().'" class="share-button-more" >';
     59            $html_more_button.= '<a title="More..." href="#wp-share-button-'.esc_attr($post_id).'" post-id="'.esc_attr(get_the_ID()).'" class="share-button-more" >';
    7960            $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>';
    8061            $html_more_button.= '</a>';
     
    8566    $html.= $html_button;
    8667    $html.= $html_more_button; 
    87     $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.get_the_ID().'"><div class="popup-buttons"><span class="close">X</span>'.$html_popup_buttons.'</div></div>';
     68    $html.= '<div class="wp-share-button-popup wp-share-button-popup-'.esc_attr(get_the_ID()).'"><div class="popup-buttons"><span class="close">X</span>'.wp_kses_post($html_popup_buttons).'</div></div>';
    8869
    8970    $html.= '</div>';
Note: See TracChangeset for help on using the changeset viewer.