Version Description
- Facebook like count issue fixed
- Youtube saving issue when clicked on "Save all settings" - fixed now
Download this release
Release Info
Developer | socialdude |
Plugin | Social Media Share Buttons & Social Sharing Icons |
Version | 1.9.3 |
Comparing to | |
See all releases |
Code changes from version 1.9.2 to 1.9.3
- libs/controllers/sfsi_buttons_controller.php +6 -4
- libs/sfsi_install_uninstall.php +59 -32
- readme.txt +6 -2
- ultimate_social_media_icons.php +2 -2
- views/sfsi_option_view2.php +23 -14
- views/sfsi_option_view4.php +21 -10
libs/controllers/sfsi_buttons_controller.php
CHANGED
@@ -136,7 +136,10 @@ function sfsi_options_updater2()
|
|
136 |
'sfsi_youtube_pageUrl' => esc_url($sfsi_youtube_pageUrl),
|
137 |
'sfsi_youtube_page' => sanitize_text_field($sfsi_youtube_page),
|
138 |
'sfsi_youtube_follow' => sanitize_text_field($sfsi_youtube_follow),
|
|
|
139 |
'sfsi_ytube_user' => sanitize_text_field($sfsi_ytube_user),
|
|
|
|
|
140 |
/* pinterest options */
|
141 |
'sfsi_pinterest_page' => sanitize_text_field($sfsi_pinterest_page),
|
142 |
'sfsi_pinterest_pageUrl' => esc_url($sfsi_pinterest_pageUrl),
|
@@ -154,13 +157,12 @@ function sfsi_options_updater2()
|
|
154 |
'sfsi_linkedin_recommendProductId'=> intval($sfsi_linkedin_recommendProductId),
|
155 |
'sfsi_CustomIcon_links' => $sfsi_CustomIcon_links
|
156 |
);
|
157 |
-
|
158 |
$option4 = unserialize(get_option('sfsi_section4_options',false));
|
159 |
|
160 |
-
|
161 |
-
$option4['sfsi_youtubeusernameorid'] = sanitize_text_field($sfsi_youtubeusernameorid);
|
162 |
-
$option4['sfsi_ytube_chnlid'] = sfsi_sanitize_field($sfsi_ytube_chnlid);
|
163 |
update_option('sfsi_section4_options', serialize($option4));
|
|
|
164 |
|
165 |
header('Content-Type: application/json');
|
166 |
echo json_encode(array("success")); exit;
|
136 |
'sfsi_youtube_pageUrl' => esc_url($sfsi_youtube_pageUrl),
|
137 |
'sfsi_youtube_page' => sanitize_text_field($sfsi_youtube_page),
|
138 |
'sfsi_youtube_follow' => sanitize_text_field($sfsi_youtube_follow),
|
139 |
+
'sfsi_youtubeusernameorid' => sanitize_text_field($sfsi_youtubeusernameorid),
|
140 |
'sfsi_ytube_user' => sanitize_text_field($sfsi_ytube_user),
|
141 |
+
'sfsi_ytube_chnlid' => sanitize_text_field($sfsi_ytube_chnlid),
|
142 |
+
|
143 |
/* pinterest options */
|
144 |
'sfsi_pinterest_page' => sanitize_text_field($sfsi_pinterest_page),
|
145 |
'sfsi_pinterest_pageUrl' => esc_url($sfsi_pinterest_pageUrl),
|
157 |
'sfsi_linkedin_recommendProductId'=> intval($sfsi_linkedin_recommendProductId),
|
158 |
'sfsi_CustomIcon_links' => $sfsi_CustomIcon_links
|
159 |
);
|
160 |
+
|
161 |
$option4 = unserialize(get_option('sfsi_section4_options',false));
|
162 |
|
163 |
+
|
|
|
|
|
164 |
update_option('sfsi_section4_options', serialize($option4));
|
165 |
+
update_option('sfsi_section2_options', serialize($up_option2));
|
166 |
|
167 |
header('Content-Type: application/json');
|
168 |
echo json_encode(array("success")); exit;
|
libs/sfsi_install_uninstall.php
CHANGED
@@ -12,7 +12,7 @@ function sfsi_update_plugin()
|
|
12 |
}
|
13 |
|
14 |
//Install version
|
15 |
-
update_option("sfsi_pluginVersion", "1.
|
16 |
|
17 |
|
18 |
if(!get_option('sfsi_serverphpVersionnotification'))
|
@@ -135,7 +135,6 @@ function sfsi_update_plugin()
|
|
135 |
$option4['sfsi_instagram_clientid'] = '';
|
136 |
$option4['sfsi_instagram_appurl'] = '';
|
137 |
$option4['sfsi_instagram_token'] = '';
|
138 |
-
update_option('sfsi_section4_options', serialize($option4));
|
139 |
}
|
140 |
|
141 |
$option5 = unserialize(get_option('sfsi_section5_options',false));
|
@@ -144,6 +143,32 @@ function sfsi_update_plugin()
|
|
144 |
$option5['sfsi_custom_social_hide'] = 'no';
|
145 |
update_option('sfsi_section5_options', serialize($option5));
|
146 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
}
|
148 |
function sfsi_activate_plugin()
|
149 |
{
|
@@ -190,39 +215,41 @@ function sfsi_activate_plugin()
|
|
190 |
|
191 |
/* Links and icons options */
|
192 |
$options2=array('sfsi_rss_url'=>sfsi_get_bloginfo('rss2_url'),
|
193 |
-
'sfsi_rss_icons'=>'email',
|
194 |
-
'sfsi_email_url'=>$sffeeds->redirect_url,
|
195 |
-
'sfsi_facebookPage_option'=>'no',
|
196 |
-
'sfsi_facebookPage_url'=>'',
|
197 |
-
'sfsi_facebookLike_option'=>'yes',
|
198 |
-
'sfsi_facebookShare_option'=>'yes',
|
199 |
-
'sfsi_twitter_followme'=>'no',
|
200 |
'sfsi_twitter_followUserName'=>'',
|
201 |
-
'sfsi_twitter_aboutPage'=>'yes',
|
202 |
-
'sfsi_twitter_page'=>'no',
|
203 |
-
'sfsi_twitter_pageURL'=>'',
|
204 |
-
'sfsi_twitter_aboutPageText'=>'Hey, check out this cool site I found: www.yourname.com #Topic via@my_twitter_name',
|
205 |
-
'sfsi_google_page'=>'no',
|
206 |
-
'sfsi_google_pageURL'=>'',
|
207 |
-
'sfsi_googleLike_option'=>'yes',
|
208 |
-
'sfsi_googleShare_option'=>'yes',
|
209 |
-
'sfsi_youtube_pageUrl'=>'',
|
210 |
-
'sfsi_youtube_page'=>'no',
|
211 |
-
'
|
212 |
-
'
|
213 |
-
'
|
214 |
-
'
|
215 |
-
'
|
216 |
-
'
|
217 |
-
'
|
218 |
-
'
|
219 |
-
'
|
|
|
|
|
220 |
'sfsi_linkedin_followCompany'=>'',
|
221 |
-
'sfsi_linkedin_SharePage'=>'yes',
|
222 |
-
'sfsi_linkedin_recommendBusines'=>'no',
|
223 |
-
'sfsi_linkedin_recommendCompany'=>'',
|
224 |
'sfsi_linkedin_recommendProductId'=>'',
|
225 |
-
'sfsi_CustomIcon_links'=>''
|
226 |
);
|
227 |
add_option('sfsi_section2_options', serialize($options2));
|
228 |
|
12 |
}
|
13 |
|
14 |
//Install version
|
15 |
+
update_option("sfsi_pluginVersion", "1.93");
|
16 |
|
17 |
|
18 |
if(!get_option('sfsi_serverphpVersionnotification'))
|
135 |
$option4['sfsi_instagram_clientid'] = '';
|
136 |
$option4['sfsi_instagram_appurl'] = '';
|
137 |
$option4['sfsi_instagram_token'] = '';
|
|
|
138 |
}
|
139 |
|
140 |
$option5 = unserialize(get_option('sfsi_section5_options',false));
|
143 |
$option5['sfsi_custom_social_hide'] = 'no';
|
144 |
update_option('sfsi_section5_options', serialize($option5));
|
145 |
}
|
146 |
+
|
147 |
+
$option2 = unserialize(get_option('sfsi_section2_options',false));
|
148 |
+
if(isset($option2) && !empty($option2))
|
149 |
+
{
|
150 |
+
if(!isset($option2['sfsi_youtubeusernameorid'])){
|
151 |
+
|
152 |
+
$option2['sfsi_youtubeusernameorid'] = '';
|
153 |
+
|
154 |
+
if(isset($option4['sfsi_youtubeusernameorid']) && !empty($option4['sfsi_youtubeusernameorid'])){
|
155 |
+
$option2['sfsi_youtubeusernameorid'] = $option4['sfsi_youtubeusernameorid'];
|
156 |
+
}
|
157 |
+
}
|
158 |
+
|
159 |
+
if(!isset($option2['sfsi_ytube_chnlid'])){
|
160 |
+
|
161 |
+
$option2['sfsi_ytube_chnlid'] = '';
|
162 |
+
|
163 |
+
if(isset($option4['sfsi_ytube_chnlid']) && !empty($option4['sfsi_ytube_chnlid'])){
|
164 |
+
$option2['sfsi_ytube_chnlid'] = $option4['sfsi_ytube_chnlid'];
|
165 |
+
}
|
166 |
+
}
|
167 |
+
}
|
168 |
+
|
169 |
+
update_option('sfsi_section4_options', serialize($option4));
|
170 |
+
update_option('sfsi_section2_options', serialize($option2));
|
171 |
+
|
172 |
}
|
173 |
function sfsi_activate_plugin()
|
174 |
{
|
215 |
|
216 |
/* Links and icons options */
|
217 |
$options2=array('sfsi_rss_url'=>sfsi_get_bloginfo('rss2_url'),
|
218 |
+
'sfsi_rss_icons' =>'email',
|
219 |
+
'sfsi_email_url' =>$sffeeds->redirect_url,
|
220 |
+
'sfsi_facebookPage_option' =>'no',
|
221 |
+
'sfsi_facebookPage_url' =>'',
|
222 |
+
'sfsi_facebookLike_option' =>'yes',
|
223 |
+
'sfsi_facebookShare_option' =>'yes',
|
224 |
+
'sfsi_twitter_followme' =>'no',
|
225 |
'sfsi_twitter_followUserName'=>'',
|
226 |
+
'sfsi_twitter_aboutPage' =>'yes',
|
227 |
+
'sfsi_twitter_page' =>'no',
|
228 |
+
'sfsi_twitter_pageURL' =>'',
|
229 |
+
'sfsi_twitter_aboutPageText' =>'Hey, check out this cool site I found: www.yourname.com #Topic via@my_twitter_name',
|
230 |
+
'sfsi_google_page' =>'no',
|
231 |
+
'sfsi_google_pageURL' =>'',
|
232 |
+
'sfsi_googleLike_option' =>'yes',
|
233 |
+
'sfsi_googleShare_option' =>'yes',
|
234 |
+
'sfsi_youtube_pageUrl' =>'',
|
235 |
+
'sfsi_youtube_page' =>'no',
|
236 |
+
'sfsi_youtubeusernameorid' => '',
|
237 |
+
'sfsi_ytube_chnlid' => '',
|
238 |
+
'sfsi_youtube_follow' =>'no',
|
239 |
+
'sfsi_pinterest_page' =>'no',
|
240 |
+
'sfsi_pinterest_pageUrl' =>'',
|
241 |
+
'sfsi_pinterest_pingBlog' =>'',
|
242 |
+
'sfsi_instagram_page' =>'no',
|
243 |
+
'sfsi_instagram_pageUrl' =>'',
|
244 |
+
'sfsi_linkedin_page' =>'no',
|
245 |
+
'sfsi_linkedin_pageURL' =>'',
|
246 |
+
'sfsi_linkedin_follow' =>'no',
|
247 |
'sfsi_linkedin_followCompany'=>'',
|
248 |
+
'sfsi_linkedin_SharePage' =>'yes',
|
249 |
+
'sfsi_linkedin_recommendBusines' =>'no',
|
250 |
+
'sfsi_linkedin_recommendCompany' =>'',
|
251 |
'sfsi_linkedin_recommendProductId'=>'',
|
252 |
+
'sfsi_CustomIcon_links' =>''
|
253 |
);
|
254 |
add_option('sfsi_section2_options', serialize($options2));
|
255 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: socialdude
|
|
3 |
Tags: social media, share, buttons, social, icons, share icons, share buttons, sharing icons, sharing buttons, social share, sharing, social sharing
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 4.9.4
|
6 |
-
Stable tag: 1.9.
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -267,6 +267,10 @@ You cannot use the same plugin twice, however you can install both the USM as we
|
|
267 |
|
268 |
== Changelog ==
|
269 |
|
|
|
|
|
|
|
|
|
270 |
= 1.9.2 =
|
271 |
* Instagram followers count issue fixed
|
272 |
* Twitter count issue fixed
|
@@ -672,5 +676,5 @@ You cannot use the same plugin twice, however you can install both the USM as we
|
|
672 |
|
673 |
== Upgrade Notice ==
|
674 |
|
675 |
-
= 1.9.
|
676 |
Please upgrade
|
3 |
Tags: social media, share, buttons, social, icons, share icons, share buttons, sharing icons, sharing buttons, social share, sharing, social sharing
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 4.9.4
|
6 |
+
Stable tag: 1.9.3
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
267 |
|
268 |
== Changelog ==
|
269 |
|
270 |
+
= 1.9.3 =
|
271 |
+
* Facebook like count issue fixed
|
272 |
+
* Youtube saving issue when clicked on "Save all settings" - fixed now
|
273 |
+
|
274 |
= 1.9.2 =
|
275 |
* Instagram followers count issue fixed
|
276 |
* Twitter count issue fixed
|
676 |
|
677 |
== Upgrade Notice ==
|
678 |
|
679 |
+
= 1.9.3 =
|
680 |
Please upgrade
|
ultimate_social_media_icons.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://ultimatelysocial.com
|
|
5 |
Description: Easy to use and 100% FREE social media plugin which adds social media icons to your website with tons of customization features!.
|
6 |
Author: UltimatelySocial
|
7 |
Author URI: http://ultimatelysocial.com
|
8 |
-
Version: 1.9.
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
|
@@ -55,7 +55,7 @@ register_activation_hook(__FILE__, 'sfsi_activate_plugin' );
|
|
55 |
register_deactivation_hook(__FILE__, 'sfsi_deactivate_plugin');
|
56 |
register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
|
57 |
|
58 |
-
if(!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 1.
|
59 |
{
|
60 |
add_action("init", "sfsi_update_plugin");
|
61 |
}
|
5 |
Description: Easy to use and 100% FREE social media plugin which adds social media icons to your website with tons of customization features!.
|
6 |
Author: UltimatelySocial
|
7 |
Author URI: http://ultimatelysocial.com
|
8 |
+
Version: 1.9.3
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
|
55 |
register_deactivation_hook(__FILE__, 'sfsi_deactivate_plugin');
|
56 |
register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
|
57 |
|
58 |
+
if(!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 1.93)
|
59 |
{
|
60 |
add_action("init", "sfsi_update_plugin");
|
61 |
}
|
views/sfsi_option_view2.php
CHANGED
@@ -70,9 +70,6 @@ $option2['sfsi_youtube_page'] = (isset($option2['sfsi_youtube_page']))
|
|
70 |
$option2['sfsi_youtube_follow'] = (isset($option2['sfsi_youtube_follow']))
|
71 |
? sanitize_text_field($option2['sfsi_youtube_follow'])
|
72 |
: '';
|
73 |
-
$option2['sfsi_ytube_user'] = (isset($option2['sfsi_ytube_user']))
|
74 |
-
? sanitize_text_field($option2['sfsi_ytube_user'])
|
75 |
-
: '';
|
76 |
|
77 |
$option2['sfsi_pinterest_page'] = (isset($option2['sfsi_pinterest_page']))
|
78 |
? sanitize_text_field($option2['sfsi_pinterest_page'])
|
@@ -113,13 +110,25 @@ $option2['sfsi_linkedin_recommendProductId'] = (isset($option2['sfsi_linkedin_r
|
|
113 |
? intval($option2['sfsi_linkedin_recommendProductId'])
|
114 |
: '';
|
115 |
|
116 |
-
$
|
117 |
-
|
118 |
-
|
119 |
-
$
|
120 |
-
|
121 |
-
|
|
|
|
|
|
|
|
|
|
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
?>
|
124 |
|
125 |
<!-- Section 2 "What do you want the icons to do?" main div Start -->
|
@@ -292,23 +301,23 @@ $option4['sfsi_ytube_chnlid'] = (isset($option2['sfsi_ytube_chnlid']))
|
|
292 |
<!--Adding Code for Channel Id and Channel Name-->
|
293 |
<div class="cstmutbewpr">
|
294 |
<ul class="enough_waffling">
|
295 |
-
<li onclick="showhideutube(this);"><input name="sfsi_youtubeusernameorid" <?php echo ($
|
296 |
-
<li onclick="showhideutube(this);"><input name="sfsi_youtubeusernameorid" <?php echo ($
|
297 |
</ul>
|
298 |
<div class="cstmutbtxtwpr">
|
299 |
<?php
|
300 |
-
$sfsi_youtubeusernameorid = $
|
301 |
?>
|
302 |
<div class="cstmutbchnlnmewpr" <?php if($sfsi_youtubeusernameorid != 'id'){echo 'style="display: block;"';}?>>
|
303 |
<p class="extra_pp"><label>UserName:</label><input name="sfsi_ytube_user" type="url" value="<?php echo (isset($option2['sfsi_ytube_user']) && $option2['sfsi_ytube_user']!='') ? $option2['sfsi_ytube_user'] : '' ;?>" placeholder="Youtube username" class="add" /></p>
|
304 |
<div class="utbe_instruction">
|
305 |
-
To find your
|
306 |
</div>
|
307 |
</div>
|
308 |
<div class="cstmutbchnlidwpr" <?php if($sfsi_youtubeusernameorid == 'id'){echo 'style="display: block;"';}?>>
|
309 |
<p class="extra_pp"><label>ChannelId:</label><input name="sfsi_ytube_chnlid" type="url" value="<?php echo (isset($option4['sfsi_ytube_chnlid']) && $option4['sfsi_ytube_chnlid']!='') ? $option4['sfsi_ytube_chnlid'] : '' ;?>" placeholder="youtube_channel_id" class="add" /></p>
|
310 |
<div class="utbe_instruction">
|
311 |
-
To find your Channel
|
312 |
</div>
|
313 |
</div>
|
314 |
</div>
|
70 |
$option2['sfsi_youtube_follow'] = (isset($option2['sfsi_youtube_follow']))
|
71 |
? sanitize_text_field($option2['sfsi_youtube_follow'])
|
72 |
: '';
|
|
|
|
|
|
|
73 |
|
74 |
$option2['sfsi_pinterest_page'] = (isset($option2['sfsi_pinterest_page']))
|
75 |
? sanitize_text_field($option2['sfsi_pinterest_page'])
|
110 |
? intval($option2['sfsi_linkedin_recommendProductId'])
|
111 |
: '';
|
112 |
|
113 |
+
if("name"== $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeusernameorid']) && !empty($option2['sfsi_youtubeusernameorid'])){
|
114 |
+
|
115 |
+
if(isset($option2['sfsi_ytube_user']) && !empty($option2['sfsi_ytube_user'])){
|
116 |
+
$option2['sfsi_ytube_user'] = sfsi_sanitize_field($option2['sfsi_ytube_user']);
|
117 |
+
}
|
118 |
+
else{
|
119 |
+
$option2['sfsi_ytube_user'] = isset($option4['sfsi_youtube_user']) && !empty($option4['sfsi_youtube_user']) ? $option4['sfsi_youtube_user']: "";
|
120 |
+
}
|
121 |
+
}
|
122 |
+
|
123 |
+
if("id"== $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeusernameorid']) && !empty($option2['sfsi_youtubeusernameorid'])){
|
124 |
|
125 |
+
if(isset($option2['sfsi_ytube_chnlid']) && !empty($option2['sfsi_ytube_chnlid'])){
|
126 |
+
$option2['sfsi_ytube_chnlid'] = sfsi_sanitize_field($option2['sfsi_ytube_chnlid']);
|
127 |
+
}
|
128 |
+
else{
|
129 |
+
$option2['sfsi_ytube_chnlid'] = isset($option4['sfsi_youtube_channelId']) && !empty($option4['sfsi_youtube_channelId']) ? $option4['sfsi_youtube_channelId']: "";
|
130 |
+
}
|
131 |
+
}
|
132 |
?>
|
133 |
|
134 |
<!-- Section 2 "What do you want the icons to do?" main div Start -->
|
301 |
<!--Adding Code for Channel Id and Channel Name-->
|
302 |
<div class="cstmutbewpr">
|
303 |
<ul class="enough_waffling">
|
304 |
+
<li onclick="showhideutube(this);"><input name="sfsi_youtubeusernameorid" <?php echo ($option2['sfsi_youtubeusernameorid']=='name') ? 'checked="true"' : '' ;?> type="radio" value="name" class="styled" /><label>User Name</label></li>
|
305 |
+
<li onclick="showhideutube(this);"><input name="sfsi_youtubeusernameorid" <?php echo ($option2['sfsi_youtubeusernameorid']=='id') ? 'checked="true"' : '' ;?> type="radio" value="id" class="styled" /><label>Channel Id</label></li>
|
306 |
</ul>
|
307 |
<div class="cstmutbtxtwpr">
|
308 |
<?php
|
309 |
+
$sfsi_youtubeusernameorid = $option2['sfsi_youtubeusernameorid'];
|
310 |
?>
|
311 |
<div class="cstmutbchnlnmewpr" <?php if($sfsi_youtubeusernameorid != 'id'){echo 'style="display: block;"';}?>>
|
312 |
<p class="extra_pp"><label>UserName:</label><input name="sfsi_ytube_user" type="url" value="<?php echo (isset($option2['sfsi_ytube_user']) && $option2['sfsi_ytube_user']!='') ? $option2['sfsi_ytube_user'] : '' ;?>" placeholder="Youtube username" class="add" /></p>
|
313 |
<div class="utbe_instruction">
|
314 |
+
To find your User ID/Channel ID, login to your YouTube account, click the user icon at the top right corner and select "Settings", then click "Advanced" under "Name" and you will find both your "Channel ID" and "User ID" under "Account Information".
|
315 |
</div>
|
316 |
</div>
|
317 |
<div class="cstmutbchnlidwpr" <?php if($sfsi_youtubeusernameorid == 'id'){echo 'style="display: block;"';}?>>
|
318 |
<p class="extra_pp"><label>ChannelId:</label><input name="sfsi_ytube_chnlid" type="url" value="<?php echo (isset($option4['sfsi_ytube_chnlid']) && $option4['sfsi_ytube_chnlid']!='') ? $option4['sfsi_ytube_chnlid'] : '' ;?>" placeholder="youtube_channel_id" class="add" /></p>
|
319 |
<div class="utbe_instruction">
|
320 |
+
To find your User ID/Channel ID, login to your YouTube account, click the user icon at the top right corner and select "Settings", then click "Advanced" under "Name" and you will find both your "Channel ID" and "User ID" under "Account Information".
|
321 |
</div>
|
322 |
</div>
|
323 |
</div>
|
views/sfsi_option_view4.php
CHANGED
@@ -73,19 +73,12 @@ $option4['sfsi_youtube_countsDisplay'] = (isset($option4['sfsi_youtube_countsD
|
|
73 |
$option4['sfsi_youtube_countsFrom'] = (isset($option4['sfsi_youtube_countsFrom']))
|
74 |
? sanitize_text_field($option4['sfsi_youtube_countsFrom'])
|
75 |
: '';
|
76 |
-
$option4['sfsi_youtubeusernameorid'] = (isset($option4['sfsi_youtubeusernameorid']))
|
77 |
-
|
78 |
-
|
79 |
$option4['sfsi_youtube_manualCounts'] = (isset($option4['sfsi_youtube_manualCounts']))
|
80 |
? intval($option4['sfsi_youtube_manualCounts'])
|
81 |
: '';
|
82 |
-
$option4['sfsi_youtube_user'] = (isset($option4['sfsi_youtube_user']))
|
83 |
-
? sfsi_sanitize_field($option4['sfsi_youtube_user'])
|
84 |
-
: '';
|
85 |
-
$option4['sfsi_youtube_channelId'] = (isset($option4['sfsi_youtube_channelId']))
|
86 |
-
? sfsi_sanitize_field($option4['sfsi_youtube_channelId'])
|
87 |
-
: '';
|
88 |
-
|
89 |
|
90 |
$option4['sfsi_instagram_manualCounts'] = (isset($option4['sfsi_instagram_manualCounts']))
|
91 |
? intval($option4['sfsi_instagram_manualCounts'])
|
@@ -120,6 +113,24 @@ $option4['sfsi_linkedIn_manualCounts'] = (isset($option4['sfsi_linkedIn_manual
|
|
120 |
? intval($option4['sfsi_linkedIn_manualCounts'])
|
121 |
: '';
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
/* fetch counts for admin sections */
|
124 |
$counts = sfsi_getCounts();
|
125 |
|
73 |
$option4['sfsi_youtube_countsFrom'] = (isset($option4['sfsi_youtube_countsFrom']))
|
74 |
? sanitize_text_field($option4['sfsi_youtube_countsFrom'])
|
75 |
: '';
|
76 |
+
// $option4['sfsi_youtubeusernameorid'] = (isset($option4['sfsi_youtubeusernameorid']))
|
77 |
+
// ? sanitize_text_field($option4['sfsi_youtubeusernameorid'])
|
78 |
+
// : '';
|
79 |
$option4['sfsi_youtube_manualCounts'] = (isset($option4['sfsi_youtube_manualCounts']))
|
80 |
? intval($option4['sfsi_youtube_manualCounts'])
|
81 |
: '';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
|
83 |
$option4['sfsi_instagram_manualCounts'] = (isset($option4['sfsi_instagram_manualCounts']))
|
84 |
? intval($option4['sfsi_instagram_manualCounts'])
|
113 |
? intval($option4['sfsi_linkedIn_manualCounts'])
|
114 |
: '';
|
115 |
|
116 |
+
if(isset($option4['sfsi_youtube_user']) && !empty($option4['sfsi_youtube_user'])){
|
117 |
+
$option4['sfsi_youtube_user'] = sfsi_sanitize_field($option4['sfsi_youtube_user']);
|
118 |
+
}
|
119 |
+
else{
|
120 |
+
if("name"== $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeusernameorid']) && !empty($option2['sfsi_youtubeusernameorid'])){
|
121 |
+
$option4['sfsi_youtube_user'] = $option2['sfsi_ytube_user'];
|
122 |
+
}
|
123 |
+
}
|
124 |
+
|
125 |
+
if(isset($option4['sfsi_youtube_channelId']) && !empty($option4['sfsi_youtube_channelId'])){
|
126 |
+
$option4['sfsi_youtube_channelId'] = sfsi_sanitize_field($option4['sfsi_youtube_channelId']);
|
127 |
+
}
|
128 |
+
else{
|
129 |
+
if("id"== $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeusernameorid']) && !empty($option2['sfsi_youtubeusernameorid'])){
|
130 |
+
$option4['sfsi_youtube_channelId'] = $option2['sfsi_ytube_chnlid'];
|
131 |
+
}
|
132 |
+
}
|
133 |
+
|
134 |
/* fetch counts for admin sections */
|
135 |
$counts = sfsi_getCounts();
|
136 |
|