SEO SQUIRRLY™ - Version 12.1.02

Version Description

Download this release

Release Info

Developer cifi
Plugin Icon 128x128 SEO SQUIRRLY™
Version 12.1.02
Comparing to
See all releases

Code changes from version 12.1.01 to 12.1.02

controllers/Automation.php CHANGED
@@ -75,7 +75,11 @@ class SQ_Controllers_Automation extends SQ_Classes_FrontController
75
 
76
 
77
  //show the saved message
78
- if (!SQ_Classes_Error::isError()) SQ_Classes_Error::setMessage(esc_html__("Saved", 'squirrly-seo'));
 
 
 
 
79
 
80
  /************************ Automation *******************************************************/
81
  case 'sq_automation_addpostype':
@@ -124,6 +128,7 @@ class SQ_Controllers_Automation extends SQ_Classes_FrontController
124
  //Return error in case the post is not saved
125
  SQ_Classes_Error::setError(esc_html__("Could not add the post type.", 'squirrly-seo'));
126
  break;
 
127
  case 'sq_ajax_automation_deletepostype':
128
  SQ_Classes_Helpers_Tools::setHeader('json');
129
  $response = array();
@@ -159,7 +164,6 @@ class SQ_Controllers_Automation extends SQ_Classes_FrontController
159
  $response['data'] = SQ_Classes_Error::showNotices(esc_html__("Could not add the post type.", 'squirrly-seo'), 'sq_error');
160
  echo wp_json_encode($response);
161
  exit();
162
- break;
163
 
164
  }
165
 
75
 
76
 
77
  //show the saved message
78
+ if (!SQ_Classes_Error::isError()) {
79
+ SQ_Classes_Error::setMessage(esc_html__("Saved", 'squirrly-seo'));
80
+ }
81
+
82
+ break;
83
 
84
  /************************ Automation *******************************************************/
85
  case 'sq_automation_addpostype':
128
  //Return error in case the post is not saved
129
  SQ_Classes_Error::setError(esc_html__("Could not add the post type.", 'squirrly-seo'));
130
  break;
131
+
132
  case 'sq_ajax_automation_deletepostype':
133
  SQ_Classes_Helpers_Tools::setHeader('json');
134
  $response = array();
164
  $response['data'] = SQ_Classes_Error::showNotices(esc_html__("Could not add the post type.", 'squirrly-seo'), 'sq_error');
165
  echo wp_json_encode($response);
166
  exit();
 
167
 
168
  }
169
 
controllers/Post.php CHANGED
@@ -249,6 +249,10 @@ class SQ_Controllers_Post extends SQ_Classes_FrontController
249
  */
250
  public function hookSavePost($post_id, $post)
251
  {
 
 
 
 
252
 
253
  if ($post_id && isset($post->ID) && isset($post->post_type) && $post->post_type <> '') {
254
  //If the post is a new or edited post
249
  */
250
  public function hookSavePost($post_id, $post)
251
  {
252
+ //make sure the post is loaded
253
+ if($post_id && !isset($post->ID)){
254
+ $post = get_post($post_id);
255
+ }
256
 
257
  if ($post_id && isset($post->ID) && isset($post->post_type) && $post->post_type <> '') {
258
  //If the post is a new or edited post
languages/squirrly-seo-ro_RO.po CHANGED
@@ -16082,7 +16082,7 @@ msgstr "https://plugin.squirrly.co"
16082
  #~ "%s pentru a vă optimiza paginile."
16083
 
16084
  #~ msgid ""
16085
- #~ "If you already have a list of keywords, Import the keywords usign the "
16086
  #~ "below button."
16087
  #~ msgstr ""
16088
  #~ "Dacă aveți deja o listă de cuvinte cheie, importați cuvintele cheie "
16082
  #~ "%s pentru a vă optimiza paginile."
16083
 
16084
  #~ msgid ""
16085
+ #~ "If you already have a list of keywords, Import the keywords using the "
16086
  #~ "below button."
16087
  #~ msgstr ""
16088
  #~ "Dacă aveți deja o listă de cuvinte cheie, importați cuvintele cheie "
models/CheckSeo.php CHANGED
@@ -520,7 +520,7 @@ class SQ_Models_CheckSeo
520
  'completed' => false,
521
  'warning' => esc_html__("Avoid losing positions in search results", 'squirrly-seo'),
522
  'message' => esc_html__("Make sure your Rankings won't drop because of duplicate content, duplicate titles, empty titles, empty descriptions and more. SEO Experts and Non-SEO Experts love this feature, because it simply handles everything important. (especially if you already turned Platform SEO to Green inside Focus Pages section)", 'squirrly-seo'),
523
- 'solution' => sprintf(esc_html__("Go to %s Squirrly > Automation > Configuration %s and make sure that SEO Patterns are activated.", 'squirrly-seo'), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_automation', 'automation') . '" >', '</a>'),
524
  'goal' => esc_html__("Activate SEO Patterns, with Squirrly's site-wide SEO Automation.", 'squirrly-seo'),
525
  'link' => SQ_Classes_Helpers_Tools::getAdminUrl('sq_automation', 'automation'),
526
  'color' => '#4f1440',
520
  'completed' => false,
521
  'warning' => esc_html__("Avoid losing positions in search results", 'squirrly-seo'),
522
  'message' => esc_html__("Make sure your Rankings won't drop because of duplicate content, duplicate titles, empty titles, empty descriptions and more. SEO Experts and Non-SEO Experts love this feature, because it simply handles everything important. (especially if you already turned Platform SEO to Green inside Focus Pages section)", 'squirrly-seo'),
523
+ 'solution' => sprintf(esc_html__("Go to %s Squirrly > All Features %s and make sure that SEO Automation is activated.", 'squirrly-seo'), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_features',false,array('sfeature=seo+automation')) . '" >', '</a>'),
524
  'goal' => esc_html__("Activate SEO Patterns, with Squirrly's site-wide SEO Automation.", 'squirrly-seo'),
525
  'link' => SQ_Classes_Helpers_Tools::getAdminUrl('sq_automation', 'automation'),
526
  'color' => '#4f1440',
models/focuspages/Onpage.php CHANGED
@@ -62,7 +62,7 @@ class SQ_Models_Focuspages_Onpage extends SQ_Models_Abstract_Assistant
62
  ),
63
  'patterns' => array(
64
  'title' => esc_html__("SEO Automation activated", 'squirrly-seo'),
65
- 'description' => sprintf(esc_html__("To complete this task, go and activate the %s SEO Automation %s from All Features. %s With this task, we're looking to see if the SEO Patterns from Squirrly are activated for the post type of this Focus Page. %s Similar to the previous task with \"Post Type Settings Activated\". There are some cases in which this double check is necessary. %s It's for your ranking safety.", 'squirrly-seo'), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_features') . '" target="_blank">', '</a>', '<br /><br />', '<br /><br />', '<br /><br />'),
66
  ),
67
  'robots' => array(
68
  'title' => esc_html__("Robots File", 'squirrly-seo'),
62
  ),
63
  'patterns' => array(
64
  'title' => esc_html__("SEO Automation activated", 'squirrly-seo'),
65
+ 'description' => sprintf(esc_html__("To complete this task, go and activate the %s SEO Automation %s from All Features. %s With this task, we're looking to see if the SEO Patterns from Squirrly are activated for the post type of this Focus Page. %s Similar to the previous task with \"Post Type Settings Activated\". There are some cases in which this double check is necessary. %s It's for your ranking safety.", 'squirrly-seo'), '<a href="' . SQ_Classes_Helpers_Tools::getAdminUrl('sq_features',false,array('sfeature=seo+automation')) . '" target="_blank">', '</a>', '<br /><br />', '<br /><br />', '<br /><br />'),
66
  ),
67
  'robots' => array(
68
  'title' => esc_html__("Robots File", 'squirrly-seo'),
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.01
8
  Requires PHP: 7.0
9
  License: GPLv2 or later
10
 
@@ -669,6 +669,12 @@ Type a keyword to the right of the screen and start using Squirrly Seo. Enjoy!
669
  9. Squirrly SEO - Progress & Achievements
670
 
671
  == Changelog ==
 
 
 
 
 
 
672
  = 12.1.01- 05/17/2022 =
673
  Fix - Show Squirrly logo in Page Editor toolbar to open/close Squirrly Live Assistant
674
  Fix - Dev Kit install on plugin activation
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.02
8
  Requires PHP: 7.0
9
  License: GPLv2 or later
10
 
669
  9. Squirrly SEO - Progress & Achievements
670
 
671
  == Changelog ==
672
+ = 12.1.02- 05/19/2022 =
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
676
+ Fix - DevKit instalation to load the correct custom logo
677
+
678
  = 12.1.01- 05/17/2022 =
679
  Fix - Show Squirrly logo in Page Editor toolbar to open/close Squirrly Live Assistant
680
  Fix - Dev Kit install on plugin activation
view/Blocks/Snippet.php CHANGED
@@ -190,7 +190,7 @@ if (SQ_Classes_Helpers_Tools::getOption('sq_use')) {
190
  </div>
191
  <?php } ?>
192
 
193
- <?php if ($view->post->sq_adm->patterns->title <> '') { ?>
194
  <div class="sq-action">
195
  <span style="display: none" class="sq-value" data-value="<?php echo esc_attr($view->post->sq_adm->patterns->title) ?>"></span>
196
  <span class="sq-action-title" title="<?php echo esc_attr($view->post->sq_adm->patterns->title) ?>"><?php echo (($loadpatterns === true) ? esc_html__("Pattern", 'squirrly-seo') . ': <span>' . esc_html($view->post->sq_adm->patterns->title) . '</span>' : '') ?></span>
@@ -244,7 +244,7 @@ if (SQ_Classes_Helpers_Tools::getOption('sq_use')) {
244
  </div>
245
  <?php } ?>
246
 
247
- <?php if ($view->post->sq_adm->patterns->description <> '') { ?>
248
  <div class="sq-action">
249
  <span style="display: none" class="sq-value" data-value="<?php echo esc_attr($view->post->sq_adm->patterns->description) ?>"></span>
250
  <span class="sq-action-title" title="<?php echo esc_attr($view->post->sq_adm->patterns->description) ?>"><?php echo(($loadpatterns === true) ? esc_html__("Pattern", 'squirrly-seo') . ': ' . '<span>' . esc_html($view->post->sq_adm->patterns->description) . '</span>' : '') ?></span>
@@ -740,7 +740,7 @@ if (SQ_Classes_Helpers_Tools::getOption('sq_use')) {
740
  </div>
741
  <?php } ?>
742
 
743
- <?php if ($view->post->sq_adm->patterns->title <> '') { ?>
744
  <div class="sq-action">
745
  <span style="display: none" class="sq-value" data-value="<?php echo esc_attr($view->post->sq_adm->patterns->title) ?>"></span>
746
  <span class="sq-action-title" title="<?php echo esc_attr($view->post->sq_adm->patterns->title) ?>"><?php echo(($loadpatterns === true) ? esc_html__("Pattern", 'squirrly-seo') . ': ' . '<span>' . esc_html($view->post->sq_adm->patterns->title) . '</span>' : '') ?></span>
@@ -786,7 +786,7 @@ if (SQ_Classes_Helpers_Tools::getOption('sq_use')) {
786
  </div>
787
  <?php } ?>
788
 
789
- <?php if ($view->post->sq_adm->patterns->description <> '') { ?>
790
  <div class="sq-action">
791
  <span style="display: none" class="sq-value" data-value="<?php echo esc_attr($view->post->sq_adm->patterns->description) ?>"></span>
792
  <span class="sq-action-title" title="<?php echo esc_attr($view->post->sq_adm->patterns->description) ?>"><?php echo(($loadpatterns === true) ? esc_html__("Pattern", 'squirrly-seo') . ': ' . '<span>' . esc_html($view->post->sq_adm->patterns->description) . '</span>' : '') ?></span>
@@ -1002,7 +1002,7 @@ if (SQ_Classes_Helpers_Tools::getOption('sq_use')) {
1002
  </div>
1003
  <?php } ?>
1004
 
1005
- <?php if ($view->post->sq_adm->patterns->title <> '') { ?>
1006
  <div class="sq-action">
1007
  <span style="display: none" class="sq-value" data-value="<?php echo esc_attr($view->post->sq_adm->patterns->title) ?>"></span>
1008
  <span class="sq-action-title" title="<?php echo esc_attr($view->post->sq_adm->patterns->title) ?>"><?php echo(($loadpatterns === true) ? esc_html__("Pattern", 'squirrly-seo') . ': ' . '<span>' . esc_html($view->post->sq_adm->patterns->title) . '</span>' : '') ?></span>
@@ -1048,7 +1048,7 @@ if (SQ_Classes_Helpers_Tools::getOption('sq_use')) {
1048
  </div>
1049
  <?php } ?>
1050
 
1051
- <?php if ($view->post->sq_adm->patterns->description <> '') { ?>
1052
  <div class="sq-action">
1053
  <span style="display: none" class="sq-value" data-value="<?php echo esc_attr($view->post->sq_adm->patterns->description) ?>"></span>
1054
  <span class="sq-action-title" title="<?php echo esc_attr($view->post->sq_adm->patterns->description) ?>"><?php echo(($loadpatterns === true) ? esc_html__("Pattern", 'squirrly-seo') . ': ' . '<span>' . esc_html($view->post->sq_adm->patterns->description) . '</span>' : '') ?></span>
190
  </div>
191
  <?php } ?>
192
 
193
+ <?php if ($loadpatterns && $view->post->sq_adm->patterns->title <> '') { ?>
194
  <div class="sq-action">
195
  <span style="display: none" class="sq-value" data-value="<?php echo esc_attr($view->post->sq_adm->patterns->title) ?>"></span>
196
  <span class="sq-action-title" title="<?php echo esc_attr($view->post->sq_adm->patterns->title) ?>"><?php echo (($loadpatterns === true) ? esc_html__("Pattern", 'squirrly-seo') . ': <span>' . esc_html($view->post->sq_adm->patterns->title) . '</span>' : '') ?></span>
244
  </div>
245
  <?php } ?>
246
 
247
+ <?php if ($loadpatterns && $view->post->sq_adm->patterns->description <> '') { ?>
248
  <div class="sq-action">
249
  <span style="display: none" class="sq-value" data-value="<?php echo esc_attr($view->post->sq_adm->patterns->description) ?>"></span>
250
  <span class="sq-action-title" title="<?php echo esc_attr($view->post->sq_adm->patterns->description) ?>"><?php echo(($loadpatterns === true) ? esc_html__("Pattern", 'squirrly-seo') . ': ' . '<span>' . esc_html($view->post->sq_adm->patterns->description) . '</span>' : '') ?></span>
740
  </div>
741
  <?php } ?>
742
 
743
+ <?php if ($loadpatterns && $view->post->sq_adm->patterns->title <> '') { ?>
744
  <div class="sq-action">
745
  <span style="display: none" class="sq-value" data-value="<?php echo esc_attr($view->post->sq_adm->patterns->title) ?>"></span>
746
  <span class="sq-action-title" title="<?php echo esc_attr($view->post->sq_adm->patterns->title) ?>"><?php echo(($loadpatterns === true) ? esc_html__("Pattern", 'squirrly-seo') . ': ' . '<span>' . esc_html($view->post->sq_adm->patterns->title) . '</span>' : '') ?></span>
786
  </div>
787
  <?php } ?>
788
 
789
+ <?php if ($loadpatterns && $view->post->sq_adm->patterns->description <> '') { ?>
790
  <div class="sq-action">
791
  <span style="display: none" class="sq-value" data-value="<?php echo esc_attr($view->post->sq_adm->patterns->description) ?>"></span>
792
  <span class="sq-action-title" title="<?php echo esc_attr($view->post->sq_adm->patterns->description) ?>"><?php echo(($loadpatterns === true) ? esc_html__("Pattern", 'squirrly-seo') . ': ' . '<span>' . esc_html($view->post->sq_adm->patterns->description) . '</span>' : '') ?></span>
1002
  </div>
1003
  <?php } ?>
1004
 
1005
+ <?php if ($loadpatterns && $view->post->sq_adm->patterns->title <> '') { ?>
1006
  <div class="sq-action">
1007
  <span style="display: none" class="sq-value" data-value="<?php echo esc_attr($view->post->sq_adm->patterns->title) ?>"></span>
1008
  <span class="sq-action-title" title="<?php echo esc_attr($view->post->sq_adm->patterns->title) ?>"><?php echo(($loadpatterns === true) ? esc_html__("Pattern", 'squirrly-seo') . ': ' . '<span>' . esc_html($view->post->sq_adm->patterns->title) . '</span>' : '') ?></span>
1048
  </div>
1049
  <?php } ?>
1050
 
1051
+ <?php if ($loadpatterns && $view->post->sq_adm->patterns->description <> '') { ?>
1052
  <div class="sq-action">
1053
  <span style="display: none" class="sq-value" data-value="<?php echo esc_attr($view->post->sq_adm->patterns->description) ?>"></span>
1054
  <span class="sq-action-title" title="<?php echo esc_attr($view->post->sq_adm->patterns->description) ?>"><?php echo(($loadpatterns === true) ? esc_html__("Pattern", 'squirrly-seo') . ': ' . '<span>' . esc_html($view->post->sq_adm->patterns->description) . '</span>' : '') ?></span>
view/Goals/Goals.php CHANGED
@@ -154,7 +154,7 @@ if ($countdone == count($view->report)) {
154
  <?php } ?>
155
 
156
 
157
- <div class="row" style="max-width: 1200px;">
158
  <div class="col p-0 m-2 mx-0 text-left">
159
  <?php if ((int)$ignored_count > 0) { ?>
160
  <form method="post" class="p-0 m-0">
154
  <?php } ?>
155
 
156
 
157
+ <div class="row p-0 mb-5" style="max-width: 1200px;">
158
  <div class="col p-0 m-2 mx-0 text-left">
159
  <?php if ((int)$ignored_count > 0) { ?>
160
  <form method="post" class="p-0 m-0">
view/Onboarding/Step1.php CHANGED
@@ -7,7 +7,7 @@
7
  <div class="d-flex flex-row flex-nowrap flex-grow-1 bg-light m-0 p-0" >
8
  <div class="flex-grow-1 sq_flex m-0 py-0 px-5" >
9
 
10
- <div class="col-12 p-0 m-0" style="margin-bottom: 200px !important;">
11
  <div class="sq_breadcrumbs my-4"><?php echo SQ_Classes_ObjController::getClass('SQ_Models_Menu')->getBreadcrumbs('sq_onpagesetup') ?></div>
12
 
13
  <form id="sq_onboarding_form" method="post" action="<?php echo SQ_Classes_Helpers_Tools::getAdminUrl('sq_onboarding', 'step2') ?>" class="p-0 m-0">
@@ -56,8 +56,29 @@
56
  </div>
57
  </form>
58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  </div>
60
 
 
 
 
61
  <?php SQ_Classes_ObjController::getClass('SQ_Core_BlockKnowledgeBase')->init(); ?>
62
 
63
  </div>
7
  <div class="d-flex flex-row flex-nowrap flex-grow-1 bg-light m-0 p-0" >
8
  <div class="flex-grow-1 sq_flex m-0 py-0 px-5" >
9
 
10
+ <div class="col-12 p-0 m-0" style="margin-bottom: 100px !important;">
11
  <div class="sq_breadcrumbs my-4"><?php echo SQ_Classes_ObjController::getClass('SQ_Models_Menu')->getBreadcrumbs('sq_onpagesetup') ?></div>
12
 
13
  <form id="sq_onboarding_form" method="post" action="<?php echo SQ_Classes_Helpers_Tools::getAdminUrl('sq_onboarding', 'step2') ?>" class="p-0 m-0">
56
  </div>
57
  </form>
58
 
59
+ <?php if (SQ_Classes_Helpers_Tools::isPluginInstalled('wordpress-seo/wp-seo.php')) { ?>
60
+ <div class="text-center">
61
+ <a href="https://completeseofunnel.com/yoast-alternative/" target="_blank"><img src="<?php echo esc_url(_SQ_ASSETS_URL_ . 'img/settings/sq-vs-yoast.png') ?>" alt="" style="width: 900px; max-width: 100%;"></a>
62
+ </div>
63
+ <?php } elseif (SQ_Classes_Helpers_Tools::isPluginInstalled('seo-by-rank-math/rank-math.php')) { ?>
64
+ <div class="text-center">
65
+ <a href="http://completeseofunnel.com/rankmath-alternative/" target="_blank"><img src="<?php echo esc_url(_SQ_ASSETS_URL_ . 'img/settings/sq-vs-rank-math.png') ?>" alt="" style="width: 900px; max-width: 100%;"></a>
66
+ </div>
67
+ <?php } elseif (SQ_Classes_Helpers_Tools::isPluginInstalled('wp-seopress/seopress.php')) { ?>
68
+ <div class="text-center">
69
+ <a href="http://completeseofunnel.com/seopress-alternative/" target="_blank"><img src="<?php echo esc_url(_SQ_ASSETS_URL_ . 'img/settings/sq-vs-seo-press.png') ?>" alt="" style="width: 900px; max-width: 100%;"></a>
70
+ </div>
71
+ <?php } elseif (SQ_Classes_Helpers_Tools::isPluginInstalled('all-in-one-seo-pack/all_in_one_seo_pack.php') || SQ_Classes_Helpers_Tools::isPluginInstalled('all-in-one-seo-pack-pro/all_in_one_seo_pack.php')) { ?>
72
+ <div class="text-center">
73
+ <a href="https://completeseofunnel.com/allinoneseo-alternative/" target="_blank"><img src="<?php echo esc_url(_SQ_ASSETS_URL_ . 'img/settings/sq-vs-all-in-one-seo.png') ?>" alt="" style="width: 900px; max-width: 100%;"></a>
74
+ </div>
75
+ <?php } ?>
76
+
77
  </div>
78
 
79
+
80
+
81
+
82
  <?php SQ_Classes_ObjController::getClass('SQ_Core_BlockKnowledgeBase')->init(); ?>
83
 
84
  </div>
view/Overview.php CHANGED
@@ -30,7 +30,7 @@
30
  </div>
31
  </div>
32
 
33
- <?php if(!SQ_Classes_Helpers_Tools::getOption('sq_mode') && !SQ_Classes_Helpers_Tools::getOption('sq_onboarding') && SQ_Classes_Helpers_Tools::getOption('show_tutorial')) { ?>
34
  <div id="sq_onboarding_modal" tabindex="-1" class="modal" role="dialog">
35
  <div class="modal-dialog" style="max-width: 100%; margin: 115px 46px;">
36
  <div class="modal-content bg-white rounded-0" style="width: 830px; margin: 0 0 auto auto;">
30
  </div>
31
  </div>
32
 
33
+ <?php if(!SQ_Classes_Helpers_Tools::getOption('sq_mode') && !SQ_Classes_Helpers_Tools::getOption('sq_onboarding') && SQ_Classes_Helpers_Tools::getMenuVisible('show_tutorial')) { ?>
34
  <div id="sq_onboarding_modal" tabindex="-1" class="modal" role="dialog">
35
  <div class="modal-dialog" style="max-width: 100%; margin: 115px 46px;">
36
  <div class="modal-content bg-white rounded-0" style="width: 830px; margin: 0 0 auto auto;">
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 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}.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}
view/assets/css/highlight.min.css CHANGED
@@ -1 +1 @@
1
- .hwt-container{width:100%!important;background-color:#fff!important;display:inline-block;position:relative;overflow:hidden!important;-webkit-text-size-adjust:none!important;border:1px solid #8c8f94}.hwt-container:focus{background-color:#fff!important}.hwt-backdrop{position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:0!important;padding:0;margin:0;overflow-x:hidden!important;overflow-y:auto!important}.hwt-highlights{width:auto!important;height:auto!important;border-color:transparent!important;white-space:pre-wrap!important;word-wrap:break-word!important;color:transparent!important;overflow:hidden!important}.hwt-input{background-color:transparent!important;display:block!important;position:relative!important;margin:0;padding:0;border-radius:0;font:inherit;overflow-x:hidden!important;overflow-y:auto!important}.hwt-content{border:1px solid;background:0 0!important}.hwt-content mark{padding:0!important;color:#212529!important;background-color:#f5edff!important;border-top:1px solid #f5edff!important;border-bottom:1px solid #f5edff!important}
1
+ .hwt-container{width:100%!important;background-color:#fff!important;display:inline-block;position:relative;overflow:hidden!important;-webkit-text-size-adjust:none!important;border:0}.hwt-container:focus{background-color:#fff!important}.hwt-backdrop{position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:0!important;padding:0;margin:0;overflow-x:hidden!important;overflow-y:auto!important}.hwt-highlights{width:auto!important;height:auto!important;border-color:transparent!important;white-space:pre-wrap!important;word-wrap:break-word!important;color:transparent!important;overflow:hidden!important}.hwt-input{background-color:transparent!important;display:block!important;position:relative!important;margin:0;padding:0;border-radius:0;font:inherit;overflow-x:hidden!important;overflow-y:auto!important}.hwt-content{border:1px solid #8c8f94;background:0 0!important}.hwt-content mark{padding:0!important;color:#212529!important;background-color:#f5edff!important;border-top:1px solid #f5edff!important;border-bottom:1px solid #f5edff!important}
view/assets/img/settings/sq-vs-all-in-one-seo.png ADDED
Binary file
view/assets/img/settings/sq-vs-rank-math.png ADDED
Binary file
view/assets/img/settings/sq-vs-seo-press.png ADDED
Binary file
view/assets/img/settings/sq-vs-yoast.png ADDED
Binary file
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"}],bPaginate:true,bLengthChange:false,bFilter:false,iDisplayLength:10,aaSorting:[3,"asc",2,"desc"]})};$.fn.loadLabelTable=function(){return $(this).DataTable({columnDefs:[{targets:[1],searchable:true,sortable:true},{targets:[0,2,3],sortable:false}],bPaginate:true,bLengthChange:false,bFilter:false,iDisplayLength:10,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"}],bPaginate:false,bLengthChange:false,bFilter:true,iDisplayLength:50,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"]})};$.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);
view/assets/js/rankings.min.js CHANGED
@@ -1 +1 @@
1
- if(typeof SQ_DEBUG==="undefined")var SQ_DEBUG=false;(function($){"use strict";$.extend($.fn.dataTableExt.oSort,{"formatted-num-pre":function(a){return parseInt(a)>0?parseInt(a.replace(/[^\d\-\.]/g,"")):99},"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>");div.find(".badge").remove();if(div.text()==="N/A"||div.text()==="GSC")return 999;return parseFloat(div.text())},"formatted-rank-asc":function(a,b){return a-b},"formatted-rank-desc":function(a,b){return b-a}});$.fn.sq_Ranking=function(){var $this=this;var ranksTable;if($this.find("table.table-ranks").find("tr:first th").length===7){ranksTable=$this.find("table.table-ranks").DataTable({bPaginate:true,bLengthChange:false,bFilter:true,iDisplayLength:25,columnDefs:[{targets:[3,4],sortable:true,type:"formatted-rank"},{targets:[0,5,6],sortable:false}],aaSorting:[3,"asc"]})}else{ranksTable=$this.find("table.table-ranks").DataTable({bPaginate:true,bLengthChange:false,bFilter:true,iDisplayLength:25,columnDefs:[{targets:[3,4],sortable:true,type:"formatted-rank"},{targets:[0,5],sortable:false}],aaSorting:[3,"asc"]})}$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($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=[];$($this.find(".sq_bulk_input").serializeArray()).each(function(){$sq_bulk_input.push($(this).attr("value"))});$button.addClass("sq_minloading");$.post(sqQuery.ajaxurl,{action:$this.find(".sq_bulk_action").find(":selected").val(),inputs:$sq_bulk_input,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_rank_bulk_refresh"){$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_rank_bulk_delete"){$this.find(".sq_bulk_input").each(function(){if($(this).is(":checked")){ranksTable.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")}})};$this.bulkAction();return $this};$(document).ready(function(){if($("#sq_ranks").find("table.table-ranks").length>0){$("#sq_ranks").sq_Ranking()}$(".sq_research_add_briefcase").each(function(){$(this).on("click",function(){$(this).sq_addBriefcase()})})})})(jQuery);
1
+ if(typeof SQ_DEBUG==="undefined")var SQ_DEBUG=false;(function($){"use strict";$.extend($.fn.dataTableExt.oSort,{"formatted-num-pre":function(a){return parseInt(a)>0?parseInt(a.replace(/[^\d\-\.]/g,"")):99},"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>");div.find(".badge").remove();if(div.text()==="N/A"||div.text()==="GSC")return 999;return parseFloat(div.text())},"formatted-rank-asc":function(a,b){return a-b},"formatted-rank-desc":function(a,b){return b-a}});$.fn.sq_Ranking=function(){var $this=this;var ranksTable;if($this.find("table.table-ranks").find("tr:first th").length===7){ranksTable=$this.find("table.table-ranks").DataTable({sDom:"Rfrtlip",bPaginate:true,bLengthChange:true,iDisplayLength:25,lengthMenu:[[10,25,50,100,-1],[10,25,50,100,"All"]],bFilter:true,columnDefs:[{targets:[3,4],sortable:true,type:"formatted-rank"},{targets:[0,5,6],sortable:false}],aaSorting:[3,"asc"]})}else{ranksTable=$this.find("table.table-ranks").DataTable({sDom:"Rfrtlip",bPaginate:true,bLengthChange:true,iDisplayLength:25,lengthMenu:[[10,25,50,100,-1],[10,25,50,100,"All"]],bFilter:true,columnDefs:[{targets:[3,4],sortable:true,type:"formatted-rank"},{targets:[0,5],sortable:false}],aaSorting:[3,"asc"]})}$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($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=[];$($this.find(".sq_bulk_input").serializeArray()).each(function(){$sq_bulk_input.push($(this).attr("value"))});$button.addClass("sq_minloading");$.post(sqQuery.ajaxurl,{action:$this.find(".sq_bulk_action").find(":selected").val(),inputs:$sq_bulk_input,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_rank_bulk_refresh"){$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_rank_bulk_delete"){$this.find(".sq_bulk_input").each(function(){if($(this).is(":checked")){ranksTable.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")}})};$this.bulkAction();return $this};$(document).ready(function(){if($("#sq_ranks").find("table.table-ranks").length>0){$("#sq_ranks").sq_Ranking()}$(".sq_research_add_briefcase").each(function(){$(this).on("click",function(){$(this).sq_addBriefcase()})})})})(jQuery);
view/assets/js/research.min.js CHANGED
@@ -1 +1 @@
1
- if(typeof SQ_DEBUG==="undefined")var SQ_DEBUG=false;(function($){"use strict";var sqs_script="kr";$(document).keypress(function(event){var keycode=event.keyCode||event.which;if(keycode==13){$(".sqd-submit:visible").trigger("click")}});$.sq_steps=function(step){$(".sq_step").hide();$(".sq_step"+step).show()};$.fn.sq_getSuggested=function(){var $this=this;if($("input[name=sq_input_keyword]").val()===""){$.sq_showMessage("Add a keyword first",2e3);return}var $keywords=$("input[name=sq_input_keyword]").val();var $country=$("select[name=sq_select_country] option:selected").val();$.sq_setCookie("sq_country",$country);if($keywords!==""){$.sq_steps(2);$this.find("sq_suggestions").addClass("sq_loading");$.post(sqQuery.ajaxurl,{action:"sq_ajax_research_others",keyword:$keywords,country:$country,lang:"en",sq_nonce:sqQuery.nonce}).done(function(response){$this.find("sq_suggestions").removeClass("sq_loading");var $count=0;if(typeof response.keywords!=="undefined"&&response.keywords!==null&&response.keywords.length>0){$this.find(".sq_suggested").each(function(){if(typeof response.keywords[$count]!=="undefined"){$(this).html('<input type="checkbox" id="sq_input_keywords'+$count+'" name="sq_input_keywords[]" class="sq_input_keywords custom-control-input" value="'+response.keywords[$count]+'"><label class="custom-control-label" for="sq_input_keywords'+$count+'">'+response.keywords[$count]+"</label>");$count++}else{$(this).hide()}});var limit=3;$this.find("input.sq_input_keywords").on("change",function(evt){if($this.find("input.sq_input_keywords:checked").length>limit){$(this).prop("checked",false);alert($this.find("div.text-danger").text())}})}else if(typeof response.error!=="undefined"&&response.error==="limit_exceeded"){$this.find(".sq_limit_exceeded").show()}}).fail(function(){$this.find("sq_suggestions").removeClass("sq_loading").show();$this.prepend('<div class="text-center text-warning">Squirrly Library loading error. Please contact us at support@squirrly.co</div>')})}};$.fn.sq_getResearch=function($count){var $this=this;$.sq_steps(3);$this.find(".btn").hide();var $loadingdiv=$("div.sq_step3").find(".sq_loading_steps");var $keywords=$("input[name=sq_input_keyword]").val();var $post_id=$("input[name=post_id]").val();var $process=0;var $table=$("div.sq_step3 table");var $country=$("select[name=sq_select_country] option:selected").val();$.sq_setCookie("sq_country",$country);if(typeof $count==="undefined"){$count=10}$("input.sq_input_keywords:checked").each(function(){$keywords+=","+$(this).val()});if($.fn.DataTable.isDataTable($table)){$table.DataTable().destroy();$table.find("tbody").html("");$table.hide();$this.off("sq_research_loaded");$(".sq_research_success").hide();$loadingdiv.hide()}$this.addClass("sq_loading");var $loadingstep=1;$loadingdiv.show();$loadingdiv.find(".sq_loading_step").hide();$loadingdiv.find(".sq_loading_step"+$loadingstep).show();$.post(sqQuery.ajaxurl,{action:"sq_ajax_research_process",keywords:$keywords,country:$country,count:$count,lang:"en",sq_nonce:sqQuery.nonce}).done(function(response){if(typeof response.error!=="undefined"){$this.removeClass("sq_loading");$loadingdiv.hide();$.sq_showMessage(response.error,1e4).addClass("sq_error")}else{if(typeof response.id!=="undefined"){$process=response.id}$this.trigger("sq_research_loaded")}},"json");$this.on("sq_research_loaded",function(){if($process){$.post(sqQuery.ajaxurl,{action:"sq_ajax_research_process",id:$process,post_id:$post_id,sq_nonce:sqQuery.nonce}).done(function(response){if(typeof response.error!=="undefined"){$this.off("sq_research_loaded");$this.removeClass("sq_loading");$loadingdiv.hide();$this.find(".btn").show();$.sq_showMessage(response.error,1e4).addClass("sq_error")}if(typeof response.done!=="undefined"&&response.done&&typeof response.html!=="undefined"){$this.off("sq_research_loaded");$this.removeClass("sq_loading");$loadingdiv.hide();$this.find(".btn").show();$table.find("tbody").html(response.html);$table.show();$(".sq_research_success").show();$(".sq_tips").show();$table.find(".sq_research_add_briefcase").each(function(){$(this).on("click",function(){$(this).sq_addBriefcase()})});$.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}});$table.DataTable({columnDefs:[{targets:[5,6],sortable:false},{targets:[2,3,4],sortable:true,type:"formatted-value"}],bPaginate:false,bLengthChange:false,bFilter:true,iDisplayLength:50,fixedColumns:true})}else{$loadingstep++;if($loadingstep<=9){$loadingdiv.find(".sq_loading_step").hide();$loadingdiv.find(".sq_loading_step"+$loadingstep).show()}if($loadingstep>50){$this.off("sq_research_loaded");$this.removeClass("sq_loading");$loadingdiv.hide();$this.find(".btn").show();$.sq_showMessage("Lost connection with the server. Please make sure you whitelisted the IP from https://api.squirrly.co",1e4).addClass("sq_error")}setTimeout(function(){$this.trigger("sq_research_loaded")},5e3)}}).fail(function(){$this.removeClass("sq_loading");$loadingdiv.hide();$this.find(".btn").show();$(".sq_research_timeout_error").show()},"json")}else{$this.off("sq_research_loaded");$this.removeClass("sq_loading");$loadingdiv.hide();$this.find(".btn").show();$.sq_showMessage("Could not start the research on our server. Please check again in a minute.",1e4).addClass("sq_error")}});return $this};$.fn.sq_getHistory=function(){var $this=this;var $id=$this.data("id");var $destination=$($this.data("destination"));if(!$destination.length){if(!$("#history"+$id).length){$destination=$('<tr id="history'+$id+'"></tr>');$this.parents("tr:last").after($destination);$destination.show()}}else{$($destination).remove();return}if($($destination).is(":visible")){$this.addClass("sq_minloading");$.post(sqQuery.ajaxurl,{action:"sq_ajax_research_history",id:$this.data("id"),sq_nonce:sqQuery.nonce}).done(function(response){$this.removeClass("sq_minloading");if(typeof response.html!=="undefined"){$destination.html(response.html)}$destination.find(".sq_research_add_briefcase").each(function(){$(this).on("click",function(){$(this).sq_addBriefcase()})})}).fail(function(){$this.removeClass("sq_minloading");$destination.html('<td colspan="4" class="col-sm-12 text-center my-3 text-danger">Could not find the records</td>')},"json")}};$(document).ready(function(){$(".sq_history_details").on("click",function(){$(this).sq_getHistory()});$(".sq_research_add_briefcase").each(function(){$(this).on("click",function(){$(this).sq_addBriefcase()})});$(".dropdown-toggle").dropdown()})})(jQuery);
1
+ if(typeof SQ_DEBUG==="undefined")var SQ_DEBUG=false;(function($){"use strict";var sqs_script="kr";$(document).keypress(function(event){var keycode=event.keyCode||event.which;if(keycode==13){$(".sqd-submit:visible").trigger("click")}});$.sq_steps=function(step){$(".sq_step").hide();$(".sq_step"+step).show()};$.fn.sq_getSuggested=function(){var $this=this;if($("input[name=sq_input_keyword]").val()===""){$.sq_showMessage("Add a keyword first",2e3);return}var $keywords=$("input[name=sq_input_keyword]").val();var $country=$("select[name=sq_select_country] option:selected").val();$.sq_setCookie("sq_country",$country);if($keywords!==""){$.sq_steps(2);$this.find("sq_suggestions").addClass("sq_loading");$.post(sqQuery.ajaxurl,{action:"sq_ajax_research_others",keyword:$keywords,country:$country,lang:"en",sq_nonce:sqQuery.nonce}).done(function(response){$this.find("sq_suggestions").removeClass("sq_loading");var $count=0;if(typeof response.keywords!=="undefined"&&response.keywords!==null&&response.keywords.length>0){$this.find(".sq_suggested").each(function(){if(typeof response.keywords[$count]!=="undefined"){$(this).html('<input type="checkbox" id="sq_input_keywords'+$count+'" name="sq_input_keywords[]" class="sq_input_keywords custom-control-input" value="'+response.keywords[$count]+'"><label class="custom-control-label" for="sq_input_keywords'+$count+'">'+response.keywords[$count]+"</label>");$count++}else{$(this).hide()}});var limit=3;$this.find("input.sq_input_keywords").on("change",function(evt){if($this.find("input.sq_input_keywords:checked").length>limit){$(this).prop("checked",false);alert($this.find("div.text-danger").text())}})}else if(typeof response.error!=="undefined"&&response.error==="limit_exceeded"){$this.find(".sq_limit_exceeded").show()}}).fail(function(){$this.find("sq_suggestions").removeClass("sq_loading").show();$this.prepend('<div class="text-center text-warning">Squirrly Library loading error. Please contact us at support@squirrly.co</div>')})}};$.fn.sq_getResearch=function($count){var $this=this;$.sq_steps(3);$this.find(".btn").hide();var $loadingdiv=$("div.sq_step3").find(".sq_loading_steps");var $keywords=$("input[name=sq_input_keyword]").val();var $post_id=$("input[name=post_id]").val();var $process=0;var $table=$("div.sq_step3 table");var $country=$("select[name=sq_select_country] option:selected").val();$.sq_setCookie("sq_country",$country);if(typeof $count==="undefined"){$count=10}$("input.sq_input_keywords:checked").each(function(){$keywords+=","+$(this).val()});if($.fn.DataTable.isDataTable($table)){$table.DataTable().destroy();$table.find("tbody").html("");$table.hide();$this.off("sq_research_loaded");$(".sq_research_success").hide();$loadingdiv.hide()}$this.addClass("sq_loading");var $loadingstep=1;$loadingdiv.show();$loadingdiv.find(".sq_loading_step").hide();$loadingdiv.find(".sq_loading_step"+$loadingstep).show();$.post(sqQuery.ajaxurl,{action:"sq_ajax_research_process",keywords:$keywords,country:$country,count:$count,lang:"en",sq_nonce:sqQuery.nonce}).done(function(response){if(typeof response.error!=="undefined"){$this.removeClass("sq_loading");$loadingdiv.hide();$.sq_showMessage(response.error,1e4).addClass("sq_error")}else{if(typeof response.id!=="undefined"){$process=response.id}$this.trigger("sq_research_loaded")}},"json");$this.on("sq_research_loaded",function(){if($process){$.post(sqQuery.ajaxurl,{action:"sq_ajax_research_process",id:$process,post_id:$post_id,sq_nonce:sqQuery.nonce}).done(function(response){if(typeof response.error!=="undefined"){$this.off("sq_research_loaded");$this.removeClass("sq_loading");$loadingdiv.hide();$this.find(".btn").show();$.sq_showMessage(response.error,1e4).addClass("sq_error")}if(typeof response.done!=="undefined"&&response.done&&typeof response.html!=="undefined"){$this.off("sq_research_loaded");$this.removeClass("sq_loading");$loadingdiv.hide();$this.find(".btn").show();$table.find("tbody").html(response.html);$table.show();$(".sq_research_success").show();$(".sq_tips").show();$table.find(".sq_research_add_briefcase").each(function(){$(this).on("click",function(){$(this).sq_addBriefcase()})});$.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}});$table.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})}else{$loadingstep++;if($loadingstep<=9){$loadingdiv.find(".sq_loading_step").hide();$loadingdiv.find(".sq_loading_step"+$loadingstep).show()}if($loadingstep>50){$this.off("sq_research_loaded");$this.removeClass("sq_loading");$loadingdiv.hide();$this.find(".btn").show();$.sq_showMessage("Lost connection with the server. Please make sure you whitelisted the IP from https://api.squirrly.co",1e4).addClass("sq_error")}setTimeout(function(){$this.trigger("sq_research_loaded")},5e3)}}).fail(function(){$this.removeClass("sq_loading");$loadingdiv.hide();$this.find(".btn").show();$(".sq_research_timeout_error").show()},"json")}else{$this.off("sq_research_loaded");$this.removeClass("sq_loading");$loadingdiv.hide();$this.find(".btn").show();$.sq_showMessage("Could not start the research on our server. Please check again in a minute.",1e4).addClass("sq_error")}});return $this};$.fn.sq_getHistory=function(){var $this=this;var $id=$this.data("id");var $destination=$($this.data("destination"));if(!$destination.length){if(!$("#history"+$id).length){$destination=$('<tr id="history'+$id+'"></tr>');$this.parents("tr:last").after($destination);$destination.show()}}else{$($destination).remove();return}if($($destination).is(":visible")){$this.addClass("sq_minloading");$.post(sqQuery.ajaxurl,{action:"sq_ajax_research_history",id:$this.data("id"),sq_nonce:sqQuery.nonce}).done(function(response){$this.removeClass("sq_minloading");if(typeof response.html!=="undefined"){$destination.html(response.html)}$destination.find(".sq_research_add_briefcase").each(function(){$(this).on("click",function(){$(this).sq_addBriefcase()})})}).fail(function(){$this.removeClass("sq_minloading");$destination.html('<td colspan="4" class="col-sm-12 text-center my-3 text-danger">Could not find the records</td>')},"json")}};$(document).ready(function(){$(".sq_history_details").on("click",function(){$(this).sq_getHistory()});$(".sq_research_add_briefcase").each(function(){$(this).on("click",function(){$(this).sq_addBriefcase()})});$(".dropdown-toggle").dropdown()})})(jQuery);