Social Icons WordPress Plugin – AccessPress Social Icons - Version 1.1.0

Version Description

  • Fixed white background issue
Download this release

Release Info

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

Code changes from version 1.0.9 to 1.1.0

accesspress-social-icons.php CHANGED
@@ -4,7 +4,7 @@ defined('ABSPATH') or die("No script kiddies please!");
4
  * Plugin Name:AccessPress Social Icons
5
  * Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-icons/
6
  * Description: A plugin to add social icons in your site wherever you want dynamically with handful of configurable settings.
7
- * Version:1.0.9
8
  * Author:AccessPress Themes
9
  * Author URI:http://accesspressthemes.com/
10
  * Text Domain: aps-social
@@ -31,7 +31,7 @@ if (!defined('APS_LANG_DIR')) {
31
  }
32
  if(!defined('APS_VERSION'))
33
  {
34
- define('APS_VERSION','1.0.9');
35
  }
36
  /**
37
  * Register of widgets
@@ -46,9 +46,9 @@ if (!class_exists('APS_Class')) {
46
  function __construct() {
47
  register_activation_hook(__FILE__, array($this, 'plugin_activation')); //calls plugin activation function
48
  add_action('init', array($this, 'plugin_text_domain')); //loads text domain for translation ready
49
- add_action('init', array($this, 'register_frontend_assets'));//registers assets for frontend
50
  add_action('admin_menu', array($this, 'add_aps_menu')); //adds plugin menu in wp-admin
51
- add_action('admin_init', array($this, 'register_admin_assets')); //registers all the assets required for wp-admin
52
  add_action('admin_init', array($this, 'admin_session_init')); //intializes session
53
  add_action('admin_post_aps_add_new_set', array($this, 'aps_add_new_set')); //add new set action
54
  add_action('admin_post_aps_edit_action', array($this, 'aps_edit_action')); //icon set edit action
4
  * Plugin Name:AccessPress Social Icons
5
  * Plugin URI: https://accesspressthemes.com/wordpress-plugins/accesspress-social-icons/
6
  * Description: A plugin to add social icons in your site wherever you want dynamically with handful of configurable settings.
7
+ * Version:1.1.0
8
  * Author:AccessPress Themes
9
  * Author URI:http://accesspressthemes.com/
10
  * Text Domain: aps-social
31
  }
32
  if(!defined('APS_VERSION'))
33
  {
34
+ define('APS_VERSION','1.1.0');
35
  }
36
  /**
37
  * Register of widgets
46
  function __construct() {
47
  register_activation_hook(__FILE__, array($this, 'plugin_activation')); //calls plugin activation function
48
  add_action('init', array($this, 'plugin_text_domain')); //loads text domain for translation ready
49
+ add_action('wp_enqueue_scripts', array($this, 'register_frontend_assets'));//registers assets for frontend
50
  add_action('admin_menu', array($this, 'add_aps_menu')); //adds plugin menu in wp-admin
51
+ add_action('admin_enqueue_scripts', array($this, 'register_admin_assets')); //registers all the assets required for wp-admin
52
  add_action('admin_init', array($this, 'admin_session_init')); //intializes session
53
  add_action('admin_post_aps_add_new_set', array($this, 'aps_add_new_set')); //add new set action
54
  add_action('admin_post_aps_edit_action', array($this, 'aps_edit_action')); //icon set edit action
css/frontend.css CHANGED
@@ -1,13 +1,13 @@
1
  .aps-each-icon{
2
  display:inline-block;
3
  position:relative;
4
- background:#fff;
5
  }
6
  .aps-each-icon a{
7
  display:block;
8
  position:relative;
9
  z-index:555;
10
- background:#fff;
11
  }
12
  .aps-each-icon img{
13
  -webkit-transition: opacity 0.3s ease-in-out;
1
  .aps-each-icon{
2
  display:inline-block;
3
  position:relative;
4
+
5
  }
6
  .aps-each-icon a{
7
  display:block;
8
  position:relative;
9
  z-index:555;
10
+
11
  }
12
  .aps-each-icon img{
13
  -webkit-transition: opacity 0.3s ease-in-out;
inc/backend/edit-icon-set.php CHANGED
@@ -317,7 +317,7 @@ $icon_extra = unserialize($icon_set->icon_extra);
317
  <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][shadow]" value="<?php echo esc_attr($icon_detail['shadow']) ?>"/>
318
  <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][shadow_offset_x]" value="<?php echo esc_attr($icon_detail['shadow_offset_x']) ?>"/>
319
  <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][shadow_offset_y]" value="<?php echo esc_attr($icon_detail['shadow_offset_y']) ?>"/>
320
- <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][shadow_blur]" value="<?php echo esc_attr($icon_detail['shadow_blur']) ?>"/>
321
  <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][shadow_color]" value="<?php echo esc_attr($icon_detail['shadow_color']) ?>"/>
322
  <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][padding]" value="<?php echo esc_attr($icon_detail['padding']) ?>"/>
323
  <?php
@@ -330,7 +330,7 @@ $icon_extra = unserialize($icon_set->icon_extra);
330
  $offset_x = ($offset_x == '') ? '0' : $offset_x;
331
  $offset_y = str_replace('px', '', $icon_detail['shadow_offset_y']);
332
  $offset_y = ($offset_y == '') ? '0' : $offset_y;
333
- $blur = str_replace('px', '', $icon_detail['shadow_blur']);
334
  $blur = ($blur == '') ? '0' : $blur;
335
  $shadow_color = $icon_detail['shadow_color'];
336
  if ($shadow_type != 'no') {
317
  <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][shadow]" value="<?php echo esc_attr($icon_detail['shadow']) ?>"/>
318
  <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][shadow_offset_x]" value="<?php echo esc_attr($icon_detail['shadow_offset_x']) ?>"/>
319
  <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][shadow_offset_y]" value="<?php echo esc_attr($icon_detail['shadow_offset_y']) ?>"/>
320
+ <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][shadow_blur]" value="<?php echo isset($icon_detail['shadow_blur'])?esc_attr($icon_detail['shadow_blur']):''; ?>"/>
321
  <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][shadow_color]" value="<?php echo esc_attr($icon_detail['shadow_color']) ?>"/>
322
  <input type="hidden" name="icons[<?php echo esc_attr($title); ?>][padding]" value="<?php echo esc_attr($icon_detail['padding']) ?>"/>
323
  <?php
330
  $offset_x = ($offset_x == '') ? '0' : $offset_x;
331
  $offset_y = str_replace('px', '', $icon_detail['shadow_offset_y']);
332
  $offset_y = ($offset_y == '') ? '0' : $offset_y;
333
+ $blur = str_replace('px', '', isset($icon_detail['shadow_blur'])?$icon_detail['shadow_blur']:'');
334
  $blur = ($blur == '') ? '0' : $blur;
335
  $shadow_color = $icon_detail['shadow_color'];
336
  if ($shadow_type != 'no') {
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: 3.8
6
  Tested up to: 4.1
7
- Stable tag: 1.0.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -118,6 +118,9 @@ Once you install the plugin , you can check some general documentation about how
118
  4. Backend Lcon Sets Listing
119
 
120
  == Changelog ==
 
 
 
121
  = 1.0.9 =
122
  * Fixed small bug regarding shadow blur
123
  * Fixed small bug for unclosed aside tag in widget section
4
  Donate link: http://accesspressthemes.com/donation/
5
  Requires at least: 3.8
6
  Tested up to: 4.1
7
+ Stable tag: 1.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
118
  4. Backend Lcon Sets Listing
119
 
120
  == Changelog ==
121
+ = 1.1.0 =
122
+ * Fixed white background issue
123
+
124
  = 1.0.9 =
125
  * Fixed small bug regarding shadow blur
126
  * Fixed small bug for unclosed aside tag in widget section