Social Share Icons & Social Share Buttons - Version 3.2.7

Version Description

  • Update: Feedback system updated.
  • Update: Banner text for responsive icons updated.
  • Update: Css Validation issue corrected.
Download this release

Release Info

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

Code changes from version 3.2.6 to 3.2.7

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/Collector.php CHANGED
@@ -169,9 +169,9 @@ class Collector
169
  */
170
  public function getMysqlVersion()
171
  {
172
- global $wpdb;
173
 
174
- $version = empty($wpdb->use_mysqli) ? mysql_get_server_info() : mysqli_get_server_info($wpdb->dbh);
175
 
176
  return $version ? $version : 'unknown';
177
  }
169
  */
170
  public function getMysqlVersion()
171
  {
172
+ $conn = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME);
173
 
174
+ $version = mysqli_get_server_info($conn);
175
 
176
  return $version ? $version : 'unknown';
177
  }
analyst/src/Core/AbstractFactory.php CHANGED
@@ -5,7 +5,7 @@ namespace Analyst\Core;
5
  abstract class AbstractFactory
6
  {
7
  /**
8
- * Unserialize to NoticeFactory
9
  *
10
  * @param $raw
11
  * @return static
@@ -17,7 +17,7 @@ abstract class AbstractFactory
17
  $isProperObject = is_object($instance) && $instance instanceof static;
18
 
19
  // In case for some reason unserialized object is not
20
- // NoticeFactory we make sure it is NoticeFactory
21
  if (!$isProperObject) {
22
  $instance = new static();
23
  }
5
  abstract class AbstractFactory
6
  {
7
  /**
8
+ * Unserialize to static::class instance
9
  *
10
  * @param $raw
11
  * @return static
17
  $isProperObject = is_object($instance) && $instance instanceof static;
18
 
19
  // In case for some reason unserialized object is not
20
+ // static::class we make sure it is static::class
21
  if (!$isProperObject) {
22
  $instance = new static();
23
  }
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/templates/forms/install.php CHANGED
@@ -27,7 +27,7 @@
27
  </div>
28
  <div class="analyst-install-footer analyst-modal-def-top-padding">
29
  <span class="analyst-action-text" id="analyst-permissions-toggle">Learn more</span>
30
- <span>Powered by <a href="https://sellcodes.com/blog/wordpress-feedback-system-for-plugin-creators/?utm_source=optin_screen" target="_blank" class="analyst-link">Sellcodes.com</a></span>
31
  <span class="analyst-action-text analyst-install-modal-close" id="analyst-install-skip">Skip</span>
32
  </div>
33
  <div id="analyst-install-error" class="analyst-modal-def-top-padding" style="display: none; text-align: center">
@@ -97,6 +97,9 @@
97
  var isVisible = $('#analyst-permissions-block').toggle().is(':visible')
98
 
99
  isVisible ? $(this).text('Close section') : $(this).text('Learn more')
 
 
 
100
  })
101
 
102
  $('#analyst-install-skip').click(function () {
27
  </div>
28
  <div class="analyst-install-footer analyst-modal-def-top-padding">
29
  <span class="analyst-action-text" id="analyst-permissions-toggle">Learn more</span>
30
+ <span id="analyst-powered-by" style="display: none;">Powered by <a href="https://sellcodes.com/blog/wordpress-feedback-system-for-plugin-creators/?utm_source=optin_screen" target="_blank" class="analyst-link">Sellcodes.com</a></span>
31
  <span class="analyst-action-text analyst-install-modal-close" id="analyst-install-skip">Skip</span>
32
  </div>
33
  <div id="analyst-install-error" class="analyst-modal-def-top-padding" style="display: none; text-align: center">
97
  var isVisible = $('#analyst-permissions-block').toggle().is(':visible')
98
 
99
  isVisible ? $(this).text('Close section') : $(this).text('Learn more')
100
+
101
+ var poweredBy = $('#analyst-powered-by')
102
+ isVisible ? poweredBy.show() : poweredBy.hide()
103
  })
104
 
105
  $('#analyst-install-skip').click(function () {
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.28',
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,3765 +1,3786 @@
1
- @charset "utf-8";
2
- @font-face {
3
- font-family: helveticabold;
4
- src: url(fonts/helvetica_bold_0-webfont.eot);
5
- 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');
6
- font-weight: 400;
7
- font-style: normal;
8
- }
9
- @font-face {
10
- font-family: helveticaregular;
11
- src: url(fonts/helvetica_0-webfont.eot);
12
- 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');
13
- font-weight: 400;
14
- font-style: normal;
15
- }
16
-
17
- @font-face {
18
- font-family: helveticaneue-light;
19
- src: url(fonts/helveticaneue-light.eot);
20
- src: url(fonts/helveticaneue-light.eot?#iefix) format('embedded-opentype'),
21
- url(fonts/helveticaneue-light.woff) format('woff'),
22
- url(fonts/helveticaneue-light.ttf) format('truetype'),
23
- url(fonts/helveticaneue-light.svg#helveticaneue-light) format('svg');
24
- font-weight: 400;
25
- font-style: normal;
26
- }
27
- body {
28
- margin: 0;
29
- padding: 0;
30
- }
31
- .clear {
32
- clear: both;
33
- }
34
- .space {
35
- clear: both;
36
- padding: 30px 0 0;
37
- width: 100%;
38
- float: left;
39
- }
40
- .sfsi_mainContainer {
41
- font-family: helveticaregular;
42
- }
43
- .sfsi_mainContainer h1, .sfsi_mainContainer h2, .sfsi_mainContainer h3, .sfsi_mainContainer h4, .sfsi_mainContainer h5, .sfsi_mainContainer h6, .sfsi_mainContainer li, .sfsi_mainContainer p, .sfsi_mainContainer ul {
44
- margin: 0;
45
- padding: 0;
46
- font-weight: 400;
47
- }
48
- .sfsi_mainContainer img {
49
- border: 0;
50
- }
51
- .main_contant p, .ui-accordion .ui-accordion-header {
52
- font-family: 'helveticaneue-light';
53
- }
54
- .sfsi_mainContainer input, .sfsi_mainContainer select {
55
- outline: 0;
56
- }
57
- .wapper {
58
- padding: 48px 106px 40px 20px;
59
- display: block;
60
- background: #f1f1f1;
61
- }
62
- .main_contant {
63
- margin: 0;
64
- padding: 0;
65
- }
66
- .main_contant h1 {
67
- padding: 0;
68
- color: #1a1d20;
69
- font-family: helveticabold;
70
- font-size: 28px;
71
- }
72
- .main_contant p {
73
- padding: 0;
74
- color: #414951;
75
- font-size: 17px;
76
- line-height: 26px;
77
- }
78
- .main_contant p span {
79
- text-decoration: underline;
80
- font-family: helveticabold;
81
- }
82
- .like_txt {
83
- margin: 30px 0 0;
84
- padding: 0;
85
- color: #12a252;
86
- font-family: helveticaregular;
87
- font-size: 20px;
88
- line-height: 20px;
89
- text-align: center;
90
- }
91
- .like_txt a {
92
- color: #12a252;
93
- }
94
- #accordion p, #accordion1 p {
95
- color: #5a6570;
96
- text-align: left;
97
- font-family: 'helveticaneue-light';
98
- font-size: 17px;
99
- line-height: 26px;
100
- padding-top: 19px;
101
- }
102
- .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr .cstmdisplaysharingtxt { float: left; }
103
- #accordion p:first-child, #accordion1 p:first-child {
104
- padding-top: 0;
105
- }
106
- #accordion h4, #accordion1 h4 {
107
- margin: 0;
108
- padding: 30px 0 0;
109
- color: #414951;
110
- font-size: 20px;
111
- line-height: 22px;
112
- font-family: helveticaregular;
113
- }
114
- #accordion h4:first-child, #accordion1 h4:first-child {
115
- padding-top: 0;
116
- }
117
-
118
- #accordion .tab8 h4:first-child, #accordion1 h4:first-child { margin-left: 0 !important}
119
-
120
- .tab1, .tab2, .tab3, .tab4, .tab5, .tab6, .tab7 {
121
- color: #5a6570;
122
- text-align: left;
123
- font-family: helveticaregular;
124
- font-size: 18px;
125
- line-height: 26px;
126
- }
127
- .tab4 ul.like_icon {
128
- margin: 0;
129
- padding: 20px 0 0;
130
- list-style: none;
131
- text-align: center;
132
- }
133
- .tab4 ul.like_icon li {
134
- margin: 0;
135
- padding: 0;
136
- list-style: none;
137
- display: inline-block;
138
- }
139
- .tab4 ul.like_icon li span {
140
- margin: 0;
141
- width: 54px;
142
- display: block;
143
- background: url(../images/count_bg.png) no-repeat;
144
- height: 24px;
145
- overflow: hidden;
146
- padding: 10px 2px 2px;
147
- font-size: 17px;
148
- text-align: center;
149
- line-height: 24px;
150
- color: #5a6570;
151
- }
152
- .tab4 ul.like_icon li a {
153
- color: #5a6570;
154
- text-decoration: none;
155
- }
156
- .tab4 ul.enough_waffling {
157
- margin: 0;
158
- padding: 25px 0 27px;
159
- list-style: none;
160
- text-align: center;
161
- }
162
- .tab4 ul.enough_waffling li {
163
- margin: 0 22px;
164
- padding: 0;
165
- list-style: none;
166
- display: inline-block;
167
- }
168
- .tab4 ul.enough_waffling li span {
169
- float: left;
170
- }
171
- .tab4 ul.enough_waffling li label {
172
- margin: 0 0 0 20px;
173
- float: left;
174
- font-family: helveticaregular;
175
- font-size: 18px;
176
- font-weight: 400;
177
- text-align: center;
178
- line-height: 38px;
179
- color: #5a6570;
180
- }
181
- .sfsi_mainContainer .checkbox {
182
- width: 31px;
183
- height: 31px;
184
- background: url(../images/check_bg.jpg) no-repeat;
185
- display: inherit;
186
- }
187
- .tab8 .social_icon_like1 li span.checkbox {
188
- width: 31px;
189
- height: 31px;
190
- background: url(../images/check_bg.jpg) no-repeat;
191
- display: inherit;
192
- }
193
- .tab8 .social_icon_like1 li a
194
- {
195
- float: left;
196
- }
197
- .sfsi_mainContainer .radio {
198
- width: 40px;
199
- height: 40px;
200
- background: url(../images/radio_bg.png) no-repeat;
201
- display: inherit;
202
- }
203
- .sfsi_mainContainer .select {
204
- width: 127px;
205
- height: 47px;
206
- font-size: 17px;
207
- background: url(../images/select_bg.jpg) no-repeat;
208
- display: block;
209
- padding-left: 16px;
210
- line-height: 49px;
211
- }
212
- .sfsi_mainContainer .line {
213
- background: #eaebee;
214
- height: 1px;
215
- font-size: 0;
216
- margin: 15px 0 0;
217
- clear: both;
218
- width: 100%;
219
- float: left;
220
- }
221
- .sfsiplus_specify_counts {
222
- display: block;
223
- margin-top: 15px;
224
- padding-top: 15px;
225
- clear: both;
226
- width: 100%;
227
- float: left;
228
- border-top: 1px solid #eaebee;
229
- }
230
- .sfsiplus_specify_counts .radio_section {
231
- width: 30px;
232
- float: left;
233
- margin: 12px 10px 0 0;
234
- }
235
- .sfsiplus_specify_counts .social_icon_like {
236
- width: 54px;
237
- float: left;
238
- margin: 0 15px 0 0;
239
- }
240
- .sfsiplus_specify_counts .social_icon_like ul {
241
- margin: 0;
242
- padding: 0 !important;
243
- list-style: none;
244
- text-align: center;
245
- }
246
- .sfsiplus_specify_counts .social_icon_like li {
247
- margin: 0;
248
- padding: 0;
249
- list-style: none;
250
- display: inline-block;
251
- }
252
- .sfsiplus_specify_counts .social_icon_like li span {
253
- margin: 0;
254
- width: 54px;
255
- display: block;
256
- background: url(../images/count_bg.jpg) no-repeat;
257
- height: 24px;
258
- overflow: hidden;
259
- padding: 10px 2px 2px;
260
- font-family: helveticaregular;
261
- font-size: 16px;
262
- text-align: center;
263
- line-height: 24px;
264
- color: #5a6570;
265
- }
266
- .sfsiplus_specify_counts .social_icon_like li a {
267
- color: #5a6570;
268
- text-decoration: none;
269
- }
270
- .sfsiplus_specify_counts .social_icon_like img{
271
- width: 54px;
272
- }
273
- .sfsiplus_specify_counts .listing {
274
- width: 88%;
275
- margin-top: -5px;
276
- display: inherit;
277
- float: left;
278
- }
279
- .sfsiplus_specify_counts .listing ul {
280
- margin: 0;
281
- padding: 0;
282
- list-style: none;
283
- text-align: left;
284
- }
285
- .sfsiplus_specify_counts .listing li {
286
- margin: 15px 0 0;
287
- padding: 0;
288
- list-style: none;
289
- clear: both;
290
- line-height: 39px;
291
- font-size: 17px;
292
- }
293
- .sfsiplus_specify_counts .listing li span {
294
- float: left;
295
- margin-right: 20px;
296
- }
297
- .sfsiplus_specify_counts .listing li .input {
298
- background: #e5e5e5;
299
- box-shadow: 2px 2px 3px #dcdcdc inset;
300
- border: 0;
301
- padding: 10px;
302
- margin-left: 25px;
303
- }
304
- .sfsiplus_specify_counts .listing li .input_facebook {
305
- width: 288px;
306
- background: #e5e5e5;
307
- box-shadow: 2px 2px 3px #dcdcdc inset;
308
- border: 0;
309
- padding: 10px;
310
- margin-left: 16px;
311
- }
312
- .save_button {
313
- width: 450px;
314
- padding-top: 30px !important;
315
- clear: both;
316
- margin: auto;
317
- }
318
- .save_button a {
319
- background: #12a252;
320
- text-align: center;
321
- font-size: 23px;
322
- color: #FFF!important;
323
- display: block;
324
- padding: 11px 0;
325
- text-decoration: none;
326
- }
327
- .save_button a:hover { background:#079345 }
328
-
329
- .tab5 ul.plus_share_icon_order {
330
- margin: 0;
331
- padding: 0;
332
- list-style: none;
333
- text-align: left;
334
- }
335
- .tab5 ul.plus_share_icon_order li {
336
- margin: 22px 6px 0 0;
337
- padding: 0;
338
- list-style: none;
339
- float: left;
340
- line-height: 37px;
341
- }
342
- .tab5 ul.plus_share_icon_order li:last-child {
343
- margin: 22px 0 0 3px;
344
- }
345
- .tab5 .row {
346
- border-top: 1px solid #eaebee;
347
- margin-top: 25px;
348
- padding-top: 15px;
349
- clear: both;
350
- display: block;
351
- width: 100%;
352
- float: left;
353
- font-family: helveticaregular;
354
- line-height: 42px;
355
- }
356
- .tab5 .icons_size {
357
- position: relative;
358
- }
359
- .tab5 .icons_size span {
360
- margin-right: 18px;
361
- display: block;
362
- float: left;
363
- font-size: 18px;
364
- font-weight: 400;
365
- line-height: 46px;
366
- }
367
- .tab5 .icons_size span.last {
368
- margin-left: 55px;
369
- }
370
- .tab5 .icons_size input {
371
- width: 73px;
372
- background: #e5e5e5;
373
- box-shadow: 2px 2px 3px #dcdcdc inset;
374
- border: 0;
375
- padding: 13px 13px 12px;
376
- margin-right: 18px;
377
- float: left;
378
- display: block;
379
- }
380
- .tab5 .icons_size select.styled {
381
- position: absolute;
382
- left: 0;
383
- width: 135px;
384
- height: 46px;
385
- line-height: 46px;
386
- }
387
- .tab5 .icons_size .field {
388
- position: relative;
389
- float: left;
390
- display: block;
391
- margin-right: 20px;
392
- }
393
- .tab5 .icons_size ins {
394
- margin-right: 25px;
395
- float: left;
396
- font-size: 17px;
397
- font-weight: 400;
398
- text-decoration: none;
399
- }
400
- .tab5 .icons_size ins.leave_empty {
401
- line-height: 23px;
402
- }
403
- .tab5 .icons_size {
404
- padding-top: 15px;
405
- }
406
- .tab5 ul.enough_waffling {
407
- margin: -5px 0 0;
408
- padding: 0;
409
- list-style: none;
410
- text-align: center;
411
- }
412
- .tab5 .new_wind .sfsiplus_row_onl ul.enough_waffling {
413
- margin: 20px 0 0 0;
414
- padding: 0;
415
- list-style: none;
416
- height: 38px;
417
- text-align: left;
418
- }
419
- .tab5 ul.enough_waffling li {
420
- margin: 0 22px;
421
- padding: 0;
422
- list-style: none;
423
- display: inline-block;
424
- }
425
- .tab5 ul.enough_waffling li span {
426
- float: left;
427
- }
428
- .tab5 ul.enough_waffling li label {
429
- margin: 0 0 0 20px;
430
- float: left;
431
- font-family: helveticaregular;
432
- font-size: 18px;
433
- font-weight: 400;
434
- text-align: center;
435
- line-height: 38px;
436
- color: #5a6570;
437
- }
438
- .sticking p {
439
- float: left;
440
- font-size: 18px!important;
441
- }
442
- .sticking p.list {
443
- width: 168px;
444
- }
445
- .sticking p.link {
446
- margin: 3px 0 0 12px;
447
- padding: 0!important;
448
- float: left;
449
- }
450
- .sticking .float {
451
- margin-left: 188px;
452
- margin-top: 3px;
453
- float: left;
454
- font-size: 17px;
455
- }
456
- .sticking ul {
457
- margin: 0;
458
- padding: 30px 0 0;
459
- list-style: none;
460
- float: left;
461
- }
462
- .sticking a {
463
- color: #a4a9ad;
464
- text-decoration: none;
465
- }
466
- .sticking .field {
467
- position: relative;
468
- float: left;
469
- display: block;
470
- margin-left: 20px;
471
- }
472
- .sticking .field .select {
473
- width: 206px;
474
- height: 47px;
475
- background: url(../images/select_bg1.jpg) no-repeat;
476
- display: block;
477
- padding-left: 10px;
478
- }
479
- .sticking .field select.styled {
480
- position: absolute;
481
- left: 0;
482
- top: 0;
483
- width: 211px;
484
- line-height: 46px;
485
- height: 46px;
486
- }
487
- .mouseover_field {
488
- width: 455px;
489
- float: left;
490
- font-size: 18px;
491
- margin-top: 10px;
492
- }
493
- .mouseover_field label {
494
- width: 125px;
495
- float: left;
496
- }
497
- .mouseover_field input {
498
- width: 256px;
499
- float: left;
500
- background: #e5e5e5;
501
- box-shadow: 2px 2px 3px #dcdcdc inset;
502
- border: 0;
503
- padding: 10px;
504
- }
505
- .tab6 .social_icon_like1 {
506
- width: 100%;
507
- float: left;
508
- margin: 0;
509
- padding: 35px 0 0;
510
- text-align: center;
511
- }
512
- .tab6 .social_icon_like1 ul {
513
- margin: 0;
514
- padding: 0;
515
- list-style: none;
516
- text-align: center;
517
- }
518
- .tab6 .social_icon_like1 li {
519
- margin: 0 20px;
520
- padding: 0;
521
- width: auto;
522
- list-style: none;
523
- display: inline-block;
524
- }
525
- .tab6 .social_icon_like1 li span, .tab8 .social_icon_like1 li span {
526
- margin: 0;
527
- width: 44px;
528
- display: block;
529
- background: url(../images/count_bg1.png) no-repeat;
530
- height: 22px;
531
- overflow: hidden;
532
- padding: 2px 2px 2px 10px;
533
- font-family: helveticaregular;
534
- font-size: 15px;
535
- text-align: center;
536
- line-height: 20px;
537
- color: #5a6570;
538
- float: left;
539
- }
540
- .tab6 .social_icon_like1 li img {
541
- float: left;
542
- margin-right: 5px;
543
- display: block;
544
- }
545
- .tab6 .social_icon_like1 li a {
546
- color: #5a6570;
547
- text-decoration: none;
548
- display: block;
549
- }
550
- .tab6 ul.usually {
551
- margin: 28px 0 6px 60px;
552
- padding: 0;
553
- list-style: none;
554
- }
555
- .tab6 ul.usually li {
556
- margin: 0;
557
- padding: 0;
558
- width: auto;
559
- list-style: none;
560
- text-align: left;
561
- font-size: 17px;
562
- }
563
- .tab6 ul.enough_waffling {
564
- margin: 25px 0 0;
565
- padding: 0;
566
- list-style: none;
567
- text-align: center;
568
- }
569
- .tab6 ul.enough_waffling li {
570
- margin: 0 22px;
571
- padding: 0;
572
- list-style: none;
573
- display: inline-block;
574
- }
575
- .tab6 ul.enough_waffling li span {
576
- float: left;
577
- }
578
- .tab6 ul.enough_waffling li label {
579
- margin: 0 0 0 20px;
580
- float: left;
581
- font-family: helveticaregular;
582
- font-size: 18px;
583
- font-weight: 400;
584
- text-align: center;
585
- line-height: 38px;
586
- color: #5a6570;
587
- }
588
- .tab6 .row {
589
- border-top: 1px solid #eaebee;
590
- margin-top: 25px;
591
- padding-top: 15px;
592
- clear: both;
593
- display: block;
594
- width: 100%;
595
- float: left;
596
- font-family: helveticaregular;
597
- line-height: 42px;
598
- }
599
- .tab6 .options {
600
- margin-top: 25px;
601
- clear: both;
602
- width: 100%;
603
- float: left;
604
- }
605
- .tab6 .options label {
606
- width: 345px;
607
- float: left;
608
- font-size: 18px;
609
- font-family: helveticaregular;
610
- color: #5a6570;
611
- line-height: 46px;
612
- }
613
- .tab6 .options label.first {
614
- font-family: helveticaregular;
615
- font-size: 18px;
616
- }
617
- .tab6 .options input {
618
- width: 308px;
619
- float: left;
620
- background: #e5e5e5;
621
- box-shadow: 2px 2px 3px #dcdcdc inset;
622
- border: 0;
623
- padding: 10px;
624
- }
625
- .tab6 .options .field {
626
- width: 223px;
627
- float: left;
628
- position: relative;
629
- }
630
- .tab6 .options .field .select {
631
- width: 207px;
632
- background: url(../images/select_bg1.jpg) no-repeat;
633
- display: block;
634
- padding-left: 17px;
635
- font-family: helveticaregular;
636
- }
637
- .tab6 .options .field select.styled {
638
- position: absolute;
639
- left: 0;
640
- top: 0;
641
- width: 213px;
642
- line-height: 46px;
643
- height: 46px;
644
- }
645
- .tab7 h3 {
646
- margin: 14px 0 6px;
647
- padding: 0;
648
- color: #a7a9ac;
649
- font-family: helveticaregular;
650
- font-size: 20px;
651
- text-align: left;
652
- }
653
- .tab7 .close {
654
- position: absolute;
655
- right: 18px;
656
- top: 18px;
657
- }
658
- .tab7 .text_options {
659
- width: 400px;
660
- float: left;
661
- }
662
- .tab7 .text_options.layout {
663
- margin-left: 35px;
664
- }
665
- .tab7 .sfsiplus_row_tab {
666
- margin-top: 10px;
667
- width: 100%;
668
- float: left;
669
- }
670
- .tab7 .text_options label {
671
- width: 121px;
672
- float: left;
673
- line-height: 46px;
674
- font-size: 18px;
675
- }
676
- .tab7 .text_options.layout label {
677
- line-height: 20px;
678
- font-size: 18px;
679
- }
680
- .tab7 .text_options.layout label.border {
681
- line-height: 46px;
682
- }
683
- .tab7 .text_options input {
684
- width: 274px;
685
- float: left;
686
- background: #e5e5e5;
687
- box-shadow: 2px 2px 3px #dcdcdc inset;
688
- border: 0;
689
- padding: 13px 10px;
690
- font-size: 17px;
691
- color: #5a6570;
692
- }
693
- .tab7 .text_options input.small {
694
- width: 138px;
695
- }
696
- .tab7 .text_options .field {
697
- width: 223px;
698
- float: left;
699
- position: relative;
700
- }
701
- .tab7 .text_options .field .select {
702
- width: 183px;
703
- padding-right: 21px;
704
- height: 47px;
705
- background: url(../images/select_bg1.jpg) no-repeat;
706
- display: block;
707
- padding-left: 10px;
708
- line-height: 46px;
709
- font-size: 17px;
710
- color: #414951;
711
- }
712
- .tab7 .text_options .field select.styled {
713
- position: absolute;
714
- left: 0;
715
- top: 0;
716
- width: 213px;
717
- line-height: 46px;
718
- height: 46px;
719
- }
720
- .tab7 .color_box {
721
- width: 40px;
722
- height: 34px;
723
- border: 3px solid #fff;
724
- box-shadow: 1px 2px 2px #ccc;
725
- float: left;
726
- position: relative;
727
- margin-left: 13px;
728
- }
729
- .tab7 .color_box1 {
730
- width: 100%;
731
- height: 34px;
732
- background: #5a6570;
733
- box-shadow: 1px -2px 15px -2px #d3d3d3 inset;
734
- }
735
- .tab7 .corner {
736
- width: 10px;
737
- height: 10px;
738
- background: #fff;
739
- position: absolute;
740
- right: 0;
741
- bottom: 0;
742
- }
743
- .tab7 ul.border_shadow {
744
- margin: 0;
745
- padding: 5px 0 0;
746
- list-style: none;
747
- float: left;
748
- width: 257px;
749
- }
750
- .tab7 ul.border_shadow li {
751
- margin: 0;
752
- padding: 0 0 0 40px;
753
- list-style: none;
754
- float: left;
755
- }
756
- .tab7 ul.border_shadow li:first-child {
757
- padding: 0;
758
- }
759
- .tab7 ul.border_shadow li span {
760
- float: left;
761
- }
762
- .tab7 ul.border_shadow li label {
763
- float: left;
764
- width: auto;
765
- font-family: helveticaregular;
766
- font-size: 18px;
767
- font-weight: 400;
768
- text-align: center;
769
- line-height: 40px!important;
770
- color: #5a6570;
771
- padding: 0 0 0 20px;
772
- }
773
- .tab7 .row {
774
- border-top: 1px solid #eaebee;
775
- margin-top: 25px;
776
- padding-top: 15px;
777
- clear: both;
778
- display: block;
779
- width: 100%;
780
- float: left;
781
- font-family: helveticaregular;
782
- line-height: 42px;
783
- }
784
- .tab7 .pop_up_show {
785
- width: 100%;
786
- float: left;
787
- margin-top: 20px;
788
- }
789
- .tab7 .pop_up_show span {
790
- float: left;
791
- }
792
- .tab7 .pop_up_show label {
793
- float: left;
794
- width: auto;
795
- font-size: 18px;
796
- font-weight: 400;
797
- text-align: center;
798
- line-height: 38px!important;
799
- color: #5a6570;
800
- padding: 0 0 0 20px;
801
- }
802
- .tab7 .pop_up_show input.add {
803
- width: 257px;
804
- float: left;
805
- background: #e5e5e5;
806
- box-shadow: 2px 2px 3px #dcdcdc inset;
807
- border: 0;
808
- padding: 10px;
809
- margin-left: 40px;
810
- }
811
- .tab7 .pop_up_show input.seconds {
812
- width: 60px;
813
- background: #e5e5e5;
814
- box-shadow: 2px 2px 3px #dcdcdc inset;
815
- border: 0;
816
- padding: 10px;
817
- margin: 0 7px;
818
- }
819
- .tab7 .pop_up_show a {
820
- text-decoration: underline;
821
- color: #a4a9ad;
822
- font-size: 16px;
823
- margin-left: 20px;
824
- }
825
- .tab7 .pop_up_show .field {
826
- width: 135px;
827
- float: left;
828
- position: relative;
829
- margin-left: 20px;
830
- font-size: 17px;
831
- font-family: helveticaregular;
832
- }
833
- .tab7 .pop_up_show .field .select {
834
- width: 127px;
835
- height: 48px;
836
- background: url(../images/select_bg.jpg) no-repeat;
837
- display: block;
838
- padding-left: 10px;
839
- line-height: 46px;
840
- font-size: 16px;
841
- color: #5a6570;
842
- }
843
- .tab7 .pop_up_show .field select.styled {
844
- position: absolute;
845
- left: 0;
846
- top: 0;
847
- width: 135px;
848
- line-height: 46px;
849
- height: 46px;
850
- }
851
- .pop_up_box {
852
- width: 474px;
853
- background: #FFF;
854
- box-shadow: 0 0 5px 3px #d8d8d8;
855
- margin: 200px auto;
856
- padding: 20px 25px 0;
857
- font-family: helveticaregular;
858
- color: #5a6570;
859
- min-height: 250px;
860
- position: relative;
861
- }
862
- .pop_up_box h4, .pop_up_box_ex h4 {
863
- font-size: 20px;
864
- color: #5a6570;
865
- text-align: center;
866
- margin: 0;
867
- padding: 0;
868
- line-height: 22px;
869
- }
870
- .pop_up_box p, .pop_up_box_ex p {
871
- font-size: 17px;
872
- line-height: 28px;
873
- color: #5a6570;
874
- text-align: left;
875
- margin: 0;
876
- padding: 25px 0 0;
877
- font-family: helveticaregular;
878
- }
879
- .sfsi_popupcntnr {
880
- float: left;
881
- width: 100%}
882
- .sfsi_popupcntnr>h3 {
883
- color: #000;
884
- float: left;
885
- font-weight: 700;
886
- margin-bottom: 5px;
887
- width: 100%}
888
- ul.flwstep {
889
- float: left;
890
- width: 100%}
891
- ul.flwstep>li {
892
- color: #000;
893
- font-size: 16px;
894
- margin: 5px;
895
- }
896
- .upldbtn {
897
- float: left;
898
- text-align: center;
899
- width: 100%}
900
- .upload_butt {
901
- background-color: #12a252;
902
- border: none;
903
- color: #fff;
904
- font-weight: 700;
905
- margin-top: 10px;
906
- padding: 5px 27px;
907
- width: auto;
908
- cursor: pointer;
909
- font-size: 15px !important;
910
-
911
- }
912
- @media (min-width: 295px) and (max-width: 558px){
913
- .sfsi_premium_wechat_follow_overlay .upload_butt{
914
- padding:5px;
915
- }
916
- }
917
- @media (max-width: 295px){
918
- .sfsi_premium_upload_butt_container{
919
- width:100%!important;
920
- padding-bottom:5px!important;
921
- }
922
- }
923
- .pop_up_box .button {
924
- background: #12a252;
925
- font-size: 22px;
926
- line-height: 24px;
927
- color: #5a6570;
928
- text-align: center;
929
- min-height: 80px;
930
- margin-top: 32px;
931
- box-shadow: none;
932
- word-wrap: break-word;
933
- white-space: normal;
934
- }
935
- .pop_up_box .button:hover {
936
- box-shadow: none!important;
937
- }
938
- .pop_up_box .button a.activate {
939
- padding: 0px 0;
940
- }
941
- .pop_up_box a, .pop_up_box_ex a {
942
- color: #a4a9ad;
943
- font-size: 20px;
944
- text-decoration: none;
945
- text-align: center;
946
- display: inline-block;
947
- margin-top: 20px;
948
- width: 100%;
949
- }
950
- .pop_up_box .upload {
951
- width: 100%;
952
- float: left;
953
- text-align: left;
954
- margin-top: 15px;
955
- height: 46px;
956
- }
957
- .pop_up_box .upload label {
958
- width: 135px;
959
- float: left;
960
- line-height: 45px;
961
- font-size: 18px;
962
- font-family: helveticaregular;
963
- text-align: left;
964
- }
965
- .pop_up_box .upload input[type=text] {
966
- width: 248px;
967
- float: left;
968
- background: #e5e5e5;
969
- box-shadow: 2px 2px 3px #dcdcdc inset;
970
- border: 0;
971
- padding: 0 10px;
972
- font-size: 16px;
973
- height: 44px;
974
- text-align: left;
975
- color: #5a6570;
976
- font-family: helveticaregular;
977
- }
978
- .pop_up_box .upload input.upload_butt {
979
- width: 100px;
980
- background: #12a252;
981
- box-shadow: 0 0 0;
982
- border: 0;
983
- text-align: center;
984
- font-size: 18px;
985
- color: #fff;
986
- font-family: helveticaregular;
987
- height: 45px;
988
- right: 32px;
989
- top: 71px;
990
- position: absolute;
991
- }
992
- .pop_up_box .upload a {
993
- color: #12a252;
994
- font-size: 18px;
995
- text-decoration: underline;
996
- font-family: helveticaregular;
997
- margin: 0 0 16px 140px;
998
- }
999
- .pop_up_box a:hover, .pop_up_box_ex a:hover {
1000
- color: #a4a9ad;
1001
- }
1002
- .tab1 ul.plus_icn_listing {
1003
- list-style: none;
1004
- overflow: hidden;
1005
- border-top: #e7e8eb solid 1px;
1006
- margin: 35px 0 0;
1007
- }
1008
- .tab1 ul.plus_icn_listing li {
1009
- border-bottom: #eaebed solid 1px;
1010
- padding: 11px 0 11px 8px;
1011
- float: left;
1012
- width: 100%}
1013
- ul.plus_icn_listing li .tb_4_ck {
1014
- float: left;
1015
- margin: 10px 0 0;
1016
- }
1017
- .upload_pop_up .upload_butt {
1018
- line-height: 27px;
1019
- margin-left: 6px
1020
- }
1021
- ul.sfsiplus_icn_listing8 li .tb_4_ck {
1022
- float: left;
1023
- margin: 10px 0 0;
1024
- }
1025
- .tab8 .cstmdsplyulwpr .radio_section.tb_4_ck
1026
- {
1027
- margin-right: 10px !important;
1028
- }
1029
- .tab8 .social_icon_like1.cstmdsplyulwpr .cstmdsplsub{margin-top: 3px;}
1030
- .tab8 .social_icon_like1.cstmdsplyulwpr .cstmdspllke{margin-top: 3px;}
1031
- .tab8 .social_icon_like1.cstmdsplyulwpr .cstmdsplggpls{margin-top: 3px;}
1032
- .tab8 .social_icon_like1.cstmdsplyulwpr .cstmdspltwtr{margin-top: 4px;}
1033
- .tab8 .social_icon_like1.cstmdsplyulwpr .cstmdsplshr{margin-top: 3px;}
1034
- .tab2 {
1035
- overflow: hidden;
1036
- }
1037
- .tab2 .rss_url_row {
1038
- width: 100%;
1039
- float: left;
1040
- margin: 0 0 10px;
1041
- }
1042
- .tab2 .rss_url_row h4 {
1043
- float: left;
1044
- line-height: 43px!important;
1045
- }
1046
- .tab2 .inr_cont input.add, .tab2 .inr_cont textarea.add_txt, .tab2 .rss_url_row input.add {
1047
- width: 363px;
1048
- float: left;
1049
- background: #e5e5e5;
1050
- box-shadow: 2px 2px 3px #dcdcdc inset;
1051
- border: 0;
1052
- padding: 12px 10px 11px;
1053
- margin-left: 227px;
1054
- margin-top: -38px;
1055
- }
1056
- .tab2 .rss_url_row input.add {
1057
- margin-left:10px;
1058
- margin-top:0;
1059
- }
1060
- .tab2 .inr_cont input.add1, .tab2 .rss_url_row input.add1 {
1061
- width: 363px;
1062
- float: left;
1063
- background: #e5e5e5;
1064
- box-shadow: 2px 2px 3px #dcdcdc inset;
1065
- border: 0;
1066
- padding: 12px 10px 11px;
1067
- margin-left: 284px;
1068
- margin-top: -34px;
1069
- }
1070
- .tab2 .rss_url_row a.rit_link {
1071
- float: left;
1072
- margin: 10px 0 0 16px;
1073
- font-size: 17px;
1074
- }
1075
- .tab2 .row {
1076
- float: left;
1077
- border-top: 2px solid #f2f3f4;
1078
- clear: both;
1079
- padding: 0 0 15px;
1080
- width: 100%}
1081
- .tab2 .row .tab_2_email_sec {
1082
- list-style: none;
1083
- margin: 17px 0 0;
1084
- overflow: hidden;
1085
- }
1086
- .row ul.tab_2_email_sec li {
1087
- float: left;
1088
- margin-right: 10px;
1089
- width: 32%;
1090
- }
1091
- .sfsiplusicnsdvwrp
1092
- {
1093
- width: 110px;
1094
- float: left;
1095
- }
1096
- .row ul.tab_2_email_sec:first-child {
1097
- margin-right: 2%
1098
- }
1099
- .inr_cont .fb_url {
1100
- clear: both;
1101
- }
1102
- .inr_cont .fb_url .checkbox, .inr_cont .fb_url input.add, .inr_cont .fb_url label, .inr_cont .fb_url lable {
1103
- float: left;
1104
- }
1105
- .inr_cont .fb_url input.add {
1106
- margin-left: 19px;
1107
- margin-top:0;
1108
- }
1109
- .inr_cont .fb_url .checkbox {
1110
- margin: 6px 0 0;
1111
- }
1112
- .inr_cont .fb_url label {
1113
- line-height: 41px;
1114
- margin: 0 0 0 15px;
1115
- font-size: 18px;
1116
- }
1117
- .inr_cont textarea.add_txt {
1118
- resize: none;
1119
- margin: 0 0 0 19px!important;
1120
- height: 60px;
1121
- }
1122
- .tab2 .inr_cont textarea.add_txt {
1123
- width: 382px!important;
1124
- height: 90px;
1125
- overflow: hidden;
1126
- }
1127
- .tab2 .inr_cont input.add {
1128
- width: 417px;
1129
- }
1130
- .red_txt, .tab2 .red_txt {
1131
- color: #ef4745!important;
1132
- text-align: center!important;
1133
- padding-top: 5px!important;
1134
- }
1135
- .green_txt {
1136
- color: #12A252!important;
1137
- text-align: center!important;
1138
- padding-top: 5px!important;
1139
- }
1140
- .red_txt {
1141
- color: #f80000!important;
1142
- text-align: center!important;
1143
- padding-top: 5px!important;
1144
- }
1145
- .linked_tab_2 .fb_url label {
1146
- width: 32%}
1147
- .twt_tab_2 label {
1148
- width: 18%}
1149
- .bdr_top {
1150
- border-top: none!important;
1151
- }
1152
- .linked_tab_2 .fb_url input.link_dbl {
1153
- margin-bottom: 6px;
1154
- }
1155
- .tab3 {
1156
- overflow: hidden;
1157
- }
1158
- .tab3 .row {
1159
- padding: 15px 0;
1160
- clear: both;
1161
- overflow: hidden;
1162
- }
1163
- .tab3 .row.sfsiplusmousetxt
1164
- {
1165
- border: medium none;
1166
- }
1167
- .tab3 ul.tab_3_list {
1168
- overflow: hidden;
1169
- margin: 4px 0 11px;
1170
- }
1171
- .tab8 .sfsiplus_toglepstpgspn {
1172
- font-weight: bold;
1173
- }
1174
- ul.tab_3_list li {
1175
- background: url(../images/tab_3_list_bg.jpg) 13px 7px no-repeat;
1176
- padding: 0 0 0 30px;
1177
- color: #778088;
1178
- font-family: helveticaregular;
1179
- font-size: 17px;
1180
- margin-bottom: 4px;
1181
- }
1182
- .tab5 ul.tab_3_list li
1183
- {
1184
- background: url(../images/tab_3_list_bg.jpg) 13px 18px no-repeat;
1185
- }
1186
- .tab3 .row h3 {
1187
- margin: 0 0 20px;
1188
- color: #414951;
1189
- font-family: helveticabold;
1190
- font-size: 20px;
1191
- }
1192
- ul.sfsiplus_tab_3_icns {
1193
- list-style: none;
1194
- margin: 34px 0 0;
1195
- overflow: hidden;
1196
- }
1197
- ul.sfsiplus_tab_3_icns li {
1198
- width: 100%;
1199
- margin: 0 0 21px;
1200
- float: left;
1201
- }
1202
- ul.sfsiplus_tab_3_icns label {
1203
- float: left;
1204
- line-height: 42px;
1205
- color: #69737C;
1206
- font-size: 18px;
1207
- font-family: helveticaregular;
1208
- min-width: 120px;
1209
- }
1210
- ul.sfsiplus_tab_3_icns li .sfsiplus_icns_tab_3, ul.sfsiplus_tab_3_icns li .radio {
1211
- float: left;
1212
- }
1213
- .tab3 .sub_row {
1214
- float: left;
1215
- margin: 35px 0 0 4%;
1216
- width: 90%
1217
- }
1218
- .tab3 .sub_row h4 {
1219
- color: #a4a9ad!important;
1220
- }
1221
- .tab3 .sub_row p {
1222
- padding-top: 18px!important;
1223
- clear: both;
1224
- overflow: hidden;
1225
- }
1226
- .sub_row .sub_sub_box p {
1227
- padding-top: 18px!important;
1228
- }
1229
- .tab3 .sub_row .checkbox {
1230
- float: left;
1231
- margin-top: 4px;
1232
- }
1233
- .tab3 .sub_row .sub_sub_box {
1234
- width: 80%;
1235
- margin: 7px 0 15px 10%;
1236
- float: left;
1237
- }
1238
- .tab3 .sub_row input.smal_inpt {
1239
- width: 73px;
1240
- background: #e5e5e5;
1241
- box-shadow: 2px 2px 3px #dcdcdc inset;
1242
- border: 0;
1243
- padding: 10px;
1244
- float: left;
1245
- }
1246
- .tab3 .sub_row .drop_lst {
1247
- border: 1px solid #d6d6d6;
1248
- font-size: 16px;
1249
- color: #5a6570;
1250
- width: 120px;
1251
- }
1252
- .tab3 .first_row, .tab3 .first_row p, .tab3 .first_row p .radio, .tab3 .first_row p label {
1253
- float: left;
1254
- }
1255
- .tab3 .first_row {
1256
- width: 90%;
1257
- float: left;
1258
- }
1259
- .tab3 .first_row p {
1260
- padding: 0!important;
1261
- }
1262
- .tab3 .first_row p label {
1263
- line-height: 44px;
1264
- margin: 0 10px;
1265
- }
1266
- .tab3 .first_row p:last-child {
1267
- margin-left: 27%}
1268
- .tab3 .tab_1_sav {
1269
- padding-top: 20px!important;
1270
- margin: 10px auto 20px;
1271
- }
1272
- .suc_msg {
1273
- background: #12A252;
1274
- color: #FFF;
1275
- display: none;
1276
- font-size: 23px;
1277
- padding: 10px;
1278
- text-align: left;
1279
- text-decoration: none;
1280
- }
1281
- .error_msg {
1282
- background: #D22B30;
1283
- color: #FFF;
1284
- display: none;
1285
- font-size: 23px;
1286
- padding: 10px;
1287
- text-align: left;
1288
- text-decoration: none;
1289
- }
1290
- .fileUPInput {
1291
- cursor: pointer;
1292
- position: relative;
1293
- top: -43px;
1294
- right: 0;
1295
- z-index: 99;
1296
- height: 42px;
1297
- font-size: 5px;
1298
- opacity: 0;
1299
- -moz-opacity: 0;
1300
- filter: alpha(opacity=0);
1301
- width: 100%}
1302
- .inputWrapper {
1303
- height: 20px;
1304
- width: 50px;
1305
- overflow: hidden;
1306
- position: relative;
1307
- cursor: pointer;
1308
- }
1309
- .sfsiplus_custom-txt {
1310
- background: none!important;
1311
- padding-left: 2px!important;
1312
- }
1313
- .plus_custom-img {
1314
- float: left;
1315
- margin-left: 20px;
1316
- }
1317
- .loader-img {
1318
- float: left;
1319
- margin-left: -70px;
1320
- display: none;
1321
- }
1322
- .pop-overlay {
1323
- position: fixed;
1324
- top: 0;
1325
- left: 0;
1326
- width: 100%;
1327
- height: 100%;
1328
- backgound-color: #d3d3d3;
1329
- z-index: 10;
1330
- padding: 20px;
1331
- display: none;
1332
- }
1333
- .fb-overlay {
1334
- position: fixed;
1335
- top: 0;
1336
- left: 0;
1337
- width: 100%;
1338
- height: 100%;
1339
- backgound-color: #d3d3d3;
1340
- z-index: -1000;
1341
- padding: 20px;
1342
- opacity: 0;
1343
- display: block;
1344
- }
1345
- .inputError {
1346
- border: 1px solid #f80000!important;
1347
- }
1348
- .sfsicloseBtn {
1349
- position: absolute;
1350
- top: 0;
1351
- right: 0;
1352
- cursor: pointer;
1353
- }
1354
- .top_arow {
1355
- background: url(../images/top_aro.png) no-repeat;
1356
- position: absolute;
1357
- top: -29px;
1358
- left: 38%;
1359
- width: 33px;
1360
- height: 29px;
1361
- backgoround-color: #fff;
1362
- }
1363
- .sfsi_plus_tool_tip_2 .top_arow .sfsi_plus_inside, .top_arow .sfsi_plus_inside {
1364
- float: left;
1365
- }
1366
- .sfsi_plus_tool_tip_2 .tool_tip>img, .tool_tip>img {
1367
- display: inline-block;
1368
- margin-right: 4px;
1369
- float: left;
1370
- }
1371
- .sfsiplus_norm_row {
1372
- float: left;
1373
- min-width: 25px;
1374
- }
1375
- .sfsiplus_norm_row a {
1376
- border: none;
1377
- display: inline-block;
1378
- position: relative;
1379
- }
1380
- .sfsi_plus_widget
1381
- {
1382
- min-height: 55px;
1383
- }
1384
- .sfsi_plus_tool_tip_2 a {
1385
- min-height: 0!important;
1386
- }
1387
- .sfsi_plus_widget a img {
1388
- box-shadow: none!important;
1389
- outline: 0;
1390
- }
1391
- .sfsi_plus_wicons {
1392
- display: inline-block;
1393
- color: #000;
1394
- }
1395
- .sel-active {
1396
- background-color: #f7941d;
1397
- }
1398
- .sfsi_plus_outr_div .close {
1399
- position: absolute;
1400
- right: 18px;
1401
- top: 18px;
1402
- }
1403
- .sfsi_plus_outr_div h2 {
1404
- color: #778088;
1405
- font-family: helveticaregular;
1406
- font-size: 26px;
1407
- margin: 0 0 9px;
1408
- padding: 0;
1409
- text-align: center;
1410
- font-weight: 400;
1411
- }
1412
- .sfsi_plus_outr_div ul li a {
1413
- color: #5A6570;
1414
- text-decoration: none;
1415
- }
1416
- .sfsi_plus_outr_div ul li {
1417
- display: inline-block;
1418
- list-style: none;
1419
- margin: 0;
1420
- padding: 0;
1421
- float: none;
1422
- }
1423
- .expanded-area {
1424
- display: none;
1425
- }
1426
- .sfsi_plus_wicons a {
1427
- -webkit-transition: all .2s ease-in-out;
1428
- -moz-transition: all .2s ease-in-out;
1429
- -o-transition: all .2s ease-in-out;
1430
- -ms-transition: all .2s ease-in-out;
1431
- }
1432
- .scale, .scale-div {
1433
- -webkit-transform: scale(1.1);
1434
- -moz-transform: scale(1.1);
1435
- -o-transform: scale(1.1);
1436
- transform: scale(1.1);
1437
- }
1438
- .sfsi_plus_Sicons {
1439
- float: left;
1440
- }
1441
- .sfsi_pop_up .button a:hover {
1442
- color: #fff;
1443
- }
1444
- .sfsi_pop_up .button:hover {
1445
- background: #12a252;
1446
- color: #fff;
1447
- border: none;
1448
- }
1449
- ul.plus_icn_listing li .sfsiplus_right_info a {
1450
- outline: 0;
1451
- font-family: helveticaregular;
1452
- }
1453
- ul.sfsiplus_icn_listing8 li .sfsiplus_right_info a {
1454
- outline: 0;
1455
- font-family: helveticaregular;
1456
- }
1457
- .upload_pop_up .upload_butt {
1458
- line-height: 27px;
1459
- margin-left: 6px;
1460
- }
1461
- .drop_lsts {
1462
- left: 220px;
1463
- position: relative;
1464
- top: -40px;
1465
- }
1466
- .drop_lsts .styled {
1467
- top: -42px;
1468
- width: 127px;
1469
- height: 33px;
1470
- }
1471
- .drop_lsts span {
1472
- line-height: 50px;
1473
- }
1474
- .drag_drp {
1475
- left: 11px;
1476
- position: relative;
1477
- top: 38px;
1478
- font-size: 17px;
1479
- }
1480
- .listing ul li label {
1481
- width: 224px;
1482
- float: left;
1483
- }
1484
- .sfsiplus_row_onl {
1485
- width: 100%;
1486
- float: left;
1487
- }
1488
- #sfsi_plus_Show_popupOn_PageIDs option.sel-active {
1489
- background: #f7941d;
1490
- }
1491
- .sfsi_plus_inside div iframe {
1492
- float: left;
1493
- margin: 0;
1494
- }
1495
- .sfsi_plus_inside div #___plus_0, .sfsi_plus_inside div #___plusone_0 {
1496
- height: 27px;
1497
- }
1498
- .sfsi_plus_outr_div li {
1499
- float: left;
1500
- }
1501
- .sfsi_plus_tool_tip_2 .sfsi_plus_inside div {
1502
- min-height: 0;
1503
- }
1504
- #___plus_1>iframe {
1505
- height: 30px;
1506
- }
1507
- .main_contant h1 {
1508
- margin: 0 0 19px;
1509
- }
1510
- .main_contant p {
1511
- margin: 0 0 26px;
1512
- }
1513
- .main_contant p>a {
1514
- color: #1a1d20;
1515
- text-decoration: underline;
1516
- }
1517
- .tab1 .gary_bg {
1518
- background: #f1f1f1;
1519
- }
1520
- #accordion {
1521
- margin-top: 4px;
1522
- }
1523
- .main_contant p>a, .tab1 p span {
1524
- font-family: helveticabold;
1525
- }
1526
- .wapper .ui-accordion-header-active {
1527
- margin-top: 20px!important;
1528
- }
1529
- .wapper .tab2 {
1530
- padding: 20px 33px 12px 34px!important;
1531
- }
1532
- .wapper .tab2 p {
1533
- margin-bottom: 6px;
1534
- }
1535
- .tab2 .twt_tab_2 label {
1536
- width: 175px;
1537
- }
1538
- .tab2 .twt_fld {
1539
- margin: 16px 0 23px;
1540
- float: left;
1541
- }
1542
- .tab2 .twt_fld_2 {
1543
- margin: 0 0 12px;
1544
- float: left;
1545
- }
1546
- .tab2 .utube_inn {
1547
- padding-bottom: 2px;
1548
- float: left;
1549
- }
1550
- .tab2 .utube_inn label {
1551
- max-width: 90%}
1552
- .tab2 .utube_inn label span {
1553
- font-family: helveticabold;
1554
- }
1555
- .tab2 .inr_cont p>a {
1556
- font-family: helveticabold;
1557
- color: #778088;
1558
- text-decoration: none;
1559
- }
1560
- .sfsiplus_pinterest_section .inr_cont .pint_url {
1561
- float: left;
1562
- padding-top: 6px;
1563
- clear: both;
1564
- }
1565
- .sfsiplus_pinterest_section .inr_cont .add {
1566
- width: 417px!important;
1567
- }
1568
- .sfsiplus_linkedin_section .link_1, .sfsiplus_linkedin_section .link_2, .sfsiplus_linkedin_section .link_3, .sfsiplus_linkedin_section .link_4 {
1569
- float: left;
1570
- width: 100%}
1571
- .sfsiplus_linkedin_section .link_1 input.add, .sfsiplus_linkedin_section .link_2 input.add, .sfsiplus_linkedin_section .link_3 input.add, .sfsiplus_linkedin_section .link_4 input.add {
1572
- width: 417px;
1573
- }
1574
- .sfsiplus_linkedin_section .link_1 {
1575
- margin-bottom: 7px;
1576
- }
1577
- .sfsiplus_linkedin_section .link_2 {
1578
- margin-bottom: 12px;
1579
- }
1580
- .sfsiplus_linkedin_section .link_3, .sfsiplus_linkedin_section .link_4 {
1581
- margin-bottom: 13px;
1582
- }
1583
- .tab2 .sfsiplus_linkedin_section .link_4 {
1584
- margin-bottom: 0;
1585
- }
1586
- .sfsiplus_telegram_section .link_1 , .sfsiplus_linkedin_section .link_2{
1587
- margin-bottom: 12px;
1588
- }
1589
- ul.tab_3_list li span {
1590
- font-family: helveticabold;
1591
- }
1592
- #accordion .tab4 h4, #accordion1 .tab4 h4 {
1593
-
1594
- color: #414951;
1595
- font-size: 20px;
1596
- }
1597
- .sfsiplus_specify_counts .listing li .input {
1598
- width: 73px;
1599
- }
1600
- .sfsiplus_fbpgidwpr{width: 160px; float: left; font-weight: bold; font-size: 17px; color: #000000;}
1601
- .sfsiplus_fbpgiddesc{font-weight: normal; width: 100%; font-size: 14px; color: #888888;padding: 4px 0 0 60px; }
1602
- .sfsiplus_fbpgiddesc code
1603
- {
1604
- background: none repeat scroll 0 0 transparent;
1605
- padding-right: 0px;
1606
- padding-left: 0px;
1607
-
1608
- }
1609
- .sfsiplus_specify_counts .listing li .input.mypginpt {
1610
- width: 288px;
1611
- }
1612
- .tab3 .Shuffle_auto .sub_sub_box .tab_3_option {
1613
- padding-top: 0!important;
1614
- margin-bottom: 10px!important;
1615
- }
1616
- .tab3 .sub_row {
1617
- margin-top: 10px!important;
1618
- }
1619
- .tab4 {
1620
- padding-top: 35px!important;
1621
- }
1622
- .tab4 .save_button {
1623
- padding-top: 46px;
1624
- }
1625
- .tab5 {
1626
- padding-top: 31px!important;
1627
- }
1628
- .tab6, .tab7 {
1629
- padding-top: 28px!important;
1630
- }
1631
- .tab5 .sfsiplus_row_onl {
1632
- margin-top: 15px;
1633
- }
1634
- .tab5 .sticking .link>a {
1635
- color: #a4a9ad;
1636
- text-decoration: underline;
1637
- }
1638
- .tab5 .mouse_txt h4 {
1639
- margin-bottom: 8px!important;
1640
- }
1641
- .tab5 .save_button {
1642
- padding-top: 54px;
1643
- }
1644
- .tab7 .like_pop_box h2 {
1645
- font-family: helveticabold;
1646
- text-align: center;
1647
- color: #414951;
1648
- font-size: 26px;
1649
- }
1650
- .tab1 ul.plus_icn_listing li .sfsiplus_right_info label:hover {
1651
- text-decoration: none!important;
1652
- }
1653
- .tab1 ul.plus_icn_listing li .sfsiplus_right_info label.expanded-area {
1654
- clear: both;
1655
- float: left;
1656
- margin-top: 14px;
1657
- }
1658
- .tab7 .space {
1659
- margin-top: 14px;
1660
- }
1661
- .tab7 .pop_up_show label {
1662
- font-family: helveticaregular!important;
1663
- }
1664
- .tab7 .save_button {
1665
- padding-top: 78px;
1666
- }
1667
- .like_txt a {
1668
- text-decoration: none;
1669
- font-family: helveticaregular;
1670
- }
1671
- .bdr_btm_non {
1672
- border-bottom: none!important;
1673
- }
1674
- .tab1 .tab_1_sav {
1675
- padding-top: 13px;
1676
- }
1677
- #accordion .tab2 .sfsiplus_facebook_section .inr_cont p.extra_sp, #accordion1 .tab2 .sfsiplus_facebook_section .inr_cont p.extra_sp {
1678
- padding-top: 7px;
1679
- }
1680
- .tab2 .sfsiplus_custom_section {
1681
- width: 100%}
1682
- .tab7 {
1683
- padding-bottom: 40px!important;
1684
- }
1685
- .tab8 .save_button {
1686
- padding-top: 0px;
1687
- }
1688
- .tab10 .save_button a {
1689
- padding: 16px 0;
1690
- }
1691
- .tab2 .sfsiplus_twitter_section .twt_fld input.add, .tab2 .sfsiplus_twitter_section .twt_fld_2 textarea.add_txt {
1692
- width: 464px!important;
1693
- }
1694
- .tab2 .utube_inn .fb_url label span {
1695
- font-family: helveticaregular;
1696
- }
1697
- .tab1 label, .tab2 label, .tab3 label, .tab4 label, .tab5 label, .tab6 label, .tab7 label, .tab8 label, .tab9 label {
1698
- cursor: default!important;
1699
- }
1700
- .tab5 .new_wind h4 {
1701
- margin-bottom: 11px!important;
1702
- }
1703
- .pop_up_box .fb_2 span {
1704
- height: 28px!important;
1705
- }
1706
- .pop_up_box .sfsi_plus_tool_tip_2 .fbb .fb_1 a {
1707
- margin-top: 0;
1708
- }
1709
- .tab6 .social_icon_like1 ul li span {
1710
- margin-top: -1px;
1711
- }
1712
- #sfpluspageLoad {
1713
- background: url(../images/ajax-loader.gif) 50% 50% no-repeat #F9F9F9;
1714
- height: 100%;
1715
- left: 160px;
1716
- opacity: 1;
1717
- position: fixed;
1718
- top: 0;
1719
- width: 89%;
1720
- z-index: 9999;
1721
- }
1722
- .sfsi_plus_tool_tip_2, .tool_tip {
1723
- background: #FFF;
1724
- border: 1px solid #e7e7e7;
1725
- box-shadow: #e7e7e7 0 0 2px 1px;
1726
- display: block;
1727
- float: left;
1728
- margin: 0 0 0 -52px;
1729
- /*padding: 5px 14px 5px 14px;*/
1730
- position: absolute;
1731
- z-index: 10000;
1732
- border-bottom: #e5e5e5 solid 4px;
1733
- width: 100px;
1734
- }
1735
- .sfsi_plus_tool_tip_2 {
1736
- display: inline-table;
1737
- }
1738
- .sfsiplus_inerCnt, .sfsiplus_inerCnt:hover, .sfsiplus_inerCnt>a, .sfsiplus_inerCnt>a:hover, .widget-area .widget a {
1739
- outline: 0;
1740
- }
1741
- .sfsi_plus_tool_tip_2_inr {
1742
- bottom: 90%;
1743
- left: 20%;
1744
- opacity: 0;
1745
- }
1746
- .sfsi_plus_tool_tip_2 .bot_arow {
1747
- background: url(../images/bot_tip_icn.png) no-repeat;
1748
- position: absolute;
1749
- bottom: -21px;
1750
- left: 50%;
1751
- width: 15px;
1752
- height: 21px;
1753
- margin-left: -10px;
1754
- }
1755
- .sfsi_plus_tool_tip_2 .top_big_arow {
1756
- position: absolute;
1757
- -webkit-transform: rotate(180deg);
1758
- -moz-transform: rotate(180deg);
1759
- -ms-transform: rotate(180deg);
1760
- -o-transform: rotate(180deg);
1761
- transform: rotate(180deg);
1762
- top: -21px;
1763
- left: 46%;
1764
- width: 15px;
1765
- height: 21px;
1766
- margin-right: -5px;
1767
- }
1768
- .sfsi_plus_tool_tip_2_inr .gpls_visit>a, .sfsi_plus_tool_tip_2_inr .prints_visit_1 a, .sfsi_plus_tool_tip_2_inr .utub_visit>a {
1769
- margin-top: 0;
1770
- }
1771
- .sfsi_plus_tool_tip_2_inr .linkin_1 a, .sfsi_plus_tool_tip_2_inr .linkin_2 a, .sfsi_plus_tool_tip_2_inr .linkin_3 a, .sfsi_plus_tool_tip_2_inr .linkin_4 a, .sfsi_plus_tool_tip_2_inr .prints_visit a {
1772
- margin: 0;
1773
- }
1774
- .sfsiTlleftBig {
1775
- bottom: 121%;
1776
- left: 22%;
1777
- margin-left: -54%}
1778
- .sfsi_plus_Tlleft {
1779
- bottom: 100%;
1780
- left: 50%;
1781
- margin-left: -66px !important;
1782
- margin-bottom: 2px;
1783
- }
1784
- .sfsi_plc_btm {
1785
- bottom: auto;
1786
- top: 100%;
1787
- left: 50%;
1788
- margin-left: -63px;
1789
- margin-top: 8px;
1790
- margin-bottom: auto;
1791
- }
1792
- .sfsiplus_inerCnt {
1793
- position: relative;
1794
- z-index: inherit!important;
1795
- float: left;
1796
- width: 100%;
1797
- float: left;
1798
- }
1799
- .sfsi_plus_wicons {
1800
- margin-bottom: 30px;
1801
- position: relative;
1802
- padding-top: 5px;
1803
- }
1804
- .sfsiplus_norm_row .bot_no {
1805
- position: absolute;
1806
- padding: 1px 0;
1807
- font-size: 12px!important;
1808
- text-align: center;
1809
- line-height: 12px!important;
1810
- background: #fff;
1811
- border-radius: 5px;
1812
- left: 50%;
1813
- margin-left: -20px;
1814
- z-index: 9;
1815
- border: 1px solid #333;
1816
- top: 100%;
1817
- white-space: pre;
1818
- -webkit-box-sizing: border-box;
1819
- -moz-box-sizing: border-box;
1820
- box-sizing: border-box;
1821
- margin-top: 10px;
1822
- width: 40px;
1823
- }
1824
- .sfsiplus_norm_row .bot_no:before {
1825
- content: url(images/count_top_arow.png);
1826
- position: absolute;
1827
- height: 9px;
1828
- margin-left: -7.5px;
1829
- top: -10px;
1830
- left: 50%;
1831
- width: 15px;
1832
- }
1833
- /*.sf_subscrbe .bot_no:before
1834
- {
1835
- content: url(images/count_left_arow.png);
1836
- height: 9px;
1837
- left: 0;
1838
- margin-left: -12px;
1839
- position: absolute;
1840
- top: 0px;
1841
- width: 15px;
1842
- }*/
1843
- .sf_subscrbe .bot_no
1844
- {
1845
- background: rgba(0, 0, 0, 0) url(images/count_left_arow.png) no-repeat scroll 0 0 / 27px auto;
1846
- font-size: 12px !important;
1847
- left: 67px;
1848
- line-height: 17px !important;
1849
- margin-left: 0px;
1850
- /* margin-top: 9px;*/
1851
- padding: 1px 0;
1852
- /*position: absolute;*/
1853
- text-align: center;
1854
- /*top: -8px;*/
1855
- white-space: pre;
1856
- width: 33px;
1857
- height: 19px;
1858
- z-index: 9;
1859
- display:inline-block;
1860
- }
1861
- .bot_no.sfsiSmBtn {
1862
- font-size: 10px;
1863
- margin-top: 4px;
1864
- }
1865
- .bot_no.sfsiSmBtn:before {
1866
- margin-left: -8px;
1867
- top: -9px;
1868
- }
1869
- .sfsiplus_norm_row .cbtn_vsmall {
1870
- font-size: 9px;
1871
- left: -28%;
1872
- top: 4px;
1873
- }
1874
- .sfsiplus_norm_row .cbtn_vsmall:before {
1875
- left: 31%;
1876
- top: -9px;
1877
- margin-left: -31%}
1878
- h2.optional {
1879
- font-family: helveticaregular;
1880
- font-size: 25px;
1881
- margin: 25px 0 19px;
1882
- color: #5a6570;
1883
- float: left;
1884
- }
1885
- .utube_tool_bdr .utub_visit {
1886
- margin: 9px 0 0;
1887
- height: 24px;
1888
- display: inline-block;
1889
- float: none;
1890
- }
1891
- .utube_tool_bdr .utub_2 {
1892
- margin: 9px 0 0;
1893
- height: 24px;
1894
- width: 86px;
1895
- display: inline-block;
1896
- float: none;
1897
- }
1898
- .sfsi_plus_printst_tool_bdr {
1899
- width: 79px;
1900
- }
1901
- .sfsi_plus_printst_tool_bdr .prints_visit {
1902
- margin: 0 0 10px -22px;
1903
- }
1904
- .sfsi_plus_printst_tool_bdr .prints_visit_1 {
1905
- margin: 0 0 0 -53px;
1906
- }
1907
- .sfsi_plus_fb_tool_bdr {
1908
- width: 68px;
1909
- height: auto;
1910
- }
1911
- .sfsi_plus_fb_tool_bdr .sfsi_plus_inside {
1912
- text-align: center;
1913
- width: 100%;
1914
- float: left;
1915
- overflow: hidden;
1916
- }
1917
- .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .icon1 {
1918
- margin: 2px 0 -5px 0;
1919
- height: 28px;
1920
- /*display: inline-block;*/
1921
- float: none;
1922
- /* width: 62px;s*/
1923
- }
1924
- #sfsi_plus_floater .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .icon1 {
1925
- margin: -16px 0 16px 0;
1926
- }
1927
- .sfsi_plus_inside img
1928
- {
1929
- vertical-align:sub !important;
1930
- }
1931
- .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .icon2
1932
- {
1933
- margin: 2px 0 2px 0 ;
1934
- height: 20px;
1935
- /* width: 49px;*/
1936
- display:block;
1937
- overflow: hidden;
1938
- }
1939
- .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .icon3 {
1940
- margin: 2px 0 2px 0;
1941
- height: 20px;
1942
- /* width: 62px;*/
1943
- display:inline-block;
1944
- float: none;
1945
- }
1946
- #sfsi_plus_floater .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .icon3 {
1947
- margin: 3px 0 0 0;
1948
- }
1949
- .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .fb_1, .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .fb_2, .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .fb_3 {
1950
- margin: 9px 0 0;
1951
- height: 25px;
1952
- }
1953
- .sfsi_plus_printst_tool_bdr .sfsi_plus_inside {
1954
- text-align: center;
1955
- float: left;
1956
- width: 100%}
1957
- .sfsi_plus_printst_tool_bdr .sfsi_plus_inside .icon1{
1958
- margin: 2px 0;
1959
- height: 24px;
1960
- display: inline-block;
1961
- float: none;
1962
- /*width: 73px;*/
1963
- }
1964
- #sfsi_plus_floater .sfsi_plus_printst_tool_bdr .sfsi_plus_inside .icon1{
1965
- margin:0px 0;
1966
- }
1967
- #sfsi_plus_floater .sfsi_plus_printst_tool_bdr .sfsi_plus_inside .icon2{
1968
- margin:-5px 0 17px 0;
1969
- display:inherit;
1970
- }
1971
- .sfsi_plus_printst_tool_bdr .sfsi_plus_inside .icon2 {
1972
- margin: 2px 0;
1973
- height: 20px;
1974
- display:inline-block;
1975
- float: none;
1976
- /*max-width: 73px;*/
1977
- width: 100%;
1978
- }
1979
- .sfsi_plus_printst_tool_bdr .sfsi_plus_inside .prints_visit, .sfsi_plus_printst_tool_bdr .sfsi_plus_inside .prints_visit_1 {
1980
- margin: 9px 0 0;
1981
- height: 20px;
1982
- float: none;
1983
- display: inline-block;
1984
- }
1985
- .sfsi_plus_printst_tool_bdr {
1986
- /* margin-left: -59px;*/
1987
- }
1988
- .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .icon1>a>img, .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .icon1>a>img, .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon1>a>img, .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon4>a>img, .sfsi_plus_printst_tool_bdr .sfsi_plus_inside .icon1>a>img, .sfsi_plus_printst_tool_bdr .sfsi_plus_inside .icon2>a>img, .utube_tool_bdr .sfsi_plus_inside .icon1>a>img {
1989
- padding-top: 0;
1990
- }
1991
- .sfsi_plus_gpls_tool_bdr {
1992
- width: 76px;
1993
- }
1994
- .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .icon1>a>img {
1995
- padding-top: 0;
1996
- }
1997
- .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside {
1998
- text-align: center;
1999
- width: 100%;
2000
- float: left;
2001
- }
2002
- .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .icon1 {
2003
- margin: 2px 0 -5px 0;
2004
- display: inline-block;
2005
- float: none;
2006
- height: 29px;
2007
- /*width: 76px;*/
2008
- }
2009
- .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .icon2 {
2010
- margin: 2px 0 2px 0;
2011
- display:inline-block;
2012
- float: none;
2013
- height: 24px;
2014
- width:100%;
2015
- /* width: 38px;*/
2016
- }
2017
- .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .icon3 {
2018
- margin: 2px 0 2px 0;
2019
- display:block;
2020
- float: none;
2021
- height: 24px;
2022
- /* width: 76px;
2023
- */}
2024
- .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .gpls_visit, .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .gtalk_2, .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .gtalk_3 {
2025
- margin: 9px 0 0;
2026
- height: 29px;
2027
- }
2028
- .sfsi_plus_fb_tool_bdr, .sfsi_plus_gpls_tool_bdr, .sfsi_plus_linkedin_tool_bdr, .sfsi_plus_printst_tool_bdr, .sfsi_plus_twt_tool_bdr {
2029
- bottom: auto;
2030
- left: 50%;
2031
- margin-bottom: 2px;
2032
- }
2033
- .sfsi_plus_twt_tool_bdr .sfsi_plus_inside {
2034
- text-align: center;
2035
- width: 100%;
2036
- float: left;
2037
- }
2038
- .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .cstmicon1 {
2039
- margin: 2px 0!important;
2040
- display: inline-block;
2041
- float: none;
2042
- vertical-align: middle;
2043
- overflow: hidden;
2044
- /*width: 100%;*/
2045
- }
2046
- #sfsi_plus_floater .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .cstmicon1 {
2047
- margin: -7px 0 -14px 0!important;
2048
- /* height: 41px; */
2049
- vertical-align: bottom;
2050
- }
2051
- .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .cstmicon1 a {
2052
- display: inline-block;
2053
- vertical-align: middle;
2054
- /*width: 100%;*/
2055
- width:auto;
2056
- }
2057
- .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .cstmicon1 a img{
2058
- float: left;
2059
- }
2060
- .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .icon1 {
2061
- margin: 1px 24px 3px !important;
2062
- display: inline-block;
2063
- float: none;
2064
- /*width: 61px;*/
2065
- overflow: hidden;
2066
- height: 20px;
2067
- }
2068
- #sfsi_plus_floater .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .icon1{
2069
- margin: 1px 24px -12px !important;
2070
- }
2071
- .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .icon1 iframe {
2072
- /* width: 61px!important;*/
2073
- }
2074
- .sfsi_plus_tool_tip_2, .sfsi_plus_fb_tool_bdr, .sfsi_plus_twt_tool_bdr, .sfsi_plus_linkedin_tool_bdr, .sfsi_plus_printst_tool_bdr, .sfsi_plus_gpls_tool_bdr, .sfsi_plus_Tlleft {width:140px !important; padding:6px 0;}
2075
- .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .icon2 {
2076
- margin: 0px 0!important;
2077
- display:inline-block;
2078
- float: none;
2079
- height: 20px;
2080
- /* width: 58px;s*/
2081
- }
2082
- .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .twt_1 {
2083
- margin: 9px 0 0;
2084
- display: inline-block;
2085
- float: none;
2086
- width: 58px;
2087
- height: 20px;
2088
- overflow: hidden;
2089
- }
2090
- .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .twt_1 iframe {
2091
- width: 100%!important;
2092
- }
2093
- .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .twt_2 {
2094
- margin: 9px 0 0;
2095
- height: 20px;
2096
- display: inline-block;
2097
- float: none;
2098
- width: 58px;
2099
- }
2100
- .utube_tool_bdr .sfsi_plus_inside {
2101
- text-align: center;
2102
- width: 100%;
2103
- float: left;
2104
- }
2105
- .sfsi_plus_inside > div {}
2106
- .utube_tool_bdr .sfsi_plus_inside .icon1{
2107
- margin: 2px 0 2px;
2108
- height: 24px;
2109
- display: inline-block;
2110
- float: none;
2111
- width: 87px;
2112
- }
2113
- #sfsi_plus_floater .utube_tool_bdr .sfsi_plus_inside .icon1{
2114
- margin:0px 0px 19px 0;
2115
- }
2116
- .utube_tool_bdr .sfsi_plus_inside .icon2 {
2117
- margin: 2px 0 2;
2118
- height: 24px;
2119
- display:inline-block;
2120
- float: none;
2121
- min-width: 100px;
2122
- width: auto;
2123
- }
2124
- .utube_tool_bdr {
2125
- width: 93px;
2126
- bottom: auto;
2127
- left: 50%;
2128
- margin-bottom: 2px;
2129
- }
2130
- .sfsi_plus_linkedin_tool_bdr {
2131
- width: 66px;
2132
- }
2133
- .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside {
2134
- text-align: center;
2135
- float: left;
2136
- width: 100%}
2137
- .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon1{
2138
- margin: -5px 0 8px 0;
2139
- display: inline-block;
2140
- float: none;
2141
- height: 23px;
2142
- width: 100%;
2143
- }
2144
- #sfsi_plus_floater .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon1{
2145
- margin: -6px 0 16px 0;
2146
- display: inherit;
2147
- }
2148
- .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon2{
2149
- margin: 1px 0;
2150
- display:inline-block;
2151
- float: none;
2152
- height: 23px;
2153
- width: 100%;
2154
- }
2155
- #sfsi_plus_floater .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon2{
2156
- margin: -15px 0 3px 0;
2157
- display: inherit;
2158
- }
2159
- .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon3 {
2160
- margin: 2px 0;
2161
- display:inline-block;
2162
- float: none;
2163
- height: 23px;
2164
- width: 100%;
2165
- }
2166
-
2167
-
2168
- .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon4 {
2169
- margin: 2px 0;
2170
- display: inline-block;
2171
- float: none;
2172
- height: 28px;
2173
- width: 66px;
2174
- }
2175
- .sfsi_plus_FrntInner .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon1{ margin: 2px 0;}
2176
- .sfsi_plus_widget .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon4,
2177
- .sfsi_plus_widget .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .icon1{ height: auto}
2178
-
2179
- .sfsi_plus_linkedin_tool_bdr .linkin_1, .sfsi_plus_linkedin_tool_bdr .linkin_2, .sfsi_plus_linkedin_tool_bdr .linkin_3, .sfsi_plus_linkedin_tool_bdr .linkin_4 {
2180
- margin: 9px 0 0!important;
2181
- height: 20px;
2182
- display: inline-block;
2183
- float: none;
2184
- overflow: hidden;
2185
- }
2186
- .sfsi_plus_twt_tool_bdr {
2187
- width: 62px;
2188
- height: auto;
2189
- }
2190
- .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .icon1>iframe {
2191
- margin: 0px auto!important;
2192
- float: left !important;
2193
- width: 100%}
2194
- .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .icon1>iframe #widget {
2195
- text-align: center;
2196
- }
2197
- .sfsi_pop_up .button {
2198
- border: none;
2199
- padding: 0;
2200
- }
2201
- .pop_up_box .button a {
2202
- color: #fff;
2203
- line-height: normal;
2204
- font-size: 22px;
2205
- text-decoration: none;
2206
- text-align: center;
2207
- width: 482px;
2208
- height: 80px;
2209
- margin: 0;
2210
- display: table-cell;
2211
- vertical-align: middle;
2212
- font-family: helveticabold;
2213
- padding: 0 10px;
2214
- }
2215
- .tab3 ul.sfsiplus_tab_3_icns li .radio {
2216
- margin-top: 7px;
2217
- }
2218
- .tab3 ul.sfsiplus_tab_3_icns li label { line-height: 50px!important; margin-left: 20px;}
2219
- .sfsi_mainContainer input[type=email], .sfsi_mainContainer input[type=number], .sfsi_mainContainer input[type=password], .sfsi_mainContainer input[type=search], .sfsi_mainContainer input[type=tel], .sfsi_mainContainer input[type=text], .sfsi_mainContainer input[type=url], .sfsi_mainContainer select, .sfsi_mainContainer textarea {
2220
- color: #5a6570!important;
2221
- }
2222
- .adminTooltip {
2223
- left: 142px;
2224
- position: absolute;
2225
- }
2226
- .adPopWidth {
2227
- min-height: 100px!important;
2228
- }
2229
- .main_contant p>a.lit_txt, .tab4 p>a {
2230
- font-family: helveticaregular;
2231
- color: #414951;
2232
- }
2233
- .tab1 ul.plus_icn_listing li .sfsiplus_custom-txt {
2234
- margin-left: 5px;
2235
- }
2236
- .tab1 ul.plus_icn_listing li .custom-img {
2237
- margin-left: 18px;
2238
- }
2239
- .sfsiplus_linkedin_section .link_4>label.anthr_labl {
2240
- height: 94px;
2241
- }
2242
- .tab3 .tab_3_sav {
2243
- padding-top: 0;
2244
- margin: -69px auto 20px;
2245
- position: relative;
2246
- z-index: 9;
2247
- }
2248
- .mediam_txt {
2249
- font-family: helveticabold;
2250
- }
2251
- .sfsiCtxt {
2252
- line-height: 51px;
2253
- font-family: helveticaregular;
2254
- font-size: 22px;
2255
- float: left;
2256
- padding-left: 19px;
2257
- color: #5a6570;
2258
- }
2259
- .customstep2-img {
2260
- width: 51px;
2261
- float: left;
2262
- }
2263
- .tab2 .row h2.custom {
2264
- margin: 15px 0 7px 21px;
2265
- height: 52px;
2266
- line-height: 51px;
2267
- font-family: helveticaregular;
2268
- font-size: 22px;
2269
- }
2270
- .plus_custom-links p.cus_link label {
2271
- margin-left: 0;
2272
- }
2273
- .pop_up_box .sfsi_plus_tool_tip_2 .fbb .fb_1 a>img:hover {
2274
- opacity: .9;
2275
- }
2276
- .tab2 .rss_url_row .sfrsTxt {
2277
- font-size: 17px;
2278
- line-height: 41px;
2279
- margin: 0 0 0 4px;
2280
- font-family: helveticaregular;
2281
- }
2282
- .tab2 .rss_url_row .sfrsTxt>strong {
2283
- font-family: helveticaregular;
2284
- }
2285
- .tab2 .utube_inn p.extra_pp {
2286
- float: left;
2287
- width: 100%;
2288
- margin: 0 0 0 48px;
2289
- }
2290
- .tab2 .utube_inn p.extra_pp label {
2291
- float: left;
2292
- line-height: 41px;
2293
- margin-right: 8px;
2294
- }
2295
- .sfsi_inside .icon2 .fb_iframe_widget span {
2296
- /* width: 500px!important; sunil*/
2297
- }
2298
- @media (max-width:767px) {
2299
- .icon2 .fb_iframe_widget span {
2300
- width: auto;
2301
- }
2302
- .sfsi_plus_outr_div
2303
- {
2304
- top: 10%
2305
- }
2306
- .sfsi_plus_outr_div h2
2307
- {
2308
- font-size: 22px!important;
2309
- line-height: 28px;
2310
- }
2311
- .sfsi_plus_wicons {
2312
- padding-top: 0;
2313
- }
2314
- }
2315
- .sfsiplus_specify_counts .listing li .high_prb {
2316
- height: 41px;
2317
- }
2318
- .sfsi_plus_Sicons {
2319
- position: relative;
2320
- }
2321
- .sfsi_plus_Sicons .sf_subscrbe{ margin: 2px 3px 0 0; line-height: 0px;}
2322
- .sfsi_plus_Sicons .sf_fb{ margin: 0 4px 0 5px; line-height: 0px;}
2323
- .sfsi_plus_Sicons .sf_twiter{ margin: 1px 7px 0 4px; line-height: 0px;}
2324
-
2325
- .sfsi_plus_Sicons.left .sf_subscrbe{ margin: 2px 8px 0 0;}
2326
- .sfsi_plus_Sicons.left .sf_fb{ margin: 0 8px 0 0;}
2327
- .sfsi_plus_Sicons.left .sf_twiter{ margin: 1px 8px 0 0;}
2328
-
2329
- .sfsi_plus_Sicons.right .sf_subscrbe{ margin: 2px 0 0; }
2330
- .sfsi_plus_Sicons.right .sf_fb{ margin: 0 0 0 7px; }
2331
- .sfsi_plus_Sicons.right .sf_twiter{ margin: 1px 0 0 8px; }
2332
-
2333
- .sfsi_plus_Sicons .sf_subscrbe, .sfsi_plus_Sicons .sf_twiter
2334
- {
2335
- position: relative;
2336
- width: 75px;
2337
- }
2338
- .sfsi_plus_Sicons .sf_twiter iframe
2339
- {
2340
- margin: 0px;
2341
- height: 20px !important;
2342
- overflow: visible !important;
2343
- }
2344
- .sfsi_plus_Sicons .sf_twiter iframe #widget
2345
- {
2346
- overflow: visible !important;
2347
-
2348
- }
2349
- .sfsi_plus_Sicons .sf_subscrbe a
2350
- {
2351
- width: auto;
2352
- float: left;
2353
- border: medium none;
2354
- padding-top: 0px;
2355
- }
2356
- .sfsi_plus_Sicons .sf_subscrbe a:focus
2357
- {
2358
- outline: medium none;
2359
- }
2360
- .sfsi_plus_Sicons .sf_subscrbe a img
2361
- {
2362
- float: left;
2363
- height: 20px !important;
2364
- }
2365
- .sfsi_plus_Sicons .sf_fb {
2366
- position: relative;
2367
- width: 75px;
2368
- }
2369
- .sfsi_plus_Sicons .fb_iframe_widget {
2370
- float: none;
2371
- width: auto;
2372
- vertical-align: middle;
2373
- margin: 2px 0 0;
2374
- }
2375
- /*absolute commented as for standard icon it was giving issue while icon was to be aligned centerd.*/
2376
- .sfsi_plus_Sicons .sf_fb .fb_iframe_widget>span {
2377
- position: relative;
2378
- /*width: 450px!important;*/
2379
- float: left;
2380
- }
2381
-
2382
- .tab2 .utube_inn label {
2383
- font-size: 18px;
2384
- }
2385
- .sfsi_plc_btm {
2386
- padding: 5px 14px 9px;
2387
- }
2388
- .tab7 .field {
2389
- margin-top: 7px;
2390
- }
2391
- .sfsi_plus_outr_div ul li .cmcls img {
2392
- margin-top: 0!important;
2393
- }
2394
- .sfsi_plus_outr_div ul li .sfsiplus_inerCnt {
2395
- float: left;
2396
- }
2397
- .sfsi_plus_outr_div ul li .sfsiplus_inerCnt .bot_no {
2398
- position: absolute;
2399
- padding: 1px 0;
2400
- font-size: 12px!important;
2401
- line-height: 12px!important;
2402
- text-align: center;
2403
- background: #fff;
2404
- border-radius: 5px;
2405
- display: block;
2406
- left: 50%;
2407
- margin-left: -20px;
2408
- border: 1px solid #333;
2409
- white-space: pre;
2410
- -webkit-box-sizing: border-box;
2411
- -moz-box-sizing: border-box;
2412
- box-sizing: border-box;
2413
- margin-top: 6px;
2414
- width: 40px;
2415
- word-break: break-all;
2416
- word-wrap: break-word;
2417
- }
2418
- .sfsi_plus_outr_div ul li .sfsiplus_inerCnt .bot_no:before {
2419
- content: url(images/count_top_arow.png);
2420
- position: absolute;
2421
- height: 9px;
2422
- margin-left: -7.5px;
2423
- top: -10px;
2424
- left: 50%;
2425
- width: 15px;
2426
- }
2427
- .sfsi_plus_outr_div {
2428
- position: fixed;
2429
- width: 100%;
2430
- float: none;
2431
- left: 50%;
2432
- top: 20%;
2433
- margin-left: -50%;
2434
- opacity: 0;
2435
- z-index: -1;
2436
- display: block;
2437
- text-align: center;
2438
- }
2439
- .sfsi_plus_outr_div .sfsi_plus_FrntInner {
2440
- display: inline-block;
2441
- padding: 15px 17px 27px 18px;
2442
- background: #FFF;
2443
- border: 1px solid #EDEDED;
2444
- box-shadow: 0 0 5px #CCC;
2445
- margin: 20px;
2446
- position: relative;
2447
- }
2448
- .sfsi_plus_FrntInner .sfsiclpupwpr
2449
- {
2450
- position: absolute;
2451
- right: -10px;
2452
- top: -10px;
2453
- width: 25px;
2454
- cursor: pointer;
2455
- }
2456
- .sfsi_plus_FrntInner .sfsiclpupwpr img
2457
- {
2458
- width: auto;
2459
- float: left;
2460
- border: medium none;
2461
- }
2462
- .tab7 .like_pop_box {
2463
- width: 100%;
2464
- margin: 35px auto auto;
2465
- position: relative;
2466
- text-align: center;
2467
- }
2468
- .tab7 .like_pop_box .sfsi_plus_Popinner {
2469
- display: inline-block;
2470
- padding: 18px 20px;
2471
- box-shadow: 0 0 5px #ccc;
2472
- -webkit-box-shadow: 0 0 5px #ccc;
2473
- border: 1px solid #ededed;
2474
- background: #FFF;
2475
- }
2476
- .tab7 .like_pop_box .sfsi_plus_Popinner h2 {
2477
- margin: 0 0 23px;
2478
- padding: 0;
2479
- color: #414951;
2480
- font-family: helveticabold;
2481
- font-size: 26px;
2482
- text-align: center;
2483
- }
2484
- .tab7 .like_pop_box .sfsi_plus_Popinner ul {
2485
- margin: 0;
2486
- padding: 0;
2487
- list-style: none;
2488
- text-align: center;
2489
- }
2490
- .tab7 .like_pop_box .sfsi_plus_Popinner ul li {
2491
- margin: 0;
2492
- padding: 0;
2493
- list-style: none;
2494
- display: inline-block;
2495
- }
2496
- .tab7 .like_pop_box .sfsi_plus_Popinner ul li span {
2497
- margin: 0;
2498
- width: 54px;
2499
- display: block;
2500
- background: url(../images/count_bg.png) no-repeat;
2501
- height: 24px;
2502
- overflow: hidden;
2503
- padding: 10px 2px 2px;
2504
- font-family: helveticaregular;
2505
- font-size: 16px;
2506
- text-align: center;
2507
- line-height: 24px;
2508
- color: #5a6570;
2509
- }
2510
- .tab7 .like_pop_box .sfsi_plus_Popinner ul li a {
2511
- color: #5a6570;
2512
- text-decoration: none;
2513
- }
2514
- .sfsi_plus_outr_div .sfsi_plus_FrntInner .sfsi_plus_wicons {
2515
- margin-bottom: 0;
2516
- }
2517
- .sfsi_plus_outr_div ul {
2518
- list-style: none;
2519
- margin: 0 0 24px;
2520
- padding: 0;
2521
- text-align: center;
2522
- }
2523
- a.sfsiColbtn {
2524
- color: #5a6570!important;
2525
- float: right;
2526
- font-size: 14px;
2527
- margin: -35px -30px 0 0;
2528
- position: relative;
2529
- right: 0;
2530
- font-family: helveticaregular;
2531
- width: 100px;
2532
- text-decoration: none;
2533
- }
2534
- .tab3 a.sfsiColbtn {
2535
- margin-top: -55px;
2536
- }
2537
- .sfsi_plus_FrntInner ul li:first-of-type .sfsi_plus_wicons {
2538
- margin-left: 0!important;
2539
- }
2540
- ul.sfsiplus_tab_3_icns li .trans_bg {
2541
- background: #000;
2542
- padding-left: 3px;
2543
- }
2544
- .tab2 .sfsiplus_instagram_section {
2545
- padding-bottom: 20px;
2546
- }
2547
- h1.abt_titl {
2548
- text-align: center;
2549
- margin: 19% 0 0;
2550
- }
2551
- .sfcm.sfsi_wicon { padding: 0; width: 100% !important; border: medium none !important; height: auto !important;}
2552
- .fb_iframe_widget span {
2553
- vertical-align: top!important;
2554
- }
2555
- .sfsi_plus_outr_div .sfsi_plus_FrntInner ul {
2556
- margin: 0 0 0 3px;
2557
- }
2558
- .sfsi_plus_outr_div .sfsi_plus_FrntInner ul li {
2559
- margin: 0 3px 0 0;
2560
- }
2561
- @-moz-document url-prefix() {
2562
- .sfcm.sfsi_wicon {
2563
- margin: -1px;
2564
- padding: 0;
2565
- }
2566
- }@media (min-width:320px) and (max-width:480px) {
2567
- .sfsi_plus_tool_tip_2, .tool_tip {
2568
- padding: 5px 14px 0;
2569
- }
2570
- .sfsi_plus_inside:last-child {
2571
- margin-bottom: 18px;
2572
- clear: both;
2573
- }
2574
- .sfsi_plus_outr_div {
2575
- top: 10%}
2576
- .sfsi_plus_FrntInner .sfsi_plus_wicons {
2577
- width: 31px!important;
2578
- height: 31px!important;
2579
- }
2580
- .sfsi_plus_FrntInner .sfsi_plus_wicons img {
2581
- width: 100%}
2582
- }
2583
- @media (max-width:320px) {
2584
- .sfsi_plus_tool_tip_2, .tool_tip {
2585
- padding: 5px 14px 0;
2586
- }
2587
- .sfsi_plus_inside:last-child {
2588
- margin-bottom: 18px;
2589
- clear: both;
2590
- }
2591
- .sfsi_plus_FrntInner .sfsi_plus_wicons {
2592
- width: 31px!important;
2593
- height: 31px!important;
2594
- }
2595
- .sfsi_plus_FrntInner .sfsi_plus_wicons img {
2596
- width: 100%}
2597
- }
2598
- ul.SFSI_lsngfrm {
2599
- float: left;
2600
- width: 61%}
2601
- ul.SFSI_instructions {
2602
- float: left;
2603
- width: 39%}
2604
- ul.SFSI_instructions li {
2605
- font-size: 12px!important;
2606
- line-height: 25px!important;
2607
- margin: 0!important;
2608
- padding: 0 0 0 15px!important;
2609
- width: 100%}
2610
-
2611
- /*{Monad}*/
2612
- /*Upload Skins css*/
2613
- .cstmskin_popup
2614
- {
2615
- width: 500px;
2616
- background: #FFF;
2617
- box-shadow: 0 0 5px 3px #d8d8d8;
2618
- margin: 40px 0px auto;
2619
- padding: 20px 25px 20px;
2620
- font-family: helveticaregular;
2621
- color: #5a6570;
2622
- height: auto;
2623
- float: left;
2624
- position: relative;
2625
- left: 35%;
2626
- }
2627
- .cstomskins_wrpr {
2628
- float: left;
2629
- width: 100%;
2630
- }
2631
- .custskinmsg {
2632
- float: left;
2633
- font-size: 15px;
2634
- margin-top: 10px;
2635
- width: 100%;
2636
- }
2637
- .custskinmsg > ul {
2638
- color: #000;
2639
- float: left;
2640
- margin-top: 8px;
2641
- width: 100%;
2642
- }
2643
- ul.cstmskin_iconlist {
2644
- float: left;
2645
- margin-top: 10px;
2646
- width: 100%;
2647
- height: 53vh;
2648
- overflow-y: scroll;
2649
- }
2650
- .cstmskin_iconlist > li {
2651
- float: left;
2652
- margin: 3px 0;
2653
- width: 100%;
2654
- }
2655
- .cstm_icnname {
2656
- float: left;
2657
- width: 30%;
2658
- }
2659
- .cstmskins_btn > img {
2660
- float: left;
2661
- margin-right: 25px;
2662
- }
2663
- .cstmskin_btn
2664
- {
2665
- width: auto;
2666
- float: left;
2667
- padding: 3px 20px;
2668
- color: #fff;
2669
- background-color:#12a252;
2670
- text-decoration: none;
2671
- margin: 0 10px;
2672
- }
2673
- .cstmskins_sbmt
2674
- {
2675
- width: 100%;
2676
- float: left;
2677
- text-align: center;
2678
- margin-top: 15px;
2679
- }
2680
- .done_btn
2681
- {
2682
- width: auto;
2683
- padding: 3px 80px;
2684
- color: #fff;
2685
- background-color:#12a252;
2686
- text-decoration: none;
2687
- font-size: 18px;
2688
- }
2689
- .cstmskin_btn:hover, .done_btn:hover, .cstmskin_btn:focus, .done_btn:focus
2690
- {
2691
- color: #fff;
2692
- }
2693
- .skswrpr, .dlt_btn
2694
- {
2695
- display: none;
2696
- }
2697
- .cstmutbewpr
2698
- {
2699
- width: 100%;
2700
- float: left;
2701
- margin-top: 10px;
2702
- }
2703
- .cstmutbewpr ul.enough_waffling li
2704
- {
2705
- width: auto;
2706
- float: left;
2707
- margin-right: 20px;
2708
- }
2709
- .cstmutbewpr ul.enough_waffling li span
2710
- {
2711
- float: left;
2712
- }
2713
- .cstmutbewpr ul.enough_waffling li label
2714
- {
2715
- width: auto;
2716
- float: left;
2717
- margin-top: 10px;
2718
- margin-left: 10px;
2719
- }
2720
- .cstmutbewpr .cstmutbtxtwpr
2721
- {
2722
- width: 100%;
2723
- float: left;
2724
- padding-top: 10px;
2725
- }
2726
- .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlnmewpr
2727
- {
2728
- width: 100%;
2729
- float: left;
2730
- display: none;
2731
- }
2732
- #accordion .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlnmewpr p, #accordion .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlidwpr p
2733
- {
2734
- margin-left: 0px;
2735
- }
2736
- .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlidwpr
2737
- {
2738
- width: 100%;
2739
- float: left;
2740
- display: none;
2741
- }
2742
- #accordion .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlnmewpr p label, #accordion .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlidwpr p label
2743
- {
2744
- width: 120px;
2745
- }
2746
- .sfsi_plus_widget .sfsi_plus_wDiv .sfsi_plus_wicons .sfsiplus_inerCnt a, .sfsi_plus_widget .sfsi_plus_wDiv .sfsi_plus_wicons .sfsiplus_inerCnt a.sficn
2747
- {
2748
- padding: 0px;
2749
- margin: 0px;
2750
- width: 100%;
2751
- /*float: left;*/
2752
- border: medium none;
2753
- }
2754
- .sfsi_socialwpr
2755
- {
2756
- width: auto;
2757
- float: left;
2758
- }
2759
- .sfsi_socialwpr .sf_fb
2760
- {
2761
- float:left;
2762
- margin:5px 5px 5px 5px;
2763
- min-height: 20px;
2764
- }
2765
-
2766
- .sfsipyplfrm
2767
- {
2768
- float: left;
2769
- margin-top: 10px;
2770
- width: 100%;
2771
- }
2772
- .sfsipyplfrm input[type="submit"]
2773
- {
2774
- background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
2775
- border: medium none;
2776
- color: #0074a2;
2777
- cursor: pointer;
2778
- font-weight: normal;
2779
- margin: 0;
2780
- padding: 5px 10px;
2781
- text-decoration: underline;
2782
- }
2783
- .sfsipyplfrm input[type="submit"]:hover
2784
- {
2785
- color: #2ea2cc
2786
- }
2787
- .pop_up_box_ex {
2788
- background: none repeat scroll 0 0 #fff;
2789
- box-shadow: 0 0 5px 3px #d8d8d8;
2790
- color: #5a6570;
2791
- font-family: helveticaregular;
2792
- margin: 200px auto;
2793
- min-height: 150px;
2794
- padding: 20px 25px 0px;
2795
- position: relative;
2796
- width: 290px;
2797
- }
2798
- .pop_up_box_ex {
2799
- color: #5a6570;
2800
- font-family: helveticaregular;
2801
- }
2802
-
2803
- .tab8 ul.sfsiplus_icn_listing8 li .sfsiplus_right_info {
2804
- font-family: helveticaregular;
2805
- width: 94.7%;
2806
- float: left;
2807
- }
2808
- .tab8 ul.sfsiplus_icn_listing8 li .sfsiplus_right_info p label.ckckslctn
2809
- {
2810
- display: none;
2811
- }
2812
-
2813
- .tab8 .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr > li {
2814
- width:100% !important;
2815
- max-width:100% !important;
2816
- border-left: 45px solid transparent;
2817
- -webkit-box-sizing: border-box;
2818
- -moz-box-sizing: border-box;;
2819
- -ms-box-sizing: border-box;
2820
- -o-box-sizing: border-box;
2821
- box-sizing: border-box;
2822
- }
2823
-
2824
- .tab8 .icons_size > input {
2825
- background:none repeat scroll 0 0 #e5e5e5;
2826
- width:80px;
2827
- float:left;
2828
- padding:10px 0;
2829
- text-align:center;
2830
- }
2831
- .tab8 .icons_size > ins { margin-left:19px; }
2832
- .tab8 .icons_size > span.last { width: auto !important; clear: left }
2833
- .tab8 .radio_section.tb_4_ck { margin: 0 20px 0 0 !important; }
2834
- .tab8 .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr .row,
2835
- .tab8 .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr p,
2836
- .tab8 .options {
2837
- float: none;
2838
- width: 100%;
2839
- border-left: 60px solid transparent;
2840
- -webkit-box-sizing: border-box;
2841
- -moz-box-sizing: border-box;
2842
- -o-box-sizing: border-box;
2843
- -ms-box-sizing: border-box;
2844
- box-sizing: border-box;
2845
- }
2846
- .tab8 .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr label { width: auto; }
2847
-
2848
- .tab8 .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr .social_icon_like1 ul { margin-left: 15px}
2849
- .tab8 .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr .social_icon_like1 li { width: auto; max-width: auto; min-width: auto; margin: 0 50px 0 0 }
2850
- .tab8 .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr .usually > li { width:85% !important; max-width: 100% !important; margin-left: 70px; font-family: 'helveticaneue-light'; padding-bottom: 5px}
2851
- .tab8 .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr .options > label { width:356px !important; margin:0; width: auto; margin-bottom: 0; margin-top: 0px; }
2852
- .tab8 .row.sfsiplus_PostsSettings_section .options .first.chcklbl { float: left !important; width: 335px !important; }
2853
- .tab8 .row.sfsiplus_PostsSettings_section .options .chckwpr { width:400px; float:right; }
2854
- .tab8 .row.sfsiplus_PostsSettings_section .options {
2855
- width:90%;
2856
- margin:0;
2857
- font-family: 'helveticaneue-light';
2858
- float: left;
2859
- margin-bottom: 10px;
2860
- max-width: 895px;
2861
- border-left: none;
2862
- }
2863
- .sfsiplus_toggleonlystndrshrng { margin-bottom: 30px !important}
2864
- .tab8 .row.sfsiplus_PostsSettings_section .options.shareicontextfld { margin: 15px 0; }
2865
- .tab8 .sfsiplus_tab_3_icns.flthmonpg .radio { margin-top:55px !important; }
2866
- .tab8 .radiodisplaysection { float: left;}
2867
-
2868
-
2869
-
2870
- /*palak css end*/
2871
- /*modify by palak*/
2872
- .tab8 ul.sfsiplus_icn_listing8 li {
2873
- float: left;
2874
- padding: 11px 0 40px 8px;
2875
- width: 100%;
2876
- /*max-width: 1000px;*/
2877
- margin: 0
2878
- }
2879
- .sfsiplusplacethemanulywpr { max-width: 98% !important}
2880
-
2881
- /*modify by palak*/
2882
- /*modify by palak*/
2883
- .tab8 ul.sfsiplus_icn_listing8 {
2884
- list-style: outside none none;
2885
- margin: 5px 0 0;
2886
- overflow: hidden;
2887
- }
2888
- /*modify by palak*/
2889
- .sfsiplus_right_info label.sfsiplus_sub-subtitle
2890
- {
2891
- font-size: 16px !important;
2892
- font-weight: normal;
2893
- }
2894
- ul.plus_icn_listing li .sfsiplus_right_info label.sfsiplus_sub-subtitle a
2895
- {
2896
- font-size: 13px;
2897
- }
2898
- .tab8 ul.sfsiplus_tab_3_icns li .radio {
2899
- margin-top: 7px;
2900
- }
2901
-
2902
- .tab8 ul.sfsiplus_tab_3_icns li label {
2903
- line-height: 50px !important;
2904
- }
2905
- .tab8 ul.sfsiplus_icn_listing8 li .sfsiplus_tab_3_icns li {
2906
- width: 50%;
2907
- max-width: 450px;
2908
- min-width: 420px;
2909
- padding-left: 0;
2910
- padding-bottom: 15px
2911
- }
2912
-
2913
- .tab8 ul.sfsiplus_icn_listing8 li .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr>li:nth-child(1),
2914
- .tab8 ul.sfsiplus_icn_listing8 li .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr>li:nth-child(2),
2915
- .tab8 ul.sfsiplus_icn_listing8 li .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr>li:nth-child(3) { width: 33% !important}
2916
- .space.disblfltonmbl p.list { width: 100%; margin-bottom: 28px}
2917
-
2918
-
2919
- #accordion .tab8 .sfsiplus_icn_listing8 li .sfsiplus_right_info p { display: table}
2920
-
2921
- /*modify by palak*/
2922
- .tab8 .row
2923
- {
2924
- clear: both;
2925
- display: block;
2926
- float: left;
2927
- font-family: helveticaregular;
2928
- line-height: 42px;
2929
- margin-top: 25px;
2930
- padding-top: 15px;
2931
- width: 100%;
2932
- }
2933
- /*modify by palak*/
2934
- .tab8 .icons_size { margin-top: -12px; }
2935
- .tab8 .icons_size { position: relative; font-family: 'helveticaneue-light'; width: 538px; float: right }
2936
- .tab8 .icons_size span {
2937
- display: block;
2938
- float: left;
2939
- font-size: 20px;
2940
- font-weight: 400;
2941
- line-height: 42px;
2942
- margin-right: 18px;
2943
- }
2944
-
2945
- .tab8.icons_size span.last
2946
- {
2947
- margin-left: 55px;
2948
- }
2949
- .tab8 .icons_size ins
2950
- {
2951
- float: left;
2952
- font-size: 17px;
2953
- font-weight: 400;
2954
- margin-right: 25px;
2955
- text-decoration: none;
2956
- margin-bottom: 20px;
2957
- }
2958
- .tab8 .social_icon_like1 {
2959
- float: left;
2960
- margin: 0;
2961
- padding: 30px 0 0;
2962
- text-align: center;
2963
- width: 100%;
2964
- }
2965
- .tab8 .social_icon_like1 ul {
2966
- list-style: outside none none;
2967
- margin: 0;
2968
- padding: 0;
2969
- text-align: center;
2970
- }
2971
- .tab8 .social_icon_like1 li {
2972
- display: inline-block;
2973
- list-style: outside none none;
2974
- margin: 0 0 0 45px !important;
2975
- padding: 0;
2976
- width: auto !important;
2977
- min-width: 100px !important;
2978
- }
2979
- .tab8 .social_icon_like1 li a {
2980
- color: #5a6570;
2981
- display: block;
2982
- text-decoration: none;
2983
- }
2984
- .tab8 .social_icon_like1 li img {
2985
- display: block;
2986
- float: left;
2987
- margin-right: 5px;
2988
- }
2989
- .tab8 ul.usually {
2990
- list-style: outside none none;
2991
- margin: 28px 0 15px 60px;
2992
- padding: 0;
2993
- float: left
2994
- }
2995
- .tab8 ul.usually li {
2996
- font-size: 17px;
2997
- list-style: outside none none;
2998
- margin: 0;
2999
- padding: 0;
3000
- text-align: left;
3001
- width: auto;
3002
- }
3003
- .tab8 ul.enough_waffling {
3004
- list-style: outside none none;
3005
- margin: 25px 0 0;
3006
- padding: 0;
3007
- text-align: center;
3008
- }
3009
- .tab8 ul.enough_waffling li {
3010
- display: inline-block;
3011
- list-style: outside none none;
3012
- margin: 0 22px;
3013
- padding: 0;
3014
- }
3015
- .tab8 ul.enough_waffling li span {
3016
- float: left;
3017
- }
3018
- .tab8 ul.enough_waffling li label {
3019
- color: #5a6570;
3020
- float: left;
3021
- font-family: helveticaregular;
3022
- font-size: 18px;
3023
- font-weight: 400;
3024
- line-height: 38px;
3025
- margin: 0 0 0 20px;
3026
- text-align: center;
3027
- }
3028
- /*modify by palak*/
3029
- .tab8 .row {
3030
- clear: both;
3031
- display: block;
3032
- float: left;
3033
- font-family: helveticaregular;
3034
- line-height: 42px;
3035
- margin-top: 0px;
3036
- padding-top: 10px;
3037
- width: 100%;
3038
- }
3039
- /*modify by palak*/
3040
- .tab8 .options {
3041
- clear: both;
3042
- float: left;
3043
- margin-top: 25px;
3044
- width: auto;
3045
- float: none;
3046
- }
3047
- .tab8 .options label.first {
3048
- font-family: 'helveticaneue-light';
3049
- font-size: 18px;
3050
- }
3051
- .tab8 .options label {
3052
- color: #5a6570;
3053
- float: left;
3054
- font-family: 'helveticaneue-light';
3055
- font-size: 18px;
3056
- line-height: 46px;
3057
- width: 345px;
3058
- }
3059
- .tab8 .options input {
3060
- background: none repeat scroll 0 0 #e5e5e5;
3061
- border: 0 none;
3062
- box-shadow: 2px 2px 3px #dcdcdc inset;
3063
- float: left;
3064
- padding: 10px;
3065
- width: 308px;
3066
- }
3067
- .tab8 .options .field {
3068
- float: left;
3069
- position: relative;
3070
-
3071
- }
3072
- .tab8 .options .field .select {
3073
- background: url(../images/select_bg1.jpg) no-repeat scroll 0 0 rgba(0, 0, 0, 0);
3074
- display: block;
3075
- font-family: helveticaregular;
3076
- padding-left: 17px;
3077
- width: 207px;
3078
- }
3079
- .tab8 .options .field select.styled {
3080
- height: 46px;
3081
- left: 0;
3082
- line-height: 46px;
3083
- position: absolute;
3084
- top: 0;
3085
- width: 213px;
3086
- }
3087
- .tab8 .options .field select.styled {
3088
- line-height: 46px;
3089
- }
3090
- .tab8 ul.sfsiplus_icn_listing8 li .snglchckcntr .sfsiplus_right_info {
3091
- float: left;
3092
- margin-right: 0;
3093
- text-align: left;
3094
- width: auto;
3095
- font-family: 'helveticaneue-light';
3096
- font-size: 18px;
3097
- line-height: 30px;
3098
- }
3099
- .chckwpr .snglchckcntr:first-child { float:left; }
3100
- .chckwpr .snglchckcntr:last-child { float:left; margin-left: 110px; }
3101
- .chckwpr
3102
- {
3103
- width:100%;
3104
- float:left;
3105
- }
3106
- .cstmutbchnlidwpr .utbe_instruction,.cstmutbchnlnmewpr .utbe_instruction, .lnkdin_instruction {
3107
- float: left;
3108
- line-height: 22px;
3109
- margin-top: 10px;
3110
- width: 100%;
3111
- }
3112
- #accordion .tab8 .sfsiplus_icn_listing8 li .sfsiplus_right_info p
3113
- {
3114
- font-size: 20px;
3115
- }
3116
- #accordion .tab8 ul.sfsiplus_tab_3_icns { margin-top: 25px; }
3117
- #accordion .tab8 ul.sfsiplus_tab_3_icns.flthmonpg { margin-left: 45px}
3118
- #accordion .tab8 .sfsiplus_icn_listing8 li .sfsiplus_right_info p.cstmdisplaysharingtxt { padding-top: 5px; display: inline;}
3119
- #accordion .tab8 ul.sfsiplus_shwthmbfraftr .labelhdng4,
3120
- #accordion .tab8 ul.sfsiplus_shwthmbfraftr .row h4.labelhdng4 { color: #555; font-size: 20px; margin-left: 20px; font-family: 'helveticaregular'}
3121
- .tab8 .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr .row.sfsiplus_PostsSettings_section { border-left: 105px solid transparent; float: left; padding-top: 0}
3122
- .sfsiplus_toggleonlystndrshrng { margin-bottom: 0 !important}
3123
- .radiodisplaysection { float: left}
3124
- .tab8 .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr .row.sfsiplus_PostsSettings_section>.labelhdng4 { margin-bottom: 20px !important}
3125
- .sfsiplus_shwthmbfraftr { margin-top: 5px !important}
3126
- label.sfsiplus_toglpstpgsbttl { float: left; margin-top: 5px !important}
3127
- #accordion .tab8 ul.sfsiplus_shwthmbfraftr .row h4 {
3128
- font-family: 'helveticaneue-light';
3129
- font-weight: normal;
3130
- font-size: 18px;
3131
- color: #69737c;
3132
- float: left
3133
- }
3134
- .tab8 .row.sfsiplus_PostsSettings_section .options .seconds.chcklbl { float: right; width: 400px !important; }
3135
- .sfsibeforpstwpr
3136
- {
3137
- width: 100%;
3138
- float: left;
3139
- line-height: 18px;
3140
- margin: 5px 0;
3141
- }
3142
- .sfsiaftrpstwpr
3143
- {
3144
- width: 100%;
3145
- float: left;
3146
- line-height: 18px;
3147
- margin: 5px 0;
3148
- }
3149
- .sfsibeforpstwpr .sfsi_plus_Sicons span
3150
- {
3151
- font-size: 20px;
3152
- }
3153
- .sfsiaftrpstwpr .sfsi_plus_Sicons span
3154
- {
3155
- font-size: 20px;
3156
- }
3157
- .sfsibeforpstwpr .sfsi_plus_Sicons
3158
- {
3159
-
3160
- }
3161
- .sfsiaftrpstwpr .sfsi_plus_Sicons
3162
- {
3163
-
3164
- }
3165
- .sfsibeforpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr
3166
- {
3167
- width: auto;
3168
- float: left;
3169
- }
3170
- .sfsiaftrpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr
3171
- {
3172
- width: auto;
3173
- float: left;
3174
- }
3175
- .sfsibeforpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr .sfsi_plus_wicons
3176
- {
3177
- float: left;
3178
- }
3179
- .sfsiaftrpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr .sfsi_plus_wicons
3180
- {
3181
- float: left;
3182
- }
3183
- .sfsi_flicnsoptn3
3184
- {
3185
- color: #69737c;
3186
- float: left;
3187
- font-size: 20px;
3188
- margin: 62px 5px 0 20px;
3189
- font-family: 'helveticaneue-light';
3190
-
3191
- width: 120px;
3192
- }
3193
-
3194
- .sfsi_ckckslctnlbl
3195
- {
3196
- font-weight: bold;
3197
- }
3198
- .sfsibeforpstwpr iframe{max-width: none; vertical-align: middle;}
3199
- .sfsiaftrpstwpr iframe{max-width: none; vertical-align: middle;}
3200
- .sfwp_fivestar_ul li { display: block; padding-right: 20px; }
3201
- .fb_iframe_widget iframe
3202
- {
3203
- max-width: none;
3204
- }
3205
- .sfsi_mainContainer p.bldtxtmsg{float: left; font-size: 15px; /*font-weight: bold;*/ margin-top: 12px; width: 100%;}
3206
- .sfsi_mainContainer p.translatelilne{float: left; font-size: 15px;font-weight: bold;color: #414951; margin-top: 12px; width: 100%;}
3207
- .sfsiplus_icn_listing8 li > div{width: auto; float: left;}
3208
- #accordion .tab8 .sfsiplus_icn_listing8 li .sfsiplus_right_info p.cstmdisextrpdng
3209
- {
3210
- padding-bottom: 30px;
3211
- float: left;
3212
- }
3213
- #accordion .tab8 .sfsiplus_icn_listing8 li .sfsiplus_right_info p.cstmdisextrpdng
3214
- {
3215
- background: medium none;
3216
- }
3217
- #accordion .tab8 .sfsiplus_icn_listing8 li .sfsiplus_right_info p.cstmdisextrpdng code
3218
- {
3219
- background: none repeat scroll 0 0 transparent;
3220
- padding-left: 0px;
3221
- padding-right: 0px;
3222
- }
3223
- .options.sfsipluspstvwpr {
3224
- margin-left: 17% !important;
3225
- margin-left: 0% !important;
3226
- }
3227
- .tab8 .row.sfsiplus_PostsSettings_section .options.sfsipluspstvwpr .first.chcklbl
3228
- {
3229
- width: 180px !important;
3230
- }
3231
- .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr {
3232
- overflow: visible;
3233
- }
3234
- /*.sfsi_plus_twt_tool_bdr .sfsi_plus_inside .icon1{margin: 2px 35px 2px !important;clear:both;}*/
3235
- .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .cstmicon1 a img{margin: 2px 12px 2px !important;clear:both;text-align:center;float:none;}
3236
- .cstmicon1{text-align:center;}
3237
- .sfsi_plus_Sicons img, .sfsiplusid_facebook img, .sfsiplusid_twitter img { height: 20px;}
3238
-
3239
- .sfsi_plus_wicons a.sficn, .sfsi_plus_wicons .sfsi_plus_inside a, .sfsi_plus_Sicons div a
3240
- {
3241
- box-shadow: none;
3242
- border: none;
3243
- }
3244
-
3245
- .sfsi_plus_Sicons .sf_pinit
3246
- {
3247
- margin-right: 4px;
3248
- }
3249
- .sfsi_plus_Sicons .sf_pinit > span
3250
- {
3251
- height: 22px !important;
3252
- vertical-align: middle;
3253
- }
3254
- .sfsi_plus_Sicons .sf_pinit > span
3255
- {
3256
- height: 20px !important;
3257
- vertical-align: middle;
3258
- }
3259
-
3260
- /*.sfsi_plus_Sicons .sf_pinit > span > span
3261
- {
3262
- display: inline-block;
3263
- width: 47px !important;
3264
- position: relative !important;
3265
- margin-left: 40px;
3266
- vertical-align: top;
3267
- right: 0 !important;
3268
- }*/
3269
- .sfsibeforpstwpr .sfsi_plus_Sicons .sf_pinit span{font-size:11px !important;}
3270
- .sfsiaftrpstwpr .sfsi_plus_Sicons .sf_pinit span{font-size:11px !important;}
3271
- .sfsibeforpstwpr .sfsi_plus_Sicons .sfsi_plus_inside .icon2 span{font-size:11px !important;}
3272
- .sfsiaftrpstwpr .sfsi_plus_Sicons .sfsi_plus_inside .icon2 span{font-size:11px !important;}
3273
- .sfsi_plus_wicons a {box-shadow: none !important;}
3274
- .sfsi_plus_inside .fb_iframe_widget { -webkit-appearance:none !important; }
3275
-
3276
- .sfsi_plus_inside img {
3277
- margin-bottom: 0;
3278
- vertical-align: bottom!important;
3279
- }
3280
- .sfsi_plus_Sicons .sf_pinit{
3281
- margin:0 0 0 10px;
3282
- }
3283
- .wp-block-ultimate-social-media-plus-sfsi-plus-share-block .sfsi_plus_block_text_before_icon{
3284
- display:inline-block;
3285
- vertical-align:top;
3286
- }
3287
- .wp-block-ultimate-social-media-plus-sfsi-plus-share-block .sfsi_plus_block{
3288
- display:inline-block
3289
- }
3290
-
3291
- /* MZ CODE START */
3292
- .sfsi_plus_vk_tool_bdr {
3293
- width: 68px;
3294
- height: auto
3295
- }
3296
- .sfsi_plus_vk_tool_bdr .sfsi_plus_inside {
3297
- text-align: center;
3298
- width: 100%;
3299
- float: left;
3300
- overflow: hidden
3301
- }
3302
- .sfsi_plus_vk_tool_bdr .sfsi_plus_inside .icon1 {
3303
- margin: 2px 0 2px 0;
3304
- height: 28px;
3305
- display: inline-block;
3306
- float: none
3307
- }
3308
- .sfsi_plus_vk_tool_bdr .sfsi_plus_inside .icon2 {
3309
- margin: 5px auto;
3310
- min-height: 25px !important;
3311
- display: block;
3312
- overflow: hidden;
3313
- }
3314
- .sfsi_plus_vk_tool_bdr .sfsi_plus_inside .icon3 {
3315
- margin: 2px 0 2px 0;
3316
- height: 20px;
3317
- display: inline-block;
3318
- float: none
3319
- }
3320
- .sfsi_plus_vk_tool_bdr .sfsi_plus_inside .icon4 {
3321
- display: inline-block!important;
3322
- float: none!important;
3323
- vertical-align: middle!important;
3324
- width: 100%!important
3325
- }
3326
-
3327
- .sfsiplusid_telegram .sfsi_plus_inside .icon2 img,.sfsiplusid_vk .sfsi_plus_inside .icon2 img,
3328
- .sfsiplusid_weibo .sfsi_plus_inside .icon2 img,.sfsiplusid_xing .sfsi_plus_inside .icon2 img {
3329
- width: 80px;height: 24px;
3330
- }
3331
-
3332
- .sfsiplusid_vk .sfsi_plus_inside .icon1 img,.sfsiplusid_weibo .sfsi_plus_inside .icon1 img,
3333
- .sfsiplusid_xing .sfsi_plus_inside .icon1 img{width: 80px;}
3334
- /* MZ CODE END */
3335
- .sfsiplusid_ok .sfsi_plus_inside, .sfsiplusid_telegram .sfsi_plus_inside{
3336
- text-align:center;
3337
- }
3338
- .sfsiplusid_ok .sfsi_plus_inside .icon3 img ,.sfsiplusid_telegram .sfsi_plus_inside .icon1 img {
3339
- width: 107px;
3340
- height: 37px;
3341
- }
3342
- .sfsiplusid_ok .sfsi_plus_inside .icon2 img {
3343
- width: 65px;
3344
- height: 30px;
3345
- margin-top: 5px;
3346
- }
3347
- .sfsiplusid_ok .sfsi_plus_inside .icon1 img {
3348
- width: 103px;
3349
- height: 25px;
3350
- }
3351
- .sfsiplusid_vk .sfsi_plus_inside .icon1 img, .sfsiplusid_weibo .sfsi_plus_inside .icon1 img, .sfsiplusid_xing .sfsi_plus_inside .icon1 img {
3352
- width: 80px;
3353
- }
3354
- .sfsiplusid_wechat .sfsi_plus_inside .icon1 {
3355
- margin:10px;
3356
- }
3357
- .sfsiplusid_round_icon_wechat{
3358
- border-radius:20px;
3359
- }
3360
- .sfsi_plus_overlay{
3361
- background: rgba(0,0,0,.8);
3362
- width: 100%;
3363
- height: 100%;
3364
- top: 0;
3365
- left: 0;
3366
- z-index: 99999999;
3367
- position: fixed;
3368
- }
3369
- .sfsi_plus_wechat_scan .sfsi_plus_inner_display{
3370
- text-align: center;
3371
- vertical-align: middle;
3372
- margin-top: 50px;
3373
- }
3374
- .sfsi_plus_overlay a.close_btn{
3375
- position: absolute;
3376
- top: 20px;
3377
- right: 20px;
3378
- background: #fff;
3379
- border-radius: 15px;
3380
- width: 30px;
3381
- height: 30px;
3382
- line-height: 30px;
3383
- text-align:center;
3384
- }
3385
- .hide{display:none;}.show{display:block;}
3386
-
3387
- .sfsiplusid_facebook .icon3 span{
3388
- width:62px!important;
3389
- height:20px!important;
3390
- }
3391
- .sfsiplusid_facebook .icon3 iframe{
3392
- width:unset!important;
3393
- height:unset!important;
3394
- }
3395
- .sfsiplusid_twitter .icon2 iframe{
3396
- width:62px!important;
3397
- height:20px!important;
3398
- }
3399
- a.pop-up .radio{
3400
- opacity: 0.5;
3401
- background-position: 0px 0px !important;
3402
- }
3403
- .tab8 .sfsi_plus_responsive_icon_option_li .options .first.first.first {
3404
- width: 25%!important;
3405
- }
3406
- .sfsi_plus_responsive_icon_gradient{
3407
- background-image: -webkit-linear-gradient(bottom,rgba(0, 0, 0, 0.17) 0%,rgba(255, 255, 255, 0.17) 100%);
3408
- background-image: -moz-linear-gradient(bottom,rgba(0, 0, 0, 0.17) 0%,rgba(255, 255, 255, 0.17) 100%);
3409
- background-image: linear-gradient(bottom,rgba(0,0,0,.17) 0%,rgba(255,255,255,.17) 100%);
3410
- }
3411
- .sfsi_plus_responsive_icons a{
3412
- text-decoration: none!important;
3413
- box-shadow: none!important;
3414
- }
3415
- .sfsi_plus_responsive_icons .sfsi_plus_responsive_icon_facebook_container{ background-color:#336699;}
3416
- .sfsi_plus_responsive_icons .sfsi_plus_responsive_icon_follow_container{ background-color:#00B04E;}
3417
- .sfsi_plus_responsive_icons .sfsi_plus_responsive_icon_twitter_container{ background-color:#55ACEE;}
3418
- .sfsi_plus_small_button {
3419
- line-height: 0px;
3420
- height: unset;
3421
- padding: 6px !important;
3422
- }
3423
- .sfsi_plus_small_button span {
3424
- margin-left: 10px;
3425
- font-size: 16px;
3426
- padding: 0px;
3427
- line-height: 16px;
3428
- vertical-align: -webkit-baseline-middle !important;
3429
- margin-left: 10px;
3430
- }
3431
- .sfsi_plus_small_button img {
3432
- max-height: 16px !important;
3433
- padding: 0px;
3434
- line-height: 0px;
3435
- vertical-align: -webkit-baseline-middle !important;
3436
- }
3437
- .sfsi_plus_medium_button span {
3438
- margin-left: 10px;
3439
- font-size: 18px;
3440
- padding: 0px;
3441
- line-height: 16px;
3442
- vertical-align: -webkit-baseline-middle !important;
3443
- margin-left: 10px;
3444
- }
3445
- .sfsi_plus_medium_button img {
3446
- max-height: 16px !important;
3447
- padding: 0px;
3448
- line-height: 0px;
3449
- vertical-align: -webkit-baseline-middle !important;
3450
- }
3451
- .sfsi_plus_medium_button {
3452
- line-height: 0px;
3453
- height: unset;
3454
- padding: 10px !important;
3455
- }
3456
-
3457
- .sfsi_plus_medium_button span {
3458
- margin-left: 10px;
3459
- font-size: 18px;
3460
- padding: 0px;
3461
- line-height: 16px;
3462
- vertical-align: -webkit-baseline-middle !important;
3463
- margin-left: 10px;
3464
- }
3465
- .sfsi_plus_medium_button img {
3466
- max-height: 16px !important;
3467
- padding: 0px;
3468
- line-height: 0px;
3469
- vertical-align: -webkit-baseline-middle !important;
3470
- }
3471
- .sfsi_plus_medium_button {
3472
- line-height: 0px;
3473
- height: unset;
3474
- padding: 10px !important;
3475
- }
3476
- .sfsi_plus_large_button span {
3477
- font-size: 20px;
3478
- padding: 0px;
3479
- line-height: 16px;
3480
- vertical-align: -webkit-baseline-middle !important;
3481
- display: inline;
3482
- margin-left: 10px;
3483
- }
3484
- .sfsi_plus_large_button img {
3485
- max-height: 16px !important;
3486
- padding: 0px;
3487
- line-height: 0px;
3488
- vertical-align: -webkit-baseline-middle !important;
3489
- display: inline;
3490
- }
3491
- .sfsi_plus_large_button {
3492
- line-height: 0px;
3493
- height: unset;
3494
- padding: 13px !important;
3495
- }
3496
- .sfsi_plus_responsive_icons .sfsi_plus_icons_container span {
3497
- font-family: sans-serif;
3498
- font-size: 15px;
3499
- }
3500
- .sfsi_plus_icons_container_box_fully_container {
3501
- flex-wrap: wrap;
3502
- }
3503
- .sfsi_plus_icons_container_box_fully_container a {
3504
- flex-basis: auto !important;
3505
- flex-grow: 1;
3506
- flex-shrink: 1;
3507
- margin-bottom: 5px;
3508
- }
3509
- .sfsi_plus_icons_container>a {
3510
- float: left!important;
3511
- text-decoration: none!important;
3512
- -webkit-box-shadow: unset!important;
3513
- box-shadow: unset!important;
3514
- -webkit-transition: unset!important;
3515
- transition: unset!important;
3516
- margin-bottom:5px!important;
3517
- }
3518
- .sfsi_plus_small_button {
3519
- line-height: 0px;
3520
- height: unset;
3521
- padding: 6px !important;
3522
- }
3523
- .sfsi_plus_small_button span {
3524
- margin-left: 10px;
3525
- font-size: 16px;
3526
- padding: 0px;
3527
- line-height: 16px;
3528
- vertical-align: -webkit-baseline-middle !important;
3529
- margin-left: 10px;
3530
- }
3531
- .sfsi_plus_small_button img {
3532
- max-height: 16px !important;
3533
- padding: 0px;
3534
- line-height: 0px;
3535
- vertical-align: -webkit-baseline-middle !important;
3536
- }
3537
- .sfsi_plus_medium_button span {
3538
- margin-left: 10px;
3539
- font-size: 18px;
3540
- padding: 0px;
3541
- line-height: 16px;
3542
- vertical-align: -webkit-baseline-middle !important;
3543
- margin-left: 10px;
3544
- }
3545
- .sfsi_plus_medium_button img {
3546
- max-height: 16px !important;
3547
- padding: 0px;
3548
- line-height: 0px;
3549
- vertical-align: -webkit-baseline-middle !important;
3550
- }
3551
- .sfsi_plus_medium_button {
3552
- line-height: 0px;
3553
- height: unset;
3554
- padding: 10px !important;
3555
- }
3556
-
3557
- .sfsi_plus_medium_button span {
3558
- margin-left: 10px;
3559
- font-size: 18px;
3560
- padding: 0px;
3561
- line-height: 16px;
3562
- vertical-align: -webkit-baseline-middle !important;
3563
- margin-left: 10px;
3564
- }
3565
- .sfsi_plus_medium_button img {
3566
- max-height: 16px !important;
3567
- padding: 0px;
3568
- line-height: 0px;
3569
- vertical-align: -webkit-baseline-middle !important;
3570
- }
3571
- .sfsi_plus_medium_button {
3572
- line-height: 0px;
3573
- height: unset;
3574
- padding: 10px !important;
3575
- }
3576
- .sfsi_plus_large_button span {
3577
- font-size: 20px;
3578
- padding: 0px;
3579
- line-height: 16px;
3580
- vertical-align: -webkit-baseline-middle !important;
3581
- display: inline;
3582
- margin-left: 10px;
3583
- }
3584
- .sfsi_plus_large_button img {
3585
- max-height: 16px !important;
3586
- padding: 0px;
3587
- line-height: 0px;
3588
- vertical-align: -webkit-baseline-middle !important;
3589
- display: inline;
3590
- }
3591
- .sfsi_plus_large_button {
3592
- line-height: 0px;
3593
- height: unset;
3594
- padding: 13px !important;
3595
- }
3596
- .sfsi_plus_responsive_icons_count{
3597
- padding: 5px 10px;
3598
- float: left !important;
3599
- display: inline-block;
3600
- margin-right: 0px;
3601
- margin-top: 2px;
3602
- }
3603
-
3604
- .sfsi_plus_responsive_icons_count h3{
3605
- font-family: 'sans-serif' !important;
3606
- font-weight: 900;
3607
- font-size: 32px !important;
3608
- line-height: 0px !important;
3609
- padding: 0px;
3610
- margin: 0px;
3611
- }
3612
-
3613
- .sfsi_plus_responsive_icons_count h6{
3614
- font-family: 'sans-serif' !important;
3615
- font-weight: 900;
3616
- padding: 0px;
3617
- margin: 0px;
3618
- }
3619
- .sfsi_plus_responsive_icons a, .sfsi_plus_responsive_icons h3, .sfsi_plus_responsive_icons h6 {
3620
- text-decoration: none!important;
3621
- border: 0!important;
3622
- }
3623
- .sfsi_plus_responsive_with_counter_icons{
3624
- width: calc(100% - 100px)!important;
3625
- }
3626
- .sfsiresponsive_icon_preview {
3627
- padding: 0px 0 20px 0;
3628
- min-width: 100%;
3629
- }
3630
- .sfsi_plus_responsive_icons_count.sfsi_plus_fixed_count_container.sfsi_plus_large_button {
3631
- padding: 12px 13px 9px 13px !important;
3632
- }
3633
- .sfsi_plus_responsive_icons_count.sfsi_plus_fixed_count_container.sfsi_plus_medium_button {
3634
- padding: 9px 10px 7px 10px !important;
3635
- }
3636
- .sfsi_plus_responsive_icons_count.sfsi_plus_small_button {
3637
- padding: 7px 6px !important;
3638
- }
3639
- .sfsi_plus_responsive_icons_count.sfsi_plus_small_button {
3640
- padding: 7px 6px !important;
3641
- margin-top: 2px;
3642
- }
3643
- .sfsi_plus_responsive_icons_count.sfsi_plus_small_button h6 {
3644
- display: inline-block;
3645
- font-size: 12px !important;
3646
- vertical-align: middle;
3647
- }
3648
- .sfsi_plus_responsive_icons_count.sfsi_plus_responsive_count_container.sfsi_plus_medium_button {
3649
- padding: 9px 10px 7px 10px !important;
3650
- }
3651
- .sfsi_plus_responsive_icons_count.sfsi_plus_medium_button h3 {
3652
- font-size: 21px !important;
3653
- vertical-align: top;
3654
- line-height: 8px !important;
3655
- margin: 0px 0px 12px 0px !important;
3656
- font-weight: 900;
3657
- padding: 0px;
3658
- }
3659
- .sfsi_plus_esponsive_icons_count.sfsi_plus_responsive_count_container.sfsi_plus_large_button h3 {
3660
- margin: 0px 0px 15px 0px !important;
3661
- }
3662
- .sfsi_plus_responsive_icons_count.sfsi_plus_large_button h3 {
3663
- font-size: 26px !important;
3664
- vertical-align: top;
3665
- line-height: 6px !important;
3666
- }
3667
-
3668
- .sfsi_plus_responsive_icons_count h3 {
3669
- font-family: 'sans-serif' !important;
3670
- font-weight: 900;
3671
- padding: 0px;
3672
- }
3673
-
3674
- .sfsi_plus_responsive_icons_count.sfsi_plus_small_button h3 {
3675
- font-size: 20px !important;
3676
- display: inline-block;
3677
- vertical-align: middle;
3678
- }
3679
- .sfsi_plus_responsive_icons_count.sfsi_plus_small_button h3 {
3680
- margin: 0px !important;
3681
- }
3682
- .sfsi_plus_responsive_icons_count h3 {
3683
- font-family: 'sans-serif' !important;
3684
- font-weight: 900;
3685
- line-height: 0px !important;
3686
- padding: 0px;
3687
- margin: 0px;
3688
- }
3689
- .sfsi_plus_responsive_icons a, .sfsi_plus_responsive_icons h3, .sfsi_plus_responsive_icons h6 {
3690
- text-decoration: none!important;
3691
- border: 0!important;
3692
- }
3693
- .sfsi_plus_responsive_icons_count.sfsi_plus_small_button {
3694
- padding: 7px 6px !important;
3695
- margin-top: 2px;
3696
- }
3697
- .sfsi_plus_responsive_icons_count.sfsi_plus_large_button h3 {
3698
- margin-top:0!important;
3699
- margin-bottom:8px!important;
3700
- }
3701
- .sfsi_plus_responsive_icons_count.sfsi_plus_large_button h6 {
3702
- font-size:13px!important;
3703
- }
3704
-
3705
- .sfsi_plus_responsive_icons_count {
3706
- vertical-align: top;
3707
- }
3708
- .sfsi_plus_responsive_icons_count {
3709
- float: left;
3710
- }
3711
- .sfsi_plus_small_button {
3712
- line-height: 0px;
3713
- height: unset;
3714
- }
3715
- .sfsi_plus_responsive_icons a, .sfsi_plus_responsive_icons h3, .sfsi_plus_responsive_icons h6 {
3716
- text-decoration: none!important;
3717
- border: 0!important;
3718
- }
3719
- .sfsi_plus_responsive_icons_count.sfsi_plus_small_button h3 {
3720
- font-size: 20px !important;
3721
- display: inline-block;
3722
- vertical-align: middle;
3723
- margin: 0px !important;
3724
- }
3725
-
3726
- .sfsi_plus_responsive_icons a, .sfsi_plus_responsive_icons h3, .sfsi_plus_responsive_icons h6 {
3727
- text-decoration: none!important;
3728
- font-family: helveticaregular!important;
3729
- border: 0!important;
3730
- }
3731
- .sfsi_plus_responsive_icons_count h3 {
3732
- line-height: 0px !important;
3733
- padding: 0px;
3734
- }
3735
- .sfsi_plus_responsive_icons_count.sfsi_plus_small_button h6 {
3736
- display: inline-block;
3737
- font-size: 12px !important;
3738
- /*vertical-align: middle;*/
3739
- margin: 0px !important;
3740
- line-height: initial !important;
3741
- padding: 0;
3742
- margin: 0;
3743
- }
3744
- .sfsi_plus_responsive_icons_count h6{
3745
- margin:0!important;
3746
- }
3747
- .sfsi_plus_responsive_icons_count h6 {
3748
- padding: 0px;
3749
- }
3750
- .sfsi_plus_responsive_icons a, .sfsi_plus_responsive_icons h3, .sfsi_plus_responsive_icons h6{
3751
- text-decoration: none!important;
3752
- font-family: helveticaregular!important;
3753
- border: 0!important;
3754
- }
3755
- .sfsi_plus_responsive_icons_count.sfsi_plus_medium_button h6{
3756
- font-size: 11px !important;
3757
- line-height: 0px !important;
3758
- margin: 0px 0px 0px 0px !important;
3759
- }
3760
-
3761
-
3762
-
3763
- .sfsi_plus.sfsi_plus_widget_main_container .sfsi_plus_widget_sub_container{
3764
- float: none;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3765
  }
1
+ @charset "utf-8";
2
+ @font-face {
3
+ font-family: helveticabold;
4
+ src: url(fonts/helvetica_bold_0-webfont.eot);
5
+ 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');
6
+ font-weight: 400;
7
+ font-style: normal;
8
+ }
9
+ @font-face {
10
+ font-family: helveticaregular;
11
+ src: url(fonts/helvetica_0-webfont.eot);
12
+ 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');
13
+ font-weight: 400;
14
+ font-style: normal;
15
+ }
16
+
17
+ @font-face {
18
+ font-family: helveticaneue-light;
19
+ src: url(fonts/helveticaneue-light.eot);
20
+ src: url(fonts/helveticaneue-light.eot?#iefix) format('embedded-opentype'),
21
+ url(fonts/helveticaneue-light.woff) format('woff'),
22
+ url(fonts/helveticaneue-light.ttf) format('truetype'),
23
+ url(fonts/helveticaneue-light.svg#helveticaneue-light) format('svg');
24
+ font-weight: 400;
25
+ font-style: normal;
26
+ }
27
+ body {
28
+ margin: 0;
29
+ padding: 0;
30
+ }
31
+ .clear {
32
+ clear: both;
33
+ }
34
+ .space {
35
+ clear: both;
36
+ padding: 30px 0 0;
37
+ width: 100%;
38
+ float: left;
39
+ }
40
+ .sfsi_mainContainer {
41
+ font-family: helveticaregular;
42
+ }
43
+ .sfsi_mainContainer h1, .sfsi_mainContainer h2, .sfsi_mainContainer h3, .sfsi_mainContainer h4, .sfsi_mainContainer h5, .sfsi_mainContainer h6, .sfsi_mainContainer li, .sfsi_mainContainer p, .sfsi_mainContainer ul {
44
+ margin: 0;
45
+ padding: 0;
46
+ font-weight: 400;
47
+ }
48
+ .sfsi_mainContainer img {
49
+ border: 0;
50
+ }
51
+ .main_contant p, .ui-accordion .ui-accordion-header {
52
+ font-family: 'helveticaneue-light';
53
+ }
54
+ .sfsi_mainContainer input, .sfsi_mainContainer select {
55
+ outline: 0;
56
+ }
57
+ .wapper {
58
+ padding: 48px 106px 40px 20px;
59
+ display: block;
60
+ background: #f1f1f1;
61
+ }
62
+ .main_contant {
63
+ margin: 0;
64
+ padding: 0;
65
+ }
66
+ .main_contant h1 {
67
+ padding: 0;
68
+ color: #1a1d20;
69
+ font-family: helveticabold;
70
+ font-size: 28px;
71
+ }
72
+ .main_contant p {
73
+ padding: 0;
74
+ color: #414951;
75
+ font-size: 17px;
76
+ line-height: 26px;
77
+ }
78
+ .main_contant p span {
79
+ text-decoration: underline;
80
+ font-family: helveticabold;
81
+ }
82
+ .like_txt {
83
+ margin: 30px 0 0;
84
+ padding: 0;
85
+ color: #12a252;
86
+ font-family: helveticaregular;
87
+ font-size: 20px;
88
+ line-height: 20px;
89
+ text-align: center;
90
+ }
91
+ .like_txt a {
92
+ color: #12a252;
93
+ }
94
+ #accordion p, #accordion1 p {
95
+ color: #5a6570;
96
+ text-align: left;
97
+ font-family: 'helveticaneue-light';
98
+ font-size: 17px;
99
+ line-height: 26px;
100
+ padding-top: 19px;
101
+ }
102
+ .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr .cstmdisplaysharingtxt { float: left; }
103
+ #accordion p:first-child, #accordion1 p:first-child {
104
+ padding-top: 0;
105
+ }
106
+ #accordion h4, #accordion1 h4 {
107
+ margin: 0;
108
+ padding: 30px 0 0;
109
+ color: #414951;
110
+ font-size: 20px;
111
+ line-height: 22px;
112
+ font-family: helveticaregular;
113
+ }
114
+ #accordion h4:first-child, #accordion1 h4:first-child {
115
+ padding-top: 0;
116
+ }
117
+
118
+ #accordion .tab8 h4:first-child, #accordion1 h4:first-child { margin-left: 0 !important}
119
+
120
+ .tab1, .tab2, .tab3, .tab4, .tab5, .tab6, .tab7 {
121
+ color: #5a6570;
122
+ text-align: left;
123
+ font-family: helveticaregular;
124
+ font-size: 18px;
125
+ line-height: 26px;
126
+ }
127
+ .tab4 ul.like_icon {
128
+ margin: 0;
129
+ padding: 20px 0 0;
130
+ list-style: none;
131
+ text-align: center;
132
+ }
133
+ .tab4 ul.like_icon li {
134
+ margin: 0;
135
+ padding: 0;
136
+ list-style: none;
137
+ display: inline-block;
138
+ }
139
+ .tab4 ul.like_icon li span {
140
+ margin: 0;
141
+ width: 54px;
142
+ display: block;
143
+ background: url(../images/count_bg.png) no-repeat;
144
+ height: 24px;
145
+ overflow: hidden;
146
+ padding: 10px 2px 2px;
147
+ font-size: 17px;
148
+ text-align: center;
149
+ line-height: 24px;
150
+ color: #5a6570;
151
+ }
152
+ .tab4 ul.like_icon li a {
153
+ color: #5a6570;
154
+ text-decoration: none;
155
+ }
156
+ .tab4 ul.enough_waffling {
157
+ margin: 0;
158
+ padding: 25px 0 27px;
159
+ list-style: none;
160
+ text-align: center;
161
+ }
162
+ .tab4 ul.enough_waffling li {
163
+ margin: 0 22px;
164
+ padding: 0;
165
+ list-style: none;
166
+ display: inline-block;
167
+ }
168
+ .tab4 ul.enough_waffling li span {
169
+ float: left;
170
+ }
171
+ .tab4 ul.enough_waffling li label {
172
+ margin: 0 0 0 20px;
173
+ float: left;
174
+ font-family: helveticaregular;
175
+ font-size: 18px;
176
+ font-weight: 400;
177
+ text-align: center;
178
+ line-height: 38px;
179
+ color: #5a6570;
180
+ }
181
+ .sfsi_mainContainer .checkbox {
182
+ width: 31px;
183
+ height: 31px;
184
+ background: url(../images/check_bg.jpg) no-repeat;
185
+ display: inherit;
186
+ }
187
+ .tab8 .social_icon_like1 li span.checkbox {
188
+ width: 31px;
189
+ height: 31px;
190
+ background: url(../images/check_bg.jpg) no-repeat;
191
+ display: inherit;
192
+ }
193
+ .tab8 .social_icon_like1 li a
194
+ {
195
+ float: left;
196
+ }
197
+ .sfsi_mainContainer .radio {
198
+ width: 40px;
199
+ height: 40px;
200
+ background: url(../images/radio_bg.png) no-repeat;
201
+ display: inherit;
202
+ }
203
+ .sfsi_mainContainer .select {
204
+ width: 127px;
205
+ height: 47px;
206
+ font-size: 17px;
207
+ background: url(../images/select_bg.jpg) no-repeat;
208
+ display: block;
209
+ padding-left: 16px;
210
+ line-height: 49px;
211
+ }
212
+ .sfsi_mainContainer .line {
213
+ background: #eaebee;
214
+ height: 1px;
215
+ font-size: 0;
216
+ margin: 15px 0 0;
217
+ clear: both;
218
+ width: 100%;
219
+ float: left;
220
+ }
221
+ .sfsiplus_specify_counts {
222
+ display: block;
223
+ margin-top: 15px;
224
+ padding-top: 15px;
225
+ clear: both;
226
+ width: 100%;
227
+ float: left;
228
+ border-top: 1px solid #eaebee;
229
+ }
230
+ .sfsiplus_specify_counts .radio_section {
231
+ width: 30px;
232
+ float: left;
233
+ margin: 12px 10px 0 0;
234
+ }
235
+ .sfsiplus_specify_counts .social_icon_like {
236
+ width: 54px;
237
+ float: left;
238
+ margin: 0 15px 0 0;
239
+ }
240
+ .sfsiplus_specify_counts .social_icon_like ul {
241
+ margin: 0;
242
+ padding: 0 !important;
243
+ list-style: none;
244
+ text-align: center;
245
+ }
246
+ .sfsiplus_specify_counts .social_icon_like li {
247
+ margin: 0;
248
+ padding: 0;
249
+ list-style: none;
250
+ display: inline-block;
251
+ }
252
+ .sfsiplus_specify_counts .social_icon_like li span {
253
+ margin: 0;
254
+ width: 54px;
255
+ display: block;
256
+ background: url(../images/count_bg.jpg) no-repeat;
257
+ height: 24px;
258
+ overflow: hidden;
259
+ padding: 10px 2px 2px;
260
+ font-family: helveticaregular;
261
+ font-size: 16px;
262
+ text-align: center;
263
+ line-height: 24px;
264
+ color: #5a6570;
265
+ }
266
+ .sfsiplus_specify_counts .social_icon_like li a {
267
+ color: #5a6570;
268
+ text-decoration: none;
269
+ }
270
+ .sfsiplus_specify_counts .social_icon_like img{
271
+ width: 54px;
272
+ }
273
+ .sfsiplus_specify_counts .listing {
274
+ width: 88%;
275
+ margin-top: -5px;
276
+ display: inherit;
277
+ float: left;
278
+ }
279
+ .sfsiplus_specify_counts .listing ul {
280
+ margin: 0;
281
+ padding: 0;
282
+ list-style: none;
283
+ text-align: left;
284
+ }
285
+ .sfsiplus_specify_counts .listing li {
286
+ margin: 15px 0 0;
287
+ padding: 0;
288
+ list-style: none;
289
+ clear: both;
290
+ line-height: 39px;
291
+ font-size: 17px;
292
+ }
293
+ .sfsiplus_specify_counts .listing li span {
294
+ float: left;
295
+ margin-right: 20px;
296
+ }
297
+ .sfsiplus_specify_counts .listing li .input {
298
+ background: #e5e5e5;
299
+ box-shadow: 2px 2px 3px #dcdcdc inset;
300
+ border: 0;
301
+ padding: 10px;
302
+ margin-left: 25px;
303
+ }
304
+ .sfsiplus_specify_counts .listing li .input_facebook {
305
+ width: 288px;
306
+ background: #e5e5e5;
307
+ box-shadow: 2px 2px 3px #dcdcdc inset;
308
+ border: 0;
309
+ padding: 10px;
310
+ margin-left: 16px;
311
+ }
312
+ .save_button {
313
+ width: 450px;
314
+ padding-top: 30px !important;
315
+ clear: both;
316
+ margin: auto;
317
+ }
318
+ .save_button a {
319
+ background: #12a252;
320
+ text-align: center;
321
+ font-size: 23px;
322
+ color: #FFF!important;
323
+ display: block;
324
+ padding: 11px 0;
325
+ text-decoration: none;
326
+ }
327
+ .save_button a:hover { background:#079345 }
328
+
329
+ .tab5 ul.plus_share_icon_order {
330
+ margin: 0;
331
+ padding: 0;
332
+ list-style: none;
333
+ text-align: left;
334
+ }
335
+ .tab5 ul.plus_share_icon_order li {
336
+ margin: 22px 6px 0 0;
337
+ padding: 0;
338
+ list-style: none;
339
+ float: left;
340
+ line-height: 37px;
341
+ }
342
+ .tab5 ul.plus_share_icon_order li:last-child {
343
+ margin: 22px 0 0 3px;
344
+ }
345
+ .tab5 .row {
346
+ border-top: 1px solid #eaebee;
347
+ margin-top: 25px;
348
+ padding-top: 15px;
349
+ clear: both;
350
+ display: block;
351
+ width: 100%;
352
+ float: left;
353
+ font-family: helveticaregular;
354
+ line-height: 42px;
355
+ }
356
+ .tab5 .icons_size {
357
+ position: relative;
358
+ }
359
+ .tab5 .icons_size span {
360
+ margin-right: 18px;
361
+ display: block;
362
+ float: left;
363
+ font-size: 18px;
364
+ font-weight: 400;
365
+ line-height: 46px;
366
+ }
367
+ .tab5 .icons_size span.last {
368
+ margin-left: 55px;
369
+ }
370
+ .tab5 .icons_size input {
371
+ width: 73px;
372
+ background: #e5e5e5;
373
+ box-shadow: 2px 2px 3px #dcdcdc inset;
374
+ border: 0;
375
+ padding: 13px 13px 12px;
376
+ margin-right: 18px;
377
+ float: left;
378
+ display: block;
379
+ }
380
+ .tab5 .icons_size select.styled {
381
+ position: absolute;
382
+ left: 0;
383
+ width: 135px;
384
+ height: 46px;
385
+ line-height: 46px;
386
+ }
387
+ .tab5 .icons_size .field {
388
+ position: relative;
389
+ float: left;
390
+ display: block;
391
+ margin-right: 20px;
392
+ }
393
+ .tab5 .icons_size ins {
394
+ margin-right: 25px;
395
+ float: left;
396
+ font-size: 17px;
397
+ font-weight: 400;
398
+ text-decoration: none;
399
+ }
400
+ .tab5 .icons_size ins.leave_empty {
401
+ line-height: 23px;
402
+ }
403
+ .tab5 .icons_size {
404
+ padding-top: 15px;
405
+ }
406
+ .tab5 ul.enough_waffling {
407
+ margin: -5px 0 0;
408
+ padding: 0;
409
+ list-style: none;
410
+ text-align: center;
411
+ }
412
+ .tab5 .new_wind .sfsiplus_row_onl ul.enough_waffling {
413
+ margin: 20px 0 0 0;
414
+ padding: 0;
415
+ list-style: none;
416
+ height: 38px;
417
+ text-align: left;
418
+ }
419
+ .tab5 ul.enough_waffling li {
420
+ margin: 0 22px;
421
+ padding: 0;
422
+ list-style: none;
423
+ display: inline-block;
424
+ }
425
+ .tab5 ul.enough_waffling li span {
426
+ float: left;
427
+ }
428
+ .tab5 ul.enough_waffling li label {
429
+ margin: 0 0 0 20px;
430
+ float: left;
431
+ font-family: helveticaregular;
432
+ font-size: 18px;
433
+ font-weight: 400;
434
+ text-align: center;
435
+ line-height: 38px;
436
+ color: #5a6570;
437
+ }
438
+ .sticking p {
439
+ float: left;
440
+ font-size: 18px!important;
441
+ }
442
+ .sticking p.list {
443
+ width: 168px;
444
+ }
445
+ .sticking p.link {
446
+ margin: 3px 0 0 12px;
447
+ padding: 0!important;
448
+ float: left;
449
+ }
450
+ .sticking .float {
451
+ margin-left: 188px;
452
+ margin-top: 3px;
453
+ float: left;
454
+ font-size: 17px;
455
+ }
456
+ .sticking ul {
457
+ margin: 0;
458
+ padding: 30px 0 0;
459
+ list-style: none;
460
+ float: left;
461
+ }
462
+ .sticking a {
463
+ color: #a4a9ad;
464
+ text-decoration: none;
465
+ }
466
+ .sticking .field {
467
+ position: relative;
468
+ float: left;
469
+ display: block;
470
+ margin-left: 20px;
471
+ }
472
+ .sticking .field .select {
473
+ width: 206px;
474
+ height: 47px;
475
+ background: url(../images/select_bg1.jpg) no-repeat;
476
+ display: block;
477
+ padding-left: 10px;
478
+ }
479
+ .sticking .field select.styled {
480
+ position: absolute;
481
+ left: 0;
482
+ top: 0;
483
+ width: 211px;
484
+ line-height: 46px;
485
+ height: 46px;
486
+ }
487
+ .mouseover_field {
488
+ width: 455px;
489
+ float: left;
490
+ font-size: 18px;
491
+ margin-top: 10px;
492
+ }
493
+ .mouseover_field label {
494
+ width: 125px;
495
+ float: left;
496
+ }
497
+ .mouseover_field input {
498
+ width: 256px;
499
+ float: left;
500
+ background: #e5e5e5;
501
+ box-shadow: 2px 2px 3px #dcdcdc inset;
502
+ border: 0;
503
+ padding: 10px;
504
+ }
505
+ .tab6 .social_icon_like1 {
506
+ width: 100%;
507
+ float: left;
508
+ margin: 0;
509
+ padding: 35px 0 0;
510
+ text-align: center;
511
+ }
512
+ .tab6 .social_icon_like1 ul {
513
+ margin: 0;
514
+ padding: 0;
515
+ list-style: none;
516
+ text-align: center;
517
+ }
518
+ .tab6 .social_icon_like1 li {
519
+ margin: 0 20px;
520
+ padding: 0;
521
+ width: auto;
522
+ list-style: none;
523
+ display: inline-block;
524
+ }
525
+ .tab6 .social_icon_like1 li span, .tab8 .social_icon_like1 li span {
526
+ margin: 0;
527
+ width: 44px;
528
+ display: block;
529
+ background: url(../images/count_bg1.png) no-repeat;
530
+ height: 22px;
531
+ overflow: hidden;
532
+ padding: 2px 2px 2px 10px;
533
+ font-family: helveticaregular;
534
+ font-size: 15px;
535
+ text-align: center;
536
+ line-height: 20px;
537
+ color: #5a6570;
538
+ float: left;
539
+ }
540
+ .tab6 .social_icon_like1 li img {
541
+ float: left;
542
+ margin-right: 5px;
543
+ display: block;
544
+ }
545
+ .tab6 .social_icon_like1 li a {
546
+ color: #5a6570;
547
+ text-decoration: none;
548
+ display: block;
549
+ }
550
+ .tab6 ul.usually {
551
+ margin: 28px 0 6px 60px;
552
+ padding: 0;
553
+ list-style: none;
554
+ }
555
+ .tab6 ul.usually li {
556
+ margin: 0;
557
+ padding: 0;
558
+ width: auto;
559
+ list-style: none;
560
+ text-align: left;
561
+ font-size: 17px;
562
+ }
563
+ .tab6 ul.enough_waffling {
564
+ margin: 25px 0 0;
565
+ padding: 0;
566
+ list-style: none;
567
+ text-align: center;
568
+ }
569
+ .tab6 ul.enough_waffling li {
570
+ margin: 0 22px;
571
+ padding: 0;
572
+ list-style: none;
573
+ display: inline-block;
574
+ }
575
+ .tab6 ul.enough_waffling li span {
576
+ float: left;
577
+ }
578
+ .tab6 ul.enough_waffling li label {
579
+ margin: 0 0 0 20px;
580
+ float: left;
581
+ font-family: helveticaregular;
582
+ font-size: 18px;
583
+ font-weight: 400;
584
+ text-align: center;
585
+ line-height: 38px;
586
+ color: #5a6570;
587
+ }
588
+ .tab6 .row {
589
+ border-top: 1px solid #eaebee;
590
+ margin-top: 25px;
591
+ padding-top: 15px;
592
+ clear: both;
593
+ display: block;
594
+ width: 100%;
595
+ float: left;
596
+ font-family: helveticaregular;
597
+ line-height: 42px;
598
+ }
599
+ .tab6 .options {
600
+ margin-top: 25px;
601
+ clear: both;
602
+ width: 100%;
603
+ float: left;
604
+ }
605
+ .tab6 .options label {
606
+ width: 345px;
607
+ float: left;
608
+ font-size: 18px;
609
+ font-family: helveticaregular;
610
+ color: #5a6570;
611
+ line-height: 46px;
612
+ }
613
+ .tab6 .options label.first {
614
+ font-family: helveticaregular;
615
+ font-size: 18px;
616
+ }
617
+ .tab6 .options input {
618
+ width: 308px;
619
+ float: left;
620
+ background: #e5e5e5;
621
+ box-shadow: 2px 2px 3px #dcdcdc inset;
622
+ border: 0;
623
+ padding: 10px;
624
+ }
625
+ .tab6 .options .field {
626
+ width: 223px;
627
+ float: left;
628
+ position: relative;
629
+ }
630
+ .tab6 .options .field .select {
631
+ width: 207px;
632
+ background: url(../images/select_bg1.jpg) no-repeat;
633
+ display: block;
634
+ padding-left: 17px;
635
+ font-family: helveticaregular;
636
+ }
637
+ .tab6 .options .field select.styled {
638
+ position: absolute;
639
+ left: 0;
640
+ top: 0;
641
+ width: 213px;
642
+ line-height: 46px;
643
+ height: 46px;
644
+ }
645
+ .tab7 h3 {
646
+ margin: 14px 0 6px;
647
+ padding: 0;
648
+ color: #a7a9ac;
649
+ font-family: helveticaregular;
650
+ font-size: 20px;
651
+ text-align: left;
652
+ }
653
+ .tab7 .close {
654
+ position: absolute;
655
+ right: 18px;
656
+ top: 18px;
657
+ }
658
+ .tab7 .text_options {
659
+ width: 400px;
660
+ float: left;
661
+ }
662
+ .tab7 .text_options.layout {
663
+ margin-left: 35px;
664
+ }
665
+ .tab7 .sfsiplus_row_tab {
666
+ margin-top: 10px;
667
+ width: 100%;
668
+ float: left;
669
+ }
670
+ .tab7 .text_options label {
671
+ width: 121px;
672
+ float: left;
673
+ line-height: 46px;
674
+ font-size: 18px;
675
+ }
676
+ .tab7 .text_options.layout label {
677
+ line-height: 20px;
678
+ font-size: 18px;
679
+ }
680
+ .tab7 .text_options.layout label.border {
681
+ line-height: 46px;
682
+ }
683
+ .tab7 .text_options input {
684
+ width: 274px;
685
+ float: left;
686
+ background: #e5e5e5;
687
+ box-shadow: 2px 2px 3px #dcdcdc inset;
688
+ border: 0;
689
+ padding: 13px 10px;
690
+ font-size: 17px;
691
+ color: #5a6570;
692
+ }
693
+ .tab7 .text_options input.small {
694
+ width: 138px;
695
+ }
696
+ .tab7 .text_options .field {
697
+ width: 223px;
698
+ float: left;
699
+ position: relative;
700
+ }
701
+ .tab7 .text_options .field .select {
702
+ width: 183px;
703
+ padding-right: 21px;
704
+ height: 47px;
705
+ background: url(../images/select_bg1.jpg) no-repeat;
706
+ display: block;
707
+ padding-left: 10px;
708
+ line-height: 46px;
709
+ font-size: 17px;
710
+ color: #414951;
711
+ }
712
+ .tab7 .text_options .field select.styled {
713
+ position: absolute;
714
+ left: 0;
715
+ top: 0;
716
+ width: 213px;
717
+ line-height: 46px;
718
+ height: 46px;
719
+ }
720
+ .tab7 .color_box {
721
+ width: 40px;
722
+ height: 34px;
723
+ border: 3px solid #fff;
724
+ box-shadow: 1px 2px 2px #ccc;
725
+ float: left;
726
+ position: relative;
727
+ margin-left: 13px;
728
+ }
729
+ .tab7 .color_box1 {
730
+ width: 100%;
731
+ height: 34px;
732
+ background: #5a6570;
733
+ box-shadow: 1px -2px 15px -2px #d3d3d3 inset;
734
+ }
735
+ .tab7 .corner {
736
+ width: 10px;
737
+ height: 10px;
738
+ background: #fff;
739
+ position: absolute;
740
+ right: 0;
741
+ bottom: 0;
742
+ }
743
+ .tab7 ul.border_shadow {
744
+ margin: 0;
745
+ padding: 5px 0 0;
746
+ list-style: none;
747
+ float: left;
748
+ width: 257px;
749
+ }
750
+ .tab7 ul.border_shadow li {
751
+ margin: 0;
752
+ padding: 0 0 0 40px;
753
+ list-style: none;
754
+ float: left;
755
+ }
756
+ .tab7 ul.border_shadow li:first-child {
757
+ padding: 0;
758
+ }
759
+ .tab7 ul.border_shadow li span {
760
+ float: left;
761
+ }
762
+ .tab7 ul.border_shadow li label {
763
+ float: left;
764
+ width: auto;
765
+ font-family: helveticaregular;
766
+ font-size: 18px;
767
+ font-weight: 400;
768
+ text-align: center;
769
+ line-height: 40px!important;
770
+ color: #5a6570;
771
+ padding: 0 0 0 20px;
772
+ }
773
+ .tab7 .row {
774
+ border-top: 1px solid #eaebee;
775
+ margin-top: 25px;
776
+ padding-top: 15px;
777
+ clear: both;
778
+ display: block;
779
+ width: 100%;
780
+ float: left;
781
+ font-family: helveticaregular;
782
+ line-height: 42px;
783
+ }
784
+ .tab7 .pop_up_show {
785
+ width: 100%;
786
+ float: left;
787
+ margin-top: 20px;
788
+ }
789
+ .tab7 .pop_up_show span {
790
+ float: left;
791
+ }
792
+ .tab7 .pop_up_show label {
793
+ float: left;
794
+ width: auto;
795
+ font-size: 18px;
796
+ font-weight: 400;
797
+ text-align: center;
798
+ line-height: 38px!important;
799
+ color: #5a6570;
800
+ padding: 0 0 0 20px;
801
+ }
802
+ .tab7 .pop_up_show input.add {
803
+ width: 257px;
804
+ float: left;
805
+ background: #e5e5e5;
806
+ box-shadow: 2px 2px 3px #dcdcdc inset;
807
+ border: 0;
808
+ padding: 10px;
809
+ margin-left: 40px;
810
+ }
811
+ .tab7 .pop_up_show input.seconds {
812
+ width: 60px;
813
+ background: #e5e5e5;
814
+ box-shadow: 2px 2px 3px #dcdcdc inset;
815
+ border: 0;
816
+ padding: 10px;
817
+ margin: 0 7px;
818
+ }
819
+ .tab7 .pop_up_show a {
820
+ text-decoration: underline;
821
+ color: #a4a9ad;
822
+ font-size: 16px;
823
+ margin-left: 20px;
824
+ }
825
+ .tab7 .pop_up_show .field {
826
+ width: 135px;
827
+ float: left;
828
+ position: relative;
829
+ margin-left: 20px;
830
+ font-size: 17px;
831
+ font-family: helveticaregular;
832
+ }
833
+ .tab7 .pop_up_show .field .select {
834
+ width: 127px;
835
+ height: 48px;
836
+ background: url(../images/select_bg.jpg) no-repeat;
837
+ display: block;
838
+ padding-left: 10px;
839
+ line-height: 46px;
840
+ font-size: 16px;
841
+ color: #5a6570;
842
+ }
843
+ .tab7 .pop_up_show .field select.styled {
844
+ position: absolute;
845
+ left: 0;
846
+ top: 0;
847
+ width: 135px;
848
+ line-height: 46px;
849
+ height: 46px;
850
+ }
851
+ .pop_up_box {
852
+ width: 474px;
853
+ background: #FFF;
854
+ box-shadow: 0 0 5px 3px #d8d8d8;
855
+ margin: 200px auto;
856
+ padding: 20px 25px 0;
857
+ font-family: helveticaregular;
858
+ color: #5a6570;
859
+ min-height: 250px;
860
+ position: relative;
861
+ }
862
+ .pop_up_box h4, .pop_up_box_ex h4 {
863
+ font-size: 20px;
864
+ color: #5a6570;
865
+ text-align: center;
866
+ margin: 0;
867
+ padding: 0;
868
+ line-height: 22px;
869
+ }
870
+ .pop_up_box p, .pop_up_box_ex p {
871
+ font-size: 17px;
872
+ line-height: 28px;
873
+ color: #5a6570;
874
+ text-align: left;
875
+ margin: 0;
876
+ padding: 25px 0 0;
877
+ font-family: helveticaregular;
878
+ }
879
+ .sfsi_popupcntnr {
880
+ float: left;
881
+ width: 100%}
882
+ .sfsi_popupcntnr>h3 {
883
+ color: #000;
884
+ float: left;
885
+ font-weight: 700;
886
+ margin-bottom: 5px;
887
+ width: 100%}
888
+ ul.flwstep {
889
+ float: left;
890
+ width: 100%}
891
+ ul.flwstep>li {
892
+ color: #000;
893
+ font-size: 16px;
894
+ margin: 5px;
895
+ }
896
+ .upldbtn {
897
+ float: left;
898
+ text-align: center;
899
+ width: 100%}
900
+ .upload_butt {
901
+ background-color: #12a252;
902
+ border: none;
903
+ color: #fff;
904
+ font-weight: 700;
905
+ margin-top: 10px;
906
+ padding: 5px 27px;
907
+ width: auto;
908
+ cursor: pointer;
909
+ font-size: 15px !important;
910
+
911
+ }
912
+ @media (min-width: 295px) and (max-width: 558px){
913
+ .sfsi_premium_wechat_follow_overlay .upload_butt{
914
+ padding:5px;
915
+ }
916
+ }
917
+ @media (max-width: 295px){
918
+ .sfsi_premium_upload_butt_container{
919
+ width:100%!important;
920
+ padding-bottom:5px!important;
921
+ }
922
+ }
923
+ .pop_up_box .button {
924
+ background: #12a252;
925
+ font-size: 22px;
926
+ line-height: 24px;
927
+ color: #5a6570;
928
+ text-align: center;
929
+ min-height: 80px;
930
+ margin-top: 32px;
931
+ box-shadow: none;
932
+ word-wrap: break-word;
933
+ white-space: normal;
934
+ }
935
+ .pop_up_box .button:hover {
936
+ box-shadow: none!important;
937
+ }
938
+ .pop_up_box .button a.activate {
939
+ padding: 0px 0;
940
+ }
941
+ .pop_up_box a, .pop_up_box_ex a {
942
+ color: #a4a9ad;
943
+ font-size: 20px;
944
+ text-decoration: none;
945
+ text-align: center;
946
+ display: inline-block;
947
+ margin-top: 20px;
948
+ width: 100%;
949
+ }
950
+ .pop_up_box .upload {
951
+ width: 100%;
952
+ float: left;
953
+ text-align: left;
954
+ margin-top: 15px;
955
+ height: 46px;
956
+ }
957
+ .pop_up_box .upload label {
958
+ width: 135px;
959
+ float: left;
960
+ line-height: 45px;
961
+ font-size: 18px;
962
+ font-family: helveticaregular;
963
+ text-align: left;
964
+ }
965
+ .pop_up_box .upload input[type=text] {
966
+ width: 248px;
967
+ float: left;
968
+ background: #e5e5e5;
969
+ box-shadow: 2px 2px 3px #dcdcdc inset;
970
+ border: 0;
971
+ padding: 0 10px;
972
+ font-size: 16px;
973
+ height: 44px;
974
+ text-align: left;
975
+ color: #5a6570;
976
+ font-family: helveticaregular;
977
+ }
978
+ .pop_up_box .upload input.upload_butt {
979
+ width: 100px;
980
+ background: #12a252;
981
+ box-shadow: 0 0 0;
982
+ border: 0;
983
+ text-align: center;
984
+ font-size: 18px;
985
+ color: #fff;
986
+ font-family: helveticaregular;
987
+ height: 45px;
988
+ right: 32px;
989
+ top: 71px;
990
+ position: absolute;
991
+ }
992
+ .pop_up_box .upload a {
993
+ color: #12a252;
994
+ font-size: 18px;
995
+ text-decoration: underline;
996
+ font-family: helveticaregular;
997
+ margin: 0 0 16px 140px;
998
+ }
999
+ .pop_up_box a:hover, .pop_up_box_ex a:hover {
1000
+ color: #a4a9ad;
1001
+ }
1002
+ .tab1 ul.plus_icn_listing {
1003
+ list-style: none;
1004
+ overflow: hidden;
1005
+ border-top: #e7e8eb solid 1px;
1006
+ margin: 35px 0 0;
1007
+ }
1008
+ .tab1 ul.plus_icn_listing li {
1009
+ border-bottom: #eaebed solid 1px;
1010
+ padding: 11px 0 11px 8px;
1011
+ float: left;
1012
+ width: 100%}
1013
+ ul.plus_icn_listing li .tb_4_ck {
1014
+ float: left;
1015
+ margin: 10px 0 0;
1016
+ }
1017
+ .upload_pop_up .upload_butt {
1018
+ line-height: 27px;
1019
+ margin-left: 6px
1020
+ }
1021
+ ul.sfsiplus_icn_listing8 li .tb_4_ck {
1022
+ float: left;
1023
+ margin: 10px 0 0;
1024
+ }
1025
+ .tab8 .cstmdsplyulwpr .radio_section.tb_4_ck
1026
+ {
1027
+ margin-right: 10px !important;
1028
+ }
1029
+ .tab8 .social_icon_like1.cstmdsplyulwpr .cstmdsplsub{margin-top: 3px;}
1030
+ .tab8 .social_icon_like1.cstmdsplyulwpr .cstmdspllke{margin-top: 3px;}
1031
+ .tab8 .social_icon_like1.cstmdsplyulwpr .cstmdsplggpls{margin-top: 3px;}
1032
+ .tab8 .social_icon_like1.cstmdsplyulwpr .cstmdspltwtr{margin-top: 4px;}
1033
+ .tab8 .social_icon_like1.cstmdsplyulwpr .cstmdsplshr{margin-top: 3px;}
1034
+ .tab2 {
1035
+ overflow: hidden;
1036
+ }
1037
+ .tab2 .rss_url_row {
1038
+ width: 100%;
1039
+ float: left;
1040
+ margin: 0 0 10px;
1041
+ }
1042
+ .tab2 .rss_url_row h4 {
1043
+ float: left;
1044
+ line-height: 43px!important;
1045
+ }
1046
+ .tab2 .inr_cont input.add, .tab2 .inr_cont textarea.add_txt, .tab2 .rss_url_row input.add {
1047
+ width: 363px;
1048
+ float: left;
1049
+ background: #e5e5e5;
1050
+ box-shadow: 2px 2px 3px #dcdcdc inset;
1051
+ border: 0;
1052
+ padding: 12px 10px 11px;
1053
+ margin-left: 227px;
1054
+ margin-top: -38px;
1055
+ }
1056
+ .tab2 .rss_url_row input.add {
1057
+ margin-left:10px;
1058
+ margin-top:0;
1059
+ }
1060
+ .tab2 .inr_cont input.add1, .tab2 .rss_url_row input.add1 {
1061
+ width: 363px;
1062
+ float: left;
1063
+ background: #e5e5e5;
1064
+ box-shadow: 2px 2px 3px #dcdcdc inset;
1065
+ border: 0;
1066
+ padding: 12px 10px 11px;
1067
+ margin-left: 284px;
1068
+ margin-top: -34px;
1069
+ }
1070
+ .tab2 .rss_url_row a.rit_link {
1071
+ float: left;
1072
+ margin: 10px 0 0 16px;
1073
+ font-size: 17px;
1074
+ }
1075
+ .tab2 .row {
1076
+ float: left;
1077
+ border-top: 2px solid #f2f3f4;
1078
+ clear: both;
1079
+ padding: 0 0 15px;
1080
+ width: 100%}
1081
+ .tab2 .row .tab_2_email_sec {
1082
+ list-style: none;
1083
+ margin: 17px 0 0;
1084
+ overflow: hidden;
1085
+ }
1086
+ .row ul.tab_2_email_sec li {
1087
+ float: left;
1088
+ margin-right: 10px;
1089
+ width: 32%;
1090
+ }
1091
+ .sfsiplusicnsdvwrp
1092
+ {
1093
+ width: 110px;
1094
+ float: left;
1095
+ }
1096
+ .row ul.tab_2_email_sec:first-child {
1097
+ margin-right: 2%
1098
+ }
1099
+ .inr_cont .fb_url {
1100
+ clear: both;
1101
+ }
1102
+ .inr_cont .fb_url .checkbox, .inr_cont .fb_url input.add, .inr_cont .fb_url label, .inr_cont .fb_url lable {
1103
+ float: left;
1104
+ }
1105
+ .inr_cont .fb_url input.add {
1106
+ margin-left: 19px;
1107
+ margin-top:0;
1108
+ }
1109
+ .inr_cont .fb_url .checkbox {
1110
+ margin: 6px 0 0;
1111
+ }
1112
+ .inr_cont .fb_url label {
1113
+ line-height: 41px;
1114
+ margin: 0 0 0 15px;
1115
+ font-size: 18px;
1116
+ }
1117
+ .inr_cont textarea.add_txt {
1118
+ resize: none;
1119
+ margin: 0 0 0 19px!important;
1120
+ height: 60px;
1121
+ }
1122
+ .tab2 .inr_cont textarea.add_txt {
1123
+ width: 382px!important;
1124
+ height: 90px;
1125
+ overflow: hidden;
1126
+ }
1127
+ .tab2 .inr_cont input.add {
1128
+ width: 417px;
1129
+ }
1130
+ .red_txt, .tab2 .red_txt {
1131
+ color: #ef4745!important;
1132
+ text-align: center!important;
1133
+ padding-top: 5px!important;
1134
+ }
1135
+ .green_txt {
1136
+ color: #12A252!important;
1137
+ text-align: center!important;
1138
+ padding-top: 5px!important;
1139
+ }
1140
+ .red_txt {
1141
+ color: #f80000!important;
1142
+ text-align: center!important;
1143
+ padding-top: 5px!important;
1144
+ }
1145
+ .linked_tab_2 .fb_url label {
1146
+ width: 32%}
1147
+ .twt_tab_2 label {
1148
+ width: 18%}
1149
+ .bdr_top {
1150
+ border-top: none!important;
1151
+ }
1152
+ .linked_tab_2 .fb_url input.link_dbl {
1153
+ margin-bottom: 6px;
1154
+ }
1155
+ .tab3 {
1156
+ overflow: hidden;
1157
+ }
1158
+ .tab3 .row {
1159
+ padding: 15px 0;
1160
+ clear: both;
1161
+ overflow: hidden;
1162
+ }
1163
+ .tab3 .row.sfsiplusmousetxt
1164
+ {
1165
+ border: medium none;
1166
+ }
1167
+ .tab3 ul.tab_3_list {
1168
+ overflow: hidden;
1169
+ margin: 4px 0 11px;
1170
+ }
1171
+ .tab8 .sfsiplus_toglepstpgspn {
1172
+ font-weight: bold;
1173
+ }
1174
+ ul.tab_3_list li {
1175
+ background: url(../images/tab_3_list_bg.jpg) 13px 7px no-repeat;
1176
+ padding: 0 0 0 30px;
1177
+ color: #778088;
1178
+ font-family: helveticaregular;
1179
+ font-size: 17px;
1180
+ margin-bottom: 4px;
1181
+ }
1182
+ .tab5 ul.tab_3_list li
1183
+ {
1184
+ background: url(../images/tab_3_list_bg.jpg) 13px 18px no-repeat;
1185
+ }
1186
+ .tab3 .row h3 {
1187
+ margin: 0 0 20px;
1188
+ color: #414951;
1189
+ font-family: helveticabold;
1190
+ font-size: 20px;
1191
+ }
1192
+ ul.sfsiplus_tab_3_icns {
1193
+ list-style: none;
1194
+ margin: 34px 0 0;
1195
+ overflow: hidden;
1196
+ }
1197
+ ul.sfsiplus_tab_3_icns li {
1198
+ width: 100%;
1199
+ margin: 0 0 21px;
1200
+ float: left;
1201
+ }
1202
+ ul.sfsiplus_tab_3_icns label {
1203
+ float: left;
1204
+ line-height: 42px;
1205
+ color: #69737C;
1206
+ font-size: 18px;
1207
+ font-family: helveticaregular;
1208
+ min-width: 120px;
1209
+ }
1210
+ ul.sfsiplus_tab_3_icns li .sfsiplus_icns_tab_3, ul.sfsiplus_tab_3_icns li .radio {
1211
+ float: left;
1212
+ }
1213
+ .tab3 .sub_row {
1214
+ float: left;
1215
+ margin: 35px 0 0 4%;
1216
+ width: 90%
1217
+ }
1218
+ .tab3 .sub_row h4 {
1219
+ color: #a4a9ad!important;
1220
+ }
1221
+ .tab3 .sub_row p {
1222
+ padding-top: 18px!important;
1223
+ clear: both;
1224
+ overflow: hidden;
1225
+ }
1226
+ .sub_row .sub_sub_box p {
1227
+ padding-top: 18px!important;
1228
+ }
1229
+ .tab3 .sub_row .checkbox {
1230
+ float: left;
1231
+ margin-top: 4px;
1232
+ }
1233
+ .tab3 .sub_row .sub_sub_box {
1234
+ width: 80%;
1235
+ margin: 7px 0 15px 10%;
1236
+ float: left;
1237
+ }
1238
+ .tab3 .sub_row input.smal_inpt {
1239
+ width: 73px;
1240
+ background: #e5e5e5;
1241
+ box-shadow: 2px 2px 3px #dcdcdc inset;
1242
+ border: 0;
1243
+ padding: 10px;
1244
+ float: left;
1245
+ }
1246
+ .tab3 .sub_row .drop_lst {
1247
+ border: 1px solid #d6d6d6;
1248
+ font-size: 16px;
1249
+ color: #5a6570;
1250
+ width: 120px;
1251
+ }
1252
+ .tab3 .first_row, .tab3 .first_row p, .tab3 .first_row p .radio, .tab3 .first_row p label {
1253
+ float: left;
1254
+ }
1255
+ .tab3 .first_row {
1256
+ width: 90%;
1257
+ float: left;
1258
+ }
1259
+ .tab3 .first_row p {
1260
+ padding: 0!important;
1261
+ }
1262
+ .tab3 .first_row p label {
1263
+ line-height: 44px;
1264
+ margin: 0 10px;
1265
+ }
1266
+ .tab3 .first_row p:last-child {
1267
+ margin-left: 27%}
1268
+ .tab3 .tab_1_sav {
1269
+ padding-top: 20px!important;
1270
+ margin: 10px auto 20px;
1271
+ }
1272
+ .suc_msg {
1273
+ background: #12A252;
1274
+ color: #FFF;
1275
+ display: none;
1276
+ font-size: 23px;
1277
+ padding: 10px;
1278
+ text-align: left;
1279
+ text-decoration: none;
1280
+ }
1281
+ .error_msg {
1282
+ background: #D22B30;
1283
+ color: #FFF;
1284
+ display: none;
1285
+ font-size: 23px;
1286
+ padding: 10px;
1287
+ text-align: left;
1288
+ text-decoration: none;
1289
+ }
1290
+ .fileUPInput {
1291
+ cursor: pointer;
1292
+ position: relative;
1293
+ top: -43px;
1294
+ right: 0;
1295
+ z-index: 99;
1296
+ height: 42px;
1297
+ font-size: 5px;
1298
+ opacity: 0;
1299
+ -moz-opacity: 0;
1300
+ filter: alpha(opacity=0);
1301
+ width: 100%}
1302
+ .inputWrapper {
1303
+ height: 20px;
1304
+ width: 50px;
1305
+ overflow: hidden;
1306
+ position: relative;
1307
+ cursor: pointer;
1308
+ }
1309
+ .sfsiplus_custom-txt {
1310
+ background: none!important;
1311
+ padding-left: 2px!important;
1312
+ }
1313
+ .plus_custom-img {
1314
+ float: left;
1315
+ margin-left: 20px;
1316
+ }
1317
+ .loader-img {
1318
+ float: left;
1319
+ margin-left: -70px;
1320
+ display: none;
1321
+ }
1322
+ .pop-overlay {
1323
+ position: fixed;
1324
+ top: 0;
1325
+ left: 0;
1326
+ width: 100%;
1327
+ height: 100%;
1328
+ background-color: #d3d3d3;
1329
+ z-index: 10;
1330
+ padding: 20px;
1331
+ display: none;
1332
+ }
1333
+ .fb-overlay {
1334
+ position: fixed;
1335
+ top: 0;
1336
+ left: 0;
1337
+ width: 100%;
1338
+ height: 100%;
1339
+ background-color: #d3d3d3;
1340
+ z-index: -1000;
1341
+ padding: 20px;
1342
+ opacity: 0;
1343
+ display: block;
1344
+ }
1345
+ .inputError {
1346
+ border: 1px solid #f80000!important;
1347
+ }
1348
+ .sfsicloseBtn {
1349
+ position: absolute;
1350
+ top: 0;
1351
+ right: 0;
1352
+ cursor: pointer;
1353
+ }
1354
+ .top_arow {
1355
+ background: url(../images/top_aro.png) no-repeat;
1356
+ position: absolute;
1357
+ top: -29px;
1358
+ left: 38%;
1359
+ width: 33px;
1360
+ height: 29px;
1361
+ background-color: #fff;
1362
+ }
1363
+ .sfsi_plus_tool_tip_2 .top_arow .sfsi_plus_inside, .top_arow .sfsi_plus_inside {
1364
+ float: left;
1365
+ }
1366
+ .sfsi_plus_tool_tip_2 .tool_tip>img, .tool_tip>img {
1367
+ display: inline-block;
1368
+ margin-right: 4px;
1369
+ float: left;
1370
+ }
1371
+ .sfsiplus_norm_row {
1372
+ float: left;
1373
+ min-width: 25px;
1374
+ }
1375
+ .sfsiplus_norm_row a {
1376
+ border: none;
1377
+ display: inline-block;
1378
+ position: relative;
1379
+ }
1380
+ .sfsi_plus_widget
1381
+ {
1382
+ min-height: 55px;
1383
+ }
1384
+ .sfsi_plus_tool_tip_2 a {
1385
+ min-height: 0!important;
1386
+ }
1387
+ .sfsi_plus_widget a img {
1388
+ box-shadow: none!important;
1389
+ outline: 0;
1390
+ }
1391
+ .sfsi_plus_wicons {
1392
+ display: inline-block;
1393
+ color: #000;
1394
+ }
1395
+ .sel-active {
1396
+ background-color: #f7941d;
1397
+ }
1398
+ .sfsi_plus_outr_div .close {
1399
+ position: absolute;
1400
+ right: 18px;
1401
+ top: 18px;
1402
+ }
1403
+ .sfsi_plus_outr_div h2 {
1404
+ color: #778088;
1405
+ font-family: helveticaregular;
1406
+ font-size: 26px;
1407
+ margin: 0 0 9px;
1408
+ padding: 0;
1409
+ text-align: center;
1410
+ font-weight: 400;
1411
+ }
1412
+ .sfsi_plus_outr_div ul li a {
1413
+ color: #5A6570;
1414
+ text-decoration: none;
1415
+ }
1416
+ .sfsi_plus_outr_div ul li {
1417
+ display: inline-block;
1418
+ list-style: none;
1419
+ margin: 0;
1420
+ padding: 0;
1421
+ float: none;
1422
+ }
1423
+ .expanded-area {
1424
+ display: none;
1425
+ }
1426
+ .sfsi_plus_wicons a {
1427
+ -webkit-transition: all .2s ease-in-out;
1428
+ -moz-transition: all .2s ease-in-out;
1429
+ -o-transition: all .2s ease-in-out;
1430
+ -ms-transition: all .2s ease-in-out;
1431
+ }
1432
+ .scale, .scale-div {
1433
+ -webkit-transform: scale(1.1);
1434
+ -moz-transform: scale(1.1);
1435
+ -o-transform: scale(1.1);
1436
+ transform: scale(1.1);
1437
+ }
1438
+ .sfsi_plus_Sicons {
1439
+ float: left;
1440
+ }
1441
+ .sfsi_pop_up .button a:hover {
1442
+ color: #fff;
1443
+ }
1444
+ .sfsi_pop_up .button:hover {
1445
+ background: #12a252;
1446
+ color: #fff;
1447
+ border: none;
1448
+ }
1449
+ ul.plus_icn_listing li .sfsiplus_right_info a {
1450
+ outline: 0;
1451
+ font-family: helveticaregular;
1452
+ }
1453
+ ul.sfsiplus_icn_listing8 li .sfsiplus_right_info a {
1454
+ outline: 0;
1455
+ font-family: helveticaregular;
1456
+ }
1457
+ .upload_pop_up .upload_butt {
1458
+ line-height: 27px;
1459
+ margin-left: 6px;
1460
+ }
1461
+ .drop_lsts {
1462
+ left: 220px;
1463
+ position: relative;
1464
+ top: -40px;
1465
+ }
1466
+ .drop_lsts .styled {
1467
+ top: -42px;
1468
+ width: 127px;
1469
+ height: 33px;
1470
+ }
1471
+ .drop_lsts span {
1472
+ line-height: 50px;
1473
+ }
1474
+ .drag_drp {
1475
+ left: 11px;
1476
+ position: relative;
1477
+ top: 38px;
1478
+ font-size: 17px;
1479
+ }
1480
+ .listing ul li label {
1481
+ width: 224px;
1482
+ float: left;
1483
+ }
1484
+ .sfsiplus_row_onl {
1485
+ width: 100%;
1486
+ float: left;
1487
+ }
1488
+ #sfsi_plus_Show_popupOn_PageIDs option.sel-active {
1489
+ background: #f7941d;
1490
+ }
1491
+ .sfsi_plus_inside div iframe {
1492
+ float: left;
1493
+ margin: 0;
1494
+ }
1495
+ .sfsi_plus_inside div #___plus_0, .sfsi_plus_inside div #___plusone_0 {
1496
+ height: 27px;
1497
+ }
1498
+ .sfsi_plus_outr_div li {
1499
+ float: left;
1500
+ }
1501
+ .sfsi_plus_tool_tip_2 .sfsi_plus_inside div {
1502
+ min-height: 0;
1503
+ }
1504
+ #___plus_1>iframe {
1505
+ height: 30px;
1506
+ }
1507
+ .main_contant h1 {
1508
+ margin: 0 0 19px;
1509
+ }
1510
+ .main_contant p {
1511
+ margin: 0 0 26px;
1512
+ }
1513
+ .main_contant p>a {
1514
+ color: #1a1d20;
1515
+ text-decoration: underline;
1516
+ }
1517
+ .tab1 .gary_bg {
1518
+ background: #f1f1f1;
1519
+ }
1520
+ #accordion {
1521
+ margin-top: 4px;
1522
+ }
1523
+ .main_contant p>a, .tab1 p span {
1524
+ font-family: helveticabold;
1525
+ }
1526
+ .wapper .ui-accordion-header-active {
1527
+ margin-top: 20px!important;
1528
+ }
1529
+ .wapper .tab2 {
1530
+ padding: 20px 33px 12px 34px!important;
1531
+ }
1532
+ .wapper .tab2 p {
1533
+ margin-bottom: 6px;
1534
+ }
1535
+ .tab2 .twt_tab_2 label {
1536
+ width: 175px;
1537
+ }
1538
+ .tab2 .twt_fld {
1539
+ margin: 16px 0 23px;
1540
+ float: left;
1541
+ }
1542
+ .tab2 .twt_fld_2 {
1543
+ margin: 0 0 12px;
1544
+ float: left;
1545
+ }
1546
+ .tab2 .utube_inn {
1547
+ padding-bottom: 2px;
1548
+ float: left;
1549
+ }
1550
+ .tab2 .utube_inn label {
1551
+ max-width: 90%}
1552
+ .tab2 .utube_inn label span {
1553
+ font-family: helveticabold;
1554
+ }
1555
+ .tab2 .inr_cont p>a {
1556
+ font-family: helveticabold;
1557
+ color: #778088;
1558
+ text-decoration: none;
1559
+ }
1560
+ .sfsiplus_pinterest_section .inr_cont .pint_url {
1561
+ float: left;
1562
+ padding-top: 6px;
1563
+ clear: both;
1564
+ }
1565
+ .sfsiplus_pinterest_section .inr_cont .add {
1566
+ width: 417px!important;
1567
+ }
1568
+ .sfsiplus_linkedin_section .link_1, .sfsiplus_linkedin_section .link_2, .sfsiplus_linkedin_section .link_3, .sfsiplus_linkedin_section .link_4 {
1569
+ float: left;
1570
+ width: 100%}
1571
+ .sfsiplus_linkedin_section .link_1 input.add, .sfsiplus_linkedin_section .link_2 input.add, .sfsiplus_linkedin_section .link_3 input.add, .sfsiplus_linkedin_section .link_4 input.add {
1572
+ width: 417px;
1573
+ }
1574
+ .sfsiplus_linkedin_section .link_1 {
1575
+ margin-bottom: 7px;
1576
+ }
1577
+ .sfsiplus_linkedin_section .link_2 {
1578
+ margin-bottom: 12px;
1579
+ }
1580
+ .sfsiplus_linkedin_section .link_3, .sfsiplus_linkedin_section .link_4 {
1581
+ margin-bottom: 13px;
1582
+ }
1583
+ .tab2 .sfsiplus_linkedin_section .link_4 {
1584
+ margin-bottom: 0;
1585
+ }
1586
+ .sfsiplus_telegram_section .link_1 , .sfsiplus_linkedin_section .link_2{
1587
+ margin-bottom: 12px;
1588
+ }
1589
+ ul.tab_3_list li span {
1590
+ font-family: helveticabold;
1591
+ }
1592
+ #accordion .tab4 h4, #accordion1 .tab4 h4 {
1593
+
1594
+ color: #414951;
1595
+ font-size: 20px;
1596
+ }
1597
+ .sfsiplus_specify_counts .listing li .input {
1598
+ width: 73px;
1599
+ }
1600
+ .sfsiplus_fbpgidwpr{width: 160px; float: left; font-weight: bold; font-size: 17px; color: #000000;}
1601
+ .sfsiplus_fbpgiddesc{font-weight: normal; width: 100%; font-size: 14px; color: #888888;padding: 4px 0 0 60px; }
1602
+ .sfsiplus_fbpgiddesc code
1603
+ {
1604
+ background: none repeat scroll 0 0 transparent;
1605
+ padding-right: 0px;
1606
+ padding-left: 0px;
1607
+
1608
+ }
1609
+ .sfsiplus_specify_counts .listing li .input.mypginpt {
1610
+ width: 288px;
1611
+ }
1612
+ .tab3 .Shuffle_auto .sub_sub_box .tab_3_option {
1613
+ padding-top: 0!important;
1614
+ margin-bottom: 10px!important;
1615
+ }
1616
+ .tab3 .sub_row {
1617
+ margin-top: 10px!important;
1618
+ }
1619
+ .tab4 {
1620
+ padding-top: 35px!important;
1621
+ }
1622
+ .tab4 .save_button {
1623
+ padding-top: 46px;
1624
+ }
1625
+ .tab5 {
1626
+ padding-top: 31px!important;
1627
+ }
1628
+ .tab6, .tab7 {
1629
+ padding-top: 28px!important;
1630
+ }
1631
+ .tab5 .sfsiplus_row_onl {
1632
+ margin-top: 15px;
1633
+ }
1634
+ .tab5 .sticking .link>a {
1635
+ color: #a4a9ad;
1636
+ text-decoration: underline;
1637
+ }
1638
+ .tab5 .mouse_txt h4 {
1639
+ margin-bottom: 8px!important;
1640
+ }
1641
+ .tab5 .save_button {
1642
+ padding-top: 54px;
1643
+ }
1644
+ .tab7 .like_pop_box h2 {
1645
+ font-family: helveticabold;
1646
+ text-align: center;
1647
+ color: #414951;
1648
+ font-size: 26px;
1649
+ }
1650
+ .tab1 ul.plus_icn_listing li .sfsiplus_right_info label:hover {
1651
+ text-decoration: none!important;
1652
+ }
1653
+ .tab1 ul.plus_icn_listing li .sfsiplus_right_info label.expanded-area {
1654
+ clear: both;
1655
+ float: left;
1656
+ margin-top: 14px;
1657
+ }
1658
+ .tab7 .space {
1659
+ margin-top: 14px;
1660
+ }
1661
+ .tab7 .pop_up_show label {
1662
+ font-family: helveticaregular!important;
1663
+ }
1664
+ .tab7 .save_button {
1665
+ padding-top: 78px;
1666
+ }
1667
+ .like_txt a {
1668
+ text-decoration: none;
1669
+ font-family: helveticaregular;
1670
+ }
1671
+ .bdr_btm_non {
1672
+ border-bottom: none!important;
1673
+ }
1674
+ .tab1 .tab_1_sav {
1675
+ padding-top: 13px;
1676
+ }
1677
+ #accordion .tab2 .sfsiplus_facebook_section .inr_cont p.extra_sp, #accordion1 .tab2 .sfsiplus_facebook_section .inr_cont p.extra_sp {
1678
+ padding-top: 7px;
1679
+ }
1680
+ .tab2 .sfsiplus_custom_section {
1681
+ width: 100%}
1682
+ .tab7 {
1683
+ padding-bottom: 40px!important;
1684
+ }
1685
+ .tab8 .save_button {
1686
+ padding-top: 0px;
1687
+ }
1688
+ .tab10 .save_button a {
1689
+ padding: 16px 0;
1690
+ }
1691
+ .tab2 .sfsiplus_twitter_section .twt_fld input.add, .tab2 .sfsiplus_twitter_section .twt_fld_2 textarea.add_txt {
1692
+ width: 464px!important;
1693
+ }
1694
+ .tab2 .utube_inn .fb_url label span {
1695
+ font-family: helveticaregular;
1696
+ }
1697
+ .tab1 label, .tab2 label, .tab3 label, .tab4 label, .tab5 label, .tab6 label, .tab7 label, .tab8 label, .tab9 label {
1698
+ cursor: default!important;
1699
+ }
1700
+ .tab5 .new_wind h4 {
1701
+ margin-bottom: 11px!important;
1702
+ }
1703
+ .pop_up_box .fb_2 span {
1704
+ height: 28px!important;
1705
+ }
1706
+ .pop_up_box .sfsi_plus_tool_tip_2 .fbb .fb_1 a {
1707
+ margin-top: 0;
1708
+ }
1709
+ .tab6 .social_icon_like1 ul li span {
1710
+ margin-top: -1px;
1711
+ }
1712
+ #sfpluspageLoad {
1713
+ background: url(../images/ajax-loader.gif) 50% 50% no-repeat #F9F9F9;
1714
+ height: 100%;
1715
+ left: 160px;
1716
+ opacity: 1;
1717
+ position: fixed;
1718
+ top: 0;
1719
+ width: 89%;
1720
+ z-index: 9999;
1721
+ }
1722
+ .sfsi_plus_tool_tip_2, .tool_tip {
1723
+ background: #FFF;
1724
+ border: 1px solid #e7e7e7;
1725
+ box-shadow: #e7e7e7 0 0 2px 1px;
1726
+ display: block;
1727
+ float: left;
1728
+ margin: 0 0 0 -52px;
1729
+ /*padding: 5px 14px 5px 14px;*/
1730
+ position: absolute;
1731
+ z-index: 10000;
1732
+ border-bottom: #e5e5e5 solid 4px;
1733
+ width: 100px;
1734
+ }
1735
+ .sfsi_plus_tool_tip_2 {
1736
+ display: inline-table;
1737
+ }
1738
+ .sfsiplus_inerCnt, .sfsiplus_inerCnt:hover, .sfsiplus_inerCnt>a, .sfsiplus_inerCnt>a:hover, .widget-area .widget a {
1739
+ outline: 0;
1740
+ }
1741
+ .sfsi_plus_tool_tip_2_inr {
1742
+ bottom: 90%;
1743
+ left: 20%;
1744
+ opacity: 0;
1745
+ }
1746
+ .sfsi_plus_tool_tip_2 .bot_arow {
1747
+ background: url(../images/bot_tip_icn.png) no-repeat;
1748
+ position: absolute;
1749
+ bottom: -21px;
1750
+ left: 50%;
1751
+ width: 15px;
1752
+ height: 21px;
1753
+ margin-left: -10px;
1754
+ }
1755
+ .sfsi_plus_tool_tip_2 .top_big_arow {
1756
+ position: absolute;
1757
+ -webkit-transform: rotate(180deg);
1758
+ -moz-transform: rotate(180deg);
1759
+ -ms-transform: rotate(180deg);
1760
+ -o-transform: rotate(180deg);
1761
+ transform: rotate(180deg);
1762
+ top: -21px;
1763
+ left: 46%;
1764
+ width: 15px;
1765
+ height: 21px;
1766
+ margin-right: -5px;
1767
+ }
1768
+ .sfsi_plus_tool_tip_2_inr .gpls_visit>a, .sfsi_plus_tool_tip_2_inr .prints_visit_1 a, .sfsi_plus_tool_tip_2_inr .utub_visit>a {
1769
+ margin-top: 0;
1770
+ }
1771
+ .sfsi_plus_tool_tip_2_inr .linkin_1 a, .sfsi_plus_tool_tip_2_inr .linkin_2 a, .sfsi_plus_tool_tip_2_inr .linkin_3 a, .sfsi_plus_tool_tip_2_inr .linkin_4 a, .sfsi_plus_tool_tip_2_inr .prints_visit a {
1772
+ margin: 0;
1773
+ }
1774
+ .sfsiTlleftBig {
1775
+ bottom: 121%;
1776
+ left: 22%;
1777
+ margin-left: -54%}
1778
+ .sfsi_plus_Tlleft {
1779
+ bottom: 100%;
1780
+ left: 50%;
1781
+ margin-left: -66px !important;
1782
+ margin-bottom: 2px;
1783
+ }
1784
+ .sfsi_plc_btm {
1785
+ bottom: auto;
1786
+ top: 100%;
1787
+ left: 50%;
1788
+ margin-left: -63px;
1789
+ margin-top: 8px;
1790
+ margin-bottom: auto;
1791
+ }
1792
+ .sfsiplus_inerCnt {
1793
+ position: relative;
1794
+ z-index: inherit!important;
1795
+ float: left;
1796
+ width: 100%;
1797
+ float: left;
1798
+ }
1799
+ .sfsi_plus_wicons {
1800
+ margin-bottom: 30px;
1801
+ position: relative;
1802
+ padding-top: 5px;
1803
+ }
1804
+ .sfsiplus_norm_row .bot_no {
1805
+ position: absolute;
1806
+ padding: 1px 0;
1807
+ font-size: 12px!important;
1808
+ text-align: center;
1809
+ line-height: 12px!important;
1810
+ background: #fff;
1811
+ border-radius: 5px;
1812
+ left: 50%;
1813
+ margin-left: -20px;
1814
+ z-index: 9;
1815
+ border: 1px solid #333;
1816
+ top: 100%;
1817
+ white-space: pre;
1818
+ -webkit-box-sizing: border-box;
1819
+ -moz-box-sizing: border-box;
1820
+ box-sizing: border-box;
1821
+ margin-top: 10px;
1822
+ width: 40px;
1823
+ }
1824
+ .sfsiplus_norm_row .bot_no:before {
1825
+ content: url(images/count_top_arow.png);
1826
+ position: absolute;
1827
+ height: 9px;
1828
+ margin-left: -7.5px;
1829
+ top: -10px;
1830
+ left: 50%;
1831
+ width: 15px;
1832
+ }
1833
+ /*.sf_subscrbe .bot_no:before
1834
+ {
1835
+ content: url(images/count_left_arow.png);
1836
+ height: 9px;
1837
+ left: 0;
1838
+ margin-left: -12px;
1839
+ position: absolute;
1840
+ top: 0px;
1841
+ width: 15px;
1842
+ }*/
1843
+ .sf_subscrbe .bot_no
1844
+ {
1845
+ background: rgba(0, 0, 0, 0) url(images/count_left_arow.png) no-repeat scroll 0 0 / 27px auto;
1846
+ font-size: 12px !important;
1847
+ left: 67px;
1848
+ line-height: 17px !important;
1849
+ margin-left: 0px;
1850
+ /* margin-top: 9px;*/
1851
+ padding: 1px 0;
1852
+ /*position: absolute;*/
1853
+ text-align: center;
1854
+ /*top: -8px;*/
1855
+ white-space: pre;
1856
+ width: 33px;
1857
+ height: 19px;
1858
+ z-index: 9;
1859
+ display:inline-block;
1860
+ }
1861
+ .bot_no.sfsiSmBtn {
1862
+ font-size: 10px;
1863
+ margin-top: 4px;
1864
+ }
1865
+ .bot_no.sfsiSmBtn:before {
1866
+ margin-left: -8px;
1867
+ top: -9px;
1868
+ }
1869
+ .sfsiplus_norm_row .cbtn_vsmall {
1870
+ font-size: 9px;
1871
+ left: -28%;
1872
+ top: 4px;
1873
+ }
1874
+ .sfsiplus_norm_row .cbtn_vsmall:before {
1875
+ left: 31%;
1876
+ top: -9px;
1877
+ margin-left: -31%}
1878
+ h2.optional {
1879
+ font-family: helveticaregular;
1880
+ font-size: 25px;
1881
+ margin: 25px 0 19px;
1882
+ color: #5a6570;
1883
+ float: left;
1884
+ }
1885
+ .utube_tool_bdr .utub_visit {
1886
+ margin: 9px 0 0;
1887
+ height: 24px;
1888
+ display: inline-block;
1889
+ float: none;
1890
+ }
1891
+ .utube_tool_bdr .utub_2 {
1892
+ margin: 9px 0 0;
1893
+ height: 24px;
1894
+ width: 86px;
1895
+ display: inline-block;
1896
+ float: none;
1897
+ }
1898
+ .sfsi_plus_printst_tool_bdr {
1899
+ width: 79px;
1900
+ }
1901
+ .sfsi_plus_printst_tool_bdr .prints_visit {
1902
+ margin: 0 0 10px -22px;
1903
+ }
1904
+ .sfsi_plus_printst_tool_bdr .prints_visit_1 {
1905
+ margin: 0 0 0 -53px;
1906
+ }
1907
+ .sfsi_plus_fb_tool_bdr {
1908
+ width: 68px;
1909
+ height: auto;
1910
+ }
1911
+ .sfsi_plus_fb_tool_bdr .sfsi_plus_inside {
1912
+ text-align: center;
1913
+ width: 100%;
1914
+ float: left;
1915
+ overflow: hidden;
1916
+ }
1917
+ .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .icon1 {
1918
+ margin: 2px 0 -5px 0;
1919
+ height: 28px;
1920
+ /*display: inline-block;*/
1921
+ float: none;
1922
+ /* width: 62px;s*/
1923
+ }
1924
+ #sfsi_plus_floater .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .icon1 {
1925
+ margin: -16px 0 16px 0;
1926
+ }
1927
+ .sfsi_plus_inside img
1928
+ {
1929
+ vertical-align:sub !important;
1930
+ }
1931
+ .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .icon2
1932
+ {
1933
+ margin: 2px 0 2px 0 ;
1934
+ height: 20px;
1935
+ /* width: 49px;*/
1936
+ display:block;
1937
+ overflow: hidden;
1938
+ }
1939
+ .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .icon3 {
1940
+ margin: 2px 0 2px 0;
1941
+ height: 20px;
1942
+ /* width: 62px;*/
1943
+ display:inline-block;
1944
+ float: none;
1945
+ }
1946
+ #sfsi_plus_floater .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .icon3 {
1947
+ margin: 3px 0 0 0;
1948
+ }
1949
+ .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .fb_1, .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .fb_2, .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .fb_3 {
1950
+ margin: 9px 0 0;
1951
+ height: 25px;
1952
+ }
1953
+ .sfsi_plus_printst_tool_bdr .sfsi_plus_inside {
1954
+ text-align: center;
1955
+ float: left;
1956
+ width: 100%}
1957
+ .sfsi_plus_printst_tool_bdr .sfsi_plus_inside .icon1{
1958
+ margin: 2px 0;
1959
+ height: 24px;
1960
+ display: inline-block;
1961
+ float: none;
1962
+ /*width: 73px;*/
1963
+ }
1964
+ #sfsi_plus_floater .sfsi_plus_printst_tool_bdr .sfsi_plus_inside .icon1{
1965
+ margin:0px 0;
1966
+ }
1967
+ #sfsi_plus_floater .sfsi_plus_printst_tool_bdr .sfsi_plus_inside .icon2{
1968
+ margin:-5px 0 17px 0;
1969
+ display:inherit;
1970
+ }
1971
+ .sfsi_plus_printst_tool_bdr .sfsi_plus_inside .icon2 {
1972
+ margin: 2px 0;
1973
+ height: 20px;
1974
+ display:inline-block;
1975
+ float: none;
1976
+ /*max-width: 73px;*/
1977
+ width: 100%;
1978
+ }
1979
+ .sfsi_plus_printst_tool_bdr .sfsi_plus_inside .prints_visit, .sfsi_plus_printst_tool_bdr .sfsi_plus_inside .prints_visit_1 {
1980
+ margin: 9px 0 0;
1981
+ height: 20px;
1982
+ float: none;
1983
+ display: inline-block;
1984
+ }
1985
+ .sfsi_plus_printst_tool_bdr {
1986
+ /* margin-left: -59px;*/
1987
+ }
1988
+ .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .icon1>a>img, .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .icon1>a>img, .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon1>a>img, .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon4>a>img, .sfsi_plus_printst_tool_bdr .sfsi_plus_inside .icon1>a>img, .sfsi_plus_printst_tool_bdr .sfsi_plus_inside .icon2>a>img, .utube_tool_bdr .sfsi_plus_inside .icon1>a>img {
1989
+ padding-top: 0;
1990
+ }
1991
+ .sfsi_plus_gpls_tool_bdr {
1992
+ width: 76px;
1993
+ }
1994
+ .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .icon1>a>img {
1995
+ padding-top: 0;
1996
+ }
1997
+ .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside {
1998
+ text-align: center;
1999
+ width: 100%;
2000
+ float: left;
2001
+ }
2002
+ .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .icon1 {
2003
+ margin: 2px 0 -5px 0;
2004
+ display: inline-block;
2005
+ float: none;
2006
+ height: 29px;
2007
+ /*width: 76px;*/
2008
+ }
2009
+ .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .icon2 {
2010
+ margin: 2px 0 2px 0;
2011
+ display:inline-block;
2012
+ float: none;
2013
+ height: 24px;
2014
+ width:100%;
2015
+ /* width: 38px;*/
2016
+ }
2017
+ .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .icon3 {
2018
+ margin: 2px 0 2px 0;
2019
+ display:block;
2020
+ float: none;
2021
+ height: 24px;
2022
+ /* width: 76px;
2023
+ */}
2024
+ .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .gpls_visit, .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .gtalk_2, .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .gtalk_3 {
2025
+ margin: 9px 0 0;
2026
+ height: 29px;
2027
+ }
2028
+ .sfsi_plus_fb_tool_bdr, .sfsi_plus_gpls_tool_bdr, .sfsi_plus_linkedin_tool_bdr, .sfsi_plus_printst_tool_bdr, .sfsi_plus_twt_tool_bdr {
2029
+ bottom: auto;
2030
+ left: 50%;
2031
+ margin-bottom: 2px;
2032
+ }
2033
+ .sfsi_plus_twt_tool_bdr .sfsi_plus_inside {
2034
+ text-align: center;
2035
+ width: 100%;
2036
+ float: left;
2037
+ }
2038
+ .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .cstmicon1 {
2039
+ margin: 2px 0!important;
2040
+ display: inline-block;
2041
+ float: none;
2042
+ vertical-align: middle;
2043
+ overflow: hidden;
2044
+ /*width: 100%;*/
2045
+ }
2046
+ #sfsi_plus_floater .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .cstmicon1 {
2047
+ margin: -7px 0 -14px 0!important;
2048
+ /* height: 41px; */
2049
+ vertical-align: bottom;
2050
+ }
2051
+ .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .cstmicon1 a {
2052
+ display: inline-block;
2053
+ vertical-align: middle;
2054
+ /*width: 100%;*/
2055
+ width:auto;
2056
+ }
2057
+ .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .cstmicon1 a img{
2058
+ float: left;
2059
+ }
2060
+ .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .icon1 {
2061
+ margin: 1px 24px 3px !important;
2062
+ display: inline-block;
2063
+ float: none;
2064
+ /*width: 61px;*/
2065
+ overflow: hidden;
2066
+ height: 20px;
2067
+ }
2068
+ #sfsi_plus_floater .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .icon1{
2069
+ margin: 1px 24px -12px !important;
2070
+ }
2071
+ .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .icon1 iframe {
2072
+ /* width: 61px!important;*/
2073
+ }
2074
+ .sfsi_plus_tool_tip_2, .sfsi_plus_fb_tool_bdr, .sfsi_plus_twt_tool_bdr, .sfsi_plus_linkedin_tool_bdr, .sfsi_plus_printst_tool_bdr, .sfsi_plus_gpls_tool_bdr, .sfsi_plus_Tlleft {width:140px !important; padding:6px 0;}
2075
+ .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .icon2 {
2076
+ margin: 0px 0!important;
2077
+ display:inline-block;
2078
+ float: none;
2079
+ height: 20px;
2080
+ /* width: 58px;s*/
2081
+ }
2082
+ .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .twt_1 {
2083
+ margin: 9px 0 0;
2084
+ display: inline-block;
2085
+ float: none;
2086
+ width: 58px;
2087
+ height: 20px;
2088
+ overflow: hidden;
2089
+ }
2090
+ .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .twt_1 iframe {
2091
+ width: 100%!important;
2092
+ }
2093
+ .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .twt_2 {
2094
+ margin: 9px 0 0;
2095
+ height: 20px;
2096
+ display: inline-block;
2097
+ float: none;
2098
+ width: 58px;
2099
+ }
2100
+ .utube_tool_bdr .sfsi_plus_inside {
2101
+ text-align: center;
2102
+ width: 100%;
2103
+ float: left;
2104
+ }
2105
+ .sfsi_plus_inside > div {}
2106
+ .utube_tool_bdr .sfsi_plus_inside .icon1{
2107
+ margin: 2px 0 2px;
2108
+ height: 24px;
2109
+ display: inline-block;
2110
+ float: none;
2111
+ width: 87px;
2112
+ }
2113
+ #sfsi_plus_floater .utube_tool_bdr .sfsi_plus_inside .icon1{
2114
+ margin:0px 0px 19px 0;
2115
+ }
2116
+ .utube_tool_bdr .sfsi_plus_inside .icon2 {
2117
+ margin: 2px 0 2px;
2118
+ height: 24px;
2119
+ display:inline-block;
2120
+ float: none;
2121
+ min-width: 100px;
2122
+ width: auto;
2123
+ }
2124
+ .utube_tool_bdr {
2125
+ width: 93px;
2126
+ bottom: auto;
2127
+ left: 50%;
2128
+ margin-bottom: 2px;
2129
+ }
2130
+ .sfsi_plus_linkedin_tool_bdr {
2131
+ width: 66px;
2132
+ }
2133
+ .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside {
2134
+ text-align: center;
2135
+ float: left;
2136
+ width: 100%}
2137
+ .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon1{
2138
+ margin: -5px 0 8px 0;
2139
+ display: inline-block;
2140
+ float: none;
2141
+ height: 23px;
2142
+ width: 100%;
2143
+ }
2144
+ #sfsi_plus_floater .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon1{
2145
+ margin: -6px 0 16px 0;
2146
+ display: inherit;
2147
+ }
2148
+ .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon2{
2149
+ margin: 1px 0;
2150
+ display:inline-block;
2151
+ float: none;
2152
+ height: 23px;
2153
+ width: 100%;
2154
+ }
2155
+ #sfsi_plus_floater .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon2{
2156
+ margin: -15px 0 3px 0;
2157
+ display: inherit;
2158
+ }
2159
+ .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon3 {
2160
+ margin: 2px 0;
2161
+ display:inline-block;
2162
+ float: none;
2163
+ height: 23px;
2164
+ width: 100%;
2165
+ }
2166
+
2167
+
2168
+ .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon4 {
2169
+ margin: 2px 0;
2170
+ display: inline-block;
2171
+ float: none;
2172
+ height: 28px;
2173
+ width: 66px;
2174
+ }
2175
+ .sfsi_plus_FrntInner .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon1{ margin: 2px 0;}
2176
+ .sfsi_plus_widget .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon4,
2177
+ .sfsi_plus_widget .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .icon1{ height: auto}
2178
+
2179
+ .sfsi_plus_linkedin_tool_bdr .linkin_1, .sfsi_plus_linkedin_tool_bdr .linkin_2, .sfsi_plus_linkedin_tool_bdr .linkin_3, .sfsi_plus_linkedin_tool_bdr .linkin_4 {
2180
+ margin: 9px 0 0!important;
2181
+ height: 20px;
2182
+ display: inline-block;
2183
+ float: none;
2184
+ overflow: hidden;
2185
+ }
2186
+ .sfsi_plus_twt_tool_bdr {
2187
+ width: 62px;
2188
+ height: auto;
2189
+ }
2190
+ .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .icon1>iframe {
2191
+ margin: 0px auto!important;
2192
+ float: left !important;
2193
+ width: 100%}
2194
+ .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .icon1>iframe #widget {
2195
+ text-align: center;
2196
+ }
2197
+ .sfsi_pop_up .button {
2198
+ border: none;
2199
+ padding: 0;
2200
+ }
2201
+ .pop_up_box .button a {
2202
+ color: #fff;
2203
+ line-height: normal;
2204
+ font-size: 22px;
2205
+ text-decoration: none;
2206
+ text-align: center;
2207
+ width: 482px;
2208
+ height: 80px;
2209
+ margin: 0;
2210
+ display: table-cell;
2211
+ vertical-align: middle;
2212
+ font-family: helveticabold;
2213
+ padding: 0 10px;
2214
+ }
2215
+ .tab3 ul.sfsiplus_tab_3_icns li .radio {
2216
+ margin-top: 7px;
2217
+ }
2218
+ .tab3 ul.sfsiplus_tab_3_icns li label { line-height: 50px!important; margin-left: 20px;}
2219
+ .sfsi_mainContainer input[type=email], .sfsi_mainContainer input[type=number], .sfsi_mainContainer input[type=password], .sfsi_mainContainer input[type=search], .sfsi_mainContainer input[type=tel], .sfsi_mainContainer input[type=text], .sfsi_mainContainer input[type=url], .sfsi_mainContainer select, .sfsi_mainContainer textarea {
2220
+ color: #5a6570!important;
2221
+ }
2222
+ .adminTooltip {
2223
+ left: 142px;
2224
+ position: absolute;
2225
+ }
2226
+ .adPopWidth {
2227
+ min-height: 100px!important;
2228
+ }
2229
+ .main_contant p>a.lit_txt, .tab4 p>a {
2230
+ font-family: helveticaregular;
2231
+ color: #414951;
2232
+ }
2233
+ .tab1 ul.plus_icn_listing li .sfsiplus_custom-txt {
2234
+ margin-left: 5px;
2235
+ }
2236
+ .tab1 ul.plus_icn_listing li .custom-img {
2237
+ margin-left: 18px;
2238
+ }
2239
+ .sfsiplus_linkedin_section .link_4>label.anthr_labl {
2240
+ height: 94px;
2241
+ }
2242
+ .tab3 .tab_3_sav {
2243
+ padding-top: 0;
2244
+ margin: -69px auto 20px;
2245
+ position: relative;
2246
+ z-index: 9;
2247
+ }
2248
+ .mediam_txt {
2249
+ font-family: helveticabold;
2250
+ }
2251
+ .sfsiCtxt {
2252
+ line-height: 51px;
2253
+ font-family: helveticaregular;
2254
+ font-size: 22px;
2255
+ float: left;
2256
+ padding-left: 19px;
2257
+ color: #5a6570;
2258
+ }
2259
+ .customstep2-img {
2260
+ width: 51px;
2261
+ float: left;
2262
+ }
2263
+ .tab2 .row h2.custom {
2264
+ margin: 15px 0 7px 21px;
2265
+ height: 52px;
2266
+ line-height: 51px;
2267
+ font-family: helveticaregular;
2268
+ font-size: 22px;
2269
+ }
2270
+ .plus_custom-links p.cus_link label {
2271
+ margin-left: 0;
2272
+ }
2273
+ .pop_up_box .sfsi_plus_tool_tip_2 .fbb .fb_1 a>img:hover {
2274
+ opacity: .9;
2275
+ }
2276
+ .tab2 .rss_url_row .sfrsTxt {
2277
+ font-size: 17px;
2278
+ line-height: 41px;
2279
+ margin: 0 0 0 4px;
2280
+ font-family: helveticaregular;
2281
+ }
2282
+ .tab2 .rss_url_row .sfrsTxt>strong {
2283
+ font-family: helveticaregular;
2284
+ }
2285
+ .tab2 .utube_inn p.extra_pp {
2286
+ float: left;
2287
+ width: 100%;
2288
+ margin: 0 0 0 48px;
2289
+ }
2290
+ .tab2 .utube_inn p.extra_pp label {
2291
+ float: left;
2292
+ line-height: 41px;
2293
+ margin-right: 8px;
2294
+ }
2295
+ .sfsi_inside .icon2 .fb_iframe_widget span {
2296
+ /* width: 500px!important; sunil*/
2297
+ }
2298
+ @media (max-width:767px) {
2299
+ .icon2 .fb_iframe_widget span {
2300
+ width: auto;
2301
+ }
2302
+ .sfsi_plus_outr_div
2303
+ {
2304
+ top: 10%
2305
+ }
2306
+ .sfsi_plus_outr_div h2
2307
+ {
2308
+ font-size: 22px!important;
2309
+ line-height: 28px;
2310
+ }
2311
+ .sfsi_plus_wicons {
2312
+ padding-top: 0;
2313
+ }
2314
+ }
2315
+ .sfsiplus_specify_counts .listing li .high_prb {
2316
+ height: 41px;
2317
+ }
2318
+ .sfsi_plus_Sicons {
2319
+ position: relative;
2320
+ }
2321
+ .sfsi_plus_Sicons .sf_subscrbe{ margin: 2px 3px 0 0; line-height: 0px;}
2322
+ .sfsi_plus_Sicons .sf_fb{ margin: 0 4px 0 5px; line-height: 0px;}
2323
+ .sfsi_plus_Sicons .sf_twiter{ margin: 1px 7px 0 4px; line-height: 0px;}
2324
+
2325
+ .sfsi_plus_Sicons.left .sf_subscrbe{ margin: 2px 8px 0 0;}
2326
+ .sfsi_plus_Sicons.left .sf_fb{ margin: 0 8px 0 0;}
2327
+ .sfsi_plus_Sicons.left .sf_twiter{ margin: 1px 8px 0 0;}
2328
+
2329
+ .sfsi_plus_Sicons.right .sf_subscrbe{ margin: 2px 0 0; }
2330
+ .sfsi_plus_Sicons.right .sf_fb{ margin: 0 0 0 7px; }
2331
+ .sfsi_plus_Sicons.right .sf_twiter{ margin: 1px 0 0 8px; }
2332
+
2333
+ .sfsi_plus_Sicons .sf_subscrbe, .sfsi_plus_Sicons .sf_twiter
2334
+ {
2335
+ position: relative;
2336
+ width: 75px;
2337
+ }
2338
+ .sfsi_plus_Sicons .sf_twiter iframe
2339
+ {
2340
+ margin: 0px;
2341
+ height: 20px !important;
2342
+ overflow: visible !important;
2343
+ }
2344
+ .sfsi_plus_Sicons .sf_twiter iframe #widget
2345
+ {
2346
+ overflow: visible !important;
2347
+
2348
+ }
2349
+ .sfsi_plus_Sicons .sf_subscrbe a
2350
+ {
2351
+ width: auto;
2352
+ float: left;
2353
+ border: medium none;
2354
+ padding-top: 0px;
2355
+ }
2356
+ .sfsi_plus_Sicons .sf_subscrbe a:focus
2357
+ {
2358
+ outline: medium none;
2359
+ }
2360
+ .sfsi_plus_Sicons .sf_subscrbe a img
2361
+ {
2362
+ float: left;
2363
+ height: 20px !important;
2364
+ }
2365
+ .sfsi_plus_Sicons .sf_fb {
2366
+ position: relative;
2367
+ width: 75px;
2368
+ }
2369
+ .sfsi_plus_Sicons .fb_iframe_widget {
2370
+ float: none;
2371
+ width: auto;
2372
+ vertical-align: middle;
2373
+ margin: 2px 0 0;
2374
+ }
2375
+ /*absolute commented as for standard icon it was giving issue while icon was to be aligned centerd.*/
2376
+ .sfsi_plus_Sicons .sf_fb .fb_iframe_widget>span {
2377
+ position: relative;
2378
+ /*width: 450px!important;*/
2379
+ float: left;
2380
+ }
2381
+
2382
+ .tab2 .utube_inn label {
2383
+ font-size: 18px;
2384
+ }
2385
+ .sfsi_plc_btm {
2386
+ padding: 5px 14px 9px;
2387
+ }
2388
+ .tab7 .field {
2389
+ margin-top: 7px;
2390
+ }
2391
+ .sfsi_plus_outr_div ul li .cmcls img {
2392
+ margin-top: 0!important;
2393
+ }
2394
+ .sfsi_plus_outr_div ul li .sfsiplus_inerCnt {
2395
+ float: left;
2396
+ }
2397
+ .sfsi_plus_outr_div ul li .sfsiplus_inerCnt .bot_no {
2398
+ position: absolute;
2399
+ padding: 1px 0;
2400
+ font-size: 12px!important;
2401
+ line-height: 12px!important;
2402
+ text-align: center;
2403
+ background: #fff;
2404
+ border-radius: 5px;
2405
+ display: block;
2406
+ left: 50%;
2407
+ margin-left: -20px;
2408
+ border: 1px solid #333;
2409
+ white-space: pre;
2410
+ -webkit-box-sizing: border-box;
2411
+ -moz-box-sizing: border-box;
2412
+ box-sizing: border-box;
2413
+ margin-top: 6px;
2414
+ width: 40px;
2415
+ word-break: break-all;
2416
+ word-wrap: break-word;
2417
+ }
2418
+ .sfsi_plus_outr_div ul li .sfsiplus_inerCnt .bot_no:before {
2419
+ content: url(images/count_top_arow.png);
2420
+ position: absolute;
2421
+ height: 9px;
2422
+ margin-left: -7.5px;
2423
+ top: -10px;
2424
+ left: 50%;
2425
+ width: 15px;
2426
+ }
2427
+ .sfsi_plus_outr_div {
2428
+ position: fixed;
2429
+ width: 100%;
2430
+ float: none;
2431
+ left: 50%;
2432
+ top: 20%;
2433
+ margin-left: -50%;
2434
+ opacity: 0;
2435
+ z-index: -1;
2436
+ display: block;
2437
+ text-align: center;
2438
+ }
2439
+ .sfsi_plus_outr_div .sfsi_plus_FrntInner {
2440
+ display: inline-block;
2441
+ padding: 15px 17px 27px 18px;
2442
+ background: #FFF;
2443
+ border: 1px solid #EDEDED;
2444
+ box-shadow: 0 0 5px #CCC;
2445
+ margin: 20px;
2446
+ position: relative;
2447
+ }
2448
+ .sfsi_plus_FrntInner .sfsiclpupwpr
2449
+ {
2450
+ position: absolute;
2451
+ right: -10px;
2452
+ top: -10px;
2453
+ width: 25px;
2454
+ cursor: pointer;
2455
+ }
2456
+ .sfsi_plus_FrntInner .sfsiclpupwpr img
2457
+ {
2458
+ width: auto;
2459
+ float: left;
2460
+ border: medium none;
2461
+ }
2462
+ .tab7 .like_pop_box {
2463
+ width: 100%;
2464
+ margin: 35px auto auto;
2465
+ position: relative;
2466
+ text-align: center;
2467
+ }
2468
+ .tab7 .like_pop_box .sfsi_plus_Popinner {
2469
+ display: inline-block;
2470
+ padding: 18px 20px;
2471
+ box-shadow: 0 0 5px #ccc;
2472
+ -webkit-box-shadow: 0 0 5px #ccc;
2473
+ border: 1px solid #ededed;
2474
+ background: #FFF;
2475
+ }
2476
+ .tab7 .like_pop_box .sfsi_plus_Popinner h2 {
2477
+ margin: 0 0 23px;
2478
+ padding: 0;
2479
+ color: #414951;
2480
+ font-family: helveticabold;
2481
+ font-size: 26px;
2482
+ text-align: center;
2483
+ }
2484
+ .tab7 .like_pop_box .sfsi_plus_Popinner ul {
2485
+ margin: 0;
2486
+ padding: 0;
2487
+ list-style: none;
2488
+ text-align: center;
2489
+ }
2490
+ .tab7 .like_pop_box .sfsi_plus_Popinner ul li {
2491
+ margin: 0;
2492
+ padding: 0;
2493
+ list-style: none;
2494
+ display: inline-block;
2495
+ }
2496
+ .tab7 .like_pop_box .sfsi_plus_Popinner ul li span {
2497
+ margin: 0;
2498
+ width: 54px;
2499
+ display: block;
2500
+ background: url(../images/count_bg.png) no-repeat;
2501
+ height: 24px;
2502
+ overflow: hidden;
2503
+ padding: 10px 2px 2px;
2504
+ font-family: helveticaregular;
2505
+ font-size: 16px;
2506
+ text-align: center;
2507
+ line-height: 24px;
2508
+ color: #5a6570;
2509
+ }
2510
+ .tab7 .like_pop_box .sfsi_plus_Popinner ul li a {
2511
+ color: #5a6570;
2512
+ text-decoration: none;
2513
+ }
2514
+ .sfsi_plus_outr_div .sfsi_plus_FrntInner .sfsi_plus_wicons {
2515
+ margin-bottom: 0;
2516
+ }
2517
+ .sfsi_plus_outr_div ul {
2518
+ list-style: none;
2519
+ margin: 0 0 24px;
2520
+ padding: 0;
2521
+ text-align: center;
2522
+ }
2523
+ a.sfsiColbtn {
2524
+ color: #5a6570!important;
2525
+ float: right;
2526
+ font-size: 14px;
2527
+ margin: -35px -30px 0 0;
2528
+ position: relative;
2529
+ right: 0;
2530
+ font-family: helveticaregular;
2531
+ width: 100px;
2532
+ text-decoration: none;
2533
+ }
2534
+ .tab3 a.sfsiColbtn {
2535
+ margin-top: -55px;
2536
+ }
2537
+ .sfsi_plus_FrntInner ul li:first-of-type .sfsi_plus_wicons {
2538
+ margin-left: 0!important;
2539
+ }
2540
+ ul.sfsiplus_tab_3_icns li .trans_bg {
2541
+ background: #000;
2542
+ padding-left: 3px;
2543
+ }
2544
+ .tab2 .sfsiplus_instagram_section {
2545
+ padding-bottom: 20px;
2546
+ }
2547
+ h1.abt_titl {
2548
+ text-align: center;
2549
+ margin: 19% 0 0;
2550
+ }
2551
+ .sfcm.sfsi_wicon { padding: 0; width: 100% !important; border: medium none !important; height: auto !important;}
2552
+ .fb_iframe_widget span {
2553
+ vertical-align: top!important;
2554
+ }
2555
+ .sfsi_plus_outr_div .sfsi_plus_FrntInner ul {
2556
+ margin: 0 0 0 3px;
2557
+ }
2558
+ .sfsi_plus_outr_div .sfsi_plus_FrntInner ul li {
2559
+ margin: 0 3px 0 0;
2560
+ }
2561
+ @-moz-document url-prefix() {
2562
+ .sfcm.sfsi_wicon {
2563
+ margin: -1px;
2564
+ padding: 0;
2565
+ }
2566
+ }@media (min-width:320px) and (max-width:480px) {
2567
+ .sfsi_plus_tool_tip_2, .tool_tip {
2568
+ padding: 5px 14px 0;
2569
+ }
2570
+ .sfsi_plus_inside:last-child {
2571
+ margin-bottom: 18px;
2572
+ clear: both;
2573
+ }
2574
+ .sfsi_plus_outr_div {
2575
+ top: 10%}
2576
+ .sfsi_plus_FrntInner .sfsi_plus_wicons {
2577
+ width: 31px!important;
2578
+ height: 31px!important;
2579
+ }
2580
+ .sfsi_plus_FrntInner .sfsi_plus_wicons img {
2581
+ width: 100%}
2582
+ }
2583
+ @media (max-width:320px) {
2584
+ .sfsi_plus_tool_tip_2, .tool_tip {
2585
+ padding: 5px 14px 0;
2586
+ }
2587
+ .sfsi_plus_inside:last-child {
2588
+ margin-bottom: 18px;
2589
+ clear: both;
2590
+ }
2591
+ .sfsi_plus_FrntInner .sfsi_plus_wicons {
2592
+ width: 31px!important;
2593
+ height: 31px!important;
2594
+ }
2595
+ .sfsi_plus_FrntInner .sfsi_plus_wicons img {
2596
+ width: 100%}
2597
+ }
2598
+ ul.SFSI_lsngfrm {
2599
+ float: left;
2600
+ width: 61%}
2601
+ ul.SFSI_instructions {
2602
+ float: left;
2603
+ width: 39%}
2604
+ ul.SFSI_instructions li {
2605
+ font-size: 12px!important;
2606
+ line-height: 25px!important;
2607
+ margin: 0!important;
2608
+ padding: 0 0 0 15px!important;
2609
+ width: 100%}
2610
+
2611
+ /*{Monad}*/
2612
+ /*Upload Skins css*/
2613
+ .cstmskin_popup
2614
+ {
2615
+ width: 500px;
2616
+ background: #FFF;
2617
+ box-shadow: 0 0 5px 3px #d8d8d8;
2618
+ margin: 40px 0px auto;
2619
+ padding: 20px 25px 20px;
2620
+ font-family: helveticaregular;
2621
+ color: #5a6570;
2622
+ height: auto;
2623
+ float: left;
2624
+ position: relative;
2625
+ left: 35%;
2626
+ }
2627
+ .cstomskins_wrpr {
2628
+ float: left;
2629
+ width: 100%;
2630
+ }
2631
+ .custskinmsg {
2632
+ float: left;
2633
+ font-size: 15px;
2634
+ margin-top: 10px;
2635
+ width: 100%;
2636
+ }
2637
+ .custskinmsg > ul {
2638
+ color: #000;
2639
+ float: left;
2640
+ margin-top: 8px;
2641
+ width: 100%;
2642
+ }
2643
+ ul.cstmskin_iconlist {
2644
+ float: left;
2645
+ margin-top: 10px;
2646
+ width: 100%;
2647
+ height: 53vh;
2648
+ overflow-y: scroll;
2649
+ }
2650
+ .cstmskin_iconlist > li {
2651
+ float: left;
2652
+ margin: 3px 0;
2653
+ width: 100%;
2654
+ }
2655
+ .cstm_icnname {
2656
+ float: left;
2657
+ width: 30%;
2658
+ }
2659
+ .cstmskins_btn > img {
2660
+ float: left;
2661
+ margin-right: 25px;
2662
+ }
2663
+ .cstmskin_btn
2664
+ {
2665
+ width: auto;
2666
+ float: left;
2667
+ padding: 3px 20px;
2668
+ color: #fff;
2669
+ background-color:#12a252;
2670
+ text-decoration: none;
2671
+ margin: 0 10px;
2672
+ }
2673
+ .cstmskins_sbmt
2674
+ {
2675
+ width: 100%;
2676
+ float: left;
2677
+ text-align: center;
2678
+ margin-top: 15px;
2679
+ }
2680
+ .done_btn
2681
+ {
2682
+ width: auto;
2683
+ padding: 3px 80px;
2684
+ color: #fff;
2685
+ background-color:#12a252;
2686
+ text-decoration: none;
2687
+ font-size: 18px;
2688
+ }
2689
+ .cstmskin_btn:hover, .done_btn:hover, .cstmskin_btn:focus, .done_btn:focus
2690
+ {
2691
+ color: #fff;
2692
+ }
2693
+ .skswrpr, .dlt_btn
2694
+ {
2695
+ display: none;
2696
+ }
2697
+ .cstmutbewpr
2698
+ {
2699
+ width: 100%;
2700
+ float: left;
2701
+ margin-top: 10px;
2702
+ }
2703
+ .cstmutbewpr ul.enough_waffling li
2704
+ {
2705
+ width: auto;
2706
+ float: left;
2707
+ margin-right: 20px;
2708
+ }
2709
+ .cstmutbewpr ul.enough_waffling li span
2710
+ {
2711
+ float: left;
2712
+ }
2713
+ .cstmutbewpr ul.enough_waffling li label
2714
+ {
2715
+ width: auto;
2716
+ float: left;
2717
+ margin-top: 10px;
2718
+ margin-left: 10px;
2719
+ }
2720
+ .cstmutbewpr .cstmutbtxtwpr
2721
+ {
2722
+ width: 100%;
2723
+ float: left;
2724
+ padding-top: 10px;
2725
+ }
2726
+ .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlnmewpr
2727
+ {
2728
+ width: 100%;
2729
+ float: left;
2730
+ display: none;
2731
+ }
2732
+ #accordion .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlnmewpr p, #accordion .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlidwpr p
2733
+ {
2734
+ margin-left: 0px;
2735
+ }
2736
+ .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlidwpr
2737
+ {
2738
+ width: 100%;
2739
+ float: left;
2740
+ display: none;
2741
+ }
2742
+ #accordion .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlnmewpr p label, #accordion .cstmutbewpr .cstmutbtxtwpr .cstmutbchnlidwpr p label
2743
+ {
2744
+ width: 120px;
2745
+ }
2746
+ .sfsi_plus_widget .sfsi_plus_wDiv .sfsi_plus_wicons .sfsiplus_inerCnt a, .sfsi_plus_widget .sfsi_plus_wDiv .sfsi_plus_wicons .sfsiplus_inerCnt a.sficn
2747
+ {
2748
+ padding: 0px;
2749
+ margin: 0px;
2750
+ width: 100%;
2751
+ /*float: left;*/
2752
+ border: medium none;
2753
+ }
2754
+ .sfsi_socialwpr
2755
+ {
2756
+ width: auto;
2757
+ float: left;
2758
+ }
2759
+ .sfsi_socialwpr .sf_fb
2760
+ {
2761
+ float:left;
2762
+ margin:5px 5px 5px 5px;
2763
+ min-height: 20px;
2764
+ }
2765
+
2766
+ .sfsipyplfrm
2767
+ {
2768
+ float: left;
2769
+ margin-top: 10px;
2770
+ width: 100%;
2771
+ }
2772
+ .sfsipyplfrm input[type="submit"]
2773
+ {
2774
+ background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
2775
+ border: medium none;
2776
+ color: #0074a2;
2777
+ cursor: pointer;
2778
+ font-weight: normal;
2779
+ margin: 0;
2780
+ padding: 5px 10px;
2781
+ text-decoration: underline;
2782
+ }
2783
+ .sfsipyplfrm input[type="submit"]:hover
2784
+ {
2785
+ color: #2ea2cc
2786
+ }
2787
+ .pop_up_box_ex {
2788
+ background: none repeat scroll 0 0 #fff;
2789
+ box-shadow: 0 0 5px 3px #d8d8d8;
2790
+ color: #5a6570;
2791
+ font-family: helveticaregular;
2792
+ margin: 200px auto;
2793
+ min-height: 150px;
2794
+ padding: 20px 25px 0px;
2795
+ position: relative;
2796
+ width: 290px;
2797
+ }
2798
+ .pop_up_box_ex {
2799
+ color: #5a6570;
2800
+ font-family: helveticaregular;
2801
+ }
2802
+
2803
+ .tab8 ul.sfsiplus_icn_listing8 li .sfsiplus_right_info {
2804
+ font-family: helveticaregular;
2805
+ width: 94.7%;
2806
+ float: left;
2807
+ }
2808
+ .tab8 ul.sfsiplus_icn_listing8 li .sfsiplus_right_info p label.ckckslctn
2809
+ {
2810
+ display: none;
2811
+ }
2812
+
2813
+ .tab8 .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr > li {
2814
+ width:100% !important;
2815
+ max-width:100% !important;
2816
+ border-left: 45px solid transparent;
2817
+ -webkit-box-sizing: border-box;
2818
+ -moz-box-sizing: border-box;;
2819
+ -ms-box-sizing: border-box;
2820
+ -o-box-sizing: border-box;
2821
+ box-sizing: border-box;
2822
+ }
2823
+
2824
+ .tab8 .icons_size > input {
2825
+ background:none repeat scroll 0 0 #e5e5e5;
2826
+ width:80px;
2827
+ float:left;
2828
+ padding:10px 0;
2829
+ text-align:center;
2830
+ }
2831
+ .tab8 .icons_size > ins { margin-left:19px; }
2832
+ .tab8 .icons_size > span.last { width: auto !important; clear: left }
2833
+ .tab8 .radio_section.tb_4_ck { margin: 0 20px 0 0 !important; }
2834
+ .tab8 .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr .row,
2835
+ .tab8 .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr p,
2836
+ .tab8 .options {
2837
+ float: none;
2838
+ width: 100%;
2839
+ border-left: 60px solid transparent;
2840
+ -webkit-box-sizing: border-box;
2841
+ -moz-box-sizing: border-box;
2842
+ -o-box-sizing: border-box;
2843
+ -ms-box-sizing: border-box;
2844
+ box-sizing: border-box;
2845
+ }
2846
+ .tab8 .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr label { width: auto; }
2847
+
2848
+ .tab8 .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr .social_icon_like1 ul { margin-left: 15px}
2849
+ .tab8 .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr .social_icon_like1 li { width: auto; min-width: auto; margin: 0 50px 0 0 }
2850
+ .tab8 .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr .usually > li { width:85% !important; max-width: 100% !important; margin-left: 70px; font-family: 'helveticaneue-light'; padding-bottom: 5px}
2851
+ .tab8 .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr .options > label { width:356px !important; margin:0; width: auto; margin-bottom: 0; margin-top: 0px; }
2852
+ .tab8 .row.sfsiplus_PostsSettings_section .options .first.chcklbl { float: left !important; width: 335px !important; }
2853
+ .tab8 .row.sfsiplus_PostsSettings_section .options .chckwpr { width:400px; float:right; }
2854
+ .tab8 .row.sfsiplus_PostsSettings_section .options {
2855
+ width:90%;
2856
+ margin:0;
2857
+ font-family: 'helveticaneue-light';
2858
+ float: left;
2859
+ margin-bottom: 10px;
2860
+ max-width: 895px;
2861
+ border-left: none;
2862
+ }
2863
+ .sfsiplus_toggleonlystndrshrng { margin-bottom: 30px !important}
2864
+ .tab8 .row.sfsiplus_PostsSettings_section .options.shareicontextfld { margin: 15px 0; }
2865
+ .tab8 .sfsiplus_tab_3_icns.flthmonpg .radio { margin-top:55px !important; }
2866
+ .tab8 .radiodisplaysection { float: left;}
2867
+
2868
+
2869
+
2870
+ /*palak css end*/
2871
+ /*modify by palak*/
2872
+ .tab8 ul.sfsiplus_icn_listing8 li {
2873
+ float: left;
2874
+ padding: 11px 0 40px 8px;
2875
+ width: 100%;
2876
+ /*max-width: 1000px;*/
2877
+ margin: 0
2878
+ }
2879
+ .sfsiplusplacethemanulywpr { max-width: 98% !important}
2880
+
2881
+ /*modify by palak*/
2882
+ /*modify by palak*/
2883
+ .tab8 ul.sfsiplus_icn_listing8 {
2884
+ list-style: outside none none;
2885
+ margin: 5px 0 0;
2886
+ overflow: hidden;
2887
+ }
2888
+ /*modify by palak*/
2889
+ .sfsiplus_right_info label.sfsiplus_sub-subtitle
2890
+ {
2891
+ font-size: 16px !important;
2892
+ font-weight: normal;
2893
+ }
2894
+ ul.plus_icn_listing li .sfsiplus_right_info label.sfsiplus_sub-subtitle a
2895
+ {
2896
+ font-size: 13px;
2897
+ }
2898
+ .tab8 ul.sfsiplus_tab_3_icns li .radio {
2899
+ margin-top: 7px;
2900
+ }
2901
+
2902
+ .tab8 ul.sfsiplus_tab_3_icns li label {
2903
+ line-height: 50px !important;
2904
+ }
2905
+ .tab8 ul.sfsiplus_icn_listing8 li .sfsiplus_tab_3_icns li {
2906
+ width: 50%;
2907
+ max-width: 450px;
2908
+ min-width: 420px;
2909
+ padding-left: 0;
2910
+ padding-bottom: 15px
2911
+ }
2912
+
2913
+ .tab8 ul.sfsiplus_icn_listing8 li .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr>li:nth-child(1),
2914
+ .tab8 ul.sfsiplus_icn_listing8 li .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr>li:nth-child(2),
2915
+ .tab8 ul.sfsiplus_icn_listing8 li .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr>li:nth-child(3) { width: 33% !important}
2916
+ .space.disblfltonmbl p.list { width: 100%; margin-bottom: 28px}
2917
+
2918
+
2919
+ #accordion .tab8 .sfsiplus_icn_listing8 li .sfsiplus_right_info p { display: table}
2920
+
2921
+ /*modify by palak*/
2922
+ .tab8 .row
2923
+ {
2924
+ clear: both;
2925
+ display: block;
2926
+ float: left;
2927
+ font-family: helveticaregular;
2928
+ line-height: 42px;
2929
+ margin-top: 25px;
2930
+ padding-top: 15px;
2931
+ width: 100%;
2932
+ }
2933
+ /*modify by palak*/
2934
+ .tab8 .icons_size { margin-top: -12px; }
2935
+ .tab8 .icons_size { position: relative; font-family: 'helveticaneue-light'; width: 538px; float: right }
2936
+ .tab8 .icons_size span {
2937
+ display: block;
2938
+ float: left;
2939
+ font-size: 20px;
2940
+ font-weight: 400;
2941
+ line-height: 42px;
2942
+ margin-right: 18px;
2943
+ }
2944
+
2945
+ .tab8.icons_size span.last
2946
+ {
2947
+ margin-left: 55px;
2948
+ }
2949
+ .tab8 .icons_size ins
2950
+ {
2951
+ float: left;
2952
+ font-size: 17px;
2953
+ font-weight: 400;
2954
+ margin-right: 25px;
2955
+ text-decoration: none;
2956
+ margin-bottom: 20px;
2957
+ }
2958
+ .tab8 .social_icon_like1 {
2959
+ float: left;
2960
+ margin: 0;
2961
+ padding: 30px 0 0;
2962
+ text-align: center;
2963
+ width: 100%;
2964
+ }
2965
+ .tab8 .social_icon_like1 ul {
2966
+ list-style: outside none none;
2967
+ margin: 0;
2968
+ padding: 0;
2969
+ text-align: center;
2970
+ }
2971
+ .tab8 .social_icon_like1 li {
2972
+ display: inline-block;
2973
+ list-style: outside none none;
2974
+ margin: 0 0 0 45px !important;
2975
+ padding: 0;
2976
+ width: auto !important;
2977
+ min-width: 100px !important;
2978
+ }
2979
+ .tab8 .social_icon_like1 li a {
2980
+ color: #5a6570;
2981
+ display: block;
2982
+ text-decoration: none;
2983
+ }
2984
+ .tab8 .social_icon_like1 li img {
2985
+ display: block;
2986
+ float: left;
2987
+ margin-right: 5px;
2988
+ }
2989
+ .tab8 ul.usually {
2990
+ list-style: outside none none;
2991
+ margin: 28px 0 15px 60px;
2992
+ padding: 0;
2993
+ float: left
2994
+ }
2995
+ .tab8 ul.usually li {
2996
+ font-size: 17px;
2997
+ list-style: outside none none;
2998
+ margin: 0;
2999
+ padding: 0;
3000
+ text-align: left;
3001
+ width: auto;
3002
+ }
3003
+ .tab8 ul.enough_waffling {
3004
+ list-style: outside none none;
3005
+ margin: 25px 0 0;
3006
+ padding: 0;
3007
+ text-align: center;
3008
+ }
3009
+ .tab8 ul.enough_waffling li {
3010
+ display: inline-block;
3011
+ list-style: outside none none;
3012
+ margin: 0 22px;
3013
+ padding: 0;
3014
+ }
3015
+ .tab8 ul.enough_waffling li span {
3016
+ float: left;
3017
+ }
3018
+ .tab8 ul.enough_waffling li label {
3019
+ color: #5a6570;
3020
+ float: left;
3021
+ font-family: helveticaregular;
3022
+ font-size: 18px;
3023
+ font-weight: 400;
3024
+ line-height: 38px;
3025
+ margin: 0 0 0 20px;
3026
+ text-align: center;
3027
+ }
3028
+ /*modify by palak*/
3029
+ .tab8 .row {
3030
+ clear: both;
3031
+ display: block;
3032
+ float: left;
3033
+ font-family: helveticaregular;
3034
+ line-height: 42px;
3035
+ margin-top: 0px;
3036
+ padding-top: 10px;
3037
+ width: 100%;
3038
+ }
3039
+ /*modify by palak*/
3040
+ .tab8 .options {
3041
+ clear: both;
3042
+ float: left;
3043
+ margin-top: 25px;
3044
+ width: auto;
3045
+ float: none;
3046
+ }
3047
+ .tab8 .options label.first {
3048
+ font-family: 'helveticaneue-light';
3049
+ font-size: 18px;
3050
+ }
3051
+ .tab8 .options label {
3052
+ color: #5a6570;
3053
+ float: left;
3054
+ font-family: 'helveticaneue-light';
3055
+ font-size: 18px;
3056
+ line-height: 46px;
3057
+ width: 345px;
3058
+ }
3059
+ .tab8 .options input {
3060
+ background: none repeat scroll 0 0 #e5e5e5;
3061
+ border: 0 none;
3062
+ box-shadow: 2px 2px 3px #dcdcdc inset;
3063
+ float: left;
3064
+ padding: 10px;
3065
+ width: 308px;
3066
+ }
3067
+ .tab8 .options .field {
3068
+ float: left;
3069
+ position: relative;
3070
+
3071
+ }
3072
+ .tab8 .options .field .select {
3073
+ background: url(../images/select_bg1.jpg) no-repeat scroll 0 0 rgba(0, 0, 0, 0);
3074
+ display: block;
3075
+ font-family: helveticaregular;
3076
+ padding-left: 17px;
3077
+ width: 207px;
3078
+ }
3079
+ .tab8 .options .field select.styled {
3080
+ height: 46px;
3081
+ left: 0;
3082
+ line-height: 46px;
3083
+ position: absolute;
3084
+ top: 0;
3085
+ width: 213px;
3086
+ }
3087
+ .tab8 .options .field select.styled {
3088
+ line-height: 46px;
3089
+ }
3090
+ .tab8 ul.sfsiplus_icn_listing8 li .snglchckcntr .sfsiplus_right_info {
3091
+ float: left;
3092
+ margin-right: 0;
3093
+ text-align: left;
3094
+ width: auto;
3095
+ font-family: 'helveticaneue-light';
3096
+ font-size: 18px;
3097
+ line-height: 30px;
3098
+ }
3099
+ .chckwpr .snglchckcntr:first-child { float:left; }
3100
+ .chckwpr .snglchckcntr:last-child { float:left; margin-left: 110px; }
3101
+ .chckwpr
3102
+ {
3103
+ width:100%;
3104
+ float:left;
3105
+ }
3106
+ .cstmutbchnlidwpr .utbe_instruction,.cstmutbchnlnmewpr .utbe_instruction, .lnkdin_instruction {
3107
+ float: left;
3108
+ line-height: 22px;
3109
+ margin-top: 10px;
3110
+ width: 100%;
3111
+ }
3112
+ #accordion .tab8 .sfsiplus_icn_listing8 li .sfsiplus_right_info p
3113
+ {
3114
+ font-size: 20px;
3115
+ }
3116
+ #accordion .tab8 ul.sfsiplus_tab_3_icns { margin-top: 25px; }
3117
+ #accordion .tab8 ul.sfsiplus_tab_3_icns.flthmonpg { margin-left: 45px}
3118
+ #accordion .tab8 .sfsiplus_icn_listing8 li .sfsiplus_right_info p.cstmdisplaysharingtxt { padding-top: 5px; display: inline;}
3119
+ #accordion .tab8 ul.sfsiplus_shwthmbfraftr .labelhdng4,
3120
+ #accordion .tab8 ul.sfsiplus_shwthmbfraftr .row h4.labelhdng4 { color: #555; font-size: 20px; margin-left: 20px; font-family: 'helveticaregular'}
3121
+ .tab8 .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr .row.sfsiplus_PostsSettings_section { border-left: 105px solid transparent; float: left; padding-top: 0}
3122
+ .sfsiplus_toggleonlystndrshrng { margin-bottom: 0 !important}
3123
+ .radiodisplaysection { float: left}
3124
+ .tab8 .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr .row.sfsiplus_PostsSettings_section>.labelhdng4 { margin-bottom: 20px !important}
3125
+ .sfsiplus_shwthmbfraftr { margin-top: 5px !important}
3126
+ label.sfsiplus_toglpstpgsbttl { float: left; margin-top: 5px !important}
3127
+ #accordion .tab8 ul.sfsiplus_shwthmbfraftr .row h4 {
3128
+ font-family: 'helveticaneue-light';
3129
+ font-weight: normal;
3130
+ font-size: 18px;
3131
+ color: #69737c;
3132
+ float: left
3133
+ }
3134
+ .tab8 .row.sfsiplus_PostsSettings_section .options .seconds.chcklbl { float: right; width: 400px !important; }
3135
+ .sfsibeforpstwpr
3136
+ {
3137
+ width: 100%;
3138
+ float: left;
3139
+ line-height: 18px;
3140
+ margin: 5px 0;
3141
+ }
3142
+ .sfsiaftrpstwpr
3143
+ {
3144
+ width: 100%;
3145
+ float: left;
3146
+ line-height: 18px;
3147
+ margin: 5px 0;
3148
+ }
3149
+ .sfsibeforpstwpr .sfsi_plus_Sicons span
3150
+ {
3151
+ font-size: 20px;
3152
+ }
3153
+ .sfsiaftrpstwpr .sfsi_plus_Sicons span
3154
+ {
3155
+ font-size: 20px;
3156
+ }
3157
+ .sfsibeforpstwpr .sfsi_plus_Sicons
3158
+ {
3159
+
3160
+ }
3161
+ .sfsiaftrpstwpr .sfsi_plus_Sicons
3162
+ {
3163
+
3164
+ }
3165
+ .sfsibeforpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr
3166
+ {
3167
+ width: auto;
3168
+ float: left;
3169
+ }
3170
+ .sfsiaftrpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr
3171
+ {
3172
+ width: auto;
3173
+ float: left;
3174
+ }
3175
+ .sfsibeforpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr .sfsi_plus_wicons
3176
+ {
3177
+ float: left;
3178
+ }
3179
+ .sfsiaftrpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr .sfsi_plus_wicons
3180
+ {
3181
+ float: left;
3182
+ }
3183
+ .sfsi_flicnsoptn3
3184
+ {
3185
+ color: #69737c;
3186
+ float: left;
3187
+ font-size: 20px;
3188
+ margin: 62px 5px 0 20px;
3189
+ font-family: 'helveticaneue-light';
3190
+
3191
+ width: 120px;
3192
+ }
3193
+
3194
+ .sfsi_ckckslctnlbl
3195
+ {
3196
+ font-weight: bold;
3197
+ }
3198
+ .sfsibeforpstwpr iframe{max-width: none; vertical-align: middle;}
3199
+ .sfsiaftrpstwpr iframe{max-width: none; vertical-align: middle;}
3200
+ .sfwp_fivestar_ul li { display: block; padding-right: 20px; }
3201
+ .fb_iframe_widget iframe
3202
+ {
3203
+ max-width: none;
3204
+ }
3205
+ .sfsi_mainContainer p.bldtxtmsg{float: left; font-size: 15px; /*font-weight: bold;*/ margin-top: 12px; width: 100%;}
3206
+ .sfsi_mainContainer p.translatelilne{float: left; font-size: 15px;font-weight: bold;color: #414951; margin-top: 12px; width: 100%;}
3207
+ .sfsiplus_icn_listing8 li > div{width: auto; float: left;}
3208
+ #accordion .tab8 .sfsiplus_icn_listing8 li .sfsiplus_right_info p.cstmdisextrpdng
3209
+ {
3210
+ padding-bottom: 30px;
3211
+ float: left;
3212
+ }
3213
+ #accordion .tab8 .sfsiplus_icn_listing8 li .sfsiplus_right_info p.cstmdisextrpdng
3214
+ {
3215
+ background: none;
3216
+ }
3217
+ #accordion .tab8 .sfsiplus_icn_listing8 li .sfsiplus_right_info p.cstmdisextrpdng code
3218
+ {
3219
+ background: none repeat scroll 0 0 transparent;
3220
+ padding-left: 0px;
3221
+ padding-right: 0px;
3222
+ }
3223
+ .options.sfsipluspstvwpr {
3224
+ margin-left: 17% !important;
3225
+ margin-left: 0% !important;
3226
+ }
3227
+ .tab8 .row.sfsiplus_PostsSettings_section .options.sfsipluspstvwpr .first.chcklbl
3228
+ {
3229
+ width: 180px !important;
3230
+ }
3231
+ .sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr {
3232
+ overflow: visible;
3233
+ }
3234
+ /*.sfsi_plus_twt_tool_bdr .sfsi_plus_inside .icon1{margin: 2px 35px 2px !important;clear:both;}*/
3235
+ .sfsi_plus_twt_tool_bdr .sfsi_plus_inside .cstmicon1 a img{margin: 2px 12px 2px !important;clear:both;text-align:center;float:none;}
3236
+ .cstmicon1{text-align:center;}
3237
+ .sfsi_plus_Sicons img, .sfsiplusid_facebook img, .sfsiplusid_twitter img { height: 20px;}
3238
+
3239
+ .sfsi_plus_wicons a.sficn, .sfsi_plus_wicons .sfsi_plus_inside a, .sfsi_plus_Sicons div a
3240
+ {
3241
+ box-shadow: none;
3242
+ border: none;
3243
+ }
3244
+
3245
+ .sfsi_plus_Sicons .sf_pinit
3246
+ {
3247
+ margin-right: 4px;
3248
+ }
3249
+ .sfsi_plus_Sicons .sf_pinit > span
3250
+ {
3251
+ height: 22px !important;
3252
+ vertical-align: middle;
3253
+ }
3254
+ .sfsi_plus_Sicons .sf_pinit > span
3255
+ {
3256
+ height: 20px !important;
3257
+ vertical-align: middle;
3258
+ }
3259
+
3260
+ /*.sfsi_plus_Sicons .sf_pinit > span > span
3261
+ {
3262
+ display: inline-block;
3263
+ width: 47px !important;
3264
+ position: relative !important;
3265
+ margin-left: 40px;
3266
+ vertical-align: top;
3267
+ right: 0 !important;
3268
+ }*/
3269
+ .sfsibeforpstwpr .sfsi_plus_Sicons .sf_pinit span{font-size:11px !important;}
3270
+ .sfsiaftrpstwpr .sfsi_plus_Sicons .sf_pinit span{font-size:11px !important;}
3271
+ .sfsibeforpstwpr .sfsi_plus_Sicons .sfsi_plus_inside .icon2 span{font-size:11px !important;}
3272
+ .sfsiaftrpstwpr .sfsi_plus_Sicons .sfsi_plus_inside .icon2 span{font-size:11px !important;}
3273
+ .sfsi_plus_wicons a {box-shadow: none !important;}
3274
+ .sfsi_plus_inside .fb_iframe_widget { -webkit-appearance:none !important; }
3275
+
3276
+ .sfsi_plus_inside img {
3277
+ margin-bottom: 0;
3278
+ vertical-align: bottom!important;
3279
+ }
3280
+ .sfsi_plus_Sicons .sf_pinit{
3281
+ margin:0 0 0 10px;
3282
+ }
3283
+ .wp-block-ultimate-social-media-plus-sfsi-plus-share-block .sfsi_plus_block_text_before_icon{
3284
+ display:inline-block;
3285
+ vertical-align:top;
3286
+ }
3287
+ .wp-block-ultimate-social-media-plus-sfsi-plus-share-block .sfsi_plus_block{
3288
+ display:inline-block
3289
+ }
3290
+
3291
+ /* MZ CODE START */
3292
+ .sfsi_plus_vk_tool_bdr {
3293
+ width: 68px;
3294
+ height: auto
3295
+ }
3296
+ .sfsi_plus_vk_tool_bdr .sfsi_plus_inside {
3297
+ text-align: center;
3298
+ width: 100%;
3299
+ float: left;
3300
+ overflow: hidden
3301
+ }
3302
+ .sfsi_plus_vk_tool_bdr .sfsi_plus_inside .icon1 {
3303
+ margin: 2px 0 2px 0;
3304
+ height: 28px;
3305
+ display: inline-block;
3306
+ float: none
3307
+ }
3308
+ .sfsi_plus_vk_tool_bdr .sfsi_plus_inside .icon2 {
3309
+ margin: 5px auto;
3310
+ min-height: 25px !important;
3311
+ display: block;
3312
+ overflow: hidden;
3313
+ }
3314
+ .sfsi_plus_vk_tool_bdr .sfsi_plus_inside .icon3 {
3315
+ margin: 2px 0 2px 0;
3316
+ height: 20px;
3317
+ display: inline-block;
3318
+ float: none
3319
+ }
3320
+ .sfsi_plus_vk_tool_bdr .sfsi_plus_inside .icon4 {
3321
+ display: inline-block!important;
3322
+ float: none!important;
3323
+ vertical-align: middle!important;
3324
+ width: 100%!important
3325
+ }
3326
+
3327
+ .sfsiplusid_telegram .sfsi_plus_inside .icon2 img,.sfsiplusid_vk .sfsi_plus_inside .icon2 img,
3328
+ .sfsiplusid_weibo .sfsi_plus_inside .icon2 img,.sfsiplusid_xing .sfsi_plus_inside .icon2 img {
3329
+ width: 80px;height: 24px;
3330
+ }
3331
+
3332
+ .sfsiplusid_vk .sfsi_plus_inside .icon1 img,.sfsiplusid_weibo .sfsi_plus_inside .icon1 img,
3333
+ .sfsiplusid_xing .sfsi_plus_inside .icon1 img{width: 80px;}
3334
+ /* MZ CODE END */
3335
+ .sfsiplusid_ok .sfsi_plus_inside, .sfsiplusid_telegram .sfsi_plus_inside{
3336
+ text-align:center;
3337
+ }
3338
+ .sfsiplusid_ok .sfsi_plus_inside .icon3 img ,.sfsiplusid_telegram .sfsi_plus_inside .icon1 img {
3339
+ width: 107px;
3340
+ height: 37px;
3341
+ }
3342
+ .sfsiplusid_ok .sfsi_plus_inside .icon2 img {
3343
+ width: 65px;
3344
+ height: 30px;
3345
+ margin-top: 5px;
3346
+ }
3347
+ .sfsiplusid_ok .sfsi_plus_inside .icon1 img {
3348
+ width: 103px;
3349
+ height: 25px;
3350
+ }
3351
+ .sfsiplusid_vk .sfsi_plus_inside .icon1 img, .sfsiplusid_weibo .sfsi_plus_inside .icon1 img, .sfsiplusid_xing .sfsi_plus_inside .icon1 img {
3352
+ width: 80px;
3353
+ }
3354
+ .sfsiplusid_wechat .sfsi_plus_inside .icon1 {
3355
+ margin:10px;
3356
+ }
3357
+ .sfsiplusid_round_icon_wechat{
3358
+ border-radius:20px;
3359
+ }
3360
+ .sfsi_plus_overlay{
3361
+ background: rgba(0,0,0,.8);
3362
+ width: 100%;
3363
+ height: 100%;
3364
+ top: 0;
3365
+ left: 0;
3366
+ z-index: 99999999;
3367
+ position: fixed;
3368
+ }
3369
+ .sfsi_plus_wechat_scan .sfsi_plus_inner_display{
3370
+ text-align: center;
3371
+ vertical-align: middle;
3372
+ margin-top: 50px;
3373
+ }
3374
+ .sfsi_plus_overlay a.close_btn{
3375
+ position: absolute;
3376
+ top: 20px;
3377
+ right: 20px;
3378
+ background: #fff;
3379
+ border-radius: 15px;
3380
+ width: 30px;
3381
+ height: 30px;
3382
+ line-height: 30px;
3383
+ text-align:center;
3384
+ }
3385
+ .hide{display:none;}.show{display:block;}
3386
+
3387
+ .sfsiplusid_facebook .icon3 span{
3388
+ width:62px!important;
3389
+ height:20px!important;
3390
+ }
3391
+ .sfsiplusid_facebook .icon3 iframe{
3392
+ width:unset!important;
3393
+ height:unset!important;
3394
+ }
3395
+ .sfsiplusid_twitter .icon2 iframe{
3396
+ width:62px!important;
3397
+ height:20px!important;
3398
+ }
3399
+ a.pop-up .radio{
3400
+ opacity: 0.5;
3401
+ background-position: 0px 0px !important;
3402
+ }
3403
+ .tab8 .sfsi_plus_responsive_icon_option_li .options .first.first.first {
3404
+ width: 25%!important;
3405
+ }
3406
+ .sfsi_plus_responsive_icon_gradient{
3407
+ background-image: -webkit-linear-gradient(bottom,rgba(0, 0, 0, 0.17) 0%,rgba(255, 255, 255, 0.17) 100%);
3408
+ background-image: -moz-linear-gradient(bottom,rgba(0, 0, 0, 0.17) 0%,rgba(255, 255, 255, 0.17) 100%);
3409
+ background-image: linear-gradient(to bottom,rgba(0,0,0,.17) 0%,rgba(255,255,255,.17) 100%);
3410
+ }
3411
+ .sfsi_plus_responsive_icons a{
3412
+ text-decoration: none!important;
3413
+ box-shadow: none!important;
3414
+ }
3415
+ .sfsi_plus_responsive_icons .sfsi_plus_responsive_icon_facebook_container{ background-color:#336699;}
3416
+ .sfsi_plus_responsive_icons .sfsi_plus_responsive_icon_follow_container{ background-color:#00B04E;}
3417
+ .sfsi_plus_responsive_icons .sfsi_plus_responsive_icon_twitter_container{ background-color:#55ACEE;}
3418
+ .sfsi_plus_small_button {
3419
+ line-height: 0px;
3420
+ height: unset;
3421
+ padding: 6px !important;
3422
+ }
3423
+ .sfsi_plus_small_button span {
3424
+ margin-left: 10px;
3425
+ font-size: 16px;
3426
+ padding: 0px;
3427
+ line-height: 16px;
3428
+ vertical-align: -webkit-baseline-middle !important;
3429
+ margin-left: 10px;
3430
+ }
3431
+ .sfsi_plus_small_button img {
3432
+ max-height: 16px !important;
3433
+ padding: 0px;
3434
+ line-height: 0px;
3435
+ vertical-align: -webkit-baseline-middle !important;
3436
+ }
3437
+ .sfsi_plus_medium_button span {
3438
+ margin-left: 10px;
3439
+ font-size: 18px;
3440
+ padding: 0px;
3441
+ line-height: 16px;
3442
+ vertical-align: -webkit-baseline-middle !important;
3443
+ margin-left: 10px;
3444
+ }
3445
+ .sfsi_plus_medium_button img {
3446
+ max-height: 16px !important;
3447
+ padding: 0px;
3448
+ line-height: 0px;
3449
+ vertical-align: -webkit-baseline-middle !important;
3450
+ }
3451
+ .sfsi_plus_medium_button {
3452
+ line-height: 0px;
3453
+ height: unset;
3454
+ padding: 10px !important;
3455
+ }
3456
+
3457
+ .sfsi_plus_medium_button span {
3458
+ margin-left: 10px;
3459
+ font-size: 18px;
3460
+ padding: 0px;
3461
+ line-height: 16px;
3462
+ vertical-align: -webkit-baseline-middle !important;
3463
+ margin-left: 10px;
3464
+ }
3465
+ .sfsi_plus_medium_button img {
3466
+ max-height: 16px !important;
3467
+ padding: 0px;
3468
+ line-height: 0px;
3469
+ vertical-align: -webkit-baseline-middle !important;
3470
+ }
3471
+ .sfsi_plus_medium_button {
3472
+ line-height: 0px;
3473
+ height: unset;
3474
+ padding: 10px !important;
3475
+ }
3476
+ .sfsi_plus_large_button span {
3477
+ font-size: 20px;
3478
+ padding: 0px;
3479
+ line-height: 16px;
3480
+ vertical-align: -webkit-baseline-middle !important;
3481
+ display: inline;
3482
+ margin-left: 10px;
3483
+ }
3484
+ .sfsi_plus_large_button img {
3485
+ max-height: 16px !important;
3486
+ padding: 0px;
3487
+ line-height: 0px;
3488
+ vertical-align: -webkit-baseline-middle !important;
3489
+ display: inline;
3490
+ }
3491
+ .sfsi_plus_large_button {
3492
+ line-height: 0px;
3493
+ height: unset;
3494
+ padding: 13px !important;
3495
+ }
3496
+ .sfsi_plus_responsive_icons .sfsi_plus_icons_container span {
3497
+ font-family: sans-serif;
3498
+ font-size: 15px;
3499
+ }
3500
+ .sfsi_plus_icons_container_box_fully_container {
3501
+ flex-wrap: wrap;
3502
+ }
3503
+ .sfsi_plus_icons_container_box_fully_container a {
3504
+ flex-basis: auto !important;
3505
+ flex-grow: 1;
3506
+ flex-shrink: 1;
3507
+ margin-bottom: 5px;
3508
+ }
3509
+ .sfsi_plus_icons_container>a {
3510
+ float: left!important;
3511
+ text-decoration: none!important;
3512
+ -webkit-box-shadow: unset!important;
3513
+ box-shadow: unset!important;
3514
+ -webkit-transition: unset!important;
3515
+ transition: unset!important;
3516
+ margin-bottom:5px!important;
3517
+ }
3518
+ .sfsi_plus_small_button {
3519
+ line-height: 0px;
3520
+ height: unset;
3521
+ padding: 6px !important;
3522
+ }
3523
+ .sfsi_plus_small_button span {
3524
+ margin-left: 10px;
3525
+ font-size: 16px;
3526
+ padding: 0px;
3527
+ line-height: 16px;
3528
+ vertical-align: -webkit-baseline-middle !important;
3529
+ margin-left: 10px;
3530
+ }
3531
+ .sfsi_plus_small_button img {
3532
+ max-height: 16px !important;
3533
+ padding: 0px;
3534
+ line-height: 0px;
3535
+ vertical-align: -webkit-baseline-middle !important;
3536
+ }
3537
+ .sfsi_plus_medium_button span {
3538
+ margin-left: 10px;
3539
+ font-size: 18px;
3540
+ padding: 0px;
3541
+ line-height: 16px;
3542
+ vertical-align: -webkit-baseline-middle !important;
3543
+ margin-left: 10px;
3544
+ }
3545
+ .sfsi_plus_medium_button img {
3546
+ max-height: 16px !important;
3547
+ padding: 0px;
3548
+ line-height: 0px;
3549
+ vertical-align: -webkit-baseline-middle !important;
3550
+ }
3551
+ .sfsi_plus_medium_button {
3552
+ line-height: 0px;
3553
+ height: unset;
3554
+ padding: 10px !important;
3555
+ }
3556
+
3557
+ .sfsi_plus_medium_button span {
3558
+ margin-left: 10px;
3559
+ font-size: 18px;
3560
+ padding: 0px;
3561
+ line-height: 16px;
3562
+ vertical-align: -webkit-baseline-middle !important;
3563
+ margin-left: 10px;
3564
+ }
3565
+ .sfsi_plus_medium_button img {
3566
+ max-height: 16px !important;
3567
+ padding: 0px;
3568
+ line-height: 0px;
3569
+ vertical-align: -webkit-baseline-middle !important;
3570
+ }
3571
+ .sfsi_plus_medium_button {
3572
+ line-height: 0px;
3573
+ height: unset;
3574
+ padding: 10px !important;
3575
+ }
3576
+ .sfsi_plus_large_button span {
3577
+ font-size: 20px;
3578
+ padding: 0px;
3579
+ line-height: 16px;
3580
+ vertical-align: -webkit-baseline-middle !important;
3581
+ display: inline;
3582
+ margin-left: 10px;
3583
+ }
3584
+ .sfsi_plus_large_button img {
3585
+ max-height: 16px !important;
3586
+ padding: 0px;
3587
+ line-height: 0px;
3588
+ vertical-align: -webkit-baseline-middle !important;
3589
+ display: inline;
3590
+ }
3591
+ .sfsi_plus_large_button {
3592
+ line-height: 0px;
3593
+ height: unset;
3594
+ padding: 13px !important;
3595
+ }
3596
+ .sfsi_plus_responsive_icons_count{
3597
+ padding: 5px 10px;
3598
+ float: left !important;
3599
+ display: inline-block;
3600
+ margin-right: 0px;
3601
+ margin-top: 2px;
3602
+ }
3603
+
3604
+ .sfsi_plus_responsive_icons_count h3{
3605
+ font-family: 'sans-serif' !important;
3606
+ font-weight: 900;
3607
+ font-size: 32px !important;
3608
+ line-height: 0px !important;
3609
+ padding: 0px;
3610
+ margin: 0px;
3611
+ }
3612
+
3613
+ .sfsi_plus_responsive_icons_count h6{
3614
+ font-family: 'sans-serif' !important;
3615
+ font-weight: 900;
3616
+ padding: 0px;
3617
+ margin: 0px;
3618
+ }
3619
+ .sfsi_plus_responsive_icons a, .sfsi_plus_responsive_icons h3, .sfsi_plus_responsive_icons h6 {
3620
+ text-decoration: none!important;
3621
+ border: 0!important;
3622
+ }
3623
+ .sfsi_plus_responsive_with_counter_icons{
3624
+ width: calc(100% - 100px)!important;
3625
+ }
3626
+ .sfsiresponsive_icon_preview {
3627
+ padding: 0px 0 20px 0;
3628
+ min-width: 100%;
3629
+ }
3630
+ .sfsi_plus_responsive_icons_count.sfsi_plus_fixed_count_container.sfsi_plus_large_button {
3631
+ padding: 12px 13px 9px 13px !important;
3632
+ }
3633
+ .sfsi_plus_responsive_icons_count.sfsi_plus_fixed_count_container.sfsi_plus_medium_button {
3634
+ padding: 9px 10px 7px 10px !important;
3635
+ }
3636
+ .sfsi_plus_responsive_icons_count.sfsi_plus_small_button {
3637
+ padding: 7px 6px !important;
3638
+ }
3639
+ .sfsi_plus_responsive_icons_count.sfsi_plus_small_button {
3640
+ padding: 7px 6px !important;
3641
+ margin-top: 2px;
3642
+ }
3643
+ .sfsi_plus_responsive_icons_count.sfsi_plus_small_button h6 {
3644
+ display: inline-block;
3645
+ font-size: 12px !important;
3646
+ vertical-align: middle;
3647
+ }
3648
+ .sfsi_plus_responsive_icons_count.sfsi_plus_responsive_count_container.sfsi_plus_medium_button {
3649
+ padding: 9px 10px 7px 10px !important;
3650
+ }
3651
+ .sfsi_plus_responsive_icons_count.sfsi_plus_medium_button h3 {
3652
+ font-size: 21px !important;
3653
+ vertical-align: top;
3654
+ line-height: 8px !important;
3655
+ margin: 0px 0px 12px 0px !important;
3656
+ font-weight: 900;
3657
+ padding: 0px;
3658
+ }
3659
+ .sfsi_plus_esponsive_icons_count.sfsi_plus_responsive_count_container.sfsi_plus_large_button h3 {
3660
+ margin: 0px 0px 15px 0px !important;
3661
+ }
3662
+ .sfsi_plus_responsive_icons_count.sfsi_plus_large_button h3 {
3663
+ font-size: 26px !important;
3664
+ vertical-align: top;
3665
+ line-height: 6px !important;
3666
+ }
3667
+
3668
+ .sfsi_plus_responsive_icons_count h3 {
3669
+ font-family: 'sans-serif' !important;
3670
+ font-weight: 900;
3671
+ padding: 0px;
3672
+ }
3673
+
3674
+ .sfsi_plus_responsive_icons_count.sfsi_plus_small_button h3 {
3675
+ font-size: 20px !important;
3676
+ display: inline-block;
3677
+ vertical-align: middle;
3678
+ }
3679
+ .sfsi_plus_responsive_icons_count.sfsi_plus_small_button h3 {
3680
+ margin: 0px !important;
3681
+ }
3682
+ .sfsi_plus_responsive_icons_count h3 {
3683
+ font-family: 'sans-serif' !important;
3684
+ font-weight: 900;
3685
+ line-height: 0px !important;
3686
+ padding: 0px;
3687
+ margin: 0px;
3688
+ }
3689
+ .sfsi_plus_responsive_icons a, .sfsi_plus_responsive_icons h3, .sfsi_plus_responsive_icons h6 {
3690
+ text-decoration: none!important;
3691
+ border: 0!important;
3692
+ }
3693
+ .sfsi_plus_responsive_icons_count.sfsi_plus_small_button {
3694
+ padding: 7px 6px !important;
3695
+ margin-top: 2px;
3696
+ }
3697
+ .sfsi_plus_responsive_icons_count.sfsi_plus_large_button h3 {
3698
+ margin-top:0!important;
3699
+ margin-bottom:8px!important;
3700
+ }
3701
+ .sfsi_plus_responsive_icons_count.sfsi_plus_large_button h6 {
3702
+ font-size:13px!important;
3703
+ }
3704
+
3705
+ .sfsi_plus_responsive_icons_count {
3706
+ vertical-align: top;
3707
+ }
3708
+ .sfsi_plus_responsive_icons_count {
3709
+ float: left;
3710
+ }
3711
+ .sfsi_plus_small_button {
3712
+ line-height: 0px;
3713
+ height: unset;
3714
+ }
3715
+ .sfsi_plus_responsive_icons a, .sfsi_plus_responsive_icons h3, .sfsi_plus_responsive_icons h6 {
3716
+ text-decoration: none!important;
3717
+ border: 0!important;
3718
+ }
3719
+ .sfsi_plus_responsive_icons_count.sfsi_plus_small_button h3 {
3720
+ font-size: 20px !important;
3721
+ display: inline-block;
3722
+ vertical-align: middle;
3723
+ margin: 0px !important;
3724
+ }
3725
+
3726
+ .sfsi_plus_responsive_icons a, .sfsi_plus_responsive_icons h3, .sfsi_plus_responsive_icons h6 {
3727
+ text-decoration: none!important;
3728
+ font-family: helveticaregular!important;
3729
+ border: 0!important;
3730
+ }
3731
+ .sfsi_plus_responsive_icons_count h3 {
3732
+ line-height: 0px !important;
3733
+ padding: 0px;
3734
+ }
3735
+ .sfsi_plus_responsive_icons_count.sfsi_plus_small_button h6 {
3736
+ display: inline-block;
3737
+ font-size: 12px !important;
3738
+ /*vertical-align: middle;*/
3739
+ margin: 0px !important;
3740
+ line-height: initial !important;
3741
+ padding: 0;
3742
+ margin: 0;
3743
+ }
3744
+ .sfsi_plus_responsive_icons_count h6{
3745
+ margin:0!important;
3746
+ }
3747
+ .sfsi_plus_responsive_icons_count h6 {
3748
+ padding: 0px;
3749
+ }
3750
+ .sfsi_plus_responsive_icons a, .sfsi_plus_responsive_icons h3, .sfsi_plus_responsive_icons h6{
3751
+ text-decoration: none!important;
3752
+ font-family: helveticaregular!important;
3753
+ border: 0!important;
3754
+ }
3755
+ .sfsi_plus_responsive_icons_count.sfsi_plus_medium_button h6{
3756
+ font-size: 11px !important;
3757
+ line-height: 0px !important;
3758
+ margin: 0px 0px 0px 0px !important;
3759
+ }
3760
+
3761
+
3762
+ .sfsi_plus.sfsi_plus_widget_main_container .sfsi_plus_widget_sub_container{
3763
+ float: none;
3764
+ }
3765
+
3766
+ .export_selections{
3767
+ clear: both;
3768
+ color: #afafaf;
3769
+ font-size: 23px;
3770
+ display: flex;
3771
+ height: 0px;
3772
+ position: absolute;
3773
+ top: 13px;
3774
+ right: 0;
3775
+ }
3776
+
3777
+ .save_export{
3778
+ clear: both;
3779
+ position: relative;
3780
+ }
3781
+
3782
+ .export{
3783
+ padding-right: 11px;
3784
+ text-decoration: underline;
3785
+ cursor: pointer;
3786
  }
dist/blocks.build.js CHANGED
@@ -1 +1 @@
1
- ../../social-media-block/dist/blocks.build.js
1
+ !function(e){function t(i){if(s[i])return s[i].exports;var o=s[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var s={};t.m=e,t.c=s,t.d=function(e,s,i){t.o(e,s)||Object.defineProperty(e,s,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var s=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(s,"a",s),s},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});s(1)},function(e,t,s){"use strict";function i(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function o(e){var t=e.jscode;return f("div",{className:"sfsi_plus_block_container"},"\n\t",f("div",{className:"sfsi_plus_block"},""),"\n\t",f("script",{},t),"\n")}function n(e){var t=e.jscode;"rectangle"===e.iconType&&(t=t.replace(/window.location.href/gi,'window.location.href+"&ractangle_icon=1"'));var s="yes",i="Please Share:";return e.showTextBeforeShare||""!==e.showTextBeforeShare?s=e.showTextBeforeShare:onAttrChange("showTextBeforeShare","yes"),e.textBeforeShare||""!==e.textBeforeShare?i=e.textBeforeShare:onAttrChange("textBeforeShare","Please Share:"),f("div",{className:"sfsi_plus_block_wrapper"},"\n\t","yes"==s&&f("span",{className:"sfsi_plus_block_text_before_icon"},i),"\n",f("div",{className:"sfsi_plus_block","data-count":e.maxPerRow,"data-align":e.iconAlignemt,"data-icon-type":e.iconType},""),"\n\t")}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=parseInt(jQuery(".wp-block.is-selected .sfsi_plus_block_wrapper .sfsi_plus_wDiv div").css("width"))||40,s=parseInt(jQuery(".wp-block.is-selected .sfsi_plus_block_wrapper .sfsi_plus_wDiv div").css("margin-left"))||0,i=(t+s)*e;console.log(t,s,e);var o=jQuery(".wp-block.is-selected .sfsi_plus_block_wrapper .sfsi_plus_wDiv img").first().height(),n=jQuery(".wp-block.is-selected .sfsi_plus_block_text_before_icon").height();jQuery(".wp-block.is-selected .sfsi_plus_block_text_before_icon").css({"margin-top":(n-o)/2-2+"px"});var l=jQuery(".wp-block.is-selected .sfsi_plus_block_wrapper .sfsiplus_norm_row");jQuery(".wp-block.is-selected .sfsi_plus_block_wrapper .sfsiplus_norm_row").length<1?setTimeout(function(){l.css({width:i+"px"})},1e3):l.css({width:i+"px"}),a()}function a(){var e=jQuery(".wp-block.is-selected .sfsi_plus_block_container"),t=e.find(".sfsi_plus_block").attr("data-align");jQuery(e).find(".sfsi_plus_block_text_before_icon").css({display:"inherit"}),jQuery(e).css({"text-align":t})}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;null!==e&&void 0!==e||(e="round"),null==s&&(s=$(document));var i="";return i=window.sfsi_plus_links&&window.sfsi_plus_links.rest_url?window.sfsi_plus_links.rest_url:window.sfsi_plus_links&&window.sfsi_plus_links.pretty_perma&&"no"===window.sfsi_plus_links.pretty_perma?"/index.php?rest_route=/":"/wp-json/",window.sfsi_plus_links&&window.sfsi_plus_links.pretty_perma&&"no"===window.sfsi_plus_links.pretty_perma?(i=i.replace(/\/$/,""),i+=encodeURI("/ultimate-social-media-plus/v1/icons/"),i+="&"):i+="ultimate-social-media-plus/v1/icons/?",i+="admin_refereal=true&ractangle_icon="+("round"==e?0:1),jQuery.ajax({url:i,method:"GET"}).done(function(i){jQuery(s).find(".sfsi_plus_block").length>0?(jQuery(s).find(".sfsi_plus_block").html(i),jQuery(s).find(".sfsi_plus_block_text_before_icon").css({display:"inherit"}),console.log(t.maxPerRow),l(t.maxPerRow),"round"!==e&&u()):(setTimeout(function(){jQuery(".sfsi_plus_block").html(i),console.log(t.maxPerRow),l(t.maxPerRow),jQuery(s).find(".sfsi_plus_block_text_before_icon").css({display:"inherit"}),console.log("now updated")},5e3),console.log("timeset"))}).fail(function(e){jQuery(s).find(".sfsi_plus_block").html(e.responseText.replace("/\\/g",""))})}function u(){window.gapi&&(window.gapi.plusone.go(),window.gapi.plus.go(),window.gapi.ytsubscribe.go()),window.twttr&&window.twttr.widgets.load(),window.IN&&window.IN.parse&&window.IN.parse(),window.addthis&&(window.addthis.toolbox?window.addthis.toolbox(".addthis_button.sficn"):(window.addthis.init(),window.addthis.toolbox(".addthis_button.sficn"))),window.PinUtils&&window.PinUtils.build(),window.FB&&window.FB.XFBML&&window.FB.XFBML.parse()}var c=s(2),d=(s.n(c),s(3)),p=(s.n(d),wp.i18n.__),_=wp.blocks,w=_.registerBlockType,f=(_.RichText,_.TextControl,_.AlignmentToolbar,_.BlockControls,_.InspectorControls,wp.element.createElement),h=f("svg",{width:20,height:20},f("g",{transform:"translate(0.000000,20.000000) scale(0.0062,-0.0070)",fill:"#000000",stroke:"none"},f("path",{d:"M2055 2721 c-284 -83 -461 -332 -442 -624 l6 -89 -72 6 c-406 39 -818 246 -1090 548 l-66 73 -26 -60 c-101 -227 -55 -484 120 -661 l72 -74 -32 0 c-39 0 -127 26 -179 52 l-39 20 6 -74 c18 -224 178 -428 395 -504 58 -20 61 -22 35 -29 -15 -4 -72 -6 -126 -6 -98 1 -98 1 -92 -21 19 -62 77 -150 141 -214 88 -89 200 -148 317 -166 43 -7 77 -15 77 -18 0 -7 -152 -102 -205 -128 -72 -36 -216 -82 -302 -97 -46 -8 -146 -15 -221 -16 -159 -1 -160 2 10 -85 257 -131 542 -193 838 -181 209 8 392 45 572 115 l68 26 0 393 0 393 -100 0 c-93 0 -100 1 -100 20 0 11 -1 90 -1 175 0 85 1 160 1 165 0 6 40 10 100 10 l100 0 1 138 c1 144 3 170 20 241 34 147 165 265 319 288 49 8 174 9 358 5 l62 -2 0 -175 0 -175 -127 0 c-83 0 -137 -5 -153 -13 -35 -18 -46 -61 -49 -193 l-2 -114 165 0 166 0 0 -37 c0 -21 -7 -96 -15 -168 -8 -71 -15 -138 -15 -147 0 -16 -14 -18 -150 -18 l-150 0 0 -332 c1 -686 3 -637 -22 -642 -13 -3 -90 -8 -172 -12 -82 -3 -143 -10 -136 -14 6 -4 93 -8 191 -9 l179 -2 0 272 0 271 63 72 c119 134 198 250 273 397 113 225 184 512 184 745 l0 101 79 66 c64 54 226 235 217 244 -1 1 -26 -6 -55 -17 -59 -23 -176 -55 -235 -65 l-40 -7 50 39 c86 69 147 149 184 242 l19 49 -88 -43 c-69 -34 -199 -81 -276 -99 -5 -2 -37 19 -70 46 -150 122 -366 170 -540 119z"})));if(w("ultimate-social-media-plus/sfsi-plus-share-block",{title:p("Social Icons"),icon:h,category:"common",keywords:[p("Social Icons"),p("Social share"),p("Gutenberg Share")],attributes:{jscode:{default:"\n\t\tjQuery(document).ready(function($) {\n\t\t\tjQuery.ajax({\n\t\t\t\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?share_url='+window.location.href,\n\t\t\t\t'method': 'GET'\n\t\t\t}).done( function(response){\n\t\t\t\t$('.sfsi_plus_block_wrapper .sfsi_plus_block').html(response);sfsi_plus_update_iconcount();if(window.gapi){window.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();};if(window.twttr){window.twttr.widgets.load();};if(window.IN){window.IN.parse();};if(window.addthis){if(window.addthis.toolbox){window.addthis.toolbox('.addthis_button.sficn');}else{window.addthis.init();window.addthis.toolbox('.addthis_button.sficn');}};if(window.PinUtils){window.PinUtils.build();};if(jQuery('.sfsi_plus_wDiv').length > 0) {setTimeout(function() { var s = parseInt(jQuery('.sfsi_plus_wDiv').height()) + 15 + 'px';jQuery('.sfsi_plus_holders').each(function() {jQuery(this).css('height', s);});jQuery('.sfsi_plus_widget').css('min-height', 'auto');}, 200);};if(window.FB){if(window.FB.XFBML){window.FB.XFBML.parse();}};\n\t\t\t});\n\t\t});\n\t",type:"string"},showTextBeforeShare:{type:"string",default:"yes"},textBeforeShare:{type:"string",default:"Please Share:"},iconType:{type:"string",default:"round"},iconAlignemt:{type:"string",default:"left"},maxPerRow:{type:"string",default:"5"}},edit:function(e){function t(t,s){e.setAttributes(i({},t,s))}var s=e.setAttributes,o=e.attributes,n="yes",a="Please Share:";o.showTextBeforeShare||""!==o.showTextBeforeShare?n=o.showTextBeforeShare:t("showTextBeforeShare","yes"),o.textBeforeShare||""!==o.textBeforeShare?a=o.textBeforeShare:t("textBeforeShare","Please Share:");var u=jQuery('div[data-block="'+e.clientId+'"]').find(".sfsi_plus_block_container");if(u.length>0){0===u.find(".sfsi_plus_block>div").length&&r(o.iconType,o,u)}else setTimeout(function(){var t=jQuery('div[data-block="'+e.clientId+'"]').find(".sfsi_plus_block_container");0===t.find(".sfsi_plus_block>div").length&&r(o.iconType,o,t)},3e3);return[f(wp.editor.InspectorControls,{key:"sfsi-plus-block-inspector"},f("div",{className:"sfsi_plus_block_inspector"},f("h3",{className:"sfsi_plus_block_icontype_header"},p("Type")),f("select",{className:"form-control sfsi_plus_block_icontype_selector",value:o.iconType,onChange:function(e){var t=jQuery(".wp-block.is-selected").find(".sfsi_plus_block_container");s({iconType:e.target.value}),r(e.target.value,o,t)}},f("option",{value:"round"},"Round / \xabmain\xbb icons"),f("option",{value:"rectangle"},"Rectangle icons")),("round"===e.attributes.iconType||void 0===e.attributes.iconType)&&f("p",{className:"sfsi_plus_block_icontype_desc"},p(" Those are the icons you selected under question 1 on the plugin\u2018s "),f("a",{target:"_blank",href:window.sfsi_plus_links.admin_url+"admin.php?page=sfsi-plus-options#ui-id-1"},p(" settings page."))),"rectangle"===e.attributes.iconType&&f("p",{className:"sfsi_plus_block_icontype_desc"},p("Those are the icons you selected "),f("a",{target:"_blank",href:window.sfsi_plus_links.admin_url+"admin.php?page=sfsi-plus-options#ui-id-5"},p("here."))),f("h3",{className:"sfsi_plus_block_icontype_header"},p("Alignment")),f("select",{className:"form-control sfsi_plus_block_iconalignment_selector",value:o.iconAlignemt,onChange:function(e){s({iconAlignemt:e.target.value});var t=jQuery(".wp-block.is-selected .sfsi_plus_block_container");"center"===e.target.value&&jQuery(t).find(".sfsi_plus_block_text_before_icon").css({display:"inherit"}),jQuery(t).css({"text-align":e.target.value})}},f("option",{value:"left"},"Left"),f("option",{value:"right"},"Right"),f("option",{value:"center"},"Center")),("round"===e.attributes.iconType||void 0===e.attributes.iconType)&&f("div",{className:"sfsi_plus_block_iconperrow_body"},f("span",{className:"label"},p("Max. icons per row")),f("input",{type:"text",value:o.maxPerRow,onChange:function(e){s({maxPerRow:(parseInt(e.target.value)||0)+""}),l(e.target.value)}})),f("label",{htmlFor:"sfsi-plus-text-before-icons",className:"sfsi_plus_block_textbeforeicons"},f("input",{className:"form-control",checked:"yes"==o.showTextBeforeShare,type:"checkbox",onChange:function(e){s({showTextBeforeShare:e.target.checked?"yes":"no"})}}),"Text before icons?"),"yes"==o.showTextBeforeShare&&f("input",{className:"form-input sfsi_plus_block_textbeforeicons_header",value:o.textBeforeShare,style:{"padding-top":"3px"},onChange:function(e){s({textBeforeShare:e.target.value})}}),"yes"===o.showTextBeforeShare&&f("div",{className:"form-input sfsi_plus_block_textbeforeicons_body"},p("Define the font size & type in our "),f("a",{href:"https://www.ultimatelysocial.com/usm-premium/",target:"_blank"},p("Premium plugin"))),f("h3",{className:"sfsi_plus_block_notes_heading"},p("Notes")),f("hr"),f("ul",{className:"sfsi_plus_block_notes_list"},f("li",{className:"sfsi_plus_block_notes_item"},p("For all other selections ( What the icons should do etc.) please go to "),f("a",{href:(window.sfsi_plus_links?window.sfsi_plus_links.admin_url:"/wp-admin/admin.php")+"?page=sfsi-plus-options",target:"_blank"},p("settings page"))),f("li",{className:"sfsi_plus_block_notes_item"},p("To see the icons in \u201afull action\u2018 (with all features) please open the page in live or preview mode.")),f("li",{className:"sfsi_plus_block_notes_item"},p("If questions remain, please ask them in the "),f("a",{href:"https://goo.gl/ktAeDv",target:"_blank"},p("support forum")),p(" \u2013 we\u2018ll try to respond quickly."),f("img",{src:(window.sfsi_plus_links?window.sfsi_plus_links.plugin_dir_url:"/wp-content/plugins/ultimate-social-media-plus")+"/images/Ic_insert_emoticon_48px.svg",style:{width:"18px","vertical-align":"text-bottom"}}))),f("h3",{className:"sfsi_plus_block_ad_heading"},"Want (much) more?"),f("div",{className:"sfsi_plus_block_ad_body"},f("div",{},p("Check out our "),f("a",{href:"https://www.ultimatelysocial.com/usm-premium/?utm_source=plus_gutenberg_page&utm_campaign=side_widget&utm_medium=link",target:"_blank"},p("premium plugin\u2018s features")),p(". Watch a teaser: "))),f("div",{style:{"text-align":"center"}},f("iframe",{src:"https://player.vimeo.com/video/269140798",width:"640",frameborder:0,webkitallowfullscreen:"",mozallowfullscreen:"",allowfullscreen:""}),f("a",{href:"https://www.ultimatelysocial.com/usm-premium/?utm_source=plus_gutenberg_page&utm_campaign=side_widget&utm_medium=link",target:"_blank",style:{display:"inline-block",padding:"4px 10px","text-decoration":"none",background:"#00A15A",color:"#fff","font-size":"11px","font-weight":"900"}},p("Check out the Premium Plugin >>"))),f("br"),f("span",{className:"sfsi_plus_block_ad_footer"},p("..from 24.98 USD (includes support and updates for 1 year, and after that it will not be deactivated, so you can just keep using it!)")))),f("div",{key:"sfsi-plus-block-content",className:"sfsi_plus_block_container sfsi_plus_block_wrapper"},"\t","yes"==n&&f("span",{className:"sfsi_plus_block_text_before_icon","data-align":o.iconAlignemt},a),f("div",{className:"sfsi_plus_block","data-count":o.maxPerRow,"data-align":o.iconAlignemt,"data-icon-type":o.iconType},"loading...."))]},deprecated:[{attributes:{jscode:{default:"\n\t\tjQuery(document).ready(function($) {\n\t\t\tjQuery.ajax({\n\t\t\t\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?share_url='+window.location.href,\n\t\t\t\t'method': 'GET'\n\t\t\t}).done( function(response){\n\t\t\t\t$('.sfsi_plus_block_container .sfsi_plus_block').html(response);if(window.gapi){window.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();};if(window.twttr){window.twttr.widgets.load();};if(window.IN){window.IN.parse();};if(window.addthis){if(window.addthis.toolbox){window.addthis.toolbox('.addthis_button.sficn');}else{window.addthis.init();window.addthis.toolbox('.addthis_button.sficn');}};if(window.PinUtils){window.PinUtils.build();};if(jQuery('.sfsi_plus_wDiv').length > 0) {setTimeout(function() { var s = parseInt(jQuery('.sfsi_plus_wDiv').height()) + 15 + 'px';jQuery('.sfsi_plus_holders').each(function() {jQuery(this).css('height', s);});jQuery('.sfsi_plus_widget').css('min-height', 'auto');}, 200);};if(window.FB){if(window.FB.XFBML){window.FB.XFBML.parse();}};\n\t\t\t});\n\t\t});\n\t",type:"string"}},isEligible:function(e){return console.log(e),!0},migrate:function(e){return console.log("migrate",e),[{jscode:"\n\t\tjQuery(document).ready(function($) {\n\t\t\tjQuery.ajax({\n\t\t\t\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?share_url='+window.location.href,\n\t\t\t\t'method': 'GET'\n\t\t\t}).done( function(response){\n\t\t\t\t$('.sfsi_plus_block_wrapper .sfsi_plus_block').html(response);sfsi_plus_update_iconcount();if(window.gapi){window.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();};if(window.twttr){window.twttr.widgets.load();};if(window.IN){window.IN.parse();};if(window.addthis){if(window.addthis.toolbox){window.addthis.toolbox('.addthis_button.sficn');}else{window.addthis.init();window.addthis.toolbox('.addthis_button.sficn');}};if(window.PinUtils){window.PinUtils.build();};if(jQuery('.sfsi_plus_wDiv').length > 0) {setTimeout(function() { var s = parseInt(jQuery('.sfsi_plus_wDiv').height()) + 15 + 'px';jQuery('.sfsi_plus_holders').each(function() {jQuery(this).css('height', s);});jQuery('.sfsi_plus_widget').css('min-height', 'auto');}, 200);};if(window.FB){if(window.FB.XFBML){window.FB.XFBML.parse();}};\n\t\t\t});\n\t\t});\n\t",showTextBeforeShare:"yes",textBeforeShare:"Please Share:",iconType:"round",iconAlignemt:"left",maxPerRow:"5"}]},save:function(e){return console.log(e),o(e.attributes)}}],save:function(e){var t=e.attributes;return setTimeout(function(){l(t.maxPerRow)},300),n(t)}}),void 0===window.sfsi_plus_float_widget);},function(e,t){},function(e,t){}]);
dist/blocks.editor.build.css CHANGED
@@ -1 +1 @@
1
- ../../social-media-block/dist/blocks.editor.build.css
1
+ .sfsi_plus_block{min-height:55px}.sfsi_plus_block.sfsi_plus_block.sfsi_plus_block img{padding:0;border:none;max-width:90%}.sfsi_plus_block .sfsi_plus_widget .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon4,.sfsi_plus_block .sfsi_plus_widget .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .icon1,.sfsi_plus_block .sfsi_plus_widget .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .icon1{height:auto}.sfsi_plus_block .sfsi_plus_widget{min-height:55px}.sfsi_plus_block .sfsi_plus_widget a img{-webkit-box-shadow:none !important;box-shadow:none !important;outline:0;padding:0 !important;border:none !important;max-width:100%}.sfsi_plus_block .sfsiplus_inerCnt{position:relative;z-index:inherit !important;float:left;width:100%;float:left}.sfsi_plus_block .sfsi_plus_widget .sfsi_plus_wDiv .sfsi_plus_wicons .sfsiplus_inerCnt a,.sfsi_plus_block .sfsi_plus_widget .sfsi_plus_wDiv .sfsi_plus_wicons .sfsiplus_inerCnt a.sficn{padding:0px;margin:0px;width:100%;border:medium none}.sfsi_plus_block .sfsiplus_norm_row{float:left;min-width:25px}.sfsi_plus_block .sfsiplus_norm_row a{border:none;display:inline-block;position:relative}.sfsi_plus_block .sfsiplus_norm_row .cbtn_vsmall{font-size:9px;left:-28%;top:4px}.sfsi_plus_block .sfsiplus_norm_row .cbtn_vsmall:before{left:31%;top:-9px;margin-left:-31%}.sfsi_plus_block .sfsiplus_norm_row{position:relative !important}.sfsi_plus_block .sfsi_plus_wicons{margin-bottom:30px;position:relative;padding-top:5px;display:inline-block}.sfsi_plus_block .sfsiplus_norm_row .bot_no{padding:1px 0;font-size:12px !important;text-align:center;line-height:12px !important;background:#fff;border-radius:5px;z-index:9;border:1px solid #333;white-space:pre;-webkit-box-sizing:border-box;box-sizing:border-box;width:40px;display:inline-block}.sfsi_plus_block .sfsiplus_norm_row .bot_no:before{content:url("../css/images/count_top_arow.png");position:absolute;height:9px;margin-left:-7.5px;margin-top:-11px;left:50%;width:15px}.sfsi_plus_block .sfsi_plus_widget.sfsi_plus_widget.sfsi_plus_widget img{border:none;padding:0}.sfsi_plus_block .sfsi_plus_Sicons .sf_fb{margin-top:-4px;margin-right:4px}.sfsi_plus_block .sfsi_plus_Sicons .sf_twiter{margin-right:4px}.sfsi_plus_block .sfsi_plus_Sicons .sf_pinit{margin-top:-3px;margin-right:4px}.gutenberg__editor .sfsi_new_prmium_follw{height:auto !important;min-height:63px}.gutenberg__editor .sfsi_plus_block_text_before_icon{display:inline-block;vertical-align:top}.gutenberg__editor .sfsi_plus_block{display:inline-block}.gutenberg__editor .sfsi_plus_block[data-icon-type="rectangle"] .fb_iframe_widget>span{vertical-align:top !important}.gutenberg__editor .sfsi_plus_block[data-icon-type="rectangle"] .sf_pinit>span{vertical-align:top !important}.sfsi_plus_block_inspector h3,.sfsi_plus_block_inspector label{padding-top:12px;margin-bottom:5px}.sfsi_plus_block_inspector select,.sfsi_plus_block_inspector input[type="text"],.sfsi_plus_block_inspector input[type="number"],.sfsi_plus_block_inspector input[type="email"],.sfsi_plus_block_inspector textarea{width:100%}.sfsi_plus_block_inspector .sfsi_plus_block_iconperrow_body{padding-top:20px;font-weight:600}.sfsi_plus_block_inspector .sfsi_plus_block_iconperrow_body .label{display:inline-block;width:69%}.sfsi_plus_block_inspector .sfsi_plus_block_iconperrow_body input{display:inline-block;width:30%}.sfsi_plus_block_inspector .sfsi_plus_block_textbeforeicons{display:inline-block}.sfsi_plus_block_inspector .sfsi_plus_block_textbeforeicons_header{padding-top:10px}.sfsi_plus_block_inspector hr{margin:.3em 0}.sfsi_plus_block_inspector ul{margin-top:0}.sfsi_plus_block_inspector ul.sfsi_plus_block_notes_list{list-style-type:disc;-webkit-padding-start:20px;padding-inline-start:20px}.sfsi_plus_block_inspector .sfsi_plus_block_ad_heading,.sfsi_plus_block_inspector .sfsi_plus_block_ad_body{text-align:center}.sfsi_plus_block_inspector .sfsi_plus_block_icontype_desc{margin-bottom:0}.sfsi_plus_block_inspector input[type=checkbox]{margin-right:5px !important}.sfsi_plus_block_inspector .sfsi_plus_block_notes_list{color:#000}.sfsi_plus_block_wrapper .sfsi_plus_block,.sfsi_plus_block_wrapper .sfsi_plus_block_text_before_icon{display:inline-block}.sfsi_plus_block_wrapper .sfsi_plus_block_text_before_icon{vertical-align:top;margin-top:10px}
freemius/templates/add-ons.php CHANGED
@@ -1,197 +1,197 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.0.3
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- /**
14
- * @var array $VARS
15
- * @var Freemius
16
- */
17
- $fs = freemius( $VARS['id'] );
18
-
19
- $slug = $fs->get_slug();
20
-
21
- $open_addon_slug = fs_request_get( 'slug' );
22
-
23
- $open_addon = false;
24
-
25
- /**
26
- * @var FS_Plugin[]
27
- */
28
- $addons = $fs->get_addons();
29
-
30
- $has_addons = ( is_array( $addons ) && 0 < count( $addons ) );
31
-
32
- $has_tabs = $fs->_add_tabs_before_content();
33
- ?>
34
- <div id="fs_addons" class="wrap fs-section">
35
- <?php if ( ! $has_tabs ) : ?>
36
- <h2><?php echo esc_html( sprintf( fs_text_inline( 'Add Ons for %s', 'add-ons-for-x', $slug ), $fs->get_plugin_name() ) ) ?></h2>
37
- <?php endif ?>
38
-
39
- <div id="poststuff">
40
- <?php if ( ! $has_addons ) : ?>
41
- <h3><?php echo esc_html( sprintf(
42
- '%s... %s',
43
- fs_text_x_inline( 'Oops', 'exclamation', 'oops', $slug ),
44
- fs_text_inline( 'We could\'nt load the add-ons list. It\'s probably an issue on our side, please try to come back in few minutes.', 'add-ons-missing', $slug )
45
- ) ) ?></h3>
46
- <?php endif ?>
47
- <ul class="fs-cards-list">
48
- <?php if ( $has_addons ) : ?>
49
- <?php foreach ( $addons as $addon ) : ?>
50
- <?php
51
- $open_addon = ( $open_addon || ( $open_addon_slug === $addon->slug ) );
52
-
53
- $price = 0;
54
- $has_trial = false;
55
- $has_free_plan = false;
56
- $has_paid_plan = false;
57
-
58
- $result = $fs->get_api_plugin_scope()->get( $fs->add_show_pending( "/addons/{$addon->id}/pricing.json?type=visible" ) );
59
- if ( ! isset( $result->error ) ) {
60
- $plans = $result->plans;
61
-
62
- if ( is_array( $plans ) && 0 < count( $plans ) ) {
63
- foreach ( $plans as $plan ) {
64
- if ( ! isset( $plan->pricing ) ||
65
- ! is_array( $plan->pricing ) ||
66
- 0 == count( $plan->pricing )
67
- ) {
68
- // No pricing mean a free plan.
69
- $has_free_plan = true;
70
- continue;
71
- }
72
-
73
-
74
- $has_paid_plan = true;
75
- $has_trial = $has_trial || ( is_numeric( $plan->trial_period ) && ( $plan->trial_period > 0 ) );
76
-
77
- $min_price = 999999;
78
- foreach ( $plan->pricing as $pricing ) {
79
- if ( ! is_null( $pricing->annual_price ) && $pricing->annual_price > 0 ) {
80
- $min_price = min( $min_price, $pricing->annual_price );
81
- } else if ( ! is_null( $pricing->monthly_price ) && $pricing->monthly_price > 0 ) {
82
- $min_price = min( $min_price, 12 * $pricing->monthly_price );
83
- }
84
- }
85
-
86
- if ( $min_price < 999999 ) {
87
- $price = $min_price;
88
- }
89
-
90
- }
91
- }
92
-
93
- if ( ! $has_paid_plan && ! $has_free_plan ) {
94
- continue;
95
- }
96
- }
97
- ?>
98
- <li class="fs-card fs-addon" data-slug="<?php echo $addon->slug ?>">
99
- <?php
100
- echo sprintf( '<a href="%s" class="thickbox fs-overlay" aria-label="%s" data-title="%s"></a>',
101
- esc_url( network_admin_url( 'plugin-install.php?fs_allow_updater_and_dialog=true&tab=plugin-information&parent_plugin_id=' . $fs->get_id() . '&plugin=' . $addon->slug .
102
- '&TB_iframe=true&width=600&height=550' ) ),
103
- esc_attr( sprintf( fs_text_inline( 'More information about %s', 'more-information-about-x', $slug ), $addon->title ) ),
104
- esc_attr( $addon->title )
105
- );
106
- ?>
107
- <?php
108
- if ( is_null( $addon->info ) ) {
109
- $addon->info = new stdClass();
110
- }
111
- if ( ! isset( $addon->info->card_banner_url ) ) {
112
- $addon->info->card_banner_url = '//dashboard.freemius.com/assets/img/marketing/blueprint-300x100.jpg';
113
- }
114
- if ( ! isset( $addon->info->short_description ) ) {
115
- $addon->info->short_description = 'What\'s the one thing your add-on does really, really well?';
116
- }
117
- ?>
118
- <div class="fs-inner">
119
- <ul>
120
- <li class="fs-card-banner"
121
- style="background-image: url('<?php echo $addon->info->card_banner_url ?>');"></li>
122
- <!-- <li class="fs-tag"></li> -->
123
- <li class="fs-title"><?php echo $addon->title ?></li>
124
- <li class="fs-offer">
125
- <span
126
- class="fs-price"><?php
127
- $descriptors = array();
128
-
129
- if ($has_free_plan)
130
- $descriptors[] = fs_text_inline( 'Free', 'free', $slug );
131
- if ($has_paid_plan && $price > 0)
132
- $descriptors[] = '$' . number_format( $price, 2 );
133
- if ($has_trial)
134
- $descriptors[] = fs_text_x_inline( 'Trial', 'trial period', 'trial', $slug );
135
-
136
- echo implode(' - ', $descriptors) ?></span>
137
- </li>
138
- <li class="fs-description"><?php echo ! empty( $addon->info->short_description ) ? $addon->info->short_description : 'SHORT DESCRIPTION' ?></li>
139
- <li class="fs-cta"><a class="button"><?php fs_esc_html_echo_inline( 'View details', 'view-details', $slug ) ?></a></li>
140
- </ul>
141
- </div>
142
- </li>
143
- <?php endforeach ?>
144
- <?php endif ?>
145
- </ul>
146
- </div>
147
- </div>
148
- <script type="text/javascript">
149
- (function ($) {
150
- <?php if ( $open_addon ) : ?>
151
-
152
- var interval = setInterval(function () {
153
- // Open add-on information page.
154
- <?php
155
- /**
156
- * @author Vova Feldman
157
- *
158
- * This code does NOT expose an XSS vulnerability because:
159
- * 1. This page only renders for admins, so if an attacker manage to get
160
- * admin access, they can do more harm.
161
- * 2. This code won't be rendered unless $open_addon_slug matches any of
162
- * the plugin's add-ons slugs.
163
- */
164
- ?>
165
- $('.fs-card[data-slug=<?php echo $open_addon_slug ?>] a').click();
166
- if ($('#TB_iframeContent').length > 0) {
167
- clearInterval(interval);
168
- interval = null;
169
- }
170
- }, 200);
171
-
172
- <?php else : ?>
173
-
174
-
175
- $('.fs-card.fs-addon')
176
- .mouseover(function () {
177
- $(this).find('.fs-cta .button').addClass('button-primary');
178
- }).mouseout(function () {
179
- $(this).find('.fs-cta .button').removeClass('button-primary');
180
- });
181
-
182
- <?php endif ?>
183
- })(jQuery);
184
- </script>
185
- <?php
186
- if ( $has_tabs ) {
187
- $fs->_add_tabs_after_content();
188
- }
189
-
190
- $params = array(
191
- 'page' => 'addons',
192
- 'module_id' => $fs->get_id(),
193
- 'module_type' => $fs->get_module_type(),
194
- 'module_slug' => $slug,
195
- 'module_version' => $fs->get_plugin_version(),
196
- );
197
  fs_require_template( 'powered-by.php', $params );
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.0.3
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ /**
14
+ * @var array $VARS
15
+ * @var Freemius
16
+ */
17
+ $fs = freemius( $VARS['id'] );
18
+
19
+ $slug = $fs->get_slug();
20
+
21
+ $open_addon_slug = fs_request_get( 'slug' );
22
+
23
+ $open_addon = false;
24
+
25
+ /**
26
+ * @var FS_Plugin[]
27
+ */
28
+ $addons = $fs->get_addons();
29
+
30
+ $has_addons = ( is_array( $addons ) && 0 < count( $addons ) );
31
+
32
+ $has_tabs = $fs->_add_tabs_before_content();
33
+ ?>
34
+ <div id="fs_addons" class="wrap fs-section">
35
+ <?php if ( ! $has_tabs ) : ?>
36
+ <h2><?php echo esc_html( sprintf( fs_text_inline( 'Add Ons for %s', 'add-ons-for-x', $slug ), $fs->get_plugin_name() ) ) ?></h2>
37
+ <?php endif ?>
38
+
39
+ <div id="poststuff">
40
+ <?php if ( ! $has_addons ) : ?>
41
+ <h3><?php echo esc_html( sprintf(
42
+ '%s... %s',
43
+ fs_text_x_inline( 'Oops', 'exclamation', 'oops', $slug ),
44
+ fs_text_inline( 'We could\'nt load the add-ons list. It\'s probably an issue on our side, please try to come back in few minutes.', 'add-ons-missing', $slug )
45
+ ) ) ?></h3>
46
+ <?php endif ?>
47
+ <ul class="fs-cards-list">
48
+ <?php if ( $has_addons ) : ?>
49
+ <?php foreach ( $addons as $addon ) : ?>
50
+ <?php
51
+ $open_addon = ( $open_addon || ( $open_addon_slug === $addon->slug ) );
52
+
53
+ $price = 0;
54
+ $has_trial = false;
55
+ $has_free_plan = false;
56
+ $has_paid_plan = false;
57
+
58
+ $result = $fs->get_api_plugin_scope()->get( $fs->add_show_pending( "/addons/{$addon->id}/pricing.json?type=visible" ) );
59
+ if ( ! isset( $result->error ) ) {
60
+ $plans = $result->plans;
61
+
62
+ if ( is_array( $plans ) && 0 < count( $plans ) ) {
63
+ foreach ( $plans as $plan ) {
64
+ if ( ! isset( $plan->pricing ) ||
65
+ ! is_array( $plan->pricing ) ||
66
+ 0 == count( $plan->pricing )
67
+ ) {
68
+ // No pricing mean a free plan.
69
+ $has_free_plan = true;
70
+ continue;
71
+ }
72
+
73
+
74
+ $has_paid_plan = true;
75
+ $has_trial = $has_trial || ( is_numeric( $plan->trial_period ) && ( $plan->trial_period > 0 ) );
76
+
77
+ $min_price = 999999;
78
+ foreach ( $plan->pricing as $pricing ) {
79
+ if ( ! is_null( $pricing->annual_price ) && $pricing->annual_price > 0 ) {
80
+ $min_price = min( $min_price, $pricing->annual_price );
81
+ } else if ( ! is_null( $pricing->monthly_price ) && $pricing->monthly_price > 0 ) {
82
+ $min_price = min( $min_price, 12 * $pricing->monthly_price );
83
+ }
84
+ }
85
+
86
+ if ( $min_price < 999999 ) {
87
+ $price = $min_price;
88
+ }
89
+
90
+ }
91
+ }
92
+
93
+ if ( ! $has_paid_plan && ! $has_free_plan ) {
94
+ continue;
95
+ }
96
+ }
97
+ ?>
98
+ <li class="fs-card fs-addon" data-slug="<?php echo $addon->slug ?>">
99
+ <?php
100
+ echo sprintf( '<a href="%s" class="thickbox fs-overlay" aria-label="%s" data-title="%s"></a>',
101
+ esc_url( network_admin_url( 'plugin-install.php?fs_allow_updater_and_dialog=true&tab=plugin-information&parent_plugin_id=' . $fs->get_id() . '&plugin=' . $addon->slug .
102
+ '&TB_iframe=true&width=600&height=550' ) ),
103
+ esc_attr( sprintf( fs_text_inline( 'More information about %s', 'more-information-about-x', $slug ), $addon->title ) ),
104
+ esc_attr( $addon->title )
105
+ );
106
+ ?>
107
+ <?php
108
+ if ( is_null( $addon->info ) ) {
109
+ $addon->info = new stdClass();
110
+ }
111
+ if ( ! isset( $addon->info->card_banner_url ) ) {
112
+ $addon->info->card_banner_url = '//dashboard.freemius.com/assets/img/marketing/blueprint-300x100.jpg';
113
+ }
114
+ if ( ! isset( $addon->info->short_description ) ) {
115
+ $addon->info->short_description = 'What\'s the one thing your add-on does really, really well?';
116
+ }
117
+ ?>
118
+ <div class="fs-inner">
119
+ <ul>
120
+ <li class="fs-card-banner"
121
+ style="background-image: url('<?php echo $addon->info->card_banner_url ?>');"></li>
122
+ <!-- <li class="fs-tag"></li> -->
123
+ <li class="fs-title"><?php echo $addon->title ?></li>
124
+ <li class="fs-offer">
125
+ <span
126
+ class="fs-price"><?php
127
+ $descriptors = array();
128
+
129
+ if ($has_free_plan)
130
+ $descriptors[] = fs_text_inline( 'Free', 'free', $slug );
131
+ if ($has_paid_plan && $price > 0)
132
+ $descriptors[] = '$' . number_format( $price, 2 );
133
+ if ($has_trial)
134
+ $descriptors[] = fs_text_x_inline( 'Trial', 'trial period', 'trial', $slug );
135
+
136
+ echo implode(' - ', $descriptors) ?></span>
137
+ </li>
138
+ <li class="fs-description"><?php echo ! empty( $addon->info->short_description ) ? $addon->info->short_description : 'SHORT DESCRIPTION' ?></li>
139
+ <li class="fs-cta"><a class="button"><?php fs_esc_html_echo_inline( 'View details', 'view-details', $slug ) ?></a></li>
140
+ </ul>
141
+ </div>
142
+ </li>
143
+ <?php endforeach ?>
144
+ <?php endif ?>
145
+ </ul>
146
+ </div>
147
+ </div>
148
+ <script type="text/javascript">
149
+ (function ($) {
150
+ <?php if ( $open_addon ) : ?>
151
+
152
+ var interval = setInterval(function () {
153
+ // Open add-on information page.
154
+ <?php
155
+ /**
156
+ * @author Vova Feldman
157
+ *
158
+ * This code does NOT expose an XSS vulnerability because:
159
+ * 1. This page only renders for admins, so if an attacker manage to get
160
+ * admin access, they can do more harm.
161
+ * 2. This code won't be rendered unless $open_addon_slug matches any of
162
+ * the plugin's add-ons slugs.
163
+ */
164
+ ?>
165
+ $('.fs-card[data-slug=<?php echo $open_addon_slug ?>] a').click();
166
+ if ($('#TB_iframeContent').length > 0) {
167
+ clearInterval(interval);
168
+ interval = null;
169
+ }
170
+ }, 200);
171
+
172
+ <?php else : ?>
173
+
174
+
175
+ $('.fs-card.fs-addon')
176
+ .mouseover(function () {
177
+ $(this).find('.fs-cta .button').addClass('button-primary');
178
+ }).mouseout(function () {
179
+ $(this).find('.fs-cta .button').removeClass('button-primary');
180
+ });
181
+
182
+ <?php endif ?>
183
+ })(jQuery);
184
+ </script>
185
+ <?php
186
+ if ( $has_tabs ) {
187
+ $fs->_add_tabs_after_content();
188
+ }
189
+
190
+ $params = array(
191
+ 'page' => 'addons',
192
+ 'module_id' => $fs->get_id(),
193
+ 'module_type' => $fs->get_module_type(),
194
+ 'module_slug' => $slug,
195
+ 'module_version' => $fs->get_plugin_version(),
196
+ );
197
  fs_require_template( 'powered-by.php', $params );
freemius/templates/forms/deactivation/retry-skip.php CHANGED
@@ -1,24 +1,24 @@
1
- <?php
2
- /**
3
- * @package Freemius
4
- * @copyright Copyright (c) 2015, Freemius, Inc.
5
- * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
- * @since 1.2.0
7
- */
8
-
9
- if ( ! defined( 'ABSPATH' ) ) {
10
- exit;
11
- }
12
-
13
- /**
14
- * @var array $VARS
15
- */
16
- $fs = freemius( $VARS['id'] );
17
- $slug = $fs->get_slug();
18
-
19
- $skip_url = fs_nonce_url( $fs->_get_admin_page_url( '', array( 'fs_action' => $fs->get_unique_affix() . '_skip_activation' ) ), $fs->get_unique_affix() . '_skip_activation' );
20
- $skip_text = strtolower( fs_text_x_inline( 'Skip', 'verb', 'skip', $slug ) );
21
- $use_plugin_anonymously_text = fs_text_inline( 'Click here to use the plugin anonymously', 'click-here-to-use-plugin-anonymously', $slug );
22
-
23
- echo sprintf( fs_text_inline( "You might have missed it, but you don't have to share any data and can just %s the opt-in.", 'don\'t-have-to-share-any-data', $slug ), "<a href='{$skip_url}'>{$skip_text}</a>" )
24
  . " <a href='{$skip_url}' class='button button-small button-secondary'>{$use_plugin_anonymously_text}</a>";
1
+ <?php
2
+ /**
3
+ * @package Freemius
4
+ * @copyright Copyright (c) 2015, Freemius, Inc.
5
+ * @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
6
+ * @since 1.2.0
7
+ */
8
+
9
+ if ( ! defined( 'ABSPATH' ) ) {
10
+ exit;
11
+ }
12
+
13
+ /**
14
+ * @var array $VARS
15
+ */
16
+ $fs = freemius( $VARS['id'] );
17
+ $slug = $fs->get_slug();
18
+
19
+ $skip_url = fs_nonce_url( $fs->_get_admin_page_url( '', array( 'fs_action' => $fs->get_unique_affix() . '_skip_activation' ) ), $fs->get_unique_affix() . '_skip_activation' );
20
+ $skip_text = strtolower( fs_text_x_inline( 'Skip', 'verb', 'skip', $slug ) );
21
+ $use_plugin_anonymously_text = fs_text_inline( 'Click here to use the plugin anonymously', 'click-here-to-use-plugin-anonymously', $slug );
22
+
23
+ echo sprintf( fs_text_inline( "You might have missed it, but you don't have to share any data and can just %s the opt-in.", 'don\'t-have-to-share-any-data', $slug ), "<a href='{$skip_url}'>{$skip_text}</a>" )
24
  . " <a href='{$skip_url}' class='button button-small button-secondary'>{$use_plugin_anonymously_text}</a>";
images/website_theme/{Others.png → others.png} RENAMED
File without changes
js/custom-admin.js CHANGED
@@ -920,6 +920,41 @@ function sfsi_plus_update_step6() {
920
  });
921
  }
922
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
923
  function sfsi_plus_update_step7() {
924
  var nonce = SFSI("#sfsi_plus_save7").attr("data-nonce");
925
  var s = sfsi_plus_validationStep7();
@@ -1049,11 +1084,11 @@ function sfsi_plus_update_step8() {
1049
  responsive_icons.settings.counter_color = SFSI('input[name="sfsi_plus_responsive_counter_color"]').val();
1050
  responsive_icons.settings.counter_bg_color = SFSI('input[name="sfsi_plus_responsive_counter_bg_color"]').val();
1051
  responsive_icons.settings.share_count_text = SFSI('input[name="sfsi_plus_responsive_counter_share_count_text"]').val();
1052
-
1053
  /*SFSI("#sfsi_plus_Show_popupOn_PageIDs :selected").each(function(s, i) {
1054
  _[s] = SFSI(i).val()
1055
  });*/
1056
- console.log(responsive_icons,'testing responsive');
1057
  var mst = SFSI("input[name='sfsi_plus_icons_floatMargin_top']").val(),
1058
  msb = SFSI("input[name='sfsi_plus_icons_floatMargin_bottom']").val(),
1059
  msl = SFSI("input[name='sfsi_plus_icons_floatMargin_left']").val(),
@@ -1565,12 +1600,12 @@ SFSI(document).ready(function (s) {
1565
  break;
1566
  case 'sfsi_plus_responsive_icon_show_count':
1567
  console.log(s.val());
1568
- if("yes"==s.val()){
1569
  jQuery('.sfsi_plus_responsive_icon_preview .sfsi_plus_responsive_icons_count').show();
1570
- }else{
1571
  jQuery('.sfsi_plus_responsive_icon_preview .sfsi_plus_responsive_icons_count').hide();
1572
  }
1573
- default:
1574
  }
1575
  });
1576
  //pooja 28-12-2015
@@ -1976,6 +2011,9 @@ SFSI(document).ready(function (s) {
1976
  SFSI("#sfsi_plus_worker_plugin").on("click", function () {
1977
  sfsi_plus_worker_plugin();
1978
  }),
 
 
 
1979
  SFSI("#save_plus_all_settings").on("click", function () {
1980
  return SFSI("#save_plus_all_settings").text("Saving.."), SFSI(".save_button >a").css("pointer-events", "none"),
1981
  sfsi_plus_update_step1(), sfsi_plus_update_step9(), 1 == global_error ? (sfsiplus_showErrorSuc("error", 'Some Selection error in "Which icons do you want to show on your site?" tab.', 8),
@@ -2465,7 +2503,7 @@ SFSI("body").on("click", ".sfsi_plus_tokenGenerateButton a", function () {
2465
  var clienId = SFSI("input[name='sfsi_plus_instagram_clientid']").val();
2466
  var redirectUrl = SFSI("input[name='sfsi_plus_instagram_appurl']").val();
2467
 
2468
- var scope = "likes+comments+basic+public_content+follower_list+relationships";
2469
  var instaUrl = "https://www.instagram.com/oauth/authorize/?client_id=<id>&redirect_uri=<url>&response_type=token&scope=" + scope;
2470
 
2471
  if (clienId !== '' && redirectUrl !== '') {
@@ -3061,14 +3099,14 @@ function sfsi_plus_responsive_icon_intraction_handler() {
3061
  SFSI('select[name="sfsi_plus_responsive_icons_settings_edge_type"]').on('change', function () {
3062
  $target_div = (SFSI(this).parent());
3063
  if (SFSI(this).val() === "Round") {
3064
- console.log('Round','Round',SFSI(this).val());
3065
 
3066
  $target_div.parent().children().css('display', 'inline-block');
3067
  var radius = jQuery('select[name="sfsi_plus_responsive_icons_settings_edge_radius"]').val() + 'px'
3068
  jQuery('.sfsi_plus_responsive_icon_preview .sfsi_plus_responsive_icon_item_container,.sfsi_plus_responsive_icon_preview .sfsi_plus_responsive_icons_count').css('border-radius', radius);
3069
 
3070
  } else {
3071
- console.log('sharp','sharp',SFSI(this).val(),$target_div.parent().children(),$target_div.parent().children().hide());
3072
 
3073
  $target_div.parent().children().hide();
3074
  $target_div.show();
@@ -3490,7 +3528,7 @@ function sfsi_plus_fixedWidth_fitText(container) {
3490
  }
3491
 
3492
  function sfsi_plus_resize_icons_container() {
3493
- return ;
3494
  // resize icon container based on the size of count
3495
  sfsi_plus_cloned_icon_list = jQuery('.sfsi_plus_responsive_icon_preview .sfsi_plus_icons_container').clone();
3496
  sfsi_plus_cloned_icon_list.removeClass('.sfsi_plus_responsive_icon_preview .sfsi_plus_responsive_with_counter_icons').addClass('sfsi_plus_responsive_cloned_list');
920
  });
921
  }
922
 
923
+ function sfsi_plus_save_export() {
924
+ var nonce = SFSI("#sfsi_plus_save_export").attr("data-nonce");
925
+ var data = {
926
+ action: "save_export",
927
+ nonce: nonce
928
+ };
929
+ SFSI.ajax({
930
+ url: sfsi_plus_ajax_object.ajax_url,
931
+ type: "post",
932
+ data: data,
933
+ success: function (s) {
934
+ console.log(s);
935
+ if (s == "wrong_nonce") {
936
+ sfsiplus_showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 6);
937
+ global_error = 1;
938
+ } else {
939
+ var date = new Date();
940
+ var timestamp = date.getTime();
941
+ var blob = new Blob([JSON.stringify(s, null, 2)], {
942
+ type: 'application/json'
943
+ });
944
+ var url = URL.createObjectURL(blob);
945
+ let link = document.createElement("a");
946
+ link.href = url;
947
+ link.download = "sfsi_plus_export_options"+timestamp+".json"
948
+ link.innerText = "Open the array URL";
949
+ document.body.appendChild(link);
950
+ link.click();
951
+ "success" == s ? (sfsiplus_showErrorSuc("Settings Exported !", "Saved !", 6)) : (global_error = 1,
952
+ sfsiplus_showErrorSuc("error", "Unkown error , please try again", 6));
953
+ }
954
+ }
955
+ });
956
+ }
957
+
958
  function sfsi_plus_update_step7() {
959
  var nonce = SFSI("#sfsi_plus_save7").attr("data-nonce");
960
  var s = sfsi_plus_validationStep7();
1084
  responsive_icons.settings.counter_color = SFSI('input[name="sfsi_plus_responsive_counter_color"]').val();
1085
  responsive_icons.settings.counter_bg_color = SFSI('input[name="sfsi_plus_responsive_counter_bg_color"]').val();
1086
  responsive_icons.settings.share_count_text = SFSI('input[name="sfsi_plus_responsive_counter_share_count_text"]').val();
1087
+
1088
  /*SFSI("#sfsi_plus_Show_popupOn_PageIDs :selected").each(function(s, i) {
1089
  _[s] = SFSI(i).val()
1090
  });*/
1091
+ console.log(responsive_icons, 'testing responsive');
1092
  var mst = SFSI("input[name='sfsi_plus_icons_floatMargin_top']").val(),
1093
  msb = SFSI("input[name='sfsi_plus_icons_floatMargin_bottom']").val(),
1094
  msl = SFSI("input[name='sfsi_plus_icons_floatMargin_left']").val(),
1600
  break;
1601
  case 'sfsi_plus_responsive_icon_show_count':
1602
  console.log(s.val());
1603
+ if ("yes" == s.val()) {
1604
  jQuery('.sfsi_plus_responsive_icon_preview .sfsi_plus_responsive_icons_count').show();
1605
+ } else {
1606
  jQuery('.sfsi_plus_responsive_icon_preview .sfsi_plus_responsive_icons_count').hide();
1607
  }
1608
+ default:
1609
  }
1610
  });
1611
  //pooja 28-12-2015
2011
  SFSI("#sfsi_plus_worker_plugin").on("click", function () {
2012
  sfsi_plus_worker_plugin();
2013
  }),
2014
+ SFSI("#sfsi_plus_save_export").on("click", function () {
2015
+ sfsi_plus_save_export();
2016
+ }),
2017
  SFSI("#save_plus_all_settings").on("click", function () {
2018
  return SFSI("#save_plus_all_settings").text("Saving.."), SFSI(".save_button >a").css("pointer-events", "none"),
2019
  sfsi_plus_update_step1(), sfsi_plus_update_step9(), 1 == global_error ? (sfsiplus_showErrorSuc("error", 'Some Selection error in "Which icons do you want to show on your site?" tab.', 8),
2503
  var clienId = SFSI("input[name='sfsi_plus_instagram_clientid']").val();
2504
  var redirectUrl = SFSI("input[name='sfsi_plus_instagram_appurl']").val();
2505
 
2506
+ var scope = "basic";
2507
  var instaUrl = "https://www.instagram.com/oauth/authorize/?client_id=<id>&redirect_uri=<url>&response_type=token&scope=" + scope;
2508
 
2509
  if (clienId !== '' && redirectUrl !== '') {
3099
  SFSI('select[name="sfsi_plus_responsive_icons_settings_edge_type"]').on('change', function () {
3100
  $target_div = (SFSI(this).parent());
3101
  if (SFSI(this).val() === "Round") {
3102
+ console.log('Round', 'Round', SFSI(this).val());
3103
 
3104
  $target_div.parent().children().css('display', 'inline-block');
3105
  var radius = jQuery('select[name="sfsi_plus_responsive_icons_settings_edge_radius"]').val() + 'px'
3106
  jQuery('.sfsi_plus_responsive_icon_preview .sfsi_plus_responsive_icon_item_container,.sfsi_plus_responsive_icon_preview .sfsi_plus_responsive_icons_count').css('border-radius', radius);
3107
 
3108
  } else {
3109
+ console.log('sharp', 'sharp', SFSI(this).val(), $target_div.parent().children(), $target_div.parent().children().hide());
3110
 
3111
  $target_div.parent().children().hide();
3112
  $target_div.show();
3528
  }
3529
 
3530
  function sfsi_plus_resize_icons_container() {
3531
+ return;
3532
  // resize icon container based on the size of count
3533
  sfsi_plus_cloned_icon_list = jQuery('.sfsi_plus_responsive_icon_preview .sfsi_plus_icons_container').clone();
3534
  sfsi_plus_cloned_icon_list.removeClass('.sfsi_plus_responsive_icon_preview .sfsi_plus_responsive_with_counter_icons').addClass('sfsi_plus_responsive_cloned_list');
js/custom.js CHANGED
@@ -1,551 +1,551 @@
1
- jQuery(document).ready(function (e) {
2
- jQuery("#sfsi_plus_floater").attr("data-top", jQuery(document).height());
3
- });
4
-
5
- function sfsiplus_showErrorSuc(s, i, e) {
6
- if ("error" == s) var t = "errorMsg";
7
- else var t = "sucMsg";
8
- return SFSI(".tab" + e + ">." + t).html(i), SFSI(".tab" + e + ">." + t).show(),
9
- SFSI(".tab" + e + ">." + t).effect("highlight", {}, 5e3), setTimeout(function () {
10
- SFSI("." + t).slideUp("slow");
11
- }, 5e3), !1;
12
- }
13
-
14
- function sfsiplus_beForeLoad() {
15
- SFSI(".loader-img").show(), SFSI(".save_button >a").html("Saving..."), SFSI(".save_button >a").css("pointer-events", "none");
16
- }
17
-
18
- function sfsi_plus_make_popBox() {
19
- var s = 0;
20
- SFSI(".plus_sfsi_sample_icons >li").each(function () {
21
- "none" != SFSI(this).css("display") && (s = 1);
22
- }), 0 == s ? SFSI(".sfsi_plus_Popinner").hide() : SFSI(".sfsi_plus_Popinner").show(), "" != SFSI('input[name="sfsi_plus_popup_text"]').val() ? (SFSI(".sfsi_plus_Popinner >h2").html(SFSI('input[name="sfsi_plus_popup_text"]').val()),
23
- SFSI(".sfsi_plus_Popinner >h2").show()) : SFSI(".sfsi_plus_Popinner >h2").hide(), SFSI(".sfsi_plus_Popinner").css({
24
- "border-color": SFSI('input[name="sfsi_plus_popup_border_color"]').val(),
25
- "border-width": SFSI('input[name="sfsi_plus_popup_border_thickness"]').val(),
26
- "border-style": "solid"
27
- }), SFSI(".sfsi_plus_Popinner").css("background-color", SFSI('input[name="sfsi_plus_popup_background_color"]').val()),
28
- SFSI(".sfsi_plus_Popinner h2").css("font-family", SFSI("#sfsi_plus_popup_font").val()), SFSI(".sfsi_plus_Popinner h2").css("font-style", SFSI("#sfsi_plus_popup_fontStyle").val()),
29
- SFSI(".sfsi_plus_Popinner >h2").css("font-size", parseInt(SFSI('input[name="sfsi_plus_popup_fontSize"]').val())),
30
- SFSI(".sfsi_plus_Popinner >h2").css("color", SFSI('input[name="sfsi_plus_popup_fontColor"]').val() + " !important"),
31
- "yes" == SFSI('input[name="sfsi_plus_popup_border_shadow"]:checked').val() ? SFSI(".sfsi_plus_Popinner").css("box-shadow", "12px 30px 18px #CCCCCC") : SFSI(".sfsi_plus_Popinner").css("box-shadow", "none");
32
- }
33
-
34
- function sfsi_plus_stick_widget(s) {
35
- 0 == sfsiplus_initTop.length && (SFSI(".sfsi_plus_widget").each(function (s) {
36
- sfsiplus_initTop[s] = SFSI(this).position().top;
37
- }), console.log(sfsiplus_initTop));
38
- var i = SFSI(window).scrollTop(),
39
- e = [],
40
- t = [];
41
- SFSI(".sfsi_plus_widget").each(function (s) {
42
- e[s] = SFSI(this).position().top, t[s] = SFSI(this);
43
- });
44
- var n = !1;
45
- for (var o in e) {
46
- var a = parseInt(o) + 1;
47
- e[o] < i && e[a] > i && a < e.length ? (SFSI(t[o]).css({
48
- position: "fixed",
49
- top: s
50
- }), SFSI(t[a]).css({
51
- position: "",
52
- top: sfsiplus_initTop[a]
53
- }), n = !0) : SFSI(t[o]).css({
54
- position: "",
55
- top: sfsiplus_initTop[o]
56
- });
57
- }
58
- if (!n) {
59
- var r = e.length - 1,
60
- c = -1;
61
- e.length > 1 && (c = e.length - 2), sfsiplus_initTop[r] < i ? (SFSI(t[r]).css({
62
- position: "fixed",
63
- top: s
64
- }), c >= 0 && SFSI(t[c]).css({
65
- position: "",
66
- top: sfsiplus_initTop[c]
67
- })) : (SFSI(t[r]).css({
68
- position: "",
69
- top: sfsiplus_initTop[r]
70
- }), c >= 0 && e[c] < i);
71
- }
72
- }
73
-
74
- function sfsi_plus_float_widget(s) {
75
- function iplus() {
76
- rplus = "Microsoft Internet Explorer" === navigator.appName ? aplus - document.documentElement.scrollTop : aplus - window.pageYOffset,
77
- Math.abs(rplus) > 0 ? (window.removeEventListener("scroll", iplus), aplus -= rplus * oplus, SFSI("#sfsi_plus_floater").css({
78
- top: (aplus + t).toString() + "px"
79
- }), setTimeout(iplus, n)) : window.addEventListener("scroll", iplus, !1);
80
-
81
- }
82
- /*function eplus()
83
- {
84
- var documentheight = SFSI("#sfsi_plus_floater").attr("data-top");
85
- var fltrhght = parseInt(SFSI("#sfsi_plus_floater").height());
86
- var fltrtp = parseInt(SFSI("#sfsi_plus_floater").css("top"));
87
- if(parseInt(fltrhght)+parseInt(fltrtp) <=documentheight)
88
- {
89
- window.addEventListener("scroll", iplus, !1);
90
- }
91
- else
92
- {
93
- window.removeEventListener("scroll", iplus);
94
- SFSI("#sfsi_plus_floater").css("top",documentheight+"px");
95
- }
96
- }*/
97
-
98
- SFSI(window).scroll(function () {
99
- var documentheight = SFSI("#sfsi_plus_floater").attr("data-top");
100
- var fltrhght = parseInt(SFSI("#sfsi_plus_floater").height());
101
- var fltrtp = parseInt(SFSI("#sfsi_plus_floater").css("top"));
102
- if (parseInt(fltrhght) + parseInt(fltrtp) <= documentheight) {
103
- window.addEventListener("scroll", iplus, !1);
104
- } else {
105
- window.removeEventListener("scroll", iplus);
106
- SFSI("#sfsi_plus_floater").css("top", documentheight + "px");
107
- }
108
- });
109
-
110
- if ("center" == s) {
111
- var t = (jQuery(window).height() - SFSI("#sfsi_plus_floater").height()) / 2;
112
- } else if ("bottom" == s) {
113
- var t = window.innerHeight - (SFSI("#sfsi_plus_floater").height() + parseInt(SFSI('#sfsi_plus_floater').css('margin-bottom')));
114
- } else {
115
- var t = parseInt(s);
116
- }
117
- var n = 50,
118
- oplus = .1,
119
- aplus = 0,
120
- rplus = 0;
121
- //SFSI("#sfsi_plus_floater"), window.onscroll = eplus;
122
- }
123
-
124
- function sfsi_plus_shuffle() {
125
- var s = [];
126
- SFSI(".sfsi_plus_wicons ").each(function (i) {
127
- SFSI(this).text().match(/^\s*$/) || (s[i] = "<div class='" + SFSI(this).attr("class") + "'>" + SFSI(this).html() + "</div>",
128
- SFSI(this).fadeOut("slow"), SFSI(this).insertBefore(SFSI(this).prev(".sfsi_plus_wicons")),
129
- SFSI(this).fadeIn("slow"));
130
- }), s = sfsiplus_Shuffle(s), $("#sfsi_plus_wDiv").html("");
131
- for (var i = 0; i < testArray.length; i++) $("#sfsi_plus_wDiv").append(s[i]);
132
- }
133
-
134
- function sfsiplus_Shuffle(s) {
135
- for (var i, e, t = s.length; t; i = parseInt(Math.random() * t), e = s[--t], s[t] = s[i],
136
- s[i] = e);
137
- return s;
138
- }
139
-
140
- function sfsi_plus_setCookie(s, i, e) {
141
- var t = new Date();
142
- t.setTime(t.getTime() + 1e3 * 60 * 60 * 24 * e);
143
- var n = "expires=" + t.toGMTString();
144
- document.cookie = s + "=" + i + "; " + n;
145
- }
146
-
147
- function sfsfi_plus_getCookie(s) {
148
- for (var i = s + "=", e = document.cookie.split(";"), t = 0; t < e.length; t++) {
149
- var n = e[t].trim();
150
- if (0 == n.indexOf(i)) return n.substring(i.length, n.length);
151
- }
152
- return "";
153
- }
154
-
155
- function sfsi_plus_hideFooter() {}
156
-
157
- window.onerror = function () {}, SFSI = jQuery.noConflict(), SFSI(window).on('load', function () {
158
- SFSI("#sfpluspageLoad").fadeOut(2e3);
159
- });
160
-
161
- var global_error = 0;
162
-
163
- SFSI(document).ready(function (s) {
164
-
165
- //changes done {Monad}
166
- SFSI("head").append('<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />'),
167
- SFSI("head").append('<meta http-equiv="Pragma" content="no-cache" />'), SFSI("head").append('<meta http-equiv="Expires" content="0" />'),
168
- SFSI(document).click(function (s) {
169
- var i = SFSI(".sfsi_plus_FrntInner_changedmonad"),
170
- e = SFSI(".sfsi_plus_wDiv"),
171
- t = SFSI("#at15s");
172
- 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();
173
- }),
174
- SFSI("div.sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseover(function () {
175
- SFSI(this).attr("src", sfsi_plus_ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg");
176
- }),
177
- SFSI("div.sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseleave(function () {
178
- SFSI(this).attr("src", sfsi_plus_ajax_object.plugin_url + "images/visit_icons/linkedIn.svg");
179
- }),
180
- SFSI("div.sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseover(function () {
181
- SFSI(this).attr("src", sfsi_plus_ajax_object.plugin_url + "images/visit_icons/youtube_hover.svg");
182
- }),
183
- SFSI("div.sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseleave(function () {
184
- SFSI(this).attr("src", sfsi_plus_ajax_object.plugin_url + "images/visit_icons/youtube.svg");
185
- }),
186
- SFSI("div.sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseover(function () {
187
- SFSI(this).css("opacity", "0.9");
188
- }),
189
- SFSI("div.sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseleave(function () {
190
- SFSI(this).css("opacity", "1");
191
- }),
192
- SFSI("div.sfsiplusid_twitter").find(".cstmicon1").find("a").find("img").mouseover(function () {
193
- SFSI(this).css("opacity", "0.9");
194
- }),
195
- SFSI("div.sfsiplusid_twitter").find(".cstmicon1").find("a").find("img").mouseleave(function () {
196
- SFSI(this).css("opacity", "1");
197
- }),
198
- SFSI(".pop-up").on("click", function () {
199
- ("fbex-s2" == SFSI(this).attr("data-id") || "linkex-s2" == SFSI(this).attr("data-id")) && (SFSI("." + SFSI(this).attr("data-id")).hide(),
200
- SFSI("." + SFSI(this).attr("data-id")).css("opacity", "1"), SFSI("." + SFSI(this).attr("data-id")).css("z-index", "1000")),
201
- SFSI("." + SFSI(this).attr("data-id")).show("slow");
202
- }),
203
- /*SFSI("#close_popup").live("click", function() {*/
204
- SFSI(document).on("click", '#close_popup', function () {
205
- SFSI(".read-overlay").hide("slow");
206
- });
207
- var e = 0;
208
- sfsi_plus_make_popBox(),
209
- SFSI('input[name="sfsi_plus_popup_text"] ,input[name="sfsi_plus_popup_background_color"],input[name="sfsi_plus_popup_border_color"],input[name="sfsi_plus_popup_border_thickness"],input[name="sfsi_plus_popup_fontSize"],input[name="sfsi_plus_popup_fontColor"]').on("keyup", sfsi_plus_make_popBox),
210
- SFSI('input[name="sfsi_plus_popup_text"] ,input[name="sfsi_plus_popup_background_color"],input[name="sfsi_plus_popup_border_color"],input[name="sfsi_plus_popup_border_thickness"],input[name="sfsi_plus_popup_fontSize"],input[name="sfsi_plus_popup_fontColor"]').on("focus", sfsi_plus_make_popBox),
211
- SFSI("#sfsi_plus_popup_font ,#sfsi_plus_popup_fontStyle").on("change", sfsi_plus_make_popBox),
212
- /*SFSI(".radio").live("click", function(){*/
213
- SFSI(document).on("click", '.radio', function () {
214
- var s = SFSI(this).parent().find("input:radio:first");
215
- "sfsi_plus_popup_border_shadow" == s.attr("name") && sfsi_plus_make_popBox();
216
- }), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI("img.sfsi_wicon").on("click", function (s) {
217
- s.stopPropagation();
218
- var i = SFSI("#sfsi_plus_floater_sec").val();
219
- SFSI("div.sfsi_plus_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide(),
220
- SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_tool_tip_2").css("z-index", "0"),
221
- SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide()),
222
- SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
223
- "z-index": "999"
224
- }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
225
- opacity: 1,
226
- "z-index": 10
227
- }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
228
- SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
229
- opacity: 1,
230
- "z-index": 10
231
- }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
232
- SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
233
- opacity: 1,
234
- "z-index": 10
235
- })), ("top-left" == i || "top-right" == i) && SFSI(this).parent().parent().parent().parent("#sfsi_plus_floater").length > 0 && "sfsi_plus_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass("sfsi_plc_btm"),
236
- SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
237
- SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
238
- opacity: 1,
239
- "z-index": 10
240
- }), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show()) : (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),
241
- SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").removeClass("sfsi_plc_btm"),
242
- SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
243
- opacity: 1,
244
- "z-index": 1e3
245
- }), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show());
246
- // if(SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").attr('id')=="sfsiplusid_twitter" || SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").hasClass("sfsiplusid_twitter")){
247
- // sfsi_plus_clone = SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find(".sfsi_plus_inside .icon2 iframe').clone();
248
- // SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find(".sfsi_plus_inside .icon2 iframe').detach().remove();
249
- // SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find(".sfsi_plus_inside .icon2').append(sfsi_plus_clone);
250
- // }
251
-
252
- }) : SFSI(document).on("mouseenter", "img.sfsi_wicon", function () {
253
- var s = SFSI("#sfsi_plus_floater_sec").val();
254
- SFSI("div.sfsi_plus_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide(),
255
- SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_tool_tip_2").css("z-index", "0"),
256
- SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide()),
257
- SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
258
- "z-index": "999"
259
- }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
260
- opacity: 1,
261
- "z-index": 10
262
- }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
263
- SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
264
- opacity: 1,
265
- "z-index": 10
266
- }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
267
- SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
268
- opacity: 1,
269
- "z-index": 10
270
- })), ("top-left" == s || "top-right" == s) && SFSI(this).parent().parent().parent().parent("#sfsi_plus_floater").length > 0 && "sfsi_plus_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass("sfsi_plc_btm"),
271
- SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
272
- SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
273
- opacity: 1,
274
- "z-index": 10
275
- }), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show()) : (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),
276
- SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").removeClass("sfsi_plc_btm"),
277
- SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
278
- opacity: 1,
279
- "z-index": 10
280
- }), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show());
281
- if (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").attr('id') == "sfsiplusid_twitter" || SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").hasClass("sfsiplusid_twitter")) {
282
- sfsi_plus_clone = SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find(".sfsi_plus_inside .icon2 iframe").clone();
283
- SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find(".sfsi_plus_inside .icon2 iframe").detach().remove();
284
- SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find(".sfsi_plus_inside .icon2").append(sfsi_plus_clone);
285
- }
286
- }), SFSI(document).on("mouseleave", "div.sfsi_plus_wicons", function () {
287
- SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && "fade_in" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").css("opacity", "0.6"),
288
- SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && "scale" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").removeClass("scale"),
289
- SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && "combo" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && (SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").css("opacity", "0.6"),
290
- SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").removeClass("scale"));
291
- }), SFSI("body").on("click", function () {
292
- SFSI(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide();
293
- }), SFSI(".adminTooltip >a").on("hover", function () {
294
- SFSI(this).offset().top, SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").css("opacity", "1"),
295
- SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").show();
296
- }), SFSI(".adminTooltip").on("mouseleave", function () {
297
- "none" != SFSI(".sfsi_plus_gpls_tool_bdr").css("display") && 0 != SFSI(".sfsi_plus_gpls_tool_bdr").css("opacity") ? SFSI(".pop_up_box ").on("click", function () {
298
- SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").css("opacity", "0"), SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").hide();
299
- }) : (SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").css("opacity", "0"),
300
- SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").hide());
301
- }), SFSI(".expand-area").on("click", function () {
302
- "Read more" == SFSI(this).text() ? (SFSI(this).siblings("p").children("label").fadeIn("slow"),
303
- SFSI(this).text("Collapse")) : (SFSI(this).siblings("p").children("label").fadeOut("slow"),
304
- SFSI(this).text("Read more"));
305
- }), SFSI(".sfsi_plus_wDiv").length > 0 && setTimeout(function () {
306
- var s = parseInt(SFSI(".sfsi_plus_wDiv").height()) + 15 + "px";
307
- SFSI(".sfsi_plus_holders").each(function () {
308
- SFSI(this).css("height", s);
309
- });
310
- SFSI(".sfsi_plus_widget").css("min-height", "auto");
311
- }, 200);
312
- jQuery(document).find('.wp-block-ultimate-social-media-plus-sfsi-plus-share-block').each(function (index, target) {
313
- console.log('gutenberg', target);
314
- var actual_target = jQuery(target).find('.sfsi_plus_block');
315
- var align = jQuery(actual_target).attr('data-align');
316
- var maxPerRow = jQuery(actual_target).attr('data-count');
317
- var iconType = jQuery(actual_target).attr('data-icon-type');
318
- // console.log(iconType);
319
- jQuery.ajax({
320
- 'url': '/wp-json/ultimate-social-media-plus/v1/icons/?url=' + window.location.href + '&ractangle_icon=' + ('round' == iconType ? 0 : 1),
321
- 'method': 'GET'
322
- // 'data':{'is_admin':true,'share_url':'/'}
323
- }).done((response) => {
324
- jQuery(actual_target).html(response);
325
- if (iconType == 'round') {
326
- sfsi_plus_changeIconWidth(maxPerRow, target, align);
327
- } else {
328
- if ('center' === align) {
329
- jQuery(target).find('.sfsi_plus_block_text_before_icon').css({
330
- 'display': 'inherit'
331
- });
332
- }
333
- jQuery(target).css({
334
- 'text-align': align
335
- });
336
- }
337
- if (window.gapi) {
338
- window.gapi.plusone.go();
339
- window.gapi.plus.go();
340
- window.gapi.ytsubscribe.go();
341
- };
342
- if (window.twttr) {
343
- window.twttr.widgets.load();
344
- };
345
- if (window.IN && window.IN.parse) {
346
- window.IN.parse();
347
- };
348
- if (window.addthis) {
349
- if (window.addthis.toolbox) {
350
- window.addthis.toolbox('.addthis_button.sficn');
351
- } else {
352
- window.addthis.init();
353
- window.addthis.toolbox('.addthis_button.sficn');
354
- }
355
- };
356
- if (window.PinUtils) {
357
- window.PinUtils.build();
358
- };
359
- if (window.FB) {
360
- if (window.FB.XFBML) {
361
- window.FB.XFBML.parse();
362
- }
363
- };
364
- }).fail((response) => {
365
- // console.log(response,$('.sfsi_plus_block'));
366
- jQuery(actual_target).html(response.responseText.replace('/\\/g', ''));
367
- });
368
- });
369
- if (undefined !== window.location.hash) {
370
- switch (window.location.hash) {
371
- case '#ui-id-3':
372
- jQuery('#ui-id-3').click();
373
- case '#ui-id-1':
374
- jQuery('#ui-id-1').click();
375
- }
376
- }
377
- // sfsi_plus_update_iconcount();
378
- });
379
-
380
- function sfsi_plus_update_iconcount() {
381
- SFSI(".wp-block-ultimate-social-media-plus-sfsi-plus-share-block").each(function () {
382
- var icon_count = SFSI(this).find(".sfsi_plus_block").attr('data-count');
383
- var icon_align = SFSI(this).find(".sfsi_plus_block").attr('data-align');
384
- // console.log(icon_count,icon_align,this,jQuery(this),jQuery(this).find('.sfsiplus_norm_row'));
385
- // sfsi_plus_changeIconWidth(icon_count,this);
386
- if (jQuery(this).find('.sfsiplus_norm_row').length < 1) {
387
- setTimeout(function () {
388
- // console.log(icon_count);
389
- sfsi_plus_changeIconWidth(icon_count, this, icon_align);
390
- }, 1000);
391
- } else {
392
- sfsi_plus_changeIconWidth(icon_count, this, icon_align);
393
- }
394
- });
395
- }
396
-
397
- function sfsi_plus_changeIconWidth(per_row = null, target, icon_align) {
398
- var iconWidth = parseInt(jQuery(target).find('.sfsiplus_norm_row div').css('width')) || 40;
399
- console.log('iconwidth', iconWidth, jQuery(target).find('.sfsiplus_norm_row'), jQuery(target).find('.sfsiplus_norm_row div').css('width'));
400
-
401
- var iconMargin = parseInt(jQuery(target).find('.sfsiplus_norm_row div').css('margin-left')) || 0;
402
-
403
- var wrapperWidth = (iconWidth + iconMargin) * per_row;
404
- jQuery(target).find('.sfsiplus_norm_row').css({
405
- 'width': wrapperWidth + 'px'
406
- });
407
- jQuery(target).find('.sfsi_plus_block').css({
408
- 'width': wrapperWidth + 'px'
409
- });
410
- jQuery(target).find('.sfsi_plus_block_text_before_icon').css({
411
- 'padding-top': '12px'
412
- });
413
- if ('center' === icon_align) {
414
- jQuery(target).find('.sfsi_plus_block_text_before_icon').css({
415
- 'display': 'inherit'
416
- });
417
- }
418
- jQuery(target).css({
419
- 'text-align': icon_align
420
- });
421
- }
422
- //hiding popup on close button
423
- function sfsiplushidemepopup() {
424
- SFSI(".sfsi_plus_FrntInner").fadeOut();
425
- }
426
-
427
- var sfsiplus_initTop = new Array();
428
-
429
- function sfsi_plus_wechat_follow(url) {
430
- if (jQuery('.sfsi_plus_wechat_scan').length == 0) {
431
- jQuery('body').append("<div class='sfsi_plus_wechat_scan sfsi_plus_overlay show'><div class='sfsi_plus_inner_display'><a class='close_btn' href='' onclick=\"event.preventDefault();close_overlay(\'.sfsi_plus_wechat_scan\')\" >&times;</a><img src='" + url + "' style='max-width:90%;max-height:90%' /></div></div>");
432
- } else {
433
- jQuery('.sfsi_plus_wechat_scan').removeClass('hide').addClass('show');
434
- }
435
- }
436
-
437
- function close_overlay(selector) {
438
- if (typeof selector === "undefined") {
439
- selector = '.sfsi_plus_overlay';
440
- }
441
- jQuery(selector).removeClass('show').addClass('hide');
442
- }
443
-
444
- function sfsi_plus_wechat_share(url) {
445
- if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
446
- sfsi_plus_wechat_share_mobile(url);
447
- } else {
448
- if (jQuery('.sfsi_plus_wechat_follow_overlay').length == 0) {
449
- jQuery('body').append("<div class='sfsi_plus_wechat_follow_overlay sfsi_plus_overlay show'><div class='sfsi_plus_inner_display'><a class='close_btn' href='' onclick=\"event.preventDefault();close_overlay(\'.sfsi_plus_wechat_follow_overlay\')\" >&times;</a><div style='width:95%;max-width:500px; min-height:80%;background-color:#fff;margin:0 auto;margin:10% auto;padding: 20px 0;'><div style='width:90%;margin: 0 auto;text-align:center'><div class='sfsi_plus_wechat_qr_display' style='display:inline-block'></div></div><div style='width:80%;margin:10px auto 0 auto;text-align:center;font-weight:900;font-size:25px;'>\"Scan QR Code\" in WeChat and press ··· to share!</div></div></div>");
450
- new QRCode(jQuery('.sfsi_plus_wechat_follow_overlay .sfsi_plus_wechat_qr_display')[0], window.location.href)
451
- jQuery('.sfsi_plus_wechat_follow_overlay .sfsi_plus_wechat_qr_display img').attr('nopin', 'nopin')
452
- } else {
453
- jQuery('.sfsi_plus_wechat_follow_overlay').removeClass('hide').addClass('show');
454
- }
455
- }
456
- }
457
-
458
- function sfsi_plus_wechat_share_mobile(url) {
459
- if (jQuery('.sfsi_plus_wechat_follow_overlay').length == 0) {
460
- jQuery('body').append("<div class='sfsi_plus_wechat_follow_overlay sfsi_plus_overlay show'><div class='sfsi_plus_inner_display'><a class='close_btn' href='' onclick=\"event.preventDefault();close_overlay(\'.sfsi_plus_wechat_follow_overlay\')\" >&times;</a><div style='width:95%; min-height:80%;background-color:#fff;margin:0 auto;margin:20% auto;padding: 20px 0;'><div style='width:90%;margin: 0 auto;'><input type='text' value='" + window.location.href + "' style='width:100%;padding:7px 0;text-align:center' /></div><div style='width:80%;margin:10px auto 0 auto'><div style='width:30%;display:inline-block;text-align:center' class='sfsi_plus_upload_butt_container' ><button onclick='sfsi_copy_text_parent_input(event)' class='upload_butt' >Copy</button></div><div style='width:60%;display:inline-block;text-align:center;margin-left:10%' class='sfsi_plus_upload_butt_container' ><a href='weixin://' class='upload_butt'>Open WeChat</a></div></div></div></div>");
461
- } else {
462
- jQuery('.sfsi_plus_wechat_follow_overlay').removeClass('hide').addClass('show');
463
- }
464
- }
465
-
466
- function sfsi_copy_text_parent_input(event) {
467
- var target = jQuery(event.target);
468
- console.log(target);
469
- input_target = target.parent().parent().parent().find('input');
470
- input_target.select();
471
- document.execCommand('copy');
472
- }
473
-
474
-
475
- function sfsi_plus_widget_set() {
476
- jQuery(".sfsi_plus_widget").each(function (index) {
477
- if (jQuery(this).attr("data-position") == "widget") {
478
- var wdgt_hght = jQuery(this).children(".sfsiplus_norm_row.sfsi_plus_wDiv").height();
479
- var title_hght = jQuery(this).parent(".widget.sfsi_plus").children(".widget-title").height();
480
- var totl_hght = parseInt(title_hght) + parseInt(wdgt_hght);
481
- jQuery(this).parent(".widget.sfsi_plus").css("min-height", totl_hght + "px");
482
- }
483
- });
484
- }
485
-
486
- function sfsi_plus_time_pop_up(time_popUp){
487
- jQuery(document).ready(function($) {
488
- setTimeout(
489
- function() {
490
- jQuery('.sfsi_plus_outr_div').css({
491
- 'z-index': '1000000',
492
- opacity: 1
493
- });
494
- jQuery('.sfsi_plus_outr_div').fadeIn();
495
- jQuery('.sfsi_plus_FrntInner').fadeIn(200);
496
- }, time_popUp);
497
- });
498
- }
499
- function sfsi_plus_responsive_toggle(){
500
- jQuery(document).scroll(function($) {
501
- var y = jQuery(this).scrollTop();
502
- if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
503
- if (jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height() - 100) {
504
- jQuery('.sfsi_plus_outr_div').css({
505
- 'z-index': '9996',
506
- opacity: 1,
507
- top: jQuery(window).scrollTop() + "px",
508
- position: "absolute"
509
- });
510
- jQuery('.sfsi_plus_outr_div').fadeIn(200);
511
- jQuery('.sfsi_plus_FrntInner').fadeIn(200);
512
- } else {
513
- jQuery('.sfsi_plus_outr_div').fadeOut();
514
- jQuery('.sfsi_plus_FrntInner').fadeOut();
515
- }
516
- } else {
517
- if (jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height() - 3) {
518
- jQuery('.sfsi_plus_outr_div').css({
519
- 'z-index': '9996',
520
- opacity: 1,
521
- top: jQuery(window).scrollTop() + 200 + "px",
522
- position: "absolute"
523
- });
524
- jQuery('.sfsi_plus_outr_div').fadeIn(200);
525
- jQuery('.sfsi_plus_FrntInner').fadeIn(200);
526
- } else {
527
- jQuery('.sfsi_plus_outr_div').fadeOut();
528
- jQuery('.sfsi_plus_FrntInner').fadeOut();
529
- }
530
- }
531
- });
532
- }
533
-
534
- function sfsi_social_pop_up(time_popUp){
535
- jQuery(document).ready(function($) {
536
- //SFSI('.sfsi_plus_outr_div').fadeIn();
537
- sfsi_plus_setCookie('sfsi_socialPopUp', time(), 32);
538
- setTimeout(function() {
539
- jQuery('.sfsi_plus_outr_div').css({
540
- 'z-index': '1000000',
541
- opacity: 1
542
- });
543
- jQuery('.sfsi_plus_outr_div').fadeIn();
544
- }, time_popUp);
545
- });
546
- var SFSI = jQuery.noConflict();
547
- }
548
-
549
- // should execute at last so that every function is acceable.
550
- var sfsi_plus_functions_loaded = new CustomEvent('sfsi_plus_functions_loaded',{detail:{"abc":"def"}});
551
- window.dispatchEvent(sfsi_plus_functions_loaded);
1
+ jQuery(document).ready(function (e) {
2
+ jQuery("#sfsi_plus_floater").attr("data-top", jQuery(document).height());
3
+ });
4
+
5
+ function sfsiplus_showErrorSuc(s, i, e) {
6
+ if ("error" == s) var t = "errorMsg";
7
+ else var t = "sucMsg";
8
+ return SFSI(".tab" + e + ">." + t).html(i), SFSI(".tab" + e + ">." + t).show(),
9
+ SFSI(".tab" + e + ">." + t).effect("highlight", {}, 5e3), setTimeout(function () {
10
+ SFSI("." + t).slideUp("slow");
11
+ }, 5e3), !1;
12
+ }
13
+
14
+ function sfsiplus_beForeLoad() {
15
+ SFSI(".loader-img").show(), SFSI(".save_button >a").html("Saving..."), SFSI(".save_button >a").css("pointer-events", "none");
16
+ }
17
+
18
+ function sfsi_plus_make_popBox() {
19
+ var s = 0;
20
+ SFSI(".plus_sfsi_sample_icons >li").each(function () {
21
+ "none" != SFSI(this).css("display") && (s = 1);
22
+ }), 0 == s ? SFSI(".sfsi_plus_Popinner").hide() : SFSI(".sfsi_plus_Popinner").show(), "" != SFSI('input[name="sfsi_plus_popup_text"]').val() ? (SFSI(".sfsi_plus_Popinner >h2").html(SFSI('input[name="sfsi_plus_popup_text"]').val()),
23
+ SFSI(".sfsi_plus_Popinner >h2").show()) : SFSI(".sfsi_plus_Popinner >h2").hide(), SFSI(".sfsi_plus_Popinner").css({
24
+ "border-color": SFSI('input[name="sfsi_plus_popup_border_color"]').val(),
25
+ "border-width": SFSI('input[name="sfsi_plus_popup_border_thickness"]').val(),
26
+ "border-style": "solid"
27
+ }), SFSI(".sfsi_plus_Popinner").css("background-color", SFSI('input[name="sfsi_plus_popup_background_color"]').val()),
28
+ SFSI(".sfsi_plus_Popinner h2").css("font-family", SFSI("#sfsi_plus_popup_font").val()), SFSI(".sfsi_plus_Popinner h2").css("font-style", SFSI("#sfsi_plus_popup_fontStyle").val()),
29
+ SFSI(".sfsi_plus_Popinner >h2").css("font-size", parseInt(SFSI('input[name="sfsi_plus_popup_fontSize"]').val())),
30
+ SFSI(".sfsi_plus_Popinner >h2").css("color", SFSI('input[name="sfsi_plus_popup_fontColor"]').val() + " !important"),
31
+ "yes" == SFSI('input[name="sfsi_plus_popup_border_shadow"]:checked').val() ? SFSI(".sfsi_plus_Popinner").css("box-shadow", "12px 30px 18px #CCCCCC") : SFSI(".sfsi_plus_Popinner").css("box-shadow", "none");
32
+ }
33
+
34
+ function sfsi_plus_stick_widget(s) {
35
+ 0 == sfsiplus_initTop.length && (SFSI(".sfsi_plus_widget").each(function (s) {
36
+ sfsiplus_initTop[s] = SFSI(this).position().top;
37
+ }), console.log(sfsiplus_initTop));
38
+ var i = SFSI(window).scrollTop(),
39
+ e = [],
40
+ t = [];
41
+ SFSI(".sfsi_plus_widget").each(function (s) {
42
+ e[s] = SFSI(this).position().top, t[s] = SFSI(this);
43
+ });
44
+ var n = !1;
45
+ for (var o in e) {
46
+ var a = parseInt(o) + 1;
47
+ e[o] < i && e[a] > i && a < e.length ? (SFSI(t[o]).css({
48
+ position: "fixed",
49
+ top: s
50
+ }), SFSI(t[a]).css({
51
+ position: "",
52
+ top: sfsiplus_initTop[a]
53
+ }), n = !0) : SFSI(t[o]).css({
54
+ position: "",
55
+ top: sfsiplus_initTop[o]
56
+ });
57
+ }
58
+ if (!n) {
59
+ var r = e.length - 1,
60
+ c = -1;
61
+ e.length > 1 && (c = e.length - 2), sfsiplus_initTop[r] < i ? (SFSI(t[r]).css({
62
+ position: "fixed",
63
+ top: s
64
+ }), c >= 0 && SFSI(t[c]).css({
65
+ position: "",
66
+ top: sfsiplus_initTop[c]
67
+ })) : (SFSI(t[r]).css({
68
+ position: "",
69
+ top: sfsiplus_initTop[r]
70
+ }), c >= 0 && e[c] < i);
71
+ }
72
+ }
73
+
74
+ function sfsi_plus_float_widget(s) {
75
+ function iplus() {
76
+ rplus = "Microsoft Internet Explorer" === navigator.appName ? aplus - document.documentElement.scrollTop : aplus - window.pageYOffset,
77
+ Math.abs(rplus) > 0 ? (window.removeEventListener("scroll", iplus), aplus -= rplus * oplus, SFSI("#sfsi_plus_floater").css({
78
+ top: (aplus + t).toString() + "px"
79
+ }), setTimeout(iplus, n)) : window.addEventListener("scroll", iplus, !1);
80
+
81
+ }
82
+ /*function eplus()
83
+ {
84
+ var documentheight = SFSI("#sfsi_plus_floater").attr("data-top");
85
+ var fltrhght = parseInt(SFSI("#sfsi_plus_floater").height());
86
+ var fltrtp = parseInt(SFSI("#sfsi_plus_floater").css("top"));
87
+ if(parseInt(fltrhght)+parseInt(fltrtp) <=documentheight)
88
+ {
89
+ window.addEventListener("scroll", iplus, !1);
90
+ }
91
+ else
92
+ {
93
+ window.removeEventListener("scroll", iplus);
94
+ SFSI("#sfsi_plus_floater").css("top",documentheight+"px");
95
+ }
96
+ }*/
97
+
98
+ SFSI(window).scroll(function () {
99
+ var documentheight = SFSI("#sfsi_plus_floater").attr("data-top");
100
+ var fltrhght = parseInt(SFSI("#sfsi_plus_floater").height());
101
+ var fltrtp = parseInt(SFSI("#sfsi_plus_floater").css("top"));
102
+ if (parseInt(fltrhght) + parseInt(fltrtp) <= documentheight) {
103
+ window.addEventListener("scroll", iplus, !1);
104
+ } else {
105
+ window.removeEventListener("scroll", iplus);
106
+ SFSI("#sfsi_plus_floater").css("top", documentheight + "px");
107
+ }
108
+ });
109
+
110
+ if ("center" == s) {
111
+ var t = (jQuery(window).height() - SFSI("#sfsi_plus_floater").height()) / 2;
112
+ } else if ("bottom" == s) {
113
+ var t = window.innerHeight - (SFSI("#sfsi_plus_floater").height() + parseInt(SFSI('#sfsi_plus_floater').css('margin-bottom')));
114
+ } else {
115
+ var t = parseInt(s);
116
+ }
117
+ var n = 50,
118
+ oplus = .1,
119
+ aplus = 0,
120
+ rplus = 0;
121
+ //SFSI("#sfsi_plus_floater"), window.onscroll = eplus;
122
+ }
123
+
124
+ function sfsi_plus_shuffle() {
125
+ var s = [];
126
+ SFSI(".sfsi_plus_wicons ").each(function (i) {
127
+ SFSI(this).text().match(/^\s*$/) || (s[i] = "<div class='" + SFSI(this).attr("class") + "'>" + SFSI(this).html() + "</div>",
128
+ SFSI(this).fadeOut("slow"), SFSI(this).insertBefore(SFSI(this).prev(".sfsi_plus_wicons")),
129
+ SFSI(this).fadeIn("slow"));
130
+ }), s = sfsiplus_Shuffle(s), $("#sfsi_plus_wDiv").html("");
131
+ for (var i = 0; i < testArray.length; i++) $("#sfsi_plus_wDiv").append(s[i]);
132
+ }
133
+
134
+ function sfsiplus_Shuffle(s) {
135
+ for (var i, e, t = s.length; t; i = parseInt(Math.random() * t), e = s[--t], s[t] = s[i],
136
+ s[i] = e);
137
+ return s;
138
+ }
139
+
140
+ function sfsi_plus_setCookie(s, i, e) {
141
+ var t = new Date();
142
+ t.setTime(t.getTime() + 1e3 * 60 * 60 * 24 * e);
143
+ var n = "expires=" + t.toGMTString();
144
+ document.cookie = s + "=" + i + "; " + n;
145
+ }
146
+
147
+ function sfsfi_plus_getCookie(s) {
148
+ for (var i = s + "=", e = document.cookie.split(";"), t = 0; t < e.length; t++) {
149
+ var n = e[t].trim();
150
+ if (0 == n.indexOf(i)) return n.substring(i.length, n.length);
151
+ }
152
+ return "";
153
+ }
154
+
155
+ function sfsi_plus_hideFooter() {}
156
+
157
+ window.onerror = function () {}, SFSI = jQuery.noConflict(), SFSI(window).on('load', function () {
158
+ SFSI("#sfpluspageLoad").fadeOut(2e3);
159
+ });
160
+
161
+ var global_error = 0;
162
+
163
+ SFSI(document).ready(function (s) {
164
+
165
+ //changes done {Monad}
166
+ SFSI("head").append('<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />'),
167
+ SFSI("head").append('<meta http-equiv="Pragma" content="no-cache" />'), SFSI("head").append('<meta http-equiv="Expires" content="0" />'),
168
+ SFSI(document).click(function (s) {
169
+ var i = SFSI(".sfsi_plus_FrntInner_changedmonad"),
170
+ e = SFSI(".sfsi_plus_wDiv"),
171
+ t = SFSI("#at15s");
172
+ 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();
173
+ }),
174
+ SFSI("div.sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseover(function () {
175
+ SFSI(this).attr("src", sfsi_plus_ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg");
176
+ }),
177
+ SFSI("div.sfsiplusid_linkedin").find(".icon4").find("a").find("img").mouseleave(function () {
178
+ SFSI(this).attr("src", sfsi_plus_ajax_object.plugin_url + "images/visit_icons/linkedIn.svg");
179
+ }),
180
+ SFSI("div.sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseover(function () {
181
+ SFSI(this).attr("src", sfsi_plus_ajax_object.plugin_url + "images/visit_icons/youtube_hover.svg");
182
+ }),
183
+ SFSI("div.sfsiplusid_youtube").find(".icon1").find("a").find("img").mouseleave(function () {
184
+ SFSI(this).attr("src", sfsi_plus_ajax_object.plugin_url + "images/visit_icons/youtube.svg");
185
+ }),
186
+ SFSI("div.sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseover(function () {
187
+ SFSI(this).css("opacity", "0.9");
188
+ }),
189
+ SFSI("div.sfsiplusid_facebook").find(".icon1").find("a").find("img").mouseleave(function () {
190
+ SFSI(this).css("opacity", "1");
191
+ }),
192
+ SFSI("div.sfsiplusid_twitter").find(".cstmicon1").find("a").find("img").mouseover(function () {
193
+ SFSI(this).css("opacity", "0.9");
194
+ }),
195
+ SFSI("div.sfsiplusid_twitter").find(".cstmicon1").find("a").find("img").mouseleave(function () {
196
+ SFSI(this).css("opacity", "1");
197
+ }),
198
+ SFSI(".pop-up").on("click", function () {
199
+ ("fbex-s2" == SFSI(this).attr("data-id") || "linkex-s2" == SFSI(this).attr("data-id")) && (SFSI("." + SFSI(this).attr("data-id")).hide(),
200
+ SFSI("." + SFSI(this).attr("data-id")).css("opacity", "1"), SFSI("." + SFSI(this).attr("data-id")).css("z-index", "1000")),
201
+ SFSI("." + SFSI(this).attr("data-id")).show("slow");
202
+ }),
203
+ /*SFSI("#close_popup").live("click", function() {*/
204
+ SFSI(document).on("click", '#close_popup', function () {
205
+ SFSI(".read-overlay").hide("slow");
206
+ });
207
+ var e = 0;
208
+ sfsi_plus_make_popBox(),
209
+ SFSI('input[name="sfsi_plus_popup_text"] ,input[name="sfsi_plus_popup_background_color"],input[name="sfsi_plus_popup_border_color"],input[name="sfsi_plus_popup_border_thickness"],input[name="sfsi_plus_popup_fontSize"],input[name="sfsi_plus_popup_fontColor"]').on("keyup", sfsi_plus_make_popBox),
210
+ SFSI('input[name="sfsi_plus_popup_text"] ,input[name="sfsi_plus_popup_background_color"],input[name="sfsi_plus_popup_border_color"],input[name="sfsi_plus_popup_border_thickness"],input[name="sfsi_plus_popup_fontSize"],input[name="sfsi_plus_popup_fontColor"]').on("focus", sfsi_plus_make_popBox),
211
+ SFSI("#sfsi_plus_popup_font ,#sfsi_plus_popup_fontStyle").on("change", sfsi_plus_make_popBox),
212
+ /*SFSI(".radio").live("click", function(){*/
213
+ SFSI(document).on("click", '.radio', function () {
214
+ var s = SFSI(this).parent().find("input:radio:first");
215
+ "sfsi_plus_popup_border_shadow" == s.attr("name") && sfsi_plus_make_popBox();
216
+ }), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI("img.sfsi_wicon").on("click", function (s) {
217
+ s.stopPropagation();
218
+ var i = SFSI("#sfsi_plus_floater_sec").val();
219
+ SFSI("div.sfsi_plus_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide(),
220
+ SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_tool_tip_2").css("z-index", "0"),
221
+ SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide()),
222
+ SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
223
+ "z-index": "999"
224
+ }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
225
+ opacity: 1,
226
+ "z-index": 10
227
+ }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
228
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
229
+ opacity: 1,
230
+ "z-index": 10
231
+ }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
232
+ SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
233
+ opacity: 1,
234
+ "z-index": 10
235
+ })), ("top-left" == i || "top-right" == i) && SFSI(this).parent().parent().parent().parent("#sfsi_plus_floater").length > 0 && "sfsi_plus_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass("sfsi_plc_btm"),
236
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
237
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
238
+ opacity: 1,
239
+ "z-index": 10
240
+ }), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show()) : (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),
241
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").removeClass("sfsi_plc_btm"),
242
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
243
+ opacity: 1,
244
+ "z-index": 1e3
245
+ }), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show());
246
+ // if(SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").attr('id')=="sfsiplusid_twitter" || SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").hasClass("sfsiplusid_twitter")){
247
+ // sfsi_plus_clone = SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find(".sfsi_plus_inside .icon2 iframe').clone();
248
+ // SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find(".sfsi_plus_inside .icon2 iframe').detach().remove();
249
+ // SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find(".sfsi_plus_inside .icon2').append(sfsi_plus_clone);
250
+ // }
251
+
252
+ }) : SFSI(document).on("mouseenter", "img.sfsi_wicon", function () {
253
+ var s = SFSI("#sfsi_plus_floater_sec").val();
254
+ SFSI("div.sfsi_plus_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide(),
255
+ SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_tool_tip_2").css("z-index", "0"),
256
+ SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_plus_wicons").find(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide()),
257
+ SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
258
+ "z-index": "999"
259
+ }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
260
+ opacity: 1,
261
+ "z-index": 10
262
+ }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
263
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
264
+ opacity: 1,
265
+ "z-index": 10
266
+ }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
267
+ SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
268
+ opacity: 1,
269
+ "z-index": 10
270
+ })), ("top-left" == s || "top-right" == s) && SFSI(this).parent().parent().parent().parent("#sfsi_plus_floater").length > 0 && "sfsi_plus_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").addClass("sfsi_plc_btm"),
271
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
272
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
273
+ opacity: 1,
274
+ "z-index": 10
275
+ }), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show()) : (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),
276
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").removeClass("sfsi_plc_btm"),
277
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").css({
278
+ opacity: 1,
279
+ "z-index": 10
280
+ }), SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").show());
281
+ if (SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").attr('id') == "sfsiplusid_twitter" || SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").hasClass("sfsiplusid_twitter")) {
282
+ sfsi_plus_clone = SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find(".sfsi_plus_inside .icon2 iframe").clone();
283
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find(".sfsi_plus_inside .icon2 iframe").detach().remove();
284
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_plus_tool_tip_2").find(".sfsi_plus_inside .icon2").append(sfsi_plus_clone);
285
+ }
286
+ }), SFSI(document).on("mouseleave", "div.sfsi_plus_wicons", function () {
287
+ SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && "fade_in" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").css("opacity", "0.6"),
288
+ SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && "scale" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").removeClass("scale"),
289
+ SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && "combo" == SFSI(this).children("div.sfsiplus_inerCnt").children("a.sficn").attr("data-effect") && (SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").css("opacity", "0.6"),
290
+ SFSI(this).children("div.sfsiplus_inerCnt").find("a.sficn").removeClass("scale"));
291
+ }), SFSI("body").on("click", function () {
292
+ SFSI(".sfsiplus_inerCnt").find("div.sfsi_plus_tool_tip_2").hide();
293
+ }), SFSI(".adminTooltip >a").on("hover", function () {
294
+ SFSI(this).offset().top, SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").css("opacity", "1"),
295
+ SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").show();
296
+ }), SFSI(".adminTooltip").on("mouseleave", function () {
297
+ "none" != SFSI(".sfsi_plus_gpls_tool_bdr").css("display") && 0 != SFSI(".sfsi_plus_gpls_tool_bdr").css("opacity") ? SFSI(".pop_up_box ").on("click", function () {
298
+ SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").css("opacity", "0"), SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").hide();
299
+ }) : (SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").css("opacity", "0"),
300
+ SFSI(this).parent("div").find("div.sfsi_plus_tool_tip_2_inr").hide());
301
+ }), SFSI(".expand-area").on("click", function () {
302
+ "Read more" == SFSI(this).text() ? (SFSI(this).siblings("p").children("label").fadeIn("slow"),
303
+ SFSI(this).text("Collapse")) : (SFSI(this).siblings("p").children("label").fadeOut("slow"),
304
+ SFSI(this).text("Read more"));
305
+ }), SFSI(".sfsi_plus_wDiv").length > 0 && setTimeout(function () {
306
+ var s = parseInt(SFSI(".sfsi_plus_wDiv").height()) + 15 + "px";
307
+ SFSI(".sfsi_plus_holders").each(function () {
308
+ SFSI(this).css("height", s);
309
+ });
310
+ SFSI(".sfsi_plus_widget").css("min-height", "auto");
311
+ }, 200);
312
+ jQuery(document).find('.wp-block-ultimate-social-media-plus-sfsi-plus-share-block').each(function (index, target) {
313
+ console.log('gutenberg', target);
314
+ var actual_target = jQuery(target).find('.sfsi_plus_block');
315
+ var align = jQuery(actual_target).attr('data-align');
316
+ var maxPerRow = jQuery(actual_target).attr('data-count');
317
+ var iconType = jQuery(actual_target).attr('data-icon-type');
318
+ // console.log(iconType);
319
+ jQuery.ajax({
320
+ 'url': '/wp-json/ultimate-social-media-plus/v1/icons/?url=' + window.location.href + '&ractangle_icon=' + ('round' == iconType ? 0 : 1),
321
+ 'method': 'GET'
322
+ // 'data':{'is_admin':true,'share_url':'/'}
323
+ }).done((response) => {
324
+ jQuery(actual_target).html(response);
325
+ if (iconType == 'round') {
326
+ sfsi_plus_changeIconWidth(maxPerRow, target, align);
327
+ } else {
328
+ if ('center' === align) {
329
+ jQuery(target).find('.sfsi_plus_block_text_before_icon').css({
330
+ 'display': 'inherit'
331
+ });
332
+ }
333
+ jQuery(target).css({
334
+ 'text-align': align
335
+ });
336
+ }
337
+ if (window.gapi) {
338
+ window.gapi.plusone.go();
339
+ window.gapi.plus.go();
340
+ window.gapi.ytsubscribe.go();
341
+ };
342
+ if (window.twttr) {
343
+ window.twttr.widgets.load();
344
+ };
345
+ if (window.IN && window.IN.parse) {
346
+ window.IN.parse();
347
+ };
348
+ if (window.addthis) {
349
+ if (window.addthis.toolbox) {
350
+ window.addthis.toolbox('.addthis_button.sficn');
351
+ } else {
352
+ window.addthis.init();
353
+ window.addthis.toolbox('.addthis_button.sficn');
354
+ }
355
+ };
356
+ if (window.PinUtils) {
357
+ window.PinUtils.build();
358
+ };
359
+ if (window.FB) {
360
+ if (window.FB.XFBML) {
361
+ window.FB.XFBML.parse();
362
+ }
363
+ };
364
+ }).fail((response) => {
365
+ // console.log(response,$('.sfsi_plus_block'));
366
+ jQuery(actual_target).html(response.responseText.replace('/\\/g', ''));
367
+ });
368
+ });
369
+ if (undefined !== window.location.hash) {
370
+ switch (window.location.hash) {
371
+ case '#ui-id-3':
372
+ jQuery('#ui-id-3').click();
373
+ case '#ui-id-1':
374
+ jQuery('#ui-id-1').click();
375
+ }
376
+ }
377
+ // sfsi_plus_update_iconcount();
378
+ });
379
+
380
+ function sfsi_plus_update_iconcount() {
381
+ SFSI(".wp-block-ultimate-social-media-plus-sfsi-plus-share-block").each(function () {
382
+ var icon_count = SFSI(this).find(".sfsi_plus_block").attr('data-count');
383
+ var icon_align = SFSI(this).find(".sfsi_plus_block").attr('data-align');
384
+ // console.log(icon_count,icon_align,this,jQuery(this),jQuery(this).find('.sfsiplus_norm_row'));
385
+ // sfsi_plus_changeIconWidth(icon_count,this);
386
+ if (jQuery(this).find('.sfsiplus_norm_row').length < 1) {
387
+ setTimeout(function () {
388
+ // console.log(icon_count);
389
+ sfsi_plus_changeIconWidth(icon_count, this, icon_align);
390
+ }, 1000);
391
+ } else {
392
+ sfsi_plus_changeIconWidth(icon_count, this, icon_align);
393
+ }
394
+ });
395
+ }
396
+
397
+ function sfsi_plus_changeIconWidth(per_row = null, target, icon_align) {
398
+ var iconWidth = parseInt(jQuery(target).find('.sfsiplus_norm_row div').css('width')) || 40;
399
+ console.log('iconwidth', iconWidth, jQuery(target).find('.sfsiplus_norm_row'), jQuery(target).find('.sfsiplus_norm_row div').css('width'));
400
+
401
+ var iconMargin = parseInt(jQuery(target).find('.sfsiplus_norm_row div').css('margin-left')) || 0;
402
+
403
+ var wrapperWidth = (iconWidth + iconMargin) * per_row;
404
+ jQuery(target).find('.sfsiplus_norm_row').css({
405
+ 'width': wrapperWidth + 'px'
406
+ });
407
+ jQuery(target).find('.sfsi_plus_block').css({
408
+ 'width': wrapperWidth + 'px'
409
+ });
410
+ jQuery(target).find('.sfsi_plus_block_text_before_icon').css({
411
+ 'padding-top': '12px'
412
+ });
413
+ if ('center' === icon_align) {
414
+ jQuery(target).find('.sfsi_plus_block_text_before_icon').css({
415
+ 'display': 'inherit'
416
+ });
417
+ }
418
+ jQuery(target).css({
419
+ 'text-align': icon_align
420
+ });
421
+ }
422
+ //hiding popup on close button
423
+ function sfsiplushidemepopup() {
424
+ SFSI(".sfsi_plus_FrntInner").fadeOut();
425
+ }
426
+
427
+ var sfsiplus_initTop = new Array();
428
+
429
+ function sfsi_plus_wechat_follow(url) {
430
+ if (jQuery('.sfsi_plus_wechat_scan').length == 0) {
431
+ jQuery('body').append("<div class='sfsi_plus_wechat_scan sfsi_plus_overlay show'><div class='sfsi_plus_inner_display'><a class='close_btn' href='' onclick=\"event.preventDefault();close_overlay(\'.sfsi_plus_wechat_scan\')\" >&times;</a><img src='" + url + "' style='max-width:90%;max-height:90%' /></div></div>");
432
+ } else {
433
+ jQuery('.sfsi_plus_wechat_scan').removeClass('hide').addClass('show');
434
+ }
435
+ }
436
+
437
+ function close_overlay(selector) {
438
+ if (typeof selector === "undefined") {
439
+ selector = '.sfsi_plus_overlay';
440
+ }
441
+ jQuery(selector).removeClass('show').addClass('hide');
442
+ }
443
+
444
+ function sfsi_plus_wechat_share(url) {
445
+ if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
446
+ sfsi_plus_wechat_share_mobile(url);
447
+ } else {
448
+ if (jQuery('.sfsi_plus_wechat_follow_overlay').length == 0) {
449
+ jQuery('body').append("<div class='sfsi_plus_wechat_follow_overlay sfsi_plus_overlay show'><div class='sfsi_plus_inner_display'><a class='close_btn' href='' onclick=\"event.preventDefault();close_overlay(\'.sfsi_plus_wechat_follow_overlay\')\" >&times;</a><div style='width:95%;max-width:500px; min-height:80%;background-color:#fff;margin:0 auto;margin:10% auto;padding: 20px 0;'><div style='width:90%;margin: 0 auto;text-align:center'><div class='sfsi_plus_wechat_qr_display' style='display:inline-block'></div></div><div style='width:80%;margin:10px auto 0 auto;text-align:center;font-weight:900;font-size:25px;'>\"Scan QR Code\" in WeChat and press ··· to share!</div></div></div>");
450
+ new QRCode(jQuery('.sfsi_plus_wechat_follow_overlay .sfsi_plus_wechat_qr_display')[0], window.location.href)
451
+ jQuery('.sfsi_plus_wechat_follow_overlay .sfsi_plus_wechat_qr_display img').attr('nopin', 'nopin')
452
+ } else {
453
+ jQuery('.sfsi_plus_wechat_follow_overlay').removeClass('hide').addClass('show');
454
+ }
455
+ }
456
+ }
457
+
458
+ function sfsi_plus_wechat_share_mobile(url) {
459
+ if (jQuery('.sfsi_plus_wechat_follow_overlay').length == 0) {
460
+ jQuery('body').append("<div class='sfsi_plus_wechat_follow_overlay sfsi_plus_overlay show'><div class='sfsi_plus_inner_display'><a class='close_btn' href='' onclick=\"event.preventDefault();close_overlay(\'.sfsi_plus_wechat_follow_overlay\')\" >&times;</a><div style='width:95%; min-height:80%;background-color:#fff;margin:0 auto;margin:20% auto;padding: 20px 0;'><div style='width:90%;margin: 0 auto;'><input type='text' value='" + window.location.href + "' style='width:100%;padding:7px 0;text-align:center' /></div><div style='width:80%;margin:10px auto 0 auto'><div style='width:30%;display:inline-block;text-align:center' class='sfsi_plus_upload_butt_container' ><button onclick='sfsi_copy_text_parent_input(event)' class='upload_butt' >Copy</button></div><div style='width:60%;display:inline-block;text-align:center;margin-left:10%' class='sfsi_plus_upload_butt_container' ><a href='weixin://' class='upload_butt'>Open WeChat</a></div></div></div></div>");
461
+ } else {
462
+ jQuery('.sfsi_plus_wechat_follow_overlay').removeClass('hide').addClass('show');
463
+ }
464
+ }
465
+
466
+ function sfsi_copy_text_parent_input(event) {
467
+ var target = jQuery(event.target);
468
+ console.log(target);
469
+ input_target = target.parent().parent().parent().find('input');
470
+ input_target.select();
471
+ document.execCommand('copy');
472
+ }
473
+
474
+
475
+ function sfsi_plus_widget_set() {
476
+ jQuery(".sfsi_plus_widget").each(function (index) {
477
+ if (jQuery(this).attr("data-position") == "widget") {
478
+ var wdgt_hght = jQuery(this).children(".sfsiplus_norm_row.sfsi_plus_wDiv").height();
479
+ var title_hght = jQuery(this).parent(".widget.sfsi_plus").children(".widget-title").height();
480
+ var totl_hght = parseInt(title_hght) + parseInt(wdgt_hght);
481
+ jQuery(this).parent(".widget.sfsi_plus").css("min-height", totl_hght + "px");
482
+ }
483
+ });
484
+ }
485
+
486
+ function sfsi_plus_time_pop_up(time_popUp){
487
+ jQuery(document).ready(function($) {
488
+ setTimeout(
489
+ function() {
490
+ jQuery('.sfsi_plus_outr_div').css({
491
+ 'z-index': '1000000',
492
+ opacity: 1
493
+ });
494
+ jQuery('.sfsi_plus_outr_div').fadeIn();
495
+ jQuery('.sfsi_plus_FrntInner').fadeIn(200);
496
+ }, time_popUp);
497
+ });
498
+ }
499
+ function sfsi_plus_responsive_toggle(){
500
+ jQuery(document).scroll(function($) {
501
+ var y = jQuery(this).scrollTop();
502
+ if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
503
+ if (jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height() - 100) {
504
+ jQuery('.sfsi_plus_outr_div').css({
505
+ 'z-index': '9996',
506
+ opacity: 1,
507
+ top: jQuery(window).scrollTop() + "px",
508
+ position: "absolute"
509
+ });
510
+ jQuery('.sfsi_plus_outr_div').fadeIn(200);
511
+ jQuery('.sfsi_plus_FrntInner').fadeIn(200);
512
+ } else {
513
+ jQuery('.sfsi_plus_outr_div').fadeOut();
514
+ jQuery('.sfsi_plus_FrntInner').fadeOut();
515
+ }
516
+ } else {
517
+ if (jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height() - 3) {
518
+ jQuery('.sfsi_plus_outr_div').css({
519
+ 'z-index': '9996',
520
+ opacity: 1,
521
+ top: jQuery(window).scrollTop() + 200 + "px",
522
+ position: "absolute"
523
+ });
524
+ jQuery('.sfsi_plus_outr_div').fadeIn(200);
525
+ jQuery('.sfsi_plus_FrntInner').fadeIn(200);
526
+ } else {
527
+ jQuery('.sfsi_plus_outr_div').fadeOut();
528
+ jQuery('.sfsi_plus_FrntInner').fadeOut();
529
+ }
530
+ }
531
+ });
532
+ }
533
+
534
+ function sfsi_social_pop_up(time_popUp){
535
+ jQuery(document).ready(function($) {
536
+ //SFSI('.sfsi_plus_outr_div').fadeIn();
537
+ sfsi_plus_setCookie('sfsi_socialPopUp', time(), 32);
538
+ setTimeout(function() {
539
+ jQuery('.sfsi_plus_outr_div').css({
540
+ 'z-index': '1000000',
541
+ opacity: 1
542
+ });
543
+ jQuery('.sfsi_plus_outr_div').fadeIn();
544
+ }, time_popUp);
545
+ });
546
+ var SFSI = jQuery.noConflict();
547
+ }
548
+
549
+ // should execute at last so that every function is acceable.
550
+ var sfsi_plus_functions_loaded = new CustomEvent('sfsi_plus_functions_loaded',{detail:{"abc":"def"}});
551
+ window.dispatchEvent(sfsi_plus_functions_loaded);
languages/ultimate-social-media-plus-fa_IR.po CHANGED
@@ -1,1823 +1,1823 @@
1
- # Copyright (C) 2016 Ultimate Social Media PLUS
2
- # This file is distributed under the same license as the Ultimate Social Media PLUS package.
3
- msgid ""
4
- msgstr ""
5
- "Project-Id-Version: Ultimate Social Media PLUS 2.3.7\n"
6
- "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/ultimate-social-"
7
- "media-plus\n"
8
- "POT-Creation-Date: 2016-03-31 14:44:55+00:00\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "PO-Revision-Date: 2016-04-05 18:35+0530\n"
13
- "Last-Translator: \n"
14
- "Language-Team: Farshad Hosseinzadeh <f.hosseinzadeh1985@gmail.com>\n"
15
- "X-Generator: Poedit 1.5.7\n"
16
- "Language: Persian\n"
17
-
18
- #: css/images/index.php:2 css/index.php:2
19
- #: css/jquery-ui-1.10.4/images/index.php:2 css/jquery-ui-1.10.4/index.php:2
20
- #: fonts/index.php:2 images/icons_theme/badge/index.php:2
21
- #: images/icons_theme/cute/index.php:2 images/icons_theme/index.php:2
22
- #: images/icons_theme/official/index.php:2
23
- #: images/icons_theme/stitched/index.php:2 images/index.php:2 index.php:2
24
- #: js/index.php:2 libs/controllers/index.php:2 libs/index.php:2
25
- #: views/index.php:2
26
- msgid "Access Denied"
27
- msgstr "غیر قابل دسترس"
28
-
29
- #: libs/sfsi_Init_JqueryCss.php:46 views/sfsi_option_view1.php:74
30
- #: views/sfsi_option_view1.php:107 views/sfsi_option_view1.php:129
31
- #: views/sfsi_option_view1.php:152
32
- msgid "Read more"
33
- msgstr "بیشتر بخوانید"
34
-
35
- #: libs/sfsi_Init_JqueryCss.php:47 views/sfsi_option_view1.php:370
36
- #: views/sfsi_option_view2.php:608 views/sfsi_option_view3.php:364
37
- #: views/sfsi_option_view4.php:738 views/sfsi_option_view5.php:957
38
- #: views/sfsi_option_view6.php:112 views/sfsi_option_view7.php:373
39
- #: views/sfsi_option_view8.php:519 views/sfsi_option_view9.php:574
40
- msgid "Save"
41
- msgstr "ذخیره"
42
-
43
- #: libs/sfsi_Init_JqueryCss.php:48
44
- msgid "Saving"
45
- msgstr "در حال ذخیره‌سازی"
46
-
47
- #: libs/sfsi_Init_JqueryCss.php:49
48
- msgid "Saved"
49
- msgstr "ذخیره شد"
50
-
51
- #: libs/sfsi_Init_JqueryCss.php:52
52
- msgid "Collapse"
53
- msgstr "باز کردن"
54
-
55
- #: libs/sfsi_Init_JqueryCss.php:53 views/sfsi_options_view.php:153
56
- msgid "Save All Settings"
57
- msgstr "ذخیره تمام تنظیمات"
58
-
59
- #: libs/sfsi_install_uninstall.php:430
60
- msgid ""
61
- "Error: It seems that CURL is disabled on your server. Please contact your "
62
- "server administrator to install / enable CURL."
63
- msgstr ""
64
- "خطا: به‌نظر میرسد CURL در سرور شما فعال نمیباشد. لطفاً با مدیر سرور خود تماس "
65
- "بگیرید، یا خودتان CURL را نصب، و یا فعال کنید."
66
-
67
- #: libs/sfsi_install_uninstall.php:541
68
- msgid ""
69
- "Error : Please fix your theme to make plugins work correctly. Go to the "
70
- "Theme Editor and insert the following string:"
71
- msgstr ""
72
- "خطا: لطفاً پوسته خود را درست کنید تا به افزونه‌ها امکان کارکرد درست را بدهد. "
73
- "به ویرایشگر پوسته رفته و متن زیر را در آن قرار دهید:"
74
-
75
- #: libs/sfsi_install_uninstall.php:541
76
- msgid "Please enter it just before the following line of your header.php file:"
77
- msgstr "لطفاً آن را قبل از آخرین خط فایل header.php (سربرگ) قرار دهید:"
78
-
79
- #: libs/sfsi_install_uninstall.php:541 libs/sfsi_install_uninstall.php:565
80
- msgid "Go to your theme editor: "
81
- msgstr "به ویرایشگر پوسته خود بروید:"
82
-
83
- #: libs/sfsi_install_uninstall.php:541 libs/sfsi_install_uninstall.php:565
84
- msgid "click here"
85
- msgstr "اینجا را کلیک کنید"
86
-
87
- #: libs/sfsi_install_uninstall.php:565
88
- msgid ""
89
- "Error: Please fix your theme to make plugins work correctly. Go to the Theme "
90
- "Editor and insert the following string as the first line of your theme's "
91
- "footer.php file: "
92
- msgstr ""
93
- "خطا: لطفاً پوسته خود را درست کنید تا به افزونه‌ها امکان کارکرد درست را بدهد. "
94
- "به ویرایشگر پوسته رفته و متن زیر را در اولین خط از فایل footer.php (پابرگ) "
95
- "پوسته خود قرار دهید:"
96
-
97
- #: libs/sfsi_install_uninstall.php:576
98
- msgid ""
99
- "Thank you for installing the Ultimate Social Media PLUS plugin. Please go to "
100
- "the plugin's settings page to configure it: "
101
- msgstr ""
102
- "از اینکه افزونه Ultimate Social Media PLUS را نصب نمودید متشکریم. لطفاً برای "
103
- "پیکربندی آن به صفحه تنظیمات افزونه بروید:"
104
-
105
- #: libs/sfsi_install_uninstall.php:576 libs/sfsi_widget.php:106
106
- #: ultimate_social_media_icons.php:579 views/sfsi_option_view1.php:265
107
- #: views/sfsi_option_view8.php:127 views/sfsi_option_view9.php:134
108
- #: views/sfsi_options_view.php:75
109
- msgid "Click here"
110
- msgstr "اینجا را کلیک کنید"
111
-
112
- #: libs/sfsi_install_uninstall.php:585
113
- msgid ""
114
- "You`re using an old Wordpress version, which may cause several of your "
115
- "plugins to not work correctly. Please upgrade"
116
- msgstr ""
117
- "شما از یک نسخه قدیمی وردپرس استفاده میکنید که ممکن است به افزونه امکان "
118
- "کارکرد درست را ندهد. لطفاً به‌روزرسانی کنید."
119
-
120
- #: libs/sfsi_install_uninstall.php:602
121
- msgid ""
122
- "We noticed you've been using the Ultimate Social Media PLUS Plugin for more "
123
- "than 30 days. If you're happy with it, could you please do us a BIG favor "
124
- "and give it a 5-star rating on Wordpress?"
125
- msgstr ""
126
- "ما متوجه شدیم که شما بیش از ۳۰ روز است که از افزونه Ultimate Social Media "
127
- "PLUS استفاده میکنید. اگر شما با این افزونه خوشحالید، آیا ممکن است لطف بزرگی "
128
- "کرده و افزونه ما را در وردپرس ۵ ستاره کنید؟"
129
-
130
- #: libs/sfsi_install_uninstall.php:604
131
- msgid "Ok, you deserved it"
132
- msgstr "بله، شما شایستگی این را دارید"
133
-
134
- #: libs/sfsi_install_uninstall.php:605
135
- msgid "I already did"
136
- msgstr "در حال حاضر این کار را انجام داده‌ام"
137
-
138
- #: libs/sfsi_install_uninstall.php:606
139
- msgid "No, not good enough"
140
- msgstr "نه، به اندازه کافی خوب نیست"
141
-
142
- #: libs/sfsi_plus_subscribe_widget.php:200 libs/sfsi_widget.php:99
143
- msgid "Title"
144
- msgstr "عنوان"
145
-
146
- #: libs/sfsi_widget.php:105
147
- msgid "Please go to the plugin page to set your preferences:"
148
- msgstr "برای اعمال تنظیمات خود لطفاً به برگه افزونه بروید:"
149
-
150
- #: ultimate_social_media_icons.php:76
151
- msgid "Kindly go to setting page and check the option \"Place them manually\""
152
- msgstr "لطف کنید به برگه تنظیمات رفته و کادر \"دستی قرار بده\" را علامت بزنید"
153
-
154
- #: ultimate_social_media_icons.php:577
155
- msgid ""
156
- "There seems to be an error on your website which prevents the plugin to work "
157
- "properly. Please check the FAQ:"
158
- msgstr ""
159
- "به‌نظر میرسد مشکلی در سایت‌تان وجود دارد که مانع از کارکرد درست افزونه میشود. "
160
- "لطفاً سوالات متداول را ببینید:"
161
-
162
- #: ultimate_social_media_icons.php:582
163
- msgid "Error"
164
- msgstr "خطا"
165
-
166
- #: ultimate_social_media_icons.php:588 ultimate_social_media_icons.php:613
167
- msgid "Dismiss"
168
- msgstr "صرفنظر کن"
169
-
170
- #: ultimate_social_media_icons.php:602
171
- msgid "New feature in the Ultimate Social Media PLUS plugin: "
172
- msgstr "ویژگی جدید در افزونه Ultimate Social Media PLUS:"
173
-
174
- #: ultimate_social_media_icons.php:605
175
- msgid ""
176
- "You can now add a subscription form to increase sign-ups (under question 8)."
177
- msgstr ""
178
- "اکنون میتوانید یک فرم اشتراک اضافه کرده تا تعداد ثبت‌نام ها را افزایش دهید "
179
- "(مربوط به سوال ۸)."
180
-
181
- #: ultimate_social_media_icons.php:608
182
- msgid "Check it out"
183
- msgstr "روی آن کلیک کنید"
184
-
185
- #: views/sfsi_aboutus.php:2
186
- msgid "Please visit us at"
187
- msgstr "لطفاْ از ما دیدن کنید در"
188
-
189
- #: views/sfsi_aboutus.php:4
190
- msgid "or write to us at"
191
- msgstr "یا برای ما بنویسید در"
192
-
193
- #: views/sfsi_option_view1.php:47
194
- msgid ""
195
- "In general, the more icons you offer the better because people have "
196
- "different preferences, and more options means that there’s something for "
197
- "everybody, increasing the chances that you get followed and/or shared."
198
- msgstr ""
199
- "بطور معمول، هرچه آیکن‌های بیشتری ارایه دهید بهتر است. زیرا مردم صلیقه‌های "
200
- "متفاوتی دارند، و اختیارات بیشتر به این معنی‌ست که مطابق نیاز هر شخصی چیزی "
201
- "آماده دارید. و این کار شانس دنبال شدن یا به اشتراک گذاشته شدن را برای شما "
202
- "زیادتر میکند."
203
-
204
- #: views/sfsi_option_view1.php:62 views/sfsi_option_view1.php:90
205
- msgid "Mandatory"
206
- msgstr "اجباری"
207
-
208
- #: views/sfsi_option_view1.php:65
209
- msgid "RSS is still popular, esp. among the tech-savvy crowd."
210
- msgstr "با وجود این دوره و زمانه هوشمند و پر از تغییرات، RSS همچنان محبوب است!"
211
-
212
- #: views/sfsi_option_view1.php:68
213
- msgid ""
214
- "RSS stands for Really Simply Syndication and is an easy way for people to "
215
- "read your content. "
216
- msgstr ""
217
- "RSS مخفف عبارت Really Simply Syndication ، و یک راه آسان برای مردم است که "
218
- "مطالب جدید شما را بخوانند."
219
-
220
- #: views/sfsi_option_view1.php:70
221
- msgid "Learn more about RSS"
222
- msgstr "در مورد RSS (خبرخوان) بیشتر بدانید"
223
-
224
- #: views/sfsi_option_view1.php:93
225
- msgid "Email is the most effective tool to build up a followership."
226
- msgstr "ایمیل یک ابزار بسیار تاثیرگذار در پیداکردن مخاطب و دنبال‌کننده است."
227
-
228
- #: views/sfsi_option_view1.php:96
229
- msgid "Remove credit link"
230
- msgstr "لینک اعتبار را حذف کن"
231
-
232
- #: views/sfsi_option_view1.php:100
233
- msgid ""
234
- "Everybody uses email – that’s why it’s much more effective than social media "
235
- "to make people follow you"
236
- msgstr ""
237
- "هرکسی از ایمیل استفاده میکند - بخاطر همین ایمیل بیشتر از شبکه‌های اجتماعی در "
238
- "جذب مخاطب و دنبال‌کننده تاثیرگذار است"
239
-
240
- #: views/sfsi_option_view1.php:102 views/sfsi_pop_content.php:287
241
- msgid "learn more"
242
- msgstr "بیشتر بدانید"
243
-
244
- #: views/sfsi_option_view1.php:104
245
- msgid ""
246
- "Not offering an email subscription option means losing out on future traffic "
247
- "to your site."
248
- msgstr ""
249
- "ارائه ندادن امکان اشتراک ایمیلی به این معنیست که بازدید سایتتان را در آینده "
250
- "از دست میدهید."
251
-
252
- #: views/sfsi_option_view1.php:122 views/sfsi_option_view1.php:144
253
- #: views/sfsi_option_view1.php:167
254
- msgid "Strongly recommended:"
255
- msgstr "شدیداً پیشنهاد میشود:"
256
-
257
- #: views/sfsi_option_view1.php:123
258
- msgid "Facebook is crucial, esp. for sharing."
259
- msgstr "فیس‌بوک عالی‌ست، مخصوصاُ برای به اشتراک گذاری."
260
-
261
- #: views/sfsi_option_view1.php:126
262
- msgid ""
263
- "Facebook is the giant in the social media world, and even if you don’t have "
264
- "a Facebook account yourself you should display this icon, so that Facebook "
265
- "users can share your site on Facebook."
266
- msgstr ""
267
- "فیس‌بوک غول دنیای شبکه‌های اجتماعی‌ست، و حتا اگر شما آکونت فیس‌بوک برای خود "
268
- "ندارید هم باید این آیکن را نمایش دهید، چراکه کاربران فیس‌بوک میتوانند سایت "
269
- "شما را در فیس‌بوک به اشتراک بگذارند."
270
-
271
- #: views/sfsi_option_view1.php:145
272
- msgid "Can have a strong promotional effect."
273
- msgstr "میتواند تاثیر تبلیغاتی قوی‌ای داشته باشد."
274
-
275
- #: views/sfsi_option_view1.php:148
276
- msgid ""
277
- "If you have a Twitter-account then adding this icon is a no-brainer. "
278
- "However, similar as with facebook, even if you don’t have one you should "
279
- "still show this icon so that Twitter-users can share your site."
280
- msgstr ""
281
- "اگر شما یک آکونت توییتر دارید اضافه کردن این آیکن احتیاج به فکر کردن ندارد. "
282
- "به هر حال اگر هم ندارید، مانند فیس‌بوک، شما باید این آیکن را به نمایش "
283
- "بگذارید. چراکه کاربران توییتر میتوانند سایت شما را به اشتراک بگذارند."
284
-
285
- #: views/sfsi_option_view1.php:168
286
- msgid "Increasingly important and beneficial for SEO."
287
- msgstr "بطور فزاینده مهم و سودمند برای سئو."
288
-
289
- #: views/sfsi_option_view1.php:185 views/sfsi_option_view1.php:202
290
- #: views/sfsi_option_view1.php:219 views/sfsi_option_view1.php:234
291
- #: views/sfsi_option_view1.php:251 views/sfsi_option_view1.php:283
292
- #: views/sfsi_option_view1.php:328 views/sfsi_option_view1.php:353
293
- msgid "It depends:"
294
- msgstr "بستگی دارد به:"
295
-
296
- #: views/sfsi_option_view1.php:186
297
- msgid ""
298
- "Show this icon if you have a youtube account (and you should set up one if "
299
- "you have video content – that can increase your traffic significantly)."
300
- msgstr ""
301
- "اگر یک آکونت یوتیوب دارید این آیکن را نمایش دهید (و اگر در سایتتان محتوای "
302
- "ویدئویی دارید بهتر است یک آکونت یوتیوب بسازید، زیرا بازدید سایتتان را به شکل "
303
- "قابل ملاحظه‌ای بالا میبرد)."
304
-
305
- #: views/sfsi_option_view1.php:203
306
- msgid ""
307
- "No.1 network for business purposes. Use this icon if you’re a LinkedInner."
308
- msgstr ""
309
- "شبکه اجتماعی شماره یک برای مقاصد حرفه‌ای و کاری. اگر در لینکدین هستید از این "
310
- "آیکن استفاده کنید."
311
-
312
- #: views/sfsi_option_view1.php:220
313
- msgid ""
314
- "Show this icon if you have a Pinterest account (and you should set up one if "
315
- "you have publish new pictures regularly – that can increase your traffic "
316
- "significantly)."
317
- msgstr ""
318
- "اگر یک آکونت پین‌ترست دارید این آیکن را نمایش دهید (و اگر در سایتتان عکس‌های "
319
- "جدید میگذارید بهتر است یک آکونت بسازید، زیرا بازدید سایتتان را به شکل قابل "
320
- "ملاحظه‌ای بالا میبرد)."
321
-
322
- #: views/sfsi_option_view1.php:235
323
- msgid "Show this icon if you have a Instagram account."
324
- msgstr "اگر یک آکونت اینستاگرام دارید این آیکن را نمایش دهید."
325
-
326
- #: views/sfsi_option_view1.php:252
327
- msgid ""
328
- "Third-party service AddThis allows your visitors to share via many other "
329
- "social networks, however it may also slow down your site a bit."
330
- msgstr ""
331
- "خدمات شخص ثالث AddThis به بازدیدکنندگان امکان به اشتراک گذاری از تعداد "
332
- "بسیاری از دیگر شبکه‌های اجتماعی را میدهد. ولی با این حال کمی باعث کند شدن "
333
- "سایتتان میشود."
334
-
335
- #: views/sfsi_option_view1.php:255
336
- msgid "Everybody uses email – that’s why it’s"
337
- msgstr "بخاطر اینکه هرکسی از ایمیل استفاده میکند"
338
-
339
- #: views/sfsi_option_view1.php:258
340
- msgid "much more effective than social media"
341
- msgstr "بسیار موثرتر از شبکه اجتماعی"
342
-
343
- #: views/sfsi_option_view1.php:261
344
- msgid ""
345
- "to make people follow you. Not offering an email subscription option means "
346
- "losing out on future traffic to your site."
347
- msgstr ""
348
- "برای جذب دنبال‌کننده و مخاطب ارائه ندادن امکان اشتراک ایمیلی به این معنیست که "
349
- "بازدید سایتتان را در آینده از دست میدهید."
350
-
351
- #: views/sfsi_option_view1.php:263
352
- msgid "Check out their reviews:"
353
- msgstr "بررسی‌هایشان را ببینید:"
354
-
355
- #: views/sfsi_option_view1.php:284
356
- msgid "Show this icon if you have a Houzz account."
357
- msgstr "اگر یک آکونت هاز دارید این آیکن را نمایش دهید. "
358
-
359
- #: views/sfsi_option_view1.php:286
360
- msgid ""
361
- "Houzz is the No.1 site & community in the world of architecture and interior "
362
- "design."
363
- msgstr "هاز سایت و انجمن شماره ۱ معماری و طراحی داخلی‌ست."
364
-
365
- #: views/sfsi_option_view1.php:288
366
- msgid "Visit Houzz"
367
- msgstr "از هاز دیدن کنید"
368
-
369
- #: views/sfsi_option_view1.php:323 views/sfsi_option_view1.php:347
370
- #: views/sfsi_option_view2.php:579 views/sfsi_option_view5.php:938
371
- msgid "Custom"
372
- msgstr "سفارشی"
373
-
374
- #: views/sfsi_option_view1.php:329 views/sfsi_option_view1.php:354
375
- msgid ""
376
- "Upload a custom icon if you have other accounts/websites you want to link to."
377
- msgstr ""
378
- "اگر شما آکونت یا سایت دیگری دارید که میخواهید به آن لینک بدهید، آیکن سفارشی "
379
- "آن را آپلود کنید."
380
-
381
- #: views/sfsi_option_view1.php:376 views/sfsi_option_view2.php:613
382
- #: views/sfsi_option_view3.php:369 views/sfsi_option_view4.php:743
383
- #: views/sfsi_option_view5.php:962 views/sfsi_option_view6.php:117
384
- #: views/sfsi_option_view7.php:378 views/sfsi_option_view8.php:525
385
- #: views/sfsi_option_view9.php:580
386
- msgid "Collapse area"
387
- msgstr "باز کردن"
388
-
389
- #: views/sfsi_option_view2.php:136
390
- msgid "When clicked on, users can subscribe via RSS"
391
- msgstr "وقتی کاربر کلیک کند مشترک فید RSS میشود"
392
-
393
- #: views/sfsi_option_view2.php:144
394
- msgid "For most blogs it’s http://blogname.com/feed"
395
- msgstr "برای اغلب وبلاگ‌ها بصورت http://blogname.com/feed است"
396
-
397
- #: views/sfsi_option_view2.php:162
398
- msgid ""
399
- "Sends your new posts automatically to subscribers. It`s FREE and you get "
400
- "full access to your subscriber`s emails and interesting statistics:"
401
- msgstr ""
402
- "نوشته‌های جدید شما را بصورت خودکار برای مشترکین ارسال میکند. رایگان است و "
403
- "دسترسی کامل شما را به ایمیل و آمار علایق کاربران میسر میکند."
404
-
405
- #: views/sfsi_option_view2.php:164
406
- msgid "Claim your feed to get full access."
407
- msgstr "درخواست فید خود را کامل نمایید تا دسترسی کامل داشته باشید."
408
-
409
- #: views/sfsi_option_view2.php:166
410
- msgid "It also makes sense if you already offer an email newsletter:"
411
- msgstr "همچنین اگر هم‌اکنون روزنامه ایمیلی را ارائه کرده‌اید معنی خواهد داشت:"
412
-
413
- #: views/sfsi_option_view2.php:168
414
- msgid "Learn more."
415
- msgstr "بیشتر بدانید."
416
-
417
- #: views/sfsi_option_view2.php:171
418
- msgid "Please pick which icon type you want to use:"
419
- msgstr "لطفاً نوع آیکونی که میخواهید استفاده کنید را انتخاب نمایید:"
420
-
421
- #: views/sfsi_option_view2.php:179
422
- msgid "Email icon"
423
- msgstr "آیکون ایمیل"
424
-
425
- #: views/sfsi_option_view2.php:187
426
- msgid "Follow icon"
427
- msgstr "آیکون دنبال‌کردن"
428
-
429
- #: views/sfsi_option_view2.php:189
430
- msgid "increases sign-ups"
431
- msgstr "ثبت‌نام ها را افزایش میدهد"
432
-
433
- #: views/sfsi_option_view2.php:198
434
- msgid "SpecificFeeds icon"
435
- msgstr "آیکن SpecificFeeds"
436
-
437
- #: views/sfsi_option_view2.php:200
438
- msgid "provider of the service"
439
- msgstr "ارائه‌کننده خدمات:"
440
-
441
- #: views/sfsi_option_view2.php:216
442
- msgid ""
443
- "The facebook icon can perform several actions. Pick below which ones it "
444
- "should perform. If you select several options, then users can select what "
445
- "they want to do"
446
- msgstr ""
447
- "آیکن فیس‌بوک میتواند چندین کار انجام دهد. از پایین کاری را که میخواهید "
448
- "برگزینید. اگر چند عمل را با هم انتخاب کنید، کاربران خودشان انتخاب میکنند که "
449
- "کدام را میخواهند."
450
-
451
- #: views/sfsi_option_view2.php:218 views/sfsi_option_view2.php:263
452
- #: views/sfsi_option_view2.php:304 views/sfsi_option_view2.php:346
453
- #: views/sfsi_option_view2.php:425 views/sfsi_option_view2.php:478
454
- #: views/sfsi_option_view2.php:539
455
- msgid "see an example"
456
- msgstr "یک نمونه ببینید"
457
-
458
- #: views/sfsi_option_view2.php:222
459
- msgid "The facebook icon should allow users to..."
460
- msgstr "آیکن فیس‌بوک باید به کاربران این امکان را بدهد تا..."
461
-
462
- #: views/sfsi_option_view2.php:229
463
- msgid "Visit my Facebook page at:"
464
- msgstr "صفحه فیس‌بوک مرا ببینید:"
465
-
466
- #: views/sfsi_option_view2.php:237
467
- msgid "Like my blog on Facebook (+1)"
468
- msgstr "وبلاگ مرا در فیس‌بوک لایک کنید (۱+)"
469
-
470
- #: views/sfsi_option_view2.php:245
471
- msgid "Share my blog with friends (on Facebook)"
472
- msgstr "وبلاگ مرا با دوستان خود (در فیس‌بوک) به اشتراک بگذارید"
473
-
474
- #: views/sfsi_option_view2.php:260
475
- msgid ""
476
- "The Twitter icon can perform several actions. Pick below which ones it "
477
- "should perform. If you select several options, then users can select what "
478
- "they want to do"
479
- msgstr ""
480
- "آیکن توییتر میتواند چند کار انجام دهد. از پایین کاری را که میخواهید "
481
- "برگزینید. اگر چند عمل را با هم انتخاب کنید، کاربران خودشان انتخاب میکنند که "
482
- "کدام را میخواهند."
483
-
484
- #: views/sfsi_option_view2.php:267
485
- msgid "The Twitter icon should allow users to..."
486
- msgstr "آیکن توییتر به کاربران امکان میدهد که..."
487
-
488
- #: views/sfsi_option_view2.php:272
489
- msgid "Visit me on Twitter:"
490
- msgstr "مرا در توییتر ببینید:"
491
-
492
- #: views/sfsi_option_view2.php:281
493
- msgid "Follow me on Twitter:"
494
- msgstr "مرا در توییتر دنبال کنید:"
495
-
496
- #: views/sfsi_option_view2.php:289
497
- msgid "Tweet about my page:"
498
- msgstr "در مورد صفحه من توییت کنید:"
499
-
500
- #: views/sfsi_option_view2.php:302
501
- msgid ""
502
- "should perform. If you select several options, then users can select what "
503
- "they want to do"
504
- msgstr ""
505
- "آیکن گوگل‌پلاس میتواند چند کار انجام دهد. از پایین کاری را که میخواهید "
506
- "برگزینید. اگر چند عمل را با هم انتخاب کنید، کاربران خودشان انتخاب میکنند که "
507
- "کدام را میخواهند."
508
-
509
- #: views/sfsi_option_view2.php:308
510
- msgstr "آیکن گوگل‌پلاس به کاربران امکان میدهد که..."
511
-
512
- #: views/sfsi_option_view2.php:344
513
- msgid ""
514
- "The Youtube icon can perform several actions. Pick below which ones it "
515
- "should perform. If you select several options, then users can select what "
516
- "they want to do"
517
- msgstr ""
518
- "آیکن یوتیوب میتواند چند کار انجام دهد. از پایین کاری را که میخواهید "
519
- "برگزینید. اگر چند عمل را با هم انتخاب کنید، کاربران خودشان انتخاب میکنند که "
520
- "کدام را میخواهند."
521
-
522
- #: views/sfsi_option_view2.php:350
523
- msgid "The youtube icon should allow users to..."
524
- msgstr "آیکن یوتیوب به کاربران امکان میدهد که..."
525
-
526
- #: views/sfsi_option_view2.php:354
527
- msgid "Visit my Youtube page at:"
528
- msgstr "صفحه یوتیوب مرا ببینید:"
529
-
530
- #: views/sfsi_option_view2.php:360
531
- msgid "Subscribe to me on Youtube"
532
- msgstr "در یوتیوب من مشترک شوید"
533
-
534
- #: views/sfsi_option_view2.php:362
535
- msgid "(allows people to subscribe to you directly, without leaving your blog)"
536
- msgstr "(بدون ترک وبلاگتان، به کاربران امکان دنبال‌کردن مستقیم شما را میدهد)"
537
-
538
- #: views/sfsi_option_view2.php:382
539
- msgid "User Name"
540
- msgstr "نام کاربر"
541
-
542
- #: views/sfsi_option_view2.php:387
543
- msgid "Channel Id"
544
- msgstr "شناسه (Id) کانال"
545
-
546
- #: views/sfsi_option_view2.php:393
547
- msgid "UserName:"
548
- msgstr "نام کاربری:"
549
-
550
- #: views/sfsi_option_view2.php:397
551
- msgid ""
552
- "To find your Username go to \"My channel\" in Youtube menu bar on the left & "
553
- "Select the \"About\" tab and take your user name from URL there (e.g. "
554
- "https://www.youtube.com/user/Tommy it is \"Tommy\")."
555
- msgstr ""
556
- "برای پیداکردن نام کاربری خود به گزینه \"My channel\" از سمت چپ منوی یوتیوب "
557
- "رفته، تب \"About\" را انتخاب نمایید و نام کاربری‌تان را از آدرس URL بردارید "
558
- "(برای نمونه اگر آدرس URL https://www.youtube.com/user/Tommy بود، \"Tommy\" "
559
- "نام کاربری شماست)."
560
-
561
- #: views/sfsi_option_view2.php:403
562
- msgid "Channel Id:"
563
- msgstr "شناسه (Id) کانال:"
564
-
565
- #: views/sfsi_option_view2.php:408
566
- msgid ""
567
- "To find your Channel name go to \"My Channel\" in Youtube menu bar on the "
568
- "left and take your channel name from there."
569
- msgstr ""
570
- "برای پیداکردن نام کانال خود به گزینه \"My channel\" از سمت چپ منوی یوتیوب "
571
- "رفته، نام کانال خود را از آنجا بردارید."
572
-
573
- #: views/sfsi_option_view2.php:423
574
- msgid ""
575
- "The Pinterest icon can perform several actions. Pick below which ones it "
576
- "should perform. If you select several options, then users can select what "
577
- "they want to do"
578
- msgstr ""
579
- "آیکن پین‌ترست میتواند چند کار انجام دهد. از پایین کاری را که میخواهید "
580
- "برگزینید. اگر چند عمل را با هم انتخاب کنید، کاربران خودشان انتخاب میکنند که "
581
- "کدام را میخواهند."
582
-
583
- #: views/sfsi_option_view2.php:429
584
- msgid "The Pinterest icon should allow users to..."
585
- msgstr "آیکن پین‌ترست به کاربران امکان میدهد که..."
586
-
587
- #: views/sfsi_option_view2.php:434
588
- msgid "Visit my Pinterest page at:"
589
- msgstr "صفحه پین‌ترست مرا ببینید:"
590
-
591
- #: views/sfsi_option_view2.php:442
592
- msgid "Pin my blog on Pinterest (+1)"
593
- msgstr "وبلاگ مرا در پین‌ترست پین کنید (۱+)"
594
-
595
- #: views/sfsi_option_view2.php:457
596
- msgid "When clicked on, users will get directed to your Instagram page"
597
- msgstr "اگر کلیک شود، کاربران مستقیماً به صفحه اینستاگرام شما منتقل میشوند"
598
-
599
- #: views/sfsi_option_view2.php:476
600
- msgid ""
601
- "The LinkedIn icon can perform several actions. Pick below which ones it "
602
- "should perform. If you select several options, then users can select what "
603
- "they want to do"
604
- msgstr ""
605
- "آیکن لینکدین میتواند چند کار انجام دهد. از پایین کاری را که میخواهید "
606
- "برگزینید. اگر چند عمل را با هم انتخاب کنید، کاربران خودشان انتخاب میکنند که "
607
- "کدام را میخواهند."
608
-
609
- #: views/sfsi_option_view2.php:482
610
- msgid ""
611
- "You find your ID in the link of your profile page, e.g. https://www.linkedin."
612
- "com/profile/view?id=<b>8539887</b>&trk=nav_responsive_tab_profile_pic"
613
- msgstr ""
614
- "شناسه (ID) تان را از لینک صفحه پروفایل‌تان پیدا کنید، برای نمونه https://www."
615
- "linkedin.com/profile/view?id=<b>8539887</"
616
- "b>&trk=nav_responsive_tab_profile_pic"
617
-
618
- #: views/sfsi_option_view2.php:485
619
- msgid "The LinkedIn icon should allow users to..."
620
- msgstr "آیکن لیندکدین به کاربران امکان میدهد که..."
621
-
622
- #: views/sfsi_option_view2.php:490
623
- msgid "Visit my Linkedin page at:"
624
- msgstr "صفحه لینکدین مرا ببینید"
625
-
626
- #: views/sfsi_option_view2.php:499
627
- msgid "Follow me on Linkedin:"
628
- msgstr "مرا در لینکدین دنبال کنید"
629
-
630
- #: views/sfsi_option_view2.php:508
631
- msgid "Share my page on LinkedIn"
632
- msgstr "صفحه مرا در لینکدین به اشتراک بگذارید"
633
-
634
- #: views/sfsi_option_view2.php:515
635
- msgid "Recommend my business or product on Linkedin"
636
- msgstr "محصول یا کسب و کار مرا در لینکدین پیشنهاد بده"
637
-
638
- #: views/sfsi_option_view2.php:520
639
- msgid "To find your Product or Company ID, you can use their ID lookup tool at"
640
- msgstr ""
641
- "برای اینکه محصول یا شناسه شرکتتان را پیدا کنید، میتوانید از ابزار جستجوی "
642
- "شناسه آنها استفاده کنید در"
643
-
644
- #: views/sfsi_option_view2.php:524
645
- msgid "You need to be logged in to Linkedin to be able to use it."
646
- msgstr "برای استفاده باید در لینکدین وارد (login) شده باشید"
647
-
648
- #: views/sfsi_option_view2.php:537
649
- msgid ""
650
- "Nothing needs to be done here – your visitors to share your site via «all "
651
- "the other» social media sites."
652
- msgstr ""
653
- "اینجا کاری لازم نیست انجام بدهید - بازدیدکنندگان شما سایتتان را از طریق "
654
- "«سایر» شبکه‌های اجتماعی به اشتراک میگذارند."
655
-
656
- #: views/sfsi_option_view2.php:553
657
- msgid ""
658
- "Please provide the url to your Houzz profile (e.g. http://www.houzz.com/user/"
659
- "your_username)."
660
- msgstr ""
661
- "لطفاً نشانی url پروفایل هازتان را ارایه کنید (برای نمونه: http://www.houzz."
662
- "com/user/your_username)."
663
-
664
- #: views/sfsi_option_view2.php:585
665
- msgid "Where do you want this icon to link to?"
666
- msgstr "میخواهید این آیکن به کجا لینک شود؟"
667
-
668
- #: views/sfsi_option_view2.php:589
669
- msgid "Link:"
670
- msgstr "لینک:"
671
-
672
- #: views/sfsi_option_view3.php:35
673
- msgid ""
674
- "A good & well-fitting design is not only nice to look at, but it increases "
675
- "chances that people will subscribe and/or share your site with friends:"
676
- msgstr ""
677
- "یک طراحی خوب و شکیل نه تنها زیبا به‌نظر میرسد، بلکه شانس اینکه مردم مشترک شما "
678
- "شوند یا سایتان را با دوستانشان به اشتراک بگذارند بالا میبرد:"
679
-
680
- #: views/sfsi_option_view3.php:39
681
- msgid "It comes across as more professional gives your site more “credit”"
682
- msgstr "حرفه‌ای‌تر به‌نظر میرسد و اعتبار بیشتری به سایتتان میبخشد"
683
-
684
- #: views/sfsi_option_view3.php:42
685
- msgid ""
686
- "A smart automatic animation can make your visitors aware of your icons in an "
687
- "unintrusive manner"
688
- msgstr ""
689
- "پویانمایی خودکار ممکن است بازدیدکنندگان سایت‌تان را از آیکن‌هایتان بیزار کند."
690
-
691
- #: views/sfsi_option_view3.php:47
692
- msgid ""
693
- "The icons have been compressed by Shortpixel.com for faster loading of your "
694
- "site. Thank you Shortpixel!"
695
- msgstr ""
696
- "برای اینکه سایتتان سریعتر باز شود، آیکن‌ها به‌کمک Shortpixel.com فشرده شده‌اند. "
697
- "Shortpixel ازت ممنونیم!"
698
-
699
- #: views/sfsi_option_view3.php:52
700
- msgid "Theme options"
701
- msgstr "تنظیمات پوسته"
702
-
703
- #: views/sfsi_option_view3.php:59
704
- msgid "Default"
705
- msgstr "پیش‌فرض"
706
-
707
- #: views/sfsi_option_view3.php:69
708
- msgid "Flat"
709
- msgstr "تخت (Flat)"
710
-
711
- #: views/sfsi_option_view3.php:78
712
- msgid "Thin"
713
- msgstr "نازک (Thin)"
714
-
715
- #: views/sfsi_option_view3.php:87
716
- msgid "Cute"
717
- msgstr "زیبا (Cute)"
718
-
719
- #: views/sfsi_option_view3.php:97
720
- msgid "Cubes"
721
- msgstr "مکعبی (Cubes)"
722
-
723
- #: views/sfsi_option_view3.php:105
724
- msgid "Chrome Blue"
725
- msgstr "فلز براق آبی"
726
-
727
- #: views/sfsi_option_view3.php:112
728
- msgid "Chrome Grey"
729
- msgstr "فلز براق خاکستری"
730
-
731
- #: views/sfsi_option_view3.php:119
732
- msgid "Splash"
733
- msgstr "پخش (Splash)"
734
-
735
- #: views/sfsi_option_view3.php:130
736
- msgid "Orange"
737
- msgstr "نارنجی"
738
-
739
- #: views/sfsi_option_view3.php:137
740
- msgid "Crystal"
741
- msgstr "کریستال"
742
-
743
- #: views/sfsi_option_view3.php:144
744
- msgid "Glossy"
745
- msgstr "براق"
746
-
747
- #: views/sfsi_option_view3.php:151
748
- msgid "Black"
749
- msgstr "سیاه"
750
-
751
- #: views/sfsi_option_view3.php:161
752
- msgid "Silver"
753
- msgstr "نقره‌ای"
754
-
755
- #: views/sfsi_option_view3.php:168
756
- msgid "Shaded Dark"
757
- msgstr "سایه تیره"
758
-
759
- #: views/sfsi_option_view3.php:175
760
- msgid "Shaded Light"
761
- msgstr "سایه روشن"
762
-
763
- #: views/sfsi_option_view3.php:182
764
- msgid "Transparent"
765
- msgstr "شفاف"
766
-
767
- #: views/sfsi_option_view3.php:183
768
- msgid "for dark backgrounds"
769
- msgstr "برای پس‌زمینه‌های تیره"
770
-
771
- #: views/sfsi_option_view3.php:192
772
- msgid "Custom Icons"
773
- msgstr "آیکون‌های سفارشی"
774
-
775
- #: views/sfsi_option_view3.php:306
776
- msgid "Animate them (your main icons)"
777
- msgstr "پویانمایی کن (آیکن‌های اصلی‌تان)"
778
-
779
- #: views/sfsi_option_view3.php:312
780
- msgid "Mouse-Over effects"
781
- msgstr "جلوه‌های قرارگیری ماوس روی آیکن"
782
-
783
- #: views/sfsi_option_view3.php:317
784
- msgid "Fade In"
785
- msgstr "محو شدن در"
786
-
787
- #: views/sfsi_option_view3.php:320
788
- msgid "Combo"
789
- msgstr "کشویی"
790
-
791
- #: views/sfsi_option_view3.php:330
792
- msgid "Shuffle them automatically"
793
- msgstr "بصورت خودکار آنها را به‌هم بریز"
794
-
795
- #: views/sfsi_option_view3.php:337
796
- msgid "When site is first loaded"
797
- msgstr "وقتی سایت برای اولین بار باز شد"
798
-
799
- #: views/sfsi_option_view3.php:343
800
- msgid "Every"
801
- msgstr "هر"
802
-
803
- #: views/sfsi_option_view3.php:347
804
- msgid "seconds"
805
- msgstr "ثانیه"
806
-
807
- #: views/sfsi_option_view4.php:150
808
- msgid ""
809
- "It’s a psychological fact that people like to follow other people, so when "
810
- "they see that your site has already a good number of Facebook likes, it’s "
811
- "more likely that they will subscribe/like/share your site than if it had 0."
812
- msgstr ""
813
- "این یک واقعیت روانشناختی‌ست که مردم دوست دارند دیگران را دنبال کنند، پس وقتی "
814
- "میبینند که وب‌سایت شما عدد خوبی از لایک‌های فیس‌بوک را به خود اختصاص داده، خیلی "
815
- "بهتر مشترک شما میشوند یا سایتتان را به اشتراک میگذارند، تا اینکه تعداد "
816
- "لایک‌تان 0 باشد."
817
-
818
- #: views/sfsi_option_view4.php:153
819
- msgid ""
820
- "Therefore, you can select to display the count next to your icons which will "
821
- "look like this:"
822
- msgstr ""
823
- "بنابراین، میتوانید انتخاب کنید که تعداد، کنار آیکن‌هایتان نمایش داده شود، "
824
- "مانند این:"
825
-
826
- #: views/sfsi_option_view4.php:215
827
- msgid ""
828
- "Of course, if you start at 0, you shoot yourself in the foot with that. So "
829
- "we suggest that you only turn this feature on once you have a good number of "
830
- "followers/likes/shares (min. of 20 – no worries if it’s not too many, it "
831
- "should just not be 0)."
832
- msgstr ""
833
- "البته، اگر شما از 0 شروع کنید، تیری به پای خود شلیک کرده‌اید! پس ما پیشنهاد "
834
- "میکنیم که این ویژگی را تا زمانی که به تعداد مناسبی از دنبال‌کننده، لایک یا به "
835
- "اشتراک‌گذاری نرسیده‌اید فعال کنید (دست‌کم روی ۲۰ بگذارید - نگران نباشید که زیاد "
836
- "نیست، فقط روی 0 نگذارید)."
837
-
838
- #: views/sfsi_option_view4.php:218
839
- msgid "Enough waffling. So do you want to display counts?"
840
- msgstr "پرحرفی کافیست. پس شما میخواهید تعداد نمایش داده شود؟"
841
-
842
- #: views/sfsi_option_view4.php:225 views/sfsi_option_view5.php:759
843
- #: views/sfsi_option_view5.php:787 views/sfsi_option_view5.php:808
844
- #: views/sfsi_option_view5.php:830 views/sfsi_option_view6.php:64
845
- #: views/sfsi_option_view9.php:208 views/sfsi_option_view9.php:254
846
- msgid "Yes"
847
- msgstr "آری"
848
-
849
- #: views/sfsi_option_view4.php:231 views/sfsi_option_view5.php:765
850
- #: views/sfsi_option_view5.php:793 views/sfsi_option_view5.php:814
851
- #: views/sfsi_option_view5.php:836 views/sfsi_option_view6.php:70
852
- #: views/sfsi_option_view9.php:215 views/sfsi_option_view9.php:261
853
- msgid "No"
854
- msgstr "خیر"
855
-
856
- #: views/sfsi_option_view4.php:239
857
- msgid "Please specify which counts should be shown:"
858
- msgstr "لطفاً تعیین کنید تعداد کدام نمایش داده شود:"
859
-
860
- #: views/sfsi_option_view4.php:261
861
- msgid "We cannot track this. So enter the figure here:"
862
- msgstr "ما نمیتوانیم این را ردیابی کنیم. پس رقم را اینجا وارد نمایید:"
863
-
864
- #: views/sfsi_option_view4.php:289
865
- msgid "Retrieve the number of subscribers automatically"
866
- msgstr "نمایش تعداد مشترکین بصورت خودکار"
867
-
868
- #: views/sfsi_option_view4.php:293 views/sfsi_option_view4.php:338
869
- #: views/sfsi_option_view4.php:425 views/sfsi_option_view4.php:498
870
- #: views/sfsi_option_view4.php:543 views/sfsi_option_view4.php:589
871
- #: views/sfsi_option_view4.php:621 views/sfsi_option_view4.php:660
872
- #: views/sfsi_option_view4.php:693 views/sfsi_option_view4.php:722
873
- msgid "Enter the figure manually"
874
- msgstr "ورود دستی تعداد"
875
-
876
- #: views/sfsi_option_view4.php:320
877
- msgid "Retrieve the number of likes of your blog"
878
- msgstr "نمایش تعداد لایک‌های وبلاگ‌تان"
879
-
880
- #: views/sfsi_option_view4.php:324
881
- msgid "Retrieve the number of likes your facebook page"
882
- msgstr "نمایش تعداد لایک‌های صفحه فیس‌بوک‌تان"
883
-
884
- #: views/sfsi_option_view4.php:328
885
- msgid "page ID:"
886
- msgstr "شناسه (ID) صفحه:"
887
-
888
- #: views/sfsi_option_view4.php:333
889
- msgid ""
890
- "Youll find it at the bottom of the << About >> -tab on your facebook page"
891
- msgstr "میتوانید در پایین تب «About» صفحه فیس‌بوکتان پیدایش کنید"
892
-
893
- #: views/sfsi_option_view4.php:365
894
- msgid "Retrieve the number of Twitter followers"
895
- msgstr "نمایش تعداد دنبال‌کنندگان توییترتان"
896
-
897
- #: views/sfsi_option_view4.php:371
898
- msgid "Enter Consumer Key"
899
- msgstr "کلید مصرف‌کننده را وارد نمایید"
900
-
901
- #: views/sfsi_option_view4.php:377
902
- msgid "Enter Consumer Secret"
903
- msgstr "رمز مصرف‌کننده را وارد نمایید"
904
-
905
- #: views/sfsi_option_view4.php:383
906
- msgid "Enter Access Token"
907
- msgstr "توکن دسترسی را وارد نمایید"
908
-
909
- #: views/sfsi_option_view4.php:389
910
- msgid "Enter Access Token Secret"
911
- msgstr "رمز توکن دسترسی را وارد نمایید"
912
-
913
- #: views/sfsi_option_view4.php:396
914
- msgid ""
915
- "Please make sure you have entered the Username for \"Follow me on Twitter:\" "
916
- "in twitter settings under question number 2."
917
- msgstr ""
918
- "لطفاً مطمئن شوید که نام کاربری را برای \"مرا در توییتر دنبال کنید:\" در "
919
- "تنظیمات بخش توییتر وارد نموده‌اید. مربوط به سوال شماره ۲."
920
-
921
- #: views/sfsi_option_view4.php:400
922
- msgid "To get this information:"
923
- msgstr "برای دریافت این اطلاعات:"
924
-
925
- #: views/sfsi_option_view4.php:404
926
- msgid "Go to"
927
- msgstr "بروید به"
928
-
929
- #: views/sfsi_option_view4.php:410
930
- msgid "Click on \"Create new app\""
931
- msgstr "روی \"Create new app\" کلیک کنید"
932
-
933
- #: views/sfsi_option_view4.php:413
934
- msgid ""
935
- "Enter a random Name, Description and Website URL (including the \"http://\", "
936
- "e.g. http://dummysitename.com)"
937
- msgstr ""
938
- "یک نام، توضیح و آدرس وب‌سایت تصادفی وارد نمایید (باید شامل \"http://\"باشد، "
939
- "مانند http://dummysitename.com)"
940
-
941
- #: views/sfsi_option_view4.php:416
942
- msgid ""
943
- "Go to \"Keys and Access Tokens\" tab and click on \"Generate Token\" in the "
944
- "\"Token actions\" section at the bottom"
945
- msgstr ""
946
- "به تب \"Keys and Access Tokens\" بروید و روی \"Generate Token\" در بخش "
947
- "\"Token actions\" در پایین کلیک کنید."
948
-
949
- #: views/sfsi_option_view4.php:419
950
- msgid ""
951
- "Then click on \"Test OAuth\" at the top right and you will see the 4 token "
952
- "key"
953
- msgstr ""
954
- "بعد روی \"Test OAuth\" در بالا سمت راست کلیک کنید و ۴ کلید توکن را خواهید دید"
955
-
956
-
957
- #: views/sfsi_option_view4.php:484
958
- msgid "and create a new project"
959
- msgstr "و یک پروژه جدید ایجاد نمایید"
960
-
961
- #: views/sfsi_option_view4.php:487
962
- msgid ""
963
- "Then on the left menu bar go to “APIs & auth”, “Credentials” and click "
964
- "“Create new key” in the “Public API access” section"
965
- msgstr ""
966
- "بعد در منوی سمت چپ به “APIs & auth” و بعد به “Credentials” بروید و روی "
967
- "“Create new key” در بخش “Public API access” کلیک کنید."
968
-
969
- #: views/sfsi_option_view4.php:490
970
- msgid ""
971
- "There you select “browser key” and click “Create”. You will then be shown "
972
- "your API key"
973
- msgstr ""
974
- "از آنجا “browser key” را انتخاب نموده و روی “Create” کلیک کنید. کلید API "
975
- "برایتان به نمایش در می‌آید"
976
-
977
- #: views/sfsi_option_view4.php:493
978
- msgid ""
979
- "When you enter this key into the plugin for the first time, it may take some "
980
- "time until the correct follower count is displayed on your website"
981
- msgstr ""
982
- "وقتی برای اولین بار این کلید را در افزونه وارد مینمایید، ممکن است مقداری "
983
- "زمان ببرد تا تعداد درست دنبال‌کننده روی وب‌سایتتان به نمایش درآید."
984
-
985
- #: views/sfsi_option_view4.php:570
986
- msgid "Retrieve the number of Subscribers"
987
- msgstr "نمایش تعداد مشترکین"
988
-
989
- #: views/sfsi_option_view4.php:575
990
- msgid "Enter Youtube User name"
991
- msgstr "نام کاربری یوتیوب را وارد کنید"
992
-
993
- #: views/sfsi_option_view4.php:582
994
- msgid "Enter Youtube Channel id"
995
- msgstr "شناسه کانال یوتیوب را وارد نمایید"
996
-
997
- #: views/sfsi_option_view4.php:616
998
- msgid "Retrieve the number of Pins"
999
- msgstr "نمایش تعداد پین"
1000
-
1001
- #: views/sfsi_option_view4.php:649
1002
- msgid "Retrieve the number of Instagram followers"
1003
- msgstr "نمایش تعداد دنبال‌کنندگان اینستاگرام"
1004
-
1005
- #: views/sfsi_option_view4.php:653
1006
- msgid "Enter Instagram User name"
1007
- msgstr "نام کاربری اینستاگرام را وارد نمایید"
1008
-
1009
- #: views/sfsi_option_view4.php:688
1010
- msgid "Retrieve the number of shares"
1011
- msgstr "نمایش تعداد اشتراک‌گذاری‌ها"
1012
-
1013
- #: views/sfsi_option_view5.php:341
1014
- msgid "Order of your icons"
1015
- msgstr "ترتیب آیکن‌هایتان"
1016
-
1017
- #: views/sfsi_option_view5.php:430
1018
- msgid "Drag and Drop"
1019
- msgstr "کشیدن و رها کردن"
1020
-
1021
- #: views/sfsi_option_view5.php:435 views/sfsi_option_view8.php:400
1022
- msgid "Size and spacing of your icons"
1023
- msgstr "اندازه و فضای بین آیکن‌هایتان"
1024
-
1025
- #: views/sfsi_option_view5.php:439 views/sfsi_option_view8.php:404
1026
- msgid "Size:"
1027
- msgstr "اندازه:"
1028
-
1029
- #: views/sfsi_option_view5.php:443 views/sfsi_option_view8.php:406
1030
- msgid "pixels wide and tall"
1031
- msgstr "پیکسل عرض و ارتفاع"
1032
-
1033
- #: views/sfsi_option_view5.php:446 views/sfsi_option_view8.php:408
1034
- msgid "Spacing between icons:"
1035
- msgstr "فضای بین آیکن‌ها:"
1036
-
1037
- #: views/sfsi_option_view5.php:450 views/sfsi_option_view8.php:211
1038
- #: views/sfsi_option_view8.php:220 views/sfsi_option_view8.php:229
1039
- #: views/sfsi_option_view8.php:238 views/sfsi_option_view8.php:410
1040
- msgid "Pixels"
1041
- msgstr "پیکسل"
1042
-
1043
- #: views/sfsi_option_view5.php:457
1044
- msgid "Alignments"
1045
- msgstr "چینش"
1046
-
1047
- #: views/sfsi_option_view5.php:461
1048
- msgid "Alignment of icons:"
1049
- msgstr "چینش آیکن‌ها:"
1050
-
1051
- #: views/sfsi_option_view5.php:466 views/sfsi_option_view9.php:684
1052
- msgid "Centered"
1053
- msgstr "وسط‌چین"
1054
-
1055
- #: views/sfsi_option_view5.php:469 views/sfsi_option_view6.php:92
1056
- #: views/sfsi_option_view8.php:496
1057
- msgid "Right"
1058
- msgstr "راست‌چین"
1059
-
1060
- #: views/sfsi_option_view5.php:472 views/sfsi_option_view6.php:90
1061
- #: views/sfsi_option_view8.php:493
1062
- msgid "Left"
1063
- msgstr "چپ‌چین"
1064
-
1065
- #: views/sfsi_option_view5.php:477
1066
- msgid "Icons per row:"
1067
- msgstr "تعداد آیکن در هر خط:"
1068
-
1069
- #: views/sfsi_option_view5.php:481
1070
- msgid "Leave empty if you don't want to define this"
1071
- msgstr "اگر مایل نیستید این را معین کنید خالی بگذارید"
1072
-
1073
- #: views/sfsi_option_view5.php:488
1074
- msgid "Language & Button-text"
1075
- msgstr "زبان و متن کلید"
1076
-
1077
- #: views/sfsi_option_view5.php:493
1078
- msgid "Follow-button:"
1079
- msgstr "دکمه دنبال:"
1080
-
1081
- #: views/sfsi_option_view5.php:499 views/sfsi_option_view5.php:520
1082
- #: views/sfsi_option_view5.php:541 views/sfsi_option_view5.php:562
1083
- #: views/sfsi_option_view9.php:111
1084
- msgid "Preview:"
1085
- msgstr "پیش‌نمایش:"
1086
-
1087
- #: views/sfsi_option_view5.php:514
1088
- msgid "Facebook «Visit»-icon:"
1089
- msgstr "آیکن «بازدید» فیس‌بوک:"
1090
-
1091
- #: views/sfsi_option_view5.php:535
1092
- msgid "Twitter «Visit»-icon:"
1093
- msgstr "آیکن «بازدید» توییتر:"
1094
-
1095
- #: views/sfsi_option_view5.php:748
1096
- msgid "New window"
1097
- msgstr "پنجره جدید"
1098
-
1099
- #: views/sfsi_option_view5.php:753
1100
- msgid ""
1101
- "If a user clicks on your icons, do you want to open the page in a new window?"
1102
- msgstr ""
1103
- "اگر کاربر روی آیکن‌هایتان کلیک کرد، میخواهید صفحه مربوطه در یک پنجره جدید (تب "
1104
- "جدید از مرورگر) باز گردد؟"
1105
-
1106
- #: views/sfsi_option_view5.php:776
1107
- msgid "Sticking & Disable on mobile"
1108
- msgstr "در حالت موبایل بچسب و غیرفعال شو"
1109
-
1110
- #: views/sfsi_option_view5.php:779
1111
- msgid ""
1112
- "If you decided to show your icons via a widget, you can add the effect that "
1113
- "when the user scrolls down, the icons will stick at the top of the screen "
1114
- "so that they are still displayed even if the user scrolled all the way down. "
1115
- "Do you want to do that?"
1116
- msgstr ""
1117
- "اگر تصمیم دارید آیکن‌هایتان را در یک ابزارک نمایش دهید، میتوانید حالتی را "
1118
- "برگزینید که وقتی کاربر به سمت پایین آمد آیکون‌ها در بالای صفحه‌نمایش بچسبند و "
1119
- "هرچقدر کاربر به سمت پایین سایت پیمایش (اسکرول) کند همچنان قابل دیدن باشند. "
1120
- "آیا میخواهید این کار انجام شود؟"
1121
-
1122
- #: views/sfsi_option_view5.php:802
1123
- msgid "Disable float icons on mobile devices"
1124
- msgstr "آیکن‌های شناور در حالت موبایل غیرفعال باشند"
1125
-
1126
- #: views/sfsi_option_view5.php:824
1127
- msgid "Disable auto-scaling feature for mobile devices (\"viewport\" meta tag)"
1128
- msgstr ""
1129
- "ویژگی auto-scaling در دستگاه‌های موبایل غیرفعال شود (تگ متای \"viewport\")"
1130
-
1131
- #: views/sfsi_option_view5.php:848
1132
- msgid "Mouseover text"
1133
- msgstr "متنی که وقتی ماوس روی آن قرار گرفت نشان دهد"
1134
-
1135
- #: views/sfsi_option_view5.php:851
1136
- msgid ""
1137
- "If you’ve given your icon only one function (i.e. no pop-up where user can "
1138
- "perform different actions) then you can define here what text will be "
1139
- "displayed if a user moves his mouse over the icon:"
1140
- msgstr ""
1141
- "اگر به آیکن‌تان تنها یک امکان داده‌اید (برای نمونه هیچ پاپ‌آپی برای آزادی عمل "
1142
- "کاربر ارایه نکردید) اینجا مشخص کنید هنگامی که کاربر ماوس خود را روی آیکن "
1143
- "آورد چه متنی نمایش داده شود:"
1144
-
1145
- #: views/sfsi_option_view6.php:27
1146
- msgid ""
1147
- "The selections you made so far were to display the subscriptions/ social "
1148
- "media icons for your site in general (in a widget on the sidebar). You can "
1149
- "also display icons at the end of every post, encouraging users to subscribe/"
1150
- "like/share after they’ve read it. The following buttons will be added:"
1151
- msgstr ""
1152
- "انتخابی که کردید در حال حاضر مربوط به نمایش آیکن‌های اشتراک و شبکه‌های اجتماعی "
1153
- "بطور معمول برای سایتتان است (در ابزارک نوار ابزار کناری). شما همچنین "
1154
- "میتوانید آیکن‌ها را در انتهای هر نوشته نمایش دهید، و کاربران را تشویق به "
1155
- "مشترک‌شدن، لایک‌کردن، یا به اشتراک گذاری مطالبتان کنید. کلیدهای زیر اضافه "
1156
- "خواهند شد:"
1157
-
1158
- #: views/sfsi_option_view6.php:43
1159
- msgid "Those are usually all you need:"
1160
- msgstr "آنها همه آن چیزیست که نیاز دارید:"
1161
-
1162
- #: views/sfsi_option_view6.php:47
1163
- msgid "Facebook is No.1 in liking, so it’s a must have"
1164
- msgstr "فیس‌بوک در لایک کردن شماره ۱ است، پس باید داشته باشد"
1165
-
1166
- #: views/sfsi_option_view6.php:53
1167
- msgid "Share-button covers all other platforms for sharing"
1168
- msgstr "دکمه اشتراک‌گذاری تمامی سایر روش‌های اشتراک‌گذاری موجود را پوشش میدهد"
1169
-
1170
- #: views/sfsi_option_view6.php:58
1171
- msgid "So: do you want to display those at the end of every post?"
1172
- msgstr "پس، شما میخواهید آنها را در انتهای هر نوشته نمایش دهید؟"
1173
-
1174
- #: views/sfsi_option_view6.php:78
1175
- msgid "Options:"
1176
- msgstr "تنظیمات:"
1177
-
1178
- #: views/sfsi_option_view6.php:82 views/sfsi_option_view8.php:484
1179
- msgid "Text to appear before the sharing icons:"
1180
- msgstr "متن پیش از ظاهر شدن آیکن‌های اشتراک‌گذاری:"
1181
-
1182
- #: views/sfsi_option_view6.php:87 views/sfsi_option_view8.php:489
1183
- msgid "Alignment of share icons:"
1184
- msgstr "چینش آیکن‌های اشتراک‌گذاری:"
1185
-
1186
- #: views/sfsi_option_view6.php:97 views/sfsi_option_view8.php:385
1187
- msgid "Do you want to display the counts?"
1188
- msgstr "آیا میخواهید تعداد نمایش داده شود؟"
1189
-
1190
- #: views/sfsi_option_view6.php:99 views/sfsi_option_view8.php:388
1191
- msgid "YES"
1192
- msgstr "آری"
1193
-
1194
- #: views/sfsi_option_view6.php:101 views/sfsi_option_view8.php:390
1195
- msgid "NO"
1196
- msgstr "خیر"
1197
-
1198
- #: views/sfsi_option_view7.php:48
1199
- msgid ""
1200
- "You can increase the chances that people share or follow you by displaying a pop-"
1201
- "up asking them to. You can define the design and layout below:"
1202
- msgstr ""
1203
- "شما میتوانید شانس اینکه مردم سایتتان را به اشتراک بگذارند یا دنبال کنند را "
1204
- "با نمایش یک پاپ‌آپ سوال‌کننده بیشتر کنید. میتوانید جانمایی و طراحی آن را در "
1205
- "پایین تنظیم نمایید:"
1206
-
1207
- #: views/sfsi_option_view7.php:54
1208
- msgid "Enjoy this site? Please follow and like us!"
1209
- msgstr "از این سایت لذت میبرید؟ لطفاً ما را لایک کرده و دنبال کنید!"
1210
-
1211
- #: views/sfsi_option_view7.php:143
1212
- msgid "Text and Design"
1213
- msgstr "متن و طراحی"
1214
-
1215
- #: views/sfsi_option_view7.php:147
1216
- msgid "Text Options"
1217
- msgstr "تنظیمات متن"
1218
-
1219
- #: views/sfsi_option_view7.php:150 views/sfsi_option_view9.php:329
1220
- #: views/sfsi_option_view9.php:409 views/sfsi_option_view9.php:486
1221
- msgid "Text:"
1222
- msgstr "متن:"
1223
-
1224
- #: views/sfsi_option_view7.php:154 views/sfsi_option_view9.php:342
1225
- #: views/sfsi_option_view9.php:422 views/sfsi_option_view9.php:499
1226
- msgid "Font:"
1227
- msgstr "قلم:"
1228
-
1229
- #: views/sfsi_option_view7.php:200 views/sfsi_option_view9.php:428
1230
- #: views/sfsi_option_view9.php:505
1231
- msgid "Font style:"
1232
- msgstr "ظاهر قلم:"
1233
-
1234
- #: views/sfsi_option_view7.php:219
1235
- msgid "Font color:"
1236
- msgstr "رنگ قلم:"
1237
-
1238
- #: views/sfsi_option_view7.php:224
1239
- msgid "Font size:"
1240
- msgstr "اندازه قلم:"
1241
-
1242
- #: views/sfsi_option_view7.php:231
1243
- msgid "Icon Box Layout"
1244
- msgstr "جانمایی جعبه‌آیکن"
1245
-
1246
- #: views/sfsi_option_view7.php:235
1247
- msgid "Backgroud Color:"
1248
- msgstr "رنگ پس‌زمینه:"
1249
-
1250
- #: views/sfsi_option_view7.php:241
1251
- msgid "Border Color:"
1252
- msgstr "رنگ کادر دور:"
1253
-
1254
- #: views/sfsi_option_view7.php:249
1255
- msgid "Border Thinckness:"
1256
- msgstr "ضخامت کادر دور:"
1257
-
1258
- #: views/sfsi_option_view7.php:257
1259
- msgid "Border Shadow:"
1260
- msgstr "سایه کادر دور:"
1261
-
1262
- #: views/sfsi_option_view7.php:263
1263
- msgid "On"
1264
- msgstr "روشن"
1265
-
1266
- #: views/sfsi_option_view7.php:269
1267
- msgid "Off"
1268
- msgstr "خاموش"
1269
-
1270
- #: views/sfsi_option_view7.php:279
1271
- msgid "Where shall the pop-up be shown?"
1272
- msgstr "پاپ‌آپ کجا نمایش داده شود؟"
1273
-
1274
- #: views/sfsi_option_view7.php:284
1275
- msgid "Nowhere"
1276
- msgstr "هیچ‌کجا"
1277
-
1278
- #: views/sfsi_option_view7.php:290
1279
- msgid "On every page"
1280
- msgstr "در همه صفحات"
1281
-
1282
- #: views/sfsi_option_view7.php:296
1283
- msgid "On blog posts only"
1284
- msgstr "تنها در نوشته‌های وبلاگ"
1285
-
1286
- #: views/sfsi_option_view7.php:302
1287
- msgid "On selected pages only"
1288
- msgstr "تنها در برگه‌های انتخاب شده"
1289
-
1290
- #: views/sfsi_option_view7.php:345
1291
- msgid "Please hold CTRL key to select multiple pages"
1292
- msgstr "لطفاً کلید کنترل (Ctrl) را برای انتخاب صفحات متعدد نگه‌دارید"
1293
-
1294
- #: views/sfsi_option_view7.php:351
1295
- msgid "When shall the pop-up be shown?"
1296
- msgstr "پاپ‌آپ چه‌وقتی نمایش داده شود؟"
1297
-
1298
- #: views/sfsi_option_view7.php:356
1299
- msgid "Once"
1300
- msgstr "یکدفعه"
1301
-
1302
- #: views/sfsi_option_view7.php:358
1303
- msgid "seconds after the user arrived on the site"
1304
- msgstr "ثانیه‌هایی پس از ورود کاربر به سایت"
1305
-
1306
- #: views/sfsi_option_view7.php:364
1307
- msgid "Every time user scrolls to the end of the page"
1308
- msgstr "هروقت کاربر به انتهای برگه رسید (اسکرول کرد)"
1309
-
1310
- #: views/sfsi_option_view8.php:112
1311
- msgid "Show them via a widget"
1312
- msgstr "از طریق ابزارک نمایش‌شان بده"
1313
-
1314
- #: views/sfsi_option_view8.php:125
1315
- msgid "Go to the widget area and drag & drop it where you want to have it!"
1316
- msgstr ""
1317
- "به قسمت ابزارک‌ها رفته و با کشیدن و رها کردن هرجا که مایل هستید قرار دهید!"
1318
-
1319
- #: views/sfsi_option_view8.php:142
1320
- msgid "Float them on the page"
1321
- msgstr "روی صفحه شناورشان کن"
1322
-
1323
- #: views/sfsi_option_view8.php:160
1324
- msgid "Top left"
1325
- msgstr "بالا سمت چپ"
1326
-
1327
- #: views/sfsi_option_view8.php:167
1328
- msgid "Top right"
1329
- msgstr "بالا سمت راست"
1330
-
1331
- #: views/sfsi_option_view8.php:174
1332
- msgid "Center left"
1333
- msgstr "وسط سمت چپ"
1334
-
1335
- #: views/sfsi_option_view8.php:181
1336
- msgid "Center right"
1337
- msgstr "وسط سمت راست"
1338
-
1339
- #: views/sfsi_option_view8.php:188
1340
- msgid "Bottom left"
1341
- msgstr "پایین سمت چپ"
1342
-
1343
- #: views/sfsi_option_view8.php:195
1344
- msgid "Bottom right"
1345
- msgstr "پایین سمت راست"
1346
-
1347
- #: views/sfsi_option_view8.php:202
1348
- msgid "Margin From:"
1349
- msgstr "فاصله از:"
1350
-
1351
- #: views/sfsi_option_view8.php:207
1352
- msgid "Top:"
1353
- msgstr "بالا:"
1354
-
1355
- #: views/sfsi_option_view8.php:216
1356
- msgid "Bottom:"
1357
- msgstr "پایین:"
1358
-
1359
- #: views/sfsi_option_view8.php:225
1360
- msgid "Left:"
1361
- msgstr "چپ:"
1362
-
1363
- #: views/sfsi_option_view8.php:234
1364
- msgid "Right:"
1365
- msgstr "راست:"
1366
-
1367
- #: views/sfsi_option_view8.php:253
1368
- msgid "Place them manually"
1369
- msgstr "دستی قرار بده"
1370
-
1371
- #: views/sfsi_option_view8.php:266
1372
- msgid "Place the following string into your theme codes: "
1373
- msgstr "متن زیر را در کد پوسته سایتتان وارد نمایید:"
1374
-
1375
- #: views/sfsi_option_view8.php:270
1376
- msgid ""
1377
- "Or use the shortcode [DISPLAY_ULTIMATE_PLUS] to display them wherever you "
1378
- "want."
1379
- msgstr ""
1380
- "یا اینکه برای نمایش دلخواه در هرجایی که میخواهید از کد کوتاه "
1381
- "[DISPLAY_ULTIMATE_PLUS] استفاده نمایید."
1382
-
1383
- #: views/sfsi_option_view8.php:282
1384
- msgid "Show them before or after posts"
1385
- msgstr "قبل یا بعد از نوشته نمایش‌شان بده"
1386
-
1387
- #: views/sfsi_option_view8.php:296
1388
- msgid "Here you have two options:"
1389
- msgstr "اینجا شما دو انتخاب دارید:"
1390
-
1391
- #: views/sfsi_option_view8.php:304
1392
- msgid "Display rectangle icons"
1393
- msgstr "آیکن‌های مربعی نشان بده"
1394
-
1395
- #: views/sfsi_option_view8.php:310
1396
- msgid "Display the icons I selected above"
1397
- msgstr "آیکن‌هایی را که در بالا انتخاب کردم نمایش بده"
1398
-
1399
- #: views/sfsi_option_view8.php:318
1400
- msgid ""
1401
- "Rectangle icons spell out the «call to action» which increases chances that "
1402
- "visitors do it."
1403
- msgstr ""
1404
- "آیکن‌های مربعی میگویند «اقدام کن» که شانس اقدام توسط بازدیدکننده را افزایش "
1405
- "میدهد."
1406
-
1407
- #: views/sfsi_option_view8.php:321
1408
- msgid "Select the icons you want to show:"
1409
- msgstr "آیکنی که میخواهید نمایش داده شود را انتخاب نمایید:"
1410
-
1411
- #: views/sfsi_option_view8.php:371
1412
- msgid "may impact loading speed"
1413
- msgstr "روی سرعت باز شدن سایت تاثیرگذار است"
1414
-
1415
- #: views/sfsi_option_view8.php:421
1416
- msgid "Display them:"
1417
- msgstr "نمایش‌شان بده در:"
1418
-
1419
- #: views/sfsi_option_view8.php:424
1420
- msgid "On Post Pages"
1421
- msgstr "در برگه‌ها"
1422
-
1423
- #: views/sfsi_option_view8.php:430 views/sfsi_option_view8.php:459
1424
- msgid "Before posts"
1425
- msgstr "پیش از نوشته‌ها"
1426
-
1427
- #: views/sfsi_option_view8.php:436 views/sfsi_option_view8.php:465
1428
- msgid "After posts"
1429
- msgstr "پس از نوشته‌ها"
1430
-
1431
- #: views/sfsi_option_view8.php:453
1432
- msgid "On Homepage"
1433
- msgstr "در صفحه اول"
1434
-
1435
- #: views/sfsi_option_view8.php:499
1436
- msgid "Center"
1437
- msgstr "مرکز"
1438
-
1439
- #: views/sfsi_option_view9.php:98
1440
- msgid ""
1441
- "In addition to the email- or follow-icon you can also show a subscription "
1442
- "form that maximizes chances that people subscribe to your site. To get "
1443
- "access to the emails who subscribe, please"
1444
- msgstr ""
1445
- "به اضافه در ایمیل یا آیکن‌های دنبال‌کردن شما میتوانید یک فرم اشتراک نمایش دهید "
1446
- "که شانس مشترک شدن در سایت‌تان را به حداکثر میرساند. برای اینکه به ایمیل مشترک "
1447
- "دسترسی داشته باشید، لطفاً"
1448
-
1449
- #: views/sfsi_option_view9.php:102
1450
- msgid "claim your feed."
1451
- msgstr "خوراک‌خوانتان را درخواست کنید."
1452
-
1453
- #: views/sfsi_option_view9.php:121
1454
- msgid "Place it on your site"
1455
- msgstr "در سایتتان قرار دهید"
1456
-
1457
- #: views/sfsi_option_view9.php:124
1458
- msgid "You can place the form by different methods:"
1459
- msgstr "میتوانید فرم را با روش‌های مختلفی قرار دهید:"
1460
-
1461
- #: views/sfsi_option_view9.php:130
1462
- msgid "Widget:"
1463
- msgstr "ابزارک:"
1464
-
1465
- #: views/sfsi_option_view9.php:132
1466
- msgid "Go to the widget settings and drag and drop it to the sidebar:"
1467
- msgstr ""
1468
- "به تنظیمات ابزارک رفته و با کشیدن و رها کردن، آن را به نوارابزار کناری بکشید:"
1469
-
1470
- #: views/sfsi_option_view9.php:139
1471
- msgid "Shortcode:"
1472
- msgstr "کد کوتاه (shortcode):"
1473
-
1474
- #: views/sfsi_option_view9.php:142
1475
- msgid "Use the shortcode"
1476
- msgstr "از این کد کوتاه استفاده کن"
1477
-
1478
- #: views/sfsi_option_view9.php:146
1479
- msgid "to place it into your codes"
1480
- msgstr "برای استفاده در میان کدهایتان"
1481
-
1482
- #: views/sfsi_option_view9.php:150
1483
- msgid "Copy & paste HTML code:"
1484
- msgstr "این کد HTML را copy و paste کنید:"
1485
-
1486
- #: views/sfsi_option_view9.php:164 views/sfsi_option_view9.php:699
1487
- msgid "Get new posts by email:"
1488
- msgstr "دریافت نوشته‌های جدید با ایمیل:"
1489
-
1490
- #: views/sfsi_option_view9.php:186
1491
- msgid "Define text & design (optional)"
1492
- msgstr "متن و طرح را تعیین کنید (اختیاری)"
1493
-
1494
- #: views/sfsi_option_view9.php:189
1495
- msgid "Overall size & border"
1496
- msgstr "اندازه و کادر دور نهایی"
1497
-
1498
- #: views/sfsi_option_view9.php:201
1499
- msgid "Adjust size to space on the website?"
1500
- msgstr "اندازه متناسب با فضای سایت تنظیم شود؟"
1501
-
1502
- #: views/sfsi_option_view9.php:224
1503
- msgid "Height"
1504
- msgstr "ارتفاع"
1505
-
1506
- #: views/sfsi_option_view9.php:230 views/sfsi_option_view9.php:240
1507
- #: views/sfsi_option_view9.php:276 views/sfsi_option_view9.php:376
1508
- #: views/sfsi_option_view9.php:462 views/sfsi_option_view9.php:533
1509
- msgid "pixels"
1510
- msgstr "پیکسل"
1511
-
1512
- #: views/sfsi_option_view9.php:235
1513
- msgid "Width"
1514
- msgstr "عرض"
1515
-
1516
- #: views/sfsi_option_view9.php:247
1517
- msgid "Border?"
1518
- msgstr "کادر دور؟"
1519
-
1520
- #: views/sfsi_option_view9.php:270
1521
- msgid "Thickness"
1522
- msgstr "ضخامت"
1523
-
1524
- #: views/sfsi_option_view9.php:281
1525
- msgid "Color"
1526
- msgstr "رنگ"
1527
-
1528
- #: views/sfsi_option_view9.php:296
1529
- msgid "Background color:"
1530
- msgstr "رنگ پس‌زمینه:"
1531
-
1532
- #: views/sfsi_option_view9.php:317
1533
- msgid "Text above the entry field"
1534
- msgstr "متن بالای فیلد ورودی"
1535
-
1536
- #: views/sfsi_option_view9.php:348
1537
- msgid " Font style:"
1538
- msgstr " ظاهر قلم:"
1539
-
1540
- #: views/sfsi_option_view9.php:357 views/sfsi_option_view9.php:514
1541
- msgid "Font color"
1542
- msgstr "رنگ قلم"
1543
-
1544
- #: views/sfsi_option_view9.php:370 views/sfsi_option_view9.php:456
1545
- #: views/sfsi_option_view9.php:527
1546
- msgid "Font size"
1547
- msgstr "اندازه قلم"
1548
-
1549
- #: views/sfsi_option_view9.php:384 views/sfsi_option_view9.php:449
1550
- #: views/sfsi_option_view9.php:541
1551
- msgid "Alignment:"
1552
- msgstr "چینش:"
1553
-
1554
- #: views/sfsi_option_view9.php:397
1555
- msgid "Entry field"
1556
- msgstr "فیلد ورودی"
1557
-
1558
- #: views/sfsi_option_view9.php:474
1559
- msgid "Subscribe button"
1560
- msgstr "دکمه اشتراک"
1561
-
1562
- #: views/sfsi_option_view9.php:550
1563
- msgid "Button color:"
1564
- msgstr "رنگ کلید:"
1565
-
1566
- #: views/sfsi_option_view9.php:681
1567
- msgid "Left Align"
1568
- msgstr "چپ‌چین"
1569
-
1570
- #: views/sfsi_option_view9.php:687
1571
- msgid "Right Align"
1572
- msgstr "راست‌چین"
1573
-
1574
- #: views/sfsi_options_view.php:10
1575
- msgid ""
1576
- "We found errors in your javascript which may cause the plugin to not work "
1577
- "properly. Please fix the error:"
1578
- msgstr ""
1579
- "ما خطایی در javascript شما پیدا کردیم که ممکن است مانع از کارکرد درست افزونه "
1580
- "شود. لطفاً این خطا را برطرف کنید:"
1581
-
1582
- #: views/sfsi_options_view.php:52
1583
- msgid ""
1584
- "New: You can now also show a subscription form on your site, increasing sign-"
1585
- "ups! (Question 8)"
1586
- msgstr ""
1587
- "جدید: حالا شما قادر خواهید بود که یک فرم اشتراک در سایتتان نمایش دهید، که "
1588
- "تعداد ثبت‌نام ها را زیادتر میکند (سوال ۸)"
1589
-
1590
- #: views/sfsi_options_view.php:54
1591
- msgid ""
1592
- "If question 8 gets displayed in a funny way then please reload the page by "
1593
- "pressing Control+F5(PC) or Command+R(Mac)"
1594
- msgstr ""
1595
- "اگر سوال ۸ را به شکل خنده‌داری میبینید لطفاً این صفحه را به‌کمک کلیدهای Ctrl+F5 "
1596
- "(در PC) یا Command+R (در مکینتاش) مجدداً بارگذاری کنید"
1597
-
1598
- #: views/sfsi_options_view.php:64
1599
- msgid "Welcome to the Ultimate Social Media Icons PLUS plugin!"
1600
- msgstr "به افزونه Ultimate Social Media Icons PLUS خوش آمدید!"
1601
-
1602
- #: views/sfsi_options_view.php:67
1603
- msgid ""
1604
- "This plugin is 100% FREE and will fulfill all your subscription/sharing/"
1605
- "liking needs!"
1606
- msgstr ""
1607
- "این افزونه ۱۰۰٪ رایگان است و تمامی نیازهای شما را در جذب مشترک، به "
1608
- "استراک‌گذاری مطالب، و گرفتن لایک برآورده میکند."
1609
-
1610
- #: views/sfsi_options_view.php:70
1611
- msgid ""
1612
- "Simply answer the questions below (at least the first 3) by clicking on them "
1613
- "- that`s it!"
1614
- msgstr ""
1615
- "به راحتی با کلیک کردن به سوالات زیر پاسخ دهید (دست‌کم ۳ تای اولی) - فقط همین!"
1616
-
1617
- #: views/sfsi_options_view.php:73
1618
- msgid ""
1619
- "If you have questions, or something doesn`t work as it should, please read "
1620
- "the FAQ:"
1621
- msgstr ""
1622
- "اگر سوالی دارید یا چیزی آنطور که باید، کار نمیکند، لطفاً صفحه سوالات متداول "
1623
- "را ببینید:"
1624
-
1625
- #: views/sfsi_options_view.php:84
1626
- msgid "Which icons do you want to show on your site?"
1627
- msgstr "میخواهید کدام آیکن در سایت‌تان نمایش داده شود؟"
1628
-
1629
- #: views/sfsi_options_view.php:92
1630
- msgid "What do you want the icons to do?"
1631
- msgstr "میخواهید آیکن‌ها برایتان چه‌کار کنند؟"
1632
-
1633
- #: views/sfsi_options_view.php:99
1634
- msgid "Where shall they be displayed?"
1635
- msgstr "کجا باید نمایش داده شوند؟"
1636
-
1637
- #: views/sfsi_options_view.php:105
1638
- msgid "Optional"
1639
- msgstr "اختیاری"
1640
-
1641
- #: views/sfsi_options_view.php:110
1642
- msgid "What design and animation do you want to give your icons?"
1643
- msgstr "چه طرحی و پویانمایی‌ای میخواهید به آیکن‌هایتان بدهید؟"
1644
-
1645
- #: views/sfsi_options_view.php:117
1646
- msgid "Do you want to display \"counts\" next to your main icons?"
1647
- msgstr "آیا میخواهید \"تعداد\" در کنار آیکن‌های اصلی‌تان نمایش داده شود؟"
1648
-
1649
- #: views/sfsi_options_view.php:124
1650
- msgid "Any other wishes for your main icons?"
1651
- msgstr "خواسته دیگری از آیکن‌های اصلی‌تان دارید؟"
1652
-
1653
- #: views/sfsi_options_view.php:136
1654
- msgid "Do you want to display a pop-up, asking people to subscribe?"
1655
- msgstr "آیا میخواهید یک پاپ‌آپ جهت مشترک‌شدن به کاربران نمایش داده شود؟"
1656
-
1657
- #: views/sfsi_options_view.php:143
1658
- msgid "Do you want to show a subscription form (increases sign ups)?"
1659
- msgstr "آیا میخواهید یک فرم اشتراک نمایش داده شود (ثبت‌نام‌ها را افزایش میدهد)؟"
1660
-
1661
- #: views/sfsi_options_view.php:159
1662
- msgid ""
1663
- "This plugin is 100% free. Please do us a BIG favor and give us a 5 star "
1664
- "rating"
1665
- msgstr ""
1666
- "این افزونه ۱۰۰٪ رایگان میباشد. لطف بزرگی بکنید و امتیاز ۵ ستاره به ما بدهید"
1667
-
1668
- #: views/sfsi_options_view.php:161
1669
- msgid "here"
1670
- msgstr "اینجا"
1671
-
1672
- #: views/sfsi_options_view.php:163
1673
- msgid ""
1674
- "If you`re not happy, please get in touch with us at support@ultimatelysocial."
1675
- "com, so that we can sort it out.Thank you!"
1676
- msgstr ""
1677
- "اگر رضایت ندارید، با ما از طریق support@ultimatelysocial.com در تماس باشید، "
1678
- "که بتونیم درستش کنیم. ممنون از شما!"
1679
-
1680
- #: views/sfsi_options_view.php:166
1681
- msgid "Need top-notch Wordpress development work at a competitive price?"
1682
- msgstr "به کار توسعه وردپرسی درجه یک با قیمت رقابتی نیاز دارید؟"
1683
-
1684
- #: views/sfsi_options_view.php:168
1685
- msgid "Visit us on ultimatelysocial.com"
1686
- msgstr "از ما در ultimatelysocial.com دیدن کنید"
1687
-
1688
- #: views/sfsi_pop_content.php:31
1689
- msgid "Steps:"
1690
- msgstr "مراحل:"
1691
-
1692
- #: views/sfsi_pop_content.php:35 views/sfsi_pop_content.php:347
1693
- msgid "Click on << Upload >> below"
1694
- msgstr "روی «آپلود» در پایین کلیک کنید"
1695
-
1696
- #: views/sfsi_pop_content.php:38 views/sfsi_pop_content.php:350
1697
- msgid "Upload the icon into the media gallery"
1698
- msgstr "آیکن را به درون رسانه آپلود کنید"
1699
-
1700
- #: views/sfsi_pop_content.php:41
1701
- msgid "Click on << Insert into post >> "
1702
- msgstr "روی «درج در نوشته» کلیک کنید"
1703
-
1704
- #: views/sfsi_pop_content.php:90
1705
- msgid "Move over the Facebook-icon…"
1706
- msgstr "منتقل کن به بالای آیکن فیس‌بوک"
1707
-
1708
- #: views/sfsi_pop_content.php:116 views/sfsi_pop_content.php:271
1709
- msgid "Move over the “+ icon” to see the sharing options"
1710
- msgstr "منتقل کن به بالای آیکن \"+\" تا تنظیمات اشتراک‌گذاری را ببینید"
1711
-
1712
- #: views/sfsi_pop_content.php:145
1713
- msgid "Move over the Twiiter-icon…"
1714
- msgstr "منتقل کن به بالای آیکن توییتر"
1715
-
1716
- #: views/sfsi_pop_content.php:198
1717
- msgid "Move over the YouTube-icon…"
1718
- msgstr "منتقل کن به بالای آیکن یوتیوب"
1719
-
1720
- #: views/sfsi_pop_content.php:221
1721
- msgid "Move over the Pinterest-icon…"
1722
- msgstr "منتقل کن به بالای آیکن پین‌ترست"
1723
-
1724
- #: views/sfsi_pop_content.php:249
1725
- msgid "Move over the LinkedIn-icon…"
1726
- msgstr "منتقل کن به بالای آیکن لینکدین"
1727
-
1728
- #: views/sfsi_pop_content.php:285
1729
- msgid ""
1730
- "Note: Also if you already offer a newsletter it makes sense to offer this "
1731
- "option too, because it will get you more readers as explained"
1732
- msgstr ""
1733
- "توجه: همچنین اگر هم‌اکنون یک روزنامه ارائه داده‌اید، بهتر است این امکان را هم "
1734
- "ارائه کنید، بدلیل اینکه همانطور که توضیح داده شد تعداد خواننده‌های بیشتری "
1735
- "بدست میاورید"
1736
-
1737
- #: views/sfsi_pop_content.php:292
1738
- msgid "Ok, keep it active for the time being, I want to see how it works"
1739
- msgstr "بسیار خب، به‌طور موقت فعالش کن، تا ببینم چگونه کار میکند"
1740
-
1741
- #: views/sfsi_pop_content.php:296
1742
- msgid "Deactivate it"
1743
- msgstr "غیرفعالش کن"
1744
-
1745
- #: views/sfsi_pop_content.php:304
1746
- msgid ""
1747
- "Ok, fine, however for using this plugin for FREE, please support us by "
1748
- "activating a link back to our site:"
1749
- msgstr ""
1750
- "بسیار خب، خوب است، به هرحال چون از این افزونه بصورت رایگان استفاده میکنید، "
1751
- "لطفاْ ما را با قرار دادن لینکمان در سایتتان حمایت کنید:"
1752
-
1753
- #: views/sfsi_pop_content.php:309
1754
- msgid "Ok, activate link"
1755
- msgstr "باشه، لینک را فعال کن"
1756
-
1757
- #: views/sfsi_pop_content.php:313
1758
- msgid "Don’t activate link"
1759
- msgstr "لینک را فعال نکن"
1760
-
1761
- #: views/sfsi_pop_content.php:321
1762
- msgid ""
1763
- "You’re a toughie. Last try: As a minimum, could you please review this "
1764
- "plugin (with 5 stars)? It only takes a minute. Thank you!"
1765
- msgstr ""
1766
- "شما خیلی خشنید! برای آخرین بار: دست کم، ممکن است لطفاً افزونه ما را ۵ ستاره "
1767
- "کنید؟ فقط یک دقیقه زمان میبرد. ممنون از شما!"
1768
-
1769
- #: views/sfsi_pop_content.php:325
1770
- msgid "Ok, Review it"
1771
- msgstr "باشه، بررسی کن"
1772
-
1773
- #: views/sfsi_pop_content.php:329
1774
- msgid "Don’t review and exit"
1775
- msgstr "بررسی نکن و خارج شو"
1776
-
1777
- #: views/sfsi_pop_content.php:341
1778
- msgid "Upload custom icons"
1779
- msgstr "آپلود آیکن‌های سفارشی"
1780
-
1781
- #: views/sfsi_pop_content.php:344
1782
- msgid ""
1783
- "Here you can upload custom icons which perform the same actions as the "
1784
- "standard icons."
1785
- msgstr ""
1786
- "اینجا میتوانید آیکن‌های سفارشی که مانند آیکن‌های استاندارد کار خواهند کرد را "
1787
- "آپلود نمایید."
1788
-
1789
- #: views/sfsi_pop_content.php:353
1790
- msgid "Click on << Insert into post >>"
1791
- msgstr "روی «درج در نوشته» کلیک کنید"
1792
-
1793
- #: views/sfsi_pop_content.php:583
1794
- msgid "I'm done!"
1795
- msgstr "انجام دادم!"
1796
-
1797
- #. Plugin Name of the plugin/theme
1798
- msgid "Ultimate Social Media PLUS"
1799
- msgstr "Ultimate Social Media PLUS"
1800
-
1801
- #. #-#-#-#-# plugin.pot (Ultimate Social Media PLUS 2.3.7) #-#-#-#-#
1802
- #. Plugin URI of the plugin/theme
1803
- #. #-#-#-#-# plugin.pot (Ultimate Social Media PLUS 2.3.7) #-#-#-#-#
1804
- #. Author URI of the plugin/theme
1805
- msgid "http://ultimatelysocial.com"
1806
- msgstr "http://ultimatelysocial.com"
1807
-
1808
- #. Description of the plugin/theme
1809
- msgid ""
1810
- "The best social media plugin on the market. And 100% FREE. Allows you to add "
1811
- "social media & share icons to your blog (esp. Facebook, Twitter, Email, RSS, "
1812
- "Pinterest, Instagram, LinkedIn, Share-button). It offers a wide "
1813
- "range of design options and other features."
1814
- msgstr ""
1815
- "بهترین افزونه شبکه اجتماعی در فروشگاه. و ۱۰۰٪ رایگان. به شما امکان اضافه "
1816
- "نمودن آیکن‌های شبکه‌های اجتماعی و اشتراک‌گذاری را میدهد (بخصوص فیس‌بوک، توییتر، "
1817
- "ایمیل، فید RSS، پین‌ترست، اینستاگرام، گوگل‌پلاس، لیندکدین، و کلید "
1818
- "اشتراک‌گذاری). این افزونه گستره وسیعی از اختیارات طراحی و سایر ویژگی‌ها را در "
1819
- "اختیارتان میگذارد."
1820
-
1821
- #. Author of the plugin/theme
1822
- msgid "UltimatelySocial"
1823
- msgstr "UltimatelySocial"
1
+ # Copyright (C) 2016 Ultimate Social Media PLUS
2
+ # This file is distributed under the same license as the Ultimate Social Media PLUS package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Ultimate Social Media PLUS 2.3.7\n"
6
+ "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/ultimate-social-"
7
+ "media-plus\n"
8
+ "POT-Creation-Date: 2016-03-31 14:44:55+00:00\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "PO-Revision-Date: 2016-04-05 18:35+0530\n"
13
+ "Last-Translator: \n"
14
+ "Language-Team: Farshad Hosseinzadeh <f.hosseinzadeh1985@gmail.com>\n"
15
+ "X-Generator: Poedit 1.5.7\n"
16
+ "Language: Persian\n"
17
+
18
+ #: css/images/index.php:2 css/index.php:2
19
+ #: css/jquery-ui-1.10.4/images/index.php:2 css/jquery-ui-1.10.4/index.php:2
20
+ #: fonts/index.php:2 images/icons_theme/badge/index.php:2
21
+ #: images/icons_theme/cute/index.php:2 images/icons_theme/index.php:2
22
+ #: images/icons_theme/official/index.php:2
23
+ #: images/icons_theme/stitched/index.php:2 images/index.php:2 index.php:2
24
+ #: js/index.php:2 libs/controllers/index.php:2 libs/index.php:2
25
+ #: views/index.php:2
26
+ msgid "Access Denied"
27
+ msgstr "غیر قابل دسترس"
28
+
29
+ #: libs/sfsi_Init_JqueryCss.php:46 views/sfsi_option_view1.php:74
30
+ #: views/sfsi_option_view1.php:107 views/sfsi_option_view1.php:129
31
+ #: views/sfsi_option_view1.php:152
32
+ msgid "Read more"
33
+ msgstr "بیشتر بخوانید"
34
+
35
+ #: libs/sfsi_Init_JqueryCss.php:47 views/sfsi_option_view1.php:370
36
+ #: views/sfsi_option_view2.php:608 views/sfsi_option_view3.php:364
37
+ #: views/sfsi_option_view4.php:738 views/sfsi_option_view5.php:957
38
+ #: views/sfsi_option_view6.php:112 views/sfsi_option_view7.php:373
39
+ #: views/sfsi_option_view8.php:519 views/sfsi_option_view9.php:574
40
+ msgid "Save"
41
+ msgstr "ذخیره"
42
+
43
+ #: libs/sfsi_Init_JqueryCss.php:48
44
+ msgid "Saving"
45
+ msgstr "در حال ذخیره‌سازی"
46
+
47
+ #: libs/sfsi_Init_JqueryCss.php:49
48
+ msgid "Saved"
49
+ msgstr "ذخیره شد"
50
+
51
+ #: libs/sfsi_Init_JqueryCss.php:52
52
+ msgid "Collapse"
53
+ msgstr "باز کردن"
54
+
55
+ #: libs/sfsi_Init_JqueryCss.php:53 views/sfsi_options_view.php:153
56
+ msgid "Save All Settings"
57
+ msgstr "ذخیره تمام تنظیمات"
58
+
59
+ #: libs/sfsi_install_uninstall.php:430
60
+ msgid ""
61
+ "Error: It seems that CURL is disabled on your server. Please contact your "
62
+ "server administrator to install / enable CURL."
63
+ msgstr ""
64
+ "خطا: به‌نظر میرسد CURL در سرور شما فعال نمیباشد. لطفاً با مدیر سرور خود تماس "
65
+ "بگیرید، یا خودتان CURL را نصب، و یا فعال کنید."
66
+
67
+ #: libs/sfsi_install_uninstall.php:541
68
+ msgid ""
69
+ "Error : Please fix your theme to make plugins work correctly. Go to the "
70
+ "Theme Editor and insert the following string:"
71
+ msgstr ""
72
+ "خطا: لطفاً پوسته خود را درست کنید تا به افزونه‌ها امکان کارکرد درست را بدهد. "
73
+ "به ویرایشگر پوسته رفته و متن زیر را در آن قرار دهید:"
74
+
75
+ #: libs/sfsi_install_uninstall.php:541
76
+ msgid "Please enter it just before the following line of your header.php file:"
77
+ msgstr "لطفاً آن را قبل از آخرین خط فایل header.php (سربرگ) قرار دهید:"
78
+
79
+ #: libs/sfsi_install_uninstall.php:541 libs/sfsi_install_uninstall.php:565
80
+ msgid "Go to your theme editor: "
81
+ msgstr "به ویرایشگر پوسته خود بروید:"
82
+
83
+ #: libs/sfsi_install_uninstall.php:541 libs/sfsi_install_uninstall.php:565
84
+ msgid "click here"
85
+ msgstr "اینجا را کلیک کنید"
86
+
87
+ #: libs/sfsi_install_uninstall.php:565
88
+ msgid ""
89
+ "Error: Please fix your theme to make plugins work correctly. Go to the Theme "
90
+ "Editor and insert the following string as the first line of your theme's "
91
+ "footer.php file: "
92
+ msgstr ""
93
+ "خطا: لطفاً پوسته خود را درست کنید تا به افزونه‌ها امکان کارکرد درست را بدهد. "
94
+ "به ویرایشگر پوسته رفته و متن زیر را در اولین خط از فایل footer.php (پابرگ) "
95
+ "پوسته خود قرار دهید:"
96
+
97
+ #: libs/sfsi_install_uninstall.php:576
98
+ msgid ""
99
+ "Thank you for installing the Ultimate Social Media PLUS plugin. Please go to "
100
+ "the plugin's settings page to configure it: "
101
+ msgstr ""
102
+ "از اینکه افزونه Ultimate Social Media PLUS را نصب نمودید متشکریم. لطفاً برای "
103
+ "پیکربندی آن به صفحه تنظیمات افزونه بروید:"
104
+
105
+ #: libs/sfsi_install_uninstall.php:576 libs/sfsi_widget.php:106
106
+ #: ultimate_social_media_icons.php:579 views/sfsi_option_view1.php:265
107
+ #: views/sfsi_option_view8.php:127 views/sfsi_option_view9.php:134
108
+ #: views/sfsi_options_view.php:75
109
+ msgid "Click here"
110
+ msgstr "اینجا را کلیک کنید"
111
+
112
+ #: libs/sfsi_install_uninstall.php:585
113
+ msgid ""
114
+ "You`re using an old Wordpress version, which may cause several of your "
115
+ "plugins to not work correctly. Please upgrade"
116
+ msgstr ""
117
+ "شما از یک نسخه قدیمی وردپرس استفاده میکنید که ممکن است به افزونه امکان "
118
+ "کارکرد درست را ندهد. لطفاً به‌روزرسانی کنید."
119
+
120
+ #: libs/sfsi_install_uninstall.php:602
121
+ msgid ""
122
+ "We noticed you've been using the Ultimate Social Media PLUS Plugin for more "
123
+ "than 30 days. If you're happy with it, could you please do us a BIG favor "
124
+ "and give it a 5-star rating on Wordpress?"
125
+ msgstr ""
126
+ "ما متوجه شدیم که شما بیش از ۳۰ روز است که از افزونه Ultimate Social Media "
127
+ "PLUS استفاده میکنید. اگر شما با این افزونه خوشحالید، آیا ممکن است لطف بزرگی "
128
+ "کرده و افزونه ما را در وردپرس ۵ ستاره کنید؟"
129
+
130
+ #: libs/sfsi_install_uninstall.php:604
131
+ msgid "Ok, you deserved it"
132
+ msgstr "بله، شما شایستگی این را دارید"
133
+
134
+ #: libs/sfsi_install_uninstall.php:605
135
+ msgid "I already did"
136
+ msgstr "در حال حاضر این کار را انجام داده‌ام"
137
+
138
+ #: libs/sfsi_install_uninstall.php:606
139
+ msgid "No, not good enough"
140
+ msgstr "نه، به اندازه کافی خوب نیست"
141
+
142
+ #: libs/sfsi_plus_subscribe_widget.php:200 libs/sfsi_widget.php:99
143
+ msgid "Title"
144
+ msgstr "عنوان"
145
+
146
+ #: libs/sfsi_widget.php:105
147
+ msgid "Please go to the plugin page to set your preferences:"
148
+ msgstr "برای اعمال تنظیمات خود لطفاً به برگه افزونه بروید:"
149
+
150
+ #: ultimate_social_media_icons.php:76
151
+ msgid "Kindly go to setting page and check the option \"Place them manually\""
152
+ msgstr "لطف کنید به برگه تنظیمات رفته و کادر \"دستی قرار بده\" را علامت بزنید"
153
+
154
+ #: ultimate_social_media_icons.php:577
155
+ msgid ""
156
+ "There seems to be an error on your website which prevents the plugin to work "
157
+ "properly. Please check the FAQ:"
158
+ msgstr ""
159
+ "به‌نظر میرسد مشکلی در سایت‌تان وجود دارد که مانع از کارکرد درست افزونه میشود. "
160
+ "لطفاً سوالات متداول را ببینید:"
161
+
162
+ #: ultimate_social_media_icons.php:582
163
+ msgid "Error"
164
+ msgstr "خطا"
165
+
166
+ #: ultimate_social_media_icons.php:588 ultimate_social_media_icons.php:613
167
+ msgid "Dismiss"
168
+ msgstr "صرفنظر کن"
169
+
170
+ #: ultimate_social_media_icons.php:602
171
+ msgid "New feature in the Ultimate Social Media PLUS plugin: "
172
+ msgstr "ویژگی جدید در افزونه Ultimate Social Media PLUS:"
173
+
174
+ #: ultimate_social_media_icons.php:605
175
+ msgid ""
176
+ "You can now add a subscription form to increase sign-ups (under question 8)."
177
+ msgstr ""
178
+ "اکنون میتوانید یک فرم اشتراک اضافه کرده تا تعداد ثبت‌نام ها را افزایش دهید "
179
+ "(مربوط به سوال ۸)."
180
+
181
+ #: ultimate_social_media_icons.php:608
182
+ msgid "Check it out"
183
+ msgstr "روی آن کلیک کنید"
184
+
185
+ #: views/sfsi_aboutus.php:2
186
+ msgid "Please visit us at"
187
+ msgstr "لطفاْ از ما دیدن کنید در"
188
+
189
+ #: views/sfsi_aboutus.php:4
190
+ msgid "or write to us at"
191
+ msgstr "یا برای ما بنویسید در"
192
+
193
+ #: views/sfsi_option_view1.php:47
194
+ msgid ""
195
+ "In general, the more icons you offer the better because people have "
196
+ "different preferences, and more options means that there’s something for "
197
+ "everybody, increasing the chances that you get followed and/or shared."
198
+ msgstr ""
199
+ "بطور معمول، هرچه آیکن‌های بیشتری ارایه دهید بهتر است. زیرا مردم صلیقه‌های "
200
+ "متفاوتی دارند، و اختیارات بیشتر به این معنی‌ست که مطابق نیاز هر شخصی چیزی "
201
+ "آماده دارید. و این کار شانس دنبال شدن یا به اشتراک گذاشته شدن را برای شما "
202
+ "زیادتر میکند."
203
+
204
+ #: views/sfsi_option_view1.php:62 views/sfsi_option_view1.php:90
205
+ msgid "Mandatory"
206
+ msgstr "اجباری"
207
+
208
+ #: views/sfsi_option_view1.php:65
209
+ msgid "RSS is still popular, esp. among the tech-savvy crowd."
210
+ msgstr "با وجود این دوره و زمانه هوشمند و پر از تغییرات، RSS همچنان محبوب است!"
211
+
212
+ #: views/sfsi_option_view1.php:68
213
+ msgid ""
214
+ "RSS stands for Really Simply Syndication and is an easy way for people to "
215
+ "read your content. "
216
+ msgstr ""
217
+ "RSS مخفف عبارت Really Simply Syndication ، و یک راه آسان برای مردم است که "
218
+ "مطالب جدید شما را بخوانند."
219
+
220
+ #: views/sfsi_option_view1.php:70
221
+ msgid "Learn more about RSS"
222
+ msgstr "در مورد RSS (خبرخوان) بیشتر بدانید"
223
+
224
+ #: views/sfsi_option_view1.php:93
225
+ msgid "Email is the most effective tool to build up a followership."
226
+ msgstr "ایمیل یک ابزار بسیار تاثیرگذار در پیداکردن مخاطب و دنبال‌کننده است."
227
+
228
+ #: views/sfsi_option_view1.php:96
229
+ msgid "Remove credit link"
230
+ msgstr "لینک اعتبار را حذف کن"
231
+
232
+ #: views/sfsi_option_view1.php:100
233
+ msgid ""
234
+ "Everybody uses email – that’s why it’s much more effective than social media "
235
+ "to make people follow you"
236
+ msgstr ""
237
+ "هرکسی از ایمیل استفاده میکند - بخاطر همین ایمیل بیشتر از شبکه‌های اجتماعی در "
238
+ "جذب مخاطب و دنبال‌کننده تاثیرگذار است"
239
+
240
+ #: views/sfsi_option_view1.php:102 views/sfsi_pop_content.php:287
241
+ msgid "learn more"
242
+ msgstr "بیشتر بدانید"
243
+
244
+ #: views/sfsi_option_view1.php:104
245
+ msgid ""
246
+ "Not offering an email subscription option means losing out on future traffic "
247
+ "to your site."
248
+ msgstr ""
249
+ "ارائه ندادن امکان اشتراک ایمیلی به این معنیست که بازدید سایتتان را در آینده "
250
+ "از دست میدهید."
251
+
252
+ #: views/sfsi_option_view1.php:122 views/sfsi_option_view1.php:144
253
+ #: views/sfsi_option_view1.php:167
254
+ msgid "Strongly recommended:"
255
+ msgstr "شدیداً پیشنهاد میشود:"
256
+
257
+ #: views/sfsi_option_view1.php:123
258
+ msgid "Facebook is crucial, esp. for sharing."
259
+ msgstr "فیس‌بوک عالی‌ست، مخصوصاُ برای به اشتراک گذاری."
260
+
261
+ #: views/sfsi_option_view1.php:126
262
+ msgid ""
263
+ "Facebook is the giant in the social media world, and even if you don’t have "
264
+ "a Facebook account yourself you should display this icon, so that Facebook "
265
+ "users can share your site on Facebook."
266
+ msgstr ""
267
+ "فیس‌بوک غول دنیای شبکه‌های اجتماعی‌ست، و حتا اگر شما آکونت فیس‌بوک برای خود "
268
+ "ندارید هم باید این آیکن را نمایش دهید، چراکه کاربران فیس‌بوک میتوانند سایت "
269
+ "شما را در فیس‌بوک به اشتراک بگذارند."
270
+
271
+ #: views/sfsi_option_view1.php:145
272
+ msgid "Can have a strong promotional effect."
273
+ msgstr "میتواند تاثیر تبلیغاتی قوی‌ای داشته باشد."
274
+
275
+ #: views/sfsi_option_view1.php:148
276
+ msgid ""
277
+ "If you have a Twitter-account then adding this icon is a no-brainer. "
278
+ "However, similar as with facebook, even if you don’t have one you should "
279
+ "still show this icon so that Twitter-users can share your site."
280
+ msgstr ""
281
+ "اگر شما یک آکونت توییتر دارید اضافه کردن این آیکن احتیاج به فکر کردن ندارد. "
282
+ "به هر حال اگر هم ندارید، مانند فیس‌بوک، شما باید این آیکن را به نمایش "
283
+ "بگذارید. چراکه کاربران توییتر میتوانند سایت شما را به اشتراک بگذارند."
284
+
285
+ #: views/sfsi_option_view1.php:168
286
+ msgid "Increasingly important and beneficial for SEO."
287
+ msgstr "بطور فزاینده مهم و سودمند برای سئو."
288
+
289
+ #: views/sfsi_option_view1.php:185 views/sfsi_option_view1.php:202
290
+ #: views/sfsi_option_view1.php:219 views/sfsi_option_view1.php:234
291
+ #: views/sfsi_option_view1.php:251 views/sfsi_option_view1.php:283
292
+ #: views/sfsi_option_view1.php:328 views/sfsi_option_view1.php:353
293
+ msgid "It depends:"
294
+ msgstr "بستگی دارد به:"
295
+
296
+ #: views/sfsi_option_view1.php:186
297
+ msgid ""
298
+ "Show this icon if you have a youtube account (and you should set up one if "
299
+ "you have video content – that can increase your traffic significantly)."
300
+ msgstr ""
301
+ "اگر یک آکونت یوتیوب دارید این آیکن را نمایش دهید (و اگر در سایتتان محتوای "
302
+ "ویدئویی دارید بهتر است یک آکونت یوتیوب بسازید، زیرا بازدید سایتتان را به شکل "
303
+ "قابل ملاحظه‌ای بالا میبرد)."
304
+
305
+ #: views/sfsi_option_view1.php:203
306
+ msgid ""
307
+ "No.1 network for business purposes. Use this icon if you’re a LinkedInner."
308
+ msgstr ""
309
+ "شبکه اجتماعی شماره یک برای مقاصد حرفه‌ای و کاری. اگر در لینکدین هستید از این "
310
+ "آیکن استفاده کنید."
311
+
312
+ #: views/sfsi_option_view1.php:220
313
+ msgid ""
314
+ "Show this icon if you have a Pinterest account (and you should set up one if "
315
+ "you have publish new pictures regularly – that can increase your traffic "
316
+ "significantly)."
317
+ msgstr ""
318
+ "اگر یک آکونت پین‌ترست دارید این آیکن را نمایش دهید (و اگر در سایتتان عکس‌های "
319
+ "جدید میگذارید بهتر است یک آکونت بسازید، زیرا بازدید سایتتان را به شکل قابل "
320
+ "ملاحظه‌ای بالا میبرد)."
321
+
322
+ #: views/sfsi_option_view1.php:235
323
+ msgid "Show this icon if you have a Instagram account."
324
+ msgstr "اگر یک آکونت اینستاگرام دارید این آیکن را نمایش دهید."
325
+
326
+ #: views/sfsi_option_view1.php:252
327
+ msgid ""
328
+ "Third-party service AddThis allows your visitors to share via many other "
329
+ "social networks, however it may also slow down your site a bit."
330
+ msgstr ""
331
+ "خدمات شخص ثالث AddThis به بازدیدکنندگان امکان به اشتراک گذاری از تعداد "
332
+ "بسیاری از دیگر شبکه‌های اجتماعی را میدهد. ولی با این حال کمی باعث کند شدن "
333
+ "سایتتان میشود."
334
+
335
+ #: views/sfsi_option_view1.php:255
336
+ msgid "Everybody uses email – that’s why it’s"
337
+ msgstr "بخاطر اینکه هرکسی از ایمیل استفاده میکند"
338
+
339
+ #: views/sfsi_option_view1.php:258
340
+ msgid "much more effective than social media"
341
+ msgstr "بسیار موثرتر از شبکه اجتماعی"
342
+
343
+ #: views/sfsi_option_view1.php:261
344
+ msgid ""
345
+ "to make people follow you. Not offering an email subscription option means "
346
+ "losing out on future traffic to your site."
347
+ msgstr ""
348
+ "برای جذب دنبال‌کننده و مخاطب ارائه ندادن امکان اشتراک ایمیلی به این معنیست که "
349
+ "بازدید سایتتان را در آینده از دست میدهید."
350
+
351
+ #: views/sfsi_option_view1.php:263
352
+ msgid "Check out their reviews:"
353
+ msgstr "بررسی‌هایشان را ببینید:"
354
+
355
+ #: views/sfsi_option_view1.php:284
356
+ msgid "Show this icon if you have a Houzz account."
357
+ msgstr "اگر یک آکونت هاز دارید این آیکن را نمایش دهید. "
358
+
359
+ #: views/sfsi_option_view1.php:286
360
+ msgid ""
361
+ "Houzz is the No.1 site & community in the world of architecture and interior "
362
+ "design."
363
+ msgstr "هاز سایت و انجمن شماره ۱ معماری و طراحی داخلی‌ست."
364
+
365
+ #: views/sfsi_option_view1.php:288
366
+ msgid "Visit Houzz"
367
+ msgstr "از هاز دیدن کنید"
368
+
369
+ #: views/sfsi_option_view1.php:323 views/sfsi_option_view1.php:347
370
+ #: views/sfsi_option_view2.php:579 views/sfsi_option_view5.php:938
371
+ msgid "Custom"
372
+ msgstr "سفارشی"
373
+
374
+ #: views/sfsi_option_view1.php:329 views/sfsi_option_view1.php:354
375
+ msgid ""
376
+ "Upload a custom icon if you have other accounts/websites you want to link to."
377
+ msgstr ""
378
+ "اگر شما آکونت یا سایت دیگری دارید که میخواهید به آن لینک بدهید، آیکن سفارشی "
379
+ "آن را آپلود کنید."
380
+
381
+ #: views/sfsi_option_view1.php:376 views/sfsi_option_view2.php:613
382
+ #: views/sfsi_option_view3.php:369 views/sfsi_option_view4.php:743
383
+ #: views/sfsi_option_view5.php:962 views/sfsi_option_view6.php:117
384
+ #: views/sfsi_option_view7.php:378 views/sfsi_option_view8.php:525
385
+ #: views/sfsi_option_view9.php:580
386
+ msgid "Collapse area"
387
+ msgstr "باز کردن"
388
+
389
+ #: views/sfsi_option_view2.php:136
390
+ msgid "When clicked on, users can subscribe via RSS"
391
+ msgstr "وقتی کاربر کلیک کند مشترک فید RSS میشود"
392
+
393
+ #: views/sfsi_option_view2.php:144
394
+ msgid "For most blogs it’s http://blogname.com/feed"
395
+ msgstr "برای اغلب وبلاگ‌ها بصورت http://blogname.com/feed است"
396
+
397
+ #: views/sfsi_option_view2.php:162
398
+ msgid ""
399
+ "Sends your new posts automatically to subscribers. It`s FREE and you get "
400
+ "full access to your subscriber`s emails and interesting statistics:"
401
+ msgstr ""
402
+ "نوشته‌های جدید شما را بصورت خودکار برای مشترکین ارسال میکند. رایگان است و "
403
+ "دسترسی کامل شما را به ایمیل و آمار علایق کاربران میسر میکند."
404
+
405
+ #: views/sfsi_option_view2.php:164
406
+ msgid "Claim your feed to get full access."
407
+ msgstr "درخواست فید خود را کامل نمایید تا دسترسی کامل داشته باشید."
408
+
409
+ #: views/sfsi_option_view2.php:166
410
+ msgid "It also makes sense if you already offer an email newsletter:"
411
+ msgstr "همچنین اگر هم‌اکنون روزنامه ایمیلی را ارائه کرده‌اید معنی خواهد داشت:"
412
+
413
+ #: views/sfsi_option_view2.php:168
414
+ msgid "Learn more."
415
+ msgstr "بیشتر بدانید."
416
+
417
+ #: views/sfsi_option_view2.php:171
418
+ msgid "Please pick which icon type you want to use:"
419
+ msgstr "لطفاً نوع آیکونی که میخواهید استفاده کنید را انتخاب نمایید:"
420
+
421
+ #: views/sfsi_option_view2.php:179
422
+ msgid "Email icon"
423
+ msgstr "آیکون ایمیل"
424
+
425
+ #: views/sfsi_option_view2.php:187
426
+ msgid "Follow icon"
427
+ msgstr "آیکون دنبال‌کردن"
428
+
429
+ #: views/sfsi_option_view2.php:189
430
+ msgid "increases sign-ups"
431
+ msgstr "ثبت‌نام ها را افزایش میدهد"
432
+
433
+ #: views/sfsi_option_view2.php:198
434
+ msgid "SpecificFeeds icon"
435
+ msgstr "آیکن SpecificFeeds"
436
+
437
+ #: views/sfsi_option_view2.php:200
438
+ msgid "provider of the service"
439
+ msgstr "ارائه‌کننده خدمات:"
440
+
441
+ #: views/sfsi_option_view2.php:216
442
+ msgid ""
443
+ "The facebook icon can perform several actions. Pick below which ones it "
444
+ "should perform. If you select several options, then users can select what "
445
+ "they want to do"
446
+ msgstr ""
447
+ "آیکن فیس‌بوک میتواند چندین کار انجام دهد. از پایین کاری را که میخواهید "
448
+ "برگزینید. اگر چند عمل را با هم انتخاب کنید، کاربران خودشان انتخاب میکنند که "
449
+ "کدام را میخواهند."
450
+
451
+ #: views/sfsi_option_view2.php:218 views/sfsi_option_view2.php:263
452
+ #: views/sfsi_option_view2.php:304 views/sfsi_option_view2.php:346
453
+ #: views/sfsi_option_view2.php:425 views/sfsi_option_view2.php:478
454
+ #: views/sfsi_option_view2.php:539
455
+ msgid "see an example"
456
+ msgstr "یک نمونه ببینید"
457
+
458
+ #: views/sfsi_option_view2.php:222
459
+ msgid "The facebook icon should allow users to..."
460
+ msgstr "آیکن فیس‌بوک باید به کاربران این امکان را بدهد تا..."
461
+
462
+ #: views/sfsi_option_view2.php:229
463
+ msgid "Visit my Facebook page at:"
464
+ msgstr "صفحه فیس‌بوک مرا ببینید:"
465
+
466
+ #: views/sfsi_option_view2.php:237
467
+ msgid "Like my blog on Facebook (+1)"
468
+ msgstr "وبلاگ مرا در فیس‌بوک لایک کنید (۱+)"
469
+
470
+ #: views/sfsi_option_view2.php:245
471
+ msgid "Share my blog with friends (on Facebook)"
472
+ msgstr "وبلاگ مرا با دوستان خود (در فیس‌بوک) به اشتراک بگذارید"
473
+
474
+ #: views/sfsi_option_view2.php:260
475
+ msgid ""
476
+ "The Twitter icon can perform several actions. Pick below which ones it "
477
+ "should perform. If you select several options, then users can select what "
478
+ "they want to do"
479
+ msgstr ""
480
+ "آیکن توییتر میتواند چند کار انجام دهد. از پایین کاری را که میخواهید "
481
+ "برگزینید. اگر چند عمل را با هم انتخاب کنید، کاربران خودشان انتخاب میکنند که "
482
+ "کدام را میخواهند."
483
+
484
+ #: views/sfsi_option_view2.php:267
485
+ msgid "The Twitter icon should allow users to..."
486
+ msgstr "آیکن توییتر به کاربران امکان میدهد که..."
487
+
488
+ #: views/sfsi_option_view2.php:272
489
+ msgid "Visit me on Twitter:"
490
+ msgstr "مرا در توییتر ببینید:"
491
+
492
+ #: views/sfsi_option_view2.php:281
493
+ msgid "Follow me on Twitter:"
494
+ msgstr "مرا در توییتر دنبال کنید:"
495
+
496
+ #: views/sfsi_option_view2.php:289
497
+ msgid "Tweet about my page:"
498
+ msgstr "در مورد صفحه من توییت کنید:"
499
+
500
+ #: views/sfsi_option_view2.php:302
501
+ msgid ""
502
+ "should perform. If you select several options, then users can select what "
503
+ "they want to do"
504
+ msgstr ""
505
+ "آیکن گوگل‌پلاس میتواند چند کار انجام دهد. از پایین کاری را که میخواهید "
506
+ "برگزینید. اگر چند عمل را با هم انتخاب کنید، کاربران خودشان انتخاب میکنند که "
507
+ "کدام را میخواهند."
508
+
509
+ #: views/sfsi_option_view2.php:308
510
+ msgstr "آیکن گوگل‌پلاس به کاربران امکان میدهد که..."
511
+
512
+ #: views/sfsi_option_view2.php:344
513
+ msgid ""
514
+ "The Youtube icon can perform several actions. Pick below which ones it "
515
+ "should perform. If you select several options, then users can select what "
516
+ "they want to do"
517
+ msgstr ""
518
+ "آیکن یوتیوب میتواند چند کار انجام دهد. از پایین کاری را که میخواهید "
519
+ "برگزینید. اگر چند عمل را با هم انتخاب کنید، کاربران خودشان انتخاب میکنند که "
520
+ "کدام را میخواهند."
521
+
522
+ #: views/sfsi_option_view2.php:350
523
+ msgid "The youtube icon should allow users to..."
524
+ msgstr "آیکن یوتیوب به کاربران امکان میدهد که..."
525
+
526
+ #: views/sfsi_option_view2.php:354
527
+ msgid "Visit my Youtube page at:"
528
+ msgstr "صفحه یوتیوب مرا ببینید:"
529
+
530
+ #: views/sfsi_option_view2.php:360
531
+ msgid "Subscribe to me on Youtube"
532
+ msgstr "در یوتیوب من مشترک شوید"
533
+
534
+ #: views/sfsi_option_view2.php:362
535
+ msgid "(allows people to subscribe to you directly, without leaving your blog)"
536
+ msgstr "(بدون ترک وبلاگتان، به کاربران امکان دنبال‌کردن مستقیم شما را میدهد)"
537
+
538
+ #: views/sfsi_option_view2.php:382
539
+ msgid "User Name"
540
+ msgstr "نام کاربر"
541
+
542
+ #: views/sfsi_option_view2.php:387
543
+ msgid "Channel Id"
544
+ msgstr "شناسه (Id) کانال"
545
+
546
+ #: views/sfsi_option_view2.php:393
547
+ msgid "UserName:"
548
+ msgstr "نام کاربری:"
549
+
550
+ #: views/sfsi_option_view2.php:397
551
+ msgid ""
552
+ "To find your Username go to \"My channel\" in Youtube menu bar on the left & "
553
+ "Select the \"About\" tab and take your user name from URL there (e.g. "
554
+ "https://www.youtube.com/user/Tommy it is \"Tommy\")."
555
+ msgstr ""
556
+ "برای پیداکردن نام کاربری خود به گزینه \"My channel\" از سمت چپ منوی یوتیوب "
557
+ "رفته، تب \"About\" را انتخاب نمایید و نام کاربری‌تان را از آدرس URL بردارید "
558
+ "(برای نمونه اگر آدرس URL https://www.youtube.com/user/Tommy بود، \"Tommy\" "
559
+ "نام کاربری شماست)."
560
+
561
+ #: views/sfsi_option_view2.php:403
562
+ msgid "Channel Id:"
563
+ msgstr "شناسه (Id) کانال:"
564
+
565
+ #: views/sfsi_option_view2.php:408
566
+ msgid ""
567
+ "To find your Channel name go to \"My Channel\" in Youtube menu bar on the "
568
+ "left and take your channel name from there."
569
+ msgstr ""
570
+ "برای پیداکردن نام کانال خود به گزینه \"My channel\" از سمت چپ منوی یوتیوب "
571
+ "رفته، نام کانال خود را از آنجا بردارید."
572
+
573
+ #: views/sfsi_option_view2.php:423
574
+ msgid ""
575
+ "The Pinterest icon can perform several actions. Pick below which ones it "
576
+ "should perform. If you select several options, then users can select what "
577
+ "they want to do"
578
+ msgstr ""
579
+ "آیکن پین‌ترست میتواند چند کار انجام دهد. از پایین کاری را که میخواهید "
580
+ "برگزینید. اگر چند عمل را با هم انتخاب کنید، کاربران خودشان انتخاب میکنند که "
581
+ "کدام را میخواهند."
582
+
583
+ #: views/sfsi_option_view2.php:429
584
+ msgid "The Pinterest icon should allow users to..."
585
+ msgstr "آیکن پین‌ترست به کاربران امکان میدهد که..."
586
+
587
+ #: views/sfsi_option_view2.php:434
588
+ msgid "Visit my Pinterest page at:"
589
+ msgstr "صفحه پین‌ترست مرا ببینید:"
590
+
591
+ #: views/sfsi_option_view2.php:442
592
+ msgid "Pin my blog on Pinterest (+1)"
593
+ msgstr "وبلاگ مرا در پین‌ترست پین کنید (۱+)"
594
+
595
+ #: views/sfsi_option_view2.php:457
596
+ msgid "When clicked on, users will get directed to your Instagram page"
597
+ msgstr "اگر کلیک شود، کاربران مستقیماً به صفحه اینستاگرام شما منتقل میشوند"
598
+
599
+ #: views/sfsi_option_view2.php:476
600
+ msgid ""
601
+ "The LinkedIn icon can perform several actions. Pick below which ones it "
602
+ "should perform. If you select several options, then users can select what "
603
+ "they want to do"
604
+ msgstr ""
605
+ "آیکن لینکدین میتواند چند کار انجام دهد. از پایین کاری را که میخواهید "
606
+ "برگزینید. اگر چند عمل را با هم انتخاب کنید، کاربران خودشان انتخاب میکنند که "
607
+ "کدام را میخواهند."
608
+
609
+ #: views/sfsi_option_view2.php:482
610
+ msgid ""
611
+ "You find your ID in the link of your profile page, e.g. https://www.linkedin."
612
+ "com/profile/view?id=<b>8539887</b>&trk=nav_responsive_tab_profile_pic"
613
+ msgstr ""
614
+ "شناسه (ID) تان را از لینک صفحه پروفایل‌تان پیدا کنید، برای نمونه https://www."
615
+ "linkedin.com/profile/view?id=<b>8539887</"
616
+ "b>&trk=nav_responsive_tab_profile_pic"
617
+
618
+ #: views/sfsi_option_view2.php:485
619
+ msgid "The LinkedIn icon should allow users to..."
620
+ msgstr "آیکن لیندکدین به کاربران امکان میدهد که..."
621
+
622
+ #: views/sfsi_option_view2.php:490
623
+ msgid "Visit my Linkedin page at:"
624
+ msgstr "صفحه لینکدین مرا ببینید"
625
+
626
+ #: views/sfsi_option_view2.php:499
627
+ msgid "Follow me on Linkedin:"
628
+ msgstr "مرا در لینکدین دنبال کنید"
629
+
630
+ #: views/sfsi_option_view2.php:508
631
+ msgid "Share my page on LinkedIn"
632
+ msgstr "صفحه مرا در لینکدین به اشتراک بگذارید"
633
+
634
+ #: views/sfsi_option_view2.php:515
635
+ msgid "Recommend my business or product on Linkedin"
636
+ msgstr "محصول یا کسب و کار مرا در لینکدین پیشنهاد بده"
637
+
638
+ #: views/sfsi_option_view2.php:520
639
+ msgid "To find your Product or Company ID, you can use their ID lookup tool at"
640
+ msgstr ""
641
+ "برای اینکه محصول یا شناسه شرکتتان را پیدا کنید، میتوانید از ابزار جستجوی "
642
+ "شناسه آنها استفاده کنید در"
643
+
644
+ #: views/sfsi_option_view2.php:524
645
+ msgid "You need to be logged in to Linkedin to be able to use it."
646
+ msgstr "برای استفاده باید در لینکدین وارد (login) شده باشید"
647
+
648
+ #: views/sfsi_option_view2.php:537
649
+ msgid ""
650
+ "Nothing needs to be done here – your visitors to share your site via «all "
651
+ "the other» social media sites."
652
+ msgstr ""
653
+ "اینجا کاری لازم نیست انجام بدهید - بازدیدکنندگان شما سایتتان را از طریق "
654
+ "«سایر» شبکه‌های اجتماعی به اشتراک میگذارند."
655
+
656
+ #: views/sfsi_option_view2.php:553
657
+ msgid ""
658
+ "Please provide the url to your Houzz profile (e.g. http://www.houzz.com/user/"
659
+ "your_username)."
660
+ msgstr ""
661
+ "لطفاً نشانی url پروفایل هازتان را ارایه کنید (برای نمونه: http://www.houzz."
662
+ "com/user/your_username)."
663
+
664
+ #: views/sfsi_option_view2.php:585
665
+ msgid "Where do you want this icon to link to?"
666
+ msgstr "میخواهید این آیکن به کجا لینک شود؟"
667
+
668
+ #: views/sfsi_option_view2.php:589
669
+ msgid "Link:"
670
+ msgstr "لینک:"
671
+
672
+ #: views/sfsi_option_view3.php:35
673
+ msgid ""
674
+ "A good & well-fitting design is not only nice to look at, but it increases "
675
+ "chances that people will subscribe and/or share your site with friends:"
676
+ msgstr ""
677
+ "یک طراحی خوب و شکیل نه تنها زیبا به‌نظر میرسد، بلکه شانس اینکه مردم مشترک شما "
678
+ "شوند یا سایتان را با دوستانشان به اشتراک بگذارند بالا میبرد:"
679
+
680
+ #: views/sfsi_option_view3.php:39
681
+ msgid "It comes across as more professional gives your site more “credit”"
682
+ msgstr "حرفه‌ای‌تر به‌نظر میرسد و اعتبار بیشتری به سایتتان میبخشد"
683
+
684
+ #: views/sfsi_option_view3.php:42
685
+ msgid ""
686
+ "A smart automatic animation can make your visitors aware of your icons in an "
687
+ "unintrusive manner"
688
+ msgstr ""
689
+ "پویانمایی خودکار ممکن است بازدیدکنندگان سایت‌تان را از آیکن‌هایتان بیزار کند."
690
+
691
+ #: views/sfsi_option_view3.php:47
692
+ msgid ""
693
+ "The icons have been compressed by Shortpixel.com for faster loading of your "
694
+ "site. Thank you Shortpixel!"
695
+ msgstr ""
696
+ "برای اینکه سایتتان سریعتر باز شود، آیکن‌ها به‌کمک Shortpixel.com فشرده شده‌اند. "
697
+ "Shortpixel ازت ممنونیم!"
698
+
699
+ #: views/sfsi_option_view3.php:52
700
+ msgid "Theme options"
701
+ msgstr "تنظیمات پوسته"
702
+
703
+ #: views/sfsi_option_view3.php:59
704
+ msgid "Default"
705
+ msgstr "پیش‌فرض"
706
+
707
+ #: views/sfsi_option_view3.php:69
708
+ msgid "Flat"
709
+ msgstr "تخت (Flat)"
710
+
711
+ #: views/sfsi_option_view3.php:78
712
+ msgid "Thin"
713
+ msgstr "نازک (Thin)"
714
+
715
+ #: views/sfsi_option_view3.php:87
716
+ msgid "Cute"
717
+ msgstr "زیبا (Cute)"
718
+
719
+ #: views/sfsi_option_view3.php:97
720
+ msgid "Cubes"
721
+ msgstr "مکعبی (Cubes)"
722
+
723
+ #: views/sfsi_option_view3.php:105
724
+ msgid "Chrome Blue"
725
+ msgstr "فلز براق آبی"
726
+
727
+ #: views/sfsi_option_view3.php:112
728
+ msgid "Chrome Grey"
729
+ msgstr "فلز براق خاکستری"
730
+
731
+ #: views/sfsi_option_view3.php:119
732
+ msgid "Splash"
733
+ msgstr "پخش (Splash)"
734
+
735
+ #: views/sfsi_option_view3.php:130
736
+ msgid "Orange"
737
+ msgstr "نارنجی"
738
+
739
+ #: views/sfsi_option_view3.php:137
740
+ msgid "Crystal"
741
+ msgstr "کریستال"
742
+
743
+ #: views/sfsi_option_view3.php:144
744
+ msgid "Glossy"
745
+ msgstr "براق"
746
+
747
+ #: views/sfsi_option_view3.php:151
748
+ msgid "Black"
749
+ msgstr "سیاه"
750
+
751
+ #: views/sfsi_option_view3.php:161
752
+ msgid "Silver"
753
+ msgstr "نقره‌ای"
754
+
755
+ #: views/sfsi_option_view3.php:168
756
+ msgid "Shaded Dark"
757
+ msgstr "سایه تیره"
758
+
759
+ #: views/sfsi_option_view3.php:175
760
+ msgid "Shaded Light"
761
+ msgstr "سایه روشن"
762
+
763
+ #: views/sfsi_option_view3.php:182
764
+ msgid "Transparent"
765
+ msgstr "شفاف"
766
+
767
+ #: views/sfsi_option_view3.php:183
768
+ msgid "for dark backgrounds"
769
+ msgstr "برای پس‌زمینه‌های تیره"
770
+
771
+ #: views/sfsi_option_view3.php:192
772
+ msgid "Custom Icons"
773
+ msgstr "آیکون‌های سفارشی"
774
+
775
+ #: views/sfsi_option_view3.php:306
776
+ msgid "Animate them (your main icons)"
777
+ msgstr "پویانمایی کن (آیکن‌های اصلی‌تان)"
778
+
779
+ #: views/sfsi_option_view3.php:312
780
+ msgid "Mouse-Over effects"
781
+ msgstr "جلوه‌های قرارگیری ماوس روی آیکن"
782
+
783
+ #: views/sfsi_option_view3.php:317
784
+ msgid "Fade In"
785
+ msgstr "محو شدن در"
786
+
787
+ #: views/sfsi_option_view3.php:320
788
+ msgid "Combo"
789
+ msgstr "کشویی"
790
+
791
+ #: views/sfsi_option_view3.php:330
792
+ msgid "Shuffle them automatically"
793
+ msgstr "بصورت خودکار آنها را به‌هم بریز"
794
+
795
+ #: views/sfsi_option_view3.php:337
796
+ msgid "When site is first loaded"
797
+ msgstr "وقتی سایت برای اولین بار باز شد"
798
+
799
+ #: views/sfsi_option_view3.php:343
800
+ msgid "Every"
801
+ msgstr "هر"
802
+
803
+ #: views/sfsi_option_view3.php:347
804
+ msgid "seconds"
805
+ msgstr "ثانیه"
806
+
807
+ #: views/sfsi_option_view4.php:150
808
+ msgid ""
809
+ "It’s a psychological fact that people like to follow other people, so when "
810
+ "they see that your site has already a good number of Facebook likes, it’s "
811
+ "more likely that they will subscribe/like/share your site than if it had 0."
812
+ msgstr ""
813
+ "این یک واقعیت روانشناختی‌ست که مردم دوست دارند دیگران را دنبال کنند، پس وقتی "
814
+ "میبینند که وب‌سایت شما عدد خوبی از لایک‌های فیس‌بوک را به خود اختصاص داده، خیلی "
815
+ "بهتر مشترک شما میشوند یا سایتتان را به اشتراک میگذارند، تا اینکه تعداد "
816
+ "لایک‌تان 0 باشد."
817
+
818
+ #: views/sfsi_option_view4.php:153
819
+ msgid ""
820
+ "Therefore, you can select to display the count next to your icons which will "
821
+ "look like this:"
822
+ msgstr ""
823
+ "بنابراین، میتوانید انتخاب کنید که تعداد، کنار آیکن‌هایتان نمایش داده شود، "
824
+ "مانند این:"
825
+
826
+ #: views/sfsi_option_view4.php:215
827
+ msgid ""
828
+ "Of course, if you start at 0, you shoot yourself in the foot with that. So "
829
+ "we suggest that you only turn this feature on once you have a good number of "
830
+ "followers/likes/shares (min. of 20 – no worries if it’s not too many, it "
831
+ "should just not be 0)."
832
+ msgstr ""
833
+ "البته، اگر شما از 0 شروع کنید، تیری به پای خود شلیک کرده‌اید! پس ما پیشنهاد "
834
+ "میکنیم که این ویژگی را تا زمانی که به تعداد مناسبی از دنبال‌کننده، لایک یا به "
835
+ "اشتراک‌گذاری نرسیده‌اید فعال کنید (دست‌کم روی ۲۰ بگذارید - نگران نباشید که زیاد "
836
+ "نیست، فقط روی 0 نگذارید)."
837
+
838
+ #: views/sfsi_option_view4.php:218
839
+ msgid "Enough waffling. So do you want to display counts?"
840
+ msgstr "پرحرفی کافیست. پس شما میخواهید تعداد نمایش داده شود؟"
841
+
842
+ #: views/sfsi_option_view4.php:225 views/sfsi_option_view5.php:759
843
+ #: views/sfsi_option_view5.php:787 views/sfsi_option_view5.php:808
844
+ #: views/sfsi_option_view5.php:830 views/sfsi_option_view6.php:64
845
+ #: views/sfsi_option_view9.php:208 views/sfsi_option_view9.php:254
846
+ msgid "Yes"
847
+ msgstr "آری"
848
+
849
+ #: views/sfsi_option_view4.php:231 views/sfsi_option_view5.php:765
850
+ #: views/sfsi_option_view5.php:793 views/sfsi_option_view5.php:814
851
+ #: views/sfsi_option_view5.php:836 views/sfsi_option_view6.php:70
852
+ #: views/sfsi_option_view9.php:215 views/sfsi_option_view9.php:261
853
+ msgid "No"
854
+ msgstr "خیر"
855
+
856
+ #: views/sfsi_option_view4.php:239
857
+ msgid "Please specify which counts should be shown:"
858
+ msgstr "لطفاً تعیین کنید تعداد کدام نمایش داده شود:"
859
+
860
+ #: views/sfsi_option_view4.php:261
861
+ msgid "We cannot track this. So enter the figure here:"
862
+ msgstr "ما نمیتوانیم این را ردیابی کنیم. پس رقم را اینجا وارد نمایید:"
863
+
864
+ #: views/sfsi_option_view4.php:289
865
+ msgid "Retrieve the number of subscribers automatically"
866
+ msgstr "نمایش تعداد مشترکین بصورت خودکار"
867
+
868
+ #: views/sfsi_option_view4.php:293 views/sfsi_option_view4.php:338
869
+ #: views/sfsi_option_view4.php:425 views/sfsi_option_view4.php:498
870
+ #: views/sfsi_option_view4.php:543 views/sfsi_option_view4.php:589
871
+ #: views/sfsi_option_view4.php:621 views/sfsi_option_view4.php:660
872
+ #: views/sfsi_option_view4.php:693 views/sfsi_option_view4.php:722
873
+ msgid "Enter the figure manually"
874
+ msgstr "ورود دستی تعداد"
875
+
876
+ #: views/sfsi_option_view4.php:320
877
+ msgid "Retrieve the number of likes of your blog"
878
+ msgstr "نمایش تعداد لایک‌های وبلاگ‌تان"
879
+
880
+ #: views/sfsi_option_view4.php:324
881
+ msgid "Retrieve the number of likes your facebook page"
882
+ msgstr "نمایش تعداد لایک‌های صفحه فیس‌بوک‌تان"
883
+
884
+ #: views/sfsi_option_view4.php:328
885
+ msgid "page ID:"
886
+ msgstr "شناسه (ID) صفحه:"
887
+
888
+ #: views/sfsi_option_view4.php:333
889
+ msgid ""
890
+ "Youll find it at the bottom of the << About >> -tab on your facebook page"
891
+ msgstr "میتوانید در پایین تب «About» صفحه فیس‌بوکتان پیدایش کنید"
892
+
893
+ #: views/sfsi_option_view4.php:365
894
+ msgid "Retrieve the number of Twitter followers"
895
+ msgstr "نمایش تعداد دنبال‌کنندگان توییترتان"
896
+
897
+ #: views/sfsi_option_view4.php:371
898
+ msgid "Enter Consumer Key"
899
+ msgstr "کلید مصرف‌کننده را وارد نمایید"
900
+
901
+ #: views/sfsi_option_view4.php:377
902
+ msgid "Enter Consumer Secret"
903
+ msgstr "رمز مصرف‌کننده را وارد نمایید"
904
+
905
+ #: views/sfsi_option_view4.php:383
906
+ msgid "Enter Access Token"
907
+ msgstr "توکن دسترسی را وارد نمایید"
908
+
909
+ #: views/sfsi_option_view4.php:389
910
+ msgid "Enter Access Token Secret"
911
+ msgstr "رمز توکن دسترسی را وارد نمایید"
912
+
913
+ #: views/sfsi_option_view4.php:396
914
+ msgid ""
915
+ "Please make sure you have entered the Username for \"Follow me on Twitter:\" "
916
+ "in twitter settings under question number 2."
917
+ msgstr ""
918
+ "لطفاً مطمئن شوید که نام کاربری را برای \"مرا در توییتر دنبال کنید:\" در "
919
+ "تنظیمات بخش توییتر وارد نموده‌اید. مربوط به سوال شماره ۲."
920
+
921
+ #: views/sfsi_option_view4.php:400
922
+ msgid "To get this information:"
923
+ msgstr "برای دریافت این اطلاعات:"
924
+
925
+ #: views/sfsi_option_view4.php:404
926
+ msgid "Go to"
927
+ msgstr "بروید به"
928
+
929
+ #: views/sfsi_option_view4.php:410
930
+ msgid "Click on \"Create new app\""
931
+ msgstr "روی \"Create new app\" کلیک کنید"
932
+
933
+ #: views/sfsi_option_view4.php:413
934
+ msgid ""
935
+ "Enter a random Name, Description and Website URL (including the \"http://\", "
936
+ "e.g. http://dummysitename.com)"
937
+ msgstr ""
938
+ "یک نام، توضیح و آدرس وب‌سایت تصادفی وارد نمایید (باید شامل \"http://\"باشد، "
939
+ "مانند http://dummysitename.com)"
940
+
941
+ #: views/sfsi_option_view4.php:416
942
+ msgid ""
943
+ "Go to \"Keys and Access Tokens\" tab and click on \"Generate Token\" in the "
944
+ "\"Token actions\" section at the bottom"
945
+ msgstr ""
946
+ "به تب \"Keys and Access Tokens\" بروید و روی \"Generate Token\" در بخش "
947
+ "\"Token actions\" در پایین کلیک کنید."
948
+
949
+ #: views/sfsi_option_view4.php:419
950
+ msgid ""
951
+ "Then click on \"Test OAuth\" at the top right and you will see the 4 token "
952
+ "key"
953
+ msgstr ""
954
+ "بعد روی \"Test OAuth\" در بالا سمت راست کلیک کنید و ۴ کلید توکن را خواهید دید"
955
+
956
+
957
+ #: views/sfsi_option_view4.php:484
958
+ msgid "and create a new project"
959
+ msgstr "و یک پروژه جدید ایجاد نمایید"
960
+
961
+ #: views/sfsi_option_view4.php:487
962
+ msgid ""
963
+ "Then on the left menu bar go to “APIs & auth”, “Credentials” and click "
964
+ "“Create new key” in the “Public API access” section"
965
+ msgstr ""
966
+ "بعد در منوی سمت چپ به “APIs & auth” و بعد به “Credentials” بروید و روی "
967
+ "“Create new key” در بخش “Public API access” کلیک کنید."
968
+
969
+ #: views/sfsi_option_view4.php:490
970
+ msgid ""
971
+ "There you select “browser key” and click “Create”. You will then be shown "
972
+ "your API key"
973
+ msgstr ""
974
+ "از آنجا “browser key” را انتخاب نموده و روی “Create” کلیک کنید. کلید API "
975
+ "برایتان به نمایش در می‌آید"
976
+
977
+ #: views/sfsi_option_view4.php:493
978
+ msgid ""
979
+ "When you enter this key into the plugin for the first time, it may take some "
980
+ "time until the correct follower count is displayed on your website"
981
+ msgstr ""
982
+ "وقتی برای اولین بار این کلید را در افزونه وارد مینمایید، ممکن است مقداری "
983
+ "زمان ببرد تا تعداد درست دنبال‌کننده روی وب‌سایتتان به نمایش درآید."
984
+
985
+ #: views/sfsi_option_view4.php:570
986
+ msgid "Retrieve the number of Subscribers"
987
+ msgstr "نمایش تعداد مشترکین"
988
+
989
+ #: views/sfsi_option_view4.php:575
990
+ msgid "Enter Youtube User name"
991
+ msgstr "نام کاربری یوتیوب را وارد کنید"
992
+
993
+ #: views/sfsi_option_view4.php:582
994
+ msgid "Enter Youtube Channel id"
995
+ msgstr "شناسه کانال یوتیوب را وارد نمایید"
996
+
997
+ #: views/sfsi_option_view4.php:616
998
+ msgid "Retrieve the number of Pins"
999
+ msgstr "نمایش تعداد پین"
1000
+
1001
+ #: views/sfsi_option_view4.php:649
1002
+ msgid "Retrieve the number of Instagram followers"
1003
+ msgstr "نمایش تعداد دنبال‌کنندگان اینستاگرام"
1004
+
1005
+ #: views/sfsi_option_view4.php:653
1006
+ msgid "Enter Instagram User name"
1007
+ msgstr "نام کاربری اینستاگرام را وارد نمایید"
1008
+
1009
+ #: views/sfsi_option_view4.php:688
1010
+ msgid "Retrieve the number of shares"
1011
+ msgstr "نمایش تعداد اشتراک‌گذاری‌ها"
1012
+
1013
+ #: views/sfsi_option_view5.php:341
1014
+ msgid "Order of your icons"
1015
+ msgstr "ترتیب آیکن‌هایتان"
1016
+
1017
+ #: views/sfsi_option_view5.php:430
1018
+ msgid "Drag and Drop"
1019
+ msgstr "کشیدن و رها کردن"
1020
+
1021
+ #: views/sfsi_option_view5.php:435 views/sfsi_option_view8.php:400
1022
+ msgid "Size and spacing of your icons"
1023
+ msgstr "اندازه و فضای بین آیکن‌هایتان"
1024
+
1025
+ #: views/sfsi_option_view5.php:439 views/sfsi_option_view8.php:404
1026
+ msgid "Size:"
1027
+ msgstr "اندازه:"
1028
+
1029
+ #: views/sfsi_option_view5.php:443 views/sfsi_option_view8.php:406
1030
+ msgid "pixels wide and tall"
1031
+ msgstr "پیکسل عرض و ارتفاع"
1032
+
1033
+ #: views/sfsi_option_view5.php:446 views/sfsi_option_view8.php:408
1034
+ msgid "Spacing between icons:"
1035
+ msgstr "فضای بین آیکن‌ها:"
1036
+
1037
+ #: views/sfsi_option_view5.php:450 views/sfsi_option_view8.php:211
1038
+ #: views/sfsi_option_view8.php:220 views/sfsi_option_view8.php:229
1039
+ #: views/sfsi_option_view8.php:238 views/sfsi_option_view8.php:410
1040
+ msgid "Pixels"
1041
+ msgstr "پیکسل"
1042
+
1043
+ #: views/sfsi_option_view5.php:457
1044
+ msgid "Alignments"
1045
+ msgstr "چینش"
1046
+
1047
+ #: views/sfsi_option_view5.php:461
1048
+ msgid "Alignment of icons:"
1049
+ msgstr "چینش آیکن‌ها:"
1050
+
1051
+ #: views/sfsi_option_view5.php:466 views/sfsi_option_view9.php:684
1052
+ msgid "Centered"
1053
+ msgstr "وسط‌چین"
1054
+
1055
+ #: views/sfsi_option_view5.php:469 views/sfsi_option_view6.php:92
1056
+ #: views/sfsi_option_view8.php:496
1057
+ msgid "Right"
1058
+ msgstr "راست‌چین"
1059
+
1060
+ #: views/sfsi_option_view5.php:472 views/sfsi_option_view6.php:90
1061
+ #: views/sfsi_option_view8.php:493
1062
+ msgid "Left"
1063
+ msgstr "چپ‌چین"
1064
+
1065
+ #: views/sfsi_option_view5.php:477
1066
+ msgid "Icons per row:"
1067
+ msgstr "تعداد آیکن در هر خط:"
1068
+
1069
+ #: views/sfsi_option_view5.php:481
1070
+ msgid "Leave empty if you don't want to define this"
1071
+ msgstr "اگر مایل نیستید این را معین کنید خالی بگذارید"
1072
+
1073
+ #: views/sfsi_option_view5.php:488
1074
+ msgid "Language & Button-text"
1075
+ msgstr "زبان و متن کلید"
1076
+
1077
+ #: views/sfsi_option_view5.php:493
1078
+ msgid "Follow-button:"
1079
+ msgstr "دکمه دنبال:"
1080
+
1081
+ #: views/sfsi_option_view5.php:499 views/sfsi_option_view5.php:520
1082
+ #: views/sfsi_option_view5.php:541 views/sfsi_option_view5.php:562
1083
+ #: views/sfsi_option_view9.php:111
1084
+ msgid "Preview:"
1085
+ msgstr "پیش‌نمایش:"
1086
+
1087
+ #: views/sfsi_option_view5.php:514
1088
+ msgid "Facebook «Visit»-icon:"
1089
+ msgstr "آیکن «بازدید» فیس‌بوک:"
1090
+
1091
+ #: views/sfsi_option_view5.php:535
1092
+ msgid "Twitter «Visit»-icon:"
1093
+ msgstr "آیکن «بازدید» توییتر:"
1094
+
1095
+ #: views/sfsi_option_view5.php:748
1096
+ msgid "New window"
1097
+ msgstr "پنجره جدید"
1098
+
1099
+ #: views/sfsi_option_view5.php:753
1100
+ msgid ""
1101
+ "If a user clicks on your icons, do you want to open the page in a new window?"
1102
+ msgstr ""
1103
+ "اگر کاربر روی آیکن‌هایتان کلیک کرد، میخواهید صفحه مربوطه در یک پنجره جدید (تب "
1104
+ "جدید از مرورگر) باز گردد؟"
1105
+
1106
+ #: views/sfsi_option_view5.php:776
1107
+ msgid "Sticking & Disable on mobile"
1108
+ msgstr "در حالت موبایل بچسب و غیرفعال شو"
1109
+
1110
+ #: views/sfsi_option_view5.php:779
1111
+ msgid ""
1112
+ "If you decided to show your icons via a widget, you can add the effect that "
1113
+ "when the user scrolls down, the icons will stick at the top of the screen "
1114
+ "so that they are still displayed even if the user scrolled all the way down. "
1115
+ "Do you want to do that?"
1116
+ msgstr ""
1117
+ "اگر تصمیم دارید آیکن‌هایتان را در یک ابزارک نمایش دهید، میتوانید حالتی را "
1118
+ "برگزینید که وقتی کاربر به سمت پایین آمد آیکون‌ها در بالای صفحه‌نمایش بچسبند و "
1119
+ "هرچقدر کاربر به سمت پایین سایت پیمایش (اسکرول) کند همچنان قابل دیدن باشند. "
1120
+ "آیا میخواهید این کار انجام شود؟"
1121
+
1122
+ #: views/sfsi_option_view5.php:802
1123
+ msgid "Disable float icons on mobile devices"
1124
+ msgstr "آیکن‌های شناور در حالت موبایل غیرفعال باشند"
1125
+
1126
+ #: views/sfsi_option_view5.php:824
1127
+ msgid "Disable auto-scaling feature for mobile devices (\"viewport\" meta tag)"
1128
+ msgstr ""
1129
+ "ویژگی auto-scaling در دستگاه‌های موبایل غیرفعال شود (تگ متای \"viewport\")"
1130
+
1131
+ #: views/sfsi_option_view5.php:848
1132
+ msgid "Mouseover text"
1133
+ msgstr "متنی که وقتی ماوس روی آن قرار گرفت نشان دهد"
1134
+
1135
+ #: views/sfsi_option_view5.php:851
1136
+ msgid ""
1137
+ "If you’ve given your icon only one function (i.e. no pop-up where user can "
1138
+ "perform different actions) then you can define here what text will be "
1139
+ "displayed if a user moves his mouse over the icon:"
1140
+ msgstr ""
1141
+ "اگر به آیکن‌تان تنها یک امکان داده‌اید (برای نمونه هیچ پاپ‌آپی برای آزادی عمل "
1142
+ "کاربر ارایه نکردید) اینجا مشخص کنید هنگامی که کاربر ماوس خود را روی آیکن "
1143
+ "آورد چه متنی نمایش داده شود:"
1144
+
1145
+ #: views/sfsi_option_view6.php:27
1146
+ msgid ""
1147
+ "The selections you made so far were to display the subscriptions/ social "
1148
+ "media icons for your site in general (in a widget on the sidebar). You can "
1149
+ "also display icons at the end of every post, encouraging users to subscribe/"
1150
+ "like/share after they’ve read it. The following buttons will be added:"
1151
+ msgstr ""
1152
+ "انتخابی که کردید در حال حاضر مربوط به نمایش آیکن‌های اشتراک و شبکه‌های اجتماعی "
1153
+ "بطور معمول برای سایتتان است (در ابزارک نوار ابزار کناری). شما همچنین "
1154
+ "میتوانید آیکن‌ها را در انتهای هر نوشته نمایش دهید، و کاربران را تشویق به "
1155
+ "مشترک‌شدن، لایک‌کردن، یا به اشتراک گذاری مطالبتان کنید. کلیدهای زیر اضافه "
1156
+ "خواهند شد:"
1157
+
1158
+ #: views/sfsi_option_view6.php:43
1159
+ msgid "Those are usually all you need:"
1160
+ msgstr "آنها همه آن چیزیست که نیاز دارید:"
1161
+
1162
+ #: views/sfsi_option_view6.php:47
1163
+ msgid "Facebook is No.1 in liking, so it’s a must have"
1164
+ msgstr "فیس‌بوک در لایک کردن شماره ۱ است، پس باید داشته باشد"
1165
+
1166
+ #: views/sfsi_option_view6.php:53
1167
+ msgid "Share-button covers all other platforms for sharing"
1168
+ msgstr "دکمه اشتراک‌گذاری تمامی سایر روش‌های اشتراک‌گذاری موجود را پوشش میدهد"
1169
+
1170
+ #: views/sfsi_option_view6.php:58
1171
+ msgid "So: do you want to display those at the end of every post?"
1172
+ msgstr "پس، شما میخواهید آنها را در انتهای هر نوشته نمایش دهید؟"
1173
+
1174
+ #: views/sfsi_option_view6.php:78
1175
+ msgid "Options:"
1176
+ msgstr "تنظیمات:"
1177
+
1178
+ #: views/sfsi_option_view6.php:82 views/sfsi_option_view8.php:484
1179
+ msgid "Text to appear before the sharing icons:"
1180
+ msgstr "متن پیش از ظاهر شدن آیکن‌های اشتراک‌گذاری:"
1181
+
1182
+ #: views/sfsi_option_view6.php:87 views/sfsi_option_view8.php:489
1183
+ msgid "Alignment of share icons:"
1184
+ msgstr "چینش آیکن‌های اشتراک‌گذاری:"
1185
+
1186
+ #: views/sfsi_option_view6.php:97 views/sfsi_option_view8.php:385
1187
+ msgid "Do you want to display the counts?"
1188
+ msgstr "آیا میخواهید تعداد نمایش داده شود؟"
1189
+
1190
+ #: views/sfsi_option_view6.php:99 views/sfsi_option_view8.php:388
1191
+ msgid "YES"
1192
+ msgstr "آری"
1193
+
1194
+ #: views/sfsi_option_view6.php:101 views/sfsi_option_view8.php:390
1195
+ msgid "NO"
1196
+ msgstr "خیر"
1197
+
1198
+ #: views/sfsi_option_view7.php:48
1199
+ msgid ""
1200
+ "You can increase the chances that people share or follow you by displaying a pop-"
1201
+ "up asking them to. You can define the design and layout below:"
1202
+ msgstr ""
1203
+ "شما میتوانید شانس اینکه مردم سایتتان را به اشتراک بگذارند یا دنبال کنند را "
1204
+ "با نمایش یک پاپ‌آپ سوال‌کننده بیشتر کنید. میتوانید جانمایی و طراحی آن را در "
1205
+ "پایین تنظیم نمایید:"
1206
+
1207
+ #: views/sfsi_option_view7.php:54
1208
+ msgid "Enjoy this site? Please follow and like us!"
1209
+ msgstr "از این سایت لذت میبرید؟ لطفاً ما را لایک کرده و دنبال کنید!"
1210
+
1211
+ #: views/sfsi_option_view7.php:143
1212
+ msgid "Text and Design"
1213
+ msgstr "متن و طراحی"
1214
+
1215
+ #: views/sfsi_option_view7.php:147
1216
+ msgid "Text Options"
1217
+ msgstr "تنظیمات متن"
1218
+
1219
+ #: views/sfsi_option_view7.php:150 views/sfsi_option_view9.php:329
1220
+ #: views/sfsi_option_view9.php:409 views/sfsi_option_view9.php:486
1221
+ msgid "Text:"
1222
+ msgstr "متن:"
1223
+
1224
+ #: views/sfsi_option_view7.php:154 views/sfsi_option_view9.php:342
1225
+ #: views/sfsi_option_view9.php:422 views/sfsi_option_view9.php:499
1226
+ msgid "Font:"
1227
+ msgstr "قلم:"
1228
+
1229
+ #: views/sfsi_option_view7.php:200 views/sfsi_option_view9.php:428
1230
+ #: views/sfsi_option_view9.php:505
1231
+ msgid "Font style:"
1232
+ msgstr "ظاهر قلم:"
1233
+
1234
+ #: views/sfsi_option_view7.php:219
1235
+ msgid "Font color:"
1236
+ msgstr "رنگ قلم:"
1237
+
1238
+ #: views/sfsi_option_view7.php:224
1239
+ msgid "Font size:"
1240
+ msgstr "اندازه قلم:"
1241
+
1242
+ #: views/sfsi_option_view7.php:231
1243
+ msgid "Icon Box Layout"
1244
+ msgstr "جانمایی جعبه‌آیکن"
1245
+
1246
+ #: views/sfsi_option_view7.php:235
1247
+ msgid "Backgroud Color:"
1248
+ msgstr "رنگ پس‌زمینه:"
1249
+
1250
+ #: views/sfsi_option_view7.php:241
1251
+ msgid "Border Color:"
1252
+ msgstr "رنگ کادر دور:"
1253
+
1254
+ #: views/sfsi_option_view7.php:249
1255
+ msgid "Border Thinckness:"
1256
+ msgstr "ضخامت کادر دور:"
1257
+
1258
+ #: views/sfsi_option_view7.php:257
1259
+ msgid "Border Shadow:"
1260
+ msgstr "سایه کادر دور:"
1261
+
1262
+ #: views/sfsi_option_view7.php:263
1263
+ msgid "On"
1264
+ msgstr "روشن"
1265
+
1266
+ #: views/sfsi_option_view7.php:269
1267
+ msgid "Off"
1268
+ msgstr "خاموش"
1269
+
1270
+ #: views/sfsi_option_view7.php:279
1271
+ msgid "Where shall the pop-up be shown?"
1272
+ msgstr "پاپ‌آپ کجا نمایش داده شود؟"
1273
+
1274
+ #: views/sfsi_option_view7.php:284
1275
+ msgid "Nowhere"
1276
+ msgstr "هیچ‌کجا"
1277
+
1278
+ #: views/sfsi_option_view7.php:290
1279
+ msgid "On every page"
1280
+ msgstr "در همه صفحات"
1281
+
1282
+ #: views/sfsi_option_view7.php:296
1283
+ msgid "On blog posts only"
1284
+ msgstr "تنها در نوشته‌های وبلاگ"
1285
+
1286
+ #: views/sfsi_option_view7.php:302
1287
+ msgid "On selected pages only"
1288
+ msgstr "تنها در برگه‌های انتخاب شده"
1289
+
1290
+ #: views/sfsi_option_view7.php:345
1291
+ msgid "Please hold CTRL key to select multiple pages"
1292
+ msgstr "لطفاً کلید کنترل (Ctrl) را برای انتخاب صفحات متعدد نگه‌دارید"
1293
+
1294
+ #: views/sfsi_option_view7.php:351
1295
+ msgid "When shall the pop-up be shown?"
1296
+ msgstr "پاپ‌آپ چه‌وقتی نمایش داده شود؟"
1297
+
1298
+ #: views/sfsi_option_view7.php:356
1299
+ msgid "Once"
1300
+ msgstr "یکدفعه"
1301
+
1302
+ #: views/sfsi_option_view7.php:358
1303
+ msgid "seconds after the user arrived on the site"
1304
+ msgstr "ثانیه‌هایی پس از ورود کاربر به سایت"
1305
+
1306
+ #: views/sfsi_option_view7.php:364
1307
+ msgid "Every time user scrolls to the end of the page"
1308
+ msgstr "هروقت کاربر به انتهای برگه رسید (اسکرول کرد)"
1309
+
1310
+ #: views/sfsi_option_view8.php:112
1311
+ msgid "Show them via a widget"
1312
+ msgstr "از طریق ابزارک نمایش‌شان بده"
1313
+
1314
+ #: views/sfsi_option_view8.php:125
1315
+ msgid "Go to the widget area and drag & drop it where you want to have it!"
1316
+ msgstr ""
1317
+ "به قسمت ابزارک‌ها رفته و با کشیدن و رها کردن هرجا که مایل هستید قرار دهید!"
1318
+
1319
+ #: views/sfsi_option_view8.php:142
1320
+ msgid "Float them on the page"
1321
+ msgstr "روی صفحه شناورشان کن"
1322
+
1323
+ #: views/sfsi_option_view8.php:160
1324
+ msgid "Top left"
1325
+ msgstr "بالا سمت چپ"
1326
+
1327
+ #: views/sfsi_option_view8.php:167
1328
+ msgid "Top right"
1329
+ msgstr "بالا سمت راست"
1330
+
1331
+ #: views/sfsi_option_view8.php:174
1332
+ msgid "Center left"
1333
+ msgstr "وسط سمت چپ"
1334
+
1335
+ #: views/sfsi_option_view8.php:181
1336
+ msgid "Center right"
1337
+ msgstr "وسط سمت راست"
1338
+
1339
+ #: views/sfsi_option_view8.php:188
1340
+ msgid "Bottom left"
1341
+ msgstr "پایین سمت چپ"
1342
+
1343
+ #: views/sfsi_option_view8.php:195
1344
+ msgid "Bottom right"
1345
+ msgstr "پایین سمت راست"
1346
+
1347
+ #: views/sfsi_option_view8.php:202
1348
+ msgid "Margin From:"
1349
+ msgstr "فاصله از:"
1350
+
1351
+ #: views/sfsi_option_view8.php:207
1352
+ msgid "Top:"
1353
+ msgstr "بالا:"
1354
+
1355
+ #: views/sfsi_option_view8.php:216
1356
+ msgid "Bottom:"
1357
+ msgstr "پایین:"
1358
+
1359
+ #: views/sfsi_option_view8.php:225
1360
+ msgid "Left:"
1361
+ msgstr "چپ:"
1362
+
1363
+ #: views/sfsi_option_view8.php:234
1364
+ msgid "Right:"
1365
+ msgstr "راست:"
1366
+
1367
+ #: views/sfsi_option_view8.php:253
1368
+ msgid "Place them manually"
1369
+ msgstr "دستی قرار بده"
1370
+
1371
+ #: views/sfsi_option_view8.php:266
1372
+ msgid "Place the following string into your theme codes: "
1373
+ msgstr "متن زیر را در کد پوسته سایتتان وارد نمایید:"
1374
+
1375
+ #: views/sfsi_option_view8.php:270
1376
+ msgid ""
1377
+ "Or use the shortcode [DISPLAY_ULTIMATE_PLUS] to display them wherever you "
1378
+ "want."
1379
+ msgstr ""
1380
+ "یا اینکه برای نمایش دلخواه در هرجایی که میخواهید از کد کوتاه "
1381
+ "[DISPLAY_ULTIMATE_PLUS] استفاده نمایید."
1382
+
1383
+ #: views/sfsi_option_view8.php:282
1384
+ msgid "Show them before or after posts"
1385
+ msgstr "قبل یا بعد از نوشته نمایش‌شان بده"
1386
+
1387
+ #: views/sfsi_option_view8.php:296
1388
+ msgid "Here you have two options:"
1389
+ msgstr "اینجا شما دو انتخاب دارید:"
1390
+
1391
+ #: views/sfsi_option_view8.php:304
1392
+ msgid "Display rectangle icons"
1393
+ msgstr "آیکن‌های مربعی نشان بده"
1394
+
1395
+ #: views/sfsi_option_view8.php:310
1396
+ msgid "Display the icons I selected above"
1397
+ msgstr "آیکن‌هایی را که در بالا انتخاب کردم نمایش بده"
1398
+
1399
+ #: views/sfsi_option_view8.php:318
1400
+ msgid ""
1401
+ "Rectangle icons spell out the «call to action» which increases chances that "
1402
+ "visitors do it."
1403
+ msgstr ""
1404
+ "آیکن‌های مربعی میگویند «اقدام کن» که شانس اقدام توسط بازدیدکننده را افزایش "
1405
+ "میدهد."
1406
+
1407
+ #: views/sfsi_option_view8.php:321
1408
+ msgid "Select the icons you want to show:"
1409
+ msgstr "آیکنی که میخواهید نمایش داده شود را انتخاب نمایید:"
1410
+
1411
+ #: views/sfsi_option_view8.php:371
1412
+ msgid "may impact loading speed"
1413
+ msgstr "روی سرعت باز شدن سایت تاثیرگذار است"
1414
+
1415
+ #: views/sfsi_option_view8.php:421
1416
+ msgid "Display them:"
1417
+ msgstr "نمایش‌شان بده در:"
1418
+
1419
+ #: views/sfsi_option_view8.php:424
1420
+ msgid "On Post Pages"
1421
+ msgstr "در برگه‌ها"
1422
+
1423
+ #: views/sfsi_option_view8.php:430 views/sfsi_option_view8.php:459
1424
+ msgid "Before posts"
1425
+ msgstr "پیش از نوشته‌ها"
1426
+
1427
+ #: views/sfsi_option_view8.php:436 views/sfsi_option_view8.php:465
1428
+ msgid "After posts"
1429
+ msgstr "پس از نوشته‌ها"
1430
+
1431
+ #: views/sfsi_option_view8.php:453
1432
+ msgid "On Homepage"
1433
+ msgstr "در صفحه اول"
1434
+
1435
+ #: views/sfsi_option_view8.php:499
1436
+ msgid "Center"
1437
+ msgstr "مرکز"
1438
+
1439
+ #: views/sfsi_option_view9.php:98
1440
+ msgid ""
1441
+ "In addition to the email- or follow-icon you can also show a subscription "
1442
+ "form that maximizes chances that people subscribe to your site. To get "
1443
+ "access to the emails who subscribe, please"
1444
+ msgstr ""
1445
+ "به اضافه در ایمیل یا آیکن‌های دنبال‌کردن شما میتوانید یک فرم اشتراک نمایش دهید "
1446
+ "که شانس مشترک شدن در سایت‌تان را به حداکثر میرساند. برای اینکه به ایمیل مشترک "
1447
+ "دسترسی داشته باشید، لطفاً"
1448
+
1449
+ #: views/sfsi_option_view9.php:102
1450
+ msgid "claim your feed."
1451
+ msgstr "خوراک‌خوانتان را درخواست کنید."
1452
+
1453
+ #: views/sfsi_option_view9.php:121
1454
+ msgid "Place it on your site"
1455
+ msgstr "در سایتتان قرار دهید"
1456
+
1457
+ #: views/sfsi_option_view9.php:124
1458
+ msgid "You can place the form by different methods:"
1459
+ msgstr "میتوانید فرم را با روش‌های مختلفی قرار دهید:"
1460
+
1461
+ #: views/sfsi_option_view9.php:130
1462
+ msgid "Widget:"
1463
+ msgstr "ابزارک:"
1464
+
1465
+ #: views/sfsi_option_view9.php:132
1466
+ msgid "Go to the widget settings and drag and drop it to the sidebar:"
1467
+ msgstr ""
1468
+ "به تنظیمات ابزارک رفته و با کشیدن و رها کردن، آن را به نوارابزار کناری بکشید:"
1469
+
1470
+ #: views/sfsi_option_view9.php:139
1471
+ msgid "Shortcode:"
1472
+ msgstr "کد کوتاه (shortcode):"
1473
+
1474
+ #: views/sfsi_option_view9.php:142
1475
+ msgid "Use the shortcode"
1476
+ msgstr "از این کد کوتاه استفاده کن"
1477
+
1478
+ #: views/sfsi_option_view9.php:146
1479
+ msgid "to place it into your codes"
1480
+ msgstr "برای استفاده در میان کدهایتان"
1481
+
1482
+ #: views/sfsi_option_view9.php:150
1483
+ msgid "Copy & paste HTML code:"
1484
+ msgstr "این کد HTML را copy و paste کنید:"
1485
+
1486
+ #: views/sfsi_option_view9.php:164 views/sfsi_option_view9.php:699
1487
+ msgid "Get new posts by email:"
1488
+ msgstr "دریافت نوشته‌های جدید با ایمیل:"
1489
+
1490
+ #: views/sfsi_option_view9.php:186
1491
+ msgid "Define text & design (optional)"
1492
+ msgstr "متن و طرح را تعیین کنید (اختیاری)"
1493
+
1494
+ #: views/sfsi_option_view9.php:189
1495
+ msgid "Overall size & border"
1496
+ msgstr "اندازه و کادر دور نهایی"
1497
+
1498
+ #: views/sfsi_option_view9.php:201
1499
+ msgid "Adjust size to space on the website?"
1500
+ msgstr "اندازه متناسب با فضای سایت تنظیم شود؟"
1501
+
1502
+ #: views/sfsi_option_view9.php:224
1503
+ msgid "Height"
1504
+ msgstr "ارتفاع"
1505
+
1506
+ #: views/sfsi_option_view9.php:230 views/sfsi_option_view9.php:240
1507
+ #: views/sfsi_option_view9.php:276 views/sfsi_option_view9.php:376
1508
+ #: views/sfsi_option_view9.php:462 views/sfsi_option_view9.php:533
1509
+ msgid "pixels"
1510
+ msgstr "پیکسل"
1511
+
1512
+ #: views/sfsi_option_view9.php:235
1513
+ msgid "Width"
1514
+ msgstr "عرض"
1515
+
1516
+ #: views/sfsi_option_view9.php:247
1517
+ msgid "Border?"
1518
+ msgstr "کادر دور؟"
1519
+
1520
+ #: views/sfsi_option_view9.php:270
1521
+ msgid "Thickness"
1522
+ msgstr "ضخامت"
1523
+
1524
+ #: views/sfsi_option_view9.php:281
1525
+ msgid "Color"
1526
+ msgstr "رنگ"
1527
+
1528
+ #: views/sfsi_option_view9.php:296
1529
+ msgid "Background color:"
1530
+ msgstr "رنگ پس‌زمینه:"
1531
+
1532
+ #: views/sfsi_option_view9.php:317
1533
+ msgid "Text above the entry field"
1534
+ msgstr "متن بالای فیلد ورودی"
1535
+
1536
+ #: views/sfsi_option_view9.php:348
1537
+ msgid " Font style:"
1538
+ msgstr " ظاهر قلم:"
1539
+
1540
+ #: views/sfsi_option_view9.php:357 views/sfsi_option_view9.php:514
1541
+ msgid "Font color"
1542
+ msgstr "رنگ قلم"
1543
+
1544
+ #: views/sfsi_option_view9.php:370 views/sfsi_option_view9.php:456
1545
+ #: views/sfsi_option_view9.php:527
1546
+ msgid "Font size"
1547
+ msgstr "اندازه قلم"
1548
+
1549
+ #: views/sfsi_option_view9.php:384 views/sfsi_option_view9.php:449
1550
+ #: views/sfsi_option_view9.php:541
1551
+ msgid "Alignment:"
1552
+ msgstr "چینش:"
1553
+
1554
+ #: views/sfsi_option_view9.php:397
1555
+ msgid "Entry field"
1556
+ msgstr "فیلد ورودی"
1557
+
1558
+ #: views/sfsi_option_view9.php:474
1559
+ msgid "Subscribe button"
1560
+ msgstr "دکمه اشتراک"
1561
+
1562
+ #: views/sfsi_option_view9.php:550
1563
+ msgid "Button color:"
1564
+ msgstr "رنگ کلید:"
1565
+
1566
+ #: views/sfsi_option_view9.php:681
1567
+ msgid "Left Align"
1568
+ msgstr "چپ‌چین"
1569
+
1570
+ #: views/sfsi_option_view9.php:687
1571
+ msgid "Right Align"
1572
+ msgstr "راست‌چین"
1573
+
1574
+ #: views/sfsi_options_view.php:10
1575
+ msgid ""
1576
+ "We found errors in your javascript which may cause the plugin to not work "
1577
+ "properly. Please fix the error:"
1578
+ msgstr ""
1579
+ "ما خطایی در javascript شما پیدا کردیم که ممکن است مانع از کارکرد درست افزونه "
1580
+ "شود. لطفاً این خطا را برطرف کنید:"
1581
+
1582
+ #: views/sfsi_options_view.php:52
1583
+ msgid ""
1584
+ "New: You can now also show a subscription form on your site, increasing sign-"
1585
+ "ups! (Question 8)"
1586
+ msgstr ""
1587
+ "جدید: حالا شما قادر خواهید بود که یک فرم اشتراک در سایتتان نمایش دهید، که "
1588
+ "تعداد ثبت‌نام ها را زیادتر میکند (سوال ۸)"
1589
+
1590
+ #: views/sfsi_options_view.php:54
1591
+ msgid ""
1592
+ "If question 8 gets displayed in a funny way then please reload the page by "
1593
+ "pressing Control+F5(PC) or Command+R(Mac)"
1594
+ msgstr ""
1595
+ "اگر سوال ۸ را به شکل خنده‌داری میبینید لطفاً این صفحه را به‌کمک کلیدهای Ctrl+F5 "
1596
+ "(در PC) یا Command+R (در مکینتاش) مجدداً بارگذاری کنید"
1597
+
1598
+ #: views/sfsi_options_view.php:64
1599
+ msgid "Welcome to the Ultimate Social Media Icons PLUS plugin!"
1600
+ msgstr "به افزونه Ultimate Social Media Icons PLUS خوش آمدید!"
1601
+
1602
+ #: views/sfsi_options_view.php:67
1603
+ msgid ""
1604
+ "This plugin is 100% FREE and will fulfill all your subscription/sharing/"
1605
+ "liking needs!"
1606
+ msgstr ""
1607
+ "این افزونه ۱۰۰٪ رایگان است و تمامی نیازهای شما را در جذب مشترک، به "
1608
+ "استراک‌گذاری مطالب، و گرفتن لایک برآورده میکند."
1609
+
1610
+ #: views/sfsi_options_view.php:70
1611
+ msgid ""
1612
+ "Simply answer the questions below (at least the first 3) by clicking on them "
1613
+ "- that`s it!"
1614
+ msgstr ""
1615
+ "به راحتی با کلیک کردن به سوالات زیر پاسخ دهید (دست‌کم ۳ تای اولی) - فقط همین!"
1616
+
1617
+ #: views/sfsi_options_view.php:73
1618
+ msgid ""
1619
+ "If you have questions, or something doesn`t work as it should, please read "
1620
+ "the FAQ:"
1621
+ msgstr ""
1622
+ "اگر سوالی دارید یا چیزی آنطور که باید، کار نمیکند، لطفاً صفحه سوالات متداول "
1623
+ "را ببینید:"
1624
+
1625
+ #: views/sfsi_options_view.php:84
1626
+ msgid "Which icons do you want to show on your site?"
1627
+ msgstr "میخواهید کدام آیکن در سایت‌تان نمایش داده شود؟"
1628
+
1629
+ #: views/sfsi_options_view.php:92
1630
+ msgid "What do you want the icons to do?"
1631
+ msgstr "میخواهید آیکن‌ها برایتان چه‌کار کنند؟"
1632
+
1633
+ #: views/sfsi_options_view.php:99
1634
+ msgid "Where shall they be displayed?"
1635
+ msgstr "کجا باید نمایش داده شوند؟"
1636
+
1637
+ #: views/sfsi_options_view.php:105
1638
+ msgid "Optional"
1639
+ msgstr "اختیاری"
1640
+
1641
+ #: views/sfsi_options_view.php:110
1642
+ msgid "What design and animation do you want to give your icons?"
1643
+ msgstr "چه طرحی و پویانمایی‌ای میخواهید به آیکن‌هایتان بدهید؟"
1644
+
1645
+ #: views/sfsi_options_view.php:117
1646
+ msgid "Do you want to display \"counts\" next to your main icons?"
1647
+ msgstr "آیا میخواهید \"تعداد\" در کنار آیکن‌های اصلی‌تان نمایش داده شود؟"
1648
+
1649
+ #: views/sfsi_options_view.php:124
1650
+ msgid "Any other wishes for your main icons?"
1651
+ msgstr "خواسته دیگری از آیکن‌های اصلی‌تان دارید؟"
1652
+
1653
+ #: views/sfsi_options_view.php:136
1654
+ msgid "Do you want to display a pop-up, asking people to subscribe?"
1655
+ msgstr "آیا میخواهید یک پاپ‌آپ جهت مشترک‌شدن به کاربران نمایش داده شود؟"
1656
+
1657
+ #: views/sfsi_options_view.php:143
1658
+ msgid "Do you want to show a subscription form (increases sign ups)?"
1659
+ msgstr "آیا میخواهید یک فرم اشتراک نمایش داده شود (ثبت‌نام‌ها را افزایش میدهد)؟"
1660
+
1661
+ #: views/sfsi_options_view.php:159
1662
+ msgid ""
1663
+ "This plugin is 100% free. Please do us a BIG favor and give us a 5 star "
1664
+ "rating"
1665
+ msgstr ""
1666
+ "این افزونه ۱۰۰٪ رایگان میباشد. لطف بزرگی بکنید و امتیاز ۵ ستاره به ما بدهید"
1667
+
1668
+ #: views/sfsi_options_view.php:161
1669
+ msgid "here"
1670
+ msgstr "اینجا"
1671
+
1672
+ #: views/sfsi_options_view.php:163
1673
+ msgid ""
1674
+ "If you`re not happy, please get in touch with us at support@ultimatelysocial."
1675
+ "com, so that we can sort it out.Thank you!"
1676
+ msgstr ""
1677
+ "اگر رضایت ندارید، با ما از طریق support@ultimatelysocial.com در تماس باشید، "
1678
+ "که بتونیم درستش کنیم. ممنون از شما!"
1679
+
1680
+ #: views/sfsi_options_view.php:166
1681
+ msgid "Need top-notch Wordpress development work at a competitive price?"
1682
+ msgstr "به کار توسعه وردپرسی درجه یک با قیمت رقابتی نیاز دارید؟"
1683
+
1684
+ #: views/sfsi_options_view.php:168
1685
+ msgid "Visit us on ultimatelysocial.com"
1686
+ msgstr "از ما در ultimatelysocial.com دیدن کنید"
1687
+
1688
+ #: views/sfsi_pop_content.php:31
1689
+ msgid "Steps:"
1690
+ msgstr "مراحل:"
1691
+
1692
+ #: views/sfsi_pop_content.php:35 views/sfsi_pop_content.php:347
1693
+ msgid "Click on << Upload >> below"
1694
+ msgstr "روی «آپلود» در پایین کلیک کنید"
1695
+
1696
+ #: views/sfsi_pop_content.php:38 views/sfsi_pop_content.php:350
1697
+ msgid "Upload the icon into the media gallery"
1698
+ msgstr "آیکن را به درون رسانه آپلود کنید"
1699
+
1700
+ #: views/sfsi_pop_content.php:41
1701
+ msgid "Click on << Insert into post >> "
1702
+ msgstr "روی «درج در نوشته» کلیک کنید"
1703
+
1704
+ #: views/sfsi_pop_content.php:90
1705
+ msgid "Move over the Facebook-icon…"
1706
+ msgstr "منتقل کن به بالای آیکن فیس‌بوک"
1707
+
1708
+ #: views/sfsi_pop_content.php:116 views/sfsi_pop_content.php:271
1709
+ msgid "Move over the “+ icon” to see the sharing options"
1710
+ msgstr "منتقل کن به بالای آیکن \"+\" تا تنظیمات اشتراک‌گذاری را ببینید"
1711
+
1712
+ #: views/sfsi_pop_content.php:145
1713
+ msgid "Move over the Twiiter-icon…"
1714
+ msgstr "منتقل کن به بالای آیکن توییتر"
1715
+
1716
+ #: views/sfsi_pop_content.php:198
1717
+ msgid "Move over the YouTube-icon…"
1718
+ msgstr "منتقل کن به بالای آیکن یوتیوب"
1719
+
1720
+ #: views/sfsi_pop_content.php:221
1721
+ msgid "Move over the Pinterest-icon…"
1722
+ msgstr "منتقل کن به بالای آیکن پین‌ترست"
1723
+
1724
+ #: views/sfsi_pop_content.php:249
1725
+ msgid "Move over the LinkedIn-icon…"
1726
+ msgstr "منتقل کن به بالای آیکن لینکدین"
1727
+
1728
+ #: views/sfsi_pop_content.php:285
1729
+ msgid ""
1730
+ "Note: Also if you already offer a newsletter it makes sense to offer this "
1731
+ "option too, because it will get you more readers as explained"
1732
+ msgstr ""
1733
+ "توجه: همچنین اگر هم‌اکنون یک روزنامه ارائه داده‌اید، بهتر است این امکان را هم "
1734
+ "ارائه کنید، بدلیل اینکه همانطور که توضیح داده شد تعداد خواننده‌های بیشتری "
1735
+ "بدست میاورید"
1736
+
1737
+ #: views/sfsi_pop_content.php:292
1738
+ msgid "Ok, keep it active for the time being, I want to see how it works"
1739
+ msgstr "بسیار خب، به‌طور موقت فعالش کن، تا ببینم چگونه کار میکند"
1740
+
1741
+ #: views/sfsi_pop_content.php:296
1742
+ msgid "Deactivate it"
1743
+ msgstr "غیرفعالش کن"
1744
+
1745
+ #: views/sfsi_pop_content.php:304
1746
+ msgid ""
1747
+ "Ok, fine, however for using this plugin for FREE, please support us by "
1748
+ "activating a link back to our site:"
1749
+ msgstr ""
1750
+ "بسیار خب، خوب است، به هرحال چون از این افزونه بصورت رایگان استفاده میکنید، "
1751
+ "لطفاْ ما را با قرار دادن لینکمان در سایتتان حمایت کنید:"
1752
+
1753
+ #: views/sfsi_pop_content.php:309
1754
+ msgid "Ok, activate link"
1755
+ msgstr "باشه، لینک را فعال کن"
1756
+
1757
+ #: views/sfsi_pop_content.php:313
1758
+ msgid "Don’t activate link"
1759
+ msgstr "لینک را فعال نکن"
1760
+
1761
+ #: views/sfsi_pop_content.php:321
1762
+ msgid ""
1763
+ "You’re a toughie. Last try: As a minimum, could you please review this "
1764
+ "plugin (with 5 stars)? It only takes a minute. Thank you!"
1765
+ msgstr ""
1766
+ "شما خیلی خشنید! برای آخرین بار: دست کم، ممکن است لطفاً افزونه ما را ۵ ستاره "
1767
+ "کنید؟ فقط یک دقیقه زمان میبرد. ممنون از شما!"
1768
+
1769
+ #: views/sfsi_pop_content.php:325
1770
+ msgid "Ok, Review it"
1771
+ msgstr "باشه، بررسی کن"
1772
+
1773
+ #: views/sfsi_pop_content.php:329
1774
+ msgid "Don’t review and exit"
1775
+ msgstr "بررسی نکن و خارج شو"
1776
+
1777
+ #: views/sfsi_pop_content.php:341
1778
+ msgid "Upload custom icons"
1779
+ msgstr "آپلود آیکن‌های سفارشی"
1780
+
1781
+ #: views/sfsi_pop_content.php:344
1782
+ msgid ""
1783
+ "Here you can upload custom icons which perform the same actions as the "
1784
+ "standard icons."
1785
+ msgstr ""
1786
+ "اینجا میتوانید آیکن‌های سفارشی که مانند آیکن‌های استاندارد کار خواهند کرد را "
1787
+ "آپلود نمایید."
1788
+
1789
+ #: views/sfsi_pop_content.php:353
1790
+ msgid "Click on << Insert into post >>"
1791
+ msgstr "روی «درج در نوشته» کلیک کنید"
1792
+
1793
+ #: views/sfsi_pop_content.php:583
1794
+ msgid "I'm done!"
1795
+ msgstr "انجام دادم!"
1796
+
1797
+ #. Plugin Name of the plugin/theme
1798
+ msgid "Ultimate Social Media PLUS"
1799
+ msgstr "Ultimate Social Media PLUS"
1800
+
1801
+ #. #-#-#-#-# plugin.pot (Ultimate Social Media PLUS 2.3.7) #-#-#-#-#
1802
+ #. Plugin URI of the plugin/theme
1803
+ #. #-#-#-#-# plugin.pot (Ultimate Social Media PLUS 2.3.7) #-#-#-#-#
1804
+ #. Author URI of the plugin/theme
1805
+ msgid "http://ultimatelysocial.com"
1806
+ msgstr "http://ultimatelysocial.com"
1807
+
1808
+ #. Description of the plugin/theme
1809
+ msgid ""
1810
+ "The best social media plugin on the market. And 100% FREE. Allows you to add "
1811
+ "social media & share icons to your blog (esp. Facebook, Twitter, Email, RSS, "
1812
+ "Pinterest, Instagram, LinkedIn, Share-button). It offers a wide "
1813
+ "range of design options and other features."
1814
+ msgstr ""
1815
+ "بهترین افزونه شبکه اجتماعی در فروشگاه. و ۱۰۰٪ رایگان. به شما امکان اضافه "
1816
+ "نمودن آیکن‌های شبکه‌های اجتماعی و اشتراک‌گذاری را میدهد (بخصوص فیس‌بوک، توییتر، "
1817
+ "ایمیل، فید RSS، پین‌ترست، اینستاگرام، گوگل‌پلاس، لیندکدین، و کلید "
1818
+ "اشتراک‌گذاری). این افزونه گستره وسیعی از اختیارات طراحی و سایر ویژگی‌ها را در "
1819
+ "اختیارتان میگذارد."
1820
+
1821
+ #. Author of the plugin/theme
1822
+ msgid "UltimatelySocial"
1823
+ msgstr "UltimatelySocial"
libs/controllers/sfsi_buttons_controller.php CHANGED
@@ -1,1482 +1,1389 @@
1
- <?php
2
- /* save all option to options table in database using ajax */
3
- /* save settings for section 1 */
4
- add_action('wp_ajax_plus_updateSrcn1', 'sfsi_plus_options_updater1');
5
- function sfsi_plus_options_updater1()
6
- {
7
- if (!wp_verify_nonce($_POST['nonce'], "update_plus_step1")) {
8
- echo json_encode(array("wrong_nonce"));
9
- exit;
10
- }
11
- if (!current_user_can('manage_options')) {
12
- echo json_encode(array('res' => 'not allowed'));
13
- die();
14
- }
15
- $option1 = unserialize(get_option('sfsi_plus_section1_options', false));
16
- $sfsi_plus_rss_display = isset($_POST["sfsi_plus_rss_display"]) ? sanitize_text_field($_POST["sfsi_plus_rss_display"]) : 'no';
17
- $sfsi_plus_email_display = isset($_POST["sfsi_plus_email_display"]) ? sanitize_text_field($_POST["sfsi_plus_email_display"]) : 'no';
18
- $sfsi_plus_facebook_display = isset($_POST["sfsi_plus_facebook_display"]) ? sanitize_text_field($_POST["sfsi_plus_facebook_display"]) : 'no';
19
- $sfsi_plus_twitter_display = isset($_POST["sfsi_plus_twitter_display"]) ? sanitize_text_field($_POST["sfsi_plus_twitter_display"]) : 'no';
20
- $sfsi_plus_youtube_display = isset($_POST["sfsi_plus_youtube_display"]) ? sanitize_text_field($_POST["sfsi_plus_youtube_display"]) : 'no';
21
- $sfsi_plus_pinterest_display = isset($_POST["sfsi_plus_pinterest_display"]) ? sanitize_text_field($_POST["sfsi_plus_pinterest_display"]) : 'no';
22
- $sfsi_plus_instagram_display = isset($_POST["sfsi_plus_instagram_display"]) ? sanitize_text_field($_POST["sfsi_plus_instagram_display"]) : 'no';
23
- $sfsi_plus_houzz_display = isset($_POST["sfsi_plus_houzz_display"]) ? sanitize_text_field($_POST["sfsi_plus_houzz_display"]) : 'no';
24
- $sfsi_plus_telegram_display = isset($_POST["sfsi_plus_telegram_display"]) ? sanitize_text_field($_POST["sfsi_plus_telegram_display"]) : 'no';
25
- $sfsi_plus_vk_display = isset($_POST["sfsi_plus_vk_display"]) ? sanitize_text_field($_POST["sfsi_plus_vk_display"]) : 'no';
26
- $sfsi_plus_ok_display = isset($_POST["sfsi_plus_ok_display"]) ? sanitize_text_field($_POST["sfsi_plus_ok_display"]) : 'no';
27
- $sfsi_plus_weibo_display = isset($_POST["sfsi_plus_weibo_display"]) ? sanitize_text_field($_POST["sfsi_plus_weibo_display"]) : 'no';
28
- $sfsi_plus_wechat_display = isset($_POST["sfsi_plus_wechat_display"]) ? sanitize_text_field($_POST["sfsi_plus_wechat_display"]) : 'no';
29
- $sfsi_plus_houzz_display = isset($_POST["sfsi_plus_houzz_display"]) ? sanitize_text_field($_POST["sfsi_plus_houzz_display"]) : 'no';
30
- $sfsi_plus_linkedin_display = isset($_POST["sfsi_plus_linkedin_display"]) ? sanitize_text_field($_POST["sfsi_plus_linkedin_display"]) : 'no';
31
-
32
- $sfsi_custom_icons = isset($option1['sfsi_custom_files']) ? $option1['sfsi_custom_files'] : '';
33
- $up_option1 = array(
34
- 'sfsi_plus_rss_display' => sanitize_text_field($sfsi_plus_rss_display),
35
- 'sfsi_plus_email_display' => sanitize_text_field($sfsi_plus_email_display),
36
- 'sfsi_plus_facebook_display' => sanitize_text_field($sfsi_plus_facebook_display),
37
- 'sfsi_plus_twitter_display' => sanitize_text_field($sfsi_plus_twitter_display),
38
- 'sfsi_plus_youtube_display' => sanitize_text_field($sfsi_plus_youtube_display),
39
- 'sfsi_plus_pinterest_display' => sanitize_text_field($sfsi_plus_pinterest_display),
40
- 'sfsi_plus_linkedin_display' => sanitize_text_field($sfsi_plus_linkedin_display),
41
- 'sfsi_plus_instagram_display' => sanitize_text_field($sfsi_plus_instagram_display),
42
- 'sfsi_plus_ok_display' => sanitize_text_field($sfsi_plus_ok_display),
43
- 'sfsi_plus_telegram_display' => sanitize_text_field($sfsi_plus_telegram_display),
44
- 'sfsi_plus_vk_display' => sanitize_text_field($sfsi_plus_vk_display),
45
- 'sfsi_plus_wechat_display' => sanitize_text_field($sfsi_plus_wechat_display),
46
- 'sfsi_plus_weibo_display' => sanitize_text_field($sfsi_plus_weibo_display),
47
- 'sfsi_plus_houzz_display' => sanitize_text_field($sfsi_plus_houzz_display),
48
- 'sfsi_custom_files' => $sfsi_custom_icons
49
- );
50
-
51
- $c = update_option('sfsi_plus_section1_options', serialize($up_option1));
52
-
53
- header('Content-Type: application/json');
54
- echo json_encode(array("success"));
55
- exit;
56
- }
57
- /* save settings for section 2 */
58
- add_action('wp_ajax_plus_updateSrcn2', 'sfsi_plus_options_updater2');
59
- function sfsi_plus_options_updater2()
60
- {
61
- if (!wp_verify_nonce($_POST['nonce'], "update_plus_step2")) {
62
- echo json_encode(array("wrong_nonce"));
63
- exit;
64
- }
65
- if (!current_user_can('manage_options')) {
66
- echo json_encode(array('res' => 'not allowed'));
67
- die();
68
- }
69
- $sfsi_plus_rss_url = isset($_POST["sfsi_plus_rss_url"]) ? esc_url(trim($_POST["sfsi_plus_rss_url"])) : '';
70
- $sfsi_plus_rss_icons = isset($_POST["sfsi_plus_rss_icons"]) ? sanitize_text_field($_POST["sfsi_plus_rss_icons"]) : 'email';
71
-
72
- $sfsi_plus_facebookPage_option = isset($_POST["sfsi_plus_facebookPage_option"]) ? sanitize_text_field($_POST["sfsi_plus_facebookPage_option"]) : 'no';
73
- $sfsi_plus_facebookPage_url = isset($_POST["sfsi_plus_facebookPage_url"]) ? esc_url(trim($_POST["sfsi_plus_facebookPage_url"])) : '';
74
- $sfsi_plus_facebookLike_option = isset($_POST["sfsi_plus_facebookLike_option"]) ? sanitize_text_field($_POST["sfsi_plus_facebookLike_option"]) : 'no';
75
- $sfsi_plus_facebookShare_option = isset($_POST["sfsi_plus_facebookShare_option"]) ? sanitize_text_field($_POST["sfsi_plus_facebookShare_option"]) : 'no';
76
-
77
- $sfsi_plus_twitter_followme = isset($_POST["sfsi_plus_twitter_followme"]) ? sanitize_text_field($_POST["sfsi_plus_twitter_followme"]) : 'no';
78
- $sfsi_plus_twitter_followUserName = isset($_POST["sfsi_plus_twitter_followUserName"]) ? sanitize_text_field(trim($_POST["sfsi_plus_twitter_followUserName"])) : '';
79
- $sfsi_plus_twitter_aboutPage = isset($_POST["sfsi_plus_twitter_aboutPage"]) ? sanitize_text_field($_POST["sfsi_plus_twitter_aboutPage"]) : 'no';
80
- $sfsi_plus_twitter_page = isset($_POST["sfsi_plus_twitter_page"]) ? sanitize_text_field($_POST["sfsi_plus_twitter_page"]) : 'no';
81
- $sfsi_plus_twitter_pageURL = isset($_POST["sfsi_plus_twitter_pageURL"]) ? esc_url(trim($_POST["sfsi_plus_twitter_pageURL"])) : '';
82
- $sfsi_plus_twitter_aboutPageText = isset($_POST["sfsi_plus_twitter_aboutPageText"]) ? sanitize_text_field($_POST["sfsi_plus_twitter_aboutPageText"]) : 'Hey check out this cool site I found';
83
-
84
- $sfsi_plus_youtube_pageUrl = isset($_POST["sfsi_plus_youtube_pageUrl"]) ? esc_url(trim($_POST["sfsi_plus_youtube_pageUrl"])) : '';
85
- $sfsi_plus_youtube_page = isset($_POST["sfsi_plus_youtube_page"]) ? sanitize_text_field($_POST["sfsi_plus_youtube_page"]) : 'no';
86
- $sfsi_plus_youtube_follow = isset($_POST["sfsi_plus_youtube_follow"]) ? sanitize_text_field($_POST["sfsi_plus_youtube_follow"]) : 'no';
87
-
88
- $sfsi_plus_pinterest_page = isset($_POST["sfsi_plus_pinterest_page"]) ? sanitize_text_field($_POST["sfsi_plus_pinterest_page"]) : 'no';
89
- $sfsi_plus_pinterest_pageUrl = isset($_POST["sfsi_plus_pinterest_pageUrl"]) ? esc_url(trim($_POST["sfsi_plus_pinterest_pageUrl"])) : '';
90
- $sfsi_plus_pinterest_pingBlog = isset($_POST["sfsi_plus_pinterest_pingBlog"]) ? sanitize_text_field($_POST["sfsi_plus_pinterest_pingBlog"]) : 'no';
91
-
92
- $sfsi_plus_instagram_pageUrl = isset($_POST["sfsi_plus_instagram_pageUrl"]) ? esc_url(trim($_POST["sfsi_plus_instagram_pageUrl"])) : '';
93
-
94
- $sfsi_plus_linkedin_page = isset($_POST["sfsi_plus_linkedin_page"]) ? sanitize_text_field($_POST["sfsi_plus_linkedin_page"]) : 'no';
95
- $sfsi_plus_linkedin_pageURL = isset($_POST["sfsi_plus_linkedin_pageURL"]) ? esc_url(trim($_POST["sfsi_plus_linkedin_pageURL"])) : '';
96
- $sfsi_plus_linkedin_follow = isset($_POST["sfsi_plus_linkedin_follow"]) ? sanitize_text_field($_POST["sfsi_plus_linkedin_follow"]) : 'no';
97
- $sfsi_plus_linkedin_SharePage = isset($_POST["sfsi_plus_linkedin_SharePage"]) ? sanitize_text_field($_POST["sfsi_plus_linkedin_SharePage"]) : 'no';
98
-
99
- $sfsi_plus_linkedin_followCompany = isset($_POST["sfsi_plus_linkedin_followCompany"])
100
- ? intval(
101
- trim($_POST["sfsi_plus_linkedin_followCompany"])
102
- ) : '';
103
- $sfsi_plus_linkedin_recommendBusines = isset($_POST["sfsi_plus_linkedin_recommendBusines"])
104
- ? sanitize_text_field(
105
- $_POST["sfsi_plus_linkedin_recommendBusines"]
106
- ) : 'no';
107
- $sfsi_plus_linkedin_recommendCompany = isset($_POST["sfsi_plus_linkedin_recommendCompany"])
108
- ? sanitize_text_field(
109
- trim($_POST["sfsi_plus_linkedin_recommendCompany"])
110
- ) : '';
111
- $sfsi_plus_linkedin_recommendProductId = isset($_POST["sfsi_plus_linkedin_recommendProductId"])
112
- ? intval(
113
- trim($_POST["sfsi_plus_linkedin_recommendProductId"])
114
- ) : '';
115
-
116
- $sfsi_plus_youtubeusernameorid = isset($_POST["sfsi_plus_youtubeusernameorid"]) ? sanitize_text_field(trim($_POST["sfsi_plus_youtubeusernameorid"])) : '';
117
- $sfsi_plus_ytube_user = isset($_POST["sfsi_plus_ytube_user"]) ? sanitize_text_field($_POST["sfsi_plus_ytube_user"]) : '';
118
- $sfsi_plus_ytube_chnlid = isset($_POST["sfsi_plus_ytube_chnlid"]) ? sanitize_text_field($_POST["sfsi_plus_ytube_chnlid"]) : '';
119
-
120
- $sfsi_plus_okVisit_option = isset($_POST["sfsi_plus_okVisit_option"]) ? sanitize_text_field($_POST["sfsi_plus_okVisit_option"]) : 'no';
121
- $sfsi_plus_okVisit_url = isset($_POST["sfsi_plus_okVisit_url"]) ? esc_url($_POST["sfsi_plus_okVisit_url"]) : '';
122
-
123
- $sfsi_plus_okSubscribe_option = isset($_POST["sfsi_plus_okSubscribe_option"]) ? sanitize_text_field($_POST["sfsi_plus_okSubscribe_option"]) : 'no';
124
- $sfsi_plus_okSubscribe_userid = isset($_POST["sfsi_plus_okSubscribe_userid"]) ? sanitize_text_field($_POST["sfsi_plus_okSubscribe_userid"]) : '';
125
-
126
- $sfsi_plus_okLike_option = isset($_POST["sfsi_plus_okLike_option"]) ? sanitize_text_field($_POST["sfsi_plus_okLike_option"]) : 'no';
127
-
128
- $sfsi_plus_telegramShare_option = isset($_POST["sfsi_plus_telegramShare_option"]) ? sanitize_text_field($_POST["sfsi_plus_telegramShare_option"]) : 'no';
129
- $sfsi_plus_telegramMessage_option = isset($_POST["sfsi_plus_telegramMessage_option"]) ? sanitize_text_field($_POST["sfsi_plus_telegramMessage_option"]) : 'no';
130
- $sfsi_plus_telegram_message = isset($_POST["sfsi_plus_telegram_message"]) ? sanitize_text_field($_POST["sfsi_plus_telegram_message"]) : '';
131
- $sfsi_plus_telegram_username = isset($_POST["sfsi_plus_telegram_username"]) ? sanitize_text_field($_POST["sfsi_plus_telegram_username"]) : '';
132
-
133
-
134
- $sfsi_plus_vkVisit_option = isset($_POST["sfsi_plus_vkVisit_option"]) ? sanitize_text_field($_POST["sfsi_plus_vkVisit_option"]) : 'no';
135
- $sfsi_plus_vkShare_option = isset($_POST["sfsi_plus_vkShare_option"]) ? sanitize_text_field($_POST["sfsi_plus_vkShare_option"]) : 'no';
136
- $sfsi_plus_vkLike_option = isset($_POST["sfsi_plus_vkLike_option"]) ? sanitize_text_field($_POST["sfsi_plus_vkLike_option"]) : 'no';
137
- $sfsi_plus_vkVisit_url = isset($_POST["sfsi_plus_vkVisit_url"]) ? sanitize_text_field($_POST["sfsi_plus_vkVisit_url"]) : '';
138
-
139
-
140
- $sfsi_plus_weiboVisit_option = isset($_POST["sfsi_plus_weiboVisit_option"]) ? sanitize_text_field($_POST["sfsi_plus_weiboVisit_option"]) : 'no';
141
- $sfsi_plus_weiboShare_option = isset($_POST["sfsi_plus_weiboShare_option"]) ? sanitize_text_field($_POST["sfsi_plus_weiboShare_option"]) : 'no';
142
- $sfsi_plus_weiboLike_option = isset($_POST["sfsi_plus_weiboLike_option"]) ? sanitize_text_field($_POST["sfsi_plus_weiboLike_option"]) : 'no';
143
- $sfsi_plus_weiboVisit_url = isset($_POST["sfsi_plus_weiboVisit_url"]) ? sanitize_text_field($_POST["sfsi_plus_weiboVisit_url"]) : '';;
144
- $sfsi_plus_wechatFollow_option = isset($_POST["sfsi_plus_wechatFollow_option"]) ? sanitize_text_field($_POST["sfsi_plus_wechatFollow_option"]) : 'no';
145
- $sfsi_plus_wechatShare_option = isset($_POST["sfsi_plus_wechatShare_option"]) ? sanitize_text_field($_POST["sfsi_plus_wechatShare_option"]) : 'no';
146
- $sfsi_plus_wechat_scan_image = isset($_POST["sfsi_plus_wechat_scan_image"]) ? sanitize_text_field($_POST["sfsi_plus_wechat_scan_image"]) : '';
147
-
148
- /*
149
- * Escape custom icons url
150
- */
151
- if (
152
- isset($_POST["sfsi_plus_custom_links"]) &&
153
- !empty($_POST["sfsi_plus_custom_links"])
154
- ) {
155
- $esacpedUrls = array();
156
- $sfsi_plus_CustomIcon_links = $_POST["sfsi_plus_custom_links"];
157
-
158
- foreach ($sfsi_plus_CustomIcon_links as $key => $sfsi_pluscustomIconUrl) {
159
- $esacpedUrls[$key] = esc_url($sfsi_pluscustomIconUrl);
160
- }
161
- } else {
162
- $esacpedUrls = '';
163
- }
164
- $sfsi_plus_CustomIcon_links = isset($_POST["sfsi_plus_custom_links"]) ? serialize($esacpedUrls) : '';
165
- $sfsi_plus_houzz_pageUrl = isset($_POST["sfsi_plus_houzz_pageUrl"]) ? esc_url(trim($_POST["sfsi_plus_houzz_pageUrl"])) : '';
166
-
167
- $option2 = unserialize(get_option('sfsi_plus_section2_options', false));
168
- $up_option2 = array(
169
- 'sfsi_plus_rss_url' => esc_url($sfsi_plus_rss_url),
170
- 'sfsi_rss_blogName' => '',
171
- 'sfsi_rss_blogEmail' => '',
172
- 'sfsi_plus_rss_icons' => sanitize_text_field($sfsi_plus_rss_icons),
173
- 'sfsi_plus_email_url' => esc_url($option2['sfsi_plus_email_url']),
174
- /* facebook buttons options */
175
- 'sfsi_plus_facebookPage_option' => sanitize_text_field($sfsi_plus_facebookPage_option),
176
- 'sfsi_plus_facebookPage_url' => esc_url($sfsi_plus_facebookPage_url),
177
- 'sfsi_plus_facebookLike_option' => sanitize_text_field($sfsi_plus_facebookLike_option),
178
- 'sfsi_plus_facebookShare_option' => sanitize_text_field($sfsi_plus_facebookShare_option),
179
-
180
- /* Twitter buttons options */
181
- 'sfsi_plus_twitter_followme' => sanitize_text_field($sfsi_plus_twitter_followme),
182
- 'sfsi_plus_twitter_followUserName' => sanitize_text_field($sfsi_plus_twitter_followUserName),
183
- 'sfsi_plus_twitter_aboutPage' => sanitize_text_field($sfsi_plus_twitter_aboutPage),
184
- 'sfsi_plus_twitter_page' => sanitize_text_field($sfsi_plus_twitter_page),
185
- 'sfsi_plus_twitter_pageURL' => esc_url($sfsi_plus_twitter_pageURL),
186
- 'sfsi_plus_twitter_aboutPageText' => sanitize_text_field($sfsi_plus_twitter_aboutPageText),
187
-
188
- /* youtube options */
189
- 'sfsi_plus_youtube_pageUrl' => esc_url($sfsi_plus_youtube_pageUrl),
190
- 'sfsi_plus_youtube_page' => sanitize_text_field($sfsi_plus_youtube_page),
191
- 'sfsi_plus_youtube_follow' => sanitize_text_field($sfsi_plus_youtube_follow),
192
- 'sfsi_plus_ytube_user' => sanitize_text_field($sfsi_plus_ytube_user),
193
- 'sfsi_plus_youtubeusernameorid' => sanitize_text_field($sfsi_plus_youtubeusernameorid),
194
- 'sfsi_plus_ytube_chnlid' => sanitize_text_field($sfsi_plus_ytube_chnlid),
195
-
196
- /* pinterest options */
197
- 'sfsi_plus_pinterest_page' => sanitize_text_field($sfsi_plus_pinterest_page),
198
- 'sfsi_plus_pinterest_pageUrl' => esc_url($sfsi_plus_pinterest_pageUrl),
199
- 'sfsi_plus_pinterest_pingBlog' => sanitize_text_field($sfsi_plus_pinterest_pingBlog),
200
-
201
- /* instagram and houzz options */
202
- 'sfsi_plus_instagram_pageUrl' => esc_url($sfsi_plus_instagram_pageUrl),
203
- 'sfsi_plus_houzz_pageUrl' => esc_url($sfsi_plus_houzz_pageUrl),
204
- //MZ CODE START
205
-
206
- /** OK */
207
- 'sfsi_plus_okVisit_option' => sanitize_text_field($sfsi_plus_okVisit_option),
208
- 'sfsi_plus_okVisit_url' => sanitize_text_field($sfsi_plus_okVisit_url),
209
- 'sfsi_plus_okSubscribe_option' => sanitize_text_field($sfsi_plus_okSubscribe_option),
210
- 'sfsi_plus_okSubscribe_userid' => sanitize_text_field($sfsi_plus_okSubscribe_userid),
211
- 'sfsi_plus_okLike_option' => sanitize_text_field($sfsi_plus_okLike_option),
212
-
213
- /* telegram */
214
- 'sfsi_plus_telegramShare_option' => sanitize_text_field($sfsi_plus_telegramShare_option),
215
- 'sfsi_plus_telegramMessage_option' => sanitize_text_field($sfsi_plus_telegramMessage_option),
216
- 'sfsi_plus_telegram_message' => sanitize_text_field($sfsi_plus_telegram_message),
217
- 'sfsi_plus_telegram_username' => sanitize_text_field($sfsi_plus_telegram_username),
218
-
219
- /* VK */
220
- 'sfsi_plus_vkVisit_option' => sanitize_text_field($sfsi_plus_vkVisit_option),
221
- 'sfsi_plus_vkShare_option' => sanitize_text_field($sfsi_plus_vkShare_option),
222
- 'sfsi_plus_vkLike_option' => sanitize_text_field($sfsi_plus_vkLike_option),
223
- 'sfsi_plus_vkVisit_url' => sanitize_text_field($sfsi_plus_vkVisit_url),
224
-
225
- /** Weibo */
226
- 'sfsi_plus_weiboVisit_option' => sanitize_text_field($sfsi_plus_weiboVisit_option),
227
- 'sfsi_plus_weiboShare_option' => sanitize_text_field($sfsi_plus_weiboShare_option),
228
- 'sfsi_plus_weiboLike_option' => sanitize_text_field($sfsi_plus_weiboLike_option),
229
- 'sfsi_plus_weiboVisit_url' => sanitize_text_field($sfsi_plus_weiboVisit_url),
230
-
231
- /**Wechat */
232
- 'sfsi_plus_wechatFollow_option' => sanitize_text_field($sfsi_plus_wechatFollow_option),
233
- 'sfsi_plus_wechatShare_option' => sanitize_text_field($sfsi_plus_wechatShare_option),
234
- 'sfsi_plus_wechat_scan_image' => sanitize_text_field($sfsi_plus_wechat_scan_image),
235
-
236
-
237
- //MZ CODE END
238
- /* linkedIn options */
239
- 'sfsi_plus_linkedin_page' => sanitize_text_field($sfsi_plus_linkedin_page),
240
- 'sfsi_plus_linkedin_pageURL' => esc_url($sfsi_plus_linkedin_pageURL),
241
- 'sfsi_plus_linkedin_follow' => sanitize_text_field($sfsi_plus_linkedin_follow),
242
- 'sfsi_plus_linkedin_followCompany' => intval($sfsi_plus_linkedin_followCompany),
243
- 'sfsi_plus_linkedin_SharePage' => sanitize_text_field($sfsi_plus_linkedin_SharePage),
244
- 'sfsi_plus_linkedin_recommendBusines' => sanitize_text_field($sfsi_plus_linkedin_recommendBusines),
245
- 'sfsi_plus_linkedin_recommendCompany' => sanitize_text_field($sfsi_plus_linkedin_recommendCompany),
246
- 'sfsi_plus_linkedin_recommendProductId' => intval($sfsi_plus_linkedin_recommendProductId),
247
- 'sfsi_plus_CustomIcon_links' => $sfsi_plus_CustomIcon_links
248
- );
249
- update_option('sfsi_plus_section2_options', serialize($up_option2));
250
- $option4 = unserialize(get_option('sfsi_plus_section4_options', false));
251
-
252
- $option4['sfsi_plus_youtubeusernameorid'] = sanitize_text_field($sfsi_plus_youtubeusernameorid);
253
- $option4['sfsi_plus_ytube_chnlid'] = sfsi_plus_sanitize_field($sfsi_plus_ytube_chnlid);
254
- update_option('sfsi_plus_section4_options', serialize($option4));
255
-
256
- header('Content-Type: application/json');
257
- echo json_encode(array("success"));
258
- exit;
259
- }
260
- /* save settings for section 3 */
261
- add_action('wp_ajax_plus_updateSrcn3', 'sfsi_plus_options_updater3');
262
- function sfsi_plus_options_updater3()
263
- {
264
- if (!wp_verify_nonce($_POST['nonce'], "update_plus_step3")) {
265
- echo json_encode(array("wrong_nonce"));
266
- exit;
267
- }
268
- if (!current_user_can('manage_options')) {
269
- echo json_encode(array('res' => 'not allowed'));
270
- die();
271
- }
272
- $sfsi_plus_actvite_theme = isset($_POST["sfsi_plus_actvite_theme"]) ? sanitize_text_field($_POST["sfsi_plus_actvite_theme"]) : 'no';
273
- $sfsi_plus_mouseOver = isset($_POST["sfsi_plus_mouseOver"]) ? sanitize_text_field($_POST["sfsi_plus_mouseOver"]) : 'no';
274
-
275
- $sfsi_plus_mouseOver_effect = isset($_POST["sfsi_plus_mouseOver_effect"]) ? sanitize_text_field($_POST["sfsi_plus_mouseOver_effect"]) : 'fade_in';
276
-
277
- $sfsi_plus_mouseover_effect_type = isset($_POST["sfsi_plus_mouseover_effect_type"]) ? sanitize_text_field($_POST["sfsi_plus_mouseover_effect_type"]) : 'same_icons';
278
-
279
- $sfsi_plus_shuffle_icons = isset($_POST["sfsi_plus_shuffle_icons"]) ? sanitize_text_field($_POST["sfsi_plus_shuffle_icons"]) : 'no';
280
- $sfsi_plus_shuffle_Firstload = isset($_POST["sfsi_plus_shuffle_Firstload"]) ? sanitize_text_field($_POST["sfsi_plus_shuffle_Firstload"]) : 'no';
281
- $sfsi_plus_shuffle_interval = isset($_POST["sfsi_plus_shuffle_interval"]) ? sanitize_text_field($_POST["sfsi_plus_shuffle_interval"]) : 'no';
282
- $sfsi_plus_shuffle_intervalTime = isset($_POST["sfsi_plus_shuffle_intervalTime"]) ? intval($_POST["sfsi_plus_shuffle_intervalTime"]) : '';
283
- $sfsi_plus_specialIcon_animation = isset($_POST["sfsi_plus_specialIcon_animation"]) ? sanitize_text_field($_POST["sfsi_plus_specialIcon_animation"]) : '';
284
- $sfsi_plus_specialIcon_MouseOver = isset($_POST["sfsi_plus_specialIcon_MouseOver"]) ? sanitize_text_field($_POST["sfsi_plus_specialIcon_MouseOver"]) : 'no';
285
- $sfsi_plus_specialIcon_Firstload = isset($_POST["sfsi_plus_specialIcon_Firstload"]) ? sanitize_text_field($_POST["sfsi_plus_specialIcon_Firstload"]) : 'no';
286
-
287
- $sfsi_plus_specialIcon_Firstload_Icons = isset($_POST["sfsi_plus_specialIcon_Firstload_Icons"])
288
- ? sanitize_text_field(
289
- $_POST["sfsi_plus_specialIcon_Firstload_Icons"]
290
- ) : 'all';
291
- $sfsi_plus_specialIcon_interval = isset($_POST["sfsi_plus_specialIcon_interval"])
292
- ? sanitize_text_field(
293
- $_POST["sfsi_plus_specialIcon_interval"]
294
- ) : 'no';
295
- $sfsi_plus_specialIcon_intervalTime = isset($_POST["sfsi_plus_specialIcon_intervalTime"])
296
- ? sanitize_text_field(
297
- $_POST["sfsi_plus_specialIcon_intervalTime"]
298
- ) : '';
299
- $sfsi_plus_specialIcon_intervalIcons = isset($_POST["sfsi_plus_specialIcon_intervalIcons"])
300
- ? sanitize_text_field(
301
- $_POST["sfsi_plus_specialIcon_intervalIcons"]
302
- ) : 'all';
303
-
304
- /* Design and animation option */
305
- $up_option3 = array(
306
- 'sfsi_plus_actvite_theme' => sanitize_text_field($sfsi_plus_actvite_theme),
307
- /* animations options */
308
- 'sfsi_plus_mouseOver' => sanitize_text_field($sfsi_plus_mouseOver),
309
- 'sfsi_plus_mouseOver_effect' => sanitize_text_field($sfsi_plus_mouseOver_effect),
310
- 'sfsi_plus_mouseover_effect_type' => sanitize_text_field($sfsi_plus_mouseover_effect_type),
311
- 'sfsi_plus_shuffle_icons' => sanitize_text_field($sfsi_plus_shuffle_icons),
312
- 'sfsi_plus_shuffle_Firstload' => sanitize_text_field($sfsi_plus_shuffle_Firstload),
313
- 'sfsi_plus_shuffle_interval' => sanitize_text_field($sfsi_plus_shuffle_interval),
314
- 'sfsi_plus_shuffle_intervalTime' => intval($sfsi_plus_shuffle_intervalTime),
315
- 'sfsi_plus_specialIcon_animation' => sanitize_text_field($sfsi_plus_specialIcon_animation),
316
- 'sfsi_plus_specialIcon_MouseOver' => sanitize_text_field($sfsi_plus_specialIcon_MouseOver),
317
- 'sfsi_plus_specialIcon_Firstload' => sanitize_text_field($sfsi_plus_specialIcon_Firstload),
318
- 'sfsi_plus_specialIcon_Firstload_Icons' => sanitize_text_field($sfsi_plus_specialIcon_Firstload_Icons),
319
- 'sfsi_plus_specialIcon_interval' => sanitize_text_field($sfsi_plus_specialIcon_interval),
320
- 'sfsi_plus_specialIcon_intervalTime' => sanitize_text_field($sfsi_plus_specialIcon_intervalTime),
321
- 'sfsi_plus_specialIcon_intervalIcons' => sanitize_text_field($sfsi_plus_specialIcon_intervalIcons),
322
- );
323
- update_option('sfsi_plus_section3_options', serialize($up_option3));
324
- header('Content-Type: application/json');
325
- echo json_encode(array("success"));
326
- exit;
327
- }
328
- /* save settings for section 4 */
329
- add_action('wp_ajax_plus_updateSrcn4', 'sfsi_plus_options_updater4');
330
- function sfsi_plus_options_updater4()
331
- {
332
- if (!wp_verify_nonce($_POST['nonce'], "update_plus_step4")) {
333
- echo json_encode(array("wrong_nonce"));
334
- exit;
335
- }
336
- if (!current_user_can('manage_options')) {
337
- echo json_encode(array('res' => 'not allowed'));
338
- die();
339
- }
340
- $sfsi_plus_display_counts = isset($_POST["sfsi_plus_display_counts"]) ? sanitize_text_field($_POST["sfsi_plus_display_counts"]) : 'no';
341
-
342
- $sfsi_plus_email_countsDisplay = isset($_POST["sfsi_plus_email_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_email_countsDisplay"]) : 'no';
343
- $sfsi_plus_email_countsFrom = isset($_POST["sfsi_plus_email_countsFrom"]) ? sanitize_text_field($_POST["sfsi_plus_email_countsFrom"]) : 'manual';
344
- $sfsi_plus_email_manualCounts = isset($_POST["sfsi_plus_email_manualCounts"]) ? intval(trim($_POST["sfsi_plus_email_manualCounts"])) : '';
345
-
346
- $sfsi_plus_rss_countsDisplay = isset($_POST["sfsi_plus_rss_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_rss_countsDisplay"]) : 'no';
347
- $sfsi_plus_rss_manualCounts = isset($_POST["sfsi_plus_rss_manualCounts"]) ? intval(trim($_POST["sfsi_plus_rss_manualCounts"])) : '';
348
-
349
- $sfsi_plus_facebook_countsDisplay = isset($_POST["sfsi_plus_facebook_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_facebook_countsDisplay"]) : 'no';
350
- $sfsi_plus_facebook_countsFrom = isset($_POST["sfsi_plus_facebook_countsFrom"]) ? sanitize_text_field($_POST["sfsi_plus_facebook_countsFrom"]) : 'manual';
351
- $sfsi_plus_facebook_mypageCounts = isset($_POST["sfsi_plus_facebook_mypageCounts"]) ? sanitize_text_field(trim($_POST["sfsi_plus_facebook_mypageCounts"])) : '';
352
- $sfsi_plus_facebook_manualCounts = isset($_POST["sfsi_plus_facebook_manualCounts"]) ? intval(trim($_POST["sfsi_plus_facebook_manualCounts"])) : '';
353
- $sfsi_plus_facebook_PageLink = isset($_POST["sfsi_plus_facebook_PageLink"]) ? sanitize_text_field(trim($_POST["sfsi_plus_facebook_PageLink"])) : '';
354
-
355
- $sfsi_plus_twitter_countsDisplay = isset($_POST["sfsi_plus_twitter_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_twitter_countsDisplay"]) : 'no';
356
- $sfsi_plus_twitter_countsFrom = isset($_POST["sfsi_plus_twitter_countsFrom"]) ? sanitize_text_field($_POST["sfsi_plus_twitter_countsFrom"]) : 'manual';
357
- $sfsi_plus_twitter_manualCounts = isset($_POST["sfsi_plus_twitter_manualCounts"]) ? intval(trim($_POST["sfsi_plus_twitter_manualCounts"])) : '';
358
- $sfsiplus_tw_consumer_key = isset($_POST["sfsiplus_tw_consumer_key"]) ? sanitize_text_field(trim($_POST["sfsiplus_tw_consumer_key"])) : '';
359
- $sfsiplus_tw_consumer_secret = isset($_POST["sfsiplus_tw_consumer_secret"]) ? sanitize_text_field(trim($_POST["sfsiplus_tw_consumer_secret"])) : '';
360
- $sfsiplus_tw_oauth_access_token = isset($_POST["sfsiplus_tw_oauth_access_token"]) ? sanitize_text_field(trim($_POST["sfsiplus_tw_oauth_access_token"])) : '';
361
- $sfsiplus_tw_oauth_access_token_secret = isset($_POST["sfsiplus_tw_oauth_access_token_secret"])
362
- ? sanitize_text_field(
363
- trim($_POST["sfsiplus_tw_oauth_access_token_secret"])
364
- ) : '';
365
-
366
- $sfsi_plus_linkedIn_countsDisplay = isset($_POST["sfsi_plus_linkedIn_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_linkedIn_countsDisplay"]) : 'no';
367
- $sfsi_plus_linkedIn_countsFrom = isset($_POST["sfsi_plus_linkedIn_countsFrom"]) ? sanitize_text_field($_POST["sfsi_plus_linkedIn_countsFrom"]) : 'manual';
368
- $sfsi_plus_linkedIn_manualCounts = isset($_POST["sfsi_plus_linkedIn_manualCounts"]) ? intval(trim($_POST["sfsi_plus_linkedIn_manualCounts"])) : '';
369
- $sfsi_plus_ln_company = isset($_POST["sfsi_plus_ln_company"]) ? sanitize_text_field(trim($_POST["sfsi_plus_ln_company"])) : '';
370
- $sfsi_plus_ln_api_key = isset($_POST["sfsi_plus_ln_api_key"]) ? sanitize_text_field(trim($_POST["sfsi_plus_ln_api_key"])) : '';
371
- $sfsi_plus_ln_secret_key = isset($_POST["sfsi_plus_ln_secret_key"]) ? sanitize_text_field(trim($_POST["sfsi_plus_ln_secret_key"])) : '';
372
- $sfsi_plus_ln_oAuth_user_token = isset($_POST["sfsi_plus_ln_oAuth_user_token"]) ? sanitize_text_field(trim($_POST["sfsi_plus_ln_oAuth_user_token"])) : '';
373
-
374
- $sfsi_plus_youtube_countsDisplay = isset($_POST["sfsi_plus_youtube_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_youtube_countsDisplay"]) : 'no';
375
- $sfsi_plus_youtube_countsFrom = isset($_POST["sfsi_plus_youtube_countsFrom"]) ? sanitize_text_field($_POST["sfsi_plus_youtube_countsFrom"]) : 'manual';
376
- $sfsi_plus_youtube_manualCounts = isset($_POST["sfsi_plus_youtube_manualCounts"]) ? intval($_POST["sfsi_plus_youtube_manualCounts"]) : '';
377
- $sfsi_plus_youtube_user = isset($_POST["sfsi_plus_youtube_user"]) ? sanitize_text_field(trim($_POST["sfsi_plus_youtube_user"])) : '';
378
- $sfsi_plus_youtube_channelId = isset($_POST["sfsi_plus_youtube_channelId"]) ? sanitize_text_field(trim($_POST["sfsi_plus_youtube_channelId"])) : '';
379
-
380
- $sfsi_plus_pinterest_countsDisplay = isset($_POST["sfsi_plus_pinterest_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_pinterest_countsDisplay"]) : 'no';
381
- $sfsi_plus_pinterest_countsFrom = isset($_POST["sfsi_plus_pinterest_countsFrom"]) ? sanitize_text_field($_POST["sfsi_plus_pinterest_countsFrom"]) : 'manual';
382
- $sfsi_plus_pinterest_manualCounts = isset($_POST["sfsi_plus_pinterest_manualCounts"]) ? intval(trim($_POST["sfsi_plus_pinterest_manualCounts"])) : '';
383
- $sfsi_plus_pinterest_user = isset($_POST["sfsi_plus_pinterest_user"]) ? sanitize_text_field(trim($_POST["sfsi_plus_pinterest_user"])) : '';
384
- $sfsi_plus_pinterest_board = isset($_POST["sfsi_plus_pinterest_board"]) ? sanitize_text_field(trim($_POST["sfsi_plus_pinterest_board"])) : '';
385
-
386
- $sfsi_plus_instagram_countsDisplay = isset($_POST["sfsi_plus_instagram_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_instagram_countsDisplay"]) : 'no';
387
- $sfsi_plus_instagram_countsFrom = isset($_POST["sfsi_plus_instagram_countsFrom"]) ? sanitize_text_field($_POST["sfsi_plus_instagram_countsFrom"]) : 'manual';
388
- $sfsi_plus_instagram_manualCounts = isset($_POST["sfsi_plus_instagram_manualCounts"]) ? intval(trim($_POST["sfsi_plus_instagram_manualCounts"])) : '';
389
- $sfsi_plus_instagram_User = isset($_POST["sfsi_plus_instagram_User"]) ? sanitize_text_field($_POST["sfsi_plus_instagram_User"]) : '';
390
- $sfsi_plus_instagram_clientid = isset($_POST["sfsi_plus_instagram_clientid"]) ? sanitize_text_field($_POST["sfsi_plus_instagram_clientid"]) : '';
391
- $sfsi_plus_instagram_appurl = isset($_POST["sfsi_plus_instagram_appurl"]) ? sanitize_text_field($_POST["sfsi_plus_instagram_appurl"]) : '';
392
- $sfsi_plus_instagram_token = isset($_POST["sfsi_plus_instagram_token"]) ? sanitize_text_field($_POST["sfsi_plus_instagram_token"]) : '';
393
-
394
- $sfsi_plus_houzz_countsDisplay = isset($_POST["sfsi_plus_houzz_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_houzz_countsDisplay"]) : 'no';
395
- $sfsi_plus_houzz_countsFrom = isset($_POST["sfsi_plus_houzz_countsFrom"]) ? sanitize_text_field($_POST["sfsi_plus_houzz_countsFrom"]) : 'manual';
396
- $sfsi_plus_houzz_manualCounts = isset($_POST["sfsi_plus_houzz_manualCounts"]) ? intval(trim($_POST["sfsi_plus_houzz_manualCounts"])) : '';
397
-
398
- $sfsi_plus_facebookPage_url = isset($_POST["sfsi_plus_facebookPage_url"]) ? sanitize_text_field(trim($_POST["sfsi_plus_facebookPage_url"])) : '';
399
-
400
- $sfsi_plus_telegram_countsDisplay = isset($_POST["sfsi_plus_telegram_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_telegram_countsDisplay"]) : 'no';
401
- $sfsi_plus_telegram_manualCounts = isset($_POST["sfsi_plus_telegram_manualCounts"]) ? intval(trim($_POST["sfsi_plus_telegram_manualCounts"])) : '';
402
-
403
- $sfsi_plus_vk_countsDisplay = isset($_POST["sfsi_plus_vk_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_vk_countsDisplay"]) : 'no';
404
- $sfsi_plus_vk_manualCounts = isset($_POST["sfsi_plus_vk_manualCounts"]) ? intval(trim($_POST["sfsi_plus_vk_manualCounts"])) : '';
405
-
406
- $sfsi_plus_ok_countsDisplay = isset($_POST["sfsi_plus_ok_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_ok_countsDisplay"]) : 'no';
407
- $sfsi_plus_ok_manualCounts = isset($_POST["sfsi_plus_ok_manualCounts"]) ? intval(trim($_POST["sfsi_plus_ok_manualCounts"])) : '';
408
-
409
- $sfsi_plus_wechat_countsDisplay = isset($_POST["sfsi_plus_wechat_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_wechat_countsDisplay"]) : 'no';
410
- $sfsi_plus_wechat_manualCounts = isset($_POST["sfsi_plus_wechat_manualCounts"]) ? intval(trim($_POST["sfsi_plus_wechat_manualCounts"])) : '';
411
-
412
- $sfsi_plus_weibo_countsDisplay = isset($_POST["sfsi_plus_weibo_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_weibo_countsDisplay"]) : 'no';
413
- $sfsi_plus_weibo_manualCounts = isset($_POST["sfsi_plus_weibo_manualCounts"]) ? intval(trim($_POST["sfsi_plus_weibo_manualCounts"])) : '';
414
- $up_option4 = array(
415
- 'sfsi_plus_display_counts' => sanitize_text_field($sfsi_plus_display_counts),
416
-
417
- 'sfsi_plus_email_countsDisplay' => sanitize_text_field($sfsi_plus_email_countsDisplay),
418
- 'sfsi_plus_email_countsFrom' => sanitize_text_field($sfsi_plus_email_countsFrom),
419
- 'sfsi_plus_email_manualCounts' => intval($sfsi_plus_email_manualCounts),
420
-
421
- 'sfsi_plus_rss_countsDisplay' => sanitize_text_field($sfsi_plus_rss_countsDisplay),
422
- 'sfsi_plus_rss_manualCounts' => intval($sfsi_plus_rss_manualCounts),
423
-
424
- 'sfsi_plus_facebook_countsDisplay' => sanitize_text_field($sfsi_plus_facebook_countsDisplay),
425
- 'sfsi_plus_facebook_countsFrom' => sanitize_text_field($sfsi_plus_facebook_countsFrom),
426
- 'sfsi_plus_facebook_mypageCounts' => sfsi_plus_sanitize_field($sfsi_plus_facebook_mypageCounts),
427
- 'sfsi_plus_facebook_manualCounts' => intval($sfsi_plus_facebook_manualCounts),
428
- //'sfsi_plus_facebook_PageLink' => $sfsi_plus_facebook_PageLink,
429
-
430
- 'sfsi_plus_twitter_countsDisplay' => sanitize_text_field($sfsi_plus_twitter_countsDisplay),
431
- 'sfsi_plus_twitter_countsFrom' => sanitize_text_field($sfsi_plus_twitter_countsFrom),
432
- 'sfsi_plus_twitter_manualCounts' => intval($sfsi_plus_twitter_manualCounts),
433
- 'sfsiplus_tw_consumer_key' => sfsi_plus_sanitize_field($sfsiplus_tw_consumer_key),
434
- 'sfsiplus_tw_consumer_secret' => sfsi_plus_sanitize_field($sfsiplus_tw_consumer_secret),
435
- 'sfsiplus_tw_oauth_access_token' => sfsi_plus_sanitize_field($sfsiplus_tw_oauth_access_token),
436
- 'sfsiplus_tw_oauth_access_token_secret' => sfsi_plus_sanitize_field($sfsiplus_tw_oauth_access_token_secret),
437
-
438
- /*'sfsi_plus_ln_company' => $sfsi_plus_ln_company,
439
- 'sfsi_plus_ln_api_key' => $sfsi_plus_ln_api_key,
440
- 'sfsi_plus_ln_secret_key' => $sfsi_plus_ln_secret_key,
441
- 'sfsi_plus_ln_oAuth_user_token' => $sfsi_plus_ln_oAuth_user_token,*/
442
- 'sfsi_plus_linkedIn_countsDisplay' => sanitize_text_field($sfsi_plus_linkedIn_countsDisplay),
443
- 'sfsi_plus_linkedIn_countsFrom' => sanitize_text_field($sfsi_plus_linkedIn_countsFrom),
444
- 'sfsi_plus_linkedIn_manualCounts' => intval($sfsi_plus_linkedIn_manualCounts),
445
-
446
- 'sfsi_plus_youtube_countsDisplay' => sanitize_text_field($sfsi_plus_youtube_countsDisplay),
447
- 'sfsi_plus_youtube_countsFrom' => sanitize_text_field($sfsi_plus_youtube_countsFrom),
448
- 'sfsi_plus_youtube_manualCounts' => intval($sfsi_plus_youtube_manualCounts),
449
- 'sfsi_plus_youtube_user' => sfsi_plus_sanitize_field($sfsi_plus_youtube_user),
450
- 'sfsi_plus_youtube_channelId' => sfsi_plus_sanitize_field($sfsi_plus_youtube_channelId),
451
-
452
- 'sfsi_plus_pinterest_countsDisplay' => sanitize_text_field($sfsi_plus_pinterest_countsDisplay),
453
- 'sfsi_plus_pinterest_countsFrom' => sanitize_text_field($sfsi_plus_pinterest_countsFrom),
454
- 'sfsi_plus_pinterest_manualCounts' => intval($sfsi_plus_pinterest_manualCounts),
455
- //'sfsi_plus_pinterest_user' => $sfsi_plus_pinterest_user,
456
- //'sfsi_plus_pinterest_board' => $sfsi_plus_pinterest_board,
457
-
458
- 'sfsi_plus_instagram_countsFrom' => sanitize_text_field($sfsi_plus_instagram_countsFrom),
459
- 'sfsi_plus_instagram_countsDisplay' => sanitize_text_field($sfsi_plus_instagram_countsDisplay),
460
- 'sfsi_plus_instagram_manualCounts' => intval($sfsi_plus_instagram_manualCounts),
461
- 'sfsi_plus_instagram_User' => sanitize_text_field($sfsi_plus_instagram_User),
462
- 'sfsi_plus_instagram_clientid' => sanitize_text_field($sfsi_plus_instagram_clientid),
463
- 'sfsi_plus_instagram_appurl' => sanitize_text_field($sfsi_plus_instagram_appurl),
464
- 'sfsi_plus_instagram_token' => sanitize_text_field($sfsi_plus_instagram_token),
465
-
466
- 'sfsi_plus_houzz_countsDisplay' => sanitize_text_field($sfsi_plus_houzz_countsDisplay),
467
- 'sfsi_plus_houzz_countsFrom' => sanitize_text_field($sfsi_plus_houzz_countsFrom),
468
- 'sfsi_plus_houzz_manualCounts' => intval($sfsi_plus_houzz_manualCounts),
469
-
470
- 'sfsi_plus_telegram_countsDisplay' => sanitize_text_field($sfsi_plus_telegram_countsDisplay),
471
- 'sfsi_plus_telegram_manualCounts' => intval($sfsi_plus_telegram_manualCounts),
472
-
473
- 'sfsi_plus_vk_countsDisplay' => sanitize_text_field($sfsi_plus_vk_countsDisplay),
474
- 'sfsi_plus_vk_manualCounts' => intval($sfsi_plus_vk_manualCounts),
475
-
476
- 'sfsi_plus_ok_countsDisplay' => sanitize_text_field($sfsi_plus_ok_countsDisplay),
477
- 'sfsi_plus_ok_manualCounts' => intval($sfsi_plus_ok_manualCounts),
478
-
479
- 'sfsi_plus_weibo_countsDisplay' => sanitize_text_field($sfsi_plus_weibo_countsDisplay),
480
- 'sfsi_plus_weibo_manualCounts' => intval($sfsi_plus_weibo_manualCounts),
481
-
482
- 'sfsi_plus_wechat_countsDisplay' => sanitize_text_field($sfsi_plus_wechat_countsDisplay),
483
- 'sfsi_plus_wechat_manualCounts' => intval($sfsi_plus_wechat_manualCounts),
484
- );
485
- update_option('sfsi_plus_section4_options', serialize($up_option4));
486
-
487
- $new_counts = sfsi_plus_getCounts();
488
- header('Content-Type: application/json');
489
- echo json_encode(array("res" => "success", 'counts' => $new_counts));
490
- exit;
491
- }
492
- /* save settings for section 5 */
493
- add_action('wp_ajax_plus_updateSrcn5', 'sfsi_plus_options_updater5');
494
- function sfsi_plus_options_updater5()
495
- {
496
- if (!wp_verify_nonce($_POST['nonce'], "update_plus_step5")) {
497
- echo json_encode(array("wrong_nonce"));
498
- exit;
499
- }
500
- if (!current_user_can('manage_options')) {
501
- echo json_encode(array('res' => 'not allowed'));
502
- die();
503
- }
504
- $sfsi_plus_icons_size = isset($_POST["sfsi_plus_icons_size"]) ? intval($_POST["sfsi_plus_icons_size"]) : '51';
505
- $sfsi_plus_icons_spacing = isset($_POST["sfsi_plus_icons_spacing"]) ? intval($_POST["sfsi_plus_icons_spacing"]) : '2';
506
- $sfsi_plus_icons_Alignment = isset($_POST["sfsi_plus_icons_Alignment"]) ? sanitize_text_field($_POST["sfsi_plus_icons_Alignment"]) : 'center';
507
- $sfsi_plus_icons_perRow = isset($_POST["sfsi_plus_icons_perRow"]) ? intval($_POST["sfsi_plus_icons_perRow"]) : '5';
508
-
509
- $sfsi_plus_icons_language = isset($_POST["sfsi_plus_icons_language"]) ? sanitize_text_field($_POST["sfsi_plus_icons_language"]) : 'en_US';
510
- $sfsi_plus_icons_ClickPageOpen = isset($_POST["sfsi_plus_icons_ClickPageOpen"]) ? sanitize_text_field($_POST["sfsi_plus_icons_ClickPageOpen"]) : 'no';
511
- $sfsi_plus_icons_float = isset($_POST["sfsi_plus_icons_float"]) ? sanitize_text_field($_POST["sfsi_plus_icons_float"]) : 'no';
512
- $sfsi_plus_disable_floaticons = isset($_POST["sfsi_plus_disable_floaticons"]) ? sanitize_text_field($_POST["sfsi_plus_disable_floaticons"]) : 'no';
513
- $sfsi_plus_disable_viewport = isset($_POST["sfsi_plus_disable_viewport"]) ? sanitize_text_field($_POST["sfsi_plus_disable_viewport"]) : 'no';
514
- $sfsi_plus_icons_floatPosition = isset($_POST["sfsi_plus_icons_floatPosition"]) ? sanitize_text_field($_POST["sfsi_plus_icons_floatPosition"]) : 'center-right';
515
- $sfsi_plus_icons_stick = isset($_POST["sfsi_plus_icons_stick"]) ? sanitize_text_field($_POST["sfsi_plus_icons_stick"]) : 'no';
516
- $sfsi_plus_rss_MouseOverText = isset($_POST["sfsi_plus_rss_MouseOverText"]) ? sanitize_text_field($_POST["sfsi_plus_rss_MouseOverText"]) : '';
517
- $sfsi_plus_email_MouseOverText = isset($_POST["sfsi_plus_email_MouseOverText"]) ? sanitize_text_field($_POST["sfsi_plus_email_MouseOverText"]) : '';
518
-
519
- $sfsi_plus_twitter_MouseOverText = isset($_POST["sfsi_plus_twitter_MouseOverText"]) ? sanitize_text_field($_POST["sfsi_plus_twitter_MouseOverText"]) : '';
520
- $sfsi_plus_facebook_MouseOverText = isset($_POST["sfsi_plus_facebook_MouseOverText"]) ? sanitize_text_field($_POST["sfsi_plus_facebook_MouseOverText"]) : '';
521
- $sfsi_plus_linkedIn_MouseOverText = isset($_POST["sfsi_plus_linkedIn_MouseOverText"]) ? sanitize_text_field($_POST["sfsi_plus_linkedIn_MouseOverText"]) : '';
522
- $sfsi_plus_pinterest_MouseOverText = isset($_POST["sfsi_plus_pinterest_MouseOverText"]) ? sanitize_text_field($_POST["sfsi_plus_pinterest_MouseOverText"]) : '';
523
- $sfsi_plus_instagram_MouseOverText = isset($_POST["sfsi_plus_instagram_MouseOverText"]) ? sanitize_text_field($_POST["sfsi_plus_instagram_MouseOverText"]) : '';
524
- $sfsi_plus_houzz_MouseOverText = isset($_POST["sfsi_plus_houzz_MouseOverText"]) ? sanitize_text_field($_POST["sfsi_plus_houzz_MouseOverText"]) : '';
525
- $sfsi_plus_youtube_MouseOverText = isset($_POST["sfsi_plus_youtube_MouseOverText"]) ? sanitize_text_field($_POST["sfsi_plus_youtube_MouseOverText"]) : '';
526
-
527
- if (isset($_POST["sfsi_plus_custom_orders"])) {
528
- $sfsi_plus_custom_orders = array();
529
- foreach ($_POST["sfsi_plus_custom_orders"] as $index => $custom_order) {
530
- $sfsi_plus_custom_orders[$index] = array();
531
- $sfsi_plus_custom_orders[$index]["order"] = intval($_POST["sfsi_plus_custom_orders"][$index]["order"]);
532
- $sfsi_plus_custom_orders[$index]["ele"] = intval($_POST["sfsi_plus_custom_orders"][$index]["ele"]);
533
- }
534
- }
535
- $sfsi_plus_custom_orders = isset($sfsi_plus_custom_orders) ? serialize($sfsi_plus_custom_orders) : '';
536
-
537
- $sfsi_plus_rssIcon_order = isset($_POST["sfsi_plus_rssIcon_order"]) ? intval($_POST["sfsi_plus_rssIcon_order"]) : '1';
538
- $sfsi_plus_emailIcon_order = isset($_POST["sfsi_plus_emailIcon_order"]) ? intval($_POST["sfsi_plus_emailIcon_order"]) : '2';
539
- $sfsi_plus_facebookIcon_order = isset($_POST["sfsi_plus_facebookIcon_order"]) ? intval($_POST["sfsi_plus_facebookIcon_order"]) : '3';
540
- $sfsi_plus_twitterIcon_order = isset($_POST["sfsi_plus_twitterIcon_order"]) ? intval($_POST["sfsi_plus_twitterIcon_order"]) : '5';
541
- $sfsi_plus_youtubeIcon_order = isset($_POST["sfsi_plus_youtubeIcon_order"]) ? intval($_POST["sfsi_plus_youtubeIcon_order"]) : '7';
542
- $sfsi_plus_pinterestIcon_order = isset($_POST["sfsi_plus_pinterestIcon_order"]) ? intval($_POST["sfsi_plus_pinterestIcon_order"]) : '8';
543
- $sfsi_plus_linkedinIcon_order = isset($_POST["sfsi_plus_linkedinIcon_order"]) ? intval($_POST["sfsi_plus_linkedinIcon_order"]) : '9';
544
- $sfsi_plus_instagramIcon_order = isset($_POST["sfsi_plus_instagramIcon_order"]) ? intval($_POST["sfsi_plus_instagramIcon_order"]) : '10';
545
- $sfsi_plus_houzzIcon_order = isset($_POST["sfsi_plus_houzzIcon_order"]) ? intval($_POST["sfsi_plus_houzzIcon_order"]) : '11';
546
- $sfsi_plus_telegramIcon_order = isset($_POST["sfsi_plus_telegramIcon_order"]) ? intval($_POST["sfsi_plus_telegramIcon_order"]) : '22';
547
- $sfsi_plus_vkIcon_order = isset($_POST["sfsi_plus_vkIcon_order"]) ? intval($_POST["sfsi_plus_vkIcon_order"]) : '23';
548
- $sfsi_plus_okIcon_order = isset($_POST["sfsi_plus_okIcon_order"]) ? intval($_POST["sfsi_plus_okIcon_order"]) : '24';
549
- $sfsi_plus_weiboIcon_order = isset($_POST["sfsi_plus_weiboIcon_order"]) ? intval($_POST["sfsi_plus_weiboIcon_order"]) : '25';
550
- $sfsi_plus_wechatIcon_order = isset($_POST["sfsi_plus_wechatIcon_order"]) ? intval($_POST["sfsi_plus_wechatIcon_order"]) : '26';
551
-
552
- if (isset($_POST["sfsi_plus_custom_MouseOverTexts"])) {
553
- $sfsi_plus_custom_MouseOverTexts = array();
554
- foreach ($_POST['sfsi_plus_custom_MouseOverTexts'] as $index => $a) {
555
- $sfsi_plus_custom_MouseOverTexts[$index] = sanitize_text_field($_POST["sfsi_plus_custom_MouseOverTexts"][$index]);
556
- }
557
- }
558
- $sfsi_plus_custom_MouseOverTexts = isset($sfsi_plus_custom_MouseOverTexts) ? serialize($sfsi_plus_custom_MouseOverTexts) : '';
559
-
560
- $sfsi_plus_follow_icons_language = isset($_POST["sfsi_plus_follow_icons_language"])
561
- ? sanitize_text_field(
562
- $_POST["sfsi_plus_follow_icons_language"]
563
- ) : 'Follow_en_US';
564
- $sfsi_plus_facebook_icons_language = isset($_POST["sfsi_plus_facebook_icons_language"])
565
- ? sanitize_text_field(
566
- $_POST["sfsi_plus_facebook_icons_language"]
567
- ) : 'Visit_us_en_US';
568
- $sfsi_plus_twitter_icons_language = isset($_POST["sfsi_plus_twitter_icons_language"])
569
- ? sanitize_text_field(
570
- $_POST["sfsi_plus_twitter_icons_language"]
571
- ) : 'Visit_us_en_US';
572
-
573
- $sfsi_plus_custom_social_hide = isset($_POST["sfsi_plus_custom_social_hide"]) ? sanitize_text_field($_POST["sfsi_plus_custom_social_hide"]) : 'no';
574
-
575
- $sfsi_pplus_icons_suppress_errors = isset($_POST["sfsi_pplus_icons_suppress_errors"]) ? sanitize_text_field($_POST["sfsi_pplus_icons_suppress_errors"]) : 'no';
576
-
577
- /* size and spacing of icons */
578
- $up_option5 = array(
579
- 'sfsi_plus_icons_size' => intval($sfsi_plus_icons_size),
580
- 'sfsi_plus_icons_spacing' => intval($sfsi_plus_icons_spacing),
581
- 'sfsi_plus_icons_Alignment' => sanitize_text_field($sfsi_plus_icons_Alignment),
582
- 'sfsi_plus_icons_perRow' => intval($sfsi_plus_icons_perRow),
583
- 'sfsi_plus_follow_icons_language' => sanitize_text_field($sfsi_plus_follow_icons_language),
584
- 'sfsi_plus_facebook_icons_language' => sanitize_text_field($sfsi_plus_facebook_icons_language),
585
- 'sfsi_plus_twitter_icons_language' => sanitize_text_field($sfsi_plus_twitter_icons_language),
586
- 'sfsi_plus_icons_language' => sanitize_text_field($sfsi_plus_icons_language),
587
- 'sfsi_plus_icons_ClickPageOpen' => sanitize_text_field($sfsi_plus_icons_ClickPageOpen),
588
- 'sfsi_plus_icons_float' => sanitize_text_field($sfsi_plus_icons_float),
589
- 'sfsi_plus_disable_floaticons' => sanitize_text_field($sfsi_plus_disable_floaticons),
590
- 'sfsi_plus_disable_viewport' => sanitize_text_field($sfsi_plus_disable_viewport),
591
- 'sfsi_plus_icons_floatPosition' => sanitize_text_field($sfsi_plus_icons_floatPosition),
592
- 'sfsi_plus_icons_stick' => sanitize_text_field($sfsi_plus_icons_stick),
593
- /* mouse over texts */
594
- 'sfsi_plus_rss_MouseOverText' => sanitize_text_field($sfsi_plus_rss_MouseOverText),
595
- 'sfsi_plus_email_MouseOverText' => sanitize_text_field($sfsi_plus_email_MouseOverText),
596
- 'sfsi_plus_twitter_MouseOverText' => sanitize_text_field($sfsi_plus_twitter_MouseOverText),
597
- 'sfsi_plus_facebook_MouseOverText' => sanitize_text_field($sfsi_plus_facebook_MouseOverText),
598
- 'sfsi_plus_linkedIn_MouseOverText' => sanitize_text_field($sfsi_plus_linkedIn_MouseOverText),
599
- 'sfsi_plus_pinterest_MouseOverText' => sanitize_text_field($sfsi_plus_pinterest_MouseOverText),
600
- 'sfsi_plus_youtube_MouseOverText' => sanitize_text_field($sfsi_plus_youtube_MouseOverText),
601
- 'sfsi_plus_instagram_MouseOverText' => sanitize_text_field($sfsi_plus_instagram_MouseOverText),
602
- 'sfsi_plus_houzz_MouseOverText' => sanitize_text_field($sfsi_plus_houzz_MouseOverText),
603
- 'sfsi_plus_CustomIcons_order' => $sfsi_plus_custom_orders,
604
- 'sfsi_plus_rssIcon_order' => intval($sfsi_plus_rssIcon_order),
605
- 'sfsi_plus_emailIcon_order' => intval($sfsi_plus_emailIcon_order),
606
- 'sfsi_plus_facebookIcon_order' => intval($sfsi_plus_facebookIcon_order),
607
- 'sfsi_plus_twitterIcon_order' => intval($sfsi_plus_twitterIcon_order),
608
- 'sfsi_plus_youtubeIcon_order' => intval($sfsi_plus_youtubeIcon_order),
609
- 'sfsi_plus_pinterestIcon_order' => intval($sfsi_plus_pinterestIcon_order),
610
- 'sfsi_plus_instagramIcon_order' => intval($sfsi_plus_instagramIcon_order),
611
- 'sfsi_plus_houzzIcon_order' => intval($sfsi_plus_houzzIcon_order),
612
- 'sfsi_plus_okIcon_order' => intval($sfsi_plus_okIcon_order),
613
- 'sfsi_plus_telegramIcon_order' => intval($sfsi_plus_telegramIcon_order),
614
- 'sfsi_plus_vkIcon_order' => intval($sfsi_plus_vkIcon_order),
615
- 'sfsi_plus_weiboIcon_order' => intval($sfsi_plus_weiboIcon_order),
616
- 'sfsi_plus_wechatIcon_order' => intval($sfsi_plus_wechatIcon_order),
617
- 'sfsi_plus_linkedinIcon_order' => intval($sfsi_plus_linkedinIcon_order),
618
- 'sfsi_plus_custom_MouseOverTexts' => $sfsi_plus_custom_MouseOverTexts,
619
- 'sfsi_plus_custom_social_hide' => $sfsi_plus_custom_social_hide,
620
- 'sfsi_pplus_icons_suppress_errors' => sanitize_text_field($sfsi_pplus_icons_suppress_errors)
621
- );
622
-
623
- update_option('sfsi_plus_section5_options', serialize($up_option5));
624
- header('Content-Type: application/json');
625
- echo json_encode(array("success"));
626
- exit;
627
- }
628
- /* save settings for section 6 */
629
- add_action('wp_ajax_plus_updateSrcn6', 'sfsi_plus_options_updater6');
630
- function sfsi_plus_options_updater6()
631
- {
632
- if (!wp_verify_nonce($_POST['nonce'], "update_plus_step6")) {
633
- echo json_encode(array("wrong_nonce"));
634
- exit;
635
- }
636
- if (!current_user_can('manage_options')) {
637
- echo json_encode(array('res' => 'not allowed'));
638
- die();
639
- }
640
- $sfsi_plus_show_Onposts = isset($_POST["sfsi_plus_show_Onposts"]) ? sanitize_text_field($_POST["sfsi_plus_show_Onposts"]) : 'no';
641
- $sfsi_plus_icons_postPositon = isset($_POST["sfsi_plus_icons_postPositon"]) ? sanitize_text_field($_POST["sfsi_plus_icons_postPositon"]) : '';
642
- $sfsi_plus_icons_alignment = isset($_POST["sfsi_plus_icons_alignment"]) ? sanitize_text_field($_POST["sfsi_plus_icons_alignment"]) : 'center-right';
643
- $sfsi_plus_textBefor_icons = isset($_POST["sfsi_plus_textBefor_icons"]) ? sanitize_text_field($_POST["sfsi_plus_textBefor_icons"]) : '';
644
- $sfsi_plus_icons_DisplayCounts = isset($_POST["sfsi_plus_icons_DisplayCounts"]) ? sanitize_text_field($_POST["sfsi_plus_icons_DisplayCounts"]) : 'no';
645
- /* post options */
646
- $up_option6 = array(
647
- 'sfsi_plus_show_Onposts' => sanitize_text_field($sfsi_plus_show_Onposts),
648
- 'sfsi_plus_icons_postPositon' => sanitize_text_field($sfsi_plus_icons_postPositon),
649
- 'sfsi_plus_icons_alignment' => sanitize_text_field($sfsi_plus_icons_alignment),
650
- 'sfsi_plus_textBefor_icons' => sanitize_text_field(stripslashes($sfsi_plus_textBefor_icons)),
651
- 'sfsi_plus_icons_DisplayCounts' => sanitize_text_field($sfsi_plus_icons_DisplayCounts),
652
- );
653
- update_option('sfsi_plus_section6_options', serialize($up_option6));
654
- header('Content-Type: application/json');
655
- echo json_encode(array("success"));
656
- exit;
657
- }
658
- /* save settings for section 7 */
659
- add_action('wp_ajax_plus_updateSrcn7', 'sfsi_plus_options_updater7');
660
- function sfsi_plus_options_updater7()
661
- {
662
- if (!wp_verify_nonce($_POST['nonce'], "update_plus_step7")) {
663
- echo json_encode(array("wrong_nonce"));
664
- exit;
665
- }
666
- if (!current_user_can('manage_options')) {
667
- echo json_encode(array('res' => 'not allowed'));
668
- die();
669
- }
670
- $sfsi_plus_popup_text = isset($_POST["sfsi_plus_popup_text"]) ? sanitize_text_field($_POST["sfsi_plus_popup_text"]) : '';
671
- $sfsi_plus_popup_background_color = isset($_POST["sfsi_plus_popup_background_color"])
672
- ? sfsi_plus_sanitize_hex_color(
673
- $_POST["sfsi_plus_popup_background_color"]
674
- ) : '#fffff';
675
- $sfsi_plus_popup_border_color = isset($_POST["sfsi_plus_popup_border_color"])
676
- ? sfsi_plus_sanitize_hex_color(
677
- $_POST["sfsi_plus_popup_border_color"]
678
- ) : 'center-right';
679
- $sfsi_plus_popup_border_thickness = isset($_POST["sfsi_plus_popup_border_thickness"]) ? sanitize_text_field($_POST["sfsi_plus_popup_border_thickness"]) : '';
680
- $sfsi_plus_popup_border_shadow = isset($_POST["sfsi_plus_popup_border_shadow"]) ? sanitize_text_field($_POST["sfsi_plus_popup_border_shadow"]) : 'no';
681
- $sfsi_plus_popup_font = isset($_POST["sfsi_plus_popup_font"]) ? sanitize_text_field($_POST["sfsi_plus_popup_font"]) : '';
682
- $sfsi_plus_popup_fontSize = isset($_POST["sfsi_plus_popup_fontSize"]) ? intval($_POST["sfsi_plus_popup_fontSize"]) : 'no';
683
- $sfsi_plus_popup_fontStyle = isset($_POST["sfsi_plus_popup_fontStyle"]) ? sanitize_text_field($_POST["sfsi_plus_popup_fontStyle"]) : '';
684
- $sfsi_plus_popup_fontColor = isset($_POST["sfsi_plus_popup_fontColor"]) ? sfsi_plus_sanitize_hex_color($_POST["sfsi_plus_popup_fontColor"]) : 'no';
685
- $sfsi_plus_Show_popupOn = isset($_POST["sfsi_plus_Show_popupOn"]) ? sanitize_text_field($_POST["sfsi_plus_Show_popupOn"]) : '';
686
- if (isset($_POST["sfsi_plus_Show_popupOn_PageIDs"])) {
687
- $sfsi_plus_Show_popupOn_PageIDs_arr = array();
688
- foreach ($_POST["sfsi_plus_Show_popupOn_PageIDs"] as $index => $sfsi_plus_Show_popupOn_PageID) {
689
- $sfsi_plus_Show_popupOn_PageIDs_arr[$index] = intval($sfsi_plus_Show_popupOn_PageID);
690
- }
691
- }
692
- $sfsi_plus_Show_popupOn_PageIDs = isset($sfsi_plus_Show_popupOn_PageID)
693
- ? serialize($sfsi_plus_Show_popupOn_PageID)
694
- : '';
695
- $sfsi_plus_Shown_pop = isset($_POST["sfsi_plus_Shown_pop"]) ? sanitize_text_field($_POST["sfsi_plus_Shown_pop"]) : '';
696
- $sfsi_plus_Shown_popupOnceTime = isset($_POST["sfsi_plus_Shown_popupOnceTime"]) ? intval($_POST["sfsi_plus_Shown_popupOnceTime"]) : 'no';
697
- $sfsi_plus_Shown_popuplimitPerUserTime = isset($_POST["sfsi_plus_Shown_popuplimitPerUserTime"])
698
- ? sanitize_text_field(
699
- $_POST["sfsi_plus_Shown_popuplimitPerUserTime"]
700
- ) : '';
701
- /* icons pop options */
702
- $up_option7 = array(
703
- 'sfsi_plus_popup_text' => sanitize_text_field(stripslashes($sfsi_plus_popup_text)),
704
- 'sfsi_plus_popup_font' => sanitize_text_field($sfsi_plus_popup_font),
705
- 'sfsi_plus_popup_fontColor' => sfsi_plus_sanitize_hex_color($sfsi_plus_popup_fontColor),
706
- 'sfsi_plus_popup_fontSize' => intval($sfsi_plus_popup_fontSize),
707
- 'sfsi_plus_popup_fontStyle' => sanitize_text_field($sfsi_plus_popup_fontStyle),
708
- 'sfsi_plus_popup_background_color' => sfsi_plus_sanitize_hex_color($sfsi_plus_popup_background_color),
709
- 'sfsi_plus_popup_border_color' => sfsi_plus_sanitize_hex_color($sfsi_plus_popup_border_color),
710
- 'sfsi_plus_popup_border_thickness' => intval($sfsi_plus_popup_border_thickness),
711
- 'sfsi_plus_popup_border_shadow' => sanitize_text_field($sfsi_plus_popup_border_shadow),
712
- 'sfsi_plus_Show_popupOn' => sanitize_text_field($sfsi_plus_Show_popupOn),
713
- 'sfsi_plus_Show_popupOn_PageIDs' => $sfsi_plus_Show_popupOn_PageIDs,
714
- 'sfsi_plus_Shown_pop' => sanitize_text_field($sfsi_plus_Shown_pop),
715
- 'sfsi_plus_Shown_popupOnceTime' => intval($sfsi_plus_Shown_popupOnceTime),
716
- //'sfsi_plus_Shown_popuplimitPerUserTime' => $sfsi_plus_Shown_popuplimitPerUserTime,
717
- );
718
- update_option('sfsi_plus_section7_options', serialize($up_option7));
719
- header('Content-Type: application/json');
720
- echo json_encode(array("success"));
721
- exit;
722
- }
723
- /* save settings for section 3 */
724
-
725
- add_action('wp_ajax_plus_updateSrcn8', 'sfsi_plus_options_updater8');
726
-
727
- function sfsi_plus_options_updater8()
728
- {
729
-
730
- if (!wp_verify_nonce($_POST['nonce'], "update_plus_step8")) {
731
- echo json_encode(array("wrong_nonce"));
732
- exit;
733
- }
734
- if (!current_user_can('manage_options')) {
735
- echo json_encode(array('res' => 'not allowed'));
736
- die();
737
- }
738
-
739
- $sfsi_plus_show_via_widget = isset($_POST["sfsi_plus_show_via_widget"]) ? sanitize_text_field($_POST["sfsi_plus_show_via_widget"]) : 'no';
740
- $sfsi_plus_float_on_page = isset($_POST["sfsi_plus_float_on_page"]) ? sanitize_text_field($_POST["sfsi_plus_float_on_page"]) : 'no';
741
- $sfsi_plus_float_page_position = isset($_POST["sfsi_plus_float_page_position"]) ? sanitize_text_field($_POST["sfsi_plus_float_page_position"]) : 'no';
742
-
743
- $sfsi_plus_icons_floatMargin_top = isset($_POST["sfsi_plus_icons_floatMargin_top"]) ? intval($_POST["sfsi_plus_icons_floatMargin_top"]) : '';
744
- $sfsi_plus_icons_floatMargin_bottom = isset($_POST["sfsi_plus_icons_floatMargin_bottom"]) ? intval($_POST["sfsi_plus_icons_floatMargin_bottom"]) : '';
745
- $sfsi_plus_icons_floatMargin_left = isset($_POST["sfsi_plus_icons_floatMargin_left"]) ? intval($_POST["sfsi_plus_icons_floatMargin_left"]) : '';
746
- $sfsi_plus_icons_floatMargin_right = isset($_POST["sfsi_plus_icons_floatMargin_right"]) ? intval($_POST["sfsi_plus_icons_floatMargin_right"]) : '';
747
-
748
- $sfsi_plus_place_item_manually = isset($_POST["sfsi_plus_place_item_manually"]) ? sanitize_text_field($_POST["sfsi_plus_place_item_manually"]) : 'no';
749
- $sfsi_plus_place_item_gutenberg = isset($_POST["sfsi_plus_place_item_gutenberg"]) ? sanitize_text_field($_POST["sfsi_plus_place_item_gutenberg"]) : 'no';
750
- $sfsi_plus_show_item_onposts = isset($_POST["sfsi_plus_show_item_onposts"]) ? sanitize_text_field($_POST["sfsi_plus_show_item_onposts"]) : 'no';
751
- $sfsi_plus_display_button_type = isset($_POST["sfsi_plus_display_button_type"]) ? sanitize_text_field($_POST["sfsi_plus_display_button_type"]) : 'standard_buttons';
752
-
753
- $sfsi_plus_post_icons_size = isset($_POST["sfsi_plus_post_icons_size"]) ? intval($_POST["sfsi_plus_post_icons_size"]) : 40;
754
- $sfsi_plus_post_icons_spacing = isset($_POST["sfsi_plus_post_icons_spacing"]) ? intval($_POST["sfsi_plus_post_icons_spacing"]) : 5;
755
- $sfsi_plus_show_Onposts = isset($_POST["sfsi_plus_show_Onposts"]) ? sanitize_text_field($_POST["sfsi_plus_show_Onposts"]) : 'no';
756
- $sfsi_plus_textBefor_icons = isset($_POST["sfsi_plus_textBefor_icons"]) ? sanitize_text_field($_POST["sfsi_plus_textBefor_icons"]) : 'Please follow and like us:';
757
- $sfsi_plus_icons_alignment = isset($_POST["sfsi_plus_icons_alignment"]) ? sanitize_text_field($_POST["sfsi_plus_icons_alignment"]) : 'center-right';
758
- $sfsi_plus_icons_DisplayCounts = isset($_POST["sfsi_plus_icons_DisplayCounts"]) ? sanitize_text_field($_POST["sfsi_plus_icons_DisplayCounts"]) : 'no';
759
- $sfsi_plus_display_before_posts = isset($_POST["sfsi_plus_display_before_posts"]) ? sanitize_text_field($_POST["sfsi_plus_display_before_posts"]) : 'no';
760
- $sfsi_plus_display_after_posts = isset($_POST["sfsi_plus_display_after_posts"]) ? sanitize_text_field($_POST["sfsi_plus_display_after_posts"]) : 'no';
761
-
762
- //$sfsi_plus_display_on_postspage = isset($_POST["sfsi_plus_display_on_postspage"]) ? sanitize_text_field( $_POST["sfsi_plus_display_on_postspage"] ): 'no';
763
- //$sfsi_plus_display_on_homepage = isset($_POST["sfsi_plus_display_on_homepage"]) ? sanitize_text_field( $_POST["sfsi_plus_display_on_homepage"] ): 'no';
764
-
765
- $sfsi_plus_display_before_blogposts = isset($_POST["sfsi_plus_display_before_blogposts"]) ? sanitize_text_field($_POST["sfsi_plus_display_before_blogposts"]) : 'no';
766
- $sfsi_plus_display_after_blogposts = isset($_POST["sfsi_plus_display_after_blogposts"]) ? sanitize_text_field($_POST["sfsi_plus_display_after_blogposts"]) : 'no';
767
- $sfsi_plus_rectsub = isset($_POST["sfsi_plus_rectsub"]) ? sanitize_text_field($_POST["sfsi_plus_rectsub"]) : 'no';
768
- $sfsi_plus_rectfb = isset($_POST["sfsi_plus_rectfb"]) ? sanitize_text_field($_POST["sfsi_plus_rectfb"]) : 'no';
769
- $sfsi_plus_recttwtr = isset($_POST["sfsi_plus_recttwtr"]) ? sanitize_text_field($_POST["sfsi_plus_recttwtr"]) : 'no';
770
- $sfsi_plus_rectpinit = isset($_POST["sfsi_plus_rectpinit"]) ? sanitize_text_field($_POST["sfsi_plus_rectpinit"]) : 'no';
771
- $sfsi_plus_rectfbshare = isset($_POST["sfsi_plus_rectfbshare"]) ? sanitize_text_field($_POST["sfsi_plus_rectfbshare"]) : 'no';
772
-
773
- $sfsi_plus_responsive_icons_end_post = isset($_POST["sfsi_plus_responsive_icons_end_post"]) ? sanitize_text_field($_POST["sfsi_plus_responsive_icons_end_post"]) : 'no';
774
- $sfsi_plus_responsive_icons_default = array(
775
- "default_icons" => array(
776
- "facebook" => array("active" => "yes", "text" => "Share on Facebook", "url" => ""),
777
- "Twitter" => array("active" => "yes", "text" => "Tweet", "url" => ""),
778
- "Follow" => array("active" => "yes", "text" => "Follow us", "url" => "")
779
- ),
780
- "settings" => array(
781
- "icon_size" => "Medium",
782
- "icon_width_type" => "Fully responsive",
783
- "icon_width_size" => 240,
784
- "edge_type" => "Round",
785
- "edge_radius" => 5,
786
- "style" => "Gradient",
787
- "margin" => 10,
788
- "text_align" => "Centered",
789
- "show_count" => "no",
790
- "counter_color" => "#aaaaaa",
791
- "counter_bg_color" => "#fff",
792
- "share_count_text" => "SHARES"
793
- )
794
- );
795
- $sfsi_plus_responsive_icons = array();
796
- // var_dump($_POST['sfsi_plus_responsive_icons']);
797
- if (isset($_POST['sfsi_plus_responsive_icons']) && is_array($_POST['sfsi_plus_responsive_icons'])) {
798
- foreach ($_POST['sfsi_plus_responsive_icons'] as $key => $value) {
799
- if (!is_array($value)) {
800
- $sfsi_plus_responsive_icons[$key] = sanitize_text_field($value);
801
- } else {
802
- $sfsi_plus_responsive_icons[$key] = array();
803
- foreach ($value as $key2 => $value2) {
804
- if (!is_array($value2)) {
805
- $sfsi_plus_responsive_icons[$key][$key2] = sanitize_text_field($value2);
806
- } else {
807
- $sfsi_plus_responsive_icons[$key][$key2] = array();
808
- foreach ($value2 as $key3 => $value3) {
809
- if (!is_array($value3)) {
810
- $sfsi_plus_responsive_icons[$key][$key2][$key3] = sanitize_text_field($value3);
811
- }
812
- }
813
- }
814
- }
815
- }
816
- }
817
- }
818
- if (empty($sfsi_plus_responsive_icons)) {
819
- $sfsi_plus_responsive_icons = $sfsi_plus_responsive_icons_default;
820
- } else {
821
- if (!isset($sfsi_plus_responsive_icons['default_icons'])) {
822
- $sfsi_plus_responsive_icons["default_icons"] = $sfsi_plus_responsive_icons_default["default_icons"];
823
- }
824
- if (!isset($sfsi_plus_responsive_icons['settings'])) {
825
- $sfsi_plus_responsive_icons["settings"] = $sfsi_plus_responsive_icons_default["settings"];
826
- }
827
- foreach ($sfsi_plus_responsive_icons['default_icons'] as $key => $value) {
828
- foreach (array_keys($sfsi_plus_responsive_icons_default['default_icons']['facebook']) as $default_icon_key) {
829
- if (!isset($value[$default_icon_key])) {
830
- $sfsi_plus_responsive_icons["default_icons"][$key][$default_icon_key] = $sfsi_plus_responsive_icons_default['default_icons'][$key][$default_icon_key];
831
- } else {
832
- $sfsi_plus_responsive_icons["default_icons"][$key][$default_icon_key] = sanitize_text_field($sfsi_plus_responsive_icons["default_icons"][$key][$default_icon_key]);
833
- }
834
- }
835
- }
836
-
837
- foreach (array_keys($sfsi_plus_responsive_icons_default['settings']) as $setting_key) {
838
- if (!isset($sfsi_plus_responsive_icons["settings"][$setting_key]) || is_null($sfsi_plus_responsive_icons["settings"][$setting_key]) || $sfsi_plus_responsive_icons["settings"][$setting_key] === "") {
839
- $sfsi_plus_responsive_icons["settings"][$setting_key] = $sfsi_plus_responsive_icons_default['settings'][$setting_key];
840
- } else {
841
- $sfsi_plus_responsive_icons["settings"][$setting_key] = sanitize_text_field($sfsi_plus_responsive_icons["settings"][$setting_key]);
842
- }
843
- }
844
- }
845
- $up_option8 = array(
846
- 'sfsi_plus_show_via_widget' => sanitize_text_field($sfsi_plus_show_via_widget),
847
- 'sfsi_plus_float_on_page' => sanitize_text_field($sfsi_plus_float_on_page),
848
- 'sfsi_plus_float_page_position' => sanitize_text_field($sfsi_plus_float_page_position),
849
- 'sfsi_plus_icons_floatMargin_top' => intval($sfsi_plus_icons_floatMargin_top),
850
- 'sfsi_plus_icons_floatMargin_bottom' => intval($sfsi_plus_icons_floatMargin_bottom),
851
- 'sfsi_plus_icons_floatMargin_left' => intval($sfsi_plus_icons_floatMargin_left),
852
- 'sfsi_plus_icons_floatMargin_right' => intval($sfsi_plus_icons_floatMargin_right),
853
- 'sfsi_plus_place_item_manually' => sanitize_text_field($sfsi_plus_place_item_manually),
854
- 'sfsi_plus_place_item_gutenberg' => sanitize_text_field($sfsi_plus_place_item_gutenberg),
855
- 'sfsi_plus_show_item_onposts' => sanitize_text_field($sfsi_plus_show_item_onposts),
856
- 'sfsi_plus_display_button_type' => sanitize_text_field($sfsi_plus_display_button_type),
857
- 'sfsi_plus_post_icons_size' => intval($sfsi_plus_post_icons_size),
858
- 'sfsi_plus_post_icons_spacing' => intval($sfsi_plus_post_icons_spacing),
859
- 'sfsi_plus_show_Onposts' => sanitize_text_field($sfsi_plus_show_Onposts),
860
- 'sfsi_plus_textBefor_icons' => sanitize_text_field(stripslashes($sfsi_plus_textBefor_icons)),
861
- 'sfsi_plus_icons_alignment' => sanitize_text_field($sfsi_plus_icons_alignment),
862
- 'sfsi_plus_icons_DisplayCounts' => sanitize_text_field($sfsi_plus_icons_DisplayCounts),
863
- 'sfsi_plus_display_before_posts' => sanitize_text_field($sfsi_plus_display_before_posts),
864
- 'sfsi_plus_display_after_posts' => sanitize_text_field($sfsi_plus_display_after_posts),
865
-
866
- //'sfsi_plus_display_on_postspage' => $sfsi_plus_display_on_postspage,
867
- //'sfsi_plus_display_on_homepage' => $sfsi_plus_display_on_homepage,
868
-
869
- 'sfsi_plus_display_before_blogposts' => sanitize_text_field($sfsi_plus_display_before_blogposts),
870
- 'sfsi_plus_display_after_blogposts' => sanitize_text_field($sfsi_plus_display_after_blogposts),
871
- 'sfsi_plus_rectsub' => sanitize_text_field($sfsi_plus_rectsub),
872
- 'sfsi_plus_rectfb' => sanitize_text_field($sfsi_plus_rectfb),
873
- 'sfsi_plus_recttwtr' => sanitize_text_field($sfsi_plus_recttwtr),
874
- 'sfsi_plus_rectpinit' => sanitize_text_field($sfsi_plus_rectpinit),
875
- 'sfsi_plus_rectfbshare' => sanitize_text_field($sfsi_plus_rectfbshare),
876
- 'sfsi_plus_responsive_icons_end_post' =>$sfsi_plus_responsive_icons_end_post,
877
- 'sfsi_plus_responsive_icons' => $sfsi_plus_responsive_icons,
878
-
879
-
880
- );
881
- update_option('sfsi_plus_section8_options', serialize($up_option8));
882
-
883
- header('Content-Type: application/json');
884
- echo json_encode(array("success"));
885
- exit;
886
- }
887
-
888
- /* save settings for section 8 */
889
- add_action('wp_ajax_plus_updateSrcn9', 'sfsi_plus_options_updater9');
890
- function sfsi_plus_options_updater9()
891
- {
892
- if (!wp_verify_nonce($_POST['nonce'], "update_plus_step9")) {
893
- echo json_encode(array("wrong_nonce"));
894
- exit;
895
- }
896
- if (!current_user_can('manage_options')) {
897
- echo json_encode(array('res' => 'not allowed'));
898
- die();
899
- }
900
- $sfsi_plus_form_adjustment = isset($_POST["sfsi_plus_form_adjustment"]) ? sanitize_text_field($_POST["sfsi_plus_form_adjustment"]) : 'yes';
901
- $sfsi_plus_form_height = isset($_POST["sfsi_plus_form_height"]) ? intval($_POST["sfsi_plus_form_height"]) : '180';
902
- $sfsi_plus_form_width = isset($_POST["sfsi_plus_form_width"]) ? intval($_POST["sfsi_plus_form_width"]) : '230';
903
- $sfsi_plus_form_border = isset($_POST["sfsi_plus_form_border"]) ? sanitize_text_field($_POST["sfsi_plus_form_border"]) : 'no';
904
- $sfsi_plus_form_border_thickness = isset($_POST["sfsi_plus_form_border_thickness"]) ? intval($_POST["sfsi_plus_form_border_thickness"]) : '1';
905
- $sfsi_plus_form_border_color = isset($_POST["sfsi_plus_form_border_color"]) ? sfsi_plus_sanitize_hex_color($_POST["sfsi_plus_form_border_color"]) : '#f3faf2';
906
- $sfsi_plus_form_background = isset($_POST["sfsi_plus_form_background"]) ? sfsi_plus_sanitize_hex_color($_POST["sfsi_plus_form_background"]) : '#eff7f7';
907
-
908
- $sfsi_plus_form_heading_text = isset($_POST["sfsi_plus_form_heading_text"]) ? sanitize_text_field($_POST["sfsi_plus_form_heading_text"]) : '';
909
- $sfsi_plus_form_heading_font = isset($_POST["sfsi_plus_form_heading_font"]) ? sanitize_text_field($_POST["sfsi_plus_form_heading_font"]) : '';
910
- $sfsi_plus_form_heading_fontstyle = isset($_POST["sfsi_plus_form_heading_fontstyle"]) ? sanitize_text_field($_POST["sfsi_plus_form_heading_fontstyle"]) : '';
911
- $sfsi_plus_form_heading_fontcolor = isset($_POST["sfsi_plus_form_heading_fontcolor"]) ? sfsi_plus_sanitize_hex_color($_POST["sfsi_plus_form_heading_fontcolor"]) : '';
912
- $sfsi_plus_form_heading_fontsize = isset($_POST["sfsi_plus_form_heading_fontsize"]) ? intval($_POST["sfsi_plus_form_heading_fontsize"]) : '22';
913
- $sfsi_plus_form_heading_fontalign = isset($_POST["sfsi_plus_form_heading_fontalign"]) ? sanitize_text_field($_POST["sfsi_plus_form_heading_fontalign"]) : 'center';
914
-
915
- $sfsi_plus_form_field_text = isset($_POST["sfsi_plus_form_field_text"]) ? sanitize_text_field($_POST["sfsi_plus_form_field_text"]) : '';
916
- $sfsi_plus_form_field_font = isset($_POST["sfsi_plus_form_field_font"]) ? sanitize_text_field($_POST["sfsi_plus_form_field_font"]) : '';
917
- $sfsi_plus_form_field_fontstyle = isset($_POST["sfsi_plus_form_field_fontstyle"]) ? sanitize_text_field($_POST["sfsi_plus_form_field_fontstyle"]) : '';
918
- $sfsi_plus_form_field_fontcolor = isset($_POST["sfsi_plus_form_field_fontcolor"]) ? sfsi_plus_sanitize_hex_color($_POST["sfsi_plus_form_field_fontcolor"]) : '';
919
- $sfsi_plus_form_field_fontsize = isset($_POST["sfsi_plus_form_field_fontsize"]) ? intval($_POST["sfsi_plus_form_field_fontsize"]) : '22';
920
- $sfsi_plus_form_field_fontalign = isset($_POST["sfsi_plus_form_field_fontalign"]) ? sanitize_text_field($_POST["sfsi_plus_form_field_fontalign"]) : 'center';
921
-
922
- $sfsi_plus_form_button_text = isset($_POST["sfsi_plus_form_button_text"]) ? sanitize_text_field($_POST["sfsi_plus_form_button_text"]) : 'Subscribe';
923
- $sfsi_plus_form_button_font = isset($_POST["sfsi_plus_form_button_font"]) ? sanitize_text_field($_POST["sfsi_plus_form_button_font"]) : '';
924
- $sfsi_plus_form_button_fontstyle = isset($_POST["sfsi_plus_form_button_fontstyle"]) ? sanitize_text_field($_POST["sfsi_plus_form_button_fontstyle"]) : '';
925
- $sfsi_plus_form_button_fontcolor = isset($_POST["sfsi_plus_form_button_fontcolor"]) ? sfsi_plus_sanitize_hex_color($_POST["sfsi_plus_form_button_fontcolor"]) : '';
926
- $sfsi_plus_form_button_fontsize = isset($_POST["sfsi_plus_form_button_fontsize"]) ? intval($_POST["sfsi_plus_form_button_fontsize"]) : '22';
927
- $sfsi_plus_form_button_fontalign = isset($_POST["sfsi_plus_form_button_fontalign"]) ? sanitize_text_field($_POST["sfsi_plus_form_button_fontalign"]) : 'center';
928
- $sfsi_plus_form_button_background = isset($_POST["sfsi_plus_form_button_background"]) ? sfsi_plus_sanitize_hex_color($_POST["sfsi_plus_form_button_background"]) : '#5a6570';
929
-
930
- /* icons pop options */
931
- $up_option9 = array(
932
- 'sfsi_plus_form_adjustment' => sanitize_text_field($sfsi_plus_form_adjustment),
933
- 'sfsi_plus_form_height' => intval($sfsi_plus_form_height),
934
- 'sfsi_plus_form_width' => intval($sfsi_plus_form_width),
935
- 'sfsi_plus_form_border' => sanitize_text_field($sfsi_plus_form_border),
936
- 'sfsi_plus_form_border_thickness' => intval($sfsi_plus_form_border_thickness),
937
- 'sfsi_plus_form_border_color' => sfsi_plus_sanitize_hex_color($sfsi_plus_form_border_color),
938
- 'sfsi_plus_form_background' => sfsi_plus_sanitize_hex_color($sfsi_plus_form_background),
939
-
940
- 'sfsi_plus_form_heading_text' => sanitize_text_field(stripslashes($sfsi_plus_form_heading_text)),
941
- 'sfsi_plus_form_heading_font' => sanitize_text_field($sfsi_plus_form_heading_font),
942
- 'sfsi_plus_form_heading_fontstyle' => sanitize_text_field($sfsi_plus_form_heading_fontstyle),
943
- 'sfsi_plus_form_heading_fontcolor' => sfsi_plus_sanitize_hex_color($sfsi_plus_form_heading_fontcolor),
944
- 'sfsi_plus_form_heading_fontsize' => intval($sfsi_plus_form_heading_fontsize),
945
- 'sfsi_plus_form_heading_fontalign' => sanitize_text_field($sfsi_plus_form_heading_fontalign),
946
-
947
- 'sfsi_plus_form_field_text' => sanitize_text_field(stripslashes($sfsi_plus_form_field_text)),
948
- 'sfsi_plus_form_field_font' => sanitize_text_field($sfsi_plus_form_field_font),
949
- 'sfsi_plus_form_field_fontstyle' => sanitize_text_field($sfsi_plus_form_field_fontstyle),
950
- 'sfsi_plus_form_field_fontcolor' => sfsi_plus_sanitize_hex_color($sfsi_plus_form_field_fontcolor),
951
- 'sfsi_plus_form_field_fontsize' => intval($sfsi_plus_form_field_fontsize),
952
- 'sfsi_plus_form_field_fontalign' => sanitize_text_field($sfsi_plus_form_field_fontalign),
953
-
954
- 'sfsi_plus_form_button_text' => sanitize_text_field(stripslashes($sfsi_plus_form_button_text)),
955
- 'sfsi_plus_form_button_font' => sanitize_text_field($sfsi_plus_form_button_font),
956
- 'sfsi_plus_form_button_fontstyle' => sanitize_text_field($sfsi_plus_form_button_fontstyle),
957
- 'sfsi_plus_form_button_fontcolor' => sfsi_plus_sanitize_hex_color($sfsi_plus_form_button_fontcolor),
958
- 'sfsi_plus_form_button_fontsize' => intval($sfsi_plus_form_button_fontsize),
959
- 'sfsi_plus_form_button_fontalign' => sanitize_text_field($sfsi_plus_form_button_fontalign),
960
- 'sfsi_plus_form_button_background' => sfsi_plus_sanitize_hex_color($sfsi_plus_form_button_background),
961
- );
962
-
963
- update_option('sfsi_plus_section9_options', serialize($up_option9));
964
- header('Content-Type: application/json');
965
- echo json_encode(array("success"));
966
- exit;
967
- }
968
-
969
- /* upload custom icons images */
970
- /* get counts for admin section */
971
- function sfsi_plus_getCounts($for_resposive = false)
972
- {
973
- $socialObj = new sfsi_plus_SocialHelper();
974
-
975
- $option4 = unserialize(get_option('sfsi_plus_section4_options', 'a:0:{}'));
976
- $sfsi_plus_section2_options = unserialize(get_option('sfsi_plus_section2_options', 'a:0:{}'));
977
-
978
- $scounts = array(
979
- 'rss_count' => '',
980
- 'email_count' => '',
981
- 'fb_count' => '',
982
- 'twitter_count' => '',
983
- 'linkedIn_count' => '',
984
- 'youtube_count' => '',
985
- 'pin_count' => '',
986
- 'share_count' => '',
987
- 'houzz_count' => '',
988
- 'telegram_count' => '',
989
- 'vk_count' => '',
990
- 'ok_count' => '',
991
- 'weibo_count' => '',
992
- 'wechat_count' => '',
993
-
994
- );
995
- /* get rss count */
996
- if (isset($option4['sfsi_plus_rss_manualCounts']) && !empty($option4['sfsi_plus_rss_manualCounts'])) {
997
- $scounts['rss_count'] = $option4['sfsi_plus_rss_manualCounts'];
998
- }
999
- /* get email count */
1000
- if (isset($option4['sfsi_plus_email_countsFrom']) && !empty($option4['sfsi_plus_email_countsFrom']) && $option4['sfsi_plus_email_countsFrom'] == "source") {
1001
- $feed_id = sanitize_text_field(get_option('sfsi_plus_feed_id', false));
1002
- $feed_data = $socialObj->SFSI_getFeedSubscriber($feed_id);
1003
-
1004
- $scounts['email_count'] = $socialObj->format_num($feed_data);
1005
- if (empty($scounts['email_count'])) {
1006
- $scounts['email_count'] = (string) "0";
1007
- }
1008
- } else {
1009
- $scounts['email_count'] = $option4['sfsi_plus_email_manualCounts'];
1010
- }
1011
-
1012
-
1013
- /* get fb count */
1014
- if (isset($option4['sfsi_plus_facebook_countsFrom']) && !empty($option4['sfsi_plus_facebook_countsFrom'])) {
1015
-
1016
- if ($option4['sfsi_plus_facebook_countsFrom'] == "likes") {
1017
- $url = home_url();
1018
- $fb_data = $socialObj->sfsi_get_fb($url);
1019
-
1020
- $scounts['fb_count'] = $socialObj->format_num($fb_data['like_count']);
1021
- } else if ($option4['sfsi_plus_facebook_countsFrom'] == "followers") {
1022
- $url = home_url();
1023
- $fb_data = $socialObj->sfsi_get_fb($url);
1024
- $scounts['fb_count'] = format_num($fb_data['share_count']);
1025
- if (empty($scounts['fb_count'])) {
1026
- $scounts['fb_count'] = (string) "0";
1027
- }
1028
- } else if ($option4['sfsi_plus_facebook_countsFrom'] == "mypage") {
1029
- $url = $option4['sfsi_plus_facebook_mypageCounts'];
1030
- $fb_data = $socialObj->sfsi_get_fb_pagelike($url);
1031
- $scounts['fb_count'] = $fb_data;
1032
- } else {
1033
- $scounts['fb_count'] = $option4['sfsi_plus_facebook_manualCounts'];
1034
- }
1035
- }
1036
-
1037
- /* get twitter counts */
1038
- if (isset($option4['sfsi_plus_twitter_countsFrom']) && !empty($option4['sfsi_plus_twitter_countsFrom']) && $option4['sfsi_plus_twitter_countsFrom'] == "source") {
1039
- $twitter_user = $sfsi_plus_section2_options['sfsi_plus_twitter_followUserName'];
1040
- $tw_settings = array(
1041
- 'sfsiplus_tw_consumer_key' => $option4['sfsiplus_tw_consumer_key'],
1042
- 'sfsiplus_tw_consumer_secret' => $option4['sfsiplus_tw_consumer_secret'],
1043
- 'sfsiplus_tw_oauth_access_token' => $option4['sfsiplus_tw_oauth_access_token'],
1044
- 'sfsiplus_tw_oauth_access_token_secret' => $option4['sfsiplus_tw_oauth_access_token_secret']
1045
- );
1046
-
1047
- $followers = $socialObj->sfsi_get_tweets($twitter_user, $tw_settings);
1048
- $scounts['twitter_count'] = $socialObj->format_num($followers);
1049
- } else {
1050
- $scounts['twitter_count'] = $option4['sfsi_plus_twitter_manualCounts'];
1051
- }
1052
-
1053
- if($for_resposive==false){
1054
- /* get linkedIn counts */
1055
- if (isset($option4['sfsi_plus_linkedIn_countsFrom']) && !empty($option4['sfsi_plus_linkedIn_countsFrom']) && $option4['sfsi_plus_linkedIn_countsFrom'] == "follower") {
1056
- $linkedIn_compay = $sfsi_plus_section2_options['sfsi_plus_linkedin_followCompany'];
1057
- $linkedIn_compay = $option4['sfsi_plus_ln_company'];
1058
- $ln_settings = array(
1059
- 'sfsi_plus_ln_api_key' => $option4['sfsi_plus_ln_api_key'],
1060
- 'sfsi_plus_ln_secret_key' => $option4['sfsi_plus_ln_secret_key'],
1061
- 'sfsi_plus_ln_oAuth_user_token' => $option4['sfsi_plus_ln_oAuth_user_token']
1062
- );
1063
- $followers = $socialObj->sfsi_getlinkedin_follower($linkedIn_compay, $ln_settings);
1064
- $scounts['linkedIn_count'] = $socialObj->format_num($followers);
1065
- } else {
1066
- $scounts['linkedIn_count'] = $option4['sfsi_plus_linkedIn_manualCounts'];
1067
- }
1068
-
1069
- /* get youtube counts */
1070
- if (isset($option4['sfsi_plus_youtube_countsFrom']) && !empty($option4['sfsi_plus_youtube_countsFrom']) && $option4['sfsi_plus_youtube_countsFrom'] == "subscriber") {
1071
- if (
1072
- isset($option4['sfsi_plus_youtube_user'])
1073
- ) {
1074
- $youtube_user = $option4['sfsi_plus_youtube_user'];
1075
-
1076
- $youtube_user = (isset($option4['sfsi_plus_youtube_user']) &&
1077
- !empty($option4['sfsi_plus_youtube_user'])) ? $option4['sfsi_plus_youtube_user'] : 'SpecificFeeds';
1078
-
1079
- $followers = $socialObj->sfsi_get_youtube($youtube_user);
1080
- $scounts['youtube_count'] = $socialObj->format_num($followers);
1081
- } else {
1082
- $scounts['youtube_count'] = 01;
1083
- }
1084
- } else {
1085
- $scounts['youtube_count'] = $option4['sfsi_plus_youtube_manualCounts'];
1086
- }
1087
- /* get Pinterest counts */
1088
- if (isset($option4['sfsi_plus_pinterest_countsFrom']) && !empty($option4['sfsi_plus_pinterest_countsFrom']) && $option4['sfsi_plus_pinterest_countsFrom'] == "pins") {
1089
- $url = home_url();
1090
- $pins = $socialObj->sfsi_get_pinterest($url);
1091
- $scounts['pin_count'] = $socialObj->format_num($pins);
1092
- } else {
1093
- $scounts['pin_count'] = $option4['sfsi_plus_pinterest_manualCounts'];
1094
- }
1095
- /* get instagram count */
1096
- if (isset($option4['sfsi_plus_instagram_countsFrom']) && !empty($option4['sfsi_plus_instagram_countsFrom']) && $option4['sfsi_plus_instagram_countsFrom'] == "followers") {
1097
- $iuser_name = $option4['sfsi_plus_instagram_User'];
1098
- $counts = $socialObj->sfsi_get_instagramFollowers($iuser_name);
1099
- if (empty($counts)) {
1100
- $scounts['instagram_count'] = (string) "0";
1101
- } else {
1102
- $scounts['instagram_count'] = $counts;
1103
- }
1104
- } else {
1105
- $scounts['instagram_count'] = $option4['sfsi_plus_instagram_manualCounts'];
1106
- }
1107
-
1108
- /* get instagram count */
1109
- if (isset($option4['sfsi_plus_houzz_countsFrom']) && !empty($option4['sfsi_plus_houzz_countsFrom']) && $option4['sfsi_plus_houzz_countsFrom'] == "manual") {
1110
- if (
1111
- isset($option4['sfsi_plus_houzz_manualCounts'])
1112
- ) {
1113
- $scounts['houzz_count'] = $option4['sfsi_plus_houzz_manualCounts'];
1114
- } else {
1115
- $scounts['houzz_count'] = '20';
1116
- }
1117
- } elseif (!isset($option4['sfsi_plus_houzz_countsFrom'])) {
1118
- $scounts['houzz_count'] = '20';
1119
- }
1120
-
1121
- /* get rss count */
1122
- if (isset($option4['sfsi_plus_telegram_manualCounts']) && !empty($option4['sfsi_plus_telegram_manualCounts'])) {
1123
- $scounts['telegram_count'] = $option4['sfsi_plus_telegram_manualCounts'];
1124
- }
1125
-
1126
- if (isset($option4['sfsi_plus_vk_manualCounts']) && !empty($option4['sfsi_plus_vk_manualCounts'])) {
1127
- $scounts['vk_count'] = $option4['sfsi_plus_vk_manualCounts'];
1128
- }
1129
- if (isset($option4['sfsi_plus_ok_manualCounts']) && !empty($option4['sfsi_plus_ok_manualCounts'])) {
1130
- $scounts['ok_count'] = $option4['sfsi_plus_ok_manualCounts'];
1131
- }
1132
- if (isset($option4['sfsi_plus_weibo_manualCounts']) && !empty($option4['sfsi_plus_weibo_manualCounts'])) {
1133
- $scounts['weibo_count'] = $option4['sfsi_plus_weibo_manualCounts'];
1134
- }
1135
- if (isset($option4['sfsi_plus_wechat_manualCounts']) && !empty($option4['sfsi_plus_wechat_manualCounts'])) {
1136
- $scounts['wechat_count'] = $option4['sfsi_plus_wechat_manualCounts'];
1137
- }
1138
- }
1139
- return $scounts;
1140
- exit;
1141
- }
1142
-
1143
- /* activate and remove footer credit link */
1144
- add_action('wp_ajax_plus_activateFooter', 'sfsiplusActivateFooter');
1145
- function sfsiplusActivateFooter()
1146
- {
1147
- if (!wp_verify_nonce($_POST['nonce'], "active_plusfooter")) {
1148
- echo json_encode(array('res' => 'wrong_nonce'));
1149
- exit;
1150
- }
1151
- if (!current_user_can('manage_options')) {
1152
- echo json_encode(array('res' => 'not allowed'));
1153
- die();
1154
- }
1155
-
1156
- update_option('sfsi_plus_footer_sec', 'yes');
1157
- echo json_encode(array('res' => 'success'));
1158
- exit;
1159
- }
1160
-
1161
- add_action('wp_ajax_plus_removeFooter', 'sfsiplusremoveFooter');
1162
- function sfsiplusremoveFooter()
1163
- {
1164
- if (!wp_verify_nonce($_POST['nonce'], "remove_plusfooter")) {
1165
- echo json_encode(array('res' => 'wrong_nonce'));
1166
- exit;
1167
- }
1168
- if (!current_user_can('manage_options')) {
1169
- echo json_encode(array('res' => 'not allowed'));
1170
- die();
1171
- }
1172
-
1173
- update_option('sfsi_plus_footer_sec', 'no');
1174
- echo json_encode(array('res' => 'success'));
1175
- exit;
1176
- }
1177
-
1178
- add_action('wp_ajax_getIconPreview', 'sfsiPlusGetIconPreview');
1179
- function sfsiPlusGetIconPreview()
1180
- {
1181
- if (!wp_verify_nonce($_POST['nonce'], "plus_getIconPreview")) {
1182
- echo json_encode(array("wrong_nonce"));
1183
- exit;
1184
- }
1185
- if (!current_user_can('manage_options')) {
1186
- echo json_encode(array('res' => 'not allowed'));
1187
- die();
1188
- }
1189
- // extract($_POST);
1190
- $iconname = isset($_POST) && isset($_POST['iconname']) ? sanitize_text_field($_POST['iconname']) : '';
1191
- $iconValue = isset($_POST) && isset($_POST['iconValue']) ? sanitize_text_field($_POST['iconValue']) : '';
1192
- echo '<img src="' . $iconname . "/icon_" . $iconValue . '.png" >';
1193
- die;
1194
- }
1195
- add_action("wp_ajax_sfsiplus_curlerrornotification", "sfsiplus_curlerrornotification");
1196
- function sfsiPlusGetForm()
1197
- {
1198
- if (!wp_verify_nonce($_POST['nonce'], "plus_getForm")) {
1199
- echo json_encode(array("wrong_nonce"));
1200
- exit;
1201
- }
1202
- if (!current_user_can('manage_options')) {
1203
- echo json_encode(array('res' => 'not allowed'));
1204
- die();
1205
- }
1206
- // extract($_POST);
1207
- $heading = isset($_POST) && isset($_POST['heading']) ? sanitize_text_field($_POST['heading']) : '';
1208
- $placeholder = isset($_POST) && isset($_POST['placeholder']) ? sanitize_text_field($_POST['placeholder']) : '';
1209
- $button = isset($_POST) && isset($_POST['button']) ? sanitize_text_field($_POST['button']) : '';
1210
-
1211
- ?>
1212
- <xmp>
1213
- <div class="sfsi_subscribe_Popinner">
1214
- <form method="post">
1215
- <h5><?php echo $heading; ?></h5>
1216
- <div class="sfsi_subscription_form_field">
1217
- <input type="email" name="subscribe_email" placeholder="<?php echo $placeholder; ?>" value="" />
1218
- </div>
1219
- <div class="sfsi_subscription_form_field">
1220
- <input type="submit" name="subscribe" value="<?php echo $button; ?>" />
1221
- </div>
1222
- </form>
1223
- </div>
1224
- </xmp>
1225
- <?php
1226
- die;
1227
- }
1228
-
1229
- add_action("wp_ajax_sfsiPlus_notification_read", "sfsiPlus_notification_read");
1230
- function sfsiPlus_notification_read()
1231
- {
1232
- if (!wp_verify_nonce($_POST['nonce'], "plus_notification_read")) {
1233
- echo json_encode(array("wrong_nonce"));
1234
- exit;
1235
- }
1236
- if (!current_user_can('manage_options')) {
1237
- echo json_encode(array('res' => 'not allowed'));
1238
- die();
1239
- }
1240
- update_option("sfsi_plus_show_notification", "no");
1241
- echo "success";
1242
- die;
1243
- }
1244
-
1245
- add_action("wp_ajax_sfsiPlus_new_notification_read", "sfsiPlus_new_notification_read");
1246
- function sfsiPlus_new_notification_read()
1247
- {
1248
- if (!wp_verify_nonce($_POST['nonce'], "plus_notification_read")) {
1249
- echo json_encode(array("wrong_nonce"));
1250
- exit;
1251
- }
1252
- if (!current_user_can('manage_options')) {
1253
- echo json_encode(array('res' => 'not allowed'));
1254
- die();
1255
- }
1256
- update_option("sfsi_plus_new_show_notification", "no");
1257
- echo "success";
1258
- die;
1259
- }
1260
-
1261
- function sfsi_plus_sanitize_field($value)
1262
- {
1263
- return strip_tags(trim($value));
1264
- }
1265
- //Sanitize color code
1266
- if (@!function_exists("sfsi_plus_sanitize_hex_color")) {
1267
- function sfsi_plus_sanitize_hex_color($color)
1268
- {
1269
- if ('' === $color)
1270
- return '';
1271
-
1272
- // 3 or 6 hex digits, or the empty string.
1273
- if (preg_match('|^#([A-Fa-f0-9]{3}){1,2}$|', $color))
1274
- return $color;
1275
- }
1276
- }
1277
-
1278
- function sfsi_plus_returningElement($element)
1279
- {
1280
- return $element[0];
1281
- }
1282
-
1283
- function sfsi_plus_get_keywordEnglish()
1284
- {
1285
- $keywordFile = SFSI_PLUS_DOCROOT . "/All_english_words_better_list.csv";
1286
- $keywordData = @file_get_contents($keywordFile);
1287
- $keywordEnglish = array_map("str_getcsv", explode("\n", $keywordData));
1288
- $keywordEnglish = array_map('array_filter', $keywordEnglish);
1289
- $keywordEnglish = array_filter(array_map(sfsi_plus_returningElement($element), $keywordEnglish));
1290
- return $keywordEnglish;
1291
- }
1292
-
1293
-
1294
- add_action('wp_ajax_sfsiplusbannerOption', 'sfsi_plus_bannerOption');
1295
-
1296
- function sfsi_plus_bannerOption()
1297
- {
1298
-
1299
- error_reporting(1);
1300
- if (!wp_verify_nonce($_POST['nonce'], "plus_sfsiplusbannerOption")) {
1301
- echo json_encode(array("wrong_nonce"));
1302
- exit;
1303
- }
1304
- if (!current_user_can('manage_options')) {
1305
- echo json_encode(array('res' => 'not allowed'));
1306
- die();
1307
- }
1308
- try {
1309
- if (get_option("sfsi_plus_new_show_notification") == "yes") {
1310
-
1311
- $objThemeCheck = new sfsi_plus_ThemeCheck();
1312
-
1313
- $domainname = $objThemeCheck->sfsi_plus_getdomain(get_bloginfo('url'));
1314
-
1315
- // Get all themes data which incudes nobrainer
1316
- $themeDataArr = $objThemeCheck->sfsi_plus_get_themeData();
1317
- // var_dump($themeDataArr);die();
1318
- $matchFound = false;
1319
- foreach ($themeDataArr as $themeDataObj) :
1320
- if (isset($themeDataObj->themeName) && strlen($themeDataObj->themeName) > 0) {
1321
- $themeName = $themeDataObj->themeName;
1322
- $noBrainerKeywords = $themeDataObj->noBrainerKeywords;
1323
- $separateKeywords = $themeDataObj->separateKeywords;
1324
- $negativeKeywords = $themeDataObj->negativeKeywords;
1325
- $noBrainerAndSeparateKeywords = array_merge($noBrainerKeywords, $separateKeywords);
1326
- if ($objThemeCheck->sfsi_plus_check_type_of_websiteWithNoBrainerAndSeparateAndNegativeKeywords($themeName, $noBrainerKeywords, $separateKeywords, $noBrainerAndSeparateKeywords, $negativeKeywords, $domainname) == $themeName) {
1327
- $matchFound = true;
1328
-
1329
- $themeName = strtolower($themeName);
1330
-
1331
- $objThemeCheck->sfsi_plus_bannereHtml(
1332
- $themeDataObj->headline,
1333
- $themeDataObj->themeLink,
1334
- (SFSI_PLUS_PLUGURL) . 'images/website_theme/' . $themeName . '.png',
1335
- $themeDataObj->bottomtext
1336
- );
1337
-
1338
- break;
1339
- }
1340
- }
1341
-
1342
- endforeach;
1343
- if (!$matchFound) {
1344
- foreach ($themeDataArr as $themeDataObj) {
1345
-
1346
- if (isset($themeDataObj->themeName) && strlen($themeDataObj->themeName) > 0) {
1347
-
1348
- $themeName = $themeDataObj->themeName;
1349
- $noBrainerKeywords = $themeDataObj->noBrainerKeywords;
1350
- $separateKeywords = $themeDataObj->separateKeywords;
1351
- $negativeKeywords = $themeDataObj->negativeKeywords;
1352
- $noBrainerAndSeparateKeywords = array_merge($noBrainerKeywords, $separateKeywords);
1353
-
1354
-
1355
- if ($objThemeCheck->sfsi_plus_check_type_of_metaTitleWithNoBrainerAndSeparateAndNegativeKeywords($themeName, $noBrainerKeywords, $separateKeywords, $noBrainerAndSeparateKeywords, $negativeKeywords, $domainname) == $themeName) {
1356
- $matchFound = true;
1357
-
1358
- $themeName = strtolower($themeName);
1359
-
1360
- $objThemeCheck->sfsi_plus_bannereHtml(
1361
- $themeDataObj->headline,
1362
- $themeDataObj->themeLink,
1363
- SFSI_PLUS_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1364
- $themeDataObj->bottomtext
1365
- );
1366
-
1367
- break;
1368
- }
1369
- }
1370
- }
1371
- }
1372
- if (!$matchFound) {
1373
- foreach ($themeDataArr as $themeDataObj) {
1374
-
1375
- if (isset($themeDataObj->themeName) && strlen($themeDataObj->themeName) > 0) {
1376
-
1377
- $themeName = $themeDataObj->themeName;
1378
- $noBrainerKeywords = $themeDataObj->noBrainerKeywords;
1379
- $separateKeywords = $themeDataObj->separateKeywords;
1380
- $negativeKeywords = $themeDataObj->negativeKeywords;
1381
- $noBrainerAndSeparateKeywords = array_merge($noBrainerKeywords, $separateKeywords);
1382
-
1383
-
1384
- if ($objThemeCheck->sfsi_plus_check_type_of_metaKeywordsWithNoBrainerAndSeparateAndNegativeKeywords($themeName, $noBrainerKeywords, $separateKeywords, $noBrainerAndSeparateKeywords, $negativeKeywords, $domainname) == $themeName) {
1385
- $matchFound = true;
1386
-
1387
- $themeName = strtolower($themeName);
1388
-
1389
- $objThemeCheck->sfsi_plus_bannereHtml(
1390
- $themeDataObj->headline,
1391
- $themeDataObj->themeLink,
1392
- SFSI_PLUS_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1393
- $themeDataObj->bottomtext
1394
- );
1395
-
1396
- break;
1397
- }
1398
- }
1399
- }
1400
- }
1401
- if (!$matchFound) {
1402
- foreach ($themeDataArr as $themeDataObj) {
1403
-
1404
- if (isset($themeDataObj->themeName) && strlen($themeDataObj->themeName) > 0) {
1405
-
1406
- $themeName = $themeDataObj->themeName;
1407
- $noBrainerKeywords = $themeDataObj->noBrainerKeywords;
1408
- $separateKeywords = $themeDataObj->separateKeywords;
1409
- $negativeKeywords = $themeDataObj->negativeKeywords;
1410
- $noBrainerAndSeparateKeywords = array_merge($noBrainerKeywords, $separateKeywords);
1411
-
1412
-
1413
- if ($objThemeCheck->sfsi_plus_check_type_of_metaDescriptionWithNoBrainerAndSeparateAndNegativeKeywords($themeName, $noBrainerKeywords, $separateKeywords, $noBrainerAndSeparateKeywords, $negativeKeywords, $domainname) == $themeName) {
1414
- $matchFound = true;
1415
-
1416
- $themeName = strtolower($themeName);
1417
-
1418
- $objThemeCheck->sfsi_plus_bannereHtml(
1419
- $themeDataObj->headline,
1420
- $themeDataObj->themeLink,
1421
- SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1422
- $themeDataObj->bottomtext
1423
- );
1424
-
1425
- break;
1426
- }
1427
- }
1428
- }
1429
- }
1430
- echo '<script>
1431
- jQuery("body").on("click", ".sfsi_plus_new_notification_cross_cat", function(){
1432
- SFSI.ajax({
1433
- url:sfsi_plus_ajax_object.ajax_url,
1434
- type:"post",
1435
- data: {action: "sfsiPlus_new_notification_read",nonce:"' . (wp_create_nonce('plus_notification_read')) . '"},
1436
- success:function(msg){
1437
- if(jQuery.trim(msg) == "success")
1438
- {
1439
- jQuery(".sfsi_plus_new_notification_cat").hide("fast");
1440
- }
1441
- }
1442
- });
1443
- });
1444
- </script>';
1445
- }
1446
- } catch (Exception $e) {
1447
- // var_dump($e);die();
1448
- }
1449
- die;
1450
- }
1451
-
1452
- add_action('wp_ajax_sfsiplusOfflineChatMessage', 'sfsi_plus_OfflineChatMessage');
1453
-
1454
- function sfsi_plus_OfflineChatMessage()
1455
- {
1456
- if (!wp_verify_nonce($_POST['nonce'], "plus_sfsiplusOfflineChatMessage")) {
1457
- echo json_encode(array("wrong_nonce"));
1458
- exit;
1459
- }
1460
- if (!current_user_can('manage_options')) {
1461
- echo json_encode(array('res' => 'not allowed'));
1462
- die();
1463
- }
1464
- error_reporting(0);
1465
- // extract($_POST);
1466
- $email = isset($_POST) && isset($_POST['email']) ? sanitize_text_field($_POST['email']) : '';
1467
- $message = isset($_POST) && isset($_POST['message']) ? sanitize_textarea_field($_POST['message']) : '';
1468
- $body = "<table><tr><th>Site:</th><td>" . home_url() . "</td></tr><tr><th>Email:</th><td>" . $email . "</td></tr><tr><th>Message:</th><td>" . $message . "</td></tr></table>";
1469
- $sent = wp_mail('help@ultimatelysocial.com', "New question from user", $body, array('Content-Type: text/html; charset=UTF-8'));
1470
- if (isset($sent) && (true === $sent)) {
1471
- echo "success";
1472
- } else {
1473
- echo "failure";
1474
- }
1475
- die();
1476
- }
1477
-
1478
- add_action('wp_ajax_worker_plugin', 'sfsi_plus_worker_plugin');
1479
- // define('usmpw_PLUS_worker_plugin','usm_premium_worker.php');
1480
-
1481
-
1482
  ?>
1
+ <?php
2
+ /* save all option to options table in database using ajax */
3
+ /* save settings for section 1 */
4
+ add_action('wp_ajax_plus_updateSrcn1', 'sfsi_plus_options_updater1');
5
+ function sfsi_plus_options_updater1()
6
+ {
7
+ if (!wp_verify_nonce($_POST['nonce'], "update_plus_step1")) {
8
+ echo json_encode(array("wrong_nonce"));
9
+ exit;
10
+ }
11
+ if (!current_user_can('manage_options')) {
12
+ echo json_encode(array('res' => 'not allowed'));
13
+ die();
14
+ }
15
+ $option1 = unserialize(get_option('sfsi_plus_section1_options', false));
16
+ $sfsi_plus_rss_display = isset($_POST["sfsi_plus_rss_display"]) ? sanitize_text_field($_POST["sfsi_plus_rss_display"]) : 'no';
17
+ $sfsi_plus_email_display = isset($_POST["sfsi_plus_email_display"]) ? sanitize_text_field($_POST["sfsi_plus_email_display"]) : 'no';
18
+ $sfsi_plus_facebook_display = isset($_POST["sfsi_plus_facebook_display"]) ? sanitize_text_field($_POST["sfsi_plus_facebook_display"]) : 'no';
19
+ $sfsi_plus_twitter_display = isset($_POST["sfsi_plus_twitter_display"]) ? sanitize_text_field($_POST["sfsi_plus_twitter_display"]) : 'no';
20
+ $sfsi_plus_youtube_display = isset($_POST["sfsi_plus_youtube_display"]) ? sanitize_text_field($_POST["sfsi_plus_youtube_display"]) : 'no';
21
+ $sfsi_plus_pinterest_display = isset($_POST["sfsi_plus_pinterest_display"]) ? sanitize_text_field($_POST["sfsi_plus_pinterest_display"]) : 'no';
22
+ $sfsi_plus_instagram_display = isset($_POST["sfsi_plus_instagram_display"]) ? sanitize_text_field($_POST["sfsi_plus_instagram_display"]) : 'no';
23
+ $sfsi_plus_houzz_display = isset($_POST["sfsi_plus_houzz_display"]) ? sanitize_text_field($_POST["sfsi_plus_houzz_display"]) : 'no';
24
+ $sfsi_plus_telegram_display = isset($_POST["sfsi_plus_telegram_display"]) ? sanitize_text_field($_POST["sfsi_plus_telegram_display"]) : 'no';
25
+ $sfsi_plus_vk_display = isset($_POST["sfsi_plus_vk_display"]) ? sanitize_text_field($_POST["sfsi_plus_vk_display"]) : 'no';
26
+ $sfsi_plus_ok_display = isset($_POST["sfsi_plus_ok_display"]) ? sanitize_text_field($_POST["sfsi_plus_ok_display"]) : 'no';
27
+ $sfsi_plus_weibo_display = isset($_POST["sfsi_plus_weibo_display"]) ? sanitize_text_field($_POST["sfsi_plus_weibo_display"]) : 'no';
28
+ $sfsi_plus_wechat_display = isset($_POST["sfsi_plus_wechat_display"]) ? sanitize_text_field($_POST["sfsi_plus_wechat_display"]) : 'no';
29
+ $sfsi_plus_houzz_display = isset($_POST["sfsi_plus_houzz_display"]) ? sanitize_text_field($_POST["sfsi_plus_houzz_display"]) : 'no';
30
+ $sfsi_plus_linkedin_display = isset($_POST["sfsi_plus_linkedin_display"]) ? sanitize_text_field($_POST["sfsi_plus_linkedin_display"]) : 'no';
31
+
32
+ $sfsi_custom_icons = isset($option1['sfsi_custom_files']) ? $option1['sfsi_custom_files'] : '';
33
+ $up_option1 = array(
34
+ 'sfsi_plus_rss_display' => sanitize_text_field($sfsi_plus_rss_display),
35
+ 'sfsi_plus_email_display' => sanitize_text_field($sfsi_plus_email_display),
36
+ 'sfsi_plus_facebook_display' => sanitize_text_field($sfsi_plus_facebook_display),
37
+ 'sfsi_plus_twitter_display' => sanitize_text_field($sfsi_plus_twitter_display),
38
+ 'sfsi_plus_youtube_display' => sanitize_text_field($sfsi_plus_youtube_display),
39
+ 'sfsi_plus_pinterest_display' => sanitize_text_field($sfsi_plus_pinterest_display),
40
+ 'sfsi_plus_linkedin_display' => sanitize_text_field($sfsi_plus_linkedin_display),
41
+ 'sfsi_plus_instagram_display' => sanitize_text_field($sfsi_plus_instagram_display),
42
+ 'sfsi_plus_ok_display' => sanitize_text_field($sfsi_plus_ok_display),
43
+ 'sfsi_plus_telegram_display' => sanitize_text_field($sfsi_plus_telegram_display),
44
+ 'sfsi_plus_vk_display' => sanitize_text_field($sfsi_plus_vk_display),
45
+ 'sfsi_plus_wechat_display' => sanitize_text_field($sfsi_plus_wechat_display),
46
+ 'sfsi_plus_weibo_display' => sanitize_text_field($sfsi_plus_weibo_display),
47
+ 'sfsi_plus_houzz_display' => sanitize_text_field($sfsi_plus_houzz_display),
48
+ 'sfsi_custom_files' => $sfsi_custom_icons
49
+ );
50
+
51
+ $c = update_option('sfsi_plus_section1_options', serialize($up_option1));
52
+
53
+ header('Content-Type: application/json');
54
+ echo json_encode(array("success"));
55
+ exit;
56
+ }
57
+ /* save settings for section 2 */
58
+ add_action('wp_ajax_plus_updateSrcn2', 'sfsi_plus_options_updater2');
59
+ function sfsi_plus_options_updater2()
60
+ {
61
+ if (!wp_verify_nonce($_POST['nonce'], "update_plus_step2")) {
62
+ echo json_encode(array("wrong_nonce"));
63
+ exit;
64
+ }
65
+ if (!current_user_can('manage_options')) {
66
+ echo json_encode(array('res' => 'not allowed'));
67
+ die();
68
+ }
69
+ $sfsi_plus_rss_url = isset($_POST["sfsi_plus_rss_url"]) ? esc_url(trim($_POST["sfsi_plus_rss_url"])) : '';
70
+ $sfsi_plus_rss_icons = isset($_POST["sfsi_plus_rss_icons"]) ? sanitize_text_field($_POST["sfsi_plus_rss_icons"]) : 'email';
71
+
72
+ $sfsi_plus_facebookPage_option = isset($_POST["sfsi_plus_facebookPage_option"]) ? sanitize_text_field($_POST["sfsi_plus_facebookPage_option"]) : 'no';
73
+ $sfsi_plus_facebookPage_url = isset($_POST["sfsi_plus_facebookPage_url"]) ? esc_url(trim($_POST["sfsi_plus_facebookPage_url"])) : '';
74
+ $sfsi_plus_facebookLike_option = isset($_POST["sfsi_plus_facebookLike_option"]) ? sanitize_text_field($_POST["sfsi_plus_facebookLike_option"]) : 'no';
75
+ $sfsi_plus_facebookShare_option = isset($_POST["sfsi_plus_facebookShare_option"]) ? sanitize_text_field($_POST["sfsi_plus_facebookShare_option"]) : 'no';
76
+
77
+ $sfsi_plus_twitter_followme = isset($_POST["sfsi_plus_twitter_followme"]) ? sanitize_text_field($_POST["sfsi_plus_twitter_followme"]) : 'no';
78
+ $sfsi_plus_twitter_followUserName = isset($_POST["sfsi_plus_twitter_followUserName"]) ? sanitize_text_field(trim($_POST["sfsi_plus_twitter_followUserName"])) : '';
79
+ $sfsi_plus_twitter_aboutPage = isset($_POST["sfsi_plus_twitter_aboutPage"]) ? sanitize_text_field($_POST["sfsi_plus_twitter_aboutPage"]) : 'no';
80
+ $sfsi_plus_twitter_page = isset($_POST["sfsi_plus_twitter_page"]) ? sanitize_text_field($_POST["sfsi_plus_twitter_page"]) : 'no';
81
+ $sfsi_plus_twitter_pageURL = isset($_POST["sfsi_plus_twitter_pageURL"]) ? esc_url(trim($_POST["sfsi_plus_twitter_pageURL"])) : '';
82
+ $sfsi_plus_twitter_aboutPageText = isset($_POST["sfsi_plus_twitter_aboutPageText"]) ? sanitize_text_field($_POST["sfsi_plus_twitter_aboutPageText"]) : 'Hey check out this cool site I found';
83
+
84
+ $sfsi_plus_youtube_pageUrl = isset($_POST["sfsi_plus_youtube_pageUrl"]) ? esc_url(trim($_POST["sfsi_plus_youtube_pageUrl"])) : '';
85
+ $sfsi_plus_youtube_page = isset($_POST["sfsi_plus_youtube_page"]) ? sanitize_text_field($_POST["sfsi_plus_youtube_page"]) : 'no';
86
+ $sfsi_plus_youtube_follow = isset($_POST["sfsi_plus_youtube_follow"]) ? sanitize_text_field($_POST["sfsi_plus_youtube_follow"]) : 'no';
87
+
88
+ $sfsi_plus_pinterest_page = isset($_POST["sfsi_plus_pinterest_page"]) ? sanitize_text_field($_POST["sfsi_plus_pinterest_page"]) : 'no';
89
+ $sfsi_plus_pinterest_pageUrl = isset($_POST["sfsi_plus_pinterest_pageUrl"]) ? esc_url(trim($_POST["sfsi_plus_pinterest_pageUrl"])) : '';
90
+ $sfsi_plus_pinterest_pingBlog = isset($_POST["sfsi_plus_pinterest_pingBlog"]) ? sanitize_text_field($_POST["sfsi_plus_pinterest_pingBlog"]) : 'no';
91
+
92
+ $sfsi_plus_instagram_pageUrl = isset($_POST["sfsi_plus_instagram_pageUrl"]) ? esc_url(trim($_POST["sfsi_plus_instagram_pageUrl"])) : '';
93
+
94
+ $sfsi_plus_linkedin_page = isset($_POST["sfsi_plus_linkedin_page"]) ? sanitize_text_field($_POST["sfsi_plus_linkedin_page"]) : 'no';
95
+ $sfsi_plus_linkedin_pageURL = isset($_POST["sfsi_plus_linkedin_pageURL"]) ? esc_url(trim($_POST["sfsi_plus_linkedin_pageURL"])) : '';
96
+ $sfsi_plus_linkedin_follow = isset($_POST["sfsi_plus_linkedin_follow"]) ? sanitize_text_field($_POST["sfsi_plus_linkedin_follow"]) : 'no';
97
+ $sfsi_plus_linkedin_SharePage = isset($_POST["sfsi_plus_linkedin_SharePage"]) ? sanitize_text_field($_POST["sfsi_plus_linkedin_SharePage"]) : 'no';
98
+
99
+ $sfsi_plus_linkedin_followCompany = isset($_POST["sfsi_plus_linkedin_followCompany"])
100
+ ? intval(
101
+ trim($_POST["sfsi_plus_linkedin_followCompany"])
102
+ ) : '';
103
+ $sfsi_plus_linkedin_recommendBusines = isset($_POST["sfsi_plus_linkedin_recommendBusines"])
104
+ ? sanitize_text_field(
105
+ $_POST["sfsi_plus_linkedin_recommendBusines"]
106
+ ) : 'no';
107
+ $sfsi_plus_linkedin_recommendCompany = isset($_POST["sfsi_plus_linkedin_recommendCompany"])
108
+ ? sanitize_text_field(
109
+ trim($_POST["sfsi_plus_linkedin_recommendCompany"])
110
+ ) : '';
111
+ $sfsi_plus_linkedin_recommendProductId = isset($_POST["sfsi_plus_linkedin_recommendProductId"])
112
+ ? intval(
113
+ trim($_POST["sfsi_plus_linkedin_recommendProductId"])
114
+ ) : '';
115
+
116
+ $sfsi_plus_youtubeusernameorid = isset($_POST["sfsi_plus_youtubeusernameorid"]) ? sanitize_text_field(trim($_POST["sfsi_plus_youtubeusernameorid"])) : '';
117
+ $sfsi_plus_ytube_user = isset($_POST["sfsi_plus_ytube_user"]) ? sanitize_text_field($_POST["sfsi_plus_ytube_user"]) : '';
118
+ $sfsi_plus_ytube_chnlid = isset($_POST["sfsi_plus_ytube_chnlid"]) ? sanitize_text_field($_POST["sfsi_plus_ytube_chnlid"]) : '';
119
+
120
+ $sfsi_plus_okVisit_option = isset($_POST["sfsi_plus_okVisit_option"]) ? sanitize_text_field($_POST["sfsi_plus_okVisit_option"]) : 'no';
121
+ $sfsi_plus_okVisit_url = isset($_POST["sfsi_plus_okVisit_url"]) ? esc_url($_POST["sfsi_plus_okVisit_url"]) : '';
122
+
123
+ $sfsi_plus_okSubscribe_option = isset($_POST["sfsi_plus_okSubscribe_option"]) ? sanitize_text_field($_POST["sfsi_plus_okSubscribe_option"]) : 'no';
124
+ $sfsi_plus_okSubscribe_userid = isset($_POST["sfsi_plus_okSubscribe_userid"]) ? sanitize_text_field($_POST["sfsi_plus_okSubscribe_userid"]) : '';
125
+
126
+ $sfsi_plus_okLike_option = isset($_POST["sfsi_plus_okLike_option"]) ? sanitize_text_field($_POST["sfsi_plus_okLike_option"]) : 'no';
127
+
128
+ $sfsi_plus_telegramShare_option = isset($_POST["sfsi_plus_telegramShare_option"]) ? sanitize_text_field($_POST["sfsi_plus_telegramShare_option"]) : 'no';
129
+ $sfsi_plus_telegramMessage_option = isset($_POST["sfsi_plus_telegramMessage_option"]) ? sanitize_text_field($_POST["sfsi_plus_telegramMessage_option"]) : 'no';
130
+ $sfsi_plus_telegram_message = isset($_POST["sfsi_plus_telegram_message"]) ? sanitize_text_field($_POST["sfsi_plus_telegram_message"]) : '';
131
+ $sfsi_plus_telegram_username = isset($_POST["sfsi_plus_telegram_username"]) ? sanitize_text_field($_POST["sfsi_plus_telegram_username"]) : '';
132
+
133
+
134
+ $sfsi_plus_vkVisit_option = isset($_POST["sfsi_plus_vkVisit_option"]) ? sanitize_text_field($_POST["sfsi_plus_vkVisit_option"]) : 'no';
135
+ $sfsi_plus_vkShare_option = isset($_POST["sfsi_plus_vkShare_option"]) ? sanitize_text_field($_POST["sfsi_plus_vkShare_option"]) : 'no';
136
+ $sfsi_plus_vkLike_option = isset($_POST["sfsi_plus_vkLike_option"]) ? sanitize_text_field($_POST["sfsi_plus_vkLike_option"]) : 'no';
137
+ $sfsi_plus_vkVisit_url = isset($_POST["sfsi_plus_vkVisit_url"]) ? sanitize_text_field($_POST["sfsi_plus_vkVisit_url"]) : '';
138
+
139
+
140
+ $sfsi_plus_weiboVisit_option = isset($_POST["sfsi_plus_weiboVisit_option"]) ? sanitize_text_field($_POST["sfsi_plus_weiboVisit_option"]) : 'no';
141
+ $sfsi_plus_weiboShare_option = isset($_POST["sfsi_plus_weiboShare_option"]) ? sanitize_text_field($_POST["sfsi_plus_weiboShare_option"]) : 'no';
142
+ $sfsi_plus_weiboLike_option = isset($_POST["sfsi_plus_weiboLike_option"]) ? sanitize_text_field($_POST["sfsi_plus_weiboLike_option"]) : 'no';
143
+ $sfsi_plus_weiboVisit_url = isset($_POST["sfsi_plus_weiboVisit_url"]) ? sanitize_text_field($_POST["sfsi_plus_weiboVisit_url"]) : '';;
144
+ $sfsi_plus_wechatFollow_option = isset($_POST["sfsi_plus_wechatFollow_option"]) ? sanitize_text_field($_POST["sfsi_plus_wechatFollow_option"]) : 'no';
145
+ $sfsi_plus_wechatShare_option = isset($_POST["sfsi_plus_wechatShare_option"]) ? sanitize_text_field($_POST["sfsi_plus_wechatShare_option"]) : 'no';
146
+ $sfsi_plus_wechat_scan_image = isset($_POST["sfsi_plus_wechat_scan_image"]) ? sanitize_text_field($_POST["sfsi_plus_wechat_scan_image"]) : '';
147
+
148
+ /*
149
+ * Escape custom icons url
150
+ */
151
+ if (
152
+ isset($_POST["sfsi_plus_custom_links"]) &&
153
+ !empty($_POST["sfsi_plus_custom_links"])
154
+ ) {
155
+ $esacpedUrls = array();
156
+ $sfsi_plus_CustomIcon_links = $_POST["sfsi_plus_custom_links"];
157
+
158
+ foreach ($sfsi_plus_CustomIcon_links as $key => $sfsi_pluscustomIconUrl) {
159
+ $esacpedUrls[$key] = esc_url($sfsi_pluscustomIconUrl);
160
+ }
161
+ } else {
162
+ $esacpedUrls = '';
163
+ }
164
+ $sfsi_plus_CustomIcon_links = isset($_POST["sfsi_plus_custom_links"]) ? serialize($esacpedUrls) : '';
165
+ $sfsi_plus_houzz_pageUrl = isset($_POST["sfsi_plus_houzz_pageUrl"]) ? esc_url(trim($_POST["sfsi_plus_houzz_pageUrl"])) : '';
166
+
167
+ $option2 = unserialize(get_option('sfsi_plus_section2_options', false));
168
+ $up_option2 = array(
169
+ 'sfsi_plus_rss_url' => esc_url($sfsi_plus_rss_url),
170
+ 'sfsi_rss_blogName' => '',
171
+ 'sfsi_rss_blogEmail' => '',
172
+ 'sfsi_plus_rss_icons' => sanitize_text_field($sfsi_plus_rss_icons),
173
+ 'sfsi_plus_email_url' => esc_url($option2['sfsi_plus_email_url']),
174
+ /* facebook buttons options */
175
+ 'sfsi_plus_facebookPage_option' => sanitize_text_field($sfsi_plus_facebookPage_option),
176
+ 'sfsi_plus_facebookPage_url' => esc_url($sfsi_plus_facebookPage_url),
177
+ 'sfsi_plus_facebookLike_option' => sanitize_text_field($sfsi_plus_facebookLike_option),
178
+ 'sfsi_plus_facebookShare_option' => sanitize_text_field($sfsi_plus_facebookShare_option),
179
+
180
+ /* Twitter buttons options */
181
+ 'sfsi_plus_twitter_followme' => sanitize_text_field($sfsi_plus_twitter_followme),
182
+ 'sfsi_plus_twitter_followUserName' => sanitize_text_field($sfsi_plus_twitter_followUserName),
183
+ 'sfsi_plus_twitter_aboutPage' => sanitize_text_field($sfsi_plus_twitter_aboutPage),
184
+ 'sfsi_plus_twitter_page' => sanitize_text_field($sfsi_plus_twitter_page),
185
+ 'sfsi_plus_twitter_pageURL' => esc_url($sfsi_plus_twitter_pageURL),
186
+ 'sfsi_plus_twitter_aboutPageText' => sanitize_text_field($sfsi_plus_twitter_aboutPageText),
187
+
188
+ /* youtube options */
189
+ 'sfsi_plus_youtube_pageUrl' => esc_url($sfsi_plus_youtube_pageUrl),
190
+ 'sfsi_plus_youtube_page' => sanitize_text_field($sfsi_plus_youtube_page),
191
+ 'sfsi_plus_youtube_follow' => sanitize_text_field($sfsi_plus_youtube_follow),
192
+ 'sfsi_plus_ytube_user' => sanitize_text_field($sfsi_plus_ytube_user),
193
+ 'sfsi_plus_youtubeusernameorid' => sanitize_text_field($sfsi_plus_youtubeusernameorid),
194
+ 'sfsi_plus_ytube_chnlid' => sanitize_text_field($sfsi_plus_ytube_chnlid),
195
+
196
+ /* pinterest options */
197
+ 'sfsi_plus_pinterest_page' => sanitize_text_field($sfsi_plus_pinterest_page),
198
+ 'sfsi_plus_pinterest_pageUrl' => esc_url($sfsi_plus_pinterest_pageUrl),
199
+ 'sfsi_plus_pinterest_pingBlog' => sanitize_text_field($sfsi_plus_pinterest_pingBlog),
200
+
201
+ /* instagram and houzz options */
202
+ 'sfsi_plus_instagram_pageUrl' => esc_url($sfsi_plus_instagram_pageUrl),
203
+ 'sfsi_plus_houzz_pageUrl' => esc_url($sfsi_plus_houzz_pageUrl),
204
+ //MZ CODE START
205
+
206
+ /** OK */
207
+ 'sfsi_plus_okVisit_option' => sanitize_text_field($sfsi_plus_okVisit_option),
208
+ 'sfsi_plus_okVisit_url' => sanitize_text_field($sfsi_plus_okVisit_url),
209
+ 'sfsi_plus_okSubscribe_option' => sanitize_text_field($sfsi_plus_okSubscribe_option),
210
+ 'sfsi_plus_okSubscribe_userid' => sanitize_text_field($sfsi_plus_okSubscribe_userid),
211
+ 'sfsi_plus_okLike_option' => sanitize_text_field($sfsi_plus_okLike_option),
212
+
213
+ /* telegram */
214
+ 'sfsi_plus_telegramShare_option' => sanitize_text_field($sfsi_plus_telegramShare_option),
215
+ 'sfsi_plus_telegramMessage_option' => sanitize_text_field($sfsi_plus_telegramMessage_option),
216
+ 'sfsi_plus_telegram_message' => sanitize_text_field($sfsi_plus_telegram_message),
217
+ 'sfsi_plus_telegram_username' => sanitize_text_field($sfsi_plus_telegram_username),
218
+
219
+ /* VK */
220
+ 'sfsi_plus_vkVisit_option' => sanitize_text_field($sfsi_plus_vkVisit_option),
221
+ 'sfsi_plus_vkShare_option' => sanitize_text_field($sfsi_plus_vkShare_option),
222
+ 'sfsi_plus_vkLike_option' => sanitize_text_field($sfsi_plus_vkLike_option),
223
+ 'sfsi_plus_vkVisit_url' => sanitize_text_field($sfsi_plus_vkVisit_url),
224
+
225
+ /** Weibo */
226
+ 'sfsi_plus_weiboVisit_option' => sanitize_text_field($sfsi_plus_weiboVisit_option),
227
+ 'sfsi_plus_weiboShare_option' => sanitize_text_field($sfsi_plus_weiboShare_option),
228
+ 'sfsi_plus_weiboLike_option' => sanitize_text_field($sfsi_plus_weiboLike_option),
229
+ 'sfsi_plus_weiboVisit_url' => sanitize_text_field($sfsi_plus_weiboVisit_url),
230
+
231
+ /**Wechat */
232
+ 'sfsi_plus_wechatFollow_option' => sanitize_text_field($sfsi_plus_wechatFollow_option),
233
+ 'sfsi_plus_wechatShare_option' => sanitize_text_field($sfsi_plus_wechatShare_option),
234
+ 'sfsi_plus_wechat_scan_image' => sanitize_text_field($sfsi_plus_wechat_scan_image),
235
+
236
+
237
+ //MZ CODE END
238
+ /* linkedIn options */
239
+ 'sfsi_plus_linkedin_page' => sanitize_text_field($sfsi_plus_linkedin_page),
240
+ 'sfsi_plus_linkedin_pageURL' => esc_url($sfsi_plus_linkedin_pageURL),
241
+ 'sfsi_plus_linkedin_follow' => sanitize_text_field($sfsi_plus_linkedin_follow),
242
+ 'sfsi_plus_linkedin_followCompany' => intval($sfsi_plus_linkedin_followCompany),
243
+ 'sfsi_plus_linkedin_SharePage' => sanitize_text_field($sfsi_plus_linkedin_SharePage),
244
+ 'sfsi_plus_linkedin_recommendBusines' => sanitize_text_field($sfsi_plus_linkedin_recommendBusines),
245
+ 'sfsi_plus_linkedin_recommendCompany' => sanitize_text_field($sfsi_plus_linkedin_recommendCompany),
246
+ 'sfsi_plus_linkedin_recommendProductId' => intval($sfsi_plus_linkedin_recommendProductId),
247
+ 'sfsi_plus_CustomIcon_links' => $sfsi_plus_CustomIcon_links
248
+ );
249
+ update_option('sfsi_plus_section2_options', serialize($up_option2));
250
+ $option4 = unserialize(get_option('sfsi_plus_section4_options', false));
251
+
252
+ $option4['sfsi_plus_youtubeusernameorid'] = sanitize_text_field($sfsi_plus_youtubeusernameorid);
253
+ $option4['sfsi_plus_ytube_chnlid'] = sfsi_plus_sanitize_field($sfsi_plus_ytube_chnlid);
254
+ update_option('sfsi_plus_section4_options', serialize($option4));
255
+
256
+ header('Content-Type: application/json');
257
+ echo json_encode(array("success"));
258
+ exit;
259
+ }
260
+ /* save settings for section 3 */
261
+ add_action('wp_ajax_plus_updateSrcn3', 'sfsi_plus_options_updater3');
262
+ function sfsi_plus_options_updater3()
263
+ {
264
+ if (!wp_verify_nonce($_POST['nonce'], "update_plus_step3")) {
265
+ echo json_encode(array("wrong_nonce"));
266
+ exit;
267
+ }
268
+ if (!current_user_can('manage_options')) {
269
+ echo json_encode(array('res' => 'not allowed'));
270
+ die();
271
+ }
272
+ $sfsi_plus_actvite_theme = isset($_POST["sfsi_plus_actvite_theme"]) ? sanitize_text_field($_POST["sfsi_plus_actvite_theme"]) : 'no';
273
+ $sfsi_plus_mouseOver = isset($_POST["sfsi_plus_mouseOver"]) ? sanitize_text_field($_POST["sfsi_plus_mouseOver"]) : 'no';
274
+
275
+ $sfsi_plus_mouseOver_effect = isset($_POST["sfsi_plus_mouseOver_effect"]) ? sanitize_text_field($_POST["sfsi_plus_mouseOver_effect"]) : 'fade_in';
276
+
277
+ $sfsi_plus_mouseover_effect_type = isset($_POST["sfsi_plus_mouseover_effect_type"]) ? sanitize_text_field($_POST["sfsi_plus_mouseover_effect_type"]) : 'same_icons';
278
+
279
+ $sfsi_plus_shuffle_icons = isset($_POST["sfsi_plus_shuffle_icons"]) ? sanitize_text_field($_POST["sfsi_plus_shuffle_icons"]) : 'no';
280
+ $sfsi_plus_shuffle_Firstload = isset($_POST["sfsi_plus_shuffle_Firstload"]) ? sanitize_text_field($_POST["sfsi_plus_shuffle_Firstload"]) : 'no';
281
+ $sfsi_plus_shuffle_interval = isset($_POST["sfsi_plus_shuffle_interval"]) ? sanitize_text_field($_POST["sfsi_plus_shuffle_interval"]) : 'no';
282
+ $sfsi_plus_shuffle_intervalTime = isset($_POST["sfsi_plus_shuffle_intervalTime"]) ? intval($_POST["sfsi_plus_shuffle_intervalTime"]) : '';
283
+ $sfsi_plus_specialIcon_animation = isset($_POST["sfsi_plus_specialIcon_animation"]) ? sanitize_text_field($_POST["sfsi_plus_specialIcon_animation"]) : '';
284
+ $sfsi_plus_specialIcon_MouseOver = isset($_POST["sfsi_plus_specialIcon_MouseOver"]) ? sanitize_text_field($_POST["sfsi_plus_specialIcon_MouseOver"]) : 'no';
285
+ $sfsi_plus_specialIcon_Firstload = isset($_POST["sfsi_plus_specialIcon_Firstload"]) ? sanitize_text_field($_POST["sfsi_plus_specialIcon_Firstload"]) : 'no';
286
+
287
+ $sfsi_plus_specialIcon_Firstload_Icons = isset($_POST["sfsi_plus_specialIcon_Firstload_Icons"])
288
+ ? sanitize_text_field(
289
+ $_POST["sfsi_plus_specialIcon_Firstload_Icons"]
290
+ ) : 'all';
291
+ $sfsi_plus_specialIcon_interval = isset($_POST["sfsi_plus_specialIcon_interval"])
292
+ ? sanitize_text_field(
293
+ $_POST["sfsi_plus_specialIcon_interval"]
294
+ ) : 'no';
295
+ $sfsi_plus_specialIcon_intervalTime = isset($_POST["sfsi_plus_specialIcon_intervalTime"])
296
+ ? sanitize_text_field(
297
+ $_POST["sfsi_plus_specialIcon_intervalTime"]
298
+ ) : '';
299
+ $sfsi_plus_specialIcon_intervalIcons = isset($_POST["sfsi_plus_specialIcon_intervalIcons"])
300
+ ? sanitize_text_field(
301
+ $_POST["sfsi_plus_specialIcon_intervalIcons"]
302
+ ) : 'all';
303
+
304
+ /* Design and animation option */
305
+ $up_option3 = array(
306
+ 'sfsi_plus_actvite_theme' => sanitize_text_field($sfsi_plus_actvite_theme),
307
+ /* animations options */
308
+ 'sfsi_plus_mouseOver' => sanitize_text_field($sfsi_plus_mouseOver),
309
+ 'sfsi_plus_mouseOver_effect' => sanitize_text_field($sfsi_plus_mouseOver_effect),
310
+ 'sfsi_plus_mouseover_effect_type' => sanitize_text_field($sfsi_plus_mouseover_effect_type),
311
+ 'sfsi_plus_shuffle_icons' => sanitize_text_field($sfsi_plus_shuffle_icons),
312
+ 'sfsi_plus_shuffle_Firstload' => sanitize_text_field($sfsi_plus_shuffle_Firstload),
313
+ 'sfsi_plus_shuffle_interval' => sanitize_text_field($sfsi_plus_shuffle_interval),
314
+ 'sfsi_plus_shuffle_intervalTime' => intval($sfsi_plus_shuffle_intervalTime),
315
+ 'sfsi_plus_specialIcon_animation' => sanitize_text_field($sfsi_plus_specialIcon_animation),
316
+ 'sfsi_plus_specialIcon_MouseOver' => sanitize_text_field($sfsi_plus_specialIcon_MouseOver),
317
+ 'sfsi_plus_specialIcon_Firstload' => sanitize_text_field($sfsi_plus_specialIcon_Firstload),
318
+ 'sfsi_plus_specialIcon_Firstload_Icons' => sanitize_text_field($sfsi_plus_specialIcon_Firstload_Icons),
319
+ 'sfsi_plus_specialIcon_interval' => sanitize_text_field($sfsi_plus_specialIcon_interval),
320
+ 'sfsi_plus_specialIcon_intervalTime' => sanitize_text_field($sfsi_plus_specialIcon_intervalTime),
321
+ 'sfsi_plus_specialIcon_intervalIcons' => sanitize_text_field($sfsi_plus_specialIcon_intervalIcons),
322
+ );
323
+ update_option('sfsi_plus_section3_options', serialize($up_option3));
324
+ header('Content-Type: application/json');
325
+ echo json_encode(array("success"));
326
+ exit;
327
+ }
328
+ /* save settings for section 4 */
329
+ add_action('wp_ajax_plus_updateSrcn4', 'sfsi_plus_options_updater4');
330
+ function sfsi_plus_options_updater4()
331
+ {
332
+ if (!wp_verify_nonce($_POST['nonce'], "update_plus_step4")) {
333
+ echo json_encode(array("wrong_nonce"));
334
+ exit;
335
+ }
336
+ if (!current_user_can('manage_options')) {
337
+ echo json_encode(array('res' => 'not allowed'));
338
+ die();
339
+ }
340
+ $sfsi_plus_display_counts = isset($_POST["sfsi_plus_display_counts"]) ? sanitize_text_field($_POST["sfsi_plus_display_counts"]) : 'no';
341
+
342
+ $sfsi_plus_email_countsDisplay = isset($_POST["sfsi_plus_email_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_email_countsDisplay"]) : 'no';
343
+ $sfsi_plus_email_countsFrom = isset($_POST["sfsi_plus_email_countsFrom"]) ? sanitize_text_field($_POST["sfsi_plus_email_countsFrom"]) : 'manual';
344
+ $sfsi_plus_email_manualCounts = isset($_POST["sfsi_plus_email_manualCounts"]) ? intval(trim($_POST["sfsi_plus_email_manualCounts"])) : '';
345
+
346
+ $sfsi_plus_rss_countsDisplay = isset($_POST["sfsi_plus_rss_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_rss_countsDisplay"]) : 'no';
347
+ $sfsi_plus_rss_manualCounts = isset($_POST["sfsi_plus_rss_manualCounts"]) ? intval(trim($_POST["sfsi_plus_rss_manualCounts"])) : '';
348
+
349
+ $sfsi_plus_facebook_countsDisplay = isset($_POST["sfsi_plus_facebook_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_facebook_countsDisplay"]) : 'no';
350
+ $sfsi_plus_facebook_countsFrom = isset($_POST["sfsi_plus_facebook_countsFrom"]) ? sanitize_text_field($_POST["sfsi_plus_facebook_countsFrom"]) : 'manual';
351
+ $sfsi_plus_facebook_mypageCounts = isset($_POST["sfsi_plus_facebook_mypageCounts"]) ? sanitize_text_field(trim($_POST["sfsi_plus_facebook_mypageCounts"])) : '';
352
+ $sfsi_plus_facebook_manualCounts = isset($_POST["sfsi_plus_facebook_manualCounts"]) ? intval(trim($_POST["sfsi_plus_facebook_manualCounts"])) : '';
353
+ $sfsi_plus_facebook_PageLink = isset($_POST["sfsi_plus_facebook_PageLink"]) ? sanitize_text_field(trim($_POST["sfsi_plus_facebook_PageLink"])) : '';
354
+
355
+ $sfsi_plus_twitter_countsDisplay = isset($_POST["sfsi_plus_twitter_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_twitter_countsDisplay"]) : 'no';
356
+ $sfsi_plus_twitter_countsFrom = isset($_POST["sfsi_plus_twitter_countsFrom"]) ? sanitize_text_field($_POST["sfsi_plus_twitter_countsFrom"]) : 'manual';
357
+ $sfsi_plus_twitter_manualCounts = isset($_POST["sfsi_plus_twitter_manualCounts"]) ? intval(trim($_POST["sfsi_plus_twitter_manualCounts"])) : '';
358
+ $sfsiplus_tw_consumer_key = isset($_POST["sfsiplus_tw_consumer_key"]) ? sanitize_text_field(trim($_POST["sfsiplus_tw_consumer_key"])) : '';
359
+ $sfsiplus_tw_consumer_secret = isset($_POST["sfsiplus_tw_consumer_secret"]) ? sanitize_text_field(trim($_POST["sfsiplus_tw_consumer_secret"])) : '';
360
+ $sfsiplus_tw_oauth_access_token = isset($_POST["sfsiplus_tw_oauth_access_token"]) ? sanitize_text_field(trim($_POST["sfsiplus_tw_oauth_access_token"])) : '';
361
+ $sfsiplus_tw_oauth_access_token_secret = isset($_POST["sfsiplus_tw_oauth_access_token_secret"])
362
+ ? sanitize_text_field(
363
+ trim($_POST["sfsiplus_tw_oauth_access_token_secret"])
364
+ ) : '';
365
+
366
+ $sfsi_plus_linkedIn_countsDisplay = isset($_POST["sfsi_plus_linkedIn_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_linkedIn_countsDisplay"]) : 'no';
367
+ $sfsi_plus_linkedIn_countsFrom = isset($_POST["sfsi_plus_linkedIn_countsFrom"]) ? sanitize_text_field($_POST["sfsi_plus_linkedIn_countsFrom"]) : 'manual';
368
+ $sfsi_plus_linkedIn_manualCounts = isset($_POST["sfsi_plus_linkedIn_manualCounts"]) ? intval(trim($_POST["sfsi_plus_linkedIn_manualCounts"])) : '';
369
+ $sfsi_plus_ln_company = isset($_POST["sfsi_plus_ln_company"]) ? sanitize_text_field(trim($_POST["sfsi_plus_ln_company"])) : '';
370
+ $sfsi_plus_ln_api_key = isset($_POST["sfsi_plus_ln_api_key"]) ? sanitize_text_field(trim($_POST["sfsi_plus_ln_api_key"])) : '';
371
+ $sfsi_plus_ln_secret_key = isset($_POST["sfsi_plus_ln_secret_key"]) ? sanitize_text_field(trim($_POST["sfsi_plus_ln_secret_key"])) : '';
372
+ $sfsi_plus_ln_oAuth_user_token = isset($_POST["sfsi_plus_ln_oAuth_user_token"]) ? sanitize_text_field(trim($_POST["sfsi_plus_ln_oAuth_user_token"])) : '';
373
+
374
+ $sfsi_plus_youtube_countsDisplay = isset($_POST["sfsi_plus_youtube_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_youtube_countsDisplay"]) : 'no';
375
+ $sfsi_plus_youtube_countsFrom = isset($_POST["sfsi_plus_youtube_countsFrom"]) ? sanitize_text_field($_POST["sfsi_plus_youtube_countsFrom"]) : 'manual';
376
+ $sfsi_plus_youtube_manualCounts = isset($_POST["sfsi_plus_youtube_manualCounts"]) ? intval($_POST["sfsi_plus_youtube_manualCounts"]) : '';
377
+ $sfsi_plus_youtube_user = isset($_POST["sfsi_plus_youtube_user"]) ? sanitize_text_field(trim($_POST["sfsi_plus_youtube_user"])) : '';
378
+ $sfsi_plus_youtube_channelId = isset($_POST["sfsi_plus_youtube_channelId"]) ? sanitize_text_field(trim($_POST["sfsi_plus_youtube_channelId"])) : '';
379
+
380
+ $sfsi_plus_pinterest_countsDisplay = isset($_POST["sfsi_plus_pinterest_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_pinterest_countsDisplay"]) : 'no';
381
+ $sfsi_plus_pinterest_countsFrom = isset($_POST["sfsi_plus_pinterest_countsFrom"]) ? sanitize_text_field($_POST["sfsi_plus_pinterest_countsFrom"]) : 'manual';
382
+ $sfsi_plus_pinterest_manualCounts = isset($_POST["sfsi_plus_pinterest_manualCounts"]) ? intval(trim($_POST["sfsi_plus_pinterest_manualCounts"])) : '';
383
+ $sfsi_plus_pinterest_user = isset($_POST["sfsi_plus_pinterest_user"]) ? sanitize_text_field(trim($_POST["sfsi_plus_pinterest_user"])) : '';
384
+ $sfsi_plus_pinterest_board = isset($_POST["sfsi_plus_pinterest_board"]) ? sanitize_text_field(trim($_POST["sfsi_plus_pinterest_board"])) : '';
385
+
386
+ $sfsi_plus_instagram_countsDisplay = isset($_POST["sfsi_plus_instagram_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_instagram_countsDisplay"]) : 'no';
387
+ $sfsi_plus_instagram_countsFrom = isset($_POST["sfsi_plus_instagram_countsFrom"]) ? sanitize_text_field($_POST["sfsi_plus_instagram_countsFrom"]) : 'manual';
388
+ $sfsi_plus_instagram_manualCounts = isset($_POST["sfsi_plus_instagram_manualCounts"]) ? intval(trim($_POST["sfsi_plus_instagram_manualCounts"])) : '';
389
+ $sfsi_plus_instagram_User = isset($_POST["sfsi_plus_instagram_User"]) ? sanitize_text_field($_POST["sfsi_plus_instagram_User"]) : '';
390
+ $sfsi_plus_instagram_clientid = isset($_POST["sfsi_plus_instagram_clientid"]) ? sanitize_text_field($_POST["sfsi_plus_instagram_clientid"]) : '';
391
+ $sfsi_plus_instagram_appurl = isset($_POST["sfsi_plus_instagram_appurl"]) ? sanitize_text_field($_POST["sfsi_plus_instagram_appurl"]) : '';
392
+ $sfsi_plus_instagram_token = isset($_POST["sfsi_plus_instagram_token"]) ? sanitize_text_field($_POST["sfsi_plus_instagram_token"]) : '';
393
+
394
+ $sfsi_plus_houzz_countsDisplay = isset($_POST["sfsi_plus_houzz_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_houzz_countsDisplay"]) : 'no';
395
+ $sfsi_plus_houzz_countsFrom = isset($_POST["sfsi_plus_houzz_countsFrom"]) ? sanitize_text_field($_POST["sfsi_plus_houzz_countsFrom"]) : 'manual';
396
+ $sfsi_plus_houzz_manualCounts = isset($_POST["sfsi_plus_houzz_manualCounts"]) ? intval(trim($_POST["sfsi_plus_houzz_manualCounts"])) : '';
397
+
398
+ $sfsi_plus_facebookPage_url = isset($_POST["sfsi_plus_facebookPage_url"]) ? sanitize_text_field(trim($_POST["sfsi_plus_facebookPage_url"])) : '';
399
+
400
+ $sfsi_plus_telegram_countsDisplay = isset($_POST["sfsi_plus_telegram_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_telegram_countsDisplay"]) : 'no';
401
+ $sfsi_plus_telegram_manualCounts = isset($_POST["sfsi_plus_telegram_manualCounts"]) ? intval(trim($_POST["sfsi_plus_telegram_manualCounts"])) : '';
402
+
403
+ $sfsi_plus_vk_countsDisplay = isset($_POST["sfsi_plus_vk_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_vk_countsDisplay"]) : 'no';
404
+ $sfsi_plus_vk_manualCounts = isset($_POST["sfsi_plus_vk_manualCounts"]) ? intval(trim($_POST["sfsi_plus_vk_manualCounts"])) : '';
405
+
406
+ $sfsi_plus_ok_countsDisplay = isset($_POST["sfsi_plus_ok_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_ok_countsDisplay"]) : 'no';
407
+ $sfsi_plus_ok_manualCounts = isset($_POST["sfsi_plus_ok_manualCounts"]) ? intval(trim($_POST["sfsi_plus_ok_manualCounts"])) : '';
408
+
409
+ $sfsi_plus_wechat_countsDisplay = isset($_POST["sfsi_plus_wechat_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_wechat_countsDisplay"]) : 'no';
410
+ $sfsi_plus_wechat_manualCounts = isset($_POST["sfsi_plus_wechat_manualCounts"]) ? intval(trim($_POST["sfsi_plus_wechat_manualCounts"])) : '';
411
+
412
+ $sfsi_plus_weibo_countsDisplay = isset($_POST["sfsi_plus_weibo_countsDisplay"]) ? sanitize_text_field($_POST["sfsi_plus_weibo_countsDisplay"]) : 'no';
413
+ $sfsi_plus_weibo_manualCounts = isset($_POST["sfsi_plus_weibo_manualCounts"]) ? intval(trim($_POST["sfsi_plus_weibo_manualCounts"])) : '';
414
+ $up_option4 = array(
415
+ 'sfsi_plus_display_counts' => sanitize_text_field($sfsi_plus_display_counts),
416
+
417
+ 'sfsi_plus_email_countsDisplay' => sanitize_text_field($sfsi_plus_email_countsDisplay),
418
+ 'sfsi_plus_email_countsFrom' => sanitize_text_field($sfsi_plus_email_countsFrom),
419
+ 'sfsi_plus_email_manualCounts' => intval($sfsi_plus_email_manualCounts),
420
+
421
+ 'sfsi_plus_rss_countsDisplay' => sanitize_text_field($sfsi_plus_rss_countsDisplay),
422
+ 'sfsi_plus_rss_manualCounts' => intval($sfsi_plus_rss_manualCounts),
423
+
424
+ 'sfsi_plus_facebook_countsDisplay' => sanitize_text_field($sfsi_plus_facebook_countsDisplay),
425
+ 'sfsi_plus_facebook_countsFrom' => sanitize_text_field($sfsi_plus_facebook_countsFrom),
426
+ 'sfsi_plus_facebook_mypageCounts' => sfsi_plus_sanitize_field($sfsi_plus_facebook_mypageCounts),
427
+ 'sfsi_plus_facebook_manualCounts' => intval($sfsi_plus_facebook_manualCounts),
428
+ //'sfsi_plus_facebook_PageLink' => $sfsi_plus_facebook_PageLink,
429
+
430
+ 'sfsi_plus_twitter_countsDisplay' => sanitize_text_field($sfsi_plus_twitter_countsDisplay),
431
+ 'sfsi_plus_twitter_countsFrom' => sanitize_text_field($sfsi_plus_twitter_countsFrom),
432
+ 'sfsi_plus_twitter_manualCounts' => intval($sfsi_plus_twitter_manualCounts),
433
+ 'sfsiplus_tw_consumer_key' => sfsi_plus_sanitize_field($sfsiplus_tw_consumer_key),
434
+ 'sfsiplus_tw_consumer_secret' => sfsi_plus_sanitize_field($sfsiplus_tw_consumer_secret),
435
+ 'sfsiplus_tw_oauth_access_token' => sfsi_plus_sanitize_field($sfsiplus_tw_oauth_access_token),
436
+ 'sfsiplus_tw_oauth_access_token_secret' => sfsi_plus_sanitize_field($sfsiplus_tw_oauth_access_token_secret),
437
+
438
+ /*'sfsi_plus_ln_company' => $sfsi_plus_ln_company,
439
+ 'sfsi_plus_ln_api_key' => $sfsi_plus_ln_api_key,
440
+ 'sfsi_plus_ln_secret_key' => $sfsi_plus_ln_secret_key,
441
+ 'sfsi_plus_ln_oAuth_user_token' => $sfsi_plus_ln_oAuth_user_token,*/
442
+ 'sfsi_plus_linkedIn_countsDisplay' => sanitize_text_field($sfsi_plus_linkedIn_countsDisplay),
443
+ 'sfsi_plus_linkedIn_countsFrom' => sanitize_text_field($sfsi_plus_linkedIn_countsFrom),
444
+ 'sfsi_plus_linkedIn_manualCounts' => intval($sfsi_plus_linkedIn_manualCounts),
445
+
446
+ 'sfsi_plus_youtube_countsDisplay' => sanitize_text_field($sfsi_plus_youtube_countsDisplay),
447
+ 'sfsi_plus_youtube_countsFrom' => sanitize_text_field($sfsi_plus_youtube_countsFrom),
448
+ 'sfsi_plus_youtube_manualCounts' => intval($sfsi_plus_youtube_manualCounts),
449
+ 'sfsi_plus_youtube_user' => sfsi_plus_sanitize_field($sfsi_plus_youtube_user),
450
+ 'sfsi_plus_youtube_channelId' => sfsi_plus_sanitize_field($sfsi_plus_youtube_channelId),
451
+
452
+ 'sfsi_plus_pinterest_countsDisplay' => sanitize_text_field($sfsi_plus_pinterest_countsDisplay),
453
+ 'sfsi_plus_pinterest_countsFrom' => sanitize_text_field($sfsi_plus_pinterest_countsFrom),
454
+ 'sfsi_plus_pinterest_manualCounts' => intval($sfsi_plus_pinterest_manualCounts),
455
+ //'sfsi_plus_pinterest_user' => $sfsi_plus_pinterest_user,
456
+ //'sfsi_plus_pinterest_board' => $sfsi_plus_pinterest_board,
457
+
458
+ 'sfsi_plus_instagram_countsFrom' => sanitize_text_field($sfsi_plus_instagram_countsFrom),
459
+ 'sfsi_plus_instagram_countsDisplay' => sanitize_text_field($sfsi_plus_instagram_countsDisplay),
460
+ 'sfsi_plus_instagram_manualCounts' => intval($sfsi_plus_instagram_manualCounts),
461
+ 'sfsi_plus_instagram_User' => sanitize_text_field($sfsi_plus_instagram_User),
462
+ 'sfsi_plus_instagram_clientid' => sanitize_text_field($sfsi_plus_instagram_clientid),
463
+ 'sfsi_plus_instagram_appurl' => sanitize_text_field($sfsi_plus_instagram_appurl),
464
+ 'sfsi_plus_instagram_token' => sanitize_text_field($sfsi_plus_instagram_token),
465
+
466
+ 'sfsi_plus_houzz_countsDisplay' => sanitize_text_field($sfsi_plus_houzz_countsDisplay),
467
+ 'sfsi_plus_houzz_countsFrom' => sanitize_text_field($sfsi_plus_houzz_countsFrom),
468
+ 'sfsi_plus_houzz_manualCounts' => intval($sfsi_plus_houzz_manualCounts),
469
+
470
+ 'sfsi_plus_telegram_countsDisplay' => sanitize_text_field($sfsi_plus_telegram_countsDisplay),
471
+ 'sfsi_plus_telegram_manualCounts' => intval($sfsi_plus_telegram_manualCounts),
472
+
473
+ 'sfsi_plus_vk_countsDisplay' => sanitize_text_field($sfsi_plus_vk_countsDisplay),
474
+ 'sfsi_plus_vk_manualCounts' => intval($sfsi_plus_vk_manualCounts),
475
+
476
+ 'sfsi_plus_ok_countsDisplay' => sanitize_text_field($sfsi_plus_ok_countsDisplay),
477
+ 'sfsi_plus_ok_manualCounts' => intval($sfsi_plus_ok_manualCounts),
478
+
479
+ 'sfsi_plus_weibo_countsDisplay' => sanitize_text_field($sfsi_plus_weibo_countsDisplay),
480
+ 'sfsi_plus_weibo_manualCounts' => intval($sfsi_plus_weibo_manualCounts),
481
+
482
+ 'sfsi_plus_wechat_countsDisplay' => sanitize_text_field($sfsi_plus_wechat_countsDisplay),
483
+ 'sfsi_plus_wechat_manualCounts' => intval($sfsi_plus_wechat_manualCounts),
484
+ );
485
+ update_option('sfsi_plus_section4_options', serialize($up_option4));
486
+
487
+ $new_counts = sfsi_plus_getCounts();
488
+ header('Content-Type: application/json');
489
+ echo json_encode(array("res" => "success", 'counts' => $new_counts));
490
+ exit;
491
+ }
492
+ /* save settings for save export */
493
+ add_action('wp_ajax_save_export', 'sfsi_plus_save_export');
494
+ function sfsi_plus_save_export()
495
+ {
496
+ $option1 = unserialize(get_option('sfsi_plus_section1_options', false));
497
+ $option2 = unserialize(get_option('sfsi_plus_section2_options', false));
498
+ $option3 = unserialize(get_option('sfsi_plus_section3_options', false));
499
+ $option4 = unserialize(get_option('sfsi_plus_section4_options', false));
500
+ $option5 = unserialize(get_option('sfsi_plus_section5_options', false));
501
+ $option6 = unserialize(get_option('sfsi_plus_section6_options', false));
502
+ $option7 = unserialize(get_option('sfsi_plus_section7_options', false));
503
+ $option8 = unserialize(get_option('sfsi_plus_section8_options', false));
504
+ $option9 = unserialize(get_option('sfsi_plus_section9_options', false));
505
+ $sfsi_plus_new_show_notification = get_option("sfsi_plus_new_show_notification");
506
+ $sfsi_plus_show_notification = get_option("sfsi_plus_show_notification");
507
+ $sfsi_plus_footer_sec = get_option("sfsi_plus_footer_sec");
508
+ $sfsi_plus_new_show_notification = get_option("sfsi_plus_new_show_notification");
509
+ $sfsi_plus_pluginVersion = get_option("sfsi_plus_pluginVersion");
510
+ $sfsi_plus_show_Setting_mobile_notification = get_option("sfsi_plus_show_Setting_mobile_notification");
511
+
512
+ /* size and spacing of icons */
513
+ $save_export_options = array(
514
+ 'option1' => $option1,
515
+ 'option2' => $option2,
516
+ 'option3' => $option3,
517
+ 'option4' => $option4,
518
+ 'option5' => $option5,
519
+ 'option6' => $option6,
520
+ 'option7' => $option7,
521
+ 'option8' => $option8,
522
+ 'option9' => $option9,
523
+ 'sfsi_plus_new_show_notification' => $sfsi_plus_new_show_notification,
524
+ 'sfsi_plus_show_notification' => $sfsi_plus_show_notification,
525
+ 'sfsi_plus_footer_sec' => $sfsi_plus_footer_sec,
526
+ 'sfsi_plus_new_show_notification' => $sfsi_plus_new_show_notification,
527
+ 'sfsi_plus_pluginVersion' => $sfsi_plus_pluginVersion,
528
+ 'sfsi_plus_show_Setting_mobile_notification' => $sfsi_plus_show_Setting_mobile_notification
529
+ );
530
+
531
+ $json = json_encode($save_export_options);
532
+ header('Content-disposition: attachment; filename=file.json');
533
+ header('Content-type: application/json');
534
+ echo $json;
535
+ exit;
536
+ }
537
+ /* save settings for section 6 */
538
+ add_action('wp_ajax_plus_updateSrcn6', 'sfsi_plus_options_updater6');
539
+ function sfsi_plus_options_updater6()
540
+ {
541
+ if (!wp_verify_nonce($_POST['nonce'], "update_plus_step6")) {
542
+ echo json_encode(array("wrong_nonce"));
543
+ exit;
544
+ }
545
+ if (!current_user_can('manage_options')) {
546
+ echo json_encode(array('res' => 'not allowed'));
547
+ die();
548
+ }
549
+ $sfsi_plus_show_Onposts = isset($_POST["sfsi_plus_show_Onposts"]) ? sanitize_text_field($_POST["sfsi_plus_show_Onposts"]) : 'no';
550
+ $sfsi_plus_icons_postPositon = isset($_POST["sfsi_plus_icons_postPositon"]) ? sanitize_text_field($_POST["sfsi_plus_icons_postPositon"]) : '';
551
+ $sfsi_plus_icons_alignment = isset($_POST["sfsi_plus_icons_alignment"]) ? sanitize_text_field($_POST["sfsi_plus_icons_alignment"]) : 'center-right';
552
+ $sfsi_plus_textBefor_icons = isset($_POST["sfsi_plus_textBefor_icons"]) ? sanitize_text_field($_POST["sfsi_plus_textBefor_icons"]) : '';
553
+ $sfsi_plus_icons_DisplayCounts = isset($_POST["sfsi_plus_icons_DisplayCounts"]) ? sanitize_text_field($_POST["sfsi_plus_icons_DisplayCounts"]) : 'no';
554
+ /* post options */
555
+ $up_option6 = array(
556
+ 'sfsi_plus_show_Onposts' => sanitize_text_field($sfsi_plus_show_Onposts),
557
+ 'sfsi_plus_icons_postPositon' => sanitize_text_field($sfsi_plus_icons_postPositon),
558
+ 'sfsi_plus_icons_alignment' => sanitize_text_field($sfsi_plus_icons_alignment),
559
+ 'sfsi_plus_textBefor_icons' => sanitize_text_field(stripslashes($sfsi_plus_textBefor_icons)),
560
+ 'sfsi_plus_icons_DisplayCounts' => sanitize_text_field($sfsi_plus_icons_DisplayCounts),
561
+ );
562
+ update_option('sfsi_plus_section6_options', serialize($up_option6));
563
+ header('Content-Type: application/json');
564
+ echo json_encode(array("success"));
565
+ exit;
566
+ }
567
+ /* save settings for section 7 */
568
+ add_action('wp_ajax_plus_updateSrcn7', 'sfsi_plus_options_updater7');
569
+ function sfsi_plus_options_updater7()
570
+ {
571
+ if (!wp_verify_nonce($_POST['nonce'], "update_plus_step7")) {
572
+ echo json_encode(array("wrong_nonce"));
573
+ exit;
574
+ }
575
+ if (!current_user_can('manage_options')) {
576
+ echo json_encode(array('res' => 'not allowed'));
577
+ die();
578
+ }
579
+ $sfsi_plus_popup_text = isset($_POST["sfsi_plus_popup_text"]) ? sanitize_text_field($_POST["sfsi_plus_popup_text"]) : '';
580
+ $sfsi_plus_popup_background_color = isset($_POST["sfsi_plus_popup_background_color"])
581
+ ? sfsi_plus_sanitize_hex_color(
582
+ $_POST["sfsi_plus_popup_background_color"]
583
+ ) : '#fffff';
584
+ $sfsi_plus_popup_border_color = isset($_POST["sfsi_plus_popup_border_color"])
585
+ ? sfsi_plus_sanitize_hex_color(
586
+ $_POST["sfsi_plus_popup_border_color"]
587
+ ) : 'center-right';
588
+ $sfsi_plus_popup_border_thickness = isset($_POST["sfsi_plus_popup_border_thickness"]) ? sanitize_text_field($_POST["sfsi_plus_popup_border_thickness"]) : '';
589
+ $sfsi_plus_popup_border_shadow = isset($_POST["sfsi_plus_popup_border_shadow"]) ? sanitize_text_field($_POST["sfsi_plus_popup_border_shadow"]) : 'no';
590
+ $sfsi_plus_popup_font = isset($_POST["sfsi_plus_popup_font"]) ? sanitize_text_field($_POST["sfsi_plus_popup_font"]) : '';
591
+ $sfsi_plus_popup_fontSize = isset($_POST["sfsi_plus_popup_fontSize"]) ? intval($_POST["sfsi_plus_popup_fontSize"]) : 'no';
592
+ $sfsi_plus_popup_fontStyle = isset($_POST["sfsi_plus_popup_fontStyle"]) ? sanitize_text_field($_POST["sfsi_plus_popup_fontStyle"]) : '';
593
+ $sfsi_plus_popup_fontColor = isset($_POST["sfsi_plus_popup_fontColor"]) ? sfsi_plus_sanitize_hex_color($_POST["sfsi_plus_popup_fontColor"]) : 'no';
594
+ $sfsi_plus_Show_popupOn = isset($_POST["sfsi_plus_Show_popupOn"]) ? sanitize_text_field($_POST["sfsi_plus_Show_popupOn"]) : '';
595
+ if (isset($_POST["sfsi_plus_Show_popupOn_PageIDs"])) {
596
+ $sfsi_plus_Show_popupOn_PageIDs_arr = array();
597
+ foreach ($_POST["sfsi_plus_Show_popupOn_PageIDs"] as $index => $sfsi_plus_Show_popupOn_PageID) {
598
+ $sfsi_plus_Show_popupOn_PageIDs_arr[$index] = intval($sfsi_plus_Show_popupOn_PageID);
599
+ }
600
+ }
601
+ $sfsi_plus_Show_popupOn_PageIDs = isset($sfsi_plus_Show_popupOn_PageID)
602
+ ? serialize($sfsi_plus_Show_popupOn_PageID)
603
+ : '';
604
+ $sfsi_plus_Shown_pop = isset($_POST["sfsi_plus_Shown_pop"]) ? sanitize_text_field($_POST["sfsi_plus_Shown_pop"]) : '';
605
+ $sfsi_plus_Shown_popupOnceTime = isset($_POST["sfsi_plus_Shown_popupOnceTime"]) ? intval($_POST["sfsi_plus_Shown_popupOnceTime"]) : 'no';
606
+ $sfsi_plus_Shown_popuplimitPerUserTime = isset($_POST["sfsi_plus_Shown_popuplimitPerUserTime"])
607
+ ? sanitize_text_field(
608
+ $_POST["sfsi_plus_Shown_popuplimitPerUserTime"]
609
+ ) : '';
610
+ /* icons pop options */
611
+ $up_option7 = array(
612
+ 'sfsi_plus_popup_text' => sanitize_text_field(stripslashes($sfsi_plus_popup_text)),
613
+ 'sfsi_plus_popup_font' => sanitize_text_field($sfsi_plus_popup_font),
614
+ 'sfsi_plus_popup_fontColor' => sfsi_plus_sanitize_hex_color($sfsi_plus_popup_fontColor),
615
+ 'sfsi_plus_popup_fontSize' => intval($sfsi_plus_popup_fontSize),
616
+ 'sfsi_plus_popup_fontStyle' => sanitize_text_field($sfsi_plus_popup_fontStyle),
617
+ 'sfsi_plus_popup_background_color' => sfsi_plus_sanitize_hex_color($sfsi_plus_popup_background_color),
618
+ 'sfsi_plus_popup_border_color' => sfsi_plus_sanitize_hex_color($sfsi_plus_popup_border_color),
619
+ 'sfsi_plus_popup_border_thickness' => intval($sfsi_plus_popup_border_thickness),
620
+ 'sfsi_plus_popup_border_shadow' => sanitize_text_field($sfsi_plus_popup_border_shadow),
621
+ 'sfsi_plus_Show_popupOn' => sanitize_text_field($sfsi_plus_Show_popupOn),
622
+ 'sfsi_plus_Show_popupOn_PageIDs' => $sfsi_plus_Show_popupOn_PageIDs,
623
+ 'sfsi_plus_Shown_pop' => sanitize_text_field($sfsi_plus_Shown_pop),
624
+ 'sfsi_plus_Shown_popupOnceTime' => intval($sfsi_plus_Shown_popupOnceTime),
625
+ //'sfsi_plus_Shown_popuplimitPerUserTime' => $sfsi_plus_Shown_popuplimitPerUserTime,
626
+ );
627
+ update_option('sfsi_plus_section7_options', serialize($up_option7));
628
+ header('Content-Type: application/json');
629
+ echo json_encode(array("success"));
630
+ exit;
631
+ }
632
+ /* save settings for section 3 */
633
+
634
+ add_action('wp_ajax_plus_updateSrcn8', 'sfsi_plus_options_updater8');
635
+
636
+ function sfsi_plus_options_updater8()
637
+ {
638
+
639
+ if (!wp_verify_nonce($_POST['nonce'], "update_plus_step8")) {
640
+ echo json_encode(array("wrong_nonce"));
641
+ exit;
642
+ }
643
+ if (!current_user_can('manage_options')) {
644
+ echo json_encode(array('res' => 'not allowed'));
645
+ die();
646
+ }
647
+
648
+ $sfsi_plus_show_via_widget = isset($_POST["sfsi_plus_show_via_widget"]) ? sanitize_text_field($_POST["sfsi_plus_show_via_widget"]) : 'no';
649
+ $sfsi_plus_float_on_page = isset($_POST["sfsi_plus_float_on_page"]) ? sanitize_text_field($_POST["sfsi_plus_float_on_page"]) : 'no';
650
+ $sfsi_plus_float_page_position = isset($_POST["sfsi_plus_float_page_position"]) ? sanitize_text_field($_POST["sfsi_plus_float_page_position"]) : 'no';
651
+
652
+ $sfsi_plus_icons_floatMargin_top = isset($_POST["sfsi_plus_icons_floatMargin_top"]) ? intval($_POST["sfsi_plus_icons_floatMargin_top"]) : '';
653
+ $sfsi_plus_icons_floatMargin_bottom = isset($_POST["sfsi_plus_icons_floatMargin_bottom"]) ? intval($_POST["sfsi_plus_icons_floatMargin_bottom"]) : '';
654
+ $sfsi_plus_icons_floatMargin_left = isset($_POST["sfsi_plus_icons_floatMargin_left"]) ? intval($_POST["sfsi_plus_icons_floatMargin_left"]) : '';
655
+ $sfsi_plus_icons_floatMargin_right = isset($_POST["sfsi_plus_icons_floatMargin_right"]) ? intval($_POST["sfsi_plus_icons_floatMargin_right"]) : '';
656
+
657
+ $sfsi_plus_place_item_manually = isset($_POST["sfsi_plus_place_item_manually"]) ? sanitize_text_field($_POST["sfsi_plus_place_item_manually"]) : 'no';
658
+ $sfsi_plus_place_item_gutenberg = isset($_POST["sfsi_plus_place_item_gutenberg"]) ? sanitize_text_field($_POST["sfsi_plus_place_item_gutenberg"]) : 'no';
659
+ $sfsi_plus_show_item_onposts = isset($_POST["sfsi_plus_show_item_onposts"]) ? sanitize_text_field($_POST["sfsi_plus_show_item_onposts"]) : 'no';
660
+ $sfsi_plus_display_button_type = isset($_POST["sfsi_plus_display_button_type"]) ? sanitize_text_field($_POST["sfsi_plus_display_button_type"]) : 'standard_buttons';
661
+
662
+ $sfsi_plus_post_icons_size = isset($_POST["sfsi_plus_post_icons_size"]) ? intval($_POST["sfsi_plus_post_icons_size"]) : 40;
663
+ $sfsi_plus_post_icons_spacing = isset($_POST["sfsi_plus_post_icons_spacing"]) ? intval($_POST["sfsi_plus_post_icons_spacing"]) : 5;
664
+ $sfsi_plus_show_Onposts = isset($_POST["sfsi_plus_show_Onposts"]) ? sanitize_text_field($_POST["sfsi_plus_show_Onposts"]) : 'no';
665
+ $sfsi_plus_textBefor_icons = isset($_POST["sfsi_plus_textBefor_icons"]) ? sanitize_text_field($_POST["sfsi_plus_textBefor_icons"]) : 'Please follow and like us:';
666
+ $sfsi_plus_icons_alignment = isset($_POST["sfsi_plus_icons_alignment"]) ? sanitize_text_field($_POST["sfsi_plus_icons_alignment"]) : 'center-right';
667
+ $sfsi_plus_icons_DisplayCounts = isset($_POST["sfsi_plus_icons_DisplayCounts"]) ? sanitize_text_field($_POST["sfsi_plus_icons_DisplayCounts"]) : 'no';
668
+ $sfsi_plus_display_before_posts = isset($_POST["sfsi_plus_display_before_posts"]) ? sanitize_text_field($_POST["sfsi_plus_display_before_posts"]) : 'no';
669
+ $sfsi_plus_display_after_posts = isset($_POST["sfsi_plus_display_after_posts"]) ? sanitize_text_field($_POST["sfsi_plus_display_after_posts"]) : 'no';
670
+
671
+ //$sfsi_plus_display_on_postspage = isset($_POST["sfsi_plus_display_on_postspage"]) ? sanitize_text_field( $_POST["sfsi_plus_display_on_postspage"] ): 'no';
672
+ //$sfsi_plus_display_on_homepage = isset($_POST["sfsi_plus_display_on_homepage"]) ? sanitize_text_field( $_POST["sfsi_plus_display_on_homepage"] ): 'no';
673
+
674
+ $sfsi_plus_display_before_blogposts = isset($_POST["sfsi_plus_display_before_blogposts"]) ? sanitize_text_field($_POST["sfsi_plus_display_before_blogposts"]) : 'no';
675
+ $sfsi_plus_display_after_blogposts = isset($_POST["sfsi_plus_display_after_blogposts"]) ? sanitize_text_field($_POST["sfsi_plus_display_after_blogposts"]) : 'no';
676
+ $sfsi_plus_rectsub = isset($_POST["sfsi_plus_rectsub"]) ? sanitize_text_field($_POST["sfsi_plus_rectsub"]) : 'no';
677
+ $sfsi_plus_rectfb = isset($_POST["sfsi_plus_rectfb"]) ? sanitize_text_field($_POST["sfsi_plus_rectfb"]) : 'no';
678
+ $sfsi_plus_recttwtr = isset($_POST["sfsi_plus_recttwtr"]) ? sanitize_text_field($_POST["sfsi_plus_recttwtr"]) : 'no';
679
+ $sfsi_plus_rectpinit = isset($_POST["sfsi_plus_rectpinit"]) ? sanitize_text_field($_POST["sfsi_plus_rectpinit"]) : 'no';
680
+ $sfsi_plus_rectfbshare = isset($_POST["sfsi_plus_rectfbshare"]) ? sanitize_text_field($_POST["sfsi_plus_rectfbshare"]) : 'no';
681
+
682
+ $sfsi_plus_responsive_icons_end_post = isset($_POST["sfsi_plus_responsive_icons_end_post"]) ? sanitize_text_field($_POST["sfsi_plus_responsive_icons_end_post"]) : 'no';
683
+ $sfsi_plus_responsive_icons_default = array(
684
+ "default_icons" => array(
685
+ "facebook" => array("active" => "yes", "text" => "Share on Facebook", "url" => ""),
686
+ "Twitter" => array("active" => "yes", "text" => "Tweet", "url" => ""),
687
+ "Follow" => array("active" => "yes", "text" => "Follow us", "url" => "")
688
+ ),
689
+ "settings" => array(
690
+ "icon_size" => "Medium",
691
+ "icon_width_type" => "Fully responsive",
692
+ "icon_width_size" => 240,
693
+ "edge_type" => "Round",
694
+ "edge_radius" => 5,
695
+ "style" => "Gradient",
696
+ "margin" => 10,
697
+ "text_align" => "Centered",
698
+ "show_count" => "no",
699
+ "counter_color" => "#aaaaaa",
700
+ "counter_bg_color" => "#fff",
701
+ "share_count_text" => "SHARES"
702
+ )
703
+ );
704
+ $sfsi_plus_responsive_icons = array();
705
+ // var_dump($_POST['sfsi_plus_responsive_icons']);
706
+ if (isset($_POST['sfsi_plus_responsive_icons']) && is_array($_POST['sfsi_plus_responsive_icons'])) {
707
+ foreach ($_POST['sfsi_plus_responsive_icons'] as $key => $value) {
708
+ if (!is_array($value)) {
709
+ $sfsi_plus_responsive_icons[$key] = sanitize_text_field($value);
710
+ } else {
711
+ $sfsi_plus_responsive_icons[$key] = array();
712
+ foreach ($value as $key2 => $value2) {
713
+ if (!is_array($value2)) {
714
+ $sfsi_plus_responsive_icons[$key][$key2] = sanitize_text_field($value2);
715
+ } else {
716
+ $sfsi_plus_responsive_icons[$key][$key2] = array();
717
+ foreach ($value2 as $key3 => $value3) {
718
+ if (!is_array($value3)) {
719
+ $sfsi_plus_responsive_icons[$key][$key2][$key3] = sanitize_text_field($value3);
720
+ }
721
+ }
722
+ }
723
+ }
724
+ }
725
+ }
726
+ }
727
+ if (empty($sfsi_plus_responsive_icons)) {
728
+ $sfsi_plus_responsive_icons = $sfsi_plus_responsive_icons_default;
729
+ } else {
730
+ if (!isset($sfsi_plus_responsive_icons['default_icons'])) {
731
+ $sfsi_plus_responsive_icons["default_icons"] = $sfsi_plus_responsive_icons_default["default_icons"];
732
+ }
733
+ if (!isset($sfsi_plus_responsive_icons['settings'])) {
734
+ $sfsi_plus_responsive_icons["settings"] = $sfsi_plus_responsive_icons_default["settings"];
735
+ }
736
+ foreach ($sfsi_plus_responsive_icons['default_icons'] as $key => $value) {
737
+ foreach (array_keys($sfsi_plus_responsive_icons_default['default_icons']['facebook']) as $default_icon_key) {
738
+ if (!isset($value[$default_icon_key])) {
739
+ $sfsi_plus_responsive_icons["default_icons"][$key][$default_icon_key] = $sfsi_plus_responsive_icons_default['default_icons'][$key][$default_icon_key];
740
+ } else {
741
+ $sfsi_plus_responsive_icons["default_icons"][$key][$default_icon_key] = sanitize_text_field($sfsi_plus_responsive_icons["default_icons"][$key][$default_icon_key]);
742
+ }
743
+ }
744
+ }
745
+
746
+ foreach (array_keys($sfsi_plus_responsive_icons_default['settings']) as $setting_key) {
747
+ if (!isset($sfsi_plus_responsive_icons["settings"][$setting_key]) || is_null($sfsi_plus_responsive_icons["settings"][$setting_key]) || $sfsi_plus_responsive_icons["settings"][$setting_key] === "") {
748
+ $sfsi_plus_responsive_icons["settings"][$setting_key] = $sfsi_plus_responsive_icons_default['settings'][$setting_key];
749
+ } else {
750
+ $sfsi_plus_responsive_icons["settings"][$setting_key] = sanitize_text_field($sfsi_plus_responsive_icons["settings"][$setting_key]);
751
+ }
752
+ }
753
+ }
754
+ $up_option8 = array(
755
+ 'sfsi_plus_show_via_widget' => sanitize_text_field($sfsi_plus_show_via_widget),
756
+ 'sfsi_plus_float_on_page' => sanitize_text_field($sfsi_plus_float_on_page),
757
+ 'sfsi_plus_float_page_position' => sanitize_text_field($sfsi_plus_float_page_position),
758
+ 'sfsi_plus_icons_floatMargin_top' => intval($sfsi_plus_icons_floatMargin_top),
759
+ 'sfsi_plus_icons_floatMargin_bottom' => intval($sfsi_plus_icons_floatMargin_bottom),
760
+ 'sfsi_plus_icons_floatMargin_left' => intval($sfsi_plus_icons_floatMargin_left),
761
+ 'sfsi_plus_icons_floatMargin_right' => intval($sfsi_plus_icons_floatMargin_right),
762
+ 'sfsi_plus_place_item_manually' => sanitize_text_field($sfsi_plus_place_item_manually),
763
+ 'sfsi_plus_place_item_gutenberg' => sanitize_text_field($sfsi_plus_place_item_gutenberg),
764
+ 'sfsi_plus_show_item_onposts' => sanitize_text_field($sfsi_plus_show_item_onposts),
765
+ 'sfsi_plus_display_button_type' => sanitize_text_field($sfsi_plus_display_button_type),
766
+ 'sfsi_plus_post_icons_size' => intval($sfsi_plus_post_icons_size),
767
+ 'sfsi_plus_post_icons_spacing' => intval($sfsi_plus_post_icons_spacing),
768
+ 'sfsi_plus_show_Onposts' => sanitize_text_field($sfsi_plus_show_Onposts),
769
+ 'sfsi_plus_textBefor_icons' => sanitize_text_field(stripslashes($sfsi_plus_textBefor_icons)),
770
+ 'sfsi_plus_icons_alignment' => sanitize_text_field($sfsi_plus_icons_alignment),
771
+ 'sfsi_plus_icons_DisplayCounts' => sanitize_text_field($sfsi_plus_icons_DisplayCounts),
772
+ 'sfsi_plus_display_before_posts' => sanitize_text_field($sfsi_plus_display_before_posts),
773
+ 'sfsi_plus_display_after_posts' => sanitize_text_field($sfsi_plus_display_after_posts),
774
+
775
+ //'sfsi_plus_display_on_postspage' => $sfsi_plus_display_on_postspage,
776
+ //'sfsi_plus_display_on_homepage' => $sfsi_plus_display_on_homepage,
777
+
778
+ 'sfsi_plus_display_before_blogposts' => sanitize_text_field($sfsi_plus_display_before_blogposts),
779
+ 'sfsi_plus_display_after_blogposts' => sanitize_text_field($sfsi_plus_display_after_blogposts),
780
+ 'sfsi_plus_rectsub' => sanitize_text_field($sfsi_plus_rectsub),
781
+ 'sfsi_plus_rectfb' => sanitize_text_field($sfsi_plus_rectfb),
782
+ 'sfsi_plus_recttwtr' => sanitize_text_field($sfsi_plus_recttwtr),
783
+ 'sfsi_plus_rectpinit' => sanitize_text_field($sfsi_plus_rectpinit),
784
+ 'sfsi_plus_rectfbshare' => sanitize_text_field($sfsi_plus_rectfbshare),
785
+ 'sfsi_plus_responsive_icons_end_post' =>$sfsi_plus_responsive_icons_end_post,
786
+ 'sfsi_plus_responsive_icons' => $sfsi_plus_responsive_icons,
787
+
788
+
789
+ );
790
+ update_option('sfsi_plus_section8_options', serialize($up_option8));
791
+
792
+ header('Content-Type: application/json');
793
+ echo json_encode(array("success"));
794
+ exit;
795
+ }
796
+
797
+ /* save settings for section 8 */
798
+ add_action('wp_ajax_plus_updateSrcn9', 'sfsi_plus_options_updater9');
799
+ function sfsi_plus_options_updater9()
800
+ {
801
+ if (!wp_verify_nonce($_POST['nonce'], "update_plus_step9")) {
802
+ echo json_encode(array("wrong_nonce"));
803
+ exit;
804
+ }
805
+ if (!current_user_can('manage_options')) {
806
+ echo json_encode(array('res' => 'not allowed'));
807
+ die();
808
+ }
809
+ $sfsi_plus_form_adjustment = isset($_POST["sfsi_plus_form_adjustment"]) ? sanitize_text_field($_POST["sfsi_plus_form_adjustment"]) : 'yes';
810
+ $sfsi_plus_form_height = isset($_POST["sfsi_plus_form_height"]) ? intval($_POST["sfsi_plus_form_height"]) : '180';
811
+ $sfsi_plus_form_width = isset($_POST["sfsi_plus_form_width"]) ? intval($_POST["sfsi_plus_form_width"]) : '230';
812
+ $sfsi_plus_form_border = isset($_POST["sfsi_plus_form_border"]) ? sanitize_text_field($_POST["sfsi_plus_form_border"]) : 'no';
813
+ $sfsi_plus_form_border_thickness = isset($_POST["sfsi_plus_form_border_thickness"]) ? intval($_POST["sfsi_plus_form_border_thickness"]) : '1';
814
+ $sfsi_plus_form_border_color = isset($_POST["sfsi_plus_form_border_color"]) ? sfsi_plus_sanitize_hex_color($_POST["sfsi_plus_form_border_color"]) : '#f3faf2';
815
+ $sfsi_plus_form_background = isset($_POST["sfsi_plus_form_background"]) ? sfsi_plus_sanitize_hex_color($_POST["sfsi_plus_form_background"]) : '#eff7f7';
816
+
817
+ $sfsi_plus_form_heading_text = isset($_POST["sfsi_plus_form_heading_text"]) ? sanitize_text_field($_POST["sfsi_plus_form_heading_text"]) : '';
818
+ $sfsi_plus_form_heading_font = isset($_POST["sfsi_plus_form_heading_font"]) ? sanitize_text_field($_POST["sfsi_plus_form_heading_font"]) : '';
819
+ $sfsi_plus_form_heading_fontstyle = isset($_POST["sfsi_plus_form_heading_fontstyle"]) ? sanitize_text_field($_POST["sfsi_plus_form_heading_fontstyle"]) : '';
820
+ $sfsi_plus_form_heading_fontcolor = isset($_POST["sfsi_plus_form_heading_fontcolor"]) ? sfsi_plus_sanitize_hex_color($_POST["sfsi_plus_form_heading_fontcolor"]) : '';
821
+ $sfsi_plus_form_heading_fontsize = isset($_POST["sfsi_plus_form_heading_fontsize"]) ? intval($_POST["sfsi_plus_form_heading_fontsize"]) : '22';
822
+ $sfsi_plus_form_heading_fontalign = isset($_POST["sfsi_plus_form_heading_fontalign"]) ? sanitize_text_field($_POST["sfsi_plus_form_heading_fontalign"]) : 'center';
823
+
824
+ $sfsi_plus_form_field_text = isset($_POST["sfsi_plus_form_field_text"]) ? sanitize_text_field($_POST["sfsi_plus_form_field_text"]) : '';
825
+ $sfsi_plus_form_field_font = isset($_POST["sfsi_plus_form_field_font"]) ? sanitize_text_field($_POST["sfsi_plus_form_field_font"]) : '';
826
+ $sfsi_plus_form_field_fontstyle = isset($_POST["sfsi_plus_form_field_fontstyle"]) ? sanitize_text_field($_POST["sfsi_plus_form_field_fontstyle"]) : '';
827
+ $sfsi_plus_form_field_fontcolor = isset($_POST["sfsi_plus_form_field_fontcolor"]) ? sfsi_plus_sanitize_hex_color($_POST["sfsi_plus_form_field_fontcolor"]) : '';
828
+ $sfsi_plus_form_field_fontsize = isset($_POST["sfsi_plus_form_field_fontsize"]) ? intval($_POST["sfsi_plus_form_field_fontsize"]) : '22';
829
+ $sfsi_plus_form_field_fontalign = isset($_POST["sfsi_plus_form_field_fontalign"]) ? sanitize_text_field($_POST["sfsi_plus_form_field_fontalign"]) : 'center';
830
+
831
+ $sfsi_plus_form_button_text = isset($_POST["sfsi_plus_form_button_text"]) ? sanitize_text_field($_POST["sfsi_plus_form_button_text"]) : 'Subscribe';
832
+ $sfsi_plus_form_button_font = isset($_POST["sfsi_plus_form_button_font"]) ? sanitize_text_field($_POST["sfsi_plus_form_button_font"]) : '';
833
+ $sfsi_plus_form_button_fontstyle = isset($_POST["sfsi_plus_form_button_fontstyle"]) ? sanitize_text_field($_POST["sfsi_plus_form_button_fontstyle"]) : '';
834
+ $sfsi_plus_form_button_fontcolor = isset($_POST["sfsi_plus_form_button_fontcolor"]) ? sfsi_plus_sanitize_hex_color($_POST["sfsi_plus_form_button_fontcolor"]) : '';
835
+ $sfsi_plus_form_button_fontsize = isset($_POST["sfsi_plus_form_button_fontsize"]) ? intval($_POST["sfsi_plus_form_button_fontsize"]) : '22';
836
+ $sfsi_plus_form_button_fontalign = isset($_POST["sfsi_plus_form_button_fontalign"]) ? sanitize_text_field($_POST["sfsi_plus_form_button_fontalign"]) : 'center';
837
+ $sfsi_plus_form_button_background = isset($_POST["sfsi_plus_form_button_background"]) ? sfsi_plus_sanitize_hex_color($_POST["sfsi_plus_form_button_background"]) : '#5a6570';
838
+
839
+ /* icons pop options */
840
+ $up_option9 = array(
841
+ 'sfsi_plus_form_adjustment' => sanitize_text_field($sfsi_plus_form_adjustment),
842
+ 'sfsi_plus_form_height' => intval($sfsi_plus_form_height),
843
+ 'sfsi_plus_form_width' => intval($sfsi_plus_form_width),
844
+ 'sfsi_plus_form_border' => sanitize_text_field($sfsi_plus_form_border),
845
+ 'sfsi_plus_form_border_thickness' => intval($sfsi_plus_form_border_thickness),
846
+ 'sfsi_plus_form_border_color' => sfsi_plus_sanitize_hex_color($sfsi_plus_form_border_color),
847
+ 'sfsi_plus_form_background' => sfsi_plus_sanitize_hex_color($sfsi_plus_form_background),
848
+
849
+ 'sfsi_plus_form_heading_text' => sanitize_text_field(stripslashes($sfsi_plus_form_heading_text)),
850
+ 'sfsi_plus_form_heading_font' => sanitize_text_field($sfsi_plus_form_heading_font),
851
+ 'sfsi_plus_form_heading_fontstyle' => sanitize_text_field($sfsi_plus_form_heading_fontstyle),
852
+ 'sfsi_plus_form_heading_fontcolor' => sfsi_plus_sanitize_hex_color($sfsi_plus_form_heading_fontcolor),
853
+ 'sfsi_plus_form_heading_fontsize' => intval($sfsi_plus_form_heading_fontsize),
854
+ 'sfsi_plus_form_heading_fontalign' => sanitize_text_field($sfsi_plus_form_heading_fontalign),
855
+
856
+ 'sfsi_plus_form_field_text' => sanitize_text_field(stripslashes($sfsi_plus_form_field_text)),
857
+ 'sfsi_plus_form_field_font' => sanitize_text_field($sfsi_plus_form_field_font),
858
+ 'sfsi_plus_form_field_fontstyle' => sanitize_text_field($sfsi_plus_form_field_fontstyle),
859
+ 'sfsi_plus_form_field_fontcolor' => sfsi_plus_sanitize_hex_color($sfsi_plus_form_field_fontcolor),
860
+ 'sfsi_plus_form_field_fontsize' => intval($sfsi_plus_form_field_fontsize),
861
+ 'sfsi_plus_form_field_fontalign' => sanitize_text_field($sfsi_plus_form_field_fontalign),
862
+
863
+ 'sfsi_plus_form_button_text' => sanitize_text_field(stripslashes($sfsi_plus_form_button_text)),
864
+ 'sfsi_plus_form_button_font' => sanitize_text_field($sfsi_plus_form_button_font),
865
+ 'sfsi_plus_form_button_fontstyle' => sanitize_text_field($sfsi_plus_form_button_fontstyle),
866
+ 'sfsi_plus_form_button_fontcolor' => sfsi_plus_sanitize_hex_color($sfsi_plus_form_button_fontcolor),
867
+ 'sfsi_plus_form_button_fontsize' => intval($sfsi_plus_form_button_fontsize),
868
+ 'sfsi_plus_form_button_fontalign' => sanitize_text_field($sfsi_plus_form_button_fontalign),
869
+ 'sfsi_plus_form_button_background' => sfsi_plus_sanitize_hex_color($sfsi_plus_form_button_background),
870
+ );
871
+
872
+ update_option('sfsi_plus_section9_options', serialize($up_option9));
873
+ header('Content-Type: application/json');
874
+ echo json_encode(array("success"));
875
+ exit;
876
+ }
877
+
878
+ /* upload custom icons images */
879
+ /* get counts for admin section */
880
+ function sfsi_plus_getCounts($for_resposive = false)
881
+ {
882
+ $socialObj = new sfsi_plus_SocialHelper();
883
+
884
+ $option4 = unserialize(get_option('sfsi_plus_section4_options', 'a:0:{}'));
885
+ $sfsi_plus_section2_options = unserialize(get_option('sfsi_plus_section2_options', 'a:0:{}'));
886
+
887
+ $scounts = array(
888
+ 'rss_count' => '',
889
+ 'email_count' => '',
890
+ 'fb_count' => '',
891
+ 'twitter_count' => '',
892
+ 'linkedIn_count' => '',
893
+ 'youtube_count' => '',
894
+ 'pin_count' => '',
895
+ 'share_count' => '',
896
+ 'houzz_count' => '',
897
+ 'telegram_count' => '',
898
+ 'vk_count' => '',
899
+ 'ok_count' => '',
900
+ 'weibo_count' => '',
901
+ 'wechat_count' => '',
902
+
903
+ );
904
+ /* get rss count */
905
+ if (isset($option4['sfsi_plus_rss_manualCounts']) && !empty($option4['sfsi_plus_rss_manualCounts'])) {
906
+ $scounts['rss_count'] = $option4['sfsi_plus_rss_manualCounts'];
907
+ }
908
+ /* get email count */
909
+ if (isset($option4['sfsi_plus_email_countsFrom']) && !empty($option4['sfsi_plus_email_countsFrom']) && $option4['sfsi_plus_email_countsFrom'] == "source") {
910
+ $feed_id = sanitize_text_field(get_option('sfsi_plus_feed_id', false));
911
+ $feed_data = $socialObj->SFSI_getFeedSubscriber($feed_id);
912
+
913
+ $scounts['email_count'] = $socialObj->format_num($feed_data);
914
+ if (empty($scounts['email_count'])) {
915
+ $scounts['email_count'] = (string) "0";
916
+ }
917
+ } else {
918
+ $scounts['email_count'] = $option4['sfsi_plus_email_manualCounts'];
919
+ }
920
+
921
+
922
+ /* get fb count */
923
+ if (isset($option4['sfsi_plus_facebook_countsFrom']) && !empty($option4['sfsi_plus_facebook_countsFrom'])) {
924
+
925
+ if ($option4['sfsi_plus_facebook_countsFrom'] == "likes") {
926
+ $url = home_url();
927
+ $fb_data = $socialObj->sfsi_get_fb($url);
928
+
929
+ $scounts['fb_count'] = $socialObj->format_num($fb_data['like_count']);
930
+ } else if ($option4['sfsi_plus_facebook_countsFrom'] == "followers") {
931
+ $url = home_url();
932
+ $fb_data = $socialObj->sfsi_get_fb($url);
933
+ $scounts['fb_count'] = format_num($fb_data['share_count']);
934
+ if (empty($scounts['fb_count'])) {
935
+ $scounts['fb_count'] = (string) "0";
936
+ }
937
+ } else if ($option4['sfsi_plus_facebook_countsFrom'] == "mypage") {
938
+ $url = $option4['sfsi_plus_facebook_mypageCounts'];
939
+ $fb_data = $socialObj->sfsi_get_fb_pagelike($url);
940
+ $scounts['fb_count'] = $fb_data;
941
+ } else {
942
+ $scounts['fb_count'] = $option4['sfsi_plus_facebook_manualCounts'];
943
+ }
944
+ }
945
+
946
+ /* get twitter counts */
947
+ if (isset($option4['sfsi_plus_twitter_countsFrom']) && !empty($option4['sfsi_plus_twitter_countsFrom']) && $option4['sfsi_plus_twitter_countsFrom'] == "source") {
948
+ $twitter_user = $sfsi_plus_section2_options['sfsi_plus_twitter_followUserName'];
949
+ $tw_settings = array(
950
+ 'sfsiplus_tw_consumer_key' => $option4['sfsiplus_tw_consumer_key'],
951
+ 'sfsiplus_tw_consumer_secret' => $option4['sfsiplus_tw_consumer_secret'],
952
+ 'sfsiplus_tw_oauth_access_token' => $option4['sfsiplus_tw_oauth_access_token'],
953
+ 'sfsiplus_tw_oauth_access_token_secret' => $option4['sfsiplus_tw_oauth_access_token_secret']
954
+ );
955
+
956
+ $followers = $socialObj->sfsi_get_tweets($twitter_user, $tw_settings);
957
+ $scounts['twitter_count'] = $socialObj->format_num($followers);
958
+ } else {
959
+ $scounts['twitter_count'] = $option4['sfsi_plus_twitter_manualCounts'];
960
+ }
961
+
962
+ if($for_resposive==false){
963
+ /* get linkedIn counts */
964
+ if (isset($option4['sfsi_plus_linkedIn_countsFrom']) && !empty($option4['sfsi_plus_linkedIn_countsFrom']) && $option4['sfsi_plus_linkedIn_countsFrom'] == "follower") {
965
+ $linkedIn_compay = $sfsi_plus_section2_options['sfsi_plus_linkedin_followCompany'];
966
+ $linkedIn_compay = $option4['sfsi_plus_ln_company'];
967
+ $ln_settings = array(
968
+ 'sfsi_plus_ln_api_key' => $option4['sfsi_plus_ln_api_key'],
969
+ 'sfsi_plus_ln_secret_key' => $option4['sfsi_plus_ln_secret_key'],
970
+ 'sfsi_plus_ln_oAuth_user_token' => $option4['sfsi_plus_ln_oAuth_user_token']
971
+ );
972
+ $followers = $socialObj->sfsi_getlinkedin_follower($linkedIn_compay, $ln_settings);
973
+ $scounts['linkedIn_count'] = $socialObj->format_num($followers);
974
+ } else {
975
+ $scounts['linkedIn_count'] = $option4['sfsi_plus_linkedIn_manualCounts'];
976
+ }
977
+
978
+ /* get youtube counts */
979
+ if (isset($option4['sfsi_plus_youtube_countsFrom']) && !empty($option4['sfsi_plus_youtube_countsFrom']) && $option4['sfsi_plus_youtube_countsFrom'] == "subscriber") {
980
+ if (
981
+ isset($option4['sfsi_plus_youtube_user'])
982
+ ) {
983
+ $youtube_user = $option4['sfsi_plus_youtube_user'];
984
+
985
+ $youtube_user = (isset($option4['sfsi_plus_youtube_user']) &&
986
+ !empty($option4['sfsi_plus_youtube_user'])) ? $option4['sfsi_plus_youtube_user'] : 'SpecificFeeds';
987
+
988
+ $followers = $socialObj->sfsi_get_youtube($youtube_user);
989
+ $scounts['youtube_count'] = $socialObj->format_num($followers);
990
+ } else {
991
+ $scounts['youtube_count'] = 01;
992
+ }
993
+ } else {
994
+ $scounts['youtube_count'] = $option4['sfsi_plus_youtube_manualCounts'];
995
+ }
996
+ /* get Pinterest counts */
997
+ if (isset($option4['sfsi_plus_pinterest_countsFrom']) && !empty($option4['sfsi_plus_pinterest_countsFrom']) && $option4['sfsi_plus_pinterest_countsFrom'] == "pins") {
998
+ $url = home_url();
999
+ $pins = $socialObj->sfsi_get_pinterest($url);
1000
+ $scounts['pin_count'] = $socialObj->format_num($pins);
1001
+ } else {
1002
+ $scounts['pin_count'] = $option4['sfsi_plus_pinterest_manualCounts'];
1003
+ }
1004
+ /* get instagram count */
1005
+ if (isset($option4['sfsi_plus_instagram_countsFrom']) && !empty($option4['sfsi_plus_instagram_countsFrom']) && $option4['sfsi_plus_instagram_countsFrom'] == "followers") {
1006
+ $iuser_name = $option4['sfsi_plus_instagram_User'];
1007
+ $counts = $socialObj->sfsi_get_instagramFollowers($iuser_name);
1008
+ if (empty($counts)) {
1009
+ $scounts['instagram_count'] = (string) "0";
1010
+ } else {
1011
+ $scounts['instagram_count'] = $counts;
1012
+ }
1013
+ } else {
1014
+ $scounts['instagram_count'] = $option4['sfsi_plus_instagram_manualCounts'];
1015
+ }
1016
+
1017
+ /* get instagram count */
1018
+ if (isset($option4['sfsi_plus_houzz_countsFrom']) && !empty($option4['sfsi_plus_houzz_countsFrom']) && $option4['sfsi_plus_houzz_countsFrom'] == "manual") {
1019
+ if (
1020
+ isset($option4['sfsi_plus_houzz_manualCounts'])
1021
+ ) {
1022
+ $scounts['houzz_count'] = $option4['sfsi_plus_houzz_manualCounts'];
1023
+ } else {
1024
+ $scounts['houzz_count'] = '20';
1025
+ }
1026
+ } elseif (!isset($option4['sfsi_plus_houzz_countsFrom'])) {
1027
+ $scounts['houzz_count'] = '20';
1028
+ }
1029
+
1030
+ /* get rss count */
1031
+ if (isset($option4['sfsi_plus_telegram_manualCounts']) && !empty($option4['sfsi_plus_telegram_manualCounts'])) {
1032
+ $scounts['telegram_count'] = $option4['sfsi_plus_telegram_manualCounts'];
1033
+ }
1034
+
1035
+ if (isset($option4['sfsi_plus_vk_manualCounts']) && !empty($option4['sfsi_plus_vk_manualCounts'])) {
1036
+ $scounts['vk_count'] = $option4['sfsi_plus_vk_manualCounts'];
1037
+ }
1038
+ if (isset($option4['sfsi_plus_ok_manualCounts']) && !empty($option4['sfsi_plus_ok_manualCounts'])) {
1039
+ $scounts['ok_count'] = $option4['sfsi_plus_ok_manualCounts'];
1040
+ }
1041
+ if (isset($option4['sfsi_plus_weibo_manualCounts']) && !empty($option4['sfsi_plus_weibo_manualCounts'])) {
1042
+ $scounts['weibo_count'] = $option4['sfsi_plus_weibo_manualCounts'];
1043
+ }
1044
+ if (isset($option4['sfsi_plus_wechat_manualCounts']) && !empty($option4['sfsi_plus_wechat_manualCounts'])) {
1045
+ $scounts['wechat_count'] = $option4['sfsi_plus_wechat_manualCounts'];
1046
+ }
1047
+ }
1048
+ return $scounts;
1049
+ exit;
1050
+ }
1051
+
1052
+ /* activate and remove footer credit link */
1053
+ add_action('wp_ajax_plus_activateFooter', 'sfsiplusActivateFooter');
1054
+ function sfsiplusActivateFooter()
1055
+ {
1056
+ if (!wp_verify_nonce($_POST['nonce'], "active_plusfooter")) {
1057
+ echo json_encode(array('res' => 'wrong_nonce'));
1058
+ exit;
1059
+ }
1060
+ if (!current_user_can('manage_options')) {
1061
+ echo json_encode(array('res' => 'not allowed'));
1062
+ die();
1063
+ }
1064
+
1065
+ update_option('sfsi_plus_footer_sec', 'yes');
1066
+ echo json_encode(array('res' => 'success'));
1067
+ exit;
1068
+ }
1069
+
1070
+ add_action('wp_ajax_plus_removeFooter', 'sfsiplusremoveFooter');
1071
+ function sfsiplusremoveFooter()
1072
+ {
1073
+ if (!wp_verify_nonce($_POST['nonce'], "remove_plusfooter")) {
1074
+ echo json_encode(array('res' => 'wrong_nonce'));
1075
+ exit;
1076
+ }
1077
+ if (!current_user_can('manage_options')) {
1078
+ echo json_encode(array('res' => 'not allowed'));
1079
+ die();
1080
+ }
1081
+
1082
+ update_option('sfsi_plus_footer_sec', 'no');
1083
+ echo json_encode(array('res' => 'success'));
1084
+ exit;
1085
+ }
1086
+
1087
+ add_action('wp_ajax_getIconPreview', 'sfsiPlusGetIconPreview');
1088
+ function sfsiPlusGetIconPreview()
1089
+ {
1090
+ if (!wp_verify_nonce($_POST['nonce'], "plus_getIconPreview")) {
1091
+ echo json_encode(array("wrong_nonce"));
1092
+ exit;
1093
+ }
1094
+ if (!current_user_can('manage_options')) {
1095
+ echo json_encode(array('res' => 'not allowed'));
1096
+ die();
1097
+ }
1098
+ // extract($_POST);
1099
+ $iconname = isset($_POST) && isset($_POST['iconname']) ? sanitize_text_field($_POST['iconname']) : '';
1100
+ $iconValue = isset($_POST) && isset($_POST['iconValue']) ? sanitize_text_field($_POST['iconValue']) : '';
1101
+ echo '<img src="' . $iconname . "/icon_" . $iconValue . '.png" >';
1102
+ die;
1103
+ }
1104
+ add_action("wp_ajax_sfsiplus_curlerrornotification", "sfsiplus_curlerrornotification");
1105
+ function sfsiPlusGetForm()
1106
+ {
1107
+ if (!wp_verify_nonce($_POST['nonce'], "plus_getForm")) {
1108
+ echo json_encode(array("wrong_nonce"));
1109
+ exit;
1110
+ }
1111
+ if (!current_user_can('manage_options')) {
1112
+ echo json_encode(array('res' => 'not allowed'));
1113
+ die();
1114
+ }
1115
+ // extract($_POST);
1116
+ $heading = isset($_POST) && isset($_POST['heading']) ? sanitize_text_field($_POST['heading']) : '';
1117
+ $placeholder = isset($_POST) && isset($_POST['placeholder']) ? sanitize_text_field($_POST['placeholder']) : '';
1118
+ $button = isset($_POST) && isset($_POST['button']) ? sanitize_text_field($_POST['button']) : '';
1119
+
1120
+ ?>
1121
+ <xmp>
1122
+ <div class="sfsi_subscribe_Popinner">
1123
+ <form method="post">
1124
+ <h5><?php echo $heading; ?></h5>
1125
+ <div class="sfsi_subscription_form_field">
1126
+ <input type="email" name="subscribe_email" placeholder="<?php echo $placeholder; ?>" value="" />
1127
+ </div>
1128
+ <div class="sfsi_subscription_form_field">
1129
+ <input type="submit" name="subscribe" value="<?php echo $button; ?>" />
1130
+ </div>
1131
+ </form>
1132
+ </div>
1133
+ </xmp>
1134
+ <?php
1135
+ die;
1136
+ }
1137
+
1138
+ add_action("wp_ajax_sfsiPlus_notification_read", "sfsiPlus_notification_read");
1139
+ function sfsiPlus_notification_read()
1140
+ {
1141
+ if (!wp_verify_nonce($_POST['nonce'], "plus_notification_read")) {
1142
+ echo json_encode(array("wrong_nonce"));
1143
+ exit;
1144
+ }
1145
+ if (!current_user_can('manage_options')) {
1146
+ echo json_encode(array('res' => 'not allowed'));
1147
+ die();
1148
+ }
1149
+ update_option("sfsi_plus_show_notification", "no");
1150
+ echo "success";
1151
+ die;
1152
+ }
1153
+
1154
+ add_action("wp_ajax_sfsiPlus_new_notification_read", "sfsiPlus_new_notification_read");
1155
+ function sfsiPlus_new_notification_read()
1156
+ {
1157
+ if (!wp_verify_nonce($_POST['nonce'], "plus_notification_read")) {
1158
+ echo json_encode(array("wrong_nonce"));
1159
+ exit;
1160
+ }
1161
+ if (!current_user_can('manage_options')) {
1162
+ echo json_encode(array('res' => 'not allowed'));
1163
+ die();
1164
+ }
1165
+ update_option("sfsi_plus_new_show_notification", "no");
1166
+ echo "success";
1167
+ die;
1168
+ }
1169
+
1170
+ function sfsi_plus_sanitize_field($value)
1171
+ {
1172
+ return strip_tags(trim($value));
1173
+ }
1174
+ //Sanitize color code
1175
+ if (@!function_exists("sfsi_plus_sanitize_hex_color")) {
1176
+ function sfsi_plus_sanitize_hex_color($color)
1177
+ {
1178
+ if ('' === $color)
1179
+ return '';
1180
+
1181
+ // 3 or 6 hex digits, or the empty string.
1182
+ if (preg_match('|^#([A-Fa-f0-9]{3}){1,2}$|', $color))
1183
+ return $color;
1184
+ }
1185
+ }
1186
+
1187
+ function sfsi_plus_returningElement($element)
1188
+ {
1189
+ return $element[0];
1190
+ }
1191
+
1192
+ function sfsi_plus_get_keywordEnglish()
1193
+ {
1194
+ $keywordFile = SFSI_PLUS_DOCROOT . "/All_english_words_better_list.csv";
1195
+ $keywordData = @file_get_contents($keywordFile);
1196
+ $keywordEnglish = array_map("str_getcsv", explode("\n", $keywordData));
1197
+ $keywordEnglish = array_map('array_filter', $keywordEnglish);
1198
+ $keywordEnglish = array_filter(array_map(sfsi_plus_returningElement($element), $keywordEnglish));
1199
+ return $keywordEnglish;
1200
+ }
1201
+
1202
+
1203
+ add_action('wp_ajax_sfsiplusbannerOption', 'sfsi_plus_bannerOption');
1204
+
1205
+ function sfsi_plus_bannerOption()
1206
+ {
1207
+ error_reporting(1);
1208
+ if (!wp_verify_nonce($_POST['nonce'], "plus_sfsiplusbannerOption")) {
1209
+ echo json_encode(array("wrong_nonce"));
1210
+ exit;
1211
+ }
1212
+ if (!current_user_can('manage_options')) {
1213
+ echo json_encode(array('res' => 'not allowed'));
1214
+ die();
1215
+ }
1216
+ try {
1217
+ if (get_option("sfsi_plus_new_show_notification") == "yes") {
1218
+
1219
+ $objThemeCheck = new sfsi_plus_ThemeCheck();
1220
+
1221
+ $domainname = $objThemeCheck->sfsi_plus_getdomain(get_bloginfo('url'));
1222
+
1223
+ // Get all themes data which incudes nobrainer
1224
+ $themeDataArr = $objThemeCheck->sfsi_plus_get_themeData();
1225
+ // var_dump($themeDataArr);die();
1226
+ $matchFound = false;
1227
+ foreach ($themeDataArr as $themeDataObj) :
1228
+ if (isset($themeDataObj->themeName) && strlen($themeDataObj->themeName) > 0) {
1229
+ $themeName = $themeDataObj->themeName;
1230
+ $noBrainerKeywords = $themeDataObj->noBrainerKeywords;
1231
+ $separateKeywords = $themeDataObj->separateKeywords;
1232
+ $negativeKeywords = $themeDataObj->negativeKeywords;
1233
+ $noBrainerAndSeparateKeywords = array_merge($noBrainerKeywords, $separateKeywords);
1234
+ if ($objThemeCheck->sfsi_plus_check_type_of_websiteWithNoBrainerAndSeparateAndNegativeKeywords($themeName, $noBrainerKeywords, $separateKeywords, $noBrainerAndSeparateKeywords, $negativeKeywords, $domainname) == $themeName) {
1235
+ $matchFound = true;
1236
+
1237
+ $themeName = strtolower($themeName);
1238
+
1239
+ $objThemeCheck->sfsi_plus_bannereHtml(
1240
+ $themeDataObj->headline,
1241
+ $themeDataObj->themeLink,
1242
+ (SFSI_PLUS_PLUGURL) . 'images/website_theme/' . $themeName . '.png',
1243
+ $themeDataObj->bottomtext
1244
+ );
1245
+
1246
+ break;
1247
+ }
1248
+ }
1249
+
1250
+ endforeach;
1251
+ if (!$matchFound) {
1252
+ foreach ($themeDataArr as $themeDataObj) {
1253
+
1254
+ if (isset($themeDataObj->themeName) && strlen($themeDataObj->themeName) > 0) {
1255
+
1256
+ $themeName = $themeDataObj->themeName;
1257
+ $noBrainerKeywords = $themeDataObj->noBrainerKeywords;
1258
+ $separateKeywords = $themeDataObj->separateKeywords;
1259
+ $negativeKeywords = $themeDataObj->negativeKeywords;
1260
+ $noBrainerAndSeparateKeywords = array_merge($noBrainerKeywords, $separateKeywords);
1261
+
1262
+
1263
+ if ($objThemeCheck->sfsi_plus_check_type_of_metaTitleWithNoBrainerAndSeparateAndNegativeKeywords($themeName, $noBrainerKeywords, $separateKeywords, $noBrainerAndSeparateKeywords, $negativeKeywords, $domainname) == $themeName) {
1264
+ $matchFound = true;
1265
+
1266
+ $themeName = strtolower($themeName);
1267
+
1268
+ $objThemeCheck->sfsi_plus_bannereHtml(
1269
+ $themeDataObj->headline,
1270
+ $themeDataObj->themeLink,
1271
+ SFSI_PLUS_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1272
+ $themeDataObj->bottomtext
1273
+ );
1274
+
1275
+ break;
1276
+ }
1277
+ }
1278
+ }
1279
+ }
1280
+ if (!$matchFound) {
1281
+ foreach ($themeDataArr as $themeDataObj) {
1282
+
1283
+ if (isset($themeDataObj->themeName) && strlen($themeDataObj->themeName) > 0) {
1284
+
1285
+ $themeName = $themeDataObj->themeName;
1286
+ $noBrainerKeywords = $themeDataObj->noBrainerKeywords;
1287
+ $separateKeywords = $themeDataObj->separateKeywords;
1288
+ $negativeKeywords = $themeDataObj->negativeKeywords;
1289
+ $noBrainerAndSeparateKeywords = array_merge($noBrainerKeywords, $separateKeywords);
1290
+
1291
+
1292
+ if ($objThemeCheck->sfsi_plus_check_type_of_metaKeywordsWithNoBrainerAndSeparateAndNegativeKeywords($themeName, $noBrainerKeywords, $separateKeywords, $noBrainerAndSeparateKeywords, $negativeKeywords, $domainname) == $themeName) {
1293
+ $matchFound = true;
1294
+
1295
+ $themeName = strtolower($themeName);
1296
+
1297
+ $objThemeCheck->sfsi_plus_bannereHtml(
1298
+ $themeDataObj->headline,
1299
+ $themeDataObj->themeLink,
1300
+ SFSI_PLUS_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1301
+ $themeDataObj->bottomtext
1302
+ );
1303
+
1304
+ break;
1305
+ }
1306
+ }
1307
+ }
1308
+ }
1309
+ if (!$matchFound) {
1310
+ foreach ($themeDataArr as $themeDataObj) {
1311
+
1312
+ if (isset($themeDataObj->themeName) && strlen($themeDataObj->themeName) > 0) {
1313
+
1314
+ $themeName = $themeDataObj->themeName;
1315
+ $noBrainerKeywords = $themeDataObj->noBrainerKeywords;
1316
+ $separateKeywords = $themeDataObj->separateKeywords;
1317
+ $negativeKeywords = $themeDataObj->negativeKeywords;
1318
+ $noBrainerAndSeparateKeywords = array_merge($noBrainerKeywords, $separateKeywords);
1319
+
1320
+
1321
+ if ($objThemeCheck->sfsi_plus_check_type_of_metaDescriptionWithNoBrainerAndSeparateAndNegativeKeywords($themeName, $noBrainerKeywords, $separateKeywords, $noBrainerAndSeparateKeywords, $negativeKeywords, $domainname) == $themeName) {
1322
+ $matchFound = true;
1323
+
1324
+ $themeName = strtolower($themeName);
1325
+
1326
+ $objThemeCheck->sfsi_plus_bannereHtml(
1327
+ $themeDataObj->headline,
1328
+ $themeDataObj->themeLink,
1329
+ SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1330
+ $themeDataObj->bottomtext
1331
+ );
1332
+
1333
+ break;
1334
+ }
1335
+ }
1336
+ }
1337
+ }
1338
+ echo '<script>
1339
+ jQuery("body").on("click", ".sfsi_plus_new_notification_cross_cat", function(){
1340
+ SFSI.ajax({
1341
+ url:sfsi_plus_ajax_object.ajax_url,
1342
+ type:"post",
1343
+ data: {action: "sfsiPlus_new_notification_read",nonce:"' . (wp_create_nonce('plus_notification_read')) . '"},
1344
+ success:function(msg){
1345
+ if(jQuery.trim(msg) == "success")
1346
+ {
1347
+ jQuery(".sfsi_plus_new_notification_cat").hide("fast");
1348
+ }
1349
+ }
1350
+ });
1351
+ });
1352
+ </script>';
1353
+ }
1354
+ } catch (Exception $e) {
1355
+ // var_dump($e);die();
1356
+ }
1357
+ die;
1358
+ }
1359
+
1360
+ add_action('wp_ajax_sfsiplusOfflineChatMessage', 'sfsi_plus_OfflineChatMessage');
1361
+
1362
+ function sfsi_plus_OfflineChatMessage()
1363
+ {
1364
+ if (!wp_verify_nonce($_POST['nonce'], "plus_sfsiplusOfflineChatMessage")) {
1365
+ echo json_encode(array("wrong_nonce"));
1366
+ exit;
1367
+ }
1368
+ if (!current_user_can('manage_options')) {
1369
+ echo json_encode(array('res' => 'not allowed'));
1370
+ die();
1371
+ }
1372
+ error_reporting(0);
1373
+ // extract($_POST);
1374
+ $email = isset($_POST) && isset($_POST['email']) ? sanitize_text_field($_POST['email']) : '';
1375
+ $message = isset($_POST) && isset($_POST['message']) ? sanitize_textarea_field($_POST['message']) : '';
1376
+ $body = "<table><tr><th>Site:</th><td>" . home_url() . "</td></tr><tr><th>Email:</th><td>" . $email . "</td></tr><tr><th>Message:</th><td>" . $message . "</td></tr></table>";
1377
+ $sent = wp_mail('help@ultimatelysocial.com', "New question from user", $body, array('Content-Type: text/html; charset=UTF-8'));
1378
+ if (isset($sent) && (true === $sent)) {
1379
+ echo "success";
1380
+ } else {
1381
+ echo "failure";
1382
+ }
1383
+ die();
1384
+ }
1385
+
1386
+ add_action('wp_ajax_worker_plugin', 'sfsi_plus_worker_plugin');
1387
+ // define('usmpw_PLUS_worker_plugin','usm_premium_worker.php');
1388
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1389
  ?>
libs/controllers/sfsi_class_theme_check.php CHANGED
@@ -1,540 +1,540 @@
1
- <?php
2
-
3
- class sfsi_plus_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_PLUS_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
- $arrVal = $finalArr[$i];
47
-
48
- $themeArr = array();
49
- $themeArr['themeName'] = preg_replace('/^[,\s]+|[\s,]+$/', '', trim($arrVal[0]));
50
- $themeArr['noBrainerKeywords'] = $this->sfsi_plus_string_to_arr(preg_replace('/^[,\s]+|[\s,]+$/', '', trim($arrVal[1])));
51
- $themeArr['separateKeywords'] = $this->sfsi_plus_string_to_arr(preg_replace('/^[,\s]+|[\s,]+$/', '', trim($arrVal[2])));
52
- $themeArr['negativeKeywords'] = $this->sfsi_plus_string_to_arr(preg_replace('/^[,\s]+|[\s,]+$/', '', trim($arrVal[3])));
53
- $themeArr['headline'] = (isset($arrVal[6]) && strlen(trim($arrVal[6]))==0)? "You like ".trim($arrVal[0])." ?" : trim($arrVal[6]);
54
- $themeArr['themeLink'] = trim($arrVal[8]);
55
- $themeArr['bottomtext'] = (isset($arrVal[10]) && strlen(trim($arrVal[10]))==0)? "See all ".strtolower(trim($arrVal[0]))."-themed-icons": trim($arrVal[10]);
56
-
57
- array_push($themeDataArr, (object)$themeArr);
58
- }
59
- }
60
- }
61
- }
62
-
63
- return $themeDataArr;
64
- }
65
-
66
- public function sfsi_plus_get_keywordEnglish(){
67
- $keywordFile = SFSI_PLUS_DOCROOT."/All_english_words_better_list.csv";
68
- $keywordData = @file_get_contents($keywordFile);
69
- $keywordEnglish = array_map("str_getcsv", explode("\n", $keywordData));
70
- $keywordEnglish = array_map('array_filter', $keywordEnglish);
71
- $keywordEnglish = array_filter(array_map(sfsi_plus_returningElement($element), $keywordEnglish));
72
- return $keywordEnglish;
73
- }
74
-
75
-
76
- public function sfsi_plus_regex_for_keywords($arrKeyWords){
77
-
78
- $strRegex = "";
79
-
80
- if(isset($arrKeyWords) && is_array($arrKeyWords) && count($arrKeyWords)>0){
81
-
82
- $count = count($arrKeyWords);
83
-
84
- if($count==1){
85
- $strRegex .= "/".$arrKeyWords[0]."/im";
86
- }
87
- else{
88
- for ($i=0; $i <$count ; $i++) {
89
-
90
- $val = trim($arrKeyWords[$i]);
91
-
92
- if($i==0){
93
- $strRegex .= "/(".$val."|";
94
- }
95
- elseif ($i==$count-1) {
96
- $strRegex .= $val.")/im";
97
- }
98
- else{
99
- $strRegex.= $val."|";
100
- }
101
- }
102
- }
103
- }
104
- return $strRegex;
105
- }
106
-
107
- public function sfsi_plus_regex_forNegative_keywords($arrKeyWords){
108
-
109
- $strRegex = "";
110
-
111
- if(isset($arrKeyWords) && is_array($arrKeyWords) && count($arrKeyWords)>0 ){
112
-
113
- $count = count($arrKeyWords);
114
-
115
- if($count==1){
116
- $strRegex .= "/".$arrKeyWords[0]."/i";
117
- }
118
- else{
119
-
120
- for ($i=0; $i <$count ; $i++) {
121
-
122
- $val = trim($arrKeyWords[$i]);
123
-
124
- if($i==0){
125
- $strRegex .= "/".$val."|";
126
- }
127
- elseif ($i==$count-1) {
128
- $strRegex .= $val."/i";
129
- }
130
- else{
131
- $strRegex.= $val."|";
132
- }
133
- }
134
- }
135
- }
136
- return $strRegex;
137
- }
138
-
139
- public function sfsi_plus_match_separate_word_with_csv_data($seprateWord,$domainname){
140
-
141
-
142
- $keywordEnglish = $this->sfsi_plus_get_keywordEnglish();
143
-
144
- $finalKeywordEnglish = array();
145
-
146
- foreach ($keywordEnglish as $val) {
147
- if(is_array($val)) {
148
- array_push($finalKeywordEnglish, $val[0]);
149
- }
150
- }
151
-
152
- $catflag = false;
153
-
154
- $explode = explode($seprateWord,$domainname);
155
- $left = trim($explode[0]);
156
- $right = trim($explode[1]);
157
-
158
- $leftcatflag = false;
159
-
160
- if(!empty($left))
161
- {
162
- $left = str_split($left);
163
-
164
- $matchKeyword = ''; $j = 0;
165
- for($i = (count($left)-1); $i >= 0; $i--)
166
- {
167
- $matchKeyword = $left[$i].$matchKeyword;
168
-
169
- if($j > 0)
170
- {
171
- if(in_array($matchKeyword, $finalKeywordEnglish))
172
- {
173
- $leftcatflag = true;
174
- break;
175
- }
176
- else
177
- {
178
- continue;
179
- }
180
- }
181
- else
182
- {
183
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
184
- {
185
- $leftcatflag = true;
186
- break;
187
- }
188
- }
189
-
190
- $j++;
191
- }
192
- }
193
-
194
- $rightcatflag = false;
195
- if(!empty($right))
196
- {
197
- $right = str_split($right);
198
-
199
- $matchKeyword = '';
200
- for($i = 0; $i < count($right); $i++)
201
- {
202
- $matchKeyword .= $right[$i];
203
-
204
- if($i > 0)
205
- {
206
- if(in_array($matchKeyword, $finalKeywordEnglish))
207
- {
208
- $rightcatflag = true;
209
- break;
210
- }
211
- else
212
- {
213
- continue;
214
- }
215
- }
216
- else
217
- {
218
- if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
219
- {
220
- $rightcatflag = true;
221
- break;
222
- }
223
- }
224
- }
225
- }
226
-
227
- if(empty($left) && empty($right))
228
- {
229
- $catflag = true;
230
- }
231
- else
232
- {
233
- if(!empty($left) && !empty($right))
234
- {
235
- if($rightcatflag && $leftcatflag)
236
- {
237
- $catflag = true;
238
- }
239
- }
240
- elseif(empty($left) && !empty($right))
241
- {
242
- if($rightcatflag)
243
- {
244
- $catflag = true;
245
- }
246
- }
247
- elseif(!empty($left) && empty($right))
248
- {
249
- if($leftcatflag)
250
- {
251
- $catflag = true;
252
- }
253
- }
254
- }
255
-
256
- return $catflag;
257
- }
258
-
259
- public function sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$domainname){
260
-
261
- $boolSeparateWord = false;
262
-
263
- if(isset($arrSeparateKeywords) && is_array($arrSeparateKeywords) && count($arrSeparateKeywords)>0){
264
-
265
- foreach ($arrSeparateKeywords as $value) {
266
-
267
- $val = trim($value);
268
-
269
- if(isset($value) && strlen($val)>0){
270
-
271
- if(preg_match("/(".$val.")/im", $domainname)){
272
-
273
- $boolSeparateWord = $this->sfsi_plus_match_separate_word_with_csv_data($val,$domainname);
274
-
275
- if($boolSeparateWord) {
276
- break;
277
- }
278
-
279
- }
280
- }
281
- }
282
- }
283
-
284
- return $boolSeparateWord;
285
- }
286
-
287
- public function sfsi_plus_MetaKeywordCheck($arrSeparateKeywords,$domainname){
288
- $keywordInMeta = false;
289
- $metaArray = $this->sfsi_plus_GetMetaName($domainname);
290
- foreach($metaArray as $index=>$meta){
291
- if($this->sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords, $domainname)){
292
- $flag = true;
293
- }
294
- else if($this->sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$domainname)){
295
- $flag = true;
296
- }
297
- }
298
- return $keywordInMeta;
299
- }
300
-
301
- public function sfsi_plus_GetMetaKeywords($domainname){
302
- $url = get_bloginfo('url');
303
- $res= wp_remote_get($url);
304
- $meta_local = array("title"=>array(),"description"=>array(),"keyword"=>array());
305
- if ( is_array( $res ) && ! is_wp_error( $res ) ) {
306
- $body = $res['body']; // use the content
307
- $meta = array();
308
- if(false==class_exists("DomDocument")) {
309
- $metas=array();
310
- preg_match_all( '/\<meta.+name="(\w*)".+content="(.*)"/i', $body, $metas);
311
- preg_match_all( '/\<meta.+property="og:(\w*)".+content="(.*)"/i', $body, $metas2);
312
- // $metas[1]=array_merge($metas[1],$metas2[1]);
313
- // $metas[2]=array_merge($metas[2],$metas2[2]);
314
- if(isset($metas)&&is_array($metas)&&isset($metas[1])&&isset($metas[2])){
315
- foreach($metas[1] as $index=>$meta_name){
316
- if($meta_name==="keywords" && isset($metas[2][$index])) {
317
- $meta['keywords']=$metas[2][$index];
318
- }
319
- if($meta_name === "description" && isset($metas[2][$index])){
320
- $meta['description']=$metas[2][$index];
321
- }
322
- }
323
- }
324
- if(isset($metas2)&&is_array($metas2)&&isset($metas2[1])&&isset($metas2[2])){
325
- foreach($metas2[1] as $index=>$meta_name){
326
- // var_dump($meta_name,$meta_name === "description" ,$metas2[2][$index]);
327
- if($meta_name==="keywords" && isset($metas2[2][$index])) {
328
- $meta[$meta_name]=$metas2[2][$index];
329
- }
330
- if($meta_name === "description" && isset($metas2[2][$index])&&!isset($meta[$meta_name])){
331
- $meta[$meta_name]=$metas2[2][$index];
332
- }
333
- }
334
- }
335
- // var_dump($meta);die();
336
- if(isset($meta['keywords'])){
337
- $meta_local["keyword"]=array_filter(explode(',',$meta['keywords']),function($data){
338
- return $data!=="";
339
- });
340
- }
341
- if(isset($meta['description'])){
342
- $meta['description']=preg_replace("/[^A-Za-z ]/", '', strtolower($meta['description']));
343
- $meta_local["description"]=array_filter(explode( '\s+',$meta['description']),function($data){
344
- return $data!=="";
345
- });
346
- }
347
- $preg_res=preg_match("/<title>(.+)<\/title>/i", $body, $matches);
348
- if($preg_res){
349
- $meta['title']=preg_replace("/[^A-Za-z ]/", '', strtolower($matches[1]));
350
- $meta_local["title"]=array_filter(explode('\s+',$meta['title']),function($data){
351
- return $data!=="";
352
- });
353
- }
354
-
355
- }else{
356
- $doc = new \DOMDocument();
357
- @$doc->loadHTML($body);
358
- $nodes = $doc->getElementsByTagName('meta');
359
- foreach($nodes as $index=>$node){
360
- if(null!==$node->getAttribute('name')) {
361
- $meta[$node->getAttribute('name')]=$node->getAttribute('content');
362
- }elseif(null!==$node->getAttribute('property')){
363
- $meta[$node->getAttribute('property')]=$node->getAttribute('content');
364
- }
365
- }
366
- $meta['title'] = (null!==$doc->getElementsByTagName('title'))&&count($doc->getElementsByTagName('title'))>0?$doc->getElementsByTagName('title')->item(0)->nodeValue:'';
367
- if(isset($meta['keywords'])) {
368
- $meta_local["keyword"]=array_filter(explode(',',$meta['keywords']),function($data){
369
- return $data!=="";
370
- });
371
- }
372
- if(isset($meta['description'])){
373
- $meta['description']=preg_replace("/[^A-Za-z ]/", '', strtolower($meta['description']));
374
- $meta_local["description"]=array_filter(explode( '\s+',$meta['description']),function($data){
375
- return $data!=="";
376
- });
377
- }
378
- if(count($meta_local["description"])==0 && isset($meta['og:description'])){
379
- $meta['description']=preg_replace("/[^A-Za-z ]/", '', strtolower($meta['og:description']));
380
- $meta_local["description"]=array_filter(explode( '\s+',$meta['description']),function($data){
381
- return $data!=="";
382
- });
383
- }
384
- if(isset($meta['title'])){
385
- $meta['title']=preg_replace("/[^A-Za-z ]/", '', strtolower($meta['title']));
386
- // var_dump($meta['title']);die();
387
- $meta_local["title"]= array_filter(explode('\s+',$meta['title']),function($data){
388
- return $data!=="";
389
- });
390
- }
391
- }
392
- }
393
- return $meta_local;
394
- }
395
-
396
- public function sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords,$domainname){
397
-
398
- $bflag = false;
399
-
400
- if(isset($arrNoBrainerKeywords) && is_array($arrNoBrainerKeywords) && count($arrNoBrainerKeywords)>0){
401
-
402
- if(preg_match($this->sfsi_plus_regex_for_keywords($arrNoBrainerKeywords), $domainname)){
403
- $bflag = true;
404
- }
405
- }
406
- return $bflag;
407
- }
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_plus_new_notification_cat">
517
- <div class="sfsi_plus_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_plus_new_notification_cross_cat">X</div>
521
- </div>
522
-
523
- <div class="sfsi_plus_new_notification_body_link_cat">
524
- <a href="'.$siteLink.'" target="_blank">
525
- <div class="sfsi_plus_new_notification_body_cat">
526
- <div class="sfsi_plus_new_notification_image_cat">
527
- <img src="'.$bannerImage.'" id="newImg" />
528
- </div>
529
- </div>
530
- </a>
531
- <div class="sfsiplus_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_plus_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_PLUS_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
+ $arrVal = $finalArr[$i];
47
+
48
+ $themeArr = array();
49
+ $themeArr['themeName'] = preg_replace('/^[,\s]+|[\s,]+$/', '', trim($arrVal[0]));
50
+ $themeArr['noBrainerKeywords'] = $this->sfsi_plus_string_to_arr(preg_replace('/^[,\s]+|[\s,]+$/', '', trim($arrVal[1])));
51
+ $themeArr['separateKeywords'] = $this->sfsi_plus_string_to_arr(preg_replace('/^[,\s]+|[\s,]+$/', '', trim($arrVal[2])));
52
+ $themeArr['negativeKeywords'] = $this->sfsi_plus_string_to_arr(preg_replace('/^[,\s]+|[\s,]+$/', '', trim($arrVal[3])));
53
+ $themeArr['headline'] = (isset($arrVal[6]) && strlen(trim($arrVal[6]))==0)? "You like ".trim($arrVal[0])." ?" : trim($arrVal[6]);
54
+ $themeArr['themeLink'] = trim($arrVal[8]);
55
+ $themeArr['bottomtext'] = (isset($arrVal[10]) && strlen(trim($arrVal[10]))==0)? "See all ".strtolower(trim($arrVal[0]))."-themed-icons": trim($arrVal[10]);
56
+
57
+ array_push($themeDataArr, (object)$themeArr);
58
+ }
59
+ }
60
+ }
61
+ }
62
+
63
+ return $themeDataArr;
64
+ }
65
+
66
+ public function sfsi_plus_get_keywordEnglish(){
67
+ $keywordFile = SFSI_PLUS_DOCROOT."/All_english_words_better_list.csv";
68
+ $keywordData = @file_get_contents($keywordFile);
69
+ $keywordEnglish = array_map("str_getcsv", explode("\n", $keywordData));
70
+ $keywordEnglish = array_map('array_filter', $keywordEnglish);
71
+ $keywordEnglish = array_filter(array_map(sfsi_plus_returningElement($element), $keywordEnglish));
72
+ return $keywordEnglish;
73
+ }
74
+
75
+
76
+ public function sfsi_plus_regex_for_keywords($arrKeyWords){
77
+
78
+ $strRegex = "";
79
+
80
+ if(isset($arrKeyWords) && is_array($arrKeyWords) && count($arrKeyWords)>0){
81
+
82
+ $count = count($arrKeyWords);
83
+
84
+ if($count==1){
85
+ $strRegex .= "/".$arrKeyWords[0]."/im";
86
+ }
87
+ else{
88
+ for ($i=0; $i <$count ; $i++) {
89
+
90
+ $val = trim($arrKeyWords[$i]);
91
+
92
+ if($i==0){
93
+ $strRegex .= "/(".$val."|";
94
+ }
95
+ elseif ($i==$count-1) {
96
+ $strRegex .= $val.")/im";
97
+ }
98
+ else{
99
+ $strRegex.= $val."|";
100
+ }
101
+ }
102
+ }
103
+ }
104
+ return $strRegex;
105
+ }
106
+
107
+ public function sfsi_plus_regex_forNegative_keywords($arrKeyWords){
108
+
109
+ $strRegex = "";
110
+
111
+ if(isset($arrKeyWords) && is_array($arrKeyWords) && count($arrKeyWords)>0 ){
112
+
113
+ $count = count($arrKeyWords);
114
+
115
+ if($count==1){
116
+ $strRegex .= "/".$arrKeyWords[0]."/i";
117
+ }
118
+ else{
119
+
120
+ for ($i=0; $i <$count ; $i++) {
121
+
122
+ $val = trim($arrKeyWords[$i]);
123
+
124
+ if($i==0){
125
+ $strRegex .= "/".$val."|";
126
+ }
127
+ elseif ($i==$count-1) {
128
+ $strRegex .= $val."/i";
129
+ }
130
+ else{
131
+ $strRegex.= $val."|";
132
+ }
133
+ }
134
+ }
135
+ }
136
+ return $strRegex;
137
+ }
138
+
139
+ public function sfsi_plus_match_separate_word_with_csv_data($seprateWord,$domainname){
140
+
141
+
142
+ $keywordEnglish = $this->sfsi_plus_get_keywordEnglish();
143
+
144
+ $finalKeywordEnglish = array();
145
+
146
+ foreach ($keywordEnglish as $val) {
147
+ if(is_array($val)) {
148
+ array_push($finalKeywordEnglish, $val[0]);
149
+ }
150
+ }
151
+
152
+ $catflag = false;
153
+
154
+ $explode = explode($seprateWord,$domainname);
155
+ $left = trim($explode[0]);
156
+ $right = trim($explode[1]);
157
+
158
+ $leftcatflag = false;
159
+
160
+ if(!empty($left))
161
+ {
162
+ $left = str_split($left);
163
+
164
+ $matchKeyword = ''; $j = 0;
165
+ for($i = (count($left)-1); $i >= 0; $i--)
166
+ {
167
+ $matchKeyword = $left[$i].$matchKeyword;
168
+
169
+ if($j > 0)
170
+ {
171
+ if(in_array($matchKeyword, $finalKeywordEnglish))
172
+ {
173
+ $leftcatflag = true;
174
+ break;
175
+ }
176
+ else
177
+ {
178
+ continue;
179
+ }
180
+ }
181
+ else
182
+ {
183
+ if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
184
+ {
185
+ $leftcatflag = true;
186
+ break;
187
+ }
188
+ }
189
+
190
+ $j++;
191
+ }
192
+ }
193
+
194
+ $rightcatflag = false;
195
+ if(!empty($right))
196
+ {
197
+ $right = str_split($right);
198
+
199
+ $matchKeyword = '';
200
+ for($i = 0; $i < count($right); $i++)
201
+ {
202
+ $matchKeyword .= $right[$i];
203
+
204
+ if($i > 0)
205
+ {
206
+ if(in_array($matchKeyword, $finalKeywordEnglish))
207
+ {
208
+ $rightcatflag = true;
209
+ break;
210
+ }
211
+ else
212
+ {
213
+ continue;
214
+ }
215
+ }
216
+ else
217
+ {
218
+ if(preg_match("/\.|\-|[0-9]/im", $matchKeyword))
219
+ {
220
+ $rightcatflag = true;
221
+ break;
222
+ }
223
+ }
224
+ }
225
+ }
226
+
227
+ if(empty($left) && empty($right))
228
+ {
229
+ $catflag = true;
230
+ }
231
+ else
232
+ {
233
+ if(!empty($left) && !empty($right))
234
+ {
235
+ if($rightcatflag && $leftcatflag)
236
+ {
237
+ $catflag = true;
238
+ }
239
+ }
240
+ elseif(empty($left) && !empty($right))
241
+ {
242
+ if($rightcatflag)
243
+ {
244
+ $catflag = true;
245
+ }
246
+ }
247
+ elseif(!empty($left) && empty($right))
248
+ {
249
+ if($leftcatflag)
250
+ {
251
+ $catflag = true;
252
+ }
253
+ }
254
+ }
255
+
256
+ return $catflag;
257
+ }
258
+
259
+ public function sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$domainname){
260
+
261
+ $boolSeparateWord = false;
262
+
263
+ if(isset($arrSeparateKeywords) && is_array($arrSeparateKeywords) && count($arrSeparateKeywords)>0){
264
+
265
+ foreach ($arrSeparateKeywords as $value) {
266
+
267
+ $val = trim($value);
268
+
269
+ if(isset($value) && strlen($val)>0){
270
+
271
+ if(preg_match("/(".$val.")/im", $domainname)){
272
+
273
+ $boolSeparateWord = $this->sfsi_plus_match_separate_word_with_csv_data($val,$domainname);
274
+
275
+ if($boolSeparateWord) {
276
+ break;
277
+ }
278
+
279
+ }
280
+ }
281
+ }
282
+ }
283
+
284
+ return $boolSeparateWord;
285
+ }
286
+
287
+ public function sfsi_plus_MetaKeywordCheck($arrSeparateKeywords,$domainname){
288
+ $keywordInMeta = false;
289
+ $metaArray = $this->sfsi_plus_GetMetaName($domainname);
290
+ foreach($metaArray as $index=>$meta){
291
+ if($this->sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords, $domainname)){
292
+ $flag = true;
293
+ }
294
+ else if($this->sfsi_plus_SeparateKeywordCheck($arrSeparateKeywords,$domainname)){
295
+ $flag = true;
296
+ }
297
+ }
298
+ return $keywordInMeta;
299
+ }
300
+
301
+ public function sfsi_plus_GetMetaKeywords($domainname){
302
+ $url = get_bloginfo('url');
303
+ $res= wp_remote_get($url);
304
+ $meta_local = array("title"=>array(),"description"=>array(),"keyword"=>array());
305
+ if ( is_array( $res ) && ! is_wp_error( $res ) ) {
306
+ $body = $res['body']; // use the content
307
+ $meta = array();
308
+ if(false==class_exists("DomDocument")) {
309
+ $metas=array();
310
+ preg_match_all( '/\<meta.+name="(\w*)".+content="(.*)"/i', $body, $metas);
311
+ preg_match_all( '/\<meta.+property="og:(\w*)".+content="(.*)"/i', $body, $metas2);
312
+ // $metas[1]=array_merge($metas[1],$metas2[1]);
313
+ // $metas[2]=array_merge($metas[2],$metas2[2]);
314
+ if(isset($metas)&&is_array($metas)&&isset($metas[1])&&isset($metas[2])){
315
+ foreach($metas[1] as $index=>$meta_name){
316
+ if($meta_name==="keywords" && isset($metas[2][$index])) {
317
+ $meta['keywords']=$metas[2][$index];
318
+ }
319
+ if($meta_name === "description" && isset($metas[2][$index])){
320
+ $meta['description']=$metas[2][$index];
321
+ }
322
+ }
323
+ }
324
+ if(isset($metas2)&&is_array($metas2)&&isset($metas2[1])&&isset($metas2[2])){
325
+ foreach($metas2[1] as $index=>$meta_name){
326
+ // var_dump($meta_name,$meta_name === "description" ,$metas2[2][$index]);
327
+ if($meta_name==="keywords" && isset($metas2[2][$index])) {
328
+ $meta[$meta_name]=$metas2[2][$index];
329
+ }
330
+ if($meta_name === "description" && isset($metas2[2][$index])&&!isset($meta[$meta_name])){
331
+ $meta[$meta_name]=$metas2[2][$index];
332
+ }
333
+ }
334
+ }
335
+ // var_dump($meta);die();
336
+ if(isset($meta['keywords'])){
337
+ $meta_local["keyword"]=array_filter(explode(',',$meta['keywords']),function($data){
338
+ return $data!=="";
339
+ });
340
+ }
341
+ if(isset($meta['description'])){
342
+ $meta['description']=preg_replace("/[^A-Za-z ]/", '', strtolower($meta['description']));
343
+ $meta_local["description"]=array_filter(explode( '\s+',$meta['description']),function($data){
344
+ return $data!=="";
345
+ });
346
+ }
347
+ $preg_res=preg_match("/<title>(.+)<\/title>/i", $body, $matches);
348
+ if($preg_res){
349
+ $meta['title']=preg_replace("/[^A-Za-z ]/", '', strtolower($matches[1]));
350
+ $meta_local["title"]=array_filter(explode('\s+',$meta['title']),function($data){
351
+ return $data!=="";
352
+ });
353
+ }
354
+
355
+ }else{
356
+ $doc = new \DOMDocument();
357
+ @$doc->loadHTML($body);
358
+ $nodes = $doc->getElementsByTagName('meta');
359
+ foreach($nodes as $index=>$node){
360
+ if(null!==$node->getAttribute('name')) {
361
+ $meta[$node->getAttribute('name')]=$node->getAttribute('content');
362
+ }elseif(null!==$node->getAttribute('property')){
363
+ $meta[$node->getAttribute('property')]=$node->getAttribute('content');
364
+ }
365
+ }
366
+ $meta['title'] = (null!==$doc->getElementsByTagName('title'))&&count($doc->getElementsByTagName('title'))>0?$doc->getElementsByTagName('title')->item(0)->nodeValue:'';
367
+ if(isset($meta['keywords'])) {
368
+ $meta_local["keyword"]=array_filter(explode(',',$meta['keywords']),function($data){
369
+ return $data!=="";
370
+ });
371
+ }
372
+ if(isset($meta['description'])){
373
+ $meta['description']=preg_replace("/[^A-Za-z ]/", '', strtolower($meta['description']));
374
+ $meta_local["description"]=array_filter(explode( '\s+',$meta['description']),function($data){
375
+ return $data!=="";
376
+ });
377
+ }
378
+ if(count($meta_local["description"])==0 && isset($meta['og:description'])){
379
+ $meta['description']=preg_replace("/[^A-Za-z ]/", '', strtolower($meta['og:description']));
380
+ $meta_local["description"]=array_filter(explode( '\s+',$meta['description']),function($data){
381
+ return $data!=="";
382
+ });
383
+ }
384
+ if(isset($meta['title'])){
385
+ $meta['title']=preg_replace("/[^A-Za-z ]/", '', strtolower($meta['title']));
386
+ // var_dump($meta['title']);die();
387
+ $meta_local["title"]= array_filter(explode('\s+',$meta['title']),function($data){
388
+ return $data!=="";
389
+ });
390
+ }
391
+ }
392
+ }
393
+ return $meta_local;
394
+ }
395
+
396
+ public function sfsi_plus_noBrainerKeywordCheck($arrNoBrainerKeywords,$domainname){
397
+
398
+ $bflag = false;
399
+
400
+ if(isset($arrNoBrainerKeywords) && is_array($arrNoBrainerKeywords) && count($arrNoBrainerKeywords)>0){
401
+
402
+ if(preg_match($this->sfsi_plus_regex_for_keywords($arrNoBrainerKeywords), $domainname)){
403
+ $bflag = true;
404
+ }
405
+ }
406
+ return $bflag;
407
+ }
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_plus_new_notification_cat">
517
+ <div class="sfsi_plus_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_plus_new_notification_cross_cat">X</div>
521
+ </div>
522
+
523
+ <div class="sfsi_plus_new_notification_body_link_cat">
524
+ <a href="'.$siteLink.'" target="_blank">
525
+ <div class="sfsi_plus_new_notification_body_cat">
526
+ <div class="sfsi_plus_new_notification_image_cat">
527
+ <img src="'.$bannerImage.'" id="newImg" />
528
+ </div>
529
+ </div>
530
+ </a>
531
+ <div class="sfsiplus_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,274 +1,274 @@
1
- <?php
2
-
3
- /* show a pop on the as per user chose under section 7 */
4
- function sfsi_plus_frontPopUp()
5
- {
6
- ob_start();
7
- echo sfsi_plus_FrontPopupDiv();
8
- echo $output = ob_get_clean();
9
- }
10
-
11
- /* check where to be pop-shown */
12
- function sfsi_plus_check_PopUp($content = null)
13
- {
14
-
15
- global $post;
16
- global $wpdb;
17
- $sfsi_plus_section7_options = unserialize(get_option('sfsi_plus_section7_options', false));
18
- if ($sfsi_plus_section7_options['sfsi_plus_Show_popupOn'] == "blogpage") {
19
- if (!is_feed() && !is_home() && !is_page()) {
20
- $content = sfsi_plus_frontPopUp() . $content;
21
- }
22
- } else if ($sfsi_plus_section7_options['sfsi_plus_Show_popupOn'] == "selectedpage") {
23
- if (!empty($post->ID) && !empty($sfsi_plus_section7_options['sfsi_plus_Show_popupOn_PageIDs'])) {
24
- if (is_page() && in_array($post->ID, unserialize($sfsi_plus_section7_options['sfsi_plus_Show_popupOn_PageIDs']))) {
25
- $content = sfsi_plus_frontPopUp() . $content;
26
- }
27
- }
28
- } else if ($sfsi_plus_section7_options['sfsi_plus_Show_popupOn'] == "everypage") {
29
- $content = sfsi_plus_frontPopUp() . $content;
30
- }
31
-
32
- /* check for pop times */
33
- if ($sfsi_plus_section7_options['sfsi_plus_Shown_pop'] == "once") {
34
- $time_popUp = (int) $sfsi_plus_section7_options['sfsi_plus_Shown_popupOnceTime'];
35
- $time_popUp = $time_popUp * 1000;
36
- ob_start(); ?>
37
-
38
- <script>
39
-
40
- </script>
41
- <script>
42
- window.addEventListener('sfsi_plus_functions_loaded', function() {
43
- if (typeof sfsi_plus_time_pop_up == 'function') {
44
- sfsi_plus_time_pop_up(<?php echo $time_popUp ?>);
45
-
46
- }
47
- })
48
- </script>
49
- <?php
50
- echo ob_get_clean();
51
- return $content;
52
- }
53
-
54
- if ($sfsi_plus_section7_options['sfsi_plus_Shown_pop'] == "ETscroll") {
55
- $time_popUp = (int) $sfsi_plus_section7_options['sfsi_plus_Shown_popupOnceTime'];
56
- $time_popUp = $time_popUp * 1000;
57
- ob_start();
58
- ?>
59
- <script>
60
- window.addEventListener('sfsi_plus_functions_loaded', function() {
61
- if (typeof sfsi_plus_responsive_toggle == 'function') {
62
- sfsi_plus_responsive_toggle(<?php echo $time_popUp ?>);
63
- console.log('sfsi_plus_responsive_toggle');
64
-
65
- }
66
- })
67
- </script>
68
-
69
- <?php
70
- echo ob_get_clean();
71
- }
72
-
73
- if ($sfsi_plus_section7_options['sfsi_plus_Shown_pop'] == "LimitPopUp") {
74
- $time_popUp = (int) $sfsi_plus_section7_options['sfsi_plus_Shown_popuplimitPerUserTime'];
75
- $end_time = (int) $_COOKIE['sfsi_socialPopUp'] + ($time_popUp * 60);
76
- $time_popUp = $time_popUp * 1000;
77
-
78
- if (!empty($end_time)) {
79
- if ($end_time < time()) {
80
- ?>
81
- <script>
82
-
83
-
84
- window.addEventListener('sfsi_plus_functions_loaded',function() {
85
- if (typeof sfsi_social_pop_up == 'function') {
86
- sfsi_social_pop_up(<?php echo $time_popUp ?>);
87
- console.log('sfsi_social_pop_up');
88
- }
89
- })
90
- </script>
91
- <script>
92
-
93
- </script>
94
- <?php
95
- }
96
- }
97
- echo ob_get_clean();
98
- }
99
- return $content;
100
- }
101
- /* make front end pop div */
102
- function sfsi_plus_FrontPopupDiv()
103
- {
104
- global $wpdb;
105
- /* get all settings for icons saved in admin */
106
- $sfsi_plus_section1_options = unserialize(get_option('sfsi_plus_section1_options', false));
107
- $custom_i = unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
108
- if ($sfsi_plus_section1_options['sfsi_plus_rss_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_email_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_facebook_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_twitter_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_youtube_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_pinterest_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_linkedin_display'] == 'no' && empty($custom_i)) {
109
- $icons = '';
110
- return $icons;
111
- exit;
112
- }
113
- $sfsi_plus_section7_options = unserialize(get_option('sfsi_plus_section7_options', false));
114
- $sfsi_section5 = unserialize(get_option('sfsi_plus_section5_options', false));
115
- $sfsi_section4 = unserialize(get_option('sfsi_plus_section4_options', false));
116
-
117
- /* calculate the width and icons display alignments */
118
- $heading_text = (isset($sfsi_plus_section7_options['sfsi_plus_popup_text'])) ? __($sfsi_plus_section7_options['sfsi_plus_popup_text'], SFSI_PLUS_DOMAIN) : __('Enjoy this site? Please follow and like us!', SFSI_PLUS_DOMAIN);
119
- $div_bgColor = (isset($sfsi_plus_section7_options['sfsi_plus_popup_background_color'])) ? $sfsi_plus_section7_options['sfsi_plus_popup_background_color'] : '#fff';
120
- $div_FontFamily = (isset($sfsi_plus_section7_options['sfsi_plus_popup_font'])) ? $sfsi_plus_section7_options['sfsi_plus_popup_font'] : 'Arial';
121
- $div_BorderColor = (isset($sfsi_plus_section7_options['sfsi_plus_popup_border_color'])) ? $sfsi_plus_section7_options['sfsi_plus_popup_border_color'] : '#d3d3d3';
122
- $div_Fonttyle = (isset($sfsi_plus_section7_options['sfsi_plus_popup_fontStyle'])) ? $sfsi_plus_section7_options['sfsi_plus_popup_fontStyle'] : 'normal';
123
- $div_FontColor = (isset($sfsi_plus_section7_options['sfsi_plus_popup_fontColor'])) ? $sfsi_plus_section7_options['sfsi_plus_popup_fontColor'] : '#000';
124
- $div_FontSize = (isset($sfsi_plus_section7_options['sfsi_plus_popup_fontSize'])) ? $sfsi_plus_section7_options['sfsi_plus_popup_fontSize'] : '26';
125
- $div_BorderTheekness = (isset($sfsi_plus_section7_options['sfsi_plus_popup_border_thickness'])) ? $sfsi_plus_section7_options['sfsi_plus_popup_border_thickness'] : '1';
126
- $div_Shadow = (isset($sfsi_plus_section7_options['sfsi_plus_popup_border_shadow']) && $sfsi_plus_section7_options['sfsi_plus_popup_border_shadow'] == "yes") ? $sfsi_plus_section7_options['sfsi_plus_popup_border_thickness'] : 'no';
127
-
128
- $style = "background-color:" . $div_bgColor . ";border:" . $div_BorderTheekness . "px solid" . $div_BorderColor . "; font-style:" . $div_Fonttyle . ";color:" . $div_FontColor;
129
- if ($sfsi_plus_section7_options['sfsi_plus_popup_border_shadow'] == "yes") {
130
- $style .= ";box-shadow:12px 30px 18px #CCCCCC;";
131
- }
132
-
133
- $h_style = "font-family:" . $div_FontFamily . ";font-style:" . $div_Fonttyle . ";color:" . $div_FontColor . ";font-size:" . $div_FontSize . "px";
134
- /* get all icons including custom icons */
135
- if (!isset($sfsi_section5['sfsi_plus_houzzIcon_order'])) {
136
- $sfsi_section5['sfsi_plus_houzzIcon_order'] = 11;
137
- }
138
- if (!isset($sfsi_section5['sfsi_plus_okIcon_order'])) {
139
- $sfsi_section5['sfsi_plus_okIcon_order'] = 22;
140
- }
141
- if (!isset($sfsi_section5['sfsi_plus_telegramIcon_order'])) {
142
- $sfsi_section5['sfsi_plus_telegramIcon_order'] = 23;
143
- }
144
- if (!isset($sfsi_section5['sfsi_plus_vkIcon_order'])) {
145
- $sfsi_section5['sfsi_plus_vkIcon_order'] = 24;
146
- }
147
- if (!isset($sfsi_section5['sfsi_plus_wechatIcon_order'])) {
148
- $sfsi_section5['sfsi_plus_wechatIcon_order'] = 26;
149
- }
150
- if (!isset($sfsi_section5['sfsi_plus_weiboIcon_order'])) {
151
- $sfsi_section5['sfsi_plus_weiboIcon_order'] = 25;
152
- }
153
- $custom_icons_order = unserialize($sfsi_section5['sfsi_plus_CustomIcons_order']);
154
- $icons_order = array(
155
- $sfsi_section5['sfsi_plus_rssIcon_order'] => 'rss',
156
- $sfsi_section5['sfsi_plus_emailIcon_order'] => 'email',
157
- $sfsi_section5['sfsi_plus_facebookIcon_order'] => 'facebook',
158
- $sfsi_section5['sfsi_plus_twitterIcon_order'] => 'twitter',
159
- $sfsi_section5['sfsi_plus_youtubeIcon_order'] => 'youtube',
160
- $sfsi_section5['sfsi_plus_pinterestIcon_order'] => 'pinterest',
161
- $sfsi_section5['sfsi_plus_linkedinIcon_order'] => 'linkedin',
162
- $sfsi_section5['sfsi_plus_instagramIcon_order'] => 'instagram',
163
- $sfsi_section5['sfsi_plus_okIcon_order'] => 'ok',
164
- $sfsi_section5['sfsi_plus_telegramIcon_order'] => 'telegram',
165
- $sfsi_section5['sfsi_plus_vkIcon_order'] => 'vk',
166
- $sfsi_section5['sfsi_plus_weiboIcon_order'] => 'weibo',
167
- $sfsi_section5['sfsi_plus_wechatIcon_order'] => 'wechat',
168
- (isset($sfsi_section5['sfsi_plus_houzzIcon_order']))
169
- ? $sfsi_section5['sfsi_plus_houzzIcon_order']
170
- : 11 => 'houzz'
171
- );
172
- $icons = array();
173
- $elements = array();
174
- $icons = unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
175
- if (is_array($icons)) $elements = array_keys($icons);
176
- $cnt = 0;
177
- $total = isset($custom_icons_order) && is_array($custom_icons_order) ? count($custom_icons_order) : 0;
178
- if (!empty($icons) && is_array($icons)) {
179
- foreach ($icons as $cn => $c_icons) {
180
- if (is_array($custom_icons_order)) :
181
- if (in_array($custom_icons_order[$cnt]['ele'], $elements)) :
182
- $key = key($elements);
183
- unset($elements[$key]);
184
- $icons_order[$custom_icons_order[$cnt]['order']] = array('ele' => $cn, 'img' => $c_icons);
185
- else :
186
- $icons_order[] = array('ele' => $cn, 'img' => $c_icons);
187
- endif;
188
- $cnt++;
189
- else :
190
- $icons_order[] = array('ele' => $cn, 'img' => $c_icons);
191
- endif;
192
- }
193
- }
194
- ksort($icons_order);/* short icons in order to display */
195
-
196
- $icons = '<div class="sfsi_plus_outr_div" > <div class="sfsi_plus_FrntInner" style="' . $style . '">';
197
- $icons .= '<div class="sfsiclpupwpr" onclick="sfsiplushidemepopup();"><img src="' . SFSI_PLUS_PLUGURL . 'images/close.png" /></div>';
198
-
199
- if (!empty($heading_text)) {
200
- $icons .= '<h2 style="' . $h_style . '">' . $heading_text . '</h2>';
201
- }
202
-
203
- $ulmargin = "";
204
- if ($sfsi_section4['sfsi_plus_display_counts'] == "no") {
205
- $ulmargin = "margin-bottom:0px";
206
- }
207
-
208
- /* make icons with all settings saved in admin */
209
- $icons .= '<ul style="' . $ulmargin . '">';
210
- foreach ($icons_order as $index => $icn) :
211
-
212
- if (is_array($icn)) {
213
- $icon_arry = $icn;
214
- $icn = "custom";
215
- }
216
- switch ($icn): case 'rss':
217
- if ($sfsi_plus_section1_options['sfsi_plus_rss_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('rss', 1) . "</li>";
218
- break;
219
- case 'email':
220
- if ($sfsi_plus_section1_options['sfsi_plus_email_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('email', 1) . "</li>";
221
- break;
222
- case 'facebook':
223
- if ($sfsi_plus_section1_options['sfsi_plus_facebook_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('facebook', 1) . "</li>";
224
- break;
225
-
226
- case 'twitter':
227
- if ($sfsi_plus_section1_options['sfsi_plus_twitter_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('twitter', 1) . "</li>";
228
- break;
229
- case 'youtube':
230
- if ($sfsi_plus_section1_options['sfsi_plus_youtube_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('youtube', 1) . "</li>";
231
- break;
232
- case 'pinterest':
233
- if ($sfsi_plus_section1_options['sfsi_plus_pinterest_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('pinterest', 1) . "</li>";
234
- break;
235
- case 'linkedin':
236
- if ($sfsi_plus_section1_options['sfsi_plus_linkedin_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('linkedin', 1) . "</li>";
237
- break;
238
- case 'instagram':
239
- if ($sfsi_plus_section1_options['sfsi_plus_instagram_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('instagram', 1) . "</li>";
240
- break;
241
- case 'houzz':
242
- if (
243
- isset($sfsi_plus_section1_options['sfsi_plus_houzz_display']) &&
244
- $sfsi_plus_section1_options['sfsi_plus_houzz_display'] == 'yes'
245
- ) {
246
- $icons .= "<li>" . sfsi_plus_prepairIcons('houzz', 1) . "</li>";
247
- }
248
- break;
249
- case 'ok':
250
- if (isset($sfsi_plus_section1_options['sfsi_plus_ok_display']) && $sfsi_plus_section1_options['sfsi_plus_ok_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('ok', 1) . "</li>";
251
- break;
252
- case 'telegram':
253
- if (isset($sfsi_plus_section1_options['sfsi_plus_telegram_display']) && $sfsi_plus_section1_options['sfsi_plus_telegram_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('telegram', 1) . "</li>";
254
- break;
255
- case 'vk':
256
- if (isset($sfsi_plus_section1_options['sfsi_plus_vk_display']) && $sfsi_plus_section1_options['sfsi_plus_vk_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('vk', 1) . "</li>";
257
- break;
258
- case 'weibo':
259
- if (isset($sfsi_plus_section1_options['sfsi_plus_weibo_display']) && $sfsi_plus_section1_options['sfsi_plus_weibo_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('weibo', 1) . "</li>";
260
- break;
261
- case 'wechat':
262
- if (isset($sfsi_plus_section1_options['sfsi_plus_wechat_display']) && $sfsi_plus_section1_options['sfsi_plus_wechat_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('wechat', 1) . "</li>";
263
- break;
264
- case 'custom':
265
- $icons .= "<li>" . sfsi_plus_prepairIcons($icon_arry['ele'], 1) . "</li>";
266
- break;
267
- endswitch;
268
- endforeach;
269
- $icons .= '</ul></div ></div >';
270
-
271
- return $icons;
272
- }
273
-
274
  ?>
1
+ <?php
2
+
3
+ /* show a pop on the as per user chose under section 7 */
4
+ function sfsi_plus_frontPopUp()
5
+ {
6
+ ob_start();
7
+ echo sfsi_plus_FrontPopupDiv();
8
+ echo $output = ob_get_clean();
9
+ }
10
+
11
+ /* check where to be pop-shown */
12
+ function sfsi_plus_check_PopUp($content = null)
13
+ {
14
+
15
+ global $post;
16
+ global $wpdb;
17
+ $sfsi_plus_section7_options = unserialize(get_option('sfsi_plus_section7_options', false));
18
+ if ($sfsi_plus_section7_options['sfsi_plus_Show_popupOn'] == "blogpage") {
19
+ if (!is_feed() && !is_home() && !is_page()) {
20
+ $content = sfsi_plus_frontPopUp() . $content;
21
+ }
22
+ } else if ($sfsi_plus_section7_options['sfsi_plus_Show_popupOn'] == "selectedpage") {
23
+ if (!empty($post->ID) && !empty($sfsi_plus_section7_options['sfsi_plus_Show_popupOn_PageIDs'])) {
24
+ if (is_page() && in_array($post->ID, unserialize($sfsi_plus_section7_options['sfsi_plus_Show_popupOn_PageIDs']))) {
25
+ $content = sfsi_plus_frontPopUp() . $content;
26
+ }
27
+ }
28
+ } else if ($sfsi_plus_section7_options['sfsi_plus_Show_popupOn'] == "everypage") {
29
+ $content = sfsi_plus_frontPopUp() . $content;
30
+ }
31
+
32
+ /* check for pop times */
33
+ if ($sfsi_plus_section7_options['sfsi_plus_Shown_pop'] == "once") {
34
+ $time_popUp = (int) $sfsi_plus_section7_options['sfsi_plus_Shown_popupOnceTime'];
35
+ $time_popUp = $time_popUp * 1000;
36
+ ob_start(); ?>
37
+
38
+ <script>
39
+
40
+ </script>
41
+ <script>
42
+ window.addEventListener('sfsi_plus_functions_loaded', function() {
43
+ if (typeof sfsi_plus_time_pop_up == 'function') {
44
+ sfsi_plus_time_pop_up(<?php echo $time_popUp ?>);
45
+
46
+ }
47
+ })
48
+ </script>
49
+ <?php
50
+ echo ob_get_clean();
51
+ return $content;
52
+ }
53
+
54
+ if ($sfsi_plus_section7_options['sfsi_plus_Shown_pop'] == "ETscroll") {
55
+ $time_popUp = (int) $sfsi_plus_section7_options['sfsi_plus_Shown_popupOnceTime'];
56
+ $time_popUp = $time_popUp * 1000;
57
+ ob_start();
58
+ ?>
59
+ <script>
60
+ window.addEventListener('sfsi_plus_functions_loaded', function() {
61
+ if (typeof sfsi_plus_responsive_toggle == 'function') {
62
+ sfsi_plus_responsive_toggle(<?php echo $time_popUp ?>);
63
+ console.log('sfsi_plus_responsive_toggle');
64
+
65
+ }
66
+ })
67
+ </script>
68
+
69
+ <?php
70
+ echo ob_get_clean();
71
+ }
72
+
73
+ if ($sfsi_plus_section7_options['sfsi_plus_Shown_pop'] == "LimitPopUp") {
74
+ $time_popUp = (int) $sfsi_plus_section7_options['sfsi_plus_Shown_popuplimitPerUserTime'];
75
+ $end_time = (int) $_COOKIE['sfsi_socialPopUp'] + ($time_popUp * 60);
76
+ $time_popUp = $time_popUp * 1000;
77
+
78
+ if (!empty($end_time)) {
79
+ if ($end_time < time()) {
80
+ ?>
81
+ <script>
82
+
83
+
84
+ window.addEventListener('sfsi_plus_functions_loaded',function() {
85
+ if (typeof sfsi_social_pop_up == 'function') {
86
+ sfsi_social_pop_up(<?php echo $time_popUp ?>);
87
+ console.log('sfsi_social_pop_up');
88
+ }
89
+ })
90
+ </script>
91
+ <script>
92
+
93
+ </script>
94
+ <?php
95
+ }
96
+ }
97
+ echo ob_get_clean();
98
+ }
99
+ return $content;
100
+ }
101
+ /* make front end pop div */
102
+ function sfsi_plus_FrontPopupDiv()
103
+ {
104
+ global $wpdb;
105
+ /* get all settings for icons saved in admin */
106
+ $sfsi_plus_section1_options = unserialize(get_option('sfsi_plus_section1_options', false));
107
+ $custom_i = unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
108
+ if ($sfsi_plus_section1_options['sfsi_plus_rss_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_email_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_facebook_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_twitter_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_youtube_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_pinterest_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_linkedin_display'] == 'no' && empty($custom_i)) {
109
+ $icons = '';
110
+ return $icons;
111
+ exit;
112
+ }
113
+ $sfsi_plus_section7_options = unserialize(get_option('sfsi_plus_section7_options', false));
114
+ $sfsi_section5 = unserialize(get_option('sfsi_plus_section5_options', false));
115
+ $sfsi_section4 = unserialize(get_option('sfsi_plus_section4_options', false));
116
+
117
+ /* calculate the width and icons display alignments */
118
+ $heading_text = (isset($sfsi_plus_section7_options['sfsi_plus_popup_text'])) ? __($sfsi_plus_section7_options['sfsi_plus_popup_text'], SFSI_PLUS_DOMAIN) : __('Enjoy this site? Please follow and like us!', SFSI_PLUS_DOMAIN);
119
+ $div_bgColor = (isset($sfsi_plus_section7_options['sfsi_plus_popup_background_color'])) ? $sfsi_plus_section7_options['sfsi_plus_popup_background_color'] : '#fff';
120
+ $div_FontFamily = (isset($sfsi_plus_section7_options['sfsi_plus_popup_font'])) ? $sfsi_plus_section7_options['sfsi_plus_popup_font'] : 'Arial';
121
+ $div_BorderColor = (isset($sfsi_plus_section7_options['sfsi_plus_popup_border_color'])) ? $sfsi_plus_section7_options['sfsi_plus_popup_border_color'] : '#d3d3d3';
122
+ $div_Fonttyle = (isset($sfsi_plus_section7_options['sfsi_plus_popup_fontStyle'])) ? $sfsi_plus_section7_options['sfsi_plus_popup_fontStyle'] : 'normal';
123
+ $div_FontColor = (isset($sfsi_plus_section7_options['sfsi_plus_popup_fontColor'])) ? $sfsi_plus_section7_options['sfsi_plus_popup_fontColor'] : '#000';
124
+ $div_FontSize = (isset($sfsi_plus_section7_options['sfsi_plus_popup_fontSize'])) ? $sfsi_plus_section7_options['sfsi_plus_popup_fontSize'] : '26';
125
+ $div_BorderTheekness = (isset($sfsi_plus_section7_options['sfsi_plus_popup_border_thickness'])) ? $sfsi_plus_section7_options['sfsi_plus_popup_border_thickness'] : '1';
126
+ $div_Shadow = (isset($sfsi_plus_section7_options['sfsi_plus_popup_border_shadow']) && $sfsi_plus_section7_options['sfsi_plus_popup_border_shadow'] == "yes") ? $sfsi_plus_section7_options['sfsi_plus_popup_border_thickness'] : 'no';
127
+
128
+ $style = "background-color:" . $div_bgColor . ";border:" . $div_BorderTheekness . "px solid" . $div_BorderColor . "; font-style:" . $div_Fonttyle . ";color:" . $div_FontColor;
129
+ if ($sfsi_plus_section7_options['sfsi_plus_popup_border_shadow'] == "yes") {
130
+ $style .= ";box-shadow:12px 30px 18px #CCCCCC;";
131
+ }
132
+
133
+ $h_style = "font-family:" . $div_FontFamily . ";font-style:" . $div_Fonttyle . ";color:" . $div_FontColor . ";font-size:" . $div_FontSize . "px";
134
+ /* get all icons including custom icons */
135
+ if (!isset($sfsi_section5['sfsi_plus_houzzIcon_order'])) {
136
+ $sfsi_section5['sfsi_plus_houzzIcon_order'] = 11;
137
+ }
138
+ if (!isset($sfsi_section5['sfsi_plus_okIcon_order'])) {
139
+ $sfsi_section5['sfsi_plus_okIcon_order'] = 22;
140
+ }
141
+ if (!isset($sfsi_section5['sfsi_plus_telegramIcon_order'])) {
142
+ $sfsi_section5['sfsi_plus_telegramIcon_order'] = 23;
143
+ }
144
+ if (!isset($sfsi_section5['sfsi_plus_vkIcon_order'])) {
145
+ $sfsi_section5['sfsi_plus_vkIcon_order'] = 24;
146
+ }
147
+ if (!isset($sfsi_section5['sfsi_plus_wechatIcon_order'])) {
148
+ $sfsi_section5['sfsi_plus_wechatIcon_order'] = 26;
149
+ }
150
+ if (!isset($sfsi_section5['sfsi_plus_weiboIcon_order'])) {
151
+ $sfsi_section5['sfsi_plus_weiboIcon_order'] = 25;
152
+ }
153
+ $custom_icons_order = unserialize($sfsi_section5['sfsi_plus_CustomIcons_order']);
154
+ $icons_order = array(
155
+ $sfsi_section5['sfsi_plus_rssIcon_order'] => 'rss',
156
+ $sfsi_section5['sfsi_plus_emailIcon_order'] => 'email',
157
+ $sfsi_section5['sfsi_plus_facebookIcon_order'] => 'facebook',
158
+ $sfsi_section5['sfsi_plus_twitterIcon_order'] => 'twitter',
159
+ $sfsi_section5['sfsi_plus_youtubeIcon_order'] => 'youtube',
160
+ $sfsi_section5['sfsi_plus_pinterestIcon_order'] => 'pinterest',
161
+ $sfsi_section5['sfsi_plus_linkedinIcon_order'] => 'linkedin',
162
+ $sfsi_section5['sfsi_plus_instagramIcon_order'] => 'instagram',
163
+ $sfsi_section5['sfsi_plus_okIcon_order'] => 'ok',
164
+ $sfsi_section5['sfsi_plus_telegramIcon_order'] => 'telegram',
165
+ $sfsi_section5['sfsi_plus_vkIcon_order'] => 'vk',
166
+ $sfsi_section5['sfsi_plus_weiboIcon_order'] => 'weibo',
167
+ $sfsi_section5['sfsi_plus_wechatIcon_order'] => 'wechat',
168
+ (isset($sfsi_section5['sfsi_plus_houzzIcon_order']))
169
+ ? $sfsi_section5['sfsi_plus_houzzIcon_order']
170
+ : 11 => 'houzz'
171
+ );
172
+ $icons = array();
173
+ $elements = array();
174
+ $icons = unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
175
+ if (is_array($icons)) $elements = array_keys($icons);
176
+ $cnt = 0;
177
+ $total = isset($custom_icons_order) && is_array($custom_icons_order) ? count($custom_icons_order) : 0;
178
+ if (!empty($icons) && is_array($icons)) {
179
+ foreach ($icons as $cn => $c_icons) {
180
+ if (is_array($custom_icons_order)) :
181
+ if (in_array($custom_icons_order[$cnt]['ele'], $elements)) :
182
+ $key = key($elements);
183
+ unset($elements[$key]);
184
+ $icons_order[$custom_icons_order[$cnt]['order']] = array('ele' => $cn, 'img' => $c_icons);
185
+ else :
186
+ $icons_order[] = array('ele' => $cn, 'img' => $c_icons);
187
+ endif;
188
+ $cnt++;
189
+ else :
190
+ $icons_order[] = array('ele' => $cn, 'img' => $c_icons);
191
+ endif;
192
+ }
193
+ }
194
+ ksort($icons_order);/* short icons in order to display */
195
+
196
+ $icons = '<div class="sfsi_plus_outr_div" > <div class="sfsi_plus_FrntInner" style="' . $style . '">';
197
+ $icons .= '<div class="sfsiclpupwpr" onclick="sfsiplushidemepopup();"><img src="' . SFSI_PLUS_PLUGURL . 'images/close.png" /></div>';
198
+
199
+ if (!empty($heading_text)) {
200
+ $icons .= '<h2 style="' . $h_style . '">' . $heading_text . '</h2>';
201
+ }
202
+
203
+ $ulmargin = "";
204
+ if ($sfsi_section4['sfsi_plus_display_counts'] == "no") {
205
+ $ulmargin = "margin-bottom:0px";
206
+ }
207
+
208
+ /* make icons with all settings saved in admin */
209
+ $icons .= '<ul style="' . $ulmargin . '">';
210
+ foreach ($icons_order as $index => $icn) :
211
+
212
+ if (is_array($icn)) {
213
+ $icon_arry = $icn;
214
+ $icn = "custom";
215
+ }
216
+ switch ($icn): case 'rss':
217
+ if ($sfsi_plus_section1_options['sfsi_plus_rss_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('rss', 1) . "</li>";
218
+ break;
219
+ case 'email':
220
+ if ($sfsi_plus_section1_options['sfsi_plus_email_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('email', 1) . "</li>";
221
+ break;
222
+ case 'facebook':
223
+ if ($sfsi_plus_section1_options['sfsi_plus_facebook_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('facebook', 1) . "</li>";
224
+ break;
225
+
226
+ case 'twitter':
227
+ if ($sfsi_plus_section1_options['sfsi_plus_twitter_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('twitter', 1) . "</li>";
228
+ break;
229
+ case 'youtube':
230
+ if ($sfsi_plus_section1_options['sfsi_plus_youtube_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('youtube', 1) . "</li>";
231
+ break;
232
+ case 'pinterest':
233
+ if ($sfsi_plus_section1_options['sfsi_plus_pinterest_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('pinterest', 1) . "</li>";
234
+ break;
235
+ case 'linkedin':
236
+ if ($sfsi_plus_section1_options['sfsi_plus_linkedin_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('linkedin', 1) . "</li>";
237
+ break;
238
+ case 'instagram':
239
+ if ($sfsi_plus_section1_options['sfsi_plus_instagram_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('instagram', 1) . "</li>";
240
+ break;
241
+ case 'houzz':
242
+ if (
243
+ isset($sfsi_plus_section1_options['sfsi_plus_houzz_display']) &&
244
+ $sfsi_plus_section1_options['sfsi_plus_houzz_display'] == 'yes'
245
+ ) {
246
+ $icons .= "<li>" . sfsi_plus_prepairIcons('houzz', 1) . "</li>";
247
+ }
248
+ break;
249
+ case 'ok':
250
+ if (isset($sfsi_plus_section1_options['sfsi_plus_ok_display']) && $sfsi_plus_section1_options['sfsi_plus_ok_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('ok', 1) . "</li>";
251
+ break;
252
+ case 'telegram':
253
+ if (isset($sfsi_plus_section1_options['sfsi_plus_telegram_display']) && $sfsi_plus_section1_options['sfsi_plus_telegram_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('telegram', 1) . "</li>";
254
+ break;
255
+ case 'vk':
256
+ if (isset($sfsi_plus_section1_options['sfsi_plus_vk_display']) && $sfsi_plus_section1_options['sfsi_plus_vk_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('vk', 1) . "</li>";
257
+ break;
258
+ case 'weibo':
259
+ if (isset($sfsi_plus_section1_options['sfsi_plus_weibo_display']) && $sfsi_plus_section1_options['sfsi_plus_weibo_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('weibo', 1) . "</li>";
260
+ break;
261
+ case 'wechat':
262
+ if (isset($sfsi_plus_section1_options['sfsi_plus_wechat_display']) && $sfsi_plus_section1_options['sfsi_plus_wechat_display'] == 'yes') $icons .= "<li>" . sfsi_plus_prepairIcons('wechat', 1) . "</li>";
263
+ break;
264
+ case 'custom':
265
+ $icons .= "<li>" . sfsi_plus_prepairIcons($icon_arry['ele'], 1) . "</li>";
266
+ break;
267
+ endswitch;
268
+ endforeach;
269
+ $icons .= '</ul></div ></div >';
270
+
271
+ return $icons;
272
+ }
273
+
274
  ?>
libs/controllers/sfsi_socialhelper.php CHANGED
@@ -1,541 +1,543 @@
1
- <?php
2
- /* social helper class include all function which are used to intract with */
3
- class sfsi_plus_SocialHelper
4
- {
5
- private $url,$timeout=10;
6
-
7
- /* get twitter followers */
8
- function sfsi_get_tweets($username,$tw_settings)
9
- {
10
- require_once(SFSI_PLUS_DOCROOT.'/helpers/twitteroauth/twiiterCount.php');
11
- return sfsi_plus_twitter_followers();
12
- }
13
-
14
- /* get linkedIn counts */
15
- function sfsi_get_linkedin($url)
16
- {
17
- $json_string = $this->file_get_contents_curl(
18
- 'https://www.linkedin.com/countserv/count/share?format=json&url='.$url
19
- );
20
- $json = json_decode($json_string, true);
21
- return isset($json['count'])? intval($json['count']):0;
22
- }
23
-
24
- /* get linkedIn follower */
25
- function sfsi_getlinkedin_follower($sfsi_plus_ln_company,$APIsettings)
26
- {
27
- require_once(SFSI_PLUS_DOCROOT.'/helpers/linkedin-api/linkedin-api.php');
28
-
29
- // $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http";
30
- // $url = $scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
31
-
32
- $url = sfsi_plus_get_current_url();
33
-
34
- $linkedin = new Plus_LinkedIn(
35
- $APIsettings['sfsi_plus_ln_api_key'],
36
- $APIsettings['sfsi_plus_ln_secret_key'],
37
- $APIsettings['sfsi_plus_ln_oAuth_user_token'],
38
- $url
39
- );
40
- $followers = $linkedin->getCompanyFollowersByName($sfsi_plus_ln_company);
41
- if (strpos($followers, '404') === false)
42
- { return strip_tags($followers); }
43
- else
44
- { return 0; }
45
- }
46
-
47
- /* get facebook likes */
48
- function sfsi_get_fb($url)
49
- {
50
- $count = 0;
51
- $json_string = $this->file_get_contents_curl('https://graph.facebook.com/?id='.$url);
52
- $json = json_decode($json_string);
53
-
54
- if(isset($json) && isset($json->share) && isset($json->share->share_count)){
55
- $count = $json->share->share_count;
56
- }
57
- return $count;
58
- }
59
-
60
- /* get facebook page likes */
61
- function sfsi_get_fb_pagelike($url)
62
- {
63
- $appid = '954871214567352';
64
- $appsecret = 'a780eb3d3687a084d6e5919585cc6a12';
65
- $json_url ='https://graph.facebook.com/'.$url.'?fields=fan_count&access_token='.$appid.'|'.$appsecret;
66
- $json_string = $this->file_get_contents_curl($json_url);
67
- // return $json_string;
68
- // var_dump($json_string);die();
69
- $json = json_decode($json_string, true);
70
- return isset($json['fan_count'])? $json['fan_count']:0;
71
- }
72
-
73
-
74
- /* get youtube subscribers */
75
- function sfsi_get_youtube($user)
76
- {
77
- if($user == 'SpecificFeeds')
78
- {
79
- $sfsi_plus_section4_options = unserialize(get_option('sfsi_plus_section4_options',false));
80
- $user = (
81
- isset($sfsi_plus_section4_options['sfsi_plus_youtube_channelId']) &&
82
- !empty($sfsi_plus_section4_options['sfsi_plus_youtube_channelId'])
83
- ) ? $sfsi_plus_section4_options['sfsi_plus_youtube_channelId'] : 'UCYQyWnJPrY4XY3Avc7BU9aA';
84
-
85
- $xmlData = $this->file_get_contents_curl('https://www.googleapis.com/youtube/v3/channels?part=statistics&id='.$user.'&key=AIzaSyA_SqAZGCpZ22vHzOUr3St5xf5XMy78oTY');
86
- }
87
- else
88
- {
89
- $xmlData = $this->file_get_contents_curl('https://www.googleapis.com/youtube/v3/channels?part=statistics&forUsername='.$user.'&key=AIzaSyA_SqAZGCpZ22vHzOUr3St5xf5XMy78oTY');
90
- }
91
-
92
- if($xmlData)
93
- {
94
- $xmlData = json_decode($xmlData);
95
- if(
96
- isset($xmlData->items) &&
97
- !empty($xmlData->items)
98
- )
99
- {
100
- $subs = $xmlData->items[0]->statistics->subscriberCount;
101
- $subs = $this->format_num($subs);
102
- }
103
- else
104
- {
105
- $subs=0;
106
- }
107
-
108
- }
109
- else
110
- {
111
- $subs=0;
112
- }
113
- return $subs;
114
- }
115
-
116
-
117
- /* get pinit counts */
118
- function sfsi_get_pinterest($url)
119
- {
120
- $return_data = $this->file_get_contents_curl('https://api.pinterest.com/v1/urls/count.json?callback=receiveCount&url='.$url);
121
- $json_string = preg_replace('/^receiveCount\((.*)\)$/', "\\1", $return_data);
122
- $json = json_decode($json_string, true);
123
- return isset($json['count'])?intval($json['count']):0;
124
- }
125
-
126
- /* get pinit counts for a user */
127
- function get_UsersPins($user_name,$board)
128
- {
129
- $query=$user_name.'/'.$board;
130
- $url_respon=$this->sfsi_get_http_response_code('https://api.pinterest.com/v3/pidgets/boards/'.$query.'/pins/');
131
- if($url_respon!=404)
132
- {
133
- $return_data = $this->file_get_contents_curl('https://api.pinterest.com/v3/pidgets/boards/'.$query.'/pins/');
134
- $json_string = preg_replace('/^receiveCount\((.*)\)$/', "\\1", $return_data);
135
- $json = json_decode($json_string, true);
136
- }
137
- else
138
- {
139
- $json['data']['user']['pin_count']=0;
140
- }
141
- return isset($json['data']['user']['pin_count'])? intval($json['data']['user']['pin_count']):0;
142
- }
143
-
144
- /* send curl request */
145
- private function file_get_contents_curl($url)
146
- {
147
- if ( ! ini_get( 'safe_mode' ) ){
148
- set_time_limit( $this->timeout + 10 );
149
- }
150
- $args = array(
151
- 'blocking' => true,
152
- 'user-agent'=> $_SERVER['HTTP_USER_AGENT'],
153
- 'timeout' => $this->timeout,
154
- 'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
155
- 'sslverify' => false
156
- );
157
- $resp = wp_remote_get( $url, $args );
158
- if ( is_wp_error( $resp ) ) {
159
- return null;
160
- } else {
161
- return $resp['body'];
162
- }
163
- }
164
-
165
- private function get_content_curl($url)
166
- {
167
- $args = array(
168
- 'body' => $postto_array,
169
- 'blocking' => true,
170
- 'user-agent' => 'sf rss request',
171
- 'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
172
- 'sslverify' => false
173
- );
174
- $resp = wp_remote_get( $url, $args );
175
- if ( is_wp_error( $resp ) ) {
176
- return null;
177
- } else {
178
- return $resp['body'];
179
- }
180
- }
181
-
182
- /* convert no. to 2K,3M format */
183
- function format_num($num, $precision = 0)
184
- {
185
- if ($num >= 1000 && $num < 1000000)
186
- {
187
- $n_format = number_format($num/1000,$precision).'k';
188
- } else if ($num >= 1000000 && $num < 1000000000) {
189
- $n_format = number_format($num/1000000,$precision).'m';
190
- } else if ($num >= 1000000000) {
191
- $n_format=number_format($num/1000000000,$precision).'b';
192
- } else {
193
- $n_format = $num;
194
- }
195
- return $n_format;
196
- }
197
-
198
- /* create on page facebook links option */
199
- public function sfsi_plus_FBlike($permalink)
200
- {
201
- $send = 'false';
202
- $width = 180;
203
- $show_count=0;
204
- $fb_like_html = '<div class="fb-like" data-href="'.$permalink.'" data-width="'.$width.'" data-show-faces="false" ';
205
- if($show_count) {
206
- $fb_like_html .= 'data-layout="button"';
207
- } else {
208
- $fb_like_html .= 'data-layout="button"';
209
- }
210
- $fb_like_html .= ' data-action="like"></div>';
211
- return $fb_like_html;exit;
212
- }
213
-
214
- // /*subscribe like*/
215
- // function sfsi_plus_Subscribelike($permalink, $show_count)
216
- // {
217
-
218
- // }
219
- // /*subscribe like*/
220
-
221
- /*twitter like*/
222
- function sfsi_plus_twitterlike($permalink, $show_count)
223
- {
224
- $twitter_text = '';
225
- return sfsi_twitterShare($permalink,$twitter_text);
226
- }
227
- /*twitter like*/
228
-
229
- /* create on page facebook share option */
230
- public function sfsiFB_Share($permalink)
231
- {
232
- $fb_share_html = '<div class="fb-share-button" data-href="'.$permalink.'" data-layout="button" >';
233
- // $fb_share_html .= '<a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u='.$permalink.'"';
234
- // $fb_share_html .= '</a>';
235
- $fb_share_html .="</div>";
236
- return $fb_share_html;
237
- }
238
-
239
-
240
-
241
- /* create on page twitter follow option */
242
- public function sfsi_twitterFollow($tw_username,$icons_language)
243
- {
244
- $twitter_html = '<a href="https://twitter.com/'.trim($tw_username).'" class="twitter-follow-button" data-show-count="false" data-lang="'.$icons_language.'" data-show-screen-name="false">Follow </a>';
245
- return $twitter_html;
246
- }
247
-
248
- /* create on page twitter share icon */
249
- public function sfsi_twitterShare($permalink,$tweettext,$icons_language)
250
- {
251
- $twitter_html = '<a rel="nofollow" href="https://twitter.com/intent/tweet" data-count="none" class="sr-twitter-button twitter-share-button" data-lang="'.$icons_language.'" data-url="'.$permalink.'" data-text="'.stripslashes($tweettext).'" ></a>';
252
- return $twitter_html;
253
- }
254
-
255
- /* create on page twitter share icon with count */
256
- public function sfsi_twitterSharewithcount($permalink,$tweettext, $show_count, $icons_language)
257
- {
258
- if($show_count)
259
- {
260
- $twitter_html = '<a href="https://twitter.com/intent/tweet" class="sr-twitter-button twitter-share-button" lang="'.$icons_language.'" data-counturl="'.$permalink.'" data-url="'.$permalink.'" data-text="'.stripslashes($tweettext).'" ></a>';
261
- }
262
- else
263
- {
264
- $twitter_html = '<a href="https://twitter.com/intent/tweet" data-count="none" class="sr-twitter-button twitter-share-button" lang="'.$icons_language.'" data-url="'.$permalink.'" data-text="'.stripslashes($tweettext).'" ></a>';
265
- }
266
- return $twitter_html;
267
- }
268
-
269
- /* create on page youtube subscribe icon */
270
- public function sfsi_YouTubeSub($yuser)
271
- {
272
- $option2= unserialize(get_option('sfsi_plus_section2_options',false));
273
- $option4= unserialize(get_option('sfsi_plus_section4_options',false));
274
- if(isset($option2['sfsi_plus_youtubeusernameorid']))
275
- {
276
- $sfsi_plus_youtubeusernameorid = $option2['sfsi_plus_youtubeusernameorid'];
277
- $sfsi_plus_ytube_chnlid = $option2['sfsi_plus_ytube_chnlid'];
278
- }
279
- elseif(isset($option4['sfsi_plus_youtubeusernameorid']))
280
- {
281
- $sfsi_plus_youtubeusernameorid = $option4['sfsi_plus_youtubeusernameorid'];
282
- $sfsi_plus_ytube_chnlid = $option4['sfsi_plus_ytube_chnlid'];
283
- }
284
- else
285
- {
286
- $sfsi_plus_youtubeusernameorid = '';
287
- $sfsi_plus_ytube_chnlid = '';
288
- }
289
- if($sfsi_plus_youtubeusernameorid == 'name')
290
- {
291
- $yuser = $option2['sfsi_plus_ytube_user'];
292
- $youtube_html = '<div class="g-ytsubscribe" data-channel="'.$yuser.'" data-layout="default" data-count="hidden"></div>';
293
- }
294
- else
295
- {
296
- $yuser = $sfsi_plus_ytube_chnlid;
297
- $youtube_html = '<div class="g-ytsubscribe" data-channelid="'.$yuser.'" data-layout="default" data-count="hidden"></div>';
298
- }
299
- return $youtube_html;
300
- }
301
-
302
- /* create on page pinit button icon */
303
- public function sfsi_PinIt($url='')
304
- {
305
- $pin_it_html = '<a data-pin-do="buttonPin" data-pin-save="true" href="https://www.pinterest.com/pin/create/button/?url=&media=&description="></a>';
306
- return $pin_it_html;
307
- }
308
-
309
- /* get instragram followers */
310
- public function sfsi_get_instagramFollowers($user_name)
311
- {
312
- $sfsi_plus_instagram_sf_count = unserialize(get_option('sfsi_plus_instagram_sf_count',false));
313
-
314
- /*if date is empty (for decrease request count)*/
315
- if(empty($sfsi_plus_instagram_sf_count["date_instagram"]))
316
- {
317
- $sfsi_plus_instagram_sf_count["date_instagram"] = strtotime(date("Y-m-d"));
318
- $counts = $this->sfsi_plus_get_instagramFollowersCount($user_name);
319
- $sfsi_plus_instagram_sf_count["sfsi_plus_instagram_count"] = $counts;
320
- update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
321
- }
322
- else
323
- {
324
- $phpVersion = phpVersion();
325
- if($phpVersion >= '5.3')
326
- {
327
- $diff = date_diff(
328
- date_create(
329
- date("Y-m-d", $sfsi_plus_instagram_sf_count["date_instagram"])
330
- ),
331
- date_create(
332
- date("Y-m-d")
333
- ));
334
- }
335
-
336
- if((isset($diff) && $diff->format("%a") < 1) || 1 == 1)
337
- {
338
- $sfsi_plus_instagram_sf_count["date_instagram"] = strtotime(date("Y-m-d"));
339
- $counts = $this->sfsi_plus_get_instagramFollowersCount($user_name);
340
- $sfsi_plus_instagram_sf_count["sfsi_plus_instagram_count"] = $counts;
341
- update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
342
- }
343
- else
344
- {
345
- $counts = $sfsi_plus_instagram_sf_count["sfsi_plus_instagram_count"];
346
- }
347
- }
348
- return $counts;
349
- }
350
-
351
- /* get instragram followers count*/
352
- public function sfsi_plus_get_instagramFollowersCount($user_name)
353
- {
354
- /* get instagram user id */
355
- $option4 = unserialize(get_option('sfsi_plus_section4_options',false));
356
- $token = $option4['sfsi_plus_instagram_token'];
357
-
358
- $count = 0;
359
-
360
- if(isset($token) && !empty($token)){
361
-
362
- $return_data = $this->get_content_curl('https://api.instagram.com/v1/users/self/?access_token='.$token);
363
- $objData = json_decode($return_data);
364
-
365
- if(isset($objData) && $objData->data && $objData->data->counts && $objData->data->counts->followed_by){
366
- $count = $objData->data->counts->followed_by;
367
- }
368
- }
369
- return $this->format_num($count,0);
370
- }
371
-
372
- /* create linkedIn follow button */
373
- public function sfsi_LinkedInFollow($company_id)
374
- {
375
- return $ifollow='<script type="IN/FollowCompany" data-id="'.$company_id.'" data-counter="none"></script>';
376
- }
377
-
378
- /* create linkedIn recommend button */
379
- public function sfsi_LinkedInRecommend($company_name,$product_id)
380
- {
381
- return $ifollow='<script type="IN/RecommendProduct" data-company="'.$company_name.'" data-product="'.$product_id.'"></script>';
382
- }
383
-
384
- /* create linkedIn share button */
385
- public function sfsi_LinkedInShare($url='')
386
- {
387
- $url=(isset($url))? $url : home_url();
388
- return $ifollow='<script type="IN/Share" data-url="'.$url.'"></script>';
389
- }
390
-
391
- /* get no of subscribers from specificfeeds for current blog */
392
- public function SFSI_getFeedSubscriber($feedid)
393
- {
394
- $sfsi_plus_instagram_sf_count = unserialize(get_option('sfsi_plus_instagram_sf_count',false));
395
-
396
- /*if date is empty (for decrease request count)*/
397
-
398
-
399
- if(empty($sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"]))
400
- {
401
- // $sfsi_plus_instagram_sf_count["date_sf"] = strtotime(date("Y-m-d"));
402
- // $counts = $this->sfsi_plus_getFeedSubscriberCount($feedid);
403
- // $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"] = $counts;
404
- // update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
405
- $counts=0;
406
- }
407
- else
408
- {
409
- // $phpVersion = phpVersion();
410
- // if($phpVersion >= '5.3')
411
- // {
412
- // $diff = date_diff(
413
- // date_create(
414
- // date("Y-m-d", $sfsi_plus_instagram_sf_count["date_sf"])
415
- // ),
416
- // date_create(
417
- // date("Y-m-d")
418
- // ));
419
- // }
420
- // var_dump($sfsi_plus_instagram_sf_count,isset($diff),$sfsi_plus_instagram_sf_count["date_sf"],date("Y-m-d", $sfsi_plus_instagram_sf_count["date_sf"]),date('Y-m-d'),$diff , $diff->format("%a"));die();
421
- // if((isset($diff) && $diff->format("%a") >= 1)||$sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"]=="")
422
- // {
423
- // $sfsi_plus_instagram_sf_count["date_sf"] = strtotime(date("Y-m-d"));
424
- // $counts = $this->sfsi_plus_getFeedSubscriberCount($feedid);
425
- // $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"] = $counts;
426
- // update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
427
- // }
428
- // else
429
- // {
430
- $counts = $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"];
431
- // }
432
-
433
- }
434
-
435
- if(empty($counts) || $counts == "O")
436
- {
437
- $counts = 0;
438
- }
439
-
440
- return $counts;
441
- }
442
- public function SFSI_getFeedSubscriberFetch($feedid)
443
- {
444
- $sfsi_plus_instagram_sf_count = unserialize(get_option('sfsi_plus_instagram_sf_count',false));
445
-
446
- /*if date is empty (for decrease request count)*/
447
-
448
-
449
- // if(empty($sfsi_plus_instagram_sf_count["date_sf"]))
450
- // {
451
- $sfsi_plus_instagram_sf_count["date_sf"] = strtotime(date("Y-m-d"));
452
- $counts = $this->sfsi_plus_getFeedSubscriberCount($feedid);
453
- $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"] = $counts;
454
-
455
- update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
456
- // }
457
- // else
458
- // {
459
- // $phpVersion = phpVersion();
460
- // if($phpVersion >= '5.3')
461
- // {
462
- // $diff = date_diff(
463
- // date_create(
464
- // date("Y-m-d", $sfsi_plus_instagram_sf_count["date_sf"])
465
- // ),
466
- // date_create(
467
- // date("Y-m-d")
468
- // ));
469
- // }
470
- // var_dump($sfsi_plus_instagram_sf_count,isset($diff),$sfsi_plus_instagram_sf_count["date_sf"],date("Y-m-d", $sfsi_plus_instagram_sf_count["date_sf"]),date('Y-m-d'),$diff , $diff->format("%a"));die();
471
- // if((isset($diff) && $diff->format("%a") >= 1)||$sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"]=="")
472
- // {
473
- // $sfsi_plus_instagram_sf_count["date_sf"] = strtotime(date("Y-m-d"));
474
- // $counts = $this->sfsi_plus_getFeedSubscriberCount($feedid);
475
- // $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"] = $counts;
476
- // update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
477
- // }
478
- // else
479
- // {
480
- // $counts = $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"];
481
- // }
482
-
483
- // }
484
-
485
- if(empty($counts) || $counts == "O")
486
- {
487
- $counts = 0;
488
- }
489
-
490
- return $counts;
491
- }
492
-
493
- /* get no of subscribers from specificfeeds for current blog count*/
494
- public function sfsi_plus_getFeedSubscriberCount($feedid)
495
- {
496
- $postto_array = array(
497
- 'feed_id' => $feedid,
498
- 'v' => 'newplugincount'
499
- );
500
- $args = array(
501
- 'body' => $postto_array,
502
- 'blocking' => true,
503
- 'user-agent' => 'sf rss request',
504
- 'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
505
- 'sslverify' => true
506
- );
507
- $resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/wpCountSubscriber', $args );
508
-
509
- $httpcode = wp_remote_retrieve_response_code($resp);
510
-
511
- if($httpcode == 200){
512
-
513
- if(!empty($resp["body"]))
514
- {
515
- $resp = json_decode($resp["body"]);
516
-
517
- $feeddata = stripslashes_deep($resp->subscriber_count);
518
- }
519
- else{
520
-
521
- $sfsi_premium_instagram_sf_count = unserialize(get_option('sfsi_plus_sf_count',false));
522
- $feeddata = $sfsi_premium_instagram_sf_count["sfsi_sf_count"];
523
- }
524
- }
525
- else{
526
- $sfsi_premium_instagram_sf_count = unserialize(get_option('sfsi_plus_sf_count',false));
527
- $feeddata = $sfsi_premium_instagram_sf_count["sfsi_plus_sf_count"];
528
- }
529
-
530
- return $this->format_num($feeddata);exit;
531
- }
532
-
533
- /* check response from a url */
534
- private function sfsi_get_http_response_code($url)
535
- {
536
- $headers = @get_headers($url);
537
- return substr(@$headers[0], 9, 3);
538
- }
539
- }
540
- /* end of class */
 
 
541
  ?>
1
+ <?php
2
+ /* social helper class include all function which are used to intract with */
3
+ class sfsi_plus_SocialHelper
4
+ {
5
+ private $url,$timeout=10;
6
+
7
+ /* get twitter followers */
8
+ function sfsi_get_tweets($username,$tw_settings)
9
+ {
10
+ require_once(SFSI_PLUS_DOCROOT.'/helpers/twitteroauth/twiiterCount.php');
11
+ return sfsi_plus_twitter_followers();
12
+ }
13
+
14
+ /* get linkedIn counts */
15
+ function sfsi_get_linkedin($url)
16
+ {
17
+ $json_string = $this->file_get_contents_curl(
18
+ 'https://www.linkedin.com/countserv/count/share?format=json&url='.$url
19
+ );
20
+ $json = json_decode($json_string, true);
21
+ return isset($json['count'])? intval($json['count']):0;
22
+ }
23
+
24
+ /* get linkedIn follower */
25
+ function sfsi_getlinkedin_follower($sfsi_plus_ln_company,$APIsettings)
26
+ {
27
+ require_once(SFSI_PLUS_DOCROOT.'/helpers/linkedin-api/linkedin-api.php');
28
+
29
+ // $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http";
30
+ // $url = $scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
31
+
32
+ $url = sfsi_plus_get_current_url();
33
+
34
+ $linkedin = new Plus_LinkedIn(
35
+ $APIsettings['sfsi_plus_ln_api_key'],
36
+ $APIsettings['sfsi_plus_ln_secret_key'],
37
+ $APIsettings['sfsi_plus_ln_oAuth_user_token'],
38
+ $url
39
+ );
40
+ $followers = $linkedin->getCompanyFollowersByName($sfsi_plus_ln_company);
41
+ if (strpos($followers, '404') === false)
42
+ { return strip_tags($followers); }
43
+ else
44
+ { return 0; }
45
+ }
46
+
47
+ /* get facebook likes */
48
+ function sfsi_get_fb($url)
49
+ {
50
+ $count = 0;
51
+ $json_string = $this->file_get_contents_curl('https://graph.facebook.com/?id='.$url);
52
+ $json = json_decode($json_string);
53
+
54
+ if(isset($json) && isset($json->share) && isset($json->share->share_count)){
55
+ $count = $json->share->share_count;
56
+ }
57
+ return $count;
58
+ }
59
+
60
+ /* get facebook page likes */
61
+ function sfsi_get_fb_pagelike($url)
62
+ {
63
+ $appid = '954871214567352';
64
+ $appsecret = 'a780eb3d3687a084d6e5919585cc6a12';
65
+ $json_url ='https://graph.facebook.com/'.$url.'?fields=fan_count&access_token='.$appid.'|'.$appsecret;
66
+ $json_string = $this->file_get_contents_curl($json_url);
67
+ // return $json_string;
68
+ // var_dump($json_string);die();
69
+ $json = json_decode($json_string, true);
70
+ return isset($json['fan_count'])? $json['fan_count']:0;
71
+ }
72
+
73
+
74
+ /* get youtube subscribers */
75
+ function sfsi_get_youtube($user)
76
+ {
77
+ if($user == 'SpecificFeeds')
78
+ {
79
+ $sfsi_plus_section4_options = unserialize(get_option('sfsi_plus_section4_options',false));
80
+ $user = (
81
+ isset($sfsi_plus_section4_options['sfsi_plus_youtube_channelId']) &&
82
+ !empty($sfsi_plus_section4_options['sfsi_plus_youtube_channelId'])
83
+ ) ? $sfsi_plus_section4_options['sfsi_plus_youtube_channelId'] : 'UCYQyWnJPrY4XY3Avc7BU9aA';
84
+
85
+ $xmlData = $this->file_get_contents_curl('https://www.googleapis.com/youtube/v3/channels?part=statistics&id='.$user.'&key=AIzaSyA_SqAZGCpZ22vHzOUr3St5xf5XMy78oTY');
86
+ }
87
+ else
88
+ {
89
+ $xmlData = $this->file_get_contents_curl('https://www.googleapis.com/youtube/v3/channels?part=statistics&forUsername='.$user.'&key=AIzaSyA_SqAZGCpZ22vHzOUr3St5xf5XMy78oTY');
90
+ }
91
+
92
+ if($xmlData)
93
+ {
94
+ $xmlData = json_decode($xmlData);
95
+ if(
96
+ isset($xmlData->items) &&
97
+ !empty($xmlData->items)
98
+ )
99
+ {
100
+ $subs = $xmlData->items[0]->statistics->subscriberCount;
101
+ $subs = $this->format_num($subs);
102
+ }
103
+ else
104
+ {
105
+ $subs=0;
106
+ }
107
+
108
+ }
109
+ else
110
+ {
111
+ $subs=0;
112
+ }
113
+ return $subs;
114
+ }
115
+
116
+
117
+ /* get pinit counts */
118
+ function sfsi_get_pinterest($url)
119
+ {
120
+ $return_data = $this->file_get_contents_curl('https://api.pinterest.com/v1/urls/count.json?callback=receiveCount&url='.$url);
121
+ $json_string = preg_replace('/^receiveCount\((.*)\)$/', "\\1", $return_data);
122
+ $json = json_decode($json_string, true);
123
+ return isset($json['count'])?intval($json['count']):0;
124
+ }
125
+
126
+ /* get pinit counts for a user */
127
+ function get_UsersPins($user_name,$board)
128
+ {
129
+ $query=$user_name.'/'.$board;
130
+ $url_respon=$this->sfsi_get_http_response_code('https://api.pinterest.com/v3/pidgets/boards/'.$query.'/pins/');
131
+ if($url_respon!=404)
132
+ {
133
+ $return_data = $this->file_get_contents_curl('https://api.pinterest.com/v3/pidgets/boards/'.$query.'/pins/');
134
+ $json_string = preg_replace('/^receiveCount\((.*)\)$/', "\\1", $return_data);
135
+ $json = json_decode($json_string, true);
136
+ }
137
+ else
138
+ {
139
+ $json['data']['user']['pin_count']=0;
140
+ }
141
+ return isset($json['data']['user']['pin_count'])? intval($json['data']['user']['pin_count']):0;
142
+ }
143
+
144
+ /* send curl request */
145
+ private function file_get_contents_curl($url)
146
+ {
147
+ if ( ! ini_get( 'safe_mode' ) ){
148
+ set_time_limit( $this->timeout + 10 );
149
+ }
150
+ $args = array(
151
+ 'blocking' => true,
152
+ 'user-agent'=> $_SERVER['HTTP_USER_AGENT'],
153
+ 'timeout' => $this->timeout,
154
+ 'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
155
+ 'sslverify' => false
156
+ );
157
+ $resp = wp_remote_get( $url, $args );
158
+ if ( is_wp_error( $resp ) ) {
159
+ return null;
160
+ } else {
161
+ return $resp['body'];
162
+ }
163
+ }
164
+
165
+ private function get_content_curl($url)
166
+ {
167
+ $args = array(
168
+ 'body' => $postto_array,
169
+ 'blocking' => true,
170
+ 'user-agent' => 'sf rss request',
171
+ 'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
172
+ 'sslverify' => false
173
+ );
174
+ $resp = wp_remote_get( $url, $args );
175
+ if ( is_wp_error( $resp ) ) {
176
+ return null;
177
+ } else {
178
+ return $resp['body'];
179
+ }
180
+ }
181
+
182
+ /* convert no. to 2K,3M format */
183
+ function format_num($num, $precision = 0)
184
+ {
185
+ if ($num >= 1000 && $num < 1000000)
186
+ {
187
+ $n_format = number_format($num/1000,$precision).'k';
188
+ } else if ($num >= 1000000 && $num < 1000000000) {
189
+ $n_format = number_format($num/1000000,$precision).'m';
190
+ } else if ($num >= 1000000000) {
191
+ $n_format=number_format($num/1000000000,$precision).'b';
192
+ } else {
193
+ $n_format = $num;
194
+ }
195
+ return $n_format;
196
+ }
197
+
198
+ /* create on page facebook links option */
199
+ public function sfsi_plus_FBlike($permalink)
200
+ {
201
+ $send = 'false';
202
+ $width = 180;
203
+ $show_count=0;
204
+ $fb_like_html = '<div class="fb-like" data-href="'.$permalink.'" data-width="'.$width.'" data-show-faces="false" ';
205
+ if($show_count) {
206
+ $fb_like_html .= 'data-layout="button"';
207
+ } else {
208
+ $fb_like_html .= 'data-layout="button"';
209
+ }
210
+ $fb_like_html .= ' data-action="like"></div>';
211
+ return $fb_like_html;exit;
212
+ }
213
+
214
+ // /*subscribe like*/
215
+ // function sfsi_plus_Subscribelike($permalink, $show_count)
216
+ // {
217
+
218
+ // }
219
+ // /*subscribe like*/
220
+
221
+ /*twitter like*/
222
+ function sfsi_plus_twitterlike($permalink, $show_count)
223
+ {
224
+ $twitter_text = '';
225
+ return sfsi_twitterShare($permalink,$twitter_text);
226
+ }
227
+ /*twitter like*/
228
+
229
+ /* create on page facebook share option */
230
+ public function sfsiFB_Share($permalink)
231
+ {
232
+ $fb_share_html = '<div class="fb-share-button" data-href="'.$permalink.'" data-layout="button" >';
233
+ // $fb_share_html .= '<a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u='.$permalink.'"';
234
+ // $fb_share_html .= '</a>';
235
+ $fb_share_html .="</div>";
236
+ return $fb_share_html;
237
+ }
238
+
239
+
240
+
241
+ /* create on page twitter follow option */
242
+ public function sfsi_twitterFollow($tw_username,$icons_language)
243
+ {
244
+ $twitter_html = '<a href="https://twitter.com/'.trim($tw_username).'" class="twitter-follow-button" data-show-count="false" data-lang="'.$icons_language.'" data-show-screen-name="false">Follow </a>';
245
+ return $twitter_html;
246
+ }
247
+
248
+ /* create on page twitter share icon */
249
+ public function sfsi_twitterShare($permalink,$tweettext,$icons_language)
250
+ {
251
+ $twitter_html = '<a rel="nofollow" href="https://twitter.com/intent/tweet" data-count="none" class="sr-twitter-button twitter-share-button" data-lang="'.$icons_language.'" data-url="'.$permalink.'" data-text="'.stripslashes($tweettext).'" ></a>';
252
+ return $twitter_html;
253
+ }
254
+
255
+ /* create on page twitter share icon with count */
256
+ public function sfsi_twitterSharewithcount($permalink,$tweettext, $show_count, $icons_language)
257
+ {
258
+ if($show_count)
259
+ {
260
+ $twitter_html = '<a href="https://twitter.com/intent/tweet" class="sr-twitter-button twitter-share-button" lang="'.$icons_language.'" data-counturl="'.$permalink.'" data-url="'.$permalink.'" data-text="'.stripslashes($tweettext).'" ></a>';
261
+ }
262
+ else
263
+ {
264
+ $twitter_html = '<a href="https://twitter.com/intent/tweet" data-count="none" class="sr-twitter-button twitter-share-button" lang="'.$icons_language.'" data-url="'.$permalink.'" data-text="'.stripslashes($tweettext).'" ></a>';
265
+ }
266
+ return $twitter_html;
267
+ }
268
+
269
+ /* create on page youtube subscribe icon */
270
+ public function sfsi_YouTubeSub($yuser)
271
+ {
272
+ $option2= unserialize(get_option('sfsi_plus_section2_options',false));
273
+ $option4= unserialize(get_option('sfsi_plus_section4_options',false));
274
+ if(isset($option2['sfsi_plus_youtubeusernameorid']))
275
+ {
276
+ $sfsi_plus_youtubeusernameorid = $option2['sfsi_plus_youtubeusernameorid'];
277
+ $sfsi_plus_ytube_chnlid = $option2['sfsi_plus_ytube_chnlid'];
278
+ }
279
+ elseif(isset($option4['sfsi_plus_youtubeusernameorid']))
280
+ {
281
+ $sfsi_plus_youtubeusernameorid = $option4['sfsi_plus_youtubeusernameorid'];
282
+ $sfsi_plus_ytube_chnlid = $option4['sfsi_plus_ytube_chnlid'];
283
+ }
284
+ else
285
+ {
286
+ $sfsi_plus_youtubeusernameorid = '';
287
+ $sfsi_plus_ytube_chnlid = '';
288
+ }
289
+ if($sfsi_plus_youtubeusernameorid == 'name')
290
+ {
291
+ $yuser = $option2['sfsi_plus_ytube_user'];
292
+ $youtube_html = '<div class="g-ytsubscribe" data-channel="'.$yuser.'" data-layout="default" data-count="hidden"></div>';
293
+ }
294
+ else
295
+ {
296
+ $yuser = $sfsi_plus_ytube_chnlid;
297
+ $youtube_html = '<div class="g-ytsubscribe" data-channelid="'.$yuser.'" data-layout="default" data-count="hidden"></div>';
298
+ }
299
+ return $youtube_html;
300
+ }
301
+
302
+ /* create on page pinit button icon */
303
+ public function sfsi_PinIt($url='')
304
+ {
305
+ $pin_it_html = '<a data-pin-do="buttonPin" data-pin-save="true" href="https://www.pinterest.com/pin/create/button/?url=&media=&description="></a>';
306
+ return $pin_it_html;
307
+ }
308
+
309
+ /* get instragram followers */
310
+ public function sfsi_get_instagramFollowers($user_name)
311
+ {
312
+ $sfsi_plus_instagram_sf_count = unserialize(get_option('sfsi_plus_instagram_sf_count',false));
313
+
314
+ /*if date is empty (for decrease request count)*/
315
+ if(empty($sfsi_plus_instagram_sf_count["date_instagram"]))
316
+ {
317
+ $sfsi_plus_instagram_sf_count["date_instagram"] = strtotime(date("Y-m-d"));
318
+ $counts = $this->sfsi_plus_get_instagramFollowersCount($user_name);
319
+ $sfsi_plus_instagram_sf_count["sfsi_plus_instagram_count"] = $counts;
320
+ update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
321
+ }
322
+ else
323
+ {
324
+ $phpVersion = phpVersion();
325
+ if($phpVersion >= '5.3')
326
+ {
327
+ $diff = date_diff(
328
+ date_create(
329
+ date("Y-m-d", $sfsi_plus_instagram_sf_count["date_instagram"])
330
+ ),
331
+ date_create(
332
+ date("Y-m-d")
333
+ ));
334
+ }
335
+
336
+ if((isset($diff) && $diff->format("%a") > 1))
337
+ {
338
+ $sfsi_plus_instagram_sf_count["date_instagram"] = strtotime(date("Y-m-d"));
339
+ $counts = $this->sfsi_plus_get_instagramFollowersCount($user_name);
340
+ if($counts> $sfsi_plus_instagram_sf_count["sfsi_plus_instagram_count"]){
341
+ $sfsi_plus_instagram_sf_count["sfsi_plus_instagram_count"] = $counts;
342
+ }
343
+ update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
344
+ }
345
+ else
346
+ {
347
+ $counts = $sfsi_plus_instagram_sf_count["sfsi_plus_instagram_count"];
348
+ }
349
+ }
350
+ return $counts;
351
+ }
352
+
353
+ /* get instragram followers count*/
354
+ public function sfsi_plus_get_instagramFollowersCount($user_name)
355
+ {
356
+ /* get instagram user id */
357
+ $option4 = unserialize(get_option('sfsi_plus_section4_options',false));
358
+ $token = $option4['sfsi_plus_instagram_token'];
359
+
360
+ $count = 0;
361
+
362
+ if(isset($token) && !empty($token)){
363
+
364
+ $return_data = $this->get_content_curl('https://api.instagram.com/v1/users/self/?access_token='.$token);
365
+ $objData = json_decode($return_data);
366
+
367
+ if(isset($objData) && $objData->data && $objData->data->counts && $objData->data->counts->followed_by){
368
+ $count = $objData->data->counts->followed_by;
369
+ }
370
+ }
371
+ return $this->format_num($count,0);
372
+ }
373
+
374
+ /* create linkedIn follow button */
375
+ public function sfsi_LinkedInFollow($company_id)
376
+ {
377
+ return $ifollow='<script type="IN/FollowCompany" data-id="'.$company_id.'" data-counter="none"></script>';
378
+ }
379
+
380
+ /* create linkedIn recommend button */
381
+ public function sfsi_LinkedInRecommend($company_name,$product_id)
382
+ {
383
+ return $ifollow='<script type="IN/RecommendProduct" data-company="'.$company_name.'" data-product="'.$product_id.'"></script>';
384
+ }
385
+
386
+ /* create linkedIn share button */
387
+ public function sfsi_LinkedInShare($url='')
388
+ {
389
+ $url=(isset($url))? $url : home_url();
390
+ return $ifollow='<script type="IN/Share" data-url="'.$url.'"></script>';
391
+ }
392
+
393
+ /* get no of subscribers from specificfeeds for current blog */
394
+ public function SFSI_getFeedSubscriber($feedid)
395
+ {
396
+ $sfsi_plus_instagram_sf_count = unserialize(get_option('sfsi_plus_instagram_sf_count',false));
397
+
398
+ /*if date is empty (for decrease request count)*/
399
+
400
+
401
+ if(empty($sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"]))
402
+ {
403
+ // $sfsi_plus_instagram_sf_count["date_sf"] = strtotime(date("Y-m-d"));
404
+ // $counts = $this->sfsi_plus_getFeedSubscriberCount($feedid);
405
+ // $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"] = $counts;
406
+ // update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
407
+ $counts=0;
408
+ }
409
+ else
410
+ {
411
+ // $phpVersion = phpVersion();
412
+ // if($phpVersion >= '5.3')
413
+ // {
414
+ // $diff = date_diff(
415
+ // date_create(
416
+ // date("Y-m-d", $sfsi_plus_instagram_sf_count["date_sf"])
417
+ // ),
418
+ // date_create(
419
+ // date("Y-m-d")
420
+ // ));
421
+ // }
422
+ // var_dump($sfsi_plus_instagram_sf_count,isset($diff),$sfsi_plus_instagram_sf_count["date_sf"],date("Y-m-d", $sfsi_plus_instagram_sf_count["date_sf"]),date('Y-m-d'),$diff , $diff->format("%a"));die();
423
+ // if((isset($diff) && $diff->format("%a") >= 1)||$sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"]=="")
424
+ // {
425
+ // $sfsi_plus_instagram_sf_count["date_sf"] = strtotime(date("Y-m-d"));
426
+ // $counts = $this->sfsi_plus_getFeedSubscriberCount($feedid);
427
+ // $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"] = $counts;
428
+ // update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
429
+ // }
430
+ // else
431
+ // {
432
+ $counts = $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"];
433
+ // }
434
+
435
+ }
436
+
437
+ if(empty($counts) || $counts == "O")
438
+ {
439
+ $counts = 0;
440
+ }
441
+
442
+ return $counts;
443
+ }
444
+ public function SFSI_getFeedSubscriberFetch($feedid)
445
+ {
446
+ $sfsi_plus_instagram_sf_count = unserialize(get_option('sfsi_plus_instagram_sf_count',false));
447
+
448
+ /*if date is empty (for decrease request count)*/
449
+
450
+
451
+ // if(empty($sfsi_plus_instagram_sf_count["date_sf"]))
452
+ // {
453
+ $sfsi_plus_instagram_sf_count["date_sf"] = strtotime(date("Y-m-d"));
454
+ $counts = $this->sfsi_plus_getFeedSubscriberCount($feedid);
455
+ $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"] = $counts;
456
+
457
+ update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
458
+ // }
459
+ // else
460
+ // {
461
+ // $phpVersion = phpVersion();
462
+ // if($phpVersion >= '5.3')
463
+ // {
464
+ // $diff = date_diff(
465
+ // date_create(
466
+ // date("Y-m-d", $sfsi_plus_instagram_sf_count["date_sf"])
467
+ // ),
468
+ // date_create(
469
+ // date("Y-m-d")
470
+ // ));
471
+ // }
472
+ // var_dump($sfsi_plus_instagram_sf_count,isset($diff),$sfsi_plus_instagram_sf_count["date_sf"],date("Y-m-d", $sfsi_plus_instagram_sf_count["date_sf"]),date('Y-m-d'),$diff , $diff->format("%a"));die();
473
+ // if((isset($diff) && $diff->format("%a") >= 1)||$sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"]=="")
474
+ // {
475
+ // $sfsi_plus_instagram_sf_count["date_sf"] = strtotime(date("Y-m-d"));
476
+ // $counts = $this->sfsi_plus_getFeedSubscriberCount($feedid);
477
+ // $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"] = $counts;
478
+ // update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
479
+ // }
480
+ // else
481
+ // {
482
+ // $counts = $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"];
483
+ // }
484
+
485
+ // }
486
+
487
+ if(empty($counts) || $counts == "O")
488
+ {
489
+ $counts = 0;
490
+ }
491
+
492
+ return $counts;
493
+ }
494
+
495
+ /* get no of subscribers from specificfeeds for current blog count*/
496
+ public function sfsi_plus_getFeedSubscriberCount($feedid)
497
+ {
498
+ $postto_array = array(
499
+ 'feed_id' => $feedid,
500
+ 'v' => 'newplugincount'
501
+ );
502
+ $args = array(
503
+ 'body' => $postto_array,
504
+ 'blocking' => true,
505
+ 'user-agent' => 'sf rss request',
506
+ 'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
507
+ 'sslverify' => true
508
+ );
509
+ $resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/wpCountSubscriber', $args );
510
+
511
+ $httpcode = wp_remote_retrieve_response_code($resp);
512
+
513
+ if($httpcode == 200){
514
+
515
+ if(!empty($resp["body"]))
516
+ {
517
+ $resp = json_decode($resp["body"]);
518
+
519
+ $feeddata = stripslashes_deep($resp->subscriber_count);
520
+ }
521
+ else{
522
+
523
+ $sfsi_premium_instagram_sf_count = unserialize(get_option('sfsi_plus_sf_count',false));
524
+ $feeddata = $sfsi_premium_instagram_sf_count["sfsi_sf_count"];
525
+ }
526
+ }
527
+ else{
528
+ $sfsi_premium_instagram_sf_count = unserialize(get_option('sfsi_plus_sf_count',false));
529
+ $feeddata = $sfsi_premium_instagram_sf_count["sfsi_plus_sf_count"];
530
+ }
531
+
532
+ return $this->format_num($feeddata);exit;
533
+ }
534
+
535
+ /* check response from a url */
536
+ private function sfsi_get_http_response_code($url)
537
+ {
538
+ $headers = @get_headers($url);
539
+ return substr(@$headers[0], 9, 3);
540
+ }
541
+ }
542
+ /* end of class */
543
  ?>
libs/controllers/sfsiocns_OnPosts.php CHANGED
@@ -1,517 +1,517 @@
1
- <?php
2
- /* add fb like add this share to end of every post */
3
- function sfsi_plus_social_buttons_below($content)
4
- {
5
- global $post;
6
- $sfsi_section6= unserialize(get_option('sfsi_plus_section6_options',false));
7
-
8
- //new options that are added on the third questions
9
- //so in this function we are replacing all the past options
10
- //that were saved under option6 by new settings saved under option8
11
- $sfsi_section8= unserialize(get_option('sfsi_plus_section8_options',false));
12
- $sfsi_plus_show_item_onposts = $sfsi_section8['sfsi_plus_show_item_onposts'];
13
- //new options that are added on the third questions
14
-
15
- //checking for standard icons
16
- if(!isset($sfsi_section8['sfsi_plus_rectsub']))
17
- {
18
- $sfsi_section8['sfsi_plus_rectsub'] = 'no';
19
- }
20
- if(!isset($sfsi_section8['sfsi_plus_rectfb']))
21
- {
22
- $sfsi_section8['sfsi_plus_rectfb'] = 'yes';
23
- }
24
- if(!isset($sfsi_section8['sfsi_plus_recttwtr']))
25
- {
26
- $sfsi_section8['sfsi_plus_recttwtr'] = 'no';
27
- }
28
- if(!isset($sfsi_section8['sfsi_plus_rectpinit']))
29
- {
30
- $sfsi_section8['sfsi_plus_rectpinit'] = 'no';
31
- }
32
- if(!isset($sfsi_section8['sfsi_plus_rectfbshare']))
33
- {
34
- $sfsi_section8['sfsi_plus_rectfbshare'] = 'no';
35
- }
36
- //checking for standard icons
37
-
38
- /* check if option activated in admin or not */
39
- //if($sfsi_section6['sfsi_plus_show_Onposts']=="yes")
40
- //removing following condition for now
41
- /*if($sfsi_section8['sfsi_plus_show_Onposts']=="yes")
42
- {*/
43
- $permalink = get_permalink($post->ID);
44
- $title = get_the_title();
45
- $sfsiLikeWith="45px;";
46
-
47
- /* check for counter display */
48
- //if($sfsi_section6['sfsi_plus_icons_DisplayCounts']=="yes")
49
-
50
- if($sfsi_section8['sfsi_plus_icons_DisplayCounts']=="yes")
51
- {
52
- $show_count=1;
53
- $sfsiLikeWith="75px;";
54
- }
55
- else
56
- {
57
- $show_count=0;
58
- }
59
- $common_options_check = (($sfsi_section8['sfsi_plus_show_via_widget'] == "yes") || ($sfsi_section8['sfsi_plus_float_on_page'] == "yes") && (isset($sfsi_section8['sfsi_plus_float_page_position'])) || ($sfsi_section8['sfsi_plus_place_item_manually'] == "yes") || ($sfsi_section8['sfsi_plus_place_item_gutenberg'] == "yes"));
60
-
61
- //$txt=(isset($sfsi_section6['sfsi_plus_textBefor_icons']))? $sfsi_section6['sfsi_plus_textBefor_icons'] : "Share this Post with :" ;
62
- $txt=(isset($sfsi_section8['sfsi_plus_textBefor_icons']))? $sfsi_section8['sfsi_plus_textBefor_icons'] : "Please follow and like us:" ;
63
- //$float= $sfsi_section6['sfsi_plus_icons_alignment'];
64
- $float= $sfsi_section8['sfsi_plus_icons_alignment'];
65
- if($sfsi_section8['sfsi_plus_rectsub'] == 'yes' || $sfsi_section8['sfsi_plus_rectfb'] == 'yes' || $sfsi_section8['sfsi_plus_recttwtr'] == 'yes' || $sfsi_section8['sfsi_plus_rectpinit'] == 'yes' || $sfsi_section8['sfsi_plus_rectfbshare'] == 'yes')
66
- {
67
- $icons="<div class='sfsi_plus_Sicons ".$float."' style='float:".$float."'><div style='display: inline-block;margin-bottom: 0; margin-left: 0; margin-right: 8px; margin-top: 0; vertical-align: middle;width: auto;'><span>".$txt."</span></div>";
68
- }
69
- if($sfsi_section8['sfsi_plus_rectsub'] == 'yes')
70
- {
71
- if($show_count){$sfsiLikeWithsub = "93px";}else{$sfsiLikeWithsub = "64px";}
72
- if(!isset($sfsiLikeWithsub)){$sfsiLikeWithsub = $sfsiLikeWith;}
73
- $icons.="<div class='sf_subscrbe' style='display: inline-block;vertical-align: middle;width: auto;'>".sfsi_plus_Subscribelike($permalink,$show_count)."</div>";
74
- }
75
- if($sfsi_section8['sfsi_plus_rectfb'] == 'yes' || $common_options_check)
76
- {
77
- $icons.="<div class='sf_fb' style='display: inline-block;vertical-align: middle;width: auto;'>".sfsi_plus_FBlike($permalink,$show_count)."</div>";
78
- }
79
-
80
- if($sfsi_section8['sfsi_plus_rectfbshare'] == 'yes' || $common_options_check )
81
- {
82
- $icons.="<div class='sf_fb' style='display: inline-block;vertical-align: middle;width: auto;'>".sfsi_plus_FBshare($permalink,$show_count)."</div>";
83
- }
84
-
85
- if($sfsi_section8['sfsi_plus_recttwtr'] == 'yes')
86
- {
87
- if($show_count){$sfsiLikeWithtwtr = "77px";}else{$sfsiLikeWithtwtr = "56px";}
88
- if(!isset($sfsiLikeWithtwtr)){$sfsiLikeWithtwtr = $sfsiLikeWith;}
89
- $icons.="<div class='sf_twiter' style='display: inline-block;vertical-align: middle;width: auto;'>".sfsi_plus_twitterlike($permalink,$show_count)."</div>";
90
- }
91
- if($sfsi_section8['sfsi_plus_rectpinit'] == 'yes')
92
- {
93
- if($show_count){$sfsiLikeWithpinit = "100px";}else{$sfsiLikeWithpinit = "auto";}
94
- $icons.="<div class='sf_pinit' style='display: inline-block;text-align:left;vertical-align: middle;width: ".$sfsiLikeWithpinit.";'>".sfsi_plus_pinitpinterest($permalink,$show_count)."</div>";
95
- }
96
- $icons.="</div>";
97
-
98
- if(!is_feed() && !is_home() && !is_page())
99
- {
100
- $content = $content .$icons;
101
- }
102
- //}
103
- return $content;
104
- }
105
-
106
- /*subscribe like*/
107
- function sfsi_plus_Subscribelike($permalink, $show_count)
108
- {
109
- global $socialObj;
110
- $socialObj = new sfsi_plus_SocialHelper();
111
-
112
- $sfsi_plus_section2_options= unserialize(get_option('sfsi_plus_section2_options',false));
113
- $sfsi_plus_section4_options = unserialize(get_option('sfsi_plus_section4_options',false));
114
- $sfsi_plus_section8_options= unserialize(get_option('sfsi_plus_section8_options',false));
115
- $option5 = unserialize(get_option('sfsi_plus_section5_options',false));
116
-
117
- $post_icons = $option5['sfsi_plus_follow_icons_language'];
118
- $visit_icon1 = SFSI_PLUS_DOCROOT.'/images/visit_icons/Follow/icon_'.$post_icons.'.png';
119
- $visit_iconsUrl = SFSI_PLUS_PLUGURL."images/";
120
-
121
- if(file_exists($visit_icon1))
122
- {
123
- $visit_icon = $visit_iconsUrl."visit_icons/Follow/icon_".$post_icons.".png";
124
- }
125
- else
126
- {
127
- $visit_icon = $visit_iconsUrl."follow_subscribe.png";
128
- }
129
-
130
- $url = (isset($sfsi_plus_section2_options['sfsi_plus_email_url'])) ? $sfsi_plus_section2_options['sfsi_plus_email_url'] : 'https://specificfeeds.com/follow';
131
-
132
- if($sfsi_plus_section4_options['sfsi_plus_email_countsFrom']=="manual")
133
- {
134
- $counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_email_manualCounts']);
135
- }
136
- else
137
- {
138
- $counts= $socialObj->SFSI_getFeedSubscriber(sanitize_text_field(get_option('sfsi_plus_feed_id',false)));
139
- }
140
-
141
- if($sfsi_plus_section8_options['sfsi_plus_icons_DisplayCounts']=="yes")
142
- {
143
- $icon = '<a href="'.$url.'" target="_blank"><img src="'.$visit_icon.'" /></a>
144
- <span class="bot_no">'.$counts.'</span>';
145
- }
146
- else
147
- {
148
- $icon = '<a href="'.$url.'" target="_blank"><img src="'.$visit_icon.'" /></a>';
149
- }
150
- return $icon;
151
- }
152
- /*subscribe like*/
153
-
154
- /*twitter like*/
155
- function sfsi_plus_twitterlike($permalink, $show_count)
156
- {
157
- global $socialObj;
158
- $socialObj = new sfsi_plus_SocialHelper();
159
- $twitter_text = '';
160
- $sfsi_plus_section5_options = unserialize(get_option('sfsi_plus_section5_options',false));
161
- $icons_language = $sfsi_plus_section5_options['sfsi_plus_icons_language'];
162
- if(!empty($permalink))
163
- {
164
- $postid = url_to_postid( $permalink );
165
- }
166
- if(!empty($postid))
167
- {
168
- $twitter_text = get_the_title($postid);
169
- }
170
- return $socialObj->sfsi_twitterSharewithcount($permalink,$twitter_text, $show_count, $icons_language);
171
- }
172
- /*twitter like*/
173
-
174
- /* create fb like button */
175
- function sfsi_plus_FBlike($permalink,$show_count)
176
- {
177
- $send = 'false';
178
- $width = 180;
179
-
180
- $fb_like_html = '';
181
-
182
- $fb_like_html .= '<div class="fb-like" data-href="'.$permalink.'" data-action="like" data-size="small" data-show-faces="false" data-share="false"';
183
-
184
- if(1 == $show_count)
185
- {
186
- $fb_like_html .= 'data-layout="button_count"';
187
- }
188
- else
189
- {
190
- $fb_like_html .= 'data-layout="button"';
191
- }
192
-
193
- $fb_like_html .= ' ></div>';
194
-
195
- return $fb_like_html;
196
- }
197
-
198
- function sfsi_plus_FBshare($permalink,$show_count){
199
-
200
- $send = 'false';
201
- $width = 180;
202
-
203
- $fb_share_html = '';
204
-
205
- $fb_share_html .= '<div class="fb-share-button" data-action="share" data-href="'.$permalink.'" data-size="small" data-mobile-iframe="true"';
206
-
207
- if(1 == $show_count)
208
- {
209
- $fb_share_html .= 'data-layout="button_count"';
210
- }
211
- else
212
- {
213
- $fb_share_html .= 'data-layout="button"';
214
- }
215
-
216
- $fb_share_html .= '><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u='.$permalink.';src=sdkpreparse" class="fb-xfbml-parse-ignore"></a></div>';
217
-
218
- return $fb_share_html;
219
-
220
- }
221
- /* create pinit button */
222
-
223
- function sfsi_plus_pinitpinterest($permalink,$show_count)
224
- {
225
- $pinit_html = '<a href="https://www.pinterest.com/pin/create/button/?url=&media=&description=" data-pin-do="buttonPin" data-pin-save="true"';
226
-
227
- if($show_count)
228
- {
229
- $pinit_html .= 'data-pin-count="beside"';
230
- }
231
- else
232
- {
233
- $pinit_html .= 'data-pin-count="none"';
234
- }
235
-
236
- $pinit_html .= '></a>';
237
-
238
- return $pinit_html;
239
- }
240
-
241
- /* add all external javascript to wp_footer */
242
- function sfsi_plus_footer_script()
243
- {
244
- $sfsi_section1= unserialize(get_option('sfsi_plus_section1_options',false));
245
- $sfsi_section6= unserialize(get_option('sfsi_plus_section6_options',false));
246
- $sfsi_section8= unserialize(get_option('sfsi_plus_section8_options',false));
247
- $sfsi_section2= unserialize(get_option('sfsi_plus_section2_options',false));
248
-
249
-
250
- $sfsi_plus_section5_options = unserialize(get_option('sfsi_plus_section5_options',false));
251
-
252
- if(
253
- isset($sfsi_plus_section5_options['sfsi_plus_icons_language']) &&
254
- !empty($sfsi_plus_section5_options['sfsi_plus_icons_language'])
255
- )
256
- {
257
- $icons_language = $sfsi_plus_section5_options['sfsi_plus_icons_language'];
258
- }
259
- else
260
- {
261
- $icons_language = "en_US";
262
- }
263
-
264
- if(!isset($sfsi_section8['sfsi_plus_rectsub']))
265
- {
266
- $sfsi_section8['sfsi_plus_rectsub'] = 'no';
267
- }
268
- if(!isset($sfsi_section8['sfsi_plus_rectfb']))
269
- {
270
- $sfsi_section8['sfsi_plus_rectfb'] = 'yes';
271
- }
272
- if(!isset($sfsi_section8['sfsi_plus_recttwtr']))
273
- {
274
- $sfsi_section8['sfsi_plus_recttwtr'] = 'no';
275
- }
276
- if(!isset($sfsi_section8['sfsi_plus_rectpinit']))
277
- {
278
- $sfsi_section8['sfsi_plus_rectpinit'] = 'no';
279
- }
280
-
281
- if(!isset($sfsi_section8['sfsi_plus_rectfbshare']))
282
- {
283
- $sfsi_section8['sfsi_plus_rectfbshare'] = 'no';
284
- }
285
- $common_options_check = (
286
- ($sfsi_section8['sfsi_plus_show_via_widget'] == "yes") ||
287
- ($sfsi_section8['sfsi_plus_float_on_page'] == "yes") ||
288
- (isset($sfsi_section8['sfsi_plus_float_page_position']) && "yes" == $sfsi_section8['sfsi_plus_float_page_position']) ||
289
- ($sfsi_section8['sfsi_plus_place_item_manually'] == "yes") ||
290
- (isset($sfsi_section8['sfsi_plus_place_item_gutenberg']) && $sfsi_section8['sfsi_plus_place_item_gutenberg'] == "yes") ||
291
- (isset($sfsi_section8['sfsi_plus_show_item_onposts']) && "yes" == $sfsi_section8['sfsi_plus_show_item_onposts'] && (isset($sfsi_section8["sfsi_plus_display_button_type"])) && "normal_button" == $sfsi_section8["sfsi_plus_display_button_type"] )
292
- );
293
- if(
294
- (
295
- $sfsi_section8['sfsi_plus_rectfb'] == "yes" &&
296
- $sfsi_section8['sfsi_plus_show_item_onposts'] == "yes" &&
297
- $sfsi_section8['sfsi_plus_display_button_type'] == "standard_buttons"
298
- ) ||
299
- (
300
- $sfsi_section8['sfsi_plus_rectfbshare'] == "yes" &&
301
- $sfsi_section8['sfsi_plus_show_item_onposts'] == "yes" &&
302
- $sfsi_section8['sfsi_plus_display_button_type'] == "standard_buttons"
303
- ) ||
304
- ($sfsi_section1['sfsi_plus_facebook_display']=="yes" && ($sfsi_section2['sfsi_plus_facebookShare_option']=="yes" || $sfsi_section2['sfsi_plus_facebookLike_option']=="yes" ) && $common_options_check)
305
- )
306
- {?>
307
- <!--facebook like and share js -->
308
- <div id="fb-root"></div>
309
-
310
- <script>
311
- (function(d, s, id) {
312
- var js, fjs = d.getElementsByTagName(s)[0];
313
- if (d.getElementById(id)) return;
314
- js = d.createElement(s); js.id = id;
315
- js.src = "//connect.facebook.net/<?php echo $icons_language;?>/sdk.js#xfbml=1&version=v2.5";
316
- fjs.parentNode.insertBefore(js, fjs);
317
- }(document, 'script', 'facebook-jssdk'));</script>
318
- <?php
319
- }
320
-
321
- if(
322
- ($sfsi_section1['sfsi_plus_youtube_display']=="yes" && $sfsi_section2['sfsi_plus_youtube_follow']=="yes" && $common_options_check)
323
- ){?>
324
-
325
- <!-- youtube share -->
326
- <script type="text/javascript">
327
- (function() {
328
- var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
329
- po.src = 'https://apis.google.com/js/platform.js';
330
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
331
- })();
332
- </script>
333
- <?php
334
- }
335
- if(
336
- ($sfsi_section1['sfsi_plus_linkedin_display']=="yes" && ( $sfsi_section2['sfsi_plus_linkedin_follow']=="yes" || $sfsi_section2['sfsi_plus_linkedin_recommendBusines']=="yes" || $sfsi_section2['sfsi_plus_linkedin_SharePage'] == "yes" ) && $common_options_check)
337
- ){
338
- if($icons_language == 'ar_AR')
339
- {
340
- $icons_language = 'ar_AE';
341
- }
342
- if($common_options_check)
343
- {
344
-
345
- ?>
346
- <!-- linkedIn share and follow js -->
347
- <script src="//platform.linkedin.com/in.js">lang: <?php echo $icons_language;?></script>
348
- <?php
349
- }
350
-
351
- }
352
- if(
353
- (
354
- $sfsi_section8['sfsi_plus_rectpinit'] == "yes" &&
355
- $sfsi_section8['sfsi_plus_show_item_onposts'] == "yes" &&
356
- $sfsi_section8['sfsi_plus_display_button_type'] == "standard_buttons"
357
- ) ||
358
- ($sfsi_section1['sfsi_plus_pinterest_display']=="yes" && $sfsi_section2["sfsi_plus_pinterest_pingBlog"]=="yes" && $common_options_check)
359
- ){
360
- ?>
361
- <!--pinit js -->
362
- <script src="//assets.pinterest.com/js/pinit.js"></script>
363
- <?php
364
- }
365
- if(
366
- (
367
- $sfsi_section8['sfsi_plus_recttwtr'] == "yes" &&
368
- $sfsi_section8['sfsi_plus_show_item_onposts'] == "yes" &&
369
- $sfsi_section8['sfsi_plus_display_button_type'] == "standard_buttons"
370
- ) ||
371
- ($sfsi_section1['sfsi_plus_twitter_display']=="yes" && $sfsi_section2["sfsi_plus_twitter_aboutPage"]=="yes" && $common_options_check)
372
- )
373
- {?>
374
- <!-- twitter JS End -->
375
- <script>
376
- !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
377
- <?php
378
- }
379
-
380
- /* activate footer credit link */
381
- if(get_option('sfsi_plus_footer_sec')=="yes")
382
- {
383
- if(!is_admin())
384
- {
385
- //$footer_link='<div class="sfsiplus_footerLnk" style="margin: 0 auto;z-index:1000; absolute; text-align: center;">Social media & sharing icons powered by <a href="https://wordpress.org/plugins/ultimate-social-media-icons/" target="_new">UltimatelySocial</a> ';
386
- $footer_link='<div class="sfsiplus_footerLnk" style="margin: 0 auto;z-index:1000; absolute; text-align: center;"><a href="https://www.ultimatelysocial.com/?utm_source=usmplus_settings_page&utm_campaign=credit_link_to_homepage&utm_medium=banner" target="_new">Social media & sharing icons </a> powered by UltimatelySocial';
387
- $footer_link.="</div>";
388
- echo $footer_link;
389
- }
390
- }
391
-
392
- }
393
- /* filter the content of post */
394
- //commenting following code as we are going to extend this functionality
395
- //add_filter('the_content', 'sfsi_plus_social_buttons_below');
396
-
397
- /* update footer for frontend and admin both */
398
- if(!is_admin())
399
- {
400
- global $post;
401
- add_action( 'wp_footer', 'sfsi_plus_footer_script' );
402
- if(!function_exists('sfsi_plus_check_PopUp')){
403
- include('sfsi_frontpopUp.php');
404
- }
405
- add_action('wp_footer','sfsi_plus_check_PopUp');
406
- add_action('wp_footer','sfsi_plus_frontFloter');
407
- }
408
- if(is_admin())
409
- {
410
- add_action('in_admin_footer', 'sfsi_plus_footer_script');
411
- }
412
- /* ping to vendor site on updation of new post */
413
-
414
-
415
- //<---------------------* Responsive icons *----------------->
416
- function sfsi_plus_social_responsive_buttons($content,$option8,$server_side=false)
417
- {
418
-
419
- if( (isset($option8["sfsi_plus_show_item_onposts"])&& $option8["sfsi_plus_show_item_onposts"]=="yes" && isset($option8["sfsi_plus_display_button_type"]) && $option8["sfsi_plus_display_button_type"]=="responsive_button") || $server_side ):
420
- $option2 = unserialize(get_option('sfsi_plus_section2_options',false));
421
- $option4 = unserialize(get_option('sfsi_plus_section4_options',false));
422
- $icons= "";
423
- $sfsi_plus_responsive_icons = (isset($option8["sfsi_plus_responsive_icons"])?$option8["sfsi_plus_responsive_icons"]:null);
424
-
425
- if(is_null($sfsi_plus_responsive_icons) ){
426
- return ""; // dont return anything if options not set;
427
- }
428
- $icon_width_type = $sfsi_plus_responsive_icons["settings"]["icon_width_type"];
429
- if($option4['sfsi_plus_display_counts']=='yes' &&isset($sfsi_plus_responsive_icons["settings"]['show_count'])&&$sfsi_plus_responsive_icons["settings"]['show_count']=="yes"):
430
-
431
- $counter_class="sfsi_plus_responsive_with_counter_icons";
432
- $couter_display="inline-block";
433
-
434
- else:
435
- $counter_class="sfsi_plus_responsive_without_counter_icons";
436
- $couter_display="none";
437
- endif;
438
- $counts = sfsi_plus_getCounts(true);
439
- $count = 0;
440
- if(isset($counts['email_count'])){
441
- $count = (int)($counts['email_count'])+$count;
442
- }
443
- if(isset($counts['fb_count'])){
444
- $count = (int)($counts['fb_count'])+$count;
445
- }
446
- if(isset($counts['twitter_count'])){
447
- $count = (int)($counts['twitter_count'])+$count;
448
- }else{
449
- $count = 0;
450
- }
451
- $icons .= "<div class='sfsi_plus_responsive_icons' style='display:inline-block; ".($icon_width_type=="Fully Responsive"?"width:100%;display:flex; ":'width:100%')."' data-icon-width-type='".$icon_width_type."' data-icon-width-size='".$sfsi_plus_responsive_icons["settings"]['icon_width_size']."' data-edge-type='".$sfsi_plus_responsive_icons["settings"]['edge_type']."' data-edge-radius='".$sfsi_plus_responsive_icons["settings"]['edge_radius']."' >";
452
- $sfsi_plus_anchor_div_style="";
453
- if($sfsi_plus_responsive_icons["settings"]["edge_type"]==="Round"){
454
- $sfsi_plus_anchor_div_style.=" border-radius:";
455
- if($sfsi_plus_responsive_icons["settings"]["edge_radius"]!==""){
456
- $sfsi_plus_anchor_div_style.=$sfsi_plus_responsive_icons["settings"]["edge_radius"].'px; ';
457
- }else{
458
- $sfsi_plus_anchor_div_style.='0px; ';
459
- }
460
- }
461
-
462
- ob_start();?>
463
- <div class="sfsi_plus_responsive_icons_count sfsi_plus_<?php echo ($icon_width_type=="Fully responsive"?'responsive':'fixed'); ?>_count_container sfsi_plus_<?php echo strtolower($sfsi_plus_responsive_icons['settings']['icon_size']); ?>_button" style='display:<?php echo $couter_display; ?>;text-align:center; background-color:<?php echo $sfsi_plus_responsive_icons['settings']['counter_bg_color'] ;?>;color:<?php echo $sfsi_plus_responsive_icons['settings']['counter_color'] ;?>; <?php echo $sfsi_plus_anchor_div_style; ?>;' >
464
- <h3 style="color:<?php echo $sfsi_plus_responsive_icons['settings']['counter_color'] ;?>; " ><?php echo $count; ?></h3>
465
- <h6 style="color:<?php echo $sfsi_plus_responsive_icons['settings']['counter_color'] ;?>;" ><?php echo $sfsi_plus_responsive_icons['settings']["share_count_text"]; ?></h6>
466
- </div>
467
- <?php
468
- $icons.= ob_get_contents();
469
- ob_end_clean();
470
- $icons .= "\t<div class='sfsi_plus_icons_container ".$counter_class." sfsi_plus_".strtolower($sfsi_plus_responsive_icons['settings']['icon_size'])."_button_container sfsi_plus_icons_container_box_".($icon_width_type!=="Fixed icon width"?"fully":'fixed')."_container ' style='".($icon_width_type!=="Fixed icon width"?"width:100%;display:flex; ":'width:auto')."; text-align:center;' >";
471
- $socialObj = new sfsi_plus_SocialHelper();
472
- //styles
473
- $sfsi_plus_anchor_style="";
474
- if($sfsi_plus_responsive_icons["settings"]["text_align"]=="Centered"){
475
- $sfsi_plus_anchor_style.='text-align:center;';
476
- }
477
- if($sfsi_plus_responsive_icons["settings"]["margin"]!==""){
478
- $sfsi_plus_anchor_style.='margin-left:'.$sfsi_plus_responsive_icons["settings"]["margin"]."px; ";
479
- // $sfsi_plus_anchor_style.='margin-bottom:'.$sfsi_plus_responsive_icons["settings"]["margin"]."px; ";
480
- }
481
- //styles
482
-
483
- if($sfsi_plus_responsive_icons['settings']['icon_width_type']==="Fixed icon width")
484
- {
485
- $sfsi_plus_anchor_div_style.='width:'.$sfsi_plus_responsive_icons['settings']['icon_width_size'].'px;';
486
- }
487
- else{
488
- $sfsi_plus_anchor_style.=" flex-basis:100%;";
489
- $sfsi_plus_anchor_div_style.=" width:100%;";
490
- }
491
- // var_dump($sfsi_plus_anchor_style,$sfsi_plus_anchor_div_style);
492
- foreach($sfsi_plus_responsive_icons['default_icons'] as $icon=>$icon_config){
493
- // var_dump($icon_config);
494
- // $current_url = $socialObj->sfsi_get_custom_share_link(strtolower($icon));
495
- switch($icon){
496
- case "facebook":$share_url="https://www.facebook.com/sharer/sharer.php?u=".get_permalink(); break;
497
- case "Twitter":$twitter_text = $share_url = "https://twitter.com/intent/tweet?text=".get_the_title()."&url=".get_permalink();break;
498
- case "Follow":
499
- // var_dump($option2['sfsi_plus_email_url']);
500
- $share_url = (isset($option2['sfsi_plus_email_url']))
501
- ? $option2['sfsi_plus_email_url']
502
- : 'https://specificfeeds.com/follow';
503
- break;
504
-
505
- }
506
- $icons.="\t\t"."<a ".sfsi_plus_checkNewWindow()." href='".($icon_config['url']==""?$share_url:$icon_config['url'])."' style='".($icon_config['active']=='yes'?($sfsi_plus_responsive_icons['settings']['icon_width_type']==="Fixed icon width"?'display:inline-flex':'display:block'):'display:none').";".$sfsi_plus_anchor_style."' class=".($sfsi_plus_responsive_icons['settings']['icon_width_type']==="Fixed icon width"?'sfsi_plus_responsive_fixed_width':'sfsi_plus_responsive_fluid')." >"."\n";
507
- $icons.="\t\t\t<div class='sfsi_plus_responsive_icon_item_container sfsi_plus_responsive_icon_".strtolower($icon)."_container sfsi_plus_".strtolower($sfsi_plus_responsive_icons['settings']['icon_size'])."_button ".($sfsi_plus_responsive_icons['settings']['style']=="Gradient"?'sfsi_plus_responsive_icon_gradient':'').( " sfsi_plus_".(strtolower($sfsi_plus_responsive_icons['settings']['text_align'])=="centered"?'centered':'left-align')."_icon")."' style='".$sfsi_plus_anchor_div_style." ' >"."\n";
508
- $icons.="\t\t\t\t<img style='max-height: 25px;display:unset;margin:0' src='".SFSI_PLUS_PLUGURL."images/responsive-icon/".$icon.('Follow'===$icon?'.png':'.svg')."'>"."\n";
509
- $icons.="\t\t\t\t<span style='color:#fff' >".($icon_config["text"])."</span>"."\n";
510
- $icons.="\t\t\t</div>"."\n";
511
- $icons.="\t\t</a>"."\n\n";
512
- }
513
- $icons.="</div></div><!--end responsive_icons-->";
514
- return $icons;
515
- endif;
516
- }
517
- ?>
1
+ <?php
2
+ /* add fb like add this share to end of every post */
3
+ function sfsi_plus_social_buttons_below($content)
4
+ {
5
+ global $post;
6
+ $sfsi_section6= unserialize(get_option('sfsi_plus_section6_options',false));
7
+
8
+ //new options that are added on the third questions
9
+ //so in this function we are replacing all the past options
10
+ //that were saved under option6 by new settings saved under option8
11
+ $sfsi_section8= unserialize(get_option('sfsi_plus_section8_options',false));
12
+ $sfsi_plus_show_item_onposts = $sfsi_section8['sfsi_plus_show_item_onposts'];
13
+ //new options that are added on the third questions
14
+
15
+ //checking for standard icons
16
+ if(!isset($sfsi_section8['sfsi_plus_rectsub']))
17
+ {
18
+ $sfsi_section8['sfsi_plus_rectsub'] = 'no';
19
+ }
20
+ if(!isset($sfsi_section8['sfsi_plus_rectfb']))
21
+ {
22
+ $sfsi_section8['sfsi_plus_rectfb'] = 'yes';
23
+ }
24
+ if(!isset($sfsi_section8['sfsi_plus_recttwtr']))
25
+ {
26
+ $sfsi_section8['sfsi_plus_recttwtr'] = 'no';
27
+ }
28
+ if(!isset($sfsi_section8['sfsi_plus_rectpinit']))
29
+ {
30
+ $sfsi_section8['sfsi_plus_rectpinit'] = 'no';
31
+ }
32
+ if(!isset($sfsi_section8['sfsi_plus_rectfbshare']))
33
+ {
34
+ $sfsi_section8['sfsi_plus_rectfbshare'] = 'no';
35
+ }
36
+ //checking for standard icons
37
+
38
+ /* check if option activated in admin or not */
39
+ //if($sfsi_section6['sfsi_plus_show_Onposts']=="yes")
40
+ //removing following condition for now
41
+ /*if($sfsi_section8['sfsi_plus_show_Onposts']=="yes")
42
+ {*/
43
+ $permalink = get_permalink($post->ID);
44
+ $title = get_the_title();
45
+ $sfsiLikeWith="45px;";
46
+
47
+ /* check for counter display */
48
+ //if($sfsi_section6['sfsi_plus_icons_DisplayCounts']=="yes")
49
+
50
+ if($sfsi_section8['sfsi_plus_icons_DisplayCounts']=="yes")
51
+ {
52
+ $show_count=1;
53
+ $sfsiLikeWith="75px;";
54
+ }
55
+ else
56
+ {
57
+ $show_count=0;
58
+ }
59
+ $common_options_check = (($sfsi_section8['sfsi_plus_show_via_widget'] == "yes") || ($sfsi_section8['sfsi_plus_float_on_page'] == "yes") && (isset($sfsi_section8['sfsi_plus_float_page_position'])) || ($sfsi_section8['sfsi_plus_place_item_manually'] == "yes") || ($sfsi_section8['sfsi_plus_place_item_gutenberg'] == "yes"));
60
+
61
+ //$txt=(isset($sfsi_section6['sfsi_plus_textBefor_icons']))? $sfsi_section6['sfsi_plus_textBefor_icons'] : "Share this Post with :" ;
62
+ $txt=(isset($sfsi_section8['sfsi_plus_textBefor_icons']))? $sfsi_section8['sfsi_plus_textBefor_icons'] : "Please follow and like us:" ;
63
+ //$float= $sfsi_section6['sfsi_plus_icons_alignment'];
64
+ $float= $sfsi_section8['sfsi_plus_icons_alignment'];
65
+ if($sfsi_section8['sfsi_plus_rectsub'] == 'yes' || $sfsi_section8['sfsi_plus_rectfb'] == 'yes' || $sfsi_section8['sfsi_plus_recttwtr'] == 'yes' || $sfsi_section8['sfsi_plus_rectpinit'] == 'yes' || $sfsi_section8['sfsi_plus_rectfbshare'] == 'yes')
66
+ {
67
+ $icons="<div class='sfsi_plus_Sicons ".$float."' style='float:".$float."'><div style='display: inline-block;margin-bottom: 0; margin-left: 0; margin-right: 8px; margin-top: 0; vertical-align: middle;width: auto;'><span>".$txt."</span></div>";
68
+ }
69
+ if($sfsi_section8['sfsi_plus_rectsub'] == 'yes')
70
+ {
71
+ if($show_count){$sfsiLikeWithsub = "93px";}else{$sfsiLikeWithsub = "64px";}
72
+ if(!isset($sfsiLikeWithsub)){$sfsiLikeWithsub = $sfsiLikeWith;}
73
+ $icons.="<div class='sf_subscrbe' style='display: inline-block;vertical-align: middle;width: auto;'>".sfsi_plus_Subscribelike($permalink,$show_count)."</div>";
74
+ }
75
+ if($sfsi_section8['sfsi_plus_rectfb'] == 'yes' || $common_options_check)
76
+ {
77
+ $icons.="<div class='sf_fb' style='display: inline-block;vertical-align: middle;width: auto;'>".sfsi_plus_FBlike($permalink,$show_count)."</div>";
78
+ }
79
+
80
+ if($sfsi_section8['sfsi_plus_rectfbshare'] == 'yes' || $common_options_check )
81
+ {
82
+ $icons.="<div class='sf_fb' style='display: inline-block;vertical-align: middle;width: auto;'>".sfsi_plus_FBshare($permalink,$show_count)."</div>";
83
+ }
84
+
85
+ if($sfsi_section8['sfsi_plus_recttwtr'] == 'yes')
86
+ {
87
+ if($show_count){$sfsiLikeWithtwtr = "77px";}else{$sfsiLikeWithtwtr = "56px";}
88
+ if(!isset($sfsiLikeWithtwtr)){$sfsiLikeWithtwtr = $sfsiLikeWith;}
89
+ $icons.="<div class='sf_twiter' style='display: inline-block;vertical-align: middle;width: auto;'>".sfsi_plus_twitterlike($permalink,$show_count)."</div>";
90
+ }
91
+ if($sfsi_section8['sfsi_plus_rectpinit'] == 'yes')
92
+ {
93
+ if($show_count){$sfsiLikeWithpinit = "100px";}else{$sfsiLikeWithpinit = "auto";}
94
+ $icons.="<div class='sf_pinit' style='display: inline-block;text-align:left;vertical-align: middle;width: ".$sfsiLikeWithpinit.";'>".sfsi_plus_pinitpinterest($permalink,$show_count)."</div>";
95
+ }
96
+ $icons.="</div>";
97
+
98
+ if(!is_feed() && !is_home() && !is_page())
99
+ {
100
+ $content = $content .$icons;
101
+ }
102
+ //}
103
+ return $content;
104
+ }
105
+
106
+ /*subscribe like*/
107
+ function sfsi_plus_Subscribelike($permalink, $show_count)
108
+ {
109
+ global $socialObj;
110
+ $socialObj = new sfsi_plus_SocialHelper();
111
+
112
+ $sfsi_plus_section2_options= unserialize(get_option('sfsi_plus_section2_options',false));
113
+ $sfsi_plus_section4_options = unserialize(get_option('sfsi_plus_section4_options',false));
114
+ $sfsi_plus_section8_options= unserialize(get_option('sfsi_plus_section8_options',false));
115
+ $option5 = unserialize(get_option('sfsi_plus_section5_options',false));
116
+
117
+ $post_icons = $option5['sfsi_plus_follow_icons_language'];
118
+ $visit_icon1 = SFSI_PLUS_DOCROOT.'/images/visit_icons/Follow/icon_'.$post_icons.'.png';
119
+ $visit_iconsUrl = SFSI_PLUS_PLUGURL."images/";
120
+
121
+ if(file_exists($visit_icon1))
122
+ {
123
+ $visit_icon = $visit_iconsUrl."visit_icons/Follow/icon_".$post_icons.".png";
124
+ }
125
+ else
126
+ {
127
+ $visit_icon = $visit_iconsUrl."follow_subscribe.png";
128
+ }
129
+
130
+ $url = (isset($sfsi_plus_section2_options['sfsi_plus_email_url'])) ? $sfsi_plus_section2_options['sfsi_plus_email_url'] : 'https://specificfeeds.com/follow';
131
+
132
+ if($sfsi_plus_section4_options['sfsi_plus_email_countsFrom']=="manual")
133
+ {
134
+ $counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_email_manualCounts']);
135
+ }
136
+ else
137
+ {
138
+ $counts= $socialObj->SFSI_getFeedSubscriber(sanitize_text_field(get_option('sfsi_plus_feed_id',false)));
139
+ }
140
+
141
+ if($sfsi_plus_section8_options['sfsi_plus_icons_DisplayCounts']=="yes")
142
+ {
143
+ $icon = '<a href="'.$url.'" target="_blank"><img src="'.$visit_icon.'" /></a>
144
+ <span class="bot_no">'.$counts.'</span>';
145
+ }
146
+ else
147
+ {
148
+ $icon = '<a href="'.$url.'" target="_blank"><img src="'.$visit_icon.'" /></a>';
149
+ }
150
+ return $icon;
151
+ }
152
+ /*subscribe like*/
153
+
154
+ /*twitter like*/
155
+ function sfsi_plus_twitterlike($permalink, $show_count)
156
+ {
157
+ global $socialObj;
158
+ $socialObj = new sfsi_plus_SocialHelper();
159
+ $twitter_text = '';
160
+ $sfsi_plus_section5_options = unserialize(get_option('sfsi_plus_section5_options',false));
161
+ $icons_language = $sfsi_plus_section5_options['sfsi_plus_icons_language'];
162
+ if(!empty($permalink))
163
+ {
164
+ $postid = url_to_postid( $permalink );
165
+ }
166
+ if(!empty($postid))
167
+ {
168
+ $twitter_text = get_the_title($postid);
169
+ }
170
+ return $socialObj->sfsi_twitterSharewithcount($permalink,$twitter_text, $show_count, $icons_language);
171
+ }
172
+ /*twitter like*/
173
+
174
+ /* create fb like button */
175
+ function sfsi_plus_FBlike($permalink,$show_count)
176
+ {
177
+ $send = 'false';
178
+ $width = 180;
179
+
180
+ $fb_like_html = '';
181
+
182
+ $fb_like_html .= '<div class="fb-like" data-href="'.$permalink.'" data-action="like" data-size="small" data-show-faces="false" data-share="false"';
183
+
184
+ if(1 == $show_count)
185
+ {
186
+ $fb_like_html .= 'data-layout="button_count"';
187
+ }
188
+ else
189
+ {
190
+ $fb_like_html .= 'data-layout="button"';
191
+ }
192
+
193
+ $fb_like_html .= ' ></div>';
194
+
195
+ return $fb_like_html;
196
+ }
197
+
198
+ function sfsi_plus_FBshare($permalink,$show_count){
199
+
200
+ $send = 'false';
201
+ $width = 180;
202
+
203
+ $fb_share_html = '';
204
+
205
+ $fb_share_html .= '<div class="fb-share-button" data-action="share" data-href="'.$permalink.'" data-size="small" data-mobile-iframe="true"';
206
+
207
+ if(1 == $show_count)
208
+ {
209
+ $fb_share_html .= 'data-layout="button_count"';
210
+ }
211
+ else
212
+ {
213
+ $fb_share_html .= 'data-layout="button"';
214
+ }
215
+
216
+ $fb_share_html .= '><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u='.$permalink.';src=sdkpreparse" class="fb-xfbml-parse-ignore"></a></div>';
217
+
218
+ return $fb_share_html;
219
+
220
+ }
221
+ /* create pinit button */
222
+
223
+ function sfsi_plus_pinitpinterest($permalink,$show_count)
224
+ {
225
+ $pinit_html = '<a href="https://www.pinterest.com/pin/create/button/?url=&media=&description=" data-pin-do="buttonPin" data-pin-save="true"';
226
+
227
+ if($show_count)
228
+ {
229
+ $pinit_html .= 'data-pin-count="beside"';
230
+ }
231
+ else
232
+ {
233
+ $pinit_html .= 'data-pin-count="none"';
234
+ }
235
+
236
+ $pinit_html .= '></a>';
237
+
238
+ return $pinit_html;
239
+ }
240
+
241
+ /* add all external javascript to wp_footer */
242
+ function sfsi_plus_footer_script()
243
+ {
244
+ $sfsi_section1= unserialize(get_option('sfsi_plus_section1_options',false));
245
+ $sfsi_section6= unserialize(get_option('sfsi_plus_section6_options',false));
246
+ $sfsi_section8= unserialize(get_option('sfsi_plus_section8_options',false));
247
+ $sfsi_section2= unserialize(get_option('sfsi_plus_section2_options',false));
248
+
249
+
250
+ $sfsi_plus_section5_options = unserialize(get_option('sfsi_plus_section5_options',false));
251
+
252
+ if(
253
+ isset($sfsi_plus_section5_options['sfsi_plus_icons_language']) &&
254
+ !empty($sfsi_plus_section5_options['sfsi_plus_icons_language'])
255
+ )
256
+ {
257
+ $icons_language = $sfsi_plus_section5_options['sfsi_plus_icons_language'];
258
+ }
259
+ else
260
+ {
261
+ $icons_language = "en_US";
262
+ }
263
+
264
+ if(!isset($sfsi_section8['sfsi_plus_rectsub']))
265
+ {
266
+ $sfsi_section8['sfsi_plus_rectsub'] = 'no';
267
+ }
268
+ if(!isset($sfsi_section8['sfsi_plus_rectfb']))
269
+ {
270
+ $sfsi_section8['sfsi_plus_rectfb'] = 'yes';
271
+ }
272
+ if(!isset($sfsi_section8['sfsi_plus_recttwtr']))
273
+ {
274
+ $sfsi_section8['sfsi_plus_recttwtr'] = 'no';
275
+ }
276
+ if(!isset($sfsi_section8['sfsi_plus_rectpinit']))
277
+ {
278
+ $sfsi_section8['sfsi_plus_rectpinit'] = 'no';
279
+ }
280
+
281
+ if(!isset($sfsi_section8['sfsi_plus_rectfbshare']))
282
+ {
283
+ $sfsi_section8['sfsi_plus_rectfbshare'] = 'no';
284
+ }
285
+ $common_options_check = (
286
+ ($sfsi_section8['sfsi_plus_show_via_widget'] == "yes") ||
287
+ ($sfsi_section8['sfsi_plus_float_on_page'] == "yes") ||
288
+ (isset($sfsi_section8['sfsi_plus_float_page_position']) && "yes" == $sfsi_section8['sfsi_plus_float_page_position']) ||
289
+ ($sfsi_section8['sfsi_plus_place_item_manually'] == "yes") ||
290
+ (isset($sfsi_section8['sfsi_plus_place_item_gutenberg']) && $sfsi_section8['sfsi_plus_place_item_gutenberg'] == "yes") ||
291
+ (isset($sfsi_section8['sfsi_plus_show_item_onposts']) && "yes" == $sfsi_section8['sfsi_plus_show_item_onposts'] && (isset($sfsi_section8["sfsi_plus_display_button_type"])) && "normal_button" == $sfsi_section8["sfsi_plus_display_button_type"] )
292
+ );
293
+ if(
294
+ (
295
+ $sfsi_section8['sfsi_plus_rectfb'] == "yes" &&
296
+ $sfsi_section8['sfsi_plus_show_item_onposts'] == "yes" &&
297
+ $sfsi_section8['sfsi_plus_display_button_type'] == "standard_buttons"
298
+ ) ||
299
+ (
300
+ $sfsi_section8['sfsi_plus_rectfbshare'] == "yes" &&
301
+ $sfsi_section8['sfsi_plus_show_item_onposts'] == "yes" &&
302
+ $sfsi_section8['sfsi_plus_display_button_type'] == "standard_buttons"
303
+ ) ||
304
+ ($sfsi_section1['sfsi_plus_facebook_display']=="yes" && ($sfsi_section2['sfsi_plus_facebookShare_option']=="yes" || $sfsi_section2['sfsi_plus_facebookLike_option']=="yes" ) && $common_options_check)
305
+ )
306
+ {?>
307
+ <!--facebook like and share js -->
308
+ <div id="fb-root"></div>
309
+
310
+ <script>
311
+ (function(d, s, id) {
312
+ var js, fjs = d.getElementsByTagName(s)[0];
313
+ if (d.getElementById(id)) return;
314
+ js = d.createElement(s); js.id = id;
315
+ js.src = "//connect.facebook.net/<?php echo $icons_language;?>/sdk.js#xfbml=1&version=v2.5";
316
+ fjs.parentNode.insertBefore(js, fjs);
317
+ }(document, 'script', 'facebook-jssdk'));</script>
318
+ <?php
319
+ }
320
+
321
+ if(
322
+ ($sfsi_section1['sfsi_plus_youtube_display']=="yes" && $sfsi_section2['sfsi_plus_youtube_follow']=="yes" && $common_options_check)
323
+ ){?>
324
+
325
+ <!-- youtube share -->
326
+ <script type="text/javascript">
327
+ (function() {
328
+ var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
329
+ po.src = 'https://apis.google.com/js/platform.js';
330
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
331
+ })();
332
+ </script>
333
+ <?php
334
+ }
335
+ if(
336
+ ($sfsi_section1['sfsi_plus_linkedin_display']=="yes" && ( $sfsi_section2['sfsi_plus_linkedin_follow']=="yes" || $sfsi_section2['sfsi_plus_linkedin_recommendBusines']=="yes" || $sfsi_section2['sfsi_plus_linkedin_SharePage'] == "yes" ) && $common_options_check)
337
+ ){
338
+ if($icons_language == 'ar_AR')
339
+ {
340
+ $icons_language = 'ar_AE';
341
+ }
342
+ if($common_options_check)
343
+ {
344
+
345
+ ?>
346
+ <!-- linkedIn share and follow js -->
347
+ <script src="//platform.linkedin.com/in.js">lang: <?php echo $icons_language;?></script>
348
+ <?php
349
+ }
350
+
351
+ }
352
+ if(
353
+ (
354
+ $sfsi_section8['sfsi_plus_rectpinit'] == "yes" &&
355
+ $sfsi_section8['sfsi_plus_show_item_onposts'] == "yes" &&
356
+ $sfsi_section8['sfsi_plus_display_button_type'] == "standard_buttons"
357
+ ) ||
358
+ ($sfsi_section1['sfsi_plus_pinterest_display']=="yes" && $sfsi_section2["sfsi_plus_pinterest_pingBlog"]=="yes" && $common_options_check)
359
+ ){
360
+ ?>
361
+ <!--pinit js -->
362
+ <script src="//assets.pinterest.com/js/pinit.js"></script>
363
+ <?php
364
+ }
365
+ if(
366
+ (
367
+ $sfsi_section8['sfsi_plus_recttwtr'] == "yes" &&
368
+ $sfsi_section8['sfsi_plus_show_item_onposts'] == "yes" &&
369
+ $sfsi_section8['sfsi_plus_display_button_type'] == "standard_buttons"
370
+ ) ||
371
+ ($sfsi_section1['sfsi_plus_twitter_display']=="yes" && $sfsi_section2["sfsi_plus_twitter_aboutPage"]=="yes" && $common_options_check)
372
+ )
373
+ {?>
374
+ <!-- twitter JS End -->
375
+ <script>
376
+ !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
377
+ <?php
378
+ }
379
+
380
+ /* activate footer credit link */
381
+ if(get_option('sfsi_plus_footer_sec')=="yes")
382
+ {
383
+ if(!is_admin())
384
+ {
385
+ //$footer_link='<div class="sfsiplus_footerLnk" style="margin: 0 auto;z-index:1000; absolute; text-align: center;">Social media & sharing icons powered by <a href="https://wordpress.org/plugins/ultimate-social-media-icons/" target="_new">UltimatelySocial</a> ';
386
+ $footer_link='<div class="sfsiplus_footerLnk" style="margin: 0 auto;z-index:1000; absolute; text-align: center;"><a href="https://www.ultimatelysocial.com/?utm_source=usmplus_settings_page&utm_campaign=credit_link_to_homepage&utm_medium=banner" target="_new">Social media & sharing icons </a> powered by UltimatelySocial';
387
+ $footer_link.="</div>";
388
+ echo $footer_link;
389
+ }
390
+ }
391
+
392
+ }
393
+ /* filter the content of post */
394
+ //commenting following code as we are going to extend this functionality
395
+ //add_filter('the_content', 'sfsi_plus_social_buttons_below');
396
+
397
+ /* update footer for frontend and admin both */
398
+ if(!is_admin())
399
+ {
400
+ global $post;
401
+ add_action( 'wp_footer', 'sfsi_plus_footer_script' );
402
+ if(!function_exists('sfsi_plus_check_PopUp')){
403
+ include('sfsi_frontpopUp.php');
404
+ }
405
+ add_action('wp_footer','sfsi_plus_check_PopUp');
406
+ add_action('wp_footer','sfsi_plus_frontFloter');
407
+ }
408
+ if(is_admin())
409
+ {
410
+ add_action('in_admin_footer', 'sfsi_plus_footer_script');
411
+ }
412
+ /* ping to vendor site on updation of new post */
413
+
414
+
415
+ //<---------------------* Responsive icons *----------------->
416
+ function sfsi_plus_social_responsive_buttons($content,$option8,$server_side=false)
417
+ {
418
+
419
+ if( (isset($option8["sfsi_plus_show_item_onposts"])&& $option8["sfsi_plus_show_item_onposts"]=="yes" && isset($option8["sfsi_plus_display_button_type"]) && $option8["sfsi_plus_display_button_type"]=="responsive_button") || $server_side ):
420
+ $option2 = unserialize(get_option('sfsi_plus_section2_options',false));
421
+ $option4 = unserialize(get_option('sfsi_plus_section4_options',false));
422
+ $icons= "";
423
+ $sfsi_plus_responsive_icons = (isset($option8["sfsi_plus_responsive_icons"])?$option8["sfsi_plus_responsive_icons"]:null);
424
+
425
+ if(is_null($sfsi_plus_responsive_icons) ){
426
+ return ""; // dont return anything if options not set;
427
+ }
428
+ $icon_width_type = $sfsi_plus_responsive_icons["settings"]["icon_width_type"];
429
+ if($option4['sfsi_plus_display_counts']=='yes' &&isset($sfsi_plus_responsive_icons["settings"]['show_count'])&&$sfsi_plus_responsive_icons["settings"]['show_count']=="yes"):
430
+
431
+ $counter_class="sfsi_plus_responsive_with_counter_icons";
432
+ $couter_display="inline-block";
433
+
434
+ else:
435
+ $counter_class="sfsi_plus_responsive_without_counter_icons";
436
+ $couter_display="none";
437
+ endif;
438
+ $counts = sfsi_plus_getCounts(true);
439
+ $count = 0;
440
+ if(isset($counts['email_count'])){
441
+ $count = (int)($counts['email_count'])+$count;
442
+ }
443
+ if(isset($counts['fb_count'])){
444
+ $count = (int)($counts['fb_count'])+$count;
445
+ }
446
+ if(isset($counts['twitter_count'])){
447
+ $count = (int)($counts['twitter_count'])+$count;
448
+ }else{
449
+ $count = 0;
450
+ }
451
+ $icons .= "<div class='sfsi_plus_responsive_icons' style='display:inline-block; ".($icon_width_type=="Fully Responsive"?"width:100%;display:flex; ":'width:100%')."' data-icon-width-type='".$icon_width_type."' data-icon-width-size='".$sfsi_plus_responsive_icons["settings"]['icon_width_size']."' data-edge-type='".$sfsi_plus_responsive_icons["settings"]['edge_type']."' data-edge-radius='".$sfsi_plus_responsive_icons["settings"]['edge_radius']."' >";
452
+ $sfsi_plus_anchor_div_style="";
453
+ if($sfsi_plus_responsive_icons["settings"]["edge_type"]==="Round"){
454
+ $sfsi_plus_anchor_div_style.=" border-radius:";
455
+ if($sfsi_plus_responsive_icons["settings"]["edge_radius"]!==""){
456
+ $sfsi_plus_anchor_div_style.=$sfsi_plus_responsive_icons["settings"]["edge_radius"].'px; ';
457
+ }else{
458
+ $sfsi_plus_anchor_div_style.='0px; ';
459
+ }
460
+ }
461
+
462
+ ob_start();?>
463
+ <div class="sfsi_plus_responsive_icons_count sfsi_plus_<?php echo ($icon_width_type=="Fully responsive"?'responsive':'fixed'); ?>_count_container sfsi_plus_<?php echo strtolower($sfsi_plus_responsive_icons['settings']['icon_size']); ?>_button" style='display:<?php echo $couter_display; ?>;text-align:center; background-color:<?php echo $sfsi_plus_responsive_icons['settings']['counter_bg_color'] ;?>;color:<?php echo $sfsi_plus_responsive_icons['settings']['counter_color'] ;?>; <?php echo $sfsi_plus_anchor_div_style; ?>;' >
464
+ <h3 style="color:<?php echo $sfsi_plus_responsive_icons['settings']['counter_color'] ;?>; " ><?php echo $count; ?></h3>
465
+ <h6 style="color:<?php echo $sfsi_plus_responsive_icons['settings']['counter_color'] ;?>;" ><?php echo $sfsi_plus_responsive_icons['settings']["share_count_text"]; ?></h6>
466
+ </div>
467
+ <?php
468
+ $icons.= ob_get_contents();
469
+ ob_end_clean();
470
+ $icons .= "\t<div class='sfsi_plus_icons_container ".$counter_class." sfsi_plus_".strtolower($sfsi_plus_responsive_icons['settings']['icon_size'])."_button_container sfsi_plus_icons_container_box_".($icon_width_type!=="Fixed icon width"?"fully":'fixed')."_container ' style='".($icon_width_type!=="Fixed icon width"?"width:100%;display:flex; ":'width:auto')."; text-align:center;' >";
471
+ $socialObj = new sfsi_plus_SocialHelper();
472
+ //styles
473
+ $sfsi_plus_anchor_style="";
474
+ if($sfsi_plus_responsive_icons["settings"]["text_align"]=="Centered"){
475
+ $sfsi_plus_anchor_style.='text-align:center;';
476
+ }
477
+ if($sfsi_plus_responsive_icons["settings"]["margin"]!==""){
478
+ $sfsi_plus_anchor_style.='margin-left:'.$sfsi_plus_responsive_icons["settings"]["margin"]."px; ";
479
+ // $sfsi_plus_anchor_style.='margin-bottom:'.$sfsi_plus_responsive_icons["settings"]["margin"]."px; ";
480
+ }
481
+ //styles
482
+
483
+ if($sfsi_plus_responsive_icons['settings']['icon_width_type']==="Fixed icon width")
484
+ {
485
+ $sfsi_plus_anchor_div_style.='width:'.$sfsi_plus_responsive_icons['settings']['icon_width_size'].'px;';
486
+ }
487
+ else{
488
+ $sfsi_plus_anchor_style.=" flex-basis:100%;";
489
+ $sfsi_plus_anchor_div_style.=" width:100%;";
490
+ }
491
+ // var_dump($sfsi_plus_anchor_style,$sfsi_plus_anchor_div_style);
492
+ foreach($sfsi_plus_responsive_icons['default_icons'] as $icon=>$icon_config){
493
+ // var_dump($icon_config);
494
+ // $current_url = $socialObj->sfsi_get_custom_share_link(strtolower($icon));
495
+ switch($icon){
496
+ case "facebook":$share_url="https://www.facebook.com/sharer/sharer.php?u=".get_permalink(); break;
497
+ case "Twitter":$twitter_text = $share_url = "https://twitter.com/intent/tweet?text=".get_the_title()."&url=".get_permalink();break;
498
+ case "Follow":
499
+ // var_dump($option2['sfsi_plus_email_url']);
500
+ $share_url = (isset($option2['sfsi_plus_email_url']))
501
+ ? $option2['sfsi_plus_email_url']
502
+ : 'https://specificfeeds.com/follow';
503
+ break;
504
+
505
+ }
506
+ $icons.="\t\t"."<a ".sfsi_plus_checkNewWindow()." href='".($icon_config['url']==""?$share_url:$icon_config['url'])."' style='".($icon_config['active']=='yes'?($sfsi_plus_responsive_icons['settings']['icon_width_type']==="Fixed icon width"?'display:inline-flex':'display:block'):'display:none').";".$sfsi_plus_anchor_style."' class=".($sfsi_plus_responsive_icons['settings']['icon_width_type']==="Fixed icon width"?'sfsi_plus_responsive_fixed_width':'sfsi_plus_responsive_fluid')." >"."\n";
507
+ $icons.="\t\t\t<div class='sfsi_plus_responsive_icon_item_container sfsi_plus_responsive_icon_".strtolower($icon)."_container sfsi_plus_".strtolower($sfsi_plus_responsive_icons['settings']['icon_size'])."_button ".($sfsi_plus_responsive_icons['settings']['style']=="Gradient"?'sfsi_plus_responsive_icon_gradient':'').( " sfsi_plus_".(strtolower($sfsi_plus_responsive_icons['settings']['text_align'])=="centered"?'centered':'left-align')."_icon")."' style='".$sfsi_plus_anchor_div_style." ' >"."\n";
508
+ $icons.="\t\t\t\t<img style='max-height: 25px;display:unset;margin:0' src='".SFSI_PLUS_PLUGURL."images/responsive-icon/".$icon.('Follow'===$icon?'.png':'.svg')."'>"."\n";
509
+ $icons.="\t\t\t\t<span style='color:#fff' >".($icon_config["text"])."</span>"."\n";
510
+ $icons.="\t\t\t</div>"."\n";
511
+ $icons.="\t\t</a>"."\n\n";
512
+ }
513
+ $icons.="</div></div><!--end responsive_icons-->";
514
+ return $icons;
515
+ endif;
516
+ }
517
+ ?>
libs/sfsi_custom_social_sharing_data.php CHANGED
@@ -1,77 +1,77 @@
1
- <?php
2
-
3
- function sfsi_plus_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_plus_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 >
43
- window.addEventListener('sfsi_plus_functions_loaded',function(){
44
- jQuery('.sfsi_plus_hidenotice').on('click',function(){
45
- var data = {
46
- action:"plus_update_sharing_settings",
47
- sfsi_plus_custom_social_hide:"yes",
48
- nonce: '<?php echo wp_create_nonce('plus_update_sharing_settings') ?>'
49
- };
50
- jQuery.post(ajaxurl, data, function(response) {
51
- if(response){
52
- alert('Settings updated');
53
- jQuery('#sfsi-plus-social-media').remove();
54
- }
55
- });
56
- });
57
- });
58
- </script>
59
-
60
- <div class="sfsi_new_prmium_follw"><p><b><?php _e("New:",SFSI_PLUS_DOMAIN); ?></b> <?php _e("The Premium Plugin (Ultimate Social Media) it allows you to define which picture, snippet text or tweet gets shared.",SFSI_PLUS_DOMAIN); ?> <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_post_or_page&utm_campaign=define_pic_and_text&utm_medium=banner" target="_blank"><?php _e("See all features",SFSI_PLUS_DOMAIN); ?></a></p><a class="sfsi_plus_hidenotice" href="javascript:void(0)"><?php _e("Hide this notice",SFSI_PLUS_DOMAIN); ?></a></div>
61
-
62
- <?php }
63
-
64
-
65
- function sfsi_plus_icons_add_meta_boxes() {
66
- $screen = get_current_screen();
67
- $option5 = unserialize(get_option('sfsi_plus_section5_options',false));
68
- $hideSectionVal = (isset($option5['sfsi_plus_custom_social_hide'])) ? $option5['sfsi_plus_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-plus-social-media', 'Ultimate Social Media – Sharing text & pictures', 'sfsi_plus_social_media_metabox', $screen->post_type, 'normal', 'low' );
73
- }
74
- }
75
- }
76
- add_action( 'add_meta_boxes', 'sfsi_plus_icons_add_meta_boxes' );
77
  ?>
1
+ <?php
2
+
3
+ function sfsi_plus_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_plus_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 >
43
+ window.addEventListener('sfsi_plus_functions_loaded',function(){
44
+ jQuery('.sfsi_plus_hidenotice').on('click',function(){
45
+ var data = {
46
+ action:"plus_update_sharing_settings",
47
+ sfsi_plus_custom_social_hide:"yes",
48
+ nonce: '<?php echo wp_create_nonce('plus_update_sharing_settings') ?>'
49
+ };
50
+ jQuery.post(ajaxurl, data, function(response) {
51
+ if(response){
52
+ alert('Settings updated');
53
+ jQuery('#sfsi-plus-social-media').remove();
54
+ }
55
+ });
56
+ });
57
+ });
58
+ </script>
59
+
60
+ <div class="sfsi_new_prmium_follw"><p><b><?php _e("New:",SFSI_PLUS_DOMAIN); ?></b> <?php _e("The Premium Plugin (Ultimate Social Media) it allows you to define which picture, snippet text or tweet gets shared.",SFSI_PLUS_DOMAIN); ?> <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_post_or_page&utm_campaign=define_pic_and_text&utm_medium=banner" target="_blank"><?php _e("See all features",SFSI_PLUS_DOMAIN); ?></a></p><a class="sfsi_plus_hidenotice" href="javascript:void(0)"><?php _e("Hide this notice",SFSI_PLUS_DOMAIN); ?></a></div>
61
+
62
+ <?php }
63
+
64
+
65
+ function sfsi_plus_icons_add_meta_boxes() {
66
+ $screen = get_current_screen();
67
+ $option5 = unserialize(get_option('sfsi_plus_section5_options',false));
68
+ $hideSectionVal = (isset($option5['sfsi_plus_custom_social_hide'])) ? $option5['sfsi_plus_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-plus-social-media', 'Ultimate Social Media – Sharing text & pictures', 'sfsi_plus_social_media_metabox', $screen->post_type, 'normal', 'low' );
73
+ }
74
+ }
75
+ }
76
+ add_action( 'add_meta_boxes', 'sfsi_plus_icons_add_meta_boxes' );
77
  ?>
libs/sfsi_install_uninstall.php CHANGED
@@ -1,1150 +1,1155 @@
1
- <?php
2
- function sfsi_plus_update_plugin()
3
- {
4
- if($feed_id = sanitize_text_field(get_option('sfsi_plus_feed_id')))
5
- {
6
- if(is_numeric($feed_id))
7
- {
8
- $sfsiId = SFSI_PLUS_updateFeedUrl();
9
- update_option('sfsi_plus_feed_id' , sanitize_text_field($sfsiId->feed_id));
10
- update_option('sfsi_plus_redirect_url' , sanitize_text_field($sfsiId->redirect_url));
11
- }
12
- }
13
-
14
- //Install version
15
- update_option("sfsi_plus_pluginVersion", "3.26");
16
-
17
- if(!get_option('sfsi_plus_serverphpVersionnotification'))
18
- {
19
- add_option("sfsi_plus_serverphpVersionnotification", "yes");
20
- }
21
- /* show notification on about mobile setting */
22
- if(!get_option('sfsi_plus_show_Setting_mobile_notification'))
23
- {
24
- add_option("sfsi_plus_show_Setting_mobile_notification", "yes");
25
- }
26
- /* show premium notification */
27
- if(!get_option('sfsi_plus_show_premium_notification'))
28
- {
29
- add_option("sfsi_plus_show_premium_notification", "yes");
30
- }
31
- if(!get_option('sfsi_plus_show_premium_cumulative_count_notification'))
32
- {
33
- add_option("sfsi_plus_show_premium_cumulative_count_notification", "yes");
34
- }
35
- /*show notification*/
36
- if(!get_option('sfsi_plus_show_notification'))
37
- {
38
- add_option("sfsi_plus_show_notification", "yes");
39
- }
40
- /* show new notification*/
41
- if(!get_option('sfsi_plus_new_show_notification'))
42
- {
43
- add_option("sfsi_plus_new_show_notification", "no");
44
- }
45
-
46
-
47
- // var_dump(get_option('sfsi_plus_custom_icons'),'yes');
48
- // die();
49
-
50
- if(!get_option('sfsi_plus_custom_icons'))
51
- {
52
- update_option("sfsi_plus_custom_icons", "yes");
53
- }
54
- add_option('sfsi_plus_footer_sec','no');
55
-
56
- /* subscription form */
57
- $options9 = array('sfsi_plus_form_adjustment'=>'yes',
58
- 'sfsi_plus_form_height'=>'180',
59
- 'sfsi_plus_form_width' =>'230',
60
- 'sfsi_plus_form_border'=>'yes',
61
- 'sfsi_plus_form_border_thickness'=>'1',
62
- 'sfsi_plus_form_border_color'=>'#b5b5b5',
63
- 'sfsi_plus_form_background'=>'#ffffff',
64
-
65
- 'sfsi_plus_form_heading_text'=>'Get new posts by email:',
66
- 'sfsi_plus_form_heading_font'=>'Helvetica,Arial,sans-serif',
67
- 'sfsi_plus_form_heading_fontstyle'=>'bold',
68
- 'sfsi_plus_form_heading_fontcolor'=>'#000000',
69
- 'sfsi_plus_form_heading_fontsize'=>'16',
70
- 'sfsi_plus_form_heading_fontalign'=>'center',
71
-
72
- 'sfsi_plus_form_field_text'=>'Enter your email',
73
- 'sfsi_plus_form_field_font'=>'Helvetica,Arial,sans-serif',
74
- 'sfsi_plus_form_field_fontstyle'=>'normal',
75
- 'sfsi_plus_form_field_fontcolor'=>'#000000',
76
- 'sfsi_plus_form_field_fontsize'=>'14',
77
- 'sfsi_plus_form_field_fontalign'=>'center',
78
-
79
- 'sfsi_plus_form_button_text'=>'Subscribe',
80
- 'sfsi_plus_form_button_font'=>'Helvetica,Arial,sans-serif',
81
- 'sfsi_plus_form_button_fontstyle'=>'bold',
82
- 'sfsi_plus_form_button_fontcolor'=>'#000000',
83
- 'sfsi_plus_form_button_fontsize'=>'16',
84
- 'sfsi_plus_form_button_fontalign'=>'center',
85
- 'sfsi_plus_form_button_background'=>'#dedede',
86
- );
87
- add_option('sfsi_plus_section9_options', serialize($options9));
88
-
89
- $sfsi_plus_instagram_sf_count = unserialize(get_option('sfsi_plus_instagram_sf_count',false));
90
- /*Extra important options*/
91
- if($sfsi_plus_instagram_sf_count === false){
92
- $sfsi_plus_instagram_sf_count = array(
93
- "date_sf" => strtotime(date("Y-m-d")),
94
- "date_instagram" => strtotime(date("Y-m-d")),
95
- "sfsi_plus_sf_count" => "",
96
- "sfsi_plus_instagram_count" => ""
97
- );
98
- add_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
99
- }else{
100
- if(isset($sfsi_plus_instagram_sf_count["date"])) {
101
- $sfsi_plus_instagram_sf_count["date_sf"] = $sfsi_plus_instagram_sf_count["date"];
102
- $sfsi_plus_instagram_sf_count["date_instagram"] = $sfsi_plus_instagram_sf_count["date"];
103
- update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
104
- }
105
- }
106
-
107
- /*Float Icon setting*/
108
- $option8 = unserialize(get_option('sfsi_plus_section8_options',false));
109
- if(isset($option8) && !empty($option8) && !isset($option8['sfsi_plus_icons_floatMargin_top']))
110
- {
111
- $option8['sfsi_plus_icons_floatMargin_top'] = '';
112
- $option8['sfsi_plus_icons_floatMargin_bottom'] = '';
113
- $option8['sfsi_plus_icons_floatMargin_left'] = '';
114
- $option8['sfsi_plus_icons_floatMargin_right'] = '';
115
- update_option('sfsi_plus_section8_options', serialize($option8));
116
- }
117
- if(isset($option8) && !empty($option8))
118
- {
119
- if(!isset($option8['sfsi_plus_rectpinit']))
120
- {
121
- $option8['sfsi_plus_rectpinit'] = 'no';
122
- }
123
- if(!isset($option8['sfsi_plus_rectfbshare']))
124
- {
125
- $option8['sfsi_plus_rectfbshare'] = 'no';
126
- }
127
- update_option('sfsi_plus_section8_options', serialize($option8));
128
- }
129
-
130
- /*Language icons*/
131
- $option5 = unserialize(get_option('sfsi_plus_section5_options',false));
132
-
133
- if(isset($option5) && !empty($option5))
134
- {
135
- if(!isset($option5['sfsi_plus_follow_icons_language'])){
136
- $option5['sfsi_plus_follow_icons_language'] = 'Follow_en_US';
137
- }
138
- if(!isset($option5['sfsi_plus_facebook_icons_language'])){
139
- $option5['sfsi_plus_facebook_icons_language'] = 'Visit_us_en_US';
140
- }
141
- if(!isset($option5['sfsi_plus_twitter_icons_language'])){
142
- $option5['sfsi_plus_twitter_icons_language'] = 'Visit_us_en_US';
143
- }
144
- if(!isset($option5['sfsi_plus_icons_language'])){
145
- $option5['sfsi_plus_icons_language'] = 'en_US';
146
- }
147
- if(!isset($option5['sfsi_plus_premium_size_box'])){
148
- $option5['sfsi_plus_premium_size_box'] = 'no';
149
- }
150
- if(!isset($option5['sfsi_plus_custom_social_hide'])){
151
- $option5['sfsi_plus_custom_social_hide'] = 'no';
152
- }
153
- if(!isset($option5['sfsi_plus_telegramIcon_order'])){
154
- $option5['sfsi_plus_telegramIcon_order'] = '22';
155
- }
156
- if(!isset($option5['sfsi_plus_vkIcon_order'])){
157
- $option5['sfsi_plus_vkIcon_order'] = '23';
158
- }
159
- if(!isset($option5['sfsi_plus_okIcon_order'])){
160
- $option5['sfsi_plus_okIcon_order'] = '24';
161
- }
162
- if(!isset($option5['sfsi_plus_weiboIcon_order'])){
163
- $option5['sfsi_plus_weiboIcon_order'] = '25';
164
- }
165
- if(!isset($option5['sfsi_plus_wechatIcon_order'])){
166
- $option5['sfsi_plus_wechatIcon_order'] = '26';
167
- }
168
-
169
- if(!isset($option5['sfsi_icons_suppress_errors'])){
170
-
171
- $sup_errors = "no";
172
- $sup_errors_banner_dismissed = true;
173
-
174
- if(defined('WP_DEBUG') && false != WP_DEBUG){
175
- $sup_errors = 'yes';
176
- $sup_errors_banner_dismissed = false;
177
- }
178
-
179
- $option5['sfsi_icons_suppress_errors'] = $sup_errors;
180
- update_option('sfsi_error_reporting_notice_dismissed',$sup_errors_banner_dismissed);
181
- }
182
- update_option('sfsi_plus_section5_options', serialize($option5));
183
- }
184
-
185
- /*Youtube Channelid settings*/
186
- $option4 = unserialize(get_option('sfsi_plus_section4_options',false));
187
- if(isset($option4) && !empty($option4) && !isset($option4['sfsi_plus_youtube_channelId']))
188
- {
189
- $option4['sfsi_plus_youtube_channelId'] = '';
190
- update_option('sfsi_plus_section4_options', serialize($option4));
191
- }
192
- /* section1 */
193
- $option1 = unserialize(get_option('sfsi_plus_section1_options',false));
194
- if(isset($option1) && !empty($option1) )
195
- {
196
- if(!isset($option1['sfsi_plus_ok_display'])){
197
- $option1['sfsi_plus_ok_display'] = 'no';
198
- }
199
- if(!isset($option1['sfsi_plus_telegram_display'])){
200
- $option1['sfsi_plus_telegram_display'] = 'no';
201
- }
202
- if(!isset($option1['sfsi_plus_vk_display'])){
203
- $option1['sfsi_plus_vk_display'] = 'no';
204
- }
205
- if(!isset($option1['sfsi_plus_weibo_display'])){
206
- $option1['sfsi_plus_weibo_display'] = 'no';
207
- }
208
- if(!isset($option1['sfsi_plus_wechat_display'])){
209
- $option1['sfsi_plus_wechat_display'] = 'no';
210
- }
211
-
212
-
213
- update_option('sfsi_plus_section1_options', serialize($option1));
214
- }
215
- /* section2 */
216
- $option2 = unserialize(get_option('sfsi_plus_section2_options',false));
217
- if(isset($option2) && !empty($option2) && !isset($option2['sfsi_plus_premium_email_box']))
218
- {
219
- $option2['sfsi_plus_premium_email_box'] = 'no';
220
- $option2['sfsi_plus_premium_facebook_box'] = 'no';
221
- $option2['sfsi_plus_premium_twitter_box'] = 'no';
222
-
223
- if(!isset($option2['sfsi_plus_mouseover_effect_type'])){
224
- $option2['sfsi_plus_mouseover_effect_type'] = 'no';
225
- }
226
- if(!isset($option2['sfsi_plus_okVisit_url'])){
227
- $option2['sfsi_plus_okVisit_url'] = 'no';
228
- }
229
- if(!isset($option2['sfsi_plus_okSubscribe_option'])){
230
- $option2['sfsi_plus_okSubscribe_option'] = 'no';
231
- }
232
- if(!isset($option2['sfsi_plus_okSubscribe_userid'])){
233
- $option2['sfsi_plus_okSubscribe_userid'] = 'no';
234
- }
235
- if(!isset($option2['sfsi_plus_okLike_option'])){
236
- $option2['sfsi_plus_okLike_option'] = 'no';
237
- }
238
- if(!isset($option2['sfsi_plus_telegramShare_option'])){
239
- $option2['sfsi_plus_telegramShare_option'] = 'no';
240
- }
241
- if(!isset($option2['sfsi_plus_telegramMessage_option'])){
242
- $option2['sfsi_plus_telegramMessage_option'] = 'no';
243
- }
244
- if(!isset($option2['sfsi_plus_telegram_message'])){
245
- $option2['sfsi_plus_telegram_message'] = 'no';
246
- }
247
- if(!isset($option2['sfsi_plus_telegram_username'])){
248
- $option2['sfsi_plus_telegram_username'] = 'no';
249
- }
250
- if(!isset($option2['sfsi_plus_vkVisit_option'])){
251
- $option2['sfsi_plus_vkVisit_option'] = 'no';
252
- }
253
- if(!isset($option2['sfsi_plus_vkShare_option'])){
254
- $option2['sfsi_plus_vkShare_option'] = 'no';
255
- }
256
- if(!isset($option2['sfsi_plus_vkLike_option'])){
257
- $option2['sfsi_plus_vkLike_option'] = 'no';
258
- }
259
- if(!isset($option2['sfsi_plus_vkFollow_option'])){
260
- $option2['sfsi_plus_vkFollow_option'] = 'no';
261
- }
262
- if(!isset($option2['sfsi_plus_vkVisit_url'])){
263
- $option2['sfsi_plus_vkVisit_url'] = 'no';
264
- }
265
- if(!isset($option2['gvfergergergergregergrg'])){
266
- $option2['gvfergergergergregergrg'] = 'no';
267
- }
268
- if(!isset($option2['sfsi_plus_vkFollow_url'])){
269
- $option2['sfsi_plus_vkFollow_url'] = 'no';
270
- }
271
- if(!isset($option2['sfsi_plus_weiboVisit_option'])){
272
- $option2['sfsi_plus_weiboVisit_option'] = 'no';
273
- }
274
- if(!isset($option2['sfsi_plus_weiboShare_option'])){
275
- $option2['sfsi_plus_weiboShare_option'] = 'no';
276
- }
277
- if(!isset($option2['sfsi_plus_weiboLike_option'])){
278
- $option2['sfsi_plus_weiboLike_option'] = 'no';
279
- }
280
- if(!isset($option2['sfsi_plus_weiboVisit_url'])){
281
- $option2['sfsi_plus_weiboVisit_url'] = 'no';
282
- }
283
- if(!isset($option2['sfsi_plus_wechatFollow_option'])){
284
- $option2['sfsi_plus_wechatFollow_option'] = 'no';
285
- }
286
- if(!isset($option2['sfsi_plus_wechatShare_option'])){
287
- $option2['sfsi_plus_wechatShare_option'] = 'no';
288
- }
289
- if(!isset($option2['sfsi_plus_wechat_scan_image'])){
290
- $option2['sfsi_plus_wechat_scan_image'] = 'no';
291
- }
292
-
293
- update_option('sfsi_plus_section2_options', serialize($option2));
294
- }
295
- /* section3 */
296
- $option3 = unserialize(get_option('sfsi_plus_section3_options',false));
297
- if(isset($option3) && !empty($option3))
298
- {
299
- if(!isset($option3['sfsi_plus_mouseover_effect_type'])){
300
- $option3['sfsi_plus_mouseover_effect_type'] = 'same_icons';
301
- }
302
- if(!isset($option3['mouseover_other_icons_transition_effect'])){
303
- $option3['mouseover_other_icons_transition_effect'] = 'flip';
304
- }
305
-
306
- if(!isset($option3['sfsi_plus_premium_icons_design_box'])){
307
- $option3['sfsi_plus_premium_icons_design_box'] = 'no';
308
- }
309
-
310
- update_option('sfsi_plus_section3_options', serialize($option3));
311
- }
312
- /* section4 */
313
- $option4 = unserialize(get_option('sfsi_plus_section4_options',false));
314
- if(isset($option4) && !empty($option4) && !isset($option4['sfsi_plus_premium_count_box']))
315
- {
316
- $option4['sfsi_plus_premium_count_box'] = 'no';
317
- update_option('sfsi_plus_section4_options', serialize($option4));
318
- }
319
- /* section7 */
320
- $option7 = unserialize(get_option('sfsi_plus_section7_options',false));
321
- if(isset($option7) && !empty($option7) && !isset($option7['sfsi_plus_premium_popup_box']))
322
- {
323
- $option7['sfsi_plus_premium_popup_box'] = 'no';
324
- update_option('sfsi_plus_section7_options', serialize($option7));
325
- }
326
- /* section8 */
327
- $option8 = unserialize(get_option('sfsi_plus_section8_options',false));
328
- if(isset($option8) && !empty($option8) && !isset($option8['sfsi_plus_show_premium_placement_box']))
329
- {
330
- $option8['sfsi_plus_show_premium_placement_box'] = 'no';
331
- update_option('sfsi_plus_section8_options', serialize($option8));
332
- }
333
- $option4 = unserialize(get_option('sfsi_plus_section4_options',false));
334
- if(isset($option4) && !empty($option4) && !isset($option4['sfsi_plus_instagram_clientid']))
335
- {
336
- $option4['sfsi_plus_instagram_clientid'] = '';
337
- $option4['sfsi_plus_instagram_appurl'] = '';
338
- $option4['sfsi_plus_instagram_token'] = '';
339
- update_option('sfsi_plus_section4_options', serialize($option4));
340
- }
341
- if(isset($option8["sfsi_plus_display_button_type"]) && (""==$option8["sfsi_plus_display_button_type"] || "yes"==$option8["sfsi_plus_display_button_type"]) ) {
342
- $option8["sfsi_plus_display_button_type"] = "standard_buttons";
343
- }
344
- sfsi_plus_remove_google();
345
- // Add this removed in version 2.9.3, removing values from section 1 & section 6 & setting notice display value
346
- sfsi_plus_was_displaying_addthis();
347
- //deleteing as we dont need curl now.
348
- delete_option("sfsi_plus_curlErrorNotices");
349
- delete_option("sfsi_plus_curlErrorMessage");
350
- }
351
- function sfsi_plus_activate_plugin()
352
- {
353
- /* check for CURL enable at server */
354
- add_option('sfsi_plus_plugin_do_activation_redirect', true);
355
- // sfsi_plus_curl_enable_notice();
356
-
357
- if(!get_option('sfsi_plus_new_show_notification'))
358
- {
359
- add_option("sfsi_plus_new_show_notification", "yes");
360
- }
361
-
362
- if(!get_option('sfsi_plus_show_premium_cumulative_count_notification'))
363
- {
364
- add_option("sfsi_plus_show_premium_cumulative_count_notification", "yes");
365
- }
366
- // var_dump(get_option('sfsi_plus_custom_icons'),'no');
367
-
368
- if(!get_option('sfsi_plus_custom_icons'))
369
- {
370
- add_option("sfsi_plus_custom_icons", "no");
371
- }
372
-
373
- $options1=array('sfsi_plus_rss_display'=>'yes',
374
- 'sfsi_plus_email_display'=>'yes',
375
- 'sfsi_plus_facebook_display'=>'yes',
376
- 'sfsi_plus_twitter_display'=>'yes',
377
- 'sfsi_plus_pinterest_display'=>'no',
378
- 'sfsi_plus_instagram_display'=>'no',
379
- 'sfsi_plus_linkedin_display'=>'no',
380
- 'sfsi_plus_youtube_display'=>'no',
381
- 'sfsi_plus_houzz_display'=>'no',
382
- 'sfsi_plus_ok_display'=>'no',
383
- 'sfsi_plus_telegram_display'=>'no',
384
- 'sfsi_plus_vk_display'=>'no',
385
- 'sfsi_plus_weibo_display'=>'no',
386
- 'sfsi_plus_wechat_display'=>'no',
387
- 'sfsi_custom_display'=>'',
388
- 'sfsi_custom_files'=>'',
389
- 'sfsi_plus_premium_icons_box' =>'yes',
390
- );
391
- add_option('sfsi_plus_section1_options', serialize($options1));
392
-
393
- if(get_option('sfsi_plus_feed_id') && get_option('sfsi_plus_redirect_url'))
394
- {
395
- $sffeeds["feed_id"] = sanitize_text_field(get_option('sfsi_plus_feed_id'));
396
- $sffeeds["redirect_url"] = sanitize_text_field(get_option('sfsi_plus_redirect_url'));
397
- $sffeeds = (object)$sffeeds;
398
- }
399
- else
400
- {
401
- $sffeeds = SFSI_PLUS_getFeedUrl();
402
- }
403
-
404
- /* Links and icons options */
405
- $options2=array('sfsi_plus_rss_url'=>sfsi_plus_get_bloginfo('rss2_url'),
406
- 'sfsi_plus_rss_icons'=>'subscribe',
407
- 'sfsi_plus_email_url'=>$sffeeds->redirect_url,
408
- 'sfsi_plus_facebookPage_option'=>'no',
409
- 'sfsi_plus_facebookPage_url'=>'',
410
- 'sfsi_plus_facebookLike_option'=>'yes',
411
- 'sfsi_plus_facebookShare_option'=>'yes',
412
- 'sfsi_plus_twitter_followme'=>'no',
413
- 'sfsi_plus_twitter_followUserName'=>'',
414
- 'sfsi_plus_twitter_aboutPage'=>'yes',
415
- 'sfsi_plus_twitter_page'=>'no',
416
- 'sfsi_plus_twitter_pageURL'=>'',
417
- 'sfsi_plus_twitter_aboutPageText'=>'Hey, check out this cool site I found: www.yourname.com #Topic via@my_twitter_name',
418
- 'sfsi_plus_youtube_pageUrl'=>'',
419
- 'sfsi_plus_youtube_page'=>'no',
420
- 'sfsi_plus_youtube_follow'=>'no',
421
- 'sfsi_plus_youtubeusernameorid'=>'name',
422
- 'sfsi_plus_ytube_chnlid'=>'',
423
- 'sfsi_plus_ytube_user'=>'',
424
- 'sfsi_plus_pinterest_page'=>'no',
425
- 'sfsi_plus_pinterest_pageUrl'=>'',
426
- 'sfsi_plus_pinterest_pingBlog'=>'',
427
- 'sfsi_plus_instagram_page'=>'no',
428
- 'sfsi_plus_instagram_pageUrl'=>'',
429
- 'sfsi_plus_houzz_pageUrl'=>'',
430
- 'sfsi_plus_linkedin_page'=>'no',
431
- 'sfsi_plus_linkedin_pageURL'=>'',
432
- 'sfsi_plus_linkedin_follow'=>'no',
433
- 'sfsi_plus_linkedin_followCompany'=>'',
434
- 'sfsi_plus_linkedin_SharePage'=>'yes',
435
- 'sfsi_plus_linkedin_recommendBusines'=>'no',
436
- 'sfsi_plus_linkedin_recommendCompany'=>'',
437
- 'sfsi_plus_linkedin_recommendProductId'=>'',
438
- 'sfsi_plus_okVisit_option' => 'no',
439
- 'sfsi_plus_okVisit_url' => '',
440
- 'sfsi_plus_okSubscribe_option' => 'no',
441
- 'sfsi_plus_okSubscribe_userid' => '',
442
- 'sfsi_plus_okLike_option' => 'no',
443
- 'sfsi_plus_wechatFollow_option' => 'no',
444
- 'sfsi_plus_wechatShare_option' => 'no',
445
-
446
- 'sfsi_plus_telegramShare_option' => 'no',
447
- 'sfsi_plus_telegramMessage_option' => 'no',
448
- 'sfsi_plus_telegram_message' => '',
449
- 'sfsi_plus_telegram_username' => '',
450
- 'sfsi_plus_CustomIcon_links'=>'',
451
- 'sfsi_plus_premium_email_box'=>'yes',
452
- 'sfsi_plus_premium_facebook_box'=>'yes',
453
- 'sfsi_plus_premium_twitter_box'=>'yes',
454
- );
455
- add_option('sfsi_plus_section2_options', serialize($options2));
456
-
457
- /* Design and animation option */
458
- $options3= array(
459
- 'sfsi_plus_mouseOver' =>'no',
460
- 'sfsi_plus_mouseOver_effect' =>'fade_in',
461
- 'sfsi_plus_mouseover_effect_type' => 'same_icons',
462
- 'mouseover_other_icons_transition_effect' => 'flip',
463
- 'sfsi_plus_shuffle_icons' =>'no',
464
- 'sfsi_plus_shuffle_Firstload' =>'no',
465
- 'sfsi_plus_shuffle_interval' =>'no',
466
- 'sfsi_plus_shuffle_intervalTime' =>'',
467
- 'sfsi_plus_actvite_theme' =>'default',
468
- 'sfsi_plus_premium_icons_design_box'=>'yes',
469
- );
470
-
471
- add_option('sfsi_plus_section3_options', serialize($options3));
472
-
473
- /* display counts options */
474
- $options4=array('sfsi_plus_display_counts'=>'no',
475
- 'sfsi_plus_email_countsDisplay'=>'no',
476
- 'sfsi_plus_email_countsFrom'=>'source',
477
- 'sfsi_plus_email_manualCounts'=>'20',
478
- 'sfsi_plus_rss_countsDisplay'=>'no',
479
- 'sfsi_plus_rss_manualCounts'=>'20',
480
- 'sfsi_plus_facebook_PageLink'=>'',
481
- 'sfsi_plus_facebook_countsDisplay'=>'no',
482
- 'sfsi_plus_facebook_countsFrom'=>'manual',
483
- 'sfsi_plus_facebook_manualCounts'=>'20',
484
- 'sfsi_plus_twitter_countsDisplay'=>'no',
485
- 'sfsi_plus_twitter_countsFrom'=>'manual',
486
- 'sfsi_plus_twitter_manualCounts'=>'20',
487
- 'sfsi_plus_google_api_key'=>'',
488
- 'sfsi_plus_linkedIn_countsDisplay'=>'no',
489
- 'sfsi_plus_linkedIn_countsFrom'=>'manual',
490
- 'sfsi_plus_linkedIn_manualCounts'=>'20',
491
- 'sfsi_plus_ln_api_key'=>'',
492
- 'sfsi_plus_ln_secret_key'=>'',
493
- 'sfsi_plus_ln_oAuth_user_token'=>'',
494
- 'sfsi_plus_ln_company'=>'',
495
- 'sfsi_plus_youtube_user'=>'',
496
- 'sfsi_plus_youtube_channelId'=>'',
497
- 'sfsi_plus_youtube_countsDisplay'=>'no',
498
- 'sfsi_plus_youtube_countsFrom'=>'manual',
499
- 'sfsi_plus_youtube_manualCounts'=>'20',
500
- 'sfsi_plus_pinterest_countsDisplay'=>'no',
501
- 'sfsi_plus_pinterest_countsFrom'=>'manual',
502
- 'sfsi_plus_pinterest_manualCounts'=>'20',
503
- 'sfsi_plus_pinterest_user'=>'',
504
- 'sfsi_plus_pinterest_board'=>'',
505
- 'sfsi_plus_instagram_countsFrom'=>'manual',
506
- 'sfsi_plus_instagram_countsDisplay'=>'no',
507
- 'sfsi_plus_instagram_manualCounts'=>'20',
508
- 'sfsi_plus_instagram_User'=>'',
509
- 'sfsi_plus_instagram_clientid'=>'',
510
- 'sfsi_plus_instagram_appurl' =>'',
511
- 'sfsi_plus_instagram_token' =>'',
512
- 'sfsi_plus_houzz_countsDisplay'=>'no',
513
- 'sfsi_plus_houzz_countsFrom'=>'manual',
514
- 'sfsi_plus_houzz_manualCounts'=>'20',
515
- 'sfsi_plus_ok_countsDisplay' => 'no',
516
- 'sfsi_plus_vk_countsDisplay' => 'no',
517
- 'sfsi_plus_telegram_countsDisplay' => 'no',
518
- 'sfsi_plus_weibo_countsDisplay' => 'no',
519
- 'sfsi_plus_ok_manualCounts' => '20',
520
- 'sfsi_plus_vk_manualCounts' => '20',
521
- 'sfsi_plus_telegram_manualCounts' => '20',
522
- 'sfsi_plus_weibo_manualCounts' => '20',
523
- 'sfsi_plus_premium_count_box'=>'yes',
524
- );
525
- add_option('sfsi_plus_section4_options', serialize($options4));
526
-
527
- $options5=array('sfsi_plus_icons_size'=>'40',
528
- 'sfsi_plus_icons_spacing'=>'5',
529
- 'sfsi_plus_icons_Alignment'=>'left',
530
- 'sfsi_plus_icons_perRow'=>'5',
531
- 'sfsi_plus_follow_icons_language'=>'Follow_en_US',
532
- 'sfsi_plus_facebook_icons_language'=>'Visit_us_en_US',
533
- 'sfsi_plus_twitter_icons_language'=>'Visit_us_en_US',
534
- 'sfsi_plus_icons_language'=>'en_US',
535
- 'sfsi_plus_icons_ClickPageOpen'=>'yes',
536
- 'sfsi_plus_icons_float'=>'no',
537
- 'sfsi_plus_disable_floaticons'=>'no',
538
- 'sfsi_plus_disable_viewport'=>'no',
539
- 'sfsi_plus_icons_floatPosition'=>'center-right',
540
- 'sfsi_plus_icons_stick'=>'no',
541
- 'sfsi_plus_rssIcon_order'=>'1',
542
- 'sfsi_plus_emailIcon_order'=>'2',
543
- 'sfsi_plus_facebookIcon_order'=>'3',
544
- 'sfsi_plus_twitterIcon_order'=>'4',
545
- 'sfsi_plus_youtubeIcon_order'=>'5',
546
- 'sfsi_plus_pinterestIcon_order'=>'7',
547
- 'sfsi_plus_linkedinIcon_order'=>'8',
548
- 'sfsi_plus_instagramIcon_order'=>'9',
549
- 'sfsi_plus_houzzIcon_order'=>'10',
550
- 'sfsi_plus_telegramIcon_order'=>'22',
551
- 'sfsi_plus_vkIcon_order'=>'23',
552
- 'sfsi_plus_okIcon_order'=>'24',
553
- 'sfsi_plus_weiboIcon_order'=>'25',
554
- 'sfsi_plus_wechatIcon_order'=>'26',
555
- 'sfsi_plus_CustomIcons_order'=>'',
556
- 'sfsi_plus_rss_MouseOverText'=>'RSS',
557
- 'sfsi_plus_email_MouseOverText'=>'Follow by Email',
558
- 'sfsi_plus_twitter_MouseOverText'=>'Twitter',
559
- 'sfsi_plus_facebook_MouseOverText'=>'Facebook',
560
- 'sfsi_plus_linkedIn_MouseOverText'=>'LinkedIn',
561
- 'sfsi_plus_pinterest_MouseOverText'=>'Pinterest',
562
- 'sfsi_plus_instagram_MouseOverText'=>'Instagram',
563
- 'sfsi_plus_telegram_MouseOverText'=>'Telegram',
564
- 'sfsi_plus_vk_MouseOverText'=>'Vk',
565
- 'sfsi_plus_houzz_MouseOverText'=>'Houzz',
566
- 'sfsi_plus_youtube_MouseOverText'=>'YouTube',
567
- 'sfsi_plus_ok_MouseOverText' => "Ok",
568
-
569
- 'sfsi_plus_vk_MouseOverText' => "Vk",
570
- 'sfsi_plus_weibo_MouseOverText' => "Weibo",
571
- 'sfsi_plus_wechat_MouseOverText' => "Wechat",
572
- 'sfsi_plus_custom_MouseOverTexts'=>'',
573
- 'sfsi_plus_premium_size_box'=>'yes',
574
- 'sfsi_plus_custom_social_hide'=>'no',
575
- 'sfsi_pplus_icons_suppress_errors'=>'no',
576
- );
577
- add_option('sfsi_plus_section5_options', serialize($options5));
578
-
579
- /* post options */
580
- $options6=array('sfsi_plus_show_Onposts'=>'no',
581
- 'sfsi_plus_show_Onbottom'=>'no',
582
- 'sfsi_plus_icons_postPositon'=>'source',
583
- 'sfsi_plus_icons_alignment'=>'center-right',
584
- 'sfsi_plus_rss_countsDisplay'=>'no',
585
- 'sfsi_plus_textBefor_icons'=>'Please follow and like us:',
586
- 'sfsi_plus_icons_DisplayCounts'=>'no');
587
- add_option('sfsi_plus_section6_options', serialize($options6));
588
-
589
- /* icons pop options */
590
- $options7=array('sfsi_plus_show_popup'=>'no',
591
- 'sfsi_plus_popup_text'=>'Enjoy this blog? Please spread the word :)',
592
- 'sfsi_plus_popup_background_color'=>'#eff7f7',
593
- 'sfsi_plus_popup_border_color'=>'#f3faf2',
594
- 'sfsi_plus_popup_border_thickness'=>'1',
595
- 'sfsi_plus_popup_border_shadow'=>'yes',
596
- 'sfsi_plus_popup_font'=>'Helvetica,Arial,sans-serif',
597
- 'sfsi_plus_popup_fontSize'=>'30',
598
- 'sfsi_plus_popup_fontStyle'=>'normal',
599
- 'sfsi_plus_popup_fontColor'=>'#000000',
600
- 'sfsi_plus_Show_popupOn'=>'none',
601
- 'sfsi_plus_Show_popupOn_PageIDs'=>'',
602
- 'sfsi_plus_Shown_pop'=>'ETscroll',
603
- 'sfsi_plus_Shown_popupOnceTime'=>'',
604
- 'sfsi_plus_Shown_popuplimitPerUserTime'=>'',
605
- 'sfsi_plus_premium_popup_box' =>'yes',
606
-
607
- );
608
- add_option('sfsi_plus_section7_options', serialize($options7));
609
-
610
- /*options that are added in the third question*/
611
- if(get_option('sfsi_plus_section4_options',false))
612
- $option4= unserialize(get_option('sfsi_plus_section4_options',false));
613
- if(get_option('sfsi_plus_section5_options',false))
614
- $option5= unserialize(get_option('sfsi_plus_section5_options',false));
615
- if(get_option('sfsi_plus_section6_options',false))
616
- $option6= unserialize(get_option('sfsi_plus_section6_options',false));
617
-
618
- /*if($option6['sfsi_plus_show_Onposts'] == 'yes')
619
- {
620
- $sfsi_plus_display_button_type = 'standard_buttons';
621
- }
622
- else
623
- {
624
- $sfsi_plus_display_button_type = '';
625
- }*/
626
-
627
- $options8 = array(
628
- 'sfsi_plus_show_via_widget'=>'no',
629
- 'sfsi_plus_float_on_page'=> $option5['sfsi_plus_icons_float'],
630
- 'sfsi_plus_float_page_position'=>$option5['sfsi_plus_icons_floatPosition'],
631
- 'sfsi_plus_icons_floatMargin_top'=>'',
632
- 'sfsi_plus_icons_floatMargin_bottom'=>'',
633
- 'sfsi_plus_icons_floatMargin_left'=>'',
634
- 'sfsi_plus_icons_floatMargin_right'=>'',
635
- 'sfsi_plus_post_icons_size'=>$option5['sfsi_plus_icons_size'],
636
- 'sfsi_plus_post_icons_spacing'=>$option5['sfsi_plus_icons_spacing'],
637
- 'sfsi_plus_show_Onposts'=>$option6['sfsi_plus_show_Onposts'],
638
- 'sfsi_plus_textBefor_icons'=>$option6['sfsi_plus_textBefor_icons'],
639
- 'sfsi_plus_icons_alignment'=>$option6['sfsi_plus_icons_alignment'],
640
- 'sfsi_plus_icons_DisplayCounts'=>$option6['sfsi_plus_icons_DisplayCounts'],
641
- 'sfsi_plus_place_item_manually'=>'no',
642
- /*'sfsi_plus_show_item_onposts'=>'no',*/
643
- 'sfsi_plus_show_item_onposts'=> $option6['sfsi_plus_show_Onposts'],
644
- 'sfsi_plus_display_button_type'=> 'standard_buttons',
645
- 'sfsi_plus_display_before_posts'=>'no',
646
- 'sfsi_plus_display_after_posts'=>$option6['sfsi_plus_show_Onposts'],
647
- 'sfsi_plus_display_on_postspage'=>'no',
648
- 'sfsi_plus_display_on_homepage'=>'no',
649
- 'sfsi_plus_display_before_blogposts'=>'no',
650
- 'sfsi_plus_display_after_blogposts'=>'no',
651
- 'sfsi_plus_rectsub'=>'yes',
652
- 'sfsi_plus_rectfb'=>'yes',
653
- 'sfsi_plus_rectgp'=>'no',
654
- 'sfsi_plus_recttwtr'=>'yes',
655
- 'sfsi_plus_rectpinit'=>'yes',
656
- 'sfsi_plus_rectfbshare'=>'yes',
657
- 'sfsi_plus_show_premium_placement_box'=>'yes');
658
-
659
- add_option('sfsi_plus_section8_options', serialize($options8));
660
-
661
- /*Some additional option added*/
662
- update_option('sfsi_plus_feed_id' , sanitize_text_field($sffeeds->feed_id));
663
- update_option('sfsi_plus_redirect_url' , sanitize_text_field($sffeeds->redirect_url));
664
-
665
- add_option('sfsi_plus_installDate',date('Y-m-d h:i:s'));
666
- add_option('sfsi_plus_RatingDiv','no');
667
- update_option('sfsi_plus_activate', 1);
668
-
669
- /*Changes in option 2*/
670
- $get_option2 = unserialize(get_option('sfsi_plus_section2_options',false));
671
- $get_option2['sfsi_plus_email_url'] = $sffeeds->redirect_url;
672
- update_option('sfsi_plus_section2_options', serialize($get_option2));
673
-
674
- $addThisDismissed = get_option('sfsi_addThis_icon_removal_notice_dismissed',false);
675
-
676
- if(!isset($addThisDismissed)){
677
- update_option('sfsi_addThis_icon_removal_notice_dismissed',true);
678
- }
679
-
680
- /*Activation Setup for (specificfeed)*/
681
- sfsi_plus_setUpfeeds($sffeeds->feed_id);
682
- sfsi_plus_updateFeedPing('N',$sffeeds->feed_id);
683
-
684
- /*Extra important options*/
685
- $sfsi_plus_instagram_sf_count = array(
686
- "date_sf" => strtotime(date("Y-m-d")),
687
- "date_instagram" => strtotime(date("Y-m-d")),
688
- "sfsi_plus_sf_count" => "",
689
- "sfsi_plus_instagram_count" => ""
690
- );
691
- add_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
692
- sfsi_plus_remove_google();
693
- }
694
- /* end function */
695
- /* deactivate plugin */
696
- function sfsi_plus_deactivate_plugin()
697
- {
698
- global $wpdb;
699
- sfsi_plus_updateFeedPing('Y',sanitize_text_field(get_option('sfsi_plus_feed_id')));
700
-
701
- } /* end function */
702
- function sfsi_plus_remove_google(){
703
- $option1 = unserialize(get_option('sfsi_plus_section1_options',false));
704
- if(isset($option1['sfsi_plus_google_display'])){
705
- unset($option1['sfsi_plus_google_display']);
706
- }
707
- update_option('sfsi_plus_section1_options', serialize($option1));
708
-
709
- $option2 = unserialize(get_option('sfsi_plus_section2_options',false));
710
- if(isset($option2['sfsi_plus_premium_google_box'])){
711
- unset($option2['sfsi_plus_premium_google_box']);
712
- }
713
- if(isset($option2['sfsi_plus_google_page'])){
714
- unset($option2['sfsi_plus_google_page']);
715
- }
716
- if(isset($option2['sfsi_plus_google_pageURL'])){
717
- unset($option2['sfsi_plus_google_pageURL']);
718
- }
719
- if(isset($option2['sfsi_plus_googleLike_option'])){
720
- unset($option2['sfsi_plus_googleLike_option']);
721
- }
722
- if(isset($option2['sfsi_plus_googleShare_option'])){
723
- unset($option2['sfsi_plus_googleShare_option']);
724
- }
725
- update_option('sfsi_plus_section2_options', serialize($option2));
726
-
727
- $option4 = unserialize(get_option('sfsi_plus_section4_options',false));
728
- if(isset($option4['sfsi_plus_google_api_key'])){
729
- unset($option4['sfsi_plus_google_api_key']);
730
- }
731
- if(isset($option4['sfsi_plus_google_countsDisplay'])){
732
- unset($option4['sfsi_plus_google_countsDisplay']);
733
- }
734
- if(isset($option4['sfsi_plus_google_countsFrom'])){
735
- unset($option4['sfsi_plus_google_countsFrom']);
736
- }
737
- if(isset($option4['sfsi_plus_google_manualCounts'])){
738
- unset($option4['sfsi_plus_google_manualCounts']);
739
- }
740
- update_option('sfsi_plus_section4_options', serialize($option4));
741
-
742
- $option5 = unserialize(get_option('sfsi_plus_section5_options',false));
743
- if(isset($option5['sfsi_plus_google_icons_language'])){
744
- unset($option5['sfsi_plus_google_icons_language']);
745
- }
746
- if(isset($option5['sfsi_plus_googleIcon_order'])){
747
- unset($option5['sfsi_plus_googleIcon_order']);
748
- }
749
- if(isset($option5['sfsi_plus_google_MouseOverText'])){
750
- unset($option5['sfsi_plus_google_MouseOverText']);
751
- }
752
- update_option('sfsi_plus_section5_options', serialize($option5));
753
-
754
- }
755
- function sfsi_plus_updateFeedPing($status,$feed_id)
756
- {
757
- $body = array(
758
- 'feed_id' => $feed_id,
759
- 'status' => $status
760
- );
761
-
762
- $args = array(
763
- 'body' => $body,
764
- 'timeout' => '5',
765
- 'redirection' => '5',
766
- 'httpversion' => '1.0',
767
- 'blocking' => true,
768
- 'headers' => array(),
769
- 'cookies' => array()
770
- );
771
-
772
- $resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/pingfeed', $args );
773
- return $resp;
774
- }
775
- /* unistall plugin function */
776
- function sfsi_plus_Unistall_plugin()
777
- { global $wpdb;
778
- /* Delete option for which icons to display */
779
- delete_option('sfsi_plus_section1_options');
780
- delete_option('sfsi_plus_section2_options');
781
- delete_option('sfsi_plus_section3_options');
782
- delete_option('sfsi_plus_section4_options');
783
- delete_option('sfsi_plus_section5_options');
784
- delete_option('sfsi_plus_section6_options');
785
- delete_option('sfsi_plus_section7_options');
786
- delete_option('sfsi_plus_section8_options');
787
- delete_option('sfsi_plus_section9_options');
788
- delete_option('sfsi_plus_feed_id');
789
- delete_option('sfsi_plus_redirect_url');
790
- delete_option('sfsi_plus_footer_sec');
791
- delete_option('sfsi_plus_activate');
792
- delete_option("sfsi_plus_pluginVersion");
793
- delete_option("sfsi_plus_verificatiom_code");
794
- delete_option("sfsi_plus_curlErrorNotices");
795
- delete_option("sfsi_plus_curlErrorMessage");
796
-
797
- delete_option("adding_plustags");
798
- delete_option("sfsi_plus_installDate");
799
- delete_option("sfsi_plus_RatingDiv");
800
- delete_option("sfsi_plus_instagram_sf_count");
801
- delete_option("sfsi_plus_new_show_notification");
802
- delete_option("sfsi_plus_show_Setting_mobile_notification");
803
- delete_option("sfsi_plus_show_premium_notification");
804
- delete_option("sfsi_plus_show_notification");
805
- delete_option('sfsi_plus_serverphpVersionnotification');
806
- delete_option("sfsi_plus_show_premium_cumulative_count_notification");
807
-
808
- delete_option("sfsi_addThis_icon_removal_notice_dismissed");
809
- delete_option('widget_sfsi-plus-widget');
810
- delete_option('widget_sfsiplus_subscriber_widget');
811
-
812
- delete_option('fs_active_plugins');
813
- delete_option('fs_accounts');
814
- delete_option('fs_api_cache');
815
- delete_option('fs_debug_mode');
816
- }
817
- /* end function */
818
- /* check CUrl */
819
- function sfsi_plus_curl_enable_notice(){
820
- if(!function_exists('curl_init')) {
821
- echo '<div class="error"><p> '.__('Error: It seems that CURL is disabled on your server. Please contact your server administrator to install / enable CURL.',SFSI_PLUS_DOMAIN).'</p></div>'; die;
822
- }
823
- }
824
-
825
- /* add admin menus */
826
- function sfsi_plus_admin_menu() {
827
- add_menu_page(
828
- 'Ultimate Social Media PLUS',
829
- 'Ultimate Social Media PLUS',
830
- 'administrator',
831
- 'sfsi-plus-options',
832
- 'sfsi_plus_options_page',
833
- plugins_url( 'images/logo.png' , dirname(__FILE__) )
834
- );
835
- }
836
- function sfsi_plus_options_page(){ include SFSI_PLUS_DOCROOT . '/views/sfsi_options_view.php'; } /* end function */
837
- function sfsi_plus_about_page(){ include SFSI_PLUS_DOCROOT . '/views/sfsi_aboutus.php'; } /* end function */
838
- if ( is_admin() ){
839
- add_action('admin_menu', 'sfsi_plus_admin_menu');
840
- }
841
-
842
- /* fetch rss url from specificfeeds */
843
- function SFSI_PLUS_getFeedUrl()
844
- {
845
- $body = array(
846
- 'web_url' => get_bloginfo('url'),
847
- 'feed_url' => sfsi_plus_get_bloginfo('rss2_url'),
848
- 'email' => '',
849
- 'subscriber_type' => 'PLWP'
850
- );
851
-
852
- $args = array(
853
- 'body' => $body,
854
- 'blocking' => true,
855
- 'user-agent' => 'sf rss request',
856
- 'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
857
- 'sslverify' => true
858
- );
859
- $resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/plugin_setup', $args );
860
- if ( !is_wp_error( $resp ) ) {
861
- $resp = json_decode($resp['body']);
862
- }
863
- $feed_url = stripslashes_deep($resp->redirect_url);
864
- return $resp;exit;
865
- }
866
- /* fetch rss url from specificfeeds on */
867
- function SFSI_PLUS_updateFeedUrl()
868
- {
869
- $body = array(
870
- 'feed_id' => sanitize_text_field(get_option('sfsi_plus_feed_id')),
871
- 'web_url' => get_bloginfo('url'),
872
- 'feed_url' => sfsi_plus_get_bloginfo('rss2_url'),
873
- 'email' => ''
874
- );
875
-
876
- $args = array(
877
- 'body' => $body,
878
- 'blocking' => true,
879
- 'user-agent' => 'sf rss request',
880
- 'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
881
- 'sslverify' => true
882
- );
883
- $resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/updateFeedPlugin', $args );
884
- if ( is_wp_error( $resp ) ) {
885
- } else {
886
- $resp = json_decode($resp['body']);
887
- }
888
-
889
- $feed_url = stripslashes_deep($resp->redirect_url);
890
- return $resp;exit;
891
- }
892
- /* add sf tags */
893
- function sfsi_plus_setUpfeeds($feed_id)
894
- {
895
- $args = array(
896
- 'blocking' => true,
897
- 'user-agent' => 'sf rss request',
898
- 'header' => array("Content-Type"=>"application/json"),
899
- 'sslverify' => true
900
- );
901
- $resp = wp_remote_get( 'https://www.specificfeeds.com/rssegtcrons/download_rssmorefeed_data_single/'.$feed_id."/Y", $args );
902
- }
903
- /* admin notice if wp_head is missing in active theme */
904
- function sfsi_plus_check_wp_head() {
905
-
906
- $template_directory = get_template_directory();
907
- $header = $template_directory . '/header.php';
908
-
909
- if (is_file($header)) {
910
-
911
- $search_header = "wp_head";
912
- $file_lines = @file($header);
913
- $foind_header=0;
914
- foreach ($file_lines as $line)
915
- {
916
- $searchCount = substr_count($line, $search_header);
917
- if ($searchCount > 0)
918
- {
919
- return true;
920
- }
921
- }
922
- $path=pathinfo($_SERVER['REQUEST_URI']);
923
- if($path['basename']=="themes.php" || $path['basename']=="theme-editor.php" || $path['basename']=="admin.php?page=sfsi-plus-options")
924
- {
925
- $currentTheme = wp_get_theme();
926
-
927
- if(isset($currentTheme) && !empty($currentTheme) && $currentTheme->get( 'Name' ) != "Customizr"){
928
-
929
- echo "<div class=\"error\" ><p>". __( 'Error : Please fix your theme to make plugins work correctly. Go to the Theme Editor and insert the following string:', SFSI_PLUS_DOMAIN )." &lt;?php wp_head(); ?&gt; ".__('Please enter it just before the following line of your header.php file:',SFSI_PLUS_DOMAIN)." &lt;/head&gt; ".__('Go to your theme editor: ',SFSI_PLUS_DOMAIN)."<a href=\"theme-editor.php\">".__('click here', SFSI_PLUS_DOMAIN )."</a>.</p></div>";
930
- }
931
-
932
- }
933
- }
934
- }
935
- /* admin notice if wp_footer is missing in active theme */
936
- function sfsi_plus_check_wp_footer() {
937
- $template_directory = get_template_directory();
938
- $footer = $template_directory . '/footer.php';
939
-
940
- if (is_file($footer)) {
941
- $search_string = "wp_footer";
942
- $file_lines = @file($footer);
943
-
944
- foreach ($file_lines as $line) {
945
- $searchCount = substr_count($line, $search_string);
946
- if ($searchCount > 0) {
947
- return true;
948
- }
949
- }
950
- $path=pathinfo($_SERVER['REQUEST_URI']);
951
-
952
- if($path['basename']=="themes.php" || $path['basename']=="theme-editor.php" || $path['basename']=="admin.php?page=sfsi-plus-options")
953
- {
954
- echo "<div class=\"error\" ><p>". __("Error: Please fix your theme to make plugins work correctly. Go to the Theme Editor and insert the following string as the first line of your theme's footer.php file: ", SFSI_PLUS_DOMAIN)." &lt;?php wp_footer(); ?&gt; ".__("Go to your theme editor: ", SFSI_PLUS_DOMAIN)."<a href=\"theme-editor.php\">".__('click here', SFSI_PLUS_DOMAIN )."</a>.</p></div>";
955
- }
956
- }
957
- }
958
- /* admin notice for first time installation */
959
- function sfsi_plus_activation_msg()
960
- {
961
- global $wp_version;
962
-
963
- if(get_option('sfsi_plus_activate',false)==1)
964
- {
965
- echo "<div class='updated'><p>".__("Thank you for installing the Ultimate Social Media PLUS plugin. Please go to the plugin's settings page to configure it: ",SFSI_PLUS_DOMAIN)."<b><a href='admin.php?page=sfsi-plus-options'>".__("Click here",SFSI_PLUS_DOMAIN)."</a></b></p></div>";
966
- update_option('sfsi_plus_activate',0);
967
- }
968
-
969
- $path=pathinfo($_SERVER['REQUEST_URI']);
970
- update_option('sfsi_plus_activate',0);
971
-
972
- if($wp_version < 3.5 && $path['basename'] == "admin.php?page=sfsi-plus-options")
973
- {
974
- echo "<div class=\"update-nag\" ><p><b>".__('You`re using an old Wordpress version, which may cause several of your plugins to not work correctly. Please upgrade', SFSI_PLUS_DOMAIN)."</b></p></div>";
975
- }
976
- }
977
- /* admin notice for first time installation */
978
- function sfsi_plus_rating_msg()
979
- {
980
- global $wp_version;
981
- $install_date = get_option('sfsi_plus_installDate');
982
- $display_date = date('Y-m-d h:i:s');
983
- $datetime1 = new DateTime($install_date);
984
- $datetime2 = new DateTime($display_date);
985
- $diff_inrval = round(($datetime2->format('U') - $datetime1->format('U')) / (60*60*24));
986
-
987
- if($diff_inrval >= 30 && get_option('sfsi_plus_RatingDiv')=="no")
988
- { ?>
989
- <style >
990
- .sfsi_plus_plg-rating-dismiss:before {
991
- background: none;
992
- color: #72777c;
993
- content: "\f153";
994
- display: block;
995
- font: normal 16px/20px dashicons;
996
- speak: none;
997
- height: 20px;
998
- text-align: center;
999
- width: 20px;
1000
- -webkit-font-smoothing: antialiased;
1001
- -moz-osx-font-smoothing: grayscale;
1002
- }
1003
- .sfsi_plus_plg-rating-dismiss{
1004
- position: absolute;
1005
- top: 45px;
1006
- right: 15px;
1007
- border: none;
1008
- margin: 0;
1009
- padding: 9px;
1010
- background: none;
1011
- color: #72777c;
1012
- cursor: pointer;
1013
- }
1014
- </style>
1015
- <div class="sfsi_plus_sfwp_fivestar notice notice-success">
1016
- <p><?php echo __('We noticed you\'ve been using the Ultimate Social Media PLUS Plugin for more than 30 days. If you\'re happy with it, could you please do us a BIG favor and let us know ONE thing we can improve in it?', SFSI_PLUS_DOMAIN);?></p>
1017
- <ul class="sfwp_fivestar_ul">
1018
- <li><a href="https://wordpress.org/support/plugin/ultimate-social-media-plus#new-topic-0" target="_new" title="<?php echo __('Yes, let me give feedback.',SFSI_PLUS_DOMAIN); ?>"><?php echo __('Yes, let me give feedback.', SFSI_PLUS_DOMAIN); ?></a></li>
1019
- <li><a href="https://wordpress.org/support/plugin/ultimate-social-media-plus/reviews/?filter=5" target="_new" title="<?php echo __('No clue, let me give a 5-star rating instead',SFSI_PLUS_DOMAIN) ?>"><?php echo __('No clue, let me give a 5-star rating instead',SFSI_PLUS_DOMAIN) ?></a></li>
1020
- <li><a href="javascript:void(0);" class="sfsiHideRating" title="<?php echo __('I already did', SFSI_PLUS_DOMAIN)?>"> <?php echo __('I already did (don\'t show this again)', SFSI_PLUS_DOMAIN); ?> </a></li>
1021
- </ul>
1022
- <button type="button" class="sfsi_plus_plg-rating-dismiss"><span class="screen-reader-text"><?php echo __('Dismiss this notice.',SFSI_PLUS_DOMAIN); ?></span></button>
1023
- </div>
1024
- <script>
1025
- jQuery( document ).ready(function( $ ) {
1026
- $('.sfsi_plus_plg-rating-dismiss').css({'top':$('.sfsi_plus_sfwp_fivestar')[0].offsetTop+'px'})
1027
- var sel1 = jQuery('.sfsiHideRating');
1028
- var sel2 = jQuery('.sfsi_plus_plg-rating-dismiss');
1029
- function sfsi_plus_hide_rating(element){
1030
- element.on('click',function(){
1031
- var data={'action':'plushideRating','nonce':'<?php echo wp_create_nonce('plus_plushideRating'); ?>'};
1032
- jQuery.ajax({
1033
-
1034
- url: "<?php echo admin_url( 'admin-ajax.php' ); ?>",
1035
- type: "post",
1036
- data: data,
1037
- dataType: "json",
1038
- async: !0,
1039
- success: function(e) {
1040
- if (e=="success") {
1041
- jQuery('.sfsi_plus_sfwp_fivestar').slideUp('slow');
1042
- }
1043
- }
1044
- });
1045
- });
1046
- }
1047
- sfsi_plus_hide_rating(sel1);
1048
- sfsi_plus_hide_rating(sel2);
1049
- });
1050
- </script>
1051
- <?php
1052
- }
1053
- }
1054
- add_action('wp_ajax_plushideRating','sfsi_plusHideRatingDiv');
1055
- function sfsi_plusHideRatingDiv()
1056
- {
1057
- if ( !wp_verify_nonce( $_POST['nonce'], "plus_plushideRating")) {
1058
- echo json_encode(array('res'=>"error")); exit;
1059
- }
1060
- if(!current_user_can('manage_options')){ echo json_encode(array('res'=>'not allowed'));die(); }
1061
- update_option('sfsi_plus_RatingDiv','yes');
1062
- echo json_encode(array("success")); exit;
1063
- }
1064
- /* add all admin message */
1065
- add_action('admin_notices', 'sfsi_plus_activation_msg');
1066
- add_action('admin_notices', 'sfsi_plus_rating_msg');
1067
- add_action('admin_notices', 'sfsi_plus_check_wp_head');
1068
- add_action('admin_notices', 'sfsi_plus_check_wp_footer');
1069
- function sfsi_plus_pingVendor( $post_id )
1070
- {
1071
- global $wp,$wpdb;
1072
- // If this is just a revision, don't send the email.
1073
- if ( wp_is_post_revision( $post_id ) )
1074
- return;
1075
-
1076
- $post_data=get_post($post_id,ARRAY_A);
1077
- if($post_data['post_status']=='publish' && $post_data['post_type']=='post') :
1078
-
1079
- $categories = wp_get_post_categories($post_data['ID']);
1080
- $cats='';
1081
- $total=count($categories);
1082
- $count=1;
1083
- foreach($categories as $c)
1084
- {
1085
- $cat_data = get_category( $c );
1086
- if($count==$total)
1087
- {
1088
- $cats.= $cat_data->name;
1089
- }
1090
- else
1091
- {
1092
- $cats.= $cat_data->name.',';
1093
- }
1094
- $count++;
1095
- }
1096
-
1097
- $postto_array = array(
1098
- 'feed_id' => sanitize_text_field(get_option('sfsi_plus_feed_id')),
1099
- 'title' => $post_data['post_title'],
1100
- 'description' => $post_data['post_content'],
1101
- 'link' => $post_data['guid'],
1102
- 'author' => get_the_author_meta('user_login', $post_data['post_author']),
1103
- 'category' => $cats,
1104
- 'pubDate' => $post_data['post_modified'],
1105
- 'rssurl' => sfsi_plus_get_bloginfo('rss2_url')
1106
- );
1107
- $args = array(
1108
- 'body' => $postto_array,
1109
- 'blocking' => true,
1110
- 'user-agent' => 'sf rss request',
1111
- 'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
1112
- 'sslverify' => true
1113
- );
1114
- $resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/updateFeedPlugin', $args );
1115
- if ( !is_wp_error( $resp ) ) {
1116
- $resp = json_decode($resp['body']);
1117
- return true;
1118
- }
1119
- endif;
1120
- }
1121
- add_action( 'save_post', 'sfsi_plus_pingVendor' );
1122
-
1123
- function sfsi_plus_was_displaying_addthis(){
1124
-
1125
- $isDismissed = true;
1126
- $sfsi_plus_section1 = unserialize(get_option('sfsi_plus_section1_options',false));
1127
- $sfsi_plus_section8 = unserialize(get_option('sfsi_plus_section8_options',false));
1128
- $sfsi_plus_addThiswasDisplayed_section1 = isset($sfsi_plus_section1['sfsi_plus_share_display']) && 'yes'== sanitize_text_field($sfsi_plus_section1['sfsi_plus_share_display']);
1129
-
1130
- $sfsi_plus_addThiswasDisplayed_section8 = isset($sfsi_plus_section8['sfsi_plus_rectshr']) && 'yes'== sanitize_text_field($sfsi_plus_section8['sfsi_plus_rectshr']);
1131
-
1132
- $isDisplayed = $sfsi_plus_addThiswasDisplayed_section1 || $sfsi_plus_addThiswasDisplayed_section8;
1133
-
1134
- // If icon was displayed
1135
- $isDismissed = false != $isDisplayed ? false : true;
1136
-
1137
- update_option('sfsi_plus_addThis_icon_removal_notice_dismissed',$isDismissed);
1138
-
1139
- if($sfsi_plus_addThiswasDisplayed_section1){
1140
- unset($sfsi_plus_section1['sfsi_plus_share_display']);
1141
- update_option('sfsi_plus_section1_options', serialize($sfsi_plus_section1) );
1142
- }
1143
-
1144
- if($sfsi_plus_addThiswasDisplayed_section8){
1145
- unset($sfsi_plus_section8['sfsi_plus_rectshr']);
1146
- update_option('sfsi_plus_section8_options', serialize($sfsi_plus_section8) );
1147
- }
1148
- }
1149
-
 
 
 
 
 
1150
  ?>
1
+ <?php
2
+ function sfsi_plus_update_plugin()
3
+ {
4
+ if($feed_id = sanitize_text_field(get_option('sfsi_plus_feed_id')))
5
+ {
6
+ if(is_numeric($feed_id))
7
+ {
8
+ $sfsiId = SFSI_PLUS_updateFeedUrl();
9
+ update_option('sfsi_plus_feed_id' , sanitize_text_field($sfsiId->feed_id));
10
+ update_option('sfsi_plus_redirect_url' , sanitize_text_field($sfsiId->redirect_url));
11
+ }
12
+ if(""==$feed_id){
13
+ $sffeeds = SFSI_PLUS_getFeedUrl();
14
+ update_option('sfsi_plus_feed_id' , sanitize_text_field($sffeeds->feed_id));
15
+ update_option('sfsi_plus_redirect_url' , sanitize_text_field($sffeeds->redirect_url));
16
+ }
17
+ }
18
+
19
+ //Install version
20
+ update_option("sfsi_plus_pluginVersion", "3.27");
21
+
22
+ if(!get_option('sfsi_plus_serverphpVersionnotification'))
23
+ {
24
+ add_option("sfsi_plus_serverphpVersionnotification", "yes");
25
+ }
26
+ /* show notification on about mobile setting */
27
+ if(!get_option('sfsi_plus_show_Setting_mobile_notification'))
28
+ {
29
+ add_option("sfsi_plus_show_Setting_mobile_notification", "yes");
30
+ }
31
+ /* show premium notification */
32
+ if(!get_option('sfsi_plus_show_premium_notification'))
33
+ {
34
+ add_option("sfsi_plus_show_premium_notification", "yes");
35
+ }
36
+ if(!get_option('sfsi_plus_show_premium_cumulative_count_notification'))
37
+ {
38
+ add_option("sfsi_plus_show_premium_cumulative_count_notification", "yes");
39
+ }
40
+ /*show notification*/
41
+ if(!get_option('sfsi_plus_show_notification'))
42
+ {
43
+ add_option("sfsi_plus_show_notification", "yes");
44
+ }
45
+ /* show new notification*/
46
+ if(!get_option('sfsi_plus_new_show_notification'))
47
+ {
48
+ add_option("sfsi_plus_new_show_notification", "no");
49
+ }
50
+
51
+
52
+ // var_dump(get_option('sfsi_plus_custom_icons'),'yes');
53
+ // die();
54
+
55
+ if(!get_option('sfsi_plus_custom_icons'))
56
+ {
57
+ update_option("sfsi_plus_custom_icons", "yes");
58
+ }
59
+ add_option('sfsi_plus_footer_sec','no');
60
+
61
+ /* subscription form */
62
+ $options9 = array('sfsi_plus_form_adjustment'=>'yes',
63
+ 'sfsi_plus_form_height'=>'180',
64
+ 'sfsi_plus_form_width' =>'230',
65
+ 'sfsi_plus_form_border'=>'yes',
66
+ 'sfsi_plus_form_border_thickness'=>'1',
67
+ 'sfsi_plus_form_border_color'=>'#b5b5b5',
68
+ 'sfsi_plus_form_background'=>'#ffffff',
69
+
70
+ 'sfsi_plus_form_heading_text'=>'Get new posts by email:',
71
+ 'sfsi_plus_form_heading_font'=>'Helvetica,Arial,sans-serif',
72
+ 'sfsi_plus_form_heading_fontstyle'=>'bold',
73
+ 'sfsi_plus_form_heading_fontcolor'=>'#000000',
74
+ 'sfsi_plus_form_heading_fontsize'=>'16',
75
+ 'sfsi_plus_form_heading_fontalign'=>'center',
76
+
77
+ 'sfsi_plus_form_field_text'=>'Enter your email',
78
+ 'sfsi_plus_form_field_font'=>'Helvetica,Arial,sans-serif',
79
+ 'sfsi_plus_form_field_fontstyle'=>'normal',
80
+ 'sfsi_plus_form_field_fontcolor'=>'#000000',
81
+ 'sfsi_plus_form_field_fontsize'=>'14',
82
+ 'sfsi_plus_form_field_fontalign'=>'center',
83
+
84
+ 'sfsi_plus_form_button_text'=>'Subscribe',
85
+ 'sfsi_plus_form_button_font'=>'Helvetica,Arial,sans-serif',
86
+ 'sfsi_plus_form_button_fontstyle'=>'bold',
87
+ 'sfsi_plus_form_button_fontcolor'=>'#000000',
88
+ 'sfsi_plus_form_button_fontsize'=>'16',
89
+ 'sfsi_plus_form_button_fontalign'=>'center',
90
+ 'sfsi_plus_form_button_background'=>'#dedede',
91
+ );
92
+ add_option('sfsi_plus_section9_options', serialize($options9));
93
+
94
+ $sfsi_plus_instagram_sf_count = unserialize(get_option('sfsi_plus_instagram_sf_count',false));
95
+ /*Extra important options*/
96
+ if($sfsi_plus_instagram_sf_count === false){
97
+ $sfsi_plus_instagram_sf_count = array(
98
+ "date_sf" => strtotime(date("Y-m-d")),
99
+ "date_instagram" => strtotime(date("Y-m-d")),
100
+ "sfsi_plus_sf_count" => "",
101
+ "sfsi_plus_instagram_count" => ""
102
+ );
103
+ add_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
104
+ }else{
105
+ if(isset($sfsi_plus_instagram_sf_count["date"])) {
106
+ $sfsi_plus_instagram_sf_count["date_sf"] = $sfsi_plus_instagram_sf_count["date"];
107
+ $sfsi_plus_instagram_sf_count["date_instagram"] = $sfsi_plus_instagram_sf_count["date"];
108
+ update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
109
+ }
110
+ }
111
+
112
+ /*Float Icon setting*/
113
+ $option8 = unserialize(get_option('sfsi_plus_section8_options',false));
114
+ if(isset($option8) && !empty($option8) && !isset($option8['sfsi_plus_icons_floatMargin_top']))
115
+ {
116
+ $option8['sfsi_plus_icons_floatMargin_top'] = '';
117
+ $option8['sfsi_plus_icons_floatMargin_bottom'] = '';
118
+ $option8['sfsi_plus_icons_floatMargin_left'] = '';
119
+ $option8['sfsi_plus_icons_floatMargin_right'] = '';
120
+ update_option('sfsi_plus_section8_options', serialize($option8));
121
+ }
122
+ if(isset($option8) && !empty($option8))
123
+ {
124
+ if(!isset($option8['sfsi_plus_rectpinit']))
125
+ {
126
+ $option8['sfsi_plus_rectpinit'] = 'no';
127
+ }
128
+ if(!isset($option8['sfsi_plus_rectfbshare']))
129
+ {
130
+ $option8['sfsi_plus_rectfbshare'] = 'no';
131
+ }
132
+ update_option('sfsi_plus_section8_options', serialize($option8));
133
+ }
134
+
135
+ /*Language icons*/
136
+ $option5 = unserialize(get_option('sfsi_plus_section5_options',false));
137
+
138
+ if(isset($option5) && !empty($option5))
139
+ {
140
+ if(!isset($option5['sfsi_plus_follow_icons_language'])){
141
+ $option5['sfsi_plus_follow_icons_language'] = 'Follow_en_US';
142
+ }
143
+ if(!isset($option5['sfsi_plus_facebook_icons_language'])){
144
+ $option5['sfsi_plus_facebook_icons_language'] = 'Visit_us_en_US';
145
+ }
146
+ if(!isset($option5['sfsi_plus_twitter_icons_language'])){
147
+ $option5['sfsi_plus_twitter_icons_language'] = 'Visit_us_en_US';
148
+ }
149
+ if(!isset($option5['sfsi_plus_icons_language'])){
150
+ $option5['sfsi_plus_icons_language'] = 'en_US';
151
+ }
152
+ if(!isset($option5['sfsi_plus_premium_size_box'])){
153
+ $option5['sfsi_plus_premium_size_box'] = 'no';
154
+ }
155
+ if(!isset($option5['sfsi_plus_custom_social_hide'])){
156
+ $option5['sfsi_plus_custom_social_hide'] = 'no';
157
+ }
158
+ if(!isset($option5['sfsi_plus_telegramIcon_order'])){
159
+ $option5['sfsi_plus_telegramIcon_order'] = '22';
160
+ }
161
+ if(!isset($option5['sfsi_plus_vkIcon_order'])){
162
+ $option5['sfsi_plus_vkIcon_order'] = '23';
163
+ }
164
+ if(!isset($option5['sfsi_plus_okIcon_order'])){
165
+ $option5['sfsi_plus_okIcon_order'] = '24';
166
+ }
167
+ if(!isset($option5['sfsi_plus_weiboIcon_order'])){
168
+ $option5['sfsi_plus_weiboIcon_order'] = '25';
169
+ }
170
+ if(!isset($option5['sfsi_plus_wechatIcon_order'])){
171
+ $option5['sfsi_plus_wechatIcon_order'] = '26';
172
+ }
173
+
174
+ if(!isset($option5['sfsi_icons_suppress_errors'])){
175
+
176
+ $sup_errors = "no";
177
+ $sup_errors_banner_dismissed = true;
178
+
179
+ if(defined('WP_DEBUG') && false != WP_DEBUG){
180
+ $sup_errors = 'yes';
181
+ $sup_errors_banner_dismissed = false;
182
+ }
183
+
184
+ $option5['sfsi_icons_suppress_errors'] = $sup_errors;
185
+ update_option('sfsi_error_reporting_notice_dismissed',$sup_errors_banner_dismissed);
186
+ }
187
+ update_option('sfsi_plus_section5_options', serialize($option5));
188
+ }
189
+
190
+ /*Youtube Channelid settings*/
191
+ $option4 = unserialize(get_option('sfsi_plus_section4_options',false));
192
+ if(isset($option4) && !empty($option4) && !isset($option4['sfsi_plus_youtube_channelId']))
193
+ {
194
+ $option4['sfsi_plus_youtube_channelId'] = '';
195
+ update_option('sfsi_plus_section4_options', serialize($option4));
196
+ }
197
+ /* section1 */
198
+ $option1 = unserialize(get_option('sfsi_plus_section1_options',false));
199
+ if(isset($option1) && !empty($option1) )
200
+ {
201
+ if(!isset($option1['sfsi_plus_ok_display'])){
202
+ $option1['sfsi_plus_ok_display'] = 'no';
203
+ }
204
+ if(!isset($option1['sfsi_plus_telegram_display'])){
205
+ $option1['sfsi_plus_telegram_display'] = 'no';
206
+ }
207
+ if(!isset($option1['sfsi_plus_vk_display'])){
208
+ $option1['sfsi_plus_vk_display'] = 'no';
209
+ }
210
+ if(!isset($option1['sfsi_plus_weibo_display'])){
211
+ $option1['sfsi_plus_weibo_display'] = 'no';
212
+ }
213
+ if(!isset($option1['sfsi_plus_wechat_display'])){
214
+ $option1['sfsi_plus_wechat_display'] = 'no';
215
+ }
216
+
217
+
218
+ update_option('sfsi_plus_section1_options', serialize($option1));
219
+ }
220
+ /* section2 */
221
+ $option2 = unserialize(get_option('sfsi_plus_section2_options',false));
222
+ if(isset($option2) && !empty($option2) && !isset($option2['sfsi_plus_premium_email_box']))
223
+ {
224
+ $option2['sfsi_plus_premium_email_box'] = 'no';
225
+ $option2['sfsi_plus_premium_facebook_box'] = 'no';
226
+ $option2['sfsi_plus_premium_twitter_box'] = 'no';
227
+
228
+ if(!isset($option2['sfsi_plus_mouseover_effect_type'])){
229
+ $option2['sfsi_plus_mouseover_effect_type'] = 'no';
230
+ }
231
+ if(!isset($option2['sfsi_plus_okVisit_url'])){
232
+ $option2['sfsi_plus_okVisit_url'] = 'no';
233
+ }
234
+ if(!isset($option2['sfsi_plus_okSubscribe_option'])){
235
+ $option2['sfsi_plus_okSubscribe_option'] = 'no';
236
+ }
237
+ if(!isset($option2['sfsi_plus_okSubscribe_userid'])){
238
+ $option2['sfsi_plus_okSubscribe_userid'] = 'no';
239
+ }
240
+ if(!isset($option2['sfsi_plus_okLike_option'])){
241
+ $option2['sfsi_plus_okLike_option'] = 'no';
242
+ }
243
+ if(!isset($option2['sfsi_plus_telegramShare_option'])){
244
+ $option2['sfsi_plus_telegramShare_option'] = 'no';
245
+ }
246
+ if(!isset($option2['sfsi_plus_telegramMessage_option'])){
247
+ $option2['sfsi_plus_telegramMessage_option'] = 'no';
248
+ }
249
+ if(!isset($option2['sfsi_plus_telegram_message'])){
250
+ $option2['sfsi_plus_telegram_message'] = 'no';
251
+ }
252
+ if(!isset($option2['sfsi_plus_telegram_username'])){
253
+ $option2['sfsi_plus_telegram_username'] = 'no';
254
+ }
255
+ if(!isset($option2['sfsi_plus_vkVisit_option'])){
256
+ $option2['sfsi_plus_vkVisit_option'] = 'no';
257
+ }
258
+ if(!isset($option2['sfsi_plus_vkShare_option'])){
259
+ $option2['sfsi_plus_vkShare_option'] = 'no';
260
+ }
261
+ if(!isset($option2['sfsi_plus_vkLike_option'])){
262
+ $option2['sfsi_plus_vkLike_option'] = 'no';
263
+ }
264
+ if(!isset($option2['sfsi_plus_vkFollow_option'])){
265
+ $option2['sfsi_plus_vkFollow_option'] = 'no';
266
+ }
267
+ if(!isset($option2['sfsi_plus_vkVisit_url'])){
268
+ $option2['sfsi_plus_vkVisit_url'] = 'no';
269
+ }
270
+ if(!isset($option2['gvfergergergergregergrg'])){
271
+ $option2['gvfergergergergregergrg'] = 'no';
272
+ }
273
+ if(!isset($option2['sfsi_plus_vkFollow_url'])){
274
+ $option2['sfsi_plus_vkFollow_url'] = 'no';
275
+ }
276
+ if(!isset($option2['sfsi_plus_weiboVisit_option'])){
277
+ $option2['sfsi_plus_weiboVisit_option'] = 'no';
278
+ }
279
+ if(!isset($option2['sfsi_plus_weiboShare_option'])){
280
+ $option2['sfsi_plus_weiboShare_option'] = 'no';
281
+ }
282
+ if(!isset($option2['sfsi_plus_weiboLike_option'])){
283
+ $option2['sfsi_plus_weiboLike_option'] = 'no';
284
+ }
285
+ if(!isset($option2['sfsi_plus_weiboVisit_url'])){
286
+ $option2['sfsi_plus_weiboVisit_url'] = 'no';
287
+ }
288
+ if(!isset($option2['sfsi_plus_wechatFollow_option'])){
289
+ $option2['sfsi_plus_wechatFollow_option'] = 'no';
290
+ }
291
+ if(!isset($option2['sfsi_plus_wechatShare_option'])){
292
+ $option2['sfsi_plus_wechatShare_option'] = 'no';
293
+ }
294
+ if(!isset($option2['sfsi_plus_wechat_scan_image'])){
295
+ $option2['sfsi_plus_wechat_scan_image'] = 'no';
296
+ }
297
+
298
+ update_option('sfsi_plus_section2_options', serialize($option2));
299
+ }
300
+ /* section3 */
301
+ $option3 = unserialize(get_option('sfsi_plus_section3_options',false));
302
+ if(isset($option3) && !empty($option3))
303
+ {
304
+ if(!isset($option3['sfsi_plus_mouseover_effect_type'])){
305
+ $option3['sfsi_plus_mouseover_effect_type'] = 'same_icons';
306
+ }
307
+ if(!isset($option3['mouseover_other_icons_transition_effect'])){
308
+ $option3['mouseover_other_icons_transition_effect'] = 'flip';
309
+ }
310
+
311
+ if(!isset($option3['sfsi_plus_premium_icons_design_box'])){
312
+ $option3['sfsi_plus_premium_icons_design_box'] = 'no';
313
+ }
314
+
315
+ update_option('sfsi_plus_section3_options', serialize($option3));
316
+ }
317
+ /* section4 */
318
+ $option4 = unserialize(get_option('sfsi_plus_section4_options',false));
319
+ if(isset($option4) && !empty($option4) && !isset($option4['sfsi_plus_premium_count_box']))
320
+ {
321
+ $option4['sfsi_plus_premium_count_box'] = 'no';
322
+ update_option('sfsi_plus_section4_options', serialize($option4));
323
+ }
324
+ /* section7 */
325
+ $option7 = unserialize(get_option('sfsi_plus_section7_options',false));
326
+ if(isset($option7) && !empty($option7) && !isset($option7['sfsi_plus_premium_popup_box']))
327
+ {
328
+ $option7['sfsi_plus_premium_popup_box'] = 'no';
329
+ update_option('sfsi_plus_section7_options', serialize($option7));
330
+ }
331
+ /* section8 */
332
+ $option8 = unserialize(get_option('sfsi_plus_section8_options',false));
333
+ if(isset($option8) && !empty($option8) && !isset($option8['sfsi_plus_show_premium_placement_box']))
334
+ {
335
+ $option8['sfsi_plus_show_premium_placement_box'] = 'no';
336
+ update_option('sfsi_plus_section8_options', serialize($option8));
337
+ }
338
+ $option4 = unserialize(get_option('sfsi_plus_section4_options',false));
339
+ if(isset($option4) && !empty($option4) && !isset($option4['sfsi_plus_instagram_clientid']))
340
+ {
341
+ $option4['sfsi_plus_instagram_clientid'] = '';
342
+ $option4['sfsi_plus_instagram_appurl'] = '';
343
+ $option4['sfsi_plus_instagram_token'] = '';
344
+ update_option('sfsi_plus_section4_options', serialize($option4));
345
+ }
346
+ if(isset($option8["sfsi_plus_display_button_type"]) && (""==$option8["sfsi_plus_display_button_type"] || "yes"==$option8["sfsi_plus_display_button_type"]) ) {
347
+ $option8["sfsi_plus_display_button_type"] = "standard_buttons";
348
+ }
349
+ sfsi_plus_remove_google();
350
+ // Add this removed in version 2.9.3, removing values from section 1 & section 6 & setting notice display value
351
+ sfsi_plus_was_displaying_addthis();
352
+ //deleteing as we dont need curl now.
353
+ delete_option("sfsi_plus_curlErrorNotices");
354
+ delete_option("sfsi_plus_curlErrorMessage");
355
+ }
356
+ function sfsi_plus_activate_plugin()
357
+ {
358
+ /* check for CURL enable at server */
359
+ add_option('sfsi_plus_plugin_do_activation_redirect', true);
360
+ // sfsi_plus_curl_enable_notice();
361
+
362
+ if(!get_option('sfsi_plus_new_show_notification'))
363
+ {
364
+ add_option("sfsi_plus_new_show_notification", "yes");
365
+ }
366
+
367
+ if(!get_option('sfsi_plus_show_premium_cumulative_count_notification'))
368
+ {
369
+ add_option("sfsi_plus_show_premium_cumulative_count_notification", "yes");
370
+ }
371
+ // var_dump(get_option('sfsi_plus_custom_icons'),'no');
372
+
373
+ if(!get_option('sfsi_plus_custom_icons'))
374
+ {
375
+ add_option("sfsi_plus_custom_icons", "no");
376
+ }
377
+
378
+ $options1=array('sfsi_plus_rss_display'=>'yes',
379
+ 'sfsi_plus_email_display'=>'yes',
380
+ 'sfsi_plus_facebook_display'=>'yes',
381
+ 'sfsi_plus_twitter_display'=>'yes',
382
+ 'sfsi_plus_pinterest_display'=>'no',
383
+ 'sfsi_plus_instagram_display'=>'no',
384
+ 'sfsi_plus_linkedin_display'=>'no',
385
+ 'sfsi_plus_youtube_display'=>'no',
386
+ 'sfsi_plus_houzz_display'=>'no',
387
+ 'sfsi_plus_ok_display'=>'no',
388
+ 'sfsi_plus_telegram_display'=>'no',
389
+ 'sfsi_plus_vk_display'=>'no',
390
+ 'sfsi_plus_weibo_display'=>'no',
391
+ 'sfsi_plus_wechat_display'=>'no',
392
+ 'sfsi_custom_display'=>'',
393
+ 'sfsi_custom_files'=>'',
394
+ 'sfsi_plus_premium_icons_box' =>'yes',
395
+ );
396
+ add_option('sfsi_plus_section1_options', serialize($options1));
397
+
398
+ if(get_option('sfsi_plus_feed_id') && get_option('sfsi_plus_redirect_url'))
399
+ {
400
+ $sffeeds["feed_id"] = sanitize_text_field(get_option('sfsi_plus_feed_id'));
401
+ $sffeeds["redirect_url"] = sanitize_text_field(get_option('sfsi_plus_redirect_url'));
402
+ $sffeeds = (object)$sffeeds;
403
+ }
404
+ else
405
+ {
406
+ $sffeeds = SFSI_PLUS_getFeedUrl();
407
+ }
408
+
409
+ /* Links and icons options */
410
+ $options2=array('sfsi_plus_rss_url'=>sfsi_plus_get_bloginfo('rss2_url'),
411
+ 'sfsi_plus_rss_icons'=>'subscribe',
412
+ 'sfsi_plus_email_url'=>$sffeeds->redirect_url,
413
+ 'sfsi_plus_facebookPage_option'=>'no',
414
+ 'sfsi_plus_facebookPage_url'=>'',
415
+ 'sfsi_plus_facebookLike_option'=>'yes',
416
+ 'sfsi_plus_facebookShare_option'=>'yes',
417
+ 'sfsi_plus_twitter_followme'=>'no',
418
+ 'sfsi_plus_twitter_followUserName'=>'',
419
+ 'sfsi_plus_twitter_aboutPage'=>'yes',
420
+ 'sfsi_plus_twitter_page'=>'no',
421
+ 'sfsi_plus_twitter_pageURL'=>'',
422
+ 'sfsi_plus_twitter_aboutPageText'=>'Hey, check out this cool site I found: www.yourname.com #Topic via@my_twitter_name',
423
+ 'sfsi_plus_youtube_pageUrl'=>'',
424
+ 'sfsi_plus_youtube_page'=>'no',
425
+ 'sfsi_plus_youtube_follow'=>'no',
426
+ 'sfsi_plus_youtubeusernameorid'=>'name',
427
+ 'sfsi_plus_ytube_chnlid'=>'',
428
+ 'sfsi_plus_ytube_user'=>'',
429
+ 'sfsi_plus_pinterest_page'=>'no',
430
+ 'sfsi_plus_pinterest_pageUrl'=>'',
431
+ 'sfsi_plus_pinterest_pingBlog'=>'',
432
+ 'sfsi_plus_instagram_page'=>'no',
433
+ 'sfsi_plus_instagram_pageUrl'=>'',
434
+ 'sfsi_plus_houzz_pageUrl'=>'',
435
+ 'sfsi_plus_linkedin_page'=>'no',
436
+ 'sfsi_plus_linkedin_pageURL'=>'',
437
+ 'sfsi_plus_linkedin_follow'=>'no',
438
+ 'sfsi_plus_linkedin_followCompany'=>'',
439
+ 'sfsi_plus_linkedin_SharePage'=>'yes',
440
+ 'sfsi_plus_linkedin_recommendBusines'=>'no',
441
+ 'sfsi_plus_linkedin_recommendCompany'=>'',
442
+ 'sfsi_plus_linkedin_recommendProductId'=>'',
443
+ 'sfsi_plus_okVisit_option' => 'no',
444
+ 'sfsi_plus_okVisit_url' => '',
445
+ 'sfsi_plus_okSubscribe_option' => 'no',
446
+ 'sfsi_plus_okSubscribe_userid' => '',
447
+ 'sfsi_plus_okLike_option' => 'no',
448
+ 'sfsi_plus_wechatFollow_option' => 'no',
449
+ 'sfsi_plus_wechatShare_option' => 'no',
450
+
451
+ 'sfsi_plus_telegramShare_option' => 'no',
452
+ 'sfsi_plus_telegramMessage_option' => 'no',
453
+ 'sfsi_plus_telegram_message' => '',
454
+ 'sfsi_plus_telegram_username' => '',
455
+ 'sfsi_plus_CustomIcon_links'=>'',
456
+ 'sfsi_plus_premium_email_box'=>'yes',
457
+ 'sfsi_plus_premium_facebook_box'=>'yes',
458
+ 'sfsi_plus_premium_twitter_box'=>'yes',
459
+ );
460
+ add_option('sfsi_plus_section2_options', serialize($options2));
461
+
462
+ /* Design and animation option */
463
+ $options3= array(
464
+ 'sfsi_plus_mouseOver' =>'no',
465
+ 'sfsi_plus_mouseOver_effect' =>'fade_in',
466
+ 'sfsi_plus_mouseover_effect_type' => 'same_icons',
467
+ 'mouseover_other_icons_transition_effect' => 'flip',
468
+ 'sfsi_plus_shuffle_icons' =>'no',
469
+ 'sfsi_plus_shuffle_Firstload' =>'no',
470
+ 'sfsi_plus_shuffle_interval' =>'no',
471
+ 'sfsi_plus_shuffle_intervalTime' =>'',
472
+ 'sfsi_plus_actvite_theme' =>'default',
473
+ 'sfsi_plus_premium_icons_design_box'=>'yes',
474
+ );
475
+
476
+ add_option('sfsi_plus_section3_options', serialize($options3));
477
+
478
+ /* display counts options */
479
+ $options4=array('sfsi_plus_display_counts'=>'no',
480
+ 'sfsi_plus_email_countsDisplay'=>'no',
481
+ 'sfsi_plus_email_countsFrom'=>'source',
482
+ 'sfsi_plus_email_manualCounts'=>'20',
483
+ 'sfsi_plus_rss_countsDisplay'=>'no',
484
+ 'sfsi_plus_rss_manualCounts'=>'20',
485
+ 'sfsi_plus_facebook_PageLink'=>'',
486
+ 'sfsi_plus_facebook_countsDisplay'=>'no',
487
+ 'sfsi_plus_facebook_countsFrom'=>'manual',
488
+ 'sfsi_plus_facebook_manualCounts'=>'20',
489
+ 'sfsi_plus_twitter_countsDisplay'=>'no',
490
+ 'sfsi_plus_twitter_countsFrom'=>'manual',
491
+ 'sfsi_plus_twitter_manualCounts'=>'20',
492
+ 'sfsi_plus_google_api_key'=>'',
493
+ 'sfsi_plus_linkedIn_countsDisplay'=>'no',
494
+ 'sfsi_plus_linkedIn_countsFrom'=>'manual',
495
+ 'sfsi_plus_linkedIn_manualCounts'=>'20',
496
+ 'sfsi_plus_ln_api_key'=>'',
497
+ 'sfsi_plus_ln_secret_key'=>'',
498
+ 'sfsi_plus_ln_oAuth_user_token'=>'',
499
+ 'sfsi_plus_ln_company'=>'',
500
+ 'sfsi_plus_youtube_user'=>'',
501
+ 'sfsi_plus_youtube_channelId'=>'',
502
+ 'sfsi_plus_youtube_countsDisplay'=>'no',
503
+ 'sfsi_plus_youtube_countsFrom'=>'manual',
504
+ 'sfsi_plus_youtube_manualCounts'=>'20',
505
+ 'sfsi_plus_pinterest_countsDisplay'=>'no',
506
+ 'sfsi_plus_pinterest_countsFrom'=>'manual',
507
+ 'sfsi_plus_pinterest_manualCounts'=>'20',
508
+ 'sfsi_plus_pinterest_user'=>'',
509
+ 'sfsi_plus_pinterest_board'=>'',
510
+ 'sfsi_plus_instagram_countsFrom'=>'manual',
511
+ 'sfsi_plus_instagram_countsDisplay'=>'no',
512
+ 'sfsi_plus_instagram_manualCounts'=>'20',
513
+ 'sfsi_plus_instagram_User'=>'',
514
+ 'sfsi_plus_instagram_clientid'=>'',
515
+ 'sfsi_plus_instagram_appurl' =>'',
516
+ 'sfsi_plus_instagram_token' =>'',
517
+ 'sfsi_plus_houzz_countsDisplay'=>'no',
518
+ 'sfsi_plus_houzz_countsFrom'=>'manual',
519
+ 'sfsi_plus_houzz_manualCounts'=>'20',
520
+ 'sfsi_plus_ok_countsDisplay' => 'no',
521
+ 'sfsi_plus_vk_countsDisplay' => 'no',
522
+ 'sfsi_plus_telegram_countsDisplay' => 'no',
523
+ 'sfsi_plus_weibo_countsDisplay' => 'no',
524
+ 'sfsi_plus_ok_manualCounts' => '20',
525
+ 'sfsi_plus_vk_manualCounts' => '20',
526
+ 'sfsi_plus_telegram_manualCounts' => '20',
527
+ 'sfsi_plus_weibo_manualCounts' => '20',
528
+ 'sfsi_plus_premium_count_box'=>'yes',
529
+ );
530
+ add_option('sfsi_plus_section4_options', serialize($options4));
531
+
532
+ $options5=array('sfsi_plus_icons_size'=>'40',
533
+ 'sfsi_plus_icons_spacing'=>'5',
534
+ 'sfsi_plus_icons_Alignment'=>'left',
535
+ 'sfsi_plus_icons_perRow'=>'5',
536
+ 'sfsi_plus_follow_icons_language'=>'Follow_en_US',
537
+ 'sfsi_plus_facebook_icons_language'=>'Visit_us_en_US',
538
+ 'sfsi_plus_twitter_icons_language'=>'Visit_us_en_US',
539
+ 'sfsi_plus_icons_language'=>'en_US',
540
+ 'sfsi_plus_icons_ClickPageOpen'=>'yes',
541
+ 'sfsi_plus_icons_float'=>'no',
542
+ 'sfsi_plus_disable_floaticons'=>'no',
543
+ 'sfsi_plus_disable_viewport'=>'no',
544
+ 'sfsi_plus_icons_floatPosition'=>'center-right',
545
+ 'sfsi_plus_icons_stick'=>'no',
546
+ 'sfsi_plus_rssIcon_order'=>'1',
547
+ 'sfsi_plus_emailIcon_order'=>'2',
548
+ 'sfsi_plus_facebookIcon_order'=>'3',
549
+ 'sfsi_plus_twitterIcon_order'=>'4',
550
+ 'sfsi_plus_youtubeIcon_order'=>'5',
551
+ 'sfsi_plus_pinterestIcon_order'=>'7',
552
+ 'sfsi_plus_linkedinIcon_order'=>'8',
553
+ 'sfsi_plus_instagramIcon_order'=>'9',
554
+ 'sfsi_plus_houzzIcon_order'=>'10',
555
+ 'sfsi_plus_telegramIcon_order'=>'22',
556
+ 'sfsi_plus_vkIcon_order'=>'23',
557
+ 'sfsi_plus_okIcon_order'=>'24',
558
+ 'sfsi_plus_weiboIcon_order'=>'25',
559
+ 'sfsi_plus_wechatIcon_order'=>'26',
560
+ 'sfsi_plus_CustomIcons_order'=>'',
561
+ 'sfsi_plus_rss_MouseOverText'=>'RSS',
562
+ 'sfsi_plus_email_MouseOverText'=>'Follow by Email',
563
+ 'sfsi_plus_twitter_MouseOverText'=>'Twitter',
564
+ 'sfsi_plus_facebook_MouseOverText'=>'Facebook',
565
+ 'sfsi_plus_linkedIn_MouseOverText'=>'LinkedIn',
566
+ 'sfsi_plus_pinterest_MouseOverText'=>'Pinterest',
567
+ 'sfsi_plus_instagram_MouseOverText'=>'Instagram',
568
+ 'sfsi_plus_telegram_MouseOverText'=>'Telegram',
569
+ 'sfsi_plus_vk_MouseOverText'=>'Vk',
570
+ 'sfsi_plus_houzz_MouseOverText'=>'Houzz',
571
+ 'sfsi_plus_youtube_MouseOverText'=>'YouTube',
572
+ 'sfsi_plus_ok_MouseOverText' => "Ok",
573
+
574
+ 'sfsi_plus_vk_MouseOverText' => "Vk",
575
+ 'sfsi_plus_weibo_MouseOverText' => "Weibo",
576
+ 'sfsi_plus_wechat_MouseOverText' => "Wechat",
577
+ 'sfsi_plus_custom_MouseOverTexts'=>'',
578
+ 'sfsi_plus_premium_size_box'=>'yes',
579
+ 'sfsi_plus_custom_social_hide'=>'no',
580
+ 'sfsi_pplus_icons_suppress_errors'=>'no',
581
+ );
582
+ add_option('sfsi_plus_section5_options', serialize($options5));
583
+
584
+ /* post options */
585
+ $options6=array('sfsi_plus_show_Onposts'=>'no',
586
+ 'sfsi_plus_show_Onbottom'=>'no',
587
+ 'sfsi_plus_icons_postPositon'=>'source',
588
+ 'sfsi_plus_icons_alignment'=>'center-right',
589
+ 'sfsi_plus_rss_countsDisplay'=>'no',
590
+ 'sfsi_plus_textBefor_icons'=>'Please follow and like us:',
591
+ 'sfsi_plus_icons_DisplayCounts'=>'no');
592
+ add_option('sfsi_plus_section6_options', serialize($options6));
593
+
594
+ /* icons pop options */
595
+ $options7=array('sfsi_plus_show_popup'=>'no',
596
+ 'sfsi_plus_popup_text'=>'Enjoy this blog? Please spread the word :)',
597
+ 'sfsi_plus_popup_background_color'=>'#eff7f7',
598
+ 'sfsi_plus_popup_border_color'=>'#f3faf2',
599
+ 'sfsi_plus_popup_border_thickness'=>'1',
600
+ 'sfsi_plus_popup_border_shadow'=>'yes',
601
+ 'sfsi_plus_popup_font'=>'Helvetica,Arial,sans-serif',
602
+ 'sfsi_plus_popup_fontSize'=>'30',
603
+ 'sfsi_plus_popup_fontStyle'=>'normal',
604
+ 'sfsi_plus_popup_fontColor'=>'#000000',
605
+ 'sfsi_plus_Show_popupOn'=>'none',
606
+ 'sfsi_plus_Show_popupOn_PageIDs'=>'',
607
+ 'sfsi_plus_Shown_pop'=>'ETscroll',
608
+ 'sfsi_plus_Shown_popupOnceTime'=>'',
609
+ 'sfsi_plus_Shown_popuplimitPerUserTime'=>'',
610
+ 'sfsi_plus_premium_popup_box' =>'yes',
611
+
612
+ );
613
+ add_option('sfsi_plus_section7_options', serialize($options7));
614
+
615
+ /*options that are added in the third question*/
616
+ if(get_option('sfsi_plus_section4_options',false))
617
+ $option4= unserialize(get_option('sfsi_plus_section4_options',false));
618
+ if(get_option('sfsi_plus_section5_options',false))
619
+ $option5= unserialize(get_option('sfsi_plus_section5_options',false));
620
+ if(get_option('sfsi_plus_section6_options',false))
621
+ $option6= unserialize(get_option('sfsi_plus_section6_options',false));
622
+
623
+ /*if($option6['sfsi_plus_show_Onposts'] == 'yes')
624
+ {
625
+ $sfsi_plus_display_button_type = 'standard_buttons';
626
+ }
627
+ else
628
+ {
629
+ $sfsi_plus_display_button_type = '';
630
+ }*/
631
+
632
+ $options8 = array(
633
+ 'sfsi_plus_show_via_widget'=>'no',
634
+ 'sfsi_plus_float_on_page'=> $option5['sfsi_plus_icons_float'],
635
+ 'sfsi_plus_float_page_position'=>$option5['sfsi_plus_icons_floatPosition'],
636
+ 'sfsi_plus_icons_floatMargin_top'=>'',
637
+ 'sfsi_plus_icons_floatMargin_bottom'=>'',
638
+ 'sfsi_plus_icons_floatMargin_left'=>'',
639
+ 'sfsi_plus_icons_floatMargin_right'=>'',
640
+ 'sfsi_plus_post_icons_size'=>$option5['sfsi_plus_icons_size'],
641
+ 'sfsi_plus_post_icons_spacing'=>$option5['sfsi_plus_icons_spacing'],
642
+ 'sfsi_plus_show_Onposts'=>$option6['sfsi_plus_show_Onposts'],
643
+ 'sfsi_plus_textBefor_icons'=>$option6['sfsi_plus_textBefor_icons'],
644
+ 'sfsi_plus_icons_alignment'=>$option6['sfsi_plus_icons_alignment'],
645
+ 'sfsi_plus_icons_DisplayCounts'=>$option6['sfsi_plus_icons_DisplayCounts'],
646
+ 'sfsi_plus_place_item_manually'=>'no',
647
+ /*'sfsi_plus_show_item_onposts'=>'no',*/
648
+ 'sfsi_plus_show_item_onposts'=> $option6['sfsi_plus_show_Onposts'],
649
+ 'sfsi_plus_display_button_type'=> 'standard_buttons',
650
+ 'sfsi_plus_display_before_posts'=>'no',
651
+ 'sfsi_plus_display_after_posts'=>$option6['sfsi_plus_show_Onposts'],
652
+ 'sfsi_plus_display_on_postspage'=>'no',
653
+ 'sfsi_plus_display_on_homepage'=>'no',
654
+ 'sfsi_plus_display_before_blogposts'=>'no',
655
+ 'sfsi_plus_display_after_blogposts'=>'no',
656
+ 'sfsi_plus_rectsub'=>'yes',
657
+ 'sfsi_plus_rectfb'=>'yes',
658
+ 'sfsi_plus_rectgp'=>'no',
659
+ 'sfsi_plus_recttwtr'=>'yes',
660
+ 'sfsi_plus_rectpinit'=>'yes',
661
+ 'sfsi_plus_rectfbshare'=>'yes',
662
+ 'sfsi_plus_show_premium_placement_box'=>'yes');
663
+
664
+ add_option('sfsi_plus_section8_options', serialize($options8));
665
+
666
+ /*Some additional option added*/
667
+ update_option('sfsi_plus_feed_id' , sanitize_text_field($sffeeds->feed_id));
668
+ update_option('sfsi_plus_redirect_url' , sanitize_text_field($sffeeds->redirect_url));
669
+
670
+ add_option('sfsi_plus_installDate',date('Y-m-d h:i:s'));
671
+ add_option('sfsi_plus_RatingDiv','no');
672
+ update_option('sfsi_plus_activate', 1);
673
+
674
+ /*Changes in option 2*/
675
+ $get_option2 = unserialize(get_option('sfsi_plus_section2_options',false));
676
+ $get_option2['sfsi_plus_email_url'] = $sffeeds->redirect_url;
677
+ update_option('sfsi_plus_section2_options', serialize($get_option2));
678
+
679
+ $addThisDismissed = get_option('sfsi_addThis_icon_removal_notice_dismissed',false);
680
+
681
+ if(!isset($addThisDismissed)){
682
+ update_option('sfsi_addThis_icon_removal_notice_dismissed',true);
683
+ }
684
+
685
+ /*Activation Setup for (specificfeed)*/
686
+ sfsi_plus_setUpfeeds($sffeeds->feed_id);
687
+ sfsi_plus_updateFeedPing('N',$sffeeds->feed_id);
688
+
689
+ /*Extra important options*/
690
+ $sfsi_plus_instagram_sf_count = array(
691
+ "date_sf" => strtotime(date("Y-m-d")),
692
+ "date_instagram" => strtotime(date("Y-m-d")),
693
+ "sfsi_plus_sf_count" => "",
694
+ "sfsi_plus_instagram_count" => ""
695
+ );
696
+ add_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
697
+ sfsi_plus_remove_google();
698
+ }
699
+ /* end function */
700
+ /* deactivate plugin */
701
+ function sfsi_plus_deactivate_plugin()
702
+ {
703
+ global $wpdb;
704
+ sfsi_plus_updateFeedPing('Y',sanitize_text_field(get_option('sfsi_plus_feed_id')));
705
+
706
+ } /* end function */
707
+ function sfsi_plus_remove_google(){
708
+ $option1 = unserialize(get_option('sfsi_plus_section1_options',false));
709
+ if(isset($option1['sfsi_plus_google_display'])){
710
+ unset($option1['sfsi_plus_google_display']);
711
+ }
712
+ update_option('sfsi_plus_section1_options', serialize($option1));
713
+
714
+ $option2 = unserialize(get_option('sfsi_plus_section2_options',false));
715
+ if(isset($option2['sfsi_plus_premium_google_box'])){
716
+ unset($option2['sfsi_plus_premium_google_box']);
717
+ }
718
+ if(isset($option2['sfsi_plus_google_page'])){
719
+ unset($option2['sfsi_plus_google_page']);
720
+ }
721
+ if(isset($option2['sfsi_plus_google_pageURL'])){
722
+ unset($option2['sfsi_plus_google_pageURL']);
723
+ }
724
+ if(isset($option2['sfsi_plus_googleLike_option'])){
725
+ unset($option2['sfsi_plus_googleLike_option']);
726
+ }
727
+ if(isset($option2['sfsi_plus_googleShare_option'])){
728
+ unset($option2['sfsi_plus_googleShare_option']);
729
+ }
730
+ update_option('sfsi_plus_section2_options', serialize($option2));
731
+
732
+ $option4 = unserialize(get_option('sfsi_plus_section4_options',false));
733
+ if(isset($option4['sfsi_plus_google_api_key'])){
734
+ unset($option4['sfsi_plus_google_api_key']);
735
+ }
736
+ if(isset($option4['sfsi_plus_google_countsDisplay'])){
737
+ unset($option4['sfsi_plus_google_countsDisplay']);
738
+ }
739
+ if(isset($option4['sfsi_plus_google_countsFrom'])){
740
+ unset($option4['sfsi_plus_google_countsFrom']);
741
+ }
742
+ if(isset($option4['sfsi_plus_google_manualCounts'])){
743
+ unset($option4['sfsi_plus_google_manualCounts']);
744
+ }
745
+ update_option('sfsi_plus_section4_options', serialize($option4));
746
+
747
+ $option5 = unserialize(get_option('sfsi_plus_section5_options',false));
748
+ if(isset($option5['sfsi_plus_google_icons_language'])){
749
+ unset($option5['sfsi_plus_google_icons_language']);
750
+ }
751
+ if(isset($option5['sfsi_plus_googleIcon_order'])){
752
+ unset($option5['sfsi_plus_googleIcon_order']);
753
+ }
754
+ if(isset($option5['sfsi_plus_google_MouseOverText'])){
755
+ unset($option5['sfsi_plus_google_MouseOverText']);
756
+ }
757
+ update_option('sfsi_plus_section5_options', serialize($option5));
758
+
759
+ }
760
+ function sfsi_plus_updateFeedPing($status,$feed_id)
761
+ {
762
+ $body = array(
763
+ 'feed_id' => $feed_id,
764
+ 'status' => $status
765
+ );
766
+
767
+ $args = array(
768
+ 'body' => $body,
769
+ 'timeout' => '5',
770
+ 'redirection' => '5',
771
+ 'httpversion' => '1.0',
772
+ 'blocking' => true,
773
+ 'headers' => array(),
774
+ 'cookies' => array()
775
+ );
776
+
777
+ $resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/pingfeed', $args );
778
+ return $resp;
779
+ }
780
+ /* unistall plugin function */
781
+ function sfsi_plus_Unistall_plugin()
782
+ { global $wpdb;
783
+ /* Delete option for which icons to display */
784
+ delete_option('sfsi_plus_section1_options');
785
+ delete_option('sfsi_plus_section2_options');
786
+ delete_option('sfsi_plus_section3_options');
787
+ delete_option('sfsi_plus_section4_options');
788
+ delete_option('sfsi_plus_section5_options');
789
+ delete_option('sfsi_plus_section6_options');
790
+ delete_option('sfsi_plus_section7_options');
791
+ delete_option('sfsi_plus_section8_options');
792
+ delete_option('sfsi_plus_section9_options');
793
+ delete_option('sfsi_plus_feed_id');
794
+ delete_option('sfsi_plus_redirect_url');
795
+ delete_option('sfsi_plus_footer_sec');
796
+ delete_option('sfsi_plus_activate');
797
+ delete_option("sfsi_plus_pluginVersion");
798
+ delete_option("sfsi_plus_verificatiom_code");
799
+ delete_option("sfsi_plus_curlErrorNotices");
800
+ delete_option("sfsi_plus_curlErrorMessage");
801
+
802
+ delete_option("adding_plustags");
803
+ delete_option("sfsi_plus_installDate");
804
+ delete_option("sfsi_plus_RatingDiv");
805
+ delete_option("sfsi_plus_instagram_sf_count");
806
+ delete_option("sfsi_plus_new_show_notification");
807
+ delete_option("sfsi_plus_show_Setting_mobile_notification");
808
+ delete_option("sfsi_plus_show_premium_notification");
809
+ delete_option("sfsi_plus_show_notification");
810
+ delete_option('sfsi_plus_serverphpVersionnotification');
811
+ delete_option("sfsi_plus_show_premium_cumulative_count_notification");
812
+
813
+ delete_option("sfsi_addThis_icon_removal_notice_dismissed");
814
+ delete_option('widget_sfsi-plus-widget');
815
+ delete_option('widget_sfsiplus_subscriber_widget');
816
+
817
+ delete_option('fs_active_plugins');
818
+ delete_option('fs_accounts');
819
+ delete_option('fs_api_cache');
820
+ delete_option('fs_debug_mode');
821
+ }
822
+ /* end function */
823
+ /* check CUrl */
824
+ function sfsi_plus_curl_enable_notice(){
825
+ if(!function_exists('curl_init')) {
826
+ echo '<div class="error"><p> '.__('Error: It seems that CURL is disabled on your server. Please contact your server administrator to install / enable CURL.',SFSI_PLUS_DOMAIN).'</p></div>'; die;
827
+ }
828
+ }
829
+
830
+ /* add admin menus */
831
+ function sfsi_plus_admin_menu() {
832
+ add_menu_page(
833
+ 'Ultimate Social Media PLUS',
834
+ 'Ultimate Social Media PLUS',
835
+ 'administrator',
836
+ 'sfsi-plus-options',
837
+ 'sfsi_plus_options_page',
838
+ plugins_url( 'images/logo.png' , dirname(__FILE__) )
839
+ );
840
+ }
841
+ function sfsi_plus_options_page(){ include SFSI_PLUS_DOCROOT . '/views/sfsi_options_view.php'; } /* end function */
842
+ function sfsi_plus_about_page(){ include SFSI_PLUS_DOCROOT . '/views/sfsi_aboutus.php'; } /* end function */
843
+ if ( is_admin() ){
844
+ add_action('admin_menu', 'sfsi_plus_admin_menu');
845
+ }
846
+
847
+ /* fetch rss url from specificfeeds */
848
+ function SFSI_PLUS_getFeedUrl()
849
+ {
850
+ $body = array(
851
+ 'web_url' => get_bloginfo('url'),
852
+ 'feed_url' => sfsi_plus_get_bloginfo('rss2_url'),
853
+ 'email' => '',
854
+ 'subscriber_type' => 'PLWP'
855
+ );
856
+
857
+ $args = array(
858
+ 'body' => $body,
859
+ 'blocking' => true,
860
+ 'user-agent' => 'sf rss request',
861
+ 'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
862
+ 'sslverify' => false
863
+ );
864
+ $resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/plugin_setup', $args );
865
+ if ( !is_wp_error( $resp ) ) {
866
+ $resp = json_decode($resp['body']);
867
+ }
868
+ $feed_url = stripslashes_deep($resp->redirect_url);
869
+ return $resp;exit;
870
+ }
871
+ /* fetch rss url from specificfeeds on */
872
+ function SFSI_PLUS_updateFeedUrl()
873
+ {
874
+ $body = array(
875
+ 'feed_id' => sanitize_text_field(get_option('sfsi_plus_feed_id')),
876
+ 'web_url' => get_bloginfo('url'),
877
+ 'feed_url' => sfsi_plus_get_bloginfo('rss2_url'),
878
+ 'email' => ''
879
+ );
880
+
881
+ $args = array(
882
+ 'body' => $body,
883
+ 'blocking' => true,
884
+ 'user-agent' => 'sf rss request',
885
+ 'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
886
+ 'sslverify' => false
887
+ );
888
+ $resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/updateFeedPlugin', $args );
889
+ if ( is_wp_error( $resp ) ) {
890
+ } else {
891
+ $resp = json_decode($resp['body']);
892
+ }
893
+
894
+ $feed_url = stripslashes_deep($resp->redirect_url);
895
+ return $resp;exit;
896
+ }
897
+ /* add sf tags */
898
+ function sfsi_plus_setUpfeeds($feed_id)
899
+ {
900
+ $args = array(
901
+ 'blocking' => true,
902
+ 'user-agent' => 'sf rss request',
903
+ 'header' => array("Content-Type"=>"application/json"),
904
+ 'sslverify' => true
905
+ );
906
+ $resp = wp_remote_get( 'https://www.specificfeeds.com/rssegtcrons/download_rssmorefeed_data_single/'.$feed_id."/Y", $args );
907
+ }
908
+ /* admin notice if wp_head is missing in active theme */
909
+ function sfsi_plus_check_wp_head() {
910
+
911
+ $template_directory = get_template_directory();
912
+ $header = $template_directory . '/header.php';
913
+
914
+ if (is_file($header)) {
915
+
916
+ $search_header = "wp_head";
917
+ $file_lines = @file($header);
918
+ $foind_header=0;
919
+ foreach ($file_lines as $line)
920
+ {
921
+ $searchCount = substr_count($line, $search_header);
922
+ if ($searchCount > 0)
923
+ {
924
+ return true;
925
+ }
926
+ }
927
+ $path=pathinfo($_SERVER['REQUEST_URI']);
928
+ if($path['basename']=="themes.php" || $path['basename']=="theme-editor.php" || $path['basename']=="admin.php?page=sfsi-plus-options")
929
+ {
930
+ $currentTheme = wp_get_theme();
931
+
932
+ if(isset($currentTheme) && !empty($currentTheme) && $currentTheme->get( 'Name' ) != "Customizr"){
933
+
934
+ echo "<div class=\"error\" ><p>". __( 'Error : Please fix your theme to make plugins work correctly. Go to the Theme Editor and insert the following string:', SFSI_PLUS_DOMAIN )." &lt;?php wp_head(); ?&gt; ".__('Please enter it just before the following line of your header.php file:',SFSI_PLUS_DOMAIN)." &lt;/head&gt; ".__('Go to your theme editor: ',SFSI_PLUS_DOMAIN)."<a href=\"theme-editor.php\">".__('click here', SFSI_PLUS_DOMAIN )."</a>.</p></div>";
935
+ }
936
+
937
+ }
938
+ }
939
+ }
940
+ /* admin notice if wp_footer is missing in active theme */
941
+ function sfsi_plus_check_wp_footer() {
942
+ $template_directory = get_template_directory();
943
+ $footer = $template_directory . '/footer.php';
944
+
945
+ if (is_file($footer)) {
946
+ $search_string = "wp_footer";
947
+ $file_lines = @file($footer);
948
+
949
+ foreach ($file_lines as $line) {
950
+ $searchCount = substr_count($line, $search_string);
951
+ if ($searchCount > 0) {
952
+ return true;
953
+ }
954
+ }
955
+ $path=pathinfo($_SERVER['REQUEST_URI']);
956
+
957
+ if($path['basename']=="themes.php" || $path['basename']=="theme-editor.php" || $path['basename']=="admin.php?page=sfsi-plus-options")
958
+ {
959
+ echo "<div class=\"error\" ><p>". __("Error: Please fix your theme to make plugins work correctly. Go to the Theme Editor and insert the following string as the first line of your theme's footer.php file: ", SFSI_PLUS_DOMAIN)." &lt;?php wp_footer(); ?&gt; ".__("Go to your theme editor: ", SFSI_PLUS_DOMAIN)."<a href=\"theme-editor.php\">".__('click here', SFSI_PLUS_DOMAIN )."</a>.</p></div>";
960
+ }
961
+ }
962
+ }
963
+ /* admin notice for first time installation */
964
+ function sfsi_plus_activation_msg()
965
+ {
966
+ global $wp_version;
967
+
968
+ if(get_option('sfsi_plus_activate',false)==1)
969
+ {
970
+ echo "<div class='updated'><p>".__("Thank you for installing the Ultimate Social Media PLUS plugin. Please go to the plugin's settings page to configure it: ",SFSI_PLUS_DOMAIN)."<b><a href='admin.php?page=sfsi-plus-options'>".__("Click here",SFSI_PLUS_DOMAIN)."</a></b></p></div>";
971
+ update_option('sfsi_plus_activate',0);
972
+ }
973
+
974
+ $path=pathinfo($_SERVER['REQUEST_URI']);
975
+ update_option('sfsi_plus_activate',0);
976
+
977
+ if($wp_version < 3.5 && $path['basename'] == "admin.php?page=sfsi-plus-options")
978
+ {
979
+ echo "<div class=\"update-nag\" ><p><b>".__('You`re using an old Wordpress version, which may cause several of your plugins to not work correctly. Please upgrade', SFSI_PLUS_DOMAIN)."</b></p></div>";
980
+ }
981
+ }
982
+ /* admin notice for first time installation */
983
+ function sfsi_plus_rating_msg()
984
+ {
985
+ global $wp_version;
986
+ $install_date = get_option('sfsi_plus_installDate');
987
+ $display_date = date('Y-m-d h:i:s');
988
+ $datetime1 = new DateTime($install_date);
989
+ $datetime2 = new DateTime($display_date);
990
+ $diff_inrval = round(($datetime2->format('U') - $datetime1->format('U')) / (60*60*24));
991
+
992
+ if($diff_inrval >= 30 && get_option('sfsi_plus_RatingDiv')=="no")
993
+ { ?>
994
+ <style >
995
+ .sfsi_plus_plg-rating-dismiss:before {
996
+ background: none;
997
+ color: #72777c;
998
+ content: "\f153";
999
+ display: block;
1000
+ font: normal 16px/20px dashicons;
1001
+ speak: none;
1002
+ height: 20px;
1003
+ text-align: center;
1004
+ width: 20px;
1005
+ -webkit-font-smoothing: antialiased;
1006
+ -moz-osx-font-smoothing: grayscale;
1007
+ }
1008
+ .sfsi_plus_plg-rating-dismiss{
1009
+ position: absolute;
1010
+ top: 45px;
1011
+ right: 15px;
1012
+ border: none;
1013
+ margin: 0;
1014
+ padding: 9px;
1015
+ background: none;
1016
+ color: #72777c;
1017
+ cursor: pointer;
1018
+ }
1019
+ </style>
1020
+ <div class="sfsi_plus_sfwp_fivestar notice notice-success">
1021
+ <p><?php echo __('We noticed you\'ve been using the Ultimate Social Media PLUS Plugin for more than 30 days. If you\'re happy with it, could you please do us a BIG favor and let us know ONE thing we can improve in it?', SFSI_PLUS_DOMAIN);?></p>
1022
+ <ul class="sfwp_fivestar_ul">
1023
+ <li><a href="https://wordpress.org/support/plugin/ultimate-social-media-plus#new-topic-0" target="_new" title="<?php echo __('Yes, let me give feedback.',SFSI_PLUS_DOMAIN); ?>"><?php echo __('Yes, let me give feedback.', SFSI_PLUS_DOMAIN); ?></a></li>
1024
+ <li><a href="https://wordpress.org/support/plugin/ultimate-social-media-plus/reviews/?filter=5" target="_new" title="<?php echo __('No clue, let me give a 5-star rating instead',SFSI_PLUS_DOMAIN) ?>"><?php echo __('No clue, let me give a 5-star rating instead',SFSI_PLUS_DOMAIN) ?></a></li>
1025
+ <li><a href="javascript:void(0);" class="sfsiHideRating" title="<?php echo __('I already did', SFSI_PLUS_DOMAIN)?>"> <?php echo __('I already did (don\'t show this again)', SFSI_PLUS_DOMAIN); ?> </a></li>
1026
+ </ul>
1027
+ <button type="button" class="sfsi_plus_plg-rating-dismiss"><span class="screen-reader-text"><?php echo __('Dismiss this notice.',SFSI_PLUS_DOMAIN); ?></span></button>
1028
+ </div>
1029
+ <script>
1030
+ jQuery( document ).ready(function( $ ) {
1031
+ $('.sfsi_plus_plg-rating-dismiss').css({'top':$('.sfsi_plus_sfwp_fivestar')[0].offsetTop+'px'})
1032
+ var sel1 = jQuery('.sfsiHideRating');
1033
+ var sel2 = jQuery('.sfsi_plus_plg-rating-dismiss');
1034
+ function sfsi_plus_hide_rating(element){
1035
+ element.on('click',function(){
1036
+ var data={'action':'plushideRating','nonce':'<?php echo wp_create_nonce('plus_plushideRating'); ?>'};
1037
+ jQuery.ajax({
1038
+
1039
+ url: "<?php echo admin_url( 'admin-ajax.php' ); ?>",
1040
+ type: "post",
1041
+ data: data,
1042
+ dataType: "json",
1043
+ async: !0,
1044
+ success: function(e) {
1045
+ if (e=="success") {
1046
+ jQuery('.sfsi_plus_sfwp_fivestar').slideUp('slow');
1047
+ }
1048
+ }
1049
+ });
1050
+ });
1051
+ }
1052
+ sfsi_plus_hide_rating(sel1);
1053
+ sfsi_plus_hide_rating(sel2);
1054
+ });
1055
+ </script>
1056
+ <?php
1057
+ }
1058
+ }
1059
+ add_action('wp_ajax_plushideRating','sfsi_plusHideRatingDiv');
1060
+ function sfsi_plusHideRatingDiv()
1061
+ {
1062
+ if ( !wp_verify_nonce( $_POST['nonce'], "plus_plushideRating")) {
1063
+ echo json_encode(array('res'=>"error")); exit;
1064
+ }
1065
+ if(!current_user_can('manage_options')){ echo json_encode(array('res'=>'not allowed'));die(); }
1066
+ update_option('sfsi_plus_RatingDiv','yes');
1067
+ echo json_encode(array("success")); exit;
1068
+ }
1069
+ /* add all admin message */
1070
+ add_action('admin_notices', 'sfsi_plus_activation_msg');
1071
+ add_action('admin_notices', 'sfsi_plus_rating_msg');
1072
+ add_action('admin_notices', 'sfsi_plus_check_wp_head');
1073
+ add_action('admin_notices', 'sfsi_plus_check_wp_footer');
1074
+ function sfsi_plus_pingVendor( $post_id )
1075
+ {
1076
+ global $wp,$wpdb;
1077
+ // If this is just a revision, don't send the email.
1078
+ if ( wp_is_post_revision( $post_id ) )
1079
+ return;
1080
+
1081
+ $post_data=get_post($post_id,ARRAY_A);
1082
+ if($post_data['post_status']=='publish' && $post_data['post_type']=='post') :
1083
+
1084
+ $categories = wp_get_post_categories($post_data['ID']);
1085
+ $cats='';
1086
+ $total=count($categories);
1087
+ $count=1;
1088
+ foreach($categories as $c)
1089
+ {
1090
+ $cat_data = get_category( $c );
1091
+ if($count==$total)
1092
+ {
1093
+ $cats.= $cat_data->name;
1094
+ }
1095
+ else
1096
+ {
1097
+ $cats.= $cat_data->name.',';
1098
+ }
1099
+ $count++;
1100
+ }
1101
+
1102
+ $postto_array = array(
1103
+ 'feed_id' => sanitize_text_field(get_option('sfsi_plus_feed_id')),
1104
+ 'title' => $post_data['post_title'],
1105
+ 'description' => $post_data['post_content'],
1106
+ 'link' => $post_data['guid'],
1107
+ 'author' => get_the_author_meta('user_login', $post_data['post_author']),
1108
+ 'category' => $cats,
1109
+ 'pubDate' => $post_data['post_modified'],
1110
+ 'rssurl' => sfsi_plus_get_bloginfo('rss2_url')
1111
+ );
1112
+ $args = array(
1113
+ 'body' => $postto_array,
1114
+ 'blocking' => true,
1115
+ 'user-agent' => 'sf rss request',
1116
+ 'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
1117
+ 'sslverify' => true
1118
+ );
1119
+ $resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/updateFeedPlugin', $args );
1120
+ if ( !is_wp_error( $resp ) ) {
1121
+ $resp = json_decode($resp['body']);
1122
+ return true;
1123
+ }
1124
+ endif;
1125
+ }
1126
+ add_action( 'save_post', 'sfsi_plus_pingVendor' );
1127
+
1128
+ function sfsi_plus_was_displaying_addthis(){
1129
+
1130
+ $isDismissed = true;
1131
+ $sfsi_plus_section1 = unserialize(get_option('sfsi_plus_section1_options',false));
1132
+ $sfsi_plus_section8 = unserialize(get_option('sfsi_plus_section8_options',false));
1133
+ $sfsi_plus_addThiswasDisplayed_section1 = isset($sfsi_plus_section1['sfsi_plus_share_display']) && 'yes'== sanitize_text_field($sfsi_plus_section1['sfsi_plus_share_display']);
1134
+
1135
+ $sfsi_plus_addThiswasDisplayed_section8 = isset($sfsi_plus_section8['sfsi_plus_rectshr']) && 'yes'== sanitize_text_field($sfsi_plus_section8['sfsi_plus_rectshr']);
1136
+
1137
+ $isDisplayed = $sfsi_plus_addThiswasDisplayed_section1 || $sfsi_plus_addThiswasDisplayed_section8;
1138
+
1139
+ // If icon was displayed
1140
+ $isDismissed = false != $isDisplayed ? false : true;
1141
+
1142
+ update_option('sfsi_plus_addThis_icon_removal_notice_dismissed',$isDismissed);
1143
+
1144
+ if($sfsi_plus_addThiswasDisplayed_section1){
1145
+ unset($sfsi_plus_section1['sfsi_plus_share_display']);
1146
+ update_option('sfsi_plus_section1_options', serialize($sfsi_plus_section1) );
1147
+ }
1148
+
1149
+ if($sfsi_plus_addThiswasDisplayed_section8){
1150
+ unset($sfsi_plus_section8['sfsi_plus_rectshr']);
1151
+ update_option('sfsi_plus_section8_options', serialize($sfsi_plus_section8) );
1152
+ }
1153
+ }
1154
+
1155
  ?>
libs/sfsi_plus_subscribe_widget.php CHANGED
@@ -1,293 +1,293 @@
1
- <?php
2
- //Add Subscriber form css
3
- add_action("wp_head", "sfsi_plus_addStyleFunction");
4
- function sfsi_plus_addStyleFunction()
5
- {
6
- $option9 = unserialize(get_option('sfsi_plus_section9_options', false));
7
- $sfsi_plus_feediid = sanitize_text_field(get_option('sfsi_plus_feed_id'));
8
- $url = "https://www.specificfeeds.com/widgets/subscribeWidget/";
9
-
10
- echo $return = '';
11
- ?>
12
- <script>
13
- window.addEventListener("sfsi_plus_functions_loaded",function(){
14
- var body= document.getElementsByTagName('body')[0];
15
- console.log(body);
16
- body.classList.add("sfsi_plus_<?php echo get_option("sfsi_plus_pluginVersion"); ?>");
17
- })
18
- // window.addEventListener('sfsi_plus_functions_loaded',function(e) {
19
- // jQuery("body").addClass("sfsi_plus_<?php echo get_option("sfsi_plus_pluginVersion"); ?>")
20
- // });
21
-
22
- function sfsi_plus_processfurther(ref) {
23
- var feed_id = '<?php echo $sfsi_plus_feediid ?>';
24
- var feedtype = 8;
25
- var email = jQuery(ref).find('input[name="data[Widget][email]"]').val();
26
- var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
27
- if ((email != "Enter your email") && (filter.test(email))) {
28
- if (feed_id != "") {
29
- if (feedtype == "8") {
30
- var url = "<?php echo $url; ?>" + feed_id + "/" + feedtype;
31
- window.open('', "popupwindow", "scrollbars=yes,width=1080,height=760");
32
- ref.target = "popupwindow";
33
- ref.action = url;
34
- return true;
35
- } else {
36
- return false;
37
- }
38
- }
39
- } else {
40
- alert("Please enter email address");
41
- jQuery(ref).find('input[name="data[Widget][email]"]').focus();
42
- return false;
43
- }
44
- }
45
- </script>
46
- <style>
47
- .sfsi_plus_subscribe_Popinner {
48
- <?php if ($option9['sfsi_plus_form_adjustment'] == 'yes') : ?>width: 100% !important;
49
- height: auto !important;
50
- <?php else : ?>width: <?php echo $option9['sfsi_plus_form_width'] ?>px !important;
51
- height: <?php echo $option9['sfsi_plus_form_height'] ?>px !important;
52
- <?php endif;
53
- ?><?php if ($option9['sfsi_plus_form_border'] == 'yes') : ?>border: <?php echo $option9['sfsi_plus_form_border_thickness'] . "px solid " . $option9['sfsi_plus_form_border_color'];
54
- ?> !important;
55
- <?php endif;
56
- ?>padding: 18px 0px !important;
57
- background-color: <?php echo $option9['sfsi_plus_form_background'] ?> !important;
58
- }
59
-
60
- .sfsi_plus_subscribe_Popinner form {
61
- margin: 0 20px !important;
62
- }
63
-
64
- .sfsi_plus_subscribe_Popinner h5 {
65
- font-family: <?php echo $option9['sfsi_plus_form_heading_font'] ?> !important;
66
-
67
- <?php if ($option9['sfsi_plus_form_heading_fontstyle'] != 'bold') {
68
- ?>font-style: <?php echo $option9['sfsi_plus_form_heading_fontstyle'] ?> !important;
69
- <?php
70
- } else {
71
- ?>font-weight: <?php echo $option9['sfsi_plus_form_heading_fontstyle'] ?> !important;
72
- <?php
73
- }
74
-
75
- ?>color: <?php echo $option9['sfsi_plus_form_heading_fontcolor'] ?> !important;
76
- font-size: <?php echo $option9['sfsi_plus_form_heading_fontsize'] . "px" ?> !important;
77
- text-align: <?php echo $option9['sfsi_plus_form_heading_fontalign'] ?> !important;
78
- margin: 0 0 10px !important;
79
- padding: 0 !important;
80
- }
81
-
82
- .sfsi_plus_subscription_form_field {
83
- margin: 5px 0 !important;
84
- width: 100% !important;
85
- display: inline-flex;
86
- display: -webkit-inline-flex;
87
- }
88
-
89
- .sfsi_plus_subscription_form_field input {
90
- width: 100% !important;
91
- padding: 10px 0px !important;
92
- }
93
-
94
- .sfsi_plus_subscribe_Popinner input[type=email] {
95
- font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
96
-
97
- <?php if ($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {
98
- ?>font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
99
- <?php
100
- } else {
101
- ?>font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
102
- <?php
103
- }
104
-
105
- ?>color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
106
- font-size: <?php echo $option9['sfsi_plus_form_field_fontsize'] . "px" ?> !important;
107
- text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
108
- }
109
-
110
- .sfsi_plus_subscribe_Popinner input[type=email]::-webkit-input-placeholder {
111
- font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
112
-
113
- <?php if ($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {
114
- ?>font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
115
- <?php
116
- } else {
117
- ?>font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
118
- <?php
119
- }
120
-
121
- ?>color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
122
- font-size: <?php echo $option9['sfsi_plus_form_field_fontsize'] . "px" ?> !important;
123
- text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
124
- }
125
-
126
- .sfsi_plus_subscribe_Popinner input[type=email]:-moz-placeholder {
127
- /* Firefox 18- */
128
- font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
129
-
130
- <?php if ($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {
131
- ?>font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
132
- <?php
133
- } else {
134
- ?>font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
135
- <?php
136
- }
137
-
138
- ?>color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
139
- font-size: <?php echo $option9['sfsi_plus_form_field_fontsize'] . "px" ?> !important;
140
- text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
141
- }
142
-
143
- .sfsi_plus_subscribe_Popinner input[type=email]::-moz-placeholder {
144
- /* Firefox 19+ */
145
- font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
146
-
147
- <?php if ($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {
148
- ?>font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
149
- <?php
150
- } else {
151
- ?>font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
152
- <?php
153
- }
154
-
155
- ?>color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
156
- font-size: <?php echo $option9['sfsi_plus_form_field_fontsize'] . "px" ?> !important;
157
- text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
158
- }
159
-
160
- .sfsi_plus_subscribe_Popinner input[type=email]:-ms-input-placeholder {
161
- font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
162
-
163
- <?php if ($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {
164
- ?>font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
165
- <?php
166
- } else {
167
- ?>font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
168
- <?php
169
- }
170
-
171
- ?>color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
172
- font-size: <?php echo $option9['sfsi_plus_form_field_fontsize'] . "px" ?> !important;
173
- text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
174
- }
175
-
176
- .sfsi_plus_subscribe_Popinner input[type=submit] {
177
- font-family: <?php echo $option9['sfsi_plus_form_button_font'] ?> !important;
178
-
179
- <?php if ($option9['sfsi_plus_form_button_fontstyle'] != 'bold') {
180
- ?>font-style: <?php echo $option9['sfsi_plus_form_button_fontstyle'];
181
- ?> !important;
182
- <?php
183
- } else {
184
- ?>font-weight: <?php echo $option9['sfsi_plus_form_button_fontstyle'];
185
- ?> !important;
186
- <?php
187
- }
188
-
189
- ?>color: <?php echo $option9['sfsi_plus_form_button_fontcolor'] ?> !important;
190
- font-size: <?php echo $option9['sfsi_plus_form_button_fontsize'] . "px" ?> !important;
191
- text-align: <?php echo $option9['sfsi_plus_form_button_fontalign'] ?> !important;
192
- background-color: <?php echo $option9['sfsi_plus_form_button_background'] ?> !important;
193
- }
194
- </style>
195
- <?php
196
- }
197
- // Creating the widget
198
- class sfsiPlus_subscriber_widget extends WP_Widget
199
- {
200
-
201
- function __construct()
202
- {
203
- parent::__construct(
204
- // Base ID of your widget
205
- 'sfsiPlus_subscriber_widget',
206
-
207
- // Widget name will appear in UI
208
- 'Ultimate Social Plus Subscribe Form',
209
-
210
- // Widget description
211
- array('description' => 'Ultimate Social Plus Subscribe Form')
212
- );
213
- }
214
-
215
- public function widget($args, $instance)
216
- {
217
- $title = apply_filters('widget_title', $instance['title']);
218
-
219
- // before and after widget arguments are defined by themes
220
- echo $args['before_widget'];
221
-
222
- if (!empty($title)) {
223
- echo $args['before_title'] . $title . $args['after_title'];
224
- }
225
-
226
- // Call subscriber form
227
- echo do_shortcode("[USM_plus_form]");
228
-
229
- echo $args['after_widget'];
230
- }
231
-
232
- // Widget Backend
233
- public function form($instance)
234
- {
235
- if (isset($instance['title'])) {
236
- $title = $instance['title'];
237
- } else {
238
- $title = '';
239
- }
240
- ?>
241
- <p>
242
- <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title'); ?>:</label>
243
- <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" />
244
- </p>
245
- <?php
246
- }
247
-
248
- // Updating widget replacing old instances with new
249
- public function update($newInstance, $oldInstance)
250
- {
251
- $instance = array();
252
- $instance['title'] = (!empty($newInstance['title'])) ? strip_tags($newInstance['title']) : '';
253
- return $instance;
254
- }
255
- }
256
- // Class wpb_widget ends here
257
-
258
- // Register and load the widget
259
- function sfsiPlus_subscriber_load_widget()
260
- {
261
- register_widget('sfsiPlus_subscriber_widget');
262
- }
263
- add_action('widgets_init', 'sfsiPlus_subscriber_load_widget');
264
- ?>
265
- <?php
266
- add_shortcode("USM_plus_form", "sfsi_plus_get_subscriberForm");
267
- function sfsi_plus_get_subscriberForm()
268
- {
269
- $option9 = unserialize(get_option('sfsi_plus_section9_options', false));
270
- $sfsi_plus_feediid = sanitize_text_field(get_option('sfsi_plus_feed_id'));
271
- if ($sfsi_plus_feediid == "") {
272
- $url = "https://www.specificfeeds.com/subscribe?pub=boTZa2n0OIjC4D8PkiyzByH-uKEJSZgqMW-sJiFwbuEnoxENjKva2A";
273
- } else {
274
- $url = "https://www.specificfeeds.com/widgets/subscribeWidget/";
275
- $url = $url . $sfsi_plus_feediid . '/8/';
276
- }
277
- $return = '';
278
- $return .= '<div class="sfsi_plus_subscribe_Popinner">
279
- <form method="post" onsubmit="return sfsi_plus_processfurther(this);" action="' . $url . '">
280
- <h5>' . __(trim($option9['sfsi_plus_form_heading_text']), SFSI_PLUS_DOMAIN) . '</h5>
281
- <div class="sfsi_plus_subscription_form_field">
282
- <input type="email" name="data[Widget][email]" value="" placeholder="' . trim($option9['sfsi_plus_form_field_text']) . '"/>
283
- </div>
284
- <div class="sfsi_plus_subscription_form_field">
285
- <input type="hidden" name="data[Widget][feed_id]" value="' . $sfsi_plus_feediid . '">
286
- <input type="hidden" name="data[Widget][feedtype]" value="8">
287
- <input type="submit" name="subscribe" value="' . __($option9['sfsi_plus_form_button_text'], SFSI_PLUS_DOMAIN) . '" />
288
- </div>
289
- </form>
290
- </div>';
291
- return $return;
292
- }
293
  ?>
1
+ <?php
2
+ //Add Subscriber form css
3
+ add_action("wp_head", "sfsi_plus_addStyleFunction");
4
+ function sfsi_plus_addStyleFunction()
5
+ {
6
+ $option9 = unserialize(get_option('sfsi_plus_section9_options', false));
7
+ $sfsi_plus_feediid = sanitize_text_field(get_option('sfsi_plus_feed_id'));
8
+ $url = "https://www.specificfeeds.com/widgets/subscribeWidget/";
9
+
10
+ echo $return = '';
11
+ ?>
12
+ <script>
13
+ window.addEventListener("sfsi_plus_functions_loaded",function(){
14
+ var body= document.getElementsByTagName('body')[0];
15
+ console.log(body);
16
+ body.classList.add("sfsi_plus_<?php echo get_option("sfsi_plus_pluginVersion"); ?>");
17
+ })
18
+ // window.addEventListener('sfsi_plus_functions_loaded',function(e) {
19
+ // jQuery("body").addClass("sfsi_plus_<?php echo get_option("sfsi_plus_pluginVersion"); ?>")
20
+ // });
21
+
22
+ function sfsi_plus_processfurther(ref) {
23
+ var feed_id = '<?php echo $sfsi_plus_feediid ?>';
24
+ var feedtype = 8;
25
+ var email = jQuery(ref).find('input[name="data[Widget][email]"]').val();
26
+ var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
27
+ if ((email != "Enter your email") && (filter.test(email))) {
28
+ if (feed_id != "") {
29
+ if (feedtype == "8") {
30
+ var url = "<?php echo $url; ?>" + feed_id + "/" + feedtype;
31
+ window.open('', "popupwindow", "scrollbars=yes,width=1080,height=760");
32
+ ref.target = "popupwindow";
33
+ ref.action = url;
34
+ return true;
35
+ } else {
36
+ return false;
37
+ }
38
+ }
39
+ } else {
40
+ alert("Please enter email address");
41
+ jQuery(ref).find('input[name="data[Widget][email]"]').focus();
42
+ return false;
43
+ }
44
+ }
45
+ </script>
46
+ <style>
47
+ .sfsi_plus_subscribe_Popinner {
48
+ <?php if ($option9['sfsi_plus_form_adjustment'] == 'yes') : ?>width: 100% !important;
49
+ height: auto !important;
50
+ <?php else : ?>width: <?php echo $option9['sfsi_plus_form_width'] ?>px !important;
51
+ height: <?php echo $option9['sfsi_plus_form_height'] ?>px !important;
52
+ <?php endif;
53
+ ?><?php if ($option9['sfsi_plus_form_border'] == 'yes') : ?>border: <?php echo $option9['sfsi_plus_form_border_thickness'] . "px solid " . $option9['sfsi_plus_form_border_color'];
54
+ ?> !important;
55
+ <?php endif;
56
+ ?>padding: 18px 0px !important;
57
+ background-color: <?php echo $option9['sfsi_plus_form_background'] ?> !important;
58
+ }
59
+
60
+ .sfsi_plus_subscribe_Popinner form {
61
+ margin: 0 20px !important;
62
+ }
63
+
64
+ .sfsi_plus_subscribe_Popinner h5 {
65
+ font-family: <?php echo $option9['sfsi_plus_form_heading_font'] ?> !important;
66
+
67
+ <?php if ($option9['sfsi_plus_form_heading_fontstyle'] != 'bold') {
68
+ ?>font-style: <?php echo $option9['sfsi_plus_form_heading_fontstyle'] ?> !important;
69
+ <?php
70
+ } else {
71
+ ?>font-weight: <?php echo $option9['sfsi_plus_form_heading_fontstyle'] ?> !important;
72
+ <?php
73
+ }
74
+
75
+ ?>color: <?php echo $option9['sfsi_plus_form_heading_fontcolor'] ?> !important;
76
+ font-size: <?php echo $option9['sfsi_plus_form_heading_fontsize'] . "px" ?> !important;
77
+ text-align: <?php echo $option9['sfsi_plus_form_heading_fontalign'] ?> !important;
78
+ margin: 0 0 10px !important;
79
+ padding: 0 !important;
80
+ }
81
+
82
+ .sfsi_plus_subscription_form_field {
83
+ margin: 5px 0 !important;
84
+ width: 100% !important;
85
+ display: inline-flex;
86
+ display: -webkit-inline-flex;
87
+ }
88
+
89
+ .sfsi_plus_subscription_form_field input {
90
+ width: 100% !important;
91
+ padding: 10px 0px !important;
92
+ }
93
+
94
+ .sfsi_plus_subscribe_Popinner input[type=email] {
95
+ font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
96
+
97
+ <?php if ($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {
98
+ ?>font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
99
+ <?php
100
+ } else {
101
+ ?>font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
102
+ <?php
103
+ }
104
+
105
+ ?>color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
106
+ font-size: <?php echo $option9['sfsi_plus_form_field_fontsize'] . "px" ?> !important;
107
+ text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
108
+ }
109
+
110
+ .sfsi_plus_subscribe_Popinner input[type=email]::-webkit-input-placeholder {
111
+ font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
112
+
113
+ <?php if ($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {
114
+ ?>font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
115
+ <?php
116
+ } else {
117
+ ?>font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
118
+ <?php
119
+ }
120
+
121
+ ?>color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
122
+ font-size: <?php echo $option9['sfsi_plus_form_field_fontsize'] . "px" ?> !important;
123
+ text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
124
+ }
125
+
126
+ .sfsi_plus_subscribe_Popinner input[type=email]:-moz-placeholder {
127
+ /* Firefox 18- */
128
+ font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
129
+
130
+ <?php if ($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {
131
+ ?>font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
132
+ <?php
133
+ } else {
134
+ ?>font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
135
+ <?php
136
+ }
137
+
138
+ ?>color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
139
+ font-size: <?php echo $option9['sfsi_plus_form_field_fontsize'] . "px" ?> !important;
140
+ text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
141
+ }
142
+
143
+ .sfsi_plus_subscribe_Popinner input[type=email]::-moz-placeholder {
144
+ /* Firefox 19+ */
145
+ font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
146
+
147
+ <?php if ($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {
148
+ ?>font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
149
+ <?php
150
+ } else {
151
+ ?>font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
152
+ <?php
153
+ }
154
+
155
+ ?>color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
156
+ font-size: <?php echo $option9['sfsi_plus_form_field_fontsize'] . "px" ?> !important;
157
+ text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
158
+ }
159
+
160
+ .sfsi_plus_subscribe_Popinner input[type=email]:-ms-input-placeholder {
161
+ font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
162
+
163
+ <?php if ($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {
164
+ ?>font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
165
+ <?php
166
+ } else {
167
+ ?>font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
168
+ <?php
169
+ }
170
+
171
+ ?>color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
172
+ font-size: <?php echo $option9['sfsi_plus_form_field_fontsize'] . "px" ?> !important;
173
+ text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
174
+ }
175
+
176
+ .sfsi_plus_subscribe_Popinner input[type=submit] {
177
+ font-family: <?php echo $option9['sfsi_plus_form_button_font'] ?> !important;
178
+
179
+ <?php if ($option9['sfsi_plus_form_button_fontstyle'] != 'bold') {
180
+ ?>font-style: <?php echo $option9['sfsi_plus_form_button_fontstyle'];
181
+ ?> !important;
182
+ <?php
183
+ } else {
184
+ ?>font-weight: <?php echo $option9['sfsi_plus_form_button_fontstyle'];
185
+ ?> !important;
186
+ <?php
187
+ }
188
+
189
+ ?>color: <?php echo $option9['sfsi_plus_form_button_fontcolor'] ?> !important;
190
+ font-size: <?php echo $option9['sfsi_plus_form_button_fontsize'] . "px" ?> !important;
191
+ text-align: <?php echo $option9['sfsi_plus_form_button_fontalign'] ?> !important;
192
+ background-color: <?php echo $option9['sfsi_plus_form_button_background'] ?> !important;
193
+ }
194
+ </style>
195
+ <?php
196
+ }
197
+ // Creating the widget
198
+ class sfsiPlus_subscriber_widget extends WP_Widget
199
+ {
200
+
201
+ function __construct()
202
+ {
203
+ parent::__construct(
204
+ // Base ID of your widget
205
+ 'sfsiPlus_subscriber_widget',
206
+
207
+ // Widget name will appear in UI
208
+ 'Ultimate Social Plus Subscribe Form',
209
+
210
+ // Widget description
211
+ array('description' => 'Ultimate Social Plus Subscribe Form')
212
+ );
213
+ }
214
+
215
+ public function widget($args, $instance)
216
+ {
217
+ $title = apply_filters('widget_title', $instance['title']);
218
+
219
+ // before and after widget arguments are defined by themes
220
+ echo $args['before_widget'];
221
+
222
+ if (!empty($title)) {
223
+ echo $args['before_title'] . $title . $args['after_title'];
224
+ }
225
+
226
+ // Call subscriber form
227
+ echo do_shortcode("[USM_plus_form]");
228
+
229
+ echo $args['after_widget'];
230
+ }
231
+
232
+ // Widget Backend
233
+ public function form($instance)
234
+ {
235
+ if (isset($instance['title'])) {
236
+ $title = $instance['title'];
237
+ } else {
238
+ $title = '';
239
+ }
240
+ ?>
241
+ <p>
242
+ <label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title'); ?>:</label>
243
+ <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" />
244
+ </p>
245
+ <?php
246
+ }
247
+
248
+ // Updating widget replacing old instances with new
249
+ public function update($newInstance, $oldInstance)
250
+ {
251
+ $instance = array();
252
+ $instance['title'] = (!empty($newInstance['title'])) ? strip_tags($newInstance['title']) : '';
253
+ return $instance;
254
+ }
255
+ }
256
+ // Class wpb_widget ends here
257
+
258
+ // Register and load the widget
259
+ function sfsiPlus_subscriber_load_widget()
260
+ {
261
+ register_widget('sfsiPlus_subscriber_widget');
262
+ }
263
+ add_action('widgets_init', 'sfsiPlus_subscriber_load_widget');
264
+ ?>
265
+ <?php
266
+ add_shortcode("USM_plus_form", "sfsi_plus_get_subscriberForm");
267
+ function sfsi_plus_get_subscriberForm()
268
+ {
269
+ $option9 = unserialize(get_option('sfsi_plus_section9_options', false));
270
+ $sfsi_plus_feediid = sanitize_text_field(get_option('sfsi_plus_feed_id'));
271
+ if ($sfsi_plus_feediid == "") {
272
+ $url = "https://www.specificfeeds.com/subscribe?pub=boTZa2n0OIjC4D8PkiyzByH-uKEJSZgqMW-sJiFwbuEnoxENjKva2A";
273
+ } else {
274
+ $url = "https://www.specificfeeds.com/widgets/subscribeWidget/";
275
+ $url = $url . $sfsi_plus_feediid . '/8/';
276
+ }
277
+ $return = '';
278
+ $return .= '<div class="sfsi_plus_subscribe_Popinner">
279
+ <form method="post" onsubmit="return sfsi_plus_processfurther(this);" action="' . $url . '">
280
+ <h5>' . __(trim($option9['sfsi_plus_form_heading_text']), SFSI_PLUS_DOMAIN) . '</h5>
281
+ <div class="sfsi_plus_subscription_form_field">
282
+ <input type="email" name="data[Widget][email]" value="" placeholder="' . trim($option9['sfsi_plus_form_field_text']) . '"/>
283
+ </div>
284
+ <div class="sfsi_plus_subscription_form_field">
285
+ <input type="hidden" name="data[Widget][feed_id]" value="' . $sfsi_plus_feediid . '">
286
+ <input type="hidden" name="data[Widget][feedtype]" value="8">
287
+ <input type="submit" name="subscribe" value="' . __($option9['sfsi_plus_form_button_text'], SFSI_PLUS_DOMAIN) . '" />
288
+ </div>
289
+ </form>
290
+ </div>';
291
+ return $return;
292
+ }
293
  ?>
libs/sfsi_widget.php CHANGED
@@ -1,1824 +1,1825 @@
1
- <?php
2
- /* create SFSI widget */
3
- class Sfsi_Plus_Widget extends WP_Widget
4
- {
5
- function __construct()
6
- {
7
- $widget_ops = array( 'classname' => 'sfsi_plus', 'description' => 'Ultimate Social Media PLUS widgets');
8
- $control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'sfsi-plus-widget' );
9
-
10
- parent::__construct(
11
- // Base ID of your widget
12
- 'sfsi-plus-widget',
13
-
14
- // Widget name will appear in UI
15
- 'Ultimate Social Media PLUS',
16
-
17
- // Widget description
18
- $widget_ops,
19
-
20
- $control_ops
21
- );
22
- }
23
-
24
- function widget( $args, $instance )
25
- {
26
- extract( $args );
27
- //if show via widget is checked
28
- $sfsi_plus_section8_options = get_option("sfsi_plus_section8_options");
29
- $sfsi_plus_section8_options = unserialize($sfsi_plus_section8_options);
30
- $sfsi_plus_show_via_widget = $sfsi_plus_section8_options['sfsi_plus_show_via_widget'];
31
- if($sfsi_plus_show_via_widget == "yes")
32
- {
33
- /*Our variables from the widget settings. */
34
- $title = apply_filters('widget_title', $instance['title'] );
35
- $show_info = isset( $instance['show_info'] ) ? $instance['show_info'] : false;
36
- global $is_floter;
37
- echo $before_widget;
38
- /* Display the widget title */
39
- if ( $title ) echo $before_title . $title . $after_title;
40
- ?>
41
- <div class="sfsi_plus_widget" data-position="widget">
42
- <div id='sfsi_plus_wDiv'></div>
43
- <?php
44
- /* Link the main icons function */
45
- echo sfsi_plus_check_visiblity(0);
46
- ?>
47
- <div style="clear: both;"></div>
48
- </div>
49
- <?php
50
- if ( is_active_widget( false, false, $this->id_base, true ) ) { }
51
- echo $after_widget;
52
- }
53
- else
54
- {
55
- //echo 'Kindly go to setting page and check the option "show them via a widget"';
56
- }
57
- }
58
-
59
- /*Update the widget */
60
- function update( $new_instance, $old_instance )
61
- {
62
- $instance = $old_instance;
63
- //Strip tags from title and name to remove HTML
64
- if($new_instance['showf']==0)
65
- {
66
- $instance['showf']=1;
67
- }
68
- else
69
- {
70
- $instance['showf']=0;
71
- }
72
- $instance['title'] = strip_tags( $new_instance['title'] );
73
- return $instance;
74
- }
75
-
76
- /* Set up some default widget settings. */
77
- function form( $instance )
78
- {
79
- $defaults = array( 'title' =>"" );
80
- $instance = wp_parse_args( (array) $instance, $defaults );
81
- if(isset($instance['showf']))
82
- {
83
- if( $instance['showf'] == 0 && empty($instance['title']))
84
- {
85
- $instance['title']='Please follow & like us :)';
86
- }
87
- else
88
- {
89
- $instance['title'];
90
- }
91
- }
92
- else
93
- {
94
- $instance['title']='Please follow & like us :)';
95
- }
96
- ?>
97
- <p>
98
- <label for="<?php echo $this->get_field_id( 'title' ); ?>">
99
- <?php _e('Title', SFSI_PLUS_DOMAIN); ?>:
100
- </label>
101
- <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>"
102
- value="<?php echo $instance['title']; ?>" style="width:100%;" />
103
- <input type="hidden" value="<?php echo isset($instance['showf'])?$instance['showf']:''; ?>"
104
- id="<?php echo $this->get_field_id( 'showf' ); ?>" name="<?php echo $this->get_field_name( 'showf' ); ?>" />
105
- </p>
106
- <p>
107
- <?php _e('Please go to the plugin page to set your preferences:',SFSI_PLUS_DOMAIN); ?>
108
- <a href="admin.php?page=sfsi-plus-options"><?php _e('Click here', SFSI_PLUS_DOMAIN); ?></a>
109
- </p>
110
- <?php
111
- }
112
- }
113
- /* END OF widget Class */
114
-
115
- /* register widget to wordpress */
116
- function register_sfsi_plus_widgets()
117
- {
118
- register_widget( 'sfsi_plus_widget' );
119
- }
120
- add_action( 'widgets_init', 'register_sfsi_plus_widgets' );
121
-
122
- /* check the icons visiblity */
123
- function sfsi_plus_check_visiblity($isFloter=0,$share_url=null,$container_position='absolute')
124
- {
125
- global $wpdb;
126
- /* Access the saved settings in database */
127
- $sfsi_plus_section1_options = unserialize(get_option('sfsi_plus_section1_options',false));
128
- $sfsi_section3 = unserialize(get_option('sfsi_plus_section3_options',false));
129
- $sfsi_section5 = unserialize(get_option('sfsi_plus_section5_options',false));
130
- //options that are added on the third question
131
- $sfsi_section8 = unserialize(get_option('sfsi_plus_section8_options',false));
132
-
133
- /* calculate the width and icons display alignments */
134
- $icons_space = $sfsi_section5['sfsi_plus_icons_spacing'];
135
- $icons_size = $sfsi_section5['sfsi_plus_icons_size'];
136
- $icons_per_row = ($sfsi_section5['sfsi_plus_icons_perRow'])? $sfsi_section5['sfsi_plus_icons_perRow'] : '';
137
- $icons_alignment = $sfsi_section5['sfsi_plus_icons_Alignment'];
138
- $position = 'position:absolute;';
139
- $position1 = 'position:'.$container_position.';';
140
- $jquery='<script>';
141
-
142
- // $jquery .= 'jQuery(".sfsi_plus_widget").each(function( index ) {
143
- // if(jQuery(this).attr("data-position") == "widget")
144
- // {
145
- // var wdgt_hght = jQuery(this).children(".sfsiplus_norm_row.sfsi_plus_wDiv").height();
146
- // var title_hght = jQuery(this).parent(".widget.sfsi_plus").children(".widget-title").height();
147
- // var totl_hght = parseInt( title_hght ) + parseInt( wdgt_hght );
148
- // jQuery(this).parent(".widget.sfsi_plus").css("min-height", totl_hght+"px");
149
- // }
150
- // });';
151
- ?>
152
- <script>
153
- window.addEventListener('sfsi_plus_functions_loaded', function() {
154
- if (typeof sfsi_plus_widget_set == 'function') {
155
- sfsi_plus_widget_set();
156
- }
157
- })
158
- </script>
159
- <?php
160
- /* check if icons shuffling is activated in admin or not */
161
- if($sfsi_section5['sfsi_plus_icons_stick']=="yes")
162
- {
163
- if(is_admin_bar_showing())
164
- {
165
- $Ictop="30px";
166
- }
167
- else
168
- {
169
- $Ictop="0";
170
- }
171
- $jquery.='window.addEventListener("sfsi_plus_functions_loaded",function(){window.sfsi_plsu_s = jQuery(".sfsi_plus_widget");
172
- var pos = window.sfsi_plsu_s.position();
173
- jQuery(window).scroll(function(){
174
- sfsi_plus_stick_widget("'.$Ictop.'");
175
- }); })';
176
- }
177
-
178
- /* check if icons floating is activated in admin */
179
- /*settings under third question*/
180
- if($sfsi_section8['sfsi_plus_float_on_page']=="yes")
181
- {
182
- $top="15";
183
- //switch($sfsi_section5['sfsi_plus_icons_floatPosition'])
184
- switch($sfsi_section8['sfsi_plus_float_page_position'])
185
- {
186
- case "top-left" :
187
- if(is_admin_bar_showing())
188
- {
189
- $position.="position:absolute;left:30px;top:35px;"; $top="35";
190
- }
191
- else
192
- {
193
- $position.="position:absolute;left:10px;top:2%"; $top="10";
194
- }
195
- break;
196
- case "top-right" :
197
- if(is_admin_bar_showing())
198
- {
199
- $position.="position:absolute;right:30px;top:35px;"; $top="35";
200
- }else
201
- {
202
- $position.="position:absolute;right:10px;top:2%"; $top="10";
203
- }
204
- break;
205
- case "center-right" :
206
- $position.="position:absolute;right:30px;top:50%"; $top="center";
207
- break;
208
- case "center-left" :
209
- $position.="position:absolute;left:30px;top:50%"; $top="center";
210
- break;
211
- case "bottom-right" :
212
- $position.="position:absolute;right:30px;bottom:0px"; $top="bottom";
213
- break;
214
- case "bottom-left" :
215
- $position.="position:absolute;left:30px;bottom:0px"; $top="bottom";
216
- break;
217
- }
218
- if($sfsi_section8['sfsi_plus_float_page_position'] == 'center-right' || $sfsi_section8['sfsi_plus_float_page_position'] == 'center-left')
219
- {
220
- $jquery.="window.addEventListener('sfsi_plus_functions_loaded',function( totwith=".(isset($totwith)?$totwith:0)." )
221
- {
222
- var topalign = ( jQuery(window).height() - jQuery('#sfsi_plus_floater').height() ) / 2;
223
- jQuery('#sfsi_plus_floater').css('top',topalign);
224
- sfsi_plus_float_widget('".$top."');
225
- });";
226
- }
227
- else
228
- {
229
- $jquery.="window.addEventListener('sfsi_plus_functions_loaded',function( totwith=".(isset($totwith)?$totwith:0)." ) { sfsi_plus_float_widget('".$top."')});";
230
- }
231
- }
232
-
233
- $extra=0;
234
- if($sfsi_section3['sfsi_plus_shuffle_icons']=="yes")
235
- {
236
- if($sfsi_section3['sfsi_plus_shuffle_Firstload']=="yes" && $sfsi_section3['sfsi_plus_shuffle_interval']=="yes")
237
- {
238
- $shuffle_time=(isset($sfsi_section3['sfsi_plus_shuffle_intervalTime'])) ? $sfsi_section3['sfsi_plus_shuffle_intervalTime'] : 3;
239
- $shuffle_time=$shuffle_time*1000;
240
- $jquery.="window.addEventListener('sfsi_plus_functions_loaded',function( totwith=".(isset($totwith)?$totwith:0)." ) { jQuery('.sfsi_plus_wDiv').each(function(){ new window.Manipulator( jQuery(this)); }); setTimeout(function(){ jQuery('#sfsi_plus_wDiv').each(function(){ jQuery(this).click(); })},2000); setInterval(function(){ jQuery('#sfsi_plus_wDiv').each(function(){ jQuery(this).click(); })},".$shuffle_time."); });";
241
- }
242
- else if($sfsi_section3['sfsi_plus_shuffle_Firstload']=="no" && $sfsi_section3['sfsi_plus_shuffle_interval']=="yes")
243
- {
244
- $shuffle_time=(isset($sfsi_section3['sfsi_plus_shuffle_intervalTime'])) ? $sfsi_section3['sfsi_plus_shuffle_intervalTime'] : 3;
245
- $shuffle_time=$shuffle_time*1000;
246
- $jquery.="window.addEventListener('sfsi_plus_functions_loaded',function( totwith=".(isset($totwith)?$totwith:0)." ) { jQuery('.sfsi_plus_wDiv').each(function(){ new window.Manipulator( jQuery(this)); }); setInterval(function(){ jQuery('#sfsi_plus_wDiv').each(function(){ jQuery(this).click(); })},".$shuffle_time."); });";
247
- }
248
- else
249
- {
250
- $jquery.="window.addEventListener('sfsi_plus_functions_loaded',function( totwith=".(isset($totwith)?$totwith:0)." ) { jQuery('.sfsi_plus_wDiv').each(function(){ new window.Manipulator( jQuery(this)); }); setTimeout(function(){ jQuery('#sfsi_plus_wDiv').each(function(){ jQuery(this).click(); })},2000); });";
251
- }
252
- }
253
-
254
- /* magnage the icons in saved order in admin */
255
- $custom_icons_order = unserialize($sfsi_section5['sfsi_plus_CustomIcons_order']);
256
- $icons_list = array();
257
- if(isset($sfsi_plus_section1_options['sfsi_custom_files'])){
258
- if(is_string($sfsi_plus_section1_options['sfsi_custom_files'])){
259
- $icons_list= unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
260
- }else{
261
- $icons_list= $sfsi_plus_section1_options['sfsi_custom_files'];
262
- }
263
- }
264
- if(!isset($sfsi_plus_section5_options['sfsi_plus_houzzIcon_order'])){
265
- $sfsi_plus_section5_options['sfsi_plus_houzzIcon_order']=11;
266
- }
267
- if(!isset($sfsi_plus_section5_options['sfsi_plus_okIcon_order'])){
268
- $sfsi_plus_section5_options['sfsi_plus_okIcon_order']=22;
269
- }
270
- if(!isset($sfsi_plus_section5_options['sfsi_plus_telegramIcon_order'])){
271
- $sfsi_plus_section5_options['sfsi_plus_telegramIcon_order']=23;
272
- }
273
- if(!isset($sfsi_plus_section5_options['sfsi_plus_vkIcon_order'])){
274
- $sfsi_plus_section5_options['sfsi_plus_vkIcon_order']=24;
275
- }
276
- if(!isset($sfsi_plus_section5_options['sfsi_plus_wechatIcon_order'])){
277
- $sfsi_plus_section5_options['sfsi_plus_wechatIcon_order']=26;
278
- }
279
- if(!isset($sfsi_plus_section5_options['sfsi_plus_weiboIcon_order'])){
280
- $sfsi_plus_section5_options['sfsi_plus_weiboIcon_order']=25;
281
- }
282
-
283
- // $icons_list = (isset($sfsi_plus_section1_options['sfsi_custom_files']))?(!is_string($sfsi_plus_section1_options['sfsi_custom_files'])?unserialize($sfsi_plus_section1_options['sfsi_custom_files'],false):$sfsi_plus_section1_options['sfsi_custom_files']):(array());
284
- $icons_order = array(
285
- '0' => '',
286
- $sfsi_section5['sfsi_plus_rssIcon_order']=>'rss',
287
- $sfsi_section5['sfsi_plus_emailIcon_order']=>'email',
288
- $sfsi_section5['sfsi_plus_facebookIcon_order']=>'facebook',
289
- $sfsi_section5['sfsi_plus_twitterIcon_order']=>'twitter',
290
- $sfsi_section5['sfsi_plus_youtubeIcon_order']=>'youtube',
291
- $sfsi_section5['sfsi_plus_pinterestIcon_order']=>'pinterest',
292
- $sfsi_section5['sfsi_plus_linkedinIcon_order']=>'linkedin',
293
- $sfsi_section5['sfsi_plus_instagramIcon_order']=>'instagram',
294
- $sfsi_section5['sfsi_plus_houzzIcon_order']=>'houzz',
295
- $sfsi_section5['sfsi_plus_okIcon_order']=>'ok',
296
- $sfsi_section5['sfsi_plus_telegramIcon_order']=>'telegram',
297
- $sfsi_section5['sfsi_plus_vkIcon_order']=>'vk',
298
- $sfsi_section5['sfsi_plus_wechatIcon_order']=>'wechat',
299
- $sfsi_section5['sfsi_plus_weiboIcon_order']=>'weibo'
300
-
301
- );
302
- if(!is_array($custom_icons_order)){
303
- $custom_icons_order = array();
304
- }
305
- $max_custom_icon_order=max(array_keys($icons_order));
306
- if(is_array($icons_list)){
307
- foreach($icons_list as $index=>$icon){
308
- if(false===array_search($index, array_column($custom_icons_order, 'ele'))){
309
- array_push($custom_icons_order,array('order'=>($max_custom_icon_order+count($custom_icons_order)),'ele'=>$index));
310
- }
311
- }
312
- }
313
- if(is_array($custom_icons_order) )
314
- {
315
- foreach($custom_icons_order as $data)
316
- {
317
- $icons_order[$data['order']] = $data;
318
- }
319
- }
320
-
321
- ksort($icons_order);
322
- /* calculate the total width of widget according to icons */
323
- if(!empty($icons_per_row))
324
- {
325
- $width = ((int)$icons_space+(int)$icons_size)*(int)$icons_per_row;
326
- $main_width = $width=$width+$extra;
327
- $main_width = $main_width."px";
328
- }
329
- else
330
- {
331
- $main_width="35%";
332
- }
333
-
334
- /* built the main widget div */
335
- $icons_main='<div class="sfsiplus_norm_row sfsi_plus_wDiv" style="width:'.$main_width.';text-align:'.$icons_alignment.';'.$position1.'">';
336
- $icons="";
337
- /* loop through icons and bulit the icons with all settings applied in admin */
338
- foreach($icons_order as $index => $icn)
339
- {
340
-
341
- if(is_array($icn))
342
- {
343
- $icon_arry=$icn; $icn="custom" ;
344
- }
345
- switch ($icn)
346
- {
347
- case 'rss' : if($sfsi_plus_section1_options['sfsi_plus_rss_display']=='yes') $icons.= sfsi_plus_prepairIcons('rss',0,"no",null,$share_url);
348
- break;
349
- case 'email' : if($sfsi_plus_section1_options['sfsi_plus_email_display']=='yes') $icons.= sfsi_plus_prepairIcons('email',0,"no",null,$share_url);
350
- break;
351
- case 'facebook' : if($sfsi_plus_section1_options['sfsi_plus_facebook_display']=='yes') $icons.= sfsi_plus_prepairIcons('facebook',0,"no",null,$share_url);
352
- break;
353
-
354
- case 'twitter' : if($sfsi_plus_section1_options['sfsi_plus_twitter_display']=='yes') $icons.= sfsi_plus_prepairIcons('twitter',0,"no",null,$share_url);
355
- break;
356
- case 'youtube' : if($sfsi_plus_section1_options['sfsi_plus_youtube_display']=='yes') $icons.= sfsi_plus_prepairIcons('youtube',0,"no",null,$share_url);
357
- break;
358
- case 'pinterest' : if($sfsi_plus_section1_options['sfsi_plus_pinterest_display']=='yes') $icons.= sfsi_plus_prepairIcons('pinterest',0,"no",null,$share_url);
359
- break;
360
- case 'linkedin' : if($sfsi_plus_section1_options['sfsi_plus_linkedin_display']=='yes') $icons.= sfsi_plus_prepairIcons('linkedin',0,"no",null,$share_url);
361
- break;
362
- case 'instagram' : if($sfsi_plus_section1_options['sfsi_plus_instagram_display']=='yes') $icons.= sfsi_plus_prepairIcons('instagram',0,"no",null,$share_url);
363
- break;
364
- case 'houzz' :
365
- if(
366
- isset($sfsi_plus_section1_options['sfsi_plus_houzz_display']) &&
367
- $sfsi_plus_section1_options['sfsi_plus_houzz_display'] == 'yes'
368
- )
369
- {
370
- $icons.= sfsi_plus_prepairIcons('houzz',0,"no",null,$share_url);
371
- }
372
- break;
373
- case 'ok' : if(isset($sfsi_plus_section1_options['sfsi_plus_ok_display']) && $sfsi_plus_section1_options['sfsi_plus_ok_display']=='yes') $icons.= sfsi_plus_prepairIcons('ok',0,"no",null,$share_url);
374
- break;
375
- case 'telegram' : if(isset($sfsi_plus_section1_options['sfsi_plus_telegram_display']) && $sfsi_plus_section1_options['sfsi_plus_telegram_display']=='yes') $icons.= sfsi_plus_prepairIcons('telegram',0,"no",null,$share_url);
376
- break;
377
- case 'vk' : if(isset($sfsi_plus_section1_options['sfsi_plus_vk_display']) && $sfsi_plus_section1_options['sfsi_plus_vk_display']=='yes') $icons.= sfsi_plus_prepairIcons('vk',0,"no",null,$share_url);
378
- break;
379
- case 'weibo' : if(isset($sfsi_plus_section1_options['sfsi_plus_weibo_display']) && $sfsi_plus_section1_options['sfsi_plus_weibo_display']=='yes') $icons.= sfsi_plus_prepairIcons('weibo',0,"no",null,$share_url);
380
- break;
381
-
382
- case 'wechat' : if(isset($sfsi_plus_section1_options['sfsi_plus_wechat_display']) && $sfsi_plus_section1_options['sfsi_plus_wechat_display']=='yes') $icons.= sfsi_plus_prepairIcons('wechat',0,"no",null,$share_url);
383
- break;
384
- case 'custom' : $icons.= sfsi_plus_prepairIcons($icon_arry['ele'],0,"no",null,$share_url);
385
- break;
386
- }
387
- }
388
-
389
-
390
- $jquery.="</script>";
391
- $icons.='</div >';
392
-
393
- $width = isset($width) && !empty($width) ? $width : 0;
394
-
395
- $margin= $width+11;
396
-
397
- $icons_main.=$icons.'<div id="sfsi_holder" class="sfsi_plus_holders" style="position: relative; float: left;width:100%;z-index:-1;"></div >'.$jquery;
398
- /* if floating of icons is active create a floater div */
399
- $icons_float='';
400
- if($sfsi_section8['sfsi_plus_float_on_page']=="yes" && $isFloter==1)
401
- {
402
- if($sfsi_section8['sfsi_plus_float_page_position'] == "top-left")
403
- {
404
- $styleMargin = "margin-top:".$sfsi_section8['sfsi_plus_icons_floatMargin_top']."px;margin-left:".$sfsi_section8['sfsi_plus_icons_floatMargin_left']."px;";
405
- }
406
- elseif($sfsi_section8['sfsi_plus_float_page_position'] == "top-right")
407
- {
408
- $styleMargin = "margin-top:".$sfsi_section8['sfsi_plus_icons_floatMargin_top']."px;margin-right:".$sfsi_section8['sfsi_plus_icons_floatMargin_right']."px;";
409
- }
410
- elseif($sfsi_section8['sfsi_plus_float_page_position'] == "center-left")
411
- {
412
- $styleMargin = "margin-left:".$sfsi_section8['sfsi_plus_icons_floatMargin_left']."px;";
413
- }
414
- elseif($sfsi_section8['sfsi_plus_float_page_position'] == "center-right")
415
- {
416
- $styleMargin = "margin-right:".$sfsi_section8['sfsi_plus_icons_floatMargin_right']."px;";
417
- }
418
- elseif($sfsi_section8['sfsi_plus_float_page_position'] == "bottom-left")
419
- {
420
- $styleMargin = "margin-bottom:".$sfsi_section8['sfsi_plus_icons_floatMargin_bottom']."px;margin-left:".$sfsi_section8['sfsi_plus_icons_floatMargin_left']."px;";
421
- }
422
- elseif($sfsi_section8['sfsi_plus_float_page_position'] == "bottom-right")
423
- {
424
- $styleMargin = "margin-bottom:".$sfsi_section8['sfsi_plus_icons_floatMargin_bottom']."px;margin-right:".$sfsi_section8['sfsi_plus_icons_floatMargin_right']."px;";
425
- }
426
-
427
- // $icons_float = '<style >#sfsi_plus_floater { '.$styleMargin.' }</style>';
428
- add_action('wp_footer',function()use($styleMargin){
429
- echo '<script>var css = "#sfsi_plus_floater { '.$styleMargin.' }",
430
- head = document.head || document.getElementsByTagName("head")[0],
431
- style = document.createElement("style");
432
-
433
- head.appendChild(style);
434
- if (style.styleSheet){
435
- // This is required for IE8 and below.
436
- style.styleSheet.cssText = css;
437
- } else {
438
- style.appendChild(document.createTextNode(css));
439
- }</script>';
440
- },100);
441
- $icons_float .= '<div class="sfsiplus_norm_row sfsi_plus_wDiv" id="sfsi_plus_floater" style="z-index: 9999;width:'.$width.'px;text-align:'.$icons_alignment.';'.$position.'">';
442
- $icons_float .= $icons;
443
- $icons_float .= "<input type='hidden' id='sfsi_plus_floater_sec' value='".$sfsi_section8['sfsi_plus_float_page_position']."' />";
444
- $icons_float .= $jquery;
445
- return $icons_float; exit;
446
- }
447
- $icons_data=$icons_main.$icons_float;
448
- return $icons_data;
449
- }
450
- /* make all icons with saved settings in admin */
451
- function sfsi_plus_prepairIcons($icon_name,$is_front=0, $onpost="no", $fromPost = NULL,$share_url=null)
452
- {
453
- global $wpdb; global $socialObj; global $post;
454
- $mouse_hover_effect = '';
455
- $active_theme = 'official';
456
- $sfsi_plus_shuffle_Firstload = 'no';
457
- $sfsi_plus_display_counts = "no";
458
- $icon = '';
459
- $url = '';
460
- $alt_text = '';
461
- $new_window = '';
462
- $class = '';
463
- /* access all saved settings in admin */
464
- $sfsi_plus_section1_options = unserialize(get_option('sfsi_plus_section1_options',false));
465
- $sfsi_plus_section2_options = unserialize(get_option('sfsi_plus_section2_options',false));
466
- $sfsi_plus_section3_options = unserialize(get_option('sfsi_plus_section3_options',false));
467
- $sfsi_plus_section4_options = unserialize(get_option('sfsi_plus_section4_options',false));
468
- $sfsi_plus_section5_options = unserialize(get_option('sfsi_plus_section5_options',false));
469
- $sfsi_plus_section6_options = unserialize(get_option('sfsi_plus_section6_options',false));
470
- $sfsi_plus_section7_options = unserialize(get_option('sfsi_plus_section7_options',false));
471
- $sfsi_plus_section8_options = unserialize(get_option('sfsi_plus_section8_options',false));
472
- /* get active theme */
473
- $border_radius = '';
474
- $active_theme = $sfsi_plus_section3_options['sfsi_plus_actvite_theme'];
475
-
476
-
477
- /* shuffle effect */
478
- if($sfsi_plus_section3_options['sfsi_plus_shuffle_icons']=='yes')
479
- {
480
- $sfsi_plus_shuffle_Firstload=$sfsi_plus_section3_options["sfsi_plus_shuffle_Firstload"];
481
- if($sfsi_plus_section3_options["sfsi_plus_shuffle_interval"]=="yes")
482
- {
483
- $sfsi_plus_shuffle_interval = $sfsi_plus_section3_options["sfsi_plus_shuffle_intervalTime"];
484
- }
485
- }
486
- /* define the main url for icon access */
487
- $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/".$active_theme."/";
488
- $visit_iconsUrl = SFSI_PLUS_PLUGURL."images/visit_icons/";
489
- $share_iconsUrl = SFSI_PLUS_PLUGURL."images/share_icons/";
490
- $hoverSHow = 0;
491
- // var_dump($icons_baseUrl,$visit_iconsUrl);die();
492
- /* check is icon is a custom icon or default icon */
493
- if(is_numeric($icon_name)) { $icon_n=$icon_name; $icon_name="custom" ; }
494
- $counts='';
495
- $twit_tolCls = "";
496
- $twt_margin = "";
497
- $icons_space = $sfsi_plus_section5_options['sfsi_plus_icons_spacing'];
498
- $padding_top = '';
499
-
500
- $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http";
501
- $option3 = unserialize(get_option('sfsi_plus_section3_options',false));
502
-
503
- if(isset($option3['sfsi_plus_actvite_theme']) && !empty($option3['sfsi_plus_actvite_theme'])){
504
-
505
- $active_theme = $option3['sfsi_plus_actvite_theme'];
506
- }else{
507
- $active_theme = "default";
508
- }
509
- $glossy_theme_adjustment=0;
510
- //$current_url = $scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
511
- if(null!==$share_url){
512
- $current_url = $share_url;
513
- }elseif($fromPost == 'yes' && !empty($post))
514
- {
515
- $current_url = get_permalink($post->ID);
516
- }
517
- else
518
- {
519
- //$current_url = $scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
520
- $current_url = sfsi_plus_get_current_url();
521
- }
522
- $url = "#";
523
- $cmcls='';
524
- $toolClass = '';
525
- $icons_language = $sfsi_plus_section5_options['sfsi_plus_icons_language'];
526
- switch($icon_name)
527
- {
528
-
529
-
530
- case "rss" :
531
- $socialObj = new sfsi_plus_SocialHelper(); /* global object to access 3rd party icon's actions */
532
- $url = ($sfsi_plus_section2_options['sfsi_plus_rss_url'])? $sfsi_plus_section2_options['sfsi_plus_rss_url'] : 'javascript:void(0);';
533
- $toolClass = "rss_tool_bdr";
534
- $hoverdiv = '';
535
- $arsfsiplus_row_class = "bot_rss_arow";
536
-
537
- /* fecth no of counts if active in admin section */
538
- if($sfsi_plus_section4_options['sfsi_plus_rss_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
539
- {
540
- $counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_rss_manualCounts']);
541
- }
542
-
543
- if(!empty($sfsi_plus_section5_options['sfsi_plus_rss_MouseOverText']))
544
- {
545
- $alt_text = $sfsi_plus_section5_options['sfsi_plus_rss_MouseOverText'];
546
- }
547
- else
548
- {
549
- $alt_text = 'RSS';
550
- }
551
-
552
- //Custom Skin Support {Monad}
553
- if($active_theme == 'custom_support')
554
- {
555
- if(get_option("plus_rss_skin"))
556
- {
557
- $icon = get_option("plus_rss_skin");
558
- }
559
- else
560
- {
561
- $active_theme = 'default';
562
- $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
563
- $icon = $icons_baseUrl.$active_theme."_rss.png";
564
- }
565
- }
566
- else
567
- {
568
- $icon = $icons_baseUrl.$active_theme."_rss.png";
569
- }
570
- break;
571
-
572
- case "email" :
573
- $socialObj = new sfsi_plus_SocialHelper(); /* global object to access 3rd party icon's actions */
574
- $hoverdiv = '';
575
- $sfsi_plus_section2_options['sfsi_plus_email_url'];
576
- if(sanitize_text_field(get_option('sfsi_plus_feed_id',false)) == ""){
577
- $url = "https://specificfeeds.com/follow";
578
- }else{
579
- $url = (isset($sfsi_plus_section2_options['sfsi_plus_email_url'])) ? $sfsi_plus_section2_options['sfsi_plus_email_url'] : 'javascript:void(0);';
580
- }
581
- $toolClass = "email_tool_bdr";
582
- $arsfsiplus_row_class = "bot_eamil_arow";
583
-
584
- /* fecth no of counts if active in admin section */
585
- if($sfsi_plus_section4_options['sfsi_plus_email_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
586
- {
587
- if($sfsi_plus_section4_options['sfsi_plus_email_countsFrom']=="manual")
588
- {
589
- $counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_email_manualCounts']);
590
- }
591
- else
592
- {
593
- $counts= $socialObj->SFSI_getFeedSubscriber(sanitize_text_field(get_option('sfsi_plus_feed_id',false)));
594
- }
595
- }
596
-
597
- if(!empty($sfsi_plus_section5_options['sfsi_plus_email_MouseOverText']))
598
- {
599
- $alt_text = $sfsi_plus_section5_options['sfsi_plus_email_MouseOverText'];
600
- }
601
- else
602
- {
603
- $alt_text = 'EMAIL';
604
- }
605
-
606
- //Custom Skin Support {Monad}
607
- if($active_theme == 'custom_support')
608
- {
609
- if(get_option("plus_email_skin"))
610
- {
611
- $icon = get_option("plus_email_skin");
612
- }
613
- else
614
- {
615
- $active_theme = 'default';
616
- $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
617
- //$icon=($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi") ? $icons_baseUrl.$active_theme."_sf.png" : $icons_baseUrl.$active_theme."_email.png";
618
- if($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi")
619
- {
620
- $icon = $icons_baseUrl.$active_theme."_sf.png";
621
- }
622
- elseif($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="email")
623
- {
624
- $icon = $icons_baseUrl.$active_theme."_email.png";
625
- }
626
- else
627
- {
628
- $icon = $icons_baseUrl.$active_theme."_subscribe.png";
629
- }
630
- }
631
- }
632
- else
633
- {
634
- //$icon=($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi") ? $icons_baseUrl.$active_theme."_sf.png" : $icons_baseUrl.$active_theme."_email.png";
635
- if($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi")
636
- {
637
- $icon = $icons_baseUrl.$active_theme."_sf.png";
638
- }
639
- elseif($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="email")
640
- {
641
- $icon = $icons_baseUrl.$active_theme."_email.png";
642
- }
643
- else
644
- {
645
- $icon = $icons_baseUrl.$active_theme."_subscribe.png";
646
- }
647
- }
648
- break;
649
-
650
- case "facebook" :
651
- $socialObj = new sfsi_plus_SocialHelper();
652
- $width = 62;
653
- $totwith = $width+28+$icons_space;
654
- $twt_margin = $totwith /2;
655
- $toolClass = "sfsi_plus_fb_tool_bdr";
656
- $arsfsiplus_row_class = "bot_fb_arow";
657
-
658
- /* check for the over section */
659
- if(!empty($sfsi_plus_section5_options['sfsi_plus_facebook_MouseOverText']))
660
- {
661
- $alt_text = $sfsi_plus_section5_options['sfsi_plus_facebook_MouseOverText'];
662
- }
663
- else
664
- {
665
- $alt_text = "FACEBOOK";
666
- }
667
-
668
- $facebook_icons_lang = $sfsi_plus_section5_options['sfsi_plus_facebook_icons_language'];
669
- // return $facebook_icons_lang;die();wp_die();
670
- $visit_icon = SFSI_PLUS_DOCROOT.'/images/visit_icons/Visit_us_fb/icon_'.$facebook_icons_lang.'.png';
671
- if(file_exists($visit_icon))
672
- {
673
- $visit_icon = $visit_iconsUrl."Visit_us_fb/icon_".$facebook_icons_lang.".png";
674
- }
675
- else
676
- {
677
- $visit_icon = $visit_iconsUrl."fb.png";
678
- }
679
-
680
- //$visit_iconDefault = $visit_iconsUrl."facebook.png";
681
-
682
-
683
- $url = ($sfsi_plus_section2_options['sfsi_plus_facebookPage_url']) ? $sfsi_plus_section2_options['sfsi_plus_facebookPage_url']:'javascript:void(0);';
684
-
685
- if($sfsi_plus_section2_options['sfsi_plus_facebookLike_option']=="yes" || $sfsi_plus_section2_options['sfsi_plus_facebookShare_option']=="yes" )
686
- {
687
- $url=($sfsi_plus_section2_options['sfsi_plus_facebookPage_url']) ? $sfsi_plus_section2_options['sfsi_plus_facebookPage_url']:'javascript:void(0);';
688
- $hoverSHow=1;
689
- $hoverdiv='';
690
- if($sfsi_plus_section2_options['sfsi_plus_facebookPage_option']=="yes")
691
- {
692
- $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_plus_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
693
- }
694
- if($sfsi_plus_section2_options['sfsi_plus_facebookLike_option']=="yes")
695
- {
696
- $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_plus_FBlike($current_url)."</div>";
697
- }
698
- if($sfsi_plus_section2_options['sfsi_plus_facebookShare_option']=="yes")
699
- {
700
- $hoverdiv.="<div class='icon3'>".$socialObj->sfsiFB_Share($current_url)."</div>";
701
- }
702
-
703
- }
704
-
705
- /* fecth no of counts if active in admin section */
706
- if(
707
- $fromPost == 'yes' && !empty($post) &&
708
- $sfsi_plus_section4_options['sfsi_plus_facebook_countsDisplay']=="yes" &&
709
- $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes"
710
- )
711
- {
712
- $fb_data=$socialObj->sfsi_get_fb($current_url);
713
- $counts=$socialObj->format_num($fb_data['total_count']);
714
- if(empty($counts))
715
- {
716
- $counts=(string) "0";
717
- }
718
- }
719
- else
720
- {
721
- if(
722
- $sfsi_plus_section4_options['sfsi_plus_facebook_countsDisplay']=="yes" &&
723
- $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes"
724
- )
725
- {
726
- if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="manual")
727
- {
728
- $counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_facebook_manualCounts']);
729
- }
730
- else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="likes")
731
- {
732
- $fb_data=$socialObj->sfsi_get_fb($current_url);
733
- $counts=$socialObj->format_num($fb_data);
734
- if(empty($counts))
735
- {
736
- $counts=(string) "0";
737
- }
738
- }
739
- else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="followers")
740
- {
741
- $fb_data=$socialObj->sfsi_get_fb($current_url);
742
- $counts=$socialObj->format_num($fb_data['share_count']);
743
-
744
- }
745
- else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="mypage")
746
- {
747
- $current_url = $sfsi_plus_section4_options['sfsi_plus_facebook_mypageCounts'];
748
- $fb_data=$socialObj->sfsi_get_fb_pagelike($current_url);
749
- $counts=$socialObj->format_num($fb_data);
750
- }
751
- }
752
- }
753
-
754
- //Custom Skin Support {Monad}
755
- if($active_theme == 'custom_support')
756
- {
757
- if(get_option("plus_facebook_skin"))
758
- {
759
- $icon = get_option("plus_facebook_skin");
760
- }
761
- else
762
- {
763
- $active_theme = 'default';
764
- $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
765
- $icon=$icons_baseUrl.$active_theme."_fb.png";
766
- }
767
- }
768
- else
769
- {
770
- $icon=$icons_baseUrl.$active_theme."_fb.png";
771
- }
772
- break;
773
-
774
- case "twitter" :
775
- $toolClass = "sfsi_plus_twt_tool_bdr";
776
- $arsfsiplus_row_class = "bot_twt_arow";
777
- $socialObj = new sfsi_plus_SocialHelper();
778
- $url = ($sfsi_plus_section2_options['sfsi_plus_twitter_pageURL'])?$sfsi_plus_section2_options['sfsi_plus_twitter_pageURL'] : 'javascript:void(0);';
779
- $twitter_user = $sfsi_plus_section2_options['sfsi_plus_twitter_followUserName'];
780
- $twitter_text = __($sfsi_plus_section2_options['sfsi_plus_twitter_aboutPageText'],SFSI_PLUS_DOMAIN);
781
- $width = 59;
782
- $totwith = $width+28+$icons_space;
783
- $twt_margin = $totwith /2;
784
- /* check for icons to display */
785
- $hoverdiv='';
786
-
787
- $twitter_icons_lang = $sfsi_plus_section5_options['sfsi_plus_twitter_icons_language'];
788
- $visit_icon = SFSI_PLUS_DOCROOT.'/images/visit_icons/Visit_us_twitter/icon_'.$twitter_icons_lang.'.png';
789
- if(file_exists($visit_icon))
790
- {
791
- $visit_icon = $visit_iconsUrl."Visit_us_twitter/icon_".$twitter_icons_lang.".png";
792
- }
793
- else
794
- {
795
- $visit_icon = $visit_iconsUrl."twitter.png";
796
- }
797
- //$visit_icon = $visit_iconsUrl."twitter.png";
798
-
799
- if($icons_language == 'nn_NO')
800
- {
801
- $icons_language = 'no';
802
- }
803
-
804
- if($sfsi_plus_section2_options['sfsi_plus_twitter_followme']=="yes" || $sfsi_plus_section2_options['sfsi_plus_twitter_aboutPage']=="yes")
805
- {
806
- $hoverSHow=1;
807
- //Visit twitter page {Monad}
808
- if($sfsi_plus_section2_options['sfsi_plus_twitter_page']=="yes")
809
- {
810
- $hoverdiv.="<style>#sfsi_plus_floater .sfsi_plus_twt_tool_bdr .sfsi_plus_inside{margin-top: -18px;}</style><div class='cstmicon1'><a href='".$url."' ".sfsi_plus_checkNewWindow($url)."><img alt='Visit Us' title='Visit Us' src='".$visit_icon."' /></a></div>";
811
- }
812
- if($sfsi_plus_section2_options['sfsi_plus_twitter_followme']=="yes" && !empty($twitter_user))
813
- {
814
- $hoverdiv.="<div class='icon1'>".$socialObj->sfsi_twitterFollow($twitter_user,$icons_language)."</div>";
815
- }
816
- if($sfsi_plus_section2_options['sfsi_plus_twitter_aboutPage']=="yes")
817
- {
818
- $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_twitterShare($current_url,$twitter_text,$icons_language)."</div>";
819
- }
820
-
821
- }
822
-
823
- /* fecth no of counts if active in admin section */
824
- if($sfsi_plus_section4_options['sfsi_plus_twitter_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
825
- {
826
- if($sfsi_plus_section4_options['sfsi_plus_twitter_countsFrom']=="manual")
827
- {
828
- $counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_twitter_manualCounts']);
829
- }
830
- else if($sfsi_plus_section4_options['sfsi_plus_twitter_countsFrom']=="source")
831
- {
832
- $tw_settings=array('sfsiplus_tw_consumer_key'=>$sfsi_plus_section4_options['sfsiplus_tw_consumer_key'],
833
- 'sfsiplus_tw_consumer_secret'=> $sfsi_plus_section4_options['sfsiplus_tw_consumer_secret'],
834
- 'sfsiplus_tw_oauth_access_token'=> $sfsi_plus_section4_options['sfsiplus_tw_oauth_access_token'],
835
- 'sfsiplus_tw_oauth_access_token_secret'=> $sfsi_plus_section4_options['sfsiplus_tw_oauth_access_token_secret']);
836
-
837
- $followers=$socialObj->sfsi_get_tweets($twitter_user,$tw_settings);
838
- $counts=$socialObj->format_num($followers);
839
- if(empty($counts))
840
- {
841
- $counts=(string) "0";
842
- }
843
- }
844
- }
845
-
846
- //Giving alternative text to image
847
- if(!empty($sfsi_plus_section5_options['sfsi_plus_twitter_MouseOverText']))
848
- {
849
- $alt_text = $sfsi_plus_section5_options['sfsi_plus_twitter_MouseOverText'];
850
- }
851
- else
852
- {
853
- $alt_text = "TWITTER";
854
- }
855
-
856
- //Custom Skin Support {Monad}
857
- if($active_theme == 'custom_support')
858
- {
859
- if(get_option("plus_twitter_skin"))
860
- {
861
- $icon = get_option("plus_twitter_skin");
862
- }
863
- else
864
- {
865
- $active_theme = 'default';
866
- $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
867
- $icon=$icons_baseUrl.$active_theme."_twitter.png";
868
- }
869
- }
870
- else
871
- {
872
- $icon=$icons_baseUrl.$active_theme."_twitter.png";
873
- }
874
- break;
875
-
876
- case "youtube" :
877
- $socialObj = new sfsi_plus_SocialHelper();
878
- $toolClass = "utube_tool_bdr";
879
- $arsfsiplus_row_class = "bot_utube_arow";
880
- $socialObj = new sfsi_plus_SocialHelper();
881
- $width = 96;
882
- $totwith = $width+28+$icons_space;
883
- $twt_margin = $totwith /2;
884
- $youtube_user = (isset($sfsi_plus_section4_options['sfsi_plus_youtube_user']) && !empty($sfsi_plus_section4_options['sfsi_plus_youtube_user'])) ? $sfsi_plus_section4_options['sfsi_plus_youtube_user'] : 'SpecificFeeds';
885
- $visit_icon = $visit_iconsUrl."youtube.png";
886
-
887
- $url = ($sfsi_plus_section2_options['sfsi_plus_youtube_pageUrl'])? $sfsi_plus_section2_options['sfsi_plus_youtube_pageUrl'] : 'javascript:void(0);';
888
-
889
- //Giving alternative text to image
890
- if(!empty($sfsi_plus_section5_options['sfsi_plus_youtube_MouseOverText']))
891
- {
892
- $alt_text = $sfsi_plus_section5_options['sfsi_plus_youtube_MouseOverText'];
893
- }
894
- else
895
- {
896
- $alt_text = "YOUTUBE";
897
- }
898
-
899
- /* check for icons to display */
900
- $hoverdiv="";
901
- if($sfsi_plus_section2_options['sfsi_plus_youtube_follow']=="yes" )
902
- {
903
- $hoverSHow=1;
904
- if($sfsi_plus_section2_options['sfsi_plus_youtube_page']=="yes")
905
- {
906
- $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_plus_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
907
- }
908
- if($sfsi_plus_section2_options['sfsi_plus_youtube_follow']=="yes")
909
- {
910
- $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_YouTubeSub($youtube_user)."</div>";
911
- }
912
- }
913
-
914
- /* fecth no of counts if active in admin section */
915
- if($sfsi_plus_section4_options['sfsi_plus_youtube_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
916
- {
917
- if($sfsi_plus_section4_options['sfsi_plus_youtube_countsFrom']=="manual")
918
- {
919
- $counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_youtube_manualCounts']);
920
- }
921
- else if($sfsi_plus_section4_options['sfsi_plus_youtube_countsFrom']=="subscriber")
922
- {
923
- $followers=$socialObj->sfsi_get_youtube($youtube_user);
924
- $counts=$socialObj->format_num($followers);
925
- if(empty($counts))
926
- {
927
- $counts=(string) "0";
928
- }
929
- }
930
- }
931
-
932
- //Custom Skin Support {Monad}
933
- if($active_theme == 'custom_support')
934
- {
935
- if(get_option("plus_youtube_skin"))
936
- {
937
- $icon = get_option("plus_youtube_skin");
938
- }
939
- else
940
- {
941
- $active_theme = 'default';
942
- $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
943
- $icon = $icons_baseUrl.$active_theme."_youtube.png";
944
- }
945
- }
946
- else
947
- {
948
- $icon = $icons_baseUrl.$active_theme."_youtube.png";
949
- }
950
- break;
951
-
952
- case "pinterest" :
953
- $width = 73;
954
- $totwith = $width+28+$icons_space;
955
- $twt_margin = $totwith /2;
956
- $socialObj = new sfsi_plus_SocialHelper();
957
- $toolClass = "sfsi_plus_printst_tool_bdr";
958
- $arsfsiplus_row_class = "bot_pintst_arow";
959
-
960
- $pinterest_user = (isset($sfsi_plus_section4_options['sfsi_plus_pinterest_user']))
961
- ? $sfsi_plus_section4_options['sfsi_plus_pinterest_user'] : '';
962
-
963
- $pinterest_board = (isset($sfsi_plus_section4_options['sfsi_plus_pinterest_board']))
964
- ? $sfsi_plus_section4_options['sfsi_plus_pinterest_board'] : '';
965
-
966
- $visit_icon = $visit_iconsUrl."pinterest.png";
967
-
968
- $url = (isset($sfsi_plus_section2_options['sfsi_plus_pinterest_pageUrl'])) ? $sfsi_plus_section2_options['sfsi_plus_pinterest_pageUrl'] : 'javascript:void(0);';
969
-
970
- //Giving alternative text to image
971
- if(!empty($sfsi_plus_section5_options['sfsi_plus_pinterest_MouseOverText']))
972
- {
973
- $alt_text = $sfsi_plus_section5_options['sfsi_plus_pinterest_MouseOverText'];
974
- }
975
- else
976
- {
977
- $alt_text = "PINTEREST";
978
- }
979
-
980
- /* check for icons to display */
981
- $hoverdiv="";
982
- if($sfsi_plus_section2_options['sfsi_plus_pinterest_pingBlog']=="yes" )
983
- {
984
- $hoverSHow=1;
985
- if($sfsi_plus_section2_options['sfsi_plus_pinterest_page']=="yes")
986
- {
987
- $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_plus_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
988
- }
989
- if($sfsi_plus_section2_options['sfsi_plus_pinterest_pingBlog']=="yes")
990
- {
991
- if($sfsi_plus_section2_options['sfsi_plus_pinterest_pingBlog']=="yes")
992
- {
993
- $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_PinIt($current_url)."</div>";
994
- }
995
- }
996
- }
997
-
998
- /* fecth no of counts if active in admin section */
999
- if($sfsi_plus_section4_options['sfsi_plus_pinterest_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
1000
- {
1001
- if($sfsi_plus_section4_options['sfsi_plus_pinterest_countsFrom']=="manual")
1002
- {
1003
- $counts = $socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_pinterest_manualCounts']);
1004
- }
1005
- else if($sfsi_plus_section4_options['sfsi_plus_pinterest_countsFrom']=="pins")
1006
- {
1007
- $pins=$socialObj->sfsi_get_pinterest($current_url);
1008
- $counts=$pins;
1009
- if(empty($counts))
1010
- {
1011
- $counts=(string) "0";
1012
- }
1013
- }
1014
- }
1015
-
1016
- //Custom Skin Support {Monad}
1017
- if($active_theme == 'custom_support')
1018
- {
1019
- if(get_option("plus_pintrest_skin"))
1020
- {
1021
- $icon = get_option("plus_pintrest_skin");
1022
- }
1023
- else
1024
- {
1025
- $active_theme = 'default';
1026
- $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
1027
- $icon=$icons_baseUrl.$active_theme."_pinterest.png";
1028
- }
1029
- }
1030
- else
1031
- {
1032
- $icon=$icons_baseUrl.$active_theme."_pinterest.png";
1033
- }
1034
- break;
1035
-
1036
- case "instagram" :
1037
- $toolClass = "instagram_tool_bdr";
1038
- $arsfsiplus_row_class = "bot_pintst_arow";
1039
- $socialObj = new sfsi_plus_SocialHelper();
1040
- $url = (isset($sfsi_plus_section2_options['sfsi_plus_instagram_pageUrl'])) ? $sfsi_plus_section2_options['sfsi_plus_instagram_pageUrl'] : 'javascript:void(0);';
1041
- $instagram_user_name = $sfsi_plus_section4_options['sfsi_plus_instagram_User'];
1042
-
1043
- //Giving alternative text to image
1044
- if(!empty($sfsi_plus_section5_options['sfsi_plus_instagram_MouseOverText']))
1045
- {
1046
- $alt_text = $sfsi_plus_section5_options['sfsi_plus_instagram_MouseOverText'];
1047
- }
1048
- else
1049
- {
1050
- $alt_text = "INSTAGRAM";
1051
- }
1052
-
1053
- $hoverdiv="";
1054
- /* fecth no of counts if active in admin section */
1055
- if($sfsi_plus_section4_options['sfsi_plus_instagram_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
1056
- {
1057
- if($sfsi_plus_section4_options['sfsi_plus_instagram_countsFrom']=="manual")
1058
- {
1059
- $counts = $socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_instagram_manualCounts']);
1060
- }
1061
- else if($sfsi_plus_section4_options['sfsi_plus_instagram_countsFrom']=="followers")
1062
- {
1063
- $counts=$socialObj->sfsi_get_instagramFollowers($instagram_user_name);
1064
- if(empty($counts))
1065
- {
1066
- $counts=(string) "0";
1067
- }
1068
- }
1069
- }
1070
-
1071
- //Custom Skin Support {Monad}
1072
- if($active_theme == 'custom_support')
1073
- {
1074
- if(get_option("plus_instagram_skin"))
1075
- {
1076
- $icon = get_option("plus_instagram_skin");
1077
- }
1078
- else
1079
- {
1080
- $active_theme = 'default';
1081
- $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
1082
- $icon=$icons_baseUrl.$active_theme."_instagram.png";
1083
- }
1084
- }
1085
- else
1086
- {
1087
- $icon=$icons_baseUrl.$active_theme."_instagram.png";
1088
- }
1089
- break;
1090
-
1091
- case "houzz" :
1092
- $socialObj = new sfsi_plus_SocialHelper(); /* global object to access 3rd party icon's actions */
1093
- $url = ($sfsi_plus_section2_options['sfsi_plus_houzz_pageUrl'])? $sfsi_plus_section2_options['sfsi_plus_houzz_pageUrl'] : 'javascript:void(0);';
1094
- $toolClass = "rss_tool_bdr";
1095
- $hoverdiv = '';
1096
- $arsfsiplus_row_class = "bot_rss_arow";
1097
-
1098
- /* fecth no of counts if active in admin section */
1099
- if(
1100
- isset($sfsi_plus_section4_options['sfsi_plus_houzz_countsDisplay']) &&
1101
- $sfsi_plus_section4_options['sfsi_plus_houzz_countsDisplay'] == "yes" &&
1102
- $sfsi_plus_section4_options['sfsi_plus_display_counts'] == "yes"
1103
- )
1104
- {
1105
- $counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_houzz_manualCounts']);
1106
- }
1107
-
1108
- if(
1109
- isset($sfsi_plus_section5_options['sfsi_plus_houzz_MouseOverText']) &&
1110
- !empty($sfsi_plus_section5_options['sfsi_plus_houzz_MouseOverText'])
1111
- )
1112
- {
1113
- $alt_text = $sfsi_plus_section5_options['sfsi_plus_houzz_MouseOverText'];
1114
- }
1115
- else
1116
- {
1117
- $alt_text = 'Houzz';
1118
- }
1119
-
1120
- //Custom Skin Support {Monad}
1121
- if($active_theme == 'custom_support')
1122
- {
1123
- if(get_option("plus_houzz_skin"))
1124
- {
1125
- $icon = get_option("plus_houzz_skin");
1126
- }
1127
- else
1128
- {
1129
- $active_theme = 'default';
1130
- $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
1131
- $icon = $icons_baseUrl.$active_theme."_houzz.png";
1132
- }
1133
- }
1134
- else
1135
- {
1136
- $icon = $icons_baseUrl.$active_theme."_houzz.png";
1137
- }
1138
- break;
1139
-
1140
- case "linkedin" :
1141
- $width = 66;
1142
- $socialObj = new sfsi_plus_SocialHelper();
1143
- $toolClass = "sfsi_plus_linkedin_tool_bdr";
1144
- $arsfsiplus_row_class = "bot_linkedin_arow";
1145
- $linkedIn_compayId = $sfsi_plus_section2_options['sfsi_plus_linkedin_followCompany'];
1146
- $linkedIn_compay = $sfsi_plus_section2_options['sfsi_plus_linkedin_followCompany'];
1147
- $linkedIn_ProductId = $sfsi_plus_section2_options['sfsi_plus_linkedin_recommendProductId'];
1148
- $visit_icon = $visit_iconsUrl."linkedIn.png";
1149
-
1150
- /*check for icons to display */
1151
- $url=($sfsi_plus_section2_options['sfsi_plus_linkedin_pageURL'])? $sfsi_plus_section2_options['sfsi_plus_linkedin_pageURL'] : 'javascript:void(0);';
1152
-
1153
- if($sfsi_plus_section2_options['sfsi_plus_linkedin_follow']=="yes" || $sfsi_plus_section2_options['sfsi_plus_linkedin_SharePage']=="yes" || $sfsi_plus_section2_options['sfsi_plus_linkedin_recommendBusines']=="yes" )
1154
- {
1155
- $hoverSHow=1;
1156
- $hoverdiv='';
1157
- if($sfsi_plus_section2_options['sfsi_plus_linkedin_page']=="yes")
1158
- {
1159
- $hoverdiv.="<div class='icon4'><a href='".$url."' ".sfsi_plus_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
1160
- }
1161
- if($sfsi_plus_section2_options['sfsi_plus_linkedin_follow']=="yes")
1162
- {
1163
- $hoverdiv.="<div class='icon1'>".$socialObj->sfsi_LinkedInFollow($linkedIn_compayId)."</div>";
1164
- }
1165
- if($sfsi_plus_section2_options['sfsi_plus_linkedin_SharePage']=="yes")
1166
- {
1167
- $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_LinkedInShare($current_url)."</div>";
1168
- }
1169
- if($sfsi_plus_section2_options['sfsi_plus_linkedin_recommendBusines']=="yes")
1170
- {
1171
- $hoverdiv.="<div class='icon3'>".$socialObj->sfsi_LinkedInRecommend($linkedIn_compay,$linkedIn_ProductId)."</div>";
1172
- $width=99;
1173
- }
1174
- }
1175
-
1176
-
1177
- if($sfsi_plus_section4_options['sfsi_plus_linkedIn_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
1178
- {
1179
- if($sfsi_plus_section4_options['sfsi_plus_linkedIn_countsFrom']=="manual")
1180
- {
1181
- $counts = $socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_linkedIn_manualCounts']);
1182
- }
1183
- else if($sfsi_plus_section4_options['sfsi_plus_linkedIn_countsFrom']=="follower")
1184
- {
1185
- $linkedIn_compay=$sfsi_plus_section4_options['sfsi_plus_ln_company'];
1186
- $ln_settings = array('sfsi_plus_ln_api_key'=>$sfsi_plus_section4_options['sfsi_plus_ln_api_key'],
1187
- 'sfsi_plus_ln_secret_key'=>$sfsi_plus_section4_options['sfsi_plus_ln_secret_key'],
1188
- 'sfsi_plus_ln_oAuth_user_token'=>$sfsi_plus_section4_options['sfsi_plus_ln_oAuth_user_token']);
1189
-
1190
- $followers=$socialObj->sfsi_getlinkedin_follower($linkedIn_compay,$ln_settings);
1191
- (int) $followers;
1192
- $counts=$socialObj->format_num($followers);
1193
- if(empty($counts))
1194
- {
1195
- $counts = (string) "0";
1196
- }
1197
- }
1198
- }
1199
-
1200
- $totwith = $width+28+$icons_space;
1201
- $twt_margin = $totwith /2;
1202
-
1203
- //Giving alternative text to image
1204
- if(!empty($sfsi_plus_section5_options['sfsi_plus_linkedIn_MouseOverText']))
1205
- {
1206
- $alt_text = $sfsi_plus_section5_options['sfsi_plus_linkedIn_MouseOverText'];
1207
- }
1208
- else
1209
- {
1210
- $alt_text = "LINKEDIN";
1211
- }
1212
-
1213
- //Custom Skin Support {Monad}
1214
- if($active_theme == 'custom_support')
1215
- {
1216
- if(get_option("plus_linkedin_skin"))
1217
- {
1218
- $icon = get_option("plus_linkedin_skin");
1219
- }
1220
- else
1221
- {
1222
- $active_theme = 'default';
1223
- $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
1224
- $icon=$icons_baseUrl.$active_theme."_linkedin.png";
1225
- }
1226
- }
1227
- else
1228
- {
1229
- $icon=$icons_baseUrl.$active_theme."_linkedin.png";
1230
- }
1231
- break;
1232
-
1233
- // MZ CODE START
1234
-
1235
-
1236
-
1237
- case "ok":
1238
-
1239
- $toolClass = "sfsi_plus_ok_tool_bdr";
1240
- $hoverdiv = '';
1241
- $arsfsiplus_row_class = "bot_rss_arow";
1242
-
1243
- /* fecth no of counts if active in admin section */
1244
- if(
1245
- isset($sfsi_plus_section4_options['sfsi_plus_ok_countsDisplay']) &&
1246
- "yes" == $sfsi_plus_section4_options['sfsi_plus_ok_countsDisplay'] &&
1247
- "yes" == $sfsi_plus_section4_options['sfsi_plus_display_counts']
1248
- )
1249
- {
1250
- $counts = $sfsi_plus_section4_options['sfsi_plus_ok_manualCounts'];
1251
- }
1252
-
1253
- $alt_text = sfsi_plus_get_icon_mouseover_text("ok");
1254
- // $icon=$icons_baseUrl.$active_theme."_ok.png";
1255
- $icon = sfsi_plus_get_icon_image("ok");
1256
- $like_icon = $share_iconsUrl.$icon_name.".svg";
1257
- $visit_icon = $visit_iconsUrl.$icon_name.".svg";
1258
- $sub_icon = $visit_iconsUrl."ok_subscribe.svg";
1259
- $url = "#";
1260
-
1261
- $hoverSHow = 0;
1262
- if(isset($sfsi_plus_section2_options['sfsi_plus_okVisit_url']) && !empty($sfsi_plus_section2_options['sfsi_plus_okVisit_url'])){
1263
-
1264
- $url = $sfsi_plus_section2_options['sfsi_plus_okVisit_url'];
1265
- }else{
1266
- $url="#";
1267
- $sfsi_onclick="event.preventDefault();";
1268
- }
1269
- if($active_theme == "glossy"){
1270
- $glossy_theme_adjustment=4;
1271
- }
1272
- break;
1273
-
1274
- case "telegram":
1275
-
1276
- $toolClass = "sfsi_plus_telegram_tool_bdr";
1277
- $hoverdiv = '';
1278
- $arsfsiplus_row_class = "bot_rss_arow";
1279
-
1280
- /* fecth no of counts if active in admin section */
1281
- if(
1282
- isset($sfsi_plus_section4_options['sfsi_plus_telegram_countsDisplay']) &&
1283
- $sfsi_plus_section4_options['sfsi_plus_telegram_countsDisplay'] == "yes" &&
1284
- $sfsi_plus_section4_options['sfsi_plus_display_counts'] == "yes"
1285
- )
1286
- {
1287
- $counts = $sfsi_plus_section4_options['sfsi_plus_telegram_manualCounts'];
1288
- }
1289
-
1290
- $alt_text = sfsi_plus_get_icon_mouseover_text("telegram");
1291
-
1292
- $icon = sfsi_plus_get_icon_image("telegram");
1293
-
1294
- $messageus_icon = $visit_iconsUrl.$icon_name."_message.svg";
1295
- $share_icon = $share_iconsUrl.$icon_name.".svg";
1296
- $visit_icon = $visit_iconsUrl."telegram.png";
1297
-
1298
- $url = "#";
1299
- if(
1300
- isset($sfsi_plus_section2_options['sfsi_plus_telegram_message']) && !empty($sfsi_plus_section2_options['sfsi_plus_telegram_message'])
1301
- &&
1302
- isset($sfsi_plus_section2_options['sfsi_plus_telegram_username']) && !empty($sfsi_plus_section2_options['sfsi_plus_telegram_username'])
1303
-
1304
- ){
1305
- $tg_username = $sfsi_plus_section2_options['sfsi_plus_telegram_username'];
1306
- $tg_msg = stripslashes($sfsi_plus_section2_options['sfsi_plus_telegram_message']);
1307
- $tg_msg = str_replace('"', '', str_replace("'", '', $tg_msg));
1308
- $tg_msg = html_entity_decode(strip_tags($tg_msg), ENT_QUOTES,'UTF-8');
1309
- $tg_msg = str_replace("%26%238230%3B", "...", $tg_msg);
1310
- $tg_msg = rawurlencode($tg_msg);
1311
- if(isMobileDevice()){
1312
- $url = "tg://resolve?domain=".$tg_username;
1313
- }
1314
- else {
1315
- $url = "https://web.telegram.im/?p=@".$tg_username;
1316
- }
1317
-
1318
- //$url = "https://t.me/".$tg_username;
1319
- }else{
1320
- $url="#";
1321
- $sfsi_onclick="event.preventDefault();";
1322
- }
1323
-
1324
- if($active_theme == "glossy"){
1325
- $glossy_theme_adjustment=4;
1326
- }
1327
- break;
1328
-
1329
- case "vk":
1330
-
1331
- $toolClass = "sfsi_plus_vk_tool_bdr";
1332
- $hoverdiv = '';
1333
- $arsfsiplus_row_class = "bot_rss_arow";
1334
-
1335
- /* fecth no of counts if active in admin section */
1336
- if(
1337
- isset($sfsi_plus_section4_options['sfsi_plus_vk_countsDisplay']) &&
1338
- $sfsi_plus_section4_options['sfsi_plus_vk_countsDisplay'] == "yes" &&
1339
- $sfsi_plus_section4_options['sfsi_plus_display_counts'] == "yes"
1340
- )
1341
- {
1342
- $counts = $sfsi_plus_section4_options['sfsi_plus_vk_manualCounts'];
1343
- }
1344
-
1345
- $alt_text = sfsi_plus_get_icon_mouseover_text("vk");
1346
- $icon = sfsi_plus_get_icon_image("vk");
1347
- // $icon=$icons_baseUrl.$active_theme."_vk.png";
1348
- $share_icon = $share_iconsUrl.$icon_name.".svg";
1349
- $visit_icon = $visit_iconsUrl.$icon_name.".svg";
1350
- $url = "#";
1351
-
1352
- $hoverSHow = 0;
1353
- if(isset($sfsi_plus_section2_options['sfsi_plus_vkVisit_url']) && !empty($sfsi_plus_section2_options['sfsi_plus_vkVisit_url'])){
1354
-
1355
- $url = $sfsi_plus_section2_options['sfsi_plus_vkVisit_url'];
1356
- }else{
1357
- $url="#";
1358
- $sfsi_onclick="event.preventDefault();";
1359
- }
1360
-
1361
- if($active_theme == "glossy"){
1362
- $glossy_theme_adjustment=4;
1363
- }
1364
- break;
1365
-
1366
- case "weibo":
1367
-
1368
- $toolClass = "sfsi_plus_weibo_tool_bdr";
1369
- $hoverdiv = '';
1370
- $arsfsiplus_row_class = "bot_rss_arow";
1371
-
1372
- /* fecth no of counts if active in admin section */
1373
- if(isset($sfsi_plus_section4_options['sfsi_plus_weibo_countsDisplay']) && "yes" == $sfsi_plus_section4_options['sfsi_plus_weibo_countsDisplay'] && "yes" == $sfsi_plus_section4_options['sfsi_plus_display_counts']){
1374
-
1375
- $counts = $sfsi_plus_section4_options['sfsi_plus_weibo_manualCounts'];
1376
- }
1377
-
1378
- $alt_text = sfsi_plus_get_icon_mouseover_text($icon_name);
1379
- $icon = sfsi_plus_get_icon_image($icon_name);
1380
- // $icon=$icons_baseUrl.$active_theme."_weibo.png";
1381
- $url = "#";
1382
-
1383
- $hoverSHow = 0;
1384
- if(isset($sfsi_plus_section2_options['sfsi_plus_weiboVisit_url']) && !empty($sfsi_plus_section2_options['sfsi_plus_weiboVisit_url'])){
1385
-
1386
- $url = $sfsi_plus_section2_options['sfsi_plus_weiboVisit_url'];
1387
- }else{
1388
- $url="#";
1389
- $sfsi_onclick="event.preventDefault();";
1390
- }
1391
-
1392
- if($active_theme == "glossy"){
1393
- $glossy_theme_adjustment=4;
1394
- }
1395
- break;
1396
-
1397
-
1398
- case "wechat":
1399
-
1400
- $toolClass = "sfsi_plus_wechat_tool_bdr";
1401
- $hoverdiv = '';
1402
- $arsfsiplus_row_class = "bot_rss_arow";
1403
-
1404
- /* fecth no of counts if active in admin section */
1405
- if(isset($sfsi_plus_section4_options['sfsi_plus_wechat_countsDisplay']) && "yes" == $sfsi_plus_section4_options['sfsi_plus_wechat_countsDisplay'] && "yes" == $sfsi_plus_section4_options['sfsi_plus_display_counts']){
1406
-
1407
- $counts = $sfsi_plus_section4_options['sfsi_plus_wechat_manualCounts'];
1408
- }
1409
-
1410
- $alt_text = sfsi_plus_get_icon_mouseover_text($icon_name);
1411
- $icon = sfsi_plus_get_icon_image($icon_name);
1412
- // $icon=$icons_baseUrl.$active_theme."_wechat.png";
1413
-
1414
- $share_icon = $share_iconsUrl.$icon_name.".svg";
1415
- $visit_icon = $visit_iconsUrl.$icon_name.".svg";
1416
- $url = "#";
1417
- // if(!wp_is_mobile()){
1418
- $sfsi_onclick="event.preventDefault();sfsi_plus_wechat_share()" ;
1419
- // }else{
1420
- // $url = "weixin://dl/chat";
1421
- // }
1422
-
1423
- if($active_theme == "glossy"){
1424
- $glossy_theme_adjustment=4;
1425
- }
1426
- break;
1427
-
1428
-
1429
-
1430
- ///MZ CODE END
1431
-
1432
- default:
1433
- $border_radius = "";
1434
- //$border_radius =" border-radius:48%;";
1435
- $cmcls = "cmcls";
1436
- $padding_top = "";
1437
- if($active_theme=="badge")
1438
- {
1439
- //$border_radius="border-radius: 18%;";
1440
- }
1441
- if($active_theme=="cute")
1442
- {
1443
- //$border_radius="border-radius: 38%;";
1444
- }
1445
-
1446
- $custom_icon_urls = isset($sfsi_plus_section2_options['sfsi_plus_CustomIcon_links'])&& ""!==$sfsi_plus_section2_options['sfsi_plus_CustomIcon_links']?unserialize($sfsi_plus_section2_options['sfsi_plus_CustomIcon_links']):array();
1447
- $url = (isset($custom_icon_urls[$icon_n]) && !empty($custom_icon_urls[$icon_n])) ? $custom_icon_urls[$icon_n]:'javascript:void(0);';
1448
- $toolClass = "custom_lkn";
1449
- $arsfsiplus_row_class = "";
1450
- $custom_icons_hoverTxt = unserialize($sfsi_plus_section5_options['sfsi_plus_custom_MouseOverTexts']);
1451
- $icons = isset($sfsi_plus_section1_options['sfsi_custom_files'])&& ""!==$sfsi_plus_section1_options['sfsi_custom_files']?unserialize($sfsi_plus_section1_options['sfsi_custom_files']):array();;
1452
- // var_dump($icons,$custom_icon_urls,$icon_n,$sfsi_plus_section2_options);die();
1453
- $icon = $icons[$icon_n];
1454
-
1455
- //Giving alternative text to image
1456
- if(!empty($custom_icons_hoverTxt[$icon_n]))
1457
- {
1458
- $alt_text = $custom_icons_hoverTxt[$icon_n];
1459
- }
1460
- else
1461
- {
1462
- $alt_text = "SOCIALICON";
1463
- }
1464
- break;
1465
- }
1466
-
1467
- $icons="";
1468
-
1469
- /* apply size of icon */
1470
- if($is_front==0)
1471
- {
1472
- $icons_size = $sfsi_plus_section5_options['sfsi_plus_icons_size'];
1473
- }
1474
- else
1475
- {
1476
- $icons_size = 51;
1477
- }
1478
-
1479
- /* spacing and no of icons per row */
1480
- $icons_space = '';
1481
- $icons_space = $sfsi_plus_section5_options['sfsi_plus_icons_spacing'];
1482
- $icon_width = (int)$icons_size;
1483
- /* check for mouse hover effect */
1484
- $icon_opacity="1";
1485
-
1486
- if($sfsi_plus_section3_options['sfsi_plus_mouseOver']=='yes')
1487
- {
1488
- $mouse_hover_effect=$sfsi_plus_section3_options["sfsi_plus_mouseOver_effect"];
1489
- if($mouse_hover_effect=="fade_in" || $mouse_hover_effect=="combo")
1490
- {
1491
- $icon_opacity="0.6";
1492
- }
1493
- }
1494
-
1495
- $toolT_cls='';
1496
- if((int) $icon_width <=49 && (int) $icon_width >=30)
1497
- {
1498
- $bt_class="";
1499
- $toolT_cls="sfsi_plus_Tlleft";
1500
- }
1501
- else if((int) $icon_width <=20)
1502
- {
1503
- $bt_class="sfsiSmBtn";
1504
- $toolT_cls="sfsi_plus_Tlleft";
1505
- }
1506
- else
1507
- {
1508
- $bt_class="";
1509
- $toolT_cls="sfsi_plus_Tlleft";
1510
- }
1511
-
1512
- if($toolClass=="rss_tool_bdr" || $toolClass=='email_tool_bdr' || $toolClass=="custom_lkn" || $toolClass=="instagram_tool_bdr" )
1513
- {
1514
- $new_window = sfsi_plus_checkNewWindow();
1515
- }
1516
- else if($hoverSHow)
1517
- {
1518
- if(!function_exists('wp_is_mobile')||!wp_is_mobile())
1519
- {
1520
- $new_window = sfsi_plus_checkNewWindow();
1521
- }
1522
- else
1523
- {
1524
- $new_window = '';
1525
- $url = "javascript:void(0);";
1526
- }
1527
- }
1528
- else
1529
- {
1530
- $new_window = sfsi_plus_checkNewWindow();
1531
- }
1532
-
1533
- if("javascript:void(0);" == $url){
1534
- $new_window = "";
1535
- }
1536
-
1537
- $margin_bot=(5+$glossy_theme_adjustment)."px;";
1538
- if($sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
1539
- {
1540
- $margin_bot = (30+($glossy_theme_adjustment>0?$glossy_theme_adjustment-1:$glossy_theme_adjustment))."px;";
1541
- }
1542
-
1543
- if(isset($icon) && !empty($icon) && filter_var($icon, FILTER_VALIDATE_URL))
1544
- {
1545
- $icons.= "<div style='width:".$icon_width."px; height:".$icon_width."px;margin-left:".$icons_space."px;margin-bottom:".$margin_bot."' class='sfsi_plus_wicons shuffeldiv ".$cmcls."'>";
1546
-
1547
- $icons.= "<div class='sfsiplus_inerCnt'>";
1548
-
1549
- $icons.= "<a class='".$class." sficn' data-effect='".$mouse_hover_effect."' $new_window href='".$url."' style='opacity:".$icon_opacity."' ".(isset($sfsi_onclick)?'onclick="'.$sfsi_onclick.'"':'').">";
1550
-
1551
- $icons.= "<img alt='".$alt_text."' title='".$alt_text."' src='".$icon."' width='".$icons_size."' height='".$icons_size."' style='".$border_radius.$padding_top."' class='sfcm sfsi_wicon sfsiplusid_round_icon_".$icon_name."' data-effect='".$mouse_hover_effect."' />";
1552
-
1553
- $icons.= '</a>';
1554
-
1555
- if(isset($counts) && $counts!='' && $onpost == "no")
1556
- {
1557
- $icons.= '<span class="bot_no '.$bt_class.'">'.$counts.'</span>';
1558
- }
1559
-
1560
- if($hoverSHow && !empty($hoverdiv))
1561
- {
1562
- //$icons.= '<div class="sfsi_plus_tool_tip_2 '.$toolClass.' '.$toolT_cls.'" style="width:'.$width.'px ;opacity:0;z-index:-1;margin-left:-'.$twt_margin.'px;" id="sfsiplusid_'.$icon_name.'">';
1563
-
1564
- $icons.= '<div class="sfsi_plus_tool_tip_2 '.$toolClass.' '.$toolT_cls.' sfsiplusid_'.$icon_name.'" style="display:block;'.(isset($width)?'width:'.$width.'px':'').';opacity:0;z-index:-1;">';
1565
- $icons.= '<span class="bot_arow '.$arsfsiplus_row_class.'"></span>';
1566
- $icons.= '<div class="sfsi_plus_inside">'.$hoverdiv."</div>";
1567
- $icons.= "</div>";
1568
- }
1569
- $icons.="</div>";
1570
- $icons.="</div>";
1571
- }
1572
- return $icons;
1573
- }
1574
-
1575
- /* make url for new window */
1576
- function sfsi_plus_checkNewWindow()
1577
- {
1578
- global $wpdb;
1579
- $sfsi_plus_section5_options= unserialize(get_option('sfsi_plus_section5_options',false));
1580
- if($sfsi_plus_section5_options['sfsi_plus_icons_ClickPageOpen']=="yes")
1581
- {
1582
- return $new_window="target='_blank'";
1583
- }
1584
- else
1585
- {
1586
- return '';
1587
- }
1588
- }
1589
-
1590
- function sfsi_plus_check_posts_visiblity($isFloter=0 , $fromPost = NULL)
1591
- {
1592
- global $wpdb;
1593
- /* Access the saved settings in database */
1594
- $sfsi_plus_section1_options= unserialize(get_option('sfsi_plus_section1_options',false));
1595
- $sfsi_section3= unserialize(get_option('sfsi_plus_section3_options',false));
1596
- $sfsi_section5= unserialize(get_option('sfsi_plus_section5_options',false));
1597
-
1598
- //options that are added on the third question
1599
- $sfsi_section8= unserialize(get_option('sfsi_plus_section8_options',false));
1600
-
1601
- /* calculate the width and icons display alignments */
1602
- $icons_space=$sfsi_section8['sfsi_plus_post_icons_spacing'];
1603
- $icons_size=$sfsi_section8['sfsi_plus_post_icons_size'];
1604
- $extra=0;
1605
-
1606
-
1607
- /* magnage the icons in saved order in admin */
1608
- $custom_icons_order = unserialize($sfsi_section5['sfsi_plus_CustomIcons_order']);
1609
- $icons= unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
1610
- $icons_order = array(
1611
- '0' => '',
1612
- $sfsi_section5['sfsi_plus_rssIcon_order']=>'rss',
1613
- $sfsi_section5['sfsi_plus_emailIcon_order']=>'email',
1614
- $sfsi_section5['sfsi_plus_facebookIcon_order']=>'facebook',
1615
- $sfsi_section5['sfsi_plus_twitterIcon_order']=>'twitter',
1616
- $sfsi_section5['sfsi_plus_youtubeIcon_order']=>'youtube',
1617
- $sfsi_section5['sfsi_plus_pinterestIcon_order']=>'pinterest',
1618
- $sfsi_section5['sfsi_plus_linkedinIcon_order']=>'linkedin',
1619
- $sfsi_section5['sfsi_plus_instagramIcon_order']=>'instagram',
1620
- $sfsi_section5['sfsi_plus_okIcon_order']=>'ok',
1621
- $sfsi_section5['sfsi_plus_telegramIcon_order']=>'telegram',
1622
- $sfsi_section5['sfsi_plus_vkIcon_order']=>'vk',
1623
- $sfsi_section5['sfsi_plus_weiboIcon_order']=>'weibo',
1624
- $sfsi_section5['sfsi_plus_wechatIcon_order']=>'wechat',
1625
- (isset($sfsi_section5['sfsi_plus_houzzIcon_order']))
1626
- ? $sfsi_section5['sfsi_plus_houzzIcon_order']
1627
- : 12 => 'houzz'
1628
- );
1629
- if(is_array($custom_icons_order) )
1630
- {
1631
- foreach($custom_icons_order as $data)
1632
- {
1633
- $icons_order[$data['order']] = $data;
1634
- }
1635
- }
1636
- ksort($icons_order);
1637
-
1638
- /* built the main widget div */
1639
- $icons_main='<div class="sfsiplus_norm_row sfsi_plus_wDivothr">';
1640
- $icons="";
1641
-
1642
- // $icons .= '<style>.sfsibeforpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr .sfsi_plus_wicons, .sfsiaftrpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr .sfsi_plus_wicons{width: '.$icons_size.'px !important;height: '.$icons_size.'px !important; margin-left: '.$icons_space.'px !important;}</style>';
1643
- // add_action('wp_head', function(){
1644
- // echo '<style>.sfsibeforpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr .sfsi_plus_wicons, .sfsiaftrpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr .sfsi_plus_wicons{width: '.$icons_size.'px !important;height: '.$icons_size.'px !important; margin-left: '.$icons_space.'px !important;}</style>';
1645
- // }, 100);
1646
- add_action('wp_footer', function()use($icons_space,$icons_size){
1647
- echo '<script>var css = ".sfsibeforpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr .sfsi_plus_wicons, .sfsiaftrpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr .sfsi_plus_wicons{width: '.$icons_size.'px !important;height: '.$icons_size.'px !important; margin-left: '.$icons_space.'px !important;}",
1648
- head = document.head || document.getElementsByTagName("head")[0],
1649
- style = document.createElement("style");
1650
-
1651
- head.appendChild(style);
1652
- if (style.styleSheet){
1653
- // This is required for IE8 and below.
1654
- style.styleSheet.cssText = css;
1655
- } else {
1656
- style.appendChild(document.createTextNode(css));
1657
- }</script>';
1658
- }, 100);
1659
- /* loop through icons and bulit the icons with all settings applied in admin */
1660
- foreach($icons_order as $index => $icn)
1661
- {
1662
- if(is_array($icn))
1663
- {
1664
- $icon_arry = $icn;
1665
- $icn = "custom" ;
1666
- }
1667
- switch ($icn) :
1668
- case 'rss' :
1669
- if($sfsi_plus_section1_options['sfsi_plus_rss_display'] == 'yes')
1670
- {
1671
- $icons.= sfsi_plus_prepairIcons('rss');
1672
- }
1673
- break;
1674
- case 'email' :
1675
- if($sfsi_plus_section1_options['sfsi_plus_email_display']=='yes')
1676
- {
1677
- $icons.= sfsi_plus_prepairIcons('email');
1678
- }
1679
- break;
1680
- case 'facebook' :
1681
- if($sfsi_plus_section1_options['sfsi_plus_facebook_display'] == 'yes')
1682
- {
1683
- $icons.= sfsi_plus_prepairIcons('facebook', 0, "no", $fromPost);
1684
- }
1685
- break;
1686
-
1687
-
1688
- case 'twitter' :
1689
- if($sfsi_plus_section1_options['sfsi_plus_twitter_display']=='yes')
1690
- {
1691
- $icons.= sfsi_plus_prepairIcons('twitter', 0, "no", $fromPost);
1692
- }
1693
- break;
1694
- case 'youtube' :
1695
- if($sfsi_plus_section1_options['sfsi_plus_youtube_display']=='yes')
1696
- {
1697
- $icons.= sfsi_plus_prepairIcons('youtube');
1698
- }
1699
- break;
1700
-
1701
- case 'pinterest' :
1702
- if($sfsi_plus_section1_options['sfsi_plus_pinterest_display']=='yes')
1703
- {
1704
- $icons.= sfsi_plus_prepairIcons('pinterest');
1705
- }
1706
- break;
1707
- case 'linkedin' :
1708
- if($sfsi_plus_section1_options['sfsi_plus_linkedin_display']=='yes')
1709
- {
1710
- $icons.= sfsi_plus_prepairIcons('linkedin', 0, "no", $fromPost);
1711
- }
1712
- break;
1713
- case 'instagram' :
1714
- if($sfsi_plus_section1_options['sfsi_plus_instagram_display']=='yes')
1715
- {
1716
- $icons.= sfsi_plus_prepairIcons('instagram');
1717
- }
1718
- break;
1719
- case 'houzz' :
1720
- if(
1721
- isset($sfsi_plus_section1_options['sfsi_plus_houzz_display']) &&
1722
- $sfsi_plus_section1_options['sfsi_plus_houzz_display']=='yes'
1723
- )
1724
- {
1725
- $icons.= sfsi_plus_prepairIcons('houzz');
1726
- }
1727
- break;
1728
- case 'ok' :
1729
- if(
1730
- isset($sfsi_plus_section1_options['sfsi_plus_okdisplay']) &&
1731
- $sfsi_plus_section1_options['sfsi_plus_ok_display']=='yes'
1732
- )
1733
- {
1734
- $icons.= sfsi_plus_prepairIcons('ok');
1735
-
1736
- }
1737
- break;
1738
- case 'telegram' :
1739
- if(
1740
- isset($sfsi_plus_section1_options['sfsi_plus_telegram_display']) &&
1741
- $sfsi_plus_section1_options['sfsi_plus_telegram_display']=='yes'
1742
- )
1743
- {
1744
- $icons.= sfsi_plus_prepairIcons('telegram');
1745
-
1746
- }
1747
- break;
1748
- case 'vk' :
1749
- if(
1750
- isset($sfsi_plus_section1_options['sfsi_plus_vk_display']) &&
1751
- $sfsi_plus_section1_options['sfsi_plus_vk_display']=='yes'
1752
- )
1753
- {
1754
- $icons.= sfsi_plus_prepairIcons('vk');
1755
-
1756
- }
1757
- break;
1758
- case 'weibo' :
1759
- if(
1760
- isset($sfsi_plus_section1_options['sfsi_plus_weibo_display']) &&
1761
- $sfsi_plus_section1_options['sfsi_plus_weibo_display']=='yes'
1762
- )
1763
- {
1764
- $icons.= sfsi_plus_prepairIcons('weibo');
1765
-
1766
- }
1767
- break;
1768
- case 'wechat' :
1769
- if(
1770
- isset($sfsi_plus_section1_options['sfsi_plus_wechat_display']) &&
1771
- $sfsi_plus_section1_options['sfsi_plus_wechat_display']=='yes'
1772
- )
1773
- {
1774
- $icons.= sfsi_plus_prepairIcons('wechat');
1775
-
1776
- }
1777
- break;
1778
- case 'custom' :
1779
- $icons.= sfsi_plus_prepairIcons($icon_arry['ele']);
1780
- break;
1781
- endswitch;
1782
- }
1783
-
1784
- $icons.='</div >';
1785
- $icons_main.=$icons;
1786
-
1787
- /* if floating of icons is active create a floater div */
1788
- $icons_float='';
1789
- $icons_data=$icons_main.$icons_float;
1790
- return $icons_data;
1791
- }
1792
-
1793
- // MZ CODE
1794
-
1795
-
1796
- function sfsi_plus_get_icon_mouseover_text($icon_name){
1797
-
1798
- $alt_text = '';
1799
-
1800
- if(isset($icon_name) && !empty($icon_name)){
1801
-
1802
- $icon_name = strtolower($icon_name);
1803
-
1804
- $key = 'sfsi_plus_'.$icon_name.'_MouseOverText';
1805
-
1806
- $sfsi_plus_section5_options = unserialize(get_option('sfsi_plus_section5_options',false));
1807
-
1808
- if(isset($sfsi_plus_section5_options[$key]) && !empty($sfsi_plus_section5_options[$key]) )
1809
- {
1810
- $alt_text = $sfsi_plus_section5_options[$key];
1811
- }
1812
- }
1813
-
1814
- return $alt_text;
1815
- }
1816
-
1817
-
1818
-
1819
- //MZ CODE END
1820
-
1821
- function isMobileDevice() {
1822
- return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
1823
- }
1
+ <?php
2
+ /* create SFSI widget */
3
+ class Sfsi_Plus_Widget extends WP_Widget
4
+ {
5
+ function __construct()
6
+ {
7
+ $widget_ops = array( 'classname' => 'sfsi_plus', 'description' => 'Ultimate Social Media PLUS widgets');
8
+ $control_ops = array( 'width' => 300, 'height' => 350, 'id_base' => 'sfsi-plus-widget' );
9
+
10
+ parent::__construct(
11
+ // Base ID of your widget
12
+ 'sfsi-plus-widget',
13
+
14
+ // Widget name will appear in UI
15
+ 'Ultimate Social Media PLUS',
16
+
17
+ // Widget description
18
+ $widget_ops,
19
+
20
+ $control_ops
21
+ );
22
+ }
23
+
24
+ function widget( $args, $instance )
25
+ {
26
+ extract( $args );
27
+ //if show via widget is checked
28
+ $sfsi_plus_section8_options = get_option("sfsi_plus_section8_options");
29
+ $sfsi_plus_section8_options = unserialize($sfsi_plus_section8_options);
30
+ $sfsi_plus_show_via_widget = $sfsi_plus_section8_options['sfsi_plus_show_via_widget'];
31
+ if($sfsi_plus_show_via_widget == "yes")
32
+ {
33
+ /*Our variables from the widget settings. */
34
+ $title = apply_filters('widget_title', $instance['title'] );
35
+ $show_info = isset( $instance['show_info'] ) ? $instance['show_info'] : false;
36
+ global $is_floter;
37
+ echo $before_widget;
38
+ /* Display the widget title */
39
+ if ( $title ) echo $before_title . $title . $after_title;
40
+ ?>
41
+ <div class="sfsi_plus_widget" data-position="widget">
42
+ <div id='sfsi_plus_wDiv'></div>
43
+ <?php
44
+ /* Link the main icons function */
45
+ echo sfsi_plus_check_visiblity(0);
46
+ ?>
47
+ <div style="clear: both;"></div>
48
+ </div>
49
+ <?php
50
+ if ( is_active_widget( false, false, $this->id_base, true ) ) { }
51
+ echo $after_widget;
52
+ }
53
+ else
54
+ {
55
+ //echo 'Kindly go to setting page and check the option "show them via a widget"';
56
+ }
57
+ }
58
+
59
+ /*Update the widget */
60
+ function update( $new_instance, $old_instance )
61
+ {
62
+ $instance = $old_instance;
63
+ //Strip tags from title and name to remove HTML
64
+ if($new_instance['showf']==0)
65
+ {
66
+ $instance['showf']=1;
67
+ }
68
+ else
69
+ {
70
+ $instance['showf']=0;
71
+ }
72
+ $instance['title'] = strip_tags( $new_instance['title'] );
73
+ return $instance;
74
+ }
75
+
76
+ /* Set up some default widget settings. */
77
+ function form( $instance )
78
+ {
79
+ $defaults = array( 'title' =>"" );
80
+ $instance = wp_parse_args( (array) $instance, $defaults );
81
+ if(isset($instance['showf']))
82
+ {
83
+ if( $instance['showf'] == 0 && empty($instance['title']))
84
+ {
85
+ $instance['title']='Please follow & like us :)';
86
+ }
87
+ else
88
+ {
89
+ $instance['title'];
90
+ }
91
+ }
92
+ else
93
+ {
94
+ $instance['title']='Please follow & like us :)';
95
+ }
96
+ ?>
97
+ <p>
98
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>">
99
+ <?php _e('Title', SFSI_PLUS_DOMAIN); ?>:
100
+ </label>
101
+ <input id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>"
102
+ value="<?php echo $instance['title']; ?>" style="width:100%;" />
103
+ <input type="hidden" value="<?php echo isset($instance['showf'])?$instance['showf']:''; ?>"
104
+ id="<?php echo $this->get_field_id( 'showf' ); ?>" name="<?php echo $this->get_field_name( 'showf' ); ?>" />
105
+ </p>
106
+ <p>
107
+ <?php _e('Please go to the plugin page to set your preferences:',SFSI_PLUS_DOMAIN); ?>
108
+ <a href="admin.php?page=sfsi-plus-options"><?php _e('Click here', SFSI_PLUS_DOMAIN); ?></a>
109
+ </p>
110
+ <?php
111
+ }
112
+ }
113
+ /* END OF widget Class */
114
+
115
+ /* register widget to wordpress */
116
+ function register_sfsi_plus_widgets()
117
+ {
118
+ register_widget( 'sfsi_plus_widget' );
119
+ }
120
+ add_action( 'widgets_init', 'register_sfsi_plus_widgets' );
121
+
122
+ /* check the icons visiblity */
123
+ function sfsi_plus_check_visiblity($isFloter=0,$share_url=null,$container_position='absolute')
124
+ {
125
+ global $wpdb;
126
+ /* Access the saved settings in database */
127
+ $sfsi_plus_section1_options = unserialize(get_option('sfsi_plus_section1_options',false));
128
+ $sfsi_section3 = unserialize(get_option('sfsi_plus_section3_options',false));
129
+ $sfsi_section5 = unserialize(get_option('sfsi_plus_section5_options',false));
130
+ //options that are added on the third question
131
+ $sfsi_section8 = unserialize(get_option('sfsi_plus_section8_options',false));
132
+
133
+ /* calculate the width and icons display alignments */
134
+ $icons_space = $sfsi_section5['sfsi_plus_icons_spacing'];
135
+ $icons_size = $sfsi_section5['sfsi_plus_icons_size'];
136
+ $icons_per_row = ($sfsi_section5['sfsi_plus_icons_perRow'])? $sfsi_section5['sfsi_plus_icons_perRow'] : '';
137
+ $icons_alignment = $sfsi_section5['sfsi_plus_icons_Alignment'];
138
+ $position = 'position:absolute;';
139
+ $position1 = 'position:'.$container_position.';';
140
+ $jquery='<script>';
141
+
142
+ // $jquery .= 'jQuery(".sfsi_plus_widget").each(function( index ) {
143
+ // if(jQuery(this).attr("data-position") == "widget")
144
+ // {
145
+ // var wdgt_hght = jQuery(this).children(".sfsiplus_norm_row.sfsi_plus_wDiv").height();
146
+ // var title_hght = jQuery(this).parent(".widget.sfsi_plus").children(".widget-title").height();
147
+ // var totl_hght = parseInt( title_hght ) + parseInt( wdgt_hght );
148
+ // jQuery(this).parent(".widget.sfsi_plus").css("min-height", totl_hght+"px");
149
+ // }
150
+ // });';
151
+ ?>
152
+ <script>
153
+ window.addEventListener('sfsi_plus_functions_loaded', function() {
154
+ if (typeof sfsi_plus_widget_set == 'function') {
155
+ sfsi_plus_widget_set();
156
+ }
157
+ })
158
+ </script>
159
+ <?php
160
+ /* check if icons shuffling is activated in admin or not */
161
+ if($sfsi_section5['sfsi_plus_icons_stick']=="yes")
162
+ {
163
+ if(is_admin_bar_showing())
164
+ {
165
+ $Ictop="30px";
166
+ }
167
+ else
168
+ {
169
+ $Ictop="0";
170
+ }
171
+ $jquery.='window.addEventListener("sfsi_plus_functions_loaded",function(){window.sfsi_plsu_s = jQuery(".sfsi_plus_widget");
172
+ var pos = window.sfsi_plsu_s.position();
173
+ jQuery(window).scroll(function(){
174
+ sfsi_plus_stick_widget("'.$Ictop.'");
175
+ }); })';
176
+ }
177
+
178
+ /* check if icons floating is activated in admin */
179
+ /*settings under third question*/
180
+ if($sfsi_section8['sfsi_plus_float_on_page']=="yes")
181
+ {
182
+ $top="15";
183
+ //switch($sfsi_section5['sfsi_plus_icons_floatPosition'])
184
+ switch($sfsi_section8['sfsi_plus_float_page_position'])
185
+ {
186
+ case "top-left" :
187
+ if(is_admin_bar_showing())
188
+ {
189
+ $position.="position:absolute;left:30px;top:35px;"; $top="35";
190
+ }
191
+ else
192
+ {
193
+ $position.="position:absolute;left:10px;top:2%"; $top="10";
194
+ }
195
+ break;
196
+ case "top-right" :
197
+ if(is_admin_bar_showing())
198
+ {
199
+ $position.="position:absolute;right:30px;top:35px;"; $top="35";
200
+ }else
201
+ {
202
+ $position.="position:absolute;right:10px;top:2%"; $top="10";
203
+ }
204
+ break;
205
+ case "center-right" :
206
+ $position.="position:absolute;right:30px;top:50%"; $top="center";
207
+ break;
208
+ case "center-left" :
209
+ $position.="position:absolute;left:30px;top:50%"; $top="center";
210
+ break;
211
+ case "bottom-right" :
212
+ $position.="position:absolute;right:30px;bottom:0px"; $top="bottom";
213
+ break;
214
+ case "bottom-left" :
215
+ $position.="position:absolute;left:30px;bottom:0px"; $top="bottom";
216
+ break;
217
+ }
218
+ if($sfsi_section8['sfsi_plus_float_page_position'] == 'center-right' || $sfsi_section8['sfsi_plus_float_page_position'] == 'center-left')
219
+ {
220
+ $jquery.="window.addEventListener('sfsi_plus_functions_loaded',function( totwith=".(isset($totwith)?$totwith:0)." )
221
+ {
222
+ var topalign = ( jQuery(window).height() - jQuery('#sfsi_plus_floater').height() ) / 2;
223
+ jQuery('#sfsi_plus_floater').css('top',topalign);
224
+ sfsi_plus_float_widget('".$top."');
225
+ });";
226
+ }
227
+ else
228
+ {
229
+ $jquery.="window.addEventListener('sfsi_plus_functions_loaded',function( totwith=".(isset($totwith)?$totwith:0)." ) { sfsi_plus_float_widget('".$top."')});";
230
+ }
231
+ }
232
+
233
+ $extra=0;
234
+ if($sfsi_section3['sfsi_plus_shuffle_icons']=="yes")
235
+ {
236
+ if($sfsi_section3['sfsi_plus_shuffle_Firstload']=="yes" && $sfsi_section3['sfsi_plus_shuffle_interval']=="yes")
237
+ {
238
+ $shuffle_time=(isset($sfsi_section3['sfsi_plus_shuffle_intervalTime'])) ? $sfsi_section3['sfsi_plus_shuffle_intervalTime'] : 3;
239
+ $shuffle_time=$shuffle_time*1000;
240
+ $jquery.="window.addEventListener('sfsi_plus_functions_loaded',function( totwith=".(isset($totwith)?$totwith:0)." ) { jQuery('.sfsi_plus_wDiv').each(function(){ new window.Manipulator( jQuery(this)); }); setTimeout(function(){ jQuery('#sfsi_plus_wDiv').each(function(){ jQuery(this).click(); })},2000); setInterval(function(){ jQuery('#sfsi_plus_wDiv').each(function(){ jQuery(this).click(); })},".$shuffle_time."); });";
241
+ }
242
+ else if($sfsi_section3['sfsi_plus_shuffle_Firstload']=="no" && $sfsi_section3['sfsi_plus_shuffle_interval']=="yes")
243
+ {
244
+ $shuffle_time=(isset($sfsi_section3['sfsi_plus_shuffle_intervalTime'])) ? $sfsi_section3['sfsi_plus_shuffle_intervalTime'] : 3;
245
+ $shuffle_time=$shuffle_time*1000;
246
+ $jquery.="window.addEventListener('sfsi_plus_functions_loaded',function( totwith=".(isset($totwith)?$totwith:0)." ) { jQuery('.sfsi_plus_wDiv').each(function(){ new window.Manipulator( jQuery(this)); }); setInterval(function(){ jQuery('#sfsi_plus_wDiv').each(function(){ jQuery(this).click(); })},".$shuffle_time."); });";
247
+ }
248
+ else
249
+ {
250
+ $jquery.="window.addEventListener('sfsi_plus_functions_loaded',function( totwith=".(isset($totwith)?$totwith:0)." ) { jQuery('.sfsi_plus_wDiv').each(function(){ new window.Manipulator( jQuery(this)); }); setTimeout(function(){ jQuery('#sfsi_plus_wDiv').each(function(){ jQuery(this).click(); })},2000); });";
251
+ }
252
+ }
253
+
254
+ /* magnage the icons in saved order in admin */
255
+ $custom_icons_order = unserialize($sfsi_section5['sfsi_plus_CustomIcons_order']);
256
+ $icons_list = array();
257
+ if(isset($sfsi_plus_section1_options['sfsi_custom_files'])){
258
+ if(is_string($sfsi_plus_section1_options['sfsi_custom_files'])){
259
+ $icons_list= unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
260
+ }else{
261
+ $icons_list= $sfsi_plus_section1_options['sfsi_custom_files'];
262
+ }
263
+ }
264
+ if(!isset($sfsi_plus_section5_options['sfsi_plus_houzzIcon_order'])){
265
+ $sfsi_plus_section5_options['sfsi_plus_houzzIcon_order']=11;
266
+ }
267
+ if(!isset($sfsi_plus_section5_options['sfsi_plus_okIcon_order'])){
268
+ $sfsi_plus_section5_options['sfsi_plus_okIcon_order']=22;
269
+ }
270
+ if(!isset($sfsi_plus_section5_options['sfsi_plus_telegramIcon_order'])){
271
+ $sfsi_plus_section5_options['sfsi_plus_telegramIcon_order']=23;
272
+ }
273
+ if(!isset($sfsi_plus_section5_options['sfsi_plus_vkIcon_order'])){
274
+ $sfsi_plus_section5_options['sfsi_plus_vkIcon_order']=24;
275
+ }
276
+ if(!isset($sfsi_plus_section5_options['sfsi_plus_wechatIcon_order'])){
277
+ $sfsi_plus_section5_options['sfsi_plus_wechatIcon_order']=26;
278
+ }
279
+ if(!isset($sfsi_plus_section5_options['sfsi_plus_weiboIcon_order'])){
280
+ $sfsi_plus_section5_options['sfsi_plus_weiboIcon_order']=25;
281
+ }
282
+
283
+ // $icons_list = (isset($sfsi_plus_section1_options['sfsi_custom_files']))?(!is_string($sfsi_plus_section1_options['sfsi_custom_files'])?unserialize($sfsi_plus_section1_options['sfsi_custom_files'],false):$sfsi_plus_section1_options['sfsi_custom_files']):(array());
284
+ $icons_order = array(
285
+ '0' => '',
286
+ $sfsi_section5['sfsi_plus_rssIcon_order']=>'rss',
287
+ $sfsi_section5['sfsi_plus_emailIcon_order']=>'email',
288
+ $sfsi_section5['sfsi_plus_facebookIcon_order']=>'facebook',
289
+ $sfsi_section5['sfsi_plus_twitterIcon_order']=>'twitter',
290
+ $sfsi_section5['sfsi_plus_youtubeIcon_order']=>'youtube',
291
+ $sfsi_section5['sfsi_plus_pinterestIcon_order']=>'pinterest',
292
+ $sfsi_section5['sfsi_plus_linkedinIcon_order']=>'linkedin',
293
+ $sfsi_section5['sfsi_plus_instagramIcon_order']=>'instagram',
294
+ $sfsi_section5['sfsi_plus_houzzIcon_order']=>'houzz',
295
+ $sfsi_section5['sfsi_plus_okIcon_order']=>'ok',
296
+ $sfsi_section5['sfsi_plus_telegramIcon_order']=>'telegram',
297
+ $sfsi_section5['sfsi_plus_vkIcon_order']=>'vk',
298
+ $sfsi_section5['sfsi_plus_wechatIcon_order']=>'wechat',
299
+ $sfsi_section5['sfsi_plus_weiboIcon_order']=>'weibo'
300
+
301
+ );
302
+ if(!is_array($custom_icons_order)){
303
+ $custom_icons_order = array();
304
+ }
305
+ $max_custom_icon_order=max(array_keys($icons_order));
306
+ if(is_array($icons_list)){
307
+ foreach($icons_list as $index=>$icon){
308
+ if(false===array_search($index, array_column($custom_icons_order, 'ele'))){
309
+ array_push($custom_icons_order,array('order'=>($max_custom_icon_order+count($custom_icons_order)),'ele'=>$index));
310
+ }
311
+ }
312
+ }
313
+ if(is_array($custom_icons_order) )
314
+ {
315
+ foreach($custom_icons_order as $data)
316
+ {
317
+ $icons_order[$data['order']] = $data;
318
+ }
319
+ }
320
+
321
+ ksort($icons_order);
322
+ /* calculate the total width of widget according to icons */
323
+ if(!empty($icons_per_row))
324
+ {
325
+ $width = ((int)$icons_space+(int)$icons_size)*(int)$icons_per_row;
326
+ $main_width = $width=$width+$extra;
327
+ $main_width = $main_width."px";
328
+ }
329
+ else
330
+ {
331
+ $main_width="35%";
332
+ }
333
+
334
+ /* built the main widget div */
335
+ $icons_main='<div class="sfsiplus_norm_row sfsi_plus_wDiv" style="width:'.$main_width.';text-align:'.$icons_alignment.';'.$position1.'">';
336
+ $icons="";
337
+ /* loop through icons and bulit the icons with all settings applied in admin */
338
+ foreach($icons_order as $index => $icn)
339
+ {
340
+
341
+ if(is_array($icn))
342
+ {
343
+ $icon_arry=$icn; $icn="custom" ;
344
+ }
345
+ switch ($icn)
346
+ {
347
+ case 'rss' : if($sfsi_plus_section1_options['sfsi_plus_rss_display']=='yes') $icons.= sfsi_plus_prepairIcons('rss',0,"no",null,$share_url);
348
+ break;
349
+ case 'email' : if($sfsi_plus_section1_options['sfsi_plus_email_display']=='yes') $icons.= sfsi_plus_prepairIcons('email',0,"no",null,$share_url);
350
+ break;
351
+ case 'facebook' : if($sfsi_plus_section1_options['sfsi_plus_facebook_display']=='yes') $icons.= sfsi_plus_prepairIcons('facebook',0,"no",null,$share_url);
352
+ break;
353
+
354
+ case 'twitter' : if($sfsi_plus_section1_options['sfsi_plus_twitter_display']=='yes') $icons.= sfsi_plus_prepairIcons('twitter',0,"no",null,$share_url);
355
+ break;
356
+ case 'youtube' : if($sfsi_plus_section1_options['sfsi_plus_youtube_display']=='yes') $icons.= sfsi_plus_prepairIcons('youtube',0,"no",null,$share_url);
357
+ break;
358
+ case 'pinterest' : if($sfsi_plus_section1_options['sfsi_plus_pinterest_display']=='yes') $icons.= sfsi_plus_prepairIcons('pinterest',0,"no",null,$share_url);
359
+ break;
360
+ case 'linkedin' : if($sfsi_plus_section1_options['sfsi_plus_linkedin_display']=='yes') $icons.= sfsi_plus_prepairIcons('linkedin',0,"no",null,$share_url);
361
+ break;
362
+ case 'instagram' : if($sfsi_plus_section1_options['sfsi_plus_instagram_display']=='yes') $icons.= sfsi_plus_prepairIcons('instagram',0,"no",null,$share_url);
363
+ break;
364
+ case 'houzz' :
365
+ if(
366
+ isset($sfsi_plus_section1_options['sfsi_plus_houzz_display']) &&
367
+ $sfsi_plus_section1_options['sfsi_plus_houzz_display'] == 'yes'
368
+ )
369
+ {
370
+ $icons.= sfsi_plus_prepairIcons('houzz',0,"no",null,$share_url);
371
+ }
372
+ break;
373
+ case 'ok' : if(isset($sfsi_plus_section1_options['sfsi_plus_ok_display']) && $sfsi_plus_section1_options['sfsi_plus_ok_display']=='yes') $icons.= sfsi_plus_prepairIcons('ok',0,"no",null,$share_url);
374
+ break;
375
+ case 'telegram' : if(isset($sfsi_plus_section1_options['sfsi_plus_telegram_display']) && $sfsi_plus_section1_options['sfsi_plus_telegram_display']=='yes') $icons.= sfsi_plus_prepairIcons('telegram',0,"no",null,$share_url);
376
+ break;
377
+ case 'vk' : if(isset($sfsi_plus_section1_options['sfsi_plus_vk_display']) && $sfsi_plus_section1_options['sfsi_plus_vk_display']=='yes') $icons.= sfsi_plus_prepairIcons('vk',0,"no",null,$share_url);
378
+ break;
379
+ case 'weibo' : if(isset($sfsi_plus_section1_options['sfsi_plus_weibo_display']) && $sfsi_plus_section1_options['sfsi_plus_weibo_display']=='yes') $icons.= sfsi_plus_prepairIcons('weibo',0,"no",null,$share_url);
380
+ break;
381
+
382
+ case 'wechat' : if(isset($sfsi_plus_section1_options['sfsi_plus_wechat_display']) && $sfsi_plus_section1_options['sfsi_plus_wechat_display']=='yes') $icons.= sfsi_plus_prepairIcons('wechat',0,"no",null,$share_url);
383
+ break;
384
+ case 'custom' : $icons.= sfsi_plus_prepairIcons($icon_arry['ele'],0,"no",null,$share_url);
385
+ break;
386
+ }
387
+ }
388
+
389
+
390
+ $jquery.="</script>";
391
+ $icons.='</div >';
392
+
393
+ $width = isset($width) && !empty($width) ? $width : 0;
394
+
395
+ $margin= $width+11;
396
+
397
+ $icons_main.=$icons.'<div id="sfsi_holder" class="sfsi_plus_holders" style="position: relative; float: left;width:100%;z-index:-1;"></div >'.$jquery;
398
+ /* if floating of icons is active create a floater div */
399
+ $icons_float='';
400
+ if($sfsi_section8['sfsi_plus_float_on_page']=="yes" && $isFloter==1)
401
+ {
402
+ if($sfsi_section8['sfsi_plus_float_page_position'] == "top-left")
403
+ {
404
+ $styleMargin = "margin-top:".$sfsi_section8['sfsi_plus_icons_floatMargin_top']."px;margin-left:".$sfsi_section8['sfsi_plus_icons_floatMargin_left']."px;";
405
+ }
406
+ elseif($sfsi_section8['sfsi_plus_float_page_position'] == "top-right")
407
+ {
408
+ $styleMargin = "margin-top:".$sfsi_section8['sfsi_plus_icons_floatMargin_top']."px;margin-right:".$sfsi_section8['sfsi_plus_icons_floatMargin_right']."px;";
409
+ }
410
+ elseif($sfsi_section8['sfsi_plus_float_page_position'] == "center-left")
411
+ {
412
+ $styleMargin = "margin-left:".$sfsi_section8['sfsi_plus_icons_floatMargin_left']."px;";
413
+ }
414
+ elseif($sfsi_section8['sfsi_plus_float_page_position'] == "center-right")
415
+ {
416
+ $styleMargin = "margin-right:".$sfsi_section8['sfsi_plus_icons_floatMargin_right']."px;";
417
+ }
418
+ elseif($sfsi_section8['sfsi_plus_float_page_position'] == "bottom-left")
419
+ {
420
+ $styleMargin = "margin-bottom:".$sfsi_section8['sfsi_plus_icons_floatMargin_bottom']."px;margin-left:".$sfsi_section8['sfsi_plus_icons_floatMargin_left']."px;";
421
+ }
422
+ elseif($sfsi_section8['sfsi_plus_float_page_position'] == "bottom-right")
423
+ {
424
+ $styleMargin = "margin-bottom:".$sfsi_section8['sfsi_plus_icons_floatMargin_bottom']."px;margin-right:".$sfsi_section8['sfsi_plus_icons_floatMargin_right']."px;";
425
+ }
426
+
427
+ // $icons_float = '<style >#sfsi_plus_floater { '.$styleMargin.' }</style>';
428
+ add_action('wp_footer',function()use($styleMargin){
429
+ echo '<script>var css = "#sfsi_plus_floater { '.$styleMargin.' }",
430
+ head = document.head || document.getElementsByTagName("head")[0],
431
+ style = document.createElement("style");
432
+
433
+ head.appendChild(style);
434
+ if (style.styleSheet){
435
+ // This is required for IE8 and below.
436
+ style.styleSheet.cssText = css;
437
+ } else {
438
+ style.appendChild(document.createTextNode(css));
439
+ }</script>';
440
+ },100);
441
+ $icons_float .= '<div class="sfsiplus_norm_row sfsi_plus_wDiv" id="sfsi_plus_floater" style="z-index: 9999;width:'.$width.'px;text-align:'.$icons_alignment.';'.$position.'">';
442
+ $icons_float .= $icons;
443
+ $icons_float .= "<input type='hidden' id='sfsi_plus_floater_sec' value='".$sfsi_section8['sfsi_plus_float_page_position']."' />";
444
+ $icons_float .= $jquery;
445
+ return $icons_float; exit;
446
+ }
447
+ $icons_data=$icons_main.$icons_float;
448
+ return $icons_data;
449
+ }
450
+ /* make all icons with saved settings in admin */
451
+ function sfsi_plus_prepairIcons($icon_name,$is_front=0, $onpost="no", $fromPost = NULL,$share_url=null)
452
+ {
453
+ global $wpdb; global $socialObj; global $post;
454
+ $mouse_hover_effect = '';
455
+ $active_theme = 'official';
456
+ $sfsi_plus_shuffle_Firstload = 'no';
457
+ $sfsi_plus_display_counts = "no";
458
+ $icon = '';
459
+ $url = '';
460
+ $alt_text = '';
461
+ $new_window = '';
462
+ $class = '';
463
+ /* access all saved settings in admin */
464
+ $sfsi_plus_section1_options = unserialize(get_option('sfsi_plus_section1_options',false));
465
+ $sfsi_plus_section2_options = unserialize(get_option('sfsi_plus_section2_options',false));
466
+ $sfsi_plus_section3_options = unserialize(get_option('sfsi_plus_section3_options',false));
467
+ $sfsi_plus_section4_options = unserialize(get_option('sfsi_plus_section4_options',false));
468
+ $sfsi_plus_section5_options = unserialize(get_option('sfsi_plus_section5_options',false));
469
+ $sfsi_plus_section6_options = unserialize(get_option('sfsi_plus_section6_options',false));
470
+ $sfsi_plus_section7_options = unserialize(get_option('sfsi_plus_section7_options',false));
471
+ $sfsi_plus_section8_options = unserialize(get_option('sfsi_plus_section8_options',false));
472
+ /* get active theme */
473
+ $border_radius = '';
474
+ $active_theme = $sfsi_plus_section3_options['sfsi_plus_actvite_theme'];
475
+
476
+
477
+ /* shuffle effect */
478
+ if($sfsi_plus_section3_options['sfsi_plus_shuffle_icons']=='yes')
479
+ {
480
+ $sfsi_plus_shuffle_Firstload=$sfsi_plus_section3_options["sfsi_plus_shuffle_Firstload"];
481
+ if($sfsi_plus_section3_options["sfsi_plus_shuffle_interval"]=="yes")
482
+ {
483
+ $sfsi_plus_shuffle_interval = $sfsi_plus_section3_options["sfsi_plus_shuffle_intervalTime"];
484
+ }
485
+ }
486
+ /* define the main url for icon access */
487
+ $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/".$active_theme."/";
488
+ $visit_iconsUrl = SFSI_PLUS_PLUGURL."images/visit_icons/";
489
+ $share_iconsUrl = SFSI_PLUS_PLUGURL."images/share_icons/";
490
+ $hoverSHow = 0;
491
+ // var_dump($icons_baseUrl,$visit_iconsUrl);die();
492
+ /* check is icon is a custom icon or default icon */
493
+ if(is_numeric($icon_name)) { $icon_n=$icon_name; $icon_name="custom" ; }
494
+ $counts='';
495
+ $twit_tolCls = "";
496
+ $twt_margin = "";
497
+ $icons_space = $sfsi_plus_section5_options['sfsi_plus_icons_spacing'];
498
+ $padding_top = '';
499
+
500
+ $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http";
501
+ $option3 = unserialize(get_option('sfsi_plus_section3_options',false));
502
+
503
+ if(isset($option3['sfsi_plus_actvite_theme']) && !empty($option3['sfsi_plus_actvite_theme'])){
504
+
505
+ $active_theme = $option3['sfsi_plus_actvite_theme'];
506
+ }else{
507
+ $active_theme = "default";
508
+ }
509
+ $glossy_theme_adjustment=0;
510
+ //$current_url = $scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
511
+ if(null!==$share_url){
512
+ $current_url = $share_url;
513
+ }elseif($fromPost == 'yes' && !empty($post))
514
+ {
515
+ $current_url = get_permalink($post->ID);
516
+ }
517
+ else
518
+ {
519
+ //$current_url = $scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
520
+ $current_url = sfsi_plus_get_current_url();
521
+ }
522
+ $url = "#";
523
+ $cmcls='';
524
+ $toolClass = '';
525
+ $icons_language = $sfsi_plus_section5_options['sfsi_plus_icons_language'];
526
+ switch($icon_name)
527
+ {
528
+
529
+
530
+ case "rss" :
531
+ $socialObj = new sfsi_plus_SocialHelper(); /* global object to access 3rd party icon's actions */
532
+ $url = ($sfsi_plus_section2_options['sfsi_plus_rss_url'])? $sfsi_plus_section2_options['sfsi_plus_rss_url'] : 'javascript:void(0);';
533
+ $toolClass = "rss_tool_bdr";
534
+ $hoverdiv = '';
535
+ $arsfsiplus_row_class = "bot_rss_arow";
536
+
537
+ /* fecth no of counts if active in admin section */
538
+ if($sfsi_plus_section4_options['sfsi_plus_rss_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
539
+ {
540
+ $counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_rss_manualCounts']);
541
+ }
542
+
543
+ if(!empty($sfsi_plus_section5_options['sfsi_plus_rss_MouseOverText']))
544
+ {
545
+ $alt_text = $sfsi_plus_section5_options['sfsi_plus_rss_MouseOverText'];
546
+ }
547
+ else
548
+ {
549
+ $alt_text = 'RSS';
550
+ }
551
+
552
+ //Custom Skin Support {Monad}
553
+ if($active_theme == 'custom_support')
554
+ {
555
+ if(get_option("plus_rss_skin"))
556
+ {
557
+ $icon = get_option("plus_rss_skin");
558
+ }
559
+ else
560
+ {
561
+ $active_theme = 'default';
562
+ $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
563
+ $icon = $icons_baseUrl.$active_theme."_rss.png";
564
+ }
565
+ }
566
+ else
567
+ {
568
+ $icon = $icons_baseUrl.$active_theme."_rss.png";
569
+ }
570
+ break;
571
+
572
+ case "email" :
573
+ $socialObj = new sfsi_plus_SocialHelper(); /* global object to access 3rd party icon's actions */
574
+ $hoverdiv = '';
575
+ $sfsi_plus_section2_options['sfsi_plus_email_url'];
576
+ if(sanitize_text_field(get_option('sfsi_plus_feed_id',false)) == ""){
577
+ $url = "https://specificfeeds.com/follow";
578
+ }else{
579
+ $url = (isset($sfsi_plus_section2_options['sfsi_plus_email_url'])) ? $sfsi_plus_section2_options['sfsi_plus_email_url'] : 'javascript:void(0);';
580
+ }
581
+ $toolClass = "email_tool_bdr";
582
+ $arsfsiplus_row_class = "bot_eamil_arow";
583
+
584
+ /* fecth no of counts if active in admin section */
585
+ if($sfsi_plus_section4_options['sfsi_plus_email_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
586
+ {
587
+ if($sfsi_plus_section4_options['sfsi_plus_email_countsFrom']=="manual")
588
+ {
589
+ $counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_email_manualCounts']);
590
+ }
591
+ else
592
+ {
593
+ $counts= $socialObj->SFSI_getFeedSubscriber(sanitize_text_field(get_option('sfsi_plus_feed_id',false)));
594
+ }
595
+ }
596
+
597
+ if(!empty($sfsi_plus_section5_options['sfsi_plus_email_MouseOverText']))
598
+ {
599
+ $alt_text = $sfsi_plus_section5_options['sfsi_plus_email_MouseOverText'];
600
+ }
601
+ else
602
+ {
603
+ $alt_text = 'EMAIL';
604
+ }
605
+
606
+ //Custom Skin Support {Monad}
607
+ if($active_theme == 'custom_support')
608
+ {
609
+ if(get_option("plus_email_skin"))
610
+ {
611
+ $icon = get_option("plus_email_skin");
612
+ }
613
+ else
614
+ {
615
+ $active_theme = 'default';
616
+ $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
617
+ //$icon=($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi") ? $icons_baseUrl.$active_theme."_sf.png" : $icons_baseUrl.$active_theme."_email.png";
618
+ if($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi")
619
+ {
620
+ $icon = $icons_baseUrl.$active_theme."_sf.png";
621
+ }
622
+ elseif($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="email")
623
+ {
624
+ $icon = $icons_baseUrl.$active_theme."_email.png";
625
+ }
626
+ else
627
+ {
628
+ $icon = $icons_baseUrl.$active_theme."_subscribe.png";
629
+ }
630
+ }
631
+ }
632
+ else
633
+ {
634
+ //$icon=($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi") ? $icons_baseUrl.$active_theme."_sf.png" : $icons_baseUrl.$active_theme."_email.png";
635
+ if($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi")
636
+ {
637
+ $icon = $icons_baseUrl.$active_theme."_sf.png";
638
+ }
639
+ elseif($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="email")
640
+ {
641
+ $icon = $icons_baseUrl.$active_theme."_email.png";
642
+ }
643
+ else
644
+ {
645
+ $icon = $icons_baseUrl.$active_theme."_subscribe.png";
646
+ }
647
+ }
648
+ break;
649
+
650
+ case "facebook" :
651
+ $socialObj = new sfsi_plus_SocialHelper();
652
+ $width = 62;
653
+ $totwith = $width+28+$icons_space;
654
+ $twt_margin = $totwith /2;
655
+ $toolClass = "sfsi_plus_fb_tool_bdr";
656
+ $arsfsiplus_row_class = "bot_fb_arow";
657
+
658
+ /* check for the over section */
659
+ if(!empty($sfsi_plus_section5_options['sfsi_plus_facebook_MouseOverText']))
660
+ {
661
+ $alt_text = $sfsi_plus_section5_options['sfsi_plus_facebook_MouseOverText'];
662
+ }
663
+ else
664
+ {
665
+ $alt_text = "FACEBOOK";
666
+ }
667
+
668
+ $facebook_icons_lang = $sfsi_plus_section5_options['sfsi_plus_facebook_icons_language'];
669
+ // return $facebook_icons_lang;die();wp_die();
670
+ $visit_icon = SFSI_PLUS_DOCROOT.'/images/visit_icons/Visit_us_fb/icon_'.$facebook_icons_lang.'.png';
671
+ if(file_exists($visit_icon))
672
+ {
673
+ $visit_icon = $visit_iconsUrl."Visit_us_fb/icon_".$facebook_icons_lang.".png";
674
+ }
675
+ else
676
+ {
677
+ $visit_icon = $visit_iconsUrl."fb.png";
678
+ }
679
+
680
+ //$visit_iconDefault = $visit_iconsUrl."facebook.png";
681
+
682
+
683
+ $url = ($sfsi_plus_section2_options['sfsi_plus_facebookPage_url']) ? $sfsi_plus_section2_options['sfsi_plus_facebookPage_url']:'javascript:void(0);';
684
+
685
+ if($sfsi_plus_section2_options['sfsi_plus_facebookLike_option']=="yes" || $sfsi_plus_section2_options['sfsi_plus_facebookShare_option']=="yes" )
686
+ {
687
+ $url=($sfsi_plus_section2_options['sfsi_plus_facebookPage_url']) ? $sfsi_plus_section2_options['sfsi_plus_facebookPage_url']:'javascript:void(0);';
688
+ $hoverSHow=1;
689
+ $hoverdiv='';
690
+ if($sfsi_plus_section2_options['sfsi_plus_facebookPage_option']=="yes")
691
+ {
692
+ $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_plus_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
693
+ }
694
+ if($sfsi_plus_section2_options['sfsi_plus_facebookLike_option']=="yes")
695
+ {
696
+ $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_plus_FBlike($current_url)."</div>";
697
+ }
698
+ if($sfsi_plus_section2_options['sfsi_plus_facebookShare_option']=="yes")
699
+ {
700
+ $hoverdiv.="<div class='icon3'>".$socialObj->sfsiFB_Share($current_url)."</div>";
701
+ }
702
+
703
+ }
704
+
705
+ /* fecth no of counts if active in admin section */
706
+ if(
707
+ $fromPost == 'yes' && !empty($post) &&
708
+ $sfsi_plus_section4_options['sfsi_plus_facebook_countsDisplay']=="yes" &&
709
+ $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes"
710
+ )
711
+ {
712
+ $fb_data=$socialObj->sfsi_get_fb($current_url);
713
+ $counts=$socialObj->format_num($fb_data['total_count']);
714
+ if(empty($counts))
715
+ {
716
+ $counts=(string) "0";
717
+ }
718
+ }
719
+ else
720
+ {
721
+ if(
722
+ $sfsi_plus_section4_options['sfsi_plus_facebook_countsDisplay']=="yes" &&
723
+ $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes"
724
+ )
725
+ {
726
+ if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="manual")
727
+ {
728
+ $counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_facebook_manualCounts']);
729
+ }
730
+ else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="likes")
731
+ {
732
+ $fb_data=$socialObj->sfsi_get_fb($current_url);
733
+ $counts=$socialObj->format_num($fb_data);
734
+ if(empty($counts))
735
+ {
736
+ $counts=(string) "0";
737
+ }
738
+ }
739
+ else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="followers")
740
+ {
741
+ $fb_data=$socialObj->sfsi_get_fb($current_url);
742
+ $counts=$socialObj->format_num($fb_data['share_count']);
743
+
744
+ }
745
+ else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="mypage")
746
+ {
747
+ $current_url = $sfsi_plus_section4_options['sfsi_plus_facebook_mypageCounts'];
748
+ $fb_data=$socialObj->sfsi_get_fb_pagelike($current_url);
749
+ $counts=$socialObj->format_num($fb_data);
750
+ }
751
+ }
752
+ }
753
+
754
+ //Custom Skin Support {Monad}
755
+ if($active_theme == 'custom_support')
756
+ {
757
+ if(get_option("plus_facebook_skin"))
758
+ {
759
+ $icon = get_option("plus_facebook_skin");
760
+ }
761
+ else
762
+ {
763
+ $active_theme = 'default';
764
+ $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
765
+ $icon=$icons_baseUrl.$active_theme."_fb.png";
766
+ }
767
+ }
768
+ else
769
+ {
770
+ $icon=$icons_baseUrl.$active_theme."_fb.png";
771
+ }
772
+ break;
773
+
774
+ case "twitter" :
775
+ $toolClass = "sfsi_plus_twt_tool_bdr";
776
+ $arsfsiplus_row_class = "bot_twt_arow";
777
+ $socialObj = new sfsi_plus_SocialHelper();
778
+ $url = ($sfsi_plus_section2_options['sfsi_plus_twitter_pageURL'])?$sfsi_plus_section2_options['sfsi_plus_twitter_pageURL'] : 'javascript:void(0);';
779
+ $twitter_user = $sfsi_plus_section2_options['sfsi_plus_twitter_followUserName'];
780
+ $twitter_text = __($sfsi_plus_section2_options['sfsi_plus_twitter_aboutPageText'],SFSI_PLUS_DOMAIN);
781
+ $width = 59;
782
+ $totwith = $width+28+$icons_space;
783
+ $twt_margin = $totwith /2;
784
+ /* check for icons to display */
785
+ $hoverdiv='';
786
+
787
+ $twitter_icons_lang = $sfsi_plus_section5_options['sfsi_plus_twitter_icons_language'];
788
+ $visit_icon = SFSI_PLUS_DOCROOT.'/images/visit_icons/Visit_us_twitter/icon_'.$twitter_icons_lang.'.png';
789
+ if(file_exists($visit_icon))
790
+ {
791
+ $visit_icon = $visit_iconsUrl."Visit_us_twitter/icon_".$twitter_icons_lang.".png";
792
+ }
793
+ else
794
+ {
795
+ $visit_icon = $visit_iconsUrl."twitter.png";
796
+ }
797
+ //$visit_icon = $visit_iconsUrl."twitter.png";
798
+
799
+ if($icons_language == 'nn_NO')
800
+ {
801
+ $icons_language = 'no';
802
+ }
803
+
804
+ if($sfsi_plus_section2_options['sfsi_plus_twitter_followme']=="yes" || $sfsi_plus_section2_options['sfsi_plus_twitter_aboutPage']=="yes")
805
+ {
806
+ $hoverSHow=1;
807
+ //Visit twitter page {Monad}
808
+ if($sfsi_plus_section2_options['sfsi_plus_twitter_page']=="yes")
809
+ {
810
+ $hoverdiv.="<style>#sfsi_plus_floater .sfsi_plus_twt_tool_bdr .sfsi_plus_inside{margin-top: -18px;}</style><div class='cstmicon1'><a href='".$url."' ".sfsi_plus_checkNewWindow($url)."><img alt='Visit Us' title='Visit Us' src='".$visit_icon."' /></a></div>";
811
+ }
812
+ if($sfsi_plus_section2_options['sfsi_plus_twitter_followme']=="yes" && !empty($twitter_user))
813
+ {
814
+ $hoverdiv.="<div class='icon1'>".$socialObj->sfsi_twitterFollow($twitter_user,$icons_language)."</div>";
815
+ }
816
+ if($sfsi_plus_section2_options['sfsi_plus_twitter_aboutPage']=="yes")
817
+ {
818
+ $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_twitterShare($current_url,$twitter_text,$icons_language)."</div>";
819
+ }
820
+
821
+ }
822
+
823
+ /* fecth no of counts if active in admin section */
824
+ if($sfsi_plus_section4_options['sfsi_plus_twitter_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
825
+ {
826
+ if($sfsi_plus_section4_options['sfsi_plus_twitter_countsFrom']=="manual")
827
+ {
828
+ $counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_twitter_manualCounts']);
829
+ }
830
+ else if($sfsi_plus_section4_options['sfsi_plus_twitter_countsFrom']=="source")
831
+ {
832
+ $tw_settings=array('sfsiplus_tw_consumer_key'=>$sfsi_plus_section4_options['sfsiplus_tw_consumer_key'],
833
+ 'sfsiplus_tw_consumer_secret'=> $sfsi_plus_section4_options['sfsiplus_tw_consumer_secret'],
834
+ 'sfsiplus_tw_oauth_access_token'=> $sfsi_plus_section4_options['sfsiplus_tw_oauth_access_token'],
835
+ 'sfsiplus_tw_oauth_access_token_secret'=> $sfsi_plus_section4_options['sfsiplus_tw_oauth_access_token_secret']);
836
+
837
+ $followers=$socialObj->sfsi_get_tweets($twitter_user,$tw_settings);
838
+ $counts=$socialObj->format_num($followers);
839
+ if(empty($counts))
840
+ {
841
+ $counts=(string) "0";
842
+ }
843
+ }
844
+ }
845
+
846
+ //Giving alternative text to image
847
+ if(!empty($sfsi_plus_section5_options['sfsi_plus_twitter_MouseOverText']))
848
+ {
849
+ $alt_text = $sfsi_plus_section5_options['sfsi_plus_twitter_MouseOverText'];
850
+ }
851
+ else
852
+ {
853
+ $alt_text = "TWITTER";
854
+ }
855
+
856
+ //Custom Skin Support {Monad}
857
+ if($active_theme == 'custom_support')
858
+ {
859
+ if(get_option("plus_twitter_skin"))
860
+ {
861
+ $icon = get_option("plus_twitter_skin");
862
+ }
863
+ else
864
+ {
865
+ $active_theme = 'default';
866
+ $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
867
+ $icon=$icons_baseUrl.$active_theme."_twitter.png";
868
+ }
869
+ }
870
+ else
871
+ {
872
+ $icon=$icons_baseUrl.$active_theme."_twitter.png";
873
+ }
874
+ break;
875
+
876
+ case "youtube" :
877
+ $socialObj = new sfsi_plus_SocialHelper();
878
+ $toolClass = "utube_tool_bdr";
879
+ $arsfsiplus_row_class = "bot_utube_arow";
880
+ $socialObj = new sfsi_plus_SocialHelper();
881
+ $width = 96;
882
+ $totwith = $width+28+$icons_space;
883
+ $twt_margin = $totwith /2;
884
+ $youtube_user = (isset($sfsi_plus_section4_options['sfsi_plus_youtube_user']) && !empty($sfsi_plus_section4_options['sfsi_plus_youtube_user'])) ? $sfsi_plus_section4_options['sfsi_plus_youtube_user'] : 'SpecificFeeds';
885
+ $visit_icon = $visit_iconsUrl."youtube.png";
886
+
887
+ $url = ($sfsi_plus_section2_options['sfsi_plus_youtube_pageUrl'])? $sfsi_plus_section2_options['sfsi_plus_youtube_pageUrl'] : 'javascript:void(0);';
888
+
889
+ //Giving alternative text to image
890
+ if(!empty($sfsi_plus_section5_options['sfsi_plus_youtube_MouseOverText']))
891
+ {
892
+ $alt_text = $sfsi_plus_section5_options['sfsi_plus_youtube_MouseOverText'];
893
+ }
894
+ else
895
+ {
896
+ $alt_text = "YOUTUBE";
897
+ }
898
+
899
+ /* check for icons to display */
900
+ $hoverdiv="";
901
+ if($sfsi_plus_section2_options['sfsi_plus_youtube_follow']=="yes" )
902
+ {
903
+ $hoverSHow=1;
904
+ if($sfsi_plus_section2_options['sfsi_plus_youtube_page']=="yes")
905
+ {
906
+ $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_plus_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
907
+ }
908
+ if($sfsi_plus_section2_options['sfsi_plus_youtube_follow']=="yes")
909
+ {
910
+ $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_YouTubeSub($youtube_user)."</div>";
911
+ }
912
+ }
913
+
914
+ /* fecth no of counts if active in admin section */
915
+ if($sfsi_plus_section4_options['sfsi_plus_youtube_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
916
+ {
917
+ if($sfsi_plus_section4_options['sfsi_plus_youtube_countsFrom']=="manual")
918
+ {
919
+ $counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_youtube_manualCounts']);
920
+ }
921
+ else if($sfsi_plus_section4_options['sfsi_plus_youtube_countsFrom']=="subscriber")
922
+ {
923
+ $followers=$socialObj->sfsi_get_youtube($youtube_user);
924
+ $counts=$socialObj->format_num($followers);
925
+ if(empty($counts))
926
+ {
927
+ $counts=(string) "0";
928
+ }
929
+ }
930
+ }
931
+
932
+ //Custom Skin Support {Monad}
933
+ if($active_theme == 'custom_support')
934
+ {
935
+ if(get_option("plus_youtube_skin"))
936
+ {
937
+ $icon = get_option("plus_youtube_skin");
938
+ }
939
+ else
940
+ {
941
+ $active_theme = 'default';
942
+ $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
943
+ $icon = $icons_baseUrl.$active_theme."_youtube.png";
944
+ }
945
+ }
946
+ else
947
+ {
948
+ $icon = $icons_baseUrl.$active_theme."_youtube.png";
949
+ }
950
+ break;
951
+
952
+ case "pinterest" :
953
+ $width = 73;
954
+ $totwith = $width+28+$icons_space;
955
+ $twt_margin = $totwith /2;
956
+ $socialObj = new sfsi_plus_SocialHelper();
957
+ $toolClass = "sfsi_plus_printst_tool_bdr";
958
+ $arsfsiplus_row_class = "bot_pintst_arow";
959
+
960
+ $pinterest_user = (isset($sfsi_plus_section4_options['sfsi_plus_pinterest_user']))
961
+ ? $sfsi_plus_section4_options['sfsi_plus_pinterest_user'] : '';
962
+
963
+ $pinterest_board = (isset($sfsi_plus_section4_options['sfsi_plus_pinterest_board']))
964
+ ? $sfsi_plus_section4_options['sfsi_plus_pinterest_board'] : '';
965
+
966
+ $visit_icon = $visit_iconsUrl."pinterest.png";
967
+
968
+ $url = (isset($sfsi_plus_section2_options['sfsi_plus_pinterest_pageUrl'])) ? $sfsi_plus_section2_options['sfsi_plus_pinterest_pageUrl'] : 'javascript:void(0);';
969
+
970
+ //Giving alternative text to image
971
+ if(!empty($sfsi_plus_section5_options['sfsi_plus_pinterest_MouseOverText']))
972
+ {
973
+ $alt_text = $sfsi_plus_section5_options['sfsi_plus_pinterest_MouseOverText'];
974
+ }
975
+ else
976
+ {
977
+ $alt_text = "PINTEREST";
978
+ }
979
+
980
+ /* check for icons to display */
981
+ $hoverdiv="";
982
+ if($sfsi_plus_section2_options['sfsi_plus_pinterest_pingBlog']=="yes" )
983
+ {
984
+ $hoverSHow=1;
985
+ if($sfsi_plus_section2_options['sfsi_plus_pinterest_page']=="yes")
986
+ {
987
+ $hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_plus_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
988
+ }
989
+ if($sfsi_plus_section2_options['sfsi_plus_pinterest_pingBlog']=="yes")
990
+ {
991
+ if($sfsi_plus_section2_options['sfsi_plus_pinterest_pingBlog']=="yes")
992
+ {
993
+ $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_PinIt($current_url)."</div>";
994
+ }
995
+ }
996
+ }
997
+
998
+ /* fecth no of counts if active in admin section */
999
+ if($sfsi_plus_section4_options['sfsi_plus_pinterest_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
1000
+ {
1001
+ if($sfsi_plus_section4_options['sfsi_plus_pinterest_countsFrom']=="manual")
1002
+ {
1003
+ $counts = $socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_pinterest_manualCounts']);
1004
+ }
1005
+ else if($sfsi_plus_section4_options['sfsi_plus_pinterest_countsFrom']=="pins")
1006
+ {
1007
+ $pins=$socialObj->sfsi_get_pinterest($current_url);
1008
+ $counts=$pins;
1009
+ if(empty($counts))
1010
+ {
1011
+ $counts=(string) "0";
1012
+ }
1013
+ }
1014
+ }
1015
+
1016
+ //Custom Skin Support {Monad}
1017
+ if($active_theme == 'custom_support')
1018
+ {
1019
+ if(get_option("plus_pintrest_skin"))
1020
+ {
1021
+ $icon = get_option("plus_pintrest_skin");
1022
+ }
1023
+ else
1024
+ {
1025
+ $active_theme = 'default';
1026
+ $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
1027
+ $icon=$icons_baseUrl.$active_theme."_pinterest.png";
1028
+ }
1029
+ }
1030
+ else
1031
+ {
1032
+ $icon=$icons_baseUrl.$active_theme."_pinterest.png";
1033
+ }
1034
+ break;
1035
+
1036
+ case "instagram" :
1037
+ $toolClass = "instagram_tool_bdr";
1038
+ $arsfsiplus_row_class = "bot_pintst_arow";
1039
+ $socialObj = new sfsi_plus_SocialHelper();
1040
+ $url = (isset($sfsi_plus_section2_options['sfsi_plus_instagram_pageUrl'])) ? $sfsi_plus_section2_options['sfsi_plus_instagram_pageUrl'] : 'javascript:void(0);';
1041
+ $instagram_user_name = $sfsi_plus_section4_options['sfsi_plus_instagram_User'];
1042
+
1043
+ //Giving alternative text to image
1044
+ if(!empty($sfsi_plus_section5_options['sfsi_plus_instagram_MouseOverText']))
1045
+ {
1046
+ $alt_text = $sfsi_plus_section5_options['sfsi_plus_instagram_MouseOverText'];
1047
+ }
1048
+ else
1049
+ {
1050
+ $alt_text = "INSTAGRAM";
1051
+ }
1052
+
1053
+ $hoverdiv="";
1054
+ /* fecth no of counts if active in admin section */
1055
+ if($sfsi_plus_section4_options['sfsi_plus_instagram_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
1056
+ {
1057
+ if($sfsi_plus_section4_options['sfsi_plus_instagram_countsFrom']=="manual")
1058
+ {
1059
+ $counts = $socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_instagram_manualCounts']);
1060
+ }
1061
+ else if($sfsi_plus_section4_options['sfsi_plus_instagram_countsFrom']=="followers")
1062
+ {
1063
+ $counts=$socialObj->sfsi_get_instagramFollowers($instagram_user_name);
1064
+ if(empty($counts))
1065
+ {
1066
+ $counts=(string) "0";
1067
+ }
1068
+ }
1069
+ }
1070
+
1071
+ //Custom Skin Support {Monad}
1072
+ if($active_theme == 'custom_support')
1073
+ {
1074
+ if(get_option("plus_instagram_skin"))
1075
+ {
1076
+ $icon = get_option("plus_instagram_skin");
1077
+ }
1078
+ else
1079
+ {
1080
+ $active_theme = 'default';
1081
+ $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
1082
+ $icon=$icons_baseUrl.$active_theme."_instagram.png";
1083
+ }
1084
+ }
1085
+ else
1086
+ {
1087
+ $icon=$icons_baseUrl.$active_theme."_instagram.png";
1088
+ }
1089
+ break;
1090
+
1091
+ case "houzz" :
1092
+ $socialObj = new sfsi_plus_SocialHelper(); /* global object to access 3rd party icon's actions */
1093
+ $url = ($sfsi_plus_section2_options['sfsi_plus_houzz_pageUrl'])? $sfsi_plus_section2_options['sfsi_plus_houzz_pageUrl'] : 'javascript:void(0);';
1094
+ $toolClass = "rss_tool_bdr";
1095
+ $hoverdiv = '';
1096
+ $arsfsiplus_row_class = "bot_rss_arow";
1097
+
1098
+ /* fecth no of counts if active in admin section */
1099
+ if(
1100
+ isset($sfsi_plus_section4_options['sfsi_plus_houzz_countsDisplay']) &&
1101
+ $sfsi_plus_section4_options['sfsi_plus_houzz_countsDisplay'] == "yes" &&
1102
+ $sfsi_plus_section4_options['sfsi_plus_display_counts'] == "yes"
1103
+ )
1104
+ {
1105
+ $counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_houzz_manualCounts']);
1106
+ }
1107
+
1108
+ if(
1109
+ isset($sfsi_plus_section5_options['sfsi_plus_houzz_MouseOverText']) &&
1110
+ !empty($sfsi_plus_section5_options['sfsi_plus_houzz_MouseOverText'])
1111
+ )
1112
+ {
1113
+ $alt_text = $sfsi_plus_section5_options['sfsi_plus_houzz_MouseOverText'];
1114
+ }
1115
+ else
1116
+ {
1117
+ $alt_text = 'Houzz';
1118
+ }
1119
+
1120
+ //Custom Skin Support {Monad}
1121
+ if($active_theme == 'custom_support')
1122
+ {
1123
+ if(get_option("plus_houzz_skin"))
1124
+ {
1125
+ $icon = get_option("plus_houzz_skin");
1126
+ }
1127
+ else
1128
+ {
1129
+ $active_theme = 'default';
1130
+ $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
1131
+ $icon = $icons_baseUrl.$active_theme."_houzz.png";
1132
+ }
1133
+ }
1134
+ else
1135
+ {
1136
+ $icon = $icons_baseUrl.$active_theme."_houzz.png";
1137
+ }
1138
+ break;
1139
+
1140
+ case "linkedin" :
1141
+ $width = 66;
1142
+ $socialObj = new sfsi_plus_SocialHelper();
1143
+ $toolClass = "sfsi_plus_linkedin_tool_bdr";
1144
+ $arsfsiplus_row_class = "bot_linkedin_arow";
1145
+ $linkedIn_compayId = $sfsi_plus_section2_options['sfsi_plus_linkedin_followCompany'];
1146
+ $linkedIn_compay = $sfsi_plus_section2_options['sfsi_plus_linkedin_followCompany'];
1147
+ $linkedIn_ProductId = $sfsi_plus_section2_options['sfsi_plus_linkedin_recommendProductId'];
1148
+ $visit_icon = $visit_iconsUrl."linkedIn.png";
1149
+
1150
+ /*check for icons to display */
1151
+ $url=($sfsi_plus_section2_options['sfsi_plus_linkedin_pageURL'])? $sfsi_plus_section2_options['sfsi_plus_linkedin_pageURL'] : 'javascript:void(0);';
1152
+
1153
+ if($sfsi_plus_section2_options['sfsi_plus_linkedin_follow']=="yes" || $sfsi_plus_section2_options['sfsi_plus_linkedin_SharePage']=="yes" || $sfsi_plus_section2_options['sfsi_plus_linkedin_recommendBusines']=="yes" )
1154
+ {
1155
+ $hoverSHow=1;
1156
+ $hoverdiv='';
1157
+ if($sfsi_plus_section2_options['sfsi_plus_linkedin_page']=="yes")
1158
+ {
1159
+ $hoverdiv.="<div class='icon4'><a href='".$url."' ".sfsi_plus_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
1160
+ }
1161
+ if($sfsi_plus_section2_options['sfsi_plus_linkedin_follow']=="yes")
1162
+ {
1163
+ $hoverdiv.="<div class='icon1'>".$socialObj->sfsi_LinkedInFollow($linkedIn_compayId)."</div>";
1164
+ }
1165
+ if($sfsi_plus_section2_options['sfsi_plus_linkedin_SharePage']=="yes")
1166
+ {
1167
+ $hoverdiv.="<div class='icon2'>".$socialObj->sfsi_LinkedInShare($current_url)."</div>";
1168
+ }
1169
+ if($sfsi_plus_section2_options['sfsi_plus_linkedin_recommendBusines']=="yes")
1170
+ {
1171
+ $hoverdiv.="<div class='icon3'>".$socialObj->sfsi_LinkedInRecommend($linkedIn_compay,$linkedIn_ProductId)."</div>";
1172
+ $width=99;
1173
+ }
1174
+ }
1175
+
1176
+
1177
+ if($sfsi_plus_section4_options['sfsi_plus_linkedIn_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
1178
+ {
1179
+ if($sfsi_plus_section4_options['sfsi_plus_linkedIn_countsFrom']=="manual")
1180
+ {
1181
+ $counts = $socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_linkedIn_manualCounts']);
1182
+ }
1183
+ else if($sfsi_plus_section4_options['sfsi_plus_linkedIn_countsFrom']=="follower")
1184
+ {
1185
+ $linkedIn_compay=$sfsi_plus_section4_options['sfsi_plus_ln_company'];
1186
+ $ln_settings = array('sfsi_plus_ln_api_key'=>$sfsi_plus_section4_options['sfsi_plus_ln_api_key'],
1187
+ 'sfsi_plus_ln_secret_key'=>$sfsi_plus_section4_options['sfsi_plus_ln_secret_key'],
1188
+ 'sfsi_plus_ln_oAuth_user_token'=>$sfsi_plus_section4_options['sfsi_plus_ln_oAuth_user_token']);
1189
+
1190
+ $followers=$socialObj->sfsi_getlinkedin_follower($linkedIn_compay,$ln_settings);
1191
+ (int) $followers;
1192
+ $counts=$socialObj->format_num($followers);
1193
+ if(empty($counts))
1194
+ {
1195
+ $counts = (string) "0";
1196
+ }
1197
+ }
1198
+ }
1199
+
1200
+ $totwith = $width+28+$icons_space;
1201
+ $twt_margin = $totwith /2;
1202
+
1203
+ //Giving alternative text to image
1204
+ if(!empty($sfsi_plus_section5_options['sfsi_plus_linkedIn_MouseOverText']))
1205
+ {
1206
+ $alt_text = $sfsi_plus_section5_options['sfsi_plus_linkedIn_MouseOverText'];
1207
+ }
1208
+ else
1209
+ {
1210
+ $alt_text = "LINKEDIN";
1211
+ }
1212
+
1213
+ //Custom Skin Support {Monad}
1214
+ if($active_theme == 'custom_support')
1215
+ {
1216
+ if(get_option("plus_linkedin_skin"))
1217
+ {
1218
+ $icon = get_option("plus_linkedin_skin");
1219
+ }
1220
+ else
1221
+ {
1222
+ $active_theme = 'default';
1223
+ $icons_baseUrl = SFSI_PLUS_PLUGURL."images/icon