Social Media Share Buttons & Social Sharing Icons - Version 2.3.9

Version Description

  • Corrected the jQuery admin area problem
  • Solved the jQuery error for shortcode
  • Solved feed claiming
  • Option name in Q3 changed
Download this release

Release Info

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

Code changes from version 2.3.8 to 2.3.9

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
  }
js/custom-admin.js CHANGED
@@ -1,3304 +1,3341 @@
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
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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='feed_id']").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=="" || undefined==feedid){
2604
+ var nonce = SFSI(this).attr('data-nonce-fetch-feed-id');
2605
+ e = {
2606
+ action: "sfsi_get_feed_id",
2607
+ nonce: nonce,
2608
+ };
2609
+ SFSI.ajax({
2610
+ url: sfsi_icon_ajax_object.ajax_url,
2611
+ type: "post",
2612
+ data: e,
2613
+ dataType: "json",
2614
+ async: !0,
2615
+ success: function (s) {
2616
+ if (s.res == "wrong_nonce") {
2617
+ alert("Error: Unauthorised Request, Try again after refreshing page.");
2618
+ } else {
2619
+ if("success" == s.res){
2620
+ var feedid = s.feed_id;
2621
+ if(feedid==""){
2622
+ alert("Error: Claiming didn't work. Please try again later.")
2623
+ }else{
2624
+ jQuery('#calimingOptimizationForm input[name="feed_id"]').val(feedid);
2625
+ console.log("feedid",feedid,SFSI("#calimingOptimizationForm input[name='feed_id']"),SFSI('#calimingOptimizationForm input[name="feedid"]').val());
2626
+ SFSI('#calimingOptimizationForm').submit();
2627
+ }
2628
+ }else{
2629
+ if("failed"==s.res){
2630
+ alert("Error: "+s.message+".");
2631
+
2632
+ }else{
2633
+ alert("Error: Please try again.");
2634
+ }
2635
+ }
2636
+ }
2637
+ }
2638
+ });
2639
+ }else{
2640
+ SFSI(this).parents("form").submit();
2641
+ }
2642
+ } else {
2643
+ alert("Error: Please provide your email address.");
2644
+ }
2645
+ });
2646
+
2647
+ SFSI('form#calimingOptimizationForm').on('keypress', function (e) {
2648
+ var keyCode = e.keyCode || e.which;
2649
+ if (keyCode === 13) {
2650
+ e.preventDefault();
2651
+ return false;
2652
+ }
2653
+ });
2654
+
2655
+ /*SFSI(".checkbox").live("click", function()
2656
+ {
2657
+ var s = SFSI(this).parent().find("input:checkbox:first");
2658
+ "float_on_page" == s.attr("name") && "yes" == s.val() && (
2659
+ SFSI('input[name="sfsi_icons_stick"][value="no"]').attr("checked", !0), SFSI('input[name="sfsi_icons_stick"][value="yes"]').removeAttr("checked"),
2660
+ SFSI('input[name="sfsi_icons_stick"][value="no"]').parent().find("span").attr("style", "background-position:0px -41px;"),
2661
+ SFSI('input[name="sfsi_icons_stick"][value="yes"]').parent().find("span").attr("style", "background-position:0px -0px;"));
2662
+ });
2663
+ SFSI(".radio").live("click", function()
2664
+ {
2665
+ var s = SFSI(this).parent().find("input:radio:first");
2666
+ var a = SFSI(".cstmfltonpgstck");
2667
+ ("sfsi_icons_stick" == s.attr("name") && "yes" == s.val()) && (
2668
+ SFSI('input[name="float_on_page"][value="no"]').prop("checked", !0), SFSI('input[name="float_on_page"][value="yes"]').prop("checked", !1),
2669
+ SFSI('input[name="float_on_page"][value="no"]').parent().find("span.checkbox").attr("style", "background-position:0px -41px;"),
2670
+ SFSI('input[name="float_on_page"][value="yes"]').parent().find("span.checkbox").attr("style", "background-position:0px -0px;"),
2671
+ jQuery(a).children(".checkbox").css("background-position", "0px 0px" ), toggleflotpage(a));
2672
+ });*/
2673
+ window.sfsi_initialization_checkbox_count = 0;
2674
+ window.sfsi_initialization_checkbox = setInterval(function () {
2675
+ // console.log(jQuery('.radio_section.tb_4_ck>span.checkbox').length,jQuery('.radio_section.tb_4_ck>input.styled').length);
2676
+ if (jQuery('.radio_section.tb_4_ck>span.checkbox').length < jQuery('.radio_section.tb_4_ck>input.styled').length) {
2677
+ window.sfsi_initialization_checkbox_count++;
2678
+ // console.log('not initialized',window.sfsi_initialization_checkbox_count);
2679
+ if (window.sfsi_initialization_checkbox_count > 12) {
2680
+ // alert('Some script from diffrent plugin is interfearing with "Ultimate Social Icons" js files and checkbox couldn\'t be initialized. ');
2681
+ // window.clearInterval(window.sfsi_initialization_checkbox);
2682
+ }
2683
+ } else {
2684
+ // console.log('all initialized',window.sfsi_initialization_checkbox_count);
2685
+ window.clearInterval(window.sfsi_initialization_checkbox);
2686
+ }
2687
+ }, 1000);
2688
+ sfsi_responsive_icon_intraction_handler();
2689
+
2690
+ });
2691
+
2692
+ //for utube channel name and id
2693
+ function showhideutube(ref) {
2694
+ var chnlslctn = SFSI(ref).children("input").val();
2695
+ if (chnlslctn == "name") {
2696
+ SFSI(ref).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlnmewpr").slideDown();
2697
+ SFSI(ref).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlidwpr").slideUp();
2698
+ } else {
2699
+ SFSI(ref).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlidwpr").slideDown();
2700
+ SFSI(ref).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlnmewpr").slideUp();
2701
+ }
2702
+ }
2703
+
2704
+ function checkforinfoslction(ref) {
2705
+ var pos = jQuery(ref).children(".checkbox").css("background-position");
2706
+
2707
+ var rightInfoClass = jQuery(ref).next().attr('class');
2708
+
2709
+ var rightInfoPElem = jQuery(ref).next("." + rightInfoClass).children("p").first();
2710
+
2711
+ var elemName = 'label';
2712
+
2713
+ if (pos == "0px 0px") {
2714
+ rightInfoPElem.children(elemName).hide();
2715
+ } else {
2716
+ rightInfoPElem.children(elemName).show();
2717
+ }
2718
+ }
2719
+
2720
+ function checkforinfoslction_checkbox(ref) {
2721
+
2722
+ var pos = jQuery(ref).children(".checkbox").css("background-position");
2723
+
2724
+ var elem = jQuery(ref).parent().children('.sfsi_right_info').find('.kckslctn');
2725
+
2726
+ if (pos == "0px 0px") {
2727
+ elem.hide();
2728
+ } else {
2729
+ elem.show();
2730
+ }
2731
+ }
2732
+
2733
+ function sfsi_toggleflotpage_que3(ref) {
2734
+ var pos = jQuery(ref).children(".checkbox").css("background-position");
2735
+ if (pos == "0px 0px") {
2736
+ jQuery(ref).next(".sfsi_right_info").hide();
2737
+
2738
+ } else {
2739
+ jQuery(ref).next(".sfsi_right_info").show();
2740
+ }
2741
+ }
2742
+
2743
+ var initTop = new Array();
2744
+
2745
+ SFSI('.sfsi_navigate_to_question7').on("click", function () {
2746
+
2747
+ var elem = SFSI('#ui-id-6');
2748
+
2749
+ if (elem.hasClass('accordion-content-active')) {
2750
+
2751
+ // Cloase tab of Question 3
2752
+ elem.find('.sfsiColbtn').trigger('click');
2753
+
2754
+ // Open tab of Question 7
2755
+ if (!SFSI('#ui-id-14').hasClass('accordion-content-active')) {
2756
+ SFSI('#ui-id-13').trigger('click');
2757
+ }
2758
+
2759
+ var pos = SFSI("#ui-id-13").offset();
2760
+ var scrollToPos = pos.top - SFSI(window).height() * 0.99 + 30;
2761
+ SFSI('html,body').animate({
2762
+ scrollTop: scrollToPos
2763
+ }, 500);
2764
+ }
2765
+ });
2766
+
2767
+ SFSI("body").on("click", ".sfsi_tokenGenerateButton a", function () {
2768
+ var clienId = SFSI("input[name='sfsi_instagram_clientid']").val();
2769
+ var redirectUrl = SFSI("input[name='sfsi_instagram_appurl']").val();
2770
+
2771
+ var scope = "likes+comments+basic+public_content+follower_list+relationships";
2772
+ var instaUrl = "https://www.instagram.com/oauth/authorize/?client_id=<id>&redirect_uri=<url>&response_type=token&scope=" + scope;
2773
+
2774
+ if (clienId !== '' && redirectUrl !== '') {
2775
+ instaUrl = instaUrl.replace('<id>', clienId);
2776
+ instaUrl = instaUrl.replace('<url>', redirectUrl);
2777
+
2778
+ window.open(instaUrl, '_blank');
2779
+ } else {
2780
+ alert("Please enter client id and redirect url first");
2781
+ }
2782
+
2783
+ });
2784
+ SFSI(document).ready(function () {
2785
+ SFSI('#sfsi_jivo_offline_chat .tab-link').click(function () {
2786
+ var cur = SFSI(this);
2787
+ if (!cur.hasClass('active')) {
2788
+ var target = cur.find('a').attr('href');
2789
+ cur.parent().children().removeClass('active');
2790
+ cur.addClass('active');
2791
+ SFSI('#sfsi_jivo_offline_chat .tabs').children().hide();
2792
+ SFSI(target).show();
2793
+ }
2794
+ });
2795
+ SFSI('#sfsi_jivo_offline_chat #sfsi_sales form').submit(function (event) {
2796
+ event & event.preventDefault();
2797
+ // console.log(event);
2798
+ var target = SFSI(this).parents('.tab-content');
2799
+ var message = SFSI(this).find('textarea[name="question"]').val();
2800
+ var email = SFSI(this).find('input[name="email"]').val();
2801
+ 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,}))$/;
2802
+ var nonce = SFSI(this).find('input[name="nonce"]').val();
2803
+
2804
+ if ("" === email || false === re.test(String(email).toLowerCase())) {
2805
+ // console.log(SFSI(this).find('input[name="email"]'));
2806
+ SFSI(this).find('input[name="email"]').css('background-color', 'red');
2807
+ SFSI(this).find('input[name="email"]').on('keyup', function () {
2808
+ 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,}))$/;
2809
+ var email = SFSI(this).val();
2810
+ // console.log(email,re.test(String(email).toLowerCase()) );
2811
+ if ("" !== email && true === re.test(String(email).toLowerCase())) {
2812
+ SFSI(this).css('background-color', '#fff');
2813
+ }
2814
+ })
2815
+ return false;
2816
+
2817
+ }
2818
+ SFSI.ajax({
2819
+ url: sfsi_icon_ajax_object.ajax_url,
2820
+ type: "post",
2821
+ data: {
2822
+ action: "sfsiOfflineChatMessage",
2823
+ message: message,
2824
+ email: email,
2825
+ 'nonce': nonce
2826
+ }
2827
+ }).done(function () {
2828
+ target.find('.before_message_sent').hide();
2829
+ target.find('.after_message_sent').show();
2830
+ });
2831
+ })
2832
+ });
2833
+
2834
+ function sfsi_close_offline_chat(e) {
2835
+ e && e.preventDefault();
2836
+
2837
+ SFSI('#sfsi_jivo_offline_chat').hide();
2838
+ SFSI('#sfsi_dummy_chat_icon').show();
2839
+ }
2840
+
2841
+ function sfsi_open_quick_checkout(e) {
2842
+ e && e.preventDefault();
2843
+ // console.log(jQuery('.sfsi_quick-pay-box'));
2844
+ jQuery('.sfsi_quick-pay-box').show();
2845
+ }
2846
+
2847
+ function sfsi_close_quickpay(e) {
2848
+ e && e.preventDefault();
2849
+ jQuery('.sfsi_quickpay-overlay').hide();
2850
+ }
2851
+
2852
+ function sfsi_quickpay_container_click(event) {
2853
+ if (jQuery(event.target).hasClass('sellcodes-quick-purchase')) {
2854
+ jQuery(jQuery(event.target).find('p.sc-button img')[0]).click();
2855
+ }
2856
+ }
2857
+
2858
+
2859
+
2860
+ // <------------------------* Responsive icon *----------------------->
2861
+
2862
+ function sfsi_responsive_icon_intraction_handler() {
2863
+ window.sfsi_fittext_shouldDisplay = true;
2864
+ SFSI('select[name="sfsi_responsive_icons_settings_edge_type"]').on('change', function () {
2865
+ $target_div = (SFSI(this).parent());
2866
+ if (SFSI(this).val() === "Round") {
2867
+ console.log('Round', 'Round', SFSI(this).val());
2868
+
2869
+ $target_div.parent().children().css('display', 'inline-block');
2870
+ $target_div.parent().next().css("display","inline-block");
2871
+ var radius = jQuery('select[name="sfsi_responsive_icons_settings_edge_radius"]').val() + 'px'
2872
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container,.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').css('border-radius', radius);
2873
+
2874
+ } else {
2875
+ console.log('sharp', 'sharp', SFSI(this).val(), $target_div.parent().children(), $target_div.parent().children().hide());
2876
+
2877
+ $target_div.parent().children().hide();
2878
+ $target_div.show();
2879
+ $target_div.parent().next().hide();
2880
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container,.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').css('border-radius', 'unset');
2881
+
2882
+ }
2883
+ });
2884
+ SFSI('select[name="sfsi_responsive_icons_settings_icon_width_type"]').on('change', function () {
2885
+ $target_div = (SFSI(this).parent());
2886
+ if (SFSI(this).val() === "Fixed icon width") {
2887
+ $target_div.parent().children().css('display', 'inline-block');
2888
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').css('width', 'auto').css('display', 'flex');
2889
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container a').css('flex-basis', 'unset');
2890
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').css('width', jQuery('input[name="sfsi_responsive_icons_sttings_icon_width_size"]').val());
2891
+
2892
+ 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');
2893
+ 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');
2894
+ window.sfsi_fittext_shouldDisplay = true;
2895
+ jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
2896
+ if (jQuery(a_container).css('display') !== "none") {
2897
+ sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2898
+ }
2899
+ })
2900
+ } else {
2901
+ $target_div.parent().children().hide();
2902
+ $target_div.show();
2903
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').css('width', '100%').css('display', 'flex');
2904
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container a').css('flex-basis', '100%');
2905
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').css('width', '100%');
2906
+
2907
+ 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');
2908
+ 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');
2909
+ window.sfsi_fittext_shouldDisplay = true;
2910
+ jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
2911
+ if (jQuery(a_container).css('display') !== "none") {
2912
+ sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2913
+ }
2914
+ })
2915
+ }
2916
+ 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')
2917
+ 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'))
2918
+ sfsi_resize_icons_container();
2919
+
2920
+ })
2921
+ jQuery(document).on('keyup', 'input[name="sfsi_responsive_icons_sttings_icon_width_size"]', function () {
2922
+ if (SFSI('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val() === "Fixed icon width") {
2923
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').css('width', jQuery(this).val() + 'px');
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
+ }
2931
+ sfsi_resize_icons_container();
2932
+ });
2933
+ jQuery(document).on('change', 'input[name="sfsi_responsive_icons_sttings_icon_width_size"]', function () {
2934
+ if (SFSI('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val() === "Fixed icon width") {
2935
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').css('width', jQuery(this).val() + 'px');
2936
+ }
2937
+ });
2938
+ jQuery(document).on('keyup', 'input[name="sfsi_responsive_icons_settings_margin"]', function () {
2939
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container a,.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').css('margin-right', jQuery(this).val() + 'px');
2940
+ });
2941
+ jQuery(document).on('change', 'input[name="sfsi_responsive_icons_settings_margin"]', function () {
2942
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container a,.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').css('margin-right', jQuery(this).val() + 'px');
2943
+ // 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');
2944
+
2945
+ });
2946
+ jQuery(document).on('change', 'select[name="sfsi_responsive_icons_settings_text_align"]', function () {
2947
+ if (jQuery(this).val() === "Centered") {
2948
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container a').css('text-align', 'center');
2949
+ } else {
2950
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container a').css('text-align', 'left');
2951
+ }
2952
+ });
2953
+ jQuery('.sfsi_responsive_default_icon_container input.sfsi_responsive_input').on('keyup', function () {
2954
+ jQuery(this).parent().find('.sfsi_responsive_icon_item_container').find('span').text(jQuery(this).val());
2955
+ var iconName = jQuery(this).attr('name');
2956
+ var icon = iconName.replace('sfsi_responsive_', '').replace('_input', '');
2957
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_' + (icon.toLowerCase()) + '_container span').text(jQuery(this).val());
2958
+ window.sfsi_fittext_shouldDisplay = true;
2959
+ jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
2960
+ if (jQuery(a_container).css('display') !== "none") {
2961
+ sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2962
+ }
2963
+ })
2964
+ sfsi_resize_icons_container();
2965
+ })
2966
+ jQuery('.sfsi_responsive_custom_icon_container input.sfsi_responsive_input').on('keyup', function () {
2967
+ jQuery(this).parent().find('.sfsi_responsive_icon_item_container').find('span').text(jQuery(this).val());
2968
+ var iconName = jQuery(this).attr('name');
2969
+ var icon = iconName.replace('sfsi_responsive_custom_', '').replace('_input', '');
2970
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_' + icon + '_container span').text(jQuery(this).val())
2971
+ window.sfsi_fittext_shouldDisplay = true;
2972
+ jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
2973
+ if (jQuery(a_container).css('display') !== "none") {
2974
+ sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
2975
+ }
2976
+ })
2977
+ sfsi_resize_icons_container();
2978
+
2979
+ })
2980
+
2981
+ jQuery('.sfsi_responsive_default_url_toggler').click(function (event) {
2982
+
2983
+ event.preventDefault();
2984
+ sfsi_responsive_open_url(event);
2985
+ });
2986
+ jQuery('.sfsi_responsive_default_url_toggler').click(function (event) {
2987
+ event.preventDefault();
2988
+ sfsi_responsive_open_url(event);
2989
+ })
2990
+ jQuery('.sfsi_responsive_custom_url_hide, .sfsi_responsive_default_url_hide').click(function (event) {
2991
+ event.preventDefault();
2992
+ /* console.log(event,jQuery(event.target)); */
2993
+ jQuery(event.target).parent().parent().find('.sfsi_responsive_custom_url_hide').hide();
2994
+ jQuery(event.target).parent().parent().find('.sfsi_responsive_url_input').hide();
2995
+ jQuery(event.target).parent().parent().find('.sfsi_responsive_default_url_hide').hide();
2996
+ jQuery(event.target).parent().parent().find('.sfsi_responsive_default_url_toggler').show();
2997
+ });
2998
+ jQuery('select[name="sfsi_responsive_icons_settings_icon_size"]').change(function (event) {
2999
+ 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');
3000
+ 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')
3001
+ })
3002
+ jQuery(document).on('change', 'select[name="sfsi_responsive_icons_settings_edge_radius"]', function (event) {
3003
+ var radius = jQuery(this).val() + 'px'
3004
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container,.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').css('border-radius', radius);
3005
+
3006
+ });
3007
+ jQuery(document).on('change', 'select[name="sfsi_responsive_icons_settings_style"]', function (event) {
3008
+ if ('Flat' === jQuery(this).val()) {
3009
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').removeClass('sfsi_responsive_icon_gradient');
3010
+ } else {
3011
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').addClass('sfsi_responsive_icon_gradient');
3012
+ }
3013
+ });
3014
+ jQuery(document).on('mouseenter', '.sfsi_responsive_icon_preview .sfsi_icons_container a', function () {
3015
+ jQuery(this).css('opacity', 0.8);
3016
+ })
3017
+ jQuery(document).on('mouseleave', '.sfsi_responsive_icon_preview .sfsi_icons_container a', function () {
3018
+ jQuery(this).css('opacity', 1);
3019
+ })
3020
+ window.sfsi_fittext_shouldDisplay = true;
3021
+ jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
3022
+ if (jQuery(a_container).css('display') !== "none") {
3023
+ sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
3024
+ }
3025
+ })
3026
+ sfsi_resize_icons_container();
3027
+ jQuery('.ui-accordion-header.ui-state-default.ui-accordion-icons').click(function (data) {
3028
+ window.sfsi_fittext_shouldDisplay = true;
3029
+ jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
3030
+ if (jQuery(a_container).css('display') !== "none") {
3031
+ sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
3032
+ }
3033
+ })
3034
+ sfsi_resize_icons_container();
3035
+ });
3036
+ jQuery('select[name="sfsi_responsive_icons_settings_text_align"]').change(function (event) {
3037
+ var data = jQuery(event.target).val();
3038
+ if (data == "Centered") {
3039
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').removeClass('sfsi_left-align_icon').addClass('sfsi_centered_icon');
3040
+ } else {
3041
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container').removeClass('sfsi_centered_icon').addClass('sfsi_left-align_icon');
3042
+ }
3043
+ });
3044
+ jQuery('a.sfsi_responsive_custom_delete_btn').click(function (event) {
3045
+ event.preventDefault();
3046
+ var icon_num = jQuery(this).attr('data-id');
3047
+ //reset the current block;
3048
+ // var last_block = jQuery('.sfsi_responsive_custom_icon_4_container').clone();
3049
+ var cur_block = jQuery('.sfsi_responsive_custom_icon_' + icon_num + '_container');
3050
+ cur_block.find('.sfsi_responsive_custom_delete_btn').hide();
3051
+ cur_block.find('input[name="sfsi_responsive_custom_' + icon_num + '_added"]').val('no');
3052
+ cur_block.find('.sfsi_responsive_custom_' + icon_num + '_added').attr('value', 'no');
3053
+ cur_block.find('.radio_section.tb_4_ck .checkbox').click();
3054
+ cur_block.hide();
3055
+
3056
+
3057
+ if (icon_num > 0) {
3058
+ var prev_block = jQuery('.sfsi_responsive_custom_icon_' + (icon_num - 1) + '_container');
3059
+ prev_block.find('.sfsi_responsive_custom_delete_btn').show();
3060
+ }
3061
+ // jQuery('.sfsi_responsive_custom_icon_container').each(function(index,custom_icon){
3062
+ // var target= jQuery(custom_icon);
3063
+ // target.find('.sfsi_responsive_custom_delete_btn');
3064
+ // var custom_id = target.find('.sfsi_responsive_custom_delete_btn').attr('data-id');
3065
+ // if(custom_id>icon_num){
3066
+ // target.removeClass('sfsi_responsive_custom_icon_'+custom_id+'_container').addClass('sfsi_responsive_custom_icon_'+(custom_id-1)+'_container');
3067
+ // target.find('input[name="sfsi_responsive_custom_'+custom_id+'_added"]').attr('name',"sfsi_responsive_custom_"+(custom_id-1)+"_added");
3068
+ // 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));
3069
+ // target.find('.sfsi_responsive_icon_item_container').removeClass('sfsi_responsive_icon_custom_'+custom_id+'_container').addClass('sfsi_responsive_icon_custom_'+(custom_id-1)+'_container');
3070
+ // target.find('.sfsi_responsive_input').attr('name','sfsi_responsive_custom_'+(custom_id-1)+'_input');
3071
+ // target.find('.sfsi_responsive_url_input').attr('name','sfsi_responsive_custom_'+(custom_id-1)+'_url_input');
3072
+ // target.find('.sfsi_bg-color-picker').attr('name','sfsi_responsive_icon_'+(custom_id-1)+'_bg_color');
3073
+ // 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');
3074
+ // target.find('input[type="sfsi_responsive_icons_custom_'+custom_id+'_icon"]').attr('name','input[type="sfsi_responsive_icons_custom_'+(custom_id-1)+'_icon"]');
3075
+ // target.find('.sfsi_responsive_custom_delete_btn').attr('data-id',''+(custom_id-1));
3076
+ // }
3077
+ // });
3078
+ // // sfsi_backend_section_beforeafter_set_fixed_width();
3079
+ // // jQuery(window).on('resize',sfsi_backend_section_beforeafter_set_fixed_width);
3080
+ // var new_block=jQuery('.sfsi_responsive_custom_icon_container').clone();
3081
+ // jQuery('.sfsi_responsive_custom_icon_container').remove();
3082
+ // jQuery('.sfsi_responsive_default_icon_container').parent().append(last_block).append();
3083
+ // jQuery('.sfsi_responsive_default_icon_container').parent().append(new_block);
3084
+ // return false;
3085
+ })
3086
+ }
3087
+
3088
+ function sfsi_responsive_icon_counter_tgl(hide, show, ref = null) {
3089
+ if (null !== hide && '' !== hide) {
3090
+ jQuery('.' + hide).hide();
3091
+ }
3092
+ if (null !== show && '' !== show) {
3093
+ jQuery('.' + show).show();
3094
+ }
3095
+ }
3096
+
3097
+ function sfsi_responsive_toggle_count() {
3098
+ var data = jQuery('input[name="sfsi_share_count"]:checked').val();
3099
+ var data2 = jQuery('input[name="sfsi_display_counts"]:checked').val();
3100
+ /* console.log('toggleer ',data,data2); */
3101
+ if (data2 == "yes" && 'yes' == data) {
3102
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').css('display', 'inline-block');
3103
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').removeClass('sfsi_responsive_without_counter_icons').addClass('sfsi_responsive_with_counter_icons');
3104
+ sfsi_resize_icons_container();
3105
+ } else {
3106
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').css('display', 'none');
3107
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').removeClass('sfsi_responsive_with_counter_icons').addClass('sfsi_responsive_without_counter_icons');
3108
+ sfsi_resize_icons_container();
3109
+ }
3110
+ }
3111
+
3112
+ function sfsi_responsive_open_url(event) {
3113
+ jQuery(event.target).parent().find('.sfsi_responsive_custom_url_hide').show();
3114
+ jQuery(event.target).parent().find('.sfsi_responsive_default_url_hide').show();
3115
+ jQuery(event.target).parent().find('.sfsi_responsive_url_input').show();
3116
+ jQuery(event.target).hide();
3117
+ }
3118
+
3119
+ function sfsi_responsive_icon_hide_responsive_options() {
3120
+ jQuery('.sfsi_PostsSettings_section').show();
3121
+ jQuery('.sfsi_choose_post_types_section').show();
3122
+ jQuery('.sfsi_not_responsive').show();
3123
+ // jQuery('.sfsi_icn_listing8.sfsi_closerli').hide();
3124
+ }
3125
+
3126
+ function sfsi_responsive_icon_show_responsive_options() {
3127
+ jQuery('.sfsi_PostsSettings_section').hide();
3128
+ // jQuery('.sfsi_PostsSettings_section').show();
3129
+ jQuery('.sfsi_choose_post_types_section').hide();
3130
+ jQuery('.sfsi_not_responsive').hide();
3131
+ window.sfsi_fittext_shouldDisplay = true;
3132
+ jQuery('.sfsi_responsive_icon_preview a').each(function (index, a_container) {
3133
+ if (jQuery(a_container).css('display') !== "none") {
3134
+ sfsi_fitText(jQuery(a_container).find('.sfsi_responsive_icon_item_container'));
3135
+ }
3136
+ })
3137
+ sfsi_resize_icons_container();
3138
+ }
3139
+
3140
+ function sfsi_scroll_to_div(option_id, scroll_selector) {
3141
+ jQuery('#' + option_id + '.ui-accordion-header[aria-selected="false"]').click() //opened the option
3142
+ //scroll to it.
3143
+ if (scroll_selector && scroll_selector !== '') {
3144
+ scroll_selector = scroll_selector;
3145
+ } else {
3146
+ scroll_selector = '#' + option_id + '.ui-accordion-header';
3147
+ }
3148
+ jQuery('html, body').stop().animate({
3149
+ scrollTop: jQuery(scroll_selector).offset().top
3150
+ }, 1000);
3151
+ }
3152
+
3153
+ function sfsi_fitText(container) {
3154
+ /* console.log(container,container.parent().parent(),container.parent().parent().hasClass('sfsi_icons_container_box_fixed_container')); */
3155
+ if (container.parent().parent().hasClass('sfsi_icons_container_box_fixed_container')) {
3156
+ /* console.log(window.sfsi_fittext_shouldDisplay); */
3157
+ if (window.sfsi_fittext_shouldDisplay === true) {
3158
+ if (jQuery('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val() == "Fully responsive") {
3159
+ var all_icon_width = jQuery('.sfsi_responsive_icons .sfsi_icons_container').width();
3160
+ var total_active_icons = jQuery('.sfsi_responsive_icons .sfsi_icons_container a').filter(function (i, icon) {
3161
+ return jQuery(icon).css('display') && (jQuery(icon).css('display').toLowerCase() !== "none");
3162
+ }).length;
3163
+
3164
+ var distance_between_icon = jQuery('input[name="sfsi_responsive_icons_settings_margin"]').val()
3165
+ var container_width = ((all_icon_width - distance_between_icon) / total_active_icons) - 5;
3166
+ container_width = (container_width - distance_between_icon);
3167
+ } else {
3168
+ var container_width = container.width();
3169
+ }
3170
+ // var container_img_width = container.find('img').width();
3171
+ var container_img_width = 70;
3172
+ // var span=container.find('span').clone();
3173
+ var span = container.find('span');
3174
+ // var span_original_width = container.find('span').width();
3175
+ var span_original_width = container_width - (container_img_width)
3176
+ span
3177
+ // .css('display','inline-block')
3178
+ .css('white-space', 'nowrap')
3179
+ // .css('width','auto')
3180
+ ;
3181
+ var span_flatted_width = span.width();
3182
+ if (span_flatted_width == 0) {
3183
+ span_flatted_width = span_original_width;
3184
+ }
3185
+ span
3186
+ // .css('display','inline-block')
3187
+ .css('white-space', 'unset')
3188
+ // .css('width','auto')
3189
+ ;
3190
+ var shouldDisplay = ((undefined === window.sfsi_fittext_shouldDisplay) ? true : window.sfsi_fittext_shouldDisplay = true);
3191
+ var fontSize = parseInt(span.css('font-size'));
3192
+
3193
+ if (6 > fontSize) {
3194
+ fontSize = 20;
3195
+ }
3196
+
3197
+ var computed_fontSize = (Math.floor((fontSize * span_original_width) / span_flatted_width));
3198
+
3199
+ if (computed_fontSize < 8) {
3200
+ shouldDisplay = false;
3201
+ window.sfsi_fittext_shouldDisplay = false;
3202
+ computed_fontSize = 20;
3203
+ }
3204
+ span.css('font-size', Math.min(computed_fontSize, 20));
3205
+ span
3206
+ // .css('display','inline-block')
3207
+ .css('white-space', 'nowrap')
3208
+ // .css('width','auto')
3209
+ ;
3210
+ if (shouldDisplay) {
3211
+ span.show();
3212
+ } else {
3213
+ span.hide();
3214
+ jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icon_item_container span').hide();
3215
+ }
3216
+ }
3217
+ } else {
3218
+ var span = container.find('span');
3219
+ /* console.log(span); */
3220
+ span.css('font-size', 'initial');
3221
+ span.show();
3222
+ }
3223
+
3224
+ }
3225
+
3226
+ function sfsi_fixedWidth_fitText(container) {
3227
+ return;
3228
+ /* console.log(sfsi_fittext_shouldDisplay); */
3229
+ if (window.sfsi_fittext_shouldDisplay === true) {
3230
+ if (jQuery('select[name="sfsi_responsive_icons_settings_icon_width_type"]').val() == "Fixed icon width") {
3231
+ var all_icon_width = jQuery('.sfsi_responsive_icons .sfsi_icons_container').width();
3232
+ var total_active_icons = jQuery('.sfsi_responsive_icons .sfsi_icons_container a').filter(function (i, icon) {
3233
+ return jQuery(icon).css('display') && (jQuery(icon).css('display').toLowerCase() !== "none");
3234
+ }).length;
3235
+ var distance_between_icon = jQuery('input[name="sfsi_responsive_icons_settings_margin"]').val()
3236
+ var container_width = ((all_icon_width - distance_between_icon) / total_active_icons) - 5;
3237
+ container_width = (container_width - distance_between_icon);
3238
+ } else {
3239
+ var container_width = container.width();
3240
+ }
3241
+ // var container_img_width = container.find('img').width();
3242
+ var container_img_width = 70;
3243
+ // var span=container.find('span').clone();
3244
+ var span = container.find('span');
3245
+ // var span_original_width = container.find('span').width();
3246
+ var span_original_width = container_width - (container_img_width)
3247
+ span
3248
+ // .css('display','inline-block')
3249
+ .css('white-space', 'nowrap')
3250
+ // .css('width','auto')
3251
+ ;
3252
+ var span_flatted_width = span.width();
3253
+ if (span_flatted_width == 0) {
3254
+ span_flatted_width = span_original_width;
3255
+ }
3256
+ span
3257
+ // .css('display','inline-block')
3258
+ .css('white-space', 'unset')
3259
+ // .css('width','auto')
3260
+ ;
3261
+ var shouldDisplay = undefined === window.sfsi_fittext_shouldDisplay ? true : window.sfsi_fittext_shouldDisplay = true;;
3262
+ var fontSize = parseInt(span.css('font-size'));
3263
+
3264
+ if (6 > fontSize) {
3265
+ fontSize = 15;
3266
+ }
3267
+
3268
+ var computed_fontSize = (Math.floor((fontSize * span_original_width) / span_flatted_width));
3269
+
3270
+ if (computed_fontSize < 8) {
3271
+ shouldDisplay = false;
3272
+ window.sfsi_fittext_shouldDisplay = false;
3273
+ computed_fontSize = 15;
3274
+ }
3275
+ span.css('font-size', Math.min(computed_fontSize, 15));
3276
+ span
3277
+ // .css('display','inline-block')
3278
+ .css('white-space', 'nowrap')
3279
+ // .css('width','auto')
3280
+ ;
3281
+ // var heightOfResIcons = jQuery('.sfsi_responsive_icon_item_container').height();
3282
+
3283
+ // if(heightOfResIcons < 17){
3284
+ // span.show();
3285
+ // }else{
3286
+ // span.hide();
3287
+ // }
3288
+
3289
+ if (shouldDisplay) {
3290
+ span.show();
3291
+ } else {
3292
+ span.hide();
3293
+ }
3294
+ }
3295
+ }
3296
+
3297
+ function sfsi_resize_icons_container() {
3298
+ // resize icon container based on the size of count
3299
+ sfsi_cloned_icon_list = jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').clone();
3300
+ sfsi_cloned_icon_list.removeClass('.sfsi_responsive_icon_preview .sfsi_responsive_with_counter_icons').addClass('sfsi_responsive_cloned_list');
3301
+ sfsi_cloned_icon_list.css('width', '100%');
3302
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').parent().append(sfsi_cloned_icon_list);
3303
+
3304
+ // sfsi_cloned_icon_list.css({
3305
+ // position: "absolute",
3306
+ // left: "-10000px"
3307
+ // }).appendTo("body");
3308
+ actual_width = sfsi_cloned_icon_list.width();
3309
+ count_width = jQuery('.sfsi_responsive_icon_preview .sfsi_responsive_icons_count').width();
3310
+ jQuery('.sfsi_responsive_cloned_list').remove();
3311
+ sfsi_inline_style = jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').attr('style');
3312
+ // remove_width
3313
+ sfsi_inline_style = sfsi_inline_style.replace(/width:auto($|!important|)(;|$)/g, '').replace(/width:\s*(-|)\d*\s*(px|%)\s*($|!important|)(;|$)/g, '');
3314
+ 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'))) {
3315
+ sfsi_inline_style += "width:" + (actual_width - count_width - 1) + 'px!important;'
3316
+ } else {
3317
+ sfsi_inline_style += "width:auto!important;";
3318
+ }
3319
+ jQuery('.sfsi_responsive_icon_preview .sfsi_icons_container').attr('style', sfsi_inline_style);
3320
+
3321
+ }
3322
+
3323
+ function sfsi_togglbtmsection(show, hide, ref) {
3324
+ console.log(show,hide);
3325
+ jQuery(ref).parent("ul").children("li.clckbltglcls").each(function (index, element) {
3326
+ jQuery(this).children(".radio").css("background-position", "0px 0px");
3327
+ jQuery(this).children(".styled").attr("checked", "false");
3328
+ });
3329
+ jQuery(ref).children(".radio").css("background-position", "0px -41px");
3330
+ jQuery(ref).children(".styled").attr("checked", "true");
3331
+ console.log(show,hide);
3332
+
3333
+ jQuery("." + show).show();
3334
+ jQuery("." + show).children(".radiodisplaysection").show();
3335
+ jQuery("." + hide).hide();
3336
+ jQuery("." + hide).children(".radiodisplaysection").hide();
3337
+ }
3338
+ jQuery(document).ready(function(){
3339
+ var sfsi_functions_loaded = new CustomEvent('sfsi_functions_loaded',{detail:{"abc":"def"}});
3340
+ window.dispatchEvent(sfsi_functions_loaded);
3341
+ });
libs/controllers/sfsi_buttons_controller.php CHANGED
@@ -1340,3 +1340,31 @@ function sfsi_OfflineChatMessage()
1340
  }
1341
  die();
1342
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1340
  }
1341
  die();
1342
  }
1343
+
1344
+ add_action('wp_ajax_sfsi_get_feed_id', 'sfsi_get_feed_id');
1345
+
1346
+ function sfsi_get_feed_id()
1347
+ {
1348
+ if (!wp_verify_nonce($_POST['nonce'], "sfsi_get_feed_id")) {
1349
+ echo json_encode(array('res' => 'wrong_nonce'));
1350
+ exit;
1351
+ }
1352
+ if (!current_user_can('manage_options')) {
1353
+ echo json_encode(array("res"=>"Failed",'message'=>"You should be admin to take this action"));
1354
+ exit;
1355
+ }
1356
+ $feed_id = sanitize_text_field(get_option('sfsi_feed_id'));
1357
+ if(""==$feed_id){
1358
+ $sfsiId = SFSI_PLUS_getFeedUrl();
1359
+ update_option('sfsi_feed_id' , sanitize_text_field($sfsiId->feed_id));
1360
+ update_option('sfsi_redirect_url' , sanitize_text_field($sfsiId->redirect_url));
1361
+ echo json_encode(array("res"=>"success",'feed_id'=>$sfsiId->feed_id));
1362
+ exit;
1363
+ }else{
1364
+ echo json_encode(array("res"=>"success","feed_id"=>$feed_id));
1365
+ exit;
1366
+ }
1367
+ wp_die();
1368
+ }
1369
+
1370
+ ?>
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[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
  ?>
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,242 +1,242 @@
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
  ?>
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
@@ -179,6 +179,7 @@ class sfsi_SocialHelper
179
 
180
  private function get_content_curl($url)
181
  {
 
182
  // if(_is_curl_installed()){
183
  // $curl = curl_init();
184
  // curl_setopt($curl, CURLOPT_HEADER, false);
179
 
180
  private function get_content_curl($url)
181
  {
182
+ $user_Agent = (isset($_SERVER['HTTP_USER_AGENT'])) ? $_SERVER['HTTP_USER_AGENT'] :'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)';
183
  // if(_is_curl_installed()){
184
  // $curl = curl_init();
185
  // curl_setopt($curl, CURLOPT_HEADER, false);
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
- 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
  ?>
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.38");
38
 
39
  if (!get_option('sfsi_serverphpVersionnotification')) {
40
  add_option("sfsi_serverphpVersionnotification", "yes");
@@ -1102,6 +1102,9 @@ function SFSI_getFeedUrl()
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,7 +1280,7 @@ function sfsi_rating_msg()
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');
34
  update_option("sfsi_custom_icons", "yes");
35
  }
36
  //Install version
37
+ update_option("sfsi_pluginVersion", "2.39");
38
 
39
  if (!get_option('sfsi_serverphpVersionnotification')) {
40
  add_option("sfsi_serverphpVersionnotification", "yes");
1102
  'sslverify' => true
1103
  );
1104
  $resp = wp_remote_post('https://www.specificfeeds.com/wordpress/plugin_setup', $args);
1105
+ if(!is_wp_error($resp)){
1106
+ $resp = json_decode($resp['body']);
1107
+ }
1108
  $feed_url = stripslashes_deep($resp->redirect_url);
1109
  return $resp;
1110
  exit;
1280
  <button type="button" class="plg-rating-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>
1281
  </div>
1282
  <script>
1283
+ jQuery(document).ready(function($) {
1284
 
1285
  var sel1 = jQuery('.sfsiHideRating');
1286
  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" @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
  ?>
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,1627 +1,1625 @@
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
  ?>
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 ='<script>';
132
+
133
+ $jquery .='window.addEventListener("sfsi_functions_loaded", function()
134
+ {
135
+ if (typeof sfsi_widget_set == "function") {
136
+ sfsi_widget_set();
137
+ }
138
+ }); ';
139
+
140
+
141
+ /* check if icons shuffling is activated in admin or not */
142
+ if($sfsi_section5['sfsi_icons_stick']=="yes")
143
+ {
144
+ if(is_admin_bar_showing())
145
+ {
146
+ $Ictop = "30px";
147
+ }
148
+ else
149
+ {
150
+ $Ictop = "0";
151
+ }
152
+
153
+ $jquery.='window.addEventListener("sfsi_functions_loaded",function(){var s = jQuery(".sfsi_widget");
154
+ var pos = s.position();
155
+ jQuery(window).scroll(function(){
156
+ sfsi_stick_widget("'.$Ictop.'");
157
+ }); }); ';
158
+ }
159
+
160
+ /* check if icons floating is activated in admin */
161
+ if($sfsi_section9['sfsi_icons_float']=="yes")
162
+ {
163
+ $top = "15";
164
+ switch($sfsi_section9['sfsi_icons_floatPosition'])
165
+ {
166
+ 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;
167
+ break;
168
+ 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;
169
+ break;
170
+ case "center-right" : $position.="position:absolute;right:30px;top:50%"; $top="center";
171
+ break;
172
+ case "center-left" : $position.="position:absolute;left:30px;top:50%"; $top="center";
173
+ break;
174
+ case "center-top" :
175
+ if(is_admin_bar_showing())
176
+ {
177
+ $position .= "left:50%;top:35px;"; $top="35";
178
+ }
179
+ else
180
+ {
181
+ $position .= "left:50%;top:10px;"; $top="10";
182
+ }
183
+ break;
184
+ case "center-bottom" :
185
+ $position .= "left:50%;bottom:0px"; $top="bottom";
186
+ break;
187
+
188
+ case "bottom-right" : $position.="position:absolute;right:30px;bottom:0px"; $top="bottom";
189
+ break;
190
+ case "bottom-left" : $position.="position:absolute;left:30px;bottom:0px"; $top="bottom";
191
+ break;
192
+ }
193
+ //$jquery.="jQuery( document ).ready(function( $ ) { sfsi_float_widget('".$top."')});";
194
+ if($sfsi_section9['sfsi_icons_floatPosition'] == 'center-right' || $sfsi_section9['sfsi_icons_floatPosition'] == 'center-left')
195
+ {
196
+ $jquery.="window.addEventListener('sfsi_functions_loaded',function()
197
+ {
198
+ var topalign = ( jQuery(window).height() - jQuery('#sfsi_floater').height() ) / 2;
199
+ jQuery('#sfsi_floater').css('top',topalign);
200
+ sfsi_float_widget('".$top."');
201
+ });";
202
+ }
203
+ else if($sfsi_section9['sfsi_icons_floatPosition'] == 'center-top' || $sfsi_section9['sfsi_icons_floatPosition'] == 'center-bottom'){
204
+
205
+ $jquery.="window.addEventListener('sfsi_functions_loaded',function()
206
+ {
207
+ var leftalign = ( jQuery(window).width() - jQuery('#sfsi_floater').width() ) / 2;
208
+ jQuery('#sfsi_floater').css('left',leftalign);
209
+ sfsi_float_widget('".$top."');
210
+ });";
211
+ }
212
+ else
213
+ {
214
+ $jquery.="window.addEventListener('sfsi_functions_loaded',function(){sfsi_float_widget('".$top."')});";
215
+ }
216
+ }
217
+
218
+ $extra=0;
219
+ if($sfsi_section3['sfsi_shuffle_icons']=="yes")
220
+ {
221
+ if($sfsi_section3['sfsi_shuffle_Firstload']=="yes" && $sfsi_section3['sfsi_shuffle_interval']=="yes")
222
+ {
223
+ $shuffle_time=(isset($sfsi_section3['sfsi_shuffle_intervalTime'])) ? $sfsi_section3['sfsi_shuffle_intervalTime'] : 3;
224
+ $shuffle_time=$shuffle_time*1000;
225
+ $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."); });";
226
+ }
227
+ else if($sfsi_section3['sfsi_shuffle_Firstload']=="no" && $sfsi_section3['sfsi_shuffle_interval']=="yes")
228
+ {
229
+ $shuffle_time=(isset($sfsi_section3['sfsi_shuffle_intervalTime'])) ? $sfsi_section3['sfsi_shuffle_intervalTime'] : 3;
230
+ $shuffle_time=$shuffle_time*1000;
231
+ $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."); });";
232
+ }
233
+ else
234
+ {
235
+ $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); });";
236
+ }
237
+ }
238
+
239
+ /* magnage the icons in saved order in admin */
240
+ $custom_icons_order = unserialize($sfsi_section5['sfsi_CustomIcons_order']);
241
+ $icons = unserialize($sfsi_section1_options['sfsi_custom_files']);
242
+ if(!isset($sfsi_section5['sfsi_telegramIcon_order'])){
243
+ $sfsi_section5['sfsi_telegramIcon_order'] = '11';
244
+ }
245
+ if(!isset($sfsi_section5['sfsi_vkIcon_order'])){
246
+ $sfsi_section5['sfsi_vkIcon_order'] = '12';
247
+ }
248
+ if(!isset($sfsi_section5['sfsi_okIcon_order'])){
249
+ $sfsi_section5['sfsi_okIcon_order'] = '13';
250
+ }
251
+ if(!isset($sfsi_section5['sfsi_weiboIcon_order'])){
252
+ $sfsi_section5['sfsi_weiboIcon_order'] = '14';
253
+ }
254
+ if(!isset($sfsi_section5['sfsi_wechatIcon_order'])){
255
+ $sfsi_section5['sfsi_wechatIcon_order'] = '15';
256
+ }
257
+ $icons_order = array(
258
+ '0' => '',
259
+ $sfsi_section5['sfsi_rssIcon_order']=>'rss',
260
+ $sfsi_section5['sfsi_emailIcon_order']=>'email',
261
+ $sfsi_section5['sfsi_facebookIcon_order']=>'facebook',
262
+ $sfsi_section5['sfsi_twitterIcon_order']=>'twitter',
263
+ $sfsi_section5['sfsi_youtubeIcon_order']=>'youtube',
264
+ $sfsi_section5['sfsi_pinterestIcon_order']=>'pinterest',
265
+ $sfsi_section5['sfsi_linkedinIcon_order']=>'linkedin',
266
+ $sfsi_section5['sfsi_instagramIcon_order']=>'instagram',
267
+ $sfsi_section5['sfsi_telegramIcon_order']=>'telegram',
268
+ $sfsi_section5['sfsi_vkIcon_order']=>'vk',
269
+ $sfsi_section5['sfsi_okIcon_order']=>'ok',
270
+ $sfsi_section5['sfsi_weiboIcon_order']=>'weibo',
271
+ $sfsi_section5['sfsi_wechatIcon_order']=>'wechat',
272
+ ) ;
273
+ if(is_array($custom_icons_order) )
274
+ {
275
+ foreach($custom_icons_order as $data)
276
+ {
277
+ $icons_order[$data['order']] = $data;
278
+ }
279
+ }
280
+ ksort($icons_order);
281
+
282
+ /* calculate the total width of widget according to icons */
283
+ if(!empty($icons_per_row))
284
+ {
285
+ $width = ((int)$icons_space+(int)$icons_size)*(int)$icons_per_row;
286
+ $main_width = $width = $width+$extra;
287
+ $main_width = $main_width."px";
288
+ }
289
+ else
290
+ {
291
+ $width = ((int)$icons_space+(int)$icons_size);
292
+ $main_width = "35%";
293
+ }
294
+
295
+ /* built the main widget div */
296
+ $icons_main = '<div class="norm_row sfsi_wDiv" style="width:'.$main_width.';text-align:'.$icons_alignment.';'.$position1.'">';
297
+ $icons = "";
298
+ /* loop through icons and bulit the icons with all settings applied in admin */
299
+ foreach($icons_order as $index => $icn) :
300
+ if(is_array($icn)) { $icon_arry=$icn; $icn="custom" ; }
301
+ switch ($icn) :
302
+ case 'rss' : if($sfsi_section1_options['sfsi_rss_display']=='yes') $icons.= sfsi_prepairIcons('rss');
303
+ break;
304
+ case 'email' : if($sfsi_section1_options['sfsi_email_display']=='yes') $icons.= sfsi_prepairIcons('email');
305
+ break;
306
+ case 'facebook' : if($sfsi_section1_options['sfsi_facebook_display']=='yes') $icons.= sfsi_prepairIcons('facebook');
307
+ break;
308
+ case 'twitter' : if($sfsi_section1_options['sfsi_twitter_display']=='yes') $icons.= sfsi_prepairIcons('twitter');
309
+ break;
310
+ case 'youtube' : if($sfsi_section1_options['sfsi_youtube_display']=='yes') $icons.= sfsi_prepairIcons('youtube');
311
+ break;
312
+ case 'pinterest' : if($sfsi_section1_options['sfsi_pinterest_display']=='yes') $icons.= sfsi_prepairIcons('pinterest');
313
+ break;
314
+ case 'linkedin' : if($sfsi_section1_options['sfsi_linkedin_display']=='yes') $icons.= sfsi_prepairIcons('linkedin');
315
+ break;
316
+ case 'instagram' : if($sfsi_section1_options['sfsi_instagram_display']=='yes') $icons.= sfsi_prepairIcons('instagram');
317
+ break;
318
+ case 'telegram' : if($sfsi_section1_options['sfsi_telegram_display']=='yes') $icons.= sfsi_prepairIcons('telegram');
319
+ break;
320
+ case 'vk' : if($sfsi_section1_options['sfsi_vk_display']=='yes') $icons.= sfsi_prepairIcons('vk');
321
+ break;
322
+ case 'ok' : if($sfsi_section1_options['sfsi_ok_display']=='yes') $icons.= sfsi_prepairIcons('ok');
323
+ break;
324
+ case 'weibo' : if($sfsi_section1_options['sfsi_weibo_display']=='yes') $icons.= sfsi_prepairIcons('weibo');
325
+ break;
326
+ case 'wechat' : if($sfsi_section1_options['sfsi_wechat_display']=='yes') $icons.= sfsi_prepairIcons('wechat');
327
+ break;
328
+ case 'custom' : $icons.= sfsi_prepairIcons($icon_arry['ele']);
329
+ break;
330
+ endswitch;
331
+ endforeach;
332
+
333
+ $jquery.="</script>";
334
+ $icons.='</div >';
335
+
336
+ $margin = $width+11;
337
+
338
+ $icons_main.=$icons.'<div id="sfsi_holder" class="sfsi_holders" style="position: relative; float: left;width:100%;z-index:-1;"></div >'.$jquery;
339
+ /* if floating of icons is active create a floater div */
340
+ $icons_float='';
341
+
342
+ if($sfsi_section9['sfsi_icons_float']=="yes" && $isFloter==1)
343
+ {
344
+ if($sfsi_section9['sfsi_icons_floatPosition'] == "top-left")
345
+ {
346
+ $styleMargin = "margin-top:".$sfsi_section9['sfsi_icons_floatMargin_top']."px;margin-left:".$sfsi_section9['sfsi_icons_floatMargin_left']."px;";
347
+ }
348
+ elseif($sfsi_section9['sfsi_icons_floatPosition'] == "top-right")
349
+ {
350
+ $styleMargin = "margin-top:".$sfsi_section9['sfsi_icons_floatMargin_top']."px;margin-right:".$sfsi_section9['sfsi_icons_floatMargin_right']."px;";
351
+ }
352
+ elseif($sfsi_section9['sfsi_icons_floatPosition'] == "center-left")
353
+ {
354
+ $styleMargin = "margin-left:".$sfsi_section9['sfsi_icons_floatMargin_left']."px;";
355
+ }
356
+ elseif($sfsi_section9['sfsi_icons_floatPosition'] == "center-right")
357
+ {
358
+ $styleMargin = "margin-right:".$sfsi_section9['sfsi_icons_floatMargin_right']."px;";
359
+ }
360
+ elseif($sfsi_section9['sfsi_icons_floatPosition'] == "bottom-left")
361
+ {
362
+ $styleMargin = "margin-bottom:".$sfsi_section9['sfsi_icons_floatMargin_bottom']."px;margin-left:".$sfsi_section9['sfsi_icons_floatMargin_left']."px;";
363
+ }
364
+ elseif($sfsi_section9['sfsi_icons_floatPosition'] == "bottom-right")
365
+ {
366
+ $styleMargin = "margin-bottom:".$sfsi_section9['sfsi_icons_floatMargin_bottom']."px;margin-right:".$sfsi_section9['sfsi_icons_floatMargin_right']."px;";
367
+ }
368
+
369
+ $icons_float = isset($styleMargin) && !empty($styleMargin) ? '<style type="text/css">#sfsi_floater { '.$styleMargin.' }</style>' : '';
370
+ $icons_float .= '<div class="norm_row sfsi_wDiv" id="sfsi_floater" style="z-index: 9999;width:'.$width.'px;text-align:'.$icons_alignment.';'.$position.'">';
371
+ $icons_float .= $icons;
372
+ $icons_float .= "<input type='hidden' id='sfsi_floater_sec' value='".$sfsi_section9['sfsi_icons_floatPosition']."' />";
373
+ $icons_float.="</div>".$jquery;
374
+ return $icons_float; exit;
375
+ }
376
+ $icons_data=$icons_main.$icons_float;
377
+ return $icons_data;
378
+ }
379
+
380
+ /* make all icons with saved settings in admin */
381
+ function sfsi_prepairIcons($icon_name,$is_front=0)
382
+ {
383
+ global $wpdb; global $socialObj;
384
+ $mouse_hover_effect = '';
385
+ $active_theme = 'official';
386
+ $sfsi_shuffle_Firstload = 'no';
387
+ $sfsi_display_counts = "no";
388
+ $icon = '';
389
+ $url = '';
390
+ $alt_text = '';
391
+ $new_window = '';
392
+ $class = '';
393
+
394
+ /* access all saved settings in admin */
395
+ $sfsi_section1_options = unserialize(get_option('sfsi_section1_options',false));
396
+ $sfsi_section2_options = unserialize(get_option('sfsi_section2_options',false));
397
+ $sfsi_section3_options = unserialize(get_option('sfsi_section3_options',false));
398
+ $sfsi_section4_options = unserialize(get_option('sfsi_section4_options',false));
399
+ $sfsi_section5_options = unserialize(get_option('sfsi_section5_options',false));
400
+ $sfsi_section6_options = unserialize(get_option('sfsi_section6_options',false));
401
+ $sfsi_section7_options = unserialize(get_option('sfsi_section7_options',false));
402
+ /* get active theme */
403
+ $border_radius='';
404
+ $active_theme = $sfsi_section3_options['sfsi_actvite_theme'];
405
+ if(!isset($sfsi_section2_options['sfsi_wechatShare_option'])){
406
+ $sfsi_section2_options['sfsi_wechatShare_option']="yes";
407
+ }
408
+ /* shuffle effect */
409
+ if($sfsi_section3_options['sfsi_shuffle_icons']=='yes')
410
+ {
411
+ $sfsi_shuffle_Firstload=$sfsi_section3_options["sfsi_shuffle_Firstload"];
412
+ if($sfsi_section3_options["sfsi_shuffle_interval"]=="yes")
413
+ {
414
+ $sfsi_shuffle_interval = $sfsi_section3_options["sfsi_shuffle_intervalTime"];
415
+ }
416
+ }
417
+
418
+ /* define the main url for icon access */
419
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/".$active_theme."/";
420
+ $visit_iconsUrl = SFSI_PLUGURL."images/visit_icons/";
421
+ $hoverSHow = 0;
422
+
423
+ /* check is icon is a custom icon or default icon */
424
+ if(is_numeric($icon_name)) { $icon_n=$icon_name; $icon_name="custom" ; }
425
+ $counts = '';
426
+ $twit_tolCls = "";
427
+ $twt_margin = "";
428
+ $icons_space = $sfsi_section5_options['sfsi_icons_spacing'];
429
+ $padding_top = '';
430
+
431
+ // $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http";
432
+ // $current_url = $scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
433
+
434
+ $current_url = sfsi_get_current_page_url();
435
+
436
+ $url = "#";
437
+ $cmcls = '';
438
+ $toolClass = '';
439
+
440
+ $socialObj = new sfsi_SocialHelper(); /* global object to access 3rd party icon's actions */
441
+
442
+ switch($icon_name)
443
+ {
444
+ case "rss" :
445
+
446
+ $url = isset($sfsi_section2_options['sfsi_rss_url']) && !empty($sfsi_section2_options['sfsi_rss_url'])? $sfsi_section2_options['sfsi_rss_url'] : '';
447
+
448
+ $toolClass = "rss_tool_bdr";
449
+ $hoverdiv = '';
450
+ $arrow_class = "bot_rss_arow";
451
+
452
+ /* fecth no of counts if active in admin section */
453
+ if($sfsi_section4_options['sfsi_rss_countsDisplay']=="yes" && $sfsi_section4_options['sfsi_display_counts']=="yes")
454
+ {
455
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_rss_manualCounts']);
456
+ }
457
+
458
+ if(!empty($sfsi_section5_options['sfsi_rss_MouseOverText']))
459
+ {
460
+ $alt_text = $sfsi_section5_options['sfsi_rss_MouseOverText'];
461
+ }
462
+ else
463
+ {
464
+ $alt_text = 'RSS';
465
+ }
466
+
467
+ //Custom Skin Support {Monad}
468
+ if($active_theme == 'custom_support')
469
+ {
470
+ if(get_option("rss_skin"))
471
+ {
472
+ $icon = get_option("rss_skin");
473
+ }
474
+ else
475
+ {
476
+ $active_theme = 'default';
477
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
478
+ $icon=$icons_baseUrl.$active_theme."_rss.png";
479
+ }
480
+ }
481
+ else
482
+ {
483
+ $icon=$icons_baseUrl.$active_theme."_rss.png";
484
+ }
485
+ break;
486
+
487
+ case "email" :
488
+
489
+ $hoverdiv = '';
490
+
491
+ $sfsi_section2_options['sfsi_email_url'];
492
+ if( sanitize_text_field(get_option('sfsi_feed_id', false)) == ""){
493
+ $url = "https://specificfeeds.com/follow";
494
+ }else{
495
+ $url = (isset($sfsi_section2_options['sfsi_email_url'])) ? $sfsi_section2_options['sfsi_email_url'] : '';
496
+ }
497
+ $toolClass = "email_tool_bdr";
498
+ $arrow_class = "bot_eamil_arow";
499
+
500
+ /* fecth no of counts if active in admin section */
501
+ if(
502
+ $sfsi_section4_options['sfsi_email_countsDisplay']=="yes" &&
503
+ $sfsi_section4_options['sfsi_display_counts']=="yes"
504
+ )
505
+ {
506
+ if($sfsi_section4_options['sfsi_email_countsFrom']=="manual")
507
+ {
508
+ $counts=$socialObj->format_num($sfsi_section4_options['sfsi_email_manualCounts']);
509
+ }
510
+ else
511
+ {
512
+ $counts = $socialObj->SFSI_getFeedSubscriber(sanitize_text_field(get_option('sfsi_feed_id',false)));
513
+ }
514
+ }
515
+
516
+ if(!empty($sfsi_section5_options['sfsi_email_MouseOverText']))
517
+ {
518
+ $alt_text = $sfsi_section5_options['sfsi_email_MouseOverText'];
519
+ }
520
+ else
521
+ {
522
+ $alt_text = 'EMAIL';
523
+ }
524
+
525
+ //Custom Skin Support {Monad}
526
+ if($active_theme == 'custom_support')
527
+ {
528
+ if(get_option("email_skin"))
529
+ {
530
+ $icon = get_option("email_skin");
531
+ }
532
+ else
533
+ {
534
+ $active_theme = 'default';
535
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
536
+ //$icon=($sfsi_section2_options['sfsi_rss_icons']=="sfsi") ? $icons_baseUrl.$active_theme."_sf.png" : $icons_baseUrl.$active_theme."_email.png";
537
+ if($sfsi_section2_options['sfsi_rss_icons']=="sfsi")
538
+ {
539
+ $icon = $icons_baseUrl.$active_theme."_sf.png";
540
+ }
541
+ elseif($sfsi_section2_options['sfsi_rss_icons']=="email")
542
+ {
543
+ $icon = $icons_baseUrl.$active_theme."_email.png";
544
+ }
545
+ else
546
+ {
547
+ $icon = $icons_baseUrl.$active_theme."_subscribe.png";
548
+ }
549
+ }
550
+ }
551
+ else
552
+ {
553
+
554
+ $rss_icons = isset($sfsi_section2_options['sfsi_rss_icons']) && !empty($sfsi_section2_options['sfsi_rss_icons']) ? $sfsi_section2_options['sfsi_rss_icons'] : false;
555
+
556
+ switch ($rss_icons) {
557
+
558
+ case 'email':
559
+ $image = "_email.png";
560
+ break;
561
+
562
+ case 'subscribe':
563
+ $image = "_subscribe.png";
564
+ break;
565
+
566
+ case 'sfsi':
567
+ $image = "_sf.png";
568
+ break;
569
+
570
+ default:
571
+ $image = "_subscribe.png";
572
+ break;
573
+ }
574
+
575
+ $icon = $icons_baseUrl.$active_theme.$image;
576
+ }
577
+ break;
578
+
579
+ case "facebook" :
580
+
581
+ $width = 62;
582
+ $totwith = $width+28+$icons_space;
583
+ $twt_margin = $totwith/2;
584
+ $toolClass = "fb_tool_bdr";
585
+ $arrow_class = "bot_fb_arow";
586
+
587
+ /* check for the over section */
588
+ if(!empty($sfsi_section5_options['sfsi_facebook_MouseOverText']))
589
+ {
590
+ $alt_text = $sfsi_section5_options['sfsi_facebook_MouseOverText'];
591
+ }
592
+ else
593
+ {
594
+ $alt_text = "FACEBOOK";
595
+ }
596
+
597
+ $visit_icon = $visit_iconsUrl."facebook.png";
598
+
599
+ $url = isset($sfsi_section2_options['sfsi_facebookPage_url']) && !empty($sfsi_section2_options['sfsi_facebookPage_url']) ? $sfsi_section2_options['sfsi_facebookPage_url'] : false;
600
+
601
+ $url = false != $url ? $sfsi_section2_options['sfsi_facebookPage_url']:'';
602
+
603
+ $like_option = isset($sfsi_section2_options['sfsi_facebookLike_option']) && !empty($sfsi_section2_options['sfsi_facebookLike_option']) ? $sfsi_section2_options['sfsi_facebookLike_option'] : false;
604
+
605
+ $page_option = isset($sfsi_section2_options['sfsi_facebookPage_option']) && !empty($sfsi_section2_options['sfsi_facebookPage_option']) ? $sfsi_section2_options['sfsi_facebookPage_option'] : false;
606
+
607
+ $share_option = isset($sfsi_section2_options['sfsi_facebookShare_option']) && !empty($sfsi_section2_options['sfsi_facebookShare_option']) ? $sfsi_section2_options['sfsi_facebookShare_option'] : false;
608
+
609
+ if((false != $like_option && $like_option=="yes") || (false != $share_option && $share_option=="yes"))
610
+ {
611
+ $url=($sfsi_section2_options['sfsi_facebookPage_url']) ? $sfsi_section2_options['sfsi_facebookPage_url']:'';
612
+ $hoverSHow = 1;
613
+ $hoverdiv = '';
614
+
615
+ if(false != $page_option && $page_option=="yes")
616
+ {
617
+ $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>";
618
+ }
619
+ if(false!= $like_option && $like_option=="yes")
620
+ {
621
+ $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_FBlike($current_url)."</div>";
622
+ }
623
+ if(false!= $share_option && $share_option=="yes")
624
+ {
625
+ $hoverdiv.="<div class='icon3'>".$socialObj->sfsiFB_Share($current_url)."</div>";
626
+ }
627
+
628
+ }
629
+
630
+ /* fecth no of counts if active in admin section */
631
+ if(
632
+ $sfsi_section4_options['sfsi_facebook_countsDisplay']=="yes" &&
633
+ $sfsi_section4_options['sfsi_display_counts']=="yes"
634
+ )
635
+ {
636
+ if($sfsi_section4_options['sfsi_facebook_countsFrom']=="manual")
637
+ {
638
+ $counts=$socialObj->format_num($sfsi_section4_options['sfsi_facebook_manualCounts']);
639
+ }
640
+ else if($sfsi_section4_options['sfsi_facebook_countsFrom']=="likes")
641
+ {
642
+ $fb_data=$socialObj->sfsi_get_fb($current_url);
643
+ $counts=$socialObj->format_num($fb_data['like_count']);
644
+ if(empty($counts))
645
+ {
646
+ $counts=(string) "0";
647
+ }
648
+ }
649
+ else if($sfsi_section4_options['sfsi_facebook_countsFrom']=="followers")
650
+ {
651
+ $fb_data=$socialObj->sfsi_get_fb($current_url);
652
+ $counts=$socialObj->format_num($fb_data['share_count']);
653
+
654
+ }
655
+ else if($sfsi_section4_options['sfsi_facebook_countsFrom']=="mypage")
656
+ {
657
+ $current_url = $sfsi_section4_options['sfsi_facebook_mypageCounts'];
658
+ $fb_data=$socialObj->sfsi_get_fb_pagelike($current_url);
659
+ $counts=$socialObj->format_num($fb_data);
660
+ }
661
+ }
662
+
663
+ //Custom Skin Support {Monad}
664
+ if($active_theme == 'custom_support')
665
+ {
666
+ if(get_option("facebook_skin"))
667
+ {
668
+ $icon = get_option("facebook_skin");
669
+ }
670
+ else
671
+ {
672
+ $active_theme = 'default';
673
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
674
+ $icon=$icons_baseUrl.$active_theme."_facebook.png";
675
+ }
676
+ }
677
+ else
678
+ {
679
+ $icon=$icons_baseUrl.$active_theme."_facebook.png";
680
+ }
681
+ break;
682
+ case "twitter" :
683
+ $toolClass = "twt_tool_bdr";
684
+ $arrow_class = "bot_twt_arow";
685
+
686
+ $url = isset($sfsi_section2_options['sfsi_twitter_pageURL']) && !empty($sfsi_section2_options['sfsi_twitter_pageURL']) ? $sfsi_section2_options['sfsi_twitter_pageURL'] : '';
687
+
688
+ $twitter_user = isset($sfsi_section2_options['sfsi_twitter_followUserName']) && !empty($sfsi_section2_options['sfsi_twitter_followUserName']) ? $sfsi_section2_options['sfsi_twitter_followUserName'] : false;
689
+
690
+ $twitter_text = isset($sfsi_section2_options['sfsi_twitter_aboutPageText']) && !empty($sfsi_section2_options['sfsi_twitter_aboutPageText']) ? $sfsi_section2_options['sfsi_twitter_aboutPageText'] : false;
691
+
692
+ $visit_icon = $visit_iconsUrl."twitter.png";
693
+
694
+ $width = 59;
695
+ $totwith = $width+28+$icons_space;
696
+ $twt_margin = $totwith/2;
697
+ /* check for icons to display */
698
+ $hoverdiv='';
699
+
700
+ $follow_me = isset($sfsi_section2_options['sfsi_twitter_followme']) && !empty($sfsi_section2_options['sfsi_twitter_followme']) ? $sfsi_section2_options['sfsi_twitter_followme'] : false;
701
+
702
+ $about_page = isset($sfsi_section2_options['sfsi_twitter_aboutPage']) && !empty($sfsi_section2_options['sfsi_twitter_aboutPage']) ? $sfsi_section2_options['sfsi_twitter_aboutPage'] : false;
703
+
704
+ if($follow_me=="yes" ||$about_page=="yes")
705
+ {
706
+ $hoverSHow=1;
707
+ //Visit twitter page {Monad}
708
+ if(isset($sfsi_section2_options['sfsi_twitter_page']) && !empty($sfsi_section2_options['sfsi_twitter_page']) && $sfsi_section2_options['sfsi_twitter_page']=="yes")
709
+ {
710
+ $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>";
711
+ }
712
+ if($follow_me=="yes" && !empty($twitter_user))
713
+ {
714
+ $hoverdiv.="<div class='icon1'>".$socialObj->sfsi_twitterFollow($twitter_user)."</div>";
715
+ }
716
+ if($about_page=="yes")
717
+ {
718
+ $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_twitterShare($current_url,$twitter_text)."</div>";
719
+ }
720
+
721
+ }
722
+
723
+ /* fecth no of counts if active in admin section */
724
+ if(
725
+ $sfsi_section4_options['sfsi_twitter_countsDisplay']=="yes" &&
726
+ $sfsi_section4_options['sfsi_display_counts']=="yes"
727
+ )
728
+ {
729
+ if($sfsi_section4_options['sfsi_twitter_countsFrom']=="manual")
730
+ {
731
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_twitter_manualCounts']);
732
+ }
733
+ else if($sfsi_section4_options['sfsi_twitter_countsFrom']=="source")
734
+ {
735
+ $tw_settings = array('tw_consumer_key'=>$sfsi_section4_options['tw_consumer_key'],
736
+ 'tw_consumer_secret'=> $sfsi_section4_options['tw_consumer_secret'],
737
+ 'tw_oauth_access_token'=> $sfsi_section4_options['tw_oauth_access_token'],
738
+ 'tw_oauth_access_token_secret'=> $sfsi_section4_options['tw_oauth_access_token_secret']);
739
+
740
+ $followers = $socialObj->sfsi_get_tweets($twitter_user,$tw_settings);
741
+ $counts = $socialObj->format_num($followers);
742
+ if(empty($counts))
743
+ {
744
+ $counts=(string) "0";
745
+ }
746
+ }
747
+ }
748
+
749
+ //Giving alternative text to image
750
+ if(!empty($sfsi_section5_options['sfsi_twitter_MouseOverText']))
751
+ {
752
+ $alt_text = $sfsi_section5_options['sfsi_twitter_MouseOverText'];
753
+ }
754
+ else
755
+ {
756
+ $alt_text = "TWITTER";
757
+ }
758
+
759
+ //Custom Skin Support {Monad}
760
+ if($active_theme == 'custom_support')
761
+ {
762
+ if(get_option("twitter_skin"))
763
+ {
764
+ $icon = get_option("twitter_skin");
765
+ }
766
+ else
767
+ {
768
+ $active_theme = 'default';
769
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
770
+ $icon=$icons_baseUrl.$active_theme."_twitter.png";
771
+ }
772
+ }
773
+ else
774
+ {
775
+ $icon=$icons_baseUrl.$active_theme."_twitter.png";
776
+ }
777
+ break;
778
+
779
+ case "youtube" :
780
+ $toolClass = "utube_tool_bdr";
781
+ $arrow_class = "bot_utube_arow";
782
+ $width = 96;
783
+ $totwith = $width+28+$icons_space;
784
+ $twt_margin = $totwith/2;
785
+ $youtube_user = (isset($sfsi_section4_options['sfsi_youtube_user']) && !empty($sfsi_section4_options['sfsi_youtube_user'])) ? $sfsi_section4_options['sfsi_youtube_user'] : 'SpecificFeeds';
786
+ $visit_icon = $visit_iconsUrl."youtube.png";
787
+
788
+ $url = isset($sfsi_section2_options['sfsi_youtube_pageUrl']) && !empty($sfsi_section2_options['sfsi_youtube_pageUrl']) ? $sfsi_section2_options['sfsi_youtube_pageUrl'] : '';
789
+
790
+ //Giving alternative text to image
791
+ if(!empty($sfsi_section5_options['sfsi_youtube_MouseOverText']))
792
+ {
793
+ $alt_text = $sfsi_section5_options['sfsi_youtube_MouseOverText'];
794
+ }
795
+ else
796
+ {
797
+ $alt_text = "YOUTUBE";
798
+ }
799
+
800
+ /* check for icons to display */
801
+ $hoverdiv="";
802
+
803
+ $follow = isset($sfsi_section2_options['sfsi_youtube_follow']) && !empty($sfsi_section2_options['sfsi_youtube_follow']) ? $sfsi_section2_options['sfsi_youtube_follow'] : false;
804
+
805
+ $ypage = isset($sfsi_section2_options['sfsi_youtube_page']) && !empty($sfsi_section2_options['sfsi_youtube_page']) ? $sfsi_section2_options['sfsi_youtube_page'] : false;
806
+
807
+ if(false != $follow && $follow=="yes")
808
+ {
809
+ $hoverSHow = 1;
810
+
811
+ if($ypage =="yes")
812
+ {
813
+ $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>";
814
+ }
815
+ if($follow =="yes")
816
+ {
817
+ $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_YouTubeSub($youtube_user)."</div>";
818
+ }
819
+ }
820
+
821
+ /* fecth no of counts if active in admin section */
822
+ if(
823
+ $sfsi_section4_options['sfsi_youtube_countsDisplay']=="yes" &&
824
+ $sfsi_section4_options['sfsi_display_counts']=="yes"
825
+ )
826
+ {
827
+ if($sfsi_section4_options['sfsi_youtube_countsFrom']=="manual")
828
+ {
829
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_youtube_manualCounts']);
830
+ }
831
+ else if($sfsi_section4_options['sfsi_youtube_countsFrom']=="subscriber")
832
+ {
833
+ $followers = $socialObj->sfsi_get_youtube($youtube_user);
834
+ $counts = $socialObj->format_num($followers);
835
+ if(empty($counts))
836
+ {
837
+ $counts = (string) "0";
838
+ }
839
+ }
840
+ }
841
+
842
+ //Custom Skin Support {Monad}
843
+ if($active_theme == 'custom_support')
844
+ {
845
+ if(get_option("youtube_skin"))
846
+ {
847
+ $icon = get_option("youtube_skin");
848
+ }
849
+ else
850
+ {
851
+ $active_theme = 'default';
852
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
853
+ $icon=$icons_baseUrl.$active_theme."_youtube.png";
854
+ }
855
+ }
856
+ else
857
+ {
858
+ $icon=$icons_baseUrl.$active_theme."_youtube.png";
859
+ }
860
+ break;
861
+
862
+ case "pinterest" :
863
+
864
+ $width = 73;
865
+ $totwith = $width+28+$icons_space;
866
+ $twt_margin = $totwith/2;
867
+ $toolClass = "printst_tool_bdr";
868
+ $arrow_class = "bot_pintst_arow";
869
+
870
+ $pinterest_user = (isset($sfsi_section4_options['sfsi_pinterest_user']))
871
+ ? $sfsi_section4_options['sfsi_pinterest_user'] : '';
872
+ $pinterest_board = (isset($sfsi_section4_options['sfsi_pinterest_board']))
873
+ ? $sfsi_section4_options['sfsi_pinterest_board'] : '';
874
+
875
+ $visit_icon = $visit_iconsUrl."pinterest.png";
876
+ $url = (isset($sfsi_section2_options['sfsi_pinterest_pageUrl'])) ? $sfsi_section2_options['sfsi_pinterest_pageUrl'] : '';
877
+
878
+ //Giving alternative text to image
879
+ if(isset($sfsi_section5_options['sfsi_pinterest_MouseOverText']) && !empty($sfsi_section5_options['sfsi_pinterest_MouseOverText']))
880
+ {
881
+ $alt_text = $sfsi_section5_options['sfsi_pinterest_MouseOverText'];
882
+ }
883
+ else
884
+ {
885
+ $alt_text = "PINTEREST";
886
+ }
887
+
888
+ /* check for icons to display */
889
+ $hoverdiv="";
890
+
891
+ $pingblog = isset($sfsi_section2_options['sfsi_pinterest_pingBlog']) && !empty($sfsi_section2_options['sfsi_pinterest_pingBlog']) ? $sfsi_section2_options['sfsi_pinterest_pingBlog'] : false;
892
+
893
+ $page = isset($sfsi_section2_options['sfsi_pinterest_page']) && !empty($sfsi_section2_options['sfsi_pinterest_page']) ? $sfsi_section2_options['sfsi_pinterest_page'] : false;
894
+
895
+ $cDisplay = isset($sfsi_section4_options['sfsi_pinterest_countsDisplay']) && !empty($sfsi_section4_options['sfsi_pinterest_countsDisplay']) ? $sfsi_section4_options['sfsi_pinterest_countsDisplay'] : false;
896
+
897
+ $displayC = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts'] : false;
898
+
899
+ $cFrom = isset($sfsi_section4_options['sfsi_pinterest_countsFrom']) && !empty($sfsi_section4_options['sfsi_pinterest_countsFrom']) ? $sfsi_section4_options['sfsi_pinterest_countsFrom'] : false;
900
+ // var_dump($sfsi_section4_options['sfsi_pinterest_countsFrom'],$cFrom);die();
901
+
902
+ if($pingblog=="yes" )
903
+ {
904
+ $hoverSHow = 1;
905
+
906
+ if($page =="yes")
907
+ {
908
+ $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>";
909
+ }
910
+ if($pingblog=="yes")
911
+ {
912
+ $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_PinIt($current_url)."</div>";
913
+ }
914
+ }
915
+
916
+ /* fecth no of counts if active in admin section */
917
+ if($cDisplay == "yes" && $displayC=="yes")
918
+ {
919
+ if($cFrom=="manual")
920
+ {
921
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_pinterest_manualCounts']);
922
+ }
923
+ else if($cFrom=="pins")
924
+ {
925
+ $pins = $socialObj->sfsi_get_pinterest($current_url);
926
+ $counts = $pins;
927
+ if(empty($counts))
928
+ {
929
+ $counts=(string) "0";
930
+ }
931
+ }
932
+ }
933
+
934
+ //Custom Skin Support {Monad}
935
+ if($active_theme == 'custom_support')
936
+ {
937
+ if(get_option("pintrest_skin"))
938
+ {
939
+ $icon = get_option("pintrest_skin");
940
+ }
941
+ else
942
+ {
943
+ $active_theme = 'default';
944
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
945
+ $icon = $icons_baseUrl.$active_theme."_pinterest.png";
946
+ }
947
+ }
948
+ else
949
+ {
950
+ $icon=$icons_baseUrl.$active_theme."_pinterest.png";
951
+ }
952
+ break;
953
+
954
+ case "instagram" :
955
+ $toolClass = "instagram_tool_bdr";
956
+ $arrow_class = "bot_pintst_arow";
957
+
958
+ $url = (isset($sfsi_section2_options['sfsi_instagram_pageUrl'])) ? $sfsi_section2_options['sfsi_instagram_pageUrl'] : '';
959
+
960
+ $instagram_user_name = isset($sfsi_section4_options['sfsi_instagram_User']) && !empty($sfsi_section4_options['sfsi_instagram_User']) ? $sfsi_section4_options['sfsi_instagram_User'] : false;
961
+
962
+ //Giving alternative text to image
963
+ if(isset($sfsi_section5_options['sfsi_instagram_MouseOverText']) && !empty($sfsi_section5_options['sfsi_instagram_MouseOverText']))
964
+ {
965
+ $alt_text = $sfsi_section5_options['sfsi_instagram_MouseOverText'];
966
+ }
967
+ else
968
+ {
969
+ $alt_text = "INSTAGRAM";
970
+ }
971
+
972
+ $hoverdiv="";
973
+
974
+ $cDisplay = isset($sfsi_section4_options['sfsi_instagram_countsDisplay']) && !empty($sfsi_section4_options['sfsi_instagram_countsDisplay']) ? $sfsi_section4_options['sfsi_instagram_countsDisplay']: false;
975
+
976
+ $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
977
+
978
+ $cFrom = isset($sfsi_section4_options['sfsi_instagram_countsFrom']) && !empty($sfsi_section4_options['sfsi_instagram_countsFrom']) ? $sfsi_section4_options['sfsi_instagram_countsFrom']: false;
979
+
980
+ /* fecth no of counts if active in admin section */
981
+ if($cDisplay=="yes" && $Displayc=="yes")
982
+ {
983
+ if($cFrom=="manual")
984
+ {
985
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_instagram_manualCounts']);
986
+ }
987
+ else if($cFrom=="followers")
988
+ {
989
+ $counts = $socialObj->sfsi_get_instagramFollowers($instagram_user_name);
990
+ if(empty($counts))
991
+ {
992
+ $counts=(string) "0";
993
+ }
994
+ }
995
+ }
996
+
997
+ //Custom Skin Support {Monad}
998
+ if($active_theme == 'custom_support')
999
+ {
1000
+ if(get_option("instagram_skin"))
1001
+ {
1002
+ $icon = get_option("instagram_skin");
1003
+ }
1004
+ else
1005
+ {
1006
+ $active_theme = 'default';
1007
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1008
+ $icon=$icons_baseUrl.$active_theme."_instagram.png";
1009
+ }
1010
+ }
1011
+ else
1012
+ {
1013
+ $icon=$icons_baseUrl.$active_theme."_instagram.png";
1014
+ }
1015
+ break;
1016
+
1017
+ case "telegram" :
1018
+ $toolClass = "telegram_tool_bdr";
1019
+ $arrow_class = "bot_pintst_arow";
1020
+ $hoverdiv = '';
1021
+
1022
+ // $url = (isset($sfsi_section4_options['sfsi_telegram_pageURL'])) ? $sfsi_section4_options['sfsi_telegram_pageURL'] : '';
1023
+
1024
+ // $telegram_user_name = isset($sfsi_section4_options['sfsi_telegram_User']) && !empty($sfsi_section4_options['sfsi_telegram_User']) ? $sfsi_section4_options['sfsi_telegram_User'] : false;
1025
+
1026
+ //Giving alternative text to image
1027
+ if(isset($sfsi_section5_options['sfsi_telegram_MouseOverText']) && !empty($sfsi_section5_options['sfsi_telegram_MouseOverText']))
1028
+ {
1029
+ $alt_text = $sfsi_section5_options['sfsi_telegram_MouseOverText'];
1030
+
1031
+ }
1032
+ else
1033
+ {
1034
+ $alt_text = "telegram";
1035
+ }
1036
+ $messageus_icon = $visit_iconsUrl.$icon_name."_message.svg";
1037
+ $hoverdiv="";
1038
+ $cDisplay = isset($sfsi_section4_options['sfsi_telegram_countsDisplay']) && !empty($sfsi_section4_options['sfsi_telegram_countsDisplay']) ? $sfsi_section4_options['sfsi_telegram_countsDisplay']: false;
1039
+
1040
+ $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
1041
+ /* fecth no of counts if active in admin section */
1042
+ if($cDisplay=="yes" && $Displayc=="yes")
1043
+ {
1044
+
1045
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_telegram_manualCounts']);
1046
+ }
1047
+
1048
+ //Custom Skin Support {Monad}
1049
+ if($active_theme == 'custom_support')
1050
+ {
1051
+ if(get_option("telegram_skin"))
1052
+ {
1053
+ $icon = get_option("telegram_skin");
1054
+ }
1055
+ else
1056
+ {
1057
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1058
+ $icon=$icons_baseUrl."default_telegram.png";
1059
+ }
1060
+ }
1061
+ else
1062
+ {
1063
+ $icon=$icons_baseUrl.$active_theme."_telegram.png";
1064
+ }
1065
+ if(
1066
+ isset($sfsi_section2_options['sfsi_telegram_message']) && !empty($sfsi_section2_options['sfsi_telegram_message'])
1067
+ &&
1068
+ isset($sfsi_section2_options['sfsi_telegram_username']) && !empty($sfsi_section2_options['sfsi_telegram_username'])
1069
+
1070
+ ){
1071
+ $tg_username = $sfsi_section2_options['sfsi_telegram_username'];
1072
+ $tg_msg = stripslashes($sfsi_section2_options['sfsi_telegram_message']);
1073
+ $tg_msg = str_replace('"', '', str_replace("'", '', $tg_msg));
1074
+ $tg_msg = html_entity_decode(strip_tags($tg_msg), ENT_QUOTES,'UTF-8');
1075
+ $tg_msg = str_replace("%26%238230%3B", "...", $tg_msg);
1076
+ $tg_msg = rawurlencode($tg_msg);
1077
+
1078
+ $tele_url = "https://t.me/".$tg_username;
1079
+ $url = $tele_url."?&text=".urlencode($tg_msg);
1080
+ // var_dump($url);
1081
+ // die();
1082
+ // file_get_contents($url);
1083
+ }else{
1084
+ $url="#";
1085
+ $sfsi_onclick="event.preventDefault();";
1086
+ }
1087
+ if($active_theme=="glossy"){
1088
+ $sfsi_new_icons = "yes";
1089
+ }
1090
+ break;
1091
+ case "vk" :
1092
+ $toolClass = "vk_tool_bdr";
1093
+ $arrow_class = "bot_pintst_arow";
1094
+
1095
+ $url = (isset($sfsi_section2_options['sfsi_vk_pageURL'])) ? $sfsi_section2_options['sfsi_vk_pageURL'] : '';
1096
+
1097
+ // $vk_user_name = isset($sfsi_section4_options['sfsi_vk_User']) && !empty($sfsi_section4_options['sfsi_vk_User']) ? $sfsi_section4_options['sfsi_vk_User'] : false;
1098
+
1099
+ //Giving alternative text to image
1100
+ if(isset($sfsi_section5_options['sfsi_vk_MouseOverText']) && !empty($sfsi_section5_options['sfsi_vk_MouseOverText']))
1101
+ {
1102
+ $alt_text = $sfsi_section5_options['sfsi_vk_MouseOverText'];
1103
+ }
1104
+ else
1105
+ {
1106
+ $alt_text = "vk";
1107
+ }
1108
+
1109
+ $hoverdiv="";
1110
+
1111
+ $cDisplay = isset($sfsi_section4_options['sfsi_vk_countsDisplay']) && !empty($sfsi_section4_options['sfsi_vk_countsDisplay']) ? $sfsi_section4_options['sfsi_vk_countsDisplay']: false;
1112
+
1113
+ $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
1114
+
1115
+ /* fecth no of counts if active in admin section */
1116
+ if($cDisplay=="yes" && $Displayc=="yes")
1117
+ {
1118
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_vk_manualCounts']);
1119
+ }
1120
+
1121
+ //Custom Skin Support {Monad}
1122
+ if($active_theme == 'custom_support')
1123
+ {
1124
+ if(get_option("vk_skin"))
1125
+ {
1126
+ $icon = get_option("vk_skin");
1127
+ }
1128
+ else
1129
+ {
1130
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1131
+ $icon=$icons_baseUrl."default_vk.png";
1132
+ }
1133
+ }
1134
+ else
1135
+ {
1136
+ $icon=$icons_baseUrl.$active_theme."_vk.png";
1137
+ }
1138
+ if($active_theme=="glossy"){
1139
+ $sfsi_new_icons = "yes";
1140
+ }
1141
+
1142
+ break;
1143
+ case "ok" :
1144
+ $toolClass = "ok_tool_bdr";
1145
+ $arrow_class = "bot_pintst_arow";
1146
+
1147
+ $url = (isset($sfsi_section2_options['sfsi_ok_pageURL'])) ? $sfsi_section2_options['sfsi_ok_pageURL'] : '';
1148
+
1149
+ // $ok_user_name = isset($sfsi_section4_options['sfsi_ok_User']) && !empty($sfsi_section4_options['sfsi_ok_User']) ? $sfsi_section4_options['sfsi_ok_User'] : false;
1150
+
1151
+ //Giving alternative text to image
1152
+ if(isset($sfsi_section5_options['sfsi_ok_MouseOverText']) && !empty($sfsi_section5_options['sfsi_ok_MouseOverText']))
1153
+ {
1154
+ $alt_text = $sfsi_section5_options['sfsi_ok_MouseOverText'];
1155
+ }
1156
+ else
1157
+ {
1158
+ $alt_text = "ok";
1159
+ }
1160
+
1161
+ $hoverdiv="";
1162
+
1163
+ $cDisplay = isset($sfsi_section4_options['sfsi_ok_countsDisplay']) && !empty($sfsi_section4_options['sfsi_ok_countsDisplay']) ? $sfsi_section4_options['sfsi_ok_countsDisplay']: false;
1164
+
1165
+ $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
1166
+ /* fecth no of counts if active in admin section */
1167
+ if($cDisplay=="yes" && $Displayc=="yes")
1168
+ {
1169
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_ok_manualCounts']);
1170
+ }
1171
+
1172
+ //Custom Skin Support {Monad}
1173
+ if($active_theme == 'custom_support')
1174
+ {
1175
+ if(get_option("ok_skin"))
1176
+ {
1177
+ $icon = get_option("ok_skin");
1178
+ }
1179
+ else
1180
+ {
1181
+
1182
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1183
+ $icon=$icons_baseUrl."default_ok.png";
1184
+ }
1185
+ }
1186
+ else
1187
+ {
1188
+ $icon=$icons_baseUrl.$active_theme."_ok.png";
1189
+ }
1190
+ if($active_theme=="glossy"){
1191
+ $sfsi_new_icons = "yes";
1192
+ }
1193
+
1194
+ break;
1195
+ case "weibo" :
1196
+ $toolClass = "weibo_tool_bdr";
1197
+ $arrow_class = "bot_pintst_arow";
1198
+
1199
+ $url = (isset($sfsi_section2_options['sfsi_weibo_pageURL'])) ? $sfsi_section2_options['sfsi_weibo_pageURL'] : '';
1200
+
1201
+ // $weibo_user_name = isset($sfsi_section4_options['sfsi_weibo_User']) && !empty($sfsi_section4_options['sfsi_weibo_User']) ? $sfsi_section4_options['sfsi_weibo_User'] : false;
1202
+
1203
+ //Giving alternative text to image
1204
+ if(isset($sfsi_section5_options['sfsi_weibo_MouseOverText']) && !empty($sfsi_section5_options['sfsi_weibo_MouseOverText']))
1205
+ {
1206
+ $alt_text = $sfsi_section5_options['sfsi_weibo_MouseOverText'];
1207
+ }
1208
+ else
1209
+ {
1210
+ $alt_text = "weibo";
1211
+ }
1212
+
1213
+ $hoverdiv="";
1214
+
1215
+ $cDisplay = isset($sfsi_section4_options['sfsi_weibo_countsDisplay']) && !empty($sfsi_section4_options['sfsi_weibo_countsDisplay']) ? $sfsi_section4_options['sfsi_weibo_countsDisplay']: false;
1216
+
1217
+ $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
1218
+
1219
+ /* fecth no of counts if active in admin section */
1220
+ if($cDisplay=="yes" && $Displayc=="yes")
1221
+ {
1222
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_weibo_manualCounts']);
1223
+ }
1224
+
1225
+ //Custom Skin Support {Monad}
1226
+ if($active_theme == 'custom_support')
1227
+ {
1228
+ if(get_option("weibo_skin"))
1229
+ {
1230
+ $icon = get_option("weibo_skin");
1231
+ }
1232
+ else
1233
+ {
1234
+
1235
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1236
+ $icon=$icons_baseUrl."default_weibo.png";
1237
+ }
1238
+ }
1239
+ else
1240
+ {
1241
+ $icon=$icons_baseUrl.$active_theme."_weibo.png";
1242
+ }
1243
+ if($active_theme=="glossy"){
1244
+ $sfsi_new_icons = "yes";
1245
+ }
1246
+
1247
+ break;
1248
+ case "wechat" :
1249
+ $toolClass = "wechat_tool_bdr";
1250
+ $arrow_class = "bot_pintst_arow";
1251
+
1252
+ // $url = (isset($sfsi_section2_options['sfsi_wechat_pageURL'])) ? $sfsi_section2_options['sfsi_wechat_pageURL'] : '';
1253
+
1254
+ // $wechat_user_name = isset($sfsi_section4_options['sfsi_wechat_User']) && !empty($sfsi_section4_options['sfsi_wechat_User']) ? $sfsi_section4_options['sfsi_wechat_User'] : false;
1255
+
1256
+ //Giving alternative text to image
1257
+ if(isset($sfsi_section5_options['sfsi_wechat_MouseOverText']) && !empty($sfsi_section5_options['sfsi_wechat_MouseOverText']))
1258
+ {
1259
+ $alt_text = $sfsi_section5_options['sfsi_wechat_MouseOverText'];
1260
+ }
1261
+ else
1262
+ {
1263
+ $alt_text = "wechat";
1264
+ }
1265
+
1266
+ $hoverdiv="";
1267
+
1268
+ $cDisplay = isset($sfsi_section4_options['sfsi_wechat_countsDisplay']) && !empty($sfsi_section4_options['sfsi_wechat_countsDisplay']) ? $sfsi_section4_options['sfsi_wechat_countsDisplay']: false;
1269
+
1270
+ $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
1271
+
1272
+ /* fecth no of counts if active in admin section */
1273
+ if($cDisplay=="yes" && $Displayc=="yes")
1274
+ {
1275
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_wechat_manualCounts']);
1276
+ }
1277
+ $url = "weixin://dl/chat";
1278
+ if(
1279
+ (isset($sfsi_section2_options['sfsi_wechatFollow_option']) && "yes" == $sfsi_section2_options['sfsi_wechatFollow_option']) &&
1280
+
1281
+ (isset($sfsi_section2_options['sfsi_wechatShare_option']) && "yes" == $sfsi_section2_options['sfsi_wechatShare_option'])
1282
+ ){
1283
+ $hoverSHow = 1;
1284
+ $hoverdiv = "";
1285
+
1286
+ if(isset($sfsi_section2_options['sfsi_wechatFollow_option']) && !empty($sfsi_section2_options['sfsi_wechatFollow_option']) && "yes" == $option2['sfsi_wechatFollow_option']
1287
+
1288
+ && isset($sfsi_section2_options['sfsi_wechat_scan_image']) && !empty($sfsi_section2_options['sfsi_wechat_scan_image'])){
1289
+
1290
+ $image_url = $sfsi_section2_options['sfsi_wechat_scan_image'];
1291
+
1292
+ $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>";
1293
+ }
1294
+
1295
+ if(isset($sfsi_section2_options['sfsi_wechatShare_option']) && !empty($sfsi_section2_options['sfsi_wechatShare_option'])
1296
+ && "yes" == $sfsi_section2_options['sfsi_wechatShare_option']){
1297
+
1298
+ $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>";
1299
+ }
1300
+ }else{
1301
+
1302
+
1303
+ if(isset($sfsi_section2_options['sfsi_wechatFollow_option']) && !empty($sfsi_section2_options['sfsi_wechatFollow_option']) && "yes" == $sfsi_section2_options['sfsi_wechatFollow_option']
1304
+
1305
+ && isset($sfsi_section2_options['sfsi_wechat_scan_image']) && !empty($sfsi_section2_options['sfsi_wechat_scan_image'])){
1306
+
1307
+ $sfsi_onclick="event.preventDefault();sfsi_wechat_follow(\'".$sfsi_section2_options['sfsi_wechat_scan_image']."\')" ;
1308
+ }
1309
+
1310
+ if(isset($sfsi_section2_options['sfsi_wechatShare_option']) && 'yes'==($sfsi_section2_options['sfsi_wechatShare_option'])
1311
+ && "yes" == $sfsi_section2_options['sfsi_wechatShare_option']){
1312
+ if(!wp_is_mobile()){
1313
+ $sfsi_onclick="event.preventDefault();sfsi_wechat_share('".trim($current_url)."')" ;
1314
+ }else{
1315
+ $sfsi_onclick='';
1316
+ if(wp_is_mobile()){
1317
+ $sfsi_onclick = "console.log(event);event.stopPropagation&&event.stopPropagation();";
1318
+ }
1319
+ $sfsi_onclick.="event.preventDefault();sfsi_mobile_wechat_share('".trim($current_url)."')" ;
1320
+ }
1321
+ }
1322
+ $hoverSHow = 0;
1323
+ }
1324
+ //Custom Skin Support {Monad}
1325
+ if($active_theme == 'custom_support')
1326
+ {
1327
+ if(get_option("wechat_skin"))
1328
+ {
1329
+ $icon = get_option("wechat_skin");
1330
+ }
1331
+ else
1332
+ {
1333
+
1334
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1335
+ $icon=$icons_baseUrl."default_wechat.png";
1336
+ }
1337
+ }
1338
+ else
1339
+ {
1340
+ $icon=$icons_baseUrl.$active_theme."_wechat.png";
1341
+ }
1342
+ if($active_theme=="glossy"){
1343
+ $sfsi_new_icons = "yes";
1344
+ }
1345
+
1346
+ break;
1347
+
1348
+
1349
+ case "linkedin" :
1350
+ $width = 66;
1351
+ $toolClass = "linkedin_tool_bdr";
1352
+ $arrow_class = "bot_linkedin_arow";
1353
+
1354
+ $linkedIn_compayId = isset($sfsi_section2_options['sfsi_linkedin_followCompany']) && !empty($sfsi_section2_options['sfsi_linkedin_followCompany']) ? $sfsi_section2_options['sfsi_linkedin_followCompany'] : false;
1355
+
1356
+ $page = isset($sfsi_section2_options['sfsi_linkedin_page']) && !empty($sfsi_section2_options['sfsi_linkedin_page']) ? $sfsi_section2_options['sfsi_linkedin_page'] : false;
1357
+
1358
+ $follow = isset($sfsi_section2_options['sfsi_linkedin_follow']) && !empty($sfsi_section2_options['sfsi_linkedin_follow']) ? $sfsi_section2_options['sfsi_linkedin_follow'] : false;
1359
+
1360
+ $share = isset($sfsi_section2_options['sfsi_linkedin_SharePage']) && !empty($sfsi_section2_options['sfsi_linkedin_SharePage']) ? $sfsi_section2_options['sfsi_linkedin_SharePage'] : false;
1361
+
1362
+ $reBusiness = isset($sfsi_section2_options['sfsi_linkedin_recommendBusines']) && !empty($sfsi_section2_options['sfsi_linkedin_recommendBusines']) ? $sfsi_section2_options['sfsi_linkedin_recommendBusines'] : false;
1363
+
1364
+ $linkedIn_compay = $linkedIn_compayId;
1365
+ $linkedIn_ProductId = isset($sfsi_section2_options['sfsi_linkedin_recommendProductId']) && !empty($sfsi_section2_options['sfsi_linkedin_recommendProductId']) ? $sfsi_section2_options['sfsi_linkedin_recommendProductId'] : false;
1366
+
1367
+ $visit_icon = $visit_iconsUrl."linkedIn.png";
1368
+
1369
+ /*check for icons to display */
1370
+ $url = isset($sfsi_section2_options['sfsi_linkedin_pageURL']) && !empty($sfsi_section2_options['sfsi_linkedin_pageURL']) ? $sfsi_section2_options['sfsi_linkedin_pageURL'] : '';
1371
+
1372
+ if($follow =="yes" || $share =="yes" || $reBusiness =="yes")
1373
+ {
1374
+ $hoverSHow = 1;
1375
+ $hoverdiv = '';
1376
+
1377
+ if($page=="yes")
1378
+ {
1379
+ $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>";
1380
+ }
1381
+ if($follow=="yes")
1382
+ {
1383
+ $hoverdiv.="<div class='icon1'>".$socialObj->sfsi_LinkedInFollow($linkedIn_compayId)."</div>";
1384
+ }
1385
+ if($share=="yes")
1386
+ {
1387
+ $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_LinkedInShare()."</div>";
1388
+ }
1389
+ if($reBusiness=="yes")
1390
+ {
1391
+ $hoverdiv.="<div class='icon3'>".$socialObj->sfsi_LinkedInRecommend($linkedIn_compay,$linkedIn_ProductId)."</div>";
1392
+ $width=99;
1393
+ }
1394
+ }
1395
+
1396
+ $cFrom = isset($sfsi_section4_options['sfsi_linkedIn_countsFrom']) && !empty($sfsi_section4_options['sfsi_linkedIn_countsFrom']) ? $sfsi_section4_options['sfsi_linkedIn_countsFrom'] : false;
1397
+
1398
+ $disp = isset($sfsi_section4_options['sfsi_linkedIn_countsDisplay']) && !empty($sfsi_section4_options['sfsi_linkedIn_countsDisplay']) ? $sfsi_section4_options['sfsi_linkedIn_countsDisplay'] : false;
1399
+
1400
+ $dcount = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts'] : false;
1401
+
1402
+ /* fecth no of counts if active in admin section */
1403
+ if($disp=="yes" &&$dcount=="yes")
1404
+ {
1405
+ if($cFrom=="manual")
1406
+ {
1407
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_linkedIn_manualCounts']);
1408
+ }
1409
+ else if($cFrom=="follower")
1410
+ {
1411
+ $linkedIn_compay = $sfsi_section4_options['ln_company'];
1412
+ $ln_settings = array(
1413
+ 'ln_api_key'=>$sfsi_section4_options['ln_api_key'],
1414
+ 'ln_secret_key'=>$sfsi_section4_options['ln_secret_key'],
1415
+ 'ln_oAuth_user_token'=>$sfsi_section4_options['ln_oAuth_user_token']
1416
+ );
1417
+
1418
+ $followers=$socialObj->sfsi_getlinkedin_follower($linkedIn_compay,$ln_settings);
1419
+ (int) $followers;
1420
+ $counts=$socialObj->format_num($followers);
1421
+ if(empty($counts))
1422
+ {
1423
+ $counts = (string) "0";
1424
+ }
1425
+ }
1426
+ }
1427
+ $totwith = $width+28+$icons_space;
1428
+ $twt_margin = $totwith/2;
1429
+
1430
+ //Giving alternative text to image
1431
+ if(isset($sfsi_section5_options['sfsi_linkedIn_MouseOverText']) && !empty($sfsi_section5_options['sfsi_linkedIn_MouseOverText']))
1432
+ {
1433
+ $alt_text = $sfsi_section5_options['sfsi_linkedIn_MouseOverText'];
1434
+ }
1435
+ else
1436
+ {
1437
+ $alt_text = "LINKEDIN";
1438
+ }
1439
+
1440
+ //Custom Skin Support {Monad}
1441
+ if($active_theme == 'custom_support')
1442
+ {
1443
+ if(get_option("linkedin_skin"))
1444
+ {
1445
+ $icon = get_option("linkedin_skin");
1446
+ }
1447
+ else
1448
+ {
1449
+ $active_theme = 'default';
1450
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1451
+ $icon=$icons_baseUrl.$active_theme."_linkedin.png";
1452
+ }
1453
+ }
1454
+ else
1455
+ {
1456
+ $icon=$icons_baseUrl.$active_theme."_linkedin.png";
1457
+ }
1458
+ break;
1459
+
1460
+ default:
1461
+ $border_radius = "";
1462
+ //$border_radius =" border-radius:48%;";
1463
+ $cmcls = "cmcls";
1464
+ $padding_top = "";
1465
+ if($active_theme=="badge")
1466
+ {
1467
+ //$border_radius="border-radius: 18%;";
1468
+ }
1469
+ if($active_theme=="cute")
1470
+ {
1471
+ //$border_radius="border-radius: 38%;";
1472
+ }
1473
+
1474
+ $custom_icon_urls = unserialize($sfsi_section2_options['sfsi_CustomIcon_links']);
1475
+ $url = (isset($custom_icon_urls[$icon_n]) && !empty($custom_icon_urls[$icon_n])) ? $custom_icon_urls[$icon_n]:'';
1476
+ $toolClass = "custom_lkn";
1477
+ $arrow_class = "";
1478
+ $custom_icons_hoverTxt = unserialize($sfsi_section5_options['sfsi_custom_MouseOverTexts']);
1479
+ $icons = unserialize($sfsi_section1_options['sfsi_custom_files']);
1480
+ $icon = isset($icons[$icon_n])?$icons[$icon_n]:'';
1481
+
1482
+ //Giving alternative text to image
1483
+ if(!empty($custom_icons_hoverTxt[$icon_n]))
1484
+ {
1485
+ $alt_text = $custom_icons_hoverTxt[$icon_n];
1486
+ }
1487
+ else
1488
+ {
1489
+ $alt_text = "SOCIALICON";
1490
+ }
1491
+ break;
1492
+ }
1493
+ $icons="";
1494
+ /* apply size of icon */
1495
+ if($is_front==0)
1496
+ {
1497
+ $icons_size = $sfsi_section5_options['sfsi_icons_size'];
1498
+ $itemselector = "sfsi_wicons shuffeldiv";
1499
+ $innrselector = "inerCnt";
1500
+ }
1501
+ else
1502
+ {
1503
+ $icons_size = 51;
1504
+ $itemselector = "sfsi_wicons";
1505
+ $innrselector = "inerCnt";
1506
+ }
1507
+
1508
+ /* spacing and no of icons per row */
1509
+ $icons_space = '';
1510
+ $icons_space = $sfsi_section5_options['sfsi_icons_spacing'];
1511
+ $icon_width = (int)$icons_size;
1512
+ /* check for mouse hover effect */
1513
+ $icon_opacity="1";
1514
+
1515
+ if($sfsi_section3_options['sfsi_mouseOver']=='yes')
1516
+ {
1517
+ $mouse_hover_effect=$sfsi_section3_options["sfsi_mouseOver_effect"];
1518
+ if($mouse_hover_effect=="fade_in" || $mouse_hover_effect=="combo")
1519
+ {
1520
+ $icon_opacity="0.6";
1521
+ }
1522
+ }
1523
+
1524
+ $toolT_cls='';
1525
+ if((int) $icon_width <=49 && (int) $icon_width >=30)
1526
+ {
1527
+ $bt_class="";
1528
+ $toolT_cls="sfsiTlleft";
1529
+ }
1530
+ else if((int) $icon_width <=20)
1531
+ {
1532
+ $bt_class="sfsiSmBtn";
1533
+ $toolT_cls="sfsiTlleft";
1534
+ }
1535
+ else
1536
+ {
1537
+ $bt_class="";
1538
+ $toolT_cls="sfsiTlleft";
1539
+ }
1540
+
1541
+ if($toolClass=="rss_tool_bdr" || $toolClass=='email_tool_bdr' || $toolClass=="custom_lkn" || $toolClass=="instagram_tool_bdr" )
1542
+ {
1543
+ $new_window = sfsi_checkNewWindow();
1544
+ $url = $url;
1545
+ }
1546
+ else if($hoverSHow)
1547
+ {
1548
+ if(!wp_is_mobile())
1549
+ {
1550
+ $new_window = sfsi_checkNewWindow();
1551
+ $url = $url;
1552
+ }
1553
+ else
1554
+ {
1555
+ $new_window = '';
1556
+ $url = "javascript:void(0)";
1557
+ }
1558
+ }
1559
+ else
1560
+ {
1561
+ $new_window = sfsi_checkNewWindow();
1562
+ $url = $url;
1563
+ }
1564
+
1565
+ if(isset($sfsi_onclick)){
1566
+ $new_window ="";
1567
+ }
1568
+
1569
+ if(!isset($sfsi_new_icons)){
1570
+ $sfsi_new_icons =false;
1571
+ }
1572
+ if($sfsi_new_icons){
1573
+ $margin_bot="4px;";
1574
+ }else{
1575
+ $margin_bot="5px;";
1576
+ }
1577
+ if($sfsi_section4_options['sfsi_display_counts']=="yes")
1578
+ {
1579
+ if($sfsi_new_icons){
1580
+ $margin_bot = "29px;";
1581
+ }else{
1582
+ $margin_bot = "30px;";
1583
+ }
1584
+ }
1585
+ if(isset($icon) && !empty($icon) && filter_var($icon, FILTER_VALIDATE_URL))
1586
+ {
1587
+ $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."' >";
1588
+
1589
+ $icons.= "<div class='".$innrselector."'>";
1590
+
1591
+ $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.'"':'')." >";
1592
+ $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."' />";
1593
+ $icons.= '</a>';
1594
+ if(isset($counts) && $counts!='')
1595
+ {
1596
+ $icons.= '<span class="bot_no '.$bt_class.'">'.$counts.'</span>';
1597
+ }
1598
+ if($hoverSHow && !empty($hoverdiv))
1599
+ {
1600
+ $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.'">';
1601
+ $icons.= '<span class="bot_arow '.$arrow_class.'"></span>';
1602
+ $icons.= '<div class="sfsi_inside">'.$hoverdiv."</div>";
1603
+ $icons.= "</div>";
1604
+ }
1605
+ $icons.="</div>";
1606
+ $icons.="</div>";
1607
+ }
1608
+ return $icons;
1609
+ }
1610
+
1611
+ /* make url for new window */
1612
+ function sfsi_checkNewWindow()
1613
+ {
1614
+ global $wpdb;
1615
+ $sfsi_section5_options= unserialize(get_option('sfsi_section5_options',false));
1616
+ if($sfsi_section5_options['sfsi_icons_ClickPageOpen']=="yes")
1617
+ {
1618
+ return $new_window="target='_blank'";
1619
+ }
1620
+ else
1621
+ {
1622
+ return '';
1623
+ }
1624
+ }
 
 
1625
  ?>
readme.txt CHANGED
@@ -1,847 +1,861 @@
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
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.9
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
+
278
+ = 2.3.9 =
279
+ * Corrected the jQuery admin area problem
280
+ * Solved the jQuery error for shortcode
281
+ * Solved feed claiming
282
+ * Option name in Q3 changed
283
+
284
+ = 2.3.8 =
285
+ * Fixed the text in theme banner.
286
+ * Fixed follow icon and subscription box when Curl is disabled.
287
+ * Fixed cURL errors.
288
+
289
+ = 2.3.7 =
290
+ * solved: Wrong link on icons when curl not installed.
291
+
292
+ = 2.3.6 =
293
+ * Solved: Updated Text changes.
294
+
295
+ = 2.3.5 =
296
+ * Solved: Updated Text changes.
297
+
298
+ = 2.3.4 =
299
+ * Solved: Updated Text changes.
300
+ * Solved: Updated link for email.
301
+
302
+ = 2.3.3 =
303
+ * Solved: Updated the email link and subscription action.
304
+
305
+ = 2.3.2 =
306
+ * Solved: Updated feedback system.
307
+
308
+ = 2.3.1 =
309
+ * Solved: Updated feedback system.
310
+
311
+ = 2.3.0 =
312
+ * Solved: Errors on the footer in dashboard corected.
313
+ * Solved: Updated logic for inclusion of external js.
314
+ * Solved: Some grametical errors.
315
+ * Solved: Updated feedback system.
316
+
317
+ = 2.2.9 =
318
+ * Solved: After post icons shown.
319
+
320
+ = 2.2.8 =
321
+ * Solved: Header already sent error on some servers.
322
+
323
+ = 2.2.7 =
324
+ * Solved: Updated feedback system to next version.
325
+ * Solved: Responsive Icons UI updated.
326
+
327
+ = 2.2.6 =
328
+
329
+ * New Feature: Responsive icons in free plugin.
330
+ * Solved: Icons not rendering on woocomerce product page.
331
+ * Solved: Twitter url changed to share from intent for better reliablity.
332
+ * Solved: Lots of little adjustments to improve the UI and functionality.
333
+ * Solved: Removed Google Plus.
334
+ * Solved: Stop loading unused external library code for faster load.
335
+ * Solved: Removed curl notice while activation.
336
+ * Solved: Fixed broken arrays and missing indexes.
337
+ * Solved: Updated feedback system to next version.
338
+
339
+ = 2.2.5 =
340
+ * Integrated feedback system
341
+
342
+ = 2.2.4 =
343
+ * Solved: Unserialized error corrected.
344
+ * Solved: All curl calls to wp_remote.
345
+ * Solved: Notices in front end solved.
346
+
347
+ = 2.2.3 =
348
+ * Solved: Footer Error solved.
349
+ * Solved: Removed most of the html errors.
350
+ * Solved: Less anoying sidebar.
351
+
352
+ = 2.2.2 =
353
+ * Solved: More icons upadated
354
+ * Solved: Icon backgrounds updated
355
+
356
+ = 2.2.1 =
357
+ * Solved: woocomerce conflict resolved
358
+ * Solved: alert in case on conflict.
359
+ * new Feature: More icons for free plugin
360
+
361
+ = 2.2.0 =
362
+ * Solved: Critical Security Patch.
363
+
364
+ = 2.1.9 =
365
+ * Solved: Security Patch.
366
+
367
+ = 2.1.8 =
368
+ * Solved: security update.
369
+
370
+ = 2.1.7 =
371
+ * Solved: save button not working.
372
+
373
+ = 2.1.6 =
374
+ * Solved: compatablity issue with older versions.
375
+
376
+ = 2.1.5 =
377
+ * Solved: google plus is deprecated
378
+ * Solved: Sf count not shown
379
+ * Solved: Sf subscribe form opens blank page.
380
+ * solved: decreased the manual intervestions of upgradation to premium.
381
+
382
+ = 2.1.4 =
383
+ * Solved: Changed theme check url to match bloginfo url.
384
+
385
+ = 2.1.3 =
386
+ * Solved: Email validation for Offline chat.
387
+ * Solved: Premium notification breaking the dashboard structure.
388
+ * Solved: changed option for linkedin count
389
+ * Solved: ajax_object conflict with themes.
390
+ * Solved: new keyword check from page title, page keywords and page description.
391
+
392
+ = 2.1.2 =
393
+ * Solved: Text optimized
394
+
395
+ = 2.1.1 =
396
+ * Solved: design changes for chat.
397
+ * Solved: unexpected charactor "[" error for php version 5.3.
398
+
399
+ = 2.1.0 =
400
+ * New Feature: Chat for site admin on our settings page.
401
+ * Solved: removed deprecated jQuery functions.
402
+ * Solved: Rectangle icon alignemnt problem on some themes solved.
403
+
404
+ = 2.0.9 =
405
+ * Banner for animation section in Question 4 added
406
+ * Different icon for mouseover section pointing in premium in Question 4 added
407
+ * Removed theme icon banner if no match
408
+
409
+ = 2.0.8 =
410
+ * Solved: Notification bar cannot be seen anymore
411
+ * Solved: cleared the float elements after notice.
412
+
413
+ = 2.0.7 =
414
+ * Round green follow button doesn't show - fixed
415
+ * Footer optimized
416
+
417
+ = 2.0.6 =
418
+ * Fixed bug that sometimes banner didn't disappear
419
+ * Links in review message updated
420
+
421
+ = 2.0.5 =
422
+ * Issue with click on icons on mobile fixed
423
+
424
+ = 2.0.4 =
425
+ * Corrected missing ? in shortcode
426
+
427
+ = 2.0.3 =
428
+ * Optimized texts
429
+
430
+ = 2.0.2 =
431
+ * Addthis removed due to GDPR
432
+ * New option to switch debugging mode on/off
433
+
434
+ = 2.0.1 =
435
+ * Issue of window.onscroll function overriding and breaking other plugins/themes fixed
436
+
437
+ = 2.0.0 =
438
+ * New question 3 to facilitate placement of icons
439
+
440
+ = 1.9.7 =
441
+ * Stopped setting cookies for pop-up selection "if user moved to end of page" as not needed in this case (relevant for GDPR compliance)
442
+
443
+ = 1.9.6 =
444
+ * Usage instructions updated
445
+
446
+ = 1.9.5 =
447
+ * Facebook like count fixed (previously only fixed for likes of user's website, not likes of Facebook page)
448
+
449
+ = 1.9.4 =
450
+ * Youtube count and direct follow issues fixed
451
+
452
+ = 1.9.3 =
453
+ * Facebook like count issue fixed
454
+ * Youtube saving issue when clicked on "Save all settings" - fixed now
455
+
456
+ = 1.9.2 =
457
+ * Instagram followers count issue fixed
458
+ * Twitter count issue fixed
459
+ * Facebook share count issue fixed
460
+
461
+ = 1.9.1 =
462
+ * Errors with "non-numeric value" fixed
463
+
464
+ = 1.8.9 =
465
+ * Error log files removed
466
+
467
+ = 1.8.7 =
468
+ * Updated description texts
469
+
470
+ = 1.8.6 =
471
+ * Made different placement options more visible
472
+
473
+ = 1.8.5 =
474
+ * Text changes
475
+
476
+ = 1.8.4 =
477
+ * Added referring opportunity
478
+
479
+ = 1.8.3 =
480
+ * Saving of links for custom icons sometimes didn't work. Fixed now.
481
+
482
+ = 1.8.2 =
483
+ * Links updated
484
+
485
+ = 1.8.1 =
486
+ * Themed icon notifications optimized
487
+
488
+ = 1.8.0 =
489
+ * CSS & JAVASCRIPT files are added in footer instead of header
490
+
491
+ = 1.7.9 =
492
+ * Banners added
493
+ * Spelling mistakes corrected
494
+
495
+ = 1.7.8 =
496
+ * Added more themed icon banners
497
+
498
+ = 1.7.6 =
499
+ * Comment to selecting of specific text and picture per page/post added
500
+
501
+ = 1.7.5 =
502
+ * Link to more premium icons added
503
+
504
+ = 1.7.4 =
505
+ * Better error messages in case of Curl errors
506
+ * Optimized review bar
507
+ * Code not remaining on site after de-installation
508
+
509
+ = 1.7.2 =
510
+ * More individualized offer for themed icons
511
+
512
+ = 1.7.1 =
513
+ * Claiming process optimized
514
+
515
+ = 1.6.9 =
516
+ * Counts for social buttons optimized and Instagram counter bug fixed
517
+ * Link to more social sharing buttons added
518
+
519
+ = 1.6.8 =
520
+ * Issue fixed that sometimes incorrect error-messages showed on front-end
521
+ * Credit link updated
522
+ * More icons added for pro-version
523
+ * SpecificFeeds adjusted for paid option
524
+ * De-installation will now clear database entirely
525
+ * Upgrade to pro-link renamed
526
+
527
+ = 1.6.6 =
528
+ * New option for tailor-made icons
529
+
530
+ = 1.6.5 =
531
+ * Activation/deactivation links optimized
532
+
533
+ = 1.6.4 =
534
+ * Links to additional features optimized
535
+
536
+ = 1.6.3 =
537
+ * Notification issues corrected
538
+
539
+ = 1.6.1 =
540
+ * Dismissal of notification lead to plugin setting's page previously, this is corrected now
541
+
542
+ = 1.5.8 =
543
+ * Educational comments added
544
+
545
+ = 1.5.7 =
546
+ * Conflicts with other plugins resolved
547
+
548
+ = 1.5.6 =
549
+ * Instructions for trouble shooting optimized
550
+
551
+ = 1.5.5 =
552
+ * Facebook icon leading to empty pages (in specific cases) fixed
553
+
554
+ = 1.5.4 =
555
+ * Twitter sharing text issues with forwarded slashes fixed
556
+ * Links to review sites adjusted following Wordpress changes in review section
557
+
558
+ = 1.5.3 =
559
+ * Missing counts for email follow option fixed (when there are no subscribers yet)
560
+ * Extra explanation text added
561
+
562
+ = 1.5.2 =
563
+ * Corner case vulnerability fixed
564
+
565
+ = 1.5.1 =
566
+ * Claiming process simplified
567
+ * Mouse-over for custom icons sometimes showed wrong text, corrected now
568
+
569
+ = 1.4.8 =
570
+ * Size of custom icons corrected
571
+ * Cute G+ icon too small before, corrected now
572
+ * Better description how to get G+ API key added
573
+ * Unsupported "live" function in jquery fixed
574
+
575
+ = 1.4.7 =
576
+ * Icons sometimes on top of each other - fixed
577
+
578
+ = 1.4.5 =
579
+ * E-Notice errors fixed
580
+ * Facebook share button added for before/after posts
581
+
582
+ = 1.4.4 =
583
+ * Errors fixed with color code sanitizing function
584
+
585
+ = 1.4.3 =
586
+ * Removed the js files from plugin and using the ones provided by WP now
587
+
588
+ = 1.4.2 =
589
+ * POST calls optimized (sanitize, escape, validate)
590
+
591
+ = 1.4.1 =
592
+ * Removed feedback option
593
+ * Tags changed
594
+
595
+ = 1.3.9 =
596
+ * Added Pinterest button for rectangle icons after/before posts
597
+ * 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
598
+
599
+ = 1.3.8 =
600
+ * Review request changed
601
+
602
+ = 1.3.7 =
603
+ * Claiming links corrected
604
+ * Icons don't have any mouseover-effects (e.g. fade in) by default anymore
605
+
606
+ = 1.3.6 =
607
+ * Overkill declaration in the CSS fixed
608
+ * Custom icons can now have mailto:-functionality
609
+ * jQuery UI issues fixed
610
+ * Rectangle G+ icon now shown as last one as it takes more space (looks better)
611
+ * Comment added that partner plugin https://wordpress.org/plugins/ultimate-social-media-plus/ now allows buttons in various languages
612
+
613
+ = 1.3.5 =
614
+ * jQuery issues/conflicts fixed
615
+ * Placing icons on blog homepage had issues with counts, fixed now
616
+ * Script issues fixed
617
+ * Text added on plugin setting's page for easier understanding
618
+ * Issue that dashboard sometimes doesn't load fixed
619
+ * Instagram thin-icon issue fixed (misspelled, therefore didn't show)
620
+
621
+ = 1.3.4 =
622
+ * Facebook changed their API - please upgrade if you want Facebook sharing on mobile to work properly on your site!
623
+
624
+ = 1.3.3 =
625
+ * Feed claiming optimized
626
+ * New 'Visit us'-icon for Twitter added which matches the new Twitter-design
627
+ * PNG-file error for Houzz icon corrected
628
+ * Incorrect G+ icon replaced
629
+ * Error message for sites where subscription form doesn't work added
630
+ * Extra comments added how to claim a feed and several other texts optimized
631
+
632
+ = 1.3.2 =
633
+ * Feed claiming optimized
634
+
635
+ = 1.3.1 =
636
+ * Shortpixel link fixed
637
+
638
+ = 1.3.0 =
639
+ * Feed claiming bug fixed
640
+
641
+ = 1.2.9 =
642
+ * New G+ button updated
643
+ * Quicker claiming of feed possible
644
+ * Comments to share-button added
645
+ * Credit to shortpixel added
646
+
647
+ = 1.2.8 =
648
+ * New feature: Users can now decide where exactly the floating icons will display
649
+ * Internal links corrected
650
+ * Fixed: Targets only labels within the social icons div.
651
+ * Subscriber counts fixed
652
+ * Apostrophe issues fixed
653
+ * Conflicts with Yoast SEO plugin resolved
654
+ * PHP errors fixed
655
+
656
+ = 1.2.7 =
657
+ * Count issues fixed - please upgrade!
658
+ * Style constructor updated to PHP 5
659
+ * Text adjustments in admin area
660
+
661
+ = 1.2.6 =
662
+ * (Minor) compatibility issues with Wordpress 4.3. fixed
663
+
664
+ = 1.2.5 =
665
+ * Updating process fixed
666
+
667
+ = 1.2.4 =
668
+ * New question 8 added: you can now also add a subscription form to your site
669
+
670
+ = 1.2.3 =
671
+ * More explanations added how to fix if counts don't work
672
+ * Icon files are compressed now for faster loading - thank you ShortPixel.com!
673
+ * A typo in the code threw an error message in certain cases, this is fixed now
674
+
675
+ = 1.2.2 =
676
+ * jQuery issues fixed
677
+ * Vulnerability issues fixed
678
+ * Twitter-button didn't get displayed in full sometimes, this is fixed now
679
+ * CSS issues (occurred on some templates) fixed
680
+ * Facebook updated API (so counts didn't get displayed correctly anymore), we updated the plugin accordingly
681
+
682
+ = 1.2.1 =
683
+ * Template-specific issues fixed
684
+ * Layout in admin-area optimized
685
+ * Sometimes title didn't get rendered correctly, this is fixed now
686
+ * Youtube API changes also updated in plugin
687
+ * Outdated (and vulnerable) JS library updated
688
+ * New options for placing icons after every post (under question 6)
689
+
690
+ = 1.2.0 =
691
+ * Links with '@' in the url (e.g. as in Flickr-links) now get recognized as well
692
+ * Alignment issues of icons in tooltip fixed
693
+ * Layout optimizations in plugin area
694
+ * Users can now select to have the number of likes of their facebook page displayed as counts of the facebook icon on their blogs
695
+ * Typos in admin area corrected
696
+
697
+ = 1.1.1.12 =
698
+ * Vulnerabilities (AJAX) fixed
699
+ * OG-issues (caused in conjunction with other plugins) fixed
700
+
701
+ = 1.1.1.11 =
702
+ * Conflicts with Yoast SEO plugin sorted
703
+ * Performance optimized
704
+ * Facebook sharing text issues fixed
705
+ * Sometimes facebook share count didn't increase despite liking it, this should be fixed now (to be observed)
706
+ * When sharing from a Facebook business page it returned errors, this should be fixed now (to be observed)
707
+ * Share-box only displayed partly sometimes, fixed now
708
+ * Template CSS conflicts solved in the plugin
709
+ * Adding of unwanted spans fixed
710
+
711
+ = 1.1.1.10 =
712
+ * OG-issues fixed
713
+ * Text which gets shared sometimes didn't contain spaces, fixed now
714
+ * Plugin name in php file shortened
715
+ * More explanation texts added in admin area
716
+ * Facebook share window sometimes only got displayed partially, fixed now
717
+ * Other facebook share issues fixed
718
+ * Template CSS issues causing icons to be displayed not in one straight horizontal line fixed
719
+ * In some cases facebook counts didn't increase if liked, this should be fixed now
720
+ * Tested for up to Wordpress version 4.2.1.
721
+
722
+ = 1.1.1.9 =
723
+ * Issues with custom icon upload & custom icon removal fixed
724
+ * Box asking for review didn't disappear in some cases, fixed now
725
+ * Some design issues with some CSS for icons after every post, fixed now
726
+ * Changes in text / guide in plugin
727
+ * Conflicts with YOAST SEO plugin sorted
728
+ * Conflicts with ADD MEDIA button and ADD LINK sorted
729
+ * In some cases activating the icons after every post the content disappeared, this is fixed now
730
+ * New option to center icons after posts
731
+ * 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
732
+ * G+ window disappeared sometimes after moving over it, fixed now
733
+ * LinkedIn icon disappeared after moving over it a few times, fixed now
734
+ * Several other CSS issues fixed
735
+ * Sometimes tooltips didn't appear, fixed now
736
+ * When plugin is activated some toggle functionality stopped working, fixed now
737
+ * Click on icons after posts now shares the post, not the blog page
738
+ * Several little design enhancements
739
+ * When user selected that icons should show floating in the bottom right they floated in the center right, fixed now
740
+ * Issues with Youtube direct follow fixed
741
+ * Number of Instagram followers not always got pulled correctly, fixed now
742
+ * When site loaded the widget sometimes overlapped with others, fixed now
743
+
744
+ = 1.1.1.8 =
745
+ * Plugin's menu button now has less aggressive colors
746
+ * Sometimes sharing via facebook returned error messages, this is fixed now
747
+ * Conflicts with WooTheme Whitelight resolved
748
+ * Occasional problems with https-sites previously, now compatibile
749
+
750
+ = 1.1.1.7 =
751
+ * The 'counts' were not always correct, fixed now
752
+ * Conflicts with page editor resolved
753
+ * Last plugin update fixed Youtube points, however the 'channel' was as default, set back to 'username'
754
+ * Mouseover-text for social icons now correct
755
+ * Some layout adjustment in the admin area (menu-button will also be adjusted in next release)
756
+ * Setting order of icons sometimes didnt work properly when custom icons got uploaded, this is fixed now
757
+
758
+ = 1.1.1.6 =
759
+ * jQuery updated, now most conflicts with other plugins should be resolved
760
+
761
+ = 1.1.1.5 =
762
+ * Conflicts with several plugins sorted
763
+ * Icons can now be disabled on mobile
764
+ * Renaming of 'Youtube Channel' to 'Username' to avoid confusion
765
+ * On some templates there were alignment issues of the icons, this is fixed
766
+ * Menu button sub-menu removed (wasn't really necessary)
767
+ * Lightbox in admin area for custom icon upload shortened (was too large)
768
+ * Tags for all icons defined (for SEO purposes)
769
+
770
+ = 1.1.1.4 =
771
+ * If given only a 'visit us'-function for the Twitter-icon, the is no tooltip anymore (like for the other icons)
772
+ * Sharing sometimes pulled an incorrect image, fixed now
773
+ * Pop-up now also has an 'x' in the top right corner for people to close
774
+ * Sometimes icons overlapped, this is fixed now
775
+ * Several issues fixed when users put shortcode into the header
776
+ * Sometimes our request to ask users for feedback got displayed too early, this is fixed now
777
+ * 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
778
+ * Several conflicts with other plugins resolved
779
+ * Some CSS issues fixed
780
+ * Steps 1., 2., 3. in the guide how to upload a custom icon were sometimes missing, this is fixed now
781
+ * Title removed now when using shortcodes
782
+ * Some error messages in developer tools not showing up anymore
783
+
784
+ = 1.1.1.3 =
785
+ * Several CSS issues fixed
786
+
787
+ = 1.1.1.2 =
788
+ * Shortcode now available too, so that you can place the icons wherever you want: Insert [DISPLAY_ULTIMATE_SOCIAL_ICONS]
789
+ * 'Visit us'-option now also available for Twitter-users
790
+ * Description added for people helping to find their LinkedIn-ID
791
+ * Description added for people helping to generate their API-keys for Twitter, LInkedIn and G+ to display their counts automatically
792
+ * Design of pop-up for upload of custom icons changed, to better explain required steps
793
+ * 'Icons per row' didn't work properly in specific cases, fixed now
794
+ * 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.
795
+
796
+ = 1.1.1.1 =
797
+ * 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.
798
+ * Question #5 The 'Sticking & Floating' -> 'Where shall they float?' was storing the right value but showing the 'Top - Left' always
799
+ * 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
800
+
801
+ = 1.1.1.0 =
802
+ * Following user suggestions we made it easier to remove the credit link (if previously activated by user - otherwise it doesn't display)
803
+
804
+ = 1.1.0.9 =
805
+ * Some servers don't display svg-images due to security issues, so we switched back to png
806
+ * Removed the comment line which may be me causes the syntax error at the time of installation
807
+
808
+ = 1.1.0.8 =
809
+ * In specific cases some share-icons were missing, this is fixed now
810
+ * Plugin sent error messages if user had developer mode active, this won't happen anymore
811
+
812
+ = 1.1.0.7 =
813
+ * 'Visit us' icons sometimes didn't get displayed in the backend, this is fixed now
814
+ * Also the design of the 'Visit us'-icons on the front end has been improved
815
+ * If the email-delivery option is used, emails now get sent out much faster (central server gets pinged)
816
+ * Pop-up in some cases didn't get shown on inner pages, fixed now
817
+ * Some responsive adjustments for mobile
818
+ * Custom icons had some resizing issues, fixed now
819
+
820
+ = 1.1.0.6 =
821
+ * 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
822
+ * 'Visit us'-icons in the tooltips were no vector-icons, which made them look fuzzy in some browsers, this is fixed now
823
+
824
+ = 1.1.0.5 =
825
+ * On certain pages sometimes the youtube icon didnt show, this is fixed now
826
+ * Custom uploaded icons got a black background, this is fixed now
827
+ * In the admin panel the plugin conflicted (in rare cases) with other plugins, this is fixed
828
+ * Pop-ups sometimes didn't disappear automatically, fixed now
829
+ * The tooltip for floating icons now gets displayed so that it is always visible
830
+
831
+ = 1.1.0.4 =
832
+ * Several changes done to optimize display on mobile & tablets
833
+ * Issues with widget fixed (in rare cases the separating lines between widgets didnt get displayed correctly)
834
+ * Deletion of headline for widget works now
835
+ * Slight alignment issues of share- and like buttons at the end of blog posts corrected
836
+
837
+ = 1.1.0.3 =
838
+ * Tooltip from share-option sometimes appeared some other strange places on the site, this is fixed now
839
+ * Extra checks added if user enters nonsense in the admin area
840
+ * Links to our review site added (please please give 5 stars)
841
+
842
+ = 1.1.0.2 =
843
+ * In specific cases there were Javascript loading errors, that's fixed now
844
+ * Moving from the icons to the tooltips made the tooltips disappear sometimes, now they are 'stickier'
845
+ * In specific cases the facebook-icon was displayed very small in the tooltip, fixed now
846
+
847
+ = 1.1.0.1 =
848
+ * Corrected that when only the 'visit us' function is selected, no tooltip is displayed
849
+
850
+ = 1.1 =
851
+ * Email-icon didn't get displayed for all design sets (on the website), this is fixed now
852
+ * Alignments of buttons in tooltips optimized
853
+ * Updated readme.txt
854
+
855
+ = 1.0 =
856
+ * First release
857
+
858
+ == Upgrade Notice ==
859
+
860
+ = 2.3.9 =
861
  Please upgrade
ultimate_social_media_icons.php CHANGED
@@ -6,7 +6,7 @@ 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.8
10
  License: GPLv2 or later
11
  */
12
  require_once 'analyst/main.php';
@@ -88,7 +88,7 @@ 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
  }
6
 
7
  Author: UltimatelySocial
8
  Author URI: http://ultimatelysocial.com
9
+ Version: 2.3.9
10
  License: GPLv2 or later
11
  */
12
  require_once 'analyst/main.php';
88
 
89
  register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
90
 
91
+ if (!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 2.39) {
92
 
93
  add_action("init", "sfsi_update_plugin");
94
  }
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,503 +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
-
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') ? '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>
359
-
360
- <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>
361
-
362
- <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>
363
-
364
- <div class="lnkdin_instruction">
365
- 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.
366
- </div>
367
- </div>
368
- </div>
369
-
370
- <!-- TELEGRAM ICON -->
371
- <div class="row telegram_section">
372
- <h2 class="sfsicls_telegram">Telegram</h2>
373
- <div class="inr_cont telegram_tab_2">
374
- <p>Clicking on this icon will allow users to contact you on Telegram.</p>
375
- <!-- <input name="sfsi_telegram_message" checked="true" type="checkbox" value="yes" class="" style="display:none"/> -->
376
-
377
- <p class="radio_section fb_url no_check ">
378
- <label>Pre-filled message</label>
379
- <input name="sfsi_telegram_message" type="text" value="<?php echo ($option2['sfsi_telegram_message'] != '') ? $option2['sfsi_telegram_message'] : ''; ?>" placeholder="my_telegram_name" class="add" />
380
- </p>
381
-
382
- <p class="radio_section fb_url no_check">
383
- <label>My Telegram username</label>
384
- <input name="sfsi_telegram_username" type="url" placeholder="username" value="<?php echo ($option2['sfsi_telegram_username'] != '') ? $option2['sfsi_telegram_username'] : ''; ?>" class="add" />
385
- </p>
386
-
387
- <div class="sfsi_new_prmium_follw">
388
- <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>
389
- </div>
390
- </div>
391
- </div>
392
-
393
- <!-- END TELEGRAM ICON -->
394
-
395
- <!-- WECHAT ICON -->
396
- <div class="row wechat_section">
397
- <h2 class="sfsicls_wechat">WeChat</h2>
398
- <div class="inr_cont wechat_tab_2">
399
- <p>When clicked on, your website/blog will be shared on WeChat.</p>
400
- <input name="sfsi_wechatShare_option" checked="true" type="checkbox" value="yes" class="" style="display:none" />
401
- <div class="sfsi_new_prmium_follw">
402
- <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>
403
- </div>
404
- </div>
405
- </div>
406
- <!-- END WECHAT ICON -->
407
- <!-- WEIBO ICON -->
408
- <div class="row weibo_section">
409
- <h2 class="sfsicls_weibo">Weibo</h2>
410
- <div class="inr_cont weibo_tab_2">
411
- <p>When clicked on, users will get directed to your Weibo page.</p>
412
-
413
- <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>
414
-
415
- <div class="sfsi_new_prmium_follw">
416
- <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>
417
- </div>
418
- </div>
419
- </div>
420
- <!-- END WEIBO ICON -->
421
-
422
- <!-- VK ICON -->
423
- <div class="row vk_section">
424
- <h2 class="sfsicls_vk">VK</h2>
425
- <div class="inr_cont vk_tab_2">
426
- <p>When clicked on, users will get directed to your VK page.</p>
427
-
428
- <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>
429
-
430
- <div class="sfsi_new_prmium_follw">
431
- <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>
432
- </div>
433
- </div>
434
- </div>
435
- <!-- END VK ICON -->
436
- <!-- OK ICON -->
437
- <div class="row ok_section">
438
- <h2 class="sfsicls_ok">OK</h2>
439
- <div class="inr_cont ok_tab_2">
440
- <p>When clicked on, users will get directed to your OK page.</p>
441
-
442
- <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>
443
-
444
- <div class="sfsi_new_prmium_follw">
445
- <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>
446
- </div>
447
- </div>
448
- </div>
449
- <!-- END OK ICON -->
450
- <!-- END LINKEDIN ICON -->
451
-
452
- <!-- Custom icon section start here -->
453
- <div class="custom-links custom_section">
454
- <?php
455
- $costom_links = unserialize($option2['sfsi_CustomIcon_links']);
456
- $count = 1;
457
- $bannerDisplay = "display:none;";
458
- for ($i = $first_key; $i <= $endkey; $i++) :
459
- ?>
460
- <?php if (!empty($icons[$i])) :
461
- $bannerDisplay = "display:block;";
462
- ?>
463
- <div class="row sfsiICON_<?php echo $i; ?> cm_lnk">
464
- <h2 class="custom">
465
- <span class="customstep2-img">
466
- <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" />
467
- </span>
468
- <span class="sfsiCtxt">Custom <?php echo $count; ?></span>
469
- </h2>
470
- <div class="inr_cont ">
471
- <p>Where do you want this icon to link to?</p>
472
- <p class="radio_section fb_url custom_section cus_link ">
473
- <label>Link :</label>
474
- <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; ?>" />
475
- </p>
476
- </div>
477
- </div>
478
- <?php $count++;
479
- endif;
480
- endfor; ?>
481
-
482
- <div class="notice_custom_icons_premium sfsi_new_prmium_follw" style="<?php echo $bannerDisplay; ?>">
483
- <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>
484
- </div>
485
- </div>
486
- <!-- END Custom icon section here -->
487
-
488
- <?php sfsi_ask_for_help(2); ?> <!-- SAVE BUTTON SECTION -->
489
- <div class="save_button tab_2_sav">
490
- <img src="<?php echo SFSI_PLUGURL; ?>images/ajax-loader.gif" class="loader-img" alt="error" />
491
- <?php $nonce = wp_create_nonce("update_step2"); ?>
492
- <a href="javascript:;" id="sfsi_save2" title="Save" data-nonce="<?php echo $nonce; ?>">Save</a>
493
- </div>
494
- <!-- END SAVE BUTTON SECTION -->
495
-
496
- <a class="sfsiColbtn closeSec" href="javascript:;">Collapse area</a>
497
- <label class="closeSec"></label>
498
-
499
- <!-- ERROR AND SUCCESS MESSAGE AREA-->
500
- <p class="red_txt errorMsg" style="display:none"> </p>
501
- <p class="green_txt sucMsg" style="display:none"> </p>
502
-
503
  </div><!-- END Section 2 "What do you want the icons to do?" main div -->
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" data-nonce-fetch-feed-id="<?php echo wp_create_nonce( 'sfsi_get_feed_id' );?>" >
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') ? '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>
359
+
360
+ <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>
361
+
362
+ <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>
363
+
364
+ <div class="lnkdin_instruction">
365
+ 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.
366
+ </div>
367
+ </div>
368
+ </div>
369
+
370
+ <!-- TELEGRAM ICON -->
371
+ <div class="row telegram_section">
372
+ <h2 class="sfsicls_telegram">Telegram</h2>
373
+ <div class="inr_cont telegram_tab_2">
374
+ <p>Clicking on this icon will allow users to contact you on Telegram.</p>
375
+ <!-- <input name="sfsi_telegram_message" checked="true" type="checkbox" value="yes" class="" style="display:none"/> -->
376
+
377
+ <p class="radio_section fb_url no_check ">
378
+ <label>Pre-filled message</label>
379
+ <input name="sfsi_telegram_message" type="text" value="<?php echo ($option2['sfsi_telegram_message'] != '') ? $option2['sfsi_telegram_message'] : ''; ?>" placeholder="my_telegram_name" class="add" />
380
+ </p>
381
+
382
+ <p class="radio_section fb_url no_check">
383
+ <label>My Telegram username</label>
384
+ <input name="sfsi_telegram_username" type="url" placeholder="username" value="<?php echo ($option2['sfsi_telegram_username'] != '') ? $option2['sfsi_telegram_username'] : ''; ?>" class="add" />
385
+ </p>
386
+
387
+ <div class="sfsi_new_prmium_follw">
388
+ <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>
389
+ </div>
390
+ </div>
391
+ </div>
392
+
393
+ <!-- END TELEGRAM ICON -->
394
+
395
+ <!-- WECHAT ICON -->
396
+ <div class="row wechat_section">
397
+ <h2 class="sfsicls_wechat">WeChat</h2>
398
+ <div class="inr_cont wechat_tab_2">
399
+ <p>When clicked on, your website/blog will be shared on WeChat.</p>
400
+ <input name="sfsi_wechatShare_option" checked="true" type="checkbox" value="yes" class="" style="display:none" />
401
+ <div class="sfsi_new_prmium_follw">
402
+ <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>
403
+ </div>
404
+ </div>
405
+ </div>
406
+ <!-- END WECHAT ICON -->
407
+ <!-- WEIBO ICON -->
408
+ <div class="row weibo_section">
409
+ <h2 class="sfsicls_weibo">Weibo</h2>
410
+ <div class="inr_cont weibo_tab_2">
411
+ <p>When clicked on, users will get directed to your Weibo page.</p>
412
+
413
+ <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>
414
+
415
+ <div class="sfsi_new_prmium_follw">
416
+ <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>
417
+ </div>
418
+ </div>
419
+ </div>
420
+ <!-- END WEIBO ICON -->
421
+
422
+ <!-- VK ICON -->
423
+ <div class="row vk_section">
424
+ <h2 class="sfsicls_vk">VK</h2>
425
+ <div class="inr_cont vk_tab_2">
426
+ <p>When clicked on, users will get directed to your VK page.</p>
427
+
428
+ <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>
429
+
430
+ <div class="sfsi_new_prmium_follw">
431
+ <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>
432
+ </div>
433
+ </div>
434
+ </div>
435
+ <!-- END VK ICON -->
436
+ <!-- OK ICON -->
437
+ <div class="row ok_section">
438
+ <h2 class="sfsicls_ok">OK</h2>
439
+ <div class="inr_cont ok_tab_2">
440
+ <p>When clicked on, users will get directed to your OK page.</p>
441
+
442
+ <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>
443
+
444
+ <div class="sfsi_new_prmium_follw">
445
+ <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>
446
+ </div>
447
+ </div>
448
+ </div>
449
+ <!-- END OK ICON -->
450
+ <!-- END LINKEDIN ICON -->
451
+
452
+ <!-- Custom icon section start here -->
453
+ <div class="custom-links custom_section">
454
+ <?php
455
+ $costom_links = unserialize($option2['sfsi_CustomIcon_links']);
456
+ $count = 1;
457
+ $bannerDisplay = "display:none;";
458
+ for ($i = $first_key; $i <= $endkey; $i++) :
459
+ ?>
460
+ <?php if (!empty($icons[$i])) :
461
+ $bannerDisplay = "display:block;";
462
+ ?>
463
+ <div class="row sfsiICON_<?php echo $i; ?> cm_lnk">
464
+ <h2 class="custom">
465
+ <span class="customstep2-img">
466
+ <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" />
467
+ </span>
468
+ <span class="sfsiCtxt">Custom <?php echo $count; ?></span>
469
+ </h2>
470
+ <div class="inr_cont ">
471
+ <p>Where do you want this icon to link to?</p>
472
+ <p class="radio_section fb_url custom_section cus_link ">
473
+ <label>Link :</label>
474
+ <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; ?>" />
475
+ </p>
476
+ </div>
477
+ </div>
478
+ <?php $count++;
479
+ endif;
480
+ endfor; ?>
481
+
482
+ <div class="notice_custom_icons_premium sfsi_new_prmium_follw" style="<?php echo $bannerDisplay; ?>">
483
+ <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>
484
+ </div>
485
+ </div>
486
+ <!-- END Custom icon section here -->
487
+
488
+ <?php sfsi_ask_for_help(2); ?> <!-- SAVE BUTTON SECTION -->
489
+ <div class="save_button tab_2_sav">
490
+ <img src="<?php echo SFSI_PLUGURL; ?>images/ajax-loader.gif" class="loader-img" alt="error" />
491
+ <?php $nonce = wp_create_nonce("update_step2"); ?>
492
+ <a href="javascript:;" id="sfsi_save2" title="Save" data-nonce="<?php echo $nonce; ?>">Save</a>
493
+ </div>
494
+ <!-- END SAVE BUTTON SECTION -->
495
+
496
+ <a class="sfsiColbtn closeSec" href="javascript:;">Collapse area</a>
497
+ <label class="closeSec"></label>
498
+
499
+ <!-- ERROR AND SUCCESS MESSAGE AREA-->
500
+ <p class="red_txt errorMsg" style="display:none"> </p>
501
+ <p class="green_txt sucMsg" style="display:none"> </p>
502
+
503
  </div><!-- END Section 2 "What do you want the icons to do?" main div -->
views/sfsi_option_view5.php CHANGED
@@ -1,455 +1,455 @@
1
- <?php
2
- /* unserialize all saved option for section 5 options */
3
- $icons = ($option1['sfsi_custom_files']) ? unserialize($option1['sfsi_custom_files']) : array() ;
4
- $option3 = unserialize(get_option('sfsi_section3_options',false));
5
- $option5 = unserialize(get_option('sfsi_section5_options',false));
6
-
7
- $custom_icons_order = unserialize($option5['sfsi_CustomIcons_order']);
8
- if(!isset($option5['sfsi_telegramIcon_order'])){
9
- $option5['sfsi_telegramIcon_order'] = '11';
10
- }
11
- if(!isset($option5['sfsi_vkIcon_order'])){
12
- $option5['sfsi_vkIcon_order'] = '12';
13
- }
14
- if(!isset($option5['sfsi_okIcon_order'])){
15
- $option5['sfsi_okIcon_order'] = '13';
16
- }
17
- if(!isset($option5['sfsi_weiboIcon_order'])){
18
- $option5['sfsi_weiboIcon_order'] = '14';
19
- }
20
- if(!isset($option5['sfsi_wechatIcon_order'])){
21
- $option5['sfsi_wechatIcon_order'] = '15';
22
- }
23
- $icons_order = array(
24
- $option5['sfsi_rssIcon_order'] => 'rss',
25
- $option5['sfsi_emailIcon_order'] => 'email',
26
- $option5['sfsi_facebookIcon_order'] => 'facebook',
27
- $option5['sfsi_twitterIcon_order'] => 'twitter',
28
- $option5['sfsi_youtubeIcon_order'] => 'youtube',
29
- $option5['sfsi_pinterestIcon_order']=> 'pinterest',
30
- $option5['sfsi_linkedinIcon_order'] => 'linkedin',
31
- $option5['sfsi_instagramIcon_order']=> 'instagram',
32
- $option5['sfsi_telegramIcon_order']=> 'telegram',
33
- $option5['sfsi_vkIcon_order']=> 'vk',
34
- $option5['sfsi_okIcon_order']=> 'ok',
35
- $option5['sfsi_weiboIcon_order']=> 'weibo',
36
- $option5['sfsi_wechatIcon_order']=> 'wechat',
37
-
38
- ) ;
39
-
40
- /*
41
- * Sanitize, escape and validate values
42
- */
43
- $option5['sfsi_icons_size'] = (isset($option5['sfsi_icons_size']))
44
- ? intval($option5['sfsi_icons_size'])
45
- : '';
46
- $option5['sfsi_icons_spacing'] = (isset($option5['sfsi_icons_spacing']))
47
- ? intval($option5['sfsi_icons_spacing'])
48
- : '';
49
- $option5['sfsi_icons_Alignment'] = (isset($option5['sfsi_icons_Alignment']))
50
- ? sanitize_text_field($option5['sfsi_icons_Alignment'])
51
- : '';
52
- $option5['sfsi_icons_perRow'] = (isset($option5['sfsi_icons_perRow']))
53
- ? intval($option5['sfsi_icons_perRow'])
54
- : '';
55
- $option5['sfsi_icons_ClickPageOpen'] = (isset($option5['sfsi_icons_ClickPageOpen']))
56
- ? sanitize_text_field($option5['sfsi_icons_ClickPageOpen'])
57
- :'';
58
- $option5['sfsi_icons_stick'] = (isset($option5['sfsi_icons_stick']))
59
- ? sanitize_text_field($option5['sfsi_icons_stick'])
60
- : '';
61
- $option5['sfsi_rss_MouseOverText'] = (isset($option5['sfsi_rss_MouseOverText']))
62
- ? sanitize_text_field($option5['sfsi_rss_MouseOverText'])
63
- : '';
64
- $option5['sfsi_email_MouseOverText'] = (isset($option5['sfsi_email_MouseOverText']))
65
- ? sanitize_text_field($option5['sfsi_email_MouseOverText'])
66
- :'';
67
- $option5['sfsi_twitter_MouseOverText'] = (isset($option5['sfsi_twitter_MouseOverText']))
68
- ? sanitize_text_field($option5['sfsi_twitter_MouseOverText'])
69
- : '';
70
- $option5['sfsi_facebook_MouseOverText'] = (isset($option5['sfsi_facebook_MouseOverText']))
71
- ? sanitize_text_field($option5['sfsi_facebook_MouseOverText'])
72
- : '';
73
- $option5['sfsi_linkedIn_MouseOverText'] = (isset($option5['sfsi_linkedIn_MouseOverText']))
74
- ? sanitize_text_field($option5['sfsi_linkedIn_MouseOverText'])
75
- : '';
76
- $option5['sfsi_pinterest_MouseOverText'] = (isset($option5['sfsi_pinterest_MouseOverText']))
77
- ? sanitize_text_field($option5['sfsi_pinterest_MouseOverText'])
78
- : '';
79
- $option5['sfsi_youtube_MouseOverText'] = (isset($option5['sfsi_youtube_MouseOverText']))
80
- ? sanitize_text_field($option5['sfsi_youtube_MouseOverText'])
81
- : '';
82
- $option5['sfsi_instagram_MouseOverText'] = (isset($option5['sfsi_instagram_MouseOverText']))
83
- ? sanitize_text_field($option5['sfsi_instagram_MouseOverText'])
84
- : '';
85
- $option5['sfsi_telegram_MouseOverText'] = (isset($option5['sfsi_telegram_MouseOverText']))
86
- ? sanitize_text_field($option5['sfsi_telegram_MouseOverText'])
87
- : '';
88
- $option5['sfsi_vk_MouseOverText'] = (isset($option5['sfsi_vk_MouseOverText']))
89
- ? sanitize_text_field($option5['sfsi_vk_MouseOverText'])
90
- : '';
91
- $option5['sfsi_ok_MouseOverText'] = (isset($option5['sfsi_ok_MouseOverText']))
92
- ? sanitize_text_field($option5['sfsi_ok_MouseOverText'])
93
- : '';
94
- $option5['sfsi_weibo_MouseOverText'] = (isset($option5['sfsi_weibo_MouseOverText']))
95
- ? sanitize_text_field($option5['sfsi_weibo_MouseOverText'])
96
- : '';
97
- $option5['sfsi_wechat_MouseOverText'] = (isset($option5['sfsi_wechat_MouseOverText']))
98
- ? sanitize_text_field($option5['sfsi_wechat_MouseOverText'])
99
- : '';
100
- $sfsi_icons_suppress_errors = (isset($option5['sfsi_icons_suppress_errors']))
101
- ? sanitize_text_field($option5['sfsi_icons_suppress_errors'])
102
- : 'no';
103
- if(is_array($custom_icons_order) )
104
- {
105
- foreach($custom_icons_order as $data)
106
- {
107
- $icons_order[$data['order']] = $data;
108
- }
109
- }
110
- ksort($icons_order);
111
- ?>
112
-
113
- <!-- Section 5 "Any other wishes for your main icons?" main div Start -->
114
- <div class="tab5">
115
- <h4>Order of your icons</h4>
116
- <!-- icon drag drop section start here -->
117
- <ul class="share_icon_order" >
118
- <?php
119
- $ctn = 0;
120
- foreach($icons_order as $index=>$icn) :
121
-
122
- switch ($icn) :
123
- case 'rss' :?>
124
- <li class="rss_section" data-index="<?php echo $index; ?>" id="sfsi_rssIcon_order">
125
- <a href="#" title="RSS"><img src="<?php echo SFSI_PLUGURL; ?>images/rss.png" alt="RSS" /></a>
126
- </li>
127
- <?php break; ?><?php case 'email' :?>
128
- <li class="email_section " data-index="<?php echo $index; ?>" id="sfsi_emailIcon_order">
129
- <a href="#" title="Email"><img src="<?php echo SFSI_PLUGURL; ?>images/<?php echo $email_image; ?>" alt="Email" class="icon_img" /></a>
130
- </li>
131
- <?php break; ?><?php case 'facebook' :?>
132
- <li class="facebook_section " data-index="<?php echo $index; ?>" id="sfsi_facebookIcon_order">
133
- <a href="#" title="Facebook"><img src="<?php echo SFSI_PLUGURL; ?>images/facebook.png" alt="Facebook" /></a>
134
- </li>
135
- <?php break; ?><?php case 'twitter' :?>
136
- <li class="twitter_section " data-index="<?php echo $index; ?>" id="sfsi_twitterIcon_order">
137
- <a href="#" title="Twitter" ><img src="<?php echo SFSI_PLUGURL; ?>images/twitter.png" alt="Twitter" /></a>
138
- </li>
139
- <?php break; ?><?php case 'youtube' :?>
140
- <li class="youtube_section " data-index="<?php echo $index; ?>" id="sfsi_youtubeIcon_order">
141
- <a href="#" title="YouTube" ><img src="<?php echo SFSI_PLUGURL; ?>images/youtube.png" alt="YouTube" /></a>
142
- </li>
143
- <?php break; ?><?php case 'pinterest' :?>
144
- <li class="pinterest_section " data-index="<?php echo $index; ?>" id="sfsi_pinterestIcon_order">
145
- <a href="#" title="Pinterest" ><img src="<?php echo SFSI_PLUGURL; ?>images/pinterest.png" alt="Pinterest" /></a>
146
- </li>
147
- <?php break; ?><?php case 'linkedin' :?>
148
- <li class="linkedin_section " data-index="<?php echo $index; ?>" id="sfsi_linkedinIcon_order">
149
- <a href="#" title="Linked In" ><img src="<?php echo SFSI_PLUGURL; ?>images/linked_in.png" alt="Linked In" /></a>
150
- </li>
151
- <?php break; ?><?php case 'instagram' :?>
152
- <li class="instagram_section " data-index="<?php echo $index; ?>" id="sfsi_instagramIcon_order">
153
- <a href="#" title="Instagram" ><img src="<?php echo SFSI_PLUGURL; ?>images/instagram.png" alt="Instagram" /></a>
154
- </li>
155
- <?php break; ?><?php case 'telegram' :?>
156
- <li class="telegram_section " data-index="<?php echo $index; ?>" id="sfsi_telegramIcon_order">
157
- <a href="#" title="telegram" ><img src="<?php echo SFSI_PLUGURL; ?>images/icons_theme/default/default_telegram.png" height="54px;" alt="telegram" /></a>
158
- </li>
159
- <?php break; ?><?php case 'vk' :?>
160
- <li class="vk_section " data-index="<?php echo $index; ?>" id="sfsi_vkIcon_order">
161
- <a href="#" title="vk" ><img src="<?php echo SFSI_PLUGURL; ?>images/icons_theme/default/default_vk.png" height="54px;" alt="vk" /></a>
162
- </li>
163
- <?php break; ?><?php case 'ok' :?>
164
- <li class="ok_section " data-index="<?php echo $index; ?>" id="sfsi_okIcon_order">
165
- <a href="#" title="ok" ><img src="<?php echo SFSI_PLUGURL; ?>images/icons_theme/default/default_ok.png" height="54px;" alt="ok" /></a>
166
- </li>
167
- <?php break; ?><?php case 'weibo' :?>
168
- <li class="weibo_section " data-index="<?php echo $index; ?>" id="sfsi_weiboIcon_order">
169
- <a href="#" title="weibo" ><img src="<?php echo SFSI_PLUGURL; ?>images/icons_theme/default/default_weibo.png" height="54px;" alt="weibo" /></a>
170
- </li>
171
- <?php break; ?><?php case 'wechat' :?>
172
- <li class="wechat_section " data-index="<?php echo $index; ?>" id="sfsi_wechatIcon_order">
173
- <a href="#" title="wechat" ><img src="<?php echo SFSI_PLUGURL; ?>images/icons_theme/default/default_wechat.png" height="54px;" alt="wechat" /></a>
174
- </li>
175
- <?php break; ?><?php default :?><?php if(isset($icons[$icn['ele']]) && !empty($icons[$icn['ele']]) && filter_var($icons[$icn['ele']], FILTER_VALIDATE_URL) ): ?>
176
- <li class="custom_iconOrder sfsiICON_<?php echo $icn['ele']; ?>" data-index="<?php echo $index; ?>" element-id="<?php echo $icn['ele']; ?>" >
177
- <a href="#" title="Custom Icon" ><img src="<?php echo $icons[$icn['ele']]; ?>" alt="Linked In" class="sfcm" /></a>
178
- </li>
179
- <?php endif; ?><?php break; ?><?php endswitch; ?><?php endforeach; ?>
180
-
181
- </ul> <!-- END icon drag drop section start here -->
182
-
183
- <span class="drag_drp">(Drag &amp; Drop)</span>
184
- <!-- icon's size and spacing section start here -->
185
- <div class="row">
186
- <h4>Size &amp; spacing of your icons</h4>
187
- <div class="icons_size"><span>Size:</span><input name="sfsi_icons_size" value="<?php echo ($option5['sfsi_icons_size']!='') ? $option5['sfsi_icons_size'] : '' ;?>" type="text" /><ins>pixels wide &amp; tall</ins> <span class="last">Spacing between icons:</span><input name="sfsi_icons_spacing" type="text" value="<?php echo ($option5['sfsi_icons_spacing']!='') ? $option5['sfsi_icons_spacing'] : '' ;?>" /><ins>Pixels</ins></div>
188
-
189
- <div class="icons_prem_disc">
190
- <p class="sfsi_prem_plu_desc"><b>New: </b>The Premium Plugin also allows you to define the vertical distance between the icons (and set this differently for mobile vs. desktop): <a class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" style="cursor:pointer;border-bottom: 1px solid #12a252;color: #12a252 !important;font-weight:bold" class="sfisi_font_bold" target="_blank">Go premium now.<a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_spacings&utm_medium=banner" class="sfsi_font_inherit" style="color: #12a252 !important" target="_blank"> or learn more.</a>
191
- </div>
192
-
193
- </div>
194
-
195
- <div class="row">
196
- <h4>Alignments</h4>
197
- <div class="icons_size">
198
- <div style="width: 210px;float: left;position: relative;">
199
- <span>Alignment of icons:</span>
200
- <ins class="sfsi_icons_other_allign" style="position: absolute;bottom: -22px;left: 0;width: 200px;color: rgb(128,136,145);">
201
- (with respect to each other)
202
- </ins>
203
- </div>
204
- <div class="field">
205
- <select name="sfsi_icons_Alignment" id="sfsi_icons_Alignment" class="styled">
206
- <option value="center" <?php echo ($option5['sfsi_icons_Alignment']=='center') ? 'selected="selected"' : '' ;?>>Centered</option>
207
- <option value="right" <?php echo ($option5['sfsi_icons_Alignment']=='right') ? 'selected="selected"' : '' ;?>>Right</option>
208
- <option value="left" <?php echo ($option5['sfsi_icons_Alignment']=='left') ? 'selected="selected"' : '' ;?>>Left</option>
209
- </select>
210
- </div>
211
- <span>Icons per row:</span>
212
- <input name="sfsi_icons_perRow" type="text" value="<?php echo ($option5['sfsi_icons_perRow']!='') ? $option5['sfsi_icons_perRow'] : '' ;?>" />
213
- <ins class="leave_empty">Leave empty if you don't want to <br /> define this</ins>
214
- </div>
215
-
216
- <div class= "sfsi_new_prmium_follw" style="margin-top: 38px;">
217
- <p><b>New: </b>The Premium Plugin gives several more alignment options: <br>- &nbsp;&nbsp; Show icons vertically<br>- &nbsp;&nbsp; Align icons within a widget (left, right, centered)<br>- &nbsp;&nbsp; Align icons within the «container» where you place them via shortcode (left, right, centered) <br><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_alignment_options&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
218
- </div>
219
-
220
- </div>
221
-
222
- <div class="row new_wind">
223
- <h4>New window</h4>
224
- <div class="row_onl"><p>If a user clicks on your icons, do you want to open the page in a new window?
225
- </p>
226
- <ul class="enough_waffling">
227
- <li>
228
- <input name="sfsi_icons_ClickPageOpen" <?php echo ($option5['sfsi_icons_ClickPageOpen']=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" />
229
- <label>Yes</label>
230
- </li>
231
- <li>
232
- <input name="sfsi_icons_ClickPageOpen" <?php echo ($option5['sfsi_icons_ClickPageOpen']=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled" />
233
- <label>No</label>
234
- </li>
235
- </ul>
236
- </div>
237
- </div>
238
-
239
-
240
- <!-- icon's floating and stick section start here -->
241
- <div class="row sticking">
242
-
243
- <h4>Sticky icons</h4>
244
-
245
- <div class="clear float_options" <?php if($option5['sfsi_icons_stick']=='yes') :?> style="display:none" <?php endif;?>>
246
-
247
-
248
- </div>
249
-
250
- <div class="space">
251
-
252
- <p class="list">Make icons stick?</p>
253
-
254
- <ul class="enough_waffling">
255
-
256
- <li>
257
- <input name="sfsi_icons_stick" <?php echo ($option5['sfsi_icons_stick']=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" />
258
- <label>Yes</label>
259
- </li>
260
-
261
- <li>
262
- <input name="sfsi_icons_stick" <?php echo ($option5['sfsi_icons_stick']=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled" />
263
- <label>No</label>
264
- </li>
265
-
266
- </ul>
267
-
268
- <p>
269
- If you select «Yes» here, then the icons which you placed via <span style="text-decoration: underline;"><b>widget</b></span> or <span style="text-decoration: underline;"><b>shortcode</b></span> will still be visible on the screen as user scrolls down your page, i.e. they will stick at the top.</p>
270
-
271
- <p>
272
- This is not to be confused with making the icons permanently placed in the same position, which is possible in the <a target="_blank" href="https://www.ultimatelysocial.com/usm-premium"><b>Premium Plugin</b></a>.
273
- </p>
274
-
275
- </div>
276
-
277
-
278
- </div><!-- END icon's floating and stick section -->
279
-
280
- <!--************* Sharing texts & pictures section STARTS *****************************-->
281
-
282
- <div class="row sfsi_custom_social_data_setting" id="custom_social_data_setting">
283
-
284
- <h4>Sharing texts & pictures?</h4>
285
- <p>On the pages where you edit your posts/pages, you’ll see a (new) section where you can define which pictures & text should be shared. This extra section is displayed on the following:</p>
286
-
287
- <?php
288
- $checkedS = (isset($option5['sfsi_custom_social_hide']) && $option5['sfsi_custom_social_hide']=="yes") ? 'checked="checked"': '';
289
- $checked = (isset($option5['sfsi_custom_social_hide']) && $option5['sfsi_custom_social_hide']=="yes") ? '': 'checked="checked"';
290
- $checkedVal = (isset($option5['sfsi_custom_social_hide'])) ? $option5['sfsi_custom_social_hide']: 'no';
291
- ?>
292
- <div class="social_data_post_types">
293
- <ul class="socialPostTypesUl">
294
- <li>
295
- <div class="radio_section tb_4_ck">
296
- <input type="checkbox" <?php echo $checked; ?> value="page" class="styled" />
297
- <label class="cstmdsplsub">Page</label>
298
- </div>
299
- </li>
300
- <li>
301
- <div class="radio_section tb_4_ck">
302
- <input type="checkbox" <?php echo $checked; ?> value="post" class="styled" />
303
- <label class="cstmdsplsub">Post</label>
304
- </div>
305
- </li>
306
- </ul>
307
-
308
- <ul class="sfsi_show_hide_section">
309
- <li>
310
- <div class="radio_section tb_4_ck">
311
- <input name="sfsi_custom_social_hide" type="checkbox" <?php echo $checkedS; ?> value="<?php echo $checkedVal; ?>" class="styled" />
312
- <label class="cstmdsplsub">Hide section for all</label>
313
- </div>
314
- </li>
315
- </ul>
316
- </div>
317
-
318
- <div class="sfsi_new_prmium_follw sfsi_social_sharing" style="margin-bottom: 15px;">
319
- <p>Note: This feature is currently only available in the Premium Plugin. <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=define_pic_and_text&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a>
320
- </p>
321
- </div>
322
- </div>
323
-
324
- <!--******************** Sharing texts & pictures section CLOSES ************************************************-->
325
-
326
- <!-- mouse over text section start here -->
327
- <div class="row mouse_txt">
328
- <h4>Mouseover text</h4>
329
- <p>
330
- If you’ve given your icon only one function (i.e. no pop-up where user can perform different actions) then you can define
331
- here what text will be displayed if a user moves his mouse over the icon:
332
- </p>
333
- <div class="space">
334
- <div class="clear"></div>
335
- <div class="mouseover_field rss_section">
336
- <label>RSS:</label><input name="sfsi_rss_MouseOverText" value="<?php echo ($option5['sfsi_rss_MouseOverText']!='') ? $option5['sfsi_rss_MouseOverText'] : '' ;?>" type="text" />
337
- </div>
338
- <div class="mouseover_field email_section">
339
- <label>Email:</label><input name="sfsi_email_MouseOverText" value="<?php echo ($option5['sfsi_email_MouseOverText']!='') ? $option5['sfsi_email_MouseOverText'] : '' ;?>" type="text" />
340
- </div>
341
-
342
- <div class="clear">
343
- <div class="mouseover_field twitter_section">
344
- <label>Twitter:</label>
345
- <input name="sfsi_twitter_MouseOverText" value="<?php echo ($option5['sfsi_twitter_MouseOverText']!='') ? $option5['sfsi_twitter_MouseOverText'] : '' ;?>" type="text" />
346
- </div>
347
- <div class="mouseover_field facebook_section">
348
- <label>Facebook:</label>
349
- <input name="sfsi_facebook_MouseOverText" value="<?php echo ($option5['sfsi_facebook_MouseOverText']!='') ? $option5['sfsi_facebook_MouseOverText'] : '' ;?>" type="text" />
350
- </div>
351
- </div>
352
- <div class="clear">
353
- <div class="mouseover_field linkedin_section">
354
- <label>LinkedIn:</label>
355
- <input name="sfsi_linkedIn_MouseOverText" value="<?php echo ($option5['sfsi_linkedIn_MouseOverText']!='') ? $option5['sfsi_linkedIn_MouseOverText'] : '' ;?>" type="text" />
356
- </div>
357
- </div>
358
- <div class="clear">
359
- <div class="mouseover_field pinterest_section">
360
- <label>Pinterest:</label>
361
- <input name="sfsi_pinterest_MouseOverText" value="<?php echo ($option5['sfsi_pinterest_MouseOverText']!='') ? $option5['sfsi_pinterest_MouseOverText'] : '' ;?>" type="text" />
362
- </div>
363
- <div class="mouseover_field youtube_section">
364
- <label>Youtube:</label>
365
- <input name="sfsi_youtube_MouseOverText" value="<?php echo ($option5['sfsi_youtube_MouseOverText']!='') ? $option5['sfsi_youtube_MouseOverText'] : '' ;?>" type="text" />
366
- </div>
367
- </div>
368
- <div class="clear">
369
- <div class="mouseover_field instagram_section">
370
- <label>Instagram:</label>
371
- <input name="sfsi_instagram_MouseOverText" value="<?php echo ($option5['sfsi_instagram_MouseOverText']!='') ? $option5['sfsi_instagram_MouseOverText'] : '' ;?>" type="text" />
372
- </div>
373
- <div class="mouseover_field telegram_section">
374
- <label>Telegram:</label>
375
- <input name="sfsi_telegram_MouseOverText" value="<?php echo ($option5['sfsi_telegram_MouseOverText']!='') ? $option5['sfsi_telegram_MouseOverText'] : '' ;?>" type="text" />
376
- </div>
377
- </div>
378
- <div class="clear">
379
- <div class="mouseover_field vk_section">
380
- <label>VK:</label>
381
- <input name="sfsi_vk_MouseOverText" value="<?php echo ($option5['sfsi_vk_MouseOverText']!='') ? $option5['sfsi_vk_MouseOverText'] : '' ;?>" type="text" />
382
- </div>
383
- <div class="mouseover_field ok_section">
384
- <label>Ok:</label>
385
- <input name="sfsi_ok_MouseOverText" value="<?php echo ($option5['sfsi_ok_MouseOverText']!='') ? $option5['sfsi_ok_MouseOverText'] : '' ;?>" type="text" />
386
- </div>
387
- </div>
388
- <div class="clear">
389
- <div class="mouseover_field weibo_section">
390
- <label>Weibo:</label>
391
- <input name="sfsi_weibo_MouseOverText" value="<?php echo ($option5['sfsi_weibo_MouseOverText']!='') ? $option5['sfsi_weibo_MouseOverText'] : '' ;?>" type="text" />
392
- </div>
393
- <div class="mouseover_field wechat_section">
394
- <label>WeChat:</label>
395
- <input name="sfsi_wechat_MouseOverText" value="<?php echo ($option5['sfsi_wechat_MouseOverText']!='') ? $option5['sfsi_wechat_MouseOverText'] : '' ;?>" type="text" />
396
- </div>
397
- </div>
398
- <div class="clear"> </div>
399
- <div class="custom_m">
400
- <?php
401
- $sfsiMouseOverTexts = unserialize($option5['sfsi_custom_MouseOverTexts']);
402
- $count = 1; for($i=$first_key; $i <= $endkey; $i++) :
403
- ?><?php if(!empty( $icons[$i])) : ?>
404
-
405
- <div class="mouseover_field custom_section sfsiICON_<?php echo $i; ?>">
406
- <label>Custom <?php echo $count; ?>:</label>
407
- <input name="sfsi_custom_MouseOverTexts[]" value="<?php echo (isset($sfsiMouseOverTexts[$i]) && $sfsiMouseOverTexts[$i]!='') ?sanitize_text_field($sfsiMouseOverTexts[$i]) : '' ;?>" type="text" file-id="<?php echo $i; ?>" />
408
- </div>
409
-
410
- <?php if($count%2==0): ?>
411
-
412
- <div class="clear"> </div>
413
- <?php endif; ?><?php $count++; endif; endfor; ?>
414
- </div>
415
-
416
- </div>
417
-
418
- </div>
419
- <!-- END mouse over text section -->
420
-
421
- <div class="row new_wind">
422
- <h4>Error reporting</h4>
423
- <div class="row_onl"><p>Suppress error messages?</p>
424
- <ul class="enough_waffling">
425
- <li>
426
- <input name="sfsi_icons_suppress_errors" <?php echo ($sfsi_icons_suppress_errors=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" />
427
- <label>Yes</label>
428
- </li>
429
- <li>
430
- <input name="sfsi_icons_suppress_errors" <?php echo ($sfsi_icons_suppress_errors=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled" />
431
- <label>No</label>
432
- </li>
433
- </ul>
434
- </div>
435
- </div>
436
-
437
- <?php sfsi_ask_for_help(5); ?>
438
- <!-- SAVE BUTTON SECTION -->
439
- <div class="save_button">
440
- <img src="<?php echo SFSI_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
441
- <?php $nonce = wp_create_nonce("update_step5"); ?>
442
- <a href="javascript:;" id="sfsi_save5" title="Save" data-nonce="<?php echo $nonce;?>">Save</a>
443
- </div>
444
- <!-- END SAVE BUTTON SECTION -->
445
-
446
- <a class="sfsiColbtn closeSec" href="javascript:;" >Collapse area</a>
447
- <label class="closeSec"></label>
448
-
449
- <!-- ERROR AND SUCCESS MESSAGE AREA-->
450
- <p class="red_txt errorMsg" style="display:none"> </p>
451
- <p class="green_txt sucMsg" style="display:none"> </p>
452
- <div class="clear"></div>
453
-
454
- </div>
455
- <!-- END Section 5 "Any other wishes for your main icons?"-->
1
+ <?php
2
+ /* unserialize all saved option for section 5 options */
3
+ $icons = ($option1['sfsi_custom_files']) ? unserialize($option1['sfsi_custom_files']) : array() ;
4
+ $option3 = unserialize(get_option('sfsi_section3_options',false));
5
+ $option5 = unserialize(get_option('sfsi_section5_options',false));
6
+
7
+ $custom_icons_order = unserialize($option5['sfsi_CustomIcons_order']);
8
+ if(!isset($option5['sfsi_telegramIcon_order'])){
9
+ $option5['sfsi_telegramIcon_order'] = '11';
10
+ }
11
+ if(!isset($option5['sfsi_vkIcon_order'])){
12
+ $option5['sfsi_vkIcon_order'] = '12';
13
+ }
14
+ if(!isset($option5['sfsi_okIcon_order'])){
15
+ $option5['sfsi_okIcon_order'] = '13';
16
+ }
17
+ if(!isset($option5['sfsi_weiboIcon_order'])){
18
+ $option5['sfsi_weiboIcon_order'] = '14';
19
+ }
20
+ if(!isset($option5['sfsi_wechatIcon_order'])){
21
+ $option5['sfsi_wechatIcon_order'] = '15';
22
+ }
23
+ $icons_order = array(
24
+ $option5['sfsi_rssIcon_order'] => 'rss',
25
+ $option5['sfsi_emailIcon_order'] => 'email',
26
+ $option5['sfsi_facebookIcon_order'] => 'facebook',
27
+ $option5['sfsi_twitterIcon_order'] => 'twitter',
28
+ $option5['sfsi_youtubeIcon_order'] => 'youtube',
29
+ $option5['sfsi_pinterestIcon_order']=> 'pinterest',
30
+ $option5['sfsi_linkedinIcon_order'] => 'linkedin',
31
+ $option5['sfsi_instagramIcon_order']=> 'instagram',
32
+ $option5['sfsi_telegramIcon_order']=> 'telegram',
33
+ $option5['sfsi_vkIcon_order']=> 'vk',
34
+ $option5['sfsi_okIcon_order']=> 'ok',
35
+ $option5['sfsi_weiboIcon_order']=> 'weibo',
36
+ $option5['sfsi_wechatIcon_order']=> 'wechat',
37
+
38
+ ) ;
39
+
40
+ /*
41
+ * Sanitize, escape and validate values
42
+ */
43
+ $option5['sfsi_icons_size'] = (isset($option5['sfsi_icons_size']))
44
+ ? intval($option5['sfsi_icons_size'])
45
+ : '';
46
+ $option5['sfsi_icons_spacing'] = (isset($option5['sfsi_icons_spacing']))
47
+ ? intval($option5['sfsi_icons_spacing'])
48
+ : '';
49
+ $option5['sfsi_icons_Alignment'] = (isset($option5['sfsi_icons_Alignment']))
50
+ ? sanitize_text_field($option5['sfsi_icons_Alignment'])
51
+ : '';
52
+ $option5['sfsi_icons_perRow'] = (isset($option5['sfsi_icons_perRow']))
53
+ ? intval($option5['sfsi_icons_perRow'])
54
+ : '';
55
+ $option5['sfsi_icons_ClickPageOpen'] = (isset($option5['sfsi_icons_ClickPageOpen']))
56
+ ? sanitize_text_field($option5['sfsi_icons_ClickPageOpen'])
57
+ :'';
58
+ $option5['sfsi_icons_stick'] = (isset($option5['sfsi_icons_stick']))
59
+ ? sanitize_text_field($option5['sfsi_icons_stick'])
60
+ : '';
61
+ $option5['sfsi_rss_MouseOverText'] = (isset($option5['sfsi_rss_MouseOverText']))
62
+ ? sanitize_text_field($option5['sfsi_rss_MouseOverText'])
63
+ : '';
64
+ $option5['sfsi_email_MouseOverText'] = (isset($option5['sfsi_email_MouseOverText']))
65
+ ? sanitize_text_field($option5['sfsi_email_MouseOverText'])
66
+ :'';
67
+ $option5['sfsi_twitter_MouseOverText'] = (isset($option5['sfsi_twitter_MouseOverText']))
68
+ ? sanitize_text_field($option5['sfsi_twitter_MouseOverText'])
69
+ : '';
70
+ $option5['sfsi_facebook_MouseOverText'] = (isset($option5['sfsi_facebook_MouseOverText']))
71
+ ? sanitize_text_field($option5['sfsi_facebook_MouseOverText'])
72
+ : '';
73
+ $option5['sfsi_linkedIn_MouseOverText'] = (isset($option5['sfsi_linkedIn_MouseOverText']))
74
+ ? sanitize_text_field($option5['sfsi_linkedIn_MouseOverText'])
75
+ : '';
76
+ $option5['sfsi_pinterest_MouseOverText'] = (isset($option5['sfsi_pinterest_MouseOverText']))
77
+ ? sanitize_text_field($option5['sfsi_pinterest_MouseOverText'])
78
+ : '';
79
+ $option5['sfsi_youtube_MouseOverText'] = (isset($option5['sfsi_youtube_MouseOverText']))
80
+ ? sanitize_text_field($option5['sfsi_youtube_MouseOverText'])
81
+ : '';
82
+ $option5['sfsi_instagram_MouseOverText'] = (isset($option5['sfsi_instagram_MouseOverText']))
83
+ ? sanitize_text_field($option5['sfsi_instagram_MouseOverText'])
84
+ : '';
85
+ $option5['sfsi_telegram_MouseOverText'] = (isset($option5['sfsi_telegram_MouseOverText']))
86
+ ? sanitize_text_field($option5['sfsi_telegram_MouseOverText'])
87
+ : '';
88
+ $option5['sfsi_vk_MouseOverText'] = (isset($option5['sfsi_vk_MouseOverText']))
89
+ ? sanitize_text_field($option5['sfsi_vk_MouseOverText'])
90
+ : '';
91
+ $option5['sfsi_ok_MouseOverText'] = (isset($option5['sfsi_ok_MouseOverText']))
92
+ ? sanitize_text_field($option5['sfsi_ok_MouseOverText'])
93
+ : '';
94
+ $option5['sfsi_weibo_MouseOverText'] = (isset($option5['sfsi_weibo_MouseOverText']))
95
+ ? sanitize_text_field($option5['sfsi_weibo_MouseOverText'])
96
+ : '';
97
+ $option5['sfsi_wechat_MouseOverText'] = (isset($option5['sfsi_wechat_MouseOverText']))
98
+ ? sanitize_text_field($option5['sfsi_wechat_MouseOverText'])
99
+ : '';
100
+ $sfsi_icons_suppress_errors = (isset($option5['sfsi_icons_suppress_errors']))
101
+ ? sanitize_text_field($option5['sfsi_icons_suppress_errors'])
102
+ : 'no';
103
+ if(is_array($custom_icons_order) )
104
+ {
105
+ foreach($custom_icons_order as $data)
106
+ {
107
+ $icons_order[$data['order']] = $data;
108
+ }
109
+ }
110
+ ksort($icons_order);
111
+ ?>
112
+
113
+ <!-- Section 5 "Any other wishes for your main icons?" main div Start -->
114
+ <div class="tab5">
115
+ <h4>Order of your icons</h4>
116
+ <!-- icon drag drop section start here -->
117
+ <ul class="share_icon_order" >
118
+ <?php
119
+ $ctn = 0;
120
+ foreach($icons_order as $index=>$icn) :
121
+
122
+ switch ($icn) :
123
+ case 'rss' :?>
124
+ <li class="rss_section" data-index="<?php echo $index; ?>" id="sfsi_rssIcon_order">
125
+ <a href="#" title="RSS"><img src="<?php echo SFSI_PLUGURL; ?>images/rss.png" alt="RSS" /></a>
126
+ </li>
127
+ <?php break; ?><?php case 'email' :?>
128
+ <li class="email_section " data-index="<?php echo $index; ?>" id="sfsi_emailIcon_order">
129
+ <a href="#" title="Email"><img src="<?php echo SFSI_PLUGURL; ?>images/<?php echo $email_image; ?>" alt="Email" class="icon_img" /></a>
130
+ </li>
131
+ <?php break; ?><?php case 'facebook' :?>
132
+ <li class="facebook_section " data-index="<?php echo $index; ?>" id="sfsi_facebookIcon_order">
133
+ <a href="#" title="Facebook"><img src="<?php echo SFSI_PLUGURL; ?>images/facebook.png" alt="Facebook" /></a>
134
+ </li>
135
+ <?php break; ?><?php case 'twitter' :?>
136
+ <li class="twitter_section " data-index="<?php echo $index; ?>" id="sfsi_twitterIcon_order">
137
+ <a href="#" title="Twitter" ><img src="<?php echo SFSI_PLUGURL; ?>images/twitter.png" alt="Twitter" /></a>
138
+ </li>
139
+ <?php break; ?><?php case 'youtube' :?>
140
+ <li class="youtube_section " data-index="<?php echo $index; ?>" id="sfsi_youtubeIcon_order">
141
+ <a href="#" title="YouTube" ><img src="<?php echo SFSI_PLUGURL; ?>images/youtube.png" alt="YouTube" /></a>
142
+ </li>
143
+ <?php break; ?><?php case 'pinterest' :?>
144
+ <li class="pinterest_section " data-index="<?php echo $index; ?>" id="sfsi_pinterestIcon_order">
145
+ <a href="#" title="Pinterest" ><img src="<?php echo SFSI_PLUGURL; ?>images/pinterest.png" alt="Pinterest" /></a>
146
+ </li>
147
+ <?php break; ?><?php case 'linkedin' :?>
148
+ <li class="linkedin_section " data-index="<?php echo $index; ?>" id="sfsi_linkedinIcon_order">
149
+ <a href="#" title="Linked In" ><img src="<?php echo SFSI_PLUGURL; ?>images/linked_in.png" alt="Linked In" /></a>
150
+ </li>
151
+ <?php break; ?><?php case 'instagram' :?>
152
+ <li class="instagram_section " data-index="<?php echo $index; ?>" id="sfsi_instagramIcon_order">
153
+ <a href="#" title="Instagram" ><img src="<?php echo SFSI_PLUGURL; ?>images/instagram.png" alt="Instagram" /></a>
154
+ </li>
155
+ <?php break; ?><?php case 'telegram' :?>
156
+ <li class="telegram_section " data-index="<?php echo $index; ?>" id="sfsi_telegramIcon_order">
157
+ <a href="#" title="telegram" ><img src="<?php echo SFSI_PLUGURL; ?>images/icons_theme/default/default_telegram.png" height="54px;" alt="telegram" /></a>
158
+ </li>
159
+ <?php break; ?><?php case 'vk' :?>
160
+ <li class="vk_section " data-index="<?php echo $index; ?>" id="sfsi_vkIcon_order">
161
+ <a href="#" title="vk" ><img src="<?php echo SFSI_PLUGURL; ?>images/icons_theme/default/default_vk.png" height="54px;" alt="vk" /></a>
162
+ </li>
163
+ <?php break; ?><?php case 'ok' :?>
164
+ <li class="ok_section " data-index="<?php echo $index; ?>" id="sfsi_okIcon_order">
165
+ <a href="#" title="ok" ><img src="<?php echo SFSI_PLUGURL; ?>images/icons_theme/default/default_ok.png" height="54px;" alt="ok" /></a>
166
+ </li>
167
+ <?php break; ?><?php case 'weibo' :?>
168
+ <li class="weibo_section " data-index="<?php echo $index; ?>" id="sfsi_weiboIcon_order">
169
+ <a href="#" title="weibo" ><img src="<?php echo SFSI_PLUGURL; ?>images/icons_theme/default/default_weibo.png" height="54px;" alt="weibo" /></a>
170
+ </li>
171
+ <?php break; ?><?php case 'wechat' :?>
172
+ <li class="wechat_section " data-index="<?php echo $index; ?>" id="sfsi_wechatIcon_order">
173
+ <a href="#" title="wechat" ><img src="<?php echo SFSI_PLUGURL; ?>images/icons_theme/default/default_wechat.png" height="54px;" alt="wechat" /></a>
174
+ </li>
175
+ <?php break; ?><?php default :?><?php if(isset($icons[$icn['ele']]) && !empty($icons[$icn['ele']]) && filter_var($icons[$icn['ele']], FILTER_VALIDATE_URL) ): ?>
176
+ <li class="custom_iconOrder sfsiICON_<?php echo $icn['ele']; ?>" data-index="<?php echo $index; ?>" element-id="<?php echo $icn['ele']; ?>" >
177
+ <a href="#" title="Custom Icon" ><img src="<?php echo $icons[$icn['ele']]; ?>" alt="Linked In" class="sfcm" /></a>
178
+ </li>
179
+ <?php endif; ?><?php break; ?><?php endswitch; ?><?php endforeach; ?>
180
+
181
+ </ul> <!-- END icon drag drop section start here -->
182
+
183
+ <span class="drag_drp">(Drag &amp; Drop)</span>
184
+ <!-- icon's size and spacing section start here -->
185
+ <div class="row">
186
+ <h4>Size &amp; spacing of your icons</h4>
187
+ <div class="icons_size"><span>Size:</span><input name="sfsi_icons_size" value="<?php echo ($option5['sfsi_icons_size']!='') ? $option5['sfsi_icons_size'] : '' ;?>" type="text" /><ins>pixels wide &amp; tall</ins> <span class="last">Spacing between icons:</span><input name="sfsi_icons_spacing" type="text" value="<?php echo ($option5['sfsi_icons_spacing']!='') ? $option5['sfsi_icons_spacing'] : '' ;?>" /><ins>Pixels</ins></div>
188
+
189
+ <div class="icons_prem_disc">
190
+ <p class="sfsi_prem_plu_desc"><b>New: </b>The Premium Plugin also allows you to define the vertical distance between the icons (and set this differently for mobile vs. desktop): <a class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" style="cursor:pointer;border-bottom: 1px solid #12a252;color: #12a252 !important;font-weight:bold" class="sfisi_font_bold" target="_blank">Go premium now.<a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_spacings&utm_medium=banner" class="sfsi_font_inherit" style="color: #12a252 !important" target="_blank"> or learn more.</a>
191
+ </div>
192
+
193
+ </div>
194
+
195
+ <div class="row">
196
+ <h4>Alignments</h4>
197
+ <div class="icons_size">
198
+ <div style="width: 210px;float: left;position: relative;">
199
+ <span>Alignment of icons:</span>
200
+ <ins class="sfsi_icons_other_allign" style="position: absolute;bottom: -22px;left: 0;width: 200px;color: rgb(128,136,145);">
201
+ (with respect to each other)
202
+ </ins>
203
+ </div>
204
+ <div class="field">
205
+ <select name="sfsi_icons_Alignment" id="sfsi_icons_Alignment" class="styled">
206
+ <option value="center" <?php echo ($option5['sfsi_icons_Alignment']=='center') ? 'selected="selected"' : '' ;?>>Centered</option>
207
+ <option value="right" <?php echo ($option5['sfsi_icons_Alignment']=='right') ? 'selected="selected"' : '' ;?>>Right</option>
208
+ <option value="left" <?php echo ($option5['sfsi_icons_Alignment']=='left') ? 'selected="selected"' : '' ;?>>Left</option>
209
+ </select>
210
+ </div>
211
+ <span>Icons per row:</span>
212
+ <input name="sfsi_icons_perRow" type="text" value="<?php echo ($option5['sfsi_icons_perRow']!='') ? $option5['sfsi_icons_perRow'] : '' ;?>" />
213
+ <ins class="leave_empty">Leave empty if you don't want to <br /> define this</ins>
214
+ </div>
215
+
216
+ <div class= "sfsi_new_prmium_follw" style="margin-top: 38px;">
217
+ <p><b>New: </b>The Premium Plugin gives several more alignment options: <br>- &nbsp;&nbsp; Show icons vertically<br>- &nbsp;&nbsp; Align icons within a widget (left, right, centered)<br>- &nbsp;&nbsp; Align icons within the «container» where you place them via shortcode (left, right, centered) <br><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_alignment_options&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
218
+ </div>
219
+
220
+ </div>
221
+
222
+ <div class="row new_wind">
223
+ <h4>New window</h4>
224
+ <div class="row_onl"><p>If a user clicks on your icons, do you want to open the page in a new window?
225
+ </p>
226
+ <ul class="enough_waffling">
227
+ <li>
228
+ <input name="sfsi_icons_ClickPageOpen" <?php echo ($option5['sfsi_icons_ClickPageOpen']=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" />
229
+ <label>Yes</label>
230
+ </li>
231
+ <li>
232
+ <input name="sfsi_icons_ClickPageOpen" <?php echo ($option5['sfsi_icons_ClickPageOpen']=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled" />
233
+ <label>No</label>
234
+ </li>
235
+ </ul>
236
+ </div>
237
+ </div>
238
+
239
+
240
+ <!-- icon's floating and stick section start here -->
241
+ <div class="row sticking">
242
+
243
+ <h4>Sticky icons</h4>
244
+
245
+ <div class="clear float_options" <?php if($option5['sfsi_icons_stick']=='yes') :?> style="display:none" <?php endif;?>>
246
+
247
+
248
+ </div>
249
+
250
+ <div class="space">
251
+
252
+ <p class="list">Make icons stick?</p>
253
+
254
+ <ul class="enough_waffling">
255
+
256
+ <li>
257
+ <input name="sfsi_icons_stick" <?php echo ($option5['sfsi_icons_stick']=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" />
258
+ <label>Yes</label>
259
+ </li>
260
+
261
+ <li>
262
+ <input name="sfsi_icons_stick" <?php echo ($option5['sfsi_icons_stick']=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled" />
263
+ <label>No</label>
264
+ </li>
265
+
266
+ </ul>
267
+
268
+ <p>
269
+ If you select «Yes» here, then the icons which you placed via <span style="text-decoration: underline;"><b>widget</b></span> or <span style="text-decoration: underline;"><b>shortcode</b></span> will still be visible on the screen as user scrolls down your page, i.e. they will stick at the top.</p>
270
+
271
+ <p>
272
+ This is not to be confused with making the icons permanently placed in the same position, which is possible in the <a target="_blank" href="https://www.ultimatelysocial.com/usm-premium"><b>Premium Plugin</b></a>.
273
+ </p>
274
+
275
+ </div>
276
+
277
+
278
+ </div><!-- END icon's floating and stick section -->
279
+
280
+ <!--************* Sharing texts & pictures section STARTS *****************************-->
281
+
282
+ <div class="row sfsi_custom_social_data_setting" id="custom_social_data_setting">
283
+
284
+ <h4>Sharing texts & pictures?</h4>
285
+ <p>On the pages where you edit your posts/pages, you’ll see a (new) section where you can define which pictures & text should be shared. This extra section is displayed on the following:</p>
286
+
287
+ <?php
288
+ $checkedS = (isset($option5['sfsi_custom_social_hide']) && $option5['sfsi_custom_social_hide']=="yes") ? 'checked="checked"': '';
289
+ $checked = (isset($option5['sfsi_custom_social_hide']) && $option5['sfsi_custom_social_hide']=="yes") ? '': 'checked="checked"';
290
+ $checkedVal = (isset($option5['sfsi_custom_social_hide'])) ? $option5['sfsi_custom_social_hide']: 'no';
291
+ ?>
292
+ <div class="social_data_post_types">
293
+ <ul class="socialPostTypesUl">
294
+ <li>
295
+ <div class="radio_section tb_4_ck">
296
+ <input type="checkbox" <?php echo $checked; ?> value="page" class="styled" />
297
+ <label class="cstmdsplsub">Page</label>
298
+ </div>
299
+ </li>
300
+ <li>
301
+ <div class="radio_section tb_4_ck">
302
+ <input type="checkbox" <?php echo $checked; ?> value="post" class="styled" />
303
+ <label class="cstmdsplsub">Post</label>
304
+ </div>
305
+ </li>
306
+ </ul>
307
+
308
+ <ul class="sfsi_show_hide_section">
309
+ <li>
310
+ <div class="radio_section tb_4_ck">
311
+ <input name="sfsi_custom_social_hide" type="checkbox" <?php echo $checkedS; ?> value="<?php echo $checkedVal; ?>" class="styled" />
312
+ <label class="cstmdsplsub">Hide section for all</label>
313
+ </div>
314
+ </li>
315
+ </ul>
316
+ </div>
317
+
318
+ <div class="sfsi_new_prmium_follw sfsi_social_sharing" style="margin-bottom: 15px;">
319
+ <p>Note: This feature is currently only available in the Premium Plugin. <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=define_pic_and_text&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a>
320
+ </p>
321
+ </div>
322
+ </div>
323
+
324
+ <!--******************** Sharing texts & pictures section CLOSES ************************************************-->
325
+
326
+ <!-- mouse over text section start here -->
327
+ <div class="row mouse_txt">
328
+ <h4>Mouseover text</h4>
329
+ <p>
330
+ If you’ve given your icon only one function (i.e. no pop-up where user can perform different actions) then you can define
331
+ here what text will be displayed if a user moves his mouse over the icon:
332
+ </p>
333
+ <div class="space">
334
+ <div class="clear"></div>
335
+ <div class="mouseover_field rss_section">
336
+ <label>RSS:</label><input name="sfsi_rss_MouseOverText" value="<?php echo ($option5['sfsi_rss_MouseOverText']!='') ? $option5['sfsi_rss_MouseOverText'] : '' ;?>" type="text" />
337
+ </div>
338
+ <div class="mouseover_field email_section">
339
+ <label>Email:</label><input name="sfsi_email_MouseOverText" value="<?php echo ($option5['sfsi_email_MouseOverText']!='') ? $option5['sfsi_email_MouseOverText'] : '' ;?>" type="text" />
340
+ </div>
341
+
342
+ <div class="clear">
343
+ <div class="mouseover_field twitter_section">
344
+ <label>Twitter:</label>
345
+ <input name="sfsi_twitter_MouseOverText" value="<?php echo ($option5['sfsi_twitter_MouseOverText']!='') ? $option5['sfsi_twitter_MouseOverText'] : '' ;?>" type="text" />
346
+ </div>
347
+ <div class="mouseover_field facebook_section">
348
+ <label>Facebook:</label>
349
+ <input name="sfsi_facebook_MouseOverText" value="<?php echo ($option5['sfsi_facebook_MouseOverText']!='') ? $option5['sfsi_facebook_MouseOverText'] : '' ;?>" type="text" />
350
+ </div>
351
+ </div>
352
+ <div class="clear">
353
+ <div class="mouseover_field linkedin_section">
354
+ <label>LinkedIn:</label>
355
+ <input name="sfsi_linkedIn_MouseOverText" value="<?php echo ($option5['sfsi_linkedIn_MouseOverText']!='') ? $option5['sfsi_linkedIn_MouseOverText'] : '' ;?>" type="text" />
356
+ </div>
357
+ </div>
358
+ <div class="clear">
359
+ <div class="mouseover_field pinterest_section">
360
+ <label>Pinterest:</label>
361
+ <input name="sfsi_pinterest_MouseOverText" value="<?php echo ($option5['sfsi_pinterest_MouseOverText']!='') ? $option5['sfsi_pinterest_MouseOverText'] : '' ;?>" type="text" />
362
+ </div>
363
+ <div class="mouseover_field youtube_section">
364
+ <label>Youtube:</label>
365
+ <input name="sfsi_youtube_MouseOverText" value="<?php echo ($option5['sfsi_youtube_MouseOverText']!='') ? $option5['sfsi_youtube_MouseOverText'] : '' ;?>" type="text" />
366
+ </div>
367
+ </div>
368
+ <div class="clear">
369
+ <div class="mouseover_field instagram_section">
370
+ <label>Instagram:</label>
371
+ <input name="sfsi_instagram_MouseOverText" value="<?php echo ($option5['sfsi_instagram_MouseOverText']!='') ? $option5['sfsi_instagram_MouseOverText'] : '' ;?>" type="text" />
372
+ </div>
373
+ <div class="mouseover_field telegram_section">
374
+ <label>Telegram:</label>
375
+ <input name="sfsi_telegram_MouseOverText" value="<?php echo ($option5['sfsi_telegram_MouseOverText']!='') ? $option5['sfsi_telegram_MouseOverText'] : '' ;?>" type="text" />
376
+ </div>
377
+ </div>
378
+ <div class="clear">
379
+ <div class="mouseover_field vk_section">
380
+ <label>VK:</label>
381
+ <input name="sfsi_vk_MouseOverText" value="<?php echo ($option5['sfsi_vk_MouseOverText']!='') ? $option5['sfsi_vk_MouseOverText'] : '' ;?>" type="text" />
382
+ </div>
383
+ <div class="mouseover_field ok_section">
384
+ <label>Ok:</label>
385
+ <input name="sfsi_ok_MouseOverText" value="<?php echo ($option5['sfsi_ok_MouseOverText']!='') ? $option5['sfsi_ok_MouseOverText'] : '' ;?>" type="text" />
386
+ </div>
387
+ </div>
388
+ <div class="clear">
389
+ <div class="mouseover_field weibo_section">
390
+ <label>Weibo:</label>
391
+ <input name="sfsi_weibo_MouseOverText" value="<?php echo ($option5['sfsi_weibo_MouseOverText']!='') ? $option5['sfsi_weibo_MouseOverText'] : '' ;?>" type="text" />
392
+ </div>
393
+ <div class="mouseover_field wechat_section">
394
+ <label>WeChat:</label>
395
+ <input name="sfsi_wechat_MouseOverText" value="<?php echo ($option5['sfsi_wechat_MouseOverText']!='') ? $option5['sfsi_wechat_MouseOverText'] : '' ;?>" type="text" />
396
+ </div>
397
+ </div>
398
+ <div class="clear"> </div>
399
+ <div class="custom_m">
400
+ <?php
401
+ $sfsiMouseOverTexts = unserialize($option5['sfsi_custom_MouseOverTexts']);
402
+ $count = 1; for($i=$first_key; $i <= $endkey; $i++) :
403
+ ?><?php if(!empty( $icons[$i])) : ?>
404
+
405
+ <div class="mouseover_field custom_section sfsiICON_<?php echo $i; ?>">
406
+ <label>Custom <?php echo $count; ?>:</label>
407
+ <input name="sfsi_custom_MouseOverTexts[]" value="<?php echo (isset($sfsiMouseOverTexts[$i]) && $sfsiMouseOverTexts[$i]!='') ?sanitize_text_field($sfsiMouseOverTexts[$i]) : '' ;?>" type="text" file-id="<?php echo $i; ?>" />
408
+ </div>
409
+
410
+ <?php if($count%2==0): ?>
411
+
412
+ <div class="clear"> </div>
413
+ <?php endif; ?><?php $count++; endif; endfor; ?>
414
+ </div>
415
+
416
+ </div>
417
+
418
+ </div>
419
+ <!-- END mouse over text section -->
420
+
421
+ <div class="row new_wind">
422
+ <h4>Error reporting</h4>
423
+ <div class="row_onl"><p>Suppress error messages?</p>
424
+ <ul class="enough_waffling">
425
+ <li>
426
+ <input name="sfsi_icons_suppress_errors" <?php echo ($sfsi_icons_suppress_errors=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" />
427
+ <label>Yes</label>
428
+ </li>
429
+ <li>
430
+ <input name="sfsi_icons_suppress_errors" <?php echo ($sfsi_icons_suppress_errors=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled" />
431
+ <label>No</label>
432
+ </li>
433
+ </ul>
434
+ </div>
435
+ </div>
436
+
437
+ <?php sfsi_ask_for_help(5); ?>
438
+ <!-- SAVE BUTTON SECTION -->
439
+ <div class="save_button">
440
+ <img src="<?php echo SFSI_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
441
+ <?php $nonce = wp_create_nonce("update_step5"); ?>
442
+ <a href="javascript:;" id="sfsi_save5" title="Save" data-nonce="<?php echo $nonce;?>">Save</a>
443
+ </div>
444
+ <!-- END SAVE BUTTON SECTION -->
445
+
446
+ <a class="sfsiColbtn closeSec" href="javascript:;" >Collapse area</a>
447
+ <label class="closeSec"></label>
448
+
449
+ <!-- ERROR AND SUCCESS MESSAGE AREA-->
450
+ <p class="red_txt errorMsg" style="display:none"> </p>
451
+ <p class="green_txt sucMsg" style="display:none"> </p>
452
+ <div class="clear"></div>
453
+
454
+ </div>
455
+ <!-- END Section 5 "Any other wishes for your main icons?"-->
views/sfsi_option_view6.php CHANGED
@@ -1,498 +1,498 @@
1
- <?php
2
- /* unserialize all saved option for section 6 options */
3
-
4
- $option6 = unserialize(get_option('sfsi_section6_options', false));
5
-
6
- /**
7
-
8
- * Sanitize, escape and validate values
9
-
10
- */
11
-
12
- $option6['sfsi_show_Onposts'] = (isset($option6['sfsi_show_Onposts'])) ? sanitize_text_field($option6['sfsi_show_Onposts']) : 'no';
13
-
14
- $option6['sfsi_show_Onbottom'] = (isset($option6['sfsi_show_Onbottom'])) ? sanitize_text_field($option6['sfsi_show_Onbottom']) : '';
15
-
16
- $option6['sfsi_icons_postPositon'] = (isset($option6['sfsi_icons_postPositon'])) ? sanitize_text_field($option6['sfsi_icons_postPositon']) : '';
17
-
18
- $option6['sfsi_icons_alignment'] = (isset($option6['sfsi_icons_alignment'])) ? sanitize_text_field($option6['sfsi_icons_alignment']) : '';
19
-
20
- $option6['sfsi_rss_countsDisplay'] = (isset($option6['sfsi_rss_countsDisplay'])) ? sanitize_text_field($option6['sfsi_rss_countsDisplay']) : '';
21
-
22
- $option6['sfsi_textBefor_icons'] = (isset($option6['sfsi_textBefor_icons'])) ? sanitize_text_field($option6['sfsi_textBefor_icons']) : '';
23
-
24
- $option6['sfsi_icons_DisplayCounts'] = (isset($option6['sfsi_icons_DisplayCounts'])) ? sanitize_text_field($option6['sfsi_icons_DisplayCounts']) : '';
25
-
26
- $option6['sfsi_rectsub'] = (isset($option6['sfsi_rectsub'])) ? sanitize_text_field($option6['sfsi_rectsub']) : '';
27
-
28
- $option6['sfsi_rectfb'] = (isset($option6['sfsi_rectfb'])) ? sanitize_text_field($option6['sfsi_rectfb']) : '';
29
-
30
- $option6['sfsi_rectshr'] = (isset($option6['sfsi_rectshr'])) ? sanitize_text_field($option6['sfsi_rectshr']) : '';
31
-
32
- $option6['sfsi_recttwtr'] = (isset($option6['sfsi_recttwtr'])) ? sanitize_text_field($option6['sfsi_recttwtr']) : '';
33
-
34
- $option6['sfsi_rectpinit'] = (isset($option6['sfsi_rectpinit'])) ? sanitize_text_field($option6['sfsi_rectpinit']) : '';
35
-
36
- $option6['sfsi_rectfbshare'] = (isset($option6['sfsi_rectfbshare'])) ? sanitize_text_field($option6['sfsi_rectfbshare']) : '';
37
-
38
- $option6['sfsi_display_button_type'] = (isset($option6['sfsi_display_button_type']))
39
- ? sanitize_text_field($option6['sfsi_display_button_type'])
40
- : '';
41
- $option6['sfsi_show_premium_placement_box'] = (isset($option6['sfsi_show_premium_placement_box']))
42
- ? sanitize_text_field($option6['sfsi_show_premium_placement_box'])
43
- : 'yes';
44
- $option6['sfsi_responsive_icons_end_post'] = (isset($option6['sfsi_responsive_icons_end_post']))
45
- ? sanitize_text_field($option6['sfsi_responsive_icons_end_post'])
46
- : 'no';
47
- $option6['sfsi_share_count'] = (isset($option6['sfsi_share_count']))
48
- ? sanitize_text_field($option6['sfsi_share_count'])
49
- : 'no';
50
-
51
- $sfsi_responsive_icons_default = array(
52
- "default_icons" => array(
53
- "facebook" => array("active" => "yes", "text" => "Share on Facebook", "url" => ""),
54
- "Twitter" => array("active" => "yes", "text" => "Tweet", "url" => ""),
55
- "Follow" => array("active" => "yes", "text" => "Follow us", "url" => ""),
56
- ),
57
- "custom_icons" => array(),
58
- "settings" => array(
59
- "icon_size" => "Medium",
60
- "icon_width_type" => "Fully responsive",
61
- "icon_width_size" => 240,
62
- "edge_type" => "Round",
63
- "edge_radius" => 5,
64
- "style" => "Gradient",
65
- "margin" => 10,
66
- "text_align" => "Centered",
67
- "show_count" => "no",
68
- "counter_color" => "#aaaaaa",
69
- "counter_bg_color" => "#fff",
70
- "share_count_text" => "SHARES"
71
- )
72
- );
73
- $sfsi_responsive_icons = (isset($option6["sfsi_responsive_icons"]) ? $option6["sfsi_responsive_icons"] : $sfsi_responsive_icons_default);
74
- if (!isset($option6['sfsi_rectsub'])) {
75
- $option6['sfsi_rectsub'] = 'no';
76
- }
77
-
78
- if (!isset($option6['sfsi_rectfb'])) {
79
- $option6['sfsi_rectfb'] = 'yes';
80
- }
81
-
82
- if (!isset($option6['sfsi_recttwtr'])) {
83
- $option6['sfsi_recttwtr'] = 'no';
84
- }
85
-
86
- if (!isset($option6['sfsi_rectpinit'])) {
87
- $option6['sfsi_rectpinit'] = 'no';
88
- }
89
-
90
- if (!isset($option6['sfsi_rectfbshare'])) {
91
- $option6['sfsi_rectfbshare'] = 'no';
92
- }
93
- ?>
94
- <!-- Section 6 "Do you want to display icons at the end of every post?" main div Start -->
95
-
96
- <div class="tab6">
97
- <ul class="sfsi_icn_listing8">
98
-
99
- <li class="sfsibeforeafterpostselector">
100
- <div class="radio_section tb_4_ck"></div>
101
- <div class="sfsi_right_info">
102
- <ul class="sfsi_tab_3_icns sfsi_shwthmbfraftr" style="margin:0">
103
- <li onclick="sfsi_togglbtmsection('sfsi_toggleonlystndrshrng, .sfsi_responsive_hide', 'sfsi_toggleonlyrspvshrng, .sfsi_responsive_show', this);" class="clckbltglcls sfsi_border_left_0">
104
- <input name="sfsi_display_button_type" <?php echo ($option6['sfsi_display_button_type'] == 'standard_buttons') ? 'checked="true"' : ''; ?> type="radio" value="standard_buttons" class="styled" />
105
- <label class="labelhdng4">
106
- Original icons
107
- </label>
108
- </li>
109
- <li onclick="sfsi_togglbtmsection('sfsi_toggleonlyrspvshrng, .sfsi_responsive_show', 'sfsi_toggleonlystndrshrng, .sfsi_responsive_hide', this);" class="clckbltglcls sfsi_border_left_0">
110
- <input name="sfsi_display_button_type" <?php echo ($option6['sfsi_display_button_type'] == 'responsive_button') ? 'checked="true"' : ''; ?> type="radio" value="responsive_button" class="styled" />
111
- <label class="labelhdng4">
112
- Responsive icons
113
- </label>
114
- </li>
115
- <?php if ($option6['sfsi_display_button_type'] == 'standard_buttons') : $display = "display:block";
116
- else : $display = "display:none";
117
- endif; ?>
118
- <li class="sfsi_toggleonlystndrshrng sfsi_border_left_0" style="<?php echo $display; ?>">
119
- <div class="radiodisplaysection" style="<?php echo $display; ?>">
120
-
121
- <p class="cstmdisplaysharingtxt cstmdisextrpdng">
122
- The selections you made so far were to display the subscriptions/ social media icons for your site in general (in a widget on the sidebar). You can also display icons at the end of every post, encouraging users to subscribe/like/share after they’ve read it. The following buttons will be added:
123
- </p>
124
-
125
- <!-- icons example section -->
126
- <div class="social_icon_like1 cstmdsplyulwpr sfsi_center">
127
-
128
- <ul>
129
- <li>
130
- <div class="radio_section tb_4_ck"><input name="sfsi_rectsub" <?php echo ($option6['sfsi_rectsub'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_rectsub" type="checkbox" value="yes" class="styled" /></div>
131
-
132
- <a href="#" title="Subscribe Follow" class="cstmdsplsub">
133
- <img src="<?php echo SFSI_PLUGURL; ?>images/follow_subscribe.png" alt="Subscribe Follow" />
134
- </a>
135
- </li>
136
- <li>
137
- <div class="radio_section tb_4_ck"><input name="sfsi_rectfb" <?php echo ($option6['sfsi_rectfb'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_rectfb" type="checkbox" value="yes" class="styled" /></div>
138
-
139
- <a href="#" title="Facebook Like">
140
- <img src="<?php echo SFSI_PLUGURL; ?>images/like.jpg" alt="Facebook Like" />
141
- </a>
142
- </li>
143
- <li>
144
- <div class="radio_section tb_4_ck"><input name="sfsi_rectfbshare" <?php echo ($option6['sfsi_rectfbshare'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_rectfbshare" type="checkbox" value="yes" class="styled" /></div>
145
- <a href="#" title="Facebook Share">
146
- <img src="<?php echo SFSI_PLUGURL; ?>images/fbshare.png" alt="Facebook Share" />
147
- </a>
148
- </li>
149
-
150
- <li>
151
-
152
- <div class="radio_section tb_4_ck"><input name="sfsi_recttwtr" <?php echo ($option6['sfsi_recttwtr'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_recttwtr" type="checkbox" value="yes" class="styled" /></div>
153
-
154
- <a href="#" title="twitter" class="cstmdspltwtr">
155
-
156
- <img src="<?php echo SFSI_PLUGURL; ?>images/twiiter.png" alt="Twitter like" />
157
- </a>
158
-
159
- </li>
160
-
161
- <li>
162
-
163
- <div class="radio_section tb_4_ck"><input name="sfsi_rectpinit" <?php echo ($option6['sfsi_rectpinit'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_rectpinit" type="checkbox" value="yes" class="styled" /></div>
164
-
165
- <a href="#" title="Pin It">
166
- <img src="<?php echo SFSI_PLUGURL; ?>images/pinit.png" alt="Pin It" />
167
- </a>
168
- </li>
169
- </ul>
170
- </div><!-- icons position section -->
171
-
172
- <p class="clear">Those are usually all you need: </p>
173
-
174
- <ul class="usually">
175
- <li>1. The follow-icon ensures that your visitors subscribe to your newsletter</li>
176
- <li>2. Facebook is No.1 in «liking», so it’s a must have</li>
177
- <li>3. The Tweet-button allows quick tweeting of your article</li>
178
- <li></li>
179
- <li></li>
180
- </ul>
181
- <?php if ($option6['sfsi_show_premium_placement_box'] == 'yes') { ?>
182
- <p class="sfsi_prem_plu_desc ">
183
- <b>New: </b>We also added a Linkedin share-icon in the Premium Plugin. <a class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" style="border-bottom: 1px solid #12a252;color: #12a252 !important;cursor:pointer;" target="_blank">Go premium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usm_settings_page&utm_campaign=linkedin_icon&utm_medium=banner" class="sfsi_font_inherit" style="color: #12a252 !important" target="_blank"> or learn more</a>
184
- </p>
185
- <?php } ?>
186
- <div class="options">
187
- <label class="heading-label" style="width:auto!important;margin-top: 11px;margin-right: 11px;">
188
- <b>So: do you want to display those at the end of every post?</b>
189
- </label>
190
- <ul style="display:flex">
191
- <li style="min-width: 200px">
192
- <input name="sfsi_show_Onposts" <?php echo ($option6['sfsi_show_Onposts'] == 'yes') ? 'checked="true"' : ''; ?> type="radio" value="yes" class="styled" />
193
- <label class="labelhdng4" style="width: auto;">
194
- Yes
195
- </label>
196
- </li>
197
- <li>
198
- <input name="sfsi_show_Onposts" <?php echo ($option6['sfsi_show_Onposts'] == 'no') ? 'checked="true"' : ''; ?> type="radio" value="no" class="styled" />
199
- <label class="labelhdng4" style="width: auto;">
200
- No
201
- </label>
202
- </li>
203
-
204
- </div>
205
- <div class="row PostsSettings_section">
206
-
207
- <h4>Options:</h4>
208
-
209
- <div class="options">
210
-
211
- <label class="first">Text to appear before the sharing icons:</label><input name="sfsi_textBefor_icons" type="text" value="<?php echo ($option6['sfsi_textBefor_icons'] != '') ? $option6['sfsi_textBefor_icons'] : ''; ?>" />
212
-
213
- </div>
214
-
215
- <!-- by developer - 28-05-2019 -->
216
-
217
- <div class="options">
218
- <p><b>New:</b> In the Premium Plugin you can choose to display the text before the sharing icons in a font of your choice. You can also define the<b> font size, type</b>, and the <b>margins below/above the icons</b>. <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_placement_options&utm_medium=banner" target="_blank" style="color:#00a0d2 !important; text-decoration: none !important;">Check it out.</a></p>
219
- </div>
220
-
221
- <!-- end -->
222
- <div class="options">
223
- <label>Alignment of share icons: </label>
224
- <div class="field"><select name="sfsi_icons_alignment" id="sfsi_icons_alignment" class="styled">
225
- <option value="left" <?php echo ($option6['sfsi_icons_alignment'] == 'left') ? 'selected="selected"' : ''; ?>>Left</option>
226
- <!--<option value="center" <?php //echo ($option6['sfsi_icons_alignment']=='center') ? 'selected="selected"' : '' ;
227
- ?>>Center</option>-->
228
- <option value="right" <?php echo ($option6['sfsi_icons_alignment'] == 'right') ? 'selected="selected"' : ''; ?>>Right</option>
229
- </select>
230
- </div>
231
- </div>
232
- <div class="options">
233
-
234
- <label>Do you want to display the counts?</label>
235
- <div class="field"><select name="sfsi_icons_DisplayCounts" id="sfsi_icons_DisplayCounts" class="styled">
236
- <option value="yes" <?php echo ($option6['sfsi_icons_DisplayCounts'] == 'yes') ? 'selected="true"' : ''; ?>>YES</option>
237
- <option value="no" <?php echo ($option6['sfsi_icons_DisplayCounts'] == 'no') ? 'selected="true"' : ''; ?>>NO</option>
238
- </select>
239
- </div>
240
- </div>
241
-
242
- </div>
243
- <!-- by developer - 28-5-2019 -->
244
-
245
- <div class="sfsi_new_prmium_follw">
246
- <p><b>New:</b> In our Premium Plugin you have many more placement options, e.g. place the icons you selected under question 1, place them also on your homepage (instead of only post’s pages), place them before posts (instead of only after posts) etc. <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">See all features</a><!-- <a href="https://www.ultimatelysocial.com/usm-premium/?https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_placement_options&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a> -->
247
- </p>
248
- </div>
249
- </div>
250
- </li>
251
- <?php if ($option6['sfsi_display_button_type'] == 'responsive_button') : $display = "display:block";
252
- else : $display = "display:none";
253
- endif; ?>
254
- <li class="sfsi_toggleonlyrspvshrng" style="<?php echo $display; ?>">
255
- <label style="width: 80%;width:calc( 100% - 102px );font-family: helveticaregular;font-size: 18px;color: #5c6267;margin: 10px 0px;">These are responsive & independent from the icons you selected elsewhere in the plugin. Preview:</label>
256
- <div style="width: 80%; margin-left:5px; width:calc( 100% - 102px );">
257
- <div class="sfsi_responsive_icon_preview" style="width:calc( 100% - 50px )">
258
-
259
- <?php echo sfsi_social_responsive_buttons(null, $option6, true); ?>
260
- </div> <!-- end sfsi_responsive_icon_preview -->
261
- </div>
262
- <ul >
263
- <li class="sfsi_responsive_default_icon_container sfsi_border_left_0 " style="margin: 10px 0px">
264
- <label class="heading-label select-icons">
265
- Select Icons
266
- </label>
267
- </li>
268
- <?php foreach ($sfsi_responsive_icons['default_icons'] as $icon => $icon_config) :
269
- ?>
270
- <li class="sfsi_responsive_default_icon_container sfsi_vertical_center sfsi_border_left_0">
271
- <div class="radio_section tb_4_ck">
272
- <input name="sfsi_responsive_<?php echo $icon; ?>_display" <?php echo ($icon_config['active'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_responsive_<?php echo $icon; ?>_display" type="checkbox" value="yes" class="styled" data-icon="<?php echo $icon; ?>" />
273
- </div>
274
- <span class="sfsi_icon_container">
275
- <div class="sfsi_responsive_icon_item_container sfsi_responsive_icon_<?php echo strtolower($icon); ?>_container" style="word-break:break-all;padding-left:0">
276
- <div style="display: inline-block;height: 40px;width: 40px;text-align: center;vertical-align: middle!important;float: left;">
277
- <img style="float:none" src="<?php echo SFSI_PLUGURL; ?>images/responsive-icon/<?php echo $icon; ?><?php echo 'Follow' === $icon ? '.png' : '.svg'; ?>"></div>
278
- <span> <?php echo $icon_config["text"]; ?> </span>
279
- </div>
280
- </span>
281
- <input type="text" class="sfsi_responsive_input" name="sfsi_responsive_<?php echo $icon ?>_input" value="<?php echo $icon_config["text"]; ?>" />
282
- <a href="#" class="sfsi_responsive_default_url_toggler" style="text-decoration: none;">Define URL*</a>
283
- <input style="display:none" class="sfsi_responsive_url_input" type="text" placeholder="Enter url" name="sfsi_responsive_<?php echo $icon ?>_url_input" value="<?php echo $icon_config["url"]; ?>" />
284
- <a href="#" class="sfsi_responsive_default_url_hide" style="display:none"><span class="sfsi_cancel_text">Cancel</span><span class="sfsi_cancel_icon">&times;</span></a>
285
- </li>
286
-
287
- <?php endforeach; ?>
288
- </ul>
289
- &nbsp;
290
- <p style="font-size:16px !important;padding-top: 0px;">
291
- <span>* All icons have «sharing» feature enabled by default. If you want to give them a different function (e.g link to your Facebook page) then please click on «Define url» next to the icon.</span>
292
- </p>
293
- <?php if ($option6['sfsi_show_premium_placement_box'] == 'yes') { ?>
294
- <div class="sfsi_new_prmium_follw" style="width: 91%;">
295
- <p style="font-size:20px !important">
296
- <b>New: </b>In the Premium Plugin, we also added: Pinterest, Linkedin, WhatsApp, VK, OK, Telegram, Weibo, WeChat, Xing and the option to add custom icons. There are more important options to add custom icons. There are more placement options too, e.g. place the responsive icons before/after posts/pages, show them only on desktop/mobile, insert them manually (via shortcode).<a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=responsive_icons&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> See all features</a>
297
- </p>
298
- </div>
299
- <?php } ?>
300
-
301
- <div class="options">
302
- <label class="heading-label" style="width:auto!important;margin-top: 11px;margin-right: 11px;">
303
- <b>So: do you want to display those at the end of every post?</b>
304
- </label>
305
- <ul style="display:flex">
306
- <li style="min-width: 200px">
307
- <input name="sfsi_responsive_icons_end_post" <?php echo ($option6['sfsi_responsive_icons_end_post'] == 'yes') ? 'checked="true"' : ''; ?> type="radio" value="yes" class="styled" />
308
- <label class="labelhdng4" style="width: auto;">
309
- Yes
310
- </label>
311
- </li>
312
- <li>
313
- <input name="sfsi_responsive_icons_end_post" <?php echo ($option6['sfsi_responsive_icons_end_post'] == 'no') ? 'checked="true"' : ''; ?> type="radio" value="no" class="styled" />
314
- <label class="labelhdng4" style="width: auto;">
315
- No
316
- </label>
317
- </li>
318
- </div>
319
- </li>
320
-
321
- <!-- sfsi_responsive_icons_end_post -->
322
- <li class="sfsi_responsive_icon_option_li sfsi_responsive_show " style="<?php echo ($option6['sfsi_responsive_icons_end_post'] == 'yes')?'display:block':'display:none' ?>">
323
- <label class="options heading-label" style="margin: 0px 0px 12px 0px;">
324
- Design options
325
- </label>
326
- <div class="options sfsi_margin_top_0 ">
327
- <label class="first">
328
- Icons size:
329
- </label>
330
- <div class="field">
331
- <div style="display:inline-block">
332
- <select name="sfsi_responsive_icons_settings_icon_size" class="styled">
333
- <option value="Small" <?php echo (isset($sfsi_responsive_icons["settings"]) && isset($sfsi_responsive_icons["settings"]["icon_size"]) && $sfsi_responsive_icons["settings"]["icon_size"] === "Small") ? 'selected="selected"' : ""; ?>>
334
- Small
335
- </option>
336
- <option value="Medium" <?php echo (isset($sfsi_responsive_icons["settings"]) && isset($sfsi_responsive_icons["settings"]["icon_size"]) && $sfsi_responsive_icons["settings"]["icon_size"] === "Medium") ? 'selected="selected"' : ""; ?>>
337
- Medium
338
- </option>
339
- <option value="Large" <?php echo (isset($sfsi_responsive_icons["settings"]) && isset($sfsi_responsive_icons["settings"]["icon_size"]) && $sfsi_responsive_icons["settings"]["icon_size"] === "Large") ? 'selected="selected"' : ""; ?>>
340
- Large
341
- </option>
342
- </select>
343
- </div>
344
- </div>
345
- </div>
346
-
347
- <div class="options sfsi_margin_top_0 ">
348
- <label class="first">
349
- Icons width:
350
- </label>
351
- <div class="field">
352
- <div style="display:inline-block">
353
- <select name="sfsi_responsive_icons_settings_icon_width_type" class="styled">
354
- <option value="Fixed icon width" <?php echo (isset($sfsi_responsive_icons["settings"]) && isset($sfsi_responsive_icons["settings"]["icon_width_type"]) && $sfsi_responsive_icons["settings"]["icon_width_type"] === "Fixed icon width") ? 'selected="selected"' : ""; ?>>
355
- Fixed icon width
356
- </option>
357
- <option value="Fully responsive" <?php echo (isset($sfsi_responsive_icons["settings"]) && isset($sfsi_responsive_icons["settings"]["icon_width_type"]) && $sfsi_responsive_icons["settings"]["icon_width_type"] === "Fully responsive") ? 'selected="selected"' : ""; ?>>
358
- Fully responsive
359
- </option>
360
- </select>
361
- </div>
362
- <div class="sfsi_responsive_icons_icon_width sfsi_inputSec" style='display:<?php echo (isset($sfsi_responsive_icons["settings"]["icon_width_type"]) && $sfsi_responsive_icons["settings"]["icon_width_type"] == 'Fully responsive') ? 'none' : 'inline-block'; ?>'>
363
- <span style="width:auto!important">of</span>
364
- <input type="number" value="<?php echo isset($sfsi_responsive_icons["settings"]) && isset($sfsi_responsive_icons["settings"]["icon_width_size"]) ? $sfsi_responsive_icons["settings"]["icon_width_size"] : 140; ?>" name="sfsi_responsive_icons_sttings_icon_width_size" style="float:none" />
365
- </select>
366
- <span class="sfsi_span_after_input">pixels</span>
367
- </div>
368
- </div>
369
- </div>
370
- <div class="options sfsi_inputSec textBefor_icons_fontcolor sfsi_margin_top_0">
371
- <label class="first">
372
- Edges:
373
- </label>
374
- <div class="field">
375
- <div style="display:inline-block">
376
- <select name="sfsi_responsive_icons_settings_edge_type" class="styled">
377
- <option value="Round" <?php echo (isset($sfsi_responsive_icons["settings"]) && isset($sfsi_responsive_icons["settings"]["edge_type"]) && $sfsi_responsive_icons["settings"]["edge_type"] === "Round") ? 'selected="selected"' : ""; ?>>
378
- Round
379
- </option>
380
- <option value="Sharp" <?php echo (isset($sfsi_responsive_icons["settings"]) && isset($sfsi_responsive_icons["settings"]["edge_type"]) && $sfsi_responsive_icons["settings"]["edge_type"] === "Sharp") ? 'selected="selected"' : ""; ?>>
381
- Sharp
382
- </option>
383
- </select>
384
- </div>
385
- <span style="width:auto!important;font-size: 17px;color: #5A6570; <?php echo (isset($sfsi_responsive_icons["settings"]["edge_type"]) && $sfsi_responsive_icons["settings"]["edge_type"] == 'Sharp') ? 'display:none' : ''; ?>">with border radius</span>
386
- </div>
387
- <div class="field-sfsi_responsive_icons_settings_edge_radius" style="position:absolute;margin-left: 6px;<?php echo (isset($sfsi_responsive_icons["settings"]["edge_type"]) && $sfsi_responsive_icons["settings"]["edge_type"] == 'Sharp') ? 'display:none' : 'display:inline-block'; ?>">
388
- <select name="sfsi_responsive_icons_settings_edge_radius" id="sfsi_icons_alignment" class="styled">
389
- <?php for ($i = 1; $i <= 20; $i++) : ?>
390
- <option value="<?php echo $i; ?>" <?php echo (isset($sfsi_responsive_icons["settings"]) && isset($sfsi_responsive_icons["settings"]["edge_radius"]) && $sfsi_responsive_icons["settings"]["edge_radius"] == $i) ? 'selected="selected"' : ''; ?>>
391
- <?php echo $i; ?>
392
- </option>
393
- <?php endfor; ?>
394
- </select>
395
- </div>
396
- <!-- <span style=" <?php echo (isset($sfsi_responsive_icons["settings"]["edge_type"]) && $sfsi_responsive_icons["settings"]["edge_type"] == 'Sharp') ? 'display:none' : ''; ?>">pixels</span> -->
397
-
398
- </div>
399
-
400
- <div class="options sfsi_margin_top_0">
401
- <label class="first">
402
- Style:
403
- </label>
404
- <div class="field">
405
- <div style="display:inline-block">
406
- <select name="sfsi_responsive_icons_settings_style" class="styled">
407
- <option value="Flat" <?php echo (isset($sfsi_responsive_icons["settings"]) && isset($sfsi_responsive_icons["settings"]["style"]) && $sfsi_responsive_icons["settings"]["style"] === "Flat") ? 'selected="selected"' : ""; ?>>
408
- Flat
409
- </option>
410
- <option value="Gradient" <?php echo (isset($sfsi_responsive_icons["settings"]) && isset($sfsi_responsive_icons["settings"]["style"]) && $sfsi_responsive_icons["settings"]["style"] === "Gradient") ? 'selected="selected"' : ""; ?>>
411
- Gradient
412
- </option>
413
- </select>
414
- </div>
415
- </div>
416
- </div>
417
-
418
- <div class="options sfsi_margin_top_0 sfsi_inputSec">
419
- <label class="first">
420
- Margin between icons:
421
- </label>
422
- <div class="field">
423
- <input type="number" value="<?php echo isset($sfsi_responsive_icons["settings"]) && isset($sfsi_responsive_icons["settings"]["margin"]) ? $sfsi_responsive_icons["settings"]["margin"] : 0; ?>" name="sfsi_responsive_icons_settings_margin" style="float:none" />
424
- <span class="span_after_input">pixels</span>
425
- </div>
426
- </div>
427
-
428
- <div class="options sfsi_margin_top_0">
429
- <label class="first">
430
- Text on icons:
431
- </label>
432
- <div class="field">
433
- <div style="display:inline-block">
434
- <select name="sfsi_responsive_icons_settings_text_align" class="styled">
435
- <option value="Left aligned" <?php echo (isset($sfsi_responsive_icons["settings"]) && isset($sfsi_responsive_icons["settings"]["text_align"]) && $sfsi_responsive_icons["settings"]["text_align"] === "Left aligned") ? 'selected="selected"' : ""; ?>>
436
- Left aligned
437
- </option>
438
- <option value="Centered" <?php echo (isset($sfsi_responsive_icons["settings"]) && isset($sfsi_responsive_icons["settings"]["text_align"]) && $sfsi_responsive_icons["settings"]["text_align"] === "Centered") ? 'selected="selected"' : ""; ?>>
439
- Centered
440
- </option>
441
- </select>
442
- </div>
443
- </div>
444
- </div>
445
- </li>
446
- <li class="sfsi_responsive_icon_option_li sfsi_responsive_show" style="<?php echo $display; ?>">
447
- <label class=" options heading-label">
448
- Share count
449
- </label>
450
- <div class="options sfsi_margin_top_0">
451
- <label style="width:auto!important;font-size: 16px;">
452
- Show the total share count on the left of your icons. It will only be visible if the individual counts are set up under <a href="#" style="text-decoration: none;font-size: 16px;" onclick="event.preventDefault();sfsi_scroll_to_div(\'ui-id-9\')">question 5</a>.
453
- </label>
454
-
455
- </div>
456
- <ul class="sfsi_tab_3_icns sfsi_shwthmbfraftr ">
457
- <li class="clckbltglcls sfsi_border_left_0" onclick="sfsi_responsive_icon_counter_tgl(null ,'sfsi_premium_responsive_icon_share_count', this);sfsi_responsive_toggle_count();" >
458
- <input name="sfsi_share_count" <?php echo ($option6['sfsi_share_count'] == 'yes') ? 'checked="true"' : ''; ?> type="radio" value="yes" class="styled" />
459
- <label class="labelhdng4">
460
- Yes
461
- </label>
462
- </li>
463
- <li class="clckbltglcls sfsi_border_left_0" onclick="sfsi_responsive_icon_counter_tgl('sfsi_responsive_icon_share_count', null, this);sfsi_responsive_toggle_count();">
464
- <input name="sfsi_share_count" <?php echo ($option6['sfsi_share_count'] == 'no') ? 'checked="true"' : ''; ?> type="radio" value="no" class="styled" />
465
- <label class="labelhdng4">
466
- No
467
- </label>
468
- </li>
469
- </ul>
470
- </li>
471
- </div>
472
- </li>
473
- </ul>
474
-
475
- <?php sfsi_ask_for_help(8); ?>
476
-
477
- <!-- SAVE BUTTON SECTION -->
478
- <div class="save_button">
479
- <img src="<?php echo SFSI_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
480
- <?php $nonce = wp_create_nonce("update_step6"); ?>
481
- <a href="javascript:;" id="sfsi_save6" title="Save" data-nonce="<?php echo $nonce; ?>">
482
- Save
483
- </a>
484
- </div>
485
- <!-- END SAVE BUTTON SECTION -->
486
-
487
- <a class="sfsiColbtn closeSec" href="javascript:;">
488
- Collapse area
489
- </a>
490
- <label class="closeSec"></label>
491
-
492
- <!-- ERROR AND SUCCESS MESSAGE AREA-->
493
- <p class="red_txt errorMsg" style="display:none"> </p>
494
- <p class="green_txt sucMsg" style="display:none"> </p>
495
- <div class="clear"></div>
496
-
497
- </div>
1
+ <?php
2
+ /* unserialize all saved option for section 6 options */
3
+
4
+ $option6 = unserialize(get_option('sfsi_section6_options', false));
5
+
6
+ /**
7
+
8
+ * Sanitize, escape and validate values
9
+
10
+ */
11
+
12
+ $option6['sfsi_show_Onposts'] = (isset($option6['sfsi_show_Onposts'])) ? sanitize_text_field($option6['sfsi_show_Onposts']) : 'no';
13
+
14
+ $option6['sfsi_show_Onbottom'] = (isset($option6['sfsi_show_Onbottom'])) ? sanitize_text_field($option6['sfsi_show_Onbottom']) : '';
15
+
16
+ $option6['sfsi_icons_postPositon'] = (isset($option6['sfsi_icons_postPositon'])) ? sanitize_text_field($option6['sfsi_icons_postPositon']) : '';
17
+
18
+ $option6['sfsi_icons_alignment'] = (isset($option6['sfsi_icons_alignment'])) ? sanitize_text_field($option6['sfsi_icons_alignment']) : '';
19
+
20
+ $option6['sfsi_rss_countsDisplay'] = (isset($option6['sfsi_rss_countsDisplay'])) ? sanitize_text_field($option6['sfsi_rss_countsDisplay']) : '';
21
+
22
+ $option6['sfsi_textBefor_icons'] = (isset($option6['sfsi_textBefor_icons'])) ? sanitize_text_field($option6['sfsi_textBefor_icons']) : '';
23
+
24
+ $option6['sfsi_icons_DisplayCounts'] = (isset($option6['sfsi_icons_DisplayCounts'])) ? sanitize_text_field($option6['sfsi_icons_DisplayCounts']) : '';
25
+
26
+ $option6['sfsi_rectsub'] = (isset($option6['sfsi_rectsub'])) ? sanitize_text_field($option6['sfsi_rectsub']) : '';
27
+
28
+ $option6['sfsi_rectfb'] = (isset($option6['sfsi_rectfb