Social Icons WordPress Plugin – AccessPress Social Icons - Version 1.7.8

Version Description

  • Code refinement to solve custom image upload issue.
Download this release

Release Info

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

Code changes from version 1.7.7 to 1.7.8

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.7
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.7');
129
  }
130
  }
131
 
@@ -167,6 +167,7 @@ if (!class_exists('APS_Class')) {
167
 
168
  //registers all the js and css in wp-admin
169
  function register_admin_assets() {
 
170
  //including the scripts in the plugins pages only
171
  if (isset($_GET['page']) && ($_GET['page'] == 'aps-social' || $_GET['page'] == 'aps-social-add' || $_GET['page'] == 'aps-about'|| $_GET['page'] == 'aps-social-how-to-use' || $_GET['page'] == 'aps-more-wp-resources')) {
172
  $aps_script_variable = array('icon_preview' => __('Icon Preview', 'accesspress-social-icons'),
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.8
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.8');
129
  }
130
  }
131
 
167
 
168
  //registers all the js and css in wp-admin
169
  function register_admin_assets() {
170
+ wp_enqueue_media();
171
  //including the scripts in the plugins pages only
172
  if (isset($_GET['page']) && ($_GET['page'] == 'aps-social' || $_GET['page'] == 'aps-social-add' || $_GET['page'] == 'aps-about'|| $_GET['page'] == 'aps-social-how-to-use' || $_GET['page'] == 'aps-more-wp-resources')) {
173
  $aps_script_variable = array('icon_preview' => __('Icon Preview', 'accesspress-social-icons'),
inc/backend/about.php CHANGED
@@ -7,28 +7,28 @@
7
  <div class="aps-col-three-third">
8
  <h2><?php _e('About Us', 'accesspress-social-icons'); ?></h2>
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 />
18
  <a href="https://accesspressthemes.com/wordpress-plugins/accesspress-social-icons/" target="_blank">Product Page</a>
19
  </p>
20
  <div class="halfseperator"></div>
21
- <p><strong>Plugin documentation can be found here:</strong>
22
  <br />
23
  <a href="https://accesspressthemes.com/documentation/accesspress-social-icons/" target="_blank">Visit Documentation Page</a>
24
  </p>
25
  <div class="halfseperator"></div>
26
- <p><strong>If you'd like to buy premium version of this plugin please check here:</strong>
27
  <br />
28
  <a href="https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-social-icons-pro%2F9700839" target="_blank">Upgrade To Pro </a>
29
  </p>
30
  <p>&nbsp;</p>
31
- <h3 class="sub-title">More from AccessPress themes </h3>
32
  <div class="aps-row">
33
  <div class="aps-col-one-third">
34
  <div class="product">
@@ -38,7 +38,7 @@
38
  </a>
39
  </div>
40
  <div class="productext">
41
- <p><strong>WordPress Plugins</strong>
42
  <br />
43
  <a href="http://accesspressthemes.com/plugins/" target="_blank">http://accesspressthemes.com/plugins/</a>
44
  </p>
@@ -51,7 +51,7 @@
51
  <a href="http://accesspressthemes.com/themes/" target="_blank"><img src="<?php echo APS_IMAGE_DIR; ?>/theme.png" /></a>
52
  </div>
53
  <div class="productext">
54
- <p><strong>WordPress Themes</strong>
55
  <br />
56
  <a href="http://accesspressthemes.com/themes/" target="_blank">http://accesspressthemes.com/themes/</a>
57
  </p>
@@ -67,7 +67,7 @@
67
  <a href="http://accesspressthemes.com/contact/" target="_blank"><img src="<?php echo APS_IMAGE_DIR; ?>/customize.png" /></a>
68
  </div>
69
  <div class="productext">
70
- <p><strong>WordPress Customization</strong>
71
  <br />
72
  <a href="http://accesspressthemes.com/contact/" target="_blank">http://accesspressthemes.com/wordpress-plugins/contact/</a>
73
  </p>
@@ -79,12 +79,12 @@
79
 
80
 
81
  <hr />
82
- <h3>Get in touch</h3>
83
- <p>If you've any question/feedback, please get in touch:</p>
84
  <p>
85
- <strong>General enquiries:</strong> <a href="mailto:info@accesspressthemes.com">info@accesspressthemes.com</a><br />
86
- <strong>Support:</strong> <a href="mailto:support@accesspressthemes.com">support@accesspressthemes.com</a><br />
87
- <strong>Sales:</strong> <a href="mailto:sales@accesspressthemes.com">sales@accesspressthemes.com</a>
88
  </p>
89
  <div class="seperator"></div>
90
  <div class="dottedline"></div>
@@ -92,10 +92,10 @@
92
  </div>
93
  </div>
94
  <div class="aps-col-three-third">
95
- <h3>Get social</h3>
96
- <p>Get connected with us on social media. Facebook is the best place to find updates on our themes/plugins: </p>
97
 
98
- <p><strong>Like us on facebook:</strong>
99
  <br />
100
  <iframe style="border: none; overflow: hidden; width: 942px; height: 250px;" src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FAccessPress-Themes%2F1396595907277967&amp;width=942&amp;height=258&amp;colorscheme=light&amp;show_faces=true&amp;header=false&amp;stream=false&amp;show_border=true&amp;appId=1411139805828592" width="942" height="258" frameborder="0" scrolling="no"></iframe>
101
  </p>
7
  <div class="aps-col-three-third">
8
  <h2><?php _e('About Us', 'accesspress-social-icons'); ?></h2>
9
  <div class="ap-tab-wrapper">
10
+ <p><strong><?php esc_html_e('AccessPress Social Icons ', 'accesspress-social-icons'); ?></strong><?php esc_html_e(' - is a FREE WordPress Plugin by AccessPress Themes. ', 'accesspress-social-icons'); ?></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><?php esc_html_e('AccessPress Social Icons ', '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><?php esc_html_e('Please visit our product page for more details here:', 'accesspress-social-icons'); ?></strong>
17
  <br />
18
  <a href="https://accesspressthemes.com/wordpress-plugins/accesspress-social-icons/" target="_blank">Product Page</a>
19
  </p>
20
  <div class="halfseperator"></div>
21
+ <p><strong><?php esc_html_e('Plugin documentation can be found here:', 'accesspress-social-icons'); ?></strong>
22
  <br />
23
  <a href="https://accesspressthemes.com/documentation/accesspress-social-icons/" target="_blank">Visit Documentation Page</a>
24
  </p>
25
  <div class="halfseperator"></div>
26
+ <p><strong><?php esc_html_e("If you'd like to buy premium version of this plugin please check here:", 'accesspress-social-icons'); ?></strong>
27
  <br />
28
  <a href="https://1.envato.market/c/1302794/275988/4415?u=https%3A%2F%2Fcodecanyon.net%2Fitem%2Faccesspress-social-icons-pro%2F9700839" target="_blank">Upgrade To Pro </a>
29
  </p>
30
  <p>&nbsp;</p>
31
+ <h3 class="sub-title"><?php esc_html_e('More from AccessPress themes ', 'accesspress-social-icons'); ?></h3>
32
  <div class="aps-row">
33
  <div class="aps-col-one-third">
34
  <div class="product">
38
  </a>
39
  </div>
40
  <div class="productext">
41
+ <p><strong><?php esc_html_e('WordPress Plugins', 'accesspress-social-icons'); ?></strong>
42
  <br />
43
  <a href="http://accesspressthemes.com/plugins/" target="_blank">http://accesspressthemes.com/plugins/</a>
44
  </p>
51
  <a href="http://accesspressthemes.com/themes/" target="_blank"><img src="<?php echo APS_IMAGE_DIR; ?>/theme.png" /></a>
52
  </div>
53
  <div class="productext">
54
+ <p><strong><?php esc_html_e('WordPress Themes', 'accesspress-social-icons'); ?></strong>
55
  <br />
56
  <a href="http://accesspressthemes.com/themes/" target="_blank">http://accesspressthemes.com/themes/</a>
57
  </p>
67
  <a href="http://accesspressthemes.com/contact/" target="_blank"><img src="<?php echo APS_IMAGE_DIR; ?>/customize.png" /></a>
68
  </div>
69
  <div class="productext">
70
+ <p><strong><?php esc_html_e('WordPress Customization', 'accesspress-social-icons'); ?></strong>
71
  <br />
72
  <a href="http://accesspressthemes.com/contact/" target="_blank">http://accesspressthemes.com/wordpress-plugins/contact/</a>
73
  </p>
79
 
80
 
81
  <hr />
82
+ <h3><?php esc_html_e('Get in touch', 'accesspress-social-icons'); ?></h3>
83
+ <p><?php esc_html_e("If you've any question/feedback, please get in touch:", 'accesspress-social-icons'); ?></p>
84
  <p>
85
+ <strong><?php esc_html_e('General enquiries:', 'accesspress-social-icons'); ?></strong> <a href="mailto:info@accesspressthemes.com">info@accesspressthemes.com</a><br />
86
+ <strong><?php esc_html_e('Support:', 'accesspress-social-icons'); ?></strong> <a href="mailto:support@accesspressthemes.com">support@accesspressthemes.com</a><br />
87
+ <strong><?php esc_html_e('Sales:', 'accesspress-social-icons'); ?></strong> <a href="mailto:sales@accesspressthemes.com">sales@accesspressthemes.com</a>
88
  </p>
89
  <div class="seperator"></div>
90
  <div class="dottedline"></div>
92
  </div>
93
  </div>
94
  <div class="aps-col-three-third">
95
+ <h3><?php esc_html_e('Get social', 'accesspress-social-icons'); ?></h3>
96
+ <p><?php esc_html_e('Get connected with us on social media. Facebook is the best place to find updates on our themes/plugins: ', 'accesspress-social-icons'); ?></p>
97
 
98
+ <p><strong><?php esc_html_e('Like us on facebook:', 'accesspress-social-icons'); ?></strong>
99
  <br />
100
  <iframe style="border: none; overflow: hidden; width: 942px; height: 250px;" src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FAccessPress-Themes%2F1396595907277967&amp;width=942&amp;height=258&amp;colorscheme=light&amp;show_faces=true&amp;header=false&amp;stream=false&amp;show_border=true&amp;appId=1411139805828592" width="942" height="258" frameborder="0" scrolling="no"></iframe>
101
  </p>
inc/backend/add-new-set.php CHANGED
@@ -179,7 +179,7 @@
179
  <div class="aps-col-half">
180
  <div class="aps-field-wrapper">
181
  <div class="aps-field">
182
- <div class="aps-preview-holder">
183
  <div class="aps-image-icon-preview">
184
  <?php _e('Icon Preview', 'accesspress-social-icons'); ?>
185
  </div>
179
  <div class="aps-col-half">
180
  <div class="aps-field-wrapper">
181
  <div class="aps-field">
182
+ <div class="aps-preview-holder" style="display:none">
183
  <div class="aps-image-icon-preview">
184
  <?php _e('Icon Preview', 'accesspress-social-icons'); ?>
185
  </div>
inc/backend/edit-icon-set.php CHANGED
@@ -208,7 +208,7 @@ $icon_extra = unserialize($icon_set->icon_extra);
208
  <div class="aps-col-half">
209
  <div class="aps-field-wrapper">
210
  <div class="aps-field">
211
- <div class="aps-preview-holder">
212
  <div class="aps-image-icon-preview">
213
  <?php _e('Icon Preview', 'accesspress-social-icons'); ?>
214
  </div>
208
  <div class="aps-col-half">
209
  <div class="aps-field-wrapper">
210
  <div class="aps-field">
211
+ <div class="aps-preview-holder" style="display:none">
212
  <div class="aps-image-icon-preview">
213
  <?php _e('Icon Preview', 'accesspress-social-icons'); ?>
214
  </div>
inc/backend/wp-resources.php CHANGED
@@ -11,7 +11,7 @@
11
 
12
  <p>AND IF THIS PLUGIN HAS IMPRESSED YOU, THEN YOU WOULD ENJOY OUR OTHER PROJECTS TOO. DO CHECK THESE OUT :</p>
13
 
14
- <p><a href="https://wpall.club/">WPAll Club</a> - A complete WordPress resources club. WordPress tutorials, blogs, curated free and premium themes and plugins, WordPress deals, offers, hosting info and more.</p>
15
 
16
  <p> <a href="https://themeforest.net/user/accesskeys/portfolio">Premium WordPress Themes</a> - <strong>6 premium WordPress</strong> themes well suited for all sort of websites. Professional, well coded and highly configurable themes for you. </p>
17
 
11
 
12
  <p>AND IF THIS PLUGIN HAS IMPRESSED YOU, THEN YOU WOULD ENJOY OUR OTHER PROJECTS TOO. DO CHECK THESE OUT :</p>
13
 
14
+ <p><a href="https://wpallclub.com/">WPAll Club</a> - A complete WordPress resources club. WordPress tutorials, blogs, curated free and premium themes and plugins, WordPress deals, offers, hosting info and more.</p>
15
 
16
  <p> <a href="https://themeforest.net/user/accesskeys/portfolio">Premium WordPress Themes</a> - <strong>6 premium WordPress</strong> themes well suited for all sort of websites. Professional, well coded and highly configurable themes for you. </p>
17
 
js/backend.js CHANGED
@@ -3,20 +3,24 @@
3
  //all backend js goes here
4
 
5
  //For uploading icon image
6
- $('#ap-icon-upload-button').click(function () {
7
  $(this).closest('.aps-field-wrapper').find('.aps-error').html('');
8
- formfield = jQuery('#aps-icon-image').attr('name');
9
- tb_show('', 'media-upload.php?type=image&TB_iframe=true');
10
- return false;
11
-
 
 
 
 
 
 
 
 
 
 
 
12
  });
13
- window.send_to_editor = function (html) {
14
- imgurl = jQuery('img', html).attr('src');
15
- jQuery('#aps-icon-image').val(imgurl);
16
- jQuery('.aps-image-icon-preview').html('<img src="' + imgurl + '"/>');
17
- tb_remove();
18
- }
19
-
20
  //Adding icon to list
21
  $('#aps-icon-add-trigger').click(function () {
22
  error_flag = 0;
@@ -325,6 +329,7 @@
325
  {
326
  $('.aps-theme-chooser').hide();
327
  $('.aps-icon-adder').show();
 
328
 
329
  }
330
  else
@@ -332,6 +337,7 @@
332
  $('.aps-theme-chooser .aps-theme').removeAttr('checked');
333
  $('.aps-theme-chooser').show();
334
  $('.aps-icon-adder').hide();
 
335
  }
336
  }
337
  else
@@ -345,6 +351,7 @@
345
  {
346
  $('.aps-theme-chooser').hide();
347
  $('.aps-icon-adder').show();
 
348
 
349
  }
350
  else
@@ -352,6 +359,7 @@
352
  $('.aps-theme-chooser .aps-theme').removeAttr('checked');
353
  $('.aps-theme-chooser').show();
354
  $('.aps-icon-adder').hide();
 
355
  }
356
  }
357
  $('#aps-icon-group-type').val($(this).val());
@@ -441,12 +449,14 @@
441
  {
442
  $('.aps-theme-chooser').hide();
443
  $('.aps-icon-adder').show();
 
444
  }
445
  if ($('input[name="icon_set_type"]:checked').val() == 2)
446
  {
447
 
448
  $('.aps-theme-chooser').show();
449
  $('.aps-icon-adder').hide();
 
450
  }
451
 
452
  }
3
  //all backend js goes here
4
 
5
  //For uploading icon image
6
+ $('#ap-icon-upload-button').live('click', function(e) {
7
  $(this).closest('.aps-field-wrapper').find('.aps-error').html('');
8
+ e.preventDefault();
9
+ var btnClicked = $(this);
10
+ var image = wp.media({
11
+ title: 'Insert Image',
12
+ button: {text: 'Insert Image'},
13
+ library: {type: 'image'},
14
+ multiple: false
15
+ }).open()
16
+ .on('select', function(e) {
17
+ var uploaded_image = image.state().get('selection').first();
18
+ var image_url = uploaded_image.toJSON().url;
19
+ console.log(image_url);
20
+ jQuery('#aps-icon-image').val(image_url);
21
+ jQuery('.aps-image-icon-preview').html('<img src="' + image_url + '"/>');
22
+ });
23
  });
 
 
 
 
 
 
 
24
  //Adding icon to list
25
  $('#aps-icon-add-trigger').click(function () {
26
  error_flag = 0;
329
  {
330
  $('.aps-theme-chooser').hide();
331
  $('.aps-icon-adder').show();
332
+ $('.aps-preview-holder').show();
333
 
334
  }
335
  else
337
  $('.aps-theme-chooser .aps-theme').removeAttr('checked');
338
  $('.aps-theme-chooser').show();
339
  $('.aps-icon-adder').hide();
340
+ $('.aps-preview-holder').hide();
341
  }
342
  }
343
  else
351
  {
352
  $('.aps-theme-chooser').hide();
353
  $('.aps-icon-adder').show();
354
+ $('.aps-preview-holder').show();
355
 
356
  }
357
  else
359
  $('.aps-theme-chooser .aps-theme').removeAttr('checked');
360
  $('.aps-theme-chooser').show();
361
  $('.aps-icon-adder').hide();
362
+ $('.aps-preview-holder').hide();
363
  }
364
  }
365
  $('#aps-icon-group-type').val($(this).val());
449
  {
450
  $('.aps-theme-chooser').hide();
451
  $('.aps-icon-adder').show();
452
+ $('.aps-preview-holder').show();
453
  }
454
  if ($('input[name="icon_set_type"]:checked').val() == 2)
455
  {
456
 
457
  $('.aps-theme-chooser').show();
458
  $('.aps-icon-adder').hide();
459
+ $('.aps-preview-holder').hide();
460
  }
461
 
462
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Access Keys
3
  Tags: social icon, social icons, social media, social icon widget, social icons widget, social media icons, social media plugin, social networking, social profiles, wordpress social icons, wp social icons
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 4.5
6
- Tested up to: 5.3.2
7
- Stable tag: 1.7.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -106,7 +106,7 @@ AccessPress Social Icons works best with every WordPress theme. Its even more re
106
 
107
  AND IF THIS PLUGIN HAS IMPRESSED YOU, THEN YOU WOULD ENJOY OUR OTHER PROJECTS TOO. DO CHECK THESE OUT :
108
 
109
- [WPAll Club](https://wpall.club/) - A complete WordPress resources club. WordPress tutorials, blogs, curated free and premium themes and plugins, WordPress deals, offers, hosting info and more.
110
 
111
  [Premium WordPress Themes](https://themeforest.net/user/accesskeys/portfolio) - 6 premium WordPress themes well suited for all sort of websites. Professional, well coded and highly configurable themes for you.
112
 
@@ -138,6 +138,9 @@ Once you install the plugin , you can check some general documentation about how
138
  2. Backend Icon Sets Listings
139
 
140
  == Changelog ==
 
 
 
141
  = 1.7.7 =
142
  * Checked Compatibility issues with latest version of WordPress.
143
 
3
  Tags: social icon, social icons, social media, social icon widget, social icons widget, social media icons, social media plugin, social networking, social profiles, wordpress social icons, wp social icons
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 4.5
6
+ Tested up to: 5.4.1
7
+ Stable tag: 1.7.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
106
 
107
  AND IF THIS PLUGIN HAS IMPRESSED YOU, THEN YOU WOULD ENJOY OUR OTHER PROJECTS TOO. DO CHECK THESE OUT :
108
 
109
+ [WPAll Club](https://wpallclub.com/) - A complete WordPress resources club. WordPress tutorials, blogs, curated free and premium themes and plugins, WordPress deals, offers, hosting info and more.
110
 
111
  [Premium WordPress Themes](https://themeforest.net/user/accesskeys/portfolio) - 6 premium WordPress themes well suited for all sort of websites. Professional, well coded and highly configurable themes for you.
112
 
138
  2. Backend Icon Sets Listings
139
 
140
  == Changelog ==
141
+ = 1.7.8 =
142
+ * Code refinement to solve custom image upload issue.
143
+
144
  = 1.7.7 =
145
  * Checked Compatibility issues with latest version of WordPress.
146