Changeset 2949021
- Timestamp:
- 08/08/2023 02:51:12 AM (2 years ago)
- Location:
- social-share-boost
- Files:
-
- 24 added
- 4 edited
-
tags/4.5 (added)
-
tags/4.5/common_lib.php (added)
-
tags/4.5/css (added)
-
tags/4.5/css/style.css (added)
-
tags/4.5/func.php (added)
-
tags/4.5/images (added)
-
tags/4.5/images/fb.png (added)
-
tags/4.5/images/gp.png (added)
-
tags/4.5/images/insta.png (added)
-
tags/4.5/images/linkd.png (added)
-
tags/4.5/images/pin.png (added)
-
tags/4.5/images/rss.png (added)
-
tags/4.5/images/twtr.png (added)
-
tags/4.5/images/vim.png (added)
-
tags/4.5/images/yt.png (added)
-
tags/4.5/js (added)
-
tags/4.5/js/admin-js.js (added)
-
tags/4.5/readme.txt (added)
-
tags/4.5/screenshot-1.png (added)
-
tags/4.5/screenshot-2.png (added)
-
tags/4.5/screenshot-3.png (added)
-
tags/4.5/screenshot-4.png (added)
-
tags/4.5/social-share-boost.php (added)
-
tags/4.5/ssb_widgets.php (added)
-
trunk/common_lib.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/social-share-boost.php (modified) (1 diff)
-
trunk/ssb_widgets.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
social-share-boost/trunk/common_lib.php
r2478626 r2949021 100 100 $curval=''; 101 101 $curval = stripslashes( $curval); 102 $html.='<tr valign="top"><th scope="row"><label for="'. $field['id'].'">'.$field['title'].'</label></th><td>';102 $html.='<tr valign="top"><th scope="row"><label for="'.esc_attr($field['id']).'">'.esc_html($field['title']).'</label></th><td>'; 103 103 104 104 switch($field['type']) 105 105 { 106 106 case 'textarea': 107 $html.='<textarea style="width: 25em;" rows=4 id="'. $field['id'].'" name="'.$optn_val.'['.$field['id'].']" class="regular-text">'. $curval.'</textarea>';107 $html.='<textarea style="width: 25em;" rows=4 id="'.esc_attr($field['id']).'" name="'.$optn_val.'['.$field['id'].']" class="regular-text">'. esc_textarea($curval).'</textarea>'; 108 108 break; 109 109 case 'text': 110 $html.='<input id="'.$field['id'].'" type="text" name="'.$optn_val.'['.$field['id'].']" value="'. $curval.'" class="regular-text" />';110 $html.='<input id="'.$field['id'].'" type="text" name="'.$optn_val.'['.$field['id'].']" value="'. esc_attr($curval).'" class="regular-text" />'; 111 111 break; 112 112 case 'checkbox': -
social-share-boost/trunk/readme.txt
r2764903 r2949021 3 3 Tags: social, share, share buttons, social boost, social share, facebook, twitter, google plus, sharing, SEO, addthis, sharethis 4 4 Requires at least: 2.5 5 Tested up to: 6. 06 Stable tag: 4. 45 Tested up to: 6.2 6 Stable tag: 4.5 7 7 License: GPLv2 or later 8 8 … … 78 78 == Changelog == 79 79 80 = 4.5 = 81 * Address XSS vulnerability 80 82 81 83 = 4.1 = -
social-share-boost/trunk/social-share-boost.php
r2478626 r2949021 3 3 Plugin URI: http://sumo.com/ 4 4 Description: Boost Your Social Sharing by automatically adding various social share tools above or below the posts, page and excerpts. This plug-in also provides the functionality to show the social tools using a simple shortcode. 5 Version: 4. 45 Version: 4.5 6 6 Author: Sumo 7 Author URI: http ://sumo.com/7 Author URI: https://sumo.com/ 8 8 License: GPLv2 or later 9 9 */ -
social-share-boost/trunk/ssb_widgets.php
r2478624 r2949021 88 88 $linkedin = esc_attr($instance['linkedin']); 89 89 $scoopit = esc_attr($instance['scoopit']); 90 echo'<p><label for="'. $this->get_field_id('title').'">Title:</label><input class="widefat" id="'. $this->get_field_id('title').'" name="'. $this->get_field_name('title').'>" type="text" value="'. $title.'" /></p>';91 echo'<p><label for="'. $this->get_field_id('url').'">Url to share(leave empty to use homeurl):</label><input class="widefat" id="'. $this->get_field_id('url').'" name="'. $this->get_field_name('url').'>" type="text" value="'. $url.'" /></p>';92 93 echo'<p><label for="'. $this->get_field_id('fb_like').'">Facebook Like:</label> <input class="widefat" id="'. $this->get_field_id('fb_like').'" name="'. $this->get_field_name('fb_like').'>" type="checkbox" ';90 echo'<p><label for="'. esc_attr($this->get_field_id('title')).'">Title:</label><input class="widefat" id="'. esc_attr($this->get_field_id('title')).'" name="'. esc_attr($this->get_field_name('title')).'>" type="text" value="'. esc_attr($title).'" /></p>'; 91 echo'<p><label for="'. esc_attr($this->get_field_id('url')).'">Url to share(leave empty to use homeurl):</label><input class="widefat" id="'. esc_attr($this->get_field_id('url')).'" name="'. esc_attr($this->get_field_name('url')).'>" type="text" value="'. esc_attr($url).'" /></p>'; 92 93 echo'<p><label for="'. esc_attr($this->get_field_id('fb_like')).'">Facebook Like:</label> <input class="widefat" id="'. esc_attr($this->get_field_id('fb_like')).'" name="'. esc_attr($this->get_field_name('fb_like')).'>" type="checkbox" '; 94 94 if ($fb_like) 95 95 echo ' checked=checked '; 96 96 echo'value="1" /></p>'; 97 97 98 echo'<p><label for="'. $this->get_field_id('fb_share').'">Facebook Share:</label> <input class="widefat" id="'. $this->get_field_id('fb_share').'" name="'. $this->get_field_name('fb_share').'>" type="checkbox" ';98 echo'<p><label for="'. esc_attr($this->get_field_id('fb_share')).'">Facebook Share:</label> <input class="widefat" id="'. esc_attr($this->get_field_id('fb_share')).'" name="'. esc_attr($this->get_field_name('fb_share')).'>" type="checkbox" '; 99 99 if ($fb_share) 100 100 echo ' checked=checked '; … … 102 102 103 103 104 echo'<p><label for="'. $this->get_field_id('twtr').'">Tweeter:</label> <input class="widefat" id="'. $this->get_field_id('twtr').'" name="'. $this->get_field_name('twtr').'>" type="checkbox" ';104 echo'<p><label for="'. esc_attr($this->get_field_id('twtr')).'">Tweeter:</label> <input class="widefat" id="'. esc_attr($this->get_field_id('twtr')).'" name="'. esc_attr($this->get_field_name('twtr')).'>" type="checkbox" '; 105 105 if ($twtr) 106 106 echo ' checked=checked '; 107 107 echo'value="1" /></p>'; 108 108 109 echo'<p><label for="'. $this->get_field_id('gplus').'">Google Plus:</label> <input class="widefat" id="'. $this->get_field_id('gplus').'" name="'. $this->get_field_name('gplus').'>" type="checkbox" ';109 echo'<p><label for="'. esc_attr($this->get_field_id('gplus')).'">Google Plus:</label> <input class="widefat" id="'. esc_attr($this->get_field_id('gplus')).'" name="'. esc_attr($this->get_field_name('gplus')).'>" type="checkbox" '; 110 110 if ($gplus) 111 111 echo ' checked=checked '; 112 112 echo'value="1" /></p>'; 113 113 114 echo'<p><label for="'. $this->get_field_id('pint').'">Pinterest:</label> <input class="widefat" id="'. $this->get_field_id('pint').'" name="'. $this->get_field_name('pint').'>" type="checkbox" ';114 echo'<p><label for="'. esc_attr($this->get_field_id('pint')).'">Pinterest:</label> <input class="widefat" id="'. esc_attr($this->get_field_id('pint')).'" name="'. esc_attr($this->get_field_name('pint')).'>" type="checkbox" '; 115 115 if ($pint) 116 116 echo ' checked=checked '; 117 117 echo'value="1" /></p>'; 118 118 119 echo'<p><label for="'. $this->get_field_id('stmbl').'">Stumbleupon:</label> <input class="widefat" id="'. $this->get_field_id('stmbl').'" name="'. $this->get_field_name('stmbl').'>" type="checkbox" ';119 echo'<p><label for="'. esc_attr($this->get_field_id('stmbl')).'">Stumbleupon:</label> <input class="widefat" id="'. esc_attr($this->get_field_id('stmbl')).'" name="'. esc_attr($this->get_field_name('stmbl')).'>" type="checkbox" '; 120 120 if ($stmbl) 121 121 echo ' checked=checked '; 122 122 echo'value="1" /></p>'; 123 123 124 echo'<p><label for="'. $this->get_field_id('tumblr').'">Tumblr:</label> <input class="widefat" id="'. $this->get_field_id('tumblr').'" name="'. $this->get_field_name('tumblr').'>" type="checkbox" ';124 echo'<p><label for="'. esc_attr($this->get_field_id('tumblr')).'">Tumblr:</label> <input class="widefat" id="'. esc_attr($this->get_field_id('tumblr')).'" name="'. esc_attr($this->get_field_name('tumblr')).'>" type="checkbox" '; 125 125 if ($tumblr) 126 126 echo ' checked=checked '; 127 127 echo'value="1" /></p>'; 128 128 129 echo'<p><label for="'. $this->get_field_id('linkedin').'">LinkedIn:</label> <input class="widefat" id="'. $this->get_field_id('linkedin').'" name="'. $this->get_field_name('linkedin').'>" type="checkbox" ';129 echo'<p><label for="'. esc_attr($this->get_field_id('linkedin')).'">LinkedIn:</label> <input class="widefat" id="'. esc_attr($this->get_field_id('linkedin')).'" name="'. esc_attr($this->get_field_name('linkedin')).'>" type="checkbox" '; 130 130 if ($linkedin) 131 131 echo ' checked=checked '; 132 132 echo'value="1" /></p>'; 133 echo'<p><label for="'. $this->get_field_id('scoopit').'">Scoop it:</label> <input class="widefat" id="'. $this->get_field_id('scoopit').'" name="'. $this->get_field_name('scoopit').'>" type="checkbox" ';133 echo'<p><label for="'. esc_attr($this->get_field_id('scoopit')).'">Scoop it:</label> <input class="widefat" id="'. esc_attr($this->get_field_id('scoopit')).'" name="'. esc_attr($this->get_field_name('scoopit')).'>" type="checkbox" '; 134 134 if ($scoopit) 135 135 echo ' checked=checked '; … … 171 171 172 172 173 echo '<iframe src="//www.facebook.com/plugins/likebox.php?href='. urlencode($url).'&width='.$width.'&height='.$height.'&colorscheme=';173 echo '<iframe src="//www.facebook.com/plugins/likebox.php?href='.esc_attr(urlencode($url)).'&width='.esc_attr($width).'&height='.esc_attr($height).'&colorscheme='; 174 174 175 175 if(!$dark) … … 204 204 205 205 206 echo '&appId=307091639398582" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'. $width.'px; height:'.$height.'px;" allowTransparency="true"></iframe>';206 echo '&appId=307091639398582" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'.esc_attr($width).'px; height:'.esc_attr($height).'px;" allowTransparency="true"></iframe>'; 207 207 208 208 … … 242 242 243 243 244 echo'<p><label for="'. $this->get_field_id('title').'">Title:</label><input class="widefat" id="'. $this->get_field_id('title').'" name="'. $this->get_field_name('title').'>" type="text" value="'. $title.'" /></p>';245 246 echo'<p><label for="'. $this->get_field_id('url').'">FB page URL:</label><input class="widefat" id="'. $this->get_field_id('url').'" name="'. $this->get_field_name('url').'>" type="text" value="'. $url.'" /></p>';247 248 249 250 251 echo'<p><label for="'. $this->get_field_id('height').'">Like Box Height:</label><input class="widefat" id="'. $this->get_field_id('height').'" name="'. $this->get_field_name('height').'>" type="text" value="'. $height.'" /></p>';252 253 echo'<p><label for="'. $this->get_field_id('width').'">Like Box Width:</label><input class="widefat" id="'. $this->get_field_id('width').'" name="'. $this->get_field_name('width').'>" type="text" value="'. $width.'" /></p>';254 255 256 257 258 259 echo'<p><label for="'. $this->get_field_id('faces').'">Show Faces:</label> <input class="widefat" id="'. $this->get_field_id('faces').'" name="'. $this->get_field_name('faces').'>" type="checkbox" ';244 echo'<p><label for="'. esc_attr($this->get_field_id('title')).'">Title:</label><input class="widefat" id="'. esc_attr($this->get_field_id('title')).'" name="'. esc_attr($this->get_field_name('title')).'>" type="text" value="'. esc_attr($title).'" /></p>'; 245 246 echo'<p><label for="'. esc_attr($this->get_field_id('url')).'">FB page URL:</label><input class="widefat" id="'. esc_attr($this->get_field_id('url')).'" name="'. esc_attr($this->get_field_name('url')).'>" type="text" value="'. esc_attr($url).'" /></p>'; 247 248 249 250 251 echo'<p><label for="'. esc_attr($this->get_field_id('height')).'">Like Box Height:</label><input class="widefat" id="'. esc_attr($this->get_field_id('height')).'" name="'. esc_attr($this->get_field_name('height')).'>" type="text" value="'. esc_attr($height).'" /></p>'; 252 253 echo'<p><label for="'. esc_attr($this->get_field_id('width')).'">Like Box Width:</label><input class="widefat" id="'. esc_attr($this->get_field_id('width')).'" name="'. esc_attr($this->get_field_name('width')).'>" type="text" value="'. esc_attr($width).'" /></p>'; 254 255 256 257 258 259 echo'<p><label for="'. esc_attr($this->get_field_id('faces')).'">Show Faces:</label> <input class="widefat" id="'. esc_attr($this->get_field_id('faces')).'" name="'. esc_attr($this->get_field_name('faces')).'>" type="checkbox" '; 260 260 if ($faces) 261 261 echo ' checked=checked '; 262 262 echo'value="1" /></p>'; 263 263 264 echo'<p><label for="'. $this->get_field_id('feed').'">Show Posts:</label> <input class="widefat" id="'. $this->get_field_id('feed').'" name="'. $this->get_field_name('feed').'>" type="checkbox" ';264 echo'<p><label for="'. esc_attr($this->get_field_id('feed')).'">Show Posts:</label> <input class="widefat" id="'. esc_attr($this->get_field_id('feed')).'" name="'. esc_attr($this->get_field_name('feed')).'>" type="checkbox" '; 265 265 if ($feed) 266 266 echo ' checked=checked '; 267 267 echo'value="1" /></p>'; 268 echo'<p><label for="'. $this->get_field_id('header').'">Hide Box Header:</label> <input class="widefat" id="'. $this->get_field_id('header').'" name="'. $this->get_field_name('header').'>" type="checkbox" ';268 echo'<p><label for="'. esc_attr($this->get_field_id('header')).'">Hide Box Header:</label> <input class="widefat" id="'. esc_attr($this->get_field_id('header')).'" name="'. esc_attr($this->get_field_name('header')).'>" type="checkbox" '; 269 269 if ($header) 270 270 echo ' checked=checked '; 271 271 echo'value="1" /></p>'; 272 echo'<p><label for="'. $this->get_field_id('border').'">Hide Box Border:</label> <input class="widefat" id="'. $this->get_field_id('border').'" name="'. $this->get_field_name('border').'>" type="checkbox" ';272 echo'<p><label for="'. esc_attr($this->get_field_id('border')).'">Hide Box Border:</label> <input class="widefat" id="'. esc_attr($this->get_field_id('border')).'" name="'. esc_attr($this->get_field_name('border')).'>" type="checkbox" '; 273 273 if ($border) 274 274 echo ' checked=checked '; 275 echo'value="1" /></p>'; echo'<p><label for="'. $this->get_field_id('dark').'">Use Dark Theme:</label> <input class="widefat" id="'. $this->get_field_id('dark').'" name="'. $this->get_field_name('dark').'>" type="checkbox" ';275 echo'value="1" /></p>'; echo'<p><label for="'. esc_attr($this->get_field_id('dark')).'">Use Dark Theme:</label> <input class="widefat" id="'. esc_attr($this->get_field_id('dark')).'" name="'. esc_attr($this->get_field_name('dark')).'>" type="checkbox" '; 276 276 if ($dark) 277 277 echo ' checked=checked '; … … 315 315 if($value!="") 316 316 { 317 echo '<li><a href="'. $value.'" target="_blank"><img src="'.plugins_url('images/'.$key.'.png', __FILE__).'" /></li>';317 echo '<li><a href="'.esc_attr($value).'" target="_blank"><img src="'.esc_attr(plugins_url('images/'.$key.'.png', __FILE__)).'" /></li>'; 318 318 } 319 319 } … … 353 353 $ico_r['linkd_url'] = array('LinkedIn',esc_attr($instance['linkd_url'])); 354 354 355 echo'<p><label for="'. $this->get_field_id('title').'">Title:</label><input class="widefat" id="'. $this->get_field_id('title').'" name="'. $this->get_field_name('title').'>" type="text" value="'. $title.'" /></p>';355 echo'<p><label for="'. $this->get_field_id('title').'">Title:</label><input class="widefat" id="'. esc_attr($this->get_field_id('title')).'" name="'. esc_attr($this->get_field_name('title')).'>" type="text" value="'. esc_attr($title).'" /></p>'; 356 356 357 357 358 358 foreach ($ico_r as $key => $value) 359 359 { 360 echo'<p><label for="'. $this->get_field_id($key).'">'.$value[0].' Profile URL:</label><input class="widefat" id="'. $this->get_field_id($key).'" name="'. $this->get_field_name($key).'>" type="text" value="'. $value[1].'" /></p>';360 echo'<p><label for="'. esc_attr($this->get_field_id($key)).'">'.esc_attr($value[0]).' Profile URL:</label><input class="widefat" id="'. esc_attr($this->get_field_id($key)).'" name="'. esc_attr($this->get_field_name($key)).'>" type="text" value="'. esc_attr($value[1]).'" /></p>'; 361 361 } 362 362 }
Note: See TracChangeset
for help on using the changeset viewer.