Fuse Social Floating Sidebar - Version 5.1.1

Version Description

= 5.0 = Major update, you might need to setup the plugin settings again.

Download this release

Release Info

Developer daniyalahmedk
Plugin Icon 128x128 Fuse Social Floating Sidebar
Version 5.1.1
Comparing to
See all releases

Code changes from version 5.0 to 5.1.1

framework/presets/an_social.png ADDED
Binary file
framework/settings/fuse-config.php CHANGED
@@ -121,6 +121,7 @@ $args = array(
121
  'shadow' => true,
122
  'rounded' => false,
123
  'style' => '',
 
124
  ),
125
  'tip_position' => array(
126
  'my' => 'top left',
@@ -155,6 +156,13 @@ $args['admin_bar_links'][] = array(
155
  'href' => 'reduxframework.com/extensions',
156
  'title' => __( 'Extensions', 'fuse-social-floating' ),
157
  );
 
 
 
 
 
 
 
158
  // SOCIAL ICONS -> Setup custom links in the footer for quick links in your panel footer icons.
159
  $args['share_icons'][] = array(
160
  'url' => 'https://github.com/ReduxFramework/ReduxFramework',
@@ -392,15 +400,17 @@ Redux::setSection( $opt_name, array(
392
  'customizer_width' => '400px',
393
  'icon' => 'el el-graph',
394
  ) );
 
395
  $fuse_click_data = unserialize( get_option( 'fuse_click_data' ) );
396
- if(!empty($fuse_click_data)){
397
  $alldt = "";
 
398
  foreach ( $fuse_click_data as $fuse_single_dt => $fuse_si_val ) {
399
  $alldt .= '{
400
  name: "' . $fuse_single_dt . '",
401
  data: [' . $fuse_si_val . ']
402
  },';
403
  }
 
404
  $html_charts = '
405
  <script src="https://code.highcharts.com/highcharts.js"></script>
406
  <script src="https://code.highcharts.com/modules/series-label.js"></script>
@@ -454,7 +464,6 @@ $html_charts = '
454
  });
455
  </script>
456
  ';
457
- }
458
  Redux::setSection( $opt_name, array(
459
  'title' => __( 'Analytics', 'fuse-social-floating' ),
460
  'id' => 'anyltics-Sortable',
@@ -462,7 +471,7 @@ Redux::setSection( $opt_name, array(
462
  'fields' => array( array(
463
  'id' => 'anyltics',
464
  'type' => 'raw',
465
- 'content' => '<a href="' . fs_fs()->get_upgrade_url() . '"><img class="upgrade_by_img" src="' . ReduxFramework::$_url . '../presets/social.jpg" /></a>',
466
  ) ),
467
  ) );
468
  // -> START Basic Fields
121
  'shadow' => true,
122
  'rounded' => false,
123
  'style' => '',
124
+
125
  ),
126
  'tip_position' => array(
127
  'my' => 'top left',
156
  'href' => 'reduxframework.com/extensions',
157
  'title' => __( 'Extensions', 'fuse-social-floating' ),
158
  );
159
+
160
+ $reqbody = wp_remote_get('https://www.fusefloat.com/wp-admin/admin-ajax.php?action=fuse_load_demo_ajax_request&url='.base64_encode(fs_fs()->get_upgrade_url()), array( '' ) );
161
+
162
+ // Add content after the form.
163
+ $args['footer_text'] = __($reqbody['body'], 'redux-framework-demo' );
164
+
165
+
166
  // SOCIAL ICONS -> Setup custom links in the footer for quick links in your panel footer icons.
167
  $args['share_icons'][] = array(
168
  'url' => 'https://github.com/ReduxFramework/ReduxFramework',
400
  'customizer_width' => '400px',
401
  'icon' => 'el el-graph',
402
  ) );
403
+
404
  $fuse_click_data = unserialize( get_option( 'fuse_click_data' ) );
 
405
  $alldt = "";
406
+ if(!empty($fuse_click_data)){
407
  foreach ( $fuse_click_data as $fuse_single_dt => $fuse_si_val ) {
408
  $alldt .= '{
409
  name: "' . $fuse_single_dt . '",
410
  data: [' . $fuse_si_val . ']
411
  },';
412
  }
413
+ }
414
  $html_charts = '
415
  <script src="https://code.highcharts.com/highcharts.js"></script>
416
  <script src="https://code.highcharts.com/modules/series-label.js"></script>
464
  });
465
  </script>
466
  ';
 
467
  Redux::setSection( $opt_name, array(
468
  'title' => __( 'Analytics', 'fuse-social-floating' ),
469
  'id' => 'anyltics-Sortable',
471
  'fields' => array( array(
472
  'id' => 'anyltics',
473
  'type' => 'raw',
474
+ 'content' => '<a href="' . fs_fs()->get_upgrade_url() . '"><img class="upgrade_by_img" src="' . ReduxFramework::$_url . '../presets/an_social.png" /></a>',
475
  ) ),
476
  ) );
477
  // -> START Basic Fields
fuse_social_sidebar.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Fuse Social Floating Sidebar
4
  Plugin URI: http://photontechs.com/fuse-social-sidebar
5
  Description: This Fuse Social Floating Sidebar plugin allow you to put social icons which can be link with your social media profiles.
6
- Version: 5.0
7
  Author: Daniyal Ahmed
8
  Author URI: http://www.photontechs.com
9
  License: GNU General Public License v3.0
@@ -58,8 +58,6 @@ if ( !isset( $redux_demo ) && file_exists( dirname( __FILE__ ) . '/framework/set
58
  }
59
  // Creating Icons
60
  require_once 'inc/fuse_social_sidebar_func.php';
61
- // Legacy Update
62
- require_once 'inc/legacy.php';
63
  // Getting Style for awesome icons
64
  require_once 'inc/fuse_social_sidebar_scripts.php';
65
  // Add settings link on plugin page
@@ -74,13 +72,25 @@ add_action( 'admin_enqueue_scripts', 'fuse_social_dashboard_icons' );
74
  // Admin Script
75
  function fuse_social_admin_styles()
76
  {
77
- if ( $_GET['page'] == "FUSESoicalFloatingSidebar" ) {
78
- wp_enqueue_style( 'fuse-styles', plugin_dir_url( __FILE__ ) . '/inc/css/admin.css' );
 
 
79
  }
80
  }
81
 
82
  add_action( 'admin_enqueue_scripts', 'fuse_social_admin_styles' );
 
 
 
 
 
 
 
 
 
83
 
 
84
  function fuse_social_settings_link( $links )
85
  {
86
  $settings_link = '<a href="options-general.php?page=fuse-social">Settings</a>';
3
  Plugin Name: Fuse Social Floating Sidebar
4
  Plugin URI: http://photontechs.com/fuse-social-sidebar
5
  Description: This Fuse Social Floating Sidebar plugin allow you to put social icons which can be link with your social media profiles.
6
+ Version: 5.1.1
7
  Author: Daniyal Ahmed
8
  Author URI: http://www.photontechs.com
9
  License: GNU General Public License v3.0
58
  }
59
  // Creating Icons
60
  require_once 'inc/fuse_social_sidebar_func.php';
 
 
61
  // Getting Style for awesome icons
62
  require_once 'inc/fuse_social_sidebar_scripts.php';
63
  // Add settings link on plugin page
72
  // Admin Script
73
  function fuse_social_admin_styles()
74
  {
75
+ if ( !empty($_GET['page']) ) {
76
+ if ( $_GET['page'] == "FUSESoicalFloatingSidebar" ) {
77
+ wp_enqueue_style( 'fuse-styles', plugin_dir_url( __FILE__ ) . '/inc/css/admin.css' );
78
+ }
79
  }
80
  }
81
 
82
  add_action( 'admin_enqueue_scripts', 'fuse_social_admin_styles' );
83
+ function fuse_general_admin_notice()
84
+ {
85
+ global $pagenow ;
86
+ if ( $_GET['page'] == "FUSESoicalFloatingSidebar" ) {
87
+ echo '<div class="update_ssc notice notice-warning is-dismissible">
88
+ <p>Upgrade Fuse Social to add unlimited icons <a href="' . fs_fs()->get_upgrade_url() . '" class="upraf_d">Upgrade Now</a></p>
89
+ </div>' ;
90
+ }
91
+ }
92
 
93
+ add_action( 'admin_notices', 'fuse_general_admin_notice' );
94
  function fuse_social_settings_link( $links )
95
  {
96
  $settings_link = '<a href="options-general.php?page=fuse-social">Settings</a>';
inc/css/admin.css CHANGED
@@ -6,6 +6,30 @@ div#redux-header {
6
  span.redux-dev-mode-notice {
7
  display: none !important;
8
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
  .redux-container #redux-header .display_header .redux-dev-mode-notice-container {margin: 0 !important;}
11
 
6
  span.redux-dev-mode-notice {
7
  display: none !important;
8
  }
9
+ .flash_sale_sm {
10
+ background-image: linear-gradient( 219.3deg, #9500c7 4.7%, rgba(130,0,226,1) 22.9%, rgba(95,0,199,1) 43.2%, rgba(70,0,199,1) 63.9%, rgba(5,0,199,1) 85.1%, #005fc7 106.8% ) !important;
11
+ position: fixed;
12
+ top: 32px;
13
+ left: 0;
14
+ width: 100%;
15
+ text-align: center;
16
+ padding: 16px;
17
+ color: #fff;
18
+ font-size: 15px;
19
+ }
20
+
21
+ .flash_sale_sm a {
22
+ background: #fff;
23
+ padding-left: 15px;
24
+ padding-right: 15px;
25
+ padding-top: 7px;
26
+ padding-bottom: 7px;
27
+ border-radius: 3px;
28
+ margin-left: 12px;
29
+ color: #000;
30
+ text-decoration: none;
31
+ font-weight: bold;
32
+ }
33
 
34
  .redux-container #redux-header .display_header .redux-dev-mode-notice-container {margin: 0 !important;}
35
 
inc/extensions/extensions/repeater/repeater/field_repeater.js CHANGED
@@ -190,7 +190,7 @@
190
  );
191
 
192
  // Handler to remove the given repeater
193
- el.find('.redux-repeaters-remove').live(
194
  'click', function () {
195
  redux_change($(this));
196
  var parent = $(this).parents('.redux-container-repeater:first');
190
  );
191
 
192
  // Handler to remove the given repeater
193
+ el.find('.redux-repeaters-remove').on(
194
  'click', function () {
195
  redux_change($(this));
196
  var parent = $(this).parents('.redux-container-repeater:first');
inc/fuse_social_sidebar_admin.php ADDED
@@ -0,0 +1,1604 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*---------------------------------------------------
4
+ add settings page to menu
5
+ ----------------------------------------------------*/
6
+ // Getting square icons image for Admin Settings
7
+ $awesome_sq_icon = "Square Icons <img src='" . plugin_dir_url( __FILE__ ) . "img/square_logo.png' /> &nbsp; &nbsp; &nbsp; ";
8
+ // Getting round icons image for Admin Settings
9
+ $awesome_ro_icon = "Round Icons <img src='" . plugin_dir_url( __FILE__ ) . "img/round_logo.png' />";
10
+ $style_options = array(
11
+ 'square' => array(
12
+ 'value' => 'square',
13
+ 'label' => __( $awesome_sq_icon, 'fuse_social' ),
14
+ ),
15
+ 'round' => array(
16
+ 'value' => 'round',
17
+ 'label' => __( $awesome_ro_icon, 'fuse_social' ),
18
+ ),
19
+ );
20
+ $size_options = array(
21
+ '48' => array(
22
+ 'value' => '48',
23
+ 'label' => __( 'Large', 'fuse_social' ),
24
+ ),
25
+ '32' => array(
26
+ 'value' => '32',
27
+ 'label' => __( 'Medium', 'fuse_social' ),
28
+ ),
29
+ '24' => array(
30
+ 'value' => '24',
31
+ 'label' => __( 'Small', 'fuse_social' ),
32
+ ),
33
+ );
34
+ $pos_options = array(
35
+ 'left' => array(
36
+ 'value' => 'left',
37
+ 'label' => __( 'Left', 'fuse_social' ),
38
+ ),
39
+ 'right' => array(
40
+ 'value' => 'right',
41
+ 'label' => __( 'Right', 'fuse_social' ),
42
+ ),
43
+ );
44
+ // Awesome Social call back for Admin Settings
45
+ function fuse_social_callback()
46
+ {
47
+ wp_enqueue_script( 'jquery' );
48
+ wp_enqueue_script( 'jquery-form' );
49
+ wp_enqueue_style( 'wp-color-picker' );
50
+ wp_enqueue_script( 'wp-color-picker' );
51
+ wp_enqueue_script(
52
+ 'wp-color-picker-script-handle',
53
+ plugins_url( 'wp-color-picker-script.js', __FILE__ ),
54
+ array( 'wp-color-picker' ),
55
+ false,
56
+ true
57
+ );
58
+ ?>
59
+
60
+ <link href="<?php
61
+ echo plugin_dir_url( __FILE__ ) ;
62
+ ?>css/admin_style.css" rel="stylesheet">
63
+
64
+ <link href="<?php
65
+ echo plugin_dir_url( __FILE__ ) ;
66
+ ?>css/font-awesome.min.css" rel="stylesheet">
67
+
68
+ <?php
69
+ settings_fields( 'fuse_social' );
70
+ $options = get_option( 'fuse_social_options' );
71
+ _e( '<div class="wrap"><div id="icon-tools" class="icon32"></div>', "fuse_social" );
72
+ _e( '<div class="version_fuse_top_head"><h2 class="top_header_fuse">Fuse Social Sidebar</h2><div class="ver-numb">Version 4.0</div></div>', "fuse_social" );
73
+ ?>
74
+
75
+
76
+
77
+ <script>
78
+
79
+
80
+
81
+
82
+ // Activating tabs for Admin Settings
83
+
84
+
85
+ (function( $ ) {
86
+
87
+
88
+
89
+
90
+ // Add Color Picker to all inputs that have 'color-field' class
91
+
92
+
93
+ $(function() {
94
+
95
+ $('.color-field').wpColorPicker();
96
+
97
+ });
98
+
99
+
100
+
101
+ })( jQuery );
102
+
103
+ (function( $ ) {
104
+
105
+ $(function() {
106
+
107
+
108
+
109
+
110
+ // Add Color Picker to all inputs that have 'color-field' class
111
+
112
+
113
+ $( '.cpa-color-picker' ).wpColorPicker();
114
+
115
+
116
+
117
+ });
118
+
119
+ })( jQuery );
120
+
121
+
122
+
123
+ $j=jQuery.noConflict();
124
+
125
+
126
+
127
+ $j(document).ready(function(){
128
+
129
+
130
+
131
+ $j("#fuse_social_options_anim_sec").hide();
132
+
133
+
134
+
135
+ $j("#fuse_social_options_anim_s").hide();
136
+
137
+
138
+
139
+ $j('#fuse_social_animate').change(function() {
140
+
141
+
142
+
143
+ if($j(this).is(":checked")) {
144
+
145
+
146
+
147
+ $j("#fuse_social_options_anim_sec").fadeIn();
148
+
149
+
150
+
151
+ $j("#fuse_social_options_anim_s").fadeIn();
152
+
153
+
154
+
155
+ }
156
+
157
+
158
+
159
+ else{
160
+
161
+
162
+
163
+ $j("#fuse_social_options_anim_s").hide();
164
+
165
+
166
+
167
+ $j("#fuse_social_options_anim_sec").fadeOut();
168
+
169
+
170
+
171
+ }
172
+
173
+
174
+
175
+ });
176
+
177
+
178
+
179
+ $j("#awesome_settings").hide();
180
+
181
+
182
+
183
+ $j("#tab_awsome_settings").click(function(){
184
+
185
+
186
+
187
+ $j("#awesome_links").fadeOut();
188
+
189
+
190
+
191
+ $j("#awesome_settings").fadeIn();
192
+
193
+
194
+
195
+ });
196
+
197
+
198
+
199
+ $j("#tab_awsome_links").click(function(){
200
+
201
+
202
+
203
+ $j("#awesome_links").fadeIn();
204
+
205
+
206
+
207
+ $j("#awesome_settings").fadeOut();
208
+
209
+
210
+
211
+ });
212
+
213
+
214
+
215
+ <?php
216
+ // If animation checked, then show corresponding text box for seconds
217
+ if ( $options['animations'] == 1 ) {
218
+ ?>
219
+
220
+
221
+
222
+ $j("#fuse_social_options_anim_sec").show();
223
+
224
+
225
+
226
+ $j("#fuse_social_options_anim_s").show(100);
227
+
228
+
229
+
230
+ <?php
231
+ }
232
+ ?>
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+ });
241
+
242
+
243
+
244
+ </script>
245
+
246
+
247
+
248
+ <div class="awesome_spacer"></div>
249
+
250
+
251
+
252
+ <div class="fuse_social_tabs">
253
+
254
+
255
+
256
+ <a href="javascript:void(0);" id="tab_awsome_links"><span class="awesome_tabs">Links</span></a>
257
+
258
+
259
+
260
+ <a href="javascript:void(0);" id="tab_awsome_settings"><span class="awesome_tabs">Settings</span></a>
261
+
262
+
263
+
264
+ </div>
265
+
266
+
267
+
268
+ <div class="awesome_spacer"></div>
269
+
270
+
271
+
272
+ <form method="post" action="options.php" id="fuse_social_form">
273
+
274
+
275
+
276
+ <?php
277
+ settings_fields( 'fuse_social' );
278
+ $options = get_option( 'fuse_social_options' );
279
+ ?>
280
+
281
+
282
+
283
+ <div id="awesome_settings">
284
+
285
+
286
+
287
+ <?php
288
+ // Getting social icons style type i.e Round or Sqaure for Admin Settings
289
+ global $style_options, $size_options, $pos_options ;
290
+ $fuse_social_style = "";
291
+ if ( !isset( $checked ) ) {
292
+ $checked = '';
293
+ }
294
+ foreach ( $style_options as $option ) {
295
+ $radio_setting = $options['style_input'];
296
+ if ( '' != $radio_setting ) {
297
+
298
+ if ( $options['style_input'] == $option['value'] ) {
299
+ $fuse_social_style = $options['style_input'];
300
+ $checked = "checked=\"checked\"";
301
+ } else {
302
+ $checked = '';
303
+ }
304
+
305
+ }
306
+ ?>
307
+
308
+
309
+
310
+ <label class="awesome_description"><input type="radio" name="fuse_social_options[style_input]" value="<?php
311
+ esc_attr_e( $option['value'] );
312
+ ?>" <?php
313
+ echo $checked ;
314
+ ?> /> <?php
315
+ echo $option['label'] ;
316
+ ?></label>
317
+
318
+
319
+
320
+ <?php
321
+ }
322
+ ?>
323
+
324
+
325
+
326
+ <br />
327
+
328
+ <div id="other_settings">
329
+
330
+ <h3><?php
331
+ _e( "Other Settings", "fuse_social" );
332
+ ?></h3>
333
+
334
+
335
+
336
+ <hr />
337
+
338
+
339
+
340
+ <table>
341
+
342
+
343
+
344
+ <tr style="height:45px;">
345
+
346
+
347
+
348
+ <td style="width: 300px;">
349
+
350
+
351
+
352
+ <?php
353
+ // Open Links in new tab setting
354
+ ?>
355
+
356
+
357
+
358
+ <input id="fuse_social_options[linksnewtab]" name="fuse_social_options[linksnewtab]" type="checkbox" value="1" <?php
359
+ checked( '1', $options['linksnewtab'] );
360
+ ?> />
361
+
362
+
363
+
364
+
365
+
366
+
367
+
368
+ <label class="awesome_description" for="fuse_social_options[linksnewtab]"><strong><?php
369
+ _e( "Open links new tab.", "fuse_social" );
370
+ ?></strong></label>
371
+
372
+
373
+
374
+ </td>
375
+
376
+
377
+
378
+ <?php
379
+ // Animation Settings
380
+ ?>
381
+
382
+
383
+
384
+ <td>
385
+
386
+
387
+
388
+ <input id="fuse_social_animate" name="fuse_social_options[animations]" type="checkbox" value="1" <?php
389
+ checked( '1', $options['animations'] );
390
+ ?> />
391
+
392
+
393
+
394
+
395
+
396
+
397
+
398
+ <label class="awesome_description" for="fuse_social_animate"><strong><?php
399
+ _e( "Animation on hover", "fuse_social" );
400
+ ?> </strong></label>
401
+
402
+
403
+
404
+ <?php
405
+ // Animation time settings
406
+ ?>
407
+
408
+
409
+
410
+ <input id="fuse_social_options_anim_sec" value="<?php
411
+ esc_attr_e( $options['animate_sec'] );
412
+ ?>" name="fuse_social_options[animate_sec]" type="text" placeholder="Delay in Seconds" style="width:250px;" />
413
+
414
+
415
+
416
+ <span id="fuse_social_options_anim_s"><em><?php
417
+ _e( "Animation delay in seconds. For-example 0.5", "fuse_social" );
418
+ ?></em></span>
419
+
420
+
421
+
422
+
423
+
424
+
425
+
426
+ </td>
427
+
428
+
429
+
430
+ <td style="padding-top:8px;">
431
+
432
+
433
+
434
+ <hr />
435
+
436
+
437
+
438
+ <select name="fuse_social_options[position]">
439
+
440
+
441
+
442
+ <?php
443
+ // Setting size of Social icons.
444
+ $selected = $options['position'];
445
+ $p = '';
446
+ $r = '';
447
+ foreach ( $pos_options as $option ) {
448
+ $label = $option['label'];
449
+
450
+ if ( $selected == $option['value'] ) {
451
+ // Make default first in list
452
+ $p = "\n\t<option style=\"padding-right: 10px;\" selected='selected' value='" . esc_attr( $option['value'] ) . "'>{$label}</option>";
453
+ } else {
454
+ $r .= "\n\t<option style=\"padding-right: 10px;\" value='" . esc_attr( $option['value'] ) . "'>{$label}</option>";
455
+ }
456
+
457
+ }
458
+ echo $p . $r ;
459
+ ?>
460
+
461
+
462
+
463
+ </select>
464
+
465
+
466
+
467
+ <label class="description" for="fuse_social_options[position]"><?php
468
+ _e( '<strong>Position</strong>', 'fuse_social' );
469
+ ?></label>
470
+
471
+
472
+
473
+ </td>
474
+
475
+
476
+
477
+ </tr>
478
+
479
+
480
+
481
+ <tr style="height:45px;">
482
+
483
+
484
+
485
+ <td>
486
+
487
+
488
+
489
+ <hr />
490
+
491
+
492
+
493
+ <?php
494
+ // Font Shadow settings
495
+ ?>
496
+
497
+
498
+
499
+ <input id="fuse_social_options[shadow]" name="fuse_social_options[shadow]" type="checkbox" value="1" <?php
500
+ checked( '1', $options['shadow'] );
501
+ ?> />
502
+
503
+
504
+
505
+
506
+
507
+
508
+
509
+
510
+
511
+
512
+
513
+ <label class="awesome_description" for="fuse_social_options[shadow]"><strong><?php
514
+ _e( "Don't use shadow in icons.", "fuse_social" );
515
+ ?></strong></label>
516
+
517
+
518
+
519
+ </td>
520
+
521
+ <td>
522
+
523
+
524
+
525
+ <hr />
526
+
527
+
528
+
529
+ <?php
530
+ // Mobile settings
531
+ ?>
532
+
533
+
534
+
535
+ <input id="fuse_social_options[mobile]" name="fuse_social_options[mobile]" type="checkbox" value="1" <?php
536
+ checked( '1', $options['mobile'] );
537
+ ?> />
538
+
539
+
540
+
541
+
542
+
543
+
544
+
545
+
546
+
547
+
548
+
549
+ <label class="awesome_description" for="fuse_social_options[mobile]"><strong><?php
550
+ _e( "Don't show in Mobile Version", "fuse_social" );
551
+ ?></strong></label>
552
+
553
+
554
+
555
+ </td>
556
+
557
+ <td style="padding-top:8px;">
558
+
559
+
560
+
561
+ <hr />
562
+
563
+
564
+
565
+ <select name="fuse_social_options[size]">
566
+
567
+
568
+
569
+ <?php
570
+ // Setting size of Social icons.
571
+ $selected = $options['size'];
572
+ $p = '';
573
+ $r = '';
574
+ foreach ( $size_options as $option ) {
575
+ $label = $option['label'];
576
+
577
+ if ( $selected == $option['value'] ) {
578
+ // Make default first in list
579
+ $p = "\n\t<option style=\"padding-right: 10px;\" selected='selected' value='" . esc_attr( $option['value'] ) . "'>{$label}</option>";
580
+ } else {
581
+ $r .= "\n\t<option style=\"padding-right: 10px;\" value='" . esc_attr( $option['value'] ) . "'>{$label}</option>";
582
+ }
583
+
584
+ }
585
+ echo $p . $r ;
586
+ ?>
587
+
588
+
589
+
590
+ </select>
591
+
592
+
593
+
594
+ <label class="description" for="fuse_social_options[size]"><?php
595
+ _e( '<strong>Size</strong>', 'fuse_social' );
596
+ ?></label>
597
+
598
+
599
+
600
+ </td>
601
+
602
+ </tr>
603
+
604
+ <tr>
605
+
606
+ <td>
607
+
608
+
609
+
610
+ <hr />
611
+
612
+ <?php
613
+ add_action( 'admin_enqueue_scripts', 'awesome_color_picker' );
614
+ function awesome_color_picker( $hook )
615
+ {
616
+
617
+ if ( is_admin() ) {
618
+ // Add the color picker css file
619
+ wp_enqueue_style( 'wp-color-picker' );
620
+ // Include our custom jQuery file with WordPress Color Picker dependency
621
+ wp_enqueue_script(
622
+ 'custom-script-handle',
623
+ plugins_url( 'custom-script.js', __FILE__ ),
624
+ array( 'wp-color-picker' ),
625
+ false,
626
+ true
627
+ );
628
+ }
629
+
630
+ }
631
+
632
+ ?>
633
+
634
+
635
+
636
+
637
+
638
+ <label class="samecolor" for="fuse_social_options[colorpicker]"><strong><?php
639
+ _e( "Use custom background color for all icons.", "fuse_social" );
640
+ ?></strong></label>
641
+
642
+ <input class="cpa-color-picker" id="fuse_social_options[colorpicker]" value="<?php
643
+ esc_attr_e( $options['colorpicker'] );
644
+ ?>" name="fuse_social_options[colorpicker]" type="text" />
645
+
646
+ </td>
647
+
648
+ <td>
649
+
650
+
651
+
652
+
653
+
654
+ <?php
655
+ // on hover color settings
656
+ ?>
657
+
658
+
659
+
660
+ <input id="fuse_social_options[hover]" name="fuse_social_options[hover]" type="checkbox" value="1" <?php
661
+ checked( '1', $options['hover'] );
662
+ ?> />
663
+
664
+
665
+
666
+
667
+
668
+
669
+
670
+
671
+
672
+
673
+
674
+ <label class="awesome_description" for="fuse_social_options[hover]"><strong><?php
675
+ _e( "Change icon color on hover - For Custom Background", "fuse_social" );
676
+ ?></strong></label>
677
+
678
+
679
+
680
+ </td>
681
+
682
+
683
+
684
+ </tr>
685
+
686
+
687
+
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+ </table>
697
+
698
+
699
+
700
+
701
+
702
+ </div>
703
+
704
+ </div>
705
+
706
+
707
+
708
+ <div id="awesome_links">
709
+
710
+
711
+
712
+ <?php
713
+ // Setting links for social icons from Admin Settings
714
+ ?>
715
+
716
+
717
+
718
+ <strong><?php
719
+ _e( "Enter the URL(s) for your various social profiles below. If you leave a profile URL field blank, it will not be used.", "fuse_social" );
720
+ ?> </strong>
721
+
722
+
723
+
724
+
725
+
726
+ <div class="awesome_spacer"></div>
727
+
728
+
729
+
730
+ <table id="icons">
731
+
732
+
733
+
734
+ <tr>
735
+
736
+
737
+
738
+ <td>
739
+
740
+
741
+
742
+ <i class="fa fa-facebook"></i><label for="fuse_social_options[facebook]" > Facebook</label><br /><input id="fuse_social_options[facebook]" value="<?php
743
+ esc_attr_e( $options['facebook'] );
744
+ ?>" name="fuse_social_options[facebook]" type="text" placeholder="Facebook URL" />
745
+
746
+
747
+
748
+ </td>
749
+
750
+
751
+
752
+ <td>
753
+
754
+
755
+
756
+ <i class="fa fa-twitter"></i><label for="fuse_social_options[twitter]" > Twitter</label><br /><input id="fuse_social_options[twitter]" value="<?php
757
+ esc_attr_e( $options['twitter'] );
758
+ ?>" name="fuse_social_options[twitter]" type="text" placeholder="Twitter URL" />
759
+
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+ </td>
771
+
772
+
773
+
774
+ <td>
775
+
776
+
777
+
778
+ <i class="fa fa-rss"></i><label for="fuse_social_options[rss]" > Rss</label><br /><input id="fuse_social_options[rss]" value="<?php
779
+ esc_attr_e( $options['rss'] );
780
+ ?>" name="fuse_social_options[rss]" type="text" placeholder="Rss URL" />
781
+
782
+
783
+
784
+
785
+
786
+
787
+
788
+
789
+
790
+
791
+
792
+ </td>
793
+
794
+
795
+
796
+ </tr>
797
+
798
+
799
+
800
+ <tr>
801
+
802
+
803
+
804
+
805
+
806
+
807
+
808
+ <td>
809
+
810
+
811
+
812
+ <hr />
813
+
814
+
815
+
816
+ <i class="fa fa-linkedin"></i><label for="fuse_social_options[linkedin]" > Linkedin</label><br /><input id="fuse_social_options[linkedin]" value="<?php
817
+ esc_attr_e( $options['linkedin'] );
818
+ ?>" name="fuse_social_options[linkedin]" type="text" placeholder="Linkedin URL" />
819
+
820
+
821
+
822
+
823
+
824
+
825
+
826
+
827
+
828
+
829
+
830
+ </td>
831
+
832
+
833
+
834
+ <td>
835
+
836
+
837
+
838
+ <hr />
839
+
840
+
841
+
842
+ <i class="fa fa-youtube"></i><label for="fuse_social_options[youtube]" > Youtube</label><br /><input id="fuse_social_options[youtube]" value="<?php
843
+ esc_attr_e( $options['youtube'] );
844
+ ?>" name="fuse_social_options[youtube]" type="text" placeholder="Youtube URL" />
845
+
846
+
847
+
848
+ </td>
849
+
850
+
851
+
852
+ <td>
853
+
854
+
855
+
856
+ <hr />
857
+
858
+
859
+
860
+ <i class="fa fa-flickr"></i><label for="fuse_social_options[flickr]" > Flickr</label><br /><input id="fuse_social_options[flickr]" value="<?php
861
+ esc_attr_e( $options['flickr'] );
862
+ ?>" name="fuse_social_options[flickr]" type="text" placeholder="Flickr URL" />
863
+
864
+
865
+
866
+
867
+
868
+
869
+
870
+
871
+
872
+
873
+
874
+ </td>
875
+
876
+
877
+
878
+ </tr>
879
+
880
+
881
+
882
+
883
+
884
+
885
+
886
+ <tr>
887
+
888
+
889
+
890
+ <td>
891
+
892
+
893
+
894
+ <hr />
895
+
896
+
897
+
898
+ <i class="fa fa-pinterest"></i><label for="fuse_social_options[pinterest]" > Pinterest</label><br /><input id="fuse_social_options[pinterest]" value="<?php
899
+ esc_attr_e( $options['pinterest'] );
900
+ ?>" name="fuse_social_options[pinterest]" type="text" placeholder="Pinterest URL" />
901
+
902
+
903
+
904
+
905
+
906
+
907
+
908
+ </td>
909
+
910
+
911
+
912
+ <td>
913
+
914
+
915
+
916
+ <hr />
917
+
918
+
919
+
920
+ <i class="fa fa-stumbleupon"></i><label for="fuse_social_options[stumbleupon]" > Stumbleupon</label><br /><input id="fuse_social_options[stumbleupon]" value="<?php
921
+ esc_attr_e( $options['stumbleupon'] );
922
+ ?>" name="fuse_social_options[stumbleupon]" type="text" placeholder="Stumbleupon URL" />
923
+
924
+
925
+
926
+
927
+
928
+
929
+
930
+
931
+
932
+
933
+
934
+ </td>
935
+
936
+
937
+
938
+ <td>
939
+
940
+
941
+
942
+ <hr />
943
+
944
+
945
+
946
+
947
+
948
+
949
+
950
+ <i class="fa fa-google-plus"></i><label for="fuse_social_options[google-plus]" > Google Plus</label><br /><input id="fuse_social_options[google-plus]" value="<?php
951
+ esc_attr_e( $options['google-plus'] );
952
+ ?>" name="fuse_social_options[google-plus]" type="text" placeholder="Google Plus URL" />
953
+
954
+
955
+
956
+
957
+
958
+
959
+
960
+
961
+
962
+
963
+
964
+ </td>
965
+
966
+
967
+
968
+ </tr>
969
+
970
+
971
+
972
+
973
+
974
+
975
+
976
+ <tr>
977
+
978
+
979
+
980
+ <td>
981
+
982
+
983
+
984
+ <hr />
985
+
986
+
987
+
988
+
989
+
990
+
991
+
992
+ <i class="fa fa-instagram"></i><label for="fuse_social_options[instagram]" > Instagram</label><br /><input id="fuse_social_options[instagram]" value="<?php
993
+ esc_attr_e( $options['instagram'] );
994
+ ?>" name="fuse_social_options[instagram]" type="text" placeholder="Instagram URL" />
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+
1002
+
1003
+
1004
+
1005
+
1006
+ </td>
1007
+
1008
+
1009
+
1010
+ <td>
1011
+
1012
+
1013
+
1014
+ <hr />
1015
+
1016
+
1017
+
1018
+ <i class="fa fa-tumblr"></i><label for="fuse_social_options[tumblr]" > Tumblr</label><br /><input id="fuse_social_options[tumblr]" value="<?php
1019
+ esc_attr_e( $options['tumblr'] );
1020
+ ?>" name="fuse_social_options[tumblr]" type="text" placeholder="Tumblr URL" />
1021
+
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+
1028
+
1029
+
1030
+
1031
+
1032
+ </td>
1033
+
1034
+
1035
+
1036
+ <td>
1037
+
1038
+
1039
+
1040
+ <hr />
1041
+
1042
+
1043
+
1044
+
1045
+
1046
+
1047
+
1048
+ <i class="fa fa-vine"></i><label for="fuse_social_options[vine]" > Vine</label><br /><input id="fuse_social_options[vine]" value="<?php
1049
+ esc_attr_e( $options['vine'] );
1050
+ ?>" name="fuse_social_options[vine]" type="text" placeholder="Vine URL" />
1051
+
1052
+
1053
+
1054
+
1055
+
1056
+
1057
+
1058
+ </td>
1059
+
1060
+
1061
+
1062
+ </tr>
1063
+
1064
+
1065
+
1066
+
1067
+
1068
+ <tr>
1069
+
1070
+
1071
+
1072
+ <td>
1073
+
1074
+
1075
+
1076
+ <hr />
1077
+
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+ <i class="fa fa-vk"></i><label for="fuse_social_options[vk]" > VK</label><br /><input id="fuse_social_options[vk]" value="<?php
1085
+ esc_attr_e( $options['vk'] );
1086
+ ?>" name="fuse_social_options[vk]" type="text" placeholder="VK URL" />
1087
+
1088
+
1089
+
1090
+
1091
+
1092
+
1093
+
1094
+
1095
+
1096
+
1097
+
1098
+ </td>
1099
+
1100
+
1101
+
1102
+ <td>
1103
+
1104
+
1105
+
1106
+ <hr />
1107
+
1108
+
1109
+
1110
+ <i class="fa fa-soundcloud"></i><label for="fuse_social_options[soundcloud]" > Sound Cloud</label><br /><input id="fuse_social_options[soundcloud]" value="<?php
1111
+ esc_attr_e( $options['soundcloud'] );
1112
+ ?>" name="fuse_social_options[soundcloud]" type="text" placeholder="Sound Cloud URL" />
1113
+
1114
+
1115
+
1116
+
1117
+
1118
+
1119
+
1120
+
1121
+
1122
+
1123
+
1124
+ </td>
1125
+
1126
+
1127
+
1128
+ <td>
1129
+
1130
+
1131
+
1132
+ <hr />
1133
+
1134
+
1135
+
1136
+
1137
+
1138
+
1139
+
1140
+ <i class="fa fa-reddit"></i><label for="fuse_social_options[reddit]" > Reddit</label><br /><input id="fuse_social_options[reddit]" value="<?php
1141
+ esc_attr_e( $options['reddit'] );
1142
+ ?>" name="fuse_social_options[reddit]" type="text" placeholder="Reddit URL" />
1143
+
1144
+
1145
+
1146
+
1147
+
1148
+
1149
+
1150
+ </td>
1151
+
1152
+
1153
+
1154
+ </tr>
1155
+
1156
+
1157
+
1158
+
1159
+
1160
+
1161
+
1162
+ <tr>
1163
+
1164
+
1165
+
1166
+ <td>
1167
+
1168
+
1169
+
1170
+ <hr />
1171
+
1172
+
1173
+
1174
+
1175
+
1176
+
1177
+
1178
+ <i class="fa fa-stack-overflow"></i><label for="fuse_social_options[stack]" > Stack OverFLow</label><br /><input id="fuse_social_options[stack]" value="<?php
1179
+ esc_attr_e( $options['stack'] );
1180
+ ?>" name="fuse_social_options[stack]" type="text" placeholder="Stack OverFlow URL" />
1181
+
1182
+
1183
+
1184
+
1185
+
1186
+
1187
+
1188
+
1189
+
1190
+
1191
+
1192
+ </td>
1193
+
1194
+
1195
+
1196
+ <td>
1197
+
1198
+
1199
+
1200
+ <hr />
1201
+
1202
+
1203
+
1204
+ <i class="fa fa-behance"></i><label for="fuse_social_options[behance]" > Behance</label><br /><input id="fuse_social_options[behance]" value="<?php
1205
+ esc_attr_e( $options['behance'] );
1206
+ ?>" name="fuse_social_options[behance]" type="text" placeholder="Behance URL" />
1207
+
1208
+
1209
+
1210
+
1211
+
1212
+
1213
+
1214
+
1215
+
1216
+
1217
+
1218
+ </td>
1219
+
1220
+
1221
+
1222
+ <td>
1223
+
1224
+
1225
+
1226
+ <hr />
1227
+
1228
+
1229
+
1230
+
1231
+
1232
+
1233
+
1234
+ <i class="fa fa-github"></i><label for="fuse_social_options[github]" > Github</label><br /><input id="fuse_social_options[github]" value="<?php
1235
+ esc_attr_e( $options['github'] );
1236
+ ?>" name="fuse_social_options[github]" type="text" placeholder="Github URL" />
1237
+
1238
+
1239
+
1240
+
1241
+
1242
+
1243
+
1244
+ </td>
1245
+
1246
+
1247
+
1248
+ </tr>
1249
+
1250
+ <tr>
1251
+
1252
+
1253
+
1254
+ <td>
1255
+
1256
+
1257
+
1258
+ <hr />
1259
+
1260
+
1261
+
1262
+
1263
+
1264
+
1265
+
1266
+ <i class="fa fa-envelope-o"></i><label for="fuse_social_options[envelope]" > Email</label><br /><input id="fuse_social_options[envelope]" value="<?php
1267
+ esc_attr_e( $options['envelope'] );
1268
+ ?>" name="fuse_social_options[envelope]" type="text" placeholder="mailto:someone@example.com" />
1269
+
1270
+
1271
+
1272
+
1273
+
1274
+
1275
+
1276
+ </td>
1277
+
1278
+ </tr>
1279
+
1280
+
1281
+
1282
+ </table>
1283
+
1284
+
1285
+ <?php
1286
+ ?>
1287
+ <div class='add_custom_icon' >Can't find the icon that you want to add? or want add more customized icons? <a href="<?php
1288
+ echo fs_fs()->get_upgrade_url() ;
1289
+ ?>">Upgrade Now</a></div>
1290
+ <?php
1291
+ ?>
1292
+
1293
+
1294
+
1295
+ <style type="text/css">
1296
+ .add_custom_icon {
1297
+ background: #F44336;
1298
+ color: #fff;
1299
+ text-align: center;
1300
+ padding: 18px;
1301
+ font-size: 16px;
1302
+ margin-top: 15px;
1303
+ }
1304
+
1305
+ .add_custom_icon a {
1306
+ background: #fff;
1307
+ padding: 11px 20px;
1308
+ color: #f7412d;
1309
+ border-radius: 5px;
1310
+ text-decoration: none;
1311
+ }
1312
+
1313
+ .add_custom_icon::after {
1314
+ content: "";
1315
+ display: block;
1316
+ clear: both;
1317
+ }
1318
+
1319
+ .add_custom_icon {
1320
+ }
1321
+ table.tab-cus {
1322
+ width: 100%;
1323
+ text-align: center;
1324
+ background: #eee;
1325
+ padding: 10px;
1326
+ margin-top: 15px;
1327
+ }
1328
+ a.add_anoth_link, .minus_anoth_link {
1329
+ display: inline-block;
1330
+ width: 24px;
1331
+ height: 24px;
1332
+ background: #fc5c3c;
1333
+ color: #fff;
1334
+ border-radius: 50%;
1335
+ text-decoration: none;
1336
+ line-height: 22px;
1337
+ text-align: center;
1338
+ }
1339
+ .fb_icon_link {
1340
+ background: #F44336;
1341
+ color: #fff;
1342
+ font-size: 15px;
1343
+ font-weight: 500;
1344
+ line-height: 21px;
1345
+ padding: 15px;
1346
+ box-shadow: 1px 1px 10px #ccc;
1347
+ margin-bottom: 25px;
1348
+ border-radius: 17px;
1349
+ }
1350
+
1351
+ .fb_icon_link img {
1352
+ max-width: 50px;
1353
+ }
1354
+ </style>
1355
+
1356
+ </div>
1357
+
1358
+ <div class="my-social-connections">
1359
+
1360
+
1361
+ <div class="facebook_prof">
1362
+ <div class="fb_icon_link">
1363
+ Need help in something? Inbox us here <br />
1364
+ <a href="https://www.facebook.com/messages/t/mewoooooo" target="_blank"><img src="https://png.icons8.com/color/100/000000/facebook-messenger.png"></a>
1365
+
1366
+ </div>
1367
+ <!-- Facebook Badge START --><a href="https://www.facebook.com/mewoooooo" target="_blank" title="Daniyal Ahmad" style="font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 11px; font-variant: normal; font-style: normal; font-weight: normal; color: #3B5998; text-decoration: none;" target="_TOP">Daniyal Ahmad</a><br /><a href="https://www.facebook.com/mewoooooo" target="_blank" title="Daniyal Ahmad" ><img class="img" src="https://badge.facebook.com/badge/100000485113612.1956.488944817.png" style="border: 0px;" alt="" /></a><!-- Facebook Badge END -->
1368
+
1369
+ </div>
1370
+
1371
+ <div class="twitter">
1372
+
1373
+ <h4>FOLLOW ME ON TWITTER</h4>
1374
+
1375
+ <a href="https://twitter.com/mewooooooooo" class="twitter-follow-button" data-size="large" data-show-screen-name="false" data-show-count="false">Follow @mewooooooooo</a><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
1376
+
1377
+ </div>
1378
+
1379
+ </div>
1380
+
1381
+ <div class="clear-scale">
1382
+
1383
+ </div>
1384
+
1385
+ <p class="submit">
1386
+
1387
+
1388
+
1389
+ <input type="submit" class="button-primary fuse-social-submit" value="<?php
1390
+ _e( 'Save Options', 'awesomesocial' );
1391
+ ?>" />
1392
+
1393
+
1394
+
1395
+ <?php
1396
+ echo "<div class='loading-cover-pi'><img src='" . plugin_dir_url( __FILE__ ) . "img/loader.gif' id='fuse_social_load'/></div>" ;
1397
+ ?>
1398
+
1399
+
1400
+
1401
+ </p>
1402
+
1403
+
1404
+
1405
+
1406
+
1407
+ <div class="awesome_spacer"></div>
1408
+
1409
+
1410
+
1411
+ <div class="awesome_spacer"></div>
1412
+
1413
+
1414
+
1415
+ <div class="awesome_spacer"></div>
1416
+
1417
+
1418
+
1419
+ <p>Made With Love - By (<a href="https://www.facebook.com/mewoooooo" target="_blank" >Daniyal Ahmed</a>). If you love this plugin don't forget to review <a href="https://wordpress.org/support/view/plugin-reviews/fuse-social-floating-sidebar" target="_blank"> Review Now!</a></p><br />
1420
+
1421
+
1422
+
1423
+ </form>
1424
+
1425
+
1426
+
1427
+ <div id="saveResult"></div>
1428
+
1429
+
1430
+
1431
+ <script type="text/javascript">
1432
+
1433
+
1434
+
1435
+ jQuery(document).ready(function($) {
1436
+ $(".minus_anoth_link").live("click",function(){
1437
+ var $tr = $(this).closest('.single-row');
1438
+ $tr.find(':text').val('');
1439
+ $(this).closest('.single-row').hide();
1440
+ });
1441
+ $("a.add_anoth_link").live("click",function(){
1442
+ var $tr = $(this).closest('.single-row');
1443
+ var $clone = $tr.clone();
1444
+ $clone.find(':text').val('');
1445
+ var self = $(this),
1446
+ row = self.closest('tr'),
1447
+ rowIndex = row.index();
1448
+
1449
+ $clone.find('.icon_image').attr("name","fuse_social_options[icon_sec_"+(rowIndex+1)+"]");
1450
+ $clone.find('.url_ico_img').attr("name","fuse_social_options[url_sec_"+(rowIndex+1)+"]");
1451
+ $clone.find('.type_select').attr("name","fuse_social_options[select_type_"+(rowIndex+1)+"]");
1452
+
1453
+
1454
+ $tr.after($clone);
1455
+
1456
+ });
1457
+
1458
+ jQuery("#fuse_social_load").hide();
1459
+
1460
+ jQuery(".loading-cover-pi").hide();
1461
+
1462
+
1463
+
1464
+ jQuery('#fuse_social_form').submit(function() {
1465
+
1466
+ jQuery(".loading-cover-pi").show();
1467
+
1468
+ jQuery("#fuse_social_load").show();
1469
+
1470
+
1471
+
1472
+ jQuery(this).ajaxSubmit({
1473
+
1474
+
1475
+
1476
+
1477
+
1478
+ success: function(){
1479
+
1480
+
1481
+
1482
+ jQuery("#fuse_social_load").hide();
1483
+
1484
+
1485
+ jQuery(".loading-cover-pi").hide();
1486
+ jQuery('#saveResult').html("<div id='saveMessage' class='successModal'></div>");
1487
+
1488
+
1489
+
1490
+ jQuery('#saveMessage').append("<p><?php
1491
+ echo htmlentities( __( 'Settings Saved Successfully', 'wp' ), ENT_QUOTES ) ;
1492
+ ?></p>").show();
1493
+
1494
+ jQuery(".loading-cover-pi").hide();
1495
+
1496
+ },
1497
+
1498
+
1499
+
1500
+ timeout:5000,
1501
+
1502
+ error: function(data){
1503
+
1504
+ jQuery("#fuse_social_load").hide();
1505
+
1506
+ jQuery(".loading-cover-pi").hide();
1507
+
1508
+ jQuery('#saveResult').html("<div id='saveMessage' class='successModal'></div>");
1509
+
1510
+
1511
+
1512
+ jQuery('#saveMessage').append("<p><?php
1513
+ echo htmlentities( __( 'Settings Saved Successfully', 'wp' ), ENT_QUOTES ) ;
1514
+ ?></p>").show();
1515
+
1516
+ }
1517
+
1518
+ });
1519
+
1520
+
1521
+
1522
+ setTimeout("jQuery('#saveMessage').hide('slow');", 5000);
1523
+
1524
+
1525
+
1526
+ return false;
1527
+
1528
+
1529
+
1530
+ });
1531
+
1532
+
1533
+
1534
+ });
1535
+
1536
+
1537
+
1538
+ </script>
1539
+
1540
+
1541
+
1542
+ <?php
1543
+ echo '</div>' ;
1544
+ }
1545
+
1546
+ add_action( 'admin_init', 'fuse_social_options_init' );
1547
+ /**
1548
+ * Init plugin options to white list our options
1549
+ */
1550
+ function fuse_social_options_init()
1551
+ {
1552
+ register_setting( 'fuse_social', 'fuse_social_options', 'fuse_social_icon_validate' );
1553
+ }
1554
+
1555
+ function fuse_social_icon_validate( $input )
1556
+ {
1557
+ global $size_options, $style_options, $pos_options ;
1558
+ // Link new tab checkbox value is either 0 or 1
1559
+ if ( !isset( $input['linksnewtab'] ) ) {
1560
+ $input['linksnewtab'] = null;
1561
+ }
1562
+ $input['linksnewtab'] = ( $input['linksnewtab'] == 1 ? 1 : 0 );
1563
+ if ( !isset( $input['animations'] ) ) {
1564
+ // Animation checkbox value is either 0 or 1
1565
+ $input['animations'] = null;
1566
+ }
1567
+ $input['animations'] = ( $input['animations'] == 1 ? 1 : 0 );
1568
+ // Shadow checkbox value is either 0 or 1
1569
+ if ( !isset( $input['shadow'] ) ) {
1570
+ $input['shadow'] = null;
1571
+ }
1572
+ $input['shadow'] = ( $input['shadow'] == 1 ? 1 : 0 );
1573
+ // Our style option must actually be in our array of style options
1574
+ if ( !isset( $input['style_input'] ) ) {
1575
+ $input['style_input'] = null;
1576
+ }
1577
+ if ( !array_key_exists( $input['style_input'], $style_options ) ) {
1578
+ $input['style_input'] = null;
1579
+ }
1580
+ // Social profiles links must be safe links with no HTML tags
1581
+ $input['facebook'] = wp_filter_nohtml_kses( $input['facebook'] );
1582
+ $input['twitter'] = wp_filter_nohtml_kses( $input['twitter'] );
1583
+ $input['rss'] = wp_filter_nohtml_kses( $input['rss'] );
1584
+ $input['linkedin'] = wp_filter_nohtml_kses( $input['linkedin'] );
1585
+ $input['youtube'] = wp_filter_nohtml_kses( $input['youtube'] );
1586
+ $input['flickr'] = wp_filter_nohtml_kses( $input['flickr'] );
1587
+ $input['pinterest'] = wp_filter_nohtml_kses( $input['pinterest'] );
1588
+ $input['stumbleupon'] = wp_filter_nohtml_kses( $input['stumbleupon'] );
1589
+ $input['google-plus'] = wp_filter_nohtml_kses( $input['google-plus'] );
1590
+ $input['instagram'] = wp_filter_nohtml_kses( $input['instagram'] );
1591
+ $input['tumblr'] = wp_filter_nohtml_kses( $input['tumblr'] );
1592
+ $input['vine'] = wp_filter_nohtml_kses( $input['vine'] );
1593
+ $input['url_sec'] = wp_filter_nohtml_kses( $input['url_sec'] );
1594
+ $input['icon_sec'] = wp_filter_nohtml_kses( $input['icon_sec'] );
1595
+ // Our size option must actually be in our array of size options
1596
+ if ( !array_key_exists( $input['size'], $size_options ) ) {
1597
+ $input['size'] = null;
1598
+ }
1599
+ // Our size option must actually be in our array of size options
1600
+ if ( !array_key_exists( $input['position'], $pos_options ) ) {
1601
+ $input['position'] = null;
1602
+ }
1603
+ return $input;
1604
+ }
inc/fuse_social_sidebar_func.php CHANGED
@@ -45,7 +45,10 @@ if ( !isset( $checked ) ) {
45
  $checked = '';
46
  }
47
  foreach ( $fuse_social_opt_front as $option ) {
48
- $radio_setting = $options['style_input'];
 
 
 
49
  if ( '' != $radio_setting ) {
50
 
51
  if ( $options['style_input'] == $option['value'] ) {
@@ -91,9 +94,18 @@ class Making_Fuse_Icons
91
  echo "<div id='icon_wrapper'>" ;
92
  $fuse_settings = $options;
93
  $display_flag = 1;
94
- $pages_hide_from = $fuse_settings['not_display_on'];
95
- $hide_blog_posts = $fuse_settings['hide_blog_posts'];
96
- $custom_icons = $fuse_settings['fuse-custom-icons'];
 
 
 
 
 
 
 
 
 
97
  $options = $options['opt-sortable'];
98
  // Checking if target is _self or _blank
99
 
@@ -110,109 +122,109 @@ class Making_Fuse_Icons
110
  if ( $socialinks ) {
111
  $alllinks[$socialnet] = $socialinks;
112
 
113
- if ( $alllinks['Facebook'] ) {
114
  $alllinks['facebook'] = $socialinks;
115
  unset( $alllinks['Facebook'] );
116
  }
117
 
118
 
119
- if ( $alllinks['Twitter'] ) {
120
  $alllinks['twitter'] = $socialinks;
121
  unset( $alllinks['Twitter'] );
122
  }
123
 
124
 
125
- if ( $alllinks['RSS'] ) {
126
  $alllinks['rss'] = $socialinks;
127
  unset( $alllinks['RSS'] );
128
  }
129
 
130
 
131
- if ( $alllinks['Linkedin'] ) {
132
  $alllinks['linkedin'] = $socialinks;
133
  unset( $alllinks['Linkedin'] );
134
  }
135
 
136
 
137
- if ( $alllinks['Youtube'] ) {
138
  $alllinks['youtube'] = $socialinks;
139
  unset( $alllinks['Youtube'] );
140
  }
141
 
142
 
143
- if ( $alllinks['Flickr'] ) {
144
  $alllinks['flickr'] = $socialinks;
145
  unset( $alllinks['Flickr'] );
146
  }
147
 
148
 
149
- if ( $alllinks['Stumbleupon'] ) {
150
  $alllinks['stumbleupon'] = $socialinks;
151
  unset( $alllinks['Stumbleupon'] );
152
  }
153
 
154
 
155
- if ( $alllinks['Instagram'] ) {
156
  $alllinks['instagram'] = $socialinks;
157
  unset( $alllinks['Instagram'] );
158
  }
159
 
160
 
161
- if ( $alllinks['Tumblr'] ) {
162
  $alllinks['tumblr'] = $socialinks;
163
  unset( $alllinks['Tumblr'] );
164
  }
165
 
166
 
167
- if ( $alllinks['Vine'] ) {
168
  $alllinks['vine'] = $socialinks;
169
  unset( $alllinks['Vine'] );
170
  }
171
 
172
 
173
- if ( $alllinks['VK'] ) {
174
  $alllinks['vk'] = $socialinks;
175
  unset( $alllinks['VK'] );
176
  }
177
 
178
 
179
- if ( $alllinks['SoundCloud'] ) {
180
  $alllinks['soundcloud'] = $socialinks;
181
  unset( $alllinks['SoundCloud'] );
182
  }
183
 
184
 
185
- if ( $alllinks['Pinterest'] ) {
186
  $alllinks['pinterest'] = $socialinks;
187
  unset( $alllinks['Pinterest'] );
188
  }
189
 
190
 
191
- if ( $alllinks['Reddit'] ) {
192
  $alllinks['reddit'] = $socialinks;
193
  unset( $alllinks['Reddit'] );
194
  }
195
 
196
 
197
- if ( $alllinks['StackOverFlow'] ) {
198
  $alllinks['stack-overflow'] = $socialinks;
199
  unset( $alllinks['StackOverFlow'] );
200
  }
201
 
202
 
203
- if ( $alllinks['Behance'] ) {
204
  $alllinks['behance'] = $socialinks;
205
  unset( $alllinks['Behance'] );
206
  }
207
 
208
 
209
- if ( $alllinks['Github'] ) {
210
  $alllinks['github'] = $socialinks;
211
  unset( $alllinks['Github'] );
212
  }
213
 
214
 
215
- if ( $alllinks['Email'] ) {
216
  $alllinks['envelope'] = $socialinks;
217
  unset( $alllinks['Email'] );
218
  }
@@ -261,7 +273,7 @@ class Making_Fuse_Icons
261
  if ( !empty($fuse_settings['fuse-custom-icons']) ) {
262
  for ( $i = 0 ; $i < count( $fuse_settings['fuse-custom-icons'] ) ; $i++ ) {
263
 
264
- if ( $fuse_settings['fuse-custom-icons']['social_icon_url'][$i] ) {
265
  $icondata = "";
266
  $icon_settings = $fuse_settings['fuse-custom-icons']['icon_url'][$i];
267
  $iconbackground = "";
@@ -272,7 +284,7 @@ class Making_Fuse_Icons
272
  $iconbackground = "style='background-color:" . $fuse_settings['fuse-custom-icons']['bg_color'][$i] . ";'";
273
  $iconsocialimgclass = "awesome-social awesome-social-img";
274
  } else {
275
- $icondata = "<i class='" . $fuse_settings['fuse-custom-icons']['select_font_icon'][$i] . " custom-fuse-social awesome-social' style='background-color:" . $fuse_settings['fuse-custom-icons']['bg_color'][$i] . ";color:" . $fuse_settings['fuse-custom-icons']['icon_m_color'][$i] . "'></i>";
276
  }
277
 
278
  echo "<a {$target} {$iconbackground} class='{$iconsocialimgclass} fuse_social_icons_links fuse_custom_icons' data-nonce='" . wp_create_nonce( 'fuse_social_floating' ) . "' data-title='" . $fuse_settings['fuse-custom-icons']['title_field'][$i] . "' href='" . $fuse_settings['fuse-custom-icons']['social_icon_url'][$i] . "'>" . $icondata . "</a>" ;
45
  $checked = '';
46
  }
47
  foreach ( $fuse_social_opt_front as $option ) {
48
+ $radio_setting = "";
49
+ if ( !empty($options['style_input']) ) {
50
+ $radio_setting = $options['style_input'];
51
+ }
52
  if ( '' != $radio_setting ) {
53
 
54
  if ( $options['style_input'] == $option['value'] ) {
94
  echo "<div id='icon_wrapper'>" ;
95
  $fuse_settings = $options;
96
  $display_flag = 1;
97
+ $pages_hide_from = "";
98
+ $hide_blog_posts = "";
99
+ $custom_icons = "";
100
+ if ( !empty($fuse_settings['not_display_on']) ) {
101
+ $pages_hide_from = $fuse_settings['not_display_on'];
102
+ }
103
+ if ( !empty($fuse_settings['hide_blog_posts']) ) {
104
+ $hide_blog_posts = $fuse_settings['hide_blog_posts'];
105
+ }
106
+ if ( !empty($fuse_settings['fuse-custom-icons']) ) {
107
+ $custom_icons = $fuse_settings['fuse-custom-icons'];
108
+ }
109
  $options = $options['opt-sortable'];
110
  // Checking if target is _self or _blank
111
 
122
  if ( $socialinks ) {
123
  $alllinks[$socialnet] = $socialinks;
124
 
125
+ if ( !empty($alllinks['Facebook']) ) {
126
  $alllinks['facebook'] = $socialinks;
127
  unset( $alllinks['Facebook'] );
128
  }
129
 
130
 
131
+ if ( !empty($alllinks['Twitter']) ) {
132
  $alllinks['twitter'] = $socialinks;
133
  unset( $alllinks['Twitter'] );
134
  }
135
 
136
 
137
+ if ( !empty($alllinks['RSS']) ) {
138
  $alllinks['rss'] = $socialinks;
139
  unset( $alllinks['RSS'] );
140
  }
141
 
142
 
143
+ if ( !empty($alllinks['Linkedin']) ) {
144
  $alllinks['linkedin'] = $socialinks;
145
  unset( $alllinks['Linkedin'] );
146
  }
147
 
148
 
149
+ if ( !empty($alllinks['Youtube']) ) {
150
  $alllinks['youtube'] = $socialinks;
151
  unset( $alllinks['Youtube'] );
152
  }
153
 
154
 
155
+ if ( !empty($alllinks['Flickr']) ) {
156
  $alllinks['flickr'] = $socialinks;
157
  unset( $alllinks['Flickr'] );
158
  }
159
 
160
 
161
+ if ( !empty($alllinks['Stumbleupon']) ) {
162
  $alllinks['stumbleupon'] = $socialinks;
163
  unset( $alllinks['Stumbleupon'] );
164
  }
165
 
166
 
167
+ if ( !empty($alllinks['Instagram']) ) {
168
  $alllinks['instagram'] = $socialinks;
169
  unset( $alllinks['Instagram'] );
170
  }
171
 
172
 
173
+ if ( !empty($alllinks['Tumblr']) ) {
174
  $alllinks['tumblr'] = $socialinks;
175
  unset( $alllinks['Tumblr'] );
176
  }
177
 
178
 
179
+ if ( !empty($alllinks['Vine']) ) {
180
  $alllinks['vine'] = $socialinks;
181
  unset( $alllinks['Vine'] );
182
  }
183
 
184
 
185
+ if ( !empty($alllinks['VK']) ) {
186
  $alllinks['vk'] = $socialinks;
187
  unset( $alllinks['VK'] );
188
  }
189
 
190
 
191
+ if ( !empty($alllinks['SoundCloud']) ) {
192
  $alllinks['soundcloud'] = $socialinks;
193
  unset( $alllinks['SoundCloud'] );
194
  }
195
 
196
 
197
+ if ( !empty($alllinks['Pinterest']) ) {
198
  $alllinks['pinterest'] = $socialinks;
199
  unset( $alllinks['Pinterest'] );
200
  }
201
 
202
 
203
+ if ( !empty($alllinks['Reddit']) ) {
204
  $alllinks['reddit'] = $socialinks;
205
  unset( $alllinks['Reddit'] );
206
  }
207
 
208
 
209
+ if ( !empty($alllinks['StackOverFlow']) ) {
210
  $alllinks['stack-overflow'] = $socialinks;
211
  unset( $alllinks['StackOverFlow'] );
212
  }
213
 
214
 
215
+ if ( !empty($alllinks['Behance']) ) {
216
  $alllinks['behance'] = $socialinks;
217
  unset( $alllinks['Behance'] );
218
  }
219
 
220
 
221
+ if ( !empty($alllinks['Github']) ) {
222
  $alllinks['github'] = $socialinks;
223
  unset( $alllinks['Github'] );
224
  }
225
 
226
 
227
+ if ( !empty($alllinks['Email']) ) {
228
  $alllinks['envelope'] = $socialinks;
229
  unset( $alllinks['Email'] );
230
  }
273
  if ( !empty($fuse_settings['fuse-custom-icons']) ) {
274
  for ( $i = 0 ; $i < count( $fuse_settings['fuse-custom-icons'] ) ; $i++ ) {
275
 
276
+ if ( !empty($fuse_settings['fuse-custom-icons']['social_icon_url'][$i]) ) {
277
  $icondata = "";
278
  $icon_settings = $fuse_settings['fuse-custom-icons']['icon_url'][$i];
279
  $iconbackground = "";
284
  $iconbackground = "style='background-color:" . $fuse_settings['fuse-custom-icons']['bg_color'][$i] . ";'";
285
  $iconsocialimgclass = "awesome-social awesome-social-img";
286
  } else {
287
+ $icondata = "<i class='" . $fuse_settings['fuse-custom-icons']['select_font_icon'][$i] . " custom-fuse-social awesome-social' style='background-color:" . $fuse_settings['fuse-custom-icons']['bg_color'][$i] . ";color:" . $fuse_settings['fuse-custom-icons']['icon_m_color'][$i] . " !important;'></i>";
288
  }
289
 
290
  echo "<a {$target} {$iconbackground} class='{$iconsocialimgclass} fuse_social_icons_links fuse_custom_icons' data-nonce='" . wp_create_nonce( 'fuse_social_floating' ) . "' data-title='" . $fuse_settings['fuse-custom-icons']['title_field'][$i] . "' href='" . $fuse_settings['fuse-custom-icons']['social_icon_url'][$i] . "'>" . $icondata . "</a>" ;
inc/fuse_social_sidebar_scripts.php CHANGED
@@ -4,8 +4,10 @@ Styling for social icons
4
  ----------------------------------------------------*/
5
 
6
  function fuse_social_styles_enqueue($hook) {
7
- if($_GET['page'] == "FUSESoicalFloatingSidebar"){
8
- wp_enqueue_style( 'my_custom_script', 'https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' );
 
 
9
  }
10
  }
11
  add_action( 'admin_enqueue_scripts', 'fuse_social_styles_enqueue' );
@@ -51,7 +53,7 @@ function fuse_social_scripts() {
51
 
52
  #icon_wrapper{
53
  position: fixed;
54
- top: 25%;
55
  left: 0px;
56
  z-index: 99999;
57
  }
4
  ----------------------------------------------------*/
5
 
6
  function fuse_social_styles_enqueue($hook) {
7
+ if(!empty($_GET['page'])){
8
+ if($_GET['page'] == "FUSESoicalFloatingSidebar"){
9
+ wp_enqueue_style( 'my_custom_script', 'https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' );
10
+ }
11
  }
12
  }
13
  add_action( 'admin_enqueue_scripts', 'fuse_social_styles_enqueue' );
53
 
54
  #icon_wrapper{
55
  position: fixed;
56
+ top: 50%;
57
  left: 0px;
58
  z-index: 99999;
59
  }
inc/legacy.php CHANGED
@@ -1,56 +1 @@
1
  <?php
2
- if( get_option( 'fuse_dismiss_notice' ) != true ) {
3
- add_action( 'admin_notices', 'fuse_admin_dismissible' );
4
- }
5
-
6
- function fuse_admin_dismissible() {
7
- $options = get_option( 'fuse_social_options' );
8
- if(!empty($options)){
9
- // Check if it's been dismissed...
10
- if ( get_option('dismissed-prefix_deprecated', FALSE ) ) {
11
- // Added the class "notice-my-class" so jQuery pick it up and pass via AJAX,
12
- // and added "data-notice" attribute in order to track multiple / different notices
13
- // multiple dismissible notice states ?>
14
- <div class='notice notice-error fuse-dismiss-notice is-dismissible' data-notice="prefix_deprecated">
15
- <p>This is a major update of Fuse Social Floating Sidebar. You need to setup the plugin settings again to make things work fine, sorry about the inconvenience but we had to make this decision to include more exciting features and make it more secure and robust. Found a bug? <a href="https://www.fusefloat.com/" target="_blank">Report us here.</a></p>
16
- </div>
17
-
18
- <script type="text/javascript">
19
-
20
- // shorthand no-conflict safe document-ready function
21
- jQuery(function($) {
22
- // Hook into the "notice-my-class" class we added to the notice, so
23
- // Only listen to YOUR notices being dismissed
24
- $( document ).on( 'click', '.fuse-dismiss-notice .notice-dismiss', function () {
25
- // Read the "data-notice" information to track which notice
26
- // is being dismissed and send it via AJAX
27
- var type = $( this ).closest( '.fuse-dismiss-notice' ).data( 'notice' );
28
- // Make an AJAX call
29
- // Since WP 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
30
- $.ajax( ajaxurl,
31
- {
32
- type: 'POST',
33
- data: {
34
- action: 'dismissed_notice_handler',
35
- type: type,
36
- }
37
- } );
38
- } );
39
- });
40
-
41
-
42
- </script>
43
-
44
- <?php }
45
- }
46
- }
47
-
48
- add_action( 'wp_ajax_dismissed_notice_handler', 'fuse_ajax_notice_handler' );
49
-
50
- /**
51
- * AJAX handler to store the state of dismissible notices.
52
- */
53
- function fuse_ajax_notice_handler() {
54
- // Store it in the options table
55
- update_option( 'dismissed-' . $_REQUEST['type'], TRUE );
56
- }
1
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://photontechs.com/donate
4
  Tags: social media, floating sidebar, social widget, social icons,animated social icons
5
  Requires at least: 3.0
6
  Tested up to: 5.5
7
- Stable tag: 5.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -12,6 +12,8 @@ This plugin allows you to add social media floating sidebar icons which can be c
12
 
13
  == Description ==
14
 
 
 
15
  By simply inserting links from Admin Dashboard under Settings Menu, one can show social media icons as floating on the website. This plugin provides very attractive interface which allows you to make settings for those social media icons, in the means of :
16
  <ul>
17
  <li>Type of icons round and square</li>
@@ -20,8 +22,6 @@ By simply inserting links from Admin Dashboard under Settings Menu, one can show
20
  <li>Different size of social icons.</li>
21
  </ul>
22
 
23
- Fuse Social Floating Sidebar is providing two type of icons square and round, further there is also <strong>animation effect which looks much attractive</strong>.
24
- <br />
25
  You can check live demo with all features as well :
26
  <strong>Fuse Social </strong> [Demo](https://www.fusefloat.com/demo/ "Fuse Social Floating")
27
  <br />
4
  Tags: social media, floating sidebar, social widget, social icons,animated social icons
5
  Requires at least: 3.0
6
  Tested up to: 5.5
7
+ Stable tag: 5.1.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
12
 
13
  == Description ==
14
 
15
+ === GET 50% OFF ON PRO VERSION, USE COUPON CODE: SALEOFF50 (OFFER IS ONLY VALID FOR 24 HOURS) ===
16
+
17
  By simply inserting links from Admin Dashboard under Settings Menu, one can show social media icons as floating on the website. This plugin provides very attractive interface which allows you to make settings for those social media icons, in the means of :
18
  <ul>
19
  <li>Type of icons round and square</li>
22
  <li>Different size of social icons.</li>
23
  </ul>
24
 
 
 
25
  You can check live demo with all features as well :
26
  <strong>Fuse Social </strong> [Demo](https://www.fusefloat.com/demo/ "Fuse Social Floating")
27
  <br />