Version Description
- 05/24/2022 = Update - The JSON-LD compatibility with Woocommerce on Products variant prices Update - Live Assistant layout for both floating and integrated version Update - Compatibility WP adminify plugin Fixed - SEO Links - External Nofollow Link Exception Fixed - SEO Automation - Add the post type in automation issue Fixed - PHP Warnings in Automation and JSON-LD when some features are not yet activated Fixed - Removed unused libraries from Live Assistant Fixed - Small Bugs
Download this release
Release Info
Developer | cifi |
Plugin | SEO SQUIRRLY™ |
Version | 12.1.04 |
Comparing to | |
See all releases |
Code changes from version 12.1.03 to 12.1.04
- classes/ActionController.php +14 -11
- classes/FrontController.php +4 -0
- classes/RemoteController.php +167 -3
- classes/helpers/DevKit.php +0 -1
- classes/helpers/Tools.php +62 -50
- controllers/Frontend.php +9 -14
- controllers/Menu.php +25 -33
- controllers/Post.php +146 -176
- controllers/PostsList.php +2 -2
- core/BlockFeatures.php +15 -0
- core/Blocklogin.php +0 -6
- models/Compatibility.php +146 -13
- models/LiveAssistant.php +158 -0
- models/Menu.php +1 -5
- models/Settings.php +4 -0
- models/Snippet.php +8 -9
- models/services/JsonLD.php +24 -22
- readme.txt +36 -17
- squirrly.php +2 -2
- view/Assistant/Settings.php +7 -2
- view/Audits/Addpage.php +1 -1
- view/Audits/Audit.php +1 -0
- view/Audits/AuditPageRow.php +0 -3
- view/Audits/AuditStats.php +11 -10
- view/Blocks/Account.php +8 -3
- view/Blocks/Features.php +5 -7
- view/Blocks/FrontendAssistant.php +25 -23
- view/Blocks/LiveAssistant.php +2 -2
- view/Blocks/Snippet.php +13 -13
- view/FocusPages/Addpage.php +1 -1
- view/Onboarding/Step4.php +33 -33
- view/Post.php +3 -2
- view/SeoSettings/Jsonld.php +26 -26
- view/assets/css/briefcase.min.css +1 -1
- view/assets/css/builders.css +41 -0
- view/assets/css/builders.min.css +1 -0
- view/assets/css/frontend.min.css +1 -1
- view/assets/css/fullwidth.min.css +1 -1
- view/assets/css/global.min.css +1 -1
- view/assets/css/post.min.css +1 -1
- view/assets/css/snippet.min.css +1 -1
- view/assets/img/noconnection.png +0 -0
- view/assets/js/assistant/sq_blocksearch.min.js +1 -1
- view/assets/js/assistant/sq_blockseo.min.js +1 -1
- view/assets/js/assistant/sq_briefcase.min.js +1 -1
- view/assets/js/assistant/sq_floating.min.js +1 -1
- view/assets/js/assistant/sq_frontend.min.js +1 -1
- view/assets/js/assistant/squirrly.min.js +1 -1
- view/assets/js/briefcase.min.js +1 -1
classes/ActionController.php
CHANGED
@@ -72,17 +72,6 @@ class SQ_Classes_ActionController extends SQ_Classes_FrontController
|
|
72 |
),
|
73 |
'active' => '1',
|
74 |
),
|
75 |
-
array(
|
76 |
-
'name' => 'SQ_Core_BlockConnect',
|
77 |
-
'description' => 'Connection Block to API',
|
78 |
-
'actions' => array(
|
79 |
-
'action' => array(
|
80 |
-
'sq_cloud_connect',
|
81 |
-
'sq_cloud_disconnect',
|
82 |
-
),
|
83 |
-
),
|
84 |
-
'active' => '1',
|
85 |
-
),
|
86 |
array(
|
87 |
'name' => 'SQ_Controllers_Account',
|
88 |
'description' => 'Account Class',
|
@@ -128,6 +117,20 @@ class SQ_Classes_ActionController extends SQ_Classes_FrontController
|
|
128 |
'sq_ajax_save_post',
|
129 |
'sq_ajax_type_click',
|
130 |
'sq_ajax_search_blog',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
),
|
132 |
),
|
133 |
'active' => '1',
|
72 |
),
|
73 |
'active' => '1',
|
74 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
array(
|
76 |
'name' => 'SQ_Controllers_Account',
|
77 |
'description' => 'Account Class',
|
117 |
'sq_ajax_save_post',
|
118 |
'sq_ajax_type_click',
|
119 |
'sq_ajax_search_blog',
|
120 |
+
'sla_checkin',
|
121 |
+
'sla_keywords',
|
122 |
+
'sla_tasks',
|
123 |
+
'sla_preview',
|
124 |
+
'sla_customcall',
|
125 |
+
//--
|
126 |
+
'sla_briefcase_get',
|
127 |
+
'sla_briefcase_add',
|
128 |
+
'sla_briefcase_save',
|
129 |
+
'sla_briefcase_delete',
|
130 |
+
//--
|
131 |
+
'sla_get_freeimages',
|
132 |
+
'sla_get_googleimages',
|
133 |
+
|
134 |
),
|
135 |
),
|
136 |
'active' => '1',
|
classes/FrontController.php
CHANGED
@@ -151,6 +151,8 @@ class SQ_Classes_FrontController
|
|
151 |
SQ_Classes_ObjController::getClass('SQ_Controllers_Menu');
|
152 |
SQ_Classes_ObjController::getClass('SQ_Models_RoleManager');
|
153 |
|
|
|
|
|
154 |
}
|
155 |
|
156 |
/**
|
@@ -167,6 +169,8 @@ class SQ_Classes_FrontController
|
|
167 |
/* call the API for save posts */
|
168 |
SQ_Classes_ObjController::getClass('SQ_Controllers_Api');
|
169 |
|
|
|
|
|
170 |
}
|
171 |
|
172 |
/**
|
151 |
SQ_Classes_ObjController::getClass('SQ_Controllers_Menu');
|
152 |
SQ_Classes_ObjController::getClass('SQ_Models_RoleManager');
|
153 |
|
154 |
+
//Check cache plugin compatibility
|
155 |
+
SQ_Classes_ObjController::getClass('SQ_Models_Compatibility')->hookBuildersBackend();
|
156 |
}
|
157 |
|
158 |
/**
|
169 |
/* call the API for save posts */
|
170 |
SQ_Classes_ObjController::getClass('SQ_Controllers_Api');
|
171 |
|
172 |
+
//Check cache plugin compatibility
|
173 |
+
SQ_Classes_ObjController::getClass('SQ_Models_Compatibility')->hookBuildersFrontend();
|
174 |
}
|
175 |
|
176 |
/**
|
classes/RemoteController.php
CHANGED
@@ -302,13 +302,34 @@ class SQ_Classes_RemoteController
|
|
302 |
return (new WP_Error('maintenance', $json->error));
|
303 |
}
|
304 |
|
305 |
-
|
306 |
return (new WP_Error('api_error', $json->error));
|
307 |
|
308 |
} elseif (!isset($json->data)) {
|
309 |
return (new WP_Error('api_error', 'no_data'));
|
310 |
}
|
311 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
312 |
if (isset($json->data->offer) && $json->data->offer <> '') {
|
313 |
SQ_Classes_Helpers_Tools::saveOptions('sq_offer', $json->data->offer);
|
314 |
} else {
|
@@ -437,8 +458,151 @@ class SQ_Classes_RemoteController
|
|
437 |
|
438 |
|
439 |
/********************************
|
440 |
-
*
|
441 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
442 |
*********************/
|
443 |
public static function getBriefcaseStats($args = array())
|
444 |
{
|
302 |
return (new WP_Error('maintenance', $json->error));
|
303 |
}
|
304 |
|
305 |
+
SQ_Classes_RemoteController::connect(); //connect the website
|
306 |
return (new WP_Error('api_error', $json->error));
|
307 |
|
308 |
} elseif (!isset($json->data)) {
|
309 |
return (new WP_Error('api_error', 'no_data'));
|
310 |
}
|
311 |
|
312 |
+
//Connect the website if not yet connected
|
313 |
+
if (isset($json->data->connected) && !$json->data->connected) {
|
314 |
+
SQ_Classes_Helpers_Tools::saveOptions('sq_cloud_connect', 0);
|
315 |
+
|
316 |
+
if(function_exists('rest_get_url_prefix')) {
|
317 |
+
$apiUrl = trim(rest_get_url_prefix(), '/');
|
318 |
+
}elseif(function_exists('rest_url')) {
|
319 |
+
$apiUrl = trim(parse_url(rest_url(), PHP_URL_PATH), '/');
|
320 |
+
}
|
321 |
+
|
322 |
+
//Make sure the website exists on the Cloud
|
323 |
+
SQ_Classes_RemoteController::connect();
|
324 |
+
|
325 |
+
if ($token = SQ_Classes_RemoteController::getCloudToken(array('wp-json' => $apiUrl))) {
|
326 |
+
if(isset($token->token) && $token->token <> '') {
|
327 |
+
SQ_Classes_Helpers_Tools::saveOptions('sq_cloud_token', $token->token);
|
328 |
+
SQ_Classes_Helpers_Tools::saveOptions('sq_cloud_connect', 1);
|
329 |
+
}
|
330 |
+
}
|
331 |
+
}
|
332 |
+
|
333 |
if (isset($json->data->offer) && $json->data->offer <> '') {
|
334 |
SQ_Classes_Helpers_Tools::saveOptions('sq_offer', $json->data->offer);
|
335 |
} else {
|
458 |
|
459 |
|
460 |
/********************************
|
461 |
+
* LIVE ASSISTANT
|
462 |
+
*********************/
|
463 |
+
public static function getSLAKeywords($args = array())
|
464 |
+
{
|
465 |
+
self::$apimethod = 'get'; //call method
|
466 |
+
|
467 |
+
$json = json_decode(self::apiCall('api/posts/keyword', $args));
|
468 |
+
|
469 |
+
if (isset($json->error) && $json->error <> '') {
|
470 |
+
return (new WP_Error('api_error', $json->error));
|
471 |
+
} elseif (!isset($json->data)) {
|
472 |
+
return (new WP_Error('api_error', 'no_data'));
|
473 |
+
}
|
474 |
+
|
475 |
+
if (!empty($json->data)) {
|
476 |
+
return $json->data;
|
477 |
+
}
|
478 |
+
|
479 |
+
return false;
|
480 |
+
}
|
481 |
+
|
482 |
+
public static function getSLAPreview($args = array())
|
483 |
+
{
|
484 |
+
self::$apimethod = 'get'; //call method
|
485 |
+
|
486 |
+
$json = json_decode(self::apiCall('api/research/ib/preview', $args));
|
487 |
+
|
488 |
+
if (isset($json->error) && $json->error <> '') {
|
489 |
+
return (new WP_Error('api_error', $json->error));
|
490 |
+
} elseif (!isset($json->data)) {
|
491 |
+
return (new WP_Error('api_error', 'no_data'));
|
492 |
+
}
|
493 |
+
|
494 |
+
if (!empty($json->data)) {
|
495 |
+
return $json->data;
|
496 |
+
}
|
497 |
+
|
498 |
+
return false;
|
499 |
+
}
|
500 |
+
|
501 |
+
public static function getSLATasks($args = array())
|
502 |
+
{
|
503 |
+
self::$apimethod = 'get'; //call method
|
504 |
+
|
505 |
+
$json = json_decode(self::apiCall('api/posts/seo/tasks', $args));
|
506 |
+
|
507 |
+
if (isset($json->error) && $json->error <> '') {
|
508 |
+
return (new WP_Error('api_error', $json->error));
|
509 |
+
} elseif (!isset($json->data)) {
|
510 |
+
return (new WP_Error('api_error', 'no_data'));
|
511 |
+
}
|
512 |
+
|
513 |
+
if (!empty($json->data)) {
|
514 |
+
return $json->data;
|
515 |
+
}
|
516 |
+
|
517 |
+
return false;
|
518 |
+
}
|
519 |
+
|
520 |
+
public static function getSLABriefcase($args = array())
|
521 |
+
{
|
522 |
+
self::$apimethod = 'get'; //call method
|
523 |
+
|
524 |
+
$json = json_decode(self::apiCall('api/briefcase/optimize/get', $args));
|
525 |
+
|
526 |
+
if (isset($json->error) && $json->error <> '') {
|
527 |
+
return (new WP_Error('api_error', $json->error));
|
528 |
+
} elseif (!isset($json->data)) {
|
529 |
+
return (new WP_Error('api_error', 'no_data'));
|
530 |
+
}
|
531 |
+
|
532 |
+
if (!empty($json->data)) {
|
533 |
+
return $json->data;
|
534 |
+
}
|
535 |
+
|
536 |
+
return false;
|
537 |
+
}
|
538 |
+
|
539 |
+
public static function addSLABriefcase($args = array())
|
540 |
+
{
|
541 |
+
self::$apimethod = 'get'; //call method
|
542 |
+
|
543 |
+
$json = json_decode(self::apiCall('api/briefcase/optimize/add', $args));
|
544 |
+
|
545 |
+
if (isset($json->error) && $json->error <> '') {
|
546 |
+
return (new WP_Error('api_error', $json->error));
|
547 |
+
} elseif (!isset($json->data)) {
|
548 |
+
return (new WP_Error('api_error', 'no_data'));
|
549 |
+
}
|
550 |
+
|
551 |
+
if (!empty($json->data)) {
|
552 |
+
return $json->data;
|
553 |
+
}
|
554 |
+
|
555 |
+
return false;
|
556 |
+
}
|
557 |
+
|
558 |
+
public static function saveSLABriefcase($args = array())
|
559 |
+
{
|
560 |
+
self::$apimethod = 'get'; //call method
|
561 |
+
|
562 |
+
$json = json_decode(self::apiCall('api/briefcase/optimize/save', $args));
|
563 |
+
|
564 |
+
if (isset($json->error) && $json->error <> '') {
|
565 |
+
return (new WP_Error('api_error', $json->error));
|
566 |
+
} elseif (!isset($json->data)) {
|
567 |
+
return (new WP_Error('api_error', 'no_data'));
|
568 |
+
}
|
569 |
+
|
570 |
+
if (!empty($json->data)) {
|
571 |
+
return $json->data;
|
572 |
+
}
|
573 |
+
|
574 |
+
return false;
|
575 |
+
}
|
576 |
+
|
577 |
+
public static function deleteSLABriefcase($args = array())
|
578 |
+
{
|
579 |
+
self::$apimethod = 'get'; //call method
|
580 |
+
|
581 |
+
$json = json_decode(self::apiCall('api/briefcase/optimize/delete', $args));
|
582 |
+
|
583 |
+
if (isset($json->error) && $json->error <> '') {
|
584 |
+
return (new WP_Error('api_error', $json->error));
|
585 |
+
} elseif (!isset($json->data)) {
|
586 |
+
return (new WP_Error('api_error', 'no_data'));
|
587 |
+
}
|
588 |
+
|
589 |
+
if (!empty($json->data)) {
|
590 |
+
return $json->data;
|
591 |
+
}
|
592 |
+
|
593 |
+
return false;
|
594 |
+
}
|
595 |
+
|
596 |
+
public static function getCustomCall($url, $args = array())
|
597 |
+
{
|
598 |
+
self::$apimethod = 'get'; //call method
|
599 |
+
|
600 |
+
return self::apiCall($url, $args);
|
601 |
+
|
602 |
+
}
|
603 |
+
|
604 |
+
/********************************
|
605 |
+
* BRIEFCASE
|
606 |
*********************/
|
607 |
public static function getBriefcaseStats($args = array())
|
608 |
{
|
classes/helpers/DevKit.php
CHANGED
@@ -289,7 +289,6 @@ class SQ_Classes_Helpers_DevKit
|
|
289 |
}
|
290 |
|
291 |
} catch (Exception $e) {
|
292 |
-
SQ_Classes_Error::setMessage(sprintf(esc_html__("An error occurred during DevKit. If this error persists, please contact us at: %s", 'squirrly-seo'), _SQ_SUPPORT_URL_));
|
293 |
}
|
294 |
}
|
295 |
|
289 |
}
|
290 |
|
291 |
} catch (Exception $e) {
|
|
|
292 |
}
|
293 |
}
|
294 |
|
classes/helpers/Tools.php
CHANGED
@@ -20,45 +20,9 @@ class SQ_Classes_Helpers_Tools
|
|
20 |
{
|
21 |
self::$options = $this->getOptions();
|
22 |
|
23 |
-
// $maxmemory = self::getMaxMemory();
|
24 |
-
// if ($maxmemory && $maxmemory < 60) {
|
25 |
-
// @ini_set('memory_limit', apply_filters('admin_memory_limit', WP_MAX_MEMORY_LIMIT));
|
26 |
-
// }
|
27 |
-
|
28 |
SQ_Classes_ObjController::getClass('SQ_Classes_HookController')->setHooks($this);
|
29 |
}
|
30 |
|
31 |
-
public static function getMaxMemory()
|
32 |
-
{
|
33 |
-
try {
|
34 |
-
$memory_limit = @ini_get('memory_limit');
|
35 |
-
if ((int)$memory_limit > 0) {
|
36 |
-
if (preg_match('/^(\d+)(.)$/', $memory_limit, $matches)) {
|
37 |
-
if ($matches[2] == 'G') {
|
38 |
-
$memory_limit = $matches[1] * 1024 * 1024 * 1024; // nnnM -> nnn MB
|
39 |
-
} elseif ($matches[2] == 'M') {
|
40 |
-
$memory_limit = $matches[1] * 1024 * 1024; // nnnM -> nnn MB
|
41 |
-
} elseif ($matches[2] == 'K') {
|
42 |
-
$memory_limit = $matches[1] * 1024; // nnnK -> nnn KB
|
43 |
-
}
|
44 |
-
}
|
45 |
-
|
46 |
-
if ((int)$memory_limit > 0) {
|
47 |
-
return number_format($memory_limit / 1024 / 1024, 0, '', '');
|
48 |
-
}
|
49 |
-
}
|
50 |
-
} catch (Exception $e) {
|
51 |
-
}
|
52 |
-
|
53 |
-
return false;
|
54 |
-
|
55 |
-
}
|
56 |
-
|
57 |
-
public static function isAjax()
|
58 |
-
{
|
59 |
-
return (defined('DOING_AJAX') && DOING_AJAX);
|
60 |
-
}
|
61 |
-
|
62 |
/**
|
63 |
* This hook will save the current version in database
|
64 |
*
|
@@ -69,12 +33,37 @@ class SQ_Classes_Helpers_Tools
|
|
69 |
//Load the languages pack
|
70 |
$this->loadMultilanguage();
|
71 |
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
//add extra links to the plugin in the Plugins list
|
73 |
add_filter("plugin_row_meta", array($this, 'hookExtraLinks'), 10, 4);
|
74 |
//add setting link in plugin
|
75 |
add_filter('plugin_action_links', array($this, 'hookActionlink'), 5, 2);
|
76 |
}
|
77 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
/**
|
79 |
* Add a link to settings in the plugin list
|
80 |
*
|
@@ -800,9 +789,7 @@ class SQ_Classes_Helpers_Tools
|
|
800 |
$options = json_decode(get_option(SQ_OPTION), true);
|
801 |
|
802 |
//Check the updates from old versions of the plugin
|
803 |
-
self::checkUpdates();
|
804 |
-
|
805 |
-
|
806 |
|
807 |
//Replace the default options with the database data
|
808 |
if (is_array($options)) {
|
@@ -857,9 +844,9 @@ class SQ_Classes_Helpers_Tools
|
|
857 |
|
858 |
/**
|
859 |
* Check the updates
|
860 |
-
* @return
|
861 |
*/
|
862 |
-
public static function checkUpdates(){
|
863 |
//Update the Json-LD for Organization Logo
|
864 |
if (isset($options['sq_jsonld']['Organization']['logo']) && !is_array($options['sq_jsonld']['Organization']['logo'])) {
|
865 |
$options['sq_jsonld']['Organization']['logo'] = array(
|
@@ -888,6 +875,9 @@ class SQ_Classes_Helpers_Tools
|
|
888 |
|
889 |
unset($options['sq_jsonld']['Person']['logo']);
|
890 |
}
|
|
|
|
|
|
|
891 |
}
|
892 |
|
893 |
/**
|
@@ -1196,15 +1186,8 @@ class SQ_Classes_Helpers_Tools
|
|
1196 |
set_transient('sq_activate', true);
|
1197 |
set_transient('sq_import', true);
|
1198 |
|
1199 |
-
//
|
1200 |
-
|
1201 |
-
|
1202 |
-
//Create Qss table if not exists
|
1203 |
-
SQ_Classes_ObjController::getClass('SQ_Models_Qss')->checkTableExists();
|
1204 |
-
|
1205 |
-
//This option is use for custom Package installs
|
1206 |
-
//update text in case of devkit
|
1207 |
-
SQ_Classes_ObjController::getClass('SQ_Classes_Helpers_DevKit')->checkPluginData();
|
1208 |
|
1209 |
}
|
1210 |
|
@@ -1304,6 +1287,15 @@ class SQ_Classes_Helpers_Tools
|
|
1304 |
}
|
1305 |
}
|
1306 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1307 |
/**
|
1308 |
* Check if a plugin is installed
|
1309 |
*
|
@@ -1327,6 +1319,26 @@ class SQ_Classes_Helpers_Tools
|
|
1327 |
return false;
|
1328 |
}
|
1329 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1330 |
/**
|
1331 |
* Check if frontend and user is logged in
|
1332 |
*
|
20 |
{
|
21 |
self::$options = $this->getOptions();
|
22 |
|
|
|
|
|
|
|
|
|
|
|
23 |
SQ_Classes_ObjController::getClass('SQ_Classes_HookController')->setHooks($this);
|
24 |
}
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
/**
|
27 |
* This hook will save the current version in database
|
28 |
*
|
33 |
//Load the languages pack
|
34 |
$this->loadMultilanguage();
|
35 |
|
36 |
+
//If the token si not yet set, run the instalation process
|
37 |
+
//check the User Roles, DB and DevKit
|
38 |
+
if(!self::getOption('sq_api')){
|
39 |
+
self::install();
|
40 |
+
}
|
41 |
+
|
42 |
//add extra links to the plugin in the Plugins list
|
43 |
add_filter("plugin_row_meta", array($this, 'hookExtraLinks'), 10, 4);
|
44 |
//add setting link in plugin
|
45 |
add_filter('plugin_action_links', array($this, 'hookActionlink'), 5, 2);
|
46 |
}
|
47 |
|
48 |
+
/**
|
49 |
+
* Install the required data
|
50 |
+
*
|
51 |
+
* @return void
|
52 |
+
*/
|
53 |
+
public static function install(){
|
54 |
+
|
55 |
+
//Add the Squirrly User Role
|
56 |
+
SQ_Classes_ObjController::getClass('SQ_Models_RoleManager')->addSQRoles();
|
57 |
+
|
58 |
+
//Create Qss table if not exists
|
59 |
+
SQ_Classes_ObjController::getClass('SQ_Models_Qss')->checkTableExists();
|
60 |
+
|
61 |
+
//This option is use for custom Package installs
|
62 |
+
//update text in case of devkit
|
63 |
+
SQ_Classes_ObjController::getClass('SQ_Classes_Helpers_DevKit')->checkPluginData();
|
64 |
+
|
65 |
+
}
|
66 |
+
|
67 |
/**
|
68 |
* Add a link to settings in the plugin list
|
69 |
*
|
789 |
$options = json_decode(get_option(SQ_OPTION), true);
|
790 |
|
791 |
//Check the updates from old versions of the plugin
|
792 |
+
$options = self::checkUpdates($options);
|
|
|
|
|
793 |
|
794 |
//Replace the default options with the database data
|
795 |
if (is_array($options)) {
|
844 |
|
845 |
/**
|
846 |
* Check the updates
|
847 |
+
* @return array
|
848 |
*/
|
849 |
+
public static function checkUpdates($options){
|
850 |
//Update the Json-LD for Organization Logo
|
851 |
if (isset($options['sq_jsonld']['Organization']['logo']) && !is_array($options['sq_jsonld']['Organization']['logo'])) {
|
852 |
$options['sq_jsonld']['Organization']['logo'] = array(
|
875 |
|
876 |
unset($options['sq_jsonld']['Person']['logo']);
|
877 |
}
|
878 |
+
|
879 |
+
|
880 |
+
return $options;
|
881 |
}
|
882 |
|
883 |
/**
|
1186 |
set_transient('sq_activate', true);
|
1187 |
set_transient('sq_import', true);
|
1188 |
|
1189 |
+
//Install & Initialize
|
1190 |
+
self::install();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1191 |
|
1192 |
}
|
1193 |
|
1287 |
}
|
1288 |
}
|
1289 |
|
1290 |
+
/**
|
1291 |
+
* Check if it's Ajax Call
|
1292 |
+
* @return bool
|
1293 |
+
*/
|
1294 |
+
public static function isAjax()
|
1295 |
+
{
|
1296 |
+
return (defined('DOING_AJAX') && DOING_AJAX);
|
1297 |
+
}
|
1298 |
+
|
1299 |
/**
|
1300 |
* Check if a plugin is installed
|
1301 |
*
|
1319 |
return false;
|
1320 |
}
|
1321 |
|
1322 |
+
/**
|
1323 |
+
* Check whether the theme is active.
|
1324 |
+
*
|
1325 |
+
* @param string $theme Theme folder/main file.
|
1326 |
+
*
|
1327 |
+
* @return boolean
|
1328 |
+
*/
|
1329 |
+
public static function isThemeActive( $theme )
|
1330 |
+
{
|
1331 |
+
if (function_exists('wp_get_theme') ) {
|
1332 |
+
$themes = wp_get_theme();
|
1333 |
+
|
1334 |
+
if (isset($themes->name) && (strtolower($themes->name) == strtolower($theme) || strtolower($themes->name) == strtolower($theme) . ' child' || strtolower($themes->name) == strtolower($theme) . ' child theme') ) {
|
1335 |
+
return true;
|
1336 |
+
}
|
1337 |
+
}
|
1338 |
+
|
1339 |
+
return false;
|
1340 |
+
}
|
1341 |
+
|
1342 |
/**
|
1343 |
* Check if frontend and user is logged in
|
1344 |
*
|
controllers/Frontend.php
CHANGED
@@ -32,6 +32,10 @@ class SQ_Controllers_Frontend extends SQ_Classes_FrontController
|
|
32 |
//Check cache plugin compatibility
|
33 |
SQ_Classes_ObjController::getClass('SQ_Models_Compatibility')->checkCompatibility();
|
34 |
|
|
|
|
|
|
|
|
|
35 |
//Check if late loading is on
|
36 |
if (apply_filters('sq_lateloading', SQ_Classes_Helpers_Tools::getOption('sq_laterload'))) {
|
37 |
//Hook the buffer on both actions in case one fails
|
@@ -67,9 +71,8 @@ class SQ_Controllers_Frontend extends SQ_Classes_FrontController
|
|
67 |
return $buffer;
|
68 |
});
|
69 |
|
70 |
-
|
71 |
-
|
72 |
-
if(!SQ_Classes_ObjController::getClass('SQ_Models_Compatibility')->isBuilderEditor()) {
|
73 |
$this->model->startBuffer();
|
74 |
}
|
75 |
}
|
@@ -120,20 +123,12 @@ class SQ_Controllers_Frontend extends SQ_Classes_FrontController
|
|
120 |
public function hookFronthead()
|
121 |
{
|
122 |
|
123 |
-
if (is_admin()
|
124 |
return;
|
125 |
}
|
126 |
|
127 |
-
if
|
128 |
-
|
129 |
-
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('elementor');
|
130 |
-
}
|
131 |
-
}
|
132 |
-
|
133 |
-
if(SQ_Classes_Helpers_Tools::getOption('sq_load_css')) {
|
134 |
-
if (!SQ_Classes_Helpers_Tools::isAjax()) {
|
135 |
-
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('frontend');
|
136 |
-
}
|
137 |
}
|
138 |
}
|
139 |
|
32 |
//Check cache plugin compatibility
|
33 |
SQ_Classes_ObjController::getClass('SQ_Models_Compatibility')->checkCompatibility();
|
34 |
|
35 |
+
//Check if there is an editor loading
|
36 |
+
//Don't load Squirrly METAs while in frontend editors
|
37 |
+
SQ_Classes_ObjController::getClass('SQ_Models_Compatibility')->checkBuilderPreview();
|
38 |
+
|
39 |
//Check if late loading is on
|
40 |
if (apply_filters('sq_lateloading', SQ_Classes_Helpers_Tools::getOption('sq_laterload'))) {
|
41 |
//Hook the buffer on both actions in case one fails
|
71 |
return $buffer;
|
72 |
});
|
73 |
|
74 |
+
|
75 |
+
if(apply_filters('sq_load_buffer', true)) {
|
|
|
76 |
$this->model->startBuffer();
|
77 |
}
|
78 |
}
|
123 |
public function hookFronthead()
|
124 |
{
|
125 |
|
126 |
+
if (is_admin()) {
|
127 |
return;
|
128 |
}
|
129 |
|
130 |
+
if(apply_filters('sq_load_css', true)) {
|
131 |
+
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('frontend');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
}
|
133 |
}
|
134 |
|
controllers/Menu.php
CHANGED
@@ -56,8 +56,7 @@ class SQ_Controllers_Menu extends SQ_Classes_FrontController
|
|
56 |
}
|
57 |
}
|
58 |
|
59 |
-
|
60 |
-
$this->hookBuilders();
|
61 |
}
|
62 |
|
63 |
add_action(
|
@@ -87,9 +86,6 @@ class SQ_Controllers_Menu extends SQ_Classes_FrontController
|
|
87 |
wp_redirect(SQ_Classes_Helpers_Tools::getAdminUrl('sq_dashboard'));
|
88 |
die();
|
89 |
}
|
90 |
-
|
91 |
-
//Connect to cloud with an unique Token for API access
|
92 |
-
SQ_Classes_ObjController::getClass('SQ_Core_BlockConnect')->connectToCloud();
|
93 |
}
|
94 |
|
95 |
|
@@ -393,35 +389,38 @@ class SQ_Controllers_Menu extends SQ_Classes_FrontController
|
|
393 |
//Add Live Assistant For Selected Post Types
|
394 |
if (!empty($types)) {
|
395 |
foreach ($types as $type) {
|
396 |
-
if (is_string($type) && $type <> ''
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
$normal
|
402 |
-
|
403 |
-
$
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
|
|
|
|
410 |
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
|
415 |
-
|
416 |
-
|
417 |
-
|
|
|
418 |
}
|
419 |
}
|
420 |
}
|
421 |
|
422 |
//Load the SLA in Post
|
423 |
$this->model->addMeta(
|
424 |
-
array('
|
425 |
esc_html__('Squirrly Live Assistant', 'squirrly-seo'),
|
426 |
array(SQ_Classes_ObjController::getClass('SQ_Controllers_Post'), 'init'),
|
427 |
$type,
|
@@ -505,13 +504,6 @@ class SQ_Controllers_Menu extends SQ_Classes_FrontController
|
|
505 |
}
|
506 |
}
|
507 |
|
508 |
-
/**
|
509 |
-
* Hook the Elementor Builder
|
510 |
-
*/
|
511 |
-
public function hookBuilders()
|
512 |
-
{
|
513 |
-
add_action('elementor/editor/footer', array(SQ_Classes_ObjController::getClass('SQ_Controllers_Post'), 'loadFrontentLiveAssistant'), 99);
|
514 |
-
}
|
515 |
|
516 |
/**
|
517 |
* Count the SEO Errors from SEO Goals
|
56 |
}
|
57 |
}
|
58 |
|
59 |
+
|
|
|
60 |
}
|
61 |
|
62 |
add_action(
|
86 |
wp_redirect(SQ_Classes_Helpers_Tools::getAdminUrl('sq_dashboard'));
|
87 |
die();
|
88 |
}
|
|
|
|
|
|
|
89 |
}
|
90 |
|
91 |
|
389 |
//Add Live Assistant For Selected Post Types
|
390 |
if (!empty($types)) {
|
391 |
foreach ($types as $type) {
|
392 |
+
if (is_string($type) && $type <> '') {
|
393 |
+
$metas = SQ_Classes_Helpers_Tools::getUserMeta('meta-box-order_' . $type);
|
394 |
+
if(is_string($metas) && $metas <> '' && $metabox = unserialize($metas)) {
|
395 |
+
extract($metabox);
|
396 |
+
|
397 |
+
if (isset($side) && isset($normal) && is_string($side) && is_string($normal)) {
|
398 |
+
$side = explode(',', $side);
|
399 |
+
$normal = explode(',', $normal);
|
400 |
+
if (in_array('postsquirrly', $normal)) {
|
401 |
+
$side = array_merge(array('postsquirrly'), $side);
|
402 |
+
$metabox['side'] = join(',', array_unique($side));
|
403 |
+
|
404 |
+
$normal = array_diff($normal, array('postsquirrly'));
|
405 |
+
$metabox['normal'] = join(',', array_unique($normal));
|
406 |
+
SQ_Classes_Helpers_Tools::saveUserMeta('meta-box-order_' . $type, $metabox);
|
407 |
+
}
|
408 |
|
409 |
+
if (in_array('sq_blocksnippet', $side)) {
|
410 |
+
$normal = array_merge(array('sq_blocksnippet'), $normal);
|
411 |
+
$metabox['normal'] = join(',', array_unique($normal));
|
412 |
|
413 |
+
$side = array_diff($side, array('sq_blocksnippet'));
|
414 |
+
$metabox['side'] = join(',', array_unique($side));
|
415 |
+
SQ_Classes_Helpers_Tools::saveUserMeta('meta-box-order_' . $type, $metabox);
|
416 |
+
}
|
417 |
}
|
418 |
}
|
419 |
}
|
420 |
|
421 |
//Load the SLA in Post
|
422 |
$this->model->addMeta(
|
423 |
+
array('postsquirrly',
|
424 |
esc_html__('Squirrly Live Assistant', 'squirrly-seo'),
|
425 |
array(SQ_Classes_ObjController::getClass('SQ_Controllers_Post'), 'init'),
|
426 |
$type,
|
504 |
}
|
505 |
}
|
506 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
507 |
|
508 |
/**
|
509 |
* Count the SEO Errors from SEO Goals
|
controllers/Post.php
CHANGED
@@ -418,35 +418,155 @@ class SQ_Controllers_Post extends SQ_Classes_FrontController
|
|
418 |
SQ_Classes_Helpers_Tools::saveOptions('sq_img_licence', SQ_Classes_Helpers_Tools::getValue('licence'));
|
419 |
exit();
|
420 |
case 'sq_ajax_search_blog':
|
421 |
-
|
422 |
-
|
423 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
424 |
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
$
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
$responce = array();
|
438 |
-
if ($posts = SQ_Classes_ObjController::getClass('SQ_Models_Post')->searchPost($args)) {
|
439 |
-
foreach ($posts as $post) {
|
440 |
-
$responce['results'][] = array('id' => $post->ID,
|
441 |
-
'url' => get_permalink($post->ID),
|
442 |
-
'title' => $post->post_title,
|
443 |
-
'content' => SQ_Classes_Helpers_Sanitize::truncate($post->post_content, 50),
|
444 |
-
'date' => $post->post_date_gmt);
|
445 |
}
|
446 |
-
}
|
447 |
|
448 |
-
|
449 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
450 |
}
|
451 |
}
|
452 |
|
@@ -523,156 +643,6 @@ class SQ_Controllers_Post extends SQ_Classes_FrontController
|
|
523 |
return get_permalink($post->ID);
|
524 |
}
|
525 |
|
526 |
-
/**
|
527 |
-
* Load Squirrly Assistant in frontend
|
528 |
-
*/
|
529 |
-
public function loadFrontentLiveAssistant()
|
530 |
-
{
|
531 |
-
//Load the Frontend Assistant for the current post
|
532 |
-
if (SQ_Classes_Helpers_Tools::getOption('sq_sla_frontend')) {
|
533 |
-
|
534 |
-
$elementor = (SQ_Classes_Helpers_Tools::getValue('action', false) == 'elementor');
|
535 |
-
|
536 |
-
if (($elementor && is_admin())) {
|
537 |
-
global $post;
|
538 |
-
|
539 |
-
if (isset($post->ID) && isset($post->post_type)) {
|
540 |
-
$types = get_post_types(array('public' => true));
|
541 |
-
|
542 |
-
//Exclude types for SLA
|
543 |
-
$excludes = SQ_Classes_Helpers_Tools::getOption('sq_sla_exclude_post_types');
|
544 |
-
if (!empty($types) && !empty($excludes)) {
|
545 |
-
foreach ($excludes as $exclude) {
|
546 |
-
if (in_array($exclude, $types)) {
|
547 |
-
unset($types[$exclude]);
|
548 |
-
}
|
549 |
-
}
|
550 |
-
}
|
551 |
-
|
552 |
-
if (in_array($post->post_type, (array)$types)) {
|
553 |
-
//Load the assistant for frontend
|
554 |
-
if (!wp_script_is('jquery')) {
|
555 |
-
wp_enqueue_script('jquery');
|
556 |
-
}
|
557 |
-
|
558 |
-
//load the draggable script in post edit for the floating SLA
|
559 |
-
wp_enqueue_script("jquery-ui-core");
|
560 |
-
wp_enqueue_script("jquery-ui-draggable");
|
561 |
-
|
562 |
-
SQ_Classes_ObjController::getClass('SQ_Classes_RemoteController');
|
563 |
-
SQ_Classes_ObjController::getClass('SQ_Classes_ActionController')->hookHead();
|
564 |
-
|
565 |
-
$this->show_view('Blocks/FrontendAssistant');
|
566 |
-
}
|
567 |
|
568 |
-
}
|
569 |
-
}
|
570 |
-
|
571 |
-
}
|
572 |
-
}
|
573 |
-
|
574 |
-
/**
|
575 |
-
* Load the JS for API
|
576 |
-
*/
|
577 |
-
public static function loadLiveAssistant()
|
578 |
-
{
|
579 |
-
global $post;
|
580 |
-
$referer = '';
|
581 |
-
|
582 |
-
$metas = json_decode(wp_json_encode(SQ_Classes_Helpers_Tools::getOption('sq_metas')));
|
583 |
-
$sq_postID = (isset($post->ID) ? $post->ID : 0);
|
584 |
-
|
585 |
-
//Load Squirrly Live Assistant for Elementor builder
|
586 |
-
if (SQ_Classes_Helpers_Tools::isPluginInstalled('elementor/elementor.php')) {
|
587 |
-
if (SQ_Classes_Helpers_Tools::getOption('sq_sla_frontend')) {
|
588 |
-
$referer = get_post_meta($sq_postID, '_sq_sla', true);
|
589 |
-
}
|
590 |
-
}
|
591 |
-
|
592 |
-
echo '<script>
|
593 |
-
var SQ_DEBUG = ' . (int)SQ_DEBUG . ';
|
594 |
-
(function($){
|
595 |
-
$.sq_config = {
|
596 |
-
sq_version: "' . esc_attr(SQ_VERSION) . '",
|
597 |
-
token: "' . esc_attr(SQ_Classes_Helpers_Tools::getOption('sq_api')) . '",
|
598 |
-
url_token: "' . (SQ_Classes_Helpers_Tools::getOption('sq_cloud_connect') ? esc_attr(SQ_Classes_Helpers_Tools::getOption('sq_cloud_token')) : false) . '",
|
599 |
-
sq_apiurl: "' . esc_url(_SQ_APIV2_URL_) . '",
|
600 |
-
user_url: "' . esc_url(apply_filters('sq_homeurl', get_bloginfo('url'))) . '",
|
601 |
-
language: "' . esc_attr(apply_filters('sq_language', get_bloginfo('language'))) . '",
|
602 |
-
referer: "' . esc_attr($referer) . '",
|
603 |
-
sq_keywordtag: ' . (int)SQ_Classes_Helpers_Tools::getOption('sq_keywordtag') . ',
|
604 |
-
sq_keyword_help: ' . (int)SQ_Classes_Helpers_Tools::getOption('sq_keyword_help') . ',
|
605 |
-
frontend_css: "' . esc_url(_SQ_ASSETS_URL_ . 'css/frontend' . (SQ_DEBUG ? '' : '.min') . '.css') . '",
|
606 |
-
postID: "' . (int)$sq_postID . '",
|
607 |
-
prevNonce: "' . esc_attr(wp_create_nonce('post_preview_' . $sq_postID)) . '",
|
608 |
-
__keyword: "' . esc_html__('Keyword:', 'squirrly-seo') . '",
|
609 |
-
__date: "' . esc_html__('date', 'squirrly-seo') . '",
|
610 |
-
__noconnection: "' . esc_html__("To load the Live Assistant and optimize this page, click to connect to Squirrly Cloud.", 'squirrly-seo') . '",
|
611 |
-
__saved: "' . esc_html__('Saved!', 'squirrly-seo') . '",
|
612 |
-
__readit: "' . esc_html__('Read it!', 'squirrly-seo') . '",
|
613 |
-
__insertit: "' . esc_html__('Insert it!', 'squirrly-seo') . '",
|
614 |
-
__reference: "' . esc_html__('Reference', 'squirrly-seo') . '",
|
615 |
-
__insertasbox: "' . esc_html__('Insert as box', 'squirrly-seo') . '",
|
616 |
-
__addlink: "' . esc_html__('Insert Link', 'squirrly-seo') . '",
|
617 |
-
__notrelevant: "' . esc_html__('Not relevant?', 'squirrly-seo') . '",
|
618 |
-
__insertparagraph: "' . esc_html__('Insert in your article', 'squirrly-seo') . '",
|
619 |
-
__ajaxerror: "' . esc_html__(':( An error occurred while processing your request. Please try again', 'squirrly-seo') . '",
|
620 |
-
__nofound: "' . esc_html__('No results found!', 'squirrly-seo') . '",
|
621 |
-
__sq_photo_copyright: "' . esc_html__('[ ATTRIBUTE: Please check: %s to find out how to attribute this image ]', 'squirrly-seo') . '",
|
622 |
-
__has_attributes: "' . esc_html__('Has creative commons attributes', 'squirrly-seo') . '",
|
623 |
-
__no_attributes: "' . esc_html__('No known copyright restrictions', 'squirrly-seo') . '",
|
624 |
-
__noopt: "' . esc_html__('You haven`t used Squirrly SEO to optimize your article. Do you want to optimize for a keyword before publishing?', 'squirrly-seo') . '",
|
625 |
-
__subscription_expired: "' . esc_html__('Your Subscription has Expired', 'squirrly-seo') . '",
|
626 |
-
__no_briefcase: "' . esc_html__('There are no keywords saved in briefcase yet', 'squirrly-seo') . '",
|
627 |
-
__fulloptimized: "' . esc_html__('Congratulations! Your article is 100% optimized!', 'squirrly-seo') . '",
|
628 |
-
__toomanytimes: "' . esc_html__('appears too many times. Try to remove %s of them', 'squirrly-seo') . '",
|
629 |
-
__writemorewords: "' . esc_html__('write %s more words', 'squirrly-seo') . '",
|
630 |
-
__keywordinintroduction: "' . esc_html__('Add the keyword in the %s of your article', 'squirrly-seo') . '",
|
631 |
-
__clicktohighlight: "' . esc_html__('Click to keep the highlight on', 'squirrly-seo') . '",
|
632 |
-
__introduction: "' . esc_html__('introduction', 'squirrly-seo') . '",
|
633 |
-
__morewordsafter: "' . esc_html__('Write more words after the %s keyword', 'squirrly-seo') . '",
|
634 |
-
__orusesynonyms: "' . esc_html__('or use synonyms', 'squirrly-seo') . '",
|
635 |
-
__addmorewords: "' . esc_html__('add %s more word(s)', 'squirrly-seo') . '",
|
636 |
-
__removewords: "' . esc_html__('or remove %s word(s)', 'squirrly-seo') . '",
|
637 |
-
__addmorekeywords: "' . esc_html__('add the selected keyword %s more time(s) ', 'squirrly-seo') . '",
|
638 |
-
__addminimumwords: "' . esc_html__('write %s more words to start calculating', 'squirrly-seo') . '",
|
639 |
-
__add_to_briefcase: "' . esc_html__('Add to Briefcase', 'squirrly-seo') . '",
|
640 |
-
__add_keyword_briefcase: "' . esc_html__('Add Keyword to Briefcase', 'squirrly-seo') . '",
|
641 |
-
__usekeyword: "' . esc_html__('Select', 'squirrly-seo') . '",
|
642 |
-
__new_post_title: "' . esc_html__('Auto Draft') . '",
|
643 |
-
__enter_keyword: "' . esc_html__('Enter keyword above and press ENTER', 'squirrly-seo') . '",
|
644 |
-
__add_keyword: "' . esc_html__('Add Keywords from Briefcase', 'squirrly-seo') . '",
|
645 |
-
__frontend_optimized: "' . esc_html__('Live Assistant was used to optimize this page with the Page Builder. Please go back and resume your optimization work there.', 'squirrly-seo') . '",
|
646 |
-
};
|
647 |
-
$.sq_params = {
|
648 |
-
max_length_title: ' . (int)$metas->title_maxlength . ',
|
649 |
-
max_length_description: ' . (int)$metas->description_maxlength . ',
|
650 |
-
};
|
651 |
-
|
652 |
-
})(jQuery);
|
653 |
-
</script>';
|
654 |
-
|
655 |
-
if (is_rtl()) {
|
656 |
-
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('sqbootstrap.rtl');
|
657 |
-
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('rtl');
|
658 |
-
} else {
|
659 |
-
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('sqbootstrap');
|
660 |
-
}
|
661 |
-
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('logo');
|
662 |
-
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('post');
|
663 |
-
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('fontawesome');
|
664 |
-
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('assistant/utils/mark'.(SQ_DEBUG ? '' : '.min').'.js');
|
665 |
-
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('assistant/utils/xregexp'.(SQ_DEBUG ? '' : '.min').'.js');
|
666 |
-
|
667 |
-
if(SQ_Classes_Helpers_Tools::getOption('sq_sla_type') <> 'integrated') {
|
668 |
-
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('assistant/sq_floating' . (SQ_DEBUG ? '' : '.min') . '.js');
|
669 |
-
}
|
670 |
-
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('assistant/sq_briefcase'.(SQ_DEBUG ? '' : '.min').'.js');
|
671 |
-
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('assistant/sq_frontend'.(SQ_DEBUG ? '' : '.min').'.js');
|
672 |
-
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('assistant/sq_blockseo'.(SQ_DEBUG ? '' : '.min').'.js');
|
673 |
-
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('assistant/sq_blocksearch'.(SQ_DEBUG ? '' : '.min').'.js');
|
674 |
-
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('assistant/squirrly'.(SQ_DEBUG ? '' : '.min').'.js');
|
675 |
-
|
676 |
-
}
|
677 |
|
678 |
}
|
418 |
SQ_Classes_Helpers_Tools::saveOptions('sq_img_licence', SQ_Classes_Helpers_Tools::getValue('licence'));
|
419 |
exit();
|
420 |
case 'sq_ajax_search_blog':
|
421 |
+
$args = array();
|
422 |
+
$args['post_type'] = 'post';
|
423 |
+
$args['post_status'] = 'publish';
|
424 |
+
|
425 |
+
parse_str(SQ_Classes_Helpers_Tools::getValue('params'), $args);
|
426 |
+
if (isset($args['exclude'])) $args['post__not_in'] = array((int)$args['exclude']);
|
427 |
+
if (isset($args['nrb'])) $args['posts_per_page'] = (int)$args['nrb'];
|
428 |
+
|
429 |
+
$responce = array();
|
430 |
+
if ($posts = SQ_Classes_ObjController::getClass('SQ_Models_Post')->searchPost($args)) {
|
431 |
+
foreach ($posts as $post) {
|
432 |
+
$responce['results'][] = array('id' => $post->ID,
|
433 |
+
'url' => get_permalink($post->ID),
|
434 |
+
'title' => $post->post_title,
|
435 |
+
'content' => SQ_Classes_Helpers_Sanitize::truncate($post->post_content, 50),
|
436 |
+
'date' => $post->post_date_gmt);
|
437 |
+
}
|
438 |
+
}
|
439 |
|
440 |
+
SQ_Classes_Helpers_Tools::setHeader('json');
|
441 |
+
echo wp_json_encode($responce);
|
442 |
+
exit();
|
443 |
+
////////
|
444 |
+
case 'sla_checkin':
|
445 |
+
SQ_Classes_Helpers_Tools::setHeader('json');
|
446 |
+
|
447 |
+
$checkin = SQ_Classes_RemoteController::checkin();
|
448 |
+
if (is_wp_error($checkin)) {
|
449 |
+
echo wp_json_encode(array('error' => $checkin->get_error_message()));
|
450 |
+
}else{
|
451 |
+
echo wp_json_encode(array('data' => $checkin));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
452 |
}
|
|
|
453 |
|
454 |
+
exit();
|
455 |
+
case 'sla_keywords':
|
456 |
+
SQ_Classes_Helpers_Tools::setHeader('json');
|
457 |
+
|
458 |
+
$args = array(
|
459 |
+
'post_id' => SQ_Classes_Helpers_Tools::getValue('post_id'),
|
460 |
+
);
|
461 |
+
|
462 |
+
$response = SQ_Classes_RemoteController::getSLAKeywords($args);
|
463 |
+
if (is_wp_error($response)) {
|
464 |
+
echo wp_json_encode(array('error' => $response->get_error_message()));
|
465 |
+
}else{
|
466 |
+
echo wp_json_encode(array('data' => $response));
|
467 |
+
}
|
468 |
+
|
469 |
+
exit();
|
470 |
+
case 'sla_preview':
|
471 |
+
SQ_Classes_Helpers_Tools::setHeader('json');
|
472 |
+
|
473 |
+
$args = array(
|
474 |
+
'filter' => SQ_Classes_Helpers_Tools::getValue('filter'),
|
475 |
+
'link' => SQ_Classes_Helpers_Tools::getValue('link'),
|
476 |
+
);
|
477 |
+
|
478 |
+
$response = SQ_Classes_RemoteController::getSLAPreview($args);
|
479 |
+
if (is_wp_error($response)) {
|
480 |
+
echo wp_json_encode(array('error' => $response->get_error_message()));
|
481 |
+
}else{
|
482 |
+
echo wp_json_encode(array('data' => $response));
|
483 |
+
}
|
484 |
+
|
485 |
+
exit();
|
486 |
+
case 'sla_tasks':
|
487 |
+
SQ_Classes_Helpers_Tools::setHeader('json');
|
488 |
+
|
489 |
+
$response = SQ_Classes_RemoteController::getSLATasks();
|
490 |
+
if (is_wp_error($response)) {
|
491 |
+
echo wp_json_encode(array('error' => $response->get_error_message()));
|
492 |
+
}else{
|
493 |
+
echo wp_json_encode(array('data' => $response));
|
494 |
+
}
|
495 |
+
|
496 |
+
exit();
|
497 |
+
case 'sla_briefcase_get':
|
498 |
+
SQ_Classes_Helpers_Tools::setHeader('json');
|
499 |
+
|
500 |
+
$args = array(
|
501 |
+
'post_id' => SQ_Classes_Helpers_Tools::getValue('post_id'),
|
502 |
+
'search' => SQ_Classes_Helpers_Tools::getValue('search'),
|
503 |
+
'label' => SQ_Classes_Helpers_Tools::getValue('label'),
|
504 |
+
'return' => SQ_Classes_Helpers_Tools::getValue('return'),
|
505 |
+
);
|
506 |
+
|
507 |
+
$response = SQ_Classes_RemoteController::getSLABriefcase($args);
|
508 |
+
if (is_wp_error($response)) {
|
509 |
+
echo wp_json_encode(array('error' => $response->get_error_message()));
|
510 |
+
}else{
|
511 |
+
echo wp_json_encode(array('data' => $response));
|
512 |
+
}
|
513 |
+
|
514 |
+
exit();
|
515 |
+
case 'sla_briefcase_add':
|
516 |
+
SQ_Classes_Helpers_Tools::setHeader('json');
|
517 |
+
|
518 |
+
$args = array(
|
519 |
+
'post_id' => SQ_Classes_Helpers_Tools::getValue('post_id'),
|
520 |
+
'keyword' => SQ_Classes_Helpers_Tools::getValue('keyword'),
|
521 |
+
);
|
522 |
+
|
523 |
+
$response = SQ_Classes_RemoteController::addSLABriefcase($args);
|
524 |
+
if (is_wp_error($response)) {
|
525 |
+
echo wp_json_encode(array('error' => $response->get_error_message()));
|
526 |
+
}else{
|
527 |
+
echo wp_json_encode(array('data' => $response));
|
528 |
+
}
|
529 |
+
|
530 |
+
exit();
|
531 |
+
case 'sla_briefcase_delete':
|
532 |
+
SQ_Classes_Helpers_Tools::setHeader('json');
|
533 |
+
|
534 |
+
$args = array(
|
535 |
+
'id' => SQ_Classes_Helpers_Tools::getValue('id'),
|
536 |
+
);
|
537 |
+
|
538 |
+
$response = SQ_Classes_RemoteController::deleteSLABriefcase($args);
|
539 |
+
if (is_wp_error($response)) {
|
540 |
+
echo wp_json_encode(array('error' => $response->get_error_message()));
|
541 |
+
}else{
|
542 |
+
echo wp_json_encode(array('data' => $response));
|
543 |
+
}
|
544 |
+
|
545 |
+
exit();
|
546 |
+
case 'sla_briefcase_save':
|
547 |
+
SQ_Classes_Helpers_Tools::setHeader('json');
|
548 |
+
|
549 |
+
$args = array(
|
550 |
+
'post_id' => SQ_Classes_Helpers_Tools::getValue('post_id'),
|
551 |
+
'optimizations' => SQ_Classes_Helpers_Tools::getValue('optimizations'),
|
552 |
+
);
|
553 |
+
|
554 |
+
$response = SQ_Classes_RemoteController::saveSLABriefcase($args);
|
555 |
+
if (is_wp_error($response)) {
|
556 |
+
echo wp_json_encode(array('error' => $response->get_error_message()));
|
557 |
+
}else{
|
558 |
+
echo wp_json_encode(array('data' => $response));
|
559 |
+
}
|
560 |
+
|
561 |
+
exit();
|
562 |
+
|
563 |
+
case 'sla_customcall':
|
564 |
+
SQ_Classes_Helpers_Tools::setHeader('json');
|
565 |
+
$url = SQ_Classes_Helpers_Tools::getValue('url');
|
566 |
+
parse_str(SQ_Classes_Helpers_Tools::getValue('params'), $args);
|
567 |
+
|
568 |
+
echo SQ_Classes_RemoteController::getCustomCall($url, $args);
|
569 |
+
exit();
|
570 |
}
|
571 |
}
|
572 |
|
643 |
return get_permalink($post->ID);
|
644 |
}
|
645 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
646 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
647 |
|
648 |
}
|
controllers/PostsList.php
CHANGED
@@ -85,8 +85,8 @@ class SQ_Controllers_PostsList extends SQ_Classes_FrontController
|
|
85 |
|
86 |
//Update post status on API
|
87 |
add_action('before_delete_post', array($this->model, 'hookUpdateStatus'), 10, 1);
|
88 |
-
add_action('untrashed_post', array($this->model, 'hookUpdateStatus'), 10, 1);
|
89 |
-
add_action('trashed_post', array($this->model, 'hookUpdateStatus'), 10, 1);
|
90 |
|
91 |
}
|
92 |
|
85 |
|
86 |
//Update post status on API
|
87 |
add_action('before_delete_post', array($this->model, 'hookUpdateStatus'), 10, 1);
|
88 |
+
// add_action('untrashed_post', array($this->model, 'hookUpdateStatus'), 10, 1);
|
89 |
+
// add_action('trashed_post', array($this->model, 'hookUpdateStatus'), 10, 1);
|
90 |
|
91 |
}
|
92 |
|
core/BlockFeatures.php
CHANGED
@@ -286,6 +286,20 @@ class SQ_Core_BlockFeatures extends SQ_Classes_BlockController
|
|
286 |
'details' => 'https://howto12.squirrly.co/kb/squirrly-live-assistant/#elementor',
|
287 |
'show' => (SQ_Classes_Helpers_Tools::isPluginInstalled('elementor/elementor.php') && SQ_Classes_Helpers_Tools::getMenuVisible('show_assistant')),
|
288 |
),//Live Assistant Elementor
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
289 |
array(
|
290 |
'title' => "Blogging Assistant",
|
291 |
'description' => "Add relevant <strong>Copyright-Free images, Tweets, Wikis, Blog Excerpts</strong> in your posts.",
|
@@ -722,6 +736,7 @@ class SQ_Core_BlockFeatures extends SQ_Classes_BlockController
|
|
722 |
'link' => SQ_Classes_Helpers_Tools::getAdminUrl('sq_automation', 'automation'),
|
723 |
'details' => 'https://howto12.squirrly.co/kb/seo-automation/',
|
724 |
'show' => true,
|
|
|
725 |
),//SEO Automation
|
726 |
|
727 |
|
286 |
'details' => 'https://howto12.squirrly.co/kb/squirrly-live-assistant/#elementor',
|
287 |
'show' => (SQ_Classes_Helpers_Tools::isPluginInstalled('elementor/elementor.php') && SQ_Classes_Helpers_Tools::getMenuVisible('show_assistant')),
|
288 |
),//Live Assistant Elementor
|
289 |
+
array(
|
290 |
+
'title' => "Oxygen Website Builder",
|
291 |
+
'description' => "The SEO Live Assistant <strong>works on the front-end of Oxygen</strong>, just as you're creating or editing your Oxygen page.",
|
292 |
+
'category' => "Assistants",
|
293 |
+
'mainfeature' => false,
|
294 |
+
'option' => 'sq_sla_frontend',
|
295 |
+
'active' => SQ_Classes_Helpers_Tools::getOption('sq_sla_frontend'),
|
296 |
+
'optional' => true,
|
297 |
+
'connection' => false,
|
298 |
+
'logo' => 'fa-solid fa-message',
|
299 |
+
'link' => SQ_Classes_Helpers_Tools::getAdminUrl('sq_assistant', 'settings'),
|
300 |
+
'details' => 'https://howto12.squirrly.co/kb/squirrly-live-assistant/#oxygen',
|
301 |
+
'show' => (SQ_Classes_Helpers_Tools::isPluginInstalled('oxygen/functions.php') && SQ_Classes_Helpers_Tools::getMenuVisible('show_assistant')),
|
302 |
+
),//Live Assistant Oxygen
|
303 |
array(
|
304 |
'title' => "Blogging Assistant",
|
305 |
'description' => "Add relevant <strong>Copyright-Free images, Tweets, Wikis, Blog Excerpts</strong> in your posts.",
|
736 |
'link' => SQ_Classes_Helpers_Tools::getAdminUrl('sq_automation', 'automation'),
|
737 |
'details' => 'https://howto12.squirrly.co/kb/seo-automation/',
|
738 |
'show' => true,
|
739 |
+
'keywords' => 'pattern,patterns,automation,seo'
|
740 |
),//SEO Automation
|
741 |
|
742 |
|
core/Blocklogin.php
CHANGED
@@ -73,9 +73,6 @@ class SQ_Core_Blocklogin extends SQ_Classes_BlockController
|
|
73 |
} elseif (isset($responce->token)) { //check if token is set and save it
|
74 |
SQ_Classes_Helpers_Tools::saveOptions('sq_api', $responce->token);
|
75 |
|
76 |
-
//Connect to cloud with an unique blog Token for API access
|
77 |
-
SQ_Classes_ObjController::getClass('SQ_Core_BlockConnect')->connectToCloud();
|
78 |
-
|
79 |
//redirect users to onboarding if necessary
|
80 |
wp_redirect(SQ_Classes_Helpers_Tools::getAdminUrl('sq_dashboard'));
|
81 |
die();
|
@@ -126,9 +123,6 @@ class SQ_Core_Blocklogin extends SQ_Classes_BlockController
|
|
126 |
} elseif (isset($responce->token)) { //check if token is set and save it
|
127 |
SQ_Classes_Helpers_Tools::saveOptions('sq_api', $responce->token);
|
128 |
|
129 |
-
//Connect to cloud with an unique blog Token for API access
|
130 |
-
SQ_Classes_ObjController::getClass('SQ_Core_BlockConnect')->connectToCloud();
|
131 |
-
|
132 |
//redirect users to onboarding if necessary
|
133 |
wp_redirect(SQ_Classes_Helpers_Tools::getAdminUrl('sq_dashboard'));
|
134 |
die();
|
73 |
} elseif (isset($responce->token)) { //check if token is set and save it
|
74 |
SQ_Classes_Helpers_Tools::saveOptions('sq_api', $responce->token);
|
75 |
|
|
|
|
|
|
|
76 |
//redirect users to onboarding if necessary
|
77 |
wp_redirect(SQ_Classes_Helpers_Tools::getAdminUrl('sq_dashboard'));
|
78 |
die();
|
123 |
} elseif (isset($responce->token)) { //check if token is set and save it
|
124 |
SQ_Classes_Helpers_Tools::saveOptions('sq_api', $responce->token);
|
125 |
|
|
|
|
|
|
|
126 |
//redirect users to onboarding if necessary
|
127 |
wp_redirect(SQ_Classes_Helpers_Tools::getAdminUrl('sq_dashboard'));
|
128 |
die();
|
models/Compatibility.php
CHANGED
@@ -82,30 +82,27 @@ class SQ_Models_Compatibility
|
|
82 |
if (defined('SWIS_PLUGIN_VERSION')) {
|
83 |
add_filter('sq_lateloading', '__return_true');
|
84 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
}
|
86 |
|
|
|
|
|
87 |
/**
|
88 |
* Check if there is an editor loading in frontend
|
89 |
* Don't load Squirrly METAs while in frontend editors
|
90 |
*
|
91 |
* @return bool
|
92 |
*/
|
93 |
-
public function
|
94 |
{
|
95 |
|
96 |
if (function_exists('is_user_logged_in') && is_user_logged_in()) {
|
97 |
|
98 |
-
if (SQ_Classes_Helpers_Tools::isPluginInstalled('oxygen/functions.php')) {
|
99 |
-
if (SQ_Classes_Helpers_Tools::getValue('ct_builder', false) || SQ_Classes_Helpers_Tools::getValue('ct_template', false)) {
|
100 |
-
return true;
|
101 |
-
}
|
102 |
-
}
|
103 |
-
if (SQ_Classes_Helpers_Tools::isPluginInstalled('elementor/elementor.php')) {
|
104 |
-
if (SQ_Classes_Helpers_Tools::getValue('elementor-preview', false)) {
|
105 |
-
return true;
|
106 |
-
}
|
107 |
-
}
|
108 |
-
|
109 |
$builder_paramas = array(
|
110 |
'fl_builder', //Beaver Builder
|
111 |
'fb-edit', //Fusion Builder
|
@@ -129,6 +126,8 @@ class SQ_Models_Compatibility
|
|
129 |
|
130 |
foreach ($builder_paramas as $param) {
|
131 |
if (SQ_Classes_Helpers_Tools::getIsset($param)) {
|
|
|
|
|
132 |
return true;
|
133 |
}
|
134 |
}
|
@@ -138,6 +137,141 @@ class SQ_Models_Compatibility
|
|
138 |
return false;
|
139 |
}
|
140 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
/**
|
142 |
* Remove the action for WP Bakery shortcodes for Sitemap XML
|
143 |
*/
|
@@ -156,7 +290,6 @@ class SQ_Models_Compatibility
|
|
156 |
public function hookPostEditorBackend()
|
157 |
{
|
158 |
add_action('admin_footer', array($this, 'checkOxygenBuilder'), PHP_INT_MAX);
|
159 |
-
//add_action('admin_footer', array($this, 'checkZionBuilder'), PHP_INT_MAX);
|
160 |
}
|
161 |
|
162 |
/**
|
82 |
if (defined('SWIS_PLUGIN_VERSION')) {
|
83 |
add_filter('sq_lateloading', '__return_true');
|
84 |
}
|
85 |
+
|
86 |
+
//Check if frontend css should load
|
87 |
+
if(!SQ_Classes_Helpers_Tools::getOption('sq_load_css') || (defined('SQ_NOCSS') && SQ_NOCSS) || SQ_Classes_Helpers_Tools::isAjax()) {
|
88 |
+
add_filter('sq_load_css', '__return_false');
|
89 |
+
}
|
90 |
+
|
91 |
}
|
92 |
|
93 |
+
|
94 |
+
|
95 |
/**
|
96 |
* Check if there is an editor loading in frontend
|
97 |
* Don't load Squirrly METAs while in frontend editors
|
98 |
*
|
99 |
* @return bool
|
100 |
*/
|
101 |
+
public function checkBuilderPreview()
|
102 |
{
|
103 |
|
104 |
if (function_exists('is_user_logged_in') && is_user_logged_in()) {
|
105 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
$builder_paramas = array(
|
107 |
'fl_builder', //Beaver Builder
|
108 |
'fb-edit', //Fusion Builder
|
126 |
|
127 |
foreach ($builder_paramas as $param) {
|
128 |
if (SQ_Classes_Helpers_Tools::getIsset($param)) {
|
129 |
+
add_filter('sq_load_buffer', '__return_false');
|
130 |
+
add_filter('sq_load_css', '__return_false');
|
131 |
return true;
|
132 |
}
|
133 |
}
|
137 |
return false;
|
138 |
}
|
139 |
|
140 |
+
|
141 |
+
/**
|
142 |
+
* Hook the Builders and load SLA
|
143 |
+
*/
|
144 |
+
public function hookBuildersBackend() {
|
145 |
+
|
146 |
+
//Check if SLA frontend is enabled
|
147 |
+
if (SQ_Classes_Helpers_Tools::getOption('sq_sla_frontend')) {
|
148 |
+
|
149 |
+
//Load SLA in Elementor Backend
|
150 |
+
if (SQ_Classes_Helpers_Tools::getValue('action') == 'elementor' && is_admin()) {
|
151 |
+
//activate frontend SLA
|
152 |
+
add_filter('sq_load_frontend_sla', '__return_true');
|
153 |
+
|
154 |
+
//activate SLA for elementor on frontend
|
155 |
+
add_action('elementor/editor/footer', array(SQ_Classes_ObjController::getClass('SQ_Models_LiveAssistant'), 'loadFrontent'), 99);
|
156 |
+
}
|
157 |
+
|
158 |
+
//Load SLA in WPBakery Frontend
|
159 |
+
// if (SQ_Classes_Helpers_Tools::isPluginInstalled('js_composer/js_composer.php')) {
|
160 |
+
// if (SQ_Classes_Helpers_Tools::getValue('vc_action') == 'vc_inline') {
|
161 |
+
// //activate frontend SLA
|
162 |
+
// add_filter('sq_load_frontend_sla', '__return_true');
|
163 |
+
//
|
164 |
+
// //hook the WPBakery editor
|
165 |
+
// add_action('vc_frontend_editor_render_template', array(SQ_Classes_ObjController::getClass('SQ_Models_LiveAssistant'), 'loadFrontent'), 99);
|
166 |
+
// }
|
167 |
+
// }
|
168 |
+
|
169 |
+
//Load SLA in Zion Backend
|
170 |
+
// if (SQ_Classes_Helpers_Tools::isPluginInstalled('zionbuilder/zionbuilder.php')) {
|
171 |
+
// if (SQ_Classes_Helpers_Tools::getValue('action') == 'zion_builder_active') {
|
172 |
+
// //activate frontend SLA
|
173 |
+
// add_filter('sq_load_frontend_sla', '__return_true');
|
174 |
+
//
|
175 |
+
// wp_enqueue_script('jquery');
|
176 |
+
// wp_enqueue_script('jquery-ui-core');
|
177 |
+
// wp_enqueue_script('jquery-ui-draggable');
|
178 |
+
// wp_print_scripts(array('jquery', 'jquery-ui-core', 'jquery-ui-draggable'));
|
179 |
+
//
|
180 |
+
// //activate SLA for elementor on frontend
|
181 |
+
// add_action('zionbuilder/editor/after_scripts', array(SQ_Classes_ObjController::getClass('SQ_Models_LiveAssistant'), 'loadFrontent'), 99);
|
182 |
+
// }
|
183 |
+
// }
|
184 |
+
|
185 |
+
}
|
186 |
+
}
|
187 |
+
|
188 |
+
/**
|
189 |
+
* Hook the Builders and load SLA
|
190 |
+
*/
|
191 |
+
public function hookBuildersFrontend() {
|
192 |
+
|
193 |
+
if (function_exists('is_user_logged_in') && is_user_logged_in() && !SQ_Classes_Helpers_Tools::isAjax()) {
|
194 |
+
|
195 |
+
//Load the SLA for Oxygen Editor
|
196 |
+
if (SQ_Classes_Helpers_Tools::isPluginInstalled('oxygen/functions.php')) {
|
197 |
+
if (SQ_Classes_Helpers_Tools::getValue('ct_builder') || SQ_Classes_Helpers_Tools::getValue('ct_template')) {
|
198 |
+
|
199 |
+
//Check if SLA frontend is enabled
|
200 |
+
if (SQ_Classes_Helpers_Tools::getOption('sq_sla_frontend')) {
|
201 |
+
|
202 |
+
//activate frontend SLA
|
203 |
+
add_filter('sq_load_frontend_sla', '__return_true');
|
204 |
+
|
205 |
+
//load SLA in frontend for the page builder
|
206 |
+
add_action('ct_before_builder', array(SQ_Classes_ObjController::getClass('SQ_Models_LiveAssistant'), 'loadFrontent'), PHP_INT_MAX);
|
207 |
+
|
208 |
+
//Load the style for builders
|
209 |
+
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('builders');
|
210 |
+
|
211 |
+
}
|
212 |
+
|
213 |
+
return true;
|
214 |
+
}
|
215 |
+
|
216 |
+
|
217 |
+
//Load the SLA for Elementor Editor
|
218 |
+
if (SQ_Classes_Helpers_Tools::isPluginInstalled('elementor/elementor.php')) {
|
219 |
+
if (SQ_Classes_Helpers_Tools::getValue('elementor-preview')) {
|
220 |
+
|
221 |
+
//Load the style for builders
|
222 |
+
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('builders');
|
223 |
+
|
224 |
+
return true;
|
225 |
+
}
|
226 |
+
}
|
227 |
+
|
228 |
+
//Load the SLA for JS Composer / WPBakery
|
229 |
+
// if (SQ_Classes_Helpers_Tools::isPluginInstalled('js_composer/js_composer.php')) {
|
230 |
+
// if (SQ_Classes_Helpers_Tools::getValue('vc_editable')) {
|
231 |
+
//
|
232 |
+
// //Load the style for builders
|
233 |
+
// SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('builders');
|
234 |
+
// }
|
235 |
+
// }
|
236 |
+
|
237 |
+
//Load the SLA for Elementor Editor
|
238 |
+
// if (SQ_Classes_Helpers_Tools::isPluginInstalled('zionbuilder/zionbuilder.php')) {
|
239 |
+
// if (SQ_Classes_Helpers_Tools::getValue('zionbuilder-preview')) {
|
240 |
+
//
|
241 |
+
// //Load the style for builders
|
242 |
+
// SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('builders');
|
243 |
+
//
|
244 |
+
// return true;
|
245 |
+
// }
|
246 |
+
// }
|
247 |
+
|
248 |
+
}
|
249 |
+
|
250 |
+
}
|
251 |
+
|
252 |
+
//Load the SLA for Divi Editor
|
253 |
+
if (SQ_Classes_Helpers_Tools::isPluginInstalled('divi-builder/divi-builder.php') || SQ_Classes_Helpers_Tools::isThemeActive('Divi') ) {
|
254 |
+
|
255 |
+
if (SQ_Classes_Helpers_Tools::getValue('et_fb')) {
|
256 |
+
//activate frontend SLA
|
257 |
+
add_filter('sq_load_frontend_sla', '__return_true');
|
258 |
+
|
259 |
+
//load SLA in frontend for the page builder
|
260 |
+
add_action('admin_bar_menu', function ($wp_admin_bar) {
|
261 |
+
ob_start();
|
262 |
+
SQ_Classes_ObjController::getClass('SQ_Models_LiveAssistant')->loadFrontent();
|
263 |
+
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('builders');
|
264 |
+
$liveassistant = ob_get_clean();
|
265 |
+
|
266 |
+
$wp_admin_bar->add_menu(array('id' => 'sq_postsquirrly', 'parent' => false, 'meta' => array('html' => $liveassistant, 'tabindex' => PHP_INT_MAX,),));
|
267 |
+
});
|
268 |
+
|
269 |
+
}
|
270 |
+
|
271 |
+
}
|
272 |
+
|
273 |
+
}
|
274 |
+
|
275 |
/**
|
276 |
* Remove the action for WP Bakery shortcodes for Sitemap XML
|
277 |
*/
|
290 |
public function hookPostEditorBackend()
|
291 |
{
|
292 |
add_action('admin_footer', array($this, 'checkOxygenBuilder'), PHP_INT_MAX);
|
|
|
293 |
}
|
294 |
|
295 |
/**
|
models/LiveAssistant.php
ADDED
@@ -0,0 +1,158 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
defined('ABSPATH') || die('Cheatin\' uh?');
|
3 |
+
|
4 |
+
class SQ_Models_LiveAssistant
|
5 |
+
{
|
6 |
+
|
7 |
+
|
8 |
+
/**
|
9 |
+
* Load the JS for API
|
10 |
+
*/
|
11 |
+
public static function init()
|
12 |
+
{
|
13 |
+
global $post;
|
14 |
+
$referer = '';
|
15 |
+
|
16 |
+
$metas = json_decode(wp_json_encode(SQ_Classes_Helpers_Tools::getOption('sq_metas')));
|
17 |
+
$sq_postID = ((isset($post->ID) && $post->ID > 0) ? $post->ID : 0);
|
18 |
+
|
19 |
+
//Load Squirrly Live Assistant for Elementor builder
|
20 |
+
if (SQ_Classes_Helpers_Tools::getOption('sq_sla_frontend')) {
|
21 |
+
$referer = get_post_meta($sq_postID, '_sq_sla', true);
|
22 |
+
}
|
23 |
+
|
24 |
+
echo '<script>
|
25 |
+
var SQ_DEBUG = ' . (int)SQ_DEBUG . ';
|
26 |
+
(function($){
|
27 |
+
$.sq_config = {
|
28 |
+
sq_version: "' . esc_attr(SQ_VERSION) . '",
|
29 |
+
token: "' . esc_attr(SQ_Classes_Helpers_Tools::getOption('sq_api')) . '",
|
30 |
+
url_token: "' . (SQ_Classes_Helpers_Tools::getOption('sq_cloud_connect') ? esc_attr(SQ_Classes_Helpers_Tools::getOption('sq_cloud_token')) : false) . '",
|
31 |
+
sq_apiurl: "' . esc_url(_SQ_APIV2_URL_) . '",
|
32 |
+
ajaxurl: "' . esc_url(admin_url('admin-ajax.php')) . '",
|
33 |
+
sq_nonce: "' . esc_attr(wp_create_nonce(_SQ_NONCE_ID_)) . '",
|
34 |
+
user_url: "' . esc_url(apply_filters('sq_homeurl', get_bloginfo('url'))) . '",
|
35 |
+
language: "' . esc_attr(apply_filters('sq_language', get_bloginfo('language'))) . '",
|
36 |
+
referer: "' . esc_attr($referer) . '",
|
37 |
+
sq_keywordtag: ' . (int)SQ_Classes_Helpers_Tools::getOption('sq_keywordtag') . ',
|
38 |
+
sq_keyword_help: ' . (int)SQ_Classes_Helpers_Tools::getOption('sq_keyword_help') . ',
|
39 |
+
frontend_css: "' . esc_url(_SQ_ASSETS_URL_ . 'css/frontend' . (SQ_DEBUG ? '' : '.min') . '.css') . '",
|
40 |
+
postID: "' . $sq_postID . '",
|
41 |
+
prevNonce: "' . esc_attr(wp_create_nonce('post_preview_' . $sq_postID)) . '",
|
42 |
+
__keyword: "' . esc_html__('Keyword:', 'squirrly-seo') . '",
|
43 |
+
__date: "' . esc_html__('date', 'squirrly-seo') . '",
|
44 |
+
__noconnection: "' . esc_html__("To load the Live Assistant and optimize this page, click to connect to Squirrly Cloud.", 'squirrly-seo') . '",
|
45 |
+
__saved: "' . esc_html__('Saved!', 'squirrly-seo') . '",
|
46 |
+
__readit: "' . esc_html__('Read it!', 'squirrly-seo') . '",
|
47 |
+
__insertit: "' . esc_html__('Insert it!', 'squirrly-seo') . '",
|
48 |
+
__reference: "' . esc_html__('Reference', 'squirrly-seo') . '",
|
49 |
+
__insertasbox: "' . esc_html__('Insert as box', 'squirrly-seo') . '",
|
50 |
+
__addlink: "' . esc_html__('Insert Link', 'squirrly-seo') . '",
|
51 |
+
__notrelevant: "' . esc_html__('Not relevant?', 'squirrly-seo') . '",
|
52 |
+
__insertparagraph: "' . esc_html__('Insert in your article', 'squirrly-seo') . '",
|
53 |
+
__ajaxerror: "' . esc_html__(':( An error occurred while processing your request. Please try again', 'squirrly-seo') . '",
|
54 |
+
__searching: "' . esc_html__('Searching ... ', 'squirrly-seo') . '",
|
55 |
+
__nofound: "' . esc_html__('No results found!', 'squirrly-seo') . '",
|
56 |
+
__sq_photo_copyright: "' . esc_html__('[ ATTRIBUTE: Please check: %s to find out how to attribute this image ]', 'squirrly-seo') . '",
|
57 |
+
__has_attributes: "' . esc_html__('Has creative commons attributes', 'squirrly-seo') . '",
|
58 |
+
__no_attributes: "' . esc_html__('No known copyright restrictions', 'squirrly-seo') . '",
|
59 |
+
__noopt: "' . esc_html__('You haven`t used Squirrly SEO to optimize your article. Do you want to optimize for a keyword before publishing?', 'squirrly-seo') . '",
|
60 |
+
__subscription_expired: "' . esc_html__('Your Subscription has Expired', 'squirrly-seo') . '",
|
61 |
+
__no_briefcase: "' . esc_html__('There are no keywords saved in briefcase yet', 'squirrly-seo') . '",
|
62 |
+
__fulloptimized: "' . esc_html__('Congratulations! Your article is 100% optimized!', 'squirrly-seo') . '",
|
63 |
+
__toomanytimes: "' . esc_html__('appears too many times. Try to remove %s of them', 'squirrly-seo') . '",
|
64 |
+
__writemorewords: "' . esc_html__('write %s more words', 'squirrly-seo') . '",
|
65 |
+
__keywordinintroduction: "' . esc_html__('Add the keyword in the %s of your article', 'squirrly-seo') . '",
|
66 |
+
__clicktohighlight: "' . esc_html__('Click to keep the highlight on', 'squirrly-seo') . '",
|
67 |
+
__introduction: "' . esc_html__('introduction', 'squirrly-seo') . '",
|
68 |
+
__morewordsafter: "' . esc_html__('Write more words after the %s keyword', 'squirrly-seo') . '",
|
69 |
+
__orusesynonyms: "' . esc_html__('or use synonyms', 'squirrly-seo') . '",
|
70 |
+
__addmorewords: "' . esc_html__('add %s more word(s)', 'squirrly-seo') . '",
|
71 |
+
__removewords: "' . esc_html__('or remove %s word(s)', 'squirrly-seo') . '",
|
72 |
+
__addmorekeywords: "' . esc_html__('add the selected keyword %s more time(s) ', 'squirrly-seo') . '",
|
73 |
+
__addminimumwords: "' . esc_html__('write %s more words to start calculating', 'squirrly-seo') . '",
|
74 |
+
__add_to_briefcase: "' . esc_html__('Add to Briefcase', 'squirrly-seo') . '",
|
75 |
+
__add_keyword_briefcase: "' . esc_html__('Add Keyword to Briefcase', 'squirrly-seo') . '",
|
76 |
+
__usekeyword: "' . esc_html__('Select', 'squirrly-seo') . '",
|
77 |
+
__new_post_title: "' . esc_html__('Auto Draft') . '",
|
78 |
+
__enter_keyword: "' . esc_html__('Enter keyword above and press ENTER', 'squirrly-seo') . '",
|
79 |
+
__add_keyword: "' . esc_html__('Add Keywords from Briefcase', 'squirrly-seo') . '",
|
80 |
+
__frontend_optimized: "' . esc_html__('Live Assistant was used to optimize this page with the Page Builder. Please go back and resume your optimization work there.', 'squirrly-seo') . '",
|
81 |
+
};
|
82 |
+
$.sq_params = {
|
83 |
+
max_length_title: ' . (int)$metas->title_maxlength . ',
|
84 |
+
max_length_description: ' . (int)$metas->description_maxlength . ',
|
85 |
+
};
|
86 |
+
|
87 |
+
})(jQuery);
|
88 |
+
</script>';
|
89 |
+
|
90 |
+
if (is_rtl()) {
|
91 |
+
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('sqbootstrap.rtl');
|
92 |
+
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('rtl');
|
93 |
+
} else {
|
94 |
+
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('sqbootstrap');
|
95 |
+
}
|
96 |
+
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('logo');
|
97 |
+
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('post');
|
98 |
+
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('fontawesome');
|
99 |
+
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('assistant/utils/mark'.(SQ_DEBUG ? '' : '.min').'.js');
|
100 |
+
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('assistant/utils/xregexp'.(SQ_DEBUG ? '' : '.min').'.js');
|
101 |
+
|
102 |
+
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('assistant/sq_briefcase'.(SQ_DEBUG ? '' : '.min').'.js');
|
103 |
+
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('assistant/sq_frontend'.(SQ_DEBUG ? '' : '.min').'.js');
|
104 |
+
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('assistant/sq_blockseo'.(SQ_DEBUG ? '' : '.min').'.js');
|
105 |
+
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('assistant/sq_blocksearch'.(SQ_DEBUG ? '' : '.min').'.js');
|
106 |
+
if(SQ_Classes_Helpers_Tools::getOption('sq_sla_type') <> 'integrated') {
|
107 |
+
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('assistant/sq_floating' . (SQ_DEBUG ? '' : '.min') . '.js');
|
108 |
+
}
|
109 |
+
SQ_Classes_ObjController::getClass('SQ_Classes_DisplayController')->loadMedia('assistant/squirrly'.(SQ_DEBUG ? '' : '.min').'.js');
|
110 |
+
|
111 |
+
}
|
112 |
+
|
113 |
+
/**
|
114 |
+
* Load Squirrly Assistant in frontend
|
115 |
+
*/
|
116 |
+
public function loadFrontent()
|
117 |
+
{
|
118 |
+
//If squirrly should load on frontend
|
119 |
+
if (apply_filters('sq_load_frontend_sla', false)) {
|
120 |
+
|
121 |
+
global $post;
|
122 |
+
|
123 |
+
if (isset($post->ID) && isset($post->post_type)) {
|
124 |
+
$types = get_post_types(array('public' => true));
|
125 |
+
|
126 |
+
//Exclude types for SLA
|
127 |
+
$excludes = SQ_Classes_Helpers_Tools::getOption('sq_sla_exclude_post_types');
|
128 |
+
if (!empty($types) && !empty($excludes)) {
|
129 |
+
foreach ($excludes as $exclude) {
|
130 |
+
if (in_array($exclude, $types)) {
|
131 |
+
unset($types[$exclude]);
|
132 |
+
}
|
133 |
+
}
|
134 |
+
}
|
135 |
+
|
136 |
+
if (in_array($post->post_type, (array)$types)) {
|
137 |
+
//Load the assistant for frontend
|
138 |
+
if (!wp_script_is('jquery')) {
|
139 |
+
wp_enqueue_script('jquery');
|
140 |
+
}
|
141 |
+
|
142 |
+
//load the draggable script in post edit for the floating SLA
|
143 |
+
wp_enqueue_script("jquery-ui-core");
|
144 |
+
wp_enqueue_script("jquery-ui-draggable");
|
145 |
+
|
146 |
+
SQ_Classes_ObjController::getClass('SQ_Classes_RemoteController');
|
147 |
+
//SQ_Classes_ObjController::getClass('SQ_Classes_ActionController')->hookHead();
|
148 |
+
|
149 |
+
SQ_Classes_ObjController::getClass('SQ_Controllers_Post')->show_view('Blocks/FrontendAssistant');
|
150 |
+
}
|
151 |
+
|
152 |
+
}
|
153 |
+
}
|
154 |
+
|
155 |
+
}
|
156 |
+
|
157 |
+
|
158 |
+
}
|
models/Menu.php
CHANGED
@@ -812,12 +812,8 @@ class SQ_Models_Menu
|
|
812 |
//for PHP 7.3.1 version
|
813 |
$tabs = array_filter($tabs);
|
814 |
|
815 |
-
|
816 |
-
return apply_filters('sq_menu_' . $category, $tabs[$category]);
|
817 |
|
818 |
-
}
|
819 |
-
|
820 |
-
return array();
|
821 |
}
|
822 |
|
823 |
/**
|
812 |
//for PHP 7.3.1 version
|
813 |
$tabs = array_filter($tabs);
|
814 |
|
815 |
+
return apply_filters('sq_menu_' . $category, (isset($tabs[$category]) ? $tabs[$category] : array()), $category);
|
|
|
816 |
|
|
|
|
|
|
|
817 |
}
|
818 |
|
819 |
/**
|
models/Settings.php
CHANGED
@@ -14,6 +14,10 @@ class SQ_Models_Settings
|
|
14 |
$links = SQ_Classes_Helpers_Tools::getValue('links_permission', '', true);
|
15 |
$links = explode(PHP_EOL, $links);
|
16 |
$links = str_replace("\r", "", $links);
|
|
|
|
|
|
|
|
|
17 |
}
|
18 |
|
19 |
//Make sure we get the Sitemap data from the form
|
14 |
$links = SQ_Classes_Helpers_Tools::getValue('links_permission', '', true);
|
15 |
$links = explode(PHP_EOL, $links);
|
16 |
$links = str_replace("\r", "", $links);
|
17 |
+
|
18 |
+
if (!empty($links)) {
|
19 |
+
SQ_Classes_Helpers_Tools::$options['sq_external_exception'] = array_unique($links);
|
20 |
+
}
|
21 |
}
|
22 |
|
23 |
//Make sure we get the Sitemap data from the form
|
models/Snippet.php
CHANGED
@@ -34,7 +34,6 @@ class SQ_Models_Snippet
|
|
34 |
$search_all = true;
|
35 |
$search = trim(str_replace('#all', '', $search));
|
36 |
}
|
37 |
-
$post_per_page = 50;
|
38 |
} else {
|
39 |
$patterns = SQ_Classes_Helpers_Tools::getOption('patterns');
|
40 |
if (!isset($patterns[$post_type])) {
|
@@ -58,6 +57,7 @@ class SQ_Models_Snippet
|
|
58 |
|
59 |
//get all the public post types
|
60 |
$types = get_post_types(array('public' => true));
|
|
|
61 |
$statuses = array('draft', 'publish', 'pending', 'future', 'private');
|
62 |
//push the shop page into post types to pass the filter
|
63 |
if ($post_type == 'shop') array_push($types, 'shop');
|
@@ -69,8 +69,9 @@ class SQ_Models_Snippet
|
|
69 |
//filter by page in case of shop post type
|
70 |
$query = array(
|
71 |
'post_type' => ($search_all || $post_id ? array_keys($types) : ($post_type <> 'shop' ? $post_type : 'page')),
|
|
|
72 |
's' => (!$search_all ? (strpos($search, '/') === false ? $search : '') : ''),
|
73 |
-
'posts_per_page' => $post_per_page,
|
74 |
'paged' => $paged,
|
75 |
'orderby' => 'date',
|
76 |
'order' => 'DESC',
|
@@ -98,18 +99,16 @@ class SQ_Models_Snippet
|
|
98 |
if ($page->url <> '') {
|
99 |
//Search the Squirrly Title, Description and URL if search is set
|
100 |
if ($search <> '') {
|
101 |
-
if (SQ_Classes_Helpers_Tools::findStr($page->sq->title, $search) === false &&
|
102 |
-
|
103 |
-
|
104 |
continue;
|
105 |
}
|
106 |
}
|
107 |
|
108 |
//Don't let other post types to pass
|
109 |
-
if (!$search_all) {
|
110 |
-
|
111 |
-
continue;
|
112 |
-
}
|
113 |
}
|
114 |
|
115 |
$pages[] = $page;
|
34 |
$search_all = true;
|
35 |
$search = trim(str_replace('#all', '', $search));
|
36 |
}
|
|
|
37 |
} else {
|
38 |
$patterns = SQ_Classes_Helpers_Tools::getOption('patterns');
|
39 |
if (!isset($patterns[$post_type])) {
|
57 |
|
58 |
//get all the public post types
|
59 |
$types = get_post_types(array('public' => true));
|
60 |
+
|
61 |
$statuses = array('draft', 'publish', 'pending', 'future', 'private');
|
62 |
//push the shop page into post types to pass the filter
|
63 |
if ($post_type == 'shop') array_push($types, 'shop');
|
69 |
//filter by page in case of shop post type
|
70 |
$query = array(
|
71 |
'post_type' => ($search_all || $post_id ? array_keys($types) : ($post_type <> 'shop' ? $post_type : 'page')),
|
72 |
+
'post_status' => $statuses,
|
73 |
's' => (!$search_all ? (strpos($search, '/') === false ? $search : '') : ''),
|
74 |
+
'posts_per_page' => (!$search_all ? (strpos($search, '/') === false ? $post_per_page : 10000) : 10000),
|
75 |
'paged' => $paged,
|
76 |
'orderby' => 'date',
|
77 |
'order' => 'DESC',
|
99 |
if ($page->url <> '') {
|
100 |
//Search the Squirrly Title, Description and URL if search is set
|
101 |
if ($search <> '') {
|
102 |
+
if (SQ_Classes_Helpers_Tools::findStr($page->sq->title, $search) === false &&
|
103 |
+
SQ_Classes_Helpers_Tools::findStr($page->sq->description, $search) === false &&
|
104 |
+
strpos($page->url, trim($search, '/')) === false) {
|
105 |
continue;
|
106 |
}
|
107 |
}
|
108 |
|
109 |
//Don't let other post types to pass
|
110 |
+
if (!$search_all && !$post_id && isset($page->post_type) && $page->post_type <> $post_type) {
|
111 |
+
continue;
|
|
|
|
|
112 |
}
|
113 |
|
114 |
$pages[] = $page;
|
models/services/JsonLD.php
CHANGED
@@ -1066,37 +1066,39 @@ class SQ_Models_Services_JsonLD extends SQ_Models_Abstract_Seo
|
|
1066 |
|
1067 |
if (!empty($categories)) {
|
1068 |
foreach ($categories as $category) {
|
1069 |
-
$
|
1070 |
-
|
|
|
1071 |
|
1072 |
-
|
1073 |
-
|
1074 |
|
1075 |
-
|
1076 |
-
|
1077 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1078 |
$crumbs[] = array(
|
1079 |
-
$
|
1080 |
-
get_term_link($
|
1081 |
);
|
1082 |
}
|
1083 |
-
}
|
1084 |
|
1085 |
-
|
|
|
1086 |
$crumbs[] = array(
|
1087 |
$category->name,
|
1088 |
get_term_link($category->term_id, $category->taxonomy),
|
1089 |
);
|
1090 |
-
}
|
1091 |
-
|
1092 |
-
$lists[] = $crumbs;
|
1093 |
-
} elseif (isset($category->name) && $category->name <> '') {
|
1094 |
-
$crumbs[] = array(
|
1095 |
-
$category->name,
|
1096 |
-
get_term_link($category->term_id, $category->taxonomy),
|
1097 |
-
);
|
1098 |
|
1099 |
-
|
|
|
1100 |
}
|
1101 |
}
|
1102 |
}
|
@@ -1182,7 +1184,7 @@ class SQ_Models_Services_JsonLD extends SQ_Models_Abstract_Seo
|
|
1182 |
try {
|
1183 |
$product = new WC_Product($this->_post->ID);
|
1184 |
|
1185 |
-
if(class_exists('WC_Product_Variable')) {
|
1186 |
$product = WC_Product_Variable::sync($this->_post->ID);
|
1187 |
}
|
1188 |
|
@@ -1266,7 +1268,7 @@ class SQ_Models_Services_JsonLD extends SQ_Models_Abstract_Seo
|
|
1266 |
if ($product->is_type('variable') && method_exists($product, 'get_variation_prices')
|
1267 |
&& method_exists($product, 'get_variation_regular_price') && method_exists($product, 'get_variation_sale_price')) {
|
1268 |
$prices = $product->get_variation_prices();
|
1269 |
-
|
1270 |
if (isset($prices['price'])) {
|
1271 |
//Get the product price
|
1272 |
$price = $product->get_price();
|
1066 |
|
1067 |
if (!empty($categories)) {
|
1068 |
foreach ($categories as $category) {
|
1069 |
+
if(isset($category->term_id) && isset($category->taxonomy)){
|
1070 |
+
$crumbs = [];
|
1071 |
+
$parents = get_ancestors($category->term_id, $category->taxonomy);
|
1072 |
|
1073 |
+
if (!empty($parents)) {
|
1074 |
+
$parents = array_reverse($parents);
|
1075 |
|
1076 |
+
foreach ($parents as $parent) {
|
1077 |
+
$parent = get_term($parent);
|
1078 |
+
if (isset($parent->name) && $parent->name <> '') {
|
1079 |
+
$crumbs[] = array(
|
1080 |
+
$parent->name,
|
1081 |
+
get_term_link($parent->term_id, $category->taxonomy),
|
1082 |
+
);
|
1083 |
+
}
|
1084 |
+
}
|
1085 |
+
|
1086 |
+
if (isset($category->name) && $category->name <> '') {
|
1087 |
$crumbs[] = array(
|
1088 |
+
$category->name,
|
1089 |
+
get_term_link($category->term_id, $category->taxonomy),
|
1090 |
);
|
1091 |
}
|
|
|
1092 |
|
1093 |
+
$lists[] = $crumbs;
|
1094 |
+
} elseif (isset($category->name) && $category->name <> '') {
|
1095 |
$crumbs[] = array(
|
1096 |
$category->name,
|
1097 |
get_term_link($category->term_id, $category->taxonomy),
|
1098 |
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1099 |
|
1100 |
+
$lists[] = $crumbs;
|
1101 |
+
}
|
1102 |
}
|
1103 |
}
|
1104 |
}
|
1184 |
try {
|
1185 |
$product = new WC_Product($this->_post->ID);
|
1186 |
|
1187 |
+
if(class_exists('WC_Product_Variable') && is_callable( array( 'WC_Product_Variable', 'sync' ) )) {
|
1188 |
$product = WC_Product_Variable::sync($this->_post->ID);
|
1189 |
}
|
1190 |
|
1268 |
if ($product->is_type('variable') && method_exists($product, 'get_variation_prices')
|
1269 |
&& method_exists($product, 'get_variation_regular_price') && method_exists($product, 'get_variation_sale_price')) {
|
1270 |
$prices = $product->get_variation_prices();
|
1271 |
+
|
1272 |
if (isset($prices['price'])) {
|
1273 |
//Get the product price
|
1274 |
$price = $product->get_price();
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://plugin.squirrly.co/squirrly-seo-pricing/
|
|
4 |
Tags: SEO, SEO Plugin, XML sitemap, WooCommerce SEO, Search Engine, Open Graph, Video Sitemap, Google News Sitemap, Rich Snippets, Robotx.txt, SEO Automation, Local SEO, SEO Content analysis, SEO Content, SEO Optimization, WordPress SEO, Yoast, Yoast Compatible, Yoast Import, SEO Redirection, Redirection, SEO Sitemap, SEO Caching, Meta Title, Meta Description, Performance, SEO Audit, SEO Keyword Research, SEO Rank Math import, Google Search Console, Schema
|
5 |
Requires at least: 4.3
|
6 |
Tested up to: 6.0
|
7 |
-
Stable tag: 12.1.
|
8 |
Requires PHP: 7.0
|
9 |
License: GPLv2 or later
|
10 |
|
@@ -664,12 +664,31 @@ Type a keyword to the right of the screen and start using Squirrly Seo. Enjoy!
|
|
664 |
4. Squirrly SEO - Focus Pages
|
665 |
5. Squirrly SEO - Track SEO Performance
|
666 |
6. Squirrly SEO - SEO Audit
|
667 |
-
7. Squirrly SEO -
|
668 |
-
8. Squirrly SEO - SEO Briefcase
|
669 |
-
9. Squirrly SEO - Progress & Achievements
|
670 |
|
671 |
== Changelog ==
|
672 |
-
= 12.1.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
673 |
Update - Live Assistant for integrated version & added the SLA integrate option in Live Assistant > Settings
|
674 |
Fix - RTL CSS for Live Assistant and SEO Configuration
|
675 |
Fix - Update the compatibility with JetPack
|
@@ -681,12 +700,12 @@ Fix - Add the comparison images when other SEO plugins are activated
|
|
681 |
Fix - Update the tasks from Next SEO Goals
|
682 |
Fix - Update the Briefcase and Ranking Tables to select the number of rows to show
|
683 |
|
684 |
-
= 12.1.01- 05/17/2022 =
|
685 |
Fix - Show Squirrly logo in Page Editor toolbar to open/close Squirrly Live Assistant
|
686 |
Fix - Dev Kit install on plugin activation
|
687 |
Fix - Small bugs
|
688 |
|
689 |
-
= 12.1.00- 05/16/2022 =
|
690 |
Update - Compatibility with WordPress 6.0
|
691 |
Update – New Animated Tooltip that teaches users how to use Red and Green elements inside the Focus Pages and the Bulk SEO sections of Squirrly
|
692 |
Update – Optimized for mobile
|
@@ -733,7 +752,7 @@ Fix - Important security update
|
|
733 |
Fix - getView error for the deprecated function
|
734 |
Fix - Woocommerce compatibility & Rich Snippets
|
735 |
|
736 |
-
= 11.1.11- 01/25/2022 =
|
737 |
Update - Add the IP Anonymization (or IP masking) in Google Analytics
|
738 |
Fix - Dev Kit update to work with WP Multisite
|
739 |
Fix - AMP updates and fixes
|
@@ -741,7 +760,7 @@ Fix - Focus Pages > SEO Image update identification
|
|
741 |
Fix - Import keywords in briefcase
|
742 |
Fix - Sanitize all search params in squirrly seo
|
743 |
|
744 |
-
= 11.1.10- 10/22/2021 =
|
745 |
Update - Focus Page crawlers to simulate a browser when checking a page and avoid blockings
|
746 |
Update - Compatibility with Elementor on Frontend Live Assistant
|
747 |
Fix - Woocommerce Product missing Person detail on review
|
@@ -749,12 +768,12 @@ Fix - Compatibility with the last version of Woocommerce
|
|
749 |
Fix - Percent wrapping in Squirrly Live Assistant Briefcase
|
750 |
Fix - Facebook Share Count in Focus Pages
|
751 |
|
752 |
-
= 11.1.09- 09/13/2021 =
|
753 |
Update - Compatibility with WP 5.8.1
|
754 |
Fix - Google Analytics & Google Search Console connections when the URL can't be identified
|
755 |
Fix - Category SEO Snippet in frontent to not show the first post
|
756 |
|
757 |
-
= 11.1.08- 09/06/2021 =
|
758 |
Update - Compatibility with Oxygen Plugin when the Current Post is not loaded correctly on init
|
759 |
Update - Compatibility with TranslatePress plugin to load all translations correctly
|
760 |
Update - Show the GA tracking code on Property list
|
@@ -764,7 +783,7 @@ Fix - Update the Connect To Cloud option on plugin activation process
|
|
764 |
Fix - Error setPost missing in SEO Snippet & Bulk SEO
|
765 |
Fix - Hide the Account Info only when Dev Kit specification for Dev Kit support
|
766 |
|
767 |
-
= 11.1.07- 08/05/2021 =
|
768 |
Update - Added compatibility with UiPress plugin
|
769 |
Update - Add Google Analytics property option select in Squirrly SEO plugin
|
770 |
Update - Added the mark for frontend Elementor editor
|
@@ -772,7 +791,7 @@ Update - Compatibility with WP 5.8
|
|
772 |
Fix - Author URL warning in the profile page
|
773 |
Fix - Remove Noindex and Nofollow for empty terms as it doesn't work on all situations. Will be added as a plugin option on the new UX.
|
774 |
|
775 |
-
= 11.1.06- 07/13/2021 =
|
776 |
Update - Compatibility with Divi and Fusion plugins
|
777 |
Update - Update Readme file and plugin description
|
778 |
Update - Remove access from Squirrly Research and Bulk SEO if the user doesn't have enough capabilities
|
@@ -784,7 +803,7 @@ Update - Compatibility with Deep PRO plugin
|
|
784 |
Update - Check the DevKit subscription every time the plugin connects to Squirrly Cloud
|
785 |
Update - Force the Sitemap to load faster
|
786 |
|
787 |
-
= 11.1.05- 06/22/2021 =
|
788 |
Update - Compatibility with Oxygen Gutenberg plugin
|
789 |
Update - Let Visibility setup in SEO Snippet while WordPress is in "Discourage Search Engines from Indexing this Site"
|
790 |
Update - Remove the Memory Limit option in Squirrly SEO
|
@@ -800,7 +819,7 @@ Fix - Slug change support for Quick Edit while in Post List
|
|
800 |
Fix - Remove the error count notification when the Next SEO Goals are hidden
|
801 |
Fix - Pattern replace with case insensitive {{Title}} = {{title}}
|
802 |
|
803 |
-
= 11.1.04- 05/27/2021 =
|
804 |
Update - Add the Multilingual Support option for non UTF8 encodings
|
805 |
Update - Compatibility with Weglot plugin
|
806 |
Update - Archive patterns and Custom Post Types Archive in SEO Automation
|
@@ -811,7 +830,7 @@ Fix - Product Custom Fields update when LIVE Assistant is not loaded on a post t
|
|
811 |
Fix - Remove the auto setup for SEO Links on onboarding
|
812 |
Fix - Set the Article and NewArticle Schema Headline correctly
|
813 |
|
814 |
-
= 11.1.03- 05/06/2021 =
|
815 |
Update - Do not track the traffic for Squirrly crawlers
|
816 |
Update - Add in Dev Kit the options to hide the Research, All Snippets, Live Assistant menu items
|
817 |
Update - Integrate Focus Pages with the SEO Links domain exception in the Outbound nofollow links report
|
@@ -820,7 +839,7 @@ Fix - Add a patch for the Oxygen builder to not show 500 error when editing the
|
|
820 |
Fix - Web Dev Kit to work with the Wp Mutisite for the custom plugin name
|
821 |
Fix - Fixed JSON-LD compatibility with the lastest version of WooCommerce
|
822 |
|
823 |
-
= 11.1.02- 04/30/2021 =
|
824 |
Update - Add the option to import the SEO Snippets from SEO Press (Patterns, SEO METAs, Open Graph, Twitter Card, 301 Redirects, Noindex)
|
825 |
Update - Add the option to import the Settings from SEO Press (Social Media, JSON-LD, Webmasters)
|
826 |
Update - Add the option to import the SEO Snippets from Rank Math (Patterns, SEO METAs, Open Graph, Twitter Card, Noindex)
|
4 |
Tags: SEO, SEO Plugin, XML sitemap, WooCommerce SEO, Search Engine, Open Graph, Video Sitemap, Google News Sitemap, Rich Snippets, Robotx.txt, SEO Automation, Local SEO, SEO Content analysis, SEO Content, SEO Optimization, WordPress SEO, Yoast, Yoast Compatible, Yoast Import, SEO Redirection, Redirection, SEO Sitemap, SEO Caching, Meta Title, Meta Description, Performance, SEO Audit, SEO Keyword Research, SEO Rank Math import, Google Search Console, Schema
|
5 |
Requires at least: 4.3
|
6 |
Tested up to: 6.0
|
7 |
+
Stable tag: 12.1.04
|
8 |
Requires PHP: 7.0
|
9 |
License: GPLv2 or later
|
10 |
|
664 |
4. Squirrly SEO - Focus Pages
|
665 |
5. Squirrly SEO - Track SEO Performance
|
666 |
6. Squirrly SEO - SEO Audit
|
667 |
+
7. Squirrly SEO - SEO Briefcase
|
|
|
|
|
668 |
|
669 |
== Changelog ==
|
670 |
+
= 12.1.05 - 06/09/2022 =
|
671 |
+
Update - Add Live Assistant support for Oxygen Builder on frontend
|
672 |
+
Fix - Add the Live Assistant when no meta-box-order is present in the DB
|
673 |
+
Fix - Fixed PHP warning when missing meta-box-order_ line from usermeta table
|
674 |
+
Fix - Woocommerce Compatibility on Variable Products
|
675 |
+
Fix - Show the Free account in Account Info
|
676 |
+
Fix - Show the Account limits from full to empty
|
677 |
+
Fix - Update the 'sq_menu' hoot to get the current menu name
|
678 |
+
Fix - Live Assistant floating box to show correctly on WordPress 6.0
|
679 |
+
Fix - Reduce the status update of the trashed posts to API
|
680 |
+
|
681 |
+
= 12.1.04 - 05/24/2022 =
|
682 |
+
Update - The JSON-LD compatibility with Woocommerce on Products variant prices
|
683 |
+
Update - Live Assistant layout for both floating and integrated version
|
684 |
+
Update - Compatibility WP adminify plugin
|
685 |
+
Fixed - SEO Links - External Nofollow Link Exception
|
686 |
+
Fixed - SEO Automation - Add the post type in automation issue
|
687 |
+
Fixed - PHP Warnings in Automation and JSON-LD when some features are not yet activated
|
688 |
+
Fixed - Removed unused libraries from Live Assistant
|
689 |
+
Fixed - Small Bugs
|
690 |
+
|
691 |
+
= 12.1.03 - 05/19/2022 =
|
692 |
Update - Live Assistant for integrated version & added the SLA integrate option in Live Assistant > Settings
|
693 |
Fix - RTL CSS for Live Assistant and SEO Configuration
|
694 |
Fix - Update the compatibility with JetPack
|
700 |
Fix - Update the tasks from Next SEO Goals
|
701 |
Fix - Update the Briefcase and Ranking Tables to select the number of rows to show
|
702 |
|
703 |
+
= 12.1.01 - 05/17/2022 =
|
704 |
Fix - Show Squirrly logo in Page Editor toolbar to open/close Squirrly Live Assistant
|
705 |
Fix - Dev Kit install on plugin activation
|
706 |
Fix - Small bugs
|
707 |
|
708 |
+
= 12.1.00 - 05/16/2022 =
|
709 |
Update - Compatibility with WordPress 6.0
|
710 |
Update – New Animated Tooltip that teaches users how to use Red and Green elements inside the Focus Pages and the Bulk SEO sections of Squirrly
|
711 |
Update – Optimized for mobile
|
752 |
Fix - getView error for the deprecated function
|
753 |
Fix - Woocommerce compatibility & Rich Snippets
|
754 |
|
755 |
+
= 11.1.11 - 01/25/2022 =
|
756 |
Update - Add the IP Anonymization (or IP masking) in Google Analytics
|
757 |
Fix - Dev Kit update to work with WP Multisite
|
758 |
Fix - AMP updates and fixes
|
760 |
Fix - Import keywords in briefcase
|
761 |
Fix - Sanitize all search params in squirrly seo
|
762 |
|
763 |
+
= 11.1.10 - 10/22/2021 =
|
764 |
Update - Focus Page crawlers to simulate a browser when checking a page and avoid blockings
|
765 |
Update - Compatibility with Elementor on Frontend Live Assistant
|
766 |
Fix - Woocommerce Product missing Person detail on review
|
768 |
Fix - Percent wrapping in Squirrly Live Assistant Briefcase
|
769 |
Fix - Facebook Share Count in Focus Pages
|
770 |
|
771 |
+
= 11.1.09 - 09/13/2021 =
|
772 |
Update - Compatibility with WP 5.8.1
|
773 |
Fix - Google Analytics & Google Search Console connections when the URL can't be identified
|
774 |
Fix - Category SEO Snippet in frontent to not show the first post
|
775 |
|
776 |
+
= 11.1.08 - 09/06/2021 =
|
777 |
Update - Compatibility with Oxygen Plugin when the Current Post is not loaded correctly on init
|
778 |
Update - Compatibility with TranslatePress plugin to load all translations correctly
|
779 |
Update - Show the GA tracking code on Property list
|
783 |
Fix - Error setPost missing in SEO Snippet & Bulk SEO
|
784 |
Fix - Hide the Account Info only when Dev Kit specification for Dev Kit support
|
785 |
|
786 |
+
= 11.1.07 - 08/05/2021 =
|
787 |
Update - Added compatibility with UiPress plugin
|
788 |
Update - Add Google Analytics property option select in Squirrly SEO plugin
|
789 |
Update - Added the mark for frontend Elementor editor
|
791 |
Fix - Author URL warning in the profile page
|
792 |
Fix - Remove Noindex and Nofollow for empty terms as it doesn't work on all situations. Will be added as a plugin option on the new UX.
|
793 |
|
794 |
+
= 11.1.06 - 07/13/2021 =
|
795 |
Update - Compatibility with Divi and Fusion plugins
|
796 |
Update - Update Readme file and plugin description
|
797 |
Update - Remove access from Squirrly Research and Bulk SEO if the user doesn't have enough capabilities
|
803 |
Update - Check the DevKit subscription every time the plugin connects to Squirrly Cloud
|
804 |
Update - Force the Sitemap to load faster
|
805 |
|
806 |
+
= 11.1.05 - 06/22/2021 =
|
807 |
Update - Compatibility with Oxygen Gutenberg plugin
|
808 |
Update - Let Visibility setup in SEO Snippet while WordPress is in "Discourage Search Engines from Indexing this Site"
|
809 |
Update - Remove the Memory Limit option in Squirrly SEO
|
819 |
Fix - Remove the error count notification when the Next SEO Goals are hidden
|
820 |
Fix - Pattern replace with case insensitive {{Title}} = {{title}}
|
821 |
|
822 |
+
= 11.1.04 - 05/27/2021 =
|
823 |
Update - Add the Multilingual Support option for non UTF8 encodings
|
824 |
Update - Compatibility with Weglot plugin
|
825 |
Update - Archive patterns and Custom Post Types Archive in SEO Automation
|
830 |
Fix - Remove the auto setup for SEO Links on onboarding
|
831 |
Fix - Set the Article and NewArticle Schema Headline correctly
|
832 |
|
833 |
+
= 11.1.03 - 05/06/2021 =
|
834 |
Update - Do not track the traffic for Squirrly crawlers
|
835 |
Update - Add in Dev Kit the options to hide the Research, All Snippets, Live Assistant menu items
|
836 |
Update - Integrate Focus Pages with the SEO Links domain exception in the Outbound nofollow links report
|
839 |
Fix - Web Dev Kit to work with the Wp Mutisite for the custom plugin name
|
840 |
Fix - Fixed JSON-LD compatibility with the lastest version of WooCommerce
|
841 |
|
842 |
+
= 11.1.02 - 04/30/2021 =
|
843 |
Update - Add the option to import the SEO Snippets from SEO Press (Patterns, SEO METAs, Open Graph, Twitter Card, 301 Redirects, Noindex)
|
844 |
Update - Add the option to import the Settings from SEO Press (Social Media, JSON-LD, Webmasters)
|
845 |
Update - Add the option to import the SEO Snippets from Rank Math (Patterns, SEO METAs, Open Graph, Twitter Card, Noindex)
|
squirrly.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
* Description: A.I.-based Private SEO Consultant. In a Plugin. Powered by Machine Learning and Cloud Services. Over 300 functionalities for SEO available when you need them.
|
9 |
* Author: Squirrly
|
10 |
* Author URI: https://plugin.squirrly.co
|
11 |
-
* Version: 12.1.
|
12 |
* License: GPLv2 or later
|
13 |
* License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
14 |
* Text Domain: squirrly-seo
|
@@ -17,7 +17,7 @@
|
|
17 |
|
18 |
if (!defined('SQ_VERSION')) {
|
19 |
/* SET THE CURRENT VERSION ABOVE AND BELOW */
|
20 |
-
define('SQ_VERSION', '12.1.
|
21 |
//The last stable version
|
22 |
define('SQ_STABLE_VERSION', '11.1.12');
|
23 |
// Call config files
|
8 |
* Description: A.I.-based Private SEO Consultant. In a Plugin. Powered by Machine Learning and Cloud Services. Over 300 functionalities for SEO available when you need them.
|
9 |
* Author: Squirrly
|
10 |
* Author URI: https://plugin.squirrly.co
|
11 |
+
* Version: 12.1.04
|
12 |
* License: GPLv2 or later
|
13 |
* License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
14 |
* Text Domain: squirrly-seo
|
17 |
|
18 |
if (!defined('SQ_VERSION')) {
|
19 |
/* SET THE CURRENT VERSION ABOVE AND BELOW */
|
20 |
+
define('SQ_VERSION', '12.1.04');
|
21 |
//The last stable version
|
22 |
define('SQ_STABLE_VERSION', '11.1.12');
|
23 |
// Call config files
|
view/Assistant/Settings.php
CHANGED
@@ -86,7 +86,12 @@
|
|
86 |
</div>
|
87 |
</div>
|
88 |
|
89 |
-
<?php if (SQ_Classes_Helpers_Tools::isPluginInstalled('elementor/elementor.php')
|
|
|
|
|
|
|
|
|
|
|
90 |
<div class="col-12 row m-0 p-0">
|
91 |
<div class="checker col-12 row my-4 p-0 mx-0">
|
92 |
<div class="col-12 p-0 m-0 sq-switch sq-switch-sm">
|
@@ -96,7 +101,7 @@
|
|
96 |
<a href="https://howto12.squirrly.co/kb/squirrly-live-assistant/#Add-Live-Assistant-in-Frontend" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
|
97 |
</label>
|
98 |
<div class="small text-black-50 ml-5"><?php echo esc_html__("Load Squirrly Live Assistant in Frontend to customize the posts and pages with Builders.", 'squirrly-seo'); ?></div>
|
99 |
-
<div class="small text-black-50 ml-5"><?php echo esc_html__("Currently supports
|
100 |
</div>
|
101 |
</div>
|
102 |
</div>
|
86 |
</div>
|
87 |
</div>
|
88 |
|
89 |
+
<?php if (SQ_Classes_Helpers_Tools::isPluginInstalled('elementor/elementor.php') ||
|
90 |
+
SQ_Classes_Helpers_Tools::isPluginInstalled('oxygen/functions.php') ||
|
91 |
+
SQ_Classes_Helpers_Tools::isPluginInstalled('divi-builder/divi-builder.php') ||
|
92 |
+
SQ_Classes_Helpers_Tools::isThemeActive('Divi') ||
|
93 |
+
SQ_Classes_Helpers_Tools::isPluginInstalled('js_composer/js_composer.php') ||
|
94 |
+
SQ_Classes_Helpers_Tools::isPluginInstalled('zionbuilder/zionbuilder.php') ) { ?>
|
95 |
<div class="col-12 row m-0 p-0">
|
96 |
<div class="checker col-12 row my-4 p-0 mx-0">
|
97 |
<div class="col-12 p-0 m-0 sq-switch sq-switch-sm">
|
101 |
<a href="https://howto12.squirrly.co/kb/squirrly-live-assistant/#Add-Live-Assistant-in-Frontend" target="_blank"><i class="fa-solid fa-question-circle m-0 px-2" style="display: inline;"></i></a>
|
102 |
</label>
|
103 |
<div class="small text-black-50 ml-5"><?php echo esc_html__("Load Squirrly Live Assistant in Frontend to customize the posts and pages with Builders.", 'squirrly-seo'); ?></div>
|
104 |
+
<div class="small text-black-50 ml-5"><?php echo esc_html__("Currently supports Elementor Builder & Oxygen Builder (BETA) plugins.", 'squirrly-seo'); ?></div>
|
105 |
</div>
|
106 |
</div>
|
107 |
</div>
|
view/Audits/Addpage.php
CHANGED
@@ -104,7 +104,7 @@
|
|
104 |
<input type="search" class="d-inline-block align-middle col-6 m-0 p-0 px-1 rounded-0" id="post-search-input" autofocus name="skeyword" value="<?php echo SQ_Classes_Helpers_Sanitize::escapeKeyword(SQ_Classes_Helpers_Tools::getValue('skeyword')) ?>" placeholder="<?php echo esc_html__("Write the page you want to search for", 'squirrly-seo') ?>"/>
|
105 |
<input type="submit" class="btn btn-primary " value="<?php echo esc_html__("Search Post", 'squirrly-seo') ?> >"/>
|
106 |
<?php if ((SQ_Classes_Helpers_Tools::getIsset('skeyword') && SQ_Classes_Helpers_Tools::getValue('skeyword') <> '#all') || SQ_Classes_Helpers_Tools::getIsset('slabel') || SQ_Classes_Helpers_Tools::getIsset('sid') || SQ_Classes_Helpers_Tools::getIsset('sstatus')) { ?>
|
107 |
-
<button type="button" class="btn btn-link m-0 ml-1" onclick="location.href = '<?php echo SQ_Classes_Helpers_Tools::getAdminUrl('
|
108 |
<?php } ?>
|
109 |
</div>
|
110 |
</div>
|
104 |
<input type="search" class="d-inline-block align-middle col-6 m-0 p-0 px-1 rounded-0" id="post-search-input" autofocus name="skeyword" value="<?php echo SQ_Classes_Helpers_Sanitize::escapeKeyword(SQ_Classes_Helpers_Tools::getValue('skeyword')) ?>" placeholder="<?php echo esc_html__("Write the page you want to search for", 'squirrly-seo') ?>"/>
|
105 |
<input type="submit" class="btn btn-primary " value="<?php echo esc_html__("Search Post", 'squirrly-seo') ?> >"/>
|
106 |
<?php if ((SQ_Classes_Helpers_Tools::getIsset('skeyword') && SQ_Classes_Helpers_Tools::getValue('skeyword') <> '#all') || SQ_Classes_Helpers_Tools::getIsset('slabel') || SQ_Classes_Helpers_Tools::getIsset('sid') || SQ_Classes_Helpers_Tools::getIsset('sstatus')) { ?>
|
107 |
+
<button type="button" class="btn btn-link m-0 ml-1" onclick="location.href = '<?php echo SQ_Classes_Helpers_Tools::getAdminUrl('sq_audits', 'addpage', array('stype=' . SQ_Classes_Helpers_Sanitize::escapeGetValue('stype', 'post'))) ?>';" style="cursor: pointer"><?php echo esc_html__("Show All", 'squirrly-seo') ?></button>
|
108 |
<?php } ?>
|
109 |
</div>
|
110 |
</div>
|
view/Audits/Audit.php
CHANGED
@@ -150,3 +150,4 @@
|
|
150 |
</div>
|
151 |
</div>
|
152 |
</div>
|
|
150 |
</div>
|
151 |
</div>
|
152 |
</div>
|
153 |
+
</div>
|
view/Audits/AuditPageRow.php
CHANGED
@@ -38,9 +38,6 @@ if (strtotime($view->auditpage->audit_datetime)) {
|
|
38 |
<?php } ?>
|
39 |
|
40 |
<div class="sq_auditpages_url small"><?php echo '<a href="' . esc_url($view->auditpage->permalink) . '" class="text-link" rel="permalink" target="_blank">' . urldecode($view->auditpage->permalink) . '</a>' ?></div>
|
41 |
-
<div class="sq_focuspages_lastaudited sq_date my-1"><?php echo esc_html__("Last checked", 'squirrly-seo') ?>:
|
42 |
-
<span class="font-weight-bold"><?php echo esc_attr($audit_timestamp) ?></span>
|
43 |
-
</div>
|
44 |
</td>
|
45 |
<?php if ($view->auditpage->audit_error) { ?>
|
46 |
<td>
|
38 |
<?php } ?>
|
39 |
|
40 |
<div class="sq_auditpages_url small"><?php echo '<a href="' . esc_url($view->auditpage->permalink) . '" class="text-link" rel="permalink" target="_blank">' . urldecode($view->auditpage->permalink) . '</a>' ?></div>
|
|
|
|
|
|
|
41 |
</td>
|
42 |
<?php if ($view->auditpage->audit_error) { ?>
|
43 |
<td>
|
view/Audits/AuditStats.php
CHANGED
@@ -3,18 +3,19 @@
|
|
3 |
<div class="col-12 m-0 p-0">
|
4 |
<?php
|
5 |
|
6 |
-
$call_timestamp = 0;
|
|
|
|
|
7 |
if (get_transient('sq_auditpage_all')) {
|
8 |
$call_timestamp = (int)get_transient('sq_auditpage_all');
|
9 |
}
|
10 |
|
11 |
if (isset($view->audit->audit_datetime) && $view->audit->audit_datetime) {
|
12 |
$audit_timestamp = strtotime($view->audit->audit_datetime) + ((int)get_option('gmt_offset') * 3600);
|
13 |
-
$
|
14 |
-
} else {
|
15 |
-
$audit_timestamp = '';
|
16 |
}
|
17 |
|
|
|
18 |
|
19 |
if (!empty($view->audit) && (int)$view->audit->score > 0) {
|
20 |
$color = false;
|
@@ -54,15 +55,15 @@
|
|
54 |
<div class="sq_audit_header_message small text-dark"><?php echo wp_kses_post($message) ?></div>
|
55 |
<div class="sq_date m-0 p-0">
|
56 |
<?php echo esc_html__("Audit Date", 'squirrly-seo') . ': ' ?>
|
57 |
-
<span class="text-dark font-weight-bold"><?php echo esc_attr($
|
58 |
</div>
|
59 |
</div>
|
60 |
<div class="text-right m-0 px-3 py-4">
|
61 |
<form method="post" class="sq_auditpages_request p-0 m-0">
|
62 |
<?php SQ_Classes_Helpers_Tools::setNonce('sq_audits_update', 'sq_nonce'); ?>
|
63 |
<input type="hidden" name="action" value="sq_audits_update"/>
|
64 |
-
<?php if ($call_timestamp > (
|
65 |
-
<span class="small ml-2"><?php echo
|
66 |
<?php }else{ ?>
|
67 |
<button type="submit" class="btn btn-link text-primary font-weight-bold inline p-0 m-0" >
|
68 |
<?php echo esc_html__("Request New Audit", 'squirrly-seo') ?>
|
@@ -82,14 +83,14 @@
|
|
82 |
<div class="row m-0 p-0">
|
83 |
<div class="sq_date m-0 p-0">
|
84 |
<?php echo esc_html__("Audit Date", 'squirrly-seo') . ': ' ?>
|
85 |
-
<span class="text-dark font-weight-bold"><?php echo esc_attr($
|
86 |
</div>
|
87 |
<div class="m-0 p-0 pl-2">
|
88 |
<form method="post" class="sq_auditpages_request p-0 m-0">
|
89 |
<?php SQ_Classes_Helpers_Tools::setNonce('sq_audits_update', 'sq_nonce'); ?>
|
90 |
<input type="hidden" name="action" value="sq_audits_update"/>
|
91 |
-
<?php if ($call_timestamp > (
|
92 |
-
<span class="small ml-2"
|
93 |
<?php }else{ ?>
|
94 |
<button type="submit" class="btn btn-link text-primary font-weight-bold inline p-0 m-0" >
|
95 |
<?php echo esc_html__("Request New Audit", 'squirrly-seo') ?>
|
3 |
<div class="col-12 m-0 p-0">
|
4 |
<?php
|
5 |
|
6 |
+
$call_timestamp = $audit_timestamp = 0;
|
7 |
+
$audit_datetime = '';
|
8 |
+
|
9 |
if (get_transient('sq_auditpage_all')) {
|
10 |
$call_timestamp = (int)get_transient('sq_auditpage_all');
|
11 |
}
|
12 |
|
13 |
if (isset($view->audit->audit_datetime) && $view->audit->audit_datetime) {
|
14 |
$audit_timestamp = strtotime($view->audit->audit_datetime) + ((int)get_option('gmt_offset') * 3600);
|
15 |
+
$audit_datetime = date(get_option('date_format') . ' ' . get_option('time_format'), $audit_timestamp);
|
|
|
|
|
16 |
}
|
17 |
|
18 |
+
$now_timestamp = time();
|
19 |
|
20 |
if (!empty($view->audit) && (int)$view->audit->score > 0) {
|
21 |
$color = false;
|
55 |
<div class="sq_audit_header_message small text-dark"><?php echo wp_kses_post($message) ?></div>
|
56 |
<div class="sq_date m-0 p-0">
|
57 |
<?php echo esc_html__("Audit Date", 'squirrly-seo') . ': ' ?>
|
58 |
+
<span class="text-dark font-weight-bold"><?php echo esc_attr($audit_datetime) ?></span>
|
59 |
</div>
|
60 |
</div>
|
61 |
<div class="text-right m-0 px-3 py-4">
|
62 |
<form method="post" class="sq_auditpages_request p-0 m-0">
|
63 |
<?php SQ_Classes_Helpers_Tools::setNonce('sq_audits_update', 'sq_nonce'); ?>
|
64 |
<input type="hidden" name="action" value="sq_audits_update"/>
|
65 |
+
<?php if ($audit_timestamp < ($now_timestamp - 3600) && $call_timestamp > ($now_timestamp - 3600)) { ?>
|
66 |
+
<span class="small ml-2 text-black-50"><?php echo esc_html__("In progress", 'squirrly-seo') ?></span>
|
67 |
<?php }else{ ?>
|
68 |
<button type="submit" class="btn btn-link text-primary font-weight-bold inline p-0 m-0" >
|
69 |
<?php echo esc_html__("Request New Audit", 'squirrly-seo') ?>
|
83 |
<div class="row m-0 p-0">
|
84 |
<div class="sq_date m-0 p-0">
|
85 |
<?php echo esc_html__("Audit Date", 'squirrly-seo') . ': ' ?>
|
86 |
+
<span class="text-dark font-weight-bold"><?php echo esc_attr($audit_datetime) ?></span>
|
87 |
</div>
|
88 |
<div class="m-0 p-0 pl-2">
|
89 |
<form method="post" class="sq_auditpages_request p-0 m-0">
|
90 |
<?php SQ_Classes_Helpers_Tools::setNonce('sq_audits_update', 'sq_nonce'); ?>
|
91 |
<input type="hidden" name="action" value="sq_audits_update"/>
|
92 |
+
<?php if ($audit_timestamp < ($now_timestamp - 3600) && $call_timestamp > ($now_timestamp - 3600)) { ?>
|
93 |
+
<span class="small ml-2 text-black-50"><?php echo esc_html__("In progress", 'squirrly-seo') ?></span>
|
94 |
<?php }else{ ?>
|
95 |
<button type="submit" class="btn btn-link text-primary font-weight-bold inline p-0 m-0" >
|
96 |
<?php echo esc_html__("Request New Audit", 'squirrly-seo') ?>
|
view/Blocks/Account.php
CHANGED
@@ -10,6 +10,7 @@ if (isset($view->checkin->subscription_status) && isset($view->checkin->product_
|
|
10 |
$view->checkin->product_name = 'Free + Bonus';
|
11 |
}
|
12 |
}
|
|
|
13 |
?>
|
14 |
<?php if (SQ_Classes_Helpers_Tools::getMenuVisible('show_account_info') && SQ_Classes_Helpers_Tools::userCan('manage_options')) { ?>
|
15 |
<i class="sq_account_info_avatar sq_icons sq_icons_small fa-solid fa-user" style="font-size: 20px;"></i>
|
@@ -25,6 +26,10 @@ if (isset($view->checkin->subscription_status) && isset($view->checkin->product_
|
|
25 |
<?php echo esc_html(sanitize_email($view->checkin->subscription_email)) ?>
|
26 |
<?php if (isset($view->checkin->subscription_paid) && isset($view->checkin->subscription_expires) && $view->checkin->subscription_paid && $view->checkin->subscription_expires) { ?>
|
27 |
<div class="small <?php echo ((time() - strtotime($view->checkin->subscription_expires) > 0) ? 'text-danger' : '') ?>" style="font-size: 12px; line-height: 20px;" ><?php echo sprintf(esc_html__("Due Date: %s", 'squirrly-seo'), date('d M Y', strtotime($view->checkin->subscription_expires)) ); ?> <a href="<?php echo SQ_Classes_RemoteController::getMySquirrlyLink('account') ?>" class="bg-primary text-white px-1" target="_blank"><?php echo esc_attr($view->checkin->product_name) ?></a></div>
|
|
|
|
|
|
|
|
|
28 |
<?php } ?>
|
29 |
</div>
|
30 |
<?php } ?>
|
@@ -33,7 +38,6 @@ if (isset($view->checkin->subscription_status) && isset($view->checkin->product_
|
|
33 |
<ul class="p-0 m-0">
|
34 |
<?php
|
35 |
if (isset($view->checkin->subscription_max_kr) && isset($view->checkin->subscription_kr) && (int)$view->checkin->subscription_max_kr > 0) {
|
36 |
-
$view->checkin->subscription_kr = $view->checkin->subscription_max_kr - $view->checkin->subscription_kr;
|
37 |
?>
|
38 |
<li class="m-0 p-0 py-3">
|
39 |
<div class="row m-0 p-0">
|
@@ -61,7 +65,8 @@ if (isset($view->checkin->subscription_status) && isset($view->checkin->product_
|
|
61 |
</li>
|
62 |
<?php }?>
|
63 |
|
64 |
-
<?php if (isset($view->checkin->subscription_max_focus_pages) && isset($view->checkin->subscription_focus_pages) && (int)$view->checkin->subscription_max_focus_pages > 0) {
|
|
|
65 |
<li class="m-0 p-0 py-3">
|
66 |
<div class="row m-0 p-0">
|
67 |
<div class="col-1 m-0 p-0 mr-1"> <i class="fa-solid fa-bullseye-arrow"></i> </div>
|
@@ -93,7 +98,7 @@ if (isset($view->checkin->subscription_status) && isset($view->checkin->product_
|
|
93 |
</ul>
|
94 |
</div>
|
95 |
|
96 |
-
<div class="border-top py-2 mt-2 text-center">
|
97 |
<div class="small"><a href="<?php echo SQ_Classes_RemoteController::getMySquirrlyLink('dashboard') ?>" target="_blank"><?php echo esc_html__("Want to hide this section from your customes?", 'squirrly-seo') ?></a></div>
|
98 |
</div>
|
99 |
|
10 |
$view->checkin->product_name = 'Free + Bonus';
|
11 |
}
|
12 |
}
|
13 |
+
|
14 |
?>
|
15 |
<?php if (SQ_Classes_Helpers_Tools::getMenuVisible('show_account_info') && SQ_Classes_Helpers_Tools::userCan('manage_options')) { ?>
|
16 |
<i class="sq_account_info_avatar sq_icons sq_icons_small fa-solid fa-user" style="font-size: 20px;"></i>
|
26 |
<?php echo esc_html(sanitize_email($view->checkin->subscription_email)) ?>
|
27 |
<?php if (isset($view->checkin->subscription_paid) && isset($view->checkin->subscription_expires) && $view->checkin->subscription_paid && $view->checkin->subscription_expires) { ?>
|
28 |
<div class="small <?php echo ((time() - strtotime($view->checkin->subscription_expires) > 0) ? 'text-danger' : '') ?>" style="font-size: 12px; line-height: 20px;" ><?php echo sprintf(esc_html__("Due Date: %s", 'squirrly-seo'), date('d M Y', strtotime($view->checkin->subscription_expires)) ); ?> <a href="<?php echo SQ_Classes_RemoteController::getMySquirrlyLink('account') ?>" class="bg-primary text-white px-1" target="_blank"><?php echo esc_attr($view->checkin->product_name) ?></a></div>
|
29 |
+
<?php }elseif (isset($view->checkin->subscription_expires) && $view->checkin->subscription_expires) { ?>
|
30 |
+
<div class="small" style="font-size: 12px; line-height: 20px;" ><a href="<?php echo SQ_Classes_RemoteController::getMySquirrlyLink('account') ?>" class="bg-primary text-white px-1" target="_blank"><?php echo esc_attr($view->checkin->product_name) ?></a></div>
|
31 |
+
<?php }elseif (isset($view->checkin->subscription_expires) && !$view->checkin->subscription_expires) { ?>
|
32 |
+
<div class="small" style="font-size: 12px; line-height: 20px;" ><?php echo esc_html__("Expires: never", 'squirrly-seo') ; ?> <a href="<?php echo SQ_Classes_RemoteController::getMySquirrlyLink('account') ?>" class="bg-primary text-white px-1" target="_blank"><?php echo esc_attr($view->checkin->product_name) ?></a></div>
|
33 |
<?php } ?>
|
34 |
</div>
|
35 |
<?php } ?>
|
38 |
<ul class="p-0 m-0">
|
39 |
<?php
|
40 |
if (isset($view->checkin->subscription_max_kr) && isset($view->checkin->subscription_kr) && (int)$view->checkin->subscription_max_kr > 0) {
|
|
|
41 |
?>
|
42 |
<li class="m-0 p-0 py-3">
|
43 |
<div class="row m-0 p-0">
|
65 |
</li>
|
66 |
<?php }?>
|
67 |
|
68 |
+
<?php if (isset($view->checkin->subscription_max_focus_pages) && isset($view->checkin->subscription_focus_pages) && (int)$view->checkin->subscription_max_focus_pages > 0) {
|
69 |
+
?>
|
70 |
<li class="m-0 p-0 py-3">
|
71 |
<div class="row m-0 p-0">
|
72 |
<div class="col-1 m-0 p-0 mr-1"> <i class="fa-solid fa-bullseye-arrow"></i> </div>
|
98 |
</ul>
|
99 |
</div>
|
100 |
|
101 |
+
<div class="border-top py-2 px-3 mt-2 text-center">
|
102 |
<div class="small"><a href="<?php echo SQ_Classes_RemoteController::getMySquirrlyLink('dashboard') ?>" target="_blank"><?php echo esc_html__("Want to hide this section from your customes?", 'squirrly-seo') ?></a></div>
|
103 |
</div>
|
104 |
|
view/Blocks/Features.php
CHANGED
@@ -116,12 +116,10 @@
|
|
116 |
}
|
117 |
|
118 |
$class = 'auto';
|
119 |
-
if (
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
$class = '';
|
124 |
-
}
|
125 |
}
|
126 |
?>
|
127 |
<?php if($feature['category'] <> $current_category){
|
@@ -132,7 +130,7 @@
|
|
132 |
<?php }?>
|
133 |
<div class="col-3 p-0 pr-1 mb-3">
|
134 |
<div id="sq_feature_<?php echo (int)$index ?>" class="sq_feature card h-100 p-0 shadow-0 rounded-0 <?php echo esc_attr($class) ?>">
|
135 |
-
<div class="card-body m-0 p-0
|
136 |
<div class="mx-3 mt-4 p-0">
|
137 |
<div class="col p-0 mb-3 d-flex align-items-center">
|
138 |
<i class="<?php echo $feature['logo'] ?>"></i>
|
116 |
}
|
117 |
|
118 |
$class = 'auto';
|
119 |
+
if ($feature['active']) {
|
120 |
+
$class = 'active';
|
121 |
+
} else {
|
122 |
+
$class = '';
|
|
|
|
|
123 |
}
|
124 |
?>
|
125 |
<?php if($feature['category'] <> $current_category){
|
130 |
<?php }?>
|
131 |
<div class="col-3 p-0 pr-1 mb-3">
|
132 |
<div id="sq_feature_<?php echo (int)$index ?>" class="sq_feature card h-100 p-0 shadow-0 rounded-0 <?php echo esc_attr($class) ?>">
|
133 |
+
<div class="card-body m-0 p-0">
|
134 |
<div class="mx-3 mt-4 p-0">
|
135 |
<div class="col p-0 mb-3 d-flex align-items-center">
|
136 |
<i class="<?php echo $feature['logo'] ?>"></i>
|
view/Blocks/FrontendAssistant.php
CHANGED
@@ -1,26 +1,28 @@
|
|
1 |
<?php defined('ABSPATH') || die('Cheatin\' uh?'); ?>
|
2 |
-
<style>
|
3 |
-
body ul.sq_notification {
|
4 |
-
top: 4px !important;
|
5 |
-
}
|
6 |
-
#postsquirrly {
|
7 |
-
display: none;
|
8 |
-
}
|
9 |
-
.components-squirrly-icon{
|
10 |
-
display: none;
|
11 |
-
position: fixed;
|
12 |
-
right: 20px;
|
13 |
-
bottom: 10px;
|
14 |
-
z-index: 10;
|
15 |
-
border: 1px solid #999;
|
16 |
-
background-color: white;
|
17 |
-
margin: 0 !important;
|
18 |
-
padding: 3px;
|
19 |
-
cursor: pointer;
|
20 |
-
}
|
21 |
-
</style>
|
22 |
<?php if (SQ_Classes_Helpers_Tools::getOption('sq_api') <> '') { ?>
|
23 |
-
<
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
<?php }?>
|
1 |
<?php defined('ABSPATH') || die('Cheatin\' uh?'); ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
<?php if (SQ_Classes_Helpers_Tools::getOption('sq_api') <> '') { ?>
|
3 |
+
<style>
|
4 |
+
body ul.sq_notification {
|
5 |
+
top: 4px !important;
|
6 |
+
}
|
7 |
+
#postsquirrly {
|
8 |
+
display: none;
|
9 |
+
}
|
10 |
+
.components-squirrly-icon{
|
11 |
+
display: none;
|
12 |
+
position: fixed;
|
13 |
+
right: 20px;
|
14 |
+
bottom: 10px;
|
15 |
+
z-index: 10;
|
16 |
+
border: 1px solid #999;
|
17 |
+
background-color: white;
|
18 |
+
margin: 0 !important;
|
19 |
+
padding: 3px;
|
20 |
+
cursor: pointer;
|
21 |
+
}
|
22 |
+
</style>
|
23 |
+
|
24 |
+
<div id="postsquirrly" class="sq_frontend">
|
25 |
+
<?php $view->show_view('Post'); ?>
|
26 |
+
</div>
|
27 |
+
|
28 |
<?php }?>
|
view/Blocks/LiveAssistant.php
CHANGED
@@ -19,12 +19,12 @@
|
|
19 |
<?php echo esc_html__("Loading the keyword", 'squirrly-seo'); ?> ...
|
20 |
</div>
|
21 |
<div id="sq_nokeyword" class="sq-p-2 sq-py-4 sq-bg-light sq-border-bottom sq-text-center" style="display: none">
|
22 |
-
<a href="javascript:void(0);" onclick="jQuery('.sq_box_maximize').trigger('click')"><?php echo esc_html__("Add a keyword from Briefcase", 'squirrly-seo') ?></a>
|
23 |
</div>
|
24 |
<div class="sq_keyword sq-p-2 sq-bg-light sq-border-bottom" style="display: none">
|
25 |
<span class="sq-font-weight-bold" style="font-size: 1rem"><?php echo esc_html__("SLA Score", 'squirrly-seo') ?>:</span> <span class="sq-font-weight-bold" id="sq_keyword_score" style="font-size: 1rem"></span>
|
26 |
<div class="sq-col-12 sq-m-0 sq-p-0">
|
27 |
-
<input type="text" id="sq_keyword" name="sq_keyword" class="sq-col-12 sq-m-0 sq-p-0" value="<?php echo SQ_Classes_Helpers_Tools::getValue('keyword', '') ?>" autocomplete="off"
|
28 |
<input type="button" id="sq_selectit" value="<?php echo esc_html__("Use this keyword", 'squirrly-seo'); ?>" style="display: none"/>
|
29 |
</div>
|
30 |
</div>
|
19 |
<?php echo esc_html__("Loading the keyword", 'squirrly-seo'); ?> ...
|
20 |
</div>
|
21 |
<div id="sq_nokeyword" class="sq-p-2 sq-py-4 sq-bg-light sq-border-bottom sq-text-center" style="display: none">
|
22 |
+
<a href="javascript:void(0);" onclick="jQuery('.sq_box_maximize').trigger('click'); jQuery('#sq_block_tabs').find('.sq_block_tab:first-child').trigger('click');"><?php echo esc_html__("Add a keyword from Briefcase", 'squirrly-seo') ?></a>
|
23 |
</div>
|
24 |
<div class="sq_keyword sq-p-2 sq-bg-light sq-border-bottom" style="display: none">
|
25 |
<span class="sq-font-weight-bold" style="font-size: 1rem"><?php echo esc_html__("SLA Score", 'squirrly-seo') ?>:</span> <span class="sq-font-weight-bold" id="sq_keyword_score" style="font-size: 1rem"></span>
|
26 |
<div class="sq-col-12 sq-m-0 sq-p-0">
|
27 |
+
<input type="text" id="sq_keyword" name="sq_keyword" class="sq-col-12 sq-m-0 sq-p-0" value="<?php echo SQ_Classes_Helpers_Tools::getValue('keyword', '') ?>" autocomplete="off" />
|
28 |
<input type="button" id="sq_selectit" value="<?php echo esc_html__("Use this keyword", 'squirrly-seo'); ?>" style="display: none"/>
|
29 |
</div>
|
30 |
</div>
|
view/Blocks/Snippet.php
CHANGED
@@ -111,7 +111,7 @@ if (SQ_Classes_Helpers_Tools::getOption('sq_use')) {
|
|
111 |
<div class="sq-card-body sq_tab_meta sq_tabcontent <?php echo ($view->post->sq_adm->doseo == 0) ? 'sq-d-none' : ''; ?>">
|
112 |
<?php if (!SQ_Classes_Helpers_Tools::getOption('sq_auto_metas')) { ?>
|
113 |
<div class="sq_deactivated_label sq-col-12 sq-row sq-m-0 sq-p-2 sq-pr-3 sq_save_ajax">
|
114 |
-
<div class="sq-col-12 sq-p-0 sq-text-center">
|
115 |
<input type="hidden" id="activate_sq_auto_metas" value="1"/>
|
116 |
<button type="button" class="sq-btn sq-btn-link sq-text-danger sq-btn-lg" data-input="activate_sq_auto_metas" data-action="sq_ajax_seosettings_save" data-name="sq_auto_metas"><?php echo esc_html__("Activate Metas", 'squirrly-seo'); ?></button>
|
117 |
</div>
|
@@ -377,14 +377,14 @@ if (SQ_Classes_Helpers_Tools::getOption('sq_use')) {
|
|
377 |
<div class="sq-col-12 sq-row sq-mx-0 sq-px-0 sq-my-1 sq-py-1">
|
378 |
<?php if (!SQ_Classes_Helpers_Tools::getOption('sq_auto_jsonld')) { ?>
|
379 |
<div class="sq_deactivated_label sq-col-12 sq-row sq-m-0 sq-p-2 sq-pr-3 sq_save_ajax">
|
380 |
-
<div class="sq-col-12 sq-p-0 sq-text-center">
|
381 |
<input type="hidden" id="activate_sq_auto_jsonld" value="1"/>
|
382 |
<button type="button" class="sq-btn sq-btn-link sq-text-danger sq-btn-lg" data-input="activate_sq_auto_jsonld" data-action="sq_ajax_seosettings_save" data-name="sq_auto_jsonld"><?php echo esc_html__("Activate JSON-LD", 'squirrly-seo'); ?></button>
|
383 |
</div>
|
384 |
</div>
|
385 |
<?php } elseif (!$view->post->sq->do_jsonld) { ?>
|
386 |
<div class="sq_deactivated_label sq-col-12 sq-row sq-m-0 sq-p-2 sq-pr-3 sq_save_ajax">
|
387 |
-
<div class="sq-col-12 sq-p-0 sq-text-center">
|
388 |
<?php echo sprintf(esc_html__("JSON-LD is disable for this Post Type (%s). See %s Squirrly > Automation > Configuration %s.", 'squirrly-seo'), esc_attr($view->post->post_type), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_automation', 'automation') . '#tab=nav-' . esc_attr($view->post->post_type) . '" target="_blank"><strong>', '</strong></a>') ?>
|
389 |
</div>
|
390 |
</div>
|
@@ -591,7 +591,7 @@ if (SQ_Classes_Helpers_Tools::getOption('sq_use')) {
|
|
591 |
|
592 |
</div>
|
593 |
|
594 |
-
<div class="sq-card-footer sq-py-0 sq-my-0 <?php echo ($view->post->sq_adm->doseo == 0) ? 'sq-mt-5' : ''; ?>">
|
595 |
<div class="sq-row sq-mx-0 sq-px-0">
|
596 |
<div class="sq-text-center sq-col-12 sq-my-4 sq-mx-0 sq-px-0 sq-text-danger" style="font-size: 18px; <?php echo ($view->post->sq_adm->doseo == 1) ? 'display: none' : ''; ?>">
|
597 |
<?php echo esc_html__("To edit the snippet, you have to activate Squirrly SEO for this page first", 'squirrly-seo') ?>
|
@@ -612,7 +612,7 @@ if (SQ_Classes_Helpers_Tools::getOption('sq_use')) {
|
|
612 |
<div class="sq-card-body sq_tab_facebook sq_tabcontent <?php echo ($view->post->sq_adm->doseo == 0) ? 'sq-d-none' : ''; ?>">
|
613 |
<?php if (!SQ_Classes_Helpers_Tools::getOption('sq_auto_facebook')) { ?>
|
614 |
<div class="sq_deactivated_label sq-col-12 sq-row sq-m-0 sq-p-2 sq-pr-3 sq_save_ajax">
|
615 |
-
<div class="sq-col-12 sq-p-0 sq-text-center">
|
616 |
<input type="hidden" id="activate_sq_auto_facebook" value="1"/>
|
617 |
<button type="button" class="sq-btn sq-btn-link sq-text-danger sq-btn-lg" data-input="activate_sq_auto_facebook" data-action="sq_ajax_seosettings_save" data-name="sq_auto_facebook"><?php echo esc_html__("Activate Open Graph", 'squirrly-seo'); ?></button>
|
618 |
</div>
|
@@ -852,7 +852,7 @@ if (SQ_Classes_Helpers_Tools::getOption('sq_use')) {
|
|
852 |
</div>
|
853 |
</div>
|
854 |
|
855 |
-
<div class="sq-card-footer sq-py-0 sq-my-0 <?php echo ($view->post->sq_adm->doseo == 0) ? 'sq-mt-5' : ''; ?>">
|
856 |
<div class="sq-row sq-mx-0 sq-px-0">
|
857 |
<div class="sq-text-center sq-col-12 sq-my-4 sq-mx-0 sq-px-0 sq-text-danger" style="font-size: 18px; <?php echo ($view->post->sq_adm->doseo == 1) ? 'display: none' : ''; ?>">
|
858 |
<?php echo esc_html__("To edit the snippet, you have to activate Squirrly SEO for this page first", 'squirrly-seo') ?>
|
@@ -873,7 +873,7 @@ if (SQ_Classes_Helpers_Tools::getOption('sq_use')) {
|
|
873 |
<div class="sq-card-body sq_tab_twitter sq_tabcontent <?php echo ($view->post->sq_adm->doseo == 0) ? 'sq-d-none' : ''; ?>">
|
874 |
<?php if (!SQ_Classes_Helpers_Tools::getOption('sq_auto_twitter')) { ?>
|
875 |
<div class="sq_deactivated_label sq-col-12 sq-row sq-m-0 sq-p-2 sq-pr-3 sq_save_ajax">
|
876 |
-
<div class="sq-col-12 sq-p-0 sq-text-center">
|
877 |
<input type="hidden" id="activate_sq_auto_twitter" value="1"/>
|
878 |
<button type="button" class="sq-btn sq-btn-link sq-text-danger sq-btn-lg" data-input="activate_sq_auto_twitter" data-action="sq_ajax_seosettings_save" data-name="sq_auto_twitter"><?php echo esc_html__("Activate Twitter Card", 'squirrly-seo'); ?></button>
|
879 |
</div>
|
@@ -1089,7 +1089,7 @@ if (SQ_Classes_Helpers_Tools::getOption('sq_use')) {
|
|
1089 |
</div>
|
1090 |
</div>
|
1091 |
|
1092 |
-
<div class="sq-card-footer sq-py-0 sq-my-0 <?php echo ($view->post->sq_adm->doseo == 0) ? 'sq-mt-5' : ''; ?>">
|
1093 |
<div class="sq-row sq-mx-0 sq-px-0">
|
1094 |
<div class="sq-text-center sq-col-12 sq-my-4 sq-mx-0 sq-px-0 sq-text-danger" style="font-size: 18px; <?php echo ($view->post->sq_adm->doseo == 1) ? 'display: none' : ''; ?>">
|
1095 |
<?php echo esc_html__("To edit the snippet, you have to activate Squirrly SEO for this page first", 'squirrly-seo') ?>
|
@@ -1123,8 +1123,8 @@ if (SQ_Classes_Helpers_Tools::getOption('sq_use')) {
|
|
1123 |
<div class="sq-col-12 sq-row sq-mx-0 sq-px-0 sq-my-1 sq-py-1">
|
1124 |
<?php if (isset($patterns[$view->post->post_type]['noindex']) && $patterns[$view->post->post_type]['noindex']) { ?>
|
1125 |
<div class="sq_deactivated_label sq-col-12 sq-row sq-m-0 sq-p-2 sq-pr-3 sq_save_ajax">
|
1126 |
-
<div class="sq-col-12 sq-p-0 sq-text-center">
|
1127 |
-
<?php echo sprintf(esc_html__("This Post Type (%s) has Nofollow set in Automation. See %s Squirrly > Automation > Configuration %s.", 'squirrly-seo'), esc_attr($view->post->post_type), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_automation', 'automation') . '#tab=
|
1128 |
</div>
|
1129 |
</div>
|
1130 |
<?php } elseif (!SQ_Classes_Helpers_Tools::getOption('sq_auto_noindex')) { ?>
|
@@ -1154,7 +1154,7 @@ if (SQ_Classes_Helpers_Tools::getOption('sq_use')) {
|
|
1154 |
|
1155 |
<?php if (isset($patterns[$view->post->post_type]['nofollow']) && $patterns[$view->post->post_type]['nofollow']) { ?>
|
1156 |
<div class="sq_deactivated_label sq-col-12 sq-row sq-m-0 sq-p-2 sq-pr-3 sq_save_ajax">
|
1157 |
-
<div class="sq-col-12 sq-p-0 sq-text-center">
|
1158 |
<?php echo sprintf(esc_html__("This Post Type (%s) has Nofollow set in Automation. See %s Squirrly > Automation > Configuration %s.", 'squirrly-seo'), esc_attr($view->post->post_type), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_automation', 'automation') . '#tab=nav-' . esc_attr($view->post->post_type) . '" target="_blank"><strong>', '</strong></a>') ?>
|
1159 |
</div>
|
1160 |
</div>
|
@@ -1184,7 +1184,7 @@ if (SQ_Classes_Helpers_Tools::getOption('sq_use')) {
|
|
1184 |
<div class="sq-col-12 sq-row sq-mx-0 sq-px-0 sq-my-1 sq-py-1">
|
1185 |
<?php if (!$view->post->sq->do_sitemap) { ?>
|
1186 |
<div class="sq_deactivated_label sq-col-12 sq-row sq-m-0 sq-p-2 sq-pr-3 sq_save_ajax">
|
1187 |
-
<div class="sq-col-12 sq-p-0 sq-text-center">
|
1188 |
<?php echo sprintf(esc_html__("Show in sitemap for this Post Type (%s) was excluded from %s Squirrly > Automation > Configuration %s.", 'squirrly-seo'), esc_attr($view->post->post_type), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_automation', 'automation') . '#tab=nav-' . esc_attr($view->post->post_type) . '" target="_blank"><strong>', '</strong></a>') ?>
|
1189 |
</div>
|
1190 |
</div>
|
@@ -1238,7 +1238,7 @@ if (SQ_Classes_Helpers_Tools::getOption('sq_use')) {
|
|
1238 |
|
1239 |
</div>
|
1240 |
|
1241 |
-
<div class="sq-card-footer sq-py-0 sq-my-0 <?php echo ($view->post->sq_adm->doseo == 0) ? 'sq-mt-5' : ''; ?>">
|
1242 |
<div class="sq-row sq-mx-0 sq-px-0">
|
1243 |
<div class="sq-text-center sq-col-12 sq-my-4 sq-mx-0 sq-px-0 sq-text-danger" style="font-size: 18px; <?php echo ($view->post->sq_adm->doseo == 1) ? 'display: none' : ''; ?>">
|
1244 |
<?php echo esc_html__("To edit the snippet, you have to activate Squirrly SEO for this page first", 'squirrly-seo') ?>
|
111 |
<div class="sq-card-body sq_tab_meta sq_tabcontent <?php echo ($view->post->sq_adm->doseo == 0) ? 'sq-d-none' : ''; ?>">
|
112 |
<?php if (!SQ_Classes_Helpers_Tools::getOption('sq_auto_metas')) { ?>
|
113 |
<div class="sq_deactivated_label sq-col-12 sq-row sq-m-0 sq-p-2 sq-pr-3 sq_save_ajax">
|
114 |
+
<div class="sq-col-12 sq-p-0 sq-text-center sq-small">
|
115 |
<input type="hidden" id="activate_sq_auto_metas" value="1"/>
|
116 |
<button type="button" class="sq-btn sq-btn-link sq-text-danger sq-btn-lg" data-input="activate_sq_auto_metas" data-action="sq_ajax_seosettings_save" data-name="sq_auto_metas"><?php echo esc_html__("Activate Metas", 'squirrly-seo'); ?></button>
|
117 |
</div>
|
377 |
<div class="sq-col-12 sq-row sq-mx-0 sq-px-0 sq-my-1 sq-py-1">
|
378 |
<?php if (!SQ_Classes_Helpers_Tools::getOption('sq_auto_jsonld')) { ?>
|
379 |
<div class="sq_deactivated_label sq-col-12 sq-row sq-m-0 sq-p-2 sq-pr-3 sq_save_ajax">
|
380 |
+
<div class="sq-col-12 sq-p-0 sq-text-center sq-small">
|
381 |
<input type="hidden" id="activate_sq_auto_jsonld" value="1"/>
|
382 |
<button type="button" class="sq-btn sq-btn-link sq-text-danger sq-btn-lg" data-input="activate_sq_auto_jsonld" data-action="sq_ajax_seosettings_save" data-name="sq_auto_jsonld"><?php echo esc_html__("Activate JSON-LD", 'squirrly-seo'); ?></button>
|
383 |
</div>
|
384 |
</div>
|
385 |
<?php } elseif (!$view->post->sq->do_jsonld) { ?>
|
386 |
<div class="sq_deactivated_label sq-col-12 sq-row sq-m-0 sq-p-2 sq-pr-3 sq_save_ajax">
|
387 |
+
<div class="sq-col-12 sq-p-0 sq-text-center sq-small">
|
388 |
<?php echo sprintf(esc_html__("JSON-LD is disable for this Post Type (%s). See %s Squirrly > Automation > Configuration %s.", 'squirrly-seo'), esc_attr($view->post->post_type), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_automation', 'automation') . '#tab=nav-' . esc_attr($view->post->post_type) . '" target="_blank"><strong>', '</strong></a>') ?>
|
389 |
</div>
|
390 |
</div>
|
591 |
|
592 |
</div>
|
593 |
|
594 |
+
<div class="sq-card-footer sq-border-0 sq-py-0 sq-my-0 <?php echo ($view->post->sq_adm->doseo == 0) ? 'sq-mt-5' : ''; ?>">
|
595 |
<div class="sq-row sq-mx-0 sq-px-0">
|
596 |
<div class="sq-text-center sq-col-12 sq-my-4 sq-mx-0 sq-px-0 sq-text-danger" style="font-size: 18px; <?php echo ($view->post->sq_adm->doseo == 1) ? 'display: none' : ''; ?>">
|
597 |
<?php echo esc_html__("To edit the snippet, you have to activate Squirrly SEO for this page first", 'squirrly-seo') ?>
|
612 |
<div class="sq-card-body sq_tab_facebook sq_tabcontent <?php echo ($view->post->sq_adm->doseo == 0) ? 'sq-d-none' : ''; ?>">
|
613 |
<?php if (!SQ_Classes_Helpers_Tools::getOption('sq_auto_facebook')) { ?>
|
614 |
<div class="sq_deactivated_label sq-col-12 sq-row sq-m-0 sq-p-2 sq-pr-3 sq_save_ajax">
|
615 |
+
<div class="sq-col-12 sq-p-0 sq-text-center sq-small">
|
616 |
<input type="hidden" id="activate_sq_auto_facebook" value="1"/>
|
617 |
<button type="button" class="sq-btn sq-btn-link sq-text-danger sq-btn-lg" data-input="activate_sq_auto_facebook" data-action="sq_ajax_seosettings_save" data-name="sq_auto_facebook"><?php echo esc_html__("Activate Open Graph", 'squirrly-seo'); ?></button>
|
618 |
</div>
|
852 |
</div>
|
853 |
</div>
|
854 |
|
855 |
+
<div class="sq-card-footer sq-border-0 sq-py-0 sq-my-0 <?php echo ($view->post->sq_adm->doseo == 0) ? 'sq-mt-5' : ''; ?>">
|
856 |
<div class="sq-row sq-mx-0 sq-px-0">
|
857 |
<div class="sq-text-center sq-col-12 sq-my-4 sq-mx-0 sq-px-0 sq-text-danger" style="font-size: 18px; <?php echo ($view->post->sq_adm->doseo == 1) ? 'display: none' : ''; ?>">
|
858 |
<?php echo esc_html__("To edit the snippet, you have to activate Squirrly SEO for this page first", 'squirrly-seo') ?>
|
873 |
<div class="sq-card-body sq_tab_twitter sq_tabcontent <?php echo ($view->post->sq_adm->doseo == 0) ? 'sq-d-none' : ''; ?>">
|
874 |
<?php if (!SQ_Classes_Helpers_Tools::getOption('sq_auto_twitter')) { ?>
|
875 |
<div class="sq_deactivated_label sq-col-12 sq-row sq-m-0 sq-p-2 sq-pr-3 sq_save_ajax">
|
876 |
+
<div class="sq-col-12 sq-p-0 sq-text-center sq-small">
|
877 |
<input type="hidden" id="activate_sq_auto_twitter" value="1"/>
|
878 |
<button type="button" class="sq-btn sq-btn-link sq-text-danger sq-btn-lg" data-input="activate_sq_auto_twitter" data-action="sq_ajax_seosettings_save" data-name="sq_auto_twitter"><?php echo esc_html__("Activate Twitter Card", 'squirrly-seo'); ?></button>
|
879 |
</div>
|
1089 |
</div>
|
1090 |
</div>
|
1091 |
|
1092 |
+
<div class="sq-card-footer sq-border-0 sq-py-0 sq-my-0 <?php echo ($view->post->sq_adm->doseo == 0) ? 'sq-mt-5' : ''; ?>">
|
1093 |
<div class="sq-row sq-mx-0 sq-px-0">
|
1094 |
<div class="sq-text-center sq-col-12 sq-my-4 sq-mx-0 sq-px-0 sq-text-danger" style="font-size: 18px; <?php echo ($view->post->sq_adm->doseo == 1) ? 'display: none' : ''; ?>">
|
1095 |
<?php echo esc_html__("To edit the snippet, you have to activate Squirrly SEO for this page first", 'squirrly-seo') ?>
|
1123 |
<div class="sq-col-12 sq-row sq-mx-0 sq-px-0 sq-my-1 sq-py-1">
|
1124 |
<?php if (isset($patterns[$view->post->post_type]['noindex']) && $patterns[$view->post->post_type]['noindex']) { ?>
|
1125 |
<div class="sq_deactivated_label sq-col-12 sq-row sq-m-0 sq-p-2 sq-pr-3 sq_save_ajax">
|
1126 |
+
<div class="sq-col-12 sq-p-0 sq-text-center sq-small">
|
1127 |
+
<?php echo sprintf(esc_html__("This Post Type (%s) has Nofollow set in Automation. See %s Squirrly > Automation > Configuration %s.", 'squirrly-seo'), esc_attr($view->post->post_type), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_automation', 'automation') . '#tab=sq_' . esc_attr($view->post->post_type) . '" target="_blank"><strong>', '</strong></a>') ?>
|
1128 |
</div>
|
1129 |
</div>
|
1130 |
<?php } elseif (!SQ_Classes_Helpers_Tools::getOption('sq_auto_noindex')) { ?>
|
1154 |
|
1155 |
<?php if (isset($patterns[$view->post->post_type]['nofollow']) && $patterns[$view->post->post_type]['nofollow']) { ?>
|
1156 |
<div class="sq_deactivated_label sq-col-12 sq-row sq-m-0 sq-p-2 sq-pr-3 sq_save_ajax">
|
1157 |
+
<div class="sq-col-12 sq-p-0 sq-text-center sq-small">
|
1158 |
<?php echo sprintf(esc_html__("This Post Type (%s) has Nofollow set in Automation. See %s Squirrly > Automation > Configuration %s.", 'squirrly-seo'), esc_attr($view->post->post_type), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_automation', 'automation') . '#tab=nav-' . esc_attr($view->post->post_type) . '" target="_blank"><strong>', '</strong></a>') ?>
|
1159 |
</div>
|
1160 |
</div>
|
1184 |
<div class="sq-col-12 sq-row sq-mx-0 sq-px-0 sq-my-1 sq-py-1">
|
1185 |
<?php if (!$view->post->sq->do_sitemap) { ?>
|
1186 |
<div class="sq_deactivated_label sq-col-12 sq-row sq-m-0 sq-p-2 sq-pr-3 sq_save_ajax">
|
1187 |
+
<div class="sq-col-12 sq-p-0 sq-text-center sq-small">
|
1188 |
<?php echo sprintf(esc_html__("Show in sitemap for this Post Type (%s) was excluded from %s Squirrly > Automation > Configuration %s.", 'squirrly-seo'), esc_attr($view->post->post_type), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_automation', 'automation') . '#tab=nav-' . esc_attr($view->post->post_type) . '" target="_blank"><strong>', '</strong></a>') ?>
|
1189 |
</div>
|
1190 |
</div>
|
1238 |
|
1239 |
</div>
|
1240 |
|
1241 |
+
<div class="sq-card-footer sq-border-0 sq-py-0 sq-my-0 <?php echo ($view->post->sq_adm->doseo == 0) ? 'sq-mt-5' : ''; ?>">
|
1242 |
<div class="sq-row sq-mx-0 sq-px-0">
|
1243 |
<div class="sq-text-center sq-col-12 sq-my-4 sq-mx-0 sq-px-0 sq-text-danger" style="font-size: 18px; <?php echo ($view->post->sq_adm->doseo == 1) ? 'display: none' : ''; ?>">
|
1244 |
<?php echo esc_html__("To edit the snippet, you have to activate Squirrly SEO for this page first", 'squirrly-seo') ?>
|
view/FocusPages/Addpage.php
CHANGED
@@ -105,7 +105,7 @@
|
|
105 |
<input type="search" class="d-inline-block align-middle col-6 m-0 p-0 px-1 rounded-0" id="post-search-input" autofocus name="skeyword" value="<?php echo SQ_Classes_Helpers_Sanitize::escapeKeyword(SQ_Classes_Helpers_Tools::getValue('skeyword')) ?>" placeholder="<?php echo esc_html__("Write the page you want to search for", 'squirrly-seo') ?>"/>
|
106 |
<input type="submit" class="btn btn-primary " value="<?php echo esc_html__("Search Post", 'squirrly-seo') ?> >"/>
|
107 |
<?php if ((SQ_Classes_Helpers_Tools::getIsset('skeyword') && SQ_Classes_Helpers_Tools::getValue('skeyword') <> '#all') || SQ_Classes_Helpers_Tools::getIsset('slabel') || SQ_Classes_Helpers_Tools::getIsset('sid') || SQ_Classes_Helpers_Tools::getIsset('sstatus')) { ?>
|
108 |
-
<button type="button" class="btn btn-link m-0 ml-1" onclick="location.href = '<?php echo SQ_Classes_Helpers_Tools::getAdminUrl('sq_focuspages', '
|
109 |
<?php } ?>
|
110 |
</div>
|
111 |
</div>
|
105 |
<input type="search" class="d-inline-block align-middle col-6 m-0 p-0 px-1 rounded-0" id="post-search-input" autofocus name="skeyword" value="<?php echo SQ_Classes_Helpers_Sanitize::escapeKeyword(SQ_Classes_Helpers_Tools::getValue('skeyword')) ?>" placeholder="<?php echo esc_html__("Write the page you want to search for", 'squirrly-seo') ?>"/>
|
106 |
<input type="submit" class="btn btn-primary " value="<?php echo esc_html__("Search Post", 'squirrly-seo') ?> >"/>
|
107 |
<?php if ((SQ_Classes_Helpers_Tools::getIsset('skeyword') && SQ_Classes_Helpers_Tools::getValue('skeyword') <> '#all') || SQ_Classes_Helpers_Tools::getIsset('slabel') || SQ_Classes_Helpers_Tools::getIsset('sid') || SQ_Classes_Helpers_Tools::getIsset('sstatus')) { ?>
|
108 |
+
<button type="button" class="btn btn-link m-0 ml-1" onclick="location.href = '<?php echo SQ_Classes_Helpers_Tools::getAdminUrl('sq_focuspages', 'addpage', array('stype=' . SQ_Classes_Helpers_Sanitize::escapeGetValue('stype', 'post'))) ?>';" style="cursor: pointer"><?php echo esc_html__("Show All", 'squirrly-seo') ?></button>
|
109 |
<?php } ?>
|
110 |
</div>
|
111 |
</div>
|
view/Onboarding/Step4.php
CHANGED
@@ -123,7 +123,7 @@ $jsonldtype = SQ_Classes_Helpers_Tools::getOption('sq_jsonld_type');
|
|
123 |
<div class="small text-black-50 my-1">e.g. COMPANY LTD</div>
|
124 |
</div>
|
125 |
<div class="col-8 p-0 input-group input-group-lg">
|
126 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][name]" value="<?php echo(($jsonld['Organization']['name'] <> '') ? esc_attr($jsonld['Organization']['name']) : '') ?>"/>
|
127 |
</div>
|
128 |
</div>
|
129 |
<div class="col-12 row m-0 p-0 my-5">
|
@@ -132,7 +132,7 @@ $jsonldtype = SQ_Classes_Helpers_Tools::getOption('sq_jsonld_type');
|
|
132 |
<div class="small text-black-50 my-1"></div>
|
133 |
</div>
|
134 |
<div class="col-8 p-0 input-group input-group-lg">
|
135 |
-
<input id="sq_jsonld_logo_organization" type="text" class="form-control bg-input" name="sq_jsonld[Organization][logo][url]" value="<?php echo(($jsonld['Organization']['logo']['url'] <> '') ? esc_url($jsonld['Organization']['logo']['url']) : '') ?>"/>
|
136 |
<input type="button" class="sq_imageselect btn btn-primary rounded-0" data-destination="sq_jsonld_logo_organization" value="<?php echo esc_html__("Select Image", 'squirrly-seo') ?>"/>
|
137 |
</div>
|
138 |
</div>
|
@@ -142,7 +142,7 @@ $jsonldtype = SQ_Classes_Helpers_Tools::getOption('sq_jsonld_type');
|
|
142 |
<div class="small text-black-50 my-1"><?php echo esc_html__("A short description about the company. 20-50 words.", 'squirrly-seo'); ?></div>
|
143 |
</div>
|
144 |
<div class="col-8 p-0">
|
145 |
-
<textarea class="form-control" name="sq_jsonld[Organization][description]" rows="3"><?php echo(($jsonld['Organization']['description'] <> '') ? esc_textarea($jsonld['Organization']['description']) : '') ?></textarea>
|
146 |
</div>
|
147 |
</div>
|
148 |
<div class="col-12 row m-0 p-0 my-5">
|
@@ -151,7 +151,7 @@ $jsonldtype = SQ_Classes_Helpers_Tools::getOption('sq_jsonld_type');
|
|
151 |
<div class="small text-black-50 my-1">e.g. 38 avenue de l'Opera</div>
|
152 |
</div>
|
153 |
<div class="col-8 p-0 input-group input-group-lg">
|
154 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][address][streetAddress]" value="<?php echo(($jsonld['Organization']['address']['streetAddress']) ? esc_attr($jsonld['Organization']['address']['streetAddress']) : '') ?>"/>
|
155 |
</div>
|
156 |
</div>
|
157 |
<div class="col-12 row m-0 p-0 my-5">
|
@@ -160,7 +160,7 @@ $jsonldtype = SQ_Classes_Helpers_Tools::getOption('sq_jsonld_type');
|
|
160 |
<div class="small text-black-50 my-1">e.g. Paris</div>
|
161 |
</div>
|
162 |
<div class="col-8 p-0 input-group input-group-lg">
|
163 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][address][addressLocality]" value="<?php echo(($jsonld['Organization']['address']['addressLocality']) ? esc_attr($jsonld['Organization']['address']['addressLocality']) : '') ?>"/>
|
164 |
</div>
|
165 |
</div>
|
166 |
<div class="col-12 row m-0 p-0 my-5">
|
@@ -169,7 +169,7 @@ $jsonldtype = SQ_Classes_Helpers_Tools::getOption('sq_jsonld_type');
|
|
169 |
<div class="small text-black-50 my-1">e.g. US</div>
|
170 |
</div>
|
171 |
<div class="col-8 p-0 input-group input-group-lg">
|
172 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][address][addressCountry]" value="<?php echo(($jsonld['Organization']['address']['addressCountry']) ? esc_attr($jsonld['Organization']['address']['addressCountry']) : '') ?>"/>
|
173 |
</div>
|
174 |
</div>
|
175 |
<div class="col-12 row m-0 p-0 my-5">
|
@@ -178,7 +178,7 @@ $jsonldtype = SQ_Classes_Helpers_Tools::getOption('sq_jsonld_type');
|
|
178 |
<div class="small text-black-50 my-1">e.g. F-75002</div>
|
179 |
</div>
|
180 |
<div class="col-8 p-0 input-group input-group-lg">
|
181 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][address][postalCode]" value="<?php echo(($jsonld['Organization']['address']['postalCode']) ? esc_attr($jsonld['Organization']['address']['postalCode']) : '') ?>"/>
|
182 |
</div>
|
183 |
</div>
|
184 |
<div class="col-12 row m-0 p-0 my-5">
|
@@ -187,7 +187,7 @@ $jsonldtype = SQ_Classes_Helpers_Tools::getOption('sq_jsonld_type');
|
|
187 |
<div class="small text-black-50 my-1">e.g. +1-541-754-3010</div>
|
188 |
</div>
|
189 |
<div class="col-8 p-0 input-group input-group-lg">
|
190 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][contactPoint][telephone]" value="<?php echo(($jsonld['Organization']['contactPoint']['telephone']) ? esc_attr($jsonld['Organization']['contactPoint']['telephone']) : '') ?>"/>
|
191 |
</div>
|
192 |
</div>
|
193 |
<div class="col-12 row m-0 p-0 my-5">
|
@@ -198,17 +198,17 @@ $jsonldtype = SQ_Classes_Helpers_Tools::getOption('sq_jsonld_type');
|
|
198 |
<div class="col-8 m-0 p-0 input-group">
|
199 |
<select name="sq_jsonld[Organization][contactPoint][contactType]" class="form-control bg-input mb-1 border">
|
200 |
<option value=""></option>
|
201 |
-
<option value="customer service" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'customer service') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Customer Service", 'squirrly-seo'); ?></option>
|
202 |
-
<option value="technical support" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'technical support') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Technical Support", 'squirrly-seo'); ?></option>
|
203 |
-
<option value="billing support" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'billing support') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Billing Support", 'squirrly-seo'); ?></option>
|
204 |
-
<option value="bill payment" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'bill payment') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Bill Payment", 'squirrly-seo'); ?></option>
|
205 |
-
<option value="sales" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'sales') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Sales", 'squirrly-seo'); ?></option>
|
206 |
-
<option value="reservations" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'reservations') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Reservations", 'squirrly-seo'); ?></option>
|
207 |
-
<option value="credit card support" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'credit card support') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Credit Card Support", 'squirrly-seo'); ?></option>
|
208 |
-
<option value="emergency" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'emergency') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Emergency", 'squirrly-seo'); ?></option>
|
209 |
-
<option value="baggage tracking" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'baggage tracking') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Baggage Tracking", 'squirrly-seo'); ?></option>
|
210 |
-
<option value="roadside assistance" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'roadside assistance') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Roadside Assistance", 'squirrly-seo'); ?></option>
|
211 |
-
<option value="package tracking" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'package tracking') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Package Tracking", 'squirrly-seo'); ?></option>
|
212 |
</select>
|
213 |
</div>
|
214 |
</div>
|
@@ -224,7 +224,7 @@ $jsonldtype = SQ_Classes_Helpers_Tools::getOption('sq_jsonld_type');
|
|
224 |
<div class="small text-black-50 my-1 pr-3">e.g. John Smith</div>
|
225 |
</div>
|
226 |
<div class="col-8 p-0 input-group input-group-lg">
|
227 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Person][name]" value="<?php echo(($jsonld['Person']['name'] <> '') ? esc_attr($jsonld['Person']['name']) : '') ?>"/>
|
228 |
</div>
|
229 |
</div>
|
230 |
<div class="col-12 row m-0 p-0 my-5">
|
@@ -233,7 +233,7 @@ $jsonldtype = SQ_Classes_Helpers_Tools::getOption('sq_jsonld_type');
|
|
233 |
<div class="small text-black-50 my-1">e.g. Sales Manager</div>
|
234 |
</div>
|
235 |
<div class="col-5 p-0 input-group input-group-lg">
|
236 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Person][jobTitle]" value="<?php echo(($jsonld['Person']['jobTitle'] <> '') ? esc_attr($jsonld['Person']['jobTitle']) : '') ?>"/>
|
237 |
</div>
|
238 |
</div>
|
239 |
<div class="col-12 row m-0 p-0 my-5">
|
@@ -242,7 +242,7 @@ $jsonldtype = SQ_Classes_Helpers_Tools::getOption('sq_jsonld_type');
|
|
242 |
<div class="small text-black-50 my-1 pr-3"><?php echo esc_html__("Select an image from Media Library.", 'squirrly-seo'); ?></div>
|
243 |
</div>
|
244 |
<div class="col-8 p-0 input-group input-group-lg">
|
245 |
-
<input id="sq_jsonld_logo_person" type="text" class="form-control bg-input" name="sq_jsonld[Person][image][url]" value="<?php echo(($jsonld['Person']['image']['url'] <> '') ? esc_url($jsonld['Person']['image']['url']) : '') ?>" placeholder="<?php echo esc_html__("Select your file here", 'squirrly-seo') ?>"/>
|
246 |
<input type="button" class="sq_imageselect form-control btn btn-primary rounded-0 col-3" data-destination="sq_jsonld_logo_person" value="<?php echo esc_html__("Select Image", 'squirrly-seo') ?>"/>
|
247 |
</div>
|
248 |
</div>
|
@@ -252,7 +252,7 @@ $jsonldtype = SQ_Classes_Helpers_Tools::getOption('sq_jsonld_type');
|
|
252 |
<div class="small text-black-50 my-1 pr-3">e.g. +1-541-754-3010</div>
|
253 |
</div>
|
254 |
<div class="col-5 p-0 input-group input-group-lg">
|
255 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Person][telephone]" value="<?php echo(($jsonld['Person']['telephone'] <> '') ? esc_attr($jsonld['Person']['telephone']) : '') ?>"/>
|
256 |
</div>
|
257 |
</div>
|
258 |
<div class="col-12 row m-0 p-0 my-5">
|
@@ -261,7 +261,7 @@ $jsonldtype = SQ_Classes_Helpers_Tools::getOption('sq_jsonld_type');
|
|
261 |
<div class="small text-black-50 my-1 pr-3"><?php echo esc_html__("A short description about your job title.", 'squirrly-seo'); ?></div>
|
262 |
</div>
|
263 |
<div class="col-8 p-0">
|
264 |
-
<textarea class="form-control" name="sq_jsonld[Person][description]" rows="3"><?php echo(($jsonld['Person']['description'] <> '') ? esc_textarea($jsonld['Person']['description']) : '') ?></textarea>
|
265 |
</div>
|
266 |
</div>
|
267 |
</div>
|
@@ -284,10 +284,10 @@ $jsonldtype = SQ_Classes_Helpers_Tools::getOption('sq_jsonld_type');
|
|
284 |
<div class="col-8 p-0">
|
285 |
<div class="row px-3">
|
286 |
<div class="col-5 py-0 pl-0 pr-2">
|
287 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][place][geo][latitude]" value="<?php echo(($jsonld['Organization']['place']['geo']['latitude']) ? esc_attr($jsonld['Organization']['place']['geo']['latitude']) : '') ?>" placeholder="<?php echo esc_html__("latitude", 'squirrly-seo'); ?>"/>
|
288 |
</div>
|
289 |
<div class="col-5 py-0 pl-2 pr-0">
|
290 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][place][geo][longitude]" value="<?php echo(($jsonld['Organization']['place']['geo']['longitude']) ? esc_attr($jsonld['Organization']['place']['geo']['longitude']) : '') ?>" placeholder="<?php echo esc_html__("longitude", 'squirrly-seo'); ?>"/>
|
291 |
</div>
|
292 |
</div>
|
293 |
<div class="row px-3 pt-2">
|
@@ -334,9 +334,9 @@ $jsonldtype = SQ_Classes_Helpers_Tools::getOption('sq_jsonld_type');
|
|
334 |
<div class="col-8 p-0 input-group input-group-lg">
|
335 |
<select name="sq_jsonld_local[priceRange]" class="form-control bg-input mb-1 border">
|
336 |
<option value=""></option>
|
337 |
-
<option value="$" <?php echo(($jsonldLocal['priceRange'] == '$') ? 'selected="selected"' : ''); ?>>$</option>
|
338 |
-
<option value="$$" <?php echo(($jsonldLocal['priceRange'] == '$$') ? 'selected="selected"' : ''); ?>>$$</option>
|
339 |
-
<option value="$$$" <?php echo(($jsonldLocal['priceRange'] == '$$$') ? 'selected="selected"' : ''); ?>>$$</option>
|
340 |
</select>
|
341 |
</div>
|
342 |
</div>
|
@@ -346,7 +346,7 @@ $jsonldtype = SQ_Classes_Helpers_Tools::getOption('sq_jsonld_type');
|
|
346 |
<div class="small text-black-50 my-1">e.g. American, Italiano</div>
|
347 |
</div>
|
348 |
<div class="col-8 p-0 input-group input-group-lg">
|
349 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld_local[servesCuisine]" value="<?php echo(($jsonldLocal['servesCuisine']) ? esc_attr($jsonldLocal['servesCuisine']) : '') ?>"/>
|
350 |
</div>
|
351 |
</div>
|
352 |
<div class="col-12 row m-0 p-0 my-5">
|
@@ -355,7 +355,7 @@ $jsonldtype = SQ_Classes_Helpers_Tools::getOption('sq_jsonld_type');
|
|
355 |
<div class="small text-black-50 my-1">Restaurant Menu URL</div>
|
356 |
</div>
|
357 |
<div class="col-8 p-0 input-group input-group-lg">
|
358 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld_local[menu]" value="<?php echo(($jsonldLocal['menu']) ? esc_attr($jsonldLocal['menu']) : '') ?>"/>
|
359 |
</div>
|
360 |
</div>
|
361 |
<div class="col-12 row m-0 p-0 my-5">
|
@@ -365,8 +365,8 @@ $jsonldtype = SQ_Classes_Helpers_Tools::getOption('sq_jsonld_type');
|
|
365 |
<div class="col-8 p-0 input-group input-group-lg">
|
366 |
<select name="sq_jsonld_local[acceptsReservations]" class="form-control bg-input mb-1 border">
|
367 |
<option value=""></option>
|
368 |
-
<option value="False" <?php echo(($jsonldLocal['acceptsReservations'] == 'False') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("No"); ?></option>
|
369 |
-
<option value="True" <?php echo(($jsonldLocal['acceptsReservations'] == 'True') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Yes"); ?></option>
|
370 |
</select>
|
371 |
</div>
|
372 |
</div>
|
123 |
<div class="small text-black-50 my-1">e.g. COMPANY LTD</div>
|
124 |
</div>
|
125 |
<div class="col-8 p-0 input-group input-group-lg">
|
126 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][name]" value="<?php echo((isset($jsonld['Organization']['name']) && $jsonld['Organization']['name'] <> '') ? esc_attr($jsonld['Organization']['name']) : '') ?>"/>
|
127 |
</div>
|
128 |
</div>
|
129 |
<div class="col-12 row m-0 p-0 my-5">
|
132 |
<div class="small text-black-50 my-1"></div>
|
133 |
</div>
|
134 |
<div class="col-8 p-0 input-group input-group-lg">
|
135 |
+
<input id="sq_jsonld_logo_organization" type="text" class="form-control bg-input" name="sq_jsonld[Organization][logo][url]" value="<?php echo((isset($jsonld['Organization']['logo']['url']) && $jsonld['Organization']['logo']['url'] <> '') ? esc_url($jsonld['Organization']['logo']['url']) : '') ?>"/>
|
136 |
<input type="button" class="sq_imageselect btn btn-primary rounded-0" data-destination="sq_jsonld_logo_organization" value="<?php echo esc_html__("Select Image", 'squirrly-seo') ?>"/>
|
137 |
</div>
|
138 |
</div>
|
142 |
<div class="small text-black-50 my-1"><?php echo esc_html__("A short description about the company. 20-50 words.", 'squirrly-seo'); ?></div>
|
143 |
</div>
|
144 |
<div class="col-8 p-0">
|
145 |
+
<textarea class="form-control" name="sq_jsonld[Organization][description]" rows="3"><?php echo((isset($jsonld['Organization']['description']) && $jsonld['Organization']['description'] <> '') ? esc_textarea($jsonld['Organization']['description']) : '') ?></textarea>
|
146 |
</div>
|
147 |
</div>
|
148 |
<div class="col-12 row m-0 p-0 my-5">
|
151 |
<div class="small text-black-50 my-1">e.g. 38 avenue de l'Opera</div>
|
152 |
</div>
|
153 |
<div class="col-8 p-0 input-group input-group-lg">
|
154 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][address][streetAddress]" value="<?php echo((isset($jsonld['Organization']['address']['streetAddress']) && $jsonld['Organization']['address']['streetAddress']) ? esc_attr($jsonld['Organization']['address']['streetAddress']) : '') ?>"/>
|
155 |
</div>
|
156 |
</div>
|
157 |
<div class="col-12 row m-0 p-0 my-5">
|
160 |
<div class="small text-black-50 my-1">e.g. Paris</div>
|
161 |
</div>
|
162 |
<div class="col-8 p-0 input-group input-group-lg">
|
163 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][address][addressLocality]" value="<?php echo((isset($jsonld['Organization']['address']['addressLocality']) && $jsonld['Organization']['address']['addressLocality']) ? esc_attr($jsonld['Organization']['address']['addressLocality']) : '') ?>"/>
|
164 |
</div>
|
165 |
</div>
|
166 |
<div class="col-12 row m-0 p-0 my-5">
|
169 |
<div class="small text-black-50 my-1">e.g. US</div>
|
170 |
</div>
|
171 |
<div class="col-8 p-0 input-group input-group-lg">
|
172 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][address][addressCountry]" value="<?php echo((isset($jsonld['Organization']['address']['addressCountry']) && $jsonld['Organization']['address']['addressCountry']) ? esc_attr($jsonld['Organization']['address']['addressCountry']) : '') ?>"/>
|
173 |
</div>
|
174 |
</div>
|
175 |
<div class="col-12 row m-0 p-0 my-5">
|
178 |
<div class="small text-black-50 my-1">e.g. F-75002</div>
|
179 |
</div>
|
180 |
<div class="col-8 p-0 input-group input-group-lg">
|
181 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][address][postalCode]" value="<?php echo((isset($jsonld['Organization']['address']['postalCode']) && $jsonld['Organization']['address']['postalCode']) ? esc_attr($jsonld['Organization']['address']['postalCode']) : '') ?>"/>
|
182 |
</div>
|
183 |
</div>
|
184 |
<div class="col-12 row m-0 p-0 my-5">
|
187 |
<div class="small text-black-50 my-1">e.g. +1-541-754-3010</div>
|
188 |
</div>
|
189 |
<div class="col-8 p-0 input-group input-group-lg">
|
190 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][contactPoint][telephone]" value="<?php echo((isset($jsonld['Organization']['contactPoint']['telephone']) && $jsonld['Organization']['contactPoint']['telephone']) ? esc_attr($jsonld['Organization']['contactPoint']['telephone']) : '') ?>"/>
|
191 |
</div>
|
192 |
</div>
|
193 |
<div class="col-12 row m-0 p-0 my-5">
|
198 |
<div class="col-8 m-0 p-0 input-group">
|
199 |
<select name="sq_jsonld[Organization][contactPoint][contactType]" class="form-control bg-input mb-1 border">
|
200 |
<option value=""></option>
|
201 |
+
<option value="customer service" <?php echo((isset($jsonld['Organization']['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'customer service') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Customer Service", 'squirrly-seo'); ?></option>
|
202 |
+
<option value="technical support" <?php echo((isset($jsonld['Organization']['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'technical support') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Technical Support", 'squirrly-seo'); ?></option>
|
203 |
+
<option value="billing support" <?php echo((isset($jsonld['Organization']['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'billing support') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Billing Support", 'squirrly-seo'); ?></option>
|
204 |
+
<option value="bill payment" <?php echo((isset($jsonld['Organization']['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'bill payment') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Bill Payment", 'squirrly-seo'); ?></option>
|
205 |
+
<option value="sales" <?php echo((isset($jsonld['Organization']['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'sales') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Sales", 'squirrly-seo'); ?></option>
|
206 |
+
<option value="reservations" <?php echo((isset($jsonld['Organization']['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'reservations') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Reservations", 'squirrly-seo'); ?></option>
|
207 |
+
<option value="credit card support" <?php echo((isset($jsonld['Organization']['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'credit card support') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Credit Card Support", 'squirrly-seo'); ?></option>
|
208 |
+
<option value="emergency" <?php echo((isset($jsonld['Organization']['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'emergency') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Emergency", 'squirrly-seo'); ?></option>
|
209 |
+
<option value="baggage tracking" <?php echo((isset($jsonld['Organization']['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'baggage tracking') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Baggage Tracking", 'squirrly-seo'); ?></option>
|
210 |
+
<option value="roadside assistance" <?php echo((isset($jsonld['Organization']['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'roadside assistance') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Roadside Assistance", 'squirrly-seo'); ?></option>
|
211 |
+
<option value="package tracking" <?php echo((isset($jsonld['Organization']['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'package tracking') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Package Tracking", 'squirrly-seo'); ?></option>
|
212 |
</select>
|
213 |
</div>
|
214 |
</div>
|
224 |
<div class="small text-black-50 my-1 pr-3">e.g. John Smith</div>
|
225 |
</div>
|
226 |
<div class="col-8 p-0 input-group input-group-lg">
|
227 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Person][name]" value="<?php echo((isset($jsonld['Person']['name']) && $jsonld['Person']['name'] <> '') ? esc_attr($jsonld['Person']['name']) : '') ?>"/>
|
228 |
</div>
|
229 |
</div>
|
230 |
<div class="col-12 row m-0 p-0 my-5">
|
233 |
<div class="small text-black-50 my-1">e.g. Sales Manager</div>
|
234 |
</div>
|
235 |
<div class="col-5 p-0 input-group input-group-lg">
|
236 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Person][jobTitle]" value="<?php echo((isset($jsonld['Person']['jobTitle']) && $jsonld['Person']['jobTitle'] <> '') ? esc_attr($jsonld['Person']['jobTitle']) : '') ?>"/>
|
237 |
</div>
|
238 |
</div>
|
239 |
<div class="col-12 row m-0 p-0 my-5">
|
242 |
<div class="small text-black-50 my-1 pr-3"><?php echo esc_html__("Select an image from Media Library.", 'squirrly-seo'); ?></div>
|
243 |
</div>
|
244 |
<div class="col-8 p-0 input-group input-group-lg">
|
245 |
+
<input id="sq_jsonld_logo_person" type="text" class="form-control bg-input" name="sq_jsonld[Person][image][url]" value="<?php echo((isset($jsonld['Person']['image']['url']) && $jsonld['Person']['image']['url'] <> '') ? esc_url($jsonld['Person']['image']['url']) : '') ?>" placeholder="<?php echo esc_html__("Select your file here", 'squirrly-seo') ?>"/>
|
246 |
<input type="button" class="sq_imageselect form-control btn btn-primary rounded-0 col-3" data-destination="sq_jsonld_logo_person" value="<?php echo esc_html__("Select Image", 'squirrly-seo') ?>"/>
|
247 |
</div>
|
248 |
</div>
|
252 |
<div class="small text-black-50 my-1 pr-3">e.g. +1-541-754-3010</div>
|
253 |
</div>
|
254 |
<div class="col-5 p-0 input-group input-group-lg">
|
255 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Person][telephone]" value="<?php echo((isset($jsonld['Person']['telephone']) && $jsonld['Person']['telephone'] <> '') ? esc_attr($jsonld['Person']['telephone']) : '') ?>"/>
|
256 |
</div>
|
257 |
</div>
|
258 |
<div class="col-12 row m-0 p-0 my-5">
|
261 |
<div class="small text-black-50 my-1 pr-3"><?php echo esc_html__("A short description about your job title.", 'squirrly-seo'); ?></div>
|
262 |
</div>
|
263 |
<div class="col-8 p-0">
|
264 |
+
<textarea class="form-control" name="sq_jsonld[Person][description]" rows="3"><?php echo((isset($jsonld['Person']['description']) && $jsonld['Person']['description'] <> '') ? esc_textarea($jsonld['Person']['description']) : '') ?></textarea>
|
265 |
</div>
|
266 |
</div>
|
267 |
</div>
|
284 |
<div class="col-8 p-0">
|
285 |
<div class="row px-3">
|
286 |
<div class="col-5 py-0 pl-0 pr-2">
|
287 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][place][geo][latitude]" value="<?php echo((isset($jsonld['Organization']['place']['geo']['latitude']) && $jsonld['Organization']['place']['geo']['latitude']) ? esc_attr($jsonld['Organization']['place']['geo']['latitude']) : '') ?>" placeholder="<?php echo esc_html__("latitude", 'squirrly-seo'); ?>"/>
|
288 |
</div>
|
289 |
<div class="col-5 py-0 pl-2 pr-0">
|
290 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][place][geo][longitude]" value="<?php echo((isset($jsonld['Organization']['place']['geo']['longitude']) && $jsonld['Organization']['place']['geo']['longitude']) ? esc_attr($jsonld['Organization']['place']['geo']['longitude']) : '') ?>" placeholder="<?php echo esc_html__("longitude", 'squirrly-seo'); ?>"/>
|
291 |
</div>
|
292 |
</div>
|
293 |
<div class="row px-3 pt-2">
|
334 |
<div class="col-8 p-0 input-group input-group-lg">
|
335 |
<select name="sq_jsonld_local[priceRange]" class="form-control bg-input mb-1 border">
|
336 |
<option value=""></option>
|
337 |
+
<option value="$" <?php echo((isset($jsonldLocal['priceRange']) && $jsonldLocal['priceRange'] == '$') ? 'selected="selected"' : ''); ?>>$</option>
|
338 |
+
<option value="$$" <?php echo((isset($jsonldLocal['priceRange']) && $jsonldLocal['priceRange'] == '$$') ? 'selected="selected"' : ''); ?>>$$</option>
|
339 |
+
<option value="$$$" <?php echo((isset($jsonldLocal['priceRange']) && $jsonldLocal['priceRange'] == '$$$') ? 'selected="selected"' : ''); ?>>$$</option>
|
340 |
</select>
|
341 |
</div>
|
342 |
</div>
|
346 |
<div class="small text-black-50 my-1">e.g. American, Italiano</div>
|
347 |
</div>
|
348 |
<div class="col-8 p-0 input-group input-group-lg">
|
349 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld_local[servesCuisine]" value="<?php echo((isset($jsonldLocal['servesCuisine']) && $jsonldLocal['servesCuisine']) ? esc_attr($jsonldLocal['servesCuisine']) : '') ?>"/>
|
350 |
</div>
|
351 |
</div>
|
352 |
<div class="col-12 row m-0 p-0 my-5">
|
355 |
<div class="small text-black-50 my-1">Restaurant Menu URL</div>
|
356 |
</div>
|
357 |
<div class="col-8 p-0 input-group input-group-lg">
|
358 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld_local[menu]" value="<?php echo((isset($jsonldLocal['menu']) && $jsonldLocal['menu']) ? esc_attr($jsonldLocal['menu']) : '') ?>"/>
|
359 |
</div>
|
360 |
</div>
|
361 |
<div class="col-12 row m-0 p-0 my-5">
|
365 |
<div class="col-8 p-0 input-group input-group-lg">
|
366 |
<select name="sq_jsonld_local[acceptsReservations]" class="form-control bg-input mb-1 border">
|
367 |
<option value=""></option>
|
368 |
+
<option value="False" <?php echo((isset($jsonldLocal['acceptsReservations']) && $jsonldLocal['acceptsReservations'] == 'False') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("No"); ?></option>
|
369 |
+
<option value="True" <?php echo((isset($jsonldLocal['acceptsReservations']) && $jsonldLocal['acceptsReservations'] == 'True') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Yes"); ?></option>
|
370 |
</select>
|
371 |
</div>
|
372 |
</div>
|
view/Post.php
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
-
<?php defined('ABSPATH') || die('Cheatin\' uh?'); ?>
|
2 |
<?php
|
3 |
-
|
|
|
|
|
4 |
$view->show_view('Blocks/LiveAssistant');
|
|
|
1 |
<?php
|
2 |
+
defined('ABSPATH') || die('Cheatin\' uh?');
|
3 |
+
|
4 |
+
SQ_Classes_ObjController::getClass('SQ_Models_LiveAssistant')->init();
|
5 |
$view->show_view('Blocks/LiveAssistant');
|
view/SeoSettings/Jsonld.php
CHANGED
@@ -63,7 +63,7 @@
|
|
63 |
<div class="small text-black-50 my-1 pr-3">e.g. John Smith</div>
|
64 |
</div>
|
65 |
<div class="col-8 p-0 input-group input-group-lg">
|
66 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Person][name]" value="<?php echo(($jsonld['Person']['name'] <> '') ? esc_attr($jsonld['Person']['name']) : '') ?>"/>
|
67 |
</div>
|
68 |
</div>
|
69 |
<div class="col-12 row m-0 p-0 my-5">
|
@@ -72,7 +72,7 @@
|
|
72 |
<div class="small text-black-50 my-1">e.g. Sales Manager</div>
|
73 |
</div>
|
74 |
<div class="col-5 p-0 input-group input-group-lg">
|
75 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Person][jobTitle]" value="<?php echo(($jsonld['Person']['jobTitle'] <> '') ? esc_attr($jsonld['Person']['jobTitle']) : '') ?>"/>
|
76 |
</div>
|
77 |
</div>
|
78 |
<div class="col-12 row m-0 p-0 my-5">
|
@@ -81,7 +81,7 @@
|
|
81 |
<div class="small text-black-50 my-1 pr-3"><?php echo esc_html__("Select an image from Media Library.", 'squirrly-seo'); ?></div>
|
82 |
</div>
|
83 |
<div class="col-8 p-0 input-group input-group-lg">
|
84 |
-
<input id="sq_jsonld_logo_person" type="text" class="form-control bg-input" name="sq_jsonld[Person][image][url]" value="<?php echo(($jsonld['Person']['image']['url'] <> '') ? esc_url($jsonld['Person']['image']['url']) : '') ?>" placeholder="<?php echo esc_html__("Select your file here", 'squirrly-seo') ?>"/>
|
85 |
<input type="button" class="sq_imageselect form-control btn btn-primary rounded-0 col-3" data-destination="sq_jsonld_logo_person" value="<?php echo esc_html__("Select Image", 'squirrly-seo') ?>"/>
|
86 |
</div>
|
87 |
</div>
|
@@ -91,7 +91,7 @@
|
|
91 |
<div class="small text-black-50 my-1 pr-3">e.g. +1-541-754-3010</div>
|
92 |
</div>
|
93 |
<div class="col-5 p-0 input-group input-group-lg">
|
94 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Person][telephone]" value="<?php echo(($jsonld['Person']['telephone'] <> '') ? esc_attr($jsonld['Person']['telephone']) : '') ?>"/>
|
95 |
</div>
|
96 |
</div>
|
97 |
<div class="col-12 row m-0 p-0 my-5">
|
@@ -100,7 +100,7 @@
|
|
100 |
<div class="small text-black-50 my-1 pr-3"><?php echo esc_html__("A short description about your job title.", 'squirrly-seo'); ?></div>
|
101 |
</div>
|
102 |
<div class="col-8 p-0">
|
103 |
-
<textarea class="form-control" name="sq_jsonld[Person][description]" rows="3"><?php echo(($jsonld['Person']['description'] <> '') ? esc_textarea($jsonld['Person']['description']) : '') ?></textarea>
|
104 |
</div>
|
105 |
</div>
|
106 |
|
@@ -142,7 +142,7 @@
|
|
142 |
<div class="small text-black-50 my-1 pr-3">e.g. COMPANY LTD"</div>
|
143 |
</div>
|
144 |
<div class="col-8 p-0 input-group input-group-lg">
|
145 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][name]" value="<?php echo(($jsonld['Organization']['name'] <> '') ? esc_attr($jsonld['Organization']['name']) : '') ?>"/>
|
146 |
</div>
|
147 |
</div>
|
148 |
<div class="col-12 row m-0 p-0 my-5">
|
@@ -151,7 +151,7 @@
|
|
151 |
<div class="small text-black-50 my-1 pr-3"><?php echo esc_html__("Select an image from Media Library.", 'squirrly-seo'); ?></div>
|
152 |
</div>
|
153 |
<div class="col-8 p-0 input-group input-group-lg">
|
154 |
-
<input id="sq_jsonld_logo_organization" type="text" class="form-control bg-input" name="sq_jsonld[Organization][logo][url]" value="<?php echo(($jsonld['Organization']['logo']['url'] <> '') ? esc_url($jsonld['Organization']['logo']['url']) : '') ?>" placeholder="<?php echo esc_html__("Select your file here", 'squirrly-seo') ?>"/>
|
155 |
<input type="button" class="sq_imageselect btn btn-primary rounded-0" data-destination="sq_jsonld_logo_organization" value="<?php echo esc_html__("Select Image", 'squirrly-seo') ?>"/>
|
156 |
</div>
|
157 |
</div>
|
@@ -161,7 +161,7 @@
|
|
161 |
<div class="small text-black-50 my-1 pr-3"><?php echo esc_html__("A short description about the company (20-50 words).", 'squirrly-seo'); ?></div>
|
162 |
</div>
|
163 |
<div class="col-8 p-0">
|
164 |
-
<textarea class="form-control" name="sq_jsonld[Organization][description]" rows="3"><?php echo(($jsonld['Organization']['description'] <> '') ? esc_textarea($jsonld['Organization']['description']) : '') ?></textarea>
|
165 |
</div>
|
166 |
</div>
|
167 |
|
@@ -241,7 +241,7 @@
|
|
241 |
<div class="small text-black-50 my-1 pr-3">e.g. 38 avenue de l'Opera</div>
|
242 |
</div>
|
243 |
<div class="col-8 p-0 input-group input-group-lg">
|
244 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][address][streetAddress]" value="<?php echo(($jsonld['Organization']['address']['streetAddress']) ? esc_attr($jsonld['Organization']['address']['streetAddress']) : '') ?>"/>
|
245 |
</div>
|
246 |
</div>
|
247 |
<div class="col-12 row m-0 p-0 my-5">
|
@@ -250,7 +250,7 @@
|
|
250 |
<div class="small text-black-50 my-1 pr-3">e.g. Paris</div>
|
251 |
</div>
|
252 |
<div class="col-8 p-0 input-group input-group-lg">
|
253 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][address][addressLocality]" value="<?php echo(($jsonld['Organization']['address']['addressLocality']) ? esc_attr($jsonld['Organization']['address']['addressLocality']) : '') ?>"/>
|
254 |
</div>
|
255 |
</div>
|
256 |
<div class="col-12 row m-0 p-0 my-5">
|
@@ -259,7 +259,7 @@
|
|
259 |
<div class="small text-black-50 my-1 pr-3">e.g. US</div>
|
260 |
</div>
|
261 |
<div class="col-8 p-0 input-group input-group-lg">
|
262 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][address][addressCountry]" value="<?php echo(($jsonld['Organization']['address']['addressCountry']) ? esc_attr($jsonld['Organization']['address']['addressCountry']) : '') ?>"/>
|
263 |
</div>
|
264 |
</div>
|
265 |
<div class="col-12 row m-0 p-0 my-5">
|
@@ -268,7 +268,7 @@
|
|
268 |
<div class="small text-black-50 my-1 pr-3">e.g. F-75002</div>
|
269 |
</div>
|
270 |
<div class="col-8 p-0 input-group input-group-lg">
|
271 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][address][postalCode]" value="<?php echo(($jsonld['Organization']['address']['postalCode']) ? esc_attr($jsonld['Organization']['address']['postalCode']) : '') ?>"/>
|
272 |
</div>
|
273 |
</div>
|
274 |
<div class="col-12 row m-0 p-0 my-5">
|
@@ -277,7 +277,7 @@
|
|
277 |
<div class="small text-black-50 my-1 pr-3">e.g. +1-541-754-3010</div>
|
278 |
</div>
|
279 |
<div class="col-8 p-0 input-group input-group-lg">
|
280 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][contactPoint][telephone]" value="<?php echo(($jsonld['Organization']['contactPoint']['telephone']) ? esc_attr($jsonld['Organization']['contactPoint']['telephone']) : '') ?>"/>
|
281 |
</div>
|
282 |
</div>
|
283 |
<div class="col-12 row m-0 p-0 my-5">
|
@@ -288,17 +288,17 @@
|
|
288 |
<div class="col-8 m-0 p-0 input-group">
|
289 |
<select name="sq_jsonld[Organization][contactPoint][contactType]" class="form-control bg-input mb-1 border">
|
290 |
<option value=""></option>
|
291 |
-
<option value="customer service" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'customer service') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Customer Service", 'squirrly-seo'); ?></option>
|
292 |
-
<option value="technical support" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'technical support') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Technical Support", 'squirrly-seo'); ?></option>
|
293 |
-
<option value="billing support" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'billing support') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Billing Support", 'squirrly-seo'); ?></option>
|
294 |
-
<option value="bill payment" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'bill payment') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Bill Payment", 'squirrly-seo'); ?></option>
|
295 |
-
<option value="sales" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'sales') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Sales", 'squirrly-seo'); ?></option>
|
296 |
-
<option value="reservations" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'reservations') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Reservations", 'squirrly-seo'); ?></option>
|
297 |
-
<option value="credit card support" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'credit card support') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Credit Card Support", 'squirrly-seo'); ?></option>
|
298 |
-
<option value="emergency" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'emergency') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Emergency", 'squirrly-seo'); ?></option>
|
299 |
-
<option value="baggage tracking" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'baggage tracking') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Baggage Tracking", 'squirrly-seo'); ?></option>
|
300 |
-
<option value="roadside assistance" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'roadside assistance') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Roadside Assistance", 'squirrly-seo'); ?></option>
|
301 |
-
<option value="package tracking" <?php echo(($jsonld['Organization']['contactPoint']['contactType'] == 'package tracking') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Package Tracking", 'squirrly-seo'); ?></option>
|
302 |
</select>
|
303 |
</div>
|
304 |
</div>
|
@@ -332,10 +332,10 @@
|
|
332 |
<div class="col-8 p-0">
|
333 |
<div class="row px-3">
|
334 |
<div class="col-5 py-0 pl-0 pr-2">
|
335 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][place][geo][latitude]" value="<?php echo(($jsonld['Organization']['place']['geo']['latitude']) ? esc_attr($jsonld['Organization']['place']['geo']['latitude']) : '') ?>" placeholder="<?php echo esc_html__("latitude", 'squirrly-seo'); ?>"/>
|
336 |
</div>
|
337 |
<div class="col-5 py-0 pl-2 pr-0">
|
338 |
-
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][place][geo][longitude]" value="<?php echo(($jsonld['Organization']['place']['geo']['longitude']) ? esc_attr($jsonld['Organization']['place']['geo']['longitude']) : '') ?>" placeholder="<?php echo esc_html__("longitude", 'squirrly-seo'); ?>"/>
|
339 |
</div>
|
340 |
</div>
|
341 |
|
63 |
<div class="small text-black-50 my-1 pr-3">e.g. John Smith</div>
|
64 |
</div>
|
65 |
<div class="col-8 p-0 input-group input-group-lg">
|
66 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Person][name]" value="<?php echo((isset($jsonld['Person']['name']) && $jsonld['Person']['name'] <> '') ? esc_attr($jsonld['Person']['name']) : '') ?>"/>
|
67 |
</div>
|
68 |
</div>
|
69 |
<div class="col-12 row m-0 p-0 my-5">
|
72 |
<div class="small text-black-50 my-1">e.g. Sales Manager</div>
|
73 |
</div>
|
74 |
<div class="col-5 p-0 input-group input-group-lg">
|
75 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Person][jobTitle]" value="<?php echo((isset($jsonld['Person']['jobTitle']) && $jsonld['Person']['jobTitle'] <> '') ? esc_attr($jsonld['Person']['jobTitle']) : '') ?>"/>
|
76 |
</div>
|
77 |
</div>
|
78 |
<div class="col-12 row m-0 p-0 my-5">
|
81 |
<div class="small text-black-50 my-1 pr-3"><?php echo esc_html__("Select an image from Media Library.", 'squirrly-seo'); ?></div>
|
82 |
</div>
|
83 |
<div class="col-8 p-0 input-group input-group-lg">
|
84 |
+
<input id="sq_jsonld_logo_person" type="text" class="form-control bg-input" name="sq_jsonld[Person][image][url]" value="<?php echo((isset($jsonld['Person']['image']['url']) && $jsonld['Person']['image']['url'] <> '') ? esc_url($jsonld['Person']['image']['url']) : '') ?>" placeholder="<?php echo esc_html__("Select your file here", 'squirrly-seo') ?>"/>
|
85 |
<input type="button" class="sq_imageselect form-control btn btn-primary rounded-0 col-3" data-destination="sq_jsonld_logo_person" value="<?php echo esc_html__("Select Image", 'squirrly-seo') ?>"/>
|
86 |
</div>
|
87 |
</div>
|
91 |
<div class="small text-black-50 my-1 pr-3">e.g. +1-541-754-3010</div>
|
92 |
</div>
|
93 |
<div class="col-5 p-0 input-group input-group-lg">
|
94 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Person][telephone]" value="<?php echo((isset($jsonld['Person']['telephone']) && $jsonld['Person']['telephone'] <> '') ? esc_attr($jsonld['Person']['telephone']) : '') ?>"/>
|
95 |
</div>
|
96 |
</div>
|
97 |
<div class="col-12 row m-0 p-0 my-5">
|
100 |
<div class="small text-black-50 my-1 pr-3"><?php echo esc_html__("A short description about your job title.", 'squirrly-seo'); ?></div>
|
101 |
</div>
|
102 |
<div class="col-8 p-0">
|
103 |
+
<textarea class="form-control" name="sq_jsonld[Person][description]" rows="3"><?php echo((isset($jsonld['Person']['description']) && $jsonld['Person']['description'] <> '') ? esc_textarea($jsonld['Person']['description']) : '') ?></textarea>
|
104 |
</div>
|
105 |
</div>
|
106 |
|
142 |
<div class="small text-black-50 my-1 pr-3">e.g. COMPANY LTD"</div>
|
143 |
</div>
|
144 |
<div class="col-8 p-0 input-group input-group-lg">
|
145 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][name]" value="<?php echo((isset($jsonld['Organization']['name']) && $jsonld['Organization']['name'] <> '') ? esc_attr($jsonld['Organization']['name']) : '') ?>"/>
|
146 |
</div>
|
147 |
</div>
|
148 |
<div class="col-12 row m-0 p-0 my-5">
|
151 |
<div class="small text-black-50 my-1 pr-3"><?php echo esc_html__("Select an image from Media Library.", 'squirrly-seo'); ?></div>
|
152 |
</div>
|
153 |
<div class="col-8 p-0 input-group input-group-lg">
|
154 |
+
<input id="sq_jsonld_logo_organization" type="text" class="form-control bg-input" name="sq_jsonld[Organization][logo][url]" value="<?php echo((isset($jsonld['Organization']['logo']['url']) && $jsonld['Organization']['logo']['url'] <> '') ? esc_url($jsonld['Organization']['logo']['url']) : '') ?>" placeholder="<?php echo esc_html__("Select your file here", 'squirrly-seo') ?>"/>
|
155 |
<input type="button" class="sq_imageselect btn btn-primary rounded-0" data-destination="sq_jsonld_logo_organization" value="<?php echo esc_html__("Select Image", 'squirrly-seo') ?>"/>
|
156 |
</div>
|
157 |
</div>
|
161 |
<div class="small text-black-50 my-1 pr-3"><?php echo esc_html__("A short description about the company (20-50 words).", 'squirrly-seo'); ?></div>
|
162 |
</div>
|
163 |
<div class="col-8 p-0">
|
164 |
+
<textarea class="form-control" name="sq_jsonld[Organization][description]" rows="3"><?php echo((isset($jsonld['Organization']['description']) && $jsonld['Organization']['description'] <> '') ? esc_textarea($jsonld['Organization']['description']) : '') ?></textarea>
|
165 |
</div>
|
166 |
</div>
|
167 |
|
241 |
<div class="small text-black-50 my-1 pr-3">e.g. 38 avenue de l'Opera</div>
|
242 |
</div>
|
243 |
<div class="col-8 p-0 input-group input-group-lg">
|
244 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][address][streetAddress]" value="<?php echo((isset($jsonld['Organization']['address']['streetAddress']) && $jsonld['Organization']['address']['streetAddress']) ? esc_attr($jsonld['Organization']['address']['streetAddress']) : '') ?>"/>
|
245 |
</div>
|
246 |
</div>
|
247 |
<div class="col-12 row m-0 p-0 my-5">
|
250 |
<div class="small text-black-50 my-1 pr-3">e.g. Paris</div>
|
251 |
</div>
|
252 |
<div class="col-8 p-0 input-group input-group-lg">
|
253 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][address][addressLocality]" value="<?php echo((isset($jsonld['Organization']['address']['addressLocality']) && $jsonld['Organization']['address']['addressLocality']) ? esc_attr($jsonld['Organization']['address']['addressLocality']) : '') ?>"/>
|
254 |
</div>
|
255 |
</div>
|
256 |
<div class="col-12 row m-0 p-0 my-5">
|
259 |
<div class="small text-black-50 my-1 pr-3">e.g. US</div>
|
260 |
</div>
|
261 |
<div class="col-8 p-0 input-group input-group-lg">
|
262 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][address][addressCountry]" value="<?php echo((isset($jsonld['Organization']['address']['addressCountry']) && $jsonld['Organization']['address']['addressCountry']) ? esc_attr($jsonld['Organization']['address']['addressCountry']) : '') ?>"/>
|
263 |
</div>
|
264 |
</div>
|
265 |
<div class="col-12 row m-0 p-0 my-5">
|
268 |
<div class="small text-black-50 my-1 pr-3">e.g. F-75002</div>
|
269 |
</div>
|
270 |
<div class="col-8 p-0 input-group input-group-lg">
|
271 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][address][postalCode]" value="<?php echo((isset($jsonld['Organization']['address']['postalCode']) && $jsonld['Organization']['address']['postalCode']) ? esc_attr($jsonld['Organization']['address']['postalCode']) : '') ?>"/>
|
272 |
</div>
|
273 |
</div>
|
274 |
<div class="col-12 row m-0 p-0 my-5">
|
277 |
<div class="small text-black-50 my-1 pr-3">e.g. +1-541-754-3010</div>
|
278 |
</div>
|
279 |
<div class="col-8 p-0 input-group input-group-lg">
|
280 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][contactPoint][telephone]" value="<?php echo((isset($jsonld['Organization']['contactPoint']['telephone']) && $jsonld['Organization']['contactPoint']['telephone']) ? esc_attr($jsonld['Organization']['contactPoint']['telephone']) : '') ?>"/>
|
281 |
</div>
|
282 |
</div>
|
283 |
<div class="col-12 row m-0 p-0 my-5">
|
288 |
<div class="col-8 m-0 p-0 input-group">
|
289 |
<select name="sq_jsonld[Organization][contactPoint][contactType]" class="form-control bg-input mb-1 border">
|
290 |
<option value=""></option>
|
291 |
+
<option value="customer service" <?php echo((isset(['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'customer service') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Customer Service", 'squirrly-seo'); ?></option>
|
292 |
+
<option value="technical support" <?php echo((isset($jsonld['Organization']['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'technical support') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Technical Support", 'squirrly-seo'); ?></option>
|
293 |
+
<option value="billing support" <?php echo((isset($jsonld['Organization']['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'billing support') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Billing Support", 'squirrly-seo'); ?></option>
|
294 |
+
<option value="bill payment" <?php echo((isset($jsonld['Organization']['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'bill payment') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Bill Payment", 'squirrly-seo'); ?></option>
|
295 |
+
<option value="sales" <?php echo((isset($jsonld['Organization']['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'sales') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Sales", 'squirrly-seo'); ?></option>
|
296 |
+
<option value="reservations" <?php echo((isset($jsonld['Organization']['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'reservations') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Reservations", 'squirrly-seo'); ?></option>
|
297 |
+
<option value="credit card support" <?php echo((isset($jsonld['Organization']['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'credit card support') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Credit Card Support", 'squirrly-seo'); ?></option>
|
298 |
+
<option value="emergency" <?php echo((isset($jsonld['Organization']['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'emergency') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Emergency", 'squirrly-seo'); ?></option>
|
299 |
+
<option value="baggage tracking" <?php echo((isset($jsonld['Organization']['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'baggage tracking') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Baggage Tracking", 'squirrly-seo'); ?></option>
|
300 |
+
<option value="roadside assistance" <?php echo((isset($jsonld['Organization']['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'roadside assistance') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Roadside Assistance", 'squirrly-seo'); ?></option>
|
301 |
+
<option value="package tracking" <?php echo((isset($jsonld['Organization']['contactPoint']['contactType']) && $jsonld['Organization']['contactPoint']['contactType'] == 'package tracking') ? 'selected="selected"' : ''); ?>><?php echo esc_html__("Package Tracking", 'squirrly-seo'); ?></option>
|
302 |
</select>
|
303 |
</div>
|
304 |
</div>
|
332 |
<div class="col-8 p-0">
|
333 |
<div class="row px-3">
|
334 |
<div class="col-5 py-0 pl-0 pr-2">
|
335 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][place][geo][latitude]" value="<?php echo((isset($jsonld['Organization']['place']['geo']['latitude']) && $jsonld['Organization']['place']['geo']['latitude']) ? esc_attr($jsonld['Organization']['place']['geo']['latitude']) : '') ?>" placeholder="<?php echo esc_html__("latitude", 'squirrly-seo'); ?>"/>
|
336 |
</div>
|
337 |
<div class="col-5 py-0 pl-2 pr-0">
|
338 |
+
<input type="text" class="form-control bg-input" name="sq_jsonld[Organization][place][geo][longitude]" value="<?php echo((isset($jsonld['Organization']['place']['geo']['longitude']) && $jsonld['Organization']['place']['geo']['longitude']) ? esc_attr($jsonld['Organization']['place']['geo']['longitude']) : '') ?>" placeholder="<?php echo esc_html__("longitude", 'squirrly-seo'); ?>"/>
|
339 |
</div>
|
340 |
</div>
|
341 |
|
view/assets/css/briefcase.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.squirrly-seo-settings #wpcontent .bg-briefcase#sq_toolbar *{-webkit-box-sizing:content-box!important;box-sizing:content-box!important}.sq_absolute{top:28px!important}@media (min-width:768px){.modal-dialog{width:600px;margin:60px auto!important}}#sq_briefcase .wp-picker-holder .iris-slider{height:182.346px!important;width:26.2px!important}#sq_briefcase .wp-picker-container .wp-color-result.button{height:23px}#sq_briefcase ul.sq_row_stats li{float:left;margin-right:10px;font-size:14px}#sq_briefcase ul.sq_row_stats li i.fa-refresh{font-size:11px;color:#999;line-height:30px;display:none}#sq_briefcase .sq_saved_label:hover span.sq_delete_label,#sq_briefcase .sq_saved_label:hover span.sq_edit_label,#sq_briefcase table.table tr:hover .sq_label_manage,#sq_briefcase table.table tr:hover .sq_label_refresh,#sq_briefcase table.table tr:hover ul.sq_row_stats li i.fa-refresh,#sq_briefcaselabels .sq_saved_label:hover span.sq_delete_label,#sq_briefcaselabels .sq_saved_label:hover span.sq_edit_label{display:block}#sq_briefcase table.table td{font-size:15px}#sq_ranks table.table-keywords td:first-child{width:60%;font-weight:700;color:#428ea1}#sq_ranks table.table-keywords td:nth-child(2){width:120px}#sq_ranks table.table-keywords td:nth-child(3){width:150px}#sq_briefcase table.subtable td{font-size:13px;padding:5px 13px!important}#sq_briefcase table.subtable tr:hover{background-color:#f2f6fe}#sq_briefcase .sq_checkbox_label,#sq_briefcase .sq_circle_label{display:block;float:left;width:117px;height:17px;margin:0 6px 30px;font-size:10px;line-height:11px}#sq_briefcase .sq_saved_label,#sq_briefcaselabels .sq_saved_label{display:block;float:left;margin:0 6px 30px}#sq_briefcase .sq_checkbox_label span,#sq_briefcase .sq_circle_label span,#sq_briefcase .sq_saved_label span,#sq_briefcaselabels .sq_saved_label span{font-family:Arial,sans-serif!important;font-weight:400!important}#sq_briefcase .sq_add_keyword_dialog .sq_checkbox_label,#sq_briefcase .sq_label_manage_popup .sq_checkbox_label,#sq_briefcase .sq_saved_label,#sq_briefcaselabels .sq_saved_label{position:relative;margin-right:10px;width:90px;height:20px;font-size:11px;line-height:13px;margin-bottom:30px}#sq_briefcase .sq_saved_label .sq_saved_label_name,#sq_briefcaselabels .sq_saved_label .sq_saved_label_name{display:block;margin-top:23px}#sq_briefcase .sq_saved_label span.sq_delete_label{right:4px;top:2px;font-size:13px}#sq_briefcase .sq_saved_label span.sq_delete_label,#sq_briefcase .sq_saved_label span.sq_edit_label{display:none;cursor:pointer;position:absolute;color:#fff;font-weight:700;text-shadow:0 0 2px #444}#sq_briefcaselabels .sq_saved_label span.sq_delete_label{right:4px;top:2px;font-size:13px}#sq_briefcaselabels .sq_saved_label span.sq_delete_label,#sq_briefcaselabels .sq_saved_label span.sq_edit_label{display:none;cursor:pointer;position:absolute;color:#fff;font-weight:700;text-shadow:0 0 2px #444}#sq_briefcase .sq_saved_label span.sq_edit_label,#sq_briefcaselabels .sq_saved_label span.sq_edit_label{right:18px;top:4px;font-size:11px}#sq_briefcaselabels .wp-color-picker,#sq_briefcaselabels .wp-color-result-text,#sq_briefcaselabels .wp-picker-clear{line-height:29px;padding:1px 6px}.wp-picker-holder *{box-sizing:content-box!important}#sq_briefcase .table .sq_circle_label{display:block;float:left;width:20px;height:5px;margin:0 2px -3px 0}#sq_briefcase .table .sq_label_manage,#sq_briefcase .table .sq_label_refresh{display:none;cursor:pointer;float:left;margin:0 5px;line-height:30px}#sq_briefcase .sq_add_keyword_dialog .sq_checkbox_label:before,#sq_briefcase .sq_filter_label .sq_circle_label:before,#sq_briefcase .sq_label_manage_popup .sq_checkbox_label:before{content:" ";display:block;height:calc(100% + 4px);width:calc(100% + 4px);margin:-2px 0 2px}#sq_briefcase .sq_add_keyword_dialog .sq_checkbox_label:hover:before,#sq_briefcase .sq_label_manage_popup .sq_checkbox_label:hover:before{content:attr(data-title);display:block;height:calc(100% + 4px);width:calc(100% + 4px);margin:0;line-height:22px;font-size:13px;color:#eee;text-shadow:1px 1px #333}#sq_briefcase .sq_label_manage_popup .sq_checkbox_label:hover:before{font-size:10px;margin:0 0 0 6px}#sq_briefcase .sq_filter_label .sq_circle_label.sq_active:before{display:block;padding-left:calc(50% - 5px);margin:-2px 0 2px;line-height:22px;content:"\f00c";color:#fff;text-shadow:1px 0 #555}#sq_briefcase .sq_add_keyword_dialog .sq_checkbox_label.sq_active:before,#sq_briefcase .sq_label_manage_popup .sq_checkbox_label.sq_active:before{display:block;font-size:16px;padding-left:calc(50% - 5px);margin:-2px 0 2px;line-height:22px;content:"\f00c";color:#fff;text-shadow:1px 0 #555}#sq_briefcase .sq_filter_label .sq_circle_label.sq_active:before,#src_settings .wp-list-table th{font-size:14px}.wp-picker-clear,div.wp-picker-holder{z-index:999!important;position:absolute!important}#update-nag,.notice-error,.screen-meta-toggle,.show-settings,.update-nag,.updated{display:none!important}#sq_briefcase *,#sq_briefcase :after,#sq_briefcase :before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#src_settings{font-family:Arial,sans-serif;position:relative}#screen-options-link-wrap{display:none}.tablenav-pages-navspan{height:28px}#src_settings #sq_briefcase_title{display:table;font-size:36px;font-weight:400;line-height:49px;color:#333;margin:0 15px 3px 0;padding-top:5px;padding-bottom:0;height:auto;vertical-align:bottom;text-shadow:1px 1px #fff}#src_settings #sq_briefcase_title a,#src_settings #sq_briefcase_title input{display:block;float:left;font-size:15px;font-weight:700;color:#fff;background-color:#15b14a;border:1px solid #fff;line-height:25px;padding:5px 10px;margin:6px 0 0;text-decoration:none;cursor:pointer}#src_settings .sq_login_link{line-height:35px;color:#504310;font-size:15px;text-shadow:.1em .1em #ffff52;background:#ffd424;cursor:pointer;border:1px solid #f7a504;font-weight:700;padding:0 10px;text-align:center;text-decoration:none;margin:0 auto;width:500px;display:block}#src_settings #sq_briefcase_title #sq_goto_dashboard,#src_settings #sq_briefcase_title #sq_goto_newpost,#src_settings #sq_goto_dashboard,#src_settings #sq_goto_newpost{line-height:35px;color:#504310;text-shadow:.1em .1em #ffff52;background:#ffd424;cursor:pointer;border:1px solid #f7a504;font-weight:700;width:250px;text-align:center;text-decoration:none}#src_settings #sq_goto_dashboard,#src_settings #sq_goto_newpost{display:block;font-size:18px;margin:6px auto;padding:5px 10px;height:35px}#src_settings #sq_briefcase_title #sq_goto_dashboard,#src_settings #sq_briefcase_title #sq_goto_newpost{display:inline-block;font-size:15px;padding:0 10px;margin:6px 0 5px 6px}#src_settings #sq_login_success{text-align:center;font-size:18px;padding:14px 0;margin:15px auto;color:green}#src_settings #sq_login_success img{margin:30px auto 8px}#src_settings #sq_login_success ul{padding:0;margin:0}#src_settings #sq_login_success li{text-align:left;font-size:13px;padding:10px;margin:0 7px}.sq_loading{height:60px;background:url(../img/loading.gif) no-repeat center!important}#src_settings .sq_user_title{color:#1d9ed4!important;font-size:26px;margin:0;padding:5px 0!important;text-align:left}#src_settings #sq_user_stats_list li{margin:0;padding:3px 0 3px 24px;line-height:25px;font-size:14px}#src_settings #sq_user_stats_list li strong{color:#4caf50;font-size:16px}#src_settings #sq_user_info .sq_briefcase_info{color:#333;padding-top:15px;text-align:left}#src_settings #sq_user_info .sq_briefcase_info a{font-weight:700}#src_settings #sq_user_info .sq_button a{clear:both;display:block;float:right;font-size:15px;font-weight:700;color:#fff;background-color:#4caf50;border:1px solid #fff;line-height:25px;padding:5px 10px;margin:20px 0 0 20px;text-decoration:none;text-shadow:1px 1px #333;cursor:pointer}#src_settings #sq_userinfo{color:#333;font-size:14px;font-weight:400;min-height:500px;margin:0 15px 5px 0;padding:0;text-shadow:1px 1px #fff}#src_settings #sq_userinfo li{padding:10px}.sq_userinfo fieldset{float:none!important}#src_settings .sq_icon{display:block;float:left;margin:5px 11px 0 0;height:50px;width:50px;background-size:100%}#sq_briefcase #sq_posts_title,#src_settings #sq_posts_title{font-size:36px;font-weight:400;line-height:50px;color:#444;margin:0;padding:5px;height:auto}#src_settings .wp-list-table th#rank{width:120px}#src_settings .wp-list-table .column-author,#src_settings .wp-list-table .column-optimized,#src_settings .wp-list-table .column-shares,#src_settings .wp-list-table .column-type{width:8%;text-align:right}#src_settings .wp-list-table th#country{width:40px}#src_settings .wp-list-table th#shares{width:10%}#src_settings .wp-list-table th#recheck{width:8%}#src_settings .wp-list-table .column-country{white-space:nowrap}#sq_analytics .sq_analytics_tasks_row>table,#sq_analytics .sq_second_column span,#src_settings .subrow-table{width:100%}#src_settings .subrow-table .subrow-column{vertical-align:middle;padding:4px 3px;border-bottom:1px dashed #ddd}#src_settings .subrow-table .subrow-column.column-country{width:10px}td.sq_rank_column .sq_rank_column_row:hover .sq_chart_title{color:#b8860b}.sq_rank_layout_content .sq_rank_zone_header .sq_rank_zone_title{background-position:-60px -74px}.sq_post_rank_row:before{display:block;border:0;content:" ";width:100%;height:5px;border-radius:2px 2px 0 0}#sq_analytics div.sq_analytics_groups{width:95%;margin:0 auto 50px}#sq_analytics .sq_analytics_list>li{margin-top:40px}#sq_analytics .sq_analytics_list td{border:0;vertical-align:top;overflow:visible}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description span{display:block;margin-bottom:15px;margin-left:0}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_list_success span,#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description span.sq_analytics_tasks_alias{margin-bottom:10px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description ul li{margin-left:10px;margin-top:7px;font-size:14px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_fix a,#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_tip a{text-decoration:none;font-weight:700;color:orange}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_values li>div{float:left;margin-right:10px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_values li{clear:both;height:30px;line-height:20px;border-bottom:1px dashed #eee}td.column-recheck .sq_rank_column_button{width:80px;background-color:#d3d3d3;display:block;margin:1px auto 10px;font-size:13px;font-weight:700;color:#fff;line-height:16px;text-shadow:none;padding:7px 0;border-radius:0;-webkit-border-radius:0;-moz-border-radius:0;border:0;box-shadow:0 0 2px 0 #fff;cursor:pointer;text-align:center;z-index:2}td.sq_rank_column .sq_rank_column_row{text-align:center;position:relative;width:100%;min-height:25px}td.sq_rank_column .sq_rank_column_row .sq_optimize{font-size:12px;color:#f08080;cursor:pointer}td.sq_rank_column .sq_rank_column_row .sq_no_rank{color:#999}td.sq_rank_column .sq_rank_column_row .sq_chart_title{position:absolute;font-size:9px;color:#cfcfcf;top:33px;text-align:center;width:100%}td.column-rank .sq_rank_column_button,td.sq_rank_column .sq_rank_column_button{display:block;margin:1px auto 10px;font-weight:700;color:#fff;text-shadow:none;border-radius:0;-webkit-border-radius:0;-moz-border-radius:0;border:0;box-shadow:0 0 2px 0 #fff;cursor:pointer;text-align:center;z-index:2}td.sq_rank_column .sq_rank_column_button{background-color:#15b14a;font-size:13px;line-height:16px;padding:7px 0;width:100px}td.column-rank .sq_rank_column_button{padding:3px 0;font-size:11px;width:90px;line-height:14px;background-color:#d3d3d3}.sq_post_rank_row{position:relative;padding:0 0 5px!important;margin:0!important;border-left:1px solid #999;border-right:1px solid #999;background-color:#fff;min-width:460px;overflow:visible!important;box-shadow:0 5px 6px -4px #000!important;-moz-box-shadow:0 5px 6px -4px #000!important;-webkit-box-shadow:0 5px 6px -4px #000!important}.sq_post_rank_row .sq_post_rank_title{display:block;text-align:left;font-size:18px;font-weight:400;line-height:30px;color:#333;margin:0 0 10px;padding:10px 0 10px 10px;height:16px}.sq_post_rank_row .sq_separator{display:block;clear:both;width:100%;height:3px;margin:2px auto 30px}.sq_post_rank_row .sq_post_rank_close{position:absolute;background-color:#e5d8cd;right:-7px;top:-7px;font-size:13px;font-weight:700;color:#333;width:8px;line-height:16px;padding:0 5px 3px;border-radius:10px;-webkit-border-radius:10px;-moz-border-radius:10px;border:1px solid #556b2f;cursor:pointer;z-index:2}.sq_post_rank_row .sq_post_rank_refresh{position:absolute;right:30px;top:18px;font-size:12px;font-weight:700;color:#fff;line-height:16px;padding:2px 9px;background-color:#15b14a;text-shadow:1px 1px #333;border:1px solid #4caf50;box-shadow:0 0 2px 0 #57c332;cursor:pointer;z-index:2}#sq_analytics .sq_first_header_column{width:122px}#sq_analytics .sq_second_column{width:528px}#sq_analytics .sq_third_column{position:relative;overflow:visible;width:300px;text-align:center}#sq_analytics .sq_analytics_task_completed{display:block;top:-22px;float:left;position:relative;line-height:40px;width:auto;height:auto;min-width:50px;min-height:40px;margin:0 20px;padding:10px;text-align:center;font-size:30px;color:#fff;box-shadow:1px 1px 2px 0 #999;filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=1, OffY=1, Color='#999');-ms-filter:"progid:DXImageTransform.Microsoft.Shadow(Strength=1, Direction=270, Color='#999')";border-radius:5px 5px 5px 0;-moz-border-radius:5px 5px 5px 0;-webkit-border-radius:5px 5px 5px 0}#sq_analytics .sq_analytics_tasks .sq_analytics_task_completed{display:block;width:100px;height:65px;font-size:20px;color:#fff;text-shadow:1px 1px #555;line-height:29px;vertical-align:middle}#sq_analytics .sq_analytics_task_completed:before{content:"";width:0;height:0;position:absolute;bottom:-13px;left:0;border-width:0 0 14px 25px;border-style:solid;z-index:2}#sq_analytics .sq_analytics_task_completed:after{content:"";width:0;height:0;position:absolute;bottom:-15px;left:0;border-collapse:collapse;border-width:0 0 15px 28px;border-style:solid;border-color:transparent transparent transparent #999}#sq_analytics .sq_audit_task_completed_green{color:#fff;background:#15b14a}#sq_analytics .sq_audit_task_completed_green_text{color:#4caf50}#sq_analytics .sq_audit_task_completed_green:before{border-color:transparent transparent transparent #4caf50}#sq_analytics .sq_audit_task_completed_yellow{color:#fff;background:#f6a304}#sq_analytics .sq_audit_task_completed_yellow_text{color:#f6a304}#sq_analytics .sq_audit_task_completed_yellow:before{border-color:transparent transparent transparent #f6a304}#sq_analytics .sq_audit_task_completed_red{color:#fff;background:#bb0d0c}#sq_analytics .sq_audit_task_completed_red_text{color:#bb0d0c}#sq_analytics .sq_audit_task_completed_red:before{border-color:transparent transparent transparent #bb0d0c}#sq_analytics .sq_analytics_list .sq_analytics_tasks_header{height:50px;overflow:visible}#sq_analytics .sq_analytics_list .sq_analytics_tasks_header .sq_analytics_tasks_header_title{float:left;font-size:36px;line-height:16px}#sq_analytics .sq_analytics_list .sq_analytics_tasks_header .sq_analytics_task_completed{margin:0 21px!important;padding:10px}#sq_analytics .sq_analytics_list .sq_analytics_tasks_header .sq_analytics_task_completed:before{right:4px;left:auto}#sq_analytics .sq_analytics_list .sq_analytics_tasks_header .sq_analytics_task_completed:after{bottom:-15px;right:2px;left:auto;border-width:0 0 15px 26px}.sq_analytics_tasks_fail,.sq_analytics_tasks_pass{display:block;height:84px;width:97px;margin-right:20px}#sq_analytics .sq_analytics_tasks_row{width:100%;position:relative;margin-top:30px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_title{font-size:24px;line-height:28px;color:#a8a8a8;padding-right:10px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value{font-size:24px;line-height:28px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value_fail a,#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value_pass a{font-size:15px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value_pass{color:#4caf50}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_fix strong,#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value_fail{color:#f7681a}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description{padding-top:20px;max-width:540px;font-size:16px;line-height:21px;color:#a8a8a8}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_tasks_value{font-size:15px;line-height:21px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description a{text-decoration:none}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_fix,#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_tip{font-size:14px;line-height:19px;color:#333}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_values{width:330px;margin:30px auto 0}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_values li .sq_analytics_values_title{font-size:16px;width:195px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_values li .sq_analytics_values_value{font-weight:700;width:75px;text-align:right}#sq_analytics .sq_list_error_title,#sq_analytics .sq_list_success_title{display:block;font-size:20px;color:#333;height:31px;width:90%!important;margin-top:30px;padding-left:30px;border-bottom:5px solid #ccc;box-shadow:0 1px 0 0 #999;filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0, OffY=1, Color='#999');-ms-filter:"progid:DXImageTransform.Microsoft.Shadow(Strength=1, Direction=270, Color='#999')";border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px}#sq_analytics .sq_list_error,#sq_analytics .sq_list_success{display:block;font-size:15px;font-weight:400;color:#333;margin-left:0;margin-top:5px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value .sq_list_error,#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value .sq_list_success{font-style:italic}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_video_cover{width:280px;height:158px;border:2px solid #000;border-radius:5px;margin:0 auto;cursor:pointer}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_video a{display:block;width:280px;text-align:center;font-size:15px;margin:0 5px}#sq_analytics .sq_analytics_tasks_row .sq_chart_text{position:absolute;font-size:14px;line-height:20px;color:#cfcfcf;top:80px;text-align:center;width:93%}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_side{text-align:center}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_side .sq_analytics_tasks_side_text{display:block;font-size:14px;line-height:21px;color:#cfcfcf;text-align:center}#sq_briefcase button.btn-success:active,#sq_briefcase button.btn-success:hover,#sq_briefcase button.btn-warning{color:#fff;background-color:#3971aa;border-color:transparent}#sq_briefcase button.btn-warning{background-color:#f2ca4c}#sq_briefcase button.btn-warning:active,#sq_briefcase button.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}#sq_briefcase table.table tbody td,#sq_briefcase table.table tbody th{line-height:30px;font-size:14px}#sq_briefcase .subtable{width:100%;background-color:#f9fafc;border:1px solid #e8ebf0}#sq_briefcase .subtable td,#sq_briefcase .subtable th{padding:6px 13px}#sq_briefcase .subtable th{background-color:#8684a4;color:#fff}#sq_briefcase .subtable td .btn{padding:1px 12px}#sq_analytics .sq_rank_sprite{float:left;display:block;margin:1px 0 0;width:20px;height:20px}#sq_analytics .sq_rank_flag_big{display:block;float:none;margin:0 auto 6px;background-position:-7px -279px;width:72px;height:70px}#sq_analytics .sq_rank_flag_facebook{background-position:-10px -253px}#sq_analytics .sq_rank_flag_facebook_big{background-position:-7px -279px}#sq_analytics .sq_rank_flag_facebook_like{background-position:-212px -253px}#sq_analytics .sq_rank_flag_twitter{background-position:-53px -253px}#sq_analytics .sq_rank_flag_twitter_big{background-position:-372px -279px}#sq_analytics .sq_rank_flag_googleplus{background-position:-31px -253px}#sq_analytics .sq_rank_flag_googleplus_big{background-position:-153px -279px}#sq_analytics .sq_rank_flag_stumbleupon{background-position:-190px -253px}#sq_analytics .sq_rank_flag_stumbleupon_big{background-position:-299px -279px}#sq_analytics .sq_rank_flag_linkedin{background-position:-231px -253px}#sq_analytics .sq_rank_flag_linkedin_big{background-position:-80px -279px}#sq_analytics .sq_rank_flag_reddit{background-position:-250px -253px}#sq_analytics .sq_rank_flag_reddit_big{background-position:-226px -279px}#sq_analytics .sq_rank_seomoz_inbound{background-position:-97px -253px}#sq_analytics .sq_rank_seomoz_authority{background-position:-119px -253px}#sq_analytics .sq_rank_google_pagerank,#sq_analytics .sq_rank_seomoz_rank{background-position:-273px -253px}#sq_analytics .sq_rank_squirrly_rank{background-position:-314px -253px}#sq_analytics .sq_rank_ahrefs_rank{background-position:-333px -253px}.sq_rank_custom_meta{display:block;font-size:13px;width:16px;height:16px;margin:0;padding:0;cursor:pointer;float:right}.sq_rank_customtitle{background-position:-308px -75px}.sq_rank_customdescription{background-position:-326px -75px}.sq_kr_countries{display:none}ul.sq_research_complexity,ul.sq_research_lang{position:absolute;background-color:#fff;border:0;font-size:14px;display:block;width:50%;height:27px;margin:0;padding:0;overflow:hidden;max-height:249px;z-index:9999}ul.sq_research_complexity{right:242px;width:140px}ul.sq_research_complexity:hover,ul.sq_research_lang:hover{box-shadow:0 0 10px 0 #333;height:auto;overflow-y:auto;z-index:9999}ul.sq_research_lang>li:before{display:inline-block;content:" ";background:url(../img/flags.png) no-repeat 0 -2541px;border:1px solid #fff;width:16px;height:12px;cursor:pointer;margin:0 5px -2px 0;padding:0}ul.sq_research_complexity>li,ul.sq_research_lang>li{margin:0 0 5px;padding:0 2px;line-height:24px;cursor:pointer}ul.sq_research_complexity li.sq_complexity_first,ul.sq_research_lang li.sq_research_first{border:1px solid #6200ee;color:#6200ee}ul.sq_research_complexity li.selected,ul.sq_research_lang li.selected{background-color:#d3d3d3}@media screen and (max-width:782px){#src_settings .wp-list-table td.column-author,#src_settings .wp-list-table td.column-recheck,#src_settings .wp-list-table td.column-type,#src_settings .wp-list-table th#author,#src_settings .wp-list-table th#recheck,#src_settings .wp-list-table th#type{display:none}}@media only screen and (max-width:1050px){#src_settings .wp-list-table td.column-recheck,#src_settings .wp-list-table td.column-type,#src_settings .wp-list-table th#recheck,#src_settings .wp-list-table th#type{display:none}}
|
1 |
+
.squirrly-seo-settings #wpcontent .bg-briefcase#sq_toolbar *{-webkit-box-sizing:content-box!important;box-sizing:content-box!important}.sq_absolute{top:28px!important}@media (min-width:768px){.modal-dialog{width:600px;margin:60px auto!important}}#sq_briefcase .wp-picker-holder .iris-slider{height:182.346px!important;width:26.2px!important}#sq_briefcase .wp-picker-container .wp-color-result.button{height:23px}#sq_briefcase ul.sq_row_stats li{float:left;margin-right:10px;font-size:14px}#sq_briefcase ul.sq_row_stats li i.fa-refresh{font-size:11px;color:#999;line-height:30px;display:none}#sq_briefcase .sq_saved_label:hover span.sq_delete_label,#sq_briefcase .sq_saved_label:hover span.sq_edit_label,#sq_briefcase table.table tr:hover .sq_label_manage,#sq_briefcase table.table tr:hover .sq_label_refresh,#sq_briefcase table.table tr:hover ul.sq_row_stats li i.fa-refresh,#sq_briefcaselabels .sq_saved_label:hover span.sq_delete_label,#sq_briefcaselabels .sq_saved_label:hover span.sq_edit_label{display:block}#sq_briefcase table.dataTable{width:100%!important}#sq_briefcase table.table td{font-size:15px}#sq_ranks table.table-keywords td:first-child{width:60%;font-weight:700;color:#428ea1}#sq_ranks table.table-keywords td:nth-child(2){width:120px}#sq_ranks table.table-keywords td:nth-child(3){width:150px}#sq_briefcase table.subtable td{font-size:13px;padding:5px 13px!important}#sq_briefcase table.subtable tr:hover{background-color:#f2f6fe}#sq_briefcase .sq_checkbox_label,#sq_briefcase .sq_circle_label{display:block;float:left;width:117px;height:17px;margin:0 6px 30px;font-size:10px;line-height:11px}#sq_briefcase .sq_saved_label,#sq_briefcaselabels .sq_saved_label{display:block;float:left;margin:0 6px 30px}#sq_briefcase .sq_checkbox_label span,#sq_briefcase .sq_circle_label span,#sq_briefcase .sq_saved_label span,#sq_briefcaselabels .sq_saved_label span{font-family:Arial,sans-serif!important;font-weight:400!important}#sq_briefcase .sq_add_keyword_dialog .sq_checkbox_label,#sq_briefcase .sq_label_manage_popup .sq_checkbox_label,#sq_briefcase .sq_saved_label,#sq_briefcaselabels .sq_saved_label{position:relative;margin-right:10px;width:90px;height:20px;font-size:11px;line-height:13px;margin-bottom:30px}#sq_briefcase .sq_saved_label .sq_saved_label_name,#sq_briefcaselabels .sq_saved_label .sq_saved_label_name{display:block;margin-top:23px}#sq_briefcase .sq_saved_label span.sq_delete_label{right:4px;top:2px;font-size:13px}#sq_briefcase .sq_saved_label span.sq_delete_label,#sq_briefcase .sq_saved_label span.sq_edit_label{display:none;cursor:pointer;position:absolute;color:#fff;font-weight:700;text-shadow:0 0 2px #444}#sq_briefcaselabels .sq_saved_label span.sq_delete_label{right:4px;top:2px;font-size:13px}#sq_briefcaselabels .sq_saved_label span.sq_delete_label,#sq_briefcaselabels .sq_saved_label span.sq_edit_label{display:none;cursor:pointer;position:absolute;color:#fff;font-weight:700;text-shadow:0 0 2px #444}#sq_briefcase .sq_saved_label span.sq_edit_label,#sq_briefcaselabels .sq_saved_label span.sq_edit_label{right:18px;top:4px;font-size:11px}#sq_briefcaselabels .wp-color-picker,#sq_briefcaselabels .wp-color-result-text,#sq_briefcaselabels .wp-picker-clear{line-height:29px;padding:1px 6px}.wp-picker-holder *{box-sizing:content-box!important}#sq_briefcase .table .sq_circle_label{display:block;float:left;width:20px;height:5px;margin:0 2px -3px 0}#sq_briefcase .table .sq_label_manage,#sq_briefcase .table .sq_label_refresh{display:none;cursor:pointer;float:left;margin:0 5px;line-height:30px}#sq_briefcase .sq_add_keyword_dialog .sq_checkbox_label:before,#sq_briefcase .sq_filter_label .sq_circle_label:before,#sq_briefcase .sq_label_manage_popup .sq_checkbox_label:before{content:" ";display:block;height:calc(100% + 4px);width:calc(100% + 4px);margin:-2px 0 2px}#sq_briefcase .sq_add_keyword_dialog .sq_checkbox_label:hover:before,#sq_briefcase .sq_label_manage_popup .sq_checkbox_label:hover:before{content:attr(data-title);display:block;height:calc(100% + 4px);width:calc(100% + 4px);margin:0;line-height:22px;font-size:13px;color:#eee;text-shadow:1px 1px #333}#sq_briefcase .sq_label_manage_popup .sq_checkbox_label:hover:before{font-size:10px;margin:0 0 0 6px}#sq_briefcase .sq_filter_label .sq_circle_label.sq_active:before{display:block;padding-left:calc(50% - 5px);margin:-2px 0 2px;line-height:22px;content:"\f00c";color:#fff;text-shadow:1px 0 #555}#sq_briefcase .sq_add_keyword_dialog .sq_checkbox_label.sq_active:before,#sq_briefcase .sq_label_manage_popup .sq_checkbox_label.sq_active:before{display:block;font-size:16px;padding-left:calc(50% - 5px);margin:-2px 0 2px;line-height:22px;content:"\f00c";color:#fff;text-shadow:1px 0 #555}#sq_briefcase .sq_filter_label .sq_circle_label.sq_active:before,#src_settings .wp-list-table th{font-size:14px}.wp-picker-clear,div.wp-picker-holder{z-index:999!important;position:absolute!important}#update-nag,.notice-error,.screen-meta-toggle,.show-settings,.update-nag,.updated{display:none!important}#sq_briefcase *,#sq_briefcase :after,#sq_briefcase :before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#src_settings{font-family:Arial,sans-serif;position:relative}#screen-options-link-wrap{display:none}.tablenav-pages-navspan{height:28px}#src_settings #sq_briefcase_title{display:table;font-size:36px;font-weight:400;line-height:49px;color:#333;margin:0 15px 3px 0;padding-top:5px;padding-bottom:0;height:auto;vertical-align:bottom;text-shadow:1px 1px #fff}#src_settings #sq_briefcase_title a,#src_settings #sq_briefcase_title input{display:block;float:left;font-size:15px;font-weight:700;color:#fff;background-color:#15b14a;border:1px solid #fff;line-height:25px;padding:5px 10px;margin:6px 0 0;text-decoration:none;cursor:pointer}#src_settings .sq_login_link{line-height:35px;color:#504310;font-size:15px;text-shadow:.1em .1em #ffff52;background:#ffd424;cursor:pointer;border:1px solid #f7a504;font-weight:700;padding:0 10px;text-align:center;text-decoration:none;margin:0 auto;width:500px;display:block}#src_settings #sq_briefcase_title #sq_goto_dashboard,#src_settings #sq_briefcase_title #sq_goto_newpost,#src_settings #sq_goto_dashboard,#src_settings #sq_goto_newpost{line-height:35px;color:#504310;text-shadow:.1em .1em #ffff52;background:#ffd424;cursor:pointer;border:1px solid #f7a504;font-weight:700;width:250px;text-align:center;text-decoration:none}#src_settings #sq_goto_dashboard,#src_settings #sq_goto_newpost{display:block;font-size:18px;margin:6px auto;padding:5px 10px;height:35px}#src_settings #sq_briefcase_title #sq_goto_dashboard,#src_settings #sq_briefcase_title #sq_goto_newpost{display:inline-block;font-size:15px;padding:0 10px;margin:6px 0 5px 6px}#src_settings #sq_login_success{text-align:center;font-size:18px;padding:14px 0;margin:15px auto;color:green}#src_settings #sq_login_success img{margin:30px auto 8px}#src_settings #sq_login_success ul{padding:0;margin:0}#src_settings #sq_login_success li{text-align:left;font-size:13px;padding:10px;margin:0 7px}.sq_loading{height:60px;background:url(../img/loading.gif) no-repeat center!important}#src_settings .sq_user_title{color:#1d9ed4!important;font-size:26px;margin:0;padding:5px 0!important;text-align:left}#src_settings #sq_user_stats_list li{margin:0;padding:3px 0 3px 24px;line-height:25px;font-size:14px}#src_settings #sq_user_stats_list li strong{color:#4caf50;font-size:16px}#src_settings #sq_user_info .sq_briefcase_info{color:#333;padding-top:15px;text-align:left}#src_settings #sq_user_info .sq_briefcase_info a{font-weight:700}#src_settings #sq_user_info .sq_button a{clear:both;display:block;float:right;font-size:15px;font-weight:700;color:#fff;background-color:#4caf50;border:1px solid #fff;line-height:25px;padding:5px 10px;margin:20px 0 0 20px;text-decoration:none;text-shadow:1px 1px #333;cursor:pointer}#src_settings #sq_userinfo{color:#333;font-size:14px;font-weight:400;min-height:500px;margin:0 15px 5px 0;padding:0;text-shadow:1px 1px #fff}#src_settings #sq_userinfo li{padding:10px}.sq_userinfo fieldset{float:none!important}#src_settings .sq_icon{display:block;float:left;margin:5px 11px 0 0;height:50px;width:50px;background-size:100%}#sq_briefcase #sq_posts_title,#src_settings #sq_posts_title{font-size:36px;font-weight:400;line-height:50px;color:#444;margin:0;padding:5px;height:auto}#src_settings .wp-list-table th#rank{width:120px}#src_settings .wp-list-table .column-author,#src_settings .wp-list-table .column-optimized,#src_settings .wp-list-table .column-shares,#src_settings .wp-list-table .column-type{width:8%;text-align:right}#src_settings .wp-list-table th#country{width:40px}#src_settings .wp-list-table th#shares{width:10%}#src_settings .wp-list-table th#recheck{width:8%}#src_settings .wp-list-table .column-country{white-space:nowrap}#sq_analytics .sq_analytics_tasks_row>table,#sq_analytics .sq_second_column span,#src_settings .subrow-table{width:100%}#src_settings .subrow-table .subrow-column{vertical-align:middle;padding:4px 3px;border-bottom:1px dashed #ddd}#src_settings .subrow-table .subrow-column.column-country{width:10px}td.sq_rank_column .sq_rank_column_row:hover .sq_chart_title{color:#b8860b}.sq_rank_layout_content .sq_rank_zone_header .sq_rank_zone_title{background-position:-60px -74px}.sq_post_rank_row:before{display:block;border:0;content:" ";width:100%;height:5px;border-radius:2px 2px 0 0}#sq_analytics div.sq_analytics_groups{width:95%;margin:0 auto 50px}#sq_analytics .sq_analytics_list>li{margin-top:40px}#sq_analytics .sq_analytics_list td{border:0;vertical-align:top;overflow:visible}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description span{display:block;margin-bottom:15px;margin-left:0}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_list_success span,#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description span.sq_analytics_tasks_alias{margin-bottom:10px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description ul li{margin-left:10px;margin-top:7px;font-size:14px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_fix a,#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_tip a{text-decoration:none;font-weight:700;color:orange}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_values li>div{float:left;margin-right:10px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_values li{clear:both;height:30px;line-height:20px;border-bottom:1px dashed #eee}td.column-recheck .sq_rank_column_button{width:80px;background-color:#d3d3d3;display:block;margin:1px auto 10px;font-size:13px;font-weight:700;color:#fff;line-height:16px;text-shadow:none;padding:7px 0;border-radius:0;-webkit-border-radius:0;-moz-border-radius:0;border:0;box-shadow:0 0 2px 0 #fff;cursor:pointer;text-align:center;z-index:2}td.sq_rank_column .sq_rank_column_row{text-align:center;position:relative;width:100%;min-height:25px}td.sq_rank_column .sq_rank_column_row .sq_optimize{font-size:12px;color:#f08080;cursor:pointer}td.sq_rank_column .sq_rank_column_row .sq_no_rank{color:#999}td.sq_rank_column .sq_rank_column_row .sq_chart_title{position:absolute;font-size:9px;color:#cfcfcf;top:33px;text-align:center;width:100%}td.column-rank .sq_rank_column_button,td.sq_rank_column .sq_rank_column_button{display:block;margin:1px auto 10px;font-weight:700;color:#fff;text-shadow:none;border-radius:0;-webkit-border-radius:0;-moz-border-radius:0;border:0;box-shadow:0 0 2px 0 #fff;cursor:pointer;text-align:center;z-index:2}td.sq_rank_column .sq_rank_column_button{background-color:#15b14a;font-size:13px;line-height:16px;padding:7px 0;width:100px}td.column-rank .sq_rank_column_button{padding:3px 0;font-size:11px;width:90px;line-height:14px;background-color:#d3d3d3}.sq_post_rank_row{position:relative;padding:0 0 5px!important;margin:0!important;border-left:1px solid #999;border-right:1px solid #999;background-color:#fff;min-width:460px;overflow:visible!important;box-shadow:0 5px 6px -4px #000!important;-moz-box-shadow:0 5px 6px -4px #000!important;-webkit-box-shadow:0 5px 6px -4px #000!important}.sq_post_rank_row .sq_post_rank_title{display:block;text-align:left;font-size:18px;font-weight:400;line-height:30px;color:#333;margin:0 0 10px;padding:10px 0 10px 10px;height:16px}.sq_post_rank_row .sq_separator{display:block;clear:both;width:100%;height:3px;margin:2px auto 30px}.sq_post_rank_row .sq_post_rank_close{position:absolute;background-color:#e5d8cd;right:-7px;top:-7px;font-size:13px;font-weight:700;color:#333;width:8px;line-height:16px;padding:0 5px 3px;border-radius:10px;-webkit-border-radius:10px;-moz-border-radius:10px;border:1px solid #556b2f;cursor:pointer;z-index:2}.sq_post_rank_row .sq_post_rank_refresh{position:absolute;right:30px;top:18px;font-size:12px;font-weight:700;color:#fff;line-height:16px;padding:2px 9px;background-color:#15b14a;text-shadow:1px 1px #333;border:1px solid #4caf50;box-shadow:0 0 2px 0 #57c332;cursor:pointer;z-index:2}#sq_analytics .sq_first_header_column{width:122px}#sq_analytics .sq_second_column{width:528px}#sq_analytics .sq_third_column{position:relative;overflow:visible;width:300px;text-align:center}#sq_analytics .sq_analytics_task_completed{display:block;top:-22px;float:left;position:relative;line-height:40px;width:auto;height:auto;min-width:50px;min-height:40px;margin:0 20px;padding:10px;text-align:center;font-size:30px;color:#fff;box-shadow:1px 1px 2px 0 #999;filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=1, OffY=1, Color='#999');-ms-filter:"progid:DXImageTransform.Microsoft.Shadow(Strength=1, Direction=270, Color='#999')";border-radius:5px 5px 5px 0;-moz-border-radius:5px 5px 5px 0;-webkit-border-radius:5px 5px 5px 0}#sq_analytics .sq_analytics_tasks .sq_analytics_task_completed{display:block;width:100px;height:65px;font-size:20px;color:#fff;text-shadow:1px 1px #555;line-height:29px;vertical-align:middle}#sq_analytics .sq_analytics_task_completed:before{content:"";width:0;height:0;position:absolute;bottom:-13px;left:0;border-width:0 0 14px 25px;border-style:solid;z-index:2}#sq_analytics .sq_analytics_task_completed:after{content:"";width:0;height:0;position:absolute;bottom:-15px;left:0;border-collapse:collapse;border-width:0 0 15px 28px;border-style:solid;border-color:transparent transparent transparent #999}#sq_analytics .sq_audit_task_completed_green{color:#fff;background:#15b14a}#sq_analytics .sq_audit_task_completed_green_text{color:#4caf50}#sq_analytics .sq_audit_task_completed_green:before{border-color:transparent transparent transparent #4caf50}#sq_analytics .sq_audit_task_completed_yellow{color:#fff;background:#f6a304}#sq_analytics .sq_audit_task_completed_yellow_text{color:#f6a304}#sq_analytics .sq_audit_task_completed_yellow:before{border-color:transparent transparent transparent #f6a304}#sq_analytics .sq_audit_task_completed_red{color:#fff;background:#bb0d0c}#sq_analytics .sq_audit_task_completed_red_text{color:#bb0d0c}#sq_analytics .sq_audit_task_completed_red:before{border-color:transparent transparent transparent #bb0d0c}#sq_analytics .sq_analytics_list .sq_analytics_tasks_header{height:50px;overflow:visible}#sq_analytics .sq_analytics_list .sq_analytics_tasks_header .sq_analytics_tasks_header_title{float:left;font-size:36px;line-height:16px}#sq_analytics .sq_analytics_list .sq_analytics_tasks_header .sq_analytics_task_completed{margin:0 21px!important;padding:10px}#sq_analytics .sq_analytics_list .sq_analytics_tasks_header .sq_analytics_task_completed:before{right:4px;left:auto}#sq_analytics .sq_analytics_list .sq_analytics_tasks_header .sq_analytics_task_completed:after{bottom:-15px;right:2px;left:auto;border-width:0 0 15px 26px}.sq_analytics_tasks_fail,.sq_analytics_tasks_pass{display:block;height:84px;width:97px;margin-right:20px}#sq_analytics .sq_analytics_tasks_row{width:100%;position:relative;margin-top:30px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_title{font-size:24px;line-height:28px;color:#a8a8a8;padding-right:10px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value{font-size:24px;line-height:28px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value_fail a,#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value_pass a{font-size:15px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value_pass{color:#4caf50}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_fix strong,#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value_fail{color:#f7681a}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description{padding-top:20px;max-width:540px;font-size:16px;line-height:21px;color:#a8a8a8}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_tasks_value{font-size:15px;line-height:21px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description a{text-decoration:none}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_fix,#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_tip{font-size:14px;line-height:19px;color:#333}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_values{width:330px;margin:30px auto 0}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_values li .sq_analytics_values_title{font-size:16px;width:195px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_values li .sq_analytics_values_value{font-weight:700;width:75px;text-align:right}#sq_analytics .sq_list_error_title,#sq_analytics .sq_list_success_title{display:block;font-size:20px;color:#333;height:31px;width:90%!important;margin-top:30px;padding-left:30px;border-bottom:5px solid #ccc;box-shadow:0 1px 0 0 #999;filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0, OffY=1, Color='#999');-ms-filter:"progid:DXImageTransform.Microsoft.Shadow(Strength=1, Direction=270, Color='#999')";border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px}#sq_analytics .sq_list_error,#sq_analytics .sq_list_success{display:block;font-size:15px;font-weight:400;color:#333;margin-left:0;margin-top:5px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value .sq_list_error,#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value .sq_list_success{font-style:italic}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_video_cover{width:280px;height:158px;border:2px solid #000;border-radius:5px;margin:0 auto;cursor:pointer}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_video a{display:block;width:280px;text-align:center;font-size:15px;margin:0 5px}#sq_analytics .sq_analytics_tasks_row .sq_chart_text{position:absolute;font-size:14px;line-height:20px;color:#cfcfcf;top:80px;text-align:center;width:93%}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_side{text-align:center}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_side .sq_analytics_tasks_side_text{display:block;font-size:14px;line-height:21px;color:#cfcfcf;text-align:center}#sq_briefcase button.btn-success:active,#sq_briefcase button.btn-success:hover,#sq_briefcase button.btn-warning{color:#fff;background-color:#3971aa;border-color:transparent}#sq_briefcase button.btn-warning{background-color:#f2ca4c}#sq_briefcase button.btn-warning:active,#sq_briefcase button.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}#sq_briefcase table.table tbody td,#sq_briefcase table.table tbody th{line-height:30px;font-size:14px}#sq_briefcase .subtable{width:100%;background-color:#f9fafc;border:1px solid #e8ebf0}#sq_briefcase .subtable td,#sq_briefcase .subtable th{padding:6px 13px}#sq_briefcase .subtable th{background-color:#8684a4;color:#fff}#sq_briefcase .subtable td .btn{padding:1px 12px}#sq_analytics .sq_rank_sprite{float:left;display:block;margin:1px 0 0;width:20px;height:20px}#sq_analytics .sq_rank_flag_big{display:block;float:none;margin:0 auto 6px;background-position:-7px -279px;width:72px;height:70px}#sq_analytics .sq_rank_flag_facebook{background-position:-10px -253px}#sq_analytics .sq_rank_flag_facebook_big{background-position:-7px -279px}#sq_analytics .sq_rank_flag_facebook_like{background-position:-212px -253px}#sq_analytics .sq_rank_flag_twitter{background-position:-53px -253px}#sq_analytics .sq_rank_flag_twitter_big{background-position:-372px -279px}#sq_analytics .sq_rank_flag_googleplus{background-position:-31px -253px}#sq_analytics .sq_rank_flag_googleplus_big{background-position:-153px -279px}#sq_analytics .sq_rank_flag_stumbleupon{background-position:-190px -253px}#sq_analytics .sq_rank_flag_stumbleupon_big{background-position:-299px -279px}#sq_analytics .sq_rank_flag_linkedin{background-position:-231px -253px}#sq_analytics .sq_rank_flag_linkedin_big{background-position:-80px -279px}#sq_analytics .sq_rank_flag_reddit{background-position:-250px -253px}#sq_analytics .sq_rank_flag_reddit_big{background-position:-226px -279px}#sq_analytics .sq_rank_seomoz_inbound{background-position:-97px -253px}#sq_analytics .sq_rank_seomoz_authority{background-position:-119px -253px}#sq_analytics .sq_rank_google_pagerank,#sq_analytics .sq_rank_seomoz_rank{background-position:-273px -253px}#sq_analytics .sq_rank_squirrly_rank{background-position:-314px -253px}#sq_analytics .sq_rank_ahrefs_rank{background-position:-333px -253px}.sq_rank_custom_meta{display:block;font-size:13px;width:16px;height:16px;margin:0;padding:0;cursor:pointer;float:right}.sq_rank_customtitle{background-position:-308px -75px}.sq_rank_customdescription{background-position:-326px -75px}.sq_kr_countries{display:none}ul.sq_research_complexity,ul.sq_research_lang{position:absolute;background-color:#fff;border:0;font-size:14px;display:block;width:50%;height:27px;margin:0;padding:0;overflow:hidden;max-height:249px;z-index:9999}ul.sq_research_complexity{right:242px;width:140px}ul.sq_research_complexity:hover,ul.sq_research_lang:hover{box-shadow:0 0 10px 0 #333;height:auto;overflow-y:auto;z-index:9999}ul.sq_research_lang>li:before{display:inline-block;content:" ";background:url(../img/flags.png) no-repeat 0 -2541px;border:1px solid #fff;width:16px;height:12px;cursor:pointer;margin:0 5px -2px 0;padding:0}ul.sq_research_complexity>li,ul.sq_research_lang>li{margin:0 0 5px;padding:0 2px;line-height:24px;cursor:pointer}ul.sq_research_complexity li.sq_complexity_first,ul.sq_research_lang li.sq_research_first{border:1px solid #6200ee;color:#6200ee}ul.sq_research_complexity li.selected,ul.sq_research_lang li.selected{background-color:#d3d3d3}@media screen and (max-width:782px){#src_settings .wp-list-table td.column-author,#src_settings .wp-list-table td.column-recheck,#src_settings .wp-list-table td.column-type,#src_settings .wp-list-table th#author,#src_settings .wp-list-table th#recheck,#src_settings .wp-list-table th#type{display:none}}@media only screen and (max-width:1050px){#src_settings .wp-list-table td.column-recheck,#src_settings .wp-list-table td.column-type,#src_settings .wp-list-table th#recheck,#src_settings .wp-list-table th#type{display:none}}
|
view/assets/css/builders.css
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.elementor-container mark.mark_counter,
|
2 |
+
.elementor-inner mark.mark_counter,
|
3 |
+
.ct-component mark.mark_counter,
|
4 |
+
.et_pb_row mark.mark_counter,
|
5 |
+
.container mark.mark_counter,
|
6 |
+
.znpb-element__wrapper mark.mark_counter,
|
7 |
+
.wpb_wrapper mark.mark_counter
|
8 |
+
{
|
9 |
+
background: #FDFFC7 !important;
|
10 |
+
color: #383838 !important;
|
11 |
+
padding: 0 5px;
|
12 |
+
}
|
13 |
+
|
14 |
+
.elementor-container mark.mark_counter:after,
|
15 |
+
.elementor-inner mark.mark_counter:after,
|
16 |
+
.ct-component mark.mark_counter:after,
|
17 |
+
.et_pb_row mark.mark_counter:after,
|
18 |
+
.container mark.mark_counter:after,
|
19 |
+
.znpb-element__wrapper mark.mark_counter:after,
|
20 |
+
.wpb_wrapper mark.mark_counter:after
|
21 |
+
{
|
22 |
+
content: attr(data-cnt) !important;
|
23 |
+
color: gray;
|
24 |
+
font-size: 70%;
|
25 |
+
line-height: 50%;
|
26 |
+
vertical-align: baseline;
|
27 |
+
position: relative;
|
28 |
+
top: -9px;
|
29 |
+
}
|
30 |
+
|
31 |
+
.elementor-container .sq_highlight .sq_highlight_cnt,
|
32 |
+
.elementor-container mark.mark_counter,
|
33 |
+
.elementor-inner mark.mark_counter,
|
34 |
+
.ct-component mark.mark_counter,
|
35 |
+
.et_pb_row mark.mark_counter,
|
36 |
+
.container mark.mark_counter,
|
37 |
+
.znpb-element__wrapper mark.mark_counter,
|
38 |
+
.wpb_wrapper mark.mark_counter
|
39 |
+
{
|
40 |
+
display: initial !important;
|
41 |
+
}
|
view/assets/css/builders.min.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.container mark.mark_counter,.ct-component mark.mark_counter,.elementor-container mark.mark_counter,.elementor-inner mark.mark_counter,.et_pb_row mark.mark_counter,.wpb_wrapper mark.mark_counter,.znpb-element__wrapper mark.mark_counter{background:#fdffc7!important;color:#383838!important;padding:0 5px}.container mark.mark_counter:after,.ct-component mark.mark_counter:after,.elementor-container mark.mark_counter:after,.elementor-inner mark.mark_counter:after,.et_pb_row mark.mark_counter:after,.wpb_wrapper mark.mark_counter:after,.znpb-element__wrapper mark.mark_counter:after{content:attr(data-cnt)!important;color:gray;font-size:70%;line-height:50%;vertical-align:baseline;position:relative;top:-9px}.container mark.mark_counter,.ct-component mark.mark_counter,.elementor-container .sq_highlight .sq_highlight_cnt,.elementor-container mark.mark_counter,.elementor-inner mark.mark_counter,.et_pb_row mark.mark_counter,.wpb_wrapper mark.mark_counter,.znpb-element__wrapper mark.mark_counter{display:initial!important}
|
view/assets/css/frontend.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.sq_blog_content,.sq_local_content,.sq_quote_content,.sq_wiki_content{position:relative;clear:both;background:#fff;font-size:14px;color:#333;max-width:500px;margin:5px auto;padding:13px;-webkit-transition:.1s border-color;-moz-transition:.1s border-color;transition:.1s border-color;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;border:1px solid #ddd;-webkit-box-shadow:0 1px 0 #ddd;-moz-box-shadow:0 1px 0 #ddd;box-shadow:0 1px 0 #ddd}.sq_blog_content p,.sq_local_content p,.sq_quote_content p,.sq_wiki_content p{margin:0!important;padding:0!important;line-height:18px!important;font-size:12px!important}.sq_author_avatar{display:block;float:left;width:48px;height:48px;padding:1px;margin:0;border:1px solid #ddd}.sq_quote_text{margin-left:62px;line-height:1.5em;padding-left:21px;background:url(../img/front/avatar-margin.png) left top no-repeat;min-height:52px;font-family:"Georgia",serif;font-size:16px}a.sq_local,a.sq_news,a.sq_wiki{display:block;font-family:"Helvetica",sans-serif;font-weight:700;color:#0074b7;font-size:14px;line-height:1.4em;margin-bottom:5px;text-decoration:none}.sq_local_text,.sq_news_text,.sq_wiki_text{font-size:12px;color:#333}#tinymce mark{background:#fdffc7!important;color:#383838!important;padding:0 5px}#tinymce mark.mark_counter:after
|
1 |
+
.sq_blog_content,.sq_local_content,.sq_quote_content,.sq_wiki_content{position:relative;clear:both;background:#fff;font-size:14px;color:#333;max-width:500px;margin:5px auto;padding:13px;-webkit-transition:.1s border-color;-moz-transition:.1s border-color;transition:.1s border-color;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;border:1px solid #ddd;-webkit-box-shadow:0 1px 0 #ddd;-moz-box-shadow:0 1px 0 #ddd;box-shadow:0 1px 0 #ddd}.sq_blog_content p,.sq_local_content p,.sq_quote_content p,.sq_wiki_content p{margin:0!important;padding:0!important;line-height:18px!important;font-size:12px!important}.sq_author_avatar{display:block;float:left;width:48px;height:48px;padding:1px;margin:0;border:1px solid #ddd}.sq_quote_text{margin-left:62px;line-height:1.5em;padding-left:21px;background:url(../img/front/avatar-margin.png) left top no-repeat;min-height:52px;font-family:"Georgia",serif;font-size:16px}a.sq_local,a.sq_news,a.sq_wiki{display:block;font-family:"Helvetica",sans-serif;font-weight:700;color:#0074b7;font-size:14px;line-height:1.4em;margin-bottom:5px;text-decoration:none}.sq_local_text,.sq_news_text,.sq_wiki_text{font-size:12px;color:#333}#tinymce mark{background:#fdffc7!important;color:#383838!important;padding:0 5px}#tinymce mark.mark_counter:after{content:attr(data-cnt);color:gray;font-size:70%;line-height:50%;vertical-align:baseline;position:relative;top:-9px}#content .sq_highlight,#content mark{background:0 0!important}#content .sq_highlight .sq_highlight_cnt,#content mark.mark_counter{display:none!important}
|
view/assets/css/fullwidth.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.squirrly-seo-settings #sq_wrap{position:absolute!important;width:100%!important;min-height:100%;height:100%;background:#fff!important;top:0!important;left:0!important;bottom:0!important;right:0!important;margin:0!important;padding:0}.squirrly-seo-settings #wpbody,.squirrly-seo-settings #wpbody-content,.squirrly-seo-settings #wpcontent,.squirrly-seo-settings #wpwrap{
|
1 |
+
.squirrly-seo-settings #sq_wrap{position:absolute!important;width:100%!important;min-height:100%;height:100%;background:#fff!important;top:0!important;left:0!important;bottom:0!important;right:0!important;margin:0!important;padding:0}.squirrly-seo-settings #wpbody,.squirrly-seo-settings #wpbody-content,.squirrly-seo-settings #wpcontent,.squirrly-seo-settings #wpwrap{min-height:100%;width:100%;position:relative}.squirrly-seo-settings #wpwrap #wpcontent{padding:0!important;margin:0!important;top:0!important;left:0!important;width:100%!important}.squirrly-seo-settings #wpfooter,.squirrly-seo-settings #wpwrap>div:not(#wpcontent):not(#adminmenumain),.squirrly-seo-settings .wp-adminify,.squirrly-seo-settings .wp-adminify--user--wrapper{display:none!important}.wp-adminify #wpwrap #sq_wrap{padding-top:0!important}body.wp-adminify{margin-top:-33px!important}html[uip-toolbar=true]{padding-top:37px}html[uip-toolbar=true] .squirrly-seo-settings #uip-toolbar{left:0;padding:2px 5px;height:37px}@media (max-width:782px){.squirrly-seo-settings .wp-responsive-open #wpbody{right:-11.95em!important}}@media (min-width:782px){.squirrly-seo-settings #wpwrap>div#adminmenumain{display:none!important}}.squirrly-seo-settings #sq_wrap #sq_content{min-height:calc(100% - 50px)}#sq_wrap .sq_help_toolbar{right:64px!important}#sq_wrap .sq_icons_content{padding:30px 20px!important}.squirrly-seo-settings #sq_wrap #sq_btn_toolbar_close{display:block}
|
view/assets/css/global.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@import url(https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap);@-webkit-keyframes play{0%{background-position:0}to{background-position:-400px}}@-moz-keyframes play{0%{background-position:0}to{background-position:-400px}}@-ms-keyframes play{0%{background-position:0}to{background-position:-400px}}@-o-keyframes play{0%{background-position:0}to{background-position:-400px}}@keyframes play{0%{background-position:0}to{background-position:-400px}}@media (prefers-reduced-motion:reduce){.fade{transition:none}}svg>g>g:last-child{pointer-events:none}.squirrly-seo-settings #wpwrap>div:not(#wpcontent):not(#adminmenumain):not(#wpfooter){display:none!important}.squirrly-seo-settings #dolly,.squirrly-seo-settings #supsystic-admin-tour,.squirrly-seo-settings #update-nag,.squirrly-seo-settings #wpfooter,.squirrly-seo-settings #wpwrap .notice:not(.sq_notice),.squirrly-seo-settings .aioseo-menu-notification-counter,.squirrly-seo-settings .analytify-review-notice,.squirrly-seo-settings .et-core-modal,.squirrly-seo-settings .imagify-welcome,.squirrly-seo-settings .mainwp-submenu-wrapper,.squirrly-seo-settings .notice-error,.squirrly-seo-settings .notice-warning,.squirrly-seo-settings .notice:not(.sq_notice),.squirrly-seo-settings .poopy_affiliates,.squirrly-seo-settings .screen-meta-toggle,.squirrly-seo-settings .show-settings,.squirrly-seo-settings .thunk-notice,.squirrly-seo-settings .toolbar-header,.squirrly-seo-settings .update-nag,.squirrly-seo-settings .updated,.squirrly-seo-settings .wpforms-menu-notification-counter,.squirrly-seo-settings div.error,.squirrly-seo-settings div.fs-notice.promotion,.squirrly-seo-settings div.fs-notice.success,.squirrly-seo-settings div.fs-notice.updated{display:none!important;position:absolute!important;top:-1000px!important;height:0!important}.squirrly-seo-settings #wpbody-content{float:none!important;padding:0!important}.squirrly-seo-settings #wpwrap{background:#f1f1f1}#sq_wrap.sq_overview .sq_offer{width:auto;margin:15px 20px!important}.squirrly-seo-settings #wpcontent{padding:0}.squirrly-seo-settings #wpcontent .bg-light{background-color:#f1f1f1!important}.squirrly-seo-settings #wpcontent .bg-briefcase,.squirrly-seo-settings #wpcontent .bg-briefcase td{background-color:#e1f5e3!important}.squirrly-seo-settings #wpcontent .bg-briefcase:hover td{background-color:#d1e7d4!important}.squirrly-seo-settings #wpcontent .content{min-width:600px;max-width:1020px;margin:auto}.squirrly-seo-settings #wpcontent h3{font-size:1.5rem;font-weight:400;line-height:50px}.squirrly-seo-settings #wpcontent .card{margin-top:20px;max-width:100%}.squirrly-seo-settings #wpcontent .card .card-title{margin:0;color:#4f1440;font-weight:400}.squirrly-seo-settings #wpcontent .sq_deactivated,body.squirrly-seo-settings.mobile.modal-open #wpwrap{position:relative}.squirrly-seo-settings #wpcontent .sq_deactivated:before{content:" ";position:absolute;height:calc(100% + 20px);width:100%;background:#f1f1f1;opacity:.7;top:-10px;z-index:998;cursor:pointer;border-radius:6px}.squirrly-seo-settings #wpcontent .sq_deactivated_label{position:absolute!important;z-index:999;right:0}.sq_knowledge ul li{padding-left:10px!important;padding-right:10px!important}.sq_knowledge ul li a{font-size:.875rem!important}.sq_fixed{position:fixed;z-index:100;top:32px;left:0;margin:0;border-top:2px solid #fff;border-bottom:2px solid #fff}.sq_alert{top:32px!important;font-size:.875rem;z-index:999999;cursor:pointer}.sq_notice{top:28px;text-align:center;width:100%}.sq_notice.sq_notice>div{display:block;margin:0!important;width:100%!important;line-height:40px;background-color:#fafad2}.sq_notice.sq_notice>div.sq_success{background-color:#6200ee!important}.sq_notices{font-size:.875rem;color:#555}.sq_error,.sq_success{text-align:center;font-size:.875rem;font-weight:700}.sq_error{background-color:#bf4733!important;color:#fff!important}.sq_success{background-color:#6200ee!important;line-height:30px;color:#fff}.sq_success a{color:#4f47be;text-decoration:none}.sq_deactivated{opacity:.3}button.hide_advanced,button.show_advanced{color:#2183d6!important}body.squirrly-seo-settings{min-width:640px}#sq_assistant_modal,#sq_previewurl_modal,#sq_wrap{font-family:"Noto Sans","Open Sans",Arial,sans-serif;font-style:normal;font-weight:400;font-size:.875rem;line-height:30px}#sq_wrap a:not(.btn){color:#6200ee}#sq_wrap h3,#sq_wrap h5{font-size:1.5rem;font-weight:600!important}#sq_wrap h4{font-size:1.12rem;font-weight:700!important}#sq_wrap h5{font-size:1.05rem;line-height:30px}#sq_wrap .small{font-size:.83rem;line-height:20px}#sq_wrap .sq_date{font-size:.83rem;line-height:30px}#sq_wrap .row>div.input-group{display:flex!important}#sq_wrap .row{float:none!important;width:auto!important}#sq_wrap .btn{font-weight:700;font-size:.875rem;letter-spacing:.02rem;line-height:30px;border-radius:0;z-index:1}#sq_wrap .btn-sm{font-size:.8rem}#sq_wrap a.btn-success,#sq_wrap button.btn-success{color:#fff;background-color:#6200ee!important;border-color:transparent}#sq_wrap .btn-warning{background-color:#f2ca4c!important;border-color:transparent}#sq_wrap .btn-primary,#sq_wrap .btn-warning:hover{background-color:#e6be4b!important;border-color:transparent}#sq_wrap .btn-primary{background-color:#6200ee!important}#sq_wrap .btn-primary:active,#sq_wrap .btn-primary:focus,#sq_wrap .btn-primary:hover{background-color:#6200ee!important}#sq_wrap .btn-social{background-color:#e4eef3!important;border-color:transparent}#sq_wrap .sq_back_button{top:-100px;right:0;position:absolute}#sq_wrap #sq_audit .sq_back_button{top:-50px}#sq_wrap a.btn:focus{color:#fff}.custom-checkbox .custom-control-input:checked~.custom-control-label::before{background-color:#6200ee!important}#sq_wrap .input-group>button.btn,#sq_wrap .input-group>input,#sq_wrap .input-group>select{max-height:48px;height:48px}#sq_wrap .bg-title{margin:2px;background-color:#f8f9fa!important;color:#1c3c50!important}#sq_wrap .text-primary{color:#6200ee!important}#sq_wrap .text-info{color:#1c3c50!important}#sq_wrap .bg-light{background-color:#fdfdfd!important}#sq_wrap .bg-primary{background-color:#1c3c50!important;color:#fff!important}#sq_wrap .bg-warning{background-color:#f7681a!important;color:#fff!important}#sq_wrap .progress-bar{background-color:#6200ee}#sq_wrap .sq_imageselect{font-size:.875rem}#sq_wrap a.btn-success:active,#sq_wrap a.btn-success:hover,#sq_wrap button.btn-success:active,#sq_wrap button.btn-success:hover{color:#fff;background-color:#6200ee!important;border-color:transparent}#sq_wrap .sq-switch input:checked+label::before{background-color:#6200ee}#sq_wrap table.dataTable{border-collapse:collapse!important}#sq_wrap .dataTables_length{float:left;display:inline-block;margin:11px 15px}#sq_wrap .dataTables_length select{min-width:auto;height:20px;line-height:initial;padding:0 5px}#sq_wrap table.table{box-shadow:0 0 5px -2px #999}#sq_wrap #sq_blockseoissues table.table{box-shadow:none}#sq_wrap .table thead th{white-space:nowrap!important;background:#1c3c50;color:#fff;text-shadow:none}#sq_wrap .table-hover tbody tr:hover{background-color:rgb(252 251 255)!important}#sq_wrap .table-striped tbody tr:nth-of-type(odd){background-color:#fff}#sq_wrap .table-striped tbody tr:nth-of-type(even){background-color:#fbfbfb}#sq_wrap .table tbody td,#sq_wrap select{vertical-align:middle}#sq_wrap .table tbody tr.bg-selected td{background-color:#fbf0e0}#sq_wrap .table tbody tr.bg-selected:hover td{background-color:#f9e9d3}#sq_wrap .text-link{color:#2680b4!important}#sq_wrap .sq_row{position:relative;flex:1 1 auto}#sq_wrap .sq_col_side{flex:0 0 270px}#sq_wrap .sq_col_side .card{border:0!important;box-shadow:none!important}.dropdown-item.active,.dropdown-item:active{background-color:transparent}#sq_wrap h4 .fa:before{margin-right:3px}#sq_wrap select{padding:.7em .75em;line-height:1.5;border-radius:0;font-size:.875rem;height:45px;min-width:200px;max-width:100%;max-height:48px;z-index:1}#sq_wrap select.bg-input{padding:.5em 1em;font-size:1rem;line-height:20px;border:0;background-color:#fff}#sq_wrap select::selection{color:#1d1f24}#sq_wrap input[type=text]:not(.wp-color-picker),#sq_wrap textarea{padding:.28em .75em;border-radius:unset}.sq_icons_content{float:left;background-color:#fffcfc;background-image:linear-gradient(90deg,#e6ecf1,#f8f9fa);margin:-7px;height:100%;min-height:121px;min-width:100px}.sq_icons{float:left;width:40px;height:40px;cursor:pointer}.sq_icons_small{display:block;float:left;margin:0 10px 0 0;height:30px;width:30px}#sq_wrap .page-item.active .page-link{background-color:#bde2f1;border-color:transparent}#sq_preloader{position:absolute;height:100%;width:100%;z-index:1000;background-color:#fff!important;opacity:.5}.sq_loading{height:60px;background:url(../img/loading.gif) no-repeat center!important}.sq_minloading{position:relative;opacity:.5}.sq_minloading:after{position:absolute!important;right:calc(50% - 10px)!important;top:calc(50% - 8px)!important;display:block!important;float:right!important;line-height:30px!important;content:""!important;padding:0!important;margin:0 0 0 5px!important;height:16px!important;width:20px!important;background:url(../img/minloading.png) no-repeat!important;-webkit-animation:play 1s steps(10) infinite;-moz-animation:play 1s steps(10) infinite;-o-animation:play 1s steps(10) infinite;animation:play 1s steps(10) infinite}#sq_wrap .sq_sm_menu{width:24px;position:relative}#sq_wrap .sq_sm_menu .fa-ellipsis-v{font-size:1.2rem!important;color:#6200ee}#sq_wrap .sq_sm_menu .sm_icon_button{display:inline-block;position:relative;width:24px;height:24px;box-sizing:border-box;font-size:1.2rem;color:#545454;text-align:center;cursor:pointer}#sq_wrap .dataTables_wrapper .dataTables_filter{margin-top:-40px}#sq_wrap .dataTables_wrapper{padding:0!important;margin:0!important}#sq_wrap .dataTables_wrapper .col-sm-12{padding:0 10px!important}.bootstrap-select.dropdown button{background-color:#fff;padding:13px;border-radius:0;border:0}#sq_wrap table tr div.sq_sm_menu:hover .sq_sm_dropdown,#sq_wrap table tr:hover .sq_sm_menu{display:block}#sq_wrap .dataTables_paginate .pagination{margin-top:-35px}#sq_wrap .pagination .nav-links a:not(.next),#sq_wrap .pagination li.page-item a.page-link{background:0 0;border:0;padding:.5rem .75rem;margin:0}#sq_wrap .pagination .page-numbers.current,#sq_wrap .pagination li.page-item.active a.page-link{background-color:#6200ee;color:#fff;border:0;padding:8px 12px;margin:0}#sq_wrap .sq_sm_menu .sq_sm_dropdown{display:none;background:#fff;position:absolute;right:20px;top:0;z-index:100;min-width:240px;box-shadow:0 0 10px 1px #999}#sq_wrap .sq_sm_menu .sq_sm_dropdown_center{top:-50px}#sq_wrap .sq_sm_menu .sq_sm_dropdown li a:hover,#sq_wrap .sq_sm_menu .sq_sm_dropdown li:hover{color:#6200ee!important;text-decoration:none!important}#sq_wrap .sq_sm_menu .sq_sm_dropdown li a{color:#575863!important;font-size:.875rem;cursor:pointer}#sq_wrap .sq_sm_menu .sq_icons_small{display:inline-block;margin:0 5px;height:17px;width:17px;vertical-align:middle;line-height:14px;float:none}#sq_wrap .sq_sm_menu .sq_sm_dropdown li,#sq_wrap .sq_sm_menu .sq_sm_dropdown li button{font-size:.875rem;cursor:pointer}#sq_wrap .sq_help_toolbar{position:absolute;right:15px}#sq_wrap #sq_btn_toolbar_close{display:none}#sq_wrap .sq_help_toolbar>i{font-size:1.5rem!important;color:#dfebf5;cursor:pointer}#sq_wrap .sq_help_question i{font-size:1.5rem!important;margin:5px}.fa-book-open:before{content:"\f518"}#sq_wrap .sq_search_close{position:relative;right:20px;margin-left:-10px;top:26%;height:20px;line-height:20px}@media (max-width:900px){#sq_wrap .sq_sticky{top:50px}.col,.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9{max-width:100%}#sq_assistant_modal .modal-dialog,#sq_wrap .modal-dialog{margin:7% auto;max-width:700px}#sq_wrap .sq_col_side{flex:0 0 45px}#sq_wrap .sq_col_side .card-title,#sq_wrap .sq_col_side .sq_assistant a,#sq_wrap .sq_col_side .sq_assistant div,#sq_wrap .sq_col_side .sq_assistant li button,#sq_wrap .sq_col_side .sq_assistant li h4,#sq_wrap .sq_col_side .sq_assistant li table,#sq_wrap .sq_col_side .sq_assistant li.sq_save_ajax,#sq_wrap .sq_col_side .sq_assistant li.sq_task div{display:none}#sq_wrap .sq_col_side:hover{width:270px!important;position:fixed;top:33px;right:0;bottom:0;height:100%;overflow-y:auto;z-index:2}#sq_wrap .sq_col_side:hover .card-title,#sq_wrap .sq_col_side:hover .sq_assistant a,#sq_wrap .sq_col_side:hover .sq_assistant div,#sq_wrap .sq_col_side:hover .sq_assistant li button,#sq_wrap .sq_col_side:hover .sq_assistant li h4,#sq_wrap .sq_col_side:hover .sq_assistant li table,#sq_wrap .sq_col_side:hover .sq_assistant li.sq_save_ajax,#sq_wrap .sq_col_side:hover .sq_assistant li.sq_task div{display:block}#sq_wrap .sq_flex.px-5{padding-left:1.3rem!important;padding-right:1.3rem!important}}@media (max-width:780px){#sq_wrap .sq_col_side:hover{top:40px}}.flexcroll{scrollbar-face-color:#367cd2;scrollbar-shadow-color:#fff;scrollbar-highlight-color:#fff;scrollbar-3dlight-color:#fff;scrollbar-darkshadow-color:#fff;scrollbar-track-color:#fff;scrollbar-arrow-color:#fff}.flexcroll::-webkit-scrollbar{width:12px}.flexcroll::-webkit-scrollbar-track{-webkit-border-radius:2px;border-radius:2px}.flexcroll::-webkit-scrollbar-thumb{-webkit-border-radius:2px;border-radius:2px;background:rgba(171,171,171,.8)}.form-group input.form-control,.form-group select.form-control,.form-group textarea.form-control{width:100%}.tooltip .arrow{left:auto!important;margin-left:inherit!important;bottom:inherit!important;z-index:inherit!important}.tooltip .arrow:after{content:""}.sq_features .sq_feature{background-color:#dfdfdf}.sq_features .sq_feature.active{background-color:#fff}.sq_features .sq_feature.auto{background-color:#fcfffd}.sq_features .sq-switch input+label::before{background-color:#c8bfba}.sq_tips ul{list-style:initial}.sq_tips ul li{color:#7a8d8e;line-height:20px}.fade.in{opacity:1}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-backdrop .fade .in,.modal-backdrop.fade{opacity:.5!important}
|
1 |
+
@import url(https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap);@-webkit-keyframes play{0%{background-position:0}to{background-position:-400px}}@-moz-keyframes play{0%{background-position:0}to{background-position:-400px}}@-ms-keyframes play{0%{background-position:0}to{background-position:-400px}}@-o-keyframes play{0%{background-position:0}to{background-position:-400px}}@keyframes play{0%{background-position:0}to{background-position:-400px}}@media (prefers-reduced-motion:reduce){.fade{transition:none}}svg>g>g:last-child{pointer-events:none}.squirrly-seo-settings #wpwrap>div:not(#wpcontent):not(#adminmenumain):not(#wpfooter){display:none!important}.squirrly-seo-settings #dolly,.squirrly-seo-settings #supsystic-admin-tour,.squirrly-seo-settings #update-nag,.squirrly-seo-settings #wpfooter,.squirrly-seo-settings #wpwrap .notice:not(.sq_notice),.squirrly-seo-settings .aioseo-menu-notification-counter,.squirrly-seo-settings .analytify-review-notice,.squirrly-seo-settings .et-core-modal,.squirrly-seo-settings .imagify-welcome,.squirrly-seo-settings .mainwp-submenu-wrapper,.squirrly-seo-settings .notice-error,.squirrly-seo-settings .notice-warning,.squirrly-seo-settings .notice:not(.sq_notice),.squirrly-seo-settings .poopy_affiliates,.squirrly-seo-settings .screen-meta-toggle,.squirrly-seo-settings .show-settings,.squirrly-seo-settings .thunk-notice,.squirrly-seo-settings .toolbar-header,.squirrly-seo-settings .update-nag,.squirrly-seo-settings .updated,.squirrly-seo-settings .wpforms-menu-notification-counter,.squirrly-seo-settings div.error,.squirrly-seo-settings div.fs-notice.promotion,.squirrly-seo-settings div.fs-notice.success,.squirrly-seo-settings div.fs-notice.updated{display:none!important;position:absolute!important;top:-1000px!important;height:0!important}.wp-adminify #wpwrap #wpbody-content{margin-top:0!important}.wp-adminify #wpwrap #sq_wrap{padding-top:77px}.squirrly-seo-settings #wpbody-content{float:none!important;padding:0!important}.squirrly-seo-settings #wpwrap{background:#f1f1f1}#sq_wrap.sq_overview .sq_offer{width:auto;margin:15px 20px!important}.squirrly-seo-settings #wpcontent{padding:0}.squirrly-seo-settings #wpcontent .bg-light{background-color:#f1f1f1!important}.squirrly-seo-settings #wpcontent .bg-briefcase,.squirrly-seo-settings #wpcontent .bg-briefcase td{background-color:#e1f5e3!important}.squirrly-seo-settings #wpcontent .bg-briefcase:hover td{background-color:#d1e7d4!important}.squirrly-seo-settings #wpcontent .content{min-width:600px;max-width:1020px;margin:auto}.squirrly-seo-settings #wpcontent h3{font-size:1.5rem;font-weight:400;line-height:50px}.squirrly-seo-settings #wpcontent .card{margin-top:20px;max-width:100%}.squirrly-seo-settings #wpcontent .card .card-title{margin:0;color:#4f1440;font-weight:400}.squirrly-seo-settings #wpcontent .sq_deactivated,body.squirrly-seo-settings.mobile.modal-open #wpwrap{position:relative}.squirrly-seo-settings #wpcontent .sq_deactivated:before{content:" ";position:absolute;height:calc(100% + 20px);width:100%;background:#f1f1f1;opacity:.7;top:-10px;z-index:998;cursor:pointer;border-radius:6px}.squirrly-seo-settings #wpcontent .sq_deactivated_label{position:absolute!important;z-index:999;right:0}.sq_knowledge ul li{padding-left:10px!important;padding-right:10px!important}.sq_knowledge ul li a{font-size:.875rem!important}.sq_fixed{position:fixed;z-index:100;top:32px;left:0;margin:0;border-top:2px solid #fff;border-bottom:2px solid #fff}.sq_alert{top:32px!important;font-size:.875rem;z-index:999999;cursor:pointer}.sq_notice{top:28px;text-align:center;width:100%}.sq_notice.sq_notice>div{display:block;margin:0!important;width:100%!important;line-height:40px;background-color:#fafad2}.sq_notice.sq_notice>div.sq_success{background-color:#6200ee!important}.sq_notices{font-size:.875rem;color:#555}.sq_error,.sq_success{text-align:center;font-size:.875rem;font-weight:700}.sq_error{background-color:#bf4733!important;color:#fff!important}.sq_success{background-color:#6200ee!important;line-height:30px;color:#fff}.sq_success a{color:#4f47be;text-decoration:none}.sq_deactivated{opacity:.3}button.hide_advanced,button.show_advanced{color:#2183d6!important}body.squirrly-seo-settings{min-width:640px}#sq_assistant_modal,#sq_previewurl_modal,#sq_wrap{font-family:"Noto Sans","Open Sans",Arial,sans-serif;font-style:normal;font-weight:400;font-size:.875rem;line-height:30px}#sq_wrap a:not(.btn){color:#6200ee}#sq_wrap h3,#sq_wrap h5{font-size:1.5rem;font-weight:600!important}#sq_wrap h4{font-size:1.12rem;font-weight:700!important}#sq_wrap h5{font-size:1.05rem;line-height:30px}#sq_wrap .small{font-size:.83rem;line-height:20px}#sq_wrap .sq_date{font-size:.83rem;line-height:30px}#sq_wrap .row>div.input-group{display:flex!important}#sq_wrap .row{float:none!important;width:auto!important}#sq_wrap .btn{font-weight:700;font-size:.875rem;letter-spacing:.02rem;line-height:30px;border-radius:0;z-index:1}#sq_wrap .btn-sm{font-size:.8rem}#sq_wrap a.btn-success,#sq_wrap button.btn-success{color:#fff;background-color:#6200ee!important;border-color:transparent}#sq_wrap .btn-warning{background-color:#f2ca4c!important;border-color:transparent}#sq_wrap .btn-primary,#sq_wrap .btn-warning:hover{background-color:#e6be4b!important;border-color:transparent}#sq_wrap .btn-primary{background-color:#6200ee!important}#sq_wrap .btn-primary:active,#sq_wrap .btn-primary:focus,#sq_wrap .btn-primary:hover{background-color:#6200ee!important}#sq_wrap .btn-social{background-color:#e4eef3!important;border-color:transparent}#sq_wrap .sq_back_button{top:-100px;right:0;position:absolute}#sq_wrap #sq_audit .sq_back_button{top:-50px}#sq_wrap a.btn:focus{color:#fff}.custom-checkbox .custom-control-input:checked~.custom-control-label::before{background-color:#6200ee!important}#sq_wrap .input-group>button.btn,#sq_wrap .input-group>input,#sq_wrap .input-group>select{max-height:48px;height:48px}#sq_wrap .bg-title{margin:2px;background-color:#f8f9fa!important;color:#1c3c50!important}#sq_wrap .text-primary{color:#6200ee!important}#sq_wrap .text-info{color:#1c3c50!important}#sq_wrap .bg-light{background-color:#f1f1f1!important}#sq_wrap .bg-primary{background-color:#1c3c50!important;color:#fff!important}#sq_wrap .bg-warning{background-color:#f7681a!important;color:#fff!important}#sq_wrap .progress-bar{background-color:#6200ee}#sq_wrap .sq_imageselect{font-size:.875rem}#sq_wrap a.btn-success:active,#sq_wrap a.btn-success:hover,#sq_wrap button.btn-success:active,#sq_wrap button.btn-success:hover{color:#fff;background-color:#6200ee!important;border-color:transparent}#sq_wrap .sq-switch input:checked+label::before{background-color:#6200ee}#sq_wrap table.dataTable{border-collapse:collapse!important}#sq_wrap .dataTables_length{float:left;display:inline-block;margin:11px 15px}#sq_wrap .dataTables_length select{min-width:auto;height:20px;line-height:initial;padding:0 5px}#sq_wrap table.table{box-shadow:0 0 5px -2px #999}#sq_wrap #sq_blockseoissues table.table{box-shadow:none}#sq_wrap .table thead th{white-space:nowrap!important;background:#1c3c50;color:#fff;text-shadow:none}#sq_wrap .table-hover tbody tr:hover{background-color:rgb(252 251 255)!important}#sq_wrap .table-striped tbody tr:nth-of-type(odd){background-color:#fff}#sq_wrap .table-striped tbody tr:nth-of-type(even){background-color:#fbfbfb}#sq_wrap .table tbody td,#sq_wrap select{vertical-align:middle}#sq_wrap .table tbody tr.bg-selected td{background-color:#fbf0e0}#sq_wrap .table tbody tr.bg-selected:hover td{background-color:#f9e9d3}#sq_wrap .text-link{color:#2680b4!important}#sq_wrap .sq_row{position:relative;flex:1 1 auto}#sq_wrap .sq_col_side{flex:0 0 270px}#sq_wrap .sq_col_side .card{border:0!important;box-shadow:none!important}.dropdown-item.active,.dropdown-item:active{background-color:transparent}#sq_wrap h4 .fa:before{margin-right:3px}#sq_wrap select{padding:.7em .75em;line-height:1.5;border-radius:0;font-size:.875rem;height:45px;min-width:200px;max-width:100%;max-height:48px;z-index:1}#sq_wrap select.bg-input{padding:.5em 1em;font-size:1rem;line-height:20px;border:0;background-color:#fff}#sq_wrap select::selection{color:#1d1f24}#sq_wrap input[type=text]:not(.wp-color-picker),#sq_wrap textarea{padding:.28em .75em;border-radius:unset}.sq_icons_content{float:left;background-color:#fffcfc;background-image:linear-gradient(90deg,#e6ecf1,#f8f9fa);margin:-7px;height:100%;min-height:121px;min-width:100px}.sq_icons{float:left;width:40px;height:40px;cursor:pointer}.sq_icons_small{display:block;float:left;margin:0 10px 0 0;height:30px;width:30px}#sq_wrap .page-item.active .page-link{background-color:#bde2f1;border-color:transparent}#sq_preloader{position:absolute;height:100%;width:100%;z-index:1000;background-color:#fff!important;opacity:.5}.sq_loading{height:60px;background:url(../img/loading.gif) no-repeat center!important}.sq_minloading{position:relative;opacity:.5}.sq_minloading:after{position:absolute!important;right:calc(50% - 10px)!important;top:calc(50% - 8px)!important;display:block!important;float:right!important;line-height:30px!important;content:""!important;padding:0!important;margin:0 0 0 5px!important;height:16px!important;width:20px!important;background:url(../img/minloading.png) no-repeat!important;-webkit-animation:play 1s steps(10) infinite;-moz-animation:play 1s steps(10) infinite;-o-animation:play 1s steps(10) infinite;animation:play 1s steps(10) infinite}#sq_wrap .sq_sm_menu{width:24px;position:relative}#sq_wrap .sq_sm_menu .fa-ellipsis-v{font-size:1.2rem!important;color:#6200ee}#sq_wrap .sq_sm_menu .sm_icon_button{display:inline-block;position:relative;width:24px;height:24px;box-sizing:border-box;font-size:1.2rem;color:#545454;text-align:center;cursor:pointer}#sq_wrap .dataTables_wrapper .dataTables_filter{margin-top:-40px}#sq_wrap .dataTables_wrapper{padding:0!important;margin:0!important}#sq_wrap .dataTables_wrapper .col-sm-12{padding:0 10px!important}.bootstrap-select.dropdown button{background-color:#fff;padding:13px;border-radius:0;border:0}#sq_wrap table tr div.sq_sm_menu:hover .sq_sm_dropdown,#sq_wrap table tr:hover .sq_sm_menu{display:block}#sq_wrap .dataTables_paginate .pagination{margin-top:-35px}#sq_wrap .pagination .nav-links a:not(.next),#sq_wrap .pagination li.page-item a.page-link{background:0 0;border:0;padding:.5rem .75rem;margin:0}#sq_wrap .pagination .page-numbers.current,#sq_wrap .pagination li.page-item.active a.page-link{background-color:#6200ee;color:#fff;border:0;padding:8px 12px;margin:0}#sq_wrap .sq_sm_menu .sq_sm_dropdown{display:none;background:#fff;position:absolute;right:20px;top:0;z-index:100;min-width:240px;box-shadow:0 0 10px 1px #999}#sq_wrap .sq_sm_menu .sq_sm_dropdown_center{top:-50px}#sq_wrap .sq_sm_menu .sq_sm_dropdown li a:hover,#sq_wrap .sq_sm_menu .sq_sm_dropdown li:hover{color:#6200ee!important;text-decoration:none!important}#sq_wrap .sq_sm_menu .sq_sm_dropdown li a{color:#575863!important;font-size:.875rem;cursor:pointer}#sq_wrap .sq_sm_menu .sq_icons_small{display:inline-block;margin:0 5px;height:17px;width:17px;vertical-align:middle;line-height:14px;float:none}#sq_wrap .sq_sm_menu .sq_sm_dropdown li,#sq_wrap .sq_sm_menu .sq_sm_dropdown li button{font-size:.875rem;cursor:pointer}#sq_wrap .sq_help_toolbar{position:absolute;right:15px}#sq_wrap #sq_btn_toolbar_close{display:none}#sq_wrap .sq_help_toolbar>i{font-size:1.5rem!important;color:#dfebf5;cursor:pointer}#sq_wrap .sq_help_question i{font-size:1.5rem!important;margin:5px}.fa-book-open:before{content:"\f518"}#sq_wrap .sq_search_close{position:relative;right:20px;margin-left:-10px;top:26%;height:20px;line-height:20px}@media (max-width:900px){#sq_wrap .sq_sticky{top:50px}.col,.col-1,.col-10,.col-11,.col-12,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9{max-width:100%}#sq_assistant_modal .modal-dialog,#sq_wrap .modal-dialog{margin:7% auto;max-width:700px}#sq_wrap .sq_col_side{flex:0 0 45px}#sq_wrap .sq_col_side .card-title,#sq_wrap .sq_col_side .sq_assistant a,#sq_wrap .sq_col_side .sq_assistant div,#sq_wrap .sq_col_side .sq_assistant li button,#sq_wrap .sq_col_side .sq_assistant li h4,#sq_wrap .sq_col_side .sq_assistant li table,#sq_wrap .sq_col_side .sq_assistant li.sq_save_ajax,#sq_wrap .sq_col_side .sq_assistant li.sq_task div{display:none}#sq_wrap .sq_col_side:hover{width:270px!important;position:fixed;top:33px;right:0;bottom:0;height:100%;overflow-y:auto;z-index:2}#sq_wrap .sq_col_side:hover .card-title,#sq_wrap .sq_col_side:hover .sq_assistant a,#sq_wrap .sq_col_side:hover .sq_assistant div,#sq_wrap .sq_col_side:hover .sq_assistant li button,#sq_wrap .sq_col_side:hover .sq_assistant li h4,#sq_wrap .sq_col_side:hover .sq_assistant li table,#sq_wrap .sq_col_side:hover .sq_assistant li.sq_save_ajax,#sq_wrap .sq_col_side:hover .sq_assistant li.sq_task div{display:block}#sq_wrap .sq_flex.px-5{padding-left:1.3rem!important;padding-right:1.3rem!important}}@media (max-width:780px){#sq_wrap .sq_col_side:hover{top:40px}}.flexcroll{scrollbar-face-color:#367cd2;scrollbar-shadow-color:#fff;scrollbar-highlight-color:#fff;scrollbar-3dlight-color:#fff;scrollbar-darkshadow-color:#fff;scrollbar-track-color:#fff;scrollbar-arrow-color:#fff}.flexcroll::-webkit-scrollbar{width:12px}.flexcroll::-webkit-scrollbar-track{-webkit-border-radius:2px;border-radius:2px}.flexcroll::-webkit-scrollbar-thumb{-webkit-border-radius:2px;border-radius:2px;background:rgba(171,171,171,.8)}.form-group input.form-control,.form-group select.form-control,.form-group textarea.form-control{width:100%}.tooltip .arrow{left:auto!important;margin-left:inherit!important;bottom:inherit!important;z-index:inherit!important}.tooltip .arrow:after{content:""}.sq_features .sq_feature{background-color:#f1f1f1}.sq_features .sq_feature.active{background-color:#fff!important}.sq_features .sq-switch input+label::before{background-color:#c8bfba}.sq_tips ul{list-style:initial}.sq_tips ul li{color:#7a8d8e;line-height:20px}.fade.in{opacity:1}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-backdrop .fade .in,.modal-backdrop.fade{opacity:.5!important}
|
view/assets/css/post.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@import url(https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap);@-ms-keyframes play{0%{background-position:0}to{background-position:-400px}}@-o-keyframes play{0%{background-position:0}to{background-position:-400px}}@keyframes play{0%{background-position:0}to{background-position:-400px}}.sq_minloading{position:relative;opacity:.5;min-height:40px}.sq_loading{height:60px;background:url(../img/loading.gif) no-repeat center!important}.sq_minloading:before{position:absolute!important;right:calc(50% - 10px)!important;top:calc(50% - 8px)!important;display:block!important;float:right!important;line-height:30px!important;content:""!important;padding:0!important;margin:0 0 0 5px!important;height:16px!important;width:20px!important;background:url(../img/minloading.png) no-repeat!important;-webkit-animation:play 1s steps(10) infinite;-moz-animation:play 1s steps(10) infinite;-o-animation:play 1s steps(10) infinite;animation:play 1s steps(10) infinite}#sq_preloading,.sq_sla_connect_notice{font-size:.875rem;line-height:24px;text-align:center}#sq_preloading{color:gray}.sq_sla_connect_notice{font-weight:600;margin:0 auto 10px}.sq_sla_connect_notice_content{text-align:center;margin:6px auto}#postsquirrly .sq_frontend_noapi a,.sq_sla_connect_notice a{text-decoration:none}#postsquirrly .sq_frontend_noapi_inner img,.sq_sla_connect_notice_content a img{width:277px}#postsquirrly *,#sq_blocksnippet *{box-sizing:border-box}#postsquirrly{color:#000}#postsquirrly a:not(.btn,.sq_button){color:#6200ee}#sq_blocksnippet.sq_sticky:not(.closed) .inside{display:block!important}#sq_blocksnippet.sq_sticky.closed .inside{display:none!important}#postsquirrly.sq_sticky{background:0 0;border:0;margin:0;-moz-box-shadow:none;-webkit-box-shadow:none}#postsquirrly:not(.sq_sticky){padding:0;border:1px solid #ddd}#postsquirrly :not(.fa,.fa-solid,.fa-brands),#sq_blog_preview *{font-family:"Noto Sans","Open Sans",Arial,sans-serif;font-size:.875rem;line-height:20px}#postsquirrly.sq_sticky .postbox-header,.edit-post-sidebar #sq_options{display:none}#postsquirrly.sq_sticky.closed .inside,#sq_briefcase #sq_briefcase_content li.sq_briefcase_item:hover .sq_briefcase_addbriefcase,#sq_briefcase #sq_briefcase_content li.sq_briefcase_item:hover .sq_briefcase_item_delete,#sq_briefcase #sq_briefcase_content li.sq_briefcase_item:hover .sq_briefcase_optimize{display:block}#postsquirrly div.inside,#postsquirrly p,#postsquirrly td,#sq_blocksearch ul,#sq_blockseo ul,#sq_options>ul{margin:0;padding:0}#postsquirrly:not(.sq_sticky) .sq_header{display:none}#postsquirrly.sq_sticky .sq_header{color:#a0a0a0;font-size:.875rem;font-weight:400;line-height:20px}#postsquirrly:not(.sq_sticky) .sq_block_tab{padding:.5em .2em!important;font-size:90%}#postsquirrly.sq_sticky .sq_header .sq_logo{width:30px!important;height:30px!important}#postsquirrly .sq_box{background-color:#fff;margin:0;padding:0;width:100%;height:100%}#normal-sortables #postsquirrly .sq_box{max-width:350px;margin:auto}#postsquirrly.sq_sticky{position:fixed!important;z-index:90000!important;left:calc(100% - 355px);bottom:0;top:auto;height:136px;width:350px!important;padding:0!important;background:#fff!important;overflow-x:auto!important;box-shadow:0 0 5px -3px #555!important}#postsquirrly.sq_sticky::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);background-color:#f5f5f5}#postsquirrly.sq_sticky::-webkit-scrollbar{width:7px;background-color:#f5f5f5}#postsquirrly.sq_sticky::-webkit-scrollbar-thumb{background-color:#bdafba;border:0}#postsquirrly.sq_sticky .hndle,#postsquirrly.sq_sticky.minimized #sq_briefcase_list,#postsquirrly.sq_sticky.minimized #sq_briefcase_topcontent{display:none!important}#postsquirrly.sq_sticky .handlediv,#postsquirrly:not(.sq_sticky) .hndle{padding:0 16px!important;font-size:13px!important}#postsquirrly.sq_sticky .sq_header{cursor:move}#postsquirrly .sq_box_close,#postsquirrly .sq_box_maximize,#postsquirrly .sq_box_minimize{display:block;float:right;margin:0;cursor:pointer;font-weight:300;font-size:.8rem;color:gray;padding:5px 10px 0 0;height:22px}#postsquirrly .sq_box_close{font-size:1.3rem;padding:3px 5px 0 0}#postsquirrly.sq_sticky.minimized{height:95px!important;overflow:hidden!important}#postsquirrly .inside{position:relative;height:100%}#postsquirrly .sq_box.sq_sticky{position:fixed;top:32px;z-index:99999;height:100%;max-width:291px;overflow-x:auto}#postsquirrly.sq_sticky .sq_box.sq_sticky{position:absolute;top:0;bottom:0;height:100%;margin:0}#postsquirrly .sq_box.sq_sticky>div{margin-bottom:25px}#postsquirrly .sq_box:hover:before{opacity:.8}#postsquirrly .sq_box:hover .sq_header{color:#444}#sq_blocklogin{background-color:#ffffe0}#sq_blocklogin input,#sq_blocklogin textarea{font-size:.875rem;height:30px;padding:6px}#postsquirrly .sq_button{display:block;text-decoration:none;line-height:30px;text-align:center;background-color:#6200ee!important;font-size:1.12rem;font-weight:700;color:#fff;margin:0;padding:0 15px;border:0;border-radius:0;cursor:pointer;vertical-align:top}#sq_blocklogin #sq_autologin #sq_loginimage,#sq_blocklogin #sq_login{background-color:#6200ee;color:#fff;border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;cursor:pointer}#sq_blocklogin #sq_login{border:0;min-width:100px;min-height:35px}#sq_blocklogin label{margin-top:0;margin-right:2px;width:72px;display:inline-block}#sq_blocklogin ul li{position:relative;padding:4px 0 4px 5px;margin:5px 0;line-height:16px;text-shadow:1px 1px #fff}#sq_blocklogin .sq_error,#sq_blocklogin .sq_info,#sq_blocklogin ul li{font-size:.875rem;text-align:center}#sq_blocklogin .sq_error{color:red;margin:5px auto}#sq_blocklogin #sq_register{margin:5px 0;font-size:.875rem;font-weight:700}#sq_blocklogin #sq_register_wait{display:inline-block;margin-left:2px}#sq_blocklogin #sq_autologin{padding:20px 10px 5px}#sq_blocklogin #sq_autologin #sq_loginimage{display:block;height:auto;width:100px;font-size:.875rem;font-weight:700;margin:13px;padding:10px 0;text-decoration:none}#sq_blocklogin #sq_register_email{text-align:center;width:250px;height:45px;margin:14px auto 11px}#sq_blocklogin #sq_register_email #sq_email{width:160px!important;border:2px solid #6200ee}#sq_blocklogin #sq_signin{color:#6200ee;margin:5px;cursor:pointer}#sq_options{float:right;position:relative;height:40px;margin:0;padding:0;z-index:13}#side-sortables #sq_options{z-index:1003}#postsquirrly #sq_options{float:none;background:0 0;border:0;box-shadow:none}#normal-sortables #postsquirrly #sq_options{display:flex;width:280px;margin:10px auto}#postsquirrly.sq_frontend .sq_frontend_noapi{font-size:1.1rem;line-height:24px;font-weight:600;margin:0 auto 10px;text-align:center}#postsquirrly .sq_frontend_noapi_inner{text-align:center;margin:6px auto}.sq_block_tab{cursor:pointer}#sq_blocksearch #sq_types ul li.sq_active,.sq_block_tab.sq_active{color:#fff!important;background-color:#6200ee!important}.sq_box #sq_keyword{border:0!important;background:#f8f9fa!important;box-shadow:none!important}#sq_briefcase #sq_briefcase_bottom{background-color:#f1f1f1;height:20px;margin:2px -1px 0;border-top:1px solid #ddd}#sq_briefcase #sq_briefcase_list #sq_briefcase_keyword_check{display:inline-block;line-height:26px;width:26px;height:28px;background-color:#6200ee;font-size:1.1rem;font-weight:700;color:#fff;margin:0;padding:0;border:1px solid #fff;cursor:pointer}#sq_briefcase #sq_briefcase_content ul.sq_briefcase_item_used{margin:0 0 7px;padding:0}#sq_briefcase #sq_briefcase_content ul.sq_briefcase_item_circles{margin:0;padding:5px 0;width:100%;height:auto;clear:both;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}#sq_briefcase #sq_briefcase_content ul.sq_briefcase_item_notused{clear:both;padding:0;margin:0}#sq_briefcase #sq_briefcase_content.sq_error{margin:15px 0!important}#sq_briefcase #sq_briefcase_content li.sq_briefcase_item{position:relative;color:#4f1440;padding:0;text-align:left;margin:0 0 0 1px;line-height:20px}#sq_briefcase #sq_briefcase_content li.sq_briefcase_item .sq_briefcase_item_percent{white-space:nowrap;display:inline-block;padding:5px 2px 0;text-align:right;font-weight:700;font-size:.875rem;cursor:pointer}#sq_briefcase #sq_briefcase_content li.sq_briefcase_item_used .sq_briefcase_value{width:80%;cursor:pointer}#sq_briefcase #sq_briefcase_content li.sq_briefcase_item .sq_briefcase_value{width:80%;max-width:275px;display:inline-block;padding:5px;white-space:nowrap;text-overflow:ellipsis;overflow-x:hidden;vertical-align:top}#sq_briefcase #sq_briefcase_content ul.sq_briefcase_item_notused li.sq_briefcase_item{padding:5px}#sq_briefcase #sq_briefcase_content ul.sq_briefcase_item_notused li.sq_briefcase_item .sq_briefcase_value{padding:0;display:block;clear:left}#sq_briefcase #sq_briefcase_content li.sq_briefcase_item .sq_briefcase_addbriefcase{position:absolute;color:#6200ee;right:5px;top:5px;cursor:pointer;float:right;display:none;z-index:10}#sq_briefcase #sq_briefcase_content li.sq_briefcase_item .sq_briefcase_optimize{position:absolute;color:#6200ee;right:5px;bottom:5px;cursor:pointer;float:right;display:none;z-index:10}#sq_briefcase #sq_briefcase_content li.sq_briefcase_item:hover{background-color:#fbfbfb}#sq_briefcase #sq_briefcase_content .sq_briefcase_empty{font-weight:700;text-align:center;padding:5px;margin:0}#sq_briefcase #sq_briefcase_content .sq_briefcase_item_notused .sq_briefcase_empty{color:#a7a6a7}#sq_briefcase .sq_briefcase_item .sq_briefcase_item_circle{display:block;float:left;width:13px;height:3px;margin:0 2px 0 0}#sq_briefcase .sq_briefcase_item_circles .sq_briefcase_circle{display:block;font-family:'FontAwesome',Arial,sans-serif!important;float:left;width:44px;height:10px;margin:5px 3px 0 0;cursor:pointer}#sq_briefcase .sq_briefcase_item_circles .sq_briefcase_circle:before{content:" ";display:block;height:100%;width:100%;margin:-2px 0 2px}#sq_briefcase .sq_briefcase_item_circles .sq_briefcase_circle.sq_active:before{display:block;text-align:center;margin:-2px 0 2px;content:"\f00c";color:#fff;text-shadow:1px 0 #555}#sq_briefcase ul li.sq_main_keyword{background-color:#f9f5fd}#sq_briefcase ul li.sq_main_keyword:after{content:"\f005";font-family:'FontAwesome',Arial,sans-serif!important;font-size:.875rem;position:absolute;margin:5px 0;right:18px}#sq_briefcase #sq_briefcase_content li .sq_briefcase_item_delete{display:none;float:right;font-size:13px;font-weight:700;color:#999;line-height:15px;width:15px;text-align:center;padding:5px 4px 2px;border:0;cursor:pointer;z-index:2}#sq_blockseo .sq_tasks{padding:2px 0}#sq_blockseo .sq_auto_sticky input,#sq_blockseo .sq_tasks .sq_help,#sq_blockseo .sq_tasks ul li #sq_density_high,#sq_blockseo .sq_tasks ul li #sq_density_low,#sq_blockseo .sq_tasks ul li #sq_density_title_longtail,#sq_blockseo .sq_tasks ul li #sq_density_title_low,#sq_blockseo .sq_tasks ul li #sq_over_density_high,#sq_blockseo .sq_tasks ul li #sq_over_density_low{display:none}#sq_blockseo .sq_tasks ul{padding:10px 0}#sq_blockseo .sq_tasks ul li{position:relative;display:block;color:#000;background-color:#fff;font-weight:400;line-height:25px;padding:5px 40px 5px 5px;margin:5px;border:1px solid #e9e9e9}#sq_blockseo .sq_tasks ul li.sq_tasks_category{color:#999;background-color:transparent;padding:0;margin:5px;border:0!important;box-shadow:none!important;-moz-box-shadow:none!important;-webkit-box-shadow:none!important}#sq_blockseo .sq_tasks .sq_fp_title_task{color:#6200ee}#sq_blockseo .sq_tasks ul li.checked .sq_fp_title_task{color:#fff}#sq_blockseo .sq_tasks ul li.checked{background-color:#4caf50;color:#fff;text-shadow:1px 1px #777}#sq_blockseo .sq_tasks ul li .sq_seo_priority{display:none;position:absolute;height:25px;width:30px;right:23px;top:4px}#sq_blockseo .sq_tasks ul li .sq_seo_locked{display:block;position:absolute;height:20px;width:20px;right:23px;top:4px;cursor:pointer}#sq_blockseo .sq_auto_sticky label span,#sq_blockseo .sq_tasks ul li .sq_seo_priority_essential{cursor:pointer}#sq_blockseo .sq_tasks ul li .arrow:after{content:none;background-color:transparent}#sq_blockseo .sq_tasks ul li .arrow{display:block;position:absolute;right:5px;top:6px;bottom:auto;left:auto;height:16px;width:16px;overflow:visible;z-index:1;cursor:pointer}#sq_blockseo .sq_tasks ul li.checked .arrow{background-position:-121px -76px}#sq_blockseo .sq_tasks ul li .arrow:hover{background-position:-146px -76px;z-index:2}#sq_blockseo .sq_tasks ul li .arrow:hover .sq_help{display:table;position:absolute;background:#fff;font-weight:400;color:#333;right:-7px;top:22px;height:50px;width:260px;padding:10px 5px;overflow:hidden;z-index:5;border:1px solid #ccc;border-radius:0;-webkit-border-radius:0;-moz-border-radius:0;text-shadow:none}#sq_blockseo .sq_tasks ul li.sq_density_high,#sq_blockseo .sq_tasks ul li.sq_density_title_high,#sq_blockseo .sq_tasks ul li.sq_over_density_high{background-color:red!important;color:#fff!important}#sq_blockseo .sq_tasks ul li.sq_locked{color:#d3d3d3;background-color:#f8f8f8}#sq_blockseo .sq_error{padding:15px}body ul.sq_notification{position:fixed;background-color:#4caf50;text-align:center;width:100%;height:auto;top:28px;padding:0;margin:0;list-style:none!important;box-shadow:0 4px 4px -3px #333;-moz-box-shadow:0 4px 4px -3px #333;-webkit-box-shadow:0 4px 4px -3px #333;z-index:100001}body ul.sq_notification_front{z-index:100002}body ul.sq_density_high,body ul.sq_density_low,body ul.sq_density_title_high,body ul.sq_density_title_low{background-color:red!important}body ul.sq_density_high li,body ul.sq_density_low li,body ul.sq_density_title_high li,body ul.sq_density_title_low li{color:#fff!important}body ul.sq_notification li{position:relative;font-weight:400;color:#fff;text-shadow:1px 1px #777;line-height:16px;list-style:none!important;width:380px;height:auto;margin:0 auto;padding:10px 0;text-align:left}body ul.sq_notification li .arrow{position:absolute;top:8px;left:-33px;width:25px;height:25px;float:left;margin:0 10px 0 0}body ul.sq_notification li .arrow::before{content:"";display:none}body ul.sq_notification li .arrow::after{background-color:transparent!important}body ul.sq_complete,body ul.sq_complete li{list-style:none!important;height:auto;text-align:center}body ul.sq_complete{position:fixed;background-color:#4caf50;width:100%;top:28px;padding:0;margin:0;box-shadow:0 4px 4px -3px #333;-moz-box-shadow:0 4px 4px -3px #333;-webkit-box-shadow:0 4px 4px -3px #333;z-index:100000003}body ul.sq_complete li{position:relative;font-weight:400;color:#fff;text-shadow:1px 1px #777;line-height:16px;margin:0 auto;padding:15px 0}#sq_blocksearch #sq_types{width:100%;height:auto;padding:5px 0;margin:0}#sq_blocksearch #sq_types ul{margin:0;padding:0;list-style:none}#sq_blocksearch #sq_types ul li{padding:8px;margin:0 12px;cursor:pointer;font-size:1.5rem}#postsquirrly:not(.sq_sticky) #sq_blocksearch #sq_types ul li{margin:0 6px}#postsquirrly:not(.sq_sticky) .sq_help,#postsquirrly:not(.sq_sticky) .sq_type_help{padding:0!important}#sq_blocksearch .sq_search{overflow:hidden;padding:0!important;margin:0!important;width:100%!important;height:auto;clear:both}#sq_blocksearch .sq_search .sq_search_notrelevant{text-align:center;text-decoration:none;color:#1c3c50;width:100%;display:block;margin:0;padding:5px;line-height:30px}#sq_blocksearch .sq_search #sq_search_second{text-align:center}#sq_blocksearch .sq_search #sq_keyword_second{display:inline-block;margin:13px 0;width:80%;line-height:26px;padding:6px;font-weight:400;color:#32373c;border-radius:0}#sq_blocksearch .sq_search #sq_keyword_second_check{display:inline-block;line-height:26px;width:18%;height:39px;background-color:#6200ee!important;font-weight:700;color:#fff;margin:0;padding:0;cursor:pointer}#sq_blocksearch .sq_search ul{padding:0;margin:0 auto;list-style:none;clear:both;max-width:335px}#sq_blocksearch .sq_search ul li.sq_search_li{display:block;width:95%;font-weight:400;padding:5px;margin:7px auto;background-color:#fff;border:1px solid #ddd;border-radius:0;-webkit-border-radius:0;-moz-border-radius:1px}#sq_blocksearch .sq_search .sq_attribution{clear:both;margin:0;padding:0}#sq_blocksearch .sq_search li.sq_search_li .sq_attribution>ul{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}#sq_blocksearch .sq_search li.sq_search_li .sq_attribution>ul>li{-ms-flex:0 0 auto;flex:0 0 auto;flex-grow:1;max-width:100%;text-align:center;padding:10px;color:#fff;background-color:#6200ee!important;border-color:transparent;cursor:pointer}#sq_blocksearch .sq_search ul .sq_info{clear:both;color:#bcc4c8;padding:3px 0 0;float:right}#sq_blocksearch .sq_search .sq_info ul li{float:left;font-size:.7rem;margin-right:5px;padding-right:5px;border-right:1px solid #ccc}#sq_blocksearch .sq_search .sq_info ul li:last-child{border-right-width:0!important}#sq_blocksearch .sq_search ul li.sq_search_img_li{position:relative;float:left;background-color:#fff;width:100px;height:70px;padding:2px;margin:0 3px 6px 7px;border:1px solid #bbb;box-shadow:0 0 2px #ccc;-moz-box-shadow:0 0 2px #ccc;-webkit-box-shadow:0 0 2px #ccc;transition-property:border-color;transition-duration:.33s;-moz-transition-property:border-color;-moz-transition-duration:.33s;-webkit-transition-property:border-color;-webkit-transition-duration:.33s;cursor:pointer}#sq_blocksearch .sq_search ul li.sq_search_img_li:hover{border-color:#333}#sq_blocksearch .sq_search ul li.sq_search_img_li>img{clip:rect(0,100px,70px,0);position:absolute;top:-3px;left:-3px;max-height:110px;max-width:140px;min-width:100px}#postsquirrly.sq_sticky .sq_search ul li.sq_search_img_li{margin:0 3px 6px 7px}#postsquirrly:not(.sq_sticky) #sq_blocksearch .sq_search ul li.sq_search_img_li{width:126px}#postsquirrly:not(.sq_sticky) #sq_blocksearch .sq_search ul li.sq_search_img_li>img{clip:rect(0,126px,70px,0);max-width:150px;max-height:150px;min-width:126px}#postsquirrly:not(.sq_sticky) #sq_nokeyword{display:none!important}#sq_blocksearch #sq_search_img_filter{width:100%;background-color:#fff;text-align:center;padding:10px 0;border-top:1px solid #e8e8e8}#sq_blocksearch #sq_search_img_filter #sq_search_img_nolicence{margin:0 5px}#sq_blocksearch #sq_search_img_filter label#sq_search_img_nolicence_label{position:relative;color:#1d1f24;text-shadow:1px 1px #fff}#sq_blocksearch #sq_search_img_filter label.checked span{background-color:#6200ee}.sq_zoomImg_img{width:auto;height:54px}.sq_zoomImg{position:absolute;visibility:visible}.sq_zoomImg_Inner{background-color:#fff;border:1px solid #d9d9d9;-moz-box-shadow:0 4px 16px rgba(0,0,0,.2);-webkit-box-shadow:0 4px 16px rgba(0,0,0,.2);box-shadow:0 4px 16px rgba(0,0,0,.2);color:#555;padding:5px;position:relative}.sq_zoomImg_frame img{border:1px solid #d9d9d9;display:block;margin:auto;max-width:115px;max-height:115px}#sq_blocksearch .sq_search li.sq_search_img_li .sq_attribute{position:absolute;bottom:-3px;right:-3px;background:#fff;border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;z-index:1;padding:0 5px}#sq_blocksearch .sq_search ul li.search_category{clear:both;color:#464646;width:100%;height:16px;border:0}#sq_blocksearch .sq_search ul li.sq_search_twitter_li .sq_author_avatar{float:left;width:36px;height:36px;margin:3px 10px 0 0}#sq_blocksearch .sq_search ul li.sq_search_twitter_li .sq_quote_content{margin-left:46px}#sq_blocksearch .sq_search ul li.sq_search_twitter_li .sq_quote_author{color:#555;line-height:15px}#sq_blocksearch .sq_search ul li.sq_search_twitter_li .sq_author_name{line-height:19px;margin-right:5px;color:#555;font-weight:400;text-align:left}#sq_blocksearch .sq_search ul li.sq_search_twitter_li .sq_quote_text{margin-left:0}#sq_blocksearch .sq_search ul li.sq_search_blog_li .sq_news_title{font-weight:700;color:#333;line-height:19px;margin:0 0 5px}#sq_blocksearch .sq_search ul li.sq_search_blog_li .sq_news_text{color:#333;line-height:19px;text-align:left}#sq_blocksearch .sq_show_mgs{clear:both;display:block;padding:10px;margin-top:10px;border-top:1px dashed #d1d1d1;text-align:center}#sq_blocksearch .sq_more{clear:both;position:relative;width:100%;text-align:center;padding:0;margin:0 0 5px}#sq_blocksearch .sq_more span{display:block;width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-top:10px solid #6200ee;padding:0;margin:0 auto;cursor:pointer}#sq_suggestion .sq_show_mgs{margin:20px auto 0;border-top:none;text-align:center}#sq_blog_preview{position:fixed!important;border:1px solid #e5e5e5;padding:0;margin-bottom:15px;left:15%;top:10%;width:70%;height:80%;overflow:auto;background-color:#fff;z-index:999999}#sq_blog_preview_overlay{display:block;position:absolute;background-color:#999;border:0;content:" ";left:0;top:0;width:100%;height:100%;border-radius:2px 2px 0 0;opacity:.3;z-index:999998}#sq_blog_preview #sq_blog_preview_partner{position:absolute;top:15px;right:20px}#sq_blog_preview #sq_blog_preview_partner a{background-color:#333;text-decoration:none;color:#fff;font-size:.875rem;font-weight:700;margin-left:5px;padding:0 3px;border:1px solid #333}#sq_blog_preview #sq_blog_preview_title{display:block;font-size:1.2rem;font-weight:400;line-height:30px;color:#333;border-bottom:1px dashed #d1d1d1;margin:0 0 10px;padding:10px 0 10px 10px}#sq_blog_preview #sq_blog_preview_body{display:block;font-size:.875rem;color:#333;line-height:16px;text-align:left;padding:0 0 0 10px;overflow-y:auto;overflow-x:hidden}#sq_blog_preview #sq_blog_preview_body p{position:relative;background-color:transparent;line-height:24px;padding:0;margin:0 0 16px;text-align:left;white-space:normal;color:#333}#sq_blog_preview #sq_blog_preview_body .sq_mark{background-color:#ffed5f;color:#000;padding:0 3px;font-size:.875rem;line-height:20px;box-shadow:0 0 5px #fff6ac;-moz-box-shadow:0 0 5px #fff6ac;-webkit-box-shadow:0 0 5px #fff6ac}#sq_blog_preview #sq_blog_preview_body .sq_blog_option{position:absolute;display:none;background-color:#f5f5f5;bottom:0;right:5px;cursor:pointer;z-index:1}#sq_blog_preview #sq_blog_preview_body p:hover{background-color:#f5f5f5}#sq_blog_preview #sq_blog_preview_body p:hover .sq_blog_option{display:block;-webkit-animation:fadeIn .3s;-moz-animation:fadeIn .3s;animation:fadeIn .3s}#sq_blocksearch{position:relative}#sq_blocksearch .sq_search ul li.sq_search_wiki_li .sq_wiki_title{font-weight:700;color:#333;margin:5px 0}#sq_blocksearch .sq_search ul li.sq_search_local_li .sq_local_title{font-weight:700;color:#333;line-height:18px;margin:0 0 5px}#sq_blocksearch .sq_research_div{display:none;clear:both;position:relative;width:100%!important;line-height:40px;padding:0;margin:0!important;text-align:center}#sq_blocksearch .sq_research_div #sq_research_link{font-weight:700;color:#21759b;margin-top:10px;text-align:center;cursor:pointer;text-decoration:none}#sq_blog_preview #sq_blog_preview_close{position:absolute;font-weight:700;color:#999;width:10px;line-height:16px;text-align:center;padding:0 4px 2px;border-radius:10px;cursor:pointer;z-index:2;top:20px;right:20px;font-size:20px}#sq_blockseo #sq_seo_refresh{text-align:center;height:29px!important;min-height:29px!important;cursor:pointer}#sq_blockseo progress::-webkit-progress-bar{background-color:#ccc;height:5px}#sq_blockseo progress::-webkit-progress-value{background-color:#6200ee;height:5px}#sq_blockseo progress{background-color:#6200ee;height:5px;line-height:5px}#postsquirrly.sq_frontend #sq_options{display:none}#postsquirrly.sq_frontend ul,#postsquirrly.sq_frontend ul li{list-style:none!important}
|
1 |
+
@import url(https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap);@-ms-keyframes play{0%{background-position:0}to{background-position:-400px}}@-o-keyframes play{0%{background-position:0}to{background-position:-400px}}@keyframes play{0%{background-position:0}to{background-position:-400px}}.sq_minloading{position:relative;opacity:.5;min-height:30px}.sq_loading{height:60px;background:url(../img/loading.gif) no-repeat center!important}.sq_minloading:before{position:absolute!important;right:calc(50% - 10px)!important;top:calc(50% - 8px)!important;display:block!important;float:right!important;line-height:30px!important;content:""!important;padding:0!important;margin:0 0 0 5px!important;height:20px!important;width:20px!important;background:url(../img/minloading.png) no-repeat!important;-webkit-animation:play 1s steps(10) infinite;-moz-animation:play 1s steps(10) infinite;-o-animation:play 1s steps(10) infinite;animation:play 1s steps(10) infinite}#sq_preloading,.sq_sla_connect_notice{font-size:.875rem;line-height:24px;text-align:center}#sq_preloading{color:gray}.sq_sla_connect_notice{font-weight:600;margin:0 auto 10px}.sq_sla_connect_notice_content{text-align:center;margin:6px auto}#postsquirrly .sq_frontend_noapi a,.sq_sla_connect_notice a{text-decoration:none}#postsquirrly .sq_frontend_noapi_inner img,.sq_sla_connect_notice_content a img{width:277px}body>.components-squirrly-icon{display:none;position:fixed;right:20px;bottom:20px;z-index:10;border:1px solid #999;background-color:#fff;margin:0!important;padding:3px;cursor:pointer}#postsquirrly *,#sq_blocksnippet *{box-sizing:border-box}#postsquirrly .fa-solid,#postsquirrly .fas{font-family:'FontAwesome',serif!important;font-weight:800!important;margin:0 2px;line-height:1}#postsquirrly .fa-brands,#postsquirrly .fab{font-family:'FontAwesomeBrands',serif!important;font-weight:400!important;margin:0 2px}#postsquirrly #sq_types #sq_type_img:before{content:"\f03e"}#postsquirrly #sq_types #sq_type_twitter:before{content:"\f099"}#postsquirrly #sq_types #sq_type_wiki:before{content:"\f266"}#postsquirrly #sq_types #sq_type_blog:before{content:"\f075"}#postsquirrly #sq_types #sq_type_local:before{content:"\f249"}#wpadminbar #postsquirrly ul{z-index:1}#postsquirrly{color:#000}#postsquirrly a:not(.btn,.sq_button){color:#6200ee}#sq_blocksnippet.sq_sticky:not(.closed) .inside{display:block!important}#sq_blocksnippet.sq_sticky.closed .inside{display:none!important}#postsquirrly.sq_sticky{background:0 0;border:0;margin:0;-moz-box-shadow:none;-webkit-box-shadow:none}#postsquirrly:not(.sq_sticky){padding:0;border:1px solid #ddd}#postsquirrly :not(.fa,.fa-solid,.fa-brands),#sq_blog_preview *{font-family:"Noto Sans","Open Sans",Arial,sans-serif;font-size:.875rem;line-height:20px}#postsquirrly.sq_sticky .postbox-header,.edit-post-sidebar #sq_options{display:none}#postsquirrly.sq_sticky.closed .inside,#sq_briefcase #sq_briefcase_content li.sq_briefcase_item:hover .sq_briefcase_addbriefcase,#sq_briefcase #sq_briefcase_content li.sq_briefcase_item:hover .sq_briefcase_item_delete,#sq_briefcase #sq_briefcase_content li.sq_briefcase_item:hover .sq_briefcase_optimize{display:block}#postsquirrly div.inside,#postsquirrly p,#postsquirrly td,#sq_blocksearch ul,#sq_blockseo ul,#sq_options>ul{margin:0;padding:0}#postsquirrly:not(.sq_sticky) .sq_header{display:none}#postsquirrly.sq_sticky .sq_header{color:#a0a0a0;font-size:.875rem;font-weight:400;line-height:20px;position:sticky;top:0;background-color:#fff;z-index:10}#postsquirrly:not(.sq_sticky) .sq_block_tab{padding:.5em .2em!important;font-size:90%}#postsquirrly.sq_sticky .sq_header .sq_logo{width:30px!important;height:30px!important}#postsquirrly .sq_box{background-color:#fff;margin:0;padding:0;width:100%;height:100%}#normal-sortables #postsquirrly .sq_box{max-width:350px;margin:auto}#postsquirrly.sq_sticky{position:fixed!important;z-index:9000!important;left:calc(100% - 355px);bottom:0;top:auto;height:136px;width:350px!important;padding:0!important;background:#fff!important;overflow-x:auto!important;box-shadow:0 0 5px -3px #555!important}#postsquirrly.sq_sticky::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0,0,0,.3);background-color:#f5f5f5}#postsquirrly.sq_sticky::-webkit-scrollbar{width:7px;background-color:#f5f5f5}#postsquirrly.sq_sticky::-webkit-scrollbar-thumb{background-color:#bdafba;border:0}#postsquirrly.sq_sticky .hndle,#postsquirrly.sq_sticky.minimized #sq_briefcase_list,#postsquirrly.sq_sticky.minimized #sq_briefcase_topcontent{display:none!important}#postsquirrly.sq_sticky .handlediv,#postsquirrly:not(.sq_sticky) .hndle{padding:0 16px!important;font-size:13px!important}#postsquirrly.sq_sticky .sq_header{cursor:move}#postsquirrly .sq_box_close,#postsquirrly .sq_box_maximize,#postsquirrly .sq_box_minimize{display:block;float:right;margin:0;cursor:pointer;font-weight:300;font-size:.8rem;color:gray;padding:5px 10px 0 0;height:22px}#postsquirrly .sq_box_close{font-size:1.3rem;padding:3px 5px 0 0}#postsquirrly.sq_sticky.minimized{height:95px!important;overflow:hidden!important}#postsquirrly .inside{position:relative;height:100%}#postsquirrly .sq_box.sq_sticky{position:fixed;top:32px;z-index:99999;height:100%;max-width:291px;overflow-x:auto}#postsquirrly.sq_sticky .sq_box.sq_sticky{position:absolute;top:0;bottom:0;height:100%;margin:0}#postsquirrly .sq_box.sq_sticky>div{margin-bottom:25px}#postsquirrly .sq_box:hover:before{opacity:.8}#postsquirrly .sq_box:hover .sq_header{color:#444}#sq_blocklogin{background-color:#ffffe0}#sq_blocklogin input,#sq_blocklogin textarea{font-size:.875rem;height:30px;padding:6px}#postsquirrly .sq_button{display:block;text-decoration:none;line-height:30px;text-align:center;background-color:#6200ee!important;font-size:1.12rem;font-weight:700;color:#fff;margin:0;padding:0 15px;border:0;border-radius:0;cursor:pointer;vertical-align:top}#sq_blocklogin #sq_autologin #sq_loginimage,#sq_blocklogin #sq_login{background-color:#6200ee;color:#fff;border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;cursor:pointer}#sq_blocklogin #sq_login{border:0;min-width:100px;min-height:35px}#sq_blocklogin label{margin-top:0;margin-right:2px;width:72px;display:inline-block}#sq_blocklogin ul li{position:relative;padding:4px 0 4px 5px;margin:5px 0;line-height:16px;text-shadow:1px 1px #fff}#sq_blocklogin .sq_error,#sq_blocklogin .sq_info,#sq_blocklogin ul li{font-size:.875rem;text-align:center}#sq_blocklogin .sq_error{color:red;margin:5px auto}#sq_blocklogin #sq_register{margin:5px 0;font-size:.875rem;font-weight:700}#sq_blocklogin #sq_register_wait{display:inline-block;margin-left:2px}#sq_blocklogin #sq_autologin{padding:20px 10px 5px}#sq_blocklogin #sq_autologin #sq_loginimage{display:block;height:auto;width:100px;font-size:.875rem;font-weight:700;margin:13px;padding:10px 0;text-decoration:none}#sq_blocklogin #sq_register_email{text-align:center;width:250px;height:45px;margin:14px auto 11px}#sq_blocklogin #sq_register_email #sq_email{width:160px!important;border:2px solid #6200ee}#sq_blocklogin #sq_signin{color:#6200ee;margin:5px;cursor:pointer}#sq_options{float:right;position:relative;height:40px;margin:0;padding:0;z-index:13}#side-sortables #sq_options{z-index:1003}#postsquirrly #sq_options{float:none;background:0 0;border:0;box-shadow:none}#normal-sortables #postsquirrly #sq_options{display:flex;width:280px;margin:10px auto}#postsquirrly.sq_frontend .sq_frontend_noapi{font-size:1.1rem;line-height:24px;font-weight:600;margin:0 auto 10px;text-align:center}#postsquirrly .sq_frontend_noapi_inner{text-align:center;margin:6px auto}.sq_block_tab{cursor:pointer}#sq_blocksearch #sq_types ul li.sq_active,.sq_block_tab.sq_active{color:#fff!important;background-color:#6200ee!important}.sq_box #sq_keyword{border:0!important;background:#f8f9fa!important;box-shadow:none!important}#sq_briefcase #sq_briefcase_bottom{background-color:#f1f1f1;height:20px;margin:2px -1px 0;border-top:1px solid #ddd}#sq_briefcase #sq_briefcase_list #sq_briefcase_keyword_check{display:inline-block;line-height:26px;width:26px;height:28px;background-color:#6200ee;font-size:1.1rem;font-weight:700;color:#fff;margin:0;padding:0;border:1px solid #fff;cursor:pointer}#sq_briefcase #sq_briefcase_content ul.sq_briefcase_item_used{margin:0 0 7px;padding:0}#sq_briefcase #sq_briefcase_content ul.sq_briefcase_item_circles{margin:0;padding:5px 0;width:100%;height:auto;clear:both;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap!important;flex-wrap:wrap!important}#sq_briefcase #sq_briefcase_content ul.sq_briefcase_item_notused{clear:both;padding:0;margin:0}#sq_briefcase #sq_briefcase_content.sq_error{margin:15px 0!important}#sq_briefcase #sq_briefcase_content li.sq_briefcase_item{float:none;position:relative;color:#4f1440;padding:0;text-align:left;margin:0 0 0 1px;line-height:20px}#sq_briefcase #sq_briefcase_content li.sq_briefcase_item .sq_briefcase_item_percent{white-space:nowrap;display:inline-block;padding:5px 2px 0;text-align:right;font-weight:700;font-size:.875rem;cursor:pointer}#sq_briefcase #sq_briefcase_content li.sq_briefcase_item_used .sq_briefcase_value{width:80%;cursor:pointer}#sq_briefcase #sq_briefcase_content li.sq_briefcase_item .sq_briefcase_value{width:80%;max-width:275px;display:inline-block;padding:5px;white-space:nowrap;text-overflow:ellipsis;overflow-x:hidden;vertical-align:top}#sq_briefcase #sq_briefcase_content ul.sq_briefcase_item_notused li.sq_briefcase_item{padding:5px}#sq_briefcase #sq_briefcase_content ul.sq_briefcase_item_notused li.sq_briefcase_item .sq_briefcase_value{padding:0;display:block;clear:left}#sq_briefcase #sq_briefcase_content li.sq_briefcase_item .sq_briefcase_addbriefcase{position:absolute;color:#6200ee;right:5px;top:5px;cursor:pointer;float:right;display:none;z-index:10}#sq_briefcase #sq_briefcase_content li.sq_briefcase_item .sq_briefcase_optimize{position:absolute;color:#6200ee;right:5px;bottom:5px;cursor:pointer;float:right;display:none;z-index:10}#sq_briefcase #sq_briefcase_content li.sq_briefcase_item:hover{background-color:#fbfbfb}#sq_briefcase #sq_briefcase_content .sq_briefcase_empty{font-weight:700;text-align:center;padding:5px;margin:0}#sq_briefcase #sq_briefcase_content .sq_briefcase_item_notused .sq_briefcase_empty{color:#a7a6a7}#sq_briefcase .sq_briefcase_item .sq_briefcase_item_circle{display:block;float:left;width:13px;height:3px;margin:0 2px 0 0}#sq_briefcase .sq_briefcase_item_circles .sq_briefcase_circle{display:block;font-family:'FontAwesome',Arial,sans-serif!important;float:left;width:44px;height:10px;margin:5px 3px 0 0;cursor:pointer}#sq_briefcase .sq_briefcase_item_circles .sq_briefcase_circle:before{content:" ";display:block;height:100%;width:100%;margin:-2px 0 2px}#sq_briefcase .sq_briefcase_item_circles .sq_briefcase_circle.sq_active:before{display:block;text-align:center;margin:-2px 0 2px;content:"\f00c";color:#fff;text-shadow:1px 0 #555}#sq_briefcase ul li.sq_main_keyword{background-color:#f9f5fd}#sq_briefcase ul li.sq_main_keyword:after{content:"\f005";font-family:'FontAwesome',Arial,sans-serif!important;font-size:.875rem;position:absolute;margin:5px 0;right:18px}#sq_briefcase #sq_briefcase_content li .sq_briefcase_item_delete{display:none;float:right;font-size:13px;font-weight:700;color:#999;line-height:15px;width:15px;text-align:center;padding:5px 4px 2px;border:0;cursor:pointer;z-index:2}#sq_blockseo .sq_tasks{padding:2px 0}#sq_blockseo .sq_auto_sticky input,#sq_blockseo .sq_tasks .sq_help,#sq_blockseo .sq_tasks ul li #sq_density_high,#sq_blockseo .sq_tasks ul li #sq_density_low,#sq_blockseo .sq_tasks ul li #sq_density_title_high,#sq_blockseo .sq_tasks ul li #sq_density_title_longtail,#sq_blockseo .sq_tasks ul li #sq_density_title_low,#sq_blockseo .sq_tasks ul li #sq_over_density_high,#sq_blockseo .sq_tasks ul li #sq_over_density_low{display:none}#sq_blockseo .sq_tasks ul{padding:10px 0}#sq_blockseo .sq_tasks ul li{position:relative;display:block;color:#000;background-color:#fff;font-weight:400;line-height:25px;padding:5px 40px 5px 5px;margin:5px;border:1px solid #e9e9e9;float:none}#sq_blockseo .sq_tasks ul li.sq_tasks_category{color:#999;background-color:transparent;padding:0;margin:5px;border:0!important;box-shadow:none!important;-moz-box-shadow:none!important;-webkit-box-shadow:none!important}#sq_blockseo .sq_tasks .sq_fp_title_task{color:#6200ee}#sq_blockseo .sq_tasks ul li.checked .sq_fp_title_task{color:#fff}#sq_blockseo .sq_tasks ul li.checked{background-color:#4caf50;color:#fff;text-shadow:1px 1px #777}#sq_blockseo .sq_tasks ul li .sq_seo_priority{display:none;position:absolute;height:25px;width:30px;right:23px;top:4px}#sq_blockseo .sq_tasks ul li .sq_seo_locked{display:block;position:absolute;height:20px;width:20px;right:23px;top:4px;cursor:pointer}#sq_blockseo .sq_auto_sticky label span,#sq_blockseo .sq_tasks ul li .sq_seo_priority_essential{cursor:pointer}#sq_blockseo .sq_tasks ul li .arrow:after{content:none;background-color:transparent}#sq_blockseo .sq_tasks ul li .arrow{display:block;position:absolute;right:5px;top:6px;bottom:auto;left:auto;height:16px;width:16px;overflow:visible;z-index:1;cursor:pointer}#sq_blockseo .sq_tasks ul li.checked .arrow{background-position:-121px -76px}#sq_blockseo .sq_tasks ul li .arrow:hover{background-position:-146px -76px;z-index:2}#sq_blockseo .sq_tasks ul li .arrow:hover .sq_help{display:table;position:absolute;background:#fff;font-weight:400;color:#333;right:-7px;top:22px;height:50px;width:300px;padding:10px 5px!important;overflow:hidden;z-index:5;border:1px solid #ccc;border-radius:0;-webkit-border-radius:0;-moz-border-radius:0;text-shadow:none}#sq_blockseo .sq_tasks ul li.sq_density_high,#sq_blockseo .sq_tasks ul li.sq_density_title_high,#sq_blockseo .sq_tasks ul li.sq_over_density_high{background-color:red!important;color:#fff!important}#sq_blockseo .sq_tasks ul li.sq_locked{color:#d3d3d3;background-color:#f8f8f8}#sq_blockseo .sq_error{padding:15px}body ul.sq_notification{position:fixed;background-color:#4caf50;text-align:center;width:100%;height:auto;top:28px;padding:0;margin:0;list-style:none!important;box-shadow:0 4px 4px -3px #333;-moz-box-shadow:0 4px 4px -3px #333;-webkit-box-shadow:0 4px 4px -3px #333;z-index:100001}body ul.sq_notification_front{z-index:100002}body ul.sq_density_high,body ul.sq_density_low,body ul.sq_density_title_high,body ul.sq_density_title_low{background-color:red!important}body ul.sq_density_high li,body ul.sq_density_low li,body ul.sq_density_title_high li,body ul.sq_density_title_low li{color:#fff!important}body ul.sq_notification li{position:relative;font-weight:400;color:#fff;text-shadow:1px 1px #777;line-height:16px;width:100%;margin:0 auto;padding:10px 0}body ul.sq_notification li .arrow{position:absolute;top:8px;left:-33px;width:25px;height:25px;float:left;margin:0 10px 0 0}body ul.sq_notification li .arrow::before{content:"";display:none}body ul.sq_notification li .arrow::after{background-color:transparent!important}body ul.sq_complete,body ul.sq_complete li,body ul.sq_notification li{list-style:none!important;height:auto;text-align:center}body ul.sq_complete{position:fixed;background-color:#4caf50;width:100%;top:28px;padding:0;margin:0;box-shadow:0 4px 4px -3px #333;-moz-box-shadow:0 4px 4px -3px #333;-webkit-box-shadow:0 4px 4px -3px #333;z-index:100000003}body ul.sq_complete li{position:relative;font-weight:400;color:#fff;text-shadow:1px 1px #777;line-height:16px;margin:0 auto;padding:15px 0}#sq_blocksearch #sq_types{width:100%;height:auto;padding:5px 0;margin:0}#sq_blocksearch #sq_types ul{margin:0;padding:0;list-style:none}#sq_blocksearch #sq_types ul li{line-height:25px;padding:8px;margin:0 12px;cursor:pointer;font-size:1.5rem}#postsquirrly:not(.sq_sticky) #sq_blocksearch #sq_types ul li{margin:0 6px}#postsquirrly:not(.sq_sticky) .sq_help,#postsquirrly:not(.sq_sticky) .sq_type_help{padding:0!important}#sq_blocksearch .sq_search{overflow:hidden;padding:0!important;margin:0!important;width:100%!important;height:auto;clear:both}#sq_blocksearch .sq_search .sq_search_notrelevant{text-align:center;text-decoration:none;color:#1c3c50;width:100%;display:block;margin:0;padding:5px;line-height:30px}#sq_blocksearch .sq_search #sq_search_second{text-align:center}#sq_blocksearch .sq_search #sq_keyword_second{display:inline-block;margin:13px 0;width:80%;line-height:26px;padding:6px;font-weight:400;color:#32373c;border-radius:0}#sq_blocksearch .sq_search #sq_keyword_second_check{display:inline-block;line-height:26px;width:18%;height:39px;background-color:#6200ee!important;font-weight:700;color:#fff;margin:0;padding:0;cursor:pointer}#sq_blocksearch .sq_search ul{padding:0;margin:0 auto;list-style:none;clear:both;max-width:335px}#sq_blocksearch .sq_search ul li.sq_search_li{display:block;width:95%;font-weight:400;padding:5px;margin:7px auto;background-color:#fff;border:1px solid #ddd;border-radius:0;-webkit-border-radius:0;-moz-border-radius:1px}#sq_blocksearch .sq_search .sq_attribution{clear:both;margin:0;padding:0}#sq_blocksearch .sq_search li.sq_search_li .sq_attribution>ul{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}#sq_blocksearch .sq_search li.sq_search_li .sq_attribution>ul>li{-ms-flex:0 0 auto;flex:0 0 auto;flex-grow:1;max-width:100%;text-align:center;padding:10px;color:#fff;background-color:#6200ee!important;border-color:transparent;cursor:pointer}#sq_blocksearch .sq_search ul .sq_info{clear:both;color:#bcc4c8;padding:3px 0 0;float:right}#sq_blocksearch .sq_search .sq_info ul li{float:left;font-size:.7rem;margin-right:5px;padding-right:5px;border-right:1px solid #ccc}#sq_blocksearch .sq_search .sq_info ul li:last-child{border-right-width:0!important}#sq_blocksearch .sq_search ul li.sq_search_img_li{position:relative;float:left;background-color:#fff;width:100px;height:70px;padding:2px;margin:0 3px 6px 7px;border:1px solid #bbb;box-shadow:0 0 2px #ccc;-moz-box-shadow:0 0 2px #ccc;-webkit-box-shadow:0 0 2px #ccc;transition-property:border-color;transition-duration:.33s;-moz-transition-property:border-color;-moz-transition-duration:.33s;-webkit-transition-property:border-color;-webkit-transition-duration:.33s;cursor:pointer}#sq_blocksearch .sq_search ul li.sq_search_img_li:hover{border-color:#333}#sq_blocksearch .sq_search ul li.sq_search_img_li>img{clip:rect(0,100px,70px,0);position:absolute;top:-3px;left:-3px;max-height:110px;max-width:140px;min-width:100px}#postsquirrly.sq_sticky .sq_search ul li.sq_search_img_li{margin:0 3px 6px 7px}#postsquirrly:not(.sq_sticky) #sq_blocksearch .sq_search ul li.sq_search_img_li{width:126px}#postsquirrly:not(.sq_sticky) #sq_blocksearch .sq_search ul li.sq_search_img_li>img{clip:rect(0,126px,70px,0);max-width:150px;max-height:150px;min-width:126px}#postsquirrly:not(.sq_sticky) #sq_nokeyword{display:none!important}#sq_blocksearch #sq_search_img_filter{width:100%;background-color:#fff;text-align:center;padding:10px 0;border-top:1px solid #e8e8e8}#sq_blocksearch #sq_search_img_filter #sq_search_img_nolicence{margin:0 5px}#sq_blocksearch #sq_search_img_filter label#sq_search_img_nolicence_label{position:relative;color:#1d1f24;text-shadow:1px 1px #fff}#sq_blocksearch #sq_search_img_filter label.checked span{background-color:#6200ee}.sq_zoomImg_img{width:auto;height:54px}.sq_zoomImg{position:absolute;visibility:visible}.sq_zoomImg_Inner{background-color:#fff;border:1px solid #d9d9d9;-moz-box-shadow:0 4px 16px rgba(0,0,0,.2);-webkit-box-shadow:0 4px 16px rgba(0,0,0,.2);box-shadow:0 4px 16px rgba(0,0,0,.2);color:#555;padding:5px;position:relative}.sq_zoomImg_frame img{border:1px solid #d9d9d9;display:block;margin:auto;max-width:115px;max-height:115px}#sq_blocksearch .sq_search li.sq_search_img_li .sq_attribute{position:absolute;bottom:-3px;right:-3px;background:#fff;border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;z-index:1;padding:0 5px}#sq_blocksearch .sq_search ul li.search_category{clear:both;color:#464646;width:100%;height:16px;border:0}#sq_blocksearch .sq_search ul li.sq_search_twitter_li a{float:left;padding:0 5px;margin:0;height:auto}#sq_blocksearch .sq_search ul li.sq_search_twitter_li .sq_author_avatar{float:left;width:36px;height:36px;margin:3px 10px 0 0}#sq_blocksearch .sq_search ul li.sq_search_twitter_li .sq_quote_content{margin-left:46px}#sq_blocksearch .sq_search ul li.sq_search_twitter_li .sq_quote_author{color:#555;line-height:15px}#sq_blocksearch .sq_search ul li.sq_search_twitter_li .sq_author_name{line-height:19px;margin-right:5px;color:#555;font-weight:400;text-align:left}#sq_blocksearch .sq_search ul li.sq_search_twitter_li .sq_quote_text{margin-left:0}#sq_blocksearch .sq_search ul li.sq_search_blog_li .sq_news_title{font-weight:700;color:#333;line-height:19px;margin:0 0 5px}#sq_blocksearch .sq_search ul li.sq_search_blog_li .sq_news_text{color:#333;line-height:19px;text-align:left}#sq_blocksearch .sq_show_mgs{clear:both;display:block;padding:10px;margin-top:10px;border-top:1px dashed #d1d1d1;text-align:center}#sq_blocksearch .sq_more{clear:both;position:relative;width:100%;text-align:center;padding:0;margin:0 0 5px}#sq_blocksearch .sq_more span{display:block;width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-top:10px solid #6200ee;padding:0;margin:0 auto;cursor:pointer}#sq_suggestion .sq_show_mgs{margin:20px auto 0;border-top:none;text-align:center}#sq_blog_preview{position:fixed!important;border:1px solid #e5e5e5;padding:0;margin-bottom:15px;left:15%;top:10%;width:70%;height:80%;overflow:auto;background-color:#fff;z-index:999999}#sq_blog_preview_overlay{display:block;position:absolute;background-color:#999;border:0;content:" ";left:0;top:0;width:100%;height:100%;border-radius:2px 2px 0 0;opacity:.3;z-index:999998}#sq_blog_preview #sq_blog_preview_partner{position:absolute;top:15px;right:20px}#sq_blog_preview #sq_blog_preview_partner a{background-color:#333;text-decoration:none;color:#fff;font-size:.875rem;font-weight:700;margin-left:5px;padding:0 3px;border:1px solid #333}#sq_blog_preview #sq_blog_preview_title{display:block;font-size:1.2rem;font-weight:400;line-height:30px;color:#333;border-bottom:1px dashed #d1d1d1;margin:0 0 10px;padding:10px 0 10px 10px}#sq_blog_preview #sq_blog_preview_body{display:block;font-size:.875rem;color:#333;line-height:16px;text-align:left;padding:0 0 0 10px;overflow-y:auto;overflow-x:hidden}#sq_blog_preview #sq_blog_preview_body p{position:relative;background-color:transparent;line-height:24px;padding:0;margin:0 0 16px;text-align:left;white-space:normal;color:#333}#sq_blog_preview #sq_blog_preview_body .sq_mark{background-color:#ffed5f;color:#000;padding:0 3px;font-size:.875rem;line-height:20px;box-shadow:0 0 5px #fff6ac;-moz-box-shadow:0 0 5px #fff6ac;-webkit-box-shadow:0 0 5px #fff6ac}#sq_blog_preview #sq_blog_preview_body .sq_blog_option{position:absolute;display:none;background-color:#f5f5f5;bottom:0;right:5px;cursor:pointer;z-index:1}#sq_blog_preview #sq_blog_preview_body p:hover{background-color:#f5f5f5}#sq_blog_preview #sq_blog_preview_body p:hover .sq_blog_option{display:block;-webkit-animation:fadeIn .3s;-moz-animation:fadeIn .3s;animation:fadeIn .3s}#sq_blocksearch{position:relative}#sq_blocksearch .sq_search ul li.sq_search_wiki_li .sq_wiki_title{font-weight:700;color:#333;margin:5px 0}#sq_blocksearch .sq_search ul li.sq_search_local_li .sq_local_title{font-weight:700;color:#333;line-height:18px;margin:0 0 5px}#sq_blocksearch .sq_research_div{display:none;clear:both;position:relative;width:100%!important;line-height:40px;padding:0;margin:0!important;text-align:center}#sq_blocksearch .sq_research_div #sq_research_link{font-weight:700;color:#21759b;margin-top:10px;text-align:center;cursor:pointer;text-decoration:none}#sq_blog_preview #sq_blog_preview_close{position:absolute;font-weight:700;color:#999;width:10px;line-height:16px;text-align:center;padding:0 4px 2px;border-radius:10px;cursor:pointer;z-index:2;top:20px;right:20px;font-size:20px}#sq_blockseo #sq_seo_refresh{text-align:center;height:29px!important;min-height:29px!important;cursor:pointer;position:relative}#sq_blockseo progress::-webkit-progress-bar{background-color:#ccc;height:5px}#sq_blockseo progress::-webkit-progress-value{background-color:#6200ee;height:5px}#sq_blockseo progress{background-color:#6200ee;height:5px;line-height:5px}#wpb_visual_composer mark.mark_counter,.edit-post-visual-editor mark.mark_counter,.elementor-editor-active #content .elementor-container mark.mark_counter,.elementor-editor-active #content .elementor-inner mark.mark_counter{background:#fdffc7!important;color:#383838!important;padding:0 5px}#wpb_visual_composer mark.mark_counter:after,.edit-post-visual-editor mark.mark_counter:after,.elementor-editor-active #content .elementor-container mark.mark_counter:after,.elementor-editor-active #content .elementor-inner mark.mark_counter:after{content:attr(data-cnt)!important;color:gray;font-size:70%;line-height:50%;vertical-align:baseline;position:relative;top:-9px}#elementor-container .sq_highlight .sq_highlight_cnt,.elementor-editor-active #content .elementor-container mark.mark_counter,.elementor-editor-active #content .elementor-inner mark.mark_counter{display:initial!important}#postsquirrly.sq_frontend #sq_options{display:none}#postsquirrly.sq_frontend ul,#postsquirrly.sq_frontend ul li{list-style:none!important}
|
view/assets/css/snippet.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
@import url(https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap);@import 'logo.min.css';@-webkit-keyframes play{0%{background-position:0}to{background-position:-400px}}@-moz-keyframes play{0%{background-position:0}to{background-position:-400px}}@-ms-keyframes play{0%{background-position:0}to{background-position:-400px}}@-o-keyframes play{0%{background-position:0}to{background-position:-400px}}@keyframes play{0%{background-position:0}to{background-position:-400px}}.sq_minloading{position:relative;opacity:.5}.sq_minloading:after{position:absolute!important;right:calc(50% - 10px)!important;top:calc(50% - 8px)!important;display:block!important;float:right!important;line-height:30px!important;content:""!important;padding:0!important;margin:0 0 0 5px!important;height:16px!important;width:20px!important;background:url(../img/minloading.png) no-repeat!important;-webkit-animation:play 1s steps(10) infinite;-moz-animation:play 1s steps(10) infinite;-o-animation:play 1s steps(10) infinite;animation:play 1s steps(10) infinite}.sq_minloading .sq_snippet_wrap{opacity:.2}#wpadminbar .sq_blocksnippet *{width:initial;height:initial;position:relative;text-shadow:initial;text-transform:initial;text-decoration:none;transition:initial;box-sizing:border-box!important;letter-spacing:normal!important;border-radius:initial;box-shadow:initial;vertical-align:initial;line-height:initial;min-height:auto;min-width:auto;max-width:100%;background:0 0;-webkit-text-size-adjust:100%!important;-ms-text-size-adjust:100%!important;-webkit-tap-highlight-color:transparent!important}#wpadminbar .sq_blocksnippet :not(.fa-solid,.fa-brands),.sq_blocksnippet :not(.fa-solid,.fa-brands){font-family:"Noto Sans","Open Sans",Arial,sans-serif;font-size:13px!important;line-height:30px}#wpadminbar .sq_blocksnippet .fa-solid{font-family:'FontAwesome',serif;font-weight:800;margin:0 2px}#wpadminbar .sq_blocksnippet .fa-brands{font-family:'FontAwesomeBrands',serif;font-weight:400;margin:0 2px}#wpadminbar .sq_blocksnippet,.sq_blocksnippet{font-size:.875rem;font-weight:400;color:#333}#wpadminbar .sq_blocksnippet{background-color:#fff;opacity:1!important;width:850px!important;max-height:500px;overflow-x:auto;position:fixed!important;right:5px}#wpadminbar li.open>.ab-sub-wrapper{display:block!important}#wpadminbar #wp-admin-bar-sq_bar_menu .ab-item{cursor:pointer!important;padding:0 15px!important;line-height:30px!important}#wpadminbar .quicklinks #wp-admin-bar-sq_bar_menu a{height:inherit!important;margin:inherit!important;display:initial}#wpadminbar #wp-admin-bar-top-secondary #wp-admin-bar-sq_bar_menu:hover{background:#fff!important;color:#444!important}#wpadminbar #wp-admin-bar-sq_bar_menu-default{padding:0!important;min-width:500px}#wpadminbar #wp-admin-bar-sq_bar_menu-default .ab-item{display:none}#wpadminbar #wp-admin-bar-sq_bar_menu{color:#fff!important;text-decoration:none!important}#wpadminbar .ab-sub-wrapper{-webkit-box-shadow:0 7px 5px rgba(0,0,0,.2)!important;-moz-box-shadow:0 7px 5px rgba(0,0,0,.2)!important;box-shadow:0 7px 5px rgba(0,0,0,.2)!important}#wpadminbar .quicklinks #wp-admin-bar-sq_bar_menu .sq_tab_edit>.sq-row,#wpadminbar .quicklinks #wp-admin-bar-sq_bar_menu .sq_tab_preview>.sq-row,#wpadminbar .sq-nav-tabs--left li.sq-nav-item+.sq-nav-item,.sq_snippet_menu li.sq-nav-item+.sq-nav-item{margin:0!important}#wpadminbar .sq_blocksnippet .sq-small,#wpadminbar .sq_blocksnippet .sq-small span{line-height:15px!important}#wpadminbar .sq_blocksnippet a:not(.btn):not(.sq-btn):not(.sq-nav-link){color:#f16112!important;text-decoration:none!important}#wpadminbar .sq_blocksnippet ul{margin-top:0!important;margin-bottom:14px!important}#wpadminbar .listing-second-view .slides_count,#wpadminbar .lp-listing-form input[type=radio]:checked+label:before,#wpadminbar input[type=checkbox]:checked+label:before{font-size:14px!important}.postbox-container .inside{border-top:1px solid #d3d3d3!important}.sq_blocksnippet .fa{color:#fff!important}.sq_blocksnippet .hndle{display:block;margin:1px!important;padding:10px!important}.sq_blocksnippet a *,.sq_blocksnippet a:not(.btn):not(.sq-btn):not(.sq-nav-link),.sq_blocksnippet a:not(.btn):not(.sq-btn):not(.sq-nav-link):hover,.sq_blocksnippet a:not(.btn):not(.sq-btn):not(.sq-nav-link):hover *{color:#1c3c50!important;text-decoration:none!important}.sq_blocksnippet input[type=text],.sq_blocksnippet select,.sq_blocksnippet textarea{background-color:#fff;resize:none}.sq_snippet_wrap select option:active,.sq_snippet_wrap select option:checked,.sq_snippet_wrap select option:focus,.sq_snippet_wrap select option:hover,.sq_snippet_wrap select:focus>option:checked{background-color:#6200ee!important;color:#fff!important}.sq_blocksnippet,.sq_blocksnippet ::after,.sq_blocksnippet ::before{box-sizing:border-box}.sq_blocksnippet{background-color:#fff!important;min-height:50px!important;min-width:600px!important}.sq_blocksnippet .inside,.sq_snippet_preview li{padding:0!important;margin:0!important}.sq_blocksnippet .sq_tab_preview{min-height:223px!important}.sq_blocksnippet .sq_savenotice{width:100%!important;position:absolute!important;top:33px!important;left:0!important}.sq_blocksnippet .sq_tab_facebook .sq_og_media_preview,.sq_blocksnippet .sq_tab_twitter .sq_tw_media_preview{line-height:1!important;max-width:100%!important}.sq_blocksnippet .sq_snippet_smallimage{width:150px!important;max-height:105px!important;height:105px!important;float:left!important;margin-right:10px!important}.sq_blocksnippet .sq_tab_facebook .sq_og_image_close,.sq_blocksnippet .sq_tab_twitter .sq_tw_image_close{display:none;color:#444!important;z-index:100}.sq_blocksnippet .sq_absolute{position:absolute!important}.sq_snippet_preview{position:relative!important}.sq_snippet_preview:hover:before{opacity:.8!important}.sq_snippet_preview li{float:none!important;font-family:arial,sans-serif!important;font-size:13px!important;font-weight:400!important;text-align:left!important;line-height:10px!important}.sq_snippet_preview .sq_snippet_name{position:absolute!important;right:0!important;top:5px!important;background-color:linen!important;border:1px solid #ddd!important;font-size:10px!important;padding:0 10px!important}.sq_snippet_preview .sq_snippet_title{color:#1a1a1a!important;text-decoration:none!important;cursor:pointer!important;line-height:20px!important;font-size:16px!important;font-weight:700!important;margin:5px auto!important}.sq_snippet_preview .sq_snippet_url,.sq_snippet_preview .sq_snippet_url a{color:#093!important;font-size:11px!important;line-height:15px!important;overflow:visible!important;text-decoration:none!important}.sq_snippet_preview .sq_snippet_description{color:#8c8c8c!important;font-size:13px!important;line-height:16px!important;margin:5px auto!important;overflow:hidden!important}.sq_snippet_preview .sq_snippet_keywords{color:#1a0dab!important;font-size:12px!important;line-height:18px!important;margin-top:5px!important}.sq_snippet_preview .sq_snippet_ul li#sq_snippet_keywords{margin:10px 0 0!important;color:#00f!important;font-size:10px!important;cursor:pointer!important}.sq_snippet_preview .sq_snippet_image{max-height:260px;overflow:hidden;justify-content:center;display:flex}.sq_snippet_preview .sq_snippet_disclaimer{position:absolute!important;left:0!important;bottom:-17px!important;color:#999!important;font-size:10px!important;padding:0 3px!important}.sq_snippet_preview div.sq_fp_ogimage img{max-width:100%!important}.sq_blocksnippet .sq_tab_facebook .sq_og_image_close,.sq_blocksnippet .sq_tab_twitter .sq_tw_image_close,.sq_snippet_preview div.sq_fp_ogimage_close{position:absolute!important;right:-8px!important;top:-8px!important;border:1px #ccc!important;background:#ddd!important;border-radius:50%!important;width:20px!important;line-height:20px!important;text-align:center!important;cursor:pointer!important}.sq_tab_facebook .sq_snippet_preview,.sq_tab_twitter .sq_snippet_preview{max-width:500px!important}.sq_tab_facebook .sq_snippet_preview img:not(.emoji),.sq_tab_twitter .sq_snippet_preview img:not(.emoji){max-height:100%!important;height:100%!important;width:100%!important}.sq_tab_facebook .sq_snippet_preview .sq_snippet_title,.sq_tab_twitter .sq_snippet_preview .sq_snippet_title{font-size:18px!important;line-height:22px!important;margin:12px 0!important}.sq_tab_facebook .sq_snippet_preview .sq_snippet_author{font-size:14px!important;margin-top:5px!important;color:#999!important;font-variant:all-small-caps!important;float:right!important}.sq_tab_facebook .sq_snippet_preview .sq_snippet_sitename,.sq_tab_twitter .sq_snippet_preview .sq_snippet_sitename{font-size:14px!important;margin-top:10px!important;color:#999!important;font-variant:all-small-caps!important;float:none!important}@media only screen and (max-width:1024px){.sq_snippet_preview #sq_snippet_ul #sq_snippet_title{clear:both!important}}#wpadminbar .quicklinks #wp-admin-bar-sq_bar_menu .sq_snippet_menu,.sq_snippet_menu{flex:0 0 180px!important;box-sizing:border-box!important}#wpadminbar .quicklinks #wp-admin-bar-sq_bar_menu .sq_snippet_menu li.sq-nav-item a.sq-nav-icon,.sq_snippet_menu li.sq-nav-item a.sq-nav-icon{float:right;z-index:1;margin:13px!important}#wpadminbar .quicklinks #wp-admin-bar-sq_bar_menu .sq_snippet_menu li.sq-nav-item a.sq-nav-icon i,.sq_blocksnippet .sq-tab-content .sq-tab-panel i,.sq_blocksnippet .sq_snippet_menu li.sq-nav-item a.sq-nav-icon i{display:inline;color:#6200ee!important;line-height:25px}#wpadminbar .quicklinks #wp-admin-bar-sq_bar_menu .sq_snippet_menu li.sq-nav-item a.sq-nav-link,.sq_snippet_menu li.sq-nav-item a.sq-nav-link{line-height:20px!important}.sq_snippet_wrap .sq-nav-tabs--left .sq-nav-link.active,.sq_snippet_wrap .sq-nav-tabs--left .sq-nav-link.active:hover{border:0!important;background-color:#6200ee!important;color:#fff!important}.sq_blocksnippet .sq-action-title{font-size:14px!important;font-weight:400!important;color:#74767d!important;padding:0 5px!important;margin:0!important;line-height:33px!important;max-width:100%!important;text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important;display:inline-block!important}.sq_blocksnippet .sq-actions{display:none;position:absolute!important;left:0!important;top:52px;width:100%!important;height:105px!important;border:1px solid #ddd!important;border-radius:2px!important;overflow:auto!important;overflow-x:hidden!important;box-shadow:0 0 2px 1px #999!important;background-color:#fff!important;color:#6c757d!important;z-index:100000!important}.sq_blocksnippet div.sq-actions .sq-action{width:100%!important;line-height:0!important;height:auto!important;display:block!important;cursor:pointer!important;padding:0!important;margin:0!important}.sq_blocksnippet div.sq-actions .sq-action.active,.sq_blocksnippet div.sq-actions .sq-action.focused,.sq_blocksnippet div.sq-actions .sq-action:hover{background-color:#f1f1f1}.sq_blocksnippet div.sq-actions .sq-action span.sq-action-title span{color:#0a0a0a!important;font-size:14px!important;font-weight:700!important}.sq_blocksnippet .sq-bootstrap-tagsinput{background-color:#f1f1f1!important;border:1px solid #ccc!important;box-shadow:inset 0 1px 1px rgba(0,0,0,.075)!important;padding:0 6px!important;color:#555!important;vertical-align:middle!important;line-height:22px!important;cursor:text!important}.sq_blocksnippet .sq-bootstrap-tagsinput input{border:0!important;box-shadow:none!important;outline:0!important;padding:0 5px!important;margin:5px 0 5px 3px!important;width:auto!important;max-width:inherit!important}.sq_blocksnippet .sq-form-control::placeholder{color:#777!important;opacity:.8!important;font-style:italic!important}.sq_blocksnippet .sq-form-control input::-moz-placeholder,.sq_blocksnippet .sq-form-control textarea::-moz-placeholder{color:#777!important;opacity:.8!important;font-style:italic!important}.sq_blocksnippet .sq-form-control input:-ms-input-placeholder,.sq_blocksnippet .sq-form-control textarea:-ms-input-placeholder{color:#777!important;opacity:.8!important;font-style:italic!important}.sq_blocksnippet .sq-form-control input::-webkit-input-placeholder,.sq_blocksnippet .sq-form-control textarea::-webkit-input-placeholder{color:#777!important;opacity:.8!important;font-style:italic!important}.sq_blocksnippet .sq-bootstrap-tagsinput input:focus{border:0!important;box-shadow:none!important}.sq_blocksnippet .sq-bootstrap-tagsinput .sq-tag{margin:5px 1px!important;font-size:100%!important;display:inline-block!important;color:#fff!important;background-color:#6200ee!important;padding:0 10px!important;line-height:30px!important}.sq_blocksnippet .sq-bootstrap-tagsinput .sq-tag [data-role=remove]{margin-left:8px!important;cursor:pointer!important}.sq_blocksnippet .sq-bootstrap-tagsinput .sq-tag [data-role=remove]:after{content:"x"!important;padding:0 2px!important}.sq_blocksnippet .sq_deactivated{position:relative!important;opacity:.4!important}.sq_blocksnippet .sq_deactivated:before{content:" "!important;position:absolute!important;height:calc(100% + 20px)!important;width:100%!important;background:#f1f1f1!important;opacity:.7!important;top:-10px!important;z-index:1000!important;cursor:pointer!important;border-radius:6px!important}.sq_blocksnippet .sq_deactivated_label{position:absolute!important;z-index:1001!important;right:0!important}.is-side .sq_blocksnippet .handle-actions{position:absolute;background:#e7e7e7;left:182px;width:120px;height:43px}.is-side .sq_blocksnippet .inside{display:none}@media only screen and (max-width:1200px){.sq_snippet_btn_edit,.sq_snippet_btn_refresh{min-width:110px;margin-bottom:1px}.sq_tab_facebook .sq_snippet_btn_edit,.sq_tab_facebook .sq_snippet_btn_refresh,.sq_tab_twitter .sq_snippet_btn_edit,.sq_tab_twitter .sq_snippet_btn_refresh{min-width:140px;margin-bottom:1px}}
|
1 |
+
@import url(https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap);@import 'logo.min.css';@-webkit-keyframes play{0%{background-position:0}to{background-position:-400px}}@-moz-keyframes play{0%{background-position:0}to{background-position:-400px}}@-ms-keyframes play{0%{background-position:0}to{background-position:-400px}}@-o-keyframes play{0%{background-position:0}to{background-position:-400px}}@keyframes play{0%{background-position:0}to{background-position:-400px}}.sq_minloading{position:relative;opacity:.5}.sq_minloading:after{position:absolute!important;right:calc(50% - 10px)!important;top:calc(50% - 8px)!important;display:block!important;float:right!important;line-height:30px!important;content:""!important;padding:0!important;margin:0 0 0 5px!important;height:16px!important;width:20px!important;background:url(../img/minloading.png) no-repeat!important;-webkit-animation:play 1s steps(10) infinite;-moz-animation:play 1s steps(10) infinite;-o-animation:play 1s steps(10) infinite;animation:play 1s steps(10) infinite}.sq_minloading .sq_snippet_wrap{opacity:.2}#wpadminbar .sq_blocksnippet *{width:initial;height:initial;position:relative;text-shadow:initial;text-transform:initial;text-decoration:none;transition:initial;box-sizing:border-box!important;letter-spacing:normal!important;border-radius:initial;box-shadow:initial;vertical-align:initial;line-height:initial;min-height:auto;min-width:auto;max-width:100%;background:0 0;-webkit-text-size-adjust:100%!important;-ms-text-size-adjust:100%!important;-webkit-tap-highlight-color:transparent!important}body.wp-admin #wpadminbar #wp-admin-bar-sq_bar_menu{display:none}#wpadminbar .sq_blocksnippet :not(.fa-solid,.fa-brands),.sq_blocksnippet :not(.fa-solid,.fa-brands){font-family:"Noto Sans","Open Sans",Arial,sans-serif;font-size:13px!important;line-height:30px}#wpadminbar .sq_blocksnippet .fa-solid{font-family:'FontAwesome',serif;font-weight:800;margin:0 2px}#wpadminbar .sq_blocksnippet .fa-brands{font-family:'FontAwesomeBrands',serif;font-weight:400;margin:0 2px}#wpadminbar .sq_blocksnippet,.sq_blocksnippet{font-size:.875rem;font-weight:400;color:#333}#wpadminbar .sq_blocksnippet{background-color:#fff;opacity:1!important;width:850px!important;max-height:500px;overflow-x:auto;position:fixed!important;right:5px}#wpadminbar li.open>.ab-sub-wrapper{display:block!important}#wpadminbar #wp-admin-bar-sq_bar_menu .ab-item{cursor:pointer!important;padding:0 15px!important;line-height:30px!important}#wpadminbar .quicklinks #wp-admin-bar-sq_bar_menu a{height:inherit!important;margin:inherit!important;display:initial}#wpadminbar #wp-admin-bar-top-secondary #wp-admin-bar-sq_bar_menu:hover{background:#fff!important;color:#444!important}#wpadminbar #wp-admin-bar-sq_bar_menu-default{padding:0!important;min-width:500px}#wpadminbar #wp-admin-bar-sq_bar_menu-default .ab-item{display:none}#wpadminbar #wp-admin-bar-sq_bar_menu{color:#fff!important;text-decoration:none!important}#wpadminbar .ab-sub-wrapper{-webkit-box-shadow:0 7px 5px rgba(0,0,0,.2)!important;-moz-box-shadow:0 7px 5px rgba(0,0,0,.2)!important;box-shadow:0 7px 5px rgba(0,0,0,.2)!important}#wpadminbar .quicklinks #wp-admin-bar-sq_bar_menu .sq_tab_edit>.sq-row,#wpadminbar .quicklinks #wp-admin-bar-sq_bar_menu .sq_tab_preview>.sq-row,#wpadminbar .sq-nav-tabs--left li.sq-nav-item+.sq-nav-item,.sq_snippet_menu li.sq-nav-item+.sq-nav-item{margin:0!important}#wpadminbar .sq_blocksnippet .sq-small,#wpadminbar .sq_blocksnippet .sq-small span{line-height:15px!important}#wpadminbar .sq_blocksnippet a:not(.btn):not(.sq-btn):not(.sq-nav-link){color:#f16112!important;text-decoration:none!important}#wpadminbar .sq_blocksnippet ul{margin-top:0!important;margin-bottom:14px!important}#wpadminbar .listing-second-view .slides_count,#wpadminbar .lp-listing-form input[type=radio]:checked+label:before,#wpadminbar input[type=checkbox]:checked+label:before{font-size:14px!important}.postbox-container .inside{border-top:1px solid #d3d3d3!important}.sq_blocksnippet .fa{color:#fff!important}.sq_blocksnippet .hndle{display:block;margin:1px!important;padding:10px!important}.sq_blocksnippet a *,.sq_blocksnippet a:not(.btn):not(.sq-btn):not(.sq-nav-link),.sq_blocksnippet a:not(.btn):not(.sq-btn):not(.sq-nav-link):hover,.sq_blocksnippet a:not(.btn):not(.sq-btn):not(.sq-nav-link):hover *{color:#1c3c50!important;text-decoration:none!important}.sq_blocksnippet input[type=text],.sq_blocksnippet select,.sq_blocksnippet textarea{background-color:#fff;resize:none}.sq_snippet_wrap select option:active,.sq_snippet_wrap select option:checked,.sq_snippet_wrap select option:focus,.sq_snippet_wrap select option:hover,.sq_snippet_wrap select:focus>option:checked{background-color:#6200ee!important;color:#fff!important}.sq_blocksnippet,.sq_blocksnippet ::after,.sq_blocksnippet ::before{box-sizing:border-box}.sq_blocksnippet{background-color:#fff!important;min-height:50px!important;min-width:600px!important}.sq_blocksnippet .inside,.sq_snippet_preview li{padding:0!important;margin:0!important}.sq_blocksnippet .sq_tab_preview{min-height:223px!important}.sq_blocksnippet .sq_savenotice{width:100%!important;position:absolute!important;top:33px!important;left:0!important}.sq_blocksnippet .sq_tab_facebook .sq_og_media_preview,.sq_blocksnippet .sq_tab_twitter .sq_tw_media_preview{line-height:1!important;max-width:100%!important}.sq_blocksnippet .sq_snippet_smallimage{width:150px!important;max-height:105px!important;height:105px!important;float:left!important;margin-right:10px!important}.sq_blocksnippet .sq_tab_facebook .sq_og_image_close,.sq_blocksnippet .sq_tab_twitter .sq_tw_image_close{display:none;color:#444!important;z-index:100}.sq_blocksnippet .sq_absolute{position:absolute!important}.sq_snippet_preview{position:relative!important}.sq_snippet_preview:hover:before{opacity:.8!important}.sq_snippet_preview li{float:none!important;font-family:arial,sans-serif!important;font-size:13px!important;font-weight:400!important;text-align:left!important;line-height:10px!important}.sq_snippet_preview .sq_snippet_name{position:absolute!important;right:0!important;top:5px!important;background-color:linen!important;border:1px solid #ddd!important;font-size:10px!important;padding:0 10px!important}.sq_snippet_preview .sq_snippet_title{color:#1a1a1a!important;text-decoration:none!important;cursor:pointer!important;line-height:20px!important;font-size:16px!important;font-weight:700!important;margin:5px auto!important}.sq_snippet_preview .sq_snippet_url,.sq_snippet_preview .sq_snippet_url a{color:#093!important;font-size:11px!important;line-height:15px!important;overflow:visible!important;text-decoration:none!important}.sq_snippet_preview .sq_snippet_description{color:#8c8c8c!important;font-size:13px!important;line-height:16px!important;margin:5px auto!important;overflow:hidden!important}.sq_snippet_preview .sq_snippet_keywords{color:#1a0dab!important;font-size:12px!important;line-height:18px!important;margin-top:5px!important}.sq_snippet_preview .sq_snippet_ul li#sq_snippet_keywords{margin:10px 0 0!important;color:#00f!important;font-size:10px!important;cursor:pointer!important}.sq_snippet_preview .sq_snippet_image{max-height:260px;overflow:hidden;justify-content:center;display:flex}.sq_snippet_preview .sq_snippet_disclaimer{position:absolute!important;left:0!important;bottom:-17px!important;color:#999!important;font-size:10px!important;padding:0 3px!important}.sq_snippet_preview div.sq_fp_ogimage img{max-width:100%!important}.sq_blocksnippet .sq_tab_facebook .sq_og_image_close,.sq_blocksnippet .sq_tab_twitter .sq_tw_image_close,.sq_snippet_preview div.sq_fp_ogimage_close{position:absolute!important;right:-8px!important;top:-8px!important;border:1px #ccc!important;background:#ddd!important;border-radius:50%!important;width:20px!important;line-height:20px!important;text-align:center!important;cursor:pointer!important}.sq_tab_facebook .sq_snippet_preview,.sq_tab_twitter .sq_snippet_preview{max-width:500px!important}.sq_tab_facebook .sq_snippet_preview img:not(.emoji),.sq_tab_twitter .sq_snippet_preview img:not(.emoji){max-height:100%!important;height:100%!important;width:100%!important}.sq_tab_facebook .sq_snippet_preview .sq_snippet_title,.sq_tab_twitter .sq_snippet_preview .sq_snippet_title{font-size:18px!important;line-height:22px!important;margin:12px 0!important}.sq_tab_facebook .sq_snippet_preview .sq_snippet_author{font-size:14px!important;margin-top:5px!important;color:#999!important;font-variant:all-small-caps!important;float:right!important}.sq_tab_facebook .sq_snippet_preview .sq_snippet_sitename,.sq_tab_twitter .sq_snippet_preview .sq_snippet_sitename{font-size:14px!important;margin-top:10px!important;color:#999!important;font-variant:all-small-caps!important;float:none!important}@media only screen and (max-width:1024px){.sq_snippet_preview #sq_snippet_ul #sq_snippet_title{clear:both!important}}#wpadminbar .quicklinks #wp-admin-bar-sq_bar_menu .sq_snippet_menu,.sq_snippet_menu{flex:0 0 180px!important;box-sizing:border-box!important}#wpadminbar .quicklinks #wp-admin-bar-sq_bar_menu .sq_snippet_menu li.sq-nav-item a.sq-nav-icon,.sq_snippet_menu li.sq-nav-item a.sq-nav-icon{float:right;z-index:1;margin:13px!important}#wpadminbar .quicklinks #wp-admin-bar-sq_bar_menu .sq_snippet_menu li.sq-nav-item a.sq-nav-icon i,.sq_blocksnippet .sq-tab-content .sq-tab-panel i,.sq_blocksnippet .sq_snippet_menu li.sq-nav-item a.sq-nav-icon i{display:inline;color:#6200ee!important;line-height:25px}#wpadminbar .quicklinks #wp-admin-bar-sq_bar_menu .sq_snippet_menu li.sq-nav-item a.sq-nav-link,.sq_snippet_menu li.sq-nav-item a.sq-nav-link{line-height:20px!important}.sq_snippet_wrap .sq-nav-tabs--left .sq-nav-link.active,.sq_snippet_wrap .sq-nav-tabs--left .sq-nav-link.active:hover{border:0!important;background-color:#6200ee!important;color:#fff!important}.sq_blocksnippet .sq-action-title{font-size:14px!important;font-weight:400!important;color:#74767d!important;padding:0 5px!important;margin:0!important;line-height:33px!important;max-width:100%!important;text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important;display:inline-block!important}.sq_blocksnippet .sq-actions{display:none;position:absolute!important;left:0!important;top:52px;width:100%!important;height:105px!important;border:1px solid #ddd!important;border-radius:2px!important;overflow:auto!important;overflow-x:hidden!important;box-shadow:0 0 2px 1px #999!important;background-color:#fff!important;color:#6c757d!important;z-index:100000!important}.sq_blocksnippet div.sq-actions .sq-action{width:100%!important;line-height:0!important;height:auto!important;display:block!important;cursor:pointer!important;padding:0!important;margin:0!important}.sq_blocksnippet div.sq-actions .sq-action.active,.sq_blocksnippet div.sq-actions .sq-action.focused,.sq_blocksnippet div.sq-actions .sq-action:hover{background-color:#f1f1f1}.sq_blocksnippet div.sq-actions .sq-action span.sq-action-title span{color:#0a0a0a!important;font-size:14px!important;font-weight:700!important}.sq_blocksnippet .sq-bootstrap-tagsinput{background-color:#f1f1f1!important;border:1px solid #ccc!important;box-shadow:inset 0 1px 1px rgba(0,0,0,.075)!important;padding:0 6px!important;color:#555!important;vertical-align:middle!important;line-height:22px!important;cursor:text!important}.sq_blocksnippet .sq-bootstrap-tagsinput input{border:0!important;box-shadow:none!important;outline:0!important;padding:0 5px!important;margin:5px 0 5px 3px!important;width:auto!important;max-width:inherit!important}.sq_blocksnippet .sq-form-control::placeholder{color:#777!important;opacity:.8!important;font-style:italic!important}.sq_blocksnippet .sq-form-control input::-moz-placeholder,.sq_blocksnippet .sq-form-control textarea::-moz-placeholder{color:#777!important;opacity:.8!important;font-style:italic!important}.sq_blocksnippet .sq-form-control input:-ms-input-placeholder,.sq_blocksnippet .sq-form-control textarea:-ms-input-placeholder{color:#777!important;opacity:.8!important;font-style:italic!important}.sq_blocksnippet .sq-form-control input::-webkit-input-placeholder,.sq_blocksnippet .sq-form-control textarea::-webkit-input-placeholder{color:#777!important;opacity:.8!important;font-style:italic!important}.sq_blocksnippet .sq-bootstrap-tagsinput input:focus{border:0!important;box-shadow:none!important}.sq_blocksnippet .sq-bootstrap-tagsinput .sq-tag{margin:5px 1px!important;font-size:100%!important;display:inline-block!important;color:#fff!important;background-color:#6200ee!important;padding:0 10px!important;line-height:30px!important}.sq_blocksnippet .sq-bootstrap-tagsinput .sq-tag [data-role=remove]{margin-left:8px!important;cursor:pointer!important}.sq_blocksnippet .sq-bootstrap-tagsinput .sq-tag [data-role=remove]:after{content:"x"!important;padding:0 2px!important}.sq_blocksnippet .sq_deactivated{position:relative!important;opacity:.2!important}.sq_blocksnippet .sq_deactivated:before{content:" "!important;position:absolute!important;height:calc(100% + 20px)!important;width:100%!important;background:#f1f1f1!important;opacity:.7!important;top:-10px!important;z-index:1000!important;cursor:pointer!important;border-radius:6px!important}.sq_blocksnippet .sq_deactivated_label{position:absolute!important;z-index:1001!important;right:0!important}.is-side .sq_blocksnippet .handle-actions{position:absolute;background:#e7e7e7;left:182px;width:120px;height:43px}.is-side .sq_blocksnippet .inside{display:none}@media only screen and (max-width:1200px){.sq_snippet_btn_edit,.sq_snippet_btn_refresh{min-width:110px;margin-bottom:1px}.sq_tab_facebook .sq_snippet_btn_edit,.sq_tab_facebook .sq_snippet_btn_refresh,.sq_tab_twitter .sq_snippet_btn_edit,.sq_tab_twitter .sq_snippet_btn_refresh{min-width:140px;margin-bottom:1px}}
|
view/assets/img/noconnection.png
ADDED
Binary file
|
view/assets/js/assistant/sq_blocksearch.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function($){"use strict";$.fn.sq_blocksearch=function(options){var $this=this;var settings=$.extend({type:"img",delay:1e3,processing:null,timeout:null,ajaxCall:null,gtimeout:null},options);$.sq_fields=$.extend({sq_publish_alert:$this.find("#sq_publish_alert"),sq_more:$this.find(".sq_more"),sq_keywords_research_clear:$(".sq_keywords_research_clear"),sq_keywords_research_submit:$(".sq_keywords_research_submit")},$.sq_fields);$this.init=function(){if($.sq_config.keyword===""){$.sq_blockseo.close();$this.hideTypes()}};$this.hideTypes=function(){$.sq_fields.sq_types.hide();$this.hideSearch()};$this.showTypes=function(){$.sq_fields.sq_types.show()};$this.showActiveEditor=function(){var ed=$.sq_editor.getTinymceEditor();$.sq_tinymce.addEvents(ed)};$this.hideSearch=function(){$.sq_fields.sq_search.hide();$.sq_fields.sq_search_img_filter.hide()};$this.showSearch=function(){$.sq_fields.sq_search.html("");$.sq_fields.sq_search.show();$.sq_fields.sq_search_img_filter.hide()};$this.showNoResults=function(header,keyword){$this.showSearch();$.sq_fields.sq_search.addClass("sq_error").html($.sq_config.__no_results);if(typeof header!=="undefined"&&typeof keyword!=="undefined"&&header===1){$this.addHeaderSearch(keyword)}};$this.addHeaderSearch=function(keyword){if(typeof keyword==="undefined")keyword="";if(!$.sq_fields.sq_search.find("#sq_search_second").length){$.sq_fields.sq_search.prepend('<div id="sq_search_second" style="display: none"><input type="text" id="sq_keyword_second" placeholder="Search for new keyword..." '+($.sq_strEqual($.sq_config.keyword,keyword)||keyword===""?'value=""':'value="'+keyword+'"')+' autocomplete="off" /><input type="button" id="sq_keyword_second_check" value=">"/></div>')}$.sq_fields.sq_search_second=$this.find("#sq_search_second");$.sq_fields.sq_keyword_second=$this.find("#sq_keyword_second");$.sq_fields.sq_keyword_second_check=$this.find("#sq_keyword_second_check");if($.sq_strEqual($.sq_config.keyword,keyword)){if(!$.sq_fields.sq_search.find(".sq_search_notrelevant").length){$.sq_fields.sq_search.prepend('<a href="javascript:void(0);" class="sq_search_notrelevant">'+$.sq_config.__notrelevant+"</a>");$this.find(".sq_search_notrelevant").on("click",function(){$.sq_fields.sq_search_second.show();$.sq_fields.sq_keyword_second.focus();$(this).hide()})}}else{$.sq_fields.sq_search_second.show();$.sq_fields.sq_keyword_second.focus()}$this.initialFieldValue($.sq_fields.sq_keyword_second,"black","gray");$.sq_fields.sq_keyword_second.on("keypress",function(event){if(event.keyCode===$.ui.keyCode.ENTER)$.sq_fields.sq_keyword_second_check.trigger("click");return event.keyCode!==$.ui.keyCode.ENTER});$.sq_fields.sq_keyword_second_check.on("click",function(){if($.sq_fields.sq_keyword_second.val()!==""){$this.refreshSearch(settings.type)}})};$this.initialFieldValue=function(field,active_color,inactive_color){if(field.hasClass("default")){field.css("color",inactive_color);var default_values=[];field.focus(function(){if(!default_values[this.id]){default_values[this.id]=this.value}if($.sq_strEqual(this.value,default_values[this.id])){this.value="";this.style.color=active_color}$(this).blur(function(){if(this.value===""){this.style.color=inactive_color;this.value=default_values[this.id]}})})}};$this.getSearch=function(type,start,extra_params){var keyword;if(settings.ajaxCall)settings.ajaxCall.abort();if($.sq_fields.sq_keyword_second.length>0&&$.sq_fields.sq_keyword_second.val()!==""){keyword=$.sq_fields.sq_keyword_second.val()}else{keyword=$.sq_config.keyword}var url="";var params="";if(typeof start==="undefined")start=0;if(start===0){$this.showSearch();$.sq_fields.sq_search.sq_loading()}switch(type){case"img":if($.sq_fields.sq_search_img_nolicence.is(":checked")){url=$.sq_config.sq_apiurl+"api/research/ib/images?callback=?";params="&user_url="+$.sq_config.user_url+"&url_token="+$.sq_config.url_token+"&token="+$.sq_config.token+"&page="+(start/$.sq_config.nrb+1)+"&nrb="+$.sq_config.nrb+"&hl="+$.sq_config.language+'&q="'+keyword+'"'}else{url=$.sq_config.sq_apiurl+"api/research/ib/gimages?callback=?";params="&user_url="+$.sq_config.user_url+"&url_token="+$.sq_config.url_token+"&token="+$.sq_config.token+"&page="+start+"&rpp="+$.sq_config.nrb+"&hl="+$.sq_config.language+'&q="'+keyword+'"'}break;case"twitter":url=$.sq_config.sq_apiurl+"api/research/ib/twitter?callback=?";params="&user_url="+$.sq_config.user_url+"&url_token="+$.sq_config.url_token+"&token="+$.sq_config.token+"&page="+(start/$.sq_config.nrb+1)+"&rpp="+$.sq_config.nrb+"&hl="+$.sq_config.language+'&q="'+keyword+'"';break;case"news":url="//ajax.googleapis.com/ajax/services/search/news?callback=?";params="&v=1.0&rsz="+$.sq_config.nrb+'&q="'+keyword+'"&hl='+$.sq_config.language+"&start="+start;break;case"blog":url=$.sq_config.sq_apiurl+"api/research/ib/blog?callback=?";params="&user_url="+$.sq_config.user_url+"&url_token="+$.sq_config.url_token+"&token="+$.sq_config.token+"&page="+start+"&rpp="+$.sq_config.nrb+"&hl="+$.sq_config.language+'&q="'+keyword+'"';break;case"wiki":url="//"+$.sq_config.language.substr(0,2)+".wikipedia.org/w/api.php?action=query&list=search&srwhat=text&srlimit="+(start/$.sq_config.nrb+1)*$.sq_config.nrb+"&format=json&callback=?";params='&srsearch="'+keyword+'"';break;case"local":url=sqQuery.ajaxurl;params="?action=sq_ajax_search_blog&nrb="+$.sq_config.nrb+"&sq_nonce="+sqQuery.nonce+"&exclude="+sqQuery.post+'&q="'+keyword+'"'+"&start="+start;break}if(typeof extra_params!=="undefined")params=params+"&"+extra_params;var cached=$.sq_getCache(url+params);if(cached){$this.showResults(keyword,cached,type,start)}else{settings.ajaxCall=$.getJSON(url+params,null).done(function(response){if(response instanceof Object){$this.showResults(keyword,response,type,start);$.sq_setCache(url+params,response)}else{$.sq_fields.sq_search.sq_doneloading().addClass("sq_error");if(start==0){$this.showNoResults(1,keyword)}else{$this.showNoResults(0)}}if(type==="img")$.sq_fields.sq_search_img_filter.show()}).fail(function(response){if(response.status===200&&response.responseText.indexOf("{")>0){response.responseText=response.responseText.substr(response.responseText.indexOf("{"),response.responseText.lastIndexOf("}"));try{response=$.parseJSON(response.responseText);if(response instanceof Object){$this.showResults(keyword,response,type,start);$.sq_setCache(url+params,response)}else{$.sq_fields.sq_search.sq_doneloading().addClass("sq_error");if(start===0){$this.showNoResults(1,keyword)}else{$this.showNoResults(0)}}if(type==="img")$.sq_fields.sq_search_img_filter.show()}catch(e){}}else{$.sq_fields.sq_search.sq_doneloading().addClass("sq_error");if(start===0){$this.showNoResults(1,keyword)}else{$this.showNoResults(0)}}if(type==="img")$.sq_fields.sq_search_img_filter.show()})}};$this.showResults=function(keyword,response,type,start){var items=[];var date;var domainName;$.sq_fields.sq_search.sq_doneloading().removeClass("sq_error");if(type==="img"){if(typeof response.data.responseData!=="undefined"&&typeof response.data.responseData.results!=="undefined"&&response.data.responseData.results.length>0){$.each(response.data.responseData.results,function(key,val){if(typeof val["detail"]!=="undefined"&&val["detail"]!==""){val["detail"]=val["detail"].replace(/\[a href=([^\]]*) title=([^\]]*)\]/,"$1")}items.push('<li class="sq_search_img_li" id="sq_search_img_li'+key+'" src="'+val["url"]+'" width="'+val["width"]+'" height="'+val["height"]+'" '+(typeof val["attribute"]!=="undefined"&&val["attribute"]!==""?'attribute="'+val["attribute"]+'"':"")+" >"+(typeof val["attribute"]!=="undefined"?val["attribute"]!==""?'<span class="sq_attribute" title="'+$.sq_config.__has_attributes+'">A</span>':'<span class="sq_attribute " title="'+$.sq_config.__no_attributes+'">N</span>':"")+'<img id="sq_search_img'+key+'" src="'+val["tbUrl"]+'" '+(typeof val["detail"]!=="undefined"&&val["detail"]!==""?'title="'+val["detail"]+'"':"")+' alt="'+val["contentNoFormatting"]+'" /></li>')})}else $this.showNoResults()}if(type==="twitter"){if(typeof response.data!=="undefined"&&response.data.length>0)$.each(response.data,function(key,val){date=new Date(val["created_at"]);date=$this.formatDate(date);items.push('<li class="sq_search_twitter_li sq_search_li" id="t_'+val["id"]+'" href="https://twitter.com/'+val["from_user"]+'"><a href="https://twitter.com/'+val["from_user"]+'" title="'+val["text"]+'" target="_blank" ><img src="'+val["profile_image_url"]+'" alt="'+val["from_user"]+'" class="sq_author_avatar" /></a><div class="sq_quote_content"><div class="sq_quote_author"><span class="sq_author_name">'+val["from_user"]+'</span></div> <div class="sq_quote_text truncated">'+val["text"]+'</div></div><div class="sq_info"><ul><li>'+$.sq_config.__date+": "+date+'</li></ul></div><div class="sq_attribution"><ul><li class="sq_insert">'+$.sq_config.__insertit+"</li></ul></div></li>")});else $this.showNoResults()}if(type==="news"){if(typeof response.responseData!=="undefined"&&response.responseData.results.length>0)$.each(response.responseData.results,function(key,val){date=new Date(val["publishedDate"]);date=$this.formatDate(date);domainName='<a href="'+val["unescapedUrl"]+'" target="_blank">'+$.sq_getDomain(val["unescapedUrl"])+"</a>";items.push('<li class="sq_search_blog_li sq_search_li" id="b_'+key+'" href="'+val["unescapedUrl"]+'" header="'+val["titleNoFormatting"]+'"><div class="sq_news_content"><div class="sq_news_title">'+val["titleNoFormatting"]+'</div><div class="sq_news_text">'+val["content"]+'</div><div class="sq_info"><ul><li>'+$.sq_config.__date+": "+date+"</li><li>source: "+domainName+'</li></ul></div></div><div class="sq_attribution"><ul><li class="sq_read">'+$.sq_config.__readit+'</li><li class="sq_insert">'+$.sq_config.__insertasbox+'</li><li class="sq_reference">'+$.sq_config.__reference+"</li></ul></div></li>")});else $this.showNoResults()}if(type==="blog"){if(typeof response!=="undefined"&&typeof response.data.results!=="undefined"&&response.data.results.length>0)$.each(response.data.results,function(key,val){domainName='<a href="'+val["url"]+'" target="_blank">'+val["visibleUrl"]+"</a>";items.push('<li class="sq_search_blog_li sq_search_li" id="b_'+key+'" href="'+val["url"]+'" header="'+val["titleNoFormatting"]+'" ><div class="sq_news_content"><div class="sq_news_title">'+val["titleNoFormatting"]+'</div><div class="sq_news_text">'+val["content"]+'</div><div class="sq_info"><ul><li>source: '+domainName+'</li></ul></div></div><div class="sq_attribution"><ul><li class="sq_read">'+$.sq_config.__readit+'</li><li class="sq_insert">'+$.sq_config.__insertasbox+'</li><li class="sq_reference">'+$.sq_config.__reference+"</li></ul></div></li>")});else $this.showNoResults()}if(type==="wiki"){var wikihref="//"+$.sq_config.language.substr(0,2)+".wikipedia.org/wiki/";if(typeof response.query!=="undefined"&&response.query.search.length>0)$.each(response.query.search,function(key,val){date=new Date(val.timestamp);date=$this.formatDate(date);if($("#w_"+key).length==0)items.push('<li class="sq_search_wiki_li sq_search_li" id="w_'+key+'" href="'+wikihref+val.title.replace(/ /g,"_")+'" ><div class="sq_wiki_content"><div class="sq_wiki_title">'+val.title+'</div><div class="sq_wiki_text truncated">'+val.snippet+'</div><div class="sq_info"><ul><li>'+$.sq_config.__date+": "+date+'</li></ul></div><div class="sq_attribution"><ul><li class="sq_read">'+$.sq_config.__readit+'</li><li class="sq_insert">'+$.sq_config.__insertit+"</li></ul></div></li>")});else $this.showNoResults()}if(type==="local"){if(typeof response.results!=="undefined"&&response.results.length>0)$.each(response.results,function(key,val){date=new Date(val.date);date=$this.formatDate(date);items.push('<li class="sq_search_local_li sq_search_li" id="l_'+val["id"]+'" href="'+val["url"]+'" header="'+val["title"]+'" ><div class="sq_local_content"><div class="sq_local_title">'+val["title"]+'</div><div class="sq_local_text truncated">'+val["content"]+'</div><div class="sq_info"><ul><li>'+$.sq_config.__date+": "+date+'</li></ul></div><div class="sq_attribution"><ul><li class="sq_insert">'+$.sq_config.__insertit+'</li><li class="sq_reference">'+$.sq_config.__reference+'</li><li class="sq_link">'+$.sq_config.__addlink+"</li></ul></div></li>")});else $this.showNoResults()}if(items.length>0){if(start===0){$.sq_fields.sq_search.append($("<ul/>",{html:items.join("")}));$this.addHeaderSearch(keyword)}else{$.sq_fields.sq_search.find("ul").first().append(items.join(""))}$this.addEvents("click",type,start)}else{if(start===0){$this.showNoResults(1,keyword)}else{$this.showNoResults(0)}}if($.sq_fields.sq_more.length>0){$.sq_fields.sq_more.html("<span />");$.sq_fields.sq_more.sq_doneloading();$.sq_fields.sq_more.on("click");if(items.length<$.sq_config.nrb)$.sq_fields.sq_more.hide()}$this.find(".sq_search li.sq_search_li .sq_attribution > ul").show()};$this.addEvents=function(event,type,start){if(type==="img"){$this.find("li.sq_search_img_li img").off(event).on(event,function(){if($.sq_isGutenberg()){var ed=$.sq_editor.getBlockEditor("dispatch");if(ed)ed.insertBlock(wp.blocks.createBlock("core/image",{url:$(this).parent("li").attr("src"),className:"sq_image",alt:$.sq_config.keyword.replace(/\"/g,"")}),undefined);$.sq_blockseo.callback()}else{$.sq_editor.insert($this.packimg($(this).attr("id"),$(this).parent("li").attr("src"),$(this).parent("li")));if(typeof $(this).parent("li").attr("attribute")!=="undefined"&&typeof $.sq_config.__sq_photo_copyright!=="")$.sq_editor.insert($.sq_config.__sq_photo_copyright.replace("%s",$(this).parent("li").attr("attribute")))}});$this.find("li.sq_search_img_li img").on("dragstart",function(event){if($.sq_config.editor_type==="html"){event.originalEvent.dataTransfer.setData("text/plain",$(this).parent("li").html())}});$.sq_fields.sq_search_img_filter.show()}if(type==="twitter"){$this.find("li.sq_search_twitter_li .sq_insert").off(event).on(event,function(){if($.sq_isGutenberg()){var sq_block=wp.blocks.createBlock("core/html",{content:$this.packtweet($(this).parents("li:last"))});var ed=$.sq_editor.getBlockEditor("dispatch");if(ed)ed.insertBlock(sq_block,undefined);$("#block-"+sq_block.clientId).find(".editor-block-toolbar").find("button").trigger("click");$.sq_blockseo.callback()}else{$.sq_editor.insert($this.packtweet($(this).parents("li:last")))}})}if(type==="wiki"){$this.find("li.sq_search_wiki_li .sq_insert").off(event).on(event,function(){if($.sq_isGutenberg()){var sq_block=wp.blocks.createBlock("core/html",{content:$this.packwiki($(this).parents("li:last"))});var ed=$.sq_editor.getBlockEditor("dispatch");if(ed)ed.insertBlock(sq_block,undefined);$("#block-"+sq_block.clientId).find(".editor-block-toolbar").find("button").trigger("click");$.sq_blockseo.callback()}else{$.sq_editor.insert($this.packwiki($(this).parents("li:last")))}});$this.find(".sq_read").off(event).on(event,function(){$("body").after($.sq_fields.sq_blog_preview);$.sq_fields.sq_blog_preview.sq_loading();$.sq_fields.sq_blog_preview.find("#sq_blog_preview_title").html(" ");$.sq_fields.sq_blog_preview.find("#sq_blog_preview_body").html("");$.sq_fields.sq_blog_preview.find("#sq_blog_preview_close").off(event).on(event,function(){$.sq_fields.sq_blog_preview.remove()});$this.previewBlog($(this).parents("li:last"),false)})}if(type==="news"||type==="blog"){$this.find("li.sq_search_blog_li .sq_insert").off(event).on(event,function(){if($.sq_isGutenberg()){var sq_block=wp.blocks.createBlock("core/html",{content:$this.packblog($(this).parents("li:last"),"box")});var ed=$.sq_editor.getBlockEditor("dispatch");if(ed)ed.insertBlock(sq_block,undefined);$("#block-"+sq_block.clientId).find(".editor-block-toolbar").find("button").trigger("click");$.sq_blockseo.callback()}else{$.sq_editor.insert($this.packblog($(this).parents("li:last"),"box"))}});$this.find("li.sq_search_blog_li .sq_reference").off(event).on(event,function(){if($.sq_isGutenberg()){var sq_block=wp.blocks.createBlock("core/html",{content:$this.packblog($(this).parents("li:last"),"reference")});var ed=$.sq_editor.getBlockEditor("dispatch");if(ed)ed.insertBlock(sq_block,undefined);$("#block-"+sq_block.clientId).find(".editor-block-toolbar").find("button").trigger("click");$.sq_blockseo.callback()}else{$.sq_editor.insert($this.packblog($(this).parents("li:last"),"reference"))}});$this.find(".sq_read").off(event).on(event,function(){$("body").after($.sq_fields.sq_blog_preview);$.sq_fields.sq_blog_preview.sq_loading();$.sq_fields.sq_blog_preview.find("#sq_blog_preview_title").html(" ");$.sq_fields.sq_blog_preview.find("#sq_blog_preview_body").html("");$.sq_fields.sq_blog_preview.find("#sq_blog_preview_close").off(event).on(event,function(){$.sq_fields.sq_blog_preview.remove()});$this.previewBlog($(this).parents("li:last"),true)})}if(type==="local"){$this.find("li.sq_search_local_li .sq_insert").off(event).on(event,function(){if($.sq_isGutenberg()){var sq_block=wp.blocks.createBlock("core/html",{content:$this.packlocal($(this).parents("li:last"),"box")});var ed=$.sq_editor.getBlockEditor("dispatch");if(ed)ed.insertBlock(sq_block,undefined);$("#block-"+sq_block.clientId).find(".editor-block-toolbar").find("button").trigger("click");$.sq_blockseo.callback()}else{$.sq_editor.insert($this.packlocal($(this).parents("li:last"),"box"))}});this.find("li.sq_search_local_li .sq_reference").off(event).on(event,function(){if($.sq_isGutenberg()){var sq_block=wp.blocks.createBlock("core/html",{content:$this.packlocal($(this).parents("li:last"),"reference")});var ed=$.sq_editor.getBlockEditor("dispatch");if(ed)ed.insertBlock(sq_block,undefined);$("#block-"+sq_block.clientId).find(".editor-block-toolbar").find("button").trigger("click");$.sq_blockseo.callback()}else{$.sq_editor.insert($this.packlocal($(this).parents("li:last"),"reference"))}});this.find("li.sq_search_local_li .sq_link").off(event).on(event,function(){if($.sq_isGutenberg()){var sq_block=wp.blocks.createBlock("core/html",{content:$this.packlocal($(this).parents("li:last"),"link")});var ed=$.sq_editor.getBlockEditor("dispatch");if(ed)ed.insertBlock(sq_block,undefined);$("#block-"+sq_block.clientId).find(".editor-block-toolbar").find("button").trigger("click");$.sq_blockseo.callback()}else{$.sq_editor.insert($this.packlocal($(this).parents("li:last"),"link"))}})}if(start===0){$.sq_fields.sq_search.append('<div class="sq_more"><span /></div>');$.sq_fields.sq_more=$this.find(".sq_more")}$.sq_fields.sq_more.off("click").on("click",function(){$(this).html("");$(this).sq_loading();$(this).off("click");$this.getSearch(type,start+$.sq_config.nrb)})};$this.pack=function(html){return'<div class="sq_box">'+html+"<div>"};$this.packimg=function(id,src,parent){if(id!==""){var content='<img src="'+src+'" id="img'+Math.floor(Math.random()*1e3)+'" class="aligncenter size-medium sq_image" width="'+(parent.attr("width")>500?"500":parent.attr("width"))+'" alt="'+$.sq_config.keyword.replace(/\"/g,"")+'" title="'+$.sq_config.keyword.replace(/\"/g,"")+'" />';return content}return""};$this.packtweet=function(parent){var content="";content='<div class="sq_quote_content" style="position: relative;clear: both;background: white;font-size: 14px;color: #333;max-width: 500px;margin: 5px auto 5px auto;padding: 13px;border: 1px solid #DDD;-webkit-box-shadow: 0 1px 0 #DDD;-moz-box-shadow: 0 1px 0 #ddd;box-shadow: 0 1px 0 #DDD;">';content=content+'<a id="'+parent.attr("id")+'" class="sq_tweet" href="'+parent.attr("href")+'" title="'+parent.find(".sq_author_avatar").attr("alt")+'" style="display: block;float: left;width: 48px;height: 48px;padding: 1px;margin: 0;border: 1px solid #DDD;" ><img class="sq_author_avatar" src="'+parent.find(".sq_author_avatar").attr("src")+'" alt="'+parent.find(".sq_author_avatar").attr("alt")+'" /></a>';content=content+'<div class="sq_quote_text" style="margin-left: 62px;line-height: 1.5em;padding-left: 21px;min-height: 52px;font-style:italic;">'+parent.find(".sq_quote_text").html()+"</div>";content=content+"</div>";return'<div id="tw'+Math.floor(Math.random()*1e3)+'" >'+content+"</div>"+$.sq_config.after_insert};$this.packwiki=function(parent){var content="";content='<div class="sq_wiki_content" style="position: relative;clear: both;background: white;font-size: 14px;color: #333;max-width: 500px;margin: 5px auto 5px auto;padding: 13px;border: 1px solid #DDD;-webkit-box-shadow: 0 1px 0 #DDD;-moz-box-shadow: 0 1px 0 #ddd;box-shadow: 0 1px 0 #DDD;">';content=content+'<a id="'+parent.attr("id")+'" class="sq_wiki" href="'+parent.attr("href")+'" title="'+parent.find(".sq_wiki_title").html()+'" style="display: block;font-weight: 700;color: #0074B7;line-height: 1.4em;margin-bottom: 5px;text-decoration: none;">'+parent.find(".sq_wiki_title").html()+"</a>";content=content+'<div class="sq_wiki_text" style="font-style:italic;color: #333;">'+parent.find(".sq_wiki_text").html()+"</div>";content=content+"</div>";return'<div id="wi'+Math.floor(Math.random()*1e3)+'">'+content+"</div>"+$.sq_config.after_insert};$this.packblog=function(parent,as){var content="";if(as==="box"){content='<div class="sq_blog_content" style="position: relative;clear: both;background: white;font-size: 14px;color: #333;max-width: 500px;margin: 5px auto 5px auto;padding: 13px;border: 1px solid #DDD;-webkit-box-shadow: 0 1px 0 #DDD;-moz-box-shadow: 0 1px 0 #ddd;box-shadow: 0 1px 0 #DDD;">';content=content+'<a id="'+parent.attr("id")+'" class="sq_news" href="'+parent.attr("href")+'" title="'+parent.find(".sq_news_title").html()+'" >'+parent.find(".sq_news_title").html()+"</a>";content=content+'<div class="sq_news_text" style="font-style:italic;color: #333;">'+parent.find(".sq_news_text").html()+"</div>";content=content+"</div>"}if(as==="reference"){content='<a class="sq_news" href="'+parent.attr("href")+'" rel="nofollow" title="'+parent.attr("header")+'" style="font-style:italic;color: #333;">'+$.sq_getDomain(parent.attr("href"),[1,7,8,10])+"</a>"}return'<div id="bl'+Math.floor(Math.random()*1e3)+'">'+content+"</div>"+$.sq_config.after_insert};$this.packlocal=function(parent,as){var content="";if(as==="box"){content='<div class="sq_local_content" style="position: relative;clear: both;background: white;font-size: 14px;color: #333;max-width: 500px;margin: 5px auto 5px auto;padding: 13px;border: 1px solid #DDD;-webkit-box-shadow: 0 1px 0 #DDD;-moz-box-shadow: 0 1px 0 #ddd;box-shadow: 0 1px 0 #DDD;">';content=content+'<a id="'+parent.attr("id")+'" class="sq_local" href="'+parent.attr("href")+'" title="'+parent.find(".sq_local_title").html()+'" style="display: block;font-weight: 700;color: #0074B7;line-height: 1.4em;margin-bottom: 5px;text-decoration: none;">'+parent.find(".sq_local_title").html()+"</a>";content=content+'<div class="sq_local_text" style="font-style:italic;color: #333;">'+parent.find(".sq_local_text").html()+"</div>";content=content+"</div>";content='<div id="lo'+Math.floor(Math.random()*1e3)+'">'+content+"</div>"+$.sq_config.after_insert}if(as==="reference"){content='<a class="sq_local" href="'+parent.attr("href")+'" title="'+parent.attr("header")+'" >'+decodeURIComponent(parent.attr("href"))+"</a>";content='<div id="lo'+Math.floor(Math.random()*1e3)+'" style="font-style:italic;color: #333;">'+content+"</div>"+$.sq_config.after_insert}if(as==="link"){content='<a href="'+parent.attr("href")+'" title="'+parent.attr("header")+'" style="font-style:italic;color: #333;">'+decodeURIComponent(parent.attr("href"))+"</a>"}return content};$this.formatDate=function(date){var mm=date.getMonth()+1;var dd=date.getDate();var yyyy=date.getFullYear();mm=mm<10?"0"+mm:mm;return mm+"."+dd+"."+yyyy};$this.showTypeHelp=function(type){$this.find(".sq_type_help").hide();$this.find(".sq_type_"+type+"_help").show()};$this.refreshSearch=function(type){settings.type=type;$this.getSearch(type,0)};$this.previewBlog=function(parent,filter){if($.sq_fields.sq_blog_preview===null)return;$.getJSON($.sq_config.sq_apiurl+"api/research/ib/preview?callback=?"+(filter?"&filter=1":"")+"",{user_url:$.sq_config.user_url,token:$.sq_config.token,url_token:$.sq_config.url_token,link:parent.attr("href")}).done(function(response){if(response.data.content!==""){$.sq_fields.sq_blog_preview.removeClass("sq_error").sq_doneloading();$.sq_fields.sq_blog_preview.attr("href",response.link);$.sq_fields.sq_blog_preview.find("#sq_blog_preview_title").html(response.data.title);$.sq_fields.sq_blog_preview.find("#sq_blog_preview_body").html(response.data.content);$.sq_fields.sq_blog_preview.find("#sq_blog_preview_body p").each(function(){$(this).removeClass()});var ptext;$.sq_fields.sq_blog_preview.find(".sq_blog_option").off("click").on("click",function(){ptext=$(this).parent("p").clone();ptext=ptext.find(".sq_blog_option").remove();ptext=ptext.end().html();if($.sq_isGutenberg()){var sq_block=wp.blocks.createBlock("core/html",{content:ptext+$this.packblog($.sq_fields.sq_blog_preview,"reference")});var ed=$.sq_editor.getBlockEditor("dispatch");if(ed)ed.insertBlock(sq_block,undefined);$("#block-"+sq_block.clientId).find(".editor-block-toolbar").find("button").trigger("click")}else{$.sq_editor.insert(ptext+$this.packblog($.sq_fields.sq_blog_preview,"reference"))}});$.sq_fields.sq_blog_preview.find("#sq_blog_preview_body a").each(function(){$(this).attr("target","_blank")});$.sq_fields.sq_blog_preview.find(".editsection").hide()}else{$.sq_fields.sq_blog_preview.remove()}$.sq_fields.sq_blog_preview.find("#sq_blog_preview_close").off(event).on(event,function(){$.sq_fields.sq_blog_preview.remove()})}).fail(function(){$.sq_fields.sq_blog_preview.remove()})};$this.showNotOptimized=function(){$("#sq_nokeyword").show()};$this.hideNotOptimized=function(){$("#sq_publish_alert").hide()};$this.handleKey=function(event,gsuggestion_index){if(event.keyCode===$.ui.keyCode.UP&&gsuggestion_index>0){gsuggestion_index--}else if(event.keyCode===$.ui.keyCode.DOWN&&gsuggestion_index<$(".sq_gsuggestion .sq_item_gsuggestion").length){gsuggestion_index++}else{gsuggestion_index=0}$(".sq_gsuggestion .sq_item_gsuggestion").removeClass("sq_item_active");if(gsuggestion_index>0){var item_active=$(".sq_gsuggestion .sq_item_gsuggestion:nth-child("+gsuggestion_index+")");item_active.addClass("sq_item_active");$.sq_fields.sq_keyword.val(item_active.html())}return gsuggestion_index};$this.hideOptions=function(){if(settings.timeout){clearTimeout(settings.timeout);clearTimeout(settings.calltime)}if(settings.gtimeout){clearTimeout(settings.gtimeout)}if(settings.ajaxCall)settings.ajaxCall.abort()};$this.prepareParam=function(response,keyword){var j;var param={rank:-1,note:-1,stats:[]};if($.sq_isArray(response)){var responselen=response.length;for(j=0;j<responselen;j++){if($.sq_strEqual(keyword,response[j].keyword)){param.rank=response[j].stats.rank.value;param.note=response[j].note;param.stats=[response[j].stats.tw,response[j].stats.sv,response[j].stats.sc,response[j].stats.td];break}}}return param};$this.addTag=function(){if($.sq_config.sq_keywordtag==1){$("#new-tag-post_tag").val($.sq_config.keyword);$("input.tagadd").trigger("click")}};$this.sq_eventssearch={checkKeywordSet:function(){if($.sq_fields.sq_keyword.val()!==""){$.sq_config.keyword=$.sq_fields.sq_keyword.val();$.sq_fields.sq_selectit.trigger("click");$.sq_fields.sq_keyword_score.html("0%");$(".sq_keyword").show();if($.sq_config.firsttime){$.sq_fields.sq_box_maximize.trigger("click")}}if($.sq_config.keyword===""&&$(".sq_snippet_keywords").length>0){var snipet_keywords=$(".sq_snippet_keywords").text().split(",");if(snipet_keywords.length>0){$.sq_config.keyword=snipet_keywords[0];$.sq_fields.sq_keyword.val($.sq_config.keyword);$.sq_fields.sq_selectit.trigger("click")}}if($.sq_config.keyword===""){$this.hideTypes();$.sq_blockseo.overlay();$this.hideOptions();$this.showNotOptimized()}$this.initialFieldValue($.sq_fields.sq_keyword,"black","gray");$.sq_fields.div_blockseo.trigger("seo.keyword_loaded")},listen:function(){$.getJSON($.sq_config.sq_apiurl+"api/posts/keyword?callback=?",{post_id:$.sq_config.postID,user_url:$.sq_config.user_url,token:$.sq_config.token,url_token:$.sq_config.url_token}).done(function(response){if(typeof $.sq_fields.sq_keyword==="undefined"){$.sq_setfields()}if(typeof response.data!=="undefined"){if(typeof response.data.keyword!=="undefined"){if(response.data.keyword===null){$.sq_config.firsttime=true;$this.sq_eventssearch.checkKeywordSet()}else{$.sq_config.firsttime=false;if($.sq_fields.sq_keyword.val()===""){$.sq_fields.sq_keyword.val(decodeURIComponent(response.data.keyword))}$this.sq_eventssearch.checkKeywordSet()}}}$.sq_fields.sq_preloading_keyword.hide();$.sq_fields.sq_blocktabs.show();$.sq_fields.div_blockbriefacse.show();$this.trigger("seo.keyword_loaded")}).fail(function(error){$.sq_fields.sq_preloading.show()});$.sq_fields.sq_keyword.on("keypress",function(event){if(event.keyCode===$.ui.keyCode.ENTER){$.sq_fields.sq_keyword_check.trigger("click")}return event.keyCode!==$.ui.keyCode.ENTER});$.sq_fields.sq_keyword.on("keyup",function(event){if(event.keyCode!==$.ui.keyCode.ENTER&&event.keyCode!==$.ui.keyCode.UP&&event.keyCode!==$.ui.keyCode.DOWN&&event.keyCode!==$.ui.keyCode.ESCAPE){if($.sq_fields.sq_keyword.val()!==""&&$.sq_config.keyword!==$.sq_clearText($.sq_fields.sq_keyword.val())){if($.sq_fields.sq_keyword.val()!==""){$.sq_config.keyword=$.sq_fields.sq_keyword.val();$.sq_blockseo.checkKeyword();$this.init()}else{$this.hideOptions()}$.sq_blockseo.overlay();$this.hideSearch()}}else if(event.keyCode===$.ui.keyCode.ESCAPE){if($.sq_fields.sq_keyword.val()!==""){$this.hideOptions()}}});$.sq_fields.sq_keyword.on("click",function(){if($.sq_fields.sq_keyword.val()===""){$this.hideOptions()}});$.sq_fields.sq_keyword_check.off("click").on("click",function(){if($.sq_fields.sq_keyword.val()!==""){$.sq_fields.sq_selectit.trigger("click")}});$.sq_fields.sq_selectit.off("click").on("click",function(){$.sq_config.manual=true;$("#sq_keyword_second").val("");if($.sq_fields.sq_keyword.val()!==""){$.sq_config.keyword=$.sq_fields.sq_keyword.val()}if($.sq_config.keyword!==""){if($("#sq_blocksnippet").find("input[name=sq_keyword]").length){$("#sq_blocksnippet").find("input[name=sq_keyword]").val($.sq_config.keyword)}$this.showTypes();$.sq_blockseo.load();$.sq_blockseo.closeOverlay();$this.trigger("seo.keyword_selected");$(".sq_request_highlight_key").html($.sq_config.keyword);$.sq_fields.sq_type_img.trigger("click");$this.hideNotOptimized()}if($.sq_fields.wp_content_wrap.length>0){if($.sq_fields.wp_content_wrap.attr("class").indexOf("html-active")==-1){$this.showActiveEditor()}}});$.sq_fields.sq_type_img.off("click").on("click",function(){$.sq_fields.sq_types.find("li").removeClass("sq_active");$(this).addClass("sq_active");$this.showTypeHelp("img");$this.refreshSearch("img")});$.sq_fields.sq_type_twitter.off("click").on("click",function(){$.sq_fields.sq_types.find("li").removeClass("sq_active");$(this).addClass("sq_active");$this.showTypeHelp("twitter");$this.refreshSearch("twitter")});$.sq_fields.sq_type_news.off("click").on("click",function(){$.sq_fields.sq_types.find("li").removeClass("sq_active");$(this).addClass("sq_active");$this.showTypeHelp("twitter");$this.refreshSearch("news")});$.sq_fields.sq_type_blog.off("click").on("click",function(){$.sq_fields.sq_types.find("li").removeClass("sq_active");$(this).addClass("sq_active");$this.showTypeHelp("blog");$this.refreshSearch("blog")});$.sq_fields.sq_type_wiki.off("click").on("click",function(){$.sq_fields.sq_types.find("li").removeClass("sq_active");$(this).addClass("sq_active");$this.showTypeHelp("wiki");$this.refreshSearch("wiki")});$.sq_fields.sq_type_local.off("click").on("click",function(){$.sq_fields.sq_types.find("li").removeClass("sq_active");$(this).addClass("sq_active");$this.showTypeHelp("local");$this.refreshSearch("local")});$.sq_fields.sq_search_img_nolicence.off("click").on("click",function(){var licence=1;if($.sq_fields.sq_search_img_nolicence.is(":checked")){$("#sq_search_img_nolicence_label").attr("class","checked");licence=1}else{$("#sq_search_img_nolicence_label").removeClass("checked");licence=0}$this.refreshSearch("img");$.post(sqQuery.ajaxurl,{action:"sq_ajax_type_click",licence:licence,sq_nonce:sqQuery.nonce})});$(".wp-switch-editor").on("click",function(){if(this.id.indexOf("tmce")!==-1){$this.sq_eventssearch.listenMCE()}else{$this.sq_eventssearch.listenHTML()}});$("#qt_content_fullscreen, .mce-i-wp_fullscreen").on("click",function(){$(".mce-btn").find("i").on("click",function(){$this.sq_eventssearch.listenMCE()});$(".wp-fullscreen-mode-tinymce").on("click",function(){$this.sq_eventssearch.listenMCE();$(".media-modal").find("a").on("click",function(){$this.sq_eventssearch.listenMCE()})});$(".wp-fullscreen-mode-html").on("click",function(){$this.sq_eventssearch.listenHTML();$(".media-modal").find("a").on("click",function(){$this.sq_eventssearch.listenHTML()})})});$("#wp-fullscreen-close, .mce-i-bold, .media-button").find("a").on("click",function(){if($.sq_fields.wp_content_wrap.length>0&&$.sq_fields.wp_content_wrap.attr("class").indexOf("html-active")!==-1){$.sq_blockseo.sq_eventsseo.listenHtml()}else{$.sq_blockseo.sq_eventsseo.listenTinymce()}})},listenMCE:function(){$this.showActiveEditor();$.sq_blockseo.sq_eventsseo.stopListenHtml();$.sq_blockseo.sq_eventsseo.listenTinymce();$.sq_fields.sq_selectit.trigger("click")},listenHTML:function(){$.sq_blockseo.sq_eventsseo.stopListenTinymce();$.sq_blockseo.sq_eventsseo.listenHtml();$.sq_fields.sq_selectit.trigger("click")}};$this.one("seo.loaded",function(){SQ_DEBUG&&console.log("sq_blocksearch seo.loaded");$this.sq_eventssearch.listen()});return $this}})(jQuery);
|
1 |
+
(function($){"use strict";if($.isFunction($.fn.sq_blocksearch)){return}$.fn.sq_blocksearch=function(options){var $this=this;var settings=$.extend({type:"img",delay:1e3,processing:null,timeout:null,ajaxCall:null,gtimeout:null},options);$.sq_fields=$.extend({sq_publish_alert:$this.find("#sq_publish_alert"),sq_more:$this.find(".sq_more"),sq_keywords_research_clear:$(".sq_keywords_research_clear"),sq_keywords_research_submit:$(".sq_keywords_research_submit")},$.sq_fields);$this.init=function(){if($.sq_config.keyword===""){$.sq_blockseo.close();$this.hideTypes()}};$this.hideTypes=function(){$.sq_fields.sq_types.hide();$this.hideSearch()};$this.showTypes=function(){$.sq_fields.sq_types.show()};$this.showActiveEditor=function(){var ed=$.sq_editor.getTinymceEditor();$.sq_tinymce.addEvents(ed)};$this.hideSearch=function(){$.sq_fields.sq_search.hide();$.sq_fields.sq_search_img_filter.hide()};$this.showSearch=function(){$.sq_fields.sq_search.html("");$.sq_fields.sq_search.show();$.sq_fields.sq_search_img_filter.hide()};$this.showNoResults=function(header,keyword){$this.showSearch();$.sq_fields.sq_search.addClass("sq_error").html('<span class="sq_show_mgs">'+$.sq_config.__nofound+"</span>");if(typeof header!=="undefined"&&typeof keyword!=="undefined"&&header===1){$this.addHeaderSearch(keyword)}};$this.addHeaderSearch=function(keyword){if(typeof keyword==="undefined")keyword="";if(!$.sq_fields.sq_search.find("#sq_search_second").length){$.sq_fields.sq_search.prepend('<div id="sq_search_second" style="display: none"><input type="text" id="sq_keyword_second" placeholder="Search for new keyword..." '+($.sq_strEqual($.sq_config.keyword,keyword)||keyword===""?'value=""':'value="'+keyword+'"')+' autocomplete="off" /><input type="button" id="sq_keyword_second_check" value=">"/></div>')}$.sq_fields.sq_search_second=$this.find("#sq_search_second");$.sq_fields.sq_keyword_second=$this.find("#sq_keyword_second");$.sq_fields.sq_keyword_second_check=$this.find("#sq_keyword_second_check");if($.sq_strEqual($.sq_config.keyword,keyword)){if(!$.sq_fields.sq_search.find(".sq_search_notrelevant").length){$.sq_fields.sq_search.prepend('<a href="javascript:void(0);" class="sq_search_notrelevant">'+$.sq_config.__notrelevant+"</a>");$this.find(".sq_search_notrelevant").on("click",function(){$.sq_fields.sq_search_second.show();$.sq_fields.sq_keyword_second.focus();$(this).hide()})}}else{$.sq_fields.sq_search_second.show();$.sq_fields.sq_keyword_second.focus()}$this.initialFieldValue($.sq_fields.sq_keyword_second,"black","gray");$.sq_fields.sq_keyword_second.on("keypress",function(event){if(event.keyCode===$.ui.keyCode.ENTER)$.sq_fields.sq_keyword_second_check.trigger("click");return event.keyCode!==$.ui.keyCode.ENTER});$.sq_fields.sq_keyword_second_check.on("click",function(){if($.sq_fields.sq_keyword_second.val()!==""){$this.refreshSearch(settings.type)}})};$this.initialFieldValue=function(field,active_color,inactive_color){if(field.hasClass("default")){field.css("color",inactive_color);var default_values=[];field.focus(function(){if(!default_values[this.id]){default_values[this.id]=this.value}if($.sq_strEqual(this.value,default_values[this.id])){this.value="";this.style.color=active_color}$(this).blur(function(){if(this.value===""){this.style.color=inactive_color;this.value=default_values[this.id]}})})}};$this.getSearch=function(type,start,extra_params){var keyword;if(settings.ajaxCall)settings.ajaxCall.abort();if($.sq_fields.sq_keyword_second.length>0&&$.sq_fields.sq_keyword_second.val()!==""){keyword=$.sq_fields.sq_keyword_second.val()}else{keyword=$.sq_config.keyword}var action="sla_customcall";var params="";var url="";if(typeof start==="undefined")start=0;if(start===0){$this.showSearch()}switch(type){case"img":if($.sq_fields.sq_search_img_nolicence.is(":checked")){url="api/research/ib/images";params="page="+(start/$.sq_config.nrb+1)+"&nrb="+$.sq_config.nrb+"&hl="+$.sq_config.language+"&q="+keyword}else{url="api/research/ib/gimages";params="page="+start+"&rpp="+$.sq_config.nrb+"&hl="+$.sq_config.language+'&q="'+keyword+'"'}break;case"twitter":url="api/research/ib/twitter";params="page="+(start/$.sq_config.nrb+1)+"&rpp="+$.sq_config.nrb+"&hl="+$.sq_config.language+"&q="+keyword;break;case"blog":url="api/research/ib/blog";params="page="+start+"&rpp="+$.sq_config.nrb+"&hl="+$.sq_config.language+'&q="'+keyword+'"';break;case"wiki":url="api/research/ib/wiki";params="&page="+(start/$.sq_config.nrb+1)+"&rpp="+$.sq_config.nrb+"&hl="+$.sq_config.language+"&q="+keyword;break;case"local":action="sq_ajax_search_blog";url="";params="nrb="+$.sq_config.nrb+"&sq_nonce="+$.sq_config.sq_nonce+"&exclude="+$.sq_config.postID+"&q="+keyword+"&start="+start;params="nrb="+$.sq_config.nrb+"&sq_nonce="+$.sq_config.sq_nonce+"&exclude="+$.sq_config.postID+"&q="+keyword+"&start="+start;break}if(typeof extra_params!=="undefined")params=params+"&"+extra_params;var cached=$.sq_getCache(url+params);if(cached){$this.showResults(keyword,cached,type,start)}else{$.sq_fields.sq_search.html('<span class="sq_show_mgs">'+$.sq_config.__searching+"</span>");settings.ajaxCall=$.post($.sq_config.ajaxurl,{action:action,sq_nonce:$.sq_config.sq_nonce,url:url,params:params}).done(function(response){$(".sq_show_mgs").remove();if(response instanceof Object){$this.showResults(keyword,response,type,start);$.sq_setCache(url+"?"+params,response)}else{$.sq_fields.sq_search.sq_doneloading().addClass("sq_error");if(start==0){$this.showNoResults(1,keyword)}else{$this.showNoResults(0)}}if(type==="img")$.sq_fields.sq_search_img_filter.show()}).fail(function(response){if(response.status===200&&response.responseText.indexOf("{")>0){response.responseText=response.responseText.substr(response.responseText.indexOf("{"),response.responseText.lastIndexOf("}"));try{response=$.parseJSON(response.responseText);if(response instanceof Object){$this.showResults(keyword,response,type,start);$.sq_setCache(url+params,response)}else{$.sq_fields.sq_search.sq_doneloading().addClass("sq_error");if(start===0){$this.showNoResults(1,keyword)}else{$this.showNoResults(0)}}if(type==="img")$.sq_fields.sq_search_img_filter.show()}catch(e){}}else{$.sq_fields.sq_search.sq_doneloading().addClass("sq_error");if(start===0){$this.showNoResults(1,keyword)}else{$this.showNoResults(0)}}if(type==="img")$.sq_fields.sq_search_img_filter.show()})}};$this.showResults=function(keyword,response,type,start){var items=[];var date;var domainName;$.sq_fields.sq_search.sq_doneloading().removeClass("sq_error");if(type==="img"){if(typeof response.data.responseData!=="undefined"&&typeof response.data.responseData.results!=="undefined"&&response.data.responseData.results.length>0){$.each(response.data.responseData.results,function(key,val){if(typeof val["detail"]!=="undefined"&&val["detail"]!==""){val["detail"]=val["detail"].replace(/\[a href=([^\]]*) title=([^\]]*)\]/,"$1")}items.push('<li class="sq_search_img_li" id="sq_search_img_li'+key+'" src="'+val["url"]+'" width="'+val["width"]+'" height="'+val["height"]+'" '+(typeof val["attribute"]!=="undefined"&&val["attribute"]!==""?'attribute="'+val["attribute"]+'"':"")+" >"+(typeof val["attribute"]!=="undefined"?val["attribute"]!==""?'<span class="sq_attribute" title="'+$.sq_config.__has_attributes+'">A</span>':'<span class="sq_attribute " title="'+$.sq_config.__no_attributes+'">N</span>':"")+'<img id="sq_search_img'+key+'" src="'+val["tbUrl"]+'" '+(typeof val["detail"]!=="undefined"&&val["detail"]!==""?'title="'+val["detail"]+'"':"")+' alt="'+val["contentNoFormatting"]+'" /></li>')})}else $this.showNoResults()}if(type==="twitter"){if(typeof response.data!=="undefined"&&response.data.length>0)$.each(response.data,function(key,val){date=new Date(val["created_at"]);date=$this.formatDate(date);items.push('<li class="sq_search_twitter_li sq_search_li" id="t_'+val["id"]+'" href="https://twitter.com/'+val["from_user"]+'"><a href="https://twitter.com/'+val["from_user"]+'" title="'+val["text"]+'" target="_blank" ><img src="'+val["profile_image_url"]+'" alt="'+val["from_user"]+'" class="sq_author_avatar" /></a><div class="sq_quote_content"><div class="sq_quote_author"><span class="sq_author_name">'+val["from_user"]+'</span></div> <div class="sq_quote_text truncated">'+val["text"]+'</div></div><div class="sq_info"><ul><li>'+$.sq_config.__date+": "+date+'</li></ul></div><div class="sq_attribution"><ul><li class="sq_insert">'+$.sq_config.__insertit+"</li></ul></div></li>")});else $this.showNoResults()}if(type==="blog"){if(typeof response!=="undefined"&&typeof response.data.results!=="undefined"&&response.data.results.length>0)$.each(response.data.results,function(key,val){domainName='<a href="'+val["url"]+'" target="_blank">'+val["visibleUrl"]+"</a>";items.push('<li class="sq_search_blog_li sq_search_li" id="b_'+key+'" href="'+val["url"]+'" header="'+val["titleNoFormatting"]+'" ><div class="sq_news_content"><div class="sq_news_title">'+val["titleNoFormatting"]+'</div><div class="sq_news_text">'+val["content"]+'</div><div class="sq_info"><ul><li>source: '+domainName+'</li></ul></div></div><div class="sq_attribution"><ul><li class="sq_read">'+$.sq_config.__readit+'</li><li class="sq_insert">'+$.sq_config.__insertasbox+'</li><li class="sq_reference">'+$.sq_config.__reference+"</li></ul></div></li>")});else $this.showNoResults()}if(type==="wiki"){var wikihref="//"+$.sq_config.language.substr(0,2)+".wikipedia.org/wiki/";if(typeof response.data.results!=="undefined"&&response.data.results.length>0)$.each(response.data.results,function(key,val){date=new Date(val.timestamp);date=$this.formatDate(date);items.push('<li class="sq_search_wiki_li sq_search_li" id="w_'+key+'" href="'+wikihref+val.title.replace(/ /g,"_")+'" ><div class="sq_wiki_content"><div class="sq_wiki_title">'+val.title+'</div><div class="sq_wiki_text truncated">'+val.snippet+'</div><div class="sq_info"><ul><li>'+$.sq_config.__date+": "+date+'</li></ul></div><div class="sq_attribution"><ul><li class="sq_read">'+$.sq_config.__readit+'</li><li class="sq_insert">'+$.sq_config.__insertit+"</li></ul></div></li>")});else $this.showNoResults()}if(type==="local"){if(typeof response.results!=="undefined"&&response.results.length>0)$.each(response.results,function(key,val){date=new Date(val.date);date=$this.formatDate(date);items.push('<li class="sq_search_local_li sq_search_li" id="l_'+val["id"]+'" href="'+val["url"]+'" header="'+val["title"]+'" ><div class="sq_local_content"><div class="sq_local_title">'+val["title"]+'</div><div class="sq_local_text truncated">'+val["content"]+'</div><div class="sq_info"><ul><li>'+$.sq_config.__date+": "+date+'</li></ul></div><div class="sq_attribution"><ul><li class="sq_insert">'+$.sq_config.__insertit+'</li><li class="sq_reference">'+$.sq_config.__reference+'</li><li class="sq_link">'+$.sq_config.__addlink+"</li></ul></div></li>")});else $this.showNoResults()}if(items.length>0){if(start===0){$.sq_fields.sq_search.append($("<ul/>",{html:items.join("")}));$this.addHeaderSearch(keyword)}else{$.sq_fields.sq_search.find("ul").first().append(items.join(""))}$this.addEvents("click",type,start)}else{if(start===0){$this.showNoResults(1,keyword)}else{$this.showNoResults(0)}}if($.sq_fields.sq_more.length>0){$.sq_fields.sq_more.html("<span />");$.sq_fields.sq_more.sq_doneloading();$.sq_fields.sq_more.on("click");if(items.length<$.sq_config.nrb)$.sq_fields.sq_more.hide()}$this.find(".sq_search li.sq_search_li .sq_attribution > ul").show()};$this.addEvents=function(event,type,start){if(type==="img"){$this.find("li.sq_search_img_li img").off(event).on(event,function(){if($.sq_isGutenberg()){var ed=$.sq_editor.getBlockEditor("dispatch");if(ed)ed.insertBlock(wp.blocks.createBlock("core/image",{url:$(this).parent("li").attr("src"),className:"sq_image",alt:$.sq_config.keyword.replace(/\"/g,"")}),undefined);$.sq_blockseo.callback()}else{$.sq_editor.insert($this.packimg($(this).attr("id"),$(this).parent("li").attr("src"),$(this).parent("li")));if(typeof $(this).parent("li").attr("attribute")!=="undefined"&&typeof $.sq_config.__sq_photo_copyright!=="")$.sq_editor.insert($.sq_config.__sq_photo_copyright.replace("%s",$(this).parent("li").attr("attribute")))}});$this.find("li.sq_search_img_li img").on("dragstart",function(event){if($.sq_config.editor_type==="html"){event.originalEvent.dataTransfer.setData("text/plain",$(this).parent("li").html())}});$.sq_fields.sq_search_img_filter.show()}if(type==="twitter"){$this.find("li.sq_search_twitter_li .sq_insert").off(event).on(event,function(){if($.sq_isGutenberg()){var sq_block=wp.blocks.createBlock("core/html",{content:$this.packtweet($(this).parents("li:last"))});var ed=$.sq_editor.getBlockEditor("dispatch");if(ed)ed.insertBlock(sq_block,undefined);$("#block-"+sq_block.clientId).find(".editor-block-toolbar").find("button").trigger("click");$.sq_blockseo.callback()}else{$.sq_editor.insert($this.packtweet($(this).parents("li:last")))}})}if(type==="wiki"){$this.find("li.sq_search_wiki_li .sq_insert").off(event).on(event,function(){if($.sq_isGutenberg()){var sq_block=wp.blocks.createBlock("core/html",{content:$this.packwiki($(this).parents("li:last"))});var ed=$.sq_editor.getBlockEditor("dispatch");if(ed)ed.insertBlock(sq_block,undefined);$("#block-"+sq_block.clientId).find(".editor-block-toolbar").find("button").trigger("click");$.sq_blockseo.callback()}else{$.sq_editor.insert($this.packwiki($(this).parents("li:last")))}});$this.find(".sq_read").off(event).on(event,function(){$("body").after($.sq_fields.sq_blog_preview);$.sq_fields.sq_blog_preview.sq_loading();$.sq_fields.sq_blog_preview.find("#sq_blog_preview_title").html(" ");$.sq_fields.sq_blog_preview.find("#sq_blog_preview_body").html("");$.sq_fields.sq_blog_preview.find("#sq_blog_preview_close").off(event).on(event,function(){$.sq_fields.sq_blog_preview.remove()});$this.previewBlog($(this).parents("li:last"),false)})}if(type==="news"||type==="blog"){$this.find("li.sq_search_blog_li .sq_insert").off(event).on(event,function(){if($.sq_isGutenberg()){var sq_block=wp.blocks.createBlock("core/html",{content:$this.packblog($(this).parents("li:last"),"box")});var ed=$.sq_editor.getBlockEditor("dispatch");if(ed)ed.insertBlock(sq_block,undefined);$("#block-"+sq_block.clientId).find(".editor-block-toolbar").find("button").trigger("click");$.sq_blockseo.callback()}else{$.sq_editor.insert($this.packblog($(this).parents("li:last"),"box"))}});$this.find("li.sq_search_blog_li .sq_reference").off(event).on(event,function(){if($.sq_isGutenberg()){var sq_block=wp.blocks.createBlock("core/html",{content:$this.packblog($(this).parents("li:last"),"reference")});var ed=$.sq_editor.getBlockEditor("dispatch");if(ed)ed.insertBlock(sq_block,undefined);$("#block-"+sq_block.clientId).find(".editor-block-toolbar").find("button").trigger("click");$.sq_blockseo.callback()}else{$.sq_editor.insert($this.packblog($(this).parents("li:last"),"reference"))}});$this.find(".sq_read").off(event).on(event,function(){$("body").after($.sq_fields.sq_blog_preview);$.sq_fields.sq_blog_preview.sq_loading();$.sq_fields.sq_blog_preview.find("#sq_blog_preview_title").html(" ");$.sq_fields.sq_blog_preview.find("#sq_blog_preview_body").html("");$.sq_fields.sq_blog_preview.find("#sq_blog_preview_close").off(event).on(event,function(){$.sq_fields.sq_blog_preview.remove()});$this.previewBlog($(this).parents("li:last"),true)})}if(type==="local"){$this.find("li.sq_search_local_li .sq_insert").off(event).on(event,function(){if($.sq_isGutenberg()){var sq_block=wp.blocks.createBlock("core/html",{content:$this.packlocal($(this).parents("li:last"),"box")});var ed=$.sq_editor.getBlockEditor("dispatch");if(ed)ed.insertBlock(sq_block,undefined);$("#block-"+sq_block.clientId).find(".editor-block-toolbar").find("button").trigger("click");$.sq_blockseo.callback()}else{$.sq_editor.insert($this.packlocal($(this).parents("li:last"),"box"))}});this.find("li.sq_search_local_li .sq_reference").off(event).on(event,function(){if($.sq_isGutenberg()){var sq_block=wp.blocks.createBlock("core/html",{content:$this.packlocal($(this).parents("li:last"),"reference")});var ed=$.sq_editor.getBlockEditor("dispatch");if(ed)ed.insertBlock(sq_block,undefined);$("#block-"+sq_block.clientId).find(".editor-block-toolbar").find("button").trigger("click");$.sq_blockseo.callback()}else{$.sq_editor.insert($this.packlocal($(this).parents("li:last"),"reference"))}});this.find("li.sq_search_local_li .sq_link").off(event).on(event,function(){if($.sq_isGutenberg()){var sq_block=wp.blocks.createBlock("core/html",{content:$this.packlocal($(this).parents("li:last"),"link")});var ed=$.sq_editor.getBlockEditor("dispatch");if(ed)ed.insertBlock(sq_block,undefined);$("#block-"+sq_block.clientId).find(".editor-block-toolbar").find("button").trigger("click");$.sq_blockseo.callback()}else{$.sq_editor.insert($this.packlocal($(this).parents("li:last"),"link"))}})}if(start===0){$.sq_fields.sq_search.append('<div class="sq_more"><span /></div>');$.sq_fields.sq_more=$this.find(".sq_more")}$.sq_fields.sq_more.off("click").on("click",function(){$(this).html("");$(this).sq_loading();$(this).off("click");$this.getSearch(type,start+$.sq_config.nrb)})};$this.pack=function(html){return'<div class="sq_box">'+html+"<div>"};$this.packimg=function(id,src,parent){if(id!==""){var content='<img src="'+src+'" id="img'+Math.floor(Math.random()*1e3)+'" class="aligncenter size-medium sq_image" width="'+(parent.attr("width")>500?"500":parent.attr("width"))+'" alt="'+$.sq_config.keyword.replace(/\"/g,"")+'" title="'+$.sq_config.keyword.replace(/\"/g,"")+'" />';return content}return""};$this.packtweet=function(parent){var content="";content='<div class="sq_quote_content" style="position: relative;clear: both;background: white;font-size: 14px;color: #333;max-width: 500px;margin: 5px auto 5px auto;padding: 13px;border: 1px solid #DDD;-webkit-box-shadow: 0 1px 0 #DDD;-moz-box-shadow: 0 1px 0 #ddd;box-shadow: 0 1px 0 #DDD;">';content=content+'<a id="'+parent.attr("id")+'" class="sq_tweet" href="'+parent.attr("href")+'" title="'+parent.find(".sq_author_avatar").attr("alt")+'" style="display: block;float: left;width: 48px;height: 48px;padding: 1px;margin: 0;border: 1px solid #DDD;" ><img class="sq_author_avatar" src="'+parent.find(".sq_author_avatar").attr("src")+'" alt="'+parent.find(".sq_author_avatar").attr("alt")+'" /></a>';content=content+'<div class="sq_quote_text" style="margin-left: 62px;line-height: 1.5em;padding-left: 21px;min-height: 52px;font-style:italic;">'+parent.find(".sq_quote_text").html()+"</div>";content=content+"</div>";return'<div id="tw'+Math.floor(Math.random()*1e3)+'" >'+content+"</div>"+$.sq_config.after_insert};$this.packwiki=function(parent){var content="";content='<div class="sq_wiki_content" style="position: relative;clear: both;background: white;font-size: 14px;color: #333;max-width: 500px;margin: 5px auto 5px auto;padding: 13px;border: 1px solid #DDD;-webkit-box-shadow: 0 1px 0 #DDD;-moz-box-shadow: 0 1px 0 #ddd;box-shadow: 0 1px 0 #DDD;">';content=content+'<a id="'+parent.attr("id")+'" class="sq_wiki" href="'+parent.attr("href")+'" title="'+parent.find(".sq_wiki_title").html()+'" style="display: block;font-weight: 700;color: #0074B7;line-height: 1.4em;margin-bottom: 5px;text-decoration: none;">'+parent.find(".sq_wiki_title").html()+"</a>";content=content+'<div class="sq_wiki_text" style="font-style:italic;color: #333;">'+parent.find(".sq_wiki_text").html()+"</div>";content=content+"</div>";return'<div id="wi'+Math.floor(Math.random()*1e3)+'">'+content+"</div>"+$.sq_config.after_insert};$this.packblog=function(parent,as){var content="";if(as==="box"){content='<div class="sq_blog_content" style="position: relative;clear: both;background: white;font-size: 14px;color: #333;max-width: 500px;margin: 5px auto 5px auto;padding: 13px;border: 1px solid #DDD;-webkit-box-shadow: 0 1px 0 #DDD;-moz-box-shadow: 0 1px 0 #ddd;box-shadow: 0 1px 0 #DDD;">';content=content+'<a id="'+parent.attr("id")+'" class="sq_news" href="'+parent.attr("href")+'" title="'+parent.find(".sq_news_title").html()+'" >'+parent.find(".sq_news_title").html()+"</a>";content=content+'<div class="sq_news_text" style="font-style:italic;color: #333;">'+parent.find(".sq_news_text").html()+"</div>";content=content+"</div>"}if(as==="reference"){content='<a class="sq_news" href="'+parent.attr("href")+'" rel="nofollow" title="'+parent.attr("header")+'" style="font-style:italic;color: #333;">'+$.sq_getDomain(parent.attr("href"),[1,7,8,10])+"</a>"}return'<div id="bl'+Math.floor(Math.random()*1e3)+'">'+content+"</div>"+$.sq_config.after_insert};$this.packlocal=function(parent,as){var content="";if(as==="box"){content='<div class="sq_local_content" style="position: relative;clear: both;background: white;font-size: 14px;color: #333;max-width: 500px;margin: 5px auto 5px auto;padding: 13px;border: 1px solid #DDD;-webkit-box-shadow: 0 1px 0 #DDD;-moz-box-shadow: 0 1px 0 #ddd;box-shadow: 0 1px 0 #DDD;">';content=content+'<a id="'+parent.attr("id")+'" class="sq_local" href="'+parent.attr("href")+'" title="'+parent.find(".sq_local_title").html()+'" style="display: block;font-weight: 700;color: #0074B7;line-height: 1.4em;margin-bottom: 5px;text-decoration: none;">'+parent.find(".sq_local_title").html()+"</a>";content=content+'<div class="sq_local_text" style="font-style:italic;color: #333;">'+parent.find(".sq_local_text").html()+"</div>";content=content+"</div>";content='<div id="lo'+Math.floor(Math.random()*1e3)+'">'+content+"</div>"+$.sq_config.after_insert}if(as==="reference"){content='<a class="sq_local" href="'+parent.attr("href")+'" title="'+parent.attr("header")+'" >'+decodeURIComponent(parent.attr("href"))+"</a>";content='<div id="lo'+Math.floor(Math.random()*1e3)+'" style="font-style:italic;color: #333;">'+content+"</div>"+$.sq_config.after_insert}if(as==="link"){content='<a href="'+parent.attr("href")+'" title="'+parent.attr("header")+'" style="font-style:italic;color: #333;">'+decodeURIComponent(parent.attr("href"))+"</a>"}return content};$this.formatDate=function(date){var mm=date.getMonth()+1;var dd=date.getDate();var yyyy=date.getFullYear();mm=mm<10?"0"+mm:mm;return mm+"."+dd+"."+yyyy};$this.showTypeHelp=function(type){$this.find(".sq_type_help").hide();$this.find(".sq_type_"+type+"_help").show()};$this.refreshSearch=function(type){settings.type=type;$this.getSearch(type,0)};$this.previewBlog=function(parent,filter){if($.sq_fields.sq_blog_preview===null)return;$.post($.sq_config.ajaxurl,{action:"sla_preview",sq_nonce:$.sq_config.sq_nonce,filter:filter?"&filter=1":"&filter=0",link:parent.attr("href"),output:"json"}).done(function(response){if(typeof response.error!=="undefined"){$.sq_fields.sq_blog_preview.removeClass("sq_error").sq_doneloading();$.sq_fields.sq_blog_preview.attr("href",response.link);$.sq_fields.sq_blog_preview.find("#sq_blog_preview_title").html($.sq_config.__nofound);$.sq_fields.sq_blog_preview.find("#sq_blog_preview_body").html($.sq_config.__nofound)}else if(typeof response.data!=="undefined"&&response.data.content!==""){$.sq_fields.sq_blog_preview.removeClass("sq_error").sq_doneloading();$.sq_fields.sq_blog_preview.attr("href",response.link);$.sq_fields.sq_blog_preview.find("#sq_blog_preview_title").html(response.data.title);$.sq_fields.sq_blog_preview.find("#sq_blog_preview_body").html(response.data.content);$.sq_fields.sq_blog_preview.find("#sq_blog_preview_body p").each(function(){$(this).removeClass()});var ptext;$.sq_fields.sq_blog_preview.find(".sq_blog_option").off("click").on("click",function(){ptext=$(this).parent("p").clone();ptext=ptext.find(".sq_blog_option").remove();ptext=ptext.end().html();if($.sq_isGutenberg()){var sq_block=wp.blocks.createBlock("core/html",{content:ptext+$this.packblog($.sq_fields.sq_blog_preview,"reference")});var ed=$.sq_editor.getBlockEditor("dispatch");if(ed)ed.insertBlock(sq_block,undefined);$("#block-"+sq_block.clientId).find(".editor-block-toolbar").find("button").trigger("click")}else{$.sq_editor.insert(ptext+$this.packblog($.sq_fields.sq_blog_preview,"reference"))}});$.sq_fields.sq_blog_preview.find("#sq_blog_preview_body a").each(function(){$(this).attr("target","_blank")});$.sq_fields.sq_blog_preview.find(".editsection").hide()}else{$.sq_fields.sq_blog_preview.remove()}$.sq_fields.sq_blog_preview.find("#sq_blog_preview_close").off(event).on(event,function(){$.sq_fields.sq_blog_preview.remove()})}).fail(function(){$.sq_fields.sq_blog_preview.remove()})};$this.showNotOptimized=function(){$("#sq_nokeyword").show()};$this.hideNotOptimized=function(){$("#sq_publish_alert").hide()};$this.handleKey=function(event,gsuggestion_index){if(event.keyCode===$.ui.keyCode.UP&&gsuggestion_index>0){gsuggestion_index--}else if(event.keyCode===$.ui.keyCode.DOWN&&gsuggestion_index<$(".sq_gsuggestion .sq_item_gsuggestion").length){gsuggestion_index++}else{gsuggestion_index=0}$(".sq_gsuggestion .sq_item_gsuggestion").removeClass("sq_item_active");if(gsuggestion_index>0){var item_active=$(".sq_gsuggestion .sq_item_gsuggestion:nth-child("+gsuggestion_index+")");item_active.addClass("sq_item_active");$.sq_fields.sq_keyword.val(item_active.html())}return gsuggestion_index};$this.hideOptions=function(){if(settings.timeout){clearTimeout(settings.timeout);clearTimeout(settings.calltime)}if(settings.gtimeout){clearTimeout(settings.gtimeout)}if(settings.ajaxCall)settings.ajaxCall.abort()};$this.prepareParam=function(response,keyword){var j;var param={rank:-1,note:-1,stats:[]};if($.sq_isArray(response)){var responselen=response.length;for(j=0;j<responselen;j++){if($.sq_strEqual(keyword,response[j].keyword)){param.rank=response[j].stats.rank.value;param.note=response[j].note;param.stats=[response[j].stats.tw,response[j].stats.sv,response[j].stats.sc,response[j].stats.td];break}}}return param};$this.addTag=function(){if($.sq_config.sq_keywordtag==1){$("#new-tag-post_tag").val($.sq_config.keyword);$("input.tagadd").trigger("click")}};$this.sq_eventssearch={checkKeywordSet:function(){if($.sq_fields.sq_keyword.val()!==""){$.sq_config.keyword=$.sq_fields.sq_keyword.val();$.sq_fields.sq_selectit.trigger("click");$.sq_fields.sq_keyword_score.html("0%");$(".sq_keyword").show();if($.sq_config.firsttime){$.sq_fields.sq_box_maximize.trigger("click")}}if($.sq_config.keyword===""&&$(".sq_snippet_keywords").length>0){var snipet_keywords=$(".sq_snippet_keywords").text().split(",");if(snipet_keywords.length>0){$.sq_config.keyword=snipet_keywords[0];$.sq_fields.sq_keyword.val($.sq_config.keyword);$.sq_fields.sq_selectit.trigger("click")}}if($.sq_config.keyword===""){$this.hideTypes();$.sq_blockseo.overlay();$this.hideOptions();$this.showNotOptimized()}$this.initialFieldValue($.sq_fields.sq_keyword,"black","gray");$.sq_fields.div_blockseo.trigger("seo.keyword_loaded")},listen:function(){$.post($.sq_config.ajaxurl,{action:"sla_keywords",sq_nonce:$.sq_config.sq_nonce,post_id:$.sq_config.postID}).done(function(response){if(typeof $.sq_fields.sq_keyword==="undefined"){$.sq_setfields()}if(typeof response.data!=="undefined"){if(typeof response.data.keyword!=="undefined"){if(response.data.keyword===null){$.sq_config.firsttime=true;$this.sq_eventssearch.checkKeywordSet()}else{$.sq_config.firsttime=false;if($.sq_fields.sq_keyword.val()===""){$.sq_fields.sq_keyword.val(decodeURIComponent(response.data.keyword))}$this.sq_eventssearch.checkKeywordSet()}}}$.sq_fields.sq_preloading_keyword.hide();$.sq_fields.sq_blocktabs.show();$.sq_fields.div_blockbriefacse.show();$this.trigger("seo.keyword_loaded")}).fail(function(error){$.sq_fields.sq_preloading.show()});$.sq_fields.sq_keyword.on("keypress",function(event){if(event.keyCode===$.ui.keyCode.ENTER){$.sq_fields.sq_keyword_check.trigger("click")}return event.keyCode!==$.ui.keyCode.ENTER});$.sq_fields.sq_keyword.on("keyup",function(event){if(event.keyCode!==$.ui.keyCode.ENTER&&event.keyCode!==$.ui.keyCode.UP&&event.keyCode!==$.ui.keyCode.DOWN&&event.keyCode!==$.ui.keyCode.ESCAPE){if($.sq_fields.sq_keyword.val()!==""&&$.sq_config.keyword!==$.sq_clearText($.sq_fields.sq_keyword.val())){if($.sq_fields.sq_keyword.val()!==""){$.sq_config.keyword=$.sq_fields.sq_keyword.val();$.sq_blockseo.checkKeyword();$this.init()}else{$this.hideOptions()}$.sq_blockseo.overlay();$this.hideSearch()}}else if(event.keyCode===$.ui.keyCode.ESCAPE){if($.sq_fields.sq_keyword.val()!==""){$this.hideOptions()}}});$.sq_fields.sq_keyword.on("click",function(){if($.sq_fields.sq_keyword.val()===""){$this.hideOptions()}});$.sq_fields.sq_keyword_check.off("click").on("click",function(){if($.sq_fields.sq_keyword.val()!==""){$.sq_fields.sq_selectit.trigger("click")}});$.sq_fields.sq_selectit.off("click").on("click",function(){$.sq_config.manual=true;$("#sq_keyword_second").val("");if($.sq_fields.sq_keyword.val()!==""){$.sq_config.keyword=$.sq_fields.sq_keyword.val()}if($.sq_config.keyword!==""){if($("#sq_blocksnippet").find("input[name=sq_keyword]").length){$("#sq_blocksnippet").find("input[name=sq_keyword]").val($.sq_config.keyword)}$this.showTypes();$.sq_blockseo.load();$.sq_blockseo.closeOverlay();$this.trigger("seo.keyword_selected");$(".sq_request_highlight_key").html($.sq_config.keyword);$.sq_fields.sq_type_img.trigger("click");$this.hideNotOptimized()}if($.sq_fields.wp_content_wrap.length>0){if($.sq_fields.wp_content_wrap.attr("class").indexOf("html-active")==-1){$this.showActiveEditor()}}});$.sq_fields.sq_type_img.off("click").on("click",function(){$.sq_fields.sq_types.find("li").removeClass("sq_active");$(this).addClass("sq_active");$this.showTypeHelp("img");$this.refreshSearch("img")});$.sq_fields.sq_type_twitter.off("click").on("click",function(){$.sq_fields.sq_types.find("li").removeClass("sq_active");$(this).addClass("sq_active");$this.showTypeHelp("twitter");$this.refreshSearch("twitter")});$.sq_fields.sq_type_news.off("click").on("click",function(){$.sq_fields.sq_types.find("li").removeClass("sq_active");$(this).addClass("sq_active");$this.showTypeHelp("twitter");$this.refreshSearch("news")});$.sq_fields.sq_type_blog.off("click").on("click",function(){$.sq_fields.sq_types.find("li").removeClass("sq_active");$(this).addClass("sq_active");$this.showTypeHelp("blog");$this.refreshSearch("blog")});$.sq_fields.sq_type_wiki.off("click").on("click",function(){$.sq_fields.sq_types.find("li").removeClass("sq_active");$(this).addClass("sq_active");$this.showTypeHelp("wiki");$this.refreshSearch("wiki")});$.sq_fields.sq_type_local.off("click").on("click",function(){$.sq_fields.sq_types.find("li").removeClass("sq_active");$(this).addClass("sq_active");$this.showTypeHelp("local");$this.refreshSearch("local")});$.sq_fields.sq_search_img_nolicence.off("click").on("click",function(){var licence=1;if($.sq_fields.sq_search_img_nolicence.is(":checked")){$("#sq_search_img_nolicence_label").attr("class","checked");licence=1}else{$("#sq_search_img_nolicence_label").removeClass("checked");licence=0}$this.refreshSearch("img")});$(".wp-switch-editor").on("click",function(){if(this.id.indexOf("tmce")!==-1){$this.sq_eventssearch.listenMCE()}else{$this.sq_eventssearch.listenHTML()}});$("#qt_content_fullscreen, .mce-i-wp_fullscreen").on("click",function(){$(".mce-btn").find("i").on("click",function(){$this.sq_eventssearch.listenMCE()});$(".wp-fullscreen-mode-tinymce").on("click",function(){$this.sq_eventssearch.listenMCE();$(".media-modal").find("a").on("click",function(){$this.sq_eventssearch.listenMCE()})});$(".wp-fullscreen-mode-html").on("click",function(){$this.sq_eventssearch.listenHTML();$(".media-modal").find("a").on("click",function(){$this.sq_eventssearch.listenHTML()})})});$("#wp-fullscreen-close, .mce-i-bold, .media-button").find("a").on("click",function(){if($.sq_fields.wp_content_wrap.length>0&&$.sq_fields.wp_content_wrap.attr("class").indexOf("html-active")!==-1){$.sq_blockseo.sq_eventsseo.listenHtml()}else{$.sq_blockseo.sq_eventsseo.listenTinymce()}})},listenMCE:function(){$this.showActiveEditor();$.sq_blockseo.sq_eventsseo.stopListenHtml();$.sq_blockseo.sq_eventsseo.listenTinymce();$.sq_fields.sq_selectit.trigger("click")},listenHTML:function(){$.sq_blockseo.sq_eventsseo.stopListenTinymce();$.sq_blockseo.sq_eventsseo.listenHtml();$.sq_fields.sq_selectit.trigger("click")}};$this.one("seo.loaded",function(){SQ_DEBUG&&console.log("sq_blocksearch seo.loaded");$this.sq_eventssearch.listen()});return $this}})(jQuery);
|
view/assets/js/assistant/sq_blockseo.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function($){"use strict";$.fn.sq_blockseo=function(options){var $this=this;var settings=$.extend({check:[],single_tag:[],double_tag:[],custom_tag:[],custom_tag_id:[],clicked:[]},options);$.sq_fields=$.extend({sq_wp_title_info:$('<span id="sq_wp_title_info" style="display: block; float: right;" />')},$.sq_fields);var seo={title:"",content:""};$this.setContent=function(content){seo.content=content};$this.callback=function(){$.sq_config.manual=true;$.sq_config.silent=false;$.sq_config.briefcase=false;if(typeof $.sq_config.keyword==="undefined"||$.sq_config.keyword==="")return;if($.sq_config.editor_type==="tinymce"){if($.sq_isGutenberg()){ed=$.sq_editor.getBlockEditor("select");if(ed)seo.content=ed.getEditedPostContent()}else if($.sq_config.active_editor&&typeof $.sq_config.active_editor.html=="function"){seo.content=$.sq_config.active_editor.html()}else{ed=$.sq_editor.getIframeEditor();seo.content=ed.html()}}else{if($.sq_isGutenberg()){var ed=$.sq_editor.getBlockEditor("select");if(ed)seo.content=ed.getEditedPostContent()}else if($.sq_isFrontend()){var ed=$.sq_editor.getFrontendEditor();if(ed)seo.content=ed.getPageContent()}else if($.sq_config.active_editor&&typeof $.sq_config.active_editor.val=="function"){seo.content=$.sq_fields.wp_content.val()}else if($.sq_fields.wp_content.length){seo.content=$.sq_fields.wp_content.val()}}$this.trigger("seo.content");$this.checkSEO();$this.trigger("seo.callback")};$this.checkSEO=function(){if(typeof seo.content!=="undefined"&&$.sq_clearText(seo.content)!==""){SQ_DEBUG&&console.log("check keywords in body and tags");$this.checkBody();$this.checkSingleTags();$this.checkCustomTags();$this.checkKPinguinUrl();$this.checkKeyword();if($.sq_fields.wp_thumbnail.length>0){$this.sq_eventsseo.listenMediaLibrary()}else if($("#postimagediv").length>0){$this.checkImage($("#postimagediv"))}else if($.sq_isFrontend()){var ed=$.sq_editor.getFrontendEditor();if(ed){$.sq_blockseo.checkImage($("<div>"+ed.getPageImages()+"</div>"))}}if($(".editor-post-featured-image").length>0){$this.checkImage($(".editor-post-featured-image"))}if($("#visual_composer_content").length>0){$this.sq_eventsseo.listenVComposer()}if($("#fusion_builder_container").length>0){$this.sq_eventsseo.listenFusion()}}if(typeof seo.content!=="undefined"&&($.sq_clearText(seo.content).length>1||$.sq_fields.wp_input_title.length>0&&$.sq_clearText($.sq_fields.wp_input_title.val()).length>1)){if(settings.check.indexOf("~density~")!==-1){$this.keywordDensity($.sq_fields.wp_input_title.val()+" "+seo.content,$.sq_params.low_density,$.sq_params.high_density,"density")}}};$this.checkWpFields=function(){if(typeof $.sq_config.keyword==="undefined"||$.sq_config.keyword==="")return;SQ_DEBUG&&console.log("=====TITLE=====");SQ_DEBUG&&console.log($.sq_fields.wp_input_title);if($.sq_fields.wp_input_title.length){if($.sq_clearText($.sq_fields.wp_input_title.val()).length>1){SQ_DEBUG&&console.log("check keywords in title: "+$.sq_fields.wp_input_title.val());$this.checkPinguin();$this.checkTitle();if(settings.check.indexOf("~density_title~")!==-1){var id="density_title";if($this.checkWordsLength($.sq_config.keyword,1,100)){if($.sq_strEqual($.sq_fields.wp_input_title.val(),$.sq_config.keyword)){$this.setChecked(true,id)}else{$this.keywordDensity($.sq_fields.wp_input_title.val(),$.sq_params.low_density_title,$.sq_params.high_density_title,"density_title")}}else{$("#sq_"+id+"_val").html($("#sq_"+id+"_longtail").html());$this.setChecked(false,id)}}if(settings.check.indexOf("~density~")!==-1)$this.keywordDensity($.sq_fields.wp_input_title.val()+" "+seo.content,$.sq_params.low_density,$.sq_params.high_density,"density")}}SQ_DEBUG&&console.log("=====END TITLE=====");return $this.getPercentCompleted()};$this.load=function(){$.sq_fields.div_blockseo.find(".sq_tasks > ul > li").not(".sq_tasks_category").removeClass("checked");if($.sq_config.timeout_seo){clearTimeout($.sq_config.timeout_seo)}$.sq_config.timeout_seo=setTimeout(function(){$this.checkWpFields();$this.callback()},100)};$this.close=function(){$.sq_fields.div_blockseo.hide()};$this.overlay=function(){if($(".sq_overlay").length==0){$.sq_fields.div_blockseo.prepend('<div class="sq_overlay" data-title="'+$.sq_config.__enter_keyword+'" title="'+$.sq_config.__enter_keyword+'"></div>');$(".sq_overlay").on("click",function(){if($.sq_fields.sq_keyword.val()===""){var previewtop=$.sq_fields.sq_keyword.offset().top-100;if($(".edit-post-layout__content").length>0){$(".edit-post-layout__content").animate({scrollTop:$(".edit-post-layout__content").scrollTop()+previewtop},1e3,function(){$.sq_fields.sq_keyword.focus();$.sq_blocksearch.showEnterKeyword()})}else{$("html,body").animate({scrollTop:previewtop},1e3,function(){$.sq_fields.sq_keyword.focus();$.sq_blocksearch.showEnterKeyword()})}}else{$.sq_fields.sq_selectit.trigger("click")}})}};$this.closeOverlay=function(){$(".sq_overlay").remove()};$this.checkKPinguinUrl=function(){if($("#custom_permalinks_home_url").length>0&&$("#custom_permalink").length>0){if(settings.check.indexOf("~pinguin_url~")!==-1&&$.sq_config.keyword!==""){var slug=$("#custom_permalinks_home_url").val()+" "+$("#custom_permalink").val();$this.setChecked($this.urlMatch(slug,$.sq_config.keyword),"pinguin_url")}}else if($("#editable-post-name-full").length>0){if(settings.check.indexOf("~pinguin_url~")!==-1&&$.sq_config.keyword!==""){var root="";if($("#sample-permalink").length>0){var sample_permalink=$("#sample-permalink").find("a").clone();sample_permalink.find("span").remove();root=sample_permalink.text()}var slug=root+" "+$("#editable-post-name-full").html();$this.setChecked($this.urlMatch(slug,$.sq_config.keyword),"pinguin_url")}}else if($("#new-post-slug").length>0){if(settings.check.indexOf("~pinguin_url~")!==-1&&$.sq_config.keyword!==""){var slug=$("#new-post-slug").val();$this.setChecked($this.urlMatch(slug,$.sq_config.keyword),"pinguin_url")}}else if($("#sample-permalink").length>0){if(settings.check.indexOf("~pinguin_url~")!==-1&&$.sq_config.keyword!==""){var slug=$("#sample-permalink").html().replace(/<\/?[^>]+>/gi," ");$this.setChecked($this.urlMatch(slug,$.sq_config.keyword),"pinguin_url")}}else if($.sq_isGutenberg()){var ed=$.sq_editor.getBlockEditor("select");if(ed){var slug=decodeURIComponent(ed.getPermalink()).replace(/<\/?[^>]+>/gi," ");$this.setChecked($this.urlMatch(slug,$.sq_config.keyword),"pinguin_url")}}};$this.checkKeyword=function(){if(settings.check.indexOf("~longtail_keyword~")!==-1&&$.sq_config.keyword!==""){$this.setChecked($this.checkWordsLength($.sq_config.keyword,2,0),"longtail_keyword")}};$this.checkKPinguin=function(){if(settings.check.indexOf("~pinguin_domain~")!==-1&&$.sq_config.keyword!==""){$this.setChecked(!$this.keywordMatch($.sq_getDomain(document.domain,[8]),$.sq_config.keyword,true),"pinguin_domain")}};$this.checkPinguin=function(){if(settings.check.indexOf("~pinguin_title~")!==-1){var domain=$.sq_getDomain(document.domain,[8])!==""?$.sq_getDomain(document.domain,[8]):document.domain;$this.setChecked(!$this.keywordMatch($.sq_fields.wp_input_title.val(),domain,true),"pinguin_title")}};$this.checkTitle=function(){if($.sq_fields.wp_input_title.length>0){if(settings.check.indexOf("~title_length~")!==-1)$this.setChecked($this.checkLength($.sq_fields.wp_input_title.val(),$.sq_params.min_length_title,$.sq_params.max_length_title),"title_length");if(settings.check.indexOf("~title~")!==-1)$this.setChecked($this.keywordMatch($.sq_fields.wp_input_title.val(),$.sq_config.keyword),"title")}};$this.checkImage=function(_this){$.sq_config.silent=true;var pattern=null;pattern=new RegExp("<img([^>]*)>","gi");if(_this.html()!==""&&$this.checkPattern(pattern)){$this.setChecked(true,"img",true)}else if(_this.html()!==""){SQ_DEBUG&&console.log("Check image in object");if($this.checkPattern(pattern,_this.html())){$this.setChecked($this.checkPattern(pattern,_this.html()).length>0,"img",true)}else{pattern=new RegExp("\\[gallery[^\\]]*ids=[^\\]]*\\]","gi");if($this.checkPattern(pattern)){$this.setChecked($this.checkPattern(pattern).length>0,"img")}else{$this.setChecked(0,"img")}}}pattern=new RegExp('alt="([^"]+)"',"gi");if(!$this.keywordMatch($this.checkPattern(pattern),$.sq_config.keyword)){SQ_DEBUG&&console.log("There is no alt image in content");$this.setChecked($this.keywordMatch($this.checkPattern(pattern,_this.html()),$.sq_config.keyword),"alt")}};$this.handleKey=function(event,gsuggestion_index){if(event.keyCode===$.ui.keyCode.UP&&gsuggestion_index>0){gsuggestion_index--}else if(event.keyCode===$.ui.keyCode.DOWN&&gsuggestion_index<$("#sq_wp_title_suggestion .sq_item_gsuggestion").length){gsuggestion_index++}else{gsuggestion_index=0}$("#sq_wp_title_suggestion .sq_item_gsuggestion").removeClass("sq_item_active");if(gsuggestion_index>0){var item_active=$("#sq_wp_title_suggestion .sq_item_gsuggestion:nth-child("+gsuggestion_index+")");item_active.addClass("sq_item_active");$.sq_fields.wp_input_title.val(item_active.html());$this.checkTitle()}return gsuggestion_index};$this.hideOptions=function(){$("#sq_wp_title_suggestion").remove();$this.checkTitle()};$this.checkBody=function(){var $str=$("<div></div>").html(seo.content);$str.find("form").remove();$.sq_highlight($str,$.sq_config.keyword,{counter:0,done:function(count,positions){SQ_DEBUG&&console.log($str.text(),$.sq_config.keyword,count,positions);$this.processBody($str.text(),count,positions)}})};$this.processBody=function(cleanContent,count,positions){var checked=false,id=false,words=[],density,i=0;if($.sq_config.editor_type==="tinymce"){var iframe_tinymce=$.sq_editor.getIframeEditor()}if(settings.check.indexOf("~first_sentence~")!==-1){if(count>1&&cleanContent.length>$.sq_params.beginning_length){$this.setChecked(positions[1]<$.sq_params.beginning_length,"first_sentence")}}if(settings.check.indexOf("~body_length~")!==-1){if($this.checkWordsLength(cleanContent,$.sq_params.min_length_body,$.sq_params.max_length_body)===false){$("#sq_request_body_length").remove();$("#sq_body_length").append(' <span id="sq_request_body_length">'+"("+$this.getWords2Min(cleanContent,$.sq_params.min_length_body)+" more)</span>")}else{$("#sq_request_body_length").remove()}$this.setChecked($this.checkWordsLength(cleanContent,$.sq_params.min_length_body,$.sq_params.max_length_body),"body_length")}if(settings.check.indexOf("~body~")!==-1){$this.setChecked(count>0,"body")}if(settings.check.indexOf("~over_density~")!==-1){checked=true;id="over_density";if($this.checkWordsLength(cleanContent,$.sq_params.min_length_body,$.sq_params.max_length_body)===false){$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();$.sq_fields.div_blockseo.find("#sq_"+id+"").append('<span id="sq_request_'+id+'">: '+"("+$.sq_config.__addminimumwords.replace(/%s/g,$this.getWords2Min(cleanContent,$.sq_params.min_length_body))+")</span>");checked=false;$.sq_fields.div_blockseo.find("#sq_"+id+"_val").parent("li").removeClass("sq_"+id+"_high")}else{$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_done").html());words=$.sq_clearText($.sq_config.keyword).split(" ");density=$this.getDensity(cleanContent,$.sq_config.keyword);if(density.val>0){var ignore=["and","und","or","the","yet","for","also","then","like","too","but","i","you","he","she","we","they"];var wordslen=words.length;for(i=0;i<wordslen;i++){if(words[i].length>2&&ignore.indexOf(words[i])===-1){var word=words[i];density=$this.getDensity(cleanContent,word);if(density.val>=$.sq_params.max_word_density){var need=density.keywords-$.sq_params.max_word_density*density.words/100+1;need=Math.round(need)<=0?1:need.toFixed();$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();$.sq_fields.div_blockseo.find("#sq_"+id+"").append('<span id="sq_request_'+id+'">: '+'<span id="sq_request_'+id+'_highlight" style="color:yellow; text-decoration:underline; cursor: pointer;">'+word+"</span> "+$.sq_config.__toomanytimes.replace(/%s/g,need)+' <span id="sq_request_synonyms_oo"></span></span>');$this.getSynonyms(word,"sq_request_synonyms_oo");settings.clicked[id]=false;$.sq_fields.div_blockseo.find("#sq_request_"+id+"_highlight").parents("li:last").on("click",function(e){e.stopPropagation();settings.clicked[id]=true;$("body").on("mouseup",function(){if(iframe_tinymce!==false){$(iframe_tinymce).each(function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer($(this)))})}else{$.sq_removeHighlight($.sq_getBuilderEditorContainer())}})}).on("mouseenter",function(e){e.stopPropagation();$(this).css("cursor","pointer");if($.sq_config.editor_type==="tinymce"){if(iframe_tinymce!==false){$(iframe_tinymce).each(function(){$.sq_highlight($.sq_getBuilderEditorContainer($(this)),word)})}}else{$.sq_highlight($.sq_getBuilderEditorContainer($(this)),word)}}).on("mouseleave",function(){if($.sq_config.editor_type==="tinymce"){if(!settings.clicked[id]){if(iframe_tinymce!==false){$(iframe_tinymce).each(function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer($(this)))})}}}else{$.sq_removeHighlight($.sq_getBuilderEditorContainer())}});$.sq_fields.div_blockseo.find("#sq_"+id+"_val").parent("li").attr("class","sq_"+id+"_high");$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html("");checked=false;break}}}}else{checked=false}$this.setChecked(checked,id)}}if(settings.check.indexOf("~human_friendly~")!==-1){checked=true;id="human_friendly";$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html("");if($this.checkWordsLength(cleanContent,$.sq_params.min_length_body,$.sq_params.max_length_body)===false){$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();$.sq_fields.div_blockseo.find("#sq_"+id+"").append('<span id="sq_request_'+id+'">: '+"("+$.sq_config.__writemorewords.replace(/%s/g,$this.getWords2Min(cleanContent,$.sq_params.min_length_body))+")</span>");checked=false;$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html("")}else{$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();if(count>=2){for(i=2;i<=count;i++){SQ_DEBUG&&console.log(positions[i]-positions[i-1],$.sq_params.begin_last_max_chars);if(positions[i]-positions[i-1]<$.sq_params.begin_last_max_chars){$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();var ndt=i===2?"st":i===3?"nd":i===4?"rd":"th";$.sq_fields.div_blockseo.find("#sq_"+id+"").append('<span id="sq_request_'+id+'">: '+"("+$.sq_config.__morewordsafter.replace(/%s/g,'<span id="sq_request_'+id+'_highlight_key" style="color:lightcoral; text-decoration:underline; cursor: pointer;">'+(i-1)+ndt+"</span>")+' <span id="sq_request_synonyms"></span>)</span>');$this.getSynonyms($.sq_config.keyword,"sq_request_synonyms");settings.clicked[id]=false;$.sq_fields.div_blockseo.find("#sq_request_"+id+"_highlight_key").parents("li:last").off().on("click",function(e){e.stopPropagation();settings.clicked[id]=true;$("body").on("mouseup",function(){if(iframe_tinymce!==false){$(iframe_tinymce).each(function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer($(this)))})}else{$.sq_removeHighlight($.sq_getBuilderEditorContainer())}})}).on("mouseenter",function(e){e.stopPropagation();$(this).css("cursor","pointer");if($.sq_config.editor_type==="tinymce"){if(iframe_tinymce!==false){$(iframe_tinymce).each(function(){$.sq_highlight($.sq_getBuilderEditorContainer($(this)),$.sq_config.keyword)})}}else{$.sq_highlight($.sq_getBuilderEditorContainer($(this)),$.sq_config.keyword)}}).on("mouseleave",function(){if($.sq_config.editor_type==="tinymce"){if(!settings.clicked[id]){if(iframe_tinymce!==false){$(iframe_tinymce).each(function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer($(this)))})}}}else{$.sq_removeHighlight($.sq_getBuilderEditorContainer())}});checked=false;$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html("");break}}}}$this.setChecked(checked,id)}};$this.getSynonyms=function(word,span){var ignore=["and","und","or","the","yet","for","also","then","like","too","but","i","you","he","she","we","they"];var words=$.sq_stripChars(word).split(" ");$this.find("#"+span).html(" "+$.sq_config.__orusesynonyms);var wordslen=words.length;for(var w=0;w<wordslen;w++)if(words[w].length>2&&ignore.indexOf(words[w])===-1){$this.find("#"+span).append(" "+(w===0?"for":"or for")+' <span class="'+span+"_"+words[w]+" "+span+'" style="text-decoration:underline; cursor: pointer;" title="">'+words[w]+"</span>");var synonyms_all=$.sq_getCache("synonyms_"+words[w]);if(synonyms_all!==""){if(synonyms_all.length>0)$this.find("."+span+"_"+words[w]).attr("title",synonyms_all.join("\n"))}else{$.getJSON("https://thesaurus.altervista.org/thesaurus/v1?callback=?",{word:words[w],language:$.sq_config.language.replace("-","_"),key:"TDm3SO7N3XEfRWuXYFb9",output:"json"}).done(function(word){return function(data){var response=data.response;var synonyms=[];var synonyms_all=[];if(typeof response!=="undefined"&&response.length>0){var responselen=response.length;for(var j=0;j<responselen;j++){if(typeof response[j].list.synonyms!=="undefined"){synonyms=response[j].list.synonyms.split("|");var synonymslen=synonyms.length;for(var k=0;k<synonymslen;k++){if(typeof synonyms[k]!=="undefined"&&synonyms[k]!==""&&synonyms[k].indexOf("antonym")===-1){synonyms_all.push(synonyms[k]);if(synonyms_all.length>10)break}}}}if(synonyms_all.length>0){$this.find("."+span+"_"+word).attr("title",synonyms_all.join("\n"))}}$.sq_setCache("synonyms_"+word,synonyms_all)}}(words[w])).error(function(word){var synonyms_all=[];synonyms_all.push("no synonyms found");$this.find("."+span+"_"+word).attr("title",synonyms_all.join("\n"));$.sq_setCache("synonyms_"+word,synonyms_all)}(words[w]))}}};$this.checkTags=function(){var id;var striptag="[\\],\\[]";striptag=new RegExp(striptag,"g");for(var i in settings.double_tag){id="";try{if(typeof settings.double_tag[i]==="string"||settings.double_tag[i]instanceof String){id=settings.double_tag[i];id=id.replace(striptag,"");if(id!=="")$this.setChecked($this.keywordMatch($this.checkTag(["<"+settings.double_tag[i]+">","</"+settings.double_tag[i]+">"])),id)}}catch(e){}}};$this.checkCustomTags=function(){var pattern;for(var i in settings.custom_tag){pattern="";try{if(typeof settings.custom_tag[i]==="string"||settings.custom_tag[i]instanceof String){pattern=new RegExp(settings.custom_tag[i],"gi");if(pattern!==""){$this.setChecked($this.keywordMatch($this.checkPattern(pattern),$.sq_config.keyword),settings.custom_tag_id[i])}}}catch(e){}}return false};$this.checkSingleTags=function(){var id;var striptag="[\\],\\[]";striptag=$.sq_regex(striptag);for(var i in settings.single_tag){id="";try{if(typeof settings.single_tag[i]==="string"||settings.single_tag[i]instanceof String){id=settings.single_tag[i].replace(striptag,"");if(id!==""){$this.setChecked($this.checkTag(["<"+settings.single_tag[i],">"]).length>0,id)}}}catch(e){}}};$this.checkTag=function(tag,content){var pattern="";if($.sq_isArray(tag)){if(tag[0]!==""&&tag[1]!==""){pattern=tag[0].replace("/","\\/")+"([^>]*)"+tag[1].replace("/","\\/");pattern=$.sq_regex(pattern)}}else{return false}SQ_DEBUG&&console.log("checkTag pattern: "+pattern);return $this.checkPattern(pattern,content)};$this.checkPattern=function(pattern,content){if(typeof content==="undefined")var content=seo.content;content=content.replace(/<img([^>]*)(mceItemMedia|mce-object)([^>]*)>/gi," ");var matches="";if(pattern!==""){matches=content.toLowerCase().match(pattern);SQ_DEBUG&&console.log((matches!==null)+" for "+pattern+" in content");if(matches!==null&&$.sq_isArray(matches)){return matches.join(", ")}}return false};$this.getPercentCompleted=function(){var all=$.sq_fields.div_blockseo.find(".sq_tasks > ul > li").not(".sq_tasks_category").length;var checked=$.sq_fields.div_blockseo.find(".sq_tasks > ul > li.checked").not(".sq_tasks_category").length;return checked*100/all};$this.checkCompleted=function(){if($.sq_config.silent){return}var cached=null;var ky=$.sq_config.keyword.replace(/[^a-zA-Z0-9]/g,"");var timeout=3e3;if(!$.sq_config.manual){timeout=1e3}cached=$.sq_getCache("complete_"+ky);if(cached!=="1")if($.sq_fields.div_blockseo.find(".sq_tasks > ul > li").length>10){if($.sq_fields.div_blockseo.find(".sq_tasks > ul > li").not(".sq_tasks_category").not(".checked").length==0){$("body").prepend($("<ul/>").html("<li>"+$.sq_config.__fulloptimized+"</li>").addClass("sq_complete"));if($("#wpadminbar").css("display")=="none"){$(".sq_complete").css("top","0")}else{$(".sq_complete").css("top","28px")}setTimeout(function(){$("ul.sq_complete").fadeOut("slow");$("ul.sq_complete").remove()},timeout);$.sq_setCache("complete_"+ky,"1");if($(".sq_helpnotice").length>0)$(".sq_helpnotice").slideDown()}$(".sq_blockseo_progress").val($this.getPercentCompleted());$.sq_fields.sq_keyword_score.html(parseInt($this.getPercentCompleted())+"%")}};$this.setChecked=function(cond,id,hidden){var cached=null;var ky=$.sq_config.keyword.replace(/[^a-zA-Z0-9]/g,"");if($.sq_getCookie("sq_sla")==="off"){hidden=1}if(cond){$.sq_fields.div_blockseo.find("#sq_"+id).attr("class","checked");if($.sq_fields.div_blockseo.find("#sq_"+id).find(".sq_request_highlight_key").length>0){$.sq_fields.div_blockseo.find("#sq_"+id).find(".sq_request_highlight_key").hide();$this.sq_eventsseo.listenHighlight(false)}cached=$.sq_getCache("task_"+ky+id);if(cached!=="1"){if($.sq_config.manual){if(typeof hidden==="undefined"){$this.addTopNotification(id)}}}SQ_DEBUG&&console.log("sq_setCache true: ",id);$.sq_setCache("task_"+ky+id,"1");$.sq_fields.div_blockseo.find("#sq_input_"+id+"").remove();$.sq_fields.div_blockseo.find("#sq_"+id).append('<input id="sq_input_'+id+'" type="hidden" name="sq_seo[]" value="'+id+'" />')}else{$.sq_setCache("task_"+ky+id,"0");if(id!=="img"&&id!=="alt"){SQ_DEBUG&&console.log("sq_setCache false: ",id);$.sq_setCache("complete_"+ky,"0")}$.sq_fields.div_blockseo.find("#sq_"+id).removeClass("checked");if($.sq_fields.div_blockseo.find("#sq_"+id).find(".sq_request_highlight_key").length>0){$.sq_fields.div_blockseo.find("#sq_"+id).find(".sq_request_highlight_key").show();$this.sq_eventsseo.listenHighlight(true)}$.sq_fields.div_blockseo.find("#sq_input_"+id).remove()}$this.checkCompleted();if(!$.sq_config.briefcase){$this.trigger("seo.after_checked",[id])}return Boolean(cond)};$this.addTopNotification=function(id){if($.sq_config.silent){return}var task=$.sq_fields.div_blockseo.find("#sq_"+id).clone();task=task.find(".sq_help").remove();task=task.end().html();$("ul.sq_notification").remove();$("body").append($("<ul/>").attr("id","sqt_"+id).html("<li>"+task+"</li>").addClass("sq_notification").css("zIndex","100000001"));if($("#wpadminbar").css("display")=="none"){$(".sq_notification").css("top","0")}else{$(".sq_notification").css("top","28px")}if($("#sq_"+id).find(".sq_seo_priority_essential").length>0){$("#sqt_"+id).addClass("sq_notification_front")}if($this.timeout)clearTimeout($this.timeout);$this.timeout=setTimeout(function(){$("ul.sq_notification").fadeOut("slow");$("ul.sq_notification").remove()},3e3)};$this.checkLength=function(str,min,max){str=$.sq_clearText(str);if(min>0&&str.length>=min&&(max===0||str.length<=max)){return true}return false};$this.checkWordsLength=function(str,min,max){if(min>0&&$this.wordCount(str)>=min&&(max===0||$this.wordCount(str)<=max)){return true}return false};$this.getWords2Min=function(str,min){if(min>0&&$this.wordCount(str)<min){return(min-$this.wordCount(str)+1).toFixed()}return 0};$this.urlMatch=function(str,keyword){if(str===false)return;if(typeof keyword==="undefined")return;var original=keyword;str=$.sq_clearText(str);str=$.sq_stripChars(str);keyword=$.sq_umlautsText(keyword);keyword=$.sq_clearText(keyword);keyword=$.sq_stripChars(keyword);SQ_DEBUG&&console.log("keywordMatch: "+keyword+"=>"+str);if(str!==""&&keyword!==""){var matches=0;$.sq_highlight($("<div>"+str+"</div>"),keyword,{counter:1,done:function(count){matches=count}});if(!matches){keyword=keyword.replace(/\s/g,"");$.sq_highlight($("<div>"+str+"</div>"),keyword,{counter:1,done:function(count){matches=count}})}if(!matches&&original.indexOf("ü")){keyword=original.replace("ü","ue");keyword=$.sq_clearText(keyword);keyword=$.sq_stripChars(keyword);$.sq_highlight($("<div>"+str+"</div>"),keyword,{counter:1,done:function(count){matches=count}})}SQ_DEBUG&&console.log("matches="+matches);return matches>0}};$this.keywordMatch=function(str,keyword,exact_match){var matches=0;if(str===false)return matches;if(typeof keyword==="undefined")return matches;str=$.sq_clearText(str);keyword=$.sq_clearText(keyword);keyword=keyword.replace(/[\"]/g,"");keyword=keyword.trim();if(typeof exact_match==="undefined")exact_match=false;if(typeof str!=="undefined"&&str!==""&&keyword!==""){if(exact_match){matches=$.sq_strEqual(str,keyword)}else{$.sq_highlight($("<div>"+str+"</div>"),keyword,{counter:0,done:function(count){matches=count}});SQ_DEBUG&&console.log("matches="+matches)}}return matches};$this.keywordDensity=function(str,low,high,id){var density=$this.getDensity(str,$.sq_config.keyword);var cached=null;var ky=$.sq_config.keyword.replace(/[^a-zA-Z0-9]/g,"");if(density.words<$this.checkWordsLength($.sq_config.keyword)){SQ_DEBUG&&console.log("keywordDensity: TOO FEW WORDS ",density.words);$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html("");$this.setChecked(false,id);return}if(density.val<=low&&density.keywords<$.sq_params.max_keywords){SQ_DEBUG&&console.log("keywordDensity: TOO LOW ",density.val,low,density.keywords,$.sq_params.max_keywords);var need=density.words-100*density.keywords/low;need=Math.round(need)<=0?1:Math.round(need);var kr_need=Math.min(low*density.words/100-density.keywords+.5,$.sq_params.max_keywords-density.keywords);kr_need=Math.round(kr_need)<=0?1:kr_need.toFixed();$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_low").html());$.sq_fields.div_blockseo.find("#sq_"+id+"_val").parent("li").attr("class","sq_"+id+"_low");cached=$.sq_getCache("task_"+ky+id);if(cached==="1"){if($.sq_config.manual){$this.addTopNotification(id);$this.find("#sqt_"+id).addClass("sq_"+id+"_low")}}$.sq_setCache("task_"+ky+id,"2");$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_low").html()+" ("+$.sq_config.__addmorekeywords.replace(/%s/g,kr_need)+(need<density.words?" "+$.sq_config.__removewords.replace(/%s/g,Math.min(need,density.words)):"")+")");$.sq_fields.div_blockseo.find("#sq_input_"+id).remove()}else{if(density.val>=high){SQ_DEBUG&&console.log("keywordDensity: TOO HIGH ",density.val);var need=100*density.keywords/high-density.words+.5;need=Math.round(need)<=0?1:Math.round(need);var kr_need=density.keywords-high*density.words/100+.5;kr_need=Math.round(kr_need)<=0?1:kr_need.toFixed();$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_high").html());$.sq_fields.div_blockseo.find("#sq_"+id+"_val").parent("li").attr("class","sq_"+id+"_high");cached=$.sq_getCache("task_"+ky+id);if(cached==="1"){if($.sq_config.manual){$this.addTopNotification(id);$this.find("#sqt_"+id).addClass("sq_"+id+"_high")}}$.sq_setCache("task_"+ky+id,"3");if($this.checkWordsLength(str,$.sq_params.min_length_body,$.sq_params.max_length_body)!==false)kr_need="remove "+kr_need+" keyword(s) or ";else kr_need="";$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_high").html()+" ("+kr_need+$.sq_config.__addmorewords.replace(/%s/g,need)+")");$.sq_fields.div_blockseo.find("#sq_input_"+id).remove()}else{SQ_DEBUG&&console.log("keywordDensity: "+((density.val>low||density.keywords>=$.sq_params.max_keywords)&&density.val<high),density.val,low,density.keywords,$.sq_params.max_keywords);$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_done").html());$this.setChecked((density.val>low||density.keywords>=$.sq_params.max_keywords)&&density.val<high,id)}}};$this.getDensity=function(str,keyword){var density={};keyword=$.sq_clearText(keyword);str=$.sq_clearText(str);density.keywords=$this.phraseCount(str,keyword);density.words=$this.wordCount(str);density.words=density.words-density.keywords*($this.keywordWords(keyword)-1);if(density.words>0){density.val=density.keywords*100/density.words}else if(density.keywords>=1){density.val=100}else{density.val=0}return density};$this.keywordWords=function(keyword){var pattern=new RegExp("[㐀-龿 -〿-ゟ゠-ヿ-゚一-龯㐀-䶿]|\\S+","gi");var words=keyword.match(pattern);if(words&&words.length>0)return words.length+1;else return 1};$this.phraseCount=function(str,keyword){var words=0;$.sq_highlight($("<div>"+str+"</div>"),keyword,{counter:1,done:function(count){words=count}});return words};$this.wordCount=function(str){str=$.sq_clearText(str);var matches=str.match(/[\u3400-\u9FBF\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]|\S+/g);if(matches)return matches.length;return 0};$this.sq_eventsseo={listen:function(){if($.sq_config.keyword!==""){$this.closeOverlay()}else{$this.overlay()}$.getJSON($.sq_config.sq_apiurl+"api/posts/seo/tasks?callback=?",{user_url:$.sq_config.user_url,token:$.sq_config.token,url_token:$.sq_config.url_token}).done(function(response){$this.sq_doneloading("sq_minloading").removeClass("sq_error");if(typeof response.data!=="undefined"&&typeof response.data.tasks!=="undefined"&&$this.find(".sq_tasks").length>0){$this.find(".sq_tasks").append(response.data.tasks);settings.check=eval("sq_check");settings.custom_tag=eval("sq_custom_tag");settings.custom_tag_id=eval("sq_custom_tag_id");settings.single_tag=eval("sq_single_tag");if($.sq_fields.div_blockseo.find("#sq_seo_refresh").length==0){$.sq_fields.div_blockseo.find(".sq_header").append('<span id="sq_seo_refresh" style="float: right; line-height: 22px; text-align: center; width: 64px; height: 22px; background-color: #ff9b00; font-size: 12px; font-weight: bold; color: white; margin: -2px 0; padding: 0px; border: none; cursor: pointer;">Update</span>')}$this.sq_eventsseo.listenHighlight(true);$this.on("seo.refresh",function(){$.sq_fields.div_blockseo.find("#sq_seo_refresh").addClass("sq_minloading");setTimeout(function(){$.sq_fields.div_blockseo.find("#sq_seo_refresh").removeClass("sq_minloading");$this.load()},1e3)});$.sq_fields.div_blockseo.find("#sq_seo_refresh").on("lateclick",function(){$this.trigger("seo.refresh");$this.trigger("seo.refresh_lateclick")});$this.find("#sq_seo_refresh").on("click",function(){$this.trigger("seo.refresh");$this.trigger("seo.refresh_click")});$this.trigger("seo.refresh");$this.trigger("seo.task_loaded")}else{$this.sq_doneloading("sq_minloading").removeClass("sq_error");$this.find(".sq_tasks").html('<div class="sq_message" style="width: 100% !important;">'+$.sq_config.__ajaxerror+"</div>")}}).fail(function(){$.sq_fields.sq_errorloading.show();$.sq_fields.sq_preloading_keyword.hide();$this.sq_doneloading("sq_minloading").removeClass("sq_error");$this.find(".sq_tasks").html('<div class="sq_message" style="width: 100% !important;">'+$.sq_config.__ajaxerror+"</div>")});$this.sq_eventsseo.listenTitle();$this.sq_eventsseo.listenSlug();$this.sq_eventsseo.listenSticky();$.sq_fields.content_tmce.on("click",function(){$.sq_config.editor_type="tinymce"});$.sq_fields.content_html.on("click",function(){$.sq_config.editor_type="html"});$("#save-post,#publish,#post-preview").click(function(){if($.sq_blockbriefcase){$.sq_blockbriefcase.trigger("briefcase.save")}if($.sq_config.editor_type==="tinymce"){var iframe_tinymce=$.sq_editor.getIframeEditor();if(iframe_tinymce!==false)$(iframe_tinymce).each(function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer($(this)))})}else{$.sq_removeHighlight($.sq_getBuilderEditorContainer())}if($.sq_config.keyword!==""){$.sq_blocksearch.addTag();$.sq_fields.wp_publish.focus()}});$.sq_fields.wp_input_title.off("click").on("click",function(){if($this.find(".sq_overlay").length>0)if($.sq_fields.sq_keyword.val()!==""){$.sq_config.showInspiration=false;$.sq_fields.sq_selectit.trigger("click")}});if(typeof ET_PageBuilder!=="undefined"&&typeof ET_PageBuilder.Events!=="undefined"){ET_PageBuilder.Events.on("et-pb-loading:ended",function(){$(".et-pb-remove").on("click",function(){SQ_DEBUG&&console.log("Divi Save Pressed");$.sq_fields.div_blockseo.find("#sq_seo_refresh").trigger("lateclick")})});ET_PageBuilder.Events.on("et-modal-settings:save",function(){ET_PageBuilder.Events.on("et-modal-view-removed",function(){SQ_DEBUG&&console.log("Divi Save Pressed");$.sq_fields.div_blockseo.find("#sq_seo_refresh").trigger("lateclick");$(".et-pb-remove").on("click",function(){SQ_DEBUG&&console.log("Divi Save Pressed");$.sq_fields.div_blockseo.find("#sq_seo_refresh").trigger("lateclick")})})})}if($("#visual_composer_content").length>0){if($("div#vc_ui-panel-edit-element").length>0){$("div#vc_ui-panel-edit-element").find("span[data-vc-ui-element=button-save]").on("click",function(){SQ_DEBUG&&console.log("Visual Composer Save");$.sq_fields.div_blockseo.find("#sq_seo_refresh").trigger("lateclick");if($("#visual_composer_content").find(".vc-c-icon-delete_empty").length>0){$("#visual_composer_content").find(".vc-c-icon-delete_empty").on("click",function(){SQ_DEBUG&&console.log("Visual Composer Delete");$.sq_fields.div_blockseo.find("#sq_seo_refresh").trigger("lateclick")})}})}if($("#visual_composer_content").find(".vc-c-icon-delete_empty").length>0){$("#visual_composer_content").find(".vc-c-icon-delete_empty").on("click",function(){SQ_DEBUG&&console.log("Visual Composer Delete");$.sq_fields.div_blockseo.find("#sq_seo_refresh").trigger("lateclick")})}}},listenTinymce:function(){SQ_DEBUG&&console.log("listenTinymce");$.sq_config.editor_type="tinymce";if($.sq_config.interval_seo){clearInterval($.sq_config.interval_seo)}$.sq_config.interval_seo=setInterval(function(){var iframe_tinymce=$.sq_editor.getIframeEditor();if(iframe_tinymce!==false){$.sq_editor.insertHandler=function(e){$.sq_config.active_editor=$(this);if(e.target.nodeName==="IMG"){SQ_DEBUG&&console.log("DOMNodeInserted ",e);$.sq_editor.listen(e);$this.callback()}};$(iframe_tinymce).off("DOMNodeInserted",$.sq_editor.insertHandler).on("DOMNodeInserted",$.sq_editor.insertHandler);$.sq_editor.removeHandler=function(e){$.sq_config.active_editor=$(this);if(e.target.nodeName==="IMG"){SQ_DEBUG&&console.log("DOMNodeRemoved "+e.target.nodeName);$.sq_editor.lastimage="";$this.callback()}};$(iframe_tinymce).off("DOMNodeRemoved",$.sq_editor.removeHandler).on("DOMNodeRemoved",$.sq_editor.removeHandler);$.sq_editor.changeHandler=function(e){$.sq_config.active_editor=$(this);SQ_DEBUG&&console.log(" keyup mouseup ",e.type);if(e.type==="mouseup"){$(this).each(function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer($(this)))})}if($.sq_config.timeout_seo){clearTimeout($.sq_config.timeout_seo)}$.sq_config.timeout_seo=setTimeout(function(){if($this.find(".sq_overlay").length>0)if($.sq_fields.sq_keyword.val()!==""){$.sq_config.showInspiration=false;$.sq_fields.sq_selectit.trigger("click")}$this.callback()},$.sq_config.delay_seo)};$(iframe_tinymce).off("keyup mouseup",$.sq_editor.changeHandler).on("keyup mouseup",$.sq_editor.changeHandler);$this.callback();clearInterval($.sq_config.interval_seo);if($.sq_config.active_editor){$.sq_removeHighlight($.sq_getBuilderEditorContainer($.sq_config.active_editor))}}if(typeof $.sq_config.frontend_css!=="undefined"){if($.sq_editor.getIframeEditor("head link[href='"+$.sq_config.frontend_css+"']")===false){var iframe_head=$.sq_editor.getIframeEditor("head");if(iframe_head!==false){iframe_head.append($("<link/>",{rel:"stylesheet",href:$.sq_config.frontend_css,type:"text/css"}))}}}$this.sq_eventsseo.listenFeatureImage()},1e3)},stopListenTinymce:function(){SQ_DEBUG&&console.log("stop listen Tinymce");if($.sq_config.interval_seo){clearInterval($.sq_config.interval_seo)}var iframe_tinymce=$.sq_editor.getIframeEditor();if(iframe_tinymce!==false)$(iframe_tinymce).off("keyup mouseup")},listenHtml:function(){$.sq_config.editor_type="html";$.sq_fields.wp_content.on("click keyup",function(){$.sq_config.active_editor=$(this);if($.sq_config.editor_type==="html"){if($this.timeout_html){clearTimeout($this.timeout_html)}$this.timeout_html=setTimeout(function(){$this.callback()},$.sq_config.delay_seo)}});$.sq_fields.wp_content.on("dragover",false).on("dragenter",false).on("drop",function(e){if($.sq_config.editor_type==="html"){e.preventDefault();$.sq_editor.listenHtml(e)}});$this.sq_eventsseo.listenFeatureImage();$this.sq_eventsseo.listenMediaLibrary()},listenFeatureImage:function(){$("#postimagediv").on("DOMNodeInserted DOMNodeRemoved",function(){$this.checkImage($(this))});$(".editor-post-featured-image").on("DOMNodeInserted DOMNodeRemoved",function(){$this.checkImage($(this))})},listenMediaLibrary:function(){if($.sq_fields.wp_thumbnail_alt.length>0){$.sq_fields.wp_thumbnail_alt.on("keyup",function(){$this.setChecked($this.keywordMatch($.sq_fields.wp_thumbnail_alt.val(),$.sq_config.keyword),"alt")});$this.checkImage($.sq_fields.wp_thumbnail);$this.setChecked($this.keywordMatch($.sq_fields.wp_thumbnail_alt.val(),$.sq_config.keyword),"alt")}},listenVComposer:function(){if($("#visual_composer_content").length>0){var composer=$("#visual_composer_content");if(composer.find("img.attachment-thumbnail").length>0){SQ_DEBUG&&console.log("Visual Composer Image");$this.checkImage($("#visual_composer_content").find("img.attachment-thumbnail").parents(".wpb_content_element:last"))}if(composer.find("ul.attachment-thumbnails").length>0){SQ_DEBUG&&console.log("Visual Composer Galerry");$this.checkImage($("#visual_composer_content").find("ul.attachment-thumbnails"))}if(composer.find(".wpb_vc_custom_heading .admin_label_text").length>0){composer.find(".wpb_vc_custom_heading .admin_label_text").each(function(){if($this.keywordMatch($(this).text(),$.sq_config.keyword)){SQ_DEBUG&&console.log("Visual Composer Headline");return $this.setChecked($this.keywordMatch($(this).text(),$.sq_config.keyword),"h2_6")}})}}},listenFusion:function(){if($(".fusion_module_block_preview").find("img").length>0){SQ_DEBUG&&console.log("Fusion Image Preview");$this.checkImage($(".fusion_module_block_preview").find("img").parents("div:last"))}else if($("img.fusion-child-element-image").length>0){SQ_DEBUG&&console.log("Fusion Image Element");$this.checkImage($("img.fusion-child-element-image").parents("div:last"))}if($(".fusion_module_block_preview").find(".title_text").length>0){$(".fusion_module_block_preview").find(".title_text").each(function(){if($this.keywordMatch($(this).text(),$.sq_config.keyword)){SQ_DEBUG&&console.log("Fusion Headline");return $this.setChecked($this.keywordMatch($(this).text(),$.sq_config.keyword),"h2_6")}})}},stopListenHtml:function(){SQ_DEBUG&&console.log("stop listen HTML");$.sq_fields.wp_content.off("keyup");$.sq_fields.wp_content.off("drop")},listenTitle:function(){SQ_DEBUG&&console.log("listen title");$.sq_fields.wp_input_title.off("keyup change").on("keyup change",function(){$(this).trackLength("wp_title");$.sq_config.manual=true;$.sq_config.silent=false;$.sq_config.briefcase=false;$this.checkWpFields()});if($("#sq_wp_title_info").length==0){$.sq_fields.wp_input_title.after($.sq_fields.sq_wp_title_info)}},listenSlug:function(){var timeout_post_slug=setInterval(function(){if($("#new-post-slug").length>0){clearInterval(timeout_post_slug);$("#new-post-slug").off("keyup").on("keyup",function(){$this.checkKPinguinUrl()});$("#edit-slug-buttons").find("a").on("click",function(){$this.sq_eventsseo.listenSlug()})}},1e3);var timeout_sample_permalink=setInterval(function(){if($("#sample-permalink").length>0){clearInterval(timeout_sample_permalink);if(typeof $.sq_loadFrontMenu!=="undefined"){SQ_DEBUG&&console.log("Reload the Squirrly Snippet");$.sq_loadFrontMenu()}}},1e3)},listenSticky:function(){$this.on("sq_sticky",function(e,on){SQ_DEBUG&&console.log(on);if(on&&$.sq_config.keyword!==""){$.sq_fields.div_blockseo.addClass("sq_sticky");$(".sq_sticky_keyword").html($.sq_fields.sq_keyword.val());$("#submitdiv.postbox").before('<div id="submitdivplace"></div>');$this.after($("#submitdiv.postbox"))}else{$this.parents(".sq_box:last").removeClass("sq_sticky");$("#submitdivplace").after($("#submitdiv.postbox"));$("#submitdivplace").remove()}})},listenHighlight:function(on){if(on){settings.clicked["highlight"]=false;$this.find(".sq_request_highlight_key").parents("li:last").on("click",function(e){e.stopPropagation();settings.clicked["highlight"]=true}).on("mouseenter",function(e){e.stopPropagation();$(this).css("cursor","pointer");if($.sq_config.editor_type==="tinymce"){var iframe_tinymce=$.sq_editor.getIframeEditor();if(iframe_tinymce!==false){$(iframe_tinymce).each(function(){$.sq_highlight($.sq_getBuilderEditorContainer($(this)),$.sq_config.keyword)})}}else{$.sq_highlight($.sq_getBuilderEditorContainer($(this)),$.sq_config.keyword)}}).on("mouseleave",function(){if($.sq_config.editor_type==="tinymce"){if(!settings.clicked["highlight"]){var iframe_tinymce=$.sq_editor.getIframeEditor();if(iframe_tinymce!==false)$(iframe_tinymce).each(function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer($(this)))})}}else{$.sq_removeHighlight($.sq_getBuilderEditorContainer())}})}else{$this.find(".sq_request_highlight_key").parents("li:last").off()}}};$this.one("seo.loaded",function(){SQ_DEBUG&&console.log("sq_blockseo seo.loaded");if(!$.sq_config.subscription_active){return}if(!$.sq_isGutenberg()&&!$.sq_isFrontend()){if($.sq_fields.wp_content_wrap.length>0&&$.sq_fields.wp_content_wrap.attr("class").indexOf("html-active")!==-1){SQ_DEBUG&&console.log("seo.loaded listenHTML");$this.sq_eventsseo.listenHtml();$.sq_config.active_editor=$.sq_fields.wp_content}else{SQ_DEBUG&&console.log("seo.loaded listenTinymce");$this.sq_eventsseo.listenTinymce();$.sq_config.active_editor=$.sq_editor.getIframeEditor()}}else if($.sq_isGutenberg()){wp.data.subscribe(function(){var ed=$.sq_editor.getBlockEditor("select");if(ed&&ed.isTyping){if($.sq_config.timeout_seo){clearTimeout($.sq_config.timeout_seo)}$.sq_config.timeout_seo=setTimeout(function(){$this.callback()},$.sq_config.delay_seo)}if(ed&&ed.isSavingPost()&&!ed.isAutosavingPost()){if($.sq_floating){if($.sq_config.timeout_save){clearTimeout($.sq_config.timeout_save)}$.sq_config.timeout_save=setTimeout(function(){$.sq_floating.trigger("seo.floating.page_saved")},$.sq_config.delay_seo)}}})}$this.sq_loading();$this.one("seo.keyword_loaded",function(){$this.sq_eventsseo.listen()})});return $this};$.fn.trackLength=function(type){var $this=this;var min=0;var max=0;var color="green";if(typeof $this==="undefined")return;if(type==="title"||type==="wp_title"){min=$.sq_params.min_length_title;max=$.sq_params.max_length_title}else if(type==="description"){min=$.sq_params.min_length_description;max=$.sq_params.max_length_description}if(min>0&&min>$this.val().length){color="red"}else if(max>0&&max<$this.val().length){color="red"}else{color="green"}if(max>0){$("#sq_"+type+"_info").html($this.val().length+"/"+max);$("#sq_"+type+"_info").css("color",color)}}})(jQuery);
|
1 |
+
(function($){"use strict";if($.isFunction($.fn.sq_blockseo)){return}$.fn.sq_blockseo=function(options){var $this=this;var settings=$.extend({check:[],single_tag:[],double_tag:[],custom_tag:[],custom_tag_id:[],clicked:[]},options);$.sq_fields=$.extend({sq_wp_title_info:$('<span id="sq_wp_title_info" style="display: block; float: right;" />')},$.sq_fields);var seo={title:"",content:""};$this.setContent=function(content){seo.content=content};$this.callback=function(){$.sq_config.manual=true;$.sq_config.silent=false;$.sq_config.briefcase=false;if(typeof $.sq_config.keyword==="undefined"||$.sq_config.keyword==="")return;if($.sq_config.editor_type==="tinymce"){if($.sq_isGutenberg()){ed=$.sq_editor.getBlockEditor("select");if(ed)seo.content=ed.getEditedPostContent()}else if($.sq_config.active_editor&&typeof $.sq_config.active_editor.html=="function"){seo.content=$.sq_config.active_editor.html()}else{ed=$.sq_editor.getIframeEditor();seo.content=ed.html()}}else{if($.sq_isGutenberg()){var ed=$.sq_editor.getBlockEditor("select");if(ed)seo.content=ed.getEditedPostContent()}else if($.sq_isFrontend()){var ed=$.sq_editor.getFrontendEditor();if(ed)seo.content=ed.getPageContent()}else if($.sq_config.active_editor&&typeof $.sq_config.active_editor.val=="function"){seo.content=$.sq_fields.wp_content.val()}else if($.sq_fields.wp_content.length){seo.content=$.sq_fields.wp_content.val()}}$this.trigger("seo.content");$this.checkSEO();$this.trigger("seo.callback")};$this.checkSEO=function(){if(typeof seo.content!=="undefined"&&$.sq_clearText(seo.content)!==""){SQ_DEBUG&&console.log("check keywords in body and tags");$this.checkBody();$this.checkSingleTags();$this.checkCustomTags();$this.checkKPinguinUrl();$this.checkKeyword();if($.sq_fields.wp_thumbnail.length>0){$this.sq_eventsseo.listenMediaLibrary()}else if($("#postimagediv").length>0){$this.checkImage($("#postimagediv"))}else if($.sq_isFrontend()){var ed=$.sq_editor.getFrontendEditor();if(ed){$.sq_blockseo.checkImage($("<div>"+ed.getPageImages()+"</div>"))}}if($(".editor-post-featured-image").length>0){$this.checkImage($(".editor-post-featured-image"))}if($("#visual_composer_content").length>0){$this.sq_eventsseo.listenVComposer()}if($("#fusion_builder_container").length>0){$this.sq_eventsseo.listenFusion()}}if(typeof seo.content!=="undefined"&&($.sq_clearText(seo.content).length>1||$.sq_fields.wp_input_title.length>0&&$.sq_clearText($.sq_fields.wp_input_title.val()).length>1)){if(settings.check.indexOf("~density~")!==-1){$this.keywordDensity($.sq_fields.wp_input_title.val()+" "+seo.content,$.sq_params.low_density,$.sq_params.high_density,"density")}}};$this.checkWpFields=function(){if(typeof $.sq_config.keyword==="undefined"||$.sq_config.keyword==="")return;if($.sq_fields.wp_input_title.length){if($.sq_clearText($.sq_fields.wp_input_title.val()).length>1){SQ_DEBUG&&console.log("check keywords in title: "+$.sq_fields.wp_input_title.val());$this.checkPinguin();$this.checkTitle();if(settings.check.indexOf("~density_title~")!==-1){var id="density_title";if($this.checkWordsLength($.sq_config.keyword,1,100)){if($.sq_strEqual($.sq_fields.wp_input_title.val(),$.sq_config.keyword)){$this.setChecked(true,id)}else{$this.keywordDensity($.sq_fields.wp_input_title.val(),$.sq_params.low_density_title,$.sq_params.high_density_title,"density_title")}}else{$("#sq_"+id+"_val").html($("#sq_"+id+"_longtail").html());$this.setChecked(false,id)}}if(settings.check.indexOf("~density~")!==-1)$this.keywordDensity($.sq_fields.wp_input_title.val()+" "+seo.content,$.sq_params.low_density,$.sq_params.high_density,"density")}}return $this.getPercentCompleted()};$this.load=function(){$.sq_fields.div_blockseo.find(".sq_tasks > ul > li").not(".sq_tasks_category").removeClass("checked");if($.sq_config.timeout_seo){clearTimeout($.sq_config.timeout_seo)}$.sq_config.timeout_seo=setTimeout(function(){$this.checkWpFields();$this.callback()},100)};$this.close=function(){$.sq_fields.div_blockseo.hide()};$this.overlay=function(){if($(".sq_overlay").length==0){$.sq_fields.div_blockseo.prepend('<div class="sq_overlay" data-title="'+$.sq_config.__enter_keyword+'" title="'+$.sq_config.__enter_keyword+'"></div>');$(".sq_overlay").on("click",function(){if($.sq_fields.sq_keyword.val()===""){var previewtop=$.sq_fields.sq_keyword.offset().top-100;if($(".edit-post-layout__content").length>0){$(".edit-post-layout__content").animate({scrollTop:$(".edit-post-layout__content").scrollTop()+previewtop},1e3,function(){$.sq_fields.sq_keyword.focus();$.sq_blocksearch.showEnterKeyword()})}else{$("html,body").animate({scrollTop:previewtop},1e3,function(){$.sq_fields.sq_keyword.focus();$.sq_blocksearch.showEnterKeyword()})}}else{$.sq_fields.sq_selectit.trigger("click")}})}};$this.closeOverlay=function(){$(".sq_overlay").remove()};$this.checkKPinguinUrl=function(){if($("#custom_permalinks_home_url").length>0&&$("#custom_permalink").length>0){if(settings.check.indexOf("~pinguin_url~")!==-1&&$.sq_config.keyword!==""){var slug=$("#custom_permalinks_home_url").val()+" "+$("#custom_permalink").val();$this.setChecked($this.urlMatch(slug,$.sq_config.keyword),"pinguin_url")}}else if($("#editable-post-name-full").length>0){if(settings.check.indexOf("~pinguin_url~")!==-1&&$.sq_config.keyword!==""){var root="";if($("#sample-permalink").length>0){var sample_permalink=$("#sample-permalink").find("a").clone();sample_permalink.find("span").remove();root=sample_permalink.text()}var slug=root+" "+$("#editable-post-name-full").html();$this.setChecked($this.urlMatch(slug,$.sq_config.keyword),"pinguin_url")}}else if($("#new-post-slug").length>0){if(settings.check.indexOf("~pinguin_url~")!==-1&&$.sq_config.keyword!==""){var slug=$("#new-post-slug").val();$this.setChecked($this.urlMatch(slug,$.sq_config.keyword),"pinguin_url")}}else if($("#sample-permalink").length>0){if(settings.check.indexOf("~pinguin_url~")!==-1&&$.sq_config.keyword!==""){var slug=$("#sample-permalink").html().replace(/<\/?[^>]+>/gi," ");$this.setChecked($this.urlMatch(slug,$.sq_config.keyword),"pinguin_url")}}else if($.sq_isGutenberg()){var ed=$.sq_editor.getBlockEditor("select");if(ed){var slug=decodeURIComponent(ed.getPermalink()).replace(/<\/?[^>]+>/gi," ");$this.setChecked($this.urlMatch(slug,$.sq_config.keyword),"pinguin_url")}}};$this.checkKeyword=function(){if(settings.check.indexOf("~longtail_keyword~")!==-1&&$.sq_config.keyword!==""){$this.setChecked($this.checkWordsLength($.sq_config.keyword,2,0),"longtail_keyword")}};$this.checkKPinguin=function(){if(settings.check.indexOf("~pinguin_domain~")!==-1&&$.sq_config.keyword!==""){$this.setChecked(!$this.keywordMatch($.sq_getDomain(document.domain,[8]),$.sq_config.keyword,true),"pinguin_domain")}};$this.checkPinguin=function(){if(settings.check.indexOf("~pinguin_title~")!==-1){var domain=$.sq_getDomain(document.domain,[8])!==""?$.sq_getDomain(document.domain,[8]):document.domain;$this.setChecked(!$this.keywordMatch($.sq_fields.wp_input_title.val(),domain,true),"pinguin_title")}};$this.checkTitle=function(){if($.sq_fields.wp_input_title.length>0){if(settings.check.indexOf("~title_length~")!==-1)$this.setChecked($this.checkLength($.sq_fields.wp_input_title.val(),$.sq_params.min_length_title,$.sq_params.max_length_title),"title_length");if(settings.check.indexOf("~title~")!==-1)$this.setChecked($this.keywordMatch($.sq_fields.wp_input_title.val(),$.sq_config.keyword),"title")}};$this.checkImage=function(_this){$.sq_config.silent=true;var pattern=null;pattern=new RegExp("<img([^>]*)>","gi");if(_this.html()!==""&&$this.checkPattern(pattern)){$this.setChecked(true,"img",true)}else if(_this.html()!==""){SQ_DEBUG&&console.log("Check image in object");if($this.checkPattern(pattern,_this.html())){$this.setChecked($this.checkPattern(pattern,_this.html()).length>0,"img",true)}else{pattern=new RegExp("\\[gallery[^\\]]*ids=[^\\]]*\\]","gi");if($this.checkPattern(pattern)){$this.setChecked($this.checkPattern(pattern).length>0,"img")}else{$this.setChecked(0,"img")}}}pattern=new RegExp('alt="([^"]+)"',"gi");if(!$this.keywordMatch($this.checkPattern(pattern),$.sq_config.keyword)){SQ_DEBUG&&console.log("There is no alt image in content");$this.setChecked($this.keywordMatch($this.checkPattern(pattern,_this.html()),$.sq_config.keyword),"alt")}};$this.handleKey=function(event,gsuggestion_index){if(event.keyCode===$.ui.keyCode.UP&&gsuggestion_index>0){gsuggestion_index--}else if(event.keyCode===$.ui.keyCode.DOWN&&gsuggestion_index<$("#sq_wp_title_suggestion .sq_item_gsuggestion").length){gsuggestion_index++}else{gsuggestion_index=0}$("#sq_wp_title_suggestion .sq_item_gsuggestion").removeClass("sq_item_active");if(gsuggestion_index>0){var item_active=$("#sq_wp_title_suggestion .sq_item_gsuggestion:nth-child("+gsuggestion_index+")");item_active.addClass("sq_item_active");$.sq_fields.wp_input_title.val(item_active.html());$this.checkTitle()}return gsuggestion_index};$this.hideOptions=function(){$("#sq_wp_title_suggestion").remove();$this.checkTitle()};$this.checkBody=function(){var $str=$("<div></div>").html(seo.content);$str.find("form").remove();$.sq_highlight($str,$.sq_config.keyword,{counter:0,done:function(count,positions){SQ_DEBUG&&console.log($str.text(),$.sq_config.keyword,count,positions);$this.processBody($str.text(),count,positions)}})};$this.processBody=function(cleanContent,count,positions){var checked=false,id=false,words=[],density,i=0;if($.sq_config.editor_type==="tinymce"){var iframe_tinymce=$.sq_editor.getIframeEditor()}if(settings.check.indexOf("~first_sentence~")!==-1){if(count>1&&cleanContent.length>$.sq_params.beginning_length){$this.setChecked(positions[1]<$.sq_params.beginning_length,"first_sentence")}}if(settings.check.indexOf("~body_length~")!==-1){if($this.checkWordsLength(cleanContent,$.sq_params.min_length_body,$.sq_params.max_length_body)===false){$("#sq_request_body_length").remove();$("#sq_body_length").append(' <span id="sq_request_body_length">'+"("+$this.getWords2Min(cleanContent,$.sq_params.min_length_body)+" more)</span>")}else{$("#sq_request_body_length").remove()}$this.setChecked($this.checkWordsLength(cleanContent,$.sq_params.min_length_body,$.sq_params.max_length_body),"body_length")}if(settings.check.indexOf("~body~")!==-1){$this.setChecked(count>0,"body")}if(settings.check.indexOf("~over_density~")!==-1){checked=true;id="over_density";if($this.checkWordsLength(cleanContent,$.sq_params.min_length_body,$.sq_params.max_length_body)===false){$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();$.sq_fields.div_blockseo.find("#sq_"+id+"").append('<span id="sq_request_'+id+'">: '+"("+$.sq_config.__addminimumwords.replace(/%s/g,$this.getWords2Min(cleanContent,$.sq_params.min_length_body))+")</span>");checked=false;$.sq_fields.div_blockseo.find("#sq_"+id+"_val").parent("li").removeClass("sq_"+id+"_high")}else{$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_done").html());words=$.sq_clearText($.sq_config.keyword).split(" ");density=$this.getDensity(cleanContent,$.sq_config.keyword);if(density.val>0){var ignore=["and","und","or","the","yet","for","also","then","like","too","but","i","you","he","she","we","they"];var wordslen=words.length;for(i=0;i<wordslen;i++){if(words[i].length>2&&ignore.indexOf(words[i])===-1){var word=words[i];density=$this.getDensity(cleanContent,word);if(density.val>=$.sq_params.max_word_density){var need=density.keywords-$.sq_params.max_word_density*density.words/100+1;need=Math.round(need)<=0?1:need.toFixed();$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();$.sq_fields.div_blockseo.find("#sq_"+id+"").append('<span id="sq_request_'+id+'">: '+'<span id="sq_request_'+id+'_highlight" style="color:yellow; text-decoration:underline; cursor: pointer;">'+word+"</span> "+$.sq_config.__toomanytimes.replace(/%s/g,need)+' <span id="sq_request_synonyms_oo"></span></span>');$this.getSynonyms(word,"sq_request_synonyms_oo");settings.clicked[id]=false;$.sq_fields.div_blockseo.find("#sq_request_"+id+"_highlight").parents("li#sq_"+id+":last").on("click",function(e){e.stopPropagation();settings.clicked[id]=true;$("body").on("mouseup",function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer())})}).on("mouseenter",function(e){e.stopPropagation();$(this).css("cursor","pointer");$.sq_highlight($.sq_getBuilderEditorContainer(),word)}).on("mouseleave",function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer())});$.sq_fields.div_blockseo.find("#sq_"+id+"_val").parent("li").attr("class","sq_"+id+"_high");$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html("");checked=false;break}}}}else{checked=false}$this.setChecked(checked,id)}}if(settings.check.indexOf("~human_friendly~")!==-1){checked=true;id="human_friendly";$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html("");if($this.checkWordsLength(cleanContent,$.sq_params.min_length_body,$.sq_params.max_length_body)===false){$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();$.sq_fields.div_blockseo.find("#sq_"+id+"").append('<span id="sq_request_'+id+'">: '+"("+$.sq_config.__writemorewords.replace(/%s/g,$this.getWords2Min(cleanContent,$.sq_params.min_length_body))+")</span>");checked=false;$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html("")}else{$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();if(count>=2){for(i=2;i<=count;i++){SQ_DEBUG&&console.log(positions[i]-positions[i-1],$.sq_params.begin_last_max_chars);if(positions[i]-positions[i-1]<$.sq_params.begin_last_max_chars){$.sq_fields.div_blockseo.find("#sq_request_"+id+"").remove();var ndt=i===2?"st":i===3?"nd":i===4?"rd":"th";$.sq_fields.div_blockseo.find("#sq_"+id+"").append('<span id="sq_request_'+id+'">: '+"("+$.sq_config.__morewordsafter.replace(/%s/g,'<span id="sq_request_'+id+'_highlight_key" style="color:lightcoral; text-decoration:underline; cursor: pointer;">'+(i-1)+ndt+"</span>")+' <span id="sq_request_synonyms"></span>)</span>');$this.getSynonyms($.sq_config.keyword,"sq_request_synonyms");settings.clicked[id]=false;$.sq_fields.div_blockseo.find("#sq_request_"+id+"_highlight_key").parents("li#sq_"+id+":last").off().on("click",function(e){e.stopPropagation();settings.clicked[id]=true;$("body").on("mouseup",function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer())})}).on("mouseenter",function(e){e.stopPropagation();$(this).css("cursor","pointer");$.sq_highlight($.sq_getBuilderEditorContainer(),$.sq_config.keyword)}).on("mouseleave",function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer())});checked=false;$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html("");break}}}}$this.setChecked(checked,id)}};$this.getSynonyms=function(word,span){var ignore=["and","und","or","the","yet","for","also","then","like","too","but","i","you","he","she","we","they"];var words=$.sq_stripChars(word).split(" ");$this.find("#"+span).html(" "+$.sq_config.__orusesynonyms);var wordslen=words.length;for(var w=0;w<wordslen;w++)if(words[w].length>2&&ignore.indexOf(words[w])===-1){$this.find("#"+span).append(" "+(w===0?"for":"or for")+' <span class="'+span+"_"+words[w]+" "+span+'" style="text-decoration:underline; cursor: pointer;" title="">'+words[w]+"</span>");var synonyms_all=$.sq_getCache("synonyms_"+words[w]);if(synonyms_all!==""){if(synonyms_all.length>0)$this.find("."+span+"_"+words[w]).attr("title",synonyms_all.join("\n"))}else{$.post($.sq_config.ajaxurl,{action:"sla_customcall",sq_nonce:$.sq_config.sq_nonce,url:"https://thesaurus.altervista.org/thesaurus/v1",word:words[w],language:$.sq_config.language.replace("-","_"),key:"TDm3SO7N3XEfRWuXYFb9",output:"json"}).done(function(word){return function(data){var response=data.response;var synonyms=[];var synonyms_all=[];if(typeof response!=="undefined"&&response.length>0){var responselen=response.length;for(var j=0;j<responselen;j++){if(typeof response[j].list.synonyms!=="undefined"){synonyms=response[j].list.synonyms.split("|");var synonymslen=synonyms.length;for(var k=0;k<synonymslen;k++){if(typeof synonyms[k]!=="undefined"&&synonyms[k]!==""&&synonyms[k].indexOf("antonym")===-1){synonyms_all.push(synonyms[k]);if(synonyms_all.length>10)break}}}}if(synonyms_all.length>0){$this.find("."+span+"_"+word).attr("title",synonyms_all.join("\n"))}}$.sq_setCache("synonyms_"+word,synonyms_all)}}(words[w])).error(function(word){var synonyms_all=[];synonyms_all.push("no synonyms found");$this.find("."+span+"_"+word).attr("title",synonyms_all.join("\n"));$.sq_setCache("synonyms_"+word,synonyms_all)}(words[w]))}}};$this.checkTags=function(){var id;var striptag="[\\],\\[]";striptag=new RegExp(striptag,"g");for(var i in settings.double_tag){id="";try{if(typeof settings.double_tag[i]==="string"||settings.double_tag[i]instanceof String){id=settings.double_tag[i];id=id.replace(striptag,"");if(id!=="")$this.setChecked($this.keywordMatch($this.checkTag(["<"+settings.double_tag[i]+">","</"+settings.double_tag[i]+">"])),id)}}catch(e){}}};$this.checkCustomTags=function(){var pattern;for(var i in settings.custom_tag){pattern="";try{if(typeof settings.custom_tag[i]==="string"||settings.custom_tag[i]instanceof String){pattern=new RegExp(settings.custom_tag[i],"gi");if(pattern!==""){$this.setChecked($this.keywordMatch($this.checkPattern(pattern),$.sq_config.keyword),settings.custom_tag_id[i])}}}catch(e){}}return false};$this.checkSingleTags=function(){var id;var striptag="[\\],\\[]";striptag=$.sq_regex(striptag);for(var i in settings.single_tag){id="";try{if(typeof settings.single_tag[i]==="string"||settings.single_tag[i]instanceof String){id=settings.single_tag[i].replace(striptag,"");if(id!==""){$this.setChecked($this.checkTag(["<"+settings.single_tag[i],">"]).length>0,id)}}}catch(e){}}};$this.checkTag=function(tag,content){var pattern="";if($.sq_isArray(tag)){if(tag[0]!==""&&tag[1]!==""){pattern=tag[0].replace("/","\\/")+"([^>]*)"+tag[1].replace("/","\\/");pattern=$.sq_regex(pattern)}}else{return false}SQ_DEBUG&&console.log("checkTag pattern: "+pattern);return $this.checkPattern(pattern,content)};$this.checkPattern=function(pattern,content){if(typeof content==="undefined")var content=seo.content;content=content.replace(/<img([^>]*)(mceItemMedia|mce-object)([^>]*)>/gi," ");var matches="";if(pattern!==""){matches=content.toLowerCase().match(pattern);SQ_DEBUG&&console.log((matches!==null)+" for "+pattern+" in content");if(matches!==null&&$.sq_isArray(matches)){return matches.join(", ")}}return false};$this.getPercentCompleted=function(){var all=$.sq_fields.div_blockseo.find(".sq_tasks > ul > li").not(".sq_tasks_category").length;var checked=$.sq_fields.div_blockseo.find(".sq_tasks > ul > li.checked").not(".sq_tasks_category").length;return checked*100/all};$this.checkCompleted=function(){if($.sq_config.silent){return}var cached=null;var ky=$.sq_config.keyword.replace(/[^a-zA-Z0-9]/g,"");var timeout=3e3;if(!$.sq_config.manual){timeout=1e3}cached=$.sq_getCache("complete_"+ky);if(cached!=="1"){if($.sq_fields.div_blockseo.find(".sq_tasks > ul > li").length>10){if($.sq_fields.div_blockseo.find(".sq_tasks > ul > li").not(".sq_tasks_category").not(".checked").length==0){$("body").prepend($("<ul/>").html("<li>"+$.sq_config.__fulloptimized+"</li>").addClass("sq_complete"));if($("#wpadminbar").css("display")=="none"){$(".sq_complete").css("top","0")}else{$(".sq_complete").css("top","28px")}setTimeout(function(){$("ul.sq_complete").remove()},timeout);$.sq_setCache("complete_"+ky,"1")}$(".sq_blockseo_progress").val(parseInt($this.getPercentCompleted()));$.sq_fields.sq_keyword_score.html(parseInt($this.getPercentCompleted())+"%")}}};$this.setChecked=function(cond,id,hidden){var cached=null;var ky=$.sq_config.keyword.replace(/[^a-zA-Z0-9]/g,"");if($.sq_getCookie("sq_sla")==="off"){hidden=1}if(cond){$.sq_fields.div_blockseo.find("#sq_"+id).attr("class","checked");if($.sq_fields.div_blockseo.find("#sq_"+id).find(".sq_request_highlight_key").length>0){$.sq_fields.div_blockseo.find("#sq_"+id).find(".sq_request_highlight_key").hide();$this.sq_eventsseo.listenHighlight(false)}cached=$.sq_getCache("task_"+ky+id);if(cached!=="1"){if($.sq_config.manual){if(typeof hidden==="undefined"){$this.addTopNotification(id)}}}SQ_DEBUG&&console.log("sq_setCache true: ",id);$.sq_setCache("task_"+ky+id,"1");$.sq_fields.div_blockseo.find("#sq_input_"+id+"").remove();$.sq_fields.div_blockseo.find("#sq_"+id).append('<input id="sq_input_'+id+'" type="hidden" name="sq_seo[]" value="'+id+'" />')}else{$.sq_setCache("task_"+ky+id,"0");if(id!=="img"&&id!=="alt"){SQ_DEBUG&&console.log("sq_setCache false: ",id);$.sq_setCache("complete_"+ky,"0")}$.sq_fields.div_blockseo.find("#sq_"+id).removeClass("checked");if($.sq_fields.div_blockseo.find("#sq_"+id).find(".sq_request_highlight_key").length>0){$.sq_fields.div_blockseo.find("#sq_"+id).find(".sq_request_highlight_key").show();$this.sq_eventsseo.listenHighlight(true)}$.sq_fields.div_blockseo.find("#sq_input_"+id).remove()}$this.checkCompleted();if(!$.sq_config.briefcase){$this.trigger("seo.after_checked",[id])}return Boolean(cond)};$this.addTopNotification=function(id){if($.sq_config.silent){return}var task=$.sq_fields.div_blockseo.find("#sq_"+id).clone();task=task.find(".sq_help").remove();task=task.end().html();$("ul.sq_notification").remove();$("body").append($("<ul/>").attr("id","sqt_"+id).html("<li>"+task+"</li>").addClass("sq_notification").css("zIndex","100000001"));if($("#wpadminbar").css("display")=="none"){$(".sq_notification").css("top","0")}else{$(".sq_notification").css("top","28px")}if($("#sq_"+id).find(".sq_seo_priority_essential").length>0){$("#sqt_"+id).addClass("sq_notification_front")}if($this.timeout)clearTimeout($this.timeout);$this.timeout=setTimeout(function(){$("ul.sq_notification").fadeOut("slow");$("ul.sq_notification").remove()},3e3)};$this.checkLength=function(str,min,max){str=$.sq_clearText(str);if(min>0&&str.length>=min&&(max===0||str.length<=max)){return true}return false};$this.checkWordsLength=function(str,min,max){if(min>0&&$this.wordCount(str)>=min&&(max===0||$this.wordCount(str)<=max)){return true}return false};$this.getWords2Min=function(str,min){if(min>0&&$this.wordCount(str)<min){return(min-$this.wordCount(str)+1).toFixed()}return 0};$this.urlMatch=function(str,keyword){if(str===false)return;if(typeof keyword==="undefined")return;var original=keyword;str=$.sq_clearText(str);str=$.sq_stripChars(str);keyword=$.sq_umlautsText(keyword);keyword=$.sq_clearText(keyword);keyword=$.sq_stripChars(keyword);SQ_DEBUG&&console.log("keywordMatch: "+keyword+"=>"+str);if(str!==""&&keyword!==""){var matches=0;$.sq_highlight($("<div>"+str+"</div>"),keyword,{counter:1,done:function(count){matches=count}});if(!matches){keyword=keyword.replace(/\s/g,"");$.sq_highlight($("<div>"+str+"</div>"),keyword,{counter:1,done:function(count){matches=count}})}if(!matches&&original.indexOf("ü")){keyword=original.replace("ü","ue");keyword=$.sq_clearText(keyword);keyword=$.sq_stripChars(keyword);$.sq_highlight($("<div>"+str+"</div>"),keyword,{counter:1,done:function(count){matches=count}})}SQ_DEBUG&&console.log("matches="+matches);return matches>0}};$this.keywordMatch=function(str,keyword,exact_match){var matches=0;if(str===false)return matches;if(typeof keyword==="undefined")return matches;str=$.sq_clearText(str);keyword=$.sq_clearText(keyword);keyword=keyword.replace(/[\"]/g,"");keyword=keyword.trim();if(typeof exact_match==="undefined")exact_match=false;if(typeof str!=="undefined"&&str!==""&&keyword!==""){if(exact_match){matches=$.sq_strEqual(str,keyword)}else{$.sq_highlight($("<div>"+str+"</div>"),keyword,{counter:0,done:function(count){matches=count}});SQ_DEBUG&&console.log("matches="+matches)}}return matches};$this.keywordDensity=function(str,low,high,id){var density=$this.getDensity(str,$.sq_config.keyword);var cached=null;var ky=$.sq_config.keyword.replace(/[^a-zA-Z0-9]/g,"");if(density.words<$this.checkWordsLength($.sq_config.keyword)){SQ_DEBUG&&console.log("keywordDensity: TOO FEW WORDS ",density.words);$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html("");$this.setChecked(false,id);return}if(density.val<=low&&density.keywords<$.sq_params.max_keywords){SQ_DEBUG&&console.log("keywordDensity: TOO LOW ",density.val,low,density.keywords,$.sq_params.max_keywords);var need=density.words-100*density.keywords/low;need=Math.round(need)<=0?1:Math.round(need);var kr_need=Math.min(low*density.words/100-density.keywords+.5,$.sq_params.max_keywords-density.keywords);kr_need=Math.round(kr_need)<=0?1:kr_need.toFixed();$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_low").html());$.sq_fields.div_blockseo.find("#sq_"+id+"_val").parent("li").attr("class","sq_"+id+"_low");cached=$.sq_getCache("task_"+ky+id);if(cached==="1"){if($.sq_config.manual){$this.addTopNotification(id);$this.find("#sqt_"+id).addClass("sq_"+id+"_low")}}$.sq_setCache("task_"+ky+id,"2");$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_low").html()+" ("+$.sq_config.__addmorekeywords.replace(/%s/g,kr_need)+(need<density.words?" "+$.sq_config.__removewords.replace(/%s/g,Math.min(need,density.words)):"")+")");$.sq_fields.div_blockseo.find("#sq_input_"+id).remove()}else{if(density.val>=high){SQ_DEBUG&&console.log("keywordDensity: TOO HIGH ",density.val);var need=100*density.keywords/high-density.words+.5;need=Math.round(need)<=0?1:Math.round(need);var kr_need=density.keywords-high*density.words/100+.5;kr_need=Math.round(kr_need)<=0?1:kr_need.toFixed();$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_high").html());$.sq_fields.div_blockseo.find("#sq_"+id+"_val").parent("li").attr("class","sq_"+id+"_high");cached=$.sq_getCache("task_"+ky+id);if(cached==="1"){if($.sq_config.manual){$this.addTopNotification(id);$this.find("#sqt_"+id).addClass("sq_"+id+"_high")}}$.sq_setCache("task_"+ky+id,"3");if($this.checkWordsLength(str,$.sq_params.min_length_body,$.sq_params.max_length_body)!==false)kr_need="remove "+kr_need+" keyword(s) or ";else kr_need="";$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_high").html()+" ("+kr_need+$.sq_config.__addmorewords.replace(/%s/g,need)+")");$.sq_fields.div_blockseo.find("#sq_input_"+id).remove()}else{SQ_DEBUG&&console.log("keywordDensity: "+((density.val>low||density.keywords>=$.sq_params.max_keywords)&&density.val<high),density.val,low,density.keywords,$.sq_params.max_keywords);$.sq_fields.div_blockseo.find("#sq_"+id+"_val").html($.sq_fields.div_blockseo.find("#sq_"+id+"_done").html());$this.setChecked((density.val>low||density.keywords>=$.sq_params.max_keywords)&&density.val<high,id)}}};$this.getDensity=function(str,keyword){var density={};keyword=$.sq_clearText(keyword);str=$.sq_clearText(str);density.keywords=$this.phraseCount(str,keyword);density.words=$this.wordCount(str);density.words=density.words-density.keywords*($this.keywordWords(keyword)-1);if(density.words>0){density.val=density.keywords*100/density.words}else if(density.keywords>=1){density.val=100}else{density.val=0}return density};$this.keywordWords=function(keyword){var pattern=new RegExp("[㐀-龿 -〿-ゟ゠-ヿ-゚一-龯㐀-䶿]|\\S+","gi");var words=keyword.match(pattern);if(words&&words.length>0)return words.length+1;else return 1};$this.phraseCount=function(str,keyword){var words=0;$.sq_highlight($("<div>"+str+"</div>"),keyword,{counter:1,done:function(count){words=count}});return words};$this.wordCount=function(str){str=$.sq_clearText(str);var matches=str.match(/[\u3400-\u9FBF\u3000-\u303f\u3040-\u309f\u30a0-\u30ff\uff00-\uff9f\u4e00-\u9faf\u3400-\u4dbf]|\S+/g);if(matches)return matches.length;return 0};$this.sq_eventsseo={listen:function(){if($.sq_config.keyword!==""){$this.closeOverlay()}else{$this.overlay()}$.post($.sq_config.ajaxurl,{action:"sla_tasks",sq_nonce:$.sq_config.sq_nonce,output:"json"}).done(function(response){$this.sq_doneloading("sq_minloading").removeClass("sq_error");if(typeof response.data!=="undefined"&&typeof response.data.tasks!=="undefined"&&$this.find(".sq_tasks").length>0){settings.check.push("~longtail_keyword~");settings.check.push("~pinguin_url~");settings.check.push("~density_title~");settings.check.push("~density~");settings.check.push("~over_density~");settings.check.push("~human_friendly~");settings.check.push("~title~");settings.check.push("~title_length~");settings.check.push("~pinguin_title~");settings.check.push("~body~");settings.custom_tag.push("<(strong|b)[^>]*>(.*?)</(strong|b)>");settings.custom_tag_id.push("strong");settings.custom_tag.push("<h[1-6][^>]*>(.*?)</h[1-6]>");settings.custom_tag_id.push("h2_6");settings.single_tag.push("img");settings.custom_tag.push('alt=["]([^"]+)["]');settings.custom_tag_id.push("alt");$this.find(".sq_tasks").append(response.data.tasks);$this.find(".sq_tasks").find("li").show();$this.sq_eventsseo.listenHighlight(true);$this.on("seo.refresh",function(){$.sq_fields.div_blockseo.find("#sq_seo_refresh").addClass("sq_minloading");setTimeout(function(){$.sq_fields.div_blockseo.find("#sq_seo_refresh").removeClass("sq_minloading");$this.load()},1e3)});$.sq_fields.div_blockseo.find("#sq_seo_refresh").on("lateclick",function(){$this.trigger("seo.refresh");$this.trigger("seo.refresh_lateclick")});$this.find("#sq_seo_refresh").on("click",function(){$this.trigger("seo.refresh");$this.trigger("seo.refresh_click")});$this.trigger("seo.refresh");$this.trigger("seo.task_loaded")}else{$this.sq_doneloading("sq_minloading").removeClass("sq_error");$this.find(".sq_tasks").html('<div class="sq_message" style="width: 100% !important;">'+$.sq_config.__ajaxerror+"</div>")}});$this.sq_eventsseo.listenTitle();$this.sq_eventsseo.listenSlug();$.sq_fields.content_tmce.on("click",function(){$.sq_config.editor_type="tinymce"});$.sq_fields.content_html.on("click",function(){$.sq_config.editor_type="html"});$("#save-post,#publish,#post-preview").click(function(){if($.sq_blockbriefcase){$.sq_blockbriefcase.trigger("briefcase.save")}$.sq_removeHighlight($.sq_getBuilderEditorContainer());if($.sq_config.keyword!==""){$.sq_blocksearch.addTag();$.sq_fields.wp_publish.focus()}});$.sq_fields.wp_input_title.off("click").on("click",function(){if($this.find(".sq_overlay").length>0)if($.sq_fields.sq_keyword.val()!==""){$.sq_config.showInspiration=false;$.sq_fields.sq_selectit.trigger("click")}});if(typeof ET_PageBuilder!=="undefined"&&typeof ET_PageBuilder.Events!=="undefined"){ET_PageBuilder.Events.on("et-pb-loading:ended",function(){$(".et-pb-remove").on("click",function(){SQ_DEBUG&&console.log("Divi Save Pressed");$.sq_fields.div_blockseo.find("#sq_seo_refresh").trigger("lateclick")})});ET_PageBuilder.Events.on("et-modal-settings:save",function(){ET_PageBuilder.Events.on("et-modal-view-removed",function(){SQ_DEBUG&&console.log("Divi Save Pressed");$.sq_fields.div_blockseo.find("#sq_seo_refresh").trigger("lateclick");$(".et-pb-remove").on("click",function(){SQ_DEBUG&&console.log("Divi Save Pressed");$.sq_fields.div_blockseo.find("#sq_seo_refresh").trigger("lateclick")})})})}if($("#visual_composer_content").length>0){if($("div#vc_ui-panel-edit-element").length>0){$("div#vc_ui-panel-edit-element").find("span[data-vc-ui-element=button-save]").on("click",function(){SQ_DEBUG&&console.log("Visual Composer Save");$.sq_fields.div_blockseo.find("#sq_seo_refresh").trigger("lateclick");if($("#visual_composer_content").find(".vc-c-icon-delete_empty").length>0){$("#visual_composer_content").find(".vc-c-icon-delete_empty").on("click",function(){SQ_DEBUG&&console.log("Visual Composer Delete");$.sq_fields.div_blockseo.find("#sq_seo_refresh").trigger("lateclick")})}})}if($("#visual_composer_content").find(".vc-c-icon-delete_empty").length>0){$("#visual_composer_content").find(".vc-c-icon-delete_empty").on("click",function(){SQ_DEBUG&&console.log("Visual Composer Delete");$.sq_fields.div_blockseo.find("#sq_seo_refresh").trigger("lateclick")})}}},listenTinymce:function(){SQ_DEBUG&&console.log("listenTinymce");$.sq_config.editor_type="tinymce";if($.sq_config.interval_seo){clearInterval($.sq_config.interval_seo)}$.sq_config.interval_seo=setInterval(function(){var iframe_tinymce=$.sq_editor.getIframeEditor();if(iframe_tinymce!==false){$.sq_editor.insertHandler=function(e){$.sq_config.active_editor=$(this);if(e.target.nodeName==="IMG"){SQ_DEBUG&&console.log("DOMNodeInserted ",e);$.sq_editor.listen(e);$this.callback()}};$(iframe_tinymce).off("DOMNodeInserted",$.sq_editor.insertHandler).on("DOMNodeInserted",$.sq_editor.insertHandler);$.sq_editor.removeHandler=function(e){$.sq_config.active_editor=$(this);if(e.target.nodeName==="IMG"){SQ_DEBUG&&console.log("DOMNodeRemoved "+e.target.nodeName);$.sq_editor.lastimage="";$this.callback()}};$(iframe_tinymce).off("DOMNodeRemoved",$.sq_editor.removeHandler).on("DOMNodeRemoved",$.sq_editor.removeHandler);$.sq_editor.changeHandler=function(e){$.sq_config.active_editor=$(this);SQ_DEBUG&&console.log(" keyup mouseup ",e.type);if(e.type==="mouseup"){$.sq_removeHighlight($.sq_getBuilderEditorContainer())}if($.sq_config.timeout_seo){clearTimeout($.sq_config.timeout_seo)}$.sq_config.timeout_seo=setTimeout(function(){if($this.find(".sq_overlay").length>0)if($.sq_fields.sq_keyword.val()!==""){$.sq_config.showInspiration=false;$.sq_fields.sq_selectit.trigger("click")}$this.callback()},$.sq_config.delay_seo)};$(iframe_tinymce).off("keyup mouseup",$.sq_editor.changeHandler).on("keyup mouseup",$.sq_editor.changeHandler);$this.callback();clearInterval($.sq_config.interval_seo);$.sq_removeHighlight($.sq_getBuilderEditorContainer())}if(typeof $.sq_config.frontend_css!=="undefined"){if($.sq_editor.getIframeEditor("head link[href='"+$.sq_config.frontend_css+"']")===false){var iframe_head=$.sq_editor.getIframeEditor("head");if(iframe_head!==false){iframe_head.append($("<link/>",{rel:"stylesheet",href:$.sq_config.frontend_css,type:"text/css"}))}}}$this.sq_eventsseo.listenFeatureImage()},1e3)},stopListenTinymce:function(){SQ_DEBUG&&console.log("stop listen Tinymce");if($.sq_config.interval_seo){clearInterval($.sq_config.interval_seo)}var iframe_tinymce=$.sq_editor.getIframeEditor();if(iframe_tinymce!==false)$(iframe_tinymce).off("keyup mouseup")},listenHtml:function(){$.sq_config.editor_type="html";$.sq_fields.wp_content.on("click keyup",function(){$.sq_config.active_editor=$(this);if($.sq_config.editor_type==="html"){if($this.timeout_html){clearTimeout($this.timeout_html)}$this.timeout_html=setTimeout(function(){$this.callback()},$.sq_config.delay_seo)}});$.sq_fields.wp_content.on("dragover",false).on("dragenter",false).on("drop",function(e){if($.sq_config.editor_type==="html"){e.preventDefault();$.sq_editor.listenHtml(e)}});$this.sq_eventsseo.listenFeatureImage();$this.sq_eventsseo.listenMediaLibrary()},listenFeatureImage:function(){$("#postimagediv").on("DOMNodeInserted DOMNodeRemoved",function(){$this.checkImage($(this))});$(".editor-post-featured-image").on("DOMNodeInserted DOMNodeRemoved",function(){$this.checkImage($(this))})},listenMediaLibrary:function(){if($.sq_fields.wp_thumbnail_alt.length>0){$.sq_fields.wp_thumbnail_alt.on("keyup",function(){$this.setChecked($this.keywordMatch($.sq_fields.wp_thumbnail_alt.val(),$.sq_config.keyword),"alt")});$this.checkImage($.sq_fields.wp_thumbnail);$this.setChecked($this.keywordMatch($.sq_fields.wp_thumbnail_alt.val(),$.sq_config.keyword),"alt")}},listenVComposer:function(){if($("#visual_composer_content").length>0){var composer=$("#visual_composer_content");if(composer.find("img.attachment-thumbnail").length>0){SQ_DEBUG&&console.log("Visual Composer Image");$this.checkImage($("#visual_composer_content").find("img.attachment-thumbnail").parents(".wpb_content_element:last"))}if(composer.find("ul.attachment-thumbnails").length>0){SQ_DEBUG&&console.log("Visual Composer Galerry");$this.checkImage($("#visual_composer_content").find("ul.attachment-thumbnails"))}if(composer.find(".wpb_vc_custom_heading .admin_label_text").length>0){composer.find(".wpb_vc_custom_heading .admin_label_text").each(function(){if($this.keywordMatch($(this).text(),$.sq_config.keyword)){SQ_DEBUG&&console.log("Visual Composer Headline");return $this.setChecked($this.keywordMatch($(this).text(),$.sq_config.keyword),"h2_6")}})}}},listenFusion:function(){if($(".fusion_module_block_preview").find("img").length>0){SQ_DEBUG&&console.log("Fusion Image Preview");$this.checkImage($(".fusion_module_block_preview").find("img").parents("div:last"))}else if($("img.fusion-child-element-image").length>0){SQ_DEBUG&&console.log("Fusion Image Element");$this.checkImage($("img.fusion-child-element-image").parents("div:last"))}if($(".fusion_module_block_preview").find(".title_text").length>0){$(".fusion_module_block_preview").find(".title_text").each(function(){if($this.keywordMatch($(this).text(),$.sq_config.keyword)){SQ_DEBUG&&console.log("Fusion Headline");return $this.setChecked($this.keywordMatch($(this).text(),$.sq_config.keyword),"h2_6")}})}},stopListenHtml:function(){SQ_DEBUG&&console.log("stop listen HTML");$.sq_fields.wp_content.off("keyup");$.sq_fields.wp_content.off("drop")},listenTitle:function(){SQ_DEBUG&&console.log("listen title");$.sq_fields.wp_input_title.off("keyup change").on("keyup change",function(){$(this).trackLength("wp_title");$.sq_config.manual=true;$.sq_config.silent=false;$.sq_config.briefcase=false;$this.checkWpFields()});if($("#sq_wp_title_info").length==0){$.sq_fields.wp_input_title.after($.sq_fields.sq_wp_title_info)}},listenSlug:function(){var timeout_post_slug=setInterval(function(){if($("#new-post-slug").length>0){clearInterval(timeout_post_slug);$("#new-post-slug").off("keyup").on("keyup",function(){$this.checkKPinguinUrl()});$("#edit-slug-buttons").find("a").on("click",function(){$this.sq_eventsseo.listenSlug()})}},1e3);var timeout_sample_permalink=setInterval(function(){if($("#sample-permalink").length>0){clearInterval(timeout_sample_permalink);if(typeof $.sq_loadFrontMenu!=="undefined"){SQ_DEBUG&&console.log("Reload the Squirrly Snippet");$.sq_loadFrontMenu()}}},1e3)},listenHighlight:function(on){if(on){settings.clicked["highlight"]=false;$this.find(".sq_request_highlight_key").parents("li:last").on("click",function(e){e.stopPropagation();settings.clicked["highlight"]=true}).on("mouseenter",function(e){e.stopPropagation();$(this).css("cursor","pointer");$.sq_highlight($.sq_getBuilderEditorContainer(),$.sq_config.keyword)}).on("mouseleave",function(){$.sq_removeHighlight($.sq_getBuilderEditorContainer())})}else{$this.find(".sq_request_highlight_key").parents("li:last").off()}}};$this.one("seo.loaded",function(){SQ_DEBUG&&console.log("sq_blockseo seo.loaded");if(!$.sq_config.subscription_active){return}if(!$.sq_isGutenberg()&&!$.sq_isFrontend()){if($.sq_fields.wp_content_wrap.length>0&&$.sq_fields.wp_content_wrap.attr("class").indexOf("html-active")!==-1){SQ_DEBUG&&console.log("seo.loaded listenHTML");$this.sq_eventsseo.listenHtml();$.sq_config.active_editor=$.sq_fields.wp_content}else{SQ_DEBUG&&console.log("seo.loaded listenTinymce");$this.sq_eventsseo.listenTinymce();$.sq_config.active_editor=$.sq_editor.getIframeEditor()}}else if($.sq_isGutenberg()){wp.data.subscribe(function(){var ed=$.sq_editor.getBlockEditor("select");if(ed&&ed.isTyping){if($.sq_config.timeout_seo){clearTimeout($.sq_config.timeout_seo)}$.sq_config.timeout_seo=setTimeout(function(){$this.callback()},$.sq_config.delay_seo)}if(ed&&ed.isSavingPost()&&!ed.isAutosavingPost()){if($.sq_floating){if($.sq_config.timeout_save){clearTimeout($.sq_config.timeout_save)}$.sq_config.timeout_save=setTimeout(function(){$.sq_floating.trigger("seo.floating.page_saved")},$.sq_config.delay_seo)}}})}$this.sq_loading();$this.one("seo.keyword_loaded",function(){$this.sq_eventsseo.listen()})});return $this};$.fn.trackLength=function(type){var $this=this;var min=0;var max=0;var color="green";if(typeof $this==="undefined")return;if(type==="title"||type==="wp_title"){min=$.sq_params.min_length_title;max=$.sq_params.max_length_title}else if(type==="description"){min=$.sq_params.min_length_description;max=$.sq_params.max_length_description}if(min>0&&min>$this.val().length){color="red"}else if(max>0&&max<$this.val().length){color="red"}else{color="green"}if(max>0){$("#sq_"+type+"_info").html($this.val().length+"/"+max);$("#sq_"+type+"_info").css("color",color)}}})(jQuery);
|
view/assets/js/assistant/sq_briefcase.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function($){$.fn.sq_briefcase=function(options){var $this=this;var settings=$.extend({briefcase_keywords:[],optimizations:[],getapi:false,gettimeout:false,loaded:false,tmpk:false},options);$.sq_fields=$.extend({sq_briefcase:$.sq_config.div.find("#sq_briefcase"),sq_briefcase_help:$.sq_config.div.find("#sq_briefcase_help"),sq_keywords_briefcase:$this.find("#sq_keywords_briefcase"),sq_briefcase_content:$this.find("#sq_briefcase_content"),sq_briefcase_keyword:$this.find("#sq_briefcase_keyword"),sq_briefcase_close:$this.find("#sq_briefcase_close")},$.sq_fields);$this.init=function(){settings.loaded=true;$this.show();$.sq_fields.sq_briefcase_keyword.val("");$this.get()};$this.get=function(search,circles){$.sq_fields.sq_briefcase_content.find(".sq_briefcase_item_notused").sq_loading();labels=[];if(typeof circles!=="undefined"){circles.each(function(){labels.push($(this).data("id"))})}settings.getapi=$.ajax({url:$.sq_config.sq_apiurl+"api/briefcase/optimize/get?callback=?",type:"GET",dataType:"json",data:{post_id:$.sq_config.postID,search:search,label:labels.length>0?labels.join(","):"",return:"html",user_url:$.sq_config.user_url,token:$.sq_config.token,url_token:$.sq_config.url_token},success:function(response){if(typeof response.data.briefcase!=="undefined"){$this.loadList(response.data.briefcase)}else{if(typeof search==="undefined"||search===""){$.sq_fields.sq_briefcase_content.html($.sq_config.__no_briefcase).addClass("sq_error")}}if(typeof search!=="undefined"&&search!==""){$.sq_fields.sq_briefcase_keyword.focus()}$.sq_fields.sq_briefcase_content.find(".sq_briefcase_item_notused").sq_doneloading();$this.trigger("briefcase.after_get")},error:function(){$.sq_fields.sq_errorloading.show();$.sq_fields.sq_preloading_keyword.hide();$.sq_fields.sq_briefcase_content.find(".sq_briefcase_item_notused").sq_doneloading()}})};$this.optimize=function(keyword){$.ajax({url:$.sq_config.sq_apiurl+"api/briefcase/optimize/add?callback=?",type:"GET",dataType:"json",data:{post_id:$.sq_config.postID,keyword:keyword,user_url:$.sq_config.user_url,token:$.sq_config.token,url_token:$.sq_config.url_token},success:function(response){$this.get($.sq_fields.sq_briefcase_keyword.val(),$.sq_fields.sq_briefcase_content.find(".sq_briefcase_circle.sq_active"))},error:function(){$.sq_fields.sq_briefcase_content.html("Lost connection with the server. Please make sure you whitelisted the IP from https://api.squirrly.co").addClass("sq_error")}})};$this.blink=function($obj,$times){if(typeof $times==="undefined")$times=0;if($times>3)return;$obj.animate({opacity:0},150,"linear",function(){$(this).animate({opacity:1},150,"linear",function(){$this.blink($obj,$times+1)})})};$this.delete=function(id){$.ajax({url:$.sq_config.sq_apiurl+"api/briefcase/optimize/delete?callback=?",type:"GET",dataType:"json",data:{id:id,user_url:$.sq_config.user_url,token:$.sq_config.token,url_token:$.sq_config.url_token},success:function(response){$this.get($.sq_fields.sq_briefcase_keyword.val(),$.sq_fields.sq_briefcase_content.find(".sq_briefcase_circle.sq_active"))},error:function(){$.sq_fields.sq_briefcase_content.html("Lost connection with the server. Please make sure you whitelisted the IP from https://api.squirrly.co").addClass("sq_error")}})};$this.loadList=function(briefcase){$.sq_fields.sq_briefcase_content.before($.sq_fields.sq_briefcase_keyword);$.sq_fields.sq_briefcase_content.html(briefcase).removeClass("sq_error");$.sq_fields.sq_briefcase_content.find("ul.sq_briefcase_item_used").after($.sq_fields.sq_briefcase_keyword);if(typeof $.sq_config.lsi!=="undefined"){$.each($.sq_config.lsi,function(key,value){if(value.main){$.sq_fields.sq_keyword.val(value.keyword)}})}$.sq_fields.sq_briefcase_keyword.show();$.sq_fields.sq_briefcase_content.find(".sq_briefcase_item_circles").show();var $briefcase_empty=$.sq_fields.sq_briefcase_content.find("ul.sq_briefcase_item_notused").find(".sq_briefcase_empty");if($briefcase_empty.length>0){$.sq_fields.sq_briefcase_content.find(".sq_briefcase_item_circles").hide();if($.sq_fields.sq_briefcase_keyword.val()!==""||$.sq_fields.sq_briefcase_content.find(".sq_briefcase_circle.sq_active").length>0){$briefcase_empty.append('<div style="color: #6200EE; padding: 3px; cursor: pointer;" ><i class="fa-solid fa-plus-circle" ></i> add this keyword</div>');$briefcase_empty.on("click",function(){$this.optimize($.sq_fields.sq_briefcase_keyword.val())})}}$this.setEvents();$this.setMainKeyword($.sq_fields.sq_keyword.val())};$this.setMainKeyword=function(keyword){if(typeof $.sq_fields.sq_briefcase_content!=="undefined"){if($.sq_fields.sq_briefcase_content.find("li.sq_briefcase_item_used").length>0){$.sq_fields.sq_briefcase_content.find("li.sq_briefcase_item_used").removeClass("sq_main_keyword");$.sq_fields.sq_briefcase_content.find("li.sq_briefcase_item_used").each(function(){if(keyword===""||$.sq_strEqual(keyword,$(this).find(".sq_briefcase_value").text())){$(this).addClass("sq_main_keyword");$("#sq_nokeyword").hide();$(".sq_keyword").show();$.sq_fields.sq_keyword.val($(this).find(".sq_briefcase_value").text());$.sq_fields.sq_keyword_score.html($(this).find(".sq_briefcase_item_percent").text());return false}});$("#sq_nokeyword").hide();$(".sq_keyword").show()}}$.sq_fields.sq_selectit.trigger("click")};$this.getColor=function(value){var hue=value.toString();return["hsl(",hue,",71%,43%)"].join("")};$this.setColor=function(obj,value){return;obj.css("color",$this.getColor(value));obj.css("font-weight","bold")};$this.setEvents=function(){$.sq_fields.sq_briefcase_content.find(".sq_briefcase_item_delete").on("click",function(){$this.delete($(this).data("id"))});$.sq_fields.sq_briefcase_content.find(".sq_briefcase_item_used").find(".sq_briefcase_value").on("click",function(){$this.setMainKeyword($(this).text())});$.sq_fields.sq_briefcase_content.find(".sq_briefcase_circle").on("click",function(){if($(this).hasClass("sq_active")){$(this).removeClass("sq_active")}else{$(this).addClass("sq_active")}$this.get($.sq_fields.sq_briefcase_keyword.val(),$.sq_fields.sq_briefcase_content.find(".sq_briefcase_circle.sq_active"))});$this.find(".sq_briefcase_optimize").on("click",function(){$this.optimize($(this).data("value"))});$this.checkKeywords()};$this.setOptimizations=function(){$.sq_config.silent=true;$.sq_config.briefcase=true;settings.show_addtobriefcasebutton=true;settings.tmpk=$.sq_config.keyword;settings.optimizations=[];if($.sq_fields.sq_briefcase_content.find("li.sq_briefcase_item_used").length>0){$.sq_fields.sq_briefcase_content.find("li.sq_briefcase_item_used").each(function(){$.sq_config.keyword=$(this).find(".sq_briefcase_value").text();if($.sq_strEqual($.sq_fields.sq_keyword.val(),$(this).find(".sq_briefcase_value").text())){settings.show_addtobriefcasebutton=false}$.sq_fields.div_blockseo=$.sq_config.div.find("#sq_blockseo_briefcase");$.sq_fields.div_blockseo.find("li").removeClass("checked");$.sq_fields.div_blockseo.find("input").remove();$.sq_blockseo.checkWpFields();$.sq_blockseo.checkSEO();var completed=$.sq_blockseo.getPercentCompleted();if(completed){$(this).find(".sq_briefcase_item_percent").html(parseInt(completed)+"%");$this.setColor($(this).find(".sq_briefcase_value"),parseInt(completed));if($.sq_strEqual($.sq_fields.sq_keyword.val(),$(this).find(".sq_briefcase_value").text())){$.sq_fields.sq_keyword_score.html(parseInt(completed)+"%")}}$(this).attr("data-position",parseInt(completed));settings.optimizations.push({keyword:$(this).find(".sq_briefcase_value").html(),score:completed,main:$(this).hasClass("sq_main_keyword")})});$.sq_fields.div_blockseo=$.sq_config.div.find("#sq_blockseo");$.sq_config.keyword=settings.tmpk}else{settings.show_addtobriefcasebutton=true}return settings.optimizations};$this.checkKeywords=function(){if($.sq_config.div.find("#sq_blockseo_briefcase").length==0){$.sq_fields.div_blockseo.after($.sq_fields.div_blockseo.clone().prop("id","sq_blockseo_briefcase").hide())}$this.setOptimizations();$.sq_fields.sq_briefcase_content.find(".sq_briefcase_item_used").find(".sq_briefcase_separator").attr("data-position",-2);$.sq_fields.sq_briefcase_content.find("ul.sq_briefcase_item_used li").sort($this.sortList).appendTo($.sq_fields.sq_briefcase_content.find("ul.sq_briefcase_item_used"));if(settings.show_addtobriefcasebutton){if($.sq_fields.wp_publish.find("#sq_publish_alert").length==0){$("#sq_publish_alert_briefcase").find("#sq_addtobriefcase").show()}}};$this.sortList=function(a,b){return $(b).data("position")<$(a).data("position")?-1:1};$this.sendOptimization=function(){$this.setOptimizations();if(settings.optimizations.length){$.ajax({url:$.sq_config.sq_apiurl+"api/briefcase/optimize/save?callback=?",type:"GET",dataType:"json",data:{post_id:$.sq_config.postID,optimizations:JSON.stringify(settings.optimizations),user_url:$.sq_config.user_url,token:$.sq_config.token,url_token:$.sq_config.url_token}})}};$this.listen=function(){$.sq_fields.sq_briefcase_keyword.on("keypress",function(event){if(event.keyCode===$.ui.keyCode.ENTER){clearTimeout(settings.gettimeout);settings.getapi.abort();$this.get($.sq_fields.sq_briefcase_keyword.val(),$.sq_fields.sq_briefcase_content.find(".sq_briefcase_circle.sq_active"));return false}});$.sq_fields.sq_briefcase_keyword.on("keyup",function(event){if(event.keyCode!==$.ui.keyCode.ENTER){clearTimeout(settings.gettimeout);settings.getapi.abort();settings.gettimeout=setTimeout(function(){$this.get($.sq_fields.sq_briefcase_keyword.val(),$.sq_fields.sq_briefcase_content.find(".sq_briefcase_circle.sq_active"))},1e3)}});$this.on("briefcase.save",function(){$this.sendOptimization()})};$this.one("seo.loaded",function(){SQ_DEBUG&&console.log("sq_briefcase seo.loaded");if(!$.sq_config.subscription_active){return}$this.listen();$.sq_blockseo.on("seo.task_loaded",function(){$this.get()});$.sq_blockseo.on("seo.callback",function(){$this.checkKeywords()});setInterval(function(){$this.trigger("briefcase.save")},3e4);$this.on("briefcase.refresh",function(){SQ_DEBUG&&console.log("sq_briefcase refresh");$this.init(false)});$this.trigger("briefcase.refresh")});return $this}})(jQuery);
|
1 |
+
(function($){"use strict";if($.isFunction($.fn.sq_briefcase)){return}$.fn.sq_briefcase=function(options){var $this=this;var settings=$.extend({briefcase_keywords:[],optimizations:[],getapi:false,gettimeout:false,loaded:false,tmpk:false},options);$.sq_fields=$.extend({sq_briefcase:$.sq_config.div.find("#sq_briefcase"),sq_briefcase_help:$.sq_config.div.find("#sq_briefcase_help"),sq_keywords_briefcase:$this.find("#sq_keywords_briefcase"),sq_briefcase_content:$this.find("#sq_briefcase_content"),sq_briefcase_keyword:$this.find("#sq_briefcase_keyword"),sq_briefcase_close:$this.find("#sq_briefcase_close")},$.sq_fields);$this.init=function(){settings.loaded=true;$this.show();$.sq_fields.sq_briefcase_keyword.val("");$this.get()};$this.get=function(search,circles){$.sq_fields.sq_briefcase_content.find(".sq_briefcase_item_notused").sq_loading();var labels=[];if(typeof circles!=="undefined"){circles.each(function(){labels.push($(this).data("id"))})}settings.getapi=$.post($.sq_config.ajaxurl,{action:"sla_briefcase_get",sq_nonce:$.sq_config.sq_nonce,post_id:$.sq_config.postID,search:search,label:labels.length>0?labels.join(","):"",return:"html",output:"json"}).done(function(response){if(typeof response.data.briefcase!=="undefined"){$this.loadList(response.data.briefcase)}else{if(typeof search==="undefined"||search===""){$.sq_fields.sq_briefcase_content.html($.sq_config.__no_briefcase).addClass("sq_error")}}if(typeof search!=="undefined"&&search!==""){$.sq_fields.sq_briefcase_keyword.focus()}$.sq_fields.sq_briefcase_content.find(".sq_briefcase_item_notused").sq_doneloading();$this.trigger("briefcase.after_get")}).fail(function(){$.sq_fields.sq_errorloading.show();$.sq_fields.sq_preloading_keyword.hide();$.sq_fields.sq_briefcase_content.find(".sq_briefcase_item_notused").sq_doneloading()})};$this.optimize=function(keyword){$.post($.sq_config.ajaxurl,{action:"sla_briefcase_add",sq_nonce:$.sq_config.sq_nonce,post_id:$.sq_config.postID,keyword:keyword,output:"json"}).done(function(response){$this.get($.sq_fields.sq_briefcase_keyword.val(),$.sq_fields.sq_briefcase_content.find(".sq_briefcase_circle.sq_active"))}).fail(function(){$.sq_fields.sq_briefcase_content.html("Lost connection with the server. Please make sure you whitelisted the IP from https://api.squirrly.co").addClass("sq_error")})};$this.blink=function($obj,$times){if(typeof $times==="undefined")$times=0;if($times>3)return;$obj.animate({opacity:0},150,"linear",function(){$(this).animate({opacity:1},150,"linear",function(){$this.blink($obj,$times+1)})})};$this.delete=function(id){$.post($.sq_config.ajaxurl,{action:"sla_briefcase_delete",sq_nonce:$.sq_config.sq_nonce,id:id,output:"json"}).done(function(response){$this.get($.sq_fields.sq_briefcase_keyword.val(),$.sq_fields.sq_briefcase_content.find(".sq_briefcase_circle.sq_active"))}).fail(function(){$.sq_fields.sq_briefcase_content.html("Lost connection with the server. Please make sure you whitelisted the IP from https://api.squirrly.co").addClass("sq_error")})};$this.loadList=function(briefcase){$.sq_fields.sq_briefcase_content.before($.sq_fields.sq_briefcase_keyword);$.sq_fields.sq_briefcase_content.html(briefcase).removeClass("sq_error");$.sq_fields.sq_briefcase_content.find("ul.sq_briefcase_item_used").after($.sq_fields.sq_briefcase_keyword);if(typeof $.sq_config.lsi!=="undefined"){$.each($.sq_config.lsi,function(key,value){if(value.main){$.sq_fields.sq_keyword.val(value.keyword)}})}$.sq_fields.sq_briefcase_keyword.show();$.sq_fields.sq_briefcase_content.find(".sq_briefcase_item_circles").show();var $briefcase_empty=$.sq_fields.sq_briefcase_content.find("ul.sq_briefcase_item_notused").find(".sq_briefcase_empty");if($briefcase_empty.length>0){$.sq_fields.sq_briefcase_content.find(".sq_briefcase_item_circles").hide();if($.sq_fields.sq_briefcase_keyword.val()!==""||$.sq_fields.sq_briefcase_content.find(".sq_briefcase_circle.sq_active").length>0){$briefcase_empty.append('<div style="color: #6200EE; padding: 3px; cursor: pointer;" ><i class="fa-solid fa-plus-circle" ></i> add this keyword</div>');$briefcase_empty.on("click",function(){$this.optimize($.sq_fields.sq_briefcase_keyword.val())})}}$this.setEvents();$this.setMainKeyword($.sq_fields.sq_keyword.val())};$this.setMainKeyword=function(keyword){if(typeof $.sq_fields.sq_briefcase_content!=="undefined"){if($.sq_fields.sq_briefcase_content.find("li.sq_briefcase_item_used").length>0){$.sq_fields.sq_briefcase_content.find("li.sq_briefcase_item_used").removeClass("sq_main_keyword");$.sq_fields.sq_briefcase_content.find("li.sq_briefcase_item_used").each(function(){if(keyword===""||$.sq_strEqual(keyword,$(this).find(".sq_briefcase_value").text())){$(this).addClass("sq_main_keyword");$("#sq_nokeyword").hide();$(".sq_keyword").show();$.sq_fields.sq_keyword.val($(this).find(".sq_briefcase_value").text());$.sq_fields.sq_keyword_score.html($(this).find(".sq_briefcase_item_percent").text());return false}});$("#sq_nokeyword").hide();$(".sq_keyword").show()}}$.sq_fields.sq_selectit.trigger("click")};$this.getColor=function(value){var hue=value.toString();return["hsl(",hue,",71%,43%)"].join("")};$this.setColor=function(obj,value){return;obj.css("color",$this.getColor(value));obj.css("font-weight","bold")};$this.setEvents=function(){$.sq_fields.sq_briefcase_content.find(".sq_briefcase_item_delete").on("click",function(){$(this).parent("li").sq_loading();$this.delete($(this).data("id"))});$.sq_fields.sq_briefcase_content.find(".sq_briefcase_item_used").find(".sq_briefcase_value").on("click",function(){$this.setMainKeyword($(this).text())});$.sq_fields.sq_briefcase_content.find(".sq_briefcase_circle").on("click",function(){if($(this).hasClass("sq_active")){$(this).removeClass("sq_active")}else{$(this).addClass("sq_active")}$this.get($.sq_fields.sq_briefcase_keyword.val(),$.sq_fields.sq_briefcase_content.find(".sq_briefcase_circle.sq_active"))});$this.find(".sq_briefcase_optimize").on("click",function(){$(this).parent("li").sq_loading();$this.optimize($(this).data("value"))});$this.checkKeywords()};$this.setOptimizations=function(){$.sq_config.silent=true;$.sq_config.briefcase=true;settings.show_addtobriefcasebutton=true;settings.tmpk=$.sq_config.keyword;settings.optimizations=[];if($.sq_fields.sq_briefcase_content.find("li.sq_briefcase_item_used").length>0){$.sq_fields.sq_briefcase_content.find("li.sq_briefcase_item_used").each(function(){$.sq_config.keyword=$(this).find(".sq_briefcase_value").text();if($.sq_strEqual($.sq_fields.sq_keyword.val(),$(this).find(".sq_briefcase_value").text())){settings.show_addtobriefcasebutton=false}$.sq_config.div.find("#sq_blockseo_briefcase").remove();$.sq_fields.div_blockseo.after($.sq_fields.div_blockseo.clone().prop("id","sq_blockseo_briefcase").hide());$.sq_fields.div_blockseo=$.sq_config.div.find("#sq_blockseo_briefcase");$.sq_fields.div_blockseo.find("li").removeClass("checked");$.sq_fields.div_blockseo.find("input").remove();$.sq_blockseo.checkWpFields();$.sq_blockseo.checkSEO();var completed=$.sq_blockseo.getPercentCompleted();if(completed){$(this).find(".sq_briefcase_item_percent").html(parseInt(completed)+"%");$this.setColor($(this).find(".sq_briefcase_value"),parseInt(completed));if($.sq_strEqual($.sq_fields.sq_keyword.val(),$(this).find(".sq_briefcase_value").text())){$.sq_fields.sq_keyword_score.html(parseInt(completed)+"%")}}$(this).attr("data-position",parseInt(completed));settings.optimizations.push({keyword:$(this).find(".sq_briefcase_value").html(),score:completed,main:$(this).hasClass("sq_main_keyword")});$.sq_fields.div_blockseo.remove();$.sq_fields.div_blockseo=$.sq_config.div.find("#sq_blockseo")})}else{settings.show_addtobriefcasebutton=true}$.sq_config.keyword=settings.tmpk;return settings.optimizations};$this.checkKeywords=function(){$this.setOptimizations();$.sq_fields.sq_briefcase_content.find(".sq_briefcase_item_used").find(".sq_briefcase_separator").attr("data-position",-2);$.sq_fields.sq_briefcase_content.find("ul.sq_briefcase_item_used li").sort($this.sortList).appendTo($.sq_fields.sq_briefcase_content.find("ul.sq_briefcase_item_used"));if(settings.show_addtobriefcasebutton){if($.sq_fields.wp_publish.find("#sq_publish_alert").length==0){$("#sq_publish_alert_briefcase").find("#sq_addtobriefcase").show()}}};$this.sortList=function(a,b){return $(b).data("position")<$(a).data("position")?-1:1};$this.sendOptimization=function(){$this.setOptimizations();if(settings.optimizations.length){$.post($.sq_config.ajaxurl,{action:"sla_briefcase_save",sq_nonce:$.sq_config.sq_nonce,post_id:$.sq_config.postID,optimizations:JSON.stringify(settings.optimizations)}).done(function(response){}).fail(function(){})}};$this.listen=function(){$.sq_fields.sq_briefcase_keyword.on("keypress",function(event){if(event.keyCode===$.ui.keyCode.ENTER){clearTimeout(settings.gettimeout);settings.getapi.abort();$this.get($.sq_fields.sq_briefcase_keyword.val(),$.sq_fields.sq_briefcase_content.find(".sq_briefcase_circle.sq_active"));return false}});$.sq_fields.sq_briefcase_keyword.on("keyup",function(event){if(event.keyCode!==$.ui.keyCode.ENTER){clearTimeout(settings.gettimeout);settings.getapi.abort();settings.gettimeout=setTimeout(function(){$this.get($.sq_fields.sq_briefcase_keyword.val(),$.sq_fields.sq_briefcase_content.find(".sq_briefcase_circle.sq_active"))},1e3)}});$this.on("briefcase.save",function(){$this.sendOptimization()})};$this.one("seo.loaded",function(){SQ_DEBUG&&console.log("sq_briefcase seo.loaded");if(!$.sq_config.subscription_active){return}$this.listen();$.sq_blockseo.on("seo.task_loaded",function(){$this.get()});$.sq_blockseo.on("seo.callback",function(){$this.checkKeywords()});setInterval(function(){$this.trigger("briefcase.save")},3e4);$this.on("briefcase.refresh",function(){SQ_DEBUG&&console.log("sq_briefcase refresh");$this.init(false)});$this.trigger("briefcase.refresh")});return $this}})(jQuery);
|
view/assets/js/assistant/sq_floating.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function($){$.fn.sq_floating=function(options){var $this=this;var settings=$.extend({positions:[],minimize_height:60,maximize_height:100,top:53,bottom:0},options);$.sq_fields=$.extend({wp_form:$(".metabox-location-normal").length>0?$(".metabox-location-normal"):$("#side-sortables"),sq_box_close:$.sq_config.div.find(".sq_box_close"),sq_box_minimize:$.sq_config.div.find(".sq_box_minimize"),sq_box_maximize:$.sq_config.div.find(".sq_box_maximize"),sq_button_squirrly:$(".edit__PinnedPluginIcon-hNdeXr")},$.sq_fields);$.expr.filters.slaoffscreen=function(el){var rect=el.getBoundingClientRect();return rect.x+rect.width<0||rect.y+rect.height<0||(rect.x>window.innerWidth||rect.y>window.innerHeight)};$this.init=function(){var dragposition=""
|
1 |
+
(function($){"use strict";if($.isFunction($.fn.sq_floating)){return}$.fn.sq_floating=function(options){var $this=this;var settings=$.extend({positions:[],minimize_height:60,maximize_height:100,top:53,bottom:0},options);$.sq_fields=$.extend({wp_form:$(".metabox-location-normal").length>0?$(".metabox-location-normal"):$("#side-sortables"),sq_box_close:$.sq_config.div.find(".sq_box_close"),sq_box_minimize:$.sq_config.div.find(".sq_box_minimize"),sq_box_maximize:$.sq_config.div.find(".sq_box_maximize"),sq_button_squirrly:$(".edit__PinnedPluginIcon-hNdeXr")},$.sq_fields);$.expr.filters.slaoffscreen=function(el){var rect=el.getBoundingClientRect();return rect.x+rect.width<0||rect.y+rect.height<0||(rect.x>window.innerWidth||rect.y>window.innerHeight)};$this.init=function(){var dragposition="";if(typeof $.sq_config.div==="undefined")return;$.sq_config.div.addClass("sq_sticky");$.sq_config.div.addClass("minimized");$.sq_fields.sq_box_minimize.hide();$.sq_fields.sq_box_close.show();$.sq_fields.sq_box_maximize.show();$("#wpbody").prepend($.sq_config.div);var positions=JSON.parse(localStorage.positions||"{}");$(function(){$.each(positions,function(id,pos){$.sq_config.div.css(pos)});$.sq_config.div.css("height",settings.minimize_height);$.sq_config.div.css("top","auto");if($.fn.draggable){$.sq_config.div.draggable({containment:"body",handle:".sq_header",scroll:true,axis:"x",stop:function(event,ui){positions[this.id]=ui.position;localStorage.positions=JSON.stringify(positions)}})}});$.sq_fields.sq_box_minimize.on("click",function(e){e.stopPropagation();$.sq_config.div.css("height",settings.minimize_height+"px");$.sq_config.div.css("bottom",settings.bottom+"px");$.sq_config.div.css("top","auto");$.sq_config.div.addClass("minimized");$.sq_config.div.scrollTop(0);$.sq_fields.sq_box_minimize.hide();$.sq_fields.sq_box_maximize.show()});$.sq_fields.sq_box_close.on("click",function(){$.sq_config.div.hide();$.sq_setCookie("sq_sla","off");$(".components-squirrly-icon").show()});if($.sq_getCookie("sq_sla")==="off"){$.sq_fields.sq_box_close.trigger("click")}$.sq_fields.sq_box_maximize.on("click",function(){$.sq_config.div.show();if($.sq_config.div.hasClass("minimized")){$.sq_config.div.css("top",settings.top+"px");$.sq_config.div.css("height","auto");$.sq_config.div.css("bottom",0);$.sq_config.div.scrollTop(0);$.sq_config.div.removeClass("minimized");$.sq_fields.sq_box_minimize.show();$.sq_fields.sq_box_maximize.hide()}});$.sq_fields.sq_keyword.on("click",function(){if($.sq_config.div.hasClass("minimized")){$.sq_fields.sq_box_maximize.trigger("click")}});$(".editor-writing-flow").css("height","auto");$(window).resize(function(){if(typeof $.sq_config.div==="undefined"){$.sq_config.div=$("#postsquirrly")}if($.sq_config.div.is(":slaoffscreen")){$.sq_config.div.css("left","auto");$.sq_config.div.css("right","0px")}})};$this.one("seo.loaded",function(){if($(".editor-post-title").find("textarea").length>0){$.sq_fields.wp_input_title=$(".editor-post-title").find("textarea")}else if($("h1.wp-block-post-title").length&&!$("#title").length){var $h1title=$("h1.wp-block-post-title");$.sq_fields.wp_input_title=$('<textarea id="title" style="display: none">'+$h1title.html()+"</textarea>");$h1title.after($.sq_fields.wp_input_title);$h1title.on("DOMSubtreeModified",function(){$.sq_fields.wp_input_title.val($h1title.html())})}$this.on("seo.floating.page_saved",function(){$.sq_savePost()});$.sq_editor.createEditorButton("components-squirrly-icon");if($(".components-squirrly-icon").length>0){if(!$.sq_config.div.is(":visible")&&!$(".components-squirrly-icon").is(":visible")){$(".components-squirrly-icon").show()}$(".components-squirrly-icon").off("click").on("click",function(){if($.sq_config.div.is(":visible")){$.sq_config.div.hide();$(".components-squirrly-icon").show();$.sq_setCookie("sq_sla","off")}else{$.sq_config.div.show();$(".components-squirrly-icon").hide();$.sq_setCookie("sq_sla","on")}})}else{$.sq_config.div.show()}});if($.sq_config.div.is(":slaoffscreen")){$.sq_config.div.css("left","auto");$.sq_config.div.css("right","0px")}return $this}})(jQuery);
|
view/assets/js/assistant/sq_frontend.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function($){$.fn.sq_frontend=function(options){var $this=this;var settings=$.extend({positions:[],minimize_height:134,maximize_height:100,top:25,bottom:0},options);$.sq_fields=$.extend({wp_form:$(".metabox-location-normal").length>0?$(".metabox-location-normal"):$("#side-sortables"),sq_box_close:$.sq_config.div.find(".sq_box_close"),sq_box_minimize:$.sq_config.div.find(".sq_box_minimize"),sq_box_maximize:$.sq_config.div.find(".sq_box_maximize"),sq_button_squirrly:$(".edit__PinnedPluginIcon-hNdeXr")},$.sq_fields);$.expr.filters.slaoffscreen=function(el){var rect=el.getBoundingClientRect();return rect.x+rect.width<0||rect.y+rect.height<0||(rect.x>window.innerWidth||rect.y>window.innerHeight)};$this.one("seo.loaded",function(){SQ_DEBUG&&console.log("sq_frontend seo.loaded");if($.sq_config.referer==="frontend"&&!$.sq_isFrontend()){var sq_header=$.sq_fields.sq_box.find(".sq_header");$.sq_fields.sq_box.html('<div style="font-size: 13px; padding: 2px; margin: 0; line-height: 19px; text-align: center;">'+$.sq_config.__frontend_optimized+"</div>");$.sq_fields.sq_box.prepend(sq_header);$.sq_fields.sq_box.find(".sq_box_maximize").hide();$.sq_fields.sq_box.find(".sq_box_close").on("click",function(){$.sq_config.div.hide();$.sq_setCookie("sq_sla","off")});$.sq_config.div.show();setTimeout(function(){$.sq_config.div.hide()},5e3)}if($.sq_isFrontend()){var dragposition="";$.sq_config.div.find("#sq_options").remove();$.sq_editor.createEditorButton("components-squirrly-icon");$.sq_config.div.addClass("sq_sticky");$.sq_config.div.addClass("minimized");$.sq_fields.sq_box_minimize.hide();$.sq_fields.sq_box_close.show();$.sq_fields.sq_box_maximize.show();$.sq_config.div.show();var positions=JSON.parse(localStorage.positions||"{}");$(function(){$.each(positions,function(id,pos){$.sq_config.div.css(pos)});$.sq_config.div.css("height",settings.minimize_height);$.sq_config.div.css("top","auto");if($.fn.draggable){$.sq_config.div.draggable({containment:"body",handle:".sq_header",scroll:true,axis:"x",stop:function(event,ui){positions[this.id]=ui.position;localStorage.positions=JSON.stringify(positions)}})}});$.sq_fields.sq_box_minimize.on("click",function(e){e.stopPropagation();$.sq_config.div.css("height",settings.minimize_height+"px");$.sq_config.div.css("bottom",settings.bottom+"px");$.sq_config.div.css("top","auto");$.sq_config.div.addClass("minimized");$.sq_fields.sq_box_minimize.hide();$.sq_fields.sq_box_maximize.show()});$.sq_fields.sq_box_close.on("click",function(){$.sq_config.div.hide();$.sq_setCookie("sq_sla","off");$(".components-squirrly-icon").show()});$.sq_fields.sq_box_maximize.on("click",function(){$.sq_config.div.show();if($.sq_config.div.hasClass("minimized")){$.sq_config.div.css("top",settings.top+"px");$.sq_config.div.css("height","auto");$.sq_config.div.css("bottom",0);$.sq_config.div.removeClass("minimized");$.sq_fields.sq_box_minimize.show();$.sq_fields.sq_box_maximize.hide()}});$(".editor-writing-flow").css("height","auto");$(window).resize(function(){if($.sq_config.div.is(":slaoffscreen")){$.sq_config.div.css("left","auto");$.sq_config.div.css("right","0px")}});$(".components-squirrly-icon").on("click",function(){$.sq_fields.sq_box_maximize.trigger("click");$.sq_setCookie("sq_sla","on");$(".components-squirrly-icon").hide()});$this.one("seo.frontend.content_loaded",function(){$this.sq_listenBuilderChange()});$this.sq_VisualBuilder()}});if($.sq_config.div.is(":slaoffscreen")){$.sq_config.div.css("left","auto");$.sq_config.div.css("right","0px")}return $this};$.fn.sq_listenBuilderChange=function(){var $this=this;if(!$.sq_blockseo){return}$this.on("seo.frontend.editor_loaded seo.frontend.new_changes",function(){SQ_DEBUG&&console.log("seo.frontend.new_changes");var ed=$.sq_editor.getFrontendEditor();if(ed){if(ed.getPageTitle()!==""){$.sq_fields.wp_input_title.val(ed.getPageTitle())}$.sq_blockseo.trigger("seo.refresh")}SQ_DEBUG&&console.log("seo.frontend.new_changes DONE")});$.sq_blockseo.on("seo.refresh_click",function(){$this.checkPostAjax()});$this.on("seo.frontend.page_saved",function(){SQ_DEBUG&&console.log("seo.frontend.page_saved");var ed=$.sq_editor.getFrontendEditor();if(ed){if($.sq_blockbriefcase){$.sq_blockbriefcase.trigger("briefcase.save")}var $sq_seo=[];$this.find('input[name="sq_seo[]"]').each(function(){$sq_seo.push(this.value)});$.post(sqQuery.ajaxurl,{action:"sq_ajax_save_post",post_id:$.sq_config.postID,sq_keyword:$.sq_config.keyword,referer:"frontend",sq_seo:$sq_seo,sq_nonce:sqQuery.nonce})}SQ_DEBUG&&console.log("seo.frontend.page_saved DONE")});$this.checkPostAjax=function(){return $.post(sqQuery.ajaxurl,{action:"sq_ajax_get_post",post_id:$.sq_config.postID,sq_nonce:sqQuery.nonce}).done(function(data){if(typeof data.url!=="undefined"){if(!$.sq_config.div.find("#new-post-slug").length){$.sq_config.div.append('<input type="hidden" id="new-post-slug" />')}$("#new-post-slug").val(data.url)}if(typeof data.post_title!=="undefined"){$.sq_fields.wp_input_title.val(data.post_title)}$this.trigger("seo.frontend.new_changes")})};if(!$.sq_config.div.find("#sq_post_title").length){$.sq_config.div.append('<input type="hidden" id="sq_post_title" />');$.sq_fields.wp_input_title=$("#sq_post_title");$this.checkPostAjax()}};$.fn.sq_VisualBuilder=function(){var $this=this;if(typeof window.sq_editor!=="undefined"){return window.sq_editor}var builderExists=false;var builderInUse="";var $builderContents=null;var $lastNumberOfNodes=0;var $currentNumberOfNodes=0;var $elementLoadingTime=null;var buildersInfo={elementor:{enabled:true,name:"elementor",hasIframe:true,iframeSelector:"#elementor-preview-iframe",parrentDiv:"#page"},WPBakery:{enabled:true,name:"WPBakery",hasIframe:true,iframeSelector:"#vc_inline-frame",parrentDiv:"#vc_editor"},beaver:{enabled:true,name:"beaver",hasIframe:false,iframeSelector:"#vc_inline-frame",parrentDiv:".fl-builder"},liveComposer:{enabled:true,name:"liveComposer",hasIframe:true,iframeSelector:"#page-builder-frame",parrentDiv:".fl-builder"},divi:{enabled:true,name:"diviBuilder",hasIframe:true,iframeSelector:"#et-fb-app-frame",parrentDiv:".et_divi_builder"}};var pageData={url:"",title:"",content:"",h1:"",headline:"",hasMultipleH1:false,images:""};var builderSelectorsSettings={wrapper:"",preview:"",sections:"",h1:"",container:"",containerWidget:"",containerWidgetImages:"",saveButton:""};var currentNumberOfNodes=null;$this.init=function(){SQ_DEBUG&&console.log("checkBuilderExists");$this.checkBuilderExists();if($this.getBuilderExists()){$this.parseBuilders()}};$this.parseBuilders=function(){switch($this.getBuilderName()){case"elementor":SQ_DEBUG&&console.log("Found "+$this.getBuilderName()+" builder");$this.parseElementor();break}};$this.checkBuilderExists=function(){SQ_DEBUG&&console.log("Looking for builders");$.each(Object.values(buildersInfo),function(index,builder){SQ_DEBUG&&console.log("Checking for: "+builder.name+" builder");if(builder.enabled===false){return}if(builder.hasIframe){if($this.elementExists(builder.iframeSelector)){$(builder.iframeSelector).load(function(){$this.setBuilderExists(builder.name);$builderContents=$(builder.iframeSelector).contents()[0];$this.parseBuilders()});$(builder.iframeSelector).ready(function(){$this.setBuilderExists(builder.name);$builderContents=$(builder.iframeSelector).contents()[0];$this.parseBuilders()});return false}}if($this.elementExists(builder.parrentDiv)){$builderContents=$(builder.parrentDiv).contents();$this.setBuilderExists(builder.name);return false}})};$this.elementExists=function(element,where){var $whereToLook;if(typeof where==="undefined"){$whereToLook=$(document)}else{$whereToLook=$(where)}$element=$whereToLook.find(element);if(typeof $element!=="undefined"&&$element.length>0){return $element}return false};$this.getBuilderInfo=function(builderName){return buildersInfo[builderName]};$this.waitForElementToDisplay=function(selector,where,time,callback){if($elementLoadingTime){clearTimeout($elementLoadingTime)}if($element=$this.elementExists(selector,where)){callback()}else{$elementLoadingTime=setTimeout(function(){console.log("Waiting for: "+selector);$this.waitForElementToDisplay(selector,where,time,callback)},time)}};$this.parseElementor=function(){SQ_DEBUG&&console.log("Start parsing "+$this.getBuilderName());builderSelectorsSettings={wrapper:["#elementor-editor-wrapper"],preview:["#elementor-preview-iframe"],sections:["section.elementor-element"],title:["h1.entry-title","h1.elementor-heading-title"],header:["h2.entry-title","h2.elementor-heading-title","h3.entry-title","h3.elementor-heading-title","h4.entry-title","h4.elementor-heading-title"],container:[".entry-content",".elementor-inner",".elementor-container"],containerWidget:"[data-element_type='widget'] .elementor-widget-container",containerWidgetImages:[".wp-block-image",".elementor-image",".featured-media-inner"],saveButton:"#elementor-panel-saver-button-publish",draftButton:"#elementor-panel-footer-sub-menu-item-save-draft"};$.each(builderSelectorsSettings.title,function(index,value){if($this.elementExists(value,$builderContents)){$this.setPageTitle($($builderContents).find(value+":first").text())}});$.each(builderSelectorsSettings.header,function(index,value){if($this.elementExists(value,$builderContents)){$this.setPageHeadline($($builderContents).find(value+":first").text())}});$.each(builderSelectorsSettings.container,function(index,value){$this.waitForElementToDisplay(value,$builderContents,$.sq_config.delay_seo,function(){var $elementorWidgets=$($builderContents).find(builderSelectorsSettings.containerWidget);$currentNumberOfNodes=$elementorWidgets.length;var textContainerToConcat="";var textContainerImagesToConcat="";$.each($elementorWidgets,function(){var $element=$(this).clone();$(builderSelectorsSettings.title).each(function(index,val){$element.find(val).remove()});if($.isFunction($element.html)){textContainerToConcat+=$element.html()}else if(typeof $element.context!="undefined"){textContainerToConcat+=$element.context.innerHTML}$.each(builderSelectorsSettings.containerWidgetImages,function(index,value){var $imagesContainers=$element.find(value);if($imagesContainers.length>0){$.each($imagesContainers,function(){if($.isFunction($(this).html)){textContainerImagesToConcat+=$(this).html()}else if(typeof $(this).context!="undefined"){textContainerImagesToConcat+=$(this).context.innerHTML}});return false}})});$this.setPageContent(textContainerToConcat);$this.setPageImages(textContainerImagesToConcat);$this.trigger("seo.frontend.content_loaded")})});$.each(builderSelectorsSettings.preview,function(index,value){$this.waitForElementToDisplay(value,$(document),$.sq_config.delay_seo,function(){$this.setPageURL($(value).attr("src").split("?")[0]);$this.trigger("seo.frontend.preview_loaded")})});$.each(builderSelectorsSettings.wrapper,function(index,value){$this.waitForElementToDisplay(value,$(document),$.sq_config.delay_seo,function(){$this.trigger("seo.frontend.wrapper_loaded")})})};$this.setBuilderExists=function(builderName){builderExists=true;builderInUse=builderName};$this.getBuilderExists=function(){return builderExists};$this.getBuilderName=function(){return builderInUse};$this.getPageData=function(){return pageData};$this.getPageURL=function(){return pageData.url};$this.getPageTitle=function(){return pageData.title};$this.getMultipleH1=function(){return pageData.hasMultipleH1};$this.getH1=function(){return pageData.h1};$this.getPageContent=function(){return pageData.content};$this.getPageImages=function(){return pageData.images};$this.getPageHeadline=function(){return pageData.headline};$this.setPageURL=function(url){pageData.url=url};$this.setPageTitle=function(title){pageData.title=title};$this.setH1=function(h1Text){pageData.h1=h1Text};$this.setPageHeadline=function(headline){pageData.headline=headline};$this.setMultipleH1=function(flag){pageData.hasMultipleH1=flag};$this.setPageContent=function(content){pageData.content=content};$this.setPageImages=function(images){pageData.images=images};$this.triggerPageHasChanges=function(){SQ_DEBUG&&console.log("triggerPageHasChanges");$this.trigger("seo.frontend.refresh");$this.trigger("seo.frontend.new_changes")};$this.triggerButtonSaveClicked=function(){SQ_DEBUG&&console.log("triggerButtonSaveClicked");$this.trigger("seo.frontend.refresh");$this.trigger("seo.frontend.page_saved")};$this.on("seo.frontend.refresh",function(){$this.parseBuilders()});$(document).on("click","button",function(){if("#"+$(this).attr("id")===builderSelectorsSettings.saveButton){$this.triggerButtonSaveClicked()}});$(document).on("click","div",function(){if("#"+$(this).attr("id")===builderSelectorsSettings.draftButton){$this.triggerButtonSaveClicked()}});setInterval(function(){$this.trigger("seo.frontend.refresh");SQ_DEBUG&&console.log("Check Blocks number: "+$lastNumberOfNodes+" = "+$currentNumberOfNodes);if($lastNumberOfNodes!==$currentNumberOfNodes){$lastNumberOfNodes=$currentNumberOfNodes;$this.triggerPageHasChanges()}},1e3);$this.init();window.sq_editor=$this;$this.trigger("seo.frontend.editor_loaded");return $this}})(jQuery);
|
1 |
+
(function($){"use strict";if($.isFunction($.fn.sq_frontend)){return}$.fn.sq_frontend=function(options){var $this=this;var settings=$.extend({positions:[],minimize_height:134,maximize_height:100,top:25,bottom:0},options);$.sq_fields=$.extend({wp_form:$(".metabox-location-normal").length>0?$(".metabox-location-normal"):$("#side-sortables"),sq_box_close:$.sq_config.div.find(".sq_box_close"),sq_box_minimize:$.sq_config.div.find(".sq_box_minimize"),sq_box_maximize:$.sq_config.div.find(".sq_box_maximize"),sq_button_squirrly:$(".edit__PinnedPluginIcon-hNdeXr")},$.sq_fields);$.expr.filters.slaoffscreen=function(el){var rect=el.getBoundingClientRect();return rect.x+rect.width<0||rect.y+rect.height<0||(rect.x>window.innerWidth||rect.y>window.innerHeight)};$this.one("seo.loaded",function(){if($.sq_config.referer==="frontend"&&!$.sq_isFrontend()){var sq_header=$.sq_fields.sq_box.find(".sq_header");$.sq_fields.sq_box.html('<div style="font-size: 13px; padding: 2px; margin: 0; line-height: 19px; text-align: center;">'+$.sq_config.__frontend_optimized+"</div>");$.sq_fields.sq_box.prepend(sq_header);$.sq_fields.sq_box.find(".sq_box_maximize").hide();$.sq_fields.sq_box.find(".sq_box_close").on("click",function(){$.sq_config.div.hide();$.sq_setCookie("sq_sla","off")});$.sq_config.div.show();setTimeout(function(){$.sq_config.div.hide()},5e3)}$this.sq_VisualBuilder()});$this.one("seo.frontend.content_loaded",function(){SQ_DEBUG&&console.log("sq_frontend seo.loaded");var dragposition="";$.sq_editor.createEditorButton("components-squirrly-icon");$.sq_config.div.addClass("sq_sticky");$.sq_config.div.addClass("minimized");$.sq_fields.sq_box_minimize.hide();$.sq_fields.sq_box_close.show();$.sq_fields.sq_box_maximize.show();$.sq_config.div.show();var positions=JSON.parse(localStorage.positions||"{}");$(function(){$.each(positions,function(id,pos){$.sq_config.div.css(pos)});$.sq_config.div.css("height",settings.minimize_height);$.sq_config.div.css("top","auto");if($.fn.draggable){$.sq_config.div.draggable({containment:"body",handle:".sq_header",scroll:true,axis:"x",stop:function(event,ui){positions[this.id]=ui.position;localStorage.positions=JSON.stringify(positions)}})}});$.sq_fields.sq_box_minimize.on("click",function(e){e.stopPropagation();$.sq_config.div.css("height",settings.minimize_height+"px");$.sq_config.div.css("bottom",settings.bottom+"px");$.sq_config.div.css("top","auto");$.sq_config.div.addClass("minimized");$.sq_config.div.scrollTop(0);$.sq_fields.sq_box_minimize.hide();$.sq_fields.sq_box_maximize.show()});$.sq_fields.sq_box_close.on("click",function(){$.sq_config.div.hide();$.sq_setCookie("sq_sla","off");if(!$(".components-squirrly-icon").length){$.sq_editor.createEditorButton("components-squirrly-icon")}$(".components-squirrly-icon").show()});if($.sq_getCookie("sq_sla")==="off"){$.sq_fields.sq_box_close.trigger("click")}$.sq_fields.sq_box_maximize.on("click",function(){$.sq_config.div.show();if($.sq_config.div.hasClass("minimized")){$.sq_config.div.css("top",settings.top+"px");$.sq_config.div.css("height","auto");$.sq_config.div.css("bottom",0);$.sq_config.div.scrollTop(0);$.sq_config.div.removeClass("minimized");$.sq_fields.sq_box_minimize.show();$.sq_fields.sq_box_maximize.hide()}});$(".editor-writing-flow").css("height","auto");$(window).resize(function(){if($.sq_config.div.is(":slaoffscreen")){$.sq_config.div.css("left","auto");$.sq_config.div.css("right","0px")}});$(".components-squirrly-icon").on("click",function(){$.sq_fields.sq_box_maximize.trigger("click");$.sq_setCookie("sq_sla","on");$(".components-squirrly-icon").hide()});$this.sq_listenBuilderChange()});if($.sq_config.div.is(":slaoffscreen")){$.sq_config.div.css("left","auto");$.sq_config.div.css("right","0px")}return $this};$.fn.sq_listenBuilderChange=function(){var $this=this;if(!$.sq_blockseo){return}$this.on("seo.frontend.editor_loaded seo.frontend.new_changes",function(){SQ_DEBUG&&console.log("seo.frontend.new_changes");var ed=$.sq_editor.getFrontendEditor();if(ed){if(ed.getPageTitle()!==""){$.sq_fields.wp_input_title.val(ed.getPageTitle())}$.sq_blockseo.trigger("seo.refresh")}SQ_DEBUG&&console.log("seo.frontend.new_changes DONE")});$.sq_blockseo.on("seo.refresh_click",function(){$this.checkPostAjax()});$this.on("seo.frontend.page_saved",function(){SQ_DEBUG&&console.log("seo.frontend.page_saved");var ed=$.sq_editor.getFrontendEditor();if(ed){if($.sq_blockbriefcase){$.sq_blockbriefcase.trigger("briefcase.save")}var $sq_seo=[];$this.find('input[name="sq_seo[]"]').each(function(){$sq_seo.push(this.value)});$.post($.sq_config.ajaxurl,{action:"sq_ajax_save_post",sq_nonce:$.sq_config.sq_nonce,post_id:$.sq_config.postID,sq_keyword:$.sq_config.keyword,referer:"frontend",sq_seo:$sq_seo}).done(function(){$this.trigger("seo.frontend.new_changes")})}SQ_DEBUG&&console.log("seo.frontend.page_saved DONE")});$this.checkPostAjax=function(){return $.post($.sq_config.ajaxurl,{action:"sq_ajax_get_post",sq_nonce:$.sq_config.sq_nonce,post_id:$.sq_config.postID}).done(function(data){if(typeof data.url!=="undefined"){if(!$.sq_config.div.find("#new-post-slug").length){$.sq_config.div.append('<input type="hidden" id="new-post-slug" />')}$("#new-post-slug").val(data.url)}if(typeof data.post_title!=="undefined"){$.sq_fields.wp_input_title.val(data.post_title)}$this.trigger("seo.frontend.new_changes")})};if(!$.sq_config.div.find("#sq_post_title").length){$.sq_config.div.append('<input type="hidden" id="sq_post_title" />');$.sq_fields.wp_input_title=$("#sq_post_title");$this.checkPostAjax()}};$.fn.sq_VisualBuilder=function(){var $this=this;if(typeof window.sq_editor!=="undefined"){return window.sq_editor}var builderExists=false;var builderInUse="";var $builderContents=null;var $lastNumberOfNodes=0;var $currentNumberOfNodes=0;var $elementLoadingTime=null;var buildersInfo={elementor:{enabled:true,name:"elementor",hasIframe:true,iframeSelector:"#elementor-preview-iframe",parrentDiv:".elementor-editor-active"},WPBakery:{enabled:true,name:"wpbakery",hasIframe:true,iframeSelector:"#vc_inline-frame",parrentDiv:"#vc_editor"},divi:{enabled:true,name:"divi",hasIframe:true,iframeSelector:"#et-fb-app-frame",parrentDiv:".et_divi_builder"},oxygen:{enabled:true,name:"oxygen",hasIframe:true,iframeSelector:"#ct-artificial-viewport",parrentDiv:"#oxygen-ui"},zion:{enabled:true,name:"zion",hasIframe:true,iframeSelector:"#znpb-editor-iframe",parrentDiv:".znpb"}};var pageData={url:"",title:"",content:"",h1:"",headline:"",hasMultipleH1:false,images:""};var builderSelectorsSettings={preview:"",h1:"",container:"",containerWidget:"",containerWidgetImages:"",saveButton:""};var currentNumberOfNodes=null;$this.init=function(){SQ_DEBUG&&console.log("checkBuilderExists");$this.checkBuilderExists()};$this.parseBuilders=function(){SQ_DEBUG&&console.log("Check parseBuilders "+$this.getBuilderName());switch($this.getBuilderName()){case"elementor":SQ_DEBUG&&console.log("Found "+$this.getBuilderName()+" builder");$this.parseElementor();break;case"oxygen":SQ_DEBUG&&console.log("Found "+$this.getBuilderName()+" builder");$this.parseOxygen();break;case"divi":SQ_DEBUG&&console.log("Found "+$this.getBuilderName()+" builder");if(typeof $.sq_config.div==="undefined"||typeof $.sq_params.low_density==="undefined"||typeof $.sq_fields.wp_title==="undefined"){$.sq_setConfig();$.sq_setParams();$.sq_setfields()}$this.parseDivi();break;case"wpbakery":SQ_DEBUG&&console.log("Found "+$this.getBuilderName()+" builder");$this.parseWPBakery();break;case"zion":SQ_DEBUG&&console.log("Found "+$this.getBuilderName()+" builder");$this.parseZion();break}};$this.checkBuilderExists=function(){SQ_DEBUG&&console.log("Looking for builders");$.each(Object.values(buildersInfo),function(index,builder){SQ_DEBUG&&console.log("Checking for: "+builder.name+" builder");if(builder.enabled===false){return}if(builder.hasIframe){if($this.elementExists(builder.iframeSelector)){SQ_DEBUG&&console.log("Found: "+builder.iframeSelector+" iframe");$(builder.iframeSelector).load(function(){SQ_DEBUG&&console.log("Loaded iframeSelector: "+builder.iframeSelector+" from builder "+builder.name);$this.setBuilderExists(builder.name);$builderContents=$(builder.iframeSelector).contents()[0];$this.parseBuilders()});$(builder.iframeSelector).ready(function(){SQ_DEBUG&&console.log("Ready iframeSelector: "+builder.iframeSelector+" from builder "+builder.name);$this.setBuilderExists(builder.name);$builderContents=$(builder.iframeSelector).contents()[0];$this.parseBuilders()});return false}}else if($this.elementExists(builder.parrentDiv)){$builderContents=$(builder.parrentDiv).contents();$this.setBuilderExists(builder.name);return false}})};$this.elementExists=function(element,where){var $whereToLook;if(typeof where==="undefined"){$whereToLook=$(document)}else{$whereToLook=$(where)}var $element=$whereToLook.find(element);if(typeof $element!=="undefined"&&$element.length>0){return $element}return false};$this.getBuilderInfo=function(builderName){return buildersInfo[builderName]};$this.waitForElementToDisplay=function(selector,where,time,callback){if($elementLoadingTime){clearTimeout($elementLoadingTime)}var $element=$this.elementExists(selector,where);if($element){callback()}else{$elementLoadingTime=setTimeout(function(){console.log("Waiting for: "+selector);$this.waitForElementToDisplay(selector,where,time,callback)},time)}};$this.parseElementor=function(){SQ_DEBUG&&console.log("Start parsing "+$this.getBuilderName());builderSelectorsSettings={preview:["#elementor-preview-iframe"],title:["h1.entry-title","h1.elementor-heading-title"],header:["h2.elementor-heading-title","h3.elementor-heading-title","h4.elementor-heading-title","h5.elementor-heading-title","h6.elementor-heading-title"],container:[".elementor",".elementor-inner"],containerWidget:"[data-element_type='widget'] .elementor-widget-container",containerWidgetImages:["img"],saveButton:"#elementor-panel-saver-button-publish",draftButton:"#elementor-panel-footer-sub-menu-item-save-draft"};$.each(builderSelectorsSettings.title,function(index,value){if($this.elementExists(value,$builderContents)){$this.setPageTitle($($builderContents).find(value+":first").text())}});$.each(builderSelectorsSettings.container,function(index,value){$this.waitForElementToDisplay(value,$builderContents,$.sq_config.delay_seo,function(){var $elementorWidgets=$($builderContents).find(builderSelectorsSettings.containerWidget);$currentNumberOfNodes=$elementorWidgets.length;var textContainerToConcat="";var textContainerImagesToConcat="";$.each($elementorWidgets,function(){var $element=$(this).clone();$(builderSelectorsSettings.title).each(function(index,val){$element.find(val).remove()});$.each(builderSelectorsSettings.header,function(index,value){if($this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});if($.isFunction($element.html)){textContainerToConcat+=$element.html()}else if(typeof $element.context!="undefined"){textContainerToConcat+=$element.context.innerHTML}$.each(builderSelectorsSettings.containerWidgetImages,function(index,value){var $imagesContainers=$element.find(value);if($imagesContainers.length>0){$.each($imagesContainers,function(){if($.isFunction($(this).html)){textContainerImagesToConcat+=$(this).html()}else if(typeof $(this).context!="undefined"){textContainerImagesToConcat+=$(this).context.innerHTML}});return false}})});$this.setPageContent(textContainerToConcat);$this.setPageImages(textContainerImagesToConcat);var triggerLoadInterval=setInterval(function(){if(!$(".elementor-loading").is(":visible")){clearInterval(triggerLoadInterval);$this.trigger("seo.frontend.content_loaded")}},1e3)})});$.each(builderSelectorsSettings.preview,function(index,value){$this.waitForElementToDisplay(value,$(document),$.sq_config.delay_seo,function(){$this.setPageURL($(value).attr("src").split("?")[0]);$this.trigger("seo.frontend.preview_loaded")})})};$this.parseOxygen=function(){SQ_DEBUG&&console.log("Start parsing "+$this.getBuilderName());builderSelectorsSettings={preview:["#ct-artificial-viewport"],title:["h1.ct-headline"],header:["div.bnb-subheading"],container:["#ct-builder"],containerWidget:".ct-inner-wrap",containerWidgetImages:[".ct-image"],saveButton:"oxygen-save-button",draftButton:"oxygen-save-button"};$.each(builderSelectorsSettings.title,function(index,value){if($this.elementExists(value,$builderContents)){$this.setPageTitle($($builderContents).find(value+":first").text())}});$.each(builderSelectorsSettings.container,function(index,value){$this.waitForElementToDisplay(value,$builderContents,$.sq_config.delay_seo,function(){var $elementorWidgets=$($builderContents).find(builderSelectorsSettings.containerWidget);$currentNumberOfNodes=$elementorWidgets.length;var textContainerToConcat="";var textContainerImagesToConcat="";$.each($elementorWidgets,function(){var $element=$(this).clone();$(builderSelectorsSettings.title).each(function(index,val){$element.find(val).remove()});$.each(builderSelectorsSettings.header,function(index,value){if($this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});if($.isFunction($element.html)){textContainerToConcat+=$element.html()}else if(typeof $element.context!="undefined"){textContainerToConcat+=$element.context.innerHTML}$.each(builderSelectorsSettings.containerWidgetImages,function(index,value){var $imagesContainers=$element.find(value);if($imagesContainers.length>0){$.each($imagesContainers,function(){if($.isFunction($(this).html)){textContainerImagesToConcat+=$(this).html()}else if(typeof $(this).context!="undefined"){textContainerImagesToConcat+=$(this).context.innerHTML}});return false}})});$this.setPageContent(textContainerToConcat);$this.setPageImages(textContainerImagesToConcat);$this.trigger("seo.frontend.content_loaded")})});$.each(builderSelectorsSettings.preview,function(index,value){$this.waitForElementToDisplay(value,$(document),$.sq_config.delay_seo,function(){$this.setPageURL($(value).attr("src").split("?")[0]);$this.trigger("seo.frontend.preview_loaded")})})};$this.parseDivi=function(){SQ_DEBUG&&console.log("Start parsing "+$this.getBuilderName());builderSelectorsSettings={preview:["#et-fb-app-frame"],title:["h1.entry-title","h1.et_pb_module_header"],header:["h2","h3","h4","h5","h6"],container:["#et-boc"],containerWidget:".et_pb_section",containerWidgetImages:[".et_pb_image_wrap"],saveButton:"et-fb-button--publish",draftButton:"et-fb-button--save-draft"};$.each(builderSelectorsSettings.title,function(index,value){if($this.elementExists(value,$builderContents)){$this.setPageTitle($($builderContents).find(value+":first").text())}});$.each(builderSelectorsSettings.container,function(index,value){$this.waitForElementToDisplay(value,$builderContents,$.sq_config.delay_seo,function(){var $elementorWidgets=$($builderContents).find(builderSelectorsSettings.containerWidget);$currentNumberOfNodes=$elementorWidgets.length;var textContainerToConcat="";var textContainerImagesToConcat="";$.each($elementorWidgets,function(){var $element=$(this).clone();$(builderSelectorsSettings.title).each(function(index,val){$element.find(val).remove()});$.each(builderSelectorsSettings.header,function(index,value){if($this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});if($.isFunction($element.html)){textContainerToConcat+=$element.html()}else if(typeof $element.context!="undefined"){textContainerToConcat+=$element.context.innerHTML}$.each(builderSelectorsSettings.containerWidgetImages,function(index,value){var $imagesContainers=$element.find(value);if($imagesContainers.length>0){$.each($imagesContainers,function(){if($.isFunction($(this).html)){textContainerImagesToConcat+=$(this).html()}else if(typeof $(this).context!="undefined"){textContainerImagesToConcat+=$(this).context.innerHTML}});return false}})});$this.setPageContent(textContainerToConcat);$this.setPageImages(textContainerImagesToConcat);var triggerLoadInterval=setInterval(function(){if(!$(".et-fb-page-preloading").length){clearInterval(triggerLoadInterval);$this.trigger("seo.frontend.content_loaded")}},1e3)})});$.each(builderSelectorsSettings.preview,function(index,value){$this.waitForElementToDisplay(value,$(document),$.sq_config.delay_seo,function(){$this.setPageURL($(value).attr("src").split("?")[0]);$this.trigger("seo.frontend.preview_loaded")})})};$this.parseWPBakery=function(){SQ_DEBUG&&console.log("Start parsing "+$this.getBuilderName());builderSelectorsSettings={preview:["#vc_inline-frame"],title:["h1.entry-title","h1.wp-block-post-title",".vc_container-block h1"],header:[".vc_container-block h2,.vc_container-block h3,.vc_container-block h4,.vc_container-block h5,.vc_container-block h6"],container:[".vc-main-sortable-container"],containerWidget:".wpb_wrapper",containerWidgetImages:[".vc_single_image-img",".wpb_gallery_slides"],saveButton:"#vc_button-update",draftButton:"#vc_button-save-draft"};$.each(builderSelectorsSettings.title,function(index,value){if($this.elementExists(value,$builderContents)){$this.setPageTitle($($builderContents).find(value+":first").text())}});$.each(builderSelectorsSettings.container,function(index,value){$this.waitForElementToDisplay(value,$builderContents,$.sq_config.delay_seo,function(){var $elementorWidgets=$($builderContents).find(builderSelectorsSettings.containerWidget);$currentNumberOfNodes=$elementorWidgets.length;var textContainerToConcat="";var textContainerImagesToConcat="";$.each($elementorWidgets,function(){var $element=$(this).clone();$(builderSelectorsSettings.title).each(function(index,val){$element.find(val).remove()});$.each(builderSelectorsSettings.header,function(index,value){if($this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});if($.isFunction($element.html)){textContainerToConcat+=$element.html()}else if(typeof $element.context!="undefined"){textContainerToConcat+=$element.context.innerHTML}$.each(builderSelectorsSettings.containerWidgetImages,function(index,value){var $imagesContainers=$element.find(value);if($imagesContainers.length>0){$.each($imagesContainers,function(){if($.isFunction($(this).html)){textContainerImagesToConcat+=$(this).html()}else if(typeof $(this).context!="undefined"){textContainerImagesToConcat+=$(this).context.innerHTML}});return false}})});$this.setPageContent(textContainerToConcat);$this.setPageImages(textContainerImagesToConcat);$this.trigger("seo.frontend.content_loaded")})});$.each(builderSelectorsSettings.preview,function(index,value){$this.waitForElementToDisplay(value,$(document),$.sq_config.delay_seo,function(){$this.setPageURL($(value).attr("src").split("?")[0]);$this.trigger("seo.frontend.preview_loaded")})})};$this.parseZion=function(){SQ_DEBUG&&console.log("Start parsing "+$this.getBuilderName());builderSelectorsSettings={preview:["#znpb-editor-iframe"],title:["h1.entry-title","h1.zb-el-zionHeading"],header:["h2.zb-el-zionHeading","h3.zb-el-zionHeading","h4.zb-el-zionHeading","h5.zb-el-zionHeading","h6.zb-el-zionHeading"],container:[".znpb-preview-page-wrapper"],containerWidget:".zb-section__innerWrapper",containerWidgetImages:[".znpb-element__wrapper img"],saveButton:".znpb-editor-header__page-save-wrapper--save",draftButton:".znpb-editor-header__page-save-wrapper"};$.each(builderSelectorsSettings.title,function(index,value){if($this.elementExists(value,$builderContents)){$this.setPageTitle($($builderContents).find(value+":first").text())}});$.each(builderSelectorsSettings.container,function(index,value){$this.waitForElementToDisplay(value,$builderContents,$.sq_config.delay_seo,function(){var $elementorWidgets=$($builderContents).find(builderSelectorsSettings.containerWidget);$currentNumberOfNodes=$elementorWidgets.length;var textContainerToConcat="";var textContainerImagesToConcat="";$.each($elementorWidgets,function(){var $element=$(this).clone();$(builderSelectorsSettings.title).each(function(index,val){$element.find(val).remove()});$.each(builderSelectorsSettings.header,function(index,value){if($this.elementExists(value,$element)){$this.setPageHeadline($element.find(value+":first").text())}});if($.isFunction($element.html)){textContainerToConcat+=$element.html()}else if(typeof $element.context!="undefined"){textContainerToConcat+=$element.context.innerHTML}$.each(builderSelectorsSettings.containerWidgetImages,function(index,value){var $imagesContainers=$element.find(value);if($imagesContainers.length>0){$.each($imagesContainers,function(){if($.isFunction($(this).html)){textContainerImagesToConcat+=$(this).html()}else if(typeof $(this).context!="undefined"){textContainerImagesToConcat+=$(this).context.innerHTML}});return false}})});$this.setPageContent(textContainerToConcat);$this.setPageImages(textContainerImagesToConcat);$this.trigger("seo.frontend.content_loaded")})});$.each(builderSelectorsSettings.preview,function(index,value){$this.waitForElementToDisplay(value,$(document),$.sq_config.delay_seo,function(){$this.setPageURL($(value).attr("src").split("?")[0]);$this.trigger("seo.frontend.preview_loaded")})})};$this.setBuilderExists=function(builderName){builderExists=true;builderInUse=builderName};$this.getBuilderExists=function(){return builderExists};$this.getBuilderName=function(){return builderInUse};$this.getBuilderContainer=function(){if($(builderSelectorsSettings.preview[0]).contents().find(builderSelectorsSettings.container[0]).length>0){return $(builderSelectorsSettings.preview[0]).contents().find(builderSelectorsSettings.container[0]).first()}if(builderSelectorsSettings.preview.length>0){return $(builderSelectorsSettings.preview[0]).contents().find("body")}return false};$this.getPageData=function(){return pageData};$this.getPageURL=function(){return pageData.url};$this.getPageTitle=function(){return pageData.title};$this.getMultipleH1=function(){return pageData.hasMultipleH1};$this.getH1=function(){return pageData.h1};$this.getPageContent=function(){return pageData.content};$this.getPageImages=function(){return pageData.images};$this.getPageHeadline=function(){return pageData.headline};$this.setPageURL=function(url){pageData.url=url};$this.setPageTitle=function(title){pageData.title=title};$this.setH1=function(h1Text){pageData.h1=h1Text};$this.setPageHeadline=function(headline){pageData.headline=headline};$this.setMultipleH1=function(flag){pageData.hasMultipleH1=flag};$this.setPageContent=function(content){pageData.content=content};$this.setPageImages=function(images){pageData.images=images};$this.triggerPageHasChanges=function(){SQ_DEBUG&&console.log("triggerPageHasChanges");$this.trigger("seo.frontend.refresh");$this.trigger("seo.frontend.new_changes")};$this.triggerButtonSaveClicked=function(){SQ_DEBUG&&console.log("triggerButtonSaveClicked");$this.trigger("seo.frontend.refresh");$this.trigger("seo.frontend.page_saved")};$this.on("seo.frontend.refresh",function(){$this.parseBuilders()});$(document).on("click","button",function(){if("#"+$(this).attr("id")===builderSelectorsSettings.saveButton){$this.triggerButtonSaveClicked()}if(typeof builderSelectorsSettings.saveButton!="undefined"){if(builderSelectorsSettings.saveButton.indexOf("#")===-1){if($(this).hasClass(builderSelectorsSettings.saveButton)){$this.triggerButtonSaveClicked()}}}});$(document).on("click","div",function(){if("#"+$(this).attr("id")===builderSelectorsSettings.draftButton){$this.triggerButtonSaveClicked()}if(typeof builderSelectorsSettings.saveButton!="undefined"){if(builderSelectorsSettings.saveButton.indexOf("#")===-1){if($(this).hasClass(builderSelectorsSettings.saveButton)){$this.triggerButtonSaveClicked()}}}if(typeof builderSelectorsSettings.draftButton!="undefined"){if(builderSelectorsSettings.draftButton.indexOf("#")===-1){if($(this).hasClass(builderSelectorsSettings.draftButton)){$this.triggerButtonSaveClicked()}}}});setInterval(function(){$this.trigger("seo.frontend.refresh");SQ_DEBUG&&console.log("Check Blocks number: "+$lastNumberOfNodes+" = "+$currentNumberOfNodes);if($lastNumberOfNodes!==$currentNumberOfNodes){$lastNumberOfNodes=$currentNumberOfNodes;$this.triggerPageHasChanges()}},3e4);$.sq_blockseo.on("seo.task_loaded",function(){$(".sq_tasks").find("#sq_alt").remove()});$this.init();window.sq_editor=$this;$this.trigger("seo.frontend.editor_loaded");return $this}})(jQuery);
|
view/assets/js/assistant/squirrly.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
if(typeof SQ_DEBUG==="undefined"){var SQ_DEBUG=false}(function($){"use strict";$.sq_initialized=false;if(!$.sq_initialized){$.sq_config=$.extend({div:$("#postsquirrly"),editor:false,editor_type:false,active_editor:false,token:"",url_token:"",sq_apiurl:"//api.squirrly.co/v2/",sq_version:"",is_gutenberg:0,referer:"",keyword:"",lsi:[],language:"en-US",subscription_active:1,subscription_paid:0,sq_keywordtag:"",postID:0,prevNonce:"",user_url:"http://"+document.domain,research_language:"us",timeout_seo:null,timeout_search:null,timeout_research:null,sq_windowerror:false,interval_seo:null,calltimeout:5e3,delay_seo:500,cookie_expires:60*24*2,nrb:8,after_insert:'<div><br style="clear:both" /></div>',firsttime:false,manual:false,silent:false,briefcase:false,sq_cache:[],__noconnection:"To load Squirrly Live Assistant and optimize this page, click to connect to Squirrly Data Cloud.",__date:"date",__keyword:"Keyword",__sq_snippet:"Snippet",__saved:"Saved!",__readit:"Read it!",__insertit:"Insert it!",__reference:"Reference",__insertasbox:"Insert as box",__addlink:"Insert Link",__notrelevant:"Not relevant?",__insertparagraph:"Insert in your article",__ajaxerror:"An error occurred while processing your request. Please try again",__whitelist:"Make sure your site can access our API: https://api.squirrly.co",__nofound:"No results found!",__no_results:"No results found!",__sq_photo_copyright:"[ ATTRIBUTE: Please check: %s to find out how to attribute this image ]",__has_attributes:"Has creative commons attributes",__no_attributes:"No known copyright restrictions",__noopt:"You haven`t used Squirrly SEO to optimize your article. Do you want to optimize for a keyword before publishing?",__error:"No results found!",__subscription_expired:"Your Subscription has Expired..",__usekeyword:"Select",__upgrade_account:"Upgrade your account",__no_briefcase:"There are no keywords saved in briefcase yet",__fulloptimized:"Congratulations! Your article is 100% optimized!",__toomanytimes:"appears too many times. Try to remove %s of them",__writemorewords:"write %s more words",__keywordinintroduction:"Add the keyword in the %s of your article",__clicktohighlight:"Click to keep the highlight on",__introduction:"introduction",__morewordsafter:"Write more words after the %s keyword",__orusesynonyms:"or use synonyms",__addmorewords:"add %s more word(s)",__removewords:"or remove %s word(s)",__addmorekeywords:"add %s more keyword(s)",__addminimumwords:"write %s more words to start calculating",__new_post_title:"Auto Draft",__frontend_optimized:"You’ve already used the Live Assistant to optimize this post when creating it in your Page Builder. Please go back and resume your optimization work there.",__enter_keyword:"Enter keyword above and press ENTER",__add_keyword:"Add Keywords from Briefcase",__maintenance:"Unfortunately Squirrly Cloud is down for a bit of maintenance right now. But we'll be back in a minute."},$.sq_config);$.sq_params=$.extend({low_density:1,high_density:2.5,high_density_title:35,low_density_title:2.5,min_length_title:10,max_length_title:75,min_length_body:80,max_length_body:0,min_length_description:20,max_length_description:160,begin_last_max_chars:400,max_word_density:3,beginning_length:255,ending_length:255,min_words_between_keywords:70,min_chars_between_keywords:200,max_keywords:5},$.sq_params);$.sq_setfields=function(){$.sq_fields=$.extend({wp_title:$("#titlediv"),wp_input_title:$("#title"),wp_postimagediv:$("#postimagediv"),wp_content_wrap:$(".wp-editor-wrap"),wp_content:$(".wp-editor-area"),wp_publish:$("#publish"),wp_postarea:$(".postarea"),wp_thumbnail_alt:$("#attachment_alt"),wp_thumbnail:$(".wp_attachment_image"),content_html:$("#content-html"),content_tmce:$("#content-tmce"),content_html_wp3:$("#edButtonHTML"),content_tmce_wp3:$("#edButtonPreview"),sq_box:$.sq_config.div.find(".sq_box"),sq_preloading:$.sq_config.div.find("#sq_preloading"),sq_preloading_keyword:$.sq_config.div.find("#sq_preloading_keyword"),sq_errorloading:$.sq_config.div.find("#sq_errorloading"),div_blocksearch:$.sq_config.div.find("#sq_blocksearch"),div_blockseo:$.sq_config.div.find("#sq_blockseo"),div_blockbriefacse:$("#sq_briefcase"),div_blocksnippet:$("#sq_blocksnippet"),sq_blocktabs:$.sq_config.div.find("#sq_block_tabs"),sq_blocksteps:$.sq_config.div.find(".sq_block_steps"),sq_search:$.sq_config.div.find(".sq_search"),sq_search_img_filter:$.sq_config.div.find("#sq_search_img_filter"),sq_search_second:$.sq_config.div.find("#sq_search_second"),sq_keyword_second:$.sq_config.div.find("#sq_keyword_second"),sq_keyword_second_check:$.sq_config.div.find("#sq_keyword_second_check"),sq_briefcase_icon:$.sq_config.div.find("#sq_briefcase_icon"),sq_briefcase_list:$.sq_config.div.find("#sq_briefcase_list"),sq_research_link:$.sq_config.div.find("#sq_research_link"),sq_selectit:$.sq_config.div.find("#sq_selectit"),sq_types:$.sq_config.div.find("#sq_types"),sq_type_img:$.sq_config.div.find("#sq_type_img"),sq_type_twitter:$.sq_config.div.find("#sq_type_twitter"),sq_type_news:$.sq_config.div.find("#sq_type_news"),sq_type_blog:$.sq_config.div.find("#sq_type_blog"),sq_type_wiki:$.sq_config.div.find("#sq_type_wiki"),sq_type_local:$.sq_config.div.find("#sq_type_local"),sq_research:$("#sq_research"),sq_blog_preview:$('<div id="sq_blog_preview"><div id="sq_blog_preview_close" >x</div><div id="sq_blog_preview_title"></div><div id="sq_blog_preview_body"></div></div><div id="sq_blog_preview_overlay"></div>'),sq_search_img_nolicence:$("#sq_search_img_nolicence"),sq_keyword:$.sq_config.div.find("#sq_keyword"),sq_keyword_score:$.sq_config.div.find("#sq_keyword_score"),sq_keyword_check:$.sq_config.div.find("#sq_keyword_check"),sq_keywords_research:$("#sq_keywords_research"),sq_keywords_research_add:$(".sq_keywords_research_add"),sq_keywords_research_submit:$(".sq_keywords_research_submit"),sq_keywords_research_clear:$(".sq_keywords_research_clear"),sq_research_close:$("#sq_research_close")},$.sq_fields)};$.isDom=function(inp){return inp&&inp.tagName&&inp.nodeName&&inp.ownerDocument&&inp.removeAttribute};$.sq_isGutenberg=function(){if(typeof wp!=="undefined"&&typeof wp.data!=="undefined"&&typeof wp.data.select("core/editor")!=="undefined"&&typeof wp.blocks!=="undefined"){if(wp.data.select("core/editor")&&$.isFunction(wp.data.select("core/editor").getEditedPostAttribute)&&$(".block-editor").length>0){return true}}return false};$.sq_isDiviBuilder=function(){if($("#et_pb_layout:visible").length>0){return true}return false};$.sq_getBuilderEditorContainer=function(object){if($.sq_isGutenberg()){if($(".block-editor-block-list__layout.is-root-container").length>0){return $(".block-editor-block-list__layout.is-root-container")}}if($("#wpb_visual_composer .metabox-composer-content").length>0){return $("#wpb_visual_composer .metabox-composer-content")}if($("#elementor-preview-iframe").length>0){var $elementor=$("#elementor-preview-iframe").contents()[0];if($($elementor).find(".elementor-container").length>0){return $($elementor).find(".elementor-container")}if($($elementor).find(".elementor-inner").length>0){return $($elementor).find(".elementor-inner")}}if(typeof object!==false){return object}return $("<div></div>")};$.sq_isFrontend=function(){if($.sq_config.div.length>0&&$.sq_config.div.hasClass("sq_frontend")){return true}return false};$.sq_getDomain=function(url,ret,separator){var domainName="";if(typeof ret==="undefined"){var ret=[8,10]}if(typeof separator==="undefined"){var separator=""}url=url.split(/([a-z0-9_\-]{1,5}:\/\/)?(([a-z0-9_\-]{1,}):([a-z0-9_\-]{1,})\@)?((www\.)|([a-z0-9_\-]{1,}\.)+)?([a-z0-9_\-]{3,})((\.[a-z]{2,4})(:(\d{1,5}))?)(\/([a-z0-9_\-]{1,}\/)+)?([a-z0-9_\-]{1,})?(\.[a-z]{2,})?(\?)?(((\&)?[a-z0-9_\-]{1,}(\=[a-z0-9_\-]{1,})?)+)?/g);$.each(ret,function(key,val){if(typeof url[val]!=="undefined"){domainName=domainName+(domainName!==""?separator:"")+url[val]}});return domainName};if(!$.sq_showMessage)$.sq_showMessage=function(text,time){$(".sq_notice").hide();var $div=$('<div class="sq_notice sq_fixed" ><div>'+text+"</div></div>");$("body").prepend($div);if(typeof time==="undefined"){time=2e3}setTimeout(function(){$div.remove()},time);return $div.find("div")};if(!$.sq_getHashParam)$.sq_getHashParam=function(key){if(location.href.indexOf("#")!==-1&&location.href.indexOf("#"+key)!==-1&&window.location.href.split("#")[1]!==""){var results=new RegExp("[\\?&#]"+key+"=([^&#]*)").exec(window.location.href);if(results){return results[1]||0}else{var results=new RegExp("[\\?&#]"+key+"[^&#]*").exec(window.location.href);if(results){return"1"}}}return false};if(!$.sq_setHashParam)$.sq_setHashParam=function(key){var separator="";if(!$.sq_getHashParam(key)){if(location.href.indexOf("#")!==-1){if(location.href.split("#")[1]!=="")separator="&"}else{separator="#"}window.location.href=window.location.href+separator+key}return false};if(!$.sq_deleteHashParam)$.sq_deleteHashParam=function(key){if($.sq_getHashParam(key)){window.location.href=window.location.href.replace("&"+key,"")}if($.sq_getHashParam(key)){window.location.href=window.location.href.replace(key,"")}return false};$.sq_formatNumber=function(number){var x,x1,x2;number+="";x=number.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";var rgx=/(\d+)(\d{3})/;while(rgx.test(x1)){x1=x1.replace(rgx,"$1"+","+"$2")}return x1+x2};$.sq_clearText=function(str){if(typeof str!=="undefined"&&str.length>0){str=$.sq_clearDiacritics(str);str=$.sq_stripTags(str)}return str};$.sq_umlautsText=function(str){str=str.replace("ä","ae");str=str.replace("ö","oe");str=str.replace("ß","ss");str=str.replace("ü","ue");str=str.replace("æ","ae");str=str.replace("ø","oe");str=str.replace("å","aa");str=str.replace("é","e");str=str.replace("è","e");return str};$.sq_stripTags=function(str){if(typeof str!=="undefined"&&str.length>0){str=$("<div />").html(str).text()}return str};$.sq_stripShortcode=function(str){if(typeof str!=="undefined"&&str.length>0){str=str.replace(/\\[[^\\]]+\\]/g,"")}return str};$.sq_stripChars=function(str){if(typeof str!=="undefined"&&str.length>0){str=str.replace(/[-.\/]+/g," ");var pattern=$.sq_regex("[^\\p{L}\\d\\s]");if(pattern){str=str.replace(pattern,"")}str=str.replace(/\s{2,}/g," ");str=str.trim()}return str};$.sq_clearDiacritics=function(str){if(typeof sqDiacritics!=="undefined"&&typeof str=="string"){return sqDiacritics.clear(str)}return str};$.sq_getCookie=function(name){var nameEQ=name+"=";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" ")c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return decodeURIComponent(c.substring(nameEQ.length,c.length))}return null};$.sq_setCookie=function(name,value){value=value.replace(new RegExp("\\\\","g"),"");document.cookie=name+"="+encodeURIComponent(value)+"; expires="+$.sq_config.cookie_expires+"; path=/"};$.sq_uriEncode=function(url){return url.replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")};$.sq_getCache=function(name){if(typeof $.sq_config.sq_cache!=="undefined")if(typeof $.sq_config.sq_cache[name]!=="undefined")return $.sq_config.sq_cache[name];return""};$.sq_setCache=function(name,value){$.sq_config.sq_cache[name]=value};$.sq_strEqual=function(a,b){return typeof a==="string"&&typeof b==="string"?a.localeCompare(b,undefined,{sensitivity:"accent"})===0:a===b};$.sq_isArray=function(input){return typeof input==="object"&&input instanceof Array};$.sq_regex=function(striptag){if(typeof XRegExp!=="undefined"){return XRegExp(striptag,"gi")}return false};$.fn.sq_loading=function(name){var $this=this;if(typeof name==="undefined"){$this.sq_classname="sq_minloading"}else{$this.sq_classname=name}clearTimeout($.sq_loadprocess);$this.addClass($this.sq_classname);$this.frame=function(){$this.html('<span class="sq_error_message">'+$.sq_config.__ajaxerror+"</span>");$this.addClass("sq_error");$this.sq_doneloading()};$.sq_loadprocess=setTimeout($this.frame,1e4);return $this};$.fn.sq_doneloading=function(name){var $this=this;if(typeof name==="undefined"){name="sq_minloading"}clearTimeout($.sq_loadprocess);$this.removeClass(name);$this.find(".sq_error_message").remove();return $this};$.sq_checkin=function(){return $.getJSON($.sq_config.sq_apiurl+"api/user/checkin?callback=?",{user_url:$.sq_config.user_url,language:$.sq_config.language||"en-US",token:$.sq_config.token,url_token:$.sq_config.url_token,versq:$.sq_config.sq_version}).done(function(response){$.sq_fields.sq_box.show();$.sq_fields.sq_preloading.hide();$.sq_fields.sq_preloading_keyword.show();if(typeof response.error!=="undefined"){if(response.error==="invalid_token"){if($.isFunction($.sq_config.div.sq_floating)){$.sq_floating=$.sq_config.div.sq_floating([]);$.sq_floating.init()}var $message=$('<div class="sq_error_message" style="width: 100%;text-align: center;padding: 10px;"><a href="admin.php?page=sq_dashboard" style="color: #df3434;font-size: 13px;font-weight: 500;">'+$.sq_config.__noconnection+"</a></div>");var sq_header=$.sq_fields.sq_box.find(".sq_header");$.sq_fields.sq_box.html($message);$.sq_fields.sq_box.prepend(sq_header);$.sq_fields.sq_box.find(".sq_box_maximize").hide();$.sq_fields.sq_box.find(".sq_box_close").on("click",function(){$.sq_config.div.hide();$.sq_setCookie("sq_sla","off")});$.sq_config.div.show();setTimeout(function(){$.sq_config.div.hide()},5e3)}else if(response.error==="maintenance"){if($.isFunction($.sq_config.div.sq_floating)){$.sq_floating=$.sq_config.div.sq_floating([]);$.sq_floating.init()}var $message=$('<div class="sq_error_message" style="width: 100%;text-align: center;padding: 10px;font-size: 12px;">'+$.sq_config.__maintenance+"</div>");var sq_header=$.sq_fields.sq_box.find(".sq_header");$.sq_fields.sq_box.html($message);$.sq_fields.sq_box.prepend(sq_header);$.sq_fields.sq_box.find(".sq_box_maximize").hide();$.sq_fields.sq_box.find(".sq_box_close").on("click",function(){$.sq_config.div.hide();$.sq_setCookie("sq_sla","off")});$.sq_config.div.show();setTimeout(function(){$.sq_config.div.hide()},5e3)}}if(typeof response.data!=="undefined"){$.sq_config.subscription_paid=response.data.subscription_paid;$.sq_config.subscription_onetime=response.data.subscription_onetime;if(typeof response.data.subscription_status!=="undefined"){if(response.data.subscription_status==="expired"||response.data.subscription_status==="suspended"){$.sq_config.subscription_active=false;if(typeof response.data.subscription_error!=="undefined"){$.sq_fields.sq_box.prepend(response.data.subscription_error);return}}}var triggerLoadInterval=setInterval(function(){if($.sq_triggerLoad("seo.loaded")){clearInterval(triggerLoadInterval)}},500)}}).fail(function(){$.sq_fields.sq_box.show();$.sq_fields.sq_preloading.hide();$.sq_fields.sq_errorloading.show()})};$.sq_triggerLoad=function(message){if(typeof $.sq_blockbriefcase!=="undefined"&&typeof $.sq_blockseo!=="undefined"&&typeof $.sq_blocksearch!=="undefined"){$.sq_blockbriefcase.trigger(message);$.sq_blockseo.trigger(message);$.sq_blocksearch.trigger(message);$.sq_config.div.trigger(message);return true}else{return false}};$.sq_savePost=function(){var $sq_seo=[];$.sq_config.div.find('input[name="sq_seo[]"]').each(function(){$sq_seo.push(this.value)});if($.sq_blockbriefcase){$.sq_blockbriefcase.trigger("briefcase.save")}$.post(sqQuery.ajaxurl,{action:"sq_ajax_save_post",post_id:$.sq_config.postID,sq_keyword:$.sq_config.keyword,referer:"backend",sq_seo:$sq_seo,sq_nonce:sqQuery.nonce})};$.sq_editor={getIframeEditor:function(element){var $this=$("#wpcontent");if(typeof element==="undefined"){element="#tinymce"}if($.sq_isGutenberg()){if($this.find("#editor").find("div.edit-post-visual-editor").length>0){return $this.find("#editor").find("div.edit-post-visual-editor")}if($this.find("#editor").find("div.edit-post-text-editor__body").length>0){return $this.find("#editor").find("div.edit-post-text-editor__body")}}if($this.find("#post").length>0&&$this.find("#post").find("iframe").length>0){if($this.find(".mce-container").find("iframe").contents().find(element+".has-focus").length>0){return $(".mce-container").find("iframe").contents().find(element+".has-focus")}if($this.find(".mce-container").find("iframe").contents().find(element).length>0){return $this.find(".mce-container").find("iframe").contents().find(element)}if($this.find("#content_ifr").contents().find(element).length>0){return $this.find("#content_ifr").contents().find(element)}if($this.find(".cke_contents").find("iframe").contents().find("body").length>0){return $this.find(".cke_contents").find("iframe").contents().find("body")}if($this.find("#cke_wysiwyg_frame").contents().find("body").length>0){return $this.find("#cke_wysiwyg_frame").contents().find("body")}}return false},getTinymceEditor:function(ed){var editor;if(typeof ed!=="undefined"&&typeof ed==="object"){editor=ed;if(typeof editor.activeEditor==="object")editor=editor.activeEditor}else{if(typeof tinyMCE==="object"){editor=tinyMCE;if(typeof tinyMCE.get("content")!=="undefined"){editor=tinyMCE.get("content")}else{if(typeof tinyMCE.activeEditor==="object"&&tinyMCE.activeEditor!==null){editor=tinyMCE.activeEditor}else{if(document.getElementById("content")!==null){editor=new tinymce.Editor("content");editor.contentCSS=["/wp-content/plugins/squirrly-seo/themes/default/css/sq_frontend.css"]}}}}}return editor},getBlockEditor:function(action){if($.sq_isGutenberg()){if(action==="select"){var ed=window.wp.data.select("core/editor")}else{var ed=window.wp.data.dispatch("core/editor")}return ed}return false},getFrontendEditor:function(action){if($.sq_isFrontend()){if(typeof window.sq_editor!=="undefined"){return window.sq_editor}}return false},createEditorButton:function(name){if($.sq_isFrontend()&&$("."+name).length==0){$("body").append('<button type="button" aria-label="Squirrly SEO" aria-expanded="false" class="'+name+'"><i class="sq_logo" ></i></button>')}else if($.sq_isGutenberg()){if($(".edit-post-more-menu").length>0){$(".edit-post-more-menu").before('<button type="button" aria-label="Squirrly SEO" aria-expanded="false" class="components-button components-icon-button '+name+'"><i class="sq_logo" ></i></button>')}else if($(".interface-pinned-items").length>0){$(".interface-pinned-items").after('<button type="button" aria-label="Squirrly SEO" aria-expanded="false" class="sq-ml-2 components-button components-icon-button '+name+'"><i class="sq_logo" ></i></button>')}else if($(".edit-post-header__settings").length>0){$(".edit-post-header__settings").append('<button type="button" aria-label="Squirrly SEO" aria-expanded="false" class="components-button components-icon-button '+name+'"><i class="sq_logo" ></i></button>')}}else if($(".page-title-action").length>0){$(".page-title-action").after('<button type="button" aria-label="Squirrly SEO" aria-expanded="false" class="components-button components-icon-button '+name+'" style="display: inline-block;vertical-align: top;padding: 13px 0 0 15px;margin: 0;border: none;background: none;cursor: pointer;"><i class="sq_logo" ></i></button>')}},listenHtml:function(e){if(e.originalEvent.dataTransfer===null)return;var img=e.originalEvent.dataTransfer.getData("text");if($("#"+$(img).attr("id")).parent("li").attr("class")==="sq_search_img_li"){$.sq_fields.wp_content.val($.sq_fields.wp_content.val()+$.sq_blocksearch.packimg($(img).attr("id"),$("#"+$(img).attr("id")).parent("li").attr("src"),$("#"+$(img).attr("id")).parent("li")))}},listen:function(e){if($("#"+e.target.id).parent("li").attr("class")==="sq_search_img_li"){if($.sq_editor.lastimage!==$("#"+e.target.id).parent("li").attr("src")){$.sq_editor.insert($.sq_blocksearch.packimg(e.target.id,$("#"+e.target.id).parent("li").attr("src"),$("#"+e.target.id).parent("li")))}}$.sq_editor.lastimage=$("#"+e.target.id).parent("li").attr("src")},setContent:function(content,ed){if($.sq_config.editor_type==="tinymce"){var editor=$.sq_editor.getTinymceEditor(ed);if(typeof editor!=="undefined"){editor.setContent(content)}}},insert:function(content,ed){if($.sq_isDiviBuilder()||$.sq_isFrontend()){var input=document.createElement("textarea");document.body.prepend(input);input.value=content;input.focus();input.select();try{document.execCommand("copy");alert("We've copied the code and you can paste it in the Page Builder.")}catch(e){alert("You can copy the box and paste it in the Page Builder")}input.remove();if($(".edit-post-layout__content").length>0){$(".edit-post-layout__content").animate({scrollTop:$(".edit-post-layout__content").scrollTop()+$("#et_pb_layout").offset().top-50},"slow")}else{$("html,body").animate({scrollTop:$("#et_pb_layout").offset().top-50},"slow")}}else if($("#wpb_visual_composer:visible").length>0){var input=document.createElement("textarea");document.body.prepend(input);input.value=content;input.focus();input.select();try{document.execCommand("copy");alert("Visual Composer detected. We've copied the code and you can paste it in Visual Composer Editor.")}catch(e){alert("Visual Composer detected. You can copy the box and paste it in Visual Composer")}input.remove();if($(".edit-post-layout__content").length>0){$(".edit-post-layout__content").animate({scrollTop:$(".edit-post-layout__content").scrollTop()+$("#wpb_visual_composer").offset().top-50},"slow")}else{$("html,body").animate({scrollTop:$("#wpb_visual_composer").offset().top-50},"slow")}}else if($("#elementor-switch-mode-input").length>0&&$("#elementor-switch-mode-input").val()=="builder"){var input=document.createElement("textarea");document.body.appendChild(input);input.value=content;input.focus();input.select();try{document.execCommand("copy");alert("Elementor is detected. We've copied the code and you can paste it in Elementor Text Editor.")}catch(e){alert("Elementor detected. You can copy the box and paste it in Elementor Text Editor")}input.remove()}else if($("div.wp-editor-container").find("div.cs-editor-container.pro").length>0){var input=document.createElement("textarea");document.body.appendChild(input);input.value=content;input.focus();input.select();try{document.execCommand("copy");alert("Themeco PRO is detected. We've copied the code and you can paste it in Themeco PRO Text Editor.")}catch(e){alert("Themeco PRO detected. You can copy the box and paste it in Themeco PRO Text Editor")}input.remove()}else if($.sq_config.editor_type==="tinymce"){if(typeof tinyMCE==="object"){var editor=tinyMCE;if(typeof editor.activeEditor==="object"){editor=editor.activeEditor}}if(typeof editor!=="undefined"&&editor!==null){if(typeof editor.selection!=="undefined"){editor.selection.setContent(content)}else{editor.setContent(content)}$.sq_blockseo.callback()}}else{$.sq_fields.wp_content.val($.sq_fields.wp_content.val().substr(0,$.sq_fields.wp_content[0].selectionStart)+content+$.sq_fields.wp_content.val().substr($.sq_fields.wp_content[0].selectionEnd));$.sq_blockseo.callback()}}};$.sq_tinymce={callback:function(ed){if(ed.id!=="content")return false;var editor=$.sq_editor.getTinymceEditor(ed);if(typeof editor!=="undefined"&&typeof $.sq_blockseo==="object"){if($.sq_config.editor_type==="tinymce"){$.sq_blockseo.callback()}}},setup:function(ed){},addEvents:function(ed,dom){if(typeof $.sq_blockseo!=="undefined"&&typeof $.sq_editor==="object"&&!$.isDom($.sq_editor)){if($.sq_config.active_editor=$.sq_editor.getIframeEditor()){$.sq_blockseo.callback()}}}};$.fn.sq_main=function(){var $this=this;$this.load=function(){$.sq_setfields();$.sq_initialize();$.sq_loadtabs();$.sq_highlight=function(element,text,params){var options=$.extend({element:"mark","acrossElements ":1,ignoreJoiners:1,diacritics:false,separateWordSearch:false,caseSensitive:false,accuracy:{value:"exactly",limiters:["`","~","!","@","#","$","%","^","&","*","(",")","-","_","=","+","{","}","[","]","\\","|",":",";","'",'"',",",".","<",">","/","?","“","”"]},ignorePunctuation:[" ",",","`","~","!","@","#","$","%","^","*","(",")","-","_","=","+","{","}","[","]","\\","|",":",";","'",'"',"<",">","/","?"],counter:1},params);if(typeof element!=="undefined"&&$.isFunction(element.sq_unmark)){if(typeof options.range!=="undefined"){element.sq_unmark({done:function(){element.sq_markRanges(options.range,options)}})}else{element.sq_unmark({done:function(){element.sq_mark(text,options)}})}}};$.sq_removeHighlight=function(element){if(typeof element!=="undefined"&&$.isFunction(element.sq_unmark)&&!$.sq_isDiviBuilder()){element.sq_unmark()}};if($.sq_config.div.length>0){if($.isFunction($.sq_fields.sq_briefcase_list.sq_briefcase)){$.sq_blockbriefcase=$.sq_fields.sq_briefcase_list.sq_briefcase([])}if($.isFunction($.sq_config.div.sq_frontend)){$.sq_frontend=$.sq_config.div.sq_frontend([])}if($.sq_fields.div_blockseo.length>0&&$.isFunction($.sq_fields.div_blockseo.sq_blockseo)){$.sq_blockseo=$.sq_fields.div_blockseo.sq_blockseo([])}if($.sq_fields.div_blocksearch.length>0&&$.isFunction($.sq_fields.div_blocksearch.sq_blocksearch)){$.sq_blocksearch=$.sq_fields.div_blocksearch.sq_blocksearch([])}if($.isFunction($.sq_config.div.sq_floating)){$.sq_floating=$.sq_config.div.sq_floating([]);$.sq_floating.init()}else{$.sq_config.div.show()}}$.sq_checkin()};return $this};$.sq_initialize=function(){$.sq_config.__no_results='<span class="sq_show_mgs">'+$.sq_config.__nofound+"</span>";$.sq_initialized=true};$.sq_loadtabs=function(){$.sq_fields.sq_blocktabs.find("div").on("click",function(){$.sq_fields.sq_selectit.trigger("click");$.sq_fields.sq_blocktabs.find("div").removeClass("sq_active");$(this).addClass("sq_active");$(".sq_block_steps").hide();$($(this).data("target")).show()});$.sq_fields.sq_blocksteps.find(".sq_nextstep").on("click",function(){$('.sq_block_tab[data-target="'+$(this).data("target")+'"]').trigger("click")})}}$(document).ready(function(){if(!$.sq_initialized){if($.sq_config.div.length>0){$.sq_config.div.sq_main().load()}}});if($.sq_config.sq_windowerror){if(!$.sq_initialized){if($.sq_config.div.length>0){$.sq_config.div.sq_main().load()}}}window.onerror=function(){$.sq_config.sq_windowerror=true}})(jQuery);
|
1 |
+
if(typeof SQ_DEBUG==="undefined"){var SQ_DEBUG=false}(function($){"use strict";if($.isFunction($.fn.sq_main)||typeof $.sq_config==="undefined"){return}$.sq_initialized=false;$.sq_setConfig=function(){$.sq_config=$.extend({div:$("#postsquirrly"),editor:false,editor_type:false,active_editor:false,token:"",url_token:"",sq_apiurl:"//api.squirrly.co/v2/",ajaxurl:"",sq_nonce:"",sq_version:"",is_gutenberg:0,referer:"",keyword:"",lsi:[],language:"en-US",subscription_active:1,subscription_paid:0,sq_keywordtag:"",postID:0,prevNonce:"",user_url:"http://"+document.domain,research_language:"us",timeout_seo:null,timeout_search:null,timeout_research:null,sq_windowerror:false,interval_seo:null,calltimeout:5e3,delay_seo:500,cookie_expires:60*24*2,nrb:8,after_insert:'<div><br style="clear:both" /></div>',firsttime:false,manual:false,silent:false,briefcase:false,sq_cache:[]},$.sq_config)};$.sq_setParams=function(){$.sq_params=$.extend({low_density:1,high_density:2.5,high_density_title:35,low_density_title:2.5,min_length_title:10,max_length_title:75,min_length_body:80,max_length_body:0,min_length_description:20,max_length_description:160,begin_last_max_chars:400,max_word_density:3,beginning_length:255,ending_length:255,min_words_between_keywords:70,min_chars_between_keywords:200,max_keywords:5},$.sq_params)};$.sq_setfields=function(){$.sq_fields=$.extend({wp_title:$("#titlediv"),wp_input_title:$("#title"),wp_postimagediv:$("#postimagediv"),wp_content_wrap:$(".wp-editor-wrap"),wp_content:$(".wp-editor-area"),wp_publish:$("#publish"),wp_postarea:$(".postarea"),wp_thumbnail_alt:$("#attachment_alt"),wp_thumbnail:$(".wp_attachment_image"),content_html:$("#content-html"),content_tmce:$("#content-tmce"),content_html_wp3:$("#edButtonHTML"),content_tmce_wp3:$("#edButtonPreview"),sq_box:$.sq_config.div.find(".sq_box"),sq_preloading:$.sq_config.div.find("#sq_preloading"),sq_preloading_keyword:$.sq_config.div.find("#sq_preloading_keyword"),sq_errorloading:$.sq_config.div.find("#sq_errorloading"),div_blocksearch:$.sq_config.div.find("#sq_blocksearch"),div_blockseo:$.sq_config.div.find("#sq_blockseo"),div_blockbriefacse:$("#sq_briefcase"),div_blocksnippet:$("#sq_blocksnippet"),sq_blocktabs:$.sq_config.div.find("#sq_block_tabs"),sq_blocksteps:$.sq_config.div.find(".sq_block_steps"),sq_search:$.sq_config.div.find(".sq_search"),sq_search_img_filter:$.sq_config.div.find("#sq_search_img_filter"),sq_search_second:$.sq_config.div.find("#sq_search_second"),sq_keyword_second:$.sq_config.div.find("#sq_keyword_second"),sq_keyword_second_check:$.sq_config.div.find("#sq_keyword_second_check"),sq_briefcase_icon:$.sq_config.div.find("#sq_briefcase_icon"),sq_briefcase_list:$.sq_config.div.find("#sq_briefcase_list"),sq_research_link:$.sq_config.div.find("#sq_research_link"),sq_selectit:$.sq_config.div.find("#sq_selectit"),sq_types:$.sq_config.div.find("#sq_types"),sq_type_img:$.sq_config.div.find("#sq_type_img"),sq_type_twitter:$.sq_config.div.find("#sq_type_twitter"),sq_type_news:$.sq_config.div.find("#sq_type_news"),sq_type_blog:$.sq_config.div.find("#sq_type_blog"),sq_type_wiki:$.sq_config.div.find("#sq_type_wiki"),sq_type_local:$.sq_config.div.find("#sq_type_local"),sq_research:$("#sq_research"),sq_blog_preview:$('<div id="sq_blog_preview"><div id="sq_blog_preview_close" >x</div><div id="sq_blog_preview_title"></div><div id="sq_blog_preview_body"></div></div><div id="sq_blog_preview_overlay"></div>'),sq_search_img_nolicence:$("#sq_search_img_nolicence"),sq_keyword:$.sq_config.div.find("#sq_keyword"),sq_keyword_score:$.sq_config.div.find("#sq_keyword_score"),sq_keyword_check:$.sq_config.div.find("#sq_keyword_check"),sq_keywords_research:$("#sq_keywords_research"),sq_keywords_research_add:$(".sq_keywords_research_add"),sq_keywords_research_submit:$(".sq_keywords_research_submit"),sq_keywords_research_clear:$(".sq_keywords_research_clear"),sq_research_close:$("#sq_research_close")},$.sq_fields)};$.isDom=function(inp){return inp&&inp.tagName&&inp.nodeName&&inp.ownerDocument&&inp.removeAttribute};$.sq_isGutenberg=function(){if(typeof wp!=="undefined"&&typeof wp.data!=="undefined"&&typeof wp.data.select("core/editor")!=="undefined"&&typeof wp.blocks!=="undefined"){if(wp.data.select("core/editor")&&$.isFunction(wp.data.select("core/editor").getEditedPostAttribute)&&$(".block-editor").length>0){return true}}return false};$.sq_isDiviBuilder=function(){if($("#et_pb_layout:visible").length>0){return true}return false};$.sq_getBuilderEditorContainer=function(){if($.sq_isGutenberg()){if($(".block-editor-block-list__layout.is-root-container").length>0){return $(".block-editor-block-list__layout.is-root-container")}}else if($.sq_isFrontend()){if($.sq_editor.getFrontendEditor()&&$.sq_editor.getFrontendEditor().getBuilderContainer()){return $.sq_editor.getFrontendEditor().getBuilderContainer()}}else if($.sq_config.active_editor){return $.sq_config.active_editor}return $("<div></div>")};$.sq_isFrontend=function(){if($.sq_config.div.length>0&&$.sq_config.div.hasClass("sq_frontend")){return true}return false};$.sq_getDomain=function(url,ret,separator){var domainName="";if(typeof ret==="undefined"){var ret=[8,10]}if(typeof separator==="undefined"){var separator=""}url=url.split(/([a-z0-9_\-]{1,5}:\/\/)?(([a-z0-9_\-]{1,}):([a-z0-9_\-]{1,})\@)?((www\.)|([a-z0-9_\-]{1,}\.)+)?([a-z0-9_\-]{3,})((\.[a-z]{2,4})(:(\d{1,5}))?)(\/([a-z0-9_\-]{1,}\/)+)?([a-z0-9_\-]{1,})?(\.[a-z]{2,})?(\?)?(((\&)?[a-z0-9_\-]{1,}(\=[a-z0-9_\-]{1,})?)+)?/g);$.each(ret,function(key,val){if(typeof url[val]!=="undefined"){domainName=domainName+(domainName!==""?separator:"")+url[val]}});return domainName};if(!$.sq_showMessage)$.sq_showMessage=function(text,time){$(".sq_notice").hide();var $div=$('<div class="sq_notice sq_fixed" ><div>'+text+"</div></div>");$("body").prepend($div);if(typeof time==="undefined"){time=2e3}setTimeout(function(){$div.remove()},time);return $div.find("div")};if(!$.sq_getHashParam)$.sq_getHashParam=function(key){if(location.href.indexOf("#")!==-1&&location.href.indexOf("#"+key)!==-1&&window.location.href.split("#")[1]!==""){var results=new RegExp("[\\?&#]"+key+"=([^&#]*)").exec(window.location.href);if(results){return results[1]||0}else{var results=new RegExp("[\\?&#]"+key+"[^&#]*").exec(window.location.href);if(results){return"1"}}}return false};if(!$.sq_setHashParam)$.sq_setHashParam=function(key){var separator="";if(!$.sq_getHashParam(key)){if(location.href.indexOf("#")!==-1){if(location.href.split("#")[1]!=="")separator="&"}else{separator="#"}window.location.href=window.location.href+separator+key}return false};if(!$.sq_deleteHashParam)$.sq_deleteHashParam=function(key){if($.sq_getHashParam(key)){window.location.href=window.location.href.replace("&"+key,"")}if($.sq_getHashParam(key)){window.location.href=window.location.href.replace(key,"")}return false};$.sq_formatNumber=function(number){var x,x1,x2;number+="";x=number.split(".");x1=x[0];x2=x.length>1?"."+x[1]:"";var rgx=/(\d+)(\d{3})/;while(rgx.test(x1)){x1=x1.replace(rgx,"$1"+","+"$2")}return x1+x2};$.sq_clearText=function(str){if(typeof str!=="undefined"&&str.length>0){str=$.sq_clearDiacritics(str);str=$.sq_stripTags(str)}return str};$.sq_umlautsText=function(str){str=str.replace("ä","ae");str=str.replace("ö","oe");str=str.replace("ß","ss");str=str.replace("ü","ue");str=str.replace("æ","ae");str=str.replace("ø","oe");str=str.replace("å","aa");str=str.replace("é","e");str=str.replace("è","e");return str};$.sq_stripTags=function(str){if(typeof str!=="undefined"&&str.length>0){str=$("<div />").html(str).text()}return str};$.sq_stripShortcode=function(str){if(typeof str!=="undefined"&&str.length>0){str=str.replace(/\\[[^\\]]+\\]/g,"")}return str};$.sq_stripChars=function(str){if(typeof str!=="undefined"&&str.length>0){str=str.replace(/[-.\/]+/g," ");var pattern=$.sq_regex("[^\\p{L}\\d\\s]");if(pattern){str=str.replace(pattern,"")}str=str.replace(/\s{2,}/g," ");str=str.trim()}return str};$.sq_clearDiacritics=function(str){if(typeof sqDiacritics!=="undefined"&&typeof str=="string"){return sqDiacritics.clear(str)}return str};$.sq_getCookie=function(name){var nameEQ=name+"=";var ca=document.cookie.split(";");for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==" ")c=c.substring(1,c.length);if(c.indexOf(nameEQ)==0)return decodeURIComponent(c.substring(nameEQ.length,c.length))}return null};$.sq_setCookie=function(name,value){value=value.replace(new RegExp("\\\\","g"),"");document.cookie=name+"="+encodeURIComponent(value)+"; expires="+$.sq_config.cookie_expires+"; path=/"};$.sq_uriEncode=function(url){return url.replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29")};$.sq_getCache=function(name){if(typeof $.sq_config.sq_cache!=="undefined")if(typeof $.sq_config.sq_cache[name]!=="undefined")return $.sq_config.sq_cache[name];return""};$.sq_setCache=function(name,value){if(typeof name!=="undefined"&&typeof $.sq_config.sq_cache!=="undefined"){$.sq_config.sq_cache[name]=value}};$.sq_strEqual=function(a,b){return typeof a==="string"&&typeof b==="string"?a.localeCompare(b,undefined,{sensitivity:"accent"})===0:a===b};$.sq_isArray=function(input){return typeof input==="object"&&input instanceof Array};$.sq_regex=function(striptag){if(typeof XRegExp!=="undefined"){return XRegExp(striptag,"gi")}return false};$.fn.sq_loading=function(name){var $this=this;if(typeof name==="undefined"){$this.sq_classname="sq_minloading"}else{$this.sq_classname=name}clearTimeout($.sq_loadprocess);$this.addClass($this.sq_classname);$this.frame=function(){$this.html('<span class="sq_error_message">'+$.sq_config.__ajaxerror+"</span>");$this.addClass("sq_error");$this.sq_doneloading()};$.sq_loadprocess=setTimeout($this.frame,1e4);return $this};$.fn.sq_doneloading=function(name){var $this=this;if(typeof name==="undefined"){name="sq_minloading"}clearTimeout($.sq_loadprocess);$this.removeClass(name);$this.find(".sq_error_message").remove();return $this};$.sq_checkin=function(){return $.post($.sq_config.ajaxurl,{action:"sla_checkin",sq_nonce:$.sq_config.sq_nonce,output:"json"}).done(function(response){$.sq_fields.sq_box.show();$.sq_fields.sq_preloading.hide();$.sq_fields.sq_preloading_keyword.show();if(typeof response.error!=="undefined"){if(response.error==="invalid_token"){if($.isFunction($.sq_config.div.sq_floating)){$.sq_floating=$.sq_config.div.sq_floating([]);$.sq_floating.init()}var $message=$('<div class="sq_error_message" style="width: 100%;text-align: center;padding: 10px;"><a href="admin.php?page=sq_dashboard" style="color: #df3434;font-size: 13px;font-weight: 500;">'+$.sq_config.__noconnection+"</a></div>");var sq_header=$.sq_fields.sq_box.find(".sq_header");$.sq_fields.sq_box.html($message);$.sq_fields.sq_box.prepend(sq_header);$.sq_fields.sq_box.find(".sq_box_maximize").hide();$.sq_fields.sq_box.find(".sq_box_close").on("click",function(){$.sq_config.div.hide();$.sq_setCookie("sq_sla","off")});$.sq_config.div.show();setTimeout(function(){$.sq_config.div.hide()},5e3)}else if(response.error==="maintenance"){if($.isFunction($.sq_config.div.sq_floating)){$.sq_floating=$.sq_config.div.sq_floating([]);$.sq_floating.init()}var $message=$('<div class="sq_error_message" style="width: 100%;text-align: center;padding: 10px;font-size: 12px;">'+$.sq_config.__maintenance+"</div>");var sq_header=$.sq_fields.sq_box.find(".sq_header");$.sq_fields.sq_box.html($message);$.sq_fields.sq_box.prepend(sq_header);$.sq_fields.sq_box.find(".sq_box_maximize").hide();$.sq_fields.sq_box.find(".sq_box_close").on("click",function(){$.sq_config.div.hide();$.sq_setCookie("sq_sla","off")});$.sq_config.div.show();setTimeout(function(){$.sq_config.div.hide()},5e3)}}if(typeof response.data!=="undefined"){var triggerLoadInterval=setInterval(function(){if($.sq_triggerLoad("seo.loaded")){clearInterval(triggerLoadInterval)}},1e3)}}).fail(function(){$.sq_fields.sq_box.show();$.sq_fields.sq_preloading.hide();$.sq_fields.sq_errorloading.show()})};$.sq_triggerLoad=function(message){if(typeof $.sq_blockbriefcase!=="undefined"&&typeof $.sq_blockseo!=="undefined"&&typeof $.sq_blocksearch!=="undefined"){$.sq_blockbriefcase.trigger(message);$.sq_blockseo.trigger(message);$.sq_blocksearch.trigger(message);$.sq_config.div.trigger(message);return true}else{return false}};$.sq_savePost=function(){var $sq_seo=[];$.sq_config.div.find('input[name="sq_seo[]"]').each(function(){$sq_seo.push(this.value)});if($.sq_blockbriefcase){$.sq_blockbriefcase.trigger("briefcase.save")}$.post($.sq_config.ajaxurl,{action:"sq_ajax_save_post",sq_nonce:$.sq_config.sq_nonce,post_id:$.sq_config.postID,sq_keyword:$.sq_config.keyword,referer:"backend",sq_seo:$sq_seo})};$.sq_editor={getIframeEditor:function(element){var $this=$("#wpcontent");if(typeof element==="undefined"){element="#tinymce"}if($.sq_isGutenberg()){if($this.find("#editor").find("div.edit-post-visual-editor").length>0){return $this.find("#editor").find("div.edit-post-visual-editor")}if($this.find("#editor").find("div.edit-post-text-editor__body").length>0){return $this.find("#editor").find("div.edit-post-text-editor__body")}}if($this.find("#post").length>0&&$this.find("#post").find("iframe").length>0){if($this.find(".mce-container").find("iframe").contents().find(element+".has-focus").length>0){return $(".mce-container").find("iframe").contents().find(element+".has-focus")}if($this.find(".mce-container").find("iframe").contents().find(element).length>0){return $this.find(".mce-container").find("iframe").contents().find(element)}if($this.find("#content_ifr").contents().find(element).length>0){return $this.find("#content_ifr").contents().find(element)}if($this.find(".cke_contents").find("iframe").contents().find("body").length>0){return $this.find(".cke_contents").find("iframe").contents().find("body")}if($this.find("#cke_wysiwyg_frame").contents().find("body").length>0){return $this.find("#cke_wysiwyg_frame").contents().find("body")}}return false},getTinymceEditor:function(ed){var editor;if(typeof ed!=="undefined"&&typeof ed==="object"){editor=ed;if(typeof editor.activeEditor==="object")editor=editor.activeEditor}else{if(typeof tinyMCE==="object"){editor=tinyMCE;if(typeof tinyMCE.get("content")!=="undefined"){editor=tinyMCE.get("content")}else{if(typeof tinyMCE.activeEditor==="object"&&tinyMCE.activeEditor!==null){editor=tinyMCE.activeEditor}else{if(document.getElementById("content")!==null){editor=new tinymce.Editor("content");editor.contentCSS=["/wp-content/plugins/squirrly-seo/themes/default/css/sq_frontend.css"]}}}}}return editor},getBlockEditor:function(action){if($.sq_isGutenberg()){if(action==="select"){var ed=window.wp.data.select("core/editor")}else{var ed=window.wp.data.dispatch("core/editor")}return ed}return false},getFrontendEditor:function(action){if($.sq_isFrontend()){if(typeof window.sq_editor!=="undefined"){return window.sq_editor}}return false},createEditorButton:function(name){if($.sq_isFrontend()&&$("."+name).length==0){$("body").append('<button type="button" class="'+name+'"><i class="sq_logo" ></i></button>')}else if($.sq_isGutenberg()){if($(".edit-post-more-menu").length>0){$(".edit-post-more-menu").before('<button type="button" aria-label="Squirrly SEO" aria-expanded="false" class="components-button components-icon-button '+name+'"><i class="sq_logo" ></i></button>')}else if($(".interface-pinned-items").length>0){$(".interface-pinned-items").after('<button type="button" aria-label="Squirrly SEO" aria-expanded="false" class="sq-ml-2 components-button components-icon-button '+name+'"><i class="sq_logo" ></i></button>')}else if($(".edit-post-header__settings").length>0){$(".edit-post-header__settings").append('<button type="button" aria-label="Squirrly SEO" aria-expanded="false" class="components-button components-icon-button '+name+'"><i class="sq_logo" ></i></button>')}}else{$("body").append('<button type="button" class="'+name+'"><i class="sq_logo" ></i></button>')}},listenHtml:function(e){if(e.originalEvent.dataTransfer===null)return;var img=e.originalEvent.dataTransfer.getData("text");if($("#"+$(img).attr("id")).parent("li").attr("class")==="sq_search_img_li"){$.sq_fields.wp_content.val($.sq_fields.wp_content.val()+$.sq_blocksearch.packimg($(img).attr("id"),$("#"+$(img).attr("id")).parent("li").attr("src"),$("#"+$(img).attr("id")).parent("li")))}},listen:function(e){if($("#"+e.target.id).parent("li").attr("class")==="sq_search_img_li"){if($.sq_editor.lastimage!==$("#"+e.target.id).parent("li").attr("src")){$.sq_editor.insert($.sq_blocksearch.packimg(e.target.id,$("#"+e.target.id).parent("li").attr("src"),$("#"+e.target.id).parent("li")))}}$.sq_editor.lastimage=$("#"+e.target.id).parent("li").attr("src")},setContent:function(content,ed){if($.sq_config.editor_type==="tinymce"){var editor=$.sq_editor.getTinymceEditor(ed);if(typeof editor!=="undefined"){editor.setContent(content)}}},insert:function(content,ed){if($.sq_isDiviBuilder()||$.sq_isFrontend()){var input=document.createElement("textarea");document.body.prepend(input);input.value=content;input.focus();input.select();try{document.execCommand("copy");alert("We've copied the code and you can paste it in the Page Builder.")}catch(e){alert("You can copy the box and paste it in the Page Builder")}input.remove();if($(".edit-post-layout__content").length>0){$(".edit-post-layout__content").animate({scrollTop:$(".edit-post-layout__content").scrollTop()+$("#et_pb_layout").offset().top-50},"slow")}else{$("html,body").animate({scrollTop:$("#et_pb_layout").offset().top-50},"slow")}}else if($("#wpb_visual_composer:visible").length>0){var input=document.createElement("textarea");document.body.prepend(input);input.value=content;input.focus();input.select();try{document.execCommand("copy");alert("Visual Composer detected. We've copied the code and you can paste it in Visual Composer Editor.")}catch(e){alert("Visual Composer detected. You can copy the box and paste it in Visual Composer")}input.remove();if($(".edit-post-layout__content").length>0){$(".edit-post-layout__content").animate({scrollTop:$(".edit-post-layout__content").scrollTop()+$("#wpb_visual_composer").offset().top-50},"slow")}else{$("html,body").animate({scrollTop:$("#wpb_visual_composer").offset().top-50},"slow")}}else if($("#elementor-switch-mode-input").length>0&&$("#elementor-switch-mode-input").val()=="builder"){var input=document.createElement("textarea");document.body.appendChild(input);input.value=content;input.focus();input.select();try{document.execCommand("copy");alert("Elementor is detected. We've copied the code and you can paste it in Elementor Text Editor.")}catch(e){alert("Elementor detected. You can copy the box and paste it in Elementor Text Editor")}input.remove()}else if($("div.wp-editor-container").find("div.cs-editor-container.pro").length>0){var input=document.createElement("textarea");document.body.appendChild(input);input.value=content;input.focus();input.select();try{document.execCommand("copy");alert("Themeco PRO is detected. We've copied the code and you can paste it in Themeco PRO Text Editor.")}catch(e){alert("Themeco PRO detected. You can copy the box and paste it in Themeco PRO Text Editor")}input.remove()}else if($.sq_config.editor_type==="tinymce"){if(typeof tinyMCE==="object"){var editor=tinyMCE;if(typeof editor.activeEditor==="object"){editor=editor.activeEditor}}if(typeof editor!=="undefined"&&editor!==null){if(typeof editor.selection!=="undefined"){editor.selection.setContent(content)}else{editor.setContent(content)}$.sq_blockseo.callback()}}else{$.sq_fields.wp_content.val($.sq_fields.wp_content.val().substr(0,$.sq_fields.wp_content[0].selectionStart)+content+$.sq_fields.wp_content.val().substr($.sq_fields.wp_content[0].selectionEnd));$.sq_blockseo.callback()}}};$.sq_tinymce={callback:function(ed){if(ed.id!=="content")return false;var editor=$.sq_editor.getTinymceEditor(ed);if(typeof editor!=="undefined"&&typeof $.sq_blockseo==="object"){if($.sq_config.editor_type==="tinymce"){$.sq_blockseo.callback()}}},setup:function(ed){},addEvents:function(ed,dom){if(typeof $.sq_blockseo!=="undefined"&&typeof $.sq_editor==="object"&&!$.isDom($.sq_editor)){if($.sq_config.active_editor=$.sq_editor.getIframeEditor()){$.sq_blockseo.callback()}}}};$.fn.sq_main=function(){var $this=this;$this.load=function(){$.sq_setfields();$.sq_setParams();$.sq_initialized=true;$.sq_loadtabs();$.sq_highlight=function(element,text,params){var options=$.extend({element:"mark","acrossElements ":1,ignoreJoiners:1,diacritics:false,separateWordSearch:false,caseSensitive:false,accuracy:{value:"exactly",limiters:["`","~","!","@","#","$","%","^","&","*","(",")","-","_","=","+","{","}","[","]","\\","|",":",";","'",'"',",",".","<",">","/","?","“","”"]},ignorePunctuation:[" ",",","`","~","!","@","#","$","%","^","*","(",")","-","_","=","+","{","}","[","]","\\","|",":",";","'",'"',"<",">","/","?"],counter:1},params);if(typeof element!=="undefined"&&element.html()!==""&&$.isFunction(element.sq_unmark)){if(typeof options.range!=="undefined"){element.sq_unmark({done:function(){element.sq_markRanges(options.range,options)}})}else{element.sq_unmark({done:function(){element.sq_mark(text,options)}})}}};$.sq_removeHighlight=function(element){if(typeof element!=="undefined"&&$.isFunction(element.sq_unmark)&&!$.sq_isDiviBuilder()){element.sq_unmark()}};if($.isFunction($.sq_fields.sq_briefcase_list.sq_briefcase)){$.sq_blockbriefcase=$.sq_fields.sq_briefcase_list.sq_briefcase([])}if($.isFunction($.sq_config.div.sq_frontend)){$.sq_frontend=$.sq_config.div.sq_frontend([])}if($.sq_fields.div_blockseo.length>0&&$.isFunction($.sq_fields.div_blockseo.sq_blockseo)){$.sq_blockseo=$.sq_fields.div_blockseo.sq_blockseo([])}if($.sq_fields.div_blocksearch.length>0&&$.isFunction($.sq_fields.div_blocksearch.sq_blocksearch)){$.sq_blocksearch=$.sq_fields.div_blocksearch.sq_blocksearch([])}if($.isFunction($.sq_config.div.sq_floating)){$.sq_floating=$.sq_config.div.sq_floating([]);$.sq_floating.init()}else{$.sq_config.div.show()}$.sq_checkin()};return $this};$.sq_loadtabs=function(){$.sq_fields.sq_blocktabs.find("div").on("click",function(){$.sq_fields.sq_selectit.trigger("click");$.sq_fields.sq_blocktabs.find("div").removeClass("sq_active");$(this).addClass("sq_active");$(".sq_block_steps").hide();$($(this).data("target")).show()});$.sq_fields.sq_blocksteps.find(".sq_nextstep").on("click",function(){$('.sq_block_tab[data-target="'+$(this).data("target")+'"]').trigger("click")})};$(document).ready(function(){$.sq_setConfig();if(typeof $.sq_config.div!=="undefined"&&!$.sq_initialized&&$.sq_config.div.length>0){$.sq_config.div.sq_main().load()}});window.onerror=function(){if(typeof $.sq_config.div==="undefined"){$.sq_setConfig();if(typeof $.sq_config.div!=="undefined"&&!$.sq_initialized&&$.sq_config.div.length>0){$.sq_config.div.sq_main().load()}}}})(jQuery);
|
view/assets/js/briefcase.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
if(typeof SQ_DEBUG==="undefined")var SQ_DEBUG=false;(function($){"use strict";var briefcaseTable;var briefcaseLabelTable;var suggestTable;$.fn.sq_Briefcase=function(){var $this=this;var $popupAddKeyword=$this.find(".sq_add_keyword_dialog");var $popupAddLabel=$this.find(".sq_add_labels_dialog");var $popupEditLabel=$this.find(".sq_edit_label_dialog");$this.listenAdd=function(){$popupAddLabel.find("#sq_labelcolor").wpColorPicker();$popupAddLabel.find("#sq_save_label").on("click",function(){var $button=$(this);var $name=$popupAddLabel.find("input#sq_labelname").val();var $color=$popupAddLabel.find("input#sq_labelcolor").val();$button.addClass("sq_minloading");$.post(sqQuery.ajaxurl,{action:"sq_briefcase_addlabel",name:$name,color:$color,sq_nonce:sqQuery.nonce}).done(function(response){if(typeof response.saved!=="undefined"){location.reload();$button.removeClass("sq_minloading")}else if(typeof response.error!=="undefined"){$button.removeClass("sq_minloading");$.sq_showMessage(response.error).addClass("sq_error")}}).fail(function(){$button.removeClass("sq_minloading")},"json")});$this.find(".sq_save_keyword_labels").on("click",function(){var $popup=$(this).parents(".sq_label_manage_popup:last");var $button=$(this);var $keyword=$(this).data("keyword");var $labels=[];$popup.find('input[name="sq_labels"]:checked').each(function(){$labels.push(this.value)});$button.addClass("sq_minloading");$.post(sqQuery.ajaxurl,{action:"sq_briefcase_keywordlabel",keyword:$keyword,labels:$labels,sq_nonce:sqQuery.nonce}).done(function(response){if(typeof response.saved!=="undefined"){location.reload();$button.removeClass("sq_minloading")}else if(typeof response.error!=="undefined"){$button.removeClass("sq_minloading");$.sq_showMessage(response.error).addClass("sq_error")}}).fail(function(){$button.removeClass("sq_minloading")},"json")})};$this.listenEdit=function(){$popupEditLabel.find("#sq_labelcolor").wpColorPicker();$this.find(".sq_edit_label").on("click",function(){$("#element .wp-picker-clear").trigger("click");$popupEditLabel.find("input#sq_labelid").val($(this).attr("data-id"));$popupEditLabel.find("input#sq_labelname").val($(this).attr("data-name"));$popupEditLabel.find("input#sq_labelcolor").val($(this).attr("data-color"));$popupEditLabel.find("input#sq_labelcolor").trigger("change");$popupAddKeyword.modal("hide");$popupAddLabel.modal("hide");$popupEditLabel.modal("show")});$popupEditLabel.find("#sq_save_label").on("click",function(){var $button=$(this);var $id=$popupEditLabel.find("#sq_labelid").val();var $name=$popupEditLabel.find("#sq_labelname").val();var $color=$popupEditLabel.find("#sq_labelcolor").val();$button.addClass("sq_minloading");$.post(sqQuery.ajaxurl,{action:"sq_briefcase_editlabel",id:$id,name:$name,color:$color,sq_nonce:sqQuery.nonce}).done(function(response){if(typeof response.saved!=="undefined"){location.reload();$button.removeClass("sq_minloading")}else if(typeof response.error!=="undefined"){$button.removeClass("sq_minloading");$.sq_showMessage(response.error).addClass("sq_error")}}).fail(function(){$button.removeClass("sq_minloading")},"json")})};$this.listenDelete=function(){$this.find(".sq_delete").on("click",function(){if(confirm("Are you sure ?")){var $button=$(this);var $keyword=$(this).data("keyword");var $id=$(this).data("id");$button.addClass("sq_minloading");$.post(sqQuery.ajaxurl,{action:"sq_briefcase_deletekeyword",keyword:$keyword,sq_nonce:sqQuery.nonce}).done(function(response){if(typeof response.message!=="undefined"){$this.find("#sq_row_"+$id).remove();$this.find("#sq_subrow_"+$id).remove()}else if(typeof response.error!=="undefined"){$.sq_showMessage(response.error).addClass("sq_error")}$button.removeClass("sq_minloading")}).fail(function(){$button.removeClass("sq_minloading")},"json")}});$this.find(".sq_delete_label").on("click",function(){if(confirm("Are you sure ?")){var $button=$(this).parents(".sq_saved_label:last");var $id=$(this).data("id");$button.addClass("sq_minloading");$.post(sqQuery.ajaxurl,{action:"sq_briefcase_deletelabel",id:$id,sq_nonce:sqQuery.nonce}).done(function(response){if(typeof response.deleted!=="undefined"){location.reload();$button.remove();$this.find("label[data-id="+$id+"]").remove();$this.find(".sq_circle_label[data-id="+$id+"]").remove()}else if(typeof response.error!=="undefined"){$.sq_showMessage(response.error).addClass("sq_error")}$button.removeClass("sq_minloading")}).fail(function(){$button.removeClass("sq_minloading")},"json")}});$this.find(".sq_delete_found").on("click",function(){if(confirm("Are you sure ?")){var $button=$(this);var $keyword=$(this).data("keyword");var $id=$(this).data("id");$button.addClass("sq_minloading");$.post(sqQuery.ajaxurl,{action:"sq_briefcase_deletefound",keyword:$keyword,sq_nonce:sqQuery.nonce}).done(function(response){if(typeof response.message!=="undefined"){$this.find("#sq_row_"+$id).remove();$this.find("#sq_subrow_"+$id).remove()}else if(typeof response.error!=="undefined"){$.sq_showMessage(response.error).addClass("sq_error")}$button.removeClass("sq_minloading")}).fail(function(){$button.removeClass("sq_minloading")},"json")}})};$this.listenDoSerp=function(){$this.find(".sq_research_doserp").on("click",function(){var $button=$(this);var $keyword=$(this).data("keyword");var $success=$(this).data("success");var $link=$(this).data("link");$button.addClass("sq_minloading");$.post(sqQuery.ajaxurl,{action:"sq_ajax_briefcase_doserp",keyword:$keyword,sq_nonce:sqQuery.nonce}).done(function(response){if(typeof response.message!=="undefined"){$.sq_showMessage(response.message).addClass("sq_success");$button.html('<a href="'+$link+'">'+$success+"</a>");$button.off("click")}else if(typeof response.error!=="undefined"){$.sq_showMessage(response.error)}$button.removeClass("sq_minloading")}).fail(function(){$button.removeClass("sq_minloading")},"json")})};$this.listenOptions=function(){$("#sq_briefcase .sq_filter_label input[type=checkbox]").click(function(){$("#sq_briefcase .sq_filter_label input[type=checkbox]").each(function(){if(!$(this).is(":checked")){$(this).next("label").removeClass("sq_active")}});if($(this).is(":checked")){$(this).next("label").addClass("sq_active")}});$("#sq_briefcase .sq_add_keyword_dialog input[type=checkbox]").click(function(){$("#sq_briefcase .sq_add_keyword_dialog input[type=checkbox]").each(function(){if(!$(this).is(":checked")){$(this).next("label").removeClass("sq_active")}});if($(this).is(":checked")){$(this).next("label").addClass("sq_active")}});$("#sq_briefcase .sq_label_manage_popup input[type=checkbox]").click(function(){var $popup=$(this).parents(".sq_label_manage_popup:last");$popup.find("input[type=checkbox]").each(function(){if(!$(this).is(":checked")){$(this).next("label").removeClass("sq_active")}});if($(this).is(":checked")){$(this).next("label").addClass("sq_active")}})};$this.bulkAction=function(){$this.find(".sq_bulk_select_input").on("click",function(){if(!$(this).is(":checked")){$this.find(".sq_bulk_input").prop("checked",false)}else{$this.find(".sq_bulk_input").prop("checked",true)}});$this.find(".sq_bulk_submit").on("click",function(){var $button=$(this);if($this.find(".sq_bulk_action").find(":selected").val()!==""){if(!$button.hasClass("btn-modal")&&$this.find(".sq_bulk_action").find(":selected").val()==="sq_ajax_briefcase_bulk_label"){$this.find("#sq_label_manage_popup_bulk").modal("show");return}if($this.find(".sq_bulk_action").find(":selected").data("confirm")){if(!confirm($this.find(".sq_bulk_action").find(":selected").data("confirm"))){return}}var $sq_bulk_input=[];jQuery($this.find(".sq_bulk_input").serializeArray()).each(function(){$sq_bulk_input.push($(this).attr("value"))});var $sq_bulk_labels=[];jQuery($this.find(".sq_bulk_labels").serializeArray()).each(function(){$sq_bulk_labels.push($(this).attr("value"))});$button.addClass("sq_minloading");$.post(sqQuery.ajaxurl,{action:$this.find(".sq_bulk_action").find(":selected").val(),inputs:$sq_bulk_input,labels:$sq_bulk_labels,sq_nonce:sqQuery.nonce}).done(function(response){if(typeof response.message!=="undefined"){$.sq_showMessage(response.message).addClass("sq_success");if($this.find(".sq_bulk_action").find(":selected").val()==="sq_ajax_briefcase_bulk_doserp"){$this.find(".sq_bulk_input").each(function(){if($(this).is(":checked")){$(this).parents("tr:last").find(".sq_research_doserp").remove();$(this).prop("checked",false)}})}else if($this.find(".sq_bulk_action").find(":selected").val()==="sq_ajax_briefcase_bulk_delete"){$this.find(".sq_bulk_input").each(function(){if($(this).is(":checked")){briefcaseTable.row($(this).parents("tr:last")).remove().draw()}})}else{location.reload()}}else if(typeof response.error!=="undefined"){$.sq_showMessage(response.error)}$button.removeClass("sq_minloading")}).fail(function(){$button.removeClass("sq_minloading")},"json")}})};$("#dataTables tbody tr").on("click","td",function(event){});$this.listenAdd();$this.listenEdit();$this.listenDelete();$this.listenDoSerp();$this.listenOptions();$this.bulkAction();return $this};$.fn.loadTable=function(){$.extend($.fn.dataTableExt.oSort,{"formatted-posts-pre":function(a){return parseInt($("<div></div>").append(a).find("span").data("value"))},"formatted-posts-asc":function(a,b){return a-b},"formatted-posts-desc":function(a,b){return b-a},"formatted-value-pre":function(a){return $("<div></div>").append(a).find("span").data("value")},"formatted-value-asc":function(a,b){return a-b},"formatted-value-desc":function(a,b){return b-a},"formatted-progress-pre":function(a){return $("<div></div>").append(a).find("button").data("value")},"formatted-progress-asc":function(a,b){return a-b},"formatted-progress-desc":function(a,b){return b-a},"formatted-num-pre":function(a){return parseInt(a.replace(/[^\d\-\.]/g,""))},"formatted-num-asc":function(a,b){return a-b},"formatted-num-desc":function(a,b){return b-a},"formatted-rank-pre":function(a){var div=$("<div>"+a+"</div>");if(div.find("button").length){return parseInt(div.find("button").data("value"))}if(div.find("a").length){return parseInt(div.find("a").data("value"))}return parseInt(div.data("value"))},"formatted-rank-asc":function(a,b){return a-b},"formatted-rank-desc":function(a,b){return b-a}});return $(this).DataTable({columnDefs:[{targets:1,width:"40%"},{targets:2,sortable:true,type:"formatted-posts",width:"15%"},{targets:3,sortable:true,type:"formatted-rank",width:"20%"},{targets:4,sortable:true,type:"formatted-value",width:"15%"},{targets:5,sortable:true,type:"formatted-progress",width:"10%"},{targets:[0,6],sortable:false,width:"10px"}],sDom:"Rfrtlip",bPaginate:true,bFilter:false,bLengthChange:true,iDisplayLength:10,lengthMenu:[[10,25,50,100,-1],[10,25,50,100,"All"]],aaSorting:[3,"asc",2,"desc"]})};$.fn.loadLabelTable=function(){return $(this).DataTable({columnDefs:[{targets:[1],searchable:true,sortable:true},{targets:[0,2,3],sortable:false}],sDom:"Rfrtlip",bPaginate:true,bFilter:false,bLengthChange:true,iDisplayLength:10,lengthMenu:[[10,25,50,100,-1],[10,25,50,100,"All"]],aaSorting:[1,"desc"],fixedColumns:true})};$.fn.loadSuggestTable=function(){$.extend($.fn.dataTableExt.oSort,{"formatted-value-pre":function(a){return $("<div></div>").append(a).find("span").data("value")},"formatted-value-asc":function(a,b){return a-b},"formatted-value-desc":function(a,b){return b-a}});$(this).DataTable({columnDefs:[{targets:[5,6],sortable:false},{targets:[2,3,4],sortable:true,type:"formatted-value"}],sDom:"Rfrtlip",bPaginate:false,bLengthChange:true,iDisplayLength:50,lengthMenu:[[10,25,50,100,-1],[10,25,50,100,"All"]],bFilter:true,fixedColumns:true})};$(document).ready(function(){$("#sq_briefcase").sq_Briefcase();$("#sq_briefcaselabels").sq_Briefcase();$("#sq_suggested").sq_Briefcase();briefcaseTable=$("#sq_briefcase table.table").loadTable();briefcaseLabelTable=$("#sq_briefcaselabels table.table").loadLabelTable();suggestTable=$("#sq_suggested table.table").loadSuggestTable()})})(jQuery);
|
1 |
+
if(typeof SQ_DEBUG==="undefined")var SQ_DEBUG=false;(function($){"use strict";var briefcaseTable;var briefcaseLabelTable;var suggestTable;$.fn.sq_Briefcase=function(){var $this=this;var $popupAddKeyword=$this.find(".sq_add_keyword_dialog");var $popupAddLabel=$this.find(".sq_add_labels_dialog");var $popupEditLabel=$this.find(".sq_edit_label_dialog");$this.listenAdd=function(){$popupAddLabel.find("#sq_labelcolor").wpColorPicker();$popupAddLabel.find("#sq_save_label").on("click",function(){var $button=$(this);var $name=$popupAddLabel.find("input#sq_labelname").val();var $color=$popupAddLabel.find("input#sq_labelcolor").val();$button.addClass("sq_minloading");$.post(sqQuery.ajaxurl,{action:"sq_briefcase_addlabel",name:$name,color:$color,sq_nonce:sqQuery.nonce}).done(function(response){if(typeof response.saved!=="undefined"){location.reload();$button.removeClass("sq_minloading")}else if(typeof response.error!=="undefined"){$button.removeClass("sq_minloading");$.sq_showMessage(response.error).addClass("sq_error")}}).fail(function(){$button.removeClass("sq_minloading")},"json")});$this.find(".sq_save_keyword_labels").on("click",function(){var $popup=$(this).parents(".sq_label_manage_popup:last");var $button=$(this);var $keyword=$(this).data("keyword");var $labels=[];$popup.find('input[name="sq_labels"]:checked').each(function(){$labels.push(this.value)});$button.addClass("sq_minloading");$.post(sqQuery.ajaxurl,{action:"sq_briefcase_keywordlabel",keyword:$keyword,labels:$labels,sq_nonce:sqQuery.nonce}).done(function(response){if(typeof response.saved!=="undefined"){location.reload();$button.removeClass("sq_minloading")}else if(typeof response.error!=="undefined"){$button.removeClass("sq_minloading");$.sq_showMessage(response.error).addClass("sq_error")}}).fail(function(){$button.removeClass("sq_minloading")},"json")})};$this.listenEdit=function(){$popupEditLabel.find("#sq_labelcolor").wpColorPicker();$this.find(".sq_edit_label").on("click",function(){$("#element .wp-picker-clear").trigger("click");$popupEditLabel.find("input#sq_labelid").val($(this).attr("data-id"));$popupEditLabel.find("input#sq_labelname").val($(this).attr("data-name"));$popupEditLabel.find("input#sq_labelcolor").val($(this).attr("data-color"));$popupEditLabel.find("input#sq_labelcolor").trigger("change");$popupAddKeyword.modal("hide");$popupAddLabel.modal("hide");$popupEditLabel.modal("show")});$popupEditLabel.find("#sq_save_label").on("click",function(){var $button=$(this);var $id=$popupEditLabel.find("#sq_labelid").val();var $name=$popupEditLabel.find("#sq_labelname").val();var $color=$popupEditLabel.find("#sq_labelcolor").val();$button.addClass("sq_minloading");$.post(sqQuery.ajaxurl,{action:"sq_briefcase_editlabel",id:$id,name:$name,color:$color,sq_nonce:sqQuery.nonce}).done(function(response){if(typeof response.saved!=="undefined"){location.reload();$button.removeClass("sq_minloading")}else if(typeof response.error!=="undefined"){$button.removeClass("sq_minloading");$.sq_showMessage(response.error).addClass("sq_error")}}).fail(function(){$button.removeClass("sq_minloading")},"json")})};$this.listenDelete=function(){$this.find(".sq_delete").on("click",function(){if(confirm("Are you sure ?")){var $button=$(this);var $keyword=$(this).data("keyword");var $id=$(this).data("id");$button.addClass("sq_minloading");$.post(sqQuery.ajaxurl,{action:"sq_briefcase_deletekeyword",keyword:$keyword,sq_nonce:sqQuery.nonce}).done(function(response){if(typeof response.message!=="undefined"){$this.find("#sq_row_"+$id).remove();$this.find("#sq_subrow_"+$id).remove()}else if(typeof response.error!=="undefined"){$.sq_showMessage(response.error).addClass("sq_error")}$button.removeClass("sq_minloading")}).fail(function(){$button.removeClass("sq_minloading")},"json")}});$this.find(".sq_delete_label").on("click",function(){if(confirm("Are you sure ?")){var $button=$(this).parents(".sq_saved_label:last");var $id=$(this).data("id");$button.addClass("sq_minloading");$.post(sqQuery.ajaxurl,{action:"sq_briefcase_deletelabel",id:$id,sq_nonce:sqQuery.nonce}).done(function(response){if(typeof response.deleted!=="undefined"){location.reload();$button.remove();$this.find("label[data-id="+$id+"]").remove();$this.find(".sq_circle_label[data-id="+$id+"]").remove()}else if(typeof response.error!=="undefined"){$.sq_showMessage(response.error).addClass("sq_error")}$button.removeClass("sq_minloading")}).fail(function(){$button.removeClass("sq_minloading")},"json")}});$this.find(".sq_delete_found").on("click",function(){if(confirm("Are you sure ?")){var $button=$(this);var $keyword=$(this).data("keyword");var $id=$(this).data("id");$button.addClass("sq_minloading");$.post(sqQuery.ajaxurl,{action:"sq_briefcase_deletefound",keyword:$keyword,sq_nonce:sqQuery.nonce}).done(function(response){if(typeof response.message!=="undefined"){$this.find("#sq_row_"+$id).remove();$this.find("#sq_subrow_"+$id).remove()}else if(typeof response.error!=="undefined"){$.sq_showMessage(response.error).addClass("sq_error")}$button.removeClass("sq_minloading")}).fail(function(){$button.removeClass("sq_minloading")},"json")}})};$this.listenDoSerp=function(){$this.find(".sq_research_doserp").on("click",function(){var $button=$(this);var $keyword=$(this).data("keyword");var $success=$(this).data("success");var $link=$(this).data("link");$button.addClass("sq_minloading");$.post(sqQuery.ajaxurl,{action:"sq_ajax_briefcase_doserp",keyword:$keyword,sq_nonce:sqQuery.nonce}).done(function(response){if(typeof response.message!=="undefined"){$.sq_showMessage(response.message).addClass("sq_success");$button.html('<a href="'+$link+'">'+$success+"</a>");$button.off("click")}else if(typeof response.error!=="undefined"){$.sq_showMessage(response.error)}$button.removeClass("sq_minloading")}).fail(function(){$button.removeClass("sq_minloading")},"json")})};$this.listenOptions=function(){$("#sq_briefcase .sq_filter_label input[type=checkbox]").click(function(){$("#sq_briefcase .sq_filter_label input[type=checkbox]").each(function(){if(!$(this).is(":checked")){$(this).next("label").removeClass("sq_active")}});if($(this).is(":checked")){$(this).next("label").addClass("sq_active")}});$("#sq_briefcase .sq_add_keyword_dialog input[type=checkbox]").click(function(){$("#sq_briefcase .sq_add_keyword_dialog input[type=checkbox]").each(function(){if(!$(this).is(":checked")){$(this).next("label").removeClass("sq_active")}});if($(this).is(":checked")){$(this).next("label").addClass("sq_active")}});$("#sq_briefcase .sq_label_manage_popup input[type=checkbox]").click(function(){var $popup=$(this).parents(".sq_label_manage_popup:last");$popup.find("input[type=checkbox]").each(function(){if(!$(this).is(":checked")){$(this).next("label").removeClass("sq_active")}});if($(this).is(":checked")){$(this).next("label").addClass("sq_active")}})};$this.bulkAction=function(){$this.find(".sq_bulk_select_input").on("click",function(){if(!$(this).is(":checked")){$this.find(".sq_bulk_input").prop("checked",false)}else{$this.find(".sq_bulk_input").prop("checked",true)}});$this.find(".sq_bulk_submit").on("click",function(){var $button=$(this);if($this.find(".sq_bulk_action").find(":selected").val()!==""){if(!$button.hasClass("btn-modal")&&$this.find(".sq_bulk_action").find(":selected").val()==="sq_ajax_briefcase_bulk_label"){$this.find("#sq_label_manage_popup_bulk").modal("show");return}if($this.find(".sq_bulk_action").find(":selected").data("confirm")){if(!confirm($this.find(".sq_bulk_action").find(":selected").data("confirm"))){return}}var $sq_bulk_input=[];jQuery($this.find(".sq_bulk_input").serializeArray()).each(function(){$sq_bulk_input.push($(this).attr("value"))});var $sq_bulk_labels=[];jQuery($this.find(".sq_bulk_labels").serializeArray()).each(function(){$sq_bulk_labels.push($(this).attr("value"))});$button.addClass("sq_minloading");$.post(sqQuery.ajaxurl,{action:$this.find(".sq_bulk_action").find(":selected").val(),inputs:$sq_bulk_input,labels:$sq_bulk_labels,sq_nonce:sqQuery.nonce}).done(function(response){if(typeof response.message!=="undefined"){$.sq_showMessage(response.message).addClass("sq_success");if($this.find(".sq_bulk_action").find(":selected").val()==="sq_ajax_briefcase_bulk_doserp"){$this.find(".sq_bulk_input").each(function(){if($(this).is(":checked")){$(this).parents("tr:last").find(".sq_research_doserp").remove();$(this).prop("checked",false)}})}else if($this.find(".sq_bulk_action").find(":selected").val()==="sq_ajax_briefcase_bulk_delete"){$this.find(".sq_bulk_input").each(function(){if($(this).is(":checked")){briefcaseTable.row($(this).parents("tr:last")).remove().draw()}})}else{location.reload()}}else if(typeof response.error!=="undefined"){$.sq_showMessage(response.error)}$button.removeClass("sq_minloading")}).fail(function(){$button.removeClass("sq_minloading")},"json")}})};$("#dataTables tbody tr").on("click","td",function(event){});$this.listenAdd();$this.listenEdit();$this.listenDelete();$this.listenDoSerp();$this.listenOptions();$this.bulkAction();return $this};$.fn.loadTable=function(){$.extend($.fn.dataTableExt.oSort,{"formatted-posts-pre":function(a){return parseInt($("<div></div>").append(a).find("span").data("value"))},"formatted-posts-asc":function(a,b){return a-b},"formatted-posts-desc":function(a,b){return b-a},"formatted-value-pre":function(a){return $("<div></div>").append(a).find("span").data("value")},"formatted-value-asc":function(a,b){return a-b},"formatted-value-desc":function(a,b){return b-a},"formatted-progress-pre":function(a){return $("<div></div>").append(a).find("button").data("value")},"formatted-progress-asc":function(a,b){return a-b},"formatted-progress-desc":function(a,b){return b-a},"formatted-num-pre":function(a){return parseInt(a.replace(/[^\d\-\.]/g,""))},"formatted-num-asc":function(a,b){return a-b},"formatted-num-desc":function(a,b){return b-a},"formatted-rank-pre":function(a){var div=$("<div>"+a+"</div>");if(div.find("button").length){return parseInt(div.find("button").data("value"))}if(div.find("a").length){return parseInt(div.find("a").data("value"))}return parseInt(div.data("value"))},"formatted-rank-asc":function(a,b){return a-b},"formatted-rank-desc":function(a,b){return b-a}});return $(this).DataTable({columnDefs:[{targets:1,width:"40%"},{targets:2,sortable:true,type:"formatted-posts",width:"15%"},{targets:3,sortable:true,type:"formatted-rank",width:"20%"},{targets:4,sortable:true,type:"formatted-value",width:"15%"},{targets:5,sortable:true,type:"formatted-progress",width:"10%"},{targets:[0,6],sortable:false,width:"10px"}],sDom:"Rfrtlip",bPaginate:true,bFilter:false,bLengthChange:true,iDisplayLength:10,lengthMenu:[[10,25,50,100,-1],[10,25,50,100,"All"]],aaSorting:[3,"asc",2,"desc"],fixedColumns:true})};$.fn.loadLabelTable=function(){return $(this).DataTable({columnDefs:[{targets:[1],searchable:true,sortable:true},{targets:[0,2,3],sortable:false}],sDom:"Rfrtlip",bPaginate:true,bFilter:false,bLengthChange:true,iDisplayLength:10,lengthMenu:[[10,25,50,100,-1],[10,25,50,100,"All"]],aaSorting:[1,"desc"],fixedColumns:true})};$.fn.loadSuggestTable=function(){$.extend($.fn.dataTableExt.oSort,{"formatted-value-pre":function(a){return $("<div></div>").append(a).find("span").data("value")},"formatted-value-asc":function(a,b){return a-b},"formatted-value-desc":function(a,b){return b-a}});$(this).DataTable({columnDefs:[{targets:[5,6],sortable:false},{targets:[2,3,4],sortable:true,type:"formatted-value"}],sDom:"Rfrtlip",bPaginate:false,bLengthChange:true,iDisplayLength:50,lengthMenu:[[10,25,50,100,-1],[10,25,50,100,"All"]],bFilter:true,fixedColumns:true})};$(document).ready(function(){$("#sq_briefcase").sq_Briefcase();$("#sq_briefcaselabels").sq_Briefcase();$("#sq_suggested").sq_Briefcase();briefcaseTable=$("#sq_briefcase table.table").loadTable();briefcaseLabelTable=$("#sq_briefcaselabels table.table").loadLabelTable();suggestTable=$("#sq_suggested table.table").loadSuggestTable()})})(jQuery);
|