Version Description
- Aug 22, 2015 | NOTE: UPGRADING PLUGIN WILL NOT CHANGE YOUR SETTINGS/CONFIGURATION.. UPGRADE WITH CONFIDENCE :)
- Stable Release
- Security Fix
Download this release
Release Info
Developer | Acurax |
Plugin | Social Media Widget by Acurax |
Version | 2.3 |
Comparing to | |
See all releases |
Code changes from version 2.2 to 2.3
- acurax-social-icon.php +1 -90
- dynamic_admin_style.css +0 -62
- function.php +1 -6
- premium.php +9 -1
- readme.txt +10 -0
- smw-misc.php +12 -17
- social-icon.php +17 -6
- style_admin.css +25 -1
- troubleshoot.php +13 -9
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.
|
8 |
Author URI: http://www.acurax.com
|
9 |
License: GPLv2 or later
|
10 |
*/
|
@@ -94,93 +94,4 @@ if ( is_admin() )
|
|
94 |
{
|
95 |
add_action('admin_menu', 'acx_social_widget_icon_admin_actions');
|
96 |
}
|
97 |
-
|
98 |
-
// Adding WUM Starts Here
|
99 |
-
function acurax_social_widget_icon_update( $plugin_data, $r )
|
100 |
-
{
|
101 |
-
// Get Current Plugin Data () Starts Here
|
102 |
-
function current_plugin_info($value)
|
103 |
-
{
|
104 |
-
if ( ! function_exists( 'get_plugins' ) )
|
105 |
-
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
106 |
-
$plugin_folder = get_plugins( '/' . plugin_basename( dirname( __FILE__ ) ) );
|
107 |
-
$plugin_file = basename( ( __FILE__ ) );
|
108 |
-
return $plugin_folder[$plugin_file][$value];
|
109 |
-
} // Get Current Plugin Data () Starts Here
|
110 |
-
|
111 |
-
$curr_ver = current_plugin_info('Version');
|
112 |
-
define ( 'CURRENT_VERSION', $curr_ver );
|
113 |
-
$folder = basename( dirname( __FILE__ ) );
|
114 |
-
// readme contents
|
115 |
-
$data = file_get_contents( 'http://plugins.trac.wordpress.org/browser/'.$folder.'/trunk/readme.txt?format=txt' );
|
116 |
-
if ($data)
|
117 |
-
{
|
118 |
-
$matches = null;
|
119 |
-
$regexp = '~==\s*Changelog\s*==\s*=\s*[0-9.]+\s*=(.*)(=\s*' . preg_quote ( CURRENT_VERSION ) . '\s*=|$)~Uis';
|
120 |
-
if ( preg_match ( $regexp, $data, $matches) )
|
121 |
-
{
|
122 |
-
$changelog = (array) preg_split ( '~[\r\n]+~', trim ( $matches[1] ) );
|
123 |
-
$ret = '<div style="color: #c00;font-size: small; margin-top:8px;margin-bottom:8px">Acurax Social Media Widget Plugin has been updated. Here is a change list, so you can see what\'s been changed or fixed:</div>';
|
124 |
-
$ret .= '<div style="font-weight: normal;">';
|
125 |
-
$ret .= '<p style="margin: 5px 0; font-weight:bold; font-size:small">= Latest Version =</p>';
|
126 |
-
$ul = false;
|
127 |
-
$first = false;
|
128 |
-
foreach ( $changelog as $index => $line )
|
129 |
-
{
|
130 |
-
if ( preg_match ( '~^\s*\*\s*~', $line) )
|
131 |
-
{
|
132 |
-
if ( !$ul )
|
133 |
-
{
|
134 |
-
$ret .= '<ul style="list-style: disc; margin-left: 20px;">';
|
135 |
-
$ul = true;
|
136 |
-
$first = true;
|
137 |
-
}
|
138 |
-
$line = preg_replace ( '~^\s*\*\s*~', '', $line );
|
139 |
-
if ( $first )
|
140 |
-
{
|
141 |
-
$ret .= '<li style="list-style-type:none;margin-left: -1.5em; font-weight:bold">Release Date:' . $line . '</li>';
|
142 |
-
$first = false;
|
143 |
-
}
|
144 |
-
else
|
145 |
-
{
|
146 |
-
$ret .= '<li>' . $line . '</li>';
|
147 |
-
}
|
148 |
-
}
|
149 |
-
else
|
150 |
-
{
|
151 |
-
if ( $ul )
|
152 |
-
{
|
153 |
-
$ret .= '</ul><div style="clear: left;"></div>';
|
154 |
-
$ul = false;
|
155 |
-
}
|
156 |
-
$ret .= '<p style="margin: 5px 0; font-weight:bold; font-size:small">' . $line . '</p>';
|
157 |
-
}
|
158 |
-
}
|
159 |
-
if ( $ul )
|
160 |
-
{
|
161 |
-
$ret .= '</ul>';
|
162 |
-
}
|
163 |
-
$ret .= '</div>';
|
164 |
-
}
|
165 |
-
}
|
166 |
-
echo $ret;
|
167 |
-
}
|
168 |
-
/**
|
169 |
-
* Add update messages that can be attached to the CURRENT release (not
|
170 |
-
* this one), but only for 2.8+
|
171 |
-
*/
|
172 |
-
global $wp_version;
|
173 |
-
if ( version_compare('2.8', $wp_version, '<=') )
|
174 |
-
{
|
175 |
-
global $pagenow;
|
176 |
-
if ( 'plugins.php' === $pagenow )
|
177 |
-
{
|
178 |
-
// Better update message
|
179 |
-
$file = basename( __FILE__ );
|
180 |
-
$folder = basename( dirname( __FILE__ ) );
|
181 |
-
$acx_add = "in_plugin_update_message-{$folder}/{$file}";
|
182 |
-
add_action( $acx_add, 'acurax_social_widget_icon_update', 20, 2 );
|
183 |
-
}
|
184 |
-
}
|
185 |
-
// Adding WUM Ends Here
|
186 |
?>
|
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 |
*/
|
94 |
{
|
95 |
add_action('admin_menu', 'acx_social_widget_icon_admin_actions');
|
96 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
?>
|
dynamic_admin_style.css
DELETED
@@ -1,62 +0,0 @@
|
|
1 |
-
#toplevel_page_Acurax-Social-Widget-Settings
|
2 |
-
{
|
3 |
-
background: none repeat scroll 0 0 LimeGreen;
|
4 |
-
color: white;
|
5 |
-
}
|
6 |
-
#toplevel_page_Acurax-Social-Widget-Settings li a
|
7 |
-
{
|
8 |
-
color: #21759B;
|
9 |
-
text-align: left;
|
10 |
-
}
|
11 |
-
.folded #toplevel_page_Acurax-Social-Widget-Settings .wp-submenu-head
|
12 |
-
{
|
13 |
-
color: #21759B;
|
14 |
-
}
|
15 |
-
.folded #toplevel_page_Acurax-Social-Widget-Settings img
|
16 |
-
{
|
17 |
-
margin-left: -1px !important;
|
18 |
-
margin-top: 1px !important;
|
19 |
-
}
|
20 |
-
#toplevel_page_Acurax-Social-Widget-Settings img
|
21 |
-
{
|
22 |
-
background: none repeat scroll 0 0 white;
|
23 |
-
border-radius: 4px 4px 4px 4px;
|
24 |
-
margin-left: 4px;
|
25 |
-
margin-top: 11px;
|
26 |
-
opacity: 1 !important;
|
27 |
-
padding: 4px !important;
|
28 |
-
}
|
29 |
-
#toplevel_page_Acurax-Social-Widget-Settings a
|
30 |
-
{
|
31 |
-
color: InfoText;
|
32 |
-
font-size: 12px !important;
|
33 |
-
text-align: center;
|
34 |
-
}
|
35 |
-
#acurax-social-media-widget
|
36 |
-
{
|
37 |
-
background: url("images/plugin_page_bg.png") repeat-x scroll 0 0 #FFFFFF;
|
38 |
-
}
|
39 |
-
#plugin_page_links
|
40 |
-
{
|
41 |
-
background: none repeat scroll 0 0 #87CEFA;
|
42 |
-
border-radius: 8px;
|
43 |
-
color: #2F4F4F;
|
44 |
-
min-height: 22px;
|
45 |
-
padding: 5px;
|
46 |
-
text-align: center;
|
47 |
-
}
|
48 |
-
#acurax-social-media-widget .plugin-title
|
49 |
-
{
|
50 |
-
background: url("images/from.png") no-repeat scroll 10% 94% transparent;
|
51 |
-
}
|
52 |
-
#plugin_page_links a
|
53 |
-
{
|
54 |
-
color: #2F4F4F;
|
55 |
-
font-family: arial;
|
56 |
-
font-size: 13px;
|
57 |
-
font-weight: bold;
|
58 |
-
padding: 2px 10px;
|
59 |
-
}
|
60 |
-
#plugin_page_links a:hover
|
61 |
-
{
|
62 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function.php
CHANGED
@@ -12,7 +12,6 @@ $acx_widget_si_gplus = get_option('acx_widget_si_gplus');
|
|
12 |
$acx_widget_si_pinterest = get_option('acx_widget_si_pinterest');
|
13 |
$acx_widget_si_feed = get_option('acx_widget_si_feed');
|
14 |
$acx_widget_si_icon_size = get_option('acx_widget_si_icon_size');
|
15 |
-
$acx_si_smw_menu_highlight = get_option('acx_si_smw_menu_highlight');
|
16 |
$acx_si_smw_float_fix = get_option('acx_si_smw_float_fix');
|
17 |
$acx_si_smw_theme_warning_ignore = get_option('acx_si_smw_theme_warning_ignore');
|
18 |
// *****************************************************
|
@@ -146,11 +145,7 @@ function extra_style_acx_widget_icon()
|
|
146 |
add_action('wp_head', 'extra_style_acx_widget_icon'); // PUBLIC
|
147 |
function acx_widget_si_admin_style() // Adding Style For Admin
|
148 |
{
|
149 |
-
global $acx_si_smw_menu_highlight;
|
150 |
echo '<link rel="stylesheet" type="text/css" href="' .plugins_url('style_admin.css', __FILE__). '">';
|
151 |
-
if ($acx_si_smw_menu_highlight != "no") {
|
152 |
-
echo '<link rel="stylesheet" type="text/css" href="' .plugins_url('dynamic_admin_style.css', __FILE__). '">';
|
153 |
-
}
|
154 |
} add_action('admin_head', 'acx_widget_si_admin_style'); // ADMIN
|
155 |
$acx_widget_si_sc_id = 0; // Defined to assign shortcode unique id
|
156 |
function DISPLAY_WIDGET_acurax_widget_icons_SC($atts)
|
@@ -213,7 +208,7 @@ function acx_widget_si_pluign_finish_version_update()
|
|
213 |
</div>';
|
214 |
}
|
215 |
$acx_widget_si_current_version = get_option('acx_widget_si_current_version');
|
216 |
-
if($acx_widget_si_current_version != '2.
|
217 |
{
|
218 |
if (get_option('social_widget_icon_array_order') != "")
|
219 |
{
|
12 |
$acx_widget_si_pinterest = get_option('acx_widget_si_pinterest');
|
13 |
$acx_widget_si_feed = get_option('acx_widget_si_feed');
|
14 |
$acx_widget_si_icon_size = get_option('acx_widget_si_icon_size');
|
|
|
15 |
$acx_si_smw_float_fix = get_option('acx_si_smw_float_fix');
|
16 |
$acx_si_smw_theme_warning_ignore = get_option('acx_si_smw_theme_warning_ignore');
|
17 |
// *****************************************************
|
145 |
add_action('wp_head', 'extra_style_acx_widget_icon'); // PUBLIC
|
146 |
function acx_widget_si_admin_style() // Adding Style For Admin
|
147 |
{
|
|
|
148 |
echo '<link rel="stylesheet" type="text/css" href="' .plugins_url('style_admin.css', __FILE__). '">';
|
|
|
|
|
|
|
149 |
} add_action('admin_head', 'acx_widget_si_admin_style'); // ADMIN
|
150 |
$acx_widget_si_sc_id = 0; // Defined to assign shortcode unique id
|
151 |
function DISPLAY_WIDGET_acurax_widget_icons_SC($atts)
|
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 |
{
|
premium.php
CHANGED
@@ -1,5 +1,13 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
{
|
4 |
update_option('acx_widget_si_td', "hide");
|
5 |
?>
|
1 |
<?php
|
2 |
+
$get_td ="";
|
3 |
+
if(ISSET($_GET['td']))
|
4 |
+
{
|
5 |
+
if(sanitize_text_field($_GET['td']) == 'hide')
|
6 |
+
{
|
7 |
+
$get_td = "hide";
|
8 |
+
}
|
9 |
+
}
|
10 |
+
if($get_td == 'hide')
|
11 |
{
|
12 |
update_option('acx_widget_si_td', "hide");
|
13 |
?>
|
readme.txt
CHANGED
@@ -115,6 +115,11 @@ Have more questions ? [Drop a mail](http://www.acurax.com/contact.php/ "Drop an
|
|
115 |
|
116 |
== Upgrade Notice ==
|
117 |
|
|
|
|
|
|
|
|
|
|
|
118 |
= 2.2 =
|
119 |
* Nov 04, 2014 | NOTE: UPGRADING PLUGIN WILL NOT CHANGE YOUR SETTINGS/CONFIGURATION.. UPGRADE WITH CONFIDENCE :)
|
120 |
* Stable Release
|
@@ -173,6 +178,11 @@ Have more questions ? [Drop a mail](http://www.acurax.com/contact.php/ "Drop an
|
|
173 |
|
174 |
== Changelog ==
|
175 |
|
|
|
|
|
|
|
|
|
|
|
176 |
= 2.2 =
|
177 |
* Nov 04, 2014 | NOTE: UPGRADING PLUGIN WILL NOT CHANGE YOUR SETTINGS/CONFIGURATION.. UPGRADE WITH CONFIDENCE :)
|
178 |
* Stable Release
|
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
|
121 |
+
* Security Fix
|
122 |
+
|
123 |
= 2.2 =
|
124 |
* Nov 04, 2014 | NOTE: UPGRADING PLUGIN WILL NOT CHANGE YOUR SETTINGS/CONFIGURATION.. UPGRADE WITH CONFIDENCE :)
|
125 |
* Stable Release
|
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
|
184 |
+
* Security Fix
|
185 |
+
|
186 |
= 2.2 =
|
187 |
* Nov 04, 2014 | NOTE: UPGRADING PLUGIN WILL NOT CHANGE YOUR SETTINGS/CONFIGURATION.. UPGRADE WITH CONFIDENCE :)
|
188 |
* Stable Release
|
smw-misc.php
CHANGED
@@ -1,17 +1,20 @@
|
|
1 |
<?php
|
2 |
if($_POST['acurax_social_widget_icon_hidden'] == 'Y')
|
3 |
{ //Form data sent
|
4 |
-
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
7 |
update_option('acx_si_smw_theme_warning_ignore', $acx_si_smw_theme_warning_ignore);
|
8 |
-
$acx_si_smw_acx_service_banners = $_POST['acx_si_smw_acx_service_banners'];
|
9 |
update_option('acx_si_smw_acx_service_banners', $acx_si_smw_acx_service_banners);
|
10 |
-
$acx_si_smw_float_fix = $_POST['acx_si_smw_float_fix'];
|
11 |
update_option('acx_si_smw_float_fix', $acx_si_smw_float_fix);
|
12 |
-
$acx_si_smw_hide_advert = $_POST['acx_si_smw_hide_advert'];
|
13 |
update_option('acx_si_smw_hide_advert', $acx_si_smw_hide_advert);
|
14 |
-
$acx_si_asmw_hide_expert_support_menu = $_POST['acx_si_asmw_hide_expert_support_menu'];
|
15 |
update_option('acx_si_asmw_hide_expert_support_menu', $acx_si_asmw_hide_expert_support_menu);
|
16 |
?>
|
17 |
<div class="updated"><p><strong><?php _e('Acurax Widgets Misc Settings Saved!.' ); ?></strong></p></div>
|
@@ -19,14 +22,12 @@ update_option('acx_si_asmw_hide_expert_support_menu', $acx_si_asmw_hide_expert_s
|
|
19 |
}
|
20 |
else
|
21 |
{ //Normal page display
|
22 |
-
$acx_si_smw_menu_highlight = get_option('acx_si_smw_menu_highlight');
|
23 |
$acx_si_smw_theme_warning_ignore = get_option('acx_si_smw_theme_warning_ignore');
|
24 |
$acx_si_smw_acx_service_banners = get_option('acx_si_smw_acx_service_banners');
|
25 |
$acx_si_smw_float_fix = get_option('acx_si_smw_float_fix');
|
26 |
$acx_si_smw_hide_advert = get_option('acx_si_smw_hide_advert');
|
27 |
$acx_si_asmw_hide_expert_support_menu = get_option('acx_si_asmw_hide_expert_support_menu');
|
28 |
// Setting Defaults
|
29 |
-
if ($acx_si_smw_menu_highlight == "") { $acx_si_smw_menu_highlight = "yes"; }
|
30 |
if ($acx_si_smw_theme_warning_ignore == "") { $acx_si_smw_theme_warning_ignore = "no"; }
|
31 |
if ($acx_si_smw_acx_service_banners == "") { $acx_si_smw_acx_service_banners = "yes"; }
|
32 |
if ($acx_si_smw_float_fix == "") { $acx_si_smw_float_fix = "no"; }
|
@@ -78,13 +79,7 @@ if ($acx_si_smw_acx_service_banners != "no") { ?>
|
|
78 |
<?php echo "<h2>" . __( 'Acurax Social Widget Misc Settings', 'acx_si_config' ) . "</h2>"; ?>
|
79 |
<form name="acurax_si_form" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
|
80 |
<input type="hidden" name="acurax_social_widget_icon_hidden" value="Y">
|
81 |
-
|
82 |
-
<select name="acx_si_smw_menu_highlight">
|
83 |
-
<option value="yes"<?php if ($acx_si_smw_menu_highlight == "yes") { echo 'selected="selected"'; } ?>>Yes, Highlight Plugin Menu </option>
|
84 |
-
<option value="no"<?php if ($acx_si_smw_menu_highlight == "no") { echo 'selected="selected"'; } ?>>No, Dont Highlight Plugin Menu </option>
|
85 |
-
</select>
|
86 |
-
<?php _e("If you don't like the plugin menu highlighting in green, you can set this to NO" ); ?>
|
87 |
-
</p>
|
88 |
<p class="widefat" style="padding:8px;width:99%;margin-top:8px;"> <?php _e("Acurax Service Banners: " ); ?>
|
89 |
<select name="acx_si_smw_acx_service_banners">
|
90 |
<option value="yes"<?php if ($acx_si_smw_acx_service_banners == "yes") { echo 'selected="selected"'; } ?>>Yes, Show Them </option>
|
@@ -127,7 +122,7 @@ if ($acx_si_smw_acx_service_banners != "no") { ?>
|
|
127 |
</select>
|
128 |
<?php _e("If everything is working properly and still the plugin shows theme warning, you can set this to Yes" ); ?>
|
129 |
</p>
|
130 |
-
|
131 |
<p class="submit">
|
132 |
<input type="submit" name="Submit" value="<?php _e('Update Acurax Social Icon', 'acx_si_config' ) ?>" />
|
133 |
</p>
|
1 |
<?php
|
2 |
if($_POST['acurax_social_widget_icon_hidden'] == 'Y')
|
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>");
|
6 |
+
if (!wp_verify_nonce($_POST['acx_si_misc_submit'],'acx_si_misc_submit')) die("<br><br>Unknown Error Occurred, Try Again... <a href=''>Click Here</a>");
|
7 |
+
if(!current_user_can('manage_options')) die("<br><br>Sorry, You have no permission to do this action...</a>");
|
8 |
+
|
9 |
+
$acx_si_smw_theme_warning_ignore = sanitize_text_field($_POST['acx_si_smw_theme_warning_ignore']);
|
10 |
update_option('acx_si_smw_theme_warning_ignore', $acx_si_smw_theme_warning_ignore);
|
11 |
+
$acx_si_smw_acx_service_banners = sanitize_text_field($_POST['acx_si_smw_acx_service_banners']);
|
12 |
update_option('acx_si_smw_acx_service_banners', $acx_si_smw_acx_service_banners);
|
13 |
+
$acx_si_smw_float_fix = sanitize_text_field($_POST['acx_si_smw_float_fix']);
|
14 |
update_option('acx_si_smw_float_fix', $acx_si_smw_float_fix);
|
15 |
+
$acx_si_smw_hide_advert = sanitize_text_field($_POST['acx_si_smw_hide_advert']);
|
16 |
update_option('acx_si_smw_hide_advert', $acx_si_smw_hide_advert);
|
17 |
+
$acx_si_asmw_hide_expert_support_menu = sanitize_text_field($_POST['acx_si_asmw_hide_expert_support_menu']);
|
18 |
update_option('acx_si_asmw_hide_expert_support_menu', $acx_si_asmw_hide_expert_support_menu);
|
19 |
?>
|
20 |
<div class="updated"><p><strong><?php _e('Acurax Widgets Misc Settings Saved!.' ); ?></strong></p></div>
|
22 |
}
|
23 |
else
|
24 |
{ //Normal page display
|
|
|
25 |
$acx_si_smw_theme_warning_ignore = get_option('acx_si_smw_theme_warning_ignore');
|
26 |
$acx_si_smw_acx_service_banners = get_option('acx_si_smw_acx_service_banners');
|
27 |
$acx_si_smw_float_fix = get_option('acx_si_smw_float_fix');
|
28 |
$acx_si_smw_hide_advert = get_option('acx_si_smw_hide_advert');
|
29 |
$acx_si_asmw_hide_expert_support_menu = get_option('acx_si_asmw_hide_expert_support_menu');
|
30 |
// Setting Defaults
|
|
|
31 |
if ($acx_si_smw_theme_warning_ignore == "") { $acx_si_smw_theme_warning_ignore = "no"; }
|
32 |
if ($acx_si_smw_acx_service_banners == "") { $acx_si_smw_acx_service_banners = "yes"; }
|
33 |
if ($acx_si_smw_float_fix == "") { $acx_si_smw_float_fix = "no"; }
|
79 |
<?php echo "<h2>" . __( 'Acurax Social Widget Misc Settings', 'acx_si_config' ) . "</h2>"; ?>
|
80 |
<form name="acurax_si_form" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
|
81 |
<input type="hidden" name="acurax_social_widget_icon_hidden" value="Y">
|
82 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
<p class="widefat" style="padding:8px;width:99%;margin-top:8px;"> <?php _e("Acurax Service Banners: " ); ?>
|
84 |
<select name="acx_si_smw_acx_service_banners">
|
85 |
<option value="yes"<?php if ($acx_si_smw_acx_service_banners == "yes") { echo 'selected="selected"'; } ?>>Yes, Show Them </option>
|
122 |
</select>
|
123 |
<?php _e("If everything is working properly and still the plugin shows theme warning, you can set this to Yes" ); ?>
|
124 |
</p>
|
125 |
+
<input name="acx_si_misc_submit" type="hidden" value="<?php echo wp_create_nonce('acx_si_misc_submit'); ?>" />
|
126 |
<p class="submit">
|
127 |
<input type="submit" name="Submit" value="<?php _e('Update Acurax Social Icon', 'acx_si_config' ) ?>" />
|
128 |
</p>
|
social-icon.php
CHANGED
@@ -5,9 +5,19 @@ $total_themes = ($total_themes+1); // DO NOT EDIT THIS
|
|
5 |
/**********************************************/
|
6 |
if($_POST['acurax_social_widget_icon_hidden'] == 'Y')
|
7 |
{ //Form data sent
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
update_option('acx_widget_si_theme', $acx_widget_si_theme);
|
10 |
-
$acx_widget_si_twitter = $_POST['acx_widget_si_twitter'];
|
11 |
update_option('acx_widget_si_twitter', $acx_widget_si_twitter);
|
12 |
$acx_widget_si_facebook = $_POST['acx_widget_si_facebook'];
|
13 |
update_option('acx_widget_si_facebook', $acx_widget_si_facebook);
|
@@ -17,9 +27,9 @@ if($_POST['acurax_social_widget_icon_hidden'] == 'Y')
|
|
17 |
update_option('acx_widget_si_linkedin', $acx_widget_si_linkedin);
|
18 |
$acx_widget_si_gplus = $_POST['acx_widget_si_gplus'];
|
19 |
update_option('acx_widget_si_gplus', $acx_widget_si_gplus);
|
20 |
-
$acx_widget_si_credit = $_POST['acx_widget_si_credit'];
|
21 |
update_option('acx_widget_si_credit', $acx_widget_si_credit);
|
22 |
-
$acx_widget_si_icon_size = $_POST['acx_widget_si_icon_size'];
|
23 |
update_option('acx_widget_si_icon_size', $acx_widget_si_icon_size);
|
24 |
$acx_widget_si_pinterest = $_POST['acx_widget_si_pinterest'];
|
25 |
update_option('acx_widget_si_pinterest', $acx_widget_si_pinterest);
|
@@ -60,7 +70,7 @@ update_option('acx_widget_si_installed_date', $acx_widget_si_installed_date);
|
|
60 |
$social_widget_icon_array_order = array(0,1,2,3,4,5,6);
|
61 |
$social_widget_icon_array_order = serialize($social_widget_icon_array_order);
|
62 |
update_option('social_widget_icon_array_order', $social_widget_icon_array_order);
|
63 |
-
$acx_widget_si_current_version = "2.
|
64 |
update_option('acx_widget_si_current_version', $acx_widget_si_current_version);
|
65 |
} else
|
66 |
{
|
@@ -327,6 +337,7 @@ if ($acx_si_smw_acx_service_banners != "no") { ?>
|
|
327 |
<input type="text" name="acx_widget_si_feed" value="<?php echo $acx_widget_si_feed; ?>" size="50">
|
328 |
<?php _e("<b>Eg:</b> http://www.yourwebsite.com/feed" ); ?>
|
329 |
</p>
|
|
|
330 |
<p class="submit">
|
331 |
<input type="submit" name="Submit" value="<?php _e('Save Changes', 'acx_widget_si_config' ) ?>" />
|
332 |
<a name="updated">.</a>
|
@@ -335,7 +346,7 @@ if ($acx_si_smw_acx_service_banners != "no") { ?>
|
|
335 |
<?php if($_GET["status"] == "updated") { ?>
|
336 |
<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>
|
337 |
<?php
|
338 |
-
$acx_widget_si_current_version = "2.
|
339 |
update_option('acx_widget_si_current_version', $acx_widget_si_current_version);
|
340 |
} ?>
|
341 |
<hr/>
|
5 |
/**********************************************/
|
6 |
if($_POST['acurax_social_widget_icon_hidden'] == 'Y')
|
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>");
|
10 |
+
if (!wp_verify_nonce($_POST['acx_si_settings_submit'],'acx_si_settings_submit')) die("<br><br>Unknown Error Occurred, Try Again... <a href=''>Click Here</a>");
|
11 |
+
if(!current_user_can('manage_options')) die("<br><br>Sorry, You have no permission to do this action...</a>");
|
12 |
+
|
13 |
+
|
14 |
+
$acx_widget_si_theme = sanitize_text_field($_POST['acx_widget_si_theme']);
|
15 |
+
if(!is_numeric($acx_widget_si_theme))
|
16 |
+
{
|
17 |
+
$acx_widget_si_theme = 1;
|
18 |
+
}
|
19 |
update_option('acx_widget_si_theme', $acx_widget_si_theme);
|
20 |
+
$acx_widget_si_twitter = sanitize_text_field($_POST['acx_widget_si_twitter']);
|
21 |
update_option('acx_widget_si_twitter', $acx_widget_si_twitter);
|
22 |
$acx_widget_si_facebook = $_POST['acx_widget_si_facebook'];
|
23 |
update_option('acx_widget_si_facebook', $acx_widget_si_facebook);
|
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);
|
34 |
$acx_widget_si_pinterest = $_POST['acx_widget_si_pinterest'];
|
35 |
update_option('acx_widget_si_pinterest', $acx_widget_si_pinterest);
|
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 |
{
|
337 |
<input type="text" name="acx_widget_si_feed" value="<?php echo $acx_widget_si_feed; ?>" size="50">
|
338 |
<?php _e("<b>Eg:</b> http://www.yourwebsite.com/feed" ); ?>
|
339 |
</p>
|
340 |
+
<input name="acx_si_settings_submit" type="hidden" value="<?php echo wp_create_nonce('acx_si_settings_submit'); ?>" />
|
341 |
<p class="submit">
|
342 |
<input type="submit" name="Submit" value="<?php _e('Save Changes', 'acx_widget_si_config' ) ?>" />
|
343 |
<a name="updated">.</a>
|
346 |
<?php if($_GET["status"] == "updated") { ?>
|
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/>
|
style_admin.css
CHANGED
@@ -20,6 +20,30 @@
|
|
20 |
font-weight: 400;
|
21 |
src: url('images/fonts/courgette.woff') format('woff');
|
22 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
#icon_selection
|
24 |
{
|
25 |
background: none repeat scroll 0 0 white;
|
@@ -44,7 +68,7 @@
|
|
44 |
font-size: 12px;
|
45 |
margin-left: auto;
|
46 |
margin-right: auto;
|
47 |
-
max-height:
|
48 |
overflow-y: scroll;
|
49 |
padding: 5px 7px 10px;
|
50 |
text-shadow: 0 0 1px #F7F7F7;
|
20 |
font-weight: 400;
|
21 |
src: url('images/fonts/courgette.woff') format('woff');
|
22 |
}
|
23 |
+
#acurax-social-media-widget
|
24 |
+
{
|
25 |
+
background: url("images/plugin_page_bg.png") repeat-x scroll 0 0 #FFFFFF;
|
26 |
+
}
|
27 |
+
#plugin_page_links
|
28 |
+
{
|
29 |
+
background: none repeat scroll 0 0 lightgray;
|
30 |
+
border-radius: 8px;
|
31 |
+
color: #2F4F4F;
|
32 |
+
min-height: 22px;
|
33 |
+
padding: 5px;
|
34 |
+
text-align: center;
|
35 |
+
}
|
36 |
+
#acurax-social-media-widget .plugin-title
|
37 |
+
{
|
38 |
+
background: url("images/from.png") no-repeat scroll 10% 94% transparent;
|
39 |
+
}
|
40 |
+
#plugin_page_links a
|
41 |
+
{
|
42 |
+
color: #2f4f4f;
|
43 |
+
font-family: arial;
|
44 |
+
font-size: 12px;
|
45 |
+
padding: 0 5px;
|
46 |
+
}
|
47 |
#icon_selection
|
48 |
{
|
49 |
background: none repeat scroll 0 0 white;
|
68 |
font-size: 12px;
|
69 |
margin-left: auto;
|
70 |
margin-right: auto;
|
71 |
+
max-height: 320px;
|
72 |
overflow-y: scroll;
|
73 |
padding: 5px 7px 10px;
|
74 |
text-shadow: 0 0 1px #F7F7F7;
|
troubleshoot.php
CHANGED
@@ -1,15 +1,19 @@
|
|
1 |
<?php
|
2 |
-
$
|
3 |
-
$
|
4 |
-
if($quick_fix != '')
|
5 |
-
{
|
6 |
-
if($quick_fix == 1)
|
7 |
{
|
8 |
-
$
|
9 |
-
$social_widget_icon_array_order = serialize($social_widget_icon_array_order);
|
10 |
-
update_option('social_widget_icon_array_order', $social_widget_icon_array_order);
|
11 |
-
$fix_applied = 1;
|
12 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
}
|
14 |
$acx_installation_domain = $_SERVER['HTTP_HOST'];
|
15 |
$acx_installation_domain = str_replace("www.","",$acx_installation_domain);
|
1 |
<?php
|
2 |
+
$get_quickfix = "";
|
3 |
+
if(ISSET($_GET['quickfix']))
|
|
|
|
|
|
|
4 |
{
|
5 |
+
$get_quickfix = sanitize_text_field($_GET['quickfix']);
|
|
|
|
|
|
|
6 |
}
|
7 |
+
$fix_applied = 0;
|
8 |
+
if($get_quickfix != '')
|
9 |
+
{
|
10 |
+
if($get_quickfix == 1)
|
11 |
+
{
|
12 |
+
$social_widget_icon_array_order = array(0,1,2,3,4,5,6); // Number Of Services
|
13 |
+
$social_widget_icon_array_order = serialize($social_widget_icon_array_order);
|
14 |
+
update_option('social_widget_icon_array_order', $social_widget_icon_array_order);
|
15 |
+
$fix_applied = 1;
|
16 |
+
}
|
17 |
}
|
18 |
$acx_installation_domain = $_SERVER['HTTP_HOST'];
|
19 |
$acx_installation_domain = str_replace("www.","",$acx_installation_domain);
|