Version Description
- Aug 26, 2015 | NOTE: UPGRADING PLUGIN WILL NOT CHANGE YOUR SETTINGS/CONFIGURATION.. UPGRADE WITH CONFIDENCE :)
- Compatibility Fix
- Stable Release
- Code Improvements
Download this release
Release Info
Developer | Acurax |
Plugin | Social Media Widget by Acurax |
Version | 2.3.1 |
Comparing to | |
See all releases |
Code changes from version 2.3 to 2.3.1
- acurax-social-icon.php +1 -1
- function.php +9 -10
- readme.txt +13 -1
- smw-misc.php +10 -1
- social-icon.php +23 -5
acurax-social-icon.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Social Media Widget by Acurax
|
|
4 |
Plugin URI: http://www.acurax.com/products/floating-social-media-icon-plugin-wordpress/
|
5 |
Description: A Simple Wordpress Plugin Which Allow You To Add Widget Which Links Social Media Icons to Your Social Media Profiles Twitter,Facebook,Pinterest,Youtube,Rss Feed,Linkedin,google plus. You can define icon style size for each widget.
|
6 |
Author: Acurax
|
7 |
-
Version: 2.3
|
8 |
Author URI: http://www.acurax.com
|
9 |
License: GPLv2 or later
|
10 |
*/
|
4 |
Plugin URI: http://www.acurax.com/products/floating-social-media-icon-plugin-wordpress/
|
5 |
Description: A Simple Wordpress Plugin Which Allow You To Add Widget Which Links Social Media Icons to Your Social Media Profiles Twitter,Facebook,Pinterest,Youtube,Rss Feed,Linkedin,google plus. You can define icon style size for each widget.
|
6 |
Author: Acurax
|
7 |
+
Version: 2.3.1
|
8 |
Author URI: http://www.acurax.com
|
9 |
License: GPLv2 or later
|
10 |
*/
|
function.php
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
<?php
|
2 |
-
error_reporting(0);
|
3 |
//*************** Include style.css in Header ********
|
4 |
// Getting Option From DB *****************************
|
5 |
$acx_widget_si_theme = get_option('acx_widget_si_theme');
|
@@ -208,7 +207,7 @@ function acx_widget_si_pluign_finish_version_update()
|
|
208 |
</div>';
|
209 |
}
|
210 |
$acx_widget_si_current_version = get_option('acx_widget_si_current_version');
|
211 |
-
if($acx_widget_si_current_version != '2.3') // Current Version
|
212 |
{
|
213 |
if (get_option('social_widget_icon_array_order') != "")
|
214 |
{
|
@@ -265,7 +264,7 @@ class acx_social_widget_icons_Widget extends WP_Widget
|
|
265 |
// Set some control options (width, height etc)
|
266 |
$control_options = array( 'width' => 300 );
|
267 |
// Actually create the widget (widget id, widget name, options...)
|
268 |
-
|
269 |
}
|
270 |
// Output the content of the widget
|
271 |
function widget($args, $instance)
|
@@ -331,14 +330,14 @@ class acx_social_widget_icons_Widget extends WP_Widget
|
|
331 |
<label for="<?php echo $this->get_field_id('icon_theme'); ?>"><?php _e('Icon Theme:'); ?></label>
|
332 |
<select class="widefat" name="<?php echo $this->get_field_name('icon_theme'); ?>" id="<?php echo $this
|
333 |
->get_field_id('icon_theme'); ?>">
|
334 |
-
<option value=""<?php if
|
335 |
'selected="selected"'; } ?>>Default Theme Design</option>
|
336 |
<?php
|
337 |
for ($i=1; $i < $total_themes; $i++)
|
338 |
{
|
339 |
?>
|
340 |
-
<option value="<?php echo $i; ?>"<?php if ($instance['icon_theme'] == $i) { echo
|
341 |
-
'selected="selected"'; } ?>>Theme Design <?php echo $i; ?> </option>
|
342 |
<?php
|
343 |
} ?>
|
344 |
</select>
|
@@ -347,13 +346,13 @@ class acx_social_widget_icons_Widget extends WP_Widget
|
|
347 |
<label for="<?php echo $this->get_field_id('icon_align'); ?>"><?php _e('Icon Align:'); ?></label>
|
348 |
<select class="widefat" name="<?php echo $this->get_field_name('icon_align'); ?>" id="<?php echo $this
|
349 |
->get_field_id('icon_align'); ?>">
|
350 |
-
<option value=""<?php if
|
351 |
option>
|
352 |
-
<option value="left"<?php if
|
353 |
option>
|
354 |
-
<option value="center"<?php if ($instance['icon_align'] == "center") { echo 'selected="selected"'; } ?>>Center </
|
355 |
option>
|
356 |
-
<option value="right"<?php if ($instance['icon_align'] == "right") { echo 'selected="selected"'; } ?>>Right </
|
357 |
option>
|
358 |
</select>
|
359 |
</p>
|
1 |
<?php
|
|
|
2 |
//*************** Include style.css in Header ********
|
3 |
// Getting Option From DB *****************************
|
4 |
$acx_widget_si_theme = get_option('acx_widget_si_theme');
|
207 |
</div>';
|
208 |
}
|
209 |
$acx_widget_si_current_version = get_option('acx_widget_si_current_version');
|
210 |
+
if($acx_widget_si_current_version != '2.3.1') // Current Version
|
211 |
{
|
212 |
if (get_option('social_widget_icon_array_order') != "")
|
213 |
{
|
264 |
// Set some control options (width, height etc)
|
265 |
$control_options = array( 'width' => 300 );
|
266 |
// Actually create the widget (widget id, widget name, options...)
|
267 |
+
parent::__construct( 'acx-social-icons-widget', 'Acurax Social Media Widget', $widget_options, $control_options );
|
268 |
}
|
269 |
// Output the content of the widget
|
270 |
function widget($args, $instance)
|
330 |
<label for="<?php echo $this->get_field_id('icon_theme'); ?>"><?php _e('Icon Theme:'); ?></label>
|
331 |
<select class="widefat" name="<?php echo $this->get_field_name('icon_theme'); ?>" id="<?php echo $this
|
332 |
->get_field_id('icon_theme'); ?>">
|
333 |
+
<option value=""<?php if(!ISSET($instance['icon_theme'])) { echo
|
334 |
'selected="selected"'; } ?>>Default Theme Design</option>
|
335 |
<?php
|
336 |
for ($i=1; $i < $total_themes; $i++)
|
337 |
{
|
338 |
?>
|
339 |
+
<option value="<?php echo $i; ?>"<?php if(ISSET($instance['icon_theme'])){if ($instance['icon_theme'] == $i) { echo
|
340 |
+
'selected="selected"'; }} ?>>Theme Design <?php echo $i; ?> </option>
|
341 |
<?php
|
342 |
} ?>
|
343 |
</select>
|
346 |
<label for="<?php echo $this->get_field_id('icon_align'); ?>"><?php _e('Icon Align:'); ?></label>
|
347 |
<select class="widefat" name="<?php echo $this->get_field_name('icon_align'); ?>" id="<?php echo $this
|
348 |
->get_field_id('icon_align'); ?>">
|
349 |
+
<option value=""<?php if(!ISSET($instance['icon_align'])) { echo 'selected="selected"'; } ?>>Default </
|
350 |
option>
|
351 |
+
<option value="left"<?php if(ISSET($instance['icon_align'])){ if($instance['icon_align'] == "left") { echo 'selected="selected"'; }} ?>>Left </
|
352 |
option>
|
353 |
+
<option value="center"<?php if(ISSET($instance['icon_align'])){ if($instance['icon_align'] == "center") { echo 'selected="selected"'; } }?>>Center </
|
354 |
option>
|
355 |
+
<option value="right"<?php if(ISSET($instance['icon_align'])){ if($instance['icon_align'] == "right") { echo 'selected="selected"'; } }?>>Right </
|
356 |
option>
|
357 |
</select>
|
358 |
</p>
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: Acurax
|
|
3 |
|
4 |
Tags: Social Media Widget,social icon widget,social media icon,socialmedia,fb widget,business social media,pinterest,social media marketing tools,social profile link,twitter facebook,social media button,pinterest button,social media logos,social media buttons,google plus button
|
5 |
Requires at least: 2.8
|
6 |
-
Tested up to: 4.
|
7 |
Stable tag: trunk
|
8 |
|
9 |
Social Media Widget Plugin, A Simple Social Icon Widget To Show Essential Social Media Icons - Can Select Social Media Icon Style , Size and Order.
|
@@ -115,6 +115,12 @@ Have more questions ? [Drop a mail](http://www.acurax.com/contact.php/ "Drop an
|
|
115 |
|
116 |
== Upgrade Notice ==
|
117 |
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
= 2.3 =
|
119 |
* Aug 22, 2015 | NOTE: UPGRADING PLUGIN WILL NOT CHANGE YOUR SETTINGS/CONFIGURATION.. UPGRADE WITH CONFIDENCE :)
|
120 |
* Stable Release
|
@@ -178,6 +184,12 @@ Have more questions ? [Drop a mail](http://www.acurax.com/contact.php/ "Drop an
|
|
178 |
|
179 |
== Changelog ==
|
180 |
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
= 2.3 =
|
182 |
* Aug 22, 2015 | NOTE: UPGRADING PLUGIN WILL NOT CHANGE YOUR SETTINGS/CONFIGURATION.. UPGRADE WITH CONFIDENCE :)
|
183 |
* Stable Release
|
3 |
|
4 |
Tags: Social Media Widget,social icon widget,social media icon,socialmedia,fb widget,business social media,pinterest,social media marketing tools,social profile link,twitter facebook,social media button,pinterest button,social media logos,social media buttons,google plus button
|
5 |
Requires at least: 2.8
|
6 |
+
Tested up to: 4.3
|
7 |
Stable tag: trunk
|
8 |
|
9 |
Social Media Widget Plugin, A Simple Social Icon Widget To Show Essential Social Media Icons - Can Select Social Media Icon Style , Size and Order.
|
115 |
|
116 |
== Upgrade Notice ==
|
117 |
|
118 |
+
= 2.3.1 =
|
119 |
+
* Aug 26, 2015 | NOTE: UPGRADING PLUGIN WILL NOT CHANGE YOUR SETTINGS/CONFIGURATION.. UPGRADE WITH CONFIDENCE :)
|
120 |
+
* Compatibility Fix
|
121 |
+
* Stable Release
|
122 |
+
* Code Improvements
|
123 |
+
|
124 |
= 2.3 =
|
125 |
* Aug 22, 2015 | NOTE: UPGRADING PLUGIN WILL NOT CHANGE YOUR SETTINGS/CONFIGURATION.. UPGRADE WITH CONFIDENCE :)
|
126 |
* Stable Release
|
184 |
|
185 |
== Changelog ==
|
186 |
|
187 |
+
= 2.3.1 =
|
188 |
+
* Aug 26, 2015 | NOTE: UPGRADING PLUGIN WILL NOT CHANGE YOUR SETTINGS/CONFIGURATION.. UPGRADE WITH CONFIDENCE :)
|
189 |
+
* Compatibility Fix
|
190 |
+
* Stable Release
|
191 |
+
* Code Improvements
|
192 |
+
|
193 |
= 2.3 =
|
194 |
* Aug 22, 2015 | NOTE: UPGRADING PLUGIN WILL NOT CHANGE YOUR SETTINGS/CONFIGURATION.. UPGRADE WITH CONFIDENCE :)
|
195 |
* Stable Release
|
smw-misc.php
CHANGED
@@ -1,5 +1,14 @@
|
|
1 |
<?php
|
2 |
-
if($_POST['acurax_social_widget_icon_hidden']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
{ //Form data sent
|
4 |
|
5 |
if (!isset($_POST['acx_si_misc_submit'])) die("<br><br>Unknown Error Occurred, Try Again... <a href=''>Click Here</a>");
|
1 |
<?php
|
2 |
+
if(ISSET($_POST['acurax_social_widget_icon_hidden']))
|
3 |
+
{
|
4 |
+
$acurax_social_widget_icon_hidden = $_POST['acurax_social_widget_icon_hidden'];
|
5 |
+
}
|
6 |
+
else
|
7 |
+
{
|
8 |
+
$acurax_social_widget_icon_hidden = '';
|
9 |
+
}
|
10 |
+
|
11 |
+
if($acurax_social_widget_icon_hidden == 'Y')
|
12 |
{ //Form data sent
|
13 |
|
14 |
if (!isset($_POST['acx_si_misc_submit'])) die("<br><br>Unknown Error Occurred, Try Again... <a href=''>Click Here</a>");
|
social-icon.php
CHANGED
@@ -3,7 +3,15 @@
|
|
3 |
$total_themes = ACX_SOCIALMEDIA_WIDGET_TOTAL_THEMES; // DEFINE NUMBER OF THEMES HERE
|
4 |
$total_themes = ($total_themes+1); // DO NOT EDIT THIS
|
5 |
/**********************************************/
|
6 |
-
if($_POST['acurax_social_widget_icon_hidden']
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
{ //Form data sent
|
8 |
|
9 |
if (!isset($_POST['acx_si_settings_submit'])) die("<br><br>Unknown Error Occurred, Try Again... <a href=''>Click Here</a>");
|
@@ -27,7 +35,7 @@ if(!current_user_can('manage_options')) die("<br><br>Sorry, You have no permissi
|
|
27 |
update_option('acx_widget_si_linkedin', $acx_widget_si_linkedin);
|
28 |
$acx_widget_si_gplus = $_POST['acx_widget_si_gplus'];
|
29 |
update_option('acx_widget_si_gplus', $acx_widget_si_gplus);
|
30 |
-
$acx_widget_si_credit = sanitize_text_field($_POST['acx_widget_si_credit']);
|
31 |
update_option('acx_widget_si_credit', $acx_widget_si_credit);
|
32 |
$acx_widget_si_icon_size = sanitize_text_field($_POST['acx_widget_si_icon_size']);
|
33 |
update_option('acx_widget_si_icon_size', $acx_widget_si_icon_size);
|
@@ -70,7 +78,7 @@ update_option('acx_widget_si_installed_date', $acx_widget_si_installed_date);
|
|
70 |
$social_widget_icon_array_order = array(0,1,2,3,4,5,6);
|
71 |
$social_widget_icon_array_order = serialize($social_widget_icon_array_order);
|
72 |
update_option('social_widget_icon_array_order', $social_widget_icon_array_order);
|
73 |
-
$acx_widget_si_current_version = "2.3"; // Current Version
|
74 |
update_option('acx_widget_si_current_version', $acx_widget_si_current_version);
|
75 |
} else
|
76 |
{
|
@@ -343,10 +351,20 @@ if ($acx_si_smw_acx_service_banners != "no") { ?>
|
|
343 |
<a name="updated">.</a>
|
344 |
</p>
|
345 |
</form>
|
346 |
-
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
347 |
<div style="display: block; background-color: rgb(255, 255, 224); padding: 10px; border: 1px solid rgb(230, 219, 85); font-family: arial; font-size: 13px; font-weight: bold; text-align: center; border-radius: 10px 10px 10px 10px;">Acurax Social Media Widget Update Successfully Completed - Thank You</div>
|
348 |
<?php
|
349 |
-
$acx_widget_si_current_version = "2.3"; // Current Version
|
350 |
update_option('acx_widget_si_current_version', $acx_widget_si_current_version);
|
351 |
} ?>
|
352 |
<hr/>
|
3 |
$total_themes = ACX_SOCIALMEDIA_WIDGET_TOTAL_THEMES; // DEFINE NUMBER OF THEMES HERE
|
4 |
$total_themes = ($total_themes+1); // DO NOT EDIT THIS
|
5 |
/**********************************************/
|
6 |
+
if(ISSET($_POST['acurax_social_widget_icon_hidden']))
|
7 |
+
{
|
8 |
+
$acurax_social_widget_icon_hidden = $_POST['acurax_social_widget_icon_hidden'];
|
9 |
+
}
|
10 |
+
else
|
11 |
+
{
|
12 |
+
$acurax_social_widget_icon_hidden = '';
|
13 |
+
}
|
14 |
+
if($acurax_social_widget_icon_hidden == 'Y')
|
15 |
{ //Form data sent
|
16 |
|
17 |
if (!isset($_POST['acx_si_settings_submit'])) die("<br><br>Unknown Error Occurred, Try Again... <a href=''>Click Here</a>");
|
35 |
update_option('acx_widget_si_linkedin', $acx_widget_si_linkedin);
|
36 |
$acx_widget_si_gplus = $_POST['acx_widget_si_gplus'];
|
37 |
update_option('acx_widget_si_gplus', $acx_widget_si_gplus);
|
38 |
+
$acx_widget_si_credit = sanitize_text_field(ISSET($_POST['acx_widget_si_credit']));
|
39 |
update_option('acx_widget_si_credit', $acx_widget_si_credit);
|
40 |
$acx_widget_si_icon_size = sanitize_text_field($_POST['acx_widget_si_icon_size']);
|
41 |
update_option('acx_widget_si_icon_size', $acx_widget_si_icon_size);
|
78 |
$social_widget_icon_array_order = array(0,1,2,3,4,5,6);
|
79 |
$social_widget_icon_array_order = serialize($social_widget_icon_array_order);
|
80 |
update_option('social_widget_icon_array_order', $social_widget_icon_array_order);
|
81 |
+
$acx_widget_si_current_version = "2.3.1"; // Current Version
|
82 |
update_option('acx_widget_si_current_version', $acx_widget_si_current_version);
|
83 |
} else
|
84 |
{
|
351 |
<a name="updated">.</a>
|
352 |
</p>
|
353 |
</form>
|
354 |
+
<?php
|
355 |
+
if(ISSET($_GET["status"]))
|
356 |
+
{
|
357 |
+
$acx_status = $_GET['status'];
|
358 |
+
}
|
359 |
+
else
|
360 |
+
{
|
361 |
+
$acx_status = '';
|
362 |
+
}
|
363 |
+
|
364 |
+
if($acx_status == "updated") { ?>
|
365 |
<div style="display: block; background-color: rgb(255, 255, 224); padding: 10px; border: 1px solid rgb(230, 219, 85); font-family: arial; font-size: 13px; font-weight: bold; text-align: center; border-radius: 10px 10px 10px 10px;">Acurax Social Media Widget Update Successfully Completed - Thank You</div>
|
366 |
<?php
|
367 |
+
$acx_widget_si_current_version = "2.3.1"; // Current Version
|
368 |
update_option('acx_widget_si_current_version', $acx_widget_si_current_version);
|
369 |
} ?>
|
370 |
<hr/>
|