Social Icons WordPress Plugin – AccessPress Social Icons - Version 1.7.6

Version Description

  • Code Refinement for secure input and output data.
Download this release

Release Info

Developer Access Keys
Plugin Icon 128x128 Social Icons WordPress Plugin – AccessPress Social Icons
Version 1.7.6
Comparing to
See all releases

Code changes from version 1.7.5 to 1.7.6

accesspress-social-icons.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: AccessPress Social Icons
4
  * Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-icons/
5
  * Description: A plugin to add social icons in your site wherever you want dynamically with handful of configurable settings.
6
- * Version: 1.7.5
7
  * Author:AccessPress Themes
8
  * Author URI:http://accesspressthemes.com/
9
  * Text Domain: accesspress-social-icons
@@ -125,7 +125,7 @@ if (!class_exists('APS_Class')) {
125
  }
126
  if(!defined('APS_VERSION'))
127
  {
128
- define('APS_VERSION','1.7.5');
129
  }
130
  }
131
 
@@ -256,7 +256,6 @@ if (!class_exists('APS_Class')) {
256
  //shortcode function
257
  function aps_social_shortcode($atts) {
258
  if (isset($atts['id'])) {
259
- //return (print_r($atts,true));
260
  ob_start();
261
  include('inc/frontend/shortcode.php');
262
  $html = ob_get_contents();
@@ -269,7 +268,6 @@ if (!class_exists('APS_Class')) {
269
  function aps_icon_list_action() {
270
  if (wp_verify_nonce($_POST['_wpnonce'], 'aps-ajax-nonce')) {
271
  $plugin_path = plugin_dir_path(__FILE__);
272
-
273
  for ($i = 1; $i <= 12; $i++) {
274
  $icon_set_image_array = array();
275
  ?>
@@ -296,8 +294,8 @@ if (!class_exists('APS_Class')) {
296
  <div class="aps-col-one-fourth">
297
  <div class="aps-set-image-wrapper">
298
  <a href='javascript:void(0);'>
299
- <img src="<?php echo APS_ICONS_DIR . '/png/set' . $i . '/' . $file; ?>" alt="<?php echo $filename; ?>" title="<?php echo $filename; ?>"/>
300
- <span class="aps-set-image-title"><?php echo $filename; ?></span>
301
  </a>
302
  </div>
303
  </div>
3
  * Plugin Name: AccessPress Social Icons
4
  * Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-icons/
5
  * Description: A plugin to add social icons in your site wherever you want dynamically with handful of configurable settings.
6
+ * Version: 1.7.6
7
  * Author:AccessPress Themes
8
  * Author URI:http://accesspressthemes.com/
9
  * Text Domain: accesspress-social-icons
125
  }
126
  if(!defined('APS_VERSION'))
127
  {
128
+ define('APS_VERSION','1.7.6');
129
  }
130
  }
131
 
256
  //shortcode function
257
  function aps_social_shortcode($atts) {
258
  if (isset($atts['id'])) {
 
259
  ob_start();
260
  include('inc/frontend/shortcode.php');
261
  $html = ob_get_contents();
268
  function aps_icon_list_action() {
269
  if (wp_verify_nonce($_POST['_wpnonce'], 'aps-ajax-nonce')) {
270
  $plugin_path = plugin_dir_path(__FILE__);
 
271
  for ($i = 1; $i <= 12; $i++) {
272
  $icon_set_image_array = array();
273
  ?>
294
  <div class="aps-col-one-fourth">
295
  <div class="aps-set-image-wrapper">
296
  <a href='javascript:void(0);'>
297
+ <img src="<?php echo APS_ICONS_DIR . '/png/set' . $i . '/' . $file; ?>" alt="<?php echo esc_attr($filename); ?>" title="<?php echo esc_attr($filename); ?>"/>
298
+ <span class="aps-set-image-title"><?php echo esc_attr($filename); ?></span>
299
  </a>
300
  </div>
301
  </div>
inc/backend/about.php CHANGED
@@ -9,9 +9,9 @@
9
  <div class="ap-tab-wrapper">
10
  <p><strong>AccessPress Social Icons </strong> - is a FREE WordPress Plugin by AccessPress Themes. </p>
11
 
12
- <p>AccessPress Themes is a venture of Access Keys - who has developed hundreds of Custom WordPress themes and plugins for its clients over the years. </p>
13
 
14
- <p><strong>AccessPress Social Icons </strong> - is a responsive HTML5/CSS3 social icons plugin which allows to add any number of icons sets anywhere in the site dynamically with the cofigurable backend settings. </p>
15
  <div class="halfseperator"></div>
16
  <p><strong>Please visit our product page for more details here:</strong>
17
  <br />
9
  <div class="ap-tab-wrapper">
10
  <p><strong>AccessPress Social Icons </strong> - is a FREE WordPress Plugin by AccessPress Themes. </p>
11
 
12
+ <p><?php _e('AccessPress Themes is a venture of Access Keys - who has developed hundreds of Custom WordPress themes and plugins for its clients over the years. ', 'accesspress-social-icons'); ?></p>
13
 
14
+ <p><strong>AccessPress Social Icons </strong> - <?php _e('is a responsive HTML5/CSS3 social icons plugin which allows to add any number of icons sets anywhere in the site dynamically with the cofigurable backend settings. ', 'accesspress-social-icons'); ?> </p>
15
  <div class="halfseperator"></div>
16
  <p><strong>Please visit our product page for more details here:</strong>
17
  <br />
inc/backend/copy-icon-set.php CHANGED
@@ -6,32 +6,13 @@ $table_name = $table_name = $wpdb->prefix . "aps_social_icons";
6
  $icon_sets = $wpdb->get_results("SELECT * FROM $table_name where si_id = $si_id");
7
  if(!empty($icon_sets)){
8
  $icon_set = $icon_sets[0];
9
- //$this->print_array($icon_set);
10
- /**
11
- *
12
- * stdClass Object
13
- (
14
- [si_id] => 12
15
- [icon_set_name] => Test Set
16
- [icon_display] => horizontal
17
- [num_rows] =>
18
- [icon_margin] =>
19
- [icon_tooltip] => 1
20
- [tooltip_background] =>
21
- [tooltip_text_color] =>
22
- [icon_animation] =>
23
- [opacity_hover] => 1
24
- [icon_details] => a:20:{s:5:"Askfm";a:17:{s:5:"title";s:5:"Askfm";s:10:"icon_width";s:4:"50px";s:11:"icon_height";s:4:"50px";s:4:"link";s:16:"http://askfm.com";s:12:"tooltip_text";s:5:"AskFM";s:11:"link_target";s:10:"New Window";s:10:"image_name";s:5:"Askfm";s:5:"image";s:117:"http://192.168.1.70/accesspress-social-icons/wp-content/plugins/accesspress-social-icons/icon-sets/png/set1/askfm.png";s:11:"border_type";s:4:"none";s:16:"border_thickness";s:1:"0";s:12:"border_color";s:0:"";s:6:"shadow";s:3:"yes";s:15:"shadow_offset_x";s:1:"0";s:15:"shadow_offset_y";s:1:"0";s:4:"blur";s:1:"0";s:12:"shadow_color";s:0:"";s:7:"padding";s:1:"0";}s:10:"Classmates";a:17:{s:5:"title";s:10:"Classmates";s:10:"icon_width";s:4:"50px";s:11:"icon_height";s:4:"50px";s:4:"link";s:21:"http://classmates.com";s:12:"tooltip_text";s:10:"classmates";s:11:"link_target";s:10:"New Window";s:10:"image_name";s:10:"Classmates";s:5:"image";s:122:"http://192.168.1.70/accesspress-social-icons/wp-content/plugins/accesspress-social-icons/icon-sets/png/set1/classmates.png";s:11:"border_type";s:4:"none";s:16:"border_thickness";s:1:"0";s:12:"border_color";s:0:"";s:6:"shadow";s:3:"yes";s:15:"shadow_offset_x";s:1:"0";s:15:"shadow_offset_y";s:1:"0";s:4:"blur";s:1:"0";s:12:"shadow_color";s:0:"";s:7:"padding";s:1:"0";}s:8:"Facebook";a:17:{s:5:"title";s:8:"Facebook";s:10:"icon_width";s:4:"50px";s:11:"icon_height";s:4:"50px";s:4:"link";s:19:"http://facebook.com";s:12:"tooltip_text";s:13:"Facebook Link";s:11:"link_target";s:10:"New Window";s:10:"image_name";s:8:"Facebook";s:5:"image";s:120:"http://192.168.1.70/accesspress-social-icons/wp-content/plugins/accesspress-social-icons/icon-sets/png/set1/facebook.png";s:11:"border_type";s:4:"none";s:16:"border_thickness";s:1:"0";s:12:"border_color";s:0:"";s:6:"shadow";s:3:"yes";s:15:"shadow_offset_x";s:1:"0";s:15:"shadow_offset_y";s:1:"0";s:4:"blur";s:1:"0";s:12:"shadow_color";s:0:"";s:7:"padding";s:1:"0";}s:6:"Flickr";a:17:{s:5:"title";s:6:"Flickr";s:10:"icon_width";s:4:"50px";s:11:"icon_height";s:4:"50px";s:4:"link";s:18:"http://Flicker.com";s:12:"tooltip_text";s:12:"FLicker Link";s:11:"link_target";s:10:"New Window";s:10:"image_name";s:6:"Flickr";s:5:"image";s:118:"http://192.168.1.70/accesspress-social-icons/wp-content/plugins/accesspress-social-icons/icon-sets/png/set1/flickr.png";s:11:"border_type";s:4:"none";s:16:"border_thickness";s:1:"0";s:12:"border_color";s:0:"";s:6:"shadow";s:3:"yes";s:15:"shadow_offset_x";s:1:"0";s:15:"shadow_offset_y";s:1:"0";s:4:"blur";s:1:"0";s:12:"shadow_color";s:0:"";s:7:"padding";s:1:"0";}s:10:"Foursquare";a:17:{s:5:"title";s:10:"Foursquare";s:10:"icon_width";s:4:"50px";s:11:"icon_height";s:4:"50px";s:4:"link";s:21:"http://foursquare.com";s:12:"tooltip_text";s:0:"";s:11:"link_target";s:10:"New Window";s:10:"image_name";s:10:"Foursquare";s:5:"image";s:122:"http://192.168.1.70/accesspress-social-icons/wp-content/plugins/accesspress-social-icons/icon-sets/png/set1/foursquare.png";s:11:"border_type";s:4:"none";s:16:"border_thickness";s:1:"0";s:12:"border_color";s:0:"";s:6:"shadow";s:3:"yes";s:15:"shadow_offset_x";s:1:"0";s:15:"shadow_offset_y";s:1:"0";s:4:"blur";s:1:"0";s:12:"shadow_color";s:0:"";s:7:"padding";s:1:"0";}s:10:"GooglePlus";a:17:{s:5:"title";s:0:"";s:10:"icon_width";s:0:"";s:11:"icon_height";s:0:"";s:4:"link";s:0:"";s:12:"tooltip_text";s:0:"";s:11:"link_target";s:10:"New Window";s:10:"image_name";s:10:"GooglePlus";s:5:"image";s:122:"http://192.168.1.70/accesspress-social-icons/wp-content/plugins/accesspress-social-icons/icon-sets/png/set1/googlePlus.png";s:11:"border_type";s:4:"none";s:16:"border_thickness";s:1:"0";s:12:"border_color";s:0:"";s:6:"shadow";s:3:"yes";s:15:"shadow_offset_x";s:1:"0";s:15:"shadow_offset_y";s:1:"0";s:4:"blur";s:1:"0";s:12:"shadow_color";s:0:"";s:7:"padding";s:1:"0";}s:9:"Instagram";a:17:{s:5:"title";s:0:"";s:10:"icon_width";s:0:"";s:11:"icon_height";s:0:"";s:4:"link";s:0:"";s:12:"tooltip_text";s:0:"";s:11:"link_target";s:10:"New Window";s:10:"image_name";s:9:"Instagram";s:5:"image";s:121:"http://192.168.1.70/accesspress-social-icons/wp-content/plugins/accesspress-social-icons/icon-sets/png/set1/instagram.png";s:11:"border_type";s:4:"none";s:16:"border_thickness";s:1:"0";s:12:"border_color";s:0:"";s:6:"shadow";s:3:"yes";s:15:"shadow_offset_x";s:1:"0";s:15:"shadow_offset_y";s:1:"0";s:4:"blur";s:1:"0";s:12:"shadow_color";s:0:"";s:7:"padding";s:1:"0";}s:8:"Linkedin";a:17:{s:5:"title";s:0:"";s:10:"icon_width";s:0:"";s:11:"icon_height";s:0:"";s:4:"link";s:0:"";s:12:"tooltip_text";s:0:"";s:11:"link_target";s:10:"New Window";s:10:"image_name";s:8:"Linkedin";s:5:"image";s:120:"http://192.168.1.70/accesspress-social-icons/wp-content/plugins/accesspress-social-icons/icon-sets/png/set1/linkedin.png";s:11:"border_type";s:4:"none";s:16:"border_thickness";s:1:"0";s:12:"border_color";s:0:"";s:6:"shadow";s:3:"yes";s:15:"shadow_offset_x";s:1:"0";s:15:"shadow_offset_y";s:1:"0";s:4:"blur";s:1:"0";s:12:"shadow_color";s:0:"";s:7:"padding";s:1:"0";}s:6:"Meetme";a:17:{s:5:"title";s:0:"";s:10:"icon_width";s:0:"";s:11:"icon_height";s:0:"";s:4:"link";s:0:"";s:12:"tooltip_text";s:0:"";s:11:"link_target";s:10:"New Window";s:10:"image_name";s:6:"Meetme";s:5:"image";s:118:"http://192.168.1.70/accesspress-social-icons/wp-content/plugins/accesspress-social-icons/icon-sets/png/set1/meetme.png";s:11:"border_type";s:4:"none";s:16:"border_thickness";s:1:"0";s:12:"border_color";s:0:"";s:6:"shadow";s:3:"yes";s:15:"shadow_offset_x";s:1:"0";s:15:"shadow_offset_y";s:1:"0";s:4:"blur";s:1:"0";s:12:"shadow_color";s:0:"";s:7:"padding";s:1:"0";}s:6:"Meetup";a:17:{s:5:"title";s:0:"";s:10:"icon_width";s:0:"";s:11:"icon_height";s:0:"";s:4:"link";s:0:"";s:12:"tooltip_text";s:0:"";s:11:"link_target";s:10:"New Window";s:10:"image_name";s:6:"Meetup";s:5:"image";s:118:"http://192.168.1.70/accesspress-social-icons/wp-content/plugins/accesspress-social-icons/icon-sets/png/set1/meetup.png";s:11:"border_type";s:4:"none";s:16:"border_thickness";s:1:"0";s:12:"border_color";s:0:"";s:6:"shadow";s:3:"yes";s:15:"shadow_offset_x";s:1:"0";s:15:"shadow_offset_y";s:1:"0";s:4:"blur";s:1:"0";s:12:"shadow_color";s:0:"";s:7:"padding";s:1:"0";}s:7:"Myspace";a:17:{s:5:"title";s:0:"";s:10:"icon_width";s:0:"";s:11:"icon_height";s:0:"";s:4:"link";s:0:"";s:12:"tooltip_text";s:0:"";s:11:"link_target";s:10:"New Window";s:10:"image_name";s:7:"Myspace";s:5:"image";s:119:"http://192.168.1.70/accesspress-social-icons/wp-content/plugins/accesspress-social-icons/icon-sets/png/set1/myspace.png";s:11:"border_type";s:4:"none";s:16:"border_thickness";s:1:"0";s:12:"border_color";s:0:"";s:6:"shadow";s:3:"yes";s:15:"shadow_offset_x";s:1:"0";s:15:"shadow_offset_y";s:1:"0";s:4:"blur";s:1:"0";s:12:"shadow_color";s:0:"";s:7:"padding";s:1:"0";}s:9:"Pinterest";a:17:{s:5:"title";s:0:"";s:10:"icon_width";s:0:"";s:11:"icon_height";s:0:"";s:4:"link";s:0:"";s:12:"tooltip_text";s:0:"";s:11:"link_target";s:10:"New Window";s:10:"image_name";s:9:"Pinterest";s:5:"image";s:121:"http://192.168.1.70/accesspress-social-icons/wp-content/plugins/accesspress-social-icons/icon-sets/png/set1/pinterest.png";s:11:"border_type";s:4:"none";s:16:"border_thickness";s:1:"0";s:12:"border_color";s:0:"";s:6:"shadow";s:3:"yes";s:15:"shadow_offset_x";s:1:"0";s:15:"shadow_offset_y";s:1:"0";s:4:"blur";s:1:"0";s:12:"shadow_color";s:0:"";s:7:"padding";s:1:"0";}s:6:"Reddit";a:17:{s:5:"title";s:0:"";s:10:"icon_width";s:0:"";s:11:"icon_height";s:0:"";s:4:"link";s:0:"";s:12:"tooltip_text";s:0:"";s:11:"link_target";s:10:"New Window";s:10:"image_name";s:6:"Reddit";s:5:"image";s:118:"http://192.168.1.70/accesspress-social-icons/wp-content/plugins/accesspress-social-icons/icon-sets/png/set1/reddit.png";s:11:"border_type";s:4:"none";s:16:"border_thickness";s:1:"0";s:12:"border_color";s:0:"";s:6:"shadow";s:3:"yes";s:15:"shadow_offset_x";s:1:"0";s:15:"shadow_offset_y";s:1:"0";s:4:"blur";s:1:"0";s:12:"shadow_color";s:0:"";s:7:"padding";s:1:"0";}s:11:"Stumbleupon";a:17:{s:5:"title";s:0:"";s:10:"icon_width";s:0:"";s:11:"icon_height";s:0:"";s:4:"link";s:0:"";s:12:"tooltip_text";s:0:"";s:11:"link_target";s:10:"New Window";s:10:"image_name";s:11:"Stumbleupon";s:5:"image";s:123:"http://192.168.1.70/accesspress-social-icons/wp-content/plugins/accesspress-social-icons/icon-sets/png/set1/stumbleupon.png";s:11:"border_type";s:4:"none";s:16:"border_thickness";s:1:"0";s:12:"border_color";s:0:"";s:6:"shadow";s:3:"yes";s:15:"shadow_offset_x";s:1:"0";s:15:"shadow_offset_y";s:1:"0";s:4:"blur";s:1:"0";s:12:"shadow_color";s:0:"";s:7:"padding";s:1:"0";}s:6:"Tagged";a:17:{s:5:"title";s:0:"";s:10:"icon_width";s:0:"";s:11:"icon_height";s:0:"";s:4:"link";s:0:"";s:12:"tooltip_text";s:0:"";s:11:"link_target";s:10:"New Window";s:10:"image_name";s:6:"Tagged";s:5:"image";s:118:"http://192.168.1.70/accesspress-social-icons/wp-content/plugins/accesspress-social-icons/icon-sets/png/set1/tagged.png";s:11:"border_type";s:4:"none";s:16:"border_thickness";s:1:"0";s:12:"border_color";s:0:"";s:6:"shadow";s:3:"yes";s:15:"shadow_offset_x";s:1:"0";s:15:"shadow_offset_y";s:1:"0";s:4:"blur";s:1:"0";s:12:"shadow_color";s:0:"";s:7:"padding";s:1:"0";}s:6:"Tumblr";a:17:{s:5:"title";s:0:"";s:10:"icon_width";s:0:"";s:11:"icon_height";s:0:"";s:4:"link";s:0:"";s:12:"tooltip_text";s:0:"";s:11:"link_target";s:10:"New Window";s:10:"image_name";s:6:"Tumblr";s:5:"image";s:118:"http://192.168.1.70/accesspress-social-icons/wp-content/plugins/accesspress-social-icons/icon-sets/png/set1/tumblr.png";s:11:"border_type";s:4:"none";s:16:"border_thickness";s:1:"0";s:12:"border_color";s:0:"";s:6:"shadow";s:3:"yes";s:15:"shadow_offset_x";s:1:"0";s:15:"shadow_offset_y";s:1:"0";s:4:"blur";s:1:"0";s:12:"shadow_color";s:0:"";s:7:"padding";s:1:"0";}s:7:"Twitter";a:17:{s:5:"title";s:0:"";s:10:"icon_width";s:0:"";s:11:"icon_height";s:0:"";s:4:"link";s:0:"";s:12:"tooltip_text";s:0:"";s:11:"link_target";s:10:"New Window";s:10:"image_name";s:7:"Twitter";s:5:"image";s:119:"http://192.168.1.70/accesspress-social-icons/wp-content/plugins/accesspress-social-icons/icon-sets/png/set1/twitter.png";s:11:"border_type";s:4:"none";s:16:"border_thickness";s:1:"0";s:12:"border_color";s:0:"";s:6:"shadow";s:3:"yes";s:15:"shadow_offset_x";s:1:"0";s:15:"shadow_offset_y";s:1:"0";s:4:"blur";s:1:"0";s:12:"shadow_color";s:0:"";s:7:"padding";s:1:"0";}s:4:"Vine";a:17:{s:5:"title";s:0:"";s:10:"icon_width";s:0:"";s:11:"icon_height";s:0:"";s:4:"link";s:0:"";s:12:"tooltip_text";s:0:"";s:11:"link_target";s:10:"New Window";s:10:"image_name";s:4:"Vine";s:5:"image";s:116:"http://192.168.1.70/accesspress-social-icons/wp-content/plugins/accesspress-social-icons/icon-sets/png/set1/vine.png";s:11:"border_type";s:4:"none";s:16:"border_thickness";s:1:"0";s:12:"border_color";s:0:"";s:6:"shadow";s:3:"yes";s:15:"shadow_offset_x";s:1:"0";s:15:"shadow_offset_y";s:1:"0";s:4:"blur";s:1:"0";s:12:"shadow_color";s:0:"";s:7:"padding";s:1:"0";}s:2:"Vk";a:17:{s:5:"title";s:0:"";s:10:"icon_width";s:0:"";s:11:"icon_height";s:0:"";s:4:"link";s:0:"";s:12:"tooltip_text";s:0:"";s:11:"link_target";s:10:"New Window";s:10:"image_name";s:2:"Vk";s:5:"image";s:114:"http://192.168.1.70/accesspress-social-icons/wp-content/plugins/accesspress-social-icons/icon-sets/png/set1/vk.png";s:11:"border_type";s:4:"none";s:16:"border_thickness";s:1:"0";s:12:"border_color";s:0:"";s:6:"shadow";s:3:"yes";s:15:"shadow_offset_x";s:1:"0";s:15:"shadow_offset_y";s:1:"0";s:4:"blur";s:1:"0";s:12:"shadow_color";s:0:"";s:7:"padding";s:1:"0";}s:7:"Youtube";a:17:{s:5:"title";s:0:"";s:10:"icon_width";s:0:"";s:11:"icon_height";s:0:"";s:4:"link";s:0:"";s:12:"tooltip_text";s:0:"";s:11:"link_target";s:10:"New Window";s:10:"image_name";s:7:"Youtube";s:5:"image";s:119:"http://192.168.1.70/accesspress-social-icons/wp-content/plugins/accesspress-social-icons/icon-sets/png/set1/youtube.png";s:11:"border_type";s:4:"none";s:16:"border_thickness";s:1:"0";s:12:"border_color";s:0:"";s:6:"shadow";s:3:"yes";s:15:"shadow_offset_x";s:1:"0";s:15:"shadow_offset_y";s:1:"0";s:4:"blur";s:1:"0";s:12:"shadow_color";s:0:"";s:7:"padding";s:1:"0";}}
25
- [icon_extra] => a:4:{s:13:"icon_set_type";s:1:"2";s:13:"icon_theme_id";s:1:"1";s:11:"num_columns";s:0:"";s:16:"tooltip_position";s:6:"bottom";}
26
- )
27
- * */
28
- foreach($icon_set as $key=>$val){
29
  $$key = $val;
30
- }
31
- $icon_set_name .=' -copy';
32
- $wpdb->insert(
33
- $table_name,
34
- array(
35
  'icon_set_name' => $icon_set_name,
36
  'icon_display'=>$icon_display,
37
  'num_rows' => $num_rows,
@@ -42,25 +23,24 @@ array(
42
  'opacity_hover'=>$opacity_hover,
43
  'icon_animation'=>$icon_animation,
44
  'icon_details'=>$icon_details,
45
- 'icon_extra'=>$icon_extra
46
  ),
47
- array(
48
  '%s',
49
  '%s',
50
  '%s',
51
  '%s',
52
- '%d',
53
  '%s',
54
  '%s',
55
  '%s',
56
  '%s',
57
  '%s',
58
- '%s'
59
  )
60
  );
61
- //$_SESSION['aps_message'] = __('Icon Set Copied Successfully','accesspress-social-icons');
62
- wp_redirect(admin_url().'admin.php?page=aps-social&message=2');
63
  exit;
64
  }else{
65
- die(__('No icons found for this icon id','accesspress-social-icons'));
66
- }
6
  $icon_sets = $wpdb->get_results("SELECT * FROM $table_name where si_id = $si_id");
7
  if(!empty($icon_sets)){
8
  $icon_set = $icon_sets[0];
9
+ foreach($icon_set as $key=>$val){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  $$key = $val;
11
+ }
12
+ $icon_set_name .=' -copy';
13
+ $wpdb->insert(
14
+ $table_name,
15
+ array(
16
  'icon_set_name' => $icon_set_name,
17
  'icon_display'=>$icon_display,
18
  'num_rows' => $num_rows,
23
  'opacity_hover'=>$opacity_hover,
24
  'icon_animation'=>$icon_animation,
25
  'icon_details'=>$icon_details,
26
+ 'icon_extra'=>$icon_extra
27
  ),
28
+ array(
29
  '%s',
30
  '%s',
31
  '%s',
32
  '%s',
33
+ '%d',
34
  '%s',
35
  '%s',
36
  '%s',
37
  '%s',
38
  '%s',
39
+ '%s'
40
  )
41
  );
42
+ wp_redirect(admin_url().'admin.php?page=aps-social&message=2');
 
43
  exit;
44
  }else{
45
+ die(__('No icons found for this icon id','accesspress-social-icons'));
46
+ }
inc/backend/delete-icon-set.php CHANGED
@@ -4,6 +4,5 @@ global $wpdb;
4
  $si_id = intval(sanitize_text_field($_GET['si_id']));
5
  $table_name = $table_name = $wpdb->prefix . "aps_social_icons";
6
  $wpdb->delete( $table_name, array( 'si_id' => $si_id ), array( '%d' ) );
7
- //$_SESSION['aps_message'] = __('Icon set deleted successfully.','accesspress-social-icons');
8
  wp_redirect(admin_url().'admin.php?page=aps-social&message=3');
9
- exit;
4
  $si_id = intval(sanitize_text_field($_GET['si_id']));
5
  $table_name = $table_name = $wpdb->prefix . "aps_social_icons";
6
  $wpdb->delete( $table_name, array( 'si_id' => $si_id ), array( '%d' ) );
 
7
  wp_redirect(admin_url().'admin.php?page=aps-social&message=3');
8
+ exit;
inc/backend/edit-icon-set.php CHANGED
@@ -86,7 +86,7 @@ $icon_extra = unserialize($icon_set->icon_extra);
86
  <div class="aps-field">
87
  <input type="number" name="num_columns" value='<?php
88
  if (isset($icon_extra['num_columns'])) {
89
- echo $icon_extra['num_columns'];
90
  }
91
  ?>' min="1"/>
92
  </div>
@@ -227,7 +227,7 @@ $icon_extra = unserialize($icon_set->icon_extra);
227
  $icon_details = unserialize($icon_set->icon_details);
228
  //$this->print_array($icon_details);
229
  $icon_counter = 0;
230
- $si_id = $_GET['si_id'];
231
  if(!empty($icon_details)):
232
  foreach ($icon_details as $title => $icon_detail) {
233
  $icon_counter++;
86
  <div class="aps-field">
87
  <input type="number" name="num_columns" value='<?php
88
  if (isset($icon_extra['num_columns'])) {
89
+ echo esc_attr($icon_extra['num_columns']);
90
  }
91
  ?>' min="1"/>
92
  </div>
227
  $icon_details = unserialize($icon_set->icon_details);
228
  //$this->print_array($icon_details);
229
  $icon_counter = 0;
230
+ $si_id = intval(sanitize_text_field($_GET['si_id']));
231
  if(!empty($icon_details)):
232
  foreach ($icon_details as $title => $icon_detail) {
233
  $icon_counter++;
inc/backend/how-to-use.php CHANGED
@@ -1,9 +1,9 @@
 
1
  <div class="wrap aps-clear">
2
  <div class="aps-add-set-wrapper">
3
  <div class="aps-panel">
4
  <?php include('panel-head.php'); ?>
5
  <div class="aps-panel-body">
6
-
7
  <h2><?php _e('How to use', 'accesspress-social-icons'); ?></h2>
8
  <p>For full <strong>documentation</strong> on the plugin, please visit <a href="https://accesspressthemes.com/documentation/accesspress-social-icons/" target="_blank">here</a></p>
9
  <p><?php esc_html_e('For displaying the icons in the frontend, you need to build the icon set first.You can build unlimited number of icons sets which will generate the shortcode for each icons set.And also the build icon sets will be available in the widget section too.', 'accesspress-social-icons'); ?>
@@ -20,10 +20,8 @@
20
  <p><?php esc_html_e('There are the options to set margin between each icons, animation for icons , set the icons display position as vertical or horizontal. If vertical then you can set number or columns and if horizontal then you can set number of rows to display the icons.', 'accesspress-social-icons'); ?></p>
21
  <p><?php esc_html_e('You can also enable or disable the tooltip option for each icon.If you have enabled the tooltip then you can set the tooltip text and background color too as per your theme.', 'accesspress-social-icons'); ?></p>
22
  <p><?php esc_html_e('You can also set the opacity of the non hovered icons i.e how much transparent when your icons is non hovered.', 'accesspress-social-icons'); ?></p>
23
-
24
  </div>
25
  </div>
26
  </div>
27
  <?php include_once('promobar.php'); ?>
28
  </div>
29
-
1
+ <?php defined('ABSPATH') or die("No script kiddies please!"); ?>
2
  <div class="wrap aps-clear">
3
  <div class="aps-add-set-wrapper">
4
  <div class="aps-panel">
5
  <?php include('panel-head.php'); ?>
6
  <div class="aps-panel-body">
 
7
  <h2><?php _e('How to use', 'accesspress-social-icons'); ?></h2>
8
  <p>For full <strong>documentation</strong> on the plugin, please visit <a href="https://accesspressthemes.com/documentation/accesspress-social-icons/" target="_blank">here</a></p>
9
  <p><?php esc_html_e('For displaying the icons in the frontend, you need to build the icon set first.You can build unlimited number of icons sets which will generate the shortcode for each icons set.And also the build icon sets will be available in the widget section too.', 'accesspress-social-icons'); ?>
20
  <p><?php esc_html_e('There are the options to set margin between each icons, animation for icons , set the icons display position as vertical or horizontal. If vertical then you can set number or columns and if horizontal then you can set number of rows to display the icons.', 'accesspress-social-icons'); ?></p>
21
  <p><?php esc_html_e('You can also enable or disable the tooltip option for each icon.If you have enabled the tooltip then you can set the tooltip text and background color too as per your theme.', 'accesspress-social-icons'); ?></p>
22
  <p><?php esc_html_e('You can also set the opacity of the non hovered icons i.e how much transparent when your icons is non hovered.', 'accesspress-social-icons'); ?></p>
 
23
  </div>
24
  </div>
25
  </div>
26
  <?php include_once('promobar.php'); ?>
27
  </div>
 
inc/backend/icon-adder.php CHANGED
@@ -10,7 +10,6 @@
10
  <div class="aps-error"></div>
11
  </div><!--aps-field-wrapper-->
12
  </div>
13
-
14
  <div class="aps-col-full">
15
  <div class="aps-image-icon">
16
  <div class="aps-field-wrapper form-field">
10
  <div class="aps-error"></div>
11
  </div><!--aps-field-wrapper-->
12
  </div>
 
13
  <div class="aps-col-full">
14
  <div class="aps-image-icon">
15
  <div class="aps-field-wrapper form-field">
inc/backend/icon-themes.php CHANGED
@@ -18,4 +18,4 @@
18
  </div>
19
  </div>
20
  </div>
21
- </div>
18
  </div>
19
  </div>
20
  </div>
21
+ </div>
inc/backend/list-icon-sets.php CHANGED
@@ -1,4 +1,4 @@
1
- <?php
2
  for ($i = 1; $i <= 1; $i++) {
3
  ?>
4
  <div class="aps-set-wrapper">
1
+ <?php defined('ABSPATH') or die("No script kiddies please!");
2
  for ($i = 1; $i <= 1; $i++) {
3
  ?>
4
  <div class="aps-set-wrapper">
inc/backend/panel-head.php CHANGED
@@ -1,3 +1,4 @@
 
1
  <div class="aps-panel-head">
2
  <div class="aps-row">
3
  <div class="aps-col-logo">
1
+ <?php defined('ABSPATH') or die("No script kiddies please!"); ?>
2
  <div class="aps-panel-head">
3
  <div class="aps-row">
4
  <div class="aps-col-logo">
inc/backend/save-set.php CHANGED
@@ -1,100 +1,4 @@
1
  <?php defined('ABSPATH') or die("No script kiddies please!");
2
- /**
3
- * Posted Variables
4
- * [action] => aps_add_new_set
5
- [set_name] => Testing Icon
6
- [display] => horizontal
7
- [num_rows] => 1
8
- [margins] => 5
9
- [tooltip] => 1
10
- [tooltip_bg] => #000000
11
- [tooltip_text_color] => #ffffff
12
- [icon_animation] => animation1
13
- [opacity_hover] => 0.75
14
- [icons] => Array
15
- (
16
- [Facebook] => Array
17
- (
18
- [title] => Facebook
19
- [icon_type] => image-icons
20
- [image] => http://192.168.1.70/ultimate-social/wp-content/plugins/accesspress-social/icon-sets/set1/facebook.png
21
- [icon_width] => 20
22
- [icon_height] => 20
23
- [link] => facebook.com
24
- [link_target] => New Window
25
- [tooltip_text] => Facebook Link
26
- [font_icon] =>
27
- [icon_size] =>
28
- [icon_bg] => 1
29
- [icon_bg_color] =>
30
- [icon_shape] => square
31
- [radius_top_left] =>
32
- [radius_top_right] =>
33
- [radius_bottom_left] =>
34
- [radius_bottom_right] =>
35
- [icon_color] =>
36
- [icon_bg_color_hover] =>
37
- [icon_color_hover] =>
38
- )
39
-
40
- [Twitter] => Array
41
- (
42
- [title] => Twitter
43
- [icon_type] => image-icons
44
- [image] => http://192.168.1.70/ultimate-social/wp-content/plugins/accesspress-social/icon-sets/set1/twitter.png
45
- [icon_width] => 20
46
- [icon_height] => 20
47
- [link] => twitter.com
48
- [link_target] => New Window
49
- [tooltip_text] => Twitter Link
50
- [font_icon] =>
51
- [icon_size] =>
52
- [icon_bg] => 1
53
- [icon_bg_color] =>
54
- [icon_shape] => square
55
- [radius_top_left] =>
56
- [radius_top_right] =>
57
- [radius_bottom_left] =>
58
- [radius_bottom_right] =>
59
- [icon_color] =>
60
- [icon_bg_color_hover] =>
61
- [icon_color_hover] =>
62
- )
63
-
64
- [Youtube] => Array
65
- (
66
- [title] => Youtube
67
- [icon_type] => image-icons
68
- [image] => http://192.168.1.70/ultimate-social/wp-content/plugins/accesspress-social/icon-sets/set1/youtube.png
69
- [icon_width] => 20
70
- [icon_height] => 20
71
- [link] => youtube.com
72
- [link_target] => New Window
73
- [tooltip_text] => Youtube Link
74
- [font_icon] =>
75
- [icon_size] =>
76
- [icon_bg] => 1
77
- [icon_bg_color] =>
78
- [icon_shape] => square
79
- [radius_top_left] =>
80
- [radius_top_right] =>
81
- [radius_bottom_left] =>
82
- [radius_bottom_right] =>
83
- [icon_color] =>
84
- [icon_bg_color_hover] =>
85
- [icon_color_hover] =>
86
- )
87
-
88
- )
89
-
90
- [aps_icon_background] => 0
91
- [aps_icon_shape] => square
92
- [aps_icon_set_submit] => Save icon set
93
- [aps_add_set_nonce] => 9bbc452ac3
94
- [_wp_http_referer] => /ultimate-social/wp-admin/admin.php?page=aps-social-add
95
- **/
96
-
97
- //$this->print_array($_POST);die();
98
  foreach($_POST as $key=>$val)
99
  {
100
  if($key=='icons')
@@ -104,7 +8,7 @@ foreach($_POST as $key=>$val)
104
  else
105
  {
106
  $$key = sanitize_text_field($val);
107
-
108
  }
109
  }
110
  foreach($icons as $key=>$val)
@@ -133,9 +37,9 @@ $icons = serialize($icons);
133
  $table_name = $wpdb->prefix . "aps_social_icons";
134
  if(isset($si_id))
135
  {
136
- $wpdb->update(
137
- $table_name,
138
- array(
139
  'icon_set_name' => $set_name,
140
  'icon_display'=>$display,
141
  'num_rows' => $num_rows,
@@ -146,31 +50,30 @@ if(isset($si_id))
146
  'opacity_hover'=>$opacity_hover,
147
  'icon_animation'=>$icon_animation,
148
  'icon_details'=>$icons,
149
- 'icon_extra'=>$icon_extra
150
  ),
151
- array('si_id'=>intval($si_id)),
152
- array(
153
  '%s',
154
  '%s',
155
  '%s',
156
  '%s',
157
- '%d',
158
  '%s',
159
  '%s',
160
  '%s',
161
  '%s',
162
  '%s',
163
- '%s'
164
  ),
165
  array('%d')
166
  );
167
- //$_SESSION['aps_message'] = __('Icon Set Updated Successfully','accesspress-social-icons');
168
  }
169
  else
170
  {
171
- $wpdb->insert(
172
- $table_name,
173
- array(
174
  'icon_set_name' => $set_name,
175
  'icon_display'=>$display,
176
  'num_rows' => $num_rows,
@@ -181,23 +84,22 @@ array(
181
  'opacity_hover'=>$opacity_hover,
182
  'icon_animation'=>$icon_animation,
183
  'icon_details'=>$icons,
184
- 'icon_extra'=>$icon_extra
185
  ),
186
- array(
187
  '%s',
188
  '%s',
189
  '%s',
190
  '%s',
191
- '%d',
192
  '%s',
193
  '%s',
194
  '%s',
195
  '%s',
196
  '%s',
197
- '%s'
198
  )
199
  );
200
- //$_SESSION['aps_message'] = __('Icon Set Saved Successfully','accesspress-social-icons');
201
  }
202
  if(isset($_POST['current_page']))
203
  {
@@ -205,8 +107,6 @@ if(isset($_POST['current_page']))
205
  }
206
  else
207
  {
208
- wp_redirect(admin_url().'admin.php?page=aps-social&message=1');
209
  }
210
-
211
-
212
  exit;
1
  <?php defined('ABSPATH') or die("No script kiddies please!");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  foreach($_POST as $key=>$val)
3
  {
4
  if($key=='icons')
8
  else
9
  {
10
  $$key = sanitize_text_field($val);
11
+
12
  }
13
  }
14
  foreach($icons as $key=>$val)
37
  $table_name = $wpdb->prefix . "aps_social_icons";
38
  if(isset($si_id))
39
  {
40
+ $wpdb->update(
41
+ $table_name,
42
+ array(
43
  'icon_set_name' => $set_name,
44
  'icon_display'=>$display,
45
  'num_rows' => $num_rows,
50
  'opacity_hover'=>$opacity_hover,
51
  'icon_animation'=>$icon_animation,
52
  'icon_details'=>$icons,
53
+ 'icon_extra'=>$icon_extra
54
  ),
55
+ array('si_id'=>intval($si_id)),
56
+ array(
57
  '%s',
58
  '%s',
59
  '%s',
60
  '%s',
61
+ '%d',
62
  '%s',
63
  '%s',
64
  '%s',
65
  '%s',
66
  '%s',
67
+ '%s'
68
  ),
69
  array('%d')
70
  );
 
71
  }
72
  else
73
  {
74
+ $wpdb->insert(
75
+ $table_name,
76
+ array(
77
  'icon_set_name' => $set_name,
78
  'icon_display'=>$display,
79
  'num_rows' => $num_rows,
84
  'opacity_hover'=>$opacity_hover,
85
  'icon_animation'=>$icon_animation,
86
  'icon_details'=>$icons,
87
+ 'icon_extra'=>$icon_extra
88
  ),
89
+ array(
90
  '%s',
91
  '%s',
92
  '%s',
93
  '%s',
94
+ '%d',
95
  '%s',
96
  '%s',
97
  '%s',
98
  '%s',
99
  '%s',
100
+ '%s'
101
  )
102
  );
 
103
  }
104
  if(isset($_POST['current_page']))
105
  {
107
  }
108
  else
109
  {
110
+ wp_redirect(admin_url().'admin.php?page=aps-social&message=1');
111
  }
 
 
112
  exit;
inc/backend/theme-icon-set.php CHANGED
@@ -14,20 +14,20 @@
14
  <div class="aps-col-full">
15
  <div class="aps-icon-preview form-field">
16
  <label><?php _e('Icon Preview', 'accesspress-social-icons'); ?></label>
17
- <img src="<?php echo APS_ICONS_DIR . '/' . $sub_folder . '/' . $folder . '/' . $file; ?>" data-image-name="<?php echo $filename?>"/>
18
  </div>
19
 
20
  <div class="aps-field-wrapper form-field">
21
  <label><?php _e('Icon Title', 'accesspress-social-icons'); ?></label>
22
  <div class="aps-field">
23
- <input type="text" name="icons[<?php echo $filename; ?>][title]" placeholder="eg. facebook" />
24
  </div>
25
  </div><!--aps-field-wrapper-->
26
  <?php if ($sub_folder == 'svg') { ?>
27
  <div class="aps-field-wrapper form-field">
28
  <label><?php _e('Icon Background Color', 'accesspress-social-icons'); ?></label>
29
  <div class="aps-field">
30
- <input type="text" name="icons[<?php echo $filename; ?>][icon_bg_color]" class="aps-color-picker"/>
31
  </div>
32
  </div><!--aps-field-wrapper-->
33
  <?php } ?>
@@ -36,7 +36,7 @@
36
  <div class="aps-field-wrapper form-field">
37
  <label><?php _e('Icon Width', 'accesspress-social-icons'); ?></label>
38
  <div class="aps-field">
39
- <input type="text" name="icons[<?php echo $filename; ?>][icon_width]" class="aps_theme_icon_width" placeholder="eg. 32px"/>
40
  </div>
41
  <div class="aps-option-note">
42
  <p><?php _e('Please enter the width for the icon in px.', 'accesspress-social-icons'); ?></p>
@@ -47,7 +47,7 @@
47
  <div class="aps-field-wrapper form-field">
48
  <label><?php _e('Icon Height', 'accesspress-social-icons'); ?></label>
49
  <div class="aps-field">
50
- <input type="text" name="icons[<?php echo $filename; ?>][icon_height]" class="aps_theme_icon_height" placeholder="eg. 32px" />
51
  </div>
52
  <div class="aps-option-note"><p><?php _e('Please enter the height for the icon in px.', 'accesspress-social-icons'); ?></p></div>
53
  </div><!--aps-field-wrapper-->
@@ -56,7 +56,7 @@
56
  <div class="aps-field-wrapper form-field">
57
  <label><?php _e('Icon Link', 'accesspress-social-icons'); ?></label>
58
  <div class="aps-field">
59
- <input type="text" name="icons[<?php echo $filename; ?>][link]" placeholder="eg. https://www.facebook.com" />
60
  </div>
61
  </div><!--aps-field-wrapper-->
62
  </div>
@@ -64,7 +64,7 @@
64
  <div class="aps-field-wrapper form-field">
65
  <label><?php _e('Tooltip Text', 'accesspress-social-icons'); ?></label>
66
  <div class="aps-field">
67
- <input type="text" name="icons[<?php echo $filename; ?>][tooltip_text]" placeholder="your tooltip text"/>
68
  </div>
69
  </div><!--aps-field-wrapper-->
70
  </div>
@@ -72,7 +72,7 @@
72
  <div class="aps-field-wrapper form-field">
73
  <label><?php _e('Icon Link Target', 'accesspress-social-icons'); ?></label>
74
  <div class="aps-field">
75
- <select name="icons[<?php echo $filename; ?>][link_target]" class="aps-form-control">
76
  <option value="New Window">New Window</option>
77
  <option value="Same Window">Same Window</option>
78
  </select>
@@ -81,16 +81,16 @@
81
  </div>
82
  </div>
83
  </div>
84
- <input type="hidden" name="icons[<?php echo $filename; ?>][image_name]" value="<?php echo $filename?>" />
85
- <input type="hidden" name="icons[<?php echo $filename; ?>][image]" value="<?php echo APS_ICONS_DIR . '/' . $sub_folder . '/' . $folder . '/' . $file; ?>" class="set_image_reference" data-image-name="<?php echo $filename;?>"/>
86
- <input type="hidden" name="icons[<?php echo $filename; ?>][border_type]" value="none"/>
87
- <input type="hidden" name="icons[<?php echo $filename; ?>][border_thickness]" value="0"/>
88
- <input type="hidden" name="icons[<?php echo $filename; ?>][border_color]" value=""/>
89
- <input type="hidden" name="icons[<?php echo $filename; ?>][shadow]" value="yes"/>
90
- <input type="hidden" name="icons[<?php echo $filename; ?>][shadow_offset_x]" value="0"/>
91
- <input type="hidden" name="icons[<?php echo $filename; ?>][shadow_offset_y]" value="0"/>
92
- <input type="hidden" name="icons[<?php echo $filename; ?>][blur]" value="0"/>
93
- <input type="hidden" name="icons[<?php echo $filename; ?>][shadow_color]" value=""/>
94
- <input type="hidden" name="icons[<?php echo $filename; ?>][padding]" value="0"/>
95
 
96
  </li>
14
  <div class="aps-col-full">
15
  <div class="aps-icon-preview form-field">
16
  <label><?php _e('Icon Preview', 'accesspress-social-icons'); ?></label>
17
+ <img src="<?php echo APS_ICONS_DIR . '/' . $sub_folder . '/' . $folder . '/' . $file; ?>" data-image-name="<?php echo esc_attr($filename); ?>"/>
18
  </div>
19
 
20
  <div class="aps-field-wrapper form-field">
21
  <label><?php _e('Icon Title', 'accesspress-social-icons'); ?></label>
22
  <div class="aps-field">
23
+ <input type="text" name="icons[<?php echo esc_attr($filename); ?>][title]" placeholder="eg. facebook" />
24
  </div>
25
  </div><!--aps-field-wrapper-->
26
  <?php if ($sub_folder == 'svg') { ?>
27
  <div class="aps-field-wrapper form-field">
28
  <label><?php _e('Icon Background Color', 'accesspress-social-icons'); ?></label>
29
  <div class="aps-field">
30
+ <input type="text" name="icons[<?php echo esc_attr($filename); ?>][icon_bg_color]" class="aps-color-picker"/>
31
  </div>
32
  </div><!--aps-field-wrapper-->
33
  <?php } ?>
36
  <div class="aps-field-wrapper form-field">
37
  <label><?php _e('Icon Width', 'accesspress-social-icons'); ?></label>
38
  <div class="aps-field">
39
+ <input type="text" name="icons[<?php echo esc_attr($filename); ?>][icon_width]" class="aps_theme_icon_width" placeholder="eg. 32px"/>
40
  </div>
41
  <div class="aps-option-note">
42
  <p><?php _e('Please enter the width for the icon in px.', 'accesspress-social-icons'); ?></p>
47
  <div class="aps-field-wrapper form-field">
48
  <label><?php _e('Icon Height', 'accesspress-social-icons'); ?></label>
49
  <div class="aps-field">
50
+ <input type="text" name="icons[<?php echo esc_attr($filename); ?>][icon_height]" class="aps_theme_icon_height" placeholder="eg. 32px" />
51
  </div>
52
  <div class="aps-option-note"><p><?php _e('Please enter the height for the icon in px.', 'accesspress-social-icons'); ?></p></div>
53
  </div><!--aps-field-wrapper-->
56
  <div class="aps-field-wrapper form-field">
57
  <label><?php _e('Icon Link', 'accesspress-social-icons'); ?></label>
58
  <div class="aps-field">
59
+ <input type="text" name="icons[<?php echo esc_attr($filename); ?>][link]" placeholder="eg. https://www.facebook.com" />
60
  </div>
61
  </div><!--aps-field-wrapper-->
62
  </div>
64
  <div class="aps-field-wrapper form-field">
65
  <label><?php _e('Tooltip Text', 'accesspress-social-icons'); ?></label>
66
  <div class="aps-field">
67
+ <input type="text" name="icons[<?php echo esc_attr($filename); ?>][tooltip_text]" placeholder="your tooltip text"/>
68
  </div>
69
  </div><!--aps-field-wrapper-->
70
  </div>
72
  <div class="aps-field-wrapper form-field">
73
  <label><?php _e('Icon Link Target', 'accesspress-social-icons'); ?></label>
74
  <div class="aps-field">
75
+ <select name="icons[<?php echo esc_attr($filename); ?>][link_target]" class="aps-form-control">
76
  <option value="New Window">New Window</option>
77
  <option value="Same Window">Same Window</option>
78
  </select>
81
  </div>
82
  </div>
83
  </div>
84
+ <input type="hidden" name="icons[<?php echo esc_attr($filename); ?>][image_name]" value="<?php echo esc_attr($filename); ?>" />
85
+ <input type="hidden" name="icons[<?php echo esc_attr($filename); ?>][image]" value="<?php echo APS_ICONS_DIR . '/' . $sub_folder . '/' . $folder . '/' . $file; ?>" class="set_image_reference" data-image-name="<?php echo $filename;?>"/>
86
+ <input type="hidden" name="icons[<?php echo esc_attr($filename); ?>][border_type]" value="none"/>
87
+ <input type="hidden" name="icons[<?php echo esc_attr($filename); ?>][border_thickness]" value="0"/>
88
+ <input type="hidden" name="icons[<?php echo esc_attr($filename); ?>][border_color]" value=""/>
89
+ <input type="hidden" name="icons[<?php echo esc_attr($filename); ?>][shadow]" value="yes"/>
90
+ <input type="hidden" name="icons[<?php echo esc_attr($filename); ?>][shadow_offset_x]" value="0"/>
91
+ <input type="hidden" name="icons[<?php echo esc_attr($filename); ?>][shadow_offset_y]" value="0"/>
92
+ <input type="hidden" name="icons[<?php echo esc_attr($filename); ?>][blur]" value="0"/>
93
+ <input type="hidden" name="icons[<?php echo esc_attr($filename); ?>][shadow_color]" value=""/>
94
+ <input type="hidden" name="icons[<?php echo esc_attr($filename); ?>][padding]" value="0"/>
95
 
96
  </li>
inc/backend/widgets.php CHANGED
@@ -1,10 +1,8 @@
1
- <?php defined('ABSPATH') or die("No script kiddies please!");?>
2
- <?php
3
  /**
4
  * Adds Foo_Widget widget.
5
  */
6
  class APS_Widget extends WP_Widget {
7
-
8
  /**
9
  * Register widget with WordPress.
10
  */
@@ -25,8 +23,7 @@ class APS_Widget extends WP_Widget {
25
  * @param array $instance Saved values from database.
26
  */
27
  public function widget( $args, $instance ) {
28
-
29
- echo $args['before_widget'];
30
  if ( ! empty( $instance['title'] ) ) {
31
  echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ). $args['after_title'];
32
  }
@@ -60,13 +57,13 @@ class APS_Widget extends WP_Widget {
60
  {
61
  $si_id = '';
62
  }
63
- global $wpdb;
64
  $table_name = $table_name = $wpdb->prefix . "aps_social_icons";
65
  $icon_sets = $wpdb->get_results("SELECT * FROM $table_name");
66
  ?>
67
  <p>
68
-
69
- <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ,'accesspress-social-icons'); ?></label>
70
  <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>">
71
  </p>
72
  <p>
@@ -76,11 +73,11 @@ class APS_Widget extends WP_Widget {
76
  <?php foreach($icon_sets as $icon_set){
77
  ?>
78
  <option value="<?php echo $icon_set->si_id;?>" <?php if($si_id==$icon_set->si_id){?>selected="selected"<?php }?>><?php echo $icon_set->icon_set_name;?></option>
79
- <?php
80
  }?>
81
  </select>
82
  </p>
83
- <?php
84
  }
85
 
86
  /**
@@ -94,17 +91,9 @@ class APS_Widget extends WP_Widget {
94
  * @return array Updated safe values to be saved.
95
  */
96
  public function update( $new_instance, $old_instance ) {
97
- //die(print_r($new_instance));
98
  $instance = array();
99
  $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
100
- $instance['si_id'] = (!empty($new_instance['si_id']))?$new_instance['si_id']:'';
101
  return $instance;
102
  }
103
-
104
-
105
  } // class Foo_Widget
106
- //function register_foo_widget() {
107
- // register_widget( 'Foo_Widget' );
108
- //}
109
- //add_action( 'widgets_init', 'register_foo_widget' );
110
- ?>
1
+ <?php defined('ABSPATH') or die("No script kiddies please!");
 
2
  /**
3
  * Adds Foo_Widget widget.
4
  */
5
  class APS_Widget extends WP_Widget {
 
6
  /**
7
  * Register widget with WordPress.
8
  */
23
  * @param array $instance Saved values from database.
24
  */
25
  public function widget( $args, $instance ) {
26
+ echo $args['before_widget'];
 
27
  if ( ! empty( $instance['title'] ) ) {
28
  echo $args['before_title'] . apply_filters( 'widget_title', $instance['title'] ). $args['after_title'];
29
  }
57
  {
58
  $si_id = '';
59
  }
60
+ global $wpdb;
61
  $table_name = $table_name = $wpdb->prefix . "aps_social_icons";
62
  $icon_sets = $wpdb->get_results("SELECT * FROM $table_name");
63
  ?>
64
  <p>
65
+
66
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ,'accesspress-social-icons'); ?></label>
67
  <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>">
68
  </p>
69
  <p>
73
  <?php foreach($icon_sets as $icon_set){
74
  ?>
75
  <option value="<?php echo $icon_set->si_id;?>" <?php if($si_id==$icon_set->si_id){?>selected="selected"<?php }?>><?php echo $icon_set->icon_set_name;?></option>
76
+ <?php
77
  }?>
78
  </select>
79
  </p>
80
+ <?php
81
  }
82
 
83
  /**
91
  * @return array Updated safe values to be saved.
92
  */
93
  public function update( $new_instance, $old_instance ) {
 
94
  $instance = array();
95
  $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : '';
96
+ $instance['si_id'] = (!empty($new_instance['si_id']))?$new_instance['si_id']:'';
97
  return $instance;
98
  }
 
 
99
  } // class Foo_Widget
 
 
 
 
 
inc/frontend/shortcode.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php defined('ABSPATH') or die("No script kiddies please!");?>
2
  <?php
3
- $si_id = $atts['id'];
4
  global $wpdb;
5
  $table_name = $table_name = $wpdb->prefix . "aps_social_icons";
6
  $icon_sets = $wpdb->get_results("SELECT * FROM $table_name where si_id = $si_id");
@@ -9,11 +9,6 @@ if (!empty($icon_sets)) {
9
  $icon_extra = unserialize($icon_set->icon_extra);
10
  $icon_details = unserialize($icon_set->icon_details);
11
  $icon_position_class = ($icon_set->icon_display == 'horizontal') ? 'aps-group-horizontal' : 'aps-group-vertical';
12
- $icon_opacity = $icon_set->opacity_hover;
13
  include('icon-group-list.php');
14
-
15
-
16
  }//if close
17
-
18
-
19
-
1
  <?php defined('ABSPATH') or die("No script kiddies please!");?>
2
  <?php
3
+ $si_id = esc_attr($atts['id']);
4
  global $wpdb;
5
  $table_name = $table_name = $wpdb->prefix . "aps_social_icons";
6
  $icon_sets = $wpdb->get_results("SELECT * FROM $table_name where si_id = $si_id");
9
  $icon_extra = unserialize($icon_set->icon_extra);
10
  $icon_details = unserialize($icon_set->icon_details);
11
  $icon_position_class = ($icon_set->icon_display == 'horizontal') ? 'aps-group-horizontal' : 'aps-group-vertical';
12
+ $icon_opacity = (isset($icon_set->opacity_hover) && $icon_set->opacity_hover != '')?esc_attr($icon_set->opacity_hover):'';
13
  include('icon-group-list.php');
 
 
14
  }//if close
 
 
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: social icon, social icons, social media, social icon widget, social icons
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 4.5
6
  Tested up to: 5.0
7
- Stable tag: 1.7.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -134,10 +134,13 @@ Yes you can build your own sets or choose from pre available sets as per your re
134
  Once you install the plugin , you can check some general documentation about how to use the plugin in the "How to use" page of the plugin.Complete documentation can be found [here](https://accesspressthemes.com/documentation/accesspress-social-icons/).
135
 
136
  == Screenshots ==
137
- 1. Backend Icons Sets Add Section(Using Pre Available Themes)
138
  2. Backend Icon Sets Listings
139
 
140
  == Changelog ==
 
 
 
141
  = 1.7.5 =
142
  * Changed banner, thumbnail image only.
143
 
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 4.5
6
  Tested up to: 5.0
7
+ Stable tag: 1.7.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
134
  Once you install the plugin , you can check some general documentation about how to use the plugin in the "How to use" page of the plugin.Complete documentation can be found [here](https://accesspressthemes.com/documentation/accesspress-social-icons/).
135
 
136
  == Screenshots ==
137
+ 1. Backend Icons Sets Add Settngs Options
138
  2. Backend Icon Sets Listings
139
 
140
  == Changelog ==
141
+ = 1.7.6 =
142
+ * Code Refinement for secure input and output data.
143
+
144
  = 1.7.5 =
145
  * Changed banner, thumbnail image only.
146