Version Description
- Fixed small bug regarding the icon theme switching
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Icons WordPress Plugin – AccessPress Social Icons |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- accesspress-social-icons.php +16 -8
- images/accesspress-social-icons-pro-upgrade.jpg +0 -0
- images/accesspress-social-icons-pro.jpg +0 -0
- inc/backend/about.php +2 -1
- inc/backend/edit-icon-set.php +3 -2
- inc/backend/how-to-use.php +1 -0
- inc/backend/promobar.php +23 -0
- inc/backend/theme-icon-set.php +3 -2
- js/backend.js +18 -12
- readme.txt +4 -1
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.
|
8 |
* Author:AccessPress Themes
|
9 |
* Author URI:http://accesspressthemes.com/
|
10 |
* Text Domain: aps-social
|
@@ -29,6 +29,10 @@ if (!defined('APS_ICONS_DIR')) {
|
|
29 |
if (!defined('APS_LANG_DIR')) {
|
30 |
define('APS_LANG_DIR', basename( dirname( __FILE__ ) ) . '/languages');
|
31 |
}
|
|
|
|
|
|
|
|
|
32 |
/**
|
33 |
* Register of widgets
|
34 |
* */
|
@@ -105,8 +109,8 @@ if (!class_exists('APS_Class')) {
|
|
105 |
/**
|
106 |
* Backend CSS
|
107 |
* */
|
108 |
-
wp_enqueue_style('aps-admin-css', APS_CSS_DIR . '/backend.css'); //registering plugin admin css
|
109 |
-
wp_enqueue_style('aps-animate-css', APS_CSS_DIR . '/animate.css'); //animate.css library
|
110 |
wp_enqueue_style('thickbox'); //for including wp thickbox css
|
111 |
wp_enqueue_style('wp-color-picker'); //for including color picker css
|
112 |
|
@@ -117,7 +121,7 @@ if (!class_exists('APS_Class')) {
|
|
117 |
wp_enqueue_script('jquery-ui-sortable');
|
118 |
wp_enqueue_script('media-upload'); //for uploading image using wp native uploader
|
119 |
wp_enqueue_script('thickbox'); //for uploading image using wp native uploader + thickbox
|
120 |
-
wp_enqueue_script('aps-admin-js', APS_JS_DIR . '/backend.js', array('jquery', 'jquery-ui-sortable', 'wp-color-picker'));//registering plugin's admin js
|
121 |
wp_localize_script('aps-admin-js', 'aps_script_variable', $aps_script_variable); //localization of php variable in aps-admin-js
|
122 |
}
|
123 |
}
|
@@ -127,9 +131,13 @@ if (!class_exists('APS_Class')) {
|
|
127 |
/**
|
128 |
* Frontend Style
|
129 |
* */
|
130 |
-
wp_enqueue_style('aps-animate-css', APS_CSS_DIR . '/animate.css');//registering animate.css
|
131 |
-
wp_enqueue_style('aps-frontend-css', APS_CSS_DIR . '/frontend.css'); //registering frontend css
|
132 |
-
|
|
|
|
|
|
|
|
|
133 |
}
|
134 |
|
135 |
//action to save the set in db
|
@@ -273,7 +281,7 @@ if (!class_exists('APS_Class')) {
|
|
273 |
$filename = ucfirst($filename_array[0]);
|
274 |
if($_POST['url_only']=='yes')
|
275 |
{
|
276 |
-
$image_url_array[] = APS_ICONS_DIR . '/' . $sub_folder . '/' . $folder . '/' . $file;
|
277 |
}
|
278 |
else
|
279 |
{
|
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.3
|
8 |
* Author:AccessPress Themes
|
9 |
* Author URI:http://accesspressthemes.com/
|
10 |
* Text Domain: aps-social
|
29 |
if (!defined('APS_LANG_DIR')) {
|
30 |
define('APS_LANG_DIR', basename( dirname( __FILE__ ) ) . '/languages');
|
31 |
}
|
32 |
+
if(!defined('APS_VERSION'))
|
33 |
+
{
|
34 |
+
define('APS_VERSION','1.0.3');
|
35 |
+
}
|
36 |
/**
|
37 |
* Register of widgets
|
38 |
* */
|
109 |
/**
|
110 |
* Backend CSS
|
111 |
* */
|
112 |
+
wp_enqueue_style('aps-admin-css', APS_CSS_DIR . '/backend.css',false,APS_VERSION); //registering plugin admin css
|
113 |
+
wp_enqueue_style('aps-animate-css', APS_CSS_DIR . '/animate.css',false,APS_VERSION); //animate.css library
|
114 |
wp_enqueue_style('thickbox'); //for including wp thickbox css
|
115 |
wp_enqueue_style('wp-color-picker'); //for including color picker css
|
116 |
|
121 |
wp_enqueue_script('jquery-ui-sortable');
|
122 |
wp_enqueue_script('media-upload'); //for uploading image using wp native uploader
|
123 |
wp_enqueue_script('thickbox'); //for uploading image using wp native uploader + thickbox
|
124 |
+
wp_enqueue_script('aps-admin-js', APS_JS_DIR . '/backend.js', array('jquery', 'jquery-ui-sortable', 'wp-color-picker'),APS_VERSION);//registering plugin's admin js
|
125 |
wp_localize_script('aps-admin-js', 'aps_script_variable', $aps_script_variable); //localization of php variable in aps-admin-js
|
126 |
}
|
127 |
}
|
131 |
/**
|
132 |
* Frontend Style
|
133 |
* */
|
134 |
+
wp_enqueue_style('aps-animate-css', APS_CSS_DIR . '/animate.css',false,APS_VERSION);//registering animate.css
|
135 |
+
wp_enqueue_style('aps-frontend-css', APS_CSS_DIR . '/frontend.css',false,APS_VERSION); //registering frontend css
|
136 |
+
|
137 |
+
/**
|
138 |
+
* Frontend JS
|
139 |
+
* */
|
140 |
+
wp_enqueue_script('aps-frontend-js', APS_JS_DIR . '/frontend.js', array('jquery'),APS_VERSION);//registering frontend js
|
141 |
}
|
142 |
|
143 |
//action to save the set in db
|
281 |
$filename = ucfirst($filename_array[0]);
|
282 |
if($_POST['url_only']=='yes')
|
283 |
{
|
284 |
+
$image_url_array[$filename] = APS_ICONS_DIR . '/' . $sub_folder . '/' . $folder . '/' . $file;
|
285 |
}
|
286 |
else
|
287 |
{
|
images/accesspress-social-icons-pro-upgrade.jpg
ADDED
Binary file
|
images/accesspress-social-icons-pro.jpg
ADDED
Binary file
|
inc/backend/about.php
CHANGED
@@ -25,7 +25,7 @@
|
|
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="
|
29 |
</p>
|
30 |
<p> </p>
|
31 |
<h3>Other products by AccessPress themes </h3>
|
@@ -120,4 +120,5 @@
|
|
120 |
</div>
|
121 |
</div>
|
122 |
</div>
|
|
|
123 |
</div>
|
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://accesspressthemes.com/wordpress-plugins/accesspress-social-icons-pro/" target="_blank">https://accesspressthemes.com/wordpress-plugins/accesspress-social-icons-pro/ </a>
|
29 |
</p>
|
30 |
<p> </p>
|
31 |
<h3>Other products by AccessPress themes </h3>
|
120 |
</div>
|
121 |
</div>
|
122 |
</div>
|
123 |
+
<?php include_once('promobar.php'); ?>
|
124 |
</div>
|
inc/backend/edit-icon-set.php
CHANGED
@@ -249,7 +249,7 @@ $icon_extra = unserialize($icon_set->icon_extra);
|
|
249 |
<div class="aps-row">
|
250 |
<div class="aps-icon-preview <?php echo $icon_main_class;?>">
|
251 |
<label><?php _e('Icon Preview', 'aps-social'); ?></label>
|
252 |
-
<img src="<?php echo esc_url_raw($icon_detail['image']); ?>"/>
|
253 |
</div>
|
254 |
<div class="aps-col-full">
|
255 |
<div class="aps-field-wrapper form-field">
|
@@ -309,7 +309,8 @@ $icon_extra = unserialize($icon_set->icon_extra);
|
|
309 |
</div>
|
310 |
</div>
|
311 |
</div>
|
312 |
-
<input type="hidden" name="icons[<?php echo
|
|
|
313 |
<input type="hidden" name="icons[<?php echo esc_attr($title); ?>][border_type]" value="<?php echo esc_attr($icon_detail['border_type']) ?>"/>
|
314 |
<input type="hidden" name="icons[<?php echo esc_attr($title); ?>][border_thickness]" value="<?php echo esc_attr($icon_detail['border_thickness']) ?>"/>
|
315 |
<input type="hidden" name="icons[<?php echo esc_attr($title); ?>][border_color]" value="<?php echo esc_attr($icon_detail['border_color']) ?>"/>
|
249 |
<div class="aps-row">
|
250 |
<div class="aps-icon-preview <?php echo $icon_main_class;?>">
|
251 |
<label><?php _e('Icon Preview', 'aps-social'); ?></label>
|
252 |
+
<img src="<?php echo esc_url_raw($icon_detail['image']); ?>" data-image-name="<?php echo (isset($icon_detail['image_name']))?$icon_detail['image_name']:$title;?>"/>
|
253 |
</div>
|
254 |
<div class="aps-col-full">
|
255 |
<div class="aps-field-wrapper form-field">
|
309 |
</div>
|
310 |
</div>
|
311 |
</div>
|
312 |
+
<input type="hidden" name="icons[<?php echo $title; ?>][image_name]" value="<?php echo (isset($icon_detail['image_name']))?$icon_detail['image_name']:$title;?>" />
|
313 |
+
<input type="hidden" name="icons[<?php echo esc_attr($title); ?>][image]" value="<?php echo esc_attr($icon_detail['image']) ?>" class="set_image_reference" data-image-name="<?php echo (isset($icon_detail['image_name']))?$icon_detail['image_name']:$title;?>"/>
|
314 |
<input type="hidden" name="icons[<?php echo esc_attr($title); ?>][border_type]" value="<?php echo esc_attr($icon_detail['border_type']) ?>"/>
|
315 |
<input type="hidden" name="icons[<?php echo esc_attr($title); ?>][border_thickness]" value="<?php echo esc_attr($icon_detail['border_thickness']) ?>"/>
|
316 |
<input type="hidden" name="icons[<?php echo esc_attr($title); ?>][border_color]" value="<?php echo esc_attr($icon_detail['border_color']) ?>"/>
|
inc/backend/how-to-use.php
CHANGED
@@ -22,5 +22,6 @@
|
|
22 |
</div>
|
23 |
</div>
|
24 |
</div>
|
|
|
25 |
</div>
|
26 |
|
22 |
</div>
|
23 |
</div>
|
24 |
</div>
|
25 |
+
<?php include_once('promobar.php'); ?>
|
26 |
</div>
|
27 |
|
inc/backend/promobar.php
CHANGED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div class="aps-promobar">
|
2 |
+
<div>
|
3 |
+
<a href="http://codecanyon.net/item/accesspress-social-icons-pro/9700839" target="_blank" class="ap-upgrade-first"><img src="<?php echo APS_IMAGE_DIR.'/accesspress-social-icons-pro-upgrade.jpg';?>"></a>
|
4 |
+
</div>
|
5 |
+
<div class="aps-demo-links">
|
6 |
+
<div class="aps-btn-group">
|
7 |
+
<a href="http://accesspressthemes.com/demo/wordpress-plugins/accesspress-social-icons-pro/" target="_blank" class="aps-btn aps-btn-default aps-btn-demo">DEMO</a>
|
8 |
+
<a href="http://codecanyon.net/item/accesspress-social-icons-pro/9700839" target="_blank" class="aps-btn aps-btn-default aps-btn-upgrade">UPGRADE</a>
|
9 |
+
</div>
|
10 |
+
</div>
|
11 |
+
<div>
|
12 |
+
<a href="http://accesspressthemes.com/demo/wordpress-plugins/accesspress-social-icons-pro/" target="_blank" class="ap-upgrade-first"><img src="<?php echo APS_IMAGE_DIR.'/accesspress-social-icons-pro.jpg';?>"></a>
|
13 |
+
</div>
|
14 |
+
<div class="aps-demo-links">
|
15 |
+
<div class="aps-btn-group">
|
16 |
+
<a href="http://accesspressthemes.com/demo/wordpress-plugins/accesspress-social-icons-pro/" target="_blank" class="aps-btn aps-btn-default aps-btn-demo">DEMO</a>
|
17 |
+
<a href="http://codecanyon.net/item/accesspress-social-icons-pro/9700839" target="_blank" class="aps-btn aps-btn-default aps-btn-upgrade">UPGRADE</a>
|
18 |
+
</div>
|
19 |
+
</div>
|
20 |
+
<div class="aps-enquiry-block">
|
21 |
+
<p>If you have any questions regarding pro version, please contact us from <a href="https://accesspressthemes.com/contact/" target="_blank">here</a></p>
|
22 |
+
</div>
|
23 |
+
</div>
|
inc/backend/theme-icon-set.php
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
<div class="aps-col-full">
|
15 |
<div class="aps-icon-preview form-field">
|
16 |
<label><?php _e('Icon Preview', 'aps-social'); ?></label>
|
17 |
-
<img src="<?php echo APS_ICONS_DIR . '/' . $sub_folder . '/' . $folder . '/' . $file; ?>"/>
|
18 |
</div>
|
19 |
|
20 |
<div class="aps-field-wrapper form-field">
|
@@ -81,7 +81,8 @@
|
|
81 |
</div>
|
82 |
</div>
|
83 |
</div>
|
84 |
-
<input type="hidden" name="icons[<?php echo $filename; ?>][
|
|
|
85 |
<input type="hidden" name="icons[<?php echo $filename; ?>][border_type]" value="none"/>
|
86 |
<input type="hidden" name="icons[<?php echo $filename; ?>][border_thickness]" value="0"/>
|
87 |
<input type="hidden" name="icons[<?php echo $filename; ?>][border_color]" value=""/>
|
14 |
<div class="aps-col-full">
|
15 |
<div class="aps-icon-preview form-field">
|
16 |
<label><?php _e('Icon Preview', 'aps-social'); ?></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">
|
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=""/>
|
js/backend.js
CHANGED
@@ -397,19 +397,25 @@
|
|
397 |
{
|
398 |
if(url_only=='yes')
|
399 |
{
|
400 |
-
var
|
|
|
|
|
|
|
|
|
|
|
|
|
401 |
//console.log(image_url_array);
|
402 |
-
var array_index = 0;
|
403 |
-
$('.aps-icon-preview img').each(function(){
|
404 |
-
//alert(image_url_array[array_index])
|
405 |
-
$(this).attr('src',image_url_array[array_index]);
|
406 |
-
array_index++;
|
407 |
-
});
|
408 |
-
var array_index = 0;
|
409 |
-
$('.set_image_reference').each(function(){
|
410 |
-
$(this).val(image_url_array[array_index]);
|
411 |
-
array_index++;
|
412 |
-
});
|
413 |
}
|
414 |
else
|
415 |
{
|
397 |
{
|
398 |
if(url_only=='yes')
|
399 |
{
|
400 |
+
var image_array = $.parseJSON(res);
|
401 |
+
var image_name;
|
402 |
+
for(image_name in image_array)
|
403 |
+
{
|
404 |
+
$('img[data-image-name="'+image_name+'"]').attr('src',image_array[image_name]);
|
405 |
+
$('input[data-image-name="'+image_name+'"]').attr('value',image_array[image_name]);
|
406 |
+
}
|
407 |
//console.log(image_url_array);
|
408 |
+
//var array_index = 0;
|
409 |
+
// $('.aps-icon-preview img').each(function(){
|
410 |
+
// //alert(image_url_array[array_index])
|
411 |
+
// $(this).attr('src',image_url_array[array_index]);
|
412 |
+
// array_index++;
|
413 |
+
// });
|
414 |
+
// var array_index = 0;
|
415 |
+
// $('.set_image_reference').each(function(){
|
416 |
+
// $(this).val(image_url_array[array_index]);
|
417 |
+
// array_index++;
|
418 |
+
// });
|
419 |
}
|
420 |
else
|
421 |
{
|
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.0
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -109,6 +109,9 @@ Once you install the plugin , you can check some general documentation about how
|
|
109 |
4. Backend Lcon Sets Listing
|
110 |
|
111 |
== Changelog ==
|
|
|
|
|
|
|
112 |
= 1.0.2 =
|
113 |
* Fixed small bug regarding plugin text domain for better translation
|
114 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.0
|
7 |
+
Stable tag: 1.0.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
109 |
4. Backend Lcon Sets Listing
|
110 |
|
111 |
== Changelog ==
|
112 |
+
= 1.0.3 =
|
113 |
+
* Fixed small bug regarding the icon theme switching
|
114 |
+
|
115 |
= 1.0.2 =
|
116 |
* Fixed small bug regarding plugin text domain for better translation
|
117 |
|