Version Description
- Update: Q4 missing images corrected.
Download this release
Release Info
Developer | socialdude |
Plugin | Social Share Icons & Social Share Buttons |
Version | 3.2.5 |
Comparing to | |
See all releases |
Code changes from version 3.2.4 to 3.2.5
- analyst/sdk_resolver.php +79 -79
- analyst/src/Account/Account.php +604 -604
- analyst/src/Mutator.php +103 -103
- analyst/version.php +15 -15
- css/sfsi-style.css +8 -2
- dist/blocks.build.js +1 -1
- dist/blocks.editor.build.css +1 -1
- freemius/templates/add-ons.php +196 -196
- freemius/templates/forms/deactivation/retry-skip.php +23 -23
- images/banner/animated_email.gif +0 -0
- images/banner/default1_pinterest.png +0 -0
- images/banner/default2_pinterest.png +0 -0
- images/banner/default3_pinterest.png +0 -0
- images/banner/theme1_pinterest.png +0 -0
- images/banner/theme2_pinterest.png +0 -0
- images/banner/theme3_pinterest.png +0 -0
- images/website_theme/{Others.png → others.png} +0 -0
- languages/ultimate-social-media-plus-fa_IR.po +1823 -1823
- libs/controllers/sfsiocns_OnPosts.php +555 -555
- libs/sfsi_custom_social_sharing_data.php +76 -76
- libs/sfsi_install_uninstall.php +1172 -1158
- libs/sfsi_plus_subscribe_widget.php +287 -287
- libs/sfsi_widget.php +1815 -1814
- readme.txt +920 -915
- ultimate_social_media_icons.php +1372 -1372
- views/sfsi_option_view1.php +689 -689
- views/sfsi_option_view2.php +868 -868
- views/sfsi_option_view3.php +422 -422
- views/sfsi_option_view4.php +430 -898
analyst/sdk_resolver.php
CHANGED
@@ -1,79 +1,79 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if (!function_exists('analyst_resolve_sdk')) {
|
4 |
-
|
5 |
-
/**
|
6 |
-
* Resolve supported sdk versions and load latest supported one
|
7 |
-
* also bootstrap sdk with autoloader
|
8 |
-
*
|
9 |
-
* @since 1.1.3
|
10 |
-
*
|
11 |
-
* @param null $thisPluginPath
|
12 |
-
* @return void
|
13 |
-
* @throws Exception
|
14 |
-
*/
|
15 |
-
function analyst_resolve_sdk($thisPluginPath = null) {
|
16 |
-
static $loaded = false;
|
17 |
-
|
18 |
-
// Exit if we already resolved SDK
|
19 |
-
if ($loaded) return;
|
20 |
-
|
21 |
-
$plugins = get_option('active_plugins');
|
22 |
-
|
23 |
-
if ($thisPluginPath) {
|
24 |
-
array_push($plugins, plugin_basename($thisPluginPath));
|
25 |
-
}
|
26 |
-
|
27 |
-
$pluginsFolder = WP_PLUGIN_DIR;
|
28 |
-
|
29 |
-
$possibleSDKs = array_map(function ($path) use ($pluginsFolder) {
|
30 |
-
$sdkFolder = sprintf('%s/%s/analyst/', $pluginsFolder, dirname($path));
|
31 |
-
|
32 |
-
$sdkFolder = str_replace('\\', '/', $sdkFolder);
|
33 |
-
|
34 |
-
$versionPath = $sdkFolder . 'version.php';
|
35 |
-
|
36 |
-
if (file_exists($versionPath)) {
|
37 |
-
return require $versionPath;
|
38 |
-
}
|
39 |
-
|
40 |
-
return false;
|
41 |
-
}, $plugins);
|
42 |
-
|
43 |
-
global $wp_version;
|
44 |
-
|
45 |
-
// Filter out plugins which has no SDK
|
46 |
-
$SDKs = array_filter($possibleSDKs, function ($s) {return is_array($s);});
|
47 |
-
|
48 |
-
// Filter SDKs which is supported by PHP and WP
|
49 |
-
$supported = array_values(array_filter($SDKs, function ($sdk) use($wp_version) {
|
50 |
-
$phpSupported = version_compare(PHP_VERSION, $sdk['php']) >= 0;
|
51 |
-
$wpSupported = version_compare($wp_version, $sdk['wp']) >= 0;
|
52 |
-
|
53 |
-
return $phpSupported && $wpSupported;
|
54 |
-
}));
|
55 |
-
|
56 |
-
// Sort SDK by version in descending order
|
57 |
-
uasort($supported, function ($x, $y) {
|
58 |
-
return version_compare($y['sdk'], $x['sdk']);
|
59 |
-
});
|
60 |
-
|
61 |
-
// Reset sorted values keys
|
62 |
-
$supported = array_values($supported);
|
63 |
-
|
64 |
-
if (!isset($supported[0])) {
|
65 |
-
throw new Exception('There is no SDK which is support current PHP version and WP version');
|
66 |
-
}
|
67 |
-
|
68 |
-
// Autoload files for supported SDK
|
69 |
-
$autoloaderPath = str_replace(
|
70 |
-
'\\',
|
71 |
-
'/',
|
72 |
-
sprintf('%s/autoload.php', $supported[0]['path'])
|
73 |
-
);
|
74 |
-
|
75 |
-
require_once $autoloaderPath;
|
76 |
-
|
77 |
-
$loaded = true;
|
78 |
-
}
|
79 |
-
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
if (!function_exists('analyst_resolve_sdk')) {
|
4 |
+
|
5 |
+
/**
|
6 |
+
* Resolve supported sdk versions and load latest supported one
|
7 |
+
* also bootstrap sdk with autoloader
|
8 |
+
*
|
9 |
+
* @since 1.1.3
|
10 |
+
*
|
11 |
+
* @param null $thisPluginPath
|
12 |
+
* @return void
|
13 |
+
* @throws Exception
|
14 |
+
*/
|
15 |
+
function analyst_resolve_sdk($thisPluginPath = null) {
|
16 |
+
static $loaded = false;
|
17 |
+
|
18 |
+
// Exit if we already resolved SDK
|
19 |
+
if ($loaded) return;
|
20 |
+
|
21 |
+
$plugins = get_option('active_plugins');
|
22 |
+
|
23 |
+
if ($thisPluginPath) {
|
24 |
+
array_push($plugins, plugin_basename($thisPluginPath));
|
25 |
+
}
|
26 |
+
|
27 |
+
$pluginsFolder = WP_PLUGIN_DIR;
|
28 |
+
|
29 |
+
$possibleSDKs = array_map(function ($path) use ($pluginsFolder) {
|
30 |
+
$sdkFolder = sprintf('%s/%s/analyst/', $pluginsFolder, dirname($path));
|
31 |
+
|
32 |
+
$sdkFolder = str_replace('\\', '/', $sdkFolder);
|
33 |
+
|
34 |
+
$versionPath = $sdkFolder . 'version.php';
|
35 |
+
|
36 |
+
if (file_exists($versionPath)) {
|
37 |
+
return require $versionPath;
|
38 |
+
}
|
39 |
+
|
40 |
+
return false;
|
41 |
+
}, $plugins);
|
42 |
+
|
43 |
+
global $wp_version;
|
44 |
+
|
45 |
+
// Filter out plugins which has no SDK
|
46 |
+
$SDKs = array_filter($possibleSDKs, function ($s) {return is_array($s);});
|
47 |
+
|
48 |
+
// Filter SDKs which is supported by PHP and WP
|
49 |
+
$supported = array_values(array_filter($SDKs, function ($sdk) use($wp_version) {
|
50 |
+
$phpSupported = version_compare(PHP_VERSION, $sdk['php']) >= 0;
|
51 |
+
$wpSupported = version_compare($wp_version, $sdk['wp']) >= 0;
|
52 |
+
|
53 |
+
return $phpSupported && $wpSupported;
|
54 |
+
}));
|
55 |
+
|
56 |
+
// Sort SDK by version in descending order
|
57 |
+
uasort($supported, function ($x, $y) {
|
58 |
+
return version_compare($y['sdk'], $x['sdk']);
|
59 |
+
});
|
60 |
+
|
61 |
+
// Reset sorted values keys
|
62 |
+
$supported = array_values($supported);
|
63 |
+
|
64 |
+
if (!isset($supported[0])) {
|
65 |
+
throw new Exception('There is no SDK which is support current PHP version and WP version');
|
66 |
+
}
|
67 |
+
|
68 |
+
// Autoload files for supported SDK
|
69 |
+
$autoloaderPath = str_replace(
|
70 |
+
'\\',
|
71 |
+
'/',
|
72 |
+
sprintf('%s/autoload.php', $supported[0]['path'])
|
73 |
+
);
|
74 |
+
|
75 |
+
require_once $autoloaderPath;
|
76 |
+
|
77 |
+
$loaded = true;
|
78 |
+
}
|
79 |
+
}
|
analyst/src/Account/Account.php
CHANGED
@@ -1,604 +1,604 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Account;
|
4 |
-
|
5 |
-
use Analyst\Analyst;
|
6 |
-
use Analyst\ApiRequestor;
|
7 |
-
use Analyst\Cache\DatabaseCache;
|
8 |
-
use Analyst\Collector;
|
9 |
-
use Analyst\Http\Requests\ActivateRequest;
|
10 |
-
use Analyst\Http\Requests\DeactivateRequest;
|
11 |
-
use Analyst\Http\Requests\InstallRequest;
|
12 |
-
use Analyst\Http\Requests\OptInRequest;
|
13 |
-
use Analyst\Http\Requests\OptOutRequest;
|
14 |
-
use Analyst\Http\Requests\UninstallRequest;
|
15 |
-
use Analyst\Notices\Notice;
|
16 |
-
use Analyst\Notices\NoticeFactory;
|
17 |
-
use Analyst\Contracts\TrackerContract;
|
18 |
-
use Analyst\Contracts\RequestorContract;
|
19 |
-
|
20 |
-
/**
|
21 |
-
* Class Account
|
22 |
-
*
|
23 |
-
* This is plugin's account object
|
24 |
-
*/
|
25 |
-
class Account implements TrackerContract
|
26 |
-
{
|
27 |
-
/**
|
28 |
-
* Account id
|
29 |
-
*
|
30 |
-
* @var string
|
31 |
-
*/
|
32 |
-
protected $id;
|
33 |
-
|
34 |
-
/**
|
35 |
-
* Basename of plugin
|
36 |
-
*
|
37 |
-
* @var string
|
38 |
-
*/
|
39 |
-
protected $path;
|
40 |
-
|
41 |
-
/**
|
42 |
-
* Whether plugin is active or not
|
43 |
-
*
|
44 |
-
* @var bool
|
45 |
-
*/
|
46 |
-
protected $isInstalled = false;
|
47 |
-
|
48 |
-
/**
|
49 |
-
* Is user sign in for data tracking
|
50 |
-
*
|
51 |
-
* @var bool
|
52 |
-
*/
|
53 |
-
protected $isOptedIn = false;
|
54 |
-
|
55 |
-
/**
|
56 |
-
* Is user accepted permissions grant
|
57 |
-
* for collection site data
|
58 |
-
*
|
59 |
-
* @var bool
|
60 |
-
*/
|
61 |
-
protected $isSigned = false;
|
62 |
-
|
63 |
-
/**
|
64 |
-
* Is user ever resolved install modal window?
|
65 |
-
*
|
66 |
-
* @var bool
|
67 |
-
*/
|
68 |
-
protected $isInstallResolved = false;
|
69 |
-
|
70 |
-
/**
|
71 |
-
* Public secret code
|
72 |
-
*
|
73 |
-
* @var string
|
74 |
-
*/
|
75 |
-
protected $clientSecret;
|
76 |
-
|
77 |
-
/**
|
78 |
-
* @var AccountData
|
79 |
-
*/
|
80 |
-
protected $data;
|
81 |
-
|
82 |
-
/**
|
83 |
-
* Base plugin path
|
84 |
-
*
|
85 |
-
* @var string
|
86 |
-
*/
|
87 |
-
protected $basePluginPath;
|
88 |
-
|
89 |
-
/**
|
90 |
-
* @var RequestorContract
|
91 |
-
*/
|
92 |
-
protected $requestor;
|
93 |
-
|
94 |
-
/**
|
95 |
-
* @var Collector
|
96 |
-
*/
|
97 |
-
protected $collector;
|
98 |
-
|
99 |
-
/**
|
100 |
-
* Account constructor.
|
101 |
-
* @param $id
|
102 |
-
* @param $secret
|
103 |
-
* @param $baseDir
|
104 |
-
*/
|
105 |
-
public function __construct($id, $secret, $baseDir)
|
106 |
-
{
|
107 |
-
$this->id = $id;
|
108 |
-
$this->clientSecret = $secret;
|
109 |
-
|
110 |
-
$this->path = $baseDir;
|
111 |
-
|
112 |
-
$this->basePluginPath = plugin_basename($baseDir);
|
113 |
-
}
|
114 |
-
|
115 |
-
/**
|
116 |
-
* @return string
|
117 |
-
*/
|
118 |
-
public function getPath()
|
119 |
-
{
|
120 |
-
return $this->path;
|
121 |
-
}
|
122 |
-
|
123 |
-
/**
|
124 |
-
* @param string $path
|
125 |
-
*/
|
126 |
-
public function setPath($path)
|
127 |
-
{
|
128 |
-
$this->data->setPath($path);
|
129 |
-
|
130 |
-
$this->path = $path;
|
131 |
-
}
|
132 |
-
|
133 |
-
/**
|
134 |
-
* @return bool
|
135 |
-
*/
|
136 |
-
public function isOptedIn()
|
137 |
-
{
|
138 |
-
return $this->isOptedIn;
|
139 |
-
}
|
140 |
-
|
141 |
-
/**
|
142 |
-
* @param bool $isOptedIn
|
143 |
-
*/
|
144 |
-
public function setIsOptedIn($isOptedIn)
|
145 |
-
{
|
146 |
-
$this->data->setIsOptedIn($isOptedIn);
|
147 |
-
|
148 |
-
$this->isOptedIn = $isOptedIn;
|
149 |
-
}
|
150 |
-
|
151 |
-
/**
|
152 |
-
* Whether plugin is active
|
153 |
-
*
|
154 |
-
* @return bool
|
155 |
-
*/
|
156 |
-
public function isActive()
|
157 |
-
{
|
158 |
-
return is_plugin_active($this->path);
|
159 |
-
}
|
160 |
-
|
161 |
-
/**
|
162 |
-
* @param string $id
|
163 |
-
*/
|
164 |
-
public function setId($id)
|
165 |
-
{
|
166 |
-
$this->id = $id;
|
167 |
-
}
|
168 |
-
|
169 |
-
/**
|
170 |
-
* @return string
|
171 |
-
*/
|
172 |
-
public function getId()
|
173 |
-
{
|
174 |
-
return $this->id;
|
175 |
-
}
|
176 |
-
|
177 |
-
/**
|
178 |
-
* @return bool
|
179 |
-
*/
|
180 |
-
public function isInstalled()
|
181 |
-
{
|
182 |
-
return $this->isInstalled;
|
183 |
-
}
|
184 |
-
|
185 |
-
/**
|
186 |
-
* @param bool $isInstalled
|
187 |
-
*/
|
188 |
-
public function setIsInstalled($isInstalled)
|
189 |
-
{
|
190 |
-
$this->data->setIsInstalled($isInstalled);
|
191 |
-
|
192 |
-
$this->isInstalled = $isInstalled;
|
193 |
-
}
|
194 |
-
|
195 |
-
/**
|
196 |
-
* Should register activation and deactivation
|
197 |
-
* event hooks
|
198 |
-
*
|
199 |
-
* @return void
|
200 |
-
*/
|
201 |
-
public function registerHooks()
|
202 |
-
{
|
203 |
-
register_activation_hook($this->basePluginPath, [&$this, 'onActivePluginListener']);
|
204 |
-
register_uninstall_hook($this->basePluginPath, ['Account\Account', 'onUninstallPluginListener']);
|
205 |
-
|
206 |
-
$this->addFilter('plugin_action_links', [&$this, 'onRenderActionLinksHook']);
|
207 |
-
|
208 |
-
$this->addAjax('analyst_opt_in', [&$this, 'onOptInListener']);
|
209 |
-
$this->addAjax('analyst_opt_out', [&$this, 'onOptOutListener']);
|
210 |
-
$this->addAjax('analyst_plugin_deactivate', [&$this, 'onDeactivatePluginListener']);
|
211 |
-
$this->addAjax('analyst_install', [&$this, 'onInstallListener']);
|
212 |
-
$this->addAjax('analyst_skip_install', [&$this, 'onSkipInstallListener']);
|
213 |
-
$this->addAjax('analyst_install_verified', [&$this, 'onInstallVerifiedListener']);
|
214 |
-
}
|
215 |
-
|
216 |
-
/**
|
217 |
-
* Will fire when admin activates plugin
|
218 |
-
*
|
219 |
-
* @return void
|
220 |
-
*/
|
221 |
-
public function onActivePluginListener()
|
222 |
-
{
|
223 |
-
if (!$this->isInstallResolved()) {
|
224 |
-
DatabaseCache::getInstance()->put('plugin_to_install', $this->id);
|
225 |
-
}
|
226 |
-
|
227 |
-
if (!$this->isAllowingLogging()) return;
|
228 |
-
|
229 |
-
ActivateRequest::make($this->collector, $this->id, $this->path)
|
230 |
-
->execute($this->requestor);
|
231 |
-
|
232 |
-
$this->setIsInstalled(true);
|
233 |
-
|
234 |
-
AccountDataFactory::syncData();
|
235 |
-
}
|
236 |
-
|
237 |
-
/**
|
238 |
-
* Will fire when admin deactivates plugin
|
239 |
-
*
|
240 |
-
* @return void
|
241 |
-
*/
|
242 |
-
public function onDeactivatePluginListener()
|
243 |
-
{
|
244 |
-
if (!$this->isAllowingLogging()) return;
|
245 |
-
|
246 |
-
$question = isset($_POST['question']) ? stripslashes($_POST['question']) : null;
|
247 |
-
$reason = isset($_POST['reason']) ? stripslashes($_POST['reason']) : null;
|
248 |
-
|
249 |
-
$response = DeactivateRequest::make($this->collector, $this->id, $this->path, $question, $reason)
|
250 |
-
->execute($this->requestor);
|
251 |
-
|
252 |
-
// Exit if request failed
|
253 |
-
if (!$response->isSuccess()) {
|
254 |
-
wp_send_json_error($response->body);
|
255 |
-
}
|
256 |
-
|
257 |
-
$this->setIsInstalled(false);
|
258 |
-
|
259 |
-
AccountDataFactory::syncData();
|
260 |
-
|
261 |
-
wp_send_json_success();
|
262 |
-
}
|
263 |
-
|
264 |
-
/**
|
265 |
-
* Will fire when user opted in
|
266 |
-
*
|
267 |
-
* @return void
|
268 |
-
*/
|
269 |
-
public function onOptInListener()
|
270 |
-
{
|
271 |
-
$response = OptInRequest::make($this->collector, $this->id, $this->path)->execute($this->requestor);
|
272 |
-
|
273 |
-
// Exit if request failed
|
274 |
-
if (!$response->isSuccess()) {
|
275 |
-
wp_send_json_error($response->body);
|
276 |
-
}
|
277 |
-
|
278 |
-
$this->setIsOptedIn(true);
|
279 |
-
|
280 |
-
AccountDataFactory::syncData();
|
281 |
-
|
282 |
-
wp_die();
|
283 |
-
}
|
284 |
-
|
285 |
-
/**
|
286 |
-
* Will fire when user opted out
|
287 |
-
*
|
288 |
-
* @return void
|
289 |
-
*/
|
290 |
-
public function onOptOutListener()
|
291 |
-
{
|
292 |
-
$response = OptOutRequest::make($this->collector, $this->id, $this->path)->execute($this->requestor);
|
293 |
-
|
294 |
-
// Exit if request failed
|
295 |
-
if (!$response->isSuccess()) {
|
296 |
-
wp_send_json_error($response->body);
|
297 |
-
}
|
298 |
-
|
299 |
-
$this->setIsOptedIn(false);
|
300 |
-
|
301 |
-
AccountDataFactory::syncData();
|
302 |
-
|
303 |
-
wp_send_json_success();
|
304 |
-
}
|
305 |
-
|
306 |
-
/**
|
307 |
-
* Will fire when user accept opt-in
|
308 |
-
* at first time
|
309 |
-
*
|
310 |
-
* @return void
|
311 |
-
*/
|
312 |
-
public function onInstallListener()
|
313 |
-
{
|
314 |
-
$cache = DatabaseCache::getInstance();
|
315 |
-
|
316 |
-
// Set flag to true which indicates that install is resolved
|
317 |
-
// also remove install plugin id from cache
|
318 |
-
$this->setIsInstallResolved(true);
|
319 |
-
$cache->delete('plugin_to_install');
|
320 |
-
|
321 |
-
$response = InstallRequest::make($this->collector, $this->id, $this->path)->execute($this->requestor);
|
322 |
-
|
323 |
-
// Exit if request failed
|
324 |
-
if (!$response->isSuccess()) {
|
325 |
-
wp_send_json_error($response->body);
|
326 |
-
}
|
327 |
-
|
328 |
-
$this->setIsSigned(true);
|
329 |
-
|
330 |
-
$this->setIsOptedIn(true);
|
331 |
-
|
332 |
-
$factory = NoticeFactory::instance();
|
333 |
-
|
334 |
-
$message = sprintf('Please confirm your email by clicking on the link we sent to %s. This makes sure you’re not a bot.', $this->collector->getGeneralEmailAddress());
|
335 |
-
|
336 |
-
$notificationId = uniqid();
|
337 |
-
|
338 |
-
$notice = Notice::make(
|
339 |
-
$notificationId,
|
340 |
-
$this->getId(),
|
341 |
-
$message,
|
342 |
-
$this->collector->getPluginName($this->path)
|
343 |
-
);
|
344 |
-
|
345 |
-
$factory->addNotice($notice);
|
346 |
-
|
347 |
-
AccountDataFactory::syncData();
|
348 |
-
|
349 |
-
// Set email confirmation notification id to cache
|
350 |
-
// se we can extract and remove it when user confirmed email
|
351 |
-
$cache->put(
|
352 |
-
sprintf('account_email_confirmation_%s', $this->getId()),
|
353 |
-
$notificationId
|
354 |
-
);
|
355 |
-
|
356 |
-
wp_send_json_success();
|
357 |
-
}
|
358 |
-
|
359 |
-
/**
|
360 |
-
* Will fire when user skipped installation
|
361 |
-
*
|
362 |
-
* @return void
|
363 |
-
*/
|
364 |
-
public function onSkipInstallListener()
|
365 |
-
{
|
366 |
-
// Set flag to true which indicates that install is resolved
|
367 |
-
// also remove install plugin id from cache
|
368 |
-
$this->setIsInstallResolved(true);
|
369 |
-
DatabaseCache::getInstance()->delete('plugin_to_install');
|
370 |
-
}
|
371 |
-
|
372 |
-
/**
|
373 |
-
* Will fire when user delete plugin through admin panel.
|
374 |
-
* This action will happen if admin at least once
|
375 |
-
* activated the plugin.
|
376 |
-
*
|
377 |
-
* @return void
|
378 |
-
* @throws \Exception
|
379 |
-
*/
|
380 |
-
public static function onUninstallPluginListener()
|
381 |
-
{
|
382 |
-
$factory = AccountDataFactory::instance();
|
383 |
-
|
384 |
-
$pluginFile = substr(current_filter(), strlen( 'uninstall_' ));
|
385 |
-
|
386 |
-
$account = $factory->getAccountDataByBasePath($pluginFile);
|
387 |
-
|
388 |
-
// If account somehow is not found, exit the execution
|
389 |
-
if (!$account) return;
|
390 |
-
|
391 |
-
$analyst = Analyst::getInstance();
|
392 |
-
|
393 |
-
$collector = new Collector($analyst);
|
394 |
-
|
395 |
-
$requestor = new ApiRequestor($account->getId(), $account->getSecret(), $analyst->getApiBase());
|
396 |
-
|
397 |
-
// Just send request to log uninstall event not caring about response
|
398 |
-
UninstallRequest::make($collector, $account->getId(), $account->getPath())->execute($requestor);
|
399 |
-
|
400 |
-
$factory->sync();
|
401 |
-
}
|
402 |
-
|
403 |
-
/**
|
404 |
-
* Fires when used verified his account
|
405 |
-
*/
|
406 |
-
public function onInstallVerifiedListener()
|
407 |
-
{
|
408 |
-
$factory = NoticeFactory::instance();
|
409 |
-
|
410 |
-
$notice = Notice::make(
|
411 |
-
uniqid(),
|
412 |
-
$this->getId(),
|
413 |
-
'Thank you for confirming your email.',
|
414 |
-
$this->collector->getPluginName($this->path)
|
415 |
-
);
|
416 |
-
|
417 |
-
$factory->addNotice($notice);
|
418 |
-
|
419 |
-
// Remove confirmation notification
|
420 |
-
$confirmationNotificationId = DatabaseCache::getInstance()->pop(sprintf('account_email_confirmation_%s', $this->getId()));
|
421 |
-
$factory->remove($confirmationNotificationId);
|
422 |
-
|
423 |
-
AccountDataFactory::syncData();
|
424 |
-
|
425 |
-
wp_send_json_success();
|
426 |
-
}
|
427 |
-
|
428 |
-
/**
|
429 |
-
* Will fire when wp renders plugin
|
430 |
-
* action buttons
|
431 |
-
*
|
432 |
-
* @param $defaultLinks
|
433 |
-
* @return array
|
434 |
-
*/
|
435 |
-
public function onRenderActionLinksHook($defaultLinks)
|
436 |
-
{
|
437 |
-
$customLinks = [];
|
438 |
-
|
439 |
-
$customLinks[] = $this->isOptedIn()
|
440 |
-
? '<a class="analyst-action-opt analyst-opt-out" analyst-plugin-id="' . $this->getId() . '" analyst-plugin-signed="' . (int) $this->isSigned() . '">Opt Out</a>'
|
441 |
-
: '<a class="analyst-action-opt analyst-opt-in" analyst-plugin-id="' . $this->getId() . '" analyst-plugin-signed="' . (int) $this->isSigned() . '">Opt In</a>';
|
442 |
-
|
443 |
-
// Append anchor to find specific deactivation link
|
444 |
-
if (isset($defaultLinks['deactivate'])) {
|
445 |
-
$defaultLinks['deactivate'] .= '<span analyst-plugin-id="' . $this->getId() . '" analyst-plugin-opted-in="' . (int) $this->isOptedIn() . '"></span>';
|
446 |
-
}
|
447 |
-
|
448 |
-
return array_merge($customLinks, $defaultLinks);
|
449 |
-
}
|
450 |
-
|
451 |
-
/**
|
452 |
-
* @return AccountData
|
453 |
-
*/
|
454 |
-
public function getData()
|
455 |
-
{
|
456 |
-
return $this->data;
|
457 |
-
}
|
458 |
-
|
459 |
-
/**
|
460 |
-
* @param AccountData $data
|
461 |
-
*/
|
462 |
-
public function setData(AccountData $data)
|
463 |
-
{
|
464 |
-
$this->data = $data;
|
465 |
-
|
466 |
-
$this->setIsOptedIn($data->isOptedIn());
|
467 |
-
$this->setIsInstalled($data->isInstalled());
|
468 |
-
$this->setIsSigned($data->isSigned());
|
469 |
-
$this->setIsInstallResolved($data->isInstallResolved());
|
470 |
-
}
|
471 |
-
|
472 |
-
/**
|
473 |
-
* Resolves valid action name
|
474 |
-
* based on client id
|
475 |
-
*
|
476 |
-
* @param $action
|
477 |
-
* @return string
|
478 |
-
*/
|
479 |
-
private function resolveActionName($action)
|
480 |
-
{
|
481 |
-
return sprintf('%s_%s', $action, $this->id);
|
482 |
-
}
|
483 |
-
|
484 |
-
/**
|
485 |
-
* Register action for current plugin
|
486 |
-
*
|
487 |
-
* @param $action
|
488 |
-
* @param $callback
|
489 |
-
*/
|
490 |
-
private function addFilter($action, $callback)
|
491 |
-
{
|
492 |
-
$validAction = sprintf('%s_%s', $action, $this->basePluginPath);
|
493 |
-
|
494 |
-
add_filter($validAction, $callback, 10);
|
495 |
-
}
|
496 |
-
|
497 |
-
/**
|
498 |
-
* Add ajax action for current plugin
|
499 |
-
*
|
500 |
-
* @param $action
|
501 |
-
* @param $callback
|
502 |
-
* @param bool $raw Format action ??
|
503 |
-
*/
|
504 |
-
private function addAjax($action, $callback, $raw = false)
|
505 |
-
{
|
506 |
-
$validAction = $raw ? $action : sprintf('%s%s', 'wp_ajax_', $this->resolveActionName($action));
|
507 |
-
|
508 |
-
add_action($validAction, $callback);
|
509 |
-
}
|
510 |
-
|
511 |
-
/**
|
512 |
-
* @return bool
|
513 |
-
*/
|
514 |
-
public function isSigned()
|
515 |
-
{
|
516 |
-
return $this->isSigned;
|
517 |
-
}
|
518 |
-
|
519 |
-
/**
|
520 |
-
* @param bool $isSigned
|
521 |
-
*/
|
522 |
-
public function setIsSigned($isSigned)
|
523 |
-
{
|
524 |
-
$this->data->setIsSigned($isSigned);
|
525 |
-
|
526 |
-
$this->isSigned = $isSigned;
|
527 |
-
}
|
528 |
-
|
529 |
-
/**
|
530 |
-
* @return RequestorContract
|
531 |
-
*/
|
532 |
-
public function getRequestor()
|
533 |
-
{
|
534 |
-
return $this->requestor;
|
535 |
-
}
|
536 |
-
|
537 |
-
/**
|
538 |
-
* @param RequestorContract $requestor
|
539 |
-
*/
|
540 |
-
public function setRequestor(RequestorContract $requestor)
|
541 |
-
{
|
542 |
-
$this->requestor = $requestor;
|
543 |
-
}
|
544 |
-
|
545 |
-
/**
|
546 |
-
* @return string
|
547 |
-
*/
|
548 |
-
public function getClientSecret()
|
549 |
-
{
|
550 |
-
return $this->clientSecret;
|
551 |
-
}
|
552 |
-
|
553 |
-
/**
|
554 |
-
* @return Collector
|
555 |
-
*/
|
556 |
-
public function getCollector()
|
557 |
-
{
|
558 |
-
return $this->collector;
|
559 |
-
}
|
560 |
-
|
561 |
-
/**
|
562 |
-
* @param Collector $collector
|
563 |
-
*/
|
564 |
-
public function setCollector(Collector $collector)
|
565 |
-
{
|
566 |
-
$this->collector = $collector;
|
567 |
-
}
|
568 |
-
|
569 |
-
/**
|
570 |
-
* Do we allowing logging
|
571 |
-
*
|
572 |
-
* @return bool
|
573 |
-
*/
|
574 |
-
public function isAllowingLogging()
|
575 |
-
{
|
576 |
-
return $this->isOptedIn;
|
577 |
-
}
|
578 |
-
|
579 |
-
/**
|
580 |
-
* @return string
|
581 |
-
*/
|
582 |
-
public function getBasePluginPath()
|
583 |
-
{
|
584 |
-
return $this->basePluginPath;
|
585 |
-
}
|
586 |
-
|
587 |
-
/**
|
588 |
-
* @return bool
|
589 |
-
*/
|
590 |
-
public function isInstallResolved()
|
591 |
-
{
|
592 |
-
return $this->isInstallResolved;
|
593 |
-
}
|
594 |
-
|
595 |
-
/**
|
596 |
-
* @param bool $isInstallResolved
|
597 |
-
*/
|
598 |
-
public function setIsInstallResolved($isInstallResolved)
|
599 |
-
{
|
600 |
-
$this->data->setIsInstallResolved($isInstallResolved);
|
601 |
-
|
602 |
-
$this->isInstallResolved = $isInstallResolved;
|
603 |
-
}
|
604 |
-
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace Account;
|
4 |
+
|
5 |
+
use Analyst\Analyst;
|
6 |
+
use Analyst\ApiRequestor;
|
7 |
+
use Analyst\Cache\DatabaseCache;
|
8 |
+
use Analyst\Collector;
|
9 |
+
use Analyst\Http\Requests\ActivateRequest;
|
10 |
+
use Analyst\Http\Requests\DeactivateRequest;
|
11 |
+
use Analyst\Http\Requests\InstallRequest;
|
12 |
+
use Analyst\Http\Requests\OptInRequest;
|
13 |
+
use Analyst\Http\Requests\OptOutRequest;
|
14 |
+
use Analyst\Http\Requests\UninstallRequest;
|
15 |
+
use Analyst\Notices\Notice;
|
16 |
+
use Analyst\Notices\NoticeFactory;
|
17 |
+
use Analyst\Contracts\TrackerContract;
|
18 |
+
use Analyst\Contracts\RequestorContract;
|
19 |
+
|
20 |
+
/**
|
21 |
+
* Class Account
|
22 |
+
*
|
23 |
+
* This is plugin's account object
|
24 |
+
*/
|
25 |
+
class Account implements TrackerContract
|
26 |
+
{
|
27 |
+
/**
|
28 |
+
* Account id
|
29 |
+
*
|
30 |
+
* @var string
|
31 |
+
*/
|
32 |
+
protected $id;
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Basename of plugin
|
36 |
+
*
|
37 |
+
* @var string
|
38 |
+
*/
|
39 |
+
protected $path;
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Whether plugin is active or not
|
43 |
+
*
|
44 |
+
* @var bool
|
45 |
+
*/
|
46 |
+
protected $isInstalled = false;
|
47 |
+
|
48 |
+
/**
|
49 |
+
* Is user sign in for data tracking
|
50 |
+
*
|
51 |
+
* @var bool
|
52 |
+
*/
|
53 |
+
protected $isOptedIn = false;
|
54 |
+
|
55 |
+
/**
|
56 |
+
* Is user accepted permissions grant
|
57 |
+
* for collection site data
|
58 |
+
*
|
59 |
+
* @var bool
|
60 |
+
*/
|
61 |
+
protected $isSigned = false;
|
62 |
+
|
63 |
+
/**
|
64 |
+
* Is user ever resolved install modal window?
|
65 |
+
*
|
66 |
+
* @var bool
|
67 |
+
*/
|
68 |
+
protected $isInstallResolved = false;
|
69 |
+
|
70 |
+
/**
|
71 |
+
* Public secret code
|
72 |
+
*
|
73 |
+
* @var string
|
74 |
+
*/
|
75 |
+
protected $clientSecret;
|
76 |
+
|
77 |
+
/**
|
78 |
+
* @var AccountData
|
79 |
+
*/
|
80 |
+
protected $data;
|
81 |
+
|
82 |
+
/**
|
83 |
+
* Base plugin path
|
84 |
+
*
|
85 |
+
* @var string
|
86 |
+
*/
|
87 |
+
protected $basePluginPath;
|
88 |
+
|
89 |
+
/**
|
90 |
+
* @var RequestorContract
|
91 |
+
*/
|
92 |
+
protected $requestor;
|
93 |
+
|
94 |
+
/**
|
95 |
+
* @var Collector
|
96 |
+
*/
|
97 |
+
protected $collector;
|
98 |
+
|
99 |
+
/**
|
100 |
+
* Account constructor.
|
101 |
+
* @param $id
|
102 |
+
* @param $secret
|
103 |
+
* @param $baseDir
|
104 |
+
*/
|
105 |
+
public function __construct($id, $secret, $baseDir)
|
106 |
+
{
|
107 |
+
$this->id = $id;
|
108 |
+
$this->clientSecret = $secret;
|
109 |
+
|
110 |
+
$this->path = $baseDir;
|
111 |
+
|
112 |
+
$this->basePluginPath = plugin_basename($baseDir);
|
113 |
+
}
|
114 |
+
|
115 |
+
/**
|
116 |
+
* @return string
|
117 |
+
*/
|
118 |
+
public function getPath()
|
119 |
+
{
|
120 |
+
return $this->path;
|
121 |
+
}
|
122 |
+
|
123 |
+
/**
|
124 |
+
* @param string $path
|
125 |
+
*/
|
126 |
+
public function setPath($path)
|
127 |
+
{
|
128 |
+
$this->data->setPath($path);
|
129 |
+
|
130 |
+
$this->path = $path;
|
131 |
+
}
|
132 |
+
|
133 |
+
/**
|
134 |
+
* @return bool
|
135 |
+
*/
|
136 |
+
public function isOptedIn()
|
137 |
+
{
|
138 |
+
return $this->isOptedIn;
|
139 |
+
}
|
140 |
+
|
141 |
+
/**
|
142 |
+
* @param bool $isOptedIn
|
143 |
+
*/
|
144 |
+
public function setIsOptedIn($isOptedIn)
|
145 |
+
{
|
146 |
+
$this->data->setIsOptedIn($isOptedIn);
|
147 |
+
|
148 |
+
$this->isOptedIn = $isOptedIn;
|
149 |
+
}
|
150 |
+
|
151 |
+
/**
|
152 |
+
* Whether plugin is active
|
153 |
+
*
|
154 |
+
* @return bool
|
155 |
+
*/
|
156 |
+
public function isActive()
|
157 |
+
{
|
158 |
+
return is_plugin_active($this->path);
|
159 |
+
}
|
160 |
+
|
161 |
+
/**
|
162 |
+
* @param string $id
|
163 |
+
*/
|
164 |
+
public function setId($id)
|
165 |
+
{
|
166 |
+
$this->id = $id;
|
167 |
+
}
|
168 |
+
|
169 |
+
/**
|
170 |
+
* @return string
|
171 |
+
*/
|
172 |
+
public function getId()
|
173 |
+
{
|
174 |
+
return $this->id;
|
175 |
+
}
|
176 |
+
|
177 |
+
/**
|
178 |
+
* @return bool
|
179 |
+
*/
|
180 |
+
public function isInstalled()
|
181 |
+
{
|
182 |
+
return $this->isInstalled;
|
183 |
+
}
|
184 |
+
|
185 |
+
/**
|
186 |
+
* @param bool $isInstalled
|
187 |
+
*/
|
188 |
+
public function setIsInstalled($isInstalled)
|
189 |
+
{
|
190 |
+
$this->data->setIsInstalled($isInstalled);
|
191 |
+
|
192 |
+
$this->isInstalled = $isInstalled;
|
193 |
+
}
|
194 |
+
|
195 |
+
/**
|
196 |
+
* Should register activation and deactivation
|
197 |
+
* event hooks
|
198 |
+
*
|
199 |
+
* @return void
|
200 |
+
*/
|
201 |
+
public function registerHooks()
|
202 |
+
{
|
203 |
+
register_activation_hook($this->basePluginPath, [&$this, 'onActivePluginListener']);
|
204 |
+
register_uninstall_hook($this->basePluginPath, ['Account\Account', 'onUninstallPluginListener']);
|
205 |
+
|
206 |
+
$this->addFilter('plugin_action_links', [&$this, 'onRenderActionLinksHook']);
|
207 |
+
|
208 |
+
$this->addAjax('analyst_opt_in', [&$this, 'onOptInListener']);
|
209 |
+
$this->addAjax('analyst_opt_out', [&$this, 'onOptOutListener']);
|
210 |
+
$this->addAjax('analyst_plugin_deactivate', [&$this, 'onDeactivatePluginListener']);
|
211 |
+
$this->addAjax('analyst_install', [&$this, 'onInstallListener']);
|
212 |
+
$this->addAjax('analyst_skip_install', [&$this, 'onSkipInstallListener']);
|
213 |
+
$this->addAjax('analyst_install_verified', [&$this, 'onInstallVerifiedListener']);
|
214 |
+
}
|
215 |
+
|
216 |
+
/**
|
217 |
+
* Will fire when admin activates plugin
|
218 |
+
*
|
219 |
+
* @return void
|
220 |
+
*/
|
221 |
+
public function onActivePluginListener()
|
222 |
+
{
|
223 |
+
if (!$this->isInstallResolved()) {
|
224 |
+
DatabaseCache::getInstance()->put('plugin_to_install', $this->id);
|
225 |
+
}
|
226 |
+
|
227 |
+
if (!$this->isAllowingLogging()) return;
|
228 |
+
|
229 |
+
ActivateRequest::make($this->collector, $this->id, $this->path)
|
230 |
+
->execute($this->requestor);
|
231 |
+
|
232 |
+
$this->setIsInstalled(true);
|
233 |
+
|
234 |
+
AccountDataFactory::syncData();
|
235 |
+
}
|
236 |
+
|
237 |
+
/**
|
238 |
+
* Will fire when admin deactivates plugin
|
239 |
+
*
|
240 |
+
* @return void
|
241 |
+
*/
|
242 |
+
public function onDeactivatePluginListener()
|
243 |
+
{
|
244 |
+
if (!$this->isAllowingLogging()) return;
|
245 |
+
|
246 |
+
$question = isset($_POST['question']) ? stripslashes($_POST['question']) : null;
|
247 |
+
$reason = isset($_POST['reason']) ? stripslashes($_POST['reason']) : null;
|
248 |
+
|
249 |
+
$response = DeactivateRequest::make($this->collector, $this->id, $this->path, $question, $reason)
|
250 |
+
->execute($this->requestor);
|
251 |
+
|
252 |
+
// Exit if request failed
|
253 |
+
if (!$response->isSuccess()) {
|
254 |
+
wp_send_json_error($response->body);
|
255 |
+
}
|
256 |
+
|
257 |
+
$this->setIsInstalled(false);
|
258 |
+
|
259 |
+
AccountDataFactory::syncData();
|
260 |
+
|
261 |
+
wp_send_json_success();
|
262 |
+
}
|
263 |
+
|
264 |
+
/**
|
265 |
+
* Will fire when user opted in
|
266 |
+
*
|
267 |
+
* @return void
|
268 |
+
*/
|
269 |
+
public function onOptInListener()
|
270 |
+
{
|
271 |
+
$response = OptInRequest::make($this->collector, $this->id, $this->path)->execute($this->requestor);
|
272 |
+
|
273 |
+
// Exit if request failed
|
274 |
+
if (!$response->isSuccess()) {
|
275 |
+
wp_send_json_error($response->body);
|
276 |
+
}
|
277 |
+
|
278 |
+
$this->setIsOptedIn(true);
|
279 |
+
|
280 |
+
AccountDataFactory::syncData();
|
281 |
+
|
282 |
+
wp_die();
|
283 |
+
}
|
284 |
+
|
285 |
+
/**
|
286 |
+
* Will fire when user opted out
|
287 |
+
*
|
288 |
+
* @return void
|
289 |
+
*/
|
290 |
+
public function onOptOutListener()
|
291 |
+
{
|
292 |
+
$response = OptOutRequest::make($this->collector, $this->id, $this->path)->execute($this->requestor);
|
293 |
+
|
294 |
+
// Exit if request failed
|
295 |
+
if (!$response->isSuccess()) {
|
296 |
+
wp_send_json_error($response->body);
|
297 |
+
}
|
298 |
+
|
299 |
+
$this->setIsOptedIn(false);
|
300 |
+
|
301 |
+
AccountDataFactory::syncData();
|
302 |
+
|
303 |
+
wp_send_json_success();
|
304 |
+
}
|
305 |
+
|
306 |
+
/**
|
307 |
+
* Will fire when user accept opt-in
|
308 |
+
* at first time
|
309 |
+
*
|
310 |
+
* @return void
|
311 |
+
*/
|
312 |
+
public function onInstallListener()
|
313 |
+
{
|
314 |
+
$cache = DatabaseCache::getInstance();
|
315 |
+
|
316 |
+
// Set flag to true which indicates that install is resolved
|
317 |
+
// also remove install plugin id from cache
|
318 |
+
$this->setIsInstallResolved(true);
|
319 |
+
$cache->delete('plugin_to_install');
|
320 |
+
|
321 |
+
$response = InstallRequest::make($this->collector, $this->id, $this->path)->execute($this->requestor);
|
322 |
+
|
323 |
+
// Exit if request failed
|
324 |
+
if (!$response->isSuccess()) {
|
325 |
+
wp_send_json_error($response->body);
|
326 |
+
}
|
327 |
+
|
328 |
+
$this->setIsSigned(true);
|
329 |
+
|
330 |
+
$this->setIsOptedIn(true);
|
331 |
+
|
332 |
+
$factory = NoticeFactory::instance();
|
333 |
+
|
334 |
+
$message = sprintf('Please confirm your email by clicking on the link we sent to %s. This makes sure you’re not a bot.', $this->collector->getGeneralEmailAddress());
|
335 |
+
|
336 |
+
$notificationId = uniqid();
|
337 |
+
|
338 |
+
$notice = Notice::make(
|
339 |
+
$notificationId,
|
340 |
+
$this->getId(),
|
341 |
+
$message,
|
342 |
+
$this->collector->getPluginName($this->path)
|
343 |
+
);
|
344 |
+
|
345 |
+
$factory->addNotice($notice);
|
346 |
+
|
347 |
+
AccountDataFactory::syncData();
|
348 |
+
|
349 |
+
// Set email confirmation notification id to cache
|
350 |
+
// se we can extract and remove it when user confirmed email
|
351 |
+
$cache->put(
|
352 |
+
sprintf('account_email_confirmation_%s', $this->getId()),
|
353 |
+
$notificationId
|
354 |
+
);
|
355 |
+
|
356 |
+
wp_send_json_success();
|
357 |
+
}
|
358 |
+
|
359 |
+
/**
|
360 |
+
* Will fire when user skipped installation
|
361 |
+
*
|
362 |
+
* @return void
|
363 |
+
*/
|
364 |
+
public function onSkipInstallListener()
|
365 |
+
{
|
366 |
+
// Set flag to true which indicates that install is resolved
|
367 |
+
// also remove install plugin id from cache
|
368 |
+
$this->setIsInstallResolved(true);
|
369 |
+
DatabaseCache::getInstance()->delete('plugin_to_install');
|
370 |
+
}
|
371 |
+
|
372 |
+
/**
|
373 |
+
* Will fire when user delete plugin through admin panel.
|
374 |
+
* This action will happen if admin at least once
|
375 |
+
* activated the plugin.
|
376 |
+
*
|
377 |
+
* @return void
|
378 |
+
* @throws \Exception
|
379 |
+
*/
|
380 |
+
public static function onUninstallPluginListener()
|
381 |
+
{
|
382 |
+
$factory = AccountDataFactory::instance();
|
383 |
+
|
384 |
+
$pluginFile = substr(current_filter(), strlen( 'uninstall_' ));
|
385 |
+
|
386 |
+
$account = $factory->getAccountDataByBasePath($pluginFile);
|
387 |
+
|
388 |
+
// If account somehow is not found, exit the execution
|
389 |
+
if (!$account) return;
|
390 |
+
|
391 |
+
$analyst = Analyst::getInstance();
|
392 |
+
|
393 |
+
$collector = new Collector($analyst);
|
394 |
+
|
395 |
+
$requestor = new ApiRequestor($account->getId(), $account->getSecret(), $analyst->getApiBase());
|
396 |
+
|
397 |
+
// Just send request to log uninstall event not caring about response
|
398 |
+
UninstallRequest::make($collector, $account->getId(), $account->getPath())->execute($requestor);
|
399 |
+
|
400 |
+
$factory->sync();
|
401 |
+
}
|
402 |
+
|
403 |
+
/**
|
404 |
+
* Fires when used verified his account
|
405 |
+
*/
|
406 |
+
public function onInstallVerifiedListener()
|
407 |
+
{
|
408 |
+
$factory = NoticeFactory::instance();
|
409 |
+
|
410 |
+
$notice = Notice::make(
|
411 |
+
uniqid(),
|
412 |
+
$this->getId(),
|
413 |
+
'Thank you for confirming your email.',
|
414 |
+
$this->collector->getPluginName($this->path)
|
415 |
+
);
|
416 |
+
|
417 |
+
$factory->addNotice($notice);
|
418 |
+
|
419 |
+
// Remove confirmation notification
|
420 |
+
$confirmationNotificationId = DatabaseCache::getInstance()->pop(sprintf('account_email_confirmation_%s', $this->getId()));
|
421 |
+
$factory->remove($confirmationNotificationId);
|
422 |
+
|
423 |
+
AccountDataFactory::syncData();
|
424 |
+
|
425 |
+
wp_send_json_success();
|
426 |
+
}
|
427 |
+
|
428 |
+
/**
|
429 |
+
* Will fire when wp renders plugin
|
430 |
+
* action buttons
|
431 |
+
*
|
432 |
+
* @param $defaultLinks
|
433 |
+
* @return array
|
434 |
+
*/
|
435 |
+
public function onRenderActionLinksHook($defaultLinks)
|
436 |
+
{
|
437 |
+
$customLinks = [];
|
438 |
+
|
439 |
+
$customLinks[] = $this->isOptedIn()
|
440 |
+
? '<a class="analyst-action-opt analyst-opt-out" analyst-plugin-id="' . $this->getId() . '" analyst-plugin-signed="' . (int) $this->isSigned() . '">Opt Out</a>'
|
441 |
+
: '<a class="analyst-action-opt analyst-opt-in" analyst-plugin-id="' . $this->getId() . '" analyst-plugin-signed="' . (int) $this->isSigned() . '">Opt In</a>';
|
442 |
+
|
443 |
+
// Append anchor to find specific deactivation link
|
444 |
+
if (isset($defaultLinks['deactivate'])) {
|
445 |
+
$defaultLinks['deactivate'] .= '<span analyst-plugin-id="' . $this->getId() . '" analyst-plugin-opted-in="' . (int) $this->isOptedIn() . '"></span>';
|
446 |
+
}
|
447 |
+
|
448 |
+
return array_merge($customLinks, $defaultLinks);
|
449 |
+
}
|
450 |
+
|
451 |
+
/**
|
452 |
+
* @return AccountData
|
453 |
+
*/
|
454 |
+
public function getData()
|
455 |
+
{
|
456 |
+
return $this->data;
|
457 |
+
}
|
458 |
+
|
459 |
+
/**
|
460 |
+
* @param AccountData $data
|
461 |
+
*/
|
462 |
+
public function setData(AccountData $data)
|
463 |
+
{
|
464 |
+
$this->data = $data;
|
465 |
+
|
466 |
+
$this->setIsOptedIn($data->isOptedIn());
|
467 |
+
$this->setIsInstalled($data->isInstalled());
|
468 |
+
$this->setIsSigned($data->isSigned());
|
469 |
+
$this->setIsInstallResolved($data->isInstallResolved());
|
470 |
+
}
|
471 |
+
|
472 |
+
/**
|
473 |
+
* Resolves valid action name
|
474 |
+
* based on client id
|
475 |
+
*
|
476 |
+
* @param $action
|
477 |
+
* @return string
|
478 |
+
*/
|
479 |
+
private function resolveActionName($action)
|
480 |
+
{
|
481 |
+
return sprintf('%s_%s', $action, $this->id);
|
482 |
+
}
|
483 |
+
|
484 |
+
/**
|
485 |
+
* Register action for current plugin
|
486 |
+
*
|
487 |
+
* @param $action
|
488 |
+
* @param $callback
|
489 |
+
*/
|
490 |
+
private function addFilter($action, $callback)
|
491 |
+
{
|
492 |
+
$validAction = sprintf('%s_%s', $action, $this->basePluginPath);
|
493 |
+
|
494 |
+
add_filter($validAction, $callback, 10);
|
495 |
+
}
|
496 |
+
|
497 |
+
/**
|
498 |
+
* Add ajax action for current plugin
|
499 |
+
*
|
500 |
+
* @param $action
|
501 |
+
* @param $callback
|
502 |
+
* @param bool $raw Format action ??
|
503 |
+
*/
|
504 |
+
private function addAjax($action, $callback, $raw = false)
|
505 |
+
{
|
506 |
+
$validAction = $raw ? $action : sprintf('%s%s', 'wp_ajax_', $this->resolveActionName($action));
|
507 |
+
|
508 |
+
add_action($validAction, $callback);
|
509 |
+
}
|
510 |
+
|
511 |
+
/**
|
512 |
+
* @return bool
|
513 |
+
*/
|
514 |
+
public function isSigned()
|
515 |
+
{
|
516 |
+
return $this->isSigned;
|
517 |
+
}
|
518 |
+
|
519 |
+
/**
|
520 |
+
* @param bool $isSigned
|
521 |
+
*/
|
522 |
+
public function setIsSigned($isSigned)
|
523 |
+
{
|
524 |
+
$this->data->setIsSigned($isSigned);
|
525 |
+
|
526 |
+
$this->isSigned = $isSigned;
|
527 |
+
}
|
528 |
+
|
529 |
+
/**
|
530 |
+
* @return RequestorContract
|
531 |
+
*/
|
532 |
+
public function getRequestor()
|
533 |
+
{
|
534 |
+
return $this->requestor;
|
535 |
+
}
|
536 |
+
|
537 |
+
/**
|
538 |
+
* @param RequestorContract $requestor
|
539 |
+
*/
|
540 |
+
public function setRequestor(RequestorContract $requestor)
|
541 |
+
{
|
542 |
+
$this->requestor = $requestor;
|
543 |
+
}
|
544 |
+
|
545 |
+
/**
|
546 |
+
* @return string
|
547 |
+
*/
|
548 |
+
public function getClientSecret()
|
549 |
+
{
|
550 |
+
return $this->clientSecret;
|
551 |
+
}
|
552 |
+
|
553 |
+
/**
|
554 |
+
* @return Collector
|
555 |
+
*/
|
556 |
+
public function getCollector()
|
557 |
+
{
|
558 |
+
return $this->collector;
|
559 |
+
}
|
560 |
+
|
561 |
+
/**
|
562 |
+
* @param Collector $collector
|
563 |
+
*/
|
564 |
+
public function setCollector(Collector $collector)
|
565 |
+
{
|
566 |
+
$this->collector = $collector;
|
567 |
+
}
|
568 |
+
|
569 |
+
/**
|
570 |
+
* Do we allowing logging
|
571 |
+
*
|
572 |
+
* @return bool
|
573 |
+
*/
|
574 |
+
public function isAllowingLogging()
|
575 |
+
{
|
576 |
+
return $this->isOptedIn;
|
577 |
+
}
|
578 |
+
|
579 |
+
/**
|
580 |
+
* @return string
|
581 |
+
*/
|
582 |
+
public function getBasePluginPath()
|
583 |
+
{
|
584 |
+
return $this->basePluginPath;
|
585 |
+
}
|
586 |
+
|
587 |
+
/**
|
588 |
+
* @return bool
|
589 |
+
*/
|
590 |
+
public function isInstallResolved()
|
591 |
+
{
|
592 |
+
return $this->isInstallResolved;
|
593 |
+
}
|
594 |
+
|
595 |
+
/**
|
596 |
+
* @param bool $isInstallResolved
|
597 |
+
*/
|
598 |
+
public function setIsInstallResolved($isInstallResolved)
|
599 |
+
{
|
600 |
+
$this->data->setIsInstallResolved($isInstallResolved);
|
601 |
+
|
602 |
+
$this->isInstallResolved = $isInstallResolved;
|
603 |
+
}
|
604 |
+
}
|
analyst/src/Mutator.php
CHANGED
@@ -1,103 +1,103 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
namespace Analyst;
|
4 |
-
|
5 |
-
use Analyst\Cache\DatabaseCache;
|
6 |
-
use Analyst\Contracts\CacheContract;
|
7 |
-
use Analyst\Notices\NoticeFactory;
|
8 |
-
|
9 |
-
/**
|
10 |
-
* Class Mutator mutates (modifies) UX with additional
|
11 |
-
* functional
|
12 |
-
*/
|
13 |
-
class Mutator
|
14 |
-
{
|
15 |
-
protected $notices = [];
|
16 |
-
|
17 |
-
/**
|
18 |
-
* @var NoticeFactory
|
19 |
-
*/
|
20 |
-
protected $factory;
|
21 |
-
|
22 |
-
/**
|
23 |
-
* @var CacheContract
|
24 |
-
*/
|
25 |
-
protected $cache;
|
26 |
-
|
27 |
-
public function __construct()
|
28 |
-
{
|
29 |
-
$this->factory = NoticeFactory::instance();
|
30 |
-
|
31 |
-
$this->notices = $this->factory->getNotices();
|
32 |
-
|
33 |
-
$this->cache = DatabaseCache::getInstance();
|
34 |
-
}
|
35 |
-
|
36 |
-
/**
|
37 |
-
* Register filters all necessary stuff.
|
38 |
-
* Can be invoked only once.
|
39 |
-
*
|
40 |
-
* @return void
|
41 |
-
*/
|
42 |
-
public function initialize()
|
43 |
-
{
|
44 |
-
$this->registerLinks();
|
45 |
-
$this->registerAssets();
|
46 |
-
$this->registerHooks();
|
47 |
-
}
|
48 |
-
|
49 |
-
/**
|
50 |
-
* Register all necessary filters and templates
|
51 |
-
*
|
52 |
-
* @return void
|
53 |
-
*/
|
54 |
-
protected function registerLinks()
|
55 |
-
{
|
56 |
-
add_action('admin_footer', function () {
|
57 |
-
analyst_require_template('optout.php', [
|
58 |
-
'shieldImage' => analyst_assets_url('img/shield_question.png')
|
59 |
-
]);
|
60 |
-
|
61 |
-
analyst_require_template('optin.php');
|
62 |
-
|
63 |
-
analyst_require_template('forms/deactivate.php', [
|
64 |
-
'pencilImage' => analyst_assets_url('img/pencil.png'),
|
65 |
-
'smileImage' => analyst_assets_url('img/smile.png'),
|
66 |
-
]);
|
67 |
-
|
68 |
-
analyst_require_template('forms/install.php', [
|
69 |
-
'pluginToInstall' => $this->cache->get('plugin_to_install'),
|
70 |
-
'shieldImage' => analyst_assets_url('img/shield_success.png'),
|
71 |
-
]);
|
72 |
-
});
|
73 |
-
|
74 |
-
add_action('admin_notices',function () {
|
75 |
-
foreach ($this->notices as $notice) {
|
76 |
-
analyst_require_template('notice.php', ['notice' => $notice]);
|
77 |
-
}
|
78 |
-
});
|
79 |
-
}
|
80 |
-
|
81 |
-
/**
|
82 |
-
* Register all assets
|
83 |
-
*/
|
84 |
-
public function registerAssets()
|
85 |
-
{
|
86 |
-
add_action('admin_enqueue_scripts', function () {
|
87 |
-
wp_enqueue_style('analyst_custom', analyst_assets_url('/css/customize.css'));
|
88 |
-
wp_enqueue_script('analyst_custom', analyst_assets_url('/js/customize.js'));
|
89 |
-
});
|
90 |
-
}
|
91 |
-
|
92 |
-
/**
|
93 |
-
* Register action hooks
|
94 |
-
*/
|
95 |
-
public function registerHooks()
|
96 |
-
{
|
97 |
-
add_action('wp_ajax_analyst_notification_dismiss', function () {
|
98 |
-
$this->factory->remove($_POST['id']);
|
99 |
-
|
100 |
-
$this->factory->sync();
|
101 |
-
});
|
102 |
-
}
|
103 |
-
}
|
1 |
+
<?php
|
2 |
+
|
3 |
+
namespace Analyst;
|
4 |
+
|
5 |
+
use Analyst\Cache\DatabaseCache;
|
6 |
+
use Analyst\Contracts\CacheContract;
|
7 |
+
use Analyst\Notices\NoticeFactory;
|
8 |
+
|
9 |
+
/**
|
10 |
+
* Class Mutator mutates (modifies) UX with additional
|
11 |
+
* functional
|
12 |
+
*/
|
13 |
+
class Mutator
|
14 |
+
{
|
15 |
+
protected $notices = [];
|
16 |
+
|
17 |
+
/**
|
18 |
+
* @var NoticeFactory
|
19 |
+
*/
|
20 |
+
protected $factory;
|
21 |
+
|
22 |
+
/**
|
23 |
+
* @var CacheContract
|
24 |
+
*/
|
25 |
+
protected $cache;
|
26 |
+
|
27 |
+
public function __construct()
|
28 |
+
{
|
29 |
+
$this->factory = NoticeFactory::instance();
|
30 |
+
|
31 |
+
$this->notices = $this->factory->getNotices();
|
32 |
+
|
33 |
+
$this->cache = DatabaseCache::getInstance();
|
34 |
+
}
|
35 |
+
|
36 |
+
/**
|
37 |
+
* Register filters all necessary stuff.
|
38 |
+
* Can be invoked only once.
|
39 |
+
*
|
40 |
+
* @return void
|
41 |
+
*/
|
42 |
+
public function initialize()
|
43 |
+
{
|
44 |
+
$this->registerLinks();
|
45 |
+
$this->registerAssets();
|
46 |
+
$this->registerHooks();
|
47 |
+
}
|
48 |
+
|
49 |
+
/**
|
50 |
+
* Register all necessary filters and templates
|
51 |
+
*
|
52 |
+
* @return void
|
53 |
+
*/
|
54 |
+
protected function registerLinks()
|
55 |
+
{
|
56 |
+
add_action('admin_footer', function () {
|
57 |
+
analyst_require_template('optout.php', [
|
58 |
+
'shieldImage' => analyst_assets_url('img/shield_question.png')
|
59 |
+
]);
|
60 |
+
|
61 |
+
analyst_require_template('optin.php');
|
62 |
+
|
63 |
+
analyst_require_template('forms/deactivate.php', [
|
64 |
+
'pencilImage' => analyst_assets_url('img/pencil.png'),
|
65 |
+
'smileImage' => analyst_assets_url('img/smile.png'),
|
66 |
+
]);
|
67 |
+
|
68 |
+
analyst_require_template('forms/install.php', [
|
69 |
+
'pluginToInstall' => $this->cache->get('plugin_to_install'),
|
70 |
+
'shieldImage' => analyst_assets_url('img/shield_success.png'),
|
71 |
+
]);
|
72 |
+
});
|
73 |
+
|
74 |
+
add_action('admin_notices',function () {
|
75 |
+
foreach ($this->notices as $notice) {
|
76 |
+
analyst_require_template('notice.php', ['notice' => $notice]);
|
77 |
+
}
|
78 |
+
});
|
79 |
+
}
|
80 |
+
|
81 |
+
/**
|
82 |
+
* Register all assets
|
83 |
+
*/
|
84 |
+
public function registerAssets()
|
85 |
+
{
|
86 |
+
add_action('admin_enqueue_scripts', function () {
|
87 |
+
wp_enqueue_style('analyst_custom', analyst_assets_url('/css/customize.css'));
|
88 |
+
wp_enqueue_script('analyst_custom', analyst_assets_url('/js/customize.js'));
|
89 |
+
});
|
90 |
+
}
|
91 |
+
|
92 |
+
/**
|
93 |
+
* Register action hooks
|
94 |
+
*/
|
95 |
+
public function registerHooks()
|
96 |
+
{
|
97 |
+
add_action('wp_ajax_analyst_notification_dismiss', function () {
|
98 |
+
$this->factory->remove($_POST['id']);
|
99 |
+
|
100 |
+
$this->factory->sync();
|
101 |
+
});
|
102 |
+
}
|
103 |
+
}
|
analyst/version.php
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
return array(
|
4 |
-
// The sdk version
|
5 |
-
'sdk' => '1.3.26',
|
6 |
-
|
7 |
-
// Minimum supported WordPress version
|
8 |
-
'wp' => '4.7',
|
9 |
-
|
10 |
-
// Supported PHP version
|
11 |
-
'php' => '5.4',
|
12 |
-
|
13 |
-
// Path to current SDK$
|
14 |
-
'path' => __DIR__,
|
15 |
-
);
|
1 |
+
<?php
|
2 |
+
|
3 |
+
return array(
|
4 |
+
// The sdk version
|
5 |
+
'sdk' => '1.3.26',
|
6 |
+
|
7 |
+
// Minimum supported WordPress version
|
8 |
+
'wp' => '4.7',
|
9 |
+
|
10 |
+
// Supported PHP version
|
11 |
+
'php' => '5.4',
|
12 |
+
|
13 |
+
// Path to current SDK$
|
14 |
+
'path' => __DIR__,
|
15 |
+
);
|
css/sfsi-style.css
CHANGED
@@ -2026,7 +2026,7 @@ h2.optional {
|
|
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:
|
2030 |
left: 50%;
|
2031 |
margin-bottom: 2px;
|
2032 |
}
|
@@ -2123,7 +2123,7 @@ h2.optional {
|
|
2123 |
}
|
2124 |
.utube_tool_bdr {
|
2125 |
width: 93px;
|
2126 |
-
bottom:
|
2127 |
left: 50%;
|
2128 |
margin-bottom: 2px;
|
2129 |
}
|
@@ -3756,4 +3756,10 @@ a.pop-up .radio{
|
|
3756 |
font-size: 11px !important;
|
3757 |
line-height: 0px !important;
|
3758 |
margin: 0px 0px 0px 0px !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
3759 |
}
|
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 |
}
|
2123 |
}
|
2124 |
.utube_tool_bdr {
|
2125 |
width: 93px;
|
2126 |
+
bottom: auto;
|
2127 |
left: 50%;
|
2128 |
margin-bottom: 2px;
|
2129 |
}
|
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 |
}
|
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 |
-
|
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/banner/animated_email.gif
ADDED
Binary file
|
images/banner/default1_pinterest.png
ADDED
Binary file
|
images/banner/default2_pinterest.png
ADDED
Binary file
|
images/banner/default3_pinterest.png
ADDED
Binary file
|
images/banner/theme1_pinterest.png
ADDED
Binary file
|
images/banner/theme2_pinterest.png
ADDED
Binary file
|
images/banner/theme3_pinterest.png
ADDED
Binary file
|
images/website_theme/{Others.png → others.png}
RENAMED
File without changes
|
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/sfsiocns_OnPosts.php
CHANGED
@@ -1,555 +1,555 @@
|
|
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'] : 'javascript:void(0);';
|
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 |
-
if(isset($option2['sfsi_plus_email_icons_functions']) && $option2['sfsi_plus_email_icons_functions'] == 'sf')
|
500 |
-
{
|
501 |
-
$share_url = (isset($option2['sfsi_plus_email_url']))
|
502 |
-
? $option2['sfsi_plus_email_url']
|
503 |
-
: 'javascript:';
|
504 |
-
}
|
505 |
-
elseif(isset($option2['sfsi_plus_email_icons_functions']) && $option2['sfsi_plus_email_icons_functions'] == 'contact')
|
506 |
-
{
|
507 |
-
$share_url = (isset($option2['sfsi_plus_email_icons_contact']) && !empty($option2['sfsi_plus_email_icons_contact']))
|
508 |
-
? "mailto:".$option2['sfsi_plus_email_icons_contact']
|
509 |
-
: 'javascript:';
|
510 |
-
}
|
511 |
-
elseif(isset($option2['sfsi_plus_email_icons_functions']) && $option2['sfsi_plus_email_icons_functions'] == 'page')
|
512 |
-
{
|
513 |
-
$share_url = (isset($option2['sfsi_plus_email_icons_pageurl']) && !empty($option2['sfsi_plus_email_icons_pageurl']))
|
514 |
-
? $option2['sfsi_plus_email_icons_pageurl']
|
515 |
-
: 'javascript:';
|
516 |
-
}
|
517 |
-
elseif(isset($option2['sfsi_plus_email_icons_functions']) && $option2['sfsi_plus_email_icons_functions'] == 'share_email')
|
518 |
-
{
|
519 |
-
$subject = stripslashes($option2['sfsi_plus_email_icons_subject_line']);
|
520 |
-
$subject = str_replace('${title}', $socialObj->sfsi_get_the_title(), $subject);
|
521 |
-
$subject = str_replace('"', '', str_replace("'", '', $subject));
|
522 |
-
$subject = html_entity_decode(strip_tags($subject), ENT_QUOTES,'UTF-8');
|
523 |
-
$subject = str_replace("%26%238230%3B", "...", $subject);
|
524 |
-
$subject = rawurlencode($subject);
|
525 |
-
|
526 |
-
$body = stripslashes($option2['sfsi_plus_email_icons_email_content']);
|
527 |
-
$body = str_replace('${title}', $socialObj->sfsi_get_the_title(), $body);
|
528 |
-
$body = str_replace('${link}', trailingslashit($socialObj->sfsi_get_custom_share_link('email')), $body);
|
529 |
-
$body = str_replace('"', '', str_replace("'", '', $body));
|
530 |
-
$body = html_entity_decode(strip_tags($body), ENT_QUOTES,'UTF-8');
|
531 |
-
$body = str_replace("%26%238230%3B", "...", $body);
|
532 |
-
$body = rawurlencode($body);
|
533 |
-
$share_url = "mailto:?subject=$subject&body=$body";
|
534 |
-
}
|
535 |
-
else
|
536 |
-
{
|
537 |
-
$share_url = (isset($option2['sfsi_plus_email_url']))
|
538 |
-
? $option2['sfsi_plus_email_url']
|
539 |
-
: 'javascript:';
|
540 |
-
}
|
541 |
-
break;
|
542 |
-
|
543 |
-
}
|
544 |
-
$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";
|
545 |
-
$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";
|
546 |
-
$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";
|
547 |
-
$icons.="\t\t\t\t<span style='color:#fff' >".($icon_config["text"])."</span>"."\n";
|
548 |
-
$icons.="\t\t\t</div>"."\n";
|
549 |
-
$icons.="\t\t</a>"."\n\n";
|
550 |
-
}
|
551 |
-
$icons.="</div></div><!--end responsive_icons-->";
|
552 |
-
return $icons;
|
553 |
-
endif;
|
554 |
-
}
|
555 |
-
?>
|
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'] : 'javascript:void(0);';
|
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 |
+
if(isset($option2['sfsi_plus_email_icons_functions']) && $option2['sfsi_plus_email_icons_functions'] == 'sf')
|
500 |
+
{
|
501 |
+
$share_url = (isset($option2['sfsi_plus_email_url']))
|
502 |
+
? $option2['sfsi_plus_email_url']
|
503 |
+
: 'javascript:';
|
504 |
+
}
|
505 |
+
elseif(isset($option2['sfsi_plus_email_icons_functions']) && $option2['sfsi_plus_email_icons_functions'] == 'contact')
|
506 |
+
{
|
507 |
+
$share_url = (isset($option2['sfsi_plus_email_icons_contact']) && !empty($option2['sfsi_plus_email_icons_contact']))
|
508 |
+
? "mailto:".$option2['sfsi_plus_email_icons_contact']
|
509 |
+
: 'javascript:';
|
510 |
+
}
|
511 |
+
elseif(isset($option2['sfsi_plus_email_icons_functions']) && $option2['sfsi_plus_email_icons_functions'] == 'page')
|
512 |
+
{
|
513 |
+
$share_url = (isset($option2['sfsi_plus_email_icons_pageurl']) && !empty($option2['sfsi_plus_email_icons_pageurl']))
|
514 |
+
? $option2['sfsi_plus_email_icons_pageurl']
|
515 |
+
: 'javascript:';
|
516 |
+
}
|
517 |
+
elseif(isset($option2['sfsi_plus_email_icons_functions']) && $option2['sfsi_plus_email_icons_functions'] == 'share_email')
|
518 |
+
{
|
519 |
+
$subject = stripslashes($option2['sfsi_plus_email_icons_subject_line']);
|
520 |
+
$subject = str_replace('${title}', $socialObj->sfsi_get_the_title(), $subject);
|
521 |
+
$subject = str_replace('"', '', str_replace("'", '', $subject));
|
522 |
+
$subject = html_entity_decode(strip_tags($subject), ENT_QUOTES,'UTF-8');
|
523 |
+
$subject = str_replace("%26%238230%3B", "...", $subject);
|
524 |
+
$subject = rawurlencode($subject);
|
525 |
+
|
526 |
+
$body = stripslashes($option2['sfsi_plus_email_icons_email_content']);
|
527 |
+
$body = str_replace('${title}', $socialObj->sfsi_get_the_title(), $body);
|
528 |
+
$body = str_replace('${link}', trailingslashit($socialObj->sfsi_get_custom_share_link('email')), $body);
|
529 |
+
$body = str_replace('"', '', str_replace("'", '', $body));
|
530 |
+
$body = html_entity_decode(strip_tags($body), ENT_QUOTES,'UTF-8');
|
531 |
+
$body = str_replace("%26%238230%3B", "...", $body);
|
532 |
+
$body = rawurlencode($body);
|
533 |
+
$share_url = "mailto:?subject=$subject&body=$body";
|
534 |
+
}
|
535 |
+
else
|
536 |
+
{
|
537 |
+
$share_url = (isset($option2['sfsi_plus_email_url']))
|
538 |
+
? $option2['sfsi_plus_email_url']
|
539 |
+
: 'javascript:';
|
540 |
+
}
|
541 |
+
break;
|
542 |
+
|
543 |
+
}
|
544 |
+
$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";
|
545 |
+
$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";
|
546 |
+
$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";
|
547 |
+
$icons.="\t\t\t\t<span style='color:#fff' >".($icon_config["text"])."</span>"."\n";
|
548 |
+
$icons.="\t\t\t</div>"."\n";
|
549 |
+
$icons.="\t\t</a>"."\n\n";
|
550 |
+
}
|
551 |
+
$icons.="</div></div><!--end responsive_icons-->";
|
552 |
+
return $icons;
|
553 |
+
endif;
|
554 |
+
}
|
555 |
+
?>
|
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 |
-
jQuery(document).ready(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 |
+
jQuery(document).ready(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,1159 +1,1173 @@
|
|
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.
|
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 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
$
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
$
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
update_option('
|
312 |
-
}
|
313 |
-
/*
|
314 |
-
$
|
315 |
-
if(isset($
|
316 |
-
{
|
317 |
-
$
|
318 |
-
update_option('
|
319 |
-
}
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
$
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
{
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
{
|
343 |
-
|
344 |
-
}
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
'
|
373 |
-
'
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
'
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
'
|
409 |
-
'
|
410 |
-
'
|
411 |
-
|
412 |
-
'
|
413 |
-
'
|
414 |
-
|
415 |
-
'
|
416 |
-
'
|
417 |
-
'
|
418 |
-
'
|
419 |
-
|
420 |
-
|
421 |
-
'
|
422 |
-
|
423 |
-
'
|
424 |
-
'
|
425 |
-
|
426 |
-
'
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
'
|
431 |
-
'
|
432 |
-
'
|
433 |
-
'
|
434 |
-
'
|
435 |
-
|
436 |
-
|
437 |
-
'
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
'
|
445 |
-
|
446 |
-
|
447 |
-
'
|
448 |
-
'
|
449 |
-
'
|
450 |
-
'
|
451 |
-
'
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
'
|
462 |
-
'
|
463 |
-
'
|
464 |
-
'
|
465 |
-
'
|
466 |
-
'
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
'
|
474 |
-
'
|
475 |
-
'
|
476 |
-
'
|
477 |
-
'
|
478 |
-
'
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
'
|
483 |
-
'
|
484 |
-
'
|
485 |
-
'
|
486 |
-
'
|
487 |
-
'
|
488 |
-
'
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
'
|
494 |
-
'
|
495 |
-
'
|
496 |
-
|
497 |
-
'
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
'
|
527 |
-
'
|
528 |
-
'
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
'
|
533 |
-
|
534 |
-
|
535 |
-
'
|
536 |
-
'
|
537 |
-
|
538 |
-
|
539 |
-
'
|
540 |
-
'
|
541 |
-
'
|
542 |
-
'
|
543 |
-
'
|
544 |
-
'
|
545 |
-
'
|
546 |
-
'
|
547 |
-
'
|
548 |
-
'
|
549 |
-
'
|
550 |
-
'
|
551 |
-
'
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
'
|
557 |
-
'
|
558 |
-
'
|
559 |
-
'
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
'
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
'
|
580 |
-
'
|
581 |
-
'
|
582 |
-
'
|
583 |
-
'
|
584 |
-
'
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
'
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
'
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
'
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
'
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
'
|
631 |
-
'
|
632 |
-
'
|
633 |
-
|
634 |
-
|
635 |
-
'
|
636 |
-
'
|
637 |
-
'
|
638 |
-
'
|
639 |
-
'
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
$
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
/*
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
)
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
|
768 |
-
|
769 |
-
|
770 |
-
|
771 |
-
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
delete_option(
|
785 |
-
delete_option(
|
786 |
-
|
787 |
-
delete_option(
|
788 |
-
|
789 |
-
|
790 |
-
delete_option("
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
delete_option(
|
797 |
-
delete_option(
|
798 |
-
delete_option(
|
799 |
-
delete_option(
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
$
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
{
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
|
870 |
-
|
871 |
-
|
872 |
-
|
873 |
-
|
874 |
-
|
875 |
-
|
876 |
-
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
$
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
}
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
|
946 |
-
|
947 |
-
|
948 |
-
|
949 |
-
|
950 |
-
|
951 |
-
|
952 |
-
|
953 |
-
|
954 |
-
|
955 |
-
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
{
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
$
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
1015 |
-
|
1016 |
-
|
1017 |
-
|
1018 |
-
|
1019 |
-
|
1020 |
-
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
1025 |
-
|
1026 |
-
|
1027 |
-
|
1028 |
-
|
1029 |
-
|
1030 |
-
|
1031 |
-
|
1032 |
-
|
1033 |
-
|
1034 |
-
|
1035 |
-
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
|
1040 |
-
|
1041 |
-
|
1042 |
-
|
1043 |
-
|
1044 |
-
|
1045 |
-
|
1046 |
-
|
1047 |
-
|
1048 |
-
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
1055 |
-
|
1056 |
-
|
1057 |
-
|
1058 |
-
|
1059 |
-
|
1060 |
-
|
1061 |
-
|
1062 |
-
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
}
|
1067 |
-
|
1068 |
-
|
1069 |
-
|
1070 |
-
|
1071 |
-
add_action('
|
1072 |
-
function
|
1073 |
-
{
|
1074 |
-
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
-
|
1091 |
-
|
1092 |
-
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
$
|
1101 |
-
|
1102 |
-
|
1103 |
-
|
1104 |
-
|
1105 |
-
|
1106 |
-
|
1107 |
-
|
1108 |
-
|
1109 |
-
|
1110 |
-
|
1111 |
-
|
1112 |
-
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
-
|
1134 |
-
|
1135 |
-
|
1136 |
-
|
1137 |
-
|
1138 |
-
|
1139 |
-
|
1140 |
-
|
1141 |
-
|
1142 |
-
|
1143 |
-
|
1144 |
-
|
1145 |
-
|
1146 |
-
|
1147 |
-
|
1148 |
-
|
1149 |
-
|
1150 |
-
|
1151 |
-
|
1152 |
-
|
1153 |
-
|
1154 |
-
|
1155 |
-
|
1156 |
-
|
1157 |
-
|
1158 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1159 |
?>
|
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.25");
|
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) && !isset($option1['sfsi_plus_premium_icons_box']))
|
195 |
+
{
|
196 |
+
$option1['sfsi_plus_premium_icons_box'] = 'no';
|
197 |
+
if(!isset($option1['sfsi_plus_ok_display'])){
|
198 |
+
$option1['sfsi_plus_ok_display'] = 'no';
|
199 |
+
}
|
200 |
+
if(!isset($option1['sfsi_plus_telegram_display'])){
|
201 |
+
$option1['sfsi_plus_telegram_display'] = 'no';
|
202 |
+
}
|
203 |
+
if(!isset($option1['sfsi_plus_vk_display'])){
|
204 |
+
$option1['sfsi_plus_vk_display'] = 'no';
|
205 |
+
}
|
206 |
+
if(!isset($option1['sfsi_plus_weibo_display'])){
|
207 |
+
$option1['sfsi_plus_weibo_display'] = 'no';
|
208 |
+
}
|
209 |
+
if(!isset($option1['sfsi_plus_wechat_display'])){
|
210 |
+
$option1['sfsi_plus_wechat_display'] = 'no';
|
211 |
+
}
|
212 |
+
|
213 |
+
|
214 |
+
update_option('sfsi_plus_section1_options', serialize($option1));
|
215 |
+
}
|
216 |
+
/* section2 */
|
217 |
+
$option2 = unserialize(get_option('sfsi_plus_section2_options',false));
|
218 |
+
if(isset($option2) && !empty($option2) && !isset($option2['sfsi_plus_premium_email_box']))
|
219 |
+
{
|
220 |
+
$option2['sfsi_plus_premium_email_box'] = 'no';
|
221 |
+
$option2['sfsi_plus_premium_facebook_box'] = 'no';
|
222 |
+
$option2['sfsi_plus_premium_twitter_box'] = 'no';
|
223 |
+
|
224 |
+
if(!isset($option2['sfsi_plus_mouseover_effect_type'])){
|
225 |
+
$option2['sfsi_plus_mouseover_effect_type'] = 'no';
|
226 |
+
}
|
227 |
+
if(!isset($option2['sfsi_plus_okVisit_url'])){
|
228 |
+
$option2['sfsi_plus_okVisit_url'] = 'no';
|
229 |
+
}
|
230 |
+
if(!isset($option2['sfsi_plus_okSubscribe_option'])){
|
231 |
+
$option2['sfsi_plus_okSubscribe_option'] = 'no';
|
232 |
+
}
|
233 |
+
if(!isset($option2['sfsi_plus_okSubscribe_userid'])){
|
234 |
+
$option2['sfsi_plus_okSubscribe_userid'] = 'no';
|
235 |
+
}
|
236 |
+
if(!isset($option2['sfsi_plus_okLike_option'])){
|
237 |
+
$option2['sfsi_plus_okLike_option'] = 'no';
|
238 |
+
}
|
239 |
+
if(!isset($option2['sfsi_plus_telegramShare_option'])){
|
240 |
+
$option2['sfsi_plus_telegramShare_option'] = 'no';
|
241 |
+
}
|
242 |
+
if(!isset($option2['sfsi_plus_telegramMessage_option'])){
|
243 |
+
$option2['sfsi_plus_telegramMessage_option'] = 'no';
|
244 |
+
}
|
245 |
+
if(!isset($option2['sfsi_plus_telegram_message'])){
|
246 |
+
$option2['sfsi_plus_telegram_message'] = 'no';
|
247 |
+
}
|
248 |
+
if(!isset($option2['sfsi_plus_telegram_username'])){
|
249 |
+
$option2['sfsi_plus_telegram_username'] = 'no';
|
250 |
+
}
|
251 |
+
if(!isset($option2['sfsi_plus_vkVisit_option'])){
|
252 |
+
$option2['sfsi_plus_vkVisit_option'] = 'no';
|
253 |
+
}
|
254 |
+
if(!isset($option2['sfsi_plus_vkShare_option'])){
|
255 |
+
$option2['sfsi_plus_vkShare_option'] = 'no';
|
256 |
+
}
|
257 |
+
if(!isset($option2['sfsi_plus_vkLike_option'])){
|
258 |
+
$option2['sfsi_plus_vkLike_option'] = 'no';
|
259 |
+
}
|
260 |
+
if(!isset($option2['sfsi_plus_vkFollow_option'])){
|
261 |
+
$option2['sfsi_plus_vkFollow_option'] = 'no';
|
262 |
+
}
|
263 |
+
if(!isset($option2['sfsi_plus_vkVisit_url'])){
|
264 |
+
$option2['sfsi_plus_vkVisit_url'] = 'no';
|
265 |
+
}
|
266 |
+
if(!isset($option2['gvfergergergergregergrg'])){
|
267 |
+
$option2['gvfergergergergregergrg'] = 'no';
|
268 |
+
}
|
269 |
+
if(!isset($option2['sfsi_plus_vkFollow_url'])){
|
270 |
+
$option2['sfsi_plus_vkFollow_url'] = 'no';
|
271 |
+
}
|
272 |
+
if(!isset($option2['sfsi_plus_weiboVisit_option'])){
|
273 |
+
$option2['sfsi_plus_weiboVisit_option'] = 'no';
|
274 |
+
}
|
275 |
+
if(!isset($option2['sfsi_plus_weiboShare_option'])){
|
276 |
+
$option2['sfsi_plus_weiboShare_option'] = 'no';
|
277 |
+
}
|
278 |
+
if(!isset($option2['sfsi_plus_weiboLike_option'])){
|
279 |
+
$option2['sfsi_plus_weiboLike_option'] = 'no';
|
280 |
+
}
|
281 |
+
if(!isset($option2['sfsi_plus_weiboVisit_url'])){
|
282 |
+
$option2['sfsi_plus_weiboVisit_url'] = 'no';
|
283 |
+
}
|
284 |
+
if(!isset($option2['sfsi_plus_wechatFollow_option'])){
|
285 |
+
$option2['sfsi_plus_wechatFollow_option'] = 'no';
|
286 |
+
}
|
287 |
+
if(!isset($option2['sfsi_plus_wechatShare_option'])){
|
288 |
+
$option2['sfsi_plus_wechatShare_option'] = 'no';
|
289 |
+
}
|
290 |
+
if(!isset($option2['sfsi_plus_wechat_scan_image'])){
|
291 |
+
$option2['sfsi_plus_wechat_scan_image'] = 'no';
|
292 |
+
}
|
293 |
+
|
294 |
+
update_option('sfsi_plus_section2_options', serialize($option2));
|
295 |
+
}
|
296 |
+
/* section3 */
|
297 |
+
$option3 = unserialize(get_option('sfsi_plus_section3_options',false));
|
298 |
+
if(isset($option3) && !empty($option3))
|
299 |
+
{
|
300 |
+
if(!isset($option3['sfsi_plus_mouseover_effect_type'])){
|
301 |
+
$option3['sfsi_plus_mouseover_effect_type'] = 'same_icons';
|
302 |
+
}
|
303 |
+
if(!isset($option3['mouseover_other_icons_transition_effect'])){
|
304 |
+
$option3['mouseover_other_icons_transition_effect'] = 'flip';
|
305 |
+
}
|
306 |
+
|
307 |
+
if(!isset($option3['sfsi_plus_premium_icons_design_box'])){
|
308 |
+
$option3['sfsi_plus_premium_icons_design_box'] = 'no';
|
309 |
+
}
|
310 |
+
|
311 |
+
update_option('sfsi_plus_section3_options', serialize($option3));
|
312 |
+
}
|
313 |
+
/* section4 */
|
314 |
+
$option4 = unserialize(get_option('sfsi_plus_section4_options',false));
|
315 |
+
if(isset($option4) && !empty($option4) && !isset($option4['sfsi_plus_premium_count_box']))
|
316 |
+
{
|
317 |
+
$option4['sfsi_plus_premium_count_box'] = 'no';
|
318 |
+
update_option('sfsi_plus_section4_options', serialize($option4));
|
319 |
+
}
|
320 |
+
/* section7 */
|
321 |
+
$option7 = unserialize(get_option('sfsi_plus_section7_options',false));
|
322 |
+
if(isset($option7) && !empty($option7) && !isset($option7['sfsi_plus_premium_popup_box']))
|
323 |
+
{
|
324 |
+
$option7['sfsi_plus_premium_popup_box'] = 'no';
|
325 |
+
update_option('sfsi_plus_section7_options', serialize($option7));
|
326 |
+
}
|
327 |
+
/* section8 */
|
328 |
+
$option8 = unserialize(get_option('sfsi_plus_section8_options',false));
|
329 |
+
if(isset($option8) && !empty($option8) && !isset($option8['sfsi_plus_show_premium_placement_box']))
|
330 |
+
{
|
331 |
+
$option8['sfsi_plus_show_premium_placement_box'] = 'no';
|
332 |
+
update_option('sfsi_plus_section8_options', serialize($option8));
|
333 |
+
}
|
334 |
+
$option4 = unserialize(get_option('sfsi_plus_section4_options',false));
|
335 |
+
if(isset($option4) && !empty($option4) && !isset($option4['sfsi_plus_instagram_clientid']))
|
336 |
+
{
|
337 |
+
$option4['sfsi_plus_instagram_clientid'] = '';
|
338 |
+
$option4['sfsi_plus_instagram_appurl'] = '';
|
339 |
+
$option4['sfsi_plus_instagram_token'] = '';
|
340 |
+
update_option('sfsi_plus_section4_options', serialize($option4));
|
341 |
+
}
|
342 |
+
if(isset($option8["sfsi_plus_display_button_type"]) && (""==$option8["sfsi_plus_display_button_type"] || "yes"==$option8["sfsi_plus_display_button_type"]) ) {
|
343 |
+
$option8["sfsi_plus_display_button_type"] = "standard_buttons";
|
344 |
+
}
|
345 |
+
sfsi_plus_remove_google();
|
346 |
+
// Add this removed in version 2.9.3, removing values from section 1 & section 6 & setting notice display value
|
347 |
+
sfsi_plus_was_displaying_addthis();
|
348 |
+
}
|
349 |
+
function sfsi_plus_activate_plugin()
|
350 |
+
{
|
351 |
+
/* check for CURL enable at server */
|
352 |
+
add_option('sfsi_plus_plugin_do_activation_redirect', true);
|
353 |
+
// sfsi_plus_curl_enable_notice();
|
354 |
+
|
355 |
+
if(!get_option('sfsi_plus_new_show_notification'))
|
356 |
+
{
|
357 |
+
add_option("sfsi_plus_new_show_notification", "yes");
|
358 |
+
}
|
359 |
+
|
360 |
+
if(!get_option('sfsi_plus_show_premium_cumulative_count_notification'))
|
361 |
+
{
|
362 |
+
add_option("sfsi_plus_show_premium_cumulative_count_notification", "yes");
|
363 |
+
}
|
364 |
+
// var_dump(get_option('sfsi_plus_custom_icons'),'no');
|
365 |
+
|
366 |
+
if(!get_option('sfsi_plus_custom_icons'))
|
367 |
+
{
|
368 |
+
add_option("sfsi_plus_custom_icons", "no");
|
369 |
+
}
|
370 |
+
|
371 |
+
$options1=array('sfsi_plus_rss_display'=>'yes',
|
372 |
+
'sfsi_plus_email_display'=>'yes',
|
373 |
+
'sfsi_plus_facebook_display'=>'yes',
|
374 |
+
'sfsi_plus_twitter_display'=>'yes',
|
375 |
+
'sfsi_plus_pinterest_display'=>'no',
|
376 |
+
'sfsi_plus_instagram_display'=>'no',
|
377 |
+
'sfsi_plus_linkedin_display'=>'no',
|
378 |
+
'sfsi_plus_youtube_display'=>'no',
|
379 |
+
'sfsi_plus_houzz_display'=>'no',
|
380 |
+
'sfsi_plus_ok_display'=>'no',
|
381 |
+
'sfsi_plus_telegram_display'=>'no',
|
382 |
+
'sfsi_plus_vk_display'=>'no',
|
383 |
+
'sfsi_plus_weibo_display'=>'no',
|
384 |
+
'sfsi_plus_wechat_display'=>'no',
|
385 |
+
'sfsi_custom_display'=>'',
|
386 |
+
'sfsi_custom_files'=>'',
|
387 |
+
'sfsi_plus_premium_icons_box' =>'yes',
|
388 |
+
);
|
389 |
+
add_option('sfsi_plus_section1_options', serialize($options1));
|
390 |
+
|
391 |
+
if(get_option('sfsi_plus_feed_id') && get_option('sfsi_plus_redirect_url'))
|
392 |
+
{
|
393 |
+
$sffeeds["feed_id"] = sanitize_text_field(get_option('sfsi_plus_feed_id'));
|
394 |
+
$sffeeds["redirect_url"] = sanitize_text_field(get_option('sfsi_plus_redirect_url'));
|
395 |
+
$sffeeds = (object)$sffeeds;
|
396 |
+
}
|
397 |
+
else
|
398 |
+
{
|
399 |
+
$sffeeds = SFSI_PLUS_getFeedUrl();
|
400 |
+
}
|
401 |
+
|
402 |
+
/* Links and icons options */
|
403 |
+
$options2=array('sfsi_plus_rss_url'=>sfsi_plus_get_bloginfo('rss2_url'),
|
404 |
+
'sfsi_plus_rss_icons'=>'subscribe',
|
405 |
+
'sfsi_plus_email_url'=>$sffeeds->redirect_url,
|
406 |
+
'sfsi_plus_facebookPage_option'=>'no',
|
407 |
+
'sfsi_plus_facebookPage_url'=>'',
|
408 |
+
'sfsi_plus_facebookLike_option'=>'yes',
|
409 |
+
'sfsi_plus_facebookShare_option'=>'yes',
|
410 |
+
'sfsi_plus_twitter_followme'=>'no',
|
411 |
+
'sfsi_plus_twitter_followUserName'=>'',
|
412 |
+
'sfsi_plus_twitter_aboutPage'=>'yes',
|
413 |
+
'sfsi_plus_twitter_page'=>'no',
|
414 |
+
'sfsi_plus_twitter_pageURL'=>'',
|
415 |
+
'sfsi_plus_twitter_aboutPageText'=>'Hey, check out this cool site I found: www.yourname.com #Topic via@my_twitter_name',
|
416 |
+
'sfsi_plus_youtube_pageUrl'=>'',
|
417 |
+
'sfsi_plus_youtube_page'=>'no',
|
418 |
+
'sfsi_plus_youtube_follow'=>'no',
|
419 |
+
'sfsi_plus_youtubeusernameorid'=>'name',
|
420 |
+
'sfsi_plus_ytube_chnlid'=>'',
|
421 |
+
'sfsi_plus_ytube_user'=>'',
|
422 |
+
'sfsi_plus_pinterest_page'=>'no',
|
423 |
+
'sfsi_plus_pinterest_pageUrl'=>'',
|
424 |
+
'sfsi_plus_pinterest_pingBlog'=>'',
|
425 |
+
'sfsi_plus_instagram_page'=>'no',
|
426 |
+
'sfsi_plus_instagram_pageUrl'=>'',
|
427 |
+
'sfsi_plus_houzz_pageUrl'=>'',
|
428 |
+
'sfsi_plus_linkedin_page'=>'no',
|
429 |
+
'sfsi_plus_linkedin_pageURL'=>'',
|
430 |
+
'sfsi_plus_linkedin_follow'=>'no',
|
431 |
+
'sfsi_plus_linkedin_followCompany'=>'',
|
432 |
+
'sfsi_plus_linkedin_SharePage'=>'yes',
|
433 |
+
'sfsi_plus_linkedin_recommendBusines'=>'no',
|
434 |
+
'sfsi_plus_linkedin_recommendCompany'=>'',
|
435 |
+
'sfsi_plus_linkedin_recommendProductId'=>'',
|
436 |
+
'sfsi_plus_okVisit_option' => 'no',
|
437 |
+
'sfsi_plus_okVisit_url' => '',
|
438 |
+
'sfsi_plus_okSubscribe_option' => 'no',
|
439 |
+
'sfsi_plus_okSubscribe_userid' => '',
|
440 |
+
'sfsi_plus_okLike_option' => 'no',
|
441 |
+
'sfsi_plus_wechatFollow_option' => 'no',
|
442 |
+
'sfsi_plus_wechatShare_option' => 'no',
|
443 |
+
|
444 |
+
'sfsi_plus_telegramShare_option' => 'no',
|
445 |
+
'sfsi_plus_telegramMessage_option' => 'no',
|
446 |
+
'sfsi_plus_telegram_message' => '',
|
447 |
+
'sfsi_plus_telegram_username' => '',
|
448 |
+
'sfsi_plus_CustomIcon_links'=>'',
|
449 |
+
'sfsi_plus_premium_email_box'=>'yes',
|
450 |
+
'sfsi_plus_premium_facebook_box'=>'yes',
|
451 |
+
'sfsi_plus_premium_twitter_box'=>'yes',
|
452 |
+
);
|
453 |
+
add_option('sfsi_plus_section2_options', serialize($options2));
|
454 |
+
|
455 |
+
/* Design and animation option */
|
456 |
+
$options3= array(
|
457 |
+
'sfsi_plus_mouseOver' =>'no',
|
458 |
+
'sfsi_plus_mouseOver_effect' =>'fade_in',
|
459 |
+
'sfsi_plus_mouseover_effect_type' => 'same_icons',
|
460 |
+
'mouseover_other_icons_transition_effect' => 'flip',
|
461 |
+
'sfsi_plus_shuffle_icons' =>'no',
|
462 |
+
'sfsi_plus_shuffle_Firstload' =>'no',
|
463 |
+
'sfsi_plus_shuffle_interval' =>'no',
|
464 |
+
'sfsi_plus_shuffle_intervalTime' =>'',
|
465 |
+
'sfsi_plus_actvite_theme' =>'default',
|
466 |
+
'sfsi_plus_premium_icons_design_box'=>'yes',
|
467 |
+
);
|
468 |
+
|
469 |
+
add_option('sfsi_plus_section3_options', serialize($options3));
|
470 |
+
|
471 |
+
/* display counts options */
|
472 |
+
$options4=array('sfsi_plus_display_counts'=>'no',
|
473 |
+
'sfsi_plus_email_countsDisplay'=>'no',
|
474 |
+
'sfsi_plus_email_countsFrom'=>'source',
|
475 |
+
'sfsi_plus_email_manualCounts'=>'20',
|
476 |
+
'sfsi_plus_rss_countsDisplay'=>'no',
|
477 |
+
'sfsi_plus_rss_manualCounts'=>'20',
|
478 |
+
'sfsi_plus_facebook_PageLink'=>'',
|
479 |
+
'sfsi_plus_facebook_countsDisplay'=>'no',
|
480 |
+
'sfsi_plus_facebook_countsFrom'=>'manual',
|
481 |
+
'sfsi_plus_facebook_manualCounts'=>'20',
|
482 |
+
'sfsi_plus_twitter_countsDisplay'=>'no',
|
483 |
+
'sfsi_plus_twitter_countsFrom'=>'manual',
|
484 |
+
'sfsi_plus_twitter_manualCounts'=>'20',
|
485 |
+
'sfsi_plus_google_api_key'=>'',
|
486 |
+
'sfsi_plus_linkedIn_countsDisplay'=>'no',
|
487 |
+
'sfsi_plus_linkedIn_countsFrom'=>'manual',
|
488 |
+
'sfsi_plus_linkedIn_manualCounts'=>'20',
|
489 |
+
'sfsi_plus_ln_api_key'=>'',
|
490 |
+
'sfsi_plus_ln_secret_key'=>'',
|
491 |
+
'sfsi_plus_ln_oAuth_user_token'=>'',
|
492 |
+
'sfsi_plus_ln_company'=>'',
|
493 |
+
'sfsi_plus_youtube_user'=>'',
|
494 |
+
'sfsi_plus_youtube_channelId'=>'',
|
495 |
+
'sfsi_plus_youtube_countsDisplay'=>'no',
|
496 |
+
'sfsi_plus_youtube_countsFrom'=>'manual',
|
497 |
+
'sfsi_plus_youtube_manualCounts'=>'20',
|
498 |
+
'sfsi_plus_pinterest_countsDisplay'=>'no',
|
499 |
+
'sfsi_plus_pinterest_countsFrom'=>'manual',
|
500 |
+
'sfsi_plus_pinterest_manualCounts'=>'20',
|
501 |
+
'sfsi_plus_pinterest_user'=>'',
|
502 |
+
'sfsi_plus_pinterest_board'=>'',
|
503 |
+
'sfsi_plus_instagram_countsFrom'=>'manual',
|
504 |
+
'sfsi_plus_instagram_countsDisplay'=>'no',
|
505 |
+
'sfsi_plus_instagram_manualCounts'=>'20',
|
506 |
+
'sfsi_plus_instagram_User'=>'',
|
507 |
+
'sfsi_plus_instagram_clientid'=>'',
|
508 |
+
'sfsi_plus_instagram_appurl' =>'',
|
509 |
+
'sfsi_plus_instagram_token' =>'',
|
510 |
+
'sfsi_plus_houzz_countsDisplay'=>'no',
|
511 |
+
'sfsi_plus_houzz_countsFrom'=>'manual',
|
512 |
+
'sfsi_plus_houzz_manualCounts'=>'20',
|
513 |
+
'sfsi_plus_ok_countsDisplay' => 'no',
|
514 |
+
'sfsi_plus_vk_countsDisplay' => 'no',
|
515 |
+
'sfsi_plus_telegram_countsDisplay' => 'no',
|
516 |
+
'sfsi_plus_weibo_countsDisplay' => 'no',
|
517 |
+
'sfsi_plus_ok_manualCounts' => '20',
|
518 |
+
'sfsi_plus_vk_manualCounts' => '20',
|
519 |
+
'sfsi_plus_telegram_manualCounts' => '20',
|
520 |
+
'sfsi_plus_weibo_manualCounts' => '20',
|
521 |
+
'sfsi_plus_premium_count_box'=>'yes',
|
522 |
+
);
|
523 |
+
add_option('sfsi_plus_section4_options', serialize($options4));
|
524 |
+
|
525 |
+
$options5=array('sfsi_plus_icons_size'=>'40',
|
526 |
+
'sfsi_plus_icons_spacing'=>'5',
|
527 |
+
'sfsi_plus_icons_Alignment'=>'left',
|
528 |
+
'sfsi_plus_icons_perRow'=>'5',
|
529 |
+
'sfsi_plus_follow_icons_language'=>'Follow_en_US',
|
530 |
+
'sfsi_plus_facebook_icons_language'=>'Visit_us_en_US',
|
531 |
+
'sfsi_plus_twitter_icons_language'=>'Visit_us_en_US',
|
532 |
+
'sfsi_plus_icons_language'=>'en_US',
|
533 |
+
'sfsi_plus_icons_ClickPageOpen'=>'yes',
|
534 |
+
'sfsi_plus_icons_float'=>'no',
|
535 |
+
'sfsi_plus_disable_floaticons'=>'no',
|
536 |
+
'sfsi_plus_disable_viewport'=>'no',
|
537 |
+
'sfsi_plus_icons_floatPosition'=>'center-right',
|
538 |
+
'sfsi_plus_icons_stick'=>'no',
|
539 |
+
'sfsi_plus_rssIcon_order'=>'1',
|
540 |
+
'sfsi_plus_emailIcon_order'=>'2',
|
541 |
+
'sfsi_plus_facebookIcon_order'=>'3',
|
542 |
+
'sfsi_plus_twitterIcon_order'=>'4',
|
543 |
+
'sfsi_plus_youtubeIcon_order'=>'5',
|
544 |
+
'sfsi_plus_pinterestIcon_order'=>'7',
|
545 |
+
'sfsi_plus_linkedinIcon_order'=>'8',
|
546 |
+
'sfsi_plus_instagramIcon_order'=>'9',
|
547 |
+
'sfsi_plus_houzzIcon_order'=>'10',
|
548 |
+
'sfsi_plus_telegramIcon_order'=>'22',
|
549 |
+
'sfsi_plus_vkIcon_order'=>'23',
|
550 |
+
'sfsi_plus_okIcon_order'=>'24',
|
551 |
+
'sfsi_plus_weiboIcon_order'=>'25',
|
552 |
+
'sfsi_plus_wechatIcon_order'=>'26',
|
553 |
+
'sfsi_plus_CustomIcons_order'=>'',
|
554 |
+
'sfsi_plus_rss_MouseOverText'=>'RSS',
|
555 |
+
'sfsi_plus_email_MouseOverText'=>'Follow by Email',
|
556 |
+
'sfsi_plus_twitter_MouseOverText'=>'Twitter',
|
557 |
+
'sfsi_plus_facebook_MouseOverText'=>'Facebook',
|
558 |
+
'sfsi_plus_linkedIn_MouseOverText'=>'LinkedIn',
|
559 |
+
'sfsi_plus_pinterest_MouseOverText'=>'Pinterest',
|
560 |
+
'sfsi_plus_instagram_MouseOverText'=>'Instagram',
|
561 |
+
'sfsi_plus_telegram_MouseOverText'=>'Telegram',
|
562 |
+
'sfsi_plus_vk_MouseOverText'=>'Vk',
|
563 |
+
'sfsi_plus_houzz_MouseOverText'=>'Houzz',
|
564 |
+
'sfsi_plus_youtube_MouseOverText'=>'YouTube',
|
565 |
+
'sfsi_plus_ok_MouseOverText' => "Ok",
|
566 |
+
|
567 |
+
'sfsi_plus_vk_MouseOverText' => "Vk",
|
568 |
+
'sfsi_plus_weibo_MouseOverText' => "Weibo",
|
569 |
+
'sfsi_plus_wechat_MouseOverText' => "Wechat",
|
570 |
+
'sfsi_plus_custom_MouseOverTexts'=>'',
|
571 |
+
'sfsi_plus_premium_size_box'=>'yes',
|
572 |
+
'sfsi_plus_custom_social_hide'=>'no',
|
573 |
+
'sfsi_pplus_icons_suppress_errors'=>'no',
|
574 |
+
);
|
575 |
+
add_option('sfsi_plus_section5_options', serialize($options5));
|
576 |
+
|
577 |
+
/* post options */
|
578 |
+
$options6=array('sfsi_plus_show_Onposts'=>'no',
|
579 |
+
'sfsi_plus_show_Onbottom'=>'no',
|
580 |
+
'sfsi_plus_icons_postPositon'=>'source',
|
581 |
+
'sfsi_plus_icons_alignment'=>'center-right',
|
582 |
+
'sfsi_plus_rss_countsDisplay'=>'no',
|
583 |
+
'sfsi_plus_textBefor_icons'=>'Please follow and like us:',
|
584 |
+
'sfsi_plus_icons_DisplayCounts'=>'no');
|
585 |
+
add_option('sfsi_plus_section6_options', serialize($options6));
|
586 |
+
|
587 |
+
/* icons pop options */
|
588 |
+
$options7=array('sfsi_plus_show_popup'=>'no',
|
589 |
+
'sfsi_plus_popup_text'=>'Enjoy this blog? Please spread the word :)',
|
590 |
+
'sfsi_plus_popup_background_color'=>'#eff7f7',
|
591 |
+
'sfsi_plus_popup_border_color'=>'#f3faf2',
|
592 |
+
'sfsi_plus_popup_border_thickness'=>'1',
|
593 |
+
'sfsi_plus_popup_border_shadow'=>'yes',
|
594 |
+
'sfsi_plus_popup_font'=>'Helvetica,Arial,sans-serif',
|
595 |
+
'sfsi_plus_popup_fontSize'=>'30',
|
596 |
+
'sfsi_plus_popup_fontStyle'=>'normal',
|
597 |
+
'sfsi_plus_popup_fontColor'=>'#000000',
|
598 |
+
'sfsi_plus_Show_popupOn'=>'none',
|
599 |
+
'sfsi_plus_Show_popupOn_PageIDs'=>'',
|
600 |
+
'sfsi_plus_Shown_pop'=>'ETscroll',
|
601 |
+
'sfsi_plus_Shown_popupOnceTime'=>'',
|
602 |
+
'sfsi_plus_Shown_popuplimitPerUserTime'=>'',
|
603 |
+
'sfsi_plus_premium_popup_box' =>'yes',
|
604 |
+
|
605 |
+
);
|
606 |
+
add_option('sfsi_plus_section7_options', serialize($options7));
|
607 |
+
|
608 |
+
/*options that are added in the third question*/
|
609 |
+
if(get_option('sfsi_plus_section4_options',false))
|
610 |
+
$option4= unserialize(get_option('sfsi_plus_section4_options',false));
|
611 |
+
if(get_option('sfsi_plus_section5_options',false))
|
612 |
+
$option5= unserialize(get_option('sfsi_plus_section5_options',false));
|
613 |
+
if(get_option('sfsi_plus_section6_options',false))
|
614 |
+
$option6= unserialize(get_option('sfsi_plus_section6_options',false));
|
615 |
+
|
616 |
+
/*if($option6['sfsi_plus_show_Onposts'] == 'yes')
|
617 |
+
{
|
618 |
+
$sfsi_plus_display_button_type = 'standard_buttons';
|
619 |
+
}
|
620 |
+
else
|
621 |
+
{
|
622 |
+
$sfsi_plus_display_button_type = '';
|
623 |
+
}*/
|
624 |
+
|
625 |
+
$options8 = array(
|
626 |
+
'sfsi_plus_show_via_widget'=>'no',
|
627 |
+
'sfsi_plus_float_on_page'=> $option5['sfsi_plus_icons_float'],
|
628 |
+
'sfsi_plus_float_page_position'=>$option5['sfsi_plus_icons_floatPosition'],
|
629 |
+
'sfsi_plus_icons_floatMargin_top'=>'',
|
630 |
+
'sfsi_plus_icons_floatMargin_bottom'=>'',
|
631 |
+
'sfsi_plus_icons_floatMargin_left'=>'',
|
632 |
+
'sfsi_plus_icons_floatMargin_right'=>'',
|
633 |
+
'sfsi_plus_post_icons_size'=>$option5['sfsi_plus_icons_size'],
|
634 |
+
'sfsi_plus_post_icons_spacing'=>$option5['sfsi_plus_icons_spacing'],
|
635 |
+
'sfsi_plus_show_Onposts'=>$option6['sfsi_plus_show_Onposts'],
|
636 |
+
'sfsi_plus_textBefor_icons'=>$option6['sfsi_plus_textBefor_icons'],
|
637 |
+
'sfsi_plus_icons_alignment'=>$option6['sfsi_plus_icons_alignment'],
|
638 |
+
'sfsi_plus_icons_DisplayCounts'=>$option6['sfsi_plus_icons_DisplayCounts'],
|
639 |
+
'sfsi_plus_place_item_manually'=>'no',
|
640 |
+
/*'sfsi_plus_show_item_onposts'=>'no',*/
|
641 |
+
'sfsi_plus_show_item_onposts'=> $option6['sfsi_plus_show_Onposts'],
|
642 |
+
'sfsi_plus_display_button_type'=> 'standard_buttons',
|
643 |
+
'sfsi_plus_display_before_posts'=>'no',
|
644 |
+
'sfsi_plus_display_after_posts'=>$option6['sfsi_plus_show_Onposts'],
|
645 |
+
'sfsi_plus_display_on_postspage'=>'no',
|
646 |
+
'sfsi_plus_display_on_homepage'=>'no',
|
647 |
+
'sfsi_plus_display_before_blogposts'=>'no',
|
648 |
+
'sfsi_plus_display_after_blogposts'=>'no',
|
649 |
+
'sfsi_plus_rectsub'=>'yes',
|
650 |
+
'sfsi_plus_rectfb'=>'yes',
|
651 |
+
'sfsi_plus_rectgp'=>'no',
|
652 |
+
'sfsi_plus_recttwtr'=>'yes',
|
653 |
+
'sfsi_plus_rectpinit'=>'yes',
|
654 |
+
'sfsi_plus_rectfbshare'=>'yes',
|
655 |
+
'sfsi_plus_show_premium_placement_box'=>'yes');
|
656 |
+
|
657 |
+
add_option('sfsi_plus_section8_options', serialize($options8));
|
658 |
+
|
659 |
+
/*Some additional option added*/
|
660 |
+
update_option('sfsi_plus_feed_id' , sanitize_text_field($sffeeds->feed_id));
|
661 |
+
update_option('sfsi_plus_redirect_url' , sanitize_text_field($sffeeds->redirect_url));
|
662 |
+
|
663 |
+
add_option('sfsi_plus_installDate',date('Y-m-d h:i:s'));
|
664 |
+
add_option('sfsi_plus_RatingDiv','no');
|
665 |
+
update_option('sfsi_plus_activate', 1);
|
666 |
+
|
667 |
+
/*Changes in option 2*/
|
668 |
+
$get_option2 = unserialize(get_option('sfsi_plus_section2_options',false));
|
669 |
+
$get_option2['sfsi_plus_email_url'] = $sffeeds->redirect_url;
|
670 |
+
update_option('sfsi_plus_section2_options', serialize($get_option2));
|
671 |
+
|
672 |
+
$addThisDismissed = get_option('sfsi_addThis_icon_removal_notice_dismissed',false);
|
673 |
+
|
674 |
+
if(!isset($addThisDismissed)){
|
675 |
+
update_option('sfsi_addThis_icon_removal_notice_dismissed',true);
|
676 |
+
}
|
677 |
+
|
678 |
+
/*Activation Setup for (specificfeed)*/
|
679 |
+
sfsi_plus_setUpfeeds($sffeeds->feed_id);
|
680 |
+
sfsi_plus_updateFeedPing('N',$sffeeds->feed_id);
|
681 |
+
|
682 |
+
/*Extra important options*/
|
683 |
+
$sfsi_plus_instagram_sf_count = array(
|
684 |
+
"date_sf" => strtotime(date("Y-m-d")),
|
685 |
+
"date_instagram" => strtotime(date("Y-m-d")),
|
686 |
+
"sfsi_plus_sf_count" => "",
|
687 |
+
"sfsi_plus_instagram_count" => ""
|
688 |
+
);
|
689 |
+
add_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
|
690 |
+
sfsi_plus_remove_google();
|
691 |
+
}
|
692 |
+
/* end function */
|
693 |
+
/* deactivate plugin */
|
694 |
+
function sfsi_plus_deactivate_plugin()
|
695 |
+
{
|
696 |
+
global $wpdb;
|
697 |
+
sfsi_plus_updateFeedPing('Y',sanitize_text_field(get_option('sfsi_plus_feed_id')));
|
698 |
+
|
699 |
+
} /* end function */
|
700 |
+
function sfsi_plus_remove_google(){
|
701 |
+
$option1 = unserialize(get_option('sfsi_plus_section1_options',false));
|
702 |
+
if(isset($option1['sfsi_plus_google_display'])){
|
703 |
+
unset($option1['sfsi_plus_google_display']);
|
704 |
+
}
|
705 |
+
update_option('sfsi_plus_section1_options', serialize($option1));
|
706 |
+
|
707 |
+
$option2 = unserialize(get_option('sfsi_plus_section2_options',false));
|
708 |
+
if(isset($option2['sfsi_plus_premium_google_box'])){
|
709 |
+
unset($option2['sfsi_plus_premium_google_box']);
|
710 |
+
}
|
711 |
+
if(isset($option2['sfsi_plus_google_page'])){
|
712 |
+
unset($option2['sfsi_plus_google_page']);
|
713 |
+
}
|
714 |
+
if(isset($option2['sfsi_plus_google_pageURL'])){
|
715 |
+
unset($option2['sfsi_plus_google_pageURL']);
|
716 |
+
}
|
717 |
+
if(isset($option2['sfsi_plus_googleLike_option'])){
|
718 |
+
unset($option2['sfsi_plus_googleLike_option']);
|
719 |
+
}
|
720 |
+
if(isset($option2['sfsi_plus_googleShare_option'])){
|
721 |
+
unset($option2['sfsi_plus_googleShare_option']);
|
722 |
+
}
|
723 |
+
update_option('sfsi_plus_section2_options', serialize($option2));
|
724 |
+
|
725 |
+
$option4 = unserialize(get_option('sfsi_plus_section4_options',false));
|
726 |
+
if(isset($option4['sfsi_plus_google_api_key'])){
|
727 |
+
unset($option4['sfsi_plus_google_api_key']);
|
728 |
+
}
|
729 |
+
if(isset($option4['sfsi_plus_google_countsDisplay'])){
|
730 |
+
unset($option4['sfsi_plus_google_countsDisplay']);
|
731 |
+
}
|
732 |
+
if(isset($option4['sfsi_plus_google_countsFrom'])){
|
733 |
+
unset($option4['sfsi_plus_google_countsFrom']);
|
734 |
+
}
|
735 |
+
if(isset($option4['sfsi_plus_google_manualCounts'])){
|
736 |
+
unset($option4['sfsi_plus_google_manualCounts']);
|
737 |
+
}
|
738 |
+
update_option('sfsi_plus_section4_options', serialize($option4));
|
739 |
+
|
740 |
+
$option5 = unserialize(get_option('sfsi_plus_section5_options',false));
|
741 |
+
if(isset($option5['sfsi_plus_google_icons_language'])){
|
742 |
+
unset($option5['sfsi_plus_google_icons_language']);
|
743 |
+
}
|
744 |
+
if(isset($option5['sfsi_plus_googleIcon_order'])){
|
745 |
+
unset($option5['sfsi_plus_googleIcon_order']);
|
746 |
+
}
|
747 |
+
if(isset($option5['sfsi_plus_google_MouseOverText'])){
|
748 |
+
unset($option5['sfsi_plus_google_MouseOverText']);
|
749 |
+
}
|
750 |
+
update_option('sfsi_plus_section5_options', serialize($option5));
|
751 |
+
|
752 |
+
}
|
753 |
+
function sfsi_plus_updateFeedPing($status,$feed_id)
|
754 |
+
{
|
755 |
+
$body = array(
|
756 |
+
'feed_id' => $feed_id,
|
757 |
+
'status' => $status
|
758 |
+
);
|
759 |
+
|
760 |
+
$args = array(
|
761 |
+
'body' => $body,
|
762 |
+
'timeout' => '5',
|
763 |
+
'redirection' => '5',
|
764 |
+
'httpversion' => '1.0',
|
765 |
+
'blocking' => true,
|
766 |
+
'headers' => array(),
|
767 |
+
'cookies' => array()
|
768 |
+
);
|
769 |
+
|
770 |
+
$resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/pingfeed', $args );
|
771 |
+
return $resp;
|
772 |
+
}
|
773 |
+
/* unistall plugin function */
|
774 |
+
function sfsi_plus_Unistall_plugin()
|
775 |
+
{ global $wpdb;
|
776 |
+
/* Delete option for which icons to display */
|
777 |
+
delete_option('sfsi_plus_section1_options');
|
778 |
+
delete_option('sfsi_plus_section2_options');
|
779 |
+
delete_option('sfsi_plus_section3_options');
|
780 |
+
delete_option('sfsi_plus_section4_options');
|
781 |
+
delete_option('sfsi_plus_section5_options');
|
782 |
+
delete_option('sfsi_plus_section6_options');
|
783 |
+
delete_option('sfsi_plus_section7_options');
|
784 |
+
delete_option('sfsi_plus_section8_options');
|
785 |
+
delete_option('sfsi_plus_section9_options');
|
786 |
+
delete_option('sfsi_plus_feed_id');
|
787 |
+
delete_option('sfsi_plus_redirect_url');
|
788 |
+
delete_option('sfsi_plus_footer_sec');
|
789 |
+
delete_option('sfsi_plus_activate');
|
790 |
+
delete_option("sfsi_plus_pluginVersion");
|
791 |
+
delete_option("sfsi_plus_verificatiom_code");
|
792 |
+
delete_option("sfsi_plus_curlErrorNotices");
|
793 |
+
delete_option("sfsi_plus_curlErrorMessage");
|
794 |
+
|
795 |
+
delete_option("adding_plustags");
|
796 |
+
delete_option("sfsi_plus_installDate");
|
797 |
+
delete_option("sfsi_plus_RatingDiv");
|
798 |
+
delete_option("sfsi_plus_instagram_sf_count");
|
799 |
+
delete_option("sfsi_plus_new_show_notification");
|
800 |
+
delete_option("sfsi_plus_show_Setting_mobile_notification");
|
801 |
+
delete_option("sfsi_plus_show_premium_notification");
|
802 |
+
delete_option("sfsi_plus_show_notification");
|
803 |
+
delete_option('sfsi_plus_serverphpVersionnotification');
|
804 |
+
delete_option("sfsi_plus_show_premium_cumulative_count_notification");
|
805 |
+
|
806 |
+
delete_option("sfsi_addThis_icon_removal_notice_dismissed");
|
807 |
+
delete_option('widget_sfsi-plus-widget');
|
808 |
+
delete_option('widget_sfsiplus_subscriber_widget');
|
809 |
+
|
810 |
+
delete_option('fs_active_plugins');
|
811 |
+
delete_option('fs_accounts');
|
812 |
+
delete_option('fs_api_cache');
|
813 |
+
delete_option('fs_debug_mode');
|
814 |
+
}
|
815 |
+
/* end function */
|
816 |
+
/* check CUrl */
|
817 |
+
function sfsi_plus_curl_enable_notice(){
|
818 |
+
if(!function_exists('curl_init')) {
|
819 |
+
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;
|
820 |
+
}
|
821 |
+
}
|
822 |
+
|
823 |
+
/* add admin menus */
|
824 |
+
function sfsi_plus_admin_menu() {
|
825 |
+
add_menu_page(
|
826 |
+
'Ultimate Social Media PLUS',
|
827 |
+
'Ultimate Social Media PLUS',
|
828 |
+
'administrator',
|
829 |
+
'sfsi-plus-options',
|
830 |
+
'sfsi_plus_options_page',
|
831 |
+
plugins_url( 'images/logo.png' , dirname(__FILE__) )
|
832 |
+
);
|
833 |
+
}
|
834 |
+
function sfsi_plus_options_page(){ include SFSI_PLUS_DOCROOT . '/views/sfsi_options_view.php'; } /* end function */
|
835 |
+
function sfsi_plus_about_page(){ include SFSI_PLUS_DOCROOT . '/views/sfsi_aboutus.php'; } /* end function */
|
836 |
+
if ( is_admin() ){
|
837 |
+
add_action('admin_menu', 'sfsi_plus_admin_menu');
|
838 |
+
}
|
839 |
+
|
840 |
+
/* fetch rss url from specificfeeds */
|
841 |
+
function SFSI_PLUS_getFeedUrl()
|
842 |
+
{
|
843 |
+
$body = array(
|
844 |
+
'web_url' => get_bloginfo('url'),
|
845 |
+
'feed_url' => sfsi_plus_get_bloginfo('rss2_url'),
|
846 |
+
'email' => '',
|
847 |
+
'subscriber_type' => 'PLWP'
|
848 |
+
);
|
849 |
+
|
850 |
+
$args = array(
|
851 |
+
'body' => $body,
|
852 |
+
'blocking' => true,
|
853 |
+
'user-agent' => 'sf rss request',
|
854 |
+
'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
|
855 |
+
'sslverify' => true
|
856 |
+
);
|
857 |
+
$resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/plugin_setup', $args );
|
858 |
+
if ( is_wp_error( $resp ) ) {
|
859 |
+
// var_dump($resp);
|
860 |
+
// update_option("sfsi_plus_curlErrorNotices", "yes");
|
861 |
+
// update_option("sfsi_plus_curlErrorMessage", $resp->get_error_message());
|
862 |
+
} else {
|
863 |
+
update_option("sfsi_plus_curlErrorNotices", "no");
|
864 |
+
update_option("sfsi_plus_curlErrorMessage", "");
|
865 |
+
$resp = json_decode($resp['body']);
|
866 |
+
}
|
867 |
+
$feed_url = stripslashes_deep($resp->redirect_url);
|
868 |
+
return $resp;exit;
|
869 |
+
}
|
870 |
+
/* fetch rss url from specificfeeds on */
|
871 |
+
function SFSI_PLUS_updateFeedUrl()
|
872 |
+
{
|
873 |
+
$body = array(
|
874 |
+
'feed_id' => sanitize_text_field(get_option('sfsi_plus_feed_id')),
|
875 |
+
'web_url' => get_bloginfo('url'),
|
876 |
+
'feed_url' => sfsi_plus_get_bloginfo('rss2_url'),
|
877 |
+
'email' => ''
|
878 |
+
);
|
879 |
+
|
880 |
+
$args = array(
|
881 |
+
'body' => $body,
|
882 |
+
'blocking' => true,
|
883 |
+
'user-agent' => 'sf rss request',
|
884 |
+
'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
|
885 |
+
'sslverify' => true
|
886 |
+
);
|
887 |
+
$resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/updateFeedPlugin', $args );
|
888 |
+
if ( is_wp_error( $resp ) ) {
|
889 |
+
// var_dump($resp);
|
890 |
+
// update_option("sfsi_plus_curlErrorNotices", "yes");
|
891 |
+
// update_option("sfsi_plus_curlErrorMessage", $resp->get_error_message());
|
892 |
+
} else {
|
893 |
+
update_option("sfsi_plus_curlErrorNotices", "no");
|
894 |
+
update_option("sfsi_plus_curlErrorMessage", "");
|
895 |
+
$resp = json_decode($resp['body']);
|
896 |
+
}
|
897 |
+
|
898 |
+
$feed_url = stripslashes_deep($resp->redirect_url);
|
899 |
+
return $resp;exit;
|
900 |
+
}
|
901 |
+
/* add sf tags */
|
902 |
+
function sfsi_plus_setUpfeeds($feed_id)
|
903 |
+
{
|
904 |
+
$args = array(
|
905 |
+
'blocking' => true,
|
906 |
+
'user-agent' => 'sf rss request',
|
907 |
+
'header' => array("Content-Type"=>"application/json"),
|
908 |
+
'sslverify' => true
|
909 |
+
);
|
910 |
+
$resp = wp_remote_get( 'https://www.specificfeeds.com/rssegtcrons/download_rssmorefeed_data_single/'.$feed_id."/Y", $args );
|
911 |
+
if ( is_wp_error( $resp ) ) {
|
912 |
+
// var_dump($resp);
|
913 |
+
//update_option("sfsi_plus_curlErrorNotices", "yes");
|
914 |
+
//update_option("sfsi_plus_curlErrorMessage", $resp->get_error_message());
|
915 |
+
}else{
|
916 |
+
update_option("sfsi_plus_curlErrorNotices", "no");
|
917 |
+
update_option("sfsi_plus_curlErrorMessage", "");
|
918 |
+
}
|
919 |
+
}
|
920 |
+
/* admin notice if wp_head is missing in active theme */
|
921 |
+
function sfsi_plus_check_wp_head() {
|
922 |
+
|
923 |
+
$template_directory = get_template_directory();
|
924 |
+
$header = $template_directory . '/header.php';
|
925 |
+
|
926 |
+
if (is_file($header)) {
|
927 |
+
|
928 |
+
$search_header = "wp_head";
|
929 |
+
$file_lines = @file($header);
|
930 |
+
$foind_header=0;
|
931 |
+
foreach ($file_lines as $line)
|
932 |
+
{
|
933 |
+
$searchCount = substr_count($line, $search_header);
|
934 |
+
if ($searchCount > 0)
|
935 |
+
{
|
936 |
+
return true;
|
937 |
+
}
|
938 |
+
}
|
939 |
+
$path=pathinfo($_SERVER['REQUEST_URI']);
|
940 |
+
if($path['basename']=="themes.php" || $path['basename']=="theme-editor.php" || $path['basename']=="admin.php?page=sfsi-plus-options")
|
941 |
+
{
|
942 |
+
$currentTheme = wp_get_theme();
|
943 |
+
|
944 |
+
if(isset($currentTheme) && !empty($currentTheme) && $currentTheme->get( 'Name' ) != "Customizr"){
|
945 |
+
|
946 |
+
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 )." <?php wp_head(); ?> ".__('Please enter it just before the following line of your header.php file:',SFSI_PLUS_DOMAIN)." </head> ".__('Go to your theme editor: ',SFSI_PLUS_DOMAIN)."<a href=\"theme-editor.php\">".__('click here', SFSI_PLUS_DOMAIN )."</a>.</p></div>";
|
947 |
+
}
|
948 |
+
|
949 |
+
}
|
950 |
+
}
|
951 |
+
}
|
952 |
+
/* admin notice if wp_footer is missing in active theme */
|
953 |
+
function sfsi_plus_check_wp_footer() {
|
954 |
+
$template_directory = get_template_directory();
|
955 |
+
$footer = $template_directory . '/footer.php';
|
956 |
+
|
957 |
+
if (is_file($footer)) {
|
958 |
+
$search_string = "wp_footer";
|
959 |
+
$file_lines = @file($footer);
|
960 |
+
|
961 |
+
foreach ($file_lines as $line) {
|
962 |
+
$searchCount = substr_count($line, $search_string);
|
963 |
+
if ($searchCount > 0) {
|
964 |
+
return true;
|
965 |
+
}
|
966 |
+
}
|
967 |
+
$path=pathinfo($_SERVER['REQUEST_URI']);
|
968 |
+
|
969 |
+
if($path['basename']=="themes.php" || $path['basename']=="theme-editor.php" || $path['basename']=="admin.php?page=sfsi-plus-options")
|
970 |
+
{
|
971 |
+
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)." <?php wp_footer(); ?> ".__("Go to your theme editor: ", SFSI_PLUS_DOMAIN)."<a href=\"theme-editor.php\">".__('click here', SFSI_PLUS_DOMAIN )."</a>.</p></div>";
|
972 |
+
}
|
973 |
+
}
|
974 |
+
}
|
975 |
+
/* admin notice for first time installation */
|
976 |
+
function sfsi_plus_activation_msg()
|
977 |
+
{
|
978 |
+
global $wp_version;
|
979 |
+
|
980 |
+
if(get_option('sfsi_plus_activate',false)==1)
|
981 |
+
{
|
982 |
+
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>";
|
983 |
+
update_option('sfsi_plus_activate',0);
|
984 |
+
}
|
985 |
+
|
986 |
+
$path=pathinfo($_SERVER['REQUEST_URI']);
|
987 |
+
update_option('sfsi_plus_activate',0);
|
988 |
+
|
989 |
+
if($wp_version < 3.5 && $path['basename'] == "admin.php?page=sfsi-plus-options")
|
990 |
+
{
|
991 |
+
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>";
|
992 |
+
}
|
993 |
+
}
|
994 |
+
/* admin notice for first time installation */
|
995 |
+
function sfsi_plus_rating_msg()
|
996 |
+
{
|
997 |
+
global $wp_version;
|
998 |
+
$install_date = get_option('sfsi_plus_installDate');
|
999 |
+
$display_date = date('Y-m-d h:i:s');
|
1000 |
+
$datetime1 = new DateTime($install_date);
|
1001 |
+
$datetime2 = new DateTime($display_date);
|
1002 |
+
$diff_inrval = round(($datetime2->format('U') - $datetime1->format('U')) / (60*60*24));
|
1003 |
+
|
1004 |
+
if($diff_inrval >= 30 && get_option('sfsi_plus_RatingDiv')=="no")
|
1005 |
+
{ ?>
|
1006 |
+
<style >
|
1007 |
+
.sfsi_plus_plg-rating-dismiss:before {
|
1008 |
+
background: none;
|
1009 |
+
color: #72777c;
|
1010 |
+
content: "\f153";
|
1011 |
+
display: block;
|
1012 |
+
font: normal 16px/20px dashicons;
|
1013 |
+
speak: none;
|
1014 |
+
height: 20px;
|
1015 |
+
text-align: center;
|
1016 |
+
width: 20px;
|
1017 |
+
-webkit-font-smoothing: antialiased;
|
1018 |
+
-moz-osx-font-smoothing: grayscale;
|
1019 |
+
}
|
1020 |
+
.sfsi_plus_plg-rating-dismiss{
|
1021 |
+
position: absolute;
|
1022 |
+
top: 45px;
|
1023 |
+
right: 15px;
|
1024 |
+
border: none;
|
1025 |
+
margin: 0;
|
1026 |
+
padding: 9px;
|
1027 |
+
background: none;
|
1028 |
+
color: #72777c;
|
1029 |
+
cursor: pointer;
|
1030 |
+
}
|
1031 |
+
</style>
|
1032 |
+
<div class="sfsi_plus_sfwp_fivestar notice notice-success">
|
1033 |
+
<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>
|
1034 |
+
<ul class="sfwp_fivestar_ul">
|
1035 |
+
<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>
|
1036 |
+
<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>
|
1037 |
+
<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>
|
1038 |
+
</ul>
|
1039 |
+
<button type="button" class="sfsi_plus_plg-rating-dismiss"><span class="screen-reader-text"><?php echo __('Dismiss this notice.',SFSI_PLUS_DOMAIN); ?></span></button>
|
1040 |
+
</div>
|
1041 |
+
<script>
|
1042 |
+
jQuery( document ).ready(function( $ ) {
|
1043 |
+
$('.sfsi_plus_plg-rating-dismiss').css({'top':$('.sfsi_plus_sfwp_fivestar')[0].offsetTop+'px'})
|
1044 |
+
var sel1 = jQuery('.sfsiHideRating');
|
1045 |
+
var sel2 = jQuery('.sfsi_plus_plg-rating-dismiss');
|
1046 |
+
function sfsi_plus_hide_rating(element){
|
1047 |
+
element.on('click',function(){
|
1048 |
+
var data={'action':'plushideRating','nonce':'<?php echo wp_create_nonce('plus_plushideRating'); ?>'};
|
1049 |
+
jQuery.ajax({
|
1050 |
+
|
1051 |
+
url: "<?php echo admin_url( 'admin-ajax.php' ); ?>",
|
1052 |
+
type: "post",
|
1053 |
+
data: data,
|
1054 |
+
dataType: "json",
|
1055 |
+
async: !0,
|
1056 |
+
success: function(e) {
|
1057 |
+
if (e=="success") {
|
1058 |
+
jQuery('.sfsi_plus_sfwp_fivestar').slideUp('slow');
|
1059 |
+
}
|
1060 |
+
}
|
1061 |
+
});
|
1062 |
+
});
|
1063 |
+
}
|
1064 |
+
sfsi_plus_hide_rating(sel1);
|
1065 |
+
sfsi_plus_hide_rating(sel2);
|
1066 |
+
});
|
1067 |
+
</script>
|
1068 |
+
<?php
|
1069 |
+
}
|
1070 |
+
}
|
1071 |
+
add_action('wp_ajax_plushideRating','sfsi_plusHideRatingDiv');
|
1072 |
+
function sfsi_plusHideRatingDiv()
|
1073 |
+
{
|
1074 |
+
if ( !wp_verify_nonce( $_POST['nonce'], "plus_plushideRating")) {
|
1075 |
+
echo json_encode(array('res'=>"error")); exit;
|
1076 |
+
}
|
1077 |
+
if(!current_user_can('manage_options')){ echo json_encode(array('res'=>'not allowed'));die(); }
|
1078 |
+
update_option('sfsi_plus_RatingDiv','yes');
|
1079 |
+
echo json_encode(array("success")); exit;
|
1080 |
+
}
|
1081 |
+
/* add all admin message */
|
1082 |
+
add_action('admin_notices', 'sfsi_plus_activation_msg');
|
1083 |
+
add_action('admin_notices', 'sfsi_plus_rating_msg');
|
1084 |
+
add_action('admin_notices', 'sfsi_plus_check_wp_head');
|
1085 |
+
add_action('admin_notices', 'sfsi_plus_check_wp_footer');
|
1086 |
+
function sfsi_plus_pingVendor( $post_id )
|
1087 |
+
{
|
1088 |
+
global $wp,$wpdb;
|
1089 |
+
// If this is just a revision, don't send the email.
|
1090 |
+
if ( wp_is_post_revision( $post_id ) )
|
1091 |
+
return;
|
1092 |
+
|
1093 |
+
$post_data=get_post($post_id,ARRAY_A);
|
1094 |
+
if($post_data['post_status']=='publish' && $post_data['post_type']=='post') :
|
1095 |
+
|
1096 |
+
$categories = wp_get_post_categories($post_data['ID']);
|
1097 |
+
$cats='';
|
1098 |
+
$total=count($categories);
|
1099 |
+
$count=1;
|
1100 |
+
foreach($categories as $c)
|
1101 |
+
{
|
1102 |
+
$cat_data = get_category( $c );
|
1103 |
+
if($count==$total)
|
1104 |
+
{
|
1105 |
+
$cats.= $cat_data->name;
|
1106 |
+
}
|
1107 |
+
else
|
1108 |
+
{
|
1109 |
+
$cats.= $cat_data->name.',';
|
1110 |
+
}
|
1111 |
+
$count++;
|
1112 |
+
}
|
1113 |
+
|
1114 |
+
$postto_array = array(
|
1115 |
+
'feed_id' => sanitize_text_field(get_option('sfsi_plus_feed_id')),
|
1116 |
+
'title' => $post_data['post_title'],
|
1117 |
+
'description' => $post_data['post_content'],
|
1118 |
+
'link' => $post_data['guid'],
|
1119 |
+
'author' => get_the_author_meta('user_login', $post_data['post_author']),
|
1120 |
+
'category' => $cats,
|
1121 |
+
'pubDate' => $post_data['post_modified'],
|
1122 |
+
'rssurl' => sfsi_plus_get_bloginfo('rss2_url')
|
1123 |
+
);
|
1124 |
+
$args = array(
|
1125 |
+
'body' => $postto_array,
|
1126 |
+
'blocking' => true,
|
1127 |
+
'user-agent' => 'sf rss request',
|
1128 |
+
'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
|
1129 |
+
'sslverify' => true
|
1130 |
+
);
|
1131 |
+
$resp = wp_remote_post( 'https://www.specificfeeds.com/wordpress/updateFeedPlugin', $args );
|
1132 |
+
if ( is_wp_error( $resp ) ) {
|
1133 |
+
// update_option("sfsi_plus_curlErrorNotices", "yes");
|
1134 |
+
// update_option("sfsi_plus_curlErrorMessage", $resp->get_error_message());
|
1135 |
+
return false;
|
1136 |
+
} else {
|
1137 |
+
update_option("sfsi_plus_curlErrorNotices", "no");
|
1138 |
+
update_option("sfsi_plus_curlErrorMessage", "");
|
1139 |
+
$resp = json_decode($resp['body']);
|
1140 |
+
return true;
|
1141 |
+
}
|
1142 |
+
endif;
|
1143 |
+
}
|
1144 |
+
add_action( 'save_post', 'sfsi_plus_pingVendor' );
|
1145 |
+
|
1146 |
+
function sfsi_plus_was_displaying_addthis(){
|
1147 |
+
|
1148 |
+
$isDismissed = true;
|
1149 |
+
$sfsi_plus_section1 = unserialize(get_option('sfsi_plus_section1_options',false));
|
1150 |
+
$sfsi_plus_section8 = unserialize(get_option('sfsi_plus_section8_options',false));
|
1151 |
+
$sfsi_plus_addThiswasDisplayed_section1 = isset($sfsi_plus_section1['sfsi_plus_share_display']) && 'yes'== sanitize_text_field($sfsi_plus_section1['sfsi_plus_share_display']);
|
1152 |
+
|
1153 |
+
$sfsi_plus_addThiswasDisplayed_section8 = isset($sfsi_plus_section8['sfsi_plus_rectshr']) && 'yes'== sanitize_text_field($sfsi_plus_section8['sfsi_plus_rectshr']);
|
1154 |
+
|
1155 |
+
$isDisplayed = $sfsi_plus_addThiswasDisplayed_section1 || $sfsi_plus_addThiswasDisplayed_section8;
|
1156 |
+
|
1157 |
+
// If icon was displayed
|
1158 |
+
$isDismissed = false != $isDisplayed ? false : true;
|
1159 |
+
|
1160 |
+
update_option('sfsi_plus_addThis_icon_removal_notice_dismissed',$isDismissed);
|
1161 |
+
|
1162 |
+
if($sfsi_plus_addThiswasDisplayed_section1){
|
1163 |
+
unset($sfsi_plus_section1['sfsi_plus_share_display']);
|
1164 |
+
update_option('sfsi_plus_section1_options', serialize($sfsi_plus_section1) );
|
1165 |
+
}
|
1166 |
+
|
1167 |
+
if($sfsi_plus_addThiswasDisplayed_section8){
|
1168 |
+
unset($sfsi_plus_section8['sfsi_plus_rectshr']);
|
1169 |
+
update_option('sfsi_plus_section8_options', serialize($sfsi_plus_section8) );
|
1170 |
+
}
|
1171 |
+
}
|
1172 |
+
|
1173 |
?>
|
libs/sfsi_plus_subscribe_widget.php
CHANGED
@@ -1,288 +1,288 @@
|
|
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 |
-
jQuery(document).ready(function(e) {
|
14 |
-
jQuery("body").addClass("sfsi_plus_<?php echo get_option("sfsi_plus_pluginVersion"); ?>")
|
15 |
-
});
|
16 |
-
|
17 |
-
function sfsi_plus_processfurther(ref) {
|
18 |
-
var feed_id = '<?php echo $sfsi_plus_feediid ?>';
|
19 |
-
var feedtype = 8;
|
20 |
-
var email = jQuery(ref).find('input[name="data[Widget][email]"]').val();
|
21 |
-
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
|
22 |
-
if ((email != "Enter your email") && (filter.test(email))) {
|
23 |
-
if (feed_id != "") {
|
24 |
-
if (feedtype == "8") {
|
25 |
-
var url = "<?php echo $url; ?>" + feed_id + "/" + feedtype;
|
26 |
-
window.open('', "popupwindow", "scrollbars=yes,width=1080,height=760");
|
27 |
-
ref.target = "popupwindow";
|
28 |
-
ref.action = url;
|
29 |
-
return true;
|
30 |
-
} else {
|
31 |
-
return false;
|
32 |
-
}
|
33 |
-
}
|
34 |
-
} else {
|
35 |
-
alert("Please enter email address");
|
36 |
-
jQuery(ref).find('input[name="data[Widget][email]"]').focus();
|
37 |
-
return false;
|
38 |
-
}
|
39 |
-
}
|
40 |
-
</script>
|
41 |
-
<style>
|
42 |
-
.sfsi_plus_subscribe_Popinner {
|
43 |
-
<?php if ($option9['sfsi_plus_form_adjustment'] == 'yes') : ?>width: 100% !important;
|
44 |
-
height: auto !important;
|
45 |
-
<?php else : ?>width: <?php echo $option9['sfsi_plus_form_width'] ?>px !important;
|
46 |
-
height: <?php echo $option9['sfsi_plus_form_height'] ?>px !important;
|
47 |
-
<?php endif;
|
48 |
-
?><?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'];
|
49 |
-
?> !important;
|
50 |
-
<?php endif;
|
51 |
-
?>padding: 18px 0px !important;
|
52 |
-
background-color: <?php echo $option9['sfsi_plus_form_background'] ?> !important;
|
53 |
-
}
|
54 |
-
|
55 |
-
.sfsi_plus_subscribe_Popinner form {
|
56 |
-
margin: 0 20px !important;
|
57 |
-
}
|
58 |
-
|
59 |
-
.sfsi_plus_subscribe_Popinner h5 {
|
60 |
-
font-family: <?php echo $option9['sfsi_plus_form_heading_font'] ?> !important;
|
61 |
-
|
62 |
-
<?php if ($option9['sfsi_plus_form_heading_fontstyle'] != 'bold') {
|
63 |
-
?>font-style: <?php echo $option9['sfsi_plus_form_heading_fontstyle'] ?> !important;
|
64 |
-
<?php
|
65 |
-
} else {
|
66 |
-
?>font-weight: <?php echo $option9['sfsi_plus_form_heading_fontstyle'] ?> !important;
|
67 |
-
<?php
|
68 |
-
}
|
69 |
-
|
70 |
-
?>color: <?php echo $option9['sfsi_plus_form_heading_fontcolor'] ?> !important;
|
71 |
-
font-size: <?php echo $option9['sfsi_plus_form_heading_fontsize'] . "px" ?> !important;
|
72 |
-
text-align: <?php echo $option9['sfsi_plus_form_heading_fontalign'] ?> !important;
|
73 |
-
margin: 0 0 10px !important;
|
74 |
-
padding: 0 !important;
|
75 |
-
}
|
76 |
-
|
77 |
-
.sfsi_plus_subscription_form_field {
|
78 |
-
margin: 5px 0 !important;
|
79 |
-
width: 100% !important;
|
80 |
-
display: inline-flex;
|
81 |
-
display: -webkit-inline-flex;
|
82 |
-
}
|
83 |
-
|
84 |
-
.sfsi_plus_subscription_form_field input {
|
85 |
-
width: 100% !important;
|
86 |
-
padding: 10px 0px !important;
|
87 |
-
}
|
88 |
-
|
89 |
-
.sfsi_plus_subscribe_Popinner input[type=email] {
|
90 |
-
font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
|
91 |
-
|
92 |
-
<?php if ($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {
|
93 |
-
?>font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
|
94 |
-
<?php
|
95 |
-
} else {
|
96 |
-
?>font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
|
97 |
-
<?php
|
98 |
-
}
|
99 |
-
|
100 |
-
?>color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
|
101 |
-
font-size: <?php echo $option9['sfsi_plus_form_field_fontsize'] . "px" ?> !important;
|
102 |
-
text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
|
103 |
-
}
|
104 |
-
|
105 |
-
.sfsi_plus_subscribe_Popinner input[type=email]::-webkit-input-placeholder {
|
106 |
-
font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
|
107 |
-
|
108 |
-
<?php if ($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {
|
109 |
-
?>font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
|
110 |
-
<?php
|
111 |
-
} else {
|
112 |
-
?>font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
|
113 |
-
<?php
|
114 |
-
}
|
115 |
-
|
116 |
-
?>color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
|
117 |
-
font-size: <?php echo $option9['sfsi_plus_form_field_fontsize'] . "px" ?> !important;
|
118 |
-
text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
|
119 |
-
}
|
120 |
-
|
121 |
-
.sfsi_plus_subscribe_Popinner input[type=email]:-moz-placeholder {
|
122 |
-
/* Firefox 18- */
|
123 |
-
font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
|
124 |
-
|
125 |
-
<?php if ($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {
|
126 |
-
?>font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
|
127 |
-
<?php
|
128 |
-
} else {
|
129 |
-
?>font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
|
130 |
-
<?php
|
131 |
-
}
|
132 |
-
|
133 |
-
?>color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
|
134 |
-
font-size: <?php echo $option9['sfsi_plus_form_field_fontsize'] . "px" ?> !important;
|
135 |
-
text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
|
136 |
-
}
|
137 |
-
|
138 |
-
.sfsi_plus_subscribe_Popinner input[type=email]::-moz-placeholder {
|
139 |
-
/* Firefox 19+ */
|
140 |
-
font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
|
141 |
-
|
142 |
-
<?php if ($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {
|
143 |
-
?>font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
|
144 |
-
<?php
|
145 |
-
} else {
|
146 |
-
?>font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
|
147 |
-
<?php
|
148 |
-
}
|
149 |
-
|
150 |
-
?>color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
|
151 |
-
font-size: <?php echo $option9['sfsi_plus_form_field_fontsize'] . "px" ?> !important;
|
152 |
-
text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
|
153 |
-
}
|
154 |
-
|
155 |
-
.sfsi_plus_subscribe_Popinner input[type=email]:-ms-input-placeholder {
|
156 |
-
font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
|
157 |
-
|
158 |
-
<?php if ($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {
|
159 |
-
?>font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
|
160 |
-
<?php
|
161 |
-
} else {
|
162 |
-
?>font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
|
163 |
-
<?php
|
164 |
-
}
|
165 |
-
|
166 |
-
?>color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
|
167 |
-
font-size: <?php echo $option9['sfsi_plus_form_field_fontsize'] . "px" ?> !important;
|
168 |
-
text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
|
169 |
-
}
|
170 |
-
|
171 |
-
.sfsi_plus_subscribe_Popinner input[type=submit] {
|
172 |
-
font-family: <?php echo $option9['sfsi_plus_form_button_font'] ?> !important;
|
173 |
-
|
174 |
-
<?php if ($option9['sfsi_plus_form_button_fontstyle'] != 'bold') {
|
175 |
-
?>font-style: <?php echo $option9['sfsi_plus_form_button_fontstyle'];
|
176 |
-
?> !important;
|
177 |
-
<?php
|
178 |
-
} else {
|
179 |
-
?>font-weight: <?php echo $option9['sfsi_plus_form_button_fontstyle'];
|
180 |
-
?> !important;
|
181 |
-
<?php
|
182 |
-
}
|
183 |
-
|
184 |
-
?>color: <?php echo $option9['sfsi_plus_form_button_fontcolor'] ?> !important;
|
185 |
-
font-size: <?php echo $option9['sfsi_plus_form_button_fontsize'] . "px" ?> !important;
|
186 |
-
text-align: <?php echo $option9['sfsi_plus_form_button_fontalign'] ?> !important;
|
187 |
-
background-color: <?php echo $option9['sfsi_plus_form_button_background'] ?> !important;
|
188 |
-
}
|
189 |
-
</style>
|
190 |
-
<?php
|
191 |
-
}
|
192 |
-
// Creating the widget
|
193 |
-
class sfsiPlus_subscriber_widget extends WP_Widget
|
194 |
-
{
|
195 |
-
|
196 |
-
function __construct()
|
197 |
-
{
|
198 |
-
parent::__construct(
|
199 |
-
// Base ID of your widget
|
200 |
-
'sfsiPlus_subscriber_widget',
|
201 |
-
|
202 |
-
// Widget name will appear in UI
|
203 |
-
'Ultimate Social Plus Subscribe Form',
|
204 |
-
|
205 |
-
// Widget description
|
206 |
-
array('description' => 'Ultimate Social Plus Subscribe Form')
|
207 |
-
);
|
208 |
-
}
|
209 |
-
|
210 |
-
public function widget($args, $instance)
|
211 |
-
{
|
212 |
-
$title = apply_filters('widget_title', $instance['title']);
|
213 |
-
|
214 |
-
// before and after widget arguments are defined by themes
|
215 |
-
echo $args['before_widget'];
|
216 |
-
|
217 |
-
if (!empty($title)) {
|
218 |
-
echo $args['before_title'] . $title . $args['after_title'];
|
219 |
-
}
|
220 |
-
|
221 |
-
// Call subscriber form
|
222 |
-
echo do_shortcode("[USM_plus_form]");
|
223 |
-
|
224 |
-
echo $args['after_widget'];
|
225 |
-
}
|
226 |
-
|
227 |
-
// Widget Backend
|
228 |
-
public function form($instance)
|
229 |
-
{
|
230 |
-
if (isset($instance['title'])) {
|
231 |
-
$title = $instance['title'];
|
232 |
-
} else {
|
233 |
-
$title = '';
|
234 |
-
}
|
235 |
-
?>
|
236 |
-
<p>
|
237 |
-
<label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title'); ?>:</label>
|
238 |
-
<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); ?>" />
|
239 |
-
</p>
|
240 |
-
<?php
|
241 |
-
}
|
242 |
-
|
243 |
-
// Updating widget replacing old instances with new
|
244 |
-
public function update($newInstance, $oldInstance)
|
245 |
-
{
|
246 |
-
$instance = array();
|
247 |
-
$instance['title'] = (!empty($newInstance['title'])) ? strip_tags($newInstance['title']) : '';
|
248 |
-
return $instance;
|
249 |
-
}
|
250 |
-
}
|
251 |
-
// Class wpb_widget ends here
|
252 |
-
|
253 |
-
// Register and load the widget
|
254 |
-
function sfsiPlus_subscriber_load_widget()
|
255 |
-
{
|
256 |
-
register_widget('sfsiPlus_subscriber_widget');
|
257 |
-
}
|
258 |
-
add_action('widgets_init', 'sfsiPlus_subscriber_load_widget');
|
259 |
-
?>
|
260 |
-
<?php
|
261 |
-
add_shortcode("USM_plus_form", "sfsi_plus_get_subscriberForm");
|
262 |
-
function sfsi_plus_get_subscriberForm()
|
263 |
-
{
|
264 |
-
$option9 = unserialize(get_option('sfsi_plus_section9_options', false));
|
265 |
-
$sfsi_plus_feediid = sanitize_text_field(get_option('sfsi_plus_feed_id'));
|
266 |
-
if ($sfsi_plus_feediid) {
|
267 |
-
$url = "https://www.specificfeeds.com/subscribe?pub=boTZa2n0OIjC4D8PkiyzByH-uKEJSZgqMW-sJiFwbuEnoxENjKva2A";
|
268 |
-
} else {
|
269 |
-
$url = "https://www.specificfeeds.com/widgets/subscribeWidget/";
|
270 |
-
$url = $url . $sfsi_plus_feediid . '/8/';
|
271 |
-
}
|
272 |
-
$return = '';
|
273 |
-
$return .= '<div class="sfsi_plus_subscribe_Popinner">
|
274 |
-
<form method="post" onsubmit="return sfsi_plus_processfurther(this);" action="
|
275 |
-
<h5>' . __(trim($option9['sfsi_plus_form_heading_text']), SFSI_PLUS_DOMAIN) . '</h5>
|
276 |
-
<div class="sfsi_plus_subscription_form_field">
|
277 |
-
<input type="email" name="data[Widget][email]" value="" placeholder="' . trim($option9['sfsi_plus_form_field_text']) . '"/>
|
278 |
-
</div>
|
279 |
-
<div class="sfsi_plus_subscription_form_field">
|
280 |
-
<input type="hidden" name="data[Widget][feed_id]" value="' . $sfsi_plus_feediid . '">
|
281 |
-
<input type="hidden" name="data[Widget][feedtype]" value="8">
|
282 |
-
<input type="submit" name="subscribe" value="' . __($option9['sfsi_plus_form_button_text'], SFSI_PLUS_DOMAIN) . '" />
|
283 |
-
</div>
|
284 |
-
</form>
|
285 |
-
</div>';
|
286 |
-
return $return;
|
287 |
-
}
|
288 |
?>
|
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 |
+
jQuery(document).ready(function(e) {
|
14 |
+
jQuery("body").addClass("sfsi_plus_<?php echo get_option("sfsi_plus_pluginVersion"); ?>")
|
15 |
+
});
|
16 |
+
|
17 |
+
function sfsi_plus_processfurther(ref) {
|
18 |
+
var feed_id = '<?php echo $sfsi_plus_feediid ?>';
|
19 |
+
var feedtype = 8;
|
20 |
+
var email = jQuery(ref).find('input[name="data[Widget][email]"]').val();
|
21 |
+
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
|
22 |
+
if ((email != "Enter your email") && (filter.test(email))) {
|
23 |
+
if (feed_id != "") {
|
24 |
+
if (feedtype == "8") {
|
25 |
+
var url = "<?php echo $url; ?>" + feed_id + "/" + feedtype;
|
26 |
+
window.open('', "popupwindow", "scrollbars=yes,width=1080,height=760");
|
27 |
+
ref.target = "popupwindow";
|
28 |
+
ref.action = url;
|
29 |
+
return true;
|
30 |
+
} else {
|
31 |
+
return false;
|
32 |
+
}
|
33 |
+
}
|
34 |
+
} else {
|
35 |
+
alert("Please enter email address");
|
36 |
+
jQuery(ref).find('input[name="data[Widget][email]"]').focus();
|
37 |
+
return false;
|
38 |
+
}
|
39 |
+
}
|
40 |
+
</script>
|
41 |
+
<style>
|
42 |
+
.sfsi_plus_subscribe_Popinner {
|
43 |
+
<?php if ($option9['sfsi_plus_form_adjustment'] == 'yes') : ?>width: 100% !important;
|
44 |
+
height: auto !important;
|
45 |
+
<?php else : ?>width: <?php echo $option9['sfsi_plus_form_width'] ?>px !important;
|
46 |
+
height: <?php echo $option9['sfsi_plus_form_height'] ?>px !important;
|
47 |
+
<?php endif;
|
48 |
+
?><?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'];
|
49 |
+
?> !important;
|
50 |
+
<?php endif;
|
51 |
+
?>padding: 18px 0px !important;
|
52 |
+
background-color: <?php echo $option9['sfsi_plus_form_background'] ?> !important;
|
53 |
+
}
|
54 |
+
|
55 |
+
.sfsi_plus_subscribe_Popinner form {
|
56 |
+
margin: 0 20px !important;
|
57 |
+
}
|
58 |
+
|
59 |
+
.sfsi_plus_subscribe_Popinner h5 {
|
60 |
+
font-family: <?php echo $option9['sfsi_plus_form_heading_font'] ?> !important;
|
61 |
+
|
62 |
+
<?php if ($option9['sfsi_plus_form_heading_fontstyle'] != 'bold') {
|
63 |
+
?>font-style: <?php echo $option9['sfsi_plus_form_heading_fontstyle'] ?> !important;
|
64 |
+
<?php
|
65 |
+
} else {
|
66 |
+
?>font-weight: <?php echo $option9['sfsi_plus_form_heading_fontstyle'] ?> !important;
|
67 |
+
<?php
|
68 |
+
}
|
69 |
+
|
70 |
+
?>color: <?php echo $option9['sfsi_plus_form_heading_fontcolor'] ?> !important;
|
71 |
+
font-size: <?php echo $option9['sfsi_plus_form_heading_fontsize'] . "px" ?> !important;
|
72 |
+
text-align: <?php echo $option9['sfsi_plus_form_heading_fontalign'] ?> !important;
|
73 |
+
margin: 0 0 10px !important;
|
74 |
+
padding: 0 !important;
|
75 |
+
}
|
76 |
+
|
77 |
+
.sfsi_plus_subscription_form_field {
|
78 |
+
margin: 5px 0 !important;
|
79 |
+
width: 100% !important;
|
80 |
+
display: inline-flex;
|
81 |
+
display: -webkit-inline-flex;
|
82 |
+
}
|
83 |
+
|
84 |
+
.sfsi_plus_subscription_form_field input {
|
85 |
+
width: 100% !important;
|
86 |
+
padding: 10px 0px !important;
|
87 |
+
}
|
88 |
+
|
89 |
+
.sfsi_plus_subscribe_Popinner input[type=email] {
|
90 |
+
font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
|
91 |
+
|
92 |
+
<?php if ($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {
|
93 |
+
?>font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
|
94 |
+
<?php
|
95 |
+
} else {
|
96 |
+
?>font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
|
97 |
+
<?php
|
98 |
+
}
|
99 |
+
|
100 |
+
?>color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
|
101 |
+
font-size: <?php echo $option9['sfsi_plus_form_field_fontsize'] . "px" ?> !important;
|
102 |
+
text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
|
103 |
+
}
|
104 |
+
|
105 |
+
.sfsi_plus_subscribe_Popinner input[type=email]::-webkit-input-placeholder {
|
106 |
+
font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
|
107 |
+
|
108 |
+
<?php if ($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {
|
109 |
+
?>font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
|
110 |
+
<?php
|
111 |
+
} else {
|
112 |
+
?>font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
|
113 |
+
<?php
|
114 |
+
}
|
115 |
+
|
116 |
+
?>color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
|
117 |
+
font-size: <?php echo $option9['sfsi_plus_form_field_fontsize'] . "px" ?> !important;
|
118 |
+
text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
|
119 |
+
}
|
120 |
+
|
121 |
+
.sfsi_plus_subscribe_Popinner input[type=email]:-moz-placeholder {
|
122 |
+
/* Firefox 18- */
|
123 |
+
font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
|
124 |
+
|
125 |
+
<?php if ($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {
|
126 |
+
?>font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
|
127 |
+
<?php
|
128 |
+
} else {
|
129 |
+
?>font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
|
130 |
+
<?php
|
131 |
+
}
|
132 |
+
|
133 |
+
?>color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
|
134 |
+
font-size: <?php echo $option9['sfsi_plus_form_field_fontsize'] . "px" ?> !important;
|
135 |
+
text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
|
136 |
+
}
|
137 |
+
|
138 |
+
.sfsi_plus_subscribe_Popinner input[type=email]::-moz-placeholder {
|
139 |
+
/* Firefox 19+ */
|
140 |
+
font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
|
141 |
+
|
142 |
+
<?php if ($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {
|
143 |
+
?>font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
|
144 |
+
<?php
|
145 |
+
} else {
|
146 |
+
?>font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
|
147 |
+
<?php
|
148 |
+
}
|
149 |
+
|
150 |
+
?>color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
|
151 |
+
font-size: <?php echo $option9['sfsi_plus_form_field_fontsize'] . "px" ?> !important;
|
152 |
+
text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
|
153 |
+
}
|
154 |
+
|
155 |
+
.sfsi_plus_subscribe_Popinner input[type=email]:-ms-input-placeholder {
|
156 |
+
font-family: <?php echo $option9['sfsi_plus_form_field_font'] ?> !important;
|
157 |
+
|
158 |
+
<?php if ($option9['sfsi_plus_form_field_fontstyle'] != 'bold') {
|
159 |
+
?>font-style: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
|
160 |
+
<?php
|
161 |
+
} else {
|
162 |
+
?>font-weight: <?php echo $option9['sfsi_plus_form_field_fontstyle'] ?> !important;
|
163 |
+
<?php
|
164 |
+
}
|
165 |
+
|
166 |
+
?>color: <?php echo $option9['sfsi_plus_form_field_fontcolor'] ?> !important;
|
167 |
+
font-size: <?php echo $option9['sfsi_plus_form_field_fontsize'] . "px" ?> !important;
|
168 |
+
text-align: <?php echo $option9['sfsi_plus_form_field_fontalign'] ?> !important;
|
169 |
+
}
|
170 |
+
|
171 |
+
.sfsi_plus_subscribe_Popinner input[type=submit] {
|
172 |
+
font-family: <?php echo $option9['sfsi_plus_form_button_font'] ?> !important;
|
173 |
+
|
174 |
+
<?php if ($option9['sfsi_plus_form_button_fontstyle'] != 'bold') {
|
175 |
+
?>font-style: <?php echo $option9['sfsi_plus_form_button_fontstyle'];
|
176 |
+
?> !important;
|
177 |
+
<?php
|
178 |
+
} else {
|
179 |
+
?>font-weight: <?php echo $option9['sfsi_plus_form_button_fontstyle'];
|
180 |
+
?> !important;
|
181 |
+
<?php
|
182 |
+
}
|
183 |
+
|
184 |
+
?>color: <?php echo $option9['sfsi_plus_form_button_fontcolor'] ?> !important;
|
185 |
+
font-size: <?php echo $option9['sfsi_plus_form_button_fontsize'] . "px" ?> !important;
|
186 |
+
text-align: <?php echo $option9['sfsi_plus_form_button_fontalign'] ?> !important;
|
187 |
+
background-color: <?php echo $option9['sfsi_plus_form_button_background'] ?> !important;
|
188 |
+
}
|
189 |
+
</style>
|
190 |
+
<?php
|
191 |
+
}
|
192 |
+
// Creating the widget
|
193 |
+
class sfsiPlus_subscriber_widget extends WP_Widget
|
194 |
+
{
|
195 |
+
|
196 |
+
function __construct()
|
197 |
+
{
|
198 |
+
parent::__construct(
|
199 |
+
// Base ID of your widget
|
200 |
+
'sfsiPlus_subscriber_widget',
|
201 |
+
|
202 |
+
// Widget name will appear in UI
|
203 |
+
'Ultimate Social Plus Subscribe Form',
|
204 |
+
|
205 |
+
// Widget description
|
206 |
+
array('description' => 'Ultimate Social Plus Subscribe Form')
|
207 |
+
);
|
208 |
+
}
|
209 |
+
|
210 |
+
public function widget($args, $instance)
|
211 |
+
{
|
212 |
+
$title = apply_filters('widget_title', $instance['title']);
|
213 |
+
|
214 |
+
// before and after widget arguments are defined by themes
|
215 |
+
echo $args['before_widget'];
|
216 |
+
|
217 |
+
if (!empty($title)) {
|
218 |
+
echo $args['before_title'] . $title . $args['after_title'];
|
219 |
+
}
|
220 |
+
|
221 |
+
// Call subscriber form
|
222 |
+
echo do_shortcode("[USM_plus_form]");
|
223 |
+
|
224 |
+
echo $args['after_widget'];
|
225 |
+
}
|
226 |
+
|
227 |
+
// Widget Backend
|
228 |
+
public function form($instance)
|
229 |
+
{
|
230 |
+
if (isset($instance['title'])) {
|
231 |
+
$title = $instance['title'];
|
232 |
+
} else {
|
233 |
+
$title = '';
|
234 |
+
}
|
235 |
+
?>
|
236 |
+
<p>
|
237 |
+
<label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title'); ?>:</label>
|
238 |
+
<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); ?>" />
|
239 |
+
</p>
|
240 |
+
<?php
|
241 |
+
}
|
242 |
+
|
243 |
+
// Updating widget replacing old instances with new
|
244 |
+
public function update($newInstance, $oldInstance)
|
245 |
+
{
|
246 |
+
$instance = array();
|
247 |
+
$instance['title'] = (!empty($newInstance['title'])) ? strip_tags($newInstance['title']) : '';
|
248 |
+
return $instance;
|
249 |
+
}
|
250 |
+
}
|
251 |
+
// Class wpb_widget ends here
|
252 |
+
|
253 |
+
// Register and load the widget
|
254 |
+
function sfsiPlus_subscriber_load_widget()
|
255 |
+
{
|
256 |
+
register_widget('sfsiPlus_subscriber_widget');
|
257 |
+
}
|
258 |
+
add_action('widgets_init', 'sfsiPlus_subscriber_load_widget');
|
259 |
+
?>
|
260 |
+
<?php
|
261 |
+
add_shortcode("USM_plus_form", "sfsi_plus_get_subscriberForm");
|
262 |
+
function sfsi_plus_get_subscriberForm()
|
263 |
+
{
|
264 |
+
$option9 = unserialize(get_option('sfsi_plus_section9_options', false));
|
265 |
+
$sfsi_plus_feediid = sanitize_text_field(get_option('sfsi_plus_feed_id'));
|
266 |
+
if ($sfsi_plus_feediid == "") {
|
267 |
+
$url = "https://www.specificfeeds.com/subscribe?pub=boTZa2n0OIjC4D8PkiyzByH-uKEJSZgqMW-sJiFwbuEnoxENjKva2A";
|
268 |
+
} else {
|
269 |
+
$url = "https://www.specificfeeds.com/widgets/subscribeWidget/";
|
270 |
+
$url = $url . $sfsi_plus_feediid . '/8/';
|
271 |
+
}
|
272 |
+
$return = '';
|
273 |
+
$return .= '<div class="sfsi_plus_subscribe_Popinner">
|
274 |
+
<form method="post" onsubmit="return sfsi_plus_processfurther(this);" action="' . $url . '">
|
275 |
+
<h5>' . __(trim($option9['sfsi_plus_form_heading_text']), SFSI_PLUS_DOMAIN) . '</h5>
|
276 |
+
<div class="sfsi_plus_subscription_form_field">
|
277 |
+
<input type="email" name="data[Widget][email]" value="" placeholder="' . trim($option9['sfsi_plus_form_field_text']) . '"/>
|
278 |
+
</div>
|
279 |
+
<div class="sfsi_plus_subscription_form_field">
|
280 |
+
<input type="hidden" name="data[Widget][feed_id]" value="' . $sfsi_plus_feediid . '">
|
281 |
+
<input type="hidden" name="data[Widget][feedtype]" value="8">
|
282 |
+
<input type="submit" name="subscribe" value="' . __($option9['sfsi_plus_form_button_text'], SFSI_PLUS_DOMAIN) . '" />
|
283 |
+
</div>
|
284 |
+
</form>
|
285 |
+
</div>';
|
286 |
+
return $return;
|
287 |
+
}
|
288 |
?>
|
libs/sfsi_widget.php
CHANGED
@@ -1,1815 +1,1816 @@
|
|
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 |
-
/* check if icons shuffling is activated in admin or not */
|
153 |
-
if($sfsi_section5['sfsi_plus_icons_stick']=="yes")
|
154 |
-
{
|
155 |
-
if(is_admin_bar_showing())
|
156 |
-
{
|
157 |
-
$Ictop="30px";
|
158 |
-
}
|
159 |
-
else
|
160 |
-
{
|
161 |
-
$Ictop="0";
|
162 |
-
}
|
163 |
-
$jquery.='var s = jQuery(".sfsi_plus_widget");
|
164 |
-
var pos = s.position();
|
165 |
-
jQuery(window).scroll(function(){
|
166 |
-
sfsi_plus_stick_widget("'.$Ictop.'");
|
167 |
-
}); ';
|
168 |
-
}
|
169 |
-
|
170 |
-
/* check if icons floating is activated in admin */
|
171 |
-
/*settings under third question*/
|
172 |
-
if($sfsi_section8['sfsi_plus_float_on_page']=="yes")
|
173 |
-
{
|
174 |
-
$top="15";
|
175 |
-
//switch($sfsi_section5['sfsi_plus_icons_floatPosition'])
|
176 |
-
switch($sfsi_section8['sfsi_plus_float_page_position'])
|
177 |
-
{
|
178 |
-
case "top-left" :
|
179 |
-
if(is_admin_bar_showing())
|
180 |
-
{
|
181 |
-
$position.="position:absolute;left:30px;top:35px;"; $top="35";
|
182 |
-
}
|
183 |
-
else
|
184 |
-
{
|
185 |
-
$position.="position:absolute;left:10px;top:2%"; $top="10";
|
186 |
-
}
|
187 |
-
break;
|
188 |
-
case "top-right" :
|
189 |
-
if(is_admin_bar_showing())
|
190 |
-
{
|
191 |
-
$position.="position:absolute;right:30px;top:35px;"; $top="35";
|
192 |
-
}else
|
193 |
-
{
|
194 |
-
$position.="position:absolute;right:10px;top:2%"; $top="10";
|
195 |
-
}
|
196 |
-
break;
|
197 |
-
case "center-right" :
|
198 |
-
$position.="position:absolute;right:30px;top:50%"; $top="center";
|
199 |
-
break;
|
200 |
-
case "center-left" :
|
201 |
-
$position.="position:absolute;left:30px;top:50%"; $top="center";
|
202 |
-
break;
|
203 |
-
case "bottom-right" :
|
204 |
-
$position.="position:absolute;right:30px;bottom:0px"; $top="bottom";
|
205 |
-
break;
|
206 |
-
case "bottom-left" :
|
207 |
-
$position.="position:absolute;left:30px;bottom:0px"; $top="bottom";
|
208 |
-
break;
|
209 |
-
}
|
210 |
-
if($sfsi_section8['sfsi_plus_float_page_position'] == 'center-right' || $sfsi_section8['sfsi_plus_float_page_position'] == 'center-left')
|
211 |
-
{
|
212 |
-
$jquery.="jQuery( document ).ready(function( totwith=".(isset($totwith)?$totwith:0)." )
|
213 |
-
{
|
214 |
-
var topalign = ( jQuery(window).height() - jQuery('#sfsi_plus_floater').height() ) / 2;
|
215 |
-
jQuery('#sfsi_plus_floater').css('top',topalign);
|
216 |
-
sfsi_plus_float_widget('".$top."');
|
217 |
-
});";
|
218 |
-
}
|
219 |
-
else
|
220 |
-
{
|
221 |
-
$jquery.="jQuery( document ).ready(function( totwith=".(isset($totwith)?$totwith:0)." ) { sfsi_plus_float_widget('".$top."')});";
|
222 |
-
}
|
223 |
-
}
|
224 |
-
|
225 |
-
$extra=0;
|
226 |
-
if($sfsi_section3['sfsi_plus_shuffle_icons']=="yes")
|
227 |
-
{
|
228 |
-
if($sfsi_section3['sfsi_plus_shuffle_Firstload']=="yes" && $sfsi_section3['sfsi_plus_shuffle_interval']=="yes")
|
229 |
-
{
|
230 |
-
$shuffle_time=(isset($sfsi_section3['sfsi_plus_shuffle_intervalTime'])) ? $sfsi_section3['sfsi_plus_shuffle_intervalTime'] : 3;
|
231 |
-
$shuffle_time=$shuffle_time*1000;
|
232 |
-
$jquery.="jQuery( document ).ready(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."); });";
|
233 |
-
}
|
234 |
-
else if($sfsi_section3['sfsi_plus_shuffle_Firstload']=="no" && $sfsi_section3['sfsi_plus_shuffle_interval']=="yes")
|
235 |
-
{
|
236 |
-
$shuffle_time=(isset($sfsi_section3['sfsi_plus_shuffle_intervalTime'])) ? $sfsi_section3['sfsi_plus_shuffle_intervalTime'] : 3;
|
237 |
-
$shuffle_time=$shuffle_time*1000;
|
238 |
-
$jquery.="jQuery( document ).ready(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."); });";
|
239 |
-
}
|
240 |
-
else
|
241 |
-
{
|
242 |
-
$jquery.="jQuery( document ).ready(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); });";
|
243 |
-
}
|
244 |
-
}
|
245 |
-
|
246 |
-
/* magnage the icons in saved order in admin */
|
247 |
-
$custom_icons_order = unserialize($sfsi_section5['sfsi_plus_CustomIcons_order']);
|
248 |
-
$icons_list = array();
|
249 |
-
if(isset($sfsi_plus_section1_options['sfsi_custom_files'])){
|
250 |
-
if(is_string($sfsi_plus_section1_options['sfsi_custom_files'])){
|
251 |
-
$icons_list= unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
|
252 |
-
}else{
|
253 |
-
$icons_list= $sfsi_plus_section1_options['sfsi_custom_files'];
|
254 |
-
}
|
255 |
-
}
|
256 |
-
if(!isset($sfsi_plus_section5_options['sfsi_plus_houzzIcon_order'])){
|
257 |
-
$sfsi_plus_section5_options['sfsi_plus_houzzIcon_order']=11;
|
258 |
-
}
|
259 |
-
if(!isset($sfsi_plus_section5_options['sfsi_plus_okIcon_order'])){
|
260 |
-
$sfsi_plus_section5_options['sfsi_plus_okIcon_order']=22;
|
261 |
-
}
|
262 |
-
if(!isset($sfsi_plus_section5_options['sfsi_plus_telegramIcon_order'])){
|
263 |
-
$sfsi_plus_section5_options['sfsi_plus_telegramIcon_order']=23;
|
264 |
-
}
|
265 |
-
if(!isset($sfsi_plus_section5_options['sfsi_plus_vkIcon_order'])){
|
266 |
-
$sfsi_plus_section5_options['sfsi_plus_vkIcon_order']=24;
|
267 |
-
}
|
268 |
-
if(!isset($sfsi_plus_section5_options['sfsi_plus_wechatIcon_order'])){
|
269 |
-
$sfsi_plus_section5_options['sfsi_plus_wechatIcon_order']=26;
|
270 |
-
}
|
271 |
-
if(!isset($sfsi_plus_section5_options['sfsi_plus_weiboIcon_order'])){
|
272 |
-
$sfsi_plus_section5_options['sfsi_plus_weiboIcon_order']=25;
|
273 |
-
}
|
274 |
-
|
275 |
-
// $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());
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
$sfsi_section5['
|
281 |
-
$sfsi_section5['
|
282 |
-
$sfsi_section5['
|
283 |
-
$sfsi_section5['
|
284 |
-
$sfsi_section5['
|
285 |
-
|
286 |
-
$sfsi_section5['
|
287 |
-
$sfsi_section5['
|
288 |
-
$sfsi_section5['
|
289 |
-
$sfsi_section5['
|
290 |
-
$sfsi_section5['
|
291 |
-
$sfsi_section5['
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
$
|
319 |
-
$main_width = $
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
$
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
}
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
$
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
$icons_float .=
|
436 |
-
$icons_float .=
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
$icons_data
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
$
|
448 |
-
$
|
449 |
-
$
|
450 |
-
$
|
451 |
-
$
|
452 |
-
$
|
453 |
-
$
|
454 |
-
$
|
455 |
-
|
456 |
-
|
457 |
-
$
|
458 |
-
$
|
459 |
-
$
|
460 |
-
$
|
461 |
-
$
|
462 |
-
$
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
$
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
$
|
481 |
-
$
|
482 |
-
$
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
$
|
488 |
-
$
|
489 |
-
$
|
490 |
-
$
|
491 |
-
|
492 |
-
|
493 |
-
$
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
$
|
517 |
-
|
518 |
-
$
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
$
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
$
|
555 |
-
$
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
|
566 |
-
$
|
567 |
-
$
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
$
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
|
671 |
-
|
672 |
-
|
673 |
-
|
674 |
-
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
$
|
702 |
-
|
703 |
-
|
704 |
-
|
705 |
-
|
706 |
-
|
707 |
-
|
708 |
-
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
|
749 |
-
|
750 |
-
|
751 |
-
|
752 |
-
|
753 |
-
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
$
|
768 |
-
$
|
769 |
-
$
|
770 |
-
$
|
771 |
-
$
|
772 |
-
$
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
|
778 |
-
|
779 |
-
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
|
788 |
-
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
|
793 |
-
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
|
812 |
-
|
813 |
-
|
814 |
-
|
815 |
-
|
816 |
-
|
817 |
-
|
818 |
-
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
|
847 |
-
|
848 |
-
|
849 |
-
|
850 |
-
|
851 |
-
|
852 |
-
|
853 |
-
|
854 |
-
|
855 |
-
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
|
861 |
-
|
862 |
-
|
863 |
-
|
864 |
-
|
865 |
-
|
866 |
-
|
867 |
-
|
868 |
-
|
869 |
-
$socialObj = new sfsi_plus_SocialHelper();
|
870 |
-
$
|
871 |
-
$
|
872 |
-
$
|
873 |
-
$
|
874 |
-
$
|
875 |
-
|
876 |
-
$
|
877 |
-
|
878 |
-
|
879 |
-
|
880 |
-
|
881 |
-
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
|
886 |
-
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
|
891 |
-
|
892 |
-
|
893 |
-
|
894 |
-
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
|
906 |
-
|
907 |
-
|
908 |
-
|
909 |
-
|
910 |
-
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
918 |
-
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
|
923 |
-
|
924 |
-
|
925 |
-
|
926 |
-
|
927 |
-
|
928 |
-
|
929 |
-
|
930 |
-
|
931 |
-
|
932 |
-
|
933 |
-
|
934 |
-
|
935 |
-
|
936 |
-
|
937 |
-
|
938 |
-
|
939 |
-
|
940 |
-
|
941 |
-
|
942 |
-
|
943 |
-
|
944 |
-
|
945 |
-
$
|
946 |
-
$
|
947 |
-
$
|
948 |
-
|
949 |
-
$
|
950 |
-
|
951 |
-
|
952 |
-
$
|
953 |
-
? $sfsi_plus_section4_options['
|
954 |
-
|
955 |
-
$
|
956 |
-
|
957 |
-
|
958 |
-
|
959 |
-
|
960 |
-
|
961 |
-
|
962 |
-
|
963 |
-
|
964 |
-
|
965 |
-
|
966 |
-
|
967 |
-
|
968 |
-
|
969 |
-
|
970 |
-
|
971 |
-
|
972 |
-
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
|
980 |
-
|
981 |
-
|
982 |
-
|
983 |
-
|
984 |
-
|
985 |
-
|
986 |
-
|
987 |
-
|
988 |
-
|
989 |
-
|
990 |
-
|
991 |
-
|
992 |
-
|
993 |
-
|
994 |
-
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
-
|
1008 |
-
|
1009 |
-
|
1010 |
-
|
1011 |
-
|
1012 |
-
|
1013 |
-
|
1014 |
-
|
1015 |
-
|
1016 |
-
|
1017 |
-
|
1018 |
-
|
1019 |
-
|
1020 |
-
|
1021 |
-
|
1022 |
-
|
1023 |
-
|
1024 |
-
|
1025 |
-
|
1026 |
-
|
1027 |
-
|
1028 |
-
|
1029 |
-
$
|
1030 |
-
$
|
1031 |
-
|
1032 |
-
|
1033 |
-
|
1034 |
-
|
1035 |
-
|
1036 |
-
|
1037 |
-
|
1038 |
-
|
1039 |
-
|
1040 |
-
|
1041 |
-
|
1042 |
-
|
1043 |
-
|
1044 |
-
|
1045 |
-
|
1046 |
-
|
1047 |
-
|
1048 |
-
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
1055 |
-
|
1056 |
-
|
1057 |
-
|
1058 |
-
|
1059 |
-
|
1060 |
-
|
1061 |
-
|
1062 |
-
|
1063 |
-
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
1068 |
-
|
1069 |
-
|
1070 |
-
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
$
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
-
|
1090 |
-
|
1091 |
-
|
1092 |
-
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
1101 |
-
|
1102 |
-
$
|
1103 |
-
|
1104 |
-
|
1105 |
-
|
1106 |
-
|
1107 |
-
|
1108 |
-
|
1109 |
-
|
1110 |
-
|
1111 |
-
|
1112 |
-
|
1113 |
-
|
1114 |
-
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
-
|
1119 |
-
|
1120 |
-
|
1121 |
-
|
1122 |
-
|
1123 |
-
|
1124 |
-
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
-
$
|
1134 |
-
$
|
1135 |
-
$
|
1136 |
-
$
|
1137 |
-
$
|
1138 |
-
|
1139 |
-
|
1140 |
-
$
|
1141 |
-
|
1142 |
-
|
1143 |
-
|
1144 |
-
|
1145 |
-
|
1146 |
-
|
1147 |
-
|
1148 |
-
|
1149 |
-
|
1150 |
-
|
1151 |
-
|
1152 |
-
|
1153 |
-
|
1154 |
-
|
1155 |
-
|
1156 |
-
|
1157 |
-
|
1158 |
-
|
1159 |
-
|
1160 |
-
|
1161 |
-
|
1162 |
-
|
1163 |
-
|
1164 |
-
|
1165 |
-
|
1166 |
-
|
1167 |
-
|
1168 |
-
|
1169 |
-
|
1170 |
-
|
1171 |
-
|
1172 |
-
|
1173 |
-
|
1174 |
-
|
1175 |
-
|
1176 |
-
|
1177 |
-
|
1178 |
-
|
1179 |
-
|
1180 |
-
|
1181 |
-
|
1182 |
-
|
1183 |
-
|
1184 |
-
|
1185 |
-
|
1186 |
-
|
1187 |
-
|
1188 |
-
|
1189 |
-
|
1190 |
-
|
1191 |
-
|
1192 |
-
|
1193 |
-
|
1194 |
-
|
1195 |
-
|
1196 |
-
|
1197 |
-
|
1198 |
-
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
-
|
1203 |
-
|
1204 |
-
|
1205 |
-
|
1206 |
-
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
|
1225 |
-
|
1226 |
-
|
1227 |
-
|
1228 |
-
|
1229 |
-
|
1230 |
-
|
1231 |
-
|
1232 |
-
|
1233 |
-
|
1234 |
-
|
1235 |
-
|
1236 |
-
|
1237 |
-
|
1238 |
-
|
1239 |
-
|
1240 |
-
|
1241 |
-
|
1242 |
-
|
1243 |
-
|
1244 |
-
|
1245 |
-
$
|
1246 |
-
|
1247 |
-
$
|
1248 |
-
$
|
1249 |
-
|
1250 |
-
$
|
1251 |
-
|
1252 |
-
|
1253 |
-
|
1254 |
-
|
1255 |
-
|
1256 |
-
|
1257 |
-
}
|
1258 |
-
|
1259 |
-
$
|
1260 |
-
}
|
1261 |
-
|
1262 |
-
|
1263 |
-
|
1264 |
-
|
1265 |
-
|
1266 |
-
|
1267 |
-
|
1268 |
-
|
1269 |
-
|
1270 |
-
|
1271 |
-
|
1272 |
-
|
1273 |
-
|
1274 |
-
|
1275 |
-
|
1276 |
-
|
1277 |
-
|
1278 |
-
|
1279 |
-
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
1284 |
-
|
1285 |
-
|
1286 |
-
|
1287 |
-
|
1288 |
-
|
1289 |
-
|
1290 |
-
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
$
|
1295 |
-
|
1296 |
-
|
1297 |
-
$
|
1298 |
-
$tg_msg =
|
1299 |
-
$tg_msg =
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
-
|
1304 |
-
$url = "
|
1305 |
-
}
|
1306 |
-
|
1307 |
-
|
1308 |
-
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
-
|
1318 |
-
|
1319 |
-
|
1320 |
-
|
1321 |
-
|
1322 |
-
|
1323 |
-
|
1324 |
-
|
1325 |
-
|
1326 |
-
|
1327 |
-
|
1328 |
-
|
1329 |
-
|
1330 |
-
|
1331 |
-
|
1332 |
-
|
1333 |
-
|
1334 |
-
|
1335 |
-
|
1336 |
-
|
1337 |
-
$
|
1338 |
-
$
|
1339 |
-
|
1340 |
-
|
1341 |
-
|
1342 |
-
|
1343 |
-
|
1344 |
-
|
1345 |
-
|
1346 |
-
|
1347 |
-
|
1348 |
-
}
|
1349 |
-
|
1350 |
-
|
1351 |
-
|
1352 |
-
|
1353 |
-
|
1354 |
-
|
1355 |
-
|
1356 |
-
|
1357 |
-
|
1358 |
-
|
1359 |
-
|
1360 |
-
|
1361 |
-
|
1362 |
-
|
1363 |
-
|
1364 |
-
|
1365 |
-
|
1366 |
-
|
1367 |
-
|
1368 |
-
|
1369 |
-
|
1370 |
-
$
|
1371 |
-
|
1372 |
-
$
|
1373 |
-
|
1374 |
-
|
1375 |
-
|
1376 |
-
|
1377 |
-
|
1378 |
-
|
1379 |
-
}
|
1380 |
-
|
1381 |
-
|
1382 |
-
|
1383 |
-
|
1384 |
-
|
1385 |
-
|
1386 |
-
|
1387 |
-
|
1388 |
-
|
1389 |
-
|
1390 |
-
|
1391 |
-
|
1392 |
-
|
1393 |
-
|
1394 |
-
|
1395 |
-
|
1396 |
-
|
1397 |
-
|
1398 |
-
|
1399 |
-
|
1400 |
-
|
1401 |
-
|
1402 |
-
|
1403 |
-
$
|
1404 |
-
|
1405 |
-
|
1406 |
-
|
1407 |
-
|
1408 |
-
|
1409 |
-
|
1410 |
-
|
1411 |
-
|
1412 |
-
|
1413 |
-
|
1414 |
-
|
1415 |
-
|
1416 |
-
|
1417 |
-
|
1418 |
-
|
1419 |
-
|
1420 |
-
|
1421 |
-
|
1422 |
-
|
1423 |
-
|
1424 |
-
|
1425 |
-
$
|
1426 |
-
|
1427 |
-
|
1428 |
-
|
1429 |
-
|
1430 |
-
|
1431 |
-
|
1432 |
-
|
1433 |
-
|
1434 |
-
|
1435 |
-
|
1436 |
-
|
1437 |
-
|
1438 |
-
$
|
1439 |
-
$
|
1440 |
-
$
|
1441 |
-
|
1442 |
-
$
|
1443 |
-
|
1444 |
-
//
|
1445 |
-
|
1446 |
-
|
1447 |
-
|
1448 |
-
|
1449 |
-
|
1450 |
-
|
1451 |
-
|
1452 |
-
|
1453 |
-
|
1454 |
-
|
1455 |
-
|
1456 |
-
|
1457 |
-
|
1458 |
-
|
1459 |
-
|
1460 |
-
|
1461 |
-
|
1462 |
-
|
1463 |
-
|
1464 |
-
|
1465 |
-
|
1466 |
-
|
1467 |
-
|
1468 |
-
|
1469 |
-
|
1470 |
-
|
1471 |
-
|
1472 |
-
|
1473 |
-
$
|
1474 |
-
|
1475 |
-
|
1476 |
-
|
1477 |
-
|
1478 |
-
|
1479 |
-
|
1480 |
-
|
1481 |
-
|
1482 |
-
|
1483 |
-
|
1484 |
-
|
1485 |
-
|
1486 |
-
|
1487 |
-
|
1488 |
-
|
1489 |
-
|
1490 |
-
|
1491 |
-
|
1492 |
-
|
1493 |
-
|
1494 |
-
|
1495 |
-
|
1496 |
-
|
1497 |
-
|
1498 |
-
|
1499 |
-
|
1500 |
-
|
1501 |
-
|
1502 |
-
|
1503 |
-
|
1504 |
-
|
1505 |
-
|
1506 |
-
|
1507 |
-
|
1508 |
-
|
1509 |
-
|
1510 |
-
|
1511 |
-
|
1512 |
-
|
1513 |
-
|
1514 |
-
|
1515 |
-
|
1516 |
-
|
1517 |
-
|
1518 |
-
|
1519 |
-
|
1520 |
-
|
1521 |
-
|
1522 |
-
|
1523 |
-
|
1524 |
-
|
1525 |
-
|
1526 |
-
|
1527 |
-
}
|
1528 |
-
|
1529 |
-
|
1530 |
-
|
1531 |
-
|
1532 |
-
|
1533 |
-
|
1534 |
-
|
1535 |
-
|
1536 |
-
|
1537 |
-
|
1538 |
-
|
1539 |
-
|
1540 |
-
|
1541 |
-
|
1542 |
-
|
1543 |
-
|
1544 |
-
|
1545 |
-
|
1546 |
-
|
1547 |
-
|
1548 |
-
|
1549 |
-
|
1550 |
-
|
1551 |
-
|
1552 |
-
|
1553 |
-
|
1554 |
-
|
1555 |
-
|
1556 |
-
$icons.= '<
|
1557 |
-
$icons.= '<
|
1558 |
-
$icons.= "</div>";
|
1559 |
-
|
1560 |
-
|
1561 |
-
$icons.="</div>";
|
1562 |
-
|
1563 |
-
|
1564 |
-
|
1565 |
-
|
1566 |
-
|
1567 |
-
|
1568 |
-
|
1569 |
-
|
1570 |
-
$
|
1571 |
-
|
1572 |
-
|
1573 |
-
|
1574 |
-
|
1575 |
-
|
1576 |
-
|
1577 |
-
|
1578 |
-
|
1579 |
-
}
|
1580 |
-
|
1581 |
-
|
1582 |
-
|
1583 |
-
|
1584 |
-
|
1585 |
-
|
1586 |
-
$
|
1587 |
-
$
|
1588 |
-
|
1589 |
-
|
1590 |
-
|
1591 |
-
|
1592 |
-
|
1593 |
-
|
1594 |
-
$
|
1595 |
-
$
|
1596 |
-
|
1597 |
-
|
1598 |
-
|
1599 |
-
|
1600 |
-
$
|
1601 |
-
$
|
1602 |
-
|
1603 |
-
|
1604 |
-
$sfsi_section5['
|
1605 |
-
$sfsi_section5['
|
1606 |
-
$sfsi_section5['
|
1607 |
-
$sfsi_section5['
|
1608 |
-
$sfsi_section5['
|
1609 |
-
$sfsi_section5['
|
1610 |
-
$sfsi_section5['
|
1611 |
-
$sfsi_section5['
|
1612 |
-
$sfsi_section5['
|
1613 |
-
$sfsi_section5['
|
1614 |
-
$sfsi_section5['
|
1615 |
-
$sfsi_section5['
|
1616 |
-
|
1617 |
-
|
1618 |
-
|
1619 |
-
|
1620 |
-
|
1621 |
-
|
1622 |
-
|
1623 |
-
|
1624 |
-
|
1625 |
-
|
1626 |
-
|
1627 |
-
|
1628 |
-
|
1629 |
-
|
1630 |
-
|
1631 |
-
$
|
1632 |
-
|
1633 |
-
|
1634 |
-
//
|
1635 |
-
//
|
1636 |
-
//
|
1637 |
-
|
1638 |
-
|
1639 |
-
|
1640 |
-
|
1641 |
-
|
1642 |
-
|
1643 |
-
|
1644 |
-
|
1645 |
-
|
1646 |
-
|
1647 |
-
|
1648 |
-
|
1649 |
-
|
1650 |
-
|
1651 |
-
|
1652 |
-
|
1653 |
-
|
1654 |
-
|
1655 |
-
|
1656 |
-
$
|
1657 |
-
|
1658 |
-
|
1659 |
-
|
1660 |
-
|
1661 |
-
|
1662 |
-
|
1663 |
-
|
1664 |
-
|
1665 |
-
|
1666 |
-
|
1667 |
-
|
1668 |
-
|
1669 |
-
|
1670 |
-
|
1671 |
-
|
1672 |
-
|
1673 |
-
|
1674 |
-
|
1675 |
-
|
1676 |
-
|
1677 |
-
|
1678 |
-
|
1679 |
-
|
1680 |
-
|
1681 |
-
|
1682 |
-
|
1683 |
-
|
1684 |
-
|
1685 |
-
|
1686 |
-
|
1687 |
-
|
1688 |
-
|
1689 |
-
|
1690 |
-
|
1691 |
-
|
1692 |
-
|
1693 |
-
|
1694 |
-
|
1695 |
-
|
1696 |
-
|
1697 |
-
|
1698 |
-
|
1699 |
-
|
1700 |
-
|
1701 |
-
|
1702 |
-
|
1703 |
-
|
1704 |
-
|
1705 |
-
|
1706 |
-
|
1707 |
-
|
1708 |
-
|
1709 |
-
|
1710 |
-
|
1711 |
-
|
1712 |
-
|
1713 |
-
$sfsi_plus_section1_options['sfsi_plus_houzz_display']
|
1714 |
-
|
1715 |
-
|
1716 |
-
|
1717 |
-
|
1718 |
-
|
1719 |
-
|
1720 |
-
|
1721 |
-
|
1722 |
-
$sfsi_plus_section1_options['
|
1723 |
-
|
1724 |
-
|
1725 |
-
|
1726 |
-
|
1727 |
-
|
1728 |
-
|
1729 |
-
|
1730 |
-
|
1731 |
-
|
1732 |
-
$sfsi_plus_section1_options['sfsi_plus_telegram_display']
|
1733 |
-
|
1734 |
-
|
1735 |
-
|
1736 |
-
|
1737 |
-
|
1738 |
-
|
1739 |
-
|
1740 |
-
|
1741 |
-
|
1742 |
-
$sfsi_plus_section1_options['sfsi_plus_vk_display']
|
1743 |
-
|
1744 |
-
|
1745 |
-
|
1746 |
-
|
1747 |
-
|
1748 |
-
|
1749 |
-
|
1750 |
-
|
1751 |
-
|
1752 |
-
$sfsi_plus_section1_options['sfsi_plus_weibo_display']
|
1753 |
-
|
1754 |
-
|
1755 |
-
|
1756 |
-
|
1757 |
-
|
1758 |
-
|
1759 |
-
|
1760 |
-
|
1761 |
-
|
1762 |
-
$sfsi_plus_section1_options['sfsi_plus_wechat_display']
|
1763 |
-
|
1764 |
-
|
1765 |
-
|
1766 |
-
|
1767 |
-
|
1768 |
-
|
1769 |
-
|
1770 |
-
|
1771 |
-
|
1772 |
-
|
1773 |
-
|
1774 |
-
|
1775 |
-
|
1776 |
-
$
|
1777 |
-
|
1778 |
-
|
1779 |
-
|
1780 |
-
$
|
1781 |
-
|
1782 |
-
|
1783 |
-
|
1784 |
-
|
1785 |
-
|
1786 |
-
|
1787 |
-
|
1788 |
-
|
1789 |
-
|
1790 |
-
|
1791 |
-
|
1792 |
-
|
1793 |
-
|
1794 |
-
|
1795 |
-
|
1796 |
-
|
1797 |
-
|
1798 |
-
|
1799 |
-
|
1800 |
-
|
1801 |
-
|
1802 |
-
|
1803 |
-
|
1804 |
-
|
1805 |
-
|
1806 |
-
|
1807 |
-
|
1808 |
-
|
1809 |
-
|
1810 |
-
|
1811 |
-
|
1812 |
-
|
1813 |
-
|
1814 |
-
|
|
|
1815 |
?>
|
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 |
+
/* check if icons shuffling is activated in admin or not */
|
153 |
+
if($sfsi_section5['sfsi_plus_icons_stick']=="yes")
|
154 |
+
{
|
155 |
+
if(is_admin_bar_showing())
|
156 |
+
{
|
157 |
+
$Ictop="30px";
|
158 |
+
}
|
159 |
+
else
|
160 |
+
{
|
161 |
+
$Ictop="0";
|
162 |
+
}
|
163 |
+
$jquery.='var s = jQuery(".sfsi_plus_widget");
|
164 |
+
var pos = s.position();
|
165 |
+
jQuery(window).scroll(function(){
|
166 |
+
sfsi_plus_stick_widget("'.$Ictop.'");
|
167 |
+
}); ';
|
168 |
+
}
|
169 |
+
|
170 |
+
/* check if icons floating is activated in admin */
|
171 |
+
/*settings under third question*/
|
172 |
+
if($sfsi_section8['sfsi_plus_float_on_page']=="yes")
|
173 |
+
{
|
174 |
+
$top="15";
|
175 |
+
//switch($sfsi_section5['sfsi_plus_icons_floatPosition'])
|
176 |
+
switch($sfsi_section8['sfsi_plus_float_page_position'])
|
177 |
+
{
|
178 |
+
case "top-left" :
|
179 |
+
if(is_admin_bar_showing())
|
180 |
+
{
|
181 |
+
$position.="position:absolute;left:30px;top:35px;"; $top="35";
|
182 |
+
}
|
183 |
+
else
|
184 |
+
{
|
185 |
+
$position.="position:absolute;left:10px;top:2%"; $top="10";
|
186 |
+
}
|
187 |
+
break;
|
188 |
+
case "top-right" :
|
189 |
+
if(is_admin_bar_showing())
|
190 |
+
{
|
191 |
+
$position.="position:absolute;right:30px;top:35px;"; $top="35";
|
192 |
+
}else
|
193 |
+
{
|
194 |
+
$position.="position:absolute;right:10px;top:2%"; $top="10";
|
195 |
+
}
|
196 |
+
break;
|
197 |
+
case "center-right" :
|
198 |
+
$position.="position:absolute;right:30px;top:50%"; $top="center";
|
199 |
+
break;
|
200 |
+
case "center-left" :
|
201 |
+
$position.="position:absolute;left:30px;top:50%"; $top="center";
|
202 |
+
break;
|
203 |
+
case "bottom-right" :
|
204 |
+
$position.="position:absolute;right:30px;bottom:0px"; $top="bottom";
|
205 |
+
break;
|
206 |
+
case "bottom-left" :
|
207 |
+
$position.="position:absolute;left:30px;bottom:0px"; $top="bottom";
|
208 |
+
break;
|
209 |
+
}
|
210 |
+
if($sfsi_section8['sfsi_plus_float_page_position'] == 'center-right' || $sfsi_section8['sfsi_plus_float_page_position'] == 'center-left')
|
211 |
+
{
|
212 |
+
$jquery.="jQuery( document ).ready(function( totwith=".(isset($totwith)?$totwith:0)." )
|
213 |
+
{
|
214 |
+
var topalign = ( jQuery(window).height() - jQuery('#sfsi_plus_floater').height() ) / 2;
|
215 |
+
jQuery('#sfsi_plus_floater').css('top',topalign);
|
216 |
+
sfsi_plus_float_widget('".$top."');
|
217 |
+
});";
|
218 |
+
}
|
219 |
+
else
|
220 |
+
{
|
221 |
+
$jquery.="jQuery( document ).ready(function( totwith=".(isset($totwith)?$totwith:0)." ) { sfsi_plus_float_widget('".$top."')});";
|
222 |
+
}
|
223 |
+
}
|
224 |
+
|
225 |
+
$extra=0;
|
226 |
+
if($sfsi_section3['sfsi_plus_shuffle_icons']=="yes")
|
227 |
+
{
|
228 |
+
if($sfsi_section3['sfsi_plus_shuffle_Firstload']=="yes" && $sfsi_section3['sfsi_plus_shuffle_interval']=="yes")
|
229 |
+
{
|
230 |
+
$shuffle_time=(isset($sfsi_section3['sfsi_plus_shuffle_intervalTime'])) ? $sfsi_section3['sfsi_plus_shuffle_intervalTime'] : 3;
|
231 |
+
$shuffle_time=$shuffle_time*1000;
|
232 |
+
$jquery.="jQuery( document ).ready(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."); });";
|
233 |
+
}
|
234 |
+
else if($sfsi_section3['sfsi_plus_shuffle_Firstload']=="no" && $sfsi_section3['sfsi_plus_shuffle_interval']=="yes")
|
235 |
+
{
|
236 |
+
$shuffle_time=(isset($sfsi_section3['sfsi_plus_shuffle_intervalTime'])) ? $sfsi_section3['sfsi_plus_shuffle_intervalTime'] : 3;
|
237 |
+
$shuffle_time=$shuffle_time*1000;
|
238 |
+
$jquery.="jQuery( document ).ready(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."); });";
|
239 |
+
}
|
240 |
+
else
|
241 |
+
{
|
242 |
+
$jquery.="jQuery( document ).ready(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); });";
|
243 |
+
}
|
244 |
+
}
|
245 |
+
|
246 |
+
/* magnage the icons in saved order in admin */
|
247 |
+
$custom_icons_order = unserialize($sfsi_section5['sfsi_plus_CustomIcons_order']);
|
248 |
+
$icons_list = array();
|
249 |
+
if(isset($sfsi_plus_section1_options['sfsi_custom_files'])){
|
250 |
+
if(is_string($sfsi_plus_section1_options['sfsi_custom_files'])){
|
251 |
+
$icons_list= unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
|
252 |
+
}else{
|
253 |
+
$icons_list= $sfsi_plus_section1_options['sfsi_custom_files'];
|
254 |
+
}
|
255 |
+
}
|
256 |
+
if(!isset($sfsi_plus_section5_options['sfsi_plus_houzzIcon_order'])){
|
257 |
+
$sfsi_plus_section5_options['sfsi_plus_houzzIcon_order']=11;
|
258 |
+
}
|
259 |
+
if(!isset($sfsi_plus_section5_options['sfsi_plus_okIcon_order'])){
|
260 |
+
$sfsi_plus_section5_options['sfsi_plus_okIcon_order']=22;
|
261 |
+
}
|
262 |
+
if(!isset($sfsi_plus_section5_options['sfsi_plus_telegramIcon_order'])){
|
263 |
+
$sfsi_plus_section5_options['sfsi_plus_telegramIcon_order']=23;
|
264 |
+
}
|
265 |
+
if(!isset($sfsi_plus_section5_options['sfsi_plus_vkIcon_order'])){
|
266 |
+
$sfsi_plus_section5_options['sfsi_plus_vkIcon_order']=24;
|
267 |
+
}
|
268 |
+
if(!isset($sfsi_plus_section5_options['sfsi_plus_wechatIcon_order'])){
|
269 |
+
$sfsi_plus_section5_options['sfsi_plus_wechatIcon_order']=26;
|
270 |
+
}
|
271 |
+
if(!isset($sfsi_plus_section5_options['sfsi_plus_weiboIcon_order'])){
|
272 |
+
$sfsi_plus_section5_options['sfsi_plus_weiboIcon_order']=25;
|
273 |
+
}
|
274 |
+
|
275 |
+
// $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());
|
276 |
+
$icons_order = array(
|
277 |
+
'0' => '',
|
278 |
+
$sfsi_section5['sfsi_plus_rssIcon_order']=>'rss',
|
279 |
+
$sfsi_section5['sfsi_plus_emailIcon_order']=>'email',
|
280 |
+
$sfsi_section5['sfsi_plus_facebookIcon_order']=>'facebook',
|
281 |
+
$sfsi_section5['sfsi_plus_twitterIcon_order']=>'twitter',
|
282 |
+
$sfsi_section5['sfsi_plus_youtubeIcon_order']=>'youtube',
|
283 |
+
$sfsi_section5['sfsi_plus_pinterestIcon_order']=>'pinterest',
|
284 |
+
$sfsi_section5['sfsi_plus_linkedinIcon_order']=>'linkedin',
|
285 |
+
$sfsi_section5['sfsi_plus_instagramIcon_order']=>'instagram',
|
286 |
+
$sfsi_section5['sfsi_plus_houzzIcon_order']=>'houzz',
|
287 |
+
$sfsi_section5['sfsi_plus_okIcon_order']=>'ok',
|
288 |
+
$sfsi_section5['sfsi_plus_telegramIcon_order']=>'telegram',
|
289 |
+
$sfsi_section5['sfsi_plus_vkIcon_order']=>'vk',
|
290 |
+
$sfsi_section5['sfsi_plus_wechatIcon_order']=>'wechat',
|
291 |
+
$sfsi_section5['sfsi_plus_weiboIcon_order']=>'weibo'
|
292 |
+
|
293 |
+
);
|
294 |
+
if(!is_array($custom_icons_order)){
|
295 |
+
$custom_icons_order = array();
|
296 |
+
}
|
297 |
+
$max_custom_icon_order=max(array_keys($icons_order));
|
298 |
+
if(is_array($icons_list)){
|
299 |
+
foreach($icons_list as $index=>$icon){
|
300 |
+
if(false===array_search($index, array_column($custom_icons_order, 'ele'))){
|
301 |
+
array_push($custom_icons_order,array('order'=>($max_custom_icon_order+count($custom_icons_order)),'ele'=>$index));
|
302 |
+
}
|
303 |
+
}
|
304 |
+
}
|
305 |
+
if(is_array($custom_icons_order) )
|
306 |
+
{
|
307 |
+
foreach($custom_icons_order as $data)
|
308 |
+
{
|
309 |
+
$icons_order[$data['order']] = $data;
|
310 |
+
}
|
311 |
+
}
|
312 |
+
|
313 |
+
ksort($icons_order);
|
314 |
+
/* calculate the total width of widget according to icons */
|
315 |
+
if(!empty($icons_per_row))
|
316 |
+
{
|
317 |
+
$width = ((int)$icons_space+(int)$icons_size)*(int)$icons_per_row;
|
318 |
+
$main_width = $width=$width+$extra;
|
319 |
+
$main_width = $main_width."px";
|
320 |
+
}
|
321 |
+
else
|
322 |
+
{
|
323 |
+
$main_width="35%";
|
324 |
+
}
|
325 |
+
|
326 |
+
/* built the main widget div */
|
327 |
+
$icons_main='<div class="sfsiplus_norm_row sfsi_plus_wDiv" style="width:'.$main_width.';text-align:'.$icons_alignment.';'.$position1.'">';
|
328 |
+
$icons="";
|
329 |
+
/* loop through icons and bulit the icons with all settings applied in admin */
|
330 |
+
foreach($icons_order as $index => $icn)
|
331 |
+
{
|
332 |
+
|
333 |
+
if(is_array($icn))
|
334 |
+
{
|
335 |
+
$icon_arry=$icn; $icn="custom" ;
|
336 |
+
}
|
337 |
+
switch ($icn)
|
338 |
+
{
|
339 |
+
case 'rss' : if($sfsi_plus_section1_options['sfsi_plus_rss_display']=='yes') $icons.= sfsi_plus_prepairIcons('rss',0,"no",null,$share_url);
|
340 |
+
break;
|
341 |
+
case 'email' : if($sfsi_plus_section1_options['sfsi_plus_email_display']=='yes') $icons.= sfsi_plus_prepairIcons('email',0,"no",null,$share_url);
|
342 |
+
break;
|
343 |
+
case 'facebook' : if($sfsi_plus_section1_options['sfsi_plus_facebook_display']=='yes') $icons.= sfsi_plus_prepairIcons('facebook',0,"no",null,$share_url);
|
344 |
+
break;
|
345 |
+
|
346 |
+
case 'twitter' : if($sfsi_plus_section1_options['sfsi_plus_twitter_display']=='yes') $icons.= sfsi_plus_prepairIcons('twitter',0,"no",null,$share_url);
|
347 |
+
break;
|
348 |
+
case 'youtube' : if($sfsi_plus_section1_options['sfsi_plus_youtube_display']=='yes') $icons.= sfsi_plus_prepairIcons('youtube',0,"no",null,$share_url);
|
349 |
+
break;
|
350 |
+
case 'pinterest' : if($sfsi_plus_section1_options['sfsi_plus_pinterest_display']=='yes') $icons.= sfsi_plus_prepairIcons('pinterest',0,"no",null,$share_url);
|
351 |
+
break;
|
352 |
+
case 'linkedin' : if($sfsi_plus_section1_options['sfsi_plus_linkedin_display']=='yes') $icons.= sfsi_plus_prepairIcons('linkedin',0,"no",null,$share_url);
|
353 |
+
break;
|
354 |
+
case 'instagram' : if($sfsi_plus_section1_options['sfsi_plus_instagram_display']=='yes') $icons.= sfsi_plus_prepairIcons('instagram',0,"no",null,$share_url);
|
355 |
+
break;
|
356 |
+
case 'houzz' :
|
357 |
+
if(
|
358 |
+
isset($sfsi_plus_section1_options['sfsi_plus_houzz_display']) &&
|
359 |
+
$sfsi_plus_section1_options['sfsi_plus_houzz_display'] == 'yes'
|
360 |
+
)
|
361 |
+
{
|
362 |
+
$icons.= sfsi_plus_prepairIcons('houzz',0,"no",null,$share_url);
|
363 |
+
}
|
364 |
+
break;
|
365 |
+
case 'ok' : if($sfsi_plus_section1_options['sfsi_plus_ok_display']=='yes') $icons.= sfsi_plus_prepairIcons('ok',0,"no",null,$share_url);
|
366 |
+
break;
|
367 |
+
case 'telegram' : if($sfsi_plus_section1_options['sfsi_plus_telegram_display']=='yes') $icons.= sfsi_plus_prepairIcons('telegram',0,"no",null,$share_url);
|
368 |
+
break;
|
369 |
+
case 'vk' : if($sfsi_plus_section1_options['sfsi_plus_vk_display']=='yes') $icons.= sfsi_plus_prepairIcons('vk',0,"no",null,$share_url);
|
370 |
+
break;
|
371 |
+
case 'weibo' : if($sfsi_plus_section1_options['sfsi_plus_weibo_display']=='yes') $icons.= sfsi_plus_prepairIcons('weibo',0,"no",null,$share_url);
|
372 |
+
break;
|
373 |
+
|
374 |
+
case 'wechat' : if($sfsi_plus_section1_options['sfsi_plus_wechat_display']=='yes') $icons.= sfsi_plus_prepairIcons('wechat',0,"no",null,$share_url);
|
375 |
+
break;
|
376 |
+
case 'custom' : $icons.= sfsi_plus_prepairIcons($icon_arry['ele'],0,"no",null,$share_url);
|
377 |
+
break;
|
378 |
+
}
|
379 |
+
}
|
380 |
+
|
381 |
+
|
382 |
+
$jquery.="</script>";
|
383 |
+
$icons.='</div >';
|
384 |
+
|
385 |
+
$width = isset($width) && !empty($width) ? $width : 0;
|
386 |
+
|
387 |
+
$margin= $width+11;
|
388 |
+
|
389 |
+
$icons_main.=$icons.'<div id="sfsi_holder" class="sfsi_plus_holders" style="position: relative; float: left;width:100%;z-index:-1;"></div >'.$jquery;
|
390 |
+
/* if floating of icons is active create a floater div */
|
391 |
+
$icons_float='';
|
392 |
+
if($sfsi_section8['sfsi_plus_float_on_page']=="yes" && $isFloter==1)
|
393 |
+
{
|
394 |
+
if($sfsi_section8['sfsi_plus_float_page_position'] == "top-left")
|
395 |
+
{
|
396 |
+
$styleMargin = "margin-top:".$sfsi_section8['sfsi_plus_icons_floatMargin_top']."px;margin-left:".$sfsi_section8['sfsi_plus_icons_floatMargin_left']."px;";
|
397 |
+
}
|
398 |
+
elseif($sfsi_section8['sfsi_plus_float_page_position'] == "top-right")
|
399 |
+
{
|
400 |
+
$styleMargin = "margin-top:".$sfsi_section8['sfsi_plus_icons_floatMargin_top']."px;margin-right:".$sfsi_section8['sfsi_plus_icons_floatMargin_right']."px;";
|
401 |
+
}
|
402 |
+
elseif($sfsi_section8['sfsi_plus_float_page_position'] == "center-left")
|
403 |
+
{
|
404 |
+
$styleMargin = "margin-left:".$sfsi_section8['sfsi_plus_icons_floatMargin_left']."px;";
|
405 |
+
}
|
406 |
+
elseif($sfsi_section8['sfsi_plus_float_page_position'] == "center-right")
|
407 |
+
{
|
408 |
+
$styleMargin = "margin-right:".$sfsi_section8['sfsi_plus_icons_floatMargin_right']."px;";
|
409 |
+
}
|
410 |
+
elseif($sfsi_section8['sfsi_plus_float_page_position'] == "bottom-left")
|
411 |
+
{
|
412 |
+
$styleMargin = "margin-bottom:".$sfsi_section8['sfsi_plus_icons_floatMargin_bottom']."px;margin-left:".$sfsi_section8['sfsi_plus_icons_floatMargin_left']."px;";
|
413 |
+
}
|
414 |
+
elseif($sfsi_section8['sfsi_plus_float_page_position'] == "bottom-right")
|
415 |
+
{
|
416 |
+
$styleMargin = "margin-bottom:".$sfsi_section8['sfsi_plus_icons_floatMargin_bottom']."px;margin-right:".$sfsi_section8['sfsi_plus_icons_floatMargin_right']."px;";
|
417 |
+
}
|
418 |
+
|
419 |
+
// $icons_float = '<style >#sfsi_plus_floater { '.$styleMargin.' }</style>';
|
420 |
+
add_action('wp_footer',function()use($styleMargin){
|
421 |
+
echo '<script>var css = "#sfsi_plus_floater { '.$styleMargin.' }",
|
422 |
+
head = document.head || document.getElementsByTagName("head")[0],
|
423 |
+
style = document.createElement("style");
|
424 |
+
|
425 |
+
head.appendChild(style);
|
426 |
+
if (style.styleSheet){
|
427 |
+
// This is required for IE8 and below.
|
428 |
+
style.styleSheet.cssText = css;
|
429 |
+
} else {
|
430 |
+
style.appendChild(document.createTextNode(css));
|
431 |
+
}</script>';
|
432 |
+
},100);
|
433 |
+
$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.'">';
|
434 |
+
$icons_float .= $icons;
|
435 |
+
$icons_float .= "<input type='hidden' id='sfsi_plus_floater_sec' value='".$sfsi_section8['sfsi_plus_float_page_position']."' />";
|
436 |
+
$icons_float .= $jquery;
|
437 |
+
return $icons_float; exit;
|
438 |
+
}
|
439 |
+
$icons_data=$icons_main.$icons_float;
|
440 |
+
return $icons_data;
|
441 |
+
}
|
442 |
+
/* make all icons with saved settings in admin */
|
443 |
+
function sfsi_plus_prepairIcons($icon_name,$is_front=0, $onpost="no", $fromPost = NULL,$share_url=null)
|
444 |
+
{
|
445 |
+
global $wpdb; global $socialObj; global $post;
|
446 |
+
$mouse_hover_effect = '';
|
447 |
+
$active_theme = 'official';
|
448 |
+
$sfsi_plus_shuffle_Firstload = 'no';
|
449 |
+
$sfsi_plus_display_counts = "no";
|
450 |
+
$icon = '';
|
451 |
+
$url = '';
|
452 |
+
$alt_text = '';
|
453 |
+
$new_window = '';
|
454 |
+
$class = '';
|
455 |
+
/* access all saved settings in admin */
|
456 |
+
$sfsi_plus_section1_options = unserialize(get_option('sfsi_plus_section1_options',false));
|
457 |
+
$sfsi_plus_section2_options = unserialize(get_option('sfsi_plus_section2_options',false));
|
458 |
+
$sfsi_plus_section3_options = unserialize(get_option('sfsi_plus_section3_options',false));
|
459 |
+
$sfsi_plus_section4_options = unserialize(get_option('sfsi_plus_section4_options',false));
|
460 |
+
$sfsi_plus_section5_options = unserialize(get_option('sfsi_plus_section5_options',false));
|
461 |
+
$sfsi_plus_section6_options = unserialize(get_option('sfsi_plus_section6_options',false));
|
462 |
+
$sfsi_plus_section7_options = unserialize(get_option('sfsi_plus_section7_options',false));
|
463 |
+
$sfsi_plus_section8_options = unserialize(get_option('sfsi_plus_section8_options',false));
|
464 |
+
/* get active theme */
|
465 |
+
$border_radius = '';
|
466 |
+
$active_theme = $sfsi_plus_section3_options['sfsi_plus_actvite_theme'];
|
467 |
+
|
468 |
+
|
469 |
+
/* shuffle effect */
|
470 |
+
if($sfsi_plus_section3_options['sfsi_plus_shuffle_icons']=='yes')
|
471 |
+
{
|
472 |
+
$sfsi_plus_shuffle_Firstload=$sfsi_plus_section3_options["sfsi_plus_shuffle_Firstload"];
|
473 |
+
if($sfsi_plus_section3_options["sfsi_plus_shuffle_interval"]=="yes")
|
474 |
+
{
|
475 |
+
$sfsi_plus_shuffle_interval = $sfsi_plus_section3_options["sfsi_plus_shuffle_intervalTime"];
|
476 |
+
}
|
477 |
+
}
|
478 |
+
/* define the main url for icon access */
|
479 |
+
$icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/".$active_theme."/";
|
480 |
+
$visit_iconsUrl = SFSI_PLUS_PLUGURL."images/visit_icons/";
|
481 |
+
$share_iconsUrl = SFSI_PLUS_PLUGURL."images/share_icons/";
|
482 |
+
$hoverSHow = 0;
|
483 |
+
// var_dump($icons_baseUrl,$visit_iconsUrl);die();
|
484 |
+
/* check is icon is a custom icon or default icon */
|
485 |
+
if(is_numeric($icon_name)) { $icon_n=$icon_name; $icon_name="custom" ; }
|
486 |
+
$counts='';
|
487 |
+
$twit_tolCls = "";
|
488 |
+
$twt_margin = "";
|
489 |
+
$icons_space = $sfsi_plus_section5_options['sfsi_plus_icons_spacing'];
|
490 |
+
$padding_top = '';
|
491 |
+
|
492 |
+
$scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http";
|
493 |
+
$option3 = unserialize(get_option('sfsi_plus_section3_options',false));
|
494 |
+
|
495 |
+
if(isset($option3['sfsi_plus_actvite_theme']) && !empty($option3['sfsi_plus_actvite_theme'])){
|
496 |
+
|
497 |
+
$active_theme = $option3['sfsi_plus_actvite_theme'];
|
498 |
+
}else{
|
499 |
+
$active_theme = "default";
|
500 |
+
}
|
501 |
+
$glossy_theme_adjustment=0;
|
502 |
+
//$current_url = $scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
|
503 |
+
if(null!==$share_url){
|
504 |
+
$current_url = $share_url;
|
505 |
+
}elseif($fromPost == 'yes' && !empty($post))
|
506 |
+
{
|
507 |
+
$current_url = get_permalink($post->ID);
|
508 |
+
}
|
509 |
+
else
|
510 |
+
{
|
511 |
+
//$current_url = $scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
|
512 |
+
$current_url = sfsi_plus_get_current_url();
|
513 |
+
}
|
514 |
+
$url = "#";
|
515 |
+
$cmcls='';
|
516 |
+
$toolClass = '';
|
517 |
+
$icons_language = $sfsi_plus_section5_options['sfsi_plus_icons_language'];
|
518 |
+
switch($icon_name)
|
519 |
+
{
|
520 |
+
|
521 |
+
|
522 |
+
case "rss" :
|
523 |
+
$socialObj = new sfsi_plus_SocialHelper(); /* global object to access 3rd party icon's actions */
|
524 |
+
$url = ($sfsi_plus_section2_options['sfsi_plus_rss_url'])? $sfsi_plus_section2_options['sfsi_plus_rss_url'] : 'javascript:void(0);';
|
525 |
+
$toolClass = "rss_tool_bdr";
|
526 |
+
$hoverdiv = '';
|
527 |
+
$arsfsiplus_row_class = "bot_rss_arow";
|
528 |
+
|
529 |
+
/* fecth no of counts if active in admin section */
|
530 |
+
if($sfsi_plus_section4_options['sfsi_plus_rss_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
|
531 |
+
{
|
532 |
+
$counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_rss_manualCounts']);
|
533 |
+
}
|
534 |
+
|
535 |
+
if(!empty($sfsi_plus_section5_options['sfsi_plus_rss_MouseOverText']))
|
536 |
+
{
|
537 |
+
$alt_text = $sfsi_plus_section5_options['sfsi_plus_rss_MouseOverText'];
|
538 |
+
}
|
539 |
+
else
|
540 |
+
{
|
541 |
+
$alt_text = 'RSS';
|
542 |
+
}
|
543 |
+
|
544 |
+
//Custom Skin Support {Monad}
|
545 |
+
if($active_theme == 'custom_support')
|
546 |
+
{
|
547 |
+
if(get_option("plus_rss_skin"))
|
548 |
+
{
|
549 |
+
$icon = get_option("plus_rss_skin");
|
550 |
+
}
|
551 |
+
else
|
552 |
+
{
|
553 |
+
$active_theme = 'default';
|
554 |
+
$icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
|
555 |
+
$icon = $icons_baseUrl.$active_theme."_rss.png";
|
556 |
+
}
|
557 |
+
}
|
558 |
+
else
|
559 |
+
{
|
560 |
+
$icon = $icons_baseUrl.$active_theme."_rss.png";
|
561 |
+
}
|
562 |
+
break;
|
563 |
+
|
564 |
+
case "email" :
|
565 |
+
$socialObj = new sfsi_plus_SocialHelper(); /* global object to access 3rd party icon's actions */
|
566 |
+
$hoverdiv = '';
|
567 |
+
$sfsi_plus_section2_options['sfsi_plus_email_url'];
|
568 |
+
if(sanitize_text_field(get_option('sfsi_plus_feed_id',false)) == ""){
|
569 |
+
$url = "https://specificfeeds.com/follow";
|
570 |
+
}else{
|
571 |
+
$url = (isset($sfsi_plus_section2_options['sfsi_plus_email_url'])) ? $sfsi_plus_section2_options['sfsi_plus_email_url'] : 'javascript:void(0);';
|
572 |
+
}
|
573 |
+
$toolClass = "email_tool_bdr";
|
574 |
+
$arsfsiplus_row_class = "bot_eamil_arow";
|
575 |
+
|
576 |
+
/* fecth no of counts if active in admin section */
|
577 |
+
if($sfsi_plus_section4_options['sfsi_plus_email_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
|
578 |
+
{
|
579 |
+
if($sfsi_plus_section4_options['sfsi_plus_email_countsFrom']=="manual")
|
580 |
+
{
|
581 |
+
$counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_email_manualCounts']);
|
582 |
+
}
|
583 |
+
else
|
584 |
+
{
|
585 |
+
$counts= $socialObj->SFSI_getFeedSubscriber(sanitize_text_field(get_option('sfsi_plus_feed_id',false)));
|
586 |
+
}
|
587 |
+
}
|
588 |
+
|
589 |
+
if(!empty($sfsi_plus_section5_options['sfsi_plus_email_MouseOverText']))
|
590 |
+
{
|
591 |
+
$alt_text = $sfsi_plus_section5_options['sfsi_plus_email_MouseOverText'];
|
592 |
+
}
|
593 |
+
else
|
594 |
+
{
|
595 |
+
$alt_text = 'EMAIL';
|
596 |
+
}
|
597 |
+
|
598 |
+
//Custom Skin Support {Monad}
|
599 |
+
if($active_theme == 'custom_support')
|
600 |
+
{
|
601 |
+
if(get_option("plus_email_skin"))
|
602 |
+
{
|
603 |
+
$icon = get_option("plus_email_skin");
|
604 |
+
}
|
605 |
+
else
|
606 |
+
{
|
607 |
+
$active_theme = 'default';
|
608 |
+
$icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
|
609 |
+
//$icon=($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi") ? $icons_baseUrl.$active_theme."_sf.png" : $icons_baseUrl.$active_theme."_email.png";
|
610 |
+
if($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi")
|
611 |
+
{
|
612 |
+
$icon = $icons_baseUrl.$active_theme."_sf.png";
|
613 |
+
}
|
614 |
+
elseif($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="email")
|
615 |
+
{
|
616 |
+
$icon = $icons_baseUrl.$active_theme."_email.png";
|
617 |
+
}
|
618 |
+
else
|
619 |
+
{
|
620 |
+
$icon = $icons_baseUrl.$active_theme."_subscribe.png";
|
621 |
+
}
|
622 |
+
}
|
623 |
+
}
|
624 |
+
else
|
625 |
+
{
|
626 |
+
//$icon=($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi") ? $icons_baseUrl.$active_theme."_sf.png" : $icons_baseUrl.$active_theme."_email.png";
|
627 |
+
if($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi")
|
628 |
+
{
|
629 |
+
$icon = $icons_baseUrl.$active_theme."_sf.png";
|
630 |
+
}
|
631 |
+
elseif($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="email")
|
632 |
+
{
|
633 |
+
$icon = $icons_baseUrl.$active_theme."_email.png";
|
634 |
+
}
|
635 |
+
else
|
636 |
+
{
|
637 |
+
$icon = $icons_baseUrl.$active_theme."_subscribe.png";
|
638 |
+
}
|
639 |
+
}
|
640 |
+
break;
|
641 |
+
|
642 |
+
case "facebook" :
|
643 |
+
$socialObj = new sfsi_plus_SocialHelper();
|
644 |
+
$width = 62;
|
645 |
+
$totwith = $width+28+$icons_space;
|
646 |
+
$twt_margin = $totwith /2;
|
647 |
+
$toolClass = "sfsi_plus_fb_tool_bdr";
|
648 |
+
$arsfsiplus_row_class = "bot_fb_arow";
|
649 |
+
|
650 |
+
/* check for the over section */
|
651 |
+
if(!empty($sfsi_plus_section5_options['sfsi_plus_facebook_MouseOverText']))
|
652 |
+
{
|
653 |
+
$alt_text = $sfsi_plus_section5_options['sfsi_plus_facebook_MouseOverText'];
|
654 |
+
}
|
655 |
+
else
|
656 |
+
{
|
657 |
+
$alt_text = "FACEBOOK";
|
658 |
+
}
|
659 |
+
|
660 |
+
$facebook_icons_lang = $sfsi_plus_section5_options['sfsi_plus_facebook_icons_language'];
|
661 |
+
// return $facebook_icons_lang;die();wp_die();
|
662 |
+
$visit_icon = SFSI_PLUS_DOCROOT.'/images/visit_icons/Visit_us_fb/icon_'.$facebook_icons_lang.'.png';
|
663 |
+
if(file_exists($visit_icon))
|
664 |
+
{
|
665 |
+
$visit_icon = $visit_iconsUrl."Visit_us_fb/icon_".$facebook_icons_lang.".png";
|
666 |
+
}
|
667 |
+
else
|
668 |
+
{
|
669 |
+
$visit_icon = $visit_iconsUrl."fb.png";
|
670 |
+
}
|
671 |
+
|
672 |
+
//$visit_iconDefault = $visit_iconsUrl."facebook.png";
|
673 |
+
|
674 |
+
|
675 |
+
$url = ($sfsi_plus_section2_options['sfsi_plus_facebookPage_url']) ? $sfsi_plus_section2_options['sfsi_plus_facebookPage_url']:'javascript:void(0);';
|
676 |
+
|
677 |
+
if($sfsi_plus_section2_options['sfsi_plus_facebookLike_option']=="yes" || $sfsi_plus_section2_options['sfsi_plus_facebookShare_option']=="yes" )
|
678 |
+
{
|
679 |
+
$url=($sfsi_plus_section2_options['sfsi_plus_facebookPage_url']) ? $sfsi_plus_section2_options['sfsi_plus_facebookPage_url']:'javascript:void(0);';
|
680 |
+
$hoverSHow=1;
|
681 |
+
$hoverdiv='';
|
682 |
+
if($sfsi_plus_section2_options['sfsi_plus_facebookPage_option']=="yes")
|
683 |
+
{
|
684 |
+
$hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_plus_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
|
685 |
+
}
|
686 |
+
if($sfsi_plus_section2_options['sfsi_plus_facebookLike_option']=="yes")
|
687 |
+
{
|
688 |
+
$hoverdiv.="<div class='icon2'>".$socialObj->sfsi_plus_FBlike($current_url)."</div>";
|
689 |
+
}
|
690 |
+
if($sfsi_plus_section2_options['sfsi_plus_facebookShare_option']=="yes")
|
691 |
+
{
|
692 |
+
$hoverdiv.="<div class='icon3'>".$socialObj->sfsiFB_Share($current_url)."</div>";
|
693 |
+
}
|
694 |
+
|
695 |
+
}
|
696 |
+
|
697 |
+
/* fecth no of counts if active in admin section */
|
698 |
+
if(
|
699 |
+
$fromPost == 'yes' && !empty($post) &&
|
700 |
+
$sfsi_plus_section4_options['sfsi_plus_facebook_countsDisplay']=="yes" &&
|
701 |
+
$sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes"
|
702 |
+
)
|
703 |
+
{
|
704 |
+
$fb_data=$socialObj->sfsi_get_fb($current_url);
|
705 |
+
$counts=$socialObj->format_num($fb_data['total_count']);
|
706 |
+
if(empty($counts))
|
707 |
+
{
|
708 |
+
$counts=(string) "0";
|
709 |
+
}
|
710 |
+
}
|
711 |
+
else
|
712 |
+
{
|
713 |
+
if(
|
714 |
+
$sfsi_plus_section4_options['sfsi_plus_facebook_countsDisplay']=="yes" &&
|
715 |
+
$sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes"
|
716 |
+
)
|
717 |
+
{
|
718 |
+
if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="manual")
|
719 |
+
{
|
720 |
+
$counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_facebook_manualCounts']);
|
721 |
+
}
|
722 |
+
else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="likes")
|
723 |
+
{
|
724 |
+
$fb_data=$socialObj->sfsi_get_fb($current_url);
|
725 |
+
$counts=$socialObj->format_num($fb_data);
|
726 |
+
if(empty($counts))
|
727 |
+
{
|
728 |
+
$counts=(string) "0";
|
729 |
+
}
|
730 |
+
}
|
731 |
+
else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="followers")
|
732 |
+
{
|
733 |
+
$fb_data=$socialObj->sfsi_get_fb($current_url);
|
734 |
+
$counts=$socialObj->format_num($fb_data['share_count']);
|
735 |
+
|
736 |
+
}
|
737 |
+
else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="mypage")
|
738 |
+
{
|
739 |
+
$current_url = $sfsi_plus_section4_options['sfsi_plus_facebook_mypageCounts'];
|
740 |
+
$fb_data=$socialObj->sfsi_get_fb_pagelike($current_url);
|
741 |
+
$counts=$socialObj->format_num($fb_data);
|
742 |
+
}
|
743 |
+
}
|
744 |
+
}
|
745 |
+
|
746 |
+
//Custom Skin Support {Monad}
|
747 |
+
if($active_theme == 'custom_support')
|
748 |
+
{
|
749 |
+
if(get_option("plus_facebook_skin"))
|
750 |
+
{
|
751 |
+
$icon = get_option("plus_facebook_skin");
|
752 |
+
}
|
753 |
+
else
|
754 |
+
{
|
755 |
+
$active_theme = 'default';
|
756 |
+
$icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
|
757 |
+
$icon=$icons_baseUrl.$active_theme."_fb.png";
|
758 |
+
}
|
759 |
+
}
|
760 |
+
else
|
761 |
+
{
|
762 |
+
$icon=$icons_baseUrl.$active_theme."_fb.png";
|
763 |
+
}
|
764 |
+
break;
|
765 |
+
|
766 |
+
case "twitter" :
|
767 |
+
$toolClass = "sfsi_plus_twt_tool_bdr";
|
768 |
+
$arsfsiplus_row_class = "bot_twt_arow";
|
769 |
+
$socialObj = new sfsi_plus_SocialHelper();
|
770 |
+
$url = ($sfsi_plus_section2_options['sfsi_plus_twitter_pageURL'])?$sfsi_plus_section2_options['sfsi_plus_twitter_pageURL'] : 'javascript:void(0);';
|
771 |
+
$twitter_user = $sfsi_plus_section2_options['sfsi_plus_twitter_followUserName'];
|
772 |
+
$twitter_text = __($sfsi_plus_section2_options['sfsi_plus_twitter_aboutPageText'],SFSI_PLUS_DOMAIN);
|
773 |
+
$width = 59;
|
774 |
+
$totwith = $width+28+$icons_space;
|
775 |
+
$twt_margin = $totwith /2;
|
776 |
+
/* check for icons to display */
|
777 |
+
$hoverdiv='';
|
778 |
+
|
779 |
+
$twitter_icons_lang = $sfsi_plus_section5_options['sfsi_plus_twitter_icons_language'];
|
780 |
+
$visit_icon = SFSI_PLUS_DOCROOT.'/images/visit_icons/Visit_us_twitter/icon_'.$twitter_icons_lang.'.png';
|
781 |
+
if(file_exists($visit_icon))
|
782 |
+
{
|
783 |
+
$visit_icon = $visit_iconsUrl."Visit_us_twitter/icon_".$twitter_icons_lang.".png";
|
784 |
+
}
|
785 |
+
else
|
786 |
+
{
|
787 |
+
$visit_icon = $visit_iconsUrl."twitter.png";
|
788 |
+
}
|
789 |
+
//$visit_icon = $visit_iconsUrl."twitter.png";
|
790 |
+
|
791 |
+
if($icons_language == 'nn_NO')
|
792 |
+
{
|
793 |
+
$icons_language = 'no';
|
794 |
+
}
|
795 |
+
|
796 |
+
if($sfsi_plus_section2_options['sfsi_plus_twitter_followme']=="yes" || $sfsi_plus_section2_options['sfsi_plus_twitter_aboutPage']=="yes")
|
797 |
+
{
|
798 |
+
$hoverSHow=1;
|
799 |
+
//Visit twitter page {Monad}
|
800 |
+
if($sfsi_plus_section2_options['sfsi_plus_twitter_page']=="yes")
|
801 |
+
{
|
802 |
+
$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>";
|
803 |
+
}
|
804 |
+
if($sfsi_plus_section2_options['sfsi_plus_twitter_followme']=="yes" && !empty($twitter_user))
|
805 |
+
{
|
806 |
+
$hoverdiv.="<div class='icon1'>".$socialObj->sfsi_twitterFollow($twitter_user,$icons_language)."</div>";
|
807 |
+
}
|
808 |
+
if($sfsi_plus_section2_options['sfsi_plus_twitter_aboutPage']=="yes")
|
809 |
+
{
|
810 |
+
$hoverdiv.="<div class='icon2'>".$socialObj->sfsi_twitterShare($current_url,$twitter_text,$icons_language)."</div>";
|
811 |
+
}
|
812 |
+
|
813 |
+
}
|
814 |
+
|
815 |
+
/* fecth no of counts if active in admin section */
|
816 |
+
if($sfsi_plus_section4_options['sfsi_plus_twitter_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
|
817 |
+
{
|
818 |
+
if($sfsi_plus_section4_options['sfsi_plus_twitter_countsFrom']=="manual")
|
819 |
+
{
|
820 |
+
$counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_twitter_manualCounts']);
|
821 |
+
}
|
822 |
+
else if($sfsi_plus_section4_options['sfsi_plus_twitter_countsFrom']=="source")
|
823 |
+
{
|
824 |
+
$tw_settings=array('sfsiplus_tw_consumer_key'=>$sfsi_plus_section4_options['sfsiplus_tw_consumer_key'],
|
825 |
+
'sfsiplus_tw_consumer_secret'=> $sfsi_plus_section4_options['sfsiplus_tw_consumer_secret'],
|
826 |
+
'sfsiplus_tw_oauth_access_token'=> $sfsi_plus_section4_options['sfsiplus_tw_oauth_access_token'],
|
827 |
+
'sfsiplus_tw_oauth_access_token_secret'=> $sfsi_plus_section4_options['sfsiplus_tw_oauth_access_token_secret']);
|
828 |
+
|
829 |
+
$followers=$socialObj->sfsi_get_tweets($twitter_user,$tw_settings);
|
830 |
+
$counts=$socialObj->format_num($followers);
|
831 |
+
if(empty($counts))
|
832 |
+
{
|
833 |
+
$counts=(string) "0";
|
834 |
+
}
|
835 |
+
}
|
836 |
+
}
|
837 |
+
|
838 |
+
//Giving alternative text to image
|
839 |
+
if(!empty($sfsi_plus_section5_options['sfsi_plus_twitter_MouseOverText']))
|
840 |
+
{
|
841 |
+
$alt_text = $sfsi_plus_section5_options['sfsi_plus_twitter_MouseOverText'];
|
842 |
+
}
|
843 |
+
else
|
844 |
+
{
|
845 |
+
$alt_text = "TWITTER";
|
846 |
+
}
|
847 |
+
|
848 |
+
//Custom Skin Support {Monad}
|
849 |
+
if($active_theme == 'custom_support')
|
850 |
+
{
|
851 |
+
if(get_option("plus_twitter_skin"))
|
852 |
+
{
|
853 |
+
$icon = get_option("plus_twitter_skin");
|
854 |
+
}
|
855 |
+
else
|
856 |
+
{
|
857 |
+
$active_theme = 'default';
|
858 |
+
$icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
|
859 |
+
$icon=$icons_baseUrl.$active_theme."_twitter.png";
|
860 |
+
}
|
861 |
+
}
|
862 |
+
else
|
863 |
+
{
|
864 |
+
$icon=$icons_baseUrl.$active_theme."_twitter.png";
|
865 |
+
}
|
866 |
+
break;
|
867 |
+
|
868 |
+
case "youtube" :
|
869 |
+
$socialObj = new sfsi_plus_SocialHelper();
|
870 |
+
$toolClass = "utube_tool_bdr";
|
871 |
+
$arsfsiplus_row_class = "bot_utube_arow";
|
872 |
+
$socialObj = new sfsi_plus_SocialHelper();
|
873 |
+
$width = 96;
|
874 |
+
$totwith = $width+28+$icons_space;
|
875 |
+
$twt_margin = $totwith /2;
|
876 |
+
$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';
|
877 |
+
$visit_icon = $visit_iconsUrl."youtube.png";
|
878 |
+
|
879 |
+
$url = ($sfsi_plus_section2_options['sfsi_plus_youtube_pageUrl'])? $sfsi_plus_section2_options['sfsi_plus_youtube_pageUrl'] : 'javascript:void(0);';
|
880 |
+
|
881 |
+
//Giving alternative text to image
|
882 |
+
if(!empty($sfsi_plus_section5_options['sfsi_plus_youtube_MouseOverText']))
|
883 |
+
{
|
884 |
+
$alt_text = $sfsi_plus_section5_options['sfsi_plus_youtube_MouseOverText'];
|
885 |
+
}
|
886 |
+
else
|
887 |
+
{
|
888 |
+
$alt_text = "YOUTUBE";
|
889 |
+
}
|
890 |
+
|
891 |
+
/* check for icons to display */
|
892 |
+
$hoverdiv="";
|
893 |
+
if($sfsi_plus_section2_options['sfsi_plus_youtube_follow']=="yes" )
|
894 |
+
{
|
895 |
+
$hoverSHow=1;
|
896 |
+
if($sfsi_plus_section2_options['sfsi_plus_youtube_page']=="yes")
|
897 |
+
{
|
898 |
+
$hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_plus_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
|
899 |
+
}
|
900 |
+
if($sfsi_plus_section2_options['sfsi_plus_youtube_follow']=="yes")
|
901 |
+
{
|
902 |
+
$hoverdiv.="<div class='icon2'>".$socialObj->sfsi_YouTubeSub($youtube_user)."</div>";
|
903 |
+
}
|
904 |
+
}
|
905 |
+
|
906 |
+
/* fecth no of counts if active in admin section */
|
907 |
+
if($sfsi_plus_section4_options['sfsi_plus_youtube_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
|
908 |
+
{
|
909 |
+
if($sfsi_plus_section4_options['sfsi_plus_youtube_countsFrom']=="manual")
|
910 |
+
{
|
911 |
+
$counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_youtube_manualCounts']);
|
912 |
+
}
|
913 |
+
else if($sfsi_plus_section4_options['sfsi_plus_youtube_countsFrom']=="subscriber")
|
914 |
+
{
|
915 |
+
$followers=$socialObj->sfsi_get_youtube($youtube_user);
|
916 |
+
$counts=$socialObj->format_num($followers);
|
917 |
+
if(empty($counts))
|
918 |
+
{
|
919 |
+
$counts=(string) "0";
|
920 |
+
}
|
921 |
+
}
|
922 |
+
}
|
923 |
+
|
924 |
+
//Custom Skin Support {Monad}
|
925 |
+
if($active_theme == 'custom_support')
|
926 |
+
{
|
927 |
+
if(get_option("plus_youtube_skin"))
|
928 |
+
{
|
929 |
+
$icon = get_option("plus_youtube_skin");
|
930 |
+
}
|
931 |
+
else
|
932 |
+
{
|
933 |
+
$active_theme = 'default';
|
934 |
+
$icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
|
935 |
+
$icon = $icons_baseUrl.$active_theme."_youtube.png";
|
936 |
+
}
|
937 |
+
}
|
938 |
+
else
|
939 |
+
{
|
940 |
+
$icon = $icons_baseUrl.$active_theme."_youtube.png";
|
941 |
+
}
|
942 |
+
break;
|
943 |
+
|
944 |
+
case "pinterest" :
|
945 |
+
$width = 73;
|
946 |
+
$totwith = $width+28+$icons_space;
|
947 |
+
$twt_margin = $totwith /2;
|
948 |
+
$socialObj = new sfsi_plus_SocialHelper();
|
949 |
+
$toolClass = "sfsi_plus_printst_tool_bdr";
|
950 |
+
$arsfsiplus_row_class = "bot_pintst_arow";
|
951 |
+
|
952 |
+
$pinterest_user = (isset($sfsi_plus_section4_options['sfsi_plus_pinterest_user']))
|
953 |
+
? $sfsi_plus_section4_options['sfsi_plus_pinterest_user'] : '';
|
954 |
+
|
955 |
+
$pinterest_board = (isset($sfsi_plus_section4_options['sfsi_plus_pinterest_board']))
|
956 |
+
? $sfsi_plus_section4_options['sfsi_plus_pinterest_board'] : '';
|
957 |
+
|
958 |
+
$visit_icon = $visit_iconsUrl."pinterest.png";
|
959 |
+
|
960 |
+
$url = (isset($sfsi_plus_section2_options['sfsi_plus_pinterest_pageUrl'])) ? $sfsi_plus_section2_options['sfsi_plus_pinterest_pageUrl'] : 'javascript:void(0);';
|
961 |
+
|
962 |
+
//Giving alternative text to image
|
963 |
+
if(!empty($sfsi_plus_section5_options['sfsi_plus_pinterest_MouseOverText']))
|
964 |
+
{
|
965 |
+
$alt_text = $sfsi_plus_section5_options['sfsi_plus_pinterest_MouseOverText'];
|
966 |
+
}
|
967 |
+
else
|
968 |
+
{
|
969 |
+
$alt_text = "PINTEREST";
|
970 |
+
}
|
971 |
+
|
972 |
+
/* check for icons to display */
|
973 |
+
$hoverdiv="";
|
974 |
+
if($sfsi_plus_section2_options['sfsi_plus_pinterest_pingBlog']=="yes" )
|
975 |
+
{
|
976 |
+
$hoverSHow=1;
|
977 |
+
if($sfsi_plus_section2_options['sfsi_plus_pinterest_page']=="yes")
|
978 |
+
{
|
979 |
+
$hoverdiv.="<div class='icon1'><a href='".$url."' ".sfsi_plus_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
|
980 |
+
}
|
981 |
+
if($sfsi_plus_section2_options['sfsi_plus_pinterest_pingBlog']=="yes")
|
982 |
+
{
|
983 |
+
if($sfsi_plus_section2_options['sfsi_plus_pinterest_pingBlog']=="yes")
|
984 |
+
{
|
985 |
+
$hoverdiv.="<div class='icon2'>".$socialObj->sfsi_PinIt($current_url)."</div>";
|
986 |
+
}
|
987 |
+
}
|
988 |
+
}
|
989 |
+
|
990 |
+
/* fecth no of counts if active in admin section */
|
991 |
+
if($sfsi_plus_section4_options['sfsi_plus_pinterest_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
|
992 |
+
{
|
993 |
+
if($sfsi_plus_section4_options['sfsi_plus_pinterest_countsFrom']=="manual")
|
994 |
+
{
|
995 |
+
$counts = $socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_pinterest_manualCounts']);
|
996 |
+
}
|
997 |
+
else if($sfsi_plus_section4_options['sfsi_plus_pinterest_countsFrom']=="pins")
|
998 |
+
{
|
999 |
+
$pins=$socialObj->sfsi_get_pinterest($current_url);
|
1000 |
+
$counts=$pins;
|
1001 |
+
if(empty($counts))
|
1002 |
+
{
|
1003 |
+
$counts=(string) "0";
|
1004 |
+
}
|
1005 |
+
}
|
1006 |
+
}
|
1007 |
+
|
1008 |
+
//Custom Skin Support {Monad}
|
1009 |
+
if($active_theme == 'custom_support')
|
1010 |
+
{
|
1011 |
+
if(get_option("plus_pintrest_skin"))
|
1012 |
+
{
|
1013 |
+
$icon = get_option("plus_pintrest_skin");
|
1014 |
+
}
|
1015 |
+
else
|
1016 |
+
{
|
1017 |
+
$active_theme = 'default';
|
1018 |
+
$icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
|
1019 |
+
$icon=$icons_baseUrl.$active_theme."_pinterest.png";
|
1020 |
+
}
|
1021 |
+
}
|
1022 |
+
else
|
1023 |
+
{
|
1024 |
+
$icon=$icons_baseUrl.$active_theme."_pinterest.png";
|
1025 |
+
}
|
1026 |
+
break;
|
1027 |
+
|
1028 |
+
case "instagram" :
|
1029 |
+
$toolClass = "instagram_tool_bdr";
|
1030 |
+
$arsfsiplus_row_class = "bot_pintst_arow";
|
1031 |
+
$socialObj = new sfsi_plus_SocialHelper();
|
1032 |
+
$url = (isset($sfsi_plus_section2_options['sfsi_plus_instagram_pageUrl'])) ? $sfsi_plus_section2_options['sfsi_plus_instagram_pageUrl'] : 'javascript:void(0);';
|
1033 |
+
$instagram_user_name = $sfsi_plus_section4_options['sfsi_plus_instagram_User'];
|
1034 |
+
|
1035 |
+
//Giving alternative text to image
|
1036 |
+
if(!empty($sfsi_plus_section5_options['sfsi_plus_instagram_MouseOverText']))
|
1037 |
+
{
|
1038 |
+
$alt_text = $sfsi_plus_section5_options['sfsi_plus_instagram_MouseOverText'];
|
1039 |
+
}
|
1040 |
+
else
|
1041 |
+
{
|
1042 |
+
$alt_text = "INSTAGRAM";
|
1043 |
+
}
|
1044 |
+
|
1045 |
+
$hoverdiv="";
|
1046 |
+
/* fecth no of counts if active in admin section */
|
1047 |
+
if($sfsi_plus_section4_options['sfsi_plus_instagram_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
|
1048 |
+
{
|
1049 |
+
if($sfsi_plus_section4_options['sfsi_plus_instagram_countsFrom']=="manual")
|
1050 |
+
{
|
1051 |
+
$counts = $socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_instagram_manualCounts']);
|
1052 |
+
}
|
1053 |
+
else if($sfsi_plus_section4_options['sfsi_plus_instagram_countsFrom']=="followers")
|
1054 |
+
{
|
1055 |
+
$counts=$socialObj->sfsi_get_instagramFollowers($instagram_user_name);
|
1056 |
+
if(empty($counts))
|
1057 |
+
{
|
1058 |
+
$counts=(string) "0";
|
1059 |
+
}
|
1060 |
+
}
|
1061 |
+
}
|
1062 |
+
|
1063 |
+
//Custom Skin Support {Monad}
|
1064 |
+
if($active_theme == 'custom_support')
|
1065 |
+
{
|
1066 |
+
if(get_option("plus_instagram_skin"))
|
1067 |
+
{
|
1068 |
+
$icon = get_option("plus_instagram_skin");
|
1069 |
+
}
|
1070 |
+
else
|
1071 |
+
{
|
1072 |
+
$active_theme = 'default';
|
1073 |
+
$icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
|
1074 |
+
$icon=$icons_baseUrl.$active_theme."_instagram.png";
|
1075 |
+
}
|
1076 |
+
}
|
1077 |
+
else
|
1078 |
+
{
|
1079 |
+
$icon=$icons_baseUrl.$active_theme."_instagram.png";
|
1080 |
+
}
|
1081 |
+
break;
|
1082 |
+
|
1083 |
+
case "houzz" :
|
1084 |
+
$socialObj = new sfsi_plus_SocialHelper(); /* global object to access 3rd party icon's actions */
|
1085 |
+
$url = ($sfsi_plus_section2_options['sfsi_plus_houzz_pageUrl'])? $sfsi_plus_section2_options['sfsi_plus_houzz_pageUrl'] : 'javascript:void(0);';
|
1086 |
+
$toolClass = "rss_tool_bdr";
|
1087 |
+
$hoverdiv = '';
|
1088 |
+
$arsfsiplus_row_class = "bot_rss_arow";
|
1089 |
+
|
1090 |
+
/* fecth no of counts if active in admin section */
|
1091 |
+
if(
|
1092 |
+
isset($sfsi_plus_section4_options['sfsi_plus_houzz_countsDisplay']) &&
|
1093 |
+
$sfsi_plus_section4_options['sfsi_plus_houzz_countsDisplay'] == "yes" &&
|
1094 |
+
$sfsi_plus_section4_options['sfsi_plus_display_counts'] == "yes"
|
1095 |
+
)
|
1096 |
+
{
|
1097 |
+
$counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_houzz_manualCounts']);
|
1098 |
+
}
|
1099 |
+
|
1100 |
+
if(
|
1101 |
+
isset($sfsi_plus_section5_options['sfsi_plus_houzz_MouseOverText']) &&
|
1102 |
+
!empty($sfsi_plus_section5_options['sfsi_plus_houzz_MouseOverText'])
|
1103 |
+
)
|
1104 |
+
{
|
1105 |
+
$alt_text = $sfsi_plus_section5_options['sfsi_plus_houzz_MouseOverText'];
|
1106 |
+
}
|
1107 |
+
else
|
1108 |
+
{
|
1109 |
+
$alt_text = 'Houzz';
|
1110 |
+
}
|
1111 |
+
|
1112 |
+
//Custom Skin Support {Monad}
|
1113 |
+
if($active_theme == 'custom_support')
|
1114 |
+
{
|
1115 |
+
if(get_option("plus_houzz_skin"))
|
1116 |
+
{
|
1117 |
+
$icon = get_option("plus_houzz_skin");
|
1118 |
+
}
|
1119 |
+
else
|
1120 |
+
{
|
1121 |
+
$active_theme = 'default';
|
1122 |
+
$icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
|
1123 |
+
$icon = $icons_baseUrl.$active_theme."_houzz.png";
|
1124 |
+
}
|
1125 |
+
}
|
1126 |
+
else
|
1127 |
+
{
|
1128 |
+
$icon = $icons_baseUrl.$active_theme."_houzz.png";
|
1129 |
+
}
|
1130 |
+
break;
|
1131 |
+
|
1132 |
+
case "linkedin" :
|
1133 |
+
$width = 66;
|
1134 |
+
$socialObj = new sfsi_plus_SocialHelper();
|
1135 |
+
$toolClass = "sfsi_plus_linkedin_tool_bdr";
|
1136 |
+
$arsfsiplus_row_class = "bot_linkedin_arow";
|
1137 |
+
$linkedIn_compayId = $sfsi_plus_section2_options['sfsi_plus_linkedin_followCompany'];
|
1138 |
+
$linkedIn_compay = $sfsi_plus_section2_options['sfsi_plus_linkedin_followCompany'];
|
1139 |
+
$linkedIn_ProductId = $sfsi_plus_section2_options['sfsi_plus_linkedin_recommendProductId'];
|
1140 |
+
$visit_icon = $visit_iconsUrl."linkedIn.png";
|
1141 |
+
|
1142 |
+
/*check for icons to display */
|
1143 |
+
$url=($sfsi_plus_section2_options['sfsi_plus_linkedin_pageURL'])? $sfsi_plus_section2_options['sfsi_plus_linkedin_pageURL'] : 'javascript:void(0);';
|
1144 |
+
|
1145 |
+
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" )
|
1146 |
+
{
|
1147 |
+
$hoverSHow=1;
|
1148 |
+
$hoverdiv='';
|
1149 |
+
if($sfsi_plus_section2_options['sfsi_plus_linkedin_page']=="yes")
|
1150 |
+
{
|
1151 |
+
$hoverdiv.="<div class='icon4'><a href='".$url."' ".sfsi_plus_checkNewWindow($url)."><img alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' /></a></div>";
|
1152 |
+
}
|
1153 |
+
if($sfsi_plus_section2_options['sfsi_plus_linkedin_follow']=="yes")
|
1154 |
+
{
|
1155 |
+
$hoverdiv.="<div class='icon1'>".$socialObj->sfsi_LinkedInFollow($linkedIn_compayId)."</div>";
|
1156 |
+
}
|
1157 |
+
if($sfsi_plus_section2_options['sfsi_plus_linkedin_SharePage']=="yes")
|
1158 |
+
{
|
1159 |
+
$hoverdiv.="<div class='icon2'>".$socialObj->sfsi_LinkedInShare($current_url)."</div>";
|
1160 |
+
}
|
1161 |
+
if($sfsi_plus_section2_options['sfsi_plus_linkedin_recommendBusines']=="yes")
|
1162 |
+
{
|
1163 |
+
$hoverdiv.="<div class='icon3'>".$socialObj->sfsi_LinkedInRecommend($linkedIn_compay,$linkedIn_ProductId)."</div>";
|
1164 |
+
$width=99;
|
1165 |
+
}
|
1166 |
+
}
|
1167 |
+
|
1168 |
+
|
1169 |
+
if($sfsi_plus_section4_options['sfsi_plus_linkedIn_countsDisplay']=="yes" && $sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
|
1170 |
+
{
|
1171 |
+
if($sfsi_plus_section4_options['sfsi_plus_linkedIn_countsFrom']=="manual")
|
1172 |
+
{
|
1173 |
+
$counts = $socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_linkedIn_manualCounts']);
|
1174 |
+
}
|
1175 |
+
else if($sfsi_plus_section4_options['sfsi_plus_linkedIn_countsFrom']=="follower")
|
1176 |
+
{
|
1177 |
+
$linkedIn_compay=$sfsi_plus_section4_options['sfsi_plus_ln_company'];
|
1178 |
+
$ln_settings = array('sfsi_plus_ln_api_key'=>$sfsi_plus_section4_options['sfsi_plus_ln_api_key'],
|
1179 |
+
'sfsi_plus_ln_secret_key'=>$sfsi_plus_section4_options['sfsi_plus_ln_secret_key'],
|
1180 |
+
'sfsi_plus_ln_oAuth_user_token'=>$sfsi_plus_section4_options['sfsi_plus_ln_oAuth_user_token']);
|
1181 |
+
|
1182 |
+
$followers=$socialObj->sfsi_getlinkedin_follower($linkedIn_compay,$ln_settings);
|
1183 |
+
(int) $followers;
|
1184 |
+
$counts=$socialObj->format_num($followers);
|
1185 |
+
if(empty($counts))
|
1186 |
+
{
|
1187 |
+
$counts = (string) "0";
|
1188 |
+
}
|
1189 |
+
}
|
1190 |
+
}
|
1191 |
+
|
1192 |
+
$totwith = $width+28+$icons_space;
|
1193 |
+
$twt_margin = $totwith /2;
|
1194 |
+
|
1195 |
+
//Giving alternative text to image
|
1196 |
+
if(!empty($sfsi_plus_section5_options['sfsi_plus_linkedIn_MouseOverText']))
|
1197 |
+
{
|
1198 |
+
$alt_text = $sfsi_plus_section5_options['sfsi_plus_linkedIn_MouseOverText'];
|
1199 |
+
}
|
1200 |
+
else
|
1201 |
+
{
|
1202 |
+
$alt_text = "LINKEDIN";
|
1203 |
+
}
|
1204 |
+
|
1205 |
+
//Custom Skin Support {Monad}
|
1206 |
+
if($active_theme == 'custom_support')
|
1207 |
+
{
|
1208 |
+
if(get_option("plus_linkedin_skin"))
|
1209 |
+
{
|
1210 |
+
$icon = get_option("plus_linkedin_skin");
|
1211 |
+
}
|
1212 |
+
else
|
1213 |
+
{
|
1214 |
+
$active_theme = 'default';
|
1215 |
+
$icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
|
1216 |
+
$icon=$icons_baseUrl.$active_theme."_linkedin.png";
|
1217 |
+
}
|
1218 |
+
}
|
1219 |
+
else
|
1220 |
+
{
|
1221 |
+
$icon=$icons_baseUrl.$active_theme."_linkedin.png";
|
1222 |
+
}
|
1223 |
+
break;
|
1224 |
+
|
1225 |
+
// MZ CODE START
|
1226 |
+
|
1227 |
+
|
1228 |
+
|
1229 |
+
case "ok":
|
1230 |
+
|
1231 |
+
$toolClass = "sfsi_plus_ok_tool_bdr";
|
1232 |
+
$hoverdiv = '';
|
1233 |
+
$arsfsiplus_row_class = "bot_rss_arow";
|
1234 |
+
|
1235 |
+
/* fecth no of counts if active in admin section */
|
1236 |
+
if(
|
1237 |
+
isset($sfsi_plus_section4_options['sfsi_plus_ok_countsDisplay']) &&
|
1238 |
+
"yes" == $sfsi_plus_section4_options['sfsi_plus_ok_countsDisplay'] &&
|
1239 |
+
"yes" == $sfsi_plus_section4_options['sfsi_plus_display_counts']
|
1240 |
+
)
|
1241 |
+
{
|
1242 |
+
$counts = $sfsi_plus_section4_options['sfsi_plus_ok_manualCounts'];
|
1243 |
+
}
|
1244 |
+
|
1245 |
+
$alt_text = sfsi_plus_get_icon_mouseover_text("ok");
|
1246 |
+
// $icon=$icons_baseUrl.$active_theme."_ok.png";
|
1247 |
+
$icon = sfsi_plus_get_icon_image("ok");
|
1248 |
+
$like_icon = $share_iconsUrl.$icon_name.".svg";
|
1249 |
+
$visit_icon = $visit_iconsUrl.$icon_name.".svg";
|
1250 |
+
$sub_icon = $visit_iconsUrl."ok_subscribe.svg";
|
1251 |
+
$url = "#";
|
1252 |
+
|
1253 |
+
$hoverSHow = 0;
|
1254 |
+
if(isset($sfsi_plus_section2_options['sfsi_plus_okVisit_url']) && !empty($sfsi_plus_section2_options['sfsi_plus_okVisit_url'])){
|
1255 |
+
|
1256 |
+
$url = $sfsi_plus_section2_options['sfsi_plus_okVisit_url'];
|
1257 |
+
}else{
|
1258 |
+
$url="#";
|
1259 |
+
$sfsi_onclick="event.preventDefault();";
|
1260 |
+
}
|
1261 |
+
if($active_theme == "glossy"){
|
1262 |
+
$glossy_theme_adjustment=4;
|
1263 |
+
}
|
1264 |
+
break;
|
1265 |
+
|
1266 |
+
case "telegram":
|
1267 |
+
|
1268 |
+
$toolClass = "sfsi_plus_telegram_tool_bdr";
|
1269 |
+
$hoverdiv = '';
|
1270 |
+
$arsfsiplus_row_class = "bot_rss_arow";
|
1271 |
+
|
1272 |
+
/* fecth no of counts if active in admin section */
|
1273 |
+
if(
|
1274 |
+
isset($sfsi_plus_section4_options['sfsi_plus_telegram_countsDisplay']) &&
|
1275 |
+
$sfsi_plus_section4_options['sfsi_plus_telegram_countsDisplay'] == "yes" &&
|
1276 |
+
$sfsi_plus_section4_options['sfsi_plus_display_counts'] == "yes"
|
1277 |
+
)
|
1278 |
+
{
|
1279 |
+
$counts = $sfsi_plus_section4_options['sfsi_plus_telegram_manualCounts'];
|
1280 |
+
}
|
1281 |
+
|
1282 |
+
$alt_text = sfsi_plus_get_icon_mouseover_text("telegram");
|
1283 |
+
|
1284 |
+
$icon = sfsi_plus_get_icon_image("telegram");
|
1285 |
+
|
1286 |
+
$messageus_icon = $visit_iconsUrl.$icon_name."_message.svg";
|
1287 |
+
$share_icon = $share_iconsUrl.$icon_name.".svg";
|
1288 |
+
$visit_icon = $visit_iconsUrl."telegram.png";
|
1289 |
+
|
1290 |
+
$url = "#";
|
1291 |
+
if(
|
1292 |
+
isset($sfsi_plus_section2_options['sfsi_plus_telegram_message']) && !empty($sfsi_plus_section2_options['sfsi_plus_telegram_message'])
|
1293 |
+
&&
|
1294 |
+
isset($sfsi_plus_section2_options['sfsi_plus_telegram_username']) && !empty($sfsi_plus_section2_options['sfsi_plus_telegram_username'])
|
1295 |
+
|
1296 |
+
){
|
1297 |
+
$tg_username = $sfsi_plus_section2_options['sfsi_plus_telegram_username'];
|
1298 |
+
$tg_msg = stripslashes($sfsi_plus_section2_options['sfsi_plus_telegram_message']);
|
1299 |
+
$tg_msg = str_replace('"', '', str_replace("'", '', $tg_msg));
|
1300 |
+
$tg_msg = html_entity_decode(strip_tags($tg_msg), ENT_QUOTES,'UTF-8');
|
1301 |
+
$tg_msg = str_replace("%26%238230%3B", "...", $tg_msg);
|
1302 |
+
$tg_msg = rawurlencode($tg_msg);
|
1303 |
+
if(isMobileDevice()){
|
1304 |
+
$url = "tg://resolve?domain=".$tg_username;
|
1305 |
+
}
|
1306 |
+
else {
|
1307 |
+
$url = "https://web.telegram.im/?p=@".$tg_username;
|
1308 |
+
}
|
1309 |
+
|
1310 |
+
//$url = "https://t.me/".$tg_username;
|
1311 |
+
}else{
|
1312 |
+
$url="#";
|
1313 |
+
$sfsi_onclick="event.preventDefault();";
|
1314 |
+
}
|
1315 |
+
|
1316 |
+
if($active_theme == "glossy"){
|
1317 |
+
$glossy_theme_adjustment=4;
|
1318 |
+
}
|
1319 |
+
break;
|
1320 |
+
|
1321 |
+
case "vk":
|
1322 |
+
|
1323 |
+
$toolClass = "sfsi_plus_vk_tool_bdr";
|
1324 |
+
$hoverdiv = '';
|
1325 |
+
$arsfsiplus_row_class = "bot_rss_arow";
|
1326 |
+
|
1327 |
+
/* fecth no of counts if active in admin section */
|
1328 |
+
if(
|
1329 |
+
isset($sfsi_plus_section4_options['sfsi_plus_vk_countsDisplay']) &&
|
1330 |
+
$sfsi_plus_section4_options['sfsi_plus_vk_countsDisplay'] == "yes" &&
|
1331 |
+
$sfsi_plus_section4_options['sfsi_plus_display_counts'] == "yes"
|
1332 |
+
)
|
1333 |
+
{
|
1334 |
+
$counts = $sfsi_plus_section4_options['sfsi_plus_vk_manualCounts'];
|
1335 |
+
}
|
1336 |
+
|
1337 |
+
$alt_text = sfsi_plus_get_icon_mouseover_text("vk");
|
1338 |
+
$icon = sfsi_plus_get_icon_image("vk");
|
1339 |
+
// $icon=$icons_baseUrl.$active_theme."_vk.png";
|
1340 |
+
$share_icon = $share_iconsUrl.$icon_name.".svg";
|
1341 |
+
$visit_icon = $visit_iconsUrl.$icon_name.".svg";
|
1342 |
+
$url = "#";
|
1343 |
+
|
1344 |
+
$hoverSHow = 0;
|
1345 |
+
if(isset($sfsi_plus_section2_options['sfsi_plus_vkVisit_url']) && !empty($sfsi_plus_section2_options['sfsi_plus_vkVisit_url'])){
|
1346 |
+
|
1347 |
+
$url = $sfsi_plus_section2_options['sfsi_plus_vkVisit_url'];
|
1348 |
+
}else{
|
1349 |
+
$url="#";
|
1350 |
+
$sfsi_onclick="event.preventDefault();";
|
1351 |
+
}
|
1352 |
+
|
1353 |
+
if($active_theme == "glossy"){
|
1354 |
+
$glossy_theme_adjustment=4;
|
1355 |
+
}
|
1356 |
+
break;
|
1357 |
+
|
1358 |
+
case "weibo":
|
1359 |
+
|
1360 |
+
$toolClass = "sfsi_plus_weibo_tool_bdr";
|
1361 |
+
$hoverdiv = '';
|
1362 |
+
$arsfsiplus_row_class = "bot_rss_arow";
|
1363 |
+
|
1364 |
+
/* fecth no of counts if active in admin section */
|
1365 |
+
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']){
|
1366 |
+
|
1367 |
+
$counts = $sfsi_plus_section4_options['sfsi_plus_weibo_manualCounts'];
|
1368 |
+
}
|
1369 |
+
|
1370 |
+
$alt_text = sfsi_plus_get_icon_mouseover_text($icon_name);
|
1371 |
+
$icon = sfsi_plus_get_icon_image($icon_name);
|
1372 |
+
// $icon=$icons_baseUrl.$active_theme."_weibo.png";
|
1373 |
+
$url = "#";
|
1374 |
+
|
1375 |
+
$hoverSHow = 0;
|
1376 |
+
if(isset($sfsi_plus_section2_options['sfsi_plus_weiboVisit_url']) && !empty($sfsi_plus_section2_options['sfsi_plus_weiboVisit_url'])){
|
1377 |
+
|
1378 |
+
$url = $sfsi_plus_section2_options['sfsi_plus_weiboVisit_url'];
|
1379 |
+
}else{
|
1380 |
+
$url="#";
|
1381 |
+
$sfsi_onclick="event.preventDefault();";
|
1382 |
+
}
|
1383 |
+
|
1384 |
+
if($active_theme == "glossy"){
|
1385 |
+
$glossy_theme_adjustment=4;
|
1386 |
+
}
|
1387 |
+
break;
|
1388 |
+
|
1389 |
+
|
1390 |
+
case "wechat":
|
1391 |
+
|
1392 |
+
$toolClass = "sfsi_plus_wechat_tool_bdr";
|
1393 |
+
$hoverdiv = '';
|
1394 |
+
$arsfsiplus_row_class = "bot_rss_arow";
|
1395 |
+
|
1396 |
+
/* fecth no of counts if active in admin section */
|
1397 |
+
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']){
|
1398 |
+
|
1399 |
+
$counts = $sfsi_plus_section4_options['sfsi_plus_wechat_manualCounts'];
|
1400 |
+
}
|
1401 |
+
|
1402 |
+
$alt_text = sfsi_plus_get_icon_mouseover_text($icon_name);
|
1403 |
+
$icon = sfsi_plus_get_icon_image($icon_name);
|
1404 |
+
// $icon=$icons_baseUrl.$active_theme."_wechat.png";
|
1405 |
+
|
1406 |
+
$share_icon = $share_iconsUrl.$icon_name.".svg";
|
1407 |
+
$visit_icon = $visit_iconsUrl.$icon_name.".svg";
|
1408 |
+
$url = "#";
|
1409 |
+
// if(!wp_is_mobile()){
|
1410 |
+
$sfsi_onclick="event.preventDefault();sfsi_plus_wechat_share()" ;
|
1411 |
+
// }else{
|
1412 |
+
// $url = "weixin://dl/chat";
|
1413 |
+
// }
|
1414 |
+
|
1415 |
+
if($active_theme == "glossy"){
|
1416 |
+
$glossy_theme_adjustment=4;
|
1417 |
+
}
|
1418 |
+
break;
|
1419 |
+
|
1420 |
+
|
1421 |
+
|
1422 |
+
///MZ CODE END
|
1423 |
+
|
1424 |
+
default:
|
1425 |
+
$border_radius = "";
|
1426 |
+
//$border_radius =" border-radius:48%;";
|
1427 |
+
$cmcls = "cmcls";
|
1428 |
+
$padding_top = "";
|
1429 |
+
if($active_theme=="badge")
|
1430 |
+
{
|
1431 |
+
//$border_radius="border-radius: 18%;";
|
1432 |
+
}
|
1433 |
+
if($active_theme=="cute")
|
1434 |
+
{
|
1435 |
+
//$border_radius="border-radius: 38%;";
|
1436 |
+
}
|
1437 |
+
|
1438 |
+
$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();
|
1439 |
+
$url = (isset($custom_icon_urls[$icon_n]) && !empty($custom_icon_urls[$icon_n])) ? $custom_icon_urls[$icon_n]:'javascript:void(0);';
|
1440 |
+
$toolClass = "custom_lkn";
|
1441 |
+
$arsfsiplus_row_class = "";
|
1442 |
+
$custom_icons_hoverTxt = unserialize($sfsi_plus_section5_options['sfsi_plus_custom_MouseOverTexts']);
|
1443 |
+
$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();;
|
1444 |
+
// var_dump($icons,$custom_icon_urls,$icon_n,$sfsi_plus_section2_options);die();
|
1445 |
+
$icon = $icons[$icon_n];
|
1446 |
+
|
1447 |
+
//Giving alternative text to image
|
1448 |
+
if(!empty($custom_icons_hoverTxt[$icon_n]))
|
1449 |
+
{
|
1450 |
+
$alt_text = $custom_icons_hoverTxt[$icon_n];
|
1451 |
+
}
|
1452 |
+
else
|
1453 |
+
{
|
1454 |
+
$alt_text = "SOCIALICON";
|
1455 |
+
}
|
1456 |
+
break;
|
1457 |
+
}
|
1458 |
+
|
1459 |
+
$icons="";
|
1460 |
+
|
1461 |
+
/* apply size of icon */
|
1462 |
+
if($is_front==0)
|
1463 |
+
{
|
1464 |
+
$icons_size = $sfsi_plus_section5_options['sfsi_plus_icons_size'];
|
1465 |
+
}
|
1466 |
+
else
|
1467 |
+
{
|
1468 |
+
$icons_size = 51;
|
1469 |
+
}
|
1470 |
+
|
1471 |
+
/* spacing and no of icons per row */
|
1472 |
+
$icons_space = '';
|
1473 |
+
$icons_space = $sfsi_plus_section5_options['sfsi_plus_icons_spacing'];
|
1474 |
+
$icon_width = (int)$icons_size;
|
1475 |
+
/* check for mouse hover effect */
|
1476 |
+
$icon_opacity="1";
|
1477 |
+
|
1478 |
+
if($sfsi_plus_section3_options['sfsi_plus_mouseOver']=='yes')
|
1479 |
+
{
|
1480 |
+
$mouse_hover_effect=$sfsi_plus_section3_options["sfsi_plus_mouseOver_effect"];
|
1481 |
+
if($mouse_hover_effect=="fade_in" || $mouse_hover_effect=="combo")
|
1482 |
+
{
|
1483 |
+
$icon_opacity="0.6";
|
1484 |
+
}
|
1485 |
+
}
|
1486 |
+
|
1487 |
+
$toolT_cls='';
|
1488 |
+
if((int) $icon_width <=49 && (int) $icon_width >=30)
|
1489 |
+
{
|
1490 |
+
$bt_class="";
|
1491 |
+
$toolT_cls="sfsi_plus_Tlleft";
|
1492 |
+
}
|
1493 |
+
else if((int) $icon_width <=20)
|
1494 |
+
{
|
1495 |
+
$bt_class="sfsiSmBtn";
|
1496 |
+
$toolT_cls="sfsi_plus_Tlleft";
|
1497 |
+
}
|
1498 |
+
else
|
1499 |
+
{
|
1500 |
+
$bt_class="";
|
1501 |
+
$toolT_cls="sfsi_plus_Tlleft";
|
1502 |
+
}
|
1503 |
+
|
1504 |
+
if($toolClass=="rss_tool_bdr" || $toolClass=='email_tool_bdr' || $toolClass=="custom_lkn" || $toolClass=="instagram_tool_bdr" )
|
1505 |
+
{
|
1506 |
+
$new_window = sfsi_plus_checkNewWindow();
|
1507 |
+
}
|
1508 |
+
else if($hoverSHow)
|
1509 |
+
{
|
1510 |
+
if(!function_exists('wp_is_mobile')||!wp_is_mobile())
|
1511 |
+
{
|
1512 |
+
$new_window = sfsi_plus_checkNewWindow();
|
1513 |
+
}
|
1514 |
+
else
|
1515 |
+
{
|
1516 |
+
$new_window = '';
|
1517 |
+
$url = "javascript:void(0);";
|
1518 |
+
}
|
1519 |
+
}
|
1520 |
+
else
|
1521 |
+
{
|
1522 |
+
$new_window = sfsi_plus_checkNewWindow();
|
1523 |
+
}
|
1524 |
+
|
1525 |
+
if("javascript:void(0);" == $url){
|
1526 |
+
$new_window = "";
|
1527 |
+
}
|
1528 |
+
|
1529 |
+
$margin_bot=(5+$glossy_theme_adjustment)."px;";
|
1530 |
+
if($sfsi_plus_section4_options['sfsi_plus_display_counts']=="yes")
|
1531 |
+
{
|
1532 |
+
$margin_bot = (30+($glossy_theme_adjustment>0?$glossy_theme_adjustment-1:$glossy_theme_adjustment))."px;";
|
1533 |
+
}
|
1534 |
+
|
1535 |
+
if(isset($icon) && !empty($icon) && filter_var($icon, FILTER_VALIDATE_URL))
|
1536 |
+
{
|
1537 |
+
$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."'>";
|
1538 |
+
|
1539 |
+
$icons.= "<div class='sfsiplus_inerCnt'>";
|
1540 |
+
|
1541 |
+
$icons.= "<a class='".$class." sficn' data-effect='".$mouse_hover_effect."' $new_window href='".$url."' style='opacity:".$icon_opacity."' ".(isset($sfsi_onclick)?'onclick="'.$sfsi_onclick.'"':'').">";
|
1542 |
+
|
1543 |
+
$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."' />";
|
1544 |
+
|
1545 |
+
$icons.= '</a>';
|
1546 |
+
|
1547 |
+
if(isset($counts) && $counts!='' && $onpost == "no")
|
1548 |
+
{
|
1549 |
+
$icons.= '<span class="bot_no '.$bt_class.'">'.$counts.'</span>';
|
1550 |
+
}
|
1551 |
+
|
1552 |
+
if($hoverSHow && !empty($hoverdiv))
|
1553 |
+
{
|
1554 |
+
//$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.'">';
|
1555 |
+
|
1556 |
+
$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;">';
|
1557 |
+
$icons.= '<span class="bot_arow '.$arsfsiplus_row_class.'"></span>';
|
1558 |
+
$icons.= '<div class="sfsi_plus_inside">'.$hoverdiv."</div>";
|
1559 |
+
$icons.= "</div>";
|
1560 |
+
}
|
1561 |
+
$icons.="</div>";
|
1562 |
+
$icons.="</div>";
|
1563 |
+
}
|
1564 |
+
return $icons;
|
1565 |
+
}
|
1566 |
+
|
1567 |
+
/* make url for new window */
|
1568 |
+
function sfsi_plus_checkNewWindow()
|
1569 |
+
{
|
1570 |
+
global $wpdb;
|
1571 |
+
$sfsi_plus_section5_options= unserialize(get_option('sfsi_plus_section5_options',false));
|
1572 |
+
if($sfsi_plus_section5_options['sfsi_plus_icons_ClickPageOpen']=="yes")
|
1573 |
+
{
|
1574 |
+
return $new_window="target='_blank'";
|
1575 |
+
}
|
1576 |
+
else
|
1577 |
+
{
|
1578 |
+
return '';
|
1579 |
+
}
|
1580 |
+
}
|
1581 |
+
|
1582 |
+
function sfsi_plus_check_posts_visiblity($isFloter=0 , $fromPost = NULL)
|
1583 |
+
{
|
1584 |
+
global $wpdb;
|
1585 |
+
/* Access the saved settings in database */
|
1586 |
+
$sfsi_plus_section1_options= unserialize(get_option('sfsi_plus_section1_options',false));
|
1587 |
+
$sfsi_section3= unserialize(get_option('sfsi_plus_section3_options',false));
|
1588 |
+
$sfsi_section5= unserialize(get_option('sfsi_plus_section5_options',false));
|
1589 |
+
|
1590 |
+
//options that are added on the third question
|
1591 |
+
$sfsi_section8= unserialize(get_option('sfsi_plus_section8_options',false));
|
1592 |
+
|
1593 |
+
/* calculate the width and icons display alignments */
|
1594 |
+
$icons_space=$sfsi_section8['sfsi_plus_post_icons_spacing'];
|
1595 |
+
$icons_size=$sfsi_section8['sfsi_plus_post_icons_size'];
|
1596 |
+
$extra=0;
|
1597 |
+
|
1598 |
+
|
1599 |
+
/* magnage the icons in saved order in admin */
|
1600 |
+
$custom_icons_order = unserialize($sfsi_section5['sfsi_plus_CustomIcons_order']);
|
1601 |
+
$icons= unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
|
1602 |
+
$icons_order = array(
|
1603 |
+
'0' => '',
|
1604 |
+
$sfsi_section5['sfsi_plus_rssIcon_order']=>'rss',
|
1605 |
+
$sfsi_section5['sfsi_plus_emailIcon_order']=>'email',
|
1606 |
+
$sfsi_section5['sfsi_plus_facebookIcon_order']=>'facebook',
|
1607 |
+
$sfsi_section5['sfsi_plus_twitterIcon_order']=>'twitter',
|
1608 |
+
$sfsi_section5['sfsi_plus_youtubeIcon_order']=>'youtube',
|
1609 |
+
$sfsi_section5['sfsi_plus_pinterestIcon_order']=>'pinterest',
|
1610 |
+
$sfsi_section5['sfsi_plus_linkedinIcon_order']=>'linkedin',
|
1611 |
+
$sfsi_section5['sfsi_plus_instagramIcon_order']=>'instagram',
|
1612 |
+
$sfsi_section5['sfsi_plus_okIcon_order']=>'ok',
|
1613 |
+
$sfsi_section5['sfsi_plus_telegramIcon_order']=>'telegram',
|
1614 |
+
$sfsi_section5['sfsi_plus_vkIcon_order']=>'vk',
|
1615 |
+
$sfsi_section5['sfsi_plus_weiboIcon_order']=>'weibo',
|
1616 |
+
$sfsi_section5['sfsi_plus_wechatIcon_order']=>'wechat',
|
1617 |
+
(isset($sfsi_section5['sfsi_plus_houzzIcon_order']))
|
1618 |
+
? $sfsi_section5['sfsi_plus_houzzIcon_order']
|
1619 |
+
: 12 => 'houzz'
|
1620 |
+
);
|
1621 |
+
if(is_array($custom_icons_order) )
|
1622 |
+
{
|
1623 |
+
foreach($custom_icons_order as $data)
|
1624 |
+
{
|
1625 |
+
$icons_order[$data['order']] = $data;
|
1626 |
+
}
|
1627 |
+
}
|
1628 |
+
ksort($icons_order);
|
1629 |
+
|
1630 |
+
/* built the main widget div */
|
1631 |
+
$icons_main='<div class="sfsiplus_norm_row sfsi_plus_wDivothr">';
|
1632 |
+
$icons="";
|
1633 |
+
|
1634 |
+
// $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>';
|
1635 |
+
// add_action('wp_head', function(){
|
1636 |
+
// 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>';
|
1637 |
+
// }, 100);
|
1638 |
+
add_action('wp_footer', function()use($icons_space,$icons_size){
|
1639 |
+
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;}",
|
1640 |
+
head = document.head || document.getElementsByTagName("head")[0],
|
1641 |
+
style = document.createElement("style");
|
1642 |
+
|
1643 |
+
head.appendChild(style);
|
1644 |
+
if (style.styleSheet){
|
1645 |
+
// This is required for IE8 and below.
|
1646 |
+
style.styleSheet.cssText = css;
|
1647 |
+
} else {
|
1648 |
+
style.appendChild(document.createTextNode(css));
|
1649 |
+
}</script>';
|
1650 |
+
}, 100);
|
1651 |
+
/* loop through icons and bulit the icons with all settings applied in admin */
|
1652 |
+
foreach($icons_order as $index => $icn)
|
1653 |
+
{
|
1654 |
+
if(is_array($icn))
|
1655 |
+
{
|
1656 |
+
$icon_arry = $icn;
|
1657 |
+
$icn = "custom" ;
|
1658 |
+
}
|
1659 |
+
switch ($icn) :
|
1660 |
+
case 'rss' :
|
1661 |
+
if($sfsi_plus_section1_options['sfsi_plus_rss_display'] == 'yes')
|
1662 |
+
{
|
1663 |
+
$icons.= sfsi_plus_prepairIcons('rss');
|
1664 |
+
}
|
1665 |
+
break;
|
1666 |
+
case 'email' :
|
1667 |
+
if($sfsi_plus_section1_options['sfsi_plus_email_display']=='yes')
|
1668 |
+
{
|
1669 |
+
$icons.= sfsi_plus_prepairIcons('email');
|
1670 |
+
}
|
1671 |
+
break;
|
1672 |
+
case 'facebook' :
|
1673 |
+
if($sfsi_plus_section1_options['sfsi_plus_facebook_display'] == 'yes')
|
1674 |
+
{
|
1675 |
+
$icons.= sfsi_plus_prepairIcons('facebook', 0, "no", $fromPost);
|
1676 |
+
}
|
1677 |
+
break;
|
1678 |
+
|
1679 |
+
|
1680 |
+
case 'twitter' :
|
1681 |
+
if($sfsi_plus_section1_options['sfsi_plus_twitter_display']=='yes')
|
1682 |
+
{
|
1683 |
+
$icons.= sfsi_plus_prepairIcons('twitter', 0, "no", $fromPost);
|
1684 |
+
}
|
1685 |
+
break;
|
1686 |
+
case 'youtube' :
|
1687 |
+
if($sfsi_plus_section1_options['sfsi_plus_youtube_display']=='yes')
|
1688 |
+
{
|
1689 |
+
$icons.= sfsi_plus_prepairIcons('youtube');
|
1690 |
+
}
|
1691 |
+
break;
|
1692 |
+
|
1693 |
+
case 'pinterest' :
|
1694 |
+
if($sfsi_plus_section1_options['sfsi_plus_pinterest_display']=='yes')
|
1695 |
+
{
|
1696 |
+
$icons.= sfsi_plus_prepairIcons('pinterest');
|
1697 |
+
}
|
1698 |
+
break;
|
1699 |
+
case 'linkedin' :
|
1700 |
+
if($sfsi_plus_section1_options['sfsi_plus_linkedin_display']=='yes')
|
1701 |
+
{
|
1702 |
+
$icons.= sfsi_plus_prepairIcons('linkedin', 0, "no", $fromPost);
|
1703 |
+
}
|
1704 |
+
break;
|
1705 |
+
case 'instagram' :
|
1706 |
+
if($sfsi_plus_section1_options['sfsi_plus_instagram_display']=='yes')
|
1707 |
+
{
|
1708 |
+
$icons.= sfsi_plus_prepairIcons('instagram');
|
1709 |
+
}
|
1710 |
+
break;
|
1711 |
+
case 'houzz' :
|
1712 |
+
if(
|
1713 |
+
isset($sfsi_plus_section1_options['sfsi_plus_houzz_display']) &&
|
1714 |
+
$sfsi_plus_section1_options['sfsi_plus_houzz_display']=='yes'
|
1715 |
+
)
|
1716 |
+
{
|
1717 |
+
$icons.= sfsi_plus_prepairIcons('houzz');
|
1718 |
+
}
|
1719 |
+
break;
|
1720 |
+
case 'ok' :
|
1721 |
+
if(
|
1722 |
+
isset($sfsi_plus_section1_options['sfsi_plus_okdisplay']) &&
|
1723 |
+
$sfsi_plus_section1_options['sfsi_plus_ok_display']=='yes'
|
1724 |
+
)
|
1725 |
+
{
|
1726 |
+
$icons.= sfsi_plus_prepairIcons('ok');
|
1727 |
+
|
1728 |
+
}
|
1729 |
+
break;
|
1730 |
+
case 'telegram' :
|
1731 |
+
if(
|
1732 |
+
isset($sfsi_plus_section1_options['sfsi_plus_telegram_display']) &&
|
1733 |
+
$sfsi_plus_section1_options['sfsi_plus_telegram_display']=='yes'
|
1734 |
+
)
|
1735 |
+
{
|
1736 |
+
$icons.= sfsi_plus_prepairIcons('telegram');
|
1737 |
+
|
1738 |
+
}
|
1739 |
+
break;
|
1740 |
+
case 'vk' :
|
1741 |
+
if(
|
1742 |
+
isset($sfsi_plus_section1_options['sfsi_plus_vk_display']) &&
|
1743 |
+
$sfsi_plus_section1_options['sfsi_plus_vk_display']=='yes'
|
1744 |
+
)
|
1745 |
+
{
|
1746 |
+
$icons.= sfsi_plus_prepairIcons('vk');
|
1747 |
+
|
1748 |
+
}
|
1749 |
+
break;
|
1750 |
+
case 'weibo' :
|
1751 |
+
if(
|
1752 |
+
isset($sfsi_plus_section1_options['sfsi_plus_weibo_display']) &&
|
1753 |
+
$sfsi_plus_section1_options['sfsi_plus_weibo_display']=='yes'
|
1754 |
+
)
|
1755 |
+
{
|
1756 |
+
$icons.= sfsi_plus_prepairIcons('weibo');
|
1757 |
+
|
1758 |
+
}
|
1759 |
+
break;
|
1760 |
+
case 'wechat' :
|
1761 |
+
if(
|
1762 |
+
isset($sfsi_plus_section1_options['sfsi_plus_wechat_display']) &&
|
1763 |
+
$sfsi_plus_section1_options['sfsi_plus_wechat_display']=='yes'
|
1764 |
+
)
|
1765 |
+
{
|
1766 |
+
$icons.= sfsi_plus_prepairIcons('wechat');
|
1767 |
+
|
1768 |
+
}
|
1769 |
+
break;
|
1770 |
+
case 'custom' :
|
1771 |
+
$icons.= sfsi_plus_prepairIcons($icon_arry['ele']);
|
1772 |
+
break;
|
1773 |
+
endswitch;
|
1774 |
+
}
|
1775 |
+
|
1776 |
+
$icons.='</div >';
|
1777 |
+
$icons_main.=$icons;
|
1778 |
+
|
1779 |
+
/* if floating of icons is active create a floater div */
|
1780 |
+
$icons_float='';
|
1781 |
+
$icons_data=$icons_main.$icons_float;
|
1782 |
+
return $icons_data;
|
1783 |
+
}
|
1784 |
+
|
1785 |
+
// MZ CODE
|
1786 |
+
|
1787 |
+
|
1788 |
+
function sfsi_plus_get_icon_mouseover_text($icon_name){
|
1789 |
+
|
1790 |
+
$alt_text = '';
|
1791 |
+
|
1792 |
+
if(isset($icon_name) && !empty($icon_name)){
|
1793 |
+
|
1794 |
+
$icon_name = strtolower($icon_name);
|
1795 |
+
|
1796 |
+
$key = 'sfsi_plus_'.$icon_name.'_MouseOverText';
|
1797 |
+
|
1798 |
+
$sfsi_plus_section5_options = unserialize(get_option('sfsi_plus_section5_options',false));
|
1799 |
+
|
1800 |
+
if(isset($sfsi_plus_section5_options[$key]) && !empty($sfsi_plus_section5_options[$key]) )
|
1801 |
+
{
|
1802 |
+
$alt_text = $sfsi_plus_section5_options[$key];
|
1803 |
+
}
|
1804 |
+
}
|
1805 |
+
|
1806 |
+
return $alt_text;
|
1807 |
+
}
|
1808 |
+
|
1809 |
+
|
1810 |
+
|
1811 |
+
//MZ CODE END
|
1812 |
+
|
1813 |
+
function isMobileDevice() {
|
1814 |
+
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"]);
|
1815 |
+
}
|
1816 |
?>
|
readme.txt
CHANGED
@@ -1,916 +1,921 @@
|
|
1 |
-
=== Social Share Icons & Social Share Buttons ===
|
2 |
-
Contributors: socialsharepro
|
3 |
-
Tags: Share, sharing, share buttons, share button, share social media, share icons, social buttons, sharing buttons, sharing icons, social media icons, social share, social sharing
|
4 |
-
Requires at least: 3.0
|
5 |
-
Tested up to: 5.2
|
6 |
-
Stable tag: 3.2.
|
7 |
-
License: GPLv2
|
8 |
-
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
-
|
10 |
-
Social sharing plugin adding social buttons.
|
11 |
-
|
12 |
-
== Description ==
|
13 |
-
|
14 |
-
This social plugin makes placing social share icons on your site REALLY easy.
|
15 |
-
|
16 |
-
This free plugin has a lot to offer. Even more can be found in the Premium Plugin, please watch this short video:
|
17 |
-
|
18 |
-
[vimeo https://vimeo.com/269140798]
|
19 |
-
|
20 |
-
See [all features of the Premium plugin](https://www.ultimatelysocial.com/usm-premium/).
|
21 |
-
|
22 |
-
Key features of the free plugin:
|
23 |
-
|
24 |
-
- Select from a **wide range of social share platforms** (see a list of them below)
|
25 |
-
- Pick from **16 stylish design styles** for your social share buttons
|
26 |
-
- Place the social share buttons **before or after posts, floating, via widget, via shortcode, or define the location on the page** (top right, bottom left etc.)
|
27 |
-
- Give **several actions to one social share button** (e.g. your Facebook icon can lead visitors to your Facebook page, and also show a Facebook button to share your page on social media)
|
28 |
-
- Give your social share buttons an **animation** (e.g. automatic shuffling, mouse-over effects) to make your visitors aware of them, increasing the chance that they follow, like or share your site
|
29 |
-
- Add **counts** to your share buttons
|
30 |
-
- Display a **pop-up** (on all or only on selected pages) asking people to follow or share you
|
31 |
-
- Allow visitors to **subscribe to your site** and receive new posts automatically by email
|
32 |
-
- Select from **many other customization features** for your social share buttons
|
33 |
-
|
34 |
-
For GDPR compliance, please have a look at our [Social Media GDPR Compliance page](https://ultimatelysocial.com/gdpr/).
|
35 |
-
|
36 |
-
In case of issues or questions please ask in the [Support forum] (https://wordpress.org/support/plugin/ultimate-social-media-plus).
|
37 |
-
|
38 |
-
|
39 |
-
The plugin takes you through eight easy-to-answer questions so that configuring your social share icons becomes a no-brainer:
|
40 |
-
|
41 |
-
= Question 1: Which social share buttons do you want to display? =
|
42 |
-
|
43 |
-
You can select the following:
|
44 |
-
|
45 |
-
* Facebook share icon
|
46 |
-
* Twitter share icon
|
47 |
-
* Email icon
|
48 |
-
* RSS icon
|
49 |
-
* Instagram share icon
|
50 |
-
* Google plus share icon
|
51 |
-
* Youtube share icon
|
52 |
-
* Pinterest share icon
|
53 |
-
* LinkedIn share icon
|
54 |
-
* Houzz share icon
|
55 |
-
* Share icon (allows your visitors to share your site on over 200+ other social media sites; powered by addthis/sharethis)
|
56 |
-
|
57 |
-
You can also upload custom social share buttons of your choice.
|
58 |
-
|
59 |
-
The [Premium Plugin](https://www.ultimatelysocial.com/usm-premium) offers many more social share icons and buttons. The premium share button set includes a...
|
60 |
-
|
61 |
-
* Snapchat share icon
|
62 |
-
* Yummly share icon
|
63 |
-
* Whatsapp share icon (and also "send me direct message" and other functions)
|
64 |
-
* Phone icon
|
65 |
-
* Yelp share icon
|
66 |
-
* Soundcloud share icon
|
67 |
-
* Skype icon
|
68 |
-
* Flickr share icon
|
69 |
-
* Blogger share icon
|
70 |
-
* Reddit share icon
|
71 |
-
* Vimeo share icon
|
72 |
-
* Tumblr share icon
|
73 |
-
* Xing share icon
|
74 |
-
* Vkontakte icon / VK icon
|
75 |
-
* Telegram icon
|
76 |
-
* Amazon icon
|
77 |
-
* Goodreads icon
|
78 |
-
* Angies list icon
|
79 |
-
* Steam icon
|
80 |
-
* Twitch icon
|
81 |
-
* Spotify icon
|
82 |
-
* Odnoklassniki icon / OK icon (ok.ru)
|
83 |
-
* Buffer icon
|
84 |
-
* Weibo icon
|
85 |
-
* Pocket icon
|
86 |
-
* Meneame icon
|
87 |
-
* Frype icon
|
88 |
-
* LiveJournal icon
|
89 |
-
* Patreon icon
|
90 |
-
* Dloky icon
|
91 |
-
* Discord icon
|
92 |
-
* Github icon
|
93 |
-
* WordPress icon
|
94 |
-
* Etsy icon
|
95 |
-
* Better Business Bureau icon
|
96 |
-
* Digg icon
|
97 |
-
* Delicious icon
|
98 |
-
* Print icon
|
99 |
-
|
100 |
-
If there are any important social share networks not covered yet, please let us know!
|
101 |
-
|
102 |
-
= Question 2: What shall the social share buttons do? =
|
103 |
-
|
104 |
-
Under this question you define what should happen if your visitors click on the social sharing icons.
|
105 |
-
|
106 |
-
The options are plenty, for example for the *Facebook button* you can allow users to:
|
107 |
-
|
108 |
-
* **Visit** your Facebook page
|
109 |
-
* Give your page a **Facebook Like**
|
110 |
-
* **Share it** with friends (on Facebook)
|
111 |
-
|
112 |
-
For the *Twitter button* you can allow users to:
|
113 |
-
* **Visit** you on Twitter
|
114 |
-
* **Follow you** on Twitter (without leaving your page)
|
115 |
-
* **Tweet** your page to the Twitter community
|
116 |
-
|
117 |
-
For the *Youtube button* you can allow users to:
|
118 |
-
* **Visit** you on Youtube
|
119 |
-
* **Subscribe** to you on Youtube (just by pressing the Youtube button, without leaving your page)
|
120 |
-
|
121 |
-
For the *Pinterest button* you can allow users to:
|
122 |
-
* **Visit** you on Pinterest
|
123 |
-
* **Pin** your site on Pinterest
|
124 |
-
|
125 |
-
For the *LinkedIn button* you can allow users to:
|
126 |
-
* **Visit** your LinkedIn page
|
127 |
-
* **Follow you** on LinkedIn (without leaving your website)
|
128 |
-
* **Share** your page on LinkedIn
|
129 |
-
* **Recommend** your business or product on LinkedIn
|
130 |
-
|
131 |
-
For the *Google+ button* you can allow users to:
|
132 |
-
|
133 |
-
* **Visit** your Google+ page
|
134 |
-
* Give your page a **"Google+ like"**
|
135 |
-
* **Share it** with friends (on Google+)
|
136 |
-
|
137 |
-
|
138 |
-
The other social share buttons provide similar functions. If you’ve given one social share icon several functions then users will see a little popup (tooltip) where they can select what they want to do, e.g. share it on social media, or just link to your social media profile, or follow you via social media with one click etc.
|
139 |
-
|
140 |
-
|
141 |
-
= Question 3: Where shall the social sharing icons be displayed? =
|
142 |
-
|
143 |
-
Now it’s time to define where the social sharing icons should show up. You can select to show them:
|
144 |
-
|
145 |
-
* **Via widget**: In the widget are you’ll see the social media widget where you can drag & drop it onto your sidebar or footer area.
|
146 |
-
* **Float on the page**: You can define the location of the social share buttons, e.g. top right, center left etc., and the margins from the top/bottom/left/right. The social share buttons will appear as flying buttons which move as the user scrolls down.
|
147 |
-
* **Manually**: Place the social share buttons via shortcode [DISPLAY_ULTIMATE_PLUS] or insert a php string into your theme.
|
148 |
-
* **Show the social sharing icons before or after posts**: Here you can select the social sharing icons to show before or after posts. You can choose to show the social sharing icons you selected above (round/squared layout), or pick from a different (rectangle) set of social share icons. You can also define a text before the social share icons, e.g. “Please follow and share us!” and define the alignment of the social share icons (left/right/center).
|
149 |
-
|
150 |
-
|
151 |
-
*The following questions are optional only, however most likely you will want to go through them to individualize the social share icon’s appearance even more:*
|
152 |
-
|
153 |
-
= Question 4: What design & animation do you want to give your social share icons? =
|
154 |
-
|
155 |
-
Here you can define how the social sharing buttons should look like. You can select from 16 social share design options (see screenshots).
|
156 |
-
|
157 |
-
You can also give any social share icon mouse-over effects, such as “fading effects” (sharing buttons fade in/out if moved over), “scale” (sharing buttons become larger if moved over) or “combo” (combination of the previous two).
|
158 |
-
|
159 |
-
If you want to give a subtle hint to your visitors to share, like or follow your site, then you can animate your social share buttons, for example you can let them shuffle automatically (e.g. when the site first loads, or after X seconds as defined by you).
|
160 |
-
|
161 |
-
|
162 |
-
= Question 5: Do you want to display counts next to your social share icons? =
|
163 |
-
|
164 |
-
Under this question you can decide to display counts next to your social share icons. All social share icons have the option to show manual counts, however for some social share icons automatic options are available.
|
165 |
-
|
166 |
-
For example, for your Facebook share button you can show the number of times the page got liked where the share icon is on (i.e. your site), or the number of likes count of your Facebook page.
|
167 |
-
|
168 |
-
For the Googleplus share button similar options are available. For the Twitter share button you can show the number of your followers on Twitter, which gets updated dynamically.
|
169 |
-
|
170 |
-
|
171 |
-
= Question 6: Any other wishes for your main social share buttons? =
|
172 |
-
|
173 |
-
Here you get many other options to tailor the social share buttons to your needs. For example, you can:
|
174 |
-
|
175 |
-
* Define the order of your social share buttons
|
176 |
-
* Define the size of your social share buttons
|
177 |
-
* Define the space between the social share buttons
|
178 |
-
* Define the alignment of social share buttons (with respect to each other)
|
179 |
-
* Decide how many social share buttons should be displayed per row
|
180 |
-
* Pick a language for your visit us / like / follow / social share buttons
|
181 |
-
* Decide to open windows in a new window (or same window) after user clicked on the social share buttons
|
182 |
-
* Make the social share buttons stick (if placed via widget, so still visible if user scrolls down)
|
183 |
-
* Disable float social share buttons on mobile devices
|
184 |
-
* Disable auto-scaling feature of the social share buttons for mobile devices (“viewport” meta tag)
|
185 |
-
* Give your social share buttons mouse-over texts
|
186 |
-
|
187 |
-
|
188 |
-
= Question 7: Do you want to display a pop up? =
|
189 |
-
|
190 |
-
A pop-up can make it more likely that your visitors share, follow or like your site (or connect with you). Therefore you can decide to show such a popup containing your social share buttons, and define…
|
191 |
-
* *The layout of the pop up*, i.e. displayed text, font type, font style, font color, background color, border color, border thickness, and border shadow.
|
192 |
-
* *Where the pop-up shall be shown*, i.e. on ever page, on blog posts only, or on selected pages only.
|
193 |
-
* *When the pop-up shall be shown*, i.e. once every X seconds after the user arrived on the site, or every time the user scrolls to the end of the page.
|
194 |
-
|
195 |
-
|
196 |
-
= Question 8: Do you want to show a subscription form? =
|
197 |
-
|
198 |
-
In addition to an email button you can also place a subscription form on your site, making it more likely that users subscribe and follow your site. It works in a similar way as a newsletter (using RSS technology, but not linked to your RSS button).
|
199 |
-
|
200 |
-
You can define the detailed layout of the subscription form, and have various options how to place it (via widget, shortcodes, or by copy/pasting HTML code on your site).
|
201 |
-
|
202 |
-
|
203 |
-
== Premium Plugin ==
|
204 |
-
|
205 |
-
The free plugin already provides tons of options for social sharing (as outlined above). In our Premium Plugin, even more is possible. Some examples for additional features in the Premium Plugin:
|
206 |
-
|
207 |
-
* More social share buttons (the icon pack includes an Instagram button, Snapchat button, Yummly button, Print button, Whatsapp button, Yelp button, Soundcloud button, Skype button, Flickr button, Share button, Blogger button, Digg button, Reddit button, Vimeo button, Tumblr button, Xing button, vk button, Telegram button, Amazon button, Spotify button and many more badge, see list above)
|
208 |
-
* More (default) design styles for your social share icons
|
209 |
-
* Themed design styles for your social share buttons (e.g. if you have a site about cats, you can pick from cat-themed buttons etc.)
|
210 |
-
* Better sharing & following features (tailored tweet texts, allow people to follow you directly on your page etc.)
|
211 |
-
* Place the social share icons on specific pages
|
212 |
-
* Optimized for mobile sharing and buton display
|
213 |
-
* More functions for email icon to connect with you
|
214 |
-
* More lightbox / popup options (e.g. limit how often the popup is shown to the same user)
|
215 |
-
* (Friendly and fast) Support
|
216 |
-
* Many more settings & options
|
217 |
-
|
218 |
-
Note: this plugin uses the third party provider SpecificFeeds.com for the subscription feature, enabling you to allow your visitors to subscribe to your site and get new posts automatically by email. Upon installation of the plugin a feed will be set up on SpecificFeeds, transmitting your IP address. This is required for this feature to work.
|
219 |
-
|
220 |
-
See [all features of the Premium Plugin](https://www.ultimatelysocial.com/usm-premium).
|
221 |
-
|
222 |
-
In case of issues or questions please ask in the [Support forum] (https://wordpress.org/support/plugin/ultimate-social-media-plus).
|
223 |
-
|
224 |
-
== Installation ==
|
225 |
-
Extract the zip file and drop the contents into the wp-content/plugins/ directory of your WordPress installation. Then activate the plugin from the plugins page.
|
226 |
-
|
227 |
-
Then go to plugin settings page and answer the first 3 questions. That's it.
|
228 |
-
|
229 |
-
Note: This plugin requires CURL to be activated/installed on your server (which should be the standard case). If you don't have it, please contact your hosting provider.
|
230 |
-
|
231 |
-
== Frequently Asked Questions ==
|
232 |
-
|
233 |
-
= Please also check the more comprehensive FAQ on http://ultimatelysocial.com/faq =
|
234 |
-
|
235 |
-
We will try to keep this FAQ section up-to-date, but please note that the latest version of the FAQ might be only available at http://ultimatelysocial.com/faq
|
236 |
-
|
237 |
-
= I face fundamental issues (the plugin doesn't load, social share buttons don't show etc.) =
|
238 |
-
|
239 |
-
Please ensure that:
|
240 |
-
|
241 |
-
- You're using the latest version of the plugin(s)
|
242 |
-
- Your site is running on PHP 5.4 or above
|
243 |
-
- You have CURL activated (should be activated by default)
|
244 |
-
|
245 |
-
If you're not familiar with those please contact your hosting company or server admin.
|
246 |
-
|
247 |
-
Please check if you have browser extensions activated which may conflict with the social share buttons. Known culprits include:
|
248 |
-
|
249 |
-
- Open SEO Stats (Formerly: PageRank Status) in Chrome
|
250 |
-
- Adblock Plus in Chrome
|
251 |
-
- Vine in Chrome
|
252 |
-
|
253 |
-
Either de-activate those extensions or try it in a different browser.
|
254 |
-
|
255 |
-
If the plugin setting's area looks 'funny' after an upgrade then please clear your cache with String+F5 (PC) or Command+R (Mac).
|
256 |
-
|
257 |
-
If you get the error message “Are you sure you want to do this? / Please try again” when uploading the plugin: Some servers may have a low limits with respect to permitted upload times. Please set the values in the “php.ini” file to:
|
258 |
-
|
259 |
-
max_execution_time 90
|
260 |
-
post_max_size 48M
|
261 |
-
|
262 |
-
If you don’t know how to do it, please contact your server support / hosting company for that. Tell them you need it for a sharing plugin on WordPress which may take longer to upload as many socialsharing buttons are included in it (larger file size).
|
263 |
-
|
264 |
-
If your issue is still not fixed after you’ve followed the steps above, we can provide support as part of our new share to social Premium Plugin: https://www.ultimatelysocial.com/usm-premium/.
|
265 |
-
|
266 |
-
= I get error messages 'Error : 7', 'Error : 56', 'Error : 6' etc. =
|
267 |
-
|
268 |
-
Those point to a CURL-issue on your site. Please contact your server admin or your hosting company to resolve it.
|
269 |
-
|
270 |
-
The plugin requires CURL for the social share counts and other features.
|
271 |
-
|
272 |
-
= Social share buttons don't show =
|
273 |
-
|
274 |
-
Please ensure you actually placed the social share buttons either as social widget (in your widget area) or as floating icons under question 5). The Premium Plugin makes placing sharing buttons especially easy and also allows you to place sticky buttons on your site, define the placement of the share buttons by margins and many other options, see https://www.ultimatelysocial.com/usm-premium/.
|
275 |
-
|
276 |
-
If only some social share buttons show, but not all, then please clear your cache, and check if you may have conflicting browser extensions (e.g. 'Disconnect'-app in Chrome). Also Ad-Blockers are known culprits, please switch them off temporarily to see if that is the reason.
|
277 |
-
|
278 |
-
If the social share buttons still don't show then there's an issue with your template. Please contact the creator of your template for that.
|
279 |
-
|
280 |
-
If you are referring to specific social share buttons not showing in the plugin itself (e.g. you're looking for a Whatsapp icon, but it doesnt exist) please note that our Premium Plugin has many more social media share buttons, see https://www.ultimatelysocial.com/usm-premium/
|
281 |
-
|
282 |
-
= Twitter share counters are not displaying (anymore) =
|
283 |
-
|
284 |
-
Unfortunately, Twitter stopped providing any social share counter. God knows why.
|
285 |
-
|
286 |
-
= Changes don't get saved / Deleted plugin but sharing buttons still show =
|
287 |
-
|
288 |
-
Most likely you have the WP Cache plugin installed. Please de-activate and then re-activate it.
|
289 |
-
|
290 |
-
= Links don't work =
|
291 |
-
|
292 |
-
Please ensure you've entered the 'http://' at the beginning of the url (for *all* social networks). If the share buttons are not clickable at all there is most likely an issue with your template. This is especially the case if you've given your social share buttons several features, which should show a pop-up (tooltip) when you move over the share buttons.
|
293 |
-
|
294 |
-
= I cannot upload social custom buttons =
|
295 |
-
|
296 |
-
Most likely that's because you've set 'allow_url_fopen' to 'off'. Please turn it to 'on' (or ask your server admin to do so, he'll know what to do. Tell them you need it to upload custom buttons for a social media buttons plugin which are not included yet).
|
297 |
-
|
298 |
-
= My Youtube button (direct follow) doesn't work =
|
299 |
-
|
300 |
-
Please ensure that you've selected the radio button 'Username' when you enter a youtube username, or 'Channel ID' when you entered a channel ID.
|
301 |
-
|
302 |
-
= Aligning the social share buttons (centered, left- or right-aligned) doesn't work =
|
303 |
-
|
304 |
-
The alignment options under question 5 align the sharing icons with respect to each other, not where they appear on the page. Our new Premium Plugin is the best social sharing plugin on the market, allowing you to define also many other button alignments (e.g. within a widget, within shortcode etc.).
|
305 |
-
|
306 |
-
= Clicking on the RSS button returns funny codes =
|
307 |
-
|
308 |
-
That's normal. RSS users will know what to do with it (i.e. copy & paste the url into their RSS readers).
|
309 |
-
|
310 |
-
= Facebook 'like'-count isn't correct =
|
311 |
-
|
312 |
-
When you 'like' something on your blog via facebook it likes the site you're currently on (e.g. your blog) and not your Facebook page.
|
313 |
-
|
314 |
-
The new Premium Plugin also allows to show the number of your Facebook page likes, see https://www.ultimatelysocial.com/usm-premium/.
|
315 |
-
|
316 |
-
= Sharing doesn't take the right text or picture =
|
317 |
-
|
318 |
-
We use the codes from Facebook, Google+ etc. and therefore don't have any influence over which text & pic is used for sharing.
|
319 |
-
|
320 |
-
Note that you can define an image as 'Featured Image' which tells Facebok / Google etc. to share that one. You'll find this 'Featured Image' section in your blog's admin area where you can edit your blog post.
|
321 |
-
|
322 |
-
You can crosscheck which image Facebook will share by entring your url on https://developers.facebook.com/tools/debug/og/object/.
|
323 |
-
|
324 |
-
= The pop-up shows although I only gave my social share button one share function =
|
325 |
-
|
326 |
-
The pop-up only disappears if you've given your sharing buttons only a 'visit us'-function, otherwise (e.g. if you gave it 'Like' (on facebook) or 'Tweet' functions or sharing functions) a pop-up is still needed because the share buttons for those are coming directly from the social media sites (e.g. Facebook, Twitter) and we don't have any influence over their design.
|
327 |
-
|
328 |
-
= I selected to display the social sharing buttons after every post but they don't show =
|
329 |
-
|
330 |
-
The social sharing buttons usually do show, however not on your blog page, but on your single posts pages. The Premium plugin (https://www.ultimatelysocial.com/usm-premium/) also allows to display the share buttons on your homepage.
|
331 |
-
|
332 |
-
= Plugin decreases my site's loading speed =
|
333 |
-
|
334 |
-
The plugin is one of the most optimized social media plugin in terms of impact on a site's loading speed (optimized code, compressed pictures etc.).
|
335 |
-
|
336 |
-
If you still experience loading speed issues, please note that:
|
337 |
-
|
338 |
-
- The more social sharing bottons and invite features you place on your site, the more external codes you load (i.e. from the social media sites; we just use their code), therefore impacting loading speed. So to prevent this, give your sharing buttons only 'Visit us'-functionality rather than sharing functionalities.
|
339 |
-
|
340 |
-
- We've programed it so that the code for the social media buttons is the one which loads lasts on your site, i.e. after all the other content has already been loaded. This means: even if there is a decrease in loading speed, it does not impact a user's experience because he sees your site as quickly as before, only the social media buttons take a bit longer to load.
|
341 |
-
|
342 |
-
There might be also other issues on your site which cause a high loading speed (e.g. conflicts with our plugins or template issues). Please ask your template creator about that.
|
343 |
-
|
344 |
-
Also, if you've uploaded social media sharing buttons not provided by the plugin itself (i.e. custom buttons) please ensure they are compressd as well.
|
345 |
-
|
346 |
-
= After moving from demo-server to live-server the follow or subscribe link doesn't work anymore =
|
347 |
-
|
348 |
-
Please delete and install the plugin again.
|
349 |
-
|
350 |
-
If you already placed the code for a subscription form on your site, remove it again and take the new one from the new plugin installation.
|
351 |
-
|
352 |
-
= When I try to like or share via Facebook, I get error message 'App Not Setup: This app is still...' =
|
353 |
-
|
354 |
-
If you get the error message...
|
355 |
-
|
356 |
-
'App Not Setup: This app is still in development mode, and you don't have access to it. Switch to a registered test user or ask an app admin for permissions.'
|
357 |
-
|
358 |
-
...then most likely you're curently logged in with a business account on Facebook. Please logout, or switch to your personal account.
|
359 |
-
|
360 |
-
= There are other issues when I activate the plugin or place the share buttons =
|
361 |
-
|
362 |
-
Please check the following:
|
363 |
-
|
364 |
-
The plugin requires that CURL is instaled & activated on your server (which should be the standard case). If you don't have it, please contact your hosting provider.
|
365 |
-
|
366 |
-
Please ensure that you don't have any browser extension activated which may conflict with the plugin, esp. those which block certain content including the share buttons. Known culprits include the 'Disconnect' extension in Chrome or the 'Privacy Badger' extension in Firefox.
|
367 |
-
|
368 |
-
If issues persist most likely your theme has issues which makes it incompatible with our plugin. Please contact your template creator for that. As part of the Premium Plugin (https://www.ultimatelysocial.com/usm-premium/) we fix also theme issues, and provide support to ensure that your social media share buttons appear on your site (exactly where you want them).
|
369 |
-
|
370 |
-
= How can I see how many people share or like my posts? =
|
371 |
-
|
372 |
-
You can see this by activating the sharnig 'counts' on the front end (under question 5 in the plugin). This will display the counters in little bubbles showing how often people share your posts.
|
373 |
-
|
374 |
-
We cannot provide you this data in other ways as it's coming directly from the social media sites. One exception: if you like to know when people start to follow you by email, then you can get email alerts. For that, please claim your feed.
|
375 |
-
|
376 |
-
= How can I change the 'Please follow & like us :)'? =
|
377 |
-
|
378 |
-
You can change it in the Widget-area where you dropped the widget with the sharing buttons on the sidebar. Please click on it (on the sidebar), it will open the menu where you can change the text.
|
379 |
-
|
380 |
-
If you don't want to show any text, just enter a space (' ').
|
381 |
-
|
382 |
-
= How can I remove the credit-link ('Powered by Ultimatelysocial')? =
|
383 |
-
|
384 |
-
Please note that we didn't place the credit link without your consent (you agreed to it when de-selecting the email button).
|
385 |
-
|
386 |
-
Open the first question in the plugin ('1. Which sharing buttons do you want to show on your site?'), on the level of the email button you see a link on the right hand side. Please click it to remove the credit link.
|
387 |
-
|
388 |
-
= Can I use a shortcode to place the share buttons? =
|
389 |
-
|
390 |
-
Yes, it's [DISPLAY_ULTIMATE_SOCIAL_ICONS]. You can place it into any editor. If the sharing buttons still don't show, there might be an issue with your theme.
|
391 |
-
|
392 |
-
Alternatively, you can place the followin into your codes: <?php echo do_shortcode('[DISPLAY_ULTIMATE_SOCIAL_ICONS]'); ?>
|
393 |
-
|
394 |
-
In some cases there might be issues to display social media sharing buttons which you uploaded as custom buttons. In this case, we provide support as part of our premium plugin: https://www.ultimatelysocial.com/usm-premium/
|
395 |
-
|
396 |
-
= Can I get more options for the social share buttons next to posts? =
|
397 |
-
|
398 |
-
Please use this plugin for that: https://www.ultimatelysocial.com/usm-premium/. This allows you to place more share buttons (e.g. including Linkedin) as well as giving you more configuration options.
|
399 |
-
|
400 |
-
= Can I also give the email button a 'mailto:' functionality? =
|
401 |
-
|
402 |
-
Yes, that is possible in our new social share plugin, the Premium Plugin: https://www.ultimatelysocial.com/usm-premium/
|
403 |
-
|
404 |
-
To get the email button in the same design style you picked, activate it, then on the front-end, rightclick on the button, and save it as picture. Upload that picture as custom button.
|
405 |
-
|
406 |
-
= Can I also display the share buttons vertically? =
|
407 |
-
|
408 |
-
Yes, that is possible in our new social sharing plugin, the Premium Plugn: https://www.ultimatelysocial.com/usm-premium/.
|
409 |
-
|
410 |
-
= How can I change the text on the 'visit us'-buttons? =
|
411 |
-
|
412 |
-
Use this plugin: https://www.ultimatelysocial.com/usm-premium/
|
413 |
-
|
414 |
-
= Can I deactivate the social sharing buttons on mobile? =
|
415 |
-
|
416 |
-
Yes, there's an option for that under question 5. In our new Premium Plugin you can define different settings of the share buttons for mobile, see https://www.ultimatelysocial.com/usm-premium/. The best way to share social media! :)
|
417 |
-
|
418 |
-
= How can I use two instances of the plugin on my site? =
|
419 |
-
|
420 |
-
You cannot use the same plugin twice, however you can install both the first USM plugin (https://wordpress.org/plugins/ultimate-social-media-icons/) as well as the Premiuem plugin (https://www.ultimatelysocial.com/usm-premium/). We've developed the code so that there are no conflicts and they can be used in parallel.
|
421 |
-
|
422 |
-
= Where can I find icons for more social media platforms? =
|
423 |
-
|
424 |
-
The premium plugin offrs many more social buttons from other social media platforms such as Snapchat, Whattsapp, Yelp, Sound cloud and many others. It's the best socialsharing plugin on the market :) Check it out at https://www.ultimatelysocial.com/usm-premium/
|
425 |
-
|
426 |
-
|
427 |
-
== Screenshots ==
|
428 |
-
|
429 |
-
1. After installing the plugin, you'll see this overview. You'll be taken through the easy-to-understand steps to configure your plugin
|
430 |
-
|
431 |
-
2. As a first step you select which icons you want to display on your website
|
432 |
-
|
433 |
-
3. Then you'll define what the icons should do (they can perform several actions, e.g. lead users to your facebook page, or allow them to share your content on their facebook page)
|
434 |
-
|
435 |
-
4. In a third step you decide where the icons should be placed: a.) via Widget, b.) Floating, c.) via Shortcode and/or d.) Before or after posts
|
436 |
-
|
437 |
-
5. You can pick from a wide range of social share icon designs
|
438 |
-
|
439 |
-
6. Here you can animate your main icons (automatic shuffling, mouse-over effects etc.), to make visitors of your site aware that they can share, follow & like your site
|
440 |
-
|
441 |
-
7. You can choose to display counts next to your icons (e.g. number of Twitter-followers)
|
442 |
-
|
443 |
-
8. There are many more options to choose from
|
444 |
-
|
445 |
-
9. You can also display a pop-up (designed to your liking) which asks users to like & share your site
|
446 |
-
|
447 |
-
|
448 |
-
== Changelog ==
|
449 |
-
= 3.2.
|
450 |
-
* Update:
|
451 |
-
|
452 |
-
= 3.2.
|
453 |
-
* Update: Text changes.
|
454 |
-
* Update:
|
455 |
-
|
456 |
-
|
457 |
-
= 3.2.
|
458 |
-
* Update:
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
* Update:
|
470 |
-
*
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
*
|
476 |
-
* Solved:
|
477 |
-
*
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
*
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
* Update:
|
490 |
-
* Update:
|
491 |
-
|
492 |
-
|
493 |
-
* Update:
|
494 |
-
|
495 |
-
|
496 |
-
* Update:
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
* Update:
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
* Update:
|
507 |
-
* Update:
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
* Update:
|
512 |
-
* Update:
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
*
|
517 |
-
* Update:
|
518 |
-
* Update:
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
* Update:
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
* Update:
|
539 |
-
*
|
540 |
-
|
541 |
-
= 3.0.
|
542 |
-
*
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
*
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
* Update:
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
* Update:
|
558 |
-
|
559 |
-
= 3.0.
|
560 |
-
* Update:
|
561 |
-
*
|
562 |
-
|
563 |
-
|
564 |
-
|
565 |
-
*
|
566 |
-
*
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
*
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
*
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
*
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
* Gutenberg
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
*
|
621 |
-
*
|
622 |
-
|
623 |
-
= 2.8.
|
624 |
-
*
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
-
|
643 |
-
|
644 |
-
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
654 |
-
|
655 |
-
|
656 |
-
|
657 |
-
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
-
*
|
671 |
-
|
672 |
-
= 2.6.
|
673 |
-
*
|
674 |
-
*
|
675 |
-
|
676 |
-
|
677 |
-
|
678 |
-
|
679 |
-
|
680 |
-
|
681 |
-
|
682 |
-
*
|
683 |
-
|
684 |
-
|
685 |
-
*
|
686 |
-
*
|
687 |
-
*
|
688 |
-
|
689 |
-
|
690 |
-
*
|
691 |
-
|
692 |
-
|
693 |
-
|
694 |
-
|
695 |
-
|
696 |
-
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
|
701 |
-
|
702 |
-
*
|
703 |
-
|
704 |
-
|
705 |
-
*
|
706 |
-
|
707 |
-
|
708 |
-
*
|
709 |
-
|
710 |
-
|
711 |
-
|
712 |
-
|
713 |
-
|
714 |
-
|
715 |
-
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
725 |
-
|
726 |
-
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
*
|
735 |
-
|
736 |
-
|
737 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
|
746 |
-
|
747 |
-
|
748 |
-
*
|
749 |
-
*
|
750 |
-
|
751 |
-
= 2.4.
|
752 |
-
*
|
753 |
-
* Counts for SpecificFeeds-subscribers
|
754 |
-
|
755 |
-
|
756 |
-
|
757 |
-
* Cute G+ icon
|
758 |
-
*
|
759 |
-
|
760 |
-
|
761 |
-
|
762 |
-
*
|
763 |
-
*
|
764 |
-
|
765 |
-
|
766 |
-
|
767 |
-
*
|
768 |
-
*
|
769 |
-
|
770 |
-
= 2.3.
|
771 |
-
*
|
772 |
-
|
773 |
-
|
774 |
-
|
775 |
-
|
776 |
-
*
|
777 |
-
|
778 |
-
= 2.3.
|
779 |
-
*
|
780 |
-
|
781 |
-
|
782 |
-
|
783 |
-
|
784 |
-
|
785 |
-
|
786 |
-
|
787 |
-
*
|
788 |
-
*
|
789 |
-
|
790 |
-
|
791 |
-
|
792 |
-
*
|
793 |
-
*
|
794 |
-
|
795 |
-
|
796 |
-
|
797 |
-
*
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
*
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
*
|
810 |
-
*
|
811 |
-
*
|
812 |
-
|
813 |
-
|
814 |
-
*
|
815 |
-
*
|
816 |
-
|
817 |
-
|
818 |
-
*
|
819 |
-
|
820 |
-
|
821 |
-
|
822 |
-
|
823 |
-
|
824 |
-
|
825 |
-
|
826 |
-
|
827 |
-
|
828 |
-
|
829 |
-
|
830 |
-
|
831 |
-
|
832 |
-
|
833 |
-
|
834 |
-
|
835 |
-
|
836 |
-
|
837 |
-
|
838 |
-
|
839 |
-
|
840 |
-
|
841 |
-
*
|
842 |
-
|
843 |
-
|
844 |
-
|
845 |
-
|
846 |
-
*
|
847 |
-
*
|
848 |
-
*
|
849 |
-
|
850 |
-
|
851 |
-
*
|
852 |
-
*
|
853 |
-
|
854 |
-
|
855 |
-
*
|
856 |
-
|
857 |
-
|
858 |
-
|
859 |
-
|
860 |
-
*
|
861 |
-
|
862 |
-
= 1.
|
863 |
-
*
|
864 |
-
*
|
865 |
-
*
|
866 |
-
|
867 |
-
= 1.
|
868 |
-
*
|
869 |
-
*
|
870 |
-
*
|
871 |
-
|
872 |
-
|
873 |
-
*
|
874 |
-
|
875 |
-
|
876 |
-
*
|
877 |
-
*
|
878 |
-
*
|
879 |
-
|
880 |
-
|
881 |
-
*
|
882 |
-
|
883 |
-
|
884 |
-
|
885 |
-
*
|
886 |
-
*
|
887 |
-
|
888 |
-
|
889 |
-
|
890 |
-
*
|
891 |
-
|
892 |
-
|
893 |
-
*
|
894 |
-
*
|
895 |
-
|
896 |
-
|
897 |
-
|
898 |
-
*
|
899 |
-
*
|
900 |
-
|
901 |
-
|
902 |
-
*
|
903 |
-
*
|
904 |
-
*
|
905 |
-
* When
|
906 |
-
*
|
907 |
-
*
|
908 |
-
*
|
909 |
-
|
910 |
-
|
911 |
-
*
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
=
|
|
|
|
|
|
|
|
|
|
|
916 |
* Please update
|
1 |
+
=== Social Share Icons & Social Share Buttons ===
|
2 |
+
Contributors: socialsharepro
|
3 |
+
Tags: Share, sharing, share buttons, share button, share social media, share icons, social buttons, sharing buttons, sharing icons, social media icons, social share, social sharing
|
4 |
+
Requires at least: 3.0
|
5 |
+
Tested up to: 5.2
|
6 |
+
Stable tag: 3.2.5
|
7 |
+
License: GPLv2
|
8 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
+
|
10 |
+
Social sharing plugin adding social buttons.
|
11 |
+
|
12 |
+
== Description ==
|
13 |
+
|
14 |
+
This social plugin makes placing social share icons on your site REALLY easy.
|
15 |
+
|
16 |
+
This free plugin has a lot to offer. Even more can be found in the Premium Plugin, please watch this short video:
|
17 |
+
|
18 |
+
[vimeo https://vimeo.com/269140798]
|
19 |
+
|
20 |
+
See [all features of the Premium plugin](https://www.ultimatelysocial.com/usm-premium/).
|
21 |
+
|
22 |
+
Key features of the free plugin:
|
23 |
+
|
24 |
+
- Select from a **wide range of social share platforms** (see a list of them below)
|
25 |
+
- Pick from **16 stylish design styles** for your social share buttons
|
26 |
+
- Place the social share buttons **before or after posts, floating, via widget, via shortcode, or define the location on the page** (top right, bottom left etc.)
|
27 |
+
- Give **several actions to one social share button** (e.g. your Facebook icon can lead visitors to your Facebook page, and also show a Facebook button to share your page on social media)
|
28 |
+
- Give your social share buttons an **animation** (e.g. automatic shuffling, mouse-over effects) to make your visitors aware of them, increasing the chance that they follow, like or share your site
|
29 |
+
- Add **counts** to your share buttons
|
30 |
+
- Display a **pop-up** (on all or only on selected pages) asking people to follow or share you
|
31 |
+
- Allow visitors to **subscribe to your site** and receive new posts automatically by email
|
32 |
+
- Select from **many other customization features** for your social share buttons
|
33 |
+
|
34 |
+
For GDPR compliance, please have a look at our [Social Media GDPR Compliance page](https://ultimatelysocial.com/gdpr/).
|
35 |
+
|
36 |
+
In case of issues or questions please ask in the [Support forum] (https://wordpress.org/support/plugin/ultimate-social-media-plus).
|
37 |
+
|
38 |
+
|
39 |
+
The plugin takes you through eight easy-to-answer questions so that configuring your social share icons becomes a no-brainer:
|
40 |
+
|
41 |
+
= Question 1: Which social share buttons do you want to display? =
|
42 |
+
|
43 |
+
You can select the following:
|
44 |
+
|
45 |
+
* Facebook share icon
|
46 |
+
* Twitter share icon
|
47 |
+
* Email icon
|
48 |
+
* RSS icon
|
49 |
+
* Instagram share icon
|
50 |
+
* Google plus share icon
|
51 |
+
* Youtube share icon
|
52 |
+
* Pinterest share icon
|
53 |
+
* LinkedIn share icon
|
54 |
+
* Houzz share icon
|
55 |
+
* Share icon (allows your visitors to share your site on over 200+ other social media sites; powered by addthis/sharethis)
|
56 |
+
|
57 |
+
You can also upload custom social share buttons of your choice.
|
58 |
+
|
59 |
+
The [Premium Plugin](https://www.ultimatelysocial.com/usm-premium) offers many more social share icons and buttons. The premium share button set includes a...
|
60 |
+
|
61 |
+
* Snapchat share icon
|
62 |
+
* Yummly share icon
|
63 |
+
* Whatsapp share icon (and also "send me direct message" and other functions)
|
64 |
+
* Phone icon
|
65 |
+
* Yelp share icon
|
66 |
+
* Soundcloud share icon
|
67 |
+
* Skype icon
|
68 |
+
* Flickr share icon
|
69 |
+
* Blogger share icon
|
70 |
+
* Reddit share icon
|
71 |
+
* Vimeo share icon
|
72 |
+
* Tumblr share icon
|
73 |
+
* Xing share icon
|
74 |
+
* Vkontakte icon / VK icon
|
75 |
+
* Telegram icon
|
76 |
+
* Amazon icon
|
77 |
+
* Goodreads icon
|
78 |
+
* Angies list icon
|
79 |
+
* Steam icon
|
80 |
+
* Twitch icon
|
81 |
+
* Spotify icon
|
82 |
+
* Odnoklassniki icon / OK icon (ok.ru)
|
83 |
+
* Buffer icon
|
84 |
+
* Weibo icon
|
85 |
+
* Pocket icon
|
86 |
+
* Meneame icon
|
87 |
+
* Frype icon
|
88 |
+
* LiveJournal icon
|
89 |
+
* Patreon icon
|
90 |
+
* Dloky icon
|
91 |
+
* Discord icon
|
92 |
+
* Github icon
|
93 |
+
* WordPress icon
|
94 |
+
* Etsy icon
|
95 |
+
* Better Business Bureau icon
|
96 |
+
* Digg icon
|
97 |
+
* Delicious icon
|
98 |
+
* Print icon
|
99 |
+
|
100 |
+
If there are any important social share networks not covered yet, please let us know!
|
101 |
+
|
102 |
+
= Question 2: What shall the social share buttons do? =
|
103 |
+
|
104 |
+
Under this question you define what should happen if your visitors click on the social sharing icons.
|
105 |
+
|
106 |
+
The options are plenty, for example for the *Facebook button* you can allow users to:
|
107 |
+
|
108 |
+
* **Visit** your Facebook page
|
109 |
+
* Give your page a **Facebook Like**
|
110 |
+
* **Share it** with friends (on Facebook)
|
111 |
+
|
112 |
+
For the *Twitter button* you can allow users to:
|
113 |
+
* **Visit** you on Twitter
|
114 |
+
* **Follow you** on Twitter (without leaving your page)
|
115 |
+
* **Tweet** your page to the Twitter community
|
116 |
+
|
117 |
+
For the *Youtube button* you can allow users to:
|
118 |
+
* **Visit** you on Youtube
|
119 |
+
* **Subscribe** to you on Youtube (just by pressing the Youtube button, without leaving your page)
|
120 |
+
|
121 |
+
For the *Pinterest button* you can allow users to:
|
122 |
+
* **Visit** you on Pinterest
|
123 |
+
* **Pin** your site on Pinterest
|
124 |
+
|
125 |
+
For the *LinkedIn button* you can allow users to:
|
126 |
+
* **Visit** your LinkedIn page
|
127 |
+
* **Follow you** on LinkedIn (without leaving your website)
|
128 |
+
* **Share** your page on LinkedIn
|
129 |
+
* **Recommend** your business or product on LinkedIn
|
130 |
+
|
131 |
+
For the *Google+ button* you can allow users to:
|
132 |
+
|
133 |
+
* **Visit** your Google+ page
|
134 |
+
* Give your page a **"Google+ like"**
|
135 |
+
* **Share it** with friends (on Google+)
|
136 |
+
|
137 |
+
|
138 |
+
The other social share buttons provide similar functions. If you’ve given one social share icon several functions then users will see a little popup (tooltip) where they can select what they want to do, e.g. share it on social media, or just link to your social media profile, or follow you via social media with one click etc.
|
139 |
+
|
140 |
+
|
141 |
+
= Question 3: Where shall the social sharing icons be displayed? =
|
142 |
+
|
143 |
+
Now it’s time to define where the social sharing icons should show up. You can select to show them:
|
144 |
+
|
145 |
+
* **Via widget**: In the widget are you’ll see the social media widget where you can drag & drop it onto your sidebar or footer area.
|
146 |
+
* **Float on the page**: You can define the location of the social share buttons, e.g. top right, center left etc., and the margins from the top/bottom/left/right. The social share buttons will appear as flying buttons which move as the user scrolls down.
|
147 |
+
* **Manually**: Place the social share buttons via shortcode [DISPLAY_ULTIMATE_PLUS] or insert a php string into your theme.
|
148 |
+
* **Show the social sharing icons before or after posts**: Here you can select the social sharing icons to show before or after posts. You can choose to show the social sharing icons you selected above (round/squared layout), or pick from a different (rectangle) set of social share icons. You can also define a text before the social share icons, e.g. “Please follow and share us!” and define the alignment of the social share icons (left/right/center).
|
149 |
+
|
150 |
+
|
151 |
+
*The following questions are optional only, however most likely you will want to go through them to individualize the social share icon’s appearance even more:*
|
152 |
+
|
153 |
+
= Question 4: What design & animation do you want to give your social share icons? =
|
154 |
+
|
155 |
+
Here you can define how the social sharing buttons should look like. You can select from 16 social share design options (see screenshots).
|
156 |
+
|
157 |
+
You can also give any social share icon mouse-over effects, such as “fading effects” (sharing buttons fade in/out if moved over), “scale” (sharing buttons become larger if moved over) or “combo” (combination of the previous two).
|
158 |
+
|
159 |
+
If you want to give a subtle hint to your visitors to share, like or follow your site, then you can animate your social share buttons, for example you can let them shuffle automatically (e.g. when the site first loads, or after X seconds as defined by you).
|
160 |
+
|
161 |
+
|
162 |
+
= Question 5: Do you want to display counts next to your social share icons? =
|
163 |
+
|
164 |
+
Under this question you can decide to display counts next to your social share icons. All social share icons have the option to show manual counts, however for some social share icons automatic options are available.
|
165 |
+
|
166 |
+
For example, for your Facebook share button you can show the number of times the page got liked where the share icon is on (i.e. your site), or the number of likes count of your Facebook page.
|
167 |
+
|
168 |
+
For the Googleplus share button similar options are available. For the Twitter share button you can show the number of your followers on Twitter, which gets updated dynamically.
|
169 |
+
|
170 |
+
|
171 |
+
= Question 6: Any other wishes for your main social share buttons? =
|
172 |
+
|
173 |
+
Here you get many other options to tailor the social share buttons to your needs. For example, you can:
|
174 |
+
|
175 |
+
* Define the order of your social share buttons
|
176 |
+
* Define the size of your social share buttons
|
177 |
+
* Define the space between the social share buttons
|
178 |
+
* Define the alignment of social share buttons (with respect to each other)
|
179 |
+
* Decide how many social share buttons should be displayed per row
|
180 |
+
* Pick a language for your visit us / like / follow / social share buttons
|
181 |
+
* Decide to open windows in a new window (or same window) after user clicked on the social share buttons
|
182 |
+
* Make the social share buttons stick (if placed via widget, so still visible if user scrolls down)
|
183 |
+
* Disable float social share buttons on mobile devices
|
184 |
+
* Disable auto-scaling feature of the social share buttons for mobile devices (“viewport” meta tag)
|
185 |
+
* Give your social share buttons mouse-over texts
|
186 |
+
|
187 |
+
|
188 |
+
= Question 7: Do you want to display a pop up? =
|
189 |
+
|
190 |
+
A pop-up can make it more likely that your visitors share, follow or like your site (or connect with you). Therefore you can decide to show such a popup containing your social share buttons, and define…
|
191 |
+
* *The layout of the pop up*, i.e. displayed text, font type, font style, font color, background color, border color, border thickness, and border shadow.
|
192 |
+
* *Where the pop-up shall be shown*, i.e. on ever page, on blog posts only, or on selected pages only.
|
193 |
+
* *When the pop-up shall be shown*, i.e. once every X seconds after the user arrived on the site, or every time the user scrolls to the end of the page.
|
194 |
+
|
195 |
+
|
196 |
+
= Question 8: Do you want to show a subscription form? =
|
197 |
+
|
198 |
+
In addition to an email button you can also place a subscription form on your site, making it more likely that users subscribe and follow your site. It works in a similar way as a newsletter (using RSS technology, but not linked to your RSS button).
|
199 |
+
|
200 |
+
You can define the detailed layout of the subscription form, and have various options how to place it (via widget, shortcodes, or by copy/pasting HTML code on your site).
|
201 |
+
|
202 |
+
|
203 |
+
== Premium Plugin ==
|
204 |
+
|
205 |
+
The free plugin already provides tons of options for social sharing (as outlined above). In our Premium Plugin, even more is possible. Some examples for additional features in the Premium Plugin:
|
206 |
+
|
207 |
+
* More social share buttons (the icon pack includes an Instagram button, Snapchat button, Yummly button, Print button, Whatsapp button, Yelp button, Soundcloud button, Skype button, Flickr button, Share button, Blogger button, Digg button, Reddit button, Vimeo button, Tumblr button, Xing button, vk button, Telegram button, Amazon button, Spotify button and many more badge, see list above)
|
208 |
+
* More (default) design styles for your social share icons
|
209 |
+
* Themed design styles for your social share buttons (e.g. if you have a site about cats, you can pick from cat-themed buttons etc.)
|
210 |
+
* Better sharing & following features (tailored tweet texts, allow people to follow you directly on your page etc.)
|
211 |
+
* Place the social share icons on specific pages
|
212 |
+
* Optimized for mobile sharing and buton display
|
213 |
+
* More functions for email icon to connect with you
|
214 |
+
* More lightbox / popup options (e.g. limit how often the popup is shown to the same user)
|
215 |
+
* (Friendly and fast) Support
|
216 |
+
* Many more settings & options
|
217 |
+
|
218 |
+
Note: this plugin uses the third party provider SpecificFeeds.com for the subscription feature, enabling you to allow your visitors to subscribe to your site and get new posts automatically by email. Upon installation of the plugin a feed will be set up on SpecificFeeds, transmitting your IP address. This is required for this feature to work.
|
219 |
+
|
220 |
+
See [all features of the Premium Plugin](https://www.ultimatelysocial.com/usm-premium).
|
221 |
+
|
222 |
+
In case of issues or questions please ask in the [Support forum] (https://wordpress.org/support/plugin/ultimate-social-media-plus).
|
223 |
+
|
224 |
+
== Installation ==
|
225 |
+
Extract the zip file and drop the contents into the wp-content/plugins/ directory of your WordPress installation. Then activate the plugin from the plugins page.
|
226 |
+
|
227 |
+
Then go to plugin settings page and answer the first 3 questions. That's it.
|
228 |
+
|
229 |
+
Note: This plugin requires CURL to be activated/installed on your server (which should be the standard case). If you don't have it, please contact your hosting provider.
|
230 |
+
|
231 |
+
== Frequently Asked Questions ==
|
232 |
+
|
233 |
+
= Please also check the more comprehensive FAQ on http://ultimatelysocial.com/faq =
|
234 |
+
|
235 |
+
We will try to keep this FAQ section up-to-date, but please note that the latest version of the FAQ might be only available at http://ultimatelysocial.com/faq
|
236 |
+
|
237 |
+
= I face fundamental issues (the plugin doesn't load, social share buttons don't show etc.) =
|
238 |
+
|
239 |
+
Please ensure that:
|
240 |
+
|
241 |
+
- You're using the latest version of the plugin(s)
|
242 |
+
- Your site is running on PHP 5.4 or above
|
243 |
+
- You have CURL activated (should be activated by default)
|
244 |
+
|
245 |
+
If you're not familiar with those please contact your hosting company or server admin.
|
246 |
+
|
247 |
+
Please check if you have browser extensions activated which may conflict with the social share buttons. Known culprits include:
|
248 |
+
|
249 |
+
- Open SEO Stats (Formerly: PageRank Status) in Chrome
|
250 |
+
- Adblock Plus in Chrome
|
251 |
+
- Vine in Chrome
|
252 |
+
|
253 |
+
Either de-activate those extensions or try it in a different browser.
|
254 |
+
|
255 |
+
If the plugin setting's area looks 'funny' after an upgrade then please clear your cache with String+F5 (PC) or Command+R (Mac).
|
256 |
+
|
257 |
+
If you get the error message “Are you sure you want to do this? / Please try again” when uploading the plugin: Some servers may have a low limits with respect to permitted upload times. Please set the values in the “php.ini” file to:
|
258 |
+
|
259 |
+
max_execution_time 90
|
260 |
+
post_max_size 48M
|
261 |
+
|
262 |
+
If you don’t know how to do it, please contact your server support / hosting company for that. Tell them you need it for a sharing plugin on WordPress which may take longer to upload as many socialsharing buttons are included in it (larger file size).
|
263 |
+
|
264 |
+
If your issue is still not fixed after you’ve followed the steps above, we can provide support as part of our new share to social Premium Plugin: https://www.ultimatelysocial.com/usm-premium/.
|
265 |
+
|
266 |
+
= I get error messages 'Error : 7', 'Error : 56', 'Error : 6' etc. =
|
267 |
+
|
268 |
+
Those point to a CURL-issue on your site. Please contact your server admin or your hosting company to resolve it.
|
269 |
+
|
270 |
+
The plugin requires CURL for the social share counts and other features.
|
271 |
+
|
272 |
+
= Social share buttons don't show =
|
273 |
+
|
274 |
+
Please ensure you actually placed the social share buttons either as social widget (in your widget area) or as floating icons under question 5). The Premium Plugin makes placing sharing buttons especially easy and also allows you to place sticky buttons on your site, define the placement of the share buttons by margins and many other options, see https://www.ultimatelysocial.com/usm-premium/.
|
275 |
+
|
276 |
+
If only some social share buttons show, but not all, then please clear your cache, and check if you may have conflicting browser extensions (e.g. 'Disconnect'-app in Chrome). Also Ad-Blockers are known culprits, please switch them off temporarily to see if that is the reason.
|
277 |
+
|
278 |
+
If the social share buttons still don't show then there's an issue with your template. Please contact the creator of your template for that.
|
279 |
+
|
280 |
+
If you are referring to specific social share buttons not showing in the plugin itself (e.g. you're looking for a Whatsapp icon, but it doesnt exist) please note that our Premium Plugin has many more social media share buttons, see https://www.ultimatelysocial.com/usm-premium/
|
281 |
+
|
282 |
+
= Twitter share counters are not displaying (anymore) =
|
283 |
+
|
284 |
+
Unfortunately, Twitter stopped providing any social share counter. God knows why.
|
285 |
+
|
286 |
+
= Changes don't get saved / Deleted plugin but sharing buttons still show =
|
287 |
+
|
288 |
+
Most likely you have the WP Cache plugin installed. Please de-activate and then re-activate it.
|
289 |
+
|
290 |
+
= Links don't work =
|
291 |
+
|
292 |
+
Please ensure you've entered the 'http://' at the beginning of the url (for *all* social networks). If the share buttons are not clickable at all there is most likely an issue with your template. This is especially the case if you've given your social share buttons several features, which should show a pop-up (tooltip) when you move over the share buttons.
|
293 |
+
|
294 |
+
= I cannot upload social custom buttons =
|
295 |
+
|
296 |
+
Most likely that's because you've set 'allow_url_fopen' to 'off'. Please turn it to 'on' (or ask your server admin to do so, he'll know what to do. Tell them you need it to upload custom buttons for a social media buttons plugin which are not included yet).
|
297 |
+
|
298 |
+
= My Youtube button (direct follow) doesn't work =
|
299 |
+
|
300 |
+
Please ensure that you've selected the radio button 'Username' when you enter a youtube username, or 'Channel ID' when you entered a channel ID.
|
301 |
+
|
302 |
+
= Aligning the social share buttons (centered, left- or right-aligned) doesn't work =
|
303 |
+
|
304 |
+
The alignment options under question 5 align the sharing icons with respect to each other, not where they appear on the page. Our new Premium Plugin is the best social sharing plugin on the market, allowing you to define also many other button alignments (e.g. within a widget, within shortcode etc.).
|
305 |
+
|
306 |
+
= Clicking on the RSS button returns funny codes =
|
307 |
+
|
308 |
+
That's normal. RSS users will know what to do with it (i.e. copy & paste the url into their RSS readers).
|
309 |
+
|
310 |
+
= Facebook 'like'-count isn't correct =
|
311 |
+
|
312 |
+
When you 'like' something on your blog via facebook it likes the site you're currently on (e.g. your blog) and not your Facebook page.
|
313 |
+
|
314 |
+
The new Premium Plugin also allows to show the number of your Facebook page likes, see https://www.ultimatelysocial.com/usm-premium/.
|
315 |
+
|
316 |
+
= Sharing doesn't take the right text or picture =
|
317 |
+
|
318 |
+
We use the codes from Facebook, Google+ etc. and therefore don't have any influence over which text & pic is used for sharing.
|
319 |
+
|
320 |
+
Note that you can define an image as 'Featured Image' which tells Facebok / Google etc. to share that one. You'll find this 'Featured Image' section in your blog's admin area where you can edit your blog post.
|
321 |
+
|
322 |
+
You can crosscheck which image Facebook will share by entring your url on https://developers.facebook.com/tools/debug/og/object/.
|
323 |
+
|
324 |
+
= The pop-up shows although I only gave my social share button one share function =
|
325 |
+
|
326 |
+
The pop-up only disappears if you've given your sharing buttons only a 'visit us'-function, otherwise (e.g. if you gave it 'Like' (on facebook) or 'Tweet' functions or sharing functions) a pop-up is still needed because the share buttons for those are coming directly from the social media sites (e.g. Facebook, Twitter) and we don't have any influence over their design.
|
327 |
+
|
328 |
+
= I selected to display the social sharing buttons after every post but they don't show =
|
329 |
+
|
330 |
+
The social sharing buttons usually do show, however not on your blog page, but on your single posts pages. The Premium plugin (https://www.ultimatelysocial.com/usm-premium/) also allows to display the share buttons on your homepage.
|
331 |
+
|
332 |
+
= Plugin decreases my site's loading speed =
|
333 |
+
|
334 |
+
The plugin is one of the most optimized social media plugin in terms of impact on a site's loading speed (optimized code, compressed pictures etc.).
|
335 |
+
|
336 |
+
If you still experience loading speed issues, please note that:
|
337 |
+
|
338 |
+
- The more social sharing bottons and invite features you place on your site, the more external codes you load (i.e. from the social media sites; we just use their code), therefore impacting loading speed. So to prevent this, give your sharing buttons only 'Visit us'-functionality rather than sharing functionalities.
|
339 |
+
|
340 |
+
- We've programed it so that the code for the social media buttons is the one which loads lasts on your site, i.e. after all the other content has already been loaded. This means: even if there is a decrease in loading speed, it does not impact a user's experience because he sees your site as quickly as before, only the social media buttons take a bit longer to load.
|
341 |
+
|
342 |
+
There might be also other issues on your site which cause a high loading speed (e.g. conflicts with our plugins or template issues). Please ask your template creator about that.
|
343 |
+
|
344 |
+
Also, if you've uploaded social media sharing buttons not provided by the plugin itself (i.e. custom buttons) please ensure they are compressd as well.
|
345 |
+
|
346 |
+
= After moving from demo-server to live-server the follow or subscribe link doesn't work anymore =
|
347 |
+
|
348 |
+
Please delete and install the plugin again.
|
349 |
+
|
350 |
+
If you already placed the code for a subscription form on your site, remove it again and take the new one from the new plugin installation.
|
351 |
+
|
352 |
+
= When I try to like or share via Facebook, I get error message 'App Not Setup: This app is still...' =
|
353 |
+
|
354 |
+
If you get the error message...
|
355 |
+
|
356 |
+
'App Not Setup: This app is still in development mode, and you don't have access to it. Switch to a registered test user or ask an app admin for permissions.'
|
357 |
+
|
358 |
+
...then most likely you're curently logged in with a business account on Facebook. Please logout, or switch to your personal account.
|
359 |
+
|
360 |
+
= There are other issues when I activate the plugin or place the share buttons =
|
361 |
+
|
362 |
+
Please check the following:
|
363 |
+
|
364 |
+
The plugin requires that CURL is instaled & activated on your server (which should be the standard case). If you don't have it, please contact your hosting provider.
|
365 |
+
|
366 |
+
Please ensure that you don't have any browser extension activated which may conflict with the plugin, esp. those which block certain content including the share buttons. Known culprits include the 'Disconnect' extension in Chrome or the 'Privacy Badger' extension in Firefox.
|
367 |
+
|
368 |
+
If issues persist most likely your theme has issues which makes it incompatible with our plugin. Please contact your template creator for that. As part of the Premium Plugin (https://www.ultimatelysocial.com/usm-premium/) we fix also theme issues, and provide support to ensure that your social media share buttons appear on your site (exactly where you want them).
|
369 |
+
|
370 |
+
= How can I see how many people share or like my posts? =
|
371 |
+
|
372 |
+
You can see this by activating the sharnig 'counts' on the front end (under question 5 in the plugin). This will display the counters in little bubbles showing how often people share your posts.
|
373 |
+
|
374 |
+
We cannot provide you this data in other ways as it's coming directly from the social media sites. One exception: if you like to know when people start to follow you by email, then you can get email alerts. For that, please claim your feed.
|
375 |
+
|
376 |
+
= How can I change the 'Please follow & like us :)'? =
|
377 |
+
|
378 |
+
You can change it in the Widget-area where you dropped the widget with the sharing buttons on the sidebar. Please click on it (on the sidebar), it will open the menu where you can change the text.
|
379 |
+
|
380 |
+
If you don't want to show any text, just enter a space (' ').
|
381 |
+
|
382 |
+
= How can I remove the credit-link ('Powered by Ultimatelysocial')? =
|
383 |
+
|
384 |
+
Please note that we didn't place the credit link without your consent (you agreed to it when de-selecting the email button).
|
385 |
+
|
386 |
+
Open the first question in the plugin ('1. Which sharing buttons do you want to show on your site?'), on the level of the email button you see a link on the right hand side. Please click it to remove the credit link.
|
387 |
+
|
388 |
+
= Can I use a shortcode to place the share buttons? =
|
389 |
+
|
390 |
+
Yes, it's [DISPLAY_ULTIMATE_SOCIAL_ICONS]. You can place it into any editor. If the sharing buttons still don't show, there might be an issue with your theme.
|
391 |
+
|
392 |
+
Alternatively, you can place the followin into your codes: <?php echo do_shortcode('[DISPLAY_ULTIMATE_SOCIAL_ICONS]'); ?>
|
393 |
+
|
394 |
+
In some cases there might be issues to display social media sharing buttons which you uploaded as custom buttons. In this case, we provide support as part of our premium plugin: https://www.ultimatelysocial.com/usm-premium/
|
395 |
+
|
396 |
+
= Can I get more options for the social share buttons next to posts? =
|
397 |
+
|
398 |
+
Please use this plugin for that: https://www.ultimatelysocial.com/usm-premium/. This allows you to place more share buttons (e.g. including Linkedin) as well as giving you more configuration options.
|
399 |
+
|
400 |
+
= Can I also give the email button a 'mailto:' functionality? =
|
401 |
+
|
402 |
+
Yes, that is possible in our new social share plugin, the Premium Plugin: https://www.ultimatelysocial.com/usm-premium/
|
403 |
+
|
404 |
+
To get the email button in the same design style you picked, activate it, then on the front-end, rightclick on the button, and save it as picture. Upload that picture as custom button.
|
405 |
+
|
406 |
+
= Can I also display the share buttons vertically? =
|
407 |
+
|
408 |
+
Yes, that is possible in our new social sharing plugin, the Premium Plugn: https://www.ultimatelysocial.com/usm-premium/.
|
409 |
+
|
410 |
+
= How can I change the text on the 'visit us'-buttons? =
|
411 |
+
|
412 |
+
Use this plugin: https://www.ultimatelysocial.com/usm-premium/
|
413 |
+
|
414 |
+
= Can I deactivate the social sharing buttons on mobile? =
|
415 |
+
|
416 |
+
Yes, there's an option for that under question 5. In our new Premium Plugin you can define different settings of the share buttons for mobile, see https://www.ultimatelysocial.com/usm-premium/. The best way to share social media! :)
|
417 |
+
|
418 |
+
= How can I use two instances of the plugin on my site? =
|
419 |
+
|
420 |
+
You cannot use the same plugin twice, however you can install both the first USM plugin (https://wordpress.org/plugins/ultimate-social-media-icons/) as well as the Premiuem plugin (https://www.ultimatelysocial.com/usm-premium/). We've developed the code so that there are no conflicts and they can be used in parallel.
|
421 |
+
|
422 |
+
= Where can I find icons for more social media platforms? =
|
423 |
+
|
424 |
+
The premium plugin offrs many more social buttons from other social media platforms such as Snapchat, Whattsapp, Yelp, Sound cloud and many others. It's the best socialsharing plugin on the market :) Check it out at https://www.ultimatelysocial.com/usm-premium/
|
425 |
+
|
426 |
+
|
427 |
+
== Screenshots ==
|
428 |
+
|
429 |
+
1. After installing the plugin, you'll see this overview. You'll be taken through the easy-to-understand steps to configure your plugin
|
430 |
+
|
431 |
+
2. As a first step you select which icons you want to display on your website
|
432 |
+
|
433 |
+
3. Then you'll define what the icons should do (they can perform several actions, e.g. lead users to your facebook page, or allow them to share your content on their facebook page)
|
434 |
+
|
435 |
+
4. In a third step you decide where the icons should be placed: a.) via Widget, b.) Floating, c.) via Shortcode and/or d.) Before or after posts
|
436 |
+
|
437 |
+
5. You can pick from a wide range of social share icon designs
|
438 |
+
|
439 |
+
6. Here you can animate your main icons (automatic shuffling, mouse-over effects etc.), to make visitors of your site aware that they can share, follow & like your site
|
440 |
+
|
441 |
+
7. You can choose to display counts next to your icons (e.g. number of Twitter-followers)
|
442 |
+
|
443 |
+
8. There are many more options to choose from
|
444 |
+
|
445 |
+
9. You can also display a pop-up (designed to your liking) which asks users to like & share your site
|
446 |
+
|
447 |
+
|
448 |
+
== Changelog ==
|
449 |
+
= 3.2.5 =
|
450 |
+
* Update: Q4 missing images corrected.
|
451 |
+
|
452 |
+
= 3.2.4 =
|
453 |
+
* Update: Text changes.
|
454 |
+
* Update: Solved widget alignments.
|
455 |
+
* Update: Solved php errors.
|
456 |
+
|
457 |
+
= 3.2.3 =
|
458 |
+
* Update: Text changes.
|
459 |
+
* Update: Link for email and action for subscription when request fails.
|
460 |
+
|
461 |
+
|
462 |
+
= 3.2.2 =
|
463 |
+
* Update: Feedback system updated
|
464 |
+
|
465 |
+
= 3.2.1 =
|
466 |
+
* Update: Feedback system updated
|
467 |
+
|
468 |
+
= 3.2.0 =
|
469 |
+
* Update: SDK.
|
470 |
+
* Update: Grammer Errors.
|
471 |
+
|
472 |
+
= 3.1.9 =
|
473 |
+
* Update: Responsive icons options display logic corrected.
|
474 |
+
* Update: Twitter and other external js inclusion logic updated.
|
475 |
+
* Solved: Cancel button on banner reapplied.
|
476 |
+
* Solved: Validation for section 2 options while section 1 options are checked but not saved corrected.
|
477 |
+
* Update: Feedback system updated
|
478 |
+
|
479 |
+
= 3.1.8 =
|
480 |
+
* New Feature: Responsive icons in the plugin.
|
481 |
+
* Solved: Icons not rendering on woocomerce product page.
|
482 |
+
* Solved: Stop loading unused external library code for faster load.
|
483 |
+
* Solved: Updated feedback system to next version.
|
484 |
+
|
485 |
+
= 3.1.7 =
|
486 |
+
* Update: Feedback system added
|
487 |
+
|
488 |
+
= 3.1.6 =
|
489 |
+
* Update: Removed google icon.
|
490 |
+
* Update: Nonce error in Q6 preview language icons
|
491 |
+
|
492 |
+
= 3.1.5 =
|
493 |
+
* Update: Corrected typos
|
494 |
+
* Update: Updated theme suggestion data
|
495 |
+
* Update: Removed Curl error
|
496 |
+
* Update: Fixed Facebook and Twitter icons not working on some pages
|
497 |
+
* Update: Removed w3 validation errors
|
498 |
+
* Update: Removed googleplus icon
|
499 |
+
|
500 |
+
= 3.1.4 =
|
501 |
+
* Update: Solved the Undefined Notice messages.
|
502 |
+
|
503 |
+
= 3.1.3 =
|
504 |
+
* Update: Google plus like removed
|
505 |
+
* Update: Extra debug log removed
|
506 |
+
* Update: Screencast video removed
|
507 |
+
* Update: more icons included.
|
508 |
+
* Update: White background from icons removed.
|
509 |
+
|
510 |
+
= 3.1.2 =
|
511 |
+
* Update: updated the new added icons.
|
512 |
+
* Update: optimized the extraicons of premium shown to the plugin.
|
513 |
+
|
514 |
+
= 3.1.1 =
|
515 |
+
* Update: removed unwanted files.
|
516 |
+
* Update: included skins for wechat icons.
|
517 |
+
* Update: Custom skin for newly added icons.
|
518 |
+
* Update: Compatablity Errors corrected.
|
519 |
+
|
520 |
+
= 3.1.0 =
|
521 |
+
* New Feature: New icons Implemented.
|
522 |
+
* Update: Alert for checkbox conflict.
|
523 |
+
* Update: Cron implemented for rss count.
|
524 |
+
* Update: Custom icons not showing solved.
|
525 |
+
|
526 |
+
|
527 |
+
= 3.0.9 =
|
528 |
+
* Update: Woocommerce resolved conflict resulted in other conflicts - fixed.
|
529 |
+
|
530 |
+
= 3.0.8 =
|
531 |
+
* Update: Critical Security Patch.
|
532 |
+
* Update: Resolved Conflict with woocommerce auto update.
|
533 |
+
|
534 |
+
= 3.0.7 =
|
535 |
+
* Update: Security Patch.
|
536 |
+
|
537 |
+
= 3.0.6 =
|
538 |
+
* Update: security update.
|
539 |
+
* Update: save button not working.
|
540 |
+
|
541 |
+
= 3.0.5 =
|
542 |
+
* Update: Theme cheker dom error updated.
|
543 |
+
* Update: Deprecated Google plus
|
544 |
+
* Updated: css changes to make icons more symetric.
|
545 |
+
|
546 |
+
= 3.0.4 =
|
547 |
+
* Updated: Security patch in freemius.
|
548 |
+
|
549 |
+
= 3.0.3 =
|
550 |
+
* Update: solved Undefined constant notice resolved.
|
551 |
+
* Update: offline chat email validation added.
|
552 |
+
* Update: ROUND SHORTCODE sharing error solved.
|
553 |
+
* Update: curl errors in backend solved.
|
554 |
+
* Update: ajax_object conflict solved and updated sfsi_plus_ajax.
|
555 |
+
|
556 |
+
= 3.0.2 =
|
557 |
+
* Update: Conflict solved.
|
558 |
+
|
559 |
+
= 3.0.1 =
|
560 |
+
* Update: design changes in gutenberg.
|
561 |
+
* Update: Dashboard chat updated.
|
562 |
+
* Update: Security updates.
|
563 |
+
|
564 |
+
= 3.0.0 =
|
565 |
+
* Update: Updated gutenberg block to incorporate current changes. Added support for multiple controls on block inspector controls.
|
566 |
+
* update: In-admin-pannel chat updated for more user friendly features.
|
567 |
+
|
568 |
+
= 2.9.9 =
|
569 |
+
* Duplicate IDs removed from icon's link
|
570 |
+
* Facebook share counts (rectangle icons) do not show
|
571 |
+
* specificfeeds.com links changed to https
|
572 |
+
* Remove google like
|
573 |
+
* Click on G+ in firefox opens a new window
|
574 |
+
|
575 |
+
= 2.9.8 =
|
576 |
+
* Update: Display counts can’t be manually updated
|
577 |
+
|
578 |
+
= 2.9.7 =
|
579 |
+
* New Feature: Direct chat added to the plugins settings page.
|
580 |
+
|
581 |
+
= 2.9.6 =
|
582 |
+
* Image not showing error fixed for banner in animation section in Question 4 added
|
583 |
+
|
584 |
+
= 2.9.5 =
|
585 |
+
* Lightbox removed after click on de-activation of plugin
|
586 |
+
* Banner for animation section in Question 4 added
|
587 |
+
* Different icon for mouseover section pointing in premium in Question 4 added
|
588 |
+
* Removed theme icon banner if no match
|
589 |
+
|
590 |
+
= 2.9.4 =
|
591 |
+
* Optimized footer
|
592 |
+
|
593 |
+
= 2.9.3 =
|
594 |
+
* Fixed Gutenberg issues which arose for old PHP versions
|
595 |
+
* Removed Addthis due to GDPR compliance issues
|
596 |
+
|
597 |
+
= 2.9.2 =
|
598 |
+
* Issue fixed that click on dismiss for banner didn't dismiss it permanently
|
599 |
+
* Gutenberg implemented
|
600 |
+
|
601 |
+
= 2.9.1 =
|
602 |
+
* Count Error for newer PHP version fixed
|
603 |
+
|
604 |
+
= 2.9.0 =
|
605 |
+
* Count Error shown for newer php versions fixed.
|
606 |
+
|
607 |
+
= 2.8.9 =
|
608 |
+
* Language in Question 6 not saving issue fixed
|
609 |
+
|
610 |
+
= 2.8.8 =
|
611 |
+
* Optimized code for setting value for "adding_plustags" which caused issues on some sites
|
612 |
+
|
613 |
+
= 2.8.7 =
|
614 |
+
* Various instructions optimized
|
615 |
+
|
616 |
+
= 2.8.5 =
|
617 |
+
* Cookies don't get set anymore if selected to show pop-up when user scrolls to end of page (relevant for GDPR compliance)
|
618 |
+
|
619 |
+
= 2.8.4 =
|
620 |
+
* Like count issue fixed
|
621 |
+
* Youtube subscribe issue fixed
|
622 |
+
|
623 |
+
= 2.8.3 =
|
624 |
+
* Instagram followers count issue fixed
|
625 |
+
* Twitter count issue fixed
|
626 |
+
* Facebook share count issue fixed
|
627 |
+
|
628 |
+
= 2.8.2 =
|
629 |
+
* Non-numeric value errors fixed
|
630 |
+
|
631 |
+
= 2.8.0 =
|
632 |
+
* Removed error log files
|
633 |
+
* Follow icon sometimes showed too large - fixed
|
634 |
+
|
635 |
+
= 2.7.9 =
|
636 |
+
* Linkedin-counter after posts corrected
|
637 |
+
|
638 |
+
= 2.7.8 =
|
639 |
+
* Text changes
|
640 |
+
|
641 |
+
= 2.7.7 =
|
642 |
+
* New question for referring added
|
643 |
+
|
644 |
+
= 2.7.6 =
|
645 |
+
* Saving links for custom icons sometimes didn't work. Fixed now.
|
646 |
+
|
647 |
+
= 2.7.5 =
|
648 |
+
* Links updated
|
649 |
+
|
650 |
+
= 2.7.4 =
|
651 |
+
* Themed icons notification optimized
|
652 |
+
|
653 |
+
= 2.7.3 =
|
654 |
+
* Important bug fixed (which caused fatal error on sites with PHP version below 5.5. and sensitive error reporting on server)
|
655 |
+
|
656 |
+
= 2.7.2 =
|
657 |
+
* Banners modified
|
658 |
+
* Spelling mistakes corrected
|
659 |
+
|
660 |
+
= 2.7.1 =
|
661 |
+
* Added more themed icons banners
|
662 |
+
|
663 |
+
= 2.7.0 =
|
664 |
+
* There were conflicts when both free USM plugins were installed at the same time, those are now resolved
|
665 |
+
|
666 |
+
= 2.6.9 =
|
667 |
+
* Notification for possibility to define sharing text and pic added
|
668 |
+
|
669 |
+
= 2.6.8 =
|
670 |
+
* Link to full list of premium icons added
|
671 |
+
|
672 |
+
= 2.6.7 =
|
673 |
+
* Info added that url shortener is available in premium plugin
|
674 |
+
* Non numeric value warning fixed
|
675 |
+
* Templates with no head issue fixed
|
676 |
+
|
677 |
+
= 2.6.6 =
|
678 |
+
* Incorrect error messages removed
|
679 |
+
* Better formatting of socialshare review bar
|
680 |
+
|
681 |
+
= 2.6.5 =
|
682 |
+
* Updated so that also widget data gets removed when you de-install the plugin, so now everything is completely removed
|
683 |
+
|
684 |
+
= 2.6.4 =
|
685 |
+
* New CURL error messages to point better to the specific issue
|
686 |
+
* Error message if user is using outdated PHP version
|
687 |
+
* "Mandatory" removed from email and rss icons
|
688 |
+
* Freemius Error (uninstall hook error) fixed
|
689 |
+
* Icons not underlined anymore (was a conflict with certain themes such as twentyseventeen)
|
690 |
+
* Js removed after de-activating the icons
|
691 |
+
* Freemius image added
|
692 |
+
* After activation of plugin you're directly taken to the plugin's settings page
|
693 |
+
|
694 |
+
= 2.6.3 =
|
695 |
+
* Fremius analytics implemented
|
696 |
+
|
697 |
+
= 2.6.2 =
|
698 |
+
* More strings made translation-ready
|
699 |
+
* Better claiming of feed enabled
|
700 |
+
|
701 |
+
= 2.6.1 =
|
702 |
+
* Issue with Instagram button counters fixed
|
703 |
+
|
704 |
+
= 2.5.9 =
|
705 |
+
* Issue fixed that sometimes incorrect error-messages showed on front-end
|
706 |
+
* Credit link updated
|
707 |
+
* More icons added for pro-version
|
708 |
+
* SpecificFeeds adjusted for paid option
|
709 |
+
* De-installation will now clear database entirely
|
710 |
+
* Upgrade to pro-link renamed
|
711 |
+
|
712 |
+
= 2.5.7 =
|
713 |
+
* New option for tailor-made icons
|
714 |
+
|
715 |
+
= 2.5.6 =
|
716 |
+
* Activation/de-activation links optimized
|
717 |
+
|
718 |
+
= 2.5.5 =
|
719 |
+
* Notifications activated
|
720 |
+
|
721 |
+
= 2.5.4 =
|
722 |
+
* Notifications revised
|
723 |
+
|
724 |
+
= 2.5.3 =
|
725 |
+
* Notification added
|
726 |
+
|
727 |
+
= 2.5.1 =
|
728 |
+
* Instructions for troubleshooting optimized
|
729 |
+
|
730 |
+
= 2.5.0 =
|
731 |
+
* Facebook icon leading to empty pages (in specific cases) fixed
|
732 |
+
|
733 |
+
= 2.4.9 =
|
734 |
+
* Twitter sharing text issues with forwarded slashes fixed
|
735 |
+
* Links to review sites adjusted following Wordpress changes in review section
|
736 |
+
|
737 |
+
= 2.4.7 =
|
738 |
+
* Missing counts for email follow option fixed (when there are no subscribers yet)
|
739 |
+
* Extra explanation text added
|
740 |
+
|
741 |
+
= 2.4.6 =
|
742 |
+
* Corner case vulnerability fixed
|
743 |
+
|
744 |
+
= 2.4.5 =
|
745 |
+
* Claiming box made nicer
|
746 |
+
|
747 |
+
= 2.4.4 =
|
748 |
+
* Updated PIN-it button to SAVE
|
749 |
+
* Claiming process simplified
|
750 |
+
|
751 |
+
= 2.4.3 =
|
752 |
+
* jQuery issue fixed
|
753 |
+
* Counts for SpecificFeeds-subscribers are back, getting updated once a day
|
754 |
+
* Some mouse-over issues for custom icons, fixed now
|
755 |
+
|
756 |
+
= 2.4.2 =
|
757 |
+
* Cute G+ icon didn't look good on dark backgrounds, fixed now
|
758 |
+
* Counts for SpecificFeeds-subscribers disabled due to high server load. We'll try to bring them back in a future plugin version.
|
759 |
+
|
760 |
+
= 2.4.1 =
|
761 |
+
* Size of custom icons corrected
|
762 |
+
* Cute G+ icon too small before, corrected now
|
763 |
+
* Better description how to get G+ API key added
|
764 |
+
* Unsupported "live" function in jquery fixed
|
765 |
+
|
766 |
+
= 2.3.9 =
|
767 |
+
* Language issues fixed
|
768 |
+
* Counter didn't disappear before/after posts if round icons were selected - fixed now
|
769 |
+
|
770 |
+
= 2.3.8 =
|
771 |
+
* Language folder added
|
772 |
+
* Persian added as first language
|
773 |
+
* For round icons before/after posts, the counts now correctly show the counts of the post page, not necessarily the page they are on
|
774 |
+
|
775 |
+
= 2.3.7 =
|
776 |
+
* Translation errors fixed
|
777 |
+
|
778 |
+
= 2.3.6 =
|
779 |
+
* Translation errors fixed
|
780 |
+
* Icons sometimes on top of each other - fixed
|
781 |
+
* New icon function: If user has given the icon a visit-us functionality, then it already works now when clicking on the icon (i.e. no selection in tooltip required)
|
782 |
+
|
783 |
+
= 2.3.5 =
|
784 |
+
* Errors appearing on front end fixed
|
785 |
+
|
786 |
+
= 2.3.4 =
|
787 |
+
* Plugin updated for translations
|
788 |
+
* E-NOTICE error fixed
|
789 |
+
|
790 |
+
= 2.3.3 =
|
791 |
+
* Removed the js files from plugin and using the ones provided by WP now
|
792 |
+
* POST calls optimized (sanitize, escape, validate)
|
793 |
+
* Removed feedback option
|
794 |
+
* Tags changed
|
795 |
+
|
796 |
+
= 2.3.2 =
|
797 |
+
* Feedback mechanism disabled
|
798 |
+
* Tags reduced
|
799 |
+
|
800 |
+
= 2.3.1 =
|
801 |
+
* Added Facebook share button after/before posts
|
802 |
+
* G+ design issues on black background fixed
|
803 |
+
|
804 |
+
= 2.2.9 =
|
805 |
+
* Crashes/content disappearing fixed
|
806 |
+
|
807 |
+
= 2.2.7 =
|
808 |
+
* Overkill declaration in the CSS fixed
|
809 |
+
* Custom icons can now have mailto:-functionality
|
810 |
+
* jQuery UI issues fixed
|
811 |
+
* Rectangle G+ icon now shown as last one as it takes more space (looks better)
|
812 |
+
|
813 |
+
= 2.2.6 =
|
814 |
+
* jQuery issues/conflicts fixed
|
815 |
+
* Script issues fixed
|
816 |
+
* Count issues for icons on homepage fixed
|
817 |
+
* Text added on plugin setting's page for easier understanding
|
818 |
+
* Issue that dashboard sometimes doesn't load fixed
|
819 |
+
* Instagram thin-icon issue fixed (misspelled, therefore didn't show)
|
820 |
+
* Custom icon uploads optimized
|
821 |
+
|
822 |
+
= 2.2.5 =
|
823 |
+
* Facebook changed their API - please upgrade if you want Facebook sharing on mobile to work properly on your site!
|
824 |
+
|
825 |
+
= 2.2.4 =
|
826 |
+
* Custom icon uploads optimized
|
827 |
+
|
828 |
+
= 2.2.3 =
|
829 |
+
* Houzz error message fixed
|
830 |
+
|
831 |
+
= 2.2.2 =
|
832 |
+
* Plugin made ready for translations
|
833 |
+
|
834 |
+
= 2.2.1 =
|
835 |
+
* Feed claiming optimized
|
836 |
+
|
837 |
+
= 2.2 =
|
838 |
+
* Shortpixel link updated
|
839 |
+
|
840 |
+
= 2.1 =
|
841 |
+
* Feed claiming bug fixed
|
842 |
+
|
843 |
+
= 2.0 =
|
844 |
+
* Houzz-button integrated
|
845 |
+
* New G+ button updated
|
846 |
+
* Quicker claiming of feed possible
|
847 |
+
* Comments to share-button added
|
848 |
+
* Credit to shortpixel added
|
849 |
+
|
850 |
+
= 1.9 =
|
851 |
+
* New feature: Users can now decide where exactly the floating icons will display
|
852 |
+
* Internal links corrected
|
853 |
+
* Fixed: Targets only labels within the social icons div.
|
854 |
+
* Subscriber counts fixed
|
855 |
+
* Apostrophe issues fixed
|
856 |
+
* Conflicts with Yoast SEO plugin resolved
|
857 |
+
* PHP errors fixed
|
858 |
+
|
859 |
+
= 1.8 =
|
860 |
+
* Plugin also allows a subscription form now (question 8)!
|
861 |
+
|
862 |
+
= 1.7 =
|
863 |
+
* Count issues fixed - please upgrade!
|
864 |
+
* Style constructor updated to PHP 5
|
865 |
+
* Text adjustments in admin area
|
866 |
+
|
867 |
+
= 1.6 =
|
868 |
+
* More explanations added how to fix if counts don't work
|
869 |
+
* Icon files are compressed now for faster loading - thank you ShortPixel.com!
|
870 |
+
* A typo in the code threw an error message in certain cases, this is fixed now
|
871 |
+
|
872 |
+
= 1.5 =
|
873 |
+
* jQuery issues fixed
|
874 |
+
* Vulnerability issues fixed
|
875 |
+
* Twitter-button didn't get displayed in full sometimes, this is fixed now
|
876 |
+
* CSS issues (occurred on some templates) fixed
|
877 |
+
* Facebook updated API (so counts didn't get displayed correctly anymore), we updated the plugin accordingly
|
878 |
+
* Sometimes error messages appeared on the front end, this is fixed now
|
879 |
+
|
880 |
+
= 1.4 =
|
881 |
+
* New follow-icons added
|
882 |
+
* More "rectangle" icons added before/after posts
|
883 |
+
* Widget was rendered incorrectly on some templates, fixed now
|
884 |
+
* Icons didn't always line up (on some themes), fixed now
|
885 |
+
* Youtube API got changed, which made the counts not displayed correctly, this is now adjusted in the plugin
|
886 |
+
* Slight layout adjustments in plugin's admin area
|
887 |
+
|
888 |
+
|
889 |
+
= 1.3 =
|
890 |
+
* Links with "@" in the url (e.g. as in Flickr-links) now get recognized as well
|
891 |
+
* Alignment issues of icons in tooltip fixed
|
892 |
+
* Layout optimizations in plugin area
|
893 |
+
* Users can now select to have the number of likes of their facebook page displayed as counts of the facebook icon on their blogs
|
894 |
+
* Typos in admin area corrected
|
895 |
+
* Users can now disable auto-scaling feature for mobile devices ("viewport" meta tag)
|
896 |
+
|
897 |
+
= 1.2 =
|
898 |
+
* Vulnerabilities (AJAX) fixed
|
899 |
+
* OG-issues (caused in conjunction with other plugins) fixed
|
900 |
+
|
901 |
+
= 1.1 =
|
902 |
+
* Og-issues fixed
|
903 |
+
* Conflicts with Yoast SEO plugin sorted
|
904 |
+
* Alignments under posts didn't work sometimes before, fixed now
|
905 |
+
* When user selected icons to shuffle pop-up didn't show up, fixed now
|
906 |
+
* Short code corrected
|
907 |
+
* On some templates the checkboxes in the admin area couldn't get selected, fixed now
|
908 |
+
* Links now to the correct review screen
|
909 |
+
* Share-box only displayed partly sometimes, fixed now
|
910 |
+
* When sharing from a Facebook business page it returned errors, this should be fixed now (to be observed)
|
911 |
+
* Sometimes facebook share count didn't increase despite liking it, this should be fixed now (to be observed)
|
912 |
+
* Template CSS conflicts solved in the plugin
|
913 |
+
* Facebook sharing text issues fixed
|
914 |
+
|
915 |
+
= 1.0 =
|
916 |
+
* First release
|
917 |
+
|
918 |
+
== Upgrade Notice ==
|
919 |
+
|
920 |
+
= 3.2.5 =
|
921 |
* Please update
|
ultimate_social_media_icons.php
CHANGED
@@ -1,1372 +1,1372 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Ultimate Social Media PLUS
|
4 |
-
Plugin URI: http://socialshare.pro/
|
5 |
-
Description: The best social media plugin on the market. And 100% FREE. Allows you to add social media & share icons to your blog (esp. Facebook, Twitter, Email, RSS, Pinterest, Instagram, LinkedIn, Share-button). It offers a wide range of design options and other features.
|
6 |
-
Author: social share pro
|
7 |
-
Text Domain: ultimate-social-media-plus
|
8 |
-
Domain Path: /languages
|
9 |
-
Author URI: http://socialshare.pro/
|
10 |
-
Version: 3.2.
|
11 |
-
License: GPLv2
|
12 |
-
*/
|
13 |
-
|
14 |
-
sfsi_plus_error_reporting();
|
15 |
-
|
16 |
-
require_once 'analyst/main.php';
|
17 |
-
|
18 |
-
analyst_init(array(
|
19 |
-
'client-id' => 'w6l8b75dy5qkv9ze',
|
20 |
-
'client-secret' => '39db55426579986bb6c79c6d94aa6ab82b67f9f5',
|
21 |
-
'base-dir' => __FILE__
|
22 |
-
));
|
23 |
-
|
24 |
-
global $wpdb;
|
25 |
-
/* define the Root for URL and Document */
|
26 |
-
|
27 |
-
|
28 |
-
// Create a helper function for easy SDK access.
|
29 |
-
function sfsi_plus_freemius()
|
30 |
-
{
|
31 |
-
global $usmp_fs;
|
32 |
-
|
33 |
-
if (!isset($usmp_fs)) {
|
34 |
-
// Include Freemius SDK.
|
35 |
-
require_once dirname(__FILE__) . '/freemius/start.php';
|
36 |
-
|
37 |
-
$usmp_fs = fs_dynamic_init(array(
|
38 |
-
'id' => '1046',
|
39 |
-
'slug' => 'ultimate-social-media-plus',
|
40 |
-
'type' => 'plugin',
|
41 |
-
'public_key' => 'pk_716f722d8ecd3d70a5c60177306c1',
|
42 |
-
'is_premium' => false,
|
43 |
-
'has_addons' => false,
|
44 |
-
'has_paid_plans' => false,
|
45 |
-
'menu' => array(
|
46 |
-
'slug' => 'sfsi-plus-options',
|
47 |
-
'account' => false,
|
48 |
-
'support' => false,
|
49 |
-
),
|
50 |
-
));
|
51 |
-
}
|
52 |
-
|
53 |
-
return $usmp_fs;
|
54 |
-
}
|
55 |
-
|
56 |
-
// Init Freemius.
|
57 |
-
// sfsi_plus_freemius();
|
58 |
-
// sfsi_plus_freemius()->add_action('after_uninstall', 'sfsi_plus_Unistall_plugin');
|
59 |
-
|
60 |
-
// Signal that SDK was initiated.
|
61 |
-
//do_action('usmp_fs_loaded');
|
62 |
-
|
63 |
-
define('SFSI_PLUS_DOCROOT', dirname(__FILE__));
|
64 |
-
// define('SFSI_PLUS_PLUGURL', plugin_dir_url(__FILE__));
|
65 |
-
define('SFSI_PLUS_PLUGURL', site_url() . '/wp-content/plugins/ultimate-social-media-plus/');
|
66 |
-
define('SFSI_PLUS_WEBROOT', str_replace(getcwd(), home_url(), dirname(__FILE__)));
|
67 |
-
define('SFSI_PLUS_DOMAIN', 'ultimate-social-media-plus');
|
68 |
-
define('SFSI_PLUS_SUPPORT_FORM', 'https://goo.gl/jySrSF');
|
69 |
-
|
70 |
-
$wp_upload_dir = wp_upload_dir();
|
71 |
-
define('SFSI_PLUS_UPLOAD_DIR_BASEURL', trailingslashit($wp_upload_dir['baseurl']));
|
72 |
-
|
73 |
-
|
74 |
-
define('SFSI_PLUS_ALLICONS', serialize(array(
|
75 |
-
"rss", "email", "facebook", "twitter", "youtube", "linkedin",
|
76 |
-
"pinterest", "instagram", "houzz", "ok", "telegram", "vk", "weibo", "wechat"
|
77 |
-
)));
|
78 |
-
|
79 |
-
function sfsi_plus_get_current_url()
|
80 |
-
{
|
81 |
-
global $post, $wp;
|
82 |
-
|
83 |
-
if (!empty($wp)) {
|
84 |
-
return home_url(add_query_arg(array(), $wp->request));
|
85 |
-
} elseif (!empty($post)) {
|
86 |
-
return get_permalink($post->ID);
|
87 |
-
} else {
|
88 |
-
return site_url();
|
89 |
-
}
|
90 |
-
}
|
91 |
-
|
92 |
-
/* load all files */
|
93 |
-
include(SFSI_PLUS_DOCROOT . '/helpers/common_helper.php');
|
94 |
-
include(SFSI_PLUS_DOCROOT . '/libs/controllers/sfsi_socialhelper.php');
|
95 |
-
include(SFSI_PLUS_DOCROOT . '/libs/controllers/sfsi_class_theme_check.php');
|
96 |
-
include(SFSI_PLUS_DOCROOT . '/libs/sfsi_install_uninstall.php');
|
97 |
-
include(SFSI_PLUS_DOCROOT . '/libs/controllers/sfsi_buttons_controller.php');
|
98 |
-
include(SFSI_PLUS_DOCROOT . '/libs/controllers/sfsi_iconsUpload_contoller.php');
|
99 |
-
include(SFSI_PLUS_DOCROOT . '/libs/sfsi_Init_JqueryCss.php');
|
100 |
-
include(SFSI_PLUS_DOCROOT . '/libs/controllers/sfsi_floater_icons.php');
|
101 |
-
include(SFSI_PLUS_DOCROOT . '/libs/controllers/sfsiocns_OnPosts.php');
|
102 |
-
include(SFSI_PLUS_DOCROOT . '/libs/sfsi_widget.php');
|
103 |
-
include(SFSI_PLUS_DOCROOT . '/libs/sfsi_plus_subscribe_widget.php');
|
104 |
-
include(SFSI_PLUS_DOCROOT . '/libs/sfsi_custom_social_sharing_data.php');
|
105 |
-
include(SFSI_PLUS_DOCROOT . '/libs/sfsi_ajax_social_sharing_settings_updater.php');
|
106 |
-
include(SFSI_PLUS_DOCROOT . '/libs/sfsi_gutenberg_block.php');
|
107 |
-
|
108 |
-
/* plugin install and uninstall hooks */
|
109 |
-
register_activation_hook(__FILE__, 'sfsi_plus_activate_plugin');
|
110 |
-
register_deactivation_hook(__FILE__, 'sfsi_plus_deactivate_plugin');
|
111 |
-
//register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
|
112 |
-
|
113 |
-
/*Plugin version setup*/
|
114 |
-
if (!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 3.
|
115 |
-
add_action("init", "sfsi_plus_update_plugin");
|
116 |
-
}
|
117 |
-
|
118 |
-
//************************************** Setting error reporting STARTS ****************************************//
|
119 |
-
|
120 |
-
function sfsi_plus_error_reporting()
|
121 |
-
{
|
122 |
-
|
123 |
-
$option5 = unserialize(get_option('sfsi_plus_section5_options', false));
|
124 |
-
|
125 |
-
if (
|
126 |
-
isset($option5['sfsi_pplus_icons_suppress_errors'])
|
127 |
-
|
128 |
-
&& !empty($option5['sfsi_pplus_icons_suppress_errors'])
|
129 |
-
|
130 |
-
&& "yes" == $option5['sfsi_pplus_icons_suppress_errors']
|
131 |
-
) {
|
132 |
-
|
133 |
-
error_reporting(0);
|
134 |
-
}
|
135 |
-
}
|
136 |
-
|
137 |
-
//************************************** Setting error reporting CLOSES ****************************************//
|
138 |
-
|
139 |
-
//shortcode for the ultimate social icons {Monad}
|
140 |
-
add_shortcode("DISPLAY_ULTIMATE_PLUS", "DISPLAY_ULTIMATE_PLUS");
|
141 |
-
function DISPLAY_ULTIMATE_PLUS($args = null, $content = null, $share_url = null)
|
142 |
-
{
|
143 |
-
if ("DISPLAY_ULTIMATE_PLUS" === $share_url) {
|
144 |
-
$share_url = null;
|
145 |
-
}
|
146 |
-
$instance = array("showf" => 1, "title" => '');
|
147 |
-
$sfsi_plus_section8_options = get_option("sfsi_plus_section8_options");
|
148 |
-
$sfsi_plus_section8_options = unserialize($sfsi_plus_section8_options);
|
149 |
-
$sfsi_plus_place_item_manually = $sfsi_plus_section8_options['sfsi_plus_place_item_manually'];
|
150 |
-
if ($sfsi_plus_place_item_manually == "yes") {
|
151 |
-
$return = '';
|
152 |
-
if (!isset($before_widget)) : $before_widget = '';
|
153 |
-
endif;
|
154 |
-
if (!isset($after_widget)) : $after_widget = '';
|
155 |
-
endif;
|
156 |
-
|
157 |
-
/*Our variables from the widget settings. */
|
158 |
-
$title = apply_filters('widget_title', $instance['title']);
|
159 |
-
$show_info = isset($instance['show_info']) ? $instance['show_info'] : false;
|
160 |
-
global $is_floter;
|
161 |
-
$return .= $before_widget;
|
162 |
-
/* Display the widget title */
|
163 |
-
if ($title) $return .= $before_title . $title . $after_title;
|
164 |
-
$return .= '<div class="sfsi_plus_widget">';
|
165 |
-
$return .= '<div id="sfsi_plus_wDiv"></div>';
|
166 |
-
/* Link the main icons function */
|
167 |
-
$return .= sfsi_plus_check_visiblity(0, $share_url);
|
168 |
-
$return .= '<div style="clear: both;"></div>';
|
169 |
-
$return .= '</div>';
|
170 |
-
$return .= $after_widget;
|
171 |
-
return $return;
|
172 |
-
} else {
|
173 |
-
return __('Kindly go to setting page and check the option "Place them manually"', SFSI_PLUS_DOMAIN);
|
174 |
-
}
|
175 |
-
}
|
176 |
-
//adding some meta tags for facebook news feed
|
177 |
-
function sfsi_plus_checkmetas()
|
178 |
-
{
|
179 |
-
$adding_plustags = "yes";
|
180 |
-
|
181 |
-
if (!function_exists('get_plugins')) {
|
182 |
-
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
183 |
-
}
|
184 |
-
|
185 |
-
$all_plugins = get_plugins();
|
186 |
-
|
187 |
-
foreach ($all_plugins as $key => $plugin) :
|
188 |
-
|
189 |
-
if (is_plugin_active($key)) :
|
190 |
-
|
191 |
-
if (preg_match("/(seo|search engine optimization|meta tag|open graph|opengraph|og tag|ogtag)/im", $plugin['Name']) || preg_match("/(seo|search engine optimization|meta tag|open graph|opengraph|og tag|ogtag)/im", $plugin['Description'])) {
|
192 |
-
$adding_plustags = "no";
|
193 |
-
break;
|
194 |
-
}
|
195 |
-
|
196 |
-
endif;
|
197 |
-
|
198 |
-
endforeach;
|
199 |
-
|
200 |
-
update_option('adding_plustags', $adding_plustags);
|
201 |
-
}
|
202 |
-
|
203 |
-
if (is_admin()) {
|
204 |
-
// sfsi_plus_checkmetas();
|
205 |
-
add_action('after_setup_theme', 'sfsi_plus_checkmetas');
|
206 |
-
}
|
207 |
-
|
208 |
-
add_action('wp_head', 'ultimateplusfbmetatags');
|
209 |
-
function ultimateplusfbmetatags()
|
210 |
-
{
|
211 |
-
$metarequest = get_option("adding_plustags");
|
212 |
-
$post_id = get_the_ID();
|
213 |
-
|
214 |
-
$feed_id = sanitize_text_field(get_option('sfsi_plus_feed_id'));
|
215 |
-
$verification_code = get_option('sfsi_plus_verificatiom_code');
|
216 |
-
if (!empty($feed_id) && !empty($verification_code) && $verification_code != "no") {
|
217 |
-
echo '<meta name="specificfeeds-verification-code-' . $feed_id . '" content="' . $verification_code . '"/>';
|
218 |
-
}
|
219 |
-
|
220 |
-
if ($metarequest == 'yes' && !empty($post_id)) {
|
221 |
-
$post = get_post($post_id);
|
222 |
-
$attachment_id = get_post_thumbnail_id($post_id);
|
223 |
-
$title = str_replace('"', "", strip_tags(get_the_title($post_id)));
|
224 |
-
$description = $post->post_content;
|
225 |
-
$description = str_replace('"', "", strip_tags($description));
|
226 |
-
$url = get_permalink($post_id);
|
227 |
-
|
228 |
-
//checking for disabling viewport meta tag
|
229 |
-
$option5 = unserialize(get_option('sfsi_plus_section5_options', false));
|
230 |
-
if (isset($option5['sfsi_plus_disable_viewport'])) {
|
231 |
-
$sfsi_plus_disable_viewport = $option5['sfsi_plus_disable_viewport'];
|
232 |
-
} else {
|
233 |
-
$sfsi_plus_disable_viewport = 'no';
|
234 |
-
}
|
235 |
-
if ($sfsi_plus_disable_viewport == 'no') {
|
236 |
-
echo ' <meta name="viewport" content="width=device-width, initial-scale=1">';
|
237 |
-
}
|
238 |
-
//checking for disabling viewport meta tag
|
239 |
-
|
240 |
-
if ($attachment_id) {
|
241 |
-
$feat_image = wp_get_attachment_url($attachment_id);
|
242 |
-
if (preg_match('/https/', $feat_image)) {
|
243 |
-
echo '<meta property="og:image:secure_url" content="' . $feat_image . '" data-id="sfsi-plus"/>';
|
244 |
-
} else {
|
245 |
-
echo '<meta property="og:image" content="' . $feat_image . '" data-id="sfsi-plus"/>';
|
246 |
-
}
|
247 |
-
$metadata = wp_get_attachment_metadata($attachment_id);
|
248 |
-
if (isset($metadata) && !empty($metadata)) {
|
249 |
-
if (isset($metadata['sizes']['post-thumbnail'])) {
|
250 |
-
$image_type = $metadata['sizes']['post-thumbnail']['mime-type'];
|
251 |
-
} else {
|
252 |
-
$image_type = '';
|
253 |
-
}
|
254 |
-
if (isset($metadata['width'])) {
|
255 |
-
$width = $metadata['width'];
|
256 |
-
} else {
|
257 |
-
$width = '';
|
258 |
-
}
|
259 |
-
if (isset($metadata['height'])) {
|
260 |
-
$height = $metadata['height'];
|
261 |
-
} else {
|
262 |
-
$height = '';
|
263 |
-
}
|
264 |
-
} else {
|
265 |
-
$image_type = '';
|
266 |
-
$width = '';
|
267 |
-
$height = '';
|
268 |
-
}
|
269 |
-
echo '<meta property="og:image:type" content="' . $image_type . '" data-id="sfsi-plus"/>';
|
270 |
-
echo '<meta property="og:image:width" content="' . $width . '" data-id="sfsi-plus"/>';
|
271 |
-
echo '<meta property="og:image:height" content="' . $height . '" data-id="sfsi-plus"/>';
|
272 |
-
echo '<meta property="og:description" content="' . $description . '" data-id="sfsi-plus"/>';
|
273 |
-
echo '<meta property="og:url" content="' . $url . '" data-id="sfsi-plus"/>';
|
274 |
-
echo '<meta property="og:title" content="' . $title . '" data-id="sfsi-plus"/>';
|
275 |
-
}
|
276 |
-
}
|
277 |
-
}
|
278 |
-
|
279 |
-
//Get verification code
|
280 |
-
if (is_admin()) {
|
281 |
-
$code = sanitize_text_field(get_option('sfsi_plus_verificatiom_code'));
|
282 |
-
$feed_id = sanitize_text_field(get_option('sfsi_plus_feed_id'));
|
283 |
-
if (empty($code) && !empty($feed_id)) {
|
284 |
-
add_action("init", "sfsi_plus_getverification_code");
|
285 |
-
}
|
286 |
-
}
|
287 |
-
function sfsi_plus_getverification_code()
|
288 |
-
{
|
289 |
-
$feed_id = sanitize_text_field(get_option('sfsi_plus_feed_id'));
|
290 |
-
$url = $http_url = 'https://www.specificfeeds.com/wordpress/getVerifiedCode_plugin';
|
291 |
-
|
292 |
-
$args = array(
|
293 |
-
'timeout' => 15,
|
294 |
-
'body' => array(
|
295 |
-
'feed_id' => $feed_id
|
296 |
-
)
|
297 |
-
);
|
298 |
-
|
299 |
-
$request = wp_remote_post($url, $args);
|
300 |
-
|
301 |
-
if (is_wp_error($request)) {
|
302 |
-
// var_dump($request);
|
303 |
-
// update_option("sfsi_plus_curlErrorNotices", "yes");
|
304 |
-
// update_option("sfsi_plus_curlErrorMessage", $request->get_error_message());
|
305 |
-
} else {
|
306 |
-
$resp = json_decode($request['body']);
|
307 |
-
update_option('sfsi_plus_verificatiom_code', $resp->code);
|
308 |
-
}
|
309 |
-
}
|
310 |
-
|
311 |
-
//functionality for before and after single posts
|
312 |
-
add_filter('the_content', 'sfsi_plus_beforaftereposts');
|
313 |
-
function sfsi_plus_beforaftereposts($content)
|
314 |
-
{
|
315 |
-
$org_content = $content;
|
316 |
-
$icons_before = '';
|
317 |
-
$icons_after = '';
|
318 |
-
if (is_single()) {
|
319 |
-
$option8 = unserialize(get_option('sfsi_plus_section8_options', false));
|
320 |
-
// var_dump($option8);die();
|
321 |
-
$lineheight = $option8['sfsi_plus_post_icons_size'];
|
322 |
-
$lineheight = sfsi_plus_getlinhght($lineheight);
|
323 |
-
$sfsi_plus_display_button_type = $option8['sfsi_plus_display_button_type'];
|
324 |
-
$txt = (isset($option8['sfsi_plus_textBefor_icons'])) ? $option8['sfsi_plus_textBefor_icons'] : "Please follow and like us:";
|
325 |
-
$float = $option8['sfsi_plus_icons_alignment'];
|
326 |
-
if ($float == "center") {
|
327 |
-
$style_parent = 'text-align: center;';
|
328 |
-
$style = 'float:none; display: inline-block;';
|
329 |
-
} else {
|
330 |
-
$style_parent = '';
|
331 |
-
$style = 'float:' . $float;
|
332 |
-
}
|
333 |
-
if ($option8['sfsi_plus_display_before_posts'] == "yes" && $option8['sfsi_plus_show_item_onposts'] == "yes") {
|
334 |
-
$icons_before .= '<div class="sfsibeforpstwpr" style="' . $style_parent . '">';
|
335 |
-
if ($sfsi_plus_display_button_type == 'standard_buttons') {
|
336 |
-
$icons_before .= sfsi_plus_social_buttons_below($content = null);
|
337 |
-
}else if($option8['sfsi_plus_display_button_type'] == 'responsive_button'){
|
338 |
-
// if (isset($option8['sfsi_plus_responsive_icons_end_post']) && $option8['sfsi_plus_responsive_icons_end_post'] == "yes") {
|
339 |
-
// $icons_before .= sfsi_plus_social_responsive_buttons(null, $option8);
|
340 |
-
// }
|
341 |
-
$icons_before .= "";
|
342 |
-
} else {
|
343 |
-
$icons_before .= "<div class='sfsi_plus_Sicons' style='" . $style . "'>";
|
344 |
-
$icons_before .= "<div style='float:left;margin:0 0px; line-height:" . $lineheight . "px'><span>" . $txt . "</span></div>";
|
345 |
-
$icons_before .= sfsi_plus_check_posts_visiblity(0, "yes");
|
346 |
-
$icons_before .= "</div>";
|
347 |
-
}
|
348 |
-
$icons_before .= '</div>';
|
349 |
-
/*$icons_before .= '</br>';*/
|
350 |
-
}
|
351 |
-
if ($option8['sfsi_plus_show_item_onposts'] == "yes") {
|
352 |
-
/*$icons_after .= '</br>';*/
|
353 |
-
$icons_after .= '<div class="sfsiaftrpstwpr" style="' . $style_parent . '">';
|
354 |
-
if($option8['sfsi_plus_display_after_posts'] == "yes"){
|
355 |
-
if ($sfsi_plus_display_button_type == 'standard_buttons') {
|
356 |
-
$icons_after .= sfsi_plus_social_buttons_below($content = null);
|
357 |
-
}else if($option8['sfsi_plus_display_button_type'] == 'responsive_button'){
|
358 |
-
if (isset($option8['sfsi_plus_responsive_icons_end_post']) && $option8['sfsi_plus_responsive_icons_end_post'] == "yes") {
|
359 |
-
$icons_after .= sfsi_plus_social_responsive_buttons(null, $option8);
|
360 |
-
}
|
361 |
-
} else {
|
362 |
-
$icons_after .= "<div class='sfsi_plus_Sicons' style='" . $style . "'>";
|
363 |
-
$icons_after .= "<div style='float:left;margin:0 0px; line-height:" . $lineheight . "px'><span>" . $txt . "</span></div>";
|
364 |
-
$icons_after .= sfsi_plus_check_posts_visiblity(0, "yes");
|
365 |
-
$icons_after .= "</div>";
|
366 |
-
}
|
367 |
-
}else{
|
368 |
-
if(isset($option8['sfsi_plus_display_button_type']) && $option8['sfsi_plus_display_button_type'] == 'responsive_button'){
|
369 |
-
if (isset($option8['sfsi_plus_responsive_icons_end_post']) && $option8['sfsi_plus_responsive_icons_end_post'] == "yes") {
|
370 |
-
$icons_after .= sfsi_plus_social_responsive_buttons(null, $option8);
|
371 |
-
}
|
372 |
-
}
|
373 |
-
}
|
374 |
-
|
375 |
-
$icons_after .= '</div>';
|
376 |
-
}
|
377 |
-
}
|
378 |
-
$content = $icons_before . $org_content . $icons_after;
|
379 |
-
return $content;
|
380 |
-
}
|
381 |
-
|
382 |
-
//showing before and after blog posts
|
383 |
-
add_filter('the_excerpt', 'sfsi_plus_beforeafterblogposts');
|
384 |
-
add_filter('the_content', 'sfsi_plus_beforeafterblogposts');
|
385 |
-
function sfsi_plus_beforeafterblogposts($content)
|
386 |
-
{
|
387 |
-
if (is_home()) {
|
388 |
-
$icons_before = '';
|
389 |
-
$icons_after = '';
|
390 |
-
$sfsi_section8 = unserialize(get_option('sfsi_plus_section8_options', false));
|
391 |
-
$lineheight = $sfsi_section8['sfsi_plus_post_icons_size'];
|
392 |
-
$lineheight = sfsi_plus_getlinhght($lineheight);
|
393 |
-
|
394 |
-
global $id, $post;
|
395 |
-
$sfsi_plus_display_button_type = $sfsi_section8['sfsi_plus_display_button_type'];
|
396 |
-
$sfsi_plus_show_item_onposts = $sfsi_section8['sfsi_plus_show_item_onposts'];
|
397 |
-
$permalink = get_permalink($post->ID);
|
398 |
-
$post_title = $post->post_title;
|
399 |
-
$sfsiLikeWith = "45px;";
|
400 |
-
if ($sfsi_section8['sfsi_plus_icons_DisplayCounts'] == "yes") {
|
401 |
-
$show_count = 1;
|
402 |
-
$sfsiLikeWith = "75px;";
|
403 |
-
} else {
|
404 |
-
$show_count = 0;
|
405 |
-
}
|
406 |
-
|
407 |
-
//checking for standard icons
|
408 |
-
if (!isset($sfsi_section8['sfsi_plus_rectsub'])) {
|
409 |
-
$sfsi_section8['sfsi_plus_rectsub'] = 'no';
|
410 |
-
}
|
411 |
-
if (!isset($sfsi_section8['sfsi_plus_recttwtr'])) {
|
412 |
-
$sfsi_section8['sfsi_plus_recttwtr'] = 'no';
|
413 |
-
}
|
414 |
-
if (!isset($sfsi_section8['sfsi_plus_rectpinit'])) {
|
415 |
-
$sfsi_section8['sfsi_plus_rectpinit'] = 'no';
|
416 |
-
}
|
417 |
-
if (!isset($sfsi_section8['sfsi_plus_rectfbshare'])) {
|
418 |
-
$sfsi_section8['sfsi_plus_rectfbshare'] = 'no';
|
419 |
-
}
|
420 |
-
|
421 |
-
//checking for standard icons
|
422 |
-
$txt = (isset($sfsi_section8['sfsi_plus_textBefor_icons'])) ? $sfsi_section8['sfsi_plus_textBefor_icons'] : "Please follow and like us:";
|
423 |
-
$float = $sfsi_section8['sfsi_plus_icons_alignment'];
|
424 |
-
if ($float == "center") {
|
425 |
-
$style_parent = 'text-align: center;';
|
426 |
-
$style = 'float:none; display: inline-block;';
|
427 |
-
} else {
|
428 |
-
$style_parent = '';
|
429 |
-
$style = 'float:' . $float;
|
430 |
-
}
|
431 |
-
|
432 |
-
if (
|
433 |
-
$sfsi_section8['sfsi_plus_display_before_blogposts'] == "yes" &&
|
434 |
-
$sfsi_section8['sfsi_plus_show_item_onposts'] == "yes"
|
435 |
-
) {
|
436 |
-
//icon selection
|
437 |
-
$icons_before .= "<div class='sfsibeforpstwpr' style='" . $style_parent . "'>";
|
438 |
-
$icons_before .= "<div class='sfsi_plus_Sicons " . $float . "' style='" . $style . "'>";
|
439 |
-
if ($sfsi_plus_display_button_type == 'standard_buttons') {
|
440 |
-
if (
|
441 |
-
$sfsi_section8['sfsi_plus_rectsub'] == 'yes' ||
|
442 |
-
$sfsi_section8['sfsi_plus_rectfb'] == 'yes' ||
|
443 |
-
$sfsi_section8['sfsi_plus_recttwtr'] == 'yes' ||
|
444 |
-
$sfsi_section8['sfsi_plus_rectpinit'] == 'yes' ||
|
445 |
-
$sfsi_section8['sfsi_plus_rectfbshare'] == 'yes'
|
446 |
-
) {
|
447 |
-
$icons_before .= "<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>";
|
448 |
-
}
|
449 |
-
if ($sfsi_section8['sfsi_plus_rectsub'] == 'yes') {
|
450 |
-
if ($show_count) {
|
451 |
-
$sfsiLikeWithsub = "93px";
|
452 |
-
} else {
|
453 |
-
$sfsiLikeWithsub = "64px";
|
454 |
-
}
|
455 |
-
if (!isset($sfsiLikeWithsub)) {
|
456 |
-
$sfsiLikeWithsub = $sfsiLikeWith;
|
457 |
-
}
|
458 |
-
$icons_before .= "<div class='sf_subscrbe' style='display: inline-block;vertical-align: middle;width: auto;'>" . sfsi_plus_Subscribelike($permalink, $show_count) . "</div>";
|
459 |
-
}
|
460 |
-
if ($sfsi_section8['sfsi_plus_rectfb'] == 'yes' || $sfsi_section8['sfsi_plus_rectfbshare'] == 'yes') {
|
461 |
-
if ($show_count) { } else {
|
462 |
-
$sfsiLikeWithfb = "48px";
|
463 |
-
}
|
464 |
-
if (!isset($sfsiLikeWithfb)) {
|
465 |
-
$sfsiLikeWithfb = $sfsiLikeWith;
|
466 |
-
}
|
467 |
-
$icons_before .= "<div class='sf_fb' style='display: inline-block; vertical-align: middle;width: auto;'>" . sfsi_plus_FBlike($permalink, $show_count) . "</div>";
|
468 |
-
}
|
469 |
-
if ($sfsi_section8['sfsi_plus_rectfbshare'] == 'yes') {
|
470 |
-
if ($show_count) { } else {
|
471 |
-
$sfsiLikeWithfbshare = "48px";
|
472 |
-
}
|
473 |
-
if (!isset($sfsiLikeWithfbshare)) {
|
474 |
-
$sfsiLikeWithfbshare = $sfsiLikeWith;
|
475 |
-
}
|
476 |
-
$icons_before .= "<div class='sf_fb' style='display: inline-block; vertical-align: middle;width: auto;'>" . sfsi_plus_FBshare($permalink, $show_count) . "</div>";
|
477 |
-
}
|
478 |
-
if ($sfsi_section8['sfsi_plus_recttwtr'] == 'yes') {
|
479 |
-
if ($show_count) {
|
480 |
-
$sfsiLikeWithtwtr = "77px";
|
481 |
-
} else {
|
482 |
-
$sfsiLikeWithtwtr = "56px";
|
483 |
-
}
|
484 |
-
if (!isset($sfsiLikeWithtwtr)) {
|
485 |
-
$sfsiLikeWithtwtr = $sfsiLikeWith;
|
486 |
-
}
|
487 |
-
$icons_before .= "<div class='sf_twiter' style='display: inline-block;vertical-align: middle;width: auto;'>" . sfsi_plus_twitterlike($permalink, $show_count) . "</div>";
|
488 |
-
}
|
489 |
-
if ($sfsi_section8['sfsi_plus_rectpinit'] == 'yes') {
|
490 |
-
if ($show_count) {
|
491 |
-
$sfsiLikeWithpinit = "100px";
|
492 |
-
} else {
|
493 |
-
$sfsiLikeWithpinit = "auto";
|
494 |
-
}
|
495 |
-
$icons_before .= "<div class='sf_pinit' style='display: inline-block;vertical-align: middle;text-align:left;width: " . $sfsiLikeWithpinit . "'>" . sfsi_plus_pinitpinterest($permalink, $show_count) . "</div>";
|
496 |
-
}
|
497 |
-
}else if($sfsi_section8['sfsi_plus_display_button_type'] == 'responsive_button'){
|
498 |
-
// if (isset($sfsi_section8['sfsi_plus_responsive_icons_end_post']) && $sfsi_section8['sfsi_plus_responsive_icons_end_post'] == "yes") {
|
499 |
-
// $icons_before .= sfsi_plus_social_responsive_buttons(null, $sfsi_section8);
|
500 |
-
// }
|
501 |
-
$icons_before .="";
|
502 |
-
} else {
|
503 |
-
$icons_before .= "<div style='float:left;margin:0 0px; line-height:" . $lineheight . "px'><span>" . $txt . "</span></div>";
|
504 |
-
$icons_before .= sfsi_plus_check_posts_visiblity(0, "yes");
|
505 |
-
}
|
506 |
-
$icons_before .= "</div>";
|
507 |
-
$icons_before .= "</div>";
|
508 |
-
//icon selection
|
509 |
-
if ($id && $post && $post->post_type == 'post') {
|
510 |
-
$content = $icons_before . $content;
|
511 |
-
} else {
|
512 |
-
$contnet = $content;
|
513 |
-
}
|
514 |
-
}
|
515 |
-
if ($sfsi_section8['sfsi_plus_show_item_onposts'] == "yes") {
|
516 |
-
//icon selection
|
517 |
-
$icons_after .= "<div class='sfsiaftrpstwpr' style='" . $style_parent . "'>";
|
518 |
-
$icons_after .= "<div class='sfsi_plus_Sicons " . $float . "' style='" . $style . "'>";
|
519 |
-
if($sfsi_section8['sfsi_plus_display_after_blogposts'] == "yes"){
|
520 |
-
if ($sfsi_plus_display_button_type == 'standard_buttons') {
|
521 |
-
if (
|
522 |
-
$sfsi_section8['sfsi_plus_rectsub'] == 'yes' ||
|
523 |
-
$sfsi_section8['sfsi_plus_rectfb'] == 'yes' ||
|
524 |
-
$sfsi_section8['sfsi_plus_recttwtr'] == 'yes' ||
|
525 |
-
$sfsi_section8['sfsi_plus_rectpinit'] == 'yes' ||
|
526 |
-
$sfsi_section8['sfsi_plus_rectfbshare'] == 'yes'
|
527 |
-
) {
|
528 |
-
$icons_after .= "<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>";
|
529 |
-
}
|
530 |
-
if ($sfsi_section8['sfsi_plus_rectsub'] == 'yes') {
|
531 |
-
if ($show_count) {
|
532 |
-
$sfsiLikeWithsub = "93px";
|
533 |
-
} else {
|
534 |
-
$sfsiLikeWithsub = "64px";
|
535 |
-
}
|
536 |
-
if (!isset($sfsiLikeWithsub)) {
|
537 |
-
$sfsiLikeWithsub = $sfsiLikeWith;
|
538 |
-
}
|
539 |
-
$icons_after .= "<div class='sf_subscrbe' style='display: inline-block;vertical-align: middle; width: auto;'>" . sfsi_plus_Subscribelike($permalink, $show_count) . "</div>";
|
540 |
-
}
|
541 |
-
if ($sfsi_section8['sfsi_plus_rectfb'] == 'yes' || $sfsi_section8['sfsi_plus_rectfbshare'] == 'yes') {
|
542 |
-
if ($show_count) { } else {
|
543 |
-
$sfsiLikeWithfb = "48px";
|
544 |
-
}
|
545 |
-
if (!isset($sfsiLikeWithfb)) {
|
546 |
-
$sfsiLikeWithfb = $sfsiLikeWith;
|
547 |
-
}
|
548 |
-
$icons_after .= "<div class='sf_fb' style='display: inline-block; vertical-align: middle;width: auto;'>" . sfsi_plus_FBlike($permalink, $show_count) . "</div>";
|
549 |
-
}
|
550 |
-
if ($sfsi_section8['sfsi_plus_rectfbshare'] == 'yes') {
|
551 |
-
if ($show_count) { } else {
|
552 |
-
$sfsiLikeWithfbshare = "48px";
|
553 |
-
}
|
554 |
-
if (!isset($sfsiLikeWithfbshare)) {
|
555 |
-
$sfsiLikeWithfbshare = $sfsiLikeWith;
|
556 |
-
}
|
557 |
-
$icons_after .= "<div class='sf_fb' style='display: inline-block; vertical-align: middle;width: auto;'>" . sfsi_plus_FBshare($permalink, $show_count) . "</div>";
|
558 |
-
}
|
559 |
-
if ($sfsi_section8['sfsi_plus_recttwtr'] == 'yes') {
|
560 |
-
if ($show_count) {
|
561 |
-
$sfsiLikeWithtwtr = "77px";
|
562 |
-
} else {
|
563 |
-
$sfsiLikeWithtwtr = "56px";
|
564 |
-
}
|
565 |
-
if (!isset($sfsiLikeWithtwtr)) {
|
566 |
-
$sfsiLikeWithtwtr = $sfsiLikeWith;
|
567 |
-
}
|
568 |
-
$icons_after .= "<div class='sf_twiter' style='display: inline-block;vertical-align: middle;width: auto;'>" . sfsi_plus_twitterlike($permalink, $show_count) . "</div>";
|
569 |
-
}
|
570 |
-
if ($sfsi_section8['sfsi_plus_rectpinit'] == 'yes') {
|
571 |
-
if ($show_count) {
|
572 |
-
$sfsiLikeWithpinit = "100px";
|
573 |
-
} else {
|
574 |
-
$sfsiLikeWithpinit = "auto";
|
575 |
-
}
|
576 |
-
$icons_after .= "<div class='sf_pinit' style='display: inline-block;text-align:left;vertical-align: middle;width: " . $sfsiLikeWithpinit . "'>" . sfsi_plus_pinitpinterest($permalink, $show_count) . "</div>";
|
577 |
-
}
|
578 |
-
}else if($sfsi_section8['sfsi_plus_display_button_type'] == 'responsive_button'){
|
579 |
-
// if (isset($sfsi_section8['sfsi_plus_responsive_icons_end_post']) && $sfsi_section8['sfsi_plus_responsive_icons_end_post'] == "yes") {
|
580 |
-
// $icons_after .= sfsi_plus_social_responsive_buttons(null, $sfsi_section8);
|
581 |
-
// }
|
582 |
-
$icons_after .= "";
|
583 |
-
} else {
|
584 |
-
$icons_after .= "<div style='float:left;margin:0 0px; line-height:" . $lineheight . "px'><span>" . $txt . "</span></div>";
|
585 |
-
$icons_after .= sfsi_plus_check_posts_visiblity(0, "yes");
|
586 |
-
}
|
587 |
-
}else{
|
588 |
-
if(isset($sfsi_section8['sfsi_plus_display_button_type']) && $sfsi_section8['sfsi_plus_display_button_type'] == 'responsive_button'){
|
589 |
-
if (isset($sfsi_section8['sfsi_plus_responsive_icons_end_post']) && $sfsi_section8['sfsi_plus_responsive_icons_end_post'] == "yes") {
|
590 |
-
$icons_after .= sfsi_plus_social_responsive_buttons(null, $sfsi_section8);
|
591 |
-
}
|
592 |
-
}
|
593 |
-
}
|
594 |
-
$icons_after .= "</div>";
|
595 |
-
$icons_after .= "</div>";
|
596 |
-
//icon selection
|
597 |
-
$content = $content . $icons_after;
|
598 |
-
}
|
599 |
-
}
|
600 |
-
return $content;
|
601 |
-
}
|
602 |
-
|
603 |
-
//getting line height for the icons
|
604 |
-
function sfsi_plus_getlinhght($lineheight)
|
605 |
-
{
|
606 |
-
if ($lineheight < 16) {
|
607 |
-
$lineheight = $lineheight * 2;
|
608 |
-
return $lineheight;
|
609 |
-
} elseif ($lineheight >= 16 && $lineheight < 20) {
|
610 |
-
$lineheight = $lineheight + 10;
|
611 |
-
return $lineheight;
|
612 |
-
} elseif ($lineheight >= 20 && $lineheight < 28) {
|
613 |
-
$lineheight = $lineheight + 3;
|
614 |
-
return $lineheight;
|
615 |
-
} elseif ($lineheight >= 28 && $lineheight < 40) {
|
616 |
-
$lineheight = $lineheight + 4;
|
617 |
-
return $lineheight;
|
618 |
-
} elseif ($lineheight >= 40 && $lineheight < 50) {
|
619 |
-
$lineheight = $lineheight + 5;
|
620 |
-
return $lineheight;
|
621 |
-
}
|
622 |
-
$lineheight = $lineheight + 6;
|
623 |
-
return $lineheight;
|
624 |
-
}
|
625 |
-
|
626 |
-
//sanitizing values
|
627 |
-
function sfsi_plus_string_sanitize($s)
|
628 |
-
{
|
629 |
-
$result = preg_replace("/[^a-zA-Z0-9]+/", " ", html_entity_decode($s, ENT_QUOTES));
|
630 |
-
return $result;
|
631 |
-
}
|
632 |
-
|
633 |
-
add_action('admin_notices', 'sfsi_plus_admin_notice', 10);
|
634 |
-
function sfsi_plus_admin_notice()
|
635 |
-
{
|
636 |
-
if (isset($_GET['page']) && $_GET['page'] == "sfsi-plus-options") {
|
637 |
-
$style = "overflow: hidden; margin:12px 3px 0px;";
|
638 |
-
} else {
|
639 |
-
$style = "overflow: hidden;";
|
640 |
-
}
|
641 |
-
?>
|
642 |
-
<?php
|
643 |
-
|
644 |
-
if (get_option("sfsi_plus_show_premium_notification") == "yes") {
|
645 |
-
?>
|
646 |
-
<style>
|
647 |
-
.sfsi_plus_show_prem_notification a {
|
648 |
-
color: #fff;
|
649 |
-
text-decoration: underline;
|
650 |
-
}
|
651 |
-
|
652 |
-
form.sfsi_plus_premiumNoticeDismiss {
|
653 |
-
display: inline-block;
|
654 |
-
margin: 5px 0 0;
|
655 |
-
vertical-align: middle;
|
656 |
-
}
|
657 |
-
|
658 |
-
.sfsi_plus_premiumNoticeDismiss input[type='submit'] {
|
659 |
-
background-color: transparent;
|
660 |
-
border: medium none;
|
661 |
-
color: #fff;
|
662 |
-
margin: 0;
|
663 |
-
padding: 0;
|
664 |
-
cursor: pointer;
|
665 |
-
}
|
666 |
-
</style>
|
667 |
-
<div class="updated sfsi_plus_show_prem_notification" style="<?php echo $style; ?>background-color: #38B54A; color: #fff; font-size: 18px;">
|
668 |
-
<div class="alignleft" style="margin: 9px 0;">
|
669 |
-
<?php _e('BIG NEWS : There is now a Premium Ultimate Social Media Plugin available with many more cool features: ', SFSI_PLUS_DOMAIN); ?><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=notification_banner&utm_medium=banner" target="_blank"><?php _e('Check it out', SFSI_PLUS_DOMAIN); ?></a>
|
670 |
-
</div>
|
671 |
-
<div class="alignright">
|
672 |
-
<form method="post" class="sfsi_plus_premiumNoticeDismiss">
|
673 |
-
<input type="hidden" name="sfsi-plus_dismiss-premiumNotice" value="true">
|
674 |
-
<input type="submit" name="dismiss" value="Dismiss" />
|
675 |
-
</form>
|
676 |
-
</div>
|
677 |
-
</div>
|
678 |
-
<?php
|
679 |
-
}
|
680 |
-
|
681 |
-
|
682 |
-
if (is_ssl()) {
|
683 |
-
|
684 |
-
// Check if banner is displayed by free plugin
|
685 |
-
$isshowingFreePluginBanner = false;
|
686 |
-
|
687 |
-
if (!get_option("show_premium_cumulative_count_notification") && get_option("show_premium_cumulative_count_notification") == "yes") {
|
688 |
-
$isshowingFreePluginBanner = true;
|
689 |
-
}
|
690 |
-
|
691 |
-
|
692 |
-
if (get_option("sfsi_plus_show_premium_cumulative_count_notification") == "yes" && !$isshowingFreePluginBanner) {
|
693 |
-
?>
|
694 |
-
<style>
|
695 |
-
.sfsi_plus_show_premium_cumulative_count_notification a {
|
696 |
-
color: #fff;
|
697 |
-
text-decoration: underline;
|
698 |
-
cursor: pointer;
|
699 |
-
}
|
700 |
-
|
701 |
-
form.sfsi_plus_premiumNoticeCumulativeCountDismiss {
|
702 |
-
display: inline-block;
|
703 |
-
margin: 5px 0 0;
|
704 |
-
vertical-align: middle;
|
705 |
-
}
|
706 |
-
|
707 |
-
.sfsi_plus_premiumNoticeCumulativeCountDismiss input[type='submit'] {
|
708 |
-
background-color: transparent;
|
709 |
-
border: medium none;
|
710 |
-
color: #fff;
|
711 |
-
margin: 0;
|
712 |
-
padding: 0;
|
713 |
-
cursor: pointer;
|
714 |
-
}
|
715 |
-
</style>
|
716 |
-
<div class="updated sfsi_plus_show_premium_cumulative_count_notification" style="<?php echo $style; ?>background-color: #38B54A; color: #fff; font-size: 18px;">
|
717 |
-
<div class="alignleft" style="margin: 9px 0;">
|
718 |
-
<b><?php _e('Recently switched to https?', SFSI_PLUS_DOMAIN); ?></b> <?php _e('If you don’t want to lose the Facebook share & like counts', SFSI_PLUS_DOMAIN); ?> <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=https_share_counts&utm_medium=banner" target="_blank"><?php _e('have a look at our Premium Plugin', SFSI_PLUS_DOMAIN); ?></a><?php _e(', we found a fix for that:', SFSI_PLUS_DOMAIN); ?> <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=https_share_counts&utm_medium=banner" target="_blank"><?php _e('Check it out', SFSI_PLUS_DOMAIN); ?></a>
|
719 |
-
</div>
|
720 |
-
<div class="alignright">
|
721 |
-
<form method="post" class="sfsi_plus_premiumNoticeCumulativeCountDismiss">
|
722 |
-
<input type="hidden" name="sfsi-plus_dismiss-premiumCumulativeCountNotice" value="true">
|
723 |
-
<input type="submit" name="dismiss" value="Dismiss" />
|
724 |
-
</form>
|
725 |
-
</div>
|
726 |
-
</div>
|
727 |
-
<?php
|
728 |
-
}
|
729 |
-
}
|
730 |
-
|
731 |
-
if (get_option("sfsi_plus_show_Setting_mobile_notification") == "yes") {
|
732 |
-
$sfsi_plus_install_date = strtotime(get_option('sfsi_plus_installDate'));
|
733 |
-
$sfsi_plus_future_date = strtotime('14 days', $sfsi_plus_install_date);
|
734 |
-
$sfsi_plus_past_date = strtotime("now");
|
735 |
-
if ($sfsi_plus_past_date >= $sfsi_plus_future_date) {
|
736 |
-
?>
|
737 |
-
<style>
|
738 |
-
.sfsi_plus_show_mobile_setting_notification a {
|
739 |
-
color: #fff;
|
740 |
-
text-decoration: underline;
|
741 |
-
}
|
742 |
-
|
743 |
-
form.sfsi_plus_mobileNoticeDismiss {
|
744 |
-
display: inline-block;
|
745 |
-
margin: 5px 0 0;
|
746 |
-
vertical-align: middle;
|
747 |
-
}
|
748 |
-
|
749 |
-
.sfsi_plus_mobileNoticeDismiss input[type='submit'] {
|
750 |
-
background-color: transparent;
|
751 |
-
border: medium none;
|
752 |
-
color: #fff;
|
753 |
-
margin: 0;
|
754 |
-
padding: 0;
|
755 |
-
cursor: pointer;
|
756 |
-
}
|
757 |
-
</style>
|
758 |
-
|
759 |
-
<!-- <div class="updated sfsi_plus_show_mobile_setting_notification" style="<?php //echo $style;
|
760 |
-
?>background-color: #38B54A; color: #fff; font-size: 18px;">
|
761 |
-
<div class="alignleft" style="margin: 9px 0; width: 95%; line-height: 25px;">
|
762 |
-
<b><?php //_e( 'Over 50% of visitors are mobile visitors:', SFSI_PLUS_DOMAIN);
|
763 |
-
?></b>
|
764 |
-
<?php //_e( ' Make sure your social media icons look good on mobile too, so that people like & share your site. With the premium plugin you can define the location of the icons separately on mobile: ', SFSI_PLUS_DOMAIN);
|
765 |
-
?><a href="https://www.ultimatelysocial.com/usmpremium/?utm_expid=92383224-1.TfahStjhTrSpmi_nxkXt1w.1&utm_source=usmplus_settings_page&utm_campaign=check_mobile&utm_medium=banner" target="_blank"><?php //_e( 'Check it out', SFSI_PLUS_DOMAIN);
|
766 |
-
?></a>
|
767 |
-
</div>
|
768 |
-
<div class="alignright">
|
769 |
-
<form method="post" class="sfsi_plus_mobileNoticeDismiss">
|
770 |
-
<input type="hidden" name="sfsi-plus_dismiss-settingmobileNotice" value="true">
|
771 |
-
<input type="submit" name="dismiss" value="Dismiss" />
|
772 |
-
</form>
|
773 |
-
</div>
|
774 |
-
</div> -->
|
775 |
-
<?php
|
776 |
-
}
|
777 |
-
}
|
778 |
-
|
779 |
-
$phpVersion = phpVersion();
|
780 |
-
if ($phpVersion <= '5.4') {
|
781 |
-
if (get_option("sfsi_plus_serverphpVersionnotification") == "yes") {
|
782 |
-
|
783 |
-
?>
|
784 |
-
<style>
|
785 |
-
.sfsi_plus_show_phperror_notification {
|
786 |
-
color: #fff;
|
787 |
-
text-decoration: underline;
|
788 |
-
}
|
789 |
-
|
790 |
-
form.sfsi_plus_phperrorNoticeDismiss {
|
791 |
-
display: inline-block;
|
792 |
-
margin: 5px 0 0;
|
793 |
-
vertical-align: middle;
|
794 |
-
}
|
795 |
-
|
796 |
-
.sfsi_plus_phperrorNoticeDismiss input[type='submit'] {
|
797 |
-
background-color: transparent;
|
798 |
-
border: medium none;
|
799 |
-
color: #fff;
|
800 |
-
margin: 0;
|
801 |
-
padding: 0;
|
802 |
-
cursor: pointer;
|
803 |
-
}
|
804 |
-
|
805 |
-
.sfsi_plus_show_phperror_notification p {
|
806 |
-
line-height: 22px;
|
807 |
-
}
|
808 |
-
|
809 |
-
p.sfsi_plus_show_notifictaionpragraph {
|
810 |
-
padding: 0 !important;
|
811 |
-
font-size: 18px;
|
812 |
-
}
|
813 |
-
</style>
|
814 |
-
<div class="updated sfsi_plus_show_phperror_notification" style="<?php echo $style; ?>background-color: #D22B2F; color: #fff; font-size: 18px; border-left-color: #D22B2F;">
|
815 |
-
<div class="alignleft" style="margin: 9px 0;">
|
816 |
-
<p class="sfsi_plus_show_notifictaionpragraph">
|
817 |
-
<?php _e('We noticed you are running your site on a PHP version older than 5.6. Please upgrade to a more recent version. This is not only important for running the Ultimate Social Media Plugin, but also for security reasons in general.', SFSI_PLUS_DOMAIN); ?>
|
818 |
-
<br>
|
819 |
-
<?php _e('If you do not know how to do the upgrade, please ask your server team or hosting company to do it for you.', SFSI_PLUS_DOMAIN); ?>
|
820 |
-
</p>
|
821 |
-
|
822 |
-
</div>
|
823 |
-
<div class="alignright">
|
824 |
-
<form method="post" class="sfsi_plus_phperrorNoticeDismiss">
|
825 |
-
<input type="hidden" name="sfsi-plus_dismiss-phperrorNotice" value="true">
|
826 |
-
<input type="submit" name="dismiss" value="Dismiss" />
|
827 |
-
</form>
|
828 |
-
</div>
|
829 |
-
</div>
|
830 |
-
|
831 |
-
<?php
|
832 |
-
}
|
833 |
-
}
|
834 |
-
|
835 |
-
sfsi_plus_error_reporting_notice();
|
836 |
-
}
|
837 |
-
|
838 |
-
|
839 |
-
add_action('admin_init', 'sfsi_plus_dismiss_admin_notice');
|
840 |
-
function sfsi_plus_dismiss_admin_notice()
|
841 |
-
{
|
842 |
-
if (isset($_REQUEST['sfsi-plus_dismiss-premiumNotice']) && $_REQUEST['sfsi-plus_dismiss-premiumNotice'] == 'true') {
|
843 |
-
update_option('sfsi_plus_show_premium_notification', "no");
|
844 |
-
//header("Location: ".site_url()."/wp-admin/admin.php?page=sfsi-options");die;
|
845 |
-
}
|
846 |
-
|
847 |
-
if (isset($_REQUEST['sfsi-plus_dismiss-premiumCumulativeCountNotice']) && $_REQUEST['sfsi-plus_dismiss-premiumCumulativeCountNotice'] == 'true') {
|
848 |
-
update_option('sfsi_plus_show_premium_cumulative_count_notification', "no");
|
849 |
-
}
|
850 |
-
|
851 |
-
if (isset($_REQUEST['sfsi-plus_dismiss-settingmobileNotice']) && $_REQUEST['sfsi-plus_dismiss-settingmobileNotice'] == 'true') {
|
852 |
-
update_option('sfsi_plus_show_Setting_mobile_notification', "no");
|
853 |
-
//header("Location: ".site_url()."/wp-admin/admin.php?page=sfsi-options");die;
|
854 |
-
}
|
855 |
-
if (isset($_REQUEST['sfsi-plus_dismiss-phperrorNotice']) && $_REQUEST['sfsi-plus_dismiss-phperrorNotice'] == 'true') {
|
856 |
-
update_option('sfsi_plus_serverphpVersionnotification', "no");
|
857 |
-
}
|
858 |
-
}
|
859 |
-
|
860 |
-
add_action('plugins_loaded', 'sfsi_plus_load_domain');
|
861 |
-
function sfsi_plus_load_domain()
|
862 |
-
{
|
863 |
-
$plugin_dir = basename(dirname(__FILE__)) . '/languages';
|
864 |
-
load_plugin_textdomain('ultimate-social-media-plus', false, $plugin_dir);
|
865 |
-
}
|
866 |
-
|
867 |
-
function sfsi_plus_get_bloginfo($url)
|
868 |
-
{
|
869 |
-
$web_url = get_bloginfo($url);
|
870 |
-
|
871 |
-
//Block to use feedburner url
|
872 |
-
if (preg_match("/(feedburner)/im", $web_url, $match)) {
|
873 |
-
$web_url = site_url() . "/feed";
|
874 |
-
}
|
875 |
-
return $web_url;
|
876 |
-
}
|
877 |
-
/* plugin action link*/
|
878 |
-
add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'sfsi_plus_action_links', 3);
|
879 |
-
function sfsi_plus_action_links($mylinks)
|
880 |
-
{
|
881 |
-
$linkQuestion = '<a target="_blank" href="https://goo.gl/MU6pTN#new-topic-0" style="color:#FF0000;"><b>Need help?</b></a>';
|
882 |
-
$linkProVersion = '<a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_manage_plugin_page&utm_campaign=check_out_pro_version&utm_medium=banner" style="color:#38B54A;"><b>Check out pro version</b></a>';
|
883 |
-
|
884 |
-
if (isset($mylinks['edit']) && !empty($mylinks['edit'])) {
|
885 |
-
$mylinks[] = @$mylinks['edit'];
|
886 |
-
}
|
887 |
-
|
888 |
-
//array_unshift($mylinks, $linkProVersion);
|
889 |
-
array_unshift($mylinks, $linkQuestion);
|
890 |
-
|
891 |
-
$slug = plugin_basename(dirname(__FILE__));
|
892 |
-
|
893 |
-
//$mylinks[$slug] = @$mylinks["deactivate"].'<i class="sfsi-plus-deactivate-slug"></i>';
|
894 |
-
|
895 |
-
$mylinks[] = '<a href="' . admin_url("/admin.php?page=sfsi-plus-options") . '">Settings</a>';
|
896 |
-
|
897 |
-
unset($mylinks['edit']);
|
898 |
-
//unset ($mylinks['deactivate']);
|
899 |
-
|
900 |
-
return $mylinks;
|
901 |
-
}
|
902 |
-
|
903 |
-
global $pagenow;
|
904 |
-
|
905 |
-
if ('plugins.php' === $pagenow) {
|
906 |
-
|
907 |
-
add_action('admin_footer', '_sfsi_plus_add_deactivation_feedback_dialog_box');
|
908 |
-
|
909 |
-
function _sfsi_plus_add_deactivation_feedback_dialog_box()
|
910 |
-
{
|
911 |
-
|
912 |
-
include_once(SFSI_PLUS_DOCROOT . '/views/deactivation/sfsi_deactivation_popup.php'); ?>
|
913 |
-
|
914 |
-
<script>
|
915 |
-
jQuery(document).ready(function($) {
|
916 |
-
|
917 |
-
var _plus_deactivationLink = $('.sfsi-plus-deactivate-slug').prev();
|
918 |
-
|
919 |
-
_plus_deactivationLink.parent().prev().remove();
|
920 |
-
|
921 |
-
$('.sfsi-plus-deactivation-reason-link').find('a').attr('href', _plus_deactivationLink.attr('href'));
|
922 |
-
|
923 |
-
_plus_deactivationLink.on('click', function(e) {
|
924 |
-
e.preventDefault();
|
925 |
-
$('[data-popup="plus-popup-1"]').fadeIn(350);
|
926 |
-
});
|
927 |
-
|
928 |
-
//----- CLOSE
|
929 |
-
$('[data-popup-close]').on('click', function(e) {
|
930 |
-
e.preventDefault();
|
931 |
-
var targeted_popup_class = jQuery(this).attr('data-popup-close');
|
932 |
-
$('[data-popup="' + targeted_popup_class + '"]').fadeOut(350);
|
933 |
-
});
|
934 |
-
|
935 |
-
//----- OPEN
|
936 |
-
$('[data-popup-open]').on('click', function(e) {
|
937 |
-
e.preventDefault();
|
938 |
-
var targeted_popup_class = jQuery(this).attr('data-popup-open');
|
939 |
-
$('[data-popup="' + targeted_popup_class + '"]').fadeIn(350);
|
940 |
-
});
|
941 |
-
|
942 |
-
});
|
943 |
-
</script>
|
944 |
-
|
945 |
-
<?php }
|
946 |
-
}
|
947 |
-
|
948 |
-
|
949 |
-
function sfsi_plus_getdomain($url)
|
950 |
-
{
|
951 |
-
$pieces = parse_url($url);
|
952 |
-
$domain = isset($pieces['host']) ? $pieces['host'] : '';
|
953 |
-
if (preg_match('/(?P<domain>[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i', $domain, $regs)) {
|
954 |
-
return $regs['domain'];
|
955 |
-
}
|
956 |
-
return false;
|
957 |
-
}
|
958 |
-
|
959 |
-
// create a scheduled event (if it does not exist already)
|
960 |
-
function sfsi_plus_sf_instagram_count_fetcher()
|
961 |
-
{
|
962 |
-
$sfsi_plus_SocialHelper = new sfsi_plus_SocialHelper();
|
963 |
-
$feed_id = sanitize_text_field(get_option('sfsi_plus_feed_id', false));
|
964 |
-
return $sfsi_plus_SocialHelper->SFSI_getFeedSubscriberFetch();
|
965 |
-
}
|
966 |
-
function sfsi_plus_cronstarter_activation()
|
967 |
-
{
|
968 |
-
// sfsi_plus_write_log(wp_next_scheduled( 'sfsi_plus_sf_instagram_count_fetcher' ));
|
969 |
-
if (!wp_next_scheduled('sfsi_plus_sf_instagram_count_fetcher')) {
|
970 |
-
wp_schedule_event(time(), 'daily', 'sfsi_plus_sf_instagram_count_fetcher');
|
971 |
-
}
|
972 |
-
}
|
973 |
-
// and make sure it's called whenever WordPress loads
|
974 |
-
add_action('wp', 'sfsi_plus_cronstarter_activation');
|
975 |
-
|
976 |
-
/* redirect setting page hook */
|
977 |
-
add_action('admin_init', 'sfsi_plus_plugin_redirect');
|
978 |
-
function sfsi_plus_plugin_redirect()
|
979 |
-
{
|
980 |
-
if (get_option('sfsi_plus_plugin_do_activation_redirect', false)) {
|
981 |
-
delete_option('sfsi_plus_plugin_do_activation_redirect');
|
982 |
-
wp_redirect(admin_url('admin.php?page=sfsi-plus-options'));
|
983 |
-
}
|
984 |
-
}
|
985 |
-
function sfsi_plus_curl_error_notification()
|
986 |
-
{
|
987 |
-
if (get_option("sfsi_plus_curlErrorNotices") == "yes") {
|
988 |
-
|
989 |
-
?>
|
990 |
-
<script>
|
991 |
-
jQuery(document).ready(function(e) {
|
992 |
-
jQuery(".sfsi_plus_curlerror_cross").click(function() {
|
993 |
-
SFSI.ajax({
|
994 |
-
url: sfsi_plus_ajax_object.ajax_url,
|
995 |
-
type: "post",
|
996 |
-
data: {
|
997 |
-
action: "sfsiplus_curlerrornotification",
|
998 |
-
nonce: '<?php echo wp_create_nonce('
|
999 |
-
plus_curlerrornotification '); ?>'
|
1000 |
-
},
|
1001 |
-
success: function(msg) {
|
1002 |
-
jQuery(".sfsiplus_curlerror").hide("fast");
|
1003 |
-
|
1004 |
-
}
|
1005 |
-
});
|
1006 |
-
});
|
1007 |
-
});
|
1008 |
-
</script>
|
1009 |
-
|
1010 |
-
<div class="sfsiplus_curlerror">
|
1011 |
-
<?php _e('We noticed that your site returns a cURL error («Error: ', SFSI_PLUS_DOMAIN); ?>
|
1012 |
-
<?php echo ucfirst(get_option("sfsi_plus_curlErrorMessage")); ?>
|
1013 |
-
<?php _e('»). This mean that it cannot send a notification to SpecificFeeds.com when a new post is published. Therefore this email-feature doesn’t work. However there are several solutions for this, please visit our FAQ to see the solutions («Perceived bugs» => «cURL error messages»): ', SFSI_PLUS_DOMAIN); ?>
|
1014 |
-
<a href="https://www.ultimatelysocial.com/faq/" target="_new">
|
1015 |
-
<?php _e('www.ultimatelysocial.com/faq', SFSI_PLUS_DOMAIN); ?>
|
1016 |
-
</a>
|
1017 |
-
<div class="sfsi_plus_curlerror_cross"><?php _e('Dismiss', SFSI_PLUS_DOMAIN); ?></div>
|
1018 |
-
</div>
|
1019 |
-
<?php
|
1020 |
-
}
|
1021 |
-
}
|
1022 |
-
|
1023 |
-
// ********************************* Link to support forum for different languages STARTS *******************************//
|
1024 |
-
|
1025 |
-
function sfsi_plus_get_language_notice_text()
|
1026 |
-
{
|
1027 |
-
|
1028 |
-
$currLang = get_locale();
|
1029 |
-
$text = '';
|
1030 |
-
|
1031 |
-
switch ($currLang) {
|
1032 |
-
|
1033 |
-
// Arabic
|
1034 |
-
case 'ar':
|
1035 |
-
|
1036 |
-
$text = "hal tatakalam alearabia? 'iidha kanat ladayk 'asyilat hawl almukawan al'iidafii l Ultimate Social Media , aitruh sualik fi muntadaa aldaem , sanuhawil alrada biallughat alearabiat: <a target='_blank' href='https://goo.gl/o42Beq'><b>'unqur huna</b></a>";
|
1037 |
-
break;
|
1038 |
-
|
1039 |
-
// Chinese - simplified
|
1040 |
-
case 'zh-Hans':
|
1041 |
-
|
1042 |
-
$text = "你会说中文吗?如果您有关于Ultimate Social Media插件的问题,请在支持论坛中提出您的问题,我们将尝试用中文回复:<a target='_blank' href='https://goo.gl/o42Beq'><b>点击此处</b></a>";
|
1043 |
-
break;
|
1044 |
-
|
1045 |
-
// Chinese - traditional
|
1046 |
-
case 'zh-Hant':
|
1047 |
-
|
1048 |
-
$text = "你會說中文嗎?如果您有關於Ultimate Social Media插件的問題,請在支持論壇中提出您的問題,我們將嘗試用中文回复:<a target='_blank' href='https://goo.gl/o42Beq'><b>點擊此處</b></a>";
|
1049 |
-
break;
|
1050 |
-
|
1051 |
-
// Dutch, Dutch (Belgium)
|
1052 |
-
case 'nl_NL':
|
1053 |
-
case 'nl_BE':
|
1054 |
-
$text = "Jij spreekt Nederlands? Als je vragen hebt over de Ultimate Social Media-plug-in, stel je vraag in het ondersteuningsforum, we zullen proberen in het Nederlands te antwoorden: <a target='_blank' href='https://goo.gl/o42Beq'>klik hier</a>";
|
1055 |
-
break;
|
1056 |
-
|
1057 |
-
// French (Belgium), French (France)
|
1058 |
-
case 'fr_BE':
|
1059 |
-
case 'fr_FR':
|
1060 |
-
|
1061 |
-
$text = "Vous parlez français? Si vous avez des questions sur le plugin Ultimate Social Media, posez votre question sur le forum de support, nous essaierons de répondre en français: <a target='_blank' href='https://goo.gl/o42Beq'>Cliquez ici</a>";
|
1062 |
-
break;
|
1063 |
-
|
1064 |
-
// German, German (Switzerland)
|
1065 |
-
case 'de':
|
1066 |
-
case 'de_CH':
|
1067 |
-
|
1068 |
-
$text = "Du sprichst Deutsch? Wenn Du Fragen zum Ultimate Social Media-Plugins hast, einfach im Support Forum fragen. Wir antworten auch auf Deutsch! <a target='_blank' href='https://goo.gl/o42Beq'>Klicke hier</a>";
|
1069 |
-
break;
|
1070 |
-
|
1071 |
-
// Greek
|
1072 |
-
case 'el':
|
1073 |
-
|
1074 |
-
$text = "Μιλάτε Ελληνικά? Αν έχετε ερωτήσεις σχετικά με το plugin Ultimate Social Media, ρωτήστε την ερώτησή σας στο φόρουμ υποστήριξης, θα προσπαθήσουμε να απαντήσουμε στα ελληνικά: <a target='_blank' href='https://goo.gl/o42Beq'>Κάντε κλικ εδώ</a>";
|
1075 |
-
break;
|
1076 |
-
|
1077 |
-
// Hebrew
|
1078 |
-
case 'he_IL':
|
1079 |
-
|
1080 |
-
$text = "אתה מדבר עברית? אם יש לך שאלות על תוסף המדיה החברתית האולטימטיבית, שאל את השאלה שלך בפורום התמיכה, ננסה לענות בעברית: <a target='_blank' href='https://goo.gl/o42Beq'>לחץ כאן</a>";
|
1081 |
-
break;
|
1082 |
-
|
1083 |
-
// Hindi
|
1084 |
-
case 'hi_IN':
|
1085 |
-
|
1086 |
-
$text = "आप हिंदी बोलते हो? यदि आपके पास अल्टीमेट सोशल मीडिया प्लगइन के बारे में कोई प्रश्न है, तो समर्थन फोरम में अपना प्रश्न पूछें, हम हिंदी में जवाब देने का प्रयास करेंगे: <a target='_blank' href='https://goo.gl/o42Beq'>यहां क्लिक करें</a>";
|
1087 |
-
break;
|
1088 |
-
|
1089 |
-
// Indonesian
|
1090 |
-
case 'id':
|
1091 |
-
|
1092 |
-
$text = "Anda berbicara bahasa Indonesia? Jika Anda memiliki pertanyaan tentang plugin Ultimate Social Media, ajukan pertanyaan Anda di Forum Dukungan, kami akan mencoba menjawab dalam Bahasa Indonesia: <a target='_blank' href='https://goo.gl/o42Beq'>Klik di sini</a>";
|
1093 |
-
|
1094 |
-
break;
|
1095 |
-
|
1096 |
-
// Italian
|
1097 |
-
case 'it_IT':
|
1098 |
-
|
1099 |
-
$text = "Tu parli italiano? Se hai domande sul plugin Ultimate Social Media, fai la tua domanda nel Forum di supporto, cercheremo di rispondere in italiano: <a target='_blank' href='https://goo.gl/o42Beq'>clicca qui</a>";
|
1100 |
-
|
1101 |
-
break;
|
1102 |
-
|
1103 |
-
// Japanese
|
1104 |
-
case 'ja':
|
1105 |
-
|
1106 |
-
$text = "あなたは日本語を話しますか?アルティメットソーシャルメディアのプラグインに関する質問がある場合は、サポートフォーラムで質問してください。日本語で対応しようと思っています:<a target='_blank' href='https://goo.gl/o42Beq'>ここをクリック</a>";
|
1107 |
-
|
1108 |
-
break;
|
1109 |
-
|
1110 |
-
// Korean
|
1111 |
-
case 'ko_KR ':
|
1112 |
-
|
1113 |
-
$text = "한국어를 할 줄 아세요? 궁극적 인 소셜 미디어 플러그인에 대해 궁금한 점이 있으면 지원 포럼에서 질문하십시오. 한국어로 답변하려고합니다 : <a target='_blank' href='https://goo.gl/o42Beq'>여기를 클릭하십시오.</a>";
|
1114 |
-
|
1115 |
-
break;
|
1116 |
-
|
1117 |
-
// Persian, Persian (Afghanistan)
|
1118 |
-
case 'fa_IR':
|
1119 |
-
case 'fa_AF':
|
1120 |
-
|
1121 |
-
$text = "شما فارسی صحبت می کنید؟ اگر سوالی در مورد پلاگین رسانه Ultimate Social دارید، سوال خود را در انجمن پشتیبانی بپرسید، سعی خواهیم کرد به فارسی پاسخ دهید: <a target='_blank' href='https://goo.gl/o42Beq'>اینجا را کلیک کنید</a>";
|
1122 |
-
|
1123 |
-
break;
|
1124 |
-
|
1125 |
-
// Polish
|
1126 |
-
|
1127 |
-
case 'pl_PL':
|
1128 |
-
$text = "Mówisz po polsku? Jeśli masz pytania dotyczące wtyczki Ultimate Social Media, zadaj pytanie na Forum pomocy technicznej, postaramy się odpowiedzieć po polsku: <a target='_blank' href='https://goo.gl/o42Beq'>Kliknij tutaj</a>";
|
1129 |
-
break;
|
1130 |
-
|
1131 |
-
//Portuguese (Brazil), Portuguese (Portugal)
|
1132 |
-
|
1133 |
-
case 'pt_BR':
|
1134 |
-
case 'pt_PT':
|
1135 |
-
|
1136 |
-
$text = "Você fala português? Se você tiver dúvidas sobre o plug-in Ultimate Social Media, faça sua pergunta no Fórum de suporte, tentaremos responder em português: <a target='_blank' href='https://goo.gl/o42Beq'>Clique aqui</a>";
|
1137 |
-
|
1138 |
-
break;
|
1139 |
-
|
1140 |
-
// Russian, Russian (Ukraine)
|
1141 |
-
case 'ru_RU':
|
1142 |
-
case 'ru_UA':
|
1143 |
-
|
1144 |
-
$text = "Ты говоришь по-русски? Если у вас есть вопросы о плагине Ultimate Social Media, задайте свой вопрос в форуме поддержки, мы постараемся ответить на русский: <a target='_blank' href='https://goo.gl/o42Beq'>Нажмите здесь</a>";
|
1145 |
-
|
1146 |
-
break;
|
1147 |
-
|
1148 |
-
/* Spanish (Argentina), Spanish (Chile), Spanish (Colombia), Spanish (Mexico),
|
1149 |
-
Spanish (Peru), Spanish (Puerto Rico), Spanish (Spain), Spanish (Venezuela) */
|
1150 |
-
|
1151 |
-
case 'es_AR':
|
1152 |
-
case 'es_CL':
|
1153 |
-
case 'es_CO':
|
1154 |
-
case 'es_MX':
|
1155 |
-
case 'es_PE':
|
1156 |
-
case 'es_PR':
|
1157 |
-
case 'es_ES':
|
1158 |
-
case 'es_VE':
|
1159 |
-
|
1160 |
-
$text = "¿Tu hablas español? Si tiene alguna pregunta sobre el complemento Ultimate Social Media, formule su pregunta en el foro de soporte, intentaremos responder en español: <a target='_blank' href='https://goo.gl/o42Beq'>haga clic aquí</a>";
|
1161 |
-
break;
|
1162 |
-
|
1163 |
-
// Swedish
|
1164 |
-
|
1165 |
-
case 'sv_SE':
|
1166 |
-
|
1167 |
-
$text = "Pratar du svenska? Om du har frågor om programmet Ultimate Social Media, fråga din fråga i supportforumet, vi försöker svara på svenska: <a target='_blank' href='https://goo.gl/o42Beq'>Klicka här</a>";
|
1168 |
-
break;
|
1169 |
-
|
1170 |
-
// Turkish
|
1171 |
-
|
1172 |
-
case 'tr_TR':
|
1173 |
-
$text = "Sen Türkçe konuş? Nihai Sosyal Medya eklentisi hakkında sorularınız varsa, sorunuza Destek Forumu'nda sorun, Türkçe olarak cevap vermeye çalışacağız: <a target='_blank' href='https://goo.gl/o42Beq'>Tıklayın</a>";
|
1174 |
-
break;
|
1175 |
-
|
1176 |
-
// Ukrainian
|
1177 |
-
|
1178 |
-
case 'uk':
|
1179 |
-
$text = "Ви говорите по-українськи? Якщо у вас є запитання про плагін Ultimate Social Media, задайте своє питання на Форумі підтримки, ми спробуємо відповісти українською: <a target='_blank' href='https://goo.gl/o42Beq'>натисніть тут</a>";
|
1180 |
-
break;
|
1181 |
-
|
1182 |
-
// Vietnamese
|
1183 |
-
|
1184 |
-
case 'vi':
|
1185 |
-
$text = "Bạn nói tiếng việt không Nếu bạn có câu hỏi về plugin Ultimate Social Media, hãy đặt câu hỏi của bạn trong Diễn đàn hỗ trợ, chúng tôi sẽ cố gắng trả lời bằng tiếng Việt: <a target='_blank' href='https://goo.gl/o42Beq'>Nhấp vào đây</a>";
|
1186 |
-
break;
|
1187 |
-
}
|
1188 |
-
|
1189 |
-
return $text;
|
1190 |
-
}
|
1191 |
-
|
1192 |
-
function sfsi_plus_language_notice()
|
1193 |
-
{
|
1194 |
-
|
1195 |
-
if (isset($_GET['page']) && "sfsi-plus-options" == $_GET['page']) :
|
1196 |
-
|
1197 |
-
$langText = sfsi_plus_get_language_notice_text();
|
1198 |
-
$isDismissed = get_option('sfsi_plus_lang_notice_dismissed');
|
1199 |
-
|
1200 |
-
if (!empty($langText) && false == $isDismissed) { ?>
|
1201 |
-
|
1202 |
-
<div id="sfsi_plus_langnotice" class="notice notice-info">
|
1203 |
-
|
1204 |
-
<p><?php _e($langText, SFSI_PLUS_DOMAIN); ?></p>
|
1205 |
-
|
1206 |
-
<button type="button" class="sfsi-notice-dismiss notice-dismiss"></button>
|
1207 |
-
|
1208 |
-
</div>
|
1209 |
-
|
1210 |
-
<?php } ?>
|
1211 |
-
|
1212 |
-
<?php endif;
|
1213 |
-
}
|
1214 |
-
|
1215 |
-
|
1216 |
-
function sfsi_plus_dismiss_lang_notice()
|
1217 |
-
{
|
1218 |
-
if (!wp_verify_nonce($_POST['nonce'], "plus_dismiss_lang_notice")) {
|
1219 |
-
echo json_encode(array('res' => "error"));
|
1220 |
-
exit;
|
1221 |
-
}
|
1222 |
-
if (!current_user_can('manage_options')) {
|
1223 |
-
echo json_encode(array('res' => 'not allowed'));
|
1224 |
-
die();
|
1225 |
-
}
|
1226 |
-
echo update_option('sfsi_plus_lang_notice_dismissed', true) ? "true" : "false";
|
1227 |
-
die;
|
1228 |
-
}
|
1229 |
-
|
1230 |
-
add_action('wp_ajax_sfsi_plus_dismiss_lang_notice', 'sfsi_plus_dismiss_lang_notice');
|
1231 |
-
|
1232 |
-
// ********************************* Link to support forum for different languages CLOSES *******************************//
|
1233 |
-
|
1234 |
-
|
1235 |
-
// ********************************* Link to support forum left of every Save button STARTS *******************************//
|
1236 |
-
|
1237 |
-
function sfsi_plus_ask_for_help($viewNumber)
|
1238 |
-
{ ?>
|
1239 |
-
|
1240 |
-
<div class="sfsi_plus_askforhelp askhelpInview<?php echo $viewNumber; ?>">
|
1241 |
-
|
1242 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . "images/questionmark.png" ?>" />
|
1243 |
-
|
1244 |
-
<span>Questions? <a target="_blank" href="#" onclick="event.preventDefault();sfsi_plus_open_chat(event)"><b>Ask us</b></a></span>
|
1245 |
-
|
1246 |
-
</div>
|
1247 |
-
|
1248 |
-
<?php }
|
1249 |
-
|
1250 |
-
// ********************************* Link to support forum left of every Save button CLOSES *******************************//
|
1251 |
-
|
1252 |
-
|
1253 |
-
// ********************************* Notice for error reporting STARTS *******************************//
|
1254 |
-
|
1255 |
-
function sfsi_plus_error_reporting_notice()
|
1256 |
-
{
|
1257 |
-
|
1258 |
-
if (is_admin()) :
|
1259 |
-
|
1260 |
-
$sfsi_error_reporting_notice_txt = 'We noticed that you have set error reporting to "yes" in wp-config. Our plugin (Ultimate Social Media Plus) switches this to "off" so that no errors are displayed (which may also impact error messages from your theme or other plugins). If you don\'t want that, please select the respective option under question 6 (at the bottom).';
|
1261 |
-
|
1262 |
-
$isDismissed = get_option('sfsi_pplus_error_reporting_notice_dismissed', false);
|
1263 |
-
|
1264 |
-
$option5 = unserialize(get_option('sfsi_plus_section5_options', false));
|
1265 |
-
|
1266 |
-
$sfsi_pplus_icons_suppress_errors = isset($option5['sfsi_pplus_icons_suppress_errors']) && !empty($option5['sfsi_pplus_icons_suppress_errors']) ? $option5['sfsi_pplus_icons_suppress_errors'] : false;
|
1267 |
-
|
1268 |
-
if (isset($isDismissed) && false == $isDismissed && defined('WP_DEBUG') && false != WP_DEBUG && "yes" == $sfsi_pplus_icons_suppress_errors) { ?>
|
1269 |
-
|
1270 |
-
<div style="padding: 10px;margin-left: 0px;position: relative;" id="sfsi_error_reporting_notice" class="error notice">
|
1271 |
-
|
1272 |
-
<p><?php echo $sfsi_error_reporting_notice_txt; ?></p>
|
1273 |
-
|
1274 |
-
<button type="button" class="sfsi_pplus_error_reporting_notice-dismiss notice-dismiss"></button>
|
1275 |
-
|
1276 |
-
</div>
|
1277 |
-
|
1278 |
-
<script>
|
1279 |
-
if (typeof jQuery != 'undefined') {
|
1280 |
-
|
1281 |
-
(function sfsi_dismiss_notice(btnClass, ajaxAction, nonce) {
|
1282 |
-
|
1283 |
-
var btnClass = "." + btnClass;
|
1284 |
-
|
1285 |
-
var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>";
|
1286 |
-
|
1287 |
-
jQuery(document).on("click", btnClass, function() {
|
1288 |
-
|
1289 |
-
jQuery.ajax({
|
1290 |
-
url: ajaxurl,
|
1291 |
-
type: "post",
|
1292 |
-
data: {
|
1293 |
-
action: ajaxAction,
|
1294 |
-
nonce: nonce
|
1295 |
-
},
|
1296 |
-
success: function(e) {
|
1297 |
-
if (false != e) {
|
1298 |
-
jQuery(btnClass).parent().remove();
|
1299 |
-
}
|
1300 |
-
}
|
1301 |
-
});
|
1302 |
-
|
1303 |
-
});
|
1304 |
-
|
1305 |
-
}("sfsi_pplus_error_reporting_notice-dismiss", "sfsi_pplus_dismiss_error_reporting_notice", "<?php echo wp_create_nonce('plus_dismiss_error_reporting_notice'); ?>"));
|
1306 |
-
}
|
1307 |
-
</script>
|
1308 |
-
|
1309 |
-
<?php } ?>
|
1310 |
-
|
1311 |
-
<?php endif;
|
1312 |
-
}
|
1313 |
-
|
1314 |
-
function sfsi_pplus_dismiss_error_reporting_notice()
|
1315 |
-
{
|
1316 |
-
if (!wp_verify_nonce($_POST['nonce'], "plus_dismiss_error_reporting_notice")) {
|
1317 |
-
echo json_encode(array('res' => "error"));
|
1318 |
-
exit;
|
1319 |
-
}
|
1320 |
-
if (!current_user_can('manage_options')) {
|
1321 |
-
echo json_encode(array('res' => 'not allowed'));
|
1322 |
-
die();
|
1323 |
-
}
|
1324 |
-
echo (string) update_option('sfsi_pplus_error_reporting_notice_dismissed', true);
|
1325 |
-
die;
|
1326 |
-
}
|
1327 |
-
add_action('wp_ajax_sfsi_pplus_dismiss_error_reporting_notice', 'sfsi_pplus_dismiss_error_reporting_notice');
|
1328 |
-
|
1329 |
-
// ********************************* Notice for error reporting CLOSE *******************************//
|
1330 |
-
|
1331 |
-
// ********************************* Notice for removal of AddThis option STARTS *******************************//
|
1332 |
-
function sfsi_plus_addThis_removal_notice()
|
1333 |
-
{
|
1334 |
-
|
1335 |
-
if (isset($_GET['page']) && "sfsi-plus-options" == $_GET['page']) :
|
1336 |
-
|
1337 |
-
$sfsi_plus_addThis_removalText = __("We removed Addthis from the plugin due to issues with GDPR, the new EU data protection regulation.", SFSI_PLUS_DOMAIN);
|
1338 |
-
|
1339 |
-
$isDismissed = get_option('sfsi_plus_addThis_icon_removal_notice_dismissed', false);
|
1340 |
-
|
1341 |
-
if (false == $isDismissed) { ?>
|
1342 |
-
|
1343 |
-
<div id="sfsi_plus_addThis_removal_notice" class="notice notice-info">
|
1344 |
-
|
1345 |
-
<p><?php echo $sfsi_plus_addThis_removalText; ?></p>
|
1346 |
-
|
1347 |
-
<button type="button" class="sfsi_plus-AddThis-notice-dismiss notice-dismiss"></button>
|
1348 |
-
|
1349 |
-
</div>
|
1350 |
-
|
1351 |
-
<?php } ?>
|
1352 |
-
|
1353 |
-
<?php endif;
|
1354 |
-
}
|
1355 |
-
|
1356 |
-
function sfsi_plus_dismiss_addthhis_removal_notice()
|
1357 |
-
{
|
1358 |
-
if (!wp_verify_nonce($_POST['nonce'], "plus_dismiss_addthhis_removal_notice")) {
|
1359 |
-
echo json_encode(array('res' => "error"));
|
1360 |
-
exit;
|
1361 |
-
}
|
1362 |
-
if (!current_user_can('manage_options')) {
|
1363 |
-
echo json_encode(array('res' => 'not allowed'));
|
1364 |
-
die();
|
1365 |
-
}
|
1366 |
-
echo update_option('sfsi_plus_addThis_icon_removal_notice_dismissed', true) ? get_option('sfsi_plus_addThis_icon_removal_notice_dismissed', false) : "false";
|
1367 |
-
die;
|
1368 |
-
}
|
1369 |
-
|
1370 |
-
add_action('wp_ajax_sfsi_plus_dismiss_addThis_icon_notice', 'sfsi_plus_dismiss_addthhis_removal_notice');
|
1371 |
-
|
1372 |
-
// ********************************* Notice for removal of AddThis option CLOSES *******************************//
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Ultimate Social Media PLUS
|
4 |
+
Plugin URI: http://socialshare.pro/
|
5 |
+
Description: The best social media plugin on the market. And 100% FREE. Allows you to add social media & share icons to your blog (esp. Facebook, Twitter, Email, RSS, Pinterest, Instagram, LinkedIn, Share-button). It offers a wide range of design options and other features.
|
6 |
+
Author: social share pro
|
7 |
+
Text Domain: ultimate-social-media-plus
|
8 |
+
Domain Path: /languages
|
9 |
+
Author URI: http://socialshare.pro/
|
10 |
+
Version: 3.2.5
|
11 |
+
License: GPLv2
|
12 |
+
*/
|
13 |
+
|
14 |
+
sfsi_plus_error_reporting();
|
15 |
+
|
16 |
+
require_once 'analyst/main.php';
|
17 |
+
|
18 |
+
analyst_init(array(
|
19 |
+
'client-id' => 'w6l8b75dy5qkv9ze',
|
20 |
+
'client-secret' => '39db55426579986bb6c79c6d94aa6ab82b67f9f5',
|
21 |
+
'base-dir' => __FILE__
|
22 |
+
));
|
23 |
+
|
24 |
+
global $wpdb;
|
25 |
+
/* define the Root for URL and Document */
|
26 |
+
|
27 |
+
|
28 |
+
// Create a helper function for easy SDK access.
|
29 |
+
function sfsi_plus_freemius()
|
30 |
+
{
|
31 |
+
global $usmp_fs;
|
32 |
+
|
33 |
+
if (!isset($usmp_fs)) {
|
34 |
+
// Include Freemius SDK.
|
35 |
+
require_once dirname(__FILE__) . '/freemius/start.php';
|
36 |
+
|
37 |
+
$usmp_fs = fs_dynamic_init(array(
|
38 |
+
'id' => '1046',
|
39 |
+
'slug' => 'ultimate-social-media-plus',
|
40 |
+
'type' => 'plugin',
|
41 |
+
'public_key' => 'pk_716f722d8ecd3d70a5c60177306c1',
|
42 |
+
'is_premium' => false,
|
43 |
+
'has_addons' => false,
|
44 |
+
'has_paid_plans' => false,
|
45 |
+
'menu' => array(
|
46 |
+
'slug' => 'sfsi-plus-options',
|
47 |
+
'account' => false,
|
48 |
+
'support' => false,
|
49 |
+
),
|
50 |
+
));
|
51 |
+
}
|
52 |
+
|
53 |
+
return $usmp_fs;
|
54 |
+
}
|
55 |
+
|
56 |
+
// Init Freemius.
|
57 |
+
// sfsi_plus_freemius();
|
58 |
+
// sfsi_plus_freemius()->add_action('after_uninstall', 'sfsi_plus_Unistall_plugin');
|
59 |
+
|
60 |
+
// Signal that SDK was initiated.
|
61 |
+
//do_action('usmp_fs_loaded');
|
62 |
+
|
63 |
+
define('SFSI_PLUS_DOCROOT', dirname(__FILE__));
|
64 |
+
// define('SFSI_PLUS_PLUGURL', plugin_dir_url(__FILE__));
|
65 |
+
define('SFSI_PLUS_PLUGURL', site_url() . '/wp-content/plugins/ultimate-social-media-plus/');
|
66 |
+
define('SFSI_PLUS_WEBROOT', str_replace(getcwd(), home_url(), dirname(__FILE__)));
|
67 |
+
define('SFSI_PLUS_DOMAIN', 'ultimate-social-media-plus');
|
68 |
+
define('SFSI_PLUS_SUPPORT_FORM', 'https://goo.gl/jySrSF');
|
69 |
+
|
70 |
+
$wp_upload_dir = wp_upload_dir();
|
71 |
+
define('SFSI_PLUS_UPLOAD_DIR_BASEURL', trailingslashit($wp_upload_dir['baseurl']));
|
72 |
+
|
73 |
+
|
74 |
+
define('SFSI_PLUS_ALLICONS', serialize(array(
|
75 |
+
"rss", "email", "facebook", "twitter", "youtube", "linkedin",
|
76 |
+
"pinterest", "instagram", "houzz", "ok", "telegram", "vk", "weibo", "wechat"
|
77 |
+
)));
|
78 |
+
|
79 |
+
function sfsi_plus_get_current_url()
|
80 |
+
{
|
81 |
+
global $post, $wp;
|
82 |
+
|
83 |
+
if (!empty($wp)) {
|
84 |
+
return home_url(add_query_arg(array(), $wp->request));
|
85 |
+
} elseif (!empty($post)) {
|
86 |
+
return get_permalink($post->ID);
|
87 |
+
} else {
|
88 |
+
return site_url();
|
89 |
+
}
|
90 |
+
}
|
91 |
+
|
92 |
+
/* load all files */
|
93 |
+
include(SFSI_PLUS_DOCROOT . '/helpers/common_helper.php');
|
94 |
+
include(SFSI_PLUS_DOCROOT . '/libs/controllers/sfsi_socialhelper.php');
|
95 |
+
include(SFSI_PLUS_DOCROOT . '/libs/controllers/sfsi_class_theme_check.php');
|
96 |
+
include(SFSI_PLUS_DOCROOT . '/libs/sfsi_install_uninstall.php');
|
97 |
+
include(SFSI_PLUS_DOCROOT . '/libs/controllers/sfsi_buttons_controller.php');
|
98 |
+
include(SFSI_PLUS_DOCROOT . '/libs/controllers/sfsi_iconsUpload_contoller.php');
|
99 |
+
include(SFSI_PLUS_DOCROOT . '/libs/sfsi_Init_JqueryCss.php');
|
100 |
+
include(SFSI_PLUS_DOCROOT . '/libs/controllers/sfsi_floater_icons.php');
|
101 |
+
include(SFSI_PLUS_DOCROOT . '/libs/controllers/sfsiocns_OnPosts.php');
|
102 |
+
include(SFSI_PLUS_DOCROOT . '/libs/sfsi_widget.php');
|
103 |
+
include(SFSI_PLUS_DOCROOT . '/libs/sfsi_plus_subscribe_widget.php');
|
104 |
+
include(SFSI_PLUS_DOCROOT . '/libs/sfsi_custom_social_sharing_data.php');
|
105 |
+
include(SFSI_PLUS_DOCROOT . '/libs/sfsi_ajax_social_sharing_settings_updater.php');
|
106 |
+
include(SFSI_PLUS_DOCROOT . '/libs/sfsi_gutenberg_block.php');
|
107 |
+
|
108 |
+
/* plugin install and uninstall hooks */
|
109 |
+
register_activation_hook(__FILE__, 'sfsi_plus_activate_plugin');
|
110 |
+
register_deactivation_hook(__FILE__, 'sfsi_plus_deactivate_plugin');
|
111 |
+
//register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
|
112 |
+
|
113 |
+
/*Plugin version setup*/
|
114 |
+
if (!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 3.25) {
|
115 |
+
add_action("init", "sfsi_plus_update_plugin");
|
116 |
+
}
|
117 |
+
|
118 |
+
//************************************** Setting error reporting STARTS ****************************************//
|
119 |
+
|
120 |
+
function sfsi_plus_error_reporting()
|
121 |
+
{
|
122 |
+
|
123 |
+
$option5 = unserialize(get_option('sfsi_plus_section5_options', false));
|
124 |
+
|
125 |
+
if (
|
126 |
+
isset($option5['sfsi_pplus_icons_suppress_errors'])
|
127 |
+
|
128 |
+
&& !empty($option5['sfsi_pplus_icons_suppress_errors'])
|
129 |
+
|
130 |
+
&& "yes" == $option5['sfsi_pplus_icons_suppress_errors']
|
131 |
+
) {
|
132 |
+
|
133 |
+
error_reporting(0);
|
134 |
+
}
|
135 |
+
}
|
136 |
+
|
137 |
+
//************************************** Setting error reporting CLOSES ****************************************//
|
138 |
+
|
139 |
+
//shortcode for the ultimate social icons {Monad}
|
140 |
+
add_shortcode("DISPLAY_ULTIMATE_PLUS", "DISPLAY_ULTIMATE_PLUS");
|
141 |
+
function DISPLAY_ULTIMATE_PLUS($args = null, $content = null, $share_url = null)
|
142 |
+
{
|
143 |
+
if ("DISPLAY_ULTIMATE_PLUS" === $share_url) {
|
144 |
+
$share_url = null;
|
145 |
+
}
|
146 |
+
$instance = array("showf" => 1, "title" => '');
|
147 |
+
$sfsi_plus_section8_options = get_option("sfsi_plus_section8_options");
|
148 |
+
$sfsi_plus_section8_options = unserialize($sfsi_plus_section8_options);
|
149 |
+
$sfsi_plus_place_item_manually = $sfsi_plus_section8_options['sfsi_plus_place_item_manually'];
|
150 |
+
if ($sfsi_plus_place_item_manually == "yes") {
|
151 |
+
$return = '';
|
152 |
+
if (!isset($before_widget)) : $before_widget = '';
|
153 |
+
endif;
|
154 |
+
if (!isset($after_widget)) : $after_widget = '';
|
155 |
+
endif;
|
156 |
+
|
157 |
+
/*Our variables from the widget settings. */
|
158 |
+
$title = apply_filters('widget_title', $instance['title']);
|
159 |
+
$show_info = isset($instance['show_info']) ? $instance['show_info'] : false;
|
160 |
+
global $is_floter;
|
161 |
+
$return .= $before_widget;
|
162 |
+
/* Display the widget title */
|
163 |
+
if ($title) $return .= $before_title . $title . $after_title;
|
164 |
+
$return .= '<div class="sfsi_plus_widget">';
|
165 |
+
$return .= '<div id="sfsi_plus_wDiv"></div>';
|
166 |
+
/* Link the main icons function */
|
167 |
+
$return .= sfsi_plus_check_visiblity(0, $share_url);
|
168 |
+
$return .= '<div style="clear: both;"></div>';
|
169 |
+
$return .= '</div>';
|
170 |
+
$return .= $after_widget;
|
171 |
+
return $return;
|
172 |
+
} else {
|
173 |
+
return __('Kindly go to setting page and check the option "Place them manually"', SFSI_PLUS_DOMAIN);
|
174 |
+
}
|
175 |
+
}
|
176 |
+
//adding some meta tags for facebook news feed
|
177 |
+
function sfsi_plus_checkmetas()
|
178 |
+
{
|
179 |
+
$adding_plustags = "yes";
|
180 |
+
|
181 |
+
if (!function_exists('get_plugins')) {
|
182 |
+
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
183 |
+
}
|
184 |
+
|
185 |
+
$all_plugins = get_plugins();
|
186 |
+
|
187 |
+
foreach ($all_plugins as $key => $plugin) :
|
188 |
+
|
189 |
+
if (is_plugin_active($key)) :
|
190 |
+
|
191 |
+
if (preg_match("/(seo|search engine optimization|meta tag|open graph|opengraph|og tag|ogtag)/im", $plugin['Name']) || preg_match("/(seo|search engine optimization|meta tag|open graph|opengraph|og tag|ogtag)/im", $plugin['Description'])) {
|
192 |
+
$adding_plustags = "no";
|
193 |
+
break;
|
194 |
+
}
|
195 |
+
|
196 |
+
endif;
|
197 |
+
|
198 |
+
endforeach;
|
199 |
+
|
200 |
+
update_option('adding_plustags', $adding_plustags);
|
201 |
+
}
|
202 |
+
|
203 |
+
if (is_admin()) {
|
204 |
+
// sfsi_plus_checkmetas();
|
205 |
+
add_action('after_setup_theme', 'sfsi_plus_checkmetas');
|
206 |
+
}
|
207 |
+
|
208 |
+
add_action('wp_head', 'ultimateplusfbmetatags');
|
209 |
+
function ultimateplusfbmetatags()
|
210 |
+
{
|
211 |
+
$metarequest = get_option("adding_plustags");
|
212 |
+
$post_id = get_the_ID();
|
213 |
+
|
214 |
+
$feed_id = sanitize_text_field(get_option('sfsi_plus_feed_id'));
|
215 |
+
$verification_code = get_option('sfsi_plus_verificatiom_code');
|
216 |
+
if (!empty($feed_id) && !empty($verification_code) && $verification_code != "no") {
|
217 |
+
echo '<meta name="specificfeeds-verification-code-' . $feed_id . '" content="' . $verification_code . '"/>';
|
218 |
+
}
|
219 |
+
|
220 |
+
if ($metarequest == 'yes' && !empty($post_id)) {
|
221 |
+
$post = get_post($post_id);
|
222 |
+
$attachment_id = get_post_thumbnail_id($post_id);
|
223 |
+
$title = str_replace('"', "", strip_tags(get_the_title($post_id)));
|
224 |
+
$description = $post->post_content;
|
225 |
+
$description = str_replace('"', "", strip_tags($description));
|
226 |
+
$url = get_permalink($post_id);
|
227 |
+
|
228 |
+
//checking for disabling viewport meta tag
|
229 |
+
$option5 = unserialize(get_option('sfsi_plus_section5_options', false));
|
230 |
+
if (isset($option5['sfsi_plus_disable_viewport'])) {
|
231 |
+
$sfsi_plus_disable_viewport = $option5['sfsi_plus_disable_viewport'];
|
232 |
+
} else {
|
233 |
+
$sfsi_plus_disable_viewport = 'no';
|
234 |
+
}
|
235 |
+
if ($sfsi_plus_disable_viewport == 'no') {
|
236 |
+
echo ' <meta name="viewport" content="width=device-width, initial-scale=1">';
|
237 |
+
}
|
238 |
+
//checking for disabling viewport meta tag
|
239 |
+
|
240 |
+
if ($attachment_id) {
|
241 |
+
$feat_image = wp_get_attachment_url($attachment_id);
|
242 |
+
if (preg_match('/https/', $feat_image)) {
|
243 |
+
echo '<meta property="og:image:secure_url" content="' . $feat_image . '" data-id="sfsi-plus"/>';
|
244 |
+
} else {
|
245 |
+
echo '<meta property="og:image" content="' . $feat_image . '" data-id="sfsi-plus"/>';
|
246 |
+
}
|
247 |
+
$metadata = wp_get_attachment_metadata($attachment_id);
|
248 |
+
if (isset($metadata) && !empty($metadata)) {
|
249 |
+
if (isset($metadata['sizes']['post-thumbnail'])) {
|
250 |
+
$image_type = $metadata['sizes']['post-thumbnail']['mime-type'];
|
251 |
+
} else {
|
252 |
+
$image_type = '';
|
253 |
+
}
|
254 |
+
if (isset($metadata['width'])) {
|
255 |
+
$width = $metadata['width'];
|
256 |
+
} else {
|
257 |
+
$width = '';
|
258 |
+
}
|
259 |
+
if (isset($metadata['height'])) {
|
260 |
+
$height = $metadata['height'];
|
261 |
+
} else {
|
262 |
+
$height = '';
|
263 |
+
}
|
264 |
+
} else {
|
265 |
+
$image_type = '';
|
266 |
+
$width = '';
|
267 |
+
$height = '';
|
268 |
+
}
|
269 |
+
echo '<meta property="og:image:type" content="' . $image_type . '" data-id="sfsi-plus"/>';
|
270 |
+
echo '<meta property="og:image:width" content="' . $width . '" data-id="sfsi-plus"/>';
|
271 |
+
echo '<meta property="og:image:height" content="' . $height . '" data-id="sfsi-plus"/>';
|
272 |
+
echo '<meta property="og:description" content="' . $description . '" data-id="sfsi-plus"/>';
|
273 |
+
echo '<meta property="og:url" content="' . $url . '" data-id="sfsi-plus"/>';
|
274 |
+
echo '<meta property="og:title" content="' . $title . '" data-id="sfsi-plus"/>';
|
275 |
+
}
|
276 |
+
}
|
277 |
+
}
|
278 |
+
|
279 |
+
//Get verification code
|
280 |
+
if (is_admin()) {
|
281 |
+
$code = sanitize_text_field(get_option('sfsi_plus_verificatiom_code'));
|
282 |
+
$feed_id = sanitize_text_field(get_option('sfsi_plus_feed_id'));
|
283 |
+
if (empty($code) && !empty($feed_id)) {
|
284 |
+
add_action("init", "sfsi_plus_getverification_code");
|
285 |
+
}
|
286 |
+
}
|
287 |
+
function sfsi_plus_getverification_code()
|
288 |
+
{
|
289 |
+
$feed_id = sanitize_text_field(get_option('sfsi_plus_feed_id'));
|
290 |
+
$url = $http_url = 'https://www.specificfeeds.com/wordpress/getVerifiedCode_plugin';
|
291 |
+
|
292 |
+
$args = array(
|
293 |
+
'timeout' => 15,
|
294 |
+
'body' => array(
|
295 |
+
'feed_id' => $feed_id
|
296 |
+
)
|
297 |
+
);
|
298 |
+
|
299 |
+
$request = wp_remote_post($url, $args);
|
300 |
+
|
301 |
+
if (is_wp_error($request)) {
|
302 |
+
// var_dump($request);
|
303 |
+
// update_option("sfsi_plus_curlErrorNotices", "yes");
|
304 |
+
// update_option("sfsi_plus_curlErrorMessage", $request->get_error_message());
|
305 |
+
} else {
|
306 |
+
$resp = json_decode($request['body']);
|
307 |
+
update_option('sfsi_plus_verificatiom_code', $resp->code);
|
308 |
+
}
|
309 |
+
}
|
310 |
+
|
311 |
+
//functionality for before and after single posts
|
312 |
+
add_filter('the_content', 'sfsi_plus_beforaftereposts');
|
313 |
+
function sfsi_plus_beforaftereposts($content)
|
314 |
+
{
|
315 |
+
$org_content = $content;
|
316 |
+
$icons_before = '';
|
317 |
+
$icons_after = '';
|
318 |
+
if (is_single()) {
|
319 |
+
$option8 = unserialize(get_option('sfsi_plus_section8_options', false));
|
320 |
+
// var_dump($option8);die();
|
321 |
+
$lineheight = $option8['sfsi_plus_post_icons_size'];
|
322 |
+
$lineheight = sfsi_plus_getlinhght($lineheight);
|
323 |
+
$sfsi_plus_display_button_type = $option8['sfsi_plus_display_button_type'];
|
324 |
+
$txt = (isset($option8['sfsi_plus_textBefor_icons'])) ? $option8['sfsi_plus_textBefor_icons'] : "Please follow and like us:";
|
325 |
+
$float = $option8['sfsi_plus_icons_alignment'];
|
326 |
+
if ($float == "center") {
|
327 |
+
$style_parent = 'text-align: center;';
|
328 |
+
$style = 'float:none; display: inline-block;';
|
329 |
+
} else {
|
330 |
+
$style_parent = '';
|
331 |
+
$style = 'float:' . $float;
|
332 |
+
}
|
333 |
+
if ($option8['sfsi_plus_display_before_posts'] == "yes" && $option8['sfsi_plus_show_item_onposts'] == "yes") {
|
334 |
+
$icons_before .= '<div class="sfsibeforpstwpr" style="' . $style_parent . '">';
|
335 |
+
if ($sfsi_plus_display_button_type == 'standard_buttons') {
|
336 |
+
$icons_before .= sfsi_plus_social_buttons_below($content = null);
|
337 |
+
}else if($option8['sfsi_plus_display_button_type'] == 'responsive_button'){
|
338 |
+
// if (isset($option8['sfsi_plus_responsive_icons_end_post']) && $option8['sfsi_plus_responsive_icons_end_post'] == "yes") {
|
339 |
+
// $icons_before .= sfsi_plus_social_responsive_buttons(null, $option8);
|
340 |
+
// }
|
341 |
+
$icons_before .= "";
|
342 |
+
} else {
|
343 |
+
$icons_before .= "<div class='sfsi_plus_Sicons' style='" . $style . "'>";
|
344 |
+
$icons_before .= "<div style='float:left;margin:0 0px; line-height:" . $lineheight . "px'><span>" . $txt . "</span></div>";
|
345 |
+
$icons_before .= sfsi_plus_check_posts_visiblity(0, "yes");
|
346 |
+
$icons_before .= "</div>";
|
347 |
+
}
|
348 |
+
$icons_before .= '</div>';
|
349 |
+
/*$icons_before .= '</br>';*/
|
350 |
+
}
|
351 |
+
if ($option8['sfsi_plus_show_item_onposts'] == "yes") {
|
352 |
+
/*$icons_after .= '</br>';*/
|
353 |
+
$icons_after .= '<div class="sfsiaftrpstwpr" style="' . $style_parent . '">';
|
354 |
+
if($option8['sfsi_plus_display_after_posts'] == "yes"){
|
355 |
+
if ($sfsi_plus_display_button_type == 'standard_buttons') {
|
356 |
+
$icons_after .= sfsi_plus_social_buttons_below($content = null);
|
357 |
+
}else if($option8['sfsi_plus_display_button_type'] == 'responsive_button'){
|
358 |
+
if (isset($option8['sfsi_plus_responsive_icons_end_post']) && $option8['sfsi_plus_responsive_icons_end_post'] == "yes") {
|
359 |
+
$icons_after .= sfsi_plus_social_responsive_buttons(null, $option8);
|
360 |
+
}
|
361 |
+
} else {
|
362 |
+
$icons_after .= "<div class='sfsi_plus_Sicons' style='" . $style . "'>";
|
363 |
+
$icons_after .= "<div style='float:left;margin:0 0px; line-height:" . $lineheight . "px'><span>" . $txt . "</span></div>";
|
364 |
+
$icons_after .= sfsi_plus_check_posts_visiblity(0, "yes");
|
365 |
+
$icons_after .= "</div>";
|
366 |
+
}
|
367 |
+
}else{
|
368 |
+
if(isset($option8['sfsi_plus_display_button_type']) && $option8['sfsi_plus_display_button_type'] == 'responsive_button'){
|
369 |
+
if (isset($option8['sfsi_plus_responsive_icons_end_post']) && $option8['sfsi_plus_responsive_icons_end_post'] == "yes") {
|
370 |
+
$icons_after .= sfsi_plus_social_responsive_buttons(null, $option8);
|
371 |
+
}
|
372 |
+
}
|
373 |
+
}
|
374 |
+
|
375 |
+
$icons_after .= '</div>';
|
376 |
+
}
|
377 |
+
}
|
378 |
+
$content = $icons_before . $org_content . $icons_after;
|
379 |
+
return $content;
|
380 |
+
}
|
381 |
+
|
382 |
+
//showing before and after blog posts
|
383 |
+
add_filter('the_excerpt', 'sfsi_plus_beforeafterblogposts');
|
384 |
+
add_filter('the_content', 'sfsi_plus_beforeafterblogposts');
|
385 |
+
function sfsi_plus_beforeafterblogposts($content)
|
386 |
+
{
|
387 |
+
if (is_home()) {
|
388 |
+
$icons_before = '';
|
389 |
+
$icons_after = '';
|
390 |
+
$sfsi_section8 = unserialize(get_option('sfsi_plus_section8_options', false));
|
391 |
+
$lineheight = $sfsi_section8['sfsi_plus_post_icons_size'];
|
392 |
+
$lineheight = sfsi_plus_getlinhght($lineheight);
|
393 |
+
|
394 |
+
global $id, $post;
|
395 |
+
$sfsi_plus_display_button_type = $sfsi_section8['sfsi_plus_display_button_type'];
|
396 |
+
$sfsi_plus_show_item_onposts = $sfsi_section8['sfsi_plus_show_item_onposts'];
|
397 |
+
$permalink = get_permalink($post->ID);
|
398 |
+
$post_title = $post->post_title;
|
399 |
+
$sfsiLikeWith = "45px;";
|
400 |
+
if ($sfsi_section8['sfsi_plus_icons_DisplayCounts'] == "yes") {
|
401 |
+
$show_count = 1;
|
402 |
+
$sfsiLikeWith = "75px;";
|
403 |
+
} else {
|
404 |
+
$show_count = 0;
|
405 |
+
}
|
406 |
+
|
407 |
+
//checking for standard icons
|
408 |
+
if (!isset($sfsi_section8['sfsi_plus_rectsub'])) {
|
409 |
+
$sfsi_section8['sfsi_plus_rectsub'] = 'no';
|
410 |
+
}
|
411 |
+
if (!isset($sfsi_section8['sfsi_plus_recttwtr'])) {
|
412 |
+
$sfsi_section8['sfsi_plus_recttwtr'] = 'no';
|
413 |
+
}
|
414 |
+
if (!isset($sfsi_section8['sfsi_plus_rectpinit'])) {
|
415 |
+
$sfsi_section8['sfsi_plus_rectpinit'] = 'no';
|
416 |
+
}
|
417 |
+
if (!isset($sfsi_section8['sfsi_plus_rectfbshare'])) {
|
418 |
+
$sfsi_section8['sfsi_plus_rectfbshare'] = 'no';
|
419 |
+
}
|
420 |
+
|
421 |
+
//checking for standard icons
|
422 |
+
$txt = (isset($sfsi_section8['sfsi_plus_textBefor_icons'])) ? $sfsi_section8['sfsi_plus_textBefor_icons'] : "Please follow and like us:";
|
423 |
+
$float = $sfsi_section8['sfsi_plus_icons_alignment'];
|
424 |
+
if ($float == "center") {
|
425 |
+
$style_parent = 'text-align: center;';
|
426 |
+
$style = 'float:none; display: inline-block;';
|
427 |
+
} else {
|
428 |
+
$style_parent = '';
|
429 |
+
$style = 'float:' . $float;
|
430 |
+
}
|
431 |
+
|
432 |
+
if (
|
433 |
+
$sfsi_section8['sfsi_plus_display_before_blogposts'] == "yes" &&
|
434 |
+
$sfsi_section8['sfsi_plus_show_item_onposts'] == "yes"
|
435 |
+
) {
|
436 |
+
//icon selection
|
437 |
+
$icons_before .= "<div class='sfsibeforpstwpr' style='" . $style_parent . "'>";
|
438 |
+
$icons_before .= "<div class='sfsi_plus_Sicons " . $float . "' style='" . $style . "'>";
|
439 |
+
if ($sfsi_plus_display_button_type == 'standard_buttons') {
|
440 |
+
if (
|
441 |
+
$sfsi_section8['sfsi_plus_rectsub'] == 'yes' ||
|
442 |
+
$sfsi_section8['sfsi_plus_rectfb'] == 'yes' ||
|
443 |
+
$sfsi_section8['sfsi_plus_recttwtr'] == 'yes' ||
|
444 |
+
$sfsi_section8['sfsi_plus_rectpinit'] == 'yes' ||
|
445 |
+
$sfsi_section8['sfsi_plus_rectfbshare'] == 'yes'
|
446 |
+
) {
|
447 |
+
$icons_before .= "<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>";
|
448 |
+
}
|
449 |
+
if ($sfsi_section8['sfsi_plus_rectsub'] == 'yes') {
|
450 |
+
if ($show_count) {
|
451 |
+
$sfsiLikeWithsub = "93px";
|
452 |
+
} else {
|
453 |
+
$sfsiLikeWithsub = "64px";
|
454 |
+
}
|
455 |
+
if (!isset($sfsiLikeWithsub)) {
|
456 |
+
$sfsiLikeWithsub = $sfsiLikeWith;
|
457 |
+
}
|
458 |
+
$icons_before .= "<div class='sf_subscrbe' style='display: inline-block;vertical-align: middle;width: auto;'>" . sfsi_plus_Subscribelike($permalink, $show_count) . "</div>";
|
459 |
+
}
|
460 |
+
if ($sfsi_section8['sfsi_plus_rectfb'] == 'yes' || $sfsi_section8['sfsi_plus_rectfbshare'] == 'yes') {
|
461 |
+
if ($show_count) { } else {
|
462 |
+
$sfsiLikeWithfb = "48px";
|
463 |
+
}
|
464 |
+
if (!isset($sfsiLikeWithfb)) {
|
465 |
+
$sfsiLikeWithfb = $sfsiLikeWith;
|
466 |
+
}
|
467 |
+
$icons_before .= "<div class='sf_fb' style='display: inline-block; vertical-align: middle;width: auto;'>" . sfsi_plus_FBlike($permalink, $show_count) . "</div>";
|
468 |
+
}
|
469 |
+
if ($sfsi_section8['sfsi_plus_rectfbshare'] == 'yes') {
|
470 |
+
if ($show_count) { } else {
|
471 |
+
$sfsiLikeWithfbshare = "48px";
|
472 |
+
}
|
473 |
+
if (!isset($sfsiLikeWithfbshare)) {
|
474 |
+
$sfsiLikeWithfbshare = $sfsiLikeWith;
|
475 |
+
}
|
476 |
+
$icons_before .= "<div class='sf_fb' style='display: inline-block; vertical-align: middle;width: auto;'>" . sfsi_plus_FBshare($permalink, $show_count) . "</div>";
|
477 |
+
}
|
478 |
+
if ($sfsi_section8['sfsi_plus_recttwtr'] == 'yes') {
|
479 |
+
if ($show_count) {
|
480 |
+
$sfsiLikeWithtwtr = "77px";
|
481 |
+
} else {
|
482 |
+
$sfsiLikeWithtwtr = "56px";
|
483 |
+
}
|
484 |
+
if (!isset($sfsiLikeWithtwtr)) {
|
485 |
+
$sfsiLikeWithtwtr = $sfsiLikeWith;
|
486 |
+
}
|
487 |
+
$icons_before .= "<div class='sf_twiter' style='display: inline-block;vertical-align: middle;width: auto;'>" . sfsi_plus_twitterlike($permalink, $show_count) . "</div>";
|
488 |
+
}
|
489 |
+
if ($sfsi_section8['sfsi_plus_rectpinit'] == 'yes') {
|
490 |
+
if ($show_count) {
|
491 |
+
$sfsiLikeWithpinit = "100px";
|
492 |
+
} else {
|
493 |
+
$sfsiLikeWithpinit = "auto";
|
494 |
+
}
|
495 |
+
$icons_before .= "<div class='sf_pinit' style='display: inline-block;vertical-align: middle;text-align:left;width: " . $sfsiLikeWithpinit . "'>" . sfsi_plus_pinitpinterest($permalink, $show_count) . "</div>";
|
496 |
+
}
|
497 |
+
}else if($sfsi_section8['sfsi_plus_display_button_type'] == 'responsive_button'){
|
498 |
+
// if (isset($sfsi_section8['sfsi_plus_responsive_icons_end_post']) && $sfsi_section8['sfsi_plus_responsive_icons_end_post'] == "yes") {
|
499 |
+
// $icons_before .= sfsi_plus_social_responsive_buttons(null, $sfsi_section8);
|
500 |
+
// }
|
501 |
+
$icons_before .="";
|
502 |
+
} else {
|
503 |
+
$icons_before .= "<div style='float:left;margin:0 0px; line-height:" . $lineheight . "px'><span>" . $txt . "</span></div>";
|
504 |
+
$icons_before .= sfsi_plus_check_posts_visiblity(0, "yes");
|
505 |
+
}
|
506 |
+
$icons_before .= "</div>";
|
507 |
+
$icons_before .= "</div>";
|
508 |
+
//icon selection
|
509 |
+
if ($id && $post && $post->post_type == 'post') {
|
510 |
+
$content = $icons_before . $content;
|
511 |
+
} else {
|
512 |
+
$contnet = $content;
|
513 |
+
}
|
514 |
+
}
|
515 |
+
if ($sfsi_section8['sfsi_plus_show_item_onposts'] == "yes") {
|
516 |
+
//icon selection
|
517 |
+
$icons_after .= "<div class='sfsiaftrpstwpr' style='" . $style_parent . "'>";
|
518 |
+
$icons_after .= "<div class='sfsi_plus_Sicons " . $float . "' style='" . $style . "'>";
|
519 |
+
if($sfsi_section8['sfsi_plus_display_after_blogposts'] == "yes"){
|
520 |
+
if ($sfsi_plus_display_button_type == 'standard_buttons') {
|
521 |
+
if (
|
522 |
+
$sfsi_section8['sfsi_plus_rectsub'] == 'yes' ||
|
523 |
+
$sfsi_section8['sfsi_plus_rectfb'] == 'yes' ||
|
524 |
+
$sfsi_section8['sfsi_plus_recttwtr'] == 'yes' ||
|
525 |
+
$sfsi_section8['sfsi_plus_rectpinit'] == 'yes' ||
|
526 |
+
$sfsi_section8['sfsi_plus_rectfbshare'] == 'yes'
|
527 |
+
) {
|
528 |
+
$icons_after .= "<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>";
|
529 |
+
}
|
530 |
+
if ($sfsi_section8['sfsi_plus_rectsub'] == 'yes') {
|
531 |
+
if ($show_count) {
|
532 |
+
$sfsiLikeWithsub = "93px";
|
533 |
+
} else {
|
534 |
+
$sfsiLikeWithsub = "64px";
|
535 |
+
}
|
536 |
+
if (!isset($sfsiLikeWithsub)) {
|
537 |
+
$sfsiLikeWithsub = $sfsiLikeWith;
|
538 |
+
}
|
539 |
+
$icons_after .= "<div class='sf_subscrbe' style='display: inline-block;vertical-align: middle; width: auto;'>" . sfsi_plus_Subscribelike($permalink, $show_count) . "</div>";
|
540 |
+
}
|
541 |
+
if ($sfsi_section8['sfsi_plus_rectfb'] == 'yes' || $sfsi_section8['sfsi_plus_rectfbshare'] == 'yes') {
|
542 |
+
if ($show_count) { } else {
|
543 |
+
$sfsiLikeWithfb = "48px";
|
544 |
+
}
|
545 |
+
if (!isset($sfsiLikeWithfb)) {
|
546 |
+
$sfsiLikeWithfb = $sfsiLikeWith;
|
547 |
+
}
|
548 |
+
$icons_after .= "<div class='sf_fb' style='display: inline-block; vertical-align: middle;width: auto;'>" . sfsi_plus_FBlike($permalink, $show_count) . "</div>";
|
549 |
+
}
|
550 |
+
if ($sfsi_section8['sfsi_plus_rectfbshare'] == 'yes') {
|
551 |
+
if ($show_count) { } else {
|
552 |
+
$sfsiLikeWithfbshare = "48px";
|
553 |
+
}
|
554 |
+
if (!isset($sfsiLikeWithfbshare)) {
|
555 |
+
$sfsiLikeWithfbshare = $sfsiLikeWith;
|
556 |
+
}
|
557 |
+
$icons_after .= "<div class='sf_fb' style='display: inline-block; vertical-align: middle;width: auto;'>" . sfsi_plus_FBshare($permalink, $show_count) . "</div>";
|
558 |
+
}
|
559 |
+
if ($sfsi_section8['sfsi_plus_recttwtr'] == 'yes') {
|
560 |
+
if ($show_count) {
|
561 |
+
$sfsiLikeWithtwtr = "77px";
|
562 |
+
} else {
|
563 |
+
$sfsiLikeWithtwtr = "56px";
|
564 |
+
}
|
565 |
+
if (!isset($sfsiLikeWithtwtr)) {
|
566 |
+
$sfsiLikeWithtwtr = $sfsiLikeWith;
|
567 |
+
}
|
568 |
+
$icons_after .= "<div class='sf_twiter' style='display: inline-block;vertical-align: middle;width: auto;'>" . sfsi_plus_twitterlike($permalink, $show_count) . "</div>";
|
569 |
+
}
|
570 |
+
if ($sfsi_section8['sfsi_plus_rectpinit'] == 'yes') {
|
571 |
+
if ($show_count) {
|
572 |
+
$sfsiLikeWithpinit = "100px";
|
573 |
+
} else {
|
574 |
+
$sfsiLikeWithpinit = "auto";
|
575 |
+
}
|
576 |
+
$icons_after .= "<div class='sf_pinit' style='display: inline-block;text-align:left;vertical-align: middle;width: " . $sfsiLikeWithpinit . "'>" . sfsi_plus_pinitpinterest($permalink, $show_count) . "</div>";
|
577 |
+
}
|
578 |
+
}else if($sfsi_section8['sfsi_plus_display_button_type'] == 'responsive_button'){
|
579 |
+
// if (isset($sfsi_section8['sfsi_plus_responsive_icons_end_post']) && $sfsi_section8['sfsi_plus_responsive_icons_end_post'] == "yes") {
|
580 |
+
// $icons_after .= sfsi_plus_social_responsive_buttons(null, $sfsi_section8);
|
581 |
+
// }
|
582 |
+
$icons_after .= "";
|
583 |
+
} else {
|
584 |
+
$icons_after .= "<div style='float:left;margin:0 0px; line-height:" . $lineheight . "px'><span>" . $txt . "</span></div>";
|
585 |
+
$icons_after .= sfsi_plus_check_posts_visiblity(0, "yes");
|
586 |
+
}
|
587 |
+
}else{
|
588 |
+
if(isset($sfsi_section8['sfsi_plus_display_button_type']) && $sfsi_section8['sfsi_plus_display_button_type'] == 'responsive_button'){
|
589 |
+
if (isset($sfsi_section8['sfsi_plus_responsive_icons_end_post']) && $sfsi_section8['sfsi_plus_responsive_icons_end_post'] == "yes") {
|
590 |
+
$icons_after .= sfsi_plus_social_responsive_buttons(null, $sfsi_section8);
|
591 |
+
}
|
592 |
+
}
|
593 |
+
}
|
594 |
+
$icons_after .= "</div>";
|
595 |
+
$icons_after .= "</div>";
|
596 |
+
//icon selection
|
597 |
+
$content = $content . $icons_after;
|
598 |
+
}
|
599 |
+
}
|
600 |
+
return $content;
|
601 |
+
}
|
602 |
+
|
603 |
+
//getting line height for the icons
|
604 |
+
function sfsi_plus_getlinhght($lineheight)
|
605 |
+
{
|
606 |
+
if ($lineheight < 16) {
|
607 |
+
$lineheight = $lineheight * 2;
|
608 |
+
return $lineheight;
|
609 |
+
} elseif ($lineheight >= 16 && $lineheight < 20) {
|
610 |
+
$lineheight = $lineheight + 10;
|
611 |
+
return $lineheight;
|
612 |
+
} elseif ($lineheight >= 20 && $lineheight < 28) {
|
613 |
+
$lineheight = $lineheight + 3;
|
614 |
+
return $lineheight;
|
615 |
+
} elseif ($lineheight >= 28 && $lineheight < 40) {
|
616 |
+
$lineheight = $lineheight + 4;
|
617 |
+
return $lineheight;
|
618 |
+
} elseif ($lineheight >= 40 && $lineheight < 50) {
|
619 |
+
$lineheight = $lineheight + 5;
|
620 |
+
return $lineheight;
|
621 |
+
}
|
622 |
+
$lineheight = $lineheight + 6;
|
623 |
+
return $lineheight;
|
624 |
+
}
|
625 |
+
|
626 |
+
//sanitizing values
|
627 |
+
function sfsi_plus_string_sanitize($s)
|
628 |
+
{
|
629 |
+
$result = preg_replace("/[^a-zA-Z0-9]+/", " ", html_entity_decode($s, ENT_QUOTES));
|
630 |
+
return $result;
|
631 |
+
}
|
632 |
+
|
633 |
+
add_action('admin_notices', 'sfsi_plus_admin_notice', 10);
|
634 |
+
function sfsi_plus_admin_notice()
|
635 |
+
{
|
636 |
+
if (isset($_GET['page']) && $_GET['page'] == "sfsi-plus-options") {
|
637 |
+
$style = "overflow: hidden; margin:12px 3px 0px;";
|
638 |
+
} else {
|
639 |
+
$style = "overflow: hidden;";
|
640 |
+
}
|
641 |
+
?>
|
642 |
+
<?php
|
643 |
+
|
644 |
+
if (get_option("sfsi_plus_show_premium_notification") == "yes") {
|
645 |
+
?>
|
646 |
+
<style>
|
647 |
+
.sfsi_plus_show_prem_notification a {
|
648 |
+
color: #fff;
|
649 |
+
text-decoration: underline;
|
650 |
+
}
|
651 |
+
|
652 |
+
form.sfsi_plus_premiumNoticeDismiss {
|
653 |
+
display: inline-block;
|
654 |
+
margin: 5px 0 0;
|
655 |
+
vertical-align: middle;
|
656 |
+
}
|
657 |
+
|
658 |
+
.sfsi_plus_premiumNoticeDismiss input[type='submit'] {
|
659 |
+
background-color: transparent;
|
660 |
+
border: medium none;
|
661 |
+
color: #fff;
|
662 |
+
margin: 0;
|
663 |
+
padding: 0;
|
664 |
+
cursor: pointer;
|
665 |
+
}
|
666 |
+
</style>
|
667 |
+
<div class="updated sfsi_plus_show_prem_notification" style="<?php echo $style; ?>background-color: #38B54A; color: #fff; font-size: 18px;">
|
668 |
+
<div class="alignleft" style="margin: 9px 0;">
|
669 |
+
<?php _e('BIG NEWS : There is now a Premium Ultimate Social Media Plugin available with many more cool features: ', SFSI_PLUS_DOMAIN); ?><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=notification_banner&utm_medium=banner" target="_blank"><?php _e('Check it out', SFSI_PLUS_DOMAIN); ?></a>
|
670 |
+
</div>
|
671 |
+
<div class="alignright">
|
672 |
+
<form method="post" class="sfsi_plus_premiumNoticeDismiss">
|
673 |
+
<input type="hidden" name="sfsi-plus_dismiss-premiumNotice" value="true">
|
674 |
+
<input type="submit" name="dismiss" value="Dismiss" />
|
675 |
+
</form>
|
676 |
+
</div>
|
677 |
+
</div>
|
678 |
+
<?php
|
679 |
+
}
|
680 |
+
|
681 |
+
|
682 |
+
if (is_ssl()) {
|
683 |
+
|
684 |
+
// Check if banner is displayed by free plugin
|
685 |
+
$isshowingFreePluginBanner = false;
|
686 |
+
|
687 |
+
if (!get_option("show_premium_cumulative_count_notification") && get_option("show_premium_cumulative_count_notification") == "yes") {
|
688 |
+
$isshowingFreePluginBanner = true;
|
689 |
+
}
|
690 |
+
|
691 |
+
|
692 |
+
if (get_option("sfsi_plus_show_premium_cumulative_count_notification") == "yes" && !$isshowingFreePluginBanner) {
|
693 |
+
?>
|
694 |
+
<style>
|
695 |
+
.sfsi_plus_show_premium_cumulative_count_notification a {
|
696 |
+
color: #fff;
|
697 |
+
text-decoration: underline;
|
698 |
+
cursor: pointer;
|
699 |
+
}
|
700 |
+
|
701 |
+
form.sfsi_plus_premiumNoticeCumulativeCountDismiss {
|
702 |
+
display: inline-block;
|
703 |
+
margin: 5px 0 0;
|
704 |
+
vertical-align: middle;
|
705 |
+
}
|
706 |
+
|
707 |
+
.sfsi_plus_premiumNoticeCumulativeCountDismiss input[type='submit'] {
|
708 |
+
background-color: transparent;
|
709 |
+
border: medium none;
|
710 |
+
color: #fff;
|
711 |
+
margin: 0;
|
712 |
+
padding: 0;
|
713 |
+
cursor: pointer;
|
714 |
+
}
|
715 |
+
</style>
|
716 |
+
<div class="updated sfsi_plus_show_premium_cumulative_count_notification" style="<?php echo $style; ?>background-color: #38B54A; color: #fff; font-size: 18px;">
|
717 |
+
<div class="alignleft" style="margin: 9px 0;">
|
718 |
+
<b><?php _e('Recently switched to https?', SFSI_PLUS_DOMAIN); ?></b> <?php _e('If you don’t want to lose the Facebook share & like counts', SFSI_PLUS_DOMAIN); ?> <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=https_share_counts&utm_medium=banner" target="_blank"><?php _e('have a look at our Premium Plugin', SFSI_PLUS_DOMAIN); ?></a><?php _e(', we found a fix for that:', SFSI_PLUS_DOMAIN); ?> <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=https_share_counts&utm_medium=banner" target="_blank"><?php _e('Check it out', SFSI_PLUS_DOMAIN); ?></a>
|
719 |
+
</div>
|
720 |
+
<div class="alignright">
|
721 |
+
<form method="post" class="sfsi_plus_premiumNoticeCumulativeCountDismiss">
|
722 |
+
<input type="hidden" name="sfsi-plus_dismiss-premiumCumulativeCountNotice" value="true">
|
723 |
+
<input type="submit" name="dismiss" value="Dismiss" />
|
724 |
+
</form>
|
725 |
+
</div>
|
726 |
+
</div>
|
727 |
+
<?php
|
728 |
+
}
|
729 |
+
}
|
730 |
+
|
731 |
+
if (get_option("sfsi_plus_show_Setting_mobile_notification") == "yes") {
|
732 |
+
$sfsi_plus_install_date = strtotime(get_option('sfsi_plus_installDate'));
|
733 |
+
$sfsi_plus_future_date = strtotime('14 days', $sfsi_plus_install_date);
|
734 |
+
$sfsi_plus_past_date = strtotime("now");
|
735 |
+
if ($sfsi_plus_past_date >= $sfsi_plus_future_date) {
|
736 |
+
?>
|
737 |
+
<style>
|
738 |
+
.sfsi_plus_show_mobile_setting_notification a {
|
739 |
+
color: #fff;
|
740 |
+
text-decoration: underline;
|
741 |
+
}
|
742 |
+
|
743 |
+
form.sfsi_plus_mobileNoticeDismiss {
|
744 |
+
display: inline-block;
|
745 |
+
margin: 5px 0 0;
|
746 |
+
vertical-align: middle;
|
747 |
+
}
|
748 |
+
|
749 |
+
.sfsi_plus_mobileNoticeDismiss input[type='submit'] {
|
750 |
+
background-color: transparent;
|
751 |
+
border: medium none;
|
752 |
+
color: #fff;
|
753 |
+
margin: 0;
|
754 |
+
padding: 0;
|
755 |
+
cursor: pointer;
|
756 |
+
}
|
757 |
+
</style>
|
758 |
+
|
759 |
+
<!-- <div class="updated sfsi_plus_show_mobile_setting_notification" style="<?php //echo $style;
|
760 |
+
?>background-color: #38B54A; color: #fff; font-size: 18px;">
|
761 |
+
<div class="alignleft" style="margin: 9px 0; width: 95%; line-height: 25px;">
|
762 |
+
<b><?php //_e( 'Over 50% of visitors are mobile visitors:', SFSI_PLUS_DOMAIN);
|
763 |
+
?></b>
|
764 |
+
<?php //_e( ' Make sure your social media icons look good on mobile too, so that people like & share your site. With the premium plugin you can define the location of the icons separately on mobile: ', SFSI_PLUS_DOMAIN);
|
765 |
+
?><a href="https://www.ultimatelysocial.com/usmpremium/?utm_expid=92383224-1.TfahStjhTrSpmi_nxkXt1w.1&utm_source=usmplus_settings_page&utm_campaign=check_mobile&utm_medium=banner" target="_blank"><?php //_e( 'Check it out', SFSI_PLUS_DOMAIN);
|
766 |
+
?></a>
|
767 |
+
</div>
|
768 |
+
<div class="alignright">
|
769 |
+
<form method="post" class="sfsi_plus_mobileNoticeDismiss">
|
770 |
+
<input type="hidden" name="sfsi-plus_dismiss-settingmobileNotice" value="true">
|
771 |
+
<input type="submit" name="dismiss" value="Dismiss" />
|
772 |
+
</form>
|
773 |
+
</div>
|
774 |
+
</div> -->
|
775 |
+
<?php
|
776 |
+
}
|
777 |
+
}
|
778 |
+
|
779 |
+
$phpVersion = phpVersion();
|
780 |
+
if ($phpVersion <= '5.4') {
|
781 |
+
if (get_option("sfsi_plus_serverphpVersionnotification") == "yes") {
|
782 |
+
|
783 |
+
?>
|
784 |
+
<style>
|
785 |
+
.sfsi_plus_show_phperror_notification {
|
786 |
+
color: #fff;
|
787 |
+
text-decoration: underline;
|
788 |
+
}
|
789 |
+
|
790 |
+
form.sfsi_plus_phperrorNoticeDismiss {
|
791 |
+
display: inline-block;
|
792 |
+
margin: 5px 0 0;
|
793 |
+
vertical-align: middle;
|
794 |
+
}
|
795 |
+
|
796 |
+
.sfsi_plus_phperrorNoticeDismiss input[type='submit'] {
|
797 |
+
background-color: transparent;
|
798 |
+
border: medium none;
|
799 |
+
color: #fff;
|
800 |
+
margin: 0;
|
801 |
+
padding: 0;
|
802 |
+
cursor: pointer;
|
803 |
+
}
|
804 |
+
|
805 |
+
.sfsi_plus_show_phperror_notification p {
|
806 |
+
line-height: 22px;
|
807 |
+
}
|
808 |
+
|
809 |
+
p.sfsi_plus_show_notifictaionpragraph {
|
810 |
+
padding: 0 !important;
|
811 |
+
font-size: 18px;
|
812 |
+
}
|
813 |
+
</style>
|
814 |
+
<div class="updated sfsi_plus_show_phperror_notification" style="<?php echo $style; ?>background-color: #D22B2F; color: #fff; font-size: 18px; border-left-color: #D22B2F;">
|
815 |
+
<div class="alignleft" style="margin: 9px 0;">
|
816 |
+
<p class="sfsi_plus_show_notifictaionpragraph">
|
817 |
+
<?php _e('We noticed you are running your site on a PHP version older than 5.6. Please upgrade to a more recent version. This is not only important for running the Ultimate Social Media Plugin, but also for security reasons in general.', SFSI_PLUS_DOMAIN); ?>
|
818 |
+
<br>
|
819 |
+
<?php _e('If you do not know how to do the upgrade, please ask your server team or hosting company to do it for you.', SFSI_PLUS_DOMAIN); ?>
|
820 |
+
</p>
|
821 |
+
|
822 |
+
</div>
|
823 |
+
<div class="alignright">
|
824 |
+
<form method="post" class="sfsi_plus_phperrorNoticeDismiss">
|
825 |
+
<input type="hidden" name="sfsi-plus_dismiss-phperrorNotice" value="true">
|
826 |
+
<input type="submit" name="dismiss" value="Dismiss" />
|
827 |
+
</form>
|
828 |
+
</div>
|
829 |
+
</div>
|
830 |
+
|
831 |
+
<?php
|
832 |
+
}
|
833 |
+
}
|
834 |
+
|
835 |
+
sfsi_plus_error_reporting_notice();
|
836 |
+
}
|
837 |
+
|
838 |
+
|
839 |
+
add_action('admin_init', 'sfsi_plus_dismiss_admin_notice');
|
840 |
+
function sfsi_plus_dismiss_admin_notice()
|
841 |
+
{
|
842 |
+
if (isset($_REQUEST['sfsi-plus_dismiss-premiumNotice']) && $_REQUEST['sfsi-plus_dismiss-premiumNotice'] == 'true') {
|
843 |
+
update_option('sfsi_plus_show_premium_notification', "no");
|
844 |
+
//header("Location: ".site_url()."/wp-admin/admin.php?page=sfsi-options");die;
|
845 |
+
}
|
846 |
+
|
847 |
+
if (isset($_REQUEST['sfsi-plus_dismiss-premiumCumulativeCountNotice']) && $_REQUEST['sfsi-plus_dismiss-premiumCumulativeCountNotice'] == 'true') {
|
848 |
+
update_option('sfsi_plus_show_premium_cumulative_count_notification', "no");
|
849 |
+
}
|
850 |
+
|
851 |
+
if (isset($_REQUEST['sfsi-plus_dismiss-settingmobileNotice']) && $_REQUEST['sfsi-plus_dismiss-settingmobileNotice'] == 'true') {
|
852 |
+
update_option('sfsi_plus_show_Setting_mobile_notification', "no");
|
853 |
+
//header("Location: ".site_url()."/wp-admin/admin.php?page=sfsi-options");die;
|
854 |
+
}
|
855 |
+
if (isset($_REQUEST['sfsi-plus_dismiss-phperrorNotice']) && $_REQUEST['sfsi-plus_dismiss-phperrorNotice'] == 'true') {
|
856 |
+
update_option('sfsi_plus_serverphpVersionnotification', "no");
|
857 |
+
}
|
858 |
+
}
|
859 |
+
|
860 |
+
add_action('plugins_loaded', 'sfsi_plus_load_domain');
|
861 |
+
function sfsi_plus_load_domain()
|
862 |
+
{
|
863 |
+
$plugin_dir = basename(dirname(__FILE__)) . '/languages';
|
864 |
+
load_plugin_textdomain('ultimate-social-media-plus', false, $plugin_dir);
|
865 |
+
}
|
866 |
+
|
867 |
+
function sfsi_plus_get_bloginfo($url)
|
868 |
+
{
|
869 |
+
$web_url = get_bloginfo($url);
|
870 |
+
|
871 |
+
//Block to use feedburner url
|
872 |
+
if (preg_match("/(feedburner)/im", $web_url, $match)) {
|
873 |
+
$web_url = site_url() . "/feed";
|
874 |
+
}
|
875 |
+
return $web_url;
|
876 |
+
}
|
877 |
+
/* plugin action link*/
|
878 |
+
add_filter('plugin_action_links_' . plugin_basename(__FILE__), 'sfsi_plus_action_links', 3);
|
879 |
+
function sfsi_plus_action_links($mylinks)
|
880 |
+
{
|
881 |
+
$linkQuestion = '<a target="_blank" href="https://goo.gl/MU6pTN#new-topic-0" style="color:#FF0000;"><b>Need help?</b></a>';
|
882 |
+
$linkProVersion = '<a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_manage_plugin_page&utm_campaign=check_out_pro_version&utm_medium=banner" style="color:#38B54A;"><b>Check out pro version</b></a>';
|
883 |
+
|
884 |
+
if (isset($mylinks['edit']) && !empty($mylinks['edit'])) {
|
885 |
+
$mylinks[] = @$mylinks['edit'];
|
886 |
+
}
|
887 |
+
|
888 |
+
//array_unshift($mylinks, $linkProVersion);
|
889 |
+
array_unshift($mylinks, $linkQuestion);
|
890 |
+
|
891 |
+
$slug = plugin_basename(dirname(__FILE__));
|
892 |
+
|
893 |
+
//$mylinks[$slug] = @$mylinks["deactivate"].'<i class="sfsi-plus-deactivate-slug"></i>';
|
894 |
+
|
895 |
+
$mylinks[] = '<a href="' . admin_url("/admin.php?page=sfsi-plus-options") . '">Settings</a>';
|
896 |
+
|
897 |
+
unset($mylinks['edit']);
|
898 |
+
//unset ($mylinks['deactivate']);
|
899 |
+
|
900 |
+
return $mylinks;
|
901 |
+
}
|
902 |
+
|
903 |
+
global $pagenow;
|
904 |
+
|
905 |
+
if ('plugins.php' === $pagenow) {
|
906 |
+
|
907 |
+
add_action('admin_footer', '_sfsi_plus_add_deactivation_feedback_dialog_box');
|
908 |
+
|
909 |
+
function _sfsi_plus_add_deactivation_feedback_dialog_box()
|
910 |
+
{
|
911 |
+
|
912 |
+
include_once(SFSI_PLUS_DOCROOT . '/views/deactivation/sfsi_deactivation_popup.php'); ?>
|
913 |
+
|
914 |
+
<script>
|
915 |
+
jQuery(document).ready(function($) {
|
916 |
+
|
917 |
+
var _plus_deactivationLink = $('.sfsi-plus-deactivate-slug').prev();
|
918 |
+
|
919 |
+
_plus_deactivationLink.parent().prev().remove();
|
920 |
+
|
921 |
+
$('.sfsi-plus-deactivation-reason-link').find('a').attr('href', _plus_deactivationLink.attr('href'));
|
922 |
+
|
923 |
+
_plus_deactivationLink.on('click', function(e) {
|
924 |
+
e.preventDefault();
|
925 |
+
$('[data-popup="plus-popup-1"]').fadeIn(350);
|
926 |
+
});
|
927 |
+
|
928 |
+
//----- CLOSE
|
929 |
+
$('[data-popup-close]').on('click', function(e) {
|
930 |
+
e.preventDefault();
|
931 |
+
var targeted_popup_class = jQuery(this).attr('data-popup-close');
|
932 |
+
$('[data-popup="' + targeted_popup_class + '"]').fadeOut(350);
|
933 |
+
});
|
934 |
+
|
935 |
+
//----- OPEN
|
936 |
+
$('[data-popup-open]').on('click', function(e) {
|
937 |
+
e.preventDefault();
|
938 |
+
var targeted_popup_class = jQuery(this).attr('data-popup-open');
|
939 |
+
$('[data-popup="' + targeted_popup_class + '"]').fadeIn(350);
|
940 |
+
});
|
941 |
+
|
942 |
+
});
|
943 |
+
</script>
|
944 |
+
|
945 |
+
<?php }
|
946 |
+
}
|
947 |
+
|
948 |
+
|
949 |
+
function sfsi_plus_getdomain($url)
|
950 |
+
{
|
951 |
+
$pieces = parse_url($url);
|
952 |
+
$domain = isset($pieces['host']) ? $pieces['host'] : '';
|
953 |
+
if (preg_match('/(?P<domain>[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i', $domain, $regs)) {
|
954 |
+
return $regs['domain'];
|
955 |
+
}
|
956 |
+
return false;
|
957 |
+
}
|
958 |
+
|
959 |
+
// create a scheduled event (if it does not exist already)
|
960 |
+
function sfsi_plus_sf_instagram_count_fetcher()
|
961 |
+
{
|
962 |
+
$sfsi_plus_SocialHelper = new sfsi_plus_SocialHelper();
|
963 |
+
$feed_id = sanitize_text_field(get_option('sfsi_plus_feed_id', false));
|
964 |
+
return $sfsi_plus_SocialHelper->SFSI_getFeedSubscriberFetch();
|
965 |
+
}
|
966 |
+
function sfsi_plus_cronstarter_activation()
|
967 |
+
{
|
968 |
+
// sfsi_plus_write_log(wp_next_scheduled( 'sfsi_plus_sf_instagram_count_fetcher' ));
|
969 |
+
if (!wp_next_scheduled('sfsi_plus_sf_instagram_count_fetcher')) {
|
970 |
+
wp_schedule_event(time(), 'daily', 'sfsi_plus_sf_instagram_count_fetcher');
|
971 |
+
}
|
972 |
+
}
|
973 |
+
// and make sure it's called whenever WordPress loads
|
974 |
+
add_action('wp', 'sfsi_plus_cronstarter_activation');
|
975 |
+
|
976 |
+
/* redirect setting page hook */
|
977 |
+
add_action('admin_init', 'sfsi_plus_plugin_redirect');
|
978 |
+
function sfsi_plus_plugin_redirect()
|
979 |
+
{
|
980 |
+
if (get_option('sfsi_plus_plugin_do_activation_redirect', false)) {
|
981 |
+
delete_option('sfsi_plus_plugin_do_activation_redirect');
|
982 |
+
wp_redirect(admin_url('admin.php?page=sfsi-plus-options'));
|
983 |
+
}
|
984 |
+
}
|
985 |
+
function sfsi_plus_curl_error_notification()
|
986 |
+
{
|
987 |
+
if (get_option("sfsi_plus_curlErrorNotices") == "yes") {
|
988 |
+
|
989 |
+
?>
|
990 |
+
<script>
|
991 |
+
jQuery(document).ready(function(e) {
|
992 |
+
jQuery(".sfsi_plus_curlerror_cross").click(function() {
|
993 |
+
SFSI.ajax({
|
994 |
+
url: sfsi_plus_ajax_object.ajax_url,
|
995 |
+
type: "post",
|
996 |
+
data: {
|
997 |
+
action: "sfsiplus_curlerrornotification",
|
998 |
+
nonce: '<?php echo wp_create_nonce('
|
999 |
+
plus_curlerrornotification '); ?>'
|
1000 |
+
},
|
1001 |
+
success: function(msg) {
|
1002 |
+
jQuery(".sfsiplus_curlerror").hide("fast");
|
1003 |
+
|
1004 |
+
}
|
1005 |
+
});
|
1006 |
+
});
|
1007 |
+
});
|
1008 |
+
</script>
|
1009 |
+
|
1010 |
+
<div class="sfsiplus_curlerror">
|
1011 |
+
<?php _e('We noticed that your site returns a cURL error («Error: ', SFSI_PLUS_DOMAIN); ?>
|
1012 |
+
<?php echo ucfirst(get_option("sfsi_plus_curlErrorMessage")); ?>
|
1013 |
+
<?php _e('»). This mean that it cannot send a notification to SpecificFeeds.com when a new post is published. Therefore this email-feature doesn’t work. However there are several solutions for this, please visit our FAQ to see the solutions («Perceived bugs» => «cURL error messages»): ', SFSI_PLUS_DOMAIN); ?>
|
1014 |
+
<a href="https://www.ultimatelysocial.com/faq/" target="_new">
|
1015 |
+
<?php _e('www.ultimatelysocial.com/faq', SFSI_PLUS_DOMAIN); ?>
|
1016 |
+
</a>
|
1017 |
+
<div class="sfsi_plus_curlerror_cross"><?php _e('Dismiss', SFSI_PLUS_DOMAIN); ?></div>
|
1018 |
+
</div>
|
1019 |
+
<?php
|
1020 |
+
}
|
1021 |
+
}
|
1022 |
+
|
1023 |
+
// ********************************* Link to support forum for different languages STARTS *******************************//
|
1024 |
+
|
1025 |
+
function sfsi_plus_get_language_notice_text()
|
1026 |
+
{
|
1027 |
+
|
1028 |
+
$currLang = get_locale();
|
1029 |
+
$text = '';
|
1030 |
+
|
1031 |
+
switch ($currLang) {
|
1032 |
+
|
1033 |
+
// Arabic
|
1034 |
+
case 'ar':
|
1035 |
+
|
1036 |
+
$text = "hal tatakalam alearabia? 'iidha kanat ladayk 'asyilat hawl almukawan al'iidafii l Ultimate Social Media , aitruh sualik fi muntadaa aldaem , sanuhawil alrada biallughat alearabiat: <a target='_blank' href='https://goo.gl/o42Beq'><b>'unqur huna</b></a>";
|
1037 |
+
break;
|
1038 |
+
|
1039 |
+
// Chinese - simplified
|
1040 |
+
case 'zh-Hans':
|
1041 |
+
|
1042 |
+
$text = "你会说中文吗?如果您有关于Ultimate Social Media插件的问题,请在支持论坛中提出您的问题,我们将尝试用中文回复:<a target='_blank' href='https://goo.gl/o42Beq'><b>点击此处</b></a>";
|
1043 |
+
break;
|
1044 |
+
|
1045 |
+
// Chinese - traditional
|
1046 |
+
case 'zh-Hant':
|
1047 |
+
|
1048 |
+
$text = "你會說中文嗎?如果您有關於Ultimate Social Media插件的問題,請在支持論壇中提出您的問題,我們將嘗試用中文回复:<a target='_blank' href='https://goo.gl/o42Beq'><b>點擊此處</b></a>";
|
1049 |
+
break;
|
1050 |
+
|
1051 |
+
// Dutch, Dutch (Belgium)
|
1052 |
+
case 'nl_NL':
|
1053 |
+
case 'nl_BE':
|
1054 |
+
$text = "Jij spreekt Nederlands? Als je vragen hebt over de Ultimate Social Media-plug-in, stel je vraag in het ondersteuningsforum, we zullen proberen in het Nederlands te antwoorden: <a target='_blank' href='https://goo.gl/o42Beq'>klik hier</a>";
|
1055 |
+
break;
|
1056 |
+
|
1057 |
+
// French (Belgium), French (France)
|
1058 |
+
case 'fr_BE':
|
1059 |
+
case 'fr_FR':
|
1060 |
+
|
1061 |
+
$text = "Vous parlez français? Si vous avez des questions sur le plugin Ultimate Social Media, posez votre question sur le forum de support, nous essaierons de répondre en français: <a target='_blank' href='https://goo.gl/o42Beq'>Cliquez ici</a>";
|
1062 |
+
break;
|
1063 |
+
|
1064 |
+
// German, German (Switzerland)
|
1065 |
+
case 'de':
|
1066 |
+
case 'de_CH':
|
1067 |
+
|
1068 |
+
$text = "Du sprichst Deutsch? Wenn Du Fragen zum Ultimate Social Media-Plugins hast, einfach im Support Forum fragen. Wir antworten auch auf Deutsch! <a target='_blank' href='https://goo.gl/o42Beq'>Klicke hier</a>";
|
1069 |
+
break;
|
1070 |
+
|
1071 |
+
// Greek
|
1072 |
+
case 'el':
|
1073 |
+
|
1074 |
+
$text = "Μιλάτε Ελληνικά? Αν έχετε ερωτήσεις σχετικά με το plugin Ultimate Social Media, ρωτήστε την ερώτησή σας στο φόρουμ υποστήριξης, θα προσπαθήσουμε να απαντήσουμε στα ελληνικά: <a target='_blank' href='https://goo.gl/o42Beq'>Κάντε κλικ εδώ</a>";
|
1075 |
+
break;
|
1076 |
+
|
1077 |
+
// Hebrew
|
1078 |
+
case 'he_IL':
|
1079 |
+
|
1080 |
+
$text = "אתה מדבר עברית? אם יש לך שאלות על תוסף המדיה החברתית האולטימטיבית, שאל את השאלה שלך בפורום התמיכה, ננסה לענות בעברית: <a target='_blank' href='https://goo.gl/o42Beq'>לחץ כאן</a>";
|
1081 |
+
break;
|
1082 |
+
|
1083 |
+
// Hindi
|
1084 |
+
case 'hi_IN':
|
1085 |
+
|
1086 |
+
$text = "आप हिंदी बोलते हो? यदि आपके पास अल्टीमेट सोशल मीडिया प्लगइन के बारे में कोई प्रश्न है, तो समर्थन फोरम में अपना प्रश्न पूछें, हम हिंदी में जवाब देने का प्रयास करेंगे: <a target='_blank' href='https://goo.gl/o42Beq'>यहां क्लिक करें</a>";
|
1087 |
+
break;
|
1088 |
+
|
1089 |
+
// Indonesian
|
1090 |
+
case 'id':
|
1091 |
+
|
1092 |
+
$text = "Anda berbicara bahasa Indonesia? Jika Anda memiliki pertanyaan tentang plugin Ultimate Social Media, ajukan pertanyaan Anda di Forum Dukungan, kami akan mencoba menjawab dalam Bahasa Indonesia: <a target='_blank' href='https://goo.gl/o42Beq'>Klik di sini</a>";
|
1093 |
+
|
1094 |
+
break;
|
1095 |
+
|
1096 |
+
// Italian
|
1097 |
+
case 'it_IT':
|
1098 |
+
|
1099 |
+
$text = "Tu parli italiano? Se hai domande sul plugin Ultimate Social Media, fai la tua domanda nel Forum di supporto, cercheremo di rispondere in italiano: <a target='_blank' href='https://goo.gl/o42Beq'>clicca qui</a>";
|
1100 |
+
|
1101 |
+
break;
|
1102 |
+
|
1103 |
+
// Japanese
|
1104 |
+
case 'ja':
|
1105 |
+
|
1106 |
+
$text = "あなたは日本語を話しますか?アルティメットソーシャルメディアのプラグインに関する質問がある場合は、サポートフォーラムで質問してください。日本語で対応しようと思っています:<a target='_blank' href='https://goo.gl/o42Beq'>ここをクリック</a>";
|
1107 |
+
|
1108 |
+
break;
|
1109 |
+
|
1110 |
+
// Korean
|
1111 |
+
case 'ko_KR ':
|
1112 |
+
|
1113 |
+
$text = "한국어를 할 줄 아세요? 궁극적 인 소셜 미디어 플러그인에 대해 궁금한 점이 있으면 지원 포럼에서 질문하십시오. 한국어로 답변하려고합니다 : <a target='_blank' href='https://goo.gl/o42Beq'>여기를 클릭하십시오.</a>";
|
1114 |
+
|
1115 |
+
break;
|
1116 |
+
|
1117 |
+
// Persian, Persian (Afghanistan)
|
1118 |
+
case 'fa_IR':
|
1119 |
+
case 'fa_AF':
|
1120 |
+
|
1121 |
+
$text = "شما فارسی صحبت می کنید؟ اگر سوالی در مورد پلاگین رسانه Ultimate Social دارید، سوال خود را در انجمن پشتیبانی بپرسید، سعی خواهیم کرد به فارسی پاسخ دهید: <a target='_blank' href='https://goo.gl/o42Beq'>اینجا را کلیک کنید</a>";
|
1122 |
+
|
1123 |
+
break;
|
1124 |
+
|
1125 |
+
// Polish
|
1126 |
+
|
1127 |
+
case 'pl_PL':
|
1128 |
+
$text = "Mówisz po polsku? Jeśli masz pytania dotyczące wtyczki Ultimate Social Media, zadaj pytanie na Forum pomocy technicznej, postaramy się odpowiedzieć po polsku: <a target='_blank' href='https://goo.gl/o42Beq'>Kliknij tutaj</a>";
|
1129 |
+
break;
|
1130 |
+
|
1131 |
+
//Portuguese (Brazil), Portuguese (Portugal)
|
1132 |
+
|
1133 |
+
case 'pt_BR':
|
1134 |
+
case 'pt_PT':
|
1135 |
+
|
1136 |
+
$text = "Você fala português? Se você tiver dúvidas sobre o plug-in Ultimate Social Media, faça sua pergunta no Fórum de suporte, tentaremos responder em português: <a target='_blank' href='https://goo.gl/o42Beq'>Clique aqui</a>";
|
1137 |
+
|
1138 |
+
break;
|
1139 |
+
|
1140 |
+
// Russian, Russian (Ukraine)
|
1141 |
+
case 'ru_RU':
|
1142 |
+
case 'ru_UA':
|
1143 |
+
|
1144 |
+
$text = "Ты говоришь по-русски? Если у вас есть вопросы о плагине Ultimate Social Media, задайте свой вопрос в форуме поддержки, мы постараемся ответить на русский: <a target='_blank' href='https://goo.gl/o42Beq'>Нажмите здесь</a>";
|
1145 |
+
|
1146 |
+
break;
|
1147 |
+
|
1148 |
+
/* Spanish (Argentina), Spanish (Chile), Spanish (Colombia), Spanish (Mexico),
|
1149 |
+
Spanish (Peru), Spanish (Puerto Rico), Spanish (Spain), Spanish (Venezuela) */
|
1150 |
+
|
1151 |
+
case 'es_AR':
|
1152 |
+
case 'es_CL':
|
1153 |
+
case 'es_CO':
|
1154 |
+
case 'es_MX':
|
1155 |
+
case 'es_PE':
|
1156 |
+
case 'es_PR':
|
1157 |
+
case 'es_ES':
|
1158 |
+
case 'es_VE':
|
1159 |
+
|
1160 |
+
$text = "¿Tu hablas español? Si tiene alguna pregunta sobre el complemento Ultimate Social Media, formule su pregunta en el foro de soporte, intentaremos responder en español: <a target='_blank' href='https://goo.gl/o42Beq'>haga clic aquí</a>";
|
1161 |
+
break;
|
1162 |
+
|
1163 |
+
// Swedish
|
1164 |
+
|
1165 |
+
case 'sv_SE':
|
1166 |
+
|
1167 |
+
$text = "Pratar du svenska? Om du har frågor om programmet Ultimate Social Media, fråga din fråga i supportforumet, vi försöker svara på svenska: <a target='_blank' href='https://goo.gl/o42Beq'>Klicka här</a>";
|
1168 |
+
break;
|
1169 |
+
|
1170 |
+
// Turkish
|
1171 |
+
|
1172 |
+
case 'tr_TR':
|
1173 |
+
$text = "Sen Türkçe konuş? Nihai Sosyal Medya eklentisi hakkında sorularınız varsa, sorunuza Destek Forumu'nda sorun, Türkçe olarak cevap vermeye çalışacağız: <a target='_blank' href='https://goo.gl/o42Beq'>Tıklayın</a>";
|
1174 |
+
break;
|
1175 |
+
|
1176 |
+
// Ukrainian
|
1177 |
+
|
1178 |
+
case 'uk':
|
1179 |
+
$text = "Ви говорите по-українськи? Якщо у вас є запитання про плагін Ultimate Social Media, задайте своє питання на Форумі підтримки, ми спробуємо відповісти українською: <a target='_blank' href='https://goo.gl/o42Beq'>натисніть тут</a>";
|
1180 |
+
break;
|
1181 |
+
|
1182 |
+
// Vietnamese
|
1183 |
+
|
1184 |
+
case 'vi':
|
1185 |
+
$text = "Bạn nói tiếng việt không Nếu bạn có câu hỏi về plugin Ultimate Social Media, hãy đặt câu hỏi của bạn trong Diễn đàn hỗ trợ, chúng tôi sẽ cố gắng trả lời bằng tiếng Việt: <a target='_blank' href='https://goo.gl/o42Beq'>Nhấp vào đây</a>";
|
1186 |
+
break;
|
1187 |
+
}
|
1188 |
+
|
1189 |
+
return $text;
|
1190 |
+
}
|
1191 |
+
|
1192 |
+
function sfsi_plus_language_notice()
|
1193 |
+
{
|
1194 |
+
|
1195 |
+
if (isset($_GET['page']) && "sfsi-plus-options" == $_GET['page']) :
|
1196 |
+
|
1197 |
+
$langText = sfsi_plus_get_language_notice_text();
|
1198 |
+
$isDismissed = get_option('sfsi_plus_lang_notice_dismissed');
|
1199 |
+
|
1200 |
+
if (!empty($langText) && false == $isDismissed) { ?>
|
1201 |
+
|
1202 |
+
<div id="sfsi_plus_langnotice" class="notice notice-info">
|
1203 |
+
|
1204 |
+
<p><?php _e($langText, SFSI_PLUS_DOMAIN); ?></p>
|
1205 |
+
|
1206 |
+
<button type="button" class="sfsi-notice-dismiss notice-dismiss"></button>
|
1207 |
+
|
1208 |
+
</div>
|
1209 |
+
|
1210 |
+
<?php } ?>
|
1211 |
+
|
1212 |
+
<?php endif;
|
1213 |
+
}
|
1214 |
+
|
1215 |
+
|
1216 |
+
function sfsi_plus_dismiss_lang_notice()
|
1217 |
+
{
|
1218 |
+
if (!wp_verify_nonce($_POST['nonce'], "plus_dismiss_lang_notice")) {
|
1219 |
+
echo json_encode(array('res' => "error"));
|
1220 |
+
exit;
|
1221 |
+
}
|
1222 |
+
if (!current_user_can('manage_options')) {
|
1223 |
+
echo json_encode(array('res' => 'not allowed'));
|
1224 |
+
die();
|
1225 |
+
}
|
1226 |
+
echo update_option('sfsi_plus_lang_notice_dismissed', true) ? "true" : "false";
|
1227 |
+
die;
|
1228 |
+
}
|
1229 |
+
|
1230 |
+
add_action('wp_ajax_sfsi_plus_dismiss_lang_notice', 'sfsi_plus_dismiss_lang_notice');
|
1231 |
+
|
1232 |
+
// ********************************* Link to support forum for different languages CLOSES *******************************//
|
1233 |
+
|
1234 |
+
|
1235 |
+
// ********************************* Link to support forum left of every Save button STARTS *******************************//
|
1236 |
+
|
1237 |
+
function sfsi_plus_ask_for_help($viewNumber)
|
1238 |
+
{ ?>
|
1239 |
+
|
1240 |
+
<div class="sfsi_plus_askforhelp askhelpInview<?php echo $viewNumber; ?>">
|
1241 |
+
|
1242 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . "images/questionmark.png" ?>" />
|
1243 |
+
|
1244 |
+
<span>Questions? <a target="_blank" href="#" onclick="event.preventDefault();sfsi_plus_open_chat(event)"><b>Ask us</b></a></span>
|
1245 |
+
|
1246 |
+
</div>
|
1247 |
+
|
1248 |
+
<?php }
|
1249 |
+
|
1250 |
+
// ********************************* Link to support forum left of every Save button CLOSES *******************************//
|
1251 |
+
|
1252 |
+
|
1253 |
+
// ********************************* Notice for error reporting STARTS *******************************//
|
1254 |
+
|
1255 |
+
function sfsi_plus_error_reporting_notice()
|
1256 |
+
{
|
1257 |
+
|
1258 |
+
if (is_admin()) :
|
1259 |
+
|
1260 |
+
$sfsi_error_reporting_notice_txt = 'We noticed that you have set error reporting to "yes" in wp-config. Our plugin (Ultimate Social Media Plus) switches this to "off" so that no errors are displayed (which may also impact error messages from your theme or other plugins). If you don\'t want that, please select the respective option under question 6 (at the bottom).';
|
1261 |
+
|
1262 |
+
$isDismissed = get_option('sfsi_pplus_error_reporting_notice_dismissed', false);
|
1263 |
+
|
1264 |
+
$option5 = unserialize(get_option('sfsi_plus_section5_options', false));
|
1265 |
+
|
1266 |
+
$sfsi_pplus_icons_suppress_errors = isset($option5['sfsi_pplus_icons_suppress_errors']) && !empty($option5['sfsi_pplus_icons_suppress_errors']) ? $option5['sfsi_pplus_icons_suppress_errors'] : false;
|
1267 |
+
|
1268 |
+
if (isset($isDismissed) && false == $isDismissed && defined('WP_DEBUG') && false != WP_DEBUG && "yes" == $sfsi_pplus_icons_suppress_errors) { ?>
|
1269 |
+
|
1270 |
+
<div style="padding: 10px;margin-left: 0px;position: relative;" id="sfsi_error_reporting_notice" class="error notice">
|
1271 |
+
|
1272 |
+
<p><?php echo $sfsi_error_reporting_notice_txt; ?></p>
|
1273 |
+
|
1274 |
+
<button type="button" class="sfsi_pplus_error_reporting_notice-dismiss notice-dismiss"></button>
|
1275 |
+
|
1276 |
+
</div>
|
1277 |
+
|
1278 |
+
<script>
|
1279 |
+
if (typeof jQuery != 'undefined') {
|
1280 |
+
|
1281 |
+
(function sfsi_dismiss_notice(btnClass, ajaxAction, nonce) {
|
1282 |
+
|
1283 |
+
var btnClass = "." + btnClass;
|
1284 |
+
|
1285 |
+
var ajaxurl = "<?php echo admin_url('admin-ajax.php'); ?>";
|
1286 |
+
|
1287 |
+
jQuery(document).on("click", btnClass, function() {
|
1288 |
+
|
1289 |
+
jQuery.ajax({
|
1290 |
+
url: ajaxurl,
|
1291 |
+
type: "post",
|
1292 |
+
data: {
|
1293 |
+
action: ajaxAction,
|
1294 |
+
nonce: nonce
|
1295 |
+
},
|
1296 |
+
success: function(e) {
|
1297 |
+
if (false != e) {
|
1298 |
+
jQuery(btnClass).parent().remove();
|
1299 |
+
}
|
1300 |
+
}
|
1301 |
+
});
|
1302 |
+
|
1303 |
+
});
|
1304 |
+
|
1305 |
+
}("sfsi_pplus_error_reporting_notice-dismiss", "sfsi_pplus_dismiss_error_reporting_notice", "<?php echo wp_create_nonce('plus_dismiss_error_reporting_notice'); ?>"));
|
1306 |
+
}
|
1307 |
+
</script>
|
1308 |
+
|
1309 |
+
<?php } ?>
|
1310 |
+
|
1311 |
+
<?php endif;
|
1312 |
+
}
|
1313 |
+
|
1314 |
+
function sfsi_pplus_dismiss_error_reporting_notice()
|
1315 |
+
{
|
1316 |
+
if (!wp_verify_nonce($_POST['nonce'], "plus_dismiss_error_reporting_notice")) {
|
1317 |
+
echo json_encode(array('res' => "error"));
|
1318 |
+
exit;
|
1319 |
+
}
|
1320 |
+
if (!current_user_can('manage_options')) {
|
1321 |
+
echo json_encode(array('res' => 'not allowed'));
|
1322 |
+
die();
|
1323 |
+
}
|
1324 |
+
echo (string) update_option('sfsi_pplus_error_reporting_notice_dismissed', true);
|
1325 |
+
die;
|
1326 |
+
}
|
1327 |
+
add_action('wp_ajax_sfsi_pplus_dismiss_error_reporting_notice', 'sfsi_pplus_dismiss_error_reporting_notice');
|
1328 |
+
|
1329 |
+
// ********************************* Notice for error reporting CLOSE *******************************//
|
1330 |
+
|
1331 |
+
// ********************************* Notice for removal of AddThis option STARTS *******************************//
|
1332 |
+
function sfsi_plus_addThis_removal_notice()
|
1333 |
+
{
|
1334 |
+
|
1335 |
+
if (isset($_GET['page']) && "sfsi-plus-options" == $_GET['page']) :
|
1336 |
+
|
1337 |
+
$sfsi_plus_addThis_removalText = __("We removed Addthis from the plugin due to issues with GDPR, the new EU data protection regulation.", SFSI_PLUS_DOMAIN);
|
1338 |
+
|
1339 |
+
$isDismissed = get_option('sfsi_plus_addThis_icon_removal_notice_dismissed', false);
|
1340 |
+
|
1341 |
+
if (false == $isDismissed) { ?>
|
1342 |
+
|
1343 |
+
<div id="sfsi_plus_addThis_removal_notice" class="notice notice-info">
|
1344 |
+
|
1345 |
+
<p><?php echo $sfsi_plus_addThis_removalText; ?></p>
|
1346 |
+
|
1347 |
+
<button type="button" class="sfsi_plus-AddThis-notice-dismiss notice-dismiss"></button>
|
1348 |
+
|
1349 |
+
</div>
|
1350 |
+
|
1351 |
+
<?php } ?>
|
1352 |
+
|
1353 |
+
<?php endif;
|
1354 |
+
}
|
1355 |
+
|
1356 |
+
function sfsi_plus_dismiss_addthhis_removal_notice()
|
1357 |
+
{
|
1358 |
+
if (!wp_verify_nonce($_POST['nonce'], "plus_dismiss_addthhis_removal_notice")) {
|
1359 |
+
echo json_encode(array('res' => "error"));
|
1360 |
+
exit;
|
1361 |
+
}
|
1362 |
+
if (!current_user_can('manage_options')) {
|
1363 |
+
echo json_encode(array('res' => 'not allowed'));
|
1364 |
+
die();
|
1365 |
+
}
|
1366 |
+
echo update_option('sfsi_plus_addThis_icon_removal_notice_dismissed', true) ? get_option('sfsi_plus_addThis_icon_removal_notice_dismissed', false) : "false";
|
1367 |
+
die;
|
1368 |
+
}
|
1369 |
+
|
1370 |
+
add_action('wp_ajax_sfsi_plus_dismiss_addThis_icon_notice', 'sfsi_plus_dismiss_addthhis_removal_notice');
|
1371 |
+
|
1372 |
+
// ********************************* Notice for removal of AddThis option CLOSES *******************************//
|
views/sfsi_option_view1.php
CHANGED
@@ -1,690 +1,690 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
$option1 = unserialize(get_option('sfsi_plus_section1_options', false));
|
4 |
-
// var_dump($option1);
|
5 |
-
|
6 |
-
/**
|
7 |
-
* Sanitize, escape and validate values
|
8 |
-
*/
|
9 |
-
$option1['sfsi_plus_rss_display'] = (isset($option1['sfsi_plus_rss_display']))
|
10 |
-
? sanitize_text_field($option1['sfsi_plus_rss_display'])
|
11 |
-
: '';
|
12 |
-
$option1['sfsi_plus_email_display'] = (isset($option1['sfsi_plus_email_display']))
|
13 |
-
? sanitize_text_field($option1['sfsi_plus_email_display'])
|
14 |
-
: '';
|
15 |
-
$option1['sfsi_plus_facebook_display'] = (isset($option1['sfsi_plus_facebook_display']))
|
16 |
-
? sanitize_text_field($option1['sfsi_plus_facebook_display'])
|
17 |
-
: '';
|
18 |
-
$option1['sfsi_plus_twitter_display'] = (isset($option1['sfsi_plus_twitter_display']))
|
19 |
-
? sanitize_text_field($option1['sfsi_plus_twitter_display'])
|
20 |
-
: '';
|
21 |
-
$option1['sfsi_plus_youtube_display'] = (isset($option1['sfsi_plus_youtube_display']))
|
22 |
-
? sanitize_text_field($option1['sfsi_plus_youtube_display'])
|
23 |
-
: '';
|
24 |
-
$option1['sfsi_plus_pinterest_display'] = (isset($option1['sfsi_plus_pinterest_display']))
|
25 |
-
? sanitize_text_field($option1['sfsi_plus_pinterest_display'])
|
26 |
-
: '';
|
27 |
-
$option1['sfsi_plus_linkedin_display'] = (isset($option1['sfsi_plus_linkedin_display']))
|
28 |
-
? sanitize_text_field($option1['sfsi_plus_linkedin_display'])
|
29 |
-
: '';
|
30 |
-
$option1['sfsi_plus_instagram_display'] = (isset($option1['sfsi_plus_instagram_display']))
|
31 |
-
? sanitize_text_field($option1['sfsi_plus_instagram_display'])
|
32 |
-
: '';
|
33 |
-
$option1['sfsi_plus_houzz_display'] = (isset($option1['sfsi_plus_houzz_display']))
|
34 |
-
? sanitize_text_field($option1['sfsi_plus_houzz_display'])
|
35 |
-
: '';
|
36 |
-
$option1['sfsi_plus_premium_icons_box'] = (isset($option1['sfsi_plus_premium_icons_box']))
|
37 |
-
? sanitize_text_field($option1['sfsi_plus_premium_icons_box'])
|
38 |
-
: 'yes';
|
39 |
-
// var_dump(get_option('sfsi_plus_custom_icons'));
|
40 |
-
//MZ CODE START
|
41 |
-
$option1['sfsi_plus_ok_display'] = (isset($option1['sfsi_plus_ok_display'])) ? sanitize_text_field($option1['sfsi_plus_ok_display']) : 'no';
|
42 |
-
$option1['sfsi_plus_telegram_display'] = (isset($option1['sfsi_plus_telegram_display']))
|
43 |
-
? sanitize_text_field($option1['sfsi_plus_telegram_display']) : 'no';
|
44 |
-
$option1['sfsi_plus_vk_display'] = (isset($option1['sfsi_plus_vk_display']))
|
45 |
-
? sanitize_text_field($option1['sfsi_plus_vk_display']) : 'no';
|
46 |
-
$option1['sfsi_plus_wechat_display'] = (isset($option1['sfsi_plus_wechat_display'])) ? sanitize_text_field($option1['sfsi_plus_wechat_display']) : 'no';
|
47 |
-
$option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display'])) ? sanitize_text_field($option1['sfsi_plus_weibo_display']) : 'no';
|
48 |
-
//MZ CODE ENd
|
49 |
-
|
50 |
-
?>
|
51 |
-
|
52 |
-
<!-- Section 1 "Which icons do you want to show on your site? " main div Start -->
|
53 |
-
<div class="tab1">
|
54 |
-
<p class="top_txt">
|
55 |
-
<?php
|
56 |
-
_e('In general, the more icons you offer the better because people have different preferences, and more options mean that there’s something for everybody, increasing the chances that you get followed and/or shared.', SFSI_PLUS_DOMAIN);
|
57 |
-
?>
|
58 |
-
</p>
|
59 |
-
<ul class="plus_icn_listing">
|
60 |
-
<!-- RSS ICON -->
|
61 |
-
<li class="gary_bg">
|
62 |
-
<div class="radio_section tb_4_ck">
|
63 |
-
<input name="sfsi_plus_rss_display" <?php echo ($option1['sfsi_plus_rss_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_rss_display" type="checkbox" value="yes" class="styled" />
|
64 |
-
</div>
|
65 |
-
<span class="sfsicls_rs_s">
|
66 |
-
RSS
|
67 |
-
</span>
|
68 |
-
<div class="sfsiplus_right_info">
|
69 |
-
<p>
|
70 |
-
<span>
|
71 |
-
<?php _e('Strongly recommended:', SFSI_PLUS_DOMAIN); ?>
|
72 |
-
</span>
|
73 |
-
|
74 |
-
<?php _e('RSS is still popular, esp. among the tech-savvy crowd.', SFSI_PLUS_DOMAIN); ?>
|
75 |
-
|
76 |
-
<label class="expanded-area">
|
77 |
-
<?php _e('RSS stands for Really Simply Syndication and is an easy way for people to read your content. ', SFSI_PLUS_DOMAIN); ?>
|
78 |
-
<a href="http://en.wikipedia.org/wiki/RSS" target="_new" title="Syndication">
|
79 |
-
<?php _e('Learn more about RSS', SFSI_PLUS_DOMAIN); ?>
|
80 |
-
</a>.
|
81 |
-
</label>
|
82 |
-
</p>
|
83 |
-
<a href="javascript:;" class="expand-area"><?php _e('Read more', SFSI_PLUS_DOMAIN); ?></a>
|
84 |
-
</div>
|
85 |
-
</li>
|
86 |
-
<!-- END RSS ICON -->
|
87 |
-
|
88 |
-
<!-- EMAIL ICON -->
|
89 |
-
<li class="gary_bg">
|
90 |
-
<div>
|
91 |
-
<div class="radio_section tb_4_ck">
|
92 |
-
<input name="sfsi_plus_email_display" <?php echo ($option1['sfsi_plus_email_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_email_display" type="checkbox" value="yes" class="styled" />
|
93 |
-
</div>
|
94 |
-
<span class="sfsicls_email">
|
95 |
-
Email
|
96 |
-
</span>
|
97 |
-
</div>
|
98 |
-
|
99 |
-
<div class="sfsiplus_right_info">
|
100 |
-
<p>
|
101 |
-
<span>
|
102 |
-
<?php _e('Strongly recommended:', SFSI_PLUS_DOMAIN); ?>
|
103 |
-
</span>
|
104 |
-
|
105 |
-
<?php _e('Email is the most effective tool to build up followership.', SFSI_PLUS_DOMAIN); ?>
|
106 |
-
|
107 |
-
<span style="float: right;margin-right: 13px; margin-top: -3px;">
|
108 |
-
<?php if (get_option('sfsi_plus_footer_sec') == "yes") {
|
109 |
-
$nonce = wp_create_nonce("remove_plusfooter"); ?> <a style="font-size:13px;margin-left:30px;color:#777777;" href="javascript:;" class="sfsiplus_removeFooter" data-nonce="<?php echo $nonce; ?>"><?php _e('Remove credit link', SFSI_PLUS_DOMAIN); ?></a>
|
110 |
-
<?php } ?>
|
111 |
-
</span>
|
112 |
-
<label class="expanded-area">
|
113 |
-
<?php _e('Everybody uses email – that’s why it’s much more effective than social media to make people follow you', SFSI_PLUS_DOMAIN); ?>
|
114 |
-
(<a href="http://www.entrepreneur.com/article/230949" target="_new">
|
115 |
-
<?php _e('learn more', SFSI_PLUS_DOMAIN); ?>
|
116 |
-
</a>)
|
117 |
-
<?php _e('Not offering an email subscription option mean losing out on future traffic to your site.', SFSI_PLUS_DOMAIN); ?>
|
118 |
-
</label>
|
119 |
-
</p>
|
120 |
-
<a href="javascript:;" class="expand-area"><?php _e('Read more', SFSI_PLUS_DOMAIN); ?></a>
|
121 |
-
</div>
|
122 |
-
</li>
|
123 |
-
<!-- EMAIL ICON -->
|
124 |
-
|
125 |
-
<!-- FACEBOOK ICON -->
|
126 |
-
<li class="gary_bg">
|
127 |
-
<div>
|
128 |
-
|
129 |
-
<div class="radio_section tb_4_ck">
|
130 |
-
<input name="sfsi_plus_facebook_display" <?php echo ($option1['sfsi_plus_facebook_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_facebook_display" type="checkbox" value="yes" class="styled" />
|
131 |
-
</div>
|
132 |
-
<span class="sfsicls_facebook">
|
133 |
-
Facebook
|
134 |
-
</span>
|
135 |
-
</div>
|
136 |
-
|
137 |
-
<div class="sfsiplus_right_info">
|
138 |
-
<p>
|
139 |
-
<span><?php _e('Strongly recommended:', SFSI_PLUS_DOMAIN); ?></span>
|
140 |
-
<?php _e('Facebook is crucial, esp. for sharing.', SFSI_PLUS_DOMAIN); ?>
|
141 |
-
|
142 |
-
<label class="expanded-area">
|
143 |
-
<?php _e('Facebook is the giant in the social media world, and even if you don’t have a Facebook account yourself you should display this icon, so that Facebook users can share your site on Facebook.', SFSI_PLUS_DOMAIN); ?>
|
144 |
-
</label>
|
145 |
-
</p>
|
146 |
-
<a href="javascript:;" class="expand-area"><?php _e('Read more', SFSI_PLUS_DOMAIN); ?></a>
|
147 |
-
</div>
|
148 |
-
</li>
|
149 |
-
<!-- END FACEBOOK ICON -->
|
150 |
-
|
151 |
-
<!-- TWITTER ICON -->
|
152 |
-
<li class="gary_bg">
|
153 |
-
<div>
|
154 |
-
|
155 |
-
<div class="radio_section tb_4_ck">
|
156 |
-
<input name="sfsi_plus_twitter_display" <?php echo ($option1['sfsi_plus_twitter_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_twitter_display" type="checkbox" value="yes" class="styled" />
|
157 |
-
</div>
|
158 |
-
<span class="sfsicls_twt">
|
159 |
-
Twitter
|
160 |
-
</span>
|
161 |
-
</div>
|
162 |
-
<div class="sfsiplus_right_info">
|
163 |
-
<p>
|
164 |
-
<span><?php _e('Strongly recommended:', SFSI_PLUS_DOMAIN); ?></span>
|
165 |
-
<?php _e('Can have a strong promotional effect.', SFSI_PLUS_DOMAIN); ?>
|
166 |
-
|
167 |
-
<label class="expanded-area">
|
168 |
-
<?php _e('If you have a Twitter-account then adding this icon is a no-brainer. However, similar as with facebook, even if you don’t have one you should still show this icon so that Twitter-users can share your site.', SFSI_PLUS_DOMAIN); ?>
|
169 |
-
</label>
|
170 |
-
</p>
|
171 |
-
|
172 |
-
<a href="javascript:;" class="expand-area"><?php _e('Read more', SFSI_PLUS_DOMAIN); ?></a>
|
173 |
-
</div>
|
174 |
-
</li>
|
175 |
-
<!-- END TWITTER ICON -->
|
176 |
-
|
177 |
-
|
178 |
-
<!-- YOUTUBE ICON -->
|
179 |
-
<li class="vertical-align">
|
180 |
-
<div>
|
181 |
-
|
182 |
-
<div class="radio_section tb_4_ck">
|
183 |
-
<input name="sfsi_plus_youtube_display" <?php echo ($option1['sfsi_plus_youtube_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_youtube_display" type="checkbox" value="yes" class="styled" />
|
184 |
-
</div>
|
185 |
-
<span class="sfsicls_utube">
|
186 |
-
Youtube
|
187 |
-
</span>
|
188 |
-
</div>
|
189 |
-
<div class="sfsiplus_right_info">
|
190 |
-
<p>
|
191 |
-
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
192 |
-
<?php _e('Show this icon if you have a youtube account (and you should set up one if you have video content – that can increase your traffic significantly).', SFSI_PLUS_DOMAIN); ?>
|
193 |
-
</p>
|
194 |
-
</div>
|
195 |
-
</li>
|
196 |
-
<!-- END YOUTUBE ICON -->
|
197 |
-
|
198 |
-
<!-- LINKEDIN ICON -->
|
199 |
-
<li class="vertical-align">
|
200 |
-
<div>
|
201 |
-
<div class="radio_section tb_4_ck">
|
202 |
-
<input name="sfsi_plus_linkedin_display" <?php echo ($option1['sfsi_plus_linkedin_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_linkedin_display" type="checkbox" value="yes" class="styled" />
|
203 |
-
</div>
|
204 |
-
<span class="sfsicls_linkdin">
|
205 |
-
LinkedIn
|
206 |
-
</span>
|
207 |
-
</div>
|
208 |
-
<div class="sfsiplus_right_info">
|
209 |
-
<p>
|
210 |
-
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
211 |
-
<?php _e('No.1 network for business purposes. Use this icon if you’re a LinkedInner.', SFSI_PLUS_DOMAIN); ?>
|
212 |
-
</p>
|
213 |
-
</div>
|
214 |
-
</li>
|
215 |
-
<!-- END LINKEDIN ICON -->
|
216 |
-
|
217 |
-
<!-- PINTEREST ICON -->
|
218 |
-
<li class="vertical-align">
|
219 |
-
<div>
|
220 |
-
<div class="radio_section tb_4_ck">
|
221 |
-
<input name="sfsi_plus_pinterest_display" <?php echo ($option1['sfsi_plus_pinterest_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_pinterest_display" type="checkbox" value="yes" class="styled" />
|
222 |
-
</div>
|
223 |
-
<span class="sfsicls_pinterest">
|
224 |
-
Pinterest
|
225 |
-
</span>
|
226 |
-
</div>
|
227 |
-
<div class="sfsiplus_right_info">
|
228 |
-
<p>
|
229 |
-
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
230 |
-
<?php _e('Show this icon if you have a Pinterest account (and you should set up one if you publish new pictures regularly – that can increase your traffic significantly).', SFSI_PLUS_DOMAIN); ?>
|
231 |
-
</p>
|
232 |
-
</div>
|
233 |
-
</li>
|
234 |
-
<!-- END PINTEREST ICON -->
|
235 |
-
|
236 |
-
<!-- INSTAGRAM ICON -->
|
237 |
-
<li class="vertical-align">
|
238 |
-
<div>
|
239 |
-
<div class="radio_section tb_4_ck"><input name="sfsi_plus_instagram_display" <?php echo ($option1['sfsi_plus_instagram_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_instagram_display" type="checkbox" value="yes" class="styled" /></div>
|
240 |
-
<span class="sfsicls_instagram">
|
241 |
-
Instagram
|
242 |
-
</span>
|
243 |
-
</div>
|
244 |
-
<div class="sfsiplus_right_info">
|
245 |
-
<p>
|
246 |
-
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
247 |
-
<?php _e('Show this icon if you have an Instagram account.', SFSI_PLUS_DOMAIN); ?>
|
248 |
-
</p>
|
249 |
-
</div>
|
250 |
-
</li>
|
251 |
-
<!-- END INSTAGRAM ICON -->
|
252 |
-
|
253 |
-
|
254 |
-
<!-- Houzz ICON -->
|
255 |
-
<li class="vertical-align">
|
256 |
-
<div>
|
257 |
-
<div class="radio_section tb_4_ck">
|
258 |
-
<input name="sfsi_plus_houzz_display" <?php echo (isset($option1['sfsi_plus_houzz_display']) && $option1['sfsi_plus_houzz_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_houzz_display" type="checkbox" value="yes" class="styled" />
|
259 |
-
</div>
|
260 |
-
<span class="sfsicls_houzz">
|
261 |
-
Houzz
|
262 |
-
</span>
|
263 |
-
</div>
|
264 |
-
<div class="sfsiplus_right_info">
|
265 |
-
<p>
|
266 |
-
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
267 |
-
<?php _e('Show this icon if you have a Houzz account.', SFSI_PLUS_DOMAIN); ?>
|
268 |
-
|
269 |
-
<?php _e('Houzz is the No.1 site & community in the world of architecture and interior design.', SFSI_PLUS_DOMAIN); ?>
|
270 |
-
<a href="http://www.houzz.com/" target="_blank">
|
271 |
-
<?php _e('Visit Houzz', SFSI_PLUS_DOMAIN); ?>
|
272 |
-
</a>
|
273 |
-
</p>
|
274 |
-
</div>
|
275 |
-
</li>
|
276 |
-
|
277 |
-
|
278 |
-
<!-- END Houzz ICON -->
|
279 |
-
|
280 |
-
<!--MZ CODE-->
|
281 |
-
|
282 |
-
<!-- OK ICON -->
|
283 |
-
<li class="vertical-align">
|
284 |
-
<div>
|
285 |
-
<div class="radio_section tb_4_ck">
|
286 |
-
<input name="sfsi_plus_ok_display" <?php echo (isset($option1['sfsi_plus_ok_display']) && $option1['sfsi_plus_ok_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_ok_display" type="checkbox" value="yes" class="styled" />
|
287 |
-
</div>
|
288 |
-
<span class="sfsicls_ok">OK</span>
|
289 |
-
</div>
|
290 |
-
<div class="sfsiplus_right_info">
|
291 |
-
<p>
|
292 |
-
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
293 |
-
<?php _e('Show this icon if you have an OK account.', SFSI_PLUS_DOMAIN); ?>
|
294 |
-
</p>
|
295 |
-
</div>
|
296 |
-
</li>
|
297 |
-
<!-- END OK ICON -->
|
298 |
-
|
299 |
-
<!-- Telegram ICON -->
|
300 |
-
<li class="vertical-align">
|
301 |
-
<div>
|
302 |
-
<div class="radio_section tb_4_ck">
|
303 |
-
<input name="sfsi_plus_telegram_display" <?php echo (isset($option1['sfsi_plus_telegram_display']) && $option1['sfsi_plus_telegram_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_telegram_display" type="checkbox" value="yes" class="styled" />
|
304 |
-
</div>
|
305 |
-
<span class="sfsicls_telegram">Telegram</span>
|
306 |
-
</div>
|
307 |
-
<div class="sfsiplus_right_info">
|
308 |
-
<p>
|
309 |
-
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
310 |
-
<?php _e('Show this icon if you have a Telegram account.', SFSI_PLUS_DOMAIN); ?>
|
311 |
-
</p>
|
312 |
-
</div>
|
313 |
-
</li>
|
314 |
-
<!-- END Telegram ICON -->
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
<!-- VK ICON -->
|
319 |
-
<li class="vertical-align">
|
320 |
-
<div>
|
321 |
-
<div class="radio_section tb_4_ck">
|
322 |
-
<input name="sfsi_plus_vk_display" <?php echo (isset($option1['sfsi_plus_vk_display']) && $option1['sfsi_plus_vk_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_vk_display" type="checkbox" value="yes" class="styled" />
|
323 |
-
</div>
|
324 |
-
<span class="sfsicls_vk">VK</span>
|
325 |
-
</div>
|
326 |
-
<div class="sfsiplus_right_info">
|
327 |
-
<p>
|
328 |
-
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
329 |
-
<?php _e('Show this icon if you have a VK account.', SFSI_PLUS_DOMAIN); ?>
|
330 |
-
</p>
|
331 |
-
</div>
|
332 |
-
</li>
|
333 |
-
<!-- END VK ICON -->
|
334 |
-
|
335 |
-
<!-- WeChat ICON -->
|
336 |
-
<li class="vertical-align">
|
337 |
-
<div>
|
338 |
-
<div class="radio_section tb_4_ck">
|
339 |
-
<input name="sfsi_plus_wechat_display" <?php echo (isset($option1['sfsi_plus_wechat_display']) && $option1['sfsi_plus_wechat_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_wechat_display" type="checkbox" value="yes" class="styled" />
|
340 |
-
</div>
|
341 |
-
<span class="sfsicls_wechat">WeChat</span>
|
342 |
-
</div>
|
343 |
-
<div class="sfsiplus_right_info">
|
344 |
-
<p>
|
345 |
-
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
346 |
-
<?php _e('Show this icon if you have a WeChat account.', SFSI_PLUS_DOMAIN); ?>
|
347 |
-
</p>
|
348 |
-
</div>
|
349 |
-
</li>
|
350 |
-
<!-- END WeChat ICON -->
|
351 |
-
|
352 |
-
<!-- Weibo ICON -->
|
353 |
-
<li class="vertical-align">
|
354 |
-
<div>
|
355 |
-
<div class="radio_section tb_4_ck">
|
356 |
-
<input name="sfsi_plus_weibo_display" <?php echo (isset($option1['sfsi_plus_weibo_display']) && $option1['sfsi_plus_weibo_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_weibo_display" type="checkbox" value="yes" class="styled" />
|
357 |
-
</div>
|
358 |
-
<span class="sfsicls_weibo">Weibo</span>
|
359 |
-
</div>
|
360 |
-
|
361 |
-
<div class="sfsiplus_right_info">
|
362 |
-
<p>
|
363 |
-
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
364 |
-
<?php _e('Show this icon if you have a Weibo account.', SFSI_PLUS_DOMAIN); ?>
|
365 |
-
</p>
|
366 |
-
</div>
|
367 |
-
</li>
|
368 |
-
<!-- END Weibo ICON -->
|
369 |
-
|
370 |
-
<!--MZ CODE END-->
|
371 |
-
|
372 |
-
<!-- Custom icon section start here -->
|
373 |
-
|
374 |
-
<?php
|
375 |
-
if (get_option('sfsi_plus_custom_icons') == 'no') {
|
376 |
-
$icons = (isset($option1['sfsi_custom_files'])) ? unserialize($option1['sfsi_custom_files']) : array();
|
377 |
-
if (!is_array($icons)) {
|
378 |
-
$icons = array();
|
379 |
-
}
|
380 |
-
$total_icons = count($icons);
|
381 |
-
end($icons);
|
382 |
-
$endkey = key($icons);
|
383 |
-
$endkey = (isset($endkey)) ? $endkey : 0;
|
384 |
-
reset($icons);
|
385 |
-
$first_key = key($icons);
|
386 |
-
$first_key = (isset($first_key)) ? $first_key : 0;
|
387 |
-
$new_element = 0;
|
388 |
-
|
389 |
-
if ($total_icons > 0) {
|
390 |
-
$new_element = $endkey + 1;
|
391 |
-
}
|
392 |
-
}
|
393 |
-
|
394 |
-
?>
|
395 |
-
<!-- Display all custom icons -->
|
396 |
-
<?php if (get_option('sfsi_plus_custom_icons') == 'no') { ?>
|
397 |
-
<?php $count = 1;
|
398 |
-
for ($i = $first_key; $i <= $endkey; $i++) : ?>
|
399 |
-
<?php if (!empty($icons[$i])) : ?>
|
400 |
-
|
401 |
-
<?php $count++;
|
402 |
-
endif;
|
403 |
-
endfor; ?>
|
404 |
-
|
405 |
-
<!-- Create a custom icon if total uploaded icons are less than 5 -->
|
406 |
-
<?php if ($count <= 5) : ?>
|
407 |
-
<li id="plus_c<?php echo $new_element; ?>" class="plus_custom bdr_btm_non">
|
408 |
-
<a class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank">
|
409 |
-
|
410 |
-
<div class="radio_section tb_4_ck" style="opacity:0.5">
|
411 |
-
<input type="checkbox" onclick="return false; value=" yes" class="styled" disabled="true" />
|
412 |
-
</div>
|
413 |
-
|
414 |
-
<span class="plus_custom-img" style="opacity:0.5">
|
415 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/custom.png'; ?>" id="plus_CImg_<?php echo $new_element; ?>" />
|
416 |
-
</span>
|
417 |
-
|
418 |
-
<span class="custom sfsiplus_custom-txt" style="font-weight:normal;opacity:0.5;margin-left:2px">
|
419 |
-
<?php _e('Custom icon', SFSI_PLUS_DOMAIN); ?>
|
420 |
-
</span>
|
421 |
-
</a>
|
422 |
-
|
423 |
-
<div class="sfsiplus_right_info ">
|
424 |
-
<p>
|
425 |
-
<a style="color: #12a252 !important;font-weight: bold; border-bottom:none;text-decoration: none;">
|
426 |
-
<?php _e('Premium Feature:', SFSI_PLUS_DOMAIN); ?>
|
427 |
-
</a>
|
428 |
-
<?php _e('Upload a custom icon if you have other accounts/websites you want to link to.', SFSI_PLUS_DOMAIN); ?>
|
429 |
-
<a class="pop-up" style="cursor:pointer; color: #12a252 !important;border-bottom: 1px solid #12a252;text-decoration: none;" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank">
|
430 |
-
<?php _e('Get it now.', SFSI_PLUS_DOMAIN); ?>
|
431 |
-
</a>
|
432 |
-
</p>
|
433 |
-
</div>
|
434 |
-
</li>
|
435 |
-
<?php endif; ?>
|
436 |
-
<?php } ?>
|
437 |
-
<!-- END Custom icon section here -->
|
438 |
-
<?php if (get_option('sfsi_plus_custom_icons') == 'yes') { ?>
|
439 |
-
<!-- Custom icon section start here -->
|
440 |
-
<?php
|
441 |
-
$icons = (isset($option1['sfsi_custom_files'])) ? unserialize($option1['sfsi_custom_files']) : array();
|
442 |
-
if (!is_array($icons)) {
|
443 |
-
$icons = array();
|
444 |
-
}
|
445 |
-
$total_icons = count($icons);
|
446 |
-
end($icons);
|
447 |
-
$endkey = key($icons);
|
448 |
-
$endkey = (isset($endkey)) ? $endkey : 0;
|
449 |
-
reset($icons);
|
450 |
-
$first_key = key($icons);
|
451 |
-
$first_key = (isset($first_key)) ? $first_key : 0;
|
452 |
-
$new_element = 0;
|
453 |
-
|
454 |
-
if ($total_icons > 0) {
|
455 |
-
$new_element = $endkey + 1;
|
456 |
-
}
|
457 |
-
?>
|
458 |
-
<!-- Display all custom icons -->
|
459 |
-
<?php $count = 1;
|
460 |
-
for ($i = $first_key; $i <= $endkey; $i++) : ?>
|
461 |
-
<?php if (!empty($icons[$i])) : ?>
|
462 |
-
<li id="plus_c<?php echo $i; ?>" class="plus_custom">
|
463 |
-
<div class="radio_section tb_4_ck">
|
464 |
-
<input name="plussfsiICON_<?php echo $i; ?>" checked="true" type="checkbox" value="yes" class="styled" element-type="sfsiplus-cusotm-icon" />
|
465 |
-
</div>
|
466 |
-
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce('plus_deleteIcons'); ?>">
|
467 |
-
<span class="plus_custom-img">
|
468 |
-
<img class="plus_sfcm" src="<?php echo (!empty($icons[$i])) ? esc_url($icons[$i]) : SFSI_PLUS_PLUGURL . 'images/custom.png'; ?>" id="plus_CImg_<?php echo $i; ?>" />
|
469 |
-
</span>
|
470 |
-
<span class="custom sfsiplus_custom-txt">
|
471 |
-
<?php _e('Custom', SFSI_PLUS_DOMAIN); ?>
|
472 |
-
<?php echo $count; ?>
|
473 |
-
</span>
|
474 |
-
<div class="sfsiplus_right_info">
|
475 |
-
<p>
|
476 |
-
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
477 |
-
<?php _e('Upload a custom icon if you have other accounts/websites you want to link to.', SFSI_PLUS_DOMAIN); ?>
|
478 |
-
</p>
|
479 |
-
</div>
|
480 |
-
</li>
|
481 |
-
<?php $count++;
|
482 |
-
endif;
|
483 |
-
endfor; ?>
|
484 |
-
|
485 |
-
<!-- Create a custom icon if total uploaded icons are less than 5 -->
|
486 |
-
<?php if ($count <= 5) : ?>
|
487 |
-
<li id="plus_c<?php echo $new_element; ?>" class="plus_custom bdr_btm_non vertical-align">
|
488 |
-
<div>
|
489 |
-
<div class="radio_section tb_4_ck">
|
490 |
-
<input name="plussfsiICON_<?php echo $new_element; ?>" type="checkbox" value="yes" class="styled" element-type="sfsiplus-cusotm-icon" ele-type='new' />
|
491 |
-
</div>
|
492 |
-
|
493 |
-
<span class="plus_custom-img">
|
494 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/custom.png'; ?>" id="plus_CImg_<?php echo $new_element; ?>" />
|
495 |
-
</span>
|
496 |
-
|
497 |
-
<span class="custom sfsiplus_custom-txt">
|
498 |
-
<?php _e('Custom', SFSI_PLUS_DOMAIN); ?>
|
499 |
-
<?php echo $count; ?>
|
500 |
-
</span>
|
501 |
-
</div>
|
502 |
-
|
503 |
-
<div class="sfsiplus_right_info">
|
504 |
-
<p>
|
505 |
-
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
506 |
-
<?php _e('Upload a custom icon if you have other accounts/websites you want to link to.', SFSI_PLUS_DOMAIN); ?>
|
507 |
-
</p>
|
508 |
-
</div>
|
509 |
-
</li>
|
510 |
-
<?php endif; ?>
|
511 |
-
<!-- END Custom icon section here -->
|
512 |
-
<?php } ?>
|
513 |
-
|
514 |
-
|
515 |
-
</ul>
|
516 |
-
<ul>
|
517 |
-
<li class="sfsi_plus_premium_brdr_box">
|
518 |
-
<div class="sfsi_plus_prem_icons_added">
|
519 |
-
<div class="sf_si_plus_prmium_head">
|
520 |
-
<h2><?php _e('New: ', SFSI_PLUS_DOMAIN); ?><span> <?php _e('In our Premium Plugin we added icons for:', SFSI_PLUS_DOMAIN); ?></span></h2>
|
521 |
-
</div>
|
522 |
-
<div class="sfsi_plus_premium_row">
|
523 |
-
<div class="sfsi_plus_prem_cmn_rowlisting">
|
524 |
-
<span>
|
525 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/snapchat.png'; ?>" id="CImg" />
|
526 |
-
</span>
|
527 |
-
<span class="sfsicls_plus_prem_text"><?php _e('Snapchat', SFSI_PLUS_DOMAIN); ?></span>
|
528 |
-
</div>
|
529 |
-
|
530 |
-
<div class="sfsi_plus_prem_cmn_rowlisting">
|
531 |
-
<span>
|
532 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/whatsapp.png'; ?>" id="CImg" />
|
533 |
-
</span>
|
534 |
-
<span class="sfsicls_plus_prem_text"><?php _e('WhatsApp or Phone', SFSI_PLUS_DOMAIN); ?></span>
|
535 |
-
</div>
|
536 |
-
|
537 |
-
<div class="sfsi_plus_prem_cmn_rowlisting">
|
538 |
-
<span>
|
539 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/yummly.png'; ?>" id="CImg" />
|
540 |
-
</span>
|
541 |
-
<span class="sfsicls_plus_prem_text"><?php _e('Yummly', SFSI_PLUS_DOMAIN); ?></span>
|
542 |
-
</div>
|
543 |
-
<div class="sfsi_plus_prem_cmn_rowlisting">
|
544 |
-
<span>
|
545 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/yelp.png'; ?>" id="CImg" />
|
546 |
-
</span>
|
547 |
-
<span class="sfsicls_plus_prem_text"><?php _e('Yelp', SFSI_PLUS_DOMAIN); ?></span>
|
548 |
-
</div>
|
549 |
-
<div class="sfsi_plus_prem_cmn_rowlisting">
|
550 |
-
<span>
|
551 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/print.png'; ?>" id="CImg" />
|
552 |
-
</span>
|
553 |
-
<span class="sfsicls_plus_prem_text"><?php _e('Print', SFSI_PLUS_DOMAIN); ?></span>
|
554 |
-
</div>
|
555 |
-
</div>
|
556 |
-
<div class="sfsi_plus_premium_row">
|
557 |
-
<div class="sfsi_plus_prem_cmn_rowlisting">
|
558 |
-
<span>
|
559 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/soundcloud.png'; ?>" id="CImg" />
|
560 |
-
</span>
|
561 |
-
<span class="sfsicls_plus_prem_text"><?php _e('Soundcloud', SFSI_PLUS_DOMAIN); ?></span>
|
562 |
-
</div>
|
563 |
-
|
564 |
-
<div class="sfsi_plus_prem_cmn_rowlisting">
|
565 |
-
<span>
|
566 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/skype.png'; ?>" id="CImg" />
|
567 |
-
</span>
|
568 |
-
<span class="sfsicls_plus_prem_text"><?php _e('Skype', SFSI_PLUS_DOMAIN); ?></span>
|
569 |
-
</div>
|
570 |
-
<div class="sfsi_plus_prem_cmn_rowlisting">
|
571 |
-
<span>
|
572 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/flickr.png'; ?>" id="CImg" />
|
573 |
-
</span>
|
574 |
-
<span class="sfsicls_plus_prem_text"><?php _e('Flickr', SFSI_PLUS_DOMAIN); ?></span>
|
575 |
-
</div>
|
576 |
-
|
577 |
-
<div class="sfsi_plus_prem_cmn_rowlisting">
|
578 |
-
<span>
|
579 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/angieslist.png'; ?>" id="CImg" />
|
580 |
-
</span>
|
581 |
-
<span class="sfsicls_plus_prem_text"><?php _e('Angie’s List', SFSI_PLUS_DOMAIN); ?></span>
|
582 |
-
</div>
|
583 |
-
|
584 |
-
<div class="sfsi_plus_prem_cmn_rowlisting">
|
585 |
-
<span>
|
586 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/reddit.png'; ?>" id="CImg" />
|
587 |
-
</span>
|
588 |
-
<span class="sfsicls_plus_prem_text"><?php _e('Reddit', SFSI_PLUS_DOMAIN); ?></span>
|
589 |
-
</div>
|
590 |
-
</div>
|
591 |
-
<div class="sfsi_plus_premium_row">
|
592 |
-
<div class="sfsi_plus_prem_cmn_rowlisting">
|
593 |
-
<span>
|
594 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/vimeo.png'; ?>" id="CImg" />
|
595 |
-
</span>
|
596 |
-
<span class="sfsicls_plus_prem_text"><?php _e('Vimeo', SFSI_PLUS_DOMAIN); ?></span>
|
597 |
-
</div>
|
598 |
-
|
599 |
-
<div class="sfsi_plus_prem_cmn_rowlisting">
|
600 |
-
<span>
|
601 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/tumblr.png'; ?>" id="CImg" />
|
602 |
-
</span>
|
603 |
-
<span class="sfsicls_plus_prem_text"><?php _e('Tumblr', SFSI_PLUS_DOMAIN); ?></span>
|
604 |
-
</div>
|
605 |
-
<div class="sfsi_plus_prem_cmn_rowlisting">
|
606 |
-
<span>
|
607 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/buffer.png'; ?>" id="CImg" />
|
608 |
-
</span>
|
609 |
-
<span class="sfsicls_plus_prem_text"><?php _e('Buffer', SFSI_PLUS_DOMAIN); ?></span>
|
610 |
-
</div>
|
611 |
-
<div class="sfsi_plus_prem_cmn_rowlisting">
|
612 |
-
<span>
|
613 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/blogger.png'; ?>" id="CImg" />
|
614 |
-
</span>
|
615 |
-
<span class="sfsicls_plus_prem_text"><?php _e('Blogger', SFSI_PLUS_DOMAIN); ?></span>
|
616 |
-
</div>
|
617 |
-
|
618 |
-
<div class="sfsi_plus_prem_cmn_rowlisting">
|
619 |
-
<span>
|
620 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/steam.png'; ?>" id="CImg" />
|
621 |
-
</span>
|
622 |
-
<span class="sfsicls_plus_prem_text"><?php _e('Steam', SFSI_PLUS_DOMAIN); ?></span>
|
623 |
-
</div>
|
624 |
-
</div>
|
625 |
-
<div class="sfsi_plus_premium_row">
|
626 |
-
<div class="sfsi_plus_prem_cmn_rowlisting">
|
627 |
-
<span>
|
628 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/xing.png'; ?>" id="CImg" />
|
629 |
-
</span>
|
630 |
-
<span class="sfsicls_plus_prem_text"><?php _e('Xing', SFSI_PLUS_DOMAIN); ?></span>
|
631 |
-
</div>
|
632 |
-
|
633 |
-
<div class="sfsi_plus_prem_cmn_rowlisting">
|
634 |
-
<span>
|
635 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/amazon.png'; ?>" id="CImg" />
|
636 |
-
</span>
|
637 |
-
<span class="sfsicls_plus_prem_text"><?php _e('Amazon', SFSI_PLUS_DOMAIN); ?></span>
|
638 |
-
</div>
|
639 |
-
<div class="sfsi_plus_prem_cmn_rowlisting">
|
640 |
-
<span>
|
641 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/twitch.png'; ?>" id="CImg" />
|
642 |
-
</span>
|
643 |
-
<span class="sfsicls_plus_prem_text"><?php _e('Twitch', SFSI_PLUS_DOMAIN); ?></span>
|
644 |
-
</div>
|
645 |
-
<div class="sfsi_plus_prem_cmn_rowlisting">
|
646 |
-
<span>
|
647 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/messenger.png'; ?>" id="CImg" />
|
648 |
-
</span>
|
649 |
-
<span class="sfsicls_plus_prem_text"><?php _e('Messenger', SFSI_PLUS_DOMAIN); ?></span>
|
650 |
-
</div>
|
651 |
-
</div>
|
652 |
-
<div class="sfsi_plus_need_another_one_link">
|
653 |
-
<!-- <p><?php _e('Need another one?', SFSI_PLUS_DOMAIN); ?><a href="mailto:biz@ultimatelysocial.com" target="_blank"> <?php _e('Tell us', SFSI_PLUS_DOMAIN); ?></a></p> -->
|
654 |
-
</div>
|
655 |
-
<div class="sfsi_plus_need_another_tell_us">
|
656 |
-
<a href="https://www.ultimatelysocial.com/all-platforms/" target="_blank"><?php _e('...and many more!', SFSI_PLUS_DOMAIN); ?></a>
|
657 |
-
<a class="pop-up" style="cursor:pointer" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank">
|
658 |
-
<?php _e(' Go premium now', SFSI_PLUS_DOMAIN); ?>
|
659 |
-
</a>
|
660 |
-
<!-- <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=more_platforms&utm_medium=banner" target="_blank"><?php _e('See all features Premium Plugin', SFSI_PLUS_DOMAIN); ?></a>
|
661 |
-
-->
|
662 |
-
</div>
|
663 |
-
</div>
|
664 |
-
</li>
|
665 |
-
</ul>
|
666 |
-
<input type="hidden" value="<?php echo SFSI_PLUS_PLUGURL ?>" id="plugin_url" />
|
667 |
-
<input type="hidden" value="" id="upload_id" />
|
668 |
-
|
669 |
-
<?php sfsi_plus_ask_for_help(1); ?>
|
670 |
-
|
671 |
-
<!-- SAVE BUTTON SECTION -->
|
672 |
-
<div class="save_button tab_1_sav">
|
673 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
|
674 |
-
<?php $nonce = wp_create_nonce("update_plus_step1"); ?>
|
675 |
-
<a href="javascript:;" id="sfsi_plus_save1" title="Save" data-nonce="<?php echo $nonce; ?>">
|
676 |
-
<?php _e('Save', SFSI_PLUS_DOMAIN); ?>
|
677 |
-
</a>
|
678 |
-
</div>
|
679 |
-
<!-- END SAVE BUTTON SECTION -->
|
680 |
-
|
681 |
-
<a class="sfsiColbtn closeSec" href="javascript:;">
|
682 |
-
<?php _e('Collapse area', SFSI_PLUS_DOMAIN); ?>
|
683 |
-
</a>
|
684 |
-
|
685 |
-
<!-- ERROR AND SUCCESS MESSAGE AREA-->
|
686 |
-
<p class="red_txt errorMsg" style="display:none"> </p>
|
687 |
-
<p class="green_txt sucMsg" style="display:none"> </p>
|
688 |
-
|
689 |
-
</div>
|
690 |
<!-- END Section 1 "Which icons do you want to show on your site? " main div-->
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$option1 = unserialize(get_option('sfsi_plus_section1_options', false));
|
4 |
+
// var_dump($option1);
|
5 |
+
|
6 |
+
/**
|
7 |
+
* Sanitize, escape and validate values
|
8 |
+
*/
|
9 |
+
$option1['sfsi_plus_rss_display'] = (isset($option1['sfsi_plus_rss_display']))
|
10 |
+
? sanitize_text_field($option1['sfsi_plus_rss_display'])
|
11 |
+
: '';
|
12 |
+
$option1['sfsi_plus_email_display'] = (isset($option1['sfsi_plus_email_display']))
|
13 |
+
? sanitize_text_field($option1['sfsi_plus_email_display'])
|
14 |
+
: '';
|
15 |
+
$option1['sfsi_plus_facebook_display'] = (isset($option1['sfsi_plus_facebook_display']))
|
16 |
+
? sanitize_text_field($option1['sfsi_plus_facebook_display'])
|
17 |
+
: '';
|
18 |
+
$option1['sfsi_plus_twitter_display'] = (isset($option1['sfsi_plus_twitter_display']))
|
19 |
+
? sanitize_text_field($option1['sfsi_plus_twitter_display'])
|
20 |
+
: '';
|
21 |
+
$option1['sfsi_plus_youtube_display'] = (isset($option1['sfsi_plus_youtube_display']))
|
22 |
+
? sanitize_text_field($option1['sfsi_plus_youtube_display'])
|
23 |
+
: '';
|
24 |
+
$option1['sfsi_plus_pinterest_display'] = (isset($option1['sfsi_plus_pinterest_display']))
|
25 |
+
? sanitize_text_field($option1['sfsi_plus_pinterest_display'])
|
26 |
+
: '';
|
27 |
+
$option1['sfsi_plus_linkedin_display'] = (isset($option1['sfsi_plus_linkedin_display']))
|
28 |
+
? sanitize_text_field($option1['sfsi_plus_linkedin_display'])
|
29 |
+
: '';
|
30 |
+
$option1['sfsi_plus_instagram_display'] = (isset($option1['sfsi_plus_instagram_display']))
|
31 |
+
? sanitize_text_field($option1['sfsi_plus_instagram_display'])
|
32 |
+
: '';
|
33 |
+
$option1['sfsi_plus_houzz_display'] = (isset($option1['sfsi_plus_houzz_display']))
|
34 |
+
? sanitize_text_field($option1['sfsi_plus_houzz_display'])
|
35 |
+
: '';
|
36 |
+
$option1['sfsi_plus_premium_icons_box'] = (isset($option1['sfsi_plus_premium_icons_box']))
|
37 |
+
? sanitize_text_field($option1['sfsi_plus_premium_icons_box'])
|
38 |
+
: 'yes';
|
39 |
+
// var_dump(get_option('sfsi_plus_custom_icons'));
|
40 |
+
//MZ CODE START
|
41 |
+
$option1['sfsi_plus_ok_display'] = (isset($option1['sfsi_plus_ok_display'])) ? sanitize_text_field($option1['sfsi_plus_ok_display']) : 'no';
|
42 |
+
$option1['sfsi_plus_telegram_display'] = (isset($option1['sfsi_plus_telegram_display']))
|
43 |
+
? sanitize_text_field($option1['sfsi_plus_telegram_display']) : 'no';
|
44 |
+
$option1['sfsi_plus_vk_display'] = (isset($option1['sfsi_plus_vk_display']))
|
45 |
+
? sanitize_text_field($option1['sfsi_plus_vk_display']) : 'no';
|
46 |
+
$option1['sfsi_plus_wechat_display'] = (isset($option1['sfsi_plus_wechat_display'])) ? sanitize_text_field($option1['sfsi_plus_wechat_display']) : 'no';
|
47 |
+
$option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display'])) ? sanitize_text_field($option1['sfsi_plus_weibo_display']) : 'no';
|
48 |
+
//MZ CODE ENd
|
49 |
+
|
50 |
+
?>
|
51 |
+
|
52 |
+
<!-- Section 1 "Which icons do you want to show on your site? " main div Start -->
|
53 |
+
<div class="tab1">
|
54 |
+
<p class="top_txt">
|
55 |
+
<?php
|
56 |
+
_e('In general, the more icons you offer the better because people have different preferences, and more options mean that there’s something for everybody, increasing the chances that you get followed and/or shared.', SFSI_PLUS_DOMAIN);
|
57 |
+
?>
|
58 |
+
</p>
|
59 |
+
<ul class="plus_icn_listing">
|
60 |
+
<!-- RSS ICON -->
|
61 |
+
<li class="gary_bg">
|
62 |
+
<div class="radio_section tb_4_ck">
|
63 |
+
<input name="sfsi_plus_rss_display" <?php echo ($option1['sfsi_plus_rss_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_rss_display" type="checkbox" value="yes" class="styled" />
|
64 |
+
</div>
|
65 |
+
<span class="sfsicls_rs_s">
|
66 |
+
RSS
|
67 |
+
</span>
|
68 |
+
<div class="sfsiplus_right_info">
|
69 |
+
<p>
|
70 |
+
<span>
|
71 |
+
<?php _e('Strongly recommended:', SFSI_PLUS_DOMAIN); ?>
|
72 |
+
</span>
|
73 |
+
|
74 |
+
<?php _e('RSS is still popular, esp. among the tech-savvy crowd.', SFSI_PLUS_DOMAIN); ?>
|
75 |
+
|
76 |
+
<label class="expanded-area">
|
77 |
+
<?php _e('RSS stands for Really Simply Syndication and is an easy way for people to read your content. ', SFSI_PLUS_DOMAIN); ?>
|
78 |
+
<a href="http://en.wikipedia.org/wiki/RSS" target="_new" title="Syndication">
|
79 |
+
<?php _e('Learn more about RSS', SFSI_PLUS_DOMAIN); ?>
|
80 |
+
</a>.
|
81 |
+
</label>
|
82 |
+
</p>
|
83 |
+
<a href="javascript:;" class="expand-area"><?php _e('Read more', SFSI_PLUS_DOMAIN); ?></a>
|
84 |
+
</div>
|
85 |
+
</li>
|
86 |
+
<!-- END RSS ICON -->
|
87 |
+
|
88 |
+
<!-- EMAIL ICON -->
|
89 |
+
<li class="gary_bg">
|
90 |
+
<div>
|
91 |
+
<div class="radio_section tb_4_ck">
|
92 |
+
<input name="sfsi_plus_email_display" <?php echo ($option1['sfsi_plus_email_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_email_display" type="checkbox" value="yes" class="styled" />
|
93 |
+
</div>
|
94 |
+
<span class="sfsicls_email">
|
95 |
+
Email
|
96 |
+
</span>
|
97 |
+
</div>
|
98 |
+
|
99 |
+
<div class="sfsiplus_right_info">
|
100 |
+
<p>
|
101 |
+
<span>
|
102 |
+
<?php _e('Strongly recommended:', SFSI_PLUS_DOMAIN); ?>
|
103 |
+
</span>
|
104 |
+
|
105 |
+
<?php _e('Email is the most effective tool to build up followership.', SFSI_PLUS_DOMAIN); ?>
|
106 |
+
|
107 |
+
<span style="float: right;margin-right: 13px; margin-top: -3px;">
|
108 |
+
<?php if (get_option('sfsi_plus_footer_sec') == "yes") {
|
109 |
+
$nonce = wp_create_nonce("remove_plusfooter"); ?> <a style="font-size:13px;margin-left:30px;color:#777777;" href="javascript:;" class="sfsiplus_removeFooter" data-nonce="<?php echo $nonce; ?>"><?php _e('Remove credit link', SFSI_PLUS_DOMAIN); ?></a>
|
110 |
+
<?php } ?>
|
111 |
+
</span>
|
112 |
+
<label class="expanded-area">
|
113 |
+
<?php _e('Everybody uses email – that’s why it’s much more effective than social media to make people follow you', SFSI_PLUS_DOMAIN); ?>
|
114 |
+
(<a href="http://www.entrepreneur.com/article/230949" target="_new">
|
115 |
+
<?php _e('learn more', SFSI_PLUS_DOMAIN); ?>
|
116 |
+
</a>)
|
117 |
+
<?php _e('Not offering an email subscription option mean losing out on future traffic to your site.', SFSI_PLUS_DOMAIN); ?>
|
118 |
+
</label>
|
119 |
+
</p>
|
120 |
+
<a href="javascript:;" class="expand-area"><?php _e('Read more', SFSI_PLUS_DOMAIN); ?></a>
|
121 |
+
</div>
|
122 |
+
</li>
|
123 |
+
<!-- EMAIL ICON -->
|
124 |
+
|
125 |
+
<!-- FACEBOOK ICON -->
|
126 |
+
<li class="gary_bg">
|
127 |
+
<div>
|
128 |
+
|
129 |
+
<div class="radio_section tb_4_ck">
|
130 |
+
<input name="sfsi_plus_facebook_display" <?php echo ($option1['sfsi_plus_facebook_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_facebook_display" type="checkbox" value="yes" class="styled" />
|
131 |
+
</div>
|
132 |
+
<span class="sfsicls_facebook">
|
133 |
+
Facebook
|
134 |
+
</span>
|
135 |
+
</div>
|
136 |
+
|
137 |
+
<div class="sfsiplus_right_info">
|
138 |
+
<p>
|
139 |
+
<span><?php _e('Strongly recommended:', SFSI_PLUS_DOMAIN); ?></span>
|
140 |
+
<?php _e('Facebook is crucial, esp. for sharing.', SFSI_PLUS_DOMAIN); ?>
|
141 |
+
|
142 |
+
<label class="expanded-area">
|
143 |
+
<?php _e('Facebook is the giant in the social media world, and even if you don’t have a Facebook account yourself you should display this icon, so that Facebook users can share your site on Facebook.', SFSI_PLUS_DOMAIN); ?>
|
144 |
+
</label>
|
145 |
+
</p>
|
146 |
+
<a href="javascript:;" class="expand-area"><?php _e('Read more', SFSI_PLUS_DOMAIN); ?></a>
|
147 |
+
</div>
|
148 |
+
</li>
|
149 |
+
<!-- END FACEBOOK ICON -->
|
150 |
+
|
151 |
+
<!-- TWITTER ICON -->
|
152 |
+
<li class="gary_bg">
|
153 |
+
<div>
|
154 |
+
|
155 |
+
<div class="radio_section tb_4_ck">
|
156 |
+
<input name="sfsi_plus_twitter_display" <?php echo ($option1['sfsi_plus_twitter_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_twitter_display" type="checkbox" value="yes" class="styled" />
|
157 |
+
</div>
|
158 |
+
<span class="sfsicls_twt">
|
159 |
+
Twitter
|
160 |
+
</span>
|
161 |
+
</div>
|
162 |
+
<div class="sfsiplus_right_info">
|
163 |
+
<p>
|
164 |
+
<span><?php _e('Strongly recommended:', SFSI_PLUS_DOMAIN); ?></span>
|
165 |
+
<?php _e('Can have a strong promotional effect.', SFSI_PLUS_DOMAIN); ?>
|
166 |
+
|
167 |
+
<label class="expanded-area">
|
168 |
+
<?php _e('If you have a Twitter-account then adding this icon is a no-brainer. However, similar as with facebook, even if you don’t have one you should still show this icon so that Twitter-users can share your site.', SFSI_PLUS_DOMAIN); ?>
|
169 |
+
</label>
|
170 |
+
</p>
|
171 |
+
|
172 |
+
<a href="javascript:;" class="expand-area"><?php _e('Read more', SFSI_PLUS_DOMAIN); ?></a>
|
173 |
+
</div>
|
174 |
+
</li>
|
175 |
+
<!-- END TWITTER ICON -->
|
176 |
+
|
177 |
+
|
178 |
+
<!-- YOUTUBE ICON -->
|
179 |
+
<li class="vertical-align">
|
180 |
+
<div>
|
181 |
+
|
182 |
+
<div class="radio_section tb_4_ck">
|
183 |
+
<input name="sfsi_plus_youtube_display" <?php echo ($option1['sfsi_plus_youtube_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_youtube_display" type="checkbox" value="yes" class="styled" />
|
184 |
+
</div>
|
185 |
+
<span class="sfsicls_utube">
|
186 |
+
Youtube
|
187 |
+
</span>
|
188 |
+
</div>
|
189 |
+
<div class="sfsiplus_right_info">
|
190 |
+
<p>
|
191 |
+
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
192 |
+
<?php _e('Show this icon if you have a youtube account (and you should set up one if you have video content – that can increase your traffic significantly).', SFSI_PLUS_DOMAIN); ?>
|
193 |
+
</p>
|
194 |
+
</div>
|
195 |
+
</li>
|
196 |
+
<!-- END YOUTUBE ICON -->
|
197 |
+
|
198 |
+
<!-- LINKEDIN ICON -->
|
199 |
+
<li class="vertical-align">
|
200 |
+
<div>
|
201 |
+
<div class="radio_section tb_4_ck">
|
202 |
+
<input name="sfsi_plus_linkedin_display" <?php echo ($option1['sfsi_plus_linkedin_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_linkedin_display" type="checkbox" value="yes" class="styled" />
|
203 |
+
</div>
|
204 |
+
<span class="sfsicls_linkdin">
|
205 |
+
LinkedIn
|
206 |
+
</span>
|
207 |
+
</div>
|
208 |
+
<div class="sfsiplus_right_info">
|
209 |
+
<p>
|
210 |
+
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
211 |
+
<?php _e('No.1 network for business purposes. Use this icon if you’re a LinkedInner.', SFSI_PLUS_DOMAIN); ?>
|
212 |
+
</p>
|
213 |
+
</div>
|
214 |
+
</li>
|
215 |
+
<!-- END LINKEDIN ICON -->
|
216 |
+
|
217 |
+
<!-- PINTEREST ICON -->
|
218 |
+
<li class="vertical-align">
|
219 |
+
<div>
|
220 |
+
<div class="radio_section tb_4_ck">
|
221 |
+
<input name="sfsi_plus_pinterest_display" <?php echo ($option1['sfsi_plus_pinterest_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_pinterest_display" type="checkbox" value="yes" class="styled" />
|
222 |
+
</div>
|
223 |
+
<span class="sfsicls_pinterest">
|
224 |
+
Pinterest
|
225 |
+
</span>
|
226 |
+
</div>
|
227 |
+
<div class="sfsiplus_right_info">
|
228 |
+
<p>
|
229 |
+
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
230 |
+
<?php _e('Show this icon if you have a Pinterest account (and you should set up one if you publish new pictures regularly – that can increase your traffic significantly).', SFSI_PLUS_DOMAIN); ?>
|
231 |
+
</p>
|
232 |
+
</div>
|
233 |
+
</li>
|
234 |
+
<!-- END PINTEREST ICON -->
|
235 |
+
|
236 |
+
<!-- INSTAGRAM ICON -->
|
237 |
+
<li class="vertical-align">
|
238 |
+
<div>
|
239 |
+
<div class="radio_section tb_4_ck"><input name="sfsi_plus_instagram_display" <?php echo ($option1['sfsi_plus_instagram_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_instagram_display" type="checkbox" value="yes" class="styled" /></div>
|
240 |
+
<span class="sfsicls_instagram">
|
241 |
+
Instagram
|
242 |
+
</span>
|
243 |
+
</div>
|
244 |
+
<div class="sfsiplus_right_info">
|
245 |
+
<p>
|
246 |
+
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
247 |
+
<?php _e('Show this icon if you have an Instagram account.', SFSI_PLUS_DOMAIN); ?>
|
248 |
+
</p>
|
249 |
+
</div>
|
250 |
+
</li>
|
251 |
+
<!-- END INSTAGRAM ICON -->
|
252 |
+
|
253 |
+
|
254 |
+
<!-- Houzz ICON -->
|
255 |
+
<li class="vertical-align">
|
256 |
+
<div>
|
257 |
+
<div class="radio_section tb_4_ck">
|
258 |
+
<input name="sfsi_plus_houzz_display" <?php echo (isset($option1['sfsi_plus_houzz_display']) && $option1['sfsi_plus_houzz_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_houzz_display" type="checkbox" value="yes" class="styled" />
|
259 |
+
</div>
|
260 |
+
<span class="sfsicls_houzz">
|
261 |
+
Houzz
|
262 |
+
</span>
|
263 |
+
</div>
|
264 |
+
<div class="sfsiplus_right_info">
|
265 |
+
<p>
|
266 |
+
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
267 |
+
<?php _e('Show this icon if you have a Houzz account.', SFSI_PLUS_DOMAIN); ?>
|
268 |
+
|
269 |
+
<?php _e('Houzz is the No.1 site & community in the world of architecture and interior design.', SFSI_PLUS_DOMAIN); ?>
|
270 |
+
<a href="http://www.houzz.com/" target="_blank">
|
271 |
+
<?php _e('Visit Houzz', SFSI_PLUS_DOMAIN); ?>
|
272 |
+
</a>
|
273 |
+
</p>
|
274 |
+
</div>
|
275 |
+
</li>
|
276 |
+
|
277 |
+
|
278 |
+
<!-- END Houzz ICON -->
|
279 |
+
|
280 |
+
<!--MZ CODE-->
|
281 |
+
|
282 |
+
<!-- OK ICON -->
|
283 |
+
<li class="vertical-align">
|
284 |
+
<div>
|
285 |
+
<div class="radio_section tb_4_ck">
|
286 |
+
<input name="sfsi_plus_ok_display" <?php echo (isset($option1['sfsi_plus_ok_display']) && $option1['sfsi_plus_ok_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_ok_display" type="checkbox" value="yes" class="styled" />
|
287 |
+
</div>
|
288 |
+
<span class="sfsicls_ok">OK</span>
|
289 |
+
</div>
|
290 |
+
<div class="sfsiplus_right_info">
|
291 |
+
<p>
|
292 |
+
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
293 |
+
<?php _e('Show this icon if you have an OK account.', SFSI_PLUS_DOMAIN); ?>
|
294 |
+
</p>
|
295 |
+
</div>
|
296 |
+
</li>
|
297 |
+
<!-- END OK ICON -->
|
298 |
+
|
299 |
+
<!-- Telegram ICON -->
|
300 |
+
<li class="vertical-align">
|
301 |
+
<div>
|
302 |
+
<div class="radio_section tb_4_ck">
|
303 |
+
<input name="sfsi_plus_telegram_display" <?php echo (isset($option1['sfsi_plus_telegram_display']) && $option1['sfsi_plus_telegram_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_telegram_display" type="checkbox" value="yes" class="styled" />
|
304 |
+
</div>
|
305 |
+
<span class="sfsicls_telegram">Telegram</span>
|
306 |
+
</div>
|
307 |
+
<div class="sfsiplus_right_info">
|
308 |
+
<p>
|
309 |
+
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
310 |
+
<?php _e('Show this icon if you have a Telegram account.', SFSI_PLUS_DOMAIN); ?>
|
311 |
+
</p>
|
312 |
+
</div>
|
313 |
+
</li>
|
314 |
+
<!-- END Telegram ICON -->
|
315 |
+
|
316 |
+
|
317 |
+
|
318 |
+
<!-- VK ICON -->
|
319 |
+
<li class="vertical-align">
|
320 |
+
<div>
|
321 |
+
<div class="radio_section tb_4_ck">
|
322 |
+
<input name="sfsi_plus_vk_display" <?php echo (isset($option1['sfsi_plus_vk_display']) && $option1['sfsi_plus_vk_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_vk_display" type="checkbox" value="yes" class="styled" />
|
323 |
+
</div>
|
324 |
+
<span class="sfsicls_vk">VK</span>
|
325 |
+
</div>
|
326 |
+
<div class="sfsiplus_right_info">
|
327 |
+
<p>
|
328 |
+
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
329 |
+
<?php _e('Show this icon if you have a VK account.', SFSI_PLUS_DOMAIN); ?>
|
330 |
+
</p>
|
331 |
+
</div>
|
332 |
+
</li>
|
333 |
+
<!-- END VK ICON -->
|
334 |
+
|
335 |
+
<!-- WeChat ICON -->
|
336 |
+
<li class="vertical-align">
|
337 |
+
<div>
|
338 |
+
<div class="radio_section tb_4_ck">
|
339 |
+
<input name="sfsi_plus_wechat_display" <?php echo (isset($option1['sfsi_plus_wechat_display']) && $option1['sfsi_plus_wechat_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_wechat_display" type="checkbox" value="yes" class="styled" />
|
340 |
+
</div>
|
341 |
+
<span class="sfsicls_wechat">WeChat</span>
|
342 |
+
</div>
|
343 |
+
<div class="sfsiplus_right_info">
|
344 |
+
<p>
|
345 |
+
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
346 |
+
<?php _e('Show this icon if you have a WeChat account.', SFSI_PLUS_DOMAIN); ?>
|
347 |
+
</p>
|
348 |
+
</div>
|
349 |
+
</li>
|
350 |
+
<!-- END WeChat ICON -->
|
351 |
+
|
352 |
+
<!-- Weibo ICON -->
|
353 |
+
<li class="vertical-align">
|
354 |
+
<div>
|
355 |
+
<div class="radio_section tb_4_ck">
|
356 |
+
<input name="sfsi_plus_weibo_display" <?php echo (isset($option1['sfsi_plus_weibo_display']) && $option1['sfsi_plus_weibo_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_weibo_display" type="checkbox" value="yes" class="styled" />
|
357 |
+
</div>
|
358 |
+
<span class="sfsicls_weibo">Weibo</span>
|
359 |
+
</div>
|
360 |
+
|
361 |
+
<div class="sfsiplus_right_info">
|
362 |
+
<p>
|
363 |
+
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
364 |
+
<?php _e('Show this icon if you have a Weibo account.', SFSI_PLUS_DOMAIN); ?>
|
365 |
+
</p>
|
366 |
+
</div>
|
367 |
+
</li>
|
368 |
+
<!-- END Weibo ICON -->
|
369 |
+
|
370 |
+
<!--MZ CODE END-->
|
371 |
+
|
372 |
+
<!-- Custom icon section start here -->
|
373 |
+
|
374 |
+
<?php
|
375 |
+
if (get_option('sfsi_plus_custom_icons') == 'no') {
|
376 |
+
$icons = (isset($option1['sfsi_custom_files'])) ? unserialize($option1['sfsi_custom_files']) : array();
|
377 |
+
if (!is_array($icons)) {
|
378 |
+
$icons = array();
|
379 |
+
}
|
380 |
+
$total_icons = count($icons);
|
381 |
+
end($icons);
|
382 |
+
$endkey = key($icons);
|
383 |
+
$endkey = (isset($endkey)) ? $endkey : 0;
|
384 |
+
reset($icons);
|
385 |
+
$first_key = key($icons);
|
386 |
+
$first_key = (isset($first_key)) ? $first_key : 0;
|
387 |
+
$new_element = 0;
|
388 |
+
|
389 |
+
if ($total_icons > 0) {
|
390 |
+
$new_element = $endkey + 1;
|
391 |
+
}
|
392 |
+
}
|
393 |
+
|
394 |
+
?>
|
395 |
+
<!-- Display all custom icons -->
|
396 |
+
<?php if (get_option('sfsi_plus_custom_icons') == 'no') { ?>
|
397 |
+
<?php $count = 1;
|
398 |
+
for ($i = $first_key; $i <= $endkey; $i++) : ?>
|
399 |
+
<?php if (!empty($icons[$i])) : ?>
|
400 |
+
|
401 |
+
<?php $count++;
|
402 |
+
endif;
|
403 |
+
endfor; ?>
|
404 |
+
|
405 |
+
<!-- Create a custom icon if total uploaded icons are less than 5 -->
|
406 |
+
<?php if ($count <= 5) : ?>
|
407 |
+
<li id="plus_c<?php echo $new_element; ?>" class="plus_custom bdr_btm_non">
|
408 |
+
<a class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank">
|
409 |
+
|
410 |
+
<div class="radio_section tb_4_ck" style="opacity:0.5">
|
411 |
+
<input type="checkbox" onclick="return false; value=" yes" class="styled" disabled="true" />
|
412 |
+
</div>
|
413 |
+
|
414 |
+
<span class="plus_custom-img" style="opacity:0.5">
|
415 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/custom.png'; ?>" id="plus_CImg_<?php echo $new_element; ?>" />
|
416 |
+
</span>
|
417 |
+
|
418 |
+
<span class="custom sfsiplus_custom-txt" style="font-weight:normal;opacity:0.5;margin-left:2px">
|
419 |
+
<?php _e('Custom icon', SFSI_PLUS_DOMAIN); ?>
|
420 |
+
</span>
|
421 |
+
</a>
|
422 |
+
|
423 |
+
<div class="sfsiplus_right_info ">
|
424 |
+
<p>
|
425 |
+
<a style="color: #12a252 !important;font-weight: bold; border-bottom:none;text-decoration: none;">
|
426 |
+
<?php _e('Premium Feature:', SFSI_PLUS_DOMAIN); ?>
|
427 |
+
</a>
|
428 |
+
<?php _e('Upload a custom icon if you have other accounts/websites you want to link to.', SFSI_PLUS_DOMAIN); ?>
|
429 |
+
<a class="pop-up" style="cursor:pointer; color: #12a252 !important;border-bottom: 1px solid #12a252;text-decoration: none;" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank">
|
430 |
+
<?php _e('Get it now.', SFSI_PLUS_DOMAIN); ?>
|
431 |
+
</a>
|
432 |
+
</p>
|
433 |
+
</div>
|
434 |
+
</li>
|
435 |
+
<?php endif; ?>
|
436 |
+
<?php } ?>
|
437 |
+
<!-- END Custom icon section here -->
|
438 |
+
<?php if (get_option('sfsi_plus_custom_icons') == 'yes') { ?>
|
439 |
+
<!-- Custom icon section start here -->
|
440 |
+
<?php
|
441 |
+
$icons = (isset($option1['sfsi_custom_files'])) ? unserialize($option1['sfsi_custom_files']) : array();
|
442 |
+
if (!is_array($icons)) {
|
443 |
+
$icons = array();
|
444 |
+
}
|
445 |
+
$total_icons = count($icons);
|
446 |
+
end($icons);
|
447 |
+
$endkey = key($icons);
|
448 |
+
$endkey = (isset($endkey)) ? $endkey : 0;
|
449 |
+
reset($icons);
|
450 |
+
$first_key = key($icons);
|
451 |
+
$first_key = (isset($first_key)) ? $first_key : 0;
|
452 |
+
$new_element = 0;
|
453 |
+
|
454 |
+
if ($total_icons > 0) {
|
455 |
+
$new_element = $endkey + 1;
|
456 |
+
}
|
457 |
+
?>
|
458 |
+
<!-- Display all custom icons -->
|
459 |
+
<?php $count = 1;
|
460 |
+
for ($i = $first_key; $i <= $endkey; $i++) : ?>
|
461 |
+
<?php if (!empty($icons[$i])) : ?>
|
462 |
+
<li id="plus_c<?php echo $i; ?>" class="plus_custom">
|
463 |
+
<div class="radio_section tb_4_ck">
|
464 |
+
<input name="plussfsiICON_<?php echo $i; ?>" checked="true" type="checkbox" value="yes" class="styled" element-type="sfsiplus-cusotm-icon" />
|
465 |
+
</div>
|
466 |
+
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce('plus_deleteIcons'); ?>">
|
467 |
+
<span class="plus_custom-img">
|
468 |
+
<img class="plus_sfcm" src="<?php echo (!empty($icons[$i])) ? esc_url($icons[$i]) : SFSI_PLUS_PLUGURL . 'images/custom.png'; ?>" id="plus_CImg_<?php echo $i; ?>" />
|
469 |
+
</span>
|
470 |
+
<span class="custom sfsiplus_custom-txt">
|
471 |
+
<?php _e('Custom', SFSI_PLUS_DOMAIN); ?>
|
472 |
+
<?php echo $count; ?>
|
473 |
+
</span>
|
474 |
+
<div class="sfsiplus_right_info">
|
475 |
+
<p>
|
476 |
+
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
477 |
+
<?php _e('Upload a custom icon if you have other accounts/websites you want to link to.', SFSI_PLUS_DOMAIN); ?>
|
478 |
+
</p>
|
479 |
+
</div>
|
480 |
+
</li>
|
481 |
+
<?php $count++;
|
482 |
+
endif;
|
483 |
+
endfor; ?>
|
484 |
+
|
485 |
+
<!-- Create a custom icon if total uploaded icons are less than 5 -->
|
486 |
+
<?php if ($count <= 5) : ?>
|
487 |
+
<li id="plus_c<?php echo $new_element; ?>" class="plus_custom bdr_btm_non vertical-align">
|
488 |
+
<div>
|
489 |
+
<div class="radio_section tb_4_ck">
|
490 |
+
<input name="plussfsiICON_<?php echo $new_element; ?>" type="checkbox" value="yes" class="styled" element-type="sfsiplus-cusotm-icon" ele-type='new' />
|
491 |
+
</div>
|
492 |
+
|
493 |
+
<span class="plus_custom-img">
|
494 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/custom.png'; ?>" id="plus_CImg_<?php echo $new_element; ?>" />
|
495 |
+
</span>
|
496 |
+
|
497 |
+
<span class="custom sfsiplus_custom-txt">
|
498 |
+
<?php _e('Custom', SFSI_PLUS_DOMAIN); ?>
|
499 |
+
<?php echo $count; ?>
|
500 |
+
</span>
|
501 |
+
</div>
|
502 |
+
|
503 |
+
<div class="sfsiplus_right_info">
|
504 |
+
<p>
|
505 |
+
<span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
|
506 |
+
<?php _e('Upload a custom icon if you have other accounts/websites you want to link to.', SFSI_PLUS_DOMAIN); ?>
|
507 |
+
</p>
|
508 |
+
</div>
|
509 |
+
</li>
|
510 |
+
<?php endif; ?>
|
511 |
+
<!-- END Custom icon section here -->
|
512 |
+
<?php } ?>
|
513 |
+
|
514 |
+
|
515 |
+
</ul>
|
516 |
+
<ul>
|
517 |
+
<li class="sfsi_plus_premium_brdr_box">
|
518 |
+
<div class="sfsi_plus_prem_icons_added">
|
519 |
+
<div class="sf_si_plus_prmium_head">
|
520 |
+
<h2><?php _e('New: ', SFSI_PLUS_DOMAIN); ?><span> <?php _e('In our Premium Plugin we added icons for:', SFSI_PLUS_DOMAIN); ?></span></h2>
|
521 |
+
</div>
|
522 |
+
<div class="sfsi_plus_premium_row">
|
523 |
+
<div class="sfsi_plus_prem_cmn_rowlisting">
|
524 |
+
<span>
|
525 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/snapchat.png'; ?>" id="CImg" />
|
526 |
+
</span>
|
527 |
+
<span class="sfsicls_plus_prem_text"><?php _e('Snapchat', SFSI_PLUS_DOMAIN); ?></span>
|
528 |
+
</div>
|
529 |
+
|
530 |
+
<div class="sfsi_plus_prem_cmn_rowlisting">
|
531 |
+
<span>
|
532 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/whatsapp.png'; ?>" id="CImg" />
|
533 |
+
</span>
|
534 |
+
<span class="sfsicls_plus_prem_text"><?php _e('WhatsApp or Phone', SFSI_PLUS_DOMAIN); ?></span>
|
535 |
+
</div>
|
536 |
+
|
537 |
+
<div class="sfsi_plus_prem_cmn_rowlisting">
|
538 |
+
<span>
|
539 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/yummly.png'; ?>" id="CImg" />
|
540 |
+
</span>
|
541 |
+
<span class="sfsicls_plus_prem_text"><?php _e('Yummly', SFSI_PLUS_DOMAIN); ?></span>
|
542 |
+
</div>
|
543 |
+
<div class="sfsi_plus_prem_cmn_rowlisting">
|
544 |
+
<span>
|
545 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/yelp.png'; ?>" id="CImg" />
|
546 |
+
</span>
|
547 |
+
<span class="sfsicls_plus_prem_text"><?php _e('Yelp', SFSI_PLUS_DOMAIN); ?></span>
|
548 |
+
</div>
|
549 |
+
<div class="sfsi_plus_prem_cmn_rowlisting">
|
550 |
+
<span>
|
551 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/print.png'; ?>" id="CImg" />
|
552 |
+
</span>
|
553 |
+
<span class="sfsicls_plus_prem_text"><?php _e('Print', SFSI_PLUS_DOMAIN); ?></span>
|
554 |
+
</div>
|
555 |
+
</div>
|
556 |
+
<div class="sfsi_plus_premium_row">
|
557 |
+
<div class="sfsi_plus_prem_cmn_rowlisting">
|
558 |
+
<span>
|
559 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/soundcloud.png'; ?>" id="CImg" />
|
560 |
+
</span>
|
561 |
+
<span class="sfsicls_plus_prem_text"><?php _e('Soundcloud', SFSI_PLUS_DOMAIN); ?></span>
|
562 |
+
</div>
|
563 |
+
|
564 |
+
<div class="sfsi_plus_prem_cmn_rowlisting">
|
565 |
+
<span>
|
566 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/skype.png'; ?>" id="CImg" />
|
567 |
+
</span>
|
568 |
+
<span class="sfsicls_plus_prem_text"><?php _e('Skype', SFSI_PLUS_DOMAIN); ?></span>
|
569 |
+
</div>
|
570 |
+
<div class="sfsi_plus_prem_cmn_rowlisting">
|
571 |
+
<span>
|
572 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/flickr.png'; ?>" id="CImg" />
|
573 |
+
</span>
|
574 |
+
<span class="sfsicls_plus_prem_text"><?php _e('Flickr', SFSI_PLUS_DOMAIN); ?></span>
|
575 |
+
</div>
|
576 |
+
|
577 |
+
<div class="sfsi_plus_prem_cmn_rowlisting">
|
578 |
+
<span>
|
579 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/angieslist.png'; ?>" id="CImg" />
|
580 |
+
</span>
|
581 |
+
<span class="sfsicls_plus_prem_text"><?php _e('Angie’s List', SFSI_PLUS_DOMAIN); ?></span>
|
582 |
+
</div>
|
583 |
+
|
584 |
+
<div class="sfsi_plus_prem_cmn_rowlisting">
|
585 |
+
<span>
|
586 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/reddit.png'; ?>" id="CImg" />
|
587 |
+
</span>
|
588 |
+
<span class="sfsicls_plus_prem_text"><?php _e('Reddit', SFSI_PLUS_DOMAIN); ?></span>
|
589 |
+
</div>
|
590 |
+
</div>
|
591 |
+
<div class="sfsi_plus_premium_row">
|
592 |
+
<div class="sfsi_plus_prem_cmn_rowlisting">
|
593 |
+
<span>
|
594 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/vimeo.png'; ?>" id="CImg" />
|
595 |
+
</span>
|
596 |
+
<span class="sfsicls_plus_prem_text"><?php _e('Vimeo', SFSI_PLUS_DOMAIN); ?></span>
|
597 |
+
</div>
|
598 |
+
|
599 |
+
<div class="sfsi_plus_prem_cmn_rowlisting">
|
600 |
+
<span>
|
601 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/tumblr.png'; ?>" id="CImg" />
|
602 |
+
</span>
|
603 |
+
<span class="sfsicls_plus_prem_text"><?php _e('Tumblr', SFSI_PLUS_DOMAIN); ?></span>
|
604 |
+
</div>
|
605 |
+
<div class="sfsi_plus_prem_cmn_rowlisting">
|
606 |
+
<span>
|
607 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/buffer.png'; ?>" id="CImg" />
|
608 |
+
</span>
|
609 |
+
<span class="sfsicls_plus_prem_text"><?php _e('Buffer', SFSI_PLUS_DOMAIN); ?></span>
|
610 |
+
</div>
|
611 |
+
<div class="sfsi_plus_prem_cmn_rowlisting">
|
612 |
+
<span>
|
613 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/blogger.png'; ?>" id="CImg" />
|
614 |
+
</span>
|
615 |
+
<span class="sfsicls_plus_prem_text"><?php _e('Blogger', SFSI_PLUS_DOMAIN); ?></span>
|
616 |
+
</div>
|
617 |
+
|
618 |
+
<div class="sfsi_plus_prem_cmn_rowlisting">
|
619 |
+
<span>
|
620 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/steam.png'; ?>" id="CImg" />
|
621 |
+
</span>
|
622 |
+
<span class="sfsicls_plus_prem_text"><?php _e('Steam', SFSI_PLUS_DOMAIN); ?></span>
|
623 |
+
</div>
|
624 |
+
</div>
|
625 |
+
<div class="sfsi_plus_premium_row">
|
626 |
+
<div class="sfsi_plus_prem_cmn_rowlisting">
|
627 |
+
<span>
|
628 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/xing.png'; ?>" id="CImg" />
|
629 |
+
</span>
|
630 |
+
<span class="sfsicls_plus_prem_text"><?php _e('Xing', SFSI_PLUS_DOMAIN); ?></span>
|
631 |
+
</div>
|
632 |
+
|
633 |
+
<div class="sfsi_plus_prem_cmn_rowlisting">
|
634 |
+
<span>
|
635 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/amazon.png'; ?>" id="CImg" />
|
636 |
+
</span>
|
637 |
+
<span class="sfsicls_plus_prem_text"><?php _e('Amazon', SFSI_PLUS_DOMAIN); ?></span>
|
638 |
+
</div>
|
639 |
+
<div class="sfsi_plus_prem_cmn_rowlisting">
|
640 |
+
<span>
|
641 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/twitch.png'; ?>" id="CImg" />
|
642 |
+
</span>
|
643 |
+
<span class="sfsicls_plus_prem_text"><?php _e('Twitch', SFSI_PLUS_DOMAIN); ?></span>
|
644 |
+
</div>
|
645 |
+
<div class="sfsi_plus_prem_cmn_rowlisting">
|
646 |
+
<span>
|
647 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL . 'images/messenger.png'; ?>" id="CImg" />
|
648 |
+
</span>
|
649 |
+
<span class="sfsicls_plus_prem_text"><?php _e('Messenger', SFSI_PLUS_DOMAIN); ?></span>
|
650 |
+
</div>
|
651 |
+
</div>
|
652 |
+
<div class="sfsi_plus_need_another_one_link">
|
653 |
+
<!-- <p><?php _e('Need another one?', SFSI_PLUS_DOMAIN); ?><a href="mailto:biz@ultimatelysocial.com" target="_blank"> <?php _e('Tell us', SFSI_PLUS_DOMAIN); ?></a></p> -->
|
654 |
+
</div>
|
655 |
+
<div class="sfsi_plus_need_another_tell_us">
|
656 |
+
<a href="https://www.ultimatelysocial.com/all-platforms/" target="_blank"><?php _e('...and many more!', SFSI_PLUS_DOMAIN); ?></a>
|
657 |
+
<a class="pop-up" style="cursor:pointer" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank">
|
658 |
+
<?php _e(' Go premium now', SFSI_PLUS_DOMAIN); ?>
|
659 |
+
</a>
|
660 |
+
<!-- <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=more_platforms&utm_medium=banner" target="_blank"><?php _e('See all features Premium Plugin', SFSI_PLUS_DOMAIN); ?></a>
|
661 |
+
-->
|
662 |
+
</div>
|
663 |
+
</div>
|
664 |
+
</li>
|
665 |
+
</ul>
|
666 |
+
<input type="hidden" value="<?php echo SFSI_PLUS_PLUGURL ?>" id="plugin_url" />
|
667 |
+
<input type="hidden" value="" id="upload_id" />
|
668 |
+
|
669 |
+
<?php sfsi_plus_ask_for_help(1); ?>
|
670 |
+
|
671 |
+
<!-- SAVE BUTTON SECTION -->
|
672 |
+
<div class="save_button tab_1_sav">
|
673 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
|
674 |
+
<?php $nonce = wp_create_nonce("update_plus_step1"); ?>
|
675 |
+
<a href="javascript:;" id="sfsi_plus_save1" title="Save" data-nonce="<?php echo $nonce; ?>">
|
676 |
+
<?php _e('Save', SFSI_PLUS_DOMAIN); ?>
|
677 |
+
</a>
|
678 |
+
</div>
|
679 |
+
<!-- END SAVE BUTTON SECTION -->
|
680 |
+
|
681 |
+
<a class="sfsiColbtn closeSec" href="javascript:;">
|
682 |
+
<?php _e('Collapse area', SFSI_PLUS_DOMAIN); ?>
|
683 |
+
</a>
|
684 |
+
|
685 |
+
<!-- ERROR AND SUCCESS MESSAGE AREA-->
|
686 |
+
<p class="red_txt errorMsg" style="display:none"> </p>
|
687 |
+
<p class="green_txt sucMsg" style="display:none"> </p>
|
688 |
+
|
689 |
+
</div>
|
690 |
<!-- END Section 1 "Which icons do you want to show on your site? " main div-->
|
views/sfsi_option_view2.php
CHANGED
@@ -1,868 +1,868 @@
|
|
1 |
-
<?php
|
2 |
-
/* unserialize all saved option for second section options */
|
3 |
-
$option4= unserialize(get_option('sfsi_plus_section4_options',false));
|
4 |
-
$option2= unserialize(get_option('sfsi_plus_section2_options',false));
|
5 |
-
/*
|
6 |
-
* Sanitize, escape and validate values
|
7 |
-
*/
|
8 |
-
$option2['sfsi_plus_rss_url'] = (isset($option2['sfsi_plus_rss_url']))
|
9 |
-
? esc_url($option2['sfsi_plus_rss_url'])
|
10 |
-
: '';
|
11 |
-
$option2['sfsi_plus_rss_icons'] = (isset($option2['sfsi_plus_rss_icons']))
|
12 |
-
? sanitize_text_field($option2['sfsi_plus_rss_icons'])
|
13 |
-
: '';
|
14 |
-
$option2['sfsi_plus_email_url'] = (isset($option2['sfsi_plus_email_url']))
|
15 |
-
? sanitize_text_field( $option2['sfsi_plus_email_url'])
|
16 |
-
: '';
|
17 |
-
|
18 |
-
$option2['sfsi_plus_facebookPage_option'] = (isset($option2['sfsi_plus_facebookPage_option']))
|
19 |
-
? sanitize_text_field($option2['sfsi_plus_facebookPage_option'])
|
20 |
-
: '';
|
21 |
-
$option2['sfsi_plus_facebookPage_url'] = (isset($option2['sfsi_plus_facebookPage_url']))
|
22 |
-
? esc_url($option2['sfsi_plus_facebookPage_url'])
|
23 |
-
: '';
|
24 |
-
$option2['sfsi_plus_facebookLike_option'] = (isset($option2['sfsi_plus_facebookLike_option']))
|
25 |
-
? sanitize_text_field($option2['sfsi_plus_facebookLike_option'])
|
26 |
-
: ' ';
|
27 |
-
$option2['sfsi_plus_facebookShare_option'] = (isset($option2['sfsi_plus_facebookShare_option']))
|
28 |
-
? sanitize_text_field($option2['sfsi_plus_facebookShare_option'])
|
29 |
-
: '';
|
30 |
-
|
31 |
-
$option2['sfsi_plus_twitter_followme'] = (isset($option2['sfsi_plus_twitter_followme']))
|
32 |
-
? sanitize_text_field($option2['sfsi_plus_twitter_followme'])
|
33 |
-
: '';
|
34 |
-
$option2['sfsi_plus_twitter_followUserName']= (isset($option2['sfsi_plus_twitter_followUserName']))
|
35 |
-
? sanitize_text_field($option2['sfsi_plus_twitter_followUserName'])
|
36 |
-
: '';
|
37 |
-
$option2['sfsi_plus_twitter_aboutPage'] = (isset($option2['sfsi_plus_twitter_aboutPage']))
|
38 |
-
? sanitize_text_field($option2['sfsi_plus_twitter_aboutPage'])
|
39 |
-
: '';
|
40 |
-
$option2['sfsi_plus_twitter_page'] = (isset($option2['sfsi_plus_twitter_page']))
|
41 |
-
? sanitize_text_field($option2['sfsi_plus_twitter_page'])
|
42 |
-
: '';
|
43 |
-
$option2['sfsi_plus_twitter_pageURL'] = (isset($option2['sfsi_plus_twitter_pageURL']))
|
44 |
-
? esc_url($option2['sfsi_plus_twitter_pageURL'])
|
45 |
-
: '';
|
46 |
-
$option2['sfsi_plus_twitter_aboutPageText'] = (isset($option2['sfsi_plus_twitter_aboutPageText']))
|
47 |
-
? sanitize_text_field($option2['sfsi_plus_twitter_aboutPageText'])
|
48 |
-
: '';
|
49 |
-
$option2['sfsi_plus_youtube_pageUrl'] = (isset($option2['sfsi_plus_youtube_pageUrl']))
|
50 |
-
? esc_url($option2['sfsi_plus_youtube_pageUrl'])
|
51 |
-
: '';
|
52 |
-
$option2['sfsi_plus_youtube_page'] = (isset($option2['sfsi_plus_youtube_page']))
|
53 |
-
? sanitize_text_field($option2['sfsi_plus_youtube_page'])
|
54 |
-
: '';
|
55 |
-
$option2['sfsi_plus_youtube_follow'] = (isset($option2['sfsi_plus_youtube_follow']))
|
56 |
-
? sanitize_text_field($option2['sfsi_plus_youtube_follow'])
|
57 |
-
: '';
|
58 |
-
$option2['sfsi_plus_ytube_user'] = (isset($option2['sfsi_plus_ytube_user']))
|
59 |
-
? sanitize_text_field($option2['sfsi_plus_ytube_user'])
|
60 |
-
: '';
|
61 |
-
|
62 |
-
$option2['sfsi_plus_pinterest_page'] = (isset($option2['sfsi_plus_pinterest_page']))
|
63 |
-
? sanitize_text_field($option2['sfsi_plus_pinterest_page'])
|
64 |
-
: '';
|
65 |
-
$option2['sfsi_plus_pinterest_pageUrl'] = (isset($option2['sfsi_plus_pinterest_pageUrl']))
|
66 |
-
? esc_url($option2['sfsi_plus_pinterest_pageUrl'])
|
67 |
-
: '';
|
68 |
-
$option2['sfsi_plus_pinterest_pingBlog'] = (isset($option2['sfsi_plus_pinterest_pingBlog']))
|
69 |
-
? sanitize_text_field($option2['sfsi_plus_pinterest_pingBlog'])
|
70 |
-
: '';
|
71 |
-
|
72 |
-
$option2['sfsi_plus_instagram_pageUrl'] = (isset($option2['sfsi_plus_instagram_pageUrl']))
|
73 |
-
? esc_url($option2['sfsi_plus_instagram_pageUrl'])
|
74 |
-
: '';
|
75 |
-
|
76 |
-
$option2['sfsi_plus_linkedin_page'] = (isset($option2['sfsi_plus_linkedin_page']))
|
77 |
-
? sanitize_text_field($option2['sfsi_plus_linkedin_page'])
|
78 |
-
: '';
|
79 |
-
$option2['sfsi_plus_linkedin_pageURL'] = (isset($option2['sfsi_plus_linkedin_pageURL']))
|
80 |
-
? esc_url($option2['sfsi_plus_linkedin_pageURL'])
|
81 |
-
: '';
|
82 |
-
$option2['sfsi_plus_linkedin_follow'] = (isset($option2['sfsi_plus_linkedin_follow']))
|
83 |
-
? sanitize_text_field($option2['sfsi_plus_linkedin_follow'])
|
84 |
-
: '';
|
85 |
-
$option2['sfsi_plus_linkedin_followCompany']= (isset($option2['sfsi_plus_linkedin_followCompany']))
|
86 |
-
? intval($option2['sfsi_plus_linkedin_followCompany'])
|
87 |
-
: '';
|
88 |
-
$option2['sfsi_plus_linkedin_SharePage'] = (isset($option2['sfsi_plus_linkedin_SharePage']))
|
89 |
-
? sanitize_text_field($option2['sfsi_plus_linkedin_SharePage'])
|
90 |
-
: '';
|
91 |
-
$option2['sfsi_plus_linkedin_recommendBusines'] = (isset($option2['sfsi_plus_linkedin_recommendBusines']))
|
92 |
-
? sanitize_text_field($option2['sfsi_plus_linkedin_recommendBusines'])
|
93 |
-
: '';
|
94 |
-
$option2['sfsi_plus_linkedin_recommendCompany'] = (isset($option2['sfsi_plus_linkedin_recommendCompany']))
|
95 |
-
? sanitize_text_field($option2['sfsi_plus_linkedin_recommendCompany'])
|
96 |
-
: '';
|
97 |
-
$option2['sfsi_plus_linkedin_recommendProductId'] = (isset($option2['sfsi_plus_linkedin_recommendProductId']))
|
98 |
-
? intval($option2['sfsi_plus_linkedin_recommendProductId'])
|
99 |
-
: '';
|
100 |
-
|
101 |
-
$option2['sfsi_plus_houzz_pageUrl'] = (isset($option2['sfsi_plus_houzz_pageUrl']))
|
102 |
-
? esc_url($option2['sfsi_plus_houzz_pageUrl'])
|
103 |
-
: '';
|
104 |
-
$option4['sfsi_plus_youtubeusernameorid'] = (isset($option4['sfsi_plus_youtubeusernameorid']))
|
105 |
-
? sanitize_text_field($option4['sfsi_plus_youtubeusernameorid'])
|
106 |
-
: '';
|
107 |
-
$option4['sfsi_plus_ytube_chnlid'] = (isset($option4['sfsi_plus_ytube_chnlid']))
|
108 |
-
? strip_tags(trim($option4['sfsi_plus_ytube_chnlid']))
|
109 |
-
: '';
|
110 |
-
$option2['sfsi_plus_premium_email_box'] = (isset($option2['sfsi_plus_premium_email_box']))
|
111 |
-
? sanitize_text_field($option2['sfsi_plus_premium_email_box'])
|
112 |
-
: 'yes';
|
113 |
-
$option2['sfsi_plus_premium_facebook_box'] = (isset($option2['sfsi_plus_premium_facebook_box']))
|
114 |
-
? sanitize_text_field($option2['sfsi_plus_premium_facebook_box'])
|
115 |
-
: 'yes';
|
116 |
-
$option2['sfsi_plus_premium_twitter_box'] = (isset($option2['sfsi_plus_premium_twitter_box']))
|
117 |
-
? sanitize_text_field($option2['sfsi_plus_premium_twitter_box'])
|
118 |
-
: 'yes';
|
119 |
-
$option2['sfsi_plus_okLike_option'] = (isset($option2['sfsi_plus_okLike_option']))
|
120 |
-
? sanitize_text_field($option2['sfsi_plus_okLike_option'])
|
121 |
-
: 'no';
|
122 |
-
$option2['sfsi_plus_okVisit_option'] = (isset($option2['sfsi_plus_okVisit_option']))
|
123 |
-
? sanitize_text_field($option2['sfsi_plus_okVisit_option'])
|
124 |
-
: 'no';
|
125 |
-
|
126 |
-
$option2['sfsi_plus_okVisit_url'] = (isset($option2['sfsi_plus_okVisit_url']))
|
127 |
-
? sanitize_text_field($option2['sfsi_plus_okVisit_url'])
|
128 |
-
: '';
|
129 |
-
|
130 |
-
$option2['sfsi_plus_okSubscribe_option'] = (isset($option2['sfsi_plus_okSubscribe_option']))
|
131 |
-
? sanitize_text_field($option2['sfsi_plus_okSubscribe_option'])
|
132 |
-
: 'no';
|
133 |
-
|
134 |
-
$option2['sfsi_plus_okSubscribe_userid'] = (isset($option2['sfsi_plus_okSubscribe_userid']))
|
135 |
-
? sanitize_text_field($option2['sfsi_plus_okSubscribe_userid'])
|
136 |
-
: '';
|
137 |
-
|
138 |
-
$option2['sfsi_plus_telegramShare_option'] = (isset($option2['sfsi_plus_telegramShare_option']))
|
139 |
-
? sanitize_text_field($option2['sfsi_plus_telegramShare_option'])
|
140 |
-
: 'no';
|
141 |
-
$option2['sfsi_plus_telegramMessage_option'] = (isset($option2['sfsi_plus_telegramMessage_option']))
|
142 |
-
? sanitize_text_field($option2['sfsi_plus_telegramMessage_option'])
|
143 |
-
: 'no';
|
144 |
-
|
145 |
-
$option2['sfsi_plus_telegram_username'] = (isset($option2['sfsi_plus_telegram_username']))
|
146 |
-
? sanitize_text_field($option2['sfsi_plus_telegram_username'])
|
147 |
-
: '';
|
148 |
-
|
149 |
-
$option2['sfsi_plus_telegram_message'] = (isset($option2['sfsi_plus_telegram_message']))
|
150 |
-
? sanitize_text_field($option2['sfsi_plus_telegram_message'])
|
151 |
-
: '';
|
152 |
-
|
153 |
-
$option2['sfsi_plus_vkShare_option'] = (isset($option2['sfsi_plus_vkShare_option']))
|
154 |
-
? sanitize_text_field($option2['sfsi_plus_vkShare_option'])
|
155 |
-
: 'no';
|
156 |
-
$option2['sfsi_plus_vkVisit_option'] = (isset($option2['sfsi_plus_vkVisit_option']))
|
157 |
-
? sanitize_text_field($option2['sfsi_plus_vkVisit_option'])
|
158 |
-
: 'no';
|
159 |
-
|
160 |
-
$option2['sfsi_plus_vkLike_option'] = (isset($option2['sfsi_plus_vkLike_option']))
|
161 |
-
? sanitize_text_field($option2['sfsi_plus_vkLike_option'])
|
162 |
-
: 'no';
|
163 |
-
$option2['sfsi_plus_vkFollow_option'] = (isset($option2['sfsi_plus_vkFollow_option']))
|
164 |
-
? sanitize_text_field($option2['sfsi_plus_vkFollow_option'])
|
165 |
-
: 'no';
|
166 |
-
|
167 |
-
$option2['sfsi_plus_vkFollow_url'] = (isset($option2['sfsi_plus_vkFollow_url']))
|
168 |
-
? sanitize_text_field($option2['sfsi_plus_vkFollow_url'])
|
169 |
-
: '';
|
170 |
-
|
171 |
-
$option2['sfsi_plus_vkVisit_url'] = (isset($option2['sfsi_plus_vkVisit_url']))
|
172 |
-
? sanitize_text_field($option2['sfsi_plus_vkVisit_url'])
|
173 |
-
: '';
|
174 |
-
|
175 |
-
$option2['sfsi_plus_weiboVisit_option'] = (isset($option2['sfsi_plus_weiboVisit_option']))
|
176 |
-
? sanitize_text_field($option2['sfsi_plus_weiboVisit_option'])
|
177 |
-
: 'no';
|
178 |
-
$option2['sfsi_plus_weiboVisit_url'] = (isset($option2['sfsi_plus_weiboVisit_url']))
|
179 |
-
? sanitize_text_field($option2['sfsi_plus_weiboVisit_url'])
|
180 |
-
: '';
|
181 |
-
$option2['sfsi_plus_weiboShare_option'] = (isset($option2['sfsi_plus_weiboShare_option']))
|
182 |
-
? sanitize_text_field($option2['sfsi_plus_weiboShare_option'])
|
183 |
-
: 'no';
|
184 |
-
|
185 |
-
$option2['sfsi_plus_weiboLike_option'] = (isset($option2['sfsi_plus_weiboLike_option']))
|
186 |
-
? sanitize_text_field($option2['sfsi_plus_weiboLike_option'])
|
187 |
-
: 'no';
|
188 |
-
?>
|
189 |
-
<!-- Section 2 "What do you want the icons to do?" main div Start -->
|
190 |
-
<div class="tab2">
|
191 |
-
<!-- RSS ICON -->
|
192 |
-
<div class="row bdr_top sfsiplus_rss_section">
|
193 |
-
<h2 class="sfsicls_rs_s">
|
194 |
-
RSS
|
195 |
-
</h2>
|
196 |
-
<div class="inr_cont">
|
197 |
-
<p>
|
198 |
-
<?php _e( 'When clicked on, users can subscribe via RSS', SFSI_PLUS_DOMAIN); ?>
|
199 |
-
</p>
|
200 |
-
<p class="rss_url_row">
|
201 |
-
<label>
|
202 |
-
RSS URL
|
203 |
-
</label>
|
204 |
-
<input name="sfsi_plus_rss_url" style="float: none;margin-left:20px;" id="sfsi_plus_rss_url" class="add" type="url" value="<?php echo ($option2['sfsi_plus_rss_url']!='') ? $option2['sfsi_plus_rss_url'] : '' ;?>" placeholder="E.g http://www.yoursite.com/feed" />
|
205 |
-
<span class="sfrsTxt" >
|
206 |
-
<?php _e( 'For most blogs it’s http://blogname.com/feed', SFSI_PLUS_DOMAIN); ?>
|
207 |
-
</span>
|
208 |
-
</p>
|
209 |
-
</div>
|
210 |
-
</div>
|
211 |
-
<!-- END RSS ICON -->
|
212 |
-
|
213 |
-
<!-- EMAIL ICON -->
|
214 |
-
<?php
|
215 |
-
$feedId = sanitize_text_field(get_option('sfsi_plus_feed_id',false));
|
216 |
-
$connectToFeed = "https://www.specificfeeds.com/?".base64_encode("userprofile=wordpress&feed_id=".$feedId);
|
217 |
-
|
218 |
-
?>
|
219 |
-
<div class="row sfsiplus_email_section">
|
220 |
-
<h2 class="sfsicls_email">
|
221 |
-
Email
|
222 |
-
</h2>
|
223 |
-
|
224 |
-
<?php sfsi_plus_curl_error_notification(); ?>
|
225 |
-
|
226 |
-
<div class="inr_cont">
|
227 |
-
<p class="sfsi_plus_specificfeedlink">
|
228 |
-
<?php _e('It allows your visitors to subscribe to your site (on ', SFSI_PLUS_DOMAIN ); ?><a href="https://www.specificfeeds.com/widgets/emailSubscribeEncFeed/<?php echo $feedId; ?>/<?php echo base64_encode(8); ?>" target="_new"><?php _e( 'this screen', SFSI_PLUS_DOMAIN); ?></a><?php _e(") and receive new posts automatically by email.", SFSI_PLUS_DOMAIN); ?>
|
229 |
-
</p>
|
230 |
-
<p><?php _e( 'Please pick which icon type you want to use:', SFSI_PLUS_DOMAIN); ?></p>
|
231 |
-
<ul class="tab_2_email_sec">
|
232 |
-
<li>
|
233 |
-
<div class="sfsiplusicnsdvwrp">
|
234 |
-
<input name="sfsi_plus_rss_icons" <?php echo ($option2['sfsi_plus_rss_icons']=='email') ? 'checked="true"' : '' ;?> type="radio" value="email" class="styled" /><span class="email_icn"></span>
|
235 |
-
</div>
|
236 |
-
<label>
|
237 |
-
<?php _e( 'Email icon', SFSI_PLUS_DOMAIN); ?>
|
238 |
-
</label>
|
239 |
-
</li>
|
240 |
-
<li>
|
241 |
-
<div class="sfsiplusicnsdvwrp">
|
242 |
-
<input name="sfsi_plus_rss_icons" <?php echo ($option2['sfsi_plus_rss_icons']=='subscribe') ? 'checked="true"' : '' ;?> type="radio" value="subscribe" class="styled" /><span class="subscribe_icn"></span>
|
243 |
-
</div>
|
244 |
-
<label>
|
245 |
-
<?php _e( 'Follow icon', SFSI_PLUS_DOMAIN); ?>
|
246 |
-
<span class="sfplsdesc">
|
247 |
-
(<?php _e( 'increases sign-ups', SFSI_PLUS_DOMAIN); ?>)
|
248 |
-
</span>
|
249 |
-
</label>
|
250 |
-
</li>
|
251 |
-
<li>
|
252 |
-
<div class="sfsiplusicnsdvwrp">
|
253 |
-
<input name="sfsi_plus_rss_icons" <?php echo ($option2['sfsi_plus_rss_icons']=='sfsi') ? 'checked="true"' : '' ;?> type="radio" value="sfsi" class="styled" /><span class="sf_arow"></span>
|
254 |
-
</div>
|
255 |
-
<label>
|
256 |
-
<?php _e( 'SpecificFeeds icon', SFSI_PLUS_DOMAIN); ?>
|
257 |
-
<span class="sfplsdesc">
|
258 |
-
(<?php _e( 'provider of the service', SFSI_PLUS_DOMAIN); ?>)
|
259 |
-
</span>
|
260 |
-
</label>
|
261 |
-
</li>
|
262 |
-
</ul>
|
263 |
-
<p><?php _e( 'The service offers many (more) advantages:', SFSI_PLUS_DOMAIN); ?></p>
|
264 |
-
<div class='sfsi_plus_service_row'>
|
265 |
-
<div class='sfsi_plus_service_column'>
|
266 |
-
<ul>
|
267 |
-
<li><span><?php _e( 'More people come back', SFSI_PLUS_DOMAIN); ?></span><?php _e( ' to your site', SFSI_PLUS_DOMAIN); ?></li>
|
268 |
-
<li><?php _e( 'See your ', SFSI_PLUS_DOMAIN); ?><span><?php _e( 'subscribers’ emails', SFSI_PLUS_DOMAIN); ?></span><?php _e( ' & ', SFSI_PLUS_DOMAIN); ?><span><?php _e( 'interesting statistics', SFSI_PLUS_DOMAIN); ?></span></li>
|
269 |
-
<li><?php _e( 'Automatically post on ', SFSI_PLUS_DOMAIN); ?><span><?php _e( 'Facebook & Twitter', SFSI_PLUS_DOMAIN); ?></span></li>
|
270 |
-
</ul>
|
271 |
-
</div>
|
272 |
-
<div class='sfsi_plus_service_column'>
|
273 |
-
<ul>
|
274 |
-
<li><span><?php _e( 'Get more traffic', SFSI_PLUS_DOMAIN); ?></span><?php _e( ' by being listed in the SF directory', SFSI_PLUS_DOMAIN); ?></li>
|
275 |
-
<li><span><?php _e( 'Get alerts', SFSI_PLUS_DOMAIN); ?></span><?php _e( ' when people subscribe or unsubscribe', SFSI_PLUS_DOMAIN); ?></li>
|
276 |
-
<li><span><?php _e( 'Tailor the sender name & subject line', SFSI_PLUS_DOMAIN); ?></span><?php _e( ' of the emails', SFSI_PLUS_DOMAIN); ?></li>
|
277 |
-
</ul>
|
278 |
-
</div>
|
279 |
-
|
280 |
-
</div>
|
281 |
-
|
282 |
-
<form id="calimingOptimizationForm" method="get" action="https://www.specificfeeds.com/wpclaimfeeds/getFullAccess" target="_blank">
|
283 |
-
<div class="sfsi_plus_inputbtn">
|
284 |
-
<input type="hidden" name="feed_id" value="<?php echo sanitize_text_field(get_option('sfsi_plus_feed_id',false)); ?>" />
|
285 |
-
<input type="email" name="email" value="<?php echo bloginfo('admin_email'); ?>" />
|
286 |
-
</div>
|
287 |
-
<div class='sfsi_plus_more_services_link'>
|
288 |
-
<a class="pop-up" href="javascript:" id="getMeFullAccess" title="Give me access">
|
289 |
-
<?php _e('Click here to benefit from all advantages >', SFSI_PLUS_DOMAIN ); ?>
|
290 |
-
</a>
|
291 |
-
</div>
|
292 |
-
</form>
|
293 |
-
|
294 |
-
<p class='sfsi_plus_email_last_paragraph'>
|
295 |
-
<?php _e( 'This will create your FREE account on SpecificFeeds, using the above email. ', SFSI_PLUS_DOMAIN); ?><br>
|
296 |
-
<?php _e( 'All data will be treated highly confidentially, see the', SFSI_PLUS_DOMAIN); ?>
|
297 |
-
<a href="https://www.specificfeeds.com/page/privacy-policy" target="_new">
|
298 |
-
<?php _e('Privacy Policy.', SFSI_PLUS_DOMAIN ); ?>
|
299 |
-
</a>
|
300 |
-
</p>
|
301 |
-
<?php if($option2['sfsi_plus_premium_email_box'] =='yes') { ?>
|
302 |
-
<div class ="sfsi_plus_new_prmium_follw">
|
303 |
-
<p>
|
304 |
-
<b><?php _e( 'New:', SFSI_PLUS_DOMAIN); ?></b><?php _e( ' In our Premium Plugin you can now give your email icon other functions too, e.g. contact you (email), share by email, and link to a certain page (e.g. your contact form or newsletter sign-up site). ', SFSI_PLUS_DOMAIN); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=more_functions_email_icon&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
|
305 |
-
</p>
|
306 |
-
</div>
|
307 |
-
<?php } ?>
|
308 |
-
</div>
|
309 |
-
</div>
|
310 |
-
|
311 |
-
<!-- END EMAIL ICON -->
|
312 |
-
|
313 |
-
<!-- FACEBOOK ICON -->
|
314 |
-
<div class="row sfsiplus_facebook_section">
|
315 |
-
<h2 class="sfsicls_facebook">
|
316 |
-
Facebook
|
317 |
-
</h2>
|
318 |
-
<div class="inr_cont">
|
319 |
-
<p>
|
320 |
-
<?php _e( 'The facebook icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do', SFSI_PLUS_DOMAIN); ?>
|
321 |
-
<a class="rit_link pop-up" href="javascript:;" data-id="fbex-s2">
|
322 |
-
(<?php _e( 'see an example', SFSI_PLUS_DOMAIN); ?>).
|
323 |
-
</a>
|
324 |
-
</p>
|
325 |
-
<p>
|
326 |
-
<?php _e( 'The facebook icon should allow users to...', SFSI_PLUS_DOMAIN); ?>
|
327 |
-
</p>
|
328 |
-
|
329 |
-
<p class="radio_section fb_url">
|
330 |
-
<input name="sfsi_plus_facebookPage_option" <?php echo ($option2['sfsi_plus_facebookPage_option']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
331 |
-
|
332 |
-
<label>
|
333 |
-
<?php _e( 'Visit my Facebook page at:', SFSI_PLUS_DOMAIN); ?>
|
334 |
-
</label>
|
335 |
-
|
336 |
-
<input class="add" name="sfsi_plus_facebookPage_url" type="url" value="<?php echo ($option2['sfsi_plus_facebookPage_url']!='') ? $option2['sfsi_plus_facebookPage_url'] : '' ;?>" placeholder="E.g https://www.facebook.com/your_page_name" /></p>
|
337 |
-
|
338 |
-
<p class="radio_section fb_url extra_sp">
|
339 |
-
<input name="sfsi_plus_facebookLike_option" <?php echo ($option2['sfsi_plus_facebookLike_option']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
340 |
-
<label>
|
341 |
-
<?php _e( 'Like my blog on Facebook (+1)', SFSI_PLUS_DOMAIN); ?>
|
342 |
-
</label>
|
343 |
-
</p>
|
344 |
-
|
345 |
-
<p class="radio_section fb_url extra_sp">
|
346 |
-
<input name="sfsi_plus_facebookShare_option" <?php echo ($option2['sfsi_plus_facebookShare_option']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
347 |
-
|
348 |
-
<label>
|
349 |
-
<?php _e( 'Share my blog with friends (on Facebook)', SFSI_PLUS_DOMAIN); ?>
|
350 |
-
</label>
|
351 |
-
</p>
|
352 |
-
<?php if($option2['sfsi_plus_premium_facebook_box'] =='yes') { ?>
|
353 |
-
<div class="sfsi_plus_new_prmium_follw">
|
354 |
-
<p>
|
355 |
-
<b><?php _e( 'New:', SFSI_PLUS_DOMAIN); ?></b> <?php _e( ' In our Premium Plugin you can also allow users to follow you on Facebook directly from your site (without leaving your page, increasing followers). ', SFSI_PLUS_DOMAIN); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=direct_follow_facebook&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
|
356 |
-
</p>
|
357 |
-
</div>
|
358 |
-
<?php } ?>
|
359 |
-
|
360 |
-
</div>
|
361 |
-
</div>
|
362 |
-
<!-- END FACEBOOK ICON -->
|
363 |
-
|
364 |
-
<!-- TWITTER ICON -->
|
365 |
-
<div class="row sfsiplus_twitter_section">
|
366 |
-
<h2 class="sfsicls_twt">
|
367 |
-
Twitter
|
368 |
-
</h2>
|
369 |
-
<div class="inr_cont twt_tab_2">
|
370 |
-
<p>
|
371 |
-
<?php
|
372 |
-
_e( 'The Twitter icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do', SFSI_PLUS_DOMAIN);
|
373 |
-
?>
|
374 |
-
<a class="rit_link pop-up" href="javascript:;" data-id="twex-s2">
|
375 |
-
(<?php _e( 'see an example', SFSI_PLUS_DOMAIN); ?>).
|
376 |
-
</a>
|
377 |
-
</p>
|
378 |
-
<p>
|
379 |
-
<?php _e( 'The Twitter icon should allow users to...', SFSI_PLUS_DOMAIN); ?>
|
380 |
-
</p>
|
381 |
-
<p class="radio_section fb_url">
|
382 |
-
<input name="sfsi_plus_twitter_page" <?php echo ($option2['sfsi_plus_twitter_page']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
383 |
-
<label>
|
384 |
-
<?php _e( 'Visit me on Twitter:', SFSI_PLUS_DOMAIN); ?>
|
385 |
-
</label>
|
386 |
-
<input name="sfsi_plus_twitter_pageURL" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_plus_twitter_pageURL']!='') ? $option2['sfsi_plus_twitter_pageURL'] : '' ;?>" class="add" />
|
387 |
-
</p>
|
388 |
-
|
389 |
-
<div class="radio_section fb_url twt_fld">
|
390 |
-
<input name="sfsi_plus_twitter_followme" <?php echo ($option2['sfsi_plus_twitter_followme']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
391 |
-
|
392 |
-
<label>
|
393 |
-
<?php _e( 'Follow me on Twitter:', SFSI_PLUS_DOMAIN); ?>
|
394 |
-
</label>
|
395 |
-
|
396 |
-
<input name="sfsi_plus_twitter_followUserName" type="text" value="<?php echo ($option2['sfsi_plus_twitter_followUserName']!='') ? $option2['sfsi_plus_twitter_followUserName'] : '' ;?>" placeholder="my_twitter_name" class="add" />
|
397 |
-
</div>
|
398 |
-
<div class="radio_section fb_url twt_fld_2">
|
399 |
-
<input name="sfsi_plus_twitter_aboutPage" <?php echo ($option2['sfsi_plus_twitter_aboutPage']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
400 |
-
<label>
|
401 |
-
<?php _e( 'Tweet about my page:', SFSI_PLUS_DOMAIN ); ?>
|
402 |
-
</label>
|
403 |
-
<textarea name="sfsi_plus_twitter_aboutPageText" id="sfsi_plus_twitter_aboutPageText" type="text" class="add_txt" placeholder="<?php _e( 'Hey check out this cool site I found', SFSI_PLUS_DOMAIN ) ;?>: www.yourname.com #Topic via@my_twitter_name" /><?php echo ($option2['sfsi_plus_twitter_aboutPageText']!='') ? stripslashes($option2['sfsi_plus_twitter_aboutPageText']) : _e( 'Hey check out this cool site I found', SFSI_PLUS_DOMAIN ) ;?></textarea>
|
404 |
-
</div>
|
405 |
-
<?php if($option2['sfsi_plus_premium_twitter_box'] =='yes') { ?>
|
406 |
-
<div class= "sfsi_plus_new_prmium_follw">
|
407 |
-
<p>
|
408 |
-
<b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b><?php _e( "Tweeting becomes really fun in the Premium Plugin – you can insert tags to automatically pull the title of the story & link to the story, attach pictures & snippets to the Tweets ( 'Twitter cards') and user Url-shorteners, all leading to more Tweets and traffic for your site!. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=better_tweets&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
|
409 |
-
</p>
|
410 |
-
</div>
|
411 |
-
<?php } ?>
|
412 |
-
</div>
|
413 |
-
</div>
|
414 |
-
<!-- END TWITTER ICON -->
|
415 |
-
|
416 |
-
|
417 |
-
<!-- YOUTUBE ICON -->
|
418 |
-
<div class="row sfsiplus_youtube_section">
|
419 |
-
<h2 class="sfsicls_utube">
|
420 |
-
Youtube
|
421 |
-
</h2>
|
422 |
-
<div class="inr_cont utube_inn">
|
423 |
-
<p>
|
424 |
-
<?php _e( 'The Youtube icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do', SFSI_PLUS_DOMAIN ); ?>
|
425 |
-
<a class="rit_link pop-up" href="javascript:;" data-id="ytex-s2">
|
426 |
-
(<?php _e( 'see an example', SFSI_PLUS_DOMAIN ); ?>).
|
427 |
-
</a>
|
428 |
-
</p>
|
429 |
-
<p>
|
430 |
-
<?php _e( 'The youtube icon should allow users to...', SFSI_PLUS_DOMAIN ); ?>
|
431 |
-
</p>
|
432 |
-
<p class="radio_section fb_url"><input name="sfsi_plus_youtube_page" <?php echo ($option2['sfsi_plus_youtube_page']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
433 |
-
<label>
|
434 |
-
<?php _e( 'Visit my Youtube page at:', SFSI_PLUS_DOMAIN ); ?>
|
435 |
-
</label>
|
436 |
-
<input name="sfsi_plus_youtube_pageUrl" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_plus_youtube_pageUrl']!='') ? $option2['sfsi_plus_youtube_pageUrl'] : '' ;?>" class="add" />
|
437 |
-
</p>
|
438 |
-
<p class="radio_section fb_url"><input name="sfsi_plus_youtube_follow" <?php echo ($option2['sfsi_plus_youtube_follow']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
439 |
-
<label>
|
440 |
-
<?php _e( 'Subscribe to me on Youtube', SFSI_PLUS_DOMAIN ); ?>
|
441 |
-
<span>
|
442 |
-
<?php _e( '(it allows people to subscribe to you directly, without leaving your blog)', SFSI_PLUS_DOMAIN ); ?>
|
443 |
-
</span>
|
444 |
-
</label>
|
445 |
-
</p>
|
446 |
-
<!--Adding Code for Channel Id and Channel Name-->
|
447 |
-
<?php
|
448 |
-
if(!isset($option2['sfsi_plus_youtubeusernameorid']))
|
449 |
-
{
|
450 |
-
$sfsi_plus_youtubeusernameorid = '';
|
451 |
-
}
|
452 |
-
else
|
453 |
-
{
|
454 |
-
$sfsi_plus_youtubeusernameorid = $option2['sfsi_plus_youtubeusernameorid'];
|
455 |
-
}
|
456 |
-
?>
|
457 |
-
|
458 |
-
<div class="cstmutbewpr">
|
459 |
-
<ul class="enough_waffling">
|
460 |
-
<li onclick="showhideutube(this);"><input name="sfsi_plus_youtubeusernameorid" <?php echo ($sfsi_plus_youtubeusernameorid=='name') ? 'checked="true"' : '' ;?> type="radio" value="name" class="styled" />
|
461 |
-
<label>
|
462 |
-
<?php _e( 'User Name', SFSI_PLUS_DOMAIN ); ?>
|
463 |
-
</label>
|
464 |
-
</li>
|
465 |
-
<li onclick="showhideutube(this);"><input name="sfsi_plus_youtubeusernameorid" <?php echo ($sfsi_plus_youtubeusernameorid=='id') ? 'checked="true"' : '' ;?> type="radio" value="id" class="styled" />
|
466 |
-
<label>
|
467 |
-
<?php _e( 'Channel Id', SFSI_PLUS_DOMAIN ); ?>
|
468 |
-
</label></li>
|
469 |
-
</ul>
|
470 |
-
<div class="cstmutbtxtwpr">
|
471 |
-
<div class="cstmutbchnlnmewpr" <?php if($sfsi_plus_youtubeusernameorid != 'id'){echo 'style="display: block;"';}?>>
|
472 |
-
<p class="extra_pp">
|
473 |
-
<label><?php _e( 'UserName:', SFSI_PLUS_DOMAIN ); ?></label>
|
474 |
-
<input name="sfsi_plus_ytube_user" type="url" value="<?php echo (isset($option2['sfsi_plus_ytube_user']) && $option2['sfsi_plus_ytube_user']!='') ? $option2['sfsi_plus_ytube_user'] : '' ;?>" placeholder="Youtube username" class="add" />
|
475 |
-
</p>
|
476 |
-
<div class="utbe_instruction">
|
477 |
-
<?php _e( 'To find your User ID/Channel ID, login to your YouTube account, click the user icon at the top right corner and select "Settings", then click "Advanced" under "Name" and you will find both your "Channel ID" and "User ID" under "Account Information".', SFSI_PLUS_DOMAIN ); ?>
|
478 |
-
</div>
|
479 |
-
</div>
|
480 |
-
<div class="cstmutbchnlidwpr" <?php if($sfsi_plus_youtubeusernameorid == 'id'){echo 'style="display: block"';}?>>
|
481 |
-
<p class="extra_pp">
|
482 |
-
<label>
|
483 |
-
<?php _e( 'Channel Id:', SFSI_PLUS_DOMAIN ); ?>
|
484 |
-
</label>
|
485 |
-
<input name="sfsi_plus_ytube_chnlid" type="url" value="<?php echo (isset($option2['sfsi_plus_ytube_chnlid']) && $option2['sfsi_plus_ytube_chnlid']!='') ? $option2['sfsi_plus_ytube_chnlid'] : '' ;?>" placeholder="youtube_channel_id" class="add" />
|
486 |
-
</p>
|
487 |
-
<div class="utbe_instruction">
|
488 |
-
<?php _e( 'To find your User ID/Channel ID, login to your YouTube account, click the user icon at the top right corner and select "Settings", then click "Advanced" under "Name" and you will find both your "Channel ID" and "User ID" under "Account Information".', SFSI_PLUS_DOMAIN ); ?>
|
489 |
-
</div>
|
490 |
-
</div>
|
491 |
-
</div>
|
492 |
-
</div>
|
493 |
-
|
494 |
-
</div>
|
495 |
-
</div>
|
496 |
-
<!-- END YOUTUBE ICON -->
|
497 |
-
|
498 |
-
<!-- PINTEREST ICON -->
|
499 |
-
<div class="row sfsiplus_pinterest_section">
|
500 |
-
<h2 class="sfsicls_pinterest">Pinterest</h2>
|
501 |
-
<div class="inr_cont">
|
502 |
-
<p>
|
503 |
-
<?php _e( 'The Pinterest icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do', SFSI_PLUS_DOMAIN ); ?>
|
504 |
-
<a class="rit_link pop-up" href="javascript:;" data-id="pinex-s2">
|
505 |
-
(<?php _e( 'see an example', SFSI_PLUS_DOMAIN ); ?>).
|
506 |
-
</a>
|
507 |
-
</p>
|
508 |
-
<p>
|
509 |
-
<?php _e( 'The Pinterest icon should allow users to...', SFSI_PLUS_DOMAIN ); ?>
|
510 |
-
</p>
|
511 |
-
<p class="radio_section fb_url">
|
512 |
-
<input name="sfsi_plus_pinterest_page" <?php echo ($option2['sfsi_plus_pinterest_page']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
513 |
-
<label>
|
514 |
-
<?php _e( 'Visit my Pinterest page at:', SFSI_PLUS_DOMAIN ); ?>
|
515 |
-
</label>
|
516 |
-
<input name="sfsi_plus_pinterest_pageUrl" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_plus_pinterest_pageUrl']!='') ? $option2['sfsi_plus_pinterest_pageUrl'] : '' ;?>" class="add" />
|
517 |
-
</p>
|
518 |
-
<div class="pint_url">
|
519 |
-
<p class="radio_section fb_url">
|
520 |
-
<input name="sfsi_plus_pinterest_pingBlog" <?php echo ($option2['sfsi_plus_pinterest_pingBlog']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
521 |
-
<label>
|
522 |
-
<?php _e( 'Pin my blog on Pinterest (+1)', SFSI_PLUS_DOMAIN); ?>
|
523 |
-
</label>
|
524 |
-
</p>
|
525 |
-
</div>
|
526 |
-
<div class= "sfsi_plus_new_prmium_follw">
|
527 |
-
<p>
|
528 |
-
<b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b><?php _e( "The Premium Plugin it allows you to show a Pinterest icon if visitors move their mouse over your images. You can define exactly where it should show, and where not. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=pinterest&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
|
529 |
-
</p>
|
530 |
-
</div>
|
531 |
-
</div>
|
532 |
-
|
533 |
-
</div>
|
534 |
-
<!-- END PINTEREST ICON -->
|
535 |
-
|
536 |
-
<!-- INSTAGRAM ICON -->
|
537 |
-
<div class="row sfsiplus_instagram_section">
|
538 |
-
<h2 class="sfsicls_instagram">
|
539 |
-
Instagram
|
540 |
-
</h2>
|
541 |
-
<div class="inr_cont">
|
542 |
-
<p>
|
543 |
-
<?php _e( 'When clicked on, users will get directed to your Instagram page', SFSI_PLUS_DOMAIN ); ?>.
|
544 |
-
</p>
|
545 |
-
<p class="radio_section fb_url cus_link instagram_space" >
|
546 |
-
<label>
|
547 |
-
URL
|
548 |
-
</label>
|
549 |
-
<input name="sfsi_plus_instagram_pageUrl" type="text" value="<?php echo (isset($option2['sfsi_plus_instagram_pageUrl']) && $option2['sfsi_plus_instagram_pageUrl']!='') ? $option2['sfsi_plus_instagram_pageUrl'] : '' ;?>" placeholder="http://" class="add" />
|
550 |
-
</p>
|
551 |
-
</div>
|
552 |
-
</div>
|
553 |
-
<!-- END INSTAGRAM ICON -->
|
554 |
-
|
555 |
-
<!-- LINKEDIN ICON -->
|
556 |
-
<div class="row sfsiplus_linkedin_section">
|
557 |
-
<h2 class="sfsicls_linkdin">
|
558 |
-
LinkedIn
|
559 |
-
</h2>
|
560 |
-
<div class="inr_cont linked_tab_2 link_in">
|
561 |
-
<p>
|
562 |
-
<?php _e( 'The LinkedIn icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do', SFSI_PLUS_DOMAIN ); ?>
|
563 |
-
<a class="rit_link pop-up" href="javascript:;" data-id="linkex-s2">
|
564 |
-
(<?php _e( 'see an example', SFSI_PLUS_DOMAIN); ?>).
|
565 |
-
</a>
|
566 |
-
</p>
|
567 |
-
<p>
|
568 |
-
<?php _e( 'You find your ID in the link of your profile page, e.g. https://www.linkedin.com/profile/view?id=<b>8539887</b>&trk=nav_responsive_tab_profile_pic', SFSI_PLUS_DOMAIN ); ?>
|
569 |
-
</p>
|
570 |
-
<p>
|
571 |
-
<?php _e( 'The LinkedIn icon should allow users to...', SFSI_PLUS_DOMAIN ); ?>
|
572 |
-
</p>
|
573 |
-
<div class="radio_section fb_url link_1">
|
574 |
-
<input name="sfsi_plus_linkedin_page" <?php echo ($option2['sfsi_plus_linkedin_page']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
575 |
-
<label>
|
576 |
-
<?php _e( 'Visit my Linkedin page at:', SFSI_PLUS_DOMAIN ); ?>
|
577 |
-
</label>
|
578 |
-
<input name="sfsi_plus_linkedin_pageURL" type="text" placeholder="http://" value="<?php echo ($option2['sfsi_plus_linkedin_pageURL']!='') ? $option2['sfsi_plus_linkedin_pageURL'] : '' ;?>" class="add" />
|
579 |
-
</div>
|
580 |
-
|
581 |
-
<div class="radio_section fb_url link_2">
|
582 |
-
<input name="sfsi_plus_linkedin_follow" <?php echo ($option2['sfsi_plus_linkedin_follow']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
583 |
-
|
584 |
-
<label>
|
585 |
-
<?php _e( 'Follow me on Linkedin:', SFSI_PLUS_DOMAIN ); ?>
|
586 |
-
</label>
|
587 |
-
|
588 |
-
<input name="sfsi_plus_linkedin_followCompany" type="text" value="<?php echo ($option2['sfsi_plus_linkedin_followCompany']!='') ? $option2['sfsi_plus_linkedin_followCompany'] : '' ;?>" class="add" placeholder="Enter company ID, e.g. 123456" />
|
589 |
-
</div>
|
590 |
-
|
591 |
-
<div class="radio_section fb_url link_3">
|
592 |
-
<input name="sfsi_plus_linkedin_SharePage" <?php echo ($option2['sfsi_plus_linkedin_SharePage']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
593 |
-
<label>
|
594 |
-
<?php _e( 'Share my page on LinkedIn', SFSI_PLUS_DOMAIN ); ?>
|
595 |
-
</label>
|
596 |
-
</div>
|
597 |
-
|
598 |
-
<div class="radio_section fb_url link_4">
|
599 |
-
<input name="sfsi_plus_linkedin_recommendBusines" <?php echo ($option2['sfsi_plus_linkedin_recommendBusines']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
600 |
-
<label class="anthr_labl">
|
601 |
-
<?php _e( 'Recommend my business or product on Linkedin', SFSI_PLUS_DOMAIN ); ?>
|
602 |
-
</label>
|
603 |
-
<input name="sfsi_plus_linkedin_recommendProductId" type="text" value="<?php echo ($option2['sfsi_plus_linkedin_recommendProductId']!='') ? $option2['sfsi_plus_linkedin_recommendProductId'] : '' ;?>" class="add link_dbl" placeholder="Enter Product ID, e.g. 1441" /> <input name="sfsi_plus_linkedin_recommendCompany" type="text" value="<?php echo ($option2['sfsi_plus_linkedin_recommendCompany']!='') ? $option2['sfsi_plus_linkedin_recommendCompany'] : '' ;?>" class="add" placeholder="Enter company name, e.g. Google”" />
|
604 |
-
</div>
|
605 |
-
<div class="lnkdin_instruction">
|
606 |
-
<?php _e( 'To find your Product or Company ID, you can use their ID lookup tool at', SFSI_PLUS_DOMAIN ); ?>
|
607 |
-
<a target="_blank" href="https://developer.linkedin.com/apply-getting-started#company-lookup">
|
608 |
-
https://developer.linkedin.com/apply-getting-started#company-lookup
|
609 |
-
</a>
|
610 |
-
. <?php _e( 'You need to be logged in to Linkedin to be able to use it.', SFSI_PLUS_DOMAIN ); ?>
|
611 |
-
</div>
|
612 |
-
</div>
|
613 |
-
</div>
|
614 |
-
<!-- END LINKEDIN ICON -->
|
615 |
-
|
616 |
-
<!-- HOUZZ ICON -->
|
617 |
-
<div class="row sfsiplus_houzz_section">
|
618 |
-
<h2 class="sfsicls_houzz">
|
619 |
-
Houzz
|
620 |
-
</h2>
|
621 |
-
<div class="inr_cont">
|
622 |
-
<p>
|
623 |
-
<?php _e( 'Please provide the url to your Houzz profile (e.g. http://www.houzz.com/user/your_username).', SFSI_PLUS_DOMAIN ); ?>
|
624 |
-
</p>
|
625 |
-
<div class="fb_url link_2">
|
626 |
-
<label class="sfsiLabel">
|
627 |
-
<?php _e( 'URL:', SFSI_PLUS_DOMAIN ); ?>
|
628 |
-
</label>
|
629 |
-
|
630 |
-
<input style="float:none;margin-top:0" name="sfsi_plus_houzz_pageUrl" type="text" value="<?php echo (isset($option2['sfsi_plus_houzz_pageUrl']) && $option2['sfsi_plus_houzz_pageUrl']!='') ? $option2['sfsi_plus_houzz_pageUrl'] : '' ;?>" placeholder="http://" class="add" />
|
631 |
-
</div>
|
632 |
-
|
633 |
-
</div>
|
634 |
-
</div>
|
635 |
-
<!-- HOUZZ INSTAGRAM ICON -->
|
636 |
-
|
637 |
-
<!--MZ CODE START-->
|
638 |
-
|
639 |
-
<!-- Ok ICON -->
|
640 |
-
<div class="row sfsiplus_ok_section">
|
641 |
-
|
642 |
-
<h2 class="sfsicls_ok"><?php _e( 'OdnoKlassniki', SFSI_PLUS_DOMAIN ); ?></h2>
|
643 |
-
<div class="inr_cont">
|
644 |
-
<p>
|
645 |
-
<?php _e( 'When clicked on, users will get directed to your OK page.', SFSI_PLUS_DOMAIN ); ?>
|
646 |
-
</p>
|
647 |
-
|
648 |
-
<div class="radio_section fb_url">
|
649 |
-
<input name="sfsi_plus_okVisit_option" checked="true" type="checkbox" value="yes" style="display:none;" class=""/>
|
650 |
-
|
651 |
-
<label class="sfsiLabel" style="margin-top:10px">
|
652 |
-
<?php _e( 'Visit my OK page at:', SFSI_PLUS_DOMAIN ); ?>
|
653 |
-
</label>
|
654 |
-
|
655 |
-
<input name="sfsi_plus_okVisit_url" type="url" placeholder="" value="<?php echo $option2['sfsi_plus_okVisit_url'];?>" class="add" style="margin-top:10px" />
|
656 |
-
</div>
|
657 |
-
<div class= "sfsi_plus_new_prmium_follw">
|
658 |
-
<p>
|
659 |
-
<b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b><?php _e( "In our Premium Plugin you can now give OK icon other functions too, e.g. <b>like your website/blog, subscribe/follow you</b> on OK. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=ok_like_and_subscribe&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
|
660 |
-
</p>
|
661 |
-
</div>
|
662 |
-
</div>
|
663 |
-
</div>
|
664 |
-
<!-- Ok ICON -->
|
665 |
-
|
666 |
-
<!-- Telegram ICON -->
|
667 |
-
<div class="row sfsiplus_telegram_section">
|
668 |
-
|
669 |
-
<h2 class="sfsicls_telegram"><?php _e( 'Telegram', SFSI_PLUS_DOMAIN ); ?></h2>
|
670 |
-
|
671 |
-
<div class="inr_cont">
|
672 |
-
<p>
|
673 |
-
<?php _e( 'Clicking on this icon will allow users to contact you on Telegram.', SFSI_PLUS_DOMAIN ); ?>
|
674 |
-
</p>
|
675 |
-
|
676 |
-
<div class="radio_section fb_url ">
|
677 |
-
<input type="checkbox" name="sfsi_plus_telegramShare_option" value="yes" checked="checked" style="display:none" />
|
678 |
-
|
679 |
-
<label class="sfsiLabel1" >
|
680 |
-
<?php _e("Pre-filled message:", SFSI_PLUS_DOMAIN);?>
|
681 |
-
</label>
|
682 |
-
|
683 |
-
<input name="sfsi_plus_telegram_message" type="text" value="<?php echo (isset($option2['sfsi_plus_telegram_message']) && $option2['sfsi_plus_telegram_message']!='') ? $option2['sfsi_plus_telegram_message'] : '' ;?>" placeholder="Hey, I like your website." class="add link_1"/>
|
684 |
-
</div>
|
685 |
-
|
686 |
-
<div class="radio_section fb_url ">
|
687 |
-
<label class="sfsiLabel1" >
|
688 |
-
<?php _e("My Telegram username", SFSI_PLUS_DOMAIN);?>
|
689 |
-
</label>
|
690 |
-
|
691 |
-
<input name="sfsi_plus_telegram_username" type="text" value="<?php echo (isset($option2['sfsi_plus_telegram_username']) && $option2['sfsi_plus_telegram_username']!='') ? $option2['sfsi_plus_telegram_username'] : '' ;?>" placeholder="" class="add" />
|
692 |
-
</div>
|
693 |
-
<div class= "sfsi_plus_new_prmium_follw">
|
694 |
-
<p>
|
695 |
-
<b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b><?php _e( " In our Premium Plugin you can now give your Telegram icon sharing functionality too, e.g. share your website/blog with friends. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=telegram_sharing&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
|
696 |
-
</p>
|
697 |
-
</div>
|
698 |
-
</div>
|
699 |
-
|
700 |
-
|
701 |
-
</div>
|
702 |
-
<!-- Telegram ICON -->
|
703 |
-
|
704 |
-
<!-- VK ICON -->
|
705 |
-
<div class="row sfsiplus_vk_section">
|
706 |
-
|
707 |
-
<h2 class="sfsicls_vk">
|
708 |
-
<?php _e( 'VK', SFSI_PLUS_DOMAIN ); ?>
|
709 |
-
</h2>
|
710 |
-
<div class="inr_cont">
|
711 |
-
<p>
|
712 |
-
<?php _e( 'When clicked on, users will get directed to your Weibo page.', SFSI_PLUS_DOMAIN ); ?>
|
713 |
-
</p>
|
714 |
-
|
715 |
-
<div class="radio_section fb_url ">
|
716 |
-
<input type="checkbox" name="sfsi_plus_vkVisit_option" value="yes" checked="checked" style="display:none">
|
717 |
-
|
718 |
-
<label class="sfsiLabel">
|
719 |
-
<?php _e( 'Visit my VK page at:', SFSI_PLUS_DOMAIN ); ?>
|
720 |
-
</label>
|
721 |
-
|
722 |
-
<input name="sfsi_plus_vkVisit_url" type="url" placeholder="http://" value="<?php echo $option2['sfsi_plus_vkVisit_url'];?>" class="add" />
|
723 |
-
</div>
|
724 |
-
<div class= "sfsi_plus_new_prmium_follw">
|
725 |
-
<p>
|
726 |
-
<b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b>
|
727 |
-
<?php _e( "In our Premium Plugin you can now give your VK icon sharing functionality too, e.g. <b>share your website/blog</b> with friends. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=vk_share&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
|
728 |
-
</p>
|
729 |
-
</div>
|
730 |
-
</div>
|
731 |
-
</div>
|
732 |
-
<!-- VK ICON -->
|
733 |
-
|
734 |
-
<div class="row sfsiplus_wechat_section" style="display: <?php echo isset($option1["sfsi_plus_wechat_display"])&&$option1["sfsi_plus_wechat_display"]=="yes"?'block':'none'; ?>">
|
735 |
-
|
736 |
-
<h2 class="sfsicls_wechat">
|
737 |
-
<?php _e('WeChat', SFSI_PLUS_DOMAIN ); ?>
|
738 |
-
</h2>
|
739 |
-
|
740 |
-
<div class="inr_cont">
|
741 |
-
<p class="sfsiLabel infoLabel">
|
742 |
-
<?php _e( 'When clicked on, your website/blog will be shared on WeChat.', SFSI_PLUS_DOMAIN ); ?>
|
743 |
-
</p>
|
744 |
-
<div class="radio_section fb_url ">
|
745 |
-
<input type="checkbox" name="sfsi_plus_wechatShare_option" value="yes" checked="checked" style="display:none"/>
|
746 |
-
|
747 |
-
</div>
|
748 |
-
<div class= "sfsi_plus_new_prmium_follw">
|
749 |
-
<p>
|
750 |
-
<b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b>
|
751 |
-
<?php _e( "In our Premium Plugin you can also allow users to <b>follow you</b> on WeChat. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=wechat_sharing&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
|
752 |
-
</p>
|
753 |
-
</div>
|
754 |
-
</div>
|
755 |
-
|
756 |
-
|
757 |
-
|
758 |
-
|
759 |
-
</div>
|
760 |
-
<!-- VK ICON -->
|
761 |
-
|
762 |
-
<!-- Weibo ICON -->
|
763 |
-
<div class="row sfsiplus_weibo_section">
|
764 |
-
|
765 |
-
<h2 class="sfsicls_weibo">
|
766 |
-
<?php _e('Sina Weibo', SFSI_PLUS_DOMAIN ); ?>
|
767 |
-
</h2>
|
768 |
-
<div class="inr_cont">
|
769 |
-
<p class="sfsiLabel infoLabel">
|
770 |
-
<?php _e( 'When clicked on, users will get directed to your Weibo page.', SFSI_PLUS_DOMAIN ); ?>
|
771 |
-
</p>
|
772 |
-
<div class="radio_section fb_url ">
|
773 |
-
<input name="sfsi_plus_weiboVisit_option" checked="checked" placeholder="http://" type="checkbox" value="yes" style="display:none"/>
|
774 |
-
|
775 |
-
<label class="sfsiLabel">
|
776 |
-
<?php _e( 'Visit my Sina Weibo page at:', SFSI_PLUS_DOMAIN ); ?>
|
777 |
-
</label>
|
778 |
-
|
779 |
-
<input name="sfsi_plus_weiboVisit_url" type="url" placeholder="" value="<?php echo $option2['sfsi_plus_weiboVisit_url'];?>" class="add" />
|
780 |
-
</div>
|
781 |
-
<div class= "sfsi_plus_new_prmium_follw">
|
782 |
-
<p>
|
783 |
-
<b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b>
|
784 |
-
<?php _e( " In our Premium Plugin you can now give Weibo icon other functions too, e.g. <b>like your website/blog, share your website/blog</b> on Weibo. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=weibo_like_and_share&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
|
785 |
-
</p>
|
786 |
-
</div>
|
787 |
-
</div>
|
788 |
-
|
789 |
-
|
790 |
-
</div>
|
791 |
-
<!-- Weibo ICON -->
|
792 |
-
|
793 |
-
<!--MZ CODE END-->
|
794 |
-
|
795 |
-
<!-- Custom icon section start here -->
|
796 |
-
<div class="plus_custom-links sfsiplus_custom_section">
|
797 |
-
<?php
|
798 |
-
$costom_links = unserialize($option2['sfsi_plus_CustomIcon_links']);
|
799 |
-
|
800 |
-
$bannerDisplay= "display:none;";
|
801 |
-
$count = 1;
|
802 |
-
for($i = $first_key; $i <= $endkey; $i++) :
|
803 |
-
if(!empty( $icons[$i])) :
|
804 |
-
|
805 |
-
$bannerDisplay = "display:block;";
|
806 |
-
?>
|
807 |
-
<div class="row sfsiICON_<?php echo $i; ?> cm_lnk">
|
808 |
-
<h2 class="custom">
|
809 |
-
<span class="customstep2-img">
|
810 |
-
<img src="<?php echo (!empty($icons[$i])) ? esc_url($icons[$i]) : SFSI_PLUS_PLUGURL.'images/custom.png';?>" id="CImg_<?php echo $new_element; ?>" style="border-radius:48%" />
|
811 |
-
</span>
|
812 |
-
<span class="sfsiCtxt">
|
813 |
-
<?php _e( 'Custom', SFSI_PLUS_DOMAIN ); ?>
|
814 |
-
<?php echo $count; ?>
|
815 |
-
</span>
|
816 |
-
</h2>
|
817 |
-
<div class="inr_cont ">
|
818 |
-
<p>
|
819 |
-
<?php _e( 'Where do you want this icon to link to?', SFSI_PLUS_DOMAIN ); ?>
|
820 |
-
</p>
|
821 |
-
<p class="radio_section fb_url sfsiplus_custom_section cus_link " >
|
822 |
-
<label>
|
823 |
-
<?php _e( 'Link:', SFSI_PLUS_DOMAIN ); ?>
|
824 |
-
</label>
|
825 |
-
<input name="sfsi_plus_CustomIcon_links[]" type="text" value="<?php echo (isset($costom_links[$i]) && $costom_links[$i]!='') ? esc_url($costom_links[$i]) : '' ;?>" placeholder="http://" class="add" file-id="<?php echo $i; ?>" />
|
826 |
-
</p>
|
827 |
-
</div>
|
828 |
-
</div>
|
829 |
-
<?php
|
830 |
-
$count++;
|
831 |
-
endif; endfor;
|
832 |
-
?>
|
833 |
-
</div>
|
834 |
-
|
835 |
-
<div class="banner_custom_icon sfsi_plus_new_prmium_follw" style="<?php echo $bannerDisplay;?>">
|
836 |
-
<p><b><?php _e( 'New:', SFSI_PLUS_DOMAIN); ?></b> <?php _e( ' In the Premium Plugin you can also give custom icons the feature that when people click on it, they can call you, or send you an SMS). ', SFSI_PLUS_DOMAIN); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=call_or_sms_feature_custom_icons&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank" style="font-family: inherit !important;"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
|
837 |
-
</p>
|
838 |
-
</div>
|
839 |
-
|
840 |
-
<!-- END Custom icon section here -->
|
841 |
-
|
842 |
-
|
843 |
-
<?php sfsi_plus_ask_for_help(2); ?>
|
844 |
-
|
845 |
-
|
846 |
-
<!-- SAVE BUTTON SECTION -->
|
847 |
-
<div class="save_button tab_2_sav">
|
848 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/ajax-loader.gif" class="loader-img" />
|
849 |
-
|
850 |
-
<?php $nonce = wp_create_nonce("update_plus_step2"); ?>
|
851 |
-
|
852 |
-
<a href="javascript:;" id="sfsi_plus_save2" title="Save" data-nonce="<?php echo $nonce;?>">
|
853 |
-
<?php _e( 'Save', SFSI_PLUS_DOMAIN ); ?>
|
854 |
-
</a>
|
855 |
-
</div>
|
856 |
-
<!-- END SAVE BUTTON SECTION -->
|
857 |
-
<a class="sfsiColbtn closeSec" href="javascript:;">
|
858 |
-
<?php _e( 'Collapse area', SFSI_PLUS_DOMAIN ); ?>
|
859 |
-
</a>
|
860 |
-
|
861 |
-
<label class="closeSec"></label>
|
862 |
-
|
863 |
-
<!-- ERROR AND SUCCESS MESSAGE AREA-->
|
864 |
-
<p class="red_txt errorMsg" style="display:none"> </p>
|
865 |
-
<p class="green_txt sucMsg" style="display:none"> </p>
|
866 |
-
|
867 |
-
</div>
|
868 |
-
<!-- END Section 2 "What do you want the icons to do?" main div -->
|
1 |
+
<?php
|
2 |
+
/* unserialize all saved option for second section options */
|
3 |
+
$option4= unserialize(get_option('sfsi_plus_section4_options',false));
|
4 |
+
$option2= unserialize(get_option('sfsi_plus_section2_options',false));
|
5 |
+
/*
|
6 |
+
* Sanitize, escape and validate values
|
7 |
+
*/
|
8 |
+
$option2['sfsi_plus_rss_url'] = (isset($option2['sfsi_plus_rss_url']))
|
9 |
+
? esc_url($option2['sfsi_plus_rss_url'])
|
10 |
+
: '';
|
11 |
+
$option2['sfsi_plus_rss_icons'] = (isset($option2['sfsi_plus_rss_icons']))
|
12 |
+
? sanitize_text_field($option2['sfsi_plus_rss_icons'])
|
13 |
+
: '';
|
14 |
+
$option2['sfsi_plus_email_url'] = (isset($option2['sfsi_plus_email_url']))
|
15 |
+
? sanitize_text_field( $option2['sfsi_plus_email_url'])
|
16 |
+
: '';
|
17 |
+
|
18 |
+
$option2['sfsi_plus_facebookPage_option'] = (isset($option2['sfsi_plus_facebookPage_option']))
|
19 |
+
? sanitize_text_field($option2['sfsi_plus_facebookPage_option'])
|
20 |
+
: '';
|
21 |
+
$option2['sfsi_plus_facebookPage_url'] = (isset($option2['sfsi_plus_facebookPage_url']))
|
22 |
+
? esc_url($option2['sfsi_plus_facebookPage_url'])
|
23 |
+
: '';
|
24 |
+
$option2['sfsi_plus_facebookLike_option'] = (isset($option2['sfsi_plus_facebookLike_option']))
|
25 |
+
? sanitize_text_field($option2['sfsi_plus_facebookLike_option'])
|
26 |
+
: ' ';
|
27 |
+
$option2['sfsi_plus_facebookShare_option'] = (isset($option2['sfsi_plus_facebookShare_option']))
|
28 |
+
? sanitize_text_field($option2['sfsi_plus_facebookShare_option'])
|
29 |
+
: '';
|
30 |
+
|
31 |
+
$option2['sfsi_plus_twitter_followme'] = (isset($option2['sfsi_plus_twitter_followme']))
|
32 |
+
? sanitize_text_field($option2['sfsi_plus_twitter_followme'])
|
33 |
+
: '';
|
34 |
+
$option2['sfsi_plus_twitter_followUserName']= (isset($option2['sfsi_plus_twitter_followUserName']))
|
35 |
+
? sanitize_text_field($option2['sfsi_plus_twitter_followUserName'])
|
36 |
+
: '';
|
37 |
+
$option2['sfsi_plus_twitter_aboutPage'] = (isset($option2['sfsi_plus_twitter_aboutPage']))
|
38 |
+
? sanitize_text_field($option2['sfsi_plus_twitter_aboutPage'])
|
39 |
+
: '';
|
40 |
+
$option2['sfsi_plus_twitter_page'] = (isset($option2['sfsi_plus_twitter_page']))
|
41 |
+
? sanitize_text_field($option2['sfsi_plus_twitter_page'])
|
42 |
+
: '';
|
43 |
+
$option2['sfsi_plus_twitter_pageURL'] = (isset($option2['sfsi_plus_twitter_pageURL']))
|
44 |
+
? esc_url($option2['sfsi_plus_twitter_pageURL'])
|
45 |
+
: '';
|
46 |
+
$option2['sfsi_plus_twitter_aboutPageText'] = (isset($option2['sfsi_plus_twitter_aboutPageText']))
|
47 |
+
? sanitize_text_field($option2['sfsi_plus_twitter_aboutPageText'])
|
48 |
+
: '';
|
49 |
+
$option2['sfsi_plus_youtube_pageUrl'] = (isset($option2['sfsi_plus_youtube_pageUrl']))
|
50 |
+
? esc_url($option2['sfsi_plus_youtube_pageUrl'])
|
51 |
+
: '';
|
52 |
+
$option2['sfsi_plus_youtube_page'] = (isset($option2['sfsi_plus_youtube_page']))
|
53 |
+
? sanitize_text_field($option2['sfsi_plus_youtube_page'])
|
54 |
+
: '';
|
55 |
+
$option2['sfsi_plus_youtube_follow'] = (isset($option2['sfsi_plus_youtube_follow']))
|
56 |
+
? sanitize_text_field($option2['sfsi_plus_youtube_follow'])
|
57 |
+
: '';
|
58 |
+
$option2['sfsi_plus_ytube_user'] = (isset($option2['sfsi_plus_ytube_user']))
|
59 |
+
? sanitize_text_field($option2['sfsi_plus_ytube_user'])
|
60 |
+
: '';
|
61 |
+
|
62 |
+
$option2['sfsi_plus_pinterest_page'] = (isset($option2['sfsi_plus_pinterest_page']))
|
63 |
+
? sanitize_text_field($option2['sfsi_plus_pinterest_page'])
|
64 |
+
: '';
|
65 |
+
$option2['sfsi_plus_pinterest_pageUrl'] = (isset($option2['sfsi_plus_pinterest_pageUrl']))
|
66 |
+
? esc_url($option2['sfsi_plus_pinterest_pageUrl'])
|
67 |
+
: '';
|
68 |
+
$option2['sfsi_plus_pinterest_pingBlog'] = (isset($option2['sfsi_plus_pinterest_pingBlog']))
|
69 |
+
? sanitize_text_field($option2['sfsi_plus_pinterest_pingBlog'])
|
70 |
+
: '';
|
71 |
+
|
72 |
+
$option2['sfsi_plus_instagram_pageUrl'] = (isset($option2['sfsi_plus_instagram_pageUrl']))
|
73 |
+
? esc_url($option2['sfsi_plus_instagram_pageUrl'])
|
74 |
+
: '';
|
75 |
+
|
76 |
+
$option2['sfsi_plus_linkedin_page'] = (isset($option2['sfsi_plus_linkedin_page']))
|
77 |
+
? sanitize_text_field($option2['sfsi_plus_linkedin_page'])
|
78 |
+
: '';
|
79 |
+
$option2['sfsi_plus_linkedin_pageURL'] = (isset($option2['sfsi_plus_linkedin_pageURL']))
|
80 |
+
? esc_url($option2['sfsi_plus_linkedin_pageURL'])
|
81 |
+
: '';
|
82 |
+
$option2['sfsi_plus_linkedin_follow'] = (isset($option2['sfsi_plus_linkedin_follow']))
|
83 |
+
? sanitize_text_field($option2['sfsi_plus_linkedin_follow'])
|
84 |
+
: '';
|
85 |
+
$option2['sfsi_plus_linkedin_followCompany']= (isset($option2['sfsi_plus_linkedin_followCompany']))
|
86 |
+
? intval($option2['sfsi_plus_linkedin_followCompany'])
|
87 |
+
: '';
|
88 |
+
$option2['sfsi_plus_linkedin_SharePage'] = (isset($option2['sfsi_plus_linkedin_SharePage']))
|
89 |
+
? sanitize_text_field($option2['sfsi_plus_linkedin_SharePage'])
|
90 |
+
: '';
|
91 |
+
$option2['sfsi_plus_linkedin_recommendBusines'] = (isset($option2['sfsi_plus_linkedin_recommendBusines']))
|
92 |
+
? sanitize_text_field($option2['sfsi_plus_linkedin_recommendBusines'])
|
93 |
+
: '';
|
94 |
+
$option2['sfsi_plus_linkedin_recommendCompany'] = (isset($option2['sfsi_plus_linkedin_recommendCompany']))
|
95 |
+
? sanitize_text_field($option2['sfsi_plus_linkedin_recommendCompany'])
|
96 |
+
: '';
|
97 |
+
$option2['sfsi_plus_linkedin_recommendProductId'] = (isset($option2['sfsi_plus_linkedin_recommendProductId']))
|
98 |
+
? intval($option2['sfsi_plus_linkedin_recommendProductId'])
|
99 |
+
: '';
|
100 |
+
|
101 |
+
$option2['sfsi_plus_houzz_pageUrl'] = (isset($option2['sfsi_plus_houzz_pageUrl']))
|
102 |
+
? esc_url($option2['sfsi_plus_houzz_pageUrl'])
|
103 |
+
: '';
|
104 |
+
$option4['sfsi_plus_youtubeusernameorid'] = (isset($option4['sfsi_plus_youtubeusernameorid']))
|
105 |
+
? sanitize_text_field($option4['sfsi_plus_youtubeusernameorid'])
|
106 |
+
: '';
|
107 |
+
$option4['sfsi_plus_ytube_chnlid'] = (isset($option4['sfsi_plus_ytube_chnlid']))
|
108 |
+
? strip_tags(trim($option4['sfsi_plus_ytube_chnlid']))
|
109 |
+
: '';
|
110 |
+
$option2['sfsi_plus_premium_email_box'] = (isset($option2['sfsi_plus_premium_email_box']))
|
111 |
+
? sanitize_text_field($option2['sfsi_plus_premium_email_box'])
|
112 |
+
: 'yes';
|
113 |
+
$option2['sfsi_plus_premium_facebook_box'] = (isset($option2['sfsi_plus_premium_facebook_box']))
|
114 |
+
? sanitize_text_field($option2['sfsi_plus_premium_facebook_box'])
|
115 |
+
: 'yes';
|
116 |
+
$option2['sfsi_plus_premium_twitter_box'] = (isset($option2['sfsi_plus_premium_twitter_box']))
|
117 |
+
? sanitize_text_field($option2['sfsi_plus_premium_twitter_box'])
|
118 |
+
: 'yes';
|
119 |
+
$option2['sfsi_plus_okLike_option'] = (isset($option2['sfsi_plus_okLike_option']))
|
120 |
+
? sanitize_text_field($option2['sfsi_plus_okLike_option'])
|
121 |
+
: 'no';
|
122 |
+
$option2['sfsi_plus_okVisit_option'] = (isset($option2['sfsi_plus_okVisit_option']))
|
123 |
+
? sanitize_text_field($option2['sfsi_plus_okVisit_option'])
|
124 |
+
: 'no';
|
125 |
+
|
126 |
+
$option2['sfsi_plus_okVisit_url'] = (isset($option2['sfsi_plus_okVisit_url']))
|
127 |
+
? sanitize_text_field($option2['sfsi_plus_okVisit_url'])
|
128 |
+
: '';
|
129 |
+
|
130 |
+
$option2['sfsi_plus_okSubscribe_option'] = (isset($option2['sfsi_plus_okSubscribe_option']))
|
131 |
+
? sanitize_text_field($option2['sfsi_plus_okSubscribe_option'])
|
132 |
+
: 'no';
|
133 |
+
|
134 |
+
$option2['sfsi_plus_okSubscribe_userid'] = (isset($option2['sfsi_plus_okSubscribe_userid']))
|
135 |
+
? sanitize_text_field($option2['sfsi_plus_okSubscribe_userid'])
|
136 |
+
: '';
|
137 |
+
|
138 |
+
$option2['sfsi_plus_telegramShare_option'] = (isset($option2['sfsi_plus_telegramShare_option']))
|
139 |
+
? sanitize_text_field($option2['sfsi_plus_telegramShare_option'])
|
140 |
+
: 'no';
|
141 |
+
$option2['sfsi_plus_telegramMessage_option'] = (isset($option2['sfsi_plus_telegramMessage_option']))
|
142 |
+
? sanitize_text_field($option2['sfsi_plus_telegramMessage_option'])
|
143 |
+
: 'no';
|
144 |
+
|
145 |
+
$option2['sfsi_plus_telegram_username'] = (isset($option2['sfsi_plus_telegram_username']))
|
146 |
+
? sanitize_text_field($option2['sfsi_plus_telegram_username'])
|
147 |
+
: '';
|
148 |
+
|
149 |
+
$option2['sfsi_plus_telegram_message'] = (isset($option2['sfsi_plus_telegram_message']))
|
150 |
+
? sanitize_text_field($option2['sfsi_plus_telegram_message'])
|
151 |
+
: '';
|
152 |
+
|
153 |
+
$option2['sfsi_plus_vkShare_option'] = (isset($option2['sfsi_plus_vkShare_option']))
|
154 |
+
? sanitize_text_field($option2['sfsi_plus_vkShare_option'])
|
155 |
+
: 'no';
|
156 |
+
$option2['sfsi_plus_vkVisit_option'] = (isset($option2['sfsi_plus_vkVisit_option']))
|
157 |
+
? sanitize_text_field($option2['sfsi_plus_vkVisit_option'])
|
158 |
+
: 'no';
|
159 |
+
|
160 |
+
$option2['sfsi_plus_vkLike_option'] = (isset($option2['sfsi_plus_vkLike_option']))
|
161 |
+
? sanitize_text_field($option2['sfsi_plus_vkLike_option'])
|
162 |
+
: 'no';
|
163 |
+
$option2['sfsi_plus_vkFollow_option'] = (isset($option2['sfsi_plus_vkFollow_option']))
|
164 |
+
? sanitize_text_field($option2['sfsi_plus_vkFollow_option'])
|
165 |
+
: 'no';
|
166 |
+
|
167 |
+
$option2['sfsi_plus_vkFollow_url'] = (isset($option2['sfsi_plus_vkFollow_url']))
|
168 |
+
? sanitize_text_field($option2['sfsi_plus_vkFollow_url'])
|
169 |
+
: '';
|
170 |
+
|
171 |
+
$option2['sfsi_plus_vkVisit_url'] = (isset($option2['sfsi_plus_vkVisit_url']))
|
172 |
+
? sanitize_text_field($option2['sfsi_plus_vkVisit_url'])
|
173 |
+
: '';
|
174 |
+
|
175 |
+
$option2['sfsi_plus_weiboVisit_option'] = (isset($option2['sfsi_plus_weiboVisit_option']))
|
176 |
+
? sanitize_text_field($option2['sfsi_plus_weiboVisit_option'])
|
177 |
+
: 'no';
|
178 |
+
$option2['sfsi_plus_weiboVisit_url'] = (isset($option2['sfsi_plus_weiboVisit_url']))
|
179 |
+
? sanitize_text_field($option2['sfsi_plus_weiboVisit_url'])
|
180 |
+
: '';
|
181 |
+
$option2['sfsi_plus_weiboShare_option'] = (isset($option2['sfsi_plus_weiboShare_option']))
|
182 |
+
? sanitize_text_field($option2['sfsi_plus_weiboShare_option'])
|
183 |
+
: 'no';
|
184 |
+
|
185 |
+
$option2['sfsi_plus_weiboLike_option'] = (isset($option2['sfsi_plus_weiboLike_option']))
|
186 |
+
? sanitize_text_field($option2['sfsi_plus_weiboLike_option'])
|
187 |
+
: 'no';
|
188 |
+
?>
|
189 |
+
<!-- Section 2 "What do you want the icons to do?" main div Start -->
|
190 |
+
<div class="tab2">
|
191 |
+
<!-- RSS ICON -->
|
192 |
+
<div class="row bdr_top sfsiplus_rss_section">
|
193 |
+
<h2 class="sfsicls_rs_s">
|
194 |
+
RSS
|
195 |
+
</h2>
|
196 |
+
<div class="inr_cont">
|
197 |
+
<p>
|
198 |
+
<?php _e( 'When clicked on, users can subscribe via RSS', SFSI_PLUS_DOMAIN); ?>
|
199 |
+
</p>
|
200 |
+
<p class="rss_url_row">
|
201 |
+
<label>
|
202 |
+
RSS URL
|
203 |
+
</label>
|
204 |
+
<input name="sfsi_plus_rss_url" style="float: none;margin-left:20px;" id="sfsi_plus_rss_url" class="add" type="url" value="<?php echo ($option2['sfsi_plus_rss_url']!='') ? $option2['sfsi_plus_rss_url'] : '' ;?>" placeholder="E.g http://www.yoursite.com/feed" />
|
205 |
+
<span class="sfrsTxt" >
|
206 |
+
<?php _e( 'For most blogs it’s http://blogname.com/feed', SFSI_PLUS_DOMAIN); ?>
|
207 |
+
</span>
|
208 |
+
</p>
|
209 |
+
</div>
|
210 |
+
</div>
|
211 |
+
<!-- END RSS ICON -->
|
212 |
+
|
213 |
+
<!-- EMAIL ICON -->
|
214 |
+
<?php
|
215 |
+
$feedId = sanitize_text_field(get_option('sfsi_plus_feed_id',false));
|
216 |
+
$connectToFeed = "https://www.specificfeeds.com/?".base64_encode("userprofile=wordpress&feed_id=".$feedId);
|
217 |
+
|
218 |
+
?>
|
219 |
+
<div class="row sfsiplus_email_section">
|
220 |
+
<h2 class="sfsicls_email">
|
221 |
+
Email
|
222 |
+
</h2>
|
223 |
+
|
224 |
+
<?php sfsi_plus_curl_error_notification(); ?>
|
225 |
+
|
226 |
+
<div class="inr_cont">
|
227 |
+
<p class="sfsi_plus_specificfeedlink">
|
228 |
+
<?php _e('It allows your visitors to subscribe to your site (on ', SFSI_PLUS_DOMAIN ); ?><a href="https://www.specificfeeds.com/widgets/emailSubscribeEncFeed/<?php echo $feedId; ?>/<?php echo base64_encode(8); ?>" target="_new"><?php _e( 'this screen', SFSI_PLUS_DOMAIN); ?></a><?php _e(") and receive new posts automatically by email.", SFSI_PLUS_DOMAIN); ?>
|
229 |
+
</p>
|
230 |
+
<p><?php _e( 'Please pick which icon type you want to use:', SFSI_PLUS_DOMAIN); ?></p>
|
231 |
+
<ul class="tab_2_email_sec">
|
232 |
+
<li>
|
233 |
+
<div class="sfsiplusicnsdvwrp">
|
234 |
+
<input name="sfsi_plus_rss_icons" <?php echo ($option2['sfsi_plus_rss_icons']=='email') ? 'checked="true"' : '' ;?> type="radio" value="email" class="styled" /><span class="email_icn"></span>
|
235 |
+
</div>
|
236 |
+
<label>
|
237 |
+
<?php _e( 'Email icon', SFSI_PLUS_DOMAIN); ?>
|
238 |
+
</label>
|
239 |
+
</li>
|
240 |
+
<li>
|
241 |
+
<div class="sfsiplusicnsdvwrp">
|
242 |
+
<input name="sfsi_plus_rss_icons" <?php echo ($option2['sfsi_plus_rss_icons']=='subscribe') ? 'checked="true"' : '' ;?> type="radio" value="subscribe" class="styled" /><span class="subscribe_icn"></span>
|
243 |
+
</div>
|
244 |
+
<label>
|
245 |
+
<?php _e( 'Follow icon', SFSI_PLUS_DOMAIN); ?>
|
246 |
+
<span class="sfplsdesc">
|
247 |
+
(<?php _e( 'increases sign-ups', SFSI_PLUS_DOMAIN); ?>)
|
248 |
+
</span>
|
249 |
+
</label>
|
250 |
+
</li>
|
251 |
+
<li>
|
252 |
+
<div class="sfsiplusicnsdvwrp">
|
253 |
+
<input name="sfsi_plus_rss_icons" <?php echo ($option2['sfsi_plus_rss_icons']=='sfsi') ? 'checked="true"' : '' ;?> type="radio" value="sfsi" class="styled" /><span class="sf_arow"></span>
|
254 |
+
</div>
|
255 |
+
<label>
|
256 |
+
<?php _e( 'SpecificFeeds icon', SFSI_PLUS_DOMAIN); ?>
|
257 |
+
<span class="sfplsdesc">
|
258 |
+
(<?php _e( 'provider of the service', SFSI_PLUS_DOMAIN); ?>)
|
259 |
+
</span>
|
260 |
+
</label>
|
261 |
+
</li>
|
262 |
+
</ul>
|
263 |
+
<p><?php _e( 'The service offers many (more) advantages:', SFSI_PLUS_DOMAIN); ?></p>
|
264 |
+
<div class='sfsi_plus_service_row'>
|
265 |
+
<div class='sfsi_plus_service_column'>
|
266 |
+
<ul>
|
267 |
+
<li><span><?php _e( 'More people come back', SFSI_PLUS_DOMAIN); ?></span><?php _e( ' to your site', SFSI_PLUS_DOMAIN); ?></li>
|
268 |
+
<li><?php _e( 'See your ', SFSI_PLUS_DOMAIN); ?><span><?php _e( 'subscribers’ emails', SFSI_PLUS_DOMAIN); ?></span><?php _e( ' & ', SFSI_PLUS_DOMAIN); ?><span><?php _e( 'interesting statistics', SFSI_PLUS_DOMAIN); ?></span></li>
|
269 |
+
<li><?php _e( 'Automatically post on ', SFSI_PLUS_DOMAIN); ?><span><?php _e( 'Facebook & Twitter', SFSI_PLUS_DOMAIN); ?></span></li>
|
270 |
+
</ul>
|
271 |
+
</div>
|
272 |
+
<div class='sfsi_plus_service_column'>
|
273 |
+
<ul>
|
274 |
+
<li><span><?php _e( 'Get more traffic', SFSI_PLUS_DOMAIN); ?></span><?php _e( ' by being listed in the SF directory', SFSI_PLUS_DOMAIN); ?></li>
|
275 |
+
<li><span><?php _e( 'Get alerts', SFSI_PLUS_DOMAIN); ?></span><?php _e( ' when people subscribe or unsubscribe', SFSI_PLUS_DOMAIN); ?></li>
|
276 |
+
<li><span><?php _e( 'Tailor the sender name & subject line', SFSI_PLUS_DOMAIN); ?></span><?php _e( ' of the emails', SFSI_PLUS_DOMAIN); ?></li>
|
277 |
+
</ul>
|
278 |
+
</div>
|
279 |
+
|
280 |
+
</div>
|
281 |
+
|
282 |
+
<form id="calimingOptimizationForm" method="get" action="https://www.specificfeeds.com/wpclaimfeeds/getFullAccess" target="_blank">
|
283 |
+
<div class="sfsi_plus_inputbtn">
|
284 |
+
<input type="hidden" name="feed_id" value="<?php echo sanitize_text_field(get_option('sfsi_plus_feed_id',false)); ?>" />
|
285 |
+
<input type="email" name="email" value="<?php echo bloginfo('admin_email'); ?>" />
|
286 |
+
</div>
|
287 |
+
<div class='sfsi_plus_more_services_link'>
|
288 |
+
<a class="pop-up" href="javascript:" id="getMeFullAccess" title="Give me access">
|
289 |
+
<?php _e('Click here to benefit from all advantages >', SFSI_PLUS_DOMAIN ); ?>
|
290 |
+
</a>
|
291 |
+
</div>
|
292 |
+
</form>
|
293 |
+
|
294 |
+
<p class='sfsi_plus_email_last_paragraph'>
|
295 |
+
<?php _e( 'This will create your FREE account on SpecificFeeds, using the above email. ', SFSI_PLUS_DOMAIN); ?><br>
|
296 |
+
<?php _e( 'All data will be treated highly confidentially, see the', SFSI_PLUS_DOMAIN); ?>
|
297 |
+
<a href="https://www.specificfeeds.com/page/privacy-policy" target="_new">
|
298 |
+
<?php _e('Privacy Policy.', SFSI_PLUS_DOMAIN ); ?>
|
299 |
+
</a>
|
300 |
+
</p>
|
301 |
+
<?php if($option2['sfsi_plus_premium_email_box'] =='yes') { ?>
|
302 |
+
<div class ="sfsi_plus_new_prmium_follw">
|
303 |
+
<p>
|
304 |
+
<b><?php _e( 'New:', SFSI_PLUS_DOMAIN); ?></b><?php _e( ' In our Premium Plugin you can now give your email icon other functions too, e.g. contact you (email), share by email, and link to a certain page (e.g. your contact form or newsletter sign-up site). ', SFSI_PLUS_DOMAIN); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=more_functions_email_icon&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
|
305 |
+
</p>
|
306 |
+
</div>
|
307 |
+
<?php } ?>
|
308 |
+
</div>
|
309 |
+
</div>
|
310 |
+
|
311 |
+
<!-- END EMAIL ICON -->
|
312 |
+
|
313 |
+
<!-- FACEBOOK ICON -->
|
314 |
+
<div class="row sfsiplus_facebook_section">
|
315 |
+
<h2 class="sfsicls_facebook">
|
316 |
+
Facebook
|
317 |
+
</h2>
|
318 |
+
<div class="inr_cont">
|
319 |
+
<p>
|
320 |
+
<?php _e( 'The facebook icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do', SFSI_PLUS_DOMAIN); ?>
|
321 |
+
<a class="rit_link pop-up" href="javascript:;" data-id="fbex-s2">
|
322 |
+
(<?php _e( 'see an example', SFSI_PLUS_DOMAIN); ?>).
|
323 |
+
</a>
|
324 |
+
</p>
|
325 |
+
<p>
|
326 |
+
<?php _e( 'The facebook icon should allow users to...', SFSI_PLUS_DOMAIN); ?>
|
327 |
+
</p>
|
328 |
+
|
329 |
+
<p class="radio_section fb_url">
|
330 |
+
<input name="sfsi_plus_facebookPage_option" <?php echo ($option2['sfsi_plus_facebookPage_option']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
331 |
+
|
332 |
+
<label>
|
333 |
+
<?php _e( 'Visit my Facebook page at:', SFSI_PLUS_DOMAIN); ?>
|
334 |
+
</label>
|
335 |
+
|
336 |
+
<input class="add" name="sfsi_plus_facebookPage_url" type="url" value="<?php echo ($option2['sfsi_plus_facebookPage_url']!='') ? $option2['sfsi_plus_facebookPage_url'] : '' ;?>" placeholder="E.g https://www.facebook.com/your_page_name" /></p>
|
337 |
+
|
338 |
+
<p class="radio_section fb_url extra_sp">
|
339 |
+
<input name="sfsi_plus_facebookLike_option" <?php echo ($option2['sfsi_plus_facebookLike_option']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
340 |
+
<label>
|
341 |
+
<?php _e( 'Like my blog on Facebook (+1)', SFSI_PLUS_DOMAIN); ?>
|
342 |
+
</label>
|
343 |
+
</p>
|
344 |
+
|
345 |
+
<p class="radio_section fb_url extra_sp">
|
346 |
+
<input name="sfsi_plus_facebookShare_option" <?php echo ($option2['sfsi_plus_facebookShare_option']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
347 |
+
|
348 |
+
<label>
|
349 |
+
<?php _e( 'Share my blog with friends (on Facebook)', SFSI_PLUS_DOMAIN); ?>
|
350 |
+
</label>
|
351 |
+
</p>
|
352 |
+
<?php if($option2['sfsi_plus_premium_facebook_box'] =='yes') { ?>
|
353 |
+
<div class="sfsi_plus_new_prmium_follw">
|
354 |
+
<p>
|
355 |
+
<b><?php _e( 'New:', SFSI_PLUS_DOMAIN); ?></b> <?php _e( ' In our Premium Plugin you can also allow users to follow you on Facebook directly from your site (without leaving your page, increasing followers). ', SFSI_PLUS_DOMAIN); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=direct_follow_facebook&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
|
356 |
+
</p>
|
357 |
+
</div>
|
358 |
+
<?php } ?>
|
359 |
+
|
360 |
+
</div>
|
361 |
+
</div>
|
362 |
+
<!-- END FACEBOOK ICON -->
|
363 |
+
|
364 |
+
<!-- TWITTER ICON -->
|
365 |
+
<div class="row sfsiplus_twitter_section">
|
366 |
+
<h2 class="sfsicls_twt">
|
367 |
+
Twitter
|
368 |
+
</h2>
|
369 |
+
<div class="inr_cont twt_tab_2">
|
370 |
+
<p>
|
371 |
+
<?php
|
372 |
+
_e( 'The Twitter icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do', SFSI_PLUS_DOMAIN);
|
373 |
+
?>
|
374 |
+
<a class="rit_link pop-up" href="javascript:;" data-id="twex-s2">
|
375 |
+
(<?php _e( 'see an example', SFSI_PLUS_DOMAIN); ?>).
|
376 |
+
</a>
|
377 |
+
</p>
|
378 |
+
<p>
|
379 |
+
<?php _e( 'The Twitter icon should allow users to...', SFSI_PLUS_DOMAIN); ?>
|
380 |
+
</p>
|
381 |
+
<p class="radio_section fb_url">
|
382 |
+
<input name="sfsi_plus_twitter_page" <?php echo ($option2['sfsi_plus_twitter_page']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
383 |
+
<label>
|
384 |
+
<?php _e( 'Visit me on Twitter:', SFSI_PLUS_DOMAIN); ?>
|
385 |
+
</label>
|
386 |
+
<input name="sfsi_plus_twitter_pageURL" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_plus_twitter_pageURL']!='') ? $option2['sfsi_plus_twitter_pageURL'] : '' ;?>" class="add" />
|
387 |
+
</p>
|
388 |
+
|
389 |
+
<div class="radio_section fb_url twt_fld">
|
390 |
+
<input name="sfsi_plus_twitter_followme" <?php echo ($option2['sfsi_plus_twitter_followme']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
391 |
+
|
392 |
+
<label>
|
393 |
+
<?php _e( 'Follow me on Twitter:', SFSI_PLUS_DOMAIN); ?>
|
394 |
+
</label>
|
395 |
+
|
396 |
+
<input name="sfsi_plus_twitter_followUserName" type="text" value="<?php echo ($option2['sfsi_plus_twitter_followUserName']!='') ? $option2['sfsi_plus_twitter_followUserName'] : '' ;?>" placeholder="my_twitter_name" class="add" />
|
397 |
+
</div>
|
398 |
+
<div class="radio_section fb_url twt_fld_2">
|
399 |
+
<input name="sfsi_plus_twitter_aboutPage" <?php echo ($option2['sfsi_plus_twitter_aboutPage']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
400 |
+
<label>
|
401 |
+
<?php _e( 'Tweet about my page:', SFSI_PLUS_DOMAIN ); ?>
|
402 |
+
</label>
|
403 |
+
<textarea name="sfsi_plus_twitter_aboutPageText" id="sfsi_plus_twitter_aboutPageText" type="text" class="add_txt" placeholder="<?php _e( 'Hey check out this cool site I found', SFSI_PLUS_DOMAIN ) ;?>: www.yourname.com #Topic via@my_twitter_name" /><?php echo ($option2['sfsi_plus_twitter_aboutPageText']!='') ? stripslashes($option2['sfsi_plus_twitter_aboutPageText']) : _e( 'Hey check out this cool site I found', SFSI_PLUS_DOMAIN ) ;?></textarea>
|
404 |
+
</div>
|
405 |
+
<?php if($option2['sfsi_plus_premium_twitter_box'] =='yes') { ?>
|
406 |
+
<div class= "sfsi_plus_new_prmium_follw">
|
407 |
+
<p>
|
408 |
+
<b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b><?php _e( "Tweeting becomes really fun in the Premium Plugin – you can insert tags to automatically pull the title of the story & link to the story, attach pictures & snippets to the Tweets ( 'Twitter cards') and user Url-shorteners, all leading to more Tweets and traffic for your site!. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=better_tweets&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
|
409 |
+
</p>
|
410 |
+
</div>
|
411 |
+
<?php } ?>
|
412 |
+
</div>
|
413 |
+
</div>
|
414 |
+
<!-- END TWITTER ICON -->
|
415 |
+
|
416 |
+
|
417 |
+
<!-- YOUTUBE ICON -->
|
418 |
+
<div class="row sfsiplus_youtube_section">
|
419 |
+
<h2 class="sfsicls_utube">
|
420 |
+
Youtube
|
421 |
+
</h2>
|
422 |
+
<div class="inr_cont utube_inn">
|
423 |
+
<p>
|
424 |
+
<?php _e( 'The Youtube icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do', SFSI_PLUS_DOMAIN ); ?>
|
425 |
+
<a class="rit_link pop-up" href="javascript:;" data-id="ytex-s2">
|
426 |
+
(<?php _e( 'see an example', SFSI_PLUS_DOMAIN ); ?>).
|
427 |
+
</a>
|
428 |
+
</p>
|
429 |
+
<p>
|
430 |
+
<?php _e( 'The youtube icon should allow users to...', SFSI_PLUS_DOMAIN ); ?>
|
431 |
+
</p>
|
432 |
+
<p class="radio_section fb_url"><input name="sfsi_plus_youtube_page" <?php echo ($option2['sfsi_plus_youtube_page']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
433 |
+
<label>
|
434 |
+
<?php _e( 'Visit my Youtube page at:', SFSI_PLUS_DOMAIN ); ?>
|
435 |
+
</label>
|
436 |
+
<input name="sfsi_plus_youtube_pageUrl" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_plus_youtube_pageUrl']!='') ? $option2['sfsi_plus_youtube_pageUrl'] : '' ;?>" class="add" />
|
437 |
+
</p>
|
438 |
+
<p class="radio_section fb_url"><input name="sfsi_plus_youtube_follow" <?php echo ($option2['sfsi_plus_youtube_follow']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
439 |
+
<label>
|
440 |
+
<?php _e( 'Subscribe to me on Youtube', SFSI_PLUS_DOMAIN ); ?>
|
441 |
+
<span>
|
442 |
+
<?php _e( '(it allows people to subscribe to you directly, without leaving your blog)', SFSI_PLUS_DOMAIN ); ?>
|
443 |
+
</span>
|
444 |
+
</label>
|
445 |
+
</p>
|
446 |
+
<!--Adding Code for Channel Id and Channel Name-->
|
447 |
+
<?php
|
448 |
+
if(!isset($option2['sfsi_plus_youtubeusernameorid']))
|
449 |
+
{
|
450 |
+
$sfsi_plus_youtubeusernameorid = '';
|
451 |
+
}
|
452 |
+
else
|
453 |
+
{
|
454 |
+
$sfsi_plus_youtubeusernameorid = $option2['sfsi_plus_youtubeusernameorid'];
|
455 |
+
}
|
456 |
+
?>
|
457 |
+
|
458 |
+
<div class="cstmutbewpr">
|
459 |
+
<ul class="enough_waffling">
|
460 |
+
<li onclick="showhideutube(this);"><input name="sfsi_plus_youtubeusernameorid" <?php echo ($sfsi_plus_youtubeusernameorid=='name') ? 'checked="true"' : '' ;?> type="radio" value="name" class="styled" />
|
461 |
+
<label>
|
462 |
+
<?php _e( 'User Name', SFSI_PLUS_DOMAIN ); ?>
|
463 |
+
</label>
|
464 |
+
</li>
|
465 |
+
<li onclick="showhideutube(this);"><input name="sfsi_plus_youtubeusernameorid" <?php echo ($sfsi_plus_youtubeusernameorid=='id') ? 'checked="true"' : '' ;?> type="radio" value="id" class="styled" />
|
466 |
+
<label>
|
467 |
+
<?php _e( 'Channel Id', SFSI_PLUS_DOMAIN ); ?>
|
468 |
+
</label></li>
|
469 |
+
</ul>
|
470 |
+
<div class="cstmutbtxtwpr">
|
471 |
+
<div class="cstmutbchnlnmewpr" <?php if($sfsi_plus_youtubeusernameorid != 'id'){echo 'style="display: block;"';}?>>
|
472 |
+
<p class="extra_pp">
|
473 |
+
<label><?php _e( 'UserName:', SFSI_PLUS_DOMAIN ); ?></label>
|
474 |
+
<input name="sfsi_plus_ytube_user" type="url" value="<?php echo (isset($option2['sfsi_plus_ytube_user']) && $option2['sfsi_plus_ytube_user']!='') ? $option2['sfsi_plus_ytube_user'] : '' ;?>" placeholder="Youtube username" class="add" />
|
475 |
+
</p>
|
476 |
+
<div class="utbe_instruction">
|
477 |
+
<?php _e( 'To find your User ID/Channel ID, login to your YouTube account, click the user icon at the top right corner and select "Settings", then click "Advanced" under "Name" and you will find both your "Channel ID" and "User ID" under "Account Information".', SFSI_PLUS_DOMAIN ); ?>
|
478 |
+
</div>
|
479 |
+
</div>
|
480 |
+
<div class="cstmutbchnlidwpr" <?php if($sfsi_plus_youtubeusernameorid == 'id'){echo 'style="display: block"';}?>>
|
481 |
+
<p class="extra_pp">
|
482 |
+
<label>
|
483 |
+
<?php _e( 'Channel Id:', SFSI_PLUS_DOMAIN ); ?>
|
484 |
+
</label>
|
485 |
+
<input name="sfsi_plus_ytube_chnlid" type="url" value="<?php echo (isset($option2['sfsi_plus_ytube_chnlid']) && $option2['sfsi_plus_ytube_chnlid']!='') ? $option2['sfsi_plus_ytube_chnlid'] : '' ;?>" placeholder="youtube_channel_id" class="add" />
|
486 |
+
</p>
|
487 |
+
<div class="utbe_instruction">
|
488 |
+
<?php _e( 'To find your User ID/Channel ID, login to your YouTube account, click the user icon at the top right corner and select "Settings", then click "Advanced" under "Name" and you will find both your "Channel ID" and "User ID" under "Account Information".', SFSI_PLUS_DOMAIN ); ?>
|
489 |
+
</div>
|
490 |
+
</div>
|
491 |
+
</div>
|
492 |
+
</div>
|
493 |
+
|
494 |
+
</div>
|
495 |
+
</div>
|
496 |
+
<!-- END YOUTUBE ICON -->
|
497 |
+
|
498 |
+
<!-- PINTEREST ICON -->
|
499 |
+
<div class="row sfsiplus_pinterest_section">
|
500 |
+
<h2 class="sfsicls_pinterest">Pinterest</h2>
|
501 |
+
<div class="inr_cont">
|
502 |
+
<p>
|
503 |
+
<?php _e( 'The Pinterest icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do', SFSI_PLUS_DOMAIN ); ?>
|
504 |
+
<a class="rit_link pop-up" href="javascript:;" data-id="pinex-s2">
|
505 |
+
(<?php _e( 'see an example', SFSI_PLUS_DOMAIN ); ?>).
|
506 |
+
</a>
|
507 |
+
</p>
|
508 |
+
<p>
|
509 |
+
<?php _e( 'The Pinterest icon should allow users to...', SFSI_PLUS_DOMAIN ); ?>
|
510 |
+
</p>
|
511 |
+
<p class="radio_section fb_url">
|
512 |
+
<input name="sfsi_plus_pinterest_page" <?php echo ($option2['sfsi_plus_pinterest_page']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
513 |
+
<label>
|
514 |
+
<?php _e( 'Visit my Pinterest page at:', SFSI_PLUS_DOMAIN ); ?>
|
515 |
+
</label>
|
516 |
+
<input name="sfsi_plus_pinterest_pageUrl" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_plus_pinterest_pageUrl']!='') ? $option2['sfsi_plus_pinterest_pageUrl'] : '' ;?>" class="add" />
|
517 |
+
</p>
|
518 |
+
<div class="pint_url">
|
519 |
+
<p class="radio_section fb_url">
|
520 |
+
<input name="sfsi_plus_pinterest_pingBlog" <?php echo ($option2['sfsi_plus_pinterest_pingBlog']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
521 |
+
<label>
|
522 |
+
<?php _e( 'Pin my blog on Pinterest (+1)', SFSI_PLUS_DOMAIN); ?>
|
523 |
+
</label>
|
524 |
+
</p>
|
525 |
+
</div>
|
526 |
+
<div class= "sfsi_plus_new_prmium_follw">
|
527 |
+
<p>
|
528 |
+
<b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b><?php _e( "The Premium Plugin it allows you to show a Pinterest icon if visitors move their mouse over your images. You can define exactly where it should show, and where not. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=pinterest&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
|
529 |
+
</p>
|
530 |
+
</div>
|
531 |
+
</div>
|
532 |
+
|
533 |
+
</div>
|
534 |
+
<!-- END PINTEREST ICON -->
|
535 |
+
|
536 |
+
<!-- INSTAGRAM ICON -->
|
537 |
+
<div class="row sfsiplus_instagram_section">
|
538 |
+
<h2 class="sfsicls_instagram">
|
539 |
+
Instagram
|
540 |
+
</h2>
|
541 |
+
<div class="inr_cont">
|
542 |
+
<p>
|
543 |
+
<?php _e( 'When clicked on, users will get directed to your Instagram page', SFSI_PLUS_DOMAIN ); ?>.
|
544 |
+
</p>
|
545 |
+
<p class="radio_section fb_url cus_link instagram_space" >
|
546 |
+
<label>
|
547 |
+
URL
|
548 |
+
</label>
|
549 |
+
<input name="sfsi_plus_instagram_pageUrl" type="text" value="<?php echo (isset($option2['sfsi_plus_instagram_pageUrl']) && $option2['sfsi_plus_instagram_pageUrl']!='') ? $option2['sfsi_plus_instagram_pageUrl'] : '' ;?>" placeholder="http://" class="add" />
|
550 |
+
</p>
|
551 |
+
</div>
|
552 |
+
</div>
|
553 |
+
<!-- END INSTAGRAM ICON -->
|
554 |
+
|
555 |
+
<!-- LINKEDIN ICON -->
|
556 |
+
<div class="row sfsiplus_linkedin_section">
|
557 |
+
<h2 class="sfsicls_linkdin">
|
558 |
+
LinkedIn
|
559 |
+
</h2>
|
560 |
+
<div class="inr_cont linked_tab_2 link_in">
|
561 |
+
<p>
|
562 |
+
<?php _e( 'The LinkedIn icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do', SFSI_PLUS_DOMAIN ); ?>
|
563 |
+
<a class="rit_link pop-up" href="javascript:;" data-id="linkex-s2">
|
564 |
+
(<?php _e( 'see an example', SFSI_PLUS_DOMAIN); ?>).
|
565 |
+
</a>
|
566 |
+
</p>
|
567 |
+
<p>
|
568 |
+
<?php _e( 'You find your ID in the link of your profile page, e.g. https://www.linkedin.com/profile/view?id=<b>8539887</b>&trk=nav_responsive_tab_profile_pic', SFSI_PLUS_DOMAIN ); ?>
|
569 |
+
</p>
|
570 |
+
<p>
|
571 |
+
<?php _e( 'The LinkedIn icon should allow users to...', SFSI_PLUS_DOMAIN ); ?>
|
572 |
+
</p>
|
573 |
+
<div class="radio_section fb_url link_1">
|
574 |
+
<input name="sfsi_plus_linkedin_page" <?php echo ($option2['sfsi_plus_linkedin_page']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
575 |
+
<label>
|
576 |
+
<?php _e( 'Visit my Linkedin page at:', SFSI_PLUS_DOMAIN ); ?>
|
577 |
+
</label>
|
578 |
+
<input name="sfsi_plus_linkedin_pageURL" type="text" placeholder="http://" value="<?php echo ($option2['sfsi_plus_linkedin_pageURL']!='') ? $option2['sfsi_plus_linkedin_pageURL'] : '' ;?>" class="add" />
|
579 |
+
</div>
|
580 |
+
|
581 |
+
<div class="radio_section fb_url link_2">
|
582 |
+
<input name="sfsi_plus_linkedin_follow" <?php echo ($option2['sfsi_plus_linkedin_follow']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
583 |
+
|
584 |
+
<label>
|
585 |
+
<?php _e( 'Follow me on Linkedin:', SFSI_PLUS_DOMAIN ); ?>
|
586 |
+
</label>
|
587 |
+
|
588 |
+
<input name="sfsi_plus_linkedin_followCompany" type="text" value="<?php echo ($option2['sfsi_plus_linkedin_followCompany']!='') ? $option2['sfsi_plus_linkedin_followCompany'] : '' ;?>" class="add" placeholder="Enter company ID, e.g. 123456" />
|
589 |
+
</div>
|
590 |
+
|
591 |
+
<div class="radio_section fb_url link_3">
|
592 |
+
<input name="sfsi_plus_linkedin_SharePage" <?php echo ($option2['sfsi_plus_linkedin_SharePage']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
593 |
+
<label>
|
594 |
+
<?php _e( 'Share my page on LinkedIn', SFSI_PLUS_DOMAIN ); ?>
|
595 |
+
</label>
|
596 |
+
</div>
|
597 |
+
|
598 |
+
<div class="radio_section fb_url link_4">
|
599 |
+
<input name="sfsi_plus_linkedin_recommendBusines" <?php echo ($option2['sfsi_plus_linkedin_recommendBusines']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
600 |
+
<label class="anthr_labl">
|
601 |
+
<?php _e( 'Recommend my business or product on Linkedin', SFSI_PLUS_DOMAIN ); ?>
|
602 |
+
</label>
|
603 |
+
<input name="sfsi_plus_linkedin_recommendProductId" type="text" value="<?php echo ($option2['sfsi_plus_linkedin_recommendProductId']!='') ? $option2['sfsi_plus_linkedin_recommendProductId'] : '' ;?>" class="add link_dbl" placeholder="Enter Product ID, e.g. 1441" /> <input name="sfsi_plus_linkedin_recommendCompany" type="text" value="<?php echo ($option2['sfsi_plus_linkedin_recommendCompany']!='') ? $option2['sfsi_plus_linkedin_recommendCompany'] : '' ;?>" class="add" placeholder="Enter company name, e.g. Google”" />
|
604 |
+
</div>
|
605 |
+
<div class="lnkdin_instruction">
|
606 |
+
<?php _e( 'To find your Product or Company ID, you can use their ID lookup tool at', SFSI_PLUS_DOMAIN ); ?>
|
607 |
+
<a target="_blank" href="https://developer.linkedin.com/apply-getting-started#company-lookup">
|
608 |
+
https://developer.linkedin.com/apply-getting-started#company-lookup
|
609 |
+
</a>
|
610 |
+
. <?php _e( 'You need to be logged in to Linkedin to be able to use it.', SFSI_PLUS_DOMAIN ); ?>
|
611 |
+
</div>
|
612 |
+
</div>
|
613 |
+
</div>
|
614 |
+
<!-- END LINKEDIN ICON -->
|
615 |
+
|
616 |
+
<!-- HOUZZ ICON -->
|
617 |
+
<div class="row sfsiplus_houzz_section">
|
618 |
+
<h2 class="sfsicls_houzz">
|
619 |
+
Houzz
|
620 |
+
</h2>
|
621 |
+
<div class="inr_cont">
|
622 |
+
<p>
|
623 |
+
<?php _e( 'Please provide the url to your Houzz profile (e.g. http://www.houzz.com/user/your_username).', SFSI_PLUS_DOMAIN ); ?>
|
624 |
+
</p>
|
625 |
+
<div class="fb_url link_2">
|
626 |
+
<label class="sfsiLabel">
|
627 |
+
<?php _e( 'URL:', SFSI_PLUS_DOMAIN ); ?>
|
628 |
+
</label>
|
629 |
+
|
630 |
+
<input style="float:none;margin-top:0" name="sfsi_plus_houzz_pageUrl" type="text" value="<?php echo (isset($option2['sfsi_plus_houzz_pageUrl']) && $option2['sfsi_plus_houzz_pageUrl']!='') ? $option2['sfsi_plus_houzz_pageUrl'] : '' ;?>" placeholder="http://" class="add" />
|
631 |
+
</div>
|
632 |
+
|
633 |
+
</div>
|
634 |
+
</div>
|
635 |
+
<!-- HOUZZ INSTAGRAM ICON -->
|
636 |
+
|
637 |
+
<!--MZ CODE START-->
|
638 |
+
|
639 |
+
<!-- Ok ICON -->
|
640 |
+
<div class="row sfsiplus_ok_section">
|
641 |
+
|
642 |
+
<h2 class="sfsicls_ok"><?php _e( 'OdnoKlassniki', SFSI_PLUS_DOMAIN ); ?></h2>
|
643 |
+
<div class="inr_cont">
|
644 |
+
<p>
|
645 |
+
<?php _e( 'When clicked on, users will get directed to your OK page.', SFSI_PLUS_DOMAIN ); ?>
|
646 |
+
</p>
|
647 |
+
|
648 |
+
<div class="radio_section fb_url">
|
649 |
+
<input name="sfsi_plus_okVisit_option" checked="true" type="checkbox" value="yes" style="display:none;" class=""/>
|
650 |
+
|
651 |
+
<label class="sfsiLabel" style="margin-top:10px">
|
652 |
+
<?php _e( 'Visit my OK page at:', SFSI_PLUS_DOMAIN ); ?>
|
653 |
+
</label>
|
654 |
+
|
655 |
+
<input name="sfsi_plus_okVisit_url" type="url" placeholder="" value="<?php echo $option2['sfsi_plus_okVisit_url'];?>" class="add" style="margin-top:10px" />
|
656 |
+
</div>
|
657 |
+
<div class= "sfsi_plus_new_prmium_follw">
|
658 |
+
<p>
|
659 |
+
<b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b><?php _e( "In our Premium Plugin you can now give OK icon other functions too, e.g. <b>like your website/blog, subscribe/follow you</b> on OK. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=ok_like_and_subscribe&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
|
660 |
+
</p>
|
661 |
+
</div>
|
662 |
+
</div>
|
663 |
+
</div>
|
664 |
+
<!-- Ok ICON -->
|
665 |
+
|
666 |
+
<!-- Telegram ICON -->
|
667 |
+
<div class="row sfsiplus_telegram_section">
|
668 |
+
|
669 |
+
<h2 class="sfsicls_telegram"><?php _e( 'Telegram', SFSI_PLUS_DOMAIN ); ?></h2>
|
670 |
+
|
671 |
+
<div class="inr_cont">
|
672 |
+
<p>
|
673 |
+
<?php _e( 'Clicking on this icon will allow users to contact you on Telegram.', SFSI_PLUS_DOMAIN ); ?>
|
674 |
+
</p>
|
675 |
+
|
676 |
+
<div class="radio_section fb_url ">
|
677 |
+
<input type="checkbox" name="sfsi_plus_telegramShare_option" value="yes" checked="checked" style="display:none" />
|
678 |
+
|
679 |
+
<label class="sfsiLabel1" >
|
680 |
+
<?php _e("Pre-filled message:", SFSI_PLUS_DOMAIN);?>
|
681 |
+
</label>
|
682 |
+
|
683 |
+
<input name="sfsi_plus_telegram_message" type="text" value="<?php echo (isset($option2['sfsi_plus_telegram_message']) && $option2['sfsi_plus_telegram_message']!='') ? $option2['sfsi_plus_telegram_message'] : '' ;?>" placeholder="Hey, I like your website." class="add link_1"/>
|
684 |
+
</div>
|
685 |
+
|
686 |
+
<div class="radio_section fb_url ">
|
687 |
+
<label class="sfsiLabel1" >
|
688 |
+
<?php _e("My Telegram username", SFSI_PLUS_DOMAIN);?>
|
689 |
+
</label>
|
690 |
+
|
691 |
+
<input name="sfsi_plus_telegram_username" type="text" value="<?php echo (isset($option2['sfsi_plus_telegram_username']) && $option2['sfsi_plus_telegram_username']!='') ? $option2['sfsi_plus_telegram_username'] : '' ;?>" placeholder="" class="add" />
|
692 |
+
</div>
|
693 |
+
<div class= "sfsi_plus_new_prmium_follw">
|
694 |
+
<p>
|
695 |
+
<b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b><?php _e( " In our Premium Plugin you can now give your Telegram icon sharing functionality too, e.g. share your website/blog with friends. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=telegram_sharing&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
|
696 |
+
</p>
|
697 |
+
</div>
|
698 |
+
</div>
|
699 |
+
|
700 |
+
|
701 |
+
</div>
|
702 |
+
<!-- Telegram ICON -->
|
703 |
+
|
704 |
+
<!-- VK ICON -->
|
705 |
+
<div class="row sfsiplus_vk_section">
|
706 |
+
|
707 |
+
<h2 class="sfsicls_vk">
|
708 |
+
<?php _e( 'VK', SFSI_PLUS_DOMAIN ); ?>
|
709 |
+
</h2>
|
710 |
+
<div class="inr_cont">
|
711 |
+
<p>
|
712 |
+
<?php _e( 'When clicked on, users will get directed to your Weibo page.', SFSI_PLUS_DOMAIN ); ?>
|
713 |
+
</p>
|
714 |
+
|
715 |
+
<div class="radio_section fb_url ">
|
716 |
+
<input type="checkbox" name="sfsi_plus_vkVisit_option" value="yes" checked="checked" style="display:none">
|
717 |
+
|
718 |
+
<label class="sfsiLabel">
|
719 |
+
<?php _e( 'Visit my VK page at:', SFSI_PLUS_DOMAIN ); ?>
|
720 |
+
</label>
|
721 |
+
|
722 |
+
<input name="sfsi_plus_vkVisit_url" type="url" placeholder="http://" value="<?php echo $option2['sfsi_plus_vkVisit_url'];?>" class="add" />
|
723 |
+
</div>
|
724 |
+
<div class= "sfsi_plus_new_prmium_follw">
|
725 |
+
<p>
|
726 |
+
<b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b>
|
727 |
+
<?php _e( "In our Premium Plugin you can now give your VK icon sharing functionality too, e.g. <b>share your website/blog</b> with friends. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=vk_share&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
|
728 |
+
</p>
|
729 |
+
</div>
|
730 |
+
</div>
|
731 |
+
</div>
|
732 |
+
<!-- VK ICON -->
|
733 |
+
|
734 |
+
<div class="row sfsiplus_wechat_section" style="display: <?php echo isset($option1["sfsi_plus_wechat_display"])&&$option1["sfsi_plus_wechat_display"]=="yes"?'block':'none'; ?>">
|
735 |
+
|
736 |
+
<h2 class="sfsicls_wechat">
|
737 |
+
<?php _e('WeChat', SFSI_PLUS_DOMAIN ); ?>
|
738 |
+
</h2>
|
739 |
+
|
740 |
+
<div class="inr_cont">
|
741 |
+
<p class="sfsiLabel infoLabel">
|
742 |
+
<?php _e( 'When clicked on, your website/blog will be shared on WeChat.', SFSI_PLUS_DOMAIN ); ?>
|
743 |
+
</p>
|
744 |
+
<div class="radio_section fb_url ">
|
745 |
+
<input type="checkbox" name="sfsi_plus_wechatShare_option" value="yes" checked="checked" style="display:none"/>
|
746 |
+
|
747 |
+
</div>
|
748 |
+
<div class= "sfsi_plus_new_prmium_follw">
|
749 |
+
<p>
|
750 |
+
<b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b>
|
751 |
+
<?php _e( "In our Premium Plugin you can also allow users to <b>follow you</b> on WeChat. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=wechat_sharing&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
|
752 |
+
</p>
|
753 |
+
</div>
|
754 |
+
</div>
|
755 |
+
|
756 |
+
|
757 |
+
|
758 |
+
|
759 |
+
</div>
|
760 |
+
<!-- VK ICON -->
|
761 |
+
|
762 |
+
<!-- Weibo ICON -->
|
763 |
+
<div class="row sfsiplus_weibo_section">
|
764 |
+
|
765 |
+
<h2 class="sfsicls_weibo">
|
766 |
+
<?php _e('Sina Weibo', SFSI_PLUS_DOMAIN ); ?>
|
767 |
+
</h2>
|
768 |
+
<div class="inr_cont">
|
769 |
+
<p class="sfsiLabel infoLabel">
|
770 |
+
<?php _e( 'When clicked on, users will get directed to your Weibo page.', SFSI_PLUS_DOMAIN ); ?>
|
771 |
+
</p>
|
772 |
+
<div class="radio_section fb_url ">
|
773 |
+
<input name="sfsi_plus_weiboVisit_option" checked="checked" placeholder="http://" type="checkbox" value="yes" style="display:none"/>
|
774 |
+
|
775 |
+
<label class="sfsiLabel">
|
776 |
+
<?php _e( 'Visit my Sina Weibo page at:', SFSI_PLUS_DOMAIN ); ?>
|
777 |
+
</label>
|
778 |
+
|
779 |
+
<input name="sfsi_plus_weiboVisit_url" type="url" placeholder="" value="<?php echo $option2['sfsi_plus_weiboVisit_url'];?>" class="add" />
|
780 |
+
</div>
|
781 |
+
<div class= "sfsi_plus_new_prmium_follw">
|
782 |
+
<p>
|
783 |
+
<b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b>
|
784 |
+
<?php _e( " In our Premium Plugin you can now give Weibo icon other functions too, e.g. <b>like your website/blog, share your website/blog</b> on Weibo. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=weibo_like_and_share&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
|
785 |
+
</p>
|
786 |
+
</div>
|
787 |
+
</div>
|
788 |
+
|
789 |
+
|
790 |
+
</div>
|
791 |
+
<!-- Weibo ICON -->
|
792 |
+
|
793 |
+
<!--MZ CODE END-->
|
794 |
+
|
795 |
+
<!-- Custom icon section start here -->
|
796 |
+
<div class="plus_custom-links sfsiplus_custom_section">
|
797 |
+
<?php
|
798 |
+
$costom_links = unserialize($option2['sfsi_plus_CustomIcon_links']);
|
799 |
+
|
800 |
+
$bannerDisplay= "display:none;";
|
801 |
+
$count = 1;
|
802 |
+
for($i = $first_key; $i <= $endkey; $i++) :
|
803 |
+
if(!empty( $icons[$i])) :
|
804 |
+
|
805 |
+
$bannerDisplay = "display:block;";
|
806 |
+
?>
|
807 |
+
<div class="row sfsiICON_<?php echo $i; ?> cm_lnk">
|
808 |
+
<h2 class="custom">
|
809 |
+
<span class="customstep2-img">
|
810 |
+
<img src="<?php echo (!empty($icons[$i])) ? esc_url($icons[$i]) : SFSI_PLUS_PLUGURL.'images/custom.png';?>" id="CImg_<?php echo $new_element; ?>" style="border-radius:48%" />
|
811 |
+
</span>
|
812 |
+
<span class="sfsiCtxt">
|
813 |
+
<?php _e( 'Custom', SFSI_PLUS_DOMAIN ); ?>
|
814 |
+
<?php echo $count; ?>
|
815 |
+
</span>
|
816 |
+
</h2>
|
817 |
+
<div class="inr_cont ">
|
818 |
+
<p>
|
819 |
+
<?php _e( 'Where do you want this icon to link to?', SFSI_PLUS_DOMAIN ); ?>
|
820 |
+
</p>
|
821 |
+
<p class="radio_section fb_url sfsiplus_custom_section cus_link " >
|
822 |
+
<label>
|
823 |
+
<?php _e( 'Link:', SFSI_PLUS_DOMAIN ); ?>
|
824 |
+
</label>
|
825 |
+
<input name="sfsi_plus_CustomIcon_links[]" type="text" value="<?php echo (isset($costom_links[$i]) && $costom_links[$i]!='') ? esc_url($costom_links[$i]) : '' ;?>" placeholder="http://" class="add" file-id="<?php echo $i; ?>" />
|
826 |
+
</p>
|
827 |
+
</div>
|
828 |
+
</div>
|
829 |
+
<?php
|
830 |
+
$count++;
|
831 |
+
endif; endfor;
|
832 |
+
?>
|
833 |
+
</div>
|
834 |
+
|
835 |
+
<div class="banner_custom_icon sfsi_plus_new_prmium_follw" style="<?php echo $bannerDisplay;?>">
|
836 |
+
<p><b><?php _e( 'New:', SFSI_PLUS_DOMAIN); ?></b> <?php _e( ' In the Premium Plugin you can also give custom icons the feature that when people click on it, they can call you, or send you an SMS). ', SFSI_PLUS_DOMAIN); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=call_or_sms_feature_custom_icons&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank" style="font-family: inherit !important;"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
|
837 |
+
</p>
|
838 |
+
</div>
|
839 |
+
|
840 |
+
<!-- END Custom icon section here -->
|
841 |
+
|
842 |
+
|
843 |
+
<?php sfsi_plus_ask_for_help(2); ?>
|
844 |
+
|
845 |
+
|
846 |
+
<!-- SAVE BUTTON SECTION -->
|
847 |
+
<div class="save_button tab_2_sav">
|
848 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/ajax-loader.gif" class="loader-img" />
|
849 |
+
|
850 |
+
<?php $nonce = wp_create_nonce("update_plus_step2"); ?>
|
851 |
+
|
852 |
+
<a href="javascript:;" id="sfsi_plus_save2" title="Save" data-nonce="<?php echo $nonce;?>">
|
853 |
+
<?php _e( 'Save', SFSI_PLUS_DOMAIN ); ?>
|
854 |
+
</a>
|
855 |
+
</div>
|
856 |
+
<!-- END SAVE BUTTON SECTION -->
|
857 |
+
<a class="sfsiColbtn closeSec" href="javascript:;">
|
858 |
+
<?php _e( 'Collapse area', SFSI_PLUS_DOMAIN ); ?>
|
859 |
+
</a>
|
860 |
+
|
861 |
+
<label class="closeSec"></label>
|
862 |
+
|
863 |
+
<!-- ERROR AND SUCCESS MESSAGE AREA-->
|
864 |
+
<p class="red_txt errorMsg" style="display:none"> </p>
|
865 |
+
<p class="green_txt sucMsg" style="display:none"> </p>
|
866 |
+
|
867 |
+
</div>
|
868 |
+
<!-- END Section 2 "What do you want the icons to do?" main div -->
|
views/sfsi_option_view3.php
CHANGED
@@ -1,422 +1,422 @@
|
|
1 |
-
<?php
|
2 |
-
/* unserialize all saved option for second section options */
|
3 |
-
$option3= unserialize(get_option('sfsi_plus_section3_options',false));
|
4 |
-
/*
|
5 |
-
* Sanitize, escape and validate values
|
6 |
-
*/
|
7 |
-
$option3['sfsi_plus_actvite_theme'] = (isset($option3['sfsi_plus_actvite_theme']))
|
8 |
-
? sanitize_text_field($option3['sfsi_plus_actvite_theme'])
|
9 |
-
: '';
|
10 |
-
$option3['sfsi_plus_mouseOver'] = (isset($option3['sfsi_plus_mouseOver']))
|
11 |
-
? sanitize_text_field($option3['sfsi_plus_mouseOver'])
|
12 |
-
: '';
|
13 |
-
$option3['sfsi_plus_mouseOver_effect'] = (isset($option3['sfsi_plus_mouseOver_effect']))
|
14 |
-
? sanitize_text_field($option3['sfsi_plus_mouseOver_effect'])
|
15 |
-
: '';
|
16 |
-
|
17 |
-
$option3['sfsi_plus_shuffle_Firstload'] = (isset($option3['sfsi_plus_shuffle_Firstload']))
|
18 |
-
? sanitize_text_field($option3['sfsi_plus_shuffle_Firstload'])
|
19 |
-
: '';
|
20 |
-
$option3['sfsi_plus_shuffle_interval'] = (isset($option3['sfsi_plus_shuffle_interval']))
|
21 |
-
? sanitize_text_field($option3['sfsi_plus_shuffle_interval'])
|
22 |
-
: '';
|
23 |
-
$option3['sfsi_plus_shuffle_intervalTime'] = (isset($option3['sfsi_plus_shuffle_intervalTime']))
|
24 |
-
? intval($option3['sfsi_plus_shuffle_intervalTime'])
|
25 |
-
: '';
|
26 |
-
$option3['sfsi_plus_premium_icons_design_box'] = (isset($option3['sfsi_plus_premium_icons_design_box']))
|
27 |
-
? intval($option3['sfsi_plus_premium_icons_design_box'])
|
28 |
-
: 'yes';
|
29 |
-
$option3['sfsi_plus_mouseOver_effect_type'] = (isset($option3['sfsi_plus_mouseOver_effect_type'])) ? sanitize_text_field($option3['sfsi_plus_mouseOver_effect_type']) : 'same_icons';
|
30 |
-
|
31 |
-
$mouseover_other_icons_transition_effect = (isset($option3['mouseover_other_icons_transition_effect'])) ? sanitize_text_field($option3['mouseover_other_icons_transition_effect']) : 'flip';
|
32 |
-
?>
|
33 |
-
<!-- Section 3 "What design & animation do you want to give your icons?" main div Start -->
|
34 |
-
<div class="tab3">
|
35 |
-
<!--Content of 4-->
|
36 |
-
<div class="row mouse_txt sfsiplusmousetxt tab3">
|
37 |
-
<p>
|
38 |
-
<?php _e('A good & well-fitting design is not only nice to look at, but it increases the chances that people will subscribe and/or share your site with friends:', SFSI_PLUS_DOMAIN ); ?>
|
39 |
-
</p>
|
40 |
-
<ul class="tab_3_list">
|
41 |
-
<li>
|
42 |
-
<?php _e( 'It comes across as more professional and gives your site more “credit”', SFSI_PLUS_DOMAIN ); ?>
|
43 |
-
</li>
|
44 |
-
<li>
|
45 |
-
<?php _e( 'A smart automatic animation can make your visitors aware of your icons in an unintrusive manner', SFSI_PLUS_DOMAIN ); ?>
|
46 |
-
</li>
|
47 |
-
</ul>
|
48 |
-
|
49 |
-
<p style="padding:0px;">
|
50 |
-
<?php _e( 'The icons have been compressed by Shortpixel.com for faster loading of your site. Thank you Shortpixel!', SFSI_PLUS_DOMAIN ); ?>
|
51 |
-
</p>
|
52 |
-
|
53 |
-
<div class="row">
|
54 |
-
<h3>
|
55 |
-
<?php _e( 'Theme options', SFSI_PLUS_DOMAIN ); ?>
|
56 |
-
</h3>
|
57 |
-
<!--icon themes section start -->
|
58 |
-
<ul class="sfsiplus_tab_3_icns">
|
59 |
-
<li>
|
60 |
-
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='default') ? 'checked="true"' : '' ;?> type="radio" value="default" class="styled" />
|
61 |
-
<label>
|
62 |
-
<?php _e( 'Default', SFSI_PLUS_DOMAIN ); ?>
|
63 |
-
</label>
|
64 |
-
<div class="sfsiplus_icns_tab_3">
|
65 |
-
<span class="sfsiplus_row_1_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_1_2 sfsiplus_email_section"></span><span class="sfsiplus_row_1_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_1_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_1_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_1_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_1_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_1_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_1_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_1_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_1_23 sfsiplus_vk_section"></span><span class="sfsiplus_row_1_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_1_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_1_25 sfsiplus_weibo_section"></span><!--<span class="sfsiplus_row_1_11 sf_section"></span>-->
|
66 |
-
</div>
|
67 |
-
</li>
|
68 |
-
|
69 |
-
<li>
|
70 |
-
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='flat') ? 'checked="true"' : '' ;?> type="radio" value="flat" class="styled" />
|
71 |
-
<label>
|
72 |
-
<?php _e( 'Flat', SFSI_PLUS_DOMAIN ); ?>
|
73 |
-
</label>
|
74 |
-
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_2_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_2_2 sfsiplus_email_section"></span><span class="sfsiplus_row_2_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_2_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_2_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_2_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_2_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_2_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_2_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_2_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_2_23 sfsiplus_vk_section"></span><span class="sfsiplus_row_2_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_2_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_2_25 sfsiplus_weibo_section"></span><!--<span class="sfsiplus_row_2_11 sf_section"></span>-->
|
75 |
-
</div>
|
76 |
-
</li>
|
77 |
-
|
78 |
-
<li>
|
79 |
-
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='thin') ? 'checked="true"' : '' ;?> type="radio" value="thin" class="styled" />
|
80 |
-
<label>
|
81 |
-
<?php _e( 'Thin', SFSI_PLUS_DOMAIN ); ?>
|
82 |
-
</label>
|
83 |
-
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_3_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_3_2 sfsiplus_email_section"></span><span class="sfsiplus_row_3_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_3_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_3_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_3_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_3_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_3_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_3_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_3_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_3_23 sfsiplus_vk_section"></span><span class="sfsiplus_row_3_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_3_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_3_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_3_11 sf_section"></span>-->
|
84 |
-
</div>
|
85 |
-
</li>
|
86 |
-
|
87 |
-
<li>
|
88 |
-
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='cute') ? 'checked="true"' : '' ;?> type="radio" value="cute" class="styled" />
|
89 |
-
<label>
|
90 |
-
<?php _e( 'Cute', SFSI_PLUS_DOMAIN ); ?>
|
91 |
-
</label>
|
92 |
-
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_4_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_4_2 sfsiplus_email_section"></span><span class="sfsiplus_row_4_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_4_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_4_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_4_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_4_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_4_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_4_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_4_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_4_23 sfsiplus_vk_section"></span><span class="sfsiplus_row_4_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_4_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_4_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_4_11 sf_section"></span>-->
|
93 |
-
</div>
|
94 |
-
</li>
|
95 |
-
|
96 |
-
<!--------------------start next four------------------------>
|
97 |
-
|
98 |
-
<li>
|
99 |
-
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='cubes') ? 'checked="true"' : '' ;?> type="radio" value="cubes" class="styled" />
|
100 |
-
<label><?php _e( 'Cubes', SFSI_PLUS_DOMAIN ); ?></label>
|
101 |
-
|
102 |
-
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_5_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_5_2 sfsiplus_email_section"></span><span class="sfsiplus_row_5_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_5_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_5_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_5_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_5_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_5_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_5_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_5_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_5_23 sfsiplus_vk_section"></span><span class="sfsiplus_row_5_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_5_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_5_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_5_11 sf_section"></span>-->
|
103 |
-
</div>
|
104 |
-
</li>
|
105 |
-
|
106 |
-
<li>
|
107 |
-
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='chrome_blue') ? 'checked="true"' : '' ;?> type="radio" value="chrome_blue" class="styled" />
|
108 |
-
<label><?php _e( 'Chrome Blue', SFSI_PLUS_DOMAIN ); ?></label>
|
109 |
-
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_6_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_6_2 sfsiplus_email_section"></span><span class="sfsiplus_row_6_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_6_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_6_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_6_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_6_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_6_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_6_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_6_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_6_23 sfsiplus_vk_section"></span> <span class="sfsiplus_row_6_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_6_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_6_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_6_11 sf_section"></span>-->
|
110 |
-
</div>
|
111 |
-
</li>
|
112 |
-
|
113 |
-
<li>
|
114 |
-
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='chrome_grey') ? 'checked="true"' : '' ;?> type="radio" value="chrome_grey" class="styled" />
|
115 |
-
<label><?php _e( 'Chrome Grey', SFSI_PLUS_DOMAIN ); ?></label>
|
116 |
-
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_7_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_7_2 sfsiplus_email_section"></span><span class="sfsiplus_row_7_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_7_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_7_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_7_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_7_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_7_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_7_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_7_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_7_23 sfsiplus_vk_section"></span> <span class="sfsiplus_row_7_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_7_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_7_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_7_11 sf_section"></span>-->
|
117 |
-
</div>
|
118 |
-
</li>
|
119 |
-
|
120 |
-
<li>
|
121 |
-
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='splash') ? 'checked="true"' : '' ;?> type="radio" value="splash" class="styled" />
|
122 |
-
<label><?php _e( 'Splash', SFSI_PLUS_DOMAIN ); ?></label>
|
123 |
-
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_8_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_8_2 sfsiplus_email_section"></span><span class="sfsiplus_row_8_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_8_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_8_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_8_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_8_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_8_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_8_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_8_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_8_23 sfsiplus_vk_section"></span> <span class="sfsiplus_row_8_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_8_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_8_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_8_11 sf_section"></span>-->
|
124 |
-
</div>
|
125 |
-
</li>
|
126 |
-
|
127 |
-
|
128 |
-
<!--------------------start second four------------------------>
|
129 |
-
|
130 |
-
|
131 |
-
<li>
|
132 |
-
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='orange') ? 'checked="true"' : '' ;?> type="radio" value="orange" class="styled" />
|
133 |
-
<label><?php _e( 'Orange', SFSI_PLUS_DOMAIN ); ?></label>
|
134 |
-
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_9_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_9_2 sfsiplus_email_section"></span><span class="sfsiplus_row_9_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_9_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_9_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_9_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_9_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_9_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_9_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_9_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_9_23 sfsiplus_vk_section"></span> <span class="sfsiplus_row_9_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_9_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_9_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_9_11 sf_section"></span>-->
|
135 |
-
</div>
|
136 |
-
</li>
|
137 |
-
|
138 |
-
<li>
|
139 |
-
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='crystal') ? 'checked="true"' : '' ;?> type="radio" value="crystal" class="styled" />
|
140 |
-
<label><?php _e( 'Crystal', SFSI_PLUS_DOMAIN ); ?></label>
|
141 |
-
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_10_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_10_2 sfsiplus_email_section"></span><span class="sfsiplus_row_10_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_10_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_10_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_10_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_10_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_10_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_10_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_10_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_10_23 sfsiplus_vk_section"></span><span class="sfsiplus_row_10_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_10_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_10_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_10_11 sf_section"></span>-->
|
142 |
-
</div>
|
143 |
-
</li>
|
144 |
-
|
145 |
-
<li>
|
146 |
-
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='glossy') ? 'checked="true"' : '' ;?> type="radio" value="glossy" class="styled" />
|
147 |
-
<label><?php _e( 'Glossy', SFSI_PLUS_DOMAIN ); ?></label>
|
148 |
-
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_11_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_11_2 sfsiplus_email_section"></span><span class="sfsiplus_row_11_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_11_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_11_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_11_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_11_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_11_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_11_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_11_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_11_23 sfsiplus_vk_section"></span> <span class="sfsiplus_row_11_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_11_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_11_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_11_11 sf_section"></span>-->
|
149 |
-
</div>
|
150 |
-
</li>
|
151 |
-
|
152 |
-
<li>
|
153 |
-
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='black') ? 'checked="true"' : '' ;?> type="radio" value="black" class="styled" />
|
154 |
-
<label><?php _e( 'Black', SFSI_PLUS_DOMAIN ); ?></label>
|
155 |
-
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_12_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_12_2 sfsiplus_email_section"></span><span class="sfsiplus_row_12_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_12_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_12_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_12_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_12_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_12_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_12_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_12_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_12_23 sfsiplus_vk_section"></span> <span class="sfsiplus_row_12_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_12_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_12_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_12_11 sf_section"></span>-->
|
156 |
-
</div>
|
157 |
-
</li>
|
158 |
-
|
159 |
-
|
160 |
-
<!--------------------start last four------------------------>
|
161 |
-
|
162 |
-
<li>
|
163 |
-
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='silver') ? 'checked="true"' : '' ;?> type="radio" value="silver" class="styled" />
|
164 |
-
<label><?php _e( 'Silver', SFSI_PLUS_DOMAIN ); ?></label>
|
165 |
-
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_13_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_13_2 sfsiplus_email_section"></span><span class="sfsiplus_row_13_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_13_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_13_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_13_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_13_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_13_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_13_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_13_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_13_23 sfsiplus_vk_section"></span><span class="sfsiplus_row_13_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_13_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_13_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_13_11 sf_section"></span>-->
|
166 |
-
</div>
|
167 |
-
</li>
|
168 |
-
|
169 |
-
<li>
|
170 |
-
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='shaded_dark') ? 'checked="true"' : '' ;?> type="radio" value="shaded_dark" class="styled" />
|
171 |
-
<label><?php _e( 'Shaded Dark', SFSI_PLUS_DOMAIN ); ?></label>
|
172 |
-
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_14_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_14_2 sfsiplus_email_section"></span><span class="sfsiplus_row_14_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_14_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_14_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_14_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_14_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_14_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_14_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_14_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_14_23 sfsiplus_vk_section"></span> <span class="sfsiplus_row_14_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_14_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_14_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_14_11 sf_section"></span>-->
|
173 |
-
</div>
|
174 |
-
</li>
|
175 |
-
|
176 |
-
<li>
|
177 |
-
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='shaded_light') ? 'checked="true"' : '' ;?> type="radio" value="shaded_light" class="styled" />
|
178 |
-
<label><?php _e( 'Shaded Light', SFSI_PLUS_DOMAIN ); ?></label>
|
179 |
-
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_15_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_15_2 sfsiplus_email_section"></span><span class="sfsiplus_row_15_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_15_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_15_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_15_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_15_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_15_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_15_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_15_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_15_23 sfsiplus_vk_section"></span> <span class="sfsiplus_row_15_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_15_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_15_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_15_11 sf_section"></span>--> </div>
|
180 |
-
</li>
|
181 |
-
|
182 |
-
<li>
|
183 |
-
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='transparent') ? 'checked="true"' : '' ;?> type="radio" value="transparent" class="styled" />
|
184 |
-
<label style="line-height:20px !important;margin-top:15px; ">
|
185 |
-
<?php _e( 'Transparent', SFSI_PLUS_DOMAIN ); ?> <br/>
|
186 |
-
<span style="font-size: 9px;">(<?php _e( 'for dark backgrounds', SFSI_PLUS_DOMAIN )?>)</span>
|
187 |
-
</label>
|
188 |
-
<div class="sfsiplus_icns_tab_3 trans_bg" style="padding-left: 6px;"><span class="sfsiplus_row_16_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_16_2 sfsiplus_email_section"></span><span class="sfsiplus_row_16_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_16_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_16_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_16_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_16_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_16_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_16_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_16_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_16_23 sfsiplus_vk_section"></span> <span class="sfsiplus_row_16_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_16_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_16_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_16_11 sf_section"></span>--></div>
|
189 |
-
</li>
|
190 |
-
|
191 |
-
<?php if(get_option('sfsi_plus_custom_icons') == 'yes'){?>
|
192 |
-
<!--Custom Icon Support {Monad}-->
|
193 |
-
<li class="cstomskins_upload">
|
194 |
-
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='custom_support') ? 'checked="true"' : '' ;?> type="radio" value="custom_support" class="styled" />
|
195 |
-
<label style="line-height:20px !important;margin-top:15px; ">
|
196 |
-
<?php _e( 'Custom Icons', SFSI_PLUS_DOMAIN ); ?>
|
197 |
-
<br/>
|
198 |
-
</label>
|
199 |
-
<div class="sfsiplus_icns_tab_3" style="padding-left: 6px;">
|
200 |
-
<?php
|
201 |
-
if(get_option("plus_rss_skin"))
|
202 |
-
{
|
203 |
-
$icon = get_option("plus_rss_skin");
|
204 |
-
echo '<span class="sfsiplus_row_17_1 sfsiplus_rss_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;">
|
205 |
-
</span>';
|
206 |
-
}
|
207 |
-
else
|
208 |
-
{
|
209 |
-
echo '<span class="sfsiplus_row_17_1 sfsiplus_rss_section" style="background-position:-1px 0;"></span>';
|
210 |
-
}
|
211 |
-
|
212 |
-
if(get_option("plus_email_skin"))
|
213 |
-
{
|
214 |
-
$icon = get_option("plus_email_skin");
|
215 |
-
echo '<span class="sfsiplus_row_17_2 sfsiplus_email_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
|
216 |
-
}
|
217 |
-
else
|
218 |
-
{
|
219 |
-
echo '<span class="sfsiplus_row_17_2 sfsiplus_email_section" style="background-position:-58px 0;"></span>';
|
220 |
-
}
|
221 |
-
|
222 |
-
if(get_option("plus_facebook_skin"))
|
223 |
-
{
|
224 |
-
$icon = get_option("plus_facebook_skin");
|
225 |
-
echo '<span class="sfsiplus_row_17_3 sfsiplus_facebook_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
|
226 |
-
}
|
227 |
-
else
|
228 |
-
{
|
229 |
-
echo '<span class="sfsiplus_row_17_3 sfsiplus_facebook_section" style="background-position:-118px 0;"></span>';
|
230 |
-
}
|
231 |
-
|
232 |
-
if(get_option("plus_twitter_skin"))
|
233 |
-
{
|
234 |
-
$icon = get_option("plus_twitter_skin");
|
235 |
-
echo '<span class="sfsiplus_row_17_5 sfsiplus_twitter_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
|
236 |
-
}
|
237 |
-
else
|
238 |
-
{
|
239 |
-
echo '<span class="sfsiplus_row_17_5 sfsiplus_twitter_section" style="background-position:-235px 0;"></span>';
|
240 |
-
}
|
241 |
-
|
242 |
-
if(get_option("plus_youtube_skin"))
|
243 |
-
{
|
244 |
-
$icon = get_option("plus_youtube_skin");
|
245 |
-
echo '<span class="sfsiplus_row_17_7 sfsiplus_youtube_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
|
246 |
-
}
|
247 |
-
else
|
248 |
-
{
|
249 |
-
echo '<span class="sfsiplus_row_17_7 sfsiplus_youtube_section" style="background-position:-350px 0;"></span>';
|
250 |
-
}
|
251 |
-
|
252 |
-
if(get_option("plus_pintrest_skin"))
|
253 |
-
{
|
254 |
-
$icon = get_option("plus_pintrest_skin");
|
255 |
-
echo '<span class="sfsiplus_row_17_8 sfsiplus_pinterest_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
|
256 |
-
}
|
257 |
-
else
|
258 |
-
{
|
259 |
-
echo '<span class="sfsiplus_row_17_8 sfsiplus_pinterest_section" style="background-position:-409px 0;"></span>';
|
260 |
-
}
|
261 |
-
|
262 |
-
if(get_option("plus_linkedin_skin"))
|
263 |
-
{
|
264 |
-
$icon = get_option("plus_linkedin_skin");
|
265 |
-
echo '<span class="sfsiplus_row_17_9 sfsiplus_linkedin_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
|
266 |
-
}
|
267 |
-
else
|
268 |
-
{
|
269 |
-
echo '<span class="sfsiplus_row_17_9 sfsiplus_linkedin_section" style="background-position:-467px 0;"></span>';
|
270 |
-
}
|
271 |
-
|
272 |
-
if(get_option("plus_instagram_skin"))
|
273 |
-
{
|
274 |
-
$icon = get_option("plus_instagram_skin");
|
275 |
-
echo '<span class="sfsiplus_row_17_10 sfsiplus_instagram_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
|
276 |
-
}
|
277 |
-
else
|
278 |
-
{
|
279 |
-
echo '<span class="sfsiplus_row_17_10 sfsiplus_instagram_section" style="background-position:-526px 0;"></span>';
|
280 |
-
}
|
281 |
-
if(get_option("plus_houzz_skin"))
|
282 |
-
{
|
283 |
-
$icon = get_option("plus_houzz_skin");
|
284 |
-
echo '<span class="sfsiplus_row_17_11 sfsiplus_houzz_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
|
285 |
-
}
|
286 |
-
else
|
287 |
-
{
|
288 |
-
echo '<span class="sfsiplus_row_17_11 sfsiplus_houzz_section" style="background-position:-711px 0;"></span>';
|
289 |
-
}
|
290 |
-
|
291 |
-
if(get_option("plus_telegram_skin"))
|
292 |
-
{
|
293 |
-
$icon = get_option("plus_telegram_skin");
|
294 |
-
echo '<span class="sfsiplus_row_17_22 sfsiplus_telegram_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
|
295 |
-
}
|
296 |
-
else
|
297 |
-
{
|
298 |
-
echo '<span class="sfsiplus_row_17_22 sfsiplus_telegram_section" style="background-position:-769px 0;"></span>';
|
299 |
-
}
|
300 |
-
if(get_option("plus_vk_skin"))
|
301 |
-
{
|
302 |
-
$icon = get_option("plus_vk_skin");
|
303 |
-
echo '<span class="sfsiplus_row_17_23 sfsiplus_vk_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;margin-top:6px;"></span>';
|
304 |
-
}
|
305 |
-
else
|
306 |
-
{
|
307 |
-
echo '<span class="sfsiplus_row_17_23 sfsiplus_vk_section" style="background-position:-839px 0;"></span>';
|
308 |
-
}
|
309 |
-
|
310 |
-
if(get_option("plus_ok_skin"))
|
311 |
-
{
|
312 |
-
$icon = get_option("plus_ok_skin");
|
313 |
-
echo '<span class="sfsiplus_row_17_24 sfsiplus_ok_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;margin-top:6px;"></span>';
|
314 |
-
}
|
315 |
-
else
|
316 |
-
{
|
317 |
-
echo '<span class="sfsiplus_row_17_24 sfsiplus_ok_section" style="background-position:-909px 0;"></span>';
|
318 |
-
}
|
319 |
-
|
320 |
-
if(get_option("plus_wechat_skin"))
|
321 |
-
{
|
322 |
-
$icon = get_option("plus_wechat_skin");
|
323 |
-
echo '<span class="sfsiplus_row_17_25 sfsiplus_wechat_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;margin-top:6px;"></span>';
|
324 |
-
}
|
325 |
-
else
|
326 |
-
{
|
327 |
-
echo '<span class="sfsiplus_row_17_26 sfsiplus_wechat_section" style="background-position:-1045px 0;"></span>';
|
328 |
-
}
|
329 |
-
if(get_option("plus_weibo_skin"))
|
330 |
-
{
|
331 |
-
$icon = get_option("plus_weibo_skin");
|
332 |
-
echo '<span class="sfsiplus_row_17_25 sfsiplus_weibo_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;margin-top:6px;"></span>';
|
333 |
-
}
|
334 |
-
else
|
335 |
-
{
|
336 |
-
echo '<span class="sfsiplus_row_17_25 sfsiplus_weibo_section" style="background-position:-979px 0;"></span>';
|
337 |
-
}
|
338 |
-
|
339 |
-
|
340 |
-
?>
|
341 |
-
|
342 |
-
</div>
|
343 |
-
</li>
|
344 |
-
<?php
|
345 |
-
}
|
346 |
-
?>
|
347 |
-
<?php if(get_option('sfsi_plus_custom_icons') == 'no'){?>
|
348 |
-
|
349 |
-
<li style="display: flex;align-items: center;">
|
350 |
-
<a class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank" style="display: flex;">
|
351 |
-
|
352 |
-
<input name="sfsi_plus_actvite_theme" type="radio" value="custom_support" class="styled"/>
|
353 |
-
<label style="line-height:20px !important;margin-top:15px;opacity:0.5;font-weight:normal;">
|
354 |
-
<?php _e( 'Custom Icons -', SFSI_PLUS_DOMAIN ); ?>
|
355 |
-
<br/>
|
356 |
-
</label>
|
357 |
-
</a>
|
358 |
-
|
359 |
-
<div class="sfsiplus_icns_tab_3" style="padding-left: 6px;">
|
360 |
-
<p>
|
361 |
-
<a style="color: #12a252 !important;font-weight: bold; border-bottom:none;text-decoration: none;">
|
362 |
-
<?php _e('Premium Feature:',SFSI_PLUS_DOMAIN); ?>
|
363 |
-
</a>
|
364 |
-
<?php _e('Upload a custom design for the social media platforms implemented in the plugin under question number 1 -', SFSI_PLUS_DOMAIN); ?>
|
365 |
-
<a class="pop-up" style="cursor:pointer; color: #12a252 !important;border-bottom: 1px solid #12a252;text-decoration: none;" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank">
|
366 |
-
<?php _e('Get it now.',SFSI_PLUS_DOMAIN); ?>
|
367 |
-
</a>
|
368 |
-
</p>
|
369 |
-
</div>
|
370 |
-
</li>
|
371 |
-
|
372 |
-
<?php
|
373 |
-
}
|
374 |
-
?>
|
375 |
-
<?php
|
376 |
-
|
377 |
-
if($option3['sfsi_plus_premium_icons_design_box'] =='yes'){ ?>
|
378 |
-
<li>
|
379 |
-
<?php include_once(SFSI_PLUS_DOCROOT.'/views/subviews/que4/banner.php'); ?>
|
380 |
-
|
381 |
-
</li>
|
382 |
-
<?php } ?>
|
383 |
-
|
384 |
-
<li>
|
385 |
-
<p style="font-weight: bold; margin: 12px 0 0;">
|
386 |
-
<?php _e("Need icons for another theme? Let us know in the", SFSI_PLUS_DOMAIN); ?>
|
387 |
-
<a target="_blank" href="https://wordpress.org/support/plugin/ultimate-social-media-plus/#new-topic-0" style="color:#8E81BD; text-decoration:underline;">
|
388 |
-
<?php _e(" Support Forum", SFSI_PLUS_DOMAIN); ?>
|
389 |
-
</a>
|
390 |
-
<?php //_e("to offer your icons here and get a free link (& traffic) back to your site!", SFSI_PLUS_DOMAIN); ?>
|
391 |
-
</p>
|
392 |
-
</li>
|
393 |
-
</ul>
|
394 |
-
<!--icon themes section start -->
|
395 |
-
|
396 |
-
<?php include_once(SFSI_PLUS_DOCROOT.'/views/subviews/que4/animatethem.php'); ?>
|
397 |
-
|
398 |
-
</div>
|
399 |
-
</div>
|
400 |
-
<!--Content of 4-->
|
401 |
-
|
402 |
-
|
403 |
-
<?php sfsi_plus_ask_for_help(3); ?>
|
404 |
-
|
405 |
-
|
406 |
-
<!-- SAVE BUTTON SECTION -->
|
407 |
-
<div class="save_button tab_3_sav">
|
408 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
|
409 |
-
<?php $nonce = wp_create_nonce("update_plus_step3"); ?>
|
410 |
-
<a href="javascript:;" id="sfsi_plus_save3" title="Save" data-nonce="<?php echo $nonce;?>">
|
411 |
-
<?php _e( 'Save', SFSI_PLUS_DOMAIN ); ?>
|
412 |
-
</a>
|
413 |
-
</div> <!-- END SAVE BUTTON SECTION -->
|
414 |
-
|
415 |
-
<a class="sfsiColbtn closeSec" href="javascript:;">
|
416 |
-
<?php _e( 'Collapse area', SFSI_PLUS_DOMAIN ); ?>
|
417 |
-
</a>
|
418 |
-
<label class="closeSec"></label>
|
419 |
-
<!-- ERROR AND SUCCESS MESSAGE AREA-->
|
420 |
-
<p class="red_txt errorMsg" style="display:none"> </p>
|
421 |
-
<p class="green_txt sucMsg" style="display:none"> </p>
|
422 |
-
</div><!-- END Section 3 "What design & animation do you want to give your icons?" main div -->
|
1 |
+
<?php
|
2 |
+
/* unserialize all saved option for second section options */
|
3 |
+
$option3= unserialize(get_option('sfsi_plus_section3_options',false));
|
4 |
+
/*
|
5 |
+
* Sanitize, escape and validate values
|
6 |
+
*/
|
7 |
+
$option3['sfsi_plus_actvite_theme'] = (isset($option3['sfsi_plus_actvite_theme']))
|
8 |
+
? sanitize_text_field($option3['sfsi_plus_actvite_theme'])
|
9 |
+
: '';
|
10 |
+
$option3['sfsi_plus_mouseOver'] = (isset($option3['sfsi_plus_mouseOver']))
|
11 |
+
? sanitize_text_field($option3['sfsi_plus_mouseOver'])
|
12 |
+
: '';
|
13 |
+
$option3['sfsi_plus_mouseOver_effect'] = (isset($option3['sfsi_plus_mouseOver_effect']))
|
14 |
+
? sanitize_text_field($option3['sfsi_plus_mouseOver_effect'])
|
15 |
+
: '';
|
16 |
+
|
17 |
+
$option3['sfsi_plus_shuffle_Firstload'] = (isset($option3['sfsi_plus_shuffle_Firstload']))
|
18 |
+
? sanitize_text_field($option3['sfsi_plus_shuffle_Firstload'])
|
19 |
+
: '';
|
20 |
+
$option3['sfsi_plus_shuffle_interval'] = (isset($option3['sfsi_plus_shuffle_interval']))
|
21 |
+
? sanitize_text_field($option3['sfsi_plus_shuffle_interval'])
|
22 |
+
: '';
|
23 |
+
$option3['sfsi_plus_shuffle_intervalTime'] = (isset($option3['sfsi_plus_shuffle_intervalTime']))
|
24 |
+
? intval($option3['sfsi_plus_shuffle_intervalTime'])
|
25 |
+
: '';
|
26 |
+
$option3['sfsi_plus_premium_icons_design_box'] = (isset($option3['sfsi_plus_premium_icons_design_box']))
|
27 |
+
? intval($option3['sfsi_plus_premium_icons_design_box'])
|
28 |
+
: 'yes';
|
29 |
+
$option3['sfsi_plus_mouseOver_effect_type'] = (isset($option3['sfsi_plus_mouseOver_effect_type'])) ? sanitize_text_field($option3['sfsi_plus_mouseOver_effect_type']) : 'same_icons';
|
30 |
+
|
31 |
+
$mouseover_other_icons_transition_effect = (isset($option3['mouseover_other_icons_transition_effect'])) ? sanitize_text_field($option3['mouseover_other_icons_transition_effect']) : 'flip';
|
32 |
+
?>
|
33 |
+
<!-- Section 3 "What design & animation do you want to give your icons?" main div Start -->
|
34 |
+
<div class="tab3">
|
35 |
+
<!--Content of 4-->
|
36 |
+
<div class="row mouse_txt sfsiplusmousetxt tab3">
|
37 |
+
<p>
|
38 |
+
<?php _e('A good & well-fitting design is not only nice to look at, but it increases the chances that people will subscribe and/or share your site with friends:', SFSI_PLUS_DOMAIN ); ?>
|
39 |
+
</p>
|
40 |
+
<ul class="tab_3_list">
|
41 |
+
<li>
|
42 |
+
<?php _e( 'It comes across as more professional and gives your site more “credit”', SFSI_PLUS_DOMAIN ); ?>
|
43 |
+
</li>
|
44 |
+
<li>
|
45 |
+
<?php _e( 'A smart automatic animation can make your visitors aware of your icons in an unintrusive manner', SFSI_PLUS_DOMAIN ); ?>
|
46 |
+
</li>
|
47 |
+
</ul>
|
48 |
+
|
49 |
+
<p style="padding:0px;">
|
50 |
+
<?php _e( 'The icons have been compressed by Shortpixel.com for faster loading of your site. Thank you Shortpixel!', SFSI_PLUS_DOMAIN ); ?>
|
51 |
+
</p>
|
52 |
+
|
53 |
+
<div class="row">
|
54 |
+
<h3>
|
55 |
+
<?php _e( 'Theme options', SFSI_PLUS_DOMAIN ); ?>
|
56 |
+
</h3>
|
57 |
+
<!--icon themes section start -->
|
58 |
+
<ul class="sfsiplus_tab_3_icns">
|
59 |
+
<li>
|
60 |
+
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='default') ? 'checked="true"' : '' ;?> type="radio" value="default" class="styled" />
|
61 |
+
<label>
|
62 |
+
<?php _e( 'Default', SFSI_PLUS_DOMAIN ); ?>
|
63 |
+
</label>
|
64 |
+
<div class="sfsiplus_icns_tab_3">
|
65 |
+
<span class="sfsiplus_row_1_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_1_2 sfsiplus_email_section"></span><span class="sfsiplus_row_1_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_1_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_1_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_1_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_1_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_1_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_1_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_1_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_1_23 sfsiplus_vk_section"></span><span class="sfsiplus_row_1_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_1_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_1_25 sfsiplus_weibo_section"></span><!--<span class="sfsiplus_row_1_11 sf_section"></span>-->
|
66 |
+
</div>
|
67 |
+
</li>
|
68 |
+
|
69 |
+
<li>
|
70 |
+
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='flat') ? 'checked="true"' : '' ;?> type="radio" value="flat" class="styled" />
|
71 |
+
<label>
|
72 |
+
<?php _e( 'Flat', SFSI_PLUS_DOMAIN ); ?>
|
73 |
+
</label>
|
74 |
+
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_2_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_2_2 sfsiplus_email_section"></span><span class="sfsiplus_row_2_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_2_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_2_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_2_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_2_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_2_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_2_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_2_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_2_23 sfsiplus_vk_section"></span><span class="sfsiplus_row_2_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_2_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_2_25 sfsiplus_weibo_section"></span><!--<span class="sfsiplus_row_2_11 sf_section"></span>-->
|
75 |
+
</div>
|
76 |
+
</li>
|
77 |
+
|
78 |
+
<li>
|
79 |
+
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='thin') ? 'checked="true"' : '' ;?> type="radio" value="thin" class="styled" />
|
80 |
+
<label>
|
81 |
+
<?php _e( 'Thin', SFSI_PLUS_DOMAIN ); ?>
|
82 |
+
</label>
|
83 |
+
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_3_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_3_2 sfsiplus_email_section"></span><span class="sfsiplus_row_3_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_3_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_3_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_3_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_3_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_3_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_3_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_3_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_3_23 sfsiplus_vk_section"></span><span class="sfsiplus_row_3_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_3_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_3_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_3_11 sf_section"></span>-->
|
84 |
+
</div>
|
85 |
+
</li>
|
86 |
+
|
87 |
+
<li>
|
88 |
+
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='cute') ? 'checked="true"' : '' ;?> type="radio" value="cute" class="styled" />
|
89 |
+
<label>
|
90 |
+
<?php _e( 'Cute', SFSI_PLUS_DOMAIN ); ?>
|
91 |
+
</label>
|
92 |
+
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_4_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_4_2 sfsiplus_email_section"></span><span class="sfsiplus_row_4_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_4_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_4_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_4_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_4_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_4_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_4_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_4_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_4_23 sfsiplus_vk_section"></span><span class="sfsiplus_row_4_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_4_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_4_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_4_11 sf_section"></span>-->
|
93 |
+
</div>
|
94 |
+
</li>
|
95 |
+
|
96 |
+
<!--------------------start next four------------------------>
|
97 |
+
|
98 |
+
<li>
|
99 |
+
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='cubes') ? 'checked="true"' : '' ;?> type="radio" value="cubes" class="styled" />
|
100 |
+
<label><?php _e( 'Cubes', SFSI_PLUS_DOMAIN ); ?></label>
|
101 |
+
|
102 |
+
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_5_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_5_2 sfsiplus_email_section"></span><span class="sfsiplus_row_5_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_5_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_5_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_5_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_5_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_5_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_5_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_5_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_5_23 sfsiplus_vk_section"></span><span class="sfsiplus_row_5_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_5_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_5_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_5_11 sf_section"></span>-->
|
103 |
+
</div>
|
104 |
+
</li>
|
105 |
+
|
106 |
+
<li>
|
107 |
+
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='chrome_blue') ? 'checked="true"' : '' ;?> type="radio" value="chrome_blue" class="styled" />
|
108 |
+
<label><?php _e( 'Chrome Blue', SFSI_PLUS_DOMAIN ); ?></label>
|
109 |
+
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_6_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_6_2 sfsiplus_email_section"></span><span class="sfsiplus_row_6_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_6_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_6_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_6_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_6_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_6_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_6_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_6_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_6_23 sfsiplus_vk_section"></span> <span class="sfsiplus_row_6_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_6_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_6_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_6_11 sf_section"></span>-->
|
110 |
+
</div>
|
111 |
+
</li>
|
112 |
+
|
113 |
+
<li>
|
114 |
+
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='chrome_grey') ? 'checked="true"' : '' ;?> type="radio" value="chrome_grey" class="styled" />
|
115 |
+
<label><?php _e( 'Chrome Grey', SFSI_PLUS_DOMAIN ); ?></label>
|
116 |
+
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_7_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_7_2 sfsiplus_email_section"></span><span class="sfsiplus_row_7_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_7_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_7_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_7_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_7_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_7_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_7_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_7_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_7_23 sfsiplus_vk_section"></span> <span class="sfsiplus_row_7_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_7_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_7_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_7_11 sf_section"></span>-->
|
117 |
+
</div>
|
118 |
+
</li>
|
119 |
+
|
120 |
+
<li>
|
121 |
+
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='splash') ? 'checked="true"' : '' ;?> type="radio" value="splash" class="styled" />
|
122 |
+
<label><?php _e( 'Splash', SFSI_PLUS_DOMAIN ); ?></label>
|
123 |
+
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_8_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_8_2 sfsiplus_email_section"></span><span class="sfsiplus_row_8_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_8_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_8_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_8_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_8_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_8_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_8_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_8_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_8_23 sfsiplus_vk_section"></span> <span class="sfsiplus_row_8_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_8_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_8_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_8_11 sf_section"></span>-->
|
124 |
+
</div>
|
125 |
+
</li>
|
126 |
+
|
127 |
+
|
128 |
+
<!--------------------start second four------------------------>
|
129 |
+
|
130 |
+
|
131 |
+
<li>
|
132 |
+
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='orange') ? 'checked="true"' : '' ;?> type="radio" value="orange" class="styled" />
|
133 |
+
<label><?php _e( 'Orange', SFSI_PLUS_DOMAIN ); ?></label>
|
134 |
+
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_9_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_9_2 sfsiplus_email_section"></span><span class="sfsiplus_row_9_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_9_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_9_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_9_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_9_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_9_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_9_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_9_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_9_23 sfsiplus_vk_section"></span> <span class="sfsiplus_row_9_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_9_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_9_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_9_11 sf_section"></span>-->
|
135 |
+
</div>
|
136 |
+
</li>
|
137 |
+
|
138 |
+
<li>
|
139 |
+
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='crystal') ? 'checked="true"' : '' ;?> type="radio" value="crystal" class="styled" />
|
140 |
+
<label><?php _e( 'Crystal', SFSI_PLUS_DOMAIN ); ?></label>
|
141 |
+
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_10_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_10_2 sfsiplus_email_section"></span><span class="sfsiplus_row_10_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_10_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_10_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_10_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_10_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_10_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_10_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_10_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_10_23 sfsiplus_vk_section"></span><span class="sfsiplus_row_10_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_10_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_10_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_10_11 sf_section"></span>-->
|
142 |
+
</div>
|
143 |
+
</li>
|
144 |
+
|
145 |
+
<li>
|
146 |
+
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='glossy') ? 'checked="true"' : '' ;?> type="radio" value="glossy" class="styled" />
|
147 |
+
<label><?php _e( 'Glossy', SFSI_PLUS_DOMAIN ); ?></label>
|
148 |
+
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_11_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_11_2 sfsiplus_email_section"></span><span class="sfsiplus_row_11_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_11_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_11_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_11_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_11_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_11_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_11_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_11_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_11_23 sfsiplus_vk_section"></span> <span class="sfsiplus_row_11_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_11_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_11_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_11_11 sf_section"></span>-->
|
149 |
+
</div>
|
150 |
+
</li>
|
151 |
+
|
152 |
+
<li>
|
153 |
+
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='black') ? 'checked="true"' : '' ;?> type="radio" value="black" class="styled" />
|
154 |
+
<label><?php _e( 'Black', SFSI_PLUS_DOMAIN ); ?></label>
|
155 |
+
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_12_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_12_2 sfsiplus_email_section"></span><span class="sfsiplus_row_12_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_12_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_12_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_12_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_12_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_12_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_12_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_12_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_12_23 sfsiplus_vk_section"></span> <span class="sfsiplus_row_12_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_12_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_12_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_12_11 sf_section"></span>-->
|
156 |
+
</div>
|
157 |
+
</li>
|
158 |
+
|
159 |
+
|
160 |
+
<!--------------------start last four------------------------>
|
161 |
+
|
162 |
+
<li>
|
163 |
+
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='silver') ? 'checked="true"' : '' ;?> type="radio" value="silver" class="styled" />
|
164 |
+
<label><?php _e( 'Silver', SFSI_PLUS_DOMAIN ); ?></label>
|
165 |
+
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_13_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_13_2 sfsiplus_email_section"></span><span class="sfsiplus_row_13_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_13_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_13_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_13_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_13_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_13_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_13_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_13_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_13_23 sfsiplus_vk_section"></span><span class="sfsiplus_row_13_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_13_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_13_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_13_11 sf_section"></span>-->
|
166 |
+
</div>
|
167 |
+
</li>
|
168 |
+
|
169 |
+
<li>
|
170 |
+
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='shaded_dark') ? 'checked="true"' : '' ;?> type="radio" value="shaded_dark" class="styled" />
|
171 |
+
<label><?php _e( 'Shaded Dark', SFSI_PLUS_DOMAIN ); ?></label>
|
172 |
+
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_14_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_14_2 sfsiplus_email_section"></span><span class="sfsiplus_row_14_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_14_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_14_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_14_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_14_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_14_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_14_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_14_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_14_23 sfsiplus_vk_section"></span> <span class="sfsiplus_row_14_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_14_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_14_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_14_11 sf_section"></span>-->
|
173 |
+
</div>
|
174 |
+
</li>
|
175 |
+
|
176 |
+
<li>
|
177 |
+
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='shaded_light') ? 'checked="true"' : '' ;?> type="radio" value="shaded_light" class="styled" />
|
178 |
+
<label><?php _e( 'Shaded Light', SFSI_PLUS_DOMAIN ); ?></label>
|
179 |
+
<div class="sfsiplus_icns_tab_3"><span class="sfsiplus_row_15_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_15_2 sfsiplus_email_section"></span><span class="sfsiplus_row_15_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_15_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_15_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_15_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_15_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_15_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_15_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_15_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_15_23 sfsiplus_vk_section"></span> <span class="sfsiplus_row_15_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_15_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_15_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_15_11 sf_section"></span>--> </div>
|
180 |
+
</li>
|
181 |
+
|
182 |
+
<li>
|
183 |
+
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='transparent') ? 'checked="true"' : '' ;?> type="radio" value="transparent" class="styled" />
|
184 |
+
<label style="line-height:20px !important;margin-top:15px; ">
|
185 |
+
<?php _e( 'Transparent', SFSI_PLUS_DOMAIN ); ?> <br/>
|
186 |
+
<span style="font-size: 9px;">(<?php _e( 'for dark backgrounds', SFSI_PLUS_DOMAIN )?>)</span>
|
187 |
+
</label>
|
188 |
+
<div class="sfsiplus_icns_tab_3 trans_bg" style="padding-left: 6px;"><span class="sfsiplus_row_16_1 sfsiplus_rss_section"></span><span class="sfsiplus_row_16_2 sfsiplus_email_section"></span><span class="sfsiplus_row_16_3 sfsiplus_facebook_section"></span><span class="sfsiplus_row_16_5 sfsiplus_twitter_section"></span><span class="sfsiplus_row_16_7 sfsiplus_youtube_section"></span><span class="sfsiplus_row_16_8 sfsiplus_pinterest_section"></span><span class="sfsiplus_row_16_9 sfsiplus_linkedin_section"></span><span class="sfsiplus_row_16_10 sfsiplus_instagram_section"></span><span class="sfsiplus_row_16_11 sfsiplus_houzz_section"></span><span class="sfsiplus_row_16_22 sfsiplus_telegram_section"></span><span class="sfsiplus_row_16_23 sfsiplus_vk_section"></span> <span class="sfsiplus_row_16_24 sfsiplus_ok_section"></span><span class="sfsiplus_row_16_26 sfsiplus_wechat_section"></span><span class="sfsiplus_row_16_25 sfsiplus_weibo_section"></span> <!--<span class="sfsiplus_row_16_11 sf_section"></span>--></div>
|
189 |
+
</li>
|
190 |
+
|
191 |
+
<?php if(get_option('sfsi_plus_custom_icons') == 'yes'){?>
|
192 |
+
<!--Custom Icon Support {Monad}-->
|
193 |
+
<li class="cstomskins_upload">
|
194 |
+
<input name="sfsi_plus_actvite_theme" <?php echo ( $option3['sfsi_plus_actvite_theme']=='custom_support') ? 'checked="true"' : '' ;?> type="radio" value="custom_support" class="styled" />
|
195 |
+
<label style="line-height:20px !important;margin-top:15px; ">
|
196 |
+
<?php _e( 'Custom Icons', SFSI_PLUS_DOMAIN ); ?>
|
197 |
+
<br/>
|
198 |
+
</label>
|
199 |
+
<div class="sfsiplus_icns_tab_3" style="padding-left: 6px;">
|
200 |
+
<?php
|
201 |
+
if(get_option("plus_rss_skin"))
|
202 |
+
{
|
203 |
+
$icon = get_option("plus_rss_skin");
|
204 |
+
echo '<span class="sfsiplus_row_17_1 sfsiplus_rss_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;">
|
205 |
+
</span>';
|
206 |
+
}
|
207 |
+
else
|
208 |
+
{
|
209 |
+
echo '<span class="sfsiplus_row_17_1 sfsiplus_rss_section" style="background-position:-1px 0;"></span>';
|
210 |
+
}
|
211 |
+
|
212 |
+
if(get_option("plus_email_skin"))
|
213 |
+
{
|
214 |
+
$icon = get_option("plus_email_skin");
|
215 |
+
echo '<span class="sfsiplus_row_17_2 sfsiplus_email_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
|
216 |
+
}
|
217 |
+
else
|
218 |
+
{
|
219 |
+
echo '<span class="sfsiplus_row_17_2 sfsiplus_email_section" style="background-position:-58px 0;"></span>';
|
220 |
+
}
|
221 |
+
|
222 |
+
if(get_option("plus_facebook_skin"))
|
223 |
+
{
|
224 |
+
$icon = get_option("plus_facebook_skin");
|
225 |
+
echo '<span class="sfsiplus_row_17_3 sfsiplus_facebook_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
|
226 |
+
}
|
227 |
+
else
|
228 |
+
{
|
229 |
+
echo '<span class="sfsiplus_row_17_3 sfsiplus_facebook_section" style="background-position:-118px 0;"></span>';
|
230 |
+
}
|
231 |
+
|
232 |
+
if(get_option("plus_twitter_skin"))
|
233 |
+
{
|
234 |
+
$icon = get_option("plus_twitter_skin");
|
235 |
+
echo '<span class="sfsiplus_row_17_5 sfsiplus_twitter_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
|
236 |
+
}
|
237 |
+
else
|
238 |
+
{
|
239 |
+
echo '<span class="sfsiplus_row_17_5 sfsiplus_twitter_section" style="background-position:-235px 0;"></span>';
|
240 |
+
}
|
241 |
+
|
242 |
+
if(get_option("plus_youtube_skin"))
|
243 |
+
{
|
244 |
+
$icon = get_option("plus_youtube_skin");
|
245 |
+
echo '<span class="sfsiplus_row_17_7 sfsiplus_youtube_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
|
246 |
+
}
|
247 |
+
else
|
248 |
+
{
|
249 |
+
echo '<span class="sfsiplus_row_17_7 sfsiplus_youtube_section" style="background-position:-350px 0;"></span>';
|
250 |
+
}
|
251 |
+
|
252 |
+
if(get_option("plus_pintrest_skin"))
|
253 |
+
{
|
254 |
+
$icon = get_option("plus_pintrest_skin");
|
255 |
+
echo '<span class="sfsiplus_row_17_8 sfsiplus_pinterest_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
|
256 |
+
}
|
257 |
+
else
|
258 |
+
{
|
259 |
+
echo '<span class="sfsiplus_row_17_8 sfsiplus_pinterest_section" style="background-position:-409px 0;"></span>';
|
260 |
+
}
|
261 |
+
|
262 |
+
if(get_option("plus_linkedin_skin"))
|
263 |
+
{
|
264 |
+
$icon = get_option("plus_linkedin_skin");
|
265 |
+
echo '<span class="sfsiplus_row_17_9 sfsiplus_linkedin_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
|
266 |
+
}
|
267 |
+
else
|
268 |
+
{
|
269 |
+
echo '<span class="sfsiplus_row_17_9 sfsiplus_linkedin_section" style="background-position:-467px 0;"></span>';
|
270 |
+
}
|
271 |
+
|
272 |
+
if(get_option("plus_instagram_skin"))
|
273 |
+
{
|
274 |
+
$icon = get_option("plus_instagram_skin");
|
275 |
+
echo '<span class="sfsiplus_row_17_10 sfsiplus_instagram_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
|
276 |
+
}
|
277 |
+
else
|
278 |
+
{
|
279 |
+
echo '<span class="sfsiplus_row_17_10 sfsiplus_instagram_section" style="background-position:-526px 0;"></span>';
|
280 |
+
}
|
281 |
+
if(get_option("plus_houzz_skin"))
|
282 |
+
{
|
283 |
+
$icon = get_option("plus_houzz_skin");
|
284 |
+
echo '<span class="sfsiplus_row_17_11 sfsiplus_houzz_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
|
285 |
+
}
|
286 |
+
else
|
287 |
+
{
|
288 |
+
echo '<span class="sfsiplus_row_17_11 sfsiplus_houzz_section" style="background-position:-711px 0;"></span>';
|
289 |
+
}
|
290 |
+
|
291 |
+
if(get_option("plus_telegram_skin"))
|
292 |
+
{
|
293 |
+
$icon = get_option("plus_telegram_skin");
|
294 |
+
echo '<span class="sfsiplus_row_17_22 sfsiplus_telegram_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
|
295 |
+
}
|
296 |
+
else
|
297 |
+
{
|
298 |
+
echo '<span class="sfsiplus_row_17_22 sfsiplus_telegram_section" style="background-position:-769px 0;"></span>';
|
299 |
+
}
|
300 |
+
if(get_option("plus_vk_skin"))
|
301 |
+
{
|
302 |
+
$icon = get_option("plus_vk_skin");
|
303 |
+
echo '<span class="sfsiplus_row_17_23 sfsiplus_vk_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;margin-top:6px;"></span>';
|
304 |
+
}
|
305 |
+
else
|
306 |
+
{
|
307 |
+
echo '<span class="sfsiplus_row_17_23 sfsiplus_vk_section" style="background-position:-839px 0;"></span>';
|
308 |
+
}
|
309 |
+
|
310 |
+
if(get_option("plus_ok_skin"))
|
311 |
+
{
|
312 |
+
$icon = get_option("plus_ok_skin");
|
313 |
+
echo '<span class="sfsiplus_row_17_24 sfsiplus_ok_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;margin-top:6px;"></span>';
|
314 |
+
}
|
315 |
+
else
|
316 |
+
{
|
317 |
+
echo '<span class="sfsiplus_row_17_24 sfsiplus_ok_section" style="background-position:-909px 0;"></span>';
|
318 |
+
}
|
319 |
+
|
320 |
+
if(get_option("plus_wechat_skin"))
|
321 |
+
{
|
322 |
+
$icon = get_option("plus_wechat_skin");
|
323 |
+
echo '<span class="sfsiplus_row_17_25 sfsiplus_wechat_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;margin-top:6px;"></span>';
|
324 |
+
}
|
325 |
+
else
|
326 |
+
{
|
327 |
+
echo '<span class="sfsiplus_row_17_26 sfsiplus_wechat_section" style="background-position:-1045px 0;"></span>';
|
328 |
+
}
|
329 |
+
if(get_option("plus_weibo_skin"))
|
330 |
+
{
|
331 |
+
$icon = get_option("plus_weibo_skin");
|
332 |
+
echo '<span class="sfsiplus_row_17_25 sfsiplus_weibo_section sfsi_plus-bgimage" style="background: url('.$icon.') no-repeat;margin-top:6px;"></span>';
|
333 |
+
}
|
334 |
+
else
|
335 |
+
{
|
336 |
+
echo '<span class="sfsiplus_row_17_25 sfsiplus_weibo_section" style="background-position:-979px 0;"></span>';
|
337 |
+
}
|
338 |
+
|
339 |
+
|
340 |
+
?>
|
341 |
+
|
342 |
+
</div>
|
343 |
+
</li>
|
344 |
+
<?php
|
345 |
+
}
|
346 |
+
?>
|
347 |
+
<?php if(get_option('sfsi_plus_custom_icons') == 'no'){?>
|
348 |
+
|
349 |
+
<li style="display: flex;align-items: center;">
|
350 |
+
<a class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank" style="display: flex;">
|
351 |
+
|
352 |
+
<input name="sfsi_plus_actvite_theme" type="radio" value="custom_support" class="styled"/>
|
353 |
+
<label style="line-height:20px !important;margin-top:15px;opacity:0.5;font-weight:normal;">
|
354 |
+
<?php _e( 'Custom Icons -', SFSI_PLUS_DOMAIN ); ?>
|
355 |
+
<br/>
|
356 |
+
</label>
|
357 |
+
</a>
|
358 |
+
|
359 |
+
<div class="sfsiplus_icns_tab_3" style="padding-left: 6px;">
|
360 |
+
<p>
|
361 |
+
<a style="color: #12a252 !important;font-weight: bold; border-bottom:none;text-decoration: none;">
|
362 |
+
<?php _e('Premium Feature:',SFSI_PLUS_DOMAIN); ?>
|
363 |
+
</a>
|
364 |
+
<?php _e('Upload a custom design for the social media platforms implemented in the plugin under question number 1 -', SFSI_PLUS_DOMAIN); ?>
|
365 |
+
<a class="pop-up" style="cursor:pointer; color: #12a252 !important;border-bottom: 1px solid #12a252;text-decoration: none;" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank">
|
366 |
+
<?php _e('Get it now.',SFSI_PLUS_DOMAIN); ?>
|
367 |
+
</a>
|
368 |
+
</p>
|
369 |
+
</div>
|
370 |
+
</li>
|
371 |
+
|
372 |
+
<?php
|
373 |
+
}
|
374 |
+
?>
|
375 |
+
<?php
|
376 |
+
|
377 |
+
if($option3['sfsi_plus_premium_icons_design_box'] =='yes'){ ?>
|
378 |
+
<li>
|
379 |
+
<?php include_once(SFSI_PLUS_DOCROOT.'/views/subviews/que4/banner.php'); ?>
|
380 |
+
|
381 |
+
</li>
|
382 |
+
<?php } ?>
|
383 |
+
|
384 |
+
<li>
|
385 |
+
<p style="font-weight: bold; margin: 12px 0 0;">
|
386 |
+
<?php _e("Need icons for another theme? Let us know in the", SFSI_PLUS_DOMAIN); ?>
|
387 |
+
<a target="_blank" href="https://wordpress.org/support/plugin/ultimate-social-media-plus/#new-topic-0" style="color:#8E81BD; text-decoration:underline;">
|
388 |
+
<?php _e(" Support Forum", SFSI_PLUS_DOMAIN); ?>
|
389 |
+
</a>
|
390 |
+
<?php //_e("to offer your icons here and get a free link (& traffic) back to your site!", SFSI_PLUS_DOMAIN); ?>
|
391 |
+
</p>
|
392 |
+
</li>
|
393 |
+
</ul>
|
394 |
+
<!--icon themes section start -->
|
395 |
+
|
396 |
+
<?php include_once(SFSI_PLUS_DOCROOT.'/views/subviews/que4/animatethem.php'); ?>
|
397 |
+
|
398 |
+
</div>
|
399 |
+
</div>
|
400 |
+
<!--Content of 4-->
|
401 |
+
|
402 |
+
|
403 |
+
<?php sfsi_plus_ask_for_help(3); ?>
|
404 |
+
|
405 |
+
|
406 |
+
<!-- SAVE BUTTON SECTION -->
|
407 |
+
<div class="save_button tab_3_sav">
|
408 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
|
409 |
+
<?php $nonce = wp_create_nonce("update_plus_step3"); ?>
|
410 |
+
<a href="javascript:;" id="sfsi_plus_save3" title="Save" data-nonce="<?php echo $nonce;?>">
|
411 |
+
<?php _e( 'Save', SFSI_PLUS_DOMAIN ); ?>
|
412 |
+
</a>
|
413 |
+
</div> <!-- END SAVE BUTTON SECTION -->
|
414 |
+
|
415 |
+
<a class="sfsiColbtn closeSec" href="javascript:;">
|
416 |
+
<?php _e( 'Collapse area', SFSI_PLUS_DOMAIN ); ?>
|
417 |
+
</a>
|
418 |
+
<label class="closeSec"></label>
|
419 |
+
<!-- ERROR AND SUCCESS MESSAGE AREA-->
|
420 |
+
<p class="red_txt errorMsg" style="display:none"> </p>
|
421 |
+
<p class="green_txt sucMsg" style="display:none"> </p>
|
422 |
+
</div><!-- END Section 3 "What design & animation do you want to give your icons?" main div -->
|
views/sfsi_option_view4.php
CHANGED
@@ -1,898 +1,898 @@
|
|
1 |
-
<?php
|
2 |
-
/* unserialize all saved option for section 4 options */
|
3 |
-
$option2 = unserialize(get_option('sfsi_plus_section2_options',false));
|
4 |
-
$option4 = unserialize(get_option('sfsi_plus_section4_options',false));
|
5 |
-
if(!isset($option4['sfsi_plus_facebook_mypageCounts']))
|
6 |
-
{
|
7 |
-
$option4['sfsi_plus_facebook_mypageCounts'] = '';
|
8 |
-
}
|
9 |
-
|
10 |
-
/*
|
11 |
-
* Sanitize, escape and validate values
|
12 |
-
*/
|
13 |
-
$option4['sfsi_plus_display_counts'] = (isset($option4['sfsi_plus_display_counts']))
|
14 |
-
? sanitize_text_field($option4['sfsi_plus_display_counts'])
|
15 |
-
: '';
|
16 |
-
$option4['sfsi_plus_email_countsFrom'] = (isset($option4['sfsi_plus_email_countsFrom']))
|
17 |
-
? sanitize_text_field($option4['sfsi_plus_email_countsFrom'])
|
18 |
-
: '';
|
19 |
-
$option4['sfsi_plus_email_manualCounts'] = (isset($option4['sfsi_plus_email_manualCounts']))
|
20 |
-
? intval($option4['sfsi_plus_email_manualCounts'])
|
21 |
-
: '';
|
22 |
-
$option4['sfsi_plus_rss_countsDisplay'] = (isset($option4['sfsi_plus_rss_countsDisplay']))
|
23 |
-
? sanitize_text_field($option4['sfsi_plus_rss_countsDisplay'])
|
24 |
-
: '';
|
25 |
-
$option4['sfsi_plus_rss_manualCounts'] = (isset($option4['sfsi_plus_rss_manualCounts']))
|
26 |
-
? intval($option4['sfsi_plus_rss_manualCounts'])
|
27 |
-
: '';
|
28 |
-
$option4['sfsi_plus_email_countsDisplay'] = (isset($option4['sfsi_plus_email_countsDisplay']))
|
29 |
-
? sanitize_text_field($option4['sfsi_plus_email_countsDisplay'])
|
30 |
-
: '';
|
31 |
-
|
32 |
-
$option4['sfsi_plus_facebook_countsDisplay'] = (isset($option4['sfsi_plus_facebook_countsDisplay']))
|
33 |
-
? sanitize_text_field($option4['sfsi_plus_facebook_countsDisplay'])
|
34 |
-
: '';
|
35 |
-
$option4['sfsi_plus_facebook_countsFrom'] = (isset($option4['sfsi_plus_facebook_countsFrom']))
|
36 |
-
? sanitize_text_field($option4['sfsi_plus_facebook_countsFrom'])
|
37 |
-
: '';
|
38 |
-
$option4['sfsi_plus_facebook_mypageCounts'] = (isset($option4['sfsi_plus_facebook_mypageCounts']))
|
39 |
-
? sfsi_plus_sanitize_field($option4['sfsi_plus_facebook_mypageCounts'])
|
40 |
-
: '';
|
41 |
-
$option4['sfsi_plus_facebook_manualCounts'] = (isset($option4['sfsi_plus_facebook_manualCounts']))
|
42 |
-
? intval($option4['sfsi_plus_facebook_manualCounts'])
|
43 |
-
: '';
|
44 |
-
|
45 |
-
|
46 |
-
$option4['sfsi_plus_twitter_countsDisplay'] = (isset($option4['sfsi_plus_twitter_countsDisplay']))
|
47 |
-
? sanitize_text_field($option4['sfsi_plus_twitter_countsDisplay'])
|
48 |
-
: '';
|
49 |
-
$option4['sfsi_plus_twitter_countsFrom'] = (isset($option4['sfsi_plus_twitter_countsFrom']))
|
50 |
-
? sanitize_text_field($option4['sfsi_plus_twitter_countsFrom'])
|
51 |
-
: '';
|
52 |
-
$option4['sfsi_plus_twitter_manualCounts'] = (isset($option4['sfsi_plus_twitter_manualCounts']))
|
53 |
-
? intval($option4['sfsi_plus_twitter_manualCounts'])
|
54 |
-
: '';
|
55 |
-
$option4['sfsiplus_tw_consumer_key'] = (isset($option4['sfsiplus_tw_consumer_key']))
|
56 |
-
? sfsi_plus_sanitize_field($option4['sfsiplus_tw_consumer_key'])
|
57 |
-
: '';
|
58 |
-
$option4['sfsiplus_tw_consumer_secret'] = (isset($option4['sfsiplus_tw_consumer_secret']))
|
59 |
-
? sfsi_plus_sanitize_field($option4['sfsiplus_tw_consumer_secret'])
|
60 |
-
: '';
|
61 |
-
$option4['sfsiplus_tw_oauth_access_token'] = (isset($option4['sfsiplus_tw_oauth_access_token']))
|
62 |
-
? sfsi_plus_sanitize_field($option4['sfsiplus_tw_oauth_access_token'])
|
63 |
-
: '';
|
64 |
-
$option4['sfsiplus_tw_oauth_access_token_secret']= (isset($option4['sfsiplus_tw_oauth_access_token_secret']))
|
65 |
-
? sfsi_plus_sanitize_field($option4['sfsiplus_tw_oauth_access_token_secret'])
|
66 |
-
: '';
|
67 |
-
$option4['sfsi_plus_youtube_countsDisplay'] = (isset($option4['sfsi_plus_youtube_countsDisplay']))
|
68 |
-
? sanitize_text_field($option4['sfsi_plus_youtube_countsDisplay'])
|
69 |
-
: '';
|
70 |
-
$option4['sfsi_plus_youtube_countsFrom'] = (isset($option4['sfsi_plus_youtube_countsFrom']))
|
71 |
-
? sanitize_text_field($option4['sfsi_plus_youtube_countsFrom'])
|
72 |
-
: '';
|
73 |
-
$option4['sfsi_plus_youtubeusernameorid'] = (isset($option4['sfsi_plus_youtubeusernameorid']))
|
74 |
-
? sanitize_text_field($option4['sfsi_plus_youtubeusernameorid'])
|
75 |
-
: '';
|
76 |
-
$option4['sfsi_plus_youtube_manualCounts'] = (isset($option4['sfsi_plus_youtube_manualCounts']))
|
77 |
-
? intval($option4['sfsi_plus_youtube_manualCounts'])
|
78 |
-
: '';
|
79 |
-
$option4['sfsi_plus_youtube_user'] = (isset($option4['sfsi_plus_youtube_user']))
|
80 |
-
? sfsi_plus_sanitize_field($option4['sfsi_plus_youtube_user'])
|
81 |
-
: '';
|
82 |
-
$option4['sfsi_plus_youtube_channelId'] = (isset($option4['sfsi_plus_youtube_channelId']))
|
83 |
-
? sfsi_plus_sanitize_field($option4['sfsi_plus_youtube_channelId'])
|
84 |
-
: '';
|
85 |
-
|
86 |
-
$option4['sfsi_plus_instagram_manualCounts'] = (isset($option4['sfsi_plus_instagram_manualCounts']))
|
87 |
-
? intval($option4['sfsi_plus_instagram_manualCounts'])
|
88 |
-
: '';
|
89 |
-
$option4['sfsi_plus_instagram_User'] = (isset($option4['sfsi_plus_instagram_User']))
|
90 |
-
? sfsi_plus_sanitize_field($option4['sfsi_plus_instagram_User'])
|
91 |
-
: '';
|
92 |
-
$option4['sfsi_plus_instagram_clientid'] = (isset($option4['sfsi_plus_instagram_clientid']))
|
93 |
-
? sfsi_plus_sanitize_field($option4['sfsi_plus_instagram_clientid'])
|
94 |
-
: '';
|
95 |
-
$option4['sfsi_plus_instagram_appurl'] = (isset($option4['sfsi_plus_instagram_appurl']))
|
96 |
-
? sfsi_plus_sanitize_field($option4['sfsi_plus_instagram_appurl'])
|
97 |
-
: '';
|
98 |
-
$option4['sfsi_plus_instagram_token'] = (isset($option4['sfsi_plus_instagram_token']))
|
99 |
-
? sfsi_plus_sanitize_field($option4['sfsi_plus_instagram_token'])
|
100 |
-
: '';
|
101 |
-
$option4['sfsi_plus_instagram_countsFrom'] = (isset($option4['sfsi_plus_instagram_countsFrom']))
|
102 |
-
? sanitize_text_field($option4['sfsi_plus_instagram_countsFrom'])
|
103 |
-
: '';
|
104 |
-
$option4['sfsi_plus_instagram_countsDisplay'] = (isset($option4['sfsi_plus_instagram_countsDisplay']))
|
105 |
-
? sanitize_text_field($option4['sfsi_plus_instagram_countsDisplay'])
|
106 |
-
: '';
|
107 |
-
|
108 |
-
$option4['sfsi_plus_linkedIn_manualCounts'] = (isset($option4['sfsi_plus_linkedIn_manualCounts']))
|
109 |
-
? intval($option4['sfsi_plus_linkedIn_manualCounts'])
|
110 |
-
: '';
|
111 |
-
$option4['sfsi_plus_houzz_manualCounts'] = (isset($option4['sfsi_plus_houzz_manualCounts']))
|
112 |
-
? intval($option4['sfsi_plus_houzz_manualCounts'])
|
113 |
-
: '';
|
114 |
-
$option4['sfsi_plus_pinterest_manualCounts'] = (isset($option4['sfsi_plus_pinterest_manualCounts']))
|
115 |
-
? intval($option4['sfsi_plus_pinterest_manualCounts'])
|
116 |
-
: '';
|
117 |
-
$option4['sfsi_plus_premium_count_box'] = (isset($option4['sfsi_plus_premium_count_box']))
|
118 |
-
? sanitize_text_field($option4['sfsi_plus_premium_count_box'])
|
119 |
-
: 'yes';
|
120 |
-
$option4['sfsi_plus_telegram_countsDisplay'] = (isset($option4['sfsi_plus_telegram_countsDisplay']))
|
121 |
-
? sanitize_text_field($option4['sfsi_plus_telegram_countsDisplay'])
|
122 |
-
: '';
|
123 |
-
$option4['sfsi_plus_telegram_manualCounts'] = (isset($option4['sfsi_plus_telegram_manualCounts']))
|
124 |
-
? intval($option4['sfsi_plus_telegram_manualCounts'])
|
125 |
-
: '';
|
126 |
-
$option4['sfsi_plus_vk_countsDisplay'] = (isset($option4['sfsi_plus_vk_countsDisplay']))
|
127 |
-
? sanitize_text_field($option4['sfsi_plus_vk_countsDisplay'])
|
128 |
-
: '';
|
129 |
-
$option4['sfsi_plus_vk_manualCounts'] = (isset($option4['sfsi_plus_vk_manualCounts']))
|
130 |
-
? intval($option4['sfsi_plus_vk_manualCounts'])
|
131 |
-
: '';
|
132 |
-
|
133 |
-
$option4['sfsi_plus_ok_countsDisplay'] = (isset($option4['sfsi_plus_ok_countsDisplay']))
|
134 |
-
? sanitize_text_field($option4['sfsi_plus_ok_countsDisplay'])
|
135 |
-
: '';
|
136 |
-
$option4['sfsi_plus_ok_manualCounts'] = (isset($option4['sfsi_plus_ok_manualCounts']))
|
137 |
-
? intval($option4['sfsi_plus_ok_manualCounts'])
|
138 |
-
: '';
|
139 |
-
|
140 |
-
$option4['sfsi_plus_weibo_countsDisplay'] = (isset($option4['sfsi_plus_weibo_countsDisplay']))
|
141 |
-
? sanitize_text_field($option4['sfsi_plus_weibo_countsDisplay'])
|
142 |
-
: '';
|
143 |
-
$option4['sfsi_plus_weibo_manualCounts'] = (isset($option4['sfsi_plus_weibo_manualCounts']))
|
144 |
-
? intval($option4['sfsi_plus_weibo_manualCounts'])
|
145 |
-
: '';
|
146 |
-
|
147 |
-
$option4['sfsi_plus_wechat_countsDisplay'] = (isset($option4['sfsi_plus_wechat_countsDisplay']))
|
148 |
-
? sanitize_text_field($option4['sfsi_plus_wechat_countsDisplay'])
|
149 |
-
: '';
|
150 |
-
$option4['sfsi_plus_wechat_manualCounts'] = (isset($option4['sfsi_plus_wechat_manualCounts']))
|
151 |
-
? intval($option4['sfsi_plus_wechat_manualCounts'])
|
152 |
-
: '';
|
153 |
-
$counts = sfsi_plus_getCounts();
|
154 |
-
/* fetch counts for admin sections */
|
155 |
-
|
156 |
-
/* check for email icon display */
|
157 |
-
$email_image="email.png";
|
158 |
-
if($option2['sfsi_plus_rss_icons']=="sfsi")
|
159 |
-
{
|
160 |
-
$email_image="sf_arow_icn.png";
|
161 |
-
}
|
162 |
-
elseif($option2['sfsi_plus_rss_icons']=="email")
|
163 |
-
{
|
164 |
-
$email_image="email.png";
|
165 |
-
}
|
166 |
-
else
|
167 |
-
{
|
168 |
-
$email_image = "subscribe.png";
|
169 |
-
}
|
170 |
-
$hide="display:none;";
|
171 |
-
?>
|
172 |
-
<!-- Section 4 "Do you want to display "counts" next to your icons?" main div Start -->
|
173 |
-
<div class="tab4">
|
174 |
-
|
175 |
-
<div class="sfsi_plus_versionNotification">
|
176 |
-
<?php sfsi_plus_curl_error_notification(); ?>
|
177 |
-
</div>
|
178 |
-
|
179 |
-
<p>
|
180 |
-
<?php _e('It’s a psychological fact that people like to follow other people, so when they see that your site has already a good number of Facebook likes, it’s more likely that they will subscribe/like/share your site than if it had 0.', SFSI_PLUS_DOMAIN ); ?>
|
181 |
-
</p>
|
182 |
-
<p>
|
183 |
-
<?php _e( 'Therefore, you can select to display the count next to your icons which will look like this:', SFSI_PLUS_DOMAIN ); ?>
|
184 |
-
</p>
|
185 |
-
|
186 |
-
<!-- sample icons -->
|
187 |
-
<ul class="like_icon">
|
188 |
-
<li class="sfsiplus_rss_section">
|
189 |
-
<a href="#" title="RSS">
|
190 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/rss.png" alt="RSS" />
|
191 |
-
</a><span>12k</span>
|
192 |
-
</li>
|
193 |
-
<li class="sfsiplus_email_section">
|
194 |
-
<a href="#" title="Email">
|
195 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/<?php echo $email_image; ?>" alt="Email" class="icon_img" />
|
196 |
-
</a><span>12k</span>
|
197 |
-
</li>
|
198 |
-
<li class="sfsiplus_facebook_section">
|
199 |
-
<a href="#" title="Facebook">
|
200 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/fb.png" alt="Facebook" />
|
201 |
-
</a><span>12k</span>
|
202 |
-
</li>
|
203 |
-
<li class="sfsiplus_twitter_section">
|
204 |
-
<a href="#" title="Twitter">
|
205 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/twitter.png" alt="Twitter" />
|
206 |
-
</a><span>12k</span>
|
207 |
-
</li>
|
208 |
-
<li class="sfsiplus_youtube_section">
|
209 |
-
<a href="#" title="YouTube">
|
210 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/youtube.png" alt="YouTube" />
|
211 |
-
</a><span>12k</span>
|
212 |
-
</li>
|
213 |
-
<li class="sfsiplus_pinterest_section">
|
214 |
-
<a href="#" title="Pinterest">
|
215 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/pinterest.png" alt="Pinterest" />
|
216 |
-
</a><span>12k</span>
|
217 |
-
</li>
|
218 |
-
<li class="sfsiplus_linkedin_section">
|
219 |
-
<a href="#" title="Linked In">
|
220 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/linked_in.png" alt="Linked In" />
|
221 |
-
</a><span>12k</span>
|
222 |
-
</li>
|
223 |
-
<li class="sfsiplus_instagram_section">
|
224 |
-
<a href="#" title="Instagram">
|
225 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/instagram.png" alt="instagram" />
|
226 |
-
</a><span>12k</span>
|
227 |
-
</li>
|
228 |
-
<li class="sfsiplus_houzz_section">
|
229 |
-
<a href="#" title="Houzz">
|
230 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/houzz.png" alt="instagram" />
|
231 |
-
</a><span>12k</span>
|
232 |
-
</li>
|
233 |
-
<!--MZ CODE START-->
|
234 |
-
<li class="sfsiplus_telegram_section">
|
235 |
-
<a href="#" title="Telegram">
|
236 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/telegram.png" alt="Telegram" />
|
237 |
-
</a><span>12k</span>
|
238 |
-
</li>
|
239 |
-
|
240 |
-
<li class="sfsiplus_vk_section">
|
241 |
-
<a href="#" title="Vk">
|
242 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/vk.png" alt="Telegram" />
|
243 |
-
</a><span>12k</span>
|
244 |
-
</li>
|
245 |
-
<li class="sfsiplus_ok_section">
|
246 |
-
<a href="#" title="Ok">
|
247 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/icons_theme/default/default_ok.png" alt="Ok" width="50px" height="50px" />
|
248 |
-
</a><span>12k</span>
|
249 |
-
</li>
|
250 |
-
<li class="sfsiplus_weibo_section">
|
251 |
-
<a href="#" title="Weibo">
|
252 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/weibo.png" alt="Weibo" width="50px" height="50px" />
|
253 |
-
</a><span>12k</span>
|
254 |
-
</li>
|
255 |
-
<li class="sfsiplus_wechat_section">
|
256 |
-
<a href="#" title="Wechat">
|
257 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/wechat.png" alt="Weibo" width="50px" height="50px" />
|
258 |
-
</a><span>12k</span>
|
259 |
-
</li>
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
</ul> <!-- END sample icons -->
|
264 |
-
<p>
|
265 |
-
<?php _e( 'Of course, if you start at 0, you shoot yourself in the foot with that. So we suggest that you only turn this feature on once you have a good number of followers/likes/shares (min. of 20 – no worries if it’s not too many, it should just not be 0).', SFSI_PLUS_DOMAIN ); ?>
|
266 |
-
</p>
|
267 |
-
<h4>
|
268 |
-
<?php _e( 'Enough waffling. So do you want to display counts?', SFSI_PLUS_DOMAIN ); ?>
|
269 |
-
</h4>
|
270 |
-
<!-- show/hide counts for icons section START -->
|
271 |
-
<ul class="enough_waffling">
|
272 |
-
<li>
|
273 |
-
<input name="sfsi_plus_display_counts" <?php echo ($option4['sfsi_plus_display_counts']=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" />
|
274 |
-
<label>
|
275 |
-
<?php _e( 'Yes', SFSI_PLUS_DOMAIN ); ?>
|
276 |
-
</label>
|
277 |
-
</li>
|
278 |
-
<li>
|
279 |
-
<input name="sfsi_plus_display_counts" <?php echo ($option4['sfsi_plus_display_counts']=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled" />
|
280 |
-
<label>
|
281 |
-
<?php _e( 'No', SFSI_PLUS_DOMAIN ); ?>
|
282 |
-
</label>
|
283 |
-
</li>
|
284 |
-
</ul>
|
285 |
-
<!-- END show/hide counts for icons section -->
|
286 |
-
<!-- show/hide counts for all icons section START -->
|
287 |
-
<div class="sfsiplus_count_sections" style="display:none">
|
288 |
-
<h4>
|
289 |
-
<?php _e( 'Please specify which counts should be shown:', SFSI_PLUS_DOMAIN ); ?>
|
290 |
-
</h4>
|
291 |
-
|
292 |
-
<!-- RSS ICON COUNT SECTION-->
|
293 |
-
<div class="sfsiplus_specify_counts sfsiplus_rss_section">
|
294 |
-
<div class="radio_section">
|
295 |
-
<input name="sfsi_plus_rss_countsDisplay" <?php echo ($option4['sfsi_plus_rss_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
296 |
-
</div>
|
297 |
-
<div class="social_icon_like">
|
298 |
-
<ul class="like_icon">
|
299 |
-
<li>
|
300 |
-
<a title="RSS">
|
301 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/rss.png" alt="RSS" />
|
302 |
-
<span><?php echo $counts['rss_count']; ?></span>
|
303 |
-
</a>
|
304 |
-
</li>
|
305 |
-
</ul>
|
306 |
-
</div>
|
307 |
-
<div class="listing">
|
308 |
-
<ul>
|
309 |
-
<li>
|
310 |
-
<?php
|
311 |
-
_e('We cannot track this. So enter the figure here:',SFSI_PLUS_DOMAIN); ?>
|
312 |
-
<input name="sfsi_plus_rss_manualCounts" type="text" class="input" value="<?php echo ($option4['sfsi_plus_rss_manualCounts']!='') ? $option4['sfsi_plus_rss_manualCounts'] : '' ;?>" />
|
313 |
-
</li>
|
314 |
-
</ul>
|
315 |
-
</div>
|
316 |
-
</div>
|
317 |
-
<!-- END RSS ICON COUNT SECTION-->
|
318 |
-
|
319 |
-
<!-- EMAIL ICON COUNT SECTION-->
|
320 |
-
<div class="sfsiplus_specify_counts sfsiplus_email_section">
|
321 |
-
<div class="radio_section">
|
322 |
-
<input name="sfsi_plus_email_countsDisplay" <?php echo ($option4['sfsi_plus_email_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
323 |
-
</div>
|
324 |
-
<div class="social_icon_like">
|
325 |
-
<ul class="like_icon">
|
326 |
-
<li>
|
327 |
-
<a title="Email">
|
328 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/<?php echo $email_image; ?>" alt="Email" />
|
329 |
-
<span><?php echo $counts['email_count']; ?></span>
|
330 |
-
</a>
|
331 |
-
</li>
|
332 |
-
</ul>
|
333 |
-
</div>
|
334 |
-
<div class="listing">
|
335 |
-
<ul>
|
336 |
-
<li>
|
337 |
-
<input name="sfsi_plus_email_countsFrom" <?php echo ($option4['sfsi_plus_email_countsFrom']=='source') ? 'checked="true"' : '' ;?> type="radio" value="source" class="styled" />
|
338 |
-
<?php
|
339 |
-
_e('Retrieve the number of subscribers automatically', SFSI_PLUS_DOMAIN); ?>
|
340 |
-
</li>
|
341 |
-
<li>
|
342 |
-
<input name="sfsi_plus_email_countsFrom" <?php echo ($option4['sfsi_plus_email_countsFrom']=='manual') ? 'checked="true"' : '' ;?> type="radio" value="manual" class="styled" />
|
343 |
-
<?php _e( 'Enter the figure manually', SFSI_PLUS_DOMAIN ); ?>
|
344 |
-
<input name="sfsi_plus_email_manualCounts" type="text" class="input" value="<?php echo ($option4['sfsi_plus_email_manualCounts']!='') ? $option4['sfsi_plus_email_manualCounts'] : '' ;?>" style="<?php echo ($option4['sfsi_plus_email_countsFrom']=='source') ? 'display:none;' : '' ;?>" />
|
345 |
-
</li>
|
346 |
-
</ul>
|
347 |
-
</div>
|
348 |
-
</div>
|
349 |
-
<!--END EMAIL ICON COUNT SECTION-->
|
350 |
-
|
351 |
-
<!-- FACEBOOK ICON COUNT SECTION-->
|
352 |
-
<div class="sfsiplus_specify_counts sfsiplus_facebook_section">
|
353 |
-
<div class="radio_section">
|
354 |
-
<input name="sfsi_plus_facebook_countsDisplay" <?php echo ($option4['sfsi_plus_facebook_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
355 |
-
</div>
|
356 |
-
<div class="social_icon_like">
|
357 |
-
<ul class="like_icon">
|
358 |
-
<li>
|
359 |
-
<a title="Facebook">
|
360 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/fb.png" alt="Facebook" />
|
361 |
-
<span><?php echo $counts['fb_count']; ?></span>
|
362 |
-
</a>
|
363 |
-
</li>
|
364 |
-
</ul>
|
365 |
-
</div>
|
366 |
-
<div class="listing">
|
367 |
-
<ul class="sfsi_plus_fb_popup_contain">
|
368 |
-
<li>
|
369 |
-
<input name="sfsi_plus_facebook_countsFrom" <?php echo ($option4['sfsi_plus_facebook_countsFrom']=='likes') ? 'checked="true"' : '' ;?> type="radio" value="likes" class="styled" />
|
370 |
-
<?php _e( 'Retrieve the number of likes of your blog', SFSI_PLUS_DOMAIN ); ?>
|
371 |
-
</li>
|
372 |
-
<li>
|
373 |
-
<input name="sfsi_plus_facebook_countsFrom" <?php echo ($option4['sfsi_plus_facebook_countsFrom']=='mypage') ? 'checked="true"' : '' ;?> type="radio" value="mypage" class="styled" />
|
374 |
-
<?php _e( 'Retrieve the number of likes of your Facebook page', SFSI_PLUS_DOMAIN ); ?>
|
375 |
-
<br>
|
376 |
-
<div class="sfsiplus_fbpgiddesc sfsi_plus_fbpaget">
|
377 |
-
<div class="sfsiplus_fbpgidwpr sfsi_plus_count" style="<?php echo ($option4['sfsi_plus_facebook_countsFrom']=='likes' || $option4['sfsi_plus_facebook_countsFrom']=='followers' || $option4['sfsi_plus_facebook_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
|
378 |
-
Facebook <?php _e( 'page ID:', SFSI_PLUS_DOMAIN ); ?>
|
379 |
-
</div>
|
380 |
-
<input name="sfsi_plus_facebook_mypageCounts" type="text" class="input mypginpt" value="<?php echo ($option4['sfsi_plus_facebook_mypageCounts']!='') ? $option4['sfsi_plus_facebook_mypageCounts'] : '' ;?>" style="<?php echo ($option4['sfsi_plus_facebook_countsFrom']=='likes' || $option4['sfsi_plus_facebook_countsFrom']=='followers' || $option4['sfsi_plus_facebook_countsFrom']=='manual') ? 'display:none;' : '' ;?>" />
|
381 |
-
</div>
|
382 |
-
<div class="sfsiplus_fbpgidwpr sfsiplus_fbpgiddesc sfsi_plus_facebook_count" style="<?php echo ($option4['sfsi_plus_facebook_countsFrom']=='likes' || $option4['sfsi_plus_facebook_countsFrom']=='followers' || $option4['sfsi_plus_facebook_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
|
383 |
-
(<?php _e( "You'll find it at the bottom of the << About >> -tab on your Facebook page", SFSI_PLUS_DOMAIN ); ?>)
|
384 |
-
</div>
|
385 |
-
</li>
|
386 |
-
<li>
|
387 |
-
<input name="sfsi_plus_facebook_countsFrom" <?php echo ($option4['sfsi_plus_facebook_countsFrom']=='manual') ? 'checked="true"' : '' ;?> type="radio" value="manual" class="styled" />
|
388 |
-
<?php _e( 'Enter the figure manually', SFSI_PLUS_DOMAIN ); ?>
|
389 |
-
<input name="sfsi_plus_facebook_manualCounts" type="text" class="input" value="<?php echo ($option4['sfsi_plus_facebook_manualCounts']!='') ? $option4['sfsi_plus_facebook_manualCounts'] : '' ;?>" style="<?php echo ($option4['sfsi_plus_facebook_countsFrom']=='likes' || $option4['sfsi_plus_facebook_countsFrom']=='followers' || $option4['sfsi_plus_facebook_countsFrom']=='mypage') ? 'display:none;' : '' ;?>" />
|
390 |
-
</li>
|
391 |
-
</ul>
|
392 |
-
<?php if($option4['sfsi_plus_premium_count_box'] =='yes') { ?>
|
393 |
-
<div class="sfsi_plus_facebook_pagedeasc" style="<?php echo (isset($option4['sfsi_plus_facebook_countsFrom']) && $option4['sfsi_plus_facebook_countsFrom'] =='manual') ? 'display:none;' : '' ;?>">
|
394 |
-
<p class="sfsi_plus_shared_premium">
|
395 |
-
<b><?php _e( 'Note: ', SFSI_PLUS_DOMAIN ); ?></b><?php _e( 'This plugin uses one API shared by all users of this plugin. There is a limit (set by Facebook) how often this API can get the counts per day, so it may happen that it returns “0 counts” later in the day.', SFSI_PLUS_DOMAIN ); ?><br><br><?php _e( 'Therefore we implemented a solution as part of our Premium Plugin where you can easily set up your own API in a few steps, which will fix this problem.', SFSI_PLUS_DOMAIN ); ?><br><br><a class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" style="cursor:pointer;border-bottom: 1px solid #12a252;color: #12a252 !important;" target="_blank">Go premium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=facebook_counts&utm_medium=banner" class="sfsi_plus_font_inherit" style="color: #12a252 !important" target="_blank"> or learn more</a>
|
396 |
-
</p>
|
397 |
-
</div>
|
398 |
-
<?php } ?>
|
399 |
-
</div>
|
400 |
-
</div>
|
401 |
-
<!-- END FACEBOOK ICON COUNT SECTION-->
|
402 |
-
|
403 |
-
<!-- TWITTER ICON COUNT SECTION-->
|
404 |
-
<div class="sfsiplus_specify_counts sfsiplus_twitter_section">
|
405 |
-
<div class="radio_section">
|
406 |
-
<input name="sfsi_plus_twitter_countsDisplay" <?php echo ($option4['sfsi_plus_twitter_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
407 |
-
</div>
|
408 |
-
<div class="social_icon_like">
|
409 |
-
<ul class="like_icon">
|
410 |
-
<li>
|
411 |
-
<a title="Twitter">
|
412 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/twitter.png" alt="Twitter" />
|
413 |
-
<span><?php echo $counts['twitter_count']; ?></span>
|
414 |
-
</a>
|
415 |
-
</li>
|
416 |
-
</ul>
|
417 |
-
</div>
|
418 |
-
<div class="listing">
|
419 |
-
<ul>
|
420 |
-
<li>
|
421 |
-
<input name="sfsi_plus_twitter_countsFrom" <?php echo ($option4['sfsi_plus_twitter_countsFrom']=='source') ? 'checked="true"' : '' ;?> type="radio" value="source" class="styled" />
|
422 |
-
<?php _e( 'Retrieve the number of Twitter followers', SFSI_PLUS_DOMAIN ); ?>
|
423 |
-
</li>
|
424 |
-
<li class="SFSI_tglli">
|
425 |
-
<ul class="SFSI_lsngfrm">
|
426 |
-
<li class="tw_follow_options" style="<?php echo ($option4['sfsi_plus_twitter_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
|
427 |
-
<label>
|
428 |
-
<?php _e( 'Enter Consumer Key', SFSI_PLUS_DOMAIN ); ?>
|
429 |
-
</label>
|
430 |
-
<input name="sfsiplus_tw_consumer_key" class="input_facebook" type="text" value="<?php echo (isset($
|
431 |
-
</li>
|
432 |
-
<li class="tw_follow_options" style="<?php echo ($option4['sfsi_plus_twitter_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
|
433 |
-
<label>
|
434 |
-
<?php _e( 'Enter Consumer Secret', SFSI_PLUS_DOMAIN ); ?>
|
435 |
-
</label>
|
436 |
-
<input name="sfsiplus_tw_consumer_secret" class="input_facebook" type="text" value="<?php echo (isset($option4['sfsiplus_tw_consumer_secret']) && $option4['sfsiplus_tw_consumer_secret']!='') ? $option4['sfsiplus_tw_consumer_secret'] : '' ;?>" />
|
437 |
-
</li>
|
438 |
-
<li class="tw_follow_options" style="<?php echo ($option4['sfsi_plus_twitter_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
|
439 |
-
<label>
|
440 |
-
<?php _e( 'Enter Access Token', SFSI_PLUS_DOMAIN ); ?>
|
441 |
-
</label>
|
442 |
-
<input name="sfsiplus_tw_oauth_access_token" class="input_facebook" type="text" value="<?php echo (isset($option4['sfsiplus_tw_oauth_access_token']) && $option4['sfsiplus_tw_oauth_access_token']!='') ? $option4['sfsiplus_tw_oauth_access_token'] : '' ;?>" />
|
443 |
-
</li>
|
444 |
-
<li class="tw_follow_options" style="<?php echo ($option4['sfsi_plus_twitter_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
|
445 |
-
<label>
|
446 |
-
<?php _e( 'Enter Access Token Secret', SFSI_PLUS_DOMAIN ); ?>
|
447 |
-
</label>
|
448 |
-
<input name="sfsiplus_tw_oauth_access_token_secret" class="input_facebook" type="text" value="<?php echo (isset($option4['sfsiplus_tw_oauth_access_token_secret']) && $option4['sfsiplus_tw_oauth_access_token_secret']!='') ? $option4['sfsiplus_tw_oauth_access_token_secret'] : '' ;?>" />
|
449 |
-
</li>
|
450 |
-
</ul>
|
451 |
-
<ul class="SFSI_instructions">
|
452 |
-
<li class="tw_follow_options" style="<?php echo ($option4['sfsi_plus_twitter_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
|
453 |
-
<?php _e( 'Please make sure you have entered the Username for "Follow me on Twitter:" in twitter settings under question number 2.', SFSI_PLUS_DOMAIN ); ?>
|
454 |
-
</li>
|
455 |
-
<li class="tw_follow_options" style="<?php echo ($option4['sfsi_plus_twitter_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
|
456 |
-
<h3>
|
457 |
-
<?php _e( 'To get this information:', SFSI_PLUS_DOMAIN ); ?>
|
458 |
-
</h3>
|
459 |
-
</li>
|
460 |
-
<li class="tw_follow_options" style="<?php echo ($option4['sfsi_plus_twitter_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
|
461 |
-
1: <?php _e( 'Go to', SFSI_PLUS_DOMAIN ); ?>
|
462 |
-
<a href="https://apps.twitter.com" target="_blank">
|
463 |
-
apps.twitter.com
|
464 |
-
</a>
|
465 |
-
</li>
|
466 |
-
<li class="tw_follow_options" style="<?php echo ($option4['sfsi_plus_twitter_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
|
467 |
-
2: <?php _e( 'Click on "Create new app"', SFSI_PLUS_DOMAIN ); ?>
|
468 |
-
</li>
|
469 |
-
<li class="tw_follow_options" style="<?php echo ($option4['sfsi_plus_twitter_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
|
470 |
-
3: <?php _e( 'Enter a random Name, Description and Website URL (including the "http://", e.g. http://dummysitename.com)', SFSI_PLUS_DOMAIN ); ?>
|
471 |
-
</li>
|
472 |
-
<li class="tw_follow_options" style="<?php echo ($option4['sfsi_plus_twitter_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
|
473 |
-
4: <?php _e( 'Go to "Keys and Access Tokens" tab and click on "Generate Token" in the "Token actions" section at the bottom', SFSI_PLUS_DOMAIN ); ?>
|
474 |
-
</li>
|
475 |
-
<li class="tw_follow_options" style="<?php echo ($option4['sfsi_plus_twitter_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
|
476 |
-
5: <?php _e('Then click on "Test OAuth" at the top right and you will see the 4 token key',SFSI_PLUS_DOMAIN ); ?>
|
477 |
-
</li>
|
478 |
-
</ul>
|
479 |
-
</li>
|
480 |
-
<li>
|
481 |
-
<input name="sfsi_plus_twitter_countsFrom" <?php echo ($option4['sfsi_plus_twitter_countsFrom']=='manual') ? 'checked="true"' : '' ;?> type="radio" value="manual" class="styled" />
|
482 |
-
<?php _e( 'Enter the figure manually', SFSI_PLUS_DOMAIN ); ?>
|
483 |
-
<input name="sfsi_plus_twitter_manualCounts" type="text" class="input" value="<?php echo ($option4['sfsi_plus_twitter_manualCounts']!='') ? $option4['sfsi_plus_twitter_manualCounts'] : '' ;?>" style="<?php echo ($option4['sfsi_plus_twitter_countsFrom']=='source') ? 'display:none;' : '' ;?>" />
|
484 |
-
</li>
|
485 |
-
</ul>
|
486 |
-
</div>
|
487 |
-
</div>
|
488 |
-
<!--END TWITTER ICON COUNT SECTION-->
|
489 |
-
|
490 |
-
<!-- LINKEDIN ICON COUNT SECTION-->
|
491 |
-
<div class="sfsiplus_specify_counts sfsiplus_linkedin_section">
|
492 |
-
<div class="radio_section">
|
493 |
-
<input name="sfsi_plus_linkedIn_countsDisplay" <?php echo ($option4['sfsi_plus_linkedIn_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
494 |
-
</div>
|
495 |
-
<div class="social_icon_like">
|
496 |
-
<ul class="like_icon">
|
497 |
-
<li>
|
498 |
-
<a title="Linked in">
|
499 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/linked_in.png" alt="Linked in" />
|
500 |
-
<span><?php echo $counts['linkedIn_count']; ?></span>
|
501 |
-
</a>
|
502 |
-
</li>
|
503 |
-
</ul>
|
504 |
-
</div>
|
505 |
-
|
506 |
-
<div class="listing">
|
507 |
-
<ul>
|
508 |
-
<?php /*?><li><input name="sfsi_plus_linkedIn_countsFrom" <?php echo ($option4['sfsi_plus_linkedIn_countsFrom']=='follower') ? 'checked="true"' : '' ;?> type="radio" value="follower" class="styled" />Retrieve the number of Linkedin followers</li>
|
509 |
-
<li class="SFSI_tglli">
|
510 |
-
<ul class="SFSI_lsngfrm">
|
511 |
-
<li class="linkedIn_options" style="<?php echo ($option4['sfsi_plus_linkedIn_countsFrom']=='manual') ? 'display:none;' : '' ;?>"><label>Enter Company Name </label><input name="sfsi_plus_ln_company" class="input_facebook" type="text" value="<?php echo (isset($option4['sfsi_plus_ln_company']) && $option4['sfsi_plus_ln_company']!='') ? $option4['sfsi_plus_ln_company'] : '' ;?>" /> </li>
|
512 |
-
<li class="linkedIn_options" style="<?php echo ($option4['sfsi_plus_linkedIn_countsFrom']=='manual') ? 'display:none;' : '' ;?>"><label>Enter API Key </label><input name="sfsi_plus_ln_api_key" class="input_facebook" type="text" value="<?php echo (isset($option4['sfsi_plus_ln_api_key']) && $option4['sfsi_plus_ln_api_key']!='') ? $option4['sfsi_plus_ln_api_key'] : '' ;?>" /> </li>
|
513 |
-
<li class="linkedIn_options" style="<?php echo ($option4['sfsi_plus_linkedIn_countsFrom']=='manual') ? 'display:none;' : '' ;?>"><label>Enter Secret Key </label><input name="sfsi_plus_ln_secret_key" class="input_facebook" type="text" value="<?php echo (isset($option4['sfsi_plus_ln_secret_key']) && $option4['sfsi_plus_ln_secret_key']!='') ? $option4['sfsi_plus_ln_secret_key'] : '' ;?>" /> </li>
|
514 |
-
<li class="linkedIn_options" style="<?php echo ($option4['sfsi_plus_linkedIn_countsFrom']=='manual') ? 'display:none;' : '' ;?>" ><label>Enter OAuth User Token</label> <input name="sfsi_plus_ln_oAuth_user_token" class="input_facebook" type="text" value="<?php echo (isset($option4['sfsi_plus_ln_oAuth_user_token']) && $option4['sfsi_plus_ln_oAuth_user_token']!='') ? $option4['sfsi_plus_ln_oAuth_user_token'] : '' ;?>" /> </li>
|
515 |
-
</ul>
|
516 |
-
<ul class="SFSI_instructions">
|
517 |
-
<li class="linkedIn_options" style="<?php echo ($option4['sfsi_plus_linkedIn_countsFrom']=='manual') ? 'display:none;' : '' ;?>"><h3>To get the API key for LinkedIn:</h3></li>
|
518 |
-
<li class="linkedIn_options" style="<?php echo ($option4['sfsi_plus_linkedIn_countsFrom']=='manual') ? 'display:none;' : '' ;?>">1: Go to <a href="https://developer.linkedin.com/" target="_blank">www.developer.linkedin.com</a>, mouse over “Support” and select “API keys”</li>
|
519 |
-
<li class="linkedIn_options" style="<?php echo ($option4['sfsi_plus_linkedIn_countsFrom']=='manual') ? 'display:none;' : '' ;?>">2: Then login with your Linkedin account and create a new application</li>
|
520 |
-
<li class="linkedIn_options" style="<?php echo ($option4['sfsi_plus_linkedIn_countsFrom']=='manual') ? 'display:none;' : '' ;?>">3: Fill the required boxes in the form with random data, accept the Terms and add the application</li>
|
521 |
-
<li class="linkedIn_options" style="<?php echo ($option4['sfsi_plus_linkedIn_countsFrom']=='manual') ? 'display:none;' : '' ;?>">4: In the next step you will see the required API information</li>
|
522 |
-
<li class="linkedIn_options" style="<?php echo ($option4['sfsi_plus_linkedIn_countsFrom']=='manual') ? 'display:none;' : '' ;?>">When you enter this key into the plugin for the first time, it may take some time until the correct follower count is displayed on your website.</li>
|
523 |
-
</ul>
|
524 |
-
</li><?php */?>
|
525 |
-
<li>
|
526 |
-
<input name="sfsi_plus_linkedIn_countsFrom" <?php echo ($option4['sfsi_plus_linkedIn_countsFrom']=='manual' || $option4['sfsi_plus_linkedIn_countsFrom']=='follower') ? 'checked="true"' : '' ;?> type="radio" value="manual" class="styled" />
|
527 |
-
<?php _e( 'Enter the figure manually', SFSI_PLUS_DOMAIN ); ?>
|
528 |
-
<input name="sfsi_plus_linkedIn_manualCounts" type="text" class="input" value="<?php echo ($option4['sfsi_plus_linkedIn_manualCounts']!='') ? $option4['sfsi_plus_linkedIn_manualCounts'] : '' ;?>" style="<?php echo ($option4['sfsi_plus_linkedIn_countsFrom']=='follower') ? 'display:none;' : '' ;?>" />
|
529 |
-
</li>
|
530 |
-
</ul>
|
531 |
-
</div>
|
532 |
-
</div>
|
533 |
-
<!-- END LINKEDIN ICON COUNT SECTION-->
|
534 |
-
|
535 |
-
<!-- YOUTUBE ICON COUNT SECTION-->
|
536 |
-
<div class="sfsiplus_specify_counts sfsiplus_youtube_section">
|
537 |
-
<div class="radio_section">
|
538 |
-
<input name="sfsi_plus_youtube_countsDisplay" <?php echo ($option4['sfsi_plus_youtube_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
539 |
-
</div>
|
540 |
-
<div class="social_icon_like">
|
541 |
-
<ul class="like_icon">
|
542 |
-
<li>
|
543 |
-
<a title="YouTube">
|
544 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/youtube.png" alt="YouTube" />
|
545 |
-
<span><?php echo $counts['youtube_count']; ?></span>
|
546 |
-
</a>
|
547 |
-
</li>
|
548 |
-
</ul>
|
549 |
-
</div>
|
550 |
-
<div class="listing">
|
551 |
-
<ul>
|
552 |
-
<li>
|
553 |
-
<input name="sfsi_plus_youtube_countsFrom" type="radio" value="subscriber" <?php echo ($option4['sfsi_plus_youtube_countsFrom']=='subscriber') ? 'checked="true"' : '' ;?> class="styled" />
|
554 |
-
<?php _e( 'Retrieve the number of Subscribers', SFSI_PLUS_DOMAIN ); ?>
|
555 |
-
</li>
|
556 |
-
<li class="youtube_options" style="<?php echo ($option4['sfsi_plus_youtube_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
|
557 |
-
<div>
|
558 |
-
<label>
|
559 |
-
<?php _e( 'Enter Youtube User name', SFSI_PLUS_DOMAIN ); ?>
|
560 |
-
</label>
|
561 |
-
<input name="sfsi_plus_youtube_user" class="input_facebook" type="text" value="<?php echo (isset($option4['sfsi_plus_youtube_user']) && $option4['sfsi_plus_youtube_user']!='') ? $option4['sfsi_plus_youtube_user'] : '' ;?>"/>
|
562 |
-
</div>
|
563 |
-
|
564 |
-
<div>
|
565 |
-
<label>
|
566 |
-
<?php _e( 'Enter Youtube Channel id', SFSI_PLUS_DOMAIN ); ?>
|
567 |
-
</label>
|
568 |
-
<input name="sfsi_plus_youtube_channelId" class="input_facebook" type="text" value="<?php echo (isset($option4['sfsi_plus_youtube_channelId']) && $option4['sfsi_plus_youtube_channelId']!='') ? $option4['sfsi_plus_youtube_channelId'] : '' ;?>"/>
|
569 |
-
</div>
|
570 |
-
</li>
|
571 |
-
<li>
|
572 |
-
<input name="sfsi_plus_youtube_countsFrom" type="radio" value="manual" <?php echo ($option4['sfsi_plus_youtube_countsFrom']=='manual') ? 'checked="true"' : '' ;?> class="styled" />
|
573 |
-
<?php _e( 'Enter the figure manually', SFSI_PLUS_DOMAIN ); ?>
|
574 |
-
<input name="sfsi_plus_youtube_manualCounts" type="text" class="input" value="<?php echo ($option4['sfsi_plus_youtube_manualCounts']!='') ? $option4['sfsi_plus_youtube_manualCounts'] : '' ;?>" style="<?php echo ($option4['sfsi_plus_youtube_countsFrom']=='subscriber') ? 'display:none;' : '' ;?>" />
|
575 |
-
</li>
|
576 |
-
</ul>
|
577 |
-
</div>
|
578 |
-
</div>
|
579 |
-
<!-- END YOUTUBE ICON COUNT SECTION-->
|
580 |
-
|
581 |
-
<!-- PINIT ICON COUNT SECTION-->
|
582 |
-
<div class="sfsiplus_specify_counts sfsiplus_pinterest_section">
|
583 |
-
<div class="radio_section">
|
584 |
-
<input name="sfsi_plus_pinterest_countsDisplay" <?php echo ($option4['sfsi_plus_pinterest_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
585 |
-
</div>
|
586 |
-
<div class="social_icon_like">
|
587 |
-
<ul class="like_icon">
|
588 |
-
<li>
|
589 |
-
<a title="Pinterest">
|
590 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/pinterest.png" alt="Pinterest" />
|
591 |
-
<span><?php echo $counts['pin_count']; ?></span>
|
592 |
-
</a>
|
593 |
-
</li>
|
594 |
-
</ul>
|
595 |
-
</div>
|
596 |
-
<div class="listing">
|
597 |
-
<ul>
|
598 |
-
<li>
|
599 |
-
<input name="sfsi_plus_pinterest_countsFrom" <?php echo ($option4['sfsi_plus_pinterest_countsFrom']=='pins') ? 'checked="true"' : '' ;?> type="radio" value="pins" class="styled" />
|
600 |
-
<?php _e( 'Retrieve the number of Pins', SFSI_PLUS_DOMAIN ); ?>
|
601 |
-
</li>
|
602 |
-
<li>
|
603 |
-
<input name="sfsi_plus_pinterest_countsFrom" <?php echo ($option4['sfsi_plus_pinterest_countsFrom']=='manual') ? 'checked="true"' : '' ;?> type="radio" value="manual" class="styled" />
|
604 |
-
<label class="high_prb">
|
605 |
-
<?php _e( 'Enter the figure manually', SFSI_PLUS_DOMAIN ); ?>
|
606 |
-
</label>
|
607 |
-
<input name="sfsi_plus_pinterest_manualCounts" type="text" class="input" value="<?php echo ($option4['sfsi_plus_pinterest_manualCounts']!='') ? $option4['sfsi_plus_pinterest_manualCounts'] : '' ;?>" style="<?php echo ($option4['sfsi_plus_pinterest_countsFrom']=='pins') ? 'display:none;' : '' ;?>" />
|
608 |
-
</li>
|
609 |
-
</ul>
|
610 |
-
</div>
|
611 |
-
|
612 |
-
<div class="sfsi_plus_new_prmium_follw">
|
613 |
-
<p>
|
614 |
-
<b>New: </b>In the Premium Plugin you can also automatically show the number of PINs from your Pinterest account, or of a specific board, or the number of your Pinterest followers. <a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=more_pinterest_counts&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
|
615 |
-
</p>
|
616 |
-
</div>
|
617 |
-
</div>
|
618 |
-
<!-- END PINIT ICON COUNT SECTION-->
|
619 |
-
|
620 |
-
<!-- INSTAGRAM ICON COUNT SECTION-->
|
621 |
-
<div class="sfsiplus_specify_counts sfsiplus_instagram_section">
|
622 |
-
<div class="radio_section">
|
623 |
-
<input name="sfsi_plus_instagram_countsDisplay" <?php echo ($option4['sfsi_plus_instagram_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
624 |
-
</div>
|
625 |
-
<div class="social_icon_like">
|
626 |
-
<ul class="like_icon">
|
627 |
-
<li>
|
628 |
-
<a title="Instagram">
|
629 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/instagram.png" alt="instagram" />
|
630 |
-
<span><?php echo $counts['instagram_count']; ?></span>
|
631 |
-
</a>
|
632 |
-
</li>
|
633 |
-
</ul>
|
634 |
-
</div>
|
635 |
-
<div class="listing">
|
636 |
-
<ul>
|
637 |
-
<li>
|
638 |
-
<input name="sfsi_plus_instagram_countsFrom" <?php echo ($option4['sfsi_plus_instagram_countsFrom']=='followers') ? 'checked="true"' : '' ;?> type="radio" value="followers" class="styled" />
|
639 |
-
<?php _e( 'Retrieve the number of Instagram followers', SFSI_PLUS_DOMAIN ); ?>
|
640 |
-
</li>
|
641 |
-
<li class="instagram_userLi" style="<?php echo ($option4['sfsi_plus_instagram_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
|
642 |
-
<div class='sfsi_instagram_follower'>
|
643 |
-
<div>
|
644 |
-
<label>
|
645 |
-
<?php _e( 'Enter Instagram User name', SFSI_PLUS_DOMAIN ); ?>
|
646 |
-
</label>
|
647 |
-
<input name="sfsi_plus_instagram_User" class="input_facebook" type="text" value="<?php echo (isset($option4['sfsi_plus_instagram_User']) && $option4['sfsi_plus_instagram_User']!='') ? $option4['sfsi_plus_instagram_User'] : '' ;?>" />
|
648 |
-
</div>
|
649 |
-
<div>
|
650 |
-
<label>
|
651 |
-
<?php _e( 'Enter Instagram Client Id', SFSI_PLUS_DOMAIN ); ?>
|
652 |
-
</label>
|
653 |
-
<input name="sfsi_plus_instagram_clientid" class="input_facebook" type="text" value="<?php echo (isset($option4['sfsi_plus_instagram_clientid']))? $option4['sfsi_plus_instagram_clientid']:'';?>"/>
|
654 |
-
</div>
|
655 |
-
<div>
|
656 |
-
<label>
|
657 |
-
<?php _e( 'Enter Instagram Redirect Url', SFSI_PLUS_DOMAIN ); ?>
|
658 |
-
</label>
|
659 |
-
<input name="sfsi_plus_instagram_appurl" class="input_facebook" type="text" value="<?php echo (isset($option4['sfsi_plus_instagram_appurl'])) ? $option4['sfsi_plus_instagram_appurl'] : '';?>"/>
|
660 |
-
</div>
|
661 |
-
<div class="sfsi_plus_tokenGenerateButton">
|
662 |
-
<p>For generate your app token you need to enter your "Client Id" and "Redirect Url".</p>
|
663 |
-
<a href="javascript:">
|
664 |
-
<?php _e("Generate Token", SFSI_PLUS_DOMAIN);?>
|
665 |
-
</a>
|
666 |
-
</div>
|
667 |
-
<div>
|
668 |
-
<label>
|
669 |
-
<?php _e( 'Enter Instagram Token', SFSI_PLUS_DOMAIN ); ?>
|
670 |
-
</label>
|
671 |
-
<input name="sfsi_plus_instagram_token" class="input_facebook" type="text" value="<?php echo (isset($option4['sfsi_plus_instagram_token'])) ? $option4['sfsi_plus_instagram_token'] : '';?>"/>
|
672 |
-
</div>
|
673 |
-
</div>
|
674 |
-
<div class="sfsi_plus_instagramInstruction">
|
675 |
-
<p>To complete the process please follow these steps:</p>
|
676 |
-
<ul>
|
677 |
-
<li>Go to <a href="https://www.instagram.com/developer" target="_blank">https://www.instagram.com/developer</a></li>
|
678 |
-
<li><?php _e('Login and then click on “Register Your Application” to get to the “Manage Clients” section. On there click on the “Register a new client” button', SFSI_PLUS_DOMAIN ); ?>.</li>
|
679 |
-
<li><?php _e('Fill out the form and make sure that the “Redirect url” is valid and uncheck the “Disable Implicit oAuth” under the security tab', SFSI_PLUS_DOMAIN ); ?>.</li>
|
680 |
-
<li><?php _e('Then click on “Register” button', SFSI_PLUS_DOMAIN ); ?>.</li>
|
681 |
-
<li><?php _e('Copy the “Client id” and “Redirect url” you entered into the plugin. Also enter your Instagram User name. After that click on the “Generate token” button', SFSI_PLUS_DOMAIN ); ?>.</li>
|
682 |
-
<li><?php _e('Authorize your app to access your account info by clicking the “Authorize” button', SFSI_PLUS_DOMAIN ); ?>.</li>
|
683 |
-
<li><?php _e('Now you will be redirected to the redirect url (which you entered during app creation) and find your access token at the end of this url', SFSI_PLUS_DOMAIN ); ?> (For example: http://your-website.com/#access_token=< your access token >)</li>
|
684 |
-
<li><?php _e('Copy the access token, paste it into the plugin and click on “Save”', SFSI_PLUS_DOMAIN ); ?>.</li>
|
685 |
-
</ul>
|
686 |
-
</div>
|
687 |
-
</li>
|
688 |
-
<li>
|
689 |
-
<input name="sfsi_plus_instagram_countsFrom" <?php echo ($option4['sfsi_plus_instagram_countsFrom']=='manual') ? 'checked="true"' : '' ;?> type="radio" value="manual" class="styled" />
|
690 |
-
<label class="high_prb">
|
691 |
-
<?php _e( 'Enter the figure manually', SFSI_PLUS_DOMAIN ); ?>
|
692 |
-
</label>
|
693 |
-
<input name="sfsi_plus_instagram_manualCounts" type="text" class="input" value="<?php echo ($option4['sfsi_plus_instagram_manualCounts']!='') ? $option4['sfsi_plus_instagram_manualCounts'] : '' ;?>" style="<?php echo ($option4['sfsi_plus_instagram_countsFrom']=='followers') ? 'display:none;' : '' ;?>" />
|
694 |
-
</li>
|
695 |
-
</ul>
|
696 |
-
</div>
|
697 |
-
</div>
|
698 |
-
<!-- END INSTAGRAM ICON COUNT SECTION-->
|
699 |
-
|
700 |
-
<!-- HOUZZ ICON COUNT SECTION-->
|
701 |
-
<div class="sfsiplus_specify_counts sfsiplus_houzz_section">
|
702 |
-
<div class="radio_section">
|
703 |
-
<input name="sfsi_plus_houzz_countsDisplay" <?php echo (isset($option4['sfsi_plus_houzz_countsDisplay']) && $option4['sfsi_plus_houzz_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
704 |
-
</div>
|
705 |
-
<div class="social_icon_like">
|
706 |
-
<ul class="like_icon">
|
707 |
-
<li>
|
708 |
-
<a title="Houzz">
|
709 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/houzz.png" alt="Houzz" />
|
710 |
-
<span><?php echo isset($counts['houzz_count'])?$counts['houzz_count']:0; ?></span>
|
711 |
-
</a>
|
712 |
-
</li>
|
713 |
-
</ul>
|
714 |
-
</div>
|
715 |
-
<div class="listing">
|
716 |
-
<ul>
|
717 |
-
<li>
|
718 |
-
<input name="sfsi_plus_houzz_countsFrom" checked="true" type="radio" value="manual" class="styled" />
|
719 |
-
<label class="high_prb">
|
720 |
-
<?php _e( 'Enter the figure manually', SFSI_PLUS_DOMAIN ); ?>
|
721 |
-
</label>
|
722 |
-
<input name="sfsi_plus_houzz_manualCounts" type="text" class="input" value="<?php echo (isset($option4['sfsi_plus_houzz_manualCounts']) && $option4['sfsi_plus_houzz_manualCounts']!='') ? $option4['sfsi_plus_houzz_manualCounts'] : '20' ;?>" />
|
723 |
-
</li>
|
724 |
-
</ul>
|
725 |
-
</div>
|
726 |
-
</div>
|
727 |
-
<!-- END HOUZZ ICON COUNT SECTION-->
|
728 |
-
|
729 |
-
<!-- TELEGRAM ICON COUNT SECTION-->
|
730 |
-
<div class="sfsiplus_specify_counts sfsiplus_telegram_section">
|
731 |
-
<div class="radio_section">
|
732 |
-
<input name="sfsi_plus_telegram_countsDisplay" <?php echo (isset($option4['sfsi_plus_telegram_countsDisplay']) && $option4['sfsi_plus_telegram_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
733 |
-
</div>
|
734 |
-
<div class="social_icon_like">
|
735 |
-
<ul class="like_icon">
|
736 |
-
<li>
|
737 |
-
<a title="Telegram">
|
738 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/telegram.png" alt="Telegram" />
|
739 |
-
<span><?php echo isset($counts['telegram_count'])?$counts['telegram_count']:0; ?></span>
|
740 |
-
</a>
|
741 |
-
</li>
|
742 |
-
</ul>
|
743 |
-
</div>
|
744 |
-
<div class="listing">
|
745 |
-
<ul>
|
746 |
-
<li>
|
747 |
-
<input name="sfsi_plus_telegram_countsFrom" checked="true" type="radio" value="manual" class="styled" />
|
748 |
-
<label class="high_prb">
|
749 |
-
<?php _e( 'Enter the figure manually', SFSI_PLUS_DOMAIN ); ?>
|
750 |
-
</label>
|
751 |
-
<input name="sfsi_plus_telegram_manualCounts" type="text" class="input" value="<?php echo (isset($option4['sfsi_plus_telegram_manualCounts']) && $option4['sfsi_plus_telegram_manualCounts']!='') ? $option4['sfsi_plus_telegram_manualCounts'] : '20' ;?>" />
|
752 |
-
</li>
|
753 |
-
</ul>
|
754 |
-
</div>
|
755 |
-
</div>
|
756 |
-
<!-- END TELEGRAM ICON COUNT SECTION-->
|
757 |
-
|
758 |
-
<!-- VK ICON COUNT SECTION-->
|
759 |
-
<div class="sfsiplus_specify_counts sfsiplus_vk_section">
|
760 |
-
<div class="radio_section">
|
761 |
-
<input name="sfsi_plus_vk_countsDisplay" <?php echo (isset($option4['sfsi_plus_vk_countsDisplay']) && $option4['sfsi_plus_vk_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
762 |
-
</div>
|
763 |
-
<div class="social_icon_like">
|
764 |
-
<ul class="like_icon">
|
765 |
-
<li>
|
766 |
-
<a title="VK">
|
767 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/vk.png" alt="VK" />
|
768 |
-
<span><?php echo isset($counts['vk_count'])?$counts['vk_count']:0; ?></span>
|
769 |
-
</a>
|
770 |
-
</li>
|
771 |
-
</ul>
|
772 |
-
</div>
|
773 |
-
<div class="listing">
|
774 |
-
<ul>
|
775 |
-
<li>
|
776 |
-
<input name="sfsi_plus_vk_countsFrom" checked="true" type="radio" value="manual" class="styled" />
|
777 |
-
<label class="high_prb">
|
778 |
-
<?php _e( 'Enter the figure manually', SFSI_PLUS_DOMAIN ); ?>
|
779 |
-
</label>
|
780 |
-
<input name="sfsi_plus_vk_manualCounts" type="text" class="input" value="<?php echo (isset($option4['sfsi_plus_vk_manualCounts']) && $option4['sfsi_plus_vk_manualCounts']!='') ? $option4['sfsi_plus_vk_manualCounts'] : '20' ;?>" />
|
781 |
-
</li>
|
782 |
-
</ul>
|
783 |
-
</div>
|
784 |
-
</div>
|
785 |
-
<!-- END VK ICON COUNT SECTION-->
|
786 |
-
|
787 |
-
<!-- OK ICON COUNT SECTION-->
|
788 |
-
<div class="sfsiplus_specify_counts sfsiplus_ok_section">
|
789 |
-
<div class="radio_section">
|
790 |
-
<input name="sfsi_plus_ok_countsDisplay" <?php echo (isset($option4['sfsi_plus_ok_countsDisplay']) && $option4['sfsi_plus_ok_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
791 |
-
</div>
|
792 |
-
<div class="social_icon_like">
|
793 |
-
<ul class="like_icon">
|
794 |
-
<li>
|
795 |
-
<a title="OK">
|
796 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ok.png" alt="OK" />
|
797 |
-
<span><?php echo isset($counts['ok_count'])?$counts['ok_count']:0; ?></span>
|
798 |
-
</a>
|
799 |
-
</li>
|
800 |
-
</ul>
|
801 |
-
</div>
|
802 |
-
<div class="listing">
|
803 |
-
<ul>
|
804 |
-
<li>
|
805 |
-
<input name="sfsi_plus_ok_countsFrom" checked="true" type="radio" value="manual" class="styled" />
|
806 |
-
<label class="high_prb">
|
807 |
-
<?php _e( 'Enter the figure manually', SFSI_PLUS_DOMAIN ); ?>
|
808 |
-
</label>
|
809 |
-
<input name="sfsi_plus_ok_manualCounts" type="text" class="input" value="<?php echo (isset($option4['sfsi_plus_ok_manualCounts']) && $option4['sfsi_plus_ok_manualCounts']!='') ? $option4['sfsi_plus_ok_manualCounts'] : '20' ;?>" />
|
810 |
-
</li>
|
811 |
-
</ul>
|
812 |
-
</div>
|
813 |
-
</div>
|
814 |
-
<!-- END OK ICON COUNT SECTION-->
|
815 |
-
|
816 |
-
<!-- WEIBO ICON COUNT SECTION-->
|
817 |
-
<div class="sfsiplus_specify_counts sfsiplus_weibo_section">
|
818 |
-
<div class="radio_section">
|
819 |
-
<input name="sfsi_plus_weibo_countsDisplay" <?php echo (isset($option4['sfsi_plus_weibo_countsDisplay']) && $option4['sfsi_plus_weibo_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
820 |
-
</div>
|
821 |
-
<div class="social_icon_like">
|
822 |
-
<ul class="like_icon">
|
823 |
-
<li>
|
824 |
-
<a title="Weibo">
|
825 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/weibo.png" alt="Weibo" />
|
826 |
-
<span><?php echo isset($counts['weibo_count'])?$counts['weibo_count']:0; ?></span>
|
827 |
-
</a>
|
828 |
-
</li>
|
829 |
-
</ul>
|
830 |
-
</div>
|
831 |
-
<div class="listing">
|
832 |
-
<ul>
|
833 |
-
<li>
|
834 |
-
<input name="sfsi_plus_weibo_countsFrom" checked="true" type="radio" value="manual" class="styled" />
|
835 |
-
<label class="high_prb">
|
836 |
-
<?php _e( 'Enter the figure manually', SFSI_PLUS_DOMAIN ); ?>
|
837 |
-
</label>
|
838 |
-
<input name="sfsi_plus_weibo_manualCounts" type="text" class="input" value="<?php echo (isset($option4['sfsi_plus_weibo_manualCounts']) && $option4['sfsi_plus_weibo_manualCounts']!='') ? $option4['sfsi_plus_weibo_manualCounts'] : '20' ;?>" />
|
839 |
-
</li>
|
840 |
-
</ul>
|
841 |
-
</div>
|
842 |
-
</div>
|
843 |
-
<!-- END WEIBO ICON COUNT SECTION-->
|
844 |
-
|
845 |
-
<!-- WECHAT ICON COUNT SECTION-->
|
846 |
-
<div class="sfsiplus_specify_counts sfsiplus_wechat_section">
|
847 |
-
<div class="radio_section">
|
848 |
-
<input name="sfsi_plus_wechat_countsDisplay" <?php echo (isset($option4['sfsi_plus_wechat_countsDisplay']) && $option4['sfsi_plus_wechat_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
849 |
-
</div>
|
850 |
-
<div class="social_icon_like">
|
851 |
-
<ul class="like_icon">
|
852 |
-
<li>
|
853 |
-
<a title="Wechat">
|
854 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/wechat.png" alt="Wechat" />
|
855 |
-
<span><?php echo isset($counts['wechat_count'])?$counts['wechat_count']:0; ?></span>
|
856 |
-
</a>
|
857 |
-
</li>
|
858 |
-
</ul>
|
859 |
-
</div>
|
860 |
-
<div class="listing">
|
861 |
-
<ul>
|
862 |
-
<li>
|
863 |
-
<input name="sfsi_plus_wechat_countsFrom" checked="true" type="radio" value="manual" class="styled" />
|
864 |
-
<label class="high_prb">
|
865 |
-
<?php _e( 'Enter the figure manually', SFSI_PLUS_DOMAIN ); ?>
|
866 |
-
</label>
|
867 |
-
<input name="sfsi_plus_wechat_manualCounts" type="text" class="input" value="<?php echo (isset($option4['sfsi_plus_wechat_manualCounts']) && $option4['sfsi_plus_wechat_manualCounts']!='') ? $option4['sfsi_plus_wechat_manualCounts'] : '20' ;?>" />
|
868 |
-
</li>
|
869 |
-
</ul>
|
870 |
-
</div>
|
871 |
-
</div>
|
872 |
-
<!-- END WECHAT ICON COUNT SECTION-->
|
873 |
-
|
874 |
-
|
875 |
-
</div>
|
876 |
-
<!-- END show/hide counts for all icons section -->
|
877 |
-
|
878 |
-
<?php sfsi_plus_ask_for_help(4); ?>
|
879 |
-
|
880 |
-
<!-- SAVE BUTTON SECTION -->
|
881 |
-
<div class="save_button">
|
882 |
-
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
|
883 |
-
<?php $nonce = wp_create_nonce("update_plus_step4"); ?>
|
884 |
-
<a href="javascript:;" id="sfsi_plus_save4" title="Save" data-nonce="<?php echo $nonce;?>">
|
885 |
-
<?php _e( 'Save', SFSI_PLUS_DOMAIN ); ?>
|
886 |
-
</a>
|
887 |
-
</div>
|
888 |
-
<!-- END SAVE BUTTON SECTION -->
|
889 |
-
<a class="sfsiColbtn closeSec" href="javascript:;">
|
890 |
-
<?php _e( 'Collapse area', SFSI_PLUS_DOMAIN ); ?>
|
891 |
-
</a>
|
892 |
-
<label class="closeSec"></label>
|
893 |
-
<!-- ERROR AND SUCCESS MESSAGE AREA-->
|
894 |
-
<p class="red_txt errorMsg" style="display:none"> </p>
|
895 |
-
<p class="green_txt sucMsg" style="display:none"> </p>
|
896 |
-
<div class="clear"></div>
|
897 |
-
</div>
|
898 |
-
<!-- END Section 4 "Do you want to display "counts" next to your icons?" -->
|
1 |
+
<?php
|
2 |
+
/* unserialize all saved option for section 4 options */
|
3 |
+
$option2 = unserialize(get_option('sfsi_plus_section2_options',false));
|
4 |
+
$option4 = unserialize(get_option('sfsi_plus_section4_options',false));
|
5 |
+
if(!isset($option4['sfsi_plus_facebook_mypageCounts']))
|
6 |
+
{
|
7 |
+
$option4['sfsi_plus_facebook_mypageCounts'] = '';
|
8 |
+
}
|
9 |
+
|
10 |
+
/*
|
11 |
+
* Sanitize, escape and validate values
|
12 |
+
*/
|
13 |
+
$option4['sfsi_plus_display_counts'] = (isset($option4['sfsi_plus_display_counts']))
|
14 |
+
? sanitize_text_field($option4['sfsi_plus_display_counts'])
|
15 |
+
: '';
|
16 |
+
$option4['sfsi_plus_email_countsFrom'] = (isset($option4['sfsi_plus_email_countsFrom']))
|
17 |
+
? sanitize_text_field($option4['sfsi_plus_email_countsFrom'])
|
18 |
+
: '';
|
19 |
+
$option4['sfsi_plus_email_manualCounts'] = (isset($option4['sfsi_plus_email_manualCounts']))
|
20 |
+
? intval($option4['sfsi_plus_email_manualCounts'])
|
21 |
+
: '';
|
22 |
+
$option4['sfsi_plus_rss_countsDisplay'] = (isset($option4['sfsi_plus_rss_countsDisplay']))
|
23 |
+
? sanitize_text_field($option4['sfsi_plus_rss_countsDisplay'])
|
24 |
+
: '';
|
25 |
+
$option4['sfsi_plus_rss_manualCounts'] = (isset($option4['sfsi_plus_rss_manualCounts']))
|
26 |
+
? intval($option4['sfsi_plus_rss_manualCounts'])
|
27 |
+
: '';
|
28 |
+
$option4['sfsi_plus_email_countsDisplay'] = (isset($option4['sfsi_plus_email_countsDisplay']))
|
29 |
+
? sanitize_text_field($option4['sfsi_plus_email_countsDisplay'])
|
30 |
+
: '';
|
31 |
+
|
32 |
+
$option4['sfsi_plus_facebook_countsDisplay'] = (isset($option4['sfsi_plus_facebook_countsDisplay']))
|
33 |
+
? sanitize_text_field($option4['sfsi_plus_facebook_countsDisplay'])
|
34 |
+
: '';
|
35 |
+
$option4['sfsi_plus_facebook_countsFrom'] = (isset($option4['sfsi_plus_facebook_countsFrom']))
|
36 |
+
? sanitize_text_field($option4['sfsi_plus_facebook_countsFrom'])
|
37 |
+
: '';
|
38 |
+
$option4['sfsi_plus_facebook_mypageCounts'] = (isset($option4['sfsi_plus_facebook_mypageCounts']))
|
39 |
+
? sfsi_plus_sanitize_field($option4['sfsi_plus_facebook_mypageCounts'])
|
40 |
+
: '';
|
41 |
+
$option4['sfsi_plus_facebook_manualCounts'] = (isset($option4['sfsi_plus_facebook_manualCounts']))
|
42 |
+
? intval($option4['sfsi_plus_facebook_manualCounts'])
|
43 |
+
: '';
|
44 |
+
|
45 |
+
|
46 |
+
$option4['sfsi_plus_twitter_countsDisplay'] = (isset($option4['sfsi_plus_twitter_countsDisplay']))
|
47 |
+
? sanitize_text_field($option4['sfsi_plus_twitter_countsDisplay'])
|
48 |
+
: '';
|
49 |
+
$option4['sfsi_plus_twitter_countsFrom'] = (isset($option4['sfsi_plus_twitter_countsFrom']))
|
50 |
+
? sanitize_text_field($option4['sfsi_plus_twitter_countsFrom'])
|
51 |
+
: '';
|
52 |
+
$option4['sfsi_plus_twitter_manualCounts'] = (isset($option4['sfsi_plus_twitter_manualCounts']))
|
53 |
+
? intval($option4['sfsi_plus_twitter_manualCounts'])
|
54 |
+
: '';
|
55 |
+
$option4['sfsiplus_tw_consumer_key'] = (isset($option4['sfsiplus_tw_consumer_key']))
|
56 |
+
? sfsi_plus_sanitize_field($option4['sfsiplus_tw_consumer_key'])
|
57 |
+
: '';
|
58 |
+
$option4['sfsiplus_tw_consumer_secret'] = (isset($option4['sfsiplus_tw_consumer_secret']))
|
59 |
+
? sfsi_plus_sanitize_field($option4['sfsiplus_tw_consumer_secret'])
|
60 |
+
: '';
|
61 |
+
$option4['sfsiplus_tw_oauth_access_token'] = (isset($option4['sfsiplus_tw_oauth_access_token']))
|
62 |
+
? sfsi_plus_sanitize_field($option4['sfsiplus_tw_oauth_access_token'])
|
63 |
+
: '';
|
64 |
+
$option4['sfsiplus_tw_oauth_access_token_secret']= (isset($option4['sfsiplus_tw_oauth_access_token_secret']))
|
65 |
+
? sfsi_plus_sanitize_field($option4['sfsiplus_tw_oauth_access_token_secret'])
|
66 |
+
: '';
|
67 |
+
$option4['sfsi_plus_youtube_countsDisplay'] = (isset($option4['sfsi_plus_youtube_countsDisplay']))
|
68 |
+
? sanitize_text_field($option4['sfsi_plus_youtube_countsDisplay'])
|
69 |
+
: '';
|
70 |
+
$option4['sfsi_plus_youtube_countsFrom'] = (isset($option4['sfsi_plus_youtube_countsFrom']))
|
71 |
+
? sanitize_text_field($option4['sfsi_plus_youtube_countsFrom'])
|
72 |
+
: '';
|
73 |
+
$option4['sfsi_plus_youtubeusernameorid'] = (isset($option4['sfsi_plus_youtubeusernameorid']))
|
74 |
+
? sanitize_text_field($option4['sfsi_plus_youtubeusernameorid'])
|
75 |
+
: '';
|
76 |
+
$option4['sfsi_plus_youtube_manualCounts'] = (isset($option4['sfsi_plus_youtube_manualCounts']))
|
77 |
+
? intval($option4['sfsi_plus_youtube_manualCounts'])
|
78 |
+
: '';
|
79 |
+
$option4['sfsi_plus_youtube_user'] = (isset($option4['sfsi_plus_youtube_user']))
|
80 |
+
? sfsi_plus_sanitize_field($option4['sfsi_plus_youtube_user'])
|
81 |
+
: '';
|
82 |
+
$option4['sfsi_plus_youtube_channelId'] = (isset($option4['sfsi_plus_youtube_channelId']))
|
83 |
+
? sfsi_plus_sanitize_field($option4['sfsi_plus_youtube_channelId'])
|
84 |
+
: '';
|
85 |
+
|
86 |
+
$option4['sfsi_plus_instagram_manualCounts'] = (isset($option4['sfsi_plus_instagram_manualCounts']))
|
87 |
+
? intval($option4['sfsi_plus_instagram_manualCounts'])
|
88 |
+
: '';
|
89 |
+
$option4['sfsi_plus_instagram_User'] = (isset($option4['sfsi_plus_instagram_User']))
|
90 |
+
? sfsi_plus_sanitize_field($option4['sfsi_plus_instagram_User'])
|
91 |
+
: '';
|
92 |
+
$option4['sfsi_plus_instagram_clientid'] = (isset($option4['sfsi_plus_instagram_clientid']))
|
93 |
+
? sfsi_plus_sanitize_field($option4['sfsi_plus_instagram_clientid'])
|
94 |
+
: '';
|
95 |
+
$option4['sfsi_plus_instagram_appurl'] = (isset($option4['sfsi_plus_instagram_appurl']))
|
96 |
+
? sfsi_plus_sanitize_field($option4['sfsi_plus_instagram_appurl'])
|
97 |
+
: '';
|
98 |
+
$option4['sfsi_plus_instagram_token'] = (isset($option4['sfsi_plus_instagram_token']))
|
99 |
+
? sfsi_plus_sanitize_field($option4['sfsi_plus_instagram_token'])
|
100 |
+
: '';
|
101 |
+
$option4['sfsi_plus_instagram_countsFrom'] = (isset($option4['sfsi_plus_instagram_countsFrom']))
|
102 |
+
? sanitize_text_field($option4['sfsi_plus_instagram_countsFrom'])
|
103 |
+
: '';
|
104 |
+
$option4['sfsi_plus_instagram_countsDisplay'] = (isset($option4['sfsi_plus_instagram_countsDisplay']))
|
105 |
+
? sanitize_text_field($option4['sfsi_plus_instagram_countsDisplay'])
|
106 |
+
: '';
|
107 |
+
|
108 |
+
$option4['sfsi_plus_linkedIn_manualCounts'] = (isset($option4['sfsi_plus_linkedIn_manualCounts']))
|
109 |
+
? intval($option4['sfsi_plus_linkedIn_manualCounts'])
|
110 |
+
: '';
|
111 |
+
$option4['sfsi_plus_houzz_manualCounts'] = (isset($option4['sfsi_plus_houzz_manualCounts']))
|
112 |
+
? intval($option4['sfsi_plus_houzz_manualCounts'])
|
113 |
+
: '';
|
114 |
+
$option4['sfsi_plus_pinterest_manualCounts'] = (isset($option4['sfsi_plus_pinterest_manualCounts']))
|
115 |
+
? intval($option4['sfsi_plus_pinterest_manualCounts'])
|
116 |
+
: '';
|
117 |
+
$option4['sfsi_plus_premium_count_box'] = (isset($option4['sfsi_plus_premium_count_box']))
|
118 |
+
? sanitize_text_field($option4['sfsi_plus_premium_count_box'])
|
119 |
+
: 'yes';
|
120 |
+
$option4['sfsi_plus_telegram_countsDisplay'] = (isset($option4['sfsi_plus_telegram_countsDisplay']))
|
121 |
+
? sanitize_text_field($option4['sfsi_plus_telegram_countsDisplay'])
|
122 |
+
: '';
|
123 |
+
$option4['sfsi_plus_telegram_manualCounts'] = (isset($option4['sfsi_plus_telegram_manualCounts']))
|
124 |
+
? intval($option4['sfsi_plus_telegram_manualCounts'])
|
125 |
+
: '';
|
126 |
+
$option4['sfsi_plus_vk_countsDisplay'] = (isset($option4['sfsi_plus_vk_countsDisplay']))
|
127 |
+
? sanitize_text_field($option4['sfsi_plus_vk_countsDisplay'])
|
128 |
+
: '';
|
129 |
+
$option4['sfsi_plus_vk_manualCounts'] = (isset($option4['sfsi_plus_vk_manualCounts']))
|
130 |
+
? intval($option4['sfsi_plus_vk_manualCounts'])
|
131 |
+
: '';
|
132 |
+
|
133 |
+
$option4['sfsi_plus_ok_countsDisplay'] = (isset($option4['sfsi_plus_ok_countsDisplay']))
|
134 |
+
? sanitize_text_field($option4['sfsi_plus_ok_countsDisplay'])
|
135 |
+
: '';
|
136 |
+
$option4['sfsi_plus_ok_manualCounts'] = (isset($option4['sfsi_plus_ok_manualCounts']))
|
137 |
+
? intval($option4['sfsi_plus_ok_manualCounts'])
|
138 |
+
: '';
|
139 |
+
|
140 |
+
$option4['sfsi_plus_weibo_countsDisplay'] = (isset($option4['sfsi_plus_weibo_countsDisplay']))
|
141 |
+
? sanitize_text_field($option4['sfsi_plus_weibo_countsDisplay'])
|
142 |
+
: '';
|
143 |
+
$option4['sfsi_plus_weibo_manualCounts'] = (isset($option4['sfsi_plus_weibo_manualCounts']))
|
144 |
+
? intval($option4['sfsi_plus_weibo_manualCounts'])
|
145 |
+
: '';
|
146 |
+
|
147 |
+
$option4['sfsi_plus_wechat_countsDisplay'] = (isset($option4['sfsi_plus_wechat_countsDisplay']))
|
148 |
+
? sanitize_text_field($option4['sfsi_plus_wechat_countsDisplay'])
|
149 |
+
: '';
|
150 |
+
$option4['sfsi_plus_wechat_manualCounts'] = (isset($option4['sfsi_plus_wechat_manualCounts']))
|
151 |
+
? intval($option4['sfsi_plus_wechat_manualCounts'])
|
152 |
+
: '';
|
153 |
+
$counts = sfsi_plus_getCounts();
|
154 |
+
/* fetch counts for admin sections */
|
155 |
+
|
156 |
+
/* check for email icon display */
|
157 |
+
$email_image="email.png";
|
158 |
+
if($option2['sfsi_plus_rss_icons']=="sfsi")
|
159 |
+
{
|
160 |
+
$email_image="sf_arow_icn.png";
|
161 |
+
}
|
162 |
+
elseif($option2['sfsi_plus_rss_icons']=="email")
|
163 |
+
{
|
164 |
+
$email_image="email.png";
|
165 |
+
}
|
166 |
+
else
|
167 |
+
{
|
168 |
+
$email_image = "subscribe.png";
|
169 |
+
}
|
170 |
+
$hide="display:none;";
|
171 |
+
?>
|
172 |
+
<!-- Section 4 "Do you want to display "counts" next to your icons?" main div Start -->
|
173 |
+
<div class="tab4">
|
174 |
+
|
175 |
+
<div class="sfsi_plus_versionNotification">
|
176 |
+
<?php sfsi_plus_curl_error_notification(); ?>
|
177 |
+
</div>
|
178 |
+
|
179 |
+
<p>
|
180 |
+
<?php _e('It’s a psychological fact that people like to follow other people, so when they see that your site has already a good number of Facebook likes, it’s more likely that they will subscribe/like/share your site than if it had 0.', SFSI_PLUS_DOMAIN ); ?>
|
181 |
+
</p>
|
182 |
+
<p>
|
183 |
+
<?php _e( 'Therefore, you can select to display the count next to your icons which will look like this:', SFSI_PLUS_DOMAIN ); ?>
|
184 |
+
</p>
|
185 |
+
|
186 |
+
<!-- sample icons -->
|
187 |
+
<ul class="like_icon">
|
188 |
+
<li class="sfsiplus_rss_section">
|
189 |
+
<a href="#" title="RSS">
|
190 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/rss.png" alt="RSS" />
|
191 |
+
</a><span>12k</span>
|
192 |
+
</li>
|
193 |
+
<li class="sfsiplus_email_section">
|
194 |
+
<a href="#" title="Email">
|
195 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/<?php echo $email_image; ?>" alt="Email" class="icon_img" />
|
196 |
+
</a><span>12k</span>
|
197 |
+
</li>
|
198 |
+
<li class="sfsiplus_facebook_section">
|
199 |
+
<a href="#" title="Facebook">
|
200 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/fb.png" alt="Facebook" />
|
201 |
+
</a><span>12k</span>
|
202 |
+
</li>
|
203 |
+
<li class="sfsiplus_twitter_section">
|
204 |
+
<a href="#" title="Twitter">
|
205 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/twitter.png" alt="Twitter" />
|
206 |
+
</a><span>12k</span>
|
207 |
+
</li>
|
208 |
+
<li class="sfsiplus_youtube_section">
|
209 |
+
<a href="#" title="YouTube">
|
210 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/youtube.png" alt="YouTube" />
|
211 |
+
</a><span>12k</span>
|
212 |
+
</li>
|
213 |
+
<li class="sfsiplus_pinterest_section">
|
214 |
+
<a href="#" title="Pinterest">
|
215 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/pinterest.png" alt="Pinterest" />
|
216 |
+
</a><span>12k</span>
|
217 |
+
</li>
|
218 |
+
<li class="sfsiplus_linkedin_section">
|
219 |
+
<a href="#" title="Linked In">
|
220 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/linked_in.png" alt="Linked In" />
|
221 |
+
</a><span>12k</span>
|
222 |
+
</li>
|
223 |
+
<li class="sfsiplus_instagram_section">
|
224 |
+
<a href="#" title="Instagram">
|
225 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/instagram.png" alt="instagram" />
|
226 |
+
</a><span>12k</span>
|
227 |
+
</li>
|
228 |
+
<li class="sfsiplus_houzz_section">
|
229 |
+
<a href="#" title="Houzz">
|
230 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/houzz.png" alt="instagram" />
|
231 |
+
</a><span>12k</span>
|
232 |
+
</li>
|
233 |
+
<!--MZ CODE START-->
|
234 |
+
<li class="sfsiplus_telegram_section">
|
235 |
+
<a href="#" title="Telegram">
|
236 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/telegram.png" alt="Telegram" />
|
237 |
+
</a><span>12k</span>
|
238 |
+
</li>
|
239 |
+
|
240 |
+
<li class="sfsiplus_vk_section">
|
241 |
+
<a href="#" title="Vk">
|
242 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/vk.png" alt="Telegram" />
|
243 |
+
</a><span>12k</span>
|
244 |
+
</li>
|
245 |
+
<li class="sfsiplus_ok_section">
|
246 |
+
<a href="#" title="Ok">
|
247 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/icons_theme/default/default_ok.png" alt="Ok" width="50px" height="50px" />
|
248 |
+
</a><span>12k</span>
|
249 |
+
</li>
|
250 |
+
<li class="sfsiplus_weibo_section">
|
251 |
+
<a href="#" title="Weibo">
|
252 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/weibo.png" alt="Weibo" width="50px" height="50px" />
|
253 |
+
</a><span>12k</span>
|
254 |
+
</li>
|
255 |
+
<li class="sfsiplus_wechat_section">
|
256 |
+
<a href="#" title="Wechat">
|
257 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/wechat.png" alt="Weibo" width="50px" height="50px" />
|
258 |
+
</a><span>12k</span>
|
259 |
+
</li>
|
260 |
+
|
261 |
+
|
262 |
+
|
263 |
+
</ul> <!-- END sample icons -->
|
264 |
+
<p>
|
265 |
+
<?php _e( 'Of course, if you start at 0, you shoot yourself in the foot with that. So we suggest that you only turn this feature on once you have a good number of followers/likes/shares (min. of 20 – no worries if it’s not too many, it should just not be 0).', SFSI_PLUS_DOMAIN ); ?>
|
266 |
+
</p>
|
267 |
+
<h4>
|
268 |
+
<?php _e( 'Enough waffling. So do you want to display counts?', SFSI_PLUS_DOMAIN ); ?>
|
269 |
+
</h4>
|
270 |
+
<!-- show/hide counts for icons section START -->
|
271 |
+
<ul class="enough_waffling">
|
272 |
+
<li>
|
273 |
+
<input name="sfsi_plus_display_counts" <?php echo ($option4['sfsi_plus_display_counts']=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" />
|
274 |
+
<label>
|
275 |
+
<?php _e( 'Yes', SFSI_PLUS_DOMAIN ); ?>
|
276 |
+
</label>
|
277 |
+
</li>
|
278 |
+
<li>
|
279 |
+
<input name="sfsi_plus_display_counts" <?php echo ($option4['sfsi_plus_display_counts']=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled" />
|
280 |
+
<label>
|
281 |
+
<?php _e( 'No', SFSI_PLUS_DOMAIN ); ?>
|
282 |
+
</label>
|
283 |
+
</li>
|
284 |
+
</ul>
|
285 |
+
<!-- END show/hide counts for icons section -->
|
286 |
+
<!-- show/hide counts for all icons section START -->
|
287 |
+
<div class="sfsiplus_count_sections" style="display:none">
|
288 |
+
<h4>
|
289 |
+
<?php _e( 'Please specify which counts should be shown:', SFSI_PLUS_DOMAIN ); ?>
|
290 |
+
</h4>
|
291 |
+
|
292 |
+
<!-- RSS ICON COUNT SECTION-->
|
293 |
+
<div class="sfsiplus_specify_counts sfsiplus_rss_section">
|
294 |
+
<div class="radio_section">
|
295 |
+
<input name="sfsi_plus_rss_countsDisplay" <?php echo ($option4['sfsi_plus_rss_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
296 |
+
</div>
|
297 |
+
<div class="social_icon_like">
|
298 |
+
<ul class="like_icon">
|
299 |
+
<li>
|
300 |
+
<a title="RSS">
|
301 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/rss.png" alt="RSS" />
|
302 |
+
<span><?php echo $counts['rss_count']; ?></span>
|
303 |
+
</a>
|
304 |
+
</li>
|
305 |
+
</ul>
|
306 |
+
</div>
|
307 |
+
<div class="listing">
|
308 |
+
<ul>
|
309 |
+
<li>
|
310 |
+
<?php
|
311 |
+
_e('We cannot track this. So enter the figure here:',SFSI_PLUS_DOMAIN); ?>
|
312 |
+
<input name="sfsi_plus_rss_manualCounts" type="text" class="input" value="<?php echo ($option4['sfsi_plus_rss_manualCounts']!='') ? $option4['sfsi_plus_rss_manualCounts'] : '' ;?>" />
|
313 |
+
</li>
|
314 |
+
</ul>
|
315 |
+
</div>
|
316 |
+
</div>
|
317 |
+
<!-- END RSS ICON COUNT SECTION-->
|
318 |
+
|
319 |
+
<!-- EMAIL ICON COUNT SECTION-->
|
320 |
+
<div class="sfsiplus_specify_counts sfsiplus_email_section">
|
321 |
+
<div class="radio_section">
|
322 |
+
<input name="sfsi_plus_email_countsDisplay" <?php echo ($option4['sfsi_plus_email_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
323 |
+
</div>
|
324 |
+
<div class="social_icon_like">
|
325 |
+
<ul class="like_icon">
|
326 |
+
<li>
|
327 |
+
<a title="Email">
|
328 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/<?php echo $email_image; ?>" alt="Email" />
|
329 |
+
<span><?php echo $counts['email_count']; ?></span>
|
330 |
+
</a>
|
331 |
+
</li>
|
332 |
+
</ul>
|
333 |
+
</div>
|
334 |
+
<div class="listing">
|
335 |
+
<ul>
|
336 |
+
<li>
|
337 |
+
<input name="sfsi_plus_email_countsFrom" <?php echo ($option4['sfsi_plus_email_countsFrom']=='source') ? 'checked="true"' : '' ;?> type="radio" value="source" class="styled" />
|
338 |
+
<?php
|
339 |
+
_e('Retrieve the number of subscribers automatically', SFSI_PLUS_DOMAIN); ?>
|
340 |
+
</li>
|
341 |
+
<li>
|
342 |
+
<input name="sfsi_plus_email_countsFrom" <?php echo ($option4['sfsi_plus_email_countsFrom']=='manual') ? 'checked="true"' : '' ;?> type="radio" value="manual" class="styled" />
|
343 |
+
<?php _e( 'Enter the figure manually', SFSI_PLUS_DOMAIN ); ?>
|
344 |
+
<input name="sfsi_plus_email_manualCounts" type="text" class="input" value="<?php echo ($option4['sfsi_plus_email_manualCounts']!='') ? $option4['sfsi_plus_email_manualCounts'] : '' ;?>" style="<?php echo ($option4['sfsi_plus_email_countsFrom']=='source') ? 'display:none;' : '' ;?>" />
|
345 |
+
</li>
|
346 |
+
</ul>
|
347 |
+
</div>
|
348 |
+
</div>
|
349 |
+
<!--END EMAIL ICON COUNT SECTION-->
|
350 |
+
|
351 |
+
<!-- FACEBOOK ICON COUNT SECTION-->
|
352 |
+
<div class="sfsiplus_specify_counts sfsiplus_facebook_section">
|
353 |
+
<div class="radio_section">
|
354 |
+
<input name="sfsi_plus_facebook_countsDisplay" <?php echo ($option4['sfsi_plus_facebook_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
355 |
+
</div>
|
356 |
+
<div class="social_icon_like">
|
357 |
+
<ul class="like_icon">
|
358 |
+
<li>
|
359 |
+
<a title="Facebook">
|
360 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/fb.png" alt="Facebook" />
|
361 |
+
<span><?php echo $counts['fb_count']; ?></span>
|
362 |
+
</a>
|
363 |
+
</li>
|
364 |
+
</ul>
|
365 |
+
</div>
|
366 |
+
<div class="listing">
|
367 |
+
<ul class="sfsi_plus_fb_popup_contain">
|
368 |
+
<li>
|
369 |
+
<input name="sfsi_plus_facebook_countsFrom" <?php echo ($option4['sfsi_plus_facebook_countsFrom']=='likes') ? 'checked="true"' : '' ;?> type="radio" value="likes" class="styled" />
|
370 |
+
<?php _e( 'Retrieve the number of likes of your blog', SFSI_PLUS_DOMAIN ); ?>
|
371 |
+
</li>
|
372 |
+
<li>
|
373 |
+
<input name="sfsi_plus_facebook_countsFrom" <?php echo ($option4['sfsi_plus_facebook_countsFrom']=='mypage') ? 'checked="true"' : '' ;?> type="radio" value="mypage" class="styled" />
|
374 |
+
<?php _e( 'Retrieve the number of likes of your Facebook page', SFSI_PLUS_DOMAIN ); ?>
|
375 |
+
<br>
|
376 |
+
<div class="sfsiplus_fbpgiddesc sfsi_plus_fbpaget">
|
377 |
+
<div class="sfsiplus_fbpgidwpr sfsi_plus_count" style="<?php echo ($option4['sfsi_plus_facebook_countsFrom']=='likes' || $option4['sfsi_plus_facebook_countsFrom']=='followers' || $option4['sfsi_plus_facebook_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
|
378 |
+
Facebook <?php _e( 'page ID:', SFSI_PLUS_DOMAIN ); ?>
|
379 |
+
</div>
|
380 |
+
<input name="sfsi_plus_facebook_mypageCounts" type="text" class="input mypginpt" value="<?php echo ($option4['sfsi_plus_facebook_mypageCounts']!='') ? $option4['sfsi_plus_facebook_mypageCounts'] : '' ;?>" style="<?php echo ($option4['sfsi_plus_facebook_countsFrom']=='likes' || $option4['sfsi_plus_facebook_countsFrom']=='followers' || $option4['sfsi_plus_facebook_countsFrom']=='manual') ? 'display:none;' : '' ;?>" />
|
381 |
+
</div>
|
382 |
+
<div class="sfsiplus_fbpgidwpr sfsiplus_fbpgiddesc sfsi_plus_facebook_count" style="<?php echo ($option4['sfsi_plus_facebook_countsFrom']=='likes' || $option4['sfsi_plus_facebook_countsFrom']=='followers' || $option4['sfsi_plus_facebook_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
|
383 |
+
(<?php _e( "You'll find it at the bottom of the << About >> -tab on your Facebook page", SFSI_PLUS_DOMAIN ); ?>)
|
384 |
+
</div>
|
385 |
+
</li>
|
386 |
+
<li>
|
387 |
+
<input name="sfsi_plus_facebook_countsFrom" <?php echo ($option4['sfsi_plus_facebook_countsFrom']=='manual') ? 'checked="true"' : '' ;?> type="radio" value="manual" class="styled" />
|
388 |
+
<?php _e( 'Enter the figure manually', SFSI_PLUS_DOMAIN ); ?>
|
389 |
+
<input name="sfsi_plus_facebook_manualCounts" type="text" class="input" value="<?php echo ($option4['sfsi_plus_facebook_manualCounts']!='') ? $option4['sfsi_plus_facebook_manualCounts'] : '' ;?>" style="<?php echo ($option4['sfsi_plus_facebook_countsFrom']=='likes' || $option4['sfsi_plus_facebook_countsFrom']=='followers' || $option4['sfsi_plus_facebook_countsFrom']=='mypage') ? 'display:none;' : '' ;?>" />
|
390 |
+
</li>
|
391 |
+
</ul>
|
392 |
+
<?php if($option4['sfsi_plus_premium_count_box'] =='yes') { ?>
|
393 |
+
<div class="sfsi_plus_facebook_pagedeasc" style="<?php echo (isset($option4['sfsi_plus_facebook_countsFrom']) && $option4['sfsi_plus_facebook_countsFrom'] =='manual') ? 'display:none;' : '' ;?>">
|
394 |
+
<p class="sfsi_plus_shared_premium">
|
395 |
+
<b><?php _e( 'Note: ', SFSI_PLUS_DOMAIN ); ?></b><?php _e( 'This plugin uses one API shared by all users of this plugin. There is a limit (set by Facebook) how often this API can get the counts per day, so it may happen that it returns “0 counts” later in the day.', SFSI_PLUS_DOMAIN ); ?><br><br><?php _e( 'Therefore we implemented a solution as part of our Premium Plugin where you can easily set up your own API in a few steps, which will fix this problem.', SFSI_PLUS_DOMAIN ); ?><br><br><a class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" style="cursor:pointer;border-bottom: 1px solid #12a252;color: #12a252 !important;" target="_blank">Go premium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=facebook_counts&utm_medium=banner" class="sfsi_plus_font_inherit" style="color: #12a252 !important" target="_blank"> or learn more</a>
|
396 |
+
</p>
|
397 |
+
</div>
|
398 |
+
<?php } ?>
|
399 |
+
</div>
|
400 |
+
</div>
|
401 |
+
<!-- END FACEBOOK ICON COUNT SECTION-->
|
402 |
+
|
403 |
+
<!-- TWITTER ICON COUNT SECTION-->
|
404 |
+
<div class="sfsiplus_specify_counts sfsiplus_twitter_section">
|
405 |
+
<div class="radio_section">
|
406 |
+
<input name="sfsi_plus_twitter_countsDisplay" <?php echo ($option4['sfsi_plus_twitter_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
407 |
+
</div>
|
408 |
+
<div class="social_icon_like">
|
409 |
+
<ul class="like_icon">
|
410 |
+
<li>
|
411 |
+
<a title="Twitter">
|
412 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL ?>images/twitter.png" alt="Twitter" />
|
413 |
+
<span><?php echo $counts['twitter_count']; ?></span>
|
414 |
+
</a>
|
415 |
+
</li>
|
416 |
+
</ul>
|
417 |
+
</div>
|
418 |
+
<div class="listing">
|
419 |
+
<ul>
|
420 |
+
<li>
|
421 |
+
<input name="sfsi_plus_twitter_countsFrom" <?php echo ($option4['sfsi_plus_twitter_countsFrom']=='source') ? 'checked="true"' : '' ;?> type="radio" value="source" class="styled" />
|
422 |
+
<?php _e( 'Retrieve the number of Twitter followers', SFSI_PLUS_DOMAIN ); ?>
|
423 |
+
</li>
|
424 |
+
<li class="SFSI_tglli">
|
425 |
+
<ul class="SFSI_lsngfrm">
|
426 |
+
<li class="tw_follow_options" style="<?php echo ($option4['sfsi_plus_twitter_countsFrom']=='manual') ? 'display:none;' : '' ;?>">
|
427 |
+
<label>
|
428 |
+
<?php _e( 'Enter Consumer Key', SFSI_PLUS_DOMAIN ); ?>
|
429 |
+
</label>
|
430 |
+
<input name="sfsiplus_tw_consumer_key" class="input_facebook" type="text" value="<?php echo (isset($optio
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|