Changeset 3436359
- Timestamp:
- 01/10/2026 02:07:06 AM (3 months ago)
- Location:
- social-share-button/trunk
- Files:
-
- 53 edited
-
assets/front/js/scripts.js (modified) (1 diff)
-
assets/settings-tabs/settings-tabs.css (modified) (2 diffs)
-
includes/class-functions.php (modified) (1 diff)
-
includes/class-migrate.php (modified) (1 diff)
-
includes/class-settings.php (modified) (2 diffs)
-
includes/functions-settings.php (modified) (1 diff)
-
includes/functions.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
social-share-button.php (modified) (2 diffs)
-
templates/buttons.php (modified) (1 diff)
-
templates/count.php (modified) (1 diff)
-
templates/icon.php (modified) (1 diff)
-
templates/more.php (modified) (1 diff)
-
templates/name.php (modified) (1 diff)
-
templates/popup-buttons.php (modified) (1 diff)
-
themes/theme1/index.php (modified) (4 diffs)
-
themes/theme10/index.php (modified) (5 diffs)
-
themes/theme11/index.php (modified) (6 diffs)
-
themes/theme12/index.php (modified) (6 diffs)
-
themes/theme13/index.php (modified) (6 diffs)
-
themes/theme14/index.php (modified) (6 diffs)
-
themes/theme15/index.php (modified) (6 diffs)
-
themes/theme16/index.php (modified) (6 diffs)
-
themes/theme17/index.php (modified) (6 diffs)
-
themes/theme18/index.php (modified) (6 diffs)
-
themes/theme19/index.php (modified) (6 diffs)
-
themes/theme2/index.php (modified) (4 diffs)
-
themes/theme20/index.php (modified) (6 diffs)
-
themes/theme21/index.php (modified) (6 diffs)
-
themes/theme22/index.php (modified) (6 diffs)
-
themes/theme23/index.php (modified) (4 diffs)
-
themes/theme24/index.php (modified) (6 diffs)
-
themes/theme25/index.php (modified) (6 diffs)
-
themes/theme26/index.php (modified) (6 diffs)
-
themes/theme27/index.php (modified) (5 diffs)
-
themes/theme28/index.php (modified) (6 diffs)
-
themes/theme29/index.php (modified) (6 diffs)
-
themes/theme3/index.php (modified) (4 diffs)
-
themes/theme30/index.php (modified) (6 diffs)
-
themes/theme31/index.php (modified) (6 diffs)
-
themes/theme32/index.php (modified) (6 diffs)
-
themes/theme33/index.php (modified) (6 diffs)
-
themes/theme34/index.php (modified) (6 diffs)
-
themes/theme35/index.php (modified) (6 diffs)
-
themes/theme36/index.php (modified) (6 diffs)
-
themes/theme37/index.php (modified) (4 diffs)
-
themes/theme38/index.php (modified) (4 diffs)
-
themes/theme4/index.php (modified) (6 diffs)
-
themes/theme5/index.php (modified) (6 diffs)
-
themes/theme6/index.php (modified) (6 diffs)
-
themes/theme7/index.php (modified) (6 diffs)
-
themes/theme8/index.php (modified) (6 diffs)
-
themes/theme9/index.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
social-share-button/trunk/assets/front/js/scripts.js
r2076431 r3436359 1 jQuery(document).ready(function($) 2 { 1 jQuery(document).ready(function ($) { 3 2 4 5 $(document).on('click', '.wp-share-button-popup .close', function(){6 7 $(this).parent().parent().fadeOut();8 9 10 })11 3 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 () { 23 5 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(); 46 7 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 }) 57 19 58 20 59 21 60 });61 62 63 64 65 22 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 177 177 178 178 179 .radio-img { 180 181 display: flex; 182 flex-wrap: wrap; 183 } 179 184 180 185 181 … … 691 687 .range-input {} 692 688 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 } 700 696 701 697 .text-icon {} 702 698 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 } 714 710 715 711 -
social-share-button/trunk/includes/class-functions.php
r2076431 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access -
social-share-button/trunk/includes/class-migrate.php
r3428462 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access -
social-share-button/trunk/includes/class-settings.php
r2076431 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 if ( ! defined('ABSPATH')) exit; // if direct access 8 5 … … 24 21 $social_share_button_migrate_2_1_6 = get_option('social_share_button_migrate_2_1_6'); 25 22 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'); 27 24 28 25 29 26 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' ) ); 31 28 32 29 if($social_share_button_migrate_2_1_6!='done') -
social-share-button/trunk/includes/functions-settings.php
r3428462 r3436359 794 794 <h3>Provide your feedback</h3> 795 795 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> 797 797 798 798 <?php -
social-share-button/trunk/includes/functions.php
r3428462 r3436359 1 1 <?php 2 /* 3 * @Author ParaTheme 4 * Copyright: 2015 ParaTheme 5 */ 2 6 3 if ( ! defined('ABSPATH')) exit; // if direct access 7 4 … … 318 315 319 316 function 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 320 327 $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'])) : ''; 322 329 323 330 $social_share_button_sites = get_option( 'social_share_button_sites' ); -
social-share-button/trunk/readme.txt
r3428462 r3436359 2 2 Contributors: pickplugins 3 3 Donate link: http://pickplugins.com 4 Tags: Share,social share buttons, social share button, share button, social share, social share plugin4 Tags: social share buttons, social share button, share button, social share, social share plugin 5 5 Requires at least: 4.1 6 6 Tested up to: 6.9 7 Stable tag: 2.1.1 37 Stable tag: 2.1.14 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 78 78 79 79 == Changelog == 80 81 = 2.1.14 = 82 * 2026-01-10 - fix - nonce issue fixed. 80 83 81 84 = 2.1.12 = -
social-share-button/trunk/social-share-button.php
r3428462 r3436359 4 4 Plugin URI: http://pickplugins.com 5 5 Description: Awesome Share Button. 6 Version: 2.1.1 36 Version: 2.1.14 7 7 Author: PickPlugins 8 8 Author URI: http://pickplugins.com … … 22 22 define('social_share_button_plugin_dir', plugin_dir_path( __FILE__ ) ); 23 23 define('social_share_button_plugin_name', "Social Share Button" ); 24 define('social_share_button_plugin_version', '2.1.1 3' );24 define('social_share_button_plugin_version', '2.1.14' ); 25 25 26 26 -
social-share-button/trunk/templates/buttons.php
r2076431 r3436359 4 4 5 5 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'].'" >';6 ob_start(); 7 7 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' ) ); ?>"> 10 10 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> 11 13 14 <?php 12 15 if($social_share_button_count_format=='short'){ 13 14 15 16 $share_count_value = social_share_button_number_short($share_count_value); 16 17 } 18 ?> 19 <span class="button-count"><?php echo esc_html($share_count_value); ?></span> 17 20 21 </a> 18 22 19 $html_button.= '<span class="button-count">'.$share_count_value.'</span>'; 23 <?php 20 24 21 $html_button .= '</a>';25 $html_button .= ob_get_clean(); -
social-share-button/trunk/templates/count.php
r2076431 r3436359 20 20 21 21 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 2 2 if ( ! defined('ABSPATH')) exit; // if direct access 3 3 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 2 2 if ( ! defined('ABSPATH')) exit; // if direct access 3 3 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" >'; 5 5 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 6 6 $html_more_button.= '</a>'; -
social-share-button/trunk/templates/name.php
r2076431 r3436359 2 2 if ( ! defined('ABSPATH')) exit; // if direct access 3 3 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 9 9 10 10 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'].'" >';12 11 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>'; 12 ob_start(); 17 13 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 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access 9 6 10 7 11 //echo '<pre>'.var_export(get_permalink(), true).'</pre>'; 12 //echo '<pre>'.var_export(get_the_title(), true).'</pre>'; 8 13 9 include social_share_button_plugin_dir.'/templates/variables.php'; 14 10 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).'">'; 16 12 17 13 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 25 21 26 22 27 $url = strtr($site_info['share_url'], $vars);23 $url = isset($site_info['share_url']) ? strtr($site_info['share_url'], $vars) : ''; 28 24 29 $site_id = $site_info['id'];25 $site_id = isset($site_info['id']) ? $site_info['id'] : ''; 30 26 31 27 … … 61 57 //include social_share_button_plugin_dir.'/templates/more.php'; 62 58 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" >'; 64 60 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 65 61 $html_more_button.= '</a>'; … … 70 66 $html.= $html_button; 71 67 $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>'; 73 69 74 70 $html.= '</div>'; -
social-share-button/trunk/themes/theme10/index.php
r1764621 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 37 34 include social_share_button_plugin_dir.'/templates/buttons.php'; 38 35 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 50 36 } 51 37 else{ 52 38 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 65 39 66 40 } … … 76 50 //include social_share_button_plugin_dir.'/templates/more.php'; 77 51 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" >'; 79 53 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 80 54 $html_more_button.= '</a>'; … … 85 59 $html.= $html_button; 86 60 $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>'; 88 62 89 63 $html.= '</div>'; -
social-share-button/trunk/themes/theme11/index.php
r1764621 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 37 34 include social_share_button_plugin_dir.'/templates/buttons.php'; 38 35 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 46 37 47 38 … … 54 45 55 46 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 64 48 65 49 … … 76 60 //include social_share_button_plugin_dir.'/templates/more.php'; 77 61 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" >'; 79 63 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 80 64 $html_more_button.= '</a>'; … … 85 69 $html.= $html_button; 86 70 $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>'; 88 72 89 73 $html.= '</div>'; -
social-share-button/trunk/themes/theme12/index.php
r1764621 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 37 34 include social_share_button_plugin_dir.'/templates/buttons.php'; 38 35 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 47 37 48 38 … … 54 44 55 45 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 64 47 65 48 … … 76 59 //include social_share_button_plugin_dir.'/templates/more.php'; 77 60 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" >'; 79 62 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 80 63 $html_more_button.= '</a>'; … … 85 68 $html.= $html_button; 86 69 $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>'; 88 71 89 72 $html.= '</div>'; -
social-share-button/trunk/themes/theme13/index.php
r1764621 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 37 34 include social_share_button_plugin_dir.'/templates/buttons.php'; 38 35 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 47 37 48 38 … … 53 43 54 44 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 64 46 65 47 … … 76 58 //include social_share_button_plugin_dir.'/templates/more.php'; 77 59 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" >'; 79 61 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 80 62 $html_more_button.= '</a>'; … … 85 67 $html.= $html_button; 86 68 $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>'; 88 70 89 71 $html.= '</div>'; -
social-share-button/trunk/themes/theme14/index.php
r1764621 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 38 35 include social_share_button_plugin_dir.'/templates/buttons.php'; 39 36 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 47 38 48 39 … … 55 46 56 47 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 65 49 66 50 … … 77 61 //include social_share_button_plugin_dir.'/templates/more.php'; 78 62 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" >'; 80 64 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 81 65 $html_more_button.= '</a>'; … … 86 70 $html.= $html_button; 87 71 $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>'; 89 73 90 74 $html.= '</div>'; -
social-share-button/trunk/themes/theme15/index.php
r1764621 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 37 34 include social_share_button_plugin_dir.'/templates/buttons.php'; 38 35 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 50 36 } 51 37 else{ … … 54 40 55 41 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 64 43 65 44 … … 76 55 //include social_share_button_plugin_dir.'/templates/more.php'; 77 56 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" >'; 79 58 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 80 59 $html_more_button.= '</a>'; … … 85 64 $html.= $html_button; 86 65 $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>'; 88 67 89 68 $html.= '</div>'; -
social-share-button/trunk/themes/theme16/index.php
r2076431 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 37 34 include social_share_button_plugin_dir.'/templates/buttons.php'; 38 35 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 47 37 48 38 … … 53 43 54 44 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>';65 45 } 66 46 … … 75 55 //include social_share_button_plugin_dir.'/templates/more.php'; 76 56 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" >'; 78 58 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 79 59 $html_more_button.= '</a>'; … … 85 65 $html.= $html_button; 86 66 $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>'; 88 68 89 69 $html.= '</div>'; -
social-share-button/trunk/themes/theme17/index.php
r1764621 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 37 34 include social_share_button_plugin_dir.'/templates/buttons.php'; 38 35 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 46 37 47 38 … … 54 45 55 46 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 64 48 65 49 … … 76 60 //include social_share_button_plugin_dir.'/templates/more.php'; 77 61 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" >'; 79 63 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 80 64 $html_more_button.= '</a>'; … … 85 69 $html.= $html_button; 86 70 $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>'; 88 72 89 73 $html.= '</div>'; -
social-share-button/trunk/themes/theme18/index.php
r1764621 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 37 34 include social_share_button_plugin_dir.'/templates/buttons.php'; 38 35 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 46 37 47 38 … … 54 45 55 46 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 64 48 65 49 … … 76 60 //include social_share_button_plugin_dir.'/templates/more.php'; 77 61 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" >'; 79 63 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 80 64 $html_more_button.= '</a>'; … … 85 69 $html.= $html_button; 86 70 $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>'; 88 72 89 73 $html.= '</div>'; -
social-share-button/trunk/themes/theme19/index.php
r2076431 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 37 34 include social_share_button_plugin_dir.'/templates/buttons.php'; 38 35 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 46 37 47 38 … … 53 44 54 45 46 } 55 47 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 66 49 67 50 $i++; … … 75 58 //include social_share_button_plugin_dir.'/templates/more.php'; 76 59 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" >'; 78 61 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 79 62 $html_more_button.= '</a>'; … … 85 68 $html.= $html_button; 86 69 $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>'; 88 71 89 72 $html.= '</div>'; -
social-share-button/trunk/themes/theme2/index.php
r1764621 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 54 51 //include social_share_button_plugin_dir.'/templates/more.php'; 55 52 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" >'; 57 54 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 58 55 $html_more_button.= '</a>'; … … 63 60 $html.= $html_button; 64 61 $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>'; 66 63 67 64 $html.= '</div>'; -
social-share-button/trunk/themes/theme20/index.php
r2076431 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 37 34 include social_share_button_plugin_dir.'/templates/buttons.php'; 38 35 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 46 37 47 38 } … … 49 40 include social_share_button_plugin_dir.'/templates/popup-buttons.php'; 50 41 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 58 43 59 44 } … … 69 54 //include social_share_button_plugin_dir.'/templates/more.php'; 70 55 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" >'; 72 57 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 73 58 $html_more_button.= '</a>'; … … 79 64 $html.= $html_button; 80 65 $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>'; 82 67 83 68 $html.= '</div>'; -
social-share-button/trunk/themes/theme21/index.php
r2096770 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 19 16 20 17 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).'">'; 22 19 23 20 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 46 43 include social_share_button_plugin_dir.'/templates/buttons.php'; 47 44 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 */56 45 57 46 … … 63 52 64 53 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 73 55 74 56 … … 85 67 //include social_share_button_plugin_dir.'/templates/more.php'; 86 68 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" >'; 88 70 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 89 71 $html_more_button.= '</a>'; … … 94 76 $html.= $html_button; 95 77 $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>'; 97 79 98 80 $html.= '</div>'; -
social-share-button/trunk/themes/theme22/index.php
r1764621 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 37 34 include social_share_button_plugin_dir.'/templates/buttons.php'; 38 35 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 47 37 48 38 … … 54 44 55 45 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 64 47 65 48 … … 76 59 //include social_share_button_plugin_dir.'/templates/more.php'; 77 60 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" >'; 79 62 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 80 63 $html_more_button.= '</a>'; … … 85 68 $html.= $html_button; 86 69 $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>'; 88 71 89 72 $html.= '</div>'; -
social-share-button/trunk/themes/theme23/index.php
r2096770 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 20 17 21 18 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).'">'; 23 20 24 21 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 66 63 //include social_share_button_plugin_dir.'/templates/more.php'; 67 64 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" >'; 69 66 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 70 67 $html_more_button.= '</a>'; … … 75 72 $html.= $html_button; 76 73 $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>'; 78 75 79 76 $html.= '</div>'; -
social-share-button/trunk/themes/theme24/index.php
r2096770 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 19 16 20 17 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).'">'; 22 19 23 20 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 46 43 include social_share_button_plugin_dir.'/templates/buttons.php'; 47 44 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 55 46 56 47 … … 63 54 64 55 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 73 57 74 58 … … 85 69 //include social_share_button_plugin_dir.'/templates/more.php'; 86 70 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" >'; 88 72 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 89 73 $html_more_button.= '</a>'; … … 94 78 $html.= $html_button; 95 79 $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>'; 97 81 98 82 $html.= '</div>'; -
social-share-button/trunk/themes/theme25/index.php
r2096770 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 18 15 19 16 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).'">'; 21 18 22 19 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 45 42 include social_share_button_plugin_dir.'/templates/buttons.php'; 46 43 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 54 45 55 46 … … 62 53 63 54 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 72 56 73 57 … … 84 68 //include social_share_button_plugin_dir.'/templates/more.php'; 85 69 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" >'; 87 71 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 88 72 $html_more_button.= '</a>'; … … 93 77 $html.= $html_button; 94 78 $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>'; 96 80 97 81 $html.= '</div>'; -
social-share-button/trunk/themes/theme26/index.php
r2096770 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 20 17 21 18 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).'">'; 23 20 24 21 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 47 44 include social_share_button_plugin_dir.'/templates/buttons.php'; 48 45 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 57 47 58 48 … … 64 54 65 55 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 74 57 75 58 … … 86 69 //include social_share_button_plugin_dir.'/templates/more.php'; 87 70 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" >'; 89 72 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 90 73 $html_more_button.= '</a>'; … … 95 78 $html.= $html_button; 96 79 $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>'; 98 81 99 82 $html.= '</div>'; -
social-share-button/trunk/themes/theme27/index.php
r2096770 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 20 17 21 18 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).'">'; 23 20 24 21 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 45 42 if($i<$social_share_button_total){ 46 43 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'; 59 45 60 46 } 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'; 75 49 76 50 } … … 86 60 //include social_share_button_plugin_dir.'/templates/more.php'; 87 61 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" >'; 89 63 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 90 64 $html_more_button.= '</a>'; … … 95 69 $html.= $html_button; 96 70 $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>'; 98 72 99 73 $html.= '</div>'; -
social-share-button/trunk/themes/theme28/index.php
r2096770 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 20 17 21 18 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).'">'; 23 20 24 21 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 47 44 include social_share_button_plugin_dir.'/templates/buttons.php'; 48 45 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 56 47 57 48 … … 64 55 65 56 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 75 58 76 59 } … … 86 69 //include social_share_button_plugin_dir.'/templates/more.php'; 87 70 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" >'; 89 72 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 90 73 $html_more_button.= '</a>'; … … 95 78 $html.= $html_button; 96 79 $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>'; 98 81 99 82 $html.= '</div>'; -
social-share-button/trunk/themes/theme29/index.php
r2096770 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 22 19 23 20 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).'">'; 25 22 26 23 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 52 49 include social_share_button_plugin_dir.'/templates/buttons.php'; 53 50 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 62 52 63 53 … … 69 59 70 60 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 79 62 80 63 … … 91 74 //include social_share_button_plugin_dir.'/templates/more.php'; 92 75 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" >'; 94 77 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 95 78 $html_more_button.= '</a>'; … … 100 83 $html.= $html_button; 101 84 $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>'; 103 86 104 87 $html.= '</div>'; -
social-share-button/trunk/themes/theme3/index.php
r2076431 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 55 52 //include social_share_button_plugin_dir.'/templates/more.php'; 56 53 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" >'; 58 55 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 59 56 $html_more_button.= '</a>'; … … 64 61 $html.= $html_button; 65 62 $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>'; 67 64 68 65 $html.= '</div>'; -
social-share-button/trunk/themes/theme30/index.php
r2076431 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 37 34 include social_share_button_plugin_dir.'/templates/buttons.php'; 38 35 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 46 37 47 38 … … 52 43 include social_share_button_plugin_dir.'/templates/popup-buttons.php'; 53 44 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 64 46 65 47 … … 76 58 //include social_share_button_plugin_dir.'/templates/more.php'; 77 59 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" >'; 79 61 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 80 62 $html_more_button.= '</a>'; … … 85 67 $html.= $html_button; 86 68 $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>'; 88 70 89 71 $html.= '</div>'; -
social-share-button/trunk/themes/theme31/index.php
r2076431 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 37 34 include social_share_button_plugin_dir.'/templates/buttons.php'; 38 35 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 46 37 47 38 } … … 49 40 include social_share_button_plugin_dir.'/templates/popup-buttons.php'; 50 41 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 58 43 59 44 } … … 69 54 //include social_share_button_plugin_dir.'/templates/more.php'; 70 55 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" >'; 72 57 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 73 58 $html_more_button.= '</a>'; … … 79 64 $html.= $html_button; 80 65 $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>'; 82 67 83 68 $html.= '</div>'; -
social-share-button/trunk/themes/theme32/index.php
r1764621 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 37 34 include social_share_button_plugin_dir.'/templates/buttons.php'; 38 35 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 46 37 47 38 … … 54 45 55 46 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 64 48 65 49 … … 76 60 //include social_share_button_plugin_dir.'/templates/more.php'; 77 61 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" >'; 79 63 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 80 64 $html_more_button.= '</a>'; … … 85 69 $html.= $html_button; 86 70 $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>'; 88 72 89 73 $html.= '</div>'; -
social-share-button/trunk/themes/theme33/index.php
r1764621 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 37 34 include social_share_button_plugin_dir.'/templates/buttons.php'; 38 35 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 46 37 47 38 … … 54 45 55 46 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 64 48 65 49 … … 76 60 //include social_share_button_plugin_dir.'/templates/more.php'; 77 61 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" >'; 79 63 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 80 64 $html_more_button.= '</a>'; … … 85 69 $html.= $html_button; 86 70 $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>'; 88 72 89 73 $html.= '</div>'; -
social-share-button/trunk/themes/theme34/index.php
r2076431 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 36 33 37 34 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 46 36 47 37 … … 53 43 54 44 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 65 46 } 66 47 … … 75 56 //include social_share_button_plugin_dir.'/templates/more.php'; 76 57 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" >'; 78 59 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 79 60 $html_more_button.= '</a>'; … … 85 66 $html.= $html_button; 86 67 $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>'; 88 69 89 70 $html.= '</div>'; -
social-share-button/trunk/themes/theme35/index.php
r2076431 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 37 34 include social_share_button_plugin_dir.'/templates/buttons.php'; 38 35 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 46 37 47 38 … … 54 45 55 46 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 65 48 66 49 } … … 76 59 //include social_share_button_plugin_dir.'/templates/more.php'; 77 60 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" >'; 79 62 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 80 63 $html_more_button.= '</a>'; … … 85 68 $html.= $html_button; 86 69 $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>'; 88 71 89 72 $html.= '</div>'; -
social-share-button/trunk/themes/theme36/index.php
r1764621 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 37 34 include social_share_button_plugin_dir.'/templates/buttons.php'; 38 35 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 46 37 47 38 … … 54 45 55 46 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 64 48 65 49 … … 76 60 //include social_share_button_plugin_dir.'/templates/more.php'; 77 61 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" >'; 79 63 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 80 64 $html_more_button.= '</a>'; … … 85 69 $html.= $html_button; 86 70 $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>'; 88 72 89 73 $html.= '</div>'; -
social-share-button/trunk/themes/theme37/index.php
r2076431 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 60 57 //include social_share_button_plugin_dir.'/templates/more.php'; 61 58 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" >'; 63 60 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 64 61 $html_more_button.= '</a>'; … … 69 66 $html.= $html_button; 70 67 $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>'; 72 69 73 70 $html.= '</div>'; -
social-share-button/trunk/themes/theme38/index.php
r2076431 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 56 53 57 54 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" >'; 59 56 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 60 57 $html_more_button.= '</a>'; … … 65 62 $html.= $html_button; 66 63 $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>'; 68 65 69 66 $html.= '</div>'; -
social-share-button/trunk/themes/theme4/index.php
r1764621 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 37 34 include social_share_button_plugin_dir.'/templates/buttons.php'; 38 35 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 46 37 47 38 … … 54 45 55 46 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 64 48 65 49 … … 76 60 //include social_share_button_plugin_dir.'/templates/more.php'; 77 61 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" >'; 79 63 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 80 64 $html_more_button.= '</a>'; … … 85 69 $html.= $html_button; 86 70 $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>'; 88 72 89 73 $html.= '</div>'; -
social-share-button/trunk/themes/theme5/index.php
r1764621 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 38 35 include social_share_button_plugin_dir.'/templates/buttons.php'; 39 36 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 47 38 48 39 … … 55 46 56 47 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 65 49 66 50 … … 77 61 //include social_share_button_plugin_dir.'/templates/more.php'; 78 62 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" >'; 80 64 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 81 65 $html_more_button.= '</a>'; … … 86 70 $html.= $html_button; 87 71 $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>'; 89 73 90 74 $html.= '</div>'; -
social-share-button/trunk/themes/theme6/index.php
r1764621 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 37 34 include social_share_button_plugin_dir.'/templates/buttons.php'; 38 35 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 46 37 47 38 … … 54 45 55 46 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 64 48 65 49 … … 76 60 //include social_share_button_plugin_dir.'/templates/more.php'; 77 61 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" >'; 79 63 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 80 64 $html_more_button.= '</a>'; … … 85 69 $html.= $html_button; 86 70 $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>'; 88 72 89 73 $html.= '</div>'; -
social-share-button/trunk/themes/theme7/index.php
r1764621 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 37 34 include social_share_button_plugin_dir.'/templates/buttons.php'; 38 35 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 46 37 47 38 … … 54 45 55 46 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 64 48 65 49 … … 76 60 //include social_share_button_plugin_dir.'/templates/more.php'; 77 61 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" >'; 79 63 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 80 64 $html_more_button.= '</a>'; … … 85 69 $html.= $html_button; 86 70 $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>'; 88 72 89 73 $html.= '</div>'; -
social-share-button/trunk/themes/theme8/index.php
r1764621 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 36 33 37 34 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 48 36 49 37 … … 54 42 55 43 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 64 45 65 46 … … 76 57 //include social_share_button_plugin_dir.'/templates/more.php'; 77 58 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" >'; 79 60 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 80 61 $html_more_button.= '</a>'; … … 85 66 $html.= $html_button; 86 67 $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>'; 88 69 89 70 $html.= '</div>'; -
social-share-button/trunk/themes/theme9/index.php
r1764621 r3436359 1 1 <?php 2 2 3 /* 4 * @Author ParaTheme 5 * Copyright: 2015 ParaTheme 6 */ 3 7 4 8 5 if ( ! defined('ABSPATH')) exit; // if direct access … … 10 7 include social_share_button_plugin_dir.'/templates/variables.php'; 11 8 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).'">'; 13 10 14 11 $html.= apply_filters('social_share_button_filter_buttons_before',''); … … 36 33 37 34 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 46 36 47 37 … … 53 43 54 44 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 45 65 46 … … 76 57 //include social_share_button_plugin_dir.'/templates/more.php'; 77 58 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" >'; 79 60 $html_more_button.= '<span class="button-icon"><i class="fa fa-plus"></i></span>'; 80 61 $html_more_button.= '</a>'; … … 85 66 $html.= $html_button; 86 67 $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>'; 88 69 89 70 $html.= '</div>';
Note: See TracChangeset
for help on using the changeset viewer.