Social Media Share Buttons & Social Sharing Icons - Version 2.3.8

Version Description

  • Update: Fixed text in theme banner.
  • Update: Fixed follow icon and subscription box when Curl is disabled.
  • Update: Fixed cURL errors.
Download this release

Release Info

Developer socialdude
Plugin Icon 128x128 Social Media Share Buttons & Social Sharing Icons
Version 2.3.8
Comparing to
See all releases

Code changes from version 2.3.7 to 2.3.8

analyst/sdk_resolver.php CHANGED
@@ -1,79 +1,79 @@
1
- <?php
2
-
3
- if (!function_exists('analyst_resolve_sdk')) {
4
-
5
- /**
6
- * Resolve supported sdk versions and load latest supported one
7
- * also bootstrap sdk with autoloader
8
- *
9
- * @since 1.1.3
10
- *
11
- * @param null $thisPluginPath
12
- * @return void
13
- * @throws Exception
14
- */
15
- function analyst_resolve_sdk($thisPluginPath = null) {
16
- static $loaded = false;
17
-
18
- // Exit if we already resolved SDK
19
- if ($loaded) return;
20
-
21
- $plugins = get_option('active_plugins');
22
-
23
- if ($thisPluginPath) {
24
- array_push($plugins, plugin_basename($thisPluginPath));
25
- }
26
-
27
- $pluginsFolder = WP_PLUGIN_DIR;
28
-
29
- $possibleSDKs = array_map(function ($path) use ($pluginsFolder) {
30
- $sdkFolder = sprintf('%s/%s/analyst/', $pluginsFolder, dirname($path));
31
-
32
- $sdkFolder = str_replace('\\', '/', $sdkFolder);
33
-
34
- $versionPath = $sdkFolder . 'version.php';
35
-
36
- if (file_exists($versionPath)) {
37
- return require $versionPath;
38
- }
39
-
40
- return false;
41
- }, $plugins);
42
-
43
- global $wp_version;
44
-
45
- // Filter out plugins which has no SDK
46
- $SDKs = array_filter($possibleSDKs, function ($s) {return is_array($s);});
47
-
48
- // Filter SDKs which is supported by PHP and WP
49
- $supported = array_values(array_filter($SDKs, function ($sdk) use($wp_version) {
50
- $phpSupported = version_compare(PHP_VERSION, $sdk['php']) >= 0;
51
- $wpSupported = version_compare($wp_version, $sdk['wp']) >= 0;
52
-
53
- return $phpSupported && $wpSupported;
54
- }));
55
-
56
- // Sort SDK by version in descending order
57
- uasort($supported, function ($x, $y) {
58
- return version_compare($y['sdk'], $x['sdk']);
59
- });
60
-
61
- // Reset sorted values keys
62
- $supported = array_values($supported);
63
-
64
- if (!isset($supported[0])) {
65
- throw new Exception('There is no SDK which is support current PHP version and WP version');
66
- }
67
-
68
- // Autoload files for supported SDK
69
- $autoloaderPath = str_replace(
70
- '\\',
71
- '/',
72
- sprintf('%s/autoload.php', $supported[0]['path'])
73
- );
74
-
75
- require_once $autoloaderPath;
76
-
77
- $loaded = true;
78
- }
79
- }
1
+ <?php
2
+
3
+ if (!function_exists('analyst_resolve_sdk')) {
4
+
5
+ /**
6
+ * Resolve supported sdk versions and load latest supported one
7
+ * also bootstrap sdk with autoloader
8
+ *
9
+ * @since 1.1.3
10
+ *
11
+ * @param null $thisPluginPath
12
+ * @return void
13
+ * @throws Exception
14
+ */
15
+ function analyst_resolve_sdk($thisPluginPath = null) {
16
+ static $loaded = false;
17
+
18
+ // Exit if we already resolved SDK
19
+ if ($loaded) return;
20
+
21
+ $plugins = get_option('active_plugins');
22
+
23
+ if ($thisPluginPath) {
24
+ array_push($plugins, plugin_basename($thisPluginPath));
25
+ }
26
+
27
+ $pluginsFolder = WP_PLUGIN_DIR;
28
+
29
+ $possibleSDKs = array_map(function ($path) use ($pluginsFolder) {
30
+ $sdkFolder = sprintf('%s/%s/analyst/', $pluginsFolder, dirname($path));
31
+
32
+ $sdkFolder = str_replace('\\', '/', $sdkFolder);
33
+
34
+ $versionPath = $sdkFolder . 'version.php';
35
+
36
+ if (file_exists($versionPath)) {
37
+ return require $versionPath;
38
+ }
39
+
40
+ return false;
41
+ }, $plugins);
42
+
43
+ global $wp_version;
44
+
45
+ // Filter out plugins which has no SDK
46
+ $SDKs = array_filter($possibleSDKs, function ($s) {return is_array($s);});
47
+
48
+ // Filter SDKs which is supported by PHP and WP
49
+ $supported = array_values(array_filter($SDKs, function ($sdk) use($wp_version) {
50
+ $phpSupported = version_compare(PHP_VERSION, $sdk['php']) >= 0;
51
+ $wpSupported = version_compare($wp_version, $sdk['wp']) >= 0;
52
+
53
+ return $phpSupported && $wpSupported;
54
+ }));
55
+
56
+ // Sort SDK by version in descending order
57
+ uasort($supported, function ($x, $y) {
58
+ return version_compare($y['sdk'], $x['sdk']);
59
+ });
60
+
61
+ // Reset sorted values keys
62
+ $supported = array_values($supported);
63
+
64
+ if (!isset($supported[0])) {
65
+ throw new Exception('There is no SDK which is support current PHP version and WP version');
66
+ }
67
+
68
+ // Autoload files for supported SDK
69
+ $autoloaderPath = str_replace(
70
+ '\\',
71
+ '/',
72
+ sprintf('%s/autoload.php', $supported[0]['path'])
73
+ );
74
+
75
+ require_once $autoloaderPath;
76
+
77
+ $loaded = true;
78
+ }
79
+ }
analyst/src/Account/Account.php CHANGED
@@ -1,604 +1,604 @@
1
- <?php
2
-
3
- namespace Account;
4
-
5
- use Analyst\Analyst;
6
- use Analyst\ApiRequestor;
7
- use Analyst\Cache\DatabaseCache;
8
- use Analyst\Collector;
9
- use Analyst\Http\Requests\ActivateRequest;
10
- use Analyst\Http\Requests\DeactivateRequest;
11
- use Analyst\Http\Requests\InstallRequest;
12
- use Analyst\Http\Requests\OptInRequest;
13
- use Analyst\Http\Requests\OptOutRequest;
14
- use Analyst\Http\Requests\UninstallRequest;
15
- use Analyst\Notices\Notice;
16
- use Analyst\Notices\NoticeFactory;
17
- use Analyst\Contracts\TrackerContract;
18
- use Analyst\Contracts\RequestorContract;
19
-
20
- /**
21
- * Class Account
22
- *
23
- * This is plugin's account object
24
- */
25
- class Account implements TrackerContract
26
- {
27
- /**
28
- * Account id
29
- *
30
- * @var string
31
- */
32
- protected $id;
33
-
34
- /**
35
- * Basename of plugin
36
- *
37
- * @var string
38
- */
39
- protected $path;
40
-
41
- /**
42
- * Whether plugin is active or not
43
- *
44
- * @var bool
45
- */
46
- protected $isInstalled = false;
47
-
48
- /**
49
- * Is user sign in for data tracking
50
- *
51
- * @var bool
52
- */
53
- protected $isOptedIn = false;
54
-
55
- /**
56
- * Is user accepted permissions grant
57
- * for collection site data
58
- *
59
- * @var bool
60
- */
61
- protected $isSigned = false;
62
-
63
- /**
64
- * Is user ever resolved install modal window?
65
- *
66
- * @var bool
67
- */
68
- protected $isInstallResolved = false;
69
-
70
- /**
71
- * Public secret code
72
- *
73
- * @var string
74
- */
75
- protected $clientSecret;
76
-
77
- /**
78
- * @var AccountData
79
- */
80
- protected $data;
81
-
82
- /**
83
- * Base plugin path
84
- *
85
- * @var string
86
- */
87
- protected $basePluginPath;
88
-
89
- /**
90
- * @var RequestorContract
91
- */
92
- protected $requestor;
93
-
94
- /**
95
- * @var Collector
96
- */
97
- protected $collector;
98
-
99
- /**
100
- * Account constructor.
101
- * @param $id
102
- * @param $secret
103
- * @param $baseDir
104
- */
105
- public function __construct($id, $secret, $baseDir)
106
- {
107
- $this->id = $id;
108
- $this->clientSecret = $secret;
109
-
110
- $this->path = $baseDir;
111
-
112
- $this->basePluginPath = plugin_basename($baseDir);
113
- }
114
-
115
- /**
116
- * @return string
117
- */
118
- public function getPath()
119
- {
120
- return $this->path;
121
- }
122
-
123
- /**
124
- * @param string $path
125
- */
126
- public function setPath($path)
127
- {
128
- $this->data->setPath($path);
129
-
130
- $this->path = $path;
131
- }
132
-
133
- /**
134
- * @return bool
135
- */
136
- public function isOptedIn()
137
- {
138
- return $this->isOptedIn;
139
- }
140
-
141
- /**
142
- * @param bool $isOptedIn
143
- */
144
- public function setIsOptedIn($isOptedIn)
145
- {
146
- $this->data->setIsOptedIn($isOptedIn);
147
-
148
- $this->isOptedIn = $isOptedIn;
149
- }
150
-
151
- /**
152
- * Whether plugin is active
153
- *
154
- * @return bool
155
- */
156
- public function isActive()
157
- {
158
- return is_plugin_active($this->path);
159
- }
160
-
161
- /**
162
- * @param string $id
163
- */
164
- public function setId($id)
165
- {
166
- $this->id = $id;
167
- }
168
-
169
- /**
170
- * @return string
171
- */
172
- public function getId()
173
- {
174
- return $this->id;
175
- }
176
-
177
- /**
178
- * @return bool
179
- */
180
- public function isInstalled()
181
- {
182
- return $this->isInstalled;
183
- }
184
-
185
- /**
186
- * @param bool $isInstalled
187
- */
188
- public function setIsInstalled($isInstalled)
189
- {
190
- $this->data->setIsInstalled($isInstalled);
191
-
192
- $this->isInstalled = $isInstalled;
193
- }
194
-
195
- /**
196
- * Should register activation and deactivation
197
- * event hooks
198
- *
199
- * @return void
200
- */
201
- public function registerHooks()
202
- {
203
- register_activation_hook($this->basePluginPath, [&$this, 'onActivePluginListener']);
204
- register_uninstall_hook($this->basePluginPath, ['Account\Account', 'onUninstallPluginListener']);
205
-
206
- $this->addFilter('plugin_action_links', [&$this, 'onRenderActionLinksHook']);
207
-
208
- $this->addAjax('analyst_opt_in', [&$this, 'onOptInListener']);
209
- $this->addAjax('analyst_opt_out', [&$this, 'onOptOutListener']);
210
- $this->addAjax('analyst_plugin_deactivate', [&$this, 'onDeactivatePluginListener']);
211
- $this->addAjax('analyst_install', [&$this, 'onInstallListener']);
212
- $this->addAjax('analyst_skip_install', [&$this, 'onSkipInstallListener']);
213
- $this->addAjax('analyst_install_verified', [&$this, 'onInstallVerifiedListener']);
214
- }
215
-
216
- /**
217
- * Will fire when admin activates plugin
218
- *
219
- * @return void
220
- */
221
- public function onActivePluginListener()
222
- {
223
- if (!$this->isInstallResolved()) {
224
- DatabaseCache::getInstance()->put('plugin_to_install', $this->id);
225
- }
226
-
227
- if (!$this->isAllowingLogging()) return;
228
-
229
- ActivateRequest::make($this->collector, $this->id, $this->path)
230
- ->execute($this->requestor);
231
-
232
- $this->setIsInstalled(true);
233
-
234
- AccountDataFactory::syncData();
235
- }
236
-
237
- /**
238
- * Will fire when admin deactivates plugin
239
- *
240
- * @return void
241
- */
242
- public function onDeactivatePluginListener()
243
- {
244
- if (!$this->isAllowingLogging()) return;
245
-
246
- $question = isset($_POST['question']) ? stripslashes($_POST['question']) : null;
247
- $reason = isset($_POST['reason']) ? stripslashes($_POST['reason']) : null;
248
-
249
- $response = DeactivateRequest::make($this->collector, $this->id, $this->path, $question, $reason)
250
- ->execute($this->requestor);
251
-
252
- // Exit if request failed
253
- if (!$response->isSuccess()) {
254
- wp_send_json_error($response->body);
255
- }
256
-
257
- $this->setIsInstalled(false);
258
-
259
- AccountDataFactory::syncData();
260
-
261
- wp_send_json_success();
262
- }
263
-
264
- /**
265
- * Will fire when user opted in
266
- *
267
- * @return void
268
- */
269
- public function onOptInListener()
270
- {
271
- $response = OptInRequest::make($this->collector, $this->id, $this->path)->execute($this->requestor);
272
-
273
- // Exit if request failed
274
- if (!$response->isSuccess()) {
275
- wp_send_json_error($response->body);
276
- }
277
-
278
- $this->setIsOptedIn(true);
279
-
280
- AccountDataFactory::syncData();
281
-
282
- wp_die();
283
- }
284
-
285
- /**
286
- * Will fire when user opted out
287
- *
288
- * @return void
289
- */
290
- public function onOptOutListener()
291
- {
292
- $response = OptOutRequest::make($this->collector, $this->id, $this->path)->execute($this->requestor);
293
-
294
- // Exit if request failed
295
- if (!$response->isSuccess()) {
296
- wp_send_json_error($response->body);
297
- }
298
-
299
- $this->setIsOptedIn(false);
300
-
301
- AccountDataFactory::syncData();
302
-
303
- wp_send_json_success();
304
- }
305
-
306
- /**
307
- * Will fire when user accept opt-in
308
- * at first time
309
- *
310
- * @return void
311
- */
312
- public function onInstallListener()
313
- {
314
- $cache = DatabaseCache::getInstance();
315
-
316
- // Set flag to true which indicates that install is resolved
317
- // also remove install plugin id from cache
318
- $this->setIsInstallResolved(true);
319
- $cache->delete('plugin_to_install');
320
-
321
- $response = InstallRequest::make($this->collector, $this->id, $this->path)->execute($this->requestor);
322
-
323
- // Exit if request failed
324
- if (!$response->isSuccess()) {
325
- wp_send_json_error($response->body);
326
- }
327
-
328
- $this->setIsSigned(true);
329
-
330
- $this->setIsOptedIn(true);
331
-
332
- $factory = NoticeFactory::instance();
333
-
334
- $message = sprintf('Please confirm your email by clicking on the link we sent to %s. This makes sure you’re not a bot.', $this->collector->getGeneralEmailAddress());
335
-
336
- $notificationId = uniqid();
337
-
338
- $notice = Notice::make(
339
- $notificationId,
340
- $this->getId(),
341
- $message,
342
- $this->collector->getPluginName($this->path)
343
- );
344
-
345
- $factory->addNotice($notice);
346
-
347
- AccountDataFactory::syncData();
348
-
349
- // Set email confirmation notification id to cache
350
- // se we can extract and remove it when user confirmed email
351
- $cache->put(
352
- sprintf('account_email_confirmation_%s', $this->getId()),
353
- $notificationId
354
- );
355
-
356
- wp_send_json_success();
357
- }
358
-
359
- /**
360
- * Will fire when user skipped installation
361
- *
362
- * @return void
363
- */
364
- public function onSkipInstallListener()
365
- {
366
- // Set flag to true which indicates that install is resolved
367
- // also remove install plugin id from cache
368
- $this->setIsInstallResolved(true);
369
- DatabaseCache::getInstance()->delete('plugin_to_install');
370
- }
371
-
372
- /**
373
- * Will fire when user delete plugin through admin panel.
374
- * This action will happen if admin at least once
375
- * activated the plugin.
376
- *
377
- * @return void
378
- * @throws \Exception
379
- */
380
- public static function onUninstallPluginListener()
381
- {
382
- $factory = AccountDataFactory::instance();
383
-
384
- $pluginFile = substr(current_filter(), strlen( 'uninstall_' ));
385
-
386
- $account = $factory->getAccountDataByBasePath($pluginFile);
387
-
388
- // If account somehow is not found, exit the execution
389
- if (!$account) return;
390
-
391
- $analyst = Analyst::getInstance();
392
-
393
- $collector = new Collector($analyst);
394
-
395
- $requestor = new ApiRequestor($account->getId(), $account->getSecret(), $analyst->getApiBase());
396
-
397
- // Just send request to log uninstall event not caring about response
398
- UninstallRequest::make($collector, $account->getId(), $account->getPath())->execute($requestor);
399
-
400
- $factory->sync();
401
- }
402
-
403
- /**
404
- * Fires when used verified his account
405
- */
406
- public function onInstallVerifiedListener()
407
- {
408
- $factory = NoticeFactory::instance();
409
-
410
- $notice = Notice::make(
411
- uniqid(),
412
- $this->getId(),
413
- 'Thank you for confirming your email.',
414
- $this->collector->getPluginName($this->path)
415
- );
416
-
417
- $factory->addNotice($notice);
418
-
419
- // Remove confirmation notification
420
- $confirmationNotificationId = DatabaseCache::getInstance()->pop(sprintf('account_email_confirmation_%s', $this->getId()));
421
- $factory->remove($confirmationNotificationId);
422
-
423
- AccountDataFactory::syncData();
424
-
425
- wp_send_json_success();
426
- }
427
-
428
- /**
429
- * Will fire when wp renders plugin
430
- * action buttons
431
- *
432
- * @param $defaultLinks
433
- * @return array
434
- */
435
- public function onRenderActionLinksHook($defaultLinks)
436
- {
437
- $customLinks = [];
438
-
439
- $customLinks[] = $this->isOptedIn()
440
- ? '<a class="analyst-action-opt analyst-opt-out" analyst-plugin-id="' . $this->getId() . '" analyst-plugin-signed="' . (int) $this->isSigned() . '">Opt Out</a>'
441
- : '<a class="analyst-action-opt analyst-opt-in" analyst-plugin-id="' . $this->getId() . '" analyst-plugin-signed="' . (int) $this->isSigned() . '">Opt In</a>';
442
-
443
- // Append anchor to find specific deactivation link
444
- if (isset($defaultLinks['deactivate'])) {
445
- $defaultLinks['deactivate'] .= '<span analyst-plugin-id="' . $this->getId() . '" analyst-plugin-opted-in="' . (int) $this->isOptedIn() . '"></span>';
446
- }
447
-
448
- return array_merge($customLinks, $defaultLinks);
449
- }
450
-
451
- /**
452
- * @return AccountData
453
- */
454
- public function getData()
455
- {
456
- return $this->data;
457
- }
458
-
459
- /**
460
- * @param AccountData $data
461
- */
462
- public function setData(AccountData $data)
463
- {
464
- $this->data = $data;
465
-
466
- $this->setIsOptedIn($data->isOptedIn());
467
- $this->setIsInstalled($data->isInstalled());
468
- $this->setIsSigned($data->isSigned());
469
- $this->setIsInstallResolved($data->isInstallResolved());
470
- }
471
-
472
- /**
473
- * Resolves valid action name
474
- * based on client id
475
- *
476
- * @param $action
477
- * @return string
478
- */
479
- private function resolveActionName($action)
480
- {
481
- return sprintf('%s_%s', $action, $this->id);
482
- }
483
-
484
- /**
485
- * Register action for current plugin
486
- *
487
- * @param $action
488
- * @param $callback
489
- */
490
- private function addFilter($action, $callback)
491
- {
492
- $validAction = sprintf('%s_%s', $action, $this->basePluginPath);
493
-
494
- add_filter($validAction, $callback, 10);
495
- }
496
-
497
- /**
498
- * Add ajax action for current plugin
499
- *
500
- * @param $action
501
- * @param $callback
502
- * @param bool $raw Format action ??
503
- */
504
- private function addAjax($action, $callback, $raw = false)
505
- {
506
- $validAction = $raw ? $action : sprintf('%s%s', 'wp_ajax_', $this->resolveActionName($action));
507
-
508
- add_action($validAction, $callback);
509
- }
510
-
511
- /**
512
- * @return bool
513
- */
514
- public function isSigned()
515
- {
516
- return $this->isSigned;
517
- }
518
-
519
- /**
520
- * @param bool $isSigned
521
- */
522
- public function setIsSigned($isSigned)
523
- {
524
- $this->data->setIsSigned($isSigned);
525
-
526
- $this->isSigned = $isSigned;
527
- }
528
-
529
- /**
530
- * @return RequestorContract
531
- */
532
- public function getRequestor()
533
- {
534
- return $this->requestor;
535
- }
536
-
537
- /**
538
- * @param RequestorContract $requestor
539
- */
540
- public function setRequestor(RequestorContract $requestor)
541
- {
542
- $this->requestor = $requestor;
543
- }
544
-
545
- /**
546
- * @return string
547
- */
548
- public function getClientSecret()
549
- {
550
- return $this->clientSecret;
551
- }
552
-
553
- /**
554
- * @return Collector
555
- */
556
- public function getCollector()
557
- {
558
- return $this->collector;
559
- }
560
-
561
- /**
562
- * @param Collector $collector
563
- */
564
- public function setCollector(Collector $collector)
565
- {
566
- $this->collector = $collector;
567
- }
568
-
569
- /**
570
- * Do we allowing logging
571
- *
572
- * @return bool
573
- */
574
- public function isAllowingLogging()
575
- {
576
- return $this->isOptedIn;
577
- }
578
-
579
- /**
580
- * @return string
581
- */
582
- public function getBasePluginPath()
583
- {
584
- return $this->basePluginPath;
585
- }
586
-
587
- /**
588
- * @return bool
589
- */
590
- public function isInstallResolved()
591
- {
592
- return $this->isInstallResolved;
593
- }
594
-
595
- /**
596
- * @param bool $isInstallResolved
597
- */
598
- public function setIsInstallResolved($isInstallResolved)
599
- {
600
- $this->data->setIsInstallResolved($isInstallResolved);
601
-
602
- $this->isInstallResolved = $isInstallResolved;
603
- }
604
- }
1
+ <?php
2
+
3
+ namespace Account;
4
+
5
+ use Analyst\Analyst;
6
+ use Analyst\ApiRequestor;
7
+ use Analyst\Cache\DatabaseCache;
8
+ use Analyst\Collector;
9
+ use Analyst\Http\Requests\ActivateRequest;
10
+ use Analyst\Http\Requests\DeactivateRequest;
11
+ use Analyst\Http\Requests\InstallRequest;
12
+ use Analyst\Http\Requests\OptInRequest;
13
+ use Analyst\Http\Requests\OptOutRequest;
14
+ use Analyst\Http\Requests\UninstallRequest;
15
+ use Analyst\Notices\Notice;
16
+ use Analyst\Notices\NoticeFactory;
17
+ use Analyst\Contracts\TrackerContract;
18
+ use Analyst\Contracts\RequestorContract;
19
+
20
+ /**
21
+ * Class Account
22
+ *
23
+ * This is plugin's account object
24
+ */
25
+ class Account implements TrackerContract
26
+ {
27
+ /**
28
+ * Account id
29
+ *
30
+ * @var string
31
+ */
32
+ protected $id;
33
+
34
+ /**
35
+ * Basename of plugin
36
+ *
37
+ * @var string
38
+ */
39
+ protected $path;
40
+
41
+ /**
42
+ * Whether plugin is active or not
43
+ *
44
+ * @var bool
45
+ */
46
+ protected $isInstalled = false;
47
+
48
+ /**
49
+ * Is user sign in for data tracking
50
+ *
51
+ * @var bool
52
+ */
53
+ protected $isOptedIn = false;
54
+
55
+ /**
56
+ * Is user accepted permissions grant
57
+ * for collection site data
58
+ *
59
+ * @var bool
60
+ */
61
+ protected $isSigned = false;
62
+
63
+ /**
64
+ * Is user ever resolved install modal window?
65
+ *
66
+ * @var bool
67
+ */
68
+ protected $isInstallResolved = false;
69
+
70
+ /**
71
+ * Public secret code
72
+ *
73
+ * @var string
74
+ */
75
+ protected $clientSecret;
76
+
77
+ /**
78
+ * @var AccountData
79
+ */
80
+ protected $data;
81
+
82
+ /**
83
+ * Base plugin path
84
+ *
85
+ * @var string
86
+ */
87
+ protected $basePluginPath;
88
+
89
+ /**
90
+ * @var RequestorContract
91
+ */
92
+ protected $requestor;
93
+
94
+ /**
95
+ * @var Collector
96
+ */
97
+ protected $collector;
98
+
99
+ /**
100
+ * Account constructor.
101
+ * @param $id
102
+ * @param $secret
103
+ * @param $baseDir
104
+ */
105
+ public function __construct($id, $secret, $baseDir)
106
+ {
107
+ $this->id = $id;
108
+ $this->clientSecret = $secret;
109
+
110
+ $this->path = $baseDir;
111
+
112
+ $this->basePluginPath = plugin_basename($baseDir);
113
+ }
114
+
115
+ /**
116
+ * @return string
117
+ */
118
+ public function getPath()
119
+ {
120
+ return $this->path;
121
+ }
122
+
123
+ /**
124
+ * @param string $path
125
+ */
126
+ public function setPath($path)
127
+ {
128
+ $this->data->setPath($path);
129
+
130
+ $this->path = $path;
131
+ }
132
+
133
+ /**
134
+ * @return bool
135
+ */
136
+ public function isOptedIn()
137
+ {
138
+ return $this->isOptedIn;
139
+ }
140
+
141
+ /**
142
+ * @param bool $isOptedIn
143
+ */
144
+ public function setIsOptedIn($isOptedIn)
145
+ {
146
+ $this->data->setIsOptedIn($isOptedIn);
147
+
148
+ $this->isOptedIn = $isOptedIn;
149
+ }
150
+
151
+ /**
152
+ * Whether plugin is active
153
+ *
154
+ * @return bool
155
+ */
156
+ public function isActive()
157
+ {
158
+ return is_plugin_active($this->path);
159
+ }
160
+
161
+ /**
162
+ * @param string $id
163
+ */
164
+ public function setId($id)
165
+ {
166
+ $this->id = $id;
167
+ }
168
+
169
+ /**
170
+ * @return string
171
+ */
172
+ public function getId()
173
+ {
174
+ return $this->id;
175
+ }
176
+
177
+ /**
178
+ * @return bool
179
+ */
180
+ public function isInstalled()
181
+ {
182
+ return $this->isInstalled;
183
+ }
184
+
185
+ /**
186
+ * @param bool $isInstalled
187
+ */
188
+ public function setIsInstalled($isInstalled)
189
+ {
190
+ $this->data->setIsInstalled($isInstalled);
191
+
192
+ $this->isInstalled = $isInstalled;
193
+ }
194
+
195
+ /**
196
+ * Should register activation and deactivation
197
+ * event hooks
198
+ *
199
+ * @return void
200
+ */
201
+ public function registerHooks()
202
+ {
203
+ register_activation_hook($this->basePluginPath, [&$this, 'onActivePluginListener']);
204
+ register_uninstall_hook($this->basePluginPath, ['Account\Account', 'onUninstallPluginListener']);
205
+
206
+ $this->addFilter('plugin_action_links', [&$this, 'onRenderActionLinksHook']);
207
+
208
+ $this->addAjax('analyst_opt_in', [&$this, 'onOptInListener']);
209
+ $this->addAjax('analyst_opt_out', [&$this, 'onOptOutListener']);
210
+ $this->addAjax('analyst_plugin_deactivate', [&$this, 'onDeactivatePluginListener']);
211
+ $this->addAjax('analyst_install', [&$this, 'onInstallListener']);
212
+ $this->addAjax('analyst_skip_install', [&$this, 'onSkipInstallListener']);
213
+ $this->addAjax('analyst_install_verified', [&$this, 'onInstallVerifiedListener']);
214
+ }
215
+
216
+ /**
217
+ * Will fire when admin activates plugin
218
+ *
219
+ * @return void
220
+ */
221
+ public function onActivePluginListener()
222
+ {
223
+ if (!$this->isInstallResolved()) {
224
+ DatabaseCache::getInstance()->put('plugin_to_install', $this->id);
225
+ }
226
+
227
+ if (!$this->isAllowingLogging()) return;
228
+
229
+ ActivateRequest::make($this->collector, $this->id, $this->path)
230
+ ->execute($this->requestor);
231
+
232
+ $this->setIsInstalled(true);
233
+
234
+ AccountDataFactory::syncData();
235
+ }
236
+
237
+ /**
238
+ * Will fire when admin deactivates plugin
239
+ *
240
+ * @return void
241
+ */
242
+ public function onDeactivatePluginListener()
243
+ {
244
+ if (!$this->isAllowingLogging()) return;
245
+
246
+ $question = isset($_POST['question']) ? stripslashes($_POST['question']) : null;
247
+ $reason = isset($_POST['reason']) ? stripslashes($_POST['reason']) : null;
248
+
249
+ $response = DeactivateRequest::make($this->collector, $this->id, $this->path, $question, $reason)
250
+ ->execute($this->requestor);
251
+
252
+ // Exit if request failed
253
+ if (!$response->isSuccess()) {
254
+ wp_send_json_error($response->body);
255
+ }
256
+
257
+ $this->setIsInstalled(false);
258
+
259
+ AccountDataFactory::syncData();
260
+
261
+ wp_send_json_success();
262
+ }
263
+
264
+ /**
265
+ * Will fire when user opted in
266
+ *
267
+ * @return void
268
+ */
269
+ public function onOptInListener()
270
+ {
271
+ $response = OptInRequest::make($this->collector, $this->id, $this->path)->execute($this->requestor);
272
+
273
+ // Exit if request failed
274
+ if (!$response->isSuccess()) {
275
+ wp_send_json_error($response->body);
276
+ }
277
+
278
+ $this->setIsOptedIn(true);
279
+
280
+ AccountDataFactory::syncData();
281
+
282
+ wp_die();
283
+ }
284
+
285
+ /**
286
+ * Will fire when user opted out
287
+ *
288
+ * @return void
289
+ */
290
+ public function onOptOutListener()
291
+ {
292
+ $response = OptOutRequest::make($this->collector, $this->id, $this->path)->execute($this->requestor);
293
+
294
+ // Exit if request failed
295
+ if (!$response->isSuccess()) {
296
+ wp_send_json_error($response->body);
297
+ }
298
+
299
+ $this->setIsOptedIn(false);
300
+
301
+ AccountDataFactory::syncData();
302
+
303
+ wp_send_json_success();
304
+ }
305
+
306
+ /**
307
+ * Will fire when user accept opt-in
308
+ * at first time
309
+ *
310
+ * @return void
311
+ */
312
+ public function onInstallListener()
313
+ {
314
+ $cache = DatabaseCache::getInstance();
315
+
316
+ // Set flag to true which indicates that install is resolved
317
+ // also remove install plugin id from cache
318
+ $this->setIsInstallResolved(true);
319
+ $cache->delete('plugin_to_install');
320
+
321
+ $response = InstallRequest::make($this->collector, $this->id, $this->path)->execute($this->requestor);
322
+
323
+ // Exit if request failed
324
+ if (!$response->isSuccess()) {
325
+ wp_send_json_error($response->body);
326
+ }
327
+
328
+ $this->setIsSigned(true);
329
+
330
+ $this->setIsOptedIn(true);
331
+
332
+ $factory = NoticeFactory::instance();
333
+
334
+ $message = sprintf('Please confirm your email by clicking on the link we sent to %s. This makes sure you’re not a bot.', $this->collector->getGeneralEmailAddress());
335
+
336
+ $notificationId = uniqid();
337
+
338
+ $notice = Notice::make(
339
+ $notificationId,
340
+ $this->getId(),
341
+ $message,
342
+ $this->collector->getPluginName($this->path)
343
+ );
344
+
345
+ $factory->addNotice($notice);
346
+
347
+ AccountDataFactory::syncData();
348
+
349
+ // Set email confirmation notification id to cache
350
+ // se we can extract and remove it when user confirmed email
351
+ $cache->put(
352
+ sprintf('account_email_confirmation_%s', $this->getId()),
353
+ $notificationId
354
+ );
355
+
356
+ wp_send_json_success();
357
+ }
358
+
359
+ /**
360
+ * Will fire when user skipped installation
361
+ *
362
+ * @return void
363
+ */
364
+ public function onSkipInstallListener()
365
+ {
366
+ // Set flag to true which indicates that install is resolved
367
+ // also remove install plugin id from cache
368
+ $this->setIsInstallResolved(true);
369
+ DatabaseCache::getInstance()->delete('plugin_to_install');
370
+ }
371
+
372
+ /**
373
+ * Will fire when user delete plugin through admin panel.
374
+ * This action will happen if admin at least once
375
+ * activated the plugin.
376
+ *
377
+ * @return void
378
+ * @throws \Exception
379
+ */
380
+ public static function onUninstallPluginListener()
381
+ {
382
+ $factory = AccountDataFactory::instance();
383
+
384
+ $pluginFile = substr(current_filter(), strlen( 'uninstall_' ));
385
+
386
+ $account = $factory->getAccountDataByBasePath($pluginFile);
387
+
388
+ // If account somehow is not found, exit the execution
389
+ if (!$account) return;
390
+
391
+ $analyst = Analyst::getInstance();
392
+
393
+ $collector = new Collector($analyst);
394
+
395
+ $requestor = new ApiRequestor($account->getId(), $account->getSecret(), $analyst->getApiBase());
396
+
397
+ // Just send request to log uninstall event not caring about response
398
+ UninstallRequest::make($collector, $account->getId(), $account->getPath())->execute($requestor);
399
+
400
+ $factory->sync();
401
+ }
402
+
403
+ /**
404
+ * Fires when used verified his account
405
+ */
406
+ public function onInstallVerifiedListener()
407
+ {
408
+ $factory = NoticeFactory::instance();
409
+
410
+ $notice = Notice::make(
411
+ uniqid(),
412
+ $this->getId(),
413
+ 'Thank you for confirming your email.',
414
+ $this->collector->getPluginName($this->path)
415
+ );
416
+
417
+ $factory->addNotice($notice);
418
+
419
+ // Remove confirmation notification
420
+ $confirmationNotificationId = DatabaseCache::getInstance()->pop(sprintf('account_email_confirmation_%s', $this->getId()));
421
+ $factory->remove($confirmationNotificationId);
422
+
423
+ AccountDataFactory::syncData();
424
+
425
+ wp_send_json_success();
426
+ }
427
+
428
+ /**
429
+ * Will fire when wp renders plugin
430
+ * action buttons
431
+ *
432
+ * @param $defaultLinks
433
+ * @return array
434
+ */
435
+ public function onRenderActionLinksHook($defaultLinks)
436
+ {
437
+ $customLinks = [];
438
+
439
+ $customLinks[] = $this->isOptedIn()
440
+ ? '<a class="analyst-action-opt analyst-opt-out" analyst-plugin-id="' . $this->getId() . '" analyst-plugin-signed="' . (int) $this->isSigned() . '">Opt Out</a>'
441
+ : '<a class="analyst-action-opt analyst-opt-in" analyst-plugin-id="' . $this->getId() . '" analyst-plugin-signed="' . (int) $this->isSigned() . '">Opt In</a>';
442
+
443
+ // Append anchor to find specific deactivation link
444
+ if (isset($defaultLinks['deactivate'])) {
445
+ $defaultLinks['deactivate'] .= '<span analyst-plugin-id="' . $this->getId() . '" analyst-plugin-opted-in="' . (int) $this->isOptedIn() . '"></span>';
446
+ }
447
+
448
+ return array_merge($customLinks, $defaultLinks);
449
+ }
450
+
451
+ /**
452
+ * @return AccountData
453
+ */
454
+ public function getData()
455
+ {
456
+ return $this->data;
457
+ }
458
+
459
+ /**
460
+ * @param AccountData $data
461
+ */
462
+ public function setData(AccountData $data)
463
+ {
464
+ $this->data = $data;
465
+
466
+ $this->setIsOptedIn($data->isOptedIn());
467
+ $this->setIsInstalled($data->isInstalled());
468
+ $this->setIsSigned($data->isSigned());
469
+ $this->setIsInstallResolved($data->isInstallResolved());
470
+ }
471
+
472
+ /**
473
+ * Resolves valid action name
474
+ * based on client id
475
+ *
476
+ * @param $action
477
+ * @return string
478
+ */
479
+ private function resolveActionName($action)
480
+ {
481
+ return sprintf('%s_%s', $action, $this->id);
482
+ }
483
+
484
+ /**
485
+ * Register action for current plugin
486
+ *
487
+ * @param $action
488
+ * @param $callback
489
+ */
490
+ private function addFilter($action, $callback)
491
+ {
492
+ $validAction = sprintf('%s_%s', $action, $this->basePluginPath);
493
+
494
+ add_filter($validAction, $callback, 10);
495
+ }
496
+
497
+ /**
498
+ * Add ajax action for current plugin
499
+ *
500
+ * @param $action
501
+ * @param $callback
502
+ * @param bool $raw Format action ??
503
+ */
504
+ private function addAjax($action, $callback, $raw = false)
505
+ {
506
+ $validAction = $raw ? $action : sprintf('%s%s', 'wp_ajax_', $this->resolveActionName($action));
507
+
508
+ add_action($validAction, $callback);
509
+ }
510
+
511
+ /**
512
+ * @return bool
513
+ */
514
+ public function isSigned()
515
+ {
516
+ return $this->isSigned;
517
+ }
518
+
519
+ /**
520
+ * @param bool $isSigned
521
+ */
522
+ public function setIsSigned($isSigned)
523
+ {
524
+ $this->data->setIsSigned($isSigned);
525
+
526
+ $this->isSigned = $isSigned;
527
+ }
528
+
529
+ /**
530
+ * @return RequestorContract
531
+ */
532
+ public function getRequestor()
533
+ {
534
+ return $this->requestor;
535
+ }
536
+
537
+ /**
538
+ * @param RequestorContract $requestor
539
+ */
540
+ public function setRequestor(RequestorContract $requestor)
541
+ {
542
+ $this->requestor = $requestor;
543
+ }
544
+
545
+ /**
546
+ * @return string
547
+ */
548
+ public function getClientSecret()
549
+ {
550
+ return $this->clientSecret;
551
+ }
552
+
553
+ /**
554
+ * @return Collector
555
+ */
556
+ public function getCollector()
557
+ {
558
+ return $this->collector;
559
+ }
560
+
561
+ /**
562
+ * @param Collector $collector
563
+ */
564
+ public function setCollector(Collector $collector)
565
+ {
566
+ $this->collector = $collector;
567
+ }
568
+
569
+ /**
570
+ * Do we allowing logging
571
+ *
572
+ * @return bool
573
+ */
574
+ public function isAllowingLogging()
575
+ {
576
+ return $this->isOptedIn;
577
+ }
578
+
579
+ /**
580
+ * @return string
581
+ */
582
+ public function getBasePluginPath()
583
+ {
584
+ return $this->basePluginPath;
585
+ }
586
+
587
+ /**
588
+ * @return bool
589
+ */
590
+ public function isInstallResolved()
591
+ {
592
+ return $this->isInstallResolved;
593
+ }
594
+
595
+ /**
596
+ * @param bool $isInstallResolved
597
+ */
598
+ public function setIsInstallResolved($isInstallResolved)
599
+ {
600
+ $this->data->setIsInstallResolved($isInstallResolved);
601
+
602
+ $this->isInstallResolved = $isInstallResolved;
603
+ }
604
+ }
analyst/src/Mutator.php CHANGED
@@ -1,103 +1,103 @@
1
- <?php
2
-
3
- namespace Analyst;
4
-
5
- use Analyst\Cache\DatabaseCache;
6
- use Analyst\Contracts\CacheContract;
7
- use Analyst\Notices\NoticeFactory;
8
-
9
- /**
10
- * Class Mutator mutates (modifies) UX with additional
11
- * functional
12
- */
13
- class Mutator
14
- {
15
- protected $notices = [];
16
-
17
- /**
18
- * @var NoticeFactory
19
- */
20
- protected $factory;
21
-
22
- /**
23
- * @var CacheContract
24
- */
25
- protected $cache;
26
-
27
- public function __construct()
28
- {
29
- $this->factory = NoticeFactory::instance();
30
-
31
- $this->notices = $this->factory->getNotices();
32
-
33
- $this->cache = DatabaseCache::getInstance();
34
- }
35
-
36
- /**
37
- * Register filters all necessary stuff.
38
- * Can be invoked only once.
39
- *
40
- * @return void
41
- */
42
- public function initialize()
43
- {
44
- $this->registerLinks();
45
- $this->registerAssets();
46
- $this->registerHooks();
47
- }
48
-
49
- /**
50
- * Register all necessary filters and templates
51
- *
52
- * @return void
53
- */
54
- protected function registerLinks()
55
- {
56
- add_action('admin_footer', function () {
57
- analyst_require_template('optout.php', [
58
- 'shieldImage' => analyst_assets_url('img/shield_question.png')
59
- ]);
60
-
61
- analyst_require_template('optin.php');
62
-
63
- analyst_require_template('forms/deactivate.php', [
64
- 'pencilImage' => analyst_assets_url('img/pencil.png'),
65
- 'smileImage' => analyst_assets_url('img/smile.png'),
66
- ]);
67
-
68
- analyst_require_template('forms/install.php', [
69
- 'pluginToInstall' => $this->cache->get('plugin_to_install'),
70
- 'shieldImage' => analyst_assets_url('img/shield_success.png'),
71
- ]);
72
- });
73
-
74
- add_action('admin_notices',function () {
75
- foreach ($this->notices as $notice) {
76
- analyst_require_template('notice.php', ['notice' => $notice]);
77
- }
78
- });
79
- }
80
-
81
- /**
82
- * Register all assets
83
- */
84
- public function registerAssets()
85
- {
86
- add_action('admin_enqueue_scripts', function () {
87
- wp_enqueue_style('analyst_custom', analyst_assets_url('/css/customize.css'));
88
- wp_enqueue_script('analyst_custom', analyst_assets_url('/js/customize.js'));
89
- });
90
- }
91
-
92
- /**
93
- * Register action hooks
94
- */
95
- public function registerHooks()
96
- {
97
- add_action('wp_ajax_analyst_notification_dismiss', function () {
98
- $this->factory->remove($_POST['id']);
99
-
100
- $this->factory->sync();
101
- });
102
- }
103
- }
1
+ <?php
2
+
3
+ namespace Analyst;
4
+
5
+ use Analyst\Cache\DatabaseCache;
6
+ use Analyst\Contracts\CacheContract;
7
+ use Analyst\Notices\NoticeFactory;
8
+
9
+ /**
10
+ * Class Mutator mutates (modifies) UX with additional
11
+ * functional
12
+ */
13
+ class Mutator
14
+ {
15
+ protected $notices = [];
16
+
17
+ /**
18
+ * @var NoticeFactory
19
+ */
20
+ protected $factory;
21
+
22
+ /**
23
+ * @var CacheContract
24
+ */
25
+ protected $cache;
26
+
27
+ public function __construct()
28
+ {
29
+ $this->factory = NoticeFactory::instance();
30
+
31
+ $this->notices = $this->factory->getNotices();
32
+
33
+ $this->cache = DatabaseCache::getInstance();
34
+ }
35
+
36
+ /**
37
+ * Register filters all necessary stuff.
38
+ * Can be invoked only once.
39
+ *
40
+ * @return void
41
+ */
42
+ public function initialize()
43
+ {
44
+ $this->registerLinks();
45
+ $this->registerAssets();
46
+ $this->registerHooks();
47
+ }
48
+
49
+ /**
50
+ * Register all necessary filters and templates
51
+ *
52
+ * @return void
53
+ */
54
+ protected function registerLinks()
55
+ {
56
+ add_action('admin_footer', function () {
57
+ analyst_require_template('optout.php', [
58
+ 'shieldImage' => analyst_assets_url('img/shield_question.png')
59
+ ]);
60
+
61
+ analyst_require_template('optin.php');
62
+
63
+ analyst_require_template('forms/deactivate.php', [
64
+ 'pencilImage' => analyst_assets_url('img/pencil.png'),
65
+ 'smileImage' => analyst_assets_url('img/smile.png'),
66
+ ]);
67
+
68
+ analyst_require_template('forms/install.php', [
69
+ 'pluginToInstall' => $this->cache->get('plugin_to_install'),
70
+ 'shieldImage' => analyst_assets_url('img/shield_success.png'),
71
+ ]);
72
+ });
73
+
74
+ add_action('admin_notices',function () {
75
+ foreach ($this->notices as $notice) {
76
+ analyst_require_template('notice.php', ['notice' => $notice]);
77
+ }
78
+ });
79
+ }
80
+
81
+ /**
82
+ * Register all assets
83
+ */
84
+ public function registerAssets()
85
+ {
86
+ add_action('admin_enqueue_scripts', function () {
87
+ wp_enqueue_style('analyst_custom', analyst_assets_url('/css/customize.css'));
88
+ wp_enqueue_script('analyst_custom', analyst_assets_url('/js/customize.js'));
89
+ });
90
+ }
91
+
92
+ /**
93
+ * Register action hooks
94
+ */
95
+ public function registerHooks()
96
+ {
97
+ add_action('wp_ajax_analyst_notification_dismiss', function () {
98
+ $this->factory->remove($_POST['id']);
99
+
100
+ $this->factory->sync();
101
+ });
102
+ }
103
+ }
analyst/version.php CHANGED
@@ -1,15 +1,15 @@
1
- <?php
2
-
3
- return array(
4
- // The sdk version
5
- 'sdk' => '1.3.26',
6
-
7
- // Minimum supported WordPress version
8
- 'wp' => '4.7',
9
-
10
- // Supported PHP version
11
- 'php' => '5.4',
12
-
13
- // Path to current SDK$
14
- 'path' => __DIR__,
15
- );
1
+ <?php
2
+
3
+ return array(
4
+ // The sdk version
5
+ 'sdk' => '1.3.26',
6
+
7
+ // Minimum supported WordPress version
8
+ 'wp' => '4.7',
9
+
10
+ // Supported PHP version
11
+ 'php' => '5.4',
12
+
13
+ // Path to current SDK$
14
+ 'path' => __DIR__,
15
+ );
css/sfsi-style.css CHANGED
@@ -1,3473 +1,3473 @@
1
- @charset "utf-8";
2
-
3
- @font-face {
4
- font-family: helveticabold;
5
- src: url(fonts/helvetica_bold_0-webfont.eot);
6
- src: url(fonts/helvetica_bold_0-webfont.eot?#iefix) format('embedded-opentype'), url(fonts/helvetica_bold_0-webfont.woff) format('woff'), url(fonts/helvetica_bold_0-webfont.ttf) format('truetype'), url(fonts/helvetica_bold_0-webfont.svg#helveticabold) format('svg');
7
- font-weight: 400;
8
- font-style: normal;
9
- }
10
-
11
- @font-face {
12
- font-family: helveticaregular;
13
- src: url(fonts/helvetica_0-webfont.eot);
14
- src: url(fonts/helvetica_0-webfont.eot?#iefix) format('embedded-opentype'), url(fonts/helvetica_0-webfont.woff) format('woff'), url(fonts/helvetica_0-webfont.ttf) format('truetype'), url(fonts/helvetica_0-webfont.svg#helveticaregular) format('svg');
15
- font-weight: 400;
16
- font-style: normal;
17
- }
18
-
19
- @font-face {
20
- font-family: helveticaneue-light;
21
- src: url(fonts/helveticaneue-light.eot);
22
- src: url(fonts/helveticaneue-light.eot?#iefix) format('embedded-opentype'), url(fonts/helveticaneue-light.woff) format('woff'), url(fonts/helveticaneue-light.ttf) format('truetype'), url(fonts/helveticaneue-light.svg#helveticaneue-light) format('svg');
23
- font-weight: 400;
24
- font-style: normal;
25
- }
26
-
27
- body {
28
- margin: 0;
29
- padding: 0;
30
- }
31
-
32
- .clear {
33
- clear: both;
34
- }
35
-
36
- .space {
37
- clear: both;
38
- padding: 30px 0 0;
39
- width: 100%;
40
- float: left;
41
- }
42
-
43
- .like_txt {
44
- margin: 30px 0 0;
45
- padding: 0;
46
- color: #12a252;
47
- font-family: helveticaregular;
48
- font-size: 20px;
49
- line-height: 20px;
50
- text-align: center;
51
- }
52
-
53
- .like_txt a {
54
- color: #12a252;
55
- }
56
-
57
- .sfsibeforpstwpr iframe,
58
- .sfsiaftrpstwpr iframe {
59
- max-width: none;
60
- }
61
-
62
- .sfwp_fivestar_ul li {
63
- display: block;
64
- padding-right: 20px;
65
- }
66
-
67
- .shwthmbfraftr {
68
- margin-top: 5px !important
69
- }
70
-
71
- label.toglpstpgsbttl {
72
- float: left;
73
- margin-top: 5px !important
74
- }
75
-
76
- .tab_3_icns.shwthmbfraftr .cstmdisplaysharingtxt {
77
- float: left;
78
- }
79
-
80
- .tab6 ul.enough_waffling.sfsi_dsplyatend {
81
- width: 24%;
82
- float: left;
83
- }
84
-
85
- .tab4 ul.like_icon {
86
- margin: 0;
87
- padding: 20px 0 0;
88
- list-style: none;
89
- text-align: center;
90
- }
91
-
92
- .tab4 ul.like_icon li {
93
- margin: 0;
94
- padding: 0;
95
- list-style: none;
96
- display: inline-block;
97
- }
98
-
99
- .tab4 ul.like_icon li span {
100
- margin: 0;
101
- width: 54px;
102
- display: block;
103
- background: url(../images/count_bg.png) no-repeat;
104
- height: 24px;
105
- overflow: hidden;
106
- padding: 10px 2px 2px;
107
- font-size: 17px;
108
- text-align: center;
109
- line-height: 24px;
110
- color: #5a6570;
111
- }
112
-
113
- .tab4 ul.like_icon li a {
114
- color: #5a6570;
115
- text-decoration: none;
116
- }
117
-
118
- .tab4 ul.enough_waffling {
119
- margin: 0;
120
- padding: 25px 0 27px;
121
- list-style: none;
122
- text-align: center;
123
- }
124
-
125
- .tab4 ul.enough_waffling li {
126
- margin: 0 22px;
127
- padding: 0;
128
- list-style: none;
129
- display: inline-block;
130
- }
131
-
132
- .tab4 ul.enough_waffling li span {
133
- float: left;
134
- }
135
-
136
- .tab4 ul.enough_waffling li label {
137
- margin: 0 0 0 20px;
138
- float: left;
139
- font-family: helveticaregular;
140
- font-size: 18px;
141
- font-weight: 400;
142
- text-align: center;
143
- line-height: 38px;
144
- color: #5a6570;
145
- }
146
-
147
- .sfsi_mainContainer .checkbox {
148
- width: 31px;
149
- height: 31px;
150
- background: url(../images/check_bg.jpg) no-repeat;
151
- display: inherit;
152
- }
153
-
154
- .sfsi_mainContainer .radio {
155
- width: 40px;
156
- height: 40px;
157
- background: url(../images/radio_bg.png) no-repeat;
158
- display: inherit;
159
- }
160
-
161
- .sfsi_mainContainer .select {
162
- width: 127px;
163
- height: 47px;
164
- font-size: 17px;
165
- background: url(../images/select_bg.jpg) no-repeat;
166
- display: block;
167
- padding-left: 16px;
168
- line-height: 49px;
169
- }
170
-
171
- .sfsi_mainContainer .line {
172
- background: #eaebee;
173
- height: 1px;
174
- font-size: 0;
175
- margin: 15px 0 0;
176
- clear: both;
177
- width: 100%;
178
- float: left;
179
- }
180
-
181
- .specify_counts {
182
- display: block;
183
- margin-top: 15px;
184
- padding-top: 15px;
185
- clear: both;
186
- width: 100%;
187
- float: left;
188
- border-top: 1px solid #eaebee;
189
- }
190
-
191
- .specify_counts .radio_section {
192
- width: 30px;
193
- float: left;
194
- margin: 12px 10px 0 0;
195
- }
196
-
197
- .specify_counts .social_icon_like {
198
- width: 54px;
199
- float: left;
200
- margin: 0 15px 0 0;
201
- }
202
-
203
- .specify_counts .social_icon_like ul {
204
- margin: 0;
205
- padding: 0;
206
- list-style: none;
207
- text-align: center;
208
- }
209
-
210
- .specify_counts .social_icon_like li {
211
- margin: 0;
212
- padding: 0;
213
- list-style: none;
214
- display: inline-block;
215
- }
216
-
217
- .specify_counts .social_icon_like li span {
218
- margin: 0;
219
- width: 54px;
220
- display: block;
221
- background: url(../images/count_bg.jpg) no-repeat;
222
- height: 24px;
223
- overflow: hidden;
224
- padding: 10px 2px 2px;
225
- font-family: helveticaregular;
226
- font-size: 16px;
227
- text-align: center;
228
- line-height: 24px;
229
- color: #5a6570;
230
- }
231
-
232
- .specify_counts .social_icon_like li a {
233
- color: #5a6570;
234
- text-decoration: none;
235
- }
236
-
237
- .specify_counts .listing {
238
- width: 88%;
239
- margin-top: -5px;
240
- display: inherit;
241
- float: left;
242
- }
243
-
244
- .specify_counts .listing ul {
245
- margin: 0;
246
- padding: 0;
247
- list-style: none;
248
- text-align: left;
249
- }
250
-
251
- .specify_counts .listing li {
252
- margin: 15px 0 0;
253
- padding: 0;
254
- list-style: none;
255
- clear: both;
256
- line-height: 39px;
257
- font-size: 17px;
258
- }
259
-
260
- .specify_counts .listing li span {
261
- float: left;
262
- margin-right: 20px;
263
- }
264
-
265
- .specify_counts .listing li .input {
266
- background: #e5e5e5;
267
- box-shadow: 2px 2px 3px #dcdcdc inset;
268
- border: 0;
269
- padding: 10px;
270
- margin-left: 25px;
271
- }
272
-
273
- .specify_counts .listing li .input_facebook {
274
- width: 288px;
275
- background: #e5e5e5;
276
- box-shadow: 2px 2px 3px #dcdcdc inset;
277
- border: 0;
278
- padding: 10px;
279
- margin-left: 16px;
280
- }
281
-
282
- .save_button {
283
- width: 450px;
284
- padding-top: 30px;
285
- clear: both;
286
- margin: auto;
287
- }
288
-
289
- .save_button a {
290
- background: #12a252;
291
- text-align: center;
292
- font-size: 23px;
293
- color: #FFF !important;
294
- display: block;
295
- padding: 11px 0;
296
- text-decoration: none;
297
- }
298
-
299
- .save_button a:hover {
300
- background: #079345
301
- }
302
-
303
- .tab5 ul.share_icon_order {
304
- margin: 0;
305
- padding: 0;
306
- list-style: none;
307
- text-align: left;
308
- }
309
-
310
- .tab5 ul.share_icon_order li {
311
- margin: 22px 6px 0 0;
312
- padding: 0;
313
- list-style: none;
314
- float: left;
315
- line-height: 37px;
316
- }
317
-
318
- .tab5 ul.share_icon_order li:last-child {
319
- margin: 22px 0 0 3px;
320
- }
321
-
322
- .tab5 .row {
323
- border-top: 1px solid #eaebee;
324
- margin-top: 25px;
325
- padding-top: 15px;
326
- clear: both;
327
- display: block;
328
- width: 100%;
329
- float: left;
330
- font-family: helveticaregular;
331
- line-height: 42px;
332
- }
333
-
334
- .tab5 .icons_size {
335
- position: relative;
336
- }
337
-
338
- .tab5 .icons_size span {
339
- margin-right: 18px;
340
- display: block;
341
- float: left;
342
- font-size: 18px;
343
- font-weight: 400;
344
- line-height: 46px;
345
- }
346
-
347
- .tab5 .icons_size span.last {
348
- margin-left: 55px;
349
- }
350
-
351
- .tab5 .icons_size input {
352
- width: 73px;
353
- background: #e5e5e5;
354
- box-shadow: 2px 2px 3px #dcdcdc inset;
355
- border: 0;
356
- padding: 13px 13px 12px;
357
- margin-right: 18px;
358
- float: left;
359
- display: block;
360
- }
361
-
362
- .tab5 .icons_size select.styled {
363
- position: absolute;
364
- left: 0;
365
- width: 135px;
366
- height: 46px;
367
- line-height: 46px;
368
- }
369
-
370
- .tab5 .icons_size .field {
371
- position: relative;
372
- float: left;
373
- display: block;
374
- margin-right: 20px;
375
- }
376
-
377
- .tab5 .icons_size ins {
378
- margin-right: 25px;
379
- float: left;
380
- font-size: 17px;
381
- font-weight: 400;
382
- text-decoration: none;
383
- }
384
-
385
- .tab5 .icons_size ins.leave_empty {
386
- line-height: 23px;
387
- }
388
-
389
- .tab5 .icons_size {
390
- padding-top: 15px;
391
- }
392
-
393
- .tab5 ul.enough_waffling {
394
- margin: -5px 0 0;
395
- padding: 0;
396
- list-style: none;
397
- text-align: center;
398
- }
399
-
400
- .tab5 .new_wind .row_onl ul.enough_waffling {
401
- /*margin: 14px 0 0 167px;*/
402
- margin: 20px 0 0 0;
403
- padding: 0;
404
- list-style: none;
405
- height: 38px;
406
- text-align: center;
407
- width: 61%;
408
- }
409
-
410
- .tab5 ul.enough_waffling li {
411
- margin: 0 22px;
412
- padding: 0;
413
- list-style: none;
414
- display: inline-block;
415
- float: left;
416
- }
417
-
418
- .tab5 ul.enough_waffling li span {
419
- float: left;
420
- }
421
-
422
- .tab5 ul.enough_waffling li label {
423
- margin: 0 0 0 20px;
424
- float: left;
425
- font-family: helveticaregular;
426
- font-size: 18px;
427
- font-weight: 400;
428
- text-align: center;
429
- line-height: 38px;
430
- color: #5a6570;
431
- }
432
-
433
- .sticking p {
434
- float: left;
435
- font-size: 18px !important;
436
- }
437
-
438
- .sticking p.list {
439
- width: 168px;
440
- }
441
-
442
- .sticking p.link {
443
- margin: 3px 0 0 12px;
444
- padding: 0 !important;
445
- float: left;
446
- }
447
-
448
- .sticking .float {
449
- margin-left: 188px;
450
- margin-top: 3px;
451
- float: left;
452
- font-size: 17px;
453
- }
454
-
455
- .sticking ul {
456
- margin: 0;
457
- padding: 30px 0 0;
458
- list-style: none;
459
- float: left;
460
- }
461
-
462
- .sticking a {
463
- color: #a4a9ad;
464
- }
465
-
466
- .sticking p {
467
- line-height: 19px !important;
468
- }
469
-
470
- .sticking .field {
471
- position: relative;
472
- float: left;
473
- display: block;
474
- margin-left: 20px;
475
- }
476
-
477
- .sticking .field .select {
478
- width: 206px;
479
- height: 47px;
480
- background: url(../images/select_bg1.jpg) no-repeat;
481
- display: block;
482
- padding-left: 10px;
483
- }
484
-
485
- .sticking .field select.styled {
486
- position: absolute;
487
- left: 0;
488
- top: 0;
489
- width: 211px;
490
- line-height: 46px;
491
- height: 46px;
492
- }
493
-
494
- .mouseover_field {
495
- width: 455px;
496
- float: left;
497
- font-size: 18px;
498
- margin-top: 10px;
499
- }
500
-
501
- .mouseover_field label {
502
- width: 125px;
503
- float: left;
504
- }
505
-
506
- .mouseover_field input {
507
- width: 256px;
508
- float: left;
509
- background: #e5e5e5;
510
- box-shadow: 2px 2px 3px #dcdcdc inset;
511
- border: 0;
512
- padding: 10px;
513
- }
514
-
515
- .pop_up_box {
516
- width: 474px;
517
- background: #FFF;
518
- box-shadow: 0 0 5px 3px #d8d8d8;
519
- margin: 200px auto;
520
- padding: 20px 25px 0px;
521
- font-family: helveticaregular;
522
- color: #5a6570;
523
- min-height: 250px;
524
- position: relative;
525
- }
526
-
527
- .pop_up_box h4,
528
- .pop_up_box_ex h4 {
529
- font-size: 20px;
530
- color: #5a6570;
531
- text-align: center;
532
- margin: 0;
533
- padding: 0;
534
- line-height: 22px;
535
- }
536
-
537
- .pop_up_box p,
538
- .pop_up_box_ex p {
539
- font-size: 17px;
540
- line-height: 28px;
541
- color: #5a6570;
542
- text-align: left;
543
- margin: 0;
544
- padding: 25px 0 0;
545
- font-family: helveticaregular;
546
- }
547
-
548
- .sfsi_popupcntnr {
549
- float: left;
550
- width: 100%
551
- }
552
-
553
- .sfsi_popupcntnr>h3 {
554
- color: #000;
555
- float: left;
556
- font-weight: 700;
557
- margin-bottom: 5px;
558
- width: 100%
559
- }
560
-
561
- ul.flwstep {
562
- float: left;
563
- width: 100%
564
- }
565
-
566
- ul.flwstep>li {
567
- color: #000;
568
- font-size: 16px;
569
- margin: 5px;
570
- }
571
-
572
- .upldbtn {
573
- float: left;
574
- text-align: center;
575
- width: 100%
576
- }
577
-
578
- .upload_butt {
579
- background-color: #12a252;
580
- border: none;
581
- color: #fff;
582
- font-weight: 700;
583
- margin-top: 10px;
584
- padding: 7px 22px;
585
- width: auto;
586
- cursor: pointer;
587
- font-size: 19px;
588
- }
589
-
590
- .pop_up_box .button {
591
- background: #12a252;
592
- font-size: 22px;
593
- line-height: 24px;
594
- color: #5a6570;
595
- text-align: center;
596
- min-height: 80px;
597
- margin-top: 32px;
598
- box-shadow: none;
599
- }
600
-
601
- .pop_up_box .button:hover {
602
- box-shadow: none !important;
603
- }
604
-
605
- .pop_up_box .button a.activate {
606
- padding: 0px 0;
607
- }
608
-
609
- .pop_up_box a,
610
- .pop_up_box_ex a {
611
- color: #a4a9ad;
612
- font-size: 20px;
613
- text-decoration: none;
614
- text-align: center;
615
- display: inline-block;
616
- margin-top: 18px;
617
- width: 100%;
618
- }
619
-
620
- .pop_up_box .upload {
621
- width: 100%;
622
- float: left;
623
- text-align: left;
624
- margin-top: 15px;
625
- height: 46px;
626
- }
627
-
628
- .pop_up_box .upload label {
629
- width: 135px;
630
- float: left;
631
- line-height: 45px;
632
- font-size: 18px;
633
- font-family: helveticaregular;
634
- text-align: left;
635
- }
636
-
637
- .pop_up_box .upload input[type=text] {
638
- width: 248px;
639
- float: left;
640
- background: #e5e5e5;
641
- box-shadow: 2px 2px 3px #dcdcdc inset;
642
- border: 0;
643
- padding: 0 10px;
644
- font-size: 16px;
645
- height: 44px;
646
- text-align: left;
647
- color: #5a6570;
648
- font-family: helveticaregular;
649
- }
650
-
651
- .pop_up_box .upload input.upload_butt {
652
- width: 100px;
653
- background: #12a252;
654
- box-shadow: 0 0 0;
655
- border: 0;
656
- text-align: center;
657
- font-size: 18px;
658
- color: #fff;
659
- font-family: helveticaregular;
660
- height: 45px;
661
- right: 32px;
662
- top: 71px;
663
- position: absolute;
664
- }
665
-
666
- .pop_up_box .upload a {
667
- color: #12a252;
668
- font-size: 18px;
669
- text-decoration: underline;
670
- font-family: helveticaregular;
671
- margin: 0 0 16px 140px;
672
- }
673
-
674
- .pop_up_box a:hover,
675
- .pop_up_box_ex a:hover {
676
- color: #a4a9ad;
677
- }
678
-
679
- .inr_cont .fb_url {
680
- clear: both;
681
- }
682
-
683
- .inr_cont .fb_url .checkbox,
684
- .inr_cont .fb_url input.add,
685
- .inr_cont .fb_url label,
686
- .inr_cont .fb_url lable {
687
- float: left;
688
- }
689
-
690
- .inr_cont .fb_url input.add {
691
- margin-left: 19px;
692
- }
693
-
694
- .inr_cont .fb_url .checkbox {
695
- margin: 6px 0 0;
696
- }
697
-
698
- .inr_cont .fb_url label {
699
- /*line-height: 41px; margin: 0 0 0 15px;*/
700
- line-height: 22px;
701
- margin: 10px 0 0 15px;
702
- font-size: 17px;
703
- }
704
-
705
- .inr_cont textarea.add_txt {
706
- resize: none;
707
- margin: 0 0 0 19px !important;
708
- height: 60px;
709
- }
710
-
711
- .tab2 .inr_cont textarea.add_txt {
712
- width: 382px !important;
713
- height: 90px;
714
- overflow: hidden;
715
- }
716
-
717
- .tab2 .inr_cont input.add {
718
- width: 417px;
719
- }
720
-
721
- .red_txt,
722
- .tab2 .red_txt {
723
- color: #ef4745 !important;
724
- text-align: center !important;
725
- padding-top: 5px !important;
726
- }
727
-
728
- .green_txt {
729
- color: #12A252 !important;
730
- text-align: center !important;
731
- padding-top: 5px !important;
732
- }
733
-
734
- .red_txt {
735
- color: #f80000 !important;
736
- text-align: center !important;
737
- padding-top: 5px !important;
738
- }
739
-
740
- .linked_tab_2 .fb_url label {
741
- /* width: 32%;*/
742
- /* width: 26.99%;*/
743
- width: 22%;
744
- }
745
-
746
- .twt_tab_2 label {
747
- width: 18%
748
- }
749
-
750
- .bdr_top {
751
- border-top: none !important;
752
- }
753
-
754
- .linked_tab_2 .fb_url input.link_dbl {
755
- margin-bottom: 6px;
756
- }
757
-
758
- .tab3 {
759
- overflow: hidden;
760
- }
761
-
762
- .tab3 .row {
763
- /*border-top: 1px solid #EAEBEE;*/
764
- padding: 25px 0;
765
- clear: both;
766
- overflow: hidden;
767
- }
768
-
769
- .tab3 ul.tab_3_list {
770
- overflow: hidden;
771
- margin: 4px 0 11px;
772
- }
773
-
774
- ul.tab_3_list li {
775
- background: url(../images/tab_3_list_bg.jpg) 13px 7px no-repeat;
776
- padding: 0 0 0 30px;
777
- color: #778088;
778
- font-family: helveticaregular;
779
- font-size: 17px;
780
- margin-bottom: 4px;
781
- }
782
-
783
- .tab5 ul.tab_3_list li {
784
- background: url(../images/tab_3_list_bg.jpg) 13px 18px no-repeat;
785
- }
786
-
787
- .tab3 .row h3 {
788
- /* margin: 0 0 20px;*/
789
- margin: 20px 0 0px;
790
- color: #414951;
791
- font-family: helveticabold;
792
- font-size: 20px;
793
- }
794
-
795
- ul.tab_3_icns {
796
- list-style: none;
797
- margin: 10px 0 0;
798
- overflow: hidden;
799
- }
800
-
801
- ul.tab_3_icns li {
802
- width: 100%;
803
- margin: 0 0 21px;
804
- float: left;
805
- }
806
-
807
- ul.tab_3_icns label {
808
- float: left;
809
- line-height: 42px;
810
- /*margin: 0 20px;*/
811
- color: #69737C;
812
- font-size: 18px;
813
- font-family: helveticaregular;
814
- min-width: 125px;
815
- }
816
-
817
- ul.tab_3_icns li .icns_tab_3,
818
- ul.tab_3_icns li .radio {
819
- float: left;
820
- }
821
-
822
- .tab3 .sub_row h4 {
823
- color: #a4a9ad !important;
824
- }
825
-
826
- .tab3 .sub_row p {
827
- padding-top: 18px !important;
828
- clear: both;
829
- overflow: hidden;
830
- }
831
-
832
- .sub_row .sub_sub_box p {
833
- padding-top: 18px !important;
834
- }
835
-
836
- .tab3 .sub_row .checkbox {
837
- float: left;
838
- margin-top: 4px;
839
- }
840
-
841
- .tab3 .sub_row .sub_sub_box {
842
- width: 80%;
843
- margin: 7px 0 15px 10%;
844
- float: left;
845
- }
846
-
847
- .tab3 .sub_row input.smal_inpt {
848
- width: 73px;
849
- background: #e5e5e5;
850
- box-shadow: 2px 2px 3px #dcdcdc inset;
851
- border: 0;
852
- padding: 10px;
853
- float: left;
854
- margin-left: 10px;
855
- }
856
-
857
- .tab3 .sub_row .drop_lst {
858
- border: 1px solid #d6d6d6;
859
- font-size: 16px;
860
- color: #5a6570;
861
- width: 120px;
862
- }
863
-
864
- .tab3 .first_row,
865
- .tab3 .first_row p,
866
- .tab3 .first_row p .radio,
867
- .tab3 .first_row p label {
868
- float: left;
869
- }
870
-
871
- .tab3 .first_row {
872
- width: 90%;
873
- float: left;
874
- }
875
-
876
- .tab3 .first_row p {
877
- padding: 0 !important;
878
- }
879
-
880
- .tab3 .first_row p label {
881
- line-height: 44px;
882
- margin: 0 10px;
883
- }
884
-
885
- .tab3 .first_row p:last-child {
886
- margin-left: 27%
887
- }
888
-
889
- .tab3 .tab_1_sav {
890
- padding-top: 20px !important;
891
- margin: 10px auto 20px;
892
- }
893
-
894
- .suc_msg {
895
- background: #12A252;
896
- color: #FFF;
897
- display: none;
898
- font-size: 23px;
899
- padding: 10px;
900
- text-align: left;
901
- text-decoration: none;
902
- }
903
-
904
- .error_msg {
905
- background: #D22B30;
906
- color: #FFF;
907
- display: none;
908
- font-size: 23px;
909
- padding: 10px;
910
- text-align: left;
911
- text-decoration: none;
912
- }
913
-
914
- .fileUPInput {
915
- cursor: pointer;
916
- position: relative;
917
- top: -43px;
918
- right: 0;
919
- z-index: 99;
920
- height: 42px;
921
- font-size: 5px;
922
- opacity: 0;
923
- -moz-opacity: 0;
924
- filter: alpha(opacity=0);
925
- width: 100%
926
- }
927
-
928
- .inputWrapper {
929
- height: 20px;
930
- width: 50px;
931
- overflow: hidden;
932
- position: relative;
933
- cursor: pointer;
934
- }
935
-
936
- .custom-txt {
937
- background: none !important;
938
- padding-left: 2px !important;
939
- }
940
-
941
- .custom-img {
942
- float: left;
943
- margin-left: 20px;
944
- }
945
-
946
- .loader-img {
947
- float: left;
948
- margin-left: -70px;
949
- display: none;
950
- }
951
-
952
- .pop-overlay {
953
- position: fixed;
954
- top: 0;
955
- left: 0;
956
- width: 100%;
957
- height: 100%;
958
- backgound-color: #d3d3d3;
959
- z-index: 10;
960
- padding: 20px;
961
- display: none;
962
- }
963
-
964
- .fb-overlay {
965
- position: fixed;
966
- top: 0;
967
- left: 0;
968
- width: 100%;
969
- height: 100%;
970
- backgound-color: #d3d3d3;
971
- z-index: -1000;
972
- padding: 20px;
973
- opacity: 0;
974
- display: block;
975
- }
976
-
977
- .inputError {
978
- border: 1px solid #f80000 !important;
979
- }
980
-
981
- .sfsicloseBtn {
982
- position: absolute;
983
- top: 0;
984
- right: 0;
985
- cursor: pointer;
986
- }
987
-
988
- .top_arow {
989
- background: url(../images/top_aro.png) no-repeat;
990
- position: absolute;
991
- top: -29px;
992
- left: 38%;
993
- width: 33px;
994
- height: 29px;
995
- backgoround-color: #fff;
996
- }
997
-
998
- .sfsi_tool_tip_2 .top_arow .sfsi_inside,
999
- .top_arow .sfsi_inside {
1000
- float: left;
1001
- }
1002
-
1003
- .sfsi_tool_tip_2 .tool_tip>img,
1004
- .tool_tip>img {
1005
- display: inline-block;
1006
- margin-right: 4px;
1007
- float: left;
1008
- }
1009
-
1010
- .norm_row {
1011
- float: left;
1012
- min-width: 25px;
1013
- }
1014
-
1015
- .norm_row a {
1016
- border: none;
1017
- display: inline-block;
1018
- position: relative;
1019
- float: left;
1020
- }
1021
-
1022
- .sfsi_tool_tip_2 a {
1023
- min-height: 0 !important;
1024
- }
1025
-
1026
- .sfsi_widget {
1027
- min-height: 55px;
1028
- }
1029
-
1030
- .sfsi_widget a img {
1031
- box-shadow: none !important;
1032
- outline: 0;
1033
- }
1034
-
1035
- .sfsi_wicons {
1036
- display: inline-block;
1037
- color: #000;
1038
- }
1039
-
1040
- .sel-active {
1041
- background-color: #f7941d;
1042
- }
1043
-
1044
- .sfsi_outr_div .close {
1045
- position: absolute;
1046
- right: 18px;
1047
- top: 18px;
1048
- }
1049
-
1050
- .sfsi_outr_div h2 {
1051
- color: #778088;
1052
- font-family: helveticaregular;
1053
- font-size: 26px;
1054
- margin: 0 0 9px;
1055
- padding: 0;
1056
- text-align: center;
1057
- font-weight: 400;
1058
- }
1059
-
1060
- .sfsi_outr_div ul li a {
1061
- color: #5A6570;
1062
- text-decoration: none;
1063
- }
1064
-
1065
- .sfsi_outr_div ul li {
1066
- display: inline-block;
1067
- list-style: none;
1068
- margin: 0;
1069
- padding: 0;
1070
- float: none;
1071
- }
1072
-
1073
- .expanded-area {
1074
- display: none;
1075
- }
1076
-
1077
- .sfsi_wicons a {
1078
- -webkit-transition: all .2s ease-in-out;
1079
- -moz-transition: all .2s ease-in-out;
1080
- -o-transition: all .2s ease-in-out;
1081
- -ms-transition: all .2s ease-in-out;
1082
- }
1083
-
1084
- .scale,
1085
- .scale-div {
1086
- -webkit-transform: scale(1.1);
1087
- -moz-transform: scale(1.1);
1088
- -o-transform: scale(1.1);
1089
- transform: scale(1.1);
1090
- }
1091
-
1092
- .sfsi_Sicons {
1093
- float: left;
1094
- }
1095
-
1096
- .sfsi_Sicons .sf_subscrbe {
1097
- margin: 2px 3px 3px 0;
1098
- line-height: 20px;
1099
- }
1100
-
1101
- .sfsi_Sicons .sf_fb {
1102
- margin: 0 4px 0 5px;
1103
- line-height: 20px;
1104
- }
1105
-
1106
- .sfsi_Sicons .sf_twiter {
1107
- margin: 2px 7px 0 4px;
1108
- line-height: 17px;
1109
- }
1110
-
1111
- .sfsi_Sicons.left .sf_subscrbe {
1112
- margin: 2px 8px 3px 0;
1113
- }
1114
-
1115
- .sfsi_Sicons.left .sf_fb {
1116
- margin: 0 8px 0 0;
1117
- }
1118
-
1119
- .sfsi_Sicons.left .sf_twiter {
1120
- margin: 2px 7px 0 0;
1121
- }
1122
-
1123
- .sfsi_Sicons.right .sf_subscrbe {
1124
- margin: 2px 0 3px;
1125
- }
1126
-
1127
- .sfsi_Sicons.right .sf_fb {
1128
- margin: 0 0 0 7px;
1129
- }
1130
-
1131
- .sfsi_Sicons.right .sf_twiter {
1132
- margin: 2px 0 0 8px;
1133
- }
1134
-
1135
- .sfsi_Sicons .sf_subscrbe,
1136
- .sfsi_Sicons .sf_twiter {
1137
- position: relative;
1138
- width: 75px;
1139
- }
1140
-
1141
- .sfsi_Sicons .sf_twiter iframe {
1142
- margin: 0px;
1143
- height: 20px !important;
1144
- overflow: visible !important;
1145
- }
1146
-
1147
- .sfsi_Sicons .sf_twiter iframe #widget {
1148
- overflow: visible !important;
1149
- }
1150
-
1151
- .sfsi_Sicons .sf_subscrbe a {
1152
- width: auto;
1153
- float: left;
1154
- border: medium none;
1155
- padding-top: 0px;
1156
- }
1157
-
1158
- .sfsi_Sicons .sf_subscrbe a:focus {
1159
- outline: medium none;
1160
- }
1161
-
1162
- .sfsi_Sicons .sf_subscrbe a img {
1163
- width: 65px;
1164
- float: left;
1165
- height: 20px !important;
1166
- }
1167
-
1168
- .sfsi_Sicons .sf_fb {
1169
- position: relative;
1170
- width: 75px;
1171
- }
1172
-
1173
- .sfsi_Sicons .fb_iframe_widget {
1174
- float: left;
1175
- /*min-width: 98px;*/
1176
- width: 73px;
1177
- margin: 2px 0 0;
1178
- }
1179
-
1180
- .sfsi_pop_up .button a:hover {
1181
- color: #fff;
1182
- }
1183
-
1184
- .sfsi_pop_up .button:hover {
1185
- background: #12a252;
1186
- color: #fff;
1187
- border: none;
1188
- }
1189
-
1190
- ul.icn_listing li .right_info a {
1191
- outline: 0;
1192
- font-family: helveticaregular;
1193
- }
1194
-
1195
- .upload_pop_up .upload_butt {
1196
- line-height: 27px;
1197
- margin-left: 6px;
1198
- }
1199
-
1200
- .drop_lsts {
1201
- left: 220px;
1202
- position: relative;
1203
- top: -40px;
1204
- }
1205
-
1206
- .drop_lsts .styled {
1207
- top: -42px;
1208
- width: 127px;
1209
- height: 33px;
1210
- }
1211
-
1212
- .drop_lsts span {
1213
- line-height: 50px;
1214
- }
1215
-
1216
- .drag_drp {
1217
- left: 11px;
1218
- position: relative;
1219
- top: 38px;
1220
- font-size: 17px;
1221
- }
1222
-
1223
- .listing ul li label {
1224
- width: 224px;
1225
- float: left;
1226
- }
1227
-
1228
- .row_onl {
1229
- width: 100%;
1230
- float: left;
1231
- }
1232
-
1233
- #sfsi_Show_popupOn_PageIDs option.sel-active {
1234
- background: #f7941d;
1235
- }
1236
-
1237
- .sfsi_inside div iframe {
1238
- float: left;
1239
- margin: 0;
1240
- }
1241
-
1242
- .sfsi_inside div #___plus_0,
1243
- .sfsi_inside div #___plusone_0 {
1244
- height: 27px;
1245
- }
1246
-
1247
- .sfsi_outr_div li {
1248
- float: left;
1249
- }
1250
-
1251
- .sfsi_tool_tip_2 .sfsi_inside div {
1252
- min-height: 0;
1253
- }
1254
-
1255
- #___plus_1>iframe {
1256
- height: 30px;
1257
- }
1258
-
1259
- .main_contant h1 {
1260
- margin: 0 0 19px;
1261
- }
1262
-
1263
- .main_contant p {
1264
- margin: 0 0 26px;
1265
- }
1266
-
1267
- .main_contant p>a {
1268
- color: #1a1d20;
1269
- text-decoration: underline;
1270
- }
1271
-
1272
- .tab1 .gary_bg {
1273
- background: #f1f1f1;
1274
- }
1275
-
1276
- #accordion {
1277
- margin-top: 25px;
1278
- }
1279
-
1280
- .main_contant p>a,
1281
- .tab1 p span {
1282
- font-family: helveticabold;
1283
- }
1284
-
1285
- .wapper .ui-accordion-header-active {
1286
- margin-top: 20px !important;
1287
- }
1288
-
1289
- .wapper .tab2 {
1290
- padding: 20px 33px 12px 34px !important;
1291
- }
1292
-
1293
- .wapper .tab2 p {
1294
- margin-bottom: 6px;
1295
- }
1296
-
1297
- .tab2 .twt_tab_2 label {
1298
- width: 175px;
1299
- }
1300
-
1301
- .tab2 .twt_fld {
1302
- margin: 16px 0 23px;
1303
- float: left;
1304
- }
1305
-
1306
- .tab2 .twt_fld_2 {
1307
- margin: 0 0 12px;
1308
- float: left;
1309
- }
1310
-
1311
- .tab2 .utube_inn {
1312
- padding-bottom: 2px;
1313
- float: left;
1314
- }
1315
-
1316
- .tab2 .utube_inn label {
1317
- max-width: 90%
1318
- }
1319
-
1320
- .tab2 .utube_inn label span {
1321
- font-family: helveticabold;
1322
- }
1323
-
1324
- .tab2 .inr_cont p>a {
1325
- font-family: helveticaneue-light;
1326
- color: #778088;
1327
- text-decoration: underline;
1328
- }
1329
-
1330
- .pinterest_section .inr_cont .pint_url {
1331
- float: left;
1332
- padding-top: 6px;
1333
- clear: both;
1334
- }
1335
-
1336
- .pinterest_section .inr_cont .add {
1337
- width: 417px !important;
1338
- }
1339
-
1340
- .linkedin_section .link_1,
1341
- .linkedin_section .link_2,
1342
- .linkedin_section .link_3,
1343
- .linkedin_section .link_4 {
1344
- float: left;
1345
- width: 100%
1346
- }
1347
-
1348
- .linkedin_section .link_1 input.add,
1349
- .linkedin_section .link_2 input.add,
1350
- .linkedin_section .link_3 input.add,
1351
- .linkedin_section .link_4 input.add {
1352
- width: 417px;
1353
- }
1354
-
1355
- .linkedin_section .link_1 {
1356
- margin-bottom: 7px;
1357
- }
1358
-
1359
- .linkedin_section .link_2 {
1360
- margin-bottom: 12px;
1361
- }
1362
-
1363
- .linkedin_section .link_3,
1364
- .linkedin_section .link_4 {
1365
- margin-bottom: 13px;
1366
- }
1367
-
1368
- .tab2 .linkedin_section .link_4 {
1369
- margin-bottom: 0;
1370
- }
1371
-
1372
- ul.tab_3_list li span {
1373
- font-family: helveticaregular;
1374
- }
1375
-
1376
- #accordion .tab4 h4,
1377
- #accordion1 .tab4 h4 {
1378
- color: #414951;
1379
- font-size: 20px;
1380
- }
1381
-
1382
- .specify_counts .listing li .input {
1383
- width: 73px;
1384
- }
1385
-
1386
- .sfsi_fbpgidwpr {
1387
- width: 160px;
1388
- float: left;
1389
- font-weight: bold;
1390
- font-size: 17px;
1391
- color: #000000;
1392
- }
1393
-
1394
- .sfsi_fbpgiddesc {
1395
- font-weight: normal;
1396
- width: 42%;
1397
- font-size: 14px;
1398
- color: #888888;
1399
- padding: 4px 0 0 60px;
1400
- }
1401
-
1402
- .specify_counts .listing li .input.mypginpt {
1403
- width: 288px;
1404
- }
1405
-
1406
- .tab3 .Shuffle_auto .sub_sub_box .tab_3_option {
1407
- padding-top: 0 !important;
1408
- margin-bottom: 10px !important;
1409
- }
1410
-
1411
- .tab4 {
1412
- padding-top: 35px !important;
1413
- }
1414
-
1415
- .tab4 .save_button {
1416
- padding-top: 46px;
1417
- }
1418
-
1419
- .tab5 {
1420
- padding-top: 31px !important;
1421
- }
1422
-
1423
- .tab6,
1424
- .tab7 {
1425
- padding-top: 28px !important;
1426
- }
1427
-
1428
- .tab5 .row_onl {
1429
- margin-top: 15px;
1430
- }
1431
-
1432
- .tab5 .sticking .link>a {
1433
- color: #a4a9ad;
1434
- text-decoration: underline;
1435
- }
1436
-
1437
- .tab5 .mouse_txt h4 {
1438
- /*margin-bottom: 8px!important;*/
1439
- padding-bottom: 30px !important;
1440
- }
1441
-
1442
- .tab5 .save_button {
1443
- padding-top: 54px;
1444
- }
1445
-
1446
- .tab7 .like_pop_box h2 {
1447
- font-family: helveticabold;
1448
- text-align: center;
1449
- color: #414951;
1450
- font-size: 26px;
1451
- }
1452
-
1453
- .tab1 ul.icn_listing li .right_info label:hover {
1454
- text-decoration: none !important;
1455
- }
1456
-
1457
- .tab1 ul.icn_listing li .right_info label.expanded-area {
1458
- clear: both;
1459
- float: left;
1460
- margin-top: 14px;
1461
- width: 100%;
1462
- }
1463
-
1464
- .tab7 .space {
1465
- margin-top: 14px;
1466
- }
1467
-
1468
- .tab7 .pop_up_show label {
1469
- font-family: helveticaregular !important;
1470
- }
1471
-
1472
- .tab7 .save_button {
1473
- padding-top: 78px;
1474
- }
1475
-
1476
- .like_txt a {
1477
- text-decoration: none;
1478
- font-family: helveticaregular;
1479
- }
1480
-
1481
- .bdr_btm_non {
1482
- border-bottom: none !important;
1483
- }
1484
-
1485
- .tab1 .tab_1_sav {
1486
- padding-top: 13px;
1487
- }
1488
-
1489
- #accordion .tab2 .facebook_section .inr_cont p.extra_sp,
1490
- #accordion1 .tab2 .facebook_section .inr_cont p.extra_sp {
1491
- padding-top: 7px;
1492
- }
1493
-
1494
- .tab2 .custom_section {
1495
- width: 100%
1496
- }
1497
-
1498
- .tab7 {
1499
- padding-bottom: 40px !important;
1500
- }
1501
-
1502
- .tab9 .save_button {
1503
- padding-top: 40px;
1504
- }
1505
-
1506
- .tab9 .save_button a {
1507
- padding: 16px 0;
1508
- }
1509
-
1510
- .tab2 .twitter_section .twt_fld input.add,
1511
- .tab2 .twitter_section .twt_fld_2 textarea.add_txt {
1512
- width: 464px !important;
1513
- }
1514
-
1515
- .tab2 .utube_inn .fb_url label span {
1516
- font-family: helveticaneue-light;
1517
- }
1518
-
1519
- .tab1 label,
1520
- .tab2 label,
1521
- .tab3 label,
1522
- .tab4 label,
1523
- .tab5 label,
1524
- .tab6 label,
1525
- .tab7 label,
1526
- .tab8 label {
1527
- cursor: default !important;
1528
- }
1529
-
1530
- .tab5 .new_wind h4 {
1531
- margin-bottom: 11px !important;
1532
- }
1533
-
1534
- .pop_up_box .fb_2 span {
1535
- height: 28px !important;
1536
- }
1537
-
1538
- .pop_up_box .sfsi_tool_tip_2 .fbb .fb_1 a {
1539
- margin-top: 0;
1540
- }
1541
-
1542
- .tab6 .social_icon_like1 ul li span {
1543
- margin-top: -1px;
1544
- }
1545
-
1546
- #sfpageLoad {
1547
- background: url(../images/ajax-loader.gif) 50% 50% no-repeat #F9F9F9;
1548
- height: 100%;
1549
- left: 160px;
1550
- opacity: 1;
1551
- position: fixed;
1552
- top: 0;
1553
- width: 92%;
1554
- z-index: 9999;
1555
- }
1556
-
1557
- .sfsi_tool_tip_2,
1558
- .tool_tip {
1559
- background: #FFF;
1560
- border: 1px solid #e7e7e7;
1561
- box-shadow: #e7e7e7 0 0 2px 1px;
1562
- display: block;
1563
- float: left;
1564
- margin: 0 0 0 -52px;
1565
- padding: 5px 14px 5px 14px;
1566
- position: absolute;
1567
- z-index: 10000;
1568
- border-bottom: #e5e5e5 solid 4px;
1569
- width: 100px;
1570
- }
1571
-
1572
- .sfsi_tool_tip_2 {
1573
- display: inline-table;
1574
- }
1575
-
1576
- .inerCnt,
1577
- .inerCnt:hover,
1578
- .inerCnt>a,
1579
- .inerCnt>a:hover,
1580
- .widget-area .widget a {
1581
- outline: 0;
1582
- }
1583
-
1584
- .sfsi_tool_tip_2_inr {
1585
- bottom: 90%;
1586
- left: 20%;
1587
- opacity: 0;
1588
- }
1589
-
1590
- .sfsi_tool_tip_2 .bot_arow {
1591
- background: url(../images/bot_tip_icn.png) no-repeat;
1592
- position: absolute;
1593
- bottom: -21px;
1594
- left: 50%;
1595
- width: 15px;
1596
- height: 21px;
1597
- margin-left: -5px;
1598
- }
1599
-
1600
- .sfsi_tool_tip_2 .top_big_arow {
1601
- position: absolute;
1602
- -webkit-transform: rotate(180deg);
1603
- -moz-transform: rotate(180deg);
1604
- -ms-transform: rotate(180deg);
1605
- -o-transform: rotate(180deg);
1606
- transform: rotate(180deg);
1607
- top: -21px;
1608
- left: 50%;
1609
- width: 15px;
1610
- height: 21px;
1611
- margin-right: -5px;
1612
- }
1613
-
1614
- .sfsi_tool_tip_2_inr .gpls_visit>a,
1615
- .sfsi_tool_tip_2_inr .prints_visit_1 a,
1616
- .sfsi_tool_tip_2_inr .utub_visit>a {
1617
- margin-top: 0;
1618
- }
1619
-
1620
- .sfsi_tool_tip_2_inr .linkin_1 a,
1621
- .sfsi_tool_tip_2_inr .linkin_2 a,
1622
- .sfsi_tool_tip_2_inr .linkin_3 a,
1623
- .sfsi_tool_tip_2_inr .linkin_4 a,
1624
- .sfsi_tool_tip_2_inr .prints_visit a {
1625
- margin: 0;
1626
- }
1627
-
1628
- .sfsiTlleftBig {
1629
- bottom: 121%;
1630
- left: 22%;
1631
- margin-left: -54%
1632
- }
1633
-
1634
- .sfsiTlleft {
1635
- bottom: 100%;
1636
- left: 50%;
1637
- margin-left: -66px;
1638
- margin-bottom: 2px;
1639
- }
1640
-
1641
- .sfsi_plc_btm {
1642
- bottom: auto;
1643
- top: 100%;
1644
- left: 50%;
1645
- margin-left: -63px;
1646
- margin-top: -6px;
1647
- margin-bottom: auto;
1648
- }
1649
-
1650
- .inerCnt {
1651
- position: relative;
1652
- z-index: inherit !important;
1653
- float: left;
1654
- width: 100%;
1655
- float: left;
1656
- }
1657
-
1658
- .sfsi_wicons {
1659
- margin-bottom: 30px;
1660
- position: relative;
1661
- padding-top: 5px;
1662
- }
1663
-
1664
- .norm_row .bot_no {
1665
- position: absolute;
1666
- padding: 1px 0;
1667
- font-size: 12px !important;
1668
- text-align: center;
1669
- line-height: 12px !important;
1670
- background: #fff;
1671
- border-radius: 5px;
1672
- left: 50%;
1673
- margin-left: -20px;
1674
- z-index: 9;
1675
- border: 1px solid #333;
1676
- top: 100%;
1677
- white-space: pre;
1678
- -webkit-box-sizing: border-box;
1679
- -moz-box-sizing: border-box;
1680
- box-sizing: border-box;
1681
- margin-top: 0px;
1682
- width: 40px;
1683
- }
1684
-
1685
- .norm_row .bot_no:before {
1686
- content: url(images/count_top_arow.png);
1687
- position: absolute;
1688
- height: 9px;
1689
- margin-left: -7.5px;
1690
- top: -10px;
1691
- left: 50%;
1692
- width: 15px;
1693
- }
1694
-
1695
- .bot_no.sfsiSmBtn {
1696
- font-size: 10px;
1697
- margin-top: 4px;
1698
- }
1699
-
1700
- .bot_no.sfsiSmBtn:before {
1701
- margin-left: -8px;
1702
- top: -9px;
1703
- }
1704
-
1705
- .norm_row .cbtn_vsmall {
1706
- font-size: 9px;
1707
- left: -28%;
1708
- top: 4px;
1709
- }
1710
-
1711
- .norm_row .cbtn_vsmall:before {
1712
- left: 31%;
1713
- top: -9px;
1714
- margin-left: -31%
1715
- }
1716
-
1717
- h2.optional {
1718
- font-family: helveticaregular;
1719
- font-size: 25px;
1720
- margin: 14px 0 19px;
1721
- color: #5a6570;
1722
- }
1723
-
1724
- .utube_tool_bdr .utub_visit {
1725
- margin: 9px 0 0;
1726
- height: 24px;
1727
- display: inline-block;
1728
- float: none;
1729
- }
1730
-
1731
- .utube_tool_bdr .utub_2 {
1732
- margin: 9px 0 0;
1733
- height: 24px;
1734
- width: 86px;
1735
- display: inline-block;
1736
- float: none;
1737
- }
1738
-
1739
- .printst_tool_bdr {
1740
- width: 79px;
1741
- }
1742
-
1743
- .printst_tool_bdr .prints_visit {
1744
- margin: 0 0 10px -22px;
1745
- }
1746
-
1747
- .printst_tool_bdr .prints_visit_1 {
1748
- margin: 0 0 0 -53px;
1749
- }
1750
-
1751
- .fb_tool_bdr {
1752
- width: 68px;
1753
- height: auto;
1754
- }
1755
-
1756
- .fb_tool_bdr .sfsi_inside {
1757
- text-align: center;
1758
- width: 100%;
1759
- float: left;
1760
- overflow: hidden;
1761
- }
1762
-
1763
- .fb_tool_bdr .sfsi_inside .icon1 {
1764
- /* margin: 0 0 -5px 0;*/
1765
- margin: 2px 0px 4px 0;
1766
- height: auto;
1767
- display: inline-block;
1768
- float: none;
1769
- width: 62px;
1770
- }
1771
-
1772
- .fb_tool_bdr .sfsi_inside .icon2 {
1773
- margin: 2px 0 3px 0 !important;
1774
- height: auto;
1775
- width: 53px;
1776
- display: inline-block;
1777
- overflow: hidden;
1778
- }
1779
-
1780
- .fb_tool_bdr .sfsi_inside .icon3 {
1781
- margin: 2px 0 2px 0;
1782
- height: auto;
1783
- width: 62px;
1784
- display: inline-block;
1785
- float: none;
1786
- }
1787
-
1788
- .fb_tool_bdr .sfsi_inside .fb_1,
1789
- .fb_tool_bdr .sfsi_inside .fb_2,
1790
- .fb_tool_bdr .sfsi_inside .fb_3 {
1791
- margin: 9px 0 0;
1792
- height: 25px;
1793
- }
1794
-
1795
- .printst_tool_bdr .sfsi_inside {
1796
- text-align: center;
1797
- float: left;
1798
- width: 100%
1799
- }
1800
-
1801
- .printst_tool_bdr .sfsi_inside .icon1 {
1802
- /* margin: 2px 0;*/
1803
- margin: 3px 0 3px 0;
1804
- /* height: 24px;*/
1805
- height: auto;
1806
- display: inline-block;
1807
- float: none;
1808
- width: 73px;
1809
- }
1810
-
1811
- .printst_tool_bdr .sfsi_inside .icon2 {
1812
- /* margin: 2px 0;*/
1813
- margin: 2px 0 2px 0;
1814
- height: auto;
1815
- display: inline-block;
1816
- float: none;
1817
- max-width: 73px;
1818
- width: auto;
1819
- }
1820
-
1821
- .printst_tool_bdr .sfsi_inside .prints_visit,
1822
- .printst_tool_bdr .sfsi_inside .prints_visit_1 {
1823
- margin: 9px 0 0;
1824
- height: 20px;
1825
- float: none;
1826
- display: inline-block;
1827
- }
1828
-
1829
- .printst_tool_bdr {
1830
- margin-left: -59px;
1831
- }
1832
-
1833
- .fb_tool_bdr .sfsi_inside .icon1>a>img,
1834
- .gpls_tool_bdr .sfsi_inside .icon1>a>img,
1835
- .linkedin_tool_bdr .sfsi_inside .icon1>a>img,
1836
- .linkedin_tool_bdr .sfsi_inside .icon4>a>img,
1837
- .printst_tool_bdr .sfsi_inside .icon1>a>img,
1838
- .printst_tool_bdr .sfsi_inside .icon2>a>img,
1839
- .utube_tool_bdr .sfsi_inside .icon1>a>img {
1840
- padding-top: 0;
1841
- }
1842
-
1843
- .gpls_tool_bdr {
1844
- width: 76px;
1845
- }
1846
-
1847
- .gpls_tool_bdr .sfsi_inside .icon1>a>img {
1848
- padding-top: 0;
1849
- }
1850
-
1851
- .gpls_tool_bdr .sfsi_inside {
1852
- text-align: center;
1853
- width: 100%;
1854
- float: left;
1855
- }
1856
-
1857
- .gpls_tool_bdr .sfsi_inside .icon1 {
1858
- margin: 2px 0;
1859
- display: inline-block;
1860
- float: none;
1861
- height: 29px;
1862
- width: 76px;
1863
- }
1864
-
1865
- .gpls_tool_bdr .sfsi_inside .icon2 {
1866
- margin: 2px 0 3px 0;
1867
- display: inline-block;
1868
- float: none;
1869
- height: 24px;
1870
- width: 38px;
1871
- }
1872
-
1873
- .gpls_tool_bdr .sfsi_inside .icon3 {
1874
- margin: 3px 0 2px 0;
1875
- display: inline-block;
1876
- float: none;
1877
- height: 24px;
1878
- width: 76px;
1879
- }
1880
-
1881
- .gpls_tool_bdr .sfsi_inside .gpls_visit,
1882
- .gpls_tool_bdr .sfsi_inside .gtalk_2,
1883
- .gpls_tool_bdr .sfsi_inside .gtalk_3 {
1884
- margin: 9px 0 0;
1885
- height: 29px;
1886
- }
1887
-
1888
- .pop_up_box_ex.sfsi_pop_up .fb_tool_bdr,
1889
- .gpls_tool_bdr,
1890
- .linkedin_tool_bdr,
1891
- .twt_tool_bdr {
1892
- bottom: 100%;
1893
- left: 50%;
1894
- margin-bottom: -12px;
1895
- }
1896
-
1897
- .fb_tool_bdr,
1898
- .gpls_tool_bdr,
1899
- .linkedin_tool_bdr,
1900
- .twt_tool_bdr {
1901
- bottom: 100%;
1902
- left: 50%;
1903
- margin-bottom: 8px;
1904
- }
1905
-
1906
- .printst_tool_bdr {
1907
- bottom: 80%;
1908
- left: 50%;
1909
- /* margin-bottom: 2px;*/
1910
- margin-bottom: 0px;
1911
- margin-bottom: 18px;
1912
- }
1913
-
1914
- .printst_tool_bdr {
1915
- bottom: 80%;
1916
- left: 50%;
1917
- margin-bottom: 18px;
1918
- }
1919
-
1920
- .twt_tool_bdr .sfsi_inside {
1921
- text-align: center;
1922
- width: 100%;
1923
- float: left;
1924
- }
1925
-
1926
- .twt_tool_bdr .sfsi_inside .cstmicon1 {
1927
- margin: 2px 0px 2px 0 !important;
1928
- /*margin: 2px 0!important; display: inline-block;*/
1929
- float: none;
1930
- width: 62px;
1931
- /* overflow: hidden;*/
1932
- /*height: 20px;*/
1933
- }
1934
-
1935
- .twt_tool_bdr .sfsi_inside .cstmicon1 a img {
1936
- float: left;
1937
- }
1938
-
1939
- .twt_tool_bdr .sfsi_inside .icon1 {
1940
- /*margin: -4px 0 -5px 0 !important;*/
1941
- margin: 5px 0px 3px 0 !important;
1942
- display: inline-block;
1943
- float: none;
1944
- width: 61px;
1945
- /* overflow: hidden;*/
1946
- height: auto;
1947
- }
1948
-
1949
- .twt_tool_bdr .sfsi_inside .icon1 iframe {
1950
- width: 61px !important;
1951
- }
1952
-
1953
- .twt_tool_bdr .sfsi_inside .icon2 {
1954
- margin: 3px 0px 2px 0px !important;
1955
- display: inline-block;
1956
- float: none;
1957
- height: auto;
1958
- width: 58px;
1959
- }
1960
-
1961
- .twt_tool_bdr .sfsi_inside .twt_1 {
1962
- margin: 9px 0 0;
1963
- display: inline-block;
1964
- float: none;
1965
- width: 58px;
1966
- height: 20px;
1967
- overflow: hidden;
1968
- }
1969
-
1970
- .twt_tool_bdr .sfsi_inside .twt_1 iframe {
1971
- width: 100% !important;
1972
- }
1973
-
1974
- .twt_tool_bdr .sfsi_inside .twt_2 {
1975
- margin: 9px 0 0;
1976
- height: 20px;
1977
- display: inline-block;
1978
- float: none;
1979
- width: 58px;
1980
- }
1981
-
1982
- .utube_tool_bdr .sfsi_inside {
1983
- text-align: center;
1984
- width: 100%;
1985
- float: left;
1986
- }
1987
-
1988
- .utube_tool_bdr .sfsi_inside .icon1 {
1989
- /*margin: 5px 0 0;*/
1990
- margin: 4px 0px 3px 0;
1991
- height: 24px;
1992
- display: inline-block;
1993
- float: none;
1994
- width: 96px;
1995
- }
1996
-
1997
- .utube_tool_bdr .sfsi_inside .icon2 {
1998
- /* margin: 9px 0 0;*/
1999
- margin: 2px 0 3px 0 !important;
2000
- height: 24px;
2001
- display: inline-block;
2002
- float: none;
2003
- max-width: 96px;
2004
- width: 82px;
2005
- }
2006
-
2007
- .pop-overlay.read-overlay.ytex-s2 .utube_tool_bdr {
2008
- width: 93px;
2009
- bottom: 100%;
2010
- left: 50%;
2011
- margin-bottom: -12px;
2012
- }
2013
-
2014
- .utube_tool_bdr {
2015
- width: 93px;
2016
- bottom: 100%;
2017
- left: 50%;
2018
- margin-bottom: 8px;
2019
- }
2020
-
2021
- .linkedin_tool_bdr {
2022
- width: 66px;
2023
- }
2024
-
2025
- .linkedin_tool_bdr .sfsi_inside {
2026
- text-align: center;
2027
- float: left;
2028
- width: 100%
2029
- }
2030
-
2031
- .linkedin_tool_bdr .sfsi_inside .icon1 {
2032
- margin: 2px 0 2px 0px;
2033
- display: inline-block;
2034
- float: none;
2035
- /* height: 20px;*/
2036
- width: 100%;
2037
- }
2038
-
2039
- .linkedin_tool_bdr .sfsi_inside .icon2 {
2040
- margin: 2px 0 2px 0px;
2041
- display: inline-block;
2042
- float: none;
2043
- /* height: 20px;*/
2044
- width: 100%;
2045
- }
2046
-
2047
- .linkedin_tool_bdr .sfsi_inside .icon3 {
2048
- margin: 2px 0 2px 0px;
2049
- display: inline-block;
2050
- float: none;
2051
- /* height: 20px;*/
2052
- width: 100%;
2053
- }
2054
-
2055
- .linkedin_tool_bdr .sfsi_inside .icon4 {
2056
- margin: 2px 0 1px 0px;
2057
- display: inline-block;
2058
- float: none;
2059
- /* height: 25px !important;*/
2060
- width: 100%;
2061
- }
2062
-
2063
- .sfsi_FrntInner_chg .linkedin_tool_bdr .sfsi_inside .icon1 {
2064
- margin: 7px 0;
2065
- }
2066
-
2067
- .sfsi_widget .linkedin_tool_bdr .sfsi_inside .icon4,
2068
- .sfsi_widget .gpls_tool_bdr .sfsi_inside .icon1,
2069
- .sfsi_widget .fb_tool_bdr .sfsi_inside .icon1 {
2070
- height: auto
2071
- }
2072
-
2073
- .linkedin_tool_bdr .linkin_1,
2074
- .linkedin_tool_bdr .linkin_2,
2075
- .linkedin_tool_bdr .linkin_3,
2076
- .linkedin_tool_bdr .linkin_4 {
2077
- margin: 9px 0 0 !important;
2078
- height: 20px;
2079
- display: inline-block;
2080
- float: none;
2081
- overflow: hidden;
2082
- }
2083
-
2084
- .twt_tool_bdr {
2085
- width: 62px;
2086
- height: auto;
2087
- }
2088
-
2089
- .twt_tool_bdr .sfsi_inside .icon1>iframe {
2090
- margin: 0 auto !important;
2091
- float: none !important;
2092
- width: 100%
2093
- }
2094
-
2095
- .twt_tool_bdr .sfsi_inside .icon1>iframe #widget {
2096
- text-align: center;
2097
- }
2098
-
2099
- .sfsi_pop_up .button {
2100
- border: none;
2101
- padding: 0;
2102
- }
2103
-
2104
- .pop_up_box .button a {
2105
- color: #fff;
2106
- line-height: normal;
2107
- font-size: 22px;
2108
- text-decoration: none;
2109
- text-align: center;
2110
- width: 482px;
2111
- height: 80px;
2112
- margin: 0;
2113
- display: table-cell;
2114
- vertical-align: middle;
2115
- font-family: helveticabold;
2116
- }
2117
-
2118
- .tab3 ul.tab_3_icns li .radio {
2119
- margin-top: 7px;
2120
- }
2121
-
2122
- .tab3 ul.tab_3_icns li label {
2123
- line-height: 50px !important;
2124
- margin-left: 20px;
2125
- }
2126
-
2127
- .sfsi_mainContainer input[type=email],
2128
- .sfsi_mainContainer input[type=number],
2129
- .sfsi_mainContainer input[type=password],
2130
- .sfsi_mainContainer input[type=search],
2131
- .sfsi_mainContainer input[type=tel],
2132
- .sfsi_mainContainer input[type=text],
2133
- .sfsi_mainContainer input[type=url],
2134
- .sfsi_mainContainer select,
2135
- .sfsi_mainContainer textarea {
2136
- color: #5a6570 !important;
2137
- }
2138
-
2139
- .adminTooltip {
2140
- left: 142px;
2141
- position: absolute;
2142
- }
2143
-
2144
- .adPopWidth {
2145
- min-height: 100px !important;
2146
- }
2147
-
2148
- .main_contant p>a.lit_txt,
2149
- .tab4 p>a {
2150
- font-family: helveticaregular;
2151
- color: #414951;
2152
- }
2153
-
2154
- .tab1 ul.icn_listing li .custom-txt {
2155
- margin-left: 5px;
2156
- }
2157
-
2158
- .tab1 ul.icn_listing li .custom-img {
2159
- margin-left: 18px;
2160
- }
2161
-
2162
- .linkedin_section .link_4>label.anthr_labl {
2163
- height: 94px;
2164
- }
2165
-
2166
- .mediam_txt {
2167
- font-family: helveticabold;
2168
- }
2169
-
2170
- .sfsiCtxt {
2171
- line-height: 51px;
2172
- font-family: helveticaregular;
2173
- font-size: 22px;
2174
- float: left;
2175
- padding-left: 19px;
2176
- color: #5a6570;
2177
- }
2178
-
2179
- .customstep2-img {
2180
- width: 51px;
2181
- float: left;
2182
- }
2183
-
2184
- .tab2 .row h2.custom {
2185
- margin: 15px 0 7px 21px;
2186
- height: 52px;
2187
- line-height: 51px;
2188
- font-family: helveticaregular;
2189
- font-size: 22px;
2190
- }
2191
-
2192
- .custom-links p.cus_link label {
2193
- margin-left: 0;
2194
- }
2195
-
2196
- .pop_up_box .sfsi_tool_tip_2 .fbb .fb_1 a>img:hover {
2197
- opacity: .9;
2198
- }
2199
-
2200
- .tab2 .rss_url_row .sfrsTxt {
2201
- font-size: 17px;
2202
- line-height: 47px;
2203
- margin: 0 0 0 4px;
2204
- font-family: helveticaregular;
2205
- }
2206
-
2207
- .tab2 .rss_url_row .sfrsTxt>strong {
2208
- font-family: helveticaregular;
2209
- }
2210
-
2211
- .tab2 .utube_inn p.extra_pp {
2212
- float: left;
2213
- width: 100%;
2214
- margin: 0 0 0 48px;
2215
- }
2216
-
2217
- .tab2 .utube_inn p.extra_pp label {
2218
- float: left;
2219
- line-height: 41px;
2220
- margin-right: 8px;
2221
- }
2222
-
2223
- .sfsi_inside .icon2 .fb_iframe_widget span {
2224
- width: 500px !important;
2225
- }
2226
-
2227
- @media (max-width:767px) {
2228
- .sfsi_inside .icon2 .fb_iframe_widget span {
2229
- width: auto;
2230
- }
2231
-
2232
- .sfsi_outr_div {
2233
- top: 10%
2234
- }
2235
-
2236
- .sfsi_outr_div h2 {
2237
- font-size: 22px !important;
2238
- line-height: 28px;
2239
- }
2240
-
2241
- .sfsi_wicons {
2242
- padding-top: 0;
2243
- }
2244
- }
2245
-
2246
- .specify_counts .listing li .high_prb {
2247
- height: 41px;
2248
- }
2249
-
2250
- .sfsi_Sicons {
2251
- position: relative;
2252
- }
2253
-
2254
- .sfsi_Sicons .sf_fb {
2255
- position: relative;
2256
- /*z-index: 1;*/
2257
- width: 75px;
2258
- }
2259
-
2260
- .sfsi_Sicons .fb_iframe_widget {
2261
- float: left;
2262
- width: 73px;
2263
- margin: 2px 0 0;
2264
- }
2265
-
2266
- .sfsi_Sicons .sf_fb .fb_iframe_widget>span {
2267
- position: absolute;
2268
- /*width: 450px!important; z-index: 1;*/
2269
- }
2270
-
2271
- .tab2 .utube_inn label {
2272
- font-size: 17px;
2273
- }
2274
-
2275
- .sfsi_plc_btm {
2276
- padding: 5px 14px 9px;
2277
- }
2278
-
2279
- .tab7 .field {
2280
- margin-top: 7px;
2281
- }
2282
-
2283
- .sfsi_outr_div ul li .cmcls img {
2284
- margin-top: 0 !important;
2285
- }
2286
-
2287
- .sfsi_outr_div ul li .inerCnt {
2288
- float: left;
2289
- }
2290
-
2291
- .sfsi_outr_div ul li .inerCnt .bot_no {
2292
- position: absolute;
2293
- padding: 1px 0;
2294
- font-size: 12px !important;
2295
- line-height: 12px !important;
2296
- text-align: center;
2297
- background: #fff;
2298
- border-radius: 5px;
2299
- display: block;
2300
- left: 50%;
2301
- margin-left: -20px;
2302
- border: 1px solid #333;
2303
- white-space: pre;
2304
- -webkit-box-sizing: border-box;
2305
- -moz-box-sizing: border-box;
2306
- box-sizing: border-box;
2307
- margin-top: 6px;
2308
- width: 40px;
2309
- word-break: break-all;
2310
- word-wrap: break-word;
2311
- }
2312
-
2313
- .sfsi_outr_div ul li .inerCnt .bot_no:before {
2314
- content: url(images/count_top_arow.png);
2315
- position: absolute;
2316
- height: 9px;
2317
- margin-left: -7.5px;
2318
- top: -10px;
2319
- left: 50%;
2320
- width: 15px;
2321
- }
2322
-
2323
- .sfsi_outr_div {
2324
- position: fixed;
2325
- width: 100%;
2326
- float: none;
2327
- left: 50%;
2328
- top: 20%;
2329
- margin-left: -50%;
2330
- opacity: 0;
2331
- z-index: -1;
2332
- display: block;
2333
- text-align: center;
2334
- }
2335
-
2336
- .sfsi_outr_div .sfsi_FrntInner_chg {
2337
- display: inline-block;
2338
- padding: 15px 17px 27px 18px;
2339
- background: #FFF;
2340
- border: 1px solid #EDEDED;
2341
- box-shadow: 0 0 5px #CCC;
2342
- margin: 20px;
2343
- position: relative;
2344
- }
2345
-
2346
- .sfsi_FrntInner_chg .sfsiclpupwpr {
2347
- position: absolute;
2348
- right: -10px;
2349
- top: -10px;
2350
- width: 25px;
2351
- cursor: pointer;
2352
- }
2353
-
2354
- .sfsi_FrntInner_chg .sfsiclpupwpr img {
2355
- width: auto;
2356
- float: left;
2357
- border: medium none;
2358
- }
2359
-
2360
- .tab7 .like_pop_box {
2361
- width: 100%;
2362
- margin: 35px auto auto;
2363
- position: relative;
2364
- text-align: center;
2365
- }
2366
-
2367
- .tab7 .like_pop_box .sfsi_Popinner {
2368
- display: inline-block;
2369
- padding: 18px 20px;
2370
- box-shadow: 0 0 5px #ccc;
2371
- -webkit-box-shadow: 0 0 5px #ccc;
2372
- border: 1px solid #ededed;
2373
- background: #FFF;
2374
- }
2375
-
2376
- .tab7 .like_pop_box .sfsi_Popinner h2 {
2377
- margin: 0 0 23px;
2378
- padding: 0;
2379
- color: #414951;
2380
- font-family: helveticabold;
2381
- font-size: 26px;
2382
- text-align: center;
2383
- }
2384
-
2385
- .tab7 .like_pop_box .sfsi_Popinner ul {
2386
- margin: 0;
2387
- padding: 0;
2388
- list-style: none;
2389
- text-align: center;
2390
- }
2391
-
2392
- .tab7 .like_pop_box .sfsi_Popinner ul li {
2393
- margin: 0;
2394
- padding: 0;
2395
- list-style: none;
2396
- display: inline-block;
2397
- }
2398
-
2399
- .tab7 .like_pop_box .sfsi_Popinner ul li span {
2400
- margin: 0;
2401
- width: 54px;
2402
- display: block;
2403
- background: url(../images/count_bg.png) no-repeat;
2404
- height: 24px;
2405
- overflow: hidden;
2406
- padding: 10px 2px 2px;
2407
- font-family: helveticaregular;
2408
- font-size: 16px;
2409
- text-align: center;
2410
- line-height: 24px;
2411
- color: #5a6570;
2412
- }
2413
-
2414
- .tab7 .like_pop_box .sfsi_Popinner ul li a {
2415
- color: #5a6570;
2416
- text-decoration: none;
2417
- }
2418
-
2419
- .sfsi_outr_div .sfsi_FrntInner_chg .sfsi_wicons {
2420
- margin-bottom: 0;
2421
- }
2422
-
2423
- .sfsi_outr_div ul {
2424
- list-style: none;
2425
- margin: 0 0 24px;
2426
- padding: 0;
2427
- text-align: center;
2428
- }
2429
-
2430
- a.sfsiColbtn {
2431
- color: #5a6570 !important;
2432
- float: right;
2433
- font-size: 14px;
2434
- margin: -35px -30px 0 0;
2435
- position: relative;
2436
- right: 0;
2437
- font-family: helveticaregular;
2438
- width: 100px;
2439
- text-decoration: none;
2440
- }
2441
-
2442
- .tab3 a.sfsiColbtn {
2443
- margin-top: -43px;
2444
- }
2445
-
2446
- .sfsi_FrntInner_chg ul li:first-of-type .sfsi_wicons {
2447
- margin-left: 0 !important;
2448
- }
2449
-
2450
- ul.tab_3_icns li .trans_bg {
2451
- background: #000;
2452
- padding-left: 3px;
2453
- }
2454
-
2455
- .tab2 .instagram_section {
2456
- padding-bottom: 20px;
2457
- }
2458
-
2459
- h1.abt_titl {
2460
- text-align: center;
2461
- margin: 19% 0 0;
2462
- }
2463
-
2464
- .sfcm.sfsi_wicon {
2465
- padding: 0;
2466
- width: 100%;
2467
- border: medium none;
2468
- }
2469
-
2470
- .fb_iframe_widget span {
2471
- vertical-align: top !important;
2472
- }
2473
-
2474
- .sfsi_outr_div .sfsi_FrntInner_chg ul {
2475
- margin: 0 0 0 3px;
2476
- }
2477
-
2478
- .sfsi_outr_div .sfsi_FrntInner_chg ul li {
2479
- margin: 0 3px 0 0;
2480
- }
2481
-
2482
- .sfcm.sfsi_wicon {
2483
- margin: -1px;
2484
- padding: 0;
2485
- }
2486
-
2487
- @media (min-width:320px) and (max-width:480px) {
2488
-
2489
- .sfsi_tool_tip_2,
2490
- .tool_tip {
2491
- padding: 5px 14px 0;
2492
- }
2493
-
2494
- .sfsi_inside:last-child {
2495
- margin-bottom: 18px;
2496
- clear: both;
2497
- }
2498
-
2499
- .sfsi_outr_div {
2500
- top: 10%;
2501
- }
2502
-
2503
- .sfsi_FrntInner_chg .sfsi_wicons {
2504
- width: 31px !important;
2505
- height: 31px !important;
2506
- }
2507
-
2508
- .sfsi_FrntInner_chg .sfsi_wicons img {
2509
- width: 100%;
2510
- }
2511
-
2512
- .sfsi_Sicons .sf_fb {
2513
- margin-bottom: 24px;
2514
- }
2515
-
2516
- .sfsi_Sicons .sf_twiter {
2517
- margin-bottom: 4px;
2518
- }
2519
- }
2520
-
2521
- @media (max-width:320px) {
2522
-
2523
- .sfsi_tool_tip_2,
2524
- .tool_tip {
2525
- padding: 5px 14px 0;
2526
- }
2527
-
2528
- .sfsi_inside:last-child {
2529
- margin-bottom: 18px;
2530
- clear: both;
2531
- }
2532
-
2533
- .sfsi_FrntInner_chg .sfsi_wicons {
2534
- width: 31px !important;
2535
- height: 31px !important;
2536
- }
2537
-
2538
- .sfsi_FrntInner_chg .sfsi_wicons img {
2539
- width: 100%
2540
- }
2541
- }
2542
-
2543
- ul.SFSI_lsngfrm {
2544
- float: left;
2545
- /* width: 61%;*/
2546
- width: 51.33%;
2547
- padding-left: 60px !important;
2548
- }
2549
-
2550
- ul.SFSI_instructions {
2551
- float: left;
2552
- width: 35%;
2553
- }
2554
-
2555
- li.youtube_options {
2556
- padding-left: 60px !important;
2557
- }
2558
-
2559
- input[name="sfsi_pinterest_manualCounts"] {
2560
- margin-left: -20px !important;
2561
- }
2562
-
2563
- ul.SFSI_instructions li {
2564
- font-size: 12px !important;
2565
- line-height: 25px !important;
2566
- margin: 0 !important;
2567
- padding: 0 0 0 15px !important;
2568
- width: 100%
2569
- }
2570
-
2571
- /*{Monad}*/
2572
- /*Upload Skins css*/
2573
- .cstmskin_popup {
2574
- width: 500px;
2575
- background: #FFF;
2576
- box-shadow: 0 0 5px 3px #d8d8d8;
2577
- margin: 40px 0px auto;
2578
- padding: 20px 25px 20px;
2579
- font-family: helveticaregular;
2580
- color: #5a6570;
2581
- height: auto;
2582
- float: left;
2583
- position: relative;
2584
- left: 35%;
2585
- }
2586
-
2587
- .cstomskins_wrpr {
2588
- float: left;
2589
- width: 100%;
2590
- }
2591
-
2592
- .custskinmsg {
2593
- float: left;
2594
- font-size: 15px;
2595
- margin-top: 10px;
2596
- width: 100%;
2597
- }
2598
-
2599
- .custskinmsg>ul {
2600
- color: #000;
2601
- float: left;
2602
- margin-top: 8px;
2603
- width: 100%;
2604
- }
2605
-
2606
- ul.cstmskin_iconlist {
2607
- float: left;
2608
- padding: 11px 0 40px 8px;
2609
- width: 100%;
2610
- max-width: 1000px;
2611
- margin: 0;
2612
- height: 307px;
2613
- overflow-y: scroll;
2614
- }
2615
-
2616
- .placethemanulywpr {
2617
- max-width: 98% !important
2618
- }
2619
-
2620
- .cstmskin_iconlist>li {
2621
- float: left;
2622
- margin: 3px 0;
2623
- width: 100%;
2624
- }
2625
-
2626
- .cstm_icnname {
2627
- float: left;
2628
- width: 30%;
2629
- }
2630
-
2631
- .cstmskins_btn>img {
2632
- float: left;
2633
- margin-right: 25px;
2634
- }
2635
-
2636
- .cstmskin_btn {
2637
- width: auto;
2638
- float: left;
2639
- padding: 3px 20px;
2640
- color: #fff;
2641
- background-color: #12a252;
2642
- text-decoration: none;
2643
- margin: 0 10px;
2644
- }
2645
-
2646
- .cstmskins_sbmt {
2647
- width: 100%;
2648
- float: left;
2649
- text-align: center;
2650
- margin-top: 15px;
2651
- }
2652
-
2653
- .done_btn {
2654
- width: auto;
2655
- padding: 3px 80px;
2656
- color: #fff;
2657
- background-color: #12a252;
2658
- text-decoration: none;
2659
- font-size: 18px;
2660
- }
2661
-
2662
- .cstmskin_btn:hover,
2663
- .done_btn:hover,
2664
- .cstmskin_btn:focus,
2665
- .done_btn:focus {
2666
- color: #fff;
2667
- }
2668
-
2669
- .skswrpr,
2670
- .dlt_btn {
2671
- display: none;
2672
- }
2673
-
2674
- .cstmutbewpr {
2675
- width: 100%;
2676
- float: left;
2677
- margin-top: 10px;
2678
- margin-left: 40px;
2679
- }
2680
-
2681
- .cstmutbewpr ul.enough_waffling li {
2682
- width: auto;
2683
- float: left;
2684
- margin-right: 20px;
2685
- }
2686
-
2687
- .cstmutbewpr ul.enough_waffling li span {
2688
- float: left;
2689
- }
2690
-
2691
- .cstmutbewpr ul.enough_waffling li label {
2692
- width: auto;
2693
- float: left;
2694
- margin-top: 10px;
2695
- margin-left: 10px;
2696
- }
2697
-
2698
- .cstmutbewpr .cstmutbtxtwpr {
2699
- width: 100%;
2700
- float: left;
2701
- padding-top: 10px;
2702
- }
2703
-
2704
- .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlnmewpr {
2705
- width: 100%;
2706
- float: left;
2707
- display: none;
2708
- }
2709
-
2710
- #accordion .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlnmewpr p,
2711
- #accordion .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlidwpr p {
2712
- margin-left: 0px;
2713
- }
2714
-
2715
- .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlidwpr {
2716
- width: 100%;
2717
- float: left;
2718
- display: none;
2719
- }
2720
-
2721
- #accordion .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlnmewpr p label,
2722
- #accordion .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlidwpr p label {
2723
- width: 120px;
2724
- }
2725
-
2726
- .sfsi_widget .sfsi_wDiv .sfsi_wicons .inerCnt a,
2727
- .sfsi_widget .sfsi_wDiv .sfsi_wicons .inerCnt a.sficn {
2728
- padding: 0px;
2729
- margin: 0px;
2730
- width: 100%;
2731
- float: left;
2732
- border: medium none;
2733
- }
2734
-
2735
- .sfsi_socialwpr {
2736
- width: auto;
2737
- display: inline-block;
2738
- vertical-align: middle;
2739
- }
2740
-
2741
- .sfsi_socialwpr .sf_fb {
2742
- float: left;
2743
- }
2744
-
2745
- .sfsipyplfrm {
2746
- float: left;
2747
- margin-top: 10px;
2748
- width: 100%;
2749
- }
2750
-
2751
- .sfsipyplfrm input[type="submit"] {
2752
- background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
2753
- border: medium none;
2754
- color: #0074a2;
2755
- cursor: pointer;
2756
- font-weight: normal;
2757
- margin: 0;
2758
- padding: 5px 10px;
2759
- text-decoration: underline;
2760
- }
2761
-
2762
- .sfsipyplfrm input[type="submit"]:hover {
2763
- color: #2ea2cc
2764
- }
2765
-
2766
- .pop_up_box_ex {
2767
- background: none repeat scroll 0 0 #fff;
2768
- box-shadow: 0 0 5px 3px #d8d8d8;
2769
- color: #5a6570;
2770
- font-family: helveticaregular;
2771
- margin: 200px auto;
2772
- min-height: 150px;
2773
- padding: 20px 25px 0px;
2774
- position: relative;
2775
- width: 290px;
2776
- }
2777
-
2778
- .pop_up_box_ex {
2779
- color: #5a6570;
2780
- font-family: helveticaregular;
2781
- }
2782
-
2783
- .cstmutbchnlidwpr .utbe_instruction,
2784
- .cstmutbchnlnmewpr .utbe_instruction,
2785
- .lnkdin_instruction {
2786
- float: left;
2787
- line-height: 22px;
2788
- margin-top: 10px;
2789
- width: 100%;
2790
- }
2791
-
2792
- .fb_iframe_widget iframe {
2793
- max-width: none;
2794
- }
2795
-
2796
- .sfsi_mainContainer p.bldtxtmsg {
2797
- float: left;
2798
- font-size: 15px;
2799
- font-weight: bold;
2800
- margin-top: 12px;
2801
- width: 100%;
2802
- text-align: center;
2803
- }
2804
-
2805
- .sfsinewplgndesc {
2806
- background: none repeat scroll 0 0 #e5e5e5;
2807
- float: left;
2808
- padding: 5px 10px 8px;
2809
- margin-top: 25px;
2810
- }
2811
-
2812
- .sfsinewplgndesc>.clear>a {
2813
- color: #5a6570;
2814
- font-weight: bold;
2815
- }
2816
-
2817
- .sfsiicnsdvwrp {
2818
- float: left;
2819
- width: 110px;
2820
- }
2821
-
2822
- .sfsi_Sicons .sf_subscrbe .bot_no {
2823
- background: rgba(0, 0, 0, 0) url(images/count_left_arow.png) no-repeat scroll 0 0 / 27px auto;
2824
- font-size: 12px !important;
2825
- left: 67px;
2826
- line-height: 18px !important;
2827
- margin-left: 0px;
2828
- margin-top: 8px;
2829
- padding: 1px 0;
2830
- position: absolute;
2831
- text-align: center;
2832
- top: -8px;
2833
- white-space: pre;
2834
- width: 33px;
2835
- height: 24px;
2836
- z-index: 9;
2837
- }
2838
-
2839
- .sfsi_wicons a.sficn,
2840
- .sfsi_wicons .sfsi_inside a,
2841
- .sfsi_Sicons div a {
2842
- box-shadow: none;
2843
- border: none;
2844
- }
2845
-
2846
- .sfsi_Sicons .sf_pinit>span {
2847
- height: 20px !important;
2848
- }
2849
-
2850
- .sfsi_Sicons .sf_pinit>span>span {
2851
- width: 38px !important;
2852
- right: -45px !important;
2853
- }
2854
-
2855
- .sfsi_wicons a {
2856
- box-shadow: none !important;
2857
- }
2858
-
2859
- a.sficn {
2860
- cursor: pointer;
2861
- }
2862
-
2863
- .sfsi_Sicons .fb_iframe_widget>span {
2864
- vertical-align: top !important;
2865
- }
2866
-
2867
- .sfsi_Sicons .sf_fb {
2868
- margin: 0 0 0 5px !important;
2869
- }
2870
-
2871
- .disabled_checkbox .sfsi_right_info:before {
2872
- position: absolute;
2873
- content: "";
2874
- width: 500px;
2875
- height: 60px;
2876
- display: inline-block;
2877
- z-index: 99;
2878
- margin-left: -66px;
2879
- margin-top: -14px;
2880
- background: rgba(255, 255, 255, .8);
2881
- }
2882
-
2883
- #sfsi_floater .fb_tool_bdr .sfsi_inside .icon2 {
2884
- /*margin: -2px 0 -5px 0;*/
2885
- }
2886
-
2887
- .sfsi_wechat_follow_overlay {
2888
- position: fixed;
2889
- top: 0;
2890
- width: 100%;
2891
- z-index: 99999;
2892
- background: rgba(0, 0, 0, 0.7);
2893
- }
2894
-
2895
- .sfsi_wechat_follow_overlay .close_btn {
2896
- position: absolute;
2897
- right: 60px;
2898
- top: 60px;
2899
- font-size: 40px;
2900
- line-height: 40px;
2901
- text-decoration: none;
2902
- border: 1px solid #fff;
2903
- padding: 0 10px;
2904
- border-radius: 60px;
2905
- color: #333;
2906
- background-color: #ffff;
2907
- text-decoration: none;
2908
- }
2909
-
2910
- @media (max-width:786px) {
2911
- .sfsi_upload_butt_container {
2912
- display: inline-block;
2913
- }
2914
-
2915
- .upload_butt {
2916
- height: 38px;
2917
- }
2918
-
2919
- .sfsi_wechat_follow_overlay .sfsi_inner_display>div div.sfsi_upload_butt_container:first-child {
2920
- margin-left: 0;
2921
- margin-right: 20px;
2922
- }
2923
- }
2924
-
2925
- /*added by Developer */
2926
- #accordion1 p:nth-child(2) {
2927
- padding-top: 0px !important;
2928
- }
2929
-
2930
- input[name="sfsi_instagram_manualCounts"] {
2931
- margin-left: -15px !important;
2932
- }
2933
-
2934
- .sfsi_prem_cmn_rowlisting {
2935
- width: 33.33%;
2936
- }
2937
-
2938
- .rss_url_row h4 {
2939
- line-height: 43px !important;
2940
- font-size: 17px !important;
2941
- font-family: 'helveticaneue-light' !important;
2942
- }
2943
-
2944
- .cstmutbchnlnmewpr p.extra_pp label {
2945
- width: auto !important;
2946
- }
2947
-
2948
- .cstmutbchnlidwpr p.extra_pp label {
2949
- width: auto !important;
2950
- }
2951
-
2952
- .tab_3_option {
2953
- margin: 10px 0 0;
2954
- }
2955
-
2956
- div.tab3 .sub_row.stand.sec_new {
2957
- margin: 0;
2958
- }
2959
-
2960
- div#custom_social_data_setting h4 {
2961
- padding-bottom: 30px;
2962
- }
2963
-
2964
- .like_pop_box img.sfcm {
2965
- height: 50px;
2966
- width: 50px;
2967
- }
2968
-
2969
- .linkedin_tool_bdr {
2970
- line-height: 0 !important;
2971
- }
2972
-
2973
- .twt_tool_bdr {
2974
- line-height: 0 !important;
2975
- }
2976
-
2977
- div#sfsiid_facebook {
2978
- line-height: 0 !important;
2979
- }
2980
-
2981
- div#sfsiid_youtube {
2982
- line-height: 0 !important;
2983
- }
2984
-
2985
- .printst_tool_bdr {
2986
- line-height: 0 !important;
2987
- }
2988
-
2989
- /*end added by Developer */
2990
- /*by developer - 29-5-2019 */
2991
- ul.SFSI_instructions li,
2992
- ul.SFSI_instructions li a {
2993
- font-size: 17px !important;
2994
- font-family: helveticaregular !important;
2995
- font-weight: 400;
2996
- color: #1a1d20 !important;
2997
- }
2998
-
2999
- body .specify_counts .listing .sfsi_instagramInstruction li {
3000
- font-size: 17px !important;
3001
- font-family: helveticaregular !important;
3002
- font-weight: 400 !important;
3003
- color: #1a1d20 !important;
3004
- line-height: 26px !important;
3005
- }
3006
-
3007
- /*end - 29-5-2019*/
3008
-
3009
- a.pop-up .radio{
3010
- opacity: 0.5;
3011
- background-position: 0px 0px !important;
3012
- /* padding-right: 3px; */
3013
- }
3014
-
3015
- .sfsi_vertically_center{
3016
- display: flex;
3017
- justify-content: space-between;
3018
- align-items: center;
3019
- }
3020
- .sfsi_center{
3021
- display: flex;
3022
- justify-content: center;
3023
- }
3024
- .sfsi_custom_icons_q4{
3025
- display: flex;
3026
- align-items: center;
3027
- }
3028
- .tab6 .sfsi_responsive_icon_option_li .options .first.first.first {
3029
- width: 25%!important;
3030
- }
3031
- .sfsi_responsive_icon_gradient{
3032
- background-image: -webkit-linear-gradient(bottom,rgba(0, 0, 0, 0.17) 0%,rgba(255, 255, 255, 0.17) 100%);
3033
- background-image: -moz-linear-gradient(bottom,rgba(0, 0, 0, 0.17) 0%,rgba(255, 255, 255, 0.17) 100%);
3034
- background-image: linear-gradient(bottom,rgba(0,0,0,.17) 0%,rgba(255,255,255,.17) 100%);
3035
- }
3036
- .tab6 ul.sfsi_icn_listing8 ul.sfsi_tab_3_icns li {
3037
- width: 50%;
3038
- max-width: 450px;
3039
- min-width: 420px;
3040
- padding-left: 0;
3041
- padding-bottom: 0;
3042
- }
3043
- .tab6 .sfsi_tab_3_icns.sfsi_shwthmbfraftr > li {
3044
- width:100% !important;
3045
- max-width:100% !important;
3046
- border-left: 45px solid transparent;
3047
- }
3048
-
3049
- .tab6 ul.sfsi_icn_listing8 li {
3050
- float: left;
3051
- padding: 11px 0 40px 8px;
3052
- width: 100%;
3053
- max-width: 1000px;
3054
- margin: 0;
3055
- }
3056
-
3057
- ul.sfsi_icn_listing8 li .sfsi_right_info a {
3058
- outline: 0;
3059
- font-family: helveticaregular;
3060
- }
3061
- #accordion .tab6 ul.sfsi_tab_3_icns {
3062
- margin-top: 25px;
3063
- }
3064
- .sfsi_tab_3_icns.sfsi_shwthmbfraftr {
3065
- overflow: visible;
3066
- }
3067
- ul.sfsi_tab_3_icns {
3068
- list-style: none;
3069
- margin: 34px 0 0;
3070
- overflow: hidden;
3071
- }
3072
-
3073
- .tab6 ul.sfsi_icn_listing8 li {
3074
- float: left;
3075
- padding: 11px 0 40px 8px;
3076
- width: 100%;
3077
- max-width: 1000px;
3078
- margin: 0;
3079
- }
3080
- .tab6 .sfsi_tab_3_icns.sfsi_shwthmbfraftr .social_icon_like1 li {
3081
- width: auto;
3082
- max-width: auto;
3083
- min-width: auto;
3084
- margin: 0 30px 0 0;
3085
- }
3086
-
3087
- ul.sfsi_tab_3_icns label {
3088
- float: left;
3089
- line-height: 42px;
3090
- color: #69737C;
3091
- font-size: 18px;
3092
- font-family: helveticaregular;
3093
- min-width: 120px;
3094
- }
3095
- .tab6 ul.sfsi_tab_3_icns li label {
3096
- line-height: 50px !important;
3097
- }
3098
-
3099
- #accordion1 .tab6 ul.sfsi_shwthmbfraftr .labelhdng4, #accordion .tab6 ul.sfsi_shwthmbfraftr .row h4.labelhdng4 {
3100
- color: #555;
3101
- font-size: 20px;
3102
- margin-left: 20px;
3103
- font-family: 'helveticaregular';
3104
- }
3105
- .tab6 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns.sfsi_shwthmbfraftr>li:nth-child(1), .tab6 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns.sfsi_shwthmbfraftr>li:nth-child(2){
3106
- width: 50% !important;
3107
- }
3108
-
3109
- .tab6 ul.sfsi_tab_3_icns li .radio{
3110
- margin-top: 7px;
3111
- }
3112
-
3113
- ul.sfsi_icn_listing8 li .tb_4_ck{
3114
- float: left;
3115
- }
3116
- .sfsi_responsive_default_icon_container .radio_section.tb_4_ck, .sfsi_responsive_custom_icon_container .radio_section.tb_4_ck {
3117
- margin: 5px 20px 0 0 !important;
3118
- }
3119
-
3120
- .sfsi_responsive_icon_option_li .options .field .select {
3121
- font-family: helveticaregular;
3122
- font-weight: 400;
3123
- font-size: 17px;
3124
- color: #5a6570!important;
3125
- }
3126
-
3127
- .tab6 ul.sfsi_icn_listing8 ul.sfsi_tab_3_icns .usually li {
3128
- width: 100% !important;
3129
- max-width: 1000px !important;
3130
- padding: 3px 0 5px 5px !important;
3131
- }
3132
- .sfsi_responsive_icons a{
3133
- text-decoration: none!important;
3134
- box-shadow: none!important;
3135
- }
3136
- .sfsi_responsive_icons .sfsi_responsive_icon_facebook_container{ background-color:#336699;}
3137
- .sfsi_responsive_icons .sfsi_responsive_icon_follow_container{ background-color:#00B04E;}
3138
- .sfsi_responsive_icons .sfsi_responsive_icon_twitter_container{ background-color:#55ACEE;}
3139
- .sfsi_small_button {
3140
- line-height: 0px;
3141
- height: unset;
3142
- padding: 6px !important;
3143
- }
3144
- .sfsi_small_button span {
3145
- margin-left: 10px;
3146
- font-size: 16px;
3147
- padding: 0px;
3148
- line-height: 16px;
3149
- vertical-align: -webkit-baseline-middle !important;
3150
- margin-left: 10px;
3151
- }
3152
- .sfsi_small_button img {
3153
- max-height: 16px !important;
3154
- padding: 0px;
3155
- line-height: 0px;
3156
- vertical-align: -webkit-baseline-middle !important;
3157
- }
3158
- .sfsi_medium_button span {
3159
- margin-left: 10px;
3160
- font-size: 18px;
3161
- padding: 0px;
3162
- line-height: 16px;
3163
- vertical-align: -webkit-baseline-middle !important;
3164
- margin-left: 10px;
3165
- }
3166
- .sfsi_medium_button img {
3167
- max-height: 16px !important;
3168
- padding: 0px;
3169
- line-height: 0px;
3170
- vertical-align: -webkit-baseline-middle !important;
3171
- }
3172
- .sfsi_medium_button {
3173
- line-height: 0px;
3174
- height: unset;
3175
- padding: 10px !important;
3176
- }
3177
-
3178
- .sfsi_medium_button span {
3179
- margin-left: 10px;
3180
- font-size: 18px;
3181
- padding: 0px;
3182
- line-height: 16px;
3183
- vertical-align: -webkit-baseline-middle !important;
3184
- margin-left: 10px;
3185
- }
3186
- .sfsi_medium_button img {
3187
- max-height: 16px !important;
3188
- padding: 0px;
3189
- line-height: 0px;
3190
- vertical-align: -webkit-baseline-middle !important;
3191
- }
3192
- .sfsi_medium_button {
3193
- line-height: 0px;
3194
- height: unset;
3195
- padding: 10px !important;
3196
- }
3197
- .sfsi_large_button span {
3198
- font-size: 20px;
3199
- padding: 0px;
3200
- line-height: 16px;
3201
- vertical-align: -webkit-baseline-middle !important;
3202
- display: inline;
3203
- margin-left: 10px;
3204
- }
3205
- .sfsi_large_button img {
3206
- max-height: 16px !important;
3207
- padding: 0px;
3208
- line-height: 0px;
3209
- vertical-align: -webkit-baseline-middle !important;
3210
- display: inline;
3211
- }
3212
- .sfsi_large_button {
3213
- line-height: 0px;
3214
- height: unset;
3215
- padding: 13px !important;
3216
- }
3217
- .sfsi_responsive_icons .sfsi_icons_container span {
3218
- font-family: sans-serif;
3219
- font-size: 15px;
3220
- }
3221
- .sfsi_icons_container_box_fully_container {
3222
- flex-wrap: wrap;
3223
- }
3224
- .sfsi_icons_container_box_fully_container a {
3225
- flex-basis: auto !important;
3226
- flex-grow: 1;
3227
- flex-shrink: 1;
3228
- margin-bottom: 5px;
3229
- }
3230
- .sfsi_icons_container>a {
3231
- float: left!important;
3232
- text-decoration: none!important;
3233
- -webkit-box-shadow: unset!important;
3234
- box-shadow: unset!important;
3235
- -webkit-transition: unset!important;
3236
- transition: unset!important;
3237
- margin-bottom:5px!important;
3238
- }
3239
- .sfsi_small_button {
3240
- line-height: 0px;
3241
- height: unset;
3242
- padding: 6px !important;
3243
- }
3244
- .sfsi_small_button span {
3245
- margin-left: 10px;
3246
- font-size: 16px;
3247
- padding: 0px;
3248
- line-height: 16px;
3249
- vertical-align: -webkit-baseline-middle !important;
3250
- margin-left: 10px;
3251
- }
3252
- .sfsi_small_button img {
3253
- max-height: 16px !important;
3254
- padding: 0px;
3255
- line-height: 0px;
3256
- vertical-align: -webkit-baseline-middle !important;
3257
- }
3258
- .sfsi_medium_button span {
3259
- margin-left: 10px;
3260
- font-size: 18px;
3261
- padding: 0px;
3262
- line-height: 16px;
3263
- vertical-align: -webkit-baseline-middle !important;
3264
- margin-left: 10px;
3265
- }
3266
- .sfsi_medium_button img {
3267
- max-height: 16px !important;
3268
- padding: 0px;
3269
- line-height: 0px;
3270
- vertical-align: -webkit-baseline-middle !important;
3271
- }
3272
- .sfsi_medium_button {
3273
- line-height: 0px;
3274
- height: unset;
3275
- padding: 10px !important;
3276
- }
3277
-
3278
- .sfsi_medium_button span {
3279
- margin-left: 10px;
3280
- font-size: 18px;
3281
- padding: 0px;
3282
- line-height: 16px;
3283
- vertical-align: -webkit-baseline-middle !important;
3284
- margin-left: 10px;
3285
- }
3286
- .sfsi_medium_button img {
3287
- max-height: 16px !important;
3288
- padding: 0px;
3289
- line-height: 0px;
3290
- vertical-align: -webkit-baseline-middle !important;
3291
- }
3292
- .sfsi_medium_button {
3293
- line-height: 0px;
3294
- height: unset;
3295
- padding: 10px !important;
3296
- }
3297
- .sfsi_large_button span {
3298
- font-size: 20px;
3299
- padding: 0px;
3300
- line-height: 16px;
3301
- vertical-align: -webkit-baseline-middle !important;
3302
- display: inline;
3303
- margin-left: 10px;
3304
- }
3305
- .sfsi_large_button img {
3306
- max-height: 16px !important;
3307
- padding: 0px;
3308
- line-height: 0px;
3309
- vertical-align: -webkit-baseline-middle !important;
3310
- display: inline;
3311
- }
3312
- .sfsi_large_button {
3313
- line-height: 0px;
3314
- height: unset;
3315
- padding: 13px !important;
3316
- }
3317
- .sfsi_responsive_icons_count{
3318
- padding: 5px 10px;
3319
- float: left !important;
3320
- display: inline-block;
3321
- margin-right: 0px;
3322
- margin-top: 2px;
3323
- }
3324
-
3325
- .sfsi_responsive_icons_count h3{
3326
- font-family: 'sans-serif' !important;
3327
- font-weight: 900;
3328
- font-size: 32px !important;
3329
- line-height: 0px !important;
3330
- padding: 0px;
3331
- margin: 0px;
3332
- }
3333
-
3334
- .sfsi_responsive_icons_count h6{
3335
- font-family: 'sans-serif' !important;
3336
- font-weight: 900;
3337
- padding: 0px;
3338
- margin: 0px;
3339
- }
3340
- .sfsi_responsive_icons a, .sfsi_responsive_icons h3, .sfsi_responsive_icons h6 {
3341
- text-decoration: none!important;
3342
- border: 0!important;
3343
- }
3344
- .sfsi_responsive_with_counter_icons{
3345
- width: calc(100% - 100px)!important;
3346
- }
3347
- .sfsiresponsive_icon_preview {
3348
- padding: 0px 0 20px 0;
3349
- min-width: 100%;
3350
- }
3351
- .sfsi_responsive_icons_count.sfsi_fixed_count_container.sfsi_large_button {
3352
- padding: 12px 13px 9px 13px !important;
3353
- }
3354
- .sfsi_responsive_icons_count.sfsi_fixed_count_container.sfsi_medium_button {
3355
- padding: 9px 10px 7px 10px !important;
3356
- }
3357
- .sfsi_responsive_icons_count.sfsi_small_button {
3358
- padding: 7px 6px !important;
3359
- }
3360
- .sfsi_responsive_icons_count.sfsi_small_button {
3361
- padding: 7px 6px !important;
3362
- margin-top: 2px;
3363
- }
3364
- .sfsi_responsive_icons_count.sfsi_small_button h6 {
3365
- display: inline-block;
3366
- font-size: 12px !important;
3367
- vertical-align: middle;
3368
- }
3369
- .sfsi_responsive_icons_count.sfsi_responsive_count_container.sfsi_medium_button {
3370
- padding: 9px 10px 7px 10px !important;
3371
- }
3372
- .sfsi_responsive_icons_count.sfsi_medium_button h3 {
3373
- font-size: 21px !important;
3374
- vertical-align: top;
3375
- line-height: 8px !important;
3376
- margin: 0px 0px 12px 0px !important;
3377
- font-weight: 900;
3378
- padding: 0px;
3379
- }
3380
- .sfsi_esponsive_icons_count.sfsi_responsive_count_container.sfsi_large_button h3 {
3381
- margin: 0px 0px 15px 0px !important;
3382
- }
3383
- .sfsi_responsive_icons_count.sfsi_large_button h3 {
3384
- font-size: 26px !important;
3385
- vertical-align: top;
3386
- line-height: 6px !important;
3387
- }
3388
-
3389
- .sfsi_responsive_icons_count h3 {
3390
- font-family: 'sans-serif' !important;
3391
- font-weight: 900;
3392
- padding: 0px;
3393
- }
3394
-
3395
- .sfsi_responsive_icons_count.sfsi_small_button h3 {
3396
- font-size: 20px !important;
3397
- display: inline-block;
3398
- vertical-align: middle;
3399
- }
3400
- .sfsi_responsive_icons_count.sfsi_small_button h3 {
3401
- margin: 0px !important;
3402
- }
3403
- .sfsi_responsive_icons_count h3 {
3404
- font-family: 'sans-serif' !important;
3405
- font-weight: 900;
3406
- line-height: 0px !important;
3407
- padding: 0px;
3408
- margin: 0px;
3409
- }
3410
- .sfsi_responsive_icons a, .sfsi_responsive_icons h3, .sfsi_responsive_icons h6 {
3411
- text-decoration: none!important;
3412
- border: 0!important;
3413
- }
3414
- .sfsi_responsive_icons_count.sfsi_small_button {
3415
- padding: 7px 6px !important;
3416
- margin-top: 2px;
3417
- }
3418
-
3419
- .sfsi_responsive_icons_count {
3420
- vertical-align: top;
3421
- }
3422
- .sfsi_responsive_icons_count {
3423
- float: left;
3424
- }
3425
- .sfsi_small_button {
3426
- line-height: 0px;
3427
- height: unset;
3428
- }
3429
- .sfsi_responsive_icons a, .sfsi_responsive_icons h3, .sfsi_responsive_icons h6 {
3430
- text-decoration: none!important;
3431
- border: 0!important;
3432
- }
3433
- .sfsi_responsive_icons_count.sfsi_small_button h3 {
3434
- font-size: 20px !important;
3435
- display: inline-block;
3436
- vertical-align: middle;
3437
- margin: 0px !important;
3438
- }
3439
-
3440
- .sfsi_responsive_icons a, .sfsi_responsive_icons h3, .sfsi_responsive_icons h6 {
3441
- text-decoration: none!important;
3442
- font-family: helveticaregular!important;
3443
- border: 0!important;
3444
- }
3445
- .sfsi_responsive_icons_count h3 {
3446
- line-height: 0px !important;
3447
- padding: 0px;
3448
- }
3449
- .sfsi_responsive_icons_count.sfsi_small_button h6 {
3450
- display: inline-block;
3451
- font-size: 12px !important;
3452
- /*vertical-align: middle;*/
3453
- margin: 0px !important;
3454
- line-height: initial !important;
3455
- padding: 0;
3456
- margin: 0;
3457
- }
3458
- .sfsi_responsive_icons_count h6{
3459
- margin:0!important;
3460
- }
3461
- .sfsi_responsive_icons_count h6 {
3462
- padding: 0px;
3463
- }
3464
- .sfsi_responsive_icons a, .sfsi_responsive_icons h3, .sfsi_responsive_icons h6{
3465
- text-decoration: none!important;
3466
- font-family: helveticaregular!important;
3467
- border: 0!important;
3468
- }
3469
- .sfsi_responsive_icons_count.sfsi_medium_button h6{
3470
- font-size: 11px !important;
3471
- line-height: 0px !important;
3472
- margin: 0px 0px 0px 0px !important;
3473
  }
1
+ @charset "utf-8";
2
+
3
+ @font-face {
4
+ font-family: helveticabold;
5
+ src: url(fonts/helvetica_bold_0-webfont.eot);
6
+ src: url(fonts/helvetica_bold_0-webfont.eot?#iefix) format('embedded-opentype'), url(fonts/helvetica_bold_0-webfont.woff) format('woff'), url(fonts/helvetica_bold_0-webfont.ttf) format('truetype'), url(fonts/helvetica_bold_0-webfont.svg#helveticabold) format('svg');
7
+ font-weight: 400;
8
+ font-style: normal;
9
+ }
10
+
11
+ @font-face {
12
+ font-family: helveticaregular;
13
+ src: url(fonts/helvetica_0-webfont.eot);
14
+ src: url(fonts/helvetica_0-webfont.eot?#iefix) format('embedded-opentype'), url(fonts/helvetica_0-webfont.woff) format('woff'), url(fonts/helvetica_0-webfont.ttf) format('truetype'), url(fonts/helvetica_0-webfont.svg#helveticaregular) format('svg');
15
+ font-weight: 400;
16
+ font-style: normal;
17
+ }
18
+
19
+ @font-face {
20
+ font-family: helveticaneue-light;
21
+ src: url(fonts/helveticaneue-light.eot);
22
+ src: url(fonts/helveticaneue-light.eot?#iefix) format('embedded-opentype'), url(fonts/helveticaneue-light.woff) format('woff'), url(fonts/helveticaneue-light.ttf) format('truetype'), url(fonts/helveticaneue-light.svg#helveticaneue-light) format('svg');
23
+ font-weight: 400;
24
+ font-style: normal;
25
+ }
26
+
27
+ body {
28
+ margin: 0;
29
+ padding: 0;
30
+ }
31
+
32
+ .clear {
33
+ clear: both;
34
+ }
35
+
36
+ .space {
37
+ clear: both;
38
+ padding: 30px 0 0;
39
+ width: 100%;
40
+ float: left;
41
+ }
42
+
43
+ .like_txt {
44
+ margin: 30px 0 0;
45
+ padding: 0;
46
+ color: #12a252;
47
+ font-family: helveticaregular;
48
+ font-size: 20px;
49
+ line-height: 20px;
50
+ text-align: center;
51
+ }
52
+
53
+ .like_txt a {
54
+ color: #12a252;
55
+ }
56
+
57
+ .sfsibeforpstwpr iframe,
58
+ .sfsiaftrpstwpr iframe {
59
+ max-width: none;
60
+ }
61
+
62
+ .sfwp_fivestar_ul li {
63
+ display: block;
64
+ padding-right: 20px;
65
+ }
66
+
67
+ .shwthmbfraftr {
68
+ margin-top: 5px !important
69
+ }
70
+
71
+ label.toglpstpgsbttl {
72
+ float: left;
73
+ margin-top: 5px !important
74
+ }
75
+
76
+ .tab_3_icns.shwthmbfraftr .cstmdisplaysharingtxt {
77
+ float: left;
78
+ }
79
+
80
+ .tab6 ul.enough_waffling.sfsi_dsplyatend {
81
+ width: 24%;
82
+ float: left;
83
+ }
84
+
85
+ .tab4 ul.like_icon {
86
+ margin: 0;
87
+ padding: 20px 0 0;
88
+ list-style: none;
89
+ text-align: center;
90
+ }
91
+
92
+ .tab4 ul.like_icon li {
93
+ margin: 0;
94
+ padding: 0;
95
+ list-style: none;
96
+ display: inline-block;
97
+ }
98
+
99
+ .tab4 ul.like_icon li span {
100
+ margin: 0;
101
+ width: 54px;
102
+ display: block;
103
+ background: url(../images/count_bg.png) no-repeat;
104
+ height: 24px;
105
+ overflow: hidden;
106
+ padding: 10px 2px 2px;
107
+ font-size: 17px;
108
+ text-align: center;
109
+ line-height: 24px;
110
+ color: #5a6570;
111
+ }
112
+
113
+ .tab4 ul.like_icon li a {
114
+ color: #5a6570;
115
+ text-decoration: none;
116
+ }
117
+
118
+ .tab4 ul.enough_waffling {
119
+ margin: 0;
120
+ padding: 25px 0 27px;
121
+ list-style: none;
122
+ text-align: center;
123
+ }
124
+
125
+ .tab4 ul.enough_waffling li {
126
+ margin: 0 22px;
127
+ padding: 0;
128
+ list-style: none;
129
+ display: inline-block;
130
+ }
131
+
132
+ .tab4 ul.enough_waffling li span {
133
+ float: left;
134
+ }
135
+
136
+ .tab4 ul.enough_waffling li label {
137
+ margin: 0 0 0 20px;
138
+ float: left;
139
+ font-family: helveticaregular;
140
+ font-size: 18px;
141
+ font-weight: 400;
142
+ text-align: center;
143
+ line-height: 38px;
144
+ color: #5a6570;
145
+ }
146
+
147
+ .sfsi_mainContainer .checkbox {
148
+ width: 31px;
149
+ height: 31px;
150
+ background: url(../images/check_bg.jpg) no-repeat;
151
+ display: inherit;
152
+ }
153
+
154
+ .sfsi_mainContainer .radio {
155
+ width: 40px;
156
+ height: 40px;
157
+ background: url(../images/radio_bg.png) no-repeat;
158
+ display: inherit;
159
+ }
160
+
161
+ .sfsi_mainContainer .select {
162
+ width: 127px;
163
+ height: 47px;
164
+ font-size: 17px;
165
+ background: url(../images/select_bg.jpg) no-repeat;
166
+ display: block;
167
+ padding-left: 16px;
168
+ line-height: 49px;
169
+ }
170
+
171
+ .sfsi_mainContainer .line {
172
+ background: #eaebee;
173
+ height: 1px;
174
+ font-size: 0;
175
+ margin: 15px 0 0;
176
+ clear: both;
177
+ width: 100%;
178
+ float: left;
179
+ }
180
+
181
+ .specify_counts {
182
+ display: block;
183
+ margin-top: 15px;
184
+ padding-top: 15px;
185
+ clear: both;
186
+ width: 100%;
187
+ float: left;
188
+ border-top: 1px solid #eaebee;
189
+ }
190
+
191
+ .specify_counts .radio_section {
192
+ width: 30px;
193
+ float: left;
194
+ margin: 12px 10px 0 0;
195
+ }
196
+
197
+ .specify_counts .social_icon_like {
198
+ width: 54px;
199
+ float: left;
200
+ margin: 0 15px 0 0;
201
+ }
202
+
203
+ .specify_counts .social_icon_like ul {
204
+ margin: 0;
205
+ padding: 0;
206
+ list-style: none;
207
+ text-align: center;
208
+ }
209
+
210
+ .specify_counts .social_icon_like li {
211
+ margin: 0;
212
+ padding: 0;
213
+ list-style: none;
214
+ display: inline-block;
215
+ }
216
+
217
+ .specify_counts .social_icon_like li span {
218
+ margin: 0;
219
+ width: 54px;
220
+ display: block;
221
+ background: url(../images/count_bg.jpg) no-repeat;
222
+ height: 24px;
223
+ overflow: hidden;
224
+ padding: 10px 2px 2px;
225
+ font-family: helveticaregular;
226
+ font-size: 16px;
227
+ text-align: center;
228
+ line-height: 24px;
229
+ color: #5a6570;
230
+ }
231
+
232
+ .specify_counts .social_icon_like li a {
233
+ color: #5a6570;
234
+ text-decoration: none;
235
+ }
236
+
237
+ .specify_counts .listing {
238
+ width: 88%;
239
+ margin-top: -5px;
240
+ display: inherit;
241
+ float: left;
242
+ }
243
+
244
+ .specify_counts .listing ul {
245
+ margin: 0;
246
+ padding: 0;
247
+ list-style: none;
248
+ text-align: left;
249
+ }
250
+
251
+ .specify_counts .listing li {
252
+ margin: 15px 0 0;
253
+ padding: 0;
254
+ list-style: none;
255
+ clear: both;
256
+ line-height: 39px;
257
+ font-size: 17px;
258
+ }
259
+
260
+ .specify_counts .listing li span {
261
+ float: left;
262
+ margin-right: 20px;
263
+ }
264
+
265
+ .specify_counts .listing li .input {
266
+ background: #e5e5e5;
267
+ box-shadow: 2px 2px 3px #dcdcdc inset;
268
+ border: 0;
269
+ padding: 10px;
270
+ margin-left: 25px;
271
+ }
272
+
273
+ .specify_counts .listing li .input_facebook {
274
+ width: 288px;
275
+ background: #e5e5e5;
276
+ box-shadow: 2px 2px 3px #dcdcdc inset;
277
+ border: 0;
278
+ padding: 10px;
279
+ margin-left: 16px;
280
+ }
281
+
282
+ .save_button {
283
+ width: 450px;
284
+ padding-top: 30px;
285
+ clear: both;
286
+ margin: auto;
287
+ }
288
+
289
+ .save_button a {
290
+ background: #12a252;
291
+ text-align: center;
292
+ font-size: 23px;
293
+ color: #FFF !important;
294
+ display: block;
295
+ padding: 11px 0;
296
+ text-decoration: none;
297
+ }
298
+
299
+ .save_button a:hover {
300
+ background: #079345
301
+ }
302
+
303
+ .tab5 ul.share_icon_order {
304
+ margin: 0;
305
+ padding: 0;
306
+ list-style: none;
307
+ text-align: left;
308
+ }
309
+
310
+ .tab5 ul.share_icon_order li {
311
+ margin: 22px 6px 0 0;
312
+ padding: 0;
313
+ list-style: none;
314
+ float: left;
315
+ line-height: 37px;
316
+ }
317
+
318
+ .tab5 ul.share_icon_order li:last-child {
319
+ margin: 22px 0 0 3px;
320
+ }
321
+
322
+ .tab5 .row {
323
+ border-top: 1px solid #eaebee;
324
+ margin-top: 25px;
325
+ padding-top: 15px;
326
+ clear: both;
327
+ display: block;
328
+ width: 100%;
329
+ float: left;
330
+ font-family: helveticaregular;
331
+ line-height: 42px;
332
+ }
333
+
334
+ .tab5 .icons_size {
335
+ position: relative;
336
+ }
337
+
338
+ .tab5 .icons_size span {
339
+ margin-right: 18px;
340
+ display: block;
341
+ float: left;
342
+ font-size: 18px;
343
+ font-weight: 400;
344
+ line-height: 46px;
345
+ }
346
+
347
+ .tab5 .icons_size span.last {
348
+ margin-left: 55px;
349
+ }
350
+
351
+ .tab5 .icons_size input {
352
+ width: 73px;
353
+ background: #e5e5e5;
354
+ box-shadow: 2px 2px 3px #dcdcdc inset;
355
+ border: 0;
356
+ padding: 13px 13px 12px;
357
+ margin-right: 18px;
358
+ float: left;
359
+ display: block;
360
+ }
361
+
362
+ .tab5 .icons_size select.styled {
363
+ position: absolute;
364
+ left: 0;
365
+ width: 135px;
366
+ height: 46px;
367
+ line-height: 46px;
368
+ }
369
+
370
+ .tab5 .icons_size .field {
371
+ position: relative;
372
+ float: left;
373
+ display: block;
374
+ margin-right: 20px;
375
+ }
376
+
377
+ .tab5 .icons_size ins {
378
+ margin-right: 25px;
379
+ float: left;
380
+ font-size: 17px;
381
+ font-weight: 400;
382
+ text-decoration: none;
383
+ }
384
+
385
+ .tab5 .icons_size ins.leave_empty {
386
+ line-height: 23px;
387
+ }
388
+
389
+ .tab5 .icons_size {
390
+ padding-top: 15px;
391
+ }
392
+
393
+ .tab5 ul.enough_waffling {
394
+ margin: -5px 0 0;
395
+ padding: 0;
396
+ list-style: none;
397
+ text-align: center;
398
+ }
399
+
400
+ .tab5 .new_wind .row_onl ul.enough_waffling {
401
+ /*margin: 14px 0 0 167px;*/
402
+ margin: 20px 0 0 0;
403
+ padding: 0;
404
+ list-style: none;
405
+ height: 38px;
406
+ text-align: center;
407
+ width: 61%;
408
+ }
409
+
410
+ .tab5 ul.enough_waffling li {
411
+ margin: 0 22px;
412
+ padding: 0;
413
+ list-style: none;
414
+ display: inline-block;
415
+ float: left;
416
+ }
417
+
418
+ .tab5 ul.enough_waffling li span {
419
+ float: left;
420
+ }
421
+
422
+ .tab5 ul.enough_waffling li label {
423
+ margin: 0 0 0 20px;
424
+ float: left;
425
+ font-family: helveticaregular;
426
+ font-size: 18px;
427
+ font-weight: 400;
428
+ text-align: center;
429
+ line-height: 38px;
430
+ color: #5a6570;
431
+ }
432
+
433
+ .sticking p {
434
+ float: left;
435
+ font-size: 18px !important;
436
+ }
437
+
438
+ .sticking p.list {
439
+ width: 168px;
440
+ }
441
+
442
+ .sticking p.link {
443
+ margin: 3px 0 0 12px;
444
+ padding: 0 !important;
445
+ float: left;
446
+ }
447
+
448
+ .sticking .float {
449
+ margin-left: 188px;
450
+ margin-top: 3px;
451
+ float: left;
452
+ font-size: 17px;
453
+ }
454
+
455
+ .sticking ul {
456
+ margin: 0;
457
+ padding: 30px 0 0;
458
+ list-style: none;
459
+ float: left;
460
+ }
461
+
462
+ .sticking a {
463
+ color: #a4a9ad;
464
+ }
465
+
466
+ .sticking p {
467
+ line-height: 19px !important;
468
+ }
469
+
470
+ .sticking .field {
471
+ position: relative;
472
+ float: left;
473
+ display: block;
474
+ margin-left: 20px;
475
+ }
476
+
477
+ .sticking .field .select {
478
+ width: 206px;
479
+ height: 47px;
480
+ background: url(../images/select_bg1.jpg) no-repeat;
481
+ display: block;
482
+ padding-left: 10px;
483
+ }
484
+
485
+ .sticking .field select.styled {
486
+ position: absolute;
487
+ left: 0;
488
+ top: 0;
489
+ width: 211px;
490
+ line-height: 46px;
491
+ height: 46px;
492
+ }
493
+
494
+ .mouseover_field {
495
+ width: 455px;
496
+ float: left;
497
+ font-size: 18px;
498
+ margin-top: 10px;
499
+ }
500
+
501
+ .mouseover_field label {
502
+ width: 125px;
503
+ float: left;
504
+ }
505
+
506
+ .mouseover_field input {
507
+ width: 256px;
508
+ float: left;
509
+ background: #e5e5e5;
510
+ box-shadow: 2px 2px 3px #dcdcdc inset;
511
+ border: 0;
512
+ padding: 10px;
513
+ }
514
+
515
+ .pop_up_box {
516
+ width: 474px;
517
+ background: #FFF;
518
+ box-shadow: 0 0 5px 3px #d8d8d8;
519
+ margin: 200px auto;
520
+ padding: 20px 25px 0px;
521
+ font-family: helveticaregular;
522
+ color: #5a6570;
523
+ min-height: 250px;
524
+ position: relative;
525
+ }
526
+
527
+ .pop_up_box h4,
528
+ .pop_up_box_ex h4 {
529
+ font-size: 20px;
530
+ color: #5a6570;
531
+ text-align: center;
532
+ margin: 0;
533
+ padding: 0;
534
+ line-height: 22px;
535
+ }
536
+
537
+ .pop_up_box p,
538
+ .pop_up_box_ex p {
539
+ font-size: 17px;
540
+ line-height: 28px;
541
+ color: #5a6570;
542
+ text-align: left;
543
+ margin: 0;
544
+ padding: 25px 0 0;
545
+ font-family: helveticaregular;
546
+ }
547
+
548
+ .sfsi_popupcntnr {
549
+ float: left;
550
+ width: 100%
551
+ }
552
+
553
+ .sfsi_popupcntnr>h3 {
554
+ color: #000;
555
+ float: left;
556
+ font-weight: 700;
557
+ margin-bottom: 5px;
558
+ width: 100%
559
+ }
560
+
561
+ ul.flwstep {
562
+ float: left;
563
+ width: 100%
564
+ }
565
+
566
+ ul.flwstep>li {
567
+ color: #000;
568
+ font-size: 16px;
569
+ margin: 5px;
570
+ }
571
+
572
+ .upldbtn {
573
+ float: left;
574
+ text-align: center;
575
+ width: 100%
576
+ }
577
+
578
+ .upload_butt {
579
+ background-color: #12a252;
580
+ border: none;
581
+ color: #fff;
582
+ font-weight: 700;
583
+ margin-top: 10px;
584
+ padding: 7px 22px;
585
+ width: auto;
586
+ cursor: pointer;
587
+ font-size: 19px;
588
+ }
589
+
590
+ .pop_up_box .button {
591
+ background: #12a252;
592
+ font-size: 22px;
593
+ line-height: 24px;
594
+ color: #5a6570;
595
+ text-align: center;
596
+ min-height: 80px;
597
+ margin-top: 32px;
598
+ box-shadow: none;
599
+ }
600
+
601
+ .pop_up_box .button:hover {
602
+ box-shadow: none !important;
603
+ }
604
+
605
+ .pop_up_box .button a.activate {
606
+ padding: 0px 0;
607
+ }
608
+
609
+ .pop_up_box a,
610
+ .pop_up_box_ex a {
611
+ color: #a4a9ad;
612
+ font-size: 20px;
613
+ text-decoration: none;
614
+ text-align: center;
615
+ display: inline-block;
616
+ margin-top: 18px;
617
+ width: 100%;
618
+ }
619
+
620
+ .pop_up_box .upload {
621
+ width: 100%;
622
+ float: left;
623
+ text-align: left;
624
+ margin-top: 15px;
625
+ height: 46px;
626
+ }
627
+
628
+ .pop_up_box .upload label {
629
+ width: 135px;
630
+ float: left;
631
+ line-height: 45px;
632
+ font-size: 18px;
633
+ font-family: helveticaregular;
634
+ text-align: left;
635
+ }
636
+
637
+ .pop_up_box .upload input[type=text] {
638
+ width: 248px;
639
+ float: left;
640
+ background: #e5e5e5;
641
+ box-shadow: 2px 2px 3px #dcdcdc inset;
642
+ border: 0;
643
+ padding: 0 10px;
644
+ font-size: 16px;
645
+ height: 44px;
646
+ text-align: left;
647
+ color: #5a6570;
648
+ font-family: helveticaregular;
649
+ }
650
+
651
+ .pop_up_box .upload input.upload_butt {
652
+ width: 100px;
653
+ background: #12a252;
654
+ box-shadow: 0 0 0;
655
+ border: 0;
656
+ text-align: center;
657
+ font-size: 18px;
658
+ color: #fff;
659
+ font-family: helveticaregular;
660
+ height: 45px;
661
+ right: 32px;
662
+ top: 71px;
663
+ position: absolute;
664
+ }
665
+
666
+ .pop_up_box .upload a {
667
+ color: #12a252;
668
+ font-size: 18px;
669
+ text-decoration: underline;
670
+ font-family: helveticaregular;
671
+ margin: 0 0 16px 140px;
672
+ }
673
+
674
+ .pop_up_box a:hover,
675
+ .pop_up_box_ex a:hover {
676
+ color: #a4a9ad;
677
+ }
678
+
679
+ .inr_cont .fb_url {
680
+ clear: both;
681
+ }
682
+
683
+ .inr_cont .fb_url .checkbox,
684
+ .inr_cont .fb_url input.add,
685
+ .inr_cont .fb_url label,
686
+ .inr_cont .fb_url lable {
687
+ float: left;
688
+ }
689
+
690
+ .inr_cont .fb_url input.add {
691
+ margin-left: 19px;
692
+ }
693
+
694
+ .inr_cont .fb_url .checkbox {
695
+ margin: 6px 0 0;
696
+ }
697
+
698
+ .inr_cont .fb_url label {
699
+ /*line-height: 41px; margin: 0 0 0 15px;*/
700
+ line-height: 22px;
701
+ margin: 10px 0 0 15px;
702
+ font-size: 17px;
703
+ }
704
+
705
+ .inr_cont textarea.add_txt {
706
+ resize: none;
707
+ margin: 0 0 0 19px !important;
708
+ height: 60px;
709
+ }
710
+
711
+ .tab2 .inr_cont textarea.add_txt {
712
+ width: 382px !important;
713
+ height: 90px;
714
+ overflow: hidden;
715
+ }
716
+
717
+ .tab2 .inr_cont input.add {
718
+ width: 417px;
719
+ }
720
+
721
+ .red_txt,
722
+ .tab2 .red_txt {
723
+ color: #ef4745 !important;
724
+ text-align: center !important;
725
+ padding-top: 5px !important;
726
+ }
727
+
728
+ .green_txt {
729
+ color: #12A252 !important;
730
+ text-align: center !important;
731
+ padding-top: 5px !important;
732
+ }
733
+
734
+ .red_txt {
735
+ color: #f80000 !important;
736
+ text-align: center !important;
737
+ padding-top: 5px !important;
738
+ }
739
+
740
+ .linked_tab_2 .fb_url label {
741
+ /* width: 32%;*/
742
+ /* width: 26.99%;*/
743
+ width: 22%;
744
+ }
745
+
746
+ .twt_tab_2 label {
747
+ width: 18%
748
+ }
749
+
750
+ .bdr_top {
751
+ border-top: none !important;
752
+ }
753
+
754
+ .linked_tab_2 .fb_url input.link_dbl {
755
+ margin-bottom: 6px;
756
+ }
757
+
758
+ .tab3 {
759
+ overflow: hidden;
760
+ }
761
+
762
+ .tab3 .row {
763
+ /*border-top: 1px solid #EAEBEE;*/
764
+ padding: 25px 0;
765
+ clear: both;
766
+ overflow: hidden;
767
+ }
768
+
769
+ .tab3 ul.tab_3_list {
770
+ overflow: hidden;
771
+ margin: 4px 0 11px;
772
+ }
773
+
774
+ ul.tab_3_list li {
775
+ background: url(../images/tab_3_list_bg.jpg) 13px 7px no-repeat;
776
+ padding: 0 0 0 30px;
777
+ color: #778088;
778
+ font-family: helveticaregular;
779
+ font-size: 17px;
780
+ margin-bottom: 4px;
781
+ }
782
+
783
+ .tab5 ul.tab_3_list li {
784
+ background: url(../images/tab_3_list_bg.jpg) 13px 18px no-repeat;
785
+ }
786
+
787
+ .tab3 .row h3 {
788
+ /* margin: 0 0 20px;*/
789
+ margin: 20px 0 0px;
790
+ color: #414951;
791
+ font-family: helveticabold;
792
+ font-size: 20px;
793
+ }
794
+
795
+ ul.tab_3_icns {
796
+ list-style: none;
797
+ margin: 10px 0 0;
798
+ overflow: hidden;
799
+ }
800
+
801
+ ul.tab_3_icns li {
802
+ width: 100%;
803
+ margin: 0 0 21px;
804
+ float: left;
805
+ }
806
+
807
+ ul.tab_3_icns label {
808
+ float: left;
809
+ line-height: 42px;
810
+ /*margin: 0 20px;*/
811
+ color: #69737C;
812
+ font-size: 18px;
813
+ font-family: helveticaregular;
814
+ min-width: 125px;
815
+ }
816
+
817
+ ul.tab_3_icns li .icns_tab_3,
818
+ ul.tab_3_icns li .radio {
819
+ float: left;
820
+ }
821
+
822
+ .tab3 .sub_row h4 {
823
+ color: #a4a9ad !important;
824
+ }
825
+
826
+ .tab3 .sub_row p {
827
+ padding-top: 18px !important;
828
+ clear: both;
829
+ overflow: hidden;
830
+ }
831
+
832
+ .sub_row .sub_sub_box p {
833
+ padding-top: 18px !important;
834
+ }
835
+
836
+ .tab3 .sub_row .checkbox {
837
+ float: left;
838
+ margin-top: 4px;
839
+ }
840
+
841
+ .tab3 .sub_row .sub_sub_box {
842
+ width: 80%;
843
+ margin: 7px 0 15px 10%;
844
+ float: left;
845
+ }
846
+
847
+ .tab3 .sub_row input.smal_inpt {
848
+ width: 73px;
849
+ background: #e5e5e5;
850
+ box-shadow: 2px 2px 3px #dcdcdc inset;
851
+ border: 0;
852
+ padding: 10px;
853
+ float: left;
854
+ margin-left: 10px;
855
+ }
856
+
857
+ .tab3 .sub_row .drop_lst {
858
+ border: 1px solid #d6d6d6;
859
+ font-size: 16px;
860
+ color: #5a6570;
861
+ width: 120px;
862
+ }
863
+
864
+ .tab3 .first_row,
865
+ .tab3 .first_row p,
866
+ .tab3 .first_row p .radio,
867
+ .tab3 .first_row p label {
868
+ float: left;
869
+ }
870
+
871
+ .tab3 .first_row {
872
+ width: 90%;
873
+ float: left;
874
+ }
875
+
876
+ .tab3 .first_row p {
877
+ padding: 0 !important;
878
+ }
879
+
880
+ .tab3 .first_row p label {
881
+ line-height: 44px;
882
+ margin: 0 10px;
883
+ }
884
+
885
+ .tab3 .first_row p:last-child {
886
+ margin-left: 27%
887
+ }
888
+
889
+ .tab3 .tab_1_sav {
890
+ padding-top: 20px !important;
891
+ margin: 10px auto 20px;
892
+ }
893
+
894
+ .suc_msg {
895
+ background: #12A252;
896
+ color: #FFF;
897
+ display: none;
898
+ font-size: 23px;
899
+ padding: 10px;
900
+ text-align: left;
901
+ text-decoration: none;
902
+ }
903
+
904
+ .error_msg {
905
+ background: #D22B30;
906
+ color: #FFF;
907
+ display: none;
908
+ font-size: 23px;
909
+ padding: 10px;
910
+ text-align: left;
911
+ text-decoration: none;
912
+ }
913
+
914
+ .fileUPInput {
915
+ cursor: pointer;
916
+ position: relative;
917
+ top: -43px;
918
+ right: 0;
919
+ z-index: 99;
920
+ height: 42px;
921
+ font-size: 5px;
922
+ opacity: 0;
923
+ -moz-opacity: 0;
924
+ filter: alpha(opacity=0);
925
+ width: 100%
926
+ }
927
+
928
+ .inputWrapper {
929
+ height: 20px;
930
+ width: 50px;
931
+ overflow: hidden;
932
+ position: relative;
933
+ cursor: pointer;
934
+ }
935
+
936
+ .custom-txt {
937
+ background: none !important;
938
+ padding-left: 2px !important;
939
+ }
940
+
941
+ .custom-img {
942
+ float: left;
943
+ margin-left: 20px;
944
+ }
945
+
946
+ .loader-img {
947
+ float: left;
948
+ margin-left: -70px;
949
+ display: none;
950
+ }
951
+
952
+ .pop-overlay {
953
+ position: fixed;
954
+ top: 0;
955
+ left: 0;
956
+ width: 100%;
957
+ height: 100%;
958
+ backgound-color: #d3d3d3;
959
+ z-index: 10;
960
+ padding: 20px;
961
+ display: none;
962
+ }
963
+
964
+ .fb-overlay {
965
+ position: fixed;
966
+ top: 0;
967
+ left: 0;
968
+ width: 100%;
969
+ height: 100%;
970
+ backgound-color: #d3d3d3;
971
+ z-index: -1000;
972
+ padding: 20px;
973
+ opacity: 0;
974
+ display: block;
975
+ }
976
+
977
+ .inputError {
978
+ border: 1px solid #f80000 !important;
979
+ }
980
+
981
+ .sfsicloseBtn {
982
+ position: absolute;
983
+ top: 0;
984
+ right: 0;
985
+ cursor: pointer;
986
+ }
987
+
988
+ .top_arow {
989
+ background: url(../images/top_aro.png) no-repeat;
990
+ position: absolute;
991
+ top: -29px;
992
+ left: 38%;
993
+ width: 33px;
994
+ height: 29px;
995
+ backgoround-color: #fff;
996
+ }
997
+
998
+ .sfsi_tool_tip_2 .top_arow .sfsi_inside,
999
+ .top_arow .sfsi_inside {
1000
+ float: left;
1001
+ }
1002
+
1003
+ .sfsi_tool_tip_2 .tool_tip>img,
1004
+ .tool_tip>img {
1005
+ display: inline-block;
1006
+ margin-right: 4px;
1007
+ float: left;
1008
+ }
1009
+
1010
+ .norm_row {
1011
+ float: left;
1012
+ min-width: 25px;
1013
+ }
1014
+
1015
+ .norm_row a {
1016
+ border: none;
1017
+ display: inline-block;
1018
+ position: relative;
1019
+ float: left;
1020
+ }
1021
+
1022
+ .sfsi_tool_tip_2 a {
1023
+ min-height: 0 !important;
1024
+ }
1025
+
1026
+ .sfsi_widget {
1027
+ min-height: 55px;
1028
+ }
1029
+
1030
+ .sfsi_widget a img {
1031
+ box-shadow: none !important;
1032
+ outline: 0;
1033
+ }
1034
+
1035
+ .sfsi_wicons {
1036
+ display: inline-block;
1037
+ color: #000;
1038
+ }
1039
+
1040
+ .sel-active {
1041
+ background-color: #f7941d;
1042
+ }
1043
+
1044
+ .sfsi_outr_div .close {
1045
+ position: absolute;
1046
+ right: 18px;
1047
+ top: 18px;
1048
+ }
1049
+
1050
+ .sfsi_outr_div h2 {
1051
+ color: #778088;
1052
+ font-family: helveticaregular;
1053
+ font-size: 26px;
1054
+ margin: 0 0 9px;
1055
+ padding: 0;
1056
+ text-align: center;
1057
+ font-weight: 400;
1058
+ }
1059
+
1060
+ .sfsi_outr_div ul li a {
1061
+ color: #5A6570;
1062
+ text-decoration: none;
1063
+ }
1064
+
1065
+ .sfsi_outr_div ul li {
1066
+ display: inline-block;
1067
+ list-style: none;
1068
+ margin: 0;
1069
+ padding: 0;
1070
+ float: none;
1071
+ }
1072
+
1073
+ .expanded-area {
1074
+ display: none;
1075
+ }
1076
+
1077
+ .sfsi_wicons a {
1078
+ -webkit-transition: all .2s ease-in-out;
1079
+ -moz-transition: all .2s ease-in-out;
1080
+ -o-transition: all .2s ease-in-out;
1081
+ -ms-transition: all .2s ease-in-out;
1082
+ }
1083
+
1084
+ .scale,
1085
+ .scale-div {
1086
+ -webkit-transform: scale(1.1);
1087
+ -moz-transform: scale(1.1);
1088
+ -o-transform: scale(1.1);
1089
+ transform: scale(1.1);
1090
+ }
1091
+
1092
+ .sfsi_Sicons {
1093
+ float: left;
1094
+ }
1095
+
1096
+ .sfsi_Sicons .sf_subscrbe {
1097
+ margin: 2px 3px 3px 0;
1098
+ line-height: 20px;
1099
+ }
1100
+
1101
+ .sfsi_Sicons .sf_fb {
1102
+ margin: 0 4px 0 5px;
1103
+ line-height: 20px;
1104
+ }
1105
+
1106
+ .sfsi_Sicons .sf_twiter {
1107
+ margin: 2px 7px 0 4px;
1108
+ line-height: 17px;
1109
+ }
1110
+
1111
+ .sfsi_Sicons.left .sf_subscrbe {
1112
+ margin: 2px 8px 3px 0;
1113
+ }
1114
+
1115
+ .sfsi_Sicons.left .sf_fb {
1116
+ margin: 0 8px 0 0;
1117
+ }
1118
+
1119
+ .sfsi_Sicons.left .sf_twiter {
1120
+ margin: 2px 7px 0 0;
1121
+ }
1122
+
1123
+ .sfsi_Sicons.right .sf_subscrbe {
1124
+ margin: 2px 0 3px;
1125
+ }
1126
+
1127
+ .sfsi_Sicons.right .sf_fb {
1128
+ margin: 0 0 0 7px;
1129
+ }
1130
+
1131
+ .sfsi_Sicons.right .sf_twiter {
1132
+ margin: 2px 0 0 8px;
1133
+ }
1134
+
1135
+ .sfsi_Sicons .sf_subscrbe,
1136
+ .sfsi_Sicons .sf_twiter {
1137
+ position: relative;
1138
+ width: 75px;
1139
+ }
1140
+
1141
+ .sfsi_Sicons .sf_twiter iframe {
1142
+ margin: 0px;
1143
+ height: 20px !important;
1144
+ overflow: visible !important;
1145
+ }
1146
+
1147
+ .sfsi_Sicons .sf_twiter iframe #widget {
1148
+ overflow: visible !important;
1149
+ }
1150
+
1151
+ .sfsi_Sicons .sf_subscrbe a {
1152
+ width: auto;
1153
+ float: left;
1154
+ border: medium none;
1155
+ padding-top: 0px;
1156
+ }
1157
+
1158
+ .sfsi_Sicons .sf_subscrbe a:focus {
1159
+ outline: medium none;
1160
+ }
1161
+
1162
+ .sfsi_Sicons .sf_subscrbe a img {
1163
+ width: 65px;
1164
+ float: left;
1165
+ height: 20px !important;
1166
+ }
1167
+
1168
+ .sfsi_Sicons .sf_fb {
1169
+ position: relative;
1170
+ width: 75px;
1171
+ }
1172
+
1173
+ .sfsi_Sicons .fb_iframe_widget {
1174
+ float: left;
1175
+ /*min-width: 98px;*/
1176
+ width: 73px;
1177
+ margin: 2px 0 0;
1178
+ }
1179
+
1180
+ .sfsi_pop_up .button a:hover {
1181
+ color: #fff;
1182
+ }
1183
+
1184
+ .sfsi_pop_up .button:hover {
1185
+ background: #12a252;
1186
+ color: #fff;
1187
+ border: none;
1188
+ }
1189
+
1190
+ ul.icn_listing li .right_info a {
1191
+ outline: 0;
1192
+ font-family: helveticaregular;
1193
+ }
1194
+
1195
+ .upload_pop_up .upload_butt {
1196
+ line-height: 27px;
1197
+ margin-left: 6px;
1198
+ }
1199
+
1200
+ .drop_lsts {
1201
+ left: 220px;
1202
+ position: relative;
1203
+ top: -40px;
1204
+ }
1205
+
1206
+ .drop_lsts .styled {
1207
+ top: -42px;
1208
+ width: 127px;
1209
+ height: 33px;
1210
+ }
1211
+
1212
+ .drop_lsts span {
1213
+ line-height: 50px;
1214
+ }
1215
+
1216
+ .drag_drp {
1217
+ left: 11px;
1218
+ position: relative;
1219
+ top: 38px;
1220
+ font-size: 17px;
1221
+ }
1222
+
1223
+ .listing ul li label {
1224
+ width: 224px;
1225
+ float: left;
1226
+ }
1227
+
1228
+ .row_onl {
1229
+ width: 100%;
1230
+ float: left;
1231
+ }
1232
+
1233
+ #sfsi_Show_popupOn_PageIDs option.sel-active {
1234
+ background: #f7941d;
1235
+ }
1236
+
1237
+ .sfsi_inside div iframe {
1238
+ float: left;
1239
+ margin: 0;
1240
+ }
1241
+
1242
+ .sfsi_inside div #___plus_0,
1243
+ .sfsi_inside div #___plusone_0 {
1244
+ height: 27px;
1245
+ }
1246
+
1247
+ .sfsi_outr_div li {
1248
+ float: left;
1249
+ }
1250
+
1251
+ .sfsi_tool_tip_2 .sfsi_inside div {
1252
+ min-height: 0;
1253
+ }
1254
+
1255
+ #___plus_1>iframe {
1256
+ height: 30px;
1257
+ }
1258
+
1259
+ .main_contant h1 {
1260
+ margin: 0 0 19px;
1261
+ }
1262
+
1263
+ .main_contant p {
1264
+ margin: 0 0 26px;
1265
+ }
1266
+
1267
+ .main_contant p>a {
1268
+ color: #1a1d20;
1269
+ text-decoration: underline;
1270
+ }
1271
+
1272
+ .tab1 .gary_bg {
1273
+ background: #f1f1f1;
1274
+ }
1275
+
1276
+ #accordion {
1277
+ margin-top: 25px;
1278
+ }
1279
+
1280
+ .main_contant p>a,
1281
+ .tab1 p span {
1282
+ font-family: helveticabold;
1283
+ }
1284
+
1285
+ .wapper .ui-accordion-header-active {
1286
+ margin-top: 20px !important;
1287
+ }
1288
+
1289
+ .wapper .tab2 {
1290
+ padding: 20px 33px 12px 34px !important;
1291
+ }
1292
+
1293
+ .wapper .tab2 p {
1294
+ margin-bottom: 6px;
1295
+ }
1296
+
1297
+ .tab2 .twt_tab_2 label {
1298
+ width: 175px;
1299
+ }
1300
+
1301
+ .tab2 .twt_fld {
1302
+ margin: 16px 0 23px;
1303
+ float: left;
1304
+ }
1305
+
1306
+ .tab2 .twt_fld_2 {
1307
+ margin: 0 0 12px;
1308
+ float: left;
1309
+ }
1310
+
1311
+ .tab2 .utube_inn {
1312
+ padding-bottom: 2px;
1313
+ float: left;
1314
+ }
1315
+
1316
+ .tab2 .utube_inn label {
1317
+ max-width: 90%
1318
+ }
1319
+
1320
+ .tab2 .utube_inn label span {
1321
+ font-family: helveticabold;
1322
+ }
1323
+
1324
+ .tab2 .inr_cont p>a {
1325
+ font-family: helveticaneue-light;
1326
+ color: #778088;
1327
+ text-decoration: underline;
1328
+ }
1329
+
1330
+ .pinterest_section .inr_cont .pint_url {
1331
+ float: left;
1332
+ padding-top: 6px;
1333
+ clear: both;
1334
+ }
1335
+
1336
+ .pinterest_section .inr_cont .add {
1337
+ width: 417px !important;
1338
+ }
1339
+
1340
+ .linkedin_section .link_1,
1341
+ .linkedin_section .link_2,
1342
+ .linkedin_section .link_3,
1343
+ .linkedin_section .link_4 {
1344
+ float: left;
1345
+ width: 100%
1346
+ }
1347
+
1348
+ .linkedin_section .link_1 input.add,
1349
+ .linkedin_section .link_2 input.add,
1350
+ .linkedin_section .link_3 input.add,
1351
+ .linkedin_section .link_4 input.add {
1352
+ width: 417px;
1353
+ }
1354
+
1355
+ .linkedin_section .link_1 {
1356
+ margin-bottom: 7px;
1357
+ }
1358
+
1359
+ .linkedin_section .link_2 {
1360
+ margin-bottom: 12px;
1361
+ }
1362
+
1363
+ .linkedin_section .link_3,
1364
+ .linkedin_section .link_4 {
1365
+ margin-bottom: 13px;
1366
+ }
1367
+
1368
+ .tab2 .linkedin_section .link_4 {
1369
+ margin-bottom: 0;
1370
+ }
1371
+
1372
+ ul.tab_3_list li span {
1373
+ font-family: helveticaregular;
1374
+ }
1375
+
1376
+ #accordion .tab4 h4,
1377
+ #accordion1 .tab4 h4 {
1378
+ color: #414951;
1379
+ font-size: 20px;
1380
+ }
1381
+
1382
+ .specify_counts .listing li .input {
1383
+ width: 73px;
1384
+ }
1385
+
1386
+ .sfsi_fbpgidwpr {
1387
+ width: 160px;
1388
+ float: left;
1389
+ font-weight: bold;
1390
+ font-size: 17px;
1391
+ color: #000000;
1392
+ }
1393
+
1394
+ .sfsi_fbpgiddesc {
1395
+ font-weight: normal;
1396
+ width: 42%;
1397
+ font-size: 14px;
1398
+ color: #888888;
1399
+ padding: 4px 0 0 60px;
1400
+ }
1401
+
1402
+ .specify_counts .listing li .input.mypginpt {
1403
+ width: 288px;
1404
+ }
1405
+
1406
+ .tab3 .Shuffle_auto .sub_sub_box .tab_3_option {
1407
+ padding-top: 0 !important;
1408
+ margin-bottom: 10px !important;
1409
+ }
1410
+
1411
+ .tab4 {
1412
+ padding-top: 35px !important;
1413
+ }
1414
+
1415
+ .tab4 .save_button {
1416
+ padding-top: 46px;
1417
+ }
1418
+
1419
+ .tab5 {
1420
+ padding-top: 31px !important;
1421
+ }
1422
+
1423
+ .tab6,
1424
+ .tab7 {
1425
+ padding-top: 28px !important;
1426
+ }
1427
+
1428
+ .tab5 .row_onl {
1429
+ margin-top: 15px;
1430
+ }
1431
+
1432
+ .tab5 .sticking .link>a {
1433
+ color: #a4a9ad;
1434
+ text-decoration: underline;
1435
+ }
1436
+
1437
+ .tab5 .mouse_txt h4 {
1438
+ /*margin-bottom: 8px!important;*/
1439
+ padding-bottom: 30px !important;
1440
+ }
1441
+
1442
+ .tab5 .save_button {
1443
+ padding-top: 54px;
1444
+ }
1445
+
1446
+ .tab7 .like_pop_box h2 {
1447
+ font-family: helveticabold;
1448
+ text-align: center;
1449
+ color: #414951;
1450
+ font-size: 26px;
1451
+ }
1452
+
1453
+ .tab1 ul.icn_listing li .right_info label:hover {
1454
+ text-decoration: none !important;
1455
+ }
1456
+
1457
+ .tab1 ul.icn_listing li .right_info label.expanded-area {
1458
+ clear: both;
1459
+ float: left;
1460
+ margin-top: 14px;
1461
+ width: 100%;
1462
+ }
1463
+
1464
+ .tab7 .space {
1465
+ margin-top: 14px;
1466
+ }
1467
+
1468
+ .tab7 .pop_up_show label {
1469
+ font-family: helveticaregular !important;
1470
+ }
1471
+
1472
+ .tab7 .save_button {
1473
+ padding-top: 78px;
1474
+ }
1475
+
1476
+ .like_txt a {
1477
+ text-decoration: none;
1478
+ font-family: helveticaregular;
1479
+ }
1480
+
1481
+ .bdr_btm_non {
1482
+ border-bottom: none !important;
1483
+ }
1484
+
1485
+ .tab1 .tab_1_sav {
1486
+ padding-top: 13px;
1487
+ }
1488
+
1489
+ #accordion .tab2 .facebook_section .inr_cont p.extra_sp,
1490
+ #accordion1 .tab2 .facebook_section .inr_cont p.extra_sp {
1491
+ padding-top: 7px;
1492
+ }
1493
+
1494
+ .tab2 .custom_section {
1495
+ width: 100%
1496
+ }
1497
+
1498
+ .tab7 {
1499
+ padding-bottom: 40px !important;
1500
+ }
1501
+
1502
+ .tab9 .save_button {
1503
+ padding-top: 40px;
1504
+ }
1505
+
1506
+ .tab9 .save_button a {
1507
+ padding: 16px 0;
1508
+ }
1509
+
1510
+ .tab2 .twitter_section .twt_fld input.add,
1511
+ .tab2 .twitter_section .twt_fld_2 textarea.add_txt {
1512
+ width: 464px !important;
1513
+ }
1514
+
1515
+ .tab2 .utube_inn .fb_url label span {
1516
+ font-family: helveticaneue-light;
1517
+ }
1518
+
1519
+ .tab1 label,
1520
+ .tab2 label,
1521
+ .tab3 label,
1522
+ .tab4 label,
1523
+ .tab5 label,
1524
+ .tab6 label,
1525
+ .tab7 label,
1526
+ .tab8 label {
1527
+ cursor: default !important;
1528
+ }
1529
+
1530
+ .tab5 .new_wind h4 {
1531
+ margin-bottom: 11px !important;
1532
+ }
1533
+
1534
+ .pop_up_box .fb_2 span {
1535
+ height: 28px !important;
1536
+ }
1537
+
1538
+ .pop_up_box .sfsi_tool_tip_2 .fbb .fb_1 a {
1539
+ margin-top: 0;
1540
+ }
1541
+
1542
+ .tab6 .social_icon_like1 ul li span {
1543
+ margin-top: -1px;
1544
+ }
1545
+
1546
+ #sfpageLoad {
1547
+ background: url(../images/ajax-loader.gif) 50% 50% no-repeat #F9F9F9;
1548
+ height: 100%;
1549
+ left: 160px;
1550
+ opacity: 1;
1551
+ position: fixed;
1552
+ top: 0;
1553
+ width: 92%;
1554
+ z-index: 9999;
1555
+ }
1556
+
1557
+ .sfsi_tool_tip_2,
1558
+ .tool_tip {
1559
+ background: #FFF;
1560
+ border: 1px solid #e7e7e7;
1561
+ box-shadow: #e7e7e7 0 0 2px 1px;
1562
+ display: block;
1563
+ float: left;
1564
+ margin: 0 0 0 -52px;
1565
+ padding: 5px 14px 5px 14px;
1566
+ position: absolute;
1567
+ z-index: 10000;
1568
+ border-bottom: #e5e5e5 solid 4px;
1569
+ width: 100px;
1570
+ }
1571
+
1572
+ .sfsi_tool_tip_2 {
1573
+ display: inline-table;
1574
+ }
1575
+
1576
+ .inerCnt,
1577
+ .inerCnt:hover,
1578
+ .inerCnt>a,
1579
+ .inerCnt>a:hover,
1580
+ .widget-area .widget a {
1581
+ outline: 0;
1582
+ }
1583
+
1584
+ .sfsi_tool_tip_2_inr {
1585
+ bottom: 90%;
1586
+ left: 20%;
1587
+ opacity: 0;
1588
+ }
1589
+
1590
+ .sfsi_tool_tip_2 .bot_arow {
1591
+ background: url(../images/bot_tip_icn.png) no-repeat;
1592
+ position: absolute;
1593
+ bottom: -21px;
1594
+ left: 50%;
1595
+ width: 15px;
1596
+ height: 21px;
1597
+ margin-left: -5px;
1598
+ }
1599
+
1600
+ .sfsi_tool_tip_2 .top_big_arow {
1601
+ position: absolute;
1602
+ -webkit-transform: rotate(180deg);
1603
+ -moz-transform: rotate(180deg);
1604
+ -ms-transform: rotate(180deg);
1605
+ -o-transform: rotate(180deg);
1606
+ transform: rotate(180deg);
1607
+ top: -21px;
1608
+ left: 50%;
1609
+ width: 15px;
1610
+ height: 21px;
1611
+ margin-right: -5px;
1612
+ }
1613
+
1614
+ .sfsi_tool_tip_2_inr .gpls_visit>a,
1615
+ .sfsi_tool_tip_2_inr .prints_visit_1 a,
1616
+ .sfsi_tool_tip_2_inr .utub_visit>a {
1617
+ margin-top: 0;
1618
+ }
1619
+
1620
+ .sfsi_tool_tip_2_inr .linkin_1 a,
1621
+ .sfsi_tool_tip_2_inr .linkin_2 a,
1622
+ .sfsi_tool_tip_2_inr .linkin_3 a,
1623
+ .sfsi_tool_tip_2_inr .linkin_4 a,
1624
+ .sfsi_tool_tip_2_inr .prints_visit a {
1625
+ margin: 0;
1626
+ }
1627
+
1628
+ .sfsiTlleftBig {
1629
+ bottom: 121%;
1630
+ left: 22%;
1631
+ margin-left: -54%
1632
+ }
1633
+
1634
+ .sfsiTlleft {
1635
+ bottom: 100%;
1636
+ left: 50%;
1637
+ margin-left: -66px;
1638
+ margin-bottom: 2px;
1639
+ }
1640
+
1641
+ .sfsi_plc_btm {
1642
+ bottom: auto;
1643
+ top: 100%;
1644
+ left: 50%;
1645
+ margin-left: -63px;
1646
+ margin-top: -6px;
1647
+ margin-bottom: auto;
1648
+ }
1649
+
1650
+ .inerCnt {
1651
+ position: relative;
1652
+ z-index: inherit !important;
1653
+ float: left;
1654
+ width: 100%;
1655
+ float: left;
1656
+ }
1657
+
1658
+ .sfsi_wicons {
1659
+ margin-bottom: 30px;
1660
+ position: relative;
1661
+ padding-top: 5px;
1662
+ }
1663
+
1664
+ .norm_row .bot_no {
1665
+ position: absolute;
1666
+ padding: 1px 0;
1667
+ font-size: 12px !important;
1668
+ text-align: center;
1669
+ line-height: 12px !important;
1670
+ background: #fff;
1671
+ border-radius: 5px;
1672
+ left: 50%;
1673
+ margin-left: -20px;
1674
+ z-index: 9;
1675
+ border: 1px solid #333;
1676
+ top: 100%;
1677
+ white-space: pre;
1678
+ -webkit-box-sizing: border-box;
1679
+ -moz-box-sizing: border-box;
1680
+ box-sizing: border-box;
1681
+ margin-top: 0px;
1682
+ width: 40px;
1683
+ }
1684
+
1685
+ .norm_row .bot_no:before {
1686
+ content: url(images/count_top_arow.png);
1687
+ position: absolute;
1688
+ height: 9px;
1689
+ margin-left: -7.5px;
1690
+ top: -10px;
1691
+ left: 50%;
1692
+ width: 15px;
1693
+ }
1694
+
1695
+ .bot_no.sfsiSmBtn {
1696
+ font-size: 10px;
1697
+ margin-top: 4px;
1698
+ }
1699
+
1700
+ .bot_no.sfsiSmBtn:before {
1701
+ margin-left: -8px;
1702
+ top: -9px;
1703
+ }
1704
+
1705
+ .norm_row .cbtn_vsmall {
1706
+ font-size: 9px;
1707
+ left: -28%;
1708
+ top: 4px;
1709
+ }
1710
+
1711
+ .norm_row .cbtn_vsmall:before {
1712
+ left: 31%;
1713
+ top: -9px;
1714
+ margin-left: -31%
1715
+ }
1716
+
1717
+ h2.optional {
1718
+ font-family: helveticaregular;
1719
+ font-size: 25px;
1720
+ margin: 14px 0 19px;
1721
+ color: #5a6570;
1722
+ }
1723
+
1724
+ .utube_tool_bdr .utub_visit {
1725
+ margin: 9px 0 0;
1726
+ height: 24px;
1727
+ display: inline-block;
1728
+ float: none;
1729
+ }
1730
+
1731
+ .utube_tool_bdr .utub_2 {
1732
+ margin: 9px 0 0;
1733
+ height: 24px;
1734
+ width: 86px;
1735
+ display: inline-block;
1736
+ float: none;
1737
+ }
1738
+
1739
+ .printst_tool_bdr {
1740
+ width: 79px;
1741
+ }
1742
+
1743
+ .printst_tool_bdr .prints_visit {
1744
+ margin: 0 0 10px -22px;
1745
+ }
1746
+
1747
+ .printst_tool_bdr .prints_visit_1 {
1748
+ margin: 0 0 0 -53px;
1749
+ }
1750
+
1751
+ .fb_tool_bdr {
1752
+ width: 68px;
1753
+ height: auto;
1754
+ }
1755
+
1756
+ .fb_tool_bdr .sfsi_inside {
1757
+ text-align: center;
1758
+ width: 100%;
1759
+ float: left;
1760
+ overflow: hidden;
1761
+ }
1762
+
1763
+ .fb_tool_bdr .sfsi_inside .icon1 {
1764
+ /* margin: 0 0 -5px 0;*/
1765
+ margin: 2px 0px 4px 0;
1766
+ height: auto;
1767
+ display: inline-block;
1768
+ float: none;
1769
+ width: 62px;
1770
+ }
1771
+
1772
+ .fb_tool_bdr .sfsi_inside .icon2 {
1773
+ margin: 2px 0 3px 0 !important;
1774
+ height: auto;
1775
+ width: 53px;
1776
+ display: inline-block;
1777
+ overflow: hidden;
1778
+ }
1779
+
1780
+ .fb_tool_bdr .sfsi_inside .icon3 {
1781
+ margin: 2px 0 2px 0;
1782
+ height: auto;
1783
+ width: 62px;
1784
+ display: inline-block;
1785
+ float: none;
1786
+ }
1787
+
1788
+ .fb_tool_bdr .sfsi_inside .fb_1,
1789
+ .fb_tool_bdr .sfsi_inside .fb_2,
1790
+ .fb_tool_bdr .sfsi_inside .fb_3 {
1791
+ margin: 9px 0 0;
1792
+ height: 25px;
1793
+ }
1794
+
1795
+ .printst_tool_bdr .sfsi_inside {
1796
+ text-align: center;
1797
+ float: left;
1798
+ width: 100%
1799
+ }
1800
+
1801
+ .printst_tool_bdr .sfsi_inside .icon1 {
1802
+ /* margin: 2px 0;*/
1803
+ margin: 3px 0 3px 0;
1804
+ /* height: 24px;*/
1805
+ height: auto;
1806
+ display: inline-block;
1807
+ float: none;
1808
+ width: 73px;
1809
+ }
1810
+
1811
+ .printst_tool_bdr .sfsi_inside .icon2 {
1812
+ /* margin: 2px 0;*/
1813
+ margin: 2px 0 2px 0;
1814
+ height: auto;
1815
+ display: inline-block;
1816
+ float: none;
1817
+ max-width: 73px;
1818
+ width: auto;
1819
+ }
1820
+
1821
+ .printst_tool_bdr .sfsi_inside .prints_visit,
1822
+ .printst_tool_bdr .sfsi_inside .prints_visit_1 {
1823
+ margin: 9px 0 0;
1824
+ height: 20px;
1825
+ float: none;
1826
+ display: inline-block;
1827
+ }
1828
+
1829
+ .printst_tool_bdr {
1830
+ margin-left: -59px;
1831
+ }
1832
+
1833
+ .fb_tool_bdr .sfsi_inside .icon1>a>img,
1834
+ .gpls_tool_bdr .sfsi_inside .icon1>a>img,
1835
+ .linkedin_tool_bdr .sfsi_inside .icon1>a>img,
1836
+ .linkedin_tool_bdr .sfsi_inside .icon4>a>img,
1837
+ .printst_tool_bdr .sfsi_inside .icon1>a>img,
1838
+ .printst_tool_bdr .sfsi_inside .icon2>a>img,
1839
+ .utube_tool_bdr .sfsi_inside .icon1>a>img {
1840
+ padding-top: 0;
1841
+ }
1842
+
1843
+ .gpls_tool_bdr {
1844
+ width: 76px;
1845
+ }
1846
+
1847
+ .gpls_tool_bdr .sfsi_inside .icon1>a>img {
1848
+ padding-top: 0;
1849
+ }
1850
+
1851
+ .gpls_tool_bdr .sfsi_inside {
1852
+ text-align: center;
1853
+ width: 100%;
1854
+ float: left;
1855
+ }
1856
+
1857
+ .gpls_tool_bdr .sfsi_inside .icon1 {
1858
+ margin: 2px 0;
1859
+ display: inline-block;
1860
+ float: none;
1861
+ height: 29px;
1862
+ width: 76px;
1863
+ }
1864
+
1865
+ .gpls_tool_bdr .sfsi_inside .icon2 {
1866
+ margin: 2px 0 3px 0;
1867
+ display: inline-block;
1868
+ float: none;
1869
+ height: 24px;
1870
+ width: 38px;
1871
+ }
1872
+
1873
+ .gpls_tool_bdr .sfsi_inside .icon3 {
1874
+ margin: 3px 0 2px 0;
1875
+ display: inline-block;
1876
+ float: none;
1877
+ height: 24px;
1878
+ width: 76px;
1879
+ }
1880
+
1881
+ .gpls_tool_bdr .sfsi_inside .gpls_visit,
1882
+ .gpls_tool_bdr .sfsi_inside .gtalk_2,
1883
+ .gpls_tool_bdr .sfsi_inside .gtalk_3 {
1884
+ margin: 9px 0 0;
1885
+ height: 29px;
1886
+ }
1887
+
1888
+ .pop_up_box_ex.sfsi_pop_up .fb_tool_bdr,
1889
+ .gpls_tool_bdr,
1890
+ .linkedin_tool_bdr,
1891
+ .twt_tool_bdr {
1892
+ bottom: 100%;
1893
+ left: 50%;
1894
+ margin-bottom: -12px;
1895
+ }
1896
+
1897
+ .fb_tool_bdr,
1898
+ .gpls_tool_bdr,
1899
+ .linkedin_tool_bdr,
1900
+ .twt_tool_bdr {
1901
+ bottom: 100%;
1902
+ left: 50%;
1903
+ margin-bottom: 8px;
1904
+ }
1905
+
1906
+ .printst_tool_bdr {
1907
+ bottom: 80%;
1908
+ left: 50%;
1909
+ /* margin-bottom: 2px;*/
1910
+ margin-bottom: 0px;
1911
+ margin-bottom: 18px;
1912
+ }
1913
+
1914
+ .printst_tool_bdr {
1915
+ bottom: 80%;
1916
+ left: 50%;
1917
+ margin-bottom: 18px;
1918
+ }
1919
+
1920
+ .twt_tool_bdr .sfsi_inside {
1921
+ text-align: center;
1922
+ width: 100%;
1923
+ float: left;
1924
+ }
1925
+
1926
+ .twt_tool_bdr .sfsi_inside .cstmicon1 {
1927
+ margin: 2px 0px 2px 0 !important;
1928
+ /*margin: 2px 0!important; display: inline-block;*/
1929
+ float: none;
1930
+ width: 62px;
1931
+ /* overflow: hidden;*/
1932
+ /*height: 20px;*/
1933
+ }
1934
+
1935
+ .twt_tool_bdr .sfsi_inside .cstmicon1 a img {
1936
+ float: left;
1937
+ }
1938
+
1939
+ .twt_tool_bdr .sfsi_inside .icon1 {
1940
+ /*margin: -4px 0 -5px 0 !important;*/
1941
+ margin: 5px 0px 3px 0 !important;
1942
+ display: inline-block;
1943
+ float: none;
1944
+ width: 61px;
1945
+ /* overflow: hidden;*/
1946
+ height: auto;
1947
+ }
1948
+
1949
+ .twt_tool_bdr .sfsi_inside .icon1 iframe {
1950
+ width: 61px !important;
1951
+ }
1952
+
1953
+ .twt_tool_bdr .sfsi_inside .icon2 {
1954
+ margin: 3px 0px 2px 0px !important;
1955
+ display: inline-block;
1956
+ float: none;
1957
+ height: auto;
1958
+ width: 58px;
1959
+ }
1960
+
1961
+ .twt_tool_bdr .sfsi_inside .twt_1 {
1962
+ margin: 9px 0 0;
1963
+ display: inline-block;
1964
+ float: none;
1965
+ width: 58px;
1966
+ height: 20px;
1967
+ overflow: hidden;
1968
+ }
1969
+
1970
+ .twt_tool_bdr .sfsi_inside .twt_1 iframe {
1971
+ width: 100% !important;
1972
+ }
1973
+
1974
+ .twt_tool_bdr .sfsi_inside .twt_2 {
1975
+ margin: 9px 0 0;
1976
+ height: 20px;
1977
+ display: inline-block;
1978
+ float: none;
1979
+ width: 58px;
1980
+ }
1981
+
1982
+ .utube_tool_bdr .sfsi_inside {
1983
+ text-align: center;
1984
+ width: 100%;
1985
+ float: left;
1986
+ }
1987
+
1988
+ .utube_tool_bdr .sfsi_inside .icon1 {
1989
+ /*margin: 5px 0 0;*/
1990
+ margin: 4px 0px 3px 0;
1991
+ height: 24px;
1992
+ display: inline-block;
1993
+ float: none;
1994
+ width: 96px;
1995
+ }
1996
+
1997
+ .utube_tool_bdr .sfsi_inside .icon2 {
1998
+ /* margin: 9px 0 0;*/
1999
+ margin: 2px 0 3px 0 !important;
2000
+ height: 24px;
2001
+ display: inline-block;
2002
+ float: none;
2003
+ max-width: 96px;
2004
+ width: 82px;
2005
+ }
2006
+
2007
+ .pop-overlay.read-overlay.ytex-s2 .utube_tool_bdr {
2008
+ width: 93px;
2009
+ bottom: 100%;
2010
+ left: 50%;
2011
+ margin-bottom: -12px;
2012
+ }
2013
+
2014
+ .utube_tool_bdr {
2015
+ width: 93px;
2016
+ bottom: 100%;
2017
+ left: 50%;
2018
+ margin-bottom: 8px;
2019
+ }
2020
+
2021
+ .linkedin_tool_bdr {
2022
+ width: 66px;
2023
+ }
2024
+
2025
+ .linkedin_tool_bdr .sfsi_inside {
2026
+ text-align: center;
2027
+ float: left;
2028
+ width: 100%
2029
+ }
2030
+
2031
+ .linkedin_tool_bdr .sfsi_inside .icon1 {
2032
+ margin: 2px 0 2px 0px;
2033
+ display: inline-block;
2034
+ float: none;
2035
+ /* height: 20px;*/
2036
+ width: 100%;
2037
+ }
2038
+
2039
+ .linkedin_tool_bdr .sfsi_inside .icon2 {
2040
+ margin: 2px 0 2px 0px;
2041
+ display: inline-block;
2042
+ float: none;
2043
+ /* height: 20px;*/
2044
+ width: 100%;
2045
+ }
2046
+
2047
+ .linkedin_tool_bdr .sfsi_inside .icon3 {
2048
+ margin: 2px 0 2px 0px;
2049
+ display: inline-block;
2050
+ float: none;
2051
+ /* height: 20px;*/
2052
+ width: 100%;
2053
+ }
2054
+
2055
+ .linkedin_tool_bdr .sfsi_inside .icon4 {
2056
+ margin: 2px 0 1px 0px;
2057
+ display: inline-block;
2058
+ float: none;
2059
+ /* height: 25px !important;*/
2060
+ width: 100%;
2061
+ }
2062
+
2063
+ .sfsi_FrntInner_chg .linkedin_tool_bdr .sfsi_inside .icon1 {
2064
+ margin: 7px 0;
2065
+ }
2066
+
2067
+ .sfsi_widget .linkedin_tool_bdr .sfsi_inside .icon4,
2068
+ .sfsi_widget .gpls_tool_bdr .sfsi_inside .icon1,
2069
+ .sfsi_widget .fb_tool_bdr .sfsi_inside .icon1 {
2070
+ height: auto
2071
+ }
2072
+
2073
+ .linkedin_tool_bdr .linkin_1,
2074
+ .linkedin_tool_bdr .linkin_2,
2075
+ .linkedin_tool_bdr .linkin_3,
2076
+ .linkedin_tool_bdr .linkin_4 {
2077
+ margin: 9px 0 0 !important;
2078
+ height: 20px;
2079
+ display: inline-block;
2080
+ float: none;
2081
+ overflow: hidden;
2082
+ }
2083
+
2084
+ .twt_tool_bdr {
2085
+ width: 62px;
2086
+ height: auto;
2087
+ }
2088
+
2089
+ .twt_tool_bdr .sfsi_inside .icon1>iframe {
2090
+ margin: 0 auto !important;
2091
+ float: none !important;
2092
+ width: 100%
2093
+ }
2094
+
2095
+ .twt_tool_bdr .sfsi_inside .icon1>iframe #widget {
2096
+ text-align: center;
2097
+ }
2098
+
2099
+ .sfsi_pop_up .button {
2100
+ border: none;
2101
+ padding: 0;
2102
+ }
2103
+
2104
+ .pop_up_box .button a {
2105
+ color: #fff;
2106
+ line-height: normal;
2107
+ font-size: 22px;
2108
+ text-decoration: none;
2109
+ text-align: center;
2110
+ width: 482px;
2111
+ height: 80px;
2112
+ margin: 0;
2113
+ display: table-cell;
2114
+ vertical-align: middle;
2115
+ font-family: helveticabold;
2116
+ }
2117
+
2118
+ .tab3 ul.tab_3_icns li .radio {
2119
+ margin-top: 7px;
2120
+ }
2121
+
2122
+ .tab3 ul.tab_3_icns li label {
2123
+ line-height: 50px !important;
2124
+ margin-left: 20px;
2125
+ }
2126
+
2127
+ .sfsi_mainContainer input[type=email],
2128
+ .sfsi_mainContainer input[type=number],
2129
+ .sfsi_mainContainer input[type=password],
2130
+ .sfsi_mainContainer input[type=search],
2131
+ .sfsi_mainContainer input[type=tel],
2132
+ .sfsi_mainContainer input[type=text],
2133
+ .sfsi_mainContainer input[type=url],
2134
+ .sfsi_mainContainer select,
2135
+ .sfsi_mainContainer textarea {
2136
+ color: #5a6570 !important;
2137
+ }
2138
+
2139
+ .adminTooltip {
2140
+ left: 142px;
2141
+ position: absolute;
2142
+ }
2143
+
2144
+ .adPopWidth {
2145
+ min-height: 100px !important;
2146
+ }
2147
+
2148
+ .main_contant p>a.lit_txt,
2149
+ .tab4 p>a {
2150
+ font-family: helveticaregular;
2151
+ color: #414951;
2152
+ }
2153
+
2154
+ .tab1 ul.icn_listing li .custom-txt {
2155
+ margin-left: 5px;
2156
+ }
2157
+
2158
+ .tab1 ul.icn_listing li .custom-img {
2159
+ margin-left: 18px;
2160
+ }
2161
+
2162
+ .linkedin_section .link_4>label.anthr_labl {
2163
+ height: 94px;
2164
+ }
2165
+
2166
+ .mediam_txt {
2167
+ font-family: helveticabold;
2168
+ }
2169
+
2170
+ .sfsiCtxt {
2171
+ line-height: 51px;
2172
+ font-family: helveticaregular;
2173
+ font-size: 22px;
2174
+ float: left;
2175
+ padding-left: 19px;
2176
+ color: #5a6570;
2177
+ }
2178
+
2179
+ .customstep2-img {
2180
+ width: 51px;
2181
+ float: left;
2182
+ }
2183
+
2184
+ .tab2 .row h2.custom {
2185
+ margin: 15px 0 7px 21px;
2186
+ height: 52px;
2187
+ line-height: 51px;
2188
+ font-family: helveticaregular;
2189
+ font-size: 22px;
2190
+ }
2191
+
2192
+ .custom-links p.cus_link label {
2193
+ margin-left: 0;
2194
+ }
2195
+
2196
+ .pop_up_box .sfsi_tool_tip_2 .fbb .fb_1 a>img:hover {
2197
+ opacity: .9;
2198
+ }
2199
+
2200
+ .tab2 .rss_url_row .sfrsTxt {
2201
+ font-size: 17px;
2202
+ line-height: 47px;
2203
+ margin: 0 0 0 4px;
2204
+ font-family: helveticaregular;
2205
+ }
2206
+
2207
+ .tab2 .rss_url_row .sfrsTxt>strong {
2208
+ font-family: helveticaregular;
2209
+ }
2210
+
2211
+ .tab2 .utube_inn p.extra_pp {
2212
+ float: left;
2213
+ width: 100%;
2214
+ margin: 0 0 0 48px;
2215
+ }
2216
+
2217
+ .tab2 .utube_inn p.extra_pp label {
2218
+ float: left;
2219
+ line-height: 41px;
2220
+ margin-right: 8px;
2221
+ }
2222
+
2223
+ .sfsi_inside .icon2 .fb_iframe_widget span {
2224
+ width: 500px !important;
2225
+ }
2226
+
2227
+ @media (max-width:767px) {
2228
+ .sfsi_inside .icon2 .fb_iframe_widget span {
2229
+ width: auto;
2230
+ }
2231
+
2232
+ .sfsi_outr_div {
2233
+ top: 10%
2234
+ }
2235
+
2236
+ .sfsi_outr_div h2 {
2237
+ font-size: 22px !important;
2238
+ line-height: 28px;
2239
+ }
2240
+
2241
+ .sfsi_wicons {
2242
+ padding-top: 0;
2243
+ }
2244
+ }
2245
+
2246
+ .specify_counts .listing li .high_prb {
2247
+ height: 41px;
2248
+ }
2249
+
2250
+ .sfsi_Sicons {
2251
+ position: relative;
2252
+ }
2253
+
2254
+ .sfsi_Sicons .sf_fb {
2255
+ position: relative;
2256
+ /*z-index: 1;*/
2257
+ width: 75px;
2258
+ }
2259
+
2260
+ .sfsi_Sicons .fb_iframe_widget {
2261
+ float: left;
2262
+ width: 73px;
2263
+ margin: 2px 0 0;
2264
+ }
2265
+
2266
+ .sfsi_Sicons .sf_fb .fb_iframe_widget>span {
2267
+ position: absolute;
2268
+ /*width: 450px!important; z-index: 1;*/
2269
+ }
2270
+
2271
+ .tab2 .utube_inn label {
2272
+ font-size: 17px;
2273
+ }
2274
+
2275
+ .sfsi_plc_btm {
2276
+ padding: 5px 14px 9px;
2277
+ }
2278
+
2279
+ .tab7 .field {
2280
+ margin-top: 7px;
2281
+ }
2282
+
2283
+ .sfsi_outr_div ul li .cmcls img {
2284
+ margin-top: 0 !important;
2285
+ }
2286
+
2287
+ .sfsi_outr_div ul li .inerCnt {
2288
+ float: left;
2289
+ }
2290
+
2291
+ .sfsi_outr_div ul li .inerCnt .bot_no {
2292
+ position: absolute;
2293
+ padding: 1px 0;
2294
+ font-size: 12px !important;
2295
+ line-height: 12px !important;
2296
+ text-align: center;
2297
+ background: #fff;
2298
+ border-radius: 5px;
2299
+ display: block;
2300
+ left: 50%;
2301
+ margin-left: -20px;
2302
+ border: 1px solid #333;
2303
+ white-space: pre;
2304
+ -webkit-box-sizing: border-box;
2305
+ -moz-box-sizing: border-box;
2306
+ box-sizing: border-box;
2307
+ margin-top: 6px;
2308
+ width: 40px;
2309
+ word-break: break-all;
2310
+ word-wrap: break-word;
2311
+ }
2312
+
2313
+ .sfsi_outr_div ul li .inerCnt .bot_no:before {
2314
+ content: url(images/count_top_arow.png);
2315
+ position: absolute;
2316
+ height: 9px;
2317
+ margin-left: -7.5px;
2318
+ top: -10px;
2319
+ left: 50%;
2320
+ width: 15px;
2321
+ }
2322
+
2323
+ .sfsi_outr_div {
2324
+ position: fixed;
2325
+ width: 100%;
2326
+ float: none;
2327
+ left: 50%;
2328
+ top: 20%;
2329
+ margin-left: -50%;
2330
+ opacity: 0;
2331
+ z-index: -1;
2332
+ display: block;
2333
+ text-align: center;
2334
+ }
2335
+
2336
+ .sfsi_outr_div .sfsi_FrntInner_chg {
2337
+ display: inline-block;
2338
+ padding: 15px 17px 27px 18px;
2339
+ background: #FFF;
2340
+ border: 1px solid #EDEDED;
2341
+ box-shadow: 0 0 5px #CCC;
2342
+ margin: 20px;
2343
+ position: relative;
2344
+ }
2345
+
2346
+ .sfsi_FrntInner_chg .sfsiclpupwpr {
2347
+ position: absolute;
2348
+ right: -10px;
2349
+ top: -10px;
2350
+ width: 25px;
2351
+ cursor: pointer;
2352
+ }
2353
+
2354
+ .sfsi_FrntInner_chg .sfsiclpupwpr img {
2355
+ width: auto;
2356
+ float: left;
2357
+ border: medium none;
2358
+ }
2359
+
2360
+ .tab7 .like_pop_box {
2361
+ width: 100%;
2362
+ margin: 35px auto auto;
2363
+ position: relative;
2364
+ text-align: center;
2365
+ }
2366
+
2367
+ .tab7 .like_pop_box .sfsi_Popinner {
2368
+ display: inline-block;
2369
+ padding: 18px 20px;
2370
+ box-shadow: 0 0 5px #ccc;
2371
+ -webkit-box-shadow: 0 0 5px #ccc;
2372
+ border: 1px solid #ededed;
2373
+ background: #FFF;
2374
+ }
2375
+
2376
+ .tab7 .like_pop_box .sfsi_Popinner h2 {
2377
+ margin: 0 0 23px;
2378
+ padding: 0;
2379
+ color: #414951;
2380
+ font-family: helveticabold;
2381
+ font-size: 26px;
2382
+ text-align: center;
2383
+ }
2384
+
2385
+ .tab7 .like_pop_box .sfsi_Popinner ul {
2386
+ margin: 0;
2387
+ padding: 0;
2388
+ list-style: none;
2389
+ text-align: center;
2390
+ }
2391
+
2392
+ .tab7 .like_pop_box .sfsi_Popinner ul li {
2393
+ margin: 0;
2394
+ padding: 0;
2395
+ list-style: none;
2396
+ display: inline-block;
2397
+ }
2398
+
2399
+ .tab7 .like_pop_box .sfsi_Popinner ul li span {
2400
+ margin: 0;
2401
+ width: 54px;
2402
+ display: block;
2403
+ background: url(../images/count_bg.png) no-repeat;
2404
+ height: 24px;
2405
+ overflow: hidden;
2406
+ padding: 10px 2px 2px;
2407
+ font-family: helveticaregular;
2408
+ font-size: 16px;
2409
+ text-align: center;
2410
+ line-height: 24px;
2411
+ color: #5a6570;
2412
+ }
2413
+
2414
+ .tab7 .like_pop_box .sfsi_Popinner ul li a {
2415
+ color: #5a6570;
2416
+ text-decoration: none;
2417
+ }
2418
+
2419
+ .sfsi_outr_div .sfsi_FrntInner_chg .sfsi_wicons {
2420
+ margin-bottom: 0;
2421
+ }
2422
+
2423
+ .sfsi_outr_div ul {
2424
+ list-style: none;
2425
+ margin: 0 0 24px;
2426
+ padding: 0;
2427
+ text-align: center;
2428
+ }
2429
+
2430
+ a.sfsiColbtn {
2431
+ color: #5a6570 !important;
2432
+ float: right;
2433
+ font-size: 14px;
2434
+ margin: -35px -30px 0 0;
2435
+ position: relative;
2436
+ right: 0;
2437
+ font-family: helveticaregular;
2438
+ width: 100px;
2439
+ text-decoration: none;
2440
+ }
2441
+
2442
+ .tab3 a.sfsiColbtn {
2443
+ margin-top: -43px;
2444
+ }
2445
+
2446
+ .sfsi_FrntInner_chg ul li:first-of-type .sfsi_wicons {
2447
+ margin-left: 0 !important;
2448
+ }
2449
+
2450
+ ul.tab_3_icns li .trans_bg {
2451
+ background: #000;
2452
+ padding-left: 3px;
2453
+ }
2454
+
2455
+ .tab2 .instagram_section {
2456
+ padding-bottom: 20px;
2457
+ }
2458
+
2459
+ h1.abt_titl {
2460
+ text-align: center;
2461
+ margin: 19% 0 0;
2462
+ }
2463
+
2464
+ .sfcm.sfsi_wicon {
2465
+ padding: 0;
2466
+ width: 100%;
2467
+ border: medium none;
2468
+ }
2469
+
2470
+ .fb_iframe_widget span {
2471
+ vertical-align: top !important;
2472
+ }
2473
+
2474
+ .sfsi_outr_div .sfsi_FrntInner_chg ul {
2475
+ margin: 0 0 0 3px;
2476
+ }
2477
+
2478
+ .sfsi_outr_div .sfsi_FrntInner_chg ul li {
2479
+ margin: 0 3px 0 0;
2480
+ }
2481
+
2482
+ .sfcm.sfsi_wicon {
2483
+ margin: -1px;
2484
+ padding: 0;
2485
+ }
2486
+
2487
+ @media (min-width:320px) and (max-width:480px) {
2488
+
2489
+ .sfsi_tool_tip_2,
2490
+ .tool_tip {
2491
+ padding: 5px 14px 0;
2492
+ }
2493
+
2494
+ .sfsi_inside:last-child {
2495
+ margin-bottom: 18px;
2496
+ clear: both;
2497
+ }
2498
+
2499
+ .sfsi_outr_div {
2500
+ top: 10%;
2501
+ }
2502
+
2503
+ .sfsi_FrntInner_chg .sfsi_wicons {
2504
+ width: 31px !important;
2505
+ height: 31px !important;
2506
+ }
2507
+
2508
+ .sfsi_FrntInner_chg .sfsi_wicons img {
2509
+ width: 100%;
2510
+ }
2511
+
2512
+ .sfsi_Sicons .sf_fb {
2513
+ margin-bottom: 24px;
2514
+ }
2515
+
2516
+ .sfsi_Sicons .sf_twiter {
2517
+ margin-bottom: 4px;
2518
+ }
2519
+ }
2520
+
2521
+ @media (max-width:320px) {
2522
+
2523
+ .sfsi_tool_tip_2,
2524
+ .tool_tip {
2525
+ padding: 5px 14px 0;
2526
+ }
2527
+
2528
+ .sfsi_inside:last-child {
2529
+ margin-bottom: 18px;
2530
+ clear: both;
2531
+ }
2532
+
2533
+ .sfsi_FrntInner_chg .sfsi_wicons {
2534
+ width: 31px !important;
2535
+ height: 31px !important;
2536
+ }
2537
+
2538
+ .sfsi_FrntInner_chg .sfsi_wicons img {
2539
+ width: 100%
2540
+ }
2541
+ }
2542
+
2543
+ ul.SFSI_lsngfrm {
2544
+ float: left;
2545
+ /* width: 61%;*/
2546
+ width: 51.33%;
2547
+ padding-left: 60px !important;
2548
+ }
2549
+
2550
+ ul.SFSI_instructions {
2551
+ float: left;
2552
+ width: 35%;
2553
+ }
2554
+
2555
+ li.youtube_options {
2556
+ padding-left: 60px !important;
2557
+ }
2558
+
2559
+ input[name="sfsi_pinterest_manualCounts"] {
2560
+ margin-left: -20px !important;
2561
+ }
2562
+
2563
+ ul.SFSI_instructions li {
2564
+ font-size: 12px !important;
2565
+ line-height: 25px !important;
2566
+ margin: 0 !important;
2567
+ padding: 0 0 0 15px !important;
2568
+ width: 100%
2569
+ }
2570
+
2571
+ /*{Monad}*/
2572
+ /*Upload Skins css*/
2573
+ .cstmskin_popup {
2574
+ width: 500px;
2575
+ background: #FFF;
2576
+ box-shadow: 0 0 5px 3px #d8d8d8;
2577
+ margin: 40px 0px auto;
2578
+ padding: 20px 25px 20px;
2579
+ font-family: helveticaregular;
2580
+ color: #5a6570;
2581
+ height: auto;
2582
+ float: left;
2583
+ position: relative;
2584
+ left: 35%;
2585
+ }
2586
+
2587
+ .cstomskins_wrpr {
2588
+ float: left;
2589
+ width: 100%;
2590
+ }
2591
+
2592
+ .custskinmsg {
2593
+ float: left;
2594
+ font-size: 15px;
2595
+ margin-top: 10px;
2596
+ width: 100%;
2597
+ }
2598
+
2599
+ .custskinmsg>ul {
2600
+ color: #000;
2601
+ float: left;
2602
+ margin-top: 8px;
2603
+ width: 100%;
2604
+ }
2605
+
2606
+ ul.cstmskin_iconlist {
2607
+ float: left;
2608
+ padding: 11px 0 40px 8px;
2609
+ width: 100%;
2610
+ max-width: 1000px;
2611
+ margin: 0;
2612
+ height: 307px;
2613
+ overflow-y: scroll;
2614
+ }
2615
+
2616
+ .placethemanulywpr {
2617
+ max-width: 98% !important
2618
+ }
2619
+
2620
+ .cstmskin_iconlist>li {
2621
+ float: left;
2622
+ margin: 3px 0;
2623
+ width: 100%;
2624
+ }
2625
+
2626
+ .cstm_icnname {
2627
+ float: left;
2628
+ width: 30%;
2629
+ }
2630
+
2631
+ .cstmskins_btn>img {
2632
+ float: left;
2633
+ margin-right: 25px;
2634
+ }
2635
+
2636
+ .cstmskin_btn {
2637
+ width: auto;
2638
+ float: left;
2639
+ padding: 3px 20px;
2640
+ color: #fff;
2641
+ background-color: #12a252;
2642
+ text-decoration: none;
2643
+ margin: 0 10px;
2644
+ }
2645
+
2646
+ .cstmskins_sbmt {
2647
+ width: 100%;
2648
+ float: left;
2649
+ text-align: center;
2650
+ margin-top: 15px;
2651
+ }
2652
+
2653
+ .done_btn {
2654
+ width: auto;
2655
+ padding: 3px 80px;
2656
+ color: #fff;
2657
+ background-color: #12a252;
2658
+ text-decoration: none;
2659
+ font-size: 18px;
2660
+ }
2661
+
2662
+ .cstmskin_btn:hover,
2663
+ .done_btn:hover,
2664
+ .cstmskin_btn:focus,
2665
+ .done_btn:focus {
2666
+ color: #fff;
2667
+ }
2668
+
2669
+ .skswrpr,
2670
+ .dlt_btn {
2671
+ display: none;
2672
+ }
2673
+
2674
+ .cstmutbewpr {
2675
+ width: 100%;
2676
+ float: left;
2677
+ margin-top: 10px;
2678
+ margin-left: 40px;
2679
+ }
2680
+
2681
+ .cstmutbewpr ul.enough_waffling li {
2682
+ width: auto;
2683
+ float: left;
2684
+ margin-right: 20px;
2685
+ }
2686
+
2687
+ .cstmutbewpr ul.enough_waffling li span {
2688
+ float: left;
2689
+ }
2690
+
2691
+ .cstmutbewpr ul.enough_waffling li label {
2692
+ width: auto;
2693
+ float: left;
2694
+ margin-top: 10px;
2695
+ margin-left: 10px;
2696
+ }
2697
+
2698
+ .cstmutbewpr .cstmutbtxtwpr {
2699
+ width: 100%;
2700
+ float: left;
2701
+ padding-top: 10px;
2702
+ }
2703
+
2704
+ .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlnmewpr {
2705
+ width: 100%;
2706
+ float: left;
2707
+ display: none;
2708
+ }
2709
+
2710
+ #accordion .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlnmewpr p,
2711
+ #accordion .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlidwpr p {
2712
+ margin-left: 0px;
2713
+ }
2714
+
2715
+ .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlidwpr {
2716
+ width: 100%;
2717
+ float: left;
2718
+ display: none;
2719
+ }
2720
+
2721
+ #accordion .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlnmewpr p label,
2722
+ #accordion .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlidwpr p label {
2723
+ width: 120px;
2724
+ }
2725
+
2726
+ .sfsi_widget .sfsi_wDiv .sfsi_wicons .inerCnt a,
2727
+ .sfsi_widget .sfsi_wDiv .sfsi_wicons .inerCnt a.sficn {
2728
+ padding: 0px;
2729
+ margin: 0px;
2730
+ width: 100%;
2731
+ float: left;
2732
+ border: medium none;
2733
+ }
2734
+
2735
+ .sfsi_socialwpr {
2736
+ width: auto;
2737
+ display: inline-block;
2738
+ vertical-align: middle;
2739
+ }
2740
+
2741
+ .sfsi_socialwpr .sf_fb {
2742
+ float: left;
2743
+ }
2744
+
2745
+ .sfsipyplfrm {
2746
+ float: left;
2747
+ margin-top: 10px;
2748
+ width: 100%;
2749
+ }
2750
+
2751
+ .sfsipyplfrm input[type="submit"] {
2752
+ background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
2753
+ border: medium none;
2754
+ color: #0074a2;
2755
+ cursor: pointer;
2756
+ font-weight: normal;
2757
+ margin: 0;
2758
+ padding: 5px 10px;
2759
+ text-decoration: underline;
2760
+ }
2761
+
2762
+ .sfsipyplfrm input[type="submit"]:hover {
2763
+ color: #2ea2cc
2764
+ }
2765
+
2766
+ .pop_up_box_ex {
2767
+ background: none repeat scroll 0 0 #fff;
2768
+ box-shadow: 0 0 5px 3px #d8d8d8;
2769
+ color: #5a6570;
2770
+ font-family: helveticaregular;
2771
+ margin: 200px auto;
2772
+ min-height: 150px;
2773
+ padding: 20px 25px 0px;
2774
+ position: relative;
2775
+ width: 290px;
2776
+ }
2777
+
2778
+ .pop_up_box_ex {
2779
+ color: #5a6570;
2780
+ font-family: helveticaregular;
2781
+ }
2782
+
2783
+ .cstmutbchnlidwpr .utbe_instruction,
2784
+ .cstmutbchnlnmewpr .utbe_instruction,
2785
+ .lnkdin_instruction {
2786
+ float: left;
2787
+ line-height: 22px;
2788
+ margin-top: 10px;
2789
+ width: 100%;
2790
+ }
2791
+
2792
+ .fb_iframe_widget iframe {
2793
+ max-width: none;
2794
+ }
2795
+
2796
+ .sfsi_mainContainer p.bldtxtmsg {
2797
+ float: left;
2798
+ font-size: 15px;
2799
+ font-weight: bold;
2800
+ margin-top: 12px;
2801
+ width: 100%;
2802
+ text-align: center;
2803
+ }
2804
+
2805
+ .sfsinewplgndesc {
2806
+ background: none repeat scroll 0 0 #e5e5e5;
2807
+ float: left;
2808
+ padding: 5px 10px 8px;
2809
+ margin-top: 25px;
2810
+ }
2811
+
2812
+ .sfsinewplgndesc>.clear>a {
2813
+ color: #5a6570;
2814
+ font-weight: bold;
2815
+ }
2816
+
2817
+ .sfsiicnsdvwrp {
2818
+ float: left;
2819
+ width: 110px;
2820
+ }
2821
+
2822
+ .sfsi_Sicons .sf_subscrbe .bot_no {
2823
+ background: rgba(0, 0, 0, 0) url(images/count_left_arow.png) no-repeat scroll 0 0 / 27px auto;
2824
+ font-size: 12px !important;
2825
+ left: 67px;
2826
+ line-height: 18px !important;
2827
+ margin-left: 0px;
2828
+ margin-top: 8px;
2829
+ padding: 1px 0;
2830
+ position: absolute;
2831
+ text-align: center;
2832
+ top: -8px;
2833
+ white-space: pre;
2834
+ width: 33px;
2835
+ height: 24px;
2836
+ z-index: 9;
2837
+ }
2838
+
2839
+ .sfsi_wicons a.sficn,
2840
+ .sfsi_wicons .sfsi_inside a,
2841
+ .sfsi_Sicons div a {
2842
+ box-shadow: none;
2843
+ border: none;
2844
+ }
2845
+
2846
+ .sfsi_Sicons .sf_pinit>span {
2847
+ height: 20px !important;
2848
+ }
2849
+
2850
+ .sfsi_Sicons .sf_pinit>span>span {
2851
+ width: 38px !important;
2852
+ right: -45px !important;
2853
+ }
2854
+
2855
+ .sfsi_wicons a {
2856
+ box-shadow: none !important;
2857
+ }
2858
+
2859
+ a.sficn {
2860
+ cursor: pointer;
2861
+ }
2862
+
2863
+ .sfsi_Sicons .fb_iframe_widget>span {
2864
+ vertical-align: top !important;
2865
+ }
2866
+
2867
+ .sfsi_Sicons .sf_fb {
2868
+ margin: 0 0 0 5px !important;
2869
+ }
2870
+
2871
+ .disabled_checkbox .sfsi_right_info:before {
2872
+ position: absolute;
2873
+ content: "";
2874
+ width: 500px;
2875
+ height: 60px;
2876
+ display: inline-block;
2877
+ z-index: 99;
2878
+ margin-left: -66px;
2879
+ margin-top: -14px;
2880
+ background: rgba(255, 255, 255, .8);
2881
+ }
2882
+
2883
+ #sfsi_floater .fb_tool_bdr .sfsi_inside .icon2 {
2884
+ /*margin: -2px 0 -5px 0;*/
2885
+ }
2886
+
2887
+ .sfsi_wechat_follow_overlay {
2888
+ position: fixed;
2889
+ top: 0;
2890
+ width: 100%;
2891
+ z-index: 99999;
2892
+ background: rgba(0, 0, 0, 0.7);
2893
+ }
2894
+
2895
+ .sfsi_wechat_follow_overlay .close_btn {
2896
+ position: absolute;
2897
+ right: 60px;
2898
+ top: 60px;
2899
+ font-size: 40px;
2900
+ line-height: 40px;
2901
+ text-decoration: none;
2902
+ border: 1px solid #fff;
2903
+ padding: 0 10px;
2904
+ border-radius: 60px;
2905
+ color: #333;
2906
+ background-color: #ffff;
2907
+ text-decoration: none;
2908
+ }
2909
+
2910
+ @media (max-width:786px) {
2911
+ .sfsi_upload_butt_container {
2912
+ display: inline-block;
2913
+ }
2914
+
2915
+ .upload_butt {
2916
+ height: 38px;
2917
+ }
2918
+
2919
+ .sfsi_wechat_follow_overlay .sfsi_inner_display>div div.sfsi_upload_butt_container:first-child {
2920
+ margin-left: 0;
2921
+ margin-right: 20px;
2922
+ }
2923
+ }
2924
+
2925
+ /*added by Developer */
2926
+ #accordion1 p:nth-child(2) {
2927
+ padding-top: 0px !important;
2928
+ }
2929
+
2930
+ input[name="sfsi_instagram_manualCounts"] {
2931
+ margin-left: -15px !important;
2932
+ }
2933
+
2934
+ .sfsi_prem_cmn_rowlisting {
2935
+ width: 33.33%;
2936
+ }
2937
+
2938
+ .rss_url_row h4 {
2939
+ line-height: 43px !important;
2940
+ font-size: 17px !important;
2941
+ font-family: 'helveticaneue-light' !important;
2942
+ }
2943
+
2944
+ .cstmutbchnlnmewpr p.extra_pp label {
2945
+ width: auto !important;
2946
+ }
2947
+
2948
+ .cstmutbchnlidwpr p.extra_pp label {
2949
+ width: auto !important;
2950
+ }
2951
+
2952
+ .tab_3_option {
2953
+ margin: 10px 0 0;
2954
+ }
2955
+
2956
+ div.tab3 .sub_row.stand.sec_new {
2957
+ margin: 0;
2958
+ }
2959
+
2960
+ div#custom_social_data_setting h4 {
2961
+ padding-bottom: 30px;
2962
+ }
2963
+
2964
+ .like_pop_box img.sfcm {
2965
+ height: 50px;
2966
+ width: 50px;
2967
+ }
2968
+
2969
+ .linkedin_tool_bdr {
2970
+ line-height: 0 !important;
2971
+ }
2972
+
2973
+ .twt_tool_bdr {
2974
+ line-height: 0 !important;
2975
+ }
2976
+
2977
+ div#sfsiid_facebook {
2978
+ line-height: 0 !important;
2979
+ }
2980
+
2981
+ div#sfsiid_youtube {
2982
+ line-height: 0 !important;
2983
+ }
2984
+
2985
+ .printst_tool_bdr {
2986
+ line-height: 0 !important;
2987
+ }
2988
+
2989
+ /*end added by Developer */
2990
+ /*by developer - 29-5-2019 */
2991
+ ul.SFSI_instructions li,
2992
+ ul.SFSI_instructions li a {
2993
+ font-size: 17px !important;
2994
+ font-family: helveticaregular !important;
2995
+ font-weight: 400;
2996
+ color: #1a1d20 !important;
2997
+ }
2998
+
2999
+ body .specify_counts .listing .sfsi_instagramInstruction li {
3000
+ font-size: 17px !important;
3001
+ font-family: helveticaregular !important;
3002
+ font-weight: 400 !important;
3003
+ color: #1a1d20 !important;
3004
+ line-height: 26px !important;
3005
+ }
3006
+
3007
+ /*end - 29-5-2019*/
3008
+
3009
+ a.pop-up .radio{
3010
+ opacity: 0.5;
3011
+ background-position: 0px 0px !important;
3012
+ /* padding-right: 3px; */
3013
+ }
3014
+
3015
+ .sfsi_vertically_center{
3016
+ display: flex;
3017
+ justify-content: space-between;
3018
+ align-items: center;
3019
+ }
3020
+ .sfsi_center{
3021
+ display: flex;
3022
+ justify-content: center;
3023
+ }
3024
+ .sfsi_custom_icons_q4{
3025
+ display: flex;
3026
+ align-items: center;
3027
+ }
3028
+ .tab6 .sfsi_responsive_icon_option_li .options .first.first.first {
3029
+ width: 25%!important;
3030
+ }
3031
+ .sfsi_responsive_icon_gradient{
3032
+ background-image: -webkit-linear-gradient(bottom,rgba(0, 0, 0, 0.17) 0%,rgba(255, 255, 255, 0.17) 100%);
3033
+ background-image: -moz-linear-gradient(bottom,rgba(0, 0, 0, 0.17) 0%,rgba(255, 255, 255, 0.17) 100%);
3034
+ background-image: linear-gradient(bottom,rgba(0,0,0,.17) 0%,rgba(255,255,255,.17) 100%);
3035
+ }
3036
+ .tab6 ul.sfsi_icn_listing8 ul.sfsi_tab_3_icns li {
3037
+ width: 50%;
3038
+ max-width: 450px;
3039
+ min-width: 420px;
3040
+ padding-left: 0;
3041
+ padding-bottom: 0;
3042
+ }
3043
+ .tab6 .sfsi_tab_3_icns.sfsi_shwthmbfraftr > li {
3044
+ width:100% !important;
3045
+ max-width:100% !important;
3046
+ border-left: 45px solid transparent;
3047
+ }
3048
+
3049
+ .tab6 ul.sfsi_icn_listing8 li {
3050
+ float: left;
3051
+ padding: 11px 0 40px 8px;
3052
+ width: 100%;
3053
+ max-width: 1000px;
3054
+ margin: 0;
3055
+ }
3056
+
3057
+ ul.sfsi_icn_listing8 li .sfsi_right_info a {
3058
+ outline: 0;
3059
+ font-family: helveticaregular;
3060
+ }
3061
+ #accordion .tab6 ul.sfsi_tab_3_icns {
3062
+ margin-top: 25px;
3063
+ }
3064
+ .sfsi_tab_3_icns.sfsi_shwthmbfraftr {
3065
+ overflow: visible;
3066
+ }
3067
+ ul.sfsi_tab_3_icns {
3068
+ list-style: none;
3069
+ margin: 34px 0 0;
3070
+ overflow: hidden;
3071
+ }
3072
+
3073
+ .tab6 ul.sfsi_icn_listing8 li {
3074
+ float: left;
3075
+ padding: 11px 0 40px 8px;
3076
+ width: 100%;
3077
+ max-width: 1000px;
3078
+ margin: 0;
3079
+ }
3080
+ .tab6 .sfsi_tab_3_icns.sfsi_shwthmbfraftr .social_icon_like1 li {
3081
+ width: auto;
3082
+ max-width: auto;
3083
+ min-width: auto;
3084
+ margin: 0 30px 0 0;
3085
+ }
3086
+
3087
+ ul.sfsi_tab_3_icns label {
3088
+ float: left;
3089
+ line-height: 42px;
3090
+ color: #69737C;
3091
+ font-size: 18px;
3092
+ font-family: helveticaregular;
3093
+ min-width: 120px;
3094
+ }
3095
+ .tab6 ul.sfsi_tab_3_icns li label {
3096
+ line-height: 50px !important;
3097
+ }
3098
+
3099
+ #accordion1 .tab6 ul.sfsi_shwthmbfraftr .labelhdng4, #accordion .tab6 ul.sfsi_shwthmbfraftr .row h4.labelhdng4 {
3100
+ color: #555;
3101
+ font-size: 20px;
3102
+ margin-left: 20px;
3103
+ font-family: 'helveticaregular';
3104
+ }
3105
+ .tab6 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns.sfsi_shwthmbfraftr>li:nth-child(1), .tab6 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns.sfsi_shwthmbfraftr>li:nth-child(2){
3106
+ width: 50% !important;
3107
+ }
3108
+
3109
+ .tab6 ul.sfsi_tab_3_icns li .radio{
3110
+ margin-top: 7px;
3111
+ }
3112
+
3113
+ ul.sfsi_icn_listing8 li .tb_4_ck{
3114
+ float: left;
3115
+ }
3116
+ .sfsi_responsive_default_icon_container .radio_section.tb_4_ck, .sfsi_responsive_custom_icon_container .radio_section.tb_4_ck {
3117
+ margin: 5px 20px 0 0 !important;
3118
+ }
3119
+
3120
+ .sfsi_responsive_icon_option_li .options .field .select {
3121
+ font-family: helveticaregular;
3122
+ font-weight: 400;
3123
+ font-size: 17px;
3124
+ color: #5a6570!important;
3125
+ }
3126
+
3127
+ .tab6 ul.sfsi_icn_listing8 ul.sfsi_tab_3_icns .usually li {
3128
+ width: 100% !important;
3129
+ max-width: 1000px !important;
3130
+ padding: 3px 0 5px 5px !important;
3131
+ }
3132
+ .sfsi_responsive_icons a{
3133
+ text-decoration: none!important;
3134
+ box-shadow: none!important;
3135
+ }
3136
+ .sfsi_responsive_icons .sfsi_responsive_icon_facebook_container{ background-color:#336699;}
3137
+ .sfsi_responsive_icons .sfsi_responsive_icon_follow_container{ background-color:#00B04E;}
3138
+ .sfsi_responsive_icons .sfsi_responsive_icon_twitter_container{ background-color:#55ACEE;}
3139
+ .sfsi_small_button {
3140
+ line-height: 0px;
3141
+ height: unset;
3142
+ padding: 6px !important;
3143
+ }
3144
+ .sfsi_small_button span {
3145
+ margin-left: 10px;
3146
+ font-size: 16px;
3147
+ padding: 0px;
3148
+ line-height: 16px;
3149
+ vertical-align: -webkit-baseline-middle !important;
3150
+ margin-left: 10px;
3151
+ }
3152
+ .sfsi_small_button img {
3153
+ max-height: 16px !important;
3154
+ padding: 0px;
3155
+ line-height: 0px;
3156
+ vertical-align: -webkit-baseline-middle !important;
3157
+ }
3158
+ .sfsi_medium_button span {
3159
+ margin-left: 10px;
3160
+ font-size: 18px;
3161
+ padding: 0px;
3162
+ line-height: 16px;
3163
+ vertical-align: -webkit-baseline-middle !important;
3164
+ margin-left: 10px;
3165
+ }
3166
+ .sfsi_medium_button img {
3167
+ max-height: 16px !important;
3168
+ padding: 0px;
3169
+ line-height: 0px;
3170
+ vertical-align: -webkit-baseline-middle !important;
3171
+ }
3172
+ .sfsi_medium_button {
3173
+ line-height: 0px;
3174
+ height: unset;
3175
+ padding: 10px !important;
3176
+ }
3177
+
3178
+ .sfsi_medium_button span {
3179
+ margin-left: 10px;
3180
+ font-size: 18px;
3181
+ padding: 0px;
3182
+ line-height: 16px;
3183
+ vertical-align: -webkit-baseline-middle !important;
3184
+ margin-left: 10px;
3185
+ }
3186
+ .sfsi_medium_button img {
3187
+ max-height: 16px !important;
3188
+ padding: 0px;
3189
+ line-height: 0px;
3190
+ vertical-align: -webkit-baseline-middle !important;
3191
+ }
3192
+ .sfsi_medium_button {
3193
+ line-height: 0px;
3194
+ height: unset;
3195
+ padding: 10px !important;
3196
+ }
3197
+ .sfsi_large_button span {
3198
+ font-size: 20px;
3199
+ padding: 0px;
3200
+ line-height: 16px;
3201
+ vertical-align: -webkit-baseline-middle !important;
3202
+ display: inline;
3203
+ margin-left: 10px;
3204
+ }
3205
+ .sfsi_large_button img {
3206
+ max-height: 16px !important;
3207
+ padding: 0px;
3208
+ line-height: 0px;
3209
+ vertical-align: -webkit-baseline-middle !important;
3210
+ display: inline;
3211
+ }
3212
+ .sfsi_large_button {
3213
+ line-height: 0px;
3214
+ height: unset;
3215
+ padding: 13px !important;
3216
+ }
3217
+ .sfsi_responsive_icons .sfsi_icons_container span {
3218
+ font-family: sans-serif;
3219
+ font-size: 15px;
3220
+ }
3221
+ .sfsi_icons_container_box_fully_container {
3222
+ flex-wrap: wrap;
3223
+ }
3224
+ .sfsi_icons_container_box_fully_container a {
3225
+ flex-basis: auto !important;
3226
+ flex-grow: 1;
3227
+ flex-shrink: 1;
3228
+ margin-bottom: 5px;
3229
+ }
3230
+ .sfsi_icons_container>a {
3231
+ float: left!important;
3232
+ text-decoration: none!important;
3233
+ -webkit-box-shadow: unset!important;
3234
+ box-shadow: unset!important;
3235
+ -webkit-transition: unset!important;
3236
+ transition: unset!important;
3237
+ margin-bottom:5px!important;
3238
+ }
3239
+ .sfsi_small_button {
3240
+ line-height: 0px;
3241
+ height: unset;
3242
+ padding: 6px !important;
3243
+ }
3244
+ .sfsi_small_button span {
3245
+ margin-left: 10px;
3246
+ font-size: 16px;
3247
+ padding: 0px;
3248
+ line-height: 16px;
3249
+ vertical-align: -webkit-baseline-middle !important;
3250
+ margin-left: 10px;
3251
+ }
3252
+ .sfsi_small_button img {
3253
+ max-height: 16px !important;
3254
+ padding: 0px;
3255
+ line-height: 0px;
3256
+ vertical-align: -webkit-baseline-middle !important;
3257
+ }
3258
+ .sfsi_medium_button span {
3259
+ margin-left: 10px;
3260
+ font-size: 18px;
3261
+ padding: 0px;
3262
+ line-height: 16px;
3263
+ vertical-align: -webkit-baseline-middle !important;
3264
+ margin-left: 10px;
3265
+ }
3266
+ .sfsi_medium_button img {
3267
+ max-height: 16px !important;
3268
+ padding: 0px;
3269
+ line-height: 0px;
3270
+ vertical-align: -webkit-baseline-middle !important;
3271
+ }
3272
+ .sfsi_medium_button {
3273
+ line-height: 0px;
3274
+ height: unset;
3275
+ padding: 10px !important;
3276
+ }
3277
+
3278
+ .sfsi_medium_button span {
3279
+ margin-left: 10px;
3280
+ font-size: 18px;
3281
+ padding: 0px;
3282
+ line-height: 16px;
3283
+ vertical-align: -webkit-baseline-middle !important;
3284
+ margin-left: 10px;
3285
+ }
3286
+ .sfsi_medium_button img {
3287
+ max-height: 16px !important;
3288
+ padding: 0px;
3289
+ line-height: 0px;
3290
+ vertical-align: -webkit-baseline-middle !important;
3291
+ }
3292
+ .sfsi_medium_button {
3293
+ line-height: 0px;
3294
+ height: unset;
3295
+ padding: 10px !important;
3296
+ }
3297
+ .sfsi_large_button span {
3298
+ font-size: 20px;
3299
+ padding: 0px;
3300
+ line-height: 16px;
3301
+ vertical-align: -webkit-baseline-middle !important;
3302
+ display: inline;
3303
+ margin-left: 10px;
3304
+ }
3305
+ .sfsi_large_button img {
3306
+ max-height: 16px !important;
3307
+ padding: 0px;
3308
+ line-height: 0px;
3309
+ vertical-align: -webkit-baseline-middle !important;
3310
+ display: inline;
3311
+ }
3312
+ .sfsi_large_button {
3313
+ line-height: 0px;
3314
+ height: unset;
3315
+ padding: 13px !important;
3316
+ }
3317
+ .sfsi_responsive_icons_count{
3318
+ padding: 5px 10px;
3319
+ float: left !important;
3320
+ display: inline-block;
3321
+ margin-right: 0px;
3322
+ margin-top: 2px;
3323
+ }
3324
+
3325
+ .sfsi_responsive_icons_count h3{
3326
+ font-family: 'sans-serif' !important;
3327
+ font-weight: 900;
3328
+ font-size: 32px !important;
3329
+ line-height: 0px !important;
3330
+ padding: 0px;
3331
+ margin: 0px;
3332
+ }
3333
+
3334
+ .sfsi_responsive_icons_count h6{
3335
+ font-family: 'sans-serif' !important;
3336
+ font-weight: 900;
3337
+ padding: 0px;
3338
+ margin: 0px;
3339
+ }
3340
+ .sfsi_responsive_icons a, .sfsi_responsive_icons h3, .sfsi_responsive_icons h6 {
3341
+ text-decoration: none!important;
3342
+ border: 0!important;
3343
+ }
3344
+ .sfsi_responsive_with_counter_icons{
3345
+ width: calc(100% - 100px)!important;
3346
+ }
3347
+ .sfsiresponsive_icon_preview {
3348
+ padding: 0px 0 20px 0;
3349
+ min-width: 100%;
3350
+ }
3351
+ .sfsi_responsive_icons_count.sfsi_fixed_count_container.sfsi_large_button {
3352
+ padding: 12px 13px 9px 13px !important;
3353
+ }
3354
+ .sfsi_responsive_icons_count.sfsi_fixed_count_container.sfsi_medium_button {
3355
+ padding: 9px 10px 7px 10px !important;
3356
+ }
3357
+ .sfsi_responsive_icons_count.sfsi_small_button {
3358
+ padding: 7px 6px !important;
3359
+ }
3360
+ .sfsi_responsive_icons_count.sfsi_small_button {
3361
+ padding: 7px 6px !important;
3362
+ margin-top: 2px;
3363
+ }
3364
+ .sfsi_responsive_icons_count.sfsi_small_button h6 {
3365
+ display: inline-block;
3366
+ font-size: 12px !important;
3367
+ vertical-align: middle;
3368
+ }
3369
+ .sfsi_responsive_icons_count.sfsi_responsive_count_container.sfsi_medium_button {
3370
+ padding: 9px 10px 7px 10px !important;
3371
+ }
3372
+ .sfsi_responsive_icons_count.sfsi_medium_button h3 {
3373
+ font-size: 21px !important;
3374
+ vertical-align: top;
3375
+ line-height: 8px !important;
3376
+ margin: 0px 0px 12px 0px !important;
3377
+ font-weight: 900;
3378
+ padding: 0px;
3379
+ }
3380
+ .sfsi_esponsive_icons_count.sfsi_responsive_count_container.sfsi_large_button h3 {
3381
+ margin: 0px 0px 15px 0px !important;
3382
+ }
3383
+ .sfsi_responsive_icons_count.sfsi_large_button h3 {
3384
+ font-size: 26px !important;
3385
+ vertical-align: top;
3386
+ line-height: 6px !important;
3387
+ }
3388
+
3389
+ .sfsi_responsive_icons_count h3 {
3390
+ font-family: 'sans-serif' !important;
3391
+ font-weight: 900;
3392
+ padding: 0px;
3393
+ }
3394
+
3395
+ .sfsi_responsive_icons_count.sfsi_small_button h3 {
3396
+ font-size: 20px !important;
3397
+ display: inline-block;
3398
+ vertical-align: middle;
3399
+ }
3400
+ .sfsi_responsive_icons_count.sfsi_small_button h3 {
3401
+ margin: 0px !important;
3402
+ }
3403
+ .sfsi_responsive_icons_count h3 {
3404
+ font-family: 'sans-serif' !important;
3405
+ font-weight: 900;
3406
+ line-height: 0px !important;
3407
+ padding: 0px;
3408
+ margin: 0px;
3409
+ }
3410
+ .sfsi_responsive_icons a, .sfsi_responsive_icons h3, .sfsi_responsive_icons h6 {
3411
+ text-decoration: none!important;
3412
+ border: 0!important;
3413
+ }
3414
+ .sfsi_responsive_icons_count.sfsi_small_button {
3415
+ padding: 7px 6px !important;
3416
+ margin-top: 2px;
3417
+ }
3418
+
3419
+ .sfsi_responsive_icons_count {
3420
+ vertical-align: top;
3421
+ }
3422
+ .sfsi_responsive_icons_count {
3423
+ float: left;
3424
+ }
3425
+ .sfsi_small_button {
3426
+ line-height: 0px;
3427
+ height: unset;
3428
+ }
3429
+ .sfsi_responsive_icons a, .sfsi_responsive_icons h3, .sfsi_responsive_icons h6 {
3430
+ text-decoration: none!important;
3431
+ border: 0!important;
3432
+ }
3433
+ .sfsi_responsive_icons_count.sfsi_small_button h3 {
3434
+ font-size: 20px !important;
3435
+ display: inline-block;
3436
+ vertical-align: middle;
3437
+ margin: 0px !important;
3438
+ }
3439
+
3440
+ .sfsi_responsive_icons a, .sfsi_responsive_icons h3, .sfsi_responsive_icons h6 {
3441
+ text-decoration: none!important;
3442
+ font-family: helveticaregular!important;
3443
+ border: 0!important;
3444
+ }
3445
+ .sfsi_responsive_icons_count h3 {
3446
+ line-height: 0px !important;
3447
+ padding: 0px;
3448
+ }
3449
+ .sfsi_responsive_icons_count.sfsi_small_button h6 {
3450
+ display: inline-block;
3451
+ font-size: 12px !important;
3452
+ /*vertical-align: middle;*/
3453
+ margin: 0px !important;
3454
+ line-height: initial !important;
3455
+ padding: 0;
3456
+ margin: 0;
3457
+ }
3458
+ .sfsi_responsive_icons_count h6{
3459
+ margin:0!important;
3460
+ }
3461
+ .sfsi_responsive_icons_count h6 {
3462
+ padding: 0px;
3463
+ }
3464
+ .sfsi_responsive_icons a, .sfsi_responsive_icons h3, .sfsi_responsive_icons h6{
3465
+ text-decoration: none!important;
3466
+ font-family: helveticaregular!important;
3467
+ border: 0!important;
3468
+ }
3469
+ .sfsi_responsive_icons_count.sfsi_medium_button h6{
3470
+ font-size: 11px !important;
3471
+ line-height: 0px !important;
3472
+ margin: 0px 0px 0px 0px !important;
3473
  }
images/banner/animated_email.gif ADDED
Binary file
images/banner/default1_pinterest.png ADDED
Binary file
images/banner/default2_pinterest.png ADDED
Binary file
images/banner/default3_pinterest.png ADDED
Binary file
images/banner/default3_twitter.png CHANGED
Binary file
images/banner/theme1_facebook.png CHANGED
Binary file
images/banner/theme1_pinterest.png ADDED
Binary file
images/banner/theme1_twitter.png CHANGED
Binary file
images/banner/theme2_pinterest.png ADDED
Binary file
images/banner/theme3_pinterest.png ADDED
Binary file
js/custom-admin.js CHANGED
@@ -1,3298 +1,3304 @@
1
- function sfsi_update_index() {
2
- var s = 1;
3
- SFSI("ul.icn_listing li.custom").each(function () {
4
- SFSI(this).children("span.custom-txt").html("Custom " + s), s++;
5
- }), cntt = 1, SFSI("div.cm_lnk").each(function () {
6
- SFSI(this).find("h2.custom").find("span.sfsiCtxt").html("Custom " + cntt + ":"),
7
- cntt++;
8
- }), cntt = 1, SFSI("div.custom_m").find("div.custom_section").each(function () {
9
- SFSI(this).find("label").html("Custom " + cntt + ":"), cntt++;
10
- });
11
- }
12
-
13
- function sfsicollapse(s) {
14
- var i = !0,
15
- e = SFSI(s).closest("div.ui-accordion-content").prev("h3.ui-accordion-header"),
16
- t = SFSI(s).closest("div.ui-accordion-content").first();
17
- e.toggleClass("ui-corner-all", i).toggleClass("accordion-header-active ui-state-active ui-corner-top", !i).attr("aria-selected", (!i).toString()),
18
- e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", i).toggleClass("ui-icon-triangle-1-s", !i),
19
- t.toggleClass("accordion-content-active", !i), i ? t.slideUp() : t.slideDown();
20
- }
21
-
22
- function sfsi_delete_CusIcon(s, i) {
23
- beForeLoad();
24
- var e = {
25
- action: "deleteIcons",
26
- icon_name: i.attr("name"),
27
- nonce: SFSI(i).parents('.custom').find('input[name="nonce"]').val()
28
- };
29
- SFSI.ajax({
30
- url: sfsi_icon_ajax_object.ajax_url,
31
- type: "post",
32
- data: e,
33
- dataType: "json",
34
- success: function (e) {
35
- if ("success" == e.res) {
36
- showErrorSuc("success", "Saved !", 1);
37
- var t = e.last_index + 1;
38
- SFSI("#total_cusotm_icons").val(e.total_up), SFSI(s).closest(".custom").remove(),
39
- SFSI("li.custom:last-child").addClass("bdr_btm_non"), SFSI(".custom-links").find("div." + i.attr("name")).remove(),
40
- SFSI(".custom_m").find("div." + i.attr("name")).remove(), SFSI(".share_icon_order").children("li." + i.attr("name")).remove(),
41
- SFSI("ul.sfsi_sample_icons").children("li." + i.attr("name")).remove();
42
-
43
- if (e.total_up == 0) {
44
- SFSI(".notice_custom_icons_premium").hide();
45
- }
46
- var n = e.total_up + 1;
47
- 4 == e.total_up && SFSI(".icn_listing").append('<li id="c' + t + '" class="custom bdr_btm_non"><div class="radio_section tb_4_ck"><span class="checkbox" dynamic_ele="yes" style="background-position: 0px 0px;"></span><input name="sfsiICON_' + t + '_display" type="checkbox" value="yes" class="styled" style="display:none;" isNew="yes" /></div> <span class="custom-img"><img src="' + SFSI("#plugin_url").val() + 'images/custom.png" id="CImg_' + t + '" alt="error" /> </span> <span class="custom custom-txt">Custom' + n + ' </span> <div class="right_info"> <p><span>It depends:</span> Upload a custom icon if you have other accounts/websites you want to link to.</p><div class="inputWrapper"></div></li>');
48
- } else showErrorSuc("error", "Unkown error , please try again", 1);
49
- return sfsi_update_index(), update_Sec5Iconorder(), sfsi_update_step1(), sfsi_update_step5(),
50
- afterLoad(), "suc";
51
- }
52
- });
53
- }
54
-
55
- function update_Sec5Iconorder() {
56
- SFSI("ul.share_icon_order").children("li").each(function () {
57
- SFSI(this).attr("data-index", SFSI(this).index() + 1);
58
- });
59
- }
60
-
61
- function sfsi_section_Display(s, i) {
62
- "hide" == i ? (SFSI("." + s + " :input").prop("disabled", !0), SFSI("." + s + " :button").prop("disabled", !0),
63
- SFSI("." + s).hide()) : (SFSI("." + s + " :input").removeAttr("disabled", !0), SFSI("." + s + " :button").removeAttr("disabled", !0),
64
- SFSI("." + s).show());
65
- }
66
-
67
- function sfsi_depened_sections() {
68
- if ("sfsi" == SFSI("input[name='sfsi_rss_icons']:checked").val()) {
69
- for (i = 0; 16 > i; i++) {
70
- var s = i + 1,
71
- e = 74 * i;
72
- SFSI(".row_" + s + "_2").css("background-position", "-588px -" + e + "px");
73
- }
74
- var t = SFSI(".icon_img").attr("src");
75
- if (t) {
76
- if (t.indexOf("subscribe") != -1) {
77
- var n = t.replace("subscribe.png", "sf_arow_icn.png");
78
- } else {
79
- var n = t.replace("email.png", "sf_arow_icn.png");
80
- }
81
- SFSI(".icon_img").attr("src", n);
82
- }
83
- } else {
84
- if ("email" == SFSI("input[name='sfsi_rss_icons']:checked").val()) {
85
- for (SFSI(".row_1_2").css("background-position", "-58px 0"), i = 0; 16 > i; i++) {
86
- var s = i + 1,
87
- e = 74 * i;
88
- SFSI(".row_" + s + "_2").css("background-position", "-58px -" + e + "px");
89
- }
90
- var t = SFSI(".icon_img").attr("src");
91
- if (t) {
92
- if (t.indexOf("sf_arow_icn") != -1) {
93
- var n = t.replace("sf_arow_icn.png", "email.png");
94
- } else {
95
- var n = t.replace("subscribe.png", "email.png");
96
- }
97
- SFSI(".icon_img").attr("src", n);
98
- }
99
- } else {
100
- for (SFSI(".row_1_2").css("background-position", "-649px 0"), i = 0; 16 > i; i++) {
101
- var s = i + 1,
102
- e = 74 * i;
103
- SFSI(".row_" + s + "_2").css("background-position", "-649px -" + e + "px");
104
- }
105
- var t = SFSI(".icon_img").attr("src");
106
- if (t) {
107
- if (t.indexOf("email") != -1) {
108
- var n = t.replace("email.png", "subscribe.png");
109
- } else {
110
- var n = t.replace("sf_arow_icn.png", "subscribe.png");
111
- }
112
- SFSI(".icon_img").attr("src", n);
113
- }
114
- }
115
- }
116
- SFSI("input[name='sfsi_rss_display']").prop("checked") ? sfsi_section_Display("rss_section", "show") : sfsi_section_Display("rss_section", "hide"),
117
- SFSI("input[name='sfsi_email_display']").prop("checked") ? sfsi_section_Display("email_section", "show") : sfsi_section_Display("email_section", "hide"),
118
- SFSI("input[name='sfsi_facebook_display']").prop("checked") ? sfsi_section_Display("facebook_section", "show") : sfsi_section_Display("facebook_section", "hide"),
119
- SFSI("input[name='sfsi_twitter_display']").prop("checked") ? sfsi_section_Display("twitter_section", "show") : sfsi_section_Display("twitter_section", "hide"),
120
- SFSI("input[name='sfsi_youtube_display']").prop("checked") ? sfsi_section_Display("youtube_section", "show") : sfsi_section_Display("youtube_section", "hide"),
121
- SFSI("input[name='sfsi_pinterest_display']").prop("checked") ? sfsi_section_Display("pinterest_section", "show") : sfsi_section_Display("pinterest_section", "hide"),
122
- SFSI("input[name='sfsi_telegram_display']").prop("checked") ? sfsi_section_Display("telegram_section", "show") : sfsi_section_Display("telegram_section", "hide"),
123
- SFSI("input[name='sfsi_vk_display']").prop("checked") ? sfsi_section_Display("vk_section", "show") : sfsi_section_Display("vk_section", "hide"),
124
- SFSI("input[name='sfsi_ok_display']").prop("checked") ? sfsi_section_Display("ok_section", "show") : sfsi_section_Display("ok_section", "hide"),
125
- SFSI("input[name='sfsi_wechat_display']").prop("checked") ? sfsi_section_Display("wechat_section", "show") : sfsi_section_Display("wechat_section", "hide"),
126
- SFSI("input[name='sfsi_weibo_display']").prop("checked") ? sfsi_section_Display("weibo_section", "show") : sfsi_section_Display("weibo_section", "hide"),
127
- SFSI("input[name='sfsi_instagram_display']").prop("checked") ? sfsi_section_Display("instagram_section", "show") : sfsi_section_Display("instagram_section", "hide"),
128
- SFSI("input[name='sfsi_linkedin_display']").prop("checked") ? sfsi_section_Display("linkedin_section", "show") : sfsi_section_Display("linkedin_section", "hide"),
129
- SFSI("input[element-type='cusotm-icon']").prop("checked") ? sfsi_section_Display("custom_section", "show") : sfsi_section_Display("custom_section", "hide");
130
- }
131
-
132
- function CustomIConSectionsUpdate() {
133
- sfsi_section_Display("counter".ele, show);
134
- }
135
-
136
- // Upload Custom Skin {Monad}
137
- function sfsi_customskin_upload(s, ref, nonce) {
138
- var ttl = jQuery(ref).attr("title");
139
- var i = s,
140
- e = {
141
- action: "UploadSkins",
142
- custom_imgurl: i,
143
- nonce: nonce
144
- };
145
- SFSI.ajax({
146
- url: sfsi_icon_ajax_object.ajax_url,
147
- type: "post",
148
- data: e,
149
- success: function (msg) {
150
- if (msg.res = "success") {
151
- var arr = s.split('=');
152
- jQuery(ref).prev('.imgskin').attr('src', arr[1]);
153
- jQuery(ref).prev('.imgskin').css("display", "block");
154
- jQuery(ref).text("Update");
155
- jQuery(ref).next('.dlt_btn').css("display", "block");
156
- }
157
- }
158
- });
159
- }
160
-
161
- // Delete Custom Skin {Monad}
162
- function deleteskin_icon(s) {
163
- var iconname = jQuery(s).attr("title");
164
- var nonce = jQuery(s).attr("data-nonce");
165
- var i = iconname,
166
- e = {
167
- action: "DeleteSkin",
168
- iconname: i,
169
- nonce: nonce
170
- };
171
- console.log('delete sin icon', i, iconname, nonce);
172
- SFSI.ajax({
173
- url: sfsi_icon_ajax_object.ajax_url,
174
- type: "post",
175
- data: e,
176
- dataType: "json",
177
- success: function (msg) {
178
- console.log(s, e, msg);
179
-
180
- if (msg.res === "success") {
181
- SFSI(s).prev("a").text("Upload");
182
- SFSI(s).prev("a").prev("img").attr("src", '');
183
- SFSI(s).prev("a").prev("img").css("display", "none");
184
- SFSI(s).css("display", "none");
185
- } else {
186
- alert("Whoops! something went wrong.")
187
- }
188
- }
189
- });
190
- }
191
-
192
- // Save Custom Skin {Monad}
193
- function SFSI_done(nonce) {
194
- e = {
195
- action: "Iamdone",
196
- nonce: nonce
197
- };
198
-
199
- SFSI.ajax({
200
- url: sfsi_icon_ajax_object.ajax_url,
201
- type: "post",
202
- data: e,
203
- success: function (msg) {
204
- if (msg.res === "success") {
205
-
206
-
207
- jQuery("li.cstomskins_upload").children(".icns_tab_3").html(msg);
208
- SFSI("input[name='sfsi_rss_display']").prop("checked") ? sfsi_section_Display("rss_section", "show") : sfsi_section_Display("rss_section", "hide"), SFSI("input[name='sfsi_email_display']").prop("checked") ? sfsi_section_Display("email_section", "show") : sfsi_section_Display("email_section", "hide"), SFSI("input[name='sfsi_facebook_display']").prop("checked") ? sfsi_section_Display("facebook_section", "show") : sfsi_section_Display("facebook_section", "hide"), SFSI("input[name='sfsi_twitter_display']").prop("checked") ? sfsi_section_Display("twitter_section", "show") : sfsi_section_Display("twitter_section", "hide"), SFSI("input[name='sfsi_youtube_display']").prop("checked") ? sfsi_section_Display("youtube_section", "show") : sfsi_section_Display("youtube_section", "hide"), SFSI("input[name='sfsi_pinterest_display']").prop("checked") ? sfsi_section_Display("pinterest_section", "show") : sfsi_section_Display("pinterest_section", "hide"), SFSI("input[name='sfsi_instagram_display']").prop("checked") ? sfsi_section_Display("instagram_section", "show") : sfsi_section_Display("instagram_section", "hide"), SFSI("input[name='sfsi_linkedin_display']").prop("checked") ? sfsi_section_Display("linkedin_section", "show") : sfsi_section_Display("linkedin_section", "hide"), SFSI("input[element-type='cusotm-icon']").prop("checked") ? sfsi_section_Display("custom_section", "show") : sfsi_section_Display("custom_section", "hide");
209
- SFSI(".cstmskins-overlay").hide("slow");
210
- sfsi_update_step3() && sfsicollapse(this);
211
- }
212
- }
213
- });
214
- }
215
-
216
- // Upload Custom Icons {Monad}
217
- function sfsi_newcustomicon_upload(s, nonce, nonce2) {
218
- var i = s,
219
- e = {
220
- action: "UploadIcons",
221
- custom_imgurl: i,
222
- nonce: nonce
223
- };
224
- SFSI.ajax({
225
- url: sfsi_icon_ajax_object.ajax_url,
226
- type: "post",
227
- data: e,
228
- dataType: "json",
229
- async: !0,
230
- success: function (s) {
231
- if (s.res == 'success') {
232
- afterIconSuccess(s, nonce2);
233
- } else {
234
- SFSI(".upload-overlay").hide("slow");
235
- SFSI(".uperror").html(s.res);
236
- showErrorSuc("Error", "Some Error Occured During Upload Custom Icon", 1)
237
- }
238
- }
239
- });
240
- }
241
-
242
- function sfsi_update_step1() {
243
- var nonce = SFSI("#sfsi_save1").attr("data-nonce");
244
- global_error = 0, beForeLoad(), sfsi_depened_sections();
245
- var s = !1,
246
- i = SFSI("input[name='sfsi_rss_display']:checked").val(),
247
- e = SFSI("input[name='sfsi_email_display']:checked").val(),
248
- t = SFSI("input[name='sfsi_facebook_display']:checked").val(),
249
- n = SFSI("input[name='sfsi_twitter_display']:checked").val(),
250
- r = SFSI("input[name='sfsi_youtube_display']:checked").val(),
251
- c = SFSI("input[name='sfsi_pinterest_display']:checked").val(),
252
- p = SFSI("input[name='sfsi_linkedin_display']:checked").val(),
253
- tg = SFSI("input[name='sfsi_telegram_display']:checked").val(),
254
- vk = SFSI("input[name='sfsi_vk_display']:checked").val(),
255
- ok = SFSI("input[name='sfsi_ok_display']:checked").val(),
256
- wc = SFSI("input[name='sfsi_wechat_display']:checked").val(),
257
- wb = SFSI("input[name='sfsi_weibo_display']:checked").val(),
258
- _ = SFSI("input[name='sfsi_instagram_display']:checked").val(),
259
- l = SFSI("input[name='sfsi_custom1_display']:checked").val(),
260
- S = SFSI("input[name='sfsi_custom2_display']:checked").val(),
261
- u = SFSI("input[name='sfsi_custom3_display']:checked").val(),
262
- f = SFSI("input[name='sfsi_custom4_display']:checked").val(),
263
- d = SFSI("input[name='sfsi_custom5_display']:checked").val(),
264
- I = {
265
- action: "updateSrcn1",
266
- sfsi_rss_display: i,
267
- sfsi_email_display: e,
268
- sfsi_facebook_display: t,
269
- sfsi_twitter_display: n,
270
- sfsi_youtube_display: r,
271
- sfsi_pinterest_display: c,
272
- sfsi_linkedin_display: p,
273
- sfsi_telegram_display: tg,
274
- sfsi_vk_display: vk,
275
- sfsi_ok_display: ok,
276
- sfsi_wechat_display: wc,
277
- sfsi_weibo_display: wb,
278
- sfsi_instagram_display: _,
279
- sfsi_custom1_display: l,
280
- sfsi_custom2_display: S,
281
- sfsi_custom3_display: u,
282
- sfsi_custom4_display: f,
283
- sfsi_custom5_display: d,
284
- nonce: nonce
285
- };
286
- SFSI.ajax({
287
- url: sfsi_icon_ajax_object.ajax_url,
288
- type: "post",
289
- data: I,
290
- async: !0,
291
- dataType: "json",
292
- success: function (i) {
293
- if (i == "wrong_nonce") {
294
- showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 1);
295
- s = !1;
296
- afterLoad();
297
- } else {
298
- "success" == i ? (showErrorSuc("success", "Saved !", 1), sfsicollapse("#sfsi_save1"),
299
- sfsi_make_popBox()) : (global_error = 1, showErrorSuc("error", "Unkown error , please try again", 1),
300
- s = !1), afterLoad();
301
- }
302
- }
303
- });
304
- }
305
-
306
- function sfsi_update_step2() {
307
-
308
- var nonce = SFSI("#sfsi_save2").attr("data-nonce");
309
- var s = sfsi_validationStep2();
310
- if (!s) return global_error = 1, !1;
311
- beForeLoad();
312
- var i = 1 == SFSI("input[name='sfsi_rss_url']").prop("disabled") ? "" : SFSI("input[name='sfsi_rss_url']").val(),
313
- e = 1 == SFSI("input[name='sfsi_rss_icons']").prop("disabled") ? "" : SFSI("input[name='sfsi_rss_icons']:checked").val(),
314
-
315
- t = 1 == SFSI("input[name='sfsi_facebookPage_option']").prop("disabled") ? "" : SFSI("input[name='sfsi_facebookPage_option']:checked").val(),
316
- n = 1 == SFSI("input[name='sfsi_facebookLike_option']").prop("disabled") ? "" : SFSI("input[name='sfsi_facebookLike_option']:checked").val(),
317
- o = 1 == SFSI("input[name='sfsi_facebookShare_option']").prop("disabled") ? "" : SFSI("input[name='sfsi_facebookShare_option']:checked").val(),
318
- a = SFSI("input[name='sfsi_facebookPage_url']").val(),
319
- r = 1 == SFSI("input[name='sfsi_twitter_followme']").prop("disabled") ? "" : SFSI("input[name='sfsi_twitter_followme']:checked").val(),
320
- c = 1 == SFSI("input[name='sfsi_twitter_followUserName']").prop("disabled") ? "" : SFSI("input[name='sfsi_twitter_followUserName']").val(),
321
- p = 1 == SFSI("input[name='sfsi_twitter_aboutPage']").prop("disabled") ? "" : SFSI("input[name='sfsi_twitter_aboutPage']:checked").val(),
322
- _ = 1 == SFSI("input[name='sfsi_twitter_page']").prop("disabled") ? "" : SFSI("input[name='sfsi_twitter_page']:checked").val(),
323
- l = SFSI("input[name='sfsi_twitter_pageURL']").val(),
324
- S = SFSI("textarea[name='sfsi_twitter_aboutPageText']").val(),
325
- m = 1 == SFSI("input[name='sfsi_youtube_page']").prop("disabled") ? "" : SFSI("input[name='sfsi_youtube_page']:checked").val(),
326
- F = 1 == SFSI("input[name='sfsi_youtube_pageUrl']").prop("disabled") ? "" : SFSI("input[name='sfsi_youtube_pageUrl']").val(),
327
- h = 1 == SFSI("input[name='sfsi_youtube_follow']").prop("disabled") ? "" : SFSI("input[name='sfsi_youtube_follow']:checked").val(),
328
- cls = SFSI("input[name='sfsi_youtubeusernameorid']:checked").val(),
329
- v = SFSI("input[name='sfsi_ytube_user']").val(),
330
- vchid = SFSI("input[name='sfsi_ytube_chnlid']").val(),
331
- g = 1 == SFSI("input[name='sfsi_pinterest_page']").prop("disabled") ? "" : SFSI("input[name='sfsi_pinterest_page']:checked").val(),
332
- k = 1 == SFSI("input[name='sfsi_pinterest_pageUrl']").prop("disabled") ? "" : SFSI("input[name='sfsi_pinterest_pageUrl']").val(),
333
- y = 1 == SFSI("input[name='sfsi_pinterest_pingBlog']").prop("disabled") ? "" : SFSI("input[name='sfsi_pinterest_pingBlog']:checked").val(),
334
- b = 1 == SFSI("input[name='sfsi_instagram_pageUrl']").prop("disabled") ? "" : SFSI("input[name='sfsi_instagram_pageUrl']").val(),
335
- w = 1 == SFSI("input[name='sfsi_linkedin_page']").prop("disabled") ? "" : SFSI("input[name='sfsi_linkedin_page']:checked").val(),
336
- x = 1 == SFSI("input[name='sfsi_linkedin_pageURL']").prop("disabled") ? "" : SFSI("input[name='sfsi_linkedin_pageURL']").val(),
337
- C = 1 == SFSI("input[name='sfsi_linkedin_follow']").prop("disabled") ? "" : SFSI("input[name='sfsi_linkedin_follow']:checked").val(),
338
- D = SFSI("input[name='sfsi_linkedin_followCompany']").val(),
339
- U = 1 == SFSI("input[name='sfsi_linkedin_SharePage']").prop("disabled") ? "" : SFSI("input[name='sfsi_linkedin_SharePage']:checked").val(),
340
- O = SFSI("input[name='sfsi_linkedin_recommendBusines']:checked").val(),
341
- T = SFSI("input[name='sfsi_linkedin_recommendProductId']").val(),
342
- j = SFSI("input[name='sfsi_linkedin_recommendCompany']").val(),
343
- tp = 1 == SFSI("input[name='sfsi_telegram_page']").prop("disabled") ? "" : SFSI("input[name='sfsi_telegram_page']:checked").val(),
344
- tpu = SFSI("input[name='sfsi_telegram_pageURL']").val(),
345
- tm = SFSI("input[name='sfsi_telegram_message']").val(),
346
- tmn = SFSI("input[name='sfsi_telegram_username']").val(),
347
- wp = 1 == SFSI("input[name='sfsi_weibo_page']").prop("disabled") ? "" : SFSI("input[name='sfsi_weibo_page']:checked").val(),
348
- wpu = SFSI("input[name='sfsi_weibo_pageURL']").val(),
349
- vp = 1 == SFSI("input[name='sfsi_vk_page']").prop("disabled") ? "" : SFSI("input[name='sfsi_vk_page']:checked").val(),
350
- vpu = SFSI("input[name='sfsi_vk_pageURL']").val(),
351
- op = 1 == SFSI("input[name='sfsi_ok_page']").prop("disabled") ? "" : SFSI("input[name='sfsi_ok_page']:checked").val(),
352
- opu = SFSI("input[name='sfsi_ok_pageURL']").val(),
353
- P = {};
354
- SFSI("input[name='sfsi_CustomIcon_links[]']").each(function () {
355
- P[SFSI(this).attr("file-id")] = this.value;
356
- });
357
- var M = {
358
- action: "updateSrcn2",
359
- sfsi_rss_url: i,
360
- sfsi_rss_icons: e,
361
- sfsi_facebookPage_option: t,
362
- sfsi_facebookLike_option: n,
363
- sfsi_facebookShare_option: o,
364
- sfsi_facebookPage_url: a,
365
- sfsi_twitter_followme: r,
366
- sfsi_twitter_followUserName: c,
367
- sfsi_twitter_aboutPage: p,
368
- sfsi_twitter_page: _,
369
- sfsi_twitter_pageURL: l,
370
- sfsi_twitter_aboutPageText: S,
371
- sfsi_youtube_page: m,
372
- sfsi_youtube_pageUrl: F,
373
- sfsi_youtube_follow: h,
374
- sfsi_youtubeusernameorid: cls,
375
- sfsi_ytube_user: v,
376
- sfsi_ytube_chnlid: vchid,
377
- sfsi_pinterest_page: g,
378
- sfsi_pinterest_pageUrl: k,
379
- sfsi_instagram_pageUrl: b,
380
- sfsi_pinterest_pingBlog: y,
381
- sfsi_linkedin_page: w,
382
- sfsi_linkedin_pageURL: x,
383
- sfsi_linkedin_follow: C,
384
- sfsi_linkedin_followCompany: D,
385
- sfsi_linkedin_SharePage: U,
386
- sfsi_linkedin_recommendBusines: O,
387
- sfsi_linkedin_recommendCompany: j,
388
- sfsi_linkedin_recommendProductId: T,
389
- sfsi_custom_links: P,
390
- sfsi_telegram_page: tp,
391
- sfsi_telegram_pageURL: tpu,
392
- sfsi_telegram_message: tm,
393
- sfsi_telegram_username: tmn,
394
- sfsi_weibo_page: wp,
395
- sfsi_weibo_pageURL: wpu,
396
- sfsi_vk_page: vp,
397
- sfsi_vk_pageURL: vpu,
398
- sfsi_ok_page: op,
399
- sfsi_ok_pageURL: opu,
400
- nonce: nonce
401
- };
402
- SFSI.ajax({
403
- url: sfsi_icon_ajax_object.ajax_url,
404
- type: "post",
405
- data: M,
406
- async: !0,
407
- dataType: "json",
408
- success: function (s) {
409
- if (s == "wrong_nonce") {
410
- showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 2);
411
- return_value = !1;
412
- afterLoad();
413
- } else {
414
- "success" == s ? (showErrorSuc("success", "Saved !", 2), sfsicollapse("#sfsi_save2"),
415
- sfsi_depened_sections()) : (global_error = 1, showErrorSuc("error", "Unkown error , please try again", 2),
416
- return_value = !1), afterLoad();
417
- }
418
- }
419
- });
420
- }
421
-
422
- function sfsi_update_step3() {
423
- var nonce = SFSI("#sfsi_save3").attr("data-nonce");
424
- var s = sfsi_validationStep3();
425
- if (!s) return global_error = 1, !1;
426
- beForeLoad();
427
- var i = SFSI("input[name='sfsi_actvite_theme']:checked").val(),
428
- e = SFSI("input[name='sfsi_mouseOver']:checked").val(),
429
- t = SFSI("input[name='sfsi_shuffle_icons']:checked").val(),
430
- n = SFSI("input[name='sfsi_shuffle_Firstload']:checked").val(),
431
- o = SFSI("input[name='sfsi_same_icons_mouseOver_effect']:checked").val(),
432
- a = SFSI("input[name='sfsi_shuffle_interval']:checked").val(),
433
- r = SFSI("input[name='sfsi_shuffle_intervalTime']").val(),
434
- c = SFSI("input[name='sfsi_specialIcon_animation']:checked").val(),
435
- p = SFSI("input[name='sfsi_specialIcon_MouseOver']:checked").val(),
436
- _ = SFSI("input[name='sfsi_specialIcon_Firstload']:checked").val(),
437
- l = SFSI("#sfsi_specialIcon_Firstload_Icons option:selected").val(),
438
- S = SFSI("input[name='sfsi_specialIcon_interval']:checked").val(),
439
- u = SFSI("input[name='sfsi_specialIcon_intervalTime']").val(),
440
- f = SFSI("#sfsi_specialIcon_intervalIcons option:selected").val();
441
-
442
- var mouseover_effect_type = 'same_icons'; //SFSI("input[name='sfsi_mouseOver_effect_type']:checked").val();
443
-
444
- d = {
445
- action: "updateSrcn3",
446
- sfsi_actvite_theme: i,
447
- sfsi_mouseOver: e,
448
- sfsi_shuffle_icons: t,
449
- sfsi_shuffle_Firstload: n,
450
- sfsi_mouseOver_effect: o,
451
- sfsi_mouseover_effect_type: mouseover_effect_type,
452
- sfsi_shuffle_interval: a,
453
- sfsi_shuffle_intervalTime: r,
454
- sfsi_specialIcon_animation: c,
455
- sfsi_specialIcon_MouseOver: p,
456
- sfsi_specialIcon_Firstload: _,
457
- sfsi_specialIcon_Firstload_Icons: l,
458
- sfsi_specialIcon_interval: S,
459
- sfsi_specialIcon_intervalTime: u,
460
- sfsi_specialIcon_intervalIcons: f,
461
- nonce: nonce
462
- };
463
- SFSI.ajax({
464
- url: sfsi_icon_ajax_object.ajax_url,
465
- type: "post",
466
- data: d,
467
- async: !0,
468
- dataType: "json",
469
- success: function (s) {
470
- if (s == "wrong_nonce") {
471
- showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 3);
472
- return_value = !1;
473
- afterLoad();
474
- } else {
475
- "success" == s ? (showErrorSuc("success", "Saved !", 3), sfsicollapse("#sfsi_save3")) : (showErrorSuc("error", "Unkown error , please try again", 3),
476
- return_value = !1), afterLoad();
477
- }
478
- }
479
- });
480
- }
481
-
482
- function sfsi_show_counts() {
483
- "yes" == SFSI("input[name='sfsi_display_counts']:checked").val() ? (SFSI(".count_sections").slideDown(),
484
- sfsi_showPreviewCounts()) : (SFSI(".count_sections").slideUp(), sfsi_showPreviewCounts());
485
- }
486
-
487
- function sfsi_showPreviewCounts() {
488
- var s = 0;
489
- 1 == SFSI("input[name='sfsi_rss_countsDisplay']").prop("checked") ? (SFSI("#sfsi_rss_countsDisplay").css("opacity", 1), s = 1) : SFSI("#sfsi_rss_countsDisplay").css("opacity", 0),
490
- 1 == SFSI("input[name='sfsi_email_countsDisplay']").prop("checked") ? (SFSI("#sfsi_email_countsDisplay").css("opacity", 1),
491
- s = 1) : SFSI("#sfsi_email_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_facebook_countsDisplay']").prop("checked") ? (SFSI("#sfsi_facebook_countsDisplay").css("opacity", 1),
492
- s = 1) : SFSI("#sfsi_facebook_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_twitter_countsDisplay']").prop("checked") ? (SFSI("#sfsi_twitter_countsDisplay").css("opacity", 1),
493
- s = 1) : SFSI("#sfsi_twitter_countsDisplay").css("opacity", 0),
494
- 1 == SFSI("input[name='sfsi_linkedIn_countsDisplay']").prop("checked") ? (SFSI("#sfsi_linkedIn_countsDisplay").css("opacity", 1), s = 1) : SFSI("#sfsi_linkedIn_countsDisplay").css("opacity", 0),
495
- 1 == SFSI("input[name='sfsi_youtube_countsDisplay']").prop("checked") ? (SFSI("#sfsi_youtube_countsDisplay").css("opacity", 1),
496
- s = 1) : SFSI("#sfsi_youtube_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_pinterest_countsDisplay']").prop("checked") ? (SFSI("#sfsi_pinterest_countsDisplay").css("opacity", 1),
497
- s = 1) : SFSI("#sfsi_pinterest_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_instagram_countsDisplay']").prop("checked") ? (SFSI("#sfsi_instagram_countsDisplay").css("opacity", 1),
498
- s = 1) : SFSI("#sfsi_instagram_countsDisplay").css("opacity", 0),
499
- 1 == SFSI("input[name='sfsi_telegram_countsDisplay']").prop("checked") ? (SFSI("#sfsi_telegram_countsDisplay").css("opacity", 0), s = 1) : SFSI("#sfsi_telegram_countsDisplay").css("opacity", 0),
500
- 1 == SFSI("input[name='sfsi_vk_countsDisplay']").prop("checked") ? (SFSI("#sfsi_vk_countsDisplay").css("opacity", 0), s = 1) : SFSI("#sfsi_vk_countsDisplay").css("opacity", 0),
501
- 1 == SFSI("input[name='sfsi_ok_countsDisplay']").prop("checked") ? (SFSI("#sfsi_ok_countsDisplay").css("opacity", 0), s = 1) : SFSI("#sfsi_ok_countsDisplay").css("opacity", 0),
502
- 1 == SFSI("input[name='sfsi_weibo_countsDisplay']").prop("checked") ? (SFSI("#sfsi_weibo_countsDisplay").css("opacity", 0), s = 1) : SFSI("#sfsi_weibo_countsDisplay").css("opacity", 0),
503
- 1 == SFSI("input[name='sfsi_wechat_countsDisplay']").prop("checked") ? (SFSI("#sfsi_wechat_countsDisplay").css("opacity", 0), s = 1) : SFSI("#sfsi_wechat_countsDisplay").css("opacity", 0),
504
-
505
- 0 == s || "no" == SFSI("input[name='sfsi_display_counts']:checked").val() ? SFSI(".sfsi_Cdisplay").hide() : SFSI(".sfsi_Cdisplay").show();
506
- }
507
-
508
- function sfsi_show_OnpostsDisplay() {
509
- //"yes" == SFSI("input[name='sfsi_show_Onposts']:checked").val() ? SFSI(".PostsSettings_section").slideDown() :SFSI(".PostsSettings_section").slideUp();
510
- }
511
-
512
- function sfsi_update_step4() {
513
- var nonce = SFSI("#sfsi_save4").attr("data-nonce");
514
- var s = !1,
515
- i = sfsi_validationStep4();
516
- if (!i) return global_error = 1, !1;
517
- beForeLoad();
518
- var e = SFSI("input[name='sfsi_display_counts']:checked").val(),
519
- t = 1 == SFSI("input[name='sfsi_email_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_email_countsDisplay']:checked").val(),
520
- n = 1 == SFSI("input[name='sfsi_email_countsFrom']").prop("disabled") ? "" : SFSI("input[name='sfsi_email_countsFrom']:checked").val(),
521
- o = SFSI("input[name='sfsi_email_manualCounts']").val(),
522
- r = 1 == SFSI("input[name='sfsi_rss_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_rss_countsDisplay']:checked").val(),
523
- c = SFSI("input[name='sfsi_rss_manualCounts']").val(),
524
- p = 1 == SFSI("input[name='sfsi_facebook_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_facebook_countsDisplay']:checked").val(),
525
- _ = 1 == SFSI("input[name='sfsi_facebook_countsFrom']").prop("disabled") ? "" : SFSI("input[name='sfsi_facebook_countsFrom']:checked").val(),
526
- mp = SFSI("input[name='sfsi_facebook_mypageCounts']").val(),
527
- l = SFSI("input[name='sfsi_facebook_manualCounts']").val(),
528
- S = 1 == SFSI("input[name='sfsi_twitter_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_twitter_countsDisplay']:checked").val(),
529
- u = 1 == SFSI("input[name='sfsi_twitter_countsFrom']").prop("disabled") ? "" : SFSI("input[name='sfsi_twitter_countsFrom']:checked").val(),
530
- f = SFSI("input[name='sfsi_twitter_manualCounts']").val(),
531
- d = SFSI("input[name='tw_consumer_key']").val(),
532
- I = SFSI("input[name='tw_consumer_secret']").val(),
533
- m = SFSI("input[name='tw_oauth_access_token']").val(),
534
- F = SFSI("input[name='tw_oauth_access_token_secret']").val(),
535
- k = 1 == SFSI("input[name='sfsi_linkedIn_countsFrom']").prop("disabled") ? "" : SFSI("input[name='sfsi_linkedIn_countsFrom']:checked").val(),
536
- y = SFSI("input[name='sfsi_linkedIn_manualCounts']").val(),
537
- b = SFSI("input[name='ln_company']").val(),
538
- w = SFSI("input[name='ln_api_key']").val(),
539
- x = SFSI("input[name='ln_secret_key']").val(),
540
- C = SFSI("input[name='ln_oAuth_user_token']").val(),
541
- D = 1 == SFSI("input[name='sfsi_linkedIn_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_linkedIn_countsDisplay']:checked").val(),
542
- k = 1 == SFSI("input[name='sfsi_linkedIn_countsFrom']").prop("disabled") ? "" : SFSI("input[name='sfsi_linkedIn_countsFrom']:checked").val(),
543
- y = SFSI("input[name='sfsi_linkedIn_manualCounts']").val(),
544
- U = 1 == SFSI("input[name='sfsi_youtube_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_youtube_countsDisplay']:checked").val(),
545
- O = 1 == SFSI("input[name='sfsi_youtube_countsFrom']").prop("disabled") ? "" : SFSI("input[name='sfsi_youtube_countsFrom']:checked").val(),
546
- T = SFSI("input[name='sfsi_youtube_manualCounts']").val(),
547
- j = SFSI("input[name='sfsi_youtube_user']").val(),
548
- P = 1 == SFSI("input[name='sfsi_pinterest_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_pinterest_countsDisplay']:checked").val(),
549
- M = 1 == SFSI("input[name='sfsi_pinterest_countsFrom']").prop("disabled") ? "" : SFSI("input[name='sfsi_pinterest_countsFrom']:checked").val(),
550
- L = SFSI("input[name='sfsi_pinterest_manualCounts']").val(),
551
- B = SFSI("input[name='sfsi_pinterest_user']").val(),
552
- E = SFSI("input[name='sfsi_pinterest_board']").val(),
553
- z = 1 == SFSI("input[name='sfsi_instagram_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_instagram_countsDisplay']:checked").val(),
554
- A = 1 == SFSI("input[name='sfsi_instagram_countsFrom']").prop("disabled") ? "" : SFSI("input[name='sfsi_instagram_countsFrom']:checked").val(),
555
- N = SFSI("input[name='sfsi_instagram_manualCounts']").val(),
556
- H = SFSI("input[name='sfsi_instagram_User']").val(),
557
- ha = SFSI("input[name='sfsi_instagram_clientid']").val(),
558
- ia = SFSI("input[name='sfsi_instagram_appurl']").val(),
559
- ja = SFSI("input[name='sfsi_instagram_token']").val(),
560
-
561
- tc = 1 == SFSI("input[name='sfsi_telegram_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_telegram_countsDisplay']:checked").val(),
562
- tm = SFSI("input[name='sfsi_telegram_manualCounts']").val(),
563
-
564
- vc = 1 == SFSI("input[name='sfsi_vk_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_vk_countsDisplay']:checked").val(),
565
- vm = SFSI("input[name='sfsi_vk_manualCounts']").val(),
566
-
567
-
568
- oc = 1 == SFSI("input[name='sfsi_ok_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_ok_countsDisplay']:checked").val(),
569
- om = SFSI("input[name='sfsi_ok_manualCounts']").val(),
570
-
571
-
572
- wc = 1 == SFSI("input[name='sfsi_weibo_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_weibo_countsDisplay']:checked").val(),
573
- wm = SFSI("input[name='sfsi_weibo_manualCounts']").val(),
574
-
575
- wcc = 1 == SFSI("input[name='sfsi_wechat_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_wechat_countsDisplay']:checked").val(),
576
- wcm = SFSI("input[name='sfsi_wechat_manualCounts']").val(),
577
- $ = {
578
- action: "updateSrcn4",
579
- sfsi_display_counts: e,
580
- sfsi_email_countsDisplay: t,
581
- sfsi_email_countsFrom: n,
582
- sfsi_email_manualCounts: o,
583
- sfsi_rss_countsDisplay: r,
584
- sfsi_rss_manualCounts: c,
585
- sfsi_facebook_countsDisplay: p,
586
- sfsi_facebook_countsFrom: _,
587
- sfsi_facebook_mypageCounts: mp,
588
- sfsi_facebook_manualCounts: l,
589
- sfsi_twitter_countsDisplay: S,
590
- sfsi_twitter_countsFrom: u,
591
- sfsi_twitter_manualCounts: f,
592
- tw_consumer_key: d,
593
- tw_consumer_secret: I,
594
- tw_oauth_access_token: m,
595
- tw_oauth_access_token_secret: F,
596
- sfsi_linkedIn_countsDisplay: D,
597
- sfsi_linkedIn_countsFrom: k,
598
- sfsi_linkedIn_manualCounts: y,
599
- ln_company: b,
600
- ln_api_key: w,
601
- ln_secret_key: x,
602
- ln_oAuth_user_token: C,
603
- sfsi_youtube_countsDisplay: U,
604
- sfsi_youtube_countsFrom: O,
605
- sfsi_youtube_manualCounts: T,
606
- sfsi_youtube_user: j,
607
- sfsi_youtube_channelId: SFSI("input[name='sfsi_youtube_channelId']").val(),
608
- sfsi_pinterest_countsDisplay: P,
609
- sfsi_pinterest_countsFrom: M,
610
- sfsi_pinterest_manualCounts: L,
611
- sfsi_pinterest_user: B,
612
- sfsi_pinterest_board: E,
613
- sfsi_instagram_countsDisplay: z,
614
- sfsi_instagram_countsFrom: A,
615
- sfsi_instagram_manualCounts: N,
616
- sfsi_instagram_User: H,
617
- sfsi_instagram_clientid: ha,
618
- sfsi_instagram_appurl: ia,
619
- sfsi_instagram_token: ja,
620
- sfsi_telegram_countsDisplay: tc,
621
- sfsi_telegram_manualCounts: tm,
622
- sfsi_vk_countsDisplay: vc,
623
- sfsi_vk_manualCounts: vm,
624
- sfsi_ok_countsDisplay: oc,
625
- sfsi_ok_manualCounts: om,
626
- sfsi_weibo_countsDisplay: wc,
627
- sfsi_weibo_manualCounts: wm,
628
- sfsi_wechat_countsDisplay: wcc,
629
- sfsi_wechat_manualCounts: wcm,
630
- nonce: nonce
631
- };
632
- console.log($);
633
- return SFSI.ajax({
634
- url: sfsi_icon_ajax_object.ajax_url,
635
- type: "post",
636
- data: $,
637
- dataType: "json",
638
- async: !0,
639
- success: function (s) {
640
- if (s == "wrong_nonce") {
641
- showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 4);
642
- global_error = 1;
643
- afterLoad();
644
- } else {
645
- "success" == s.res ? (showErrorSuc("success", "Saved !", 4), sfsicollapse("#sfsi_save4"),
646
- sfsi_showPreviewCounts()) : (showErrorSuc("error", "Unkown error , please try again", 4),
647
- global_error = 1), afterLoad();
648
- }
649
- }
650
- }), s;
651
- }
652
-
653
- function sfsi_update_step5() {
654
- var nonce = SFSI("#sfsi_save5").attr("data-nonce");
655
- sfsi_update_step3();
656
-
657
- var s = sfsi_validationStep5();
658
-
659
- if (!s) return global_error = 1, !1;
660
-
661
- beForeLoad();
662
-
663
- var i = SFSI("input[name='sfsi_icons_size']").val(),
664
- e = SFSI("input[name='sfsi_icons_perRow']").val(),
665
- t = SFSI("input[name='sfsi_icons_spacing']").val(),
666
- n = SFSI("#sfsi_icons_Alignment").val(),
667
- o = SFSI("input[name='sfsi_icons_ClickPageOpen']:checked").val(),
668
-
669
- se = SFSI("input[name='sfsi_icons_suppress_errors']:checked").val(),
670
- c = SFSI("input[name='sfsi_icons_stick']:checked").val(),
671
- p = SFSI("#sfsi_rssIcon_order").attr("data-index"),
672
- _ = SFSI("#sfsi_emailIcon_order").attr("data-index"),
673
- S = SFSI("#sfsi_facebookIcon_order").attr("data-index"),
674
- u = SFSI("#sfsi_twitterIcon_order").attr("data-index"),
675
- f = SFSI("#sfsi_youtubeIcon_order").attr("data-index"),
676
- d = SFSI("#sfsi_pinterestIcon_order").attr("data-index"),
677
- I = SFSI("#sfsi_instagramIcon_order").attr("data-index"),
678
- F = SFSI("#sfsi_linkedinIcon_order").attr("data-index"),
679
- tgi = SFSI("#sfsi_telegramIcon_order").attr("data-index"),
680
- vki = SFSI("#sfsi_vkIcon_order").attr("data-index"),
681
- oki = SFSI("#sfsi_okIcon_order").attr("data-index"),
682
- wbi = SFSI("#sfsi_weiboIcon_order").attr("data-index"),
683
- wci = SFSI("#sfsi_wechatIcon_order").attr("data-index"),
684
-
685
- h = new Array();
686
-
687
- SFSI(".custom_iconOrder").each(function () {
688
- h.push({
689
- order: SFSI(this).attr("data-index"),
690
- ele: SFSI(this).attr("element-id")
691
- });
692
- });
693
-
694
- var v = 1 == SFSI("input[name='sfsi_rss_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_rss_MouseOverText']").val(),
695
- g = 1 == SFSI("input[name='sfsi_email_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_email_MouseOverText']").val(),
696
- k = 1 == SFSI("input[name='sfsi_twitter_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_twitter_MouseOverText']").val(),
697
- y = 1 == SFSI("input[name='sfsi_facebook_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_facebook_MouseOverText']").val(),
698
- w = 1 == SFSI("input[name='sfsi_linkedIn_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_linkedIn_MouseOverText']").val(),
699
- x = 1 == SFSI("input[name='sfsi_youtube_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_youtube_MouseOverText']").val(),
700
- C = 1 == SFSI("input[name='sfsi_pinterest_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_pinterest_MouseOverText']").val(),
701
- D = 1 == SFSI("input[name='sfsi_instagram_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_instagram_MouseOverText']").val(),
702
- tg = 1 == SFSI("input[name='sfsi_telegram_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_telegram_MouseOverText']").val(),
703
- vk = 1 == SFSI("input[name='sfsi_vk_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_vk_MouseOverText']").val(),
704
- ok = 1 == SFSI("input[name='sfsi_ok_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_ok_MouseOverText']").val(),
705
- wb = 1 == SFSI("input[name='sfsi_weibo_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_weibo_MouseOverText']").val(),
706
- wc = 1 == SFSI("input[name='sfsi_wechat_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_wechat_MouseOverText']").val(),
707
-
708
- O = {};
709
- SFSI("input[name='sfsi_custom_MouseOverTexts[]']").each(function () {
710
- O[SFSI(this).attr("file-id")] = this.value;
711
- });
712
-
713
- var sfsi_custom_social_hide = SFSI("input[name='sfsi_custom_social_hide']").val();
714
-
715
- var T = {
716
- action: "updateSrcn5",
717
- sfsi_icons_size: i,
718
- sfsi_icons_Alignment: n,
719
- sfsi_icons_perRow: e,
720
- sfsi_icons_spacing: t,
721
- sfsi_icons_ClickPageOpen: o,
722
- sfsi_icons_suppress_errors: se,
723
- sfsi_icons_stick: c,
724
- sfsi_rss_MouseOverText: v,
725
- sfsi_email_MouseOverText: g,
726
- sfsi_twitter_MouseOverText: k,
727
- sfsi_facebook_MouseOverText: y,
728
- sfsi_youtube_MouseOverText: x,
729
- sfsi_linkedIn_MouseOverText: w,
730
- sfsi_pinterest_MouseOverText: C,
731
- sfsi_instagram_MouseOverText: D,
732
- sfsi_telegram_MouseOverText: tg,
733
- sfsi_vk_MouseOverText: vk,
734
- sfsi_ok_MouseOverText: ok,
735
- sfsi_weibo_MouseOverText: wb,
736
- sfsi_wechat_MouseOverText: wc,
737
- sfsi_custom_MouseOverTexts: O,
738
- sfsi_rssIcon_order: p,
739
- sfsi_emailIcon_order: _,
740
- sfsi_facebookIcon_order: S,
741
- sfsi_twitterIcon_order: u,
742
- sfsi_youtubeIcon_order: f,
743
- sfsi_pinterestIcon_order: d,
744
- sfsi_instagramIcon_order: I,
745
- sfsi_linkedinIcon_order: F,
746
- sfsi_telegramIcon_order: tgi,
747
- sfsi_vkIcon_order: vki,
748
- sfsi_okIcon_order: oki,
749
- sfsi_weiboIcon_order: wbi,
750
- sfsi_wechatIcon_order: wci,
751
-
752
- sfsi_custom_orders: h,
753
- sfsi_custom_social_hide: sfsi_custom_social_hide,
754
- nonce: nonce
755
- };
756
- console.log(T);
757
- SFSI.ajax({
758
- url: sfsi_icon_ajax_object.ajax_url,
759
- type: "post",
760
- data: T,
761
- dataType: "json",
762
- async: !0,
763
- success: function (s) {
764
- if (s == "wrong_nonce") {
765
- showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 5);
766
- global_error = 1;
767
- afterLoad();
768
- } else {
769
- "success" == s ? (showErrorSuc("success", "Saved !", 5), sfsicollapse("#sfsi_save5")) : (global_error = 1,
770
- showErrorSuc("error", "Unkown error , please try again", 5)), afterLoad();
771
- }
772
- }
773
- });
774
- }
775
-
776
- function sfsi_update_step6() {
777
- var nonce = SFSI("#sfsi_save6").attr("data-nonce");
778
- beForeLoad();
779
- var s = SFSI("input[name='sfsi_show_Onposts']:checked").val(),
780
- i = SFSI("input[name='sfsi_textBefor_icons']").val(),
781
- e = SFSI("#sfsi_icons_alignment").val(),
782
- t = SFSI("#sfsi_icons_DisplayCounts").val(),
783
- rsub = SFSI("input[name='sfsi_rectsub']:checked").val(),
784
- rfb = SFSI("input[name='sfsi_rectfb']:checked").val(),
785
- rpin = SFSI("input[name='sfsi_rectpinit']:checked").val(),
786
- rshr = SFSI("input[name='sfsi_rectshr']:checked").val(),
787
- rtwr = SFSI("input[name='sfsi_recttwtr']:checked").val(),
788
- rfbshare = SFSI("input[name='sfsi_rectfbshare']:checked").val(),
789
- a = SFSI("input[name='sfsi_display_button_type']:checked").val();
790
- countshare = SFSI("input[name='sfsi_share_count']:checked").val();
791
- endpost = SFSI("input[name='sfsi_responsive_icons_end_post']:checked").val();
792
-
793
- var responsive_icons = {
794
- "default_icons": {},
795
- "settings": {}
796
- };
797
- SFSI('.sfsi_responsive_default_icon_container input[type="checkbox"]').each(function (index, obj) {
798
- var data_obj = {};
799
- data_obj.active = ('checked' == SFSI(obj).attr('checked')) ? 'yes' : 'no';
800
- var iconname = SFSI(obj).attr('data-icon');
801
- var next_section = SFSI(obj).parent().parent();
802
- data_obj.text = next_section.find('input[name="sfsi_responsive_' + iconname + '_input"]').val();
803
- data_obj.url = next_section.find('input[name="sfsi_responsive_' + iconname + '_url_input"]').val();
804
- responsive_icons.default_icons[iconname] = data_obj;
805
- });
806
- SFSI('.sfsi_responsive_custom_icon_container input[type="checkbox"]').each(function (index, obj) {
807
- if (SFSI(obj).attr('id') != "sfsi_responsive_custom_new_display") {
808
- var data_obj = {};
809
- data_obj.active = 'checked' == SFSI(obj).attr('checked') ? 'yes' : 'no';
810
- var icon_index = SFSI(obj).attr('data-custom-index');
811
- var next_section = SFSI(obj).parent().parent();
812
- data_obj['added'] = SFSI('input[name="sfsi_responsive_custom_' + index + '_added"]').val();
813
- data_obj.icon = next_section.find('img').attr('src');
814
- data_obj["bg-color"] = next_section.find('.sfsi_bg-color-picker').val();
815
-
816
- data_obj.text = next_section.find('input[name="sfsi_responsive_custom_' + icon_index + '_input"]').val();
817
- data_obj.url = next_section.find('input[name="sfsi_responsive_custom_' + icon_index + '_url_input"]').val();
818
- responsive_icons.custom_icons[index] = data_obj;
819
- }
820
- });
821
- responsive_icons.settings.icon_size = SFSI('select[name="sfsi_responsive_icons_settings_icon_size"]').val();
822
- responsive_icons.settings.icon_width_type = SFSI('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val();
823
- responsive_icons.settings.icon_width_size = SFSI('input[name="sfsi_responsive_icons_sttings_icon_width_size"]').val();
824
- responsive_icons.settings.edge_type = SFSI('select[name="sfsi_responsive_icons_settings_edge_type"]').val();
825
- responsive_icons.settings.edge_radius = SFSI('select[name="sfsi_responsive_icons_settings_edge_radius"]').val();
826
- responsive_icons.settings.style = SFSI('select[name="sfsi_responsive_icons_settings_style"]').val();
827
- responsive_icons.settings.margin = SFSI('input[name="sfsi_responsive_icons_settings_margin"]').val();
828
- responsive_icons.settings.text_align = SFSI('select[name="sfsi_responsive_icons_settings_text_align"]').val();
829
- responsive_icons.settings.show_count = SFSI('input[name="sfsi_responsive_icon_show_count"]:checked').val();
830
- responsive_icons.settings.counter_color = SFSI('input[name="sfsi_responsive_counter_color"]').val();
831
- responsive_icons.settings.counter_bg_color = SFSI('input[name="sfsi_responsive_counter_bg_color"]').val();
832
- responsive_icons.settings.share_count_text = SFSI('input[name="sfsi_responsive_counter_share_count_text"]').val();
833
- responsive_icons.settings.show_count = countshare;
834
- n = {
835
- action: "updateSrcn6",
836
- sfsi_show_Onposts: s,
837
- sfsi_icons_DisplayCounts: t,
838
- sfsi_icons_alignment: e,
839
- sfsi_textBefor_icons: i,
840
- sfsi_rectsub: rsub,
841
- sfsi_rectfb: rfb,
842
- sfsi_rectpinit: rpin,
843
- sfsi_rectshr: rshr,
844
- sfsi_recttwtr: rtwr,
845
- sfsi_rectfbshare: rfbshare,
846
- sfsi_responsive_icons: responsive_icons,
847
- sfsi_display_button_type: a,
848
- sfsi_responsive_icons_end_post:endpost,
849
- sfsi_share_count: countshare,
850
- nonce: nonce
851
- };
852
- SFSI.ajax({
853
- url: sfsi_icon_ajax_object.ajax_url,
854
- type: "post",
855
- data: n,
856
- dataType: "json",
857
- async: !0,
858
- success: function (s) {
859
- if (s == "wrong_nonce") {
860
- showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 6);
861
- global_error = 1;
862
- afterLoad();
863
- } else {
864
- "success" == s ? (showErrorSuc("success", "Saved !", 6), sfsicollapse("#sfsi_save6")) : (global_error = 1,
865
- showErrorSuc("error", "Unkown error , please try again", 6)), afterLoad();
866
- }
867
- }
868
- });
869
- }
870
-
871
- function sfsi_update_step7() {
872
- var nonce = SFSI("#sfsi_save7").attr("data-nonce");
873
- var s = sfsi_validationStep7();
874
- if (!s) return global_error = 1, !1;
875
- beForeLoad();
876
- var i = SFSI("input[name='sfsi_popup_text']").val(),
877
- e = SFSI("#sfsi_popup_font option:selected").val(),
878
- t = SFSI("#sfsi_popup_fontStyle option:selected").val(),
879
- color = SFSI("input[name='sfsi_popup_fontColor']").val(),
880
- n = SFSI("input[name='sfsi_popup_fontSize']").val(),
881
- o = SFSI("input[name='sfsi_popup_background_color']").val(),
882
- a = SFSI("input[name='sfsi_popup_border_color']").val(),
883
- r = SFSI("input[name='sfsi_popup_border_thickness']").val(),
884
- c = SFSI("input[name='sfsi_popup_border_shadow']:checked").val(),
885
- p = SFSI("input[name='sfsi_Show_popupOn']:checked").val(),
886
- _ = [];
887
- SFSI("#sfsi_Show_popupOn_PageIDs :selected").each(function (s, i) {
888
- _[s] = SFSI(i).val();
889
- });
890
- var l = SFSI("input[name='sfsi_Shown_pop']:checked").val(),
891
- S = SFSI("input[name='sfsi_Shown_popupOnceTime']").val(),
892
- u = SFSI("#sfsi_Shown_popuplimitPerUserTime").val(),
893
- f = {
894
- action: "updateSrcn7",
895
- sfsi_popup_text: i,
896
- sfsi_popup_font: e,
897
- sfsi_popup_fontColor: color,
898
- /*sfsi_popup_fontStyle: t,*/
899
- sfsi_popup_fontSize: n,
900
- sfsi_popup_background_color: o,
901
- sfsi_popup_border_color: a,
902
- sfsi_popup_border_thickness: r,
903
- sfsi_popup_border_shadow: c,
904
- sfsi_Show_popupOn: p,
905
- sfsi_Show_popupOn_PageIDs: _,
906
- sfsi_Shown_pop: l,
907
- sfsi_Shown_popupOnceTime: S,
908
- sfsi_Shown_popuplimitPerUserTime: u,
909
- nonce: nonce
910
- };
911
- SFSI.ajax({
912
- url: sfsi_icon_ajax_object.ajax_url,
913
- type: "post",
914
- data: f,
915
- dataType: "json",
916
- async: !0,
917
- success: function (s) {
918
- if (s == "wrong_nonce") {
919
- showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 7);
920
- afterLoad();
921
- } else {
922
- "success" == s ? (showErrorSuc("success", "Saved !", 7), sfsicollapse("#sfsi_save7")) : showErrorSuc("error", "Unkown error , please try again", 7),
923
- afterLoad();
924
- }
925
- }
926
- });
927
- }
928
-
929
- function sfsi_update_step8() {
930
- var nonce = SFSI("#sfsi_save8").attr("data-nonce");
931
- beForeLoad();
932
- var ie = SFSI("input[name='sfsi_form_adjustment']:checked").val(),
933
- je = SFSI("input[name='sfsi_form_height']").val(),
934
- ke = SFSI("input[name='sfsi_form_width']").val(),
935
- le = SFSI("input[name='sfsi_form_border']:checked").val(),
936
- me = SFSI("input[name='sfsi_form_border_thickness']").val(),
937
- ne = SFSI("input[name='sfsi_form_border_color']").val(),
938
- oe = SFSI("input[name='sfsi_form_background']").val(),
939
-
940
- ae = SFSI("input[name='sfsi_form_heading_text']").val(),
941
- be = SFSI("#sfsi_form_heading_font option:selected").val(),
942
- ce = SFSI("#sfsi_form_heading_fontstyle option:selected").val(),
943
- de = SFSI("input[name='sfsi_form_heading_fontcolor']").val(),
944
- ee = SFSI("input[name='sfsi_form_heading_fontsize']").val(),
945
- fe = SFSI("#sfsi_form_heading_fontalign option:selected").val(),
946
-
947
- ue = SFSI("input[name='sfsi_form_field_text']").val(),
948
- ve = SFSI("#sfsi_form_field_font option:selected").val(),
949
- we = SFSI("#sfsi_form_field_fontstyle option:selected").val(),
950
- xe = SFSI("input[name='sfsi_form_field_fontcolor']").val(),
951
- ye = SFSI("input[name='sfsi_form_field_fontsize']").val(),
952
- ze = SFSI("#sfsi_form_field_fontalign option:selected").val(),
953
-
954
- i = SFSI("input[name='sfsi_form_button_text']").val(),
955
- j = SFSI("#sfsi_form_button_font option:selected").val(),
956
- k = SFSI("#sfsi_form_button_fontstyle option:selected").val(),
957
- l = SFSI("input[name='sfsi_form_button_fontcolor']").val(),
958
- m = SFSI("input[name='sfsi_form_button_fontsize']").val(),
959
- n = SFSI("#sfsi_form_button_fontalign option:selected").val(),
960
- o = SFSI("input[name='sfsi_form_button_background']").val();
961
-
962
- var f = {
963
- action: "updateSrcn8",
964
- sfsi_form_adjustment: ie,
965
- sfsi_form_height: je,
966
- sfsi_form_width: ke,
967
- sfsi_form_border: le,
968
- sfsi_form_border_thickness: me,
969
- sfsi_form_border_color: ne,
970
- sfsi_form_background: oe,
971
-
972
- sfsi_form_heading_text: ae,
973
- sfsi_form_heading_font: be,
974
- sfsi_form_heading_fontstyle: ce,
975
- sfsi_form_heading_fontcolor: de,
976
- sfsi_form_heading_fontsize: ee,
977
- sfsi_form_heading_fontalign: fe,
978
-
979
- sfsi_form_field_text: ue,
980
- sfsi_form_field_font: ve,
981
- sfsi_form_field_fontstyle: we,
982
- sfsi_form_field_fontcolor: xe,
983
- sfsi_form_field_fontsize: ye,
984
- sfsi_form_field_fontalign: ze,
985
-
986
- sfsi_form_button_text: i,
987
- sfsi_form_button_font: j,
988
- sfsi_form_button_fontstyle: k,
989
- sfsi_form_button_fontcolor: l,
990
- sfsi_form_button_fontsize: m,
991
- sfsi_form_button_fontalign: n,
992
- sfsi_form_button_background: o,
993
-
994
- nonce: nonce
995
- };
996
- SFSI.ajax({
997
- url: sfsi_icon_ajax_object.ajax_url,
998
- type: "post",
999
- data: f,
1000
- dataType: "json",
1001
- async: !0,
1002
- success: function (s) {
1003
- if (s == "wrong_nonce") {
1004
- showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 7);
1005
- afterLoad();
1006
- } else {
1007
- "success" == s ? (showErrorSuc("success", "Saved !", 8), sfsicollapse("#sfsi_save8"), create_suscriber_form()) : showErrorSuc("error", "Unkown error , please try again", 8),
1008
- afterLoad();
1009
- }
1010
- }
1011
- });
1012
- }
1013
-
1014
- // Queestion 3
1015
- function sfsi_update_step9() {
1016
- var nonce = SFSI("#sfsi_save9").attr("data-nonce");
1017
- beForeLoad();
1018
-
1019
- var i_float = SFSI("input[name='sfsi_icons_float']:checked").val(),
1020
- i_floatP = SFSI("input[name='sfsi_icons_floatPosition']:checked").val(),
1021
- i_floatMt = SFSI("input[name='sfsi_icons_floatMargin_top']").val(),
1022
- i_floatMb = SFSI("input[name='sfsi_icons_floatMargin_bottom']").val(),
1023
- i_floatMl = SFSI("input[name='sfsi_icons_floatMargin_left']").val(),
1024
- i_floatMr = SFSI("input[name='sfsi_icons_floatMargin_right']").val(),
1025
- i_disableFloat = SFSI("input[name='sfsi_disable_floaticons']:checked").val(),
1026
-
1027
- show_via_widget = SFSI("input[name='sfsi_show_via_widget']").val(),
1028
- show_via__shortcode = SFSI("input[name='sfsi_show_via_shortcode']:checked").length==0?"no":"yes",
1029
- sfsi_show_via_afterposts = SFSI("input[name='sfsi_show_via_afterposts']").val();
1030
-
1031
- var f = {
1032
-
1033
- action: "updateSrcn9",
1034
-
1035
- sfsi_icons_float: i_float,
1036
- sfsi_icons_floatPosition: i_floatP,
1037
- sfsi_icons_floatMargin_top: i_floatMt,
1038
- sfsi_icons_floatMargin_bottom: i_floatMb,
1039
- sfsi_icons_floatMargin_left: i_floatMl,
1040
- sfsi_icons_floatMargin_right: i_floatMr,
1041
- sfsi_disable_floaticons: i_disableFloat,
1042
-
1043
- sfsi_show_via_widget: show_via_widget,
1044
- sfsi_show_via_shortcode: show_via__shortcode,
1045
- sfsi_show_via_afterposts: sfsi_show_via_afterposts,
1046
- nonce: nonce
1047
- };
1048
- SFSI.ajax({
1049
- url: sfsi_icon_ajax_object.ajax_url,
1050
- type: "post",
1051
- data: f,
1052
- dataType: "json",
1053
- async: !0,
1054
- success: function (s) {
1055
- if (s == "wrong_nonce") {
1056
- showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 9);
1057
- afterLoad();
1058
- } else {
1059
- "success" == s ? (showErrorSuc("success", "Saved !", 9), sfsicollapse("#sfsi_save9")) : showErrorSuc("error", "Unkown error , please try again", 9),
1060
- afterLoad();
1061
- }
1062
- }
1063
- });
1064
- }
1065
-
1066
- function sfsi_validationStep2() {
1067
- //var class_name= SFSI(element).hasAttr('sfsi_validate');
1068
- SFSI('input').removeClass('inputError'); // remove previous error
1069
- if (sfsi_validator(SFSI('input[name="sfsi_rss_display"]'), 'checked')) {
1070
- if (!sfsi_validator(SFSI('input[name="sfsi_rss_url"]'), 'url')) {
1071
- showErrorSuc("error", "Error : Invalid Rss url ", 2);
1072
- SFSI('input[name="sfsi_rss_url"]').addClass('inputError');
1073
-
1074
- return false;
1075
- }
1076
- }
1077
- /* validate facebook */
1078
- if (sfsi_validator(SFSI('input[name="sfsi_facebookPage_option"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_facebookPage_option"]'), 'checked')) {
1079
- if (!sfsi_validator(SFSI('input[name="sfsi_facebookPage_url"]'), 'blank')) {
1080
- showErrorSuc("error", "Error : Invalid Facebook page url ", 2);
1081
- SFSI('input[name="sfsi_facebookPage_url"]').addClass('inputError');
1082
-
1083
- return false;
1084
- }
1085
- }
1086
- /* validate twitter user name */
1087
- if (sfsi_validator(SFSI('input[name="sfsi_twitter_followme"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_twitter_followme"]'), 'checked')) {
1088
- if (!sfsi_validator(SFSI('input[name="sfsi_twitter_followUserName"]'), 'blank')) {
1089
- showErrorSuc("error", "Error : Invalid Twitter UserName ", 2);
1090
- SFSI('input[name="sfsi_twitter_followUserName"]').addClass('inputError');
1091
- return false;
1092
- }
1093
- }
1094
- /* validate twitter about page */
1095
- if (sfsi_validator(SFSI('input[name="sfsi_twitter_aboutPage"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_twitter_aboutPage"]'), 'checked')) {
1096
- if (!sfsi_validator(SFSI('#sfsi_twitter_aboutPageText'), 'blank')) {
1097
- showErrorSuc("error", "Error : Tweet about my page is blank ", 2);
1098
- SFSI('#sfsi_twitter_aboutPageText').addClass('inputError');
1099
- return false;
1100
- }
1101
- }
1102
- /* twitter validation */
1103
- if (sfsi_validator(SFSI('input[name="sfsi_twitter_page"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_twitter_page"]'), 'checked')) {
1104
- if (!sfsi_validator(SFSI('input[name="sfsi_twitter_pageURL"]'), 'blank')) {
1105
- showErrorSuc("error", "Error : Invalid twitter page Url ", 2);
1106
- SFSI('input[name="sfsi_twitter_pageURL"]').addClass('inputError');
1107
- return false;
1108
- }
1109
- }
1110
-
1111
- /* youtube validation */
1112
- if (sfsi_validator(SFSI('input[name="sfsi_youtube_page"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_youtube_page"]'), 'checked')) {
1113
- if (!sfsi_validator(SFSI('input[name="sfsi_youtube_pageUrl"]'), 'blank')) {
1114
- showErrorSuc("error", "Error : Invalid youtube Url ", 2);
1115
- SFSI('input[name="sfsi_youtube_pageUrl"]').addClass('inputError');
1116
- return false;
1117
- }
1118
- }
1119
- /* youtube validation */
1120
- if (sfsi_validator(SFSI('input[name="sfsi_youtube_page"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_youtube_follow"]'), 'checked')) {
1121
- cls = SFSI("input[name='sfsi_youtubeusernameorid']:checked").val();
1122
- if (cls == 'name' && !sfsi_validator(SFSI('input[name="sfsi_ytube_user"]'), 'blank')) {
1123
- showErrorSuc("error", "Error : Invalid youtube user name", 2);
1124
- SFSI('input[name="sfsi_ytube_user"]').addClass('inputError');
1125
- return false;
1126
- }
1127
-
1128
- if (cls == 'id' && !sfsi_validator(SFSI('input[name="sfsi_ytube_chnlid"]'), 'blank')) {
1129
- showErrorSuc("error", "Error : Invalid youtube Channel ID ", 2);
1130
- SFSI('input[name="sfsi_ytube_user"]').addClass('inputError');
1131
- return false;
1132
- }
1133
- }
1134
- /* pinterest validation */
1135
- if (sfsi_validator(SFSI('input[name="sfsi_pinterest_page"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_pinterest_page"]'), 'checked')) {
1136
- if (!sfsi_validator(SFSI('input[name="sfsi_pinterest_pageUrl"]'), 'blank')) {
1137
- showErrorSuc("error", "Error : Invalid pinterest page url ", 2);
1138
- SFSI('input[name="sfsi_pinterest_pageUrl"]').addClass('inputError');
1139
- return false;
1140
- }
1141
- }
1142
- /* instagram validation */
1143
- if (sfsi_validator(SFSI('input[name="sfsi_instagram_display"]'), 'checked')) {
1144
- if (!sfsi_validator(SFSI('input[name="sfsi_instagram_pageUrl"]'), 'blank')) {
1145
- showErrorSuc("error", "Error : Invalid Instagram url ", 2);
1146
- SFSI('input[name="sfsi_instagram_pageUrl"]').addClass('inputError');
1147
- return false;
1148
- }
1149
- }
1150
- /* telegram validation */
1151
- if (sfsi_validator(SFSI('input[name="sfsi_telegram_display"]'), 'checked')) {
1152
- if (!sfsi_validator(SFSI('input[name="sfsi_telegram_username"]'), 'blank')) {
1153
- showErrorSuc("error", "Error : Invalid telegram username ", 2);
1154
- SFSI('input[name="sfsi_telegram_username"]').addClass('inputError');
1155
- return false;
1156
- }
1157
- }
1158
- /* telegram validation */
1159
- if (sfsi_validator(SFSI('input[name="sfsi_telegram_display"]'), 'checked')) {
1160
- if (!sfsi_validator(SFSI('input[name="sfsi_telegram_message"]'), 'blank')) {
1161
- showErrorSuc("error", "Error : Invalid Message ", 2);
1162
- SFSI('input[name="sfsi_telegram_message"]').addClass('inputError');
1163
- return false;
1164
- }
1165
- }
1166
- /* vk validation */
1167
- if (sfsi_validator(SFSI('input[name="sfsi_vk_display"]'), 'checked')) {
1168
- if (!sfsi_validator(SFSI('input[name="sfsi_vk_pageURL"]'), 'blank')) {
1169
- showErrorSuc("error", "Error : Invalid vk url ", 2);
1170
- SFSI('input[name="sfsi_vk_pageURL"]').addClass('inputError');
1171
- return false;
1172
- }
1173
- }
1174
- /* ok validation */
1175
- if (sfsi_validator(SFSI('input[name="sfsi_ok_display"]'), 'checked')) {
1176
- if (!sfsi_validator(SFSI('input[name="sfsi_ok_pageURL"]'), 'blank')) {
1177
- showErrorSuc("error", "Error : Invalid ok url ", 2);
1178
- SFSI('input[name="sfsi_ok_pageURL"]').addClass('inputError');
1179
- return false;
1180
- }
1181
- }
1182
- /* weibo validation */
1183
- if (sfsi_validator(SFSI('input[name="sfsi_weibo_display"]'), 'checked')) {
1184
- if (!sfsi_validator(SFSI('input[name="sfsi_weibo_pageURL"]'), 'blank')) {
1185
- showErrorSuc("error", "Error : Invalid weibo url ", 2);
1186
- SFSI('input[name="sfsi_weibo_pageURL"]').addClass('inputError');
1187
- return false;
1188
- }
1189
- }
1190
- /* LinkedIn validation */
1191
- if (sfsi_validator(SFSI('input[name="sfsi_linkedin_page"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_linkedin_page"]'), 'checked')) {
1192
- if (!sfsi_validator(SFSI('input[name="sfsi_linkedin_pageURL"]'), 'blank')) {
1193
- showErrorSuc("error", "Error : Invalid LinkedIn page url ", 2);
1194
- SFSI('input[name="sfsi_linkedin_pageURL"]').addClass('inputError');
1195
- return false;
1196
- }
1197
- }
1198
- if (sfsi_validator(SFSI('input[name="sfsi_linkedin_recommendBusines"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_linkedin_recommendBusines"]'), 'checked')) {
1199
- if (!sfsi_validator(SFSI('input[name="sfsi_linkedin_recommendProductId"]'), 'blank') || !sfsi_validator(SFSI('input[name="sfsi_linkedin_recommendCompany"]'), 'blank')) {
1200
- showErrorSuc("error", "Error : Please Enter Product Id and Company for LinkedIn Recommendation ", 2);
1201
- SFSI('input[name="sfsi_linkedin_recommendProductId"]').addClass('inputError');
1202
- SFSI('input[name="sfsi_linkedin_recommendCompany"]').addClass('inputError');
1203
- return false;
1204
- }
1205
- }
1206
- /* validate custom links */
1207
- var er = 0;
1208
- SFSI("input[name='sfsi_CustomIcon_links[]']").each(function () {
1209
-
1210
- //if(!sfsi_validator(SFSI(this),'blank') || !sfsi_validator(SFSI(SFSI(this)),'url') )
1211
- if (!sfsi_validator(SFSI(this), 'blank')) {
1212
- showErrorSuc("error", "Error : Please Enter a valid Custom link ", 2);
1213
- SFSI(this).addClass('inputError');
1214
- er = 1;
1215
- }
1216
- });
1217
- if (!er) return true;
1218
- else return false;
1219
- }
1220
-
1221
- function sfsi_validationStep3() {
1222
- SFSI('input').removeClass('inputError'); // remove previous error
1223
- /* validate shuffle effect */
1224
- if (sfsi_validator(SFSI('input[name="sfsi_shuffle_icons"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_shuffle_icons"]'), 'checked')) {
1225
- if ((!sfsi_validator(SFSI('input[name="sfsi_shuffle_Firstload"]'), 'activte') || !sfsi_validator(SFSI('input[name="sfsi_shuffle_Firstload"]'), 'checked')) && (!sfsi_validator(SFSI('input[name="sfsi_shuffle_interval"]'), 'activte') || !sfsi_validator(SFSI('input[name="sfsi_shuffle_interval"]'), 'checked'))) {
1226
- showErrorSuc("error", "Error : Please Chose a Shuffle option ", 3);
1227
- SFSI('input[name="sfsi_shuffle_Firstload"]').addClass('inputError');
1228
- SFSI('input[name="sfsi_shuffle_interval"]').addClass('inputError');
1229
- return false;
1230
- }
1231
- }
1232
- if (!sfsi_validator(SFSI('input[name="sfsi_shuffle_icons"]'), 'checked') && (sfsi_validator(SFSI('input[name="sfsi_shuffle_Firstload"]'), 'checked') || sfsi_validator(SFSI('input[name="sfsi_shuffle_interval"]'), 'checked'))) {
1233
- showErrorSuc("error", "Error : Please check \"Shuffle them automatically\" option also ", 3);
1234
- SFSI('input[name="sfsi_shuffle_Firstload"]').addClass('inputError');
1235
- SFSI('input[name="sfsi_shuffle_interval"]').addClass('inputError');
1236
- return false;
1237
- }
1238
-
1239
- /* validate twitter user name */
1240
- if (sfsi_validator(SFSI('input[name="sfsi_shuffle_interval"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_shuffle_interval"]'), 'checked')) {
1241
-
1242
- if (!sfsi_validator(SFSI('input[name="sfsi_shuffle_intervalTime"]'), 'blank') || !sfsi_validator(SFSI('input[name="sfsi_shuffle_intervalTime"]'), 'int')) {
1243
- showErrorSuc("error", "Error : Invalid shuffle time interval", 3);
1244
- SFSI('input[name="sfsi_shuffle_intervalTime"]').addClass('inputError');
1245
- return false;
1246
- }
1247
- }
1248
- return true;
1249
- }
1250
-
1251
- function sfsi_validationStep4() {
1252
- //var class_name= SFSI(element).hasAttr('sfsi_validate');
1253
- /* validate email */
1254
- if (sfsi_validator(SFSI('input[name="sfsi_email_countsDisplay"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_email_countsDisplay"]'), 'checked')) {
1255
- if (SFSI('input[name="sfsi_email_countsFrom"]:checked').val() == 'manual') {
1256
- if (!sfsi_validator(SFSI('input[name="sfsi_email_manualCounts"]'), 'blank')) {
1257
- showErrorSuc("error", "Error : Please Enter manual counts for Email icon ", 4);
1258
- SFSI('input[name="sfsi_email_manualCounts"]').addClass('inputError');
1259
- return false;
1260
- }
1261
- }
1262
- }
1263
- /* validate RSS count */
1264
- if (sfsi_validator(SFSI('input[name="sfsi_rss_countsDisplay"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_rss_countsDisplay"]'), 'checked')) {
1265
- if (!sfsi_validator(SFSI('input[name="sfsi_rss_manualCounts"]'), 'blank')) {
1266
- showErrorSuc("error", "Error : Please Enter manual counts for Rss icon ", 4);
1267
- SFSI('input[name="sfsi_rss_countsDisplay"]').addClass('inputError');
1268
- return false;
1269
- }
1270
- }
1271
- /* validate facebook */
1272
- if (sfsi_validator(SFSI('input[name="sfsi_facebook_countsDisplay"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_facebook_countsDisplay"]'), 'checked')) {
1273
- /*if(SFSI('input[name="sfsi_facebook_countsFrom"]:checked').val()=='likes' )
1274
- {
1275
- if(!sfsi_validator(SFSI('input[name="sfsi_facebook_PageLink"]'),'blank'))
1276
- { showErrorSuc("error","Error : Please Enter facebook page Url ",4);
1277
- SFSI('input[name="sfsi_facebook_PageLink"]').addClass('inputError');
1278
- return false;
1279
- }
1280
- } */
1281
- if (SFSI('input[name="sfsi_facebook_countsFrom"]:checked').val() == 'manual') {
1282
- if (!sfsi_validator(SFSI('input[name="sfsi_facebook_manualCounts"]'), 'blank') && !sfsi_validator(SFSI('input[name="sfsi_facebook_manualCounts"]'), 'url')) {
1283
- showErrorSuc("error", "Error : Please Enter a valid facebook manual counts ", 4);
1284
- SFSI('input[name="sfsi_facebook_manualCounts"]').addClass('inputError');
1285
- return false;
1286
- }
1287
- }
1288
- }
1289
-
1290
- /* validate twitter */
1291
- if (sfsi_validator(SFSI('input[name="sfsi_twitter_countsDisplay"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_twitter_countsDisplay"]'), 'checked')) {
1292
- if (SFSI('input[name="sfsi_twitter_countsFrom"]:checked').val() == 'source') {
1293
- if (!sfsi_validator(SFSI('input[name="tw_consumer_key"]'), 'blank')) {
1294
- showErrorSuc("error", "Error : Please Enter a valid consumer key", 4);
1295
- SFSI('input[name="tw_consumer_key"]').addClass('inputError');
1296
- return false;
1297
- }
1298
- if (!sfsi_validator(SFSI('input[name="tw_consumer_secret"]'), 'blank')) {
1299
- showErrorSuc("error", "Error : Please Enter a valid consume secret ", 4);
1300
- SFSI('input[name="tw_consumer_secret"]').addClass('inputError');
1301
- return false;
1302
- }
1303
- if (!sfsi_validator(SFSI('input[name="tw_oauth_access_token"]'), 'blank')) {
1304
- showErrorSuc("error", "Error : Please Enter a valid oauth access token", 4);
1305
- SFSI('input[name="tw_oauth_access_token"]').addClass('inputError');
1306
- return false;
1307
- }
1308
- if (!sfsi_validator(SFSI('input[name="tw_oauth_access_token_secret"]'), 'blank')) {
1309
- showErrorSuc("error", "Error : Please Enter a oAuth access token secret", 4);
1310
- SFSI('input[name="tw_oauth_access_token_secret"]').addClass('inputError');
1311
- return false;
1312
- }
1313
- }
1314
- if (SFSI('input[name="sfsi_linkedIn_countsFrom"]:checked').val() == 'manual') {
1315
-
1316
- if (!sfsi_validator(SFSI('input[name="sfsi_twitter_manualCounts"]'), 'blank')) {
1317
- showErrorSuc("error", "Error : Please Enter Twitter manual counts ", 4);
1318
- SFSI('input[name="sfsi_twitter_manualCounts"]').addClass('inputError');
1319
- return false;
1320
- }
1321
- }
1322
- }
1323
- /* validate LinkedIn */
1324
- if (sfsi_validator(SFSI('input[name="sfsi_linkedIn_countsDisplay"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_linkedIn_countsDisplay"]'), 'checked')) {
1325
- if (SFSI('input[name="sfsi_linkedIn_countsFrom"]:checked').val() == 'follower') {
1326
- if (!sfsi_validator(SFSI('input[name="ln_company"]'), 'blank')) {
1327
- showErrorSuc("error", "Error : Please Enter a valid company name", 4);
1328
- SFSI('input[name="ln_company"]').addClass('inputError');
1329
- return false;
1330
- }
1331
- if (!sfsi_validator(SFSI('input[name="ln_api_key"]'), 'blank')) {
1332
- showErrorSuc("error", "Error : Please Enter a valid API key ", 4);
1333
- SFSI('input[name="ln_api_key"]').addClass('inputError');
1334
- return false;
1335
- }
1336
- if (!sfsi_validator(SFSI('input[name="ln_secret_key"]'), 'blank')) {
1337
- showErrorSuc("error", "Error : Please Enter a valid secret ", 4);
1338
- SFSI('input[name="ln_secret_key"]').addClass('inputError');
1339
- return false;
1340
- }
1341
- if (!sfsi_validator(SFSI('input[name="ln_oAuth_user_token"]'), 'blank')) {
1342
- showErrorSuc("error", "Error : Please Enter a oAuth Access Token", 4);
1343
- SFSI('input[name="ln_oAuth_user_token"]').addClass('inputError');
1344
- return false;
1345
- }
1346
- }
1347
- if (SFSI('input[name="sfsi_linkedIn_countsFrom"]:checked').val() == 'manual') {
1348
- if (!sfsi_validator(SFSI('input[name="sfsi_linkedIn_manualCounts"]'), 'blank')) {
1349
- showErrorSuc("error", "Error : Please Enter LinkedIn manual counts ", 4);
1350
- SFSI('input[name="sfsi_linkedIn_manualCounts"]').addClass('inputError');
1351
- return false;
1352
- }
1353
- }
1354
- }
1355
- /* validate youtube */
1356
- if (sfsi_validator(SFSI('input[name="sfsi_youtube_countsDisplay"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_youtube_countsDisplay"]'), 'checked')) {
1357
- if (SFSI('input[name="sfsi_youtube_countsFrom"]:checked').val() == 'subscriber') {
1358
- if (
1359
- !sfsi_validator(SFSI('input[name="sfsi_youtube_user"]'), 'blank') &&
1360
- !sfsi_validator(SFSI('input[name="sfsi_youtube_channelId"]'), 'blank')
1361
- ) {
1362
- showErrorSuc("error", "Error : Please Enter a youtube user name or channel id", 4);
1363
- SFSI('input[name="sfsi_youtube_user"]').addClass('inputError');
1364
- SFSI('input[name="sfsi_youtube_channelId"]').addClass('inputError');
1365
- return false;
1366
- }
1367
- }
1368
- if (SFSI('input[name="sfsi_youtube_countsFrom"]:checked').val() == 'manual') {
1369
- if (!sfsi_validator(SFSI('input[name="sfsi_youtube_manualCounts"]'), 'blank')) {
1370
- showErrorSuc("error", "Error : Please Enter youtube manual counts ", 4);
1371
- SFSI('input[name="sfsi_youtube_manualCounts"]').addClass('inputError');
1372
- return false;
1373
- }
1374
- }
1375
- }
1376
- /* validate pinterest */
1377
- if (sfsi_validator(SFSI('input[name="sfsi_pinterest_countsDisplay"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_pinterest_countsDisplay"]'), 'checked')) {
1378
- if (SFSI('input[name="sfsi_pinterest_countsFrom"]:checked').val() == 'manual') {
1379
- if (!sfsi_validator(SFSI('input[name="sfsi_pinterest_manualCounts"]'), 'blank')) {
1380
- showErrorSuc("error", "Error : Please Enter Pinterest manual counts ", 4);
1381
- SFSI('input[name="sfsi_pinterest_manualCounts"]').addClass('inputError');
1382
- return false;
1383
- }
1384
- }
1385
- }
1386
- /* validate instagram */
1387
- if (sfsi_validator(SFSI('input[name="sfsi_instagram_countsDisplay"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_instagram_countsDisplay"]'), 'checked')) {
1388
- if (SFSI('input[name="sfsi_instagram_countsFrom"]:checked').val() == 'manual') {
1389
- if (!sfsi_validator(SFSI('input[name="sfsi_instagram_manualCounts"]'), 'blank')) {
1390
- showErrorSuc("error", "Error : Please Enter Instagram manual counts ", 4);
1391
- SFSI('input[name="sfsi_instagram_manualCounts"]').addClass('inputError');
1392
- return false;
1393
- }
1394
- }
1395
- if (SFSI('input[name="sfsi_instagram_countsFrom"]:checked').val() == 'followers') {
1396
- if (!sfsi_validator(SFSI('input[name="sfsi_instagram_User"]'), 'blank')) {
1397
- showErrorSuc("error", "Error : Please Enter a instagram user name", 4);
1398
- SFSI('input[name="sfsi_instagram_User"]').addClass('inputError');
1399
- return false;
1400
- }
1401
- }
1402
- }
1403
- return true;
1404
- }
1405
-
1406
- function sfsi_validationStep5() {
1407
- //var class_name= SFSI(element).hasAttr('sfsi_validate');
1408
- /* validate size */
1409
- if (!sfsi_validator(SFSI('input[name="sfsi_icons_size"]'), 'int')) {
1410
- showErrorSuc("error", "Error : Please enter a numeric value only ", 5);
1411
- SFSI('input[name="sfsi_icons_size"]').addClass('inputError');
1412
- return false;
1413
- }
1414
- if (parseInt(SFSI('input[name="sfsi_icons_size"]').val()) > 100) {
1415
- showErrorSuc("error", "Error : Icons Size allow 100px maximum ", 5);
1416
- SFSI('input[name="sfsi_icons_size"]').addClass('inputError');
1417
- return false;
1418
- }
1419
- if (parseInt(SFSI('input[name="sfsi_icons_size"]').val()) <= 0) {
1420
- showErrorSuc("error", "Error : Icons Size should be more than 0 ", 5);
1421
- SFSI('input[name="sfsi_icons_size"]').addClass('inputError');
1422
- return false;
1423
- }
1424
- /* validate spacing */
1425
- if (!sfsi_validator(SFSI('input[name="sfsi_icons_spacing"]'), 'int')) {
1426
- showErrorSuc("error", "Error : Please enter a numeric value only ", 5);
1427
- SFSI('input[name="sfsi_icons_spacing"]').addClass('inputError');
1428
- return false;
1429
- }
1430
- if (parseInt(SFSI('input[name="sfsi_icons_spacing"]').val()) < 0) {
1431
- showErrorSuc("error", "Error : Icons Spacing should be 0 or more", 5);
1432
- SFSI('input[name="sfsi_icons_spacing"]').addClass('inputError');
1433
- return false;
1434
- }
1435
- /* icons per row spacing */
1436
- if (!sfsi_validator(SFSI('input[name="sfsi_icons_perRow"]'), 'int')) {
1437
- showErrorSuc("error", "Error : Please enter a numeric value only ", 5);
1438
- SFSI('input[name="sfsi_icons_perRow"]').addClass('inputError');
1439
- return false;
1440
- }
1441
- if (parseInt(SFSI('input[name="sfsi_icons_perRow"]').val()) <= 0) {
1442
- showErrorSuc("error", "Error : Icons Per row should be more than 0", 5);
1443
- SFSI('input[name="sfsi_icons_perRow"]').addClass('inputError');
1444
- return false;
1445
- }
1446
- /* validate icons effects */
1447
- // if(SFSI('input[name="sfsi_icons_float"]:checked').val()=="yes" && SFSI('input[name="sfsi_icons_stick"]:checked').val()=="yes")
1448
- // {
1449
- // showErrorSuc("error","Error : Only one allow from Sticking & floating ",5);
1450
- // SFSI('input[name="sfsi_icons_float"][value="no"]').prop("checked", true);
1451
- // return false;
1452
- // }
1453
- return true;
1454
- }
1455
-
1456
- function sfsi_validationStep7() {
1457
- //var class_name= SFSI(element).hasAttr('sfsi_validate');
1458
- /* validate border thikness */
1459
- if (!sfsi_validator(SFSI('input[name="sfsi_popup_border_thickness"]'), 'int')) {
1460
- showErrorSuc("error", "Error : Please enter a numeric value only ", 7);
1461
- SFSI('input[name="sfsi_popup_border_thickness"]').addClass('inputError');
1462
- return false;
1463
- }
1464
- /* validate fotn size */
1465
- if (!sfsi_validator(SFSI('input[name="sfsi_popup_fontSize"]'), 'int')) {
1466
- showErrorSuc("error", "Error : Please enter a numeric value only ", 7);
1467
- SFSI('input[name="sfsi_popup_fontSize"]').addClass('inputError');
1468
- return false;
1469
- }
1470
- /* validate pop up shown */
1471
- if (SFSI('input[name="sfsi_Shown_pop"]:checked').val() == 'once') {
1472
-
1473
- if (!sfsi_validator(SFSI('input[name="sfsi_Shown_popupOnceTime"]'), 'blank') && !sfsi_validator(SFSI('input[name="sfsi_Shown_popupOnceTime"]'), 'url')) {
1474
- showErrorSuc("error", "Error : Please Enter a valid pop up shown time ", 7);
1475
- SFSI('input[name="sfsi_Shown_popupOnceTime"]').addClass('inputError');
1476
- return false;
1477
- }
1478
- }
1479
- /* validate page ids */
1480
- if (SFSI('input[name="sfsi_Show_popupOn"]:checked').val() == 'selectedpage') {
1481
- if (!sfsi_validator(SFSI('input[name="sfsi_Show_popupOn"]'), 'blank')) {
1482
- showErrorSuc("error", "Error : Please Enter page ids with comma ", 7);
1483
- SFSI('input[name="sfsi_Show_popupOn"]').addClass('inputError');
1484
- return false;
1485
- }
1486
- }
1487
- /* validate spacing */
1488
- if (!sfsi_validator(SFSI('input[name="sfsi_icons_spacing"]'), 'int')) {
1489
- showErrorSuc("error", "Error : Please enter a numeric value only ", 7);
1490
- SFSI('input[name="sfsi_icons_spacing"]').addClass('inputError');
1491
- return false;
1492
- }
1493
- /* icons per row spacing */
1494
- if (!sfsi_validator(SFSI('input[name="sfsi_icons_perRow"]'), 'int')) {
1495
- showErrorSuc("error", "Error : Please enter a numeric value only ", 7);
1496
- SFSI('input[name="sfsi_icons_perRow"]').addClass('inputError');
1497
- return false;
1498
- }
1499
- return true;
1500
- }
1501
-
1502
- function sfsi_validator(element, valType) {
1503
- var Vurl = new RegExp("^(http|https|ftp)\://([a-zA-Z0-9\.\-]+(\:[a-zA-Z0-9\.&amp;%\$\-]+)*@)*((25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])|([a-zA-Z0-9\-]+\.)*[a-zA-Z0-9\-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(\:[0-9]+)*(/($|[a-zA-Z0-9\.\,\@\?\'\\\+&amp;%\$#\=~_\-]+))*$");
1504
- //var Vurl = /http:\/\/[A-Za-z0-9\.-]{3,}\.[A-Za-z]{3}/;
1505
-
1506
- switch (valType) {
1507
- case "blank":
1508
- if (!element.val().trim()) return false;
1509
- else return true;
1510
- break;
1511
- case "url":
1512
- if (!Vurl.test(element.val().trim())) return false;
1513
- else return true;
1514
- break;
1515
- case "checked":
1516
- if (!element.attr('checked') === true) return false;
1517
- else return true;
1518
- break;
1519
- case "activte":
1520
- if (!element.attr('disabled')) return true;
1521
- else return false;
1522
- break;
1523
- case "int":
1524
- if (!isNaN(element.val())) return true;
1525
- else return false;
1526
- break;
1527
-
1528
- }
1529
- }
1530
-
1531
- function afterIconSuccess(s, nonce) {
1532
- if (s.res = "success") {
1533
- var i = s.key + 1,
1534
- e = s.element,
1535
- t = e + 1;
1536
- SFSI("#total_cusotm_icons").val(s.element);
1537
- SFSI(".upload-overlay").hide("slow");
1538
- SFSI(".uperror").html("");
1539
- showErrorSuc("success", "Custom Icon updated successfully", 1);
1540
- d = new Date();
1541
-
1542
- var ele = SFSI(".notice_custom_icons_premium");
1543
-
1544
- SFSI("li.custom:last-child").removeClass("bdr_btm_non");
1545
- SFSI("li.custom:last-child").children("span.custom-img").children("img").attr("src", s.img_path + "?" + d.getTime());
1546
- SFSI("input[name=sfsiICON_" + s.key + "]").removeAttr("ele-type");
1547
- SFSI("input[name=sfsiICON_" + s.key + "]").removeAttr("isnew");
1548
- icons_name = SFSI("li.custom:last-child").find("input.styled").attr("name");
1549
- var n = icons_name.split("_");
1550
- s.key = s.key, s.img_path += "?" + d.getTime(), 5 > e && SFSI(".icn_listing").append('<li id="c' + i + '" class="custom bdr_btm_non"><div class="radio_section tb_4_ck"><span class="checkbox" dynamic_ele="yes" style="background-position: 0px 0px;"></span><input name="sfsiICON_' + i + '" type="checkbox" value="yes" class="styled" style="display:none;" element-type="cusotm-icon" isNew="yes" /></div> <span class="custom-img"><img src="' + SFSI("#plugin_url").val() + 'images/custom.png" id="CImg_' + i + '" alt="error" /> </span> <span class="custom custom-txt">Custom' + t + ' </span> <div class="right_info"> <p><span>It depends:</span> Upload a custom icon if you have other accounts/websites you want to link to.</p><div class="inputWrapper"></div></li>'),
1551
- SFSI(".custom_section").show(),
1552
- SFSI('<div class="row sfsiICON_' + s.key + ' cm_lnk"> <h2 class="custom"> <span class="customstep2-img"> <img src="' + s.img_path + "?" + d.getTime() + '" style="border-radius:48%" alt="error" /> </span> <span class="sfsiCtxt">Custom ' + e + '</span> </h2> <div class="inr_cont "><p>Where do you want this icon to link to?</p> <p class="radio_section fb_url custom_section sfsiICON_' + s.key + '" ><label>Link :</label><input file-id="' + s.key + '" name="sfsi_CustomIcon_links[]" type="text" value="" placeholder="http://" class="add" /></p></div></div>').insertBefore('.notice_custom_icons_premium');
1553
- //SFSI(".custom-links").append(' <div class="row sfsiICON_' + s.key + ' cm_lnk"> <h2 class="custom"> <span class="customstep2-img"> <img src="' + s.img_path + "?" + d.getTime() + '" style="border-radius:48%" /> </span> <span class="sfsiCtxt">Custom ' + e + '</span> </h2> <div class="inr_cont "><p>Where do you want this icon to link to?</p> <p class="radio_section fb_url custom_section sfsiICON_' + s.key + '" ><label>Link :</label><input file-id="' + s.key + '" name="sfsi_CustomIcon_links[]" type="text" value="" placeholder="http://" class="add" /></p></div></div>');
1554
- SFSI(".notice_custom_icons_premium").show();
1555
- SFSI("#c" + s.key).append('<input type="hidden" name="nonce" value="' + nonce + '">');
1556
- var o = SFSI("div.custom_m").find("div.mouseover_field").length;
1557
- SFSI("div.custom_m").append(0 == o % 2 ? '<div class="clear"> </div> <div class="mouseover_field custom_section sfsiICON_' + s.key + '"><label>Custom ' + e + ':</label><input name="sfsi_custom_MouseOverTexts[]" value="" type="text" file-id="' + s.key + '" /></div>' : '<div class="cHover " ><div class="mouseover_field custom_section sfsiICON_' + s.key + '"><label>Custom ' + e + ':</label><input name="sfsi_custom_MouseOverTexts[]" value="" type="text" file-id="' + s.key + '" /></div>'),
1558
- SFSI("ul.share_icon_order").append('<li class="custom_iconOrder sfsiICON_' + s.key + '" data-index="" element-id="' + s.key + '" id=""><a href="#" title="Custom Icon" ><img src="' + s.img_path + '" alt="Linked In" class="sfcm"/></a></li>'),
1559
- SFSI("ul.sfsi_sample_icons").append('<li class="sfsiICON_' + s.key + '" element-id="' + s.key + '" ><div><img src="' + s.img_path + '" alt="Linked In" class="sfcm"/><span class="sfsi_Cdisplay">12k</span></div></li>'),
1560
- sfsi_update_index(), update_Sec5Iconorder(), sfsi_update_step1(), sfsi_update_step2(),
1561
- sfsi_update_step5(), SFSI(".upload-overlay").css("pointer-events", "auto"), sfsi_showPreviewCounts(),
1562
- afterLoad();
1563
- }
1564
- }
1565
-
1566
- function beforeIconSubmit(s) {
1567
- if (SFSI(".uperror").html("Uploading....."), window.File && window.FileReader && window.FileList && window.Blob) {
1568
- SFSI(s).val() || SFSI(".uperror").html("File is empty");
1569
- var i = s.files[0].size,
1570
- e = s.files[0].type;
1571
- switch (e) {
1572
- case "image/png":
1573
- case "image/gif":
1574
- case "image/jpeg":
1575
- case "image/pjpeg":
1576
- break;
1577
-
1578
- default:
1579
- return SFSI(".uperror").html("Unsupported file"), !1;
1580
- }
1581
- return i > 1048576 ? (SFSI(".uperror").html("Image should be less than 1 MB"), !1) : !0;
1582
- }
1583
- return !0;
1584
- }
1585
-
1586
- function bytesToSize(s) {
1587
- var i = ["Bytes", "KB", "MB", "GB", "TB"];
1588
- if (0 == s) return "0 Bytes";
1589
- var e = parseInt(Math.floor(Math.log(s) / Math.log(1024)));
1590
- return Math.round(s / Math.pow(1024, e), 2) + " " + i[e];
1591
- }
1592
-
1593
- function showErrorSuc(s, i, e) {
1594
- if ("error" == s) var t = "errorMsg";
1595
- else var t = "sucMsg";
1596
- return SFSI(".tab" + e + ">." + t).html(i), SFSI(".tab" + e + ">." + t).show(),
1597
- SFSI(".tab" + e + ">." + t).effect("highlight", {}, 5e3), setTimeout(function () {
1598
- SFSI("." + t).slideUp("slow");
1599
- }, 5e3), !1;
1600
- }
1601
-
1602
- function beForeLoad() {
1603
- SFSI(".loader-img").show(), SFSI(".save_button >a").html("Saving..."), SFSI(".save_button >a").css("pointer-events", "none");
1604
- }
1605
-
1606
- function afterLoad() {
1607
- SFSI("input").removeClass("inputError"), SFSI(".save_button >a").html("Save"), SFSI(".tab10>div.save_button >a").html("Save All Settings"),
1608
- SFSI(".save_button >a").css("pointer-events", "auto"), SFSI(".save_button >a").removeAttr("onclick"),
1609
- SFSI(".loader-img").hide();
1610
- }
1611
-
1612
- function sfsi_make_popBox() {
1613
- var s = 0;
1614
- SFSI(".sfsi_sample_icons >li").each(function () {
1615
- "none" != SFSI(this).css("display") && (s = 1);
1616
- }),
1617
- 0 == s ? SFSI(".sfsi_Popinner").hide() : SFSI(".sfsi_Popinner").show(),
1618
- "" != SFSI('input[name="sfsi_popup_text"]').val() ? (SFSI(".sfsi_Popinner >h2").html(SFSI('input[name="sfsi_popup_text"]').val()),
1619
- SFSI(".sfsi_Popinner >h2").show()) : SFSI(".sfsi_Popinner >h2").hide(), SFSI(".sfsi_Popinner").css({
1620
- "border-color": SFSI('input[name="sfsi_popup_border_color"]').val(),
1621
- "border-width": SFSI('input[name="sfsi_popup_border_thickness"]').val(),
1622
- "border-style": "solid"
1623
- }),
1624
- SFSI(".sfsi_Popinner").css("background-color", SFSI('input[name="sfsi_popup_background_color"]').val()),
1625
- SFSI(".sfsi_Popinner h2").css("font-family", SFSI("#sfsi_popup_font").val()), SFSI(".sfsi_Popinner h2").css("font-style", SFSI("#sfsi_popup_fontStyle").val()),
1626
- SFSI(".sfsi_Popinner >h2").css("font-size", parseInt(SFSI('input[name="sfsi_popup_fontSize"]').val())),
1627
- SFSI(".sfsi_Popinner >h2").css("color", SFSI('input[name="sfsi_popup_fontColor"]').val() + " !important"),
1628
- "yes" == SFSI('input[name="sfsi_popup_border_shadow"]:checked').val() ? SFSI(".sfsi_Popinner").css("box-shadow", "12px 30px 18px #CCCCCC") : SFSI(".sfsi_Popinner").css("box-shadow", "none");
1629
- }
1630
-
1631
- function sfsi_stick_widget(s) {
1632
- 0 == initTop.length && (SFSI(".sfsi_widget").each(function (s) {
1633
- initTop[s] = SFSI(this).position().top;
1634
- }), console.log(initTop));
1635
- var i = SFSI(window).scrollTop(),
1636
- e = [],
1637
- t = [];
1638
- SFSI(".sfsi_widget").each(function (s) {
1639
- e[s] = SFSI(this).position().top, t[s] = SFSI(this);
1640
- });
1641
- var n = !1;
1642
- for (var o in e) {
1643
- var a = parseInt(o) + 1;
1644
- e[o] < i && e[a] > i && a < e.length ? (SFSI(t[o]).css({
1645
- position: "fixed",
1646
- top: s
1647
- }), SFSI(t[a]).css({
1648
- position: "",
1649
- top: initTop[a]
1650
- }), n = !0) : SFSI(t[o]).css({
1651
- position: "",
1652
- top: initTop[o]
1653
- });
1654
- }
1655
- if (!n) {
1656
- var r = e.length - 1,
1657
- c = -1;
1658
- e.length > 1 && (c = e.length - 2), initTop[r] < i ? (SFSI(t[r]).css({
1659
- position: "fixed",
1660
- top: s
1661
- }), c >= 0 && SFSI(t[c]).css({
1662
- position: "",
1663
- top: initTop[c]
1664
- })) : (SFSI(t[r]).css({
1665
- position: "",
1666
- top: initTop[r]
1667
- }), c >= 0 && e[c] < i);
1668
- }
1669
- }
1670
-
1671
- function sfsi_setCookie(s, i, e) {
1672
- var t = new Date();
1673
- t.setTime(t.getTime() + 1e3 * 60 * 60 * 24 * e);
1674
- var n = "expires=" + t.toGMTString();
1675
- document.cookie = s + "=" + i + "; " + n;
1676
- }
1677
-
1678
- function sfsfi_getCookie(s) {
1679
- for (var i = s + "=", e = document.cookie.split(";"), t = 0; t < e.length; t++) {
1680
- var n = e[t].trim();
1681
- if (0 == n.indexOf(i)) return n.substring(i.length, n.length);
1682
- }
1683
- return "";
1684
- }
1685
-
1686
- function sfsi_hideFooter() {}
1687
-
1688
- window.onerror = function () {},
1689
- SFSI = jQuery,
1690
- SFSI(window).on('load', function () {
1691
- SFSI("#sfpageLoad").fadeOut(2e3);
1692
- });
1693
-
1694
- //changes done {Monad}
1695
- function selectText(containerid) {
1696
- if (document.selection) {
1697
- var range = document.body.createTextRange();
1698
- range.moveToElementText(document.getElementById(containerid));
1699
- range.select();
1700
- } else if (window.getSelection()) {
1701
- var range = document.createRange();
1702
- range.selectNode(document.getElementById(containerid));
1703
- window.getSelection().removeAllRanges();
1704
- window.getSelection().addRange(range);
1705
- }
1706
- }
1707
-
1708
- function create_suscriber_form() {
1709
- //Popbox customization
1710
- "no" == SFSI('input[name="sfsi_form_adjustment"]:checked').val() ? SFSI(".sfsi_subscribe_Popinner").css({
1711
- "width": parseInt(SFSI('input[name="sfsi_form_width"]').val()),
1712
- "height": parseInt(SFSI('input[name="sfsi_form_height"]').val())
1713
- }) : SFSI(".sfsi_subscribe_Popinner").css({
1714
- "width": '',
1715
- "height": ''
1716
- });
1717
-
1718
- "yes" == SFSI('input[name="sfsi_form_adjustment"]:checked').val() ? SFSI(".sfsi_html > .sfsi_subscribe_Popinner").css({
1719
- "width": "100%"
1720
- }) : '';
1721
-
1722
- "yes" == SFSI('input[name="sfsi_form_border"]:checked').val() ? SFSI(".sfsi_subscribe_Popinner").css({
1723
- "border": SFSI('input[name="sfsi_form_border_thickness"]').val() + "px solid " + SFSI('input[name="sfsi_form_border_color"]').val()
1724
- }) : SFSI(".sfsi_subscribe_Popinner").css("border", "none");
1725
-
1726
- SFSI('input[name="sfsi_form_background"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").css("background-color", SFSI('input[name="sfsi_form_background"]').val())) : '';
1727
-
1728
- //Heading customization
1729
- SFSI('input[name="sfsi_form_heading_text"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner > form > h5").html(SFSI('input[name="sfsi_form_heading_text"]').val())) : SFSI(".sfsi_subscribe_Popinner > form > h5").html('');
1730
-
1731
- SFSI('#sfsi_form_heading_font').val() != "" ? (SFSI(".sfsi_subscribe_Popinner > form > h5").css("font-family", SFSI("#sfsi_form_heading_font").val())) : '';
1732
-
1733
- if (SFSI('#sfsi_form_heading_fontstyle').val() != 'bold') {
1734
- SFSI('#sfsi_form_heading_fontstyle').val() != "" ? (SFSI(".sfsi_subscribe_Popinner > form > h5").css("font-style", SFSI("#sfsi_form_heading_fontstyle").val())) : '';
1735
- SFSI(".sfsi_subscribe_Popinner > form > h5").css("font-weight", '');
1736
- } else {
1737
- SFSI('#sfsi_form_heading_fontstyle').val() != "" ? (SFSI(".sfsi_subscribe_Popinner > form > h5").css("font-weight", "bold")) : '';
1738
- SFSI(".sfsi_subscribe_Popinner > form > h5").css("font-style", '');
1739
- }
1740
-
1741
- SFSI('input[name="sfsi_form_heading_fontcolor"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner > form > h5").css("color", SFSI('input[name="sfsi_form_heading_fontcolor"]').val())) : '';
1742
-
1743
- SFSI('input[name="sfsi_form_heading_fontsize"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner > form > h5").css({
1744
- "font-size": parseInt(SFSI('input[name="sfsi_form_heading_fontsize"]').val())
1745
- })) : '';
1746
-
1747
- SFSI('#sfsi_form_heading_fontalign').val() != "" ? (SFSI(".sfsi_subscribe_Popinner > form > h5").css("text-align", SFSI("#sfsi_form_heading_fontalign").val())) : '';
1748
-
1749
- //Field customization
1750
- SFSI('input[name="sfsi_form_field_text"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').attr("placeholder", SFSI('input[name="sfsi_form_field_text"]').val())) : SFSI(".sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').attr("placeholder", '');
1751
-
1752
- SFSI('input[name="sfsi_form_field_text"]').val() != "" ? (SFSI(".sfsi_left_container > .sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').val(SFSI('input[name="sfsi_form_field_text"]').val())) : SFSI(".sfsi_left_container > .sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').val('');
1753
-
1754
- SFSI('input[name="sfsi_form_field_text"]').val() != "" ? (SFSI(".like_pop_box > .sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').val(SFSI('input[name="sfsi_form_field_text"]').val())) : SFSI(".like_pop_box > .sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').val('');
1755
-
1756
- SFSI('#sfsi_form_field_font').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("font-family", SFSI("#sfsi_form_field_font").val())) : '';
1757
-
1758
- if (SFSI('#sfsi_form_field_fontstyle').val() != "bold") {
1759
- SFSI('#sfsi_form_field_fontstyle').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("font-style", SFSI("#sfsi_form_field_fontstyle").val())) : '';
1760
- SFSI(".sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("font-weight", '');
1761
- } else {
1762
- SFSI('#sfsi_form_field_fontstyle').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("font-weight", 'bold')) : '';
1763
- SFSI(".sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("font-style", '');
1764
- }
1765
-
1766
- SFSI('input[name="sfsi_form_field_fontcolor"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("color", SFSI('input[name="sfsi_form_field_fontcolor"]').val())) : '';
1767
-
1768
- SFSI('input[name="sfsi_form_field_fontsize"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').css({
1769
- "font-size": parseInt(SFSI('input[name="sfsi_form_field_fontsize"]').val())
1770
- })) : '';
1771
-
1772
- SFSI('#sfsi_form_field_fontalign').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("text-align", SFSI("#sfsi_form_field_fontalign").val())) : '';
1773
-
1774
- //Button customization
1775
- SFSI('input[name="sfsi_form_button_text"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="subscribe"]').attr("value", SFSI('input[name="sfsi_form_button_text"]').val())) : '';
1776
-
1777
- SFSI('#sfsi_form_button_font').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="subscribe"]').css("font-family", SFSI("#sfsi_form_button_font").val())) : '';
1778
-
1779
- if (SFSI('#sfsi_form_button_fontstyle').val() != "bold") {
1780
- SFSI('#sfsi_form_button_fontstyle').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="subscribe"]').css("font-style", SFSI("#sfsi_form_button_fontstyle").val())) : '';
1781
- SFSI(".sfsi_subscribe_Popinner").find('input[name="subscribe"]').css("font-weight", '');
1782
- } else {
1783
- SFSI('#sfsi_form_button_fontstyle').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="subscribe"]').css("font-weight", 'bold')) : '';
1784
- SFSI(".sfsi_subscribe_Popinner").find('input[name="subscribe"]').css("font-style", '');
1785
- }
1786
-
1787
- SFSI('input[name="sfsi_form_button_fontcolor"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="subscribe"]').css("color", SFSI('input[name="sfsi_form_button_fontcolor"]').val())) : '';
1788
-
1789
- SFSI('input[name="sfsi_form_button_fontsize"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="subscribe"]').css({
1790
- "font-size": parseInt(SFSI('input[name="sfsi_form_button_fontsize"]').val())
1791
- })) : '';
1792
-
1793
- SFSI('#sfsi_form_button_fontalign').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="subscribe"]').css("text-align", SFSI("#sfsi_form_button_fontalign").val())) : '';
1794
-
1795
- SFSI('input[name="sfsi_form_button_background"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="subscribe"]').css("background-color", SFSI('input[name="sfsi_form_button_background"]').val())) : '';
1796
-
1797
- var innerHTML = SFSI(".sfsi_html > .sfsi_subscribe_Popinner").html();
1798
- var styleCss = SFSI(".sfsi_html > .sfsi_subscribe_Popinner").attr("style");
1799
- innerHTML = '<div style="' + styleCss + '">' + innerHTML + '</div>';
1800
- SFSI(".sfsi_subscription_html > xmp").html(innerHTML);
1801
-
1802
- /*var data = {
1803
- action:"getForm",
1804
- heading: SFSI('input[name="sfsi_form_heading_text"]').val(),
1805
- placeholder:SFSI('input[name="sfsi_form_field_text"]').val(),
1806
- button:SFSI('input[name="sfsi_form_button_text"]').val()
1807
- };
1808
- SFSI.ajax({
1809
- url:sfsi_icon_ajax_object.ajax_url,
1810
- type:"post",
1811
- data:data,
1812
- success:function(s) {
1813
- SFSI(".sfsi_subscription_html").html(s);
1814
- }
1815
- });*/
1816
- }
1817
-
1818
- var global_error = 0;
1819
- if (typeof SFSI != 'undefined') {
1820
-
1821
- function sfsi_dismiss_notice(btnClass, ajaxAction) {
1822
-
1823
- var btnClass = "." + btnClass;
1824
-
1825
- SFSI(document).on("click", btnClass, function () {
1826
-
1827
- SFSI.ajax({
1828
- url: sfsi_icon_ajax_object.ajax_url,
1829
- type: "post",
1830
- data: {
1831
- action: ajaxAction
1832
- },
1833
- success: function (e) {
1834
- if (false != e) {
1835
- SFSI(btnClass).parent().remove();
1836
- }
1837
- }
1838
- });
1839
- });
1840
- }
1841
- }
1842
-
1843
- SFSI(document).ready(function (s) {
1844
-
1845
- var arrDismiss = [
1846
-
1847
- {
1848
- "btnClass": "sfsi-notice-dismiss",
1849
- "action": "sfsi_dismiss_lang_notice"
1850
- },
1851
-
1852
- {
1853
- "btnClass": "sfsi-AddThis-notice-dismiss",
1854
- "action": "sfsi_dismiss_addThis_icon_notice"
1855
- },
1856
-
1857
- {
1858
- "btnClass": "sfsi_error_reporting_notice-dismiss",
1859
- "action": "sfsi_dismiss_error_reporting_notice"
1860
- }
1861
- ];
1862
-
1863
- SFSI.each(arrDismiss, function (key, valueObj) {
1864
- sfsi_dismiss_notice(valueObj.btnClass, valueObj.action);
1865
- });
1866
-
1867
- //changes done {Monad}
1868
- SFSI(".tab_3_icns").on("click", ".cstomskins_upload", function () {
1869
- SFSI(".cstmskins-overlay").show("slow", function () {
1870
- e = 0;
1871
- });
1872
- });
1873
- /*SFSI("#custmskin_clspop").live("click", function() {*/
1874
- SFSI(document).on("click", '#custmskin_clspop', function () {
1875
- SFSI_done();
1876
- SFSI(".cstmskins-overlay").hide("slow");
1877
- });
1878
-
1879
- create_suscriber_form();
1880
- SFSI('input[name="sfsi_form_heading_text"], input[name="sfsi_form_border_thickness"], input[name="sfsi_form_height"], input[name="sfsi_form_width"], input[name="sfsi_form_heading_fontsize"], input[name="sfsi_form_field_text"], input[name="sfsi_form_field_fontsize"], input[name="sfsi_form_button_text"], input[name="sfsi_form_button_fontsize"]').on("keyup", create_suscriber_form);
1881
-
1882
- SFSI('input[name="sfsi_form_border_color"], input[name="sfsi_form_background"] ,input[name="sfsi_form_heading_fontcolor"], input[name="sfsi_form_field_fontcolor"] ,input[name="sfsi_form_button_fontcolor"],input[name="sfsi_form_button_background"]').on("focus", create_suscriber_form);
1883
-
1884
- SFSI("#sfsi_form_heading_font, #sfsi_form_heading_fontstyle, #sfsi_form_heading_fontalign, #sfsi_form_field_font, #sfsi_form_field_fontstyle, #sfsi_form_field_fontalign, #sfsi_form_button_font, #sfsi_form_button_fontstyle, #sfsi_form_button_fontalign").on("change", create_suscriber_form);
1885
-
1886
- /*SFSI(".radio").live("click", function() {*/
1887
- SFSI(document).on("click", '.radio', function () {
1888
-
1889
- var s = SFSI(this).parent().find("input:radio:first");
1890
-
1891
- var inputName = s.attr("name");
1892
- var inputChecked = s.attr("checked");
1893
-
1894
- switch (inputName) {
1895
- case 'sfsi_form_adjustment':
1896
- if (s.val() == 'no')
1897
- s.parents(".row_tab").next(".row_tab").show("fast");
1898
- else
1899
- s.parents(".row_tab").next(".row_tab").hide("fast");
1900
- create_suscriber_form()
1901
- break;
1902
- case 'sfsi_form_border':
1903
- if (s.val() == 'yes')
1904
- s.parents(".row_tab").next(".row_tab").show("fast");
1905
- else
1906
- s.parents(".row_tab").next(".row_tab").hide("fast");
1907
- create_suscriber_form()
1908
- break;
1909
- case 'sfsi_icons_suppress_errors':
1910
-
1911
- SFSI('input[name="sfsi_icons_suppress_errors"]').removeAttr('checked');
1912
-
1913
- if (s.val() == 'yes')
1914
- SFSI('input[name="sfsi_icons_suppress_errors"][value="yes"]').attr('checked', 'true');
1915
- else
1916
- SFSI('input[name="sfsi_icons_suppress_errors"][value="no"]').attr('checked', 'true');
1917
- break;
1918
-
1919
- default:
1920
- case 'sfsi_responsive_icons_end_post':
1921
- if("yes" == s.val()){
1922
- jQuery('.sfsi_responsive_icon_option_li.sfsi_responsive_show').show();
1923
- }else{
1924
- jQuery('.sfsi_responsive_icon_option_li.sfsi_responsive_show').hide();
1925
- }
1926
- }
1927
- });
1928
-
1929
- SFSI('#sfsi_form_border_color').wpColorPicker({
1930
- defaultColor: false,
1931
- change: function (event, ui) {
1932
- create_suscriber_form()
1933
- },
1934
- clear: function () {
1935
- create_suscriber_form()
1936
- },
1937
- hide: true,
1938
- palettes: true
1939
- }),
1940
- SFSI('#sfsi_form_background').wpColorPicker({
1941
- defaultColor: false,
1942
- change: function (event, ui) {
1943
- create_suscriber_form()
1944
- },
1945
- clear: function () {
1946
- create_suscriber_form()
1947
- },
1948
- hide: true,
1949
- palettes: true
1950
- }),
1951
- SFSI('#sfsi_form_heading_fontcolor').wpColorPicker({
1952
- defaultColor: false,
1953
- change: function (event, ui) {
1954
- create_suscriber_form()
1955
- },
1956
- clear: function () {
1957
- create_suscriber_form()
1958
- },
1959
- hide: true,
1960
- palettes: true
1961
- }),
1962
- SFSI('#sfsi_form_button_fontcolor').wpColorPicker({
1963
- defaultColor: false,
1964
- change: function (event, ui) {
1965
- create_suscriber_form()
1966
- },
1967
- clear: function () {
1968
- create_suscriber_form()
1969
- },
1970
- hide: true,
1971
- palettes: true
1972
- }),
1973
- SFSI('#sfsi_form_button_background').wpColorPicker({
1974
- defaultColor: false,
1975
- change: function (event, ui) {
1976
- create_suscriber_form()
1977
- },
1978
- clear: function () {
1979
- create_suscriber_form()
1980
- },
1981
- hide: true,
1982
- palettes: true
1983
- });
1984
- //changes done {Monad}
1985
-
1986
- function i() {
1987
- SFSI(".uperror").html(""), afterLoad();
1988
- var s = SFSI('input[name="' + SFSI("#upload_id").val() + '"]');
1989
- s.removeAttr("checked");
1990
- var i = SFSI(s).parent().find("span:first");
1991
- return SFSI(i).css("background-position", "0px 0px"), SFSI(".upload-overlay").hide("slow"),
1992
- !1;
1993
- }
1994
- SFSI("#accordion").accordion({
1995
- collapsible: !0,
1996
- active: !1,
1997
- heightStyle: "content",
1998
- event: "click",
1999
- beforeActivate: function (s, i) {
2000
- if (i.newHeader[0]) var e = i.newHeader,
2001
- t = e.next(".ui-accordion-content");
2002
- else var e = i.oldHeader,
2003
- t = e.next(".ui-accordion-content");
2004
- var n = "true" == e.attr("aria-selected");
2005
- return e.toggleClass("ui-corner-all", n).toggleClass("accordion-header-active ui-state-active ui-corner-top", !n).attr("aria-selected", (!n).toString()),
2006
- e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", n).toggleClass("ui-icon-triangle-1-s", !n),
2007
- t.toggleClass("accordion-content-active", !n), n ? t.slideUp() : t.slideDown(), !1;
2008
- }
2009
- }),
2010
- SFSI("#accordion1").accordion({
2011
- collapsible: !0,
2012
- active: !1,
2013
- heightStyle: "content",
2014
- event: "click",
2015
- beforeActivate: function (s, i) {
2016
- if (i.newHeader[0]) var e = i.newHeader,
2017
- t = e.next(".ui-accordion-content");
2018
- else var e = i.oldHeader,
2019
- t = e.next(".ui-accordion-content");
2020
- var n = "true" == e.attr("aria-selected");
2021
- return e.toggleClass("ui-corner-all", n).toggleClass("accordion-header-active ui-state-active ui-corner-top", !n).attr("aria-selected", (!n).toString()),
2022
- e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", n).toggleClass("ui-icon-triangle-1-s", !n),
2023
- t.toggleClass("accordion-content-active", !n), n ? t.slideUp() : t.slideDown(), !1;
2024
- }
2025
- }),
2026
-
2027
- SFSI("#accordion2").accordion({
2028
- collapsible: !0,
2029
- active: !1,
2030
- heightStyle: "content",
2031
- event: "click",
2032
- beforeActivate: function (s, i) {
2033
- if (i.newHeader[0]) var e = i.newHeader,
2034
- t = e.next(".ui-accordion-content");
2035
- else var e = i.oldHeader,
2036
- t = e.next(".ui-accordion-content");
2037
- var n = "true" == e.attr("aria-selected");
2038
- return e.toggleClass("ui-corner-all", n).toggleClass("accordion-header-active ui-state-active ui-corner-top", !n).attr("aria-selected", (!n).toString()),
2039
- e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", n).toggleClass("ui-icon-triangle-1-s", !n),
2040
- t.toggleClass("accordion-content-active", !n), n ? t.slideUp() : t.slideDown(), !1;
2041
- }
2042
- }),
2043
- SFSI(".closeSec").on("click", function () {
2044
- var s = !0,
2045
- i = SFSI(this).closest("div.ui-accordion-content").prev("h3.ui-accordion-header").first(),
2046
- e = SFSI(this).closest("div.ui-accordion-content").first();
2047
- i.toggleClass("ui-corner-all", s).toggleClass("accordion-header-active ui-state-active ui-corner-top", !s).attr("aria-selected", (!s).toString()),
2048
- i.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", s).toggleClass("ui-icon-triangle-1-s", !s),
2049
- e.toggleClass("accordion-content-active", !s), s ? e.slideUp() : e.slideDown();
2050
- }),
2051
- SFSI(document).click(function (s) {
2052
- var i = SFSI(".sfsi_FrntInner_chg"),
2053
- e = SFSI(".sfsi_wDiv"),
2054
- t = SFSI("#at15s");
2055
- i.is(s.target) || 0 !== i.has(s.target).length || e.is(s.target) || 0 !== e.has(s.target).length || t.is(s.target) || 0 !== t.has(s.target).length || i.fadeOut();
2056
- }),
2057
- SFSI('#sfsi_popup_background_color').wpColorPicker({
2058
- defaultColor: false,
2059
- change: function (event, ui) {
2060
- sfsi_make_popBox()
2061
- },
2062
- clear: function () {
2063
- sfsi_make_popBox()
2064
- },
2065
- hide: true,
2066
- palettes: true
2067
- }),
2068
- SFSI('#sfsi_popup_border_color').wpColorPicker({
2069
- defaultColor: false,
2070
- change: function (event, ui) {
2071
- sfsi_make_popBox()
2072
- },
2073
- clear: function () {
2074
- sfsi_make_popBox()
2075
- },
2076
- hide: true,
2077
- palettes: true
2078
- }),
2079
- SFSI('#sfsi_popup_fontColor').wpColorPicker({
2080
- defaultColor: false,
2081
- change: function (event, ui) {
2082
- sfsi_make_popBox()
2083
- },
2084
- clear: function () {
2085
- sfsi_make_popBox()
2086
- },
2087
- hide: true,
2088
- palettes: true
2089
- }),
2090
- SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseover(function () {
2091
- SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg");
2092
- }),
2093
- SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseleave(function () {
2094
- SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/linkedIn.svg");
2095
- }),
2096
- SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseover(function () {
2097
- SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/youtube_hover.svg");
2098
- }),
2099
- SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseleave(function () {
2100
- SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/youtube.svg");
2101
- }),
2102
- SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseover(function () {
2103
- SFSI(this).css("opacity", "0.9");
2104
- }),
2105
- SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseleave(function () {
2106
- SFSI(this).css("opacity", "1");
2107
- }),
2108
- SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseover(function () {
2109
- SFSI(this).css("opacity", "0.9");
2110
- }),
2111
- SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseleave(function () {
2112
- SFSI(this).css("opacity", "1");
2113
- }),
2114
- SFSI("#sfsi_save1").on("click", function () {
2115
- // console.log('save1',sfsi_update_step1());
2116
- sfsi_update_step1() && sfsicollapse(this);
2117
- }),
2118
- SFSI("#sfsi_save2").on("click", function () {
2119
- sfsi_update_step2() && sfsicollapse(this);
2120
- }),
2121
- SFSI("#sfsi_save3").on("click", function () {
2122
- sfsi_update_step3() && sfsicollapse(this);
2123
- }),
2124
- SFSI("#sfsi_save4").on("click", function () {
2125
- sfsi_update_step4() && sfsicollapse(this);
2126
- }),
2127
- SFSI("#sfsi_save5").on("click", function () {
2128
- sfsi_update_step5() && sfsicollapse(this);
2129
- }),
2130
- SFSI("#sfsi_save6").on("click", function () {
2131
- sfsi_update_step6() && sfsicollapse(this);
2132
- }),
2133
- SFSI("#sfsi_save7").on("click", function () {
2134
- sfsi_update_step7() && sfsicollapse(this);
2135
- }),
2136
- SFSI("#sfsi_save8").on("click", function () {
2137
- sfsi_update_step8() && sfsicollapse(this);
2138
- }),
2139
- SFSI("#sfsi_save9").on("click", function () {
2140
- sfsi_update_step9() && sfsicollapse(this);
2141
- }),
2142
- SFSI("#save_all_settings").on("click", function () {
2143
- return SFSI("#save_all_settings").text("Saving.."), SFSI(".save_button >a").css("pointer-events", "none"),
2144
- sfsi_update_step1(), sfsi_update_step8(), 1 == global_error ? (showErrorSuc("error", 'Some Selection error in "Which icons do you want to show on your site?" tab.', 8),
2145
- global_error = 0, !1) : (sfsi_update_step2(), 1 == global_error ? (showErrorSuc("error", 'Some Selection error in "What do you want the icons to do?" tab.', 8),
2146
- global_error = 0, !1) : (sfsi_update_step3(), 1 == global_error ? (showErrorSuc("error", 'Some Selection error in "What design & animation do you want to give your icons?" tab.', 8),
2147
- global_error = 0, !1) : (sfsi_update_step4(), 1 == global_error ? (showErrorSuc("error", 'Some Selection error in "Do you want to display "counts" next to your icons?" tab.', 8),
2148
- global_error = 0, !1) : (sfsi_update_step5(), 1 == global_error ? (showErrorSuc("error", 'Some Selection error in "Any other wishes for your main icons?" tab.', 8),
2149
- global_error = 0, !1) : (sfsi_update_step6(), 1 == global_error ? (showErrorSuc("error", 'Some Selection error in "Do you want to display icons at the end of every post?" tab.', 8),
2150
- global_error = 0, !1) : (sfsi_update_step7(), 1 == global_error ? (showErrorSuc("error", 'Some Selection error in "Do you want to display a pop-up, asking people to subscribe?" tab.', 8),
2151
- /*global_error = 0, !1) :void (0 == global_error && showErrorSuc("success", 'Saved! Now go to the <a href="widgets.php">widget</a> area and place the widget into your sidebar (if not done already)', 8))))))));*/
2152
- global_error = 0, !1) : void(0 == global_error && showErrorSuc("success", '', 8))))))));
2153
- }),
2154
- /*SFSI(".fileUPInput").live("change", function() {*/
2155
- SFSI(document).on("change", '.fileUPInput', function () {
2156
- beForeLoad(), beforeIconSubmit(this) && (SFSI(".upload-overlay").css("pointer-events", "none"),
2157
- SFSI("#customIconFrm").ajaxForm({
2158
- dataType: "json",
2159
- success: afterIconSuccess,
2160
- resetForm: !0
2161
- }).submit());
2162
- }),
2163
- SFSI(".pop-up").on("click", function () {
2164
- ("fbex-s2" == SFSI(this).attr("data-id") || "linkex-s2" == SFSI(this).attr("data-id")) && (SFSI("." + SFSI(this).attr("data-id")).hide(),
2165
- SFSI("." + SFSI(this).attr("data-id")).css("opacity", "1"), SFSI("." + SFSI(this).attr("data-id")).css("z-index", "1000")),
2166
- SFSI("." + SFSI(this).attr("data-id")).show("slow");
2167
- }),
2168
- /*SFSI("#close_popup").live("click", function() {*/
2169
- SFSI(document).on("click", '#close_popup', function () {
2170
- SFSI(".read-overlay").hide("slow");
2171
- });
2172
-
2173
- var e = 0;
2174
- SFSI(".icn_listing").on("click", ".checkbox", function () {
2175
- if (1 == e) return !1;
2176
- "yes" == SFSI(this).attr("dynamic_ele") && (s = SFSI(this).parent().find("input:checkbox:first"),
2177
- s.is(":checked") ? SFSI(s).attr("checked", !1) : SFSI(s).attr("checked", !0)), s = SFSI(this).parent().find("input:checkbox:first"),
2178
- "yes" == SFSI(s).attr("isNew") && ("0px 0px" == SFSI(this).css("background-position") ? (SFSI(s).attr("checked", !0),
2179
- SFSI(this).css("background-position", "0px -36px")) : (SFSI(s).removeAttr("checked", !0),
2180
- SFSI(this).css("background-position", "0px 0px")));
2181
- var s = SFSI(this).parent().find("input:checkbox:first");
2182
- if (s.is(":checked") && "cusotm-icon" == s.attr("element-type")) SFSI(".fileUPInput").attr("name", "custom_icons[]"),
2183
- SFSI(".upload-overlay").show("slow", function () {
2184
- e = 0;
2185
- }), SFSI("#upload_id").val(s.attr("name"));
2186
- else if (!s.is(":checked") && "cusotm-icon" == s.attr("element-type")) return s.attr("ele-type") ? (SFSI(this).attr("checked", !0),
2187
- SFSI(this).css("background-position", "0px -36px"), e = 0, !1) : confirm("Are you sure want to delete this Icon..?? ") ? "suc" == sfsi_delete_CusIcon(this, s) ? (s.attr("checked", !1),
2188
- SFSI(this).css("background-position", "0px 0px"), e = 0, !1) : (e = 0, !1) : (s.attr("checked", !0),
2189
- SFSI(this).css("background-position", "0px -36px"), e = 0, !1);
2190
- }),
2191
- SFSI(".icn_listing").on("click", ".checkbox", function () {
2192
- checked = SFSI(this).parent().find("input:checkbox:first"), "sfsi_email_display" != checked.attr("name") || checked.is(":checked") || SFSI(".demail-1").show("slow");
2193
- }),
2194
- SFSI("#deac_email2").on("click", function () {
2195
- SFSI(".demail-1").hide("slow"), SFSI(".demail-2").show("slow");
2196
- }),
2197
- SFSI("#deac_email3").on("click", function () {
2198
- SFSI(".demail-2").hide("slow"), SFSI(".demail-3").show("slow");
2199
- }),
2200
- SFSI(".hideemailpop").on("click", function () {
2201
- SFSI('input[name="sfsi_email_display"]').attr("checked", !0), SFSI('input[name="sfsi_email_display"]').parent().find("span:first").css("background-position", "0px -36px"),
2202
- SFSI(".demail-1").hide("slow"), SFSI(".demail-2").hide("slow"), SFSI(".demail-3").hide("slow");
2203
- }),
2204
- SFSI(".hidePop").on("click", function () {
2205
- SFSI(".demail-1").hide("slow"), SFSI(".demail-2").hide("slow"), SFSI(".demail-3").hide("slow");
2206
- }),
2207
- SFSI(".activate_footer").on("click", function () {
2208
- var nonce = SFSI(this).attr("data-nonce");
2209
- SFSI(this).text("activating....");
2210
- var s = {
2211
- action: "activateFooter",
2212
- nonce: nonce
2213
- };
2214
- SFSI.ajax({
2215
- url: sfsi_icon_ajax_object.ajax_url,
2216
- type: "post",
2217
- data: s,
2218
- dataType: "json",
2219
- success: function (s) {
2220
- if (s.res == "wrong_nonce") {
2221
- SFSI(".activate_footer").css("font-size", "18px");
2222
- SFSI(".activate_footer").text("Unauthorised Request, Try again after refreshing page");
2223
- } else {
2224
- "success" == s.res && (SFSI(".demail-1").hide("slow"), SFSI(".demail-2").hide("slow"),
2225
- SFSI(".demail-3").hide("slow"), SFSI(".activate_footer").text("Ok, activate link"));
2226
- }
2227
- }
2228
- });
2229
- }),
2230
- SFSI(".sfsi_removeFooter").on("click", function () {
2231
- var nonce = SFSI(this).attr("data-nonce");
2232
- SFSI(this).text("working....");
2233
- var s = {
2234
- action: "removeFooter",
2235
- nonce: nonce
2236
- };
2237
- SFSI.ajax({
2238
- url: sfsi_icon_ajax_object.ajax_url,
2239
- type: "post",
2240
- data: s,
2241
- dataType: "json",
2242
- success: function (s) {
2243
- if (s.res == "wrong_nonce") {
2244
- SFSI(".sfsi_removeFooter").text("Unauthorised Request, Try again after refreshing page");
2245
- } else {
2246
- "success" == s.res && (SFSI(".sfsi_removeFooter").fadeOut("slow"), SFSI(".sfsi_footerLnk").fadeOut("slow"));
2247
- }
2248
- }
2249
- });
2250
- }),
2251
- /*SFSI(".radio").live("click", function() {*/
2252
- SFSI(document).on("click", '.radio', function () {
2253
- var s = SFSI(this).parent().find("input:radio:first");
2254
- "sfsi_display_counts" == s.attr("name") && sfsi_show_counts();
2255
- }),
2256
- SFSI("#close_Uploadpopup").on("click", i), /*SFSI(".radio").live("click", function() {*/ SFSI(document).on("click", '.radio', function () {
2257
- var s = SFSI(this).parent().find("input:radio:first");
2258
- "sfsi_show_Onposts" == s.attr("name") && sfsi_show_OnpostsDisplay();
2259
- }),
2260
- sfsi_show_OnpostsDisplay(), sfsi_depened_sections(), sfsi_show_counts(), sfsi_showPreviewCounts(),
2261
- SFSI(".share_icon_order").sortable({
2262
- update: function () {
2263
- SFSI(".share_icon_order li").each(function () {
2264
- SFSI(this).attr("data-index", SFSI(this).index() + 1);
2265
- });
2266
- },
2267
- revert: !0
2268
- }),
2269
-
2270
- //*------------------------------- Sharing text & pcitures checkbox for showing section in Page, Post STARTS -------------------------------------//
2271
-
2272
- SFSI(document).on("click", '.checkbox', function () {
2273
-
2274
- var s = SFSI(this).parent().find("input:checkbox:first");
2275
- var backgroundPos = jQuery(this).css('background-position').split(" ");
2276
- var xPos = backgroundPos[0],
2277
- yPos = backgroundPos[1];
2278
-
2279
- var inputName = s.attr('name');
2280
- var inputChecked = s.attr("checked");
2281
-
2282
- switch (inputName) {
2283
-
2284
- case "sfsi_custom_social_hide":
2285
-
2286
- var val = (yPos == "0px") ? "no" : "yes";
2287
- SFSI('input[name="sfsi_custom_social_hide"]').val(val);
2288
-
2289
- break;
2290
-
2291
- case "sfsi_show_via_widget":
2292
- case "sfsi_show_via_widget":
2293
- case "sfsi_show_via_afterposts":
2294
- case "sfsi_custom_social_hide":
2295
-
2296
- var val = (yPos == "0px") ? "no" : "yes";
2297
- SFSI('input[name="' + s.attr('name') + '"]').val(val);
2298
-
2299
- break;
2300
-
2301
- case 'sfsi_mouseOver':
2302
-
2303
- var elem = SFSI('input[name="' + inputName + '"]');
2304
-
2305
- var togglelem = SFSI('.mouse-over-effects');
2306
-
2307
- if (inputChecked) {
2308
- togglelem.removeClass('hide').addClass('show');
2309
- } else {
2310
- togglelem.removeClass('show').addClass('hide');
2311
- }
2312
-
2313
- break;
2314
- case 'sfsi_responsive_facebook_display':
2315
- if(inputChecked){
2316
- SFSI('.sfsi_responsive_icon_facebook_container').parents('a').show();
2317
- var icon= inputName.replace('sfsi_responsive_','').replace('_display','');
2318
- if(SFSI('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val()!=="Fully responsive"){
2319
- window.sfsi_fittext_shouldDisplay=true;
2320
- jQuery('.sfsi_responsive_icon_preview a').each(function(index,a_container){
2321
- if(jQuery(a_container).css('display')!=="none"){
2322
- sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2323
- }
2324
- })
2325
- }
2326
- }else{
2327
-
2328
- SFSI('.sfsi_responsive_icon_facebook_container').parents('a').hide();
2329
- if(SFSI('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val()!=="Fully responsive"){
2330
- window.sfsi_fittext_shouldDisplay=true;
2331
- jQuery('.sfsi_responsive_icon_preview a').each(function(index,a_container){
2332
- if(jQuery(a_container).css('display')!=="none"){
2333
- sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2334
- }
2335
- })
2336
- }
2337
- }
2338
- break;
2339
- case 'sfsi_responsive_Twitter_display':
2340
- if(inputChecked){
2341
- SFSI('.sfsi_responsive_icon_twitter_container').parents('a').show();
2342
- var icon= inputName.replace('sfsi_responsive_','').replace('_display','');
2343
- if(SFSI('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val()!=="Fully responsive"){
2344
- window.sfsi_fittext_shouldDisplay=true;
2345
- jQuery('.sfsi_responsive_icon_preview a').each(function(index,a_container){
2346
- if(jQuery(a_container).css('display')!=="none"){
2347
- sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2348
- }
2349
- })
2350
- }
2351
- }else{
2352
- SFSI('.sfsi_responsive_icon_twitter_container').parents('a').hide();
2353
- if(SFSI('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val()!=="Fully responsive"){
2354
- window.sfsi_fittext_shouldDisplay=true;
2355
- jQuery('.sfsi_responsive_icon_preview a').each(function(index,a_container){
2356
- if(jQuery(a_container).css('display')!=="none"){
2357
- sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2358
- }
2359
- })
2360
- }
2361
- }
2362
- break;
2363
- case 'sfsi_responsive_Follow_display':
2364
- if(inputChecked){
2365
- SFSI('.sfsi_responsive_icon_follow_container').parents('a').show();
2366
- var icon= inputName.replace('sfsi_responsive_','').replace('_display','');
2367
- }else{
2368
- SFSI('.sfsi_responsive_icon_follow_container').parents('a').hide();
2369
- }
2370
- window.sfsi_fittext_shouldDisplay=true;
2371
- jQuery('.sfsi_responsive_icon_preview a').each(function(index,a_container){
2372
- if(jQuery(a_container).css('display')!=="none"){
2373
- sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2374
- }
2375
- })
2376
- break;
2377
- }
2378
-
2379
- });
2380
-
2381
- //*------------------------------- Sharing text & pcitures checkbox for showing section in Page, Post CLOSES -------------------------------------//
2382
-
2383
- SFSI(document).on("click", '.radio', function () {
2384
-
2385
- var s = SFSI(this).parent().find("input:radio:first");
2386
-
2387
- switch (s.attr("name")) {
2388
-
2389
- case 'sfsi_mouseOver_effect_type':
2390
-
2391
- var _val = s.val();
2392
- var _name = s.attr("name");
2393
-
2394
- if ('same_icons' == _val) {
2395
- SFSI('.same_icons_effects').removeClass('hide').addClass('show');
2396
- SFSI('.other_icons_effects_options').removeClass('show').addClass('hide');
2397
- } else if ('other_icons' == _val) {
2398
- SFSI('.same_icons_effects').removeClass('show').addClass('hide');
2399
- SFSI('.other_icons_effects_options').removeClass('hide').addClass('show');
2400
- }
2401
-
2402
- break;
2403
- }
2404
-
2405
- });
2406
-
2407
- SFSI(document).on("click", '.radio', function () {
2408
-
2409
- var s = SFSI(this).parent().find("input:radio:first");
2410
- "sfsi_email_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_email_countsDisplay"]').prop("checked", !0),
2411
- SFSI('input[name="sfsi_email_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
2412
- "manual" == SFSI("input[name='sfsi_email_countsFrom']:checked").val() ? SFSI("input[name='sfsi_email_manualCounts']").slideDown() : SFSI("input[name='sfsi_email_manualCounts']").slideUp()),
2413
-
2414
- "sfsi_facebook_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_facebook_countsDisplay"]').prop("checked", !0),
2415
- SFSI('input[name="sfsi_facebook_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
2416
- "mypage" == SFSI("input[name='sfsi_facebook_countsFrom']:checked").val() ? (SFSI("input[name='sfsi_facebook_mypageCounts']").slideDown(), SFSI(".sfsi_fbpgidwpr").slideDown()) : (SFSI("input[name='sfsi_facebook_mypageCounts']").slideUp(), SFSI(".sfsi_fbpgidwpr").slideUp()),
2417
-
2418
- "manual" == SFSI("input[name='sfsi_facebook_countsFrom']:checked").val() ? SFSI("input[name='sfsi_facebook_manualCounts']").slideDown() : SFSI("input[name='sfsi_facebook_manualCounts']").slideUp()),
2419
-
2420
- "sfsi_facebook_countsFrom" == s.attr("name") && (("mypage" == SFSI("input[name='sfsi_facebook_countsFrom']:checked").val() || "likes" == SFSI("input[name='sfsi_facebook_countsFrom']:checked").val()) ? (SFSI(".sfsi_facebook_pagedeasc").slideDown()) : (SFSI(".sfsi_facebook_pagedeasc").slideUp())),
2421
-
2422
- "sfsi_twitter_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_twitter_countsDisplay"]').prop("checked", !0),
2423
- SFSI('input[name="sfsi_twitter_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
2424
- "manual" == SFSI("input[name='sfsi_twitter_countsFrom']:checked").val() ? (SFSI("input[name='sfsi_twitter_manualCounts']").slideDown(),
2425
- SFSI(".tw_follow_options").slideUp()) : (SFSI("input[name='sfsi_twitter_manualCounts']").slideUp(),
2426
- SFSI(".tw_follow_options").slideDown())),
2427
-
2428
-
2429
- "sfsi_linkedIn_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_linkedIn_countsDisplay"]').prop("checked", !0),
2430
- SFSI('input[name="sfsi_linkedIn_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
2431
- "manual" == SFSI("input[name='sfsi_linkedIn_countsFrom']:checked").val() ? (SFSI("input[name='sfsi_linkedIn_manualCounts']").slideDown(),
2432
- SFSI(".linkedIn_options").slideUp()) : (SFSI("input[name='sfsi_linkedIn_manualCounts']").slideUp(),
2433
- SFSI(".linkedIn_options").slideDown())),
2434
-
2435
- "sfsi_youtube_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_youtube_countsDisplay"]').prop("checked", !0),
2436
- SFSI('input[name="sfsi_youtube_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
2437
- "manual" == SFSI("input[name='sfsi_youtube_countsFrom']:checked").val() ? (SFSI("input[name='sfsi_youtube_manualCounts']").slideDown(),
2438
- SFSI(".youtube_options").slideUp()) : (SFSI("input[name='sfsi_youtube_manualCounts']").slideUp(),
2439
- SFSI(".youtube_options").slideDown())), "sfsi_pinterest_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_pinterest_countsDisplay"]').prop("checked", !0),
2440
- SFSI('input[name="sfsi_pinterest_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
2441
- "manual" == SFSI("input[name='sfsi_pinterest_countsFrom']:checked").val() ? (SFSI("input[name='sfsi_pinterest_manualCounts']").slideDown(),
2442
- SFSI(".pin_options").slideUp()) : SFSI("input[name='sfsi_pinterest_manualCounts']").slideUp()),
2443
-
2444
- "sfsi_instagram_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_instagram_countsDisplay"]').prop("checked", !0),
2445
- SFSI('input[name="sfsi_instagram_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
2446
- "manual" == SFSI("input[name='sfsi_instagram_countsFrom']:checked").val() ? (SFSI("input[name='sfsi_instagram_manualCounts']").slideDown(),
2447
- SFSI(".instagram_userLi").slideUp()) : (SFSI("input[name='sfsi_instagram_manualCounts']").slideUp(),
2448
- SFSI(".instagram_userLi").slideDown()));
2449
-
2450
- }),
2451
-
2452
- sfsi_make_popBox(),
2453
-
2454
- SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("keyup", sfsi_make_popBox),
2455
- SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("focus", sfsi_make_popBox),
2456
-
2457
- SFSI("#sfsi_popup_font ,#sfsi_popup_fontStyle").on("change", sfsi_make_popBox),
2458
-
2459
- /*SFSI(".radio").live("click", function(){*/
2460
- SFSI(document).on("click", '.radio', function () {
2461
-
2462
- var s = SFSI(this).parent().find("input:radio:first");
2463
-
2464
- if ("sfsi_icons_floatPosition" == s.attr("name")) {
2465
- SFSI('input[name="sfsi_icons_floatPosition"]').removeAttr("checked");
2466
- s.attr("checked", true);
2467
- }
2468
-
2469
- if ("sfsi_disable_floaticons" == s.attr("name")) {
2470
- SFSI('input[name="sfsi_disable_floaticons"]').removeAttr("checked");
2471
- s.attr("checked", true);
2472
- }
2473
-
2474
- "sfsi_popup_border_shadow" == s.attr("name") && sfsi_make_popBox();
2475
- }), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI("img.sfsi_wicon").on("click", function (s) {
2476
- s.stopPropagation();
2477
- var i = SFSI("#sfsi_floater_sec").val();
2478
- SFSI("div.sfsi_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide(),
2479
- SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index", "0"),
2480
- SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()),
2481
- SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
2482
- "z-index": "999"
2483
- }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
2484
- opacity: 1,
2485
- "z-index": 10
2486
- }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
2487
- SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
2488
- opacity: 1,
2489
- "z-index": 10
2490
- }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
2491
- SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
2492
- opacity: 1,
2493
- "z-index": 10
2494
- })), ("top-left" == i || "top-right" == i) && SFSI(this).parent().parent().parent().parent("#sfsi_floater").length > 0 && "sfsi_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),
2495
- SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
2496
- SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
2497
- opacity: 1,
2498
- "z-index": 10
2499
- }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()) : (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),
2500
- SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),
2501
- SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
2502
- opacity: 1,
2503
- "z-index": 1e3
2504
- }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show());
2505
- }) : SFSI("img.sfsi_wicon").on("mouseenter", function () {
2506
- var s = SFSI("#sfsi_floater_sec").val();
2507
- SFSI("div.sfsi_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide(),
2508
- SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index", "0"),
2509
- SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()),
2510
- SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
2511
- "z-index": "999"
2512
- }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
2513
- opacity: 1,
2514
- "z-index": 10
2515
- }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
2516
- SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
2517
- opacity: 1,
2518
- "z-index": 10
2519
- }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
2520
- SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
2521
- opacity: 1,
2522
- "z-index": 10
2523
- })), ("top-left" == s || "top-right" == s) && SFSI(this).parent().parent().parent().parent("#sfsi_floater").length > 0 && "sfsi_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),
2524
- SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
2525
- SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
2526
- opacity: 1,
2527
- "z-index": 10
2528
- }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()) : (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),
2529
- SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),
2530
- SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
2531
- opacity: 1,
2532
- "z-index": 10
2533
- }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show());
2534
- }), SFSI("div.sfsi_wicons").on("mouseleave", function () {
2535
- SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && "fade_in" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.inerCnt").find("a.sficn").css("opacity", "0.6"),
2536
- SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && "scale" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.inerCnt").find("a.sficn").removeClass("scale"),
2537
- SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && "combo" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && (SFSI(this).children("div.inerCnt").find("a.sficn").css("opacity", "0.6"),
2538
- SFSI(this).children("div.inerCnt").find("a.sficn").removeClass("scale")), SFSI(this).children(".inerCnt").find("div.sfsi_tool_tip_2").hide();
2539
- }), SFSI("body").on("click", function () {
2540
- SFSI(".inerCnt").find("div.sfsi_tool_tip_2").hide();
2541
- }), SFSI(".adminTooltip >a").on("hover", function () {
2542
- SFSI(this).offset().top, SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "1"),
2543
- SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").show();
2544
- }), SFSI(".adminTooltip").on("mouseleave", function () {
2545
- "none" != SFSI(".gpls_tool_bdr").css("display") && 0 != SFSI(".gpls_tool_bdr").css("opacity") ? SFSI(".pop_up_box ").on("click", function () {
2546
- SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"), SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide();
2547
- }) : (SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"),
2548
- SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide());
2549
- }), SFSI(".expand-area").on("click", function () {
2550
- "Read more" == SFSI(this).text() ? (SFSI(this).siblings("p").children("label").fadeIn("slow"),
2551
- SFSI(this).text("Collapse")) : (SFSI(this).siblings("p").children("label").fadeOut("slow"),
2552
- SFSI(this).text("Read more"));
2553
- }), /*SFSI(".radio").live("click", function() {*/ SFSI(document).on("click", '.radio', function () {
2554
-
2555
- var s = SFSI(this).parent().find("input:radio:first");
2556
-
2557
- "sfsi_icons_float" == s.attr("name") && "yes" == s.val() && (SFSI(".float_options").slideDown("slow"),
2558
-
2559
- SFSI('input[name="sfsi_icons_stick"][value="no"]').attr("checked", !0), SFSI('input[name="sfsi_icons_stick"][value="yes"]').removeAttr("checked"),
2560
- SFSI('input[name="sfsi_icons_stick"][value="no"]').parent().find("span").attr("style", "background-position:0px -41px;"),
2561
- SFSI('input[name="sfsi_icons_stick"][value="yes"]').parent().find("span").attr("style", "background-position:0px -0px;")),
2562
-
2563
- //("sfsi_icons_stick" == s.attr("name") && "yes" == s.val() || "sfsi_icons_float" == s.attr("name") && "no" == s.val()) && (SFSI(".float_options").slideUp("slow"),
2564
- ("sfsi_icons_stick" == s.attr("name") && "yes" == s.val()) && (SFSI(".float_options").slideUp("slow"),
2565
-
2566
- SFSI('input[name="sfsi_icons_float"][value="no"]').prop("checked", !0), SFSI('input[name="sfsi_icons_float"][value="yes"]').prop("checked", !1),
2567
- SFSI('input[name="sfsi_icons_float"][value="no"]').parent().find("span.radio").attr("style", "background-position:0px -41px;"),
2568
- SFSI('input[name="sfsi_icons_float"][value="yes"]').parent().find("span.radio").attr("style", "background-position:0px -0px;"));
2569
-
2570
- }),
2571
-
2572
- SFSI(".sfsi_wDiv").length > 0 && setTimeout(function () {
2573
- var s = parseInt(SFSI(".sfsi_wDiv").height()) + 0 + "px";
2574
- SFSI(".sfsi_holders").each(function () {
2575
- SFSI(this).css("height", s);
2576
- });
2577
- }, 200),
2578
- /*SFSI(".checkbox").live("click", function() {*/
2579
- SFSI(document).on("click", '.checkbox', function () {
2580
- var s = SFSI(this).parent().find("input:checkbox:first");
2581
- ("sfsi_shuffle_Firstload" == s.attr("name") && "checked" == s.attr("checked") || "sfsi_shuffle_interval" == s.attr("name") && "checked" == s.attr("checked")) && (SFSI('input[name="sfsi_shuffle_icons"]').parent().find("span").css("background-position", "0px -36px"),
2582
- SFSI('input[name="sfsi_shuffle_icons"]').attr("checked", "checked")), "sfsi_shuffle_icons" == s.attr("name") && "checked" != s.attr("checked") && (SFSI('input[name="sfsi_shuffle_Firstload"]').removeAttr("checked"),
2583
- SFSI('input[name="sfsi_shuffle_Firstload"]').parent().find("span").css("background-position", "0px 0px"),
2584
- SFSI('input[name="sfsi_shuffle_interval"]').removeAttr("checked"), SFSI('input[name="sfsi_shuffle_interval"]').parent().find("span").css("background-position", "0px 0px"));
2585
- });
2586
-
2587
- SFSI("body").on("click", "#sfsi_getMeFullAccess", function () {
2588
- var email = SFSI(this).parents("form").find("input[type='email']").val();
2589
- var feedid = SFSI(this).parents("form").find("input[name='feedid']").val();
2590
- var error = false;
2591
- var regEx = /^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
2592
-
2593
- if (email === '') {
2594
- error = true;
2595
- }
2596
-
2597
- if (!regEx.test(email)) {
2598
- error = true;
2599
- }
2600
-
2601
- if (!error) {
2602
- SFSI(this).parents("form").submit();
2603
- } else {
2604
- alert("Error: Please provide your email address.");
2605
- }
2606
- });
2607
-
2608
- SFSI('form#calimingOptimizationForm').on('keypress', function (e) {
2609
- var keyCode = e.keyCode || e.which;
2610
- if (keyCode === 13) {
2611
- e.preventDefault();
2612
- return false;
2613
- }
2614
- });
2615
-
2616
- /*SFSI(".checkbox").live("click", function()
2617
- {
2618
- var s = SFSI(this).parent().find("input:checkbox:first");
2619
- "float_on_page" == s.attr("name") && "yes" == s.val() && (
2620
- SFSI('input[name="sfsi_icons_stick"][value="no"]').attr("checked", !0), SFSI('input[name="sfsi_icons_stick"][value="yes"]').removeAttr("checked"),
2621
- SFSI('input[name="sfsi_icons_stick"][value="no"]').parent().find("span").attr("style", "background-position:0px -41px;"),
2622
- SFSI('input[name="sfsi_icons_stick"][value="yes"]').parent().find("span").attr("style", "background-position:0px -0px;"));
2623
- });
2624
- SFSI(".radio").live("click", function()
2625
- {
2626
- var s = SFSI(this).parent().find("input:radio:first");
2627
- var a = SFSI(".cstmfltonpgstck");
2628
- ("sfsi_icons_stick" == s.attr("name") && "yes" == s.val()) && (
2629
- SFSI('input[name="float_on_page"][value="no"]').prop("checked", !0), SFSI('input[name="float_on_page"][value="yes"]').prop("checked", !1),
2630
- SFSI('input[name="float_on_page"][value="no"]').parent().find("span.checkbox").attr("style", "background-position:0px -41px;"),
2631
- SFSI('input[name="float_on_page"][value="yes"]').parent().find("span.checkbox").attr("style", "background-position:0px -0px;"),
2632
- jQuery(a).children(".checkbox").css("background-position", "0px 0px" ), toggleflotpage(a));
2633
- });*/
2634
- window.sfsi_initialization_checkbox_count = 0;
2635
- window.sfsi_initialization_checkbox = setInterval(function () {
2636
- // console.log(jQuery('.radio_section.tb_4_ck>span.checkbox').length,jQuery('.radio_section.tb_4_ck>input.styled').length);
2637
- if (jQuery('.radio_section.tb_4_ck>span.checkbox').length < jQuery('.radio_section.tb_4_ck>input.styled').length) {
2638
- window.sfsi_initialization_checkbox_count++;
2639
- // console.log('not initialized',window.sfsi_initialization_checkbox_count);
2640
- if (window.sfsi_initialization_checkbox_count > 12) {
2641
- // alert('Some script from diffrent plugin is interfearing with "Ultimate Social Icons" js files and checkbox couldn\'t be initialized. ');
2642
- // window.clearInterval(window.sfsi_initialization_checkbox);
2643
- }
2644
- } else {
2645
- // console.log('all initialized',window.sfsi_initialization_checkbox_count);
2646
- window.clearInterval(window.sfsi_initialization_checkbox);
2647
- }
2648
- }, 1000);
2649
- sfsi_responsive_icon_intraction_handler();
2650
-
2651
- });
2652
-
2653
- //for utube channel name and id
2654
- function showhideutube(ref) {
2655
- var chnlslctn = SFSI(ref).children("input").val();
2656
- if (chnlslctn == "name") {
2657
- SFSI(ref).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlnmewpr").slideDown();
2658
- SFSI(ref).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlidwpr").slideUp();
2659
- } else {
2660
- SFSI(ref).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlidwpr").slideDown();
2661
- SFSI(ref).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlnmewpr").slideUp();
2662
- }
2663
- }
2664
-
2665
- function checkforinfoslction(ref) {
2666
- var pos = jQuery(ref).children(".checkbox").css("background-position");
2667
-
2668
- var rightInfoClass = jQuery(ref).next().attr('class');
2669
-
2670
- var rightInfoPElem = jQuery(ref).next("." + rightInfoClass).children("p").first();
2671
-
2672
- var elemName = 'label';
2673
-
2674
- if (pos == "0px 0px") {
2675
- rightInfoPElem.children(elemName).hide();
2676
- } else {
2677
- rightInfoPElem.children(elemName).show();
2678
- }
2679
- }
2680
-
2681
- function checkforinfoslction_checkbox(ref) {
2682
-
2683
- var pos = jQuery(ref).children(".checkbox").css("background-position");
2684
-
2685
- var elem = jQuery(ref).parent().children('.sfsi_right_info').find('.kckslctn');
2686
-
2687
- if (pos == "0px 0px") {
2688
- elem.hide();
2689
- } else {
2690
- elem.show();
2691
- }
2692
- }
2693
-
2694
- function sfsi_toggleflotpage_que3(ref) {
2695
- var pos = jQuery(ref).children(".checkbox").css("background-position");
2696
- if (pos == "0px 0px") {
2697
- jQuery(ref).next(".sfsi_right_info").hide();
2698
-
2699
- } else {
2700
- jQuery(ref).next(".sfsi_right_info").show();
2701
- }
2702
- }
2703
-
2704
- var initTop = new Array();
2705
-
2706
- SFSI('.sfsi_navigate_to_question7').on("click", function () {
2707
-
2708
- var elem = SFSI('#ui-id-6');
2709
-
2710
- if (elem.hasClass('accordion-content-active')) {
2711
-
2712
- // Cloase tab of Question 3
2713
- elem.find('.sfsiColbtn').trigger('click');
2714
-
2715
- // Open tab of Question 7
2716
- if (!SFSI('#ui-id-14').hasClass('accordion-content-active')) {
2717
- SFSI('#ui-id-13').trigger('click');
2718
- }
2719
-
2720
- var pos = SFSI("#ui-id-13").offset();
2721
- var scrollToPos = pos.top - SFSI(window).height() * 0.99 + 30;
2722
- SFSI('html,body').animate({
2723
- scrollTop: scrollToPos
2724
- }, 500);
2725
- }
2726
- });
2727
-
2728
- SFSI("body").on("click", ".sfsi_tokenGenerateButton a", function () {
2729
- var clienId = SFSI("input[name='sfsi_instagram_clientid']").val();
2730
- var redirectUrl = SFSI("input[name='sfsi_instagram_appurl']").val();
2731
-
2732
- var scope = "likes+comments+basic+public_content+follower_list+relationships";
2733
- var instaUrl = "https://www.instagram.com/oauth/authorize/?client_id=<id>&redirect_uri=<url>&response_type=token&scope=" + scope;
2734
-
2735
- if (clienId !== '' && redirectUrl !== '') {
2736
- instaUrl = instaUrl.replace('<id>', clienId);
2737
- instaUrl = instaUrl.replace('<url>', redirectUrl);
2738
-
2739
- window.open(instaUrl, '_blank');
2740
- } else {
2741
- alert("Please enter client id and redirect url first");
2742
- }
2743
-
2744
- });
2745
- SFSI(document).ready(function () {
2746
- SFSI('#sfsi_jivo_offline_chat .tab-link').click(function () {
2747
- var cur = SFSI(this);
2748
- if (!cur.hasClass('active')) {
2749
- var target = cur.find('a').attr('href');
2750
- cur.parent().children().removeClass('active');
2751
- cur.addClass('active');
2752
- SFSI('#sfsi_jivo_offline_chat .tabs').children().hide();
2753
- SFSI(target).show();
2754
- }
2755
- });
2756
- SFSI('#sfsi_jivo_offline_chat #sfsi_sales form').submit(function (event) {
2757
- event & event.preventDefault();
2758
- // console.log(event);
2759
- var target = SFSI(this).parents('.tab-content');
2760
- var message = SFSI(this).find('textarea[name="question"]').val();
2761
- var email = SFSI(this).find('input[name="email"]').val();
2762
- var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
2763
- var nonce = SFSI(this).find('input[name="nonce"]').val();
2764
-
2765
- if ("" === email || false === re.test(String(email).toLowerCase())) {
2766
- // console.log(SFSI(this).find('input[name="email"]'));
2767
- SFSI(this).find('input[name="email"]').css('background-color', 'red');
2768
- SFSI(this).find('input[name="email"]').on('keyup', function () {
2769
- var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
2770
- var email = SFSI(this).val();
2771
- // console.log(email,re.test(String(email).toLowerCase()) );
2772
- if ("" !== email && true === re.test(String(email).toLowerCase())) {
2773
- SFSI(this).css('background-color', '#fff');
2774
- }
2775
- })
2776
- return false;
2777
-
2778
- }
2779
- SFSI.ajax({
2780
- url: sfsi_icon_ajax_object.ajax_url,
2781
- type: "post",
2782
- data: {
2783
- action: "sfsiOfflineChatMessage",
2784
- message: message,
2785
- email: email,
2786
- 'nonce': nonce
2787
- }
2788
- }).done(function () {
2789
- target.find('.before_message_sent').hide();
2790
- target.find('.after_message_sent').show();
2791
- });
2792
- })
2793
- });
2794
-
2795
- function sfsi_close_offline_chat(e) {
2796
- e && e.preventDefault();
2797
-
2798
- SFSI('#sfsi_jivo_offline_chat').hide();
2799
- SFSI('#sfsi_dummy_chat_icon').show();
2800
- }
2801
-
2802
- function sfsi_open_quick_checkout(e) {
2803
- e && e.preventDefault();
2804
- // console.log(jQuery('.sfsi_quick-pay-box'));
2805
- jQuery('.sfsi_quick-pay-box').show();
2806
- }
2807
-
2808
- function sfsi_close_quickpay(e) {
2809
- e && e.preventDefault();
2810
- jQuery('.sfsi_quickpay-overlay').hide();
2811
- }
2812
-
2813
- function sfsi_quickpay_container_click(event) {
2814
- if (jQuery(event.target).hasClass('sellcodes-quick-purchase')) {
2815
- jQuery(jQuery(event.target).find('p.sc-button img')[0]).click();
2816
- }
2817
- }
2818
-
2819
-
2820
-
2821
- // <------------------------* Responsive icon *----------------------->
2822
-
2823
- function sfsi_responsive_icon_intraction_handler() {
2824
- window.sfsi_fittext_shouldDisplay = true;
2825
- SFSI('select[name="sfsi_responsive_icons_settings_edge_type"]').on('change', function () {
2826
- $target_div = (SFSI(this).parent());
2827
- if (SFSI(this).val() === "Round") {
2828
- console.log('Round', 'Round', SFSI(this).val());
2829
-
2830
- $target_div.parent().children().css('display', 'inline-block');
2831
- $target_div.parent().next().css("display","inline-block");
2832
- var radius = jQuery('select[name="sfsi_responsive_icons_settings_edge_radius"]').val() + 'px'
2833
- jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container,.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').css('border-radius', radius);
2834
-
2835
- } else {
2836
- console.log('sharp', 'sharp', SFSI(this).val(), $target_div.parent().children(), $target_div.parent().children().hide());
2837
-
2838
- $target_div.parent().children().hide();
2839
- $target_div.show();
2840
- $target_div.parent().next().hide();
2841
- jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container,.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').css('border-radius', 'unset');
2842
-
2843
- }
2844
- });
2845
- SFSI('select[name="sfsi_responsive_icons_settings_icon_width_type"]').on('change', function () {
2846
- $target_div = (SFSI(this).parent());
2847
- if (SFSI(this).val() === "Fixed icon width") {
2848
- $target_div.parent().children().css('display', 'inline-block');
2849
- jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').css('width', 'auto').css('display', 'flex');
2850
- jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container a').css('flex-basis', 'unset');
2851
- jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').css('width', jQuery('input[name="sfsi_responsive_icons_sttings_icon_width_size"]').val());
2852
-
2853
- jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container_box_fully_container').removeClass('sfsi_icons_container_box_fully_container').addClass('sfsi_icons_container_box_fixed_container');
2854
- jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container_box_fixed_container').removeClass('sfsi_icons_container_box_fully_container').addClass('sfsi_icons_container_box_fixed_container');
2855
- window.sfsi_fittext_shouldDisplay = true;
2856
- jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
2857
- if (jQuery(a_container).css('display') !== "none") {
2858
- sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2859
- }
2860
- })
2861
- } else {
2862
- $target_div.parent().children().hide();
2863
- $target_div.show();
2864
- jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').css('width', '100%').css('display', 'flex');
2865
- jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container a').css('flex-basis', '100%');
2866
- jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').css('width', '100%');
2867
-
2868
- jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container_box_fixed_container').removeClass('sfsi_icons_container_box_fixed_container').addClass('sfsi_icons_container_box_fully_container');
2869
- jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container_box_fully_container').removeClass('sfsi_icons_container_box_fixed_container').addClass('sfsi_icons_container_box_fully_container');
2870
- window.sfsi_fittext_shouldDisplay = true;
2871
- jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
2872
- if (jQuery(a_container).css('display') !== "none") {
2873
- sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2874
- }
2875
- })
2876
- }
2877
- jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').removeClass('sfsi_fixed_count_container').removeClass('sfsi_responsive_count_container').addClass('sfsi_' + (jQuery(this).val() == "Fully responsive" ? 'responsive' : 'fixed') + '_count_container')
2878
- jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container>a').removeClass('sfsi_responsive_fluid').removeClass('sfsi_responsive_fixed_width').addClass('sfsi_responsive_' + (jQuery(this).val() == "Fully responsive" ? 'fluid' : 'fixed_width'))
2879
- sfsi_resize_icons_container();
2880
-
2881
- })
2882
- jQuery(document).on('keyup', 'input[name="sfsi_responsive_icons_sttings_icon_width_size"]', function () {
2883
- if (SFSI('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val() === "Fixed icon width") {
2884
- jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').css('width', jQuery(this).val() + 'px');
2885
- window.sfsi_fittext_shouldDisplay = true;
2886
- jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
2887
- if (jQuery(a_container).css('display') !== "none") {
2888
- sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2889
- }
2890
- })
2891
- }
2892
- sfsi_resize_icons_container();
2893
- });
2894
- jQuery(document).on('change', 'input[name="sfsi_responsive_icons_sttings_icon_width_size"]', function () {
2895
- if (SFSI('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val() === "Fixed icon width") {
2896
- jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').css('width', jQuery(this).val() + 'px');
2897
- }
2898
- });
2899
- jQuery(document).on('keyup', 'input[name="sfsi_responsive_icons_settings_margin"]', function () {
2900
- jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container a,.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').css('margin-right', jQuery(this).val() + 'px');
2901
- });
2902
- jQuery(document).on('change', 'input[name="sfsi_responsive_icons_settings_margin"]', function () {
2903
- jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container a,.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').css('margin-right', jQuery(this).val() + 'px');
2904
- // jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').css('width',(jQuery('.sfsi_responsive_icons').width()-(jQuery('.sfsi_responsive_icons_count').width()+jQuery(this).val()))+'px');
2905
-
2906
- });
2907
- jQuery(document).on('change', 'select[name="sfsi_responsive_icons_settings_text_align"]', function () {
2908
- if (jQuery(this).val() === "Centered") {
2909
- jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container a').css('text-align', 'center');
2910
- } else {
2911
- jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container a').css('text-align', 'left');
2912
- }
2913
- });
2914
- jQuery('.sfsi_responsive_default_icon_container input.sfsi_responsive_input').on('keyup', function () {
2915
- jQuery(this).parent().find('.sfsi_responsive_icon_item_container').find('span').text(jQuery(this).val());
2916
- var iconName = jQuery(this).attr('name');
2917
- var icon = iconName.replace('sfsi_responsive_', '').replace('_input', '');
2918
- jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_' + (icon.toLowerCase()) + '_container span').text(jQuery(this).val());
2919
- window.sfsi_fittext_shouldDisplay = true;
2920
- jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
2921
- if (jQuery(a_container).css('display') !== "none") {
2922
- sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2923
- }
2924
- })
2925
- sfsi_resize_icons_container();
2926
- })
2927
- jQuery('.sfsi_responsive_custom_icon_container input.sfsi_responsive_input').on('keyup', function () {
2928
- jQuery(this).parent().find('.sfsi_responsive_icon_item_container').find('span').text(jQuery(this).val());
2929
- var iconName = jQuery(this).attr('name');
2930
- var icon = iconName.replace('sfsi_responsive_custom_', '').replace('_input', '');
2931
- jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_' + icon + '_container span').text(jQuery(this).val())
2932
- window.sfsi_fittext_shouldDisplay = true;
2933
- jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
2934
- if (jQuery(a_container).css('display') !== "none") {
2935
- sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2936
- }
2937
- })
2938
- sfsi_resize_icons_container();
2939
-
2940
- })
2941
-
2942
- jQuery('.sfsi_responsive_default_url_toggler').click(function (event) {
2943
-
2944
- event.preventDefault();
2945
- sfsi_responsive_open_url(event);
2946
- });
2947
- jQuery('.sfsi_responsive_default_url_toggler').click(function (event) {
2948
- event.preventDefault();
2949
- sfsi_responsive_open_url(event);
2950
- })
2951
- jQuery('.sfsi_responsive_custom_url_hide, .sfsi_responsive_default_url_hide').click(function (event) {
2952
- event.preventDefault();
2953
- /* console.log(event,jQuery(event.target)); */
2954
- jQuery(event.target).parent().parent().find('.sfsi_responsive_custom_url_hide').hide();
2955
- jQuery(event.target).parent().parent().find('.sfsi_responsive_url_input').hide();
2956
- jQuery(event.target).parent().parent().find('.sfsi_responsive_default_url_hide').hide();
2957
- jQuery(event.target).parent().parent().find('.sfsi_responsive_default_url_toggler').show();
2958
- });
2959
- jQuery('select[name="sfsi_responsive_icons_settings_icon_size"]').change(function (event) {
2960
- jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container,.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').removeClass('sfsi_small_button').removeClass('sfsi_medium_button').removeClass('sfsi_large_button').addClass('sfsi_' + (jQuery(this).val().toLowerCase()) + '_button');
2961
- jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').removeClass('sfsi_small_button_container').removeClass('sfsi_medium_button_container').removeClass('sfsi_large_button_container').addClass('sfsi_' + (jQuery(this).val().toLowerCase()) + '_button_container')
2962
- })
2963
- jQuery(document).on('change', 'select[name="sfsi_responsive_icons_settings_edge_radius"]', function (event) {
2964
- var radius = jQuery(this).val() + 'px'
2965
- jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container,.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').css('border-radius', radius);
2966
-
2967
- });
2968
- jQuery(document).on('change', 'select[name="sfsi_responsive_icons_settings_style"]', function (event) {
2969
- if ('Flat' === jQuery(this).val()) {
2970
- jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').removeClass('sfsi_responsive_icon_gradient');
2971
- } else {
2972
- jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').addClass('sfsi_responsive_icon_gradient');
2973
- }
2974
- });
2975
- jQuery(document).on('mouseenter', '.sfsi_responsive_icon_preview .sfsi_icons_container a', function () {
2976
- jQuery(this).css('opacity', 0.8);
2977
- })
2978
- jQuery(document).on('mouseleave', '.sfsi_responsive_icon_preview .sfsi_icons_container a', function () {
2979
- jQuery(this).css('opacity', 1);
2980
- })
2981
- window.sfsi_fittext_shouldDisplay = true;
2982
- jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
2983
- if (jQuery(a_container).css('display') !== "none") {
2984
- sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2985
- }
2986
- })
2987
- sfsi_resize_icons_container();
2988
- jQuery('.ui-accordion-header.ui-state-default.ui-accordion-icons').click(function (data) {
2989
- window.sfsi_fittext_shouldDisplay = true;
2990
- jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
2991
- if (jQuery(a_container).css('display') !== "none") {
2992
- sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2993
- }
2994
- })
2995
- sfsi_resize_icons_container();
2996
- });
2997
- jQuery('select[name="sfsi_responsive_icons_settings_text_align"]').change(function (event) {
2998
- var data = jQuery(event.target).val();
2999
- if (data == "Centered") {
3000
- jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').removeClass('sfsi_left-align_icon').addClass('sfsi_centered_icon');
3001
- } else {
3002
- jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').removeClass('sfsi_centered_icon').addClass('sfsi_left-align_icon');
3003
- }
3004
- });
3005
- jQuery('a.sfsi_responsive_custom_delete_btn').click(function (event) {
3006
- event.preventDefault();
3007
- var icon_num = jQuery(this).attr('data-id');
3008
- //reset the current block;
3009
- // var last_block = jQuery('.sfsi_responsive_custom_icon_4_container').clone();
3010
- var cur_block = jQuery('.sfsi_responsive_custom_icon_' + icon_num + '_container');
3011
- cur_block.find('.sfsi_responsive_custom_delete_btn').hide();
3012
- cur_block.find('input[name="sfsi_responsive_custom_' + icon_num + '_added"]').val('no');
3013
- cur_block.find('.sfsi_responsive_custom_' + icon_num + '_added').attr('value', 'no');
3014
- cur_block.find('.radio_section.tb_4_ck .checkbox').click();
3015
- cur_block.hide();
3016
-
3017
-
3018
- if (icon_num > 0) {
3019
- var prev_block = jQuery('.sfsi_responsive_custom_icon_' + (icon_num - 1) + '_container');
3020
- prev_block.find('.sfsi_responsive_custom_delete_btn').show();
3021
- }
3022
- // jQuery('.sfsi_responsive_custom_icon_container').each(function(index,custom_icon){
3023
- // var target= jQuery(custom_icon);
3024
- // target.find('.sfsi_responsive_custom_delete_btn');
3025
- // var custom_id = target.find('.sfsi_responsive_custom_delete_btn').attr('data-id');
3026
- // if(custom_id>icon_num){
3027
- // target.removeClass('sfsi_responsive_custom_icon_'+custom_id+'_container').addClass('sfsi_responsive_custom_icon_'+(custom_id-1)+'_container');
3028
- // target.find('input[name="sfsi_responsive_custom_'+custom_id+'_added"]').attr('name',"sfsi_responsive_custom_"+(custom_id-1)+"_added");
3029
- // target.find('#sfsi_responsive_'+custom_id+'_display').removeClass('sfsi_responsive_custom_'+custom_id+'_display').addClass('sfsi_responsive_custom_'+(custom_id-1)+'_display').attr('id','sfsi_responsive_'+(custom_id-1)+'_display').attr('name','sfsi_responsive_custom_'+(custom_id-1)+'_display').attr('data-custom-index',(custom_id-1));
3030
- // target.find('.sfsi_responsive_icon_item_container').removeClass('sfsi_responsive_icon_custom_'+custom_id+'_container').addClass('sfsi_responsive_icon_custom_'+(custom_id-1)+'_container');
3031
- // target.find('.sfsi_responsive_input').attr('name','sfsi_responsive_custom_'+(custom_id-1)+'_input');
3032
- // target.find('.sfsi_responsive_url_input').attr('name','sfsi_responsive_custom_'+(custom_id-1)+'_url_input');
3033
- // target.find('.sfsi_bg-color-picker').attr('name','sfsi_responsive_icon_'+(custom_id-1)+'_bg_color');
3034
- // target.find('.sfsi_logo_upload sfsi_logo_custom_'+custom_id+'_upload').removeClass('sfsi_logo_upload sfsi_logo_custom_'+custom_id+'_upload').addClass('sfsi_logo_upload sfsi_logo_custom_'+(custom_id-1)+'_upload');
3035
- // target.find('input[type="sfsi_responsive_icons_custom_'+custom_id+'_icon"]').attr('name','input[type="sfsi_responsive_icons_custom_'+(custom_id-1)+'_icon"]');
3036
- // target.find('.sfsi_responsive_custom_delete_btn').attr('data-id',''+(custom_id-1));
3037
- // }
3038
- // });
3039
- // // sfsi_backend_section_beforeafter_set_fixed_width();
3040
- // // jQuery(window).on('resize',sfsi_backend_section_beforeafter_set_fixed_width);
3041
- // var new_block=jQuery('.sfsi_responsive_custom_icon_container').clone();
3042
- // jQuery('.sfsi_responsive_custom_icon_container').remove();
3043
- // jQuery('.sfsi_responsive_default_icon_container').parent().append(last_block).append();
3044
- // jQuery('.sfsi_responsive_default_icon_container').parent().append(new_block);
3045
- // return false;
3046
- })
3047
- }
3048
-
3049
- function sfsi_responsive_icon_counter_tgl(hide, show, ref = null) {
3050
- if (null !== hide && '' !== hide) {
3051
- jQuery('.' + hide).hide();
3052
- }
3053
- if (null !== show && '' !== show) {
3054
- jQuery('.' + show).show();
3055
- }
3056
- }
3057
-
3058
- function sfsi_responsive_toggle_count() {
3059
- var data = jQuery('input[name="sfsi_share_count"]:checked').val();
3060
- var data2 = jQuery('input[name="sfsi_display_counts"]:checked').val();
3061
- /* console.log('toggleer ',data,data2); */
3062
- if (data2 == "yes" && 'yes' == data) {
3063
- jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').css('display', 'inline-block');
3064
- jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').removeClass('sfsi_responsive_without_counter_icons').addClass('sfsi_responsive_with_counter_icons');
3065
- sfsi_resize_icons_container();
3066
- } else {
3067
- jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').css('display', 'none');
3068
- jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').removeClass('sfsi_responsive_with_counter_icons').addClass('sfsi_responsive_without_counter_icons');
3069
- sfsi_resize_icons_container();
3070
- }
3071
- }
3072
-
3073
- function sfsi_responsive_open_url(event) {
3074
- jQuery(event.target).parent().find('.sfsi_responsive_custom_url_hide').show();
3075
- jQuery(event.target).parent().find('.sfsi_responsive_default_url_hide').show();
3076
- jQuery(event.target).parent().find('.sfsi_responsive_url_input').show();
3077
- jQuery(event.target).hide();
3078
- }
3079
-
3080
- function sfsi_responsive_icon_hide_responsive_options() {
3081
- jQuery('.sfsi_PostsSettings_section').show();
3082
- jQuery('.sfsi_choose_post_types_section').show();
3083
- jQuery('.sfsi_not_responsive').show();
3084
- // jQuery('.sfsi_icn_listing8.sfsi_closerli').hide();
3085
- }
3086
-
3087
- function sfsi_responsive_icon_show_responsive_options() {
3088
- jQuery('.sfsi_PostsSettings_section').hide();
3089
- // jQuery('.sfsi_PostsSettings_section').show();
3090
- jQuery('.sfsi_choose_post_types_section').hide();
3091
- jQuery('.sfsi_not_responsive').hide();
3092
- window.sfsi_fittext_shouldDisplay = true;
3093
- jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
3094
- if (jQuery(a_container).css('display') !== "none") {
3095
- sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
3096
- }
3097
- })
3098
- sfsi_resize_icons_container();
3099
- }
3100
-
3101
- function sfsi_scroll_to_div(option_id, scroll_selector) {
3102
- jQuery('#' + option_id + '.ui-accordion-header[aria-selected="false"]').click() //opened the option
3103
- //scroll to it.
3104
- if (scroll_selector && scroll_selector !== '') {
3105
- scroll_selector = scroll_selector;
3106
- } else {
3107
- scroll_selector = '#' + option_id + '.ui-accordion-header';
3108
- }
3109
- jQuery('html, body').stop().animate({
3110
- scrollTop: jQuery(scroll_selector).offset().top
3111
- }, 1000);
3112
- }
3113
-
3114
- function sfsi_fitText(container) {
3115
- /* console.log(container,container.parent().parent(),container.parent().parent().hasClass('sfsi_icons_container_box_fixed_container')); */
3116
- if (container.parent().parent().hasClass('sfsi_icons_container_box_fixed_container')) {
3117
- /* console.log(window.sfsi_fittext_shouldDisplay); */
3118
- if (window.sfsi_fittext_shouldDisplay === true) {
3119
- if (jQuery('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val() == "Fully responsive") {
3120
- var all_icon_width = jQuery('.sfsi_responsive_icons .sfsi_icons_container').width();
3121
- var total_active_icons = jQuery('.sfsi_responsive_icons .sfsi_icons_container a').filter(function (i, icon) {
3122
- return jQuery(icon).css('display') && (jQuery(icon).css('display').toLowerCase() !== "none");
3123
- }).length;
3124
-
3125
- var distance_between_icon = jQuery('input[name="sfsi_responsive_icons_settings_margin"]').val()
3126
- var container_width = ((all_icon_width - distance_between_icon) / total_active_icons) - 5;
3127
- container_width = (container_width - distance_between_icon);
3128
- } else {
3129
- var container_width = container.width();
3130
- }
3131
- // var container_img_width = container.find('img').width();
3132
- var container_img_width = 70;
3133
- // var span=container.find('span').clone();
3134
- var span = container.find('span');
3135
- // var span_original_width = container.find('span').width();
3136
- var span_original_width = container_width - (container_img_width)
3137
- span
3138
- // .css('display','inline-block')
3139
- .css('white-space', 'nowrap')
3140
- // .css('width','auto')
3141
- ;
3142
- var span_flatted_width = span.width();
3143
- if (span_flatted_width == 0) {
3144
- span_flatted_width = span_original_width;
3145
- }
3146
- span
3147
- // .css('display','inline-block')
3148
- .css('white-space', 'unset')
3149
- // .css('width','auto')
3150
- ;
3151
- var shouldDisplay = ((undefined === window.sfsi_fittext_shouldDisplay) ? true : window.sfsi_fittext_shouldDisplay = true);
3152
- var fontSize = parseInt(span.css('font-size'));
3153
-
3154
- if (6 > fontSize) {
3155
- fontSize = 20;
3156
- }
3157
-
3158
- var computed_fontSize = (Math.floor((fontSize * span_original_width) / span_flatted_width));
3159
-
3160
- if (computed_fontSize < 8) {
3161
- shouldDisplay = false;
3162
- window.sfsi_fittext_shouldDisplay = false;
3163
- computed_fontSize = 20;
3164
- }
3165
- span.css('font-size', Math.min(computed_fontSize, 20));
3166
- span
3167
- // .css('display','inline-block')
3168
- .css('white-space', 'nowrap')
3169
- // .css('width','auto')
3170
- ;
3171
- if (shouldDisplay) {
3172
- span.show();
3173
- } else {
3174
- span.hide();
3175
- jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container span').hide();
3176
- }
3177
- }
3178
- } else {
3179
- var span = container.find('span');
3180
- /* console.log(span); */
3181
- span.css('font-size', 'initial');
3182
- span.show();
3183
- }
3184
-
3185
- }
3186
-
3187
- function sfsi_fixedWidth_fitText(container) {
3188
- return;
3189
- /* console.log(sfsi_fittext_shouldDisplay); */
3190
- if (window.sfsi_fittext_shouldDisplay === true) {
3191
- if (jQuery('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val() == "Fixed icon width") {
3192
- var all_icon_width = jQuery('.sfsi_responsive_icons .sfsi_icons_container').width();
3193
- var total_active_icons = jQuery('.sfsi_responsive_icons .sfsi_icons_container a').filter(function (i, icon) {
3194
- return jQuery(icon).css('display') && (jQuery(icon).css('display').toLowerCase() !== "none");
3195
- }).length;
3196
- var distance_between_icon = jQuery('input[name="sfsi_responsive_icons_settings_margin"]').val()
3197
- var container_width = ((all_icon_width - distance_between_icon) / total_active_icons) - 5;
3198
- container_width = (container_width - distance_between_icon);
3199
- } else {
3200
- var container_width = container.width();
3201
- }
3202
- // var container_img_width = container.find('img').width();
3203
- var container_img_width = 70;
3204
- // var span=container.find('span').clone();
3205
- var span = container.find('span');
3206
- // var span_original_width = container.find('span').width();
3207
- var span_original_width = container_width - (container_img_width)
3208
- span
3209
- // .css('display','inline-block')
3210
- .css('white-space', 'nowrap')
3211
- // .css('width','auto')
3212
- ;
3213
- var span_flatted_width = span.width();
3214
- if (span_flatted_width == 0) {
3215
- span_flatted_width = span_original_width;
3216
- }
3217
- span
3218
- // .css('display','inline-block')
3219
- .css('white-space', 'unset')
3220
- // .css('width','auto')
3221
- ;
3222
- var shouldDisplay = undefined === window.sfsi_fittext_shouldDisplay ? true : window.sfsi_fittext_shouldDisplay = true;;
3223
- var fontSize = parseInt(span.css('font-size'));
3224
-
3225
- if (6 > fontSize) {
3226
- fontSize = 15;
3227
- }
3228
-
3229
- var computed_fontSize = (Math.floor((fontSize * span_original_width) / span_flatted_width));
3230
-
3231
- if (computed_fontSize < 8) {
3232
- shouldDisplay = false;
3233
- window.sfsi_fittext_shouldDisplay = false;
3234
- computed_fontSize = 15;
3235
- }
3236
- span.css('font-size', Math.min(computed_fontSize, 15));
3237
- span
3238
- // .css('display','inline-block')
3239
- .css('white-space', 'nowrap')
3240
- // .css('width','auto')
3241
- ;
3242
- // var heightOfResIcons = jQuery('.sfsi_responsive_icon_item_container').height();
3243
-
3244
- // if(heightOfResIcons < 17){
3245
- // span.show();
3246
- // }else{
3247
- // span.hide();
3248
- // }
3249
-
3250
- if (shouldDisplay) {
3251
- span.show();
3252
- } else {
3253
- span.hide();
3254
- }
3255
- }
3256
- }
3257
-
3258
- function sfsi_resize_icons_container() {
3259
- // resize icon container based on the size of count
3260
- sfsi_cloned_icon_list = jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').clone();
3261
- sfsi_cloned_icon_list.removeClass('.sfsi_responsive_icon_preview .sfsi_responsive_with_counter_icons').addClass('sfsi_responsive_cloned_list');
3262
- sfsi_cloned_icon_list.css('width', '100%');
3263
- jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').parent().append(sfsi_cloned_icon_list);
3264
-
3265
- // sfsi_cloned_icon_list.css({
3266
- // position: "absolute",
3267
- // left: "-10000px"
3268
- // }).appendTo("body");
3269
- actual_width = sfsi_cloned_icon_list.width();
3270
- count_width = jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').width();
3271
- jQuery('.sfsi_responsive_cloned_list').remove();
3272
- sfsi_inline_style = jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').attr('style');
3273
- // remove_width
3274
- sfsi_inline_style = sfsi_inline_style.replace(/width:auto($|!important|)(;|$)/g, '').replace(/width:\s*(-|)\d*\s*(px|%)\s*($|!important|)(;|$)/g, '');
3275
- if (!(jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').hasClass('sfsi_responsive_without_counter_icons') && jQuery('.sfsi_icons_container').hasClass('sfsi_icons_container_box_fixed_container'))) {
3276
- sfsi_inline_style += "width:" + (actual_width - count_width - 1) + 'px!important;'
3277
- } else {
3278
- sfsi_inline_style += "width:auto!important;";
3279
- }
3280
- jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').attr('style', sfsi_inline_style);
3281
-
3282
- }
3283
-
3284
- function sfsi_togglbtmsection(show, hide, ref) {
3285
- console.log(show,hide);
3286
- jQuery(ref).parent("ul").children("li.clckbltglcls").each(function (index, element) {
3287
- jQuery(this).children(".radio").css("background-position", "0px 0px");
3288
- jQuery(this).children(".styled").attr("checked", "false");
3289
- });
3290
- jQuery(ref).children(".radio").css("background-position", "0px -41px");
3291
- jQuery(ref).children(".styled").attr("checked", "true");
3292
- console.log(show,hide);
3293
-
3294
- jQuery("." + show).show();
3295
- jQuery("." + show).children(".radiodisplaysection").show();
3296
- jQuery("." + hide).hide();
3297
- jQuery("." + hide).children(".radiodisplaysection").hide();
3298
- }
 
 
 
 
 
 
1
+ function sfsi_update_index() {
2
+ var s = 1;
3
+ SFSI("ul.icn_listing li.custom").each(function () {
4
+ SFSI(this).children("span.custom-txt").html("Custom " + s), s++;
5
+ }), cntt = 1, SFSI("div.cm_lnk").each(function () {
6
+ SFSI(this).find("h2.custom").find("span.sfsiCtxt").html("Custom " + cntt + ":"),
7
+ cntt++;
8
+ }), cntt = 1, SFSI("div.custom_m").find("div.custom_section").each(function () {
9
+ SFSI(this).find("label").html("Custom " + cntt + ":"), cntt++;
10
+ });
11
+ }
12
+
13
+ function sfsicollapse(s) {
14
+ var i = !0,
15
+ e = SFSI(s).closest("div.ui-accordion-content").prev("h3.ui-accordion-header"),
16
+ t = SFSI(s).closest("div.ui-accordion-content").first();
17
+ e.toggleClass("ui-corner-all", i).toggleClass("accordion-header-active ui-state-active ui-corner-top", !i).attr("aria-selected", (!i).toString()),
18
+ e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", i).toggleClass("ui-icon-triangle-1-s", !i),
19
+ t.toggleClass("accordion-content-active", !i), i ? t.slideUp() : t.slideDown();
20
+ }
21
+
22
+ function sfsi_delete_CusIcon(s, i) {
23
+ beForeLoad();
24
+ var e = {
25
+ action: "deleteIcons",
26
+ icon_name: i.attr("name"),
27
+ nonce: SFSI(i).parents('.custom').find('input[name="nonce"]').val()
28
+ };
29
+ SFSI.ajax({
30
+ url: sfsi_icon_ajax_object.ajax_url,
31
+ type: "post",
32
+ data: e,
33
+ dataType: "json",
34
+ success: function (e) {
35
+ if ("success" == e.res) {
36
+ showErrorSuc("success", "Saved !", 1);
37
+ var t = e.last_index + 1;
38
+ SFSI("#total_cusotm_icons").val(e.total_up), SFSI(s).closest(".custom").remove(),
39
+ SFSI("li.custom:last-child").addClass("bdr_btm_non"), SFSI(".custom-links").find("div." + i.attr("name")).remove(),
40
+ SFSI(".custom_m").find("div." + i.attr("name")).remove(), SFSI(".share_icon_order").children("li." + i.attr("name")).remove(),
41
+ SFSI("ul.sfsi_sample_icons").children("li." + i.attr("name")).remove();
42
+
43
+ if (e.total_up == 0) {
44
+ SFSI(".notice_custom_icons_premium").hide();
45
+ }
46
+ var n = e.total_up + 1;
47
+ 4 == e.total_up && SFSI(".icn_listing").append('<li id="c' + t + '" class="custom bdr_btm_non"><div class="radio_section tb_4_ck"><span class="checkbox" dynamic_ele="yes" style="background-position: 0px 0px;"></span><input name="sfsiICON_' + t + '_display" type="checkbox" value="yes" class="styled" style="display:none;" isNew="yes" /></div> <span class="custom-img"><img src="' + SFSI("#plugin_url").val() + 'images/custom.png" id="CImg_' + t + '" alt="error" /> </span> <span class="custom custom-txt">Custom' + n + ' </span> <div class="right_info"> <p><span>It depends:</span> Upload a custom icon if you have other accounts/websites you want to link to.</p><div class="inputWrapper"></div></li>');
48
+ } else showErrorSuc("error", "Unkown error , please try again", 1);
49
+ return sfsi_update_index(), update_Sec5Iconorder(), sfsi_update_step1(), sfsi_update_step5(),
50
+ afterLoad(), "suc";
51
+ }
52
+ });
53
+ }
54
+
55
+ function update_Sec5Iconorder() {
56
+ SFSI("ul.share_icon_order").children("li").each(function () {
57
+ SFSI(this).attr("data-index", SFSI(this).index() + 1);
58
+ });
59
+ }
60
+
61
+ function sfsi_section_Display(s, i) {
62
+ "hide" == i ? (SFSI("." + s + " :input").prop("disabled", !0), SFSI("." + s + " :button").prop("disabled", !0),
63
+ SFSI("." + s).hide()) : (SFSI("." + s + " :input").removeAttr("disabled", !0), SFSI("." + s + " :button").removeAttr("disabled", !0),
64
+ SFSI("." + s).show());
65
+ }
66
+
67
+ function sfsi_depened_sections() {
68
+ if ("sfsi" == SFSI("input[name='sfsi_rss_icons']:checked").val()) {
69
+ for (i = 0; 16 > i; i++) {
70
+ var s = i + 1,
71
+ e = 74 * i;
72
+ SFSI(".row_" + s + "_2").css("background-position", "-588px -" + e + "px");
73
+ }
74
+ var t = SFSI(".icon_img").attr("src");
75
+ if (t) {
76
+ if (t.indexOf("subscribe") != -1) {
77
+ var n = t.replace("subscribe.png", "sf_arow_icn.png");
78
+ } else {
79
+ var n = t.replace("email.png", "sf_arow_icn.png");
80
+ }
81
+ SFSI(".icon_img").attr("src", n);
82
+ }
83
+ } else {
84
+ if ("email" == SFSI("input[name='sfsi_rss_icons']:checked").val()) {
85
+ for (SFSI(".row_1_2").css("background-position", "-58px 0"), i = 0; 16 > i; i++) {
86
+ var s = i + 1,
87
+ e = 74 * i;
88
+ SFSI(".row_" + s + "_2").css("background-position", "-58px -" + e + "px");
89
+ }
90
+ var t = SFSI(".icon_img").attr("src");
91
+ if (t) {
92
+ if (t.indexOf("sf_arow_icn") != -1) {
93
+ var n = t.replace("sf_arow_icn.png", "email.png");
94
+ } else {
95
+ var n = t.replace("subscribe.png", "email.png");
96
+ }
97
+ SFSI(".icon_img").attr("src", n);
98
+ }
99
+ } else {
100
+ for (SFSI(".row_1_2").css("background-position", "-649px 0"), i = 0; 16 > i; i++) {
101
+ var s = i + 1,
102
+ e = 74 * i;
103
+ SFSI(".row_" + s + "_2").css("background-position", "-649px -" + e + "px");
104
+ }
105
+ var t = SFSI(".icon_img").attr("src");
106
+ if (t) {
107
+ if (t.indexOf("email") != -1) {
108
+ var n = t.replace("email.png", "subscribe.png");
109
+ } else {
110
+ var n = t.replace("sf_arow_icn.png", "subscribe.png");
111
+ }
112
+ SFSI(".icon_img").attr("src", n);
113
+ }
114
+ }
115
+ }
116
+ SFSI("input[name='sfsi_rss_display']").prop("checked") ? sfsi_section_Display("rss_section", "show") : sfsi_section_Display("rss_section", "hide"),
117
+ SFSI("input[name='sfsi_email_display']").prop("checked") ? sfsi_section_Display("email_section", "show") : sfsi_section_Display("email_section", "hide"),
118
+ SFSI("input[name='sfsi_facebook_display']").prop("checked") ? sfsi_section_Display("facebook_section", "show") : sfsi_section_Display("facebook_section", "hide"),
119
+ SFSI("input[name='sfsi_twitter_display']").prop("checked") ? sfsi_section_Display("twitter_section", "show") : sfsi_section_Display("twitter_section", "hide"),
120
+ SFSI("input[name='sfsi_youtube_display']").prop("checked") ? sfsi_section_Display("youtube_section", "show") : sfsi_section_Display("youtube_section", "hide"),
121
+ SFSI("input[name='sfsi_pinterest_display']").prop("checked") ? sfsi_section_Display("pinterest_section", "show") : sfsi_section_Display("pinterest_section", "hide"),
122
+ SFSI("input[name='sfsi_telegram_display']").prop("checked") ? sfsi_section_Display("telegram_section", "show") : sfsi_section_Display("telegram_section", "hide"),
123
+ SFSI("input[name='sfsi_vk_display']").prop("checked") ? sfsi_section_Display("vk_section", "show") : sfsi_section_Display("vk_section", "hide"),
124
+ SFSI("input[name='sfsi_ok_display']").prop("checked") ? sfsi_section_Display("ok_section", "show") : sfsi_section_Display("ok_section", "hide"),
125
+ SFSI("input[name='sfsi_wechat_display']").prop("checked") ? sfsi_section_Display("wechat_section", "show") : sfsi_section_Display("wechat_section", "hide"),
126
+ SFSI("input[name='sfsi_weibo_display']").prop("checked") ? sfsi_section_Display("weibo_section", "show") : sfsi_section_Display("weibo_section", "hide"),
127
+ SFSI("input[name='sfsi_instagram_display']").prop("checked") ? sfsi_section_Display("instagram_section", "show") : sfsi_section_Display("instagram_section", "hide"),
128
+ SFSI("input[name='sfsi_linkedin_display']").prop("checked") ? sfsi_section_Display("linkedin_section", "show") : sfsi_section_Display("linkedin_section", "hide"),
129
+ SFSI("input[element-type='cusotm-icon']").prop("checked") ? sfsi_section_Display("custom_section", "show") : sfsi_section_Display("custom_section", "hide");
130
+ }
131
+
132
+ function CustomIConSectionsUpdate() {
133
+ sfsi_section_Display("counter".ele, show);
134
+ }
135
+
136
+ // Upload Custom Skin {Monad}
137
+ function sfsi_customskin_upload(s, ref, nonce) {
138
+ var ttl = jQuery(ref).attr("title");
139
+ var i = s,
140
+ e = {
141
+ action: "UploadSkins",
142
+ custom_imgurl: i,
143
+ nonce: nonce
144
+ };
145
+ SFSI.ajax({
146
+ url: sfsi_icon_ajax_object.ajax_url,
147
+ type: "post",
148
+ data: e,
149
+ success: function (msg) {
150
+ if (msg.res = "success") {
151
+ var arr = s.split('=');
152
+ jQuery(ref).prev('.imgskin').attr('src', arr[1]);
153
+ jQuery(ref).prev('.imgskin').css("display", "block");
154
+ jQuery(ref).text("Update");
155
+ jQuery(ref).next('.dlt_btn').css("display", "block");
156
+ }
157
+ }
158
+ });
159
+ }
160
+
161
+ // Delete Custom Skin {Monad}
162
+ function deleteskin_icon(s) {
163
+ var iconname = jQuery(s).attr("title");
164
+ var nonce = jQuery(s).attr("data-nonce");
165
+ var i = iconname,
166
+ e = {
167
+ action: "DeleteSkin",
168
+ iconname: i,
169
+ nonce: nonce
170
+ };
171
+ console.log('delete sin icon', i, iconname, nonce);
172
+ SFSI.ajax({
173
+ url: sfsi_icon_ajax_object.ajax_url,
174
+ type: "post",
175
+ data: e,
176
+ dataType: "json",
177
+ success: function (msg) {
178
+ console.log(s, e, msg);
179
+
180
+ if (msg.res === "success") {
181
+ SFSI(s).prev("a").text("Upload");
182
+ SFSI(s).prev("a").prev("img").attr("src", '');
183
+ SFSI(s).prev("a").prev("img").css("display", "none");
184
+ SFSI(s).css("display", "none");
185
+ } else {
186
+ alert("Whoops! something went wrong.")
187
+ }
188
+ }
189
+ });
190
+ }
191
+
192
+ // Save Custom Skin {Monad}
193
+ function SFSI_done(nonce) {
194
+ e = {
195
+ action: "Iamdone",
196
+ nonce: nonce
197
+ };
198
+
199
+ SFSI.ajax({
200
+ url: sfsi_icon_ajax_object.ajax_url,
201
+ type: "post",
202
+ data: e,
203
+ success: function (msg) {
204
+ if (msg.res === "success") {
205
+
206
+
207
+ jQuery("li.cstomskins_upload").children(".icns_tab_3").html(msg);
208
+ SFSI("input[name='sfsi_rss_display']").prop("checked") ? sfsi_section_Display("rss_section", "show") : sfsi_section_Display("rss_section", "hide"), SFSI("input[name='sfsi_email_display']").prop("checked") ? sfsi_section_Display("email_section", "show") : sfsi_section_Display("email_section", "hide"), SFSI("input[name='sfsi_facebook_display']").prop("checked") ? sfsi_section_Display("facebook_section", "show") : sfsi_section_Display("facebook_section", "hide"), SFSI("input[name='sfsi_twitter_display']").prop("checked") ? sfsi_section_Display("twitter_section", "show") : sfsi_section_Display("twitter_section", "hide"), SFSI("input[name='sfsi_youtube_display']").prop("checked") ? sfsi_section_Display("youtube_section", "show") : sfsi_section_Display("youtube_section", "hide"), SFSI("input[name='sfsi_pinterest_display']").prop("checked") ? sfsi_section_Display("pinterest_section", "show") : sfsi_section_Display("pinterest_section", "hide"), SFSI("input[name='sfsi_instagram_display']").prop("checked") ? sfsi_section_Display("instagram_section", "show") : sfsi_section_Display("instagram_section", "hide"), SFSI("input[name='sfsi_linkedin_display']").prop("checked") ? sfsi_section_Display("linkedin_section", "show") : sfsi_section_Display("linkedin_section", "hide"), SFSI("input[element-type='cusotm-icon']").prop("checked") ? sfsi_section_Display("custom_section", "show") : sfsi_section_Display("custom_section", "hide");
209
+ SFSI(".cstmskins-overlay").hide("slow");
210
+ sfsi_update_step3() && sfsicollapse(this);
211
+ }
212
+ }
213
+ });
214
+ }
215
+
216
+ // Upload Custom Icons {Monad}
217
+ function sfsi_newcustomicon_upload(s, nonce, nonce2) {
218
+ var i = s,
219
+ e = {
220
+ action: "UploadIcons",
221
+ custom_imgurl: i,
222
+ nonce: nonce
223
+ };
224
+ SFSI.ajax({
225
+ url: sfsi_icon_ajax_object.ajax_url,
226
+ type: "post",
227
+ data: e,
228
+ dataType: "json",
229
+ async: !0,
230
+ success: function (s) {
231
+ if (s.res == 'success') {
232
+ afterIconSuccess(s, nonce2);
233
+ } else {
234
+ SFSI(".upload-overlay").hide("slow");
235
+ SFSI(".uperror").html(s.res);
236
+ showErrorSuc("Error", "Some Error Occured During Upload Custom Icon", 1)
237
+ }
238
+ }
239
+ });
240
+ }
241
+
242
+ function sfsi_update_step1() {
243
+ var nonce = SFSI("#sfsi_save1").attr("data-nonce");
244
+ global_error = 0, beForeLoad(), sfsi_depened_sections();
245
+ var s = !1,
246
+ i = SFSI("input[name='sfsi_rss_display']:checked").val(),
247
+ e = SFSI("input[name='sfsi_email_display']:checked").val(),
248
+ t = SFSI("input[name='sfsi_facebook_display']:checked").val(),
249
+ n = SFSI("input[name='sfsi_twitter_display']:checked").val(),
250
+ r = SFSI("input[name='sfsi_youtube_display']:checked").val(),
251
+ c = SFSI("input[name='sfsi_pinterest_display']:checked").val(),
252
+ p = SFSI("input[name='sfsi_linkedin_display']:checked").val(),
253
+ tg = SFSI("input[name='sfsi_telegram_display']:checked").val(),
254
+ vk = SFSI("input[name='sfsi_vk_display']:checked").val(),
255
+ ok = SFSI("input[name='sfsi_ok_display']:checked").val(),
256
+ wc = SFSI("input[name='sfsi_wechat_display']:checked").val(),
257
+ wb = SFSI("input[name='sfsi_weibo_display']:checked").val(),
258
+ _ = SFSI("input[name='sfsi_instagram_display']:checked").val(),
259
+ l = SFSI("input[name='sfsi_custom1_display']:checked").val(),
260
+ S = SFSI("input[name='sfsi_custom2_display']:checked").val(),
261
+ u = SFSI("input[name='sfsi_custom3_display']:checked").val(),
262
+ f = SFSI("input[name='sfsi_custom4_display']:checked").val(),
263
+ d = SFSI("input[name='sfsi_custom5_display']:checked").val(),
264
+ I = {
265
+ action: "updateSrcn1",
266
+ sfsi_rss_display: i,
267
+ sfsi_email_display: e,
268
+ sfsi_facebook_display: t,
269
+ sfsi_twitter_display: n,
270
+ sfsi_youtube_display: r,
271
+ sfsi_pinterest_display: c,
272
+ sfsi_linkedin_display: p,
273
+ sfsi_telegram_display: tg,
274
+ sfsi_vk_display: vk,
275
+ sfsi_ok_display: ok,
276
+ sfsi_wechat_display: wc,
277
+ sfsi_weibo_display: wb,
278
+ sfsi_instagram_display: _,
279
+ sfsi_custom1_display: l,
280
+ sfsi_custom2_display: S,
281
+ sfsi_custom3_display: u,
282
+ sfsi_custom4_display: f,
283
+ sfsi_custom5_display: d,
284
+ nonce: nonce
285
+ };
286
+ SFSI.ajax({
287
+ url: sfsi_icon_ajax_object.ajax_url,
288
+ type: "post",
289
+ data: I,
290
+ async: !0,
291
+ dataType: "json",
292
+ success: function (i) {
293
+ if (i == "wrong_nonce") {
294
+ showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 1);
295
+ s = !1;
296
+ afterLoad();
297
+ } else {
298
+ "success" == i ? (showErrorSuc("success", "Saved !", 1), sfsicollapse("#sfsi_save1"),
299
+ sfsi_make_popBox()) : (global_error = 1, showErrorSuc("error", "Unkown error , please try again", 1),
300
+ s = !1), afterLoad();
301
+ }
302
+ }
303
+ });
304
+ }
305
+
306
+ function sfsi_update_step2() {
307
+
308
+ var nonce = SFSI("#sfsi_save2").attr("data-nonce");
309
+ var s = sfsi_validationStep2();
310
+ if (!s) return global_error = 1, !1;
311
+ beForeLoad();
312
+ var i = 1 == SFSI("input[name='sfsi_rss_url']").prop("disabled") ? "" : SFSI("input[name='sfsi_rss_url']").val(),
313
+ e = 1 == SFSI("input[name='sfsi_rss_icons']").prop("disabled") ? "" : SFSI("input[name='sfsi_rss_icons']:checked").val(),
314
+
315
+ t = 1 == SFSI("input[name='sfsi_facebookPage_option']").prop("disabled") ? "" : SFSI("input[name='sfsi_facebookPage_option']:checked").val(),
316
+ n = 1 == SFSI("input[name='sfsi_facebookLike_option']").prop("disabled") ? "" : SFSI("input[name='sfsi_facebookLike_option']:checked").val(),
317
+ o = 1 == SFSI("input[name='sfsi_facebookShare_option']").prop("disabled") ? "" : SFSI("input[name='sfsi_facebookShare_option']:checked").val(),
318
+ a = SFSI("input[name='sfsi_facebookPage_url']").val(),
319
+ r = 1 == SFSI("input[name='sfsi_twitter_followme']").prop("disabled") ? "" : SFSI("input[name='sfsi_twitter_followme']:checked").val(),
320
+ c = 1 == SFSI("input[name='sfsi_twitter_followUserName']").prop("disabled") ? "" : SFSI("input[name='sfsi_twitter_followUserName']").val(),
321
+ p = 1 == SFSI("input[name='sfsi_twitter_aboutPage']").prop("disabled") ? "" : SFSI("input[name='sfsi_twitter_aboutPage']:checked").val(),
322
+ _ = 1 == SFSI("input[name='sfsi_twitter_page']").prop("disabled") ? "" : SFSI("input[name='sfsi_twitter_page']:checked").val(),
323
+ l = SFSI("input[name='sfsi_twitter_pageURL']").val(),
324
+ S = SFSI("textarea[name='sfsi_twitter_aboutPageText']").val(),
325
+ m = 1 == SFSI("input[name='sfsi_youtube_page']").prop("disabled") ? "" : SFSI("input[name='sfsi_youtube_page']:checked").val(),
326
+ F = 1 == SFSI("input[name='sfsi_youtube_pageUrl']").prop("disabled") ? "" : SFSI("input[name='sfsi_youtube_pageUrl']").val(),
327
+ h = 1 == SFSI("input[name='sfsi_youtube_follow']").prop("disabled") ? "" : SFSI("input[name='sfsi_youtube_follow']:checked").val(),
328
+ cls = SFSI("input[name='sfsi_youtubeusernameorid']:checked").val(),
329
+ v = SFSI("input[name='sfsi_ytube_user']").val(),
330
+ vchid = SFSI("input[name='sfsi_ytube_chnlid']").val(),
331
+ g = 1 == SFSI("input[name='sfsi_pinterest_page']").prop("disabled") ? "" : SFSI("input[name='sfsi_pinterest_page']:checked").val(),
332
+ k = 1 == SFSI("input[name='sfsi_pinterest_pageUrl']").prop("disabled") ? "" : SFSI("input[name='sfsi_pinterest_pageUrl']").val(),
333
+ y = 1 == SFSI("input[name='sfsi_pinterest_pingBlog']").prop("disabled") ? "" : SFSI("input[name='sfsi_pinterest_pingBlog']:checked").val(),
334
+ b = 1 == SFSI("input[name='sfsi_instagram_pageUrl']").prop("disabled") ? "" : SFSI("input[name='sfsi_instagram_pageUrl']").val(),
335
+ w = 1 == SFSI("input[name='sfsi_linkedin_page']").prop("disabled") ? "" : SFSI("input[name='sfsi_linkedin_page']:checked").val(),
336
+ x = 1 == SFSI("input[name='sfsi_linkedin_pageURL']").prop("disabled") ? "" : SFSI("input[name='sfsi_linkedin_pageURL']").val(),
337
+ C = 1 == SFSI("input[name='sfsi_linkedin_follow']").prop("disabled") ? "" : SFSI("input[name='sfsi_linkedin_follow']:checked").val(),
338
+ D = SFSI("input[name='sfsi_linkedin_followCompany']").val(),
339
+ U = 1 == SFSI("input[name='sfsi_linkedin_SharePage']").prop("disabled") ? "" : SFSI("input[name='sfsi_linkedin_SharePage']:checked").val(),
340
+ O = SFSI("input[name='sfsi_linkedin_recommendBusines']:checked").val(),
341
+ T = SFSI("input[name='sfsi_linkedin_recommendProductId']").val(),
342
+ j = SFSI("input[name='sfsi_linkedin_recommendCompany']").val(),
343
+ tp = 1 == SFSI("input[name='sfsi_telegram_page']").prop("disabled") ? "" : SFSI("input[name='sfsi_telegram_page']:checked").val(),
344
+ tpu = SFSI("input[name='sfsi_telegram_pageURL']").val(),
345
+ tm = SFSI("input[name='sfsi_telegram_message']").val(),
346
+ tmn = SFSI("input[name='sfsi_telegram_username']").val(),
347
+ wp = 1 == SFSI("input[name='sfsi_weibo_page']").prop("disabled") ? "" : SFSI("input[name='sfsi_weibo_page']:checked").val(),
348
+ wpu = SFSI("input[name='sfsi_weibo_pageURL']").val(),
349
+ vp = 1 == SFSI("input[name='sfsi_vk_page']").prop("disabled") ? "" : SFSI("input[name='sfsi_vk_page']:checked").val(),
350
+ vpu = SFSI("input[name='sfsi_vk_pageURL']").val(),
351
+ op = 1 == SFSI("input[name='sfsi_ok_page']").prop("disabled") ? "" : SFSI("input[name='sfsi_ok_page']:checked").val(),
352
+ opu = SFSI("input[name='sfsi_ok_pageURL']").val(),
353
+ P = {};
354
+ SFSI("input[name='sfsi_CustomIcon_links[]']").each(function () {
355
+ P[SFSI(this).attr("file-id")] = this.value;
356
+ });
357
+ var M = {
358
+ action: "updateSrcn2",
359
+ sfsi_rss_url: i,
360
+ sfsi_rss_icons: e,
361
+ sfsi_facebookPage_option: t,
362
+ sfsi_facebookLike_option: n,
363
+ sfsi_facebookShare_option: o,
364
+ sfsi_facebookPage_url: a,
365
+ sfsi_twitter_followme: r,
366
+ sfsi_twitter_followUserName: c,
367
+ sfsi_twitter_aboutPage: p,
368
+ sfsi_twitter_page: _,
369
+ sfsi_twitter_pageURL: l,
370
+ sfsi_twitter_aboutPageText: S,
371
+ sfsi_youtube_page: m,
372
+ sfsi_youtube_pageUrl: F,
373
+ sfsi_youtube_follow: h,
374
+ sfsi_youtubeusernameorid: cls,
375
+ sfsi_ytube_user: v,
376
+ sfsi_ytube_chnlid: vchid,
377
+ sfsi_pinterest_page: g,
378
+ sfsi_pinterest_pageUrl: k,
379
+ sfsi_instagram_pageUrl: b,
380
+ sfsi_pinterest_pingBlog: y,
381
+ sfsi_linkedin_page: w,
382
+ sfsi_linkedin_pageURL: x,
383
+ sfsi_linkedin_follow: C,
384
+ sfsi_linkedin_followCompany: D,
385
+ sfsi_linkedin_SharePage: U,
386
+ sfsi_linkedin_recommendBusines: O,
387
+ sfsi_linkedin_recommendCompany: j,
388
+ sfsi_linkedin_recommendProductId: T,
389
+ sfsi_custom_links: P,
390
+ sfsi_telegram_page: tp,
391
+ sfsi_telegram_pageURL: tpu,
392
+ sfsi_telegram_message: tm,
393
+ sfsi_telegram_username: tmn,
394
+ sfsi_weibo_page: wp,
395
+ sfsi_weibo_pageURL: wpu,
396
+ sfsi_vk_page: vp,
397
+ sfsi_vk_pageURL: vpu,
398
+ sfsi_ok_page: op,
399
+ sfsi_ok_pageURL: opu,
400
+ nonce: nonce
401
+ };
402
+ SFSI.ajax({
403
+ url: sfsi_icon_ajax_object.ajax_url,
404
+ type: "post",
405
+ data: M,
406
+ async: !0,
407
+ dataType: "json",
408
+ success: function (s) {
409
+ if (s == "wrong_nonce") {
410
+ showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 2);
411
+ return_value = !1;
412
+ afterLoad();
413
+ } else {
414
+ "success" == s ? (showErrorSuc("success", "Saved !", 2), sfsicollapse("#sfsi_save2"),
415
+ sfsi_depened_sections()) : (global_error = 1, showErrorSuc("error", "Unkown error , please try again", 2),
416
+ return_value = !1), afterLoad();
417
+ }
418
+ }
419
+ });
420
+ }
421
+
422
+ function sfsi_update_step3() {
423
+ var nonce = SFSI("#sfsi_save3").attr("data-nonce");
424
+ var s = sfsi_validationStep3();
425
+ if (!s) return global_error = 1, !1;
426
+ beForeLoad();
427
+ var i = SFSI("input[name='sfsi_actvite_theme']:checked").val(),
428
+ e = SFSI("input[name='sfsi_mouseOver']:checked").val(),
429
+ t = SFSI("input[name='sfsi_shuffle_icons']:checked").val(),
430
+ n = SFSI("input[name='sfsi_shuffle_Firstload']:checked").val(),
431
+ o = SFSI("input[name='sfsi_same_icons_mouseOver_effect']:checked").val(),
432
+ a = SFSI("input[name='sfsi_shuffle_interval']:checked").val(),
433
+ r = SFSI("input[name='sfsi_shuffle_intervalTime']").val(),
434
+ c = SFSI("input[name='sfsi_specialIcon_animation']:checked").val(),
435
+ p = SFSI("input[name='sfsi_specialIcon_MouseOver']:checked").val(),
436
+ _ = SFSI("input[name='sfsi_specialIcon_Firstload']:checked").val(),
437
+ l = SFSI("#sfsi_specialIcon_Firstload_Icons option:selected").val(),
438
+ S = SFSI("input[name='sfsi_specialIcon_interval']:checked").val(),
439
+ u = SFSI("input[name='sfsi_specialIcon_intervalTime']").val(),
440
+ f = SFSI("#sfsi_specialIcon_intervalIcons option:selected").val();
441
+
442
+ var mouseover_effect_type = 'same_icons'; //SFSI("input[name='sfsi_mouseOver_effect_type']:checked").val();
443
+
444
+ d = {
445
+ action: "updateSrcn3",
446
+ sfsi_actvite_theme: i,
447
+ sfsi_mouseOver: e,
448
+ sfsi_shuffle_icons: t,
449
+ sfsi_shuffle_Firstload: n,
450
+ sfsi_mouseOver_effect: o,
451
+ sfsi_mouseover_effect_type: mouseover_effect_type,
452
+ sfsi_shuffle_interval: a,
453
+ sfsi_shuffle_intervalTime: r,
454
+ sfsi_specialIcon_animation: c,
455
+ sfsi_specialIcon_MouseOver: p,
456
+ sfsi_specialIcon_Firstload: _,
457
+ sfsi_specialIcon_Firstload_Icons: l,
458
+ sfsi_specialIcon_interval: S,
459
+ sfsi_specialIcon_intervalTime: u,
460
+ sfsi_specialIcon_intervalIcons: f,
461
+ nonce: nonce
462
+ };
463
+ SFSI.ajax({
464
+ url: sfsi_icon_ajax_object.ajax_url,
465
+ type: "post",
466
+ data: d,
467
+ async: !0,
468
+ dataType: "json",
469
+ success: function (s) {
470
+ if (s == "wrong_nonce") {
471
+ showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 3);
472
+ return_value = !1;
473
+ afterLoad();
474
+ } else {
475
+ "success" == s ? (showErrorSuc("success", "Saved !", 3), sfsicollapse("#sfsi_save3")) : (showErrorSuc("error", "Unkown error , please try again", 3),
476
+ return_value = !1), afterLoad();
477
+ }
478
+ }
479
+ });
480
+ }
481
+
482
+ function sfsi_show_counts() {
483
+ "yes" == SFSI("input[name='sfsi_display_counts']:checked").val() ? (SFSI(".count_sections").slideDown(),
484
+ sfsi_showPreviewCounts()) : (SFSI(".count_sections").slideUp(), sfsi_showPreviewCounts());
485
+ }
486
+
487
+ function sfsi_showPreviewCounts() {
488
+ var s = 0;
489
+ 1 == SFSI("input[name='sfsi_rss_countsDisplay']").prop("checked") ? (SFSI("#sfsi_rss_countsDisplay").css("opacity", 1), s = 1) : SFSI("#sfsi_rss_countsDisplay").css("opacity", 0),
490
+ 1 == SFSI("input[name='sfsi_email_countsDisplay']").prop("checked") ? (SFSI("#sfsi_email_countsDisplay").css("opacity", 1),
491
+ s = 1) : SFSI("#sfsi_email_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_facebook_countsDisplay']").prop("checked") ? (SFSI("#sfsi_facebook_countsDisplay").css("opacity", 1),
492
+ s = 1) : SFSI("#sfsi_facebook_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_twitter_countsDisplay']").prop("checked") ? (SFSI("#sfsi_twitter_countsDisplay").css("opacity", 1),
493
+ s = 1) : SFSI("#sfsi_twitter_countsDisplay").css("opacity", 0),
494
+ 1 == SFSI("input[name='sfsi_linkedIn_countsDisplay']").prop("checked") ? (SFSI("#sfsi_linkedIn_countsDisplay").css("opacity", 1), s = 1) : SFSI("#sfsi_linkedIn_countsDisplay").css("opacity", 0),
495
+ 1 == SFSI("input[name='sfsi_youtube_countsDisplay']").prop("checked") ? (SFSI("#sfsi_youtube_countsDisplay").css("opacity", 1),
496
+ s = 1) : SFSI("#sfsi_youtube_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_pinterest_countsDisplay']").prop("checked") ? (SFSI("#sfsi_pinterest_countsDisplay").css("opacity", 1),
497
+ s = 1) : SFSI("#sfsi_pinterest_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_instagram_countsDisplay']").prop("checked") ? (SFSI("#sfsi_instagram_countsDisplay").css("opacity", 1),
498
+ s = 1) : SFSI("#sfsi_instagram_countsDisplay").css("opacity", 0),
499
+ 1 == SFSI("input[name='sfsi_telegram_countsDisplay']").prop("checked") ? (SFSI("#sfsi_telegram_countsDisplay").css("opacity", 0), s = 1) : SFSI("#sfsi_telegram_countsDisplay").css("opacity", 0),
500
+ 1 == SFSI("input[name='sfsi_vk_countsDisplay']").prop("checked") ? (SFSI("#sfsi_vk_countsDisplay").css("opacity", 0), s = 1) : SFSI("#sfsi_vk_countsDisplay").css("opacity", 0),
501
+ 1 == SFSI("input[name='sfsi_ok_countsDisplay']").prop("checked") ? (SFSI("#sfsi_ok_countsDisplay").css("opacity", 0), s = 1) : SFSI("#sfsi_ok_countsDisplay").css("opacity", 0),
502
+ 1 == SFSI("input[name='sfsi_weibo_countsDisplay']").prop("checked") ? (SFSI("#sfsi_weibo_countsDisplay").css("opacity", 0), s = 1) : SFSI("#sfsi_weibo_countsDisplay").css("opacity", 0),
503
+ 1 == SFSI("input[name='sfsi_wechat_countsDisplay']").prop("checked") ? (SFSI("#sfsi_wechat_countsDisplay").css("opacity", 0), s = 1) : SFSI("#sfsi_wechat_countsDisplay").css("opacity", 0),
504
+
505
+ 0 == s || "no" == SFSI("input[name='sfsi_display_counts']:checked").val() ? SFSI(".sfsi_Cdisplay").hide() : SFSI(".sfsi_Cdisplay").show();
506
+ }
507
+
508
+ function sfsi_show_OnpostsDisplay() {
509
+ //"yes" == SFSI("input[name='sfsi_show_Onposts']:checked").val() ? SFSI(".PostsSettings_section").slideDown() :SFSI(".PostsSettings_section").slideUp();
510
+ }
511
+
512
+ function sfsi_update_step4() {
513
+ var nonce = SFSI("#sfsi_save4").attr("data-nonce");
514
+ var s = !1,
515
+ i = sfsi_validationStep4();
516
+ if (!i) return global_error = 1, !1;
517
+ beForeLoad();
518
+ var e = SFSI("input[name='sfsi_display_counts']:checked").val(),
519
+ t = 1 == SFSI("input[name='sfsi_email_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_email_countsDisplay']:checked").val(),
520
+ n = 1 == SFSI("input[name='sfsi_email_countsFrom']").prop("disabled") ? "" : SFSI("input[name='sfsi_email_countsFrom']:checked").val(),
521
+ o = SFSI("input[name='sfsi_email_manualCounts']").val(),
522
+ r = 1 == SFSI("input[name='sfsi_rss_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_rss_countsDisplay']:checked").val(),
523
+ c = SFSI("input[name='sfsi_rss_manualCounts']").val(),
524
+ p = 1 == SFSI("input[name='sfsi_facebook_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_facebook_countsDisplay']:checked").val(),
525
+ _ = 1 == SFSI("input[name='sfsi_facebook_countsFrom']").prop("disabled") ? "" : SFSI("input[name='sfsi_facebook_countsFrom']:checked").val(),
526
+ mp = SFSI("input[name='sfsi_facebook_mypageCounts']").val(),
527
+ l = SFSI("input[name='sfsi_facebook_manualCounts']").val(),
528
+ S = 1 == SFSI("input[name='sfsi_twitter_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_twitter_countsDisplay']:checked").val(),
529
+ u = 1 == SFSI("input[name='sfsi_twitter_countsFrom']").prop("disabled") ? "" : SFSI("input[name='sfsi_twitter_countsFrom']:checked").val(),
530
+ f = SFSI("input[name='sfsi_twitter_manualCounts']").val(),
531
+ d = SFSI("input[name='tw_consumer_key']").val(),
532
+ I = SFSI("input[name='tw_consumer_secret']").val(),
533
+ m = SFSI("input[name='tw_oauth_access_token']").val(),
534
+ F = SFSI("input[name='tw_oauth_access_token_secret']").val(),
535
+ k = 1 == SFSI("input[name='sfsi_linkedIn_countsFrom']").prop("disabled") ? "" : SFSI("input[name='sfsi_linkedIn_countsFrom']:checked").val(),
536
+ y = SFSI("input[name='sfsi_linkedIn_manualCounts']").val(),
537
+ b = SFSI("input[name='ln_company']").val(),
538
+ w = SFSI("input[name='ln_api_key']").val(),
539
+ x = SFSI("input[name='ln_secret_key']").val(),
540
+ C = SFSI("input[name='ln_oAuth_user_token']").val(),
541
+ D = 1 == SFSI("input[name='sfsi_linkedIn_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_linkedIn_countsDisplay']:checked").val(),
542
+ k = 1 == SFSI("input[name='sfsi_linkedIn_countsFrom']").prop("disabled") ? "" : SFSI("input[name='sfsi_linkedIn_countsFrom']:checked").val(),
543
+ y = SFSI("input[name='sfsi_linkedIn_manualCounts']").val(),
544
+ U = 1 == SFSI("input[name='sfsi_youtube_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_youtube_countsDisplay']:checked").val(),
545
+ O = 1 == SFSI("input[name='sfsi_youtube_countsFrom']").prop("disabled") ? "" : SFSI("input[name='sfsi_youtube_countsFrom']:checked").val(),
546
+ T = SFSI("input[name='sfsi_youtube_manualCounts']").val(),
547
+ j = SFSI("input[name='sfsi_youtube_user']").val(),
548
+ P = 1 == SFSI("input[name='sfsi_pinterest_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_pinterest_countsDisplay']:checked").val(),
549
+ M = 1 == SFSI("input[name='sfsi_pinterest_countsFrom']").prop("disabled") ? "" : SFSI("input[name='sfsi_pinterest_countsFrom']:checked").val(),
550
+ L = SFSI("input[name='sfsi_pinterest_manualCounts']").val(),
551
+ B = SFSI("input[name='sfsi_pinterest_user']").val(),
552
+ E = SFSI("input[name='sfsi_pinterest_board']").val(),
553
+ z = 1 == SFSI("input[name='sfsi_instagram_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_instagram_countsDisplay']:checked").val(),
554
+ A = 1 == SFSI("input[name='sfsi_instagram_countsFrom']").prop("disabled") ? "" : SFSI("input[name='sfsi_instagram_countsFrom']:checked").val(),
555
+ N = SFSI("input[name='sfsi_instagram_manualCounts']").val(),
556
+ H = SFSI("input[name='sfsi_instagram_User']").val(),
557
+ ha = SFSI("input[name='sfsi_instagram_clientid']").val(),
558
+ ia = SFSI("input[name='sfsi_instagram_appurl']").val(),
559
+ ja = SFSI("input[name='sfsi_instagram_token']").val(),
560
+
561
+ tc = 1 == SFSI("input[name='sfsi_telegram_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_telegram_countsDisplay']:checked").val(),
562
+ tm = SFSI("input[name='sfsi_telegram_manualCounts']").val(),
563
+
564
+ vc = 1 == SFSI("input[name='sfsi_vk_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_vk_countsDisplay']:checked").val(),
565
+ vm = SFSI("input[name='sfsi_vk_manualCounts']").val(),
566
+
567
+
568
+ oc = 1 == SFSI("input[name='sfsi_ok_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_ok_countsDisplay']:checked").val(),
569
+ om = SFSI("input[name='sfsi_ok_manualCounts']").val(),
570
+
571
+
572
+ wc = 1 == SFSI("input[name='sfsi_weibo_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_weibo_countsDisplay']:checked").val(),
573
+ wm = SFSI("input[name='sfsi_weibo_manualCounts']").val(),
574
+
575
+ wcc = 1 == SFSI("input[name='sfsi_wechat_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_wechat_countsDisplay']:checked").val(),
576
+ wcm = SFSI("input[name='sfsi_wechat_manualCounts']").val(),
577
+ $ = {
578
+ action: "updateSrcn4",
579
+ sfsi_display_counts: e,
580
+ sfsi_email_countsDisplay: t,
581
+ sfsi_email_countsFrom: n,
582
+ sfsi_email_manualCounts: o,
583
+ sfsi_rss_countsDisplay: r,
584
+ sfsi_rss_manualCounts: c,
585
+ sfsi_facebook_countsDisplay: p,
586
+ sfsi_facebook_countsFrom: _,
587
+ sfsi_facebook_mypageCounts: mp,
588
+ sfsi_facebook_manualCounts: l,
589
+ sfsi_twitter_countsDisplay: S,
590
+ sfsi_twitter_countsFrom: u,
591
+ sfsi_twitter_manualCounts: f,
592
+ tw_consumer_key: d,
593
+ tw_consumer_secret: I,
594
+ tw_oauth_access_token: m,
595
+ tw_oauth_access_token_secret: F,
596
+ sfsi_linkedIn_countsDisplay: D,
597
+ sfsi_linkedIn_countsFrom: k,
598
+ sfsi_linkedIn_manualCounts: y,
599
+ ln_company: b,
600
+ ln_api_key: w,
601
+ ln_secret_key: x,
602
+ ln_oAuth_user_token: C,
603
+ sfsi_youtube_countsDisplay: U,
604
+ sfsi_youtube_countsFrom: O,
605
+ sfsi_youtube_manualCounts: T,
606
+ sfsi_youtube_user: j,
607
+ sfsi_youtube_channelId: SFSI("input[name='sfsi_youtube_channelId']").val(),
608
+ sfsi_pinterest_countsDisplay: P,
609
+ sfsi_pinterest_countsFrom: M,
610
+ sfsi_pinterest_manualCounts: L,
611
+ sfsi_pinterest_user: B,
612
+ sfsi_pinterest_board: E,
613
+ sfsi_instagram_countsDisplay: z,
614
+ sfsi_instagram_countsFrom: A,
615
+ sfsi_instagram_manualCounts: N,
616
+ sfsi_instagram_User: H,
617
+ sfsi_instagram_clientid: ha,
618
+ sfsi_instagram_appurl: ia,
619
+ sfsi_instagram_token: ja,
620
+ sfsi_telegram_countsDisplay: tc,
621
+ sfsi_telegram_manualCounts: tm,
622
+ sfsi_vk_countsDisplay: vc,
623
+ sfsi_vk_manualCounts: vm,
624
+ sfsi_ok_countsDisplay: oc,
625
+ sfsi_ok_manualCounts: om,
626
+ sfsi_weibo_countsDisplay: wc,
627
+ sfsi_weibo_manualCounts: wm,
628
+ sfsi_wechat_countsDisplay: wcc,
629
+ sfsi_wechat_manualCounts: wcm,
630
+ nonce: nonce
631
+ };
632
+ console.log($);
633
+ return SFSI.ajax({
634
+ url: sfsi_icon_ajax_object.ajax_url,
635
+ type: "post",
636
+ data: $,
637
+ dataType: "json",
638
+ async: !0,
639
+ success: function (s) {
640
+ if (s == "wrong_nonce") {
641
+ showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 4);
642
+ global_error = 1;
643
+ afterLoad();
644
+ } else {
645
+ "success" == s.res ? (showErrorSuc("success", "Saved !", 4), sfsicollapse("#sfsi_save4"),
646
+ sfsi_showPreviewCounts()) : (showErrorSuc("error", "Unkown error , please try again", 4),
647
+ global_error = 1), afterLoad();
648
+ }
649
+ }
650
+ }), s;
651
+ }
652
+
653
+ function sfsi_update_step5() {
654
+ var nonce = SFSI("#sfsi_save5").attr("data-nonce");
655
+ sfsi_update_step3();
656
+
657
+ var s = sfsi_validationStep5();
658
+
659
+ if (!s) return global_error = 1, !1;
660
+
661
+ beForeLoad();
662
+
663
+ var i = SFSI("input[name='sfsi_icons_size']").val(),
664
+ e = SFSI("input[name='sfsi_icons_perRow']").val(),
665
+ t = SFSI("input[name='sfsi_icons_spacing']").val(),
666
+ n = SFSI("#sfsi_icons_Alignment").val(),
667
+ o = SFSI("input[name='sfsi_icons_ClickPageOpen']:checked").val(),
668
+
669
+ se = SFSI("input[name='sfsi_icons_suppress_errors']:checked").val(),
670
+ c = SFSI("input[name='sfsi_icons_stick']:checked").val(),
671
+ p = SFSI("#sfsi_rssIcon_order").attr("data-index"),
672
+ _ = SFSI("#sfsi_emailIcon_order").attr("data-index"),
673
+ S = SFSI("#sfsi_facebookIcon_order").attr("data-index"),
674
+ u = SFSI("#sfsi_twitterIcon_order").attr("data-index"),
675
+ f = SFSI("#sfsi_youtubeIcon_order").attr("data-index"),
676
+ d = SFSI("#sfsi_pinterestIcon_order").attr("data-index"),
677
+ I = SFSI("#sfsi_instagramIcon_order").attr("data-index"),
678
+ F = SFSI("#sfsi_linkedinIcon_order").attr("data-index"),
679
+ tgi = SFSI("#sfsi_telegramIcon_order").attr("data-index"),
680
+ vki = SFSI("#sfsi_vkIcon_order").attr("data-index"),
681
+ oki = SFSI("#sfsi_okIcon_order").attr("data-index"),
682
+ wbi = SFSI("#sfsi_weiboIcon_order").attr("data-index"),
683
+ wci = SFSI("#sfsi_wechatIcon_order").attr("data-index"),
684
+
685
+ h = new Array();
686
+
687
+ SFSI(".custom_iconOrder").each(function () {
688
+ h.push({
689
+ order: SFSI(this).attr("data-index"),
690
+ ele: SFSI(this).attr("element-id")
691
+ });
692
+ });
693
+
694
+ var v = 1 == SFSI("input[name='sfsi_rss_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_rss_MouseOverText']").val(),
695
+ g = 1 == SFSI("input[name='sfsi_email_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_email_MouseOverText']").val(),
696
+ k = 1 == SFSI("input[name='sfsi_twitter_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_twitter_MouseOverText']").val(),
697
+ y = 1 == SFSI("input[name='sfsi_facebook_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_facebook_MouseOverText']").val(),
698
+ w = 1 == SFSI("input[name='sfsi_linkedIn_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_linkedIn_MouseOverText']").val(),
699
+ x = 1 == SFSI("input[name='sfsi_youtube_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_youtube_MouseOverText']").val(),
700
+ C = 1 == SFSI("input[name='sfsi_pinterest_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_pinterest_MouseOverText']").val(),
701
+ D = 1 == SFSI("input[name='sfsi_instagram_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_instagram_MouseOverText']").val(),
702
+ tg = 1 == SFSI("input[name='sfsi_telegram_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_telegram_MouseOverText']").val(),
703
+ vk = 1 == SFSI("input[name='sfsi_vk_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_vk_MouseOverText']").val(),
704
+ ok = 1 == SFSI("input[name='sfsi_ok_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_ok_MouseOverText']").val(),
705
+ wb = 1 == SFSI("input[name='sfsi_weibo_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_weibo_MouseOverText']").val(),
706
+ wc = 1 == SFSI("input[name='sfsi_wechat_MouseOverText']").prop("disabled") ? "" : SFSI("input[name='sfsi_wechat_MouseOverText']").val(),
707
+
708
+ O = {};
709
+ SFSI("input[name='sfsi_custom_MouseOverTexts[]']").each(function () {
710
+ O[SFSI(this).attr("file-id")] = this.value;
711
+ });
712
+
713
+ var sfsi_custom_social_hide = SFSI("input[name='sfsi_custom_social_hide']").val();
714
+
715
+ var T = {
716
+ action: "updateSrcn5",
717
+ sfsi_icons_size: i,
718
+ sfsi_icons_Alignment: n,
719
+ sfsi_icons_perRow: e,
720
+ sfsi_icons_spacing: t,
721
+ sfsi_icons_ClickPageOpen: o,
722
+ sfsi_icons_suppress_errors: se,
723
+ sfsi_icons_stick: c,
724
+ sfsi_rss_MouseOverText: v,
725
+ sfsi_email_MouseOverText: g,
726
+ sfsi_twitter_MouseOverText: k,
727
+ sfsi_facebook_MouseOverText: y,
728
+ sfsi_youtube_MouseOverText: x,
729
+ sfsi_linkedIn_MouseOverText: w,
730
+ sfsi_pinterest_MouseOverText: C,
731
+ sfsi_instagram_MouseOverText: D,
732
+ sfsi_telegram_MouseOverText: tg,
733
+ sfsi_vk_MouseOverText: vk,
734
+ sfsi_ok_MouseOverText: ok,
735
+ sfsi_weibo_MouseOverText: wb,
736
+ sfsi_wechat_MouseOverText: wc,
737
+ sfsi_custom_MouseOverTexts: O,
738
+ sfsi_rssIcon_order: p,
739
+ sfsi_emailIcon_order: _,
740
+ sfsi_facebookIcon_order: S,
741
+ sfsi_twitterIcon_order: u,
742
+ sfsi_youtubeIcon_order: f,
743
+ sfsi_pinterestIcon_order: d,
744
+ sfsi_instagramIcon_order: I,
745
+ sfsi_linkedinIcon_order: F,
746
+ sfsi_telegramIcon_order: tgi,
747
+ sfsi_vkIcon_order: vki,
748
+ sfsi_okIcon_order: oki,
749
+ sfsi_weiboIcon_order: wbi,
750
+ sfsi_wechatIcon_order: wci,
751
+
752
+ sfsi_custom_orders: h,
753
+ sfsi_custom_social_hide: sfsi_custom_social_hide,
754
+ nonce: nonce
755
+ };
756
+ console.log(T);
757
+ SFSI.ajax({
758
+ url: sfsi_icon_ajax_object.ajax_url,
759
+ type: "post",
760
+ data: T,
761
+ dataType: "json",
762
+ async: !0,
763
+ success: function (s) {
764
+ if (s == "wrong_nonce") {
765
+ showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 5);
766
+ global_error = 1;
767
+ afterLoad();
768
+ } else {
769
+ "success" == s ? (showErrorSuc("success", "Saved !", 5), sfsicollapse("#sfsi_save5")) : (global_error = 1,
770
+ showErrorSuc("error", "Unkown error , please try again", 5)), afterLoad();
771
+ }
772
+ }
773
+ });
774
+ }
775
+
776
+ function sfsi_update_step6() {
777
+ var nonce = SFSI("#sfsi_save6").attr("data-nonce");
778
+ beForeLoad();
779
+ var s = SFSI("input[name='sfsi_show_Onposts']:checked").val(),
780
+ i = SFSI("input[name='sfsi_textBefor_icons']").val(),
781
+ e = SFSI("#sfsi_icons_alignment").val(),
782
+ t = SFSI("#sfsi_icons_DisplayCounts").val(),
783
+ rsub = SFSI("input[name='sfsi_rectsub']:checked").val(),
784
+ rfb = SFSI("input[name='sfsi_rectfb']:checked").val(),
785
+ rpin = SFSI("input[name='sfsi_rectpinit']:checked").val(),
786
+ rshr = SFSI("input[name='sfsi_rectshr']:checked").val(),
787
+ rtwr = SFSI("input[name='sfsi_recttwtr']:checked").val(),
788
+ rfbshare = SFSI("input[name='sfsi_rectfbshare']:checked").val(),
789
+ a = SFSI("input[name='sfsi_display_button_type']:checked").val();
790
+ countshare = SFSI("input[name='sfsi_share_count']:checked").val();
791
+ endpost = SFSI("input[name='sfsi_responsive_icons_end_post']:checked").val();
792
+
793
+ var responsive_icons = {
794
+ "default_icons": {},
795
+ "settings": {}
796
+ };
797
+ SFSI('.sfsi_responsive_default_icon_container input[type="checkbox"]').each(function (index, obj) {
798
+ var data_obj = {};
799
+ data_obj.active = ('checked' == SFSI(obj).attr('checked')) ? 'yes' : 'no';
800
+ var iconname = SFSI(obj).attr('data-icon');
801
+ var next_section = SFSI(obj).parent().parent();
802
+ data_obj.text = next_section.find('input[name="sfsi_responsive_' + iconname + '_input"]').val();
803
+ data_obj.url = next_section.find('input[name="sfsi_responsive_' + iconname + '_url_input"]').val();
804
+ responsive_icons.default_icons[iconname] = data_obj;
805
+ });
806
+ SFSI('.sfsi_responsive_custom_icon_container input[type="checkbox"]').each(function (index, obj) {
807
+ if (SFSI(obj).attr('id') != "sfsi_responsive_custom_new_display") {
808
+ var data_obj = {};
809
+ data_obj.active = 'checked' == SFSI(obj).attr('checked') ? 'yes' : 'no';
810
+ var icon_index = SFSI(obj).attr('data-custom-index');
811
+ var next_section = SFSI(obj).parent().parent();
812
+ data_obj['added'] = SFSI('input[name="sfsi_responsive_custom_' + index + '_added"]').val();
813
+ data_obj.icon = next_section.find('img').attr('src');
814
+ data_obj["bg-color"] = next_section.find('.sfsi_bg-color-picker').val();
815
+
816
+ data_obj.text = next_section.find('input[name="sfsi_responsive_custom_' + icon_index + '_input"]').val();
817
+ data_obj.url = next_section.find('input[name="sfsi_responsive_custom_' + icon_index + '_url_input"]').val();
818
+ responsive_icons.custom_icons[index] = data_obj;
819
+ }
820
+ });
821
+ responsive_icons.settings.icon_size = SFSI('select[name="sfsi_responsive_icons_settings_icon_size"]').val();
822
+ responsive_icons.settings.icon_width_type = SFSI('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val();
823
+ responsive_icons.settings.icon_width_size = SFSI('input[name="sfsi_responsive_icons_sttings_icon_width_size"]').val();
824
+ responsive_icons.settings.edge_type = SFSI('select[name="sfsi_responsive_icons_settings_edge_type"]').val();
825
+ responsive_icons.settings.edge_radius = SFSI('select[name="sfsi_responsive_icons_settings_edge_radius"]').val();
826
+ responsive_icons.settings.style = SFSI('select[name="sfsi_responsive_icons_settings_style"]').val();
827
+ responsive_icons.settings.margin = SFSI('input[name="sfsi_responsive_icons_settings_margin"]').val();
828
+ responsive_icons.settings.text_align = SFSI('select[name="sfsi_responsive_icons_settings_text_align"]').val();
829
+ responsive_icons.settings.show_count = SFSI('input[name="sfsi_responsive_icon_show_count"]:checked').val();
830
+ responsive_icons.settings.counter_color = SFSI('input[name="sfsi_responsive_counter_color"]').val();
831
+ responsive_icons.settings.counter_bg_color = SFSI('input[name="sfsi_responsive_counter_bg_color"]').val();
832
+ responsive_icons.settings.share_count_text = SFSI('input[name="sfsi_responsive_counter_share_count_text"]').val();
833
+ responsive_icons.settings.show_count = countshare;
834
+ n = {
835
+ action: "updateSrcn6",
836
+ sfsi_show_Onposts: s,
837
+ sfsi_icons_DisplayCounts: t,
838
+ sfsi_icons_alignment: e,
839
+ sfsi_textBefor_icons: i,
840
+ sfsi_rectsub: rsub,
841
+ sfsi_rectfb: rfb,
842
+ sfsi_rectpinit: rpin,
843
+ sfsi_rectshr: rshr,
844
+ sfsi_recttwtr: rtwr,
845
+ sfsi_rectfbshare: rfbshare,
846
+ sfsi_responsive_icons: responsive_icons,
847
+ sfsi_display_button_type: a,
848
+ sfsi_responsive_icons_end_post:endpost,
849
+ sfsi_share_count: countshare,
850
+ nonce: nonce
851
+ };
852
+ SFSI.ajax({
853
+ url: sfsi_icon_ajax_object.ajax_url,
854
+ type: "post",
855
+ data: n,
856
+ dataType: "json",
857
+ async: !0,
858
+ success: function (s) {
859
+ if (s == "wrong_nonce") {
860
+ showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 6);
861
+ global_error = 1;
862
+ afterLoad();
863
+ } else {
864
+ "success" == s ? (showErrorSuc("success", "Saved !", 6), sfsicollapse("#sfsi_save6")) : (global_error = 1,
865
+ showErrorSuc("error", "Unkown error , please try again", 6)), afterLoad();
866
+ }
867
+ }
868
+ });
869
+ }
870
+
871
+ function sfsi_update_step7() {
872
+ var nonce = SFSI("#sfsi_save7").attr("data-nonce");
873
+ var s = sfsi_validationStep7();
874
+ if (!s) return global_error = 1, !1;
875
+ beForeLoad();
876
+ var i = SFSI("input[name='sfsi_popup_text']").val(),
877
+ e = SFSI("#sfsi_popup_font option:selected").val(),
878
+ t = SFSI("#sfsi_popup_fontStyle option:selected").val(),
879
+ color = SFSI("input[name='sfsi_popup_fontColor']").val(),
880
+ n = SFSI("input[name='sfsi_popup_fontSize']").val(),
881
+ o = SFSI("input[name='sfsi_popup_background_color']").val(),
882
+ a = SFSI("input[name='sfsi_popup_border_color']").val(),
883
+ r = SFSI("input[name='sfsi_popup_border_thickness']").val(),
884
+ c = SFSI("input[name='sfsi_popup_border_shadow']:checked").val(),
885
+ p = SFSI("input[name='sfsi_Show_popupOn']:checked").val(),
886
+ _ = [];
887
+ SFSI("#sfsi_Show_popupOn_PageIDs :selected").each(function (s, i) {
888
+ _[s] = SFSI(i).val();
889
+ });
890
+ var l = SFSI("input[name='sfsi_Shown_pop']:checked").val(),
891
+ S = SFSI("input[name='sfsi_Shown_popupOnceTime']").val(),
892
+ u = SFSI("#sfsi_Shown_popuplimitPerUserTime").val(),
893
+ f = {
894
+ action: "updateSrcn7",
895
+ sfsi_popup_text: i,
896
+ sfsi_popup_font: e,
897
+ sfsi_popup_fontColor: color,
898
+ /*sfsi_popup_fontStyle: t,*/
899
+ sfsi_popup_fontSize: n,
900
+ sfsi_popup_background_color: o,
901
+ sfsi_popup_border_color: a,
902
+ sfsi_popup_border_thickness: r,
903
+ sfsi_popup_border_shadow: c,
904
+ sfsi_Show_popupOn: p,
905
+ sfsi_Show_popupOn_PageIDs: _,
906
+ sfsi_Shown_pop: l,
907
+ sfsi_Shown_popupOnceTime: S,
908
+ sfsi_Shown_popuplimitPerUserTime: u,
909
+ nonce: nonce
910
+ };
911
+ SFSI.ajax({
912
+ url: sfsi_icon_ajax_object.ajax_url,
913
+ type: "post",
914
+ data: f,
915
+ dataType: "json",
916
+ async: !0,
917
+ success: function (s) {
918
+ if (s == "wrong_nonce") {
919
+ showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 7);
920
+ afterLoad();
921
+ } else {
922
+ "success" == s ? (showErrorSuc("success", "Saved !", 7), sfsicollapse("#sfsi_save7")) : showErrorSuc("error", "Unkown error , please try again", 7),
923
+ afterLoad();
924
+ }
925
+ }
926
+ });
927
+ }
928
+
929
+ function sfsi_update_step8() {
930
+ var nonce = SFSI("#sfsi_save8").attr("data-nonce");
931
+ beForeLoad();
932
+ var ie = SFSI("input[name='sfsi_form_adjustment']:checked").val(),
933
+ je = SFSI("input[name='sfsi_form_height']").val(),
934
+ ke = SFSI("input[name='sfsi_form_width']").val(),
935
+ le = SFSI("input[name='sfsi_form_border']:checked").val(),
936
+ me = SFSI("input[name='sfsi_form_border_thickness']").val(),
937
+ ne = SFSI("input[name='sfsi_form_border_color']").val(),
938
+ oe = SFSI("input[name='sfsi_form_background']").val(),
939
+
940
+ ae = SFSI("input[name='sfsi_form_heading_text']").val(),
941
+ be = SFSI("#sfsi_form_heading_font option:selected").val(),
942
+ ce = SFSI("#sfsi_form_heading_fontstyle option:selected").val(),
943
+ de = SFSI("input[name='sfsi_form_heading_fontcolor']").val(),
944
+ ee = SFSI("input[name='sfsi_form_heading_fontsize']").val(),
945
+ fe = SFSI("#sfsi_form_heading_fontalign option:selected").val(),
946
+
947
+ ue = SFSI("input[name='sfsi_form_field_text']").val(),
948
+ ve = SFSI("#sfsi_form_field_font option:selected").val(),
949
+ we = SFSI("#sfsi_form_field_fontstyle option:selected").val(),
950
+ xe = SFSI("input[name='sfsi_form_field_fontcolor']").val(),
951
+ ye = SFSI("input[name='sfsi_form_field_fontsize']").val(),
952
+ ze = SFSI("#sfsi_form_field_fontalign option:selected").val(),
953
+
954
+ i = SFSI("input[name='sfsi_form_button_text']").val(),
955
+ j = SFSI("#sfsi_form_button_font option:selected").val(),
956
+ k = SFSI("#sfsi_form_button_fontstyle option:selected").val(),
957
+ l = SFSI("input[name='sfsi_form_button_fontcolor']").val(),
958
+ m = SFSI("input[name='sfsi_form_button_fontsize']").val(),
959
+ n = SFSI("#sfsi_form_button_fontalign option:selected").val(),
960
+ o = SFSI("input[name='sfsi_form_button_background']").val();
961
+
962
+ var f = {
963
+ action: "updateSrcn8",
964
+ sfsi_form_adjustment: ie,
965
+ sfsi_form_height: je,
966
+ sfsi_form_width: ke,
967
+ sfsi_form_border: le,
968
+ sfsi_form_border_thickness: me,
969
+ sfsi_form_border_color: ne,
970
+ sfsi_form_background: oe,
971
+
972
+ sfsi_form_heading_text: ae,
973
+ sfsi_form_heading_font: be,
974
+ sfsi_form_heading_fontstyle: ce,
975
+ sfsi_form_heading_fontcolor: de,
976
+ sfsi_form_heading_fontsize: ee,
977
+ sfsi_form_heading_fontalign: fe,
978
+
979
+ sfsi_form_field_text: ue,
980
+ sfsi_form_field_font: ve,
981
+ sfsi_form_field_fontstyle: we,
982
+ sfsi_form_field_fontcolor: xe,
983
+ sfsi_form_field_fontsize: ye,
984
+ sfsi_form_field_fontalign: ze,
985
+
986
+ sfsi_form_button_text: i,
987
+ sfsi_form_button_font: j,
988
+ sfsi_form_button_fontstyle: k,
989
+ sfsi_form_button_fontcolor: l,
990
+ sfsi_form_button_fontsize: m,
991
+ sfsi_form_button_fontalign: n,
992
+ sfsi_form_button_background: o,
993
+
994
+ nonce: nonce
995
+ };
996
+ SFSI.ajax({
997
+ url: sfsi_icon_ajax_object.ajax_url,
998
+ type: "post",
999
+ data: f,
1000
+ dataType: "json",
1001
+ async: !0,
1002
+ success: function (s) {
1003
+ if (s == "wrong_nonce") {
1004
+ showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 7);
1005
+ afterLoad();
1006
+ } else {
1007
+ "success" == s ? (showErrorSuc("success", "Saved !", 8), sfsicollapse("#sfsi_save8"), create_suscriber_form()) : showErrorSuc("error", "Unkown error , please try again", 8),
1008
+ afterLoad();
1009
+ }
1010
+ }
1011
+ });
1012
+ }
1013
+
1014
+ // Queestion 3
1015
+ function sfsi_update_step9() {
1016
+ var nonce = SFSI("#sfsi_save9").attr("data-nonce");
1017
+ beForeLoad();
1018
+
1019
+ var i_float = SFSI("input[name='sfsi_icons_float']:checked").val(),
1020
+ i_floatP = SFSI("input[name='sfsi_icons_floatPosition']:checked").val(),
1021
+ i_floatMt = SFSI("input[name='sfsi_icons_floatMargin_top']").val(),
1022
+ i_floatMb = SFSI("input[name='sfsi_icons_floatMargin_bottom']").val(),
1023
+ i_floatMl = SFSI("input[name='sfsi_icons_floatMargin_left']").val(),
1024
+ i_floatMr = SFSI("input[name='sfsi_icons_floatMargin_right']").val(),
1025
+ i_disableFloat = SFSI("input[name='sfsi_disable_floaticons']:checked").val(),
1026
+
1027
+ show_via_widget = SFSI("input[name='sfsi_show_via_widget']").val(),
1028
+ show_via__shortcode = SFSI("input[name='sfsi_show_via_shortcode']:checked").length==0?"no":"yes",
1029
+ sfsi_show_via_afterposts = SFSI("input[name='sfsi_show_via_afterposts']").val();
1030
+
1031
+ var f = {
1032
+
1033
+ action: "updateSrcn9",
1034
+
1035
+ sfsi_icons_float: i_float,
1036
+ sfsi_icons_floatPosition: i_floatP,
1037
+ sfsi_icons_floatMargin_top: i_floatMt,
1038
+ sfsi_icons_floatMargin_bottom: i_floatMb,
1039
+ sfsi_icons_floatMargin_left: i_floatMl,
1040
+ sfsi_icons_floatMargin_right: i_floatMr,
1041
+ sfsi_disable_floaticons: i_disableFloat,
1042
+
1043
+ sfsi_show_via_widget: show_via_widget,
1044
+ sfsi_show_via_shortcode: show_via__shortcode,
1045
+ sfsi_show_via_afterposts: sfsi_show_via_afterposts,
1046
+ nonce: nonce
1047
+ };
1048
+ SFSI.ajax({
1049
+ url: sfsi_icon_ajax_object.ajax_url,
1050
+ type: "post",
1051
+ data: f,
1052
+ dataType: "json",
1053
+ async: !0,
1054
+ success: function (s) {
1055
+ if (s == "wrong_nonce") {
1056
+ showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 9);
1057
+ afterLoad();
1058
+ } else {
1059
+ "success" == s ? (showErrorSuc("success", "Saved !", 9), sfsicollapse("#sfsi_save9")) : showErrorSuc("error", "Unkown error , please try again", 9),
1060
+ afterLoad();
1061
+ }
1062
+ }
1063
+ });
1064
+ }
1065
+
1066
+ function sfsi_validationStep2() {
1067
+ //var class_name= SFSI(element).hasAttr('sfsi_validate');
1068
+ SFSI('input').removeClass('inputError'); // remove previous error
1069
+ if (sfsi_validator(SFSI('input[name="sfsi_rss_display"]'), 'checked')) {
1070
+ if (!sfsi_validator(SFSI('input[name="sfsi_rss_url"]'), 'url')) {
1071
+ showErrorSuc("error", "Error : Invalid Rss url ", 2);
1072
+ SFSI('input[name="sfsi_rss_url"]').addClass('inputError');
1073
+
1074
+ return false;
1075
+ }
1076
+ }
1077
+ /* validate facebook */
1078
+ if (sfsi_validator(SFSI('input[name="sfsi_facebookPage_option"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_facebookPage_option"]'), 'checked')) {
1079
+ if (!sfsi_validator(SFSI('input[name="sfsi_facebookPage_url"]'), 'blank')) {
1080
+ showErrorSuc("error", "Error : Invalid Facebook page url ", 2);
1081
+ SFSI('input[name="sfsi_facebookPage_url"]').addClass('inputError');
1082
+
1083
+ return false;
1084
+ }
1085
+ }
1086
+ /* validate twitter user name */
1087
+ if (sfsi_validator(SFSI('input[name="sfsi_twitter_followme"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_twitter_followme"]'), 'checked')) {
1088
+ if (!sfsi_validator(SFSI('input[name="sfsi_twitter_followUserName"]'), 'blank')) {
1089
+ showErrorSuc("error", "Error : Invalid Twitter UserName ", 2);
1090
+ SFSI('input[name="sfsi_twitter_followUserName"]').addClass('inputError');
1091
+ return false;
1092
+ }
1093
+ }
1094
+ /* validate twitter about page */
1095
+ if (sfsi_validator(SFSI('input[name="sfsi_twitter_aboutPage"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_twitter_aboutPage"]'), 'checked')) {
1096
+ if (!sfsi_validator(SFSI('#sfsi_twitter_aboutPageText'), 'blank')) {
1097
+ showErrorSuc("error", "Error : Tweet about my page is blank ", 2);
1098
+ SFSI('#sfsi_twitter_aboutPageText').addClass('inputError');
1099
+ return false;
1100
+ }
1101
+ }
1102
+ /* twitter validation */
1103
+ if (sfsi_validator(SFSI('input[name="sfsi_twitter_page"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_twitter_page"]'), 'checked')) {
1104
+ if (!sfsi_validator(SFSI('input[name="sfsi_twitter_pageURL"]'), 'blank')) {
1105
+ showErrorSuc("error", "Error : Invalid twitter page Url ", 2);
1106
+ SFSI('input[name="sfsi_twitter_pageURL"]').addClass('inputError');
1107
+ return false;
1108
+ }
1109
+ }
1110
+
1111
+ /* youtube validation */
1112
+ if (sfsi_validator(SFSI('input[name="sfsi_youtube_page"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_youtube_page"]'), 'checked')) {
1113
+ if (!sfsi_validator(SFSI('input[name="sfsi_youtube_pageUrl"]'), 'blank')) {
1114
+ showErrorSuc("error", "Error : Invalid youtube Url ", 2);
1115
+ SFSI('input[name="sfsi_youtube_pageUrl"]').addClass('inputError');
1116
+ return false;
1117
+ }
1118
+ }
1119
+ /* youtube validation */
1120
+ if (sfsi_validator(SFSI('input[name="sfsi_youtube_page"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_youtube_follow"]'), 'checked')) {
1121
+ cls = SFSI("input[name='sfsi_youtubeusernameorid']:checked").val();
1122
+ if (cls == 'name' && !sfsi_validator(SFSI('input[name="sfsi_ytube_user"]'), 'blank')) {
1123
+ showErrorSuc("error", "Error : Invalid youtube user name", 2);
1124
+ SFSI('input[name="sfsi_ytube_user"]').addClass('inputError');
1125
+ return false;
1126
+ }
1127
+
1128
+ if (cls == 'id' && !sfsi_validator(SFSI('input[name="sfsi_ytube_chnlid"]'), 'blank')) {
1129
+ showErrorSuc("error", "Error : Invalid youtube Channel ID ", 2);
1130
+ SFSI('input[name="sfsi_ytube_user"]').addClass('inputError');
1131
+ return false;
1132
+ }
1133
+ }
1134
+ /* pinterest validation */
1135
+ if (sfsi_validator(SFSI('input[name="sfsi_pinterest_page"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_pinterest_page"]'), 'checked')) {
1136
+ if (!sfsi_validator(SFSI('input[name="sfsi_pinterest_pageUrl"]'), 'blank')) {
1137
+ showErrorSuc("error", "Error : Invalid pinterest page url ", 2);
1138
+ SFSI('input[name="sfsi_pinterest_pageUrl"]').addClass('inputError');
1139
+ return false;
1140
+ }
1141
+ }
1142
+ /* instagram validation */
1143
+ if (sfsi_validator(SFSI('input[name="sfsi_instagram_display"]'), 'checked')) {
1144
+ if (!sfsi_validator(SFSI('input[name="sfsi_instagram_pageUrl"]'), 'blank')) {
1145
+ showErrorSuc("error", "Error : Invalid Instagram url ", 2);
1146
+ SFSI('input[name="sfsi_instagram_pageUrl"]').addClass('inputError');
1147
+ return false;
1148
+ }
1149
+ }
1150
+ /* telegram validation */
1151
+ if (sfsi_validator(SFSI('input[name="sfsi_telegram_display"]'), 'checked')) {
1152
+ if (!sfsi_validator(SFSI('input[name="sfsi_telegram_username"]'), 'blank')) {
1153
+ showErrorSuc("error", "Error : Invalid telegram username ", 2);
1154
+ SFSI('input[name="sfsi_telegram_username"]').addClass('inputError');
1155
+ return false;
1156
+ }
1157
+ }
1158
+ /* telegram validation */
1159
+ if (sfsi_validator(SFSI('input[name="sfsi_telegram_display"]'), 'checked')) {
1160
+ if (!sfsi_validator(SFSI('input[name="sfsi_telegram_message"]'), 'blank')) {
1161
+ showErrorSuc("error", "Error : Invalid Message ", 2);
1162
+ SFSI('input[name="sfsi_telegram_message"]').addClass('inputError');
1163
+ return false;
1164
+ }
1165
+ }
1166
+ /* vk validation */
1167
+ if (sfsi_validator(SFSI('input[name="sfsi_vk_display"]'), 'checked')) {
1168
+ if (!sfsi_validator(SFSI('input[name="sfsi_vk_pageURL"]'), 'blank')) {
1169
+ showErrorSuc("error", "Error : Invalid vk url ", 2);
1170
+ SFSI('input[name="sfsi_vk_pageURL"]').addClass('inputError');
1171
+ return false;
1172
+ }
1173
+ }
1174
+ /* ok validation */
1175
+ if (sfsi_validator(SFSI('input[name="sfsi_ok_display"]'), 'checked')) {
1176
+ if (!sfsi_validator(SFSI('input[name="sfsi_ok_pageURL"]'), 'blank')) {
1177
+ showErrorSuc("error", "Error : Invalid ok url ", 2);
1178
+ SFSI('input[name="sfsi_ok_pageURL"]').addClass('inputError');
1179
+ return false;
1180
+ }
1181
+ }
1182
+ /* weibo validation */
1183
+ if (sfsi_validator(SFSI('input[name="sfsi_weibo_display"]'), 'checked')) {
1184
+ if (!sfsi_validator(SFSI('input[name="sfsi_weibo_pageURL"]'), 'blank')) {
1185
+ showErrorSuc("error", "Error : Invalid weibo url ", 2);
1186
+ SFSI('input[name="sfsi_weibo_pageURL"]').addClass('inputError');
1187
+ return false;
1188
+ }
1189
+ }
1190
+ /* LinkedIn validation */
1191
+ if (sfsi_validator(SFSI('input[name="sfsi_linkedin_page"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_linkedin_page"]'), 'checked')) {
1192
+ if (!sfsi_validator(SFSI('input[name="sfsi_linkedin_pageURL"]'), 'blank')) {
1193
+ showErrorSuc("error", "Error : Invalid LinkedIn page url ", 2);
1194
+ SFSI('input[name="sfsi_linkedin_pageURL"]').addClass('inputError');
1195
+ return false;
1196
+ }
1197
+ }
1198
+ if (sfsi_validator(SFSI('input[name="sfsi_linkedin_recommendBusines"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_linkedin_recommendBusines"]'), 'checked')) {
1199
+ if (!sfsi_validator(SFSI('input[name="sfsi_linkedin_recommendProductId"]'), 'blank') || !sfsi_validator(SFSI('input[name="sfsi_linkedin_recommendCompany"]'), 'blank')) {
1200
+ showErrorSuc("error", "Error : Please Enter Product Id and Company for LinkedIn Recommendation ", 2);
1201
+ SFSI('input[name="sfsi_linkedin_recommendProductId"]').addClass('inputError');
1202
+ SFSI('input[name="sfsi_linkedin_recommendCompany"]').addClass('inputError');
1203
+ return false;
1204
+ }
1205
+ }
1206
+ /* validate custom links */
1207
+ var er = 0;
1208
+ SFSI("input[name='sfsi_CustomIcon_links[]']").each(function () {
1209
+
1210
+ //if(!sfsi_validator(SFSI(this),'blank') || !sfsi_validator(SFSI(SFSI(this)),'url') )
1211
+ if (!sfsi_validator(SFSI(this), 'blank')) {
1212
+ showErrorSuc("error", "Error : Please Enter a valid Custom link ", 2);
1213
+ SFSI(this).addClass('inputError');
1214
+ er = 1;
1215
+ }
1216
+ });
1217
+ if (!er) return true;
1218
+ else return false;
1219
+ }
1220
+
1221
+ function sfsi_validationStep3() {
1222
+ SFSI('input').removeClass('inputError'); // remove previous error
1223
+ /* validate shuffle effect */
1224
+ if (sfsi_validator(SFSI('input[name="sfsi_shuffle_icons"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_shuffle_icons"]'), 'checked')) {
1225
+ if ((!sfsi_validator(SFSI('input[name="sfsi_shuffle_Firstload"]'), 'activte') || !sfsi_validator(SFSI('input[name="sfsi_shuffle_Firstload"]'), 'checked')) && (!sfsi_validator(SFSI('input[name="sfsi_shuffle_interval"]'), 'activte') || !sfsi_validator(SFSI('input[name="sfsi_shuffle_interval"]'), 'checked'))) {
1226
+ showErrorSuc("error", "Error : Please Chose a Shuffle option ", 3);
1227
+ SFSI('input[name="sfsi_shuffle_Firstload"]').addClass('inputError');
1228
+ SFSI('input[name="sfsi_shuffle_interval"]').addClass('inputError');
1229
+ return false;
1230
+ }
1231
+ }
1232
+ if (!sfsi_validator(SFSI('input[name="sfsi_shuffle_icons"]'), 'checked') && (sfsi_validator(SFSI('input[name="sfsi_shuffle_Firstload"]'), 'checked') || sfsi_validator(SFSI('input[name="sfsi_shuffle_interval"]'), 'checked'))) {
1233
+ showErrorSuc("error", "Error : Please check \"Shuffle them automatically\" option also ", 3);
1234
+ SFSI('input[name="sfsi_shuffle_Firstload"]').addClass('inputError');
1235
+ SFSI('input[name="sfsi_shuffle_interval"]').addClass('inputError');
1236
+ return false;
1237
+ }
1238
+
1239
+ /* validate twitter user name */
1240
+ if (sfsi_validator(SFSI('input[name="sfsi_shuffle_interval"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_shuffle_interval"]'), 'checked')) {
1241
+
1242
+ if (!sfsi_validator(SFSI('input[name="sfsi_shuffle_intervalTime"]'), 'blank') || !sfsi_validator(SFSI('input[name="sfsi_shuffle_intervalTime"]'), 'int')) {
1243
+ showErrorSuc("error", "Error : Invalid shuffle time interval", 3);
1244
+ SFSI('input[name="sfsi_shuffle_intervalTime"]').addClass('inputError');
1245
+ return false;
1246
+ }
1247
+ }
1248
+ return true;
1249
+ }
1250
+
1251
+ function sfsi_validationStep4() {
1252
+ //var class_name= SFSI(element).hasAttr('sfsi_validate');
1253
+ /* validate email */
1254
+ if (sfsi_validator(SFSI('input[name="sfsi_email_countsDisplay"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_email_countsDisplay"]'), 'checked')) {
1255
+ if (SFSI('input[name="sfsi_email_countsFrom"]:checked').val() == 'manual') {
1256
+ if (!sfsi_validator(SFSI('input[name="sfsi_email_manualCounts"]'), 'blank')) {
1257
+ showErrorSuc("error", "Error : Please Enter manual counts for Email icon ", 4);
1258
+ SFSI('input[name="sfsi_email_manualCounts"]').addClass('inputError');
1259
+ return false;
1260
+ }
1261
+ }
1262
+ }
1263
+ /* validate RSS count */
1264
+ if (sfsi_validator(SFSI('input[name="sfsi_rss_countsDisplay"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_rss_countsDisplay"]'), 'checked')) {
1265
+ if (!sfsi_validator(SFSI('input[name="sfsi_rss_manualCounts"]'), 'blank')) {
1266
+ showErrorSuc("error", "Error : Please Enter manual counts for Rss icon ", 4);
1267
+ SFSI('input[name="sfsi_rss_countsDisplay"]').addClass('inputError');
1268
+ return false;
1269
+ }
1270
+ }
1271
+ /* validate facebook */
1272
+ if (sfsi_validator(SFSI('input[name="sfsi_facebook_countsDisplay"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_facebook_countsDisplay"]'), 'checked')) {
1273
+ /*if(SFSI('input[name="sfsi_facebook_countsFrom"]:checked').val()=='likes' )
1274
+ {
1275
+ if(!sfsi_validator(SFSI('input[name="sfsi_facebook_PageLink"]'),'blank'))
1276
+ { showErrorSuc("error","Error : Please Enter facebook page Url ",4);
1277
+ SFSI('input[name="sfsi_facebook_PageLink"]').addClass('inputError');
1278
+ return false;
1279
+ }
1280
+ } */
1281
+ if (SFSI('input[name="sfsi_facebook_countsFrom"]:checked').val() == 'manual') {
1282
+ if (!sfsi_validator(SFSI('input[name="sfsi_facebook_manualCounts"]'), 'blank') && !sfsi_validator(SFSI('input[name="sfsi_facebook_manualCounts"]'), 'url')) {
1283
+ showErrorSuc("error", "Error : Please Enter a valid facebook manual counts ", 4);
1284
+ SFSI('input[name="sfsi_facebook_manualCounts"]').addClass('inputError');
1285
+ return false;
1286
+ }
1287
+ }
1288
+ }
1289
+
1290
+ /* validate twitter */
1291
+ if (sfsi_validator(SFSI('input[name="sfsi_twitter_countsDisplay"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_twitter_countsDisplay"]'), 'checked')) {
1292
+ if (SFSI('input[name="sfsi_twitter_countsFrom"]:checked').val() == 'source') {
1293
+ if (!sfsi_validator(SFSI('input[name="tw_consumer_key"]'), 'blank')) {
1294
+ showErrorSuc("error", "Error : Please Enter a valid consumer key", 4);
1295
+ SFSI('input[name="tw_consumer_key"]').addClass('inputError');
1296
+ return false;
1297
+ }
1298
+ if (!sfsi_validator(SFSI('input[name="tw_consumer_secret"]'), 'blank')) {
1299
+ showErrorSuc("error", "Error : Please Enter a valid consume secret ", 4);
1300
+ SFSI('input[name="tw_consumer_secret"]').addClass('inputError');
1301
+ return false;
1302
+ }
1303
+ if (!sfsi_validator(SFSI('input[name="tw_oauth_access_token"]'), 'blank')) {
1304
+ showErrorSuc("error", "Error : Please Enter a valid oauth access token", 4);
1305
+ SFSI('input[name="tw_oauth_access_token"]').addClass('inputError');
1306
+ return false;
1307
+ }
1308
+ if (!sfsi_validator(SFSI('input[name="tw_oauth_access_token_secret"]'), 'blank')) {
1309
+ showErrorSuc("error", "Error : Please Enter a oAuth access token secret", 4);
1310
+ SFSI('input[name="tw_oauth_access_token_secret"]').addClass('inputError');
1311
+ return false;
1312
+ }
1313
+ }
1314
+ if (SFSI('input[name="sfsi_linkedIn_countsFrom"]:checked').val() == 'manual') {
1315
+
1316
+ if (!sfsi_validator(SFSI('input[name="sfsi_twitter_manualCounts"]'), 'blank')) {
1317
+ showErrorSuc("error", "Error : Please Enter Twitter manual counts ", 4);
1318
+ SFSI('input[name="sfsi_twitter_manualCounts"]').addClass('inputError');
1319
+ return false;
1320
+ }
1321
+ }
1322
+ }
1323
+ /* validate LinkedIn */
1324
+ if (sfsi_validator(SFSI('input[name="sfsi_linkedIn_countsDisplay"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_linkedIn_countsDisplay"]'), 'checked')) {
1325
+ if (SFSI('input[name="sfsi_linkedIn_countsFrom"]:checked').val() == 'follower') {
1326
+ if (!sfsi_validator(SFSI('input[name="ln_company"]'), 'blank')) {
1327
+ showErrorSuc("error", "Error : Please Enter a valid company name", 4);
1328
+ SFSI('input[name="ln_company"]').addClass('inputError');
1329
+ return false;
1330
+ }
1331
+ if (!sfsi_validator(SFSI('input[name="ln_api_key"]'), 'blank')) {
1332
+ showErrorSuc("error", "Error : Please Enter a valid API key ", 4);
1333
+ SFSI('input[name="ln_api_key"]').addClass('inputError');
1334
+ return false;
1335
+ }
1336
+ if (!sfsi_validator(SFSI('input[name="ln_secret_key"]'), 'blank')) {
1337
+ showErrorSuc("error", "Error : Please Enter a valid secret ", 4);
1338
+ SFSI('input[name="ln_secret_key"]').addClass('inputError');
1339
+ return false;
1340
+ }
1341
+ if (!sfsi_validator(SFSI('input[name="ln_oAuth_user_token"]'), 'blank')) {
1342
+ showErrorSuc("error", "Error : Please Enter a oAuth Access Token", 4);
1343
+ SFSI('input[name="ln_oAuth_user_token"]').addClass('inputError');
1344
+ return false;
1345
+ }
1346
+ }
1347
+ if (SFSI('input[name="sfsi_linkedIn_countsFrom"]:checked').val() == 'manual') {
1348
+ if (!sfsi_validator(SFSI('input[name="sfsi_linkedIn_manualCounts"]'), 'blank')) {
1349
+ showErrorSuc("error", "Error : Please Enter LinkedIn manual counts ", 4);
1350
+ SFSI('input[name="sfsi_linkedIn_manualCounts"]').addClass('inputError');
1351
+ return false;
1352
+ }
1353
+ }
1354
+ }
1355
+ /* validate youtube */
1356
+ if (sfsi_validator(SFSI('input[name="sfsi_youtube_countsDisplay"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_youtube_countsDisplay"]'), 'checked')) {
1357
+ if (SFSI('input[name="sfsi_youtube_countsFrom"]:checked').val() == 'subscriber') {
1358
+ if (
1359
+ !sfsi_validator(SFSI('input[name="sfsi_youtube_user"]'), 'blank') &&
1360
+ !sfsi_validator(SFSI('input[name="sfsi_youtube_channelId"]'), 'blank')
1361
+ ) {
1362
+ showErrorSuc("error", "Error : Please Enter a youtube user name or channel id", 4);
1363
+ SFSI('input[name="sfsi_youtube_user"]').addClass('inputError');
1364
+ SFSI('input[name="sfsi_youtube_channelId"]').addClass('inputError');
1365
+ return false;
1366
+ }
1367
+ }
1368
+ if (SFSI('input[name="sfsi_youtube_countsFrom"]:checked').val() == 'manual') {
1369
+ if (!sfsi_validator(SFSI('input[name="sfsi_youtube_manualCounts"]'), 'blank')) {
1370
+ showErrorSuc("error", "Error : Please Enter youtube manual counts ", 4);
1371
+ SFSI('input[name="sfsi_youtube_manualCounts"]').addClass('inputError');
1372
+ return false;
1373
+ }
1374
+ }
1375
+ }
1376
+ /* validate pinterest */
1377
+ if (sfsi_validator(SFSI('input[name="sfsi_pinterest_countsDisplay"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_pinterest_countsDisplay"]'), 'checked')) {
1378
+ if (SFSI('input[name="sfsi_pinterest_countsFrom"]:checked').val() == 'manual') {
1379
+ if (!sfsi_validator(SFSI('input[name="sfsi_pinterest_manualCounts"]'), 'blank')) {
1380
+ showErrorSuc("error", "Error : Please Enter Pinterest manual counts ", 4);
1381
+ SFSI('input[name="sfsi_pinterest_manualCounts"]').addClass('inputError');
1382
+ return false;
1383
+ }
1384
+ }
1385
+ }
1386
+ /* validate instagram */
1387
+ if (sfsi_validator(SFSI('input[name="sfsi_instagram_countsDisplay"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_instagram_countsDisplay"]'), 'checked')) {
1388
+ if (SFSI('input[name="sfsi_instagram_countsFrom"]:checked').val() == 'manual') {
1389
+ if (!sfsi_validator(SFSI('input[name="sfsi_instagram_manualCounts"]'), 'blank')) {
1390
+ showErrorSuc("error", "Error : Please Enter Instagram manual counts ", 4);
1391
+ SFSI('input[name="sfsi_instagram_manualCounts"]').addClass('inputError');
1392
+ return false;
1393
+ }
1394
+ }
1395
+ if (SFSI('input[name="sfsi_instagram_countsFrom"]:checked').val() == 'followers') {
1396
+ if (!sfsi_validator(SFSI('input[name="sfsi_instagram_User"]'), 'blank')) {
1397
+ showErrorSuc("error", "Error : Please Enter a instagram user name", 4);
1398
+ SFSI('input[name="sfsi_instagram_User"]').addClass('inputError');
1399
+ return false;
1400
+ }
1401
+ }
1402
+ }
1403
+ return true;
1404
+ }
1405
+
1406
+ function sfsi_validationStep5() {
1407
+ //var class_name= SFSI(element).hasAttr('sfsi_validate');
1408
+ /* validate size */
1409
+ if (!sfsi_validator(SFSI('input[name="sfsi_icons_size"]'), 'int')) {
1410
+ showErrorSuc("error", "Error : Please enter a numeric value only ", 5);
1411
+ SFSI('input[name="sfsi_icons_size"]').addClass('inputError');
1412
+ return false;
1413
+ }
1414
+ if (parseInt(SFSI('input[name="sfsi_icons_size"]').val()) > 100) {
1415
+ showErrorSuc("error", "Error : Icons Size allow 100px maximum ", 5);
1416
+ SFSI('input[name="sfsi_icons_size"]').addClass('inputError');
1417
+ return false;
1418
+ }
1419
+ if (parseInt(SFSI('input[name="sfsi_icons_size"]').val()) <= 0) {
1420
+ showErrorSuc("error", "Error : Icons Size should be more than 0 ", 5);
1421
+ SFSI('input[name="sfsi_icons_size"]').addClass('inputError');
1422
+ return false;
1423
+ }
1424
+ /* validate spacing */
1425
+ if (!sfsi_validator(SFSI('input[name="sfsi_icons_spacing"]'), 'int')) {
1426
+ showErrorSuc("error", "Error : Please enter a numeric value only ", 5);
1427
+ SFSI('input[name="sfsi_icons_spacing"]').addClass('inputError');
1428
+ return false;
1429
+ }
1430
+ if (parseInt(SFSI('input[name="sfsi_icons_spacing"]').val()) < 0) {
1431
+ showErrorSuc("error", "Error : Icons Spacing should be 0 or more", 5);
1432
+ SFSI('input[name="sfsi_icons_spacing"]').addClass('inputError');
1433
+ return false;
1434
+ }
1435
+ /* icons per row spacing */
1436
+ if (!sfsi_validator(SFSI('input[name="sfsi_icons_perRow"]'), 'int')) {
1437
+ showErrorSuc("error", "Error : Please enter a numeric value only ", 5);
1438
+ SFSI('input[name="sfsi_icons_perRow"]').addClass('inputError');
1439
+ return false;
1440
+ }
1441
+ if (parseInt(SFSI('input[name="sfsi_icons_perRow"]').val()) <= 0) {
1442
+ showErrorSuc("error", "Error : Icons Per row should be more than 0", 5);
1443
+ SFSI('input[name="sfsi_icons_perRow"]').addClass('inputError');
1444
+ return false;
1445
+ }
1446
+ /* validate icons effects */
1447
+ // if(SFSI('input[name="sfsi_icons_float"]:checked').val()=="yes" && SFSI('input[name="sfsi_icons_stick"]:checked').val()=="yes")
1448
+ // {
1449
+ // showErrorSuc("error","Error : Only one allow from Sticking & floating ",5);
1450
+ // SFSI('input[name="sfsi_icons_float"][value="no"]').prop("checked", true);
1451
+ // return false;
1452
+ // }
1453
+ return true;
1454
+ }
1455
+
1456
+ function sfsi_validationStep7() {
1457
+ //var class_name= SFSI(element).hasAttr('sfsi_validate');
1458
+ /* validate border thikness */
1459
+ if (!sfsi_validator(SFSI('input[name="sfsi_popup_border_thickness"]'), 'int')) {
1460
+ showErrorSuc("error", "Error : Please enter a numeric value only ", 7);
1461
+ SFSI('input[name="sfsi_popup_border_thickness"]').addClass('inputError');
1462
+ return false;
1463
+ }
1464
+ /* validate fotn size */
1465
+ if (!sfsi_validator(SFSI('input[name="sfsi_popup_fontSize"]'), 'int')) {
1466
+ showErrorSuc("error", "Error : Please enter a numeric value only ", 7);
1467
+ SFSI('input[name="sfsi_popup_fontSize"]').addClass('inputError');
1468
+ return false;
1469
+ }
1470
+ /* validate pop up shown */
1471
+ if (SFSI('input[name="sfsi_Shown_pop"]:checked').val() == 'once') {
1472
+
1473
+ if (!sfsi_validator(SFSI('input[name="sfsi_Shown_popupOnceTime"]'), 'blank') && !sfsi_validator(SFSI('input[name="sfsi_Shown_popupOnceTime"]'), 'url')) {
1474
+ showErrorSuc("error", "Error : Please Enter a valid pop up shown time ", 7);
1475
+ SFSI('input[name="sfsi_Shown_popupOnceTime"]').addClass('inputError');
1476
+ return false;
1477
+ }
1478
+ }
1479
+ /* validate page ids */
1480
+ if (SFSI('input[name="sfsi_Show_popupOn"]:checked').val() == 'selectedpage') {
1481
+ if (!sfsi_validator(SFSI('input[name="sfsi_Show_popupOn"]'), 'blank')) {
1482
+ showErrorSuc("error", "Error : Please Enter page ids with comma ", 7);
1483
+ SFSI('input[name="sfsi_Show_popupOn"]').addClass('inputError');
1484
+ return false;
1485
+ }
1486
+ }
1487
+ /* validate spacing */
1488
+ if (!sfsi_validator(SFSI('input[name="sfsi_icons_spacing"]'), 'int')) {
1489
+ showErrorSuc("error", "Error : Please enter a numeric value only ", 7);
1490
+ SFSI('input[name="sfsi_icons_spacing"]').addClass('inputError');
1491
+ return false;
1492
+ }
1493
+ /* icons per row spacing */
1494
+ if (!sfsi_validator(SFSI('input[name="sfsi_icons_perRow"]'), 'int')) {
1495
+ showErrorSuc("error", "Error : Please enter a numeric value only ", 7);
1496
+ SFSI('input[name="sfsi_icons_perRow"]').addClass('inputError');
1497
+ return false;
1498
+ }
1499
+ return true;
1500
+ }
1501
+
1502
+ function sfsi_validator(element, valType) {
1503
+ var Vurl = new RegExp("^(http|https|ftp)\://([a-zA-Z0-9\.\-]+(\:[a-zA-Z0-9\.&amp;%\$\-]+)*@)*((25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])|([a-zA-Z0-9\-]+\.)*[a-zA-Z0-9\-]+\.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(\:[0-9]+)*(/($|[a-zA-Z0-9\.\,\@\?\'\\\+&amp;%\$#\=~_\-]+))*$");
1504
+ //var Vurl = /http:\/\/[A-Za-z0-9\.-]{3,}\.[A-Za-z]{3}/;
1505
+
1506
+ switch (valType) {
1507
+ case "blank":
1508
+ if (!element.val().trim()) return false;
1509
+ else return true;
1510
+ break;
1511
+ case "url":
1512
+ if (!Vurl.test(element.val().trim())) return false;
1513
+ else return true;
1514
+ break;
1515
+ case "checked":
1516
+ if (!element.attr('checked') === true) return false;
1517
+ else return true;
1518
+ break;
1519
+ case "activte":
1520
+ if (!element.attr('disabled')) return true;
1521
+ else return false;
1522
+ break;
1523
+ case "int":
1524
+ if (!isNaN(element.val())) return true;
1525
+ else return false;
1526
+ break;
1527
+
1528
+ }
1529
+ }
1530
+
1531
+ function afterIconSuccess(s, nonce) {
1532
+ if (s.res = "success") {
1533
+ var i = s.key + 1,
1534
+ e = s.element,
1535
+ t = e + 1;
1536
+ SFSI("#total_cusotm_icons").val(s.element);
1537
+ SFSI(".upload-overlay").hide("slow");
1538
+ SFSI(".uperror").html("");
1539
+ showErrorSuc("success", "Custom Icon updated successfully", 1);
1540
+ d = new Date();
1541
+
1542
+ var ele = SFSI(".notice_custom_icons_premium");
1543
+
1544
+ SFSI("li.custom:last-child").removeClass("bdr_btm_non");
1545
+ SFSI("li.custom:last-child").children("span.custom-img").children("img").attr("src", s.img_path + "?" + d.getTime());
1546
+ SFSI("input[name=sfsiICON_" + s.key + "]").removeAttr("ele-type");
1547
+ SFSI("input[name=sfsiICON_" + s.key + "]").removeAttr("isnew");
1548
+ icons_name = SFSI("li.custom:last-child").find("input.styled").attr("name");
1549
+ var n = icons_name.split("_");
1550
+ s.key = s.key, s.img_path += "?" + d.getTime(), 5 > e && SFSI(".icn_listing").append('<li id="c' + i + '" class="custom bdr_btm_non"><div class="radio_section tb_4_ck"><span class="checkbox" dynamic_ele="yes" style="background-position: 0px 0px;"></span><input name="sfsiICON_' + i + '" type="checkbox" value="yes" class="styled" style="display:none;" element-type="cusotm-icon" isNew="yes" /></div> <span class="custom-img"><img src="' + SFSI("#plugin_url").val() + 'images/custom.png" id="CImg_' + i + '" alt="error" /> </span> <span class="custom custom-txt">Custom' + t + ' </span> <div class="right_info"> <p><span>It depends:</span> Upload a custom icon if you have other accounts/websites you want to link to.</p><div class="inputWrapper"></div></li>'),
1551
+ SFSI(".custom_section").show(),
1552
+ SFSI('<div class="row sfsiICON_' + s.key + ' cm_lnk"> <h2 class="custom"> <span class="customstep2-img"> <img src="' + s.img_path + "?" + d.getTime() + '" style="border-radius:48%" alt="error" /> </span> <span class="sfsiCtxt">Custom ' + e + '</span> </h2> <div class="inr_cont "><p>Where do you want this icon to link to?</p> <p class="radio_section fb_url custom_section sfsiICON_' + s.key + '" ><label>Link :</label><input file-id="' + s.key + '" name="sfsi_CustomIcon_links[]" type="text" value="" placeholder="http://" class="add" /></p></div></div>').insertBefore('.notice_custom_icons_premium');
1553
+ //SFSI(".custom-links").append(' <div class="row sfsiICON_' + s.key + ' cm_lnk"> <h2 class="custom"> <span class="customstep2-img"> <img src="' + s.img_path + "?" + d.getTime() + '" style="border-radius:48%" /> </span> <span class="sfsiCtxt">Custom ' + e + '</span> </h2> <div class="inr_cont "><p>Where do you want this icon to link to?</p> <p class="radio_section fb_url custom_section sfsiICON_' + s.key + '" ><label>Link :</label><input file-id="' + s.key + '" name="sfsi_CustomIcon_links[]" type="text" value="" placeholder="http://" class="add" /></p></div></div>');
1554
+ SFSI(".notice_custom_icons_premium").show();
1555
+ SFSI("#c" + s.key).append('<input type="hidden" name="nonce" value="' + nonce + '">');
1556
+ var o = SFSI("div.custom_m").find("div.mouseover_field").length;
1557
+ SFSI("div.custom_m").append(0 == o % 2 ? '<div class="clear"> </div> <div class="mouseover_field custom_section sfsiICON_' + s.key + '"><label>Custom ' + e + ':</label><input name="sfsi_custom_MouseOverTexts[]" value="" type="text" file-id="' + s.key + '" /></div>' : '<div class="cHover " ><div class="mouseover_field custom_section sfsiICON_' + s.key + '"><label>Custom ' + e + ':</label><input name="sfsi_custom_MouseOverTexts[]" value="" type="text" file-id="' + s.key + '" /></div>'),
1558
+ SFSI("ul.share_icon_order").append('<li class="custom_iconOrder sfsiICON_' + s.key + '" data-index="" element-id="' + s.key + '" id=""><a href="#" title="Custom Icon" ><img src="' + s.img_path + '" alt="Linked In" class="sfcm"/></a></li>'),
1559
+ SFSI("ul.sfsi_sample_icons").append('<li class="sfsiICON_' + s.key + '" element-id="' + s.key + '" ><div><img src="' + s.img_path + '" alt="Linked In" class="sfcm"/><span class="sfsi_Cdisplay">12k</span></div></li>'),
1560
+ sfsi_update_index(), update_Sec5Iconorder(), sfsi_update_step1(), sfsi_update_step2(),
1561
+ sfsi_update_step5(), SFSI(".upload-overlay").css("pointer-events", "auto"), sfsi_showPreviewCounts(),
1562
+ afterLoad();
1563
+ }
1564
+ }
1565
+
1566
+ function beforeIconSubmit(s) {
1567
+ if (SFSI(".uperror").html("Uploading....."), window.File && window.FileReader && window.FileList && window.Blob) {
1568
+ SFSI(s).val() || SFSI(".uperror").html("File is empty");
1569
+ var i = s.files[0].size,
1570
+ e = s.files[0].type;
1571
+ switch (e) {
1572
+ case "image/png":
1573
+ case "image/gif":
1574
+ case "image/jpeg":
1575
+ case "image/pjpeg":
1576
+ break;
1577
+
1578
+ default:
1579
+ return SFSI(".uperror").html("Unsupported file"), !1;
1580
+ }
1581
+ return i > 1048576 ? (SFSI(".uperror").html("Image should be less than 1 MB"), !1) : !0;
1582
+ }
1583
+ return !0;
1584
+ }
1585
+
1586
+ function bytesToSize(s) {
1587
+ var i = ["Bytes", "KB", "MB", "GB", "TB"];
1588
+ if (0 == s) return "0 Bytes";
1589
+ var e = parseInt(Math.floor(Math.log(s) / Math.log(1024)));
1590
+ return Math.round(s / Math.pow(1024, e), 2) + " " + i[e];
1591
+ }
1592
+
1593
+ function showErrorSuc(s, i, e) {
1594
+ if ("error" == s) var t = "errorMsg";
1595
+ else var t = "sucMsg";
1596
+ return SFSI(".tab" + e + ">." + t).html(i), SFSI(".tab" + e + ">." + t).show(),
1597
+ SFSI(".tab" + e + ">." + t).effect("highlight", {}, 5e3), setTimeout(function () {
1598
+ SFSI("." + t).slideUp("slow");
1599
+ }, 5e3), !1;
1600
+ }
1601
+
1602
+ function beForeLoad() {
1603
+ SFSI(".loader-img").show(), SFSI(".save_button >a").html("Saving..."), SFSI(".save_button >a").css("pointer-events", "none");
1604
+ }
1605
+
1606
+ function afterLoad() {
1607
+ SFSI("input").removeClass("inputError"), SFSI(".save_button >a").html("Save"), SFSI(".tab10>div.save_button >a").html("Save All Settings"),
1608
+ SFSI(".save_button >a").css("pointer-events", "auto"), SFSI(".save_button >a").removeAttr("onclick"),
1609
+ SFSI(".loader-img").hide();
1610
+ }
1611
+
1612
+ function sfsi_make_popBox() {
1613
+ var s = 0;
1614
+ SFSI(".sfsi_sample_icons >li").each(function () {
1615
+ "none" != SFSI(this).css("display") && (s = 1);
1616
+ }),
1617
+ 0 == s ? SFSI(".sfsi_Popinner").hide() : SFSI(".sfsi_Popinner").show(),
1618
+ "" != SFSI('input[name="sfsi_popup_text"]').val() ? (SFSI(".sfsi_Popinner >h2").html(SFSI('input[name="sfsi_popup_text"]').val()),
1619
+ SFSI(".sfsi_Popinner >h2").show()) : SFSI(".sfsi_Popinner >h2").hide(), SFSI(".sfsi_Popinner").css({
1620
+ "border-color": SFSI('input[name="sfsi_popup_border_color"]').val(),
1621
+ "border-width": SFSI('input[name="sfsi_popup_border_thickness"]').val(),
1622
+ "border-style": "solid"
1623
+ }),
1624
+ SFSI(".sfsi_Popinner").css("background-color", SFSI('input[name="sfsi_popup_background_color"]').val()),
1625
+ SFSI(".sfsi_Popinner h2").css("font-family", SFSI("#sfsi_popup_font").val()), SFSI(".sfsi_Popinner h2").css("font-style", SFSI("#sfsi_popup_fontStyle").val()),
1626
+ SFSI(".sfsi_Popinner >h2").css("font-size", parseInt(SFSI('input[name="sfsi_popup_fontSize"]').val())),
1627
+ SFSI(".sfsi_Popinner >h2").css("color", SFSI('input[name="sfsi_popup_fontColor"]').val() + " !important"),
1628
+ "yes" == SFSI('input[name="sfsi_popup_border_shadow"]:checked').val() ? SFSI(".sfsi_Popinner").css("box-shadow", "12px 30px 18px #CCCCCC") : SFSI(".sfsi_Popinner").css("box-shadow", "none");
1629
+ }
1630
+
1631
+ function sfsi_stick_widget(s) {
1632
+ 0 == initTop.length && (SFSI(".sfsi_widget").each(function (s) {
1633
+ initTop[s] = SFSI(this).position().top;
1634
+ }), console.log(initTop));
1635
+ var i = SFSI(window).scrollTop(),
1636
+ e = [],
1637
+ t = [];
1638
+ SFSI(".sfsi_widget").each(function (s) {
1639
+ e[s] = SFSI(this).position().top, t[s] = SFSI(this);
1640
+ });
1641
+ var n = !1;
1642
+ for (var o in e) {
1643
+ var a = parseInt(o) + 1;
1644
+ e[o] < i && e[a] > i && a < e.length ? (SFSI(t[o]).css({
1645
+ position: "fixed",
1646
+ top: s
1647
+ }), SFSI(t[a]).css({
1648
+ position: "",
1649
+ top: initTop[a]
1650
+ }), n = !0) : SFSI(t[o]).css({
1651
+ position: "",
1652
+ top: initTop[o]
1653
+ });
1654
+ }
1655
+ if (!n) {
1656
+ var r = e.length - 1,
1657
+ c = -1;
1658
+ e.length > 1 && (c = e.length - 2), initTop[r] < i ? (SFSI(t[r]).css({
1659
+ position: "fixed",
1660
+ top: s
1661
+ }), c >= 0 && SFSI(t[c]).css({
1662
+ position: "",
1663
+ top: initTop[c]
1664
+ })) : (SFSI(t[r]).css({
1665
+ position: "",
1666
+ top: initTop[r]
1667
+ }), c >= 0 && e[c] < i);
1668
+ }
1669
+ }
1670
+
1671
+ function sfsi_setCookie(s, i, e) {
1672
+ var t = new Date();
1673
+ t.setTime(t.getTime() + 1e3 * 60 * 60 * 24 * e);
1674
+ var n = "expires=" + t.toGMTString();
1675
+ document.cookie = s + "=" + i + "; " + n;
1676
+ }
1677
+
1678
+ function sfsfi_getCookie(s) {
1679
+ for (var i = s + "=", e = document.cookie.split(";"), t = 0; t < e.length; t++) {
1680
+ var n = e[t].trim();
1681
+ if (0 == n.indexOf(i)) return n.substring(i.length, n.length);
1682
+ }
1683
+ return "";
1684
+ }
1685
+
1686
+ function sfsi_hideFooter() {}
1687
+
1688
+ window.onerror = function () {},
1689
+ SFSI = jQuery,
1690
+ SFSI(window).on('load', function () {
1691
+ SFSI("#sfpageLoad").fadeOut(2e3);
1692
+ });
1693
+
1694
+ //changes done {Monad}
1695
+ function selectText(containerid) {
1696
+ if (document.selection) {
1697
+ var range = document.body.createTextRange();
1698
+ range.moveToElementText(document.getElementById(containerid));
1699
+ range.select();
1700
+ } else if (window.getSelection()) {
1701
+ var range = document.createRange();
1702
+ range.selectNode(document.getElementById(containerid));
1703
+ window.getSelection().removeAllRanges();
1704
+ window.getSelection().addRange(range);
1705
+ }
1706
+ }
1707
+
1708
+ function create_suscriber_form() {
1709
+ //Popbox customization
1710
+ "no" == SFSI('input[name="sfsi_form_adjustment"]:checked').val() ? SFSI(".sfsi_subscribe_Popinner").css({
1711
+ "width": parseInt(SFSI('input[name="sfsi_form_width"]').val()),
1712
+ "height": parseInt(SFSI('input[name="sfsi_form_height"]').val())
1713
+ }) : SFSI(".sfsi_subscribe_Popinner").css({
1714
+ "width": '',
1715
+ "height": ''
1716
+ });
1717
+
1718
+ "yes" == SFSI('input[name="sfsi_form_adjustment"]:checked').val() ? SFSI(".sfsi_html > .sfsi_subscribe_Popinner").css({
1719
+ "width": "100%"
1720
+ }) : '';
1721
+
1722
+ "yes" == SFSI('input[name="sfsi_form_border"]:checked').val() ? SFSI(".sfsi_subscribe_Popinner").css({
1723
+ "border": SFSI('input[name="sfsi_form_border_thickness"]').val() + "px solid " + SFSI('input[name="sfsi_form_border_color"]').val()
1724
+ }) : SFSI(".sfsi_subscribe_Popinner").css("border", "none");
1725
+
1726
+ SFSI('input[name="sfsi_form_background"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").css("background-color", SFSI('input[name="sfsi_form_background"]').val())) : '';
1727
+
1728
+ //Heading customization
1729
+ SFSI('input[name="sfsi_form_heading_text"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner > form > h5").html(SFSI('input[name="sfsi_form_heading_text"]').val())) : SFSI(".sfsi_subscribe_Popinner > form > h5").html('');
1730
+
1731
+ SFSI('#sfsi_form_heading_font').val() != "" ? (SFSI(".sfsi_subscribe_Popinner > form > h5").css("font-family", SFSI("#sfsi_form_heading_font").val())) : '';
1732
+
1733
+ if (SFSI('#sfsi_form_heading_fontstyle').val() != 'bold') {
1734
+ SFSI('#sfsi_form_heading_fontstyle').val() != "" ? (SFSI(".sfsi_subscribe_Popinner > form > h5").css("font-style", SFSI("#sfsi_form_heading_fontstyle").val())) : '';
1735
+ SFSI(".sfsi_subscribe_Popinner > form > h5").css("font-weight", '');
1736
+ } else {
1737
+ SFSI('#sfsi_form_heading_fontstyle').val() != "" ? (SFSI(".sfsi_subscribe_Popinner > form > h5").css("font-weight", "bold")) : '';
1738
+ SFSI(".sfsi_subscribe_Popinner > form > h5").css("font-style", '');
1739
+ }
1740
+
1741
+ SFSI('input[name="sfsi_form_heading_fontcolor"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner > form > h5").css("color", SFSI('input[name="sfsi_form_heading_fontcolor"]').val())) : '';
1742
+
1743
+ SFSI('input[name="sfsi_form_heading_fontsize"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner > form > h5").css({
1744
+ "font-size": parseInt(SFSI('input[name="sfsi_form_heading_fontsize"]').val())
1745
+ })) : '';
1746
+
1747
+ SFSI('#sfsi_form_heading_fontalign').val() != "" ? (SFSI(".sfsi_subscribe_Popinner > form > h5").css("text-align", SFSI("#sfsi_form_heading_fontalign").val())) : '';
1748
+
1749
+ //Field customization
1750
+ SFSI('input[name="sfsi_form_field_text"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').attr("placeholder", SFSI('input[name="sfsi_form_field_text"]').val())) : SFSI(".sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').attr("placeholder", '');
1751
+
1752
+ SFSI('input[name="sfsi_form_field_text"]').val() != "" ? (SFSI(".sfsi_left_container > .sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').val(SFSI('input[name="sfsi_form_field_text"]').val())) : SFSI(".sfsi_left_container > .sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').val('');
1753
+
1754
+ SFSI('input[name="sfsi_form_field_text"]').val() != "" ? (SFSI(".like_pop_box > .sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').val(SFSI('input[name="sfsi_form_field_text"]').val())) : SFSI(".like_pop_box > .sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').val('');
1755
+
1756
+ SFSI('#sfsi_form_field_font').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("font-family", SFSI("#sfsi_form_field_font").val())) : '';
1757
+
1758
+ if (SFSI('#sfsi_form_field_fontstyle').val() != "bold") {
1759
+ SFSI('#sfsi_form_field_fontstyle').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("font-style", SFSI("#sfsi_form_field_fontstyle").val())) : '';
1760
+ SFSI(".sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("font-weight", '');
1761
+ } else {
1762
+ SFSI('#sfsi_form_field_fontstyle').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("font-weight", 'bold')) : '';
1763
+ SFSI(".sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("font-style", '');
1764
+ }
1765
+
1766
+ SFSI('input[name="sfsi_form_field_fontcolor"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("color", SFSI('input[name="sfsi_form_field_fontcolor"]').val())) : '';
1767
+
1768
+ SFSI('input[name="sfsi_form_field_fontsize"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').css({
1769
+ "font-size": parseInt(SFSI('input[name="sfsi_form_field_fontsize"]').val())
1770
+ })) : '';
1771
+
1772
+ SFSI('#sfsi_form_field_fontalign').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="data[Widget][email]"]').css("text-align", SFSI("#sfsi_form_field_fontalign").val())) : '';
1773
+
1774
+ //Button customization
1775
+ SFSI('input[name="sfsi_form_button_text"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="subscribe"]').attr("value", SFSI('input[name="sfsi_form_button_text"]').val())) : '';
1776
+
1777
+ SFSI('#sfsi_form_button_font').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="subscribe"]').css("font-family", SFSI("#sfsi_form_button_font").val())) : '';
1778
+
1779
+ if (SFSI('#sfsi_form_button_fontstyle').val() != "bold") {
1780
+ SFSI('#sfsi_form_button_fontstyle').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="subscribe"]').css("font-style", SFSI("#sfsi_form_button_fontstyle").val())) : '';
1781
+ SFSI(".sfsi_subscribe_Popinner").find('input[name="subscribe"]').css("font-weight", '');
1782
+ } else {
1783
+ SFSI('#sfsi_form_button_fontstyle').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="subscribe"]').css("font-weight", 'bold')) : '';
1784
+ SFSI(".sfsi_subscribe_Popinner").find('input[name="subscribe"]').css("font-style", '');
1785
+ }
1786
+
1787
+ SFSI('input[name="sfsi_form_button_fontcolor"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="subscribe"]').css("color", SFSI('input[name="sfsi_form_button_fontcolor"]').val())) : '';
1788
+
1789
+ SFSI('input[name="sfsi_form_button_fontsize"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="subscribe"]').css({
1790
+ "font-size": parseInt(SFSI('input[name="sfsi_form_button_fontsize"]').val())
1791
+ })) : '';
1792
+
1793
+ SFSI('#sfsi_form_button_fontalign').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="subscribe"]').css("text-align", SFSI("#sfsi_form_button_fontalign").val())) : '';
1794
+
1795
+ SFSI('input[name="sfsi_form_button_background"]').val() != "" ? (SFSI(".sfsi_subscribe_Popinner").find('input[name="subscribe"]').css("background-color", SFSI('input[name="sfsi_form_button_background"]').val())) : '';
1796
+
1797
+ var innerHTML = SFSI(".sfsi_html > .sfsi_subscribe_Popinner").html();
1798
+ var styleCss = SFSI(".sfsi_html > .sfsi_subscribe_Popinner").attr("style");
1799
+ innerHTML = '<div style="' + styleCss + '">' + innerHTML + '</div>';
1800
+ SFSI(".sfsi_subscription_html > xmp").html(innerHTML);
1801
+
1802
+ /*var data = {
1803
+ action:"getForm",
1804
+ heading: SFSI('input[name="sfsi_form_heading_text"]').val(),
1805
+ placeholder:SFSI('input[name="sfsi_form_field_text"]').val(),
1806
+ button:SFSI('input[name="sfsi_form_button_text"]').val()
1807
+ };
1808
+ SFSI.ajax({
1809
+ url:sfsi_icon_ajax_object.ajax_url,
1810
+ type:"post",
1811
+ data:data,
1812
+ success:function(s) {
1813
+ SFSI(".sfsi_subscription_html").html(s);
1814
+ }
1815
+ });*/
1816
+ }
1817
+
1818
+ var global_error = 0;
1819
+ if (typeof SFSI != 'undefined') {
1820
+
1821
+ function sfsi_dismiss_notice(btnClass, ajaxAction) {
1822
+
1823
+ var btnClass = "." + btnClass;
1824
+
1825
+ SFSI(document).on("click", btnClass, function () {
1826
+
1827
+ SFSI.ajax({
1828
+ url: sfsi_icon_ajax_object.ajax_url,
1829
+ type: "post",
1830
+ data: {
1831
+ action: ajaxAction
1832
+ },
1833
+ success: function (e) {
1834
+ if (false != e) {
1835
+ SFSI(btnClass).parent().remove();
1836
+ }
1837
+ }
1838
+ });
1839
+ });
1840
+ }
1841
+ }
1842
+
1843
+ SFSI(document).ready(function (s) {
1844
+
1845
+ var arrDismiss = [
1846
+
1847
+ {
1848
+ "btnClass": "sfsi-notice-dismiss",
1849
+ "action": "sfsi_dismiss_lang_notice"
1850
+ },
1851
+
1852
+ {
1853
+ "btnClass": "sfsi-AddThis-notice-dismiss",
1854
+ "action": "sfsi_dismiss_addThis_icon_notice"
1855
+ },
1856
+
1857
+ {
1858
+ "btnClass": "sfsi_error_reporting_notice-dismiss",
1859
+ "action": "sfsi_dismiss_error_reporting_notice"
1860
+ }
1861
+ ];
1862
+
1863
+ SFSI.each(arrDismiss, function (key, valueObj) {
1864
+ sfsi_dismiss_notice(valueObj.btnClass, valueObj.action);
1865
+ });
1866
+
1867
+ //changes done {Monad}
1868
+ SFSI(".tab_3_icns").on("click", ".cstomskins_upload", function () {
1869
+ SFSI(".cstmskins-overlay").show("slow", function () {
1870
+ e = 0;
1871
+ });
1872
+ });
1873
+ /*SFSI("#custmskin_clspop").live("click", function() {*/
1874
+ SFSI(document).on("click", '#custmskin_clspop', function () {
1875
+ SFSI_done();
1876
+ SFSI(".cstmskins-overlay").hide("slow");
1877
+ });
1878
+
1879
+ create_suscriber_form();
1880
+ SFSI('input[name="sfsi_form_heading_text"], input[name="sfsi_form_border_thickness"], input[name="sfsi_form_height"], input[name="sfsi_form_width"], input[name="sfsi_form_heading_fontsize"], input[name="sfsi_form_field_text"], input[name="sfsi_form_field_fontsize"], input[name="sfsi_form_button_text"], input[name="sfsi_form_button_fontsize"]').on("keyup", create_suscriber_form);
1881
+
1882
+ SFSI('input[name="sfsi_form_border_color"], input[name="sfsi_form_background"] ,input[name="sfsi_form_heading_fontcolor"], input[name="sfsi_form_field_fontcolor"] ,input[name="sfsi_form_button_fontcolor"],input[name="sfsi_form_button_background"]').on("focus", create_suscriber_form);
1883
+
1884
+ SFSI("#sfsi_form_heading_font, #sfsi_form_heading_fontstyle, #sfsi_form_heading_fontalign, #sfsi_form_field_font, #sfsi_form_field_fontstyle, #sfsi_form_field_fontalign, #sfsi_form_button_font, #sfsi_form_button_fontstyle, #sfsi_form_button_fontalign").on("change", create_suscriber_form);
1885
+
1886
+ /*SFSI(".radio").live("click", function() {*/
1887
+ SFSI(document).on("click", '.radio', function () {
1888
+
1889
+ var s = SFSI(this).parent().find("input:radio:first");
1890
+
1891
+ var inputName = s.attr("name");
1892
+ var inputChecked = s.attr("checked");
1893
+
1894
+ switch (inputName) {
1895
+ case 'sfsi_form_adjustment':
1896
+ if (s.val() == 'no')
1897
+ s.parents(".row_tab").next(".row_tab").show("fast");
1898
+ else
1899
+ s.parents(".row_tab").next(".row_tab").hide("fast");
1900
+ create_suscriber_form()
1901
+ break;
1902
+ case 'sfsi_form_border':
1903
+ if (s.val() == 'yes')
1904
+ s.parents(".row_tab").next(".row_tab").show("fast");
1905
+ else
1906
+ s.parents(".row_tab").next(".row_tab").hide("fast");
1907
+ create_suscriber_form()
1908
+ break;
1909
+ case 'sfsi_icons_suppress_errors':
1910
+
1911
+ SFSI('input[name="sfsi_icons_suppress_errors"]').removeAttr('checked');
1912
+
1913
+ if (s.val() == 'yes')
1914
+ SFSI('input[name="sfsi_icons_suppress_errors"][value="yes"]').attr('checked', 'true');
1915
+ else
1916
+ SFSI('input[name="sfsi_icons_suppress_errors"][value="no"]').attr('checked', 'true');
1917
+ break;
1918
+
1919
+ default:
1920
+ case 'sfsi_responsive_icons_end_post':
1921
+ if("yes" == s.val()){
1922
+ jQuery('.sfsi_responsive_icon_option_li.sfsi_responsive_show').show();
1923
+ }else{
1924
+ jQuery('.sfsi_responsive_icon_option_li.sfsi_responsive_show').hide();
1925
+ }
1926
+ }
1927
+ });
1928
+
1929
+ SFSI('#sfsi_form_border_color').wpColorPicker({
1930
+ defaultColor: false,
1931
+ change: function (event, ui) {
1932
+ create_suscriber_form()
1933
+ },
1934
+ clear: function () {
1935
+ create_suscriber_form()
1936
+ },
1937
+ hide: true,
1938
+ palettes: true
1939
+ }),
1940
+ SFSI('#sfsi_form_background').wpColorPicker({
1941
+ defaultColor: false,
1942
+ change: function (event, ui) {
1943
+ create_suscriber_form()
1944
+ },
1945
+ clear: function () {
1946
+ create_suscriber_form()
1947
+ },
1948
+ hide: true,
1949
+ palettes: true
1950
+ }),
1951
+ SFSI('#sfsi_form_heading_fontcolor').wpColorPicker({
1952
+ defaultColor: false,
1953
+ change: function (event, ui) {
1954
+ create_suscriber_form()
1955
+ },
1956
+ clear: function () {
1957
+ create_suscriber_form()
1958
+ },
1959
+ hide: true,
1960
+ palettes: true
1961
+ }),
1962
+ SFSI('#sfsi_form_button_fontcolor').wpColorPicker({
1963
+ defaultColor: false,
1964
+ change: function (event, ui) {
1965
+ create_suscriber_form()
1966
+ },
1967
+ clear: function () {
1968
+ create_suscriber_form()
1969
+ },
1970
+ hide: true,
1971
+ palettes: true
1972
+ }),
1973
+ SFSI('#sfsi_form_button_background').wpColorPicker({
1974
+ defaultColor: false,
1975
+ change: function (event, ui) {
1976
+ create_suscriber_form()
1977
+ },
1978
+ clear: function () {
1979
+ create_suscriber_form()
1980
+ },
1981
+ hide: true,
1982
+ palettes: true
1983
+ });
1984
+ //changes done {Monad}
1985
+
1986
+ function i() {
1987
+ SFSI(".uperror").html(""), afterLoad();
1988
+ var s = SFSI('input[name="' + SFSI("#upload_id").val() + '"]');
1989
+ s.removeAttr("checked");
1990
+ var i = SFSI(s).parent().find("span:first");
1991
+ return SFSI(i).css("background-position", "0px 0px"), SFSI(".upload-overlay").hide("slow"),
1992
+ !1;
1993
+ }
1994
+ SFSI("#accordion").accordion({
1995
+ collapsible: !0,
1996
+ active: !1,
1997
+ heightStyle: "content",
1998
+ event: "click",
1999
+ beforeActivate: function (s, i) {
2000
+ if (i.newHeader[0]) var e = i.newHeader,
2001
+ t = e.next(".ui-accordion-content");
2002
+ else var e = i.oldHeader,
2003
+ t = e.next(".ui-accordion-content");
2004
+ var n = "true" == e.attr("aria-selected");
2005
+ return e.toggleClass("ui-corner-all", n).toggleClass("accordion-header-active ui-state-active ui-corner-top", !n).attr("aria-selected", (!n).toString()),
2006
+ e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", n).toggleClass("ui-icon-triangle-1-s", !n),
2007
+ t.toggleClass("accordion-content-active", !n), n ? t.slideUp() : t.slideDown(), !1;
2008
+ }
2009
+ }),
2010
+ SFSI("#accordion1").accordion({
2011
+ collapsible: !0,
2012
+ active: !1,
2013
+ heightStyle: "content",
2014
+ event: "click",
2015
+ beforeActivate: function (s, i) {
2016
+ if (i.newHeader[0]) var e = i.newHeader,
2017
+ t = e.next(".ui-accordion-content");
2018
+ else var e = i.oldHeader,
2019
+ t = e.next(".ui-accordion-content");
2020
+ var n = "true" == e.attr("aria-selected");
2021
+ return e.toggleClass("ui-corner-all", n).toggleClass("accordion-header-active ui-state-active ui-corner-top", !n).attr("aria-selected", (!n).toString()),
2022
+ e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", n).toggleClass("ui-icon-triangle-1-s", !n),
2023
+ t.toggleClass("accordion-content-active", !n), n ? t.slideUp() : t.slideDown(), !1;
2024
+ }
2025
+ }),
2026
+
2027
+ SFSI("#accordion2").accordion({
2028
+ collapsible: !0,
2029
+ active: !1,
2030
+ heightStyle: "content",
2031
+ event: "click",
2032
+ beforeActivate: function (s, i) {
2033
+ if (i.newHeader[0]) var e = i.newHeader,
2034
+ t = e.next(".ui-accordion-content");
2035
+ else var e = i.oldHeader,
2036
+ t = e.next(".ui-accordion-content");
2037
+ var n = "true" == e.attr("aria-selected");
2038
+ return e.toggleClass("ui-corner-all", n).toggleClass("accordion-header-active ui-state-active ui-corner-top", !n).attr("aria-selected", (!n).toString()),
2039
+ e.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", n).toggleClass("ui-icon-triangle-1-s", !n),
2040
+ t.toggleClass("accordion-content-active", !n), n ? t.slideUp() : t.slideDown(), !1;
2041
+ }
2042
+ }),
2043
+ SFSI(".closeSec").on("click", function () {
2044
+ var s = !0,
2045
+ i = SFSI(this).closest("div.ui-accordion-content").prev("h3.ui-accordion-header").first(),
2046
+ e = SFSI(this).closest("div.ui-accordion-content").first();
2047
+ i.toggleClass("ui-corner-all", s).toggleClass("accordion-header-active ui-state-active ui-corner-top", !s).attr("aria-selected", (!s).toString()),
2048
+ i.children(".ui-icon").toggleClass("ui-icon-triangle-1-e", s).toggleClass("ui-icon-triangle-1-s", !s),
2049
+ e.toggleClass("accordion-content-active", !s), s ? e.slideUp() : e.slideDown();
2050
+ }),
2051
+ SFSI(document).click(function (s) {
2052
+ var i = SFSI(".sfsi_FrntInner_chg"),
2053
+ e = SFSI(".sfsi_wDiv"),
2054
+ t = SFSI("#at15s");
2055
+ i.is(s.target) || 0 !== i.has(s.target).length || e.is(s.target) || 0 !== e.has(s.target).length || t.is(s.target) || 0 !== t.has(s.target).length || i.fadeOut();
2056
+ }),
2057
+ SFSI('#sfsi_popup_background_color').wpColorPicker({
2058
+ defaultColor: false,
2059
+ change: function (event, ui) {
2060
+ sfsi_make_popBox()
2061
+ },
2062
+ clear: function () {
2063
+ sfsi_make_popBox()
2064
+ },
2065
+ hide: true,
2066
+ palettes: true
2067
+ }),
2068
+ SFSI('#sfsi_popup_border_color').wpColorPicker({
2069
+ defaultColor: false,
2070
+ change: function (event, ui) {
2071
+ sfsi_make_popBox()
2072
+ },
2073
+ clear: function () {
2074
+ sfsi_make_popBox()
2075
+ },
2076
+ hide: true,
2077
+ palettes: true
2078
+ }),
2079
+ SFSI('#sfsi_popup_fontColor').wpColorPicker({
2080
+ defaultColor: false,
2081
+ change: function (event, ui) {
2082
+ sfsi_make_popBox()
2083
+ },
2084
+ clear: function () {
2085
+ sfsi_make_popBox()
2086
+ },
2087
+ hide: true,
2088
+ palettes: true
2089
+ }),
2090
+ SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseover(function () {
2091
+ SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg");
2092
+ }),
2093
+ SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseleave(function () {
2094
+ SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/linkedIn.svg");
2095
+ }),
2096
+ SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseover(function () {
2097
+ SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/youtube_hover.svg");
2098
+ }),
2099
+ SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseleave(function () {
2100
+ SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/youtube.svg");
2101
+ }),
2102
+ SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseover(function () {
2103
+ SFSI(this).css("opacity", "0.9");
2104
+ }),
2105
+ SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseleave(function () {
2106
+ SFSI(this).css("opacity", "1");
2107
+ }),
2108
+ SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseover(function () {
2109
+ SFSI(this).css("opacity", "0.9");
2110
+ }),
2111
+ SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseleave(function () {
2112
+ SFSI(this).css("opacity", "1");
2113
+ }),
2114
+ SFSI("#sfsi_save1").on("click", function () {
2115
+ // console.log('save1',sfsi_update_step1());
2116
+ sfsi_update_step1() && sfsicollapse(this);
2117
+ }),
2118
+ SFSI("#sfsi_save2").on("click", function () {
2119
+ sfsi_update_step2() && sfsicollapse(this);
2120
+ }),
2121
+ SFSI("#sfsi_save3").on("click", function () {
2122
+ sfsi_update_step3() && sfsicollapse(this);
2123
+ }),
2124
+ SFSI("#sfsi_save4").on("click", function () {
2125
+ sfsi_update_step4() && sfsicollapse(this);
2126
+ }),
2127
+ SFSI("#sfsi_save5").on("click", function () {
2128
+ sfsi_update_step5() && sfsicollapse(this);
2129
+ }),
2130
+ SFSI("#sfsi_save6").on("click", function () {
2131
+ sfsi_update_step6() && sfsicollapse(this);
2132
+ }),
2133
+ SFSI("#sfsi_save7").on("click", function () {
2134
+ sfsi_update_step7() && sfsicollapse(this);
2135
+ }),
2136
+ SFSI("#sfsi_save8").on("click", function () {
2137
+ sfsi_update_step8() && sfsicollapse(this);
2138
+ }),
2139
+ SFSI("#sfsi_save9").on("click", function () {
2140
+ sfsi_update_step9() && sfsicollapse(this);
2141
+ }),
2142
+ SFSI("#save_all_settings").on("click", function () {
2143
+ return SFSI("#save_all_settings").text("Saving.."), SFSI(".save_button >a").css("pointer-events", "none"),
2144
+ sfsi_update_step1(), sfsi_update_step8(), 1 == global_error ? (showErrorSuc("error", 'Some Selection error in "Which icons do you want to show on your site?" tab.', 8),
2145
+ global_error = 0, !1) : (sfsi_update_step2(), 1 == global_error ? (showErrorSuc("error", 'Some Selection error in "What do you want the icons to do?" tab.', 8),
2146
+ global_error = 0, !1) : (sfsi_update_step3(), 1 == global_error ? (showErrorSuc("error", 'Some Selection error in "What design & animation do you want to give your icons?" tab.', 8),
2147
+ global_error = 0, !1) : (sfsi_update_step4(), 1 == global_error ? (showErrorSuc("error", 'Some Selection error in "Do you want to display "counts" next to your icons?" tab.', 8),
2148
+ global_error = 0, !1) : (sfsi_update_step5(), 1 == global_error ? (showErrorSuc("error", 'Some Selection error in "Any other wishes for your main icons?" tab.', 8),
2149
+ global_error = 0, !1) : (sfsi_update_step6(), 1 == global_error ? (showErrorSuc("error", 'Some Selection error in "Do you want to display icons at the end of every post?" tab.', 8),
2150
+ global_error = 0, !1) : (sfsi_update_step7(), 1 == global_error ? (showErrorSuc("error", 'Some Selection error in "Do you want to display a pop-up, asking people to subscribe?" tab.', 8),
2151
+ /*global_error = 0, !1) :void (0 == global_error && showErrorSuc("success", 'Saved! Now go to the <a href="widgets.php">widget</a> area and place the widget into your sidebar (if not done already)', 8))))))));*/
2152
+ global_error = 0, !1) : void(0 == global_error && showErrorSuc("success", '', 8))))))));
2153
+ }),
2154
+ /*SFSI(".fileUPInput").live("change", function() {*/
2155
+ SFSI(document).on("change", '.fileUPInput', function () {
2156
+ beForeLoad(), beforeIconSubmit(this) && (SFSI(".upload-overlay").css("pointer-events", "none"),
2157
+ SFSI("#customIconFrm").ajaxForm({
2158
+ dataType: "json",
2159
+ success: afterIconSuccess,
2160
+ resetForm: !0
2161
+ }).submit());
2162
+ }),
2163
+ SFSI(".pop-up").on("click", function () {
2164
+ ("fbex-s2" == SFSI(this).attr("data-id") || "linkex-s2" == SFSI(this).attr("data-id")) && (SFSI("." + SFSI(this).attr("data-id")).hide(),
2165
+ SFSI("." + SFSI(this).attr("data-id")).css("opacity", "1"), SFSI("." + SFSI(this).attr("data-id")).css("z-index", "1000")),
2166
+ SFSI("." + SFSI(this).attr("data-id")).show("slow");
2167
+ }),
2168
+ /*SFSI("#close_popup").live("click", function() {*/
2169
+ SFSI(document).on("click", '#close_popup', function () {
2170
+ SFSI(".read-overlay").hide("slow");
2171
+ });
2172
+
2173
+ var e = 0;
2174
+ SFSI(".icn_listing").on("click", ".checkbox", function () {
2175
+ if (1 == e) return !1;
2176
+ "yes" == SFSI(this).attr("dynamic_ele") && (s = SFSI(this).parent().find("input:checkbox:first"),
2177
+ s.is(":checked") ? SFSI(s).attr("checked", !1) : SFSI(s).attr("checked", !0)), s = SFSI(this).parent().find("input:checkbox:first"),
2178
+ "yes" == SFSI(s).attr("isNew") && ("0px 0px" == SFSI(this).css("background-position") ? (SFSI(s).attr("checked", !0),
2179
+ SFSI(this).css("background-position", "0px -36px")) : (SFSI(s).removeAttr("checked", !0),
2180
+ SFSI(this).css("background-position", "0px 0px")));
2181
+ var s = SFSI(this).parent().find("input:checkbox:first");
2182
+ if (s.is(":checked") && "cusotm-icon" == s.attr("element-type")) SFSI(".fileUPInput").attr("name", "custom_icons[]"),
2183
+ SFSI(".upload-overlay").show("slow", function () {
2184
+ e = 0;
2185
+ }), SFSI("#upload_id").val(s.attr("name"));
2186
+ else if (!s.is(":checked") && "cusotm-icon" == s.attr("element-type")) return s.attr("ele-type") ? (SFSI(this).attr("checked", !0),
2187
+ SFSI(this).css("background-position", "0px -36px"), e = 0, !1) : confirm("Are you sure want to delete this Icon..?? ") ? "suc" == sfsi_delete_CusIcon(this, s) ? (s.attr("checked", !1),
2188
+ SFSI(this).css("background-position", "0px 0px"), e = 0, !1) : (e = 0, !1) : (s.attr("checked", !0),
2189
+ SFSI(this).css("background-position", "0px -36px"), e = 0, !1);
2190
+ }),
2191
+ SFSI(".icn_listing").on("click", ".checkbox", function () {
2192
+ checked = SFSI(this).parent().find("input:checkbox:first"), "sfsi_email_display" != checked.attr("name") || checked.is(":checked") || SFSI(".demail-1").show("slow");
2193
+ }),
2194
+ SFSI("#deac_email2").on("click", function () {
2195
+ SFSI(".demail-1").hide("slow"), SFSI(".demail-2").show("slow");
2196
+ }),
2197
+ SFSI("#deac_email3").on("click", function () {
2198
+ SFSI(".demail-2").hide("slow"), SFSI(".demail-3").show("slow");
2199
+ }),
2200
+ SFSI(".hideemailpop").on("click", function () {
2201
+ SFSI('input[name="sfsi_email_display"]').attr("checked", !0), SFSI('input[name="sfsi_email_display"]').parent().find("span:first").css("background-position", "0px -36px"),
2202
+ SFSI(".demail-1").hide("slow"), SFSI(".demail-2").hide("slow"), SFSI(".demail-3").hide("slow");
2203
+ }),
2204
+ SFSI(".hidePop").on("click", function () {
2205
+ SFSI(".demail-1").hide("slow"), SFSI(".demail-2").hide("slow"), SFSI(".demail-3").hide("slow");
2206
+ }),
2207
+ SFSI(".activate_footer").on("click", function () {
2208
+ var nonce = SFSI(this).attr("data-nonce");
2209
+ SFSI(this).text("activating....");
2210
+ var s = {
2211
+ action: "activateFooter",
2212
+ nonce: nonce
2213
+ };
2214
+ SFSI.ajax({
2215
+ url: sfsi_icon_ajax_object.ajax_url,
2216
+ type: "post",
2217
+ data: s,
2218
+ dataType: "json",
2219
+ success: function (s) {
2220
+ if (s.res == "wrong_nonce") {
2221
+ SFSI(".activate_footer").css("font-size", "18px");
2222
+ SFSI(".activate_footer").text("Unauthorised Request, Try again after refreshing page");
2223
+ } else {
2224
+ "success" == s.res && (SFSI(".demail-1").hide("slow"), SFSI(".demail-2").hide("slow"),
2225
+ SFSI(".demail-3").hide("slow"), SFSI(".activate_footer").text("Ok, activate link"));
2226
+ }
2227
+ }
2228
+ });
2229
+ }),
2230
+ SFSI(".sfsi_removeFooter").on("click", function () {
2231
+ var nonce = SFSI(this).attr("data-nonce");
2232
+ SFSI(this).text("working....");
2233
+ var s = {
2234
+ action: "removeFooter",
2235
+ nonce: nonce
2236
+ };
2237
+ SFSI.ajax({
2238
+ url: sfsi_icon_ajax_object.ajax_url,
2239
+ type: "post",
2240
+ data: s,
2241
+ dataType: "json",
2242
+ success: function (s) {
2243
+ if (s.res == "wrong_nonce") {
2244
+ SFSI(".sfsi_removeFooter").text("Unauthorised Request, Try again after refreshing page");
2245
+ } else {
2246
+ "success" == s.res && (SFSI(".sfsi_removeFooter").fadeOut("slow"), SFSI(".sfsi_footerLnk").fadeOut("slow"));
2247
+ }
2248
+ }
2249
+ });
2250
+ }),
2251
+ /*SFSI(".radio").live("click", function() {*/
2252
+ SFSI(document).on("click", '.radio', function () {
2253
+ var s = SFSI(this).parent().find("input:radio:first");
2254
+ "sfsi_display_counts" == s.attr("name") && sfsi_show_counts();
2255
+ }),
2256
+ SFSI("#close_Uploadpopup").on("click", i), /*SFSI(".radio").live("click", function() {*/ SFSI(document).on("click", '.radio', function () {
2257
+ var s = SFSI(this).parent().find("input:radio:first");
2258
+ "sfsi_show_Onposts" == s.attr("name") && sfsi_show_OnpostsDisplay();
2259
+ }),
2260
+ sfsi_show_OnpostsDisplay(), sfsi_depened_sections(), sfsi_show_counts(), sfsi_showPreviewCounts(),
2261
+ SFSI(".share_icon_order").sortable({
2262
+ update: function () {
2263
+ SFSI(".share_icon_order li").each(function () {
2264
+ SFSI(this).attr("data-index", SFSI(this).index() + 1);
2265
+ });
2266
+ },
2267
+ revert: !0
2268
+ }),
2269
+
2270
+ //*------------------------------- Sharing text & pcitures checkbox for showing section in Page, Post STARTS -------------------------------------//
2271
+
2272
+ SFSI(document).on("click", '.checkbox', function () {
2273
+
2274
+ var s = SFSI(this).parent().find("input:checkbox:first");
2275
+ var backgroundPos = jQuery(this).css('background-position').split(" ");
2276
+ var xPos = backgroundPos[0],
2277
+ yPos = backgroundPos[1];
2278
+
2279
+ var inputName = s.attr('name');
2280
+ var inputChecked = s.attr("checked");
2281
+
2282
+ switch (inputName) {
2283
+
2284
+ case "sfsi_custom_social_hide":
2285
+
2286
+ var val = (yPos == "0px") ? "no" : "yes";
2287
+ SFSI('input[name="sfsi_custom_social_hide"]').val(val);
2288
+
2289
+ break;
2290
+
2291
+ case "sfsi_show_via_widget":
2292
+ case "sfsi_show_via_widget":
2293
+ case "sfsi_show_via_afterposts":
2294
+ case "sfsi_custom_social_hide":
2295
+
2296
+ var val = (yPos == "0px") ? "no" : "yes";
2297
+ SFSI('input[name="' + s.attr('name') + '"]').val(val);
2298
+
2299
+ break;
2300
+
2301
+ case 'sfsi_mouseOver':
2302
+
2303
+ var elem = SFSI('input[name="' + inputName + '"]');
2304
+
2305
+ var togglelem = SFSI('.mouse-over-effects');
2306
+
2307
+ if (inputChecked) {
2308
+ togglelem.removeClass('hide').addClass('show');
2309
+ } else {
2310
+ togglelem.removeClass('show').addClass('hide');
2311
+ }
2312
+
2313
+ break;
2314
+ case 'sfsi_responsive_facebook_display':
2315
+ if(inputChecked){
2316
+ SFSI('.sfsi_responsive_icon_facebook_container').parents('a').show();
2317
+ var icon= inputName.replace('sfsi_responsive_','').replace('_display','');
2318
+ if(SFSI('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val()!=="Fully responsive"){
2319
+ window.sfsi_fittext_shouldDisplay=true;
2320
+ jQuery('.sfsi_responsive_icon_preview a').each(function(index,a_container){
2321
+ if(jQuery(a_container).css('display')!=="none"){
2322
+ sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2323
+ }
2324
+ })
2325
+ }
2326
+ }else{
2327
+
2328
+ SFSI('.sfsi_responsive_icon_facebook_container').parents('a').hide();
2329
+ if(SFSI('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val()!=="Fully responsive"){
2330
+ window.sfsi_fittext_shouldDisplay=true;
2331
+ jQuery('.sfsi_responsive_icon_preview a').each(function(index,a_container){
2332
+ if(jQuery(a_container).css('display')!=="none"){
2333
+ sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2334
+ }
2335
+ })
2336
+ }
2337
+ }
2338
+ break;
2339
+ case 'sfsi_responsive_Twitter_display':
2340
+ if(inputChecked){
2341
+ SFSI('.sfsi_responsive_icon_twitter_container').parents('a').show();
2342
+ var icon= inputName.replace('sfsi_responsive_','').replace('_display','');
2343
+ if(SFSI('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val()!=="Fully responsive"){
2344
+ window.sfsi_fittext_shouldDisplay=true;
2345
+ jQuery('.sfsi_responsive_icon_preview a').each(function(index,a_container){
2346
+ if(jQuery(a_container).css('display')!=="none"){
2347
+ sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2348
+ }
2349
+ })
2350
+ }
2351
+ }else{
2352
+ SFSI('.sfsi_responsive_icon_twitter_container').parents('a').hide();
2353
+ if(SFSI('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val()!=="Fully responsive"){
2354
+ window.sfsi_fittext_shouldDisplay=true;
2355
+ jQuery('.sfsi_responsive_icon_preview a').each(function(index,a_container){
2356
+ if(jQuery(a_container).css('display')!=="none"){
2357
+ sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2358
+ }
2359
+ })
2360
+ }
2361
+ }
2362
+ break;
2363
+ case 'sfsi_responsive_Follow_display':
2364
+ if(inputChecked){
2365
+ SFSI('.sfsi_responsive_icon_follow_container').parents('a').show();
2366
+ var icon= inputName.replace('sfsi_responsive_','').replace('_display','');
2367
+ }else{
2368
+ SFSI('.sfsi_responsive_icon_follow_container').parents('a').hide();
2369
+ }
2370
+ window.sfsi_fittext_shouldDisplay=true;
2371
+ jQuery('.sfsi_responsive_icon_preview a').each(function(index,a_container){
2372
+ if(jQuery(a_container).css('display')!=="none"){
2373
+ sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2374
+ }
2375
+ })
2376
+ break;
2377
+ }
2378
+
2379
+ });
2380
+
2381
+ //*------------------------------- Sharing text & pcitures checkbox for showing section in Page, Post CLOSES -------------------------------------//
2382
+
2383
+ SFSI(document).on("click", '.radio', function () {
2384
+
2385
+ var s = SFSI(this).parent().find("input:radio:first");
2386
+
2387
+ switch (s.attr("name")) {
2388
+
2389
+ case 'sfsi_mouseOver_effect_type':
2390
+
2391
+ var _val = s.val();
2392
+ var _name = s.attr("name");
2393
+
2394
+ if ('same_icons' == _val) {
2395
+ SFSI('.same_icons_effects').removeClass('hide').addClass('show');
2396
+ SFSI('.other_icons_effects_options').removeClass('show').addClass('hide');
2397
+ } else if ('other_icons' == _val) {
2398
+ SFSI('.same_icons_effects').removeClass('show').addClass('hide');
2399
+ SFSI('.other_icons_effects_options').removeClass('hide').addClass('show');
2400
+ }
2401
+
2402
+ break;
2403
+ }
2404
+
2405
+ });
2406
+
2407
+ SFSI(document).on("click", '.radio', function () {
2408
+
2409
+ var s = SFSI(this).parent().find("input:radio:first");
2410
+ "sfsi_email_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_email_countsDisplay"]').prop("checked", !0),
2411
+ SFSI('input[name="sfsi_email_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
2412
+ "manual" == SFSI("input[name='sfsi_email_countsFrom']:checked").val() ? SFSI("input[name='sfsi_email_manualCounts']").slideDown() : SFSI("input[name='sfsi_email_manualCounts']").slideUp()),
2413
+
2414
+ "sfsi_facebook_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_facebook_countsDisplay"]').prop("checked", !0),
2415
+ SFSI('input[name="sfsi_facebook_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
2416
+ "mypage" == SFSI("input[name='sfsi_facebook_countsFrom']:checked").val() ? (SFSI("input[name='sfsi_facebook_mypageCounts']").slideDown(), SFSI(".sfsi_fbpgidwpr").slideDown()) : (SFSI("input[name='sfsi_facebook_mypageCounts']").slideUp(), SFSI(".sfsi_fbpgidwpr").slideUp()),
2417
+
2418
+ "manual" == SFSI("input[name='sfsi_facebook_countsFrom']:checked").val() ? SFSI("input[name='sfsi_facebook_manualCounts']").slideDown() : SFSI("input[name='sfsi_facebook_manualCounts']").slideUp()),
2419
+
2420
+ "sfsi_facebook_countsFrom" == s.attr("name") && (("mypage" == SFSI("input[name='sfsi_facebook_countsFrom']:checked").val() || "likes" == SFSI("input[name='sfsi_facebook_countsFrom']:checked").val()) ? (SFSI(".sfsi_facebook_pagedeasc").slideDown()) : (SFSI(".sfsi_facebook_pagedeasc").slideUp())),
2421
+
2422
+ "sfsi_twitter_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_twitter_countsDisplay"]').prop("checked", !0),
2423
+ SFSI('input[name="sfsi_twitter_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
2424
+ "manual" == SFSI("input[name='sfsi_twitter_countsFrom']:checked").val() ? (SFSI("input[name='sfsi_twitter_manualCounts']").slideDown(),
2425
+ SFSI(".tw_follow_options").slideUp()) : (SFSI("input[name='sfsi_twitter_manualCounts']").slideUp(),
2426
+ SFSI(".tw_follow_options").slideDown())),
2427
+
2428
+
2429
+ "sfsi_linkedIn_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_linkedIn_countsDisplay"]').prop("checked", !0),
2430
+ SFSI('input[name="sfsi_linkedIn_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
2431
+ "manual" == SFSI("input[name='sfsi_linkedIn_countsFrom']:checked").val() ? (SFSI("input[name='sfsi_linkedIn_manualCounts']").slideDown(),
2432
+ SFSI(".linkedIn_options").slideUp()) : (SFSI("input[name='sfsi_linkedIn_manualCounts']").slideUp(),
2433
+ SFSI(".linkedIn_options").slideDown())),
2434
+
2435
+ "sfsi_youtube_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_youtube_countsDisplay"]').prop("checked", !0),
2436
+ SFSI('input[name="sfsi_youtube_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
2437
+ "manual" == SFSI("input[name='sfsi_youtube_countsFrom']:checked").val() ? (SFSI("input[name='sfsi_youtube_manualCounts']").slideDown(),
2438
+ SFSI(".youtube_options").slideUp()) : (SFSI("input[name='sfsi_youtube_manualCounts']").slideUp(),
2439
+ SFSI(".youtube_options").slideDown())), "sfsi_pinterest_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_pinterest_countsDisplay"]').prop("checked", !0),
2440
+ SFSI('input[name="sfsi_pinterest_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
2441
+ "manual" == SFSI("input[name='sfsi_pinterest_countsFrom']:checked").val() ? (SFSI("input[name='sfsi_pinterest_manualCounts']").slideDown(),
2442
+ SFSI(".pin_options").slideUp()) : SFSI("input[name='sfsi_pinterest_manualCounts']").slideUp()),
2443
+
2444
+ "sfsi_instagram_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_instagram_countsDisplay"]').prop("checked", !0),
2445
+ SFSI('input[name="sfsi_instagram_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
2446
+ "manual" == SFSI("input[name='sfsi_instagram_countsFrom']:checked").val() ? (SFSI("input[name='sfsi_instagram_manualCounts']").slideDown(),
2447
+ SFSI(".instagram_userLi").slideUp()) : (SFSI("input[name='sfsi_instagram_manualCounts']").slideUp(),
2448
+ SFSI(".instagram_userLi").slideDown()));
2449
+
2450
+ }),
2451
+
2452
+ sfsi_make_popBox(),
2453
+
2454
+ SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("keyup", sfsi_make_popBox),
2455
+ SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("focus", sfsi_make_popBox),
2456
+
2457
+ SFSI("#sfsi_popup_font ,#sfsi_popup_fontStyle").on("change", sfsi_make_popBox),
2458
+
2459
+ /*SFSI(".radio").live("click", function(){*/
2460
+ SFSI(document).on("click", '.radio', function () {
2461
+
2462
+ var s = SFSI(this).parent().find("input:radio:first");
2463
+
2464
+ if ("sfsi_icons_floatPosition" == s.attr("name")) {
2465
+ SFSI('input[name="sfsi_icons_floatPosition"]').removeAttr("checked");
2466
+ s.attr("checked", true);
2467
+ }
2468
+
2469
+ if ("sfsi_disable_floaticons" == s.attr("name")) {
2470
+ SFSI('input[name="sfsi_disable_floaticons"]').removeAttr("checked");
2471
+ s.attr("checked", true);
2472
+ }
2473
+
2474
+ "sfsi_popup_border_shadow" == s.attr("name") && sfsi_make_popBox();
2475
+ }), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI("img.sfsi_wicon").on("click", function (s) {
2476
+ s.stopPropagation();
2477
+ var i = SFSI("#sfsi_floater_sec").val();
2478
+ SFSI("div.sfsi_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide(),
2479
+ SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index", "0"),
2480
+ SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()),
2481
+ SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
2482
+ "z-index": "999"
2483
+ }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
2484
+ opacity: 1,
2485
+ "z-index": 10
2486
+ }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
2487
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
2488
+ opacity: 1,
2489
+ "z-index": 10
2490
+ }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
2491
+ SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
2492
+ opacity: 1,
2493
+ "z-index": 10
2494
+ })), ("top-left" == i || "top-right" == i) && SFSI(this).parent().parent().parent().parent("#sfsi_floater").length > 0 && "sfsi_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),
2495
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
2496
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
2497
+ opacity: 1,
2498
+ "z-index": 10
2499
+ }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()) : (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),
2500
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),
2501
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
2502
+ opacity: 1,
2503
+ "z-index": 1e3
2504
+ }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show());
2505
+ }) : SFSI("img.sfsi_wicon").on("mouseenter", function () {
2506
+ var s = SFSI("#sfsi_floater_sec").val();
2507
+ SFSI("div.sfsi_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide(),
2508
+ SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index", "0"),
2509
+ SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()),
2510
+ SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
2511
+ "z-index": "999"
2512
+ }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
2513
+ opacity: 1,
2514
+ "z-index": 10
2515
+ }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
2516
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
2517
+ opacity: 1,
2518
+ "z-index": 10
2519
+ }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
2520
+ SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
2521
+ opacity: 1,
2522
+ "z-index": 10
2523
+ })), ("top-left" == s || "top-right" == s) && SFSI(this).parent().parent().parent().parent("#sfsi_floater").length > 0 && "sfsi_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),
2524
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
2525
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
2526
+ opacity: 1,
2527
+ "z-index": 10
2528
+ }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()) : (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),
2529
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),
2530
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
2531
+ opacity: 1,
2532
+ "z-index": 10
2533
+ }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show());
2534
+ }), SFSI("div.sfsi_wicons").on("mouseleave", function () {
2535
+ SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && "fade_in" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.inerCnt").find("a.sficn").css("opacity", "0.6"),
2536
+ SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && "scale" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.inerCnt").find("a.sficn").removeClass("scale"),
2537
+ SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && "combo" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && (SFSI(this).children("div.inerCnt").find("a.sficn").css("opacity", "0.6"),
2538
+ SFSI(this).children("div.inerCnt").find("a.sficn").removeClass("scale")), SFSI(this).children(".inerCnt").find("div.sfsi_tool_tip_2").hide();
2539
+ }), SFSI("body").on("click", function () {
2540
+ SFSI(".inerCnt").find("div.sfsi_tool_tip_2").hide();
2541
+ }), SFSI(".adminTooltip >a").on("hover", function () {
2542
+ SFSI(this).offset().top, SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "1"),
2543
+ SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").show();
2544
+ }), SFSI(".adminTooltip").on("mouseleave", function () {
2545
+ "none" != SFSI(".gpls_tool_bdr").css("display") && 0 != SFSI(".gpls_tool_bdr").css("opacity") ? SFSI(".pop_up_box ").on("click", function () {
2546
+ SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"), SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide();
2547
+ }) : (SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"),
2548
+ SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide());
2549
+ }), SFSI(".expand-area").on("click", function () {
2550
+ "Read more" == SFSI(this).text() ? (SFSI(this).siblings("p").children("label").fadeIn("slow"),
2551
+ SFSI(this).text("Collapse")) : (SFSI(this).siblings("p").children("label").fadeOut("slow"),
2552
+ SFSI(this).text("Read more"));
2553
+ }), /*SFSI(".radio").live("click", function() {*/ SFSI(document).on("click", '.radio', function () {
2554
+
2555
+ var s = SFSI(this).parent().find("input:radio:first");
2556
+
2557
+ "sfsi_icons_float" == s.attr("name") && "yes" == s.val() && (SFSI(".float_options").slideDown("slow"),
2558
+
2559
+ SFSI('input[name="sfsi_icons_stick"][value="no"]').attr("checked", !0), SFSI('input[name="sfsi_icons_stick"][value="yes"]').removeAttr("checked"),
2560
+ SFSI('input[name="sfsi_icons_stick"][value="no"]').parent().find("span").attr("style", "background-position:0px -41px;"),
2561
+ SFSI('input[name="sfsi_icons_stick"][value="yes"]').parent().find("span").attr("style", "background-position:0px -0px;")),
2562
+
2563
+ //("sfsi_icons_stick" == s.attr("name") && "yes" == s.val() || "sfsi_icons_float" == s.attr("name") && "no" == s.val()) && (SFSI(".float_options").slideUp("slow"),
2564
+ ("sfsi_icons_stick" == s.attr("name") && "yes" == s.val()) && (SFSI(".float_options").slideUp("slow"),
2565
+
2566
+ SFSI('input[name="sfsi_icons_float"][value="no"]').prop("checked", !0), SFSI('input[name="sfsi_icons_float"][value="yes"]').prop("checked", !1),
2567
+ SFSI('input[name="sfsi_icons_float"][value="no"]').parent().find("span.radio").attr("style", "background-position:0px -41px;"),
2568
+ SFSI('input[name="sfsi_icons_float"][value="yes"]').parent().find("span.radio").attr("style", "background-position:0px -0px;"));
2569
+
2570
+ }),
2571
+
2572
+ SFSI(".sfsi_wDiv").length > 0 && setTimeout(function () {
2573
+ var s = parseInt(SFSI(".sfsi_wDiv").height()) + 0 + "px";
2574
+ SFSI(".sfsi_holders").each(function () {
2575
+ SFSI(this).css("height", s);
2576
+ });
2577
+ }, 200),
2578
+ /*SFSI(".checkbox").live("click", function() {*/
2579
+ SFSI(document).on("click", '.checkbox', function () {
2580
+ var s = SFSI(this).parent().find("input:checkbox:first");
2581
+ ("sfsi_shuffle_Firstload" == s.attr("name") && "checked" == s.attr("checked") || "sfsi_shuffle_interval" == s.attr("name") && "checked" == s.attr("checked")) && (SFSI('input[name="sfsi_shuffle_icons"]').parent().find("span").css("background-position", "0px -36px"),
2582
+ SFSI('input[name="sfsi_shuffle_icons"]').attr("checked", "checked")), "sfsi_shuffle_icons" == s.attr("name") && "checked" != s.attr("checked") && (SFSI('input[name="sfsi_shuffle_Firstload"]').removeAttr("checked"),
2583
+ SFSI('input[name="sfsi_shuffle_Firstload"]').parent().find("span").css("background-position", "0px 0px"),
2584
+ SFSI('input[name="sfsi_shuffle_interval"]').removeAttr("checked"), SFSI('input[name="sfsi_shuffle_interval"]').parent().find("span").css("background-position", "0px 0px"));
2585
+ });
2586
+
2587
+ SFSI("body").on("click", "#sfsi_getMeFullAccess", function () {
2588
+ var email = SFSI(this).parents("form").find("input[type='email']").val();
2589
+ var feedid = SFSI(this).parents("form").find("input[name='feedid']").val();
2590
+ var error = false;
2591
+ var regEx = /^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
2592
+
2593
+ if (email === '') {
2594
+ error = true;
2595
+ }
2596
+
2597
+ if (!regEx.test(email)) {
2598
+ error = true;
2599
+ }
2600
+
2601
+ if (!error) {
2602
+ console.log("feedid",feedid);
2603
+ // if(feedid && feedid!==""){
2604
+ SFSI(this).parents("form").submit();
2605
+ // }else{
2606
+ // window.open('https://www.specificfeeds.com/subscribe?pub=boTZa2n0OIjC4D8PkiyzByH-uKEJSZgqMW-sJiFwbuEnoxENjKva2A');
2607
+ // }
2608
+ } else {
2609
+ alert("Error: Please provide your email address.");
2610
+ }
2611
+ });
2612
+
2613
+ SFSI('form#calimingOptimizationForm').on('keypress', function (e) {
2614
+ var keyCode = e.keyCode || e.which;
2615
+ if (keyCode === 13) {
2616
+ e.preventDefault();
2617
+ return false;
2618
+ }
2619
+ });
2620
+
2621
+ /*SFSI(".checkbox").live("click", function()
2622
+ {
2623
+ var s = SFSI(this).parent().find("input:checkbox:first");
2624
+ "float_on_page" == s.attr("name") && "yes" == s.val() && (
2625
+ SFSI('input[name="sfsi_icons_stick"][value="no"]').attr("checked", !0), SFSI('input[name="sfsi_icons_stick"][value="yes"]').removeAttr("checked"),
2626
+ SFSI('input[name="sfsi_icons_stick"][value="no"]').parent().find("span").attr("style", "background-position:0px -41px;"),
2627
+ SFSI('input[name="sfsi_icons_stick"][value="yes"]').parent().find("span").attr("style", "background-position:0px -0px;"));
2628
+ });
2629
+ SFSI(".radio").live("click", function()
2630
+ {
2631
+ var s = SFSI(this).parent().find("input:radio:first");
2632
+ var a = SFSI(".cstmfltonpgstck");
2633
+ ("sfsi_icons_stick" == s.attr("name") && "yes" == s.val()) && (
2634
+ SFSI('input[name="float_on_page"][value="no"]').prop("checked", !0), SFSI('input[name="float_on_page"][value="yes"]').prop("checked", !1),
2635
+ SFSI('input[name="float_on_page"][value="no"]').parent().find("span.checkbox").attr("style", "background-position:0px -41px;"),
2636
+ SFSI('input[name="float_on_page"][value="yes"]').parent().find("span.checkbox").attr("style", "background-position:0px -0px;"),
2637
+ jQuery(a).children(".checkbox").css("background-position", "0px 0px" ), toggleflotpage(a));
2638
+ });*/
2639
+ window.sfsi_initialization_checkbox_count = 0;
2640
+ window.sfsi_initialization_checkbox = setInterval(function () {
2641
+ // console.log(jQuery('.radio_section.tb_4_ck>span.checkbox').length,jQuery('.radio_section.tb_4_ck>input.styled').length);
2642
+ if (jQuery('.radio_section.tb_4_ck>span.checkbox').length < jQuery('.radio_section.tb_4_ck>input.styled').length) {
2643
+ window.sfsi_initialization_checkbox_count++;
2644
+ // console.log('not initialized',window.sfsi_initialization_checkbox_count);
2645
+ if (window.sfsi_initialization_checkbox_count > 12) {
2646
+ // alert('Some script from diffrent plugin is interfearing with "Ultimate Social Icons" js files and checkbox couldn\'t be initialized. ');
2647
+ // window.clearInterval(window.sfsi_initialization_checkbox);
2648
+ }
2649
+ } else {
2650
+ // console.log('all initialized',window.sfsi_initialization_checkbox_count);
2651
+ window.clearInterval(window.sfsi_initialization_checkbox);
2652
+ }
2653
+ }, 1000);
2654
+ sfsi_responsive_icon_intraction_handler();
2655
+
2656
+ });
2657
+
2658
+ //for utube channel name and id
2659
+ function showhideutube(ref) {
2660
+ var chnlslctn = SFSI(ref).children("input").val();
2661
+ if (chnlslctn == "name") {
2662
+ SFSI(ref).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlnmewpr").slideDown();
2663
+ SFSI(ref).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlidwpr").slideUp();
2664
+ } else {
2665
+ SFSI(ref).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlidwpr").slideDown();
2666
+ SFSI(ref).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlnmewpr").slideUp();
2667
+ }
2668
+ }
2669
+
2670
+ function checkforinfoslction(ref) {
2671
+ var pos = jQuery(ref).children(".checkbox").css("background-position");
2672
+
2673
+ var rightInfoClass = jQuery(ref).next().attr('class');
2674
+
2675
+ var rightInfoPElem = jQuery(ref).next("." + rightInfoClass).children("p").first();
2676
+
2677
+ var elemName = 'label';
2678
+
2679
+ if (pos == "0px 0px") {
2680
+ rightInfoPElem.children(elemName).hide();
2681
+ } else {
2682
+ rightInfoPElem.children(elemName).show();
2683
+ }
2684
+ }
2685
+
2686
+ function checkforinfoslction_checkbox(ref) {
2687
+
2688
+ var pos = jQuery(ref).children(".checkbox").css("background-position");
2689
+
2690
+ var elem = jQuery(ref).parent().children('.sfsi_right_info').find('.kckslctn');
2691
+
2692
+ if (pos == "0px 0px") {
2693
+ elem.hide();
2694
+ } else {
2695
+ elem.show();
2696
+ }
2697
+ }
2698
+
2699
+ function sfsi_toggleflotpage_que3(ref) {
2700
+ var pos = jQuery(ref).children(".checkbox").css("background-position");
2701
+ if (pos == "0px 0px") {
2702
+ jQuery(ref).next(".sfsi_right_info").hide();
2703
+
2704
+ } else {
2705
+ jQuery(ref).next(".sfsi_right_info").show();
2706
+ }
2707
+ }
2708
+
2709
+ var initTop = new Array();
2710
+
2711
+ SFSI('.sfsi_navigate_to_question7').on("click", function () {
2712
+
2713
+ var elem = SFSI('#ui-id-6');
2714
+
2715
+ if (elem.hasClass('accordion-content-active')) {
2716
+
2717
+ // Cloase tab of Question 3
2718
+ elem.find('.sfsiColbtn').trigger('click');
2719
+
2720
+ // Open tab of Question 7
2721
+ if (!SFSI('#ui-id-14').hasClass('accordion-content-active')) {
2722
+ SFSI('#ui-id-13').trigger('click');
2723
+ }
2724
+
2725
+ var pos = SFSI("#ui-id-13").offset();
2726
+ var scrollToPos = pos.top - SFSI(window).height() * 0.99 + 30;
2727
+ SFSI('html,body').animate({
2728
+ scrollTop: scrollToPos
2729
+ }, 500);
2730
+ }
2731
+ });
2732
+
2733
+ SFSI("body").on("click", ".sfsi_tokenGenerateButton a", function () {
2734
+ var clienId = SFSI("input[name='sfsi_instagram_clientid']").val();
2735
+ var redirectUrl = SFSI("input[name='sfsi_instagram_appurl']").val();
2736
+
2737
+ var scope = "likes+comments+basic+public_content+follower_list+relationships";
2738
+ var instaUrl = "https://www.instagram.com/oauth/authorize/?client_id=<id>&redirect_uri=<url>&response_type=token&scope=" + scope;
2739
+
2740
+ if (clienId !== '' && redirectUrl !== '') {
2741
+ instaUrl = instaUrl.replace('<id>', clienId);
2742
+ instaUrl = instaUrl.replace('<url>', redirectUrl);
2743
+
2744
+ window.open(instaUrl, '_blank');
2745
+ } else {
2746
+ alert("Please enter client id and redirect url first");
2747
+ }
2748
+
2749
+ });
2750
+ SFSI(document).ready(function () {
2751
+ SFSI('#sfsi_jivo_offline_chat .tab-link').click(function () {
2752
+ var cur = SFSI(this);
2753
+ if (!cur.hasClass('active')) {
2754
+ var target = cur.find('a').attr('href');
2755
+ cur.parent().children().removeClass('active');
2756
+ cur.addClass('active');
2757
+ SFSI('#sfsi_jivo_offline_chat .tabs').children().hide();
2758
+ SFSI(target).show();
2759
+ }
2760
+ });
2761
+ SFSI('#sfsi_jivo_offline_chat #sfsi_sales form').submit(function (event) {
2762
+ event & event.preventDefault();
2763
+ // console.log(event);
2764
+ var target = SFSI(this).parents('.tab-content');
2765
+ var message = SFSI(this).find('textarea[name="question"]').val();
2766
+ var email = SFSI(this).find('input[name="email"]').val();
2767
+ var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
2768
+ var nonce = SFSI(this).find('input[name="nonce"]').val();
2769
+
2770
+ if ("" === email || false === re.test(String(email).toLowerCase())) {
2771
+ // console.log(SFSI(this).find('input[name="email"]'));
2772
+ SFSI(this).find('input[name="email"]').css('background-color', 'red');
2773
+ SFSI(this).find('input[name="email"]').on('keyup', function () {
2774
+ var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
2775
+ var email = SFSI(this).val();
2776
+ // console.log(email,re.test(String(email).toLowerCase()) );
2777
+ if ("" !== email && true === re.test(String(email).toLowerCase())) {
2778
+ SFSI(this).css('background-color', '#fff');
2779
+ }
2780
+ })
2781
+ return false;
2782
+
2783
+ }
2784
+ SFSI.ajax({
2785
+ url: sfsi_icon_ajax_object.ajax_url,
2786
+ type: "post",
2787
+ data: {
2788
+ action: "sfsiOfflineChatMessage",
2789
+ message: message,
2790
+ email: email,
2791
+ 'nonce': nonce
2792
+ }
2793
+ }).done(function () {
2794
+ target.find('.before_message_sent').hide();
2795
+ target.find('.after_message_sent').show();
2796
+ });
2797
+ })
2798
+ });
2799
+
2800
+ function sfsi_close_offline_chat(e) {
2801
+ e && e.preventDefault();
2802
+
2803
+ SFSI('#sfsi_jivo_offline_chat').hide();
2804
+ SFSI('#sfsi_dummy_chat_icon').show();
2805
+ }
2806
+
2807
+ function sfsi_open_quick_checkout(e) {
2808
+ e && e.preventDefault();
2809
+ // console.log(jQuery('.sfsi_quick-pay-box'));
2810
+ jQuery('.sfsi_quick-pay-box').show();
2811
+ }
2812
+
2813
+ function sfsi_close_quickpay(e) {
2814
+ e && e.preventDefault();
2815
+ jQuery('.sfsi_quickpay-overlay').hide();
2816
+ }
2817
+
2818
+ function sfsi_quickpay_container_click(event) {
2819
+ if (jQuery(event.target).hasClass('sellcodes-quick-purchase')) {
2820
+ jQuery(jQuery(event.target).find('p.sc-button img')[0]).click();
2821
+ }
2822
+ }
2823
+
2824
+
2825
+
2826
+ // <------------------------* Responsive icon *----------------------->
2827
+
2828
+ function sfsi_responsive_icon_intraction_handler() {
2829
+ window.sfsi_fittext_shouldDisplay = true;
2830
+ SFSI('select[name="sfsi_responsive_icons_settings_edge_type"]').on('change', function () {
2831
+ $target_div = (SFSI(this).parent());
2832
+ if (SFSI(this).val() === "Round") {
2833
+ console.log('Round', 'Round', SFSI(this).val());
2834
+
2835
+ $target_div.parent().children().css('display', 'inline-block');
2836
+ $target_div.parent().next().css("display","inline-block");
2837
+ var radius = jQuery('select[name="sfsi_responsive_icons_settings_edge_radius"]').val() + 'px'
2838
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container,.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').css('border-radius', radius);
2839
+
2840
+ } else {
2841
+ console.log('sharp', 'sharp', SFSI(this).val(), $target_div.parent().children(), $target_div.parent().children().hide());
2842
+
2843
+ $target_div.parent().children().hide();
2844
+ $target_div.show();
2845
+ $target_div.parent().next().hide();
2846
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container,.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').css('border-radius', 'unset');
2847
+
2848
+ }
2849
+ });
2850
+ SFSI('select[name="sfsi_responsive_icons_settings_icon_width_type"]').on('change', function () {
2851
+ $target_div = (SFSI(this).parent());
2852
+ if (SFSI(this).val() === "Fixed icon width") {
2853
+ $target_div.parent().children().css('display', 'inline-block');
2854
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').css('width', 'auto').css('display', 'flex');
2855
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container a').css('flex-basis', 'unset');
2856
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').css('width', jQuery('input[name="sfsi_responsive_icons_sttings_icon_width_size"]').val());
2857
+
2858
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container_box_fully_container').removeClass('sfsi_icons_container_box_fully_container').addClass('sfsi_icons_container_box_fixed_container');
2859
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container_box_fixed_container').removeClass('sfsi_icons_container_box_fully_container').addClass('sfsi_icons_container_box_fixed_container');
2860
+ window.sfsi_fittext_shouldDisplay = true;
2861
+ jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
2862
+ if (jQuery(a_container).css('display') !== "none") {
2863
+ sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2864
+ }
2865
+ })
2866
+ } else {
2867
+ $target_div.parent().children().hide();
2868
+ $target_div.show();
2869
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').css('width', '100%').css('display', 'flex');
2870
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container a').css('flex-basis', '100%');
2871
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').css('width', '100%');
2872
+
2873
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container_box_fixed_container').removeClass('sfsi_icons_container_box_fixed_container').addClass('sfsi_icons_container_box_fully_container');
2874
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container_box_fully_container').removeClass('sfsi_icons_container_box_fixed_container').addClass('sfsi_icons_container_box_fully_container');
2875
+ window.sfsi_fittext_shouldDisplay = true;
2876
+ jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
2877
+ if (jQuery(a_container).css('display') !== "none") {
2878
+ sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2879
+ }
2880
+ })
2881
+ }
2882
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').removeClass('sfsi_fixed_count_container').removeClass('sfsi_responsive_count_container').addClass('sfsi_' + (jQuery(this).val() == "Fully responsive" ? 'responsive' : 'fixed') + '_count_container')
2883
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container>a').removeClass('sfsi_responsive_fluid').removeClass('sfsi_responsive_fixed_width').addClass('sfsi_responsive_' + (jQuery(this).val() == "Fully responsive" ? 'fluid' : 'fixed_width'))
2884
+ sfsi_resize_icons_container();
2885
+
2886
+ })
2887
+ jQuery(document).on('keyup', 'input[name="sfsi_responsive_icons_sttings_icon_width_size"]', function () {
2888
+ if (SFSI('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val() === "Fixed icon width") {
2889
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').css('width', jQuery(this).val() + 'px');
2890
+ window.sfsi_fittext_shouldDisplay = true;
2891
+ jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
2892
+ if (jQuery(a_container).css('display') !== "none") {
2893
+ sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2894
+ }
2895
+ })
2896
+ }
2897
+ sfsi_resize_icons_container();
2898
+ });
2899
+ jQuery(document).on('change', 'input[name="sfsi_responsive_icons_sttings_icon_width_size"]', function () {
2900
+ if (SFSI('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val() === "Fixed icon width") {
2901
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').css('width', jQuery(this).val() + 'px');
2902
+ }
2903
+ });
2904
+ jQuery(document).on('keyup', 'input[name="sfsi_responsive_icons_settings_margin"]', function () {
2905
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container a,.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').css('margin-right', jQuery(this).val() + 'px');
2906
+ });
2907
+ jQuery(document).on('change', 'input[name="sfsi_responsive_icons_settings_margin"]', function () {
2908
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container a,.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').css('margin-right', jQuery(this).val() + 'px');
2909
+ // jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').css('width',(jQuery('.sfsi_responsive_icons').width()-(jQuery('.sfsi_responsive_icons_count').width()+jQuery(this).val()))+'px');
2910
+
2911
+ });
2912
+ jQuery(document).on('change', 'select[name="sfsi_responsive_icons_settings_text_align"]', function () {
2913
+ if (jQuery(this).val() === "Centered") {
2914
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container a').css('text-align', 'center');
2915
+ } else {
2916
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container a').css('text-align', 'left');
2917
+ }
2918
+ });
2919
+ jQuery('.sfsi_responsive_default_icon_container input.sfsi_responsive_input').on('keyup', function () {
2920
+ jQuery(this).parent().find('.sfsi_responsive_icon_item_container').find('span').text(jQuery(this).val());
2921
+ var iconName = jQuery(this).attr('name');
2922
+ var icon = iconName.replace('sfsi_responsive_', '').replace('_input', '');
2923
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_' + (icon.toLowerCase()) + '_container span').text(jQuery(this).val());
2924
+ window.sfsi_fittext_shouldDisplay = true;
2925
+ jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
2926
+ if (jQuery(a_container).css('display') !== "none") {
2927
+ sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2928
+ }
2929
+ })
2930
+ sfsi_resize_icons_container();
2931
+ })
2932
+ jQuery('.sfsi_responsive_custom_icon_container input.sfsi_responsive_input').on('keyup', function () {
2933
+ jQuery(this).parent().find('.sfsi_responsive_icon_item_container').find('span').text(jQuery(this).val());
2934
+ var iconName = jQuery(this).attr('name');
2935
+ var icon = iconName.replace('sfsi_responsive_custom_', '').replace('_input', '');
2936
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_' + icon + '_container span').text(jQuery(this).val())
2937
+ window.sfsi_fittext_shouldDisplay = true;
2938
+ jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
2939
+ if (jQuery(a_container).css('display') !== "none") {
2940
+ sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2941
+ }
2942
+ })
2943
+ sfsi_resize_icons_container();
2944
+
2945
+ })
2946
+
2947
+ jQuery('.sfsi_responsive_default_url_toggler').click(function (event) {
2948
+
2949
+ event.preventDefault();
2950
+ sfsi_responsive_open_url(event);
2951
+ });
2952
+ jQuery('.sfsi_responsive_default_url_toggler').click(function (event) {
2953
+ event.preventDefault();
2954
+ sfsi_responsive_open_url(event);
2955
+ })
2956
+ jQuery('.sfsi_responsive_custom_url_hide, .sfsi_responsive_default_url_hide').click(function (event) {
2957
+ event.preventDefault();
2958
+ /* console.log(event,jQuery(event.target)); */
2959
+ jQuery(event.target).parent().parent().find('.sfsi_responsive_custom_url_hide').hide();
2960
+ jQuery(event.target).parent().parent().find('.sfsi_responsive_url_input').hide();
2961
+ jQuery(event.target).parent().parent().find('.sfsi_responsive_default_url_hide').hide();
2962
+ jQuery(event.target).parent().parent().find('.sfsi_responsive_default_url_toggler').show();
2963
+ });
2964
+ jQuery('select[name="sfsi_responsive_icons_settings_icon_size"]').change(function (event) {
2965
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container,.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').removeClass('sfsi_small_button').removeClass('sfsi_medium_button').removeClass('sfsi_large_button').addClass('sfsi_' + (jQuery(this).val().toLowerCase()) + '_button');
2966
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').removeClass('sfsi_small_button_container').removeClass('sfsi_medium_button_container').removeClass('sfsi_large_button_container').addClass('sfsi_' + (jQuery(this).val().toLowerCase()) + '_button_container')
2967
+ })
2968
+ jQuery(document).on('change', 'select[name="sfsi_responsive_icons_settings_edge_radius"]', function (event) {
2969
+ var radius = jQuery(this).val() + 'px'
2970
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container,.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').css('border-radius', radius);
2971
+
2972
+ });
2973
+ jQuery(document).on('change', 'select[name="sfsi_responsive_icons_settings_style"]', function (event) {
2974
+ if ('Flat' === jQuery(this).val()) {
2975
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').removeClass('sfsi_responsive_icon_gradient');
2976
+ } else {
2977
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').addClass('sfsi_responsive_icon_gradient');
2978
+ }
2979
+ });
2980
+ jQuery(document).on('mouseenter', '.sfsi_responsive_icon_preview .sfsi_icons_container a', function () {
2981
+ jQuery(this).css('opacity', 0.8);
2982
+ })
2983
+ jQuery(document).on('mouseleave', '.sfsi_responsive_icon_preview .sfsi_icons_container a', function () {
2984
+ jQuery(this).css('opacity', 1);
2985
+ })
2986
+ window.sfsi_fittext_shouldDisplay = true;
2987
+ jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
2988
+ if (jQuery(a_container).css('display') !== "none") {
2989
+ sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2990
+ }
2991
+ })
2992
+ sfsi_resize_icons_container();
2993
+ jQuery('.ui-accordion-header.ui-state-default.ui-accordion-icons').click(function (data) {
2994
+ window.sfsi_fittext_shouldDisplay = true;
2995
+ jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
2996
+ if (jQuery(a_container).css('display') !== "none") {
2997
+ sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2998
+ }
2999
+ })
3000
+ sfsi_resize_icons_container();
3001
+ });
3002
+ jQuery('select[name="sfsi_responsive_icons_settings_text_align"]').change(function (event) {
3003
+ var data = jQuery(event.target).val();
3004
+ if (data == "Centered") {
3005
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').removeClass('sfsi_left-align_icon').addClass('sfsi_centered_icon');
3006
+ } else {
3007
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').removeClass('sfsi_centered_icon').addClass('sfsi_left-align_icon');
3008
+ }
3009
+ });
3010
+ jQuery('a.sfsi_responsive_custom_delete_btn').click(function (event) {
3011
+ event.preventDefault();
3012
+ var icon_num = jQuery(this).attr('data-id');
3013
+ //reset the current block;
3014
+ // var last_block = jQuery('.sfsi_responsive_custom_icon_4_container').clone();
3015
+ var cur_block = jQuery('.sfsi_responsive_custom_icon_' + icon_num + '_container');
3016
+ cur_block.find('.sfsi_responsive_custom_delete_btn').hide();
3017
+ cur_block.find('input[name="sfsi_responsive_custom_' + icon_num + '_added"]').val('no');
3018
+ cur_block.find('.sfsi_responsive_custom_' + icon_num + '_added').attr('value', 'no');
3019
+ cur_block.find('.radio_section.tb_4_ck .checkbox').click();
3020
+ cur_block.hide();
3021
+
3022
+
3023
+ if (icon_num > 0) {
3024
+ var prev_block = jQuery('.sfsi_responsive_custom_icon_' + (icon_num - 1) + '_container');
3025
+ prev_block.find('.sfsi_responsive_custom_delete_btn').show();
3026
+ }
3027
+ // jQuery('.sfsi_responsive_custom_icon_container').each(function(index,custom_icon){
3028
+ // var target= jQuery(custom_icon);
3029
+ // target.find('.sfsi_responsive_custom_delete_btn');
3030
+ // var custom_id = target.find('.sfsi_responsive_custom_delete_btn').attr('data-id');
3031
+ // if(custom_id>icon_num){
3032
+ // target.removeClass('sfsi_responsive_custom_icon_'+custom_id+'_container').addClass('sfsi_responsive_custom_icon_'+(custom_id-1)+'_container');
3033
+ // target.find('input[name="sfsi_responsive_custom_'+custom_id+'_added"]').attr('name',"sfsi_responsive_custom_"+(custom_id-1)+"_added");
3034
+ // target.find('#sfsi_responsive_'+custom_id+'_display').removeClass('sfsi_responsive_custom_'+custom_id+'_display').addClass('sfsi_responsive_custom_'+(custom_id-1)+'_display').attr('id','sfsi_responsive_'+(custom_id-1)+'_display').attr('name','sfsi_responsive_custom_'+(custom_id-1)+'_display').attr('data-custom-index',(custom_id-1));
3035
+ // target.find('.sfsi_responsive_icon_item_container').removeClass('sfsi_responsive_icon_custom_'+custom_id+'_container').addClass('sfsi_responsive_icon_custom_'+(custom_id-1)+'_container');
3036
+ // target.find('.sfsi_responsive_input').attr('name','sfsi_responsive_custom_'+(custom_id-1)+'_input');
3037
+ // target.find('.sfsi_responsive_url_input').attr('name','sfsi_responsive_custom_'+(custom_id-1)+'_url_input');
3038
+ // target.find('.sfsi_bg-color-picker').attr('name','sfsi_responsive_icon_'+(custom_id-1)+'_bg_color');
3039
+ // target.find('.sfsi_logo_upload sfsi_logo_custom_'+custom_id+'_upload').removeClass('sfsi_logo_upload sfsi_logo_custom_'+custom_id+'_upload').addClass('sfsi_logo_upload sfsi_logo_custom_'+(custom_id-1)+'_upload');
3040
+ // target.find('input[type="sfsi_responsive_icons_custom_'+custom_id+'_icon"]').attr('name','input[type="sfsi_responsive_icons_custom_'+(custom_id-1)+'_icon"]');
3041
+ // target.find('.sfsi_responsive_custom_delete_btn').attr('data-id',''+(custom_id-1));
3042
+ // }
3043
+ // });
3044
+ // // sfsi_backend_section_beforeafter_set_fixed_width();
3045
+ // // jQuery(window).on('resize',sfsi_backend_section_beforeafter_set_fixed_width);
3046
+ // var new_block=jQuery('.sfsi_responsive_custom_icon_container').clone();
3047
+ // jQuery('.sfsi_responsive_custom_icon_container').remove();
3048
+ // jQuery('.sfsi_responsive_default_icon_container').parent().append(last_block).append();
3049
+ // jQuery('.sfsi_responsive_default_icon_container').parent().append(new_block);
3050
+ // return false;
3051
+ })
3052
+ }
3053
+
3054
+ function sfsi_responsive_icon_counter_tgl(hide, show, ref = null) {
3055
+ if (null !== hide && '' !== hide) {
3056
+ jQuery('.' + hide).hide();
3057
+ }
3058
+ if (null !== show && '' !== show) {
3059
+ jQuery('.' + show).show();
3060
+ }
3061
+ }
3062
+
3063
+ function sfsi_responsive_toggle_count() {
3064
+ var data = jQuery('input[name="sfsi_share_count"]:checked').val();
3065
+ var data2 = jQuery('input[name="sfsi_display_counts"]:checked').val();
3066
+ /* console.log('toggleer ',data,data2); */
3067
+ if (data2 == "yes" && 'yes' == data) {
3068
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').css('display', 'inline-block');
3069
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').removeClass('sfsi_responsive_without_counter_icons').addClass('sfsi_responsive_with_counter_icons');
3070
+ sfsi_resize_icons_container();
3071
+ } else {
3072
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').css('display', 'none');
3073
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').removeClass('sfsi_responsive_with_counter_icons').addClass('sfsi_responsive_without_counter_icons');
3074
+ sfsi_resize_icons_container();
3075
+ }
3076
+ }
3077
+
3078
+ function sfsi_responsive_open_url(event) {
3079
+ jQuery(event.target).parent().find('.sfsi_responsive_custom_url_hide').show();
3080
+ jQuery(event.target).parent().find('.sfsi_responsive_default_url_hide').show();
3081
+ jQuery(event.target).parent().find('.sfsi_responsive_url_input').show();
3082
+ jQuery(event.target).hide();
3083
+ }
3084
+
3085
+ function sfsi_responsive_icon_hide_responsive_options() {
3086
+ jQuery('.sfsi_PostsSettings_section').show();
3087
+ jQuery('.sfsi_choose_post_types_section').show();
3088
+ jQuery('.sfsi_not_responsive').show();
3089
+ // jQuery('.sfsi_icn_listing8.sfsi_closerli').hide();
3090
+ }
3091
+
3092
+ function sfsi_responsive_icon_show_responsive_options() {
3093
+ jQuery('.sfsi_PostsSettings_section').hide();
3094
+ // jQuery('.sfsi_PostsSettings_section').show();
3095
+ jQuery('.sfsi_choose_post_types_section').hide();
3096
+ jQuery('.sfsi_not_responsive').hide();
3097
+ window.sfsi_fittext_shouldDisplay = true;
3098
+ jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
3099
+ if (jQuery(a_container).css('display') !== "none") {
3100
+ sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
3101
+ }
3102
+ })
3103
+ sfsi_resize_icons_container();
3104
+ }
3105
+
3106
+ function sfsi_scroll_to_div(option_id, scroll_selector) {
3107
+ jQuery('#' + option_id + '.ui-accordion-header[aria-selected="false"]').click() //opened the option
3108
+ //scroll to it.
3109
+ if (scroll_selector && scroll_selector !== '') {
3110
+ scroll_selector = scroll_selector;
3111
+ } else {
3112
+ scroll_selector = '#' + option_id + '.ui-accordion-header';
3113
+ }
3114
+ jQuery('html, body').stop().animate({
3115
+ scrollTop: jQuery(scroll_selector).offset().top
3116
+ }, 1000);
3117
+ }
3118
+
3119
+ function sfsi_fitText(container) {
3120
+ /* console.log(container,container.parent().parent(),container.parent().parent().hasClass('sfsi_icons_container_box_fixed_container')); */
3121
+ if (container.parent().parent().hasClass('sfsi_icons_container_box_fixed_container')) {
3122
+ /* console.log(window.sfsi_fittext_shouldDisplay); */
3123
+ if (window.sfsi_fittext_shouldDisplay === true) {
3124
+ if (jQuery('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val() == "Fully responsive") {
3125
+ var all_icon_width = jQuery('.sfsi_responsive_icons .sfsi_icons_container').width();
3126
+ var total_active_icons = jQuery('.sfsi_responsive_icons .sfsi_icons_container a').filter(function (i, icon) {
3127
+ return jQuery(icon).css('display') && (jQuery(icon).css('display').toLowerCase() !== "none");
3128
+ }).length;
3129
+
3130
+ var distance_between_icon = jQuery('input[name="sfsi_responsive_icons_settings_margin"]').val()
3131
+ var container_width = ((all_icon_width - distance_between_icon) / total_active_icons) - 5;
3132
+ container_width = (container_width - distance_between_icon);
3133
+ } else {
3134
+ var container_width = container.width();
3135
+ }
3136
+ // var container_img_width = container.find('img').width();
3137
+ var container_img_width = 70;
3138
+ // var span=container.find('span').clone();
3139
+ var span = container.find('span');
3140
+ // var span_original_width = container.find('span').width();
3141
+ var span_original_width = container_width - (container_img_width)
3142
+ span
3143
+ // .css('display','inline-block')
3144
+ .css('white-space', 'nowrap')
3145
+ // .css('width','auto')
3146
+ ;
3147
+ var span_flatted_width = span.width();
3148
+ if (span_flatted_width == 0) {
3149
+ span_flatted_width = span_original_width;
3150
+ }
3151
+ span
3152
+ // .css('display','inline-block')
3153
+ .css('white-space', 'unset')
3154
+ // .css('width','auto')
3155
+ ;
3156
+ var shouldDisplay = ((undefined === window.sfsi_fittext_shouldDisplay) ? true : window.sfsi_fittext_shouldDisplay = true);
3157
+ var fontSize = parseInt(span.css('font-size'));
3158
+
3159
+ if (6 > fontSize) {
3160
+ fontSize = 20;
3161
+ }
3162
+
3163
+ var computed_fontSize = (Math.floor((fontSize * span_original_width) / span_flatted_width));
3164
+
3165
+ if (computed_fontSize < 8) {
3166
+ shouldDisplay = false;
3167
+ window.sfsi_fittext_shouldDisplay = false;
3168
+ computed_fontSize = 20;
3169
+ }
3170
+ span.css('font-size', Math.min(computed_fontSize, 20));
3171
+ span
3172
+ // .css('display','inline-block')
3173
+ .css('white-space', 'nowrap')
3174
+ // .css('width','auto')
3175
+ ;
3176
+ if (shouldDisplay) {
3177
+ span.show();
3178
+ } else {
3179
+ span.hide();
3180
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container span').hide();
3181
+ }
3182
+ }
3183
+ } else {
3184
+ var span = container.find('span');
3185
+ /* console.log(span); */
3186
+ span.css('font-size', 'initial');
3187
+ span.show();
3188
+ }
3189
+
3190
+ }
3191
+
3192
+ function sfsi_fixedWidth_fitText(container) {
3193
+ return;
3194
+ /* console.log(sfsi_fittext_shouldDisplay); */
3195
+ if (window.sfsi_fittext_shouldDisplay === true) {
3196
+ if (jQuery('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val() == "Fixed icon width") {
3197
+ var all_icon_width = jQuery('.sfsi_responsive_icons .sfsi_icons_container').width();
3198
+ var total_active_icons = jQuery('.sfsi_responsive_icons .sfsi_icons_container a').filter(function (i, icon) {
3199
+ return jQuery(icon).css('display') && (jQuery(icon).css('display').toLowerCase() !== "none");
3200
+ }).length;
3201
+ var distance_between_icon = jQuery('input[name="sfsi_responsive_icons_settings_margin"]').val()
3202
+ var container_width = ((all_icon_width - distance_between_icon) / total_active_icons) - 5;
3203
+ container_width = (container_width - distance_between_icon);
3204
+ } else {
3205
+ var container_width = container.width();
3206
+ }
3207
+ // var container_img_width = container.find('img').width();
3208
+ var container_img_width = 70;
3209
+ // var span=container.find('span').clone();
3210
+ var span = container.find('span');
3211
+ // var span_original_width = container.find('span').width();
3212
+ var span_original_width = container_width - (container_img_width)
3213
+ span
3214
+ // .css('display','inline-block')
3215
+ .css('white-space', 'nowrap')
3216
+ // .css('width','auto')
3217
+ ;
3218
+ var span_flatted_width = span.width();
3219
+ if (span_flatted_width == 0) {
3220
+ span_flatted_width = span_original_width;
3221
+ }
3222
+ span
3223
+ // .css('display','inline-block')
3224
+ .css('white-space', 'unset')
3225
+ // .css('width','auto')
3226
+ ;
3227
+ var shouldDisplay = undefined === window.sfsi_fittext_shouldDisplay ? true : window.sfsi_fittext_shouldDisplay = true;;
3228
+ var fontSize = parseInt(span.css('font-size'));
3229
+
3230
+ if (6 > fontSize) {
3231
+ fontSize = 15;
3232
+ }
3233
+
3234
+ var computed_fontSize = (Math.floor((fontSize * span_original_width) / span_flatted_width));
3235
+
3236
+ if (computed_fontSize < 8) {
3237
+ shouldDisplay = false;
3238
+ window.sfsi_fittext_shouldDisplay = false;
3239
+ computed_fontSize = 15;
3240
+ }
3241
+ span.css('font-size', Math.min(computed_fontSize, 15));
3242
+ span
3243
+ // .css('display','inline-block')
3244
+ .css('white-space', 'nowrap')
3245
+ // .css('width','auto')
3246
+ ;
3247
+ // var heightOfResIcons = jQuery('.sfsi_responsive_icon_item_container').height();
3248
+
3249
+ // if(heightOfResIcons < 17){
3250
+ // span.show();
3251
+ // }else{
3252
+ // span.hide();
3253
+ // }
3254
+
3255
+ if (shouldDisplay) {
3256
+ span.show();
3257
+ } else {
3258
+ span.hide();
3259
+ }
3260
+ }
3261
+ }
3262
+
3263
+ function sfsi_resize_icons_container() {
3264
+ // resize icon container based on the size of count
3265
+ sfsi_cloned_icon_list = jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').clone();
3266
+ sfsi_cloned_icon_list.removeClass('.sfsi_responsive_icon_preview .sfsi_responsive_with_counter_icons').addClass('sfsi_responsive_cloned_list');
3267
+ sfsi_cloned_icon_list.css('width', '100%');
3268
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').parent().append(sfsi_cloned_icon_list);
3269
+
3270
+ // sfsi_cloned_icon_list.css({
3271
+ // position: "absolute",
3272
+ // left: "-10000px"
3273
+ // }).appendTo("body");
3274
+ actual_width = sfsi_cloned_icon_list.width();
3275
+ count_width = jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').width();
3276
+ jQuery('.sfsi_responsive_cloned_list').remove();
3277
+ sfsi_inline_style = jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').attr('style');
3278
+ // remove_width
3279
+ sfsi_inline_style = sfsi_inline_style.replace(/width:auto($|!important|)(;|$)/g, '').replace(/width:\s*(-|)\d*\s*(px|%)\s*($|!important|)(;|$)/g, '');
3280
+ if (!(jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').hasClass('sfsi_responsive_without_counter_icons') && jQuery('.sfsi_icons_container').hasClass('sfsi_icons_container_box_fixed_container'))) {
3281
+ sfsi_inline_style += "width:" + (actual_width - count_width - 1) + 'px!important;'
3282
+ } else {
3283
+ sfsi_inline_style += "width:auto!important;";
3284
+ }
3285
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').attr('style', sfsi_inline_style);
3286
+
3287
+ }
3288
+
3289
+ function sfsi_togglbtmsection(show, hide, ref) {
3290
+ console.log(show,hide);
3291
+ jQuery(ref).parent("ul").children("li.clckbltglcls").each(function (index, element) {
3292
+ jQuery(this).children(".radio").css("background-position", "0px 0px");
3293
+ jQuery(this).children(".styled").attr("checked", "false");
3294
+ });
3295
+ jQuery(ref).children(".radio").css("background-position", "0px -41px");
3296
+ jQuery(ref).children(".styled").attr("checked", "true");
3297
+ console.log(show,hide);
3298
+
3299
+ jQuery("." + show).show();
3300
+ jQuery("." + show).children(".radiodisplaysection").show();
3301
+ jQuery("." + hide).hide();
3302
+ jQuery("." + hide).children(".radiodisplaysection").hide();
3303
+ }
3304
+
js/custom.js CHANGED
@@ -33,7 +33,7 @@ function sfsi_make_popBox() {
33
  function sfsi_stick_widget(s) {
34
  0 == initTop.length && (SFSI(".sfsi_widget").each(function(s) {
35
  initTop[s] = SFSI(this).position().top;
36
- }), console.log(initTop));
37
  var i = SFSI(window).scrollTop(), e = [], t = [];
38
  SFSI(".sfsi_widget").each(function(s) {
39
  e[s] = SFSI(this).position().top, t[s] = SFSI(this);
@@ -341,3 +341,87 @@ function sfsi_copy_text_parent_input(event){
341
  input_target.select();
342
  document.execCommand('copy');
343
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  function sfsi_stick_widget(s) {
34
  0 == initTop.length && (SFSI(".sfsi_widget").each(function(s) {
35
  initTop[s] = SFSI(this).position().top;
36
+ }));
37
  var i = SFSI(window).scrollTop(), e = [], t = [];
38
  SFSI(".sfsi_widget").each(function(s) {
39
  e[s] = SFSI(this).position().top, t[s] = SFSI(this);
341
  input_target.select();
342
  document.execCommand('copy');
343
  }
344
+
345
+ function sfsi_responsive_toggle() {
346
+ jQuery(document).scroll(function($) {
347
+ var y = jQuery(this).scrollTop();
348
+ if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
349
+ if (jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height() - 100) {
350
+ jQuery('.sfsi_outr_div').css({
351
+ 'z-index': '9996',
352
+ opacity: 1,
353
+ top: jQuery(window).scrollTop() + "px",
354
+ position: "absolute"
355
+ });
356
+ jQuery('.sfsi_outr_div').fadeIn(200);
357
+ jQuery('.sfsi_FrntInner_chg').fadeIn(200);
358
+ } else {
359
+ jQuery('.sfsi_outr_div').fadeOut();
360
+ jQuery('.sfsi_FrntInner_chg').fadeOut();
361
+ }
362
+ } else {
363
+ if (jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height() - 3) {
364
+ jQuery('.sfsi_outr_div').css({
365
+ 'z-index': '9996',
366
+ opacity: 1,
367
+ top: jQuery(window).scrollTop() + 200 + "px",
368
+ position: "absolute"
369
+ });
370
+ jQuery('.sfsi_outr_div').fadeIn(200);
371
+ jQuery('.sfsi_FrntInner_chg').fadeIn(200);
372
+ } else {
373
+ jQuery('.sfsi_outr_div').fadeOut();
374
+ jQuery('.sfsi_FrntInner_chg').fadeOut();
375
+ }
376
+ }
377
+ });
378
+ }
379
+ function sfsi_time_pop_up(time_popUp) {
380
+ jQuery(document).ready(function($) {
381
+ setTimeout(function() {
382
+ jQuery('.sfsi_outr_div').css({
383
+ 'z-index': '1000000',
384
+ opacity: 1
385
+ });
386
+ jQuery('.sfsi_outr_div').fadeIn(200);
387
+ jQuery('.sfsi_FrntInner_chg').fadeIn(200);
388
+ }, time_popUp);
389
+ });
390
+ }
391
+
392
+ function sfsi_social_pop_up(time_popUp) {
393
+ jQuery(document).ready(function($) {
394
+ //jQuery('.sfsi_outr_div').fadeIn();
395
+ sfsi_setCookie('sfsi_socialPopUp', time(), 32);
396
+ setTimeout(function() {
397
+ jQuery('.sfsi_outr_div').css({
398
+ 'z-index': '1000000',
399
+ opacity: 1
400
+ });
401
+ jQuery('.sfsi_outr_div').fadeIn();
402
+ }, time_popUp);
403
+ });
404
+ }
405
+ function sfsi_plugin_version(pluginVersion) {
406
+ jQuery(document).ready(function(e) {
407
+ jQuery("body").addClass("sfsi_"+pluginVersion)
408
+ });
409
+ }
410
+
411
+ function sfsi_widget_set(){
412
+ jQuery(".sfsi_widget").each(function( index ) {
413
+ if(jQuery(this).attr("data-position") == "widget")
414
+ {
415
+ var wdgt_hght = jQuery(this).children(".norm_row.sfsi_wDiv").height();
416
+ var title_hght = jQuery(this).parent(".widget.sfsi").children(".widget-title").height();
417
+ var totl_hght = parseInt( title_hght ) + parseInt( wdgt_hght );
418
+ jQuery(this).parent(".widget.sfsi").css("min-height", totl_hght+"px");
419
+ console.log('widget');
420
+ }
421
+ });
422
+ }
423
+
424
+
425
+ // should execute at last so that every function is acceable in body.
426
+ var sfsi_functions_loaded = new CustomEvent('sfsi_functions_loaded',{detail:{"abc":"def"}});
427
+ window.dispatchEvent(sfsi_functions_loaded);
libs/controllers/sfsi_buttons_controller.php CHANGED
@@ -1103,22 +1103,6 @@ function new_notification_read()
1103
  echo "success";
1104
  die;
1105
  }
1106
- add_action("wp_ajax_sfsicurlerrornotification", "sfsicurlerrornotification");
1107
- function sfsicurlerrornotification()
1108
- {
1109
- if (!wp_verify_nonce($_POST['nonce'], "sfsicurlerrornotification")) {
1110
- echo json_encode(array('res' => 'wrong_nonce'));
1111
- exit;
1112
- }
1113
- if (!current_user_can('manage_options')) {
1114
- echo json_encode(array('res' => 'not allowed'));
1115
- die();
1116
- }
1117
-
1118
- update_option("sfsi_curlErrorNotices", "no");
1119
- echo "success";
1120
- die;
1121
- }
1122
 
1123
  function sfsi_sanitize_field($value)
1124
  {
@@ -1163,7 +1147,6 @@ function sfsi_bannerOption()
1163
 
1164
  // Get all themes data which incudes nobrainer
1165
  $themeDataArr = $objThemeCheck->sfsi_plus_get_themeData();
1166
-
1167
  $matchFound = false;
1168
 
1169
  foreach ($themeDataArr as $themeDataObj) {
1103
  echo "success";
1104
  die;
1105
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1106
 
1107
  function sfsi_sanitize_field($value)
1108
  {
1147
 
1148
  // Get all themes data which incudes nobrainer
1149
  $themeDataArr = $objThemeCheck->sfsi_plus_get_themeData();
 
1150
  $matchFound = false;
1151
 
1152
  foreach ($themeDataArr as $themeDataObj) {
libs/controllers/sfsi_class_theme_check.php CHANGED
@@ -1,540 +1,540 @@
1
- <?php
2
-
3
- class sfsi_ThemeCheck
4
- {
5
- public $metaArray = null;
6
- public function sfsi_plus_string_to_arr($str){
7
-
8
- $arrSingleQuote = array();
9
-
10
- if(strlen(trim($str))>0){
11
- $arrSingleQuote = explode(",", $str);
12
- }
13
- return $arrSingleQuote;
14
- }
15
-
16
- public function sfsi_plus_getdomain($url)
17
- {
18
- $pieces = parse_url($url);
19
- $domain = isset($pieces['host']) ? $pieces['host'] : '';
20
- if (preg_match('/(?P<domain>[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i', $domain, $regs)) {
21
- return $regs['domain'];
22
- }
23
- return false;
24
- }
25
-
26
- public function sfsi_plus_returningElement($element) {return $element[0];}
27
-
28
- public function sfsi_plus_get_themeData(){
29
-
30
- $keywordFile = SFSI_DOCROOT."/themedata.csv";
31
- $keywordData = @file_get_contents($keywordFile);
32
- $keywordEnglish = array_map("str_getcsv", explode("\n", $keywordData));
33
- $themeDataArr = array();
34
-
35
- if(isset($keywordEnglish) && is_array($keywordEnglish) && count($keywordEnglish)>0){
36
-
37
- unset($keywordEnglish[0]);
38
-
39
- $finalArr = array_filter(array_values($keywordEnglish));
40
-
41
- if(isset($finalArr) && is_array($finalArr) && count($finalArr)>0){
42
-
43
- for($i=0;$i<count($finalArr);$i++) {
44
-
45
- if( is_array($finalArr[$i])
46
-
47
- // Theme name should be non-empty
48
- && isset($finalArr[$i][0]) && !empty($finalArr[$i][0])
49
- ){
50
-
51
- $arrVal = $finalArr[$i];
52
-
53
- $themeArr = array();
54
- $themeArr['themeName'] = preg_replace('/^[,\s]+|[\s,]+$/', '', trim($arrVal[0]));
55
- $themeArr['noBrainerKeywords'] = $this->sfsi_plus_string_to_arr(preg_replace('/^[,\s]+|[\s,]+$/', '', trim($arrVal[1])));
56
- $themeArr['separateKeywords'] = $this->sfsi_plus_string_to_arr(preg_replace('/^[,\s]+|[\s,]+$/', '', trim($arrVal[2])));
57
- $themeArr['negativeKeywords'] = $this->sfsi_plus_string_to_arr(preg_replace('/^[,\s]+|[\s,]+$/', '', trim($arrVal[3])));
58
- $themeArr['headline'] = (isset($arrVal[4]) && strlen(trim($arrVal[4]))==0)? "You like ".trim($arrVal[0])." ?" : trim($arrVal[4]);
59
- $themeArr['themeLink'] = trim($arrVal[5]);
60
- $themeArr['bottomtext'] = (isset($arrVal[6]) && strlen(trim($arrVal[6]))==0)? "See all ".strtolower(trim($arrVal[0]))."-themed-icons": trim($arrVal[6]);
61
-
62
- array_push($themeDataArr, (object)$themeArr);
63
- }
64
- }
65
- }
66
- }
67
-
68
- return $themeDataArr;
69
- }
70
-
71
- public function sfsi_plus_get_keywordEnglish(){
72
- $keywordFile = SFSI_DOCROOT."/All_english_words_better_list.csv";
73
- $keywordData = @file_get_contents($keywordFile);
74
- $keywordEnglish = array_map("str_getcsv", explode("\n", $keywordData));
75
- $keywordEnglish = array_map('array_filter', $keywordEnglish);
76
- $keywordEnglish = array_filter(array_map(sfsi_returningElement($element), $keywordEnglish));
77
- return $keywordEnglish;
78
- }
79
- public function sfsi_plus_regex_for_keywords($arrKeyWords){
80
-
81
- $strRegex = "";
82
-
83
- if(isset($arrKeyWords) && is_array($arrKeyWords) && count($arrKeyWords)>0 && is_array($arrKeyWords)){
84
-
85
- $count = count($arrKeyWords);
86
-
87
- if($count==1){
88
- $strRegex .= "/".$arrKeyWords[0]."/im";
89
- }
90
- else{
91
- for ($i=0; $i <$count ; $i++) {
92
-
93
- $val = trim($arrKeyWords[$i]);
94
-
95
- if($i==0){
96
- $strRegex .= "/(".$val."|";
97
- }
98
- elseif ($i==$count-1) {
99
- $strRegex .= $val.")/im";
100
- }
101
- else{
102
- $strRegex.= $val."|";
103
- }
104
- }
105
- }
106
- }
107
- return $strRegex;
108
- }
109
-
110
- public function sfsi_plus_regex_forNegative_keywords($arrKeyWords){
111
-
112
- $strRegex = "";
113
-
114
- if(isset($arrKeyWords) && is_array($arrKeyWords) && count($arrKeyWords)>0 && is_array($arrKeyWords)){
115
-
116
- $count = count($arrKeyWords);
117
-
118
- if($count==1){
119
- $strRegex .= "/".$arrKeyWords[0]."/i";
120
- }
121
- else{
122
-
123
- for ($i=0; $i <$count ; $i++) {
124
-
125
- $val = trim($arrKeyWords[$i]);
126
-
127
- if($i==0){
128
- $strRegex .= "/".$val."|";
129
- }
130
- elseif ($i==$count-1) {
131
- $strRegex .= $val."/i";
132
- }
133
- else{
134
- $strRegex.= $val."|";
135
- }
136
- }
137
- }
138
- }
139
- return $strRegex;
140
- }
141
-
142
- public function sfsi_plus_match_separate_word_with_csv_data($seprateWord,$domainname){
143
- $keywordEnglish = $this->sfsi_plus_get_keywordEnglish();
144
-
145
- $finalKeywordEnglish = array();
146
-
147
- foreach ($keywordEnglish as $val) {
148
- if(is_array($val)) {
149
- array_push($finalKeywordEnglish, $val[0]);
150
- }
151
- }
152
-
153
- $catflag = false;
154
-
155
- $explode = explode($seprateWord,$domainname);
156
- $left = trim($explode[0]);
157
- $right = trim($explode[1]);
158
-
159
- $leftcatflag = false;
160
-
161
- if(!empty($left))
162
- {
163
- $left = str_split($left);
164
-
165
- $matchKeyword = ''; $j = 0;
166
- for($i = (count($left)-1); $i >= 0; $i--)
167
- {
168
- $matchKeyword = $left[$i].$matchKeyword;
169
-
170
- if($j > 0)
171
- {
172
- if(in_array($matchKeyword, $finalKeywordEnglish))
173
- {
174
- $leftcatflag = true;
175
- break;
176
- }
177
- else
178
- {
179
- continue;
180
- }
181
- }
182
- else
183
- {
184
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
185
- {
186
- $leftcatflag = true;
187
- break;
188
- }
189
- }
190
-
191
- $j++;
192
- }
193
- }
194
-
195
- $rightcatflag = false;
196
- if(!empty($right))
197
- {
198
- $right = str_split($right);
199
-
200
- $matchKeyword = '';
201
- for($i = 0; $i < count($right); $i++)
202
- {
203
- $matchKeyword .= $right[$i];
204
-
205
- if($i > 0)
206
- {
207
- if(in_array($matchKeyword, $finalKeywordEnglish))
208
- {
209
- $rightcatflag = true;
210
- break;
211
- }
212
- else
213
- {
214
- continue;
215
- }
216
- }
217
- else
218
- {
219
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
220
- {
221
- $rightcatflag = true;
222
- break;
223
- }
224
- }
225
- }
226
- }
227
-
228
- if(empty($left) && empty($right))
229
- {
230
- $catflag = true;
231
- }
232
- else
233
- {
234
- if(!empty($left) && !empty($right))
235
- {
236
- if($rightcatflag && $leftcatflag)
237
- {
238
- $catflag = true;
239
- }
240
- }
241
- elseif(empty($left) && !empty($right))
242
- {
243
- if($rightcatflag)
244
- {
245
- $catflag = true;
246
- }
247
- }
248
- elseif(!empty($left) && empty($right))
249
- {
250
- if($leftcatflag)
251
- {
252
- $catflag = true;
253
- }
254
- }
255
- }
256
-
257
- return $catflag;
258
- }
259
-
260
- public function sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$domainname){
261
-
262
- $boolSeparateWord = false;
263
-
264
- if(isset($arrSeparateKeywords) && is_array($arrSeparateKeywords) && count($arrSeparateKeywords)>0){
265
-
266
- foreach ($arrSeparateKeywords as $value) {
267
-
268
- $val = trim($value);
269
-
270
- if(isset($value) && strlen($val)>0){
271
-
272
- if(preg_match("/(".$val.")/im", $domainname)){
273
-
274
- $boolSeparateWord = $this->sfsi_plus_match_separate_word_with_csv_data($val,$domainname);
275
-
276
- if($boolSeparateWord) {
277
- break;
278
- }
279
-
280
- }
281
- }
282
- }
283
- }
284
-
285
- return $boolSeparateWord;
286
- }
287
-
288
- public function sfsi_plus_MetaKeywordCheck($arrSeparateKeywords,$domainname){
289
- $keywordInMeta = false;
290
- $metaArray = $this->sfsi_plus_GetMetaName($domainname);
291
- foreach($metaArray as $index=>$meta){
292
- if($this->sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords, $domainname)){
293
- $flag = true;
294
- }
295
- else if($this->sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$domainname)){
296
- $flag = true;
297
- }
298
- }
299
- return $keywordInMeta;
300
- }
301
-
302
- public function sfsi_plus_GetMetaKeywords($domainname){
303
- $url = get_bloginfo('url');
304
- $res= wp_remote_get($url);
305
- $meta_local = array("title"=>array(),"description"=>array(),"keyword"=>array());
306
- if ( is_array( $res ) && ! is_wp_error( $res ) ) {
307
- $body = $res['body']; // use the content
308
- $meta = array();
309
- if(false==class_exists("DomDocument")) {
310
- $metas=array();
311
- preg_match_all( '/\<meta.+name="(\w*)".+content="(.*)"/i', $body, $metas);
312
- preg_match_all( '/\<meta.+property="og:(\w*)".+content="(.*)"/i', $body, $metas2);
313
- // $metas[1]=array_merge($metas[1],$metas2[1]);
314
- // $metas[2]=array_merge($metas[2],$metas2[2]);
315
- if(isset($metas)&&is_array($metas)&&isset($metas[1])&&isset($metas[2])){
316
- foreach($metas[1] as $index=>$meta_name){
317
- if($meta_name==="keywords" && isset($metas[2][$index])) {
318
- $meta['keywords']=$metas[2][$index];
319
- }
320
- if($meta_name === "description" && isset($metas[2][$index])){
321
- $meta['description']=$metas[2][$index];
322
- }
323
- }
324
- }
325
- if(isset($metas2)&&is_array($metas2)&&isset($metas2[1])&&isset($metas2[2])){
326
- foreach($metas2[1] as $index=>$meta_name){
327
- // var_dump($meta_name,$meta_name === "description" ,$metas2[2][$index]);
328
- if($meta_name==="keywords" && isset($metas2[2][$index])) {
329
- $meta[$meta_name]=$metas2[2][$index];
330
- }
331
- if($meta_name === "description" && isset($metas2[2][$index])&&!isset($meta[$meta_name])){
332
- $meta[$meta_name]=$metas2[2][$index];
333
- }
334
- }
335
- }
336
- // var_dump($meta);die();
337
- if(isset($meta['keywords'])){
338
- $meta_local["keyword"]=array_filter(explode(',',$meta['keywords']),function($data){
339
- return $data!=="";
340
- });
341
- }
342
- if(isset($meta['description'])){
343
- $meta['description']=preg_replace("/[^A-Za-z ]/", '', strtolower($meta['description']));
344
- $meta_local["description"]=array_filter(explode( '\s+',$meta['description']),function($data){
345
- return $data!=="";
346
- });
347
- }
348
- $preg_res=preg_match("/<title>(.+)<\/title>/i", $body, $matches);
349
- if($preg_res){
350
- $meta['title']=preg_replace("/[^A-Za-z ]/", '', strtolower($matches[1]));
351
- $meta_local["title"]=array_filter(explode('\s+',$meta['title']),function($data){
352
- return $data!=="";
353
- });
354
- }
355
-
356
- }else{
357
- $doc = new \DOMDocument();
358
- @$doc->loadHTML($body);
359
- $nodes = $doc->getElementsByTagName('meta');
360
- foreach($nodes as $index=>$node){
361
- if(null!==$node->getAttribute('name')) {
362
- $meta[$node->getAttribute('name')]=$node->getAttribute('content');
363
- }elseif(null!==$node->getAttribute('property')){
364
- $meta[$node->getAttribute('property')]=$node->getAttribute('content');
365
- }
366
- }
367
- $meta['title'] = (null!==$doc->getElementsByTagName('title'))&&count($doc->getElementsByTagName('title'))>0?$doc->getElementsByTagName('title')->item(0)->nodeValue:'';
368
- if(isset($meta['keywords'])) {
369
- $meta_local["keyword"]=array_filter(explode(',',$meta['keywords']),function($data){
370
- return $data!=="";
371
- });
372
- }
373
- if(isset($meta['description'])){
374
- $meta['description']=preg_replace("/[^A-Za-z ]/", '', strtolower($meta['description']));
375
- $meta_local["description"]=array_filter(explode( '\s+',$meta['description']),function($data){
376
- return $data!=="";
377
- });
378
- }
379
- if(count($meta_local["description"])==0 && isset($meta['og:description'])){
380
- $meta['description']=preg_replace("/[^A-Za-z ]/", '', strtolower($meta['og:description']));
381
- $meta_local["description"]=array_filter(explode( '\s+',$meta['description']),function($data){
382
- return $data!=="";
383
- });
384
- }
385
- if(isset($meta['title'])){
386
- $meta['title']=preg_replace("/[^A-Za-z ]/", '', strtolower($meta['title']));
387
- // var_dump($meta['title']);die();
388
- $meta_local["title"]= array_filter(explode('\s+',$meta['title']),function($data){
389
- return $data!=="";
390
- });
391
- }
392
- }
393
- }
394
- return $meta_local;
395
- }
396
-
397
- public function sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords,$domainname){
398
-
399
- $bflag = false;
400
-
401
- if(isset($arrNoBrainerKeywords) && is_array($arrNoBrainerKeywords) && count($arrNoBrainerKeywords)>0 && is_array($arrNoBrainerKeywords)>0){
402
-
403
- if(preg_match($this->sfsi_plus_regex_for_keywords($arrNoBrainerKeywords), $domainname)){
404
- $bflag = true;
405
- }
406
- }
407
- return $bflag;
408
- }
409
-
410
- public function sfsi_plus_check_type_of_websiteWithNoBrainerAndSeparateAndNegativeKeywords($strCheckForThemeType,$arrNoBrainerKeywords,$arrSeparateKeywords,$arrNoBrainerAndSeparateKeywords,$arrNegativeKeywords,$domainname){
411
-
412
- $flag = false;
413
-
414
- if(isset($arrNoBrainerAndSeparateKeywords) && is_array($arrNoBrainerAndSeparateKeywords) && count($arrNoBrainerAndSeparateKeywords)>0){
415
-
416
- if(preg_match($this->sfsi_plus_regex_for_keywords($arrNoBrainerAndSeparateKeywords), $domainname))
417
- {
418
- if(!empty($domainname))
419
- {
420
- if(isset($arrNegativeKeywords) && is_array($arrNegativeKeywords) && count($arrNegativeKeywords)){
421
- $domainname = preg_replace($this->sfsi_plus_regex_forNegative_keywords($arrNegativeKeywords), '', $domainname);
422
- $explode = explode(".", $domainname);
423
- $domainname = @$explode[0];
424
- }
425
- }
426
-
427
- if($this->sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords, $domainname)){
428
- $flag = true;
429
- }
430
- else if($this->sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$domainname)){
431
- $flag = true;
432
- }
433
- }
434
- }
435
- return ($flag)? $strCheckForThemeType:$flag;
436
- }
437
-
438
- public function sfsi_plus_check_type_of_metaTitleWithNoBrainerAndSeparateAndNegativeKeywords($strCheckForThemeType,$arrNoBrainerKeywords,$arrSeparateKeywords,$arrNoBrainerAndSeparateKeywords,$arrNegativeKeywords,$domainname){
439
- $flag = false;
440
-
441
- if(isset($arrNoBrainerAndSeparateKeywords) && is_array($arrNoBrainerAndSeparateKeywords) && count($arrNoBrainerAndSeparateKeywords)>0){
442
-
443
- if(null==$this->metaArray){
444
- $this->metaArray = $this->sfsi_plus_GetMetaKeywords($domainname);
445
- }
446
- foreach($this->metaArray["title"] as $index=>$keyword){
447
- if(!empty($keyword))
448
- {
449
- if(isset($arrNegativeKeywords) && is_array($arrNegativeKeywords) && count($arrNegativeKeywords)){
450
- $keyword = preg_replace($this->sfsi_plus_regex_forNegative_keywords($arrNegativeKeywords), '', $keyword);
451
- }
452
- }
453
- if($this->sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords, $keyword)){
454
- $flag = true;
455
- }
456
- else if($this->sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$keyword)){
457
- $flag = true;
458
- }
459
- }
460
- }
461
- return ($flag)? $strCheckForThemeType:$flag;
462
- }
463
- public function sfsi_plus_check_type_of_metaKeywordsWithNoBrainerAndSeparateAndNegativeKeywords($strCheckForThemeType,$arrNoBrainerKeywords,$arrSeparateKeywords,$arrNoBrainerAndSeparateKeywords,$arrNegativeKeywords,$domainname){
464
- $flag = false;
465
-
466
- if(isset($arrNoBrainerAndSeparateKeywords) && is_array($arrNoBrainerAndSeparateKeywords) && count($arrNoBrainerAndSeparateKeywords)>0){
467
-
468
- if(null==$this->metaArray){
469
- $this->metaArray = $this->sfsi_plus_GetMetaKeywords($domainname);
470
- }
471
- foreach($this->metaArray["keyword"] as $index=>$keyword){
472
- if(!empty($keyword))
473
- {
474
- if(isset($arrNegativeKeywords) && is_array($arrNegativeKeywords) && count($arrNegativeKeywords)){
475
- $keyword = preg_replace($this->sfsi_plus_regex_forNegative_keywords($arrNegativeKeywords), '', $keyword);
476
- }
477
- }
478
- if($this->sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords, $keyword)){
479
- $flag = true;
480
- }
481
- else if($this->sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$keyword)){
482
- $flag = true;
483
- }
484
- }
485
- }
486
- return ($flag)? $strCheckForThemeType:$flag;
487
- }
488
- public function sfsi_plus_check_type_of_metaDescriptionWithNoBrainerAndSeparateAndNegativeKeywords($strCheckForThemeType,$arrNoBrainerKeywords,$arrSeparateKeywords,$arrNoBrainerAndSeparateKeywords,$arrNegativeKeywords,$domainname){
489
- $flag = false;
490
-
491
- if(isset($arrNoBrainerAndSeparateKeywords) && is_array($arrNoBrainerAndSeparateKeywords) && count($arrNoBrainerAndSeparateKeywords)>0){
492
-
493
- if(null==$this->metaArray){
494
- $this->metaArray = $this->sfsi_plus_GetMetaKeywords($domainname);
495
- }
496
- foreach($this->metaArray["description"] as $index=>$keyword){
497
- if(!empty($keyword))
498
- {
499
- if(isset($arrNegativeKeywords) && is_array($arrNegativeKeywords) && count($arrNegativeKeywords)){
500
- $keyword = preg_replace($this->sfsi_plus_regex_forNegative_keywords($arrNegativeKeywords), '', $keyword);
501
- }
502
- }
503
- if($this->sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords, $keyword)){
504
- $flag = true;
505
- }
506
- else if($this->sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$keyword)){
507
- $flag = true;
508
- }
509
- }
510
- }
511
- return ($flag)? $strCheckForThemeType:$flag;
512
- }
513
-
514
- public function sfsi_plus_bannereHtml($title, $siteLink, $bannerImage, $buttonTitle)
515
- {
516
- echo '<div class="sfsi_new_notification_cat">
517
- <div class="sfsi_new_notification_header_cat">
518
- <h1>'.$title.'</h1>
519
- <h3>The <a href="'.$siteLink.'" target="_blank">Premium Plugin</a> Includes these icons...</h3>
520
- <div class="sfsi_new_notification_cross_cat">X</div>
521
- </div>
522
-
523
- <div class="sfsi_new_notification_body_link_cat">
524
- <a href="'.$siteLink.'" target="_blank">
525
- <div class="sfsi_new_notification_body_cat">
526
- <div class="sfsi_new_notification_image_cat">
527
- <img src="'.$bannerImage.'" id="newImg" alt="Banner" />
528
- </div>
529
- </div>
530
- </a>
531
- <div class="bottom_text">
532
- <a href="'.$siteLink.'">
533
- '.$buttonTitle.' >
534
- </a>
535
- </div>
536
- </div>
537
- </div>';
538
- }
539
- }
540
  ?>
1
+ <?php
2
+
3
+ class sfsi_ThemeCheck
4
+ {
5
+ public $metaArray = null;
6
+ public function sfsi_plus_string_to_arr($str){
7
+
8
+ $arrSingleQuote = array();
9
+
10
+ if(strlen(trim($str))>0){
11
+ $arrSingleQuote = explode(",", $str);
12
+ }
13
+ return $arrSingleQuote;
14
+ }
15
+
16
+ public function sfsi_plus_getdomain($url)
17
+ {
18
+ $pieces = parse_url($url);
19
+ $domain = isset($pieces['host']) ? $pieces['host'] : '';
20
+ if (preg_match('/(?P<domain>[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i', $domain, $regs)) {
21
+ return $regs['domain'];
22
+ }
23
+ return false;
24
+ }
25
+
26
+ public function sfsi_plus_returningElement($element) {return $element[0];}
27
+
28
+ public function sfsi_plus_get_themeData(){
29
+
30
+ $keywordFile = SFSI_DOCROOT."/themedata.csv";
31
+ $keywordData = @file_get_contents($keywordFile);
32
+ $keywordEnglish = array_map("str_getcsv", explode("\n", $keywordData));
33
+ $themeDataArr = array();
34
+
35
+ if(isset($keywordEnglish) && is_array($keywordEnglish) && count($keywordEnglish)>0){
36
+
37
+ unset($keywordEnglish[0]);
38
+
39
+ $finalArr = array_filter(array_values($keywordEnglish));
40
+
41
+ if(isset($finalArr) && is_array($finalArr) && count($finalArr)>0){
42
+
43
+ for($i=0;$i<count($finalArr);$i++) {
44
+
45
+ if( is_array($finalArr[$i])
46
+
47
+ // Theme name should be non-empty
48
+ && isset($finalArr[$i][0]) && !empty($finalArr[$i][0])
49
+ ){
50
+
51
+ $arrVal = $finalArr[$i];
52
+
53
+ $themeArr = array();
54
+ $themeArr['themeName'] = preg_replace('/^[,\s]+|[\s,]+$/', '', trim($arrVal[0]));
55
+ $themeArr['noBrainerKeywords'] = $this->sfsi_plus_string_to_arr(preg_replace('/^[,\s]+|[\s,]+$/', '', trim($arrVal[1])));
56
+ $themeArr['separateKeywords'] = $this->sfsi_plus_string_to_arr(preg_replace('/^[,\s]+|[\s,]+$/', '', trim($arrVal[2])));
57
+ $themeArr['negativeKeywords'] = $this->sfsi_plus_string_to_arr(preg_replace('/^[,\s]+|[\s,]+$/', '', trim($arrVal[3])));
58
+ $themeArr['headline'] = (isset($arrVal[6]) && strlen(trim($arrVal[6]))==0)? "You like ".trim($arrVal[0])." ?" : trim($arrVal[6]);
59
+ $themeArr['themeLink'] = trim($arrVal[8]);
60
+ $themeArr['bottomtext'] = (isset($arrVal[10]) && strlen(trim($arrVal[10]))==0)? "See all ".strtolower(trim($arrVal[0]))."-themed-icons": trim($arrVal[10]);
61
+
62
+ array_push($themeDataArr, (object)$themeArr);
63
+ }
64
+ }
65
+ }
66
+ }
67
+
68
+ return $themeDataArr;
69
+ }
70
+
71
+ public function sfsi_plus_get_keywordEnglish(){
72
+ $keywordFile = SFSI_DOCROOT."/All_english_words_better_list.csv";
73
+ $keywordData = @file_get_contents($keywordFile);
74
+ $keywordEnglish = array_map("str_getcsv", explode("\n", $keywordData));
75
+ $keywordEnglish = array_map('array_filter', $keywordEnglish);
76
+ $keywordEnglish = array_filter(array_map(sfsi_returningElement($element), $keywordEnglish));
77
+ return $keywordEnglish;
78
+ }
79
+ public function sfsi_plus_regex_for_keywords($arrKeyWords){
80
+
81
+ $strRegex = "";
82
+
83
+ if(isset($arrKeyWords) && is_array($arrKeyWords) && count($arrKeyWords)>0 && is_array($arrKeyWords)){
84
+
85
+ $count = count($arrKeyWords);
86
+
87
+ if($count==1){
88
+ $strRegex .= "/".$arrKeyWords[0]."/im";
89
+ }
90
+ else{
91
+ for ($i=0; $i <$count ; $i++) {
92
+
93
+ $val = trim($arrKeyWords[$i]);
94
+
95
+ if($i==0){
96
+ $strRegex .= "/(".$val."|";
97
+ }
98
+ elseif ($i==$count-1) {
99
+ $strRegex .= $val.")/im";
100
+ }
101
+ else{
102
+ $strRegex.= $val."|";
103
+ }
104
+ }
105
+ }
106
+ }
107
+ return $strRegex;
108
+ }
109
+
110
+ public function sfsi_plus_regex_forNegative_keywords($arrKeyWords){
111
+
112
+ $strRegex = "";
113
+
114
+ if(isset($arrKeyWords) && is_array($arrKeyWords) && count($arrKeyWords)>0 && is_array($arrKeyWords)){
115
+
116
+ $count = count($arrKeyWords);
117
+
118
+ if($count==1){
119
+ $strRegex .= "/".$arrKeyWords[0]."/i";
120
+ }
121
+ else{
122
+
123
+ for ($i=0; $i <$count ; $i++) {
124
+
125
+ $val = trim($arrKeyWords[$i]);
126
+
127
+ if($i==0){
128
+ $strRegex .= "/".$val."|";
129
+ }
130
+ elseif ($i==$count-1) {
131
+ $strRegex .= $val."/i";
132
+ }
133
+ else{
134
+ $strRegex.= $val."|";
135
+ }
136
+ }
137
+ }
138
+ }
139
+ return $strRegex;
140
+ }
141
+
142
+ public function sfsi_plus_match_separate_word_with_csv_data($seprateWord,$domainname){
143
+ $keywordEnglish = $this->sfsi_plus_get_keywordEnglish();
144
+
145
+ $finalKeywordEnglish = array();
146
+
147
+ foreach ($keywordEnglish as $val) {
148
+ if(is_array($val)) {
149
+ array_push($finalKeywordEnglish, $val[0]);
150
+ }
151
+ }
152
+
153
+ $catflag = false;
154
+
155
+ $explode = explode($seprateWord,$domainname);
156
+ $left = trim($explode[0]);
157
+ $right = trim($explode[1]);
158
+
159
+ $leftcatflag = false;
160
+
161
+ if(!empty($left))
162
+ {
163
+ $left = str_split($left);
164
+
165
+ $matchKeyword = ''; $j = 0;
166
+ for($i = (count($left)-1); $i >= 0; $i--)
167
+ {
168
+ $matchKeyword = $left[$i].$matchKeyword;
169
+
170
+ if($j > 0)
171
+ {
172
+ if(in_array($matchKeyword, $finalKeywordEnglish))
173
+ {
174
+ $leftcatflag = true;
175
+ break;
176
+ }
177
+ else
178
+ {
179
+ continue;
180
+ }
181
+ }
182
+ else
183
+ {
184
+ if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
185
+ {
186
+ $leftcatflag = true;
187
+ break;
188
+ }
189
+ }
190
+
191
+ $j++;
192
+ }
193
+ }
194
+
195
+ $rightcatflag = false;
196
+ if(!empty($right))
197
+ {
198
+ $right = str_split($right);
199
+
200
+ $matchKeyword = '';
201
+ for($i = 0; $i < count($right); $i++)
202
+ {
203
+ $matchKeyword .= $right[$i];
204
+
205
+ if($i > 0)
206
+ {
207
+ if(in_array($matchKeyword, $finalKeywordEnglish))
208
+ {
209
+ $rightcatflag = true;
210
+ break;
211
+ }
212
+ else
213
+ {
214
+ continue;
215
+ }
216
+ }
217
+ else
218
+ {
219
+ if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
220
+ {
221
+ $rightcatflag = true;
222
+ break;
223
+ }
224
+ }
225
+ }
226
+ }
227
+
228
+ if(empty($left) && empty($right))
229
+ {
230
+ $catflag = true;
231
+ }
232
+ else
233
+ {
234
+ if(!empty($left) && !empty($right))
235
+ {
236
+ if($rightcatflag && $leftcatflag)
237
+ {
238
+ $catflag = true;
239
+ }
240
+ }
241
+ elseif(empty($left) && !empty($right))
242
+ {
243
+ if($rightcatflag)
244
+ {
245
+ $catflag = true;
246
+ }
247
+ }
248
+ elseif(!empty($left) && empty($right))
249
+ {
250
+ if($leftcatflag)
251
+ {
252
+ $catflag = true;
253
+ }
254
+ }
255
+ }
256
+
257
+ return $catflag;
258
+ }
259
+
260
+ public function sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$domainname){
261
+
262
+ $boolSeparateWord = false;
263
+
264
+ if(isset($arrSeparateKeywords) && is_array($arrSeparateKeywords) && count($arrSeparateKeywords)>0){
265
+
266
+ foreach ($arrSeparateKeywords as $value) {
267
+
268
+ $val = trim($value);
269
+
270
+ if(isset($value) && strlen($val)>0){
271
+
272
+ if(preg_match("/(".$val.")/im", $domainname)){
273
+
274
+ $boolSeparateWord = $this->sfsi_plus_match_separate_word_with_csv_data($val,$domainname);
275
+
276
+ if($boolSeparateWord) {
277
+ break;
278
+ }
279
+
280
+ }
281
+ }
282
+ }
283
+ }
284
+
285
+ return $boolSeparateWord;
286
+ }
287
+
288
+ public function sfsi_plus_MetaKeywordCheck($arrSeparateKeywords,$domainname){
289
+ $keywordInMeta = false;
290
+ $metaArray = $this->sfsi_plus_GetMetaName($domainname);
291
+ foreach($metaArray as $index=>$meta){
292
+ if($this->sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords, $domainname)){
293
+ $flag = true;
294
+ }
295
+ else if($this->sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$domainname)){
296
+ $flag = true;
297
+ }
298
+ }
299
+ return $keywordInMeta;
300
+ }
301
+
302
+ public function sfsi_plus_GetMetaKeywords($domainname){
303
+ $url = get_bloginfo('url');
304
+ $res= wp_remote_get($url);
305
+ $meta_local = array("title"=>array(),"description"=>array(),"keyword"=>array());
306
+ if ( is_array( $res ) && ! is_wp_error( $res ) ) {
307
+ $body = $res['body']; // use the content
308
+ $meta = array();
309
+ if(false==class_exists("DomDocument")) {
310
+ $metas=array();
311
+ preg_match_all( '/\<meta.+name="(\w*)".+content="(.*)"/i', $body, $metas);
312
+ preg_match_all( '/\<meta.+property="og:(\w*)".+content="(.*)"/i', $body, $metas2);
313
+ // $metas[1]=array_merge($metas[1],$metas2[1]);
314
+ // $metas[2]=array_merge($metas[2],$metas2[2]);
315
+ if(isset($metas)&&is_array($metas)&&isset($metas[1])&&isset($metas[2])){
316
+ foreach($metas[1] as $index=>$meta_name){
317
+ if($meta_name==="keywords" && isset($metas[2][$index])) {
318
+ $meta['keywords']=$metas[2][$index];
319
+ }
320
+ if($meta_name === "description" && isset($metas[2][$index])){
321
+ $meta['description']=$metas[2][$index];
322
+ }
323
+ }
324
+ }
325
+ if(isset($metas2)&&is_array($metas2)&&isset($metas2[1])&&isset($metas2[2])){
326
+ foreach($metas2[1] as $index=>$meta_name){
327
+ // var_dump($meta_name,$meta_name === "description" ,$metas2[2][$index]);
328
+ if($meta_name==="keywords" && isset($metas2[2][$index])) {
329
+ $meta[$meta_name]=$metas2[2][$index];
330
+ }
331
+ if($meta_name === "description" && isset($metas2[2][$index])&&!isset($meta[$meta_name])){
332
+ $meta[$meta_name]=$metas2[2][$index];
333
+ }
334
+ }
335
+ }
336
+ // var_dump($meta);die();
337
+ if(isset($meta['keywords'])){
338
+ $meta_local["keyword"]=array_filter(explode(',',$meta['keywords']),function($data){
339
+ return $data!=="";
340
+ });
341
+ }
342
+ if(isset($meta['description'])){
343
+ $meta['description']=preg_replace("/[^A-Za-z ]/", '', strtolower($meta['description']));
344
+ $meta_local["description"]=array_filter(explode( '\s+',$meta['description']),function($data){
345
+ return $data!=="";
346
+ });
347
+ }
348
+ $preg_res=preg_match("/<title>(.+)<\/title>/i", $body, $matches);
349
+ if($preg_res){
350
+ $meta['title']=preg_replace("/[^A-Za-z ]/", '', strtolower($matches[1]));
351
+ $meta_local["title"]=array_filter(explode('\s+',$meta['title']),function($data){
352
+ return $data!=="";
353
+ });
354
+ }
355
+
356
+ }else{
357
+ $doc = new \DOMDocument();
358
+ @$doc->loadHTML($body);
359
+ $nodes = $doc->getElementsByTagName('meta');
360
+ foreach($nodes as $index=>$node){
361
+ if(null!==$node->getAttribute('name')) {
362
+ $meta[$node->getAttribute('name')]=$node->getAttribute('content');
363
+ }elseif(null!==$node->getAttribute('property')){
364
+ $meta[$node->getAttribute('property')]=$node->getAttribute('content');
365
+ }
366
+ }
367
+ $meta['title'] = (null!==$doc->getElementsByTagName('title'))&&count($doc->getElementsByTagName('title'))>0?$doc->getElementsByTagName('title')->item(0)->nodeValue:'';
368
+ if(isset($meta['keywords'])) {
369
+ $meta_local["keyword"]=array_filter(explode(',',$meta['keywords']),function($data){
370
+ return $data!=="";
371
+ });
372
+ }
373
+ if(isset($meta['description'])){
374
+ $meta['description']=preg_replace("/[^A-Za-z ]/", '', strtolower($meta['description']));
375
+ $meta_local["description"]=array_filter(explode( '\s+',$meta['description']),function($data){
376
+ return $data!=="";
377
+ });
378
+ }
379
+ if(count($meta_local["description"])==0 && isset($meta['og:description'])){
380
+ $meta['description']=preg_replace("/[^A-Za-z ]/", '', strtolower($meta['og:description']));
381
+ $meta_local["description"]=array_filter(explode( '\s+',$meta['description']),function($data){
382
+ return $data!=="";
383
+ });
384
+ }
385
+ if(isset($meta['title'])){
386
+ $meta['title']=preg_replace("/[^A-Za-z ]/", '', strtolower($meta['title']));
387
+ // var_dump($meta['title']);die();
388
+ $meta_local["title"]= array_filter(explode('\s+',$meta['title']),function($data){
389
+ return $data!=="";
390
+ });
391
+ }
392
+ }
393
+ }
394
+ return $meta_local;
395
+ }
396
+
397
+ public function sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords,$domainname){
398
+
399
+ $bflag = false;
400
+
401
+ if(isset($arrNoBrainerKeywords) && is_array($arrNoBrainerKeywords) && count($arrNoBrainerKeywords)>0 && is_array($arrNoBrainerKeywords)>0){
402
+
403
+ if(preg_match($this->sfsi_plus_regex_for_keywords($arrNoBrainerKeywords), $domainname)){
404
+ $bflag = true;
405
+ }
406
+ }
407
+ return $bflag;
408
+ }
409
+
410
+ public function sfsi_plus_check_type_of_websiteWithNoBrainerAndSeparateAndNegativeKeywords($strCheckForThemeType,$arrNoBrainerKeywords,$arrSeparateKeywords,$arrNoBrainerAndSeparateKeywords,$arrNegativeKeywords,$domainname){
411
+
412
+ $flag = false;
413
+
414
+ if(isset($arrNoBrainerAndSeparateKeywords) && is_array($arrNoBrainerAndSeparateKeywords) && count($arrNoBrainerAndSeparateKeywords)>0){
415
+
416
+ if(preg_match($this->sfsi_plus_regex_for_keywords($arrNoBrainerAndSeparateKeywords), $domainname))
417
+ {
418
+ if(!empty($domainname))
419
+ {
420
+ if(isset($arrNegativeKeywords) && is_array($arrNegativeKeywords) && count($arrNegativeKeywords)){
421
+ $domainname = preg_replace($this->sfsi_plus_regex_forNegative_keywords($arrNegativeKeywords), '', $domainname);
422
+ $explode = explode(".", $domainname);
423
+ $domainname = @$explode[0];
424
+ }
425
+ }
426
+
427
+ if($this->sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords, $domainname)){
428
+ $flag = true;
429
+ }
430
+ else if($this->sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$domainname)){
431
+ $flag = true;
432
+ }
433
+ }
434
+ }
435
+ return ($flag)? $strCheckForThemeType:$flag;
436
+ }
437
+
438
+ public function sfsi_plus_check_type_of_metaTitleWithNoBrainerAndSeparateAndNegativeKeywords($strCheckForThemeType,$arrNoBrainerKeywords,$arrSeparateKeywords,$arrNoBrainerAndSeparateKeywords,$arrNegativeKeywords,$domainname){
439
+ $flag = false;
440
+
441
+ if(isset($arrNoBrainerAndSeparateKeywords) && is_array($arrNoBrainerAndSeparateKeywords) && count($arrNoBrainerAndSeparateKeywords)>0){
442
+
443
+ if(null==$this->metaArray){
444
+ $this->metaArray = $this->sfsi_plus_GetMetaKeywords($domainname);
445
+ }
446
+ foreach($this->metaArray["title"] as $index=>$keyword){
447
+ if(!empty($keyword))
448
+ {
449
+ if(isset($arrNegativeKeywords) && is_array($arrNegativeKeywords) && count($arrNegativeKeywords)){
450
+ $keyword = preg_replace($this->sfsi_plus_regex_forNegative_keywords($arrNegativeKeywords), '', $keyword);
451
+ }
452
+ }
453
+ if($this->sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords, $keyword)){
454
+ $flag = true;
455
+ }
456
+ else if($this->sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$keyword)){
457
+ $flag = true;
458
+ }
459
+ }
460
+ }
461
+ return ($flag)? $strCheckForThemeType:$flag;
462
+ }
463
+ public function sfsi_plus_check_type_of_metaKeywordsWithNoBrainerAndSeparateAndNegativeKeywords($strCheckForThemeType,$arrNoBrainerKeywords,$arrSeparateKeywords,$arrNoBrainerAndSeparateKeywords,$arrNegativeKeywords,$domainname){
464
+ $flag = false;
465
+
466
+ if(isset($arrNoBrainerAndSeparateKeywords) && is_array($arrNoBrainerAndSeparateKeywords) && count($arrNoBrainerAndSeparateKeywords)>0){
467
+
468
+ if(null==$this->metaArray){
469
+ $this->metaArray = $this->sfsi_plus_GetMetaKeywords($domainname);
470
+ }
471
+ foreach($this->metaArray["keyword"] as $index=>$keyword){
472
+ if(!empty($keyword))
473
+ {
474
+ if(isset($arrNegativeKeywords) && is_array($arrNegativeKeywords) && count($arrNegativeKeywords)){
475
+ $keyword = preg_replace($this->sfsi_plus_regex_forNegative_keywords($arrNegativeKeywords), '', $keyword);
476
+ }
477
+ }
478
+ if($this->sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords, $keyword)){
479
+ $flag = true;
480
+ }
481
+ else if($this->sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$keyword)){
482
+ $flag = true;
483
+ }
484
+ }
485
+ }
486
+ return ($flag)? $strCheckForThemeType:$flag;
487
+ }
488
+ public function sfsi_plus_check_type_of_metaDescriptionWithNoBrainerAndSeparateAndNegativeKeywords($strCheckForThemeType,$arrNoBrainerKeywords,$arrSeparateKeywords,$arrNoBrainerAndSeparateKeywords,$arrNegativeKeywords,$domainname){
489
+ $flag = false;
490
+
491
+ if(isset($arrNoBrainerAndSeparateKeywords) && is_array($arrNoBrainerAndSeparateKeywords) && count($arrNoBrainerAndSeparateKeywords)>0){
492
+
493
+ if(null==$this->metaArray){
494
+ $this->metaArray = $this->sfsi_plus_GetMetaKeywords($domainname);
495
+ }
496
+ foreach($this->metaArray["description"] as $index=>$keyword){
497
+ if(!empty($keyword))
498
+ {
499
+ if(isset($arrNegativeKeywords) && is_array($arrNegativeKeywords) && count($arrNegativeKeywords)){
500
+ $keyword = preg_replace($this->sfsi_plus_regex_forNegative_keywords($arrNegativeKeywords), '', $keyword);
501
+ }
502
+ }
503
+ if($this->sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords, $keyword)){
504
+ $flag = true;
505
+ }
506
+ else if($this->sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$keyword)){
507
+ $flag = true;
508
+ }
509
+ }
510
+ }
511
+ return ($flag)? $strCheckForThemeType:$flag;
512
+ }
513
+
514
+ public function sfsi_plus_bannereHtml($title, $siteLink, $bannerImage, $buttonTitle)
515
+ {
516
+ echo '<div class="sfsi_new_notification_cat">
517
+ <div class="sfsi_new_notification_header_cat">
518
+ <h1>'.$title.'</h1>
519
+ <h3>The <a href="'.$siteLink.'" target="_blank">Premium Plugin</a> Includes these icons...</h3>
520
+ <div class="sfsi_new_notification_cross_cat">X</div>
521
+ </div>
522
+
523
+ <div class="sfsi_new_notification_body_link_cat">
524
+ <a href="'.$siteLink.'" target="_blank">
525
+ <div class="sfsi_new_notification_body_cat">
526
+ <div class="sfsi_new_notification_image_cat">
527
+ <img src="'.$bannerImage.'" id="newImg" alt="Banner" />
528
+ </div>
529
+ </div>
530
+ </a>
531
+ <div class="bottom_text">
532
+ <a href="'.$siteLink.'">
533
+ '.$buttonTitle.' >
534
+ </a>
535
+ </div>
536
+ </div>
537
+ </div>';
538
+ }
539
+ }
540
  ?>
libs/controllers/sfsi_frontpopUp.php CHANGED
@@ -1,270 +1,242 @@
1
- <?php
2
-
3
- /* show a pop on the as per user chose under section 7 */
4
- function sfsi_frontPopUp () {
5
- ob_start();
6
- echo sfsi_FrontPopupDiv();
7
- echo $output=ob_get_clean();
8
- }
9
- /* check where to be pop-shown */
10
- function sfsi_check_PopUp($content)
11
- {
12
- global $post;
13
- global $wpdb;
14
-
15
- $content = '';
16
-
17
- $sfsi_section7_options = unserialize(get_option('sfsi_section7_options',false));
18
-
19
- if(isset($sfsi_section7_options['sfsi_Show_popupOn']) && !empty($sfsi_section7_options['sfsi_Show_popupOn'])){
20
-
21
- if($sfsi_section7_options['sfsi_Show_popupOn']=="blogpage")
22
- {
23
- if(!is_feed() && !is_home() && !is_page())
24
- {
25
- $content= sfsi_frontPopUp().$content;
26
- }
27
- }
28
- else if($sfsi_section7_options['sfsi_Show_popupOn']=="selectedpage")
29
- {
30
- if(!empty($post->ID) && !empty($sfsi_section7_options['sfsi_Show_popupOn_PageIDs']))
31
- {
32
- if(is_page() && in_array($post->ID, unserialize($sfsi_section7_options['sfsi_Show_popupOn_PageIDs'])))
33
- {
34
- $content= sfsi_frontPopUp().$content;
35
- }
36
- }
37
- }
38
- else if($sfsi_section7_options['sfsi_Show_popupOn']=="everypage")
39
- {
40
- $content= sfsi_frontPopUp().$content;
41
- }
42
- }
43
-
44
- /* check for pop times */
45
- if(isset($sfsi_section7_options['sfsi_Shown_pop']) && !empty($sfsi_section7_options['sfsi_Shown_pop']) && $sfsi_section7_options['sfsi_Shown_pop']=="once")
46
- {
47
- $time_popUp = (int) $sfsi_section7_options['sfsi_Shown_popupOnceTime'];
48
- $time_popUp = $time_popUp*1000;
49
- ob_start();
50
- ?>
51
- <script>
52
- jQuery( document ).ready(function( $ )
53
- {
54
- setTimeout(function()
55
- {
56
- jQuery('.sfsi_outr_div').css({'z-index':'1000000',opacity:1});
57
- jQuery('.sfsi_outr_div').fadeIn(200);
58
- jQuery('.sfsi_FrntInner_chg').fadeIn(200);
59
- }
60
- ,<?php echo $time_popUp; ?>);
61
- });
62
- </script>
63
- <?php
64
- echo ob_get_clean();
65
- return $content;
66
- }
67
-
68
- if(isset($sfsi_section7_options['sfsi_Shown_pop']) && !empty($sfsi_section7_options['sfsi_Shown_pop'])){
69
-
70
- if($sfsi_section7_options['sfsi_Shown_pop']=="ETscroll")
71
- {
72
- $time_popUp = (int) $sfsi_section7_options['sfsi_Shown_popupOnceTime'];
73
- $time_popUp = $time_popUp*1000;
74
- ob_start();
75
-
76
- ?>
77
- <script>
78
- jQuery( document ).scroll(function( $ )
79
- {
80
- var y = jQuery(this).scrollTop();
81
-
82
- if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))
83
- {
84
- if(jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height()-100)
85
- {
86
- jQuery('.sfsi_outr_div').css({'z-index':'9996',opacity:1,top:jQuery(window).scrollTop()+"px",position:"absolute"});
87
- jQuery('.sfsi_outr_div').fadeIn(200);
88
- jQuery('.sfsi_FrntInner_chg').fadeIn(200);
89
- }
90
- else{
91
- jQuery('.sfsi_outr_div').fadeOut();
92
- jQuery('.sfsi_FrntInner_chg').fadeOut();
93
- }
94
- }
95
- else
96
- {
97
- if(jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height()-3)
98
- {
99
- jQuery('.sfsi_outr_div').css({'z-index':'9996',opacity:1,top:jQuery(window).scrollTop()+200+"px",position:"absolute"});
100
- jQuery('.sfsi_outr_div').fadeIn(200);
101
- jQuery('.sfsi_FrntInner_chg').fadeIn(200);
102
- }
103
- else
104
- {
105
- jQuery('.sfsi_outr_div').fadeOut();
106
- jQuery('.sfsi_FrntInner_chg').fadeOut();
107
- }
108
- }
109
- });
110
- </script>
111
- <?php
112
- echo ob_get_clean();
113
- }
114
- if($sfsi_section7_options['sfsi_Shown_pop']=="LimitPopUp")
115
- {
116
- $time_popUp = (int) $sfsi_section7_options['sfsi_Shown_popuplimitPerUserTime'];
117
- $end_time = (int) $_COOKIE['sfsi_socialPopUp'] + ($time_popUp*60);
118
- $time_popUp = $time_popUp*1000;
119
-
120
- if(!empty($end_time))
121
- {
122
- if($end_time<time())
123
- {
124
- ?>
125
- <script>
126
- jQuery( document ).ready(function( $ ) {
127
- //jQuery('.sfsi_outr_div').fadeIn();
128
- sfsi_setCookie('sfsi_socialPopUp',<?php echo time(); ?>,32);
129
- setTimeout(function(){jQuery('.sfsi_outr_div').css({'z-index':'1000000',opacity:1});jQuery('.sfsi_outr_div').fadeIn();},<?php echo $time_popUp;?>);
130
- });
131
- </script>
132
- <?php
133
- }
134
- }
135
- echo ob_get_clean();
136
- }
137
- }
138
- return $content;
139
- }
140
- /* make front end pop div */
141
- function sfsi_FrontPopupDiv()
142
- {
143
- global $wpdb;
144
- /* get all settings for icons saved in admin */
145
- $sfsi_section1_options= unserialize(get_option('sfsi_section1_options',false));
146
- $custom_i=unserialize($sfsi_section1_options['sfsi_custom_files']);
147
- if($sfsi_section1_options['sfsi_rss_display']=='no' && $sfsi_section1_options['sfsi_email_display']=='no' && $sfsi_section1_options['sfsi_facebook_display']=='no' && $sfsi_section1_options['sfsi_twitter_display']=='no' && $sfsi_section1_options['sfsi_youtube_display']=='no' && $sfsi_section1_options['sfsi_pinterest_display']=='no' && $sfsi_section1_options['sfsi_linkedin_display']=='no' && empty($custom_i))
148
- {
149
- $icons='';return $icons;exit;
150
- }
151
- $sfsi_section7_options= unserialize(get_option('sfsi_section7_options',false));
152
- $sfsi_section5= unserialize(get_option('sfsi_section5_options',false));
153
- $sfsi_section4= unserialize(get_option('sfsi_section4_options',false));
154
- /* calculate the width and icons display alignments */
155
- $heading_text=(isset($sfsi_section7_options['sfsi_popup_text'])) ? $sfsi_section7_options['sfsi_popup_text']: 'Enjoy this site? Please follow and like us!';
156
- $div_bgColor=(isset($sfsi_section7_options['sfsi_popup_background_color'])) ? $sfsi_section7_options['sfsi_popup_background_color']: '#fff';
157
- $div_FontFamily=(isset($sfsi_section7_options['sfsi_popup_font'])) ? $sfsi_section7_options['sfsi_popup_font']: 'Arial';
158
- $div_BorderColor=(isset($sfsi_section7_options['sfsi_popup_border_color'])) ? $sfsi_section7_options['sfsi_popup_border_color']: '#d3d3d3';
159
- $div_Fonttyle=(isset($sfsi_section7_options['sfsi_popup_fontStyle'])) ? $sfsi_section7_options['sfsi_popup_fontStyle']: 'normal';
160
- $div_FontColor=(isset($sfsi_section7_options['sfsi_popup_fontColor'])) ? $sfsi_section7_options['sfsi_popup_fontColor']: '#000';
161
- $div_FontSize=(isset($sfsi_section7_options['sfsi_popup_fontSize'])) ? $sfsi_section7_options['sfsi_popup_fontSize']: '26';
162
- $div_BorderTheekness=(isset($sfsi_section7_options['sfsi_popup_border_thickness'])) ? $sfsi_section7_options['sfsi_popup_border_thickness']: '1';
163
- $div_Shadow=(isset($sfsi_section7_options['sfsi_popup_border_shadow']) && $sfsi_section7_options['sfsi_popup_border_shadow']=="yes") ? $sfsi_section7_options['sfsi_popup_border_thickness']: 'no';
164
-
165
- $style="background-color:".$div_bgColor.";border:".$div_BorderTheekness."px solid".$div_BorderColor."; font-style:".$div_Fonttyle.";color:".$div_FontColor;
166
- if($sfsi_section7_options['sfsi_popup_border_shadow']=="yes")
167
- {
168
- $style.=";box-shadow:12px 30px 18px #CCCCCC;";
169
- }
170
- $h_style="font-family:".$div_FontFamily.";font-style:".$div_Fonttyle.";color:".$div_FontColor.";font-size:".$div_FontSize."px";
171
- /* get all icons including custom icons */
172
- $custom_icons_order=unserialize($sfsi_section5['sfsi_CustomIcons_order']);
173
- $icons_order=array($sfsi_section5['sfsi_rssIcon_order']=>'rss',
174
- $sfsi_section5['sfsi_emailIcon_order']=>'email',
175
- $sfsi_section5['sfsi_facebookIcon_order']=>'facebook',
176
- $sfsi_section5['sfsi_twitterIcon_order']=>'twitter',
177
- $sfsi_section5['sfsi_youtubeIcon_order']=>'youtube',
178
- $sfsi_section5['sfsi_pinterestIcon_order']=>'pinterest',
179
- $sfsi_section5['sfsi_linkedinIcon_order']=>'linkedin',
180
- $sfsi_section5['sfsi_instagramIcon_order']=>'instagram',
181
- $sfsi_section5['sfsi_telegramIcon_order']=>'telegram',
182
- $sfsi_section5['sfsi_vkIcon_order']=>'vk',
183
- $sfsi_section5['sfsi_okIcon_order']=>'ok',
184
- $sfsi_section5['sfsi_weiboIcon_order']=>'weibo',
185
- $sfsi_section5['sfsi_wechatIcon_order']=>'wechat',
186
-
187
- ) ;
188
- $icons=array();
189
- $elements=array();
190
- $icons= unserialize($sfsi_section1_options['sfsi_custom_files']);
191
- if(is_array($icons)) $elements=array_keys($icons);
192
- $cnt=0;
193
- $total=isset($custom_icons_order) && is_array($custom_icons_order)? count($custom_icons_order):0;
194
- if(!empty($icons) && is_array($icons)) :
195
- foreach($icons as $cn=>$c_icons)
196
- {
197
- if(is_array($custom_icons_order) ) :
198
- if(in_array($custom_icons_order[$cnt]['ele'],$elements)) :
199
- $key=key($elements);
200
- unset($elements[$key]);
201
-
202
- $icons_order[$custom_icons_order[$cnt]['order']]=array('ele'=>$cn,'img'=>$c_icons);
203
- else :
204
- $icons_order[]=array('ele'=>$cn,'img'=>$c_icons);
205
- endif;
206
-
207
- $cnt++;
208
- else :
209
- $icons_order[]=array('ele'=>$cn,'img'=>$c_icons);
210
- endif;
211
-
212
- }
213
- endif;
214
- ksort($icons_order); /* short icons in order to display */
215
- $icons='<div class="sfsi_outr_div" > <div class="sfsi_FrntInner_chg" style="'.$style.'">';
216
- //adding close button
217
- $icons.='<div class="sfsiclpupwpr" onclick="sfsihidemepopup();"><img src="'.SFSI_PLUGURL.'images/close.png" alt="error" /></div>';
218
-
219
- if(!empty($heading_text))
220
- {
221
- $icons.='<h2 style="'.$h_style.'">'.$heading_text.'</h2>';
222
-
223
- }
224
- $ulmargin="";
225
- if($sfsi_section4['sfsi_display_counts']=="no")
226
- {
227
- $ulmargin="margin-bottom:0px";
228
- }
229
- /* make icons with all settings saved in admin */
230
- $icons.='<ul style="'.$ulmargin.'">';
231
- foreach($icons_order as $index=>$icn) :
232
-
233
- if(is_array($icn)) { $icon_arry=$icn; $icn="custom" ; }
234
- switch ($icn) :
235
- case 'rss' : if($sfsi_section1_options['sfsi_rss_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('rss',1)."</li>";
236
- break;
237
- case 'email' : if($sfsi_section1_options['sfsi_email_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('email',1)."</li>";
238
- break;
239
- case 'facebook' : if($sfsi_section1_options['sfsi_facebook_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('facebook',1)."</li>";
240
- break;
241
- case 'twitter' : if($sfsi_section1_options['sfsi_twitter_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('twitter',1)."</li>";
242
- break;
243
- case 'youtube' : if($sfsi_section1_options['sfsi_youtube_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('youtube',1)."</li>";
244
- break;
245
- case 'pinterest' : if($sfsi_section1_options['sfsi_pinterest_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('pinterest',1)."</li>";
246
- break;
247
- case 'linkedin' : if($sfsi_section1_options['sfsi_linkedin_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('linkedin',1)."</li>";
248
- break;
249
- case 'instagram' : if($sfsi_section1_options['sfsi_instagram_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('instagram',1)."</li>";
250
- break;
251
- case 'telegram' : if($sfsi_section1_options['sfsi_telegram_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('telegram',1)."</li>";
252
- break;
253
- case 'vk' : if($sfsi_section1_options['sfsi_vk_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('vk',1)."</li>";
254
- break;
255
- case 'ok' : if($sfsi_section1_options['sfsi_ok_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('ok',1)."</li>";
256
- break;
257
- case 'weibo' : if($sfsi_section1_options['sfsi_weibo_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('weibo',1)."</li>";
258
- break;
259
- case 'wechat' : if($sfsi_section1_options['sfsi_wechat_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('wechat',1)."</li>";
260
- break;
261
- case 'custom' : $icons.= "<li>". sfsi_prepairIcons($icon_arry['ele'],1)."</li>";
262
- break;
263
- endswitch;
264
- endforeach;
265
- $icons.='</ul></div ></div >';
266
-
267
- return $icons;
268
- }
269
-
270
  ?>
1
+ <?php
2
+
3
+ /* show a pop on the as per user chose under section 7 */
4
+ function sfsi_frontPopUp()
5
+ {
6
+ ob_start();
7
+ echo sfsi_FrontPopupDiv();
8
+ echo $output = ob_get_clean();
9
+ }
10
+ /* check where to be pop-shown */
11
+ function sfsi_check_PopUp($content)
12
+ {
13
+ global $post;
14
+ global $wpdb;
15
+
16
+ $content = '';
17
+
18
+ $sfsi_section7_options = unserialize(get_option('sfsi_section7_options', false));
19
+
20
+ if (isset($sfsi_section7_options['sfsi_Show_popupOn']) && !empty($sfsi_section7_options['sfsi_Show_popupOn'])) {
21
+
22
+ if ($sfsi_section7_options['sfsi_Show_popupOn'] == "blogpage") {
23
+ if (!is_feed() && !is_home() && !is_page()) {
24
+ $content = sfsi_frontPopUp() . $content;
25
+ }
26
+ } else if ($sfsi_section7_options['sfsi_Show_popupOn'] == "selectedpage") {
27
+ if (!empty($post->ID) && !empty($sfsi_section7_options['sfsi_Show_popupOn_PageIDs'])) {
28
+ if (is_page() && in_array($post->ID, unserialize($sfsi_section7_options['sfsi_Show_popupOn_PageIDs']))) {
29
+ $content = sfsi_frontPopUp() . $content;
30
+ }
31
+ }
32
+ } else if ($sfsi_section7_options['sfsi_Show_popupOn'] == "everypage") {
33
+ $content = sfsi_frontPopUp() . $content;
34
+ }
35
+ }
36
+
37
+ /* check for pop times */
38
+ if (isset($sfsi_section7_options['sfsi_Shown_pop']) && !empty($sfsi_section7_options['sfsi_Shown_pop']) && $sfsi_section7_options['sfsi_Shown_pop'] == "once") {
39
+ $time_popUp = (int) $sfsi_section7_options['sfsi_Shown_popupOnceTime'];
40
+ $time_popUp = $time_popUp * 1000;
41
+ ob_start();
42
+ ?>
43
+ <script>
44
+
45
+ window.addEventListener('sfsi_functions_loaded', function() {
46
+ if (typeof sfsi_time_pop_up == 'function') {
47
+ sfsi_time_pop_up(<?php echo $time_popUp ?>);
48
+ }
49
+ })
50
+ </script>
51
+ <?php
52
+ echo ob_get_clean();
53
+ return $content;
54
+ }
55
+
56
+ if (isset($sfsi_section7_options['sfsi_Shown_pop']) && !empty($sfsi_section7_options['sfsi_Shown_pop'])) {
57
+
58
+ if ($sfsi_section7_options['sfsi_Shown_pop'] == "ETscroll") {
59
+ $time_popUp = (int) $sfsi_section7_options['sfsi_Shown_popupOnceTime'];
60
+ $time_popUp = $time_popUp * 1000;
61
+ ob_start();
62
+ ?>
63
+ <script>
64
+ window.addEventListener('sfsi_functions_loaded', function() {
65
+ if (typeof sfsi_responsive_toggle == 'function') {
66
+ sfsi_responsive_toggle(<?php echo $time_popUp ?>);
67
+ console.log('sfsi_responsive_toggle');
68
+
69
+ }
70
+ })
71
+ </script>
72
+ <?php
73
+ echo ob_get_clean();
74
+ }
75
+ if ($sfsi_section7_options['sfsi_Shown_pop'] == "LimitPopUp") {
76
+ $time_popUp = (int) $sfsi_section7_options['sfsi_Shown_popuplimitPerUserTime'];
77
+ $end_time = (int) $_COOKIE['sfsi_socialPopUp'] + ($time_popUp * 60);
78
+ $time_popUp = $time_popUp * 1000;
79
+
80
+ if (!empty($end_time)) {
81
+ if ($end_time < time()) {
82
+ ?>
83
+ <script>
84
+
85
+
86
+ window.addEventListener('sfsi_functions_loaded', function() {
87
+ if (typeof sfsi_social_pop_up == 'function') {
88
+ sfsi_social_pop_up(<?php echo $time_popUp ?>);
89
+ console.log('sfsi_social_pop_up');
90
+ }
91
+ })
92
+ </script>
93
+ <?php
94
+ }
95
+ }
96
+ echo ob_get_clean();
97
+ }
98
+ }
99
+ return $content;
100
+ }
101
+ /* make front end pop div */
102
+ function sfsi_FrontPopupDiv()
103
+ {
104
+ global $wpdb;
105
+ /* get all settings for icons saved in admin */
106
+ $sfsi_section1_options = unserialize(get_option('sfsi_section1_options', false));
107
+ $custom_i = unserialize($sfsi_section1_options['sfsi_custom_files']);
108
+ if ($sfsi_section1_options['sfsi_rss_display'] == 'no' && $sfsi_section1_options['sfsi_email_display'] == 'no' && $sfsi_section1_options['sfsi_facebook_display'] == 'no' && $sfsi_section1_options['sfsi_twitter_display'] == 'no' && $sfsi_section1_options['sfsi_youtube_display'] == 'no' && $sfsi_section1_options['sfsi_pinterest_display'] == 'no' && $sfsi_section1_options['sfsi_linkedin_display'] == 'no' && empty($custom_i)) {
109
+ $icons = '';
110
+ return $icons;
111
+ exit;
112
+ }
113
+ $sfsi_section7_options = unserialize(get_option('sfsi_section7_options', false));
114
+ $sfsi_section5 = unserialize(get_option('sfsi_section5_options', false));
115
+ $sfsi_section4 = unserialize(get_option('sfsi_section4_options', false));
116
+ /* calculate the width and icons display alignments */
117
+ $heading_text = (isset($sfsi_section7_options['sfsi_popup_text'])) ? $sfsi_section7_options['sfsi_popup_text'] : 'Enjoy this site? Please follow and like us!';
118
+ $div_bgColor = (isset($sfsi_section7_options['sfsi_popup_background_color'])) ? $sfsi_section7_options['sfsi_popup_background_color'] : '#fff';
119
+ $div_FontFamily = (isset($sfsi_section7_options['sfsi_popup_font'])) ? $sfsi_section7_options['sfsi_popup_font'] : 'Arial';
120
+ $div_BorderColor = (isset($sfsi_section7_options['sfsi_popup_border_color'])) ? $sfsi_section7_options['sfsi_popup_border_color'] : '#d3d3d3';
121
+ $div_Fonttyle = (isset($sfsi_section7_options['sfsi_popup_fontStyle'])) ? $sfsi_section7_options['sfsi_popup_fontStyle'] : 'normal';
122
+ $div_FontColor = (isset($sfsi_section7_options['sfsi_popup_fontColor'])) ? $sfsi_section7_options['sfsi_popup_fontColor'] : '#000';
123
+ $div_FontSize = (isset($sfsi_section7_options['sfsi_popup_fontSize'])) ? $sfsi_section7_options['sfsi_popup_fontSize'] : '26';
124
+ $div_BorderTheekness = (isset($sfsi_section7_options['sfsi_popup_border_thickness'])) ? $sfsi_section7_options['sfsi_popup_border_thickness'] : '1';
125
+ $div_Shadow = (isset($sfsi_section7_options['sfsi_popup_border_shadow']) && $sfsi_section7_options['sfsi_popup_border_shadow'] == "yes") ? $sfsi_section7_options['sfsi_popup_border_thickness'] : 'no';
126
+
127
+ $style = "background-color:" . $div_bgColor . ";border:" . $div_BorderTheekness . "px solid" . $div_BorderColor . "; font-style:" . $div_Fonttyle . ";color:" . $div_FontColor;
128
+ if ($sfsi_section7_options['sfsi_popup_border_shadow'] == "yes") {
129
+ $style .= ";box-shadow:12px 30px 18px #CCCCCC;";
130
+ }
131
+ $h_style = "font-family:" . $div_FontFamily . ";font-style:" . $div_Fonttyle . ";color:" . $div_FontColor . ";font-size:" . $div_FontSize . "px";
132
+ /* get all icons including custom icons */
133
+ $custom_icons_order = unserialize($sfsi_section5['sfsi_CustomIcons_order']);
134
+ $icons_order = array(
135
+ $sfsi_section5['sfsi_rssIcon_order'] => 'rss',
136
+ $sfsi_section5['sfsi_emailIcon_order'] => 'email',
137
+ $sfsi_section5['sfsi_facebookIcon_order'] => 'facebook',
138
+ $sfsi_section5['sfsi_twitterIcon_order'] => 'twitter',
139
+ $sfsi_section5['sfsi_youtubeIcon_order'] => 'youtube',
140
+ $sfsi_section5['sfsi_pinterestIcon_order'] => 'pinterest',
141
+ $sfsi_section5['sfsi_linkedinIcon_order'] => 'linkedin',
142
+ $sfsi_section5['sfsi_instagramIcon_order'] => 'instagram',
143
+ $sfsi_section5['sfsi_telegramIcon_order'] => 'telegram',
144
+ $sfsi_section5['sfsi_vkIcon_order'] => 'vk',
145
+ $sfsi_section5['sfsi_okIcon_order'] => 'ok',
146
+ $sfsi_section5['sfsi_weiboIcon_order'] => 'weibo',
147
+ $sfsi_section5['sfsi_wechatIcon_order'] => 'wechat',
148
+
149
+ );
150
+ $icons = array();
151
+ $elements = array();
152
+ $icons = unserialize($sfsi_section1_options['sfsi_custom_files']);
153
+ if (is_array($icons)) $elements = array_keys($icons);
154
+ $cnt = 0;
155
+ $total = isset($custom_icons_order) && is_array($custom_icons_order) ? count($custom_icons_order) : 0;
156
+ if (!empty($icons) && is_array($icons)) :
157
+ foreach ($icons as $cn => $c_icons) {
158
+ if (is_array($custom_icons_order)) :
159
+ if (in_array($custom_icons_order[$cnt]['ele'], $elements)) :
160
+ $key = key($elements);
161
+ unset($elements[$key]);
162
+
163
+ $icons_order[$custom_icons_order[$cnt]['order']] = array('ele' => $cn, 'img' => $c_icons);
164
+ else :
165
+ $icons_order[] = array('ele' => $cn, 'img' => $c_icons);
166
+ endif;
167
+
168
+ $cnt++;
169
+ else :
170
+ $icons_order[] = array('ele' => $cn, 'img' => $c_icons);
171
+ endif;
172
+ }
173
+ endif;
174
+ ksort($icons_order); /* short icons in order to display */
175
+ $icons = '<div class="sfsi_outr_div" > <div class="sfsi_FrntInner_chg" style="' . $style . '">';
176
+ //adding close button
177
+ $icons .= '<div class="sfsiclpupwpr" onclick="sfsihidemepopup();"><img src="' . SFSI_PLUGURL . 'images/close.png" alt="error" /></div>';
178
+
179
+ if (!empty($heading_text)) {
180
+ $icons .= '<h2 style="' . $h_style . '">' . $heading_text . '</h2>';
181
+ }
182
+ $ulmargin = "";
183
+ if ($sfsi_section4['sfsi_display_counts'] == "no") {
184
+ $ulmargin = "margin-bottom:0px";
185
+ }
186
+ /* make icons with all settings saved in admin */
187
+ $icons .= '<ul style="' . $ulmargin . '">';
188
+ foreach ($icons_order as $index => $icn) :
189
+
190
+ if (is_array($icn)) {
191
+ $icon_arry = $icn;
192
+ $icn = "custom";
193
+ }
194
+ switch ($icn): case 'rss':
195
+ if ($sfsi_section1_options['sfsi_rss_display'] == 'yes') $icons .= "<li>" . sfsi_prepairIcons('rss', 1) . "</li>";
196
+ break;
197
+ case 'email':
198
+ if ($sfsi_section1_options['sfsi_email_display'] == 'yes') $icons .= "<li>" . sfsi_prepairIcons('email', 1) . "</li>";
199
+ break;
200
+ case 'facebook':
201
+ if ($sfsi_section1_options['sfsi_facebook_display'] == 'yes') $icons .= "<li>" . sfsi_prepairIcons('facebook', 1) . "</li>";
202
+ break;
203
+ case 'twitter':
204
+ if ($sfsi_section1_options['sfsi_twitter_display'] == 'yes') $icons .= "<li>" . sfsi_prepairIcons('twitter', 1) . "</li>";
205
+ break;
206
+ case 'youtube':
207
+ if ($sfsi_section1_options['sfsi_youtube_display'] == 'yes') $icons .= "<li>" . sfsi_prepairIcons('youtube', 1) . "</li>";
208
+ break;
209
+ case 'pinterest':
210
+ if ($sfsi_section1_options['sfsi_pinterest_display'] == 'yes') $icons .= "<li>" . sfsi_prepairIcons('pinterest', 1) . "</li>";
211
+ break;
212
+ case 'linkedin':
213
+ if ($sfsi_section1_options['sfsi_linkedin_display'] == 'yes') $icons .= "<li>" . sfsi_prepairIcons('linkedin', 1) . "</li>";
214
+ break;
215
+ case 'instagram':
216
+ if ($sfsi_section1_options['sfsi_instagram_display'] == 'yes') $icons .= "<li>" . sfsi_prepairIcons('instagram', 1) . "</li>";
217
+ break;
218
+ case 'telegram':
219
+ if ($sfsi_section1_options['sfsi_telegram_display'] == 'yes') $icons .= "<li>" . sfsi_prepairIcons('telegram', 1) . "</li>";
220
+ break;
221
+ case 'vk':
222
+ if ($sfsi_section1_options['sfsi_vk_display'] == 'yes') $icons .= "<li>" . sfsi_prepairIcons('vk', 1) . "</li>";
223
+ break;
224
+ case 'ok':
225
+ if ($sfsi_section1_options['sfsi_ok_display'] == 'yes') $icons .= "<li>" . sfsi_prepairIcons('ok', 1) . "</li>";
226
+ break;
227
+ case 'weibo':
228
+ if ($sfsi_section1_options['sfsi_weibo_display'] == 'yes') $icons .= "<li>" . sfsi_prepairIcons('weibo', 1) . "</li>";
229
+ break;
230
+ case 'wechat':
231
+ if ($sfsi_section1_options['sfsi_wechat_display'] == 'yes') $icons .= "<li>" . sfsi_prepairIcons('wechat', 1) . "</li>";
232
+ break;
233
+ case 'custom':
234
+ $icons .= "<li>" . sfsi_prepairIcons($icon_arry['ele'], 1) . "</li>";
235
+ break;
236
+ endswitch;
237
+ endforeach;
238
+ $icons .= '</ul></div ></div >';
239
+
240
+ return $icons;
241
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
242
  ?>
libs/controllers/sfsi_socialhelper.php CHANGED
@@ -473,10 +473,13 @@ class sfsi_SocialHelper
473
  'timeout' => 30,
474
  'user-agent' => 'sf rss request',
475
  'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
476
- 'sslverify' => true
477
  );
478
- $resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/wpCountSubscriber', $args );
479
-
 
 
 
480
  $httpcode = wp_remote_retrieve_response_code($resp);
481
 
482
  if($httpcode == 200){
473
  'timeout' => 30,
474
  'user-agent' => 'sf rss request',
475
  'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
476
+ 'sslverify' => false
477
  );
478
+ try{
479
+ $resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/wpCountSubscriber', $args );
480
+ }catch(\Exception $e){
481
+ var_dump($e);
482
+ }
483
  $httpcode = wp_remote_retrieve_response_code($resp);
484
 
485
  if($httpcode == 200){
libs/controllers/sfsiocns_OnPosts.php CHANGED
@@ -133,7 +133,7 @@ function sfsi_Subscribelike($permalink, $show_count)
133
  $sfsi_section2_options = unserialize(get_option('sfsi_section2_options', false));
134
  $sfsi_section4_options = unserialize(get_option('sfsi_section4_options', false));
135
  $sfsi_section6_options = unserialize(get_option('sfsi_section6_options', false));
136
- $url = (isset($sfsi_section2_options['sfsi_email_url'])) ? $sfsi_section2_options['sfsi_email_url'] : '';
137
 
138
  if ($sfsi_section4_options['sfsi_email_countsFrom'] == "source") {
139
  $feed_id = sanitize_text_field(get_option('sfsi_feed_id', false));
@@ -469,48 +469,9 @@ function sfsi_social_responsive_buttons($content,$option6,$server_side=false)
469
  case "facebook":$share_url="https://www.facebook.com/sharer/sharer.php?u=".urlencode($current_url); break;
470
  case "Twitter":$twitter_text = $share_url = "https://twitter.com/intent/tweet?text=".urlencode($twitter_text)."&url=".urlencode($current_url);break;
471
  case "Follow":
472
- if(isset($option2['sfsi_email_icons_functions']) && $option2['sfsi_email_icons_functions'] == 'sf')
473
- {
474
- $share_url = (isset($option2['sfsi_email_url']))
475
- ? $option2['sfsi_email_url']
476
- : 'javascript:';
477
- }
478
- elseif(isset($option2['sfsi_email_icons_functions']) && $option2['sfsi_email_icons_functions'] == 'contact')
479
- {
480
- $share_url = (isset($option2['sfsi_email_icons_contact']) && !empty($option2['sfsi_email_icons_contact']))
481
- ? "mailto:".$option2['sfsi_email_icons_contact']
482
- : 'javascript:';
483
- }
484
- elseif(isset($option2['sfsi_email_icons_functions']) && $option2['sfsi_email_icons_functions'] == 'page')
485
- {
486
- $share_url = (isset($option2['sfsi_email_icons_pageurl']) && !empty($option2['sfsi_email_icons_pageurl']))
487
- ? $option2['sfsi_email_icons_pageurl']
488
- : 'javascript:';
489
- }
490
- elseif(isset($option2['sfsi_email_icons_functions']) && $option2['sfsi_email_icons_functions'] == 'share_email')
491
- {
492
- $subject = stripslashes($option2['sfsi_email_icons_subject_line']);
493
- $subject = str_replace('${title}', $socialObj->sfsi_get_the_title(), $subject);
494
- $subject = str_replace('"', '', str_replace("'", '', $subject));
495
- $subject = html_entity_decode(strip_tags($subject), ENT_QUOTES,'UTF-8');
496
- $subject = str_replace("%26%238230%3B", "...", $subject);
497
- $subject = rawurlencode($subject);
498
-
499
- $body = stripslashes($option2['sfsi_email_icons_email_content']);
500
- $body = str_replace('${title}', $socialObj->sfsi_get_the_title(), $body);
501
- $body = str_replace('${link}', trailingslashit($socialObj->sfsi_get_custom_share_link('email')), $body);
502
- $body = str_replace('"', '', str_replace("'", '', $body));
503
- $body = html_entity_decode(strip_tags($body), ENT_QUOTES,'UTF-8');
504
- $body = str_replace("%26%238230%3B", "...", $body);
505
- $body = rawurlencode($body);
506
- $share_url = "mailto:?subject=$subject&body=$body";
507
- }
508
- else
509
- {
510
- $share_url = (isset($option2['sfsi_email_url']))
511
- ? $option2['sfsi_email_url']
512
- : 'javascript:';
513
- }
514
  break;
515
 
516
  }
133
  $sfsi_section2_options = unserialize(get_option('sfsi_section2_options', false));
134
  $sfsi_section4_options = unserialize(get_option('sfsi_section4_options', false));
135
  $sfsi_section6_options = unserialize(get_option('sfsi_section6_options', false));
136
+ $url = (isset($sfsi_section2_options['sfsi_email_url'])) ? $sfsi_section2_options['sfsi_email_url'] : 'https://www.specificfeeds.com/follow';
137
 
138
  if ($sfsi_section4_options['sfsi_email_countsFrom'] == "source") {
139
  $feed_id = sanitize_text_field(get_option('sfsi_feed_id', false));
469
  case "facebook":$share_url="https://www.facebook.com/sharer/sharer.php?u=".urlencode($current_url); break;
470
  case "Twitter":$twitter_text = $share_url = "https://twitter.com/intent/tweet?text=".urlencode($twitter_text)."&url=".urlencode($current_url);break;
471
  case "Follow":
472
+ $share_url = (isset($option2['sfsi_email_url']))
473
+ ? $option2['sfsi_email_url']
474
+ : 'https://specificfeeds.com/follow';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
475
  break;
476
 
477
  }
libs/sfsi_custom_social_sharing_data.php CHANGED
@@ -1,77 +1,77 @@
1
- <?php
2
-
3
- function sfsi_social_media_metabox( $post ) { ?>
4
- <style>
5
- .sfsi_new_prmium_follw p {
6
- width: 90%;
7
- color: #1a1d20 !important;
8
- font-size: 17px !important;
9
- font-family: helveticaregular !important;
10
- }
11
- .sfsi_new_prmium_follw {
12
- width: 97%;
13
- margin-top: 8px;
14
- display: inline-block;
15
- background: #f3faf6;
16
- border: 1px solid #12a252;
17
- padding: 0px 25px 0px 15px;
18
- height: 63px;
19
- clear: both;
20
- position: relative;
21
- }
22
- .sfsi_new_prmium_sharing p a {
23
- color: #12a252 !important;
24
- border-bottom: 1px solid #12a252;
25
- text-decoration: none;
26
- }
27
- .sfsi_new_prmium_follw p b {
28
- font-weight: bold;
29
- color: #1a1d20 !important;
30
- }
31
- .sfsi_hidenotice{
32
- cursor: pointer;
33
- float: right;
34
- position: absolute;
35
- right: 10px;
36
- top: 21px;
37
- color: grey;
38
- font-size: 13px;
39
- }
40
- </style>
41
-
42
- <script type="text/javascript">
43
- jQuery(document).ready(function(){
44
- jQuery('.sfsi_hidenotice').on('click',function(){
45
- var data = {
46
- action:"update_sharing_settings",
47
- sfsi_custom_social_hide:"yes",
48
- nonce: '<?php echo wp_create_nonce('update_sharing_settings') ?>'
49
- };
50
- jQuery.post(ajaxurl, data, function(response) {
51
- if(response){
52
- alert('Settings updated');
53
- jQuery('#sfsi-social-media').remove();
54
- }
55
- });
56
- });
57
- });
58
- </script>
59
-
60
- <div class="sfsi_new_prmium_follw"><p><b>New:</b> The Premium Plugin (Ultimate Social Media) allows you to define which picture, snippet text or tweet gets shared. <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_post_or_page&utm_campaign=define_pic_and_text&utm_medium=banner"target="_blank">See all features</a></p><a class="sfsi_hidenotice" href="javascript:void(0)">Hide this notice</a></div>
61
-
62
- <?php }
63
-
64
-
65
- function sfsi_icons_add_meta_boxes() {
66
- $screen = get_current_screen();
67
- $option5 = unserialize(get_option('sfsi_section5_options',false));
68
- $hideSectionVal = (isset($option5['sfsi_custom_social_hide'])) ? $option5['sfsi_custom_social_hide']: 'no';
69
-
70
- if($hideSectionVal=='no'){
71
- if(isset($screen->post_type) && ('page'==$screen->post_type || 'post'==$screen->post_type)){
72
- add_meta_box( 'sfsi-social-media', 'Ultimate Social Media – Sharing text & pictures', 'sfsi_social_media_metabox', $screen->post_type, 'normal', 'low' );
73
- }
74
- }
75
- }
76
- add_action( 'add_meta_boxes', 'sfsi_icons_add_meta_boxes' );
77
  ?>
1
+ <?php
2
+
3
+ function sfsi_social_media_metabox( $post ) { ?>
4
+ <style>
5
+ .sfsi_new_prmium_follw p {
6
+ width: 90%;
7
+ color: #1a1d20 !important;
8
+ font-size: 17px !important;
9
+ font-family: helveticaregular !important;
10
+ }
11
+ .sfsi_new_prmium_follw {
12
+ width: 97%;
13
+ margin-top: 8px;
14
+ display: inline-block;
15
+ background: #f3faf6;
16
+ border: 1px solid #12a252;
17
+ padding: 0px 25px 0px 15px;
18
+ height: 63px;
19
+ clear: both;
20
+ position: relative;
21
+ }
22
+ .sfsi_new_prmium_sharing p a {
23
+ color: #12a252 !important;
24
+ border-bottom: 1px solid #12a252;
25
+ text-decoration: none;
26
+ }
27
+ .sfsi_new_prmium_follw p b {
28
+ font-weight: bold;
29
+ color: #1a1d20 !important;
30
+ }
31
+ .sfsi_hidenotice{
32
+ cursor: pointer;
33
+ float: right;
34
+ position: absolute;
35
+ right: 10px;
36
+ top: 21px;
37
+ color: grey;
38
+ font-size: 13px;
39
+ }
40
+ </style>
41
+
42
+ <script type="text/javascript">
43
+ window.addEventListener('sfsi_functions_loaded',function(){
44
+ jQuery('.sfsi_hidenotice').on('click',function(){
45
+ var data = {
46
+ action:"update_sharing_settings",
47
+ sfsi_custom_social_hide:"yes",
48
+ nonce: '<?php echo wp_create_nonce('update_sharing_settings') ?>'
49
+ };
50
+ jQuery.post(ajaxurl, data, function(response) {
51
+ if(response){
52
+ alert('Settings updated');
53
+ jQuery('#sfsi-social-media').remove();
54
+ }
55
+ });
56
+ });
57
+ });
58
+ </script>
59
+
60
+ <div class="sfsi_new_prmium_follw"><p><b>New:</b> The Premium Plugin (Ultimate Social Media) allows you to define which picture, snippet text or tweet gets shared. <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_post_or_page&utm_campaign=define_pic_and_text&utm_medium=banner"target="_blank">See all features</a></p><a class="sfsi_hidenotice" href="javascript:void(0)">Hide this notice</a></div>
61
+
62
+ <?php }
63
+
64
+
65
+ function sfsi_icons_add_meta_boxes() {
66
+ $screen = get_current_screen();
67
+ $option5 = unserialize(get_option('sfsi_section5_options',false));
68
+ $hideSectionVal = (isset($option5['sfsi_custom_social_hide'])) ? $option5['sfsi_custom_social_hide']: 'no';
69
+
70
+ if($hideSectionVal=='no'){
71
+ if(isset($screen->post_type) && ('page'==$screen->post_type || 'post'==$screen->post_type)){
72
+ add_meta_box( 'sfsi-social-media', 'Ultimate Social Media – Sharing text & pictures', 'sfsi_social_media_metabox', $screen->post_type, 'normal', 'low' );
73
+ }
74
+ }
75
+ }
76
+ add_action( 'add_meta_boxes', 'sfsi_icons_add_meta_boxes' );
77
  ?>
libs/sfsi_install_uninstall.php CHANGED
@@ -34,7 +34,7 @@ function sfsi_update_plugin()
34
  update_option("sfsi_custom_icons", "yes");
35
  }
36
  //Install version
37
- update_option("sfsi_pluginVersion", "2.37");
38
 
39
  if (!get_option('sfsi_serverphpVersionnotification')) {
40
  add_option("sfsi_serverphpVersionnotification", "yes");
@@ -550,6 +550,9 @@ function sfsi_update_plugin()
550
  update_option('sfsi_section1_options', serialize($option1));
551
  // Add this removed in version 2.0.2, removing values from section 1 & section 6 & setting notice display value
552
  sfsi_was_displaying_addthis();
 
 
 
553
  }
554
 
555
  function sfsi_activate_plugin()
@@ -1099,15 +1102,6 @@ function SFSI_getFeedUrl()
1099
  'sslverify' => true
1100
  );
1101
  $resp = wp_remote_post('https://www.specificfeeds.com/wordpress/plugin_setup', $args);
1102
- if (is_wp_error($resp)) {
1103
- // var_dump($resp);
1104
- // update_option("sfsi_curlErrorNotices", "yes");
1105
- // update_option("sfsi_curlErrorMessage", $resp->get_error_message());
1106
- } else {
1107
- update_option("sfsi_curlErrorNotices", "no");
1108
- update_option("sfsi_curlErrorMessage", "");
1109
- $resp = json_decode($resp['body']);
1110
- }
1111
  $feed_url = stripslashes_deep($resp->redirect_url);
1112
  return $resp;
1113
  exit;
@@ -1283,7 +1277,7 @@ function sfsi_rating_msg()
1283
  <button type="button" class="plg-rating-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>
1284
  </div>
1285
  <script>
1286
- jQuery(document).ready(function($) {
1287
 
1288
  var sel1 = jQuery('.sfsiHideRating');
1289
  var sel2 = jQuery('.plg-rating-dismiss');
34
  update_option("sfsi_custom_icons", "yes");
35
  }
36
  //Install version
37
+ update_option("sfsi_pluginVersion", "2.38");
38
 
39
  if (!get_option('sfsi_serverphpVersionnotification')) {
40
  add_option("sfsi_serverphpVersionnotification", "yes");
550
  update_option('sfsi_section1_options', serialize($option1));
551
  // Add this removed in version 2.0.2, removing values from section 1 & section 6 & setting notice display value
552
  sfsi_was_displaying_addthis();
553
+ //removing as we moved to wp_remote calls and remote calls can work without curl installed.
554
+ delete_option("sfsi_curlErrorNotices");
555
+ delete_option("sfsi_curlErrorMessage");
556
  }
557
 
558
  function sfsi_activate_plugin()
1102
  'sslverify' => true
1103
  );
1104
  $resp = wp_remote_post('https://www.specificfeeds.com/wordpress/plugin_setup', $args);
 
 
 
 
 
 
 
 
 
1105
  $feed_url = stripslashes_deep($resp->redirect_url);
1106
  return $resp;
1107
  exit;
1277
  <button type="button" class="plg-rating-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>
1278
  </div>
1279
  <script>
1280
+ window.addEventListener('sfsi_functions_loaded',function($) {
1281
 
1282
  var sel1 = jQuery('.sfsiHideRating');
1283
  var sel2 = jQuery('.plg-rating-dismiss');
libs/sfsi_subscribe_widget.php CHANGED
@@ -1,103 +1,103 @@
1
- <?php
2
- // Creating the widget
3
- class subscriber_widget extends WP_Widget {
4
-
5
- function __construct()
6
- {
7
- parent::__construct(
8
- // Base ID of your widget
9
- 'subscriber_widget',
10
-
11
- // Widget name will appear in UI
12
- __('Ultimate Social Subscribe Form', 'subscriber_widget_domain'),
13
-
14
- // Widget description
15
- array( 'description' => __( 'Ultimate Social Subscribe Form', 'subscriber_widget_domain' ), )
16
- );
17
- }
18
-
19
- public function widget( $args, $instance )
20
- {
21
- $title = apply_filters( 'widget_title', $instance['title'] );
22
-
23
- // before and after widget arguments are defined by themes
24
- echo $args['before_widget'];
25
-
26
- if ( ! empty( $title ) )
27
- {
28
- echo $args['before_title'] . $title . $args['after_title'];
29
- }
30
-
31
- // Call subscriber form
32
- echo do_shortcode("[USM_form]");
33
-
34
- echo $args['after_widget'];
35
- }
36
-
37
- // Widget Backend
38
- public function form( $instance )
39
- {
40
- if ( isset( $instance[ 'title' ] ))
41
- {
42
- $title = $instance[ 'title' ];
43
- }
44
- else
45
- {
46
- $title = '';
47
- }
48
- ?>
49
- <p>
50
- <label for="<?php echo $this->get_field_id( 'title' ); ?>">Title:</label>
51
- <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>"
52
- name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
53
- </p>
54
- <?php
55
- }
56
-
57
- // Updating widget replacing old instances with new
58
- public function update( $newInstance, $oldInstance )
59
- {
60
- $instance = array();
61
- $instance['title'] = ( ! empty( $newInstance['title'] ) ) ? strip_tags( $newInstance['title'] ) : '';
62
- return $instance;
63
- }
64
- }
65
- // Class wpb_widget ends here
66
-
67
- // Register and load the widget
68
- function subscriber_load_widget()
69
- {
70
- register_widget( 'subscriber_widget' );
71
- }
72
- add_action( 'widgets_init', 'subscriber_load_widget' );
73
- ?><?php
74
- add_shortcode("USM_form", "sfsi_get_subscriberForm");
75
- function sfsi_get_subscriberForm()
76
- {
77
- $option8 = unserialize(get_option('sfsi_section8_options',false));
78
- $sfsi_feediid = sanitize_text_field(get_option('sfsi_feed_id'));
79
- if($sfsi_feediid == ""){
80
- $url = "https://www.specificfeeds.com/subscribe?pub=boTZa2n0OIjC4D8PkiyzByH-uKEJSZgqMW-sJiFwbuEnoxENjKva2A";
81
- }else{
82
- $url = "https://www.specificfeeds.com/widgets/subscribeWidget/";
83
- $url = $url.$sfsi_feediid.'/8/';
84
-
85
- }
86
-
87
- $return = '';
88
- $return .= '<div class="sfsi_subscribe_Popinner">
89
- <form method="post" onsubmit="return sfsi_processfurther(this);" target="popupwindow" action="'.$url.'">
90
- <h5>'.trim(sanitize_text_field($option8['sfsi_form_heading_text'])).'</h5>
91
- <div class="sfsi_subscription_form_field">
92
- <input type="email" name="data[Widget][email]" value="" placeholder="'.trim($option8['sfsi_form_field_text']).'"/>
93
- </div>
94
- <div class="sfsi_subscription_form_field">
95
- <input type="hidden" name="data[Widget][feed_id]" value="'.$sfsi_feediid.'">
96
- <input type="hidden" name="data[Widget][feedtype]" value="8">
97
- <input type="submit" name="subscribe" value="'.sanitize_text_field($option8['sfsi_form_button_text']).'" />
98
- </div>
99
- </form>
100
- </div>';
101
- return $return;
102
- }
103
  ?>
1
+ <?php
2
+ // Creating the widget
3
+ class subscriber_widget extends WP_Widget {
4
+
5
+ function __construct()
6
+ {
7
+ parent::__construct(
8
+ // Base ID of your widget
9
+ 'subscriber_widget',
10
+
11
+ // Widget name will appear in UI
12
+ __('Ultimate Social Subscribe Form', 'subscriber_widget_domain'),
13
+
14
+ // Widget description
15
+ array( 'description' => __( 'Ultimate Social Subscribe Form', 'subscriber_widget_domain' ), )
16
+ );
17
+ }
18
+
19
+ public function widget( $args, $instance )
20
+ {
21
+ $title = apply_filters( 'widget_title', $instance['title'] );
22
+
23
+ // before and after widget arguments are defined by themes
24
+ echo $args['before_widget'];
25
+
26
+ if ( ! empty( $title ) )
27
+ {
28
+ echo $args['before_title'] . $title . $args['after_title'];
29
+ }
30
+
31
+ // Call subscriber form
32
+ echo do_shortcode("[USM_form]");
33
+
34
+ echo $args['after_widget'];
35
+ }
36
+
37
+ // Widget Backend
38
+ public function form( $instance )
39
+ {
40
+ if ( isset( $instance[ 'title' ] ))
41
+ {
42
+ $title = $instance[ 'title' ];
43
+ }
44
+ else
45
+ {
46
+ $title = '';
47
+ }
48
+ ?>
49
+ <p>
50
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>">Title:</label>
51
+ <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>"
52
+ name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
53
+ </p>
54
+ <?php
55
+ }
56
+
57
+ // Updating widget replacing old instances with new
58
+ public function update( $newInstance, $oldInstance )
59
+ {
60
+ $instance = array();
61
+ $instance['title'] = ( ! empty( $newInstance['title'] ) ) ? strip_tags( $newInstance['title'] ) : '';
62
+ return $instance;
63
+ }
64
+ }
65
+ // Class wpb_widget ends here
66
+
67
+ // Register and load the widget
68
+ function subscriber_load_widget()
69
+ {
70
+ register_widget( 'subscriber_widget' );
71
+ }
72
+ add_action( 'widgets_init', 'subscriber_load_widget' );
73
+ ?><?php
74
+ add_shortcode("USM_form", "sfsi_get_subscriberForm");
75
+ function sfsi_get_subscriberForm()
76
+ {
77
+ $option8 = unserialize(get_option('sfsi_section8_options',false));
78
+ $sfsi_feediid = sanitize_text_field(get_option('sfsi_feed_id'));
79
+ if($sfsi_feediid == ""){
80
+ $url = "https://www.specificfeeds.com/subscribe?pub=boTZa2n0OIjC4D8PkiyzByH-uKEJSZgqMW-sJiFwbuEnoxENjKva2A";
81
+ }else{
82
+ $url = "https://www.specificfeeds.com/widgets/subscribeWidget/";
83
+ $url = $url.$sfsi_feediid.'/8/';
84
+
85
+ }
86
+
87
+ $return = '';
88
+ $return .= '<div class="sfsi_subscribe_Popinner">
89
+ <form method="post" onsubmit="return sfsi_processfurther(this);" target="popupwindow" action="'.$url.'">
90
+ <h5>'.trim(sanitize_text_field($option8['sfsi_form_heading_text'])).'</h5>
91
+ <div class="sfsi_subscription_form_field">
92
+ <input type="email" name="data[Widget][email]" value="" placeholder="'.trim($option8['sfsi_form_field_text']).'"/>
93
+ </div>
94
+ <div class="sfsi_subscription_form_field">
95
+ <input type="hidden" name="data[Widget][feed_id]" value="'.$sfsi_feediid.'">
96
+ <input type="hidden" name="data[Widget][feedtype]" value="8">
97
+ <input type="submit" name="subscribe" @click="sfsi_plus_handle_subscription_form" value="'.sanitize_text_field($option8['sfsi_form_button_text']).'" />
98
+ </div>
99
+ </form>
100
+ </div>';
101
+ return $return;
102
+ }
103
  ?>
libs/sfsi_widget.php CHANGED
@@ -1,1624 +1,1627 @@
1
- <?php
2
- /* create SFSI widget */
3
- class Sfsi_Widget extends WP_Widget
4
- {
5
-
6
- function __construct()
7
- {
8
- $widget_ops = array( 'classname' => 'sfsi', 'description' => __('Ultimate Social Media Icons widgets', 'Ultimate Social Media Icons ') );
9
- $control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'sfsi-widget' );
10
-
11
- parent::__construct(
12
- // Base ID of your widget
13
- 'sfsi-widget',
14
-
15
- // Widget name will appear in UI
16
- __('Ultimate Social Media Icons', 'Ultimate Social Media Icons'),
17
-
18
- // Widget description
19
- $widget_ops,
20
-
21
- $control_ops
22
- );
23
- }
24
-
25
- function widget( $args, $instance )
26
- {
27
- extract( $args );
28
- /*Our variables from the widget settings. */
29
- $title = isset( $instance['title'] ) ? apply_filters('widget_title', $instance['title'] ) : '';
30
- // var_dump($title,'ldfjgkdfj');
31
- $show_info = isset( $instance['show_info'] ) ? $instance['show_info'] : false;
32
-
33
- global $is_floter;
34
- echo $before_widget;
35
-
36
- /* Display the widget title */
37
- if ( $title ) echo $before_title . $title . $after_title;
38
- ?>
39
- <div class="sfsi_widget" data-position="widget">
40
- <div id='sfsi_wDiv'></div>
41
- <?php
42
- /* Link the main icons function */
43
- echo sfsi_check_visiblity(0);
44
- ?>
45
- <div style="clear: both;"></div>
46
- </div>
47
- <?php
48
- if ( is_active_widget( false, false, $this->id_base, true ) ) { }
49
- echo $after_widget;
50
- }
51
-
52
- /*Update the widget */
53
- function update( $new_instance, $old_instance )
54
- {
55
- $instance = $old_instance;
56
- //Strip tags from title and name to remove HTML
57
- if($new_instance['showf']==0)
58
- {
59
- $instance['showf']=1;
60
- }
61
- else
62
- {
63
- $instance['showf']=0;
64
- }
65
- $instance['title'] = strip_tags( $new_instance['title'] );
66
- return $instance;
67
- }
68
-
69
- /* Set up some default widget settings. */
70
- function form( $instance )
71
- {
72
- $defaults = array( 'title' =>"" );
73
- $instance = wp_parse_args( (array) $instance, $defaults );
74
- if(isset($instance['showf']) && !empty($instance['showf']))
75
- {
76
- if( $instance['showf'] == 0 && empty($instance['title']))
77
- {
78
- $instance['title']='Please follow & like us :)';
79
- }
80
- else
81
- {
82
- $instance['title'];
83
- }
84
- }
85
- else
86
- {
87
- $instance['title']='Please follow & like us :)';
88
- }
89
- ?>
90
- <p>
91
- <label for="<?php echo $this->get_field_id( 'title' ); ?>">Title</label>
92
- <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $instance['title']; ?>" style="width:100%;" />
93
- <input type="hidden" value="<?php echo $instance['showf'] ?>" id="<?php echo $this->get_field_id( 'showf' ); ?>" name="<?php echo $this->get_field_name( 'showf' ); ?>" />
94
- </p>
95
- <p>
96
- Please go to the <a href="admin.php?page=sfsi-options">plugin page</a> to set your preferences
97
- </p>
98
- <?php
99
- }
100
- }
101
- /* END OF widget Class */
102
- /* register widget to wordpress */
103
- function register_sfsi_widgets()
104
- {
105
- register_widget( 'sfsi_widget' );
106
- }
107
- add_action( 'widgets_init', 'register_sfsi_widgets' );
108
-
109
- /* check the icons visiblity */
110
- function sfsi_check_visiblity($isFloter=0)
111
- {
112
- global $wpdb;
113
- /* Access the saved settings in database */
114
- $sfsi_section1_options = unserialize(get_option('sfsi_section1_options',false));
115
- $sfsi_section3 = unserialize(get_option('sfsi_section3_options',false));
116
- $sfsi_section5 = unserialize(get_option('sfsi_section5_options',false));
117
- $sfsi_section9 = unserialize(get_option('sfsi_section9_options',false));
118
-
119
- /* calculate the width and icons display alignments */
120
- $icons_space = $sfsi_section5['sfsi_icons_spacing'];
121
- $icons_size = $sfsi_section5['sfsi_icons_size'];
122
- $icons_per_row = ($sfsi_section5['sfsi_icons_perRow'])? $sfsi_section5['sfsi_icons_perRow'] : '';
123
-
124
- $icons_alignment = $sfsi_section5['sfsi_icons_Alignment'];
125
- $position = 'position:absolute;';
126
- $position1 = 'position:absolute;';
127
- $jquery ='<script>';
128
-
129
- $jquery .= 'jQuery(".sfsi_widget").each(function( index ) {
130
- if(jQuery(this).attr("data-position") == "widget")
131
- {
132
- var wdgt_hght = jQuery(this).children(".norm_row.sfsi_wDiv").height();
133
- var title_hght = jQuery(this).parent(".widget.sfsi").children(".widget-title").height();
134
- var totl_hght = parseInt( title_hght ) + parseInt( wdgt_hght );
135
- jQuery(this).parent(".widget.sfsi").css("min-height", totl_hght+"px");
136
- }
137
- });';
138
-
139
- /* check if icons shuffling is activated in admin or not */
140
- if($sfsi_section5['sfsi_icons_stick']=="yes")
141
- {
142
- if(is_admin_bar_showing())
143
- {
144
- $Ictop = "30px";
145
- }
146
- else
147
- {
148
- $Ictop = "0";
149
- }
150
-
151
- $jquery.='var s = jQuery(".sfsi_widget");
152
- var pos = s.position();
153
- jQuery(window).scroll(function(){
154
- sfsi_stick_widget("'.$Ictop.'");
155
- }); ';
156
- }
157
-
158
- /* check if icons floating is activated in admin */
159
- if($sfsi_section9['sfsi_icons_float']=="yes")
160
- {
161
- $top = "15";
162
- switch($sfsi_section9['sfsi_icons_floatPosition'])
163
- {
164
- case "top-left" : if(is_admin_bar_showing()) : $position.="position:absolute;left:30px;top:35px;"; $top="35"; else : $position.="position:absolute;left:10px;top:2%"; $top="10"; endif;
165
- break;
166
- case "top-right" : if(is_admin_bar_showing()) : $position.="position:absolute;right:30px;top:35px;"; $top="35"; else : $position.="position:absolute;right:10px;top:2%"; $top="10"; endif;
167
- break;
168
- case "center-right" : $position.="position:absolute;right:30px;top:50%"; $top="center";
169
- break;
170
- case "center-left" : $position.="position:absolute;left:30px;top:50%"; $top="center";
171
- break;
172
- case "center-top" :
173
- if(is_admin_bar_showing())
174
- {
175
- $position .= "left:50%;top:35px;"; $top="35";
176
- }
177
- else
178
- {
179
- $position .= "left:50%;top:10px;"; $top="10";
180
- }
181
- break;
182
- case "center-bottom" :
183
- $position .= "left:50%;bottom:0px"; $top="bottom";
184
- break;
185
-
186
- case "bottom-right" : $position.="position:absolute;right:30px;bottom:0px"; $top="bottom";
187
- break;
188
- case "bottom-left" : $position.="position:absolute;left:30px;bottom:0px"; $top="bottom";
189
- break;
190
- }
191
- //$jquery.="jQuery( document ).ready(function( $ ) { sfsi_float_widget('".$top."')});";
192
- if($sfsi_section9['sfsi_icons_floatPosition'] == 'center-right' || $sfsi_section9['sfsi_icons_floatPosition'] == 'center-left')
193
- {
194
- $jquery.="jQuery( document ).ready(function( $ )
195
- {
196
- var topalign = ( jQuery(window).height() - jQuery('#sfsi_floater').height() ) / 2;
197
- jQuery('#sfsi_floater').css('top',topalign);
198
- sfsi_float_widget('".$top."');
199
- });";
200
- }
201
- else if($sfsi_section9['sfsi_icons_floatPosition'] == 'center-top' || $sfsi_section9['sfsi_icons_floatPosition'] == 'center-bottom'){
202
-
203
- $jquery.="jQuery(document).ready(function( $ )
204
- {
205
- var leftalign = ( jQuery(window).width() - jQuery('#sfsi_floater').width() ) / 2;
206
- jQuery('#sfsi_floater').css('left',leftalign);
207
- sfsi_float_widget('".$top."');
208
- });";
209
- }
210
- else
211
- {
212
- $jquery.="jQuery( document ).ready(function( $ ) { sfsi_float_widget('".$top."')});";
213
- }
214
- }
215
-
216
- $extra=0;
217
- if($sfsi_section3['sfsi_shuffle_icons']=="yes")
218
- {
219
- if($sfsi_section3['sfsi_shuffle_Firstload']=="yes" && $sfsi_section3['sfsi_shuffle_interval']=="yes")
220
- {
221
- $shuffle_time=(isset($sfsi_section3['sfsi_shuffle_intervalTime'])) ? $sfsi_section3['sfsi_shuffle_intervalTime'] : 3;
222
- $shuffle_time=$shuffle_time*1000;
223
- $jquery.="jQuery( document ).ready(function( $ ) { jQuery('.sfsi_wDiv').each(function(){ new window.Manipulator( jQuery(this)); }); setTimeout(function(){ jQuery('#sfsi_wDiv').each(function(){ jQuery(this).click(); })},2000); setInterval(function(){ jQuery('#sfsi_wDiv').each(function(){ jQuery(this).click(); })},".$shuffle_time."); });";
224
- }
225
- else if($sfsi_section3['sfsi_shuffle_Firstload']=="no" && $sfsi_section3['sfsi_shuffle_interval']=="yes")
226
- {
227
- $shuffle_time=(isset($sfsi_section3['sfsi_shuffle_intervalTime'])) ? $sfsi_section3['sfsi_shuffle_intervalTime'] : 3;
228
- $shuffle_time=$shuffle_time*1000;
229
- $jquery.="jQuery( document ).ready(function( $ ) { jQuery('.sfsi_wDiv').each(function(){ new window.Manipulator( jQuery(this)); }); setInterval(function(){ jQuery('#sfsi_wDiv').each(function(){ jQuery(this).click(); })},".$shuffle_time."); });";
230
- }
231
- else
232
- {
233
- $jquery.="jQuery( document ).ready(function( $ ) { jQuery('.sfsi_wDiv').each(function(){ new window.Manipulator( jQuery(this)); }); setTimeout(function(){ jQuery('#sfsi_wDiv').each(function(){ jQuery(this).click(); })},2000); });";
234
- }
235
- }
236
-
237
- /* magnage the icons in saved order in admin */
238
- $custom_icons_order = unserialize($sfsi_section5['sfsi_CustomIcons_order']);
239
- $icons = unserialize($sfsi_section1_options['sfsi_custom_files']);
240
- if(!isset($sfsi_section5['sfsi_telegramIcon_order'])){
241
- $sfsi_section5['sfsi_telegramIcon_order'] = '11';
242
- }
243
- if(!isset($sfsi_section5['sfsi_vkIcon_order'])){
244
- $sfsi_section5['sfsi_vkIcon_order'] = '12';
245
- }
246
- if(!isset($sfsi_section5['sfsi_okIcon_order'])){
247
- $sfsi_section5['sfsi_okIcon_order'] = '13';
248
- }
249
- if(!isset($sfsi_section5['sfsi_weiboIcon_order'])){
250
- $sfsi_section5['sfsi_weiboIcon_order'] = '14';
251
- }
252
- if(!isset($sfsi_section5['sfsi_wechatIcon_order'])){
253
- $sfsi_section5['sfsi_wechatIcon_order'] = '15';
254
- }
255
- $icons_order = array(
256
- '0' => '',
257
- $sfsi_section5['sfsi_rssIcon_order']=>'rss',
258
- $sfsi_section5['sfsi_emailIcon_order']=>'email',
259
- $sfsi_section5['sfsi_facebookIcon_order']=>'facebook',
260
- $sfsi_section5['sfsi_twitterIcon_order']=>'twitter',
261
- $sfsi_section5['sfsi_youtubeIcon_order']=>'youtube',
262
- $sfsi_section5['sfsi_pinterestIcon_order']=>'pinterest',
263
- $sfsi_section5['sfsi_linkedinIcon_order']=>'linkedin',
264
- $sfsi_section5['sfsi_instagramIcon_order']=>'instagram',
265
- $sfsi_section5['sfsi_telegramIcon_order']=>'telegram',
266
- $sfsi_section5['sfsi_vkIcon_order']=>'vk',
267
- $sfsi_section5['sfsi_okIcon_order']=>'ok',
268
- $sfsi_section5['sfsi_weiboIcon_order']=>'weibo',
269
- $sfsi_section5['sfsi_wechatIcon_order']=>'wechat',
270
- ) ;
271
- if(is_array($custom_icons_order) )
272
- {
273
- foreach($custom_icons_order as $data)
274
- {
275
- $icons_order[$data['order']] = $data;
276
- }
277
- }
278
- ksort($icons_order);
279
-
280
- /* calculate the total width of widget according to icons */
281
- if(!empty($icons_per_row))
282
- {
283
- $width = ((int)$icons_space+(int)$icons_size)*(int)$icons_per_row;
284
- $main_width = $width = $width+$extra;
285
- $main_width = $main_width."px";
286
- }
287
- else
288
- {
289
- $width = ((int)$icons_space+(int)$icons_size);
290
- $main_width = "35%";
291
- }
292
-
293
- /* built the main widget div */
294
- $icons_main = '<div class="norm_row sfsi_wDiv" style="width:'.$main_width.';text-align:'.$icons_alignment.';'.$position1.'">';
295
- $icons = "";
296
- /* loop through icons and bulit the icons with all settings applied in admin */
297
- foreach($icons_order as $index => $icn) :
298
- if(is_array($icn)) { $icon_arry=$icn; $icn="custom" ; }
299
- switch ($icn) :
300
- case 'rss' : if($sfsi_section1_options['sfsi_rss_display']=='yes') $icons.= sfsi_prepairIcons('rss');
301
- break;
302
- case 'email' : if($sfsi_section1_options['sfsi_email_display']=='yes') $icons.= sfsi_prepairIcons('email');
303
- break;
304
- case 'facebook' : if($sfsi_section1_options['sfsi_facebook_display']=='yes') $icons.= sfsi_prepairIcons('facebook');
305
- break;
306
- case 'twitter' : if($sfsi_section1_options['sfsi_twitter_display']=='yes') $icons.= sfsi_prepairIcons('twitter');
307
- break;
308
- case 'youtube' : if($sfsi_section1_options['sfsi_youtube_display']=='yes') $icons.= sfsi_prepairIcons('youtube');
309
- break;
310
- case 'pinterest' : if($sfsi_section1_options['sfsi_pinterest_display']=='yes') $icons.= sfsi_prepairIcons('pinterest');
311
- break;
312
- case 'linkedin' : if($sfsi_section1_options['sfsi_linkedin_display']=='yes') $icons.= sfsi_prepairIcons('linkedin');
313
- break;
314
- case 'instagram' : if($sfsi_section1_options['sfsi_instagram_display']=='yes') $icons.= sfsi_prepairIcons('instagram');
315
- break;
316
- case 'telegram' : if($sfsi_section1_options['sfsi_telegram_display']=='yes') $icons.= sfsi_prepairIcons('telegram');
317
- break;
318
- case 'vk' : if($sfsi_section1_options['sfsi_vk_display']=='yes') $icons.= sfsi_prepairIcons('vk');
319
- break;
320
- case 'ok' : if($sfsi_section1_options['sfsi_ok_display']=='yes') $icons.= sfsi_prepairIcons('ok');
321
- break;
322
- case 'weibo' : if($sfsi_section1_options['sfsi_weibo_display']=='yes') $icons.= sfsi_prepairIcons('weibo');
323
- break;
324
- case 'wechat' : if($sfsi_section1_options['sfsi_wechat_display']=='yes') $icons.= sfsi_prepairIcons('wechat');
325
- break;
326
- case 'custom' : $icons.= sfsi_prepairIcons($icon_arry['ele']);
327
- break;
328
- endswitch;
329
- endforeach;
330
-
331
- $jquery.="</script>";
332
- $icons.='</div >';
333
-
334
- $margin = $width+11;
335
-
336
- $icons_main.=$icons.'<div id="sfsi_holder" class="sfsi_holders" style="position: relative; float: left;width:100%;z-index:-1;"></div >'.$jquery;
337
- /* if floating of icons is active create a floater div */
338
- $icons_float='';
339
-
340
- if($sfsi_section9['sfsi_icons_float']=="yes" && $isFloter==1)
341
- {
342
- if($sfsi_section9['sfsi_icons_floatPosition'] == "top-left")
343
- {
344
- $styleMargin = "margin-top:".$sfsi_section9['sfsi_icons_floatMargin_top']."px;margin-left:".$sfsi_section9['sfsi_icons_floatMargin_left']."px;";
345
- }
346
- elseif($sfsi_section9['sfsi_icons_floatPosition'] == "top-right")
347
- {
348
- $styleMargin = "margin-top:".$sfsi_section9['sfsi_icons_floatMargin_top']."px;margin-right:".$sfsi_section9['sfsi_icons_floatMargin_right']."px;";
349
- }
350
- elseif($sfsi_section9['sfsi_icons_floatPosition'] == "center-left")
351
- {
352
- $styleMargin = "margin-left:".$sfsi_section9['sfsi_icons_floatMargin_left']."px;";
353
- }
354
- elseif($sfsi_section9['sfsi_icons_floatPosition'] == "center-right")
355
- {
356
- $styleMargin = "margin-right:".$sfsi_section9['sfsi_icons_floatMargin_right']."px;";
357
- }
358
- elseif($sfsi_section9['sfsi_icons_floatPosition'] == "bottom-left")
359
- {
360
- $styleMargin = "margin-bottom:".$sfsi_section9['sfsi_icons_floatMargin_bottom']."px;margin-left:".$sfsi_section9['sfsi_icons_floatMargin_left']."px;";
361
- }
362
- elseif($sfsi_section9['sfsi_icons_floatPosition'] == "bottom-right")
363
- {
364
- $styleMargin = "margin-bottom:".$sfsi_section9['sfsi_icons_floatMargin_bottom']."px;margin-right:".$sfsi_section9['sfsi_icons_floatMargin_right']."px;";
365
- }
366
-
367
- $icons_float = isset($styleMargin) && !empty($styleMargin) ? '<style type="text/css">#sfsi_floater { '.$styleMargin.' }</style>' : '';
368
- $icons_float .= '<div class="norm_row sfsi_wDiv" id="sfsi_floater" style="z-index: 9999;width:'.$width.'px;text-align:'.$icons_alignment.';'.$position.'">';
369
- $icons_float .= $icons;
370
- $icons_float .= "<input type='hidden' id='sfsi_floater_sec' value='".$sfsi_section9['sfsi_icons_floatPosition']."' />";
371
- $icons_float.="</div>".$jquery;
372
- return $icons_float; exit;
373
- }
374
- $icons_data=$icons_main.$icons_float;
375
- return $icons_data;
376
- }
377
-
378
- /* make all icons with saved settings in admin */
379
- function sfsi_prepairIcons($icon_name,$is_front=0)
380
- {
381
- global $wpdb; global $socialObj;
382
- $mouse_hover_effect = '';
383
- $active_theme = 'official';
384
- $sfsi_shuffle_Firstload = 'no';
385
- $sfsi_display_counts = "no";
386
- $icon = '';
387
- $url = '';
388
- $alt_text = '';
389
- $new_window = '';
390
- $class = '';
391
-
392
- /* access all saved settings in admin */
393
- $sfsi_section1_options = unserialize(get_option('sfsi_section1_options',false));
394
- $sfsi_section2_options = unserialize(get_option('sfsi_section2_options',false));
395
- $sfsi_section3_options = unserialize(get_option('sfsi_section3_options',false));
396
- $sfsi_section4_options = unserialize(get_option('sfsi_section4_options',false));
397
- $sfsi_section5_options = unserialize(get_option('sfsi_section5_options',false));
398
- $sfsi_section6_options = unserialize(get_option('sfsi_section6_options',false));
399
- $sfsi_section7_options = unserialize(get_option('sfsi_section7_options',false));
400
- /* get active theme */
401
- $border_radius='';
402
- $active_theme = $sfsi_section3_options['sfsi_actvite_theme'];
403
- if(!isset($sfsi_section2_options['sfsi_wechatShare_option'])){
404
- $sfsi_section2_options['sfsi_wechatShare_option']="yes";
405
- }
406
- /* shuffle effect */
407
- if($sfsi_section3_options['sfsi_shuffle_icons']=='yes')
408
- {
409
- $sfsi_shuffle_Firstload=$sfsi_section3_options["sfsi_shuffle_Firstload"];
410
- if($sfsi_section3_options["sfsi_shuffle_interval"]=="yes")
411
- {
412
- $sfsi_shuffle_interval = $sfsi_section3_options["sfsi_shuffle_intervalTime"];
413
- }
414
- }
415
-
416
- /* define the main url for icon access */
417
- $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/".$active_theme."/";
418
- $visit_iconsUrl = SFSI_PLUGURL."images/visit_icons/";
419
- $hoverSHow = 0;
420
-
421
- /* check is icon is a custom icon or default icon */
422
- if(is_numeric($icon_name)) { $icon_n=$icon_name; $icon_name="custom" ; }
423
- $counts = '';
424
- $twit_tolCls = "";
425
- $twt_margin = "";
426
- $icons_space = $sfsi_section5_options['sfsi_icons_spacing'];
427
- $padding_top = '';
428
-
429
- // $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http";
430
- // $current_url = $scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
431
-
432
- $current_url = sfsi_get_current_page_url();
433
-
434
- $url = "#";
435
- $cmcls = '';
436
- $toolClass = '';
437
-
438
- $socialObj = new sfsi_SocialHelper(); /* global object to access 3rd party icon's actions */
439
-
440
- switch($icon_name)
441
- {
442
- case "rss" :
443
-
444
- $url = isset($sfsi_section2_options['sfsi_rss_url']) && !empty($sfsi_section2_options['sfsi_rss_url'])? $sfsi_section2_options['sfsi_rss_url'] : '';
445
-
446
- $toolClass = "rss_tool_bdr";
447
- $hoverdiv = '';
448
- $arrow_class = "bot_rss_arow";
449
-
450
- /* fecth no of counts if active in admin section */
451
- if($sfsi_section4_options['sfsi_rss_countsDisplay']=="yes" && $sfsi_section4_options['sfsi_display_counts']=="yes")
452
- {
453
- $counts = $socialObj->format_num($sfsi_section4_options['sfsi_rss_manualCounts']);
454
- }
455
-
456
- if(!empty($sfsi_section5_options['sfsi_rss_MouseOverText']))
457
- {
458
- $alt_text = $sfsi_section5_options['sfsi_rss_MouseOverText'];
459
- }
460
- else
461
- {
462
- $alt_text = 'RSS';
463
- }
464
-
465
- //Custom Skin Support {Monad}
466
- if($active_theme == 'custom_support')
467
- {
468
- if(get_option("rss_skin"))
469
- {
470
- $icon = get_option("rss_skin");
471
- }
472
- else
473
- {
474
- $active_theme = 'default';
475
- $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
476
- $icon=$icons_baseUrl.$active_theme."_rss.png";
477
- }
478
- }
479
- else
480
- {
481
- $icon=$icons_baseUrl.$active_theme."_rss.png";
482
- }
483
- break;
484
-
485
- case "email" :
486
-
487
- $hoverdiv = '';
488
-
489
- $sfsi_section2_options['sfsi_email_url'];
490
- if( sanitize_text_field(get_option('sfsi_feed_id', false)) == ""){
491
- $url = "https://specificfeeds.com/follow";
492
- }else{
493
-
494
- $url = (isset($sfsi_section2_options['sfsi_email_url'])) ? $sfsi_section2_options['sfsi_email_url'] : '';
495
- }
496
- $toolClass = "email_tool_bdr";
497
- $arrow_class = "bot_eamil_arow";
498
-
499
- /* fecth no of counts if active in admin section */
500
- if(
501
- $sfsi_section4_options['sfsi_email_countsDisplay']=="yes" &&
502
- $sfsi_section4_options['sfsi_display_counts']=="yes"
503
- )
504
- {
505
- if($sfsi_section4_options['sfsi_email_countsFrom']=="manual")
506
- {
507
- $counts=$socialObj->format_num($sfsi_section4_options['sfsi_email_manualCounts']);
508
- }
509
- else
510
- {
511
- $counts = $socialObj->SFSI_getFeedSubscriber(sanitize_text_field(get_option('sfsi_feed_id',false)));
512
- }
513
- }
514
-
515
- if(!empty($sfsi_section5_options['sfsi_email_MouseOverText']))
516
- {
517
- $alt_text = $sfsi_section5_options['sfsi_email_MouseOverText'];
518
- }
519
- else
520
- {
521
- $alt_text = 'EMAIL';
522
- }
523
-
524
- //Custom Skin Support {Monad}
525
- if($active_theme == 'custom_support')
526
- {
527
- if(get_option("email_skin"))
528
- {
529
- $icon = get_option("email_skin");
530
- }
531
- else
532
- {
533
- $active_theme = 'default';
534
- $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
535
- //$icon=($sfsi_section2_options['sfsi_rss_icons']=="sfsi") ? $icons_baseUrl.$active_theme."_sf.png" : $icons_baseUrl.$active_theme."_email.png";
536
- if($sfsi_section2_options['sfsi_rss_icons']=="sfsi")
537
- {
538
- $icon = $icons_baseUrl.$active_theme."_sf.png";
539
- }
540
- elseif($sfsi_section2_options['sfsi_rss_icons']=="email")
541
- {
542
- $icon = $icons_baseUrl.$active_theme."_email.png";
543
- }
544
- else
545
- {
546
- $icon = $icons_baseUrl.$active_theme."_subscribe.png";
547
- }
548
- }
549
- }
550
- else
551
- {
552
-
553
- $rss_icons = isset($sfsi_section2_options['sfsi_rss_icons']) && !empty($sfsi_section2_options['sfsi_rss_icons']) ? $sfsi_section2_options['sfsi_rss_icons'] : false;
554
-
555
- switch ($rss_icons) {
556
-
557
- case 'email':
558
- $image = "_email.png";
559
- break;
560
-
561
- case 'subscribe':
562
- $image = "_subscribe.png";
563
- break;
564
-
565
- case 'sfsi':
566
- $image = "_sf.png";
567
- break;
568
-
569
- default:
570
- $image = "_subscribe.png";
571
- break;
572
- }
573
-
574
- $icon = $icons_baseUrl.$active_theme.$image;
575
- }
576
- break;
577
-
578
- case "facebook" :
579
-
580
- $width = 62;
581
- $totwith = $width+28+$icons_space;
582
- $twt_margin = $totwith/2;
583
- $toolClass = "fb_tool_bdr";
584
- $arrow_class = "bot_fb_arow";
585
-
586
- /* check for the over section */
587
- if(!empty($sfsi_section5_options['sfsi_facebook_MouseOverText']))
588
- {
589
- $alt_text = $sfsi_section5_options['sfsi_facebook_MouseOverText'];
590
- }
591
- else
592
- {
593
- $alt_text = "FACEBOOK";
594
- }
595
-
596
- $visit_icon = $visit_iconsUrl."facebook.png";
597
-
598
- $url = isset($sfsi_section2_options['sfsi_facebookPage_url']) && !empty($sfsi_section2_options['sfsi_facebookPage_url']) ? $sfsi_section2_options['sfsi_facebookPage_url'] : false;
599
-
600
- $url = false != $url ? $sfsi_section2_options['sfsi_facebookPage_url']:'';
601
-
602
- $like_option = isset($sfsi_section2_options['sfsi_facebookLike_option']) && !empty($sfsi_section2_options['sfsi_facebookLike_option']) ? $sfsi_section2_options['sfsi_facebookLike_option'] : false;
603
-
604
- $page_option = isset($sfsi_section2_options['sfsi_facebookPage_option']) && !empty($sfsi_section2_options['sfsi_facebookPage_option']) ? $sfsi_section2_options['sfsi_facebookPage_option'] : false;
605
-
606
- $share_option = isset($sfsi_section2_options['sfsi_facebookShare_option']) && !empty($sfsi_section2_options['sfsi_facebookShare_option']) ? $sfsi_section2_options['sfsi_facebookShare_option'] : false;
607
-
608
- if((false != $like_option && $like_option=="yes") || (false != $share_option && $share_option=="yes"))
609
- {
610
- $url=($sfsi_section2_options['sfsi_facebookPage_url']) ? $sfsi_section2_options['sfsi_facebookPage_url']:'';
611
- $hoverSHow = 1;
612
- $hoverdiv = '';
613
-
614
- if(false != $page_option && $page_option=="yes")
615
- {
616
- $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img data-pin-nopin='true' alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
617
- }
618
- if(false!= $like_option && $like_option=="yes")
619
- {
620
- $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_FBlike($current_url)."</div>";
621
- }
622
- if(false!= $share_option && $share_option=="yes")
623
- {
624
- $hoverdiv.="<div class='icon3'>".$socialObj->sfsiFB_Share($current_url)."</div>";
625
- }
626
-
627
- }
628
-
629
- /* fecth no of counts if active in admin section */
630
- if(
631
- $sfsi_section4_options['sfsi_facebook_countsDisplay']=="yes" &&
632
- $sfsi_section4_options['sfsi_display_counts']=="yes"
633
- )
634
- {
635
- if($sfsi_section4_options['sfsi_facebook_countsFrom']=="manual")
636
- {
637
- $counts=$socialObj->format_num($sfsi_section4_options['sfsi_facebook_manualCounts']);
638
- }
639
- else if($sfsi_section4_options['sfsi_facebook_countsFrom']=="likes")
640
- {
641
- $fb_data=$socialObj->sfsi_get_fb($current_url);
642
- $counts=$socialObj->format_num($fb_data['like_count']);
643
- if(empty($counts))
644
- {
645
- $counts=(string) "0";
646
- }
647
- }
648
- else if($sfsi_section4_options['sfsi_facebook_countsFrom']=="followers")
649
- {
650
- $fb_data=$socialObj->sfsi_get_fb($current_url);
651
- $counts=$socialObj->format_num($fb_data['share_count']);
652
-
653
- }
654
- else if($sfsi_section4_options['sfsi_facebook_countsFrom']=="mypage")
655
- {
656
- $current_url = $sfsi_section4_options['sfsi_facebook_mypageCounts'];
657
- $fb_data=$socialObj->sfsi_get_fb_pagelike($current_url);
658
- $counts=$socialObj->format_num($fb_data);
659
- }
660
- }
661
-
662
- //Custom Skin Support {Monad}
663
- if($active_theme == 'custom_support')
664
- {
665
- if(get_option("facebook_skin"))
666
- {
667
- $icon = get_option("facebook_skin");
668
- }
669
- else
670
- {
671
- $active_theme = 'default';
672
- $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
673
- $icon=$icons_baseUrl.$active_theme."_facebook.png";
674
- }
675
- }
676
- else
677
- {
678
- $icon=$icons_baseUrl.$active_theme."_facebook.png";
679
- }
680
- break;
681
- case "twitter" :
682
- $toolClass = "twt_tool_bdr";
683
- $arrow_class = "bot_twt_arow";
684
-
685
- $url = isset($sfsi_section2_options['sfsi_twitter_pageURL']) && !empty($sfsi_section2_options['sfsi_twitter_pageURL']) ? $sfsi_section2_options['sfsi_twitter_pageURL'] : '';
686
-
687
- $twitter_user = isset($sfsi_section2_options['sfsi_twitter_followUserName']) && !empty($sfsi_section2_options['sfsi_twitter_followUserName']) ? $sfsi_section2_options['sfsi_twitter_followUserName'] : false;
688
-
689
- $twitter_text = isset($sfsi_section2_options['sfsi_twitter_aboutPageText']) && !empty($sfsi_section2_options['sfsi_twitter_aboutPageText']) ? $sfsi_section2_options['sfsi_twitter_aboutPageText'] : false;
690
-
691
- $visit_icon = $visit_iconsUrl."twitter.png";
692
-
693
- $width = 59;
694
- $totwith = $width+28+$icons_space;
695
- $twt_margin = $totwith/2;
696
- /* check for icons to display */
697
- $hoverdiv='';
698
-
699
- $follow_me = isset($sfsi_section2_options['sfsi_twitter_followme']) && !empty($sfsi_section2_options['sfsi_twitter_followme']) ? $sfsi_section2_options['sfsi_twitter_followme'] : false;
700
-
701
- $about_page = isset($sfsi_section2_options['sfsi_twitter_aboutPage']) && !empty($sfsi_section2_options['sfsi_twitter_aboutPage']) ? $sfsi_section2_options['sfsi_twitter_aboutPage'] : false;
702
-
703
- if($follow_me=="yes" ||$about_page=="yes")
704
- {
705
- $hoverSHow=1;
706
- //Visit twitter page {Monad}
707
- if(isset($sfsi_section2_options['sfsi_twitter_page']) && !empty($sfsi_section2_options['sfsi_twitter_page']) && $sfsi_section2_options['sfsi_twitter_page']=="yes")
708
- {
709
- $hoverdiv.="<div class='cstmicon1'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img data-pin-nopin='true' alt='Visit Us' title='Visit Us' src='".$visit_icon."' /></a></div>";
710
- }
711
- if($follow_me=="yes" && !empty($twitter_user))
712
- {
713
- $hoverdiv.="<div class='icon1'>".$socialObj->sfsi_twitterFollow($twitter_user)."</div>";
714
- }
715
- if($about_page=="yes")
716
- {
717
- $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_twitterShare($current_url,$twitter_text)."</div>";
718
- }
719
-
720
- }
721
-
722
- /* fecth no of counts if active in admin section */
723
- if(
724
- $sfsi_section4_options['sfsi_twitter_countsDisplay']=="yes" &&
725
- $sfsi_section4_options['sfsi_display_counts']=="yes"
726
- )
727
- {
728
- if($sfsi_section4_options['sfsi_twitter_countsFrom']=="manual")
729
- {
730
- $counts = $socialObj->format_num($sfsi_section4_options['sfsi_twitter_manualCounts']);
731
- }
732
- else if($sfsi_section4_options['sfsi_twitter_countsFrom']=="source")
733
- {
734
- $tw_settings = array('tw_consumer_key'=>$sfsi_section4_options['tw_consumer_key'],
735
- 'tw_consumer_secret'=> $sfsi_section4_options['tw_consumer_secret'],
736
- 'tw_oauth_access_token'=> $sfsi_section4_options['tw_oauth_access_token'],
737
- 'tw_oauth_access_token_secret'=> $sfsi_section4_options['tw_oauth_access_token_secret']);
738
-
739
- $followers = $socialObj->sfsi_get_tweets($twitter_user,$tw_settings);
740
- $counts = $socialObj->format_num($followers);
741
- if(empty($counts))
742
- {
743
- $counts=(string) "0";
744
- }
745
- }
746
- }
747
-
748
- //Giving alternative text to image
749
- if(!empty($sfsi_section5_options['sfsi_twitter_MouseOverText']))
750
- {
751
- $alt_text = $sfsi_section5_options['sfsi_twitter_MouseOverText'];
752
- }
753
- else
754
- {
755
- $alt_text = "TWITTER";
756
- }
757
-
758
- //Custom Skin Support {Monad}
759
- if($active_theme == 'custom_support')
760
- {
761
- if(get_option("twitter_skin"))
762
- {
763
- $icon = get_option("twitter_skin");
764
- }
765
- else
766
- {
767
- $active_theme = 'default';
768
- $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
769
- $icon=$icons_baseUrl.$active_theme."_twitter.png";
770
- }
771
- }
772
- else
773
- {
774
- $icon=$icons_baseUrl.$active_theme."_twitter.png";
775
- }
776
- break;
777
-
778
- case "youtube" :
779
- $toolClass = "utube_tool_bdr";
780
- $arrow_class = "bot_utube_arow";
781
- $width = 96;
782
- $totwith = $width+28+$icons_space;
783
- $twt_margin = $totwith/2;
784
- $youtube_user = (isset($sfsi_section4_options['sfsi_youtube_user']) && !empty($sfsi_section4_options['sfsi_youtube_user'])) ? $sfsi_section4_options['sfsi_youtube_user'] : 'SpecificFeeds';
785
- $visit_icon = $visit_iconsUrl."youtube.png";
786
-
787
- $url = isset($sfsi_section2_options['sfsi_youtube_pageUrl']) && !empty($sfsi_section2_options['sfsi_youtube_pageUrl']) ? $sfsi_section2_options['sfsi_youtube_pageUrl'] : '';
788
-
789
- //Giving alternative text to image
790
- if(!empty($sfsi_section5_options['sfsi_youtube_MouseOverText']))
791
- {
792
- $alt_text = $sfsi_section5_options['sfsi_youtube_MouseOverText'];
793
- }
794
- else
795
- {
796
- $alt_text = "YOUTUBE";
797
- }
798
-
799
- /* check for icons to display */
800
- $hoverdiv="";
801
-
802
- $follow = isset($sfsi_section2_options['sfsi_youtube_follow']) && !empty($sfsi_section2_options['sfsi_youtube_follow']) ? $sfsi_section2_options['sfsi_youtube_follow'] : false;
803
-
804
- $ypage = isset($sfsi_section2_options['sfsi_youtube_page']) && !empty($sfsi_section2_options['sfsi_youtube_page']) ? $sfsi_section2_options['sfsi_youtube_page'] : false;
805
-
806
- if(false != $follow && $follow=="yes")
807
- {
808
- $hoverSHow = 1;
809
-
810
- if($ypage =="yes")
811
- {
812
- $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img data-pin-nopin='true' alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
813
- }
814
- if($follow =="yes")
815
- {
816
- $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_YouTubeSub($youtube_user)."</div>";
817
- }
818
- }
819
-
820
- /* fecth no of counts if active in admin section */
821
- if(
822
- $sfsi_section4_options['sfsi_youtube_countsDisplay']=="yes" &&
823
- $sfsi_section4_options['sfsi_display_counts']=="yes"
824
- )
825
- {
826
- if($sfsi_section4_options['sfsi_youtube_countsFrom']=="manual")
827
- {
828
- $counts = $socialObj->format_num($sfsi_section4_options['sfsi_youtube_manualCounts']);
829
- }
830
- else if($sfsi_section4_options['sfsi_youtube_countsFrom']=="subscriber")
831
- {
832
- $followers = $socialObj->sfsi_get_youtube($youtube_user);
833
- $counts = $socialObj->format_num($followers);
834
- if(empty($counts))
835
- {
836
- $counts = (string) "0";
837
- }
838
- }
839
- }
840
-
841
- //Custom Skin Support {Monad}
842
- if($active_theme == 'custom_support')
843
- {
844
- if(get_option("youtube_skin"))
845
- {
846
- $icon = get_option("youtube_skin");
847
- }
848
- else
849
- {
850
- $active_theme = 'default';
851
- $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
852
- $icon=$icons_baseUrl.$active_theme."_youtube.png";
853
- }
854
- }
855
- else
856
- {
857
- $icon=$icons_baseUrl.$active_theme."_youtube.png";
858
- }
859
- break;
860
-
861
- case "pinterest" :
862
-
863
- $width = 73;
864
- $totwith = $width+28+$icons_space;
865
- $twt_margin = $totwith/2;
866
- $toolClass = "printst_tool_bdr";
867
- $arrow_class = "bot_pintst_arow";
868
-
869
- $pinterest_user = (isset($sfsi_section4_options['sfsi_pinterest_user']))
870
- ? $sfsi_section4_options['sfsi_pinterest_user'] : '';
871
- $pinterest_board = (isset($sfsi_section4_options['sfsi_pinterest_board']))
872
- ? $sfsi_section4_options['sfsi_pinterest_board'] : '';
873
-
874
- $visit_icon = $visit_iconsUrl."pinterest.png";
875
- $url = (isset($sfsi_section2_options['sfsi_pinterest_pageUrl'])) ? $sfsi_section2_options['sfsi_pinterest_pageUrl'] : '';
876
-
877
- //Giving alternative text to image
878
- if(isset($sfsi_section5_options['sfsi_pinterest_MouseOverText']) && !empty($sfsi_section5_options['sfsi_pinterest_MouseOverText']))
879
- {
880
- $alt_text = $sfsi_section5_options['sfsi_pinterest_MouseOverText'];
881
- }
882
- else
883
- {
884
- $alt_text = "PINTEREST";
885
- }
886
-
887
- /* check for icons to display */
888
- $hoverdiv="";
889
-
890
- $pingblog = isset($sfsi_section2_options['sfsi_pinterest_pingBlog']) && !empty($sfsi_section2_options['sfsi_pinterest_pingBlog']) ? $sfsi_section2_options['sfsi_pinterest_pingBlog'] : false;
891
-
892
- $page = isset($sfsi_section2_options['sfsi_pinterest_page']) && !empty($sfsi_section2_options['sfsi_pinterest_page']) ? $sfsi_section2_options['sfsi_pinterest_page'] : false;
893
-
894
- $cDisplay = isset($sfsi_section4_options['sfsi_pinterest_countsDisplay']) && !empty($sfsi_section4_options['sfsi_pinterest_countsDisplay']) ? $sfsi_section4_options['sfsi_pinterest_countsDisplay'] : false;
895
-
896
- $displayC = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts'] : false;
897
-
898
- $cFrom = isset($sfsi_section4_options['sfsi_pinterest_countsFrom']) && !empty($sfsi_section4_options['sfsi_pinterest_countsFrom']) ? $sfsi_section4_options['sfsi_pinterest_countsFrom'] : false;
899
- // var_dump($sfsi_section4_options['sfsi_pinterest_countsFrom'],$cFrom);die();
900
-
901
- if($pingblog=="yes" )
902
- {
903
- $hoverSHow = 1;
904
-
905
- if($page =="yes")
906
- {
907
- $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img data-pin-nopin='true' alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
908
- }
909
- if($pingblog=="yes")
910
- {
911
- $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_PinIt($current_url)."</div>";
912
- }
913
- }
914
-
915
- /* fecth no of counts if active in admin section */
916
- if($cDisplay == "yes" && $displayC=="yes")
917
- {
918
- if($cFrom=="manual")
919
- {
920
- $counts = $socialObj->format_num($sfsi_section4_options['sfsi_pinterest_manualCounts']);
921
- }
922
- else if($cFrom=="pins")
923
- {
924
- $pins = $socialObj->sfsi_get_pinterest($current_url);
925
- $counts = $pins;
926
- if(empty($counts))
927
- {
928
- $counts=(string) "0";
929
- }
930
- }
931
- }
932
-
933
- //Custom Skin Support {Monad}
934
- if($active_theme == 'custom_support')
935
- {
936
- if(get_option("pintrest_skin"))
937
- {
938
- $icon = get_option("pintrest_skin");
939
- }
940
- else
941
- {
942
- $active_theme = 'default';
943
- $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
944
- $icon = $icons_baseUrl.$active_theme."_pinterest.png";
945
- }
946
- }
947
- else
948
- {
949
- $icon=$icons_baseUrl.$active_theme."_pinterest.png";
950
- }
951
- break;
952
-
953
- case "instagram" :
954
- $toolClass = "instagram_tool_bdr";
955
- $arrow_class = "bot_pintst_arow";
956
-
957
- $url = (isset($sfsi_section2_options['sfsi_instagram_pageUrl'])) ? $sfsi_section2_options['sfsi_instagram_pageUrl'] : '';
958
-
959
- $instagram_user_name = isset($sfsi_section4_options['sfsi_instagram_User']) && !empty($sfsi_section4_options['sfsi_instagram_User']) ? $sfsi_section4_options['sfsi_instagram_User'] : false;
960
-
961
- //Giving alternative text to image
962
- if(isset($sfsi_section5_options['sfsi_instagram_MouseOverText']) && !empty($sfsi_section5_options['sfsi_instagram_MouseOverText']))
963
- {
964
- $alt_text = $sfsi_section5_options['sfsi_instagram_MouseOverText'];
965
- }
966
- else
967
- {
968
- $alt_text = "INSTAGRAM";
969
- }
970
-
971
- $hoverdiv="";
972
-
973
- $cDisplay = isset($sfsi_section4_options['sfsi_instagram_countsDisplay']) && !empty($sfsi_section4_options['sfsi_instagram_countsDisplay']) ? $sfsi_section4_options['sfsi_instagram_countsDisplay']: false;
974
-
975
- $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
976
-
977
- $cFrom = isset($sfsi_section4_options['sfsi_instagram_countsFrom']) && !empty($sfsi_section4_options['sfsi_instagram_countsFrom']) ? $sfsi_section4_options['sfsi_instagram_countsFrom']: false;
978
-
979
- /* fecth no of counts if active in admin section */
980
- if($cDisplay=="yes" && $Displayc=="yes")
981
- {
982
- if($cFrom=="manual")
983
- {
984
- $counts = $socialObj->format_num($sfsi_section4_options['sfsi_instagram_manualCounts']);
985
- }
986
- else if($cFrom=="followers")
987
- {
988
- $counts = $socialObj->sfsi_get_instagramFollowers($instagram_user_name);
989
- if(empty($counts))
990
- {
991
- $counts=(string) "0";
992
- }
993
- }
994
- }
995
-
996
- //Custom Skin Support {Monad}
997
- if($active_theme == 'custom_support')
998
- {
999
- if(get_option("instagram_skin"))
1000
- {
1001
- $icon = get_option("instagram_skin");
1002
- }
1003
- else
1004
- {
1005
- $active_theme = 'default';
1006
- $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1007
- $icon=$icons_baseUrl.$active_theme."_instagram.png";
1008
- }
1009
- }
1010
- else
1011
- {
1012
- $icon=$icons_baseUrl.$active_theme."_instagram.png";
1013
- }
1014
- break;
1015
-
1016
- case "telegram" :
1017
- $toolClass = "telegram_tool_bdr";
1018
- $arrow_class = "bot_pintst_arow";
1019
- $hoverdiv = '';
1020
-
1021
- // $url = (isset($sfsi_section4_options['sfsi_telegram_pageURL'])) ? $sfsi_section4_options['sfsi_telegram_pageURL'] : '';
1022
-
1023
- // $telegram_user_name = isset($sfsi_section4_options['sfsi_telegram_User']) && !empty($sfsi_section4_options['sfsi_telegram_User']) ? $sfsi_section4_options['sfsi_telegram_User'] : false;
1024
-
1025
- //Giving alternative text to image
1026
- if(isset($sfsi_section5_options['sfsi_telegram_MouseOverText']) && !empty($sfsi_section5_options['sfsi_telegram_MouseOverText']))
1027
- {
1028
- $alt_text = $sfsi_section5_options['sfsi_telegram_MouseOverText'];
1029
-
1030
- }
1031
- else
1032
- {
1033
- $alt_text = "telegram";
1034
- }
1035
- $messageus_icon = $visit_iconsUrl.$icon_name."_message.svg";
1036
- $hoverdiv="";
1037
- $cDisplay = isset($sfsi_section4_options['sfsi_telegram_countsDisplay']) && !empty($sfsi_section4_options['sfsi_telegram_countsDisplay']) ? $sfsi_section4_options['sfsi_telegram_countsDisplay']: false;
1038
-
1039
- $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
1040
- /* fecth no of counts if active in admin section */
1041
- if($cDisplay=="yes" && $Displayc=="yes")
1042
- {
1043
-
1044
- $counts = $socialObj->format_num($sfsi_section4_options['sfsi_telegram_manualCounts']);
1045
- }
1046
-
1047
- //Custom Skin Support {Monad}
1048
- if($active_theme == 'custom_support')
1049
- {
1050
- if(get_option("telegram_skin"))
1051
- {
1052
- $icon = get_option("telegram_skin");
1053
- }
1054
- else
1055
- {
1056
- $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1057
- $icon=$icons_baseUrl."default_telegram.png";
1058
- }
1059
- }
1060
- else
1061
- {
1062
- $icon=$icons_baseUrl.$active_theme."_telegram.png";
1063
- }
1064
- if(
1065
- isset($sfsi_section2_options['sfsi_telegram_message']) && !empty($sfsi_section2_options['sfsi_telegram_message'])
1066
- &&
1067
- isset($sfsi_section2_options['sfsi_telegram_username']) && !empty($sfsi_section2_options['sfsi_telegram_username'])
1068
-
1069
- ){
1070
- $tg_username = $sfsi_section2_options['sfsi_telegram_username'];
1071
- $tg_msg = stripslashes($sfsi_section2_options['sfsi_telegram_message']);
1072
- $tg_msg = str_replace('"', '', str_replace("'", '', $tg_msg));
1073
- $tg_msg = html_entity_decode(strip_tags($tg_msg), ENT_QUOTES,'UTF-8');
1074
- $tg_msg = str_replace("%26%238230%3B", "...", $tg_msg);
1075
- $tg_msg = rawurlencode($tg_msg);
1076
-
1077
- $tele_url = "https://t.me/".$tg_username;
1078
- $url = $tele_url."?&text=".urlencode($tg_msg);
1079
- // var_dump($url);
1080
- // die();
1081
- // file_get_contents($url);
1082
- }else{
1083
- $url="#";
1084
- $sfsi_onclick="event.preventDefault();";
1085
- }
1086
- if($active_theme=="glossy"){
1087
- $sfsi_new_icons = "yes";
1088
- }
1089
- break;
1090
- case "vk" :
1091
- $toolClass = "vk_tool_bdr";
1092
- $arrow_class = "bot_pintst_arow";
1093
-
1094
- $url = (isset($sfsi_section2_options['sfsi_vk_pageURL'])) ? $sfsi_section2_options['sfsi_vk_pageURL'] : '';
1095
-
1096
- // $vk_user_name = isset($sfsi_section4_options['sfsi_vk_User']) && !empty($sfsi_section4_options['sfsi_vk_User']) ? $sfsi_section4_options['sfsi_vk_User'] : false;
1097
-
1098
- //Giving alternative text to image
1099
- if(isset($sfsi_section5_options['sfsi_vk_MouseOverText']) && !empty($sfsi_section5_options['sfsi_vk_MouseOverText']))
1100
- {
1101
- $alt_text = $sfsi_section5_options['sfsi_vk_MouseOverText'];
1102
- }
1103
- else
1104
- {
1105
- $alt_text = "vk";
1106
- }
1107
-
1108
- $hoverdiv="";
1109
-
1110
- $cDisplay = isset($sfsi_section4_options['sfsi_vk_countsDisplay']) && !empty($sfsi_section4_options['sfsi_vk_countsDisplay']) ? $sfsi_section4_options['sfsi_vk_countsDisplay']: false;
1111
-
1112
- $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
1113
-
1114
- /* fecth no of counts if active in admin section */
1115
- if($cDisplay=="yes" && $Displayc=="yes")
1116
- {
1117
- $counts = $socialObj->format_num($sfsi_section4_options['sfsi_vk_manualCounts']);
1118
- }
1119
-
1120
- //Custom Skin Support {Monad}
1121
- if($active_theme == 'custom_support')
1122
- {
1123
- if(get_option("vk_skin"))
1124
- {
1125
- $icon = get_option("vk_skin");
1126
- }
1127
- else
1128
- {
1129
- $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1130
- $icon=$icons_baseUrl."default_vk.png";
1131
- }
1132
- }
1133
- else
1134
- {
1135
- $icon=$icons_baseUrl.$active_theme."_vk.png";
1136
- }
1137
- if($active_theme=="glossy"){
1138
- $sfsi_new_icons = "yes";
1139
- }
1140
-
1141
- break;
1142
- case "ok" :
1143
- $toolClass = "ok_tool_bdr";
1144
- $arrow_class = "bot_pintst_arow";
1145
-
1146
- $url = (isset($sfsi_section2_options['sfsi_ok_pageURL'])) ? $sfsi_section2_options['sfsi_ok_pageURL'] : '';
1147
-
1148
- // $ok_user_name = isset($sfsi_section4_options['sfsi_ok_User']) && !empty($sfsi_section4_options['sfsi_ok_User']) ? $sfsi_section4_options['sfsi_ok_User'] : false;
1149
-
1150
- //Giving alternative text to image
1151
- if(isset($sfsi_section5_options['sfsi_ok_MouseOverText']) && !empty($sfsi_section5_options['sfsi_ok_MouseOverText']))
1152
- {
1153
- $alt_text = $sfsi_section5_options['sfsi_ok_MouseOverText'];
1154
- }
1155
- else
1156
- {
1157
- $alt_text = "ok";
1158
- }
1159
-
1160
- $hoverdiv="";
1161
-
1162
- $cDisplay = isset($sfsi_section4_options['sfsi_ok_countsDisplay']) && !empty($sfsi_section4_options['sfsi_ok_countsDisplay']) ? $sfsi_section4_options['sfsi_ok_countsDisplay']: false;
1163
-
1164
- $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
1165
- /* fecth no of counts if active in admin section */
1166
- if($cDisplay=="yes" && $Displayc=="yes")
1167
- {
1168
- $counts = $socialObj->format_num($sfsi_section4_options['sfsi_ok_manualCounts']);
1169
- }
1170
-
1171
- //Custom Skin Support {Monad}
1172
- if($active_theme == 'custom_support')
1173
- {
1174
- if(get_option("ok_skin"))
1175
- {
1176
- $icon = get_option("ok_skin");
1177
- }
1178
- else
1179
- {
1180
-
1181
- $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1182
- $icon=$icons_baseUrl."default_ok.png";
1183
- }
1184
- }
1185
- else
1186
- {
1187
- $icon=$icons_baseUrl.$active_theme."_ok.png";
1188
- }
1189
- if($active_theme=="glossy"){
1190
- $sfsi_new_icons = "yes";
1191
- }
1192
-
1193
- break;
1194
- case "weibo" :
1195
- $toolClass = "weibo_tool_bdr";
1196
- $arrow_class = "bot_pintst_arow";
1197
-
1198
- $url = (isset($sfsi_section2_options['sfsi_weibo_pageURL'])) ? $sfsi_section2_options['sfsi_weibo_pageURL'] : '';
1199
-
1200
- // $weibo_user_name = isset($sfsi_section4_options['sfsi_weibo_User']) && !empty($sfsi_section4_options['sfsi_weibo_User']) ? $sfsi_section4_options['sfsi_weibo_User'] : false;
1201
-
1202
- //Giving alternative text to image
1203
- if(isset($sfsi_section5_options['sfsi_weibo_MouseOverText']) && !empty($sfsi_section5_options['sfsi_weibo_MouseOverText']))
1204
- {
1205
- $alt_text = $sfsi_section5_options['sfsi_weibo_MouseOverText'];
1206
- }
1207
- else
1208
- {
1209
- $alt_text = "weibo";
1210
- }
1211
-
1212
- $hoverdiv="";
1213
-
1214
- $cDisplay = isset($sfsi_section4_options['sfsi_weibo_countsDisplay']) && !empty($sfsi_section4_options['sfsi_weibo_countsDisplay']) ? $sfsi_section4_options['sfsi_weibo_countsDisplay']: false;
1215
-
1216
- $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
1217
-
1218
- /* fecth no of counts if active in admin section */
1219
- if($cDisplay=="yes" && $Displayc=="yes")
1220
- {
1221
- $counts = $socialObj->format_num($sfsi_section4_options['sfsi_weibo_manualCounts']);
1222
- }
1223
-
1224
- //Custom Skin Support {Monad}
1225
- if($active_theme == 'custom_support')
1226
- {
1227
- if(get_option("weibo_skin"))
1228
- {
1229
- $icon = get_option("weibo_skin");
1230
- }
1231
- else
1232
- {
1233
-
1234
- $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1235
- $icon=$icons_baseUrl."default_weibo.png";
1236
- }
1237
- }
1238
- else
1239
- {
1240
- $icon=$icons_baseUrl.$active_theme."_weibo.png";
1241
- }
1242
- if($active_theme=="glossy"){
1243
- $sfsi_new_icons = "yes";
1244
- }
1245
-
1246
- break;
1247
- case "wechat" :
1248
- $toolClass = "wechat_tool_bdr";
1249
- $arrow_class = "bot_pintst_arow";
1250
-
1251
- // $url = (isset($sfsi_section2_options['sfsi_wechat_pageURL'])) ? $sfsi_section2_options['sfsi_wechat_pageURL'] : '';
1252
-
1253
- // $wechat_user_name = isset($sfsi_section4_options['sfsi_wechat_User']) && !empty($sfsi_section4_options['sfsi_wechat_User']) ? $sfsi_section4_options['sfsi_wechat_User'] : false;
1254
-
1255
- //Giving alternative text to image
1256
- if(isset($sfsi_section5_options['sfsi_wechat_MouseOverText']) && !empty($sfsi_section5_options['sfsi_wechat_MouseOverText']))
1257
- {
1258
- $alt_text = $sfsi_section5_options['sfsi_wechat_MouseOverText'];
1259
- }
1260
- else
1261
- {
1262
- $alt_text = "wechat";
1263
- }
1264
-
1265
- $hoverdiv="";
1266
-
1267
- $cDisplay = isset($sfsi_section4_options['sfsi_wechat_countsDisplay']) && !empty($sfsi_section4_options['sfsi_wechat_countsDisplay']) ? $sfsi_section4_options['sfsi_wechat_countsDisplay']: false;
1268
-
1269
- $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
1270
-
1271
- /* fecth no of counts if active in admin section */
1272
- if($cDisplay=="yes" && $Displayc=="yes")
1273
- {
1274
- $counts = $socialObj->format_num($sfsi_section4_options['sfsi_wechat_manualCounts']);
1275
- }
1276
- $url = "weixin://dl/chat";
1277
- if(
1278
- (isset($sfsi_section2_options['sfsi_wechatFollow_option']) && "yes" == $sfsi_section2_options['sfsi_wechatFollow_option']) &&
1279
-
1280
- (isset($sfsi_section2_options['sfsi_wechatShare_option']) && "yes" == $sfsi_section2_options['sfsi_wechatShare_option'])
1281
- ){
1282
- $hoverSHow = 1;
1283
- $hoverdiv = "";
1284
-
1285
- if(isset($sfsi_section2_options['sfsi_wechatFollow_option']) && !empty($sfsi_section2_options['sfsi_wechatFollow_option']) && "yes" == $option2['sfsi_wechatFollow_option']
1286
-
1287
- && isset($sfsi_section2_options['sfsi_wechat_scan_image']) && !empty($sfsi_section2_options['sfsi_wechat_scan_image'])){
1288
-
1289
- $image_url = $sfsi_section2_options['sfsi_wechat_scan_image'];
1290
-
1291
- $hoverdiv.="<div class='icon1' style='text-align:center'><a href='' onclick='event.preventDefault();sfsi_wechat_follow(\"".$sfsi_section2_options['sfsi_wechat_scan_image']."\")' ><img data-pin-nopin='true' alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' style='height:25px' /></a></div>";
1292
- }
1293
-
1294
- if(isset($sfsi_section2_options['sfsi_wechatShare_option']) && !empty($sfsi_section2_options['sfsi_wechatShare_option'])
1295
- && "yes" == $sfsi_section2_options['sfsi_wechatShare_option']){
1296
-
1297
- $hoverdiv.="<div class='icon2' style='text-align:center' ><a href='".$url."' ".sfsi_checkNewWindow($url)." onclick='event.preventDefault();sfsi_wechat_share(\"".$sfsi_section2_options['sfsi_wechat_scan_image']."\")' ><img data-pin-nopin='true' alt='".$alt_text."' title='".$alt_text."' src='".$share_icon."' style='height:25px' /></a></div>";
1298
- }
1299
- }else{
1300
-
1301
-
1302
- if(isset($sfsi_section2_options['sfsi_wechatFollow_option']) && !empty($sfsi_section2_options['sfsi_wechatFollow_option']) && "yes" == $sfsi_section2_options['sfsi_wechatFollow_option']
1303
-
1304
- && isset($sfsi_section2_options['sfsi_wechat_scan_image']) && !empty($sfsi_section2_options['sfsi_wechat_scan_image'])){
1305
-
1306
- $sfsi_onclick="event.preventDefault();sfsi_wechat_follow(\'".$sfsi_section2_options['sfsi_wechat_scan_image']."\')" ;
1307
- }
1308
-
1309
- if(isset($sfsi_section2_options['sfsi_wechatShare_option']) && 'yes'==($sfsi_section2_options['sfsi_wechatShare_option'])
1310
- && "yes" == $sfsi_section2_options['sfsi_wechatShare_option']){
1311
- if(!wp_is_mobile()){
1312
- $sfsi_onclick="event.preventDefault();sfsi_wechat_share('".trim($current_url)."')" ;
1313
- }else{
1314
- $sfsi_onclick='';
1315
- if(wp_is_mobile()){
1316
- $sfsi_onclick = "console.log(event);event.stopPropagation&&event.stopPropagation();";
1317
- }
1318
- $sfsi_onclick.="event.preventDefault();sfsi_mobile_wechat_share('".trim($current_url)."')" ;
1319
- }
1320
- }
1321
- $hoverSHow = 0;
1322
- }
1323
- //Custom Skin Support {Monad}
1324
- if($active_theme == 'custom_support')
1325
- {
1326
- if(get_option("wechat_skin"))
1327
- {
1328
- $icon = get_option("wechat_skin");
1329
- }
1330
- else
1331
- {
1332
-
1333
- $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1334
- $icon=$icons_baseUrl."default_wechat.png";
1335
- }
1336
- }
1337
- else
1338
- {
1339
- $icon=$icons_baseUrl.$active_theme."_wechat.png";
1340
- }
1341
- if($active_theme=="glossy"){
1342
- $sfsi_new_icons = "yes";
1343
- }
1344
-
1345
- break;
1346
-
1347
-
1348
- case "linkedin" :
1349
- $width = 66;
1350
- $toolClass = "linkedin_tool_bdr";
1351
- $arrow_class = "bot_linkedin_arow";
1352
-
1353
- $linkedIn_compayId = isset($sfsi_section2_options['sfsi_linkedin_followCompany']) && !empty($sfsi_section2_options['sfsi_linkedin_followCompany']) ? $sfsi_section2_options['sfsi_linkedin_followCompany'] : false;
1354
-
1355
- $page = isset($sfsi_section2_options['sfsi_linkedin_page']) && !empty($sfsi_section2_options['sfsi_linkedin_page']) ? $sfsi_section2_options['sfsi_linkedin_page'] : false;
1356
-
1357
- $follow = isset($sfsi_section2_options['sfsi_linkedin_follow']) && !empty($sfsi_section2_options['sfsi_linkedin_follow']) ? $sfsi_section2_options['sfsi_linkedin_follow'] : false;
1358
-
1359
- $share = isset($sfsi_section2_options['sfsi_linkedin_SharePage']) && !empty($sfsi_section2_options['sfsi_linkedin_SharePage']) ? $sfsi_section2_options['sfsi_linkedin_SharePage'] : false;
1360
-
1361
- $reBusiness = isset($sfsi_section2_options['sfsi_linkedin_recommendBusines']) && !empty($sfsi_section2_options['sfsi_linkedin_recommendBusines']) ? $sfsi_section2_options['sfsi_linkedin_recommendBusines'] : false;
1362
-
1363
- $linkedIn_compay = $linkedIn_compayId;
1364
- $linkedIn_ProductId = isset($sfsi_section2_options['sfsi_linkedin_recommendProductId']) && !empty($sfsi_section2_options['sfsi_linkedin_recommendProductId']) ? $sfsi_section2_options['sfsi_linkedin_recommendProductId'] : false;
1365
-
1366
- $visit_icon = $visit_iconsUrl."linkedIn.png";
1367
-
1368
- /*check for icons to display */
1369
- $url = isset($sfsi_section2_options['sfsi_linkedin_pageURL']) && !empty($sfsi_section2_options['sfsi_linkedin_pageURL']) ? $sfsi_section2_options['sfsi_linkedin_pageURL'] : '';
1370
-
1371
- if($follow =="yes" || $share =="yes" || $reBusiness =="yes")
1372
- {
1373
- $hoverSHow = 1;
1374
- $hoverdiv = '';
1375
-
1376
- if($page=="yes")
1377
- {
1378
- $hoverdiv.="<div class='icon4'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img data-pin-nopin='true' alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
1379
- }
1380
- if($follow=="yes")
1381
- {
1382
- $hoverdiv.="<div class='icon1'>".$socialObj->sfsi_LinkedInFollow($linkedIn_compayId)."</div>";
1383
- }
1384
- if($share=="yes")
1385
- {
1386
- $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_LinkedInShare()."</div>";
1387
- }
1388
- if($reBusiness=="yes")
1389
- {
1390
- $hoverdiv.="<div class='icon3'>".$socialObj->sfsi_LinkedInRecommend($linkedIn_compay,$linkedIn_ProductId)."</div>";
1391
- $width=99;
1392
- }
1393
- }
1394
-
1395
- $cFrom = isset($sfsi_section4_options['sfsi_linkedIn_countsFrom']) && !empty($sfsi_section4_options['sfsi_linkedIn_countsFrom']) ? $sfsi_section4_options['sfsi_linkedIn_countsFrom'] : false;
1396
-
1397
- $disp = isset($sfsi_section4_options['sfsi_linkedIn_countsDisplay']) && !empty($sfsi_section4_options['sfsi_linkedIn_countsDisplay']) ? $sfsi_section4_options['sfsi_linkedIn_countsDisplay'] : false;
1398
-
1399
- $dcount = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts'] : false;
1400
-
1401
- /* fecth no of counts if active in admin section */
1402
- if($disp=="yes" &&$dcount=="yes")
1403
- {
1404
- if($cFrom=="manual")
1405
- {
1406
- $counts = $socialObj->format_num($sfsi_section4_options['sfsi_linkedIn_manualCounts']);
1407
- }
1408
- else if($cFrom=="follower")
1409
- {
1410
- $linkedIn_compay = $sfsi_section4_options['ln_company'];
1411
- $ln_settings = array(
1412
- 'ln_api_key'=>$sfsi_section4_options['ln_api_key'],
1413
- 'ln_secret_key'=>$sfsi_section4_options['ln_secret_key'],
1414
- 'ln_oAuth_user_token'=>$sfsi_section4_options['ln_oAuth_user_token']
1415
- );
1416
-
1417
- $followers=$socialObj->sfsi_getlinkedin_follower($linkedIn_compay,$ln_settings);
1418
- (int) $followers;
1419
- $counts=$socialObj->format_num($followers);
1420
- if(empty($counts))
1421
- {
1422
- $counts = (string) "0";
1423
- }
1424
- }
1425
- }
1426
- $totwith = $width+28+$icons_space;
1427
- $twt_margin = $totwith/2;
1428
-
1429
- //Giving alternative text to image
1430
- if(isset($sfsi_section5_options['sfsi_linkedIn_MouseOverText']) && !empty($sfsi_section5_options['sfsi_linkedIn_MouseOverText']))
1431
- {
1432
- $alt_text = $sfsi_section5_options['sfsi_linkedIn_MouseOverText'];
1433
- }
1434
- else
1435
- {
1436
- $alt_text = "LINKEDIN";
1437
- }
1438
-
1439
- //Custom Skin Support {Monad}
1440
- if($active_theme == 'custom_support')
1441
- {
1442
- if(get_option("linkedin_skin"))
1443
- {
1444
- $icon = get_option("linkedin_skin");
1445
- }
1446
- else
1447
- {
1448
- $active_theme = 'default';
1449
- $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1450
- $icon=$icons_baseUrl.$active_theme."_linkedin.png";
1451
- }
1452
- }
1453
- else
1454
- {
1455
- $icon=$icons_baseUrl.$active_theme."_linkedin.png";
1456
- }
1457
- break;
1458
-
1459
- default:
1460
- $border_radius = "";
1461
- //$border_radius =" border-radius:48%;";
1462
- $cmcls = "cmcls";
1463
- $padding_top = "";
1464
- if($active_theme=="badge")
1465
- {
1466
- //$border_radius="border-radius: 18%;";
1467
- }
1468
- if($active_theme=="cute")
1469
- {
1470
- //$border_radius="border-radius: 38%;";
1471
- }
1472
-
1473
- $custom_icon_urls = unserialize($sfsi_section2_options['sfsi_CustomIcon_links']);
1474
- $url = (isset($custom_icon_urls[$icon_n]) && !empty($custom_icon_urls[$icon_n])) ? $custom_icon_urls[$icon_n]:'';
1475
- $toolClass = "custom_lkn";
1476
- $arrow_class = "";
1477
- $custom_icons_hoverTxt = unserialize($sfsi_section5_options['sfsi_custom_MouseOverTexts']);
1478
- $icons = unserialize($sfsi_section1_options['sfsi_custom_files']);
1479
- $icon = isset($icons[$icon_n])?$icons[$icon_n]:'';
1480
-
1481
- //Giving alternative text to image
1482
- if(!empty($custom_icons_hoverTxt[$icon_n]))
1483
- {
1484
- $alt_text = $custom_icons_hoverTxt[$icon_n];
1485
- }
1486
- else
1487
- {
1488
- $alt_text = "SOCIALICON";
1489
- }
1490
- break;
1491
- }
1492
- $icons="";
1493
- /* apply size of icon */
1494
- if($is_front==0)
1495
- {
1496
- $icons_size = $sfsi_section5_options['sfsi_icons_size'];
1497
- $itemselector = "sfsi_wicons shuffeldiv";
1498
- $innrselector = "inerCnt";
1499
- }
1500
- else
1501
- {
1502
- $icons_size = 51;
1503
- $itemselector = "sfsi_wicons";
1504
- $innrselector = "inerCnt";
1505
- }
1506
-
1507
- /* spacing and no of icons per row */
1508
- $icons_space = '';
1509
- $icons_space = $sfsi_section5_options['sfsi_icons_spacing'];
1510
- $icon_width = (int)$icons_size;
1511
- /* check for mouse hover effect */
1512
- $icon_opacity="1";
1513
-
1514
- if($sfsi_section3_options['sfsi_mouseOver']=='yes')
1515
- {
1516
- $mouse_hover_effect=$sfsi_section3_options["sfsi_mouseOver_effect"];
1517
- if($mouse_hover_effect=="fade_in" || $mouse_hover_effect=="combo")
1518
- {
1519
- $icon_opacity="0.6";
1520
- }
1521
- }
1522
-
1523
- $toolT_cls='';
1524
- if((int) $icon_width <=49 && (int) $icon_width >=30)
1525
- {
1526
- $bt_class="";
1527
- $toolT_cls="sfsiTlleft";
1528
- }
1529
- else if((int) $icon_width <=20)
1530
- {
1531
- $bt_class="sfsiSmBtn";
1532
- $toolT_cls="sfsiTlleft";
1533
- }
1534
- else
1535
- {
1536
- $bt_class="";
1537
- $toolT_cls="sfsiTlleft";
1538
- }
1539
-
1540
- if($toolClass=="rss_tool_bdr" || $toolClass=='email_tool_bdr' || $toolClass=="custom_lkn" || $toolClass=="instagram_tool_bdr" )
1541
- {
1542
- $new_window = sfsi_checkNewWindow();
1543
- $url = $url;
1544
- }
1545
- else if($hoverSHow)
1546
- {
1547
- if(!wp_is_mobile())
1548
- {
1549
- $new_window = sfsi_checkNewWindow();
1550
- $url = $url;
1551
- }
1552
- else
1553
- {
1554
- $new_window = '';
1555
- $url = "javascript:void(0)";
1556
- }
1557
- }
1558
- else
1559
- {
1560
- $new_window = sfsi_checkNewWindow();
1561
- $url = $url;
1562
- }
1563
-
1564
- if(isset($sfsi_onclick)){
1565
- $new_window ="";
1566
- }
1567
-
1568
- if(!isset($sfsi_new_icons)){
1569
- $sfsi_new_icons =false;
1570
- }
1571
- if($sfsi_new_icons){
1572
- $margin_bot="4px;";
1573
- }else{
1574
- $margin_bot="5px;";
1575
- }
1576
- if($sfsi_section4_options['sfsi_display_counts']=="yes")
1577
- {
1578
- if($sfsi_new_icons){
1579
- $margin_bot = "29px;";
1580
- }else{
1581
- $margin_bot = "30px;";
1582
- }
1583
- }
1584
- if(isset($icon) && !empty($icon) && filter_var($icon, FILTER_VALIDATE_URL))
1585
- {
1586
- $icons.= "<div style='width:".$icon_width."px; height:".$icon_width."px;margin-left:".$icons_space."px;margin-bottom:".$margin_bot." ".($sfsi_new_icons?'padding:0px':'')."' class='".$itemselector." ".$cmcls."' >";
1587
-
1588
- $icons.= "<div class='".$innrselector."'>";
1589
-
1590
- $icons.= "<a class='".$class." sficn' data-effect='".$mouse_hover_effect."' $new_window href='".$url."' ".(('vk'!==$icon_name)?"id='sfsiid_".$icon_name."'":'')." style='opacity:".$icon_opacity."' ".(isset($sfsi_onclick)?'onclick="'.$sfsi_onclick.'"':'')." >";
1591
- $icons.= "<img data-pin-nopin='true' alt='".$alt_text."' title='".$alt_text."' src='".$icon."' width='".$icons_size."' height='".$icons_size."' style='".$border_radius.$padding_top."' class='sfcm sfsi_wicon ".(in_array($icon_name,array('telegram','wechat'))?('sfsi_'.$icon_name.'_wicon sfsi_click_wicon'):(''))."' data-effect='".$mouse_hover_effect."' />";
1592
- $icons.= '</a>';
1593
- if(isset($counts) && $counts!='')
1594
- {
1595
- $icons.= '<span class="bot_no '.$bt_class.'">'.$counts.'</span>';
1596
- }
1597
- if($hoverSHow && !empty($hoverdiv))
1598
- {
1599
- $icons.= '<div class="sfsi_tool_tip_2 '.$toolClass.' '.$toolT_cls.'" style="width:'.$width.'px ;opacity:0;z-index:-1;margin-left:-'.$twt_margin.'px;" id="sfsiid_'.$icon_name.'">';
1600
- $icons.= '<span class="bot_arow '.$arrow_class.'"></span>';
1601
- $icons.= '<div class="sfsi_inside">'.$hoverdiv."</div>";
1602
- $icons.= "</div>";
1603
- }
1604
- $icons.="</div>";
1605
- $icons.="</div>";
1606
- }
1607
- return $icons;
1608
- }
1609
-
1610
- /* make url for new window */
1611
- function sfsi_checkNewWindow()
1612
- {
1613
- global $wpdb;
1614
- $sfsi_section5_options= unserialize(get_option('sfsi_section5_options',false));
1615
- if($sfsi_section5_options['sfsi_icons_ClickPageOpen']=="yes")
1616
- {
1617
- return $new_window="target='_blank'";
1618
- }
1619
- else
1620
- {
1621
- return '';
1622
- }
1623
- }
 
 
 
1624
  ?>
1
+ <?php
2
+ /* create SFSI widget */
3
+ class Sfsi_Widget extends WP_Widget
4
+ {
5
+
6
+ function __construct()
7
+ {
8
+ $widget_ops = array( 'classname' => 'sfsi', 'description' => __('Ultimate Social Media Icons widgets', 'Ultimate Social Media Icons ') );
9
+ $control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'sfsi-widget' );
10
+
11
+ parent::__construct(
12
+ // Base ID of your widget
13
+ 'sfsi-widget',
14
+
15
+ // Widget name will appear in UI
16
+ __('Ultimate Social Media Icons', 'Ultimate Social Media Icons'),
17
+
18
+ // Widget description
19
+ $widget_ops,
20
+
21
+ $control_ops
22
+ );
23
+ }
24
+
25
+ function widget( $args, $instance )
26
+ {
27
+ extract( $args );
28
+ /*Our variables from the widget settings. */
29
+ $title = isset( $instance['title'] ) ? apply_filters('widget_title', $instance['title'] ) : '';
30
+ // var_dump($title,'ldfjgkdfj');
31
+ $show_info = isset( $instance['show_info'] ) ? $instance['show_info'] : false;
32
+
33
+ global $is_floter;
34
+ echo $before_widget;
35
+
36
+ /* Display the widget title */
37
+ if ( $title ) echo $before_title . $title . $after_title;
38
+ ?>
39
+ <div class="sfsi_widget" data-position="widget">
40
+ <div id='sfsi_wDiv'></div>
41
+ <?php
42
+ /* Link the main icons function */
43
+ echo sfsi_check_visiblity(0);
44
+ ?>
45
+ <div style="clear: both;"></div>
46
+ </div>
47
+ <?php
48
+ if ( is_active_widget( false, false, $this->id_base, true ) ) { }
49
+ echo $after_widget;
50
+ }
51
+
52
+ /*Update the widget */
53
+ function update( $new_instance, $old_instance )
54
+ {
55
+ $instance = $old_instance;
56
+ //Strip tags from title and name to remove HTML
57
+ if($new_instance['showf']==0)
58
+ {
59
+ $instance['showf']=1;
60
+ }
61
+ else
62
+ {
63
+ $instance['showf']=0;
64
+ }
65
+ $instance['title'] = strip_tags( $new_instance['title'] );
66
+ return $instance;
67
+ }
68
+
69
+ /* Set up some default widget settings. */
70
+ function form( $instance )
71
+ {
72
+ $defaults = array( 'title' =>"" );
73
+ $instance = wp_parse_args( (array) $instance, $defaults );
74
+ if(isset($instance['showf']) && !empty($instance['showf']))
75
+ {
76
+ if( $instance['showf'] == 0 && empty($instance['title']))
77
+ {
78
+ $instance['title']='Please follow & like us :)';
79
+ }
80
+ else
81
+ {
82
+ $instance['title'];
83
+ }
84
+ }
85
+ else
86
+ {
87
+ $instance['title']='Please follow & like us :)';
88
+ }
89
+ ?>
90
+ <p>
91
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>">Title</label>
92
+ <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>"
93
+ value="<?php echo $instance['title']; ?>" style="width:100%;" />
94
+ <input type="hidden" value="<?php echo $instance['showf'] ?>" id="<?php echo $this->get_field_id( 'showf' ); ?>"
95
+ name="<?php echo $this->get_field_name( 'showf' ); ?>" />
96
+ </p>
97
+ <p>
98
+ Please go to the <a href="admin.php?page=sfsi-options">plugin page</a> to set your preferences
99
+ </p>
100
+ <?php
101
+ }
102
+ }
103
+ /* END OF widget Class */
104
+ /* register widget to wordpress */
105
+ function register_sfsi_widgets()
106
+ {
107
+ register_widget( 'sfsi_widget' );
108
+ }
109
+ add_action( 'widgets_init', 'register_sfsi_widgets' );
110
+
111
+ /* check the icons visiblity */
112
+ function sfsi_check_visiblity($isFloter=0)
113
+ {
114
+ global $wpdb;
115
+ /* Access the saved settings in database */
116
+ $sfsi_section1_options = unserialize(get_option('sfsi_section1_options',false));
117
+ $sfsi_section3 = unserialize(get_option('sfsi_section3_options',false));
118
+ $sfsi_section5 = unserialize(get_option('sfsi_section5_options',false));
119
+ $sfsi_section9 = unserialize(get_option('sfsi_section9_options',false));
120
+
121
+ /* calculate the width and icons display alignments */
122
+ $icons_space = $sfsi_section5['sfsi_icons_spacing'];
123
+ $icons_size = $sfsi_section5['sfsi_icons_size'];
124
+ $icons_per_row = ($sfsi_section5['sfsi_icons_perRow'])? $sfsi_section5['sfsi_icons_perRow'] : '';
125
+
126
+ $icons_alignment = $sfsi_section5['sfsi_icons_Alignment'];
127
+ $position = 'position:absolute;';
128
+ $position1 = 'position:absolute;';
129
+ $jquery ='<script>';
130
+
131
+ // $jquery .= ;
132
+ ?>
133
+ <script>
134
+ window.addEventListener('sfsi_functions_loaded', function() {
135
+ if (typeof sfsi_widget_set == 'function') {
136
+ sfsi_widget_set();
137
+ }
138
+ })
139
+ </script>
140
+
141
+ <?php
142
+
143
+ /* check if icons shuffling is activated in admin or not */
144
+ if($sfsi_section5['sfsi_icons_stick']=="yes")
145
+ {
146
+ if(is_admin_bar_showing())
147
+ {
148
+ $Ictop = "30px";
149
+ }
150
+ else
151
+ {
152
+ $Ictop = "0";
153
+ }
154
+
155
+ $jquery.='window.addEventListener("sfsi_functions_loaded",function(){var s = jQuery(".sfsi_widget");
156
+ var pos = s.position();
157
+ jQuery(window).scroll(function(){
158
+ sfsi_stick_widget("'.$Ictop.'");
159
+ }); }); ';
160
+ }
161
+
162
+ /* check if icons floating is activated in admin */
163
+ if($sfsi_section9['sfsi_icons_float']=="yes")
164
+ {
165
+ $top = "15";
166
+ switch($sfsi_section9['sfsi_icons_floatPosition'])
167
+ {
168
+ case "top-left" : if(is_admin_bar_showing()) : $position.="position:absolute;left:30px;top:35px;"; $top="35"; else : $position.="position:absolute;left:10px;top:2%"; $top="10"; endif;
169
+ break;
170
+ case "top-right" : if(is_admin_bar_showing()) : $position.="position:absolute;right:30px;top:35px;"; $top="35"; else : $position.="position:absolute;right:10px;top:2%"; $top="10"; endif;
171
+ break;
172
+ case "center-right" : $position.="position:absolute;right:30px;top:50%"; $top="center";
173
+ break;
174
+ case "center-left" : $position.="position:absolute;left:30px;top:50%"; $top="center";
175
+ break;
176
+ case "center-top" :
177
+ if(is_admin_bar_showing())
178
+ {
179
+ $position .= "left:50%;top:35px;"; $top="35";
180
+ }
181
+ else
182
+ {
183
+ $position .= "left:50%;top:10px;"; $top="10";
184
+ }
185
+ break;
186
+ case "center-bottom" :
187
+ $position .= "left:50%;bottom:0px"; $top="bottom";
188
+ break;
189
+
190
+ case "bottom-right" : $position.="position:absolute;right:30px;bottom:0px"; $top="bottom";
191
+ break;
192
+ case "bottom-left" : $position.="position:absolute;left:30px;bottom:0px"; $top="bottom";
193
+ break;
194
+ }
195
+ //$jquery.="jQuery( document ).ready(function( $ ) { sfsi_float_widget('".$top."')});";
196
+ if($sfsi_section9['sfsi_icons_floatPosition'] == 'center-right' || $sfsi_section9['sfsi_icons_floatPosition'] == 'center-left')
197
+ {
198
+ $jquery.="window.addEventListener('sfsi_functions_loaded',function()
199
+ {
200
+ var topalign = ( jQuery(window).height() - jQuery('#sfsi_floater').height() ) / 2;
201
+ jQuery('#sfsi_floater').css('top',topalign);
202
+ sfsi_float_widget('".$top."');
203
+ });";
204
+ }
205
+ else if($sfsi_section9['sfsi_icons_floatPosition'] == 'center-top' || $sfsi_section9['sfsi_icons_floatPosition'] == 'center-bottom'){
206
+
207
+ $jquery.="window.addEventListener('sfsi_functions_loaded',function()
208
+ {
209
+ var leftalign = ( jQuery(window).width() - jQuery('#sfsi_floater').width() ) / 2;
210
+ jQuery('#sfsi_floater').css('left',leftalign);
211
+ sfsi_float_widget('".$top."');
212
+ });";
213
+ }
214
+ else
215
+ {
216
+ $jquery.="window.addEventListener('sfsi_functions_loaded',function(){sfsi_float_widget('".$top."')});";
217
+ }
218
+ }
219
+
220
+ $extra=0;
221
+ if($sfsi_section3['sfsi_shuffle_icons']=="yes")
222
+ {
223
+ if($sfsi_section3['sfsi_shuffle_Firstload']=="yes" && $sfsi_section3['sfsi_shuffle_interval']=="yes")
224
+ {
225
+ $shuffle_time=(isset($sfsi_section3['sfsi_shuffle_intervalTime'])) ? $sfsi_section3['sfsi_shuffle_intervalTime'] : 3;
226
+ $shuffle_time=$shuffle_time*1000;
227
+ $jquery.="window.addEventListener('sfsi_functions_loaded',function(){ jQuery('.sfsi_wDiv').each(function(){ new window.Manipulator( jQuery(this)); }); setTimeout(function(){ jQuery('#sfsi_wDiv').each(function(){ jQuery(this).click(); })},2000); setInterval(function(){ jQuery('#sfsi_wDiv').each(function(){ jQuery(this).click(); })},".$shuffle_time."); });";
228
+ }
229
+ else if($sfsi_section3['sfsi_shuffle_Firstload']=="no" && $sfsi_section3['sfsi_shuffle_interval']=="yes")
230
+ {
231
+ $shuffle_time=(isset($sfsi_section3['sfsi_shuffle_intervalTime'])) ? $sfsi_section3['sfsi_shuffle_intervalTime'] : 3;
232
+ $shuffle_time=$shuffle_time*1000;
233
+ $jquery.="window.addEventListener('sfsi_functions_loaded',function(){ jQuery('.sfsi_wDiv').each(function(){ new window.Manipulator( jQuery(this)); }); setInterval(function(){ jQuery('#sfsi_wDiv').each(function(){ jQuery(this).click(); })},".$shuffle_time."); });";
234
+ }
235
+ else
236
+ {
237
+ $jquery.="window.addEventListener('sfsi_functions_loaded',function(){ jQuery('.sfsi_wDiv').each(function(){ new window.Manipulator( jQuery(this)); }); setTimeout(function(){ jQuery('#sfsi_wDiv').each(function(){ jQuery(this).click(); })},2000); });";
238
+ }
239
+ }
240
+
241
+ /* magnage the icons in saved order in admin */
242
+ $custom_icons_order = unserialize($sfsi_section5['sfsi_CustomIcons_order']);
243
+ $icons = unserialize($sfsi_section1_options['sfsi_custom_files']);
244
+ if(!isset($sfsi_section5['sfsi_telegramIcon_order'])){
245
+ $sfsi_section5['sfsi_telegramIcon_order'] = '11';
246
+ }
247
+ if(!isset($sfsi_section5['sfsi_vkIcon_order'])){
248
+ $sfsi_section5['sfsi_vkIcon_order'] = '12';
249
+ }
250
+ if(!isset($sfsi_section5['sfsi_okIcon_order'])){
251
+ $sfsi_section5['sfsi_okIcon_order'] = '13';
252
+ }
253
+ if(!isset($sfsi_section5['sfsi_weiboIcon_order'])){
254
+ $sfsi_section5['sfsi_weiboIcon_order'] = '14';
255
+ }
256
+ if(!isset($sfsi_section5['sfsi_wechatIcon_order'])){
257
+ $sfsi_section5['sfsi_wechatIcon_order'] = '15';
258
+ }
259
+ $icons_order = array(
260
+ '0' => '',
261
+ $sfsi_section5['sfsi_rssIcon_order']=>'rss',
262
+ $sfsi_section5['sfsi_emailIcon_order']=>'email',
263
+ $sfsi_section5['sfsi_facebookIcon_order']=>'facebook',
264
+ $sfsi_section5['sfsi_twitterIcon_order']=>'twitter',
265
+ $sfsi_section5['sfsi_youtubeIcon_order']=>'youtube',
266
+ $sfsi_section5['sfsi_pinterestIcon_order']=>'pinterest',
267
+ $sfsi_section5['sfsi_linkedinIcon_order']=>'linkedin',
268
+ $sfsi_section5['sfsi_instagramIcon_order']=>'instagram',
269
+ $sfsi_section5['sfsi_telegramIcon_order']=>'telegram',
270
+ $sfsi_section5['sfsi_vkIcon_order']=>'vk',
271
+ $sfsi_section5['sfsi_okIcon_order']=>'ok',
272
+ $sfsi_section5['sfsi_weiboIcon_order']=>'weibo',
273
+ $sfsi_section5['sfsi_wechatIcon_order']=>'wechat',
274
+ ) ;
275
+ if(is_array($custom_icons_order) )
276
+ {
277
+ foreach($custom_icons_order as $data)
278
+ {
279
+ $icons_order[$data['order']] = $data;
280
+ }
281
+ }
282
+ ksort($icons_order);
283
+
284
+ /* calculate the total width of widget according to icons */
285
+ if(!empty($icons_per_row))
286
+ {
287
+ $width = ((int)$icons_space+(int)$icons_size)*(int)$icons_per_row;
288
+ $main_width = $width = $width+$extra;
289
+ $main_width = $main_width."px";
290
+ }
291
+ else
292
+ {
293
+ $width = ((int)$icons_space+(int)$icons_size);
294
+ $main_width = "35%";
295
+ }
296
+
297
+ /* built the main widget div */
298
+ $icons_main = '<div class="norm_row sfsi_wDiv" style="width:'.$main_width.';text-align:'.$icons_alignment.';'.$position1.'">';
299
+ $icons = "";
300
+ /* loop through icons and bulit the icons with all settings applied in admin */
301
+ foreach($icons_order as $index => $icn) :
302
+ if(is_array($icn)) { $icon_arry=$icn; $icn="custom" ; }
303
+ switch ($icn) :
304
+ case 'rss' : if($sfsi_section1_options['sfsi_rss_display']=='yes') $icons.= sfsi_prepairIcons('rss');
305
+ break;
306
+ case 'email' : if($sfsi_section1_options['sfsi_email_display']=='yes') $icons.= sfsi_prepairIcons('email');
307
+ break;
308
+ case 'facebook' : if($sfsi_section1_options['sfsi_facebook_display']=='yes') $icons.= sfsi_prepairIcons('facebook');
309
+ break;
310
+ case 'twitter' : if($sfsi_section1_options['sfsi_twitter_display']=='yes') $icons.= sfsi_prepairIcons('twitter');
311
+ break;
312
+ case 'youtube' : if($sfsi_section1_options['sfsi_youtube_display']=='yes') $icons.= sfsi_prepairIcons('youtube');
313
+ break;
314
+ case 'pinterest' : if($sfsi_section1_options['sfsi_pinterest_display']=='yes') $icons.= sfsi_prepairIcons('pinterest');
315
+ break;
316
+ case 'linkedin' : if($sfsi_section1_options['sfsi_linkedin_display']=='yes') $icons.= sfsi_prepairIcons('linkedin');
317
+ break;
318
+ case 'instagram' : if($sfsi_section1_options['sfsi_instagram_display']=='yes') $icons.= sfsi_prepairIcons('instagram');
319
+ break;
320
+ case 'telegram' : if($sfsi_section1_options['sfsi_telegram_display']=='yes') $icons.= sfsi_prepairIcons('telegram');
321
+ break;
322
+ case 'vk' : if($sfsi_section1_options['sfsi_vk_display']=='yes') $icons.= sfsi_prepairIcons('vk');
323
+ break;
324
+ case 'ok' : if($sfsi_section1_options['sfsi_ok_display']=='yes') $icons.= sfsi_prepairIcons('ok');
325
+ break;
326
+ case 'weibo' : if($sfsi_section1_options['sfsi_weibo_display']=='yes') $icons.= sfsi_prepairIcons('weibo');
327
+ break;
328
+ case 'wechat' : if($sfsi_section1_options['sfsi_wechat_display']=='yes') $icons.= sfsi_prepairIcons('wechat');
329
+ break;
330
+ case 'custom' : $icons.= sfsi_prepairIcons($icon_arry['ele']);
331
+ break;
332
+ endswitch;
333
+ endforeach;
334
+
335
+ $jquery.="</script>";
336
+ $icons.='</div >';
337
+
338
+ $margin = $width+11;
339
+
340
+ $icons_main.=$icons.'<div id="sfsi_holder" class="sfsi_holders" style="position: relative; float: left;width:100%;z-index:-1;"></div >'.$jquery;
341
+ /* if floating of icons is active create a floater div */
342
+ $icons_float='';
343
+
344
+ if($sfsi_section9['sfsi_icons_float']=="yes" && $isFloter==1)
345
+ {
346
+ if($sfsi_section9['sfsi_icons_floatPosition'] == "top-left")
347
+ {
348
+ $styleMargin = "margin-top:".$sfsi_section9['sfsi_icons_floatMargin_top']."px;margin-left:".$sfsi_section9['sfsi_icons_floatMargin_left']."px;";
349
+ }
350
+ elseif($sfsi_section9['sfsi_icons_floatPosition'] == "top-right")
351
+ {
352
+ $styleMargin = "margin-top:".$sfsi_section9['sfsi_icons_floatMargin_top']."px;margin-right:".$sfsi_section9['sfsi_icons_floatMargin_right']."px;";
353
+ }
354
+ elseif($sfsi_section9['sfsi_icons_floatPosition'] == "center-left")
355
+ {
356
+ $styleMargin = "margin-left:".$sfsi_section9['sfsi_icons_floatMargin_left']."px;";
357
+ }
358
+ elseif($sfsi_section9['sfsi_icons_floatPosition'] == "center-right")
359
+ {
360
+ $styleMargin = "margin-right:".$sfsi_section9['sfsi_icons_floatMargin_right']."px;";
361
+ }
362
+ elseif($sfsi_section9['sfsi_icons_floatPosition'] == "bottom-left")
363
+ {
364
+ $styleMargin = "margin-bottom:".$sfsi_section9['sfsi_icons_floatMargin_bottom']."px;margin-left:".$sfsi_section9['sfsi_icons_floatMargin_left']."px;";
365
+ }
366
+ elseif($sfsi_section9['sfsi_icons_floatPosition'] == "bottom-right")
367
+ {
368
+ $styleMargin = "margin-bottom:".$sfsi_section9['sfsi_icons_floatMargin_bottom']."px;margin-right:".$sfsi_section9['sfsi_icons_floatMargin_right']."px;";
369
+ }
370
+
371
+ $icons_float = isset($styleMargin) && !empty($styleMargin) ? '<style type="text/css">#sfsi_floater { '.$styleMargin.' }</style>' : '';
372
+ $icons_float .= '<div class="norm_row sfsi_wDiv" id="sfsi_floater" style="z-index: 9999;width:'.$width.'px;text-align:'.$icons_alignment.';'.$position.'">';
373
+ $icons_float .= $icons;
374
+ $icons_float .= "<input type='hidden' id='sfsi_floater_sec' value='".$sfsi_section9['sfsi_icons_floatPosition']."' />";
375
+ $icons_float.="</div>".$jquery;
376
+ return $icons_float; exit;
377
+ }
378
+ $icons_data=$icons_main.$icons_float;
379
+ return $icons_data;
380
+ }
381
+
382
+ /* make all icons with saved settings in admin */
383
+ function sfsi_prepairIcons($icon_name,$is_front=0)
384
+ {
385
+ global $wpdb; global $socialObj;
386
+ $mouse_hover_effect = '';
387
+ $active_theme = 'official';
388
+ $sfsi_shuffle_Firstload = 'no';
389
+ $sfsi_display_counts = "no";
390
+ $icon = '';
391
+ $url = '';
392
+ $alt_text = '';
393
+ $new_window = '';
394
+ $class = '';
395
+
396
+ /* access all saved settings in admin */
397
+ $sfsi_section1_options = unserialize(get_option('sfsi_section1_options',false));
398
+ $sfsi_section2_options = unserialize(get_option('sfsi_section2_options',false));
399
+ $sfsi_section3_options = unserialize(get_option('sfsi_section3_options',false));
400
+ $sfsi_section4_options = unserialize(get_option('sfsi_section4_options',false));
401
+ $sfsi_section5_options = unserialize(get_option('sfsi_section5_options',false));
402
+ $sfsi_section6_options = unserialize(get_option('sfsi_section6_options',false));
403
+ $sfsi_section7_options = unserialize(get_option('sfsi_section7_options',false));
404
+ /* get active theme */
405
+ $border_radius='';
406
+ $active_theme = $sfsi_section3_options['sfsi_actvite_theme'];
407
+ if(!isset($sfsi_section2_options['sfsi_wechatShare_option'])){
408
+ $sfsi_section2_options['sfsi_wechatShare_option']="yes";
409
+ }
410
+ /* shuffle effect */
411
+ if($sfsi_section3_options['sfsi_shuffle_icons']=='yes')
412
+ {
413
+ $sfsi_shuffle_Firstload=$sfsi_section3_options["sfsi_shuffle_Firstload"];
414
+ if($sfsi_section3_options["sfsi_shuffle_interval"]=="yes")
415
+ {
416
+ $sfsi_shuffle_interval = $sfsi_section3_options["sfsi_shuffle_intervalTime"];
417
+ }
418
+ }
419
+
420
+ /* define the main url for icon access */
421
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/".$active_theme."/";
422
+ $visit_iconsUrl = SFSI_PLUGURL."images/visit_icons/";
423
+ $hoverSHow = 0;
424
+
425
+ /* check is icon is a custom icon or default icon */
426
+ if(is_numeric($icon_name)) { $icon_n=$icon_name; $icon_name="custom" ; }
427
+ $counts = '';
428
+ $twit_tolCls = "";
429
+ $twt_margin = "";
430
+ $icons_space = $sfsi_section5_options['sfsi_icons_spacing'];
431
+ $padding_top = '';
432
+
433
+ // $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http";
434
+ // $current_url = $scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
435
+
436
+ $current_url = sfsi_get_current_page_url();
437
+
438
+ $url = "#";
439
+ $cmcls = '';
440
+ $toolClass = '';
441
+
442
+ $socialObj = new sfsi_SocialHelper(); /* global object to access 3rd party icon's actions */
443
+
444
+ switch($icon_name)
445
+ {
446
+ case "rss" :
447
+
448
+ $url = isset($sfsi_section2_options['sfsi_rss_url']) && !empty($sfsi_section2_options['sfsi_rss_url'])? $sfsi_section2_options['sfsi_rss_url'] : '';
449
+
450
+ $toolClass = "rss_tool_bdr";
451
+ $hoverdiv = '';
452
+ $arrow_class = "bot_rss_arow";
453
+
454
+ /* fecth no of counts if active in admin section */
455
+ if($sfsi_section4_options['sfsi_rss_countsDisplay']=="yes" && $sfsi_section4_options['sfsi_display_counts']=="yes")
456
+ {
457
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_rss_manualCounts']);
458
+ }
459
+
460
+ if(!empty($sfsi_section5_options['sfsi_rss_MouseOverText']))
461
+ {
462
+ $alt_text = $sfsi_section5_options['sfsi_rss_MouseOverText'];
463
+ }
464
+ else
465
+ {
466
+ $alt_text = 'RSS';
467
+ }
468
+
469
+ //Custom Skin Support {Monad}
470
+ if($active_theme == 'custom_support')
471
+ {
472
+ if(get_option("rss_skin"))
473
+ {
474
+ $icon = get_option("rss_skin");
475
+ }
476
+ else
477
+ {
478
+ $active_theme = 'default';
479
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
480
+ $icon=$icons_baseUrl.$active_theme."_rss.png";
481
+ }
482
+ }
483
+ else
484
+ {
485
+ $icon=$icons_baseUrl.$active_theme."_rss.png";
486
+ }
487
+ break;
488
+
489
+ case "email" :
490
+
491
+ $hoverdiv = '';
492
+
493
+ $sfsi_section2_options['sfsi_email_url'];
494
+ if( sanitize_text_field(get_option('sfsi_feed_id', false)) == ""){
495
+ $url = "https://specificfeeds.com/follow";
496
+ }else{
497
+ $url = (isset($sfsi_section2_options['sfsi_email_url'])) ? $sfsi_section2_options['sfsi_email_url'] : '';
498
+ }
499
+ $toolClass = "email_tool_bdr";
500
+ $arrow_class = "bot_eamil_arow";
501
+
502
+ /* fecth no of counts if active in admin section */
503
+ if(
504
+ $sfsi_section4_options['sfsi_email_countsDisplay']=="yes" &&
505
+ $sfsi_section4_options['sfsi_display_counts']=="yes"
506
+ )
507
+ {
508
+ if($sfsi_section4_options['sfsi_email_countsFrom']=="manual")
509
+ {
510
+ $counts=$socialObj->format_num($sfsi_section4_options['sfsi_email_manualCounts']);
511
+ }
512
+ else
513
+ {
514
+ $counts = $socialObj->SFSI_getFeedSubscriber(sanitize_text_field(get_option('sfsi_feed_id',false)));
515
+ }
516
+ }
517
+
518
+ if(!empty($sfsi_section5_options['sfsi_email_MouseOverText']))
519
+ {
520
+ $alt_text = $sfsi_section5_options['sfsi_email_MouseOverText'];
521
+ }
522
+ else
523
+ {
524
+ $alt_text = 'EMAIL';
525
+ }
526
+
527
+ //Custom Skin Support {Monad}
528
+ if($active_theme == 'custom_support')
529
+ {
530
+ if(get_option("email_skin"))
531
+ {
532
+ $icon = get_option("email_skin");
533
+ }
534
+ else
535
+ {
536
+ $active_theme = 'default';
537
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
538
+ //$icon=($sfsi_section2_options['sfsi_rss_icons']=="sfsi") ? $icons_baseUrl.$active_theme."_sf.png" : $icons_baseUrl.$active_theme."_email.png";
539
+ if($sfsi_section2_options['sfsi_rss_icons']=="sfsi")
540
+ {
541
+ $icon = $icons_baseUrl.$active_theme."_sf.png";
542
+ }
543
+ elseif($sfsi_section2_options['sfsi_rss_icons']=="email")
544
+ {
545
+ $icon = $icons_baseUrl.$active_theme."_email.png";
546
+ }
547
+ else
548
+ {
549
+ $icon = $icons_baseUrl.$active_theme."_subscribe.png";
550
+ }
551
+ }
552
+ }
553
+ else
554
+ {
555
+
556
+ $rss_icons = isset($sfsi_section2_options['sfsi_rss_icons']) && !empty($sfsi_section2_options['sfsi_rss_icons']) ? $sfsi_section2_options['sfsi_rss_icons'] : false;
557
+
558
+ switch ($rss_icons) {
559
+
560
+ case 'email':
561
+ $image = "_email.png";
562
+ break;
563
+
564
+ case 'subscribe':
565
+ $image = "_subscribe.png";
566
+ break;
567
+
568
+ case 'sfsi':
569
+ $image = "_sf.png";
570
+ break;
571
+
572
+ default:
573
+ $image = "_subscribe.png";
574
+ break;
575
+ }
576
+
577
+ $icon = $icons_baseUrl.$active_theme.$image;
578
+ }
579
+ break;
580
+
581
+ case "facebook" :
582
+
583
+ $width = 62;
584
+ $totwith = $width+28+$icons_space;
585
+ $twt_margin = $totwith/2;
586
+ $toolClass = "fb_tool_bdr";
587
+ $arrow_class = "bot_fb_arow";
588
+
589
+ /* check for the over section */
590
+ if(!empty($sfsi_section5_options['sfsi_facebook_MouseOverText']))
591
+ {
592
+ $alt_text = $sfsi_section5_options['sfsi_facebook_MouseOverText'];
593
+ }
594
+ else
595
+ {
596
+ $alt_text = "FACEBOOK";
597
+ }
598
+
599
+ $visit_icon = $visit_iconsUrl."facebook.png";
600
+
601
+ $url = isset($sfsi_section2_options['sfsi_facebookPage_url']) && !empty($sfsi_section2_options['sfsi_facebookPage_url']) ? $sfsi_section2_options['sfsi_facebookPage_url'] : false;
602
+
603
+ $url = false != $url ? $sfsi_section2_options['sfsi_facebookPage_url']:'';
604
+
605
+ $like_option = isset($sfsi_section2_options['sfsi_facebookLike_option']) && !empty($sfsi_section2_options['sfsi_facebookLike_option']) ? $sfsi_section2_options['sfsi_facebookLike_option'] : false;
606
+
607
+ $page_option = isset($sfsi_section2_options['sfsi_facebookPage_option']) && !empty($sfsi_section2_options['sfsi_facebookPage_option']) ? $sfsi_section2_options['sfsi_facebookPage_option'] : false;
608
+
609
+ $share_option = isset($sfsi_section2_options['sfsi_facebookShare_option']) && !empty($sfsi_section2_options['sfsi_facebookShare_option']) ? $sfsi_section2_options['sfsi_facebookShare_option'] : false;
610
+
611
+ if((false != $like_option && $like_option=="yes") || (false != $share_option && $share_option=="yes"))
612
+ {
613
+ $url=($sfsi_section2_options['sfsi_facebookPage_url']) ? $sfsi_section2_options['sfsi_facebookPage_url']:'';
614
+ $hoverSHow = 1;
615
+ $hoverdiv = '';
616
+
617
+ if(false != $page_option && $page_option=="yes")
618
+ {
619
+ $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img data-pin-nopin='true' alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
620
+ }
621
+ if(false!= $like_option && $like_option=="yes")
622
+ {
623
+ $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_FBlike($current_url)."</div>";
624
+ }
625
+ if(false!= $share_option && $share_option=="yes")
626
+ {
627
+ $hoverdiv.="<div class='icon3'>".$socialObj->sfsiFB_Share($current_url)."</div>";
628
+ }
629
+
630
+ }
631
+
632
+ /* fecth no of counts if active in admin section */
633
+ if(
634
+ $sfsi_section4_options['sfsi_facebook_countsDisplay']=="yes" &&
635
+ $sfsi_section4_options['sfsi_display_counts']=="yes"
636
+ )
637
+ {
638
+ if($sfsi_section4_options['sfsi_facebook_countsFrom']=="manual")
639
+ {
640
+ $counts=$socialObj->format_num($sfsi_section4_options['sfsi_facebook_manualCounts']);
641
+ }
642
+ else if($sfsi_section4_options['sfsi_facebook_countsFrom']=="likes")
643
+ {
644
+ $fb_data=$socialObj->sfsi_get_fb($current_url);
645
+ $counts=$socialObj->format_num($fb_data['like_count']);
646
+ if(empty($counts))
647
+ {
648
+ $counts=(string) "0";
649
+ }
650
+ }
651
+ else if($sfsi_section4_options['sfsi_facebook_countsFrom']=="followers")
652
+ {
653
+ $fb_data=$socialObj->sfsi_get_fb($current_url);
654
+ $counts=$socialObj->format_num($fb_data['share_count']);
655
+
656
+ }
657
+ else if($sfsi_section4_options['sfsi_facebook_countsFrom']=="mypage")
658
+ {
659
+ $current_url = $sfsi_section4_options['sfsi_facebook_mypageCounts'];
660
+ $fb_data=$socialObj->sfsi_get_fb_pagelike($current_url);
661
+ $counts=$socialObj->format_num($fb_data);
662
+ }
663
+ }
664
+
665
+ //Custom Skin Support {Monad}
666
+ if($active_theme == 'custom_support')
667
+ {
668
+ if(get_option("facebook_skin"))
669
+ {
670
+ $icon = get_option("facebook_skin");
671
+ }
672
+ else
673
+ {
674
+ $active_theme = 'default';
675
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
676
+ $icon=$icons_baseUrl.$active_theme."_facebook.png";
677
+ }
678
+ }
679
+ else
680
+ {
681
+ $icon=$icons_baseUrl.$active_theme."_facebook.png";
682
+ }
683
+ break;
684
+ case "twitter" :
685
+ $toolClass = "twt_tool_bdr";
686
+ $arrow_class = "bot_twt_arow";
687
+
688
+ $url = isset($sfsi_section2_options['sfsi_twitter_pageURL']) && !empty($sfsi_section2_options['sfsi_twitter_pageURL']) ? $sfsi_section2_options['sfsi_twitter_pageURL'] : '';
689
+
690
+ $twitter_user = isset($sfsi_section2_options['sfsi_twitter_followUserName']) && !empty($sfsi_section2_options['sfsi_twitter_followUserName']) ? $sfsi_section2_options['sfsi_twitter_followUserName'] : false;
691
+
692
+ $twitter_text = isset($sfsi_section2_options['sfsi_twitter_aboutPageText']) && !empty($sfsi_section2_options['sfsi_twitter_aboutPageText']) ? $sfsi_section2_options['sfsi_twitter_aboutPageText'] : false;
693
+
694
+ $visit_icon = $visit_iconsUrl."twitter.png";
695
+
696
+ $width = 59;
697
+ $totwith = $width+28+$icons_space;
698
+ $twt_margin = $totwith/2;
699
+ /* check for icons to display */
700
+ $hoverdiv='';
701
+
702
+ $follow_me = isset($sfsi_section2_options['sfsi_twitter_followme']) && !empty($sfsi_section2_options['sfsi_twitter_followme']) ? $sfsi_section2_options['sfsi_twitter_followme'] : false;
703
+
704
+ $about_page = isset($sfsi_section2_options['sfsi_twitter_aboutPage']) && !empty($sfsi_section2_options['sfsi_twitter_aboutPage']) ? $sfsi_section2_options['sfsi_twitter_aboutPage'] : false;
705
+
706
+ if($follow_me=="yes" ||$about_page=="yes")
707
+ {
708
+ $hoverSHow=1;
709
+ //Visit twitter page {Monad}
710
+ if(isset($sfsi_section2_options['sfsi_twitter_page']) && !empty($sfsi_section2_options['sfsi_twitter_page']) && $sfsi_section2_options['sfsi_twitter_page']=="yes")
711
+ {
712
+ $hoverdiv.="<div class='cstmicon1'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img data-pin-nopin='true' alt='Visit Us' title='Visit Us' src='".$visit_icon."' /></a></div>";
713
+ }
714
+ if($follow_me=="yes" && !empty($twitter_user))
715
+ {
716
+ $hoverdiv.="<div class='icon1'>".$socialObj->sfsi_twitterFollow($twitter_user)."</div>";
717
+ }
718
+ if($about_page=="yes")
719
+ {
720
+ $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_twitterShare($current_url,$twitter_text)."</div>";
721
+ }
722
+
723
+ }
724
+
725
+ /* fecth no of counts if active in admin section */
726
+ if(
727
+ $sfsi_section4_options['sfsi_twitter_countsDisplay']=="yes" &&
728
+ $sfsi_section4_options['sfsi_display_counts']=="yes"
729
+ )
730
+ {
731
+ if($sfsi_section4_options['sfsi_twitter_countsFrom']=="manual")
732
+ {
733
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_twitter_manualCounts']);
734
+ }
735
+ else if($sfsi_section4_options['sfsi_twitter_countsFrom']=="source")
736
+ {
737
+ $tw_settings = array('tw_consumer_key'=>$sfsi_section4_options['tw_consumer_key'],
738
+ 'tw_consumer_secret'=> $sfsi_section4_options['tw_consumer_secret'],
739
+ 'tw_oauth_access_token'=> $sfsi_section4_options['tw_oauth_access_token'],
740
+ 'tw_oauth_access_token_secret'=> $sfsi_section4_options['tw_oauth_access_token_secret']);
741
+
742
+ $followers = $socialObj->sfsi_get_tweets($twitter_user,$tw_settings);
743
+ $counts = $socialObj->format_num($followers);
744
+ if(empty($counts))
745
+ {
746
+ $counts=(string) "0";
747
+ }
748
+ }
749
+ }
750
+
751
+ //Giving alternative text to image
752
+ if(!empty($sfsi_section5_options['sfsi_twitter_MouseOverText']))
753
+ {
754
+ $alt_text = $sfsi_section5_options['sfsi_twitter_MouseOverText'];
755
+ }
756
+ else
757
+ {
758
+ $alt_text = "TWITTER";
759
+ }
760
+
761
+ //Custom Skin Support {Monad}
762
+ if($active_theme == 'custom_support')
763
+ {
764
+ if(get_option("twitter_skin"))
765
+ {
766
+ $icon = get_option("twitter_skin");
767
+ }
768
+ else
769
+ {
770
+ $active_theme = 'default';
771
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
772
+ $icon=$icons_baseUrl.$active_theme."_twitter.png";
773
+ }
774
+ }
775
+ else
776
+ {
777
+ $icon=$icons_baseUrl.$active_theme."_twitter.png";
778
+ }
779
+ break;
780
+
781
+ case "youtube" :
782
+ $toolClass = "utube_tool_bdr";
783
+ $arrow_class = "bot_utube_arow";
784
+ $width = 96;
785
+ $totwith = $width+28+$icons_space;
786
+ $twt_margin = $totwith/2;
787
+ $youtube_user = (isset($sfsi_section4_options['sfsi_youtube_user']) && !empty($sfsi_section4_options['sfsi_youtube_user'])) ? $sfsi_section4_options['sfsi_youtube_user'] : 'SpecificFeeds';
788
+ $visit_icon = $visit_iconsUrl."youtube.png";
789
+
790
+ $url = isset($sfsi_section2_options['sfsi_youtube_pageUrl']) && !empty($sfsi_section2_options['sfsi_youtube_pageUrl']) ? $sfsi_section2_options['sfsi_youtube_pageUrl'] : '';
791
+
792
+ //Giving alternative text to image
793
+ if(!empty($sfsi_section5_options['sfsi_youtube_MouseOverText']))
794
+ {
795
+ $alt_text = $sfsi_section5_options['sfsi_youtube_MouseOverText'];
796
+ }
797
+ else
798
+ {
799
+ $alt_text = "YOUTUBE";
800
+ }
801
+
802
+ /* check for icons to display */
803
+ $hoverdiv="";
804
+
805
+ $follow = isset($sfsi_section2_options['sfsi_youtube_follow']) && !empty($sfsi_section2_options['sfsi_youtube_follow']) ? $sfsi_section2_options['sfsi_youtube_follow'] : false;
806
+
807
+ $ypage = isset($sfsi_section2_options['sfsi_youtube_page']) && !empty($sfsi_section2_options['sfsi_youtube_page']) ? $sfsi_section2_options['sfsi_youtube_page'] : false;
808
+
809
+ if(false != $follow && $follow=="yes")
810
+ {
811
+ $hoverSHow = 1;
812
+
813
+ if($ypage =="yes")
814
+ {
815
+ $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img data-pin-nopin='true' alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
816
+ }
817
+ if($follow =="yes")
818
+ {
819
+ $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_YouTubeSub($youtube_user)."</div>";
820
+ }
821
+ }
822
+
823
+ /* fecth no of counts if active in admin section */
824
+ if(
825
+ $sfsi_section4_options['sfsi_youtube_countsDisplay']=="yes" &&
826
+ $sfsi_section4_options['sfsi_display_counts']=="yes"
827
+ )
828
+ {
829
+ if($sfsi_section4_options['sfsi_youtube_countsFrom']=="manual")
830
+ {
831
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_youtube_manualCounts']);
832
+ }
833
+ else if($sfsi_section4_options['sfsi_youtube_countsFrom']=="subscriber")
834
+ {
835
+ $followers = $socialObj->sfsi_get_youtube($youtube_user);
836
+ $counts = $socialObj->format_num($followers);
837
+ if(empty($counts))
838
+ {
839
+ $counts = (string) "0";
840
+ }
841
+ }
842
+ }
843
+
844
+ //Custom Skin Support {Monad}
845
+ if($active_theme == 'custom_support')
846
+ {
847
+ if(get_option("youtube_skin"))
848
+ {
849
+ $icon = get_option("youtube_skin");
850
+ }
851
+ else
852
+ {
853
+ $active_theme = 'default';
854
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
855
+ $icon=$icons_baseUrl.$active_theme."_youtube.png";
856
+ }
857
+ }
858
+ else
859
+ {
860
+ $icon=$icons_baseUrl.$active_theme."_youtube.png";
861
+ }
862
+ break;
863
+
864
+ case "pinterest" :
865
+
866
+ $width = 73;
867
+ $totwith = $width+28+$icons_space;
868
+ $twt_margin = $totwith/2;
869
+ $toolClass = "printst_tool_bdr";
870
+ $arrow_class = "bot_pintst_arow";
871
+
872
+ $pinterest_user = (isset($sfsi_section4_options['sfsi_pinterest_user']))
873
+ ? $sfsi_section4_options['sfsi_pinterest_user'] : '';
874
+ $pinterest_board = (isset($sfsi_section4_options['sfsi_pinterest_board']))
875
+ ? $sfsi_section4_options['sfsi_pinterest_board'] : '';
876
+
877
+ $visit_icon = $visit_iconsUrl."pinterest.png";
878
+ $url = (isset($sfsi_section2_options['sfsi_pinterest_pageUrl'])) ? $sfsi_section2_options['sfsi_pinterest_pageUrl'] : '';
879
+
880
+ //Giving alternative text to image
881
+ if(isset($sfsi_section5_options['sfsi_pinterest_MouseOverText']) && !empty($sfsi_section5_options['sfsi_pinterest_MouseOverText']))
882
+ {
883
+ $alt_text = $sfsi_section5_options['sfsi_pinterest_MouseOverText'];
884
+ }
885
+ else
886
+ {
887
+ $alt_text = "PINTEREST";
888
+ }
889
+
890
+ /* check for icons to display */
891
+ $hoverdiv="";
892
+
893
+ $pingblog = isset($sfsi_section2_options['sfsi_pinterest_pingBlog']) && !empty($sfsi_section2_options['sfsi_pinterest_pingBlog']) ? $sfsi_section2_options['sfsi_pinterest_pingBlog'] : false;
894
+
895
+ $page = isset($sfsi_section2_options['sfsi_pinterest_page']) && !empty($sfsi_section2_options['sfsi_pinterest_page']) ? $sfsi_section2_options['sfsi_pinterest_page'] : false;
896
+
897
+ $cDisplay = isset($sfsi_section4_options['sfsi_pinterest_countsDisplay']) && !empty($sfsi_section4_options['sfsi_pinterest_countsDisplay']) ? $sfsi_section4_options['sfsi_pinterest_countsDisplay'] : false;
898
+
899
+ $displayC = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts'] : false;
900
+
901
+ $cFrom = isset($sfsi_section4_options['sfsi_pinterest_countsFrom']) && !empty($sfsi_section4_options['sfsi_pinterest_countsFrom']) ? $sfsi_section4_options['sfsi_pinterest_countsFrom'] : false;
902
+ // var_dump($sfsi_section4_options['sfsi_pinterest_countsFrom'],$cFrom);die();
903
+
904
+ if($pingblog=="yes" )
905
+ {
906
+ $hoverSHow = 1;
907
+
908
+ if($page =="yes")
909
+ {
910
+ $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img data-pin-nopin='true' alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
911
+ }
912
+ if($pingblog=="yes")
913
+ {
914
+ $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_PinIt($current_url)."</div>";
915
+ }
916
+ }
917
+
918
+ /* fecth no of counts if active in admin section */
919
+ if($cDisplay == "yes" && $displayC=="yes")
920
+ {
921
+ if($cFrom=="manual")
922
+ {
923
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_pinterest_manualCounts']);
924
+ }
925
+ else if($cFrom=="pins")
926
+ {
927
+ $pins = $socialObj->sfsi_get_pinterest($current_url);
928
+ $counts = $pins;
929
+ if(empty($counts))
930
+ {
931
+ $counts=(string) "0";
932
+ }
933
+ }
934
+ }
935
+
936
+ //Custom Skin Support {Monad}
937
+ if($active_theme == 'custom_support')
938
+ {
939
+ if(get_option("pintrest_skin"))
940
+ {
941
+ $icon = get_option("pintrest_skin");
942
+ }
943
+ else
944
+ {
945
+ $active_theme = 'default';
946
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
947
+ $icon = $icons_baseUrl.$active_theme."_pinterest.png";
948
+ }
949
+ }
950
+ else
951
+ {
952
+ $icon=$icons_baseUrl.$active_theme."_pinterest.png";
953
+ }
954
+ break;
955
+
956
+ case "instagram" :
957
+ $toolClass = "instagram_tool_bdr";
958
+ $arrow_class = "bot_pintst_arow";
959
+
960
+ $url = (isset($sfsi_section2_options['sfsi_instagram_pageUrl'])) ? $sfsi_section2_options['sfsi_instagram_pageUrl'] : '';
961
+
962
+ $instagram_user_name = isset($sfsi_section4_options['sfsi_instagram_User']) && !empty($sfsi_section4_options['sfsi_instagram_User']) ? $sfsi_section4_options['sfsi_instagram_User'] : false;
963
+
964
+ //Giving alternative text to image
965
+ if(isset($sfsi_section5_options['sfsi_instagram_MouseOverText']) && !empty($sfsi_section5_options['sfsi_instagram_MouseOverText']))
966
+ {
967
+ $alt_text = $sfsi_section5_options['sfsi_instagram_MouseOverText'];
968
+ }
969
+ else
970
+ {
971
+ $alt_text = "INSTAGRAM";
972
+ }
973
+
974
+ $hoverdiv="";
975
+
976
+ $cDisplay = isset($sfsi_section4_options['sfsi_instagram_countsDisplay']) && !empty($sfsi_section4_options['sfsi_instagram_countsDisplay']) ? $sfsi_section4_options['sfsi_instagram_countsDisplay']: false;
977
+
978
+ $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
979
+
980
+ $cFrom = isset($sfsi_section4_options['sfsi_instagram_countsFrom']) && !empty($sfsi_section4_options['sfsi_instagram_countsFrom']) ? $sfsi_section4_options['sfsi_instagram_countsFrom']: false;
981
+
982
+ /* fecth no of counts if active in admin section */
983
+ if($cDisplay=="yes" && $Displayc=="yes")
984
+ {
985
+ if($cFrom=="manual")
986
+ {
987
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_instagram_manualCounts']);
988
+ }
989
+ else if($cFrom=="followers")
990
+ {
991
+ $counts = $socialObj->sfsi_get_instagramFollowers($instagram_user_name);
992
+ if(empty($counts))
993
+ {
994
+ $counts=(string) "0";
995
+ }
996
+ }
997
+ }
998
+
999
+ //Custom Skin Support {Monad}
1000
+ if($active_theme == 'custom_support')
1001
+ {
1002
+ if(get_option("instagram_skin"))
1003
+ {
1004
+ $icon = get_option("instagram_skin");
1005
+ }
1006
+ else
1007
+ {
1008
+ $active_theme = 'default';
1009
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1010
+ $icon=$icons_baseUrl.$active_theme."_instagram.png";
1011
+ }
1012
+ }
1013
+ else
1014
+ {
1015
+ $icon=$icons_baseUrl.$active_theme."_instagram.png";
1016
+ }
1017
+ break;
1018
+
1019
+ case "telegram" :
1020
+ $toolClass = "telegram_tool_bdr";
1021
+ $arrow_class = "bot_pintst_arow";
1022
+ $hoverdiv = '';
1023
+
1024
+ // $url = (isset($sfsi_section4_options['sfsi_telegram_pageURL'])) ? $sfsi_section4_options['sfsi_telegram_pageURL'] : '';
1025
+
1026
+ // $telegram_user_name = isset($sfsi_section4_options['sfsi_telegram_User']) && !empty($sfsi_section4_options['sfsi_telegram_User']) ? $sfsi_section4_options['sfsi_telegram_User'] : false;
1027
+
1028
+ //Giving alternative text to image
1029
+ if(isset($sfsi_section5_options['sfsi_telegram_MouseOverText']) && !empty($sfsi_section5_options['sfsi_telegram_MouseOverText']))
1030
+ {
1031
+ $alt_text = $sfsi_section5_options['sfsi_telegram_MouseOverText'];
1032
+
1033
+ }
1034
+ else
1035
+ {
1036
+ $alt_text = "telegram";
1037
+ }
1038
+ $messageus_icon = $visit_iconsUrl.$icon_name."_message.svg";
1039
+ $hoverdiv="";
1040
+ $cDisplay = isset($sfsi_section4_options['sfsi_telegram_countsDisplay']) && !empty($sfsi_section4_options['sfsi_telegram_countsDisplay']) ? $sfsi_section4_options['sfsi_telegram_countsDisplay']: false;
1041
+
1042
+ $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
1043
+ /* fecth no of counts if active in admin section */
1044
+ if($cDisplay=="yes" && $Displayc=="yes")
1045
+ {
1046
+
1047
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_telegram_manualCounts']);
1048
+ }
1049
+
1050
+ //Custom Skin Support {Monad}
1051
+ if($active_theme == 'custom_support')
1052
+ {
1053
+ if(get_option("telegram_skin"))
1054
+ {
1055
+ $icon = get_option("telegram_skin");
1056
+ }
1057
+ else
1058
+ {
1059
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1060
+ $icon=$icons_baseUrl."default_telegram.png";
1061
+ }
1062
+ }
1063
+ else
1064
+ {
1065
+ $icon=$icons_baseUrl.$active_theme."_telegram.png";
1066
+ }
1067
+ if(
1068
+ isset($sfsi_section2_options['sfsi_telegram_message']) && !empty($sfsi_section2_options['sfsi_telegram_message'])
1069
+ &&
1070
+ isset($sfsi_section2_options['sfsi_telegram_username']) && !empty($sfsi_section2_options['sfsi_telegram_username'])
1071
+
1072
+ ){
1073
+ $tg_username = $sfsi_section2_options['sfsi_telegram_username'];
1074
+ $tg_msg = stripslashes($sfsi_section2_options['sfsi_telegram_message']);
1075
+ $tg_msg = str_replace('"', '', str_replace("'", '', $tg_msg));
1076
+ $tg_msg = html_entity_decode(strip_tags($tg_msg), ENT_QUOTES,'UTF-8');
1077
+ $tg_msg = str_replace("%26%238230%3B", "...", $tg_msg);
1078
+ $tg_msg = rawurlencode($tg_msg);
1079
+
1080
+ $tele_url = "https://t.me/".$tg_username;
1081
+ $url = $tele_url."?&text=".urlencode($tg_msg);
1082
+ // var_dump($url);
1083
+ // die();
1084
+ // file_get_contents($url);
1085
+ }else{
1086
+ $url="#";
1087
+ $sfsi_onclick="event.preventDefault();";
1088
+ }
1089
+ if($active_theme=="glossy"){
1090
+ $sfsi_new_icons = "yes";
1091
+ }
1092
+ break;
1093
+ case "vk" :
1094
+ $toolClass = "vk_tool_bdr";
1095
+ $arrow_class = "bot_pintst_arow";
1096
+
1097
+ $url = (isset($sfsi_section2_options['sfsi_vk_pageURL'])) ? $sfsi_section2_options['sfsi_vk_pageURL'] : '';
1098
+
1099
+ // $vk_user_name = isset($sfsi_section4_options['sfsi_vk_User']) && !empty($sfsi_section4_options['sfsi_vk_User']) ? $sfsi_section4_options['sfsi_vk_User'] : false;
1100
+
1101
+ //Giving alternative text to image
1102
+ if(isset($sfsi_section5_options['sfsi_vk_MouseOverText']) && !empty($sfsi_section5_options['sfsi_vk_MouseOverText']))
1103
+ {
1104
+ $alt_text = $sfsi_section5_options['sfsi_vk_MouseOverText'];
1105
+ }
1106
+ else
1107
+ {
1108
+ $alt_text = "vk";
1109
+ }
1110
+
1111
+ $hoverdiv="";
1112
+
1113
+ $cDisplay = isset($sfsi_section4_options['sfsi_vk_countsDisplay']) && !empty($sfsi_section4_options['sfsi_vk_countsDisplay']) ? $sfsi_section4_options['sfsi_vk_countsDisplay']: false;
1114
+
1115
+ $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
1116
+
1117
+ /* fecth no of counts if active in admin section */
1118
+ if($cDisplay=="yes" && $Displayc=="yes")
1119
+ {
1120
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_vk_manualCounts']);
1121
+ }
1122
+
1123
+ //Custom Skin Support {Monad}
1124
+ if($active_theme == 'custom_support')
1125
+ {
1126
+ if(get_option("vk_skin"))
1127
+ {
1128
+ $icon = get_option("vk_skin");
1129
+ }
1130
+ else
1131
+ {
1132
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1133
+ $icon=$icons_baseUrl."default_vk.png";
1134
+ }
1135
+ }
1136
+ else
1137
+ {
1138
+ $icon=$icons_baseUrl.$active_theme."_vk.png";
1139
+ }
1140
+ if($active_theme=="glossy"){
1141
+ $sfsi_new_icons = "yes";
1142
+ }
1143
+
1144
+ break;
1145
+ case "ok" :
1146
+ $toolClass = "ok_tool_bdr";
1147
+ $arrow_class = "bot_pintst_arow";
1148
+
1149
+ $url = (isset($sfsi_section2_options['sfsi_ok_pageURL'])) ? $sfsi_section2_options['sfsi_ok_pageURL'] : '';
1150
+
1151
+ // $ok_user_name = isset($sfsi_section4_options['sfsi_ok_User']) && !empty($sfsi_section4_options['sfsi_ok_User']) ? $sfsi_section4_options['sfsi_ok_User'] : false;
1152
+
1153
+ //Giving alternative text to image
1154
+ if(isset($sfsi_section5_options['sfsi_ok_MouseOverText']) && !empty($sfsi_section5_options['sfsi_ok_MouseOverText']))
1155
+ {
1156
+ $alt_text = $sfsi_section5_options['sfsi_ok_MouseOverText'];
1157
+ }
1158
+ else
1159
+ {
1160
+ $alt_text = "ok";
1161
+ }
1162
+
1163
+ $hoverdiv="";
1164
+
1165
+ $cDisplay = isset($sfsi_section4_options['sfsi_ok_countsDisplay']) && !empty($sfsi_section4_options['sfsi_ok_countsDisplay']) ? $sfsi_section4_options['sfsi_ok_countsDisplay']: false;
1166
+
1167
+ $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
1168
+ /* fecth no of counts if active in admin section */
1169
+ if($cDisplay=="yes" && $Displayc=="yes")
1170
+ {
1171
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_ok_manualCounts']);
1172
+ }
1173
+
1174
+ //Custom Skin Support {Monad}
1175
+ if($active_theme == 'custom_support')
1176
+ {
1177
+ if(get_option("ok_skin"))
1178
+ {
1179
+ $icon = get_option("ok_skin");
1180
+ }
1181
+ else
1182
+ {
1183
+
1184
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1185
+ $icon=$icons_baseUrl."default_ok.png";
1186
+ }
1187
+ }
1188
+ else
1189
+ {
1190
+ $icon=$icons_baseUrl.$active_theme."_ok.png";
1191
+ }
1192
+ if($active_theme=="glossy"){
1193
+ $sfsi_new_icons = "yes";
1194
+ }
1195
+
1196
+ break;
1197
+ case "weibo" :
1198
+ $toolClass = "weibo_tool_bdr";
1199
+ $arrow_class = "bot_pintst_arow";
1200
+
1201
+ $url = (isset($sfsi_section2_options['sfsi_weibo_pageURL'])) ? $sfsi_section2_options['sfsi_weibo_pageURL'] : '';
1202
+
1203
+ // $weibo_user_name = isset($sfsi_section4_options['sfsi_weibo_User']) && !empty($sfsi_section4_options['sfsi_weibo_User']) ? $sfsi_section4_options['sfsi_weibo_User'] : false;
1204
+
1205
+ //Giving alternative text to image
1206
+ if(isset($sfsi_section5_options['sfsi_weibo_MouseOverText']) && !empty($sfsi_section5_options['sfsi_weibo_MouseOverText']))
1207
+ {
1208
+ $alt_text = $sfsi_section5_options['sfsi_weibo_MouseOverText'];
1209
+ }
1210
+ else
1211
+ {
1212
+ $alt_text = "weibo";
1213
+ }
1214
+
1215
+ $hoverdiv="";
1216
+
1217
+ $cDisplay = isset($sfsi_section4_options['sfsi_weibo_countsDisplay']) && !empty($sfsi_section4_options['sfsi_weibo_countsDisplay']) ? $sfsi_section4_options['sfsi_weibo_countsDisplay']: false;
1218
+
1219
+ $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
1220
+
1221
+ /* fecth no of counts if active in admin section */
1222
+ if($cDisplay=="yes" && $Displayc=="yes")
1223
+ {
1224
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_weibo_manualCounts']);
1225
+ }
1226
+
1227
+ //Custom Skin Support {Monad}
1228
+ if($active_theme == 'custom_support')
1229
+ {
1230
+ if(get_option("weibo_skin"))
1231
+ {
1232
+ $icon = get_option("weibo_skin");
1233
+ }
1234
+ else
1235
+ {
1236
+
1237
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1238
+ $icon=$icons_baseUrl."default_weibo.png";
1239
+ }
1240
+ }
1241
+ else
1242
+ {
1243
+ $icon=$icons_baseUrl.$active_theme."_weibo.png";
1244
+ }
1245
+ if($active_theme=="glossy"){
1246
+ $sfsi_new_icons = "yes";
1247
+ }
1248
+
1249
+ break;
1250
+ case "wechat" :
1251
+ $toolClass = "wechat_tool_bdr";
1252
+ $arrow_class = "bot_pintst_arow";
1253
+
1254
+ // $url = (isset($sfsi_section2_options['sfsi_wechat_pageURL'])) ? $sfsi_section2_options['sfsi_wechat_pageURL'] : '';
1255
+
1256
+ // $wechat_user_name = isset($sfsi_section4_options['sfsi_wechat_User']) && !empty($sfsi_section4_options['sfsi_wechat_User']) ? $sfsi_section4_options['sfsi_wechat_User'] : false;
1257
+
1258
+ //Giving alternative text to image
1259
+ if(isset($sfsi_section5_options['sfsi_wechat_MouseOverText']) && !empty($sfsi_section5_options['sfsi_wechat_MouseOverText']))
1260
+ {
1261
+ $alt_text = $sfsi_section5_options['sfsi_wechat_MouseOverText'];
1262
+ }
1263
+ else
1264
+ {
1265
+ $alt_text = "wechat";
1266
+ }
1267
+
1268
+ $hoverdiv="";
1269
+
1270
+ $cDisplay = isset($sfsi_section4_options['sfsi_wechat_countsDisplay']) && !empty($sfsi_section4_options['sfsi_wechat_countsDisplay']) ? $sfsi_section4_options['sfsi_wechat_countsDisplay']: false;
1271
+
1272
+ $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
1273
+
1274
+ /* fecth no of counts if active in admin section */
1275
+ if($cDisplay=="yes" && $Displayc=="yes")
1276
+ {
1277
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_wechat_manualCounts']);
1278
+ }
1279
+ $url = "weixin://dl/chat";
1280
+ if(
1281
+ (isset($sfsi_section2_options['sfsi_wechatFollow_option']) && "yes" == $sfsi_section2_options['sfsi_wechatFollow_option']) &&
1282
+
1283
+ (isset($sfsi_section2_options['sfsi_wechatShare_option']) && "yes" == $sfsi_section2_options['sfsi_wechatShare_option'])
1284
+ ){
1285
+ $hoverSHow = 1;
1286
+ $hoverdiv = "";
1287
+
1288
+ if(isset($sfsi_section2_options['sfsi_wechatFollow_option']) && !empty($sfsi_section2_options['sfsi_wechatFollow_option']) && "yes" == $option2['sfsi_wechatFollow_option']
1289
+
1290
+ && isset($sfsi_section2_options['sfsi_wechat_scan_image']) && !empty($sfsi_section2_options['sfsi_wechat_scan_image'])){
1291
+
1292
+ $image_url = $sfsi_section2_options['sfsi_wechat_scan_image'];
1293
+
1294
+ $hoverdiv.="<div class='icon1' style='text-align:center'><a href='' onclick='event.preventDefault();sfsi_wechat_follow(\"".$sfsi_section2_options['sfsi_wechat_scan_image']."\")' ><img data-pin-nopin='true' alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' style='height:25px' /></a></div>";
1295
+ }
1296
+
1297
+ if(isset($sfsi_section2_options['sfsi_wechatShare_option']) && !empty($sfsi_section2_options['sfsi_wechatShare_option'])
1298
+ && "yes" == $sfsi_section2_options['sfsi_wechatShare_option']){
1299
+
1300
+ $hoverdiv.="<div class='icon2' style='text-align:center' ><a href='".$url."' ".sfsi_checkNewWindow($url)." onclick='event.preventDefault();sfsi_wechat_share(\"".$sfsi_section2_options['sfsi_wechat_scan_image']."\")' ><img data-pin-nopin='true' alt='".$alt_text."' title='".$alt_text."' src='".$share_icon."' style='height:25px' /></a></div>";
1301
+ }
1302
+ }else{
1303
+
1304
+
1305
+ if(isset($sfsi_section2_options['sfsi_wechatFollow_option']) && !empty($sfsi_section2_options['sfsi_wechatFollow_option']) && "yes" == $sfsi_section2_options['sfsi_wechatFollow_option']
1306
+
1307
+ && isset($sfsi_section2_options['sfsi_wechat_scan_image']) && !empty($sfsi_section2_options['sfsi_wechat_scan_image'])){
1308
+
1309
+ $sfsi_onclick="event.preventDefault();sfsi_wechat_follow(\'".$sfsi_section2_options['sfsi_wechat_scan_image']."\')" ;
1310
+ }
1311
+
1312
+ if(isset($sfsi_section2_options['sfsi_wechatShare_option']) && 'yes'==($sfsi_section2_options['sfsi_wechatShare_option'])
1313
+ && "yes" == $sfsi_section2_options['sfsi_wechatShare_option']){
1314
+ if(!wp_is_mobile()){
1315
+ $sfsi_onclick="event.preventDefault();sfsi_wechat_share('".trim($current_url)."')" ;
1316
+ }else{
1317
+ $sfsi_onclick='';
1318
+ if(wp_is_mobile()){
1319
+ $sfsi_onclick = "console.log(event);event.stopPropagation&&event.stopPropagation();";
1320
+ }
1321
+ $sfsi_onclick.="event.preventDefault();sfsi_mobile_wechat_share('".trim($current_url)."')" ;
1322
+ }
1323
+ }
1324
+ $hoverSHow = 0;
1325
+ }
1326
+ //Custom Skin Support {Monad}
1327
+ if($active_theme == 'custom_support')
1328
+ {
1329
+ if(get_option("wechat_skin"))
1330
+ {
1331
+ $icon = get_option("wechat_skin");
1332
+ }
1333
+ else
1334
+ {
1335
+
1336
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1337
+ $icon=$icons_baseUrl."default_wechat.png";
1338
+ }
1339
+ }
1340
+ else
1341
+ {
1342
+ $icon=$icons_baseUrl.$active_theme."_wechat.png";
1343
+ }
1344
+ if($active_theme=="glossy"){
1345
+ $sfsi_new_icons = "yes";
1346
+ }
1347
+
1348
+ break;
1349
+
1350
+
1351
+ case "linkedin" :
1352
+ $width = 66;
1353
+ $toolClass = "linkedin_tool_bdr";
1354
+ $arrow_class = "bot_linkedin_arow";
1355
+
1356
+ $linkedIn_compayId = isset($sfsi_section2_options['sfsi_linkedin_followCompany']) && !empty($sfsi_section2_options['sfsi_linkedin_followCompany']) ? $sfsi_section2_options['sfsi_linkedin_followCompany'] : false;
1357
+
1358
+ $page = isset($sfsi_section2_options['sfsi_linkedin_page']) && !empty($sfsi_section2_options['sfsi_linkedin_page']) ? $sfsi_section2_options['sfsi_linkedin_page'] : false;
1359
+
1360
+ $follow = isset($sfsi_section2_options['sfsi_linkedin_follow']) && !empty($sfsi_section2_options['sfsi_linkedin_follow']) ? $sfsi_section2_options['sfsi_linkedin_follow'] : false;
1361
+
1362
+ $share = isset($sfsi_section2_options['sfsi_linkedin_SharePage']) && !empty($sfsi_section2_options['sfsi_linkedin_SharePage']) ? $sfsi_section2_options['sfsi_linkedin_SharePage'] : false;
1363
+
1364
+ $reBusiness = isset($sfsi_section2_options['sfsi_linkedin_recommendBusines']) && !empty($sfsi_section2_options['sfsi_linkedin_recommendBusines']) ? $sfsi_section2_options['sfsi_linkedin_recommendBusines'] : false;
1365
+
1366
+ $linkedIn_compay = $linkedIn_compayId;
1367
+ $linkedIn_ProductId = isset($sfsi_section2_options['sfsi_linkedin_recommendProductId']) && !empty($sfsi_section2_options['sfsi_linkedin_recommendProductId']) ? $sfsi_section2_options['sfsi_linkedin_recommendProductId'] : false;
1368
+
1369
+ $visit_icon = $visit_iconsUrl."linkedIn.png";
1370
+
1371
+ /*check for icons to display */
1372
+ $url = isset($sfsi_section2_options['sfsi_linkedin_pageURL']) && !empty($sfsi_section2_options['sfsi_linkedin_pageURL']) ? $sfsi_section2_options['sfsi_linkedin_pageURL'] : '';
1373
+
1374
+ if($follow =="yes" || $share =="yes" || $reBusiness =="yes")
1375
+ {
1376
+ $hoverSHow = 1;
1377
+ $hoverdiv = '';
1378
+
1379
+ if($page=="yes")
1380
+ {
1381
+ $hoverdiv.="<div class='icon4'><a href='".$url."' ".sfsi_checkNewWindow($url)."><img data-pin-nopin='true' alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
1382
+ }
1383
+ if($follow=="yes")
1384
+ {
1385
+ $hoverdiv.="<div class='icon1'>".$socialObj->sfsi_LinkedInFollow($linkedIn_compayId)."</div>";
1386
+ }
1387
+ if($share=="yes")
1388
+ {
1389
+ $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_LinkedInShare()."</div>";
1390
+ }
1391
+ if($reBusiness=="yes")
1392
+ {
1393
+ $hoverdiv.="<div class='icon3'>".$socialObj->sfsi_LinkedInRecommend($linkedIn_compay,$linkedIn_ProductId)."</div>";
1394
+ $width=99;
1395
+ }
1396
+ }
1397
+
1398
+ $cFrom = isset($sfsi_section4_options['sfsi_linkedIn_countsFrom']) && !empty($sfsi_section4_options['sfsi_linkedIn_countsFrom']) ? $sfsi_section4_options['sfsi_linkedIn_countsFrom'] : false;
1399
+
1400
+ $disp = isset($sfsi_section4_options['sfsi_linkedIn_countsDisplay']) && !empty($sfsi_section4_options['sfsi_linkedIn_countsDisplay']) ? $sfsi_section4_options['sfsi_linkedIn_countsDisplay'] : false;
1401
+
1402
+ $dcount = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts'] : false;
1403
+
1404
+ /* fecth no of counts if active in admin section */
1405
+ if($disp=="yes" &&$dcount=="yes")
1406
+ {
1407
+ if($cFrom=="manual")
1408
+ {
1409
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_linkedIn_manualCounts']);
1410
+ }
1411
+ else if($cFrom=="follower")
1412
+ {
1413
+ $linkedIn_compay = $sfsi_section4_options['ln_company'];
1414
+ $ln_settings = array(
1415
+ 'ln_api_key'=>$sfsi_section4_options['ln_api_key'],
1416
+ 'ln_secret_key'=>$sfsi_section4_options['ln_secret_key'],
1417
+ 'ln_oAuth_user_token'=>$sfsi_section4_options['ln_oAuth_user_token']
1418
+ );
1419
+
1420
+ $followers=$socialObj->sfsi_getlinkedin_follower($linkedIn_compay,$ln_settings);
1421
+ (int) $followers;
1422
+ $counts=$socialObj->format_num($followers);
1423
+ if(empty($counts))
1424
+ {
1425
+ $counts = (string) "0";
1426
+ }
1427
+ }
1428
+ }
1429
+ $totwith = $width+28+$icons_space;
1430
+ $twt_margin = $totwith/2;
1431
+
1432
+ //Giving alternative text to image
1433
+ if(isset($sfsi_section5_options['sfsi_linkedIn_MouseOverText']) && !empty($sfsi_section5_options['sfsi_linkedIn_MouseOverText']))
1434
+ {
1435
+ $alt_text = $sfsi_section5_options['sfsi_linkedIn_MouseOverText'];
1436
+ }
1437
+ else
1438
+ {
1439
+ $alt_text = "LINKEDIN";
1440
+ }
1441
+
1442
+ //Custom Skin Support {Monad}
1443
+ if($active_theme == 'custom_support')
1444
+ {
1445
+ if(get_option("linkedin_skin"))
1446
+ {
1447
+ $icon = get_option("linkedin_skin");
1448
+ }
1449
+ else
1450
+ {
1451
+ $active_theme = 'default';
1452
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1453
+ $icon=$icons_baseUrl.$active_theme."_linkedin.png";
1454
+ }
1455
+ }
1456
+ else
1457
+ {
1458
+ $icon=$icons_baseUrl.$active_theme."_linkedin.png";
1459
+ }
1460
+ break;
1461
+
1462
+ default:
1463
+ $border_radius = "";
1464
+ //$border_radius =" border-radius:48%;";
1465
+ $cmcls = "cmcls";
1466
+ $padding_top = "";
1467
+ if($active_theme=="badge")
1468
+ {
1469
+ //$border_radius="border-radius: 18%;";
1470
+ }
1471
+ if($active_theme=="cute")
1472
+ {
1473
+ //$border_radius="border-radius: 38%;";
1474
+ }
1475
+
1476
+ $custom_icon_urls = unserialize($sfsi_section2_options['sfsi_CustomIcon_links']);
1477
+ $url = (isset($custom_icon_urls[$icon_n]) && !empty($custom_icon_urls[$icon_n])) ? $custom_icon_urls[$icon_n]:'';
1478
+ $toolClass = "custom_lkn";
1479
+ $arrow_class = "";
1480
+ $custom_icons_hoverTxt = unserialize($sfsi_section5_options['sfsi_custom_MouseOverTexts']);
1481
+ $icons = unserialize($sfsi_section1_options['sfsi_custom_files']);
1482
+ $icon = isset($icons[$icon_n])?$icons[$icon_n]:'';
1483
+
1484
+ //Giving alternative text to image
1485
+ if(!empty($custom_icons_hoverTxt[$icon_n]))
1486
+ {
1487
+ $alt_text = $custom_icons_hoverTxt[$icon_n];
1488
+ }
1489
+ else
1490
+ {
1491
+ $alt_text = "SOCIALICON";
1492
+ }
1493
+ break;
1494
+ }
1495
+ $icons="";
1496
+ /* apply size of icon */
1497
+ if($is_front==0)
1498
+ {
1499
+ $icons_size = $sfsi_section5_options['sfsi_icons_size'];
1500
+ $itemselector = "sfsi_wicons shuffeldiv";
1501
+ $innrselector = "inerCnt";
1502
+ }
1503
+ else
1504
+ {
1505
+ $icons_size = 51;
1506
+ $itemselector = "sfsi_wicons";
1507
+ $innrselector = "inerCnt";
1508
+ }
1509
+
1510
+ /* spacing and no of icons per row */
1511
+ $icons_space = '';
1512
+ $icons_space = $sfsi_section5_options['sfsi_icons_spacing'];
1513
+ $icon_width = (int)$icons_size;
1514
+ /* check for mouse hover effect */
1515
+ $icon_opacity="1";
1516
+
1517
+ if($sfsi_section3_options['sfsi_mouseOver']=='yes')
1518
+ {
1519
+ $mouse_hover_effect=$sfsi_section3_options["sfsi_mouseOver_effect"];
1520
+ if($mouse_hover_effect=="fade_in" || $mouse_hover_effect=="combo")
1521
+ {
1522
+ $icon_opacity="0.6";
1523
+ }
1524
+ }
1525
+
1526
+ $toolT_cls='';
1527
+ if((int) $icon_width <=49 && (int) $icon_width >=30)
1528
+ {
1529
+ $bt_class="";
1530
+ $toolT_cls="sfsiTlleft";
1531
+ }
1532
+ else if((int) $icon_width <=20)
1533
+ {
1534
+ $bt_class="sfsiSmBtn";
1535
+ $toolT_cls="sfsiTlleft";
1536
+ }
1537
+ else
1538
+ {
1539
+ $bt_class="";
1540
+ $toolT_cls="sfsiTlleft";
1541
+ }
1542
+
1543
+ if($toolClass=="rss_tool_bdr" || $toolClass=='email_tool_bdr' || $toolClass=="custom_lkn" || $toolClass=="instagram_tool_bdr" )
1544
+ {
1545
+ $new_window = sfsi_checkNewWindow();
1546
+ $url = $url;
1547
+ }
1548
+ else if($hoverSHow)
1549
+ {
1550
+ if(!wp_is_mobile())
1551
+ {
1552
+ $new_window = sfsi_checkNewWindow();
1553
+ $url = $url;
1554
+ }
1555
+ else
1556
+ {
1557
+ $new_window = '';
1558
+ $url = "javascript:void(0)";
1559
+ }
1560
+ }
1561
+ else
1562
+ {
1563
+ $new_window = sfsi_checkNewWindow();
1564
+ $url = $url;
1565
+ }
1566
+
1567
+ if(isset($sfsi_onclick)){
1568
+ $new_window ="";
1569
+ }
1570
+
1571
+ if(!isset($sfsi_new_icons)){
1572
+ $sfsi_new_icons =false;
1573
+ }
1574
+ if($sfsi_new_icons){
1575
+ $margin_bot="4px;";
1576
+ }else{
1577
+ $margin_bot="5px;";
1578
+ }
1579
+ if($sfsi_section4_options['sfsi_display_counts']=="yes")
1580
+ {
1581
+ if($sfsi_new_icons){
1582
+ $margin_bot = "29px;";
1583
+ }else{
1584
+ $margin_bot = "30px;";
1585
+ }
1586
+ }
1587
+ if(isset($icon) && !empty($icon) && filter_var($icon, FILTER_VALIDATE_URL))
1588
+ {
1589
+ $icons.= "<div style='width:".$icon_width."px; height:".$icon_width."px;margin-left:".$icons_space."px;margin-bottom:".$margin_bot." ".($sfsi_new_icons?'padding:0px':'')."' class='".$itemselector." ".$cmcls."' >";
1590
+
1591
+ $icons.= "<div class='".$innrselector."'>";
1592
+
1593
+ $icons.= "<a class='".$class." sficn' data-effect='".$mouse_hover_effect."' $new_window href='".$url."' ".(('vk'!==$icon_name)?"id='sfsiid_".$icon_name."'":'')." style='opacity:".$icon_opacity."' ".(isset($sfsi_onclick)?'onclick="'.$sfsi_onclick.'"':'')." >";
1594
+ $icons.= "<img data-pin-nopin='true' alt='".$alt_text."' title='".$alt_text."' src='".$icon."' width='".$icons_size."' height='".$icons_size."' style='".$border_radius.$padding_top."' class='sfcm sfsi_wicon ".(in_array($icon_name,array('telegram','wechat'))?('sfsi_'.$icon_name.'_wicon sfsi_click_wicon'):(''))."' data-effect='".$mouse_hover_effect."' />";
1595
+ $icons.= '</a>';
1596
+ if(isset($counts) && $counts!='')
1597
+ {
1598
+ $icons.= '<span class="bot_no '.$bt_class.'">'.$counts.'</span>';
1599
+ }
1600
+ if($hoverSHow && !empty($hoverdiv))
1601
+ {
1602
+ $icons.= '<div class="sfsi_tool_tip_2 '.$toolClass.' '.$toolT_cls.'" style="width:'.$width.'px ;opacity:0;z-index:-1;margin-left:-'.$twt_margin.'px;" id="sfsiid_'.$icon_name.'">';
1603
+ $icons.= '<span class="bot_arow '.$arrow_class.'"></span>';
1604
+ $icons.= '<div class="sfsi_inside">'.$hoverdiv."</div>";
1605
+ $icons.= "</div>";
1606
+ }
1607
+ $icons.="</div>";
1608
+ $icons.="</div>";
1609
+ }
1610
+ return $icons;
1611
+ }
1612
+
1613
+ /* make url for new window */
1614
+ function sfsi_checkNewWindow()
1615
+ {
1616
+ global $wpdb;
1617
+ $sfsi_section5_options= unserialize(get_option('sfsi_section5_options',false));
1618
+ if($sfsi_section5_options['sfsi_icons_ClickPageOpen']=="yes")
1619
+ {
1620
+ return $new_window="target='_blank'";
1621
+ }
1622
+ else
1623
+ {
1624
+ return '';
1625
+ }
1626
+ }
1627
  ?>
readme.txt CHANGED
@@ -1,849 +1,847 @@
1
- === Social Media Share Buttons & Social Sharing Icons ===
2
- Contributors: socialdude, socialtech
3
- Tags: social media, share, buttons, social widget, icons, share icons, share buttons, sharing icons, sharing buttons, social share, sharing, social sharing
4
- Requires at least: 3.5
5
- Tested up to: 5.2
6
- Stable tag: 2.3.7
7
- License: GPLv2
8
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
-
10
- Share buttons and share icons plugin for social media sharing on Facebook, Twitter, Instagram, Whatsapp, Pinterest etc.
11
-
12
- == Description ==
13
-
14
- Social media plugin which let's you add share icons for RSS, Email, Facebook, Twitter, LinkedIn, Pinterest, Instagram, Youtube, 'Share' (covering 200+ other social media platforms) and upload custom share icons of your choice.
15
-
16
- This free plugin has a lot to offer. Even more can be found in the Premium Plugin, please watch this short video:
17
-
18
- [vimeo https://vimeo.com/269140798]
19
-
20
- See [all features of the Premium plugin](https://www.ultimatelysocial.com/usm-premium/).
21
-
22
- The free social media plugin includes the following features:
23
-
24
- - Pick from 16 different designs for your social media share icons
25
- - Give several actions to one social media share icon (e.g. your facebook share icon can lead visitors to your Facebook page, and also give visitors the opportunity to like your page)
26
- - Decide to give your social media icons an animation (e.g. automatic shuffling, mouse-over effects) to make your visitors aware of the share icons, increasing the chance that they follow/share your blog
27
- - Make your social media icons 'float' or 'sticky'
28
- - Allow visitors to subscribe to your blog by Email
29
- - Add 'counts' to your social media buttons
30
- - Decide to display a pop-up (on all or only on selected pages) asking people to follow/share you via your social media icons
31
- - Decide to display sharing-buttons and social media icons at the end of every post
32
- - Select from many other customization features for your socialmedia icons!
33
-
34
- For GDPR compliance, please have a look at our [Social Media GDPR Compliance page](https://ultimatelysocial.com/gdpr/).
35
-
36
- The social media plugin is very easy to use as it takes you through all the steps:
37
-
38
- - Step 1: Choose which social media icons you want to display
39
- - Step 2: Define what actions your social media icons should perform
40
- - Step 3: Pick design & animation options for your social media icons
41
- - Step 4: Add counts to your social media icons (optional)
42
- - Step 5: Select from various other social share options, e.g. make your social media icons 'float'
43
- - Step 6: Add sharing/linking icons next to each blog post (optional)
44
- - Step 7: Add a customized pop-up asking people to follow or share (optional)
45
- - Step 8: Add a subscription form on your site (optional)
46
-
47
- In case of issues or questions please ask in the [Support forum](https://wordpress.org/support/plugin/ultimate-social-media-icons).
48
-
49
- We hope you enjoy the free social media plugin!
50
-
51
- = New Premium Plugin =
52
-
53
- We released a Premium Plugin with many more exciting features:
54
-
55
- - **Many more social networks** supported, including Snapchat share buttons, Whatsapp share buttons, Yummly share buttons, Phone button, Yelp share buttons, Soundcloud share buttons, Skype share buttons Flickr share buttons, Blogger share buttons, Reddit share buttons, Vimeo share buttons, Tumblr share buttons, Xing share buttons, Vkontakte share buttons (VK), Telegram share buttons, Amazon share buttons, Goodreads share buttons, Angies list share buttons, Steam share buttons, Twitch share buttons, Spotify share buttons, Odnoklassniki share buttons (OK), Buffer share buttons, Weibo share buttons, Pocket share buttons, Meneame share buttons, Frype share buttons, LiveJournal share buttons, Patreon share buttons, Dloky share buttons, Discord share buttons, Github share buttons, Wordpress buttons, Etsy share buttons, Better Business Bureau share buttons, Digg share buttons, Delicious share buttons, Print share buttons, and many other share buttons!
56
- - **More design styles** to make your social share icons look really cool & matching the design of your website
57
- - **Themed design styles**, e.g. if you have a website about cats you can pick from social media logos which look like cats etc.
58
- - **Better social sharing and following features**, e.g. you can define the Tweet-texts better (e.g. pull the post titles into your Tweets automatically), let people follow you on Facebook directly without leaving your site etc.
59
- - **Place the social icons on specific pages**, i.e. you can define on which pages the icons to the social media sites should not show
60
- - **Position the social icons by anchor and margins**, i.e. you can define the margins where your share icons should be displayed (from top/bottom/left/right), and then have them floating, or stick, still visible when user scrolls down or not etc.
61
- - **Optimized for mobile** - you can define separate selections for your social network icons for mobile
62
- - **More functions for email icon**, such as Share (by email), Contact you, Link to a certain page etc.
63
- - **Social media counters optimized** to encourage more social media sharing from your visitors
64
- - **More pop up options** which contain your social media buttons, e.g. define a limit to how often the pop-up is shown to the same user, show pop-up only when people try to leave your website etc.
65
- - **Friendly support** in case you're stuck
66
- - **Many more settings and options** for your social media network icons
67
-
68
- Have a look at the [Premium Plugin features](https://www.ultimatelysocial.com/usm-premium/)
69
-
70
-
71
- == Installation ==
72
- Extract the zip file and drop the contents into the wp-content/plugins/ directory of your WordPress installation. Then activate the plugin from the plugins page.
73
-
74
- Then go to plugin settings page and follow the instructions. After you're done, go to the Widget area (Appearance >> Widget) and place the widget on your sidebar to display your social sharing icons on your blog.
75
-
76
- Note: This plugin requires CURL to be activated/installed on your server (which should be the standard case), and a PHP version of 5.4 or above. If you don't have it, please contact your hosting provider or server admin.
77
-
78
- == Frequently Asked Questions ==
79
- = Please also check the more comprehensive FAQ on http://ultimatelysocial.com/faq =
80
-
81
- .
82
-
83
- = I face fundamental issues (the plugin doesn't load etc.) =
84
-
85
- Please ensure that:
86
-
87
- - You're using the latest version of the plugin(s)
88
- - Your site is running on PHP 5.4 or above
89
- - You have CURL activated (should be activated by default)
90
-
91
- If you're not familiar with those please contact your hosting company or server admin.
92
-
93
- Please check if you have browser extensions activated which may conflict with the plugin. Known culprits include:
94
-
95
- - Open SEO Stats (Formerly: PageRank Status) in Chrome
96
- - Adblock Plus in Chrome
97
- - Vine in Chrome
98
-
99
- Either de-activate those extensions or try it in a different browser.
100
-
101
- If the plugin setting's area looks 'funny' after an upgrade then please clear your cache with String+F5 (PC) or Command+R (Mac).
102
-
103
- If you get the error message “Are you sure you want to do this? / Please try again” when uploading the socialsharing plugin: Some servers may have a low limits with respect to permitted upload times. Please set the values in the “php.ini” file to:
104
-
105
- max_execution_time 90
106
- post_max_size 48M
107
-
108
- If you don’t know how to do it, please contact your server support / hosting company for that. Tell them you need it for a social sharing plugin on WordPress which may take longer to upload.
109
-
110
- If your issue is still not fixed after you’ve followed the steps above, we can provide support as part of our share to social Premium Plugin: https://www.ultimatelysocial.com/usm-premium/.
111
-
112
- = I get error messages 'Error : 7', 'Error : 56', 'Error : 6' etc. =
113
-
114
- Those point to a CURL-issue on your site. Please contact your server admin or your hosting company to resolve it.
115
-
116
- The plugin requires CURL for the social share counts and other features.
117
-
118
- = Social share icons don't show =
119
-
120
- Please ensure you actually placed the social share buttons either as social widget (in your widget area) or as floating icons under question 5). The Premium Plugin makes placing the social icons especially easy and also allows you to place sticky social share icons on your site, define the placement of the social share icons by margins and many other options, see https://www.ultimatelysocial.com/usm-premium/.
121
-
122
- If only some social share icons show, but not all, then please clear your cache, and check if you may have conflicting browser extensions (e.g. 'Disconnect'-app in Chrome). Also Ad-Blockers are known culprits, please switch them off temporarily to see if that is the reason.
123
-
124
- If the social share icons still don't show then there's an issue with your template. Please contact the creator of your template for that.
125
-
126
- If you are referring to specific social share icons not showing in the plugin itself (e.g. you're looking for a Whatsapp share icon, but it doesnt exist) please note that our Premium Plugin has many more social media share icons, see https://www.ultimatelysocial.com/usm-premium/
127
-
128
- = Twitter social share counts are not displaying (anymore) =
129
-
130
- Unfortunately, Twitter stopped providing any social share count. God knows why.
131
-
132
- = Changes don't get saved / Deleted plugin but the social share icons still show =
133
-
134
- Most likely you have the WP Cache plugin installed. Please de-activate and then re-activate it, then the social share icons should display again.
135
-
136
- = Links when clicking on the social share icons don't work =
137
-
138
- Please ensure you've entered the 'http://' at the beginning of the url (for *all* social networks). If the social share icons are not clickable at all there is most likely an issue with your template. This is especially the case if you've given your social share buttons several features, which should show a pop-up (tooltip) when you move over the social share icons.
139
-
140
- = I cannot upload custom social share icons =
141
-
142
- Most likely that's because you've set 'allow_url_fopen' to 'off'. Please turn it to 'on' (or ask your server admin to do so, he'll know what to do. Tell them you need it to upload custom share icons for a social media buttons plugin).
143
-
144
- = My Youtube social share icon (direct follow) doesn't work =
145
-
146
- Please ensure that you've selected the radio button 'Username' when you enter a youtube username, or 'Channel ID' when you entered a channel ID.
147
-
148
- = Aligning the social share icons (centered, left- or right-aligned) doesn't work =
149
-
150
- The alignment options under question 5 align the social share icons with respect to each other, not where they appear on the page. Our new Premium Plugin is the best social sharing plugin on the market, allowing you to define also many other social share icon alignments (e.g. within a widget, within shortcode etc.).
151
-
152
- = Clicking on the RSS icon returns funny codes =
153
-
154
- That's normal. RSS users will know what to do with it (i.e. copy & paste the url into their RSS readers).
155
-
156
- = Facebook 'like'-count isn't correct =
157
-
158
- When you 'like' something on your blog via facebook it likes the site you're currently on (e.g. your blog) and not your Facebook page.
159
-
160
- The new Premium Plugin also allows to show the number of your Facebook page likes, see https://www.ultimatelysocial.com/usm-premium/.
161
-
162
- = Sharing doesn't take the right text or picture =
163
-
164
- We use the share codes from Facebook etc. and therefore don't have any influence over which text & pic Facebook decides to share.
165
-
166
- Note that you can define an image as 'Featured Image' which tells Facebook etc. to share that one. You'll find this 'Featured Image' section in your blog's admin area where you can edit your blog post.
167
-
168
- You can crosscheck which image Facebook will take by entering your url on https://developers.facebook.com/tools/debug/og/object/.
169
-
170
- UPDATE: we made significant enhancements to the premium plugin, it now allows you to define the sharing pics and texts for your social share icons.
171
-
172
- = The pop-up shows although I only gave my social share icon one function =
173
-
174
- The pop-up only disappears if you've given your social share icons only a 'visit us'-function, otherwise (e.g. if you gave it 'Like' (on facebook) or 'Tweet' functions) a pop-up is still needed because the social share buttons for those are coming directly from the social media sites (e.g. Facebook, Twitter) and we don't have any influence over their design.
175
-
176
- = I selected to display the social share icons after every post but they don't show =
177
-
178
- The social share icons usually do show, however not on your blog page, but on your single posts pages. The Premium plugin (https://www.ultimatelysocial.com/usm-premium/) also allows to display the social share icons on your homepage.
179
-
180
- = Plugin decreases my site's loading speed =
181
-
182
- The plugin is one of the most optimized social media plugin in terms of impact on a site's loading speed (optimized code, compressed pictures etc.).
183
-
184
- If you still experience loading speed issues, please note that:
185
-
186
- - The more sharing- and invite- features you place on your site, the more external codes you load (i.e. from the social media sites; we just use their share code), therefore impacting loading speed. So to prevent this, give your social share icons only 'Visit us'-functionality rather than sharing-functionalities.
187
-
188
- - We've programmed it so that the code for the social media icons is the one which loads lasts on your site, i.e. after all the other content has already been loaded. This means: even if there is a decrease in loading speed, it does not impact a user's experience because he sees your site as quickly as before, only the social media icons take a bit longer to load.
189
-
190
- There might be also other issues on your site which cause a high loading speed (e.g. conflicts with our plugins or template issues). Please ask your template creator about that.
191
-
192
- Also, if you've uploaded social media sharing icons not provided by the plugin itself (i.e. custom share icons) please ensure they are compressed as well.
193
-
194
- = After moving from demo-server to live-server the follow/subscribe-link doesn't work anymore =
195
-
196
- Please delete and install the plugin again.
197
-
198
- If you already placed the code for a subscription form on your site, remove it again and take the new one from the new plugin installation.
199
-
200
- = There are other issues when I activate the plugin or place the social share icons =
201
-
202
- Please check the following:
203
-
204
- The plugin requires that CURL is installed & activated on your server (which should be the standard case). If you don't have it, please contact your hosting provider.
205
-
206
- Please ensure that you don't have any browser extension activated which may conflict with the plugin, esp. those which block certain content. Known culprits include the 'Disconnect' extension in Chrome or the 'Privacy Badger' extension in Firefox.
207
-
208
- If issues persist most likely your theme has issues which makes it incompatible with our plugin. Please contact your template creator for that. As part of the Premium Plugin (https://www.ultimatelysocial.com/usm-premium/) we fix also theme issues, and provide support to ensure that your social media share buttons appear on your site (exactly where you want them).
209
-
210
- = How can I see how many people decided to share or like my post? =
211
-
212
- You can see this by activating the social share 'counts' on the front end (under question 4 in the USM plugin, question 5 in the USM+ plugin).
213
-
214
- We cannot provide you this data in other ways as it's coming directly from the social media sites. One exception: if you like to know when people start to follow you by email, then you can get email alerts. For that, please claim your feed (see question above).
215
-
216
- = How can I change the 'Please follow & like us :)'? =
217
-
218
- You can change it in the Widget-area where you dropped the widget (with the social share icons) on the sidebar. Please click on it (on the sidebar), it will open the menu where you can change the text.
219
-
220
- If you don't want to show any text, just enter a space (' ').
221
-
222
- = Can I use a shortcode to place the social share icons? =
223
-
224
- Yes, use [DISPLAY_ULTIMATE_SOCIAL_ICONS] to show the social share icons. You can place it into any editor.
225
-
226
- Alternatively, you can place the following into your codes to show the share icons: <?php echo do_shortcode('[DISPLAY_ULTIMATE_SOCIAL_ICONS]'); ?>
227
-
228
- In some cases there might be issues to display social media sharing buttons which you uploaded as custom share icons. In this case, we provide support as part of our premium plugin: https://www.ultimatelysocial.com/usm-premium/
229
-
230
- = Can I get more options for the social share icons next to posts? =
231
-
232
- Please use this plugin for that: https://www.ultimatelysocial.com/usm-premium/
233
-
234
- = Can I also give the email-icon a 'mailto:' functionality? =
235
-
236
- Yes, that is possible in our new social share plugin, the Premium Plugin: https://www.ultimatelysocial.com/usm-premium/
237
-
238
- = Can I also display the social share icons vertically? =
239
-
240
- Yes, that is possible in our new social sharing plugin, the Premium Plugin: https://www.ultimatelysocial.com/usm-premium/.
241
-
242
- = How can I change the text on the 'visit us'-buttons? =
243
-
244
- Use this plugin: https://www.ultimatelysocial.com/usm-premium/
245
-
246
- = Can I deactivate the social share icons on mobile? =
247
-
248
- Yes, you can disable the share icons under question 5. In our new Premium Plugin you can define different settings for mobile, see https://www.ultimatelysocial.com/usm-premium/. The best way to share social media! :)
249
-
250
- = How can I use two instances of the plugin on my site? =
251
-
252
- You cannot use the same plugin twice, however you can install both the USM as well as the Premiuem plugin (https://www.ultimatelysocial.com/usm-premium/). We've developed the code so that there are no conflicts and you can place the share icons in one way with one plugin, and select other share icons with the other plugin and place them differently.
253
-
254
-
255
- == Screenshots ==
256
-
257
- 1. After installing the plugin, you'll see this overview. You'll be taken through the easy-to-understand steps to configure your plugin
258
-
259
- 2. As a first step you select which share icons you want to display on your website
260
-
261
- 3. Then you'll define what the share icons should do (they can perform several actions, e.g. lead users to your facebook page, or allow them to share your content on their facebook page)
262
-
263
- 4. You can pick from a wide range of share icon designs
264
-
265
- 5. Here you can animate your social share icons (automatic shuffling, mouse-over effects etc.), to make visitors of your site aware that they can share, follow & like your site
266
-
267
- 6. You can choose to display counts next to your social share icons (e.g. number of Twitter-followers)
268
-
269
- 7. There are many more options to choose from
270
-
271
- 8. You can also add social share icons at the end of every post
272
-
273
- 9. ...or even display a pop-up (designed to your liking) which asks users to like & share your site
274
-
275
-
276
- == Changelog ==
277
- = 2.3.7 =
278
- * solved: Wrong link on icons when curl not installed.
279
-
280
- = 2.3.6 =
281
- * Solved: Updated Text changes.
282
-
283
- = 2.3.5 =
284
- * Solved: Updated Text changes.
285
-
286
- = 2.3.4 =
287
- * Solved: Updated Text changes.
288
- * Solved: Updated link for email.
289
-
290
- = 2.3.3 =
291
- * Solved: Updated the email link and subscription action.
292
-
293
- = 2.3.2 =
294
- * Solved: Updated feedback system.
295
-
296
- = 2.3.1 =
297
- * Solved: Updated feedback system.
298
-
299
- = 2.3.0 =
300
- * Solved: Errors on the footer in dashboard corected.
301
- * Solved: Updated logic for inclusion of external js.
302
- * Solved: Some grametical errors.
303
- * Solved: Updated feedback system.
304
-
305
- = 2.2.9 =
306
- * Solved: After post icons shown.
307
-
308
- = 2.2.8 =
309
- * Solved: Header already sent error on some servers.
310
-
311
- = 2.2.7 =
312
- * Solved: Updated feedback system to next version.
313
- * Solved: Responsive Icons UI updated.
314
-
315
- = 2.2.6 =
316
-
317
- * New Feature: Responsive icons in free plugin.
318
- * Solved: Icons not rendering on woocomerce product page.
319
- * Solved: Twitter url changed to share from intent for better reliablity.
320
- * Solved: Lots of little adjustments to improve the UI and functionality.
321
- * Solved: Removed Google Plus.
322
- * Solved: Stop loading unused external library code for faster load.
323
- * Solved: Removed curl notice while activation.
324
- * Solved: Fixed broken arrays and missing indexes.
325
- * Solved: Updated feedback system to next version.
326
-
327
- = 2.2.5 =
328
- * Integrated feedback system
329
-
330
- = 2.2.4 =
331
- * Solved: Unserialized error corrected.
332
- * Solved: All curl calls to wp_remote.
333
- * Solved: Notices in front end solved.
334
-
335
- = 2.2.3 =
336
- * Solved: Footer Error solved.
337
- * Solved: Removed most of the html errors.
338
- * Solved: Less anoying sidebar.
339
-
340
- = 2.2.2 =
341
- * Solved: More icons upadated
342
- * Solved: Icon backgrounds updated
343
-
344
- = 2.2.1 =
345
- * Solved: woocomerce conflict resolved
346
- * Solved: alert in case on conflict.
347
- * new Feature: More icons for free plugin
348
-
349
- = 2.2.0 =
350
- * Solved: Critical Security Patch.
351
-
352
- = 2.1.9 =
353
- * Solved: Security Patch.
354
-
355
- = 2.1.8 =
356
- * Solved: security update.
357
-
358
- = 2.1.7 =
359
- * Solved: save button not working.
360
-
361
- = 2.1.6 =
362
- * Solved: compatablity issue with older versions.
363
-
364
- = 2.1.5 =
365
- * Solved: google plus is deprecated
366
- * Solved: Sf count not shown
367
- * Solved: Sf subscribe form opens blank page.
368
- * solved: decreased the manual intervestions of upgradation to premium.
369
-
370
- = 2.1.4 =
371
- * Solved: Changed theme check url to match bloginfo url.
372
-
373
- = 2.1.3 =
374
- * Solved: Email validation for Offline chat.
375
- * Solved: Premium notification breaking the dashboard structure.
376
- * Solved: changed option for linkedin count
377
- * Solved: ajax_object conflict with themes.
378
- * Solved: new keyword check from page title, page keywords and page description.
379
-
380
- = 2.1.2 =
381
- * Solved: Text optimized
382
-
383
- = 2.1.1 =
384
- * Solved: design changes for chat.
385
- * Solved: unexpected charactor "[" error for php version 5.3.
386
-
387
- = 2.1.0 =
388
- * New Feature: Chat for site admin on our settings page.
389
- * Solved: removed deprecated jQuery functions.
390
- * Solved: Rectangle icon alignemnt problem on some themes solved.
391
-
392
- = 2.0.9 =
393
- * Banner for animation section in Question 4 added
394
- * Different icon for mouseover section pointing in premium in Question 4 added
395
- * Removed theme icon banner if no match
396
-
397
- = 2.0.8 =
398
- * Solved: Notification bar cannot be seen anymore
399
- * Solved: cleared the float elements after notice.
400
-
401
- = 2.0.7 =
402
- * Round green follow button doesn't show - fixed
403
- * Footer optimized
404
-
405
- = 2.0.6 =
406
- * Fixed bug that sometimes banner didn't disappear
407
- * Links in review message updated
408
-
409
- = 2.0.5 =
410
- * Issue with click on icons on mobile fixed
411
-
412
- = 2.0.4 =
413
- * Corrected missing ? in shortcode
414
-
415
- = 2.0.3 =
416
- * Optimized texts
417
-
418
- = 2.0.2 =
419
- * Addthis removed due to GDPR
420
- * New option to switch debugging mode on/off
421
-
422
- = 2.0.1 =
423
- * Issue of window.onscroll function overriding and breaking other plugins/themes fixed
424
-
425
- = 2.0.0 =
426
- * New question 3 to facilitate placement of icons
427
-
428
- = 1.9.7 =
429
- * Stopped setting cookies for pop-up selection "if user moved to end of page" as not needed in this case (relevant for GDPR compliance)
430
-
431
- = 1.9.6 =
432
- * Usage instructions updated
433
-
434
- = 1.9.5 =
435
- * Facebook like count fixed (previously only fixed for likes of user's website, not likes of Facebook page)
436
-
437
- = 1.9.4 =
438
- * Youtube count and direct follow issues fixed
439
-
440
- = 1.9.3 =
441
- * Facebook like count issue fixed
442
- * Youtube saving issue when clicked on "Save all settings" - fixed now
443
-
444
- = 1.9.2 =
445
- * Instagram followers count issue fixed
446
- * Twitter count issue fixed
447
- * Facebook share count issue fixed
448
-
449
- = 1.9.1 =
450
- * Errors with "non-numeric value" fixed
451
-
452
- = 1.8.9 =
453
- * Error log files removed
454
-
455
- = 1.8.7 =
456
- * Updated description texts
457
-
458
- = 1.8.6 =
459
- * Made different placement options more visible
460
-
461
- = 1.8.5 =
462
- * Text changes
463
-
464
- = 1.8.4 =
465
- * Added referring opportunity
466
-
467
- = 1.8.3 =
468
- * Saving of links for custom icons sometimes didn't work. Fixed now.
469
-
470
- = 1.8.2 =
471
- * Links updated
472
-
473
- = 1.8.1 =
474
- * Themed icon notifications optimized
475
-
476
- = 1.8.0 =
477
- * CSS & JAVASCRIPT files are added in footer instead of header
478
-
479
- = 1.7.9 =
480
- * Banners added
481
- * Spelling mistakes corrected
482
-
483
- = 1.7.8 =
484
- * Added more themed icon banners
485
-
486
- = 1.7.6 =
487
- * Comment to selecting of specific text and picture per page/post added
488
-
489
- = 1.7.5 =
490
- * Link to more premium icons added
491
-
492
- = 1.7.4 =
493
- * Better error messages in case of Curl errors
494
- * Optimized review bar
495
- * Code not remaining on site after de-installation
496
-
497
- = 1.7.2 =
498
- * More individualized offer for themed icons
499
-
500
- = 1.7.1 =
501
- * Claiming process optimized
502
-
503
- = 1.6.9 =
504
- * Counts for social buttons optimized and Instagram counter bug fixed
505
- * Link to more social sharing buttons added
506
-
507
- = 1.6.8 =
508
- * Issue fixed that sometimes incorrect error-messages showed on front-end
509
- * Credit link updated
510
- * More icons added for pro-version
511
- * SpecificFeeds adjusted for paid option
512
- * De-installation will now clear database entirely
513
- * Upgrade to pro-link renamed
514
-
515
- = 1.6.6 =
516
- * New option for tailor-made icons
517
-
518
- = 1.6.5 =
519
- * Activation/deactivation links optimized
520
-
521
- = 1.6.4 =
522
- * Links to additional features optimized
523
-
524
- = 1.6.3 =
525
- * Notification issues corrected
526
-
527
- = 1.6.1 =
528
- * Dismissal of notification lead to plugin setting's page previously, this is corrected now
529
-
530
- = 1.5.8 =
531
- * Educational comments added
532
-
533
- = 1.5.7 =
534
- * Conflicts with other plugins resolved
535
-
536
- = 1.5.6 =
537
- * Instructions for trouble shooting optimized
538
-
539
- = 1.5.5 =
540
- * Facebook icon leading to empty pages (in specific cases) fixed
541
-
542
- = 1.5.4 =
543
- * Twitter sharing text issues with forwarded slashes fixed
544
- * Links to review sites adjusted following Wordpress changes in review section
545
-
546
- = 1.5.3 =
547
- * Missing counts for email follow option fixed (when there are no subscribers yet)
548
- * Extra explanation text added
549
-
550
- = 1.5.2 =
551
- * Corner case vulnerability fixed
552
-
553
- = 1.5.1 =
554
- * Claiming process simplified
555
- * Mouse-over for custom icons sometimes showed wrong text, corrected now
556
-
557
- = 1.4.8 =
558
- * Size of custom icons corrected
559
- * Cute G+ icon too small before, corrected now
560
- * Better description how to get G+ API key added
561
- * Unsupported "live" function in jquery fixed
562
-
563
- = 1.4.7 =
564
- * Icons sometimes on top of each other - fixed
565
-
566
- = 1.4.5 =
567
- * E-Notice errors fixed
568
- * Facebook share button added for before/after posts
569
-
570
- = 1.4.4 =
571
- * Errors fixed with color code sanitizing function
572
-
573
- = 1.4.3 =
574
- * Removed the js files from plugin and using the ones provided by WP now
575
-
576
- = 1.4.2 =
577
- * POST calls optimized (sanitize, escape, validate)
578
-
579
- = 1.4.1 =
580
- * Removed feedback option
581
- * Tags changed
582
-
583
- = 1.3.9 =
584
- * Added Pinterest button for rectangle icons after/before posts
585
- * If user has given an icon several functions, the tooltip appears as before, however if user clicks on the main icon then it will now also perform an action, i.e. the 'visit us'-function
586
-
587
- = 1.3.8 =
588
- * Review request changed
589
-
590
- = 1.3.7 =
591
- * Claiming links corrected
592
- * Icons don't have any mouseover-effects (e.g. fade in) by default anymore
593
-
594
- = 1.3.6 =
595
- * Overkill declaration in the CSS fixed
596
- * Custom icons can now have mailto:-functionality
597
- * jQuery UI issues fixed
598
- * Rectangle G+ icon now shown as last one as it takes more space (looks better)
599
- * Comment added that partner plugin https://wordpress.org/plugins/ultimate-social-media-plus/ now allows buttons in various languages
600
-
601
- = 1.3.5 =
602
- * jQuery issues/conflicts fixed
603
- * Placing icons on blog homepage had issues with counts, fixed now
604
- * Script issues fixed
605
- * Text added on plugin setting's page for easier understanding
606
- * Issue that dashboard sometimes doesn't load fixed
607
- * Instagram thin-icon issue fixed (misspelled, therefore didn't show)
608
-
609
- = 1.3.4 =
610
- * Facebook changed their API - please upgrade if you want Facebook sharing on mobile to work properly on your site!
611
-
612
- = 1.3.3 =
613
- * Feed claiming optimized
614
- * New 'Visit us'-icon for Twitter added which matches the new Twitter-design
615
- * PNG-file error for Houzz icon corrected
616
- * Incorrect G+ icon replaced
617
- * Error message for sites where subscription form doesn't work added
618
- * Extra comments added how to claim a feed and several other texts optimized
619
-
620
- = 1.3.2 =
621
- * Feed claiming optimized
622
-
623
- = 1.3.1 =
624
- * Shortpixel link fixed
625
-
626
- = 1.3.0 =
627
- * Feed claiming bug fixed
628
-
629
- = 1.2.9 =
630
- * New G+ button updated
631
- * Quicker claiming of feed possible
632
- * Comments to share-button added
633
- * Credit to shortpixel added
634
-
635
- = 1.2.8 =
636
- * New feature: Users can now decide where exactly the floating icons will display
637
- * Internal links corrected
638
- * Fixed: Targets only labels within the social icons div.
639
- * Subscriber counts fixed
640
- * Apostrophe issues fixed
641
- * Conflicts with Yoast SEO plugin resolved
642
- * PHP errors fixed
643
-
644
- = 1.2.7 =
645
- * Count issues fixed - please upgrade!
646
- * Style constructor updated to PHP 5
647
- * Text adjustments in admin area
648
-
649
- = 1.2.6 =
650
- * (Minor) compatibility issues with Wordpress 4.3. fixed
651
-
652
- = 1.2.5 =
653
- * Updating process fixed
654
-
655
- = 1.2.4 =
656
- * New question 8 added: you can now also add a subscription form to your site
657
-
658
- = 1.2.3 =
659
- * More explanations added how to fix if counts don't work
660
- * Icon files are compressed now for faster loading - thank you ShortPixel.com!
661
- * A typo in the code threw an error message in certain cases, this is fixed now
662
-
663
- = 1.2.2 =
664
- * jQuery issues fixed
665
- * Vulnerability issues fixed
666
- * Twitter-button didn't get displayed in full sometimes, this is fixed now
667
- * CSS issues (occurred on some templates) fixed
668
- * Facebook updated API (so counts didn't get displayed correctly anymore), we updated the plugin accordingly
669
-
670
- = 1.2.1 =
671
- * Template-specific issues fixed
672
- * Layout in admin-area optimized
673
- * Sometimes title didn't get rendered correctly, this is fixed now
674
- * Youtube API changes also updated in plugin
675
- * Outdated (and vulnerable) JS library updated
676
- * New options for placing icons after every post (under question 6)
677
-
678
- = 1.2.0 =
679
- * Links with '@' in the url (e.g. as in Flickr-links) now get recognized as well
680
- * Alignment issues of icons in tooltip fixed
681
- * Layout optimizations in plugin area
682
- * Users can now select to have the number of likes of their facebook page displayed as counts of the facebook icon on their blogs
683
- * Typos in admin area corrected
684
-
685
- = 1.1.1.12 =
686
- * Vulnerabilities (AJAX) fixed
687
- * OG-issues (caused in conjunction with other plugins) fixed
688
-
689
- = 1.1.1.11 =
690
- * Conflicts with Yoast SEO plugin sorted
691
- * Performance optimized
692
- * Facebook sharing text issues fixed
693
- * Sometimes facebook share count didn't increase despite liking it, this should be fixed now (to be observed)
694
- * When sharing from a Facebook business page it returned errors, this should be fixed now (to be observed)
695
- * Share-box only displayed partly sometimes, fixed now
696
- * Template CSS conflicts solved in the plugin
697
- * Adding of unwanted spans fixed
698
-
699
- = 1.1.1.10 =
700
- * OG-issues fixed
701
- * Text which gets shared sometimes didn't contain spaces, fixed now
702
- * Plugin name in php file shortened
703
- * More explanation texts added in admin area
704
- * Facebook share window sometimes only got displayed partially, fixed now
705
- * Other facebook share issues fixed
706
- * Template CSS issues causing icons to be displayed not in one straight horizontal line fixed
707
- * In some cases facebook counts didn't increase if liked, this should be fixed now
708
- * Tested for up to Wordpress version 4.2.1.
709
-
710
- = 1.1.1.9 =
711
- * Issues with custom icon upload & custom icon removal fixed
712
- * Box asking for review didn't disappear in some cases, fixed now
713
- * Some design issues with some CSS for icons after every post, fixed now
714
- * Changes in text / guide in plugin
715
- * Conflicts with YOAST SEO plugin sorted
716
- * Conflicts with ADD MEDIA button and ADD LINK sorted
717
- * In some cases activating the icons after every post the content disappeared, this is fixed now
718
- * New option to center icons after posts
719
- * In some cases if no widget was placed it said 'Kindly go to settings page and check the option 'show them via widget'' got displayed on the blog, this is fixed now
720
- * G+ window disappeared sometimes after moving over it, fixed now
721
- * LinkedIn icon disappeared after moving over it a few times, fixed now
722
- * Several other CSS issues fixed
723
- * Sometimes tooltips didn't appear, fixed now
724
- * When plugin is activated some toggle functionality stopped working, fixed now
725
- * Click on icons after posts now shares the post, not the blog page
726
- * Several little design enhancements
727
- * When user selected that icons should show floating in the bottom right they floated in the center right, fixed now
728
- * Issues with Youtube direct follow fixed
729
- * Number of Instagram followers not always got pulled correctly, fixed now
730
- * When site loaded the widget sometimes overlapped with others, fixed now
731
-
732
- = 1.1.1.8 =
733
- * Plugin's menu button now has less aggressive colors
734
- * Sometimes sharing via facebook returned error messages, this is fixed now
735
- * Conflicts with WooTheme Whitelight resolved
736
- * Occasional problems with https-sites previously, now compatibile
737
-
738
- = 1.1.1.7 =
739
- * The 'counts' were not always correct, fixed now
740
- * Conflicts with page editor resolved
741
- * Last plugin update fixed Youtube points, however the 'channel' was as default, set back to 'username'
742
- * Mouseover-text for social icons now correct
743
- * Some layout adjustment in the admin area (menu-button will also be adjusted in next release)
744
- * Setting order of icons sometimes didnt work properly when custom icons got uploaded, this is fixed now
745
-
746
- = 1.1.1.6 =
747
- * jQuery updated, now most conflicts with other plugins should be resolved
748
-
749
- = 1.1.1.5 =
750
- * Conflicts with several plugins sorted
751
- * Icons can now be disabled on mobile
752
- * Renaming of 'Youtube Channel' to 'Username' to avoid confusion
753
- * On some templates there were alignment issues of the icons, this is fixed
754
- * Menu button sub-menu removed (wasn't really necessary)
755
- * Lightbox in admin area for custom icon upload shortened (was too large)
756
- * Tags for all icons defined (for SEO purposes)
757
-
758
- = 1.1.1.4 =
759
- * If given only a 'visit us'-function for the Twitter-icon, the is no tooltip anymore (like for the other icons)
760
- * Sharing sometimes pulled an incorrect image, fixed now
761
- * Pop-up now also has an 'x' in the top right corner for people to close
762
- * Sometimes icons overlapped, this is fixed now
763
- * Several issues fixed when users put shortcode into the header
764
- * Sometimes our request to ask users for feedback got displayed too early, this is fixed now
765
- * Some youtube accounts don't have a username, but only a channel. To allow users to directly to subscribe to your youtube channel the plugin required a User ID, now a channel is possible too
766
- * Several conflicts with other plugins resolved
767
- * Some CSS issues fixed
768
- * Steps 1., 2., 3. in the guide how to upload a custom icon were sometimes missing, this is fixed now
769
- * Title removed now when using shortcodes
770
- * Some error messages in developer tools not showing up anymore
771
-
772
- = 1.1.1.3 =
773
- * Several CSS issues fixed
774
-
775
- = 1.1.1.2 =
776
- * Shortcode now available too, so that you can place the icons wherever you want: Insert [DISPLAY_ULTIMATE_SOCIAL_ICONS]
777
- * 'Visit us'-option now also available for Twitter-users
778
- * Description added for people helping to find their LinkedIn-ID
779
- * Description added for people helping to generate their API-keys for Twitter, LInkedIn and G+ to display their counts automatically
780
- * Design of pop-up for upload of custom icons changed, to better explain required steps
781
- * 'Icons per row' didn't work properly in specific cases, fixed now
782
- * If user displayed counts for the icons, and picked the option 'floating' and 'bottom', the counts were sometimes not displayed because they moved too far down. This is fixed now.
783
-
784
- = 1.1.1.1 =
785
- * Previously custom icons got deleted if plugin was upgraded. This is fixed *from now on*. If you previously uploaded a custom icon, please do so (once) more. Sorry for the inconvenience.
786
- * Question #5 The 'Sticking & Floating' -> 'Where shall they float?' was storing the right value but showing the 'Top - Left' always
787
- * If the floating icons on the frontend had 'counts' enabled for them, the counts for the last row of the icons were being cut-off on the screen if the 'Bottom - Left' OR 'Bottom - Right' was chosen as the display position
788
-
789
- = 1.1.1.0 =
790
- * Following user suggestions we made it easier to remove the credit link (if previously activated by user - otherwise it doesn't display)
791
-
792
- = 1.1.0.9 =
793
- * Some servers don't display svg-images due to security issues, so we switched back to png
794
- * Removed the comment line which may be me causes the syntax error at the time of installation
795
-
796
- = 1.1.0.8 =
797
- * In specific cases some share-icons were missing, this is fixed now
798
- * Plugin sent error messages if user had developer mode active, this won't happen anymore
799
-
800
- = 1.1.0.7 =
801
- * 'Visit us' icons sometimes didn't get displayed in the backend, this is fixed now
802
- * Also the design of the 'Visit us'-icons on the front end has been improved
803
- * If the email-delivery option is used, emails now get sent out much faster (central server gets pinged)
804
- * Pop-up in some cases didn't get shown on inner pages, fixed now
805
- * Some responsive adjustments for mobile
806
- * Custom icons had some resizing issues, fixed now
807
-
808
- = 1.1.0.6 =
809
- * If 'Do you want to display icons at end of every post' is clicked there were some issues on mobile view, this is fixed now
810
- * 'Visit us'-icons in the tooltips were no vector-icons, which made them look fuzzy in some browsers, this is fixed now
811
-
812
- = 1.1.0.5 =
813
- * On certain pages sometimes the youtube icon didnt show, this is fixed now
814
- * Custom uploaded icons got a black background, this is fixed now
815
- * In the admin panel the plugin conflicted (in rare cases) with other plugins, this is fixed
816
- * Pop-ups sometimes didn't disappear automatically, fixed now
817
- * The tooltip for floating icons now gets displayed so that it is always visible
818
-
819
- = 1.1.0.4 =
820
- * Several changes done to optimize display on mobile & tablets
821
- * Issues with widget fixed (in rare cases the separating lines between widgets didnt get displayed correctly)
822
- * Deletion of headline for widget works now
823
- * Slight alignment issues of share- and like buttons at the end of blog posts corrected
824
-
825
- = 1.1.0.3 =
826
- * Tooltip from share-option sometimes appeared some other strange places on the site, this is fixed now
827
- * Extra checks added if user enters nonsense in the admin area
828
- * Links to our review site added (please please give 5 stars)
829
-
830
- = 1.1.0.2 =
831
- * In specific cases there were Javascript loading errors, that's fixed now
832
- * Moving from the icons to the tooltips made the tooltips disappear sometimes, now they are 'stickier'
833
- * In specific cases the facebook-icon was displayed very small in the tooltip, fixed now
834
-
835
- = 1.1.0.1 =
836
- * Corrected that when only the 'visit us' function is selected, no tooltip is displayed
837
-
838
- = 1.1 =
839
- * Email-icon didn't get displayed for all design sets (on the website), this is fixed now
840
- * Alignments of buttons in tooltips optimized
841
- * Updated readme.txt
842
-
843
- = 1.0 =
844
- * First release
845
-
846
- == Upgrade Notice ==
847
-
848
- = 2.3.7 =
849
  Please upgrade
1
+ === Social Media Share Buttons & Social Sharing Icons ===
2
+ Contributors: socialdude, socialtech
3
+ Tags: social media, share, buttons, social widget, icons, share icons, share buttons, sharing icons, sharing buttons, social share, sharing, social sharing
4
+ Requires at least: 3.5
5
+ Tested up to: 5.2.2
6
+ Stable tag: 2.3.8
7
+ License: GPLv2
8
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
+
10
+ Share buttons and share icons plugin for social media sharing on Facebook, Twitter, Instagram, Whatsapp, Pinterest etc.
11
+
12
+ == Description ==
13
+
14
+ Social media plugin which let's you add share icons for RSS, Email, Facebook, Twitter, LinkedIn, Pinterest, Instagram, Youtube, 'Share' (covering 200+ other social media platforms).
15
+
16
+ This free sharing plugin has a lot to offer. Even more can be found in the Premium Plugin, please watch this short video:
17
+
18
+ [vimeo https://vimeo.com/269140798]
19
+
20
+ See [all features of the Premium plugin](https://www.ultimatelysocial.com/usm-premium/).
21
+
22
+ The free social media plugin includes the following features:
23
+
24
+ - Pick from 16 different designs for your social media share icons
25
+ - Give several actions to one social media share icon (e.g. your facebook share icon can lead visitors to your Facebook page, and also give visitors the opportunity to like your page)
26
+ - Decide to give your social media icons an animation (e.g. automatic shuffling, mouse-over effects) to make your visitors aware of the share icons, increasing the chance that they follow/share your blog
27
+ - Make your social media icons 'float' or 'sticky'
28
+ - Allow visitors to subscribe to your blog by Email
29
+ - Add 'counts' to your social media buttons
30
+ - Decide to display a pop-up (on all or only on selected pages) asking people to follow/share you via your social media icons
31
+ - Decide to display sharing-buttons and social media icons at the end of every post
32
+ - Select from many other customization features for your socialmedia icons!
33
+
34
+ For GDPR compliance, please have a look at our [Social Media GDPR Compliance page](https://ultimatelysocial.com/gdpr/).
35
+
36
+ The social media plugin is very easy to use as it takes you through all the steps:
37
+
38
+ - Step 1: Choose which social media icons you want to display
39
+ - Step 2: Define what actions your social media icons should perform
40
+ - Step 3: Pick design & animation options for your social media icons
41
+ - Step 4: Add counts to your social media icons (optional)
42
+ - Step 5: Select from various other social share options, e.g. make your social media icons 'float'
43
+ - Step 6: Add sharing/linking icons next to each blog post (optional)
44
+ - Step 7: Add a customized pop-up asking people to follow or share (optional)
45
+ - Step 8: Add a subscription form on your site (optional)
46
+
47
+ In case of issues or questions please ask in the [Support forum](https://wordpress.org/support/plugin/ultimate-social-media-icons).
48
+
49
+ We hope you enjoy the free social media plugin!
50
+
51
+ = New Premium Plugin =
52
+
53
+ We released a Premium Plugin with many more exciting features:
54
+
55
+ - **Many more social networks** supported, including Snapchat share buttons, Whatsapp share buttons, Yummly share buttons, Phone button, Yelp share buttons, Soundcloud share buttons, Skype share buttons Flickr share buttons, Blogger share buttons, Reddit share buttons, Vimeo share buttons, Tumblr share buttons, Xing share buttons, Vkontakte share buttons (VK), Telegram share buttons, Amazon share buttons, Goodreads share buttons, Angies list share buttons, Steam share buttons, Twitch share buttons, Spotify share buttons, Odnoklassniki share buttons (OK), Buffer share buttons, Weibo share buttons, Pocket share buttons, Meneame share buttons, Frype share buttons, LiveJournal share buttons, Patreon share buttons, Dloky share buttons, Discord share buttons, Github share buttons, Wordpress buttons, Etsy share buttons, Better Business Bureau share buttons, Digg share buttons, Delicious share buttons, Print share buttons, and many other share buttons!
56
+ - **More design styles** to make your social share icons look really cool & matching the design of your website
57
+ - **Themed design styles**, e.g. if you have a website about cats you can pick from social media logos which look like cats etc.
58
+ - **Better social sharing and following features**, e.g. you can define the Tweet-texts better (e.g. pull the post titles into your Tweets automatically), let people follow you on Facebook directly without leaving your site etc.
59
+ - **Place the social icons on specific pages**, i.e. you can define on which pages the icons to the social media sites should not show
60
+ - **Position the social icons by anchor and margins**, i.e. you can define the margins where your share icons should be displayed (from top/bottom/left/right), and then have them floating, or stick, still visible when user scrolls down or not etc.
61
+ - **Optimized for mobile** - you can define separate selections for your social network icons for mobile
62
+ - **More functions for email icon**, such as Share (by email), Contact you, Link to a certain page etc.
63
+ - **Social media counters optimized** to encourage more social media sharing from your visitors
64
+ - **More pop up options** which contain your social media buttons, e.g. define a limit to how often the pop-up is shown to the same user, show pop-up only when people try to leave your website etc.
65
+ - **Friendly support** in case you're stuck
66
+ - **Many more settings and options** for your social media network icons
67
+
68
+ Have a look at the [Premium Plugin features](https://www.ultimatelysocial.com/usm-premium/)
69
+
70
+
71
+ == Installation ==
72
+ Extract the zip file and drop the contents into the wp-content/plugins/ directory of your WordPress installation. Then activate the plugin from the plugins page.
73
+
74
+ Then go to share plugin settings page and follow the instructions. After you're done, go to the Widget area (Appearance >> Widget) and place the widget on your sidebar to display your social sharing icons on your blog.
75
+
76
+ Note: This sharing plugin requires CURL to be activated/installed on your server (which should be the standard case), and a PHP version of 5.4 or above. If you don't have it, please contact your hosting provider or server admin.
77
+
78
+ == Frequently Asked Questions ==
79
+ = Please also check the more comprehensive FAQ on http://ultimatelysocial.com/faq =
80
+
81
+ .
82
+
83
+ = I face fundamental issues (the share plugin doesn't load etc.) =
84
+
85
+ Please ensure that:
86
+
87
+ - You're using the latest version of the plugin(s)
88
+ - Your site is running on PHP 5.4 or above
89
+ - You have CURL activated (should be activated by default)
90
+
91
+ If you're not familiar with those please contact your hosting company or server admin.
92
+
93
+ Please check if you have browser extensions activated which may conflict with the plugin. Known culprits include:
94
+
95
+ - Open SEO Stats (Formerly: PageRank Status) in Chrome
96
+ - Adblock Plus in Chrome
97
+ - Vine in Chrome
98
+
99
+ Either de-activate those extensions or try it in a different browser.
100
+
101
+ If the plugin setting's area looks 'funny' after an upgrade then please clear your cache with String+F5 (PC) or Command+R (Mac).
102
+
103
+ If you get the error message “Are you sure you want to do this? / Please try again” when uploading the socialsharing plugin: Some servers may have a low limits with respect to permitted upload times. Please set the values in the “php.ini” file to:
104
+
105
+ max_execution_time 90
106
+ post_max_size 48M
107
+
108
+ If you don’t know how to do it, please contact your server support / hosting company for that. Tell them you need it for a social sharing plugin on WordPress which may take longer to upload.
109
+
110
+ If your issue is still not fixed after you’ve followed the steps above, we can provide support as part of our share to social Premium Plugin: https://www.ultimatelysocial.com/usm-premium/.
111
+
112
+ = I get error messages 'Error : 7', 'Error : 56', 'Error : 6' etc. =
113
+
114
+ Those point to a CURL-issue on your site. Please contact your server admin or your hosting company to resolve it.
115
+
116
+ The plugin requires CURL for the social share counts and other features.
117
+
118
+ = Social share icons don't show =
119
+
120
+ Please ensure you actually placed the social share buttons either as social widget (in your widget area) or as floating icons under question 5). The Premium Plugin makes placing the social icons especially easy and also allows you to place sticky social share icons on your site, define the placement of the social share icons by margins and many other options, see https://www.ultimatelysocial.com/usm-premium/.
121
+
122
+ If only some social share icons show, but not all, then please clear your cache, and check if you may have conflicting browser extensions (e.g. 'Disconnect'-app in Chrome). Also Ad-Blockers are known culprits, please switch them off temporarily to see if that is the reason.
123
+
124
+ If the social share icons still don't show then there's an issue with your template. Please contact the creator of your template for that.
125
+
126
+ If you are referring to specific social share icons not showing in the plugin itself (e.g. you're looking for a Whatsapp share icon, but it doesnt exist) please note that our Premium Plugin has many more social media share icons, see https://www.ultimatelysocial.com/usm-premium/
127
+
128
+ = Twitter social share counts are not displaying (anymore) =
129
+
130
+ Unfortunately, Twitter stopped providing any social share count. God knows why.
131
+
132
+ = Changes don't get saved / Deleted plugin but the social share icons still show =
133
+
134
+ Most likely you have the WP Cache plugin installed. Please de-activate and then re-activate it, then the social share icons should display again.
135
+
136
+ = Links when clicking on the social share icons don't work =
137
+
138
+ Please ensure you've entered the 'http://' at the beginning of the url (for *all* social networks). If the social share icons are not clickable at all there is most likely an issue with your template. This is especially the case if you've given your social share buttons several features, which should show a pop-up (tooltip) when you move over the social share icons.
139
+
140
+ = My Youtube social share icon (direct follow) doesn't work =
141
+
142
+ Please ensure that you've selected the radio button 'Username' when you enter a youtube username, or 'Channel ID' when you entered a channel ID.
143
+
144
+ = Aligning the social share icons (centered, left- or right-aligned) doesn't work =
145
+
146
+ The alignment options under question 5 align the social share icons with respect to each other, not where they appear on the page. Our new Premium Plugin is the best social sharing plugin on the market, allowing you to define also many other social share icon alignments (e.g. within a widget, within shortcode etc.).
147
+
148
+ = Clicking on the RSS icon returns funny codes =
149
+
150
+ That's normal. RSS users will know what to do with it (i.e. copy & paste the url into their RSS readers).
151
+
152
+ = Facebook 'like'-count isn't correct =
153
+
154
+ When you 'like' something on your blog via facebook it likes the site you're currently on (e.g. your blog) and not your Facebook page.
155
+
156
+ The new Premium Plugin also allows to show the number of your Facebook page likes, see https://www.ultimatelysocial.com/usm-premium/.
157
+
158
+ = Sharing doesn't take the right text or picture =
159
+
160
+ We use the share codes from Facebook etc. and therefore don't have any influence over which text & pic Facebook decides to share.
161
+
162
+ Note that you can define an image as 'Featured Image' which tells Facebook etc. to share that one. You'll find this 'Featured Image' section in your blog's admin area where you can edit your blog post.
163
+
164
+ You can crosscheck which image Facebook will take by entering your url on https://developers.facebook.com/tools/debug/og/object/.
165
+
166
+ UPDATE: we made significant enhancements to the premium plugin, it now allows you to define the sharing pics and texts for your social share icons.
167
+
168
+ = The pop-up shows although I only gave my social share icon one function =
169
+
170
+ The pop-up only disappears if you've given your social share icons only a 'visit us'-function, otherwise (e.g. if you gave it 'Like' (on facebook) or 'Tweet' functions) a pop-up is still needed because the social share buttons for those are coming directly from the social media sites (e.g. Facebook, Twitter) and we don't have any influence over their design.
171
+
172
+ = I selected to display the social share icons after every post but they don't show =
173
+
174
+ The social share icons usually do show, however not on your blog page, but on your single posts pages. The Premium plugin (https://www.ultimatelysocial.com/usm-premium/) also allows to display the social share icons on your homepage.
175
+
176
+ = Plugin decreases my site's loading speed =
177
+
178
+ The plugin is one of the most optimized social media plugin in terms of impact on a site's loading speed (optimized code, compressed pictures etc.).
179
+
180
+ If you still experience loading speed issues, please note that:
181
+
182
+ - The more sharing- and invite- features you place on your site, the more external codes you load (i.e. from the social media sites; we just use their share code), therefore impacting loading speed. So to prevent this, give your social share icons only 'Visit us'-functionality rather than sharing-functionalities.
183
+
184
+ - We've programmed it so that the code for the social media icons is the one which loads lasts on your site, i.e. after all the other content has already been loaded. This means: even if there is a decrease in loading speed, it does not impact a user's experience because he sees your site as quickly as before, only the social media icons take a bit longer to load.
185
+
186
+ There might be also other issues on your site which cause a high loading speed (e.g. conflicts with our plugins or template issues). Please ask your template creator about that.
187
+
188
+ = After moving from demo-server to live-server the follow/subscribe-link doesn't work anymore =
189
+
190
+ Please delete and install the plugin again.
191
+
192
+ If you already placed the code for a subscription form on your site, remove it again and take the new one from the new plugin installation.
193
+
194
+ = There are other issues when I activate the plugin or place the social share icons =
195
+
196
+ Please check the following:
197
+
198
+ The plugin requires that CURL is installed & activated on your server (which should be the standard case). If you don't have it, please contact your hosting provider.
199
+
200
+ Please ensure that you don't have any browser extension activated which may conflict with the plugin, esp. those which block certain content. Known culprits include the 'Disconnect' extension in Chrome or the 'Privacy Badger' extension in Firefox.
201
+
202
+ If issues persist most likely your theme has issues which makes it incompatible with our plugin. Please contact your template creator for that. As part of the Premium Plugin (https://www.ultimatelysocial.com/usm-premium/) we fix also theme issues, and provide support to ensure that your social media share buttons appear on your site (exactly where you want them).
203
+
204
+ = How can I see how many people decided to share or like my post? =
205
+
206
+ You can see this by activating the social share 'counts' on the front end (under question 4 in the USM plugin, question 5 in the USM+ plugin).
207
+
208
+ We cannot provide you this data in other ways as it's coming directly from the social media sites. One exception: if you like to know when people start to follow you by email, then you can get email alerts. For that, please claim your feed (see question above).
209
+
210
+ = How can I change the 'Please follow & like us :)'? =
211
+
212
+ You can change it in the Widget-area where you dropped the widget (with the social share icons) on the sidebar. Please click on it (on the sidebar), it will open the menu where you can change the text.
213
+
214
+ If you don't want to show any text, just enter a space (' ').
215
+
216
+ = Can I use a shortcode to place the social share icons? =
217
+
218
+ Yes, use [DISPLAY_ULTIMATE_SOCIAL_ICONS] to show the social share icons. You can place it into any editor.
219
+
220
+ Alternatively, you can place the following into your codes to show the share icons: <?php echo do_shortcode('[DISPLAY_ULTIMATE_SOCIAL_ICONS]'); ?>
221
+
222
+ = Can I get more options for the social share icons next to posts? =
223
+
224
+ Please use this plugin for that: https://www.ultimatelysocial.com/usm-premium/
225
+
226
+ = Can I also give the email-icon a 'mailto:' functionality? =
227
+
228
+ Yes, that is possible in our new social share plugin, the Premium Plugin: https://www.ultimatelysocial.com/usm-premium/
229
+
230
+ = Can I also display the social share icons vertically? =
231
+
232
+ Yes, that is possible in our new social sharing plugin, the Premium Plugin: https://www.ultimatelysocial.com/usm-premium/.
233
+
234
+ = How can I change the text on the 'visit us'-buttons? =
235
+
236
+ Use this plugin: https://www.ultimatelysocial.com/usm-premium/
237
+
238
+ = Can I deactivate the social share icons on mobile? =
239
+
240
+ Yes, you can disable the share icons under question 5. In our new Premium Plugin you can define different settings for mobile, see https://www.ultimatelysocial.com/usm-premium/. The best way to share social media! :)
241
+
242
+ = How can I use two instances of the plugin on my site? =
243
+
244
+ You cannot use the same plugin twice, however you can install both the USM as well as the Premiuem plugin (https://www.ultimatelysocial.com/usm-premium/). We've developed the code so that there are no conflicts and you can place the share icons in one way with one plugin, and select other share icons with the other plugin and place them differently.
245
+
246
+
247
+ == Screenshots ==
248
+
249
+ 1. After installing the plugin, you'll see this overview. You'll be taken through the easy-to-understand steps to configure your plugin
250
+
251
+ 2. As a first step you select which share icons you want to display on your website
252
+
253
+ 3. Then you'll define what the share icons should do (they can perform several actions, e.g. lead users to your facebook page, or allow them to share your content on their facebook page)
254
+
255
+ 4. You can pick from a wide range of share icon designs
256
+
257
+ 5. Here you can animate your social share icons (automatic shuffling, mouse-over effects etc.), to make visitors of your site aware that they can share, follow & like your site
258
+
259
+ 6. You can choose to display counts next to your social share icons (e.g. number of Twitter-followers)
260
+
261
+ 7. There are many more options to choose from
262
+
263
+ 8. You can also add social share icons at the end of every post
264
+
265
+ 9. ...or even display a pop-up (designed to your liking) which asks users to like & share your site
266
+
267
+
268
+ == Changelog ==
269
+
270
+ = 2.3.8 =
271
+ * Update: Fixed text in theme banner.
272
+ * Update: Fixed follow icon and subscription box when Curl is disabled.
273
+ * Update: Fixed cURL errors.
274
+
275
+ = 2.3.7 =
276
+ * solved: Wrong link on icons when curl not installed.
277
+
278
+ = 2.3.6 =
279
+ * Solved: Updated Text changes.
280
+
281
+ = 2.3.5 =
282
+ * Solved: Updated Text changes.
283
+
284
+ = 2.3.4 =
285
+ * Solved: Updated Text changes.
286
+ * Solved: Updated link for email.
287
+
288
+ = 2.3.3 =
289
+ * Solved: Updated the email link and subscription action.
290
+
291
+ = 2.3.2 =
292
+ * Solved: Updated feedback system.
293
+
294
+ = 2.3.1 =
295
+ * Solved: Updated feedback system.
296
+
297
+ = 2.3.0 =
298
+ * Solved: Errors on the footer in dashboard corected.
299
+ * Solved: Updated logic for inclusion of external js.
300
+ * Solved: Some grametical errors.
301
+ * Solved: Updated feedback system.
302
+
303
+ = 2.2.9 =
304
+ * Solved: After post icons shown.
305
+
306
+ = 2.2.8 =
307
+ * Solved: Header already sent error on some servers.
308
+
309
+ = 2.2.7 =
310
+ * Solved: Updated feedback system to next version.
311
+ * Solved: Responsive Icons UI updated.
312
+
313
+ = 2.2.6 =
314
+
315
+ * New Feature: Responsive icons in free plugin.
316
+ * Solved: Icons not rendering on woocomerce product page.
317
+ * Solved: Twitter url changed to share from intent for better reliablity.
318
+ * Solved: Lots of little adjustments to improve the UI and functionality.
319
+ * Solved: Removed Google Plus.
320
+ * Solved: Stop loading unused external library code for faster load.
321
+ * Solved: Removed curl notice while activation.
322
+ * Solved: Fixed broken arrays and missing indexes.
323
+ * Solved: Updated feedback system to next version.
324
+
325
+ = 2.2.5 =
326
+ * Integrated feedback system
327
+
328
+ = 2.2.4 =
329
+ * Solved: Unserialized error corrected.
330
+ * Solved: All curl calls to wp_remote.
331
+ * Solved: Notices in front end solved.
332
+
333
+ = 2.2.3 =
334
+ * Solved: Footer Error solved.
335
+ * Solved: Removed most of the html errors.
336
+ * Solved: Less anoying sidebar.
337
+
338
+ = 2.2.2 =
339
+ * Solved: More icons upadated
340
+ * Solved: Icon backgrounds updated
341
+
342
+ = 2.2.1 =
343
+ * Solved: woocomerce conflict resolved
344
+ * Solved: alert in case on conflict.
345
+ * new Feature: More icons for free plugin
346
+
347
+ = 2.2.0 =
348
+ * Solved: Critical Security Patch.
349
+
350
+ = 2.1.9 =
351
+ * Solved: Security Patch.
352
+
353
+ = 2.1.8 =
354
+ * Solved: security update.
355
+
356
+ = 2.1.7 =
357
+ * Solved: save button not working.
358
+
359
+ = 2.1.6 =
360
+ * Solved: compatablity issue with older versions.
361
+
362
+ = 2.1.5 =
363
+ * Solved: google plus is deprecated
364
+ * Solved: Sf count not shown
365
+ * Solved: Sf subscribe form opens blank page.
366
+ * solved: decreased the manual intervestions of upgradation to premium.
367
+
368
+ = 2.1.4 =
369
+ * Solved: Changed theme check url to match bloginfo url.
370
+
371
+ = 2.1.3 =
372
+ * Solved: Email validation for Offline chat.
373
+ * Solved: Premium notification breaking the dashboard structure.
374
+ * Solved: changed option for linkedin count
375
+ * Solved: ajax_object conflict with themes.
376
+ * Solved: new keyword check from page title, page keywords and page description.
377
+
378
+ = 2.1.2 =
379
+ * Solved: Text optimized
380
+
381
+ = 2.1.1 =
382
+ * Solved: design changes for chat.
383
+ * Solved: unexpected charactor "[" error for php version 5.3.
384
+
385
+ = 2.1.0 =
386
+ * New Feature: Chat for site admin on our settings page.
387
+ * Solved: removed deprecated jQuery functions.
388
+ * Solved: Rectangle icon alignemnt problem on some themes solved.
389
+
390
+ = 2.0.9 =
391
+ * Banner for animation section in Question 4 added
392
+ * Different icon for mouseover section pointing in premium in Question 4 added
393
+ * Removed theme icon banner if no match
394
+
395
+ = 2.0.8 =
396
+ * Solved: Notification bar cannot be seen anymore
397
+ * Solved: cleared the float elements after notice.
398
+
399
+ = 2.0.7 =
400
+ * Round green follow button doesn't show - fixed
401
+ * Footer optimized
402
+
403
+ = 2.0.6 =
404
+ * Fixed bug that sometimes banner didn't disappear
405
+ * Links in review message updated
406
+
407
+ = 2.0.5 =
408
+ * Issue with click on icons on mobile fixed
409
+
410
+ = 2.0.4 =
411
+ * Corrected missing ? in shortcode
412
+
413
+ = 2.0.3 =
414
+ * Optimized texts
415
+
416
+ = 2.0.2 =
417
+ * Addthis removed due to GDPR
418
+ * New option to switch debugging mode on/off
419
+
420
+ = 2.0.1 =
421
+ * Issue of window.onscroll function overriding and breaking other plugins/themes fixed
422
+
423
+ = 2.0.0 =
424
+ * New question 3 to facilitate placement of icons
425
+
426
+ = 1.9.7 =
427
+ * Stopped setting cookies for pop-up selection "if user moved to end of page" as not needed in this case (relevant for GDPR compliance)
428
+
429
+ = 1.9.6 =
430
+ * Usage instructions updated
431
+
432
+ = 1.9.5 =
433
+ * Facebook like count fixed (previously only fixed for likes of user's website, not likes of Facebook page)
434
+
435
+ = 1.9.4 =
436
+ * Youtube count and direct follow issues fixed
437
+
438
+ = 1.9.3 =
439
+ * Facebook like count issue fixed
440
+ * Youtube saving issue when clicked on "Save all settings" - fixed now
441
+
442
+ = 1.9.2 =
443
+ * Instagram followers count issue fixed
444
+ * Twitter count issue fixed
445
+ * Facebook share count issue fixed
446
+
447
+ = 1.9.1 =
448
+ * Errors with "non-numeric value" fixed
449
+
450
+ = 1.8.9 =
451
+ * Error log files removed
452
+
453
+ = 1.8.7 =
454
+ * Updated description texts
455
+
456
+ = 1.8.6 =
457
+ * Made different placement options more visible
458
+
459
+ = 1.8.5 =
460
+ * Text changes
461
+
462
+ = 1.8.4 =
463
+ * Added referring opportunity
464
+
465
+ = 1.8.3 =
466
+ * Saving of links for custom icons sometimes didn't work. Fixed now.
467
+
468
+ = 1.8.2 =
469
+ * Links updated
470
+
471
+ = 1.8.1 =
472
+ * Themed icon notifications optimized
473
+
474
+ = 1.8.0 =
475
+ * CSS & JAVASCRIPT files are added in footer instead of header
476
+
477
+ = 1.7.9 =
478
+ * Banners added
479
+ * Spelling mistakes corrected
480
+
481
+ = 1.7.8 =
482
+ * Added more themed icon banners
483
+
484
+ = 1.7.6 =
485
+ * Comment to selecting of specific text and picture per page/post added
486
+
487
+ = 1.7.5 =
488
+ * Link to more premium icons added
489
+
490
+ = 1.7.4 =
491
+ * Better error messages in case of Curl errors
492
+ * Optimized review bar
493
+ * Code not remaining on site after de-installation
494
+
495
+ = 1.7.2 =
496
+ * More individualized offer for themed icons
497
+
498
+ = 1.7.1 =
499
+ * Claiming process optimized
500
+
501
+ = 1.6.9 =
502
+ * Counts for social buttons optimized and Instagram counter bug fixed
503
+ * Link to more social sharing buttons added
504
+
505
+ = 1.6.8 =
506
+ * Issue fixed that sometimes incorrect error-messages showed on front-end
507
+ * Credit link updated
508
+ * More icons added for pro-version
509
+ * SpecificFeeds adjusted for paid option
510
+ * De-installation will now clear database entirely
511
+ * Upgrade to pro-link renamed
512
+
513
+ = 1.6.6 =
514
+ * New option for tailor-made icons
515
+
516
+ = 1.6.5 =
517
+ * Activation/deactivation links optimized
518
+
519
+ = 1.6.4 =
520
+ * Links to additional features optimized
521
+
522
+ = 1.6.3 =
523
+ * Notification issues corrected
524
+
525
+ = 1.6.1 =
526
+ * Dismissal of notification lead to plugin setting's page previously, this is corrected now
527
+
528
+ = 1.5.8 =
529
+ * Educational comments added
530
+
531
+ = 1.5.7 =
532
+ * Conflicts with other plugins resolved
533
+
534
+ = 1.5.6 =
535
+ * Instructions for trouble shooting optimized
536
+
537
+ = 1.5.5 =
538
+ * Facebook icon leading to empty pages (in specific cases) fixed
539
+
540
+ = 1.5.4 =
541
+ * Twitter sharing text issues with forwarded slashes fixed
542
+ * Links to review sites adjusted following Wordpress changes in review section
543
+
544
+ = 1.5.3 =
545
+ * Missing counts for email follow option fixed (when there are no subscribers yet)
546
+ * Extra explanation text added
547
+
548
+ = 1.5.2 =
549
+ * Corner case vulnerability fixed
550
+
551
+ = 1.5.1 =
552
+ * Claiming process simplified
553
+ * Mouse-over for custom icons sometimes showed wrong text, corrected now
554
+
555
+ = 1.4.8 =
556
+ * Size of custom icons corrected
557
+ * Cute G+ icon too small before, corrected now
558
+ * Better description how to get G+ API key added
559
+ * Unsupported "live" function in jquery fixed
560
+
561
+ = 1.4.7 =
562
+ * Icons sometimes on top of each other - fixed
563
+
564
+ = 1.4.5 =
565
+ * E-Notice errors fixed
566
+ * Facebook share button added for before/after posts
567
+
568
+ = 1.4.4 =
569
+ * Errors fixed with color code sanitizing function
570
+
571
+ = 1.4.3 =
572
+ * Removed the js files from plugin and using the ones provided by WP now
573
+
574
+ = 1.4.2 =
575
+ * POST calls optimized (sanitize, escape, validate)
576
+
577
+ = 1.4.1 =
578
+ * Removed feedback option
579
+ * Tags changed
580
+
581
+ = 1.3.9 =
582
+ * Added Pinterest button for rectangle icons after/before posts
583
+ * If user has given an icon several functions, the tooltip appears as before, however if user clicks on the main icon then it will now also perform an action, i.e. the 'visit us'-function
584
+
585
+ = 1.3.8 =
586
+ * Review request changed
587
+
588
+ = 1.3.7 =
589
+ * Claiming links corrected
590
+ * Icons don't have any mouseover-effects (e.g. fade in) by default anymore
591
+
592
+ = 1.3.6 =
593
+ * Overkill declaration in the CSS fixed
594
+ * Custom icons can now have mailto:-functionality
595
+ * jQuery UI issues fixed
596
+ * Rectangle G+ icon now shown as last one as it takes more space (looks better)
597
+ * Comment added that partner plugin https://wordpress.org/plugins/ultimate-social-media-plus/ now allows buttons in various languages
598
+
599
+ = 1.3.5 =
600
+ * jQuery issues/conflicts fixed
601
+ * Placing icons on blog homepage had issues with counts, fixed now
602
+ * Script issues fixed
603
+ * Text added on plugin setting's page for easier understanding
604
+ * Issue that dashboard sometimes doesn't load fixed
605
+ * Instagram thin-icon issue fixed (misspelled, therefore didn't show)
606
+
607
+ = 1.3.4 =
608
+ * Facebook changed their API - please upgrade if you want Facebook sharing on mobile to work properly on your site!
609
+
610
+ = 1.3.3 =
611
+ * Feed claiming optimized
612
+ * New 'Visit us'-icon for Twitter added which matches the new Twitter-design
613
+ * PNG-file error for Houzz icon corrected
614
+ * Incorrect G+ icon replaced
615
+ * Error message for sites where subscription form doesn't work added
616
+ * Extra comments added how to claim a feed and several other texts optimized
617
+
618
+ = 1.3.2 =
619
+ * Feed claiming optimized
620
+
621
+ = 1.3.1 =
622
+ * Shortpixel link fixed
623
+
624
+ = 1.3.0 =
625
+ * Feed claiming bug fixed
626
+
627
+ = 1.2.9 =
628
+ * New G+ button updated
629
+ * Quicker claiming of feed possible
630
+ * Comments to share-button added
631
+ * Credit to shortpixel added
632
+
633
+ = 1.2.8 =
634
+ * New feature: Users can now decide where exactly the floating icons will display
635
+ * Internal links corrected
636
+ * Fixed: Targets only labels within the social icons div.
637
+ * Subscriber counts fixed
638
+ * Apostrophe issues fixed
639
+ * Conflicts with Yoast SEO plugin resolved
640
+ * PHP errors fixed
641
+
642
+ = 1.2.7 =
643
+ * Count issues fixed - please upgrade!
644
+ * Style constructor updated to PHP 5
645
+ * Text adjustments in admin area
646
+
647
+ = 1.2.6 =
648
+ * (Minor) compatibility issues with Wordpress 4.3. fixed
649
+
650
+ = 1.2.5 =
651
+ * Updating process fixed
652
+
653
+ = 1.2.4 =
654
+ * New question 8 added: you can now also add a subscription form to your site
655
+
656
+ = 1.2.3 =
657
+ * More explanations added how to fix if counts don't work
658
+ * Icon files are compressed now for faster loading - thank you ShortPixel.com!
659
+ * A typo in the code threw an error message in certain cases, this is fixed now
660
+
661
+ = 1.2.2 =
662
+ * jQuery issues fixed
663
+ * Vulnerability issues fixed
664
+ * Twitter-button didn't get displayed in full sometimes, this is fixed now
665
+ * CSS issues (occurred on some templates) fixed
666
+ * Facebook updated API (so counts didn't get displayed correctly anymore), we updated the plugin accordingly
667
+
668
+ = 1.2.1 =
669
+ * Template-specific issues fixed
670
+ * Layout in admin-area optimized
671
+ * Sometimes title didn't get rendered correctly, this is fixed now
672
+ * Youtube API changes also updated in plugin
673
+ * Outdated (and vulnerable) JS library updated
674
+ * New options for placing icons after every post (under question 6)
675
+
676
+ = 1.2.0 =
677
+ * Links with '@' in the url (e.g. as in Flickr-links) now get recognized as well
678
+ * Alignment issues of icons in tooltip fixed
679
+ * Layout optimizations in plugin area
680
+ * Users can now select to have the number of likes of their facebook page displayed as counts of the facebook icon on their blogs
681
+ * Typos in admin area corrected
682
+
683
+ = 1.1.1.12 =
684
+ * Vulnerabilities (AJAX) fixed
685
+ * OG-issues (caused in conjunction with other plugins) fixed
686
+
687
+ = 1.1.1.11 =
688
+ * Conflicts with Yoast SEO plugin sorted
689
+ * Performance optimized
690
+ * Facebook sharing text issues fixed
691
+ * Sometimes facebook share count didn't increase despite liking it, this should be fixed now (to be observed)
692
+ * When sharing from a Facebook business page it returned errors, this should be fixed now (to be observed)
693
+ * Share-box only displayed partly sometimes, fixed now
694
+ * Template CSS conflicts solved in the plugin
695
+ * Adding of unwanted spans fixed
696
+
697
+ = 1.1.1.10 =
698
+ * OG-issues fixed
699
+ * Text which gets shared sometimes didn't contain spaces, fixed now
700
+ * Plugin name in php file shortened
701
+ * More explanation texts added in admin area
702
+ * Facebook share window sometimes only got displayed partially, fixed now
703
+ * Other facebook share issues fixed
704
+ * Template CSS issues causing icons to be displayed not in one straight horizontal line fixed
705
+ * In some cases facebook counts didn't increase if liked, this should be fixed now
706
+ * Tested for up to Wordpress version 4.2.1.
707
+
708
+ = 1.1.1.9 =
709
+ * Issues with custom icon upload & custom icon removal fixed
710
+ * Box asking for review didn't disappear in some cases, fixed now
711
+ * Some design issues with some CSS for icons after every post, fixed now
712
+ * Changes in text / guide in plugin
713
+ * Conflicts with YOAST SEO plugin sorted
714
+ * Conflicts with ADD MEDIA button and ADD LINK sorted
715
+ * In some cases activating the icons after every post the content disappeared, this is fixed now
716
+ * New option to center icons after posts
717
+ * In some cases if no widget was placed it said 'Kindly go to settings page and check the option 'show them via widget'' got displayed on the blog, this is fixed now
718
+ * G+ window disappeared sometimes after moving over it, fixed now
719
+ * LinkedIn icon disappeared after moving over it a few times, fixed now
720
+ * Several other CSS issues fixed
721
+ * Sometimes tooltips didn't appear, fixed now
722
+ * When plugin is activated some toggle functionality stopped working, fixed now
723
+ * Click on icons after posts now shares the post, not the blog page
724
+ * Several little design enhancements
725
+ * When user selected that icons should show floating in the bottom right they floated in the center right, fixed now
726
+ * Issues with Youtube direct follow fixed
727
+ * Number of Instagram followers not always got pulled correctly, fixed now
728
+ * When site loaded the widget sometimes overlapped with others, fixed now
729
+
730
+ = 1.1.1.8 =
731
+ * Plugin's menu button now has less aggressive colors
732
+ * Sometimes sharing via facebook returned error messages, this is fixed now
733
+ * Conflicts with WooTheme Whitelight resolved
734
+ * Occasional problems with https-sites previously, now compatibile
735
+
736
+ = 1.1.1.7 =
737
+ * The 'counts' were not always correct, fixed now
738
+ * Conflicts with page editor resolved
739
+ * Last plugin update fixed Youtube points, however the 'channel' was as default, set back to 'username'
740
+ * Mouseover-text for social icons now correct
741
+ * Some layout adjustment in the admin area (menu-button will also be adjusted in next release)
742
+ * Setting order of icons sometimes didnt work properly when custom icons got uploaded, this is fixed now
743
+
744
+ = 1.1.1.6 =
745
+ * jQuery updated, now most conflicts with other plugins should be resolved
746
+
747
+ = 1.1.1.5 =
748
+ * Conflicts with several plugins sorted
749
+ * Icons can now be disabled on mobile
750
+ * Renaming of 'Youtube Channel' to 'Username' to avoid confusion
751
+ * On some templates there were alignment issues of the icons, this is fixed
752
+ * Menu button sub-menu removed (wasn't really necessary)
753
+ * Lightbox in admin area for custom icon upload shortened (was too large)
754
+ * Tags for all icons defined (for SEO purposes)
755
+
756
+ = 1.1.1.4 =
757
+ * If given only a 'visit us'-function for the Twitter-icon, the is no tooltip anymore (like for the other icons)
758
+ * Sharing sometimes pulled an incorrect image, fixed now
759
+ * Pop-up now also has an 'x' in the top right corner for people to close
760
+ * Sometimes icons overlapped, this is fixed now
761
+ * Several issues fixed when users put shortcode into the header
762
+ * Sometimes our request to ask users for feedback got displayed too early, this is fixed now
763
+ * Some youtube accounts don't have a username, but only a channel. To allow users to directly to subscribe to your youtube channel the plugin required a User ID, now a channel is possible too
764
+ * Several conflicts with other plugins resolved
765
+ * Some CSS issues fixed
766
+ * Steps 1., 2., 3. in the guide how to upload a custom icon were sometimes missing, this is fixed now
767
+ * Title removed now when using shortcodes
768
+ * Some error messages in developer tools not showing up anymore
769
+
770
+ = 1.1.1.3 =
771
+ * Several CSS issues fixed
772
+
773
+ = 1.1.1.2 =
774
+ * Shortcode now available too, so that you can place the icons wherever you want: Insert [DISPLAY_ULTIMATE_SOCIAL_ICONS]
775
+ * 'Visit us'-option now also available for Twitter-users
776
+ * Description added for people helping to find their LinkedIn-ID
777
+ * Description added for people helping to generate their API-keys for Twitter, LInkedIn and G+ to display their counts automatically
778
+ * Design of pop-up for upload of custom icons changed, to better explain required steps
779
+ * 'Icons per row' didn't work properly in specific cases, fixed now
780
+ * If user displayed counts for the icons, and picked the option 'floating' and 'bottom', the counts were sometimes not displayed because they moved too far down. This is fixed now.
781
+
782
+ = 1.1.1.1 =
783
+ * Previously custom icons got deleted if plugin was upgraded. This is fixed *from now on*. If you previously uploaded a custom icon, please do so (once) more. Sorry for the inconvenience.
784
+ * Question #5 The 'Sticking & Floating' -> 'Where shall they float?' was storing the right value but showing the 'Top - Left' always
785
+ * If the floating icons on the frontend had 'counts' enabled for them, the counts for the last row of the icons were being cut-off on the screen if the 'Bottom - Left' OR 'Bottom - Right' was chosen as the display position
786
+
787
+ = 1.1.1.0 =
788
+ * Following user suggestions we made it easier to remove the credit link (if previously activated by user - otherwise it doesn't display)
789
+
790
+ = 1.1.0.9 =
791
+ * Some servers don't display svg-images due to security issues, so we switched back to png
792
+ * Removed the comment line which may be me causes the syntax error at the time of installation
793
+
794
+ = 1.1.0.8 =
795
+ * In specific cases some share-icons were missing, this is fixed now
796
+ * Plugin sent error messages if user had developer mode active, this won't happen anymore
797
+
798
+ = 1.1.0.7 =
799
+ * 'Visit us' icons sometimes didn't get displayed in the backend, this is fixed now
800
+ * Also the design of the 'Visit us'-icons on the front end has been improved
801
+ * If the email-delivery option is used, emails now get sent out much faster (central server gets pinged)
802
+ * Pop-up in some cases didn't get shown on inner pages, fixed now
803
+ * Some responsive adjustments for mobile
804
+ * Custom icons had some resizing issues, fixed now
805
+
806
+ = 1.1.0.6 =
807
+ * If 'Do you want to display icons at end of every post' is clicked there were some issues on mobile view, this is fixed now
808
+ * 'Visit us'-icons in the tooltips were no vector-icons, which made them look fuzzy in some browsers, this is fixed now
809
+
810
+ = 1.1.0.5 =
811
+ * On certain pages sometimes the youtube icon didnt show, this is fixed now
812
+ * Custom uploaded icons got a black background, this is fixed now
813
+ * In the admin panel the plugin conflicted (in rare cases) with other plugins, this is fixed
814
+ * Pop-ups sometimes didn't disappear automatically, fixed now
815
+ * The tooltip for floating icons now gets displayed so that it is always visible
816
+
817
+ = 1.1.0.4 =
818
+ * Several changes done to optimize display on mobile & tablets
819
+ * Issues with widget fixed (in rare cases the separating lines between widgets didnt get displayed correctly)
820
+ * Deletion of headline for widget works now
821
+ * Slight alignment issues of share- and like buttons at the end of blog posts corrected
822
+
823
+ = 1.1.0.3 =
824
+ * Tooltip from share-option sometimes appeared some other strange places on the site, this is fixed now
825
+ * Extra checks added if user enters nonsense in the admin area
826
+ * Links to our review site added (please please give 5 stars)
827
+
828
+ = 1.1.0.2 =
829
+ * In specific cases there were Javascript loading errors, that's fixed now
830
+ * Moving from the icons to the tooltips made the tooltips disappear sometimes, now they are 'stickier'
831
+ * In specific cases the facebook-icon was displayed very small in the tooltip, fixed now
832
+
833
+ = 1.1.0.1 =
834
+ * Corrected that when only the 'visit us' function is selected, no tooltip is displayed
835
+
836
+ = 1.1 =
837
+ * Email-icon didn't get displayed for all design sets (on the website), this is fixed now
838
+ * Alignments of buttons in tooltips optimized
839
+ * Updated readme.txt
840
+
841
+ = 1.0 =
842
+ * First release
843
+
844
+ == Upgrade Notice ==
845
+
846
+ = 2.3.8 =
 
 
847
  Please upgrade
ultimate_social_media_icons.php CHANGED
@@ -6,17 +6,20 @@ Description: Easy to use and 100% FREE social media plugin which adds social med
6
 
7
  Author: UltimatelySocial
8
  Author URI: http://ultimatelysocial.com
9
- Version: 2.3.7
10
  License: GPLv2 or later
11
  */
12
  require_once 'analyst/main.php';
13
 
14
  analyst_init(array(
15
- 'client-id' => 'ao6grd4ed38kyeqz',
16
- 'client-secret' => 'ae93c43c738bdf50f10ef9d4c6d811006b468c74',
17
- 'base-dir' => __FILE__
18
  ));
19
 
 
 
 
20
  sfsi_error_reporting();
21
  global $wpdb;
22
  /* define the Root for URL and Document */
@@ -27,81 +30,67 @@ define('SFSI_PLUGURL', plugin_dir_url(__FILE__));
27
 
28
  define('SFSI_WEBROOT', str_replace(getcwd(), home_url(), dirname(__FILE__)));
29
 
30
- define('SFSI_SUPPORT_FORM','https://goo.gl/wgrtUV');
31
 
32
- define('SFSI_DOMAIN','ultimate-social-media-icons');
33
  $wp_upload_dir = wp_upload_dir();
34
 
35
  define('SFSI_UPLOAD_DIR_BASEURL', trailingslashit($wp_upload_dir['baseurl']));
36
- define('SFSI_ALLICONS',serialize(array("rss","email","facebook","twitter","share","youtube","pinterest","instagram")));
37
  function sfsi_get_current_page_url()
38
 
39
  {
40
 
41
- global $post, $wp;
42
- if (!empty($wp)) {
43
-
44
- return home_url(add_query_arg(array(),$wp->request));
45
-
46
- }
47
-
48
- elseif(!empty($post))
49
-
50
- {
51
-
52
- return get_permalink($post->ID);
53
-
54
- }
55
-
56
- else
57
-
58
- {
59
 
60
- return site_url();
 
61
 
62
- }
 
63
 
 
 
64
  }
65
  /* load all files */
66
 
67
- include(SFSI_DOCROOT.'/libs/sfsi_install_uninstall.php');
68
- include(SFSI_DOCROOT.'/helpers/common_helper.php');
69
 
70
- include(SFSI_DOCROOT.'/libs/controllers/sfsi_socialhelper.php');
71
 
72
- include(SFSI_DOCROOT.'/libs/controllers/sfsi_class_theme_check.php');
73
 
74
- include(SFSI_DOCROOT.'/libs/controllers/sfsi_buttons_controller.php');
75
 
76
- include(SFSI_DOCROOT.'/libs/controllers/sfsi_iconsUpload_contoller.php');
77
 
78
- include(SFSI_DOCROOT.'/libs/controllers/sfsi_floater_icons.php');
79
 
80
- include(SFSI_DOCROOT.'/libs/controllers/sfsi_frontpopUp.php');
81
 
82
- include(SFSI_DOCROOT.'/libs/controllers/sfsiocns_OnPosts.php');
83
- include(SFSI_DOCROOT.'/libs/sfsi_Init_JqueryCss.php');
84
 
85
- include(SFSI_DOCROOT.'/libs/sfsi_widget.php');
86
 
87
- include(SFSI_DOCROOT.'/libs/sfsi_subscribe_widget.php');
88
 
89
- include(SFSI_DOCROOT.'/libs/sfsi_custom_social_sharing_data.php');
90
 
91
- include(SFSI_DOCROOT.'/libs/sfsi_ajax_social_sharing_settings_updater.php');
92
  /* plugin install and uninstall hooks */
93
 
94
- register_activation_hook(__FILE__, 'sfsi_activate_plugin' );
95
 
96
  register_deactivation_hook(__FILE__, 'sfsi_deactivate_plugin');
97
 
98
  register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
99
 
100
- if(!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 2.37)
101
- {
102
-
103
- add_action("init", "sfsi_update_plugin");
104
 
 
105
  }
106
  /* redirect setting page hook */
107
 
@@ -111,27 +100,24 @@ function sfsi_plugin_redirect()
111
 
112
  {
113
 
114
- if (get_option('sfsi_plugin_do_activation_redirect', false))
115
-
116
- {
117
 
118
  delete_option('sfsi_plugin_do_activation_redirect');
119
 
120
  wp_redirect(admin_url('admin.php?page=sfsi-options'));
121
-
122
  }
123
-
124
  }
125
  //************************************** Setting error reporting STARTS ****************************************//
126
- function sfsi_error_reporting(){
127
- $option5 = unserialize(get_option('sfsi_section5_options',false));
128
- if(isset($option5['sfsi_icons_suppress_errors'])
129
- && !empty($option5['sfsi_icons_suppress_errors'])
130
- && "yes" == $option5['sfsi_icons_suppress_errors']){
131
- error_reporting(0);
132
-
133
- }
134
-
 
135
  }
136
  //************************************** Setting error reporting CLOSES ****************************************//
137
  //shortcode for the ultimate social icons {Monad}
@@ -142,41 +128,42 @@ function DISPLAY_ULTIMATE_SOCIAL_ICONS($args = null, $content = null)
142
 
143
  {
144
 
145
- $instance = array("showf" => 1, "title" => '');
146
-
147
- $return = '';
148
 
149
- if(!isset($before_widget)): $before_widget =''; endif;
150
 
151
- if(!isset($after_widget)): $after_widget =''; endif;
152
- /*Our variables from the widget settings. */
153
 
154
- $title = apply_filters('widget_title', $instance['title'] );
 
 
155
 
156
- $show_info = isset( $instance['show_info'] ) ? $instance['show_info'] : false;
157
- global $is_floter;
158
- $return.= $before_widget;
159
 
160
- /* Display the widget title */
 
 
161
 
162
- if ( $title ) $return .= $before_title . $title . $after_title;
163
 
164
- $return .= '<div class="sfsi_widget">';
165
 
166
- $return .= '<div id="sfsi_wDiv"></div>';
167
 
168
- /* Link the main icons function */
169
 
170
- $return .= sfsi_check_visiblity(0);
171
 
172
- $return .= '<div style="clear: both;"></div>';
173
 
174
- $return .= '</div>';
175
 
176
- $return .= $after_widget;
177
 
178
- return $return;
179
 
 
180
  }
181
  //adding some meta tags for facebook news feed {Monad}
182
 
@@ -184,36 +171,27 @@ function sfsi_checkmetas()
184
 
185
  {
186
 
187
- if ( ! function_exists( 'get_plugins' ) )
188
-
189
- {
190
-
191
- require_once ABSPATH . 'wp-admin/includes/plugin.php';
192
-
193
- }
194
- $adding_tags = "yes";
195
- $all_plugins = get_plugins();
196
- foreach($all_plugins as $key => $plugin):
197
- if(is_plugin_active($key))
198
-
199
- {
200
 
201
- if(preg_match("/(seo|search engine optimization|meta tag|open graph|opengraph|og tag|ogtag)/im", $plugin['Name']) || preg_match("/(seo|search engine optimization|meta tag|open graph|opengraph|og tag|ogtag)/im", $plugin['Description'])):
202
- $adding_tags= "no";
203
- break;
204
- endif;
205
-
206
- }
207
- endforeach;
208
- update_option("adding_tags", $adding_tags);
 
 
 
 
 
 
209
  }
210
 
211
- if ( is_admin() )
212
-
213
- {
214
-
215
- add_action('after_setup_theme', 'sfsi_checkmetas');
216
 
 
217
  }
218
  add_action('wp_head', 'ultimatefbmetatags');
219
 
@@ -221,186 +199,129 @@ function ultimatefbmetatags()
221
 
222
  {
223
 
224
- $metarequest = get_option("adding_tags");
225
-
226
- $post_id = get_the_ID();
227
- $feed_id = sanitize_text_field(get_option('sfsi_feed_id'));
228
-
229
- $verification_code = get_option('sfsi_verificatiom_code');
230
-
231
- if(!empty($feed_id) && !empty($verification_code) && $verification_code != "no" )
232
-
233
- {
234
-
235
- echo '<meta name="specificfeeds-verification-code-'.$feed_id.'" content="'.$verification_code.'"/>';
236
-
237
- }
238
- if($metarequest == 'yes' && !empty($post_id))
239
-
240
- {
241
-
242
- $post = get_post( $post_id );
243
-
244
- $attachment_id = get_post_thumbnail_id($post_id);
245
-
246
- $title = str_replace('"', "", strip_tags(get_the_title($post_id)));
247
-
248
- $url = get_permalink($post_id);
249
-
250
- $description = $post->post_content;
251
 
252
- $description = str_replace('"', "", strip_tags($description));
253
- echo '<meta name="viewport" content="width=device-width, initial-scale=1">';
254
- if($attachment_id)
255
 
256
- {
257
 
258
- $feat_image = wp_get_attachment_url( $attachment_id );
259
 
260
- if (preg_match('/https/',$feat_image))
261
-
262
- {
263
-
264
- echo '<meta property="og:image:secure_url" content="'.$feat_image.'" data-id="sfsi">';
265
-
266
- }
267
-
268
- else
269
-
270
- {
271
-
272
- echo '<meta property="og:image" content="'.$feat_image.'" data-id="sfsi">';
273
-
274
- }
275
-
276
- $metadata = wp_get_attachment_metadata( $attachment_id );
277
-
278
- if(isset($metadata) && !empty($metadata))
279
-
280
- {
281
-
282
- if(isset($metadata['sizes']['post-thumbnail']))
283
-
284
- {
285
-
286
- $image_type = $metadata['sizes']['post-thumbnail']['mime-type'];
287
-
288
- }
289
-
290
- else
291
-
292
- {
293
-
294
- $image_type = '';
295
-
296
- }
297
-
298
- if(isset($metadata['width']))
299
-
300
- {
301
 
302
- $width = $metadata['width'];
303
 
304
- }
305
 
306
- else
307
 
308
- {
309
 
310
- $width = '';
311
 
312
- }
 
 
313
 
314
- if(isset($metadata['height']))
315
 
316
- {
317
 
318
- $height = $metadata['height'];
 
319
 
320
- }
 
321
 
322
- else
323
 
324
- {
325
 
326
- $height = '';
327
 
328
- }
 
329
 
330
- }
 
331
 
332
- else
333
 
334
- {
 
335
 
336
- $image_type = '';
 
337
 
338
- $width = '';
339
 
340
- $height = '';
 
341
 
342
- }
 
 
343
 
344
- echo '<meta property="og:image:type" content="'.$image_type.'" data-id="sfsi" />';
345
 
346
- echo '<meta property="og:image:width" content="'.$width.'" data-id="sfsi" />';
347
 
348
- echo '<meta property="og:image:height" content="'.$height.'" data-id="sfsi" />';
 
349
 
350
- echo '<meta property="og:url" content="'.$url.'" data-id="sfsi" />';
351
 
352
- echo '<meta property="og:description" content="'.$description.'" data-id="sfsi" />';
353
 
354
- echo '<meta property="og:title" content="'.$title.'" data-id="sfsi" />';
355
 
356
- }
357
 
358
- }
359
 
 
 
 
360
  }
361
  //Get verification code
362
 
363
- if(is_admin())
364
-
365
- {
366
-
367
- $code = sanitize_text_field(get_option('sfsi_verificatiom_code'));
368
 
369
- $feed_id = sanitize_text_field(get_option('sfsi_feed_id'));
370
 
371
- if(empty($code) && !empty($feed_id))
372
 
373
- {
374
-
375
- add_action("init", "sfsi_getverification_code");
376
-
377
- }
378
 
 
 
379
  }
380
  function sfsi_getverification_code()
381
 
382
  {
383
- $feed_id = sanitize_text_field(get_option('sfsi_feed_id'));
384
- $url = $http_url = 'https://www.specificfeeds.com/wordpress/getVerifiedCode_plugin';
385
-
386
- $args = array(
387
- 'timeout' => 15,
388
- 'body' => array(
389
- 'feed_id' => $feed_id
390
- )
391
- );
392
-
393
- $request = wp_remote_post( $url, $args );
394
-
395
- if ( is_wp_error( $request ) ) {
396
- // var_dump($request);
397
- // update_option("sfsi_plus_curlErrorNotices", "yes");
398
- // update_option("sfsi_plus_curlErrorMessage", $request->get_error_message());
399
- }else{
400
- $resp = json_decode($request['body']);
401
- update_option('sfsi_verificatiom_code', $resp->code);
402
- }
403
-
404
  }
405
  //checking for the youtube username and channel id option
406
 
@@ -410,44 +331,33 @@ function check_sfsfiupdatedoptions()
410
 
411
  {
412
 
413
- $option4= unserialize(get_option('sfsi_section4_options',false));
414
-
415
- if(isset($option4['sfsi_youtubeusernameorid']) && !empty($option4['sfsi_youtubeusernameorid']))
416
-
417
- {
418
-
419
- }
420
-
421
- else
422
-
423
- {
424
-
425
- $option4['sfsi_youtubeusernameorid'] = 'name';
426
 
427
- update_option('sfsi_section4_options',serialize($option4));
428
 
429
- }
430
 
 
 
431
  }
432
  add_action('plugins_loaded', 'sfsi_load_domain');
433
 
434
- function sfsi_load_domain()
435
 
436
  {
437
 
438
- $plugin_dir = basename(dirname(__FILE__)).'/languages';
439
-
440
- load_plugin_textdomain( SFSI_DOMAIN, false, $plugin_dir );
441
 
 
442
  }
443
  //sanitizing values
444
 
445
- function string_sanitize($s) {
 
446
 
447
  $result = preg_replace("/[^a-zA-Z0-9]+/", " ", html_entity_decode($s, ENT_QUOTES));
448
 
449
  return $result;
450
-
451
  }
452
  //Add Subscriber form css
453
 
@@ -457,308 +367,294 @@ function addStyleFunction()
457
 
458
  {
459
 
460
- $option8 = unserialize(get_option('sfsi_section8_options',false));
461
 
462
- $sfsi_feediid = sanitize_text_field(get_option('sfsi_feed_id'));
463
 
464
- $url = "https://www.specificfeeds.com/widgets/subscribeWidget/";
465
 
466
- echo $return = '';
467
 
468
- ?>
469
 
470
  <script>
471
- jQuery(document).ready(function(e) {
472
-
473
- jQuery("body").addClass("sfsi_<?php echo get_option("sfsi_pluginVersion");?>")
474
-
475
- });
476
 
477
- function sfsi_processfurther(ref) {
478
 
479
- var feed_id = '<?php echo $sfsi_feediid?>';
480
- var feedtype = 8;
481
 
482
- var email = jQuery(ref).find('input[name="data[Widget][email]"]').val();
483
 
484
- var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
485
 
486
- if ((email != "Enter your email") && (filter.test(email))) {
487
- if (feed_id != "") {
488
 
489
- if (feedtype == "8") {
490
 
491
- var url = "<?php echo $url; ?>" + feed_id + "/" + feedtype;
492
 
493
- window.open('', "popupwindow", "scrollbars=yes,width=1080,height=760");
494
 
495
- ref.action = url;
496
 
497
- ref.target = "popupwindow";
498
 
499
- return true;
500
 
501
- } else {
502
 
503
- return false
504
 
 
505
  }
506
- }
507
- } else {
508
 
509
- alert("Please enter email address");
510
 
511
- jQuery(ref).find('input[name="data[Widget][email]"]').focus();
512
 
513
- return false;
514
 
515
- }
516
 
517
- }
518
  </script>
519
 
520
  <style type="text/css" aria-selected="true">
521
- .sfsi_subscribe_Popinner {
522
 
523
- <?php if(sanitize_text_field($option8['sfsi_form_adjustment'])=='yes'): ?> width: 100% !important;
524
 
525
- height: auto !important;
526
 
527
- <?php else: ?> width: <?php echo intval($option8['sfsi_form_width']) ?>px !important;
528
 
529
- height: <?php echo intval($option8['sfsi_form_height']) ?>px !important;
530
 
531
- <?php endif;
532
- ?><?php if(sanitize_text_field($option8['sfsi_form_border'])=='yes'): ?> border: <?php echo intval($option8['sfsi_form_border_thickness'])."px solid ".sfsi_sanitize_hex_color($option8['sfsi_form_border_color']);
533
- ?> !important;
534
 
535
- <?php endif;
536
- ?>padding: 18px 0px !important;
537
 
538
- background-color: <?php echo sfsi_sanitize_hex_color($option8['sfsi_form_background']) ?> !important;
539
 
540
- }
541
 
542
- .sfsi_subscribe_Popinner form {
543
 
544
- margin: 0 20px !important;
545
 
546
- }
547
 
548
- .sfsi_subscribe_Popinner h5 {
549
 
550
- font-family: <?php echo sanitize_text_field($option8['sfsi_form_heading_font']) ?> !important;
551
 
552
- <?php if(sanitize_text_field($option8['sfsi_form_heading_fontstyle']) !='bold') {
553
- ?>font-style: <?php echo sanitize_text_field($option8['sfsi_form_heading_fontstyle']) ?> !important;
554
 
555
  <?php
556
- }
557
-
558
- else {
559
- ?>font-weight: <?php echo sanitize_text_field($option8['sfsi_form_heading_fontstyle']) ?> !important;
560
 
561
  <?php
562
- }
563
 
564
- ?>color: <?php echo sfsi_sanitize_hex_color($option8['sfsi_form_heading_fontcolor']) ?> !important;
565
 
566
- font-size: <?php echo intval($option8['sfsi_form_heading_fontsize'])."px"?> !important;
567
 
568
- text-align: <?php echo sanitize_text_field($option8['sfsi_form_heading_fontalign']) ?> !important;
569
 
570
- margin: 0 0 10px !important;
571
 
572
- padding: 0 !important;
573
 
574
- }
575
 
576
- .sfsi_subscription_form_field {
577
 
578
- margin: 5px 0 !important;
579
 
580
- width: 100% !important;
581
 
582
- display: inline-flex;
583
 
584
- display: -webkit-inline-flex;
585
 
586
- }
587
 
588
- .sfsi_subscription_form_field input {
589
 
590
- width: 100% !important;
591
 
592
- padding: 10px 0px !important;
593
 
594
- }
595
 
596
- .sfsi_subscribe_Popinner input[type=email] {
597
 
598
- font-family: <?php echo sanitize_text_field($option8['sfsi_form_field_font']);
599
- ?> !important;
600
 
601
- <?php if(sanitize_text_field($option8['sfsi_form_field_fontstyle']) !='bold') {
602
- ?>font-style: <?php echo sanitize_text_field($option8['sfsi_form_field_fontstyle']) ?> !important;
603
 
604
  <?php
605
- }
606
-
607
- else {
608
- ?>font-weight: <?php echo sanitize_text_field($option8['sfsi_form_field_fontstyle']) ?> !important;
609
 
610
  <?php
611
- }
612
 
613
- ?>color: <?php echo sfsi_sanitize_hex_color($option8['sfsi_form_field_fontcolor']);
614
- ?> !important;
615
 
616
- font-size: <?php echo intval($option8['sfsi_form_field_fontsize'])."px"?> !important;
617
 
618
- text-align: <?php echo sanitize_text_field($option8['sfsi_form_field_fontalign']);
619
- ?> !important;
620
 
621
- }
622
 
623
- .sfsi_subscribe_Popinner input[type=email]::-webkit-input-placeholder {
624
 
625
- font-family: <?php echo sanitize_text_field($option8['sfsi_form_field_font']);
626
- ?> !important;
627
 
628
- <?php if(sanitize_text_field($option8['sfsi_form_field_fontstyle']) !='bold') {
629
- ?>font-style: <?php echo sanitize_text_field($option8['sfsi_form_field_fontstyle']) ?> !important;
630
 
631
  <?php
632
- }
633
-
634
- else {
635
- ?>font-weight: <?php echo sanitize_text_field($option8['sfsi_form_field_fontstyle']) ?> !important;
636
 
637
  <?php
638
- }
639
 
640
- ?>color: <?php echo sfsi_sanitize_hex_color($option8['sfsi_form_field_fontcolor']);
641
- ?> !important;
642
 
643
- font-size: <?php echo intval($option8['sfsi_form_field_fontsize'])."px"?> !important;
644
 
645
- text-align: <?php echo sanitize_text_field($option8['sfsi_form_field_fontalign']);
646
- ?> !important;
647
 
648
- }
649
 
650
- .sfsi_subscribe_Popinner input[type=email]:-moz-placeholder {
651
- /* Firefox 18- */
652
 
653
- font-family: <?php echo sanitize_text_field($option8['sfsi_form_field_font']);
654
- ?> !important;
655
 
656
- <?php if(sanitize_text_field($option8['sfsi_form_field_fontstyle']) !='bold') {
657
- ?>font-style: <?php echo sanitize_text_field($option8['sfsi_form_field_fontstyle']) ?> !important;
658
 
659
  <?php
660
- }
661
-
662
- else {
663
- ?>font-weight: <?php echo sanitize_text_field($option8['sfsi_form_field_fontstyle']) ?> !important;
664
 
665
  <?php
666
- }
667
 
668
- ?>color: <?php echo sfsi_sanitize_hex_color($option8['sfsi_form_field_fontcolor']);
669
- ?> !important;
670
 
671
- font-size: <?php echo intval($option8['sfsi_form_field_fontsize'])."px"?> !important;
672
 
673
- text-align: <?php echo sanitize_text_field($option8['sfsi_form_field_fontalign']);
674
- ?> !important;
675
 
676
- }
677
 
678
- .sfsi_subscribe_Popinner input[type=email]::-moz-placeholder {
679
- /* Firefox 19+ */
680
 
681
- font-family: <?php echo sanitize_text_field($option8['sfsi_form_field_font']);
682
- ?> !important;
683
 
684
- <?php if(sanitize_text_field($option8['sfsi_form_field_fontstyle']) !='bold') {
685
- ?>font-style: <?php echo sanitize_text_field($option8['sfsi_form_field_fontstyle']) ?> !important;
686
 
687
  <?php
688
- }
689
-
690
- else {
691
- ?>font-weight: <?php echo sanitize_text_field($option8['sfsi_form_field_fontstyle']) ?> !important;
692
 
693
  <?php
694
- }
695
 
696
- ?>color: <?php echo sfsi_sanitize_hex_color($option8['sfsi_form_field_fontcolor']);
697
- ?> !important;
698
 
699
- font-size: <?php echo intval($option8['sfsi_form_field_fontsize'])."px"?> !important;
700
 
701
- text-align: <?php echo sanitize_text_field($option8['sfsi_form_field_fontalign']);
702
- ?> !important;
703
 
704
- }
705
 
706
- .sfsi_subscribe_Popinner input[type=email]:-ms-input-placeholder {
707
 
708
- font-family: <?php echo sanitize_text_field($option8['sfsi_form_field_font']);
709
- ?> !important;
710
 
711
- <?php if(sanitize_text_field($option8['sfsi_form_field_fontstyle']) !='bold') {
712
- ?>font-style: <?php echo sanitize_text_field($option8['sfsi_form_field_fontstyle']) ?> !important;
713
 
714
  <?php
715
- }
716
-
717
- else {
718
- ?>font-weight: <?php echo sanitize_text_field($option8['sfsi_form_field_fontstyle']) ?> !important;
719
 
720
  <?php
721
- }
722
 
723
- ?>color: <?php echo sfsi_sanitize_hex_color($option8['sfsi_form_field_fontcolor']);
724
- ?> !important;
725
 
726
- font-size: <?php echo intval($option8['sfsi_form_field_fontsize'])."px"?> !important;
727
 
728
- text-align: <?php echo sanitize_text_field($option8['sfsi_form_field_fontalign']);
729
- ?> !important;
730
 
731
- }
732
 
733
- .sfsi_subscribe_Popinner input[type=submit] {
734
 
735
- font-family: <?php echo sanitize_text_field($option8['sfsi_form_button_font']);
736
- ?> !important;
737
 
738
- <?php if(sanitize_text_field($option8['sfsi_form_button_fontstyle']) !='bold') {
739
- ?>font-style: <?php echo sanitize_text_field($option8['sfsi_form_button_fontstyle']) ?> !important;
740
 
741
  <?php
742
- }
743
-
744
- else {
745
- ?>font-weight: <?php echo sanitize_text_field($option8['sfsi_form_button_fontstyle']) ?> !important;
746
 
747
  <?php
748
- }
749
 
750
- ?>color: <?php echo sfsi_sanitize_hex_color($option8['sfsi_form_button_fontcolor']);
751
- ?> !important;
752
 
753
- font-size: <?php echo intval($option8['sfsi_form_button_fontsize'])."px"?> !important;
754
 
755
- text-align: <?php echo sanitize_text_field($option8['sfsi_form_button_fontalign']);
756
- ?> !important;
757
 
758
- background-color: <?php echo sfsi_sanitize_hex_color($option8['sfsi_form_button_background']);
759
- ?> !important;
760
 
761
- }
762
  </style>
763
 
764
  <?php
@@ -771,36 +667,37 @@ function sfsi_admin_notice()
771
 
772
  {
773
 
774
- $language = get_option("WPLANG");
775
- // if(isset($_GET['page']) && $_GET['page'] == "sfsi-options")
776
 
777
- // {
778
 
779
- // $style = "overflow: hidden; margin:12px 3px 0px;";
780
 
781
- // }
782
 
783
- // else
784
 
785
- // {
786
 
787
- // $style = "overflow: hidden;";
788
 
789
- // }
790
- // $style = "overflow: hidden;";
791
- // /**
792
 
793
- // * if wordpress uses other language
794
 
795
- // */
796
 
797
- // if(!empty($language) && isset($_GET['page']) && $_GET['page'] == "sfsi-options" &&
798
 
799
- // get_option("sfsi_languageNotice") == "yes")
800
 
801
- // {
802
 
803
- // ?>
 
804
 
805
  <!-- // <style type="text/css">
806
 
@@ -830,7 +727,8 @@ function sfsi_admin_notice()
830
 
831
  // </style>
832
 
833
- // <div class="updated" style="<?php //echo $style; ?>">
 
834
 
835
  // <div class="alignleft" style="margin: 9px 0;">
836
 
@@ -852,108 +750,95 @@ function sfsi_admin_notice()
852
 
853
  // </div> -->
854
 
855
- <?php
856
-
857
- // }
858
- /**
859
-
860
- * Premium Notification
861
-
862
- */
863
-
864
- $sfsi_themecheck = new sfsi_ThemeCheck();
865
-
866
- $domain = $sfsi_themecheck->sfsi_plus_getdomain(site_url());
867
 
868
- $siteMatch = false;
869
- if(!empty($domain))
870
 
871
- {
872
 
873
- $regexp = "/^([a-d A-D])/im";
874
 
875
- if(preg_match($regexp, $domain)) {
876
 
877
- $siteMatch = true;
878
 
879
- }
 
880
 
881
- else {
882
 
883
- $siteMatch = false;
884
 
885
- }
 
886
 
887
- }
888
- if(get_option("show_premium_notification") == "yes")
889
-
890
- {
891
 
892
- ?>
893
 
894
  <style type="text/css">
895
- div.sfsi_show_premium_notification {
896
 
897
- float: none;
898
 
899
- display: block;
900
 
901
- margin-left: 15px;
902
 
903
- margin-top: 15px;
904
 
905
- padding: 8px;
906
 
907
- background-color: #38B54A;
908
 
909
- color: #fff;
910
 
911
- font-size: 18px;
912
 
913
- }
914
 
915
- .sfsi_show_premium_notification a {
916
 
917
- color: #fff;
918
 
919
- }
920
 
921
- form.sfsi_premiumNoticeDismiss {
922
 
923
- display: inline-block;
924
 
925
- margin: 5px 0 0;
926
 
927
- vertical-align: middle;
928
 
929
- }
930
 
931
- .sfsi_premiumNoticeDismiss input[type='submit'] {
932
 
933
- background-color: transparent;
934
 
935
- border: medium none;
936
 
937
- color: #fff;
938
 
939
- margin: 0;
940
 
941
- padding: 0;
942
 
943
- cursor: pointer;
944
 
945
- }
946
  </style>
947
 
948
- <div class="updated sfsi_show_premium_notification" style="<?php echo isset($style)?$style:''; ?>">
949
 
950
  <div style="margin: 9px 0; ">
951
 
952
- BIG NEWS: There is now a <b><a
953
- href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=notification_banner&utm_medium=banner"
954
- target="_blank">Premium Ultimate Social Media Plugin</a></b> available with many more cool features: <a
955
- href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=notification_banner&utm_medium=banner"
956
- target="_blank">Check it out</a>
957
 
958
  </div>
959
 
@@ -973,78 +858,68 @@ form.sfsi_premiumNoticeDismiss {
973
 
974
  <?php
975
 
976
- }
977
- if(is_ssl()){
978
- if(get_option("show_premium_cumulative_count_notification") == "yes")
979
-
980
- {
981
 
982
- ?>
983
 
984
  <style type="text/css">
985
- div.sfsi_show_premium_cumulative_count_notification {
986
-
987
- color: #fff;
988
-
989
- float: left;
990
 
991
- width: 94.2%;
992
 
993
- margin-left: 37px;
994
 
995
- margin-top: 15px;
996
 
997
- padding: 8px;
998
 
999
- background-color: #38B54A;
1000
 
1001
- color: #fff;
1002
 
1003
- font-size: 18px;
1004
 
1005
- }
1006
 
1007
- .sfsi_show_premium_cumulative_count_notification a {
1008
 
1009
- color: #fff;
1010
- }
1011
 
1012
- form.sfsi_premiumCumulativeCountNoticeDismiss {
1013
 
1014
- display: inline-block;
1015
 
1016
- margin: 5px 0 0;
1017
 
1018
- vertical-align: middle;
1019
 
1020
- }
1021
 
1022
- .sfsi_premiumCumulativeCountNoticeDismiss input[type='submit'] {
1023
 
1024
- background-color: transparent;
1025
 
1026
- border: medium none;
1027
 
1028
- color: #fff;
1029
 
1030
- margin: 0;
1031
 
1032
- padding: 0;
1033
 
1034
- cursor: pointer;
1035
 
1036
- }
1037
  </style>
1038
 
1039
  <div class="updated sfsi_show_premium_cumulative_count_notification">
1040
 
1041
  <div style="margin: 9px 0;">
1042
 
1043
- <b>Recently switched to https?</b> If you don’t want to lose the Facebook share & like counts <a
1044
- href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=https_share_counts&utm_medium=banner"
1045
- target="_blank">have a look at our Premium Plugin</a>, we found a fix for that: <a
1046
- href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=https_share_counts&utm_medium=banner"
1047
- target="_blank">Check it out</a>
1048
 
1049
  </div>
1050
 
@@ -1066,58 +941,58 @@ form.sfsi_premiumCumulativeCountNoticeDismiss {
1066
 
1067
  <?php
1068
 
1069
- }
1070
-
1071
- }
1072
- /* show mobile notification */
1073
 
1074
- if(get_option("show_mobile_notification") == "yes"){
1075
 
1076
- $sfsi_install_date = strtotime(get_option( 'sfsi_installDate' ));
1077
 
1078
- $sfsi_future_date = strtotime( '14 days',$sfsi_install_date );
1079
 
1080
- $sfsi_past_date = strtotime("now");
1081
 
1082
- if($sfsi_past_date >= $sfsi_future_date) {
1083
 
1084
- ?>
1085
 
1086
  <style type="text/css">
1087
- .sfsi_show_mobile_notification a {
1088
 
1089
- color: #fff;
1090
 
1091
- }
1092
 
1093
- form.sfsi_mobileNoticeDismiss {
1094
 
1095
- display: inline-block;
1096
 
1097
- margin: 5px 0 0;
1098
 
1099
- vertical-align: middle;
1100
 
1101
- }
1102
 
1103
- .sfsi_mobileNoticeDismiss input[type='submit'] {
1104
 
1105
- background-color: transparent;
1106
 
1107
- border: medium none;
1108
 
1109
- color: #fff;
1110
 
1111
- margin: 0;
1112
 
1113
- padding: 0;
1114
 
1115
- cursor: pointer;
1116
 
1117
- }
1118
  </style>
1119
 
1120
- <!-- <div class="updated sfsi_show_mobile_notification" style="<?php //echo $style; ?>background-color: #38B54A; color: #fff; font-size: 18px;">
 
1121
 
1122
  <div class="alignleft" style="margin: 9px 0;line-height: 24px;width: 95%;">
1123
 
@@ -1141,73 +1016,67 @@ form.sfsi_mobileNoticeDismiss {
1141
 
1142
  <?php
1143
 
1144
- }
1145
-
1146
- }
1147
 
1148
- /* end show mobile notification */
1149
 
1150
- /* start phpversion error notification*/
1151
 
1152
  $phpVersion = phpVersion();
1153
 
1154
- if($phpVersion <= '5.4')
1155
 
1156
- {
1157
-
1158
- if(get_option("sfsi_serverphpVersionnotification") == "yes")
1159
-
1160
- {
1161
- ?>
1162
 
1163
 
1164
 
1165
  <style type="text/css">
1166
- .sfsi_show_phperror_notification {
1167
 
1168
- color: #fff;
1169
 
1170
- text-decoration: underline;
1171
 
1172
- }
1173
 
1174
- form.sfsi_phperrorNoticeDismiss {
1175
 
1176
- display: inline-block;
1177
 
1178
- margin: 5px 0 0;
1179
 
1180
- vertical-align: middle;
1181
 
1182
- }
1183
 
1184
- .sfsi_phperrorNoticeDismiss input[type='submit'] {
1185
 
1186
- background-color: transparent;
1187
 
1188
- border: medium none;
1189
 
1190
- color: #fff;
1191
 
1192
- margin: 0;
1193
 
1194
- padding: 0;
1195
 
1196
- cursor: pointer;
1197
 
1198
- }
1199
 
1200
- .sfsi_show_phperror_notification p {
1201
- line-height: 22px;
1202
- }
1203
 
1204
- p.sfsi_show_notifictaionpragraph {
1205
- padding: 0 !important;
1206
- font-size: 18px;
1207
- }
1208
  </style>
1209
- <div class="updated sfsi_show_phperror_notification"
1210
- style="<?php echo (isset($style)?$style:''); ?>background-color: #D22B2F; color: #fff; font-size: 18px; border-left-color: #D22B2F;">
1211
 
1212
  <div style="margin: 9px 0;">
1213
  <p class="sfsi_show_notifictaionpragraph">
@@ -1241,221 +1110,231 @@ p.sfsi_show_notifictaionpragraph {
1241
 
1242
  <?php
1243
 
1244
- }
1245
-
1246
- }
1247
  sfsi_get_language_detection_notice();
1248
  sfsi_language_notice();
1249
 
1250
-
1251
 
1252
- sfsi_addThis_removal_notice();
1253
- sfsi_error_reporting_notice();
1254
 
 
 
1255
  }
1256
- function sfsi_get_language_detection_notice(){
 
1257
  $currLang = get_locale();
1258
 
1259
  $text = '';
1260
  switch ($currLang) {
1261
- // Arabic
 
 
1262
 
1263
- // case 'ar':
1264
 
1265
-
1266
 
1267
- // $text = "";
1268
 
1269
- // break;
1270
- // Chinese - simplified
1271
 
1272
  case 'zh-Hans':
1273
 
1274
-
1275
 
1276
  $text = "似乎你的WordPress仪表盘使用的是法语。你知道 终极社交媒体插件 也支持法语吗? <a target='_blank' href='https://wordpress.org/plugins/ultimate-social-media-plus/'><b>请点击此处</b></a>";
1277
 
1278
  break;
1279
- // Chinese - traditional
 
 
 
1280
 
1281
- // case 'zh-Hant':
1282
 
1283
-
1284
 
1285
- // $text = "";
 
1286
 
1287
- // break;
1288
- // Dutch, Dutch (Belgium)
1289
 
1290
- // case 'nl_NL': case 'nl_BE':
1291
 
1292
- // $text = "";
 
1293
 
1294
- // break;
1295
- // French (Belgium), French (France)
1296
 
1297
- case 'fr_BE': case 'fr_FR':
1298
 
1299
-
1300
 
1301
  $text = "Il semblerait que votre tableau de bord Wordpress soit en Français. Saviez-vous que l'extension Ultimate Social Media est aussi disponible en Français? <a target='_blank' href='https://wordpress.org/plugins/ultimate-social-media-plus/'>Cliquez ici</a>";
1302
 
1303
  break;
1304
- // German, German (Switzerland)
1305
 
1306
- case 'de': case 'de_CH':
1307
- $text = "Dein Wordpress-Dashboard scheint auf deutsch zu sein. Wusstest Du dass das Ultimate Social Media Plugin auch auf deutsch verfügbar ist? <a target='_blank' href='https://wordpress.org/plugins/ultimate-social-media-plus/'>Klicke hier</a>";
 
1308
 
1309
  break;
1310
- // Greek
1311
 
1312
- // case 'el':
1313
 
1314
-
1315
 
1316
- // $text = "";
1317
 
1318
- // break;
1319
- // Hebrew
 
 
1320
 
1321
  case 'he_IL':
1322
  $text = "נדמה שלוח הבקרה שלך הוא בעברית. האם ידעת שהתוסף זמין גם בשפה העברית? <a target='_blank' href='https://wordpress.org/plugins/ultimate-social-media-plus/'>לחץ כאן</a>";
1323
 
1324
  break;
1325
- // Hindi
 
 
 
1326
 
1327
- // case 'hi_IN':
1328
 
1329
-
1330
 
1331
- // $text = "";
 
1332
 
1333
- // break;
1334
- // Indonesian
1335
 
1336
- // case 'id':
1337
 
1338
-
1339
 
1340
- // $text = "";
1341
- // break;
1342
- // Italian
1343
 
1344
  case 'it_IT':
1345
 
1346
-
1347
 
1348
- $text = "Semberebbe che la tua bacheca di WordPress sia in Italiano.Lo sapevi che il plugin Ultimate Social Media è anche dispoinibile in Italiano? <a target='_blank' href='https://wordpress.org/plugins/ultimate-social-media-plus/'>Fai click qui</a>";
1349
 
1350
-
1351
 
1352
- break;
1353
- // Japanese
1354
 
1355
- // case 'ja':
1356
 
1357
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1358
 
1359
- // $text = "";
1360
- // break;
1361
- // Korean
1362
 
1363
- // case 'ko_KR ':
1364
- // $text = "";
1365
- // break;
1366
- // Persian, Persian (Afghanistan)
1367
 
1368
- // case 'fa_IR':case 'fa_AF':
1369
 
1370
-
1371
 
1372
- // $text = "";
1373
 
1374
-
1375
 
1376
- // break;
1377
- // Polish
1378
- // case 'pl_PL':
1379
 
1380
- // $text = "";
1381
 
1382
- // break;
1383
- //Portuguese (Brazil), Portuguese (Portugal)
1384
- case 'pt_BR': case 'pt_PT':
 
1385
  $text = "Parece que seu painel Wordpress está em português. Você sabia que o plugin Ultimate Social Media também está disponível em português? <a target='_blank' href='https://wordpress.org/plugins/ultimate-social-media-plus/'>Clique aqui</a>";
1386
- break;
1387
- // Russian, Russian (Ukraine)
1388
 
1389
- case 'ru_RU': case 'ru_UA':
 
1390
  $text = "Ты говоришь по-русски? Если у вас есть вопросы о плагине Ultimate Social Media, задайте свой вопрос в форуме поддержки, мы постараемся ответить на русский: <a target='_blank' href='https://wordpress.org/plugins/ultimate-social-media-plus/'>Нажмите здесь</a>";
1391
 
1392
-
1393
 
1394
- break;
1395
 
1396
-
1397
 
1398
- /* Spanish (Argentina), Spanish (Chile), Spanish (Colombia), Spanish (Mexico),
1399
 
1400
- Spanish (Peru), Spanish (Puerto Rico), Spanish (Spain), Spanish (Venezuela) */
1401
- case 'es_AR': case 'es_CL': case 'es_CO': case 'es_MX':case 'es_PE':case 'es_PR':
1402
 
1403
- case 'es_ES': case 'es_VE':
 
 
 
 
 
 
 
 
 
 
 
1404
  $text = "Al parecer, tu dashboard en Wordpress está en Francés/ ¿Sabías que el complemento Ultimate Social Media está también disponible en Francés? <a target='_blank' href='https://wordpress.org/plugins/ultimate-social-media-plus/'>Haz clic aquí</a>";
1405
 
1406
- break;
1407
- // Swedish
1408
- // case 'sv_SE':
 
1409
 
1410
-
1411
 
1412
- // $text = "<a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Klicka här</a>";
1413
 
1414
- // break;
1415
- // Turkish
1416
  case 'tr_TR':
1417
 
1418
  $text = "Wordpress gösterge panelinizin dili Türkçe olarak görünüyor. Ultimate Social Media eklentisinin Türkçe için de mevcut olduğunu biliyor musunuz? <a target='_blank' href='https://wordpress.org/plugins/ultimate-social-media-plus/'>Buraya tıklayın</a>";
1419
 
1420
- break;
1421
- // Ukrainian
1422
- // case 'uk':
1423
 
1424
- // $text = "<a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>натисніть тут</a>";
1425
 
1426
- // break;
1427
- // Vietnamese
1428
  case 'vi':
1429
 
1430
  $text = 'Có vẻ như bảng điều khiển Wordpress của bạn đang hiển thị "tiếng Việt". Bạn có biết rằng Ultimate Social Media plugin cũng hỗ trợ tiếng Việt? <a target="_blank" href="https://wordpress.org/plugins/ultimate-social-media-plus/">Hãy nhấn vào đây</a>';
1431
 
1432
- break;
1433
-
1434
  }
1435
- $style = "overflow: hidden;padding:8px;margin:15px 15px 15px 0px !important";
1436
- if(!empty($text) && isset($_GET['page'])
 
1437
 
1438
- && ("sfsi-options" == $_GET['page']) && ("yes" == get_option("sfsi_languageNotice") ) ) {
 
1439
 
1440
- ?>
1441
  <style type="text/css">
1442
- form.sfsi_languageNoticeDismiss {
1443
- display: inline-block;
1444
- margin: 5px 0 0;
1445
- vertical-align: middle;
1446
- }
1447
 
1448
- .sfsi_languageNoticeDismiss input[type='submit'] {
1449
- background-color: transparent;
1450
- border: medium none;
1451
- margin: 0 5px 0 0px;
1452
- padding: 0;
1453
- cursor: pointer;
1454
- font-size: 22px;
1455
- }
1456
  </style>
1457
 
1458
- <div class="notice notice-info" style="<?php echo isset($style)?$style:''; ?>">
1459
 
1460
  <div style="margin: 9px 0;">
1461
 
@@ -1477,7 +1356,6 @@ form.sfsi_languageNoticeDismiss {
1477
 
1478
  </div>
1479
  <?php }
1480
-
1481
  }
1482
  add_action('admin_init', 'sfsi_dismiss_admin_notice');
1483
 
@@ -1485,164 +1363,145 @@ function sfsi_dismiss_admin_notice()
1485
 
1486
  {
1487
 
1488
- if ( isset($_REQUEST['sfsi-dismiss-notice']) && $_REQUEST['sfsi-dismiss-notice'] == 'true' )
1489
-
1490
- {
1491
-
1492
- update_option( 'show_notification_plugin', "no" );
1493
-
1494
- //header("Location: ".site_url()."/wp-admin/admin.php?page=sfsi-options");die;
1495
-
1496
- }
1497
- if ( isset($_REQUEST['sfsi-dismiss-languageNotice']) && $_REQUEST['sfsi-dismiss-languageNotice'] == 'true' )
1498
-
1499
- {
1500
 
1501
- update_option( 'sfsi_languageNotice', "no" );
1502
 
1503
- //header("Location: ".site_url()."/wp-admin/admin.php?page=sfsi-options"); die;
1504
-
1505
- }
1506
- if ( isset($_REQUEST['sfsi-dismiss-premiumNotice']) && $_REQUEST['sfsi-dismiss-premiumNotice'] == 'true' )
1507
 
1508
- {
1509
-
1510
- update_option( 'show_premium_notification', "no" );
1511
 
1512
- //header("Location: ".site_url()."/wp-admin/admin.php?page=sfsi-options");die;
1513
 
1514
- }
1515
- if ( isset($_REQUEST['sfsi-dismiss-mobileNotice']) && $_REQUEST['sfsi-dismiss-mobileNotice'] == 'true' )
1516
 
1517
- {
1518
-
1519
- update_option( 'show_mobile_notification', "no" );
1520
 
1521
- //header("Location: ".site_url()."/wp-admin/admin.php?page=sfsi-options");die;
1522
 
1523
- }
1524
 
1525
- if ( isset($_REQUEST['sfsi-dismiss-phperrorNotice']) && $_REQUEST['sfsi-dismiss-phperrorNotice'] == 'true' )
 
1526
 
1527
- {
1528
 
1529
- update_option( 'sfsi_serverphpVersionnotification', "no" );
1530
 
1531
- }
1532
 
1533
- if ( isset($_REQUEST['sfsi-dismiss-premiumCumulativeCountNoticeDismiss']) && $_REQUEST['sfsi-dismiss-premiumCumulativeCountNoticeDismiss'] == 'true' )
1534
 
1535
- {
 
1536
 
1537
- update_option( 'show_premium_cumulative_count_notification', "no" );
1538
 
1539
- }
 
1540
  }
1541
  function sfsi_get_bloginfo($url)
1542
 
1543
  {
1544
 
1545
- $web_url = get_bloginfo($url);
1546
- //Block to use feedburner url
1547
-
1548
- if (preg_match("/(feedburner)/im", $web_url, $match))
1549
 
1550
- {
1551
-
1552
- $web_url = site_url()."/feed";
1553
-
1554
- }
1555
 
1556
- return $web_url;
 
1557
 
 
1558
  }
1559
 
1560
- add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), "sfsi_actionLinks", -10 );
1561
 
1562
  function sfsi_actionLinks($links)
1563
 
1564
  {
1565
 
1566
- unset($links['edit']);
1567
 
1568
- $links['a'] = '<a target="_blank" href="https://goo.gl/auxJ9C#no-topic-0" id="sfsi_deactivateButton" style="color:#FF0000;"><b>Need help?</b></a>';
1569
 
1570
- //$links[] = '<a target="_blank" href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_manage_plugin_page&utm_campaign=check_out_pro_version&utm_medium=banner" id="sfsi_deactivateButton" style="color:#38B54A;"><b>Check out pro version</b></a>';
1571
- /*if(isset($links["edit"]) && !empty($links["edit"])){
1572
 
1573
  $links[] = @$links["edit"];
1574
 
1575
  }*/
1576
- //$slug = plugin_basename(dirname(__FILE__));
1577
-
1578
- //$links[$slug] = @$links["deactivate"].'<i class="sfsi-deactivate-slug"></i>';
1579
- $links['e'] = '<a href="'.admin_url("/admin.php?page=sfsi-options").'">Settings</a>';
1580
- ksort($links);
1581
- //unset($links["deactivate"]);
1582
 
1583
- return $links;
 
 
 
1584
 
 
1585
  }
1586
  global $pagenow;
1587
- if( 'plugins.php' === $pagenow ){
1588
- add_action( 'admin_footer', '_sfsi_add_deactivation_feedback_dialog_box');
1589
- function _sfsi_add_deactivation_feedback_dialog_box(){
1590
- include_once(SFSI_DOCROOT.'/views/deactivation/sfsi_deactivation_popup.php'); ?>
 
1591
  <script type="text/javascript">
1592
- jQuery(document).ready(function($) {
1593
- var _deactivationLink = $('.sfsi-deactivate-slug').prev();
1594
- $('.sfsi-deactivation-reason-link').find('a').attr('href', _deactivationLink.attr('href'));
1595
- _deactivationLink.on('click', function(e) {
1596
 
1597
- e.preventDefault();
1598
 
1599
- $('[data-popup="popup-1"]').fadeIn(350);
1600
 
1601
- });
1602
- //----- CLOSE
1603
 
1604
- $('[data-popup-close]').on('click', function(e) {
1605
 
1606
- e.preventDefault();
1607
 
1608
- var targeted_popup_class = jQuery(this).attr('data-popup-close');
1609
 
1610
- $('[data-popup="' + targeted_popup_class + '"]').fadeOut(350);
1611
 
1612
- });
1613
- //----- OPEN
1614
 
1615
- $('[data-popup-open]').on('click', function(e) {
1616
 
1617
- e.preventDefault();
1618
 
1619
- var targeted_popup_class = jQuery(this).attr('data-popup-open');
1620
 
1621
- $('[data-popup="' + targeted_popup_class + '"]').fadeIn(350);
1622
 
1623
- });
1624
- $('.sfsi-deactivate-radio').on('click', function(e) {
1625
- $('.sfsi-deactivate-radio').attr('checked', false);
1626
 
1627
- $(this).attr('checked', true);
1628
- var val = $(this).val();
1629
- $('.sfsi-reason-section').removeClass('show').addClass('hide');
1630
 
1631
- $(this).parent().find('.sfsi-reason-section').addClass('show').removeClass('hide');
1632
 
1633
- });
1634
- $('.sfsi-deactivate-radio-text').on('click', function(e) {
1635
 
1636
- $(this).prev().trigger('click');
1637
 
 
1638
  });
1639
- });
1640
  </script>
1641
 
1642
  <?php
1643
 
1644
- }
1645
-
1646
  }
1647
  /* redirect setting page hook */
1648
  /*add_action('admin_init', 'sfsi_plugin_redirect');
@@ -1665,72 +1524,6 @@ function sfsi_plugin_redirect()
1665
 
1666
  */
1667
 
1668
- function sfsi_curl_error_notification()
1669
-
1670
- {
1671
-
1672
- if(get_option("sfsi_curlErrorNotices") == "yes")
1673
-
1674
- {
1675
-
1676
- ?>
1677
-
1678
- <script type="text/javascript">
1679
- jQuery(document).ready(function(e) {
1680
-
1681
- jQuery(".sfsi_curlerror_cross").click(function() {
1682
-
1683
- SFSI.ajax({
1684
-
1685
- url: sfsi_icon_ajax_object.ajax_url,
1686
-
1687
- type: "post",
1688
-
1689
- data: {
1690
- action: "sfsi_curlerrornotification"
1691
- },
1692
-
1693
- success: function(msg)
1694
-
1695
- {
1696
-
1697
- jQuery(".sfsi_curlerror").hide("fast");
1698
-
1699
-
1700
-
1701
- }
1702
-
1703
- });
1704
-
1705
- });
1706
-
1707
- });
1708
- </script>
1709
- <div class="sfsi_curlerror">
1710
-
1711
- We noticed that your site returns a cURL error («Error:
1712
-
1713
- <?php echo ucfirst(get_option("sfsi_curlErrorMessage")); ?>
1714
-
1715
- »). This means that it cannot send a notification to SpecificFeeds.com when a new post is published. Therefore this
1716
- email-feature doesn’t work. However there are several solutions for this, please visit our FAQ to see the solutions
1717
- («Perceived bugs» => «cURL error messages»):
1718
-
1719
- <a href="https://www.ultimatelysocial.com/faq/" target="new">
1720
-
1721
- www.ultimatelysocial.com/faq
1722
-
1723
- </a>
1724
-
1725
- <div class="sfsi_curlerror_cross">Dismiss</div>
1726
-
1727
- </div>
1728
-
1729
- <?php
1730
-
1731
- }
1732
-
1733
- }
1734
  function _is_curl_installed(){
1735
  if(in_array('curl', get_loaded_extensions())) {
1736
 
@@ -1741,202 +1534,212 @@ function _is_curl_installed(){
1741
  else{
1742
 
1743
  return false;
1744
-
1745
- }
1746
-
1747
  }
1748
  // ********************************* Link to support forum for different languages STARTS *******************************//
1749
- function sfsi_get_language_notice_text(){
 
1750
  $currLang = get_locale();
1751
 
1752
  $text = '';
1753
  switch ($currLang) {
1754
- // Arabic
1755
 
1756
  case 'ar':
1757
 
1758
-
1759
 
1760
  $text = "hal tatakalam alearabia? 'iidha kanat ladayk 'asyilat hawl almukawan al'iidafii l Ultimate Social Media , aitruh sualik fi muntadaa aldaem , sanuhawil alrada biallughat alearabiat: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'><b>'unqur huna</b></a>";
1761
 
1762
  break;
1763
- // Chinese - simplified
1764
 
1765
  case 'zh-Hans':
1766
 
1767
-
1768
 
1769
  $text = "你会说中文吗?如果您有关于Ultimate Social Media插件的问题,请在支持论坛中提出您的问题,我们将尝试用中文回复:<a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'><b>点击此处</b></a>";
1770
 
1771
  break;
1772
- // Chinese - traditional
1773
 
1774
  case 'zh-Hant':
1775
 
1776
-
1777
 
1778
  $text = "你會說中文嗎?如果您有關於Ultimate Social Media插件的問題,請在支持論壇中提出您的問題,我們將嘗試用中文回复:<a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'><b>點擊此處</b></a>";
1779
 
1780
  break;
1781
- // Dutch, Dutch (Belgium)
1782
 
1783
- case 'nl_NL': case 'nl_BE':
 
1784
 
1785
  $text = "Jij spreekt Nederlands? Als je vragen hebt over de Ultimate Social Media-plug-in, stel je vraag in het ondersteuningsforum, we zullen proberen in het Nederlands te antwoorden: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>klik hier</a>";
1786
 
1787
  break;
1788
- // French (Belgium), French (France)
 
 
 
1789
 
1790
- case 'fr_BE': case 'fr_FR':
1791
 
1792
-
1793
 
1794
  $text = "Vous parlez français? Si vous avez des questions sur le plugin Ultimate Social Media, posez votre question sur le forum de support, nous essaierons de répondre en français: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Cliquez ici</a>";
1795
 
1796
  break;
1797
- // German, German (Switzerland)
1798
 
1799
- case 'de': case 'de_CH':
1800
- $text = "Du sprichst Deutsch? Wenn Du Fragen zum Ultimate Social Media-Plugins hast, einfach im Support Forum fragen. Wir antworten auch auf Deutsch! <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Klicke hier</a>";
 
1801
 
1802
  break;
1803
- // Greek
1804
 
1805
  case 'el':
1806
 
1807
-
1808
 
1809
  $text = "Μιλάτε Ελληνικά? Αν έχετε ερωτήσεις σχετικά με το plugin Ultimate Social Media, ρωτήστε την ερώτησή σας στο φόρουμ υποστήριξης, θα προσπαθήσουμε να απαντήσουμε στα ελληνικά: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Κάντε κλικ εδώ</a>";
1810
 
1811
  break;
1812
- // Hebrew
1813
 
1814
  case 'he_IL':
1815
 
1816
-
1817
 
1818
  $text = "אתה מדבר עברית? אם יש לך שאלות על תוסף המדיה החברתית האולטימטיבית, שאל את השאלה שלך בפורום התמיכה, ננסה לענות בעברית: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>לחץ כאן</a>";
1819
 
1820
  break;
1821
- // Hindi
1822
 
1823
  case 'hi_IN':
1824
 
1825
-
1826
 
1827
- $text = "आप हिंदी बोलते हो? यदि आपके पास अल्टीमेट सोशल मीडिया प्लगइन के बारे में कोई प्रश्न है, तो समर्थन फोरम में अपना प्रश्न पूछें, हम हिंदी में जवाब देने का प्रयास करेंगे: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>यहां क्लिक करें</a>";
 
1828
 
1829
  break;
1830
- // Indonesian
1831
 
1832
  case 'id':
1833
 
1834
-
1835
 
1836
  $text = "Anda berbicara bahasa Indonesia? Jika Anda memiliki pertanyaan tentang plugin Ultimate Social Media, ajukan pertanyaan Anda di Forum Dukungan, kami akan mencoba menjawab dalam Bahasa Indonesia: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Klik di sini</a>";
1837
  break;
1838
- // Italian
1839
 
1840
  case 'it_IT':
1841
 
1842
-
1843
 
1844
  $text = "Tu parli italiano? Se hai domande sul plugin Ultimate Social Media, fai la tua domanda nel Forum di supporto, cercheremo di rispondere in italiano: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>clicca qui</a>";
1845
 
1846
-
1847
 
1848
- break;
1849
- // Japanese
 
1850
 
1851
  case 'ja':
1852
 
1853
-
1854
 
1855
  $text = "あなたは日本語を話しますか?アルティメットソーシャルメディアのプラグインに関する質問がある場合は、サポートフォーラムで質問してください。日本語で対応しようと思っています:<a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>ここをクリック</a>";
1856
- break;
1857
- // Korean
1858
 
1859
  case 'ko_KR ':
1860
- $text = "한국어를 할 줄 아세요? 궁극적 인 소셜 미디어 플러그인에 대해 궁금한 점이 있으면 지원 포럼에서 질문하십시오. 한국어로 답변하려고합니다 : <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>여기를 클릭하십시오.</a>";
1861
- break;
1862
- // Persian, Persian (Afghanistan)
 
 
 
1863
 
1864
- case 'fa_IR':case 'fa_AF':
1865
 
1866
-
1867
 
1868
  $text = "شما فارسی صحبت می کنید؟ اگر سوالی در مورد پلاگین رسانه Ultimate Social دارید، سوال خود را در انجمن پشتیبانی بپرسید، سعی خواهیم کرد به فارسی پاسخ دهید: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>اینجا را کلیک کنید</a>";
1869
 
1870
-
1871
 
1872
- break;
1873
- // Polish
 
1874
  case 'pl_PL':
1875
 
1876
  $text = "Mówisz po polsku? Jeśli masz pytania dotyczące wtyczki Ultimate Social Media, zadaj pytanie na Forum pomocy technicznej, postaramy się odpowiedzieć po polsku: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Kliknij tutaj</a>";
1877
 
1878
  break;
1879
- //Portuguese (Brazil), Portuguese (Portugal)
1880
- case 'pt_BR': case 'pt_PT':
 
1881
  $text = "Você fala português? Se você tiver dúvidas sobre o plug-in Ultimate Social Media, faça sua pergunta no Fórum de suporte, tentaremos responder em português: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Clique aqui</a>";
1882
- break;
1883
- // Russian, Russian (Ukraine)
1884
 
1885
- case 'ru_RU': case 'ru_UA':
 
1886
  $text = "Ты говоришь по-русски? Если у вас есть вопросы о плагине Ultimate Social Media, задайте свой вопрос в форуме поддержки, мы постараемся ответить на русский: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Нажмите здесь</a>";
1887
 
1888
-
1889
 
1890
- break;
1891
 
1892
-
1893
 
1894
- /* Spanish (Argentina), Spanish (Chile), Spanish (Colombia), Spanish (Mexico),
1895
 
1896
- Spanish (Peru), Spanish (Puerto Rico), Spanish (Spain), Spanish (Venezuela) */
1897
- case 'es_AR': case 'es_CL': case 'es_CO': case 'es_MX':case 'es_PE':case 'es_PR':
1898
 
1899
- case 'es_ES': case 'es_VE':
 
 
 
 
 
 
 
 
 
 
 
1900
  $text = "¿Tu hablas español? Si tiene alguna pregunta sobre el complemento Ultimate Social Media, formule su pregunta en el foro de soporte, intentaremos responder en español: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>haga clic aquí</a>";
1901
 
1902
- break;
1903
- // Swedish
1904
  case 'sv_SE':
1905
 
1906
-
1907
 
1908
  $text = "Pratar du svenska? Om du har frågor om programmet Ultimate Social Media, fråga din fråga i supportforumet, vi försöker svara på svenska: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Klicka här</a>";
1909
 
1910
- break;
1911
- // Turkish
1912
  case 'tr_TR':
1913
 
1914
  $text = "Sen Türkçe konuş? Nihai Sosyal Medya eklentisi hakkında sorularınız varsa, sorunuza Destek Forumu'nda sorun, Türkçe olarak cevap vermeye çalışacağız: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Tıklayın</a>";
1915
 
1916
- break;
1917
- // Ukrainian
1918
  case 'uk':
1919
 
1920
  $text = "Ви говорите по-українськи? Якщо у вас є запитання про плагін Ultimate Social Media, задайте своє питання на Форумі підтримки, ми спробуємо відповісти українською: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>натисніть тут</a>";
1921
 
1922
- break;
1923
- // Vietnamese
1924
  case 'vi':
1925
 
1926
  $text = "Bạn nói tiếng việt không Nếu bạn có câu hỏi về plugin Ultimate Social Media, hãy đặt câu hỏi của bạn trong Diễn đàn hỗ trợ, chúng tôi sẽ cố gắng trả lời bằng tiếng Việt: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Nhấp vào đây</a>";
1927
 
1928
- break;
1929
-
1930
  }
1931
  return $text;
1932
-
1933
  }
1934
- function sfsi_language_notice(){
1935
- if (isset($_GET['page']) && "sfsi-options" == $_GET['page']) :
 
1936
  $langText = sfsi_get_language_notice_text();
1937
 
1938
  $isDismissed = get_option('sfsi_lang_notice_dismissed');
1939
- if(!empty($langText) && false == $isDismissed) { ?>
1940
 
1941
 
1942
 
@@ -1946,35 +1749,38 @@ function sfsi_language_notice(){
1946
  </div>
1947
  <?php } ?>
1948
  <?php endif;
1949
-
1950
  }
1951
- function sfsi_dismiss_lang_notice(){
1952
-
1953
- if ( !wp_verify_nonce( $_POST['nonce'], "sfsi_dismiss_lang_notice'")) {
1954
-
1955
- echo json_encode(array('res'=>"error")); exit;
1956
 
1957
- }
1958
 
1959
- if(!current_user_can('manage_options')){ echo json_encode(array('res'=>'not allowed'));die(); }
1960
- echo update_option('sfsi_lang_notice_dismissed',true) ? "true" : "false";
 
1961
 
1962
- die;
 
 
 
 
1963
 
 
1964
  }
1965
- add_action( 'wp_ajax_sfsi_dismiss_lang_notice', 'sfsi_dismiss_lang_notice' );
1966
  // ********************************* Link to support forum for different languages CLOSES *******************************//
1967
 
1968
  // ********************************* Notice for removal of AddThis option STARTS *******************************//
1969
 
1970
- function sfsi_addThis_removal_notice(){
1971
- if (isset($_GET['page']) && "sfsi-options" == $_GET['page']) :
 
 
1972
 
1973
-
1974
 
1975
  $sfsi_addThis_removalText = "We removed Addthis from the plugin due to issues with GDPR, the new EU data protection regulation.";
1976
- $isDismissed = get_option('sfsi_addThis_icon_removal_notice_dismissed',false);
1977
- if( false == $isDismissed) { ?>
1978
 
1979
 
1980
 
@@ -1984,45 +1790,49 @@ function sfsi_addThis_removal_notice(){
1984
  </div>
1985
  <?php } ?>
1986
  <?php endif;
1987
-
1988
  }
1989
- function sfsi_dismiss_addthhis_removal_notice(){
1990
-
1991
- if ( !wp_verify_nonce( $_POST['nonce'], "sfsi_dismiss_addThis_icon_notice")) {
1992
 
1993
- echo json_encode(array('res'=>"error")); exit;
1994
 
1995
- }
1996
-
1997
- if(!current_user_can('manage_options')){ echo json_encode(array('res'=>'not allowed'));die(); }
1998
 
1999
- echo (string) update_option('sfsi_addThis_icon_removal_notice_dismissed',true);
 
 
 
2000
 
2001
- die;
2002
 
 
2003
  }
2004
- add_action( 'wp_ajax_sfsi_dismiss_addThis_icon_notice', 'sfsi_dismiss_addthhis_removal_notice' );
2005
  // ********************************* Notice for removal of AddThis option CLOSES *******************************//
2006
  // ********************************* Link to support forum left of every Save button STARTS *******************************//
2007
- function sfsi_ask_for_help($viewNumber){ ?>
 
2008
  <div class="sfsi_askforhelp askhelpInview<?php echo $viewNumber; ?>">
2009
- <img src="<?php echo SFSI_PLUGURL."images/questionmark.png";?>" alt="error" />
2010
  <span>Questions? <a target="_blank" href="#" onclick="event.preventDefault();sfsi_open_chat(event)"><b>Ask
2011
  us</b></a></span>
2012
  </div>
2013
  <?php }
2014
  // ********************************* Link to support forum left of every Save button CLOSES *******************************//
2015
  // ********************************* Notice for error reporting STARTS *******************************//
2016
- function sfsi_error_reporting_notice(){
2017
- if (is_admin()) :
 
 
2018
 
2019
-
2020
 
2021
  $sfsi_error_reporting_notice_txt = 'We noticed that you have set error reporting to "yes" in wp-config. Our plugin (Ultimate Social Media Icons) switches this to "off" so that no errors are displayed (which may also impact error messages from your theme or other plugins). If you don\'t want that, please select the respective option under question 6 (at the bottom).';
2022
- $isDismissed = get_option('sfsi_error_reporting_notice_dismissed',false);
2023
- $option5 = unserialize(get_option('sfsi_section5_options',false));
2024
- $sfsi_icons_suppress_errors = isset($option5['sfsi_icons_suppress_errors']) && !empty($option5['sfsi_icons_suppress_errors']) ? $option5['sfsi_icons_suppress_errors']: false;
2025
- if(isset($isDismissed) && false == $isDismissed && defined('WP_DEBUG') && false != WP_DEBUG && "yes"== $sfsi_icons_suppress_errors) { ?>
2026
 
2027
 
2028
 
@@ -2031,63 +1841,68 @@ function sfsi_error_reporting_notice(){
2031
  <button type="button" class="sfsi_error_reporting_notice-dismiss notice-dismiss"></button>
2032
  </div>
2033
  <script type="text/javascript">
2034
- if (typeof jQuery != 'undefined') {
2035
- (function sfsi_dismiss_notice(btnClass, ajaxAction, nonce) {
 
2036
 
2037
 
2038
 
2039
- var btnClass = "." + btnClass;
2040
- var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>";
2041
- jQuery(document).on("click", btnClass, function() {
2042
 
2043
 
2044
 
2045
- jQuery.ajax({
2046
 
2047
- url: ajaxurl,
2048
 
2049
- type: "post",
2050
 
2051
- data: {
2052
- action: ajaxAction
2053
- },
2054
 
2055
- success: function(e) {
2056
 
2057
- if (false != e) {
2058
 
2059
- jQuery(btnClass).parent().remove();
2060
 
2061
- }
2062
 
2063
- }
2064
 
2065
- });
2066
- });
2067
- }("sfsi_error_reporting_notice-dismiss", "sfsi_dismiss_error_reporting_notice",
2068
- "<?php echo wp_create_nonce('sfsi_dismiss_error_reporting_notice'); ?>"));
2069
 
2070
- }
 
2071
  </script>
2072
  <?php } ?>
2073
- <?php endif;
2074
-
2075
  }
2076
- function sfsi_dismiss_error_reporting_notice(){
2077
-
2078
- if ( !wp_verify_nonce( $_POST['nonce'], "sfsi_dismiss_error_reporting_notice")) {
2079
-
2080
- echo json_encode(array('res'=>"error")); exit;
2081
 
2082
- }
2083
 
2084
- if(!current_user_can('manage_options')){ echo json_encode(array('res'=>'not allowed'));die(); }
 
 
2085
 
2086
- echo (string) update_option('sfsi_error_reporting_notice_dismissed',true);
 
 
 
2087
 
2088
- die;
2089
 
 
2090
  }
2091
 
2092
- add_action( 'wp_ajax_sfsi_dismiss_error_reporting_notice', 'sfsi_dismiss_error_reporting_notice' );
2093
- // ********************************* Notice for error reporting CLOSE *******************************//
 
6
 
7
  Author: UltimatelySocial
8
  Author URI: http://ultimatelysocial.com
9
+ Version: 2.3.8
10
  License: GPLv2 or later
11
  */
12
  require_once 'analyst/main.php';
13
 
14
  analyst_init(array(
15
+ 'client-id' => 'ao6grd4ed38kyeqz',
16
+ 'client-secret' => 'ae93c43c738bdf50f10ef9d4c6d811006b468c74',
17
+ 'base-dir' => __FILE__
18
  ));
19
 
20
+
21
+
22
+
23
  sfsi_error_reporting();
24
  global $wpdb;
25
  /* define the Root for URL and Document */
30
 
31
  define('SFSI_WEBROOT', str_replace(getcwd(), home_url(), dirname(__FILE__)));
32
 
33
+ define('SFSI_SUPPORT_FORM', 'https://goo.gl/wgrtUV');
34
 
35
+ define('SFSI_DOMAIN', 'ultimate-social-media-icons');
36
  $wp_upload_dir = wp_upload_dir();
37
 
38
  define('SFSI_UPLOAD_DIR_BASEURL', trailingslashit($wp_upload_dir['baseurl']));
39
+ define('SFSI_ALLICONS', serialize(array("rss", "email", "facebook", "twitter", "share", "youtube", "pinterest", "instagram")));
40
  function sfsi_get_current_page_url()
41
 
42
  {
43
 
44
+ global $post, $wp;
45
+ if (!empty($wp)) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
+ return home_url(add_query_arg(array(), $wp->request));
48
+ } elseif (!empty($post)) {
49
 
50
+ return get_permalink($post->ID);
51
+ } else {
52
 
53
+ return site_url();
54
+ }
55
  }
56
  /* load all files */
57
 
58
+ include(SFSI_DOCROOT . '/libs/sfsi_install_uninstall.php');
59
+ include(SFSI_DOCROOT . '/helpers/common_helper.php');
60
 
61
+ include(SFSI_DOCROOT . '/libs/controllers/sfsi_socialhelper.php');
62
 
63
+ include(SFSI_DOCROOT . '/libs/controllers/sfsi_class_theme_check.php');
64
 
65
+ include(SFSI_DOCROOT . '/libs/controllers/sfsi_buttons_controller.php');
66
 
67
+ include(SFSI_DOCROOT . '/libs/controllers/sfsi_iconsUpload_contoller.php');
68
 
69
+ include(SFSI_DOCROOT . '/libs/controllers/sfsi_floater_icons.php');
70
 
71
+ include(SFSI_DOCROOT . '/libs/controllers/sfsi_frontpopUp.php');
72
 
73
+ include(SFSI_DOCROOT . '/libs/controllers/sfsiocns_OnPosts.php');
74
+ include(SFSI_DOCROOT . '/libs/sfsi_Init_JqueryCss.php');
75
 
76
+ include(SFSI_DOCROOT . '/libs/sfsi_widget.php');
77
 
78
+ include(SFSI_DOCROOT . '/libs/sfsi_subscribe_widget.php');
79
 
80
+ include(SFSI_DOCROOT . '/libs/sfsi_custom_social_sharing_data.php');
81
 
82
+ include(SFSI_DOCROOT . '/libs/sfsi_ajax_social_sharing_settings_updater.php');
83
  /* plugin install and uninstall hooks */
84
 
85
+ register_activation_hook(__FILE__, 'sfsi_activate_plugin');
86
 
87
  register_deactivation_hook(__FILE__, 'sfsi_deactivate_plugin');
88
 
89
  register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
90
 
91
+ if (!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 2.38) {
 
 
 
92
 
93
+ add_action("init", "sfsi_update_plugin");
94
  }
95
  /* redirect setting page hook */
96
 
100
 
101
  {
102
 
103
+ if (get_option('sfsi_plugin_do_activation_redirect', false)) {
 
 
104
 
105
  delete_option('sfsi_plugin_do_activation_redirect');
106
 
107
  wp_redirect(admin_url('admin.php?page=sfsi-options'));
 
108
  }
 
109
  }
110
  //************************************** Setting error reporting STARTS ****************************************//
111
+ function sfsi_error_reporting()
112
+ {
113
+ $option5 = unserialize(get_option('sfsi_section5_options', false));
114
+ if (
115
+ isset($option5['sfsi_icons_suppress_errors'])
116
+ && !empty($option5['sfsi_icons_suppress_errors'])
117
+ && "yes" == $option5['sfsi_icons_suppress_errors']
118
+ ) {
119
+ error_reporting(0);
120
+ }
121
  }
122
  //************************************** Setting error reporting CLOSES ****************************************//
123
  //shortcode for the ultimate social icons {Monad}
128
 
129
  {
130
 
131
+ $instance = array("showf" => 1, "title" => '');
 
 
132
 
133
+ $return = '';
134
 
135
+ if (!isset($before_widget)) : $before_widget = '';
136
+ endif;
137
 
138
+ if (!isset($after_widget)) : $after_widget = '';
139
+ endif;
140
+ /*Our variables from the widget settings. */
141
 
142
+ $title = apply_filters('widget_title', $instance['title']);
 
 
143
 
144
+ $show_info = isset($instance['show_info']) ? $instance['show_info'] : false;
145
+ global $is_floter;
146
+ $return .= $before_widget;
147
 
148
+ /* Display the widget title */
149
 
150
+ if ($title) $return .= $before_title . $title . $after_title;
151
 
152
+ $return .= '<div class="sfsi_widget">';
153
 
154
+ $return .= '<div id="sfsi_wDiv"></div>';
155
 
156
+ /* Link the main icons function */
157
 
158
+ $return .= sfsi_check_visiblity(0);
159
 
160
+ $return .= '<div style="clear: both;"></div>';
161
 
162
+ $return .= '</div>';
163
 
164
+ $return .= $after_widget;
165
 
166
+ return $return;
167
  }
168
  //adding some meta tags for facebook news feed {Monad}
169
 
171
 
172
  {
173
 
174
+ if (!function_exists('get_plugins')) {
 
 
 
 
 
 
 
 
 
 
 
 
175
 
176
+ require_once ABSPATH . 'wp-admin/includes/plugin.php';
177
+ }
178
+ $adding_tags = "yes";
179
+ $all_plugins = get_plugins();
180
+ foreach ($all_plugins as $key => $plugin) :
181
+ if (is_plugin_active($key)) {
182
+
183
+ if (preg_match("/(seo|search engine optimization|meta tag|open graph|opengraph|og tag|ogtag)/im", $plugin['Name']) || preg_match("/(seo|search engine optimization|meta tag|open graph|opengraph|og tag|ogtag)/im", $plugin['Description'])) :
184
+ $adding_tags = "no";
185
+ break;
186
+ endif;
187
+ }
188
+ endforeach;
189
+ update_option("adding_tags", $adding_tags);
190
  }
191
 
192
+ if (is_admin()) {
 
 
 
 
193
 
194
+ add_action('after_setup_theme', 'sfsi_checkmetas');
195
  }
196
  add_action('wp_head', 'ultimatefbmetatags');
197
 
199
 
200
  {
201
 
202
+ $metarequest = get_option("adding_tags");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
203
 
204
+ $post_id = get_the_ID();
205
+ $feed_id = sanitize_text_field(get_option('sfsi_feed_id'));
 
206
 
207
+ $verification_code = get_option('sfsi_verificatiom_code');
208
 
209
+ if (!empty($feed_id) && !empty($verification_code) && $verification_code != "no") {
210
 
211
+ echo '<meta name="specificfeeds-verification-code-' . $feed_id . '" content="' . $verification_code . '"/>';
212
+ }
213
+ if ($metarequest == 'yes' && !empty($post_id)) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
214
 
215
+ $post = get_post($post_id);
216
 
217
+ $attachment_id = get_post_thumbnail_id($post_id);
218
 
219
+ $title = str_replace('"', "", strip_tags(get_the_title($post_id)));
220
 
221
+ $url = get_permalink($post_id);
222
 
223
+ $description = $post->post_content;
224
 
225
+ $description = str_replace('"', "", strip_tags($description));
226
+ echo '<meta name="viewport" content="width=device-width, initial-scale=1">';
227
+ if ($attachment_id) {
228
 
229
+ $feat_image = wp_get_attachment_url($attachment_id);
230
 
231
+ if (preg_match('/https/', $feat_image)) {
232
 
233
+ echo '<meta property="og:image:secure_url" content="' . $feat_image . '" data-id="sfsi">';
234
+ } else {
235
 
236
+ echo '<meta property="og:image" content="' . $feat_image . '" data-id="sfsi">';
237
+ }
238
 
239
+ $metadata = wp_get_attachment_metadata($attachment_id);
240
 
241
+ if (isset($metadata) && !empty($metadata)) {
242
 
243
+ if (isset($metadata['sizes']['post-thumbnail'])) {
244
 
245
+ $image_type = $metadata['sizes']['post-thumbnail']['mime-type'];
246
+ } else {
247
 
248
+ $image_type = '';
249
+ }
250
 
251
+ if (isset($metadata['width'])) {
252
 
253
+ $width = $metadata['width'];
254
+ } else {
255
 
256
+ $width = '';
257
+ }
258
 
259
+ if (isset($metadata['height'])) {
260
 
261
+ $height = $metadata['height'];
262
+ } else {
263
 
264
+ $height = '';
265
+ }
266
+ } else {
267
 
268
+ $image_type = '';
269
 
270
+ $width = '';
271
 
272
+ $height = '';
273
+ }
274
 
275
+ echo '<meta property="og:image:type" content="' . $image_type . '" data-id="sfsi" />';
276
 
277
+ echo '<meta property="og:image:width" content="' . $width . '" data-id="sfsi" />';
278
 
279
+ echo '<meta property="og:image:height" content="' . $height . '" data-id="sfsi" />';
280
 
281
+ echo '<meta property="og:url" content="' . $url . '" data-id="sfsi" />';
282
 
283
+ echo '<meta property="og:description" content="' . $description . '" data-id="sfsi" />';
284
 
285
+ echo '<meta property="og:title" content="' . $title . '" data-id="sfsi" />';
286
+ }
287
+ }
288
  }
289
  //Get verification code
290
 
291
+ if (is_admin()) {
 
 
 
 
292
 
293
+ $code = sanitize_text_field(get_option('sfsi_verificatiom_code'));
294
 
295
+ $feed_id = sanitize_text_field(get_option('sfsi_feed_id'));
296
 
297
+ if (empty($code) && !empty($feed_id)) {
 
 
 
 
298
 
299
+ add_action("init", "sfsi_getverification_code");
300
+ }
301
  }
302
  function sfsi_getverification_code()
303
 
304
  {
305
+ $feed_id = sanitize_text_field(get_option('sfsi_feed_id'));
306
+ $url = $http_url = 'https://www.specificfeeds.com/wordpress/getVerifiedCode_plugin';
307
+
308
+ $args = array(
309
+ 'timeout' => 15,
310
+ 'body' => array(
311
+ 'feed_id' => $feed_id
312
+ )
313
+ );
314
+
315
+ $request = wp_remote_post($url, $args);
316
+
317
+ if (is_wp_error($request)) {
318
+ // var_dump($request);
319
+ // update_option("sfsi_plus_curlErrorNotices", "yes");
320
+ // update_option("sfsi_plus_curlErrorMessage", $request->get_error_message());
321
+ } else {
322
+ $resp = json_decode($request['body']);
323
+ update_option('sfsi_verificatiom_code', $resp->code);
324
+ }
 
325
  }
326
  //checking for the youtube username and channel id option
327
 
331
 
332
  {
333
 
334
+ $option4 = unserialize(get_option('sfsi_section4_options', false));
 
 
 
 
 
 
 
 
 
 
 
 
335
 
336
+ if (isset($option4['sfsi_youtubeusernameorid']) && !empty($option4['sfsi_youtubeusernameorid'])) { } else {
337
 
338
+ $option4['sfsi_youtubeusernameorid'] = 'name';
339
 
340
+ update_option('sfsi_section4_options', serialize($option4));
341
+ }
342
  }
343
  add_action('plugins_loaded', 'sfsi_load_domain');
344
 
345
+ function sfsi_load_domain()
346
 
347
  {
348
 
349
+ $plugin_dir = basename(dirname(__FILE__)) . '/languages';
 
 
350
 
351
+ load_plugin_textdomain(SFSI_DOMAIN, false, $plugin_dir);
352
  }
353
  //sanitizing values
354
 
355
+ function string_sanitize($s)
356
+ {
357
 
358
  $result = preg_replace("/[^a-zA-Z0-9]+/", " ", html_entity_decode($s, ENT_QUOTES));
359
 
360
  return $result;
 
361
  }
362
  //Add Subscriber form css
363
 
367
 
368
  {
369
 
370
+ $option8 = unserialize(get_option('sfsi_section8_options', false));
371
 
372
+ $sfsi_feediid = sanitize_text_field(get_option('sfsi_feed_id'));
373
 
374
+ $url = "https://www.specificfeeds.com/widgets/subscribeWidget/";
375
 
376
+ echo $return = '';
377
 
378
+ ?>
379
 
380
  <script>
381
+ if (typeof sfsi_plugin_version == 'function') {
382
+ sfsi_plugin_version(get_option("sfsi_pluginVersion"));
383
+ }else{
384
+ 'kladflkafdkjgdklfg';
385
+ }
386
 
387
+ function sfsi_processfurther(ref) {
388
 
389
+ var feed_id = '<?php echo $sfsi_feediid ?>';
390
+ var feedtype = 8;
391
 
392
+ var email = jQuery(ref).find('input[name="data[Widget][email]"]').val();
393
 
394
+ var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
395
 
396
+ if ((email != "Enter your email") && (filter.test(email))) {
397
+ if (feed_id != "") {
398
 
399
+ if (feedtype == "8") {
400
 
401
+ var url = "<?php echo $url; ?>" + feed_id + "/" + feedtype;
402
 
403
+ window.open('', "popupwindow", "scrollbars=yes,width=1080,height=760");
404
 
405
+ ref.action = url;
406
 
407
+ ref.target = "popupwindow";
408
 
409
+ return true;
410
 
411
+ } else {
412
 
413
+ return false
414
 
415
+ }
416
  }
417
+ } else {
 
418
 
419
+ alert("Please enter email address");
420
 
421
+ jQuery(ref).find('input[name="data[Widget][email]"]').focus();
422
 
423
+ return false;
424
 
425
+ }
426
 
427
+ }
428
  </script>
429
 
430
  <style type="text/css" aria-selected="true">
431
+ .sfsi_subscribe_Popinner {
432
 
433
+ <?php if (sanitize_text_field($option8['sfsi_form_adjustment']) == 'yes') : ?>width: 100% !important;
434
 
435
+ height: auto !important;
436
 
437
+ <?php else : ?>width: <?php echo intval($option8['sfsi_form_width']) ?>px !important;
438
 
439
+ height: <?php echo intval($option8['sfsi_form_height']) ?>px !important;
440
 
441
+ <?php endif;
442
+ ?><?php if (sanitize_text_field($option8['sfsi_form_border']) == 'yes') : ?>border: <?php echo intval($option8['sfsi_form_border_thickness']) . "px solid " . sfsi_sanitize_hex_color($option8['sfsi_form_border_color']);
443
+ ?> !important;
444
 
445
+ <?php endif;
446
+ ?>padding: 18px 0px !important;
447
 
448
+ background-color: <?php echo sfsi_sanitize_hex_color($option8['sfsi_form_background']) ?> !important;
449
 
450
+ }
451
 
452
+ .sfsi_subscribe_Popinner form {
453
 
454
+ margin: 0 20px !important;
455
 
456
+ }
457
 
458
+ .sfsi_subscribe_Popinner h5 {
459
 
460
+ font-family: <?php echo sanitize_text_field($option8['sfsi_form_heading_font']) ?> !important;
461
 
462
+ <?php if (sanitize_text_field($option8['sfsi_form_heading_fontstyle']) != 'bold') {
463
+ ?>font-style: <?php echo sanitize_text_field($option8['sfsi_form_heading_fontstyle']) ?> !important;
464
 
465
  <?php
466
+ } else {
467
+ ?>font-weight: <?php echo sanitize_text_field($option8['sfsi_form_heading_fontstyle']) ?> !important;
 
 
468
 
469
  <?php
470
+ }
471
 
472
+ ?>color: <?php echo sfsi_sanitize_hex_color($option8['sfsi_form_heading_fontcolor']) ?> !important;
473
 
474
+ font-size: <?php echo intval($option8['sfsi_form_heading_fontsize']) . "px" ?> !important;
475
 
476
+ text-align: <?php echo sanitize_text_field($option8['sfsi_form_heading_fontalign']) ?> !important;
477
 
478
+ margin: 0 0 10px !important;
479
 
480
+ padding: 0 !important;
481
 
482
+ }
483
 
484
+ .sfsi_subscription_form_field {
485
 
486
+ margin: 5px 0 !important;
487
 
488
+ width: 100% !important;
489
 
490
+ display: inline-flex;
491
 
492
+ display: -webkit-inline-flex;
493
 
494
+ }
495
 
496
+ .sfsi_subscription_form_field input {
497
 
498
+ width: 100% !important;
499
 
500
+ padding: 10px 0px !important;
501
 
502
+ }
503
 
504
+ .sfsi_subscribe_Popinner input[type=email] {
505
 
506
+ font-family: <?php echo sanitize_text_field($option8['sfsi_form_field_font']);
507
+ ?> !important;
508
 
509
+ <?php if (sanitize_text_field($option8['sfsi_form_field_fontstyle']) != 'bold') {
510
+ ?>font-style: <?php echo sanitize_text_field($option8['sfsi_form_field_fontstyle']) ?> !important;
511
 
512
  <?php
513
+ } else {
514
+ ?>font-weight: <?php echo sanitize_text_field($option8['sfsi_form_field_fontstyle']) ?> !important;
 
 
515
 
516
  <?php
517
+ }
518
 
519
+ ?>color: <?php echo sfsi_sanitize_hex_color($option8['sfsi_form_field_fontcolor']);
520
+ ?> !important;
521
 
522
+ font-size: <?php echo intval($option8['sfsi_form_field_fontsize']) . "px" ?> !important;
523
 
524
+ text-align: <?php echo sanitize_text_field($option8['sfsi_form_field_fontalign']);
525
+ ?> !important;
526
 
527
+ }
528
 
529
+ .sfsi_subscribe_Popinner input[type=email]::-webkit-input-placeholder {
530
 
531
+ font-family: <?php echo sanitize_text_field($option8['sfsi_form_field_font']);
532
+ ?> !important;
533
 
534
+ <?php if (sanitize_text_field($option8['sfsi_form_field_fontstyle']) != 'bold') {
535
+ ?>font-style: <?php echo sanitize_text_field($option8['sfsi_form_field_fontstyle']) ?> !important;
536
 
537
  <?php
538
+ } else {
539
+ ?>font-weight: <?php echo sanitize_text_field($option8['sfsi_form_field_fontstyle']) ?> !important;
 
 
540
 
541
  <?php
542
+ }
543
 
544
+ ?>color: <?php echo sfsi_sanitize_hex_color($option8['sfsi_form_field_fontcolor']);
545
+ ?> !important;
546
 
547
+ font-size: <?php echo intval($option8['sfsi_form_field_fontsize']) . "px" ?> !important;
548
 
549
+ text-align: <?php echo sanitize_text_field($option8['sfsi_form_field_fontalign']);
550
+ ?> !important;
551
 
552
+ }
553
 
554
+ .sfsi_subscribe_Popinner input[type=email]:-moz-placeholder {
555
+ /* Firefox 18- */
556
 
557
+ font-family: <?php echo sanitize_text_field($option8['sfsi_form_field_font']);
558
+ ?> !important;
559
 
560
+ <?php if (sanitize_text_field($option8['sfsi_form_field_fontstyle']) != 'bold') {
561
+ ?>font-style: <?php echo sanitize_text_field($option8['sfsi_form_field_fontstyle']) ?> !important;
562
 
563
  <?php
564
+ } else {
565
+ ?>font-weight: <?php echo sanitize_text_field($option8['sfsi_form_field_fontstyle']) ?> !important;
 
 
566
 
567
  <?php
568
+ }
569
 
570
+ ?>color: <?php echo sfsi_sanitize_hex_color($option8['sfsi_form_field_fontcolor']);
571
+ ?> !important;
572
 
573
+ font-size: <?php echo intval($option8['sfsi_form_field_fontsize']) . "px" ?> !important;
574
 
575
+ text-align: <?php echo sanitize_text_field($option8['sfsi_form_field_fontalign']);
576
+ ?> !important;
577
 
578
+ }
579
 
580
+ .sfsi_subscribe_Popinner input[type=email]::-moz-placeholder {
581
+ /* Firefox 19+ */
582
 
583
+ font-family: <?php echo sanitize_text_field($option8['sfsi_form_field_font']);
584
+ ?> !important;
585
 
586
+ <?php if (sanitize_text_field($option8['sfsi_form_field_fontstyle']) != 'bold') {
587
+ ?>font-style: <?php echo sanitize_text_field($option8['sfsi_form_field_fontstyle']) ?> !important;
588
 
589
  <?php
590
+ } else {
591
+ ?>font-weight: <?php echo sanitize_text_field($option8['sfsi_form_field_fontstyle']) ?> !important;
 
 
592
 
593
  <?php
594
+ }
595
 
596
+ ?>color: <?php echo sfsi_sanitize_hex_color($option8['sfsi_form_field_fontcolor']);
597
+ ?> !important;
598
 
599
+ font-size: <?php echo intval($option8['sfsi_form_field_fontsize']) . "px" ?> !important;
600
 
601
+ text-align: <?php echo sanitize_text_field($option8['sfsi_form_field_fontalign']);
602
+ ?> !important;
603
 
604
+ }
605
 
606
+ .sfsi_subscribe_Popinner input[type=email]:-ms-input-placeholder {
607
 
608
+ font-family: <?php echo sanitize_text_field($option8['sfsi_form_field_font']);
609
+ ?> !important;
610
 
611
+ <?php if (sanitize_text_field($option8['sfsi_form_field_fontstyle']) != 'bold') {
612
+ ?>font-style: <?php echo sanitize_text_field($option8['sfsi_form_field_fontstyle']) ?> !important;
613
 
614
  <?php
615
+ } else {
616
+ ?>font-weight: <?php echo sanitize_text_field($option8['sfsi_form_field_fontstyle']) ?> !important;
 
 
617
 
618
  <?php
619
+ }
620
 
621
+ ?>color: <?php echo sfsi_sanitize_hex_color($option8['sfsi_form_field_fontcolor']);
622
+ ?> !important;
623
 
624
+ font-size: <?php echo intval($option8['sfsi_form_field_fontsize']) . "px" ?> !important;
625
 
626
+ text-align: <?php echo sanitize_text_field($option8['sfsi_form_field_fontalign']);
627
+ ?> !important;
628
 
629
+ }
630
 
631
+ .sfsi_subscribe_Popinner input[type=submit] {
632
 
633
+ font-family: <?php echo sanitize_text_field($option8['sfsi_form_button_font']);
634
+ ?> !important;
635
 
636
+ <?php if (sanitize_text_field($option8['sfsi_form_button_fontstyle']) != 'bold') {
637
+ ?>font-style: <?php echo sanitize_text_field($option8['sfsi_form_button_fontstyle']) ?> !important;
638
 
639
  <?php
640
+ } else {
641
+ ?>font-weight: <?php echo sanitize_text_field($option8['sfsi_form_button_fontstyle']) ?> !important;
 
 
642
 
643
  <?php
644
+ }
645
 
646
+ ?>color: <?php echo sfsi_sanitize_hex_color($option8['sfsi_form_button_fontcolor']);
647
+ ?> !important;
648
 
649
+ font-size: <?php echo intval($option8['sfsi_form_button_fontsize']) . "px" ?> !important;
650
 
651
+ text-align: <?php echo sanitize_text_field($option8['sfsi_form_button_fontalign']);
652
+ ?> !important;
653
 
654
+ background-color: <?php echo sfsi_sanitize_hex_color($option8['sfsi_form_button_background']);
655
+ ?> !important;
656
 
657
+ }
658
  </style>
659
 
660
  <?php
667
 
668
  {
669
 
670
+ $language = get_option("WPLANG");
671
+ // if(isset($_GET['page']) && $_GET['page'] == "sfsi-options")
672
 
673
+ // {
674
 
675
+ // $style = "overflow: hidden; margin:12px 3px 0px;";
676
 
677
+ // }
678
 
679
+ // else
680
 
681
+ // {
682
 
683
+ // $style = "overflow: hidden;";
684
 
685
+ // }
686
+ // $style = "overflow: hidden;";
687
+ // /**
688
 
689
+ // * if wordpress uses other language
690
 
691
+ // */
692
 
693
+ // if(!empty($language) && isset($_GET['page']) && $_GET['page'] == "sfsi-options" &&
694
 
695
+ // get_option("sfsi_languageNotice") == "yes")
696
 
697
+ // {
698
 
699
+ //
700
+ ?>
701
 
702
  <!-- // <style type="text/css">
703
 
727
 
728
  // </style>
729
 
730
+ // <div class="updated" style="<?php //echo $style;
731
+ ?>">
732
 
733
  // <div class="alignleft" style="margin: 9px 0;">
734
 
750
 
751
  // </div> -->
752
 
753
+ <?php
 
 
 
 
 
 
 
 
 
 
 
754
 
755
+ // }
756
+ /**
757
 
758
+ * Premium Notification
759
 
760
+ */
761
 
762
+ $sfsi_themecheck = new sfsi_ThemeCheck();
763
 
764
+ $domain = $sfsi_themecheck->sfsi_plus_getdomain(site_url());
765
 
766
+ $siteMatch = false;
767
+ if (!empty($domain)) {
768
 
769
+ $regexp = "/^([a-d A-D])/im";
770
 
771
+ if (preg_match($regexp, $domain)) {
772
 
773
+ $siteMatch = true;
774
+ } else {
775
 
776
+ $siteMatch = false;
777
+ }
778
+ }
779
+ if (get_option("show_premium_notification") == "yes") {
780
 
781
+ ?>
782
 
783
  <style type="text/css">
784
+ div.sfsi_show_premium_notification {
785
 
786
+ float: none;
787
 
788
+ display: block;
789
 
790
+ margin-left: 15px;
791
 
792
+ margin-top: 15px;
793
 
794
+ padding: 8px;
795
 
796
+ background-color: #38B54A;
797
 
798
+ color: #fff;
799
 
800
+ font-size: 18px;
801
 
802
+ }
803
 
804
+ .sfsi_show_premium_notification a {
805
 
806
+ color: #fff;
807
 
808
+ }
809
 
810
+ form.sfsi_premiumNoticeDismiss {
811
 
812
+ display: inline-block;
813
 
814
+ margin: 5px 0 0;
815
 
816
+ vertical-align: middle;
817
 
818
+ }
819
 
820
+ .sfsi_premiumNoticeDismiss input[type='submit'] {
821
 
822
+ background-color: transparent;
823
 
824
+ border: medium none;
825
 
826
+ color: #fff;
827
 
828
+ margin: 0;
829
 
830
+ padding: 0;
831
 
832
+ cursor: pointer;
833
 
834
+ }
835
  </style>
836
 
837
+ <div class="updated sfsi_show_premium_notification" style="<?php echo isset($style) ? $style : ''; ?>">
838
 
839
  <div style="margin: 9px 0; ">
840
 
841
+ BIG NEWS: There is now a <b><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=notification_banner&utm_medium=banner" target="_blank">Premium Ultimate Social Media Plugin</a></b> available with many more cool features: <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=notification_banner&utm_medium=banner" target="_blank">Check it out</a>
 
 
 
 
842
 
843
  </div>
844
 
858
 
859
  <?php
860
 
861
+ }
862
+ if (is_ssl()) {
863
+ if (get_option("show_premium_cumulative_count_notification") == "yes") {
 
 
864
 
865
+ ?>
866
 
867
  <style type="text/css">
868
+ div.sfsi_show_premium_cumulative_count_notification {
 
 
 
 
869
 
870
+ color: #fff;
871
 
872
+ margin-left: 37px;
873
 
874
+ margin-top: 15px;
875
 
876
+ padding: 8px;
877
 
878
+ background-color: #38B54A;
879
 
880
+ color: #fff;
881
 
882
+ font-size: 18px;
883
 
884
+ }
885
 
886
+ .sfsi_show_premium_cumulative_count_notification a {
887
 
888
+ color: #fff;
889
+ }
890
 
891
+ form.sfsi_premiumCumulativeCountNoticeDismiss {
892
 
893
+ display: inline-block;
894
 
895
+ margin: 5px 0 0;
896
 
897
+ vertical-align: middle;
898
 
899
+ }
900
 
901
+ .sfsi_premiumCumulativeCountNoticeDismiss input[type='submit'] {
902
 
903
+ background-color: transparent;
904
 
905
+ border: medium none;
906
 
907
+ color: #fff;
908
 
909
+ margin: 0;
910
 
911
+ padding: 0;
912
 
913
+ cursor: pointer;
914
 
915
+ }
916
  </style>
917
 
918
  <div class="updated sfsi_show_premium_cumulative_count_notification">
919
 
920
  <div style="margin: 9px 0;">
921
 
922
+ <b>Recently switched to https?</b> If you don’t want to lose the Facebook share & like counts <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=https_share_counts&utm_medium=banner" target="_blank">have a look at our Premium Plugin</a>, we found a fix for that: <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=https_share_counts&utm_medium=banner" target="_blank">Check it out</a>
 
 
 
 
923
 
924
  </div>
925
 
941
 
942
  <?php
943
 
944
+ }
945
+ }
946
+ /* show mobile notification */
 
947
 
948
+ if (get_option("show_mobile_notification") == "yes") {
949
 
950
+ $sfsi_install_date = strtotime(get_option('sfsi_installDate'));
951
 
952
+ $sfsi_future_date = strtotime('14 days', $sfsi_install_date);
953
 
954
+ $sfsi_past_date = strtotime("now");
955
 
956
+ if ($sfsi_past_date >= $sfsi_future_date) {
957
 
958
+ ?>
959
 
960
  <style type="text/css">
961
+ .sfsi_show_mobile_notification a {
962
 
963
+ color: #fff;
964
 
965
+ }
966
 
967
+ form.sfsi_mobileNoticeDismiss {
968
 
969
+ display: inline-block;
970
 
971
+ margin: 5px 0 0;
972
 
973
+ vertical-align: middle;
974
 
975
+ }
976
 
977
+ .sfsi_mobileNoticeDismiss input[type='submit'] {
978
 
979
+ background-color: transparent;
980
 
981
+ border: medium none;
982
 
983
+ color: #fff;
984
 
985
+ margin: 0;
986
 
987
+ padding: 0;
988
 
989
+ cursor: pointer;
990
 
991
+ }
992
  </style>
993
 
994
+ <!-- <div class="updated sfsi_show_mobile_notification" style="<?php //echo $style;
995
+ ?>background-color: #38B54A; color: #fff; font-size: 18px;">
996
 
997
  <div class="alignleft" style="margin: 9px 0;line-height: 24px;width: 95%;">
998
 
1016
 
1017
  <?php
1018
 
1019
+ }
1020
+ }
 
1021
 
1022
+ /* end show mobile notification */
1023
 
1024
+ /* start phpversion error notification*/
1025
 
1026
  $phpVersion = phpVersion();
1027
 
1028
+ if ($phpVersion <= '5.4') {
1029
 
1030
+ if (get_option("sfsi_serverphpVersionnotification") == "yes") {
1031
+ ?>
 
 
 
 
1032
 
1033
 
1034
 
1035
  <style type="text/css">
1036
+ .sfsi_show_phperror_notification {
1037
 
1038
+ color: #fff;
1039
 
1040
+ text-decoration: underline;
1041
 
1042
+ }
1043
 
1044
+ form.sfsi_phperrorNoticeDismiss {
1045
 
1046
+ display: inline-block;
1047
 
1048
+ margin: 5px 0 0;
1049
 
1050
+ vertical-align: middle;
1051
 
1052
+ }
1053
 
1054
+ .sfsi_phperrorNoticeDismiss input[type='submit'] {
1055
 
1056
+ background-color: transparent;
1057
 
1058
+ border: medium none;
1059
 
1060
+ color: #fff;
1061
 
1062
+ margin: 0;
1063
 
1064
+ padding: 0;
1065
 
1066
+ cursor: pointer;
1067
 
1068
+ }
1069
 
1070
+ .sfsi_show_phperror_notification p {
1071
+ line-height: 22px;
1072
+ }
1073
 
1074
+ p.sfsi_show_notifictaionpragraph {
1075
+ padding: 0 !important;
1076
+ font-size: 18px;
1077
+ }
1078
  </style>
1079
+ <div class="updated sfsi_show_phperror_notification" style="<?php echo (isset($style) ? $style : ''); ?>background-color: #D22B2F; color: #fff; font-size: 18px; border-left-color: #D22B2F;">
 
1080
 
1081
  <div style="margin: 9px 0;">
1082
  <p class="sfsi_show_notifictaionpragraph">
1110
 
1111
  <?php
1112
 
1113
+ }
1114
+ }
 
1115
  sfsi_get_language_detection_notice();
1116
  sfsi_language_notice();
1117
 
 
1118
 
 
 
1119
 
1120
+ sfsi_addThis_removal_notice();
1121
+ sfsi_error_reporting_notice();
1122
  }
1123
+ function sfsi_get_language_detection_notice()
1124
+ {
1125
  $currLang = get_locale();
1126
 
1127
  $text = '';
1128
  switch ($currLang) {
1129
+ // Arabic
1130
+
1131
+ // case 'ar':
1132
 
 
1133
 
 
1134
 
1135
+ // $text = "";
1136
 
1137
+ // break;
1138
+ // Chinese - simplified
1139
 
1140
  case 'zh-Hans':
1141
 
1142
+
1143
 
1144
  $text = "似乎你的WordPress仪表盘使用的是法语。你知道 终极社交媒体插件 也支持法语吗? <a target='_blank' href='https://wordpress.org/plugins/ultimate-social-media-plus/'><b>请点击此处</b></a>";
1145
 
1146
  break;
1147
+ // Chinese - traditional
1148
+
1149
+ // case 'zh-Hant':
1150
+
1151
 
 
1152
 
1153
+ // $text = "";
1154
 
1155
+ // break;
1156
+ // Dutch, Dutch (Belgium)
1157
 
1158
+ // case 'nl_NL': case 'nl_BE':
 
1159
 
1160
+ // $text = "";
1161
 
1162
+ // break;
1163
+ // French (Belgium), French (France)
1164
 
1165
+ case 'fr_BE':
1166
+ case 'fr_FR':
1167
 
 
1168
 
 
1169
 
1170
  $text = "Il semblerait que votre tableau de bord Wordpress soit en Français. Saviez-vous que l'extension Ultimate Social Media est aussi disponible en Français? <a target='_blank' href='https://wordpress.org/plugins/ultimate-social-media-plus/'>Cliquez ici</a>";
1171
 
1172
  break;
1173
+ // German, German (Switzerland)
1174
 
1175
+ case 'de':
1176
+ case 'de_CH':
1177
+ $text = "Dein Wordpress-Dashboard scheint auf deutsch zu sein. Wusstest Du dass das Ultimate Social Media Plugin auch auf deutsch verfügbar ist? <a target='_blank' href='https://wordpress.org/plugins/ultimate-social-media-plus/'>Klicke hier</a>";
1178
 
1179
  break;
1180
+ // Greek
1181
 
1182
+ // case 'el':
1183
 
 
1184
 
 
1185
 
1186
+ // $text = "";
1187
+
1188
+ // break;
1189
+ // Hebrew
1190
 
1191
  case 'he_IL':
1192
  $text = "נדמה שלוח הבקרה שלך הוא בעברית. האם ידעת שהתוסף זמין גם בשפה העברית? <a target='_blank' href='https://wordpress.org/plugins/ultimate-social-media-plus/'>לחץ כאן</a>";
1193
 
1194
  break;
1195
+ // Hindi
1196
+
1197
+ // case 'hi_IN':
1198
+
1199
 
 
1200
 
1201
+ // $text = "";
1202
 
1203
+ // break;
1204
+ // Indonesian
1205
 
1206
+ // case 'id':
 
1207
 
 
1208
 
 
1209
 
1210
+ // $text = "";
1211
+ // break;
1212
+ // Italian
1213
 
1214
  case 'it_IT':
1215
 
 
1216
 
 
1217
 
1218
+ $text = "Semberebbe che la tua bacheca di WordPress sia in Italiano.Lo sapevi che il plugin Ultimate Social Media è anche dispoinibile in Italiano? <a target='_blank' href='https://wordpress.org/plugins/ultimate-social-media-plus/'>Fai click qui</a>";
1219
 
 
 
1220
 
 
1221
 
1222
+ break;
1223
+ // Japanese
1224
+
1225
+ // case 'ja':
1226
+
1227
+
1228
+
1229
+ // $text = "";
1230
+ // break;
1231
+ // Korean
1232
+
1233
+ // case 'ko_KR ':
1234
+ // $text = "";
1235
+ // break;
1236
+ // Persian, Persian (Afghanistan)
1237
 
1238
+ // case 'fa_IR':case 'fa_AF':
 
 
1239
 
 
 
 
 
1240
 
 
1241
 
1242
+ // $text = "";
1243
 
 
1244
 
 
1245
 
1246
+ // break;
1247
+ // Polish
1248
+ // case 'pl_PL':
1249
 
1250
+ // $text = "";
1251
 
1252
+ // break;
1253
+ //Portuguese (Brazil), Portuguese (Portugal)
1254
+ case 'pt_BR':
1255
+ case 'pt_PT':
1256
  $text = "Parece que seu painel Wordpress está em português. Você sabia que o plugin Ultimate Social Media também está disponível em português? <a target='_blank' href='https://wordpress.org/plugins/ultimate-social-media-plus/'>Clique aqui</a>";
1257
+ break;
1258
+ // Russian, Russian (Ukraine)
1259
 
1260
+ case 'ru_RU':
1261
+ case 'ru_UA':
1262
  $text = "Ты говоришь по-русски? Если у вас есть вопросы о плагине Ultimate Social Media, задайте свой вопрос в форуме поддержки, мы постараемся ответить на русский: <a target='_blank' href='https://wordpress.org/plugins/ultimate-social-media-plus/'>Нажмите здесь</a>";
1263
 
 
1264
 
 
1265
 
1266
+ break;
1267
 
 
1268
 
 
 
1269
 
1270
+ /* Spanish (Argentina), Spanish (Chile), Spanish (Colombia), Spanish (Mexico),
1271
+
1272
+ Spanish (Peru), Spanish (Puerto Rico), Spanish (Spain), Spanish (Venezuela) */
1273
+ case 'es_AR':
1274
+ case 'es_CL':
1275
+ case 'es_CO':
1276
+ case 'es_MX':
1277
+ case 'es_PE':
1278
+ case 'es_PR':
1279
+
1280
+ case 'es_ES':
1281
+ case 'es_VE':
1282
  $text = "Al parecer, tu dashboard en Wordpress está en Francés/ ¿Sabías que el complemento Ultimate Social Media está también disponible en Francés? <a target='_blank' href='https://wordpress.org/plugins/ultimate-social-media-plus/'>Haz clic aquí</a>";
1283
 
1284
+ break;
1285
+ // Swedish
1286
+ // case 'sv_SE':
1287
+
1288
 
 
1289
 
1290
+ // $text = "<a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Klicka här</a>";
1291
 
1292
+ // break;
1293
+ // Turkish
1294
  case 'tr_TR':
1295
 
1296
  $text = "Wordpress gösterge panelinizin dili Türkçe olarak görünüyor. Ultimate Social Media eklentisinin Türkçe için de mevcut olduğunu biliyor musunuz? <a target='_blank' href='https://wordpress.org/plugins/ultimate-social-media-plus/'>Buraya tıklayın</a>";
1297
 
1298
+ break;
1299
+ // Ukrainian
1300
+ // case 'uk':
1301
 
1302
+ // $text = "<a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>натисніть тут</a>";
1303
 
1304
+ // break;
1305
+ // Vietnamese
1306
  case 'vi':
1307
 
1308
  $text = 'Có vẻ như bảng điều khiển Wordpress của bạn đang hiển thị "tiếng Việt". Bạn có biết rằng Ultimate Social Media plugin cũng hỗ trợ tiếng Việt? <a target="_blank" href="https://wordpress.org/plugins/ultimate-social-media-plus/">Hãy nhấn vào đây</a>';
1309
 
1310
+ break;
 
1311
  }
1312
+ $style = "overflow: hidden;padding:8px;margin:15px 15px 15px 0px !important";
1313
+ if (
1314
+ !empty($text) && isset($_GET['page'])
1315
 
1316
+ && ("sfsi-options" == $_GET['page']) && ("yes" == get_option("sfsi_languageNotice"))
1317
+ ) {
1318
 
1319
+ ?>
1320
  <style type="text/css">
1321
+ form.sfsi_languageNoticeDismiss {
1322
+ display: inline-block;
1323
+ margin: 5px 0 0;
1324
+ vertical-align: middle;
1325
+ }
1326
 
1327
+ .sfsi_languageNoticeDismiss input[type='submit'] {
1328
+ background-color: transparent;
1329
+ border: medium none;
1330
+ margin: 0 5px 0 0px;
1331
+ padding: 0;
1332
+ cursor: pointer;
1333
+ font-size: 22px;
1334
+ }
1335
  </style>
1336
 
1337
+ <div class="notice notice-info" style="<?php echo isset($style) ? $style : ''; ?>">
1338
 
1339
  <div style="margin: 9px 0;">
1340
 
1356
 
1357
  </div>
1358
  <?php }
 
1359
  }
1360
  add_action('admin_init', 'sfsi_dismiss_admin_notice');
1361
 
1363
 
1364
  {
1365
 
1366
+ if (isset($_REQUEST['sfsi-dismiss-notice']) && $_REQUEST['sfsi-dismiss-notice'] == 'true') {
 
 
 
 
 
 
 
 
 
 
 
1367
 
1368
+ update_option('show_notification_plugin', "no");
1369
 
1370
+ //header("Location: ".site_url()."/wp-admin/admin.php?page=sfsi-options");die;
 
 
 
1371
 
1372
+ }
1373
+ if (isset($_REQUEST['sfsi-dismiss-languageNotice']) && $_REQUEST['sfsi-dismiss-languageNotice'] == 'true') {
 
1374
 
1375
+ update_option('sfsi_languageNotice', "no");
1376
 
1377
+ //header("Location: ".site_url()."/wp-admin/admin.php?page=sfsi-options"); die;
 
1378
 
1379
+ }
1380
+ if (isset($_REQUEST['sfsi-dismiss-premiumNotice']) && $_REQUEST['sfsi-dismiss-premiumNotice'] == 'true') {
 
1381
 
1382
+ update_option('show_premium_notification', "no");
1383
 
1384
+ //header("Location: ".site_url()."/wp-admin/admin.php?page=sfsi-options");die;
1385
 
1386
+ }
1387
+ if (isset($_REQUEST['sfsi-dismiss-mobileNotice']) && $_REQUEST['sfsi-dismiss-mobileNotice'] == 'true') {
1388
 
1389
+ update_option('show_mobile_notification', "no");
1390
 
1391
+ //header("Location: ".site_url()."/wp-admin/admin.php?page=sfsi-options");die;
1392
 
1393
+ }
1394
 
1395
+ if (isset($_REQUEST['sfsi-dismiss-phperrorNotice']) && $_REQUEST['sfsi-dismiss-phperrorNotice'] == 'true') {
1396
 
1397
+ update_option('sfsi_serverphpVersionnotification', "no");
1398
+ }
1399
 
1400
+ if (isset($_REQUEST['sfsi-dismiss-premiumCumulativeCountNoticeDismiss']) && $_REQUEST['sfsi-dismiss-premiumCumulativeCountNoticeDismiss'] == 'true') {
1401
 
1402
+ update_option('show_premium_cumulative_count_notification', "no");
1403
+ }
1404
  }
1405
  function sfsi_get_bloginfo($url)
1406
 
1407
  {
1408
 
1409
+ $web_url = get_bloginfo($url);
1410
+ //Block to use feedburner url
 
 
1411
 
1412
+ if (preg_match("/(feedburner)/im", $web_url, $match)) {
 
 
 
 
1413
 
1414
+ $web_url = site_url() . "/feed";
1415
+ }
1416
 
1417
+ return $web_url;
1418
  }
1419
 
1420
+ add_filter('plugin_action_links_' . plugin_basename(__FILE__), "sfsi_actionLinks", -10);
1421
 
1422
  function sfsi_actionLinks($links)
1423
 
1424
  {
1425
 
1426
+ unset($links['edit']);
1427
 
1428
+ $links['a'] = '<a target="_blank" href="https://goo.gl/auxJ9C#no-topic-0" id="sfsi_deactivateButton" style="color:#FF0000;"><b>Need help?</b></a>';
1429
 
1430
+ //$links[] = '<a target="_blank" href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_manage_plugin_page&utm_campaign=check_out_pro_version&utm_medium=banner" id="sfsi_deactivateButton" style="color:#38B54A;"><b>Check out pro version</b></a>';
1431
+ /*if(isset($links["edit"]) && !empty($links["edit"])){
1432
 
1433
  $links[] = @$links["edit"];
1434
 
1435
  }*/
1436
+ //$slug = plugin_basename(dirname(__FILE__));
 
 
 
 
 
1437
 
1438
+ //$links[$slug] = @$links["deactivate"].'<i class="sfsi-deactivate-slug"></i>';
1439
+ $links['e'] = '<a href="' . admin_url("/admin.php?page=sfsi-options") . '">Settings</a>';
1440
+ ksort($links);
1441
+ //unset($links["deactivate"]);
1442
 
1443
+ return $links;
1444
  }
1445
  global $pagenow;
1446
+ if ('plugins.php' === $pagenow) {
1447
+ add_action('admin_footer', '_sfsi_add_deactivation_feedback_dialog_box');
1448
+ function _sfsi_add_deactivation_feedback_dialog_box()
1449
+ {
1450
+ include_once(SFSI_DOCROOT . '/views/deactivation/sfsi_deactivation_popup.php'); ?>
1451
  <script type="text/javascript">
1452
+ window.addEventListener('sfsi_functions_loaded',function($) {
1453
+ var _deactivationLink = $('.sfsi-deactivate-slug').prev();
1454
+ $('.sfsi-deactivation-reason-link').find('a').attr('href', _deactivationLink.attr('href'));
1455
+ _deactivationLink.on('click', function(e) {
1456
 
1457
+ e.preventDefault();
1458
 
1459
+ $('[data-popup="popup-1"]').fadeIn(350);
1460
 
1461
+ });
1462
+ //----- CLOSE
1463
 
1464
+ $('[data-popup-close]').on('click', function(e) {
1465
 
1466
+ e.preventDefault();
1467
 
1468
+ var targeted_popup_class = jQuery(this).attr('data-popup-close');
1469
 
1470
+ $('[data-popup="' + targeted_popup_class + '"]').fadeOut(350);
1471
 
1472
+ });
1473
+ //----- OPEN
1474
 
1475
+ $('[data-popup-open]').on('click', function(e) {
1476
 
1477
+ e.preventDefault();
1478
 
1479
+ var targeted_popup_class = jQuery(this).attr('data-popup-open');
1480
 
1481
+ $('[data-popup="' + targeted_popup_class + '"]').fadeIn(350);
1482
 
1483
+ });
1484
+ $('.sfsi-deactivate-radio').on('click', function(e) {
1485
+ $('.sfsi-deactivate-radio').attr('checked', false);
1486
 
1487
+ $(this).attr('checked', true);
1488
+ var val = $(this).val();
1489
+ $('.sfsi-reason-section').removeClass('show').addClass('hide');
1490
 
1491
+ $(this).parent().find('.sfsi-reason-section').addClass('show').removeClass('hide');
1492
 
1493
+ });
1494
+ $('.sfsi-deactivate-radio-text').on('click', function(e) {
1495
 
1496
+ $(this).prev().trigger('click');
1497
 
1498
+ });
1499
  });
 
1500
  </script>
1501
 
1502
  <?php
1503
 
1504
+ }
 
1505
  }
1506
  /* redirect setting page hook */
1507
  /*add_action('admin_init', 'sfsi_plugin_redirect');
1524
 
1525
  */
1526
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1527
  function _is_curl_installed(){
1528
  if(in_array('curl', get_loaded_extensions())) {
1529
 
1534
  else{
1535
 
1536
  return false;
1537
+ }
 
 
1538
  }
1539
  // ********************************* Link to support forum for different languages STARTS *******************************//
1540
+ function sfsi_get_language_notice_text()
1541
+ {
1542
  $currLang = get_locale();
1543
 
1544
  $text = '';
1545
  switch ($currLang) {
1546
+ // Arabic
1547
 
1548
  case 'ar':
1549
 
1550
+
1551
 
1552
  $text = "hal tatakalam alearabia? 'iidha kanat ladayk 'asyilat hawl almukawan al'iidafii l Ultimate Social Media , aitruh sualik fi muntadaa aldaem , sanuhawil alrada biallughat alearabiat: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'><b>'unqur huna</b></a>";
1553
 
1554
  break;
1555
+ // Chinese - simplified
1556
 
1557
  case 'zh-Hans':
1558
 
1559
+
1560
 
1561
  $text = "你会说中文吗?如果您有关于Ultimate Social Media插件的问题,请在支持论坛中提出您的问题,我们将尝试用中文回复:<a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'><b>点击此处</b></a>";
1562
 
1563
  break;
1564
+ // Chinese - traditional
1565
 
1566
  case 'zh-Hant':
1567
 
1568
+
1569
 
1570
  $text = "你會說中文嗎?如果您有關於Ultimate Social Media插件的問題,請在支持論壇中提出您的問題,我們將嘗試用中文回复:<a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'><b>點擊此處</b></a>";
1571
 
1572
  break;
1573
+ // Dutch, Dutch (Belgium)
1574
 
1575
+ case 'nl_NL':
1576
+ case 'nl_BE':
1577
 
1578
  $text = "Jij spreekt Nederlands? Als je vragen hebt over de Ultimate Social Media-plug-in, stel je vraag in het ondersteuningsforum, we zullen proberen in het Nederlands te antwoorden: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>klik hier</a>";
1579
 
1580
  break;
1581
+ // French (Belgium), French (France)
1582
+
1583
+ case 'fr_BE':
1584
+ case 'fr_FR':
1585
 
 
1586
 
 
1587
 
1588
  $text = "Vous parlez français? Si vous avez des questions sur le plugin Ultimate Social Media, posez votre question sur le forum de support, nous essaierons de répondre en français: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Cliquez ici</a>";
1589
 
1590
  break;
1591
+ // German, German (Switzerland)
1592
 
1593
+ case 'de':
1594
+ case 'de_CH':
1595
+ $text = "Du sprichst Deutsch? Wenn Du Fragen zum Ultimate Social Media-Plugins hast, einfach im Support Forum fragen. Wir antworten auch auf Deutsch! <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Klicke hier</a>";
1596
 
1597
  break;
1598
+ // Greek
1599
 
1600
  case 'el':
1601
 
1602
+
1603
 
1604
  $text = "Μιλάτε Ελληνικά? Αν έχετε ερωτήσεις σχετικά με το plugin Ultimate Social Media, ρωτήστε την ερώτησή σας στο φόρουμ υποστήριξης, θα προσπαθήσουμε να απαντήσουμε στα ελληνικά: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Κάντε κλικ εδώ</a>";
1605
 
1606
  break;
1607
+ // Hebrew
1608
 
1609
  case 'he_IL':
1610
 
1611
+
1612
 
1613
  $text = "אתה מדבר עברית? אם יש לך שאלות על תוסף המדיה החברתית האולטימטיבית, שאל את השאלה שלך בפורום התמיכה, ננסה לענות בעברית: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>לחץ כאן</a>";
1614
 
1615
  break;
1616
+ // Hindi
1617
 
1618
  case 'hi_IN':
1619
 
 
1620
 
1621
+
1622
+ $text = "आप हिंदी बोलते हो? यदि आपके पास अल्टीमेट सोशल मीडिया प्लगइन के बारे में कोई प्रश्न है, तो समर्थन फोरम में अपना प्रश्न पूछें, हम हिंदी में जवाब देने का प्रयास करेंगे: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>यहां क्लिक करें</a>";
1623
 
1624
  break;
1625
+ // Indonesian
1626
 
1627
  case 'id':
1628
 
1629
+
1630
 
1631
  $text = "Anda berbicara bahasa Indonesia? Jika Anda memiliki pertanyaan tentang plugin Ultimate Social Media, ajukan pertanyaan Anda di Forum Dukungan, kami akan mencoba menjawab dalam Bahasa Indonesia: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Klik di sini</a>";
1632
  break;
1633
+ // Italian
1634
 
1635
  case 'it_IT':
1636
 
1637
+
1638
 
1639
  $text = "Tu parli italiano? Se hai domande sul plugin Ultimate Social Media, fai la tua domanda nel Forum di supporto, cercheremo di rispondere in italiano: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>clicca qui</a>";
1640
 
 
1641
 
1642
+
1643
+ break;
1644
+ // Japanese
1645
 
1646
  case 'ja':
1647
 
1648
+
1649
 
1650
  $text = "あなたは日本語を話しますか?アルティメットソーシャルメディアのプラグインに関する質問がある場合は、サポートフォーラムで質問してください。日本語で対応しようと思っています:<a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>ここをクリック</a>";
1651
+ break;
1652
+ // Korean
1653
 
1654
  case 'ko_KR ':
1655
+ $text = "한국어를 할 줄 아세요? 궁극적 인 소셜 미디어 플러그인에 대해 궁금한 점이 있으면 지원 포럼에서 질문하십시오. 한국어로 답변하려고합니다 : <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>여기를 클릭하십시오.</a>";
1656
+ break;
1657
+ // Persian, Persian (Afghanistan)
1658
+
1659
+ case 'fa_IR':
1660
+ case 'fa_AF':
1661
 
 
1662
 
 
1663
 
1664
  $text = "شما فارسی صحبت می کنید؟ اگر سوالی در مورد پلاگین رسانه Ultimate Social دارید، سوال خود را در انجمن پشتیبانی بپرسید، سعی خواهیم کرد به فارسی پاسخ دهید: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>اینجا را کلیک کنید</a>";
1665
 
 
1666
 
1667
+
1668
+ break;
1669
+ // Polish
1670
  case 'pl_PL':
1671
 
1672
  $text = "Mówisz po polsku? Jeśli masz pytania dotyczące wtyczki Ultimate Social Media, zadaj pytanie na Forum pomocy technicznej, postaramy się odpowiedzieć po polsku: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Kliknij tutaj</a>";
1673
 
1674
  break;
1675
+ //Portuguese (Brazil), Portuguese (Portugal)
1676
+ case 'pt_BR':
1677
+ case 'pt_PT':
1678
  $text = "Você fala português? Se você tiver dúvidas sobre o plug-in Ultimate Social Media, faça sua pergunta no Fórum de suporte, tentaremos responder em português: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Clique aqui</a>";
1679
+ break;
1680
+ // Russian, Russian (Ukraine)
1681
 
1682
+ case 'ru_RU':
1683
+ case 'ru_UA':
1684
  $text = "Ты говоришь по-русски? Если у вас есть вопросы о плагине Ultimate Social Media, задайте свой вопрос в форуме поддержки, мы постараемся ответить на русский: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Нажмите здесь</a>";
1685
 
 
1686
 
 
1687
 
1688
+ break;
1689
 
 
1690
 
 
 
1691
 
1692
+ /* Spanish (Argentina), Spanish (Chile), Spanish (Colombia), Spanish (Mexico),
1693
+
1694
+ Spanish (Peru), Spanish (Puerto Rico), Spanish (Spain), Spanish (Venezuela) */
1695
+ case 'es_AR':
1696
+ case 'es_CL':
1697
+ case 'es_CO':
1698
+ case 'es_MX':
1699
+ case 'es_PE':
1700
+ case 'es_PR':
1701
+
1702
+ case 'es_ES':
1703
+ case 'es_VE':
1704
  $text = "¿Tu hablas español? Si tiene alguna pregunta sobre el complemento Ultimate Social Media, formule su pregunta en el foro de soporte, intentaremos responder en español: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>haga clic aquí</a>";
1705
 
1706
+ break;
1707
+ // Swedish
1708
  case 'sv_SE':
1709
 
1710
+
1711
 
1712
  $text = "Pratar du svenska? Om du har frågor om programmet Ultimate Social Media, fråga din fråga i supportforumet, vi försöker svara på svenska: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Klicka här</a>";
1713
 
1714
+ break;
1715
+ // Turkish
1716
  case 'tr_TR':
1717
 
1718
  $text = "Sen Türkçe konuş? Nihai Sosyal Medya eklentisi hakkında sorularınız varsa, sorunuza Destek Forumu'nda sorun, Türkçe olarak cevap vermeye çalışacağız: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Tıklayın</a>";
1719
 
1720
+ break;
1721
+ // Ukrainian
1722
  case 'uk':
1723
 
1724
  $text = "Ви говорите по-українськи? Якщо у вас є запитання про плагін Ultimate Social Media, задайте своє питання на Форумі підтримки, ми спробуємо відповісти українською: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>натисніть тут</a>";
1725
 
1726
+ break;
1727
+ // Vietnamese
1728
  case 'vi':
1729
 
1730
  $text = "Bạn nói tiếng việt không Nếu bạn có câu hỏi về plugin Ultimate Social Media, hãy đặt câu hỏi của bạn trong Diễn đàn hỗ trợ, chúng tôi sẽ cố gắng trả lời bằng tiếng Việt: <a target='_blank' href='https://goo.gl/ZiFsAF#no-topic-0'>Nhấp vào đây</a>";
1731
 
1732
+ break;
 
1733
  }
1734
  return $text;
 
1735
  }
1736
+ function sfsi_language_notice()
1737
+ {
1738
+ if (isset($_GET['page']) && "sfsi-options" == $_GET['page']) :
1739
  $langText = sfsi_get_language_notice_text();
1740
 
1741
  $isDismissed = get_option('sfsi_lang_notice_dismissed');
1742
+ if (!empty($langText) && false == $isDismissed) { ?>
1743
 
1744
 
1745
 
1749
  </div>
1750
  <?php } ?>
1751
  <?php endif;
 
1752
  }
1753
+ function sfsi_dismiss_lang_notice()
1754
+ {
 
 
 
1755
 
1756
+ if (!wp_verify_nonce($_POST['nonce'], "sfsi_dismiss_lang_notice'")) {
1757
 
1758
+ echo json_encode(array('res' => "error"));
1759
+ exit;
1760
+ }
1761
 
1762
+ if (!current_user_can('manage_options')) {
1763
+ echo json_encode(array('res' => 'not allowed'));
1764
+ die();
1765
+ }
1766
+ echo update_option('sfsi_lang_notice_dismissed', true) ? "true" : "false";
1767
 
1768
+ die;
1769
  }
1770
+ add_action('wp_ajax_sfsi_dismiss_lang_notice', 'sfsi_dismiss_lang_notice');
1771
  // ********************************* Link to support forum for different languages CLOSES *******************************//
1772
 
1773
  // ********************************* Notice for removal of AddThis option STARTS *******************************//
1774
 
1775
+ function sfsi_addThis_removal_notice()
1776
+ {
1777
+ if (isset($_GET['page']) && "sfsi-options" == $_GET['page']) :
1778
+
1779
 
 
1780
 
1781
  $sfsi_addThis_removalText = "We removed Addthis from the plugin due to issues with GDPR, the new EU data protection regulation.";
1782
+ $isDismissed = get_option('sfsi_addThis_icon_removal_notice_dismissed', false);
1783
+ if (false == $isDismissed) { ?>
1784
 
1785
 
1786
 
1790
  </div>
1791
  <?php } ?>
1792
  <?php endif;
 
1793
  }
1794
+ function sfsi_dismiss_addthhis_removal_notice()
1795
+ {
 
1796
 
1797
+ if (!wp_verify_nonce($_POST['nonce'], "sfsi_dismiss_addThis_icon_notice")) {
1798
 
1799
+ echo json_encode(array('res' => "error"));
1800
+ exit;
1801
+ }
1802
 
1803
+ if (!current_user_can('manage_options')) {
1804
+ echo json_encode(array('res' => 'not allowed'));
1805
+ die();
1806
+ }
1807
 
1808
+ echo (string) update_option('sfsi_addThis_icon_removal_notice_dismissed', true);
1809
 
1810
+ die;
1811
  }
1812
+ add_action('wp_ajax_sfsi_dismiss_addThis_icon_notice', 'sfsi_dismiss_addthhis_removal_notice');
1813
  // ********************************* Notice for removal of AddThis option CLOSES *******************************//
1814
  // ********************************* Link to support forum left of every Save button STARTS *******************************//
1815
+ function sfsi_ask_for_help($viewNumber)
1816
+ { ?>
1817
  <div class="sfsi_askforhelp askhelpInview<?php echo $viewNumber; ?>">
1818
+ <img src="<?php echo SFSI_PLUGURL . "images/questionmark.png"; ?>" alt="error" />
1819
  <span>Questions? <a target="_blank" href="#" onclick="event.preventDefault();sfsi_open_chat(event)"><b>Ask
1820
  us</b></a></span>
1821
  </div>
1822
  <?php }
1823
  // ********************************* Link to support forum left of every Save button CLOSES *******************************//
1824
  // ********************************* Notice for error reporting STARTS *******************************//
1825
+ function sfsi_error_reporting_notice()
1826
+ {
1827
+ if (is_admin()) :
1828
+
1829
 
 
1830
 
1831
  $sfsi_error_reporting_notice_txt = 'We noticed that you have set error reporting to "yes" in wp-config. Our plugin (Ultimate Social Media Icons) switches this to "off" so that no errors are displayed (which may also impact error messages from your theme or other plugins). If you don\'t want that, please select the respective option under question 6 (at the bottom).';
1832
+ $isDismissed = get_option('sfsi_error_reporting_notice_dismissed', false);
1833
+ $option5 = unserialize(get_option('sfsi_section5_options', false));
1834
+ $sfsi_icons_suppress_errors = isset($option5['sfsi_icons_suppress_errors']) && !empty($option5['sfsi_icons_suppress_errors']) ? $option5['sfsi_icons_suppress_errors'] : false;
1835
+ if (isset($isDismissed) && false == $isDismissed && defined('WP_DEBUG') && false != WP_DEBUG && "yes" == $sfsi_icons_suppress_errors) { ?>
1836
 
1837
 
1838
 
1841
  <button type="button" class="sfsi_error_reporting_notice-dismiss notice-dismiss"></button>
1842
  </div>
1843
  <script type="text/javascript">
1844
+ window.addEventListener('sfsi_functions_loaded',function(){
1845
+ if (typeof jQuery != 'undefined') {
1846
+ (function sfsi_dismiss_notice(btnClass, ajaxAction, nonce) {
1847
 
1848
 
1849
 
1850
+ var btnClass = "." + btnClass;
1851
+ var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>";
1852
+ jQuery(document).on("click", btnClass, function() {
1853
 
1854
 
1855
 
1856
+ jQuery.ajax({
1857
 
1858
+ url: ajaxurl,
1859
 
1860
+ type: "post",
1861
 
1862
+ data: {
1863
+ action: ajaxAction
1864
+ },
1865
 
1866
+ success: function(e) {
1867
 
1868
+ if (false != e) {
1869
 
1870
+ jQuery(btnClass).parent().remove();
1871
 
1872
+ }
1873
 
1874
+ }
1875
 
1876
+ });
1877
+ });
1878
+ }("sfsi_error_reporting_notice-dismiss", "sfsi_dismiss_error_reporting_notice",
1879
+ "<?php echo wp_create_nonce('sfsi_dismiss_error_reporting_notice'); ?>"));
1880
 
1881
+ }
1882
+ });
1883
  </script>
1884
  <?php } ?>
1885
+ <?php endif;
 
1886
  }
1887
+ function sfsi_dismiss_error_reporting_notice()
1888
+ {
 
 
 
1889
 
1890
+ if (!wp_verify_nonce($_POST['nonce'], "sfsi_dismiss_error_reporting_notice")) {
1891
 
1892
+ echo json_encode(array('res' => "error"));
1893
+ exit;
1894
+ }
1895
 
1896
+ if (!current_user_can('manage_options')) {
1897
+ echo json_encode(array('res' => 'not allowed'));
1898
+ die();
1899
+ }
1900
 
1901
+ echo (string) update_option('sfsi_error_reporting_notice_dismissed', true);
1902
 
1903
+ die;
1904
  }
1905
 
1906
+ add_action('wp_ajax_sfsi_dismiss_error_reporting_notice', 'sfsi_dismiss_error_reporting_notice');
1907
+ // ********************************* Notice for error reporting CLOSE *******************************//
1908
+ ?>
views/sfsi_option_view1.php CHANGED
@@ -1,818 +1,818 @@
1
- <?php
2
-
3
- /* unserialize all saved option for first options */
4
-
5
- $option1 = unserialize(get_option('sfsi_section1_options', false));
6
-
7
- /*
8
- * Sanitize, escape and validate values
9
- */
10
-
11
- $option1['sfsi_rss_display'] = (isset($option1['sfsi_rss_display']))
12
-
13
- ? sanitize_text_field($option1['sfsi_rss_display'])
14
-
15
- : 'yes';
16
-
17
- $option1['sfsi_email_display'] = (isset($option1['sfsi_email_display']))
18
- ? sanitize_text_field($option1['sfsi_email_display'])
19
- : 'yes';
20
- $option1['sfsi_facebook_display'] = (isset($option1['sfsi_facebook_display']))
21
- ? sanitize_text_field($option1['sfsi_facebook_display'])
22
- : 'yes';
23
-
24
- $option1['sfsi_twitter_display'] = (isset($option1['sfsi_twitter_display']))
25
- ? sanitize_text_field($option1['sfsi_twitter_display'])
26
- : 'yes';
27
- $option1['sfsi_youtube_display'] = (isset($option1['sfsi_youtube_display']))
28
-
29
- ? sanitize_text_field($option1['sfsi_youtube_display'])
30
-
31
- : 'no';
32
-
33
- $option1['sfsi_pinterest_display'] = (isset($option1['sfsi_pinterest_display']))
34
- ? sanitize_text_field($option1['sfsi_pinterest_display'])
35
- : 'no';
36
-
37
- $option1['sfsi_telegram_display'] = (isset($option1['sfsi_telegram_display']))
38
- ? sanitize_text_field($option1['sfsi_telegram_display'])
39
- : 'no';
40
-
41
- $option1['sfsi_vk_display'] = (isset($option1['sfsi_vk_display']))
42
- ? sanitize_text_field($option1['sfsi_vk_display'])
43
- : 'no';
44
-
45
- $option1['sfsi_ok_display'] = (isset($option1['sfsi_ok_display']))
46
- ? sanitize_text_field($option1['sfsi_ok_display'])
47
- : 'no';
48
-
49
- $option1['sfsi_wechat_display'] = (isset($option1['sfsi_wechat_display']))
50
- ? sanitize_text_field($option1['sfsi_wechat_display'])
51
- : 'no';
52
-
53
- $option1['sfsi_weibo_display'] = (isset($option1['sfsi_weibo_display']))
54
- ? sanitize_text_field($option1['sfsi_weibo_display'])
55
- : 'no';
56
-
57
- $option1['sfsi_linkedin_display'] = (isset($option1['sfsi_linkedin_display']))
58
- ? sanitize_text_field($option1['sfsi_linkedin_display'])
59
- : 'no';
60
-
61
- $option1['sfsi_instagram_display'] = (isset($option1['sfsi_instagram_display']))
62
- ? sanitize_text_field($option1['sfsi_instagram_display'])
63
- : 'no';
64
- ?>
65
-
66
- <!-- Section 1 "Which icons do you want to show on your site? " main div Start -->
67
-
68
- <div class="tab1">
69
- <p class="top_txt">
70
- In general, <span>the more icons you offer the better</span> because people have different preferences, and more options mean that there’s something for everybody, increasing the chances that you get followed and/or shared.
71
-
72
- </p>
73
- <ul class="icn_listing">
74
-
75
- <!-- RSS ICON -->
76
- <li class="gary_bg">
77
-
78
- <div class="radio_section tb_4_ck">
79
- <input name="sfsi_rss_display" <?php echo ($option1['sfsi_rss_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_rss_display" type="checkbox" value="yes" class="styled" />
80
-
81
- </div>
82
-
83
- <span class="sfsicls_rs_s">RSS</span>
84
-
85
- <div class="right_info">
86
-
87
- <p><span>Strongly recommended:</span> RSS is still popular, esp. among the tech-savvy crowd.
88
-
89
- <label class="expanded-area">RSS stands for Really Simply Syndication and is an easy way for people to read your content. You can learn more about it <a href="http://en.wikipedia.org/wiki/RSS" target="new" title="Syndication">here</a>. </label></p>
90
-
91
- <a href="javascript:;" class="expand-area">Read more</a>
92
-
93
- </div>
94
-
95
- </li>
96
-
97
- <!-- END RSS ICON -->
98
-
99
- <!-- EMAIL ICON -->
100
- <li class="gary_bg">
101
- <div class="radio_section tb_4_ck">
102
-
103
- <input name="sfsi_email_display" <?php echo ($option1['sfsi_email_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_email_display" type="checkbox" value="yes" class="styled" />
104
-
105
- </div>
106
-
107
- <span class="sfsicls_email">Email</span>
108
-
109
- <div class="right_info">
110
-
111
- <p><span>Strongly recommended:</span> Email is the most effective tool to build up followership.
112
-
113
- <span style="float: right;margin-right: 13px; margin-top: -3px;">
114
-
115
- <?php if (get_option('sfsi_footer_sec') == "yes") {
116
- $nonce = wp_create_nonce("remove_footer"); ?>
117
-
118
- <a style="font-size:13px;margin-left:30px;color:#777777;" href="javascript:;" class="sfsi_removeFooter" data-nonce="<?php echo $nonce; ?>">Remove credit link</a>
119
-
120
- <?php } ?>
121
-
122
- </span>
123
-
124
- <label class="expanded-area">Everybody uses email – that’s why it’s <a href="http://www.entrepreneur.com/article/230949" target="new">much more effective than social media </a> to make people follow you. Not offering an email subscription option means losing out on future traffic to your site.</label>
125
-
126
- </p>
127
-
128
- <a href="javascript:;" class="expand-area">Read more</a>
129
-
130
- </div>
131
-
132
- </li>
133
-
134
- <!-- EMAIL ICON -->
135
- <!-- FACEBOOK ICON -->
136
-
137
- <li class="gary_bg">
138
-
139
- <div class="radio_section tb_4_ck"><input name="sfsi_facebook_display" <?php echo ($option1['sfsi_facebook_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_facebook_display" type="checkbox" value="yes" class="styled" /></div>
140
-
141
- <span class="sfsicls_facebook">Facebook</span>
142
-
143
- <div class="right_info">
144
-
145
- <p><span>Strongly recommended:</span> Facebook is crucial, esp. for sharing.
146
-
147
- <label class="expanded-area">Facebook is the giant in the social media world, and even if you don’t have a Facebook account yourself you should display this icon, so that Facebook users can share your site on Facebook. </label>
148
-
149
- </p>
150
-
151
- <a href="javascript:;" class="expand-area">Read more</a>
152
-
153
- </div>
154
-
155
- </li>
156
-
157
- <!-- END FACEBOOK ICON -->
158
- <!-- TWITTER ICON -->
159
-
160
- <li class="gary_bg">
161
-
162
- <div class="radio_section tb_4_ck"><input name="sfsi_twitter_display" <?php echo ($option1['sfsi_twitter_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_twitter_display" type="checkbox" value="yes" class="styled" /></div>
163
-
164
- <span class="sfsicls_twt">Twitter</span>
165
-
166
- <div class="right_info">
167
-
168
- <p><span>Strongly recommended:</span> Can have a strong promotional effect.
169
-
170
- <label class="expanded-area">If you have a Twitter-account then adding this icon is a no-brainer. However, similar as with facebook, even if you don’t have one you should still show this icon so that Twitter-users can share your site.</label>
171
-
172
- </p>
173
-
174
- <a href="javascript:;" class="expand-area">Read more</a>
175
-
176
- </div>
177
-
178
- </li>
179
-
180
- <!-- END TWITTER ICON -->
181
- <!-- YOUTUBE ICON -->
182
-
183
- <li class="sfsi_vertically_center">
184
- <div>
185
- <div class="radio_section tb_4_ck"><input name="sfsi_youtube_display" <?php echo ($option1['sfsi_youtube_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_youtube_display" type="checkbox" value="yes" class="styled" /></div>
186
- <span class="sfsicls_utube">Youtube</span>
187
- </div>
188
- <div class="right_info">
189
- <p><span>It depends:</span> Show this icon if you have a youtube account (and you should set up one if you have video content – that can increase your traffic significantly). </p>
190
- </div>
191
- </li>
192
-
193
- <!-- END YOUTUBE ICON -->
194
-
195
- <!-- LINKEDIN ICON -->
196
- <li class="sfsi_vertically_center">
197
- <div>
198
- <div class="radio_section tb_4_ck"><input name="sfsi_linkedin_display" <?php echo ($option1['sfsi_linkedin_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_linkedin_display" type="checkbox" value="yes" class="styled" /></div>
199
-
200
- <span class="sfsicls_linkdin">LinkedIn</span>
201
- </div>
202
- <div class="right_info">
203
-
204
- <p><span>It depends:</span> No.1 network for business purposes. Use this icon if you’re a LinkedInner.</p>
205
-
206
- </div>
207
-
208
- </li>
209
- <!-- END LINKEDIN ICON -->
210
-
211
- <!-- PINTEREST ICON -->
212
- <li class="sfsi_vertically_center">
213
- <div>
214
- <div class="radio_section tb_4_ck"><input name="sfsi_pinterest_display" <?php echo ($option1['sfsi_pinterest_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_pinterest_display" type="checkbox" value="yes" class="styled" /></div>
215
-
216
- <span class="sfsicls_pinterest">Pinterest</span>
217
-
218
- </div>
219
-
220
- <div class="right_info">
221
-
222
- <p><span>It depends:</span> Show this icon if you have a Pinterest account (and you should set up one if you publish new pictures regularly – that can increase your traffic significantly).</p>
223
-
224
- </div>
225
-
226
- </li>
227
- <!-- END PINTEREST ICON -->
228
-
229
- <!-- INSTAGRAM ICON -->
230
- <li class="sfsi_vertically_center">
231
- <div>
232
- <div class="radio_section tb_4_ck"><input name="sfsi_instagram_display" <?php echo ($option1['sfsi_instagram_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_instagram_display" type="checkbox" value="yes" class="styled" /></div>
233
-
234
- <span class="sfsicls_instagram">Instagram</span>
235
-
236
- </div>
237
-
238
- <div class="right_info">
239
-
240
- <p><span>It depends:</span> Show this icon if you have an Instagram account.</p>
241
-
242
- </div>
243
-
244
- </li>
245
- <!-- END INSTAGRAM ICON -->
246
-
247
- <!-- TELEGRAM ICON -->
248
- <li class="sfsi_vertically_center">
249
- <div>
250
- <div class="radio_section tb_4_ck"><input name="sfsi_telegram_display" <?php echo ($option1['sfsi_telegram_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_telegram_display" type="checkbox" value="yes" class="styled" /></div>
251
-
252
- <span class="sfsicls_telegram">Telegram</span>
253
-
254
- </div>
255
-
256
- <div class="right_info">
257
-
258
- <p><span>It depends:</span> Show this icon if you have a Telegram account.</p>
259
-
260
- </div>
261
-
262
- </li>
263
- <!-- END TELEGRAM ICON -->
264
-
265
- <!-- VK ICON -->
266
- <li class="sfsi_vertically_center">
267
- <div>
268
- <div class="radio_section tb_4_ck"><input name="sfsi_vk_display" <?php echo ($option1['sfsi_vk_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_vk_display" type="checkbox" value="yes" class="styled" /></div>
269
-
270
- <span class="sfsicls_vk">VK</span>
271
- </div>
272
- <div class="right_info">
273
-
274
- <p><span>It depends:</span> Show this icon if you have a VK account.</p>
275
-
276
- </div>
277
-
278
- </li>
279
- <!-- END VK ICON -->
280
-
281
- <!-- OK ICON -->
282
- <li class="sfsi_vertically_center">
283
- <div>
284
-
285
- <div class="radio_section tb_4_ck"><input name="sfsi_ok_display" <?php echo ($option1['sfsi_ok_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_ok_display" type="checkbox" value="yes" class="styled" /></div>
286
-
287
- <span class="sfsicls_ok">Ok</span>
288
-
289
- </div>
290
-
291
- <div class="right_info">
292
-
293
- <p><span>It depends:</span> Show this icon if you have an OK account.</p>
294
-
295
- </div>
296
-
297
- </li>
298
- <!-- END OK ICON -->
299
-
300
- <!-- WECHAT ICON -->
301
- <li class="sfsi_vertically_center">
302
- <div>
303
- <div class="radio_section tb_4_ck"><input name="sfsi_wechat_display" <?php echo ($option1['sfsi_wechat_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_wechat_display" type="checkbox" value="yes" class="styled" /></div>
304
-
305
- <span class="sfsicls_wechat">WeChat</span>
306
- </div>
307
- <div class="right_info">
308
-
309
- <p><span>It depends:</span> Show this icon if you have a WeChat account.</p>
310
-
311
- </div>
312
-
313
- </li>
314
- <!-- END WECHAT ICON -->
315
- <!-- WEIBO ICON -->
316
- <li class="sfsi_vertically_center">
317
- <div>
318
-
319
- <div class="radio_section tb_4_ck"><input name="sfsi_weibo_display" <?php echo ($option1['sfsi_weibo_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_weibo_display" type="checkbox" value="yes" class="styled" /></div>
320
-
321
- <span class="sfsicls_weibo">Weibo</span>
322
-
323
- </div>
324
-
325
- <div class="right_info">
326
-
327
- <p><span>It depends:</span> Show this icon if you have a Weibo account.</p>
328
-
329
- </div>
330
-
331
- </li>
332
- <!-- END INSTAGRAM ICON -->
333
-
334
- <!-- Custom icon section start here -->
335
- <?php if (get_option('sfsi_custom_icons') == 'no') { ?>
336
- <?php
337
-
338
- $icons = ($option1['sfsi_custom_files']) ? unserialize($option1['sfsi_custom_files']) : array();
339
-
340
- $total_icons = count($icons);
341
-
342
- end($icons);
343
- $endkey = key($icons);
344
- $endkey = (isset($endkey)) ? $endkey : 0;
345
- reset($icons);
346
- $first_key = key($icons);
347
- $first_key = (isset($first_key)) ? $first_key : 0;
348
- $new_element = 0;
349
- if ($total_icons > 0) {
350
- $new_element = $endkey + 1;
351
- }
352
-
353
- ?>
354
- <!-- Display all custom icons -->
355
-
356
- <?php $count = 1;
357
- for ($i = $first_key; $i <= $endkey; $i++) : ?>
358
- <?php if (!empty($icons[$i])) : ?>
359
-
360
- <?php $count++;
361
- endif;
362
- endfor; ?>
363
-
364
- <!-- Create a custom icon if total uploaded icons are less than 5 -->
365
-
366
- <?php if ($count <= 5) : ?>
367
-
368
- <li id="c<?php echo $new_element; ?>" class="custom bdr_btm_non sfsi_vertically_center">
369
-
370
- <a class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" target="_blank">
371
- <div class="radio_section tb_4_ck" style="opacity:0.5">
372
- <input type="checkbox" onclick="return false; value=" yes" class="styled" disabled="true" />
373
- </div>
374
-
375
- <span class="custom-img" style="opacity:0.5">
376
- <img src="<?php echo SFSI_PLUGURL . 'images/custom.png'; ?>" id="CImg_<?php echo $new_element; ?> " alt="error" />
377
-
378
- </span>
379
-
380
- <span class="custom custom-txt" style="font-weight:normal;opacity:0.5;margin-left:4px"> Custom Icon </span>
381
-
382
- </a>
383
-
384
- <div class="right_info">
385
- <p>
386
- <label style="color: #12a252 !important; font-weight: bold;font-family: unset;">
387
- Premium Feature:
388
- </label>
389
- <label>Upload a custom icon if you have other accounts/websites you want to link to -</label>
390
- <a class="pop-up" style="cursor:pointer; color: #12a252 !important;border-bottom: 1px solid #12a252;text-decoration: none;font-weight: bold;font-family: unset;" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" target="_blank">
391
- Get it now.
392
- </a>
393
- </p>
394
-
395
- </div>
396
-
397
- </li>
398
-
399
- <?php endif; ?>
400
- <?php } ?>
401
- <!-- END Custom icon section here -->
402
-
403
- <!-- Custom icon section start here -->
404
-
405
- <?php
406
- if (get_option('sfsi_custom_icons') == 'yes') { ?>
407
- <?php
408
-
409
- $icons = ($option1['sfsi_custom_files']) ? unserialize($option1['sfsi_custom_files']) : array();
410
-
411
- $total_icons = count($icons);
412
-
413
- end($icons);
414
-
415
- $endkey = key($icons);
416
-
417
- $endkey = (isset($endkey)) ? $endkey : 0;
418
-
419
- reset($icons);
420
-
421
- $first_key = key($icons);
422
-
423
- $first_key = (isset($first_key)) ? $first_key : 0;
424
-
425
- $new_element = 0;
426
-
427
- if ($total_icons > 0) {
428
-
429
- $new_element = $endkey + 1;
430
- }
431
-
432
- ?>
433
-
434
- <!-- Display all custom icons -->
435
-
436
- <?php $count = 1;
437
- for ($i = $first_key; $i <= $endkey; $i++) : ?>
438
- <?php if (!empty($icons[$i])) : ?>
439
-
440
- <li id="c<?php echo $i; ?>" class="custom">
441
-
442
- <div class="radio_section tb_4_ck">
443
-
444
- <input name="sfsiICON_<?php echo $i; ?>" checked="true" type="checkbox" value="yes" class="styled" element-type="cusotm-icon" />
445
-
446
- </div>
447
-
448
- <input type="hidden" name="nonce" value="<?php echo wp_create_nonce('deleteIcons'); ?>">
449
-
450
- <span class="custom-img">
451
-
452
- <img class="sfcm" src="<?php echo (!empty($icons[$i])) ? esc_url($icons[$i]) : SFSI_PLUGURL . 'images/custom.png'; ?>" id="CImg_<?php echo $i; ?>" alt="error" />
453
-
454
- </span>
455
-
456
- <span class="custom custom-txt">Custom <?php echo $count; ?> </span>
457
-
458
- <div class="right_info">
459
-
460
- <p><span>It depends:</span> Upload a custom icon if you have other accounts/websites you want to link to. </p>
461
- </div>
462
-
463
- </li>
464
-
465
- <?php $count++;
466
- endif;
467
- endfor; ?>
468
-
469
- <!-- Create a custom icon if total uploaded icons are less than 5 -->
470
-
471
- <?php if ($count <= 5) : ?>
472
-
473
- <li id="c<?php echo $new_element; ?>" class="custom bdr_btm_non sfsi_vertically_center">
474
- <div>
475
- <div class="radio_section tb_4_ck">
476
-
477
- <input name="sfsiICON_<?php echo $new_element; ?>" type="checkbox" value="yes" class="styled" element-type="cusotm-icon" ele-type='new' />
478
-
479
- </div>
480
-
481
- <span class="custom-img">
482
-
483
- <img src="<?php echo SFSI_PLUGURL . 'images/custom.png'; ?>" id="CImg_<?php echo $new_element; ?> " alt="error" />
484
-
485
- </span>
486
- <span class="custom custom-txt">Custom<?php echo $count; ?> </span>
487
-
488
- </div>
489
-
490
- <div class="right_info">
491
-
492
- <p><span>It depends:</span> Upload a custom icon if you have other accounts/websites you want to link to. </p>
493
-
494
- </div>
495
-
496
- </li>
497
-
498
- <?php endif; ?>
499
- <?php } ?>
500
- <!-- END Custom icon section here -->
501
-
502
- </ul>
503
-
504
- <ul>
505
-
506
- <li class="sfsi_premium_brdr_box">
507
-
508
- <div class="sfsi_prem_icons_added">
509
-
510
- <div class="sf_si_prmium_head">
511
- <h2>New: <span> In our Premium Plugin we added icons for:</span></h2>
512
- </div>
513
-
514
- <div class="sfsi_premium_row">
515
-
516
- <div class="sfsi_prem_cmn_rowlisting">
517
-
518
- <span>
519
-
520
- <img src="<?php echo SFSI_PLUGURL . 'images/snapchat.png'; ?>" id="CImg" alt="error" />
521
-
522
- </span>
523
-
524
- <span class="sfsicls_prem_text">Snapchat</span>
525
-
526
- </div>
527
-
528
- <div class="sfsi_prem_cmn_rowlisting">
529
-
530
- <span>
531
-
532
- <img src="<?php echo SFSI_PLUGURL . 'images/whatsapp.png'; ?>" id="CImg" alt="error" />
533
-
534
- </span>
535
-
536
- <span class="sfsicls_prem_text">WhatsApp or Phone</span>
537
-
538
- </div>
539
-
540
- <div class="sfsi_prem_cmn_rowlisting">
541
-
542
- <span>
543
-
544
- <img src="<?php echo SFSI_PLUGURL . 'images/yummly.png'; ?>" id="CImg" alt="error" />
545
-
546
- </span>
547
-
548
- <span class="sfsicls_prem_text">Yummly</span>
549
-
550
- </div>
551
-
552
- <div class="sfsi_prem_cmn_rowlisting">
553
-
554
- <span>
555
-
556
- <img src="<?php echo SFSI_PLUGURL . 'images/yelp.png'; ?>" id="CImg" alt="error" />
557
-
558
- </span>
559
-
560
- <span class="sfsicls_prem_text">Yelp</span>
561
-
562
- </div>
563
-
564
- <div class="sfsi_prem_cmn_rowlisting">
565
-
566
- <span>
567
-
568
- <img src="<?php echo SFSI_PLUGURL . 'images/print.png'; ?>" id="CImg" alt="error" />
569
-
570
- </span>
571
-
572
- <span class="sfsicls_prem_text">Print</span>
573
-
574
- </div>
575
-
576
- <div class="sfsi_prem_cmn_rowlisting">
577
-
578
- <span>
579
-
580
- <img src="<?php echo SFSI_PLUGURL . 'images/messenger.png'; ?>" id="CImg" />
581
-
582
- </span>
583
-
584
- <span class="sfsicls_prem_text">Messenger</span>
585
-
586
- </div>
587
-
588
- </div>
589
-
590
- <div class="sfsi_premium_row">
591
-
592
- <div class="sfsi_prem_cmn_rowlisting">
593
-
594
- <span>
595
-
596
- <img src="<?php echo SFSI_PLUGURL . 'images/soundcloud.png'; ?>" id="CImg" alt="error" />
597
-
598
- </span>
599
-
600
- <span class="sfsicls_prem_text">Soundcloud</span>
601
-
602
- </div>
603
-
604
- <div class="sfsi_prem_cmn_rowlisting">
605
-
606
- <span>
607
-
608
- <img src="<?php echo SFSI_PLUGURL . 'images/skype.png'; ?>" id="CImg" alt="error" />
609
-
610
- </span>
611
-
612
- <span class="sfsicls_prem_text">Skype</span>
613
-
614
- </div>
615
-
616
- <div class="sfsi_prem_cmn_rowlisting">
617
-
618
- <span>
619
-
620
- <img src="<?php echo SFSI_PLUGURL . 'images/flickr.png'; ?>" id="CImg" alt="error" />
621
-
622
- </span>
623
-
624
- <span class="sfsicls_prem_text">Flickr</span>
625
-
626
- </div>
627
-
628
- <div class="sfsi_prem_cmn_rowlisting">
629
-
630
- <span>
631
-
632
- <img src="<?php echo SFSI_PLUGURL . 'images/buffer.png'; ?>" id="CImg" alt="error" />
633
-
634
- </span>
635
-
636
- <span class="sfsicls_prem_text">Buffer</span>
637
-
638
- </div>
639
-
640
- <div class="sfsi_prem_cmn_rowlisting">
641
-
642
- <span>
643
-
644
- <img src="<?php echo SFSI_PLUGURL . 'images/blogger.png'; ?>" id="CImg" alt="error" />
645
-
646
- </span>
647
-
648
- <span class="sfsicls_prem_text">Blogger</span>
649
-
650
- </div>
651
-
652
- <div class="sfsi_prem_cmn_rowlisting">
653
-
654
- <span>
655
-
656
- <img src="<?php echo SFSI_PLUGURL . 'images/reddit.png'; ?>" id="CImg" alt="error" />
657
-
658
- </span>
659
-
660
- <span class="sfsicls_prem_text">Reddit</span>
661
-
662
- </div>
663
-
664
- </div>
665
-
666
- <div class="sfsi_premium_row">
667
-
668
- <div class="sfsi_prem_cmn_rowlisting">
669
-
670
- <span>
671
-
672
- <img src="<?php echo SFSI_PLUGURL . 'images/vimeo.png'; ?>" id="CImg" alt="error" />
673
-
674
- </span>
675
-
676
- <span class="sfsicls_prem_text">Vimeo</span>
677
-
678
- </div>
679
-
680
- <div class="sfsi_prem_cmn_rowlisting">
681
-
682
- <span>
683
-
684
- <img src="<?php echo SFSI_PLUGURL . 'images/tumblr.png'; ?>" id="CImg" alt="error" />
685
-
686
- </span>
687
-
688
- <span class="sfsicls_prem_text">Tumblr</span>
689
-
690
- </div>
691
-
692
- <div class="sfsi_prem_cmn_rowlisting">
693
-
694
- <span>
695
-
696
- <img src="<?php echo SFSI_PLUGURL . 'images/houzz.png'; ?>" id="CImg" alt="error" />
697
-
698
- </span>
699
-
700
- <span class="sfsicls_prem_text">Houzz</span>
701
-
702
- </div>
703
-
704
- <div class="sfsi_prem_cmn_rowlisting">
705
-
706
- <span>
707
-
708
- <img src="<?php echo SFSI_PLUGURL . 'images/xing.png'; ?>" id="CImg" alt="error" />
709
-
710
- </span>
711
-
712
- <span class="sfsicls_prem_text">Xing</span>
713
-
714
- </div>
715
-
716
- <div class="sfsi_prem_cmn_rowlisting">
717
-
718
- <span>
719
-
720
- <img src="<?php echo SFSI_PLUGURL . 'images/twitch.png'; ?>" id="CImg" />
721
-
722
- </span>
723
-
724
- <span class="sfsicls_prem_text">Twitch</span>
725
-
726
- </div>
727
-
728
- <div class="sfsi_prem_cmn_rowlisting">
729
-
730
- <span>
731
-
732
- <img src="<?php echo SFSI_PLUGURL . 'images/amazon.png'; ?>" id="CImg" alt="error" />
733
-
734
- </span>
735
-
736
- <span class="sfsicls_prem_text">Amazon</span>
737
-
738
- </div>
739
-
740
- </div>
741
-
742
- <div class="sfsi_premium_row">
743
-
744
- <div class="sfsi_prem_cmn_rowlisting">
745
-
746
- <span>
747
-
748
- <img src="<?php echo SFSI_PLUGURL . 'images/angieslist.png'; ?>" id="CImg" alt="error" />
749
-
750
- </span>
751
-
752
- <span class="sfsicls_prem_text">Angie’s List</span>
753
-
754
- </div>
755
-
756
- <div class="sfsi_prem_cmn_rowlisting">
757
-
758
- <span>
759
-
760
- <img src="<?php echo SFSI_PLUGURL . 'images/steam.png'; ?>" id="CImg" alt="error" />
761
-
762
- </span>
763
-
764
- <span class="sfsicls_prem_text">Steam</span>
765
-
766
- </div>
767
-
768
- </div>
769
-
770
- <!--<div class="sfsi_need_another_one_link">
771
-
772
- <p>Need another one?<a href="mailto:biz@ultimatelysocial.com"> Tell us</a></p>
773
-
774
- </div>-->
775
-
776
- <div class="sfsi_need_another_tell_us" style="padding-top:20px">
777
-
778
- <a href="https://www.ultimatelysocial.com/all-platforms/" target="_blank">...and many more! See them here</a>
779
-
780
- <!--<a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_platforms&utm_medium=banner" target="_blank">See all features Premium Plugin</a>-->
781
-
782
- </div>
783
-
784
- </div>
785
-
786
- </li>
787
-
788
- </ul>
789
-
790
- <input type="hidden" value="<?php echo SFSI_PLUGURL ?>" id="plugin_url" />
791
-
792
- <input type="hidden" value="" id="upload_id" />
793
-
794
- <?php sfsi_ask_for_help(1); ?>
795
-
796
- <!-- SAVE BUTTON SECTION -->
797
-
798
- <div class="save_button tab_1_sav">
799
-
800
- <img src="<?php echo SFSI_PLUGURL ?>images/ajax-loader.gif" class="loader-img" alt="error" />
801
-
802
- <?php $nonce = wp_create_nonce("update_step1"); ?>
803
-
804
- <a href="javascript:;" id="sfsi_save1" title="Save" data-nonce="<?php echo $nonce; ?>">Save</a>
805
-
806
- </div><!-- END SAVE BUTTON SECTION -->
807
-
808
- <a class="sfsiColbtn closeSec" href="javascript:;">Collapse area</a>
809
-
810
- <!-- ERROR AND SUCCESS MESSAGE AREA-->
811
-
812
- <p class="red_txt errorMsg" style="display:none"> </p>
813
-
814
- <p class="green_txt sucMsg" style="display:none"> </p>
815
-
816
- </div>
817
-
818
  <!-- END Section 1 "Which icons do you want to show on your site? " main div-->
1
+ <?php
2
+
3
+ /* unserialize all saved option for first options */
4
+
5
+ $option1 = unserialize(get_option('sfsi_section1_options', false));
6
+
7
+ /*
8
+ * Sanitize, escape and validate values
9
+ */
10
+
11
+ $option1['sfsi_rss_display'] = (isset($option1['sfsi_rss_display']))
12
+
13
+ ? sanitize_text_field($option1['sfsi_rss_display'])
14
+
15
+ : 'yes';
16
+
17
+ $option1['sfsi_email_display'] = (isset($option1['sfsi_email_display']))
18
+ ? sanitize_text_field($option1['sfsi_email_display'])
19
+ : 'yes';
20
+ $option1['sfsi_facebook_display'] = (isset($option1['sfsi_facebook_display']))
21
+ ? sanitize_text_field($option1['sfsi_facebook_display'])
22
+ : 'yes';
23
+
24
+ $option1['sfsi_twitter_display'] = (isset($option1['sfsi_twitter_display']))
25
+ ? sanitize_text_field($option1['sfsi_twitter_display'])
26
+ : 'yes';
27
+ $option1['sfsi_youtube_display'] = (isset($option1['sfsi_youtube_display']))
28
+
29
+ ? sanitize_text_field($option1['sfsi_youtube_display'])
30
+
31
+ : 'no';
32
+
33
+ $option1['sfsi_pinterest_display'] = (isset($option1['sfsi_pinterest_display']))
34
+ ? sanitize_text_field($option1['sfsi_pinterest_display'])
35
+ : 'no';
36
+
37
+ $option1['sfsi_telegram_display'] = (isset($option1['sfsi_telegram_display']))
38
+ ? sanitize_text_field($option1['sfsi_telegram_display'])
39
+ : 'no';
40
+
41
+ $option1['sfsi_vk_display'] = (isset($option1['sfsi_vk_display']))
42
+ ? sanitize_text_field($option1['sfsi_vk_display'])
43
+ : 'no';
44
+
45
+ $option1['sfsi_ok_display'] = (isset($option1['sfsi_ok_display']))
46
+ ? sanitize_text_field($option1['sfsi_ok_display'])
47
+ : 'no';
48
+
49
+ $option1['sfsi_wechat_display'] = (isset($option1['sfsi_wechat_display']))
50
+ ? sanitize_text_field($option1['sfsi_wechat_display'])
51
+ : 'no';
52
+
53
+ $option1['sfsi_weibo_display'] = (isset($option1['sfsi_weibo_display']))
54
+ ? sanitize_text_field($option1['sfsi_weibo_display'])
55
+ : 'no';
56
+
57
+ $option1['sfsi_linkedin_display'] = (isset($option1['sfsi_linkedin_display']))
58
+ ? sanitize_text_field($option1['sfsi_linkedin_display'])
59
+ : 'no';
60
+
61
+ $option1['sfsi_instagram_display'] = (isset($option1['sfsi_instagram_display']))
62
+ ? sanitize_text_field($option1['sfsi_instagram_display'])
63
+ : 'no';
64
+ ?>
65
+
66
+ <!-- Section 1 "Which icons do you want to show on your site? " main div Start -->
67
+
68
+ <div class="tab1">
69
+ <p class="top_txt">
70
+ In general, <span>the more icons you offer the better</span> because people have different preferences, and more options mean that there’s something for everybody, increasing the chances that you get followed and/or shared.
71
+
72
+ </p>
73
+ <ul class="icn_listing">
74
+
75
+ <!-- RSS ICON -->
76
+ <li class="gary_bg">
77
+
78
+ <div class="radio_section tb_4_ck">
79
+ <input name="sfsi_rss_display" <?php echo ($option1['sfsi_rss_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_rss_display" type="checkbox" value="yes" class="styled" />
80
+
81
+ </div>
82
+
83
+ <span class="sfsicls_rs_s">RSS</span>
84
+
85
+ <div class="right_info">
86
+
87
+ <p><span>Strongly recommended:</span> RSS is still popular, esp. among the tech-savvy crowd.
88
+
89
+ <label class="expanded-area">RSS stands for Really Simply Syndication and is an easy way for people to read your content. You can learn more about it <a href="http://en.wikipedia.org/wiki/RSS" target="new" title="Syndication">here</a>. </label></p>
90
+
91
+ <a href="javascript:;" class="expand-area">Read more</a>
92
+
93
+ </div>
94
+
95
+ </li>
96
+
97
+ <!-- END RSS ICON -->
98
+
99
+ <!-- EMAIL ICON -->
100
+ <li class="gary_bg">
101
+ <div class="radio_section tb_4_ck">
102
+
103
+ <input name="sfsi_email_display" <?php echo ($option1['sfsi_email_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_email_display" type="checkbox" value="yes" class="styled" />
104
+
105
+ </div>
106
+
107
+ <span class="sfsicls_email">Email</span>
108
+
109
+ <div class="right_info">
110
+
111
+ <p><span>Strongly recommended:</span> Email is the most effective tool to build up followership.
112
+
113
+ <span style="float: right;margin-right: 13px; margin-top: -3px;">
114
+
115
+ <?php if (get_option('sfsi_footer_sec') == "yes") {
116
+ $nonce = wp_create_nonce("remove_footer"); ?>
117
+
118
+ <a style="font-size:13px;margin-left:30px;color:#777777;" href="javascript:;" class="sfsi_removeFooter" data-nonce="<?php echo $nonce; ?>">Remove credit link</a>
119
+
120
+ <?php } ?>
121
+
122
+ </span>
123
+
124
+ <label class="expanded-area">Everybody uses email – that’s why it’s <a href="http://www.entrepreneur.com/article/230949" target="new">much more effective than social media </a> to make people follow you. Not offering an email subscription option means losing out on future traffic to your site.</label>
125
+
126
+ </p>
127
+
128
+ <a href="javascript:;" class="expand-area">Read more</a>
129
+
130
+ </div>
131
+
132
+ </li>
133
+
134
+ <!-- EMAIL ICON -->
135
+ <!-- FACEBOOK ICON -->
136
+
137
+ <li class="gary_bg">
138
+
139
+ <div class="radio_section tb_4_ck"><input name="sfsi_facebook_display" <?php echo ($option1['sfsi_facebook_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_facebook_display" type="checkbox" value="yes" class="styled" /></div>
140
+
141
+ <span class="sfsicls_facebook">Facebook</span>
142
+
143
+ <div class="right_info">
144
+
145
+ <p><span>Strongly recommended:</span> Facebook is crucial, esp. for sharing.
146
+
147
+ <label class="expanded-area">Facebook is the giant in the social media world, and even if you don’t have a Facebook account yourself you should display this icon, so that Facebook users can share your site on Facebook. </label>
148
+
149
+ </p>
150
+
151
+ <a href="javascript:;" class="expand-area">Read more</a>
152
+
153
+ </div>
154
+
155
+ </li>
156
+
157
+ <!-- END FACEBOOK ICON -->
158
+ <!-- TWITTER ICON -->
159
+
160
+ <li class="gary_bg">
161
+
162
+ <div class="radio_section tb_4_ck"><input name="sfsi_twitter_display" <?php echo ($option1['sfsi_twitter_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_twitter_display" type="checkbox" value="yes" class="styled" /></div>
163
+
164
+ <span class="sfsicls_twt">Twitter</span>
165
+
166
+ <div class="right_info">
167
+
168
+ <p><span>Strongly recommended:</span> Can have a strong promotional effect.
169
+
170
+ <label class="expanded-area">If you have a Twitter-account then adding this icon is a no-brainer. However, similar as with facebook, even if you don’t have one you should still show this icon so that Twitter-users can share your site.</label>
171
+
172
+ </p>
173
+
174
+ <a href="javascript:;" class="expand-area">Read more</a>
175
+
176
+ </div>
177
+
178
+ </li>
179
+
180
+ <!-- END TWITTER ICON -->
181
+ <!-- YOUTUBE ICON -->
182
+
183
+ <li class="sfsi_vertically_center">
184
+ <div>
185
+ <div class="radio_section tb_4_ck"><input name="sfsi_youtube_display" <?php echo ($option1['sfsi_youtube_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_youtube_display" type="checkbox" value="yes" class="styled" /></div>
186
+ <span class="sfsicls_utube">Youtube</span>
187
+ </div>
188
+ <div class="right_info">
189
+ <p><span>It depends:</span> Show this icon if you have a youtube account (and you should set up one if you have video content – that can increase your traffic significantly). </p>
190
+ </div>
191
+ </li>
192
+
193
+ <!-- END YOUTUBE ICON -->
194
+
195
+ <!-- LINKEDIN ICON -->
196
+ <li class="sfsi_vertically_center">
197
+ <div>
198
+ <div class="radio_section tb_4_ck"><input name="sfsi_linkedin_display" <?php echo ($option1['sfsi_linkedin_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_linkedin_display" type="checkbox" value="yes" class="styled" /></div>
199
+
200
+ <span class="sfsicls_linkdin">LinkedIn</span>
201
+ </div>
202
+ <div class="right_info">
203
+
204
+ <p><span>It depends:</span> No.1 network for business purposes. Use this icon if you’re a LinkedInner.</p>
205
+
206
+ </div>
207
+
208
+ </li>
209
+ <!-- END LINKEDIN ICON -->
210
+
211
+ <!-- PINTEREST ICON -->
212
+ <li class="sfsi_vertically_center">
213
+ <div>
214
+ <div class="radio_section tb_4_ck"><input name="sfsi_pinterest_display" <?php echo ($option1['sfsi_pinterest_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_pinterest_display" type="checkbox" value="yes" class="styled" /></div>
215
+
216
+ <span class="sfsicls_pinterest">Pinterest</span>
217
+
218
+ </div>
219
+
220
+ <div class="right_info">
221
+
222
+ <p><span>It depends:</span> Show this icon if you have a Pinterest account (and you should set up one if you publish new pictures regularly – that can increase your traffic significantly).</p>
223
+
224
+ </div>
225
+
226
+ </li>
227
+ <!-- END PINTEREST ICON -->
228
+
229
+ <!-- INSTAGRAM ICON -->
230
+ <li class="sfsi_vertically_center">
231
+ <div>
232
+ <div class="radio_section tb_4_ck"><input name="sfsi_instagram_display" <?php echo ($option1['sfsi_instagram_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_instagram_display" type="checkbox" value="yes" class="styled" /></div>
233
+
234
+ <span class="sfsicls_instagram">Instagram</span>
235
+
236
+ </div>
237
+
238
+ <div class="right_info">
239
+
240
+ <p><span>It depends:</span> Show this icon if you have an Instagram account.</p>
241
+
242
+ </div>
243
+
244
+ </li>
245
+ <!-- END INSTAGRAM ICON -->
246
+
247
+ <!-- TELEGRAM ICON -->
248
+ <li class="sfsi_vertically_center">
249
+ <div>
250
+ <div class="radio_section tb_4_ck"><input name="sfsi_telegram_display" <?php echo ($option1['sfsi_telegram_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_telegram_display" type="checkbox" value="yes" class="styled" /></div>
251
+
252
+ <span class="sfsicls_telegram">Telegram</span>
253
+
254
+ </div>
255
+
256
+ <div class="right_info">
257
+
258
+ <p><span>It depends:</span> Show this icon if you have a Telegram account.</p>
259
+
260
+ </div>
261
+
262
+ </li>
263
+ <!-- END TELEGRAM ICON -->
264
+
265
+ <!-- VK ICON -->
266
+ <li class="sfsi_vertically_center">
267
+ <div>
268
+ <div class="radio_section tb_4_ck"><input name="sfsi_vk_display" <?php echo ($option1['sfsi_vk_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_vk_display" type="checkbox" value="yes" class="styled" /></div>
269
+
270
+ <span class="sfsicls_vk">VK</span>
271
+ </div>
272
+ <div class="right_info">
273
+
274
+ <p><span>It depends:</span> Show this icon if you have a VK account.</p>
275
+
276
+ </div>
277
+
278
+ </li>
279
+ <!-- END VK ICON -->
280
+
281
+ <!-- OK ICON -->
282
+ <li class="sfsi_vertically_center">
283
+ <div>
284
+
285
+ <div class="radio_section tb_4_ck"><input name="sfsi_ok_display" <?php echo ($option1['sfsi_ok_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_ok_display" type="checkbox" value="yes" class="styled" /></div>
286
+
287
+ <span class="sfsicls_ok">Ok</span>
288
+
289
+ </div>
290
+
291
+ <div class="right_info">
292
+
293
+ <p><span>It depends:</span> Show this icon if you have an OK account.</p>
294
+
295
+ </div>
296
+
297
+ </li>
298
+ <!-- END OK ICON -->
299
+
300
+ <!-- WECHAT ICON -->
301
+ <li class="sfsi_vertically_center">
302
+ <div>
303
+ <div class="radio_section tb_4_ck"><input name="sfsi_wechat_display" <?php echo ($option1['sfsi_wechat_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_wechat_display" type="checkbox" value="yes" class="styled" /></div>
304
+
305
+ <span class="sfsicls_wechat">WeChat</span>
306
+ </div>
307
+ <div class="right_info">
308
+
309
+ <p><span>It depends:</span> Show this icon if you have a WeChat account.</p>
310
+
311
+ </div>
312
+
313
+ </li>
314
+ <!-- END WECHAT ICON -->
315
+ <!-- WEIBO ICON -->
316
+ <li class="sfsi_vertically_center">
317
+ <div>
318
+
319
+ <div class="radio_section tb_4_ck"><input name="sfsi_weibo_display" <?php echo ($option1['sfsi_weibo_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_weibo_display" type="checkbox" value="yes" class="styled" /></div>
320
+
321
+ <span class="sfsicls_weibo">Weibo</span>
322
+
323
+ </div>
324
+
325
+ <div class="right_info">
326
+
327
+ <p><span>It depends:</span> Show this icon if you have a Weibo account.</p>
328
+
329
+ </div>
330
+
331
+ </li>
332
+ <!-- END INSTAGRAM ICON -->
333
+
334
+ <!-- Custom icon section start here -->
335
+ <?php if (get_option('sfsi_custom_icons') == 'no') { ?>
336
+ <?php
337
+
338
+ $icons = ($option1['sfsi_custom_files']) ? unserialize($option1['sfsi_custom_files']) : array();
339
+
340
+ $total_icons = count($icons);
341
+
342
+ end($icons);
343
+ $endkey = key($icons);
344
+ $endkey = (isset($endkey)) ? $endkey : 0;
345
+ reset($icons);
346
+ $first_key = key($icons);
347
+ $first_key = (isset($first_key)) ? $first_key : 0;
348
+ $new_element = 0;
349
+ if ($total_icons > 0) {
350
+ $new_element = $endkey + 1;
351
+ }
352
+
353
+ ?>
354
+ <!-- Display all custom icons -->
355
+
356
+ <?php $count = 1;
357
+ for ($i = $first_key; $i <= $endkey; $i++) : ?>
358
+ <?php if (!empty($icons[$i])) : ?>
359
+
360
+ <?php $count++;
361
+ endif;
362
+ endfor; ?>
363
+
364
+ <!-- Create a custom icon if total uploaded icons are less than 5 -->
365
+
366
+ <?php if ($count <= 5) : ?>
367
+
368
+ <li id="c<?php echo $new_element; ?>" class="custom bdr_btm_non sfsi_vertically_center">
369
+
370
+ <a class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" target="_blank">
371
+ <div class="radio_section tb_4_ck" style="opacity:0.5">
372
+ <input type="checkbox" onclick="return false; value=" yes" class="styled" disabled="true" />
373
+ </div>
374
+
375
+ <span class="custom-img" style="opacity:0.5">
376
+ <img src="<?php echo SFSI_PLUGURL . 'images/custom.png'; ?>" id="CImg_<?php echo $new_element; ?> " alt="error" />
377
+
378
+ </span>
379
+
380
+ <span class="custom custom-txt" style="font-weight:normal;opacity:0.5;margin-left:4px"> Custom Icon </span>
381
+
382
+ </a>
383
+
384
+ <div class="right_info">
385
+ <p>
386
+ <label style="color: #12a252 !important; font-weight: bold;font-family: unset;">
387
+ Premium Feature:
388
+ </label>
389
+ <label>Upload a custom icon if you have other accounts/websites you want to link to -</label>
390
+ <a class="pop-up" style="cursor:pointer; color: #12a252 !important;border-bottom: 1px solid #12a252;text-decoration: none;font-weight: bold;font-family: unset;" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" target="_blank">
391
+ Get it now.
392
+ </a>
393
+ </p>
394
+
395
+ </div>
396
+
397
+ </li>
398
+
399
+ <?php endif; ?>
400
+ <?php } ?>
401
+ <!-- END Custom icon section here -->
402
+
403
+ <!-- Custom icon section start here -->
404
+
405
+ <?php
406
+ if (get_option('sfsi_custom_icons') == 'yes') { ?>
407
+ <?php
408
+
409
+ $icons = ($option1['sfsi_custom_files']) ? unserialize($option1['sfsi_custom_files']) : array();
410
+
411
+ $total_icons = count($icons);
412
+
413
+ end($icons);
414
+
415
+ $endkey = key($icons);
416
+
417
+ $endkey = (isset($endkey)) ? $endkey : 0;
418
+
419
+ reset($icons);
420
+
421
+ $first_key = key($icons);
422
+
423
+ $first_key = (isset($first_key)) ? $first_key : 0;
424
+
425
+ $new_element = 0;
426
+
427
+ if ($total_icons > 0) {
428
+
429
+ $new_element = $endkey + 1;
430
+ }
431
+
432
+ ?>
433
+
434
+ <!-- Display all custom icons -->
435
+
436
+ <?php $count = 1;
437
+ for ($i = $first_key; $i <= $endkey; $i++) : ?>
438
+ <?php if (!empty($icons[$i])) : ?>
439
+
440
+ <li id="c<?php echo $i; ?>" class="custom">
441
+
442
+ <div class="radio_section tb_4_ck">
443
+
444
+ <input name="sfsiICON_<?php echo $i; ?>" checked="true" type="checkbox" value="yes" class="styled" element-type="cusotm-icon" />
445
+
446
+ </div>
447
+
448
+ <input type="hidden" name="nonce" value="<?php echo wp_create_nonce('deleteIcons'); ?>">
449
+
450
+ <span class="custom-img">
451
+
452
+ <img class="sfcm" src="<?php echo (!empty($icons[$i])) ? esc_url($icons[$i]) : SFSI_PLUGURL . 'images/custom.png'; ?>" id="CImg_<?php echo $i; ?>" alt="error" />
453
+
454
+ </span>
455
+
456
+ <span class="custom custom-txt">Custom <?php echo $count; ?> </span>
457
+
458
+ <div class="right_info">
459
+
460
+ <p><span>It depends:</span> Upload a custom icon if you have other accounts/websites you want to link to. </p>
461
+ </div>
462
+
463
+ </li>
464
+
465
+ <?php $count++;
466
+ endif;
467
+ endfor; ?>
468
+
469
+ <!-- Create a custom icon if total uploaded icons are less than 5 -->
470
+
471
+ <?php if ($count <= 5) : ?>
472
+
473
+ <li id="c<?php echo $new_element; ?>" class="custom bdr_btm_non sfsi_vertically_center">
474
+ <div>
475
+ <div class="radio_section tb_4_ck">
476
+
477
+ <input name="sfsiICON_<?php echo $new_element; ?>" type="checkbox" value="yes" class="styled" element-type="cusotm-icon" ele-type='new' />
478
+
479
+ </div>
480
+
481
+ <span class="custom-img">
482
+
483
+ <img src="<?php echo SFSI_PLUGURL . 'images/custom.png'; ?>" id="CImg_<?php echo $new_element; ?> " alt="error" />
484
+
485
+ </span>
486
+ <span class="custom custom-txt">Custom<?php echo $count; ?> </span>
487
+
488
+ </div>
489
+
490
+ <div class="right_info">
491
+
492
+ <p><span>It depends:</span> Upload a custom icon if you have other accounts/websites you want to link to. </p>
493
+
494
+ </div>
495
+
496
+ </li>
497
+
498
+ <?php endif; ?>
499
+ <?php } ?>
500
+ <!-- END Custom icon section here -->
501
+
502
+ </ul>
503
+
504
+ <ul>
505
+
506
+ <li class="sfsi_premium_brdr_box">
507
+
508
+ <div class="sfsi_prem_icons_added">
509
+
510
+ <div class="sf_si_prmium_head">
511
+ <h2>New: <span> In our Premium Plugin we added icons for:</span></h2>
512
+ </div>
513
+
514
+ <div class="sfsi_premium_row">
515
+
516
+ <div class="sfsi_prem_cmn_rowlisting">
517
+
518
+ <span>
519
+
520
+ <img src="<?php echo SFSI_PLUGURL . 'images/snapchat.png'; ?>" id="CImg" alt="error" />
521
+
522
+ </span>
523
+
524
+ <span class="sfsicls_prem_text">Snapchat</span>
525
+
526
+ </div>
527
+
528
+ <div class="sfsi_prem_cmn_rowlisting">
529
+
530
+ <span>
531
+
532
+ <img src="<?php echo SFSI_PLUGURL . 'images/whatsapp.png'; ?>" id="CImg" alt="error" />
533
+
534
+ </span>
535
+
536
+ <span class="sfsicls_prem_text">WhatsApp or Phone</span>
537
+
538
+ </div>
539
+
540
+ <div class="sfsi_prem_cmn_rowlisting">
541
+
542
+ <span>
543
+
544
+ <img src="<?php echo SFSI_PLUGURL . 'images/yummly.png'; ?>" id="CImg" alt="error" />
545
+
546
+ </span>
547
+
548
+ <span class="sfsicls_prem_text">Yummly</span>
549
+
550
+ </div>
551
+
552
+ <div class="sfsi_prem_cmn_rowlisting">
553
+
554
+ <span>
555
+
556
+ <img src="<?php echo SFSI_PLUGURL . 'images/yelp.png'; ?>" id="CImg" alt="error" />
557
+
558
+ </span>
559
+
560
+ <span class="sfsicls_prem_text">Yelp</span>
561
+
562
+ </div>
563
+
564
+ <div class="sfsi_prem_cmn_rowlisting">
565
+
566
+ <span>
567
+
568
+ <img src="<?php echo SFSI_PLUGURL . 'images/print.png'; ?>" id="CImg" alt="error" />
569
+
570
+ </span>
571
+
572
+ <span class="sfsicls_prem_text">Print</span>
573
+
574
+ </div>
575
+
576
+ <div class="sfsi_prem_cmn_rowlisting">
577
+
578
+ <span>
579
+
580
+ <img src="<?php echo SFSI_PLUGURL . 'images/messenger.png'; ?>" id="CImg" />
581
+
582
+ </span>
583
+
584
+ <span class="sfsicls_prem_text">Messenger</span>
585
+
586
+ </div>
587
+
588
+ </div>
589
+
590
+ <div class="sfsi_premium_row">
591
+
592
+ <div class="sfsi_prem_cmn_rowlisting">
593
+
594
+ <span>
595
+
596
+ <img src="<?php echo SFSI_PLUGURL . 'images/soundcloud.png'; ?>" id="CImg" alt="error" />
597
+
598
+ </span>
599
+
600
+ <span class="sfsicls_prem_text">Soundcloud</span>
601
+
602
+ </div>
603
+
604
+ <div class="sfsi_prem_cmn_rowlisting">
605
+
606
+ <span>
607
+
608
+ <img src="<?php echo SFSI_PLUGURL . 'images/skype.png'; ?>" id="CImg" alt="error" />
609
+
610
+ </span>
611
+
612
+ <span class="sfsicls_prem_text">Skype</span>
613
+
614
+ </div>
615
+
616
+ <div class="sfsi_prem_cmn_rowlisting">
617
+
618
+ <span>
619
+
620
+ <img src="<?php echo SFSI_PLUGURL . 'images/flickr.png'; ?>" id="CImg" alt="error" />
621
+
622
+ </span>
623
+
624
+ <span class="sfsicls_prem_text">Flickr</span>
625
+
626
+ </div>
627
+
628
+ <div class="sfsi_prem_cmn_rowlisting">
629
+
630
+ <span>
631
+
632
+ <img src="<?php echo SFSI_PLUGURL . 'images/buffer.png'; ?>" id="CImg" alt="error" />
633
+
634
+ </span>
635
+
636
+ <span class="sfsicls_prem_text">Buffer</span>
637
+
638
+ </div>
639
+
640
+ <div class="sfsi_prem_cmn_rowlisting">
641
+
642
+ <span>
643
+
644
+ <img src="<?php echo SFSI_PLUGURL . 'images/blogger.png'; ?>" id="CImg" alt="error" />
645
+
646
+ </span>
647
+
648
+ <span class="sfsicls_prem_text">Blogger</span>
649
+
650
+ </div>
651
+
652
+ <div class="sfsi_prem_cmn_rowlisting">
653
+
654
+ <span>
655
+
656
+ <img src="<?php echo SFSI_PLUGURL . 'images/reddit.png'; ?>" id="CImg" alt="error" />
657
+
658
+ </span>
659
+
660
+ <span class="sfsicls_prem_text">Reddit</span>
661
+
662
+ </div>
663
+
664
+ </div>
665
+
666
+ <div class="sfsi_premium_row">
667
+
668
+ <div class="sfsi_prem_cmn_rowlisting">
669
+
670
+ <span>
671
+
672
+ <img src="<?php echo SFSI_PLUGURL . 'images/vimeo.png'; ?>" id="CImg" alt="error" />
673
+
674
+ </span>
675
+
676
+ <span class="sfsicls_prem_text">Vimeo</span>
677
+
678
+ </div>
679
+
680
+ <div class="sfsi_prem_cmn_rowlisting">
681
+
682
+ <span>
683
+
684
+ <img src="<?php echo SFSI_PLUGURL . 'images/tumblr.png'; ?>" id="CImg" alt="error" />
685
+
686
+ </span>
687
+
688
+ <span class="sfsicls_prem_text">Tumblr</span>
689
+
690
+ </div>
691
+
692
+ <div class="sfsi_prem_cmn_rowlisting">
693
+
694
+ <span>
695
+
696
+ <img src="<?php echo SFSI_PLUGURL . 'images/houzz.png'; ?>" id="CImg" alt="error" />
697
+
698
+ </span>
699
+
700
+ <span class="sfsicls_prem_text">Houzz</span>
701
+
702
+ </div>
703
+
704
+ <div class="sfsi_prem_cmn_rowlisting">
705
+
706
+ <span>
707
+
708
+ <img src="<?php echo SFSI_PLUGURL . 'images/xing.png'; ?>" id="CImg" alt="error" />
709
+
710
+ </span>
711
+
712
+ <span class="sfsicls_prem_text">Xing</span>
713
+
714
+ </div>
715
+
716
+ <div class="sfsi_prem_cmn_rowlisting">
717
+
718
+ <span>
719
+
720
+ <img src="<?php echo SFSI_PLUGURL . 'images/twitch.png'; ?>" id="CImg" />
721
+
722
+ </span>
723
+
724
+ <span class="sfsicls_prem_text">Twitch</span>
725
+
726
+ </div>
727
+
728
+ <div class="sfsi_prem_cmn_rowlisting">
729
+
730
+ <span>
731
+
732
+ <img src="<?php echo SFSI_PLUGURL . 'images/amazon.png'; ?>" id="CImg" alt="error" />
733
+
734
+ </span>
735
+
736
+ <span class="sfsicls_prem_text">Amazon</span>
737
+
738
+ </div>
739
+
740
+ </div>
741
+
742
+ <div class="sfsi_premium_row">
743
+
744
+ <div class="sfsi_prem_cmn_rowlisting">
745
+
746
+ <span>
747
+
748
+ <img src="<?php echo SFSI_PLUGURL . 'images/angieslist.png'; ?>" id="CImg" alt="error" />
749
+
750
+ </span>
751
+
752
+ <span class="sfsicls_prem_text">Angie’s List</span>
753
+
754
+ </div>
755
+
756
+ <div class="sfsi_prem_cmn_rowlisting">
757
+
758
+ <span>
759
+
760
+ <img src="<?php echo SFSI_PLUGURL . 'images/steam.png'; ?>" id="CImg" alt="error" />
761
+
762
+ </span>
763
+
764
+ <span class="sfsicls_prem_text">Steam</span>
765
+
766
+ </div>
767
+
768
+ </div>
769
+
770
+ <!--<div class="sfsi_need_another_one_link">
771
+
772
+ <p>Need another one?<a href="mailto:biz@ultimatelysocial.com"> Tell us</a></p>
773
+
774
+ </div>-->
775
+
776
+ <div class="sfsi_need_another_tell_us" style="padding-top:20px">
777
+
778
+ <a href="https://www.ultimatelysocial.com/all-platforms/" target="_blank">...and many more! See them here</a>
779
+
780
+ <!--<a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_platforms&utm_medium=banner" target="_blank">See all features Premium Plugin</a>-->
781
+
782
+ </div>
783
+
784
+ </div>
785
+
786
+ </li>
787
+
788
+ </ul>
789
+
790
+ <input type="hidden" value="<?php echo SFSI_PLUGURL ?>" id="plugin_url" />
791
+
792
+ <input type="hidden" value="" id="upload_id" />
793
+
794
+ <?php sfsi_ask_for_help(1); ?>
795
+
796
+ <!-- SAVE BUTTON SECTION -->
797
+
798
+ <div class="save_button tab_1_sav">
799
+
800
+ <img src="<?php echo SFSI_PLUGURL ?>images/ajax-loader.gif" class="loader-img" alt="error" />
801
+
802
+ <?php $nonce = wp_create_nonce("update_step1"); ?>
803
+
804
+ <a href="javascript:;" id="sfsi_save1" title="Save" data-nonce="<?php echo $nonce; ?>">Save</a>
805
+
806
+ </div><!-- END SAVE BUTTON SECTION -->
807
+
808
+ <a class="sfsiColbtn closeSec" href="javascript:;">Collapse area</a>
809
+
810
+ <!-- ERROR AND SUCCESS MESSAGE AREA-->
811
+
812
+ <p class="red_txt errorMsg" style="display:none"> </p>
813
+
814
+ <p class="green_txt sucMsg" style="display:none"> </p>
815
+
816
+ </div>
817
+
818
  <!-- END Section 1 "Which icons do you want to show on your site? " main div-->
views/sfsi_option_view2.php CHANGED
@@ -1,504 +1,503 @@
1
- <?php
2
- /* unserialize all saved option for second section options */
3
- $option4 = unserialize(get_option('sfsi_section4_options', false));
4
- $option2 = unserialize(get_option('sfsi_section2_options', false));
5
-
6
- /*
7
- * Sanitize, escape and validate values
8
- */
9
- $option2['sfsi_rss_url'] = (isset($option2['sfsi_rss_url']))
10
- ? esc_url($option2['sfsi_rss_url'])
11
- : '';
12
- $option2['sfsi_rss_icons'] = (isset($option2['sfsi_rss_icons']))
13
- ? sanitize_text_field($option2['sfsi_rss_icons'])
14
- : '';
15
- $option2['sfsi_email_url'] = (isset($option2['sfsi_email_url']))
16
- ? esc_url($option2['sfsi_email_url'])
17
- : '';
18
-
19
- $option2['sfsi_facebookPage_option'] = (isset($option2['sfsi_facebookPage_option']))
20
- ? sanitize_text_field($option2['sfsi_facebookPage_option'])
21
- : '';
22
- $option2['sfsi_facebookPage_url'] = (isset($option2['sfsi_facebookPage_url']))
23
- ? esc_url($option2['sfsi_facebookPage_url'])
24
- : '';
25
- $option2['sfsi_facebookLike_option'] = (isset($option2['sfsi_facebookLike_option']))
26
- ? sanitize_text_field($option2['sfsi_facebookLike_option'])
27
- : '';
28
- $option2['sfsi_facebookShare_option'] = (isset($option2['sfsi_facebookShare_option']))
29
- ? sanitize_text_field($option2['sfsi_facebookShare_option'])
30
- : '';
31
-
32
- $option2['sfsi_twitter_followme'] = (isset($option2['sfsi_twitter_followme']))
33
- ? sanitize_text_field($option2['sfsi_twitter_followme'])
34
- : '';
35
- $option2['sfsi_twitter_followUserName'] = (isset($option2['sfsi_twitter_followUserName']))
36
- ? sanitize_text_field($option2['sfsi_twitter_followUserName'])
37
- : '';
38
- $option2['sfsi_twitter_aboutPage'] = (isset($option2['sfsi_twitter_aboutPage']))
39
- ? sanitize_text_field($option2['sfsi_twitter_aboutPage'])
40
- : '';
41
- $option2['sfsi_twitter_page'] = (isset($option2['sfsi_twitter_page']))
42
- ? sanitize_text_field($option2['sfsi_twitter_page'])
43
- : '';
44
- $option2['sfsi_twitter_pageURL'] = (isset($option2['sfsi_twitter_pageURL']))
45
- ? esc_url($option2['sfsi_twitter_pageURL'])
46
- : '';
47
- $option2['sfsi_twitter_aboutPageText'] = (isset($option2['sfsi_twitter_aboutPageText']))
48
- ? sanitize_text_field($option2['sfsi_twitter_aboutPageText'])
49
- : '';
50
-
51
- $option2['sfsi_youtube_pageUrl'] = (isset($option2['sfsi_youtube_pageUrl']))
52
- ? esc_url($option2['sfsi_youtube_pageUrl'])
53
- : '';
54
- $option2['sfsi_youtube_page'] = (isset($option2['sfsi_youtube_page']))
55
- ? sanitize_text_field($option2['sfsi_youtube_page'])
56
- : '';
57
- $option2['sfsi_youtube_follow'] = (isset($option2['sfsi_youtube_follow']))
58
- ? sanitize_text_field($option2['sfsi_youtube_follow'])
59
- : '';
60
-
61
- $option2['sfsi_pinterest_page'] = (isset($option2['sfsi_pinterest_page']))
62
- ? sanitize_text_field($option2['sfsi_pinterest_page'])
63
- : '';
64
- $option2['sfsi_pinterest_pageUrl'] = (isset($option2['sfsi_pinterest_pageUrl']))
65
- ? esc_url($option2['sfsi_pinterest_pageUrl'])
66
- : '';
67
- $option2['sfsi_pinterest_pingBlog'] = (isset($option2['sfsi_pinterest_pingBlog']))
68
- ? sanitize_text_field($option2['sfsi_pinterest_pingBlog'])
69
- : '';
70
- $option2['sfsi_instagram_pageUrl'] = (isset($option2['sfsi_instagram_pageUrl']))
71
- ? esc_url($option2['sfsi_instagram_pageUrl'])
72
- : '';
73
-
74
- $option2['sfsi_linkedin_page'] = (isset($option2['sfsi_linkedin_page']))
75
- ? sanitize_text_field($option2['sfsi_linkedin_page'])
76
- : '';
77
- $option2['sfsi_linkedin_pageURL'] = (isset($option2['sfsi_linkedin_pageURL']))
78
- ? esc_url($option2['sfsi_linkedin_pageURL'])
79
- : '';
80
- $option2['sfsi_linkedin_follow'] = (isset($option2['sfsi_linkedin_follow']))
81
- ? sanitize_text_field($option2['sfsi_linkedin_follow'])
82
- : '';
83
- $option2['sfsi_linkedin_followCompany'] = (isset($option2['sfsi_linkedin_followCompany']))
84
- ? intval($option2['sfsi_linkedin_followCompany'])
85
- : '';
86
- $option2['sfsi_linkedin_SharePage'] = (isset($option2['sfsi_linkedin_SharePage']))
87
- ? sanitize_text_field($option2['sfsi_linkedin_SharePage'])
88
- : '';
89
-
90
- $option2['sfsi_linkedin_recommendBusines'] = (isset($option2['sfsi_linkedin_recommendBusines']))
91
- ? sanitize_text_field($option2['sfsi_linkedin_recommendBusines'])
92
- : '';
93
- $option2['sfsi_linkedin_recommendCompany'] = (isset($option2['sfsi_linkedin_recommendCompany']))
94
- ? sanitize_text_field($option2['sfsi_linkedin_recommendCompany'])
95
- : '';
96
- $option2['sfsi_linkedin_recommendProductId'] = (isset($option2['sfsi_linkedin_recommendProductId']))
97
- ? intval($option2['sfsi_linkedin_recommendProductId'])
98
- : '';
99
- $option2['sfsi_telegram_message'] = (isset($option2['sfsi_telegram_message']))
100
- ? sanitize_text_field($option2['sfsi_telegram_message'])
101
- : '';
102
- $option2['sfsi_telegram_username'] = (isset($option2['sfsi_telegram_username']))
103
- ? sanitize_text_field($option2['sfsi_telegram_username'])
104
- : '';
105
- $option2['sfsi_telegram_page'] = (isset($option2['sfsi_telegram_page']))
106
- ? sanitize_text_field($option2['sfsi_telegram_page'])
107
- : '';
108
- $option2['sfsi_telegram_pageURL'] = (isset($option2['sfsi_telegram_pageURL']))
109
- ? esc_url($option2['sfsi_telegram_pageURL'])
110
- : '';
111
- $option2['sfsi_vk_page'] = (isset($option2['sfsi_vk_page']))
112
- ? sanitize_text_field($option2['sfsi_vk_page'])
113
- : '';
114
- $option2['sfsi_vk_pageURL'] = (isset($option2['sfsi_vk_pageURL']))
115
- ? esc_url($option2['sfsi_vk_pageURL'])
116
- : '';
117
- $option2['sfsi_weibo_page'] = (isset($option2['sfsi_weibo_page']))
118
- ? sanitize_text_field($option2['sfsi_weibo_page'])
119
- : '';
120
- $option2['sfsi_weibo_pageURL'] = (isset($option2['sfsi_weibo_pageURL']))
121
- ? esc_url($option2['sfsi_weibo_pageURL'])
122
- : '';
123
- $option2['sfsi_ok_page'] = (isset($option2['sfsi_ok_page']))
124
- ? sanitize_text_field($option2['sfsi_ok_page'])
125
- : '';
126
- $option2['sfsi_ok_pageURL'] = (isset($option2['sfsi_ok_pageURL']))
127
- ? esc_url($option2['sfsi_ok_pageURL'])
128
- : '';
129
-
130
- if ("name" == $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeusernameorid']) && !empty($option2['sfsi_youtubeusernameorid'])) {
131
-
132
- if (isset($option2['sfsi_ytube_user']) && !empty($option2['sfsi_ytube_user'])) {
133
- $option2['sfsi_ytube_user'] = sfsi_sanitize_field($option2['sfsi_ytube_user']);
134
- } else {
135
- $option2['sfsi_ytube_user'] = isset($option4['sfsi_youtube_user']) && !empty($option4['sfsi_youtube_user']) ? $option4['sfsi_youtube_user'] : "";
136
- }
137
- }
138
-
139
- if ("id" == $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeusernameorid']) && !empty($option2['sfsi_youtubeusernameorid'])) {
140
-
141
- if (isset($option2['sfsi_ytube_chnlid']) && !empty($option2['sfsi_ytube_chnlid'])) {
142
- $option2['sfsi_ytube_chnlid'] = sfsi_sanitize_field($option2['sfsi_ytube_chnlid']);
143
- } else {
144
- $option2['sfsi_ytube_chnlid'] = isset($option4['sfsi_youtube_channelId']) && !empty($option4['sfsi_youtube_channelId']) ? $option4['sfsi_youtube_channelId'] : "";
145
- }
146
- }
147
- ?>
148
-
149
- <!-- Section 2 "What do you want the icons to do?" main div Start -->
150
- <div class="tab2">
151
- <!-- RSS ICON -->
152
- <div class="row bdr_top rss_section">
153
- <h2 class="sfsicls_rs_s">RSS</h2>
154
- <div class="inr_cont">
155
- <p>When clicked on, users can subscribe via RSS</p>
156
- <div class="rss_url_row">
157
- <h4>RSS URL:</h4>
158
- <input name="sfsi_rss_url" id="sfsi_rss_url" class="add" type="url" value="<?php echo ($option2['sfsi_rss_url'] != '') ? $option2['sfsi_rss_url'] : ''; ?>" placeholder="E.g http://www.yoursite.com/feed" />
159
- <span class="sfrsTxt">For most blogs it’s <strong>http://blogname.com/feed</strong></span>
160
- </div>
161
- </div>
162
- </div>
163
- <!-- END RSS ICON -->
164
-
165
- <!-- EMAIL ICON -->
166
- <?php
167
- $feedId = sanitize_text_field(get_option('sfsi_feed_id', false));
168
- $connectToFeed = "http://www.specificfeeds.com/?" . base64_encode("userprofile=wordpress&feed_id=" . $feedId);
169
- ?>
170
- <div class="row email_section">
171
- <h2 class="sfsicls_email">Email</h2>
172
- <?php sfsi_curl_error_notification(); ?>
173
-
174
- <div class="inr_cont">
175
- <p>
176
- It allows your visitors to subscribe to your site (on <a href="http://www.specificfeeds.com/widgets/emailSubscribeEncFeed/<?php echo $feedId; ?>/<?php echo base64_encode(8); ?>" target="new">this screen</a>) and receive new posts automatically by email.
177
- </p>
178
- <p>Please pick which icon type you want to use:</p>
179
- <ul class="tab_2_email_sec">
180
- <li>
181
- <div class="sfsiicnsdvwrp">
182
- <input name="sfsi_rss_icons" <?php echo ($option2['sfsi_rss_icons'] == 'email') ? 'checked="true"' : ''; ?> type="radio" value="email" class="styled" /><span class="email_icn"></span>
183
- </div>
184
- <label>Email icon</label>
185
- </li>
186
- <li>
187
- <div class="sfsiicnsdvwrp">
188
- <input name="sfsi_rss_icons" <?php echo ($option2['sfsi_rss_icons'] == 'subscribe') ? 'checked="true"' : ''; ?> type="radio" value="subscribe" class="styled" /><span class="subscribe_icn"></span>
189
- </div>
190
- <label>Follow icon<span class="sficndesc"> (increases sign-ups)</span></label>
191
- </li>
192
- <li>
193
- <div class="sfsiicnsdvwrp">
194
- <input name="sfsi_rss_icons" <?php echo ($option2['sfsi_rss_icons'] == 'sfsi') ? 'checked="true"' : ''; ?> type="radio" value="sfsi" class="styled" /><span class="sf_arow"></span>
195
- </div>
196
- <label>SpecificFeeds icon<span class="sfplsdesc"> (provider of the service)</span></label>
197
- </li>
198
- </ul>
199
- <p>The service offers many (more) advantages: </p>
200
- <div class='sfsi_service_row'>
201
- <div class='sfsi_service_column'>
202
- <ul>
203
- <li><span>More people come back</span> to your site</li>
204
- <li>See your<span> subscribers’ emails</span> & <span>interesting statistics</span></li>
205
- <li>Automatically post on<span> Facebook & Twitter</span></li>
206
- </ul>
207
- </div>
208
- <div class='sfsi_service_column'>
209
- <ul>
210
- <li><span>Get more traffic</span> by being listed in the SF directory</li>
211
- <li><span>Get alerts</span> when people subscribe or unsubscribe</li>
212
- <li><span>Tailor the sender name & subject line</span> of the emails </li>
213
- </ul>
214
- </div>
215
- </div>
216
-
217
- <form id="calimingOptimizationForm" method="get" action="https://www.specificfeeds.com/wpclaimfeeds/getFullAccess" target="_blank">
218
- <div class="sfsi_inputbtn">
219
- <input type="hidden" name="feed_id" value="<?php echo sanitize_text_field(get_option('sfsi_feed_id', false)); ?>" />
220
- <input type="email" name="email" value="<?php echo bloginfo('admin_email'); ?>" />
221
- </div>
222
- <div class='sfsi_more_services_link'>
223
- <a href="javascript:;" id="sfsi_getMeFullAccess" title="Give me access">
224
- Click here to benefit from all advantages >
225
- </a>
226
- </div>
227
- </form>
228
-
229
- <p class='sfsi_email_last_paragraph'>
230
- This will create your FREE account on SpecificFeeds, using the above email. <br>
231
- All data will be treated highly confidentially, see the
232
- <a href="https://www.specificfeeds.com/page/privacy-policy" target="new">
233
- Privacy Policy.
234
- </a>
235
- </p> <div class="sfsi_new_prmium_follw">
236
- <p><b>New:</b> In our Premium Plugin you can now give your email icon other functions too, e.g. <b>contact you </b>(email), <b>share by email,</b> and <b>link to a certain page </b>(e.g. your contact form or newsletter sign-up site). <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go premium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_functions_email_icon&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a>
237
- </div>
238
- </div>
239
- </div>
240
- <!-- END EMAIL ICON -->
241
-
242
- <!-- FACEBOOK ICON -->
243
- <div class="row facebook_section">
244
- <h2 class="sfsicls_facebook">Facebook</h2>
245
- <div class="inr_cont">
246
- <p>The facebook icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do <a class="rit_link pop-up" href="javascript:;" data-id="fbex-s2">(see an example)</a>.</p>
247
- <p>The facebook icon should allow users to...</p>
248
-
249
- <p class="radio_section fb_url"><input name="sfsi_facebookPage_option" <?php echo ($option2['sfsi_facebookPage_option'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Visit my Facebook page at:</label><input class="add" name="sfsi_facebookPage_url" type="url" value="<?php echo ($option2['sfsi_facebookPage_url'] != '') ? $option2['sfsi_facebookPage_url'] : ''; ?>" placeholder="E.g https://www.facebook.com/your_page_name" /></p>
250
-
251
- <p class="radio_section fb_url extra_sp"><input name="sfsi_facebookLike_option" <?php echo ($option2['sfsi_facebookLike_option'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Like my blog on Facebook (+1)</label></p>
252
-
253
- <p class="radio_section fb_url extra_sp"><input name="sfsi_facebookShare_option" <?php echo ($option2['sfsi_facebookShare_option'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Share my blog with friends (on Facebook)</label></p>
254
- <div class="sfsi_new_prmium_follw">
255
- <p><b>New:</b> In our Premium Plugin you can also allow users to follow you on Facebook <b>directly from your site</b> (without leaving your page, increasing followers). <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go premium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=direct_follow_facebook&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
256
- </div>
257
- </div>
258
- </div>
259
- <!-- END FACEBOOK ICON -->
260
-
261
- <!-- TWITTER ICON -->
262
- <div class="row twitter_section">
263
- <h2 class="sfsicls_twt">Twitter</h2>
264
- <div class="inr_cont twt_tab_2">
265
- <p>The Twitter icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do <a class="rit_link pop-up" href="javascript:;" data-id="twex-s2">(see an example)</a>.</p>
266
- <p>The Twitter icon should allow users to...</p>
267
-
268
- <p class="radio_section fb_url"><input name="sfsi_twitter_page" <?php echo ($option2['sfsi_twitter_page'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Visit me on Twitter:</label><input name="sfsi_twitter_pageURL" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_twitter_pageURL'] != '') ? $option2['sfsi_twitter_pageURL'] : ''; ?>" class="add" /></p>
269
-
270
- <div class="radio_section fb_url twt_fld"><input name="sfsi_twitter_followme" <?php echo ($option2['sfsi_twitter_followme'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Follow me on Twitter:</label><input name="sfsi_twitter_followUserName" type="text" value="<?php echo ($option2['sfsi_twitter_followUserName'] != '') ? $option2['sfsi_twitter_followUserName'] : ''; ?>" placeholder="my_twitter_name" class="add" /></div>
271
- <?php
272
- $twitter_text = isset($option2['sfsi_twitter_aboutPageText']) && !empty($option2['sfsi_twitter_aboutPageText']) ? $option2['sfsi_twitter_aboutPageText'] : '';
273
- ?>
274
- <div class="radio_section fb_url twt_fld_2"><input name="sfsi_twitter_aboutPage" <?php echo ($option2['sfsi_twitter_aboutPage'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Tweet about my page:</label><textarea name="sfsi_twitter_aboutPageText" id="sfsi_twitter_aboutPageText" class="add_txt" placeholder="Hey, check out this cool site I found: www.yourname.com #Topic via@my_twitter_name"><?php echo $twitter_text; ?></textarea><?php /*echo ($option2['sfsi_twitter_aboutPageText']!='') ? stripslashes($option2['sfsi_twitter_aboutPageText']) : '' ;*/?></div>
275
- <div class="sfsi_new_prmium_follw">
276
- <p><b>New: </b>Tweeting becomes really fun in the Premium Plugin – you can insert tags to automatically pull the title of the story & link to the story, attach pictures & snippets to the Tweets (‘Twitter cards’) and user Url-shorteners, all leading to more Tweets and traffic for your site! <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go premium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=better_tweets&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
277
- </div>
278
- </div>
279
- </div>
280
- <!-- END TWITTER ICON -->
281
-
282
- <!-- YOUTUBE ICON -->
283
- <div class="row youtube_section">
284
- <h2 class="sfsicls_utube">Youtube</h2>
285
- <div class="inr_cont utube_inn">
286
- <p>The Youtube icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do <a class="rit_link pop-up" href="javascript:;" data-id="ytex-s2">(see an example)</a>.</p>
287
-
288
- <p>The youtube icon should allow users to... </p>
289
-
290
- <p class="radio_section fb_url"><input name="sfsi_youtube_page" <?php echo ($option2['sfsi_youtube_page'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Visit my Youtube page at:</label><input name="sfsi_youtube_pageUrl" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_youtube_pageUrl'] != '') ? $option2['sfsi_youtube_pageUrl'] : ''; ?>" class="add" /></p>
291
-
292
- <p class="radio_section fb_url"><input name="sfsi_youtube_follow" <?php echo ($option2['sfsi_youtube_follow'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Subscribe to me on Youtube <span>(allows people to subscribe to you directly, without leaving your blog)</span></label></p>
293
-
294
- <!--Adding Code for Channel Id and Channel Name-->
295
- <div class="cstmutbewpr">
296
- <ul class="enough_waffling">
297
- <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>
298
- <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>
299
- </ul>
300
- <div class="cstmutbtxtwpr">
301
- <?php
302
- $sfsi_youtubeusernameorid = $option2['sfsi_youtubeusernameorid'];
303
- ?>
304
- <div class="cstmutbchnlnmewpr" <?php if ($sfsi_youtubeusernameorid != 'id') {
305
- echo 'style="display: block;"';
306
- } ?>>
307
- <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>
308
- <div class="utbe_instruction">
309
- 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".
310
- </div>
311
- </div>
312
- <div class="cstmutbchnlidwpr" <?php if ($sfsi_youtubeusernameorid == 'id') {
313
- echo 'style="display: block;"';
314
- } ?>>
315
- <p class="extra_pp"><label>ChannelId:</label><input name="sfsi_ytube_chnlid" type="url" value="<?php echo (isset($option2['sfsi_ytube_chnlid']) && $option2['sfsi_ytube_chnlid'] != '') ? $option2['sfsi_ytube_chnlid'] : ''; ?>" placeholder="youtube_channel_id" class="add" /></p>
316
- <div class="utbe_instruction">
317
- 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".
318
- </div>
319
- </div>
320
- </div>
321
- </div>
322
-
323
- </div>
324
- </div>
325
- <!-- END YOUTUBE ICON -->
326
-
327
- <!-- PINTEREST ICON -->
328
- <div class="row pinterest_section">
329
- <h2 class="sfsicls_pinterest">Pinterest</h2>
330
- <div class="inr_cont">
331
- <p>The Pinterest icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do <a class="rit_link pop-up" href="javascript:;" data-id="pinex-s2">(see an example)</a>.</p>
332
- <p>The Pinterest icon should allow users to... </p>
333
- <p class="radio_section fb_url"><input name="sfsi_pinterest_page" <?php echo ($option2['sfsi_pinterest_page'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Visit my Pinterest page at:</label><input name="sfsi_pinterest_pageUrl" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_pinterest_pageUrl'] != '') ? $option2['sfsi_pinterest_pageUrl'] : ''; ?>" class="add" /></p>
334
- <div class="pint_url">
335
- <p class="radio_section fb_url"><input name="sfsi_pinterest_pingBlog" <?php echo ($option2['sfsi_pinterest_pingBlog'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Pin my blog on Pinterest (+1)</label></p>
336
- </div>
337
- </div>
338
- </div>
339
- <!-- END PINTEREST ICON -->
340
-
341
- <!-- INSTAGRAM ICON -->
342
- <div class="row instagram_section">
343
- <h2 class="sfsicls_instagram">Instagram</h2>
344
- <div class="inr_cont">
345
- <p>When clicked on, users will get directed to your Instagram page.</p>
346
- <p class="radio_section fb_url cus_link instagram_space"><label>URL:</label><input name="sfsi_instagram_pageUrl" type="text" value="<?php echo (isset($option2['sfsi_instagram_pageUrl']) && $option2['sfsi_instagram_pageUrl'] != '') ? $option2['sfsi_instagram_pageUrl'] : ''; ?>" placeholder="http://" class="add" /></p>
347
- </div>
348
- </div>
349
- <!-- END INSTAGRAM ICON -->
350
-
351
- <!-- LINKEDIN ICON -->
352
- <div class="row linkedin_section">
353
- <h2 class="sfsicls_linkdin">LinkedIn</h2>
354
- <div class="inr_cont linked_tab_2 link_in">
355
- <p>The LinkedIn icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do <a class="rit_link pop-up" href="javascript:;" data-id="linkex-s2">(see an example)</a>.</p>
356
- <p>You find your ID in the link of your profile page, e.g. https://www.linkedin.com/profile/view?id=<b>8539887</b>&trk=nav_responsive_tab_profile_pic</p>
357
- <p style="margin-bottom:20px;">The LinkedIn icon should allow users to... </p>
358
- <div class="radio_section fb_url link_1"><input name="sfsi_linkedin_page" <?php echo ($option2['sfsi_linkedin_page'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Visit my Linkedin page at:</label><input name="sfsi_linkedin_pageURL" type="text" placeholder="http://" value="<?php echo ($option2['sfsi_linkedin_pageURL'] != '') ? $option2['sfsi_linkedin_pageURL'] : ''; ?>" class="add" /></div>
359
- <div class="radio_section fb_url link_2"><input name="sfsi_linkedin_follow" <?php echo ($option2['sfsi_linkedin_follow'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Follow me on Linkedin: </label><input name="sfsi_linkedin_followCompany" type="text" value="<?php echo ($option2['sfsi_linkedin_followCompany'] != '') ? $option2['sfsi_linkedin_followCompany'] : ''; ?>" class="add" placeholder="Enter company ID, e.g. 123456" /></div>
360
-
361
- <div class="radio_section fb_url link_3"><input name="sfsi_linkedin_SharePage" <?php echo ($option2['sfsi_linkedin_SharePage'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Share my page on LinkedIn</label></div>
362
-
363
- <div class="radio_section fb_url link_4"><input name="sfsi_linkedin_recommendBusines" <?php echo ($option2['sfsi_linkedin_recommendBusines'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label class="anthr_labl">Recommend my business or product on Linkedin:</label><input name="sfsi_linkedin_recommendProductId" type="text" value="<?php echo ($option2['sfsi_linkedin_recommendProductId'] != '') ? $option2['sfsi_linkedin_recommendProductId'] : ''; ?>" class="add link_dbl" placeholder="Enter Product ID, e.g. 1441" /> <input name="sfsi_linkedin_recommendCompany" type="text" value="<?php echo ($option2['sfsi_linkedin_recommendCompany'] != '') ? $option2['sfsi_linkedin_recommendCompany'] : ''; ?>" class="add" placeholder="Enter company name, e.g. Google”" /></div>
364
-
365
- <div class="lnkdin_instruction">
366
- To find your Product or Company ID, you can use their ID lookup tool at <a target="_blank" href="https://developer.linkedin.com/apply-getting-started#company-lookup">https://developer.linkedin.com/apply-getting-started#company-lookup</a>. You need to be logged in to Linkedin to be able to use it.
367
- </div>
368
- </div>
369
- </div>
370
-
371
- <!-- TELEGRAM ICON -->
372
- <div class="row telegram_section">
373
- <h2 class="sfsicls_telegram">Telegram</h2>
374
- <div class="inr_cont telegram_tab_2">
375
- <p>Clicking on this icon will allow users to contact you on Telegram.</p>
376
- <!-- <input name="sfsi_telegram_message" checked="true" type="checkbox" value="yes" class="" style="display:none"/> -->
377
-
378
- <p class="radio_section fb_url no_check ">
379
- <label>Pre-filled message</label>
380
- <input name="sfsi_telegram_message" type="text" value="<?php echo ($option2['sfsi_telegram_message'] != '') ? $option2['sfsi_telegram_message'] : ''; ?>" placeholder="my_telegram_name" class="add" />
381
- </p>
382
-
383
- <p class="radio_section fb_url no_check">
384
- <label>My Telegram username</label>
385
- <input name="sfsi_telegram_username" type="url" placeholder="username" value="<?php echo ($option2['sfsi_telegram_username'] != '') ? $option2['sfsi_telegram_username'] : ''; ?>" class="add" />
386
- </p>
387
-
388
- <div class="sfsi_new_prmium_follw">
389
- <p><b>New: </b>In our Premium Plugin you can now give your Telegram icon sharing functionality too, e.g. <b> share your website/blog with friends. </b><a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go premium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=telegram_sharing&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
390
- </div>
391
- </div>
392
- </div>
393
-
394
- <!-- END TELEGRAM ICON -->
395
-
396
- <!-- WECHAT ICON -->
397
- <div class="row wechat_section">
398
- <h2 class="sfsicls_wechat">WeChat</h2>
399
- <div class="inr_cont wechat_tab_2">
400
- <p>When clicked on, your website/blog will be shared on WeChat.</p>
401
- <input name="sfsi_wechatShare_option" checked="true" type="checkbox" value="yes" class="" style="display:none" />
402
- <div class="sfsi_new_prmium_follw">
403
- <p><b>New: </b>In our Premium Plugin you can also allow users to <b>follow you </b> on WeChat <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go premium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=wechat_sharing&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
404
- </div>
405
- </div>
406
- </div>
407
- <!-- END WECHAT ICON -->
408
- <!-- WEIBO ICON -->
409
- <div class="row weibo_section">
410
- <h2 class="sfsicls_weibo">Weibo</h2>
411
- <div class="inr_cont weibo_tab_2">
412
- <p>When clicked on, users will get directed to your Weibo page.</p>
413
-
414
- <p class="radio_section fb_url no_check"><input name="sfsi_weibo_page" checked="true" type="checkbox" value="yes" class="" style="display:none" /><label>Visit me on Weibo:</label><input name="sfsi_weibo_pageURL" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_weibo_pageURL'] != '') ? $option2['sfsi_weibo_pageURL'] : ''; ?>" class="add" /></p>
415
-
416
- <div class="sfsi_new_prmium_follw">
417
- <p><b>New: </b> In our Premium Plugin you can now give Weibo icon other functions too, e.g. <b>your website/blog, share your website/blog</b> on Weibo. <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go premium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=weibo_like_and_share&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
418
- </div>
419
- </div>
420
- </div>
421
- <!-- END WEIBO ICON -->
422
-
423
- <!-- VK ICON -->
424
- <div class="row vk_section">
425
- <h2 class="sfsicls_vk">VK</h2>
426
- <div class="inr_cont vk_tab_2">
427
- <p>When clicked on, users will get directed to your VK page.</p>
428
-
429
- <p class="radio_section fb_url no_check"><input name="sfsi_vk_page" checked="true" type="checkbox" value="yes" class="" style="display:none" /><label>Visit me on VK:</label><input name="sfsi_vk_pageURL" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_vk_pageURL'] != '') ? $option2['sfsi_vk_pageURL'] : ''; ?>" class="add" /></p>
430
-
431
- <div class="sfsi_new_prmium_follw">
432
- <p><b>New: </b>In our Premium Plugin you can now give your VK icon sharing functionality too, e.g. <b>share your website/blog </b> with friends. <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go premium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=vk_share&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
433
- </div>
434
- </div>
435
- </div>
436
- <!-- END VK ICON -->
437
- <!-- OK ICON -->
438
- <div class="row ok_section">
439
- <h2 class="sfsicls_ok">OK</h2>
440
- <div class="inr_cont ok_tab_2">
441
- <p>When clicked on, users will get directed to your OK page.</p>
442
-
443
- <p class="radio_section fb_url no_check"><input name="sfsi_ok_page" checked="true" type="checkbox" value="yes" class="" style="display:none" /><label>Visit me on OK:</label><input name="sfsi_ok_pageURL" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_ok_pageURL'] != '') ? $option2['sfsi_ok_pageURL'] : ''; ?>" class="add" /></p>
444
-
445
- <div class="sfsi_new_prmium_follw">
446
- <p><b>New: </b>In our Premium Plugin you can now give OK icon other functions too, e.g. <b> like your website/blog </b>, subscribe/follow you on OK. <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go premium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=ok_like_and_subscribe&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
447
- </div>
448
- </div>
449
- </div>
450
- <!-- END OK ICON -->
451
- <!-- END LINKEDIN ICON -->
452
-
453
- <!-- Custom icon section start here -->
454
- <div class="custom-links custom_section">
455
- <?php
456
- $costom_links = unserialize($option2['sfsi_CustomIcon_links']);
457
- $count = 1;
458
- $bannerDisplay = "display:none;";
459
- for ($i = $first_key; $i <= $endkey; $i++) :
460
- ?>
461
- <?php if (!empty($icons[$i])) :
462
- $bannerDisplay = "display:block;";
463
- ?>
464
- <div class="row sfsiICON_<?php echo $i; ?> cm_lnk">
465
- <h2 class="custom">
466
- <span class="customstep2-img">
467
- <img src="<?php echo (!empty($icons[$i])) ? esc_url($icons[$i]) : SFSI_PLUGURL . 'images/custom.png'; ?>" id="CImg_<?php echo $new_element; ?>" style="border-radius:48%" alt="error" />
468
- </span>
469
- <span class="sfsiCtxt">Custom <?php echo $count; ?></span>
470
- </h2>
471
- <div class="inr_cont ">
472
- <p>Where do you want this icon to link to?</p>
473
- <p class="radio_section fb_url custom_section cus_link ">
474
- <label>Link :</label>
475
- <input name="sfsi_CustomIcon_links[]" type="text" value="<?php echo (isset($costom_links[$i]) && $costom_links[$i] != '') ? esc_url($costom_links[$i]) : ''; ?>" placeholder="http://" class="add" file-id="<?php echo $i; ?>" />
476
- </p>
477
- </div>
478
- </div>
479
- <?php $count++;
480
- endif;
481
- endfor; ?>
482
-
483
- <div class="notice_custom_icons_premium sfsi_new_prmium_follw" style="<?php echo $bannerDisplay; ?>">
484
- <p><b>New: </b>In the Premium Plugin you can also give custom icons the feature that when people click on it, they can call you, or send you an SMS. <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go premium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=call_or_sms_feature_custom_icons&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
485
- </div>
486
- </div>
487
- <!-- END Custom icon section here -->
488
-
489
- <?php sfsi_ask_for_help(2); ?> <!-- SAVE BUTTON SECTION -->
490
- <div class="save_button tab_2_sav">
491
- <img src="<?php echo SFSI_PLUGURL; ?>images/ajax-loader.gif" class="loader-img" alt="error" />
492
- <?php $nonce = wp_create_nonce("update_step2"); ?>
493
- <a href="javascript:;" id="sfsi_save2" title="Save" data-nonce="<?php echo $nonce; ?>">Save</a>
494
- </div>
495
- <!-- END SAVE BUTTON SECTION -->
496
-
497
- <a class="sfsiColbtn closeSec" href="javascript:;">Collapse area</a>
498
- <label class="closeSec"></label>
499
-
500
- <!-- ERROR AND SUCCESS MESSAGE AREA-->
501
- <p class="red_txt errorMsg" style="display:none"> </p>
502
- <p class="green_txt sucMsg" style="display:none"> </p>
503
-
1
+ <?php
2
+ /* unserialize all saved option for second section options */
3
+ $option4 = unserialize(get_option('sfsi_section4_options', false));
4
+ $option2 = unserialize(get_option('sfsi_section2_options', false));
5
+
6
+ /*
7
+ * Sanitize, escape and validate values
8
+ */
9
+ $option2['sfsi_rss_url'] = (isset($option2['sfsi_rss_url']))
10
+ ? esc_url($option2['sfsi_rss_url'])
11
+ : '';
12
+ $option2['sfsi_rss_icons'] = (isset($option2['sfsi_rss_icons']))
13
+ ? sanitize_text_field($option2['sfsi_rss_icons'])
14
+ : '';
15
+ $option2['sfsi_email_url'] = (isset($option2['sfsi_email_url']))
16
+ ? esc_url($option2['sfsi_email_url'])
17
+ : '';
18
+
19
+ $option2['sfsi_facebookPage_option'] = (isset($option2['sfsi_facebookPage_option']))
20
+ ? sanitize_text_field($option2['sfsi_facebookPage_option'])
21
+ : '';
22
+ $option2['sfsi_facebookPage_url'] = (isset($option2['sfsi_facebookPage_url']))
23
+ ? esc_url($option2['sfsi_facebookPage_url'])
24
+ : '';
25
+ $option2['sfsi_facebookLike_option'] = (isset($option2['sfsi_facebookLike_option']))
26
+ ? sanitize_text_field($option2['sfsi_facebookLike_option'])
27
+ : '';
28
+ $option2['sfsi_facebookShare_option'] = (isset($option2['sfsi_facebookShare_option']))
29
+ ? sanitize_text_field($option2['sfsi_facebookShare_option'])
30
+ : '';
31
+
32
+ $option2['sfsi_twitter_followme'] = (isset($option2['sfsi_twitter_followme']))
33
+ ? sanitize_text_field($option2['sfsi_twitter_followme'])
34
+ : '';
35
+ $option2['sfsi_twitter_followUserName'] = (isset($option2['sfsi_twitter_followUserName']))
36
+ ? sanitize_text_field($option2['sfsi_twitter_followUserName'])
37
+ : '';
38
+ $option2['sfsi_twitter_aboutPage'] = (isset($option2['sfsi_twitter_aboutPage']))
39
+ ? sanitize_text_field($option2['sfsi_twitter_aboutPage'])
40
+ : '';
41
+ $option2['sfsi_twitter_page'] = (isset($option2['sfsi_twitter_page']))
42
+ ? sanitize_text_field($option2['sfsi_twitter_page'])
43
+ : '';
44
+ $option2['sfsi_twitter_pageURL'] = (isset($option2['sfsi_twitter_pageURL']))
45
+ ? esc_url($option2['sfsi_twitter_pageURL'])
46
+ : '';
47
+ $option2['sfsi_twitter_aboutPageText'] = (isset($option2['sfsi_twitter_aboutPageText']))
48
+ ? sanitize_text_field($option2['sfsi_twitter_aboutPageText'])
49
+ : '';
50
+
51
+ $option2['sfsi_youtube_pageUrl'] = (isset($option2['sfsi_youtube_pageUrl']))
52
+ ? esc_url($option2['sfsi_youtube_pageUrl'])
53
+ : '';
54
+ $option2['sfsi_youtube_page'] = (isset($option2['sfsi_youtube_page']))
55
+ ? sanitize_text_field($option2['sfsi_youtube_page'])
56
+ : '';
57
+ $option2['sfsi_youtube_follow'] = (isset($option2['sfsi_youtube_follow']))
58
+ ? sanitize_text_field($option2['sfsi_youtube_follow'])
59
+ : '';
60
+
61
+ $option2['sfsi_pinterest_page'] = (isset($option2['sfsi_pinterest_page']))
62
+ ? sanitize_text_field($option2['sfsi_pinterest_page'])
63
+ : '';
64
+ $option2['sfsi_pinterest_pageUrl'] = (isset($option2['sfsi_pinterest_pageUrl']))
65
+ ? esc_url($option2['sfsi_pinterest_pageUrl'])
66
+ : '';
67
+ $option2['sfsi_pinterest_pingBlog'] = (isset($option2['sfsi_pinterest_pingBlog']))
68
+ ? sanitize_text_field($option2['sfsi_pinterest_pingBlog'])
69
+ : '';
70
+ $option2['sfsi_instagram_pageUrl'] = (isset($option2['sfsi_instagram_pageUrl']))
71
+ ? esc_url($option2['sfsi_instagram_pageUrl'])
72
+ : '';
73
+
74
+ $option2['sfsi_linkedin_page'] = (isset($option2['sfsi_linkedin_page']))
75
+ ? sanitize_text_field($option2['sfsi_linkedin_page'])
76
+ : '';
77
+ $option2['sfsi_linkedin_pageURL'] = (isset($option2['sfsi_linkedin_pageURL']))
78
+ ? esc_url($option2['sfsi_linkedin_pageURL'])
79
+ : '';
80
+ $option2['sfsi_linkedin_follow'] = (isset($option2['sfsi_linkedin_follow']))
81
+ ? sanitize_text_field($option2['sfsi_linkedin_follow'])
82
+ : '';
83
+ $option2['sfsi_linkedin_followCompany'] = (isset($option2['sfsi_linkedin_followCompany']))
84
+ ? intval($option2['sfsi_linkedin_followCompany'])
85
+ : '';
86
+ $option2['sfsi_linkedin_SharePage'] = (isset($option2['sfsi_linkedin_SharePage']))
87
+ ? sanitize_text_field($option2['sfsi_linkedin_SharePage'])
88
+ : '';
89
+
90
+ $option2['sfsi_linkedin_recommendBusines'] = (isset($option2['sfsi_linkedin_recommendBusines']))
91
+ ? sanitize_text_field($option2['sfsi_linkedin_recommendBusines'])
92
+ : '';
93
+ $option2['sfsi_linkedin_recommendCompany'] = (isset($option2['sfsi_linkedin_recommendCompany']))
94
+ ? sanitize_text_field($option2['sfsi_linkedin_recommendCompany'])
95
+ : '';
96
+ $option2['sfsi_linkedin_recommendProductId'] = (isset($option2['sfsi_linkedin_recommendProductId']))
97
+ ? intval($option2['sfsi_linkedin_recommendProductId'])
98
+ : '';
99
+ $option2['sfsi_telegram_message'] = (isset($option2['sfsi_telegram_message']))
100
+ ? sanitize_text_field($option2['sfsi_telegram_message'])
101
+ : '';
102
+ $option2['sfsi_telegram_username'] = (isset($option2['sfsi_telegram_username']))
103
+ ? sanitize_text_field($option2['sfsi_telegram_username'])
104
+ : '';
105
+ $option2['sfsi_telegram_page'] = (isset($option2['sfsi_telegram_page']))
106
+ ? sanitize_text_field($option2['sfsi_telegram_page'])
107
+ : '';
108
+ $option2['sfsi_telegram_pageURL'] = (isset($option2['sfsi_telegram_pageURL']))
109
+ ? esc_url($option2['sfsi_telegram_pageURL'])
110
+ : '';
111
+ $option2['sfsi_vk_page'] = (isset($option2['sfsi_vk_page']))
112
+ ? sanitize_text_field($option2['sfsi_vk_page'])
113
+ : '';
114
+ $option2['sfsi_vk_pageURL'] = (isset($option2['sfsi_vk_pageURL']))
115
+ ? esc_url($option2['sfsi_vk_pageURL'])
116
+ : '';
117
+ $option2['sfsi_weibo_page'] = (isset($option2['sfsi_weibo_page']))
118
+ ? sanitize_text_field($option2['sfsi_weibo_page'])
119
+ : '';
120
+ $option2['sfsi_weibo_pageURL'] = (isset($option2['sfsi_weibo_pageURL']))
121
+ ? esc_url($option2['sfsi_weibo_pageURL'])
122
+ : '';
123
+ $option2['sfsi_ok_page'] = (isset($option2['sfsi_ok_page']))
124
+ ? sanitize_text_field($option2['sfsi_ok_page'])
125
+ : '';
126
+ $option2['sfsi_ok_pageURL'] = (isset($option2['sfsi_ok_pageURL']))
127
+ ? esc_url($option2['sfsi_ok_pageURL'])
128
+ : '';
129
+
130
+ if ("name" == $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeusernameorid']) && !empty($option2['sfsi_youtubeusernameorid'])) {
131
+
132
+ if (isset($option2['sfsi_ytube_user']) && !empty($option2['sfsi_ytube_user'])) {
133
+ $option2['sfsi_ytube_user'] = sfsi_sanitize_field($option2['sfsi_ytube_user']);
134
+ } else {
135
+ $option2['sfsi_ytube_user'] = isset($option4['sfsi_youtube_user']) && !empty($option4['sfsi_youtube_user']) ? $option4['sfsi_youtube_user'] : "";
136
+ }
137
+ }
138
+
139
+ if ("id" == $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeusernameorid']) && !empty($option2['sfsi_youtubeusernameorid'])) {
140
+
141
+ if (isset($option2['sfsi_ytube_chnlid']) && !empty($option2['sfsi_ytube_chnlid'])) {
142
+ $option2['sfsi_ytube_chnlid'] = sfsi_sanitize_field($option2['sfsi_ytube_chnlid']);
143
+ } else {
144
+ $option2['sfsi_ytube_chnlid'] = isset($option4['sfsi_youtube_channelId']) && !empty($option4['sfsi_youtube_channelId']) ? $option4['sfsi_youtube_channelId'] : "";
145
+ }
146
+ }
147
+ ?>
148
+
149
+ <!-- Section 2 "What do you want the icons to do?" main div Start -->
150
+ <div class="tab2">
151
+ <!-- RSS ICON -->
152
+ <div class="row bdr_top rss_section">
153
+ <h2 class="sfsicls_rs_s">RSS</h2>
154
+ <div class="inr_cont">
155
+ <p>When clicked on, users can subscribe via RSS</p>
156
+ <div class="rss_url_row">
157
+ <h4>RSS URL:</h4>
158
+ <input name="sfsi_rss_url" id="sfsi_rss_url" class="add" type="url" value="<?php echo ($option2['sfsi_rss_url'] != '') ? $option2['sfsi_rss_url'] : ''; ?>" placeholder="E.g http://www.yoursite.com/feed" />
159
+ <span class="sfrsTxt">For most blogs it’s <strong>http://blogname.com/feed</strong></span>
160
+ </div>
161
+ </div>
162
+ </div>
163
+ <!-- END RSS ICON -->
164
+
165
+ <!-- EMAIL ICON -->
166
+ <?php
167
+ $feedId = sanitize_text_field(get_option('sfsi_feed_id', false));
168
+ $connectToFeed = "http://www.specificfeeds.com/?" . base64_encode("userprofile=wordpress&feed_id=" . $feedId);
169
+ ?>
170
+ <div class="row email_section">
171
+ <h2 class="sfsicls_email">Email</h2>
172
+
173
+ <div class="inr_cont">
174
+ <p>
175
+ It allows your visitors to subscribe to your site (on <a href="http://www.specificfeeds.com/widgets/emailSubscribeEncFeed/<?php echo $feedId; ?>/<?php echo base64_encode(8); ?>" target="new">this screen</a>) and receive new posts automatically by email.
176
+ </p>
177
+ <p>Please pick which icon type you want to use:</p>
178
+ <ul class="tab_2_email_sec">
179
+ <li>
180
+ <div class="sfsiicnsdvwrp">
181
+ <input name="sfsi_rss_icons" <?php echo ($option2['sfsi_rss_icons'] == 'email') ? 'checked="true"' : ''; ?> type="radio" value="email" class="styled" /><span class="email_icn"></span>
182
+ </div>
183
+ <label>Email icon</label>
184
+ </li>
185
+ <li>
186
+ <div class="sfsiicnsdvwrp">
187
+ <input name="sfsi_rss_icons" <?php echo ($option2['sfsi_rss_icons'] == 'subscribe') ? 'checked="true"' : ''; ?> type="radio" value="subscribe" class="styled" /><span class="subscribe_icn"></span>
188
+ </div>
189
+ <label>Follow icon<span class="sficndesc"> (increases sign-ups)</span></label>
190
+ </li>
191
+ <li>
192
+ <div class="sfsiicnsdvwrp">
193
+ <input name="sfsi_rss_icons" <?php echo ($option2['sfsi_rss_icons'] == 'sfsi') ? 'checked="true"' : ''; ?> type="radio" value="sfsi" class="styled" /><span class="sf_arow"></span>
194
+ </div>
195
+ <label>SpecificFeeds icon<span class="sfplsdesc"> (provider of the service)</span></label>
196
+ </li>
197
+ </ul>
198
+ <p>The service offers many (more) advantages: </p>
199
+ <div class='sfsi_service_row'>
200
+ <div class='sfsi_service_column'>
201
+ <ul>
202
+ <li><span>More people come back</span> to your site</li>
203
+ <li>See your<span> subscribers’ emails</span> & <span>interesting statistics</span></li>
204
+ <li>Automatically post on<span> Facebook & Twitter</span></li>
205
+ </ul>
206
+ </div>
207
+ <div class='sfsi_service_column'>
208
+ <ul>
209
+ <li><span>Get more traffic</span> by being listed in the SF directory</li>
210
+ <li><span>Get alerts</span> when people subscribe or unsubscribe</li>
211
+ <li><span>Tailor the sender name & subject line</span> of the emails </li>
212
+ </ul>
213
+ </div>
214
+ </div>
215
+
216
+ <form id="calimingOptimizationForm" method="get" action="https://www.specificfeeds.com/wpclaimfeeds/getFullAccess" target="_blank">
217
+ <div class="sfsi_inputbtn">
218
+ <input type="hidden" name="feed_id" value="<?php echo sanitize_text_field(get_option('sfsi_feed_id', false)); ?>" />
219
+ <input type="email" name="email" value="<?php echo bloginfo('admin_email'); ?>" />
220
+ </div>
221
+ <div class='sfsi_more_services_link'>
222
+ <a href="javascript:;" id="sfsi_getMeFullAccess" title="Give me access">
223
+ Click here to benefit from all advantages >
224
+ </a>
225
+ </div>
226
+ </form>
227
+
228
+ <p class='sfsi_email_last_paragraph'>
229
+ This will create your FREE account on SpecificFeeds, using the above email. <br>
230
+ All data will be treated highly confidentially, see the
231
+ <a href="https://www.specificfeeds.com/page/privacy-policy" target="new">
232
+ Privacy Policy.
233
+ </a>
234
+ </p> <div class="sfsi_new_prmium_follw">
235
+ <p><b>New:</b> In our Premium Plugin you can now give your email icon other functions too, e.g. <b>contact you </b>(email), <b>share by email,</b> and <b>link to a certain page </b>(e.g. your contact form or newsletter sign-up site). <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go premium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_functions_email_icon&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a>
236
+ </div>
237
+ </div>
238
+ </div>
239
+ <!-- END EMAIL ICON -->
240
+
241
+ <!-- FACEBOOK ICON -->
242
+ <div class="row facebook_section">
243
+ <h2 class="sfsicls_facebook">Facebook</h2>
244
+ <div class="inr_cont">
245
+ <p>The facebook icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do <a class="rit_link pop-up" href="javascript:;" data-id="fbex-s2">(see an example)</a>.</p>
246
+ <p>The facebook icon should allow users to...</p>
247
+
248
+ <p class="radio_section fb_url"><input name="sfsi_facebookPage_option" <?php echo ($option2['sfsi_facebookPage_option'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Visit my Facebook page at:</label><input class="add" name="sfsi_facebookPage_url" type="url" value="<?php echo ($option2['sfsi_facebookPage_url'] != '') ? $option2['sfsi_facebookPage_url'] : ''; ?>" placeholder="E.g https://www.facebook.com/your_page_name" /></p>
249
+
250
+ <p class="radio_section fb_url extra_sp"><input name="sfsi_facebookLike_option" <?php echo ($option2['sfsi_facebookLike_option'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Like my blog on Facebook (+1)</label></p>
251
+
252
+ <p class="radio_section fb_url extra_sp"><input name="sfsi_facebookShare_option" <?php echo ($option2['sfsi_facebookShare_option'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Share my blog with friends (on Facebook)</label></p>
253
+ <div class="sfsi_new_prmium_follw">
254
+ <p><b>New:</b> In our Premium Plugin you can also allow users to follow you on Facebook <b>directly from your site</b> (without leaving your page, increasing followers). <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go premium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=direct_follow_facebook&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
255
+ </div>
256
+ </div>
257
+ </div>
258
+ <!-- END FACEBOOK ICON -->
259
+
260
+ <!-- TWITTER ICON -->
261
+ <div class="row twitter_section">
262
+ <h2 class="sfsicls_twt">Twitter</h2>
263
+ <div class="inr_cont twt_tab_2">
264
+ <p>The Twitter icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do <a class="rit_link pop-up" href="javascript:;" data-id="twex-s2">(see an example)</a>.</p>
265
+ <p>The Twitter icon should allow users to...</p>
266
+
267
+ <p class="radio_section fb_url"><input name="sfsi_twitter_page" <?php echo ($option2['sfsi_twitter_page'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Visit me on Twitter:</label><input name="sfsi_twitter_pageURL" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_twitter_pageURL'] != '') ? $option2['sfsi_twitter_pageURL'] : ''; ?>" class="add" /></p>
268
+
269
+ <div class="radio_section fb_url twt_fld"><input name="sfsi_twitter_followme" <?php echo ($option2['sfsi_twitter_followme'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Follow me on Twitter:</label><input name="sfsi_twitter_followUserName" type="text" value="<?php echo ($option2['sfsi_twitter_followUserName'] != '') ? $option2['sfsi_twitter_followUserName'] : ''; ?>" placeholder="my_twitter_name" class="add" /></div>
270
+ <?php
271
+ $twitter_text = isset($option2['sfsi_twitter_aboutPageText']) && !empty($option2['sfsi_twitter_aboutPageText']) ? $option2['sfsi_twitter_aboutPageText'] : '';
272
+ ?>
273
+ <div class="radio_section fb_url twt_fld_2"><input name="sfsi_twitter_aboutPage" <?php echo ($option2['sfsi_twitter_aboutPage'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Tweet about my page:</label><textarea name="sfsi_twitter_aboutPageText" id="sfsi_twitter_aboutPageText" class="add_txt" placeholder="Hey, check out this cool site I found: www.yourname.com #Topic via@my_twitter_name"><?php echo $twitter_text; ?></textarea><?php /*echo ($option2['sfsi_twitter_aboutPageText']!='') ? stripslashes($option2['sfsi_twitter_aboutPageText']) : '' ;*/?></div>
274
+ <div class="sfsi_new_prmium_follw">
275
+ <p><b>New: </b>Tweeting becomes really fun in the Premium Plugin – you can insert tags to automatically pull the title of the story & link to the story, attach pictures & snippets to the Tweets (‘Twitter cards’) and user Url-shorteners, all leading to more Tweets and traffic for your site! <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go premium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=better_tweets&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
276
+ </div>
277
+ </div>
278
+ </div>
279
+ <!-- END TWITTER ICON -->
280
+
281
+ <!-- YOUTUBE ICON -->
282
+ <div class="row youtube_section">
283
+ <h2 class="sfsicls_utube">Youtube</h2>
284
+ <div class="inr_cont utube_inn">
285
+ <p>The Youtube icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do <a class="rit_link pop-up" href="javascript:;" data-id="ytex-s2">(see an example)</a>.</p>
286
+
287
+ <p>The youtube icon should allow users to... </p>
288
+
289
+ <p class="radio_section fb_url"><input name="sfsi_youtube_page" <?php echo ($option2['sfsi_youtube_page'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Visit my Youtube page at:</label><input name="sfsi_youtube_pageUrl" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_youtube_pageUrl'] != '') ? $option2['sfsi_youtube_pageUrl'] : ''; ?>" class="add" /></p>
290
+
291
+ <p class="radio_section fb_url"><input name="sfsi_youtube_follow" <?php echo ($option2['sfsi_youtube_follow'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Subscribe to me on Youtube <span>(allows people to subscribe to you directly, without leaving your blog)</span></label></p>
292
+
293
+ <!--Adding Code for Channel Id and Channel Name-->
294
+ <div class="cstmutbewpr">
295
+ <ul class="enough_waffling">
296
+ <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>
297
+ <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>
298
+ </ul>
299
+ <div class="cstmutbtxtwpr">
300
+ <?php
301
+ $sfsi_youtubeusernameorid = $option2['sfsi_youtubeusernameorid'];
302
+ ?>
303
+ <div class="cstmutbchnlnmewpr" <?php if ($sfsi_youtubeusernameorid != 'id') {
304
+ echo 'style="display: block;"';
305
+ } ?>>
306
+ <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>
307
+ <div class="utbe_instruction">
308
+ 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".
309
+ </div>
310
+ </div>
311
+ <div class="cstmutbchnlidwpr" <?php if ($sfsi_youtubeusernameorid == 'id') {
312
+ echo 'style="display: block;"';
313
+ } ?>>
314
+ <p class="extra_pp"><label>ChannelId:</label><input name="sfsi_ytube_chnlid" type="url" value="<?php echo (isset($option2['sfsi_ytube_chnlid']) && $option2['sfsi_ytube_chnlid'] != '') ? $option2['sfsi_ytube_chnlid'] : ''; ?>" placeholder="youtube_channel_id" class="add" /></p>
315
+ <div class="utbe_instruction">
316
+ 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".
317
+ </div>
318
+ </div>
319
+ </div>
320
+ </div>
321
+
322
+ </div>
323
+ </div>
324
+ <!-- END YOUTUBE ICON -->
325
+
326
+ <!-- PINTEREST ICON -->
327
+ <div class="row pinterest_section">
328
+ <h2 class="sfsicls_pinterest">Pinterest</h2>
329
+ <div class="inr_cont">
330
+ <p>The Pinterest icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do <a class="rit_link pop-up" href="javascript:;" data-id="pinex-s2">(see an example)</a>.</p>
331
+ <p>The Pinterest icon should allow users to... </p>
332
+ <p class="radio_section fb_url"><input name="sfsi_pinterest_page" <?php echo ($option2['sfsi_pinterest_page'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Visit my Pinterest page at:</label><input name="sfsi_pinterest_pageUrl" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_pinterest_pageUrl'] != '') ? $option2['sfsi_pinterest_pageUrl'] : ''; ?>" class="add" /></p>
333
+ <div class="pint_url">
334
+ <p class="radio_section fb_url"><input name="sfsi_pinterest_pingBlog" <?php echo ($option2['sfsi_pinterest_pingBlog'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Pin my blog on Pinterest (+1)</label></p>
335
+ </div>
336
+ </div>
337
+ </div>
338
+ <!-- END PINTEREST ICON -->
339
+
340
+ <!-- INSTAGRAM ICON -->
341
+ <div class="row instagram_section">
342
+ <h2 class="sfsicls_instagram">Instagram</h2>
343
+ <div class="inr_cont">
344
+ <p>When clicked on, users will get directed to your Instagram page.</p>
345
+ <p class="radio_section fb_url cus_link instagram_space"><label>URL:</label><input name="sfsi_instagram_pageUrl" type="text" value="<?php echo (isset($option2['sfsi_instagram_pageUrl']) && $option2['sfsi_instagram_pageUrl'] != '') ? $option2['sfsi_instagram_pageUrl'] : ''; ?>" placeholder="http://" class="add" /></p>
346
+ </div>
347
+ </div>
348
+ <!-- END INSTAGRAM ICON -->
349
+
350
+ <!-- LINKEDIN ICON -->
351
+ <div class="row linkedin_section">
352
+ <h2 class="sfsicls_linkdin">LinkedIn</h2>
353
+ <div class="inr_cont linked_tab_2 link_in">
354
+ <p>The LinkedIn icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do <a class="rit_link pop-up" href="javascript:;" data-id="linkex-s2">(see an example)</a>.</p>
355
+ <p>You find your ID in the link of your profile page, e.g. https://www.linkedin.com/profile/view?id=<b>8539887</b>&trk=nav_responsive_tab_profile_pic</p>
356
+ <p style="margin-bottom:20px;">The LinkedIn icon should allow users to... </p>
357
+ <div class="radio_section fb_url link_1"><input name="sfsi_linkedin_page" <?php echo ($option2['sfsi_linkedin_page'] == 'yes') ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" /><label>Visit my Linkedin page at:</label><input name="sfsi_linkedin_pageURL" type="text" placeholder="http://" value="<?php echo ($option2['sfsi_linkedin_pageURL'] != '') ? $option2['sfsi_linkedin_pageURL'] : ''; ?>" class="add" /></div>
358
+ <div class="radio_section fb_url link_2"><input name="sfsi_linkedin_follow" <?php echo ($option2['sfsi_linkedin_follow'] == 'yes') ?