Version Description
- Added Icons Sets Copy Feature
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Icons WordPress Plugin – AccessPress Social Icons |
Version | 1.1.3 |
Comparing to | |
See all releases |
Code changes from version 1.1.2 to 1.1.3
- accesspress-social-icons.php +12 -2
- inc/backend/copy-icon-set.php +62 -0
- inc/backend/main-page.php +6 -1
- readme.txt +6 -3
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.1.
|
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.1.
|
35 |
}
|
36 |
/**
|
37 |
* Register of widgets
|
@@ -53,6 +53,7 @@ if (!class_exists('APS_Class')) {
|
|
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
|
55 |
add_action('admin_post_aps_delete_action', array($this, 'aps_delete_action')); //icon set delete action
|
|
|
56 |
add_shortcode('aps-social', array($this, 'aps_social_shortcode')); //adds the aps-social shortcode
|
57 |
add_action('wp_ajax_aps_icon_list_action', array($this, 'aps_icon_list_action')); //admin ajax action for icon listing
|
58 |
add_action('wp_ajax_nopriv_aps_icon_list_action', array($this, 'no_permission')); //action for unauthenticate admin ajax call
|
@@ -171,6 +172,15 @@ if (!class_exists('APS_Class')) {
|
|
171 |
die('No script kiddies please!');
|
172 |
}
|
173 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
|
175 |
//Icon set edit action
|
176 |
function aps_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.3
|
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.3');
|
35 |
}
|
36 |
/**
|
37 |
* Register of widgets
|
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
|
55 |
add_action('admin_post_aps_delete_action', array($this, 'aps_delete_action')); //icon set delete action
|
56 |
+
add_action('admin_post_aps_copy_action', array($this, 'aps_copy_action')); //icon set copy action
|
57 |
add_shortcode('aps-social', array($this, 'aps_social_shortcode')); //adds the aps-social shortcode
|
58 |
add_action('wp_ajax_aps_icon_list_action', array($this, 'aps_icon_list_action')); //admin ajax action for icon listing
|
59 |
add_action('wp_ajax_nopriv_aps_icon_list_action', array($this, 'no_permission')); //action for unauthenticate admin ajax call
|
172 |
die('No script kiddies please!');
|
173 |
}
|
174 |
}
|
175 |
+
//Icon set copy section
|
176 |
+
function aps_copy_action() {
|
177 |
+
if (isset($_GET['action'], $_GET['_wpnonce']) && wp_verify_nonce($_GET['_wpnonce'], 'aps-copy-nonce')) {
|
178 |
+
include_once('inc/backend/copy-icon-set.php');
|
179 |
+
} else {
|
180 |
+
die('No script kiddies please!');
|
181 |
+
}
|
182 |
+
}
|
183 |
+
|
184 |
|
185 |
//Icon set edit action
|
186 |
function aps_edit_action() {
|
inc/backend/copy-icon-set.php
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
defined('ABSPATH') or die("No script kiddies please!");
|
3 |
+
global $wpdb;
|
4 |
+
$si_id = $_GET['si_id'];
|
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");
|
7 |
+
$icon_set = $icon_sets[0];
|
8 |
+
$this->print_array($icon_set);
|
9 |
+
/**
|
10 |
+
*
|
11 |
+
* stdClass Object
|
12 |
+
(
|
13 |
+
[si_id] => 12
|
14 |
+
[icon_set_name] => Test Set
|
15 |
+
[icon_display] => horizontal
|
16 |
+
[num_rows] =>
|
17 |
+
[icon_margin] =>
|
18 |
+
[icon_tooltip] => 1
|
19 |
+
[tooltip_background] =>
|
20 |
+
[tooltip_text_color] =>
|
21 |
+
[icon_animation] =>
|
22 |
+
[opacity_hover] => 1
|
23 |
+
[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";}}
|
24 |
+
[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";}
|
25 |
+
)
|
26 |
+
* */
|
27 |
+
foreach($icon_set as $key=>$val){
|
28 |
+
$$key = $val;
|
29 |
+
}
|
30 |
+
$icon_set_name .=' -copy';
|
31 |
+
$wpdb->insert(
|
32 |
+
$table_name,
|
33 |
+
array(
|
34 |
+
'icon_set_name' => $icon_set_name,
|
35 |
+
'icon_display'=>$icon_display,
|
36 |
+
'num_rows' => $num_rows,
|
37 |
+
'icon_margin'=>$icon_margin,
|
38 |
+
'icon_tooltip'=>$icon_tooltip,
|
39 |
+
'tooltip_background'=>$tooltip_background,
|
40 |
+
'tooltip_text_color'=> $tooltip_text_color,
|
41 |
+
'opacity_hover'=>$opacity_hover,
|
42 |
+
'icon_animation'=>$icon_animation,
|
43 |
+
'icon_details'=>$icon_details,
|
44 |
+
'icon_extra'=>$icon_extra
|
45 |
+
),
|
46 |
+
array(
|
47 |
+
'%s',
|
48 |
+
'%s',
|
49 |
+
'%s',
|
50 |
+
'%s',
|
51 |
+
'%d',
|
52 |
+
'%s',
|
53 |
+
'%s',
|
54 |
+
'%s',
|
55 |
+
'%s',
|
56 |
+
'%s',
|
57 |
+
'%s'
|
58 |
+
)
|
59 |
+
);
|
60 |
+
$_SESSION['aps_message'] = __('Icon Set Copied Successfully','aps-social');
|
61 |
+
wp_redirect(admin_url().'admin.php?page=aps-social');
|
62 |
+
exit;
|
inc/backend/main-page.php
CHANGED
@@ -60,6 +60,7 @@
|
|
60 |
foreach ($icon_sets as $icon_set) {
|
61 |
$edit_nonce = wp_create_nonce('aps-edit-nonce');
|
62 |
$delete_nonce = wp_create_nonce('aps-delete-nonce');
|
|
|
63 |
?>
|
64 |
<tr <?php if ($icon_set_counter % 2 != 0) { ?>class="alternate"<?php } ?>>
|
65 |
<td class="title column-title">
|
@@ -68,7 +69,11 @@
|
|
68 |
<?php echo esc_attr($icon_set->icon_set_name); ?>
|
69 |
</a>
|
70 |
</strong>
|
71 |
-
<div class="row-actions"
|
|
|
|
|
|
|
|
|
72 |
</td>
|
73 |
<td class="shortcode column-shortcode"><input type="text" onFocus="this.select();" readonly="readonly" value="[aps-social id="<?php echo $icon_set->si_id; ?>"]" class="shortcode-in-list-table wp-ui-text-highlight code"></td>
|
74 |
<td class="shortcode column-shortcode"><input type="text" onFocus="this.select();" readonly="readonly" value="<?php echo do_shortcode('[aps-social id="<?php echo $icon_set->si_id; ?>"]')?>" class="shortcode-in-list-table wp-ui-text-highlight code"></td>
|
60 |
foreach ($icon_sets as $icon_set) {
|
61 |
$edit_nonce = wp_create_nonce('aps-edit-nonce');
|
62 |
$delete_nonce = wp_create_nonce('aps-delete-nonce');
|
63 |
+
$copy_nonce = wp_create_nonce('aps-copy-nonce');
|
64 |
?>
|
65 |
<tr <?php if ($icon_set_counter % 2 != 0) { ?>class="alternate"<?php } ?>>
|
66 |
<td class="title column-title">
|
69 |
<?php echo esc_attr($icon_set->icon_set_name); ?>
|
70 |
</a>
|
71 |
</strong>
|
72 |
+
<div class="row-actions">
|
73 |
+
<span class="edit"><a href="<?php echo admin_url() . 'admin.php?page=aps-social&action=edit_si&si_id=' . $icon_set->si_id . '&_wpnonce=' . $edit_nonce; ?>">Edit</a> | </span>
|
74 |
+
<span class="copy"><a href="<?php echo admin_url() . 'admin-post.php?action=aps_copy_action&si_id=' . $icon_set->si_id . '&_wpnonce=' . $copy_nonce; ?>" onclick="return confirm('<?php _e('Are you sure you want to copy this icon set?', 'aps-social'); ?>')">Copy</a> | </span>
|
75 |
+
<span class="delete"><a href="<?php echo admin_url() . 'admin-post.php?action=aps_delete_action&si_id=' . $icon_set->si_id . '&_wpnonce=' . $delete_nonce; ?>" onclick="return confirm('<?php _e('Are you sure you want to delete this icon set?', 'aps-social'); ?>')">Delete</a></span>
|
76 |
+
</div>
|
77 |
</td>
|
78 |
<td class="shortcode column-shortcode"><input type="text" onFocus="this.select();" readonly="readonly" value="[aps-social id="<?php echo $icon_set->si_id; ?>"]" class="shortcode-in-list-table wp-ui-text-highlight code"></td>
|
79 |
<td class="shortcode column-shortcode"><input type="text" onFocus="this.select();" readonly="readonly" value="<?php echo do_shortcode('[aps-social id="<?php echo $icon_set->si_id; ?>"]')?>" class="shortcode-in-list-table wp-ui-text-highlight code"></td>
|
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.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -15,7 +15,7 @@ Add social media icons on your site | select from pre-designed sets or upload yo
|
|
15 |
|
16 |
<strong>AccessPress Social Icons</strong> - allows you to create various social icons and link your social profiles from your website. Its fun because - you can create, customize and build the beautiful icons for your social media profiles on your own.
|
17 |
|
18 |
-
<strong>You can select icons from our 12 different beautifully designed
|
19 |
|
20 |
Once the icon set is defined/customized - you can place it anywhere you want using short codes. Put it in the header, footer, in a widget, along with the page content - almost anywhere.
|
21 |
|
@@ -29,7 +29,7 @@ You can have more than one icon sets created and used on the site. A large icon
|
|
29 |
|
30 |
= Free Features: =
|
31 |
|
32 |
-
* <strong>Beautifully designed 12 icon
|
33 |
* <strong>Select from pre available icon sets or upload your own</strong>
|
34 |
* <strong>Strong customization options</strong>
|
35 |
- Define size, set height, width of the icons
|
@@ -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.1.2 =
|
122 |
* Few minor fixes for icon sets
|
123 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.1
|
7 |
+
Stable tag: 1.1.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
15 |
|
16 |
<strong>AccessPress Social Icons</strong> - allows you to create various social icons and link your social profiles from your website. Its fun because - you can create, customize and build the beautiful icons for your social media profiles on your own.
|
17 |
|
18 |
+
<strong>You can select icons from our 12 different beautifully designed sets, or upload our own icons set, customize them, define sizes, add several effects, add tooltip, set margins etc. Also you can define to appear the icons horizontally/vertically and no. of rows/columns!</strong>
|
19 |
|
20 |
Once the icon set is defined/customized - you can place it anywhere you want using short codes. Put it in the header, footer, in a widget, along with the page content - almost anywhere.
|
21 |
|
29 |
|
30 |
= Free Features: =
|
31 |
|
32 |
+
* <strong>Beautifully designed 12 icon sets</strong>
|
33 |
* <strong>Select from pre available icon sets or upload your own</strong>
|
34 |
* <strong>Strong customization options</strong>
|
35 |
- Define size, set height, width of the icons
|
118 |
4. Backend Lcon Sets Listing
|
119 |
|
120 |
== Changelog ==
|
121 |
+
= 1.1.3 =
|
122 |
+
* Added Icons Sets Copy Feature
|
123 |
+
|
124 |
= 1.1.2 =
|
125 |
* Few minor fixes for icon sets
|
126 |
|