Social Media Flying Icons | Floating Social Media Icon - Version 2.3

Version Description

  • Aug 25, 2015 | NOTE: Updating Plugin Will Not Change Your Settings/Configuration.. Update With Confidence :)
  • Code Optimization
  • Stable Release
Download this release

Release Info

Developer Acurax
Plugin Icon 128x128 Social Media Flying Icons | Floating Social Media Icon
Version 2.3
Comparing to
See all releases

Code changes from version 2.2 to 2.3

Files changed (5) hide show
  1. acurax-social-icon.php +1 -1
  2. fsmi-misc.php +9 -1
  3. function.php +14 -15
  4. readme.txt +11 -1
  5. social-icon.php +24 -7
acurax-social-icon.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Floating Social Media Icon
4
  Plugin URI: http://www.acurax.com/products/floating-social-media-icon-plugin-wordpress/
5
  Description: An easy to use plugin to show social media icons which floats on your browsers right bottom, which links to your social media profiles, You have option in plugin settings to configure social media profile urls and also can select icon style,order and size.
6
  Author: Acurax
7
- Version: 2.2
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: An easy to use plugin to show social media icons which floats on your browsers right bottom, which links to your social media profiles, You have option in plugin settings to configure social media profile urls and also can select icon style,order and size.
6
  Author: Acurax
7
+ Version: 2.3
8
  Author URI: http://www.acurax.com
9
  License: GPLv2 or later
10
  */
fsmi-misc.php CHANGED
@@ -1,5 +1,13 @@
1
  <?php
2
- if($_POST['acurax_social_icon_hidden'] == 'Y')
 
 
 
 
 
 
 
 
3
  { //Form data sent
4
  if (!isset($_POST['acx_fsmi_misc'])) die("<br><br>Unknown Error Occurred, Try Again... <a href=''>Click Here</a>");
5
  if (!wp_verify_nonce($_POST['acx_fsmi_misc'],'acx_fsmi_misc')) die("<br><br>Unknown Error Occurred, Try Again... <a href=''>Click Here</a>");
1
  <?php
2
+ if(ISSET($_POST['acurax_social_icon_hidden']))
3
+ {
4
+ $acurax_social_icon_hidden = $_POST['acurax_social_icon_hidden'];
5
+ }
6
+ else
7
+ {
8
+ $acurax_social_icon_hidden = '';
9
+ }
10
+ if($acurax_social_icon_hidden == 'Y')
11
  { //Form data sent
12
  if (!isset($_POST['acx_fsmi_misc'])) die("<br><br>Unknown Error Occurred, Try Again... <a href=''>Click Here</a>");
13
  if (!wp_verify_nonce($_POST['acx_fsmi_misc'],'acx_fsmi_misc')) die("<br><br>Unknown Error Occurred, Try Again... <a href=''>Click Here</a>");
function.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
- // error_reporting('E_ALL');
3
  //*************** Include style.css in Header ********
4
  // Getting Option From DB *****************************
5
  $acx_si_theme = get_option('acx_si_theme');
@@ -606,7 +605,7 @@ function acx_fsmi_si_pluign_finish_version_update()
606
  </div>';
607
  }
608
  $acx_fsmi_si_current_version = get_option('acx_fsmi_si_current_version');
609
- if($acx_fsmi_si_current_version != '2.2') // Current Version
610
  {
611
  if (get_option('social_icon_array_order') != "")
612
  {
@@ -692,7 +691,7 @@ class Acx_Social_Icons_Widget extends WP_Widget
692
  // Set some control options (width, height etc)
693
  $control_options = array( 'width' => 300 );
694
  // Actually create the widget (widget id, widget name, options...)
695
- $this->WP_Widget( 'acx-social-icons-widget', 'Acx Social Icons', $widget_options, $control_options );
696
  }
697
  // Output the content of the widget
698
  function widget($args, $instance)
@@ -739,23 +738,23 @@ class Acx_Social_Icons_Widget extends WP_Widget
739
  <p>
740
  <label for="<?php echo $this->get_field_id('icon_size'); ?>"><?php _e('Icon Size:'); ?></label>
741
  <select class="widefat" name="<?php echo $this->get_field_name('icon_size'); ?>" id="<?php echo $this->get_field_id('icon_size'); ?>">
742
- <option value="16"<?php if ($instance['icon_size'] == "16") { echo 'selected="selected"'; } ?>>16px X 16px </option>
743
- <option value="25"<?php if ($instance['icon_size'] == "25") { echo 'selected="selected"'; } ?>>25px X 25px </option>
744
- <option value="32"<?php if ($instance['icon_size'] == "32") { echo 'selected="selected"'; } ?>>32px X 32px </option>
745
- <option value="40"<?php if ($instance['icon_size'] == "40") { echo 'selected="selected"'; } ?>>40px X 40px </option>
746
- <option value="48"<?php if ($instance['icon_size'] == "48") { echo 'selected="selected"'; } ?>>48px X 48px </option>
747
- <option value="55"<?php if ($instance['icon_size'] == "55") { echo 'selected="selected"'; } ?>>55px X 55px </option>
748
  </select>
749
  </p>
750
  <p>
751
  <label for="<?php echo $this->get_field_id('icon_theme'); ?>"><?php _e('Icon Theme:'); ?></label>
752
  <select class="widefat" name="<?php echo $this->get_field_name('icon_theme'); ?>" id="<?php echo $this->get_field_id('icon_theme'); ?>">
753
- <option value=""<?php if ($instance['icon_theme'] == "") { echo 'selected="selected"'; } ?>>Default Theme Design</option>
754
  <?php
755
  for ($i=1; $i < $total_themes; $i++)
756
  {
757
  ?>
758
- <option value="<?php echo $i; ?>"<?php if ($instance['icon_theme'] == $i) { echo 'selected="selected"'; } ?>>Theme Design <?php echo $i; ?> </option>
759
  <?php
760
  } ?>
761
  </select>
@@ -763,10 +762,10 @@ for ($i=1; $i < $total_themes; $i++)
763
  <p>
764
  <label for="<?php echo $this->get_field_id('icon_align'); ?>"><?php _e('Icon Align:'); ?></label>
765
  <select class="widefat" name="<?php echo $this->get_field_name('icon_align'); ?>" id="<?php echo $this->get_field_id('icon_align'); ?>">
766
- <option value=""<?php if ($instance['icon_align'] == "") { echo 'selected="selected"'; } ?>>Default </option>
767
- <option value="left"<?php if ($instance['icon_align'] == "left") { echo 'selected="selected"'; } ?>>Left </option>
768
- <option value="center"<?php if ($instance['icon_align'] == "center") { echo 'selected="selected"'; } ?>>Center </option>
769
- <option value="right"<?php if ($instance['icon_align'] == "right") { echo 'selected="selected"'; } ?>>Right </option>
770
  </select>
771
  </p>
772
  <?php
1
  <?php
 
2
  //*************** Include style.css in Header ********
3
  // Getting Option From DB *****************************
4
  $acx_si_theme = get_option('acx_si_theme');
605
  </div>';
606
  }
607
  $acx_fsmi_si_current_version = get_option('acx_fsmi_si_current_version');
608
+ if($acx_fsmi_si_current_version != '2.3') // Current Version
609
  {
610
  if (get_option('social_icon_array_order') != "")
611
  {
691
  // Set some control options (width, height etc)
692
  $control_options = array( 'width' => 300 );
693
  // Actually create the widget (widget id, widget name, options...)
694
+ parent::__construct( 'acx-social-icons-widget', 'Acx Social Icons', $widget_options, $control_options );
695
  }
696
  // Output the content of the widget
697
  function widget($args, $instance)
738
  <p>
739
  <label for="<?php echo $this->get_field_id('icon_size'); ?>"><?php _e('Icon Size:'); ?></label>
740
  <select class="widefat" name="<?php echo $this->get_field_name('icon_size'); ?>" id="<?php echo $this->get_field_id('icon_size'); ?>">
741
+ <option value="16" <?php if ($instance['icon_size'] == "16") { echo 'selected="selected"'; } ?>>16px X 16px </option>
742
+ <option value="25" <?php if ($instance['icon_size'] == "25") { echo 'selected="selected"'; } ?>>25px X 25px </option>
743
+ <option value="32" <?php if ($instance['icon_size'] == "32") { echo 'selected="selected"'; } ?>>32px X 32px </option>
744
+ <option value="40" <?php if ($instance['icon_size'] == "40") { echo 'selected="selected"'; } ?>>40px X 40px </option>
745
+ <option value="48" <?php if ($instance['icon_size'] == "48") { echo 'selected="selected"'; } ?>>48px X 48px </option>
746
+ <option value="55" <?php if ($instance['icon_size'] == "55") { echo 'selected="selected"'; } ?>>55px X 55px </option>
747
  </select>
748
  </p>
749
  <p>
750
  <label for="<?php echo $this->get_field_id('icon_theme'); ?>"><?php _e('Icon Theme:'); ?></label>
751
  <select class="widefat" name="<?php echo $this->get_field_name('icon_theme'); ?>" id="<?php echo $this->get_field_id('icon_theme'); ?>">
752
+ <option value="" <?php if(!ISSET($instance['icon_theme'])) { echo 'selected="selected"'; } ?>>Default Theme Design</option>
753
  <?php
754
  for ($i=1; $i < $total_themes; $i++)
755
  {
756
  ?>
757
+ <option value="<?php echo $i; ?>" <?php if(ISSET($instance['icon_theme'])){if($instance['icon_theme'] == $i) { echo 'selected="selected"'; } }?>>Theme Design <?php echo $i; ?> </option>
758
  <?php
759
  } ?>
760
  </select>
762
  <p>
763
  <label for="<?php echo $this->get_field_id('icon_align'); ?>"><?php _e('Icon Align:'); ?></label>
764
  <select class="widefat" name="<?php echo $this->get_field_name('icon_align'); ?>" id="<?php echo $this->get_field_id('icon_align'); ?>">
765
+ <option value="" <?php if(!ISSET($instance['icon_align'])) { echo 'selected="selected"'; } ?>>Default </option>
766
+ <option value="left" <?php if(ISSET($instance['icon_align'])){ if($instance['icon_align'] == "left") { echo 'selected="selected"'; }} ?>>Left </option>
767
+ <option value="center" <?php if(ISSET($instance['icon_align'])){ if($instance['icon_align'] == "center") { echo 'selected="selected"'; }} ?>>Center </option>
768
+ <option value="right" <?php if(ISSET($instance['icon_align'])){ if($instance['icon_align'] == "right") { echo 'selected="selected"';} } ?>>Right </option>
769
  </select>
770
  </p>
771
  <?php
readme.txt CHANGED
@@ -1,6 +1,6 @@
1
  === Floating Social Media Icon ===
2
  Contributors: Acurax
3
- Donate link:http://www.acurax.com/products/floating-social-media-icon-plugin-wordpress/
4
 
5
  Tags: floating social media, social network icon, social media widget, social media icon, socialmedia, social network widget, social floating icon, social profiles, floating social media button, social media button
6
  Requires at least: 2.8
@@ -208,6 +208,11 @@ Have more questions ? [Drop a mail](http://www.acurax.com/contact.php/ "Drop an
208
 
209
  == Upgrade Notice ==
210
 
 
 
 
 
 
211
  = 2.2 =
212
  * Aug 19, 2015 | NOTE: Updating Plugin Will Not Change Your Settings/Configuration.. Update With Confidence :)
213
  * Security Fix
@@ -371,6 +376,11 @@ Have more questions ? [Drop a mail](http://www.acurax.com/contact.php/ "Drop an
371
 
372
  == Changelog ==
373
 
 
 
 
 
 
374
  = 2.2 =
375
  * Aug 19, 2015 | NOTE: Updating Plugin Will Not Change Your Settings/Configuration.. Update With Confidence :)
376
  * Security Fix
1
  === Floating Social Media Icon ===
2
  Contributors: Acurax
3
+ Donate link: http://www.acurax.com/happy-clients.php
4
 
5
  Tags: floating social media, social network icon, social media widget, social media icon, socialmedia, social network widget, social floating icon, social profiles, floating social media button, social media button
6
  Requires at least: 2.8
208
 
209
  == Upgrade Notice ==
210
 
211
+ = 2.3 =
212
+ * Aug 25, 2015 | NOTE: Updating Plugin Will Not Change Your Settings/Configuration.. Update With Confidence :)
213
+ * Code Optimization
214
+ * Stable Release
215
+
216
  = 2.2 =
217
  * Aug 19, 2015 | NOTE: Updating Plugin Will Not Change Your Settings/Configuration.. Update With Confidence :)
218
  * Security Fix
376
 
377
  == Changelog ==
378
 
379
+ = 2.3 =
380
+ * Aug 25, 2015 | NOTE: Updating Plugin Will Not Change Your Settings/Configuration.. Update With Confidence :)
381
+ * Code Optimization
382
+ * Stable Release
383
+
384
  = 2.2 =
385
  * Aug 19, 2015 | NOTE: Updating Plugin Will Not Change Your Settings/Configuration.. Update With Confidence :)
386
  * Security Fix
social-icon.php CHANGED
@@ -21,11 +21,19 @@ display:none;
21
  }
22
  </style>
23
  <?php }
24
- if($_POST['acurax_social_icon_hidden'] == 'Y')
25
  {
26
- if (!isset($_POST['acx_fsmi_save_config'])) die("<br><br>Unknown Error Occurred, Try Again... <a href=''>Click Here</a>");
27
- if (!wp_verify_nonce($_POST['acx_fsmi_save_config'],'acx_fsmi_save_config')) die("<br><br>Unknown Error Occurred, Try Again... <a href=''>Click Here</a>");
28
- if(!current_user_can('manage_options')) die("<br><br>Sorry, You have no permission to do this action...</a>");
 
 
 
 
 
 
 
 
29
 
30
  //Form data sent
31
  $acx_si_theme = sanitize_text_field($_POST['acx_si_theme']);
@@ -50,7 +58,7 @@ if(!current_user_can('manage_options')) die("<br><br>Sorry, You have no permissi
50
  update_option('acx_si_linkedin', $acx_si_linkedin);
51
  $acx_si_gplus = $_POST['acx_si_gplus'];
52
  update_option('acx_si_gplus', $acx_si_gplus);
53
- $acx_si_credit = $_POST['acx_si_credit'];
54
  update_option('acx_si_credit', $acx_si_credit);
55
  $acx_si_icon_size = $_POST['acx_si_icon_size'];
56
  update_option('acx_si_icon_size', $acx_si_icon_size);
@@ -389,10 +397,19 @@ Please do a favour by enabling back-link to our site. <a href="admin.php?page=Ac
389
  <a name="updated">.</a>
390
  </p>
391
  </form>
392
- <?php if($_GET["status"] == "updated") { ?>
 
 
 
 
 
 
 
 
 
393
  <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 Floating Social Media Icon Update Successfully Completed - Thank You</div>
394
  <?php
395
- $acx_fsmi_si_current_version = "2.2"; // Current Version
396
  update_option('acx_fsmi_si_current_version', $acx_fsmi_si_current_version);
397
  } ?>
398
  <hr/>
21
  }
22
  </style>
23
  <?php }
24
+ if(ISSET($_POST['acurax_social_icon_hidden']))
25
  {
26
+ $acurax_social_icon_hidden = $_POST['acurax_social_icon_hidden'];
27
+ }
28
+ else
29
+ {
30
+ $acurax_social_icon_hidden = '';
31
+ }
32
+ if($acurax_social_icon_hidden == 'Y')
33
+ {
34
+ if (!isset($_POST['acx_fsmi_save_config'])) die("<br><br>Unknown Error Occurred, Try Again... <a href=''>Click Here</a>");
35
+ if (!wp_verify_nonce($_POST['acx_fsmi_save_config'],'acx_fsmi_save_config')) die("<br><br>Unknown Error Occurred, Try Again... <a href=''>Click Here</a>");
36
+ if(!current_user_can('manage_options')) die("<br><br>Sorry, You have no permission to do this action...</a>");
37
 
38
  //Form data sent
39
  $acx_si_theme = sanitize_text_field($_POST['acx_si_theme']);
58
  update_option('acx_si_linkedin', $acx_si_linkedin);
59
  $acx_si_gplus = $_POST['acx_si_gplus'];
60
  update_option('acx_si_gplus', $acx_si_gplus);
61
+ $acx_si_credit = ISSET($_POST['acx_si_credit']);
62
  update_option('acx_si_credit', $acx_si_credit);
63
  $acx_si_icon_size = $_POST['acx_si_icon_size'];
64
  update_option('acx_si_icon_size', $acx_si_icon_size);
397
  <a name="updated">.</a>
398
  </p>
399
  </form>
400
+ <?php
401
+ if(ISSET($_GET['status']))
402
+ {
403
+ $acx_si_fsmi_status = $_GET['status'];
404
+ }
405
+ else
406
+ {
407
+ $acx_si_fsmi_status= '';
408
+ }
409
+ if($acx_si_fsmi_status == "updated") { ?>
410
  <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 Floating Social Media Icon Update Successfully Completed - Thank You</div>
411
  <?php
412
+ $acx_fsmi_si_current_version = "2.3"; // Current Version
413
  update_option('acx_fsmi_si_current_version', $acx_fsmi_si_current_version);
414
  } ?>
415
  <hr/>