Version Description
- Necessary code refinement.
Download this release
Release Info
Developer | Access Keys |
Plugin | Social Icons WordPress Plugin – AccessPress Social Icons |
Version | 1.8.1 |
Comparing to | |
See all releases |
Code changes from version 1.8.0 to 1.8.1
- accesspress-social-icons.php +4 -6
- inc/backend/copy-icon-set.php +1 -1
- inc/backend/edit-icon-set.php +10 -10
- inc/backend/icon-themes.php +1 -1
- inc/backend/list-icon-sets.php +1 -1
- inc/backend/main-page.php +6 -6
- inc/backend/widgets.php +3 -3
- inc/frontend/icon-group-list.php +4 -4
- inc/frontend/shortcode.php +2 -2
- readme.txt +4 -1
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.8.
|
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.8.
|
129 |
}
|
130 |
}
|
131 |
|
@@ -250,13 +250,11 @@ if (!class_exists('APS_Class')) {
|
|
250 |
|
251 |
//shortcode function
|
252 |
function aps_social_shortcode($atts) {
|
253 |
-
if (isset($atts['id'])) {
|
254 |
ob_start();
|
255 |
include('inc/frontend/shortcode.php');
|
256 |
$html = ob_get_contents();
|
257 |
ob_get_clean();
|
258 |
return $html;
|
259 |
-
}
|
260 |
}
|
261 |
|
262 |
//lists the available icons
|
@@ -266,8 +264,8 @@ if (!class_exists('APS_Class')) {
|
|
266 |
for ($i = 1; $i <= 12; $i++) {
|
267 |
$icon_set_image_array = array();
|
268 |
?>
|
269 |
-
<div class="aps-set-wrapper" id="aps-set-<?php echo $i; ?>">
|
270 |
-
<h3>Set <?php echo $i; ?></h3>
|
271 |
<div class="aps-row">
|
272 |
<?php
|
273 |
$handle = opendir(dirname(realpath(__FILE__)) . '/icon-sets/png/set' . $i);
|
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.8.1
|
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.8.1');
|
129 |
}
|
130 |
}
|
131 |
|
250 |
|
251 |
//shortcode function
|
252 |
function aps_social_shortcode($atts) {
|
|
|
253 |
ob_start();
|
254 |
include('inc/frontend/shortcode.php');
|
255 |
$html = ob_get_contents();
|
256 |
ob_get_clean();
|
257 |
return $html;
|
|
|
258 |
}
|
259 |
|
260 |
//lists the available icons
|
264 |
for ($i = 1; $i <= 12; $i++) {
|
265 |
$icon_set_image_array = array();
|
266 |
?>
|
267 |
+
<div class="aps-set-wrapper" id="aps-set-<?php echo esc_attr($i); ?>">
|
268 |
+
<h3>Set <?php echo esc_attr($i); ?></h3>
|
269 |
<div class="aps-row">
|
270 |
<?php
|
271 |
$handle = opendir(dirname(realpath(__FILE__)) . '/icon-sets/png/set' . $i);
|
inc/backend/copy-icon-set.php
CHANGED
@@ -3,7 +3,7 @@ defined('ABSPATH') or die("No script kiddies please!");
|
|
3 |
global $wpdb;
|
4 |
$si_id = intval(sanitize_text_field($_GET['si_id']));
|
5 |
$table_name = $table_name = $wpdb->prefix . "aps_social_icons";
|
6 |
-
$icon_sets = $wpdb->get_results("SELECT * FROM $table_name
|
7 |
if(!empty($icon_sets)){
|
8 |
$icon_set = $icon_sets[0];
|
9 |
foreach($icon_set as $key=>$val){
|
3 |
global $wpdb;
|
4 |
$si_id = intval(sanitize_text_field($_GET['si_id']));
|
5 |
$table_name = $table_name = $wpdb->prefix . "aps_social_icons";
|
6 |
+
$icon_sets = $wpdb->get_results($wpdb->prepare("SELECT * FROM $table_name WHERE si_id=%d",array( $si_id )));
|
7 |
if(!empty($icon_sets)){
|
8 |
$icon_set = $icon_sets[0];
|
9 |
foreach($icon_set as $key=>$val){
|
inc/backend/edit-icon-set.php
CHANGED
@@ -3,7 +3,7 @@ defined('ABSPATH') or die("No script kiddies please!");
|
|
3 |
global $wpdb;
|
4 |
$si_id = intval(sanitize_text_field($_GET['si_id']));
|
5 |
$table_name = $table_name = $wpdb->prefix . "aps_social_icons";
|
6 |
-
$icon_sets = $wpdb->get_results("SELECT * FROM $table_name
|
7 |
if(!empty($icon_sets)){
|
8 |
$icon_set = $icon_sets[0];
|
9 |
$icon_extra = unserialize($icon_set->icon_extra);
|
@@ -73,7 +73,7 @@ $icon_extra = unserialize($icon_set->icon_extra);
|
|
73 |
<div class="aps-field-wrapper form-field display-horizontal-reference" <?php if ($icon_set->icon_display == 'vertical') { ?>style="display: none"<?php } ?>>
|
74 |
<label><?php _e('Number of Rows', 'accesspress-social-icons') ?></label>
|
75 |
<div class="aps-field">
|
76 |
-
<input type="number" name="num_rows" value="<?php echo $icon_set->num_rows; ?>" min="1"/>
|
77 |
</div>
|
78 |
<div class="aps-option-note">
|
79 |
<p><?php _e('Please enter the number of rows in number.Default is 1.', 'accesspress-social-icons'); ?></p>
|
@@ -252,9 +252,9 @@ $icon_extra = unserialize($icon_set->icon_extra);
|
|
252 |
<div class="aps-icon-body" style="display: none;">
|
253 |
|
254 |
<div class="aps-row">
|
255 |
-
<div class="aps-icon-preview <?php echo $icon_main_class;?>">
|
256 |
<label><?php _e('Icon Preview', 'accesspress-social-icons'); ?></label>
|
257 |
-
<img src="<?php echo esc_url_raw($icon_detail['image']); ?>" data-image-name="<?php echo (isset($icon_detail['image_name']))
|
258 |
</div>
|
259 |
<div class="aps-col-full">
|
260 |
<div class="aps-field-wrapper form-field">
|
@@ -293,7 +293,7 @@ $icon_extra = unserialize($icon_set->icon_extra);
|
|
293 |
</div><!--aps-field-wrapper form-field-->
|
294 |
</div>
|
295 |
<div class="aps-col-half">
|
296 |
-
<input type="hidden" name="icons[<?php echo esc_attr($title); ?>][image]" value="<?php echo $icon_detail['image']; ?>"/>
|
297 |
<div class="aps-field-wrapper form-field">
|
298 |
<label><?php _e('Tooltip Text', 'accesspress-social-icons'); ?></label>
|
299 |
<div class="aps-field">
|
@@ -314,8 +314,8 @@ $icon_extra = unserialize($icon_set->icon_extra);
|
|
314 |
</div>
|
315 |
</div>
|
316 |
</div>
|
317 |
-
<input type="hidden" name="icons[<?php echo $title; ?>][image_name]" value="<?php echo (isset($icon_detail['image_name']))
|
318 |
-
<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']))
|
319 |
<input type="hidden" name="icons[<?php echo esc_attr($title); ?>][border_type]" value="<?php echo esc_attr($icon_detail['border_type']) ?>"/>
|
320 |
<input type="hidden" name="icons[<?php echo esc_attr($title); ?>][border_thickness]" value="<?php echo esc_attr($icon_detail['border_thickness']) ?>"/>
|
321 |
<input type="hidden" name="icons[<?php echo esc_attr($title); ?>][border_color]" value="<?php echo esc_attr($icon_detail['border_color']) ?>"/>
|
@@ -355,7 +355,7 @@ $icon_extra = unserialize($icon_set->icon_extra);
|
|
355 |
$padding = "padding:{$padding}px;";
|
356 |
$icon_style =".$icon_main_class img{height:{$icon_height}px;width:{$icon_width}px;{$border}{$shadow}{$padding}";
|
357 |
?>
|
358 |
-
<style><?php echo $icon_style;?></style>
|
359 |
</li>
|
360 |
<?php
|
361 |
}
|
@@ -374,9 +374,9 @@ $icon_extra = unserialize($icon_set->icon_extra);
|
|
374 |
<div class="aps-error aps-main-error"></div>
|
375 |
<input type="submit" class="button button-primary" value="<?php _e('Save icon set', 'accesspress-social-icons'); ?>" name="aps_icon_set_submit" id="aps_icon_set_submit"/>
|
376 |
<input type="hidden" id="aps-icon-counter" value="<?php echo count($icon_details); ?>"/>
|
377 |
-
<input type="hidden" name="si_id" value="<?php echo $si_id; ?>"/>
|
378 |
<input type="hidden" name="current_page" value="<?php echo $this->curPageURL(); ?>"/>
|
379 |
-
<input type="hidden" name="icon_theme_id" id="icon_theme_id" value="<?php echo $icon_extra['icon_theme_id']; ?>"/>
|
380 |
|
381 |
</div>
|
382 |
<?php wp_nonce_field('aps_edit_action', 'aps_edit_set_nonce'); ?>
|
3 |
global $wpdb;
|
4 |
$si_id = intval(sanitize_text_field($_GET['si_id']));
|
5 |
$table_name = $table_name = $wpdb->prefix . "aps_social_icons";
|
6 |
+
$icon_sets = $wpdb->get_results($wpdb->prepare("SELECT * FROM $table_name WHERE si_id=%d",array( $si_id )));
|
7 |
if(!empty($icon_sets)){
|
8 |
$icon_set = $icon_sets[0];
|
9 |
$icon_extra = unserialize($icon_set->icon_extra);
|
73 |
<div class="aps-field-wrapper form-field display-horizontal-reference" <?php if ($icon_set->icon_display == 'vertical') { ?>style="display: none"<?php } ?>>
|
74 |
<label><?php _e('Number of Rows', 'accesspress-social-icons') ?></label>
|
75 |
<div class="aps-field">
|
76 |
+
<input type="number" name="num_rows" value="<?php echo esc_attr($icon_set->num_rows); ?>" min="1"/>
|
77 |
</div>
|
78 |
<div class="aps-option-note">
|
79 |
<p><?php _e('Please enter the number of rows in number.Default is 1.', 'accesspress-social-icons'); ?></p>
|
252 |
<div class="aps-icon-body" style="display: none;">
|
253 |
|
254 |
<div class="aps-row">
|
255 |
+
<div class="aps-icon-preview <?php echo esc_attr($icon_main_class);?>">
|
256 |
<label><?php _e('Icon Preview', 'accesspress-social-icons'); ?></label>
|
257 |
+
<img src="<?php echo esc_url_raw($icon_detail['image']); ?>" data-image-name="<?php echo (isset($icon_detail['image_name']))? esc_attr($icon_detail['image_name']):esc_attr($title);?>"/>
|
258 |
</div>
|
259 |
<div class="aps-col-full">
|
260 |
<div class="aps-field-wrapper form-field">
|
293 |
</div><!--aps-field-wrapper form-field-->
|
294 |
</div>
|
295 |
<div class="aps-col-half">
|
296 |
+
<input type="hidden" name="icons[<?php echo esc_attr($title); ?>][image]" value="<?php echo esc_attr($icon_detail['image']); ?>"/>
|
297 |
<div class="aps-field-wrapper form-field">
|
298 |
<label><?php _e('Tooltip Text', 'accesspress-social-icons'); ?></label>
|
299 |
<div class="aps-field">
|
314 |
</div>
|
315 |
</div>
|
316 |
</div>
|
317 |
+
<input type="hidden" name="icons[<?php echo esc_attr($title); ?>][image_name]" value="<?php echo (isset($icon_detail['image_name']))?esc_attr($icon_detail['image_name']):esc_attr($title);?>" />
|
318 |
+
<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']))?esc_attr($icon_detail['image_name']):esc_attr($title);?>"/>
|
319 |
<input type="hidden" name="icons[<?php echo esc_attr($title); ?>][border_type]" value="<?php echo esc_attr($icon_detail['border_type']) ?>"/>
|
320 |
<input type="hidden" name="icons[<?php echo esc_attr($title); ?>][border_thickness]" value="<?php echo esc_attr($icon_detail['border_thickness']) ?>"/>
|
321 |
<input type="hidden" name="icons[<?php echo esc_attr($title); ?>][border_color]" value="<?php echo esc_attr($icon_detail['border_color']) ?>"/>
|
355 |
$padding = "padding:{$padding}px;";
|
356 |
$icon_style =".$icon_main_class img{height:{$icon_height}px;width:{$icon_width}px;{$border}{$shadow}{$padding}";
|
357 |
?>
|
358 |
+
<style><?php echo esc_attr($icon_style);?></style>
|
359 |
</li>
|
360 |
<?php
|
361 |
}
|
374 |
<div class="aps-error aps-main-error"></div>
|
375 |
<input type="submit" class="button button-primary" value="<?php _e('Save icon set', 'accesspress-social-icons'); ?>" name="aps_icon_set_submit" id="aps_icon_set_submit"/>
|
376 |
<input type="hidden" id="aps-icon-counter" value="<?php echo count($icon_details); ?>"/>
|
377 |
+
<input type="hidden" name="si_id" value="<?php echo esc_attr($si_id); ?>"/>
|
378 |
<input type="hidden" name="current_page" value="<?php echo $this->curPageURL(); ?>"/>
|
379 |
+
<input type="hidden" name="icon_theme_id" id="icon_theme_id" value="<?php echo esc_attr($icon_extra['icon_theme_id']); ?>"/>
|
380 |
|
381 |
</div>
|
382 |
<?php wp_nonce_field('aps_edit_action', 'aps_edit_set_nonce'); ?>
|
inc/backend/icon-themes.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
<div>
|
8 |
<?php for ($i = 1; $i <= 12; $i++) {
|
9 |
?>
|
10 |
-
<label><input type="radio" id="aps-theme-<?php echo $i;?>" value="<?php echo $i;?>" class="aps-theme aps-png-theme" name="aps_icon_theme" <?php if (isset($_GET['action']) && $icon_extra['icon_set_type'] == 2 && $icon_extra['icon_theme_id'] == $i) { ?>checked="checked"<?php } ?>/>Theme <?php echo $i;?></label>
|
11 |
<div class="aps-theme-previewbox">
|
12 |
<img src="<?php echo esc_attr(APS_IMAGE_DIR) . '/preview'.$i.'.jpg' ?>" alt="theme preview" />
|
13 |
</div>
|
7 |
<div>
|
8 |
<?php for ($i = 1; $i <= 12; $i++) {
|
9 |
?>
|
10 |
+
<label><input type="radio" id="aps-theme-<?php echo esc_attr($i);?>" value="<?php echo esc_attr($i);?>" class="aps-theme aps-png-theme" name="aps_icon_theme" <?php if (isset($_GET['action']) && $icon_extra['icon_set_type'] == 2 && $icon_extra['icon_theme_id'] == $i) { ?>checked="checked"<?php } ?>/>Theme <?php echo esc_attr($i);?></label>
|
11 |
<div class="aps-theme-previewbox">
|
12 |
<img src="<?php echo esc_attr(APS_IMAGE_DIR) . '/preview'.$i.'.jpg' ?>" alt="theme preview" />
|
13 |
</div>
|
inc/backend/list-icon-sets.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
for ($i = 1; $i <= 1; $i++) {
|
3 |
?>
|
4 |
<div class="aps-set-wrapper">
|
5 |
-
<h3>Set <?php echo $i; ?></h3>
|
6 |
<?php
|
7 |
$icon_set_path = '../../icon-sets/set1';
|
8 |
$images = glob($icon_set_path . "*.*");
|
2 |
for ($i = 1; $i <= 1; $i++) {
|
3 |
?>
|
4 |
<div class="aps-set-wrapper">
|
5 |
+
<h3>Set <?php echo esc_attr($i); ?></h3>
|
6 |
<?php
|
7 |
$icon_set_path = '../../icon-sets/set1';
|
8 |
$images = glob($icon_set_path . "*.*");
|
inc/backend/main-page.php
CHANGED
@@ -71,18 +71,18 @@
|
|
71 |
<tr <?php if ($icon_set_counter % 2 != 0) { ?>class="alternate"<?php } ?>>
|
72 |
<td class="title column-title">
|
73 |
<strong>
|
74 |
-
<a class="row-title" href="<?php echo admin_url() . 'admin.php?page=aps-social&action=edit_si&si_id=' . $icon_set->si_id . '&_wpnonce=' . $edit_nonce; ?>" title="Edit">
|
75 |
<?php echo esc_attr($icon_set->icon_set_name); ?>
|
76 |
</a>
|
77 |
</strong>
|
78 |
<div class="row-actions">
|
79 |
-
<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>
|
80 |
-
<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?', 'accesspress-social-icons'); ?>')">Copy</a> | </span>
|
81 |
-
<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?', 'accesspress-social-icons'); ?>')">Delete</a></span>
|
82 |
</div>
|
83 |
</td>
|
84 |
-
<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>
|
85 |
-
<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>
|
86 |
</tr>
|
87 |
<?php
|
88 |
$icon_set_counter++;
|
71 |
<tr <?php if ($icon_set_counter % 2 != 0) { ?>class="alternate"<?php } ?>>
|
72 |
<td class="title column-title">
|
73 |
<strong>
|
74 |
+
<a class="row-title" href="<?php echo admin_url() . 'admin.php?page=aps-social&action=edit_si&si_id=' . esc_attr($icon_set->si_id) . '&_wpnonce=' . $edit_nonce; ?>" title="Edit">
|
75 |
<?php echo esc_attr($icon_set->icon_set_name); ?>
|
76 |
</a>
|
77 |
</strong>
|
78 |
<div class="row-actions">
|
79 |
+
<span class="edit"><a href="<?php echo admin_url() . 'admin.php?page=aps-social&action=edit_si&si_id=' . esc_attr($icon_set->si_id) . '&_wpnonce=' . $edit_nonce; ?>">Edit</a> | </span>
|
80 |
+
<span class="copy"><a href="<?php echo admin_url() . 'admin-post.php?action=aps_copy_action&si_id=' . esc_attr($icon_set->si_id) . '&_wpnonce=' . $copy_nonce; ?>" onclick="return confirm('<?php _e('Are you sure you want to copy this icon set?', 'accesspress-social-icons'); ?>')">Copy</a> | </span>
|
81 |
+
<span class="delete"><a href="<?php echo admin_url() . 'admin-post.php?action=aps_delete_action&si_id=' . esc_attr($icon_set->si_id) . '&_wpnonce=' . $delete_nonce; ?>" onclick="return confirm('<?php _e('Are you sure you want to delete this icon set?', 'accesspress-social-icons'); ?>')">Delete</a></span>
|
82 |
</div>
|
83 |
</td>
|
84 |
+
<td class="shortcode column-shortcode"><input type="text" onFocus="this.select();" readonly="readonly" value="[aps-social id="<?php echo esc_attr($icon_set->si_id); ?>"]" class="shortcode-in-list-table wp-ui-text-highlight code"></td>
|
85 |
+
<td class="shortcode column-shortcode"><input type="text" onFocus="this.select();" readonly="readonly" value="<?php echo do_shortcode('[aps-social id="<?php echo esc_attr($icon_set->si_id); ?>"]')?>" class="shortcode-in-list-table wp-ui-text-highlight code"></td>
|
86 |
</tr>
|
87 |
<?php
|
88 |
$icon_set_counter++;
|
inc/backend/widgets.php
CHANGED
@@ -29,7 +29,7 @@ class APS_Widget extends WP_Widget {
|
|
29 |
}
|
30 |
if($instance['si_id']!='')
|
31 |
{
|
32 |
-
$si_id = $instance['si_id'];
|
33 |
echo do_shortcode('[aps-social id="'.$si_id.'"]');
|
34 |
}
|
35 |
echo $args['after_widget'];
|
@@ -51,7 +51,7 @@ class APS_Widget extends WP_Widget {
|
|
51 |
}
|
52 |
if(isset($instance['si_id']))
|
53 |
{
|
54 |
-
$si_id = $instance['si_id'];
|
55 |
}
|
56 |
else
|
57 |
{
|
@@ -72,7 +72,7 @@ class APS_Widget extends WP_Widget {
|
|
72 |
<option value=""><?php _e('Choose Icon Set','accesspress-social-icons');?></option>
|
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>
|
29 |
}
|
30 |
if($instance['si_id']!='')
|
31 |
{
|
32 |
+
$si_id = intval($instance['si_id']);
|
33 |
echo do_shortcode('[aps-social id="'.$si_id.'"]');
|
34 |
}
|
35 |
echo $args['after_widget'];
|
51 |
}
|
52 |
if(isset($instance['si_id']))
|
53 |
{
|
54 |
+
$si_id = intval($instance['si_id']);
|
55 |
}
|
56 |
else
|
57 |
{
|
72 |
<option value=""><?php _e('Choose Icon Set','accesspress-social-icons');?></option>
|
73 |
<?php foreach($icon_sets as $icon_set){
|
74 |
?>
|
75 |
+
<option value="<?php echo esc_attr($icon_set->si_id);?>" <?php if($si_id==$icon_set->si_id){?>selected="selected"<?php }?>><?php echo esc_attr($icon_set->icon_set_name);?></option>
|
76 |
<?php
|
77 |
}?>
|
78 |
</select>
|
inc/frontend/icon-group-list.php
CHANGED
@@ -27,7 +27,7 @@
|
|
27 |
$group_icon_counter++;
|
28 |
if ($group_icon_counter == 1) {
|
29 |
?>
|
30 |
-
<div class="<?php echo $icon_position_class; ?>">
|
31 |
<?php
|
32 |
}
|
33 |
$icon_main_class = 'icon-' . $si_id . '-' . $icon_counter;
|
@@ -38,8 +38,8 @@
|
|
38 |
$tooltip_text = ($icon['tooltip_text'] == '') ? esc_attr($title) : esc_attr($icon['tooltip_text']);
|
39 |
|
40 |
?>
|
41 |
-
<div class="aps-each-icon <?php echo $icon_main_class; ?>" style='margin:<?php echo str_replace('px', '', $icon_set->icon_margin); ?>px;' data-aps-tooltip='<?php echo $tooltip_text ?>' data-aps-tooltip-enabled="<?php echo $icon_set->icon_tooltip; ?>" data-aps-tooltip-bg="<?php echo $tooltip_bg = ($icon_set->tooltip_background == '') ? '#000' : $icon_set->tooltip_background; ?>" data-aps-tooltip-color="<?php echo ($icon_set->tooltip_text_color == '') ? '#fff' : $icon_set->tooltip_text_color; ?>">
|
42 |
-
<a href="<?php echo $icon['link'] ?>" <?php echo $link_target; ?> class="<?php echo apply_filters('apsi_icon_class','aps-icon-link');?> animated <?php echo ($icon_set->icon_tooltip == 1) ? 'aps-tooltip' : ''; ?>" data-animation-class="<?php echo $icon_set->icon_animation; ?>">
|
43 |
<?php
|
44 |
$border_thickness = str_replace('px', '', $icon['border_thickness']);
|
45 |
$border_thickness = ($border_thickness == '') ? '1' : $border_thickness;
|
@@ -74,7 +74,7 @@
|
|
74 |
//if($icon[''])
|
75 |
?>
|
76 |
</a>
|
77 |
-
<span class="aps-icon-tooltip aps-icon-tooltip-<?php echo $icon_extra['tooltip_position']; ?>" style="display: none;"></span>
|
78 |
<?php
|
79 |
$icon_style = apply_filters('apsi_icon_style',$icon_style);
|
80 |
$icon_style .='</style>';
|
27 |
$group_icon_counter++;
|
28 |
if ($group_icon_counter == 1) {
|
29 |
?>
|
30 |
+
<div class="<?php echo esc_attr($icon_position_class); ?>">
|
31 |
<?php
|
32 |
}
|
33 |
$icon_main_class = 'icon-' . $si_id . '-' . $icon_counter;
|
38 |
$tooltip_text = ($icon['tooltip_text'] == '') ? esc_attr($title) : esc_attr($icon['tooltip_text']);
|
39 |
|
40 |
?>
|
41 |
+
<div class="aps-each-icon <?php echo esc_attr($icon_main_class); ?>" style='margin:<?php echo str_replace('px', '', $icon_set->icon_margin); ?>px;' data-aps-tooltip='<?php echo esc_attr($tooltip_text); ?>' data-aps-tooltip-enabled="<?php echo esc_attr($icon_set->icon_tooltip); ?>" data-aps-tooltip-bg="<?php echo $tooltip_bg = ($icon_set->tooltip_background == '') ? '#000' : $icon_set->tooltip_background; ?>" data-aps-tooltip-color="<?php echo ($icon_set->tooltip_text_color == '') ? '#fff' : $icon_set->tooltip_text_color; ?>">
|
42 |
+
<a href="<?php echo esc_url($icon['link']); ?>" <?php echo esc_attr($link_target); ?> class="<?php echo apply_filters('apsi_icon_class','aps-icon-link');?> animated <?php echo ($icon_set->icon_tooltip == 1) ? 'aps-tooltip' : ''; ?>" data-animation-class="<?php echo esc_attr($icon_set->icon_animation); ?>">
|
43 |
<?php
|
44 |
$border_thickness = str_replace('px', '', $icon['border_thickness']);
|
45 |
$border_thickness = ($border_thickness == '') ? '1' : $border_thickness;
|
74 |
//if($icon[''])
|
75 |
?>
|
76 |
</a>
|
77 |
+
<span class="aps-icon-tooltip aps-icon-tooltip-<?php echo esc_attr($icon_extra['tooltip_position']); ?>" style="display: none;"></span>
|
78 |
<?php
|
79 |
$icon_style = apply_filters('apsi_icon_style',$icon_style);
|
80 |
$icon_style .='</style>';
|
inc/frontend/shortcode.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
<?php defined('ABSPATH') or die("No script kiddies please!");?>
|
2 |
<?php
|
3 |
-
$si_id =
|
4 |
global $wpdb;
|
5 |
$table_name = $table_name = $wpdb->prefix . "aps_social_icons";
|
6 |
-
$icon_sets = $wpdb->get_results("SELECT * FROM $table_name
|
7 |
if (!empty($icon_sets)) {
|
8 |
$icon_set = $icon_sets[0];
|
9 |
$icon_extra = unserialize($icon_set->icon_extra);
|
1 |
<?php defined('ABSPATH') or die("No script kiddies please!");?>
|
2 |
<?php
|
3 |
+
$si_id = intval($atts['id']);
|
4 |
global $wpdb;
|
5 |
$table_name = $table_name = $wpdb->prefix . "aps_social_icons";
|
6 |
+
$icon_sets = $wpdb->get_results($wpdb->prepare("SELECT * FROM $table_name WHERE si_id=%d",array( $si_id )));
|
7 |
if (!empty($icon_sets)) {
|
8 |
$icon_set = $icon_sets[0];
|
9 |
$icon_extra = unserialize($icon_set->icon_extra);
|
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.5.1
|
7 |
-
Stable tag: 1.8.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -121,6 +121,9 @@ Once you install the plugin , you can check some general documentation about how
|
|
121 |
2. Backend Icon Sets Listings
|
122 |
|
123 |
== Changelog ==
|
|
|
|
|
|
|
124 |
= 1.8.0 =
|
125 |
* Some refinement work in the backend.
|
126 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.5.1
|
7 |
+
Stable tag: 1.8.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
121 |
2. Backend Icon Sets Listings
|
122 |
|
123 |
== Changelog ==
|
124 |
+
= 1.8.1 =
|
125 |
+
* Necessary code refinement.
|
126 |
+
|
127 |
= 1.8.0 =
|
128 |
* Some refinement work in the backend.
|
129 |
|