Version Description
- Changed Squirrly look
- Compatible with WP eCommerce plugin
- Made SEO improvements for Woocommerce plugin
- Interactive learning for the entire Squirrly SEO plugin
- Faster post save for long text and remote images
- Settings and SEO check improved
- Added robots.txt for multisites with security
- Added sitemap for multisites
- Added sitemap for images and videos for each article
- Added the Json LD in Structured Data META
- Added the social linked Data for Json LD and publisher
- Added the favicon.ico for multisites
- Added the icos for apple devices
- Added the SEO progress in post editor
- Added the SEO Star option in Dashboard
- Fixed bugs for multisites and made it compatible with WP 4.2
- Fixed the snippet title and description special chars
- Fixed the custom fields variable in post editor
- Fixed the site icon and added the site icon for multisites
- Fixed Sitemap for default permalink option
Download this release
Release Info
Developer | cifi |
Plugin | SEO SQUIRRLY™ |
Version | 5.0.0 |
Comparing to | |
See all releases |
Code changes from version 3.4.4 to 5.0.0
- classes/SQ_Action.php +2 -4
- classes/SQ_BlockController.php +12 -0
- classes/SQ_Error.php +14 -7
- classes/SQ_FrontController.php +0 -3
- classes/SQ_HookController.php +0 -7
- classes/SQ_Ranking.php +2 -2
- classes/SQ_Sitemap.php +0 -382
- classes/SQ_Tools.php +246 -118
- config/config.php +3 -1
- controllers/SQ_Frontend.php +80 -11
- controllers/SQ_Menu.php +106 -261
- controllers/SQ_Post.php +36 -22
- controllers/SQ_PostsList.php +6 -2
- controllers/SQ_Sitemaps.php +417 -0
- core/SQ_BlockAccount/SQ_BlockAccount.php +2 -8
- core/SQ_BlockAffiliate/SQ_BlockAffiliate.php +4 -4
- core/SQ_BlockAudit/SQ_BlockAudit.php +0 -9
- core/SQ_BlockDashboard/SQ_BlockDashboard.php +4 -0
- core/SQ_BlockPostsAnalytics/SQ_BlockPostsAnalytics.php +1 -0
- core/SQ_BlockSettings/SQ_BlockSettings.php +63 -0
- core/SQ_BlockSettingsSeo/SQ_BlockSettingsSeo.php +267 -0
- core/SQ_BlockStatus/SQ_BlockStatus.php +0 -11
- core/SQ_Blockseo/SQ_Blockseo.php +3 -2
- core/config.xml +10 -9
- languages/squirrly-seo-ru_RU.mo +0 -0
- languages/squirrly-seo-ru_RU.po +0 -1193
- models/SQ_BlockSettingsSeo.php +348 -0
- models/SQ_BlockStatus.php +0 -158
- models/SQ_Blockseo.php +3 -3
- models/SQ_Frontend.php +525 -450
- models/SQ_Ico.php +20 -8
- models/SQ_Menu.php +0 -245
- models/SQ_Post.php +5 -5
- models/SQ_Sitemaps.php +443 -0
- readme.txt +28 -5
- squirrly.php +3 -5
- themes/default/SQ_BlocStatus.php +0 -1
- themes/default/SQ_BlockAccount.php +23 -30
- themes/default/SQ_BlockAffiliate.php +88 -90
- themes/default/SQ_BlockAnalytics.php +17 -10
- themes/default/SQ_BlockAudit.php +0 -9
- themes/default/SQ_BlockDashboard.php +87 -47
- themes/default/SQ_BlockHelp.php +0 -36
- themes/default/SQ_BlockSettings.php +290 -0
- themes/default/SQ_BlockSettingsSeo.php +501 -0
- themes/default/SQ_Blocklogin.php +2 -4
- themes/default/SQ_Blocksearch.php +1 -1
- themes/default/SQ_Menu.php +0 -536
- themes/default/SQ_notices.php +14 -1
- themes/default/css/sq_blockaccount.css +26 -0
- themes/default/css/sq_blockaudit.css +0 -1
- themes/default/css/sq_blockdashboard.css +117 -0
- themes/default/css/sq_blockresearch.css +443 -1
- themes/default/css/sq_blocksearch.css +1004 -1
- themes/default/css/sq_blockseo.css +500 -1
- themes/default/css/sq_blocksettings.css +37 -0
- themes/default/css/sq_blocksettingsseo.css +175 -0
- themes/default/css/sq_frontend.css +126 -1
- themes/default/css/sq_global.css +414 -1
- themes/default/css/sq_menu.css +890 -1
- themes/default/css/sq_post.css +398 -1
- themes/default/css/sq_postslist.css +622 -1
- themes/default/css/sq_sitemap.xsl +97 -0
- themes/default/css/sq_sitemapindex.xsl +61 -0
- themes/default/img/avatar-margin.png +0 -0
- themes/default/img/banners/banner1.jpg +0 -0
- themes/default/img/banners/banner2.jpg +0 -0
- themes/default/img/banners/banner3.png +0 -0
- themes/default/img/complete.png +0 -0
- themes/default/img/dashboard_analytics.png +0 -0
- themes/default/img/dashboard_assistant.png +0 -0
- themes/default/img/dashboard_audit.png +0 -0
- themes/default/img/dashboard_research.png +0 -0
- themes/default/img/editor/complete.png +0 -0
- themes/default/img/editor/heading.png +0 -0
- themes/default/img/{sq_searching.gif → editor/sq_searching.gif} +0 -0
- themes/default/img/front/avatar-margin.png +0 -0
- themes/default/img/header_back.png +0 -0
- themes/default/img/header_stars.png +0 -0
- themes/default/img/heading.png +0 -0
- themes/default/img/loading.gif +0 -0
- themes/default/img/menu_icon_16.png +0 -0
- themes/default/img/minloading.gif +0 -0
- themes/default/img/minloading.png +0 -0
- themes/default/img/settings/facebook.png +0 -0
- themes/default/img/settings/facebook_tmb.png +0 -0
- themes/default/img/settings/googlejsonld.png +0 -0
- themes/default/img/settings/googlejsonld_tmb.png +0 -0
- themes/default/img/settings/header_stars.png +0 -0
- themes/default/img/{settings_login.jpg → settings/login.jpg} +0 -0
- themes/default/img/{settings_login_done.jpg → settings/login_done.jpg} +0 -0
- themes/default/img/settings/menu_icon_16.png +0 -0
- themes/default/img/settings/squirrly.png +0 -0
- themes/default/img/settings/twitter.png +0 -0
- themes/default/img/settings/twitter_tmb.png +0 -0
- themes/default/img/settings_edit.png +0 -0
- themes/default/img/settings_howto.jpg +0 -0
- themes/default/img/sprite.png +0 -0
- themes/default/img/status/backgroundv2.jpg +0 -0
- themes/default/img/status/squirrly_cheers.png +0 -0
- themes/default/js/sq_blockaudit.js +0 -3
- themes/default/js/sq_blockdashboard.js +26 -0
- themes/default/js/sq_blocklogin.js +230 -23
- themes/default/js/sq_blocksettings.js +58 -0
- themes/default/js/sq_blocksettingsseo.js +302 -0
- themes/default/js/sq_blocksupport.js +240 -15
- themes/default/js/sq_menu.js +344 -37
- themes/default/js/tinymce.js +20 -1
- uninstall.php +0 -1
classes/SQ_Action.php
CHANGED
@@ -35,7 +35,6 @@ class SQ_Action extends SQ_FrontController {
|
|
35 |
if (isset($_SERVER['PHP_SELF']) && strpos($_SERVER['PHP_SELF'], '/admin-ajax.php') !== false) {
|
36 |
return;
|
37 |
}
|
38 |
-
|
39 |
$this->actions = array();
|
40 |
$this->getActions(((isset($_GET['action']) ? $_GET['action'] : (isset($_POST['action']) ? $_POST['action'] : ''))));
|
41 |
}
|
@@ -129,10 +128,9 @@ class SQ_Action extends SQ_FrontController {
|
|
129 |
if (SQ_Tools::$options['sq_api'] == '' && $module <> 'sq/login' && $module <> 'sq/register') {
|
130 |
return false;
|
131 |
}
|
132 |
-
$lang = (defined('WPLANG') ? WPLANG : 'en_US');
|
133 |
|
134 |
$extra = array('user_url' => urlencode(get_bloginfo('wpurl')),
|
135 |
-
'lang' =>
|
136 |
'versq' => SQ_VERSION_ID,
|
137 |
'verwp' => WP_VERSION_ID,
|
138 |
'verphp' => PHP_VERSION_ID,
|
@@ -165,7 +163,7 @@ class SQ_Action extends SQ_FrontController {
|
|
165 |
|
166 |
$url = self::cleanUrl(_SQ_API_URL_ . $module . "?" . $parameters);
|
167 |
//SQ_Tools::dump($url);
|
168 |
-
return SQ_Tools::sq_remote_get($url, array('timeout' => $timeout));
|
169 |
}
|
170 |
|
171 |
/**
|
35 |
if (isset($_SERVER['PHP_SELF']) && strpos($_SERVER['PHP_SELF'], '/admin-ajax.php') !== false) {
|
36 |
return;
|
37 |
}
|
|
|
38 |
$this->actions = array();
|
39 |
$this->getActions(((isset($_GET['action']) ? $_GET['action'] : (isset($_POST['action']) ? $_POST['action'] : ''))));
|
40 |
}
|
128 |
if (SQ_Tools::$options['sq_api'] == '' && $module <> 'sq/login' && $module <> 'sq/register') {
|
129 |
return false;
|
130 |
}
|
|
|
131 |
|
132 |
$extra = array('user_url' => urlencode(get_bloginfo('wpurl')),
|
133 |
+
'lang' => (defined('WPLANG') ? WPLANG : 'en_US'),
|
134 |
'versq' => SQ_VERSION_ID,
|
135 |
'verwp' => WP_VERSION_ID,
|
136 |
'verphp' => PHP_VERSION_ID,
|
163 |
|
164 |
$url = self::cleanUrl(_SQ_API_URL_ . $module . "?" . $parameters);
|
165 |
//SQ_Tools::dump($url);
|
166 |
+
return SQ_Tools::sq_remote_get($url, array(), array('timeout' => $timeout));
|
167 |
}
|
168 |
|
169 |
/**
|
classes/SQ_BlockController.php
CHANGED
@@ -56,6 +56,18 @@ class SQ_BlockController {
|
|
56 |
return $this->view->echoBlock($this);
|
57 |
}
|
58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
/**
|
60 |
* This function is called from Ajax class as a wp_ajax_action
|
61 |
*
|
56 |
return $this->view->echoBlock($this);
|
57 |
}
|
58 |
|
59 |
+
public function preloadSettings() {
|
60 |
+
|
61 |
+
echo '<script type="text/javascript">
|
62 |
+
var __blog_url = "' . get_bloginfo('url') . '";
|
63 |
+
var __token = "' . SQ_Tools::$options['sq_api'] . '";
|
64 |
+
var __api_url = "' . _SQ_API_URL_ . '";
|
65 |
+
jQuery(document).ready(function () {
|
66 |
+
sq_getHelp("' . str_replace("sq_block", "", strtolower($this->name)) . '", "content");
|
67 |
+
});
|
68 |
+
</script>';
|
69 |
+
}
|
70 |
+
|
71 |
/**
|
72 |
* This function is called from Ajax class as a wp_ajax_action
|
73 |
*
|
classes/SQ_Error.php
CHANGED
@@ -55,16 +55,24 @@ class SQ_Error extends SQ_FrontController {
|
|
55 |
die();
|
56 |
break;
|
57 |
case 'settings':
|
58 |
-
if (isset(SQ_Tools::$options['ignore_warn']) && SQ_Tools::$options['ignore_warn'] == 1)
|
59 |
-
break;
|
60 |
-
|
61 |
/* switch off option for notifications */
|
62 |
self::$switch_off = "<a href=\"javascript:void(0);\" onclick=\"jQuery.post( ajaxurl, {action: 'sq_warnings_off', nonce: '" . wp_create_nonce(_SQ_NONCE_ID_) . "'}, function(data) { if (data) { jQuery('#sq_ignore_warn').attr('checked', true); jQuery('.sq_message').hide(); jQuery('#toplevel_page_squirrly .awaiting-mod').fadeOut('slow'); } });\" >" . __("Turn off warnings!", _SQ_PLUGIN_NAME_) . "</a>";
|
63 |
-
self::showError(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
break;
|
65 |
default:
|
66 |
|
67 |
-
self::showError(
|
68 |
}
|
69 |
}
|
70 |
self::$errors = array();
|
@@ -75,8 +83,7 @@ class SQ_Error extends SQ_FrontController {
|
|
75 |
*
|
76 |
* @return void
|
77 |
*/
|
78 |
-
public static function showError($message, $id = '') {
|
79 |
-
$type = 'sq_error';
|
80 |
|
81 |
if (file_exists(_SQ_THEME_DIR_ . 'SQ_notices.php')) {
|
82 |
include (_SQ_THEME_DIR_ . 'SQ_notices.php');
|
55 |
die();
|
56 |
break;
|
57 |
case 'settings':
|
|
|
|
|
|
|
58 |
/* switch off option for notifications */
|
59 |
self::$switch_off = "<a href=\"javascript:void(0);\" onclick=\"jQuery.post( ajaxurl, {action: 'sq_warnings_off', nonce: '" . wp_create_nonce(_SQ_NONCE_ID_) . "'}, function(data) { if (data) { jQuery('#sq_ignore_warn').attr('checked', true); jQuery('.sq_message').hide(); jQuery('#toplevel_page_squirrly .awaiting-mod').fadeOut('slow'); } });\" >" . __("Turn off warnings!", _SQ_PLUGIN_NAME_) . "</a>";
|
60 |
+
self::showError("<span class='sq_notice_author'>" . _SQ_PLUGIN_NAME_ . "</span> " . $error['text'] . " ", $error['id']);
|
61 |
+
break;
|
62 |
+
|
63 |
+
case 'helpnotice':
|
64 |
+
if (isset(SQ_Tools::$options['ignore_warn']) && SQ_Tools::$options['ignore_warn'] == 1) {
|
65 |
+
break;
|
66 |
+
}
|
67 |
+
self::$switch_off = "<a href=\"javascript:void(0);\" onclick=\"jQuery.post( ajaxurl, {action: 'sq_warnings_off', nonce: '" . wp_create_nonce(_SQ_NONCE_ID_) . "'}, function(data) { if (data) { jQuery('#sq_ignore_warn').attr('checked', true); jQuery('.sq_message').hide(); jQuery('#toplevel_page_squirrly .awaiting-mod').fadeOut('slow'); } });\" >" . __("Don't bother me!", _SQ_PLUGIN_NAME_) . "</a>";
|
68 |
+
self::showError("<span class='sq_notice_author'>" . _SQ_PLUGIN_NAME_ . "</span> " . $error['text'] . " " . self::$switch_off, $error['id'], 'sq_helpnotice');
|
69 |
+
break;
|
70 |
+
case 'success':
|
71 |
+
self::showError("<span class='sq_notice_author'>" . _SQ_PLUGIN_NAME_ . "</span> " . $error['text'] . " ", $error['id'], 'sq_success');
|
72 |
break;
|
73 |
default:
|
74 |
|
75 |
+
self::showError("<span class='sq_notice_author'>" . _SQ_PLUGIN_NAME_ . "</span> " . $error['text'], $error['id']);
|
76 |
}
|
77 |
}
|
78 |
self::$errors = array();
|
83 |
*
|
84 |
* @return void
|
85 |
*/
|
86 |
+
public static function showError($message, $id = '', $type = 'sq_error') {
|
|
|
87 |
|
88 |
if (file_exists(_SQ_THEME_DIR_ . 'SQ_notices.php')) {
|
89 |
include (_SQ_THEME_DIR_ . 'SQ_notices.php');
|
classes/SQ_FrontController.php
CHANGED
@@ -86,9 +86,6 @@ class SQ_FrontController {
|
|
86 |
|
87 |
/* show the admin menu and post actions */
|
88 |
$this->loadMenu();
|
89 |
-
|
90 |
-
/* Load the Sitemap Generator */
|
91 |
-
SQ_ObjController::getController('SQ_Sitemap', false);
|
92 |
}
|
93 |
|
94 |
/**
|
86 |
|
87 |
/* show the admin menu and post actions */
|
88 |
$this->loadMenu();
|
|
|
|
|
|
|
89 |
}
|
90 |
|
91 |
/**
|
classes/SQ_HookController.php
CHANGED
@@ -14,16 +14,9 @@ class SQ_HookController {
|
|
14 |
$this->admin_hooks = array('init' => 'admin_init',
|
15 |
'head' => 'admin_head',
|
16 |
'footer' => 'admin_footer',
|
17 |
-
'wmenu' => '_admin_menu',
|
18 |
'menu' => 'admin_menu',
|
19 |
-
'submenu' => 'add_submenu_page',
|
20 |
'preload' => 'template_redirect',
|
21 |
-
'loaded' => 'plugins_loaded',
|
22 |
-
'xml' => 'admin_xml_ns',
|
23 |
-
'scripts' => 'admin_enqueue_scripts',
|
24 |
'notices' => 'admin_notices',
|
25 |
-
'shutdown' => 'shutdown',
|
26 |
-
'fronttitletheme' => 'thematic_doctitle',
|
27 |
'frontinit' => 'init',
|
28 |
'fronthead' => 'wp_head',
|
29 |
'frontfooter' => 'wp_footer',
|
14 |
$this->admin_hooks = array('init' => 'admin_init',
|
15 |
'head' => 'admin_head',
|
16 |
'footer' => 'admin_footer',
|
|
|
17 |
'menu' => 'admin_menu',
|
|
|
18 |
'preload' => 'template_redirect',
|
|
|
|
|
|
|
19 |
'notices' => 'admin_notices',
|
|
|
|
|
20 |
'frontinit' => 'init',
|
21 |
'fronthead' => 'wp_head',
|
22 |
'frontfooter' => 'wp_footer',
|
classes/SQ_Ranking.php
CHANGED
@@ -170,13 +170,13 @@ class SQ_Ranking extends SQ_FrontController {
|
|
170 |
//check 20 keyword at one time
|
171 |
$sql = "SELECT `post_id`, `meta_value`
|
172 |
FROM `" . $wpdb->postmeta . "`
|
173 |
-
WHERE (`meta_key` = '
|
174 |
ORDER BY `post_id` DESC";
|
175 |
|
176 |
if ($rows = $wpdb->get_results($sql)) {
|
177 |
$count = 0;
|
178 |
foreach ($rows as $row) {
|
179 |
-
if ($count >
|
180 |
break; //check only 10 keywords at the time
|
181 |
}
|
182 |
if ($row->meta_value <> '') {
|
170 |
//check 20 keyword at one time
|
171 |
$sql = "SELECT `post_id`, `meta_value`
|
172 |
FROM `" . $wpdb->postmeta . "`
|
173 |
+
WHERE (`meta_key` = '_sq_post_keyword')
|
174 |
ORDER BY `post_id` DESC";
|
175 |
|
176 |
if ($rows = $wpdb->get_results($sql)) {
|
177 |
$count = 0;
|
178 |
foreach ($rows as $row) {
|
179 |
+
if ($count > SQ_Tools::$options['sq_google_ranksperhour']) {
|
180 |
break; //check only 10 keywords at the time
|
181 |
}
|
182 |
if ($row->meta_value <> '') {
|
classes/SQ_Sitemap.php
DELETED
@@ -1,382 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* Class for Sitemap Generator
|
5 |
-
*/
|
6 |
-
class SQ_Sitemap extends SQ_FrontController {
|
7 |
-
/* @var string file path */
|
8 |
-
|
9 |
-
var $file;
|
10 |
-
var $opt = array();
|
11 |
-
var $data = array();
|
12 |
-
var $args = array();
|
13 |
-
var $posts_limit = 0;
|
14 |
-
|
15 |
-
public function __construct() {
|
16 |
-
if (!isset(SQ_Tools::$options['sq_use']) || SQ_Tools::$options['sq_use'] == 0)
|
17 |
-
return;
|
18 |
-
if (isset(SQ_Tools::$options['sq_auto_sitemap']) && SQ_Tools::$options['sq_auto_sitemap'] == 0)
|
19 |
-
return;
|
20 |
-
|
21 |
-
$this->filename = 'sitemap.xml';
|
22 |
-
|
23 |
-
$this->file = ABSPATH . $this->filename;
|
24 |
-
//For sitemap ping
|
25 |
-
$this->args['timeout'] = 5;
|
26 |
-
$this->opt = array('home' => array(1, 'daily'),
|
27 |
-
'page' => array(0.6, 'monthly'),
|
28 |
-
'post' => array(0.8, 'weekly'),
|
29 |
-
'static' => array(0.6, 'weekly'),
|
30 |
-
'category' => array(0.4, 'monthly'),
|
31 |
-
'archive' => array(0.3, 'weekly'),
|
32 |
-
'oldarchive' => array(0.3, 'monthly'),
|
33 |
-
'tag' => array(0.3, 'weekly'),
|
34 |
-
'author' => array(0.3, 'monthly'),
|
35 |
-
);
|
36 |
-
|
37 |
-
//Existing posts was deleted
|
38 |
-
add_action('delete_post', array($this, 'generateSitemap'), 9999, 1);
|
39 |
-
//Existing post was published
|
40 |
-
add_action('publish_post', array($this, 'generateSitemap'), 9999, 1);
|
41 |
-
//Existing page was published
|
42 |
-
add_action('publish_page', array($this, 'generateSitemap'), 9999, 1);
|
43 |
-
}
|
44 |
-
|
45 |
-
public function init() {
|
46 |
-
return;
|
47 |
-
}
|
48 |
-
|
49 |
-
public function action() {
|
50 |
-
|
51 |
-
}
|
52 |
-
|
53 |
-
/**
|
54 |
-
* Generate the XML sitemap for google
|
55 |
-
*/
|
56 |
-
public function generateSitemap() {
|
57 |
-
global $wpdb, $wp_query, $wp_version;
|
58 |
-
/* get the home url */
|
59 |
-
$home = get_bloginfo('url');
|
60 |
-
$homeID = 0;
|
61 |
-
$wpCompat = (floatval($wp_version) < 2.1);
|
62 |
-
|
63 |
-
/* If the site starts with a page */
|
64 |
-
if (get_option('show_on_front') == 'page' && get_option('page_on_front')) {
|
65 |
-
$page = get_page(get_option('page_on_front'));
|
66 |
-
if ($page) {
|
67 |
-
$homeID = $page->ID;
|
68 |
-
$lastmod = ($page->post_modified_gmt && $page->post_modified_gmt != '0000-00-00 00:00:00' ? $page->post_modified_gmt : $page->post_date_gmt);
|
69 |
-
$this->addLine($home, $this->getTimestamp($lastmod), $this->opt['home'][1], $this->opt['home'][0]);
|
70 |
-
}
|
71 |
-
} else
|
72 |
-
$this->addLine($home, $this->getTimestamp(get_lastpostmodified('GMT')), $this->opt['home'][1], $this->opt['home'][0]);
|
73 |
-
|
74 |
-
/* * ******************************************************************** */
|
75 |
-
//Add the pages
|
76 |
-
$query = array();
|
77 |
-
|
78 |
-
/* CREATE QUERY */
|
79 |
-
$query['what'] = "`ID`, `post_author`, `post_date`, `post_date_gmt`, `post_status`, `post_name`, `post_modified`, `post_modified_gmt`, `post_parent`, `post_type` ";
|
80 |
-
|
81 |
-
/* from */
|
82 |
-
$query['from'] = " `" . $wpdb->posts . "` ";
|
83 |
-
/* where */
|
84 |
-
$query['where'] = '(';
|
85 |
-
|
86 |
-
|
87 |
-
if ($wpCompat)
|
88 |
-
$query['where'] .= "(post_status = 'publish' AND post_date_gmt <= '" . gmdate('Y-m-d H:i:59') . "')";
|
89 |
-
else
|
90 |
-
$query['where'] .= "(post_status = 'publish' AND (post_type = 'post' OR post_type = '')) ";
|
91 |
-
|
92 |
-
$query['where'] .= " OR ";
|
93 |
-
if ($wpCompat)
|
94 |
-
$query['where'] .= " post_status='static' ";
|
95 |
-
else
|
96 |
-
$query['where'] .= " (post_status = 'publish' AND post_type = 'page') ";
|
97 |
-
|
98 |
-
$query['where'] .= ") ";
|
99 |
-
$query['where'] .= " AND post_password=''";
|
100 |
-
/* order */
|
101 |
-
$query['order'] = " ORDER BY post_modified DESC";
|
102 |
-
/* limit */
|
103 |
-
$query['limit'] = ((int) $this->posts_limit > 0) ? " LIMIT 0," . $this->posts_limit : '';
|
104 |
-
|
105 |
-
|
106 |
-
$posts = $wpdb->get_results('SELECT ' . $query['what'] . ' FROM ' . $query['from'] . ' WHERE ' . $query['where'] . ' ' . $query['order'] . ' ' . $query['limit'] . ' ');
|
107 |
-
if (!$posts) {
|
108 |
-
trigger_error(ucfirst(_SQ_PLUGIN_NAME_) . " failed to connect to database: " . mysql_error(), E_USER_NOTICE); //E_USER_NOTICE will be displayed on our debug mode
|
109 |
-
return;
|
110 |
-
}
|
111 |
-
|
112 |
-
/* loop */
|
113 |
-
foreach ($posts as $post) {
|
114 |
-
$out = array();
|
115 |
-
$permalink = get_permalink($post->ID);
|
116 |
-
if ($permalink != $home && $post->ID != $homeID) {
|
117 |
-
|
118 |
-
$isPage = false;
|
119 |
-
if ($wpCompat)
|
120 |
-
$isPage = ($post->post_status == 'static');
|
121 |
-
else
|
122 |
-
$isPage = ($post->post_type == 'page');
|
123 |
-
|
124 |
-
if ($isPage) {
|
125 |
-
$out['priority'] = $this->opt['page'][0];
|
126 |
-
$out['changefreq'] = $this->opt['page'][1];
|
127 |
-
} else {
|
128 |
-
$out['priority'] = $this->opt['post'][0];
|
129 |
-
$out['changefreq'] = $this->opt['post'][1];
|
130 |
-
}
|
131 |
-
$out['lastmod'] = ($post->post_modified_gmt && $post->post_modified_gmt != '0000-00-00 00:00:00' ? $post->post_modified_gmt : $post->post_date_gmt);
|
132 |
-
|
133 |
-
//Add it
|
134 |
-
$this->addLine($permalink, $this->getTimestamp($out['lastmod']), $out['changefreq'], $out['priority']);
|
135 |
-
|
136 |
-
$subPage = '';
|
137 |
-
if (isset($post->postPages) > 0)
|
138 |
-
for ($i = 1; $i <= $post->postPages; $i++) {
|
139 |
-
if (get_option('permalink_structure') == '') {
|
140 |
-
$subPage = $permalink . '&page=' . ($p + 1);
|
141 |
-
} else {
|
142 |
-
$subPage = trailingslashit($permalink) . user_trailingslashit($p + 1, 'single_paged');
|
143 |
-
}
|
144 |
-
|
145 |
-
$this->addLine($subPage, $this->getTimestamp($out['lastmod']), $out['changefreq'], $out['priority']);
|
146 |
-
}
|
147 |
-
}
|
148 |
-
}
|
149 |
-
|
150 |
-
/* * ******************************************************************** */
|
151 |
-
/* Add links ftom categories */
|
152 |
-
if (!$this->IsTaxonomySupported()) {
|
153 |
-
$query = array();
|
154 |
-
|
155 |
-
/* CREATE QUERY */
|
156 |
-
$query['what'] = "c.cat_ID AS ID, MAX(p.post_modified_gmt) AS last_mod";
|
157 |
-
$query['from'] = "`" . $wpdb->categories . "` c, `" . $wpdb->post2cat . "` pc, `" . $wpdb->posts . "` p";
|
158 |
-
$query['where'] = "pc.category_id = c.cat_ID AND p.ID = pc.post_id AND p.post_status = 'publish' AND p.post_type='post'";
|
159 |
-
$query['order'] = "";
|
160 |
-
$query['limit'] = "";
|
161 |
-
$query['group'] = "GROUP BY c.cat_id";
|
162 |
-
|
163 |
-
$categories = $wpdb->get_results("SELECT " . $query['what'] . " FROM " . $query['from'] . " WHERE " . $query['where'] . " " . $query['order'] . " " . $query['group'] . " " . $query['limit'] . "");
|
164 |
-
|
165 |
-
if ($categories) {
|
166 |
-
foreach ($categories as $category) {
|
167 |
-
if ($category && $category->ID && $category->ID > 0) {
|
168 |
-
$this->addLine(get_category_link($category->ID), $this->getTimestamp($category->last_mod), $this->opt['category'][1], $this->opt['category'][0]);
|
169 |
-
}
|
170 |
-
}
|
171 |
-
}
|
172 |
-
} else {
|
173 |
-
$categories = get_terms("category", array("hide_empty" => true, "hierarchical" => false));
|
174 |
-
if ($categories && is_array($categories) && count($categories) > 0) {
|
175 |
-
foreach ($categories AS $category) {
|
176 |
-
$this->addLine(get_category_link($category->term_id), $this->getTimestamp(get_lastpostmodified('GMT')), $this->opt['category'][1], $this->opt['category'][0]);
|
177 |
-
}
|
178 |
-
}
|
179 |
-
}
|
180 |
-
|
181 |
-
/* * ******************************************************************** */
|
182 |
-
//Add the archives
|
183 |
-
$now = current_time('mysql');
|
184 |
-
$query = array();
|
185 |
-
|
186 |
-
/* CREATE QUERY */
|
187 |
-
$query['what'] = 'YEAR(post_date_gmt) AS `year`, MONTH(post_date_gmt) AS `month`, MAX(post_date_gmt) as last_mod, count(ID) as posts';
|
188 |
-
$query['from'] = "`" . $wpdb->posts . "`";
|
189 |
-
$query['where'] = "post_date < '$now' AND post_status = 'publish' AND post_type = 'post' " . (floatval($wp_version) < 2.1 ? "AND {$wpdb->posts}.post_date_gmt <= '" . gmdate('Y-m-d H:i:59') . "'" : "") . "";
|
190 |
-
$query['order'] = "ORDER BY post_date_gmt DESC";
|
191 |
-
$query['limit'] = "";
|
192 |
-
$query['group'] = "GROUP BY YEAR(post_date_gmt),MONTH(post_date_gmt)";
|
193 |
-
|
194 |
-
$archives = $wpdb->get_results("SELECT DISTINCT " . $query['what'] . " FROM " . $query['from'] . " WHERE " . $query['where'] . " " . $query['group'] . " " . $query['order'] . " " . $query['limit'] . "");
|
195 |
-
|
196 |
-
|
197 |
-
if ($archives) {
|
198 |
-
foreach ($archives as $archive) {
|
199 |
-
|
200 |
-
$changeFreq = "";
|
201 |
-
//Archive is the current one
|
202 |
-
if ($archive->month == date("n") && $archive->year == date("Y")) {
|
203 |
-
$changeFreq = $this->opt['archive'][1];
|
204 |
-
} else { // Archive is older
|
205 |
-
$changeFreq = $this->opt['oldarchive'][1];
|
206 |
-
}
|
207 |
-
|
208 |
-
$this->addLine(get_month_link($archive->year, $archive->month), $this->getTimestamp($archive->last_mod), $changeFreq, $this->opt['archive'][0]);
|
209 |
-
}
|
210 |
-
}
|
211 |
-
|
212 |
-
/* * ******************************************************************** */
|
213 |
-
//Add the author pages
|
214 |
-
$linkFunc = null;
|
215 |
-
|
216 |
-
//get_author_link is deprecated in WP 2.1, try to use get_author_posts_url first.
|
217 |
-
if (function_exists('get_author_posts_url'))
|
218 |
-
$linkFunc = 'get_author_posts_url';
|
219 |
-
else if (function_exists('get_author_link'))
|
220 |
-
$linkFunc = 'get_author_link';
|
221 |
-
|
222 |
-
if ($linkFunc !== null) {
|
223 |
-
$query = array();
|
224 |
-
|
225 |
-
/* CREATE QUERY */
|
226 |
-
$query['what'] = 'u.ID, u.user_nicename, MAX(p.post_modified_gmt) AS last_post';
|
227 |
-
$query['from'] = "`" . $wpdb->users . "` u, `" . $wpdb->posts . "` p";
|
228 |
-
$query['where'] = "p.post_author = u.ID AND p.post_status = 'publish' AND p.post_type = 'post' AND p.post_password = '' " . (floatval($wp_version) < 2.1 ? "AND p.post_date_gmt <= '" . gmdate('Y-m-d H:i:59') . "'" : "") . "";
|
229 |
-
$query['order'] = "";
|
230 |
-
$query['limit'] = "";
|
231 |
-
$query['group'] = "GROUP BY u.ID, u.user_nicename";
|
232 |
-
|
233 |
-
$authors = $wpdb->get_results("SELECT DISTINCT " . $query['what'] . " FROM " . $query['from'] . " WHERE " . $query['where'] . " " . $query['order'] . " " . $query['group'] . " " . $query['limit'] . "");
|
234 |
-
|
235 |
-
|
236 |
-
if ($authors && is_array($authors)) {
|
237 |
-
foreach ($authors as $author) {
|
238 |
-
|
239 |
-
$author_url = ($linkFunc == 'get_author_posts_url' ? get_author_posts_url($author->ID, $author->user_nicename) : get_author_link(false, $author->ID, $author->user_nicename));
|
240 |
-
$this->addLine($author_url, $this->getTimestamp($author->last_post), $this->opt['author'][1], $this->opt['author'][0]);
|
241 |
-
}
|
242 |
-
}
|
243 |
-
}
|
244 |
-
|
245 |
-
/* * ******************************************************************** */
|
246 |
-
if ($this->IsTaxonomySupported()) {
|
247 |
-
$count = 0;
|
248 |
-
$tags = get_terms("post_tag", array("hide_empty" => true, "hierarchical" => false));
|
249 |
-
if ($tags && is_array($tags) && count($tags) > 0) {
|
250 |
-
foreach ($tags AS $tag) {
|
251 |
-
if ($count > 3000)
|
252 |
-
break; //not to have a memory break
|
253 |
-
$this->addLine(get_tag_link($tag->term_id), strtotime(get_lastpostmodified()), $this->opt['tag'][1], $this->opt['tag'][0]);
|
254 |
-
$count++;
|
255 |
-
}
|
256 |
-
}
|
257 |
-
}
|
258 |
-
|
259 |
-
return $this->render();
|
260 |
-
}
|
261 |
-
|
262 |
-
/**
|
263 |
-
* Push new info to array
|
264 |
-
*
|
265 |
-
* @param string $link
|
266 |
-
* @param string $timestamp
|
267 |
-
* @param string $changefreq
|
268 |
-
* @param string $priority
|
269 |
-
*/
|
270 |
-
private function addLine($link, $timestamp, $changefreq, $priority) {
|
271 |
-
|
272 |
-
array_push($this->data, array(
|
273 |
-
'loc' => $link,
|
274 |
-
'lastmod' => date('Y-m-d\TH:i:s+00:00', $timestamp),
|
275 |
-
'changefreq' => $changefreq,
|
276 |
-
'priority' => $priority
|
277 |
-
));
|
278 |
-
}
|
279 |
-
|
280 |
-
/**
|
281 |
-
* Create the XML sitemap
|
282 |
-
* @return string
|
283 |
-
*/
|
284 |
-
private function render() {
|
285 |
-
$content = '';
|
286 |
-
try {
|
287 |
-
@ini_set('memory_limit', apply_filters('admin_memory_limit', WP_MAX_MEMORY_LIMIT));
|
288 |
-
|
289 |
-
$content .= '<?xml version="1.0" encoding="UTF-8"?>' . "\n";
|
290 |
-
$content .= '<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
291 |
-
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
|
292 |
-
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
|
293 |
-
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">' . "\n";
|
294 |
-
|
295 |
-
|
296 |
-
if (is_array($this->data) && count($this->data) > 0)
|
297 |
-
foreach ($this->data as $data) {
|
298 |
-
$content .= "\t" . '<url>' . "\n";
|
299 |
-
$content .= "\t\t" . '<loc>' . $data['loc'] . '</loc>' . "\n";
|
300 |
-
$content .= "\t\t" . '<lastmod>' . $data['lastmod'] . '</lastmod>' . "\n";
|
301 |
-
$content .= "\t\t" . '<changefreq>' . $data['changefreq'] . '</changefreq>' . "\n";
|
302 |
-
$content .= "\t\t" . '<priority>' . $data['priority'] . '</priority>' . "\n";
|
303 |
-
$content .= "\t" . '</url>' . "\n";
|
304 |
-
} # end foreach
|
305 |
-
$content .= '</urlset>';
|
306 |
-
} catch (Exception $e) {
|
307 |
-
|
308 |
-
}
|
309 |
-
|
310 |
-
$this->saveSitemap($content);
|
311 |
-
|
312 |
-
return $content;
|
313 |
-
}
|
314 |
-
|
315 |
-
/**
|
316 |
-
* Converts into a unix timestamp
|
317 |
-
*
|
318 |
-
* @param string time
|
319 |
-
* @return string
|
320 |
-
*/
|
321 |
-
private function getTimestamp($time) {
|
322 |
-
if (!isset($time) || $time == '')
|
323 |
-
$time = date('Y-m-d H:i:s');
|
324 |
-
|
325 |
-
list($date, $hours) = explode(' ', $time);
|
326 |
-
list($year, $month, $day) = explode('-', $date);
|
327 |
-
list($hour, $min, $sec) = explode(':', $hours);
|
328 |
-
|
329 |
-
return mktime(intval($hour), intval($min), intval($sec), intval($month), intval($day), intval($year));
|
330 |
-
}
|
331 |
-
|
332 |
-
/**
|
333 |
-
* Function to save the sitemap data to file as either XML or XML.GZ format
|
334 |
-
* @param string $data XML data
|
335 |
-
* @param string $filename file path
|
336 |
-
*
|
337 |
-
* @return boolean
|
338 |
-
*/
|
339 |
-
private function saveSitemap($data) {
|
340 |
-
if (function_exists('gzopen') && function_exists('gzwrite') && function_exists('gzclose')) {
|
341 |
-
if (function_exists('file_exists') && file_exists($this->file . '.gz'))
|
342 |
-
@unlink($this->file . '.gz');
|
343 |
-
|
344 |
-
if (function_exists('file_exists') && !file_exists($this->file . '.gz'))
|
345 |
-
if ($gz = @gzopen($this->file . '.gz', 'wb9')) {
|
346 |
-
@gzwrite($gz, $data);
|
347 |
-
@gzclose($gz);
|
348 |
-
}
|
349 |
-
}
|
350 |
-
|
351 |
-
if (function_exists('fopen'))
|
352 |
-
if ($fp = @fopen($this->file, 'w+')) {
|
353 |
-
fwrite($fp, $data);
|
354 |
-
fclose($fp);
|
355 |
-
return true;
|
356 |
-
}
|
357 |
-
|
358 |
-
return false;
|
359 |
-
}
|
360 |
-
|
361 |
-
/**
|
362 |
-
* Returns the URL for the XML sitemap file
|
363 |
-
*
|
364 |
-
* @return string
|
365 |
-
*/
|
366 |
-
public function getXmlUrl() {
|
367 |
-
return trailingslashit(get_bloginfo('url')) . $this->filename;
|
368 |
-
}
|
369 |
-
|
370 |
-
/**
|
371 |
-
* Returns if this version of WordPress supports the new taxonomy system
|
372 |
-
*
|
373 |
-
* @since 3.0b8
|
374 |
-
* @access private
|
375 |
-
* @author Arne Brachhold
|
376 |
-
* @return true if supported
|
377 |
-
*/
|
378 |
-
private function IsTaxonomySupported() {
|
379 |
-
return (function_exists("get_taxonomy") && function_exists("get_terms"));
|
380 |
-
}
|
381 |
-
|
382 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
classes/SQ_Tools.php
CHANGED
@@ -22,7 +22,7 @@ class SQ_Tools extends SQ_FrontController {
|
|
22 |
|
23 |
self::$options = $this->getOptions();
|
24 |
|
25 |
-
$this->checkDebug(); //
|
26 |
}
|
27 |
|
28 |
public static function getUserID() {
|
@@ -36,7 +36,6 @@ class SQ_Tools extends SQ_FrontController {
|
|
36 |
* @return void
|
37 |
*/
|
38 |
function hookInit() {
|
39 |
-
$this->sq_patch3000(); //Update the older version
|
40 |
//TinyMCE editor required
|
41 |
//set_user_setting('editor', 'tinymce');
|
42 |
|
@@ -55,13 +54,8 @@ class SQ_Tools extends SQ_FrontController {
|
|
55 |
*/
|
56 |
public function hookActionlink($links, $file) {
|
57 |
if ($file == _SQ_PLUGIN_NAME_ . '/squirrly.php') {
|
58 |
-
|
59 |
-
|
60 |
-
array_unshift($links, $link);
|
61 |
-
} elseif (SQ_Tools::$options['sq_api'] <> '') {
|
62 |
-
$link = '<a href="' . admin_url('admin.php?page=sq_dashboard') . '">' . __('Dashboard', _SQ_PLUGIN_NAME_) . '</a>';
|
63 |
-
array_unshift($links, $link);
|
64 |
-
}
|
65 |
}
|
66 |
|
67 |
return $links;
|
@@ -74,17 +68,73 @@ class SQ_Tools extends SQ_FrontController {
|
|
74 |
*/
|
75 |
public static function getOptions() {
|
76 |
$default = array(
|
|
|
77 |
'sq_api' => '',
|
|
|
|
|
78 |
'sq_use' => 0,
|
79 |
-
'
|
|
|
|
|
80 |
// --
|
81 |
'sq_auto_canonical' => 1,
|
82 |
-
'sq_auto_sitemap' =>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
'sq_auto_meta' => 1,
|
84 |
'sq_auto_favicon' => 1,
|
|
|
85 |
'sq_auto_twitter' => 1,
|
86 |
'sq_auto_facebook' => 1,
|
87 |
'sq_twitter_account' => '',
|
|
|
|
|
|
|
88 |
// --
|
89 |
'sq_auto_seo' => 1,
|
90 |
'sq_auto_title' => 1,
|
@@ -93,7 +143,6 @@ class SQ_Tools extends SQ_FrontController {
|
|
93 |
'sq_fp_description' => '',
|
94 |
'sq_fp_keywords' => '',
|
95 |
// --
|
96 |
-
'sq_google_plus' => '',
|
97 |
'sq_google_wt' => '',
|
98 |
'sq_google_analytics' => '',
|
99 |
'sq_facebook_insights' => '',
|
@@ -101,21 +150,21 @@ class SQ_Tools extends SQ_FrontController {
|
|
101 |
'sq_pinterest' => '',
|
102 |
'sq_alexa' => '',
|
103 |
// --
|
|
|
104 |
'ignore_warn' => 0,
|
105 |
'sq_keyword_help' => 1,
|
106 |
'sq_keyword_information' => 0,
|
107 |
//
|
108 |
'sq_google_country' => 'com',
|
109 |
'sq_google_language' => 'en',
|
110 |
-
'sq_google_country_strict' =>
|
|
|
111 |
// --
|
112 |
-
'sq_advance_user' => 0,
|
113 |
'sq_affiliate_link' => '',
|
114 |
'sq_sla' => 1,
|
115 |
'sq_keywordtag' => 1,
|
116 |
'sq_local_images' => 1,
|
117 |
//--
|
118 |
-
'sq_dbtables' => 0,
|
119 |
'sq_dashboard' => 0,
|
120 |
'sq_analytics' => 0,
|
121 |
);
|
@@ -129,6 +178,39 @@ class SQ_Tools extends SQ_FrontController {
|
|
129 |
return $default;
|
130 |
}
|
131 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
/**
|
133 |
* Save the Options in user option table in DB
|
134 |
*
|
@@ -150,6 +232,13 @@ class SQ_Tools extends SQ_FrontController {
|
|
150 |
switch ($type) {
|
151 |
case 'json':
|
152 |
header('Content-Type: application/json');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
}
|
154 |
}
|
155 |
|
@@ -161,13 +250,15 @@ class SQ_Tools extends SQ_FrontController {
|
|
161 |
* @param mixed $defaultValue (optional)
|
162 |
* @return mixed Value
|
163 |
*/
|
164 |
-
public static function getValue($key, $defaultValue = false) {
|
165 |
if (!isset($key) OR empty($key) OR ! is_string($key))
|
166 |
return false;
|
167 |
-
$ret = (isset($_POST[$key]) ? $_POST[$key] : (isset($_GET[$key]) ? $_GET[$key] : $defaultValue));
|
168 |
|
169 |
-
if (is_string($ret) === true)
|
170 |
$ret = sanitize_text_field($ret);
|
|
|
|
|
171 |
return !is_string($ret) ? $ret : stripslashes($ret);
|
172 |
}
|
173 |
|
@@ -213,7 +304,7 @@ class SQ_Tools extends SQ_FrontController {
|
|
213 |
/**
|
214 |
* Connect remote with CURL if exists
|
215 |
*/
|
216 |
-
public static function sq_remote_get($url, $param = array()) {
|
217 |
$parameters = '';
|
218 |
$cookies = array();
|
219 |
$cookie_string = '';
|
@@ -221,13 +312,15 @@ class SQ_Tools extends SQ_FrontController {
|
|
221 |
$url_domain = parse_url($url);
|
222 |
$url_domain = $url_domain['host'];
|
223 |
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
|
|
228 |
if ($parameters <> '')
|
229 |
$url .= ((strpos($url, "?") === false) ? "?" : "&") . $parameters;
|
230 |
|
|
|
231 |
if ($url_domain == $_SERVER['HTTP_HOST'] && strpos($url, 'preview=true') !== false) {
|
232 |
foreach ($_COOKIE as $name => $value) {
|
233 |
if (strpos($name, 'wordpress') !== false || strpos($name, 'wpta') !== false) {
|
@@ -235,16 +328,21 @@ class SQ_Tools extends SQ_FrontController {
|
|
235 |
$cookie_string .= "$name=$value;";
|
236 |
}
|
237 |
}
|
238 |
-
$cookies[] = new WP_Http_Cookie(array('name' => 'sq_snippet', 'value' => 1));
|
239 |
-
$cookie_string .= "sq_snippet=1;";
|
240 |
}
|
241 |
|
242 |
-
$timeout = (isset($
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
243 |
|
244 |
if (function_exists('curl_init')) {
|
245 |
-
return self::sq_curl($url,
|
246 |
} else {
|
247 |
-
return self::sq_wpcall($url,
|
248 |
}
|
249 |
}
|
250 |
|
@@ -254,7 +352,7 @@ class SQ_Tools extends SQ_FrontController {
|
|
254 |
* @param array $param
|
255 |
* @return string
|
256 |
*/
|
257 |
-
private static function sq_curl($url, $
|
258 |
|
259 |
$ch = curl_init();
|
260 |
curl_setopt($ch, CURLOPT_URL, $url);
|
@@ -264,23 +362,27 @@ class SQ_Tools extends SQ_FrontController {
|
|
264 |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
265 |
//--
|
266 |
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
|
267 |
-
curl_setopt($ch, CURLOPT_TIMEOUT, $
|
268 |
-
|
|
|
|
|
|
|
|
|
269 |
|
270 |
-
if ($
|
271 |
-
curl_setopt($ch, CURLOPT_COOKIE, $
|
272 |
|
273 |
$response = curl_exec($ch);
|
274 |
$response = self::cleanResponce($response);
|
275 |
|
276 |
-
self::dump('CURL', $url, $
|
277 |
|
278 |
if (curl_errno($ch) == 1 || $response === false) { //if protocol not supported
|
279 |
if (curl_errno($ch)) {
|
280 |
self::dump(curl_getinfo($ch), curl_errno($ch), curl_error($ch));
|
281 |
}
|
282 |
curl_close($ch);
|
283 |
-
$response = self::sq_wpcall($url, $
|
284 |
} else {
|
285 |
curl_close($ch);
|
286 |
}
|
@@ -294,10 +396,10 @@ class SQ_Tools extends SQ_FrontController {
|
|
294 |
* @param array $param
|
295 |
* @return string
|
296 |
*/
|
297 |
-
private static function sq_wpcall($url, $
|
298 |
-
$response = wp_remote_get($url, $
|
299 |
$response = self::cleanResponce(wp_remote_retrieve_body($response)); //clear and get the body
|
300 |
-
self::dump('wp_remote_get', $url, $
|
301 |
return $response;
|
302 |
}
|
303 |
|
@@ -346,71 +448,75 @@ class SQ_Tools extends SQ_FrontController {
|
|
346 |
* Check for SEO blog bad settings
|
347 |
*/
|
348 |
public static function checkErrorSettings($count_only = false) {
|
|
|
349 |
|
350 |
-
|
351 |
-
return;
|
352 |
-
|
353 |
-
if (isset(self::$options['ignore_warn']) && self::$options['ignore_warn'] == 1)
|
354 |
-
return;
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
$fixit = "<a href=\"javascript:void(0);\" onclick=\"%s jQuery(this).closest('div').fadeOut('slow'); if(parseInt(jQuery('.sq_count').html())>0) { var notif = (parseInt(jQuery('.sq_count').html()) - 1); if (notif > 0) {jQuery('.sq_count').html(notif); }else{ jQuery('.sq_count').html(notif); jQuery('.sq_count').hide(); } } jQuery.post(ajaxurl, { action: '%s', nonce: '" . wp_create_nonce(_SQ_NONCE_ID_) . "'});\" >" . __("Fix it for me!", _SQ_PLUGIN_NAME_) . "</a>";
|
359 |
-
|
360 |
|
361 |
-
|
362 |
-
|
363 |
-
if ($count_only)
|
364 |
self::$errors_count ++;
|
365 |
-
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
//check only when in seo settings
|
370 |
-
if (strpos($_SERVER['REQUEST_URI'], 'page=squirrly')) {
|
371 |
-
self::$source_code = self::sq_remote_get(get_bloginfo('url'), array('timeout' => 5));
|
372 |
|
|
|
|
|
373 |
if (self::$source_code <> '') {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
374 |
/* IF DESCRIPTION DUPLICATES */
|
375 |
if (self::getDuplicateDescription()) {
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
}
|
381 |
|
382 |
/* IF OG DUPLICATES */
|
383 |
if (self::getDuplicateOG()) {
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
}
|
389 |
|
390 |
/* IF TWITTER CARD DUPLICATES */
|
391 |
if (self::getDuplicateTC()) {
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
}
|
397 |
}
|
398 |
-
}
|
399 |
-
|
400 |
-
/* IF SEO INDEX IS OFF */
|
401 |
-
if (self::getPrivateBlog()) {
|
402 |
|
403 |
-
|
|
|
404 |
self::$errors_count++;
|
405 |
-
|
406 |
-
|
407 |
-
|
|
|
408 |
|
409 |
-
|
410 |
-
if ($count_only)
|
411 |
self::$errors_count++;
|
412 |
-
|
413 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
414 |
}
|
415 |
}
|
416 |
|
@@ -495,6 +601,32 @@ class SQ_Tools extends SQ_FrontController {
|
|
495 |
return ($total > 1);
|
496 |
}
|
497 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
498 |
/**
|
499 |
* Check if the blog is in private mode
|
500 |
* @return bool
|
@@ -631,11 +763,7 @@ class SQ_Tools extends SQ_FrontController {
|
|
631 |
'description' => 240,
|
632 |
'url' => 45);
|
633 |
|
634 |
-
|
635 |
-
self::$source_code = self::sq_remote_get($url, array('timeout' => 10));
|
636 |
-
} else {
|
637 |
-
self::$source_code = self::sq_remote_get($url, array('timeout' => 10));
|
638 |
-
}
|
639 |
|
640 |
$title_regex = "/<title[^>]*>([^<>]*)<\/title>/si";
|
641 |
preg_match($title_regex, self::$source_code, $title);
|
@@ -648,7 +776,7 @@ class SQ_Tools extends SQ_FrontController {
|
|
648 |
$description_regex = '/<meta[^<>]*description[^<>]*content="([^"<>]+)"[^<>]*>/si';
|
649 |
preg_match($description_regex, self::$source_code, $description);
|
650 |
if (is_array($description) && count($description) > 0) {
|
651 |
-
$snippet['description'] = trim(strip_tags(
|
652 |
|
653 |
if (strlen($snippet['description']) > $length['description'])
|
654 |
$snippet['description'] = substr($snippet['description'], 0, ($length['description'] - 1)) . '...';
|
@@ -667,18 +795,16 @@ class SQ_Tools extends SQ_FrontController {
|
|
667 |
private function checkDebug() {
|
668 |
//if debug is called
|
669 |
if (self::getIsset('sq_debug')) {
|
670 |
-
|
671 |
-
|
672 |
-
if (self::getValue('sq_debug') == self::$options['sq_api'])
|
673 |
$_GET['sq_debug'] = 'on';
|
674 |
-
|
675 |
-
$_GET['sq_debug'] = 'on';
|
676 |
-
else
|
677 |
$_GET['sq_debug'] = 'off';
|
|
|
678 |
|
679 |
if (self::getValue('sq_debug') === 'on') {
|
680 |
-
if (function_exists('register_shutdown_function'))
|
681 |
register_shutdown_function(array($this, 'showDebug'));
|
|
|
682 |
}
|
683 |
}
|
684 |
}
|
@@ -687,6 +813,10 @@ class SQ_Tools extends SQ_FrontController {
|
|
687 |
* Store the debug for a later view
|
688 |
*/
|
689 |
public static function dump() {
|
|
|
|
|
|
|
|
|
690 |
$output = '';
|
691 |
$callee = array('file' => '', 'line' => '');
|
692 |
if (function_exists('func_get_args')) {
|
@@ -696,12 +826,12 @@ class SQ_Tools extends SQ_FrontController {
|
|
696 |
$arguments = array();
|
697 |
|
698 |
|
699 |
-
|
700 |
if (function_exists('debug_backtrace'))
|
701 |
list( $callee ) = debug_backtrace();
|
702 |
|
703 |
$output .= '<fieldset style="background: #FFFFFF; border: 1px #CCCCCC solid; padding: 5px; font-size: 9pt; margin: 0;">';
|
704 |
-
$output .= '<legend style="background: #EEEEEE; padding: 2px; font-size: 8pt;">' . $callee['file'] . ' @ line: ' . $callee['line']
|
705 |
. '</legend><pre style="margin: 0; font-size: 8pt; text-align: left;">';
|
706 |
|
707 |
$i = 0;
|
@@ -733,8 +863,8 @@ class SQ_Tools extends SQ_FrontController {
|
|
733 |
}
|
734 |
|
735 |
public function sq_activate() {
|
736 |
-
|
737 |
-
set_transient('
|
738 |
}
|
739 |
|
740 |
public function sq_deactivate() {
|
@@ -744,24 +874,10 @@ class SQ_Tools extends SQ_FrontController {
|
|
744 |
$args = array();
|
745 |
$args['type'] = 'deact';
|
746 |
SQ_Action::apiCall('sq/user/log', $args, 5);
|
747 |
-
}
|
748 |
-
|
749 |
-
/**
|
750 |
-
* Update patch for older versions
|
751 |
-
*/
|
752 |
-
public function sq_patch3000() {
|
753 |
-
//Delete the old versions table
|
754 |
-
if (self::$options['sq_dbtables'] == 1) {
|
755 |
-
self::$options['sq_dbtables'] = 0;
|
756 |
-
global $wpdb;
|
757 |
-
|
758 |
-
$ranking = SQ_ObjController::getController('SQ_Ranking', false);
|
759 |
-
$ranking->getKeywordHistory();
|
760 |
|
761 |
-
|
762 |
-
|
763 |
-
|
764 |
-
}
|
765 |
}
|
766 |
|
767 |
public static function emptyCache($post_id = null) {
|
@@ -781,6 +897,18 @@ class SQ_Tools extends SQ_FrontController {
|
|
781 |
}
|
782 |
}
|
783 |
|
784 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
785 |
|
786 |
-
|
|
|
|
|
|
|
|
22 |
|
23 |
self::$options = $this->getOptions();
|
24 |
|
25 |
+
$this->checkDebug(); //dev mode
|
26 |
}
|
27 |
|
28 |
public static function getUserID() {
|
36 |
* @return void
|
37 |
*/
|
38 |
function hookInit() {
|
|
|
39 |
//TinyMCE editor required
|
40 |
//set_user_setting('editor', 'tinymce');
|
41 |
|
54 |
*/
|
55 |
public function hookActionlink($links, $file) {
|
56 |
if ($file == _SQ_PLUGIN_NAME_ . '/squirrly.php') {
|
57 |
+
$link = '<a href="' . admin_url('admin.php?page=sq_dashboard') . '">' . __('Getting started', _SQ_PLUGIN_NAME_) . '</a>';
|
58 |
+
array_unshift($links, $link);
|
|
|
|
|
|
|
|
|
|
|
59 |
}
|
60 |
|
61 |
return $links;
|
68 |
*/
|
69 |
public static function getOptions() {
|
70 |
$default = array(
|
71 |
+
'sq_ver' => 0,
|
72 |
'sq_api' => '',
|
73 |
+
'sq_checkedissues' => 0,
|
74 |
+
'sq_areissues' => 0,
|
75 |
'sq_use' => 0,
|
76 |
+
'sq_post_types' => array(
|
77 |
+
'post', 'page', 'product', 'shopp_page_shopp-products'
|
78 |
+
),
|
79 |
// --
|
80 |
'sq_auto_canonical' => 1,
|
81 |
+
'sq_auto_sitemap' => 1,
|
82 |
+
'sq_auto_jsonld' => 1,
|
83 |
+
'sq_jsonld_type' => 'Organization',
|
84 |
+
'sq_jsonld' => array(
|
85 |
+
'Organization' => array(
|
86 |
+
'name' => '',
|
87 |
+
'logo' => '',
|
88 |
+
'telephone' => '',
|
89 |
+
'contactType' => '',
|
90 |
+
'description' => ''
|
91 |
+
),
|
92 |
+
'Person' => array(
|
93 |
+
'name' => '',
|
94 |
+
'logo' => '',
|
95 |
+
'telephone' => '',
|
96 |
+
'jobTitle' => '',
|
97 |
+
'description' => ''
|
98 |
+
)),
|
99 |
+
'sq_sitemap_ping' => 1,
|
100 |
+
'sq_sitemap_show' => array(
|
101 |
+
'images' => 1,
|
102 |
+
'videos' => 1,
|
103 |
+
),
|
104 |
+
'sq_sitemap_frequency' => 'weekly',
|
105 |
+
'sq_sitemap' => array(
|
106 |
+
'sitemap' => array('sitemap.xml', 1),
|
107 |
+
'sitemap-home' => array('sitemap-home.xml', 1),
|
108 |
+
'sitemap-news' => array('sitemap-news.xml', 1),
|
109 |
+
'sitemap-product' => array('sitemap-product.xml', 1),
|
110 |
+
'sitemap-post' => array('sitemap-posts.xml', 1),
|
111 |
+
'sitemap-page' => array('sitemap-pages.xml', 1),
|
112 |
+
'sitemap-category' => array('sitemap-categories.xml', 1),
|
113 |
+
'sitemap-post_tag' => array('sitemap-tags.xml', 1),
|
114 |
+
'sitemap-archive' => array('sitemap-archives.xml', 1),
|
115 |
+
'sitemap-author' => array('sitemap-authors.xml', 0),
|
116 |
+
'sitemap-custom-tax' => array('sitemap-custom-taxonomies.xml', 0),
|
117 |
+
'sitemap-custom-post' => array('sitemap-custom-posts.xml', 0),
|
118 |
+
),
|
119 |
+
'sq_auto_robots' => 1,
|
120 |
+
'sq_robots_security' => array(
|
121 |
+
'User-agent: *',
|
122 |
+
'Disallow: */trackback/',
|
123 |
+
'Disallow: */xmlrpc.php',
|
124 |
+
'Disallow: /wp-*.php',
|
125 |
+
'Disallow: /cgi-bin/',
|
126 |
+
'Disallow: /wp-admin/',
|
127 |
+
'Disallow: /wp-includes/',
|
128 |
+
'Allow: */wp-content/uploads/'),
|
129 |
'sq_auto_meta' => 1,
|
130 |
'sq_auto_favicon' => 1,
|
131 |
+
'favicon' => '',
|
132 |
'sq_auto_twitter' => 1,
|
133 |
'sq_auto_facebook' => 1,
|
134 |
'sq_twitter_account' => '',
|
135 |
+
'sq_facebook_account' => '',
|
136 |
+
'sq_google_plus' => '',
|
137 |
+
'sq_linkedin_account' => '',
|
138 |
// --
|
139 |
'sq_auto_seo' => 1,
|
140 |
'sq_auto_title' => 1,
|
143 |
'sq_fp_description' => '',
|
144 |
'sq_fp_keywords' => '',
|
145 |
// --
|
|
|
146 |
'sq_google_wt' => '',
|
147 |
'sq_google_analytics' => '',
|
148 |
'sq_facebook_insights' => '',
|
150 |
'sq_pinterest' => '',
|
151 |
'sq_alexa' => '',
|
152 |
// --
|
153 |
+
'active_help' => '',
|
154 |
'ignore_warn' => 0,
|
155 |
'sq_keyword_help' => 1,
|
156 |
'sq_keyword_information' => 0,
|
157 |
//
|
158 |
'sq_google_country' => 'com',
|
159 |
'sq_google_language' => 'en',
|
160 |
+
'sq_google_country_strict' => 0,
|
161 |
+
'sq_google_ranksperhour' => 5,
|
162 |
// --
|
|
|
163 |
'sq_affiliate_link' => '',
|
164 |
'sq_sla' => 1,
|
165 |
'sq_keywordtag' => 1,
|
166 |
'sq_local_images' => 1,
|
167 |
//--
|
|
|
168 |
'sq_dashboard' => 0,
|
169 |
'sq_analytics' => 0,
|
170 |
);
|
178 |
return $default;
|
179 |
}
|
180 |
|
181 |
+
public static function getBriefOptions() {
|
182 |
+
return array(
|
183 |
+
'sq_version' => SQ_VERSION_ID,
|
184 |
+
'sq_use' => SQ_Tools::$options['sq_use'],
|
185 |
+
'sq_checkedissues' => SQ_Tools::$options['sq_checkedissues'],
|
186 |
+
'sq_areissues' => SQ_Tools::$options['sq_areissues'],
|
187 |
+
'sq_auto_canonical' => SQ_Tools::$options['sq_auto_canonical'],
|
188 |
+
'sq_auto_meta' => SQ_Tools::$options['sq_auto_meta'],
|
189 |
+
'sq_auto_sitemap' => SQ_Tools::$options['sq_auto_sitemap'],
|
190 |
+
'sq_auto_jsonld' => (SQ_Tools::$options['sq_auto_jsonld'] && (SQ_Tools::$options['sq_jsonld']['Organization']['name'] <> '' || SQ_Tools::$options['sq_jsonld']['Person']['name'] <> '')),
|
191 |
+
'sq_sitemap_ping' => SQ_Tools::$options['sq_sitemap_ping'],
|
192 |
+
'sq_auto_robots' => SQ_Tools::$options['sq_auto_robots'],
|
193 |
+
'sq_auto_favicon' => (SQ_Tools::$options['sq_auto_favicon'] && SQ_Tools::$options['favicon'] <> ''),
|
194 |
+
'sq_auto_twitter' => SQ_Tools::$options['sq_auto_twitter'],
|
195 |
+
'sq_auto_facebook' => SQ_Tools::$options['sq_auto_facebook'],
|
196 |
+
'sq_auto_seo' => SQ_Tools::$options['sq_auto_seo'],
|
197 |
+
'sq_auto_title' => (int) (SQ_Tools::$options['sq_auto_title'] && SQ_Tools::$options['sq_fp_title'] <> ''),
|
198 |
+
'sq_auto_description' => (int) (SQ_Tools::$options['sq_auto_description'] && SQ_Tools::$options['sq_fp_description'] <> ''),
|
199 |
+
'sq_google_plus' => (int) (SQ_Tools::$options['sq_google_plus'] <> ''),
|
200 |
+
'sq_google_wt' => (int) (SQ_Tools::$options['sq_google_wt'] <> ''),
|
201 |
+
'sq_google_analytics' => (int) (SQ_Tools::$options['sq_google_analytics'] <> ''),
|
202 |
+
'sq_facebook_insights' => (int) (SQ_Tools::$options['sq_facebook_insights'] <> ''),
|
203 |
+
'sq_bing_wt' => (int) (SQ_Tools::$options['sq_bing_wt'] <> ''),
|
204 |
+
'sq_pinterest' => (int) (SQ_Tools::$options['sq_pinterest'] <> ''),
|
205 |
+
'sq_alexa' => (int) (SQ_Tools::$options['sq_alexa'] <> ''),
|
206 |
+
'sq_keyword_help' => SQ_Tools::$options['sq_keyword_help'],
|
207 |
+
'sq_keyword_information' => SQ_Tools::$options['sq_keyword_information'],
|
208 |
+
'sq_google_country_strict' => SQ_Tools::$options['sq_google_country_strict'],
|
209 |
+
'sq_keywordtag' => SQ_Tools::$options['sq_keywordtag'],
|
210 |
+
'sq_local_images' => SQ_Tools::$options['sq_local_images'],
|
211 |
+
);
|
212 |
+
}
|
213 |
+
|
214 |
/**
|
215 |
* Save the Options in user option table in DB
|
216 |
*
|
232 |
switch ($type) {
|
233 |
case 'json':
|
234 |
header('Content-Type: application/json');
|
235 |
+
break;
|
236 |
+
case 'ico':
|
237 |
+
header('Content-Type: image/x-icon');
|
238 |
+
break;
|
239 |
+
case 'png':
|
240 |
+
header('Content-Type: image/png');
|
241 |
+
break;
|
242 |
}
|
243 |
}
|
244 |
|
250 |
* @param mixed $defaultValue (optional)
|
251 |
* @return mixed Value
|
252 |
*/
|
253 |
+
public static function getValue($key, $defaultValue = false, $withcode = false) {
|
254 |
if (!isset($key) OR empty($key) OR ! is_string($key))
|
255 |
return false;
|
256 |
+
$ret = (isset($_POST[$key]) ? $_POST[$key] : (isset($_GET[$key]) ? (is_string($_GET[$key]) ? urldecode($_GET[$key]) : $_GET[$key]) : $defaultValue));
|
257 |
|
258 |
+
if (is_string($ret) === true && $withcode === false) {
|
259 |
$ret = sanitize_text_field($ret);
|
260 |
+
}
|
261 |
+
|
262 |
return !is_string($ret) ? $ret : stripslashes($ret);
|
263 |
}
|
264 |
|
304 |
/**
|
305 |
* Connect remote with CURL if exists
|
306 |
*/
|
307 |
+
public static function sq_remote_get($url, $param = array(), $options = array()) {
|
308 |
$parameters = '';
|
309 |
$cookies = array();
|
310 |
$cookie_string = '';
|
312 |
$url_domain = parse_url($url);
|
313 |
$url_domain = $url_domain['host'];
|
314 |
|
315 |
+
if (isset($param))
|
316 |
+
foreach ($param as $key => $value) {
|
317 |
+
if (isset($key) && $key <> '' && $key <> 'timeout')
|
318 |
+
$parameters .= ($parameters == "" ? "" : "&") . $key . "=" . $value;
|
319 |
+
}
|
320 |
if ($parameters <> '')
|
321 |
$url .= ((strpos($url, "?") === false) ? "?" : "&") . $parameters;
|
322 |
|
323 |
+
//send the cookie for preview
|
324 |
if ($url_domain == $_SERVER['HTTP_HOST'] && strpos($url, 'preview=true') !== false) {
|
325 |
foreach ($_COOKIE as $name => $value) {
|
326 |
if (strpos($name, 'wordpress') !== false || strpos($name, 'wpta') !== false) {
|
328 |
$cookie_string .= "$name=$value;";
|
329 |
}
|
330 |
}
|
|
|
|
|
331 |
}
|
332 |
|
333 |
+
$options['timeout'] = (isset($options['timeout'])) ? $options['timeout'] : 30;
|
334 |
+
if (!isset($options['cookie_string'])) {
|
335 |
+
$options['cookies'] = $cookies;
|
336 |
+
}
|
337 |
+
if (!isset($options['cookie_string'])) {
|
338 |
+
$options['cookie_string'] = $cookie_string;
|
339 |
+
}
|
340 |
+
$options['sslverify'] = false;
|
341 |
|
342 |
if (function_exists('curl_init')) {
|
343 |
+
return self::sq_curl($url, $options);
|
344 |
} else {
|
345 |
+
return self::sq_wpcall($url, $options);
|
346 |
}
|
347 |
}
|
348 |
|
352 |
* @param array $param
|
353 |
* @return string
|
354 |
*/
|
355 |
+
private static function sq_curl($url, $options) {
|
356 |
|
357 |
$ch = curl_init();
|
358 |
curl_setopt($ch, CURLOPT_URL, $url);
|
362 |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
363 |
//--
|
364 |
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10);
|
365 |
+
curl_setopt($ch, CURLOPT_TIMEOUT, $options['timeout']);
|
366 |
+
|
367 |
+
if (isset($options['followlocation'])) {
|
368 |
+
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
|
369 |
+
curl_setopt($ch, CURLOPT_MAXREDIRS, 1);
|
370 |
+
}
|
371 |
|
372 |
+
if ($options['cookie_string'] <> '')
|
373 |
+
curl_setopt($ch, CURLOPT_COOKIE, $options['cookie_string']);
|
374 |
|
375 |
$response = curl_exec($ch);
|
376 |
$response = self::cleanResponce($response);
|
377 |
|
378 |
+
self::dump('CURL', $url, $options, $response); //output debug
|
379 |
|
380 |
if (curl_errno($ch) == 1 || $response === false) { //if protocol not supported
|
381 |
if (curl_errno($ch)) {
|
382 |
self::dump(curl_getinfo($ch), curl_errno($ch), curl_error($ch));
|
383 |
}
|
384 |
curl_close($ch);
|
385 |
+
$response = self::sq_wpcall($url, $options); //use the wordpress call
|
386 |
} else {
|
387 |
curl_close($ch);
|
388 |
}
|
396 |
* @param array $param
|
397 |
* @return string
|
398 |
*/
|
399 |
+
private static function sq_wpcall($url, $options) {
|
400 |
+
$response = wp_remote_get($url, $options);
|
401 |
$response = self::cleanResponce(wp_remote_retrieve_body($response)); //clear and get the body
|
402 |
+
self::dump('wp_remote_get', $url, $options, $response); //output debug
|
403 |
return $response;
|
404 |
}
|
405 |
|
448 |
* Check for SEO blog bad settings
|
449 |
*/
|
450 |
public static function checkErrorSettings($count_only = false) {
|
451 |
+
if (current_user_can('manage_options')) {
|
452 |
|
453 |
+
$fixit = "<a href=\"javascript:void(0);\" onclick=\"%s jQuery(this).closest('div').fadeOut('slow'); if(parseInt(jQuery('.sq_count').html())>0) { var notif = (parseInt(jQuery('.sq_count').html()) - 1); if (notif > 0) {jQuery('.sq_count').html(notif); }else{ jQuery('.sq_count').html(notif); jQuery('.sq_count').hide(); } } jQuery.post(ajaxurl, { action: '%s', nonce: '" . wp_create_nonce(_SQ_NONCE_ID_) . "'});\" >" . __("Fix it for me!", _SQ_PLUGIN_NAME_) . "</a>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
454 |
|
455 |
+
/* IF SEO INDEX IS OFF */
|
456 |
+
if (self::getAutoSeoSquirrly()) {
|
|
|
457 |
self::$errors_count ++;
|
458 |
+
if (!$count_only) {
|
459 |
+
SQ_Error::setError(__('Activate the Squirrly SEO for your blog (recommended)', _SQ_PLUGIN_NAME_) . " <br />" . sprintf($fixit, "jQuery('#sq_use_on').trigger('click');", "sq_fixautoseo") . "", 'settings', 'sq_fix_auto');
|
460 |
+
}
|
461 |
+
}
|
|
|
|
|
|
|
462 |
|
463 |
+
//check only when in seo settings
|
464 |
+
self::$source_code = self::sq_remote_get(get_bloginfo('url'), array(), array('timeout' => 5, 'followlocation' => true));
|
465 |
if (self::$source_code <> '') {
|
466 |
+
/* IF TITLE DUPLICATES */
|
467 |
+
if (self::getDuplicateTitle()) {
|
468 |
+
self::$errors_count ++;
|
469 |
+
if (!$count_only) {
|
470 |
+
SQ_Error::setError(__('You have META Title Duplicates. Disable the Squirrly Title Optimization or disable the other SEO Plugins', _SQ_PLUGIN_NAME_) . " <br />" . sprintf($fixit, "jQuery('#sq_auto_title0').attr('checked', true); jQuery('#sq_automatically').attr('checked', true);", "sq_fix_titleduplicate") . "", 'settings', 'sq_fix_descduplicate');
|
471 |
+
}
|
472 |
+
}
|
473 |
+
|
474 |
/* IF DESCRIPTION DUPLICATES */
|
475 |
if (self::getDuplicateDescription()) {
|
476 |
+
self::$errors_count ++;
|
477 |
+
if (!$count_only) {
|
478 |
+
SQ_Error::setError(__('You have META Description Duplicates. Disable the Squirrly Description Optimization or disable the other SEO Plugins', _SQ_PLUGIN_NAME_) . " <br />" . sprintf($fixit, "jQuery('#sq_auto_description0').attr('checked', true); jQuery('#sq_automatically').attr('checked', true);", "sq_fix_descduplicate") . "", 'settings', 'sq_fix_descduplicate');
|
479 |
+
}
|
480 |
}
|
481 |
|
482 |
/* IF OG DUPLICATES */
|
483 |
if (self::getDuplicateOG()) {
|
484 |
+
self::$errors_count ++;
|
485 |
+
if (!$count_only) {
|
486 |
+
SQ_Error::setError(__('You have Open Graph META Duplicates. Disable the Squirrly SEO Open Graph or disable the other SEO Plugins', _SQ_PLUGIN_NAME_) . " <br />" . sprintf($fixit, "jQuery('#sq_auto_facebook0').attr('checked', true);", "sq_fix_ogduplicate") . "", 'settings', 'sq_fix_ogduplicate');
|
487 |
+
}
|
488 |
}
|
489 |
|
490 |
/* IF TWITTER CARD DUPLICATES */
|
491 |
if (self::getDuplicateTC()) {
|
492 |
+
self::$errors_count ++;
|
493 |
+
if (!$count_only) {
|
494 |
+
SQ_Error::setError(__('You have Twitter Card META Duplicates. Disable the Squirrly SEO Twitter Card or disable the other SEO Plugins', _SQ_PLUGIN_NAME_) . " <br />" . sprintf($fixit, "jQuery('#sq_auto_twitter0').attr('checked', true);", "sq_fix_tcduplicate") . "", 'settings', 'sq_fix_tcduplicate');
|
495 |
+
}
|
496 |
}
|
497 |
}
|
|
|
|
|
|
|
|
|
498 |
|
499 |
+
/* IF SEO INDEX IS OFF */
|
500 |
+
if (self::getPrivateBlog()) {
|
501 |
self::$errors_count++;
|
502 |
+
if (!$count_only) {
|
503 |
+
SQ_Error::setError(__('You\'re blocking google from indexing your site!', _SQ_PLUGIN_NAME_) . " <br />" . sprintf($fixit, "jQuery('#sq_google_index1').attr('checked',true);", "sq_fixprivate") . "", 'settings', 'sq_fix_private');
|
504 |
+
}
|
505 |
+
}
|
506 |
|
507 |
+
if (self::getBadLinkStructure()) {
|
|
|
508 |
self::$errors_count++;
|
509 |
+
if (!$count_only) {
|
510 |
+
SQ_Error::setError(__('It is highly recommended that you include the %postname% variable in the permalink structure. <br />Go to Settings > Permalinks and add /%postname%/ in Custom Structure', _SQ_PLUGIN_NAME_) . " <br /> ", 'settings');
|
511 |
+
}
|
512 |
+
}
|
513 |
+
|
514 |
+
if (self::$errors_count == 0) {
|
515 |
+
self::saveOptions('sq_areissues', 0);
|
516 |
+
SQ_Error::setError(__('Great! We didn\'t find any issue in your site.', _SQ_PLUGIN_NAME_) . " <br /> ", 'success');
|
517 |
+
} else {
|
518 |
+
self::saveOptions('sq_areissues', 1);
|
519 |
+
}
|
520 |
}
|
521 |
}
|
522 |
|
601 |
return ($total > 1);
|
602 |
}
|
603 |
|
604 |
+
/**
|
605 |
+
* Check for META duplicates
|
606 |
+
* @return boolean
|
607 |
+
*/
|
608 |
+
private static function getDuplicateTitle() {
|
609 |
+
if (!function_exists('preg_match_all')) {
|
610 |
+
return false;
|
611 |
+
}
|
612 |
+
$total = 0;
|
613 |
+
|
614 |
+
if (self::$options['sq_use'] == 1 && self::$options['sq_auto_title'] == 1) {
|
615 |
+
if (self::$source_code <> '') {
|
616 |
+
preg_match_all("/<title[^>]*>(.*)?<\/title>/i", self::$source_code, $out);
|
617 |
+
if (!empty($out) && isset($out[0]) && is_array($out[0])) {
|
618 |
+
$total += sizeof($out[0]);
|
619 |
+
}
|
620 |
+
preg_match_all("/<meta[^>]*name=[\"|\']title[\"|\'][^>]*content=[\"|\']([^>\"]*)[\"|\'][^>]*>/i", self::$source_code, $out);
|
621 |
+
if (!empty($out) && isset($out[0]) && is_array($out[0])) {
|
622 |
+
$total += sizeof($out[0]);
|
623 |
+
}
|
624 |
+
}
|
625 |
+
}
|
626 |
+
|
627 |
+
return ($total > 1);
|
628 |
+
}
|
629 |
+
|
630 |
/**
|
631 |
* Check if the blog is in private mode
|
632 |
* @return bool
|
763 |
'description' => 240,
|
764 |
'url' => 45);
|
765 |
|
766 |
+
self::$source_code = self::sq_remote_get($url, array(), array('timeout' => 10, 'followlocation' => true));
|
|
|
|
|
|
|
|
|
767 |
|
768 |
$title_regex = "/<title[^>]*>([^<>]*)<\/title>/si";
|
769 |
preg_match($title_regex, self::$source_code, $title);
|
776 |
$description_regex = '/<meta[^<>]*description[^<>]*content="([^"<>]+)"[^<>]*>/si';
|
777 |
preg_match($description_regex, self::$source_code, $description);
|
778 |
if (is_array($description) && count($description) > 0) {
|
779 |
+
$snippet['description'] = self::i18n(trim(strip_tags($description[1])));
|
780 |
|
781 |
if (strlen($snippet['description']) > $length['description'])
|
782 |
$snippet['description'] = substr($snippet['description'], 0, ($length['description'] - 1)) . '...';
|
795 |
private function checkDebug() {
|
796 |
//if debug is called
|
797 |
if (self::getIsset('sq_debug')) {
|
798 |
+
if (self::getValue('sq_debug') == self::$options['sq_api']) {
|
|
|
|
|
799 |
$_GET['sq_debug'] = 'on';
|
800 |
+
} else {
|
|
|
|
|
801 |
$_GET['sq_debug'] = 'off';
|
802 |
+
}
|
803 |
|
804 |
if (self::getValue('sq_debug') === 'on') {
|
805 |
+
if (function_exists('register_shutdown_function')) {
|
806 |
register_shutdown_function(array($this, 'showDebug'));
|
807 |
+
}
|
808 |
}
|
809 |
}
|
810 |
}
|
813 |
* Store the debug for a later view
|
814 |
*/
|
815 |
public static function dump() {
|
816 |
+
if (self::getValue('sq_debug') !== 'on') {
|
817 |
+
return;
|
818 |
+
}
|
819 |
+
|
820 |
$output = '';
|
821 |
$callee = array('file' => '', 'line' => '');
|
822 |
if (function_exists('func_get_args')) {
|
826 |
$arguments = array();
|
827 |
|
828 |
|
829 |
+
$run_time = number_format(microtime(true) - REQUEST_TIME, 3);
|
830 |
if (function_exists('debug_backtrace'))
|
831 |
list( $callee ) = debug_backtrace();
|
832 |
|
833 |
$output .= '<fieldset style="background: #FFFFFF; border: 1px #CCCCCC solid; padding: 5px; font-size: 9pt; margin: 0;">';
|
834 |
+
$output .= '<legend style="background: #EEEEEE; padding: 2px; font-size: 8pt;">' . $callee['file'] . ' Time: ' . $run_time . ' @ line: ' . $callee['line']
|
835 |
. '</legend><pre style="margin: 0; font-size: 8pt; text-align: left;">';
|
836 |
|
837 |
$i = 0;
|
863 |
}
|
864 |
|
865 |
public function sq_activate() {
|
866 |
+
set_transient('sq_activate', true);
|
867 |
+
set_transient('sq_rewrite', true);
|
868 |
}
|
869 |
|
870 |
public function sq_deactivate() {
|
874 |
$args = array();
|
875 |
$args['type'] = 'deact';
|
876 |
SQ_Action::apiCall('sq/user/log', $args, 5);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
877 |
|
878 |
+
remove_filter('rewrite_rules_array', array(SQ_ObjController::getBlock('SQ_BlockSettingsSeo'), 'rewrite_rules'), 999, 1);
|
879 |
+
global $wp_rewrite;
|
880 |
+
$wp_rewrite->flush_rules();
|
|
|
881 |
}
|
882 |
|
883 |
public static function emptyCache($post_id = null) {
|
897 |
}
|
898 |
}
|
899 |
|
900 |
+
public static function checkUpgrade() {
|
901 |
+
if (self::$options['sq_ver'] == 0 || self::$options['sq_ver'] < SQ_VERSION_ID) {
|
902 |
+
//Delete the old versions table
|
903 |
+
global $wpdb;
|
904 |
+
$wpdb->query("UPDATE " . $wpdb->postmeta . " SET `meta_key` = '_sq_fp_title' WHERE `meta_key` = 'sq_fp_title'");
|
905 |
+
$wpdb->query("UPDATE " . $wpdb->postmeta . " SET `meta_key` = '_sq_fp_description' WHERE `meta_key` = 'sq_fp_description'");
|
906 |
+
$wpdb->query("UPDATE " . $wpdb->postmeta . " SET `meta_key` = '_sq_fp_ogimage' WHERE `meta_key` = 'sq_fp_ogimage'");
|
907 |
+
$wpdb->query("UPDATE " . $wpdb->postmeta . " SET `meta_key` = '_sq_fp_keywords' WHERE `meta_key` = 'sq_fp_keywords'");
|
908 |
+
$wpdb->query("UPDATE " . $wpdb->postmeta . " SET `meta_key` = '_sq_post_keyword' WHERE `meta_key` = 'sq_post_keyword'");
|
909 |
|
910 |
+
self::saveOptions('sq_ver', SQ_VERSION_ID);
|
911 |
+
}
|
912 |
+
}
|
913 |
+
|
914 |
+
}
|
config/config.php
CHANGED
@@ -5,6 +5,9 @@
|
|
5 |
*/
|
6 |
define('_SQ_SUPPORT_EMAIL_', 'support@squirrly.co');
|
7 |
define('_SQ_NONCE_ID_', NONCE_KEY);
|
|
|
|
|
|
|
8 |
|
9 |
if (!defined('PHP_VERSION_ID')) {
|
10 |
$version = explode('.', PHP_VERSION);
|
@@ -27,5 +30,4 @@ require_once(dirname(__FILE__) . '/paths.php');
|
|
27 |
|
28 |
/* Define the record name in the Option and UserMeta tables */
|
29 |
define('SQ_OPTION', 'sq_options');
|
30 |
-
define('SQ_META', 'sq_plugin_flash');
|
31 |
?>
|
5 |
*/
|
6 |
define('_SQ_SUPPORT_EMAIL_', 'support@squirrly.co');
|
7 |
define('_SQ_NONCE_ID_', NONCE_KEY);
|
8 |
+
define('_SQ_MOBILE_ICON_SIZES', '76,120,152');
|
9 |
+
define('REQUEST_TIME', microtime(true));
|
10 |
+
|
11 |
|
12 |
if (!defined('PHP_VERSION_ID')) {
|
13 |
$version = explode('.', PHP_VERSION);
|
30 |
|
31 |
/* Define the record name in the Option and UserMeta tables */
|
32 |
define('SQ_OPTION', 'sq_options');
|
|
|
33 |
?>
|
controllers/SQ_Frontend.php
CHANGED
@@ -5,11 +5,21 @@ class SQ_Frontend extends SQ_FrontController {
|
|
5 |
public static $options;
|
6 |
|
7 |
public function __construct() {
|
|
|
8 |
if ($this->_isAjax())
|
9 |
return;
|
10 |
|
11 |
parent::__construct();
|
12 |
SQ_ObjController::getController('SQ_Tools', false);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
}
|
14 |
|
15 |
private function _isAjax() {
|
@@ -29,13 +39,29 @@ class SQ_Frontend extends SQ_FrontController {
|
|
29 |
SQ_Tools::$options['sq_use'] = 0;
|
30 |
}
|
31 |
|
|
|
32 |
if (SQ_Tools::$options['sq_use'] == 1) {
|
33 |
-
if ($this->_isAjax())
|
34 |
return;
|
|
|
|
|
|
|
|
|
|
|
35 |
//Use buffer only for meta Title
|
36 |
-
//if(SQ_Tools::$options['sq_auto_title'] == 1)
|
37 |
$this->model->startBuffer();
|
38 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
}
|
40 |
|
41 |
/**
|
@@ -48,11 +74,11 @@ class SQ_Frontend extends SQ_FrontController {
|
|
48 |
echo $this->model->setStart();
|
49 |
|
50 |
if (isset(SQ_Tools::$options['sq_use']) && (int) SQ_Tools::$options['sq_use'] == 1) {
|
51 |
-
|
52 |
-
|
53 |
-
//Use buffer only for meta Title
|
54 |
-
//if(SQ_Tools::$options['sq_auto_title'] == 1)
|
55 |
$this->model->flushHeader();
|
|
|
|
|
|
|
56 |
}
|
57 |
|
58 |
SQ_ObjController::getController('SQ_DisplayController', false)
|
@@ -82,6 +108,20 @@ class SQ_Frontend extends SQ_FrontController {
|
|
82 |
}
|
83 |
}
|
84 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
if (!is_array($urls) || (is_array($urls) && empty($urls)))
|
86 |
return $content;
|
87 |
|
@@ -97,12 +137,41 @@ class SQ_Frontend extends SQ_FrontController {
|
|
97 |
}
|
98 |
|
99 |
/**
|
100 |
-
*
|
|
|
|
|
|
|
|
|
101 |
*/
|
102 |
-
public function
|
103 |
-
|
104 |
-
|
105 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
}
|
107 |
}
|
108 |
|
5 |
public static $options;
|
6 |
|
7 |
public function __construct() {
|
8 |
+
|
9 |
if ($this->_isAjax())
|
10 |
return;
|
11 |
|
12 |
parent::__construct();
|
13 |
SQ_ObjController::getController('SQ_Tools', false);
|
14 |
+
|
15 |
+
/* Check if sitemap is on */
|
16 |
+
if (SQ_Tools::$options['sq_use'] == 1 && SQ_Tools::$options['sq_auto_sitemap'] == 1) {
|
17 |
+
/* Load the Sitemap */
|
18 |
+
SQ_ObjController::getController('SQ_Sitemaps');
|
19 |
+
}
|
20 |
+
|
21 |
+
//validate custom arguments for favicon and sitemap
|
22 |
+
add_filter('query_vars', array($this, 'validateParams'), 1, 1);
|
23 |
}
|
24 |
|
25 |
private function _isAjax() {
|
39 |
SQ_Tools::$options['sq_use'] = 0;
|
40 |
}
|
41 |
|
42 |
+
|
43 |
if (SQ_Tools::$options['sq_use'] == 1) {
|
44 |
+
if ($this->_isAjax()) {
|
45 |
return;
|
46 |
+
}
|
47 |
+
|
48 |
+
add_filter('sq_title', array($this->model, 'clearTitle'));
|
49 |
+
add_filter('sq_description', array($this->model, 'clearDescription'));
|
50 |
+
|
51 |
//Use buffer only for meta Title
|
|
|
52 |
$this->model->startBuffer();
|
53 |
}
|
54 |
+
|
55 |
+
//Check for sitemap and robots
|
56 |
+
if (SQ_Tools::$options['sq_use'] == 1) {
|
57 |
+
if (isset($_SERVER['REQUEST_URI']) && SQ_Tools::$options['sq_auto_robots'] == 1) {
|
58 |
+
if (substr(strrchr($_SERVER['REQUEST_URI'], "/"), 1) == "robots.txt" || $_SERVER['REQUEST_URI'] == "/robots.txt") {
|
59 |
+
$this->model->robots();
|
60 |
+
}
|
61 |
+
}
|
62 |
+
}
|
63 |
+
//check the action call
|
64 |
+
$this->action();
|
65 |
}
|
66 |
|
67 |
/**
|
74 |
echo $this->model->setStart();
|
75 |
|
76 |
if (isset(SQ_Tools::$options['sq_use']) && (int) SQ_Tools::$options['sq_use'] == 1) {
|
77 |
+
//flush the header with the title and removing duplicates
|
|
|
|
|
|
|
78 |
$this->model->flushHeader();
|
79 |
+
|
80 |
+
//show the Squirrly header
|
81 |
+
echo $this->model->setHeader();
|
82 |
}
|
83 |
|
84 |
SQ_ObjController::getController('SQ_DisplayController', false)
|
108 |
}
|
109 |
}
|
110 |
}
|
111 |
+
|
112 |
+
@preg_match_all('/<a[^>]*href="([^"]+)"[^>]*>/i', $content, $out);
|
113 |
+
if (is_array($out)) {
|
114 |
+
if (!is_array($out[1]) || empty($out[1]))
|
115 |
+
return $content;
|
116 |
+
|
117 |
+
foreach ($out[1] as $row) {
|
118 |
+
if (strpos($row, '//') === false) {
|
119 |
+
if (!in_array($row, $urls)) {
|
120 |
+
$urls[] = $row;
|
121 |
+
}
|
122 |
+
}
|
123 |
+
}
|
124 |
+
}
|
125 |
if (!is_array($urls) || (is_array($urls) && empty($urls)))
|
126 |
return $content;
|
127 |
|
137 |
}
|
138 |
|
139 |
/**
|
140 |
+
* Validate the params for getting the basic info from the server
|
141 |
+
* eg favicon.ico
|
142 |
+
*
|
143 |
+
* @param array $vars
|
144 |
+
* @return $vars
|
145 |
*/
|
146 |
+
public function validateParams($vars) {
|
147 |
+
$vars[] = 'sq_get';
|
148 |
+
$vars[] = 'sq_size';
|
149 |
+
return $vars;
|
150 |
+
}
|
151 |
+
|
152 |
+
public function action() {
|
153 |
+
|
154 |
+
switch (get_query_var('sq_get')) {
|
155 |
+
case 'favicon':
|
156 |
+
if (SQ_Tools::$options['favicon'] <> '') {
|
157 |
+
//show the favico file
|
158 |
+
SQ_Tools::setHeader('ico');
|
159 |
+
echo readfile(_SQ_CACHE_DIR_ . SQ_Tools::$options['favicon']);
|
160 |
+
exit();
|
161 |
+
}
|
162 |
+
break;
|
163 |
+
case 'touchicon':
|
164 |
+
$size = get_query_var('sq_size');
|
165 |
+
if (SQ_Tools::$options['favicon'] <> '') {
|
166 |
+
//show the favico file
|
167 |
+
SQ_Tools::setHeader('png');
|
168 |
+
if ($size <> '') {
|
169 |
+
echo readfile(_SQ_CACHE_DIR_ . SQ_Tools::$options['favicon'] . get_query_var('sq_size'));
|
170 |
+
} else {
|
171 |
+
echo readfile(_SQ_CACHE_DIR_ . SQ_Tools::$options['favicon']);
|
172 |
+
}
|
173 |
+
exit();
|
174 |
+
}
|
175 |
}
|
176 |
}
|
177 |
|
controllers/SQ_Menu.php
CHANGED
@@ -8,128 +8,95 @@ class SQ_Menu extends SQ_FrontController {
|
|
8 |
/** @var array snippet */
|
9 |
var $options = array();
|
10 |
|
|
|
|
|
|
|
|
|
|
|
11 |
/**
|
12 |
-
*
|
13 |
-
*
|
14 |
-
* @global type $wpdb
|
15 |
-
* @return type
|
16 |
*/
|
17 |
-
public function
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
|
|
22 |
|
23 |
-
|
24 |
-
|
|
|
25 |
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
|
|
|
|
30 |
|
31 |
-
|
32 |
-
|
33 |
-
}
|
34 |
-
|
|
|
|
|
35 |
}
|
36 |
-
exit();
|
37 |
}
|
38 |
|
39 |
/**
|
40 |
* Creates the Setting menu in Wordpress
|
41 |
*/
|
42 |
public function hookMenu() {
|
43 |
-
$first_page = preg_replace('/\s/', '_', _SQ_NAME_);
|
44 |
-
$this->post_type = array('post', 'page', 'movie', 'product', 'download', 'shopp_page_shopp-products');
|
45 |
|
46 |
-
|
47 |
-
if (SQ_Tools::getIsset('post_type')) {
|
48 |
-
if (SQ_Tools::getValue('post_type') <> '') {
|
49 |
-
array_push($this->post_type, SQ_Tools::getValue('post_type'));
|
50 |
-
}
|
51 |
-
} elseif (SQ_Tools::getIsset('post')) {
|
52 |
-
$post = get_post(SQ_Tools::getValue('post'));
|
53 |
-
if (isset($post->post_type)) {
|
54 |
-
array_push($this->post_type, $post->post_type);
|
55 |
-
}
|
56 |
-
} elseif (SQ_Tools::getIsset('id')) {
|
57 |
-
$post = get_post(SQ_Tools::getValue('id'));
|
58 |
-
if (isset($post->post_type)) {
|
59 |
-
array_push($this->post_type, $post->post_type);
|
60 |
-
}
|
61 |
-
}
|
62 |
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
$first_page = 'sq_dashboard';
|
67 |
}
|
68 |
-
|
69 |
-
|
70 |
-
if (current_user_can('manage_options')) {
|
71 |
-
SQ_Tools::checkErrorSettings(true);
|
72 |
-
//check if activated
|
73 |
-
$this->checkActivation();
|
74 |
-
//activate the cron job if not exists
|
75 |
-
if (!wp_get_schedule('sq_processCron')) {
|
76 |
-
wp_schedule_event(time(), 'hourly', 'sq_processCron');
|
77 |
-
}
|
78 |
}
|
79 |
|
80 |
-
//Push the Analytics Check
|
81 |
$analytics_alert = 0;
|
82 |
-
if (SQ_ObjController::getModel('SQ_Post')->countKeywords() > 0) {
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
if (strpos($_SERVER['REQUEST_URI'], '?page=sq_dashboard') !== false) {
|
88 |
-
SQ_Tools::saveOptions('sq_dashboard', 1);
|
89 |
} else {
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
set_transient('sq_dashboard', time(), (60 * 60 * 24 * 7));
|
94 |
-
} else {
|
95 |
-
$time_loaded = get_transient('sq_dashboard');
|
96 |
-
if (time() - $time_loaded > (60 * 60 * 24 * 3)) {
|
97 |
-
SQ_Error::setError(__('Check out your SEO Audit and the Performance Analytics section. <a href="admin.php?page=sq_dashboard" title="Squirrly Dashboard">Click here</a>', _SQ_PLUGIN_NAME_));
|
98 |
-
}
|
99 |
-
}
|
100 |
}
|
101 |
}
|
102 |
}
|
103 |
|
104 |
-
SQ_Tools::$
|
105 |
-
|
|
|
|
|
|
|
106 |
|
107 |
$this->model->addMenu(array(ucfirst(_SQ_NAME_),
|
108 |
'Squirrly' . SQ_Tools::showNotices(SQ_Tools::$errors_count, 'errors_count'),
|
109 |
'edit_posts',
|
110 |
-
|
111 |
null,
|
112 |
-
_SQ_THEME_URL_ . 'img/menu_icon_16.png'
|
113 |
));
|
114 |
-
if (SQ_Tools::$options['sq_api'] == '') {
|
115 |
-
$this->model->addSubmenu(array($first_page,
|
116 |
-
ucfirst(_SQ_NAME_) . __(' getting started', _SQ_PLUGIN_NAME_),
|
117 |
-
__('Getting started', _SQ_PLUGIN_NAME_),
|
118 |
-
'edit_posts',
|
119 |
-
'sq_howto',
|
120 |
-
array(SQ_ObjController::getBlock('SQ_BlockHelp'), 'init')
|
121 |
-
));
|
122 |
-
}
|
123 |
-
if (SQ_Tools::$options['sq_api'] <> '') {
|
124 |
-
$this->model->addSubmenu(array($first_page,
|
125 |
-
ucfirst(_SQ_NAME_) . __(' dashboard', _SQ_PLUGIN_NAME_),
|
126 |
-
__('Dashboard', _SQ_PLUGIN_NAME_),
|
127 |
-
'edit_posts',
|
128 |
-
'sq_dashboard',
|
129 |
-
array(SQ_ObjController::getBlock('SQ_BlockDashboard'), 'init')
|
130 |
-
));
|
131 |
|
132 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
ucfirst(_SQ_NAME_) . __(' post list', _SQ_PLUGIN_NAME_),
|
134 |
__('Performance <br />Analytics', _SQ_PLUGIN_NAME_) . SQ_Tools::showNotices($analytics_alert, 'errors_count'),
|
135 |
'edit_posts',
|
@@ -137,26 +104,35 @@ class SQ_Menu extends SQ_FrontController {
|
|
137 |
array(SQ_ObjController::getBlock('SQ_BlockPostsAnalytics'), 'init')
|
138 |
));
|
139 |
|
140 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
ucfirst(_SQ_NAME_) . __(' account info', _SQ_PLUGIN_NAME_),
|
142 |
__('Account Info', _SQ_PLUGIN_NAME_),
|
143 |
'manage_options',
|
144 |
'sq_account',
|
145 |
array(SQ_ObjController::getBlock('SQ_BlockAccount'), 'init')
|
146 |
));
|
147 |
-
|
148 |
-
$this->model->addSubmenu(array($first_page,
|
149 |
-
ucfirst(_SQ_NAME_) . __(' settings', _SQ_PLUGIN_NAME_),
|
150 |
-
__('SEO Settings', _SQ_PLUGIN_NAME_) . SQ_Tools::showNotices(SQ_Tools::$errors_count, 'errors_count'),
|
151 |
-
'manage_options',
|
152 |
-
preg_replace('/\s/', '_', _SQ_NAME_),
|
153 |
-
array($this, 'showMenu')
|
154 |
-
));
|
155 |
}
|
156 |
|
157 |
-
$this->model->addSubmenu(array(
|
158 |
-
__('
|
159 |
-
__('
|
160 |
'manage_options',
|
161 |
'sq_affiliate',
|
162 |
array(SQ_ObjController::getBlock('SQ_BlockAffiliate'), 'init')
|
@@ -173,172 +149,41 @@ class SQ_Menu extends SQ_FrontController {
|
|
173 |
|
174 |
//Add the Rank in the Posts list
|
175 |
$postlist = SQ_ObjController::getController('SQ_PostsList');
|
176 |
-
if (is_object($postlist))
|
177 |
$postlist->init();
|
178 |
-
|
179 |
-
|
180 |
-
/**
|
181 |
-
* Show the menu content after click event
|
182 |
-
*
|
183 |
-
* @return void
|
184 |
-
*/
|
185 |
-
public function showMenu() {
|
186 |
-
/* Load the error class */
|
187 |
-
SQ_Tools::checkErrorSettings();
|
188 |
-
/* Force call of error display */
|
189 |
-
SQ_ObjController::getController('SQ_Error', false)->hookNotices();
|
190 |
-
|
191 |
-
|
192 |
-
/* Get the options from Database */
|
193 |
-
$this->options = SQ_Tools::$options;
|
194 |
-
SQ_ObjController::getBlock('SQ_BlockSupport')->init();
|
195 |
|
196 |
-
//
|
197 |
-
|
|
|
|
|
|
|
|
|
198 |
}
|
199 |
|
200 |
/**
|
201 |
-
*
|
|
|
202 |
*
|
203 |
-
* @
|
|
|
|
|
204 |
*/
|
205 |
-
public function
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
SQ_Tools::saveOptions('sq_use', (int) SQ_Tools::getValue('sq_use'));
|
216 |
-
SQ_Tools::saveOptions('sq_auto_title', (int) SQ_Tools::getValue('sq_auto_title'));
|
217 |
-
SQ_Tools::saveOptions('sq_auto_description', (int) SQ_Tools::getValue('sq_auto_description'));
|
218 |
-
SQ_Tools::saveOptions('sq_auto_canonical', (int) SQ_Tools::getValue('sq_auto_canonical'));
|
219 |
-
SQ_Tools::saveOptions('sq_auto_sitemap', (int) SQ_Tools::getValue('sq_auto_sitemap'));
|
220 |
-
SQ_Tools::saveOptions('sq_auto_meta', (int) SQ_Tools::getValue('sq_auto_meta'));
|
221 |
-
SQ_Tools::saveOptions('sq_auto_favicon', (int) SQ_Tools::getValue('sq_auto_favicon'));
|
222 |
-
SQ_Tools::saveOptions('sq_auto_facebook', (int) SQ_Tools::getValue('sq_auto_facebook'));
|
223 |
-
SQ_Tools::saveOptions('sq_auto_twitter', (int) SQ_Tools::getValue('sq_auto_twitter'));
|
224 |
-
|
225 |
-
$sq_twitter_account = SQ_Tools::getValue('sq_twitter_account');
|
226 |
-
if ($sq_twitter_account <> '')
|
227 |
-
if (strpos($sq_twitter_account, '@') === false)
|
228 |
-
$sq_twitter_account = '@' . $sq_twitter_account;
|
229 |
-
SQ_Tools::saveOptions('sq_twitter_account', $sq_twitter_account);
|
230 |
-
|
231 |
-
SQ_Tools::saveOptions('sq_auto_seo', 0);
|
232 |
-
if ($pageId = get_option('page_on_front')) {
|
233 |
-
$meta = array();
|
234 |
-
if (SQ_Tools::getIsset('sq_fp_title'))
|
235 |
-
$meta[] = array('key' => 'sq_fp_title', 'value' => urldecode(SQ_Tools::getValue('sq_fp_title')));
|
236 |
-
|
237 |
-
if (SQ_Tools::getIsset('sq_fp_description'))
|
238 |
-
$meta[] = array('key' => 'sq_fp_description', 'value' => urldecode(SQ_Tools::getValue('sq_fp_description')));
|
239 |
-
|
240 |
-
if (SQ_Tools::getIsset('sq_fp_keywords'))
|
241 |
-
$meta[] = array('key' => 'sq_fp_keywords', 'value' => SQ_Tools::getValue('sq_fp_keywords'));
|
242 |
-
|
243 |
-
if (SQ_Tools::getIsset('sq_fp_ogimage'))
|
244 |
-
$meta[] = array('key' => 'sq_fp_ogimage', 'value' => SQ_ObjController::getModel('SQ_Frontend')->getAdvancedMeta($pageId, 'ogimage'));
|
245 |
-
|
246 |
-
if (!empty($meta))
|
247 |
-
SQ_ObjController::getModel('SQ_Post')->saveAdvMeta($pageId, $meta);
|
248 |
-
}else {
|
249 |
-
SQ_Tools::saveOptions('sq_fp_title', SQ_Tools::getValue('sq_fp_title'));
|
250 |
-
SQ_Tools::saveOptions('sq_fp_description', SQ_Tools::getValue('sq_fp_description'));
|
251 |
-
SQ_Tools::saveOptions('sq_fp_keywords', SQ_Tools::getValue('sq_fp_keywords'));
|
252 |
-
}
|
253 |
-
|
254 |
-
SQ_Tools::saveOptions('sq_google_country', SQ_Tools::getValue('sq_google_country'));
|
255 |
-
SQ_Tools::saveOptions('sq_google_country_strict', SQ_Tools::getValue('sq_google_country_strict'));
|
256 |
-
|
257 |
-
|
258 |
-
SQ_Tools::saveOptions('sq_google_plus', SQ_Tools::getValue('sq_google_plus'));
|
259 |
-
SQ_Tools::saveOptions('sq_google_wt', $this->model->checkGoogleWTCode(SQ_Tools::getValue('sq_google_wt')));
|
260 |
-
SQ_Tools::saveOptions('sq_google_analytics', $this->model->checkGoogleAnalyticsCode(SQ_Tools::getValue('sq_google_analytics')));
|
261 |
-
SQ_Tools::saveOptions('sq_facebook_insights', $this->model->checkFavebookInsightsCode(SQ_Tools::getValue('sq_facebook_insights')));
|
262 |
-
SQ_Tools::saveOptions('sq_bing_wt', $this->model->checkBingWTCode(SQ_Tools::getValue('sq_bing_wt')));
|
263 |
-
SQ_Tools::saveOptions('sq_pinterest', $this->model->checkPinterestCode(SQ_Tools::getValue('sq_pinterest')));
|
264 |
-
SQ_Tools::saveOptions('sq_alexa', $this->model->checkBingWTCode(SQ_Tools::getValue('sq_alexa')));
|
265 |
-
|
266 |
-
|
267 |
-
SQ_Tools::saveOptions('ignore_warn', (int) SQ_Tools::getValue('ignore_warn'));
|
268 |
-
SQ_Tools::saveOptions('sq_keyword_help', (int) SQ_Tools::getValue('sq_keyword_help'));
|
269 |
-
SQ_Tools::saveOptions('sq_keyword_information', (int) SQ_Tools::getValue('sq_keyword_information'));
|
270 |
-
SQ_Tools::saveOptions('sq_sla', (int) SQ_Tools::getValue('sq_sla'));
|
271 |
-
SQ_Tools::saveOptions('sq_keywordtag', (int) SQ_Tools::getValue('sq_keywordtag'));
|
272 |
-
SQ_Tools::saveOptions('sq_local_images', (int) SQ_Tools::getValue('sq_local_images'));
|
273 |
-
|
274 |
-
//update_option('blog_public', (int)SQ_Tools::getValue('sq_google_index'));
|
275 |
-
|
276 |
-
/* if there is an icon to upload */
|
277 |
-
if (!empty($_FILES['favicon'])) {
|
278 |
-
|
279 |
-
$return = $this->model->addFavicon($_FILES['favicon']);
|
280 |
-
if ($return['favicon'] <> '')
|
281 |
-
SQ_Tools::saveOptions('favicon', $return['favicon']);
|
282 |
-
if ($return['name'] <> '')
|
283 |
-
SQ_Tools::saveOptions('favicon_tmp', $return['name']);
|
284 |
-
if ($return['message'] <> '')
|
285 |
-
define('SQ_MESSAGE_FAVICON', $return['message']);
|
286 |
-
}
|
287 |
-
|
288 |
-
/* Generate the sitemap */
|
289 |
-
if (SQ_Tools::getValue('sq_use'))
|
290 |
-
add_action('admin_footer', array(SQ_ObjController::getController('SQ_Sitemap', false), 'generateSitemap'), 9999, 1);
|
291 |
-
|
292 |
-
//empty the cache on settings changed
|
293 |
-
SQ_Tools::emptyCache();
|
294 |
-
break;
|
295 |
-
case 'sq_fixautoseo':
|
296 |
-
SQ_Tools::saveOptions('sq_use', 1);
|
297 |
-
break;
|
298 |
-
case 'sq_fixprivate':
|
299 |
-
update_option('blog_public', 1);
|
300 |
-
break;
|
301 |
-
case 'sq_fixcomments':
|
302 |
-
update_option('comments_notify', 1);
|
303 |
-
break;
|
304 |
-
case 'sq_fixpermalink':
|
305 |
-
$GLOBALS['wp_rewrite'] = new WP_Rewrite();
|
306 |
-
global $wp_rewrite;
|
307 |
-
$permalink_structure = ((get_option('permalink_structure') <> '') ? get_option('permalink_structure') : '/') . "%postname%/";
|
308 |
-
$wp_rewrite->set_permalink_structure($permalink_structure);
|
309 |
-
$permalink_structure = get_option('permalink_structure');
|
310 |
-
|
311 |
-
flush_rewrite_rules();
|
312 |
-
break;
|
313 |
-
case 'sq_fix_ogduplicate':
|
314 |
-
SQ_Tools::saveOptions('sq_auto_facebook', 0);
|
315 |
-
break;
|
316 |
-
case 'sq_fix_tcduplicate':
|
317 |
-
SQ_Tools::saveOptions('sq_auto_twitter', 0);
|
318 |
-
break;
|
319 |
-
case 'sq_fix_descduplicate':
|
320 |
-
SQ_Tools::saveOptions('sq_auto_description', 0);
|
321 |
-
SQ_Tools::saveOptions('sq_auto_seo', 1);
|
322 |
-
break;
|
323 |
-
|
324 |
-
case 'sq_warnings_off':
|
325 |
-
SQ_Tools::saveOptions('ignore_warn', 1);
|
326 |
-
break;
|
327 |
-
case 'sq_get_snippet':
|
328 |
-
if (SQ_Tools::getValue('url') <> '') {
|
329 |
-
$url = SQ_Tools::getValue('url');
|
330 |
-
} else {
|
331 |
-
$url = get_bloginfo('url');
|
332 |
-
}
|
333 |
-
$snippet = SQ_Tools::getSnippet($url);
|
334 |
-
//SQ_Tools::dump($snippet);
|
335 |
|
336 |
-
|
337 |
-
$snippet['url'] = get_permalink((int)SQ_Tools::getValue('post_id'));
|
338 |
-
*/
|
339 |
-
echo json_encode($snippet);
|
340 |
-
exit();
|
341 |
}
|
|
|
|
|
342 |
}
|
343 |
|
344 |
}
|
8 |
/** @var array snippet */
|
9 |
var $options = array();
|
10 |
|
11 |
+
public function __construct() {
|
12 |
+
parent::__construct();
|
13 |
+
add_filter('rewrite_rules_array', array(SQ_ObjController::getBlock('SQ_BlockSettingsSeo'), 'rewrite_rules'), 999, 1);
|
14 |
+
}
|
15 |
+
|
16 |
/**
|
17 |
+
* Hook the Admin load
|
|
|
|
|
|
|
18 |
*/
|
19 |
+
public function hookInit() {
|
20 |
+
|
21 |
+
/* add the plugin menu in admin */
|
22 |
+
if (current_user_can('manage_options')) {
|
23 |
+
//check if activated
|
24 |
+
if (get_transient('sq_activate') == 1) {
|
25 |
+
// Delete the redirect transient
|
26 |
+
delete_transient('sq_activate');
|
27 |
+
SQ_Action::apiCall('sq/user/settings', array('settings' => json_encode(SQ_Tools::getBriefOptions())), 10);
|
28 |
|
29 |
+
wp_safe_redirect(admin_url('admin.php?page=sq_dashboard'));
|
30 |
+
exit();
|
31 |
+
}
|
32 |
|
33 |
+
if (get_transient('sq_rewrite') == 1) {
|
34 |
+
// Delete the redirect transient
|
35 |
+
delete_transient('sq_rewrite');
|
36 |
+
global $wp_rewrite;
|
37 |
+
$wp_rewrite->flush_rules();
|
38 |
+
}
|
39 |
|
40 |
+
//Check if there are expected upgrades
|
41 |
+
SQ_Tools::checkUpgrade();
|
42 |
+
}
|
43 |
+
//activate the cron job if not exists
|
44 |
+
if (!wp_get_schedule('sq_processCron')) {
|
45 |
+
wp_schedule_event(time(), 'hourly', 'sq_processCron');
|
46 |
}
|
|
|
47 |
}
|
48 |
|
49 |
/**
|
50 |
* Creates the Setting menu in Wordpress
|
51 |
*/
|
52 |
public function hookMenu() {
|
|
|
|
|
53 |
|
54 |
+
$this->post_type = SQ_Tools::$options['sq_post_types'];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
+
//Push the Analytics Check
|
57 |
+
if (strpos($_SERVER['REQUEST_URI'], '?page=sq_dashboard') !== false) {
|
58 |
+
SQ_Tools::saveOptions('sq_dashboard', 1);
|
|
|
59 |
}
|
60 |
+
if (strpos($_SERVER['REQUEST_URI'], '?page=sq_analytics') !== false) {
|
61 |
+
SQ_Tools::saveOptions('sq_analytics', 1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
}
|
63 |
|
|
|
64 |
$analytics_alert = 0;
|
65 |
+
if (SQ_ObjController::getModel('SQ_Post')->countKeywords() > 0 && SQ_Tools::$options['sq_analytics'] == 0) {
|
66 |
+
$analytics_alert = 1;
|
67 |
+
if (!get_transient('sq_analytics')) {
|
68 |
+
set_transient('sq_analytics', time(), (60 * 60 * 24 * 7));
|
|
|
|
|
|
|
69 |
} else {
|
70 |
+
$time_loaded = get_transient('sq_analytics');
|
71 |
+
if (time() - $time_loaded > (60 * 60 * 24 * 3)) {
|
72 |
+
SQ_Error::setError(__('Check out the Squirrly Analytics section. <a href="admin.php?page=sq_posts" title="Squirrly Analytics">Click here</a>', _SQ_PLUGIN_NAME_));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
}
|
74 |
}
|
75 |
}
|
76 |
|
77 |
+
$dashboard_alert = (int) (SQ_Tools::$options['sq_dashboard'] == 0);
|
78 |
+
|
79 |
+
|
80 |
+
|
81 |
+
///////////////
|
82 |
|
83 |
$this->model->addMenu(array(ucfirst(_SQ_NAME_),
|
84 |
'Squirrly' . SQ_Tools::showNotices(SQ_Tools::$errors_count, 'errors_count'),
|
85 |
'edit_posts',
|
86 |
+
'sq_dashboard',
|
87 |
null,
|
88 |
+
_SQ_THEME_URL_ . 'img/settings/menu_icon_16.png'
|
89 |
));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
90 |
|
91 |
+
$this->model->addSubmenu(array('sq_dashboard',
|
92 |
+
ucfirst(_SQ_NAME_) . __(' dashboard', _SQ_PLUGIN_NAME_),
|
93 |
+
( (SQ_Tools::$options['sq_api'] == '') ? __('First Step', _SQ_PLUGIN_NAME_) : __('Dashboard', _SQ_PLUGIN_NAME_)) . SQ_Tools::showNotices($dashboard_alert, 'errors_count'),
|
94 |
+
'edit_posts',
|
95 |
+
'sq_dashboard',
|
96 |
+
array(SQ_ObjController::getBlock('SQ_BlockDashboard'), 'init')
|
97 |
+
));
|
98 |
+
if (SQ_Tools::$options['sq_api'] <> '') {
|
99 |
+
$this->model->addSubmenu(array('sq_dashboard',
|
100 |
ucfirst(_SQ_NAME_) . __(' post list', _SQ_PLUGIN_NAME_),
|
101 |
__('Performance <br />Analytics', _SQ_PLUGIN_NAME_) . SQ_Tools::showNotices($analytics_alert, 'errors_count'),
|
102 |
'edit_posts',
|
104 |
array(SQ_ObjController::getBlock('SQ_BlockPostsAnalytics'), 'init')
|
105 |
));
|
106 |
|
107 |
+
|
108 |
+
$this->model->addSubmenu(array('sq_dashboard',
|
109 |
+
ucfirst(_SQ_NAME_) . __(' settings', _SQ_PLUGIN_NAME_),
|
110 |
+
__('SEO', _SQ_PLUGIN_NAME_) . SQ_Tools::showNotices(SQ_Tools::$errors_count, 'errors_count'),
|
111 |
+
'manage_options',
|
112 |
+
'sq_seo',
|
113 |
+
array(SQ_ObjController::getBlock('SQ_BlockSettingsSeo'), 'init')
|
114 |
+
));
|
115 |
+
|
116 |
+
$this->model->addSubmenu(array('sq_dashboard',
|
117 |
+
ucfirst(_SQ_NAME_) . __(' Settings', _SQ_PLUGIN_NAME_),
|
118 |
+
__('Settings', _SQ_PLUGIN_NAME_),
|
119 |
+
'manage_options',
|
120 |
+
'sq_settings',
|
121 |
+
array(SQ_ObjController::getBlock('SQ_BlockSettings'), 'init')
|
122 |
+
));
|
123 |
+
|
124 |
+
$this->model->addSubmenu(array('sq_dashboard',
|
125 |
ucfirst(_SQ_NAME_) . __(' account info', _SQ_PLUGIN_NAME_),
|
126 |
__('Account Info', _SQ_PLUGIN_NAME_),
|
127 |
'manage_options',
|
128 |
'sq_account',
|
129 |
array(SQ_ObjController::getBlock('SQ_BlockAccount'), 'init')
|
130 |
));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
}
|
132 |
|
133 |
+
$this->model->addSubmenu(array('sq_dashboard',
|
134 |
+
__('Become an Affiliate with ', _SQ_PLUGIN_NAME_) . ucfirst(_SQ_NAME_),
|
135 |
+
__('Affiliate plan', _SQ_PLUGIN_NAME_),
|
136 |
'manage_options',
|
137 |
'sq_affiliate',
|
138 |
array(SQ_ObjController::getBlock('SQ_BlockAffiliate'), 'init')
|
149 |
|
150 |
//Add the Rank in the Posts list
|
151 |
$postlist = SQ_ObjController::getController('SQ_PostsList');
|
152 |
+
if (is_object($postlist)) {
|
153 |
$postlist->init();
|
154 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
|
156 |
+
//Show bar to go back and finish the help
|
157 |
+
if ($this->is_page('edit') || strpos($_SERVER['REQUEST_URI'], 'sq_posts') !== false) {
|
158 |
+
if (SQ_Tools::$options['active_help'] <> '' && SQ_Tools::$options['ignore_warn'] == 0) {
|
159 |
+
SQ_Error::setError('Go back and complete the Squirrly Tasks for today <a href="admin.php?page=sq_' . SQ_Tools::$options['active_help'] . '" class="sq_button" title="Continue the Help">Continue</a>', 'helpnotice');
|
160 |
+
}
|
161 |
+
}
|
162 |
}
|
163 |
|
164 |
/**
|
165 |
+
* Is the user on page name? Default name = post edit page
|
166 |
+
* name = 'quirrly'
|
167 |
*
|
168 |
+
* @global array $pagenow
|
169 |
+
* @param string $name
|
170 |
+
* @return boolean
|
171 |
*/
|
172 |
+
public function is_page($name = '') {
|
173 |
+
global $pagenow;
|
174 |
+
$page = array();
|
175 |
+
//make sure we are on the backend
|
176 |
+
if (is_admin() && $name <> '') {
|
177 |
+
if ($name == 'edit') {
|
178 |
+
$page = array('post.php', 'post-new.php');
|
179 |
+
} else {
|
180 |
+
array_push($page, $name . '.php');
|
181 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
182 |
|
183 |
+
return in_array($pagenow, $page);
|
|
|
|
|
|
|
|
|
184 |
}
|
185 |
+
|
186 |
+
return false;
|
187 |
}
|
188 |
|
189 |
}
|
controllers/SQ_Post.php
CHANGED
@@ -20,9 +20,11 @@ class SQ_Post extends SQ_FrontController {
|
|
20 |
return;
|
21 |
|
22 |
add_action('save_post', array($this, 'hookSavePost'), 11);
|
23 |
-
|
24 |
-
//For Shopp plugin - product
|
25 |
add_action('shopp_product_saved', array($this, 'hookShopp'), 11);
|
|
|
|
|
|
|
|
|
26 |
}
|
27 |
|
28 |
/**
|
@@ -193,7 +195,8 @@ class SQ_Post extends SQ_FrontController {
|
|
193 |
$args['author'] = (int) SQ_Tools::getUserID();
|
194 |
$args['post_id'] = $post_id;
|
195 |
|
196 |
-
|
|
|
197 |
|
198 |
//Save the keyword for this post
|
199 |
if ($json = $this->model->getKeyword($post_id)) {
|
@@ -233,22 +236,24 @@ class SQ_Post extends SQ_FrontController {
|
|
233 |
if (!empty($_FILES['ogimage'])) {
|
234 |
$return = $this->model->addImage($_FILES['ogimage']);
|
235 |
}
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
|
|
249 |
SQ_Tools::setHeader('json');
|
250 |
echo json_encode($return);
|
251 |
SQ_Tools::emptyCache();
|
|
|
252 |
break;
|
253 |
case 'sq_get_keyword':
|
254 |
SQ_Tools::setHeader('json');
|
@@ -274,25 +279,34 @@ class SQ_Post extends SQ_FrontController {
|
|
274 |
$meta = array();
|
275 |
if (SQ_Tools::getIsset('sq_fp_title') || SQ_Tools::getIsset('sq_fp_description') || SQ_Tools::getIsset('sq_fp_keywords')) {
|
276 |
if (SQ_Tools::getIsset('sq_fp_title'))
|
277 |
-
$meta[] = array('key' => '
|
278 |
-
'value' =>
|
279 |
|
280 |
if (SQ_Tools::getIsset('sq_fp_description'))
|
281 |
-
$meta[] = array('key' => '
|
282 |
-
'value' =>
|
283 |
|
284 |
if (SQ_Tools::getIsset('sq_fp_keywords'))
|
285 |
-
$meta[] = array('key' => '
|
286 |
'value' => SQ_Tools::getValue('sq_fp_keywords'));
|
287 |
|
288 |
if (SQ_Tools::getIsset('sq_fp_ogimage'))
|
289 |
-
$meta[] = array('key' => '
|
290 |
'value' => SQ_Tools::getValue('sq_fp_ogimage'));
|
291 |
|
|
|
292 |
$this->model->saveAdvMeta($post_id, $meta);
|
|
|
293 |
return $meta;
|
294 |
}
|
295 |
return false;
|
296 |
}
|
297 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
}
|
20 |
return;
|
21 |
|
22 |
add_action('save_post', array($this, 'hookSavePost'), 11);
|
|
|
|
|
23 |
add_action('shopp_product_saved', array($this, 'hookShopp'), 11);
|
24 |
+
|
25 |
+
if (SQ_Tools::$options['sq_use'] == 1 && SQ_Tools::$options['sq_auto_sitemap'] == 1) {
|
26 |
+
add_action('transition_post_status', array(SQ_ObjController::getController('SQ_Sitemaps'), 'refreshSitemap'), 9999, 3);
|
27 |
+
}
|
28 |
}
|
29 |
|
30 |
/**
|
195 |
$args['author'] = (int) SQ_Tools::getUserID();
|
196 |
$args['post_id'] = $post_id;
|
197 |
|
198 |
+
//save for later send to api
|
199 |
+
set_transient('sq_seopost', json_encode($args));
|
200 |
|
201 |
//Save the keyword for this post
|
202 |
if ($json = $this->model->getKeyword($post_id)) {
|
236 |
if (!empty($_FILES['ogimage'])) {
|
237 |
$return = $this->model->addImage($_FILES['ogimage']);
|
238 |
}
|
239 |
+
if (isset($return['file'])) {
|
240 |
+
$return['filename'] = basename($return['file']);
|
241 |
+
$local_file = str_replace($return['filename'], urlencode($return['filename']), $return['url']);
|
242 |
+
$attach_id = wp_insert_attachment(array(
|
243 |
+
'post_mime_type' => $return['type'],
|
244 |
+
'post_title' => preg_replace('/\.[^.]+$/', '', $return['filename']),
|
245 |
+
'post_content' => '',
|
246 |
+
'post_status' => 'inherit',
|
247 |
+
'guid' => $local_file
|
248 |
+
), $return['file'], SQ_Tools::getValue('post_id'));
|
249 |
+
|
250 |
+
$attach_data = wp_generate_attachment_metadata($attach_id, $return['file']);
|
251 |
+
wp_update_attachment_metadata($attach_id, $attach_data);
|
252 |
+
}
|
253 |
SQ_Tools::setHeader('json');
|
254 |
echo json_encode($return);
|
255 |
SQ_Tools::emptyCache();
|
256 |
+
|
257 |
break;
|
258 |
case 'sq_get_keyword':
|
259 |
SQ_Tools::setHeader('json');
|
279 |
$meta = array();
|
280 |
if (SQ_Tools::getIsset('sq_fp_title') || SQ_Tools::getIsset('sq_fp_description') || SQ_Tools::getIsset('sq_fp_keywords')) {
|
281 |
if (SQ_Tools::getIsset('sq_fp_title'))
|
282 |
+
$meta[] = array('key' => '_sq_fp_title',
|
283 |
+
'value' => SQ_Tools::getValue('sq_fp_title'));
|
284 |
|
285 |
if (SQ_Tools::getIsset('sq_fp_description'))
|
286 |
+
$meta[] = array('key' => '_sq_fp_description',
|
287 |
+
'value' => SQ_Tools::getValue('sq_fp_description'));
|
288 |
|
289 |
if (SQ_Tools::getIsset('sq_fp_keywords'))
|
290 |
+
$meta[] = array('key' => '_sq_fp_keywords',
|
291 |
'value' => SQ_Tools::getValue('sq_fp_keywords'));
|
292 |
|
293 |
if (SQ_Tools::getIsset('sq_fp_ogimage'))
|
294 |
+
$meta[] = array('key' => '_sq_fp_ogimage',
|
295 |
'value' => SQ_Tools::getValue('sq_fp_ogimage'));
|
296 |
|
297 |
+
|
298 |
$this->model->saveAdvMeta($post_id, $meta);
|
299 |
+
|
300 |
return $meta;
|
301 |
}
|
302 |
return false;
|
303 |
}
|
304 |
|
305 |
+
public function hookFooter() {
|
306 |
+
if (get_transient('sq_seopost') !== false) {
|
307 |
+
SQ_Action::apiCall('sq/seo/post', (array) json_decode(get_transient('sq_seopost')), 30);
|
308 |
+
delete_transient('sq_seopost');
|
309 |
+
}
|
310 |
+
}
|
311 |
+
|
312 |
}
|
controllers/SQ_PostsList.php
CHANGED
@@ -23,7 +23,6 @@ class SQ_PostsList extends SQ_FrontController {
|
|
23 |
'page_posts',
|
24 |
'edit-product',
|
25 |
'product_posts');
|
26 |
-
// do_action('sq_processCron');
|
27 |
}
|
28 |
|
29 |
public function setPosts($posts) {
|
@@ -150,6 +149,9 @@ class SQ_PostsList extends SQ_FrontController {
|
|
150 |
|
151 |
echo '<script type="text/javascript">
|
152 |
var sq_posts = new Array(' . $posts . ');
|
|
|
|
|
|
|
153 |
</script>';
|
154 |
|
155 |
$this->setVars();
|
@@ -279,7 +281,9 @@ class SQ_PostsList extends SQ_FrontController {
|
|
279 |
}
|
280 |
|
281 |
$response = json_decode(SQ_Action::apiCall('sq/user-analytics/detail', $args, 30));
|
282 |
-
|
|
|
|
|
283 |
if (!is_object($response)) {
|
284 |
exit(json_encode(array('error' => $response)));
|
285 |
} else {
|
23 |
'page_posts',
|
24 |
'edit-product',
|
25 |
'product_posts');
|
|
|
26 |
}
|
27 |
|
28 |
public function setPosts($posts) {
|
149 |
|
150 |
echo '<script type="text/javascript">
|
151 |
var sq_posts = new Array(' . $posts . ');
|
152 |
+
//Show set complete
|
153 |
+
if (jQuery(".sq_helpnotice").length > 0)
|
154 |
+
jQuery(".sq_helpnotice").slideDown();
|
155 |
</script>';
|
156 |
|
157 |
$this->setVars();
|
281 |
}
|
282 |
|
283 |
$response = json_decode(SQ_Action::apiCall('sq/user-analytics/detail', $args, 30));
|
284 |
+
if (SQ_Tools::getValue('sq_debug') === 'on') {
|
285 |
+
exit();
|
286 |
+
}
|
287 |
if (!is_object($response)) {
|
288 |
exit(json_encode(array('error' => $response)));
|
289 |
} else {
|
controllers/SQ_Sitemaps.php
ADDED
@@ -0,0 +1,417 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Class for Sitemap Generator
|
5 |
+
*/
|
6 |
+
class SQ_Sitemaps extends SQ_FrontController {
|
7 |
+
/* @var string root name */
|
8 |
+
|
9 |
+
var $root = 'sitemap';
|
10 |
+
/* @var string post limit */
|
11 |
+
var $posts_limit = 10000;
|
12 |
+
var $news_limit = 50;
|
13 |
+
|
14 |
+
public function __construct() {
|
15 |
+
parent::__construct();
|
16 |
+
|
17 |
+
add_filter('request', array($this, 'feedRequest'));
|
18 |
+
add_filter('user_trailingslashit', array($this, 'untrailingslashit'));
|
19 |
+
add_action('sq_processPing', array($this, 'processCron'));
|
20 |
+
}
|
21 |
+
|
22 |
+
public function refreshSitemap($new_status, $old_status, $post) {
|
23 |
+
if ($old_status <> $new_status && $new_status = 'publish') {
|
24 |
+
if (SQ_Tools::$options['sq_sitemap_ping'] == 1) {
|
25 |
+
wp_schedule_single_event(time() + 5, 'sq_processPing');
|
26 |
+
}
|
27 |
+
}
|
28 |
+
}
|
29 |
+
|
30 |
+
/**
|
31 |
+
* Listen the feed call from wordpress
|
32 |
+
* @param array $request
|
33 |
+
* @return array
|
34 |
+
*/
|
35 |
+
public function feedRequest($request) {
|
36 |
+
|
37 |
+
if (isset($request['feed']) && strpos($request['feed'], 'sitemap') !== false) {
|
38 |
+
$this->model->type = $request['feed'];
|
39 |
+
|
40 |
+
//show products
|
41 |
+
if ($this->model->type == 'sitemap-product') {
|
42 |
+
if (SQ_ObjController::getModel('SQ_BlockSettingsSeo')->isEcommerce() && SQ_Tools::$options['sq_sitemap'][$this->model->type][1] == 2) {
|
43 |
+
SQ_Tools::$options['sq_sitemap'][$this->model->type][1] = 1;
|
44 |
+
}
|
45 |
+
}
|
46 |
+
|
47 |
+
if (isset(SQ_Tools::$options['sq_sitemap'][$this->model->type]) && SQ_Tools::$options['sq_sitemap'][$this->model->type][1] == 1) {
|
48 |
+
|
49 |
+
add_action('do_feed_' . $request['feed'], array($this, 'showSitemap'));
|
50 |
+
|
51 |
+
//PREPARE CUSTOM QUERIES
|
52 |
+
switch ($this->model->type) {
|
53 |
+
|
54 |
+
case 'sitemap-news':
|
55 |
+
if ($this->model->type == 'sitemap-news') {
|
56 |
+
$this->posts_limit = $this->news_limit;
|
57 |
+
}
|
58 |
+
case 'sitemap-category':
|
59 |
+
case 'sitemap-post_tag':
|
60 |
+
case 'sitemap-custom-tax':
|
61 |
+
add_filter("get_terms_fields", function($query) {
|
62 |
+
global $wpdb;
|
63 |
+
|
64 |
+
$query[] = "(SELECT
|
65 |
+
UNIX_TIMESTAMP(MAX(p.post_date_gmt)) as _mod_date
|
66 |
+
FROM {$wpdb->posts} p, {$wpdb->term_relationships} r
|
67 |
+
WHERE p.ID = r.object_id AND p.post_status = 'publish' AND p.post_password = '' AND r.term_taxonomy_id = tt.term_taxonomy_id
|
68 |
+
) as lastmod";
|
69 |
+
|
70 |
+
return $query;
|
71 |
+
}, 5, 2);
|
72 |
+
break;
|
73 |
+
case 'sitemap-page':
|
74 |
+
add_filter('pre_get_posts', function($query) {
|
75 |
+
$query->set('post_type', array('page'));
|
76 |
+
}, 5);
|
77 |
+
break;
|
78 |
+
case 'sitemap-author':
|
79 |
+
add_filter('sq-sitemap-authors', function() {
|
80 |
+
//get only the author with posts
|
81 |
+
add_filter('pre_user_query', function($query) {
|
82 |
+
$query->query_fields .= ',p.lastmod';
|
83 |
+
$query->query_from .= ' LEFT OUTER JOIN (
|
84 |
+
SELECT MAX(post_modified) as lastmod, post_author, COUNT(*) as post_count
|
85 |
+
FROM wp_posts
|
86 |
+
WHERE post_type = "post" AND post_status = "publish"
|
87 |
+
GROUP BY post_author
|
88 |
+
) p ON (wp_users.ID = p.post_author)';
|
89 |
+
$query->query_where .= ' AND post_count > 0 ';
|
90 |
+
});
|
91 |
+
return get_users();
|
92 |
+
}, 5);
|
93 |
+
break;
|
94 |
+
case 'sitemap-custom-post':
|
95 |
+
add_filter('pre_get_posts', function($query) {
|
96 |
+
$types = get_post_types();
|
97 |
+
foreach (array('post', 'page', 'attachment', 'revision', 'nav_menu_item', 'product', 'wpsc-product') as $exclude) {
|
98 |
+
if (in_array($exclude, $types)) {
|
99 |
+
unset($types[$exclude]);
|
100 |
+
}
|
101 |
+
}
|
102 |
+
|
103 |
+
foreach ($types as $type) {
|
104 |
+
$type_data = get_post_type_object($type);
|
105 |
+
if (!isset($type_data->rewrite['feeds']) || $type_data->rewrite['feeds'] != 1) {
|
106 |
+
unset($types[$type]);
|
107 |
+
}
|
108 |
+
}
|
109 |
+
|
110 |
+
if (empty($types)) {
|
111 |
+
array_push($types, 'custom-post');
|
112 |
+
}
|
113 |
+
|
114 |
+
$query->set('post_type', $types); // id of page or post
|
115 |
+
}, 5);
|
116 |
+
break;
|
117 |
+
case 'sitemap-product':
|
118 |
+
add_filter('pre_get_posts', function($query) {
|
119 |
+
if (!$types = SQ_ObjController::getModel('SQ_BlockSettingsSeo')->isEcommerce()) {
|
120 |
+
$types = array('custom-post');
|
121 |
+
}
|
122 |
+
$query->set('post_type', $types); // id of page or post
|
123 |
+
}, 5);
|
124 |
+
break;
|
125 |
+
case 'sitemap-archive':
|
126 |
+
add_filter('sq-sitemap-archive', function() {
|
127 |
+
global $wpdb;
|
128 |
+
$archives = $wpdb->get_results("
|
129 |
+
SELECT DISTINCT YEAR(post_date_gmt) as `year`, MONTH(post_date_gmt) as `month`, max(post_date_gmt) as lastmod, count(ID) as posts
|
130 |
+
FROM $wpdb->posts
|
131 |
+
WHERE post_date_gmt < NOW() AND post_status = 'publish' AND post_type = 'post'
|
132 |
+
GROUP BY YEAR(post_date_gmt), MONTH(post_date_gmt)
|
133 |
+
ORDER BY post_date_gmt DESC
|
134 |
+
");
|
135 |
+
return $archives;
|
136 |
+
}, 5);
|
137 |
+
break;
|
138 |
+
}
|
139 |
+
|
140 |
+
add_filter('post_limits', array($this, 'setLimits'));
|
141 |
+
}
|
142 |
+
}
|
143 |
+
return $request;
|
144 |
+
}
|
145 |
+
|
146 |
+
/**
|
147 |
+
* Show the Sitemap Header
|
148 |
+
* @global integer $blog_id Used for charset
|
149 |
+
* @param array $include Include schema
|
150 |
+
*/
|
151 |
+
public function showSitemapHeader($include = array()) {
|
152 |
+
@ini_set('memory_limit', apply_filters('admin_memory_limit', WP_MAX_MEMORY_LIMIT));
|
153 |
+
global $blog_id;
|
154 |
+
|
155 |
+
header('Status: 200 OK', true, 200);
|
156 |
+
header('Content-Type: text/xml; charset=' . get_bloginfo('charset'), true);
|
157 |
+
//Generate header
|
158 |
+
echo '<?xml version="1.0" encoding="' . get_bloginfo('charset') . '"?>' . "\n";
|
159 |
+
echo '<?xml-stylesheet type="text/xsl" href="' . _SQ_THEME_URL_ . 'css/sq_sitemap' . ($this->model->type == 'sitemap' ? 'index' : '') . '.xsl"?>' . "\n";
|
160 |
+
echo '<!-- generated-on="' . date('Y-m-d\TH:i:s+00:00') . '" -->' . "\n";
|
161 |
+
echo '<!-- generator="Squirrly SEO Sitemap" -->' . "\n";
|
162 |
+
echo '<!-- generator-url="https://wordpress.org/plugins/squirrly-seo/" -->' . "\n";
|
163 |
+
echo '<!-- generator-version="' . SQ_VERSION . '" -->' . "\n";
|
164 |
+
echo '' . "\n";
|
165 |
+
|
166 |
+
$schema = array(
|
167 |
+
'image' => 'xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"',
|
168 |
+
'video' => 'xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"',
|
169 |
+
'news' => 'xmlns:news="http://www.google.com/schemas/sitemap-news/0.9"',
|
170 |
+
'mobile' => 'xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0"',
|
171 |
+
);
|
172 |
+
|
173 |
+
if (!empty($include))
|
174 |
+
$include = array_unique($include);
|
175 |
+
|
176 |
+
switch ($this->model->type) {
|
177 |
+
case 'sitemap':
|
178 |
+
echo '<sitemapindex xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '
|
179 |
+
. 'xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/siteindex.xsd" '
|
180 |
+
. 'xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"';
|
181 |
+
foreach ($include as $value) {
|
182 |
+
echo ' ' . $schema[$value] . "\n";
|
183 |
+
}
|
184 |
+
echo '>' . "\n";
|
185 |
+
break;
|
186 |
+
case 'sitemap-news':
|
187 |
+
array_push($include, 'news');
|
188 |
+
$include = array_unique($include);
|
189 |
+
default:
|
190 |
+
echo '<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" '
|
191 |
+
. 'xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" '
|
192 |
+
. 'xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"';
|
193 |
+
if (!empty($include))
|
194 |
+
foreach ($include as $value) {
|
195 |
+
echo " " . $schema[$value] . " ";
|
196 |
+
}
|
197 |
+
echo '>' . "\n";
|
198 |
+
break;
|
199 |
+
}
|
200 |
+
}
|
201 |
+
|
202 |
+
/**
|
203 |
+
* Show the Sitemap Footer
|
204 |
+
*/
|
205 |
+
private function showSitemapFooter() {
|
206 |
+
switch ($this->model->type) {
|
207 |
+
case 'sitemap':
|
208 |
+
echo '</sitemapindex>' . "\n";
|
209 |
+
break;
|
210 |
+
default :
|
211 |
+
echo '</urlset>' . "\n";
|
212 |
+
break;
|
213 |
+
}
|
214 |
+
}
|
215 |
+
|
216 |
+
/**
|
217 |
+
* Create the XML sitemap
|
218 |
+
* @return string
|
219 |
+
*/
|
220 |
+
public function showSitemap() {
|
221 |
+
|
222 |
+
switch ($this->model->type) {
|
223 |
+
case 'sitemap':
|
224 |
+
$this->showSitemapHeader();
|
225 |
+
|
226 |
+
foreach (SQ_Tools::$options['sq_sitemap'] as $name => $value) {
|
227 |
+
//force to show products if not preset
|
228 |
+
if ($name == 'sitemap-product' && !SQ_ObjController::getModel('SQ_BlockSettingsSeo')->isEcommerce()) {
|
229 |
+
continue;
|
230 |
+
}
|
231 |
+
|
232 |
+
if ($name !== 'sitemap' && ($value[1] == 1 || $value[1] == 2)) {
|
233 |
+
echo "\t" . '<sitemap>' . "\n";
|
234 |
+
echo "\t" . '<loc>' . $this->getXmlUrl($name) . '</loc>' . "\n";
|
235 |
+
echo "\t" . '<lastmod>' . mysql2date('Y-m-d\TH:i:s+00:00', get_lastpostmodified('gmt'), false) . '</lastmod>' . "\n";
|
236 |
+
echo "\t" . '</sitemap>' . "\n";
|
237 |
+
}
|
238 |
+
}
|
239 |
+
$this->showSitemapFooter();
|
240 |
+
break;
|
241 |
+
case 'sitemap-home':
|
242 |
+
$this->showPackXml($this->model->getHomeLink());
|
243 |
+
break;
|
244 |
+
case 'sitemap-news':
|
245 |
+
$this->showPackXml($this->model->getListNews());
|
246 |
+
break;
|
247 |
+
case 'sitemap-category':
|
248 |
+
case 'sitemap-post_tag':
|
249 |
+
case 'sitemap-custom-tax':
|
250 |
+
$this->showPackXml($this->model->getListTerms());
|
251 |
+
break;
|
252 |
+
case 'sitemap-author':
|
253 |
+
$this->showPackXml($this->model->getListAuthors());
|
254 |
+
break;
|
255 |
+
case 'sitemap-archive':
|
256 |
+
$this->showPackXml($this->model->getListArchive());
|
257 |
+
break;
|
258 |
+
|
259 |
+
default:
|
260 |
+
$this->showPackXml($this->model->getListPosts());
|
261 |
+
break;
|
262 |
+
}
|
263 |
+
}
|
264 |
+
|
265 |
+
/**
|
266 |
+
* Pach the XML for each sitemap
|
267 |
+
* @param type $xml
|
268 |
+
* @return type
|
269 |
+
*/
|
270 |
+
public function showPackXml($xml) {
|
271 |
+
if (empty($xml)) {
|
272 |
+
return;
|
273 |
+
}
|
274 |
+
if (!isset($xml['contains'])) {
|
275 |
+
$xml['contains'] = '';
|
276 |
+
}
|
277 |
+
$this->showSitemapHeader($xml['contains']);
|
278 |
+
|
279 |
+
unset($xml['contains']);
|
280 |
+
foreach ($xml as $row) {
|
281 |
+
echo "\t" . '<url>' . "\n";
|
282 |
+
|
283 |
+
if (is_array($row)) {
|
284 |
+
echo $this->getRecursiveXml($row);
|
285 |
+
}
|
286 |
+
echo "\t" . '</url>' . "\n";
|
287 |
+
}
|
288 |
+
$this->showSitemapFooter();
|
289 |
+
unset($xml);
|
290 |
+
}
|
291 |
+
|
292 |
+
public function getRecursiveXml($xml, $pkey = '', $level = 2) {
|
293 |
+
$str = '';
|
294 |
+
$tab = str_repeat("\t", $level);
|
295 |
+
if (is_array($xml)) {
|
296 |
+
$cnt = 0;
|
297 |
+
foreach ($xml as $key => $data) {
|
298 |
+
if (!is_array($data)) {
|
299 |
+
$str .= $tab . '<' . $key . ($key == 'video:player_loc' ? ' allow_embed="yes"' : '') . '>' . $data . ((strpos($data, '?') == false && $key == 'video:player_loc') ? '' : '') . '</' . $key . '>' . "\n";
|
300 |
+
} else {
|
301 |
+
if ($this->getRecursiveXml($data) <> '') {
|
302 |
+
if (!$this->_ckeckIntergerArray($data)) {
|
303 |
+
$str .= $tab . '<' . (!is_numeric($key) ? $key : $pkey) . '>' . "\n";
|
304 |
+
}
|
305 |
+
$str .= $this->getRecursiveXml($data, $key, ($this->_ckeckIntergerArray($data) ? $level : $level + 1));
|
306 |
+
if (!$this->_ckeckIntergerArray($data)) {
|
307 |
+
$str .= $tab . '</' . (!is_numeric($key) ? $key : $pkey) . '>' . "\n";
|
308 |
+
}
|
309 |
+
}
|
310 |
+
}
|
311 |
+
$cnt ++;
|
312 |
+
}
|
313 |
+
}
|
314 |
+
return $str;
|
315 |
+
}
|
316 |
+
|
317 |
+
private function _ckeckIntergerArray($data) {
|
318 |
+
foreach ($data as $key => $value) {
|
319 |
+
if (is_numeric($key)) {
|
320 |
+
return true;
|
321 |
+
}
|
322 |
+
break;
|
323 |
+
}
|
324 |
+
return false;
|
325 |
+
}
|
326 |
+
|
327 |
+
/**
|
328 |
+
* Set the query limit
|
329 |
+
* @param integer $limits
|
330 |
+
* @return string
|
331 |
+
*/
|
332 |
+
public function setLimits($limits) {
|
333 |
+
if (isset($this->posts_limit) && $this->posts_limit > 0) {
|
334 |
+
return 'LIMIT 0, ' . $this->posts_limit;
|
335 |
+
}
|
336 |
+
}
|
337 |
+
|
338 |
+
/**
|
339 |
+
* Get the url for each sitemap
|
340 |
+
* @param string $sitemap
|
341 |
+
* @return string
|
342 |
+
*/
|
343 |
+
public function getXmlUrl($sitemap) {
|
344 |
+
if (!get_option('permalink_structure')){
|
345 |
+
$sitemap = '?feed=' . str_replace('.xml', '', $sitemap);
|
346 |
+
}else{
|
347 |
+
if(isset(SQ_Tools::$options['sq_sitemap'][$sitemap])){
|
348 |
+
$sitemap = SQ_Tools::$options['sq_sitemap'][$sitemap][0];
|
349 |
+
}
|
350 |
+
|
351 |
+
if (strpos($sitemap, '.xml') === false) {
|
352 |
+
$sitemap .= '.xml';
|
353 |
+
}
|
354 |
+
}
|
355 |
+
|
356 |
+
return esc_url(trailingslashit(home_url())) . $sitemap;
|
357 |
+
}
|
358 |
+
|
359 |
+
public function processCron() {
|
360 |
+
SQ_ObjController::getController('SQ_Tools', false);
|
361 |
+
foreach (SQ_Tools::$options['sq_sitemap'] as $name => $sitemap) {
|
362 |
+
if ($sitemap[1] == 1) {
|
363 |
+
$this->SendPing($this->getXmlUrl($name));
|
364 |
+
}
|
365 |
+
}
|
366 |
+
}
|
367 |
+
|
368 |
+
/**
|
369 |
+
* Ping the sitemap to Google and Bing
|
370 |
+
* @param string $sitemapUrl
|
371 |
+
* @return boolean
|
372 |
+
*/
|
373 |
+
protected function SendPing($sitemapUrl) {
|
374 |
+
$success = true;
|
375 |
+
$urls = array(
|
376 |
+
"http://www.google.com/webmasters/sitemaps/ping?sitemap=%s",
|
377 |
+
"http://www.bing.com/webmaster/ping.aspx?siteMap=%s",
|
378 |
+
);
|
379 |
+
|
380 |
+
foreach ($urls as $url) {
|
381 |
+
if ($responce = SQ_Tools::sq_remote_get($url)) {
|
382 |
+
$success = true;
|
383 |
+
sleep(mt_rand(2, 5));
|
384 |
+
}
|
385 |
+
}
|
386 |
+
|
387 |
+
return $success;
|
388 |
+
}
|
389 |
+
|
390 |
+
/**
|
391 |
+
* Delete the fizical file if exists
|
392 |
+
* @return boolean
|
393 |
+
*/
|
394 |
+
public function deleteSitemapFile() {
|
395 |
+
if (isset(SQ_Tools::$options['sq_sitemap'][$this->root])) {
|
396 |
+
if (file_exists(ABSPATH . SQ_Tools::$options['sq_sitemap'][$this->root])) {
|
397 |
+
@unlink(ABSPATH . SQ_Tools::$options['sq_sitemap'][$this->root]);
|
398 |
+
return true;
|
399 |
+
}
|
400 |
+
}
|
401 |
+
return false;
|
402 |
+
}
|
403 |
+
|
404 |
+
/**
|
405 |
+
* Remove the trailing slash from permalinks that have an extension,
|
406 |
+
* such as /sitemap.xml
|
407 |
+
*
|
408 |
+
* @param string $request
|
409 |
+
*/
|
410 |
+
public function untrailingslashit($request) {
|
411 |
+
if (pathinfo($request, PATHINFO_EXTENSION)) {
|
412 |
+
return untrailingslashit($request);
|
413 |
+
}
|
414 |
+
return $request; // trailingslashit($request);
|
415 |
+
}
|
416 |
+
|
417 |
+
}
|
core/SQ_BlockAccount/SQ_BlockAccount.php
CHANGED
@@ -5,14 +5,8 @@
|
|
5 |
*/
|
6 |
class SQ_BlockAccount extends SQ_BlockController {
|
7 |
|
8 |
-
|
9 |
-
parent::
|
10 |
-
switch (SQ_Tools::getValue('action')) {
|
11 |
-
case 'sq_hide_survey':
|
12 |
-
SQ_Tools::saveOptions('sq_hide_survey', (int) SQ_Tools::getValue('sq_hide_survey'));
|
13 |
-
exit();
|
14 |
-
break;
|
15 |
-
}
|
16 |
}
|
17 |
|
18 |
}
|
5 |
*/
|
6 |
class SQ_BlockAccount extends SQ_BlockController {
|
7 |
|
8 |
+
function hookGetContent() {
|
9 |
+
parent::preloadSettings();
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
}
|
11 |
|
12 |
}
|
core/SQ_BlockAffiliate/SQ_BlockAffiliate.php
CHANGED
@@ -5,6 +5,10 @@
|
|
5 |
*/
|
6 |
class SQ_BlockAffiliate extends SQ_BlockController {
|
7 |
|
|
|
|
|
|
|
|
|
8 |
public function action() {
|
9 |
parent::action();
|
10 |
switch (SQ_Tools::getValue('action')) {
|
@@ -40,8 +44,4 @@ class SQ_BlockAffiliate extends SQ_BlockController {
|
|
40 |
}
|
41 |
}
|
42 |
|
43 |
-
public function hookGetContent() {
|
44 |
-
$this->options = SQ_Tools::$options;
|
45 |
-
}
|
46 |
-
|
47 |
}
|
5 |
*/
|
6 |
class SQ_BlockAffiliate extends SQ_BlockController {
|
7 |
|
8 |
+
public function hookGetContent() {
|
9 |
+
parent::preloadSettings();
|
10 |
+
}
|
11 |
+
|
12 |
public function action() {
|
13 |
parent::action();
|
14 |
switch (SQ_Tools::getValue('action')) {
|
44 |
}
|
45 |
}
|
46 |
|
|
|
|
|
|
|
|
|
47 |
}
|
core/SQ_BlockAudit/SQ_BlockAudit.php
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class SQ_BlockAudit extends SQ_BlockController {
|
4 |
-
|
5 |
-
public function hookGetContent() {
|
6 |
-
|
7 |
-
}
|
8 |
-
|
9 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/SQ_BlockDashboard/SQ_BlockDashboard.php
CHANGED
@@ -5,4 +5,8 @@
|
|
5 |
*/
|
6 |
class SQ_BlockDashboard extends SQ_BlockController {
|
7 |
|
|
|
|
|
|
|
|
|
8 |
}
|
5 |
*/
|
6 |
class SQ_BlockDashboard extends SQ_BlockController {
|
7 |
|
8 |
+
function hookGetContent() {
|
9 |
+
parent::preloadSettings();
|
10 |
+
}
|
11 |
+
|
12 |
}
|
core/SQ_BlockPostsAnalytics/SQ_BlockPostsAnalytics.php
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
class SQ_BlockPostsAnalytics extends SQ_BlockController {
|
4 |
|
5 |
public function hookGetContent() {
|
|
|
6 |
SQ_ObjController::getController('SQ_DisplayController', false)
|
7 |
->loadMedia(_SQ_THEME_URL_ . '/css/sq_postslist.css');
|
8 |
|
3 |
class SQ_BlockPostsAnalytics extends SQ_BlockController {
|
4 |
|
5 |
public function hookGetContent() {
|
6 |
+
|
7 |
SQ_ObjController::getController('SQ_DisplayController', false)
|
8 |
->loadMedia(_SQ_THEME_URL_ . '/css/sq_postslist.css');
|
9 |
|
core/SQ_BlockSettings/SQ_BlockSettings.php
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Account settings
|
5 |
+
*/
|
6 |
+
class SQ_BlockSettings extends SQ_BlockController {
|
7 |
+
|
8 |
+
function hookGetContent() {
|
9 |
+
parent::preloadSettings();
|
10 |
+
SQ_ObjController::getController('SQ_Error', false)->hookNotices();
|
11 |
+
echo '<script type="text/javascript">
|
12 |
+
jQuery(document).ready(function () {
|
13 |
+
jQuery("#sq_settings").find("select[name=sq_google_country]").val("' . SQ_Tools::$options['sq_google_country'] . '");
|
14 |
+
});
|
15 |
+
</script>';
|
16 |
+
}
|
17 |
+
|
18 |
+
/**
|
19 |
+
* Called when Post action is triggered
|
20 |
+
*
|
21 |
+
* @return void
|
22 |
+
*/
|
23 |
+
public function action() {
|
24 |
+
parent::action();
|
25 |
+
|
26 |
+
|
27 |
+
switch (SQ_Tools::getValue('action')) {
|
28 |
+
|
29 |
+
case 'sq_settings_update':
|
30 |
+
if (SQ_Tools::getIsset('sq_post_types')) {
|
31 |
+
SQ_Tools::$options['sq_post_types'] = array();
|
32 |
+
foreach (SQ_Tools::getValue('sq_post_types') as $key) {
|
33 |
+
array_push(SQ_Tools::$options['sq_post_types'], $key);
|
34 |
+
}
|
35 |
+
|
36 |
+
if (!in_array('product', get_post_types())) {
|
37 |
+
array_push(SQ_Tools::$options['sq_post_types'], 'product');
|
38 |
+
}
|
39 |
+
}
|
40 |
+
|
41 |
+
SQ_Tools::saveOptions('sq_google_country', SQ_Tools::getValue('sq_google_country'));
|
42 |
+
SQ_Tools::saveOptions('sq_google_country_strict', SQ_Tools::getValue('sq_google_country_strict'));
|
43 |
+
SQ_Tools::saveOptions('sq_google_ranksperhour', SQ_Tools::getValue('sq_google_ranksperhour'));
|
44 |
+
|
45 |
+
SQ_Tools::saveOptions('sq_keyword_help', (int) SQ_Tools::getValue('sq_keyword_help'));
|
46 |
+
SQ_Tools::saveOptions('sq_keyword_information', (int) SQ_Tools::getValue('sq_keyword_information'));
|
47 |
+
SQ_Tools::saveOptions('sq_sla', (int) SQ_Tools::getValue('sq_sla'));
|
48 |
+
SQ_Tools::saveOptions('sq_keywordtag', (int) SQ_Tools::getValue('sq_keywordtag'));
|
49 |
+
SQ_Tools::saveOptions('sq_local_images', (int) SQ_Tools::getValue('sq_local_images'));
|
50 |
+
|
51 |
+
|
52 |
+
SQ_Tools::saveOptions('sq_google_wt', SQ_ObjController::getModel('SQ_BlockSettingsSeo')->checkGoogleWTCode(SQ_Tools::getValue('sq_google_wt','',true)));
|
53 |
+
SQ_Tools::saveOptions('sq_bing_wt', SQ_ObjController::getModel('SQ_BlockSettingsSeo')->checkBingWTCode(SQ_Tools::getValue('sq_bing_wt','',true)));
|
54 |
+
SQ_Tools::saveOptions('sq_alexa', SQ_ObjController::getModel('SQ_BlockSettingsSeo')->checkBingWTCode(SQ_Tools::getValue('sq_alexa','',true)));
|
55 |
+
|
56 |
+
|
57 |
+
SQ_Action::apiCall('sq/user/settings', array('settings' => json_encode(SQ_Tools::getBriefOptions())), 10);
|
58 |
+
SQ_Tools::emptyCache();
|
59 |
+
break;
|
60 |
+
}
|
61 |
+
}
|
62 |
+
|
63 |
+
}
|
core/SQ_BlockSettingsSeo/SQ_BlockSettingsSeo.php
ADDED
@@ -0,0 +1,267 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Account settings
|
5 |
+
*/
|
6 |
+
class SQ_BlockSettingsSeo extends SQ_BlockController {
|
7 |
+
|
8 |
+
function hookGetContent() {
|
9 |
+
parent::preloadSettings();
|
10 |
+
/* Force call of error display */
|
11 |
+
SQ_ObjController::getController('SQ_Error', false)->hookNotices();
|
12 |
+
echo '<script type="text/javascript">
|
13 |
+
var __snippetshort = "' . __('Too short', _SQ_PLUGIN_NAME_) . '";
|
14 |
+
var __snippetlong = "' . __('Too long', _SQ_PLUGIN_NAME_) . '";
|
15 |
+
</script>';
|
16 |
+
}
|
17 |
+
|
18 |
+
function hookHead() {
|
19 |
+
wp_enqueue_media();
|
20 |
+
parent::hookHead();
|
21 |
+
}
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Called when Post action is triggered
|
25 |
+
*
|
26 |
+
* @return void
|
27 |
+
*/
|
28 |
+
public function action() {
|
29 |
+
parent::action();
|
30 |
+
|
31 |
+
switch (SQ_Tools::getValue('action')) {
|
32 |
+
|
33 |
+
case 'sq_settingsseo_update':
|
34 |
+
if (!SQ_Tools::getIsset('sq_use')) {
|
35 |
+
return;
|
36 |
+
}
|
37 |
+
|
38 |
+
SQ_Tools::saveOptions('sq_use', (int) SQ_Tools::getValue('sq_use'));
|
39 |
+
SQ_Tools::saveOptions('sq_auto_title', (int) SQ_Tools::getValue('sq_auto_title'));
|
40 |
+
SQ_Tools::saveOptions('sq_auto_description', (int) SQ_Tools::getValue('sq_auto_description'));
|
41 |
+
SQ_Tools::saveOptions('sq_auto_canonical', (int) SQ_Tools::getValue('sq_auto_canonical'));
|
42 |
+
|
43 |
+
SQ_Tools::saveOptions('sq_auto_meta', (int) SQ_Tools::getValue('sq_auto_meta'));
|
44 |
+
SQ_Tools::saveOptions('sq_auto_favicon', (int) SQ_Tools::getValue('sq_auto_favicon'));
|
45 |
+
|
46 |
+
///////////////////////////////////////////
|
47 |
+
/////////////////////////////SOCIAL OPTION
|
48 |
+
SQ_Tools::saveOptions('sq_auto_facebook', (int) SQ_Tools::getValue('sq_auto_facebook'));
|
49 |
+
SQ_Tools::saveOptions('sq_auto_twitter', (int) SQ_Tools::getValue('sq_auto_twitter'));
|
50 |
+
|
51 |
+
SQ_Tools::saveOptions('sq_twitter_account', $this->model->checkTwitterAccount(SQ_Tools::getValue('sq_twitter_account')));
|
52 |
+
SQ_Tools::saveOptions('sq_facebook_account', $this->model->checkFacebookAccount(SQ_Tools::getValue('sq_facebook_account')));
|
53 |
+
SQ_Tools::saveOptions('sq_google_plus', $this->model->checkGoogleAccount(SQ_Tools::getValue('sq_google_plus')));
|
54 |
+
SQ_Tools::saveOptions('sq_linkedin_account', $this->model->checkLinkeinAccount(SQ_Tools::getValue('sq_linkedin_account')));
|
55 |
+
|
56 |
+
///////////////////////////////////////////
|
57 |
+
/////////////////////////////FIRST PAGE OPTIMIZATION
|
58 |
+
SQ_Tools::saveOptions('sq_auto_seo', 0);
|
59 |
+
if ($pageId = get_option('page_on_front')) {
|
60 |
+
$meta = array();
|
61 |
+
if (SQ_Tools::getIsset('sq_fp_title'))
|
62 |
+
$meta[] = array('key' => '_sq_fp_title', 'value' => urldecode(SQ_Tools::getValue('sq_fp_title')));
|
63 |
+
|
64 |
+
if (SQ_Tools::getIsset('sq_fp_description'))
|
65 |
+
$meta[] = array('key' => '_sq_fp_description', 'value' => urldecode(SQ_Tools::getValue('sq_fp_description')));
|
66 |
+
|
67 |
+
if (SQ_Tools::getIsset('sq_fp_keywords'))
|
68 |
+
$meta[] = array('key' => '_sq_fp_keywords', 'value' => SQ_Tools::getValue('sq_fp_keywords'));
|
69 |
+
|
70 |
+
if (SQ_Tools::getIsset('sq_fp_ogimage'))
|
71 |
+
$meta[] = array('key' => '_sq_fp_ogimage', 'value' => SQ_ObjController::getModel('SQ_Frontend')->getAdvancedMeta($pageId, 'ogimage'));
|
72 |
+
|
73 |
+
if (!empty($meta))
|
74 |
+
SQ_ObjController::getModel('SQ_Post')->saveAdvMeta($pageId, $meta);
|
75 |
+
}else {
|
76 |
+
SQ_Tools::saveOptions('sq_fp_title', SQ_Tools::getValue('sq_fp_title'));
|
77 |
+
SQ_Tools::saveOptions('sq_fp_description', SQ_Tools::getValue('sq_fp_description'));
|
78 |
+
SQ_Tools::saveOptions('sq_fp_keywords', SQ_Tools::getValue('sq_fp_keywords'));
|
79 |
+
}
|
80 |
+
|
81 |
+
///////////////////////////////////////////
|
82 |
+
/////////////////////////////SITEMAP OPTION
|
83 |
+
SQ_Tools::saveOptions('sq_auto_sitemap', (int) SQ_Tools::getValue('sq_auto_sitemap'));
|
84 |
+
SQ_Tools::saveOptions('sq_sitemap_frequency', SQ_Tools::getValue('sq_sitemap_frequency'));
|
85 |
+
SQ_Tools::saveOptions('sq_sitemap_ping', (int) SQ_Tools::getValue('sq_sitemap_ping'));
|
86 |
+
|
87 |
+
foreach (SQ_Tools::$options['sq_sitemap'] as $key => $value) {
|
88 |
+
if ($key == 'sitemap') {
|
89 |
+
continue;
|
90 |
+
}
|
91 |
+
SQ_Tools::$options['sq_sitemap'][$key][1] = 0;
|
92 |
+
if ($key == 'sitemap-product' && !$this->model->isEcommerce()) {
|
93 |
+
SQ_Tools::$options['sq_sitemap'][$key][1] = 2;
|
94 |
+
}
|
95 |
+
}
|
96 |
+
if (SQ_Tools::getIsset('sq_sitemap')) {
|
97 |
+
foreach (SQ_Tools::getValue('sq_sitemap') as $key) {
|
98 |
+
if (isset(SQ_Tools::$options['sq_sitemap'][$key][1])) {
|
99 |
+
SQ_Tools::$options['sq_sitemap'][$key][1] = 1;
|
100 |
+
}
|
101 |
+
}
|
102 |
+
}
|
103 |
+
|
104 |
+
foreach (SQ_Tools::$options['sq_sitemap_show'] as $key => $value) {
|
105 |
+
SQ_Tools::$options['sq_sitemap_show'][$key] = 0;
|
106 |
+
}
|
107 |
+
if (SQ_Tools::getIsset('sq_sitemap_show')) {
|
108 |
+
foreach (SQ_Tools::getValue('sq_sitemap_show') as $key) {
|
109 |
+
if (isset(SQ_Tools::$options['sq_sitemap_show'][$key])) {
|
110 |
+
SQ_Tools::$options['sq_sitemap_show'][$key] = 1;
|
111 |
+
}
|
112 |
+
}
|
113 |
+
}
|
114 |
+
|
115 |
+
///////////////////////////////////////////
|
116 |
+
|
117 |
+
|
118 |
+
SQ_Tools::saveOptions('sq_google_analytics', $this->model->checkGoogleAnalyticsCode(SQ_Tools::getValue('sq_google_analytics')));
|
119 |
+
SQ_Tools::saveOptions('sq_facebook_insights', $this->model->checkFavebookInsightsCode(SQ_Tools::getValue('sq_facebook_insights')));
|
120 |
+
SQ_Tools::saveOptions('sq_pinterest', $this->model->checkPinterestCode(SQ_Tools::getValue('sq_pinterest','',true)));
|
121 |
+
|
122 |
+
///////////////////////////////////////////JSONLD
|
123 |
+
|
124 |
+
SQ_Tools::saveOptions('sq_auto_jsonld', (int) SQ_Tools::getValue('sq_auto_jsonld'));
|
125 |
+
if (SQ_Tools::getIsset('sq_jsonld_type') && isset(SQ_Tools::$options['sq_jsonld'][SQ_Tools::getValue('sq_jsonld_type')])) {
|
126 |
+
|
127 |
+
foreach (SQ_Tools::$options['sq_jsonld'][SQ_Tools::getValue('sq_jsonld_type')] as $key => $value) {
|
128 |
+
if (isset(SQ_Tools::$options['sq_jsonld'][SQ_Tools::getValue('sq_jsonld_type')][$key])) {
|
129 |
+
SQ_Tools::$options['sq_jsonld'][SQ_Tools::getValue('sq_jsonld_type')][$key] = SQ_Tools::getValue('sq_jsonld_' . $key);
|
130 |
+
}
|
131 |
+
}
|
132 |
+
}
|
133 |
+
SQ_Tools::saveOptions('sq_jsonld_type', SQ_Tools::getValue('sq_jsonld_type'));
|
134 |
+
|
135 |
+
///////////////////////////////////////////
|
136 |
+
/////////////////////////////FAVICON OPTION
|
137 |
+
|
138 |
+
/* if there is an icon to upload */
|
139 |
+
if (!empty($_FILES['favicon'])) {
|
140 |
+
|
141 |
+
$return = $this->model->addFavicon($_FILES['favicon']);
|
142 |
+
if ($return['favicon'] <> '') {
|
143 |
+
SQ_Tools::saveOptions('favicon', strtolower(basename($return['favicon'])));
|
144 |
+
}
|
145 |
+
if ($return['message'] <> '') {
|
146 |
+
define('SQ_MESSAGE_FAVICON', $return['message']);
|
147 |
+
}
|
148 |
+
}
|
149 |
+
|
150 |
+
SQ_Action::apiCall('sq/user/settings', array('settings' => json_encode(SQ_Tools::getBriefOptions())), 10);
|
151 |
+
//Update the rewrite rules with the new options
|
152 |
+
add_filter('rewrite_rules_array', array($this, 'rewrite_rules'), 999, 1);
|
153 |
+
//Flush the rewrite with the new favicon and sitemap
|
154 |
+
global $wp_rewrite;
|
155 |
+
$wp_rewrite->flush_rules();
|
156 |
+
|
157 |
+
//empty the cache on settings changed
|
158 |
+
SQ_Tools::emptyCache();
|
159 |
+
break;
|
160 |
+
case 'sq_checkissues':
|
161 |
+
SQ_Tools::saveOptions('sq_checkedissues', 1);
|
162 |
+
SQ_Action::apiCall('sq/user/settings', array('settings' => json_encode(SQ_Tools::getBriefOptions())), 10);
|
163 |
+
|
164 |
+
/* Load the error class */
|
165 |
+
SQ_Tools::checkErrorSettings();
|
166 |
+
|
167 |
+
break;
|
168 |
+
case 'sq_fixautoseo':
|
169 |
+
SQ_Tools::saveOptions('sq_use', 1);
|
170 |
+
SQ_Action::apiCall('sq/user/settings', array('settings' => json_encode(SQ_Tools::getBriefOptions())), 10);
|
171 |
+
|
172 |
+
break;
|
173 |
+
case 'sq_fixprivate':
|
174 |
+
update_option('blog_public', 1);
|
175 |
+
SQ_Action::apiCall('sq/user/settings', array('settings' => json_encode(SQ_Tools::getBriefOptions())), 10);
|
176 |
+
|
177 |
+
break;
|
178 |
+
case 'sq_fixcomments':
|
179 |
+
update_option('comments_notify', 1);
|
180 |
+
SQ_Action::apiCall('sq/user/settings', array('settings' => json_encode(SQ_Tools::getBriefOptions())), 10);
|
181 |
+
|
182 |
+
break;
|
183 |
+
case 'sq_fixpermalink':
|
184 |
+
$GLOBALS['wp_rewrite'] = new WP_Rewrite();
|
185 |
+
global $wp_rewrite;
|
186 |
+
$permalink_structure = ((get_option('permalink_structure') <> '') ? get_option('permalink_structure') : '/') . "%postname%/";
|
187 |
+
$wp_rewrite->set_permalink_structure($permalink_structure);
|
188 |
+
$permalink_structure = get_option('permalink_structure');
|
189 |
+
|
190 |
+
flush_rewrite_rules();
|
191 |
+
break;
|
192 |
+
case 'sq_fix_ogduplicate':
|
193 |
+
SQ_Tools::saveOptions('sq_auto_facebook', 0);
|
194 |
+
SQ_Action::apiCall('sq/user/settings', array('settings' => json_encode(SQ_Tools::getBriefOptions())), 10);
|
195 |
+
|
196 |
+
break;
|
197 |
+
case 'sq_fix_tcduplicate':
|
198 |
+
SQ_Tools::saveOptions('sq_auto_twitter', 0);
|
199 |
+
SQ_Action::apiCall('sq/user/settings', array('settings' => json_encode(SQ_Tools::getBriefOptions())), 10);
|
200 |
+
|
201 |
+
break;
|
202 |
+
case 'sq_fix_titleduplicate':
|
203 |
+
SQ_Tools::saveOptions('sq_auto_title', 0);
|
204 |
+
SQ_Tools::saveOptions('sq_auto_seo', 1);
|
205 |
+
SQ_Action::apiCall('sq/user/settings', array('settings' => json_encode(SQ_Tools::getBriefOptions())), 10);
|
206 |
+
|
207 |
+
break;
|
208 |
+
case 'sq_fix_descduplicate':
|
209 |
+
SQ_Tools::saveOptions('sq_auto_description', 0);
|
210 |
+
SQ_Tools::saveOptions('sq_auto_seo', 1);
|
211 |
+
SQ_Action::apiCall('sq/user/settings', array('settings' => json_encode(SQ_Tools::getBriefOptions())), 10);
|
212 |
+
|
213 |
+
break;
|
214 |
+
case 'sq_active_help' :
|
215 |
+
SQ_Tools::saveOptions('active_help', SQ_Tools::getValue('active_help'));
|
216 |
+
break;
|
217 |
+
case 'sq_warnings_off':
|
218 |
+
SQ_Tools::saveOptions('ignore_warn', 1);
|
219 |
+
break;
|
220 |
+
case 'sq_get_snippet':
|
221 |
+
if (SQ_Tools::getValue('url') <> '') {
|
222 |
+
$url = SQ_Tools::getValue('url');
|
223 |
+
} else {
|
224 |
+
$url = get_bloginfo('url');
|
225 |
+
}
|
226 |
+
$snippet = SQ_Tools::getSnippet($url);
|
227 |
+
//SQ_Tools::dump($snippet);
|
228 |
+
|
229 |
+
/* if((int)SQ_Tools::getValue('post_id') > 0)
|
230 |
+
$snippet['url'] = get_permalink((int)SQ_Tools::getValue('post_id'));
|
231 |
+
*/
|
232 |
+
echo json_encode($snippet);
|
233 |
+
exit();
|
234 |
+
}
|
235 |
+
}
|
236 |
+
|
237 |
+
/**
|
238 |
+
* Add the favicon in the rewrite rule
|
239 |
+
* @param type $wp_rewrite
|
240 |
+
*/
|
241 |
+
public function rewrite_rules($wp_rewrite) {
|
242 |
+
$rules = array();
|
243 |
+
if (SQ_Tools::$options['sq_use'] == 1) {
|
244 |
+
|
245 |
+
//For Favicon
|
246 |
+
if (SQ_Tools::$options['sq_auto_favicon'] == 1) {
|
247 |
+
$rules['favicon\.ico$'] = 'index.php?sq_get=favicon';
|
248 |
+
$rules['favicon\.icon$'] = 'index.php?sq_get=favicon';
|
249 |
+
$rules['touch-icon\.png$'] = 'index.php?sq_get=touchicon';
|
250 |
+
foreach ($this->model->appleSizes as $size) {
|
251 |
+
$rules['touch-icon' . $size . '\.png$'] = 'index.php?sq_get=touchicon&sq_size=' . $size;
|
252 |
+
}
|
253 |
+
}
|
254 |
+
|
255 |
+
//For Sitemap
|
256 |
+
if (SQ_Tools::$options['sq_auto_sitemap'] == 1) {
|
257 |
+
foreach (SQ_Tools::$options['sq_sitemap'] as $name => $sitemap) {
|
258 |
+
if ($sitemap[1] == 1 || $sitemap[1] == 2) { // is show sitemap
|
259 |
+
$rules[preg_quote($sitemap[0]) . '$'] = 'index.php?feed=' . $name;
|
260 |
+
}
|
261 |
+
}
|
262 |
+
}
|
263 |
+
}
|
264 |
+
return array_merge($rules, $wp_rewrite);
|
265 |
+
}
|
266 |
+
|
267 |
+
}
|
core/SQ_BlockStatus/SQ_BlockStatus.php
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class SQ_BlockStatus extends SQ_BlockController {
|
4 |
-
|
5 |
-
public $progress = array();
|
6 |
-
|
7 |
-
public function hookGetContent() {
|
8 |
-
global $wpdb;
|
9 |
-
}
|
10 |
-
|
11 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
core/SQ_Blockseo/SQ_Blockseo.php
CHANGED
@@ -28,10 +28,11 @@ class SQ_Blockseo extends SQ_BlockController {
|
|
28 |
var __snippetclickrefresh = "' . __('Click the Update button (to the right) to see the snippet from your website.', _SQ_PLUGIN_NAME_) . '";
|
29 |
var __snippetentertitle = "' . __('Enter a title above for the snippet to get data.', _SQ_PLUGIN_NAME_) . '";' . "\n";
|
30 |
|
31 |
-
if (is_array($metas))
|
32 |
foreach ($metas as $key => $meta) {
|
33 |
-
echo 'var
|
34 |
}
|
|
|
35 |
|
36 |
echo '</script>';
|
37 |
}
|
28 |
var __snippetclickrefresh = "' . __('Click the Update button (to the right) to see the snippet from your website.', _SQ_PLUGIN_NAME_) . '";
|
29 |
var __snippetentertitle = "' . __('Enter a title above for the snippet to get data.', _SQ_PLUGIN_NAME_) . '";' . "\n";
|
30 |
|
31 |
+
if (is_array($metas)) {
|
32 |
foreach ($metas as $key => $meta) {
|
33 |
+
echo 'var _' . $key . ' = "' . str_replace('"', '\"', $meta) . '";' . "\n";
|
34 |
}
|
35 |
+
}
|
36 |
|
37 |
echo '</script>';
|
38 |
}
|
core/config.xml
CHANGED
@@ -23,32 +23,33 @@
|
|
23 |
<path>controllers</path>
|
24 |
</block>
|
25 |
<block>
|
26 |
-
<name>
|
27 |
-
<description>Setting page</description>
|
28 |
<actions>
|
29 |
-
<action>
|
30 |
-
<action>sq_save_analytics</action>
|
31 |
<action>sq_get_snippet</action>
|
|
|
32 |
|
|
|
33 |
<action>sq_fixautoseo</action>
|
34 |
<action>sq_fixpermalink</action>
|
35 |
<action>sq_fixprivate</action>
|
36 |
<action>sq_fixcomments</action>
|
37 |
<action>sq_fix_ogduplicate</action>
|
38 |
<action>sq_fix_tcduplicate</action>
|
|
|
39 |
<action>sq_fix_descduplicate</action>
|
40 |
|
41 |
-
<action>sq_upgrade</action>
|
42 |
<action>sq_warnings_off</action>
|
43 |
</actions>
|
44 |
<active>1</active>
|
45 |
-
<path>
|
46 |
</block>
|
47 |
<block>
|
48 |
-
<name>
|
49 |
-
<description>
|
50 |
<actions>
|
51 |
-
<action>
|
52 |
</actions>
|
53 |
<active>1</active>
|
54 |
<path>core</path>
|
23 |
<path>controllers</path>
|
24 |
</block>
|
25 |
<block>
|
26 |
+
<name>SQ_BlockSettingsSeo</name>
|
27 |
+
<description>SEO Setting page</description>
|
28 |
<actions>
|
29 |
+
<action>sq_settingsseo_update</action>
|
|
|
30 |
<action>sq_get_snippet</action>
|
31 |
+
<action>sq_checkissues</action>
|
32 |
|
33 |
+
<action>sq_active_help</action>
|
34 |
<action>sq_fixautoseo</action>
|
35 |
<action>sq_fixpermalink</action>
|
36 |
<action>sq_fixprivate</action>
|
37 |
<action>sq_fixcomments</action>
|
38 |
<action>sq_fix_ogduplicate</action>
|
39 |
<action>sq_fix_tcduplicate</action>
|
40 |
+
<action>sq_fix_titleduplicate</action>
|
41 |
<action>sq_fix_descduplicate</action>
|
42 |
|
|
|
43 |
<action>sq_warnings_off</action>
|
44 |
</actions>
|
45 |
<active>1</active>
|
46 |
+
<path>core</path>
|
47 |
</block>
|
48 |
<block>
|
49 |
+
<name>SQ_BlockSettings</name>
|
50 |
+
<description>Setting page</description>
|
51 |
<actions>
|
52 |
+
<action>sq_settings_update</action>
|
53 |
</actions>
|
54 |
<active>1</active>
|
55 |
<path>core</path>
|
languages/squirrly-seo-ru_RU.mo
DELETED
Binary file
|
languages/squirrly-seo-ru_RU.po
DELETED
@@ -1,1193 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: squirrly-seo\n"
|
4 |
-
"POT-Creation-Date: 2013-06-27 13:42+0200\n"
|
5 |
-
"PO-Revision-Date: 2013-10-03 14:45+0200\n"
|
6 |
-
"Last-Translator: \n"
|
7 |
-
"Language-Team: Squirrly UK <support@squirrly.co>\n"
|
8 |
-
"Language: en\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.5.7\n"
|
13 |
-
"X-Poedit-KeywordsList: __;_e\n"
|
14 |
-
"X-Poedit-Basepath: d:\\pagini_net\\se_lucreaza\\squirrly\\wordpress\\wp-"
|
15 |
-
"content\\plugins\\squirrly-seo\n"
|
16 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
17 |
-
"X-Poedit-SearchPath-0: .\n"
|
18 |
-
|
19 |
-
#: squirrly.php:45
|
20 |
-
msgid ""
|
21 |
-
"For Squirrly to work, the PHP version has to be equal or greater then 5.1"
|
22 |
-
msgstr ""
|
23 |
-
"Для исправной работы Squirrly, версия PHP должна быть равна или выше 5.1 "
|
24 |
-
|
25 |
-
#: classes/SQ_Error.php:20
|
26 |
-
msgid ""
|
27 |
-
"Function get_class does not exists! Is required for Squirrly to work "
|
28 |
-
"properly."
|
29 |
-
msgstr ""
|
30 |
-
"Функция get_class не существует! Она требуется для исправной работы Squirrly."
|
31 |
-
|
32 |
-
#: classes/SQ_Error.php:23
|
33 |
-
msgid ""
|
34 |
-
"Function file_exists does not exists! Is required for Squirrly to work "
|
35 |
-
"properly."
|
36 |
-
msgstr ""
|
37 |
-
"Функция file_exists не существует! Она требуется для исправной работы "
|
38 |
-
"Squirrly."
|
39 |
-
|
40 |
-
#: classes/SQ_Error.php:27
|
41 |
-
msgid "The home directory is not set!"
|
42 |
-
msgstr "Домашняя директория не установлена!"
|
43 |
-
|
44 |
-
#: classes/SQ_Error.php:31
|
45 |
-
msgid "The PHP version has to be greater then 4.0"
|
46 |
-
msgstr "Версия PHP должна быть выше, чем 4,0"
|
47 |
-
|
48 |
-
#: classes/SQ_Error.php:69
|
49 |
-
msgid "Turn off warnings!"
|
50 |
-
msgstr "Отключить предупреждения!"
|
51 |
-
|
52 |
-
#: classes/SQ_Error.php:70
|
53 |
-
msgid "Notice: "
|
54 |
-
msgstr "Примечание:"
|
55 |
-
|
56 |
-
#: classes/SQ_Error.php:74
|
57 |
-
msgid "Note: "
|
58 |
-
msgstr "Обратите внимание:"
|
59 |
-
|
60 |
-
#: classes/SQ_Tools.php:82 controllers/SQ_Menu.php:52
|
61 |
-
msgid "Settings"
|
62 |
-
msgstr "Настройки"
|
63 |
-
|
64 |
-
#: classes/SQ_Tools.php:85 controllers/SQ_Menu.php:35
|
65 |
-
msgid "Getting started"
|
66 |
-
msgstr "Введение"
|
67 |
-
|
68 |
-
#: classes/SQ_Tools.php:394
|
69 |
-
msgid "Fix it for me!"
|
70 |
-
msgstr "Починить это!"
|
71 |
-
|
72 |
-
#: classes/SQ_Tools.php:400
|
73 |
-
msgid "Let Squirrly optimize your SEO automatically (recommended)"
|
74 |
-
msgstr ""
|
75 |
-
"Разрешить Squirrly автоматически оптимизировать ваш SEO (Поиско́вая "
|
76 |
-
"оптимиза́ция) (рекомендуется)\t"
|
77 |
-
|
78 |
-
#: classes/SQ_Tools.php:408
|
79 |
-
msgid "You're blocking google from indexing your site!"
|
80 |
-
msgstr "Вы блокируете индексирования вашего сайта в Google!"
|
81 |
-
|
82 |
-
#: classes/SQ_Tools.php:414
|
83 |
-
msgid ""
|
84 |
-
"It is highly recommended that you include the %postname% variable in the "
|
85 |
-
"permalink structure. <br />Go to Settings > Permalinks and add /%postname%/ "
|
86 |
-
"in Custom Structure"
|
87 |
-
msgstr ""
|
88 |
-
"Настоятельно рекомендуется включить переменную %postname% в структуру "
|
89 |
-
"постоянной ссылки. <br />Перейти в раздел Настройки> Постоянные ссылки и "
|
90 |
-
"добавить /%postname%/ в пользовательскую структуру"
|
91 |
-
|
92 |
-
#: controllers/SQ_Menu.php:34
|
93 |
-
msgid " getting started"
|
94 |
-
msgstr "введение"
|
95 |
-
|
96 |
-
#: controllers/SQ_Menu.php:43
|
97 |
-
msgid " dashboard"
|
98 |
-
msgstr "панель управления"
|
99 |
-
|
100 |
-
#: controllers/SQ_Menu.php:44
|
101 |
-
msgid "Dashboard"
|
102 |
-
msgstr "Панель управления"
|
103 |
-
|
104 |
-
#: controllers/SQ_Menu.php:51
|
105 |
-
msgid " settings"
|
106 |
-
msgstr "настройки"
|
107 |
-
|
108 |
-
#: controllers/SQ_Menu.php:58
|
109 |
-
msgid "Make money with "
|
110 |
-
msgstr "Заработать деньги с"
|
111 |
-
|
112 |
-
#: controllers/SQ_Menu.php:59
|
113 |
-
msgid "Make money"
|
114 |
-
msgstr "Заработать деньги"
|
115 |
-
|
116 |
-
#: controllers/SQ_Menu.php:78
|
117 |
-
msgid "Squirrly Article Rank"
|
118 |
-
msgstr "Рейтинг статеи Squirrly"
|
119 |
-
|
120 |
-
#: controllers/SQ_PostsList.php:97
|
121 |
-
msgid "Squirrly"
|
122 |
-
msgstr "Squirrly"
|
123 |
-
|
124 |
-
#: controllers/SQ_PostsList.php:134
|
125 |
-
msgid "Custom description: "
|
126 |
-
msgstr "Индивидуальное описание:"
|
127 |
-
|
128 |
-
#: controllers/SQ_PostsList.php:134
|
129 |
-
msgid "Custom title: "
|
130 |
-
msgstr "Индивидуальное название: "
|
131 |
-
|
132 |
-
#: controllers/SQ_PostsList.php:157
|
133 |
-
msgid "Squirrly article rank"
|
134 |
-
msgstr "Рейтинг статеи Squirrly"
|
135 |
-
|
136 |
-
#: controllers/SQ_PostsList.php:158 core/SQ_Blockseo/SQ_Blockseo.php:21
|
137 |
-
msgid "Update"
|
138 |
-
msgstr "Обновление"
|
139 |
-
|
140 |
-
#: controllers/SQ_PostsList.php:159
|
141 |
-
msgid "More details"
|
142 |
-
msgstr "Подробнее"
|
143 |
-
|
144 |
-
#: controllers/SQ_PostsList.php:160
|
145 |
-
msgid "Less details"
|
146 |
-
msgstr "Менее подробно"
|
147 |
-
|
148 |
-
#: controllers/SQ_PostsList.php:161
|
149 |
-
msgid "Interval: "
|
150 |
-
msgstr "Интервал:"
|
151 |
-
|
152 |
-
#: controllers/SQ_PostsList.php:162 models/SQ_PostsList.php:30
|
153 |
-
msgid "Latest"
|
154 |
-
msgstr "Последние"
|
155 |
-
|
156 |
-
#: controllers/SQ_PostsList.php:163 models/SQ_PostsList.php:31
|
157 |
-
msgid "Last 7 days"
|
158 |
-
msgstr "За последние 7 дней"
|
159 |
-
|
160 |
-
#: controllers/SQ_PostsList.php:164 models/SQ_PostsList.php:32
|
161 |
-
msgid "Last 30 days"
|
162 |
-
msgstr "За последние 30 дней"
|
163 |
-
|
164 |
-
#: controllers/SQ_PostsList.php:166 core/SQ_Blockrank/SQ_Blockrank.php:19
|
165 |
-
msgid "See it in 'All Posts'"
|
166 |
-
msgstr "Посмотреть в папке 'Все посты'"
|
167 |
-
|
168 |
-
#: controllers/SQ_PostsList.php:167
|
169 |
-
msgid "progress"
|
170 |
-
msgstr "прогресс"
|
171 |
-
|
172 |
-
#: controllers/SQ_PostsList.php:168
|
173 |
-
msgid "optimized"
|
174 |
-
msgstr "оптимизированный"
|
175 |
-
|
176 |
-
#: controllers/SQ_PostsList.php:169
|
177 |
-
msgid "See rank"
|
178 |
-
msgstr "Показать рейтинг"
|
179 |
-
|
180 |
-
#: controllers/SQ_PostsList.php:170
|
181 |
-
msgid "Hide rank"
|
182 |
-
msgstr "Скрыть рейтинг"
|
183 |
-
|
184 |
-
#: controllers/SQ_PostsList.php:171
|
185 |
-
msgid "Optimize"
|
186 |
-
msgstr "Оптимизировать"
|
187 |
-
|
188 |
-
#: controllers/SQ_PostsList.php:173
|
189 |
-
msgid "Not Public"
|
190 |
-
msgstr "Не публичный"
|
191 |
-
|
192 |
-
#: controllers/SQ_PostsList.php:259 core/SQ_Blockrank/SQ_Blockrank.php:31
|
193 |
-
msgid "Publish the article to start Squirrly Article Rank"
|
194 |
-
msgstr "Опубликуйте статью, чтобы начать Squirrly Article Rank"
|
195 |
-
|
196 |
-
#: core/SQ_BlockAffiliate/SQ_BlockAffiliate.php:33
|
197 |
-
#, php-format
|
198 |
-
msgid "Error: %s"
|
199 |
-
msgstr "Ошибка: %s"
|
200 |
-
|
201 |
-
#: core/SQ_BlockAffiliate/SQ_BlockAffiliate.php:36
|
202 |
-
#: core/SQ_Blocklogin/SQ_Blocklogin.php:85
|
203 |
-
msgid "An error occured. Mabe a network error :("
|
204 |
-
msgstr "Произошла ошибка. Может быть, сетевая ошибка:("
|
205 |
-
|
206 |
-
#: core/SQ_Blocklogin/SQ_Blocklogin.php:80
|
207 |
-
#, php-format
|
208 |
-
msgid ""
|
209 |
-
"We found your email, so it means you already have a Squirrly.co account. "
|
210 |
-
"Please login with your Squirrly Email. If you forgot your password click "
|
211 |
-
"%shere%s"
|
212 |
-
msgstr ""
|
213 |
-
"Мы нашли вашу электронную почту, так означает, что вы уже имеете аккаунт на "
|
214 |
-
"Squirrly.co. Пожалуйста, войдите в систему с вашим адресом электронной почты "
|
215 |
-
"Squirrly. Если вы забыли свой пароль нажмите на %sсюда%s"
|
216 |
-
|
217 |
-
#: core/SQ_Blocklogin/SQ_Blocklogin.php:88
|
218 |
-
#, php-format
|
219 |
-
msgid ""
|
220 |
-
"Could not send your informations to squirrly. Please register %smanually%s."
|
221 |
-
msgstr ""
|
222 |
-
"Невозможно послать вашу информацию в squirrly. Пожалуйста, зарегистрируйтесь "
|
223 |
-
"%sвручную%s."
|
224 |
-
|
225 |
-
#: core/SQ_Blocklogin/SQ_Blocklogin.php:129
|
226 |
-
msgid "Wrong email or password!"
|
227 |
-
msgstr "Неправильное имя пользователя или пароль!"
|
228 |
-
|
229 |
-
#: core/SQ_Blocklogin/SQ_Blocklogin.php:132
|
230 |
-
msgid "You can use this account only for the URL you registered first!"
|
231 |
-
msgstr ""
|
232 |
-
"Вы можете использовать этот аккаунт только для URL который вы "
|
233 |
-
"зарегистрировали изначально!"
|
234 |
-
|
235 |
-
#: core/SQ_Blocklogin/SQ_Blocklogin.php:137
|
236 |
-
msgid "An error occured."
|
237 |
-
msgstr "Произошла ошибка."
|
238 |
-
|
239 |
-
#: core/SQ_Blocklogin/SQ_Blocklogin.php:139
|
240 |
-
msgid "Both fields are required."
|
241 |
-
msgstr "Оба поля обязательны для заполнения."
|
242 |
-
|
243 |
-
#: core/SQ_Blockresearch/SQ_Blockresearch.php:12
|
244 |
-
msgid "Recent discussions:"
|
245 |
-
msgstr "Недавние дискуссии:"
|
246 |
-
|
247 |
-
#: core/SQ_Blockresearch/SQ_Blockresearch.php:12
|
248 |
-
msgid "Exact search:"
|
249 |
-
msgstr "Точный поиск:"
|
250 |
-
|
251 |
-
#: core/SQ_Blockresearch/SQ_Blockresearch.php:12
|
252 |
-
msgid "Competition:"
|
253 |
-
msgstr "Конкуренция:"
|
254 |
-
|
255 |
-
#: core/SQ_Blockresearch/SQ_Blockresearch.php:12
|
256 |
-
msgid "Trend:"
|
257 |
-
msgstr "Тенденция:"
|
258 |
-
|
259 |
-
#: core/SQ_Blocksearch/SQ_Blocksearch.php:51
|
260 |
-
msgid "date"
|
261 |
-
msgstr "дата"
|
262 |
-
|
263 |
-
#: core/SQ_Blocksearch/SQ_Blocksearch.php:51
|
264 |
-
msgid "Read it!"
|
265 |
-
msgstr "Прочитайте!"
|
266 |
-
|
267 |
-
#: core/SQ_Blocksearch/SQ_Blocksearch.php:51
|
268 |
-
msgid "Insert it!"
|
269 |
-
msgstr "Вставьте!"
|
270 |
-
|
271 |
-
#: core/SQ_Blocksearch/SQ_Blocksearch.php:51
|
272 |
-
msgid "Reference"
|
273 |
-
msgstr "Ссылка"
|
274 |
-
|
275 |
-
#: core/SQ_Blocksearch/SQ_Blocksearch.php:51
|
276 |
-
msgid "Insert as box"
|
277 |
-
msgstr "Вставить в качестве окна"
|
278 |
-
|
279 |
-
#: core/SQ_Blocksearch/SQ_Blocksearch.php:51
|
280 |
-
msgid "Not relevant?"
|
281 |
-
msgstr "Не применимо?"
|
282 |
-
|
283 |
-
#: core/SQ_Blocksearch/SQ_Blocksearch.php:51
|
284 |
-
msgid "Insert in your article"
|
285 |
-
msgstr "Вставить в вашу статью"
|
286 |
-
|
287 |
-
#: core/SQ_Blocksearch/SQ_Blocksearch.php:51
|
288 |
-
msgid "For Squirrly to work, you have to have tinymce editor installed!"
|
289 |
-
msgstr "Для исправной работы Squirrly, вы должны установить редактор tinymce!"
|
290 |
-
|
291 |
-
#: core/SQ_Blocksearch/SQ_Blocksearch.php:51
|
292 |
-
msgid ":( I lost my squirrel. Please reload the page."
|
293 |
-
msgstr ":( Я потерял свой свою белку. Пожалуйста, перезагрузите страницу"
|
294 |
-
|
295 |
-
#: core/SQ_Blocksearch/SQ_Blocksearch.php:51
|
296 |
-
msgid "No results found!"
|
297 |
-
msgstr "Ничего не найдено!"
|
298 |
-
|
299 |
-
#: core/SQ_Blocksearch/SQ_Blocksearch.php:51
|
300 |
-
msgid "Switch to Visual editor!"
|
301 |
-
msgstr "Переключиться на визуальный редактор!"
|
302 |
-
|
303 |
-
#: core/SQ_Blocksearch/SQ_Blocksearch.php:51
|
304 |
-
msgid "Use more words in one keyword"
|
305 |
-
msgstr "Используйте больше слов в ключевом слове"
|
306 |
-
|
307 |
-
#: core/SQ_Blocksearch/SQ_Blocksearch.php:51
|
308 |
-
msgid "Takes too long to check this keyword ..."
|
309 |
-
msgstr "Проверка ключевого слова занимает слишком много времени..."
|
310 |
-
|
311 |
-
#: core/SQ_Blocksearch/SQ_Blocksearch.php:51
|
312 |
-
msgid "Do a research!"
|
313 |
-
msgstr "Делайте поиск!"
|
314 |
-
|
315 |
-
#: core/SQ_Blocksearch/SQ_Blocksearch.php:51
|
316 |
-
msgid "Do more research!"
|
317 |
-
msgstr "Делайте больше поисков!"
|
318 |
-
|
319 |
-
#: core/SQ_Blocksearch/SQ_Blocksearch.php:51
|
320 |
-
#, php-format
|
321 |
-
msgid "[ ATTRIBUTE: Please check: %s to find out how to attribute this image ]"
|
322 |
-
msgstr ""
|
323 |
-
"[АТРИБУТ: Пожалуйста, проверьте: %s чтобы узнать, какие атрибуты дать этому "
|
324 |
-
"изображению]"
|
325 |
-
|
326 |
-
#: core/SQ_Blocksearch/SQ_Blocksearch.php:51
|
327 |
-
msgid "Has creative commons attributes"
|
328 |
-
msgstr "Имеет атрибуты «криэ́йтив ка́мэнс»"
|
329 |
-
|
330 |
-
#: core/SQ_Blocksearch/SQ_Blocksearch.php:51
|
331 |
-
msgid "No known copyright restrictions"
|
332 |
-
msgstr "Нет известных ограничений в связи с авторскими правами"
|
333 |
-
|
334 |
-
#: core/SQ_Blockseo/SQ_Blockseo.php:11
|
335 |
-
msgid "Save changes"
|
336 |
-
msgstr "Сохранить изменения"
|
337 |
-
|
338 |
-
#: core/SQ_Blockseo/SQ_Blockseo.php:12
|
339 |
-
msgid "Cancel"
|
340 |
-
msgstr "Отменить"
|
341 |
-
|
342 |
-
#: core/SQ_Blockseo/SQ_Blockseo.php:13
|
343 |
-
msgid "Reset"
|
344 |
-
msgstr "Переустановка"
|
345 |
-
|
346 |
-
#: core/SQ_Blockseo/SQ_Blockseo.php:15
|
347 |
-
msgid "Customize Title"
|
348 |
-
msgstr "Персонализация Название"
|
349 |
-
|
350 |
-
#: core/SQ_Blockseo/SQ_Blockseo.php:16
|
351 |
-
msgid "manage keywords"
|
352 |
-
msgstr "управления ключевыми словами"
|
353 |
-
|
354 |
-
#: core/SQ_Blockseo/SQ_Blockseo.php:17 themes/default/SQ_Menu.php:327
|
355 |
-
msgid "Too short"
|
356 |
-
msgstr "Слишком короткий"
|
357 |
-
|
358 |
-
#: core/SQ_Blockseo/SQ_Blockseo.php:18 themes/default/SQ_Menu.php:328
|
359 |
-
msgid "Too long"
|
360 |
-
msgstr "Слишком длинный"
|
361 |
-
|
362 |
-
#: core/SQ_Blockseo/SQ_Blockseo.php:20 themes/default/SQ_Menu.php:214
|
363 |
-
msgid "Squirrly Snippet"
|
364 |
-
msgstr "Squirrly образец"
|
365 |
-
|
366 |
-
#: core/SQ_Blockseo/SQ_Blockseo.php:22
|
367 |
-
msgid ""
|
368 |
-
"Click the Update button (to the right) to see the snippet from your website."
|
369 |
-
msgstr ""
|
370 |
-
"Нажмите на кнопку обновить (вправо), чтобы увидеть образец с вашего сайта."
|
371 |
-
|
372 |
-
#: core/SQ_Blockseo/SQ_Blockseo.php:23
|
373 |
-
msgid "Enter a title above for the snippet to get data."
|
374 |
-
msgstr "Введите название выше чтобы подать данные образцу."
|
375 |
-
|
376 |
-
#: core/SQ_BlockSupport/SQ_BlockSupport.php:21
|
377 |
-
msgid "Plugin Feedback"
|
378 |
-
msgstr "Плагин обратной связи"
|
379 |
-
|
380 |
-
#: core/SQ_BlockSupport/SQ_BlockSupport.php:57
|
381 |
-
msgid "Thank you for your feedback"
|
382 |
-
msgstr "Спасибо за ваш отзыв"
|
383 |
-
|
384 |
-
#: core/SQ_BlockSupport/SQ_BlockSupport.php:59
|
385 |
-
#: core/SQ_BlockSupport/SQ_BlockSupport.php:94
|
386 |
-
msgid "Could not send the email..."
|
387 |
-
msgstr "Не удалось отправить электронную почту…"
|
388 |
-
|
389 |
-
#: core/SQ_BlockSupport/SQ_BlockSupport.php:62
|
390 |
-
#: core/SQ_BlockSupport/SQ_BlockSupport.php:97
|
391 |
-
msgid "No message."
|
392 |
-
msgstr "Нет сообщений"
|
393 |
-
|
394 |
-
#: core/SQ_BlockSupport/SQ_BlockSupport.php:81
|
395 |
-
msgid "Plugin Support"
|
396 |
-
msgstr "Поддержка плагинов"
|
397 |
-
|
398 |
-
#: core/SQ_BlockSupport/SQ_BlockSupport.php:92
|
399 |
-
msgid "Message sent..."
|
400 |
-
msgstr "Сообщение послано..."
|
401 |
-
|
402 |
-
#: core/SQ_Loading/SQ_Loading.php:23
|
403 |
-
msgid ""
|
404 |
-
"For Squirrly to work properly you have to use a higher version of Internet "
|
405 |
-
"Explorer. <br /> We recommend you to use Chrome or Mozilla."
|
406 |
-
msgstr ""
|
407 |
-
"Чтобы Squirrly работал исправно, вы должны использовать более высокую версию "
|
408 |
-
"Internet Explorer. <br /> Мы рекомендуем использовать Chrome или Mozilla."
|
409 |
-
|
410 |
-
#: core/SQ_Loading/SQ_Loading.php:30
|
411 |
-
msgid ""
|
412 |
-
"You haven`t used Squirrly SEO to optimize your article. Do you want to "
|
413 |
-
"optimize for a keyword before publishing?"
|
414 |
-
msgstr ""
|
415 |
-
"Вы не использовали (поисковую оптимизацию) Squirrly SEO чтобы оптимизировать "
|
416 |
-
"вашу статью. Хотите перед публикацией оптимизировать ключевые слова?"
|
417 |
-
|
418 |
-
#: models/SQ_Menu.php:139
|
419 |
-
msgid "The code for Google Webmaster Tool is incorrect."
|
420 |
-
msgstr "Неверный код Google Webmaster."
|
421 |
-
|
422 |
-
#: models/SQ_Menu.php:166
|
423 |
-
msgid "The code for Google Analytics is incorrect."
|
424 |
-
msgstr "Неверный код для Google Analytics."
|
425 |
-
|
426 |
-
#: models/SQ_Menu.php:194
|
427 |
-
msgid "The code for Facebook is incorrect."
|
428 |
-
msgstr "Неверный код для Facebook."
|
429 |
-
|
430 |
-
#: models/SQ_Menu.php:219
|
431 |
-
msgid "The code for Bing is incorrect."
|
432 |
-
msgstr "Неверный код Bing."
|
433 |
-
|
434 |
-
#: models/SQ_Menu.php:252
|
435 |
-
msgid "File type error: Only JPEG, JPG, GIF or PNG files are allowed."
|
436 |
-
msgstr "Ошибка в типе файла: поддерживаются только JPEG, JPG, GIF или PNG."
|
437 |
-
|
438 |
-
#: models/SQ_Menu.php:265
|
439 |
-
msgid "GD error: The GD library must be installed on your server."
|
440 |
-
msgstr "Ошибка GD: библиотека GD должна быть установлена на вашем сервере."
|
441 |
-
|
442 |
-
#: models/SQ_Menu.php:272
|
443 |
-
msgid "Delete error: Could not delete the old favicon."
|
444 |
-
msgstr "Ошибка при удалении : Не удалось удалить старый значок."
|
445 |
-
|
446 |
-
#: models/SQ_Menu.php:279
|
447 |
-
msgid "Upload error: Could not upload the favicon."
|
448 |
-
msgstr "Ошибка при загрузке: Не удалось загрузить значок."
|
449 |
-
|
450 |
-
#: models/SQ_Menu.php:285
|
451 |
-
msgid "Permission error: Could not change the favicon permissions."
|
452 |
-
msgstr "Ошибка доступа: Не удалось изменить значок доступа."
|
453 |
-
|
454 |
-
#: models/SQ_Menu.php:311
|
455 |
-
msgid ""
|
456 |
-
"ICO Error: Could not create the ICO from file. Try with another file type."
|
457 |
-
msgstr ""
|
458 |
-
"Ошибка ICO : Из данного файла не удалось создать ICO . Попробуйте с файлом "
|
459 |
-
"другого типа."
|
460 |
-
|
461 |
-
#: models/SQ_Menu.php:314
|
462 |
-
msgid "The favicon has been updated."
|
463 |
-
msgstr "Значок был обновлен."
|
464 |
-
|
465 |
-
#: models/SQ_Post.php:71
|
466 |
-
msgid "Squirrly could not find any results for: "
|
467 |
-
msgstr "Squirrly не смог найти никаких результатов на:"
|
468 |
-
|
469 |
-
#: models/SQ_PostsList.php:29
|
470 |
-
msgid "This article"
|
471 |
-
msgstr "Эта статья"
|
472 |
-
|
473 |
-
#: models/SQ_PostsList.php:29
|
474 |
-
msgid "All your articles"
|
475 |
-
msgstr "Все ваши статьи"
|
476 |
-
|
477 |
-
#: models/SQ_PostsList.php:69
|
478 |
-
msgid "Optimize this article to start Squirrly Article Rank"
|
479 |
-
msgstr "Оптимизировать эту статью, чтобы начать Squirrly Article Rank "
|
480 |
-
|
481 |
-
#: models/SQ_PostsList.php:111
|
482 |
-
msgid "There are no information for this post yet."
|
483 |
-
msgstr "Для этого поста еще нет информации."
|
484 |
-
|
485 |
-
#: models/SQ_PostsList.php:129 models/SQ_PostsList.php:247
|
486 |
-
msgid "Traffic to article"
|
487 |
-
msgstr "Трафик на статью"
|
488 |
-
|
489 |
-
#: models/SQ_PostsList.php:130
|
490 |
-
msgid "Social impact"
|
491 |
-
msgstr "Социальный эффект"
|
492 |
-
|
493 |
-
#: models/SQ_PostsList.php:131
|
494 |
-
msgid "Links to article"
|
495 |
-
msgstr "Ссылки на статью"
|
496 |
-
|
497 |
-
#: models/SQ_PostsList.php:193
|
498 |
-
msgid "Google Indexed"
|
499 |
-
msgstr "проиндексирован на Google"
|
500 |
-
|
501 |
-
#: models/SQ_PostsList.php:198
|
502 |
-
msgid "pos"
|
503 |
-
msgstr "pos"
|
504 |
-
|
505 |
-
#: models/SQ_PostsList.php:198 themes/default/SQ_Menu.php:21
|
506 |
-
#: themes/default/SQ_Menu.php:40 themes/default/SQ_Menu.php:57
|
507 |
-
#: themes/default/SQ_Menu.php:74 themes/default/SQ_Menu.php:91
|
508 |
-
#: themes/default/SQ_Menu.php:108 themes/default/SQ_Menu.php:125
|
509 |
-
#: themes/default/SQ_Menu.php:152 themes/default/SQ_Menu.php:169
|
510 |
-
#: themes/default/SQ_Menu.php:237 themes/default/SQ_Menu.php:248
|
511 |
-
#: themes/default/SQ_Menu.php:259
|
512 |
-
msgid "Yes"
|
513 |
-
msgstr "Да"
|
514 |
-
|
515 |
-
#: models/SQ_PostsList.php:198 themes/default/SQ_Menu.php:23
|
516 |
-
#: themes/default/SQ_Menu.php:42 themes/default/SQ_Menu.php:59
|
517 |
-
#: themes/default/SQ_Menu.php:76 themes/default/SQ_Menu.php:93
|
518 |
-
#: themes/default/SQ_Menu.php:110 themes/default/SQ_Menu.php:127
|
519 |
-
#: themes/default/SQ_Menu.php:154 themes/default/SQ_Menu.php:171
|
520 |
-
#: themes/default/SQ_Menu.php:239 themes/default/SQ_Menu.php:250
|
521 |
-
#: themes/default/SQ_Menu.php:261
|
522 |
-
msgid "No"
|
523 |
-
msgstr "Нет"
|
524 |
-
|
525 |
-
#: models/SQ_PostsList.php:198
|
526 |
-
msgid "for:"
|
527 |
-
msgstr "для:"
|
528 |
-
|
529 |
-
#: models/SQ_PostsList.php:198
|
530 |
-
msgid "(searched with the url)"
|
531 |
-
msgstr "(искать с URL)"
|
532 |
-
|
533 |
-
#: models/SQ_PostsList.php:218
|
534 |
-
msgid "This article|Average"
|
535 |
-
msgstr "Эта статья | Средняя"
|
536 |
-
|
537 |
-
#: models/SQ_PostsList.php:254
|
538 |
-
msgid "Visits"
|
539 |
-
msgstr "Просмотры"
|
540 |
-
|
541 |
-
#: models/SQ_PostsList.php:257
|
542 |
-
msgid "Unique"
|
543 |
-
msgstr "Уникальные"
|
544 |
-
|
545 |
-
#: models/SQ_PostsList.php:369
|
546 |
-
msgid "Google result for: "
|
547 |
-
msgstr "Результаты Google для:"
|
548 |
-
|
549 |
-
#: models/SQ_PostsList.php:402
|
550 |
-
msgid "Change"
|
551 |
-
msgstr "Изменить"
|
552 |
-
|
553 |
-
#: models/SQ_PostsList.php:402
|
554 |
-
msgid "since"
|
555 |
-
msgstr "с"
|
556 |
-
|
557 |
-
#: models/SQ_PostsList.php:403 models/SQ_PostsList.php:478
|
558 |
-
msgid "Current position"
|
559 |
-
msgstr "Текущая позиция"
|
560 |
-
|
561 |
-
#: models/SQ_PostsList.php:437
|
562 |
-
msgid "Recommended by Squirrly"
|
563 |
-
msgstr "Рекомендовано Squirrly"
|
564 |
-
|
565 |
-
#: models/SQ_PostsList.php:477
|
566 |
-
msgid "Keyword"
|
567 |
-
msgstr "Ключевое слово"
|
568 |
-
|
569 |
-
#: themes/default/SQ_BlockAffiliate.php:4
|
570 |
-
#: themes/default/SQ_BlockAffiliate.php:14
|
571 |
-
msgid "Join Squirrly today!"
|
572 |
-
msgstr "Зарегистрироваться на Squirrly сегодня!"
|
573 |
-
|
574 |
-
#: themes/default/SQ_BlockAffiliate.php:21
|
575 |
-
msgid ""
|
576 |
-
"To redirect users to your site, just change \"squirrly.co\" with your domain."
|
577 |
-
msgstr ""
|
578 |
-
"Для перенаправления пользователей на ваш сайт, просто замените \"squirrly.co"
|
579 |
-
"\" на ваш домен."
|
580 |
-
|
581 |
-
#: themes/default/SQ_BlockAffiliate.php:23
|
582 |
-
msgid "Generate affiliate link"
|
583 |
-
msgstr "Создайте партнерскую ссылку"
|
584 |
-
|
585 |
-
#: themes/default/SQ_BlockAffiliate.php:28
|
586 |
-
msgid "Affiliate Benefits"
|
587 |
-
msgstr "Партнерские преимущества"
|
588 |
-
|
589 |
-
#: themes/default/SQ_BlockAffiliate.php:33
|
590 |
-
#, php-format
|
591 |
-
msgid "- Recurring 45%s commission"
|
592 |
-
msgstr "- Текущая комиссия 45%s"
|
593 |
-
|
594 |
-
#: themes/default/SQ_BlockAffiliate.php:38
|
595 |
-
msgid "- No cost"
|
596 |
-
msgstr "- Бесплатно"
|
597 |
-
|
598 |
-
#: themes/default/SQ_BlockAffiliate.php:43
|
599 |
-
msgid "- Monthly payments in your Paypal account"
|
600 |
-
msgstr "- Ежемесячные платежи на Ваш счет Paypal"
|
601 |
-
|
602 |
-
#: themes/default/SQ_BlockAffiliate.php:50
|
603 |
-
msgid ""
|
604 |
-
"Your affiliate account is set and ready to go. Above you have the affiliate "
|
605 |
-
"link. "
|
606 |
-
msgstr ""
|
607 |
-
"Ваш партнерский счет установлен и готов к работе. Выше партнерская ссылка."
|
608 |
-
|
609 |
-
#: themes/default/SQ_BlockAffiliate.php:52
|
610 |
-
#, php-format
|
611 |
-
msgid "Check your affiliate page: %sAffiliate page%s"
|
612 |
-
msgstr "Проверьте вашу партнерскую страницу: %sпартнерская страница%s"
|
613 |
-
|
614 |
-
#: themes/default/SQ_BlockAffiliate.php:54
|
615 |
-
#, php-format
|
616 |
-
msgid "%sTerms of Use for our Affiliate Program%s"
|
617 |
-
msgstr "%sУсловия использования нашей партнерской программы%s"
|
618 |
-
|
619 |
-
#: themes/default/SQ_BlockAffiliate.php:58
|
620 |
-
msgid ""
|
621 |
-
"After you connect to Squirrly you can begin to use your free Squirrly "
|
622 |
-
"affiliate link immediately!"
|
623 |
-
msgstr ""
|
624 |
-
"После подключения к Squirrly вы сразуже можете начать использовать "
|
625 |
-
"бесплатную партнерскую ссылку Squirrly!"
|
626 |
-
|
627 |
-
#: themes/default/SQ_BlockAffiliate.php:66
|
628 |
-
msgid "Squirrly banners you can use"
|
629 |
-
msgstr "Баннеры Squirrly которые вы можете использовать"
|
630 |
-
|
631 |
-
#: themes/default/SQ_BlockAffiliate.php:87 themes/default/SQ_BlockHelp.php:20
|
632 |
-
#: themes/default/SQ_Menu.php:4
|
633 |
-
#, fuzzy
|
634 |
-
msgid "See Squirrly in action"
|
635 |
-
msgstr "Опции Squirrly"
|
636 |
-
|
637 |
-
#: themes/default/SQ_BlockAffiliate.php:88 themes/default/SQ_BlockHelp.php:21
|
638 |
-
msgid "See dashboard"
|
639 |
-
msgstr "Перейти на панель управления"
|
640 |
-
|
641 |
-
#: themes/default/SQ_BlockAffiliate.php:89
|
642 |
-
#: themes/default/SQ_BlockDashboard.php:54 themes/default/SQ_BlockHelp.php:22
|
643 |
-
msgid "Go to settings"
|
644 |
-
msgstr "Перейдите в раздел Настройки"
|
645 |
-
|
646 |
-
#: themes/default/SQ_BlockDashboard.php:5
|
647 |
-
msgid "Squirrly dashboard"
|
648 |
-
msgstr "Панель управления Squirrly "
|
649 |
-
|
650 |
-
#: themes/default/SQ_BlockDashboard.php:8
|
651 |
-
msgid "User level"
|
652 |
-
msgstr "Уровень пользователя"
|
653 |
-
|
654 |
-
#: themes/default/SQ_BlockDashboard.php:12
|
655 |
-
msgid "Beginner"
|
656 |
-
msgstr "Начинающий"
|
657 |
-
|
658 |
-
#: themes/default/SQ_BlockDashboard.php:14
|
659 |
-
msgid "Advanced"
|
660 |
-
msgstr "Продвинутый"
|
661 |
-
|
662 |
-
#: themes/default/SQ_BlockDashboard.php:18
|
663 |
-
msgid "Select Advanced only if you have SEO knowledge."
|
664 |
-
msgstr ""
|
665 |
-
"Выберите « Продвинутый » только если у вас есть знания в сфере SEO "
|
666 |
-
"(поисковой оптимизации)."
|
667 |
-
|
668 |
-
#: themes/default/SQ_BlockDashboard.php:21
|
669 |
-
msgid "What does the Beginner option bring you:"
|
670 |
-
msgstr ""
|
671 |
-
|
672 |
-
#: themes/default/SQ_BlockDashboard.php:23
|
673 |
-
msgid ""
|
674 |
-
"Squirrly <strong>finds the optimum Title and Description</strong> for each "
|
675 |
-
"page of your blog but you can still customize the home page Title and "
|
676 |
-
"Description if you want."
|
677 |
-
msgstr ""
|
678 |
-
|
679 |
-
#: themes/default/SQ_BlockDashboard.php:24
|
680 |
-
msgid ""
|
681 |
-
"Squirrly <strong>manages the sitemap</strong> for your blog and pings it to "
|
682 |
-
"Google and Bing every time you add a new article. This ensures that your "
|
683 |
-
"articles get indexed much faster."
|
684 |
-
msgstr ""
|
685 |
-
|
686 |
-
#: themes/default/SQ_BlockDashboard.php:25
|
687 |
-
msgid ""
|
688 |
-
"Squirrly <strong>adds the Facebook required meta</strong>, so that when your "
|
689 |
-
"readers share your page or article, it looks really good."
|
690 |
-
msgstr ""
|
691 |
-
|
692 |
-
#: themes/default/SQ_BlockDashboard.php:26
|
693 |
-
msgid ""
|
694 |
-
"You can connect your site with your <strong>Google Plus</strong> and "
|
695 |
-
"<strong>Google Analytics</strong> accounts."
|
696 |
-
msgstr ""
|
697 |
-
|
698 |
-
#: themes/default/SQ_BlockDashboard.php:27
|
699 |
-
msgid ""
|
700 |
-
"You can add the site icon (also known as favicon) and Squirrly will set it "
|
701 |
-
"up to look good for <strong>Apple devices</strong>."
|
702 |
-
msgstr ""
|
703 |
-
|
704 |
-
#: themes/default/SQ_BlockDashboard.php:32
|
705 |
-
msgid "What does the Advanced option bring you:"
|
706 |
-
msgstr ""
|
707 |
-
|
708 |
-
#: themes/default/SQ_BlockDashboard.php:34
|
709 |
-
msgid "More <strong>SEO options</strong> are available on the Settings page."
|
710 |
-
msgstr ""
|
711 |
-
|
712 |
-
#: themes/default/SQ_BlockDashboard.php:35
|
713 |
-
msgid ""
|
714 |
-
"You can connect your site with <strong>Google Webmaster Tools</strong>, "
|
715 |
-
"<strong>Bing Webmaster Tools</strong> and <strong>Facebook Insights</strong>."
|
716 |
-
msgstr ""
|
717 |
-
|
718 |
-
#: themes/default/SQ_BlockDashboard.php:36
|
719 |
-
msgid ""
|
720 |
-
"You can see the <strong>Snippet</strong> when you edit your Post or Page."
|
721 |
-
msgstr ""
|
722 |
-
|
723 |
-
#: themes/default/SQ_BlockDashboard.php:37
|
724 |
-
msgid ""
|
725 |
-
"You can <strong>customize the Title and Description</strong> of each Post/"
|
726 |
-
"Page from within the snippet."
|
727 |
-
msgstr ""
|
728 |
-
|
729 |
-
#: themes/default/SQ_BlockHelp.php:4
|
730 |
-
msgid ""
|
731 |
-
"With Squirrly SEO, your Wordpress will get Excellent SEO on each article you "
|
732 |
-
"write."
|
733 |
-
msgstr ""
|
734 |
-
"С Squirrly SEO, ваш Wordpress получит отличное SEO для каждой вами написаной "
|
735 |
-
"статьи."
|
736 |
-
|
737 |
-
#: themes/default/SQ_BlockHelp.php:6
|
738 |
-
msgid "SEO Software"
|
739 |
-
msgstr "Программное обеспечение для SEO"
|
740 |
-
|
741 |
-
#: themes/default/SQ_BlockHelp.php:6
|
742 |
-
msgid ""
|
743 |
-
"delivered as a plugin for Wordpress. <br /><br />We connect your wordpress "
|
744 |
-
"with Squirrly, so that we can find the best SEO opportunities, give you "
|
745 |
-
"reports and analyse your competitors."
|
746 |
-
msgstr ""
|
747 |
-
"поставляется в виде плагина для WordPress. <br /> <br /> Мы подключаем "
|
748 |
-
"WordPress к Squirrly, чтобы найти лучшие возможности SEO, предоставить вам "
|
749 |
-
"отчеты и анализировать ваших конкурентов."
|
750 |
-
|
751 |
-
#: themes/default/SQ_BlockHelp.php:19
|
752 |
-
msgid "Don't show this page"
|
753 |
-
msgstr "Больше не показывать эту страницу"
|
754 |
-
|
755 |
-
#: themes/default/SQ_Blocklogin.php:2
|
756 |
-
msgid "Squirrly.co Login"
|
757 |
-
msgstr "Войти на Squirrly.co"
|
758 |
-
|
759 |
-
#: themes/default/SQ_Blocklogin.php:9
|
760 |
-
msgid "Email:"
|
761 |
-
msgstr "Электронная почта:"
|
762 |
-
|
763 |
-
#: themes/default/SQ_Blocklogin.php:10
|
764 |
-
msgid "Password:"
|
765 |
-
msgstr "Пароль:"
|
766 |
-
|
767 |
-
#: themes/default/SQ_Blocklogin.php:11
|
768 |
-
msgid "Login"
|
769 |
-
msgstr "Войти"
|
770 |
-
|
771 |
-
#: themes/default/SQ_Blocklogin.php:12
|
772 |
-
msgid "Register"
|
773 |
-
msgstr "Регистрация"
|
774 |
-
|
775 |
-
#: themes/default/SQ_Blocklogin.php:12
|
776 |
-
msgid "Register to Squirrly.co"
|
777 |
-
msgstr "Зарегистрируйтесь на Squirrly.co"
|
778 |
-
|
779 |
-
#: themes/default/SQ_Blocklogin.php:13
|
780 |
-
msgid "Lost password?"
|
781 |
-
msgstr "Забыли пароль?"
|
782 |
-
|
783 |
-
#: themes/default/SQ_Blocklogin.php:13
|
784 |
-
msgid "Lost password"
|
785 |
-
msgstr "Восстановить пароль"
|
786 |
-
|
787 |
-
#: themes/default/SQ_Blocklogin.php:17
|
788 |
-
msgid "Enter your email"
|
789 |
-
msgstr "Введите адрес электронной почты"
|
790 |
-
|
791 |
-
#: themes/default/SQ_Blocklogin.php:18
|
792 |
-
msgid "Your E-mail:"
|
793 |
-
msgstr "Ваш адрес электронной почты:"
|
794 |
-
|
795 |
-
#: themes/default/SQ_Blocklogin.php:19
|
796 |
-
msgid "Sign Up"
|
797 |
-
msgstr "Зарегистрироваться"
|
798 |
-
|
799 |
-
#: themes/default/SQ_Blocklogin.php:20
|
800 |
-
msgid "I already have an account"
|
801 |
-
msgstr "У меня уже есть аккаунт"
|
802 |
-
|
803 |
-
#: themes/default/SQ_Blocklogin.php:21
|
804 |
-
msgid "This email connects you to Squirrly.co"
|
805 |
-
msgstr "Эта электронная почта связывает вас с Squirrly.co"
|
806 |
-
|
807 |
-
#: themes/default/SQ_Blocklogin.php:30
|
808 |
-
msgid "The email address is invalid!"
|
809 |
-
msgstr "Адрес электронной почты недействителен!"
|
810 |
-
|
811 |
-
#: themes/default/SQ_Blocklogin.php:31
|
812 |
-
msgid "Click on Sign Up button and try again ..."
|
813 |
-
msgstr "Нажмите на кнопку Зарегистрироваться и попробуйте еще раз ..."
|
814 |
-
|
815 |
-
#: themes/default/SQ_Blocklogin.php:32
|
816 |
-
msgid "An error occured while logging in!"
|
817 |
-
msgstr "Произошла ошибка при входе в систему!"
|
818 |
-
|
819 |
-
#: themes/default/SQ_Blocklogin.php:33
|
820 |
-
msgid "Connecting ..."
|
821 |
-
msgstr "Подключение ..."
|
822 |
-
|
823 |
-
#: themes/default/SQ_Blocklogin.php:40
|
824 |
-
msgid "Congratulations! Now write a new article with:"
|
825 |
-
msgstr ""
|
826 |
-
|
827 |
-
#: themes/default/SQ_Blocklogin.php:43
|
828 |
-
msgid ""
|
829 |
-
"<strong>Keyword Research and Analysis</strong>: find the keywords that are "
|
830 |
-
"easier to rank for."
|
831 |
-
msgstr ""
|
832 |
-
|
833 |
-
#: themes/default/SQ_Blocklogin.php:44
|
834 |
-
msgid ""
|
835 |
-
"<strong>SEO Live Assistant</strong>: Your Wordpress gives you SEO adivce as "
|
836 |
-
"you type your article."
|
837 |
-
msgstr ""
|
838 |
-
|
839 |
-
#: themes/default/SQ_Blocklogin.php:45
|
840 |
-
msgid ""
|
841 |
-
"<strong>Inspiration box</strong>: get images you can use for free, tweets "
|
842 |
-
"you can quote and get up to date with latest news about your subject."
|
843 |
-
msgstr ""
|
844 |
-
|
845 |
-
#: themes/default/SQ_Blocklogin.php:46
|
846 |
-
msgid ""
|
847 |
-
"<strong>Article Rank</strong>: Measure and Monitor the impact of SEO and "
|
848 |
-
"Social Signals for each of your articles."
|
849 |
-
msgstr ""
|
850 |
-
|
851 |
-
#: themes/default/SQ_Blockresearch.php:2
|
852 |
-
msgid "Squirrly Keyword Research"
|
853 |
-
msgstr "Поиск ключевых слов Squirrly"
|
854 |
-
|
855 |
-
#: themes/default/SQ_Blockresearch.php:3
|
856 |
-
msgid "Clear"
|
857 |
-
msgstr "Очистить"
|
858 |
-
|
859 |
-
#: themes/default/SQ_Blockresearch.php:9
|
860 |
-
msgid "Keyword:"
|
861 |
-
msgstr "Ключевое слово:"
|
862 |
-
|
863 |
-
#: themes/default/SQ_Blockresearch.php:11 themes/default/SQ_Blocksearch.php:23
|
864 |
-
msgid "Use this keyword"
|
865 |
-
msgstr "Используйте это ключевое слово"
|
866 |
-
|
867 |
-
#: themes/default/SQ_Blockresearch.php:20
|
868 |
-
msgid "+ Add keyword"
|
869 |
-
msgstr "+ Добавить ключевое слово"
|
870 |
-
|
871 |
-
#: themes/default/SQ_Blockresearch.php:21
|
872 |
-
msgid "Do the research"
|
873 |
-
msgstr "Сделать поиск"
|
874 |
-
|
875 |
-
#: themes/default/SQ_Blockresearch.php:24
|
876 |
-
msgid "Enter even more keywords."
|
877 |
-
msgstr "Введите даже больше ключевых слов."
|
878 |
-
|
879 |
-
#: themes/default/SQ_Blockresearch.php:25
|
880 |
-
msgid "Let some keywords for the next time as well!"
|
881 |
-
msgstr "Оставить некоторые ключевые слова на следующий раз!"
|
882 |
-
|
883 |
-
#: themes/default/SQ_Blocksearch.php:3
|
884 |
-
msgid "Optimize for Keyword"
|
885 |
-
msgstr "Оптимизация ключевых слов"
|
886 |
-
|
887 |
-
#: themes/default/SQ_Blocksearch.php:10
|
888 |
-
msgid "Enter a keyword"
|
889 |
-
msgstr "Введите ключевое слово"
|
890 |
-
|
891 |
-
#: themes/default/SQ_Blocksearch.php:10
|
892 |
-
msgid "for Squirrly Live SEO optimization"
|
893 |
-
msgstr "для оптимизации Squirrly Live SEO"
|
894 |
-
|
895 |
-
#: themes/default/SQ_Blocksearch.php:22
|
896 |
-
msgid "Do a research"
|
897 |
-
msgstr "Сделать поиск"
|
898 |
-
|
899 |
-
#: themes/default/SQ_Blocksearch.php:27
|
900 |
-
msgid "Enter a keyword above!"
|
901 |
-
msgstr "Введите выше ключевое слово!"
|
902 |
-
|
903 |
-
#: themes/default/SQ_Blocksearch.php:28
|
904 |
-
msgid "I have more then one keyword!"
|
905 |
-
msgstr "У меня более одного ключевого слова!"
|
906 |
-
|
907 |
-
#: themes/default/SQ_Blocksearch.php:34
|
908 |
-
msgid "Images"
|
909 |
-
msgstr "Изображения"
|
910 |
-
|
911 |
-
#: themes/default/SQ_Blocksearch.php:35
|
912 |
-
msgid "Twitter"
|
913 |
-
msgstr "Twitter"
|
914 |
-
|
915 |
-
#: themes/default/SQ_Blocksearch.php:36
|
916 |
-
msgid "Wiki"
|
917 |
-
msgstr "Wiki"
|
918 |
-
|
919 |
-
#: themes/default/SQ_Blocksearch.php:37
|
920 |
-
msgid "News"
|
921 |
-
msgstr "Новости"
|
922 |
-
|
923 |
-
#: themes/default/SQ_Blocksearch.php:38
|
924 |
-
msgid "Blogs"
|
925 |
-
msgstr "Блоги"
|
926 |
-
|
927 |
-
#: themes/default/SQ_Blocksearch.php:39
|
928 |
-
msgid "My articles"
|
929 |
-
msgstr "Мои статьи"
|
930 |
-
|
931 |
-
#: themes/default/SQ_Blocksearch.php:44
|
932 |
-
msgid "Show only Copyright Free images"
|
933 |
-
msgstr "Показать только изображения свободные от авторских прав "
|
934 |
-
|
935 |
-
#: themes/default/SQ_Blockseo.php:3
|
936 |
-
msgid "Squirrly LIVE SEO assistant"
|
937 |
-
msgstr "Ассистент Squirrly LIVE SEO"
|
938 |
-
|
939 |
-
#: themes/default/SQ_BlockSupport.php:6
|
940 |
-
msgid "Go to Profile"
|
941 |
-
msgstr "Перейти к профилю"
|
942 |
-
|
943 |
-
#: themes/default/SQ_BlockSupport.php:6
|
944 |
-
msgid "Profile"
|
945 |
-
msgstr "Профиль"
|
946 |
-
|
947 |
-
#: themes/default/SQ_BlockSupport.php:10
|
948 |
-
msgid "Support"
|
949 |
-
msgstr "Поддерживать"
|
950 |
-
|
951 |
-
#: themes/default/SQ_BlockSupport.php:13
|
952 |
-
msgid "Need Help with Squirrly SEO?"
|
953 |
-
msgstr "Нужна помощь в Squirrly SEO?"
|
954 |
-
|
955 |
-
#: themes/default/SQ_BlockSupport.php:17
|
956 |
-
msgid "Send Question"
|
957 |
-
msgstr "Послать вопрос"
|
958 |
-
|
959 |
-
#: themes/default/SQ_BlockSupport.php:20 themes/default/SQ_BlockSupport.php:52
|
960 |
-
msgid "Go to:"
|
961 |
-
msgstr "Перейти к:"
|
962 |
-
|
963 |
-
#: themes/default/SQ_BlockSupport.php:20 themes/default/SQ_BlockSupport.php:52
|
964 |
-
msgid "support page"
|
965 |
-
msgstr "страница поддержки"
|
966 |
-
|
967 |
-
#: themes/default/SQ_BlockSupport.php:25
|
968 |
-
msgid "How was your Squirrly experience today?"
|
969 |
-
msgstr "Каково вам было сегодня работать с Squirrly ?"
|
970 |
-
|
971 |
-
#: themes/default/SQ_BlockSupport.php:32
|
972 |
-
msgid "How was Squirrly today?"
|
973 |
-
msgstr "Каким был Squirrly сегодня?"
|
974 |
-
|
975 |
-
#: themes/default/SQ_BlockSupport.php:45
|
976 |
-
msgid "Please tell us why?"
|
977 |
-
msgstr "Расскажите, пожалуйста, почему?"
|
978 |
-
|
979 |
-
#: themes/default/SQ_BlockSupport.php:48
|
980 |
-
msgid "Send feedback"
|
981 |
-
msgstr "Отправить отзыв"
|
982 |
-
|
983 |
-
#: themes/default/SQ_BlockSupport.php:57
|
984 |
-
msgid "Thank you! You can send us a happy face tomorow too."
|
985 |
-
msgstr "Спасибо! завтра тоже Вы можете отправить нам Смайлик."
|
986 |
-
|
987 |
-
#: themes/default/SQ_Menu.php:4
|
988 |
-
msgid "Squirrly settings"
|
989 |
-
msgstr "Настройки Squirrly "
|
990 |
-
|
991 |
-
#: themes/default/SQ_Menu.php:4 themes/default/SQ_Menu.php:321
|
992 |
-
msgid "Save settings"
|
993 |
-
msgstr "Сохранить настройки"
|
994 |
-
|
995 |
-
#: themes/default/SQ_Menu.php:15
|
996 |
-
msgid "Let Squirrly automatically optimize my blog"
|
997 |
-
msgstr "Позволить Squirrly автоматически оптимизировать мой блог"
|
998 |
-
|
999 |
-
#: themes/default/SQ_Menu.php:29
|
1000 |
-
msgid "What does Squirrly automatically do for SEO?"
|
1001 |
-
msgstr "Что Squirrly делает автоматически для SEO (поисковой оптимизации) ?"
|
1002 |
-
|
1003 |
-
#: themes/default/SQ_Menu.php:45
|
1004 |
-
msgid "Add <strong>canonical</strong> link in home page"
|
1005 |
-
msgstr "Добавить <strong>canonical</strong> на главную страницу"
|
1006 |
-
|
1007 |
-
#: themes/default/SQ_Menu.php:62
|
1008 |
-
msgid "Add the <strong>XML Sitemap</strong> for search engines"
|
1009 |
-
msgstr "Добавить <strong>XML Карту сайта </strong> для поисковых систем"
|
1010 |
-
|
1011 |
-
#: themes/default/SQ_Menu.php:79
|
1012 |
-
msgid ""
|
1013 |
-
"Add the required METAs for home page (<strong>icon, author, language, dc "
|
1014 |
-
"publisher</strong>, etc.)"
|
1015 |
-
msgstr ""
|
1016 |
-
"Добавить необходимое для главной мета страницы (<strong> икона, автор, язык, "
|
1017 |
-
"издатель dc </strong>, и т.д.)"
|
1018 |
-
|
1019 |
-
#: themes/default/SQ_Menu.php:96
|
1020 |
-
msgid ""
|
1021 |
-
"Add the <strong>favicon</strong> and the <strong>icon for Apple devices</"
|
1022 |
-
"strong>."
|
1023 |
-
msgstr ""
|
1024 |
-
"Добавить <strong>значок</strong> и <strong> иконки для устройств компании "
|
1025 |
-
"Apple</strong>."
|
1026 |
-
|
1027 |
-
#: themes/default/SQ_Menu.php:113
|
1028 |
-
msgid ""
|
1029 |
-
"Add the <strong>Facebook meta objects</strong> for a good looking share. "
|
1030 |
-
msgstr "Добавить<strong> мета-объекты Facebook</strong> для красивого вида."
|
1031 |
-
|
1032 |
-
#: themes/default/SQ_Menu.php:130
|
1033 |
-
msgid "Add the <strong>Twitter card</strong> in your tweets. "
|
1034 |
-
msgstr "Добавить<strong>карту Twitter</strong> в ваши твиты."
|
1035 |
-
|
1036 |
-
#: themes/default/SQ_Menu.php:131
|
1037 |
-
msgid "Your twitter account: "
|
1038 |
-
msgstr "Ваш счет twitter:"
|
1039 |
-
|
1040 |
-
#: themes/default/SQ_Menu.php:141
|
1041 |
-
msgid "First page optimization (Title, Description, Keywords)"
|
1042 |
-
msgstr "Первая оптимизации страницы (Название, описание, ключевые слова)"
|
1043 |
-
|
1044 |
-
#: themes/default/SQ_Menu.php:157
|
1045 |
-
msgid "Add the correct <strong>title</strong> in the home page"
|
1046 |
-
msgstr "Добавить правильное <strong>название</strong> на главной странице"
|
1047 |
-
|
1048 |
-
#: themes/default/SQ_Menu.php:174
|
1049 |
-
msgid ""
|
1050 |
-
"Add the correct <strong>description</strong> and <strong>keywords</strong> "
|
1051 |
-
"in home page"
|
1052 |
-
msgstr ""
|
1053 |
-
"Добавить правильное <strong>описание</strong> и <strong>ключевые слова</"
|
1054 |
-
"strong> на всех страницах"
|
1055 |
-
|
1056 |
-
#: themes/default/SQ_Menu.php:190
|
1057 |
-
msgid "Auto"
|
1058 |
-
msgstr "Автоматически "
|
1059 |
-
|
1060 |
-
#: themes/default/SQ_Menu.php:192
|
1061 |
-
msgid "Custom"
|
1062 |
-
msgstr "Индивидуальное"
|
1063 |
-
|
1064 |
-
#: themes/default/SQ_Menu.php:195
|
1065 |
-
msgid "Home page SEO optimization"
|
1066 |
-
msgstr "для оптимизации Squirrly Live SEO"
|
1067 |
-
|
1068 |
-
#: themes/default/SQ_Menu.php:200
|
1069 |
-
msgid "Title:"
|
1070 |
-
msgstr "Название:"
|
1071 |
-
|
1072 |
-
#: themes/default/SQ_Menu.php:201
|
1073 |
-
msgid "Tips: Length 10-75 chars"
|
1074 |
-
msgstr "Советы: длина 10-75 символов"
|
1075 |
-
|
1076 |
-
#: themes/default/SQ_Menu.php:204
|
1077 |
-
msgid "Description:"
|
1078 |
-
msgstr "Описание:"
|
1079 |
-
|
1080 |
-
#: themes/default/SQ_Menu.php:205
|
1081 |
-
msgid "Tips: Length 70-165 chars"
|
1082 |
-
msgstr "Советы: длина 70-165 символов"
|
1083 |
-
|
1084 |
-
#: themes/default/SQ_Menu.php:208
|
1085 |
-
msgid "Keywords:"
|
1086 |
-
msgstr "Ключевые слова:"
|
1087 |
-
|
1088 |
-
#: themes/default/SQ_Menu.php:209
|
1089 |
-
msgid "Tips: 2-4 keywords"
|
1090 |
-
msgstr "Советы: 2-4 ключевых слов"
|
1091 |
-
|
1092 |
-
#: themes/default/SQ_Menu.php:220
|
1093 |
-
msgid "Check with google ..."
|
1094 |
-
msgstr "Проверьте с Google..."
|
1095 |
-
|
1096 |
-
#: themes/default/SQ_Menu.php:223
|
1097 |
-
msgid ""
|
1098 |
-
"If you don't see any changes in custom optimization, check if another SEO "
|
1099 |
-
"plugin affects Squirrly SEO"
|
1100 |
-
msgstr ""
|
1101 |
-
"Если вы не видите изменений в пользовательской оптимизации, убедитесь, что "
|
1102 |
-
"другие плагины не влияют на SEO Squirrly"
|
1103 |
-
|
1104 |
-
#: themes/default/SQ_Menu.php:233
|
1105 |
-
msgid "Squirrly Options"
|
1106 |
-
msgstr "Опции Squirrly"
|
1107 |
-
|
1108 |
-
#: themes/default/SQ_Menu.php:242
|
1109 |
-
msgid "Let Squirrly warn me if there are errors related to SEO settings"
|
1110 |
-
msgstr ""
|
1111 |
-
"Позвольте Squirrly вас предупреждать в случае, ошибок, связанных с "
|
1112 |
-
"настройками SEO"
|
1113 |
-
|
1114 |
-
#: themes/default/SQ_Menu.php:253
|
1115 |
-
msgid ""
|
1116 |
-
"Show <strong>\"Enter a keyword\"</strong> bubble when posting a new article."
|
1117 |
-
msgstr ""
|
1118 |
-
"Показать пузырь <strong>\"Введите ключевое слово \"</strong> при написании "
|
1119 |
-
"новой статьи"
|
1120 |
-
|
1121 |
-
#: themes/default/SQ_Menu.php:264
|
1122 |
-
msgid ""
|
1123 |
-
"Always show <strong>Keyword Informations</strong> about the selected keyword."
|
1124 |
-
msgstr ""
|
1125 |
-
"Всегда показывать <strong>Информацию (о Ключевых словах) </strong> о "
|
1126 |
-
"выбранных ключевых словах."
|
1127 |
-
|
1128 |
-
#: themes/default/SQ_Menu.php:272
|
1129 |
-
msgid "Change the Website Icon"
|
1130 |
-
msgstr "Изменить Икону Сайта"
|
1131 |
-
|
1132 |
-
#: themes/default/SQ_Menu.php:275
|
1133 |
-
msgid "File types: JPG, JPEG, GIF and PNG."
|
1134 |
-
msgstr "Типы файлов: JPG, JPEG, GIF и PNG"
|
1135 |
-
|
1136 |
-
#: themes/default/SQ_Menu.php:278
|
1137 |
-
msgid "Upload file:"
|
1138 |
-
msgstr "Загрузить файл:"
|
1139 |
-
|
1140 |
-
#: themes/default/SQ_Menu.php:283
|
1141 |
-
msgid "Upload"
|
1142 |
-
msgstr "Загружать "
|
1143 |
-
|
1144 |
-
#: themes/default/SQ_Menu.php:287
|
1145 |
-
#, php-format
|
1146 |
-
msgid ""
|
1147 |
-
"You can use %shttp://convertico.com/%s to convert your photo to icon and "
|
1148 |
-
"upload it here after that."
|
1149 |
-
msgstr ""
|
1150 |
-
"Вы можете использовать %shttp://convertico.com/%s чтобы конвертировать ваши "
|
1151 |
-
"фотографии в иконки и загрузить их сюда."
|
1152 |
-
|
1153 |
-
#: themes/default/SQ_Menu.php:288
|
1154 |
-
msgid ""
|
1155 |
-
"If you don't see the new icon in your browser, empty the browser cache and "
|
1156 |
-
"refresh the page."
|
1157 |
-
msgstr ""
|
1158 |
-
"Если вы не видите новый значок в вашем браузере, очистьте кэш браузера и "
|
1159 |
-
"обновите страницу."
|
1160 |
-
|
1161 |
-
#: themes/default/SQ_Menu.php:292
|
1162 |
-
msgid "Tool for Search Engines"
|
1163 |
-
msgstr "Инструмент для поисковых систем"
|
1164 |
-
|
1165 |
-
#: themes/default/SQ_Menu.php:296
|
1166 |
-
msgid "Google Plus URL:"
|
1167 |
-
msgstr "Google Plus URL:"
|
1168 |
-
|
1169 |
-
#: themes/default/SQ_Menu.php:300
|
1170 |
-
#, php-format
|
1171 |
-
msgid "Google META verification code for %sWebmaster Tool%s`:"
|
1172 |
-
msgstr "Google META код проверки для %sWebmaster Tool%s`:"
|
1173 |
-
|
1174 |
-
#: themes/default/SQ_Menu.php:304
|
1175 |
-
#, php-format
|
1176 |
-
msgid "Google %sAnalytics ID%s`:"
|
1177 |
-
msgstr "Google %sAnalytics ID%s`:"
|
1178 |
-
|
1179 |
-
#: themes/default/SQ_Menu.php:308
|
1180 |
-
#, php-format
|
1181 |
-
msgid "Facebook META code (for %sInsights%s )`:"
|
1182 |
-
msgstr "Код Facebook META (для %sInsights%s )`:"
|
1183 |
-
|
1184 |
-
#: themes/default/SQ_Menu.php:312
|
1185 |
-
#, php-format
|
1186 |
-
msgid "Bing META code (for %sWebmaster Tool%s )`:"
|
1187 |
-
msgstr "Код Bing META (для %sWebmaster Tool%s )`: "
|
1188 |
-
|
1189 |
-
#~ msgid "Can not connect to Squirrly. Error: "
|
1190 |
-
#~ msgstr "Не удается подключиться к Squirrly. Ошибка:"
|
1191 |
-
|
1192 |
-
#~ msgid "Write a new post with Squirrly"
|
1193 |
-
#~ msgstr "Написать новый пост с Squirrly"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
models/SQ_BlockSettingsSeo.php
ADDED
@@ -0,0 +1,348 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Model_SQ_BlockSettingsSeo {
|
4 |
+
|
5 |
+
var $eTypes;
|
6 |
+
var $appleSizes;
|
7 |
+
|
8 |
+
public function __construct() {
|
9 |
+
$this->appleSizes = preg_split('/[,]+/', _SQ_MOBILE_ICON_SIZES);
|
10 |
+
}
|
11 |
+
|
12 |
+
/**
|
13 |
+
* Check if ecommerce is installed
|
14 |
+
* @return boolean
|
15 |
+
*/
|
16 |
+
public function isEcommerce() {
|
17 |
+
if (isset($this->eTypes)) {
|
18 |
+
return $this->eTypes;
|
19 |
+
}
|
20 |
+
|
21 |
+
|
22 |
+
$this->eTypes = array('product', 'wpsc-product');
|
23 |
+
foreach ($this->eTypes as $key => $type) {
|
24 |
+
if (!in_array($type, get_post_types())) {
|
25 |
+
unset($this->eTypes[$key]);
|
26 |
+
}
|
27 |
+
}
|
28 |
+
|
29 |
+
if (!empty($this->eTypes)) {
|
30 |
+
return $this->eTypes;
|
31 |
+
}
|
32 |
+
|
33 |
+
return false;
|
34 |
+
}
|
35 |
+
|
36 |
+
/**
|
37 |
+
* Check the google code saved at settings
|
38 |
+
*
|
39 |
+
* @return string
|
40 |
+
*/
|
41 |
+
public function checkGoogleWTCode($code) {
|
42 |
+
|
43 |
+
if ($code <> '') {
|
44 |
+
if (strpos($code, 'content') !== false) {
|
45 |
+
preg_match('/content\\s*=\\s*[\'\"]([^\'\"]+)[\'\"]/i', $code, $result);
|
46 |
+
if (isset($result[1]) && !empty($result[1]))
|
47 |
+
$code = $result[1];
|
48 |
+
}
|
49 |
+
if (strpos($code, '"') !== false) {
|
50 |
+
preg_match('/[\'\"]([^\'\"]+)[\'\"]/i', $code, $result);
|
51 |
+
if (isset($result[1]) && !empty($result[1]))
|
52 |
+
$code = $result[1];
|
53 |
+
}
|
54 |
+
|
55 |
+
if ($code == '')
|
56 |
+
SQ_Error::setError(__("The code for Google Webmaster Tool is incorrect.", _SQ_PLUGIN_NAME_));
|
57 |
+
}
|
58 |
+
return $code;
|
59 |
+
}
|
60 |
+
|
61 |
+
/**
|
62 |
+
* Check the google code saved at settings
|
63 |
+
*
|
64 |
+
* @return string
|
65 |
+
*/
|
66 |
+
public function checkGoogleAnalyticsCode($code) {
|
67 |
+
//echo $code;
|
68 |
+
if ($code <> '') {
|
69 |
+
if (strpos($code, '_gaq.push') !== false) {
|
70 |
+
preg_match('/_gaq.push\(\[[\'\"]_setAccount[\'\"],\\s?[\'\"]([^\'\"]+)[\'\"]\]\)/i', $code, $result);
|
71 |
+
if (isset($result[1]) && !empty($result[1]))
|
72 |
+
$code = $result[1];
|
73 |
+
}
|
74 |
+
|
75 |
+
if (strpos($code, '"') !== false) {
|
76 |
+
preg_match('/[\'\"]([^\'\"]+)[\'\"]/i', $code, $result);
|
77 |
+
if (isset($result[1]) && !empty($result[1]))
|
78 |
+
$code = $result[1];
|
79 |
+
}
|
80 |
+
|
81 |
+
if (strpos($code, 'UA-') === false) {
|
82 |
+
$code = '';
|
83 |
+
SQ_Error::setError(__("The code for Google Analytics is incorrect.", _SQ_PLUGIN_NAME_));
|
84 |
+
}
|
85 |
+
}
|
86 |
+
return $code;
|
87 |
+
}
|
88 |
+
|
89 |
+
/**
|
90 |
+
* Check the Facebook code saved at settings
|
91 |
+
*
|
92 |
+
* @return string
|
93 |
+
*/
|
94 |
+
public function checkFavebookInsightsCode($code) {
|
95 |
+
if ($code <> '') {
|
96 |
+
if (strpos($code, 'content') !== false) {
|
97 |
+
preg_match('/content\\s*=\\s*[\'\"]([^\'\"]+)[\'\"]/i', $code, $result);
|
98 |
+
$code = '';
|
99 |
+
if (isset($result[1]) && !empty($result[1])) {
|
100 |
+
$code = $result[1];
|
101 |
+
}
|
102 |
+
}
|
103 |
+
|
104 |
+
if (strpos($code, 'facebook.com/') !== false) {
|
105 |
+
preg_match('/facebook.com\/([^\/]+)/i', $code, $result);
|
106 |
+
$code = '';
|
107 |
+
if (isset($result[1]) && !empty($result[1])) {
|
108 |
+
$json = SQ_Tools::sq_remote_get('http://graph.facebook.com/' . $result[1]);
|
109 |
+
if ($json <> '') {
|
110 |
+
if ($json = @json_decode($json)) {
|
111 |
+
if (isset($json->id)) {
|
112 |
+
$code = $json->id;
|
113 |
+
}
|
114 |
+
}
|
115 |
+
}
|
116 |
+
}
|
117 |
+
}
|
118 |
+
|
119 |
+
if (strpos($code, '"') !== false) {
|
120 |
+
preg_match('/[\'\"]([^\'\"]+)[\'\"]/i', $code, $result);
|
121 |
+
$code = '';
|
122 |
+
if (isset($result[1]) && !empty($result[1])) {
|
123 |
+
$code = $result[1];
|
124 |
+
}
|
125 |
+
}
|
126 |
+
|
127 |
+
if ($code == '') {
|
128 |
+
SQ_Error::setError(__("The code for Facebook is incorrect.", _SQ_PLUGIN_NAME_));
|
129 |
+
}
|
130 |
+
}
|
131 |
+
return $code;
|
132 |
+
}
|
133 |
+
|
134 |
+
/**
|
135 |
+
* Check the Pinterest code saved at settings
|
136 |
+
*
|
137 |
+
* @return string
|
138 |
+
*/
|
139 |
+
public function checkPinterestCode($code) {
|
140 |
+
if ($code <> '') {
|
141 |
+
if (strpos($code, 'content') !== false) {
|
142 |
+
preg_match('/content\\s*=\\s*[\'\"]([^\'\"]+)[\'\"]/i', $code, $result);
|
143 |
+
if (isset($result[1]) && !empty($result[1]))
|
144 |
+
$code = $result[1];
|
145 |
+
}
|
146 |
+
|
147 |
+
if (strpos($code, '"') !== false) {
|
148 |
+
preg_match('/[\'\"]([^\'\"]+)[\'\"]/i', $code, $result);
|
149 |
+
if (isset($result[1]) && !empty($result[1]))
|
150 |
+
$code = $result[1];
|
151 |
+
}
|
152 |
+
|
153 |
+
if ($code == '')
|
154 |
+
SQ_Error::setError(__("The code for Pinterest is incorrect.", _SQ_PLUGIN_NAME_));
|
155 |
+
}
|
156 |
+
return $code;
|
157 |
+
}
|
158 |
+
|
159 |
+
/**
|
160 |
+
* Check the Bing code saved at settings
|
161 |
+
*
|
162 |
+
* @return string
|
163 |
+
*/
|
164 |
+
public function checkBingWTCode($code) {
|
165 |
+
if ($code <> '') {
|
166 |
+
if (strpos($code, 'content') !== false) {
|
167 |
+
preg_match('/content\\s*=\\s*[\'\"]([^\'\"]+)[\'\"]/i', $code, $result);
|
168 |
+
if (isset($result[1]) && !empty($result[1]))
|
169 |
+
$code = $result[1];
|
170 |
+
}
|
171 |
+
|
172 |
+
if (strpos($code, '"') !== false) {
|
173 |
+
preg_match('/[\'\"]([^\'\"]+)[\'\"]/i', $code, $result);
|
174 |
+
if (isset($result[1]) && !empty($result[1]))
|
175 |
+
$code = $result[1];
|
176 |
+
}
|
177 |
+
|
178 |
+
if ($code == '')
|
179 |
+
SQ_Error::setError(__("The code for Bing is incorrect.", _SQ_PLUGIN_NAME_));
|
180 |
+
}
|
181 |
+
return $code;
|
182 |
+
}
|
183 |
+
|
184 |
+
/**
|
185 |
+
* Check the twitter account
|
186 |
+
*
|
187 |
+
* @return string
|
188 |
+
*/
|
189 |
+
public function checkTwitterAccount($account) {
|
190 |
+
if (SQ_ObjController::getModel('SQ_Frontend')->getTwitterAccount($account) === false) {
|
191 |
+
SQ_Error::setError(__("The twitter account is incorrect", _SQ_PLUGIN_NAME_));
|
192 |
+
}
|
193 |
+
if ($account <> '' && strpos($account, 'twitter.') === false) {
|
194 |
+
$account = 'https://twitter.com/' . $account;
|
195 |
+
}
|
196 |
+
return $account;
|
197 |
+
}
|
198 |
+
|
199 |
+
/**
|
200 |
+
* Check the google + account
|
201 |
+
*
|
202 |
+
* @return string
|
203 |
+
*/
|
204 |
+
public function checkGoogleAccount($account) {
|
205 |
+
if ($account <> '' && strpos($account, 'google.') === false) {
|
206 |
+
$account = 'https://plus.google.com/' . $account;
|
207 |
+
}
|
208 |
+
return $account;
|
209 |
+
}
|
210 |
+
|
211 |
+
/**
|
212 |
+
* Check the google + account
|
213 |
+
*
|
214 |
+
* @return string
|
215 |
+
*/
|
216 |
+
public function checkLinkeinAccount($account) {
|
217 |
+
if ($account <> '' && strpos($account, 'linkedin.') === false) {
|
218 |
+
$account = 'https://www.linkedin.com/in/' . $account;
|
219 |
+
}
|
220 |
+
return $account;
|
221 |
+
}
|
222 |
+
|
223 |
+
/**
|
224 |
+
* Check the facebook account
|
225 |
+
*
|
226 |
+
* @return string
|
227 |
+
*/
|
228 |
+
public function checkFacebookAccount($account) {
|
229 |
+
if ($account <> '' && strpos($account, 'facebook.com') === false) {
|
230 |
+
$account = 'https://www.facebook.com/' . $account;
|
231 |
+
}
|
232 |
+
return $account;
|
233 |
+
}
|
234 |
+
|
235 |
+
/**
|
236 |
+
* Add the image to the root path
|
237 |
+
*
|
238 |
+
* @param string $file
|
239 |
+
* @param string $path
|
240 |
+
* @return array [name (the name of the file), favicon (the path of the ico), message (the returned message)]
|
241 |
+
*
|
242 |
+
*/
|
243 |
+
public function addFavicon($file, $path = ABSPATH) {
|
244 |
+
|
245 |
+
/* get the file extension */
|
246 |
+
$file_name = explode('.', $file['name']);
|
247 |
+
$file_type = strtolower($file_name[count($file_name) - 1]);
|
248 |
+
|
249 |
+
$out = array();
|
250 |
+
$out['tmp'] = _SQ_CACHE_DIR_ . strtolower(md5($file['name']) . '_tmp.' . $file_type);
|
251 |
+
$out['favicon'] = _SQ_CACHE_DIR_ . strtolower(md5($file['name']) . '.' . $file_type);
|
252 |
+
foreach ($this->appleSizes as $size) {
|
253 |
+
$out['favicon' . $size] = _SQ_CACHE_DIR_ . strtolower(md5($file['name']) . '.' . $file_type . $size);
|
254 |
+
}
|
255 |
+
|
256 |
+
/* if the file has a name */
|
257 |
+
if (!empty($file['name'])) {
|
258 |
+
/* Check the extension */
|
259 |
+
$file_type = strtolower($file_type);
|
260 |
+
$files = array('ico', 'jpeg', 'jpg', 'gif', 'png');
|
261 |
+
$key = in_array($file_type, $files);
|
262 |
+
|
263 |
+
if (!$key) {
|
264 |
+
SQ_Error::setError(__("File type error: Only ICO, JPEG, JPG, GIF or PNG files are allowed.", _SQ_PLUGIN_NAME_));
|
265 |
+
return;
|
266 |
+
}
|
267 |
+
|
268 |
+
/* Check for error messages */
|
269 |
+
if (!$this->checkFunctions()) {
|
270 |
+
SQ_Error::setError(__("GD error: The GD library must be installed on your server.", _SQ_PLUGIN_NAME_));
|
271 |
+
return;
|
272 |
+
} else {
|
273 |
+
/* Delete the previous file if exists */
|
274 |
+
if (is_file($out['favicon'])) {
|
275 |
+
if (!unlink($out['favicon'])) {
|
276 |
+
SQ_Error::setError(__("Delete error: Could not delete the old favicon.", _SQ_PLUGIN_NAME_));
|
277 |
+
return;
|
278 |
+
}
|
279 |
+
}
|
280 |
+
|
281 |
+
/* Upload the file */
|
282 |
+
if (!move_uploaded_file($file['tmp_name'], $out['tmp'])) {
|
283 |
+
SQ_Error::setError(__("Upload error: Could not upload the favicon.", _SQ_PLUGIN_NAME_));
|
284 |
+
return;
|
285 |
+
}
|
286 |
+
|
287 |
+
/* Change the permision */
|
288 |
+
if (!chmod($out['tmp'], 0755)) {
|
289 |
+
SQ_Error::setError(__("Permission error: Could not change the favicon permissions.", _SQ_PLUGIN_NAME_));
|
290 |
+
return;
|
291 |
+
}
|
292 |
+
|
293 |
+
if ($file_type <> 'ico') {
|
294 |
+
/* Save the file */
|
295 |
+
if ($out['tmp']) {
|
296 |
+
$ico = SQ_ObjController::getModel('SQ_Ico');
|
297 |
+
$ico->set_image($out['tmp'], array(32, 32));
|
298 |
+
if ($ico->save_ico($out['favicon'])) {
|
299 |
+
if (file_exists($path . "/" . 'favicon.ico')) {
|
300 |
+
$ico->remove_ico($path . "/" . 'favicon.ico');
|
301 |
+
}
|
302 |
+
}
|
303 |
+
foreach ($this->appleSizes as $size) {
|
304 |
+
$ico->set_image($out['tmp'], array($size, $size));
|
305 |
+
$ico->save_ico($out['favicon' . $size]);
|
306 |
+
}
|
307 |
+
} else {
|
308 |
+
SQ_Error::setError(__("ICO Error: Could not create the ICO from file. Try with another file type.", _SQ_PLUGIN_NAME_));
|
309 |
+
}
|
310 |
+
} else {
|
311 |
+
if (file_exists($path . "/" . 'favicon.ico')) {
|
312 |
+
$ico->remove_ico($path . "/" . 'favicon.ico');
|
313 |
+
}
|
314 |
+
}
|
315 |
+
$ico->remove_ico($out['tmp']);
|
316 |
+
unset($out['tmp']);
|
317 |
+
$out['message'] = __("The favicon has been updated.", _SQ_PLUGIN_NAME_);
|
318 |
+
|
319 |
+
return $out;
|
320 |
+
}
|
321 |
+
}
|
322 |
+
}
|
323 |
+
|
324 |
+
private function checkFunctions() {
|
325 |
+
$required_functions = array(
|
326 |
+
'getimagesize',
|
327 |
+
'imagecreatefromstring',
|
328 |
+
'imagecreatetruecolor',
|
329 |
+
'imagecolortransparent',
|
330 |
+
'imagecolorallocatealpha',
|
331 |
+
'imagealphablending',
|
332 |
+
'imagesavealpha',
|
333 |
+
'imagesx',
|
334 |
+
'imagesy',
|
335 |
+
'imagecopyresampled',
|
336 |
+
);
|
337 |
+
|
338 |
+
foreach ($required_functions as $function) {
|
339 |
+
if (!function_exists($function)) {
|
340 |
+
SQ_Error::setError("The PHP_ICO class was unable to find the $function function, which is part of the GD library. Ensure that the system has the GD library installed and that PHP has access to it through a PHP interface, such as PHP's GD module. Since this function was not found, the library will be unable to create ICO files.");
|
341 |
+
return false;
|
342 |
+
}
|
343 |
+
}
|
344 |
+
|
345 |
+
return true;
|
346 |
+
}
|
347 |
+
|
348 |
+
}
|
models/SQ_BlockStatus.php
DELETED
@@ -1,158 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
/**
|
4 |
-
* The model class for SQ_BlockStatus
|
5 |
-
*
|
6 |
-
*/
|
7 |
-
class Model_SQ_BlockStatus {
|
8 |
-
|
9 |
-
/** @var string */
|
10 |
-
private $analytics_table;
|
11 |
-
|
12 |
-
/** @var integer Days to the latest traffic check */
|
13 |
-
private $prev_check;
|
14 |
-
|
15 |
-
public function __construct() {
|
16 |
-
$traffic = SQ_ObjController::getController('SQ_Traffic', false);
|
17 |
-
|
18 |
-
//get the analytic table name
|
19 |
-
$this->analytics_table = $traffic->getAnalyticsTable();
|
20 |
-
|
21 |
-
$this->prev_check = 7;
|
22 |
-
}
|
23 |
-
|
24 |
-
/**
|
25 |
-
* Add the global progress of the traffic
|
26 |
-
*
|
27 |
-
*/
|
28 |
-
public function getGlobalProgress() {
|
29 |
-
global $wpdb;
|
30 |
-
|
31 |
-
if ($wpdb->get_var("SHOW TABLES LIKE '" . $this->analytics_table . "'") != $this->analytics_table)
|
32 |
-
return false;
|
33 |
-
|
34 |
-
$progress = $this->setProgress();
|
35 |
-
if (isset(SQ_Tools::$options['sq_posts_status_close'])) {
|
36 |
-
$latest = $this->setProgress(date('Y-m-d', time() - 3600 * 24 * $this->prev_check));
|
37 |
-
//Chech if there is an inrease in trafic sinse previous check
|
38 |
-
$progress['increase'] = (int) ($latest['gapr'] < $progress['gapr']);
|
39 |
-
$progress['latest'] = $latest;
|
40 |
-
} else {
|
41 |
-
$progress['increase'] = 1;
|
42 |
-
}
|
43 |
-
return $progress;
|
44 |
-
}
|
45 |
-
|
46 |
-
/**
|
47 |
-
*
|
48 |
-
* @param type $until
|
49 |
-
* @return type
|
50 |
-
*/
|
51 |
-
private function setProgress($until = '') {
|
52 |
-
$progress = array('op' => 0, 'nop' => 0, 'opc' => 0, 'nopc' => 0, 'gapr' => 0);
|
53 |
-
|
54 |
-
if ($tno = $this->getNOProgress($until))
|
55 |
-
if ($to = $this->getOProgress($until))
|
56 |
-
if ($to->count > 0 && $tno->count > 0 && $to->posts > 0 && $tno->posts > 0) {
|
57 |
-
$gapr = ((($to->count / $to->posts) * 100) / ($tno->count / $tno->posts)) - 100;
|
58 |
-
$progress = array('op' => $to->posts,
|
59 |
-
'nop' => $tno->posts,
|
60 |
-
'opc' => $to->count,
|
61 |
-
'nopc' => $tno->count,
|
62 |
-
'gapr' => $gapr
|
63 |
-
);
|
64 |
-
}
|
65 |
-
|
66 |
-
return $progress;
|
67 |
-
}
|
68 |
-
|
69 |
-
/**
|
70 |
-
* Get the unoptimized traffic from database
|
71 |
-
* @global type $wpdb
|
72 |
-
* @return type
|
73 |
-
*/
|
74 |
-
public function getNOProgress($until) {
|
75 |
-
global $wpdb;
|
76 |
-
if ($until <> '')
|
77 |
-
$until = " AND date < '" . $until . "'";
|
78 |
-
|
79 |
-
$sql = "SELECT SUM(analytics.`count`) as `count`, COUNT(DISTINCT analytics.`post_id`) as `posts`
|
80 |
-
FROM `" . $this->analytics_table . "` analytics
|
81 |
-
INNER JOIN " . $wpdb->posts . " wp ON wp.ID = analytics.`post_id` AND wp.post_status = 'publish'
|
82 |
-
WHERE keyword = ''
|
83 |
-
" . $until;
|
84 |
-
|
85 |
-
return $wpdb->get_row($sql);
|
86 |
-
}
|
87 |
-
|
88 |
-
/**
|
89 |
-
* Get the optimized traffic from database
|
90 |
-
* @global type $wpdb
|
91 |
-
* @return type
|
92 |
-
*/
|
93 |
-
public function getOProgress($until) {
|
94 |
-
global $wpdb;
|
95 |
-
if ($until <> '')
|
96 |
-
$until = " AND date < '" . $until . "'";
|
97 |
-
|
98 |
-
$sql = "SELECT SUM(analytics.`count`) as `count`, COUNT(DISTINCT analytics.`post_id`) as `posts`
|
99 |
-
FROM `" . $this->analytics_table . "` analytics
|
100 |
-
INNER JOIN " . $wpdb->posts . " wp ON wp.ID = analytics.`post_id` AND wp.post_status = 'publish'
|
101 |
-
WHERE keyword <> ''
|
102 |
-
" . $until;
|
103 |
-
|
104 |
-
return $wpdb->get_row($sql);
|
105 |
-
}
|
106 |
-
|
107 |
-
/**
|
108 |
-
* Pack the traffic status popup
|
109 |
-
* @param array $progress
|
110 |
-
* @return string
|
111 |
-
*/
|
112 |
-
public function packStatus($progress) {
|
113 |
-
$str = '';
|
114 |
-
//Check show conditions
|
115 |
-
if (!$this->showPopup($progress))
|
116 |
-
return;
|
117 |
-
if (isset(SQ_Tools::$options['sq_posts_status_close']) && (time() - SQ_Tools::$options['sq_posts_status_close'] < 3600 * 24 * $this->prev_check))
|
118 |
-
return; //min 7 days before show it again
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
//Set the percent string to progress
|
124 |
-
$progress['gapr'] = number_format($progress['gapr'], 0) . '%';
|
125 |
-
$str .= '
|
126 |
-
<div id="sq_status">
|
127 |
-
<ul class="sq_box">
|
128 |
-
<li class="sq_header"><span>Squirrly SEO</span>' . sprintf(__('%s More Traffic for you!'), $progress['gapr']) . '<span class="sq_status_close">' . __('[close this box]') . ' X</span></li>
|
129 |
-
<li>
|
130 |
-
<div class="sq_status_image"></div>
|
131 |
-
<table>
|
132 |
-
<tr>
|
133 |
-
<td class="sq_status_text1">' . __('CONGRATULATIONS!!') . ' :-)</td>
|
134 |
-
<td class="sq_status_bigtext" rowspan="2">' . $progress['gapr'] . '</td>
|
135 |
-
</tr>
|
136 |
-
<td class="sq_status_text2">' . __('Your Traffic Increased by:') . '</td>
|
137 |
-
<tr>
|
138 |
-
</tr>
|
139 |
-
</table>
|
140 |
-
</li>
|
141 |
-
<li class="sq_status_text3">' . sprintf(__('the articles you’ve optimized with Squirrly SEO bring you %s more traffic than the other ones.'), $progress['gapr']) . '
|
142 |
-
</li>
|
143 |
-
</ul>
|
144 |
-
<div>
|
145 |
-
';
|
146 |
-
|
147 |
-
return $str;
|
148 |
-
}
|
149 |
-
|
150 |
-
/**
|
151 |
-
* Show popup condition
|
152 |
-
* @return type
|
153 |
-
*/
|
154 |
-
private function showPopup($progress) {
|
155 |
-
return ($progress['op'] > 0 && $progress['nop'] > 0 && ($progress['op'] < $progress['nop']) && $progress['opc'] > 100 && $progress['gapr'] > 100 && $progress['increase'] == 1);
|
156 |
-
}
|
157 |
-
|
158 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
models/SQ_Blockseo.php
CHANGED
@@ -20,9 +20,9 @@ class Model_SQ_Blockseo {
|
|
20 |
if ((int) $sq_postID == 0)
|
21 |
return;
|
22 |
|
23 |
-
$meta = array('
|
24 |
-
'
|
25 |
-
'
|
26 |
|
27 |
$sql = "SELECT `meta_id`, `meta_value`, `meta_key`
|
28 |
FROM `" . $wpdb->postmeta . "`
|
20 |
if ((int) $sq_postID == 0)
|
21 |
return;
|
22 |
|
23 |
+
$meta = array('_sq_fp_title' => '',
|
24 |
+
'_sq_fp_description' => '',
|
25 |
+
'_sq_fp_ogimage' => '');
|
26 |
|
27 |
$sql = "SELECT `meta_id`, `meta_value`, `meta_key`
|
28 |
FROM `" . $wpdb->postmeta . "`
|
models/SQ_Frontend.php
CHANGED
@@ -2,8 +2,13 @@
|
|
2 |
|
3 |
class Model_SQ_Frontend {
|
4 |
|
|
|
|
|
|
|
|
|
5 |
/** @var canonical link */
|
6 |
private $url;
|
|
|
7 |
|
8 |
/** @var string */
|
9 |
private $title;
|
@@ -27,18 +32,14 @@ class Model_SQ_Frontend {
|
|
27 |
private $min_description_length = 70;
|
28 |
|
29 |
/** @var integer */
|
30 |
-
private $
|
31 |
-
|
32 |
-
/** @var object Current post */
|
33 |
-
private $post;
|
34 |
-
private $post_type;
|
35 |
|
36 |
/** @var array Meta custom content */
|
37 |
private $meta = array();
|
38 |
|
39 |
public function __construct() {
|
40 |
SQ_ObjController::getController('SQ_Tools', false);
|
41 |
-
$this->post_type =
|
42 |
}
|
43 |
|
44 |
/** @var meta from other plugins */
|
@@ -48,7 +49,7 @@ class Model_SQ_Frontend {
|
|
48 |
* @return string
|
49 |
*/
|
50 |
public function setStart() {
|
51 |
-
return "\n\n<!-- Squirrly
|
52 |
}
|
53 |
|
54 |
/**
|
@@ -56,7 +57,7 @@ class Model_SQ_Frontend {
|
|
56 |
* @return string
|
57 |
*/
|
58 |
public function setEnd() {
|
59 |
-
return "<!-- /Squirrly
|
60 |
}
|
61 |
|
62 |
/* * *****USE BUFFER****** */
|
@@ -103,38 +104,41 @@ class Model_SQ_Frontend {
|
|
103 |
* @return string
|
104 |
*/
|
105 |
private function setMetaInBuffer($buffer) {
|
106 |
-
global $
|
107 |
-
|
|
|
|
|
108 |
return $buffer;
|
109 |
}
|
110 |
|
111 |
//get the post from shop if woocommerce is installed
|
112 |
if (function_exists('is_shop') && is_shop()) {
|
113 |
$this->post = get_post(woocommerce_get_page_id('shop'));
|
114 |
-
}
|
115 |
$this->post = get_post($post->ID);
|
116 |
}
|
117 |
|
118 |
-
if (
|
119 |
preg_match("/<head[^>]*>/i", $buffer, $out);
|
120 |
if (!empty($out)) {
|
121 |
-
$title = $this->getCustomTitle();
|
122 |
-
if (isset($title) &&
|
123 |
-
|
|
|
124 |
if ($count == 0) { //if no title found
|
125 |
-
$buffer .= sprintf("<title>%s</title>", $title) . "\n";
|
126 |
-
}
|
127 |
}
|
128 |
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
$buffer = @preg_replace('/<meta[^>]*name=\"description\"[^>]*content=[\"|\'][^>]*[\"|\'][^>]*>/si', $description, $buffer, 1, $count);
|
133 |
}
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
|
|
138 |
}
|
139 |
}
|
140 |
}
|
@@ -149,17 +153,9 @@ class Model_SQ_Frontend {
|
|
149 |
* @return string
|
150 |
*/
|
151 |
public function setHeader() {
|
152 |
-
global $
|
153 |
$ret = '';
|
154 |
|
155 |
-
//get the post from shop if woocommerce is installed
|
156 |
-
if (function_exists('is_shop') && is_shop()) {
|
157 |
-
$this->post = get_post(woocommerce_get_page_id('shop'));
|
158 |
-
} else {
|
159 |
-
$this->post = get_post($post->ID);
|
160 |
-
}
|
161 |
-
|
162 |
-
$this->meta['blogname'] = get_bloginfo('name');
|
163 |
|
164 |
if (!function_exists('preg_replace')) {
|
165 |
return $ret;
|
@@ -167,8 +163,26 @@ class Model_SQ_Frontend {
|
|
167 |
|
168 |
if ($this->isHomePage() || is_single() || is_page() || is_singular() || is_preview() || is_archive() || is_category() || is_author() || is_tag() || is_search() || in_array(get_post_type(), $this->post_type)) {
|
169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
/* Meta setting */
|
171 |
-
$this->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
|
173 |
//Add description in homepage if is set or add description in other pages if is not home page
|
174 |
if ((SQ_Tools::$options['sq_auto_description'] == 1 && $this->isHomePage()) || !$this->isHomePage()) {
|
@@ -191,9 +205,10 @@ class Model_SQ_Frontend {
|
|
191 |
}
|
192 |
|
193 |
if (SQ_Tools::$options['sq_auto_meta'] == 1) {
|
194 |
-
$ret .=
|
195 |
$ret .= $this->getGooglePlusMeta();
|
196 |
$ret .= $this->getLanguage();
|
|
|
197 |
$ret .= $this->getDublinCore();
|
198 |
}
|
199 |
if (SQ_Tools::$options['sq_auto_facebook'] == 1) {
|
@@ -201,7 +216,7 @@ class Model_SQ_Frontend {
|
|
201 |
}
|
202 |
|
203 |
if (SQ_Tools::$options['sq_auto_twitter'] == 1) {
|
204 |
-
$ret .= $this->getTwitterCard(
|
205 |
}
|
206 |
/* SEO optimizer tool */
|
207 |
$ret .= $this->getGoogleWT();
|
@@ -209,15 +224,18 @@ class Model_SQ_Frontend {
|
|
209 |
$ret .= $this->getFacebookIns();
|
210 |
$ret .= $this->getBingWT();
|
211 |
$ret .= $this->getPinterest();
|
212 |
-
|
213 |
$ret .= $this->getAlexaT();
|
214 |
|
|
|
|
|
|
|
|
|
215 |
$ret .= $this->setEnd();
|
216 |
}
|
217 |
return $ret;
|
218 |
}
|
219 |
|
220 |
-
private function getTwitterCard(
|
221 |
$meta = "\n";
|
222 |
|
223 |
//Title and Description is required
|
@@ -225,29 +243,52 @@ class Model_SQ_Frontend {
|
|
225 |
return;
|
226 |
}
|
227 |
|
228 |
-
|
229 |
-
|
230 |
-
}
|
231 |
-
|
232 |
-
//if ($options['sq_twitter_creator'] == '' && $options['sq_twitter_site'] == '') return;
|
233 |
-
$sq_twitter_creator = $options['sq_twitter_account'];
|
234 |
-
$sq_twitter_site = $options['sq_twitter_account'];
|
235 |
|
236 |
if (!isset($this->thumb_image) || $this->thumb_image == '') {
|
237 |
-
$
|
|
|
|
|
|
|
238 |
}
|
239 |
|
240 |
$meta .= '<meta name="twitter:card" content="summary" />' . "\n";
|
241 |
|
242 |
-
$meta .= (($sq_twitter_creator <> '') ? sprintf('<meta name="twitter:creator" content="%s" />', $sq_twitter_creator) . "\n" : '');
|
243 |
-
$meta .= (($sq_twitter_site <> '') ? sprintf('<meta name="twitter:site" content="%s" />', $
|
244 |
$meta .= sprintf('<meta name="twitter:url" content="%s">', $this->url) . "\n";
|
245 |
$meta .= sprintf('<meta name="twitter:title" content="%s">', $this->title) . "\n";
|
246 |
$meta .= (($this->description <> '') ? sprintf('<meta name="twitter:description" content="%s">', $this->description . ' | ' . $this->meta['blogname']) . "\n" : '');
|
247 |
$meta .= ((isset($this->thumb_image) && $this->thumb_image <> '') ? sprintf('<meta name="twitter:image" content="%s">', $this->thumb_image) . "\n" : '');
|
248 |
$meta .= (($this->meta['blogname'] <> '') ? sprintf('<meta name="twitter:domain" content="%s">', $this->meta['blogname']) . "\n" : '');
|
249 |
|
250 |
-
return $meta;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
}
|
252 |
|
253 |
/**
|
@@ -257,29 +298,29 @@ class Model_SQ_Frontend {
|
|
257 |
private function getOpenGraph() {
|
258 |
$meta = "\n";
|
259 |
$image = '';
|
260 |
-
$ogimage = null;
|
261 |
|
262 |
-
$url = $this->getCanonicalUrl();
|
263 |
if (!isset($this->thumb_image) || $this->thumb_image == '') {
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
$this->thumb_image = $this->getImageFromContent();
|
268 |
}
|
269 |
}
|
270 |
|
271 |
if (!isset($this->thumb_video) || $this->thumb_video == '') {
|
272 |
-
$
|
|
|
|
|
|
|
273 |
}
|
274 |
|
275 |
-
if ($image == '' && $url == '') {
|
276 |
return;
|
277 |
}
|
278 |
//GET THE URL
|
279 |
-
$meta .= sprintf('<meta property="og:url" content="%s" />', $url) . "\n";
|
280 |
-
if (
|
281 |
$meta .= sprintf('<meta property="og:image" content="%s" />', $this->thumb_image) . "\n";
|
282 |
-
$meta .= sprintf('<meta property="og:image:width" content="%s" />',
|
283 |
}
|
284 |
|
285 |
if ((isset($this->thumb_video) && $this->thumb_video <> '')) {
|
@@ -288,7 +329,7 @@ class Model_SQ_Frontend {
|
|
288 |
|
289 |
$meta .= sprintf('<meta property="og:title" content="%s" />', $this->title) . "\n";
|
290 |
$meta .= sprintf('<meta property="og:description" content="%s" />', $this->description) . "\n";
|
291 |
-
$meta .= (($this->meta['blogname'] <> '') ? sprintf('<meta property="og:site_name" content="%s" />', $this->meta['blogname']) . "\n" : '');
|
292 |
|
293 |
if (is_author()) {
|
294 |
$author = get_queried_object();
|
@@ -297,10 +338,10 @@ class Model_SQ_Frontend {
|
|
297 |
$meta .= sprintf('<meta property="profile:first_name" content="%s" />', get_the_author_meta('first_name', $author->ID)) . "\n";
|
298 |
$meta .= sprintf('<meta property="profile:last_name" content="%s" />', get_the_author_meta('last_name', $author->ID)) . "\n";
|
299 |
} elseif (!$this->isHomePage() && (is_single() || is_page())) {
|
300 |
-
$meta .= sprintf('<meta property="og:type" content="%s" />', ((isset($this->thumb_video) && $this->thumb_video <> '') ? 'video' : 'article')) . "\n";
|
301 |
if ((isset($this->thumb_video) && $this->thumb_video <> '')) {
|
302 |
-
|
303 |
} else {
|
|
|
304 |
$meta .= sprintf('<meta property="article:published_time" content="%s" />', get_the_time('c', $this->post->ID)) . "\n";
|
305 |
if ($this->keywords <> '') {
|
306 |
$keywords = preg_split('/[,]+/', $this->keywords);
|
@@ -315,7 +356,7 @@ class Model_SQ_Frontend {
|
|
315 |
$meta .= sprintf('<meta property="og:type" content="%s" />', 'website') . "\n";
|
316 |
}
|
317 |
|
318 |
-
return $meta;
|
319 |
}
|
320 |
|
321 |
/**
|
@@ -324,9 +365,6 @@ class Model_SQ_Frontend {
|
|
324 |
* @return string
|
325 |
*/
|
326 |
private function setCanonical() {
|
327 |
-
if (!isset($this->url)) {
|
328 |
-
$this->url = $this->getCanonicalUrl();
|
329 |
-
}
|
330 |
|
331 |
if ($this->url) {
|
332 |
remove_action('wp_head', 'rel_canonical');
|
@@ -342,15 +380,14 @@ class Model_SQ_Frontend {
|
|
342 |
$meta = "";
|
343 |
if (!$this->isHomePage()) {
|
344 |
if (get_previous_posts_link()) {
|
345 |
-
$meta .= sprintf('<link rel="prev" href="%s" />', get_pagenum_link($paged - 1)) . "\n";
|
346 |
}
|
347 |
if (get_next_posts_link()) {
|
348 |
-
$meta .= sprintf('<link rel="next" href="%s" />', get_pagenum_link($paged + 1)) . "\n";
|
349 |
}
|
350 |
}
|
351 |
|
352 |
-
return (($meta <> '') ?
|
353 |
-
$meta . "\n" : '');
|
354 |
}
|
355 |
|
356 |
/**
|
@@ -360,46 +397,82 @@ class Model_SQ_Frontend {
|
|
360 |
*/
|
361 |
public function getCustomTitle() {
|
362 |
$title = '';
|
363 |
-
$sep = '|';
|
|
|
|
|
|
|
|
|
364 |
|
365 |
//If its a post/page
|
366 |
if (!$this->isHomePage()) {
|
367 |
//If is category
|
368 |
if (is_category()) { //for category
|
369 |
$category = get_category(get_query_var('cat'), false);
|
370 |
-
$title =
|
371 |
if ($title == '') {
|
372 |
-
$title = $this->
|
373 |
}
|
374 |
if (is_paged()) {
|
375 |
-
$title .=
|
376 |
}
|
377 |
} elseif (is_author()) { //for author
|
378 |
-
$author = SQ_Tools::i18n(get_the_author_meta('nicename', get_query_var('author')));
|
379 |
-
|
380 |
if ($title == '') {
|
381 |
-
$title = $this->
|
382 |
}
|
383 |
if ($title == '') {
|
384 |
-
$title = __('About') . " " . ucfirst($
|
385 |
}
|
386 |
if (is_paged()) {
|
387 |
-
$title .=
|
388 |
}
|
389 |
} elseif (is_tag()) { //for tags
|
390 |
if (is_paged()) {
|
391 |
$tag = get_query_var('tag');
|
392 |
-
$title = ucfirst(str_replace('-', ' ',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
393 |
}
|
394 |
} elseif (is_single() || is_page() || is_singular() || in_array(get_post_type(), $this->post_type)) {
|
395 |
-
|
396 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
397 |
}
|
398 |
}
|
399 |
|
400 |
//If title then clear it and truncate it
|
401 |
if ($title <> '') {
|
402 |
-
$title = $this->truncate($
|
403 |
}
|
404 |
|
405 |
/* Check if is a predefined Title for home page */
|
@@ -408,96 +481,114 @@ class Model_SQ_Frontend {
|
|
408 |
|
409 |
//If the home page is a static page that has custom snippet
|
410 |
if (is_page() && isset($this->post) && isset($this->post->ID) && $this->getAdvancedMeta($this->post->ID, 'title') <> '') {
|
411 |
-
$title =
|
412 |
-
} elseif (SQ_Tools
|
413 |
-
$title =
|
414 |
} else {
|
415 |
-
$title = $this->
|
416 |
if ($title <> "" && $this->meta['blogname'] <> '') {
|
417 |
-
$title .=
|
418 |
}
|
419 |
}
|
420 |
}
|
421 |
|
|
|
|
|
422 |
|
|
|
|
|
|
|
|
|
423 |
return $title;
|
424 |
}
|
425 |
|
426 |
/**
|
427 |
* Get the image from content
|
428 |
* @global type $wp_query
|
|
|
429 |
* @return type
|
430 |
*/
|
431 |
-
public function
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
if (!empty($wp_query->posts))
|
438 |
-
foreach ($wp_query->posts as $post) {
|
439 |
-
if (isset($post->ID) && get_post_status($post->ID) == 'publish') {
|
440 |
-
$post = get_post($post->ID);
|
441 |
-
break;
|
442 |
-
}
|
443 |
-
}
|
444 |
}
|
445 |
|
446 |
if ($post && isset($post->ID)) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
447 |
if (has_post_thumbnail($post->ID)) {
|
448 |
-
$
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
|
|
|
|
|
|
|
|
453 |
preg_match('/<img[^>]*src="([^"]*)"[^>]*>/i', $post->post_content, $match);
|
454 |
-
if (empty($match)) {
|
455 |
-
return;
|
456 |
-
}
|
457 |
|
458 |
-
if (
|
459 |
-
|
460 |
-
}
|
461 |
|
462 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
463 |
}
|
464 |
}
|
|
|
|
|
465 |
}
|
466 |
|
467 |
/**
|
468 |
* Get the video from content
|
469 |
-
* @
|
470 |
* @return type
|
471 |
*/
|
472 |
-
public function
|
473 |
-
|
474 |
-
|
|
|
|
|
|
|
|
|
475 |
}
|
476 |
|
477 |
-
if (isset($
|
478 |
-
|
|
|
479 |
|
480 |
-
|
481 |
-
|
482 |
-
|
|
|
|
|
483 |
}
|
484 |
-
}
|
485 |
|
486 |
-
|
487 |
-
$match)) {
|
488 |
|
489 |
-
|
490 |
-
|
491 |
-
|
|
|
492 |
}
|
493 |
|
494 |
-
return $
|
495 |
-
}
|
496 |
-
|
497 |
-
private function clearTitle($title) {
|
498 |
-
$title = str_replace(array('"', " ", " "), array('', ' ', ' '), $title);
|
499 |
-
return trim(strip_tags(html_entity_decode(
|
500 |
-
$title)));
|
501 |
}
|
502 |
|
503 |
/**
|
@@ -506,7 +597,8 @@ class Model_SQ_Frontend {
|
|
506 |
* @return string
|
507 |
*/
|
508 |
private function getCustomDescription() {
|
509 |
-
|
|
|
510 |
$description = '';
|
511 |
|
512 |
//If not homepage
|
@@ -514,44 +606,79 @@ class Model_SQ_Frontend {
|
|
514 |
//If is a category
|
515 |
if (is_category()) { //for categories
|
516 |
$category = get_category(get_query_var('cat'), false);
|
517 |
-
$description =
|
518 |
if ($description == '') {
|
519 |
-
$description =
|
520 |
}
|
521 |
if ($description == '') {
|
522 |
$description = $this->grabDescriptionFromPost();
|
523 |
}
|
524 |
|
525 |
if (is_paged()) {
|
526 |
-
$description .=
|
527 |
}
|
528 |
|
529 |
if ($this->isHomePage() && $description <> '') {
|
530 |
if ($this->meta['blogname'] <> '') {
|
531 |
-
$description .=
|
532 |
}
|
533 |
}
|
|
|
534 |
} elseif (is_author()) { //for author
|
535 |
-
$description =
|
536 |
if ($description == '') {
|
537 |
-
$
|
538 |
-
$description = $this->grabDescriptionFromPost() . " " . $sep . " " . $author;
|
539 |
}
|
540 |
if (is_paged()) {
|
541 |
-
$description .=
|
542 |
}
|
543 |
} elseif (is_tag()) { //for tags
|
544 |
-
$description =
|
545 |
if ($description == '') {
|
546 |
-
$tag =
|
547 |
-
$description = ucfirst($tag) .
|
548 |
}
|
549 |
if (is_paged()) {
|
550 |
-
$description .=
|
551 |
}
|
552 |
-
} elseif (
|
|
|
553 |
if (isset($this->post) && isset($this->post->ID)) {
|
554 |
$description = $this->grabDescriptionFromPost($this->post->ID);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
555 |
}
|
556 |
}
|
557 |
}
|
@@ -562,7 +689,7 @@ class Model_SQ_Frontend {
|
|
562 |
|
563 |
//If the home page is a static page that has custom snippet
|
564 |
if (is_page() && isset($this->post) && isset($this->post->ID) && $this->getAdvancedMeta($this->post->ID, 'description') <> '') {
|
565 |
-
$description =
|
566 |
} elseif (SQ_Tools::$options ['sq_fp_description'] <> '') {
|
567 |
$description = strip_tags(SQ_Tools::$options['sq_fp_description']);
|
568 |
} else {
|
@@ -572,33 +699,30 @@ class Model_SQ_Frontend {
|
|
572 |
|
573 |
$description = (($description <> '') ? $description : $this->title);
|
574 |
if ($description <> '') {
|
575 |
-
$this->description = $this->clearDescription($description);
|
576 |
|
|
|
577 |
if ($this->description <> '') { //prevent blank description
|
578 |
-
|
579 |
-
} else {
|
580 |
-
$description = '';
|
581 |
}
|
582 |
}
|
583 |
|
584 |
-
return
|
585 |
}
|
586 |
|
587 |
-
|
588 |
-
$description
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
|
597 |
-
|
598 |
-
|
599 |
-
$description = str_replace('"', '\'', $description);
|
600 |
|
601 |
-
return
|
602 |
}
|
603 |
|
604 |
/**
|
@@ -607,7 +731,6 @@ class Model_SQ_Frontend {
|
|
607 |
* @return string
|
608 |
*/
|
609 |
private function getCustomKeyword() {
|
610 |
-
global $wp_query;
|
611 |
$keywords = '';
|
612 |
|
613 |
if ($this->checkPostsPage() && SQ_Tools::$options['sq_auto_description'] == 1) {
|
@@ -627,7 +750,7 @@ class Model_SQ_Frontend {
|
|
627 |
}
|
628 |
|
629 |
if (isset($keywords) && !empty($keywords) && !(is_home() && is_paged())) {
|
630 |
-
$this->keywords = str_replace('"', '', $keywords);
|
631 |
|
632 |
return sprintf("<meta name=\"keywords\" content=\"%s\" />", $this->keywords);
|
633 |
}
|
@@ -641,16 +764,18 @@ class Model_SQ_Frontend {
|
|
641 |
* @return string
|
642 |
*/
|
643 |
private function getCopyright() {
|
644 |
-
$
|
|
|
|
|
645 |
if (!$name) {
|
646 |
$name = $this->meta['blogname'];
|
647 |
}
|
648 |
|
649 |
if ($name <> '') {
|
650 |
-
|
651 |
}
|
652 |
|
653 |
-
return
|
654 |
}
|
655 |
|
656 |
/**
|
@@ -659,24 +784,18 @@ class Model_SQ_Frontend {
|
|
659 |
* @return string
|
660 |
*/
|
661 |
private function getGooglePlusMeta() {
|
|
|
662 |
$author = SQ_Tools::$options['sq_google_plus'];
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
$author = $this->meta['blogname'];
|
667 |
-
} elseif (strpos($author, 'plus.google.com') === false && is_numeric($author)) {
|
668 |
-
$author = 'https://plus.google.com/' . $author . '/posts';
|
669 |
}
|
670 |
|
671 |
-
if ($
|
672 |
-
|
673 |
-
} else {
|
674 |
-
if (is_single() && !class_exists('ABH_Classes_ObjController')) {
|
675 |
-
return '<link rel="author" href="' . $author . '" />' . "\n";
|
676 |
-
}
|
677 |
}
|
678 |
|
679 |
-
return
|
680 |
}
|
681 |
|
682 |
/**
|
@@ -685,24 +804,27 @@ class Model_SQ_Frontend {
|
|
685 |
* @return string
|
686 |
*/
|
687 |
private function getFavicon() {
|
688 |
-
|
689 |
-
$str = '';
|
690 |
$rnd = '';
|
691 |
|
692 |
-
if (
|
693 |
-
|
694 |
-
$rnd = '?ver=' . base64_encode(SQ_Tools::$options['favicon_tmp']);
|
695 |
-
}
|
696 |
}
|
697 |
|
698 |
-
|
|
|
|
|
|
|
|
|
|
|
699 |
|
700 |
-
|
701 |
-
|
702 |
-
|
703 |
-
|
|
|
704 |
}
|
705 |
-
return $
|
706 |
}
|
707 |
|
708 |
/**
|
@@ -712,22 +834,19 @@ class Model_SQ_Frontend {
|
|
712 |
*/
|
713 |
private function getLanguage() {
|
714 |
$meta = '';
|
715 |
-
|
716 |
-
|
717 |
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
}
|
722 |
}
|
723 |
|
724 |
-
$language = get_bloginfo('language');
|
725 |
-
|
726 |
if ($language <> '') {
|
727 |
-
$meta .= sprintf("<meta name=\"language\" content=\"%s\" />", $language) . "\n";
|
728 |
}
|
729 |
|
730 |
-
return $meta;
|
731 |
}
|
732 |
|
733 |
/**
|
@@ -736,35 +855,32 @@ class Model_SQ_Frontend {
|
|
736 |
* @return string
|
737 |
*/
|
738 |
private function getDublinCore() {
|
739 |
-
global $wp_query;
|
740 |
$date = null;
|
741 |
$meta = '';
|
742 |
|
743 |
-
$name = $this->
|
744 |
if (!$name) {
|
745 |
$name = $this->meta['blogname'];
|
746 |
}
|
747 |
|
748 |
if ($name <> '') {
|
749 |
-
$meta .= sprintf("<meta name=\"
|
750 |
}
|
751 |
|
752 |
-
$meta .= sprintf('<meta name="
|
753 |
-
$meta .= sprintf('<meta name="
|
754 |
|
755 |
if ($this->isHomePage()) {
|
756 |
-
$date = date('Y-m-d', strtotime(get_lastpostmodified()));
|
757 |
-
} elseif (is_single()) {
|
758 |
$date = date('Y-m-d', strtotime($this->post->post_date));
|
759 |
}
|
760 |
|
761 |
-
if ($date) {
|
762 |
-
$meta .= sprintf("<meta name=\"
|
763 |
-
|
764 |
-
$meta .= sprintf("<meta name=\"DC.date.issued\" content=\"%s\" />", $date) . "\n";
|
765 |
}
|
766 |
|
767 |
-
return $meta;
|
768 |
}
|
769 |
|
770 |
/**
|
@@ -773,13 +889,15 @@ class Model_SQ_Frontend {
|
|
773 |
* @return string
|
774 |
*/
|
775 |
private function getXMLSitemap() {
|
776 |
-
$
|
|
|
|
|
777 |
|
778 |
if ($xml_url <> '') {
|
779 |
-
|
780 |
}
|
781 |
|
782 |
-
return
|
783 |
}
|
784 |
|
785 |
/**
|
@@ -790,7 +908,7 @@ class Model_SQ_Frontend {
|
|
790 |
private function getGoogleWT() {
|
791 |
$sq_google_wt = SQ_Tools::$options['sq_google_wt'];
|
792 |
|
793 |
-
if (
|
794 |
return sprintf("<meta name=\"google-site-verification\" content=\"%s\" />", $sq_google_wt) . "\n";
|
795 |
}
|
796 |
|
@@ -808,12 +926,10 @@ class Model_SQ_Frontend {
|
|
808 |
if ($sq_google_analytics <> '') {
|
809 |
SQ_ObjController::getController('SQ_DisplayController', false)
|
810 |
->loadMedia('https://www.google-analytics.com/analytics.js');
|
811 |
-
return sprintf("
|
812 |
-
<script>
|
813 |
//<![CDATA[
|
814 |
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
|
815 |
-
ga('create', '%s', 'auto');
|
816 |
-
ga('send', 'pageview');
|
817 |
//]]>
|
818 |
</script>", $sq_google_analytics) . "\n";
|
819 |
}
|
@@ -829,7 +945,7 @@ class Model_SQ_Frontend {
|
|
829 |
private function getFacebookIns() {
|
830 |
$sq_facebook_insights = SQ_Tools::$options ['sq_facebook_insights'];
|
831 |
|
832 |
-
if (
|
833 |
return sprintf("<meta property=\"fb:admins\" content=\"%s\" />", $sq_facebook_insights) . "\n";
|
834 |
}
|
835 |
|
@@ -844,7 +960,7 @@ class Model_SQ_Frontend {
|
|
844 |
private function getPinterest() {
|
845 |
$sq_pinterest = SQ_Tools::$options['sq_pinterest'];
|
846 |
|
847 |
-
if (
|
848 |
return sprintf("<meta name=\"p:domain_verify\" content=\"%s\" />", $sq_pinterest) . "\n";
|
849 |
}
|
850 |
|
@@ -859,7 +975,7 @@ class Model_SQ_Frontend {
|
|
859 |
private function getAlexaT() {
|
860 |
$sq_alexa = SQ_Tools::$options['sq_alexa'];
|
861 |
|
862 |
-
if (
|
863 |
return sprintf("<meta name=\"alexaVerifyID\" content=\"%s\" />", $sq_alexa) . "\n";
|
864 |
}
|
865 |
|
@@ -874,14 +990,96 @@ class Model_SQ_Frontend {
|
|
874 |
private function getBingWT() {
|
875 |
$sq_bing_wt = SQ_Tools::$options['sq_bing_wt'];
|
876 |
|
877 |
-
if (
|
878 |
return sprintf("<meta name=\"msvalidate.01\" content=\"%s\" />", $sq_bing_wt) . "\n";
|
879 |
}
|
880 |
|
881 |
return false;
|
882 |
}
|
883 |
|
884 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
885 |
* ******************************************************************** */
|
886 |
|
887 |
/**
|
@@ -889,7 +1087,7 @@ class Model_SQ_Frontend {
|
|
889 |
*
|
890 |
* @return string
|
891 |
*/
|
892 |
-
|
893 |
global $wp_query;
|
894 |
$post = null;
|
895 |
$title = '';
|
@@ -921,9 +1119,7 @@ class Model_SQ_Frontend {
|
|
921 |
}
|
922 |
}
|
923 |
|
924 |
-
return
|
925 |
-
|
926 |
-
$title;
|
927 |
}
|
928 |
|
929 |
/**
|
@@ -979,11 +1175,11 @@ class Model_SQ_Frontend {
|
|
979 |
*
|
980 |
* @return array
|
981 |
*/
|
982 |
-
|
983 |
global $wp_query;
|
984 |
|
985 |
-
$this->
|
986 |
-
if ($this->
|
987 |
return;
|
988 |
}
|
989 |
|
@@ -1006,25 +1202,13 @@ class Model_SQ_Frontend {
|
|
1006 |
}
|
1007 |
}
|
1008 |
|
1009 |
-
if (count($keywords) <= $this->
|
1010 |
if ($advkeywords = $this->getAdvancedMeta($post->ID, 'keywords')) {
|
1011 |
$keywords[] = SQ_Tools::i18n($advkeywords);
|
1012 |
-
} else {
|
1013 |
-
|
1014 |
-
$density = $this->calcDensity(strip_tags($post->post_content), $post->post_title, $this->description);
|
1015 |
-
if (is_array($density)) {
|
1016 |
-
if (is_array($keywords) && is_array($density)) {
|
1017 |
-
$keywords = array_merge($keywords, $density);
|
1018 |
-
} else {
|
1019 |
-
if (is_array($density)) {
|
1020 |
-
$keywords = $density;
|
1021 |
-
}
|
1022 |
-
}
|
1023 |
-
}
|
1024 |
}
|
1025 |
}
|
1026 |
-
if (sizeof($keywords) > $this->
|
1027 |
-
$keywords = array_slice($keywords, 0, $this->
|
1028 |
}
|
1029 |
} else {
|
1030 |
if (is_404()) {
|
@@ -1044,19 +1228,11 @@ class Model_SQ_Frontend {
|
|
1044 |
}
|
1045 |
}
|
1046 |
|
1047 |
-
if (
|
1048 |
-
|
1049 |
-
$more_keywords = $this->calcDensity(strip_tags($post->post_content), $post->post_title, $this->description);
|
1050 |
-
|
1051 |
-
if (is_array($more_keywords) && is_array($more_keywords)) {
|
1052 |
-
$keywords = array_merge($keywords, $more_keywords);
|
1053 |
-
}
|
1054 |
-
}
|
1055 |
-
} if (sizeof($keywords) > $this->max_keywrods) {
|
1056 |
-
$keywords = array_slice($keywords, 0, $this->max_keywrods);
|
1057 |
}
|
1058 |
}
|
1059 |
-
if (count($keywords) <= $this->
|
1060 |
foreach ($wp_query->posts as $post) {
|
1061 |
$id = (is_attachment()) ? ($post->post_parent) : ($post->ID);
|
1062 |
|
@@ -1089,123 +1265,7 @@ class Model_SQ_Frontend {
|
|
1089 |
$keywords[] = SQ_Tools::i18n($advkeywords);
|
1090 |
}
|
1091 |
|
1092 |
-
return $this->getUniqueKeywords(
|
1093 |
-
$keywords);
|
1094 |
-
}
|
1095 |
-
|
1096 |
-
/**
|
1097 |
-
* Calculate the keyword density from blog content
|
1098 |
-
*
|
1099 |
-
* @return array
|
1100 |
-
*/
|
1101 |
-
private function calcDensity($text, $title = '', $description = '') {
|
1102 |
-
$keywords = array();
|
1103 |
-
$text = $title . '. ' . $text;
|
1104 |
-
if (function_exists('preg_replace')) {
|
1105 |
-
$text = preg_replace('/[^a-zA-Z0-9-.]/', ' ', $text);
|
1106 |
-
}
|
1107 |
-
|
1108 |
-
$title = explode(" ", $title);
|
1109 |
-
$description = explode(" ", $description);
|
1110 |
-
$words = explode(" ", strtolower($text));
|
1111 |
-
$phrases = $this->searchPhrase(strtolower($text));
|
1112 |
-
|
1113 |
-
$common_words = "a,i,he,she,it,and,me,my,you,the,tags,hash,that,this,they,their";
|
1114 |
-
$common_words = strtolower($common_words);
|
1115 |
-
$common_words = explode(",", $common_words);
|
1116 |
-
// Get keywords
|
1117 |
-
$words_sum = 0;
|
1118 |
-
foreach ($words as $value) {
|
1119 |
-
$common = false;
|
1120 |
-
$value = $this->trimReplace($value);
|
1121 |
-
if (strlen($value) >= 3) {
|
1122 |
-
foreach ($common_words as $common_word) {
|
1123 |
-
if ($common_word == $value) {
|
1124 |
-
$common = true;
|
1125 |
-
}
|
1126 |
-
} if ($common != true) {
|
1127 |
-
if (!preg_match("/http/i", $value) && !preg_match("/mailto:/i", $value)) {
|
1128 |
-
$keywords[] = SQ_Tools::i18n($value);
|
1129 |
-
$words_sum++;
|
1130 |
-
}
|
1131 |
-
}
|
1132 |
-
}
|
1133 |
-
}
|
1134 |
-
|
1135 |
-
$results = $results1 = $results2 = array();
|
1136 |
-
if (is_array($keywords) && count($keywords) > 0) {
|
1137 |
-
// Do some maths and write array
|
1138 |
-
$keywords = array_count_values($keywords);
|
1139 |
-
arsort($keywords);
|
1140 |
-
|
1141 |
-
if (sizeof($keywords) > 10) {
|
1142 |
-
$keywords = array_slice($keywords, 0, 10);
|
1143 |
-
}
|
1144 |
-
|
1145 |
-
$phraseId = 0;
|
1146 |
-
foreach ($keywords as $key => $value) {
|
1147 |
-
$percent = 100 / $words_sum * $value;
|
1148 |
-
if ($percent > 1 && in_array($key, $title)) {
|
1149 |
-
foreach ($phrases as $phrase => $count) {
|
1150 |
-
if (strpos($phrase, $key) !== false) {
|
1151 |
-
$results1[] = trim($key);
|
1152 |
-
$results2[] = $phrase;
|
1153 |
-
}
|
1154 |
-
}
|
1155 |
-
}
|
1156 |
-
|
1157 |
-
$results = array_merge($results2, $results1);
|
1158 |
-
}
|
1159 |
-
if (sizeof($keywords) > 4) {
|
1160 |
-
$results = array_slice($results, 0, 4);
|
1161 |
-
}
|
1162 |
-
}
|
1163 |
-
// Return array
|
1164 |
-
return $results;
|
1165 |
-
}
|
1166 |
-
|
1167 |
-
public function searchPhrase($text) {
|
1168 |
-
$words = explode(".", strtolower($text));
|
1169 |
-
//print_r($words);
|
1170 |
-
$frequencies = array();
|
1171 |
-
foreach ($words as $str) {
|
1172 |
-
$phrases = $this->twoWordPhrases($str);
|
1173 |
-
|
1174 |
-
foreach ($phrases as $phrase) {
|
1175 |
-
$key = join(' ', $phrase);
|
1176 |
-
if (!isset($frequencies[$key])) {
|
1177 |
-
$frequencies[$key] = 0;
|
1178 |
-
}
|
1179 |
-
$frequencies[$key] ++;
|
1180 |
-
}
|
1181 |
-
} arsort($frequencies);
|
1182 |
-
if (sizeof($frequencies) >
|
1183 |
-
10) {
|
1184 |
-
$frequencies = array_slice($frequencies, 0, 10);
|
1185 |
-
} return $frequencies;
|
1186 |
-
}
|
1187 |
-
|
1188 |
-
public function twoWordPhrases($str) {
|
1189 |
-
$words = preg_split('#\s+#', $str, -1, PREG_SPLIT_NO_EMPTY);
|
1190 |
-
|
1191 |
-
$phrases = array();
|
1192 |
-
if (count($words) > 2) {
|
1193 |
-
foreach (range(0, count($words) - 2) as $offset) {
|
1194 |
-
$phrases[] = array_slice($words, $offset, 2);
|
1195 |
-
}
|
1196 |
-
}
|
1197 |
-
return $phrases;
|
1198 |
-
}
|
1199 |
-
|
1200 |
-
/**
|
1201 |
-
* Get the newlines out
|
1202 |
-
*
|
1203 |
-
* @return string
|
1204 |
-
*/
|
1205 |
-
private function trimReplace($string) {
|
1206 |
-
$string = trim($string);
|
1207 |
-
return (string) str_replace(array("\r", "\r\n",
|
1208 |
-
"\n"), '', $string);
|
1209 |
}
|
1210 |
|
1211 |
/**
|
@@ -1215,11 +1275,16 @@ class Model_SQ_Frontend {
|
|
1215 |
*/
|
1216 |
public function getCanonicalUrl() {
|
1217 |
global $wp_query;
|
1218 |
-
|
|
|
|
|
|
|
|
|
|
|
1219 |
return false;
|
1220 |
}
|
1221 |
|
1222 |
-
$haspost = count($wp_query->posts) > 0;
|
1223 |
$has_ut = function_exists('user_trailingslashit');
|
1224 |
|
1225 |
if (get_query_var('m') <> '') {
|
@@ -1246,18 +1311,7 @@ class Model_SQ_Frontend {
|
|
1246 |
$link = get_permalink($post->ID);
|
1247 |
$link = $this->getPaged($link);
|
1248 |
} elseif (is_author() && $haspost) {
|
1249 |
-
|
1250 |
-
if ($wp_version >= '2') {
|
1251 |
-
$author = get_userdata(get_query_var('author'));
|
1252 |
-
if ($author === false) {
|
1253 |
-
return false;
|
1254 |
-
}
|
1255 |
-
$link = get_author_posts_url($author->ID, $author->user_nicename);
|
1256 |
-
} else {
|
1257 |
-
global $cache_userdata;
|
1258 |
-
$userid = get_query_var('author');
|
1259 |
-
$link = get_author_posts_url($userid, $cache_userdata[$userid]->user_nicename);
|
1260 |
-
}
|
1261 |
} elseif (is_category() && $haspost) {
|
1262 |
$link = $this->getPaged(get_category_link(get_query_var('cat')));
|
1263 |
} else if (is_tag() && $haspost) {
|
@@ -1292,27 +1346,26 @@ class Model_SQ_Frontend {
|
|
1292 |
return false;
|
1293 |
}
|
1294 |
|
1295 |
-
return $link;
|
1296 |
}
|
1297 |
|
1298 |
-
public function
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
-
$author = get_userdata(
|
1304 |
-
|
1305 |
-
|
1306 |
-
}
|
1307 |
-
return get_author_posts_url($author->ID, $author->user_nicename);
|
1308 |
-
} else {
|
1309 |
-
global $cache_userdata;
|
1310 |
-
$userid = get_query_var('author');
|
1311 |
-
return
|
1312 |
|
1313 |
-
|
|
|
|
|
|
|
|
|
1314 |
}
|
1315 |
}
|
|
|
1316 |
return false;
|
1317 |
}
|
1318 |
|
@@ -1341,8 +1394,7 @@ class Model_SQ_Frontend {
|
|
1341 |
* @return bool
|
1342 |
*/
|
1343 |
private function checkFrontPage() {
|
1344 |
-
return is_page() && get_option('show_on_front') == 'page' && $this->post->ID ==
|
1345 |
-
get_option('page_on_front');
|
1346 |
}
|
1347 |
|
1348 |
/**
|
@@ -1351,24 +1403,7 @@ class Model_SQ_Frontend {
|
|
1351 |
* @return bool
|
1352 |
*/
|
1353 |
private function checkPostsPage() {
|
1354 |
-
return is_home() && get_option('show_on_front') == 'page' && $this->post->ID ==
|
1355 |
-
get_option('page_for_posts');
|
1356 |
-
}
|
1357 |
-
|
1358 |
-
/**
|
1359 |
-
* Check if posts in home page
|
1360 |
-
*
|
1361 |
-
* @return bool
|
1362 |
-
*/
|
1363 |
-
private function checkHomePosts() {
|
1364 |
-
global $wp_query;
|
1365 |
-
|
1366 |
-
if (!$this->checkPostsPage()) {
|
1367 |
-
return is_home() && (int) $wp_query->post_count > 0 &&
|
1368 |
-
isset($wp_query->posts) && is_array($wp_query->posts);
|
1369 |
-
} else {
|
1370 |
-
return false;
|
1371 |
-
}
|
1372 |
}
|
1373 |
|
1374 |
public function truncate($text, $min, $max) {
|
@@ -1384,8 +1419,7 @@ class Model_SQ_Frontend {
|
|
1384 |
}
|
1385 |
}
|
1386 |
$text = substr($text, 0, $max);
|
1387 |
-
return trim(
|
1388 |
-
stripcslashes($text));
|
1389 |
}
|
1390 |
|
1391 |
public function _truncate($text) {
|
@@ -1394,9 +1428,8 @@ class Model_SQ_Frontend {
|
|
1394 |
$text = str_replace(']]>', ']]>', $text);
|
1395 |
$text = @preg_replace('|\[(.+?)\](.+?\[/\\1\])?|s', '', $text);
|
1396 |
$text = strip_tags($text);
|
1397 |
-
return
|
1398 |
|
1399 |
-
|
1400 |
}
|
1401 |
|
1402 |
/**
|
@@ -1418,8 +1451,8 @@ class Model_SQ_Frontend {
|
|
1418 |
|
1419 |
if (is_array($all) && count($all) > 0) {
|
1420 |
$all = array_unique($all);
|
1421 |
-
if (sizeof($all) >
|
1422 |
-
$all = array_slice($all, 0,
|
1423 |
}
|
1424 |
|
1425 |
return implode(',', $all);
|
@@ -1444,31 +1477,30 @@ class Model_SQ_Frontend {
|
|
1444 |
return '';
|
1445 |
}
|
1446 |
|
1447 |
-
//check yoast
|
1448 |
switch ($meta) {
|
1449 |
case 'title':
|
1450 |
-
$field = '
|
1451 |
break;
|
1452 |
case 'description':
|
1453 |
-
$field = '
|
1454 |
break;
|
1455 |
case 'keyword':
|
1456 |
-
$field = '
|
1457 |
break;
|
1458 |
case 'ogimage':
|
1459 |
-
$field = '
|
1460 |
break;
|
1461 |
default:
|
1462 |
-
$field = '
|
1463 |
}
|
1464 |
|
1465 |
if ($field <> '' && isset($this->meta[$post_id][$field])) {
|
1466 |
return $this->meta[$post_id][$field];
|
1467 |
}
|
1468 |
|
1469 |
-
// Get the custom Squirrly meta
|
1470 |
-
//////////////////////////////////////////
|
1471 |
-
$fields = array('
|
1472 |
|
1473 |
$sql = "SELECT `meta_key`, `meta_value`
|
1474 |
FROM `" . $wpdb->postmeta . "`
|
@@ -1511,7 +1543,7 @@ class Model_SQ_Frontend {
|
|
1511 |
return '';
|
1512 |
}
|
1513 |
|
1514 |
-
//check yoast
|
1515 |
switch ($meta) {
|
1516 |
case 'title':
|
1517 |
$field = '_yoast_wpseo_title';
|
@@ -1559,4 +1591,47 @@ class Model_SQ_Frontend {
|
|
1559 |
return false;
|
1560 |
}
|
1561 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1562 |
}
|
2 |
|
3 |
class Model_SQ_Frontend {
|
4 |
|
5 |
+
/** @var object Current post */
|
6 |
+
private $post;
|
7 |
+
private $post_type;
|
8 |
+
|
9 |
/** @var canonical link */
|
10 |
private $url;
|
11 |
+
private $author;
|
12 |
|
13 |
/** @var string */
|
14 |
private $title;
|
32 |
private $min_description_length = 70;
|
33 |
|
34 |
/** @var integer */
|
35 |
+
private $max_keywords = 8;
|
|
|
|
|
|
|
|
|
36 |
|
37 |
/** @var array Meta custom content */
|
38 |
private $meta = array();
|
39 |
|
40 |
public function __construct() {
|
41 |
SQ_ObjController::getController('SQ_Tools', false);
|
42 |
+
$this->post_type = SQ_Tools::$options['sq_post_types'];
|
43 |
}
|
44 |
|
45 |
/** @var meta from other plugins */
|
49 |
* @return string
|
50 |
*/
|
51 |
public function setStart() {
|
52 |
+
return "\n\n<!-- Squirrly SEO Plugin " . SQ_VERSION . ", visit: http://www.squirrly.co/ -->\n";
|
53 |
}
|
54 |
|
55 |
/**
|
57 |
* @return string
|
58 |
*/
|
59 |
public function setEnd() {
|
60 |
+
return "<!-- /Squirrly SEO Plugin -->\n\n";
|
61 |
}
|
62 |
|
63 |
/* * *****USE BUFFER****** */
|
104 |
* @return string
|
105 |
*/
|
106 |
private function setMetaInBuffer($buffer) {
|
107 |
+
global $post;
|
108 |
+
|
109 |
+
//if the title is already shown
|
110 |
+
if (isset($this->title)) {
|
111 |
return $buffer;
|
112 |
}
|
113 |
|
114 |
//get the post from shop if woocommerce is installed
|
115 |
if (function_exists('is_shop') && is_shop()) {
|
116 |
$this->post = get_post(woocommerce_get_page_id('shop'));
|
117 |
+
} elseif (isset($post->ID)) {
|
118 |
$this->post = get_post($post->ID);
|
119 |
}
|
120 |
|
121 |
+
if ($this->isHomePage() || is_single() || is_preview() || is_page() || is_archive() || is_author() || is_category() || is_tag() || is_search() || in_array(get_post_type(), $this->post_type)) {
|
122 |
preg_match("/<head[^>]*>/i", $buffer, $out);
|
123 |
if (!empty($out)) {
|
124 |
+
$this->title = $this->getCustomTitle();
|
125 |
+
if (isset($this->title) && $this->title <> '') {
|
126 |
+
//replace the existing title
|
127 |
+
$buffer = @preg_replace('/<title[^<>]*>([^<>]*)<\/title>/si', sprintf("<title>%s</title>", str_replace('$', '\$', $this->title)), $buffer, 1, $count);
|
128 |
if ($count == 0) { //if no title found
|
129 |
+
$buffer .= sprintf("<title>%s</title>", $this->title) . "\n"; //add the title
|
130 |
+
}
|
131 |
}
|
132 |
|
133 |
+
if ((SQ_Tools::$options['sq_auto_description'] == 1 && $this->isHomePage()) || !$this->isHomePage()) {
|
134 |
+
//clear the existing description and keywords
|
135 |
+
$buffer = @preg_replace('/<meta[^>]*(name|property)=\"(description|keywords)\"[^>]*content=["\'][^"\'>]*["\'][^>]*>[\n\r]*/si', '', $buffer, -1);
|
|
|
136 |
}
|
137 |
+
if (SQ_Tools::$options['sq_auto_facebook'] == 1) {
|
138 |
+
$buffer = @preg_replace('/<meta[^>]*(name|property)=["\'](og:|article:|twitter:)[^"\'>]+["\'][^>]*content=["\'][^"\'>]+["\'][^>]*>[\n\r]*/si', '', $buffer, -1);
|
139 |
+
}
|
140 |
+
if (SQ_Tools::$options['sq_auto_twitter'] == 1) {
|
141 |
+
$buffer = @preg_replace('/<meta[^>]*(name|property)=["\'](twitter:)[^"\'>]+["\'][^>]*content=["\'][^"\'>]+["\'][^>]*>[\n\r]*/si', '', $buffer, -1);
|
142 |
}
|
143 |
}
|
144 |
}
|
153 |
* @return string
|
154 |
*/
|
155 |
public function setHeader() {
|
156 |
+
global $post;
|
157 |
$ret = '';
|
158 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
|
160 |
if (!function_exists('preg_replace')) {
|
161 |
return $ret;
|
163 |
|
164 |
if ($this->isHomePage() || is_single() || is_page() || is_singular() || is_preview() || is_archive() || is_category() || is_author() || is_tag() || is_search() || in_array(get_post_type(), $this->post_type)) {
|
165 |
|
166 |
+
if (!isset($this->post)) {
|
167 |
+
//get the post from shop if woocommerce is installed
|
168 |
+
if (function_exists('is_shop') && is_shop()) {
|
169 |
+
$this->post = get_post(woocommerce_get_page_id('shop'));
|
170 |
+
} elseif (isset($post->ID)) {
|
171 |
+
$this->post = get_post($post->ID);
|
172 |
+
}
|
173 |
+
}
|
174 |
+
|
175 |
+
$this->meta['blogname'] = get_bloginfo('name');
|
176 |
+
|
177 |
/* Meta setting */
|
178 |
+
$this->url = $this->getCanonicalUrl();
|
179 |
+
$this->title = $this->getCustomTitle();
|
180 |
+
|
181 |
+
/* Get the thumb image from post */
|
182 |
+
$images = $this->getImagesFromContent();
|
183 |
+
if (isset($images[0])) {
|
184 |
+
$this->thumb_image = $images[0]['src'];
|
185 |
+
}
|
186 |
|
187 |
//Add description in homepage if is set or add description in other pages if is not home page
|
188 |
if ((SQ_Tools::$options['sq_auto_description'] == 1 && $this->isHomePage()) || !$this->isHomePage()) {
|
205 |
}
|
206 |
|
207 |
if (SQ_Tools::$options['sq_auto_meta'] == 1) {
|
208 |
+
$ret .= "\n";
|
209 |
$ret .= $this->getGooglePlusMeta();
|
210 |
$ret .= $this->getLanguage();
|
211 |
+
$ret .= $this->getCopyright();
|
212 |
$ret .= $this->getDublinCore();
|
213 |
}
|
214 |
if (SQ_Tools::$options['sq_auto_facebook'] == 1) {
|
216 |
}
|
217 |
|
218 |
if (SQ_Tools::$options['sq_auto_twitter'] == 1) {
|
219 |
+
$ret .= $this->getTwitterCard() . "\n";
|
220 |
}
|
221 |
/* SEO optimizer tool */
|
222 |
$ret .= $this->getGoogleWT();
|
224 |
$ret .= $this->getFacebookIns();
|
225 |
$ret .= $this->getBingWT();
|
226 |
$ret .= $this->getPinterest();
|
|
|
227 |
$ret .= $this->getAlexaT();
|
228 |
|
229 |
+
if (SQ_Tools::$options['sq_auto_jsonld'] == 1) {
|
230 |
+
$ret .= $this->getJsonLD() . "\n";
|
231 |
+
}
|
232 |
+
|
233 |
$ret .= $this->setEnd();
|
234 |
}
|
235 |
return $ret;
|
236 |
}
|
237 |
|
238 |
+
private function getTwitterCard() {
|
239 |
$meta = "\n";
|
240 |
|
241 |
//Title and Description is required
|
243 |
return;
|
244 |
}
|
245 |
|
246 |
+
$sq_twitter_creator = SQ_Tools::$options['sq_twitter_account'];
|
247 |
+
$sq_twitter_site = SQ_Tools::$options['sq_twitter_account'];
|
|
|
|
|
|
|
|
|
|
|
248 |
|
249 |
if (!isset($this->thumb_image) || $this->thumb_image == '') {
|
250 |
+
$images = $this->getImagesFromContent();
|
251 |
+
if (isset($images[0])) {
|
252 |
+
$this->thumb_image = $images[0]['src'];
|
253 |
+
}
|
254 |
}
|
255 |
|
256 |
$meta .= '<meta name="twitter:card" content="summary" />' . "\n";
|
257 |
|
258 |
+
$meta .= (($sq_twitter_creator <> '') ? sprintf('<meta name="twitter:creator" content="%s" />', $this->getTwitterAccount($sq_twitter_creator)) . "\n" : '');
|
259 |
+
$meta .= (($sq_twitter_site <> '') ? sprintf('<meta name="twitter:site" content="%s" />', $this->getTwitterAccount($sq_twitter_creator)) . "\n" : '');
|
260 |
$meta .= sprintf('<meta name="twitter:url" content="%s">', $this->url) . "\n";
|
261 |
$meta .= sprintf('<meta name="twitter:title" content="%s">', $this->title) . "\n";
|
262 |
$meta .= (($this->description <> '') ? sprintf('<meta name="twitter:description" content="%s">', $this->description . ' | ' . $this->meta['blogname']) . "\n" : '');
|
263 |
$meta .= ((isset($this->thumb_image) && $this->thumb_image <> '') ? sprintf('<meta name="twitter:image" content="%s">', $this->thumb_image) . "\n" : '');
|
264 |
$meta .= (($this->meta['blogname'] <> '') ? sprintf('<meta name="twitter:domain" content="%s">', $this->meta['blogname']) . "\n" : '');
|
265 |
|
266 |
+
return apply_filters('sq_twitter_card_meta', $meta);
|
267 |
+
}
|
268 |
+
|
269 |
+
/**
|
270 |
+
* Get the twitter account from url
|
271 |
+
*
|
272 |
+
* @param string $account
|
273 |
+
* @return string | false
|
274 |
+
*/
|
275 |
+
public function getTwitterAccount($account) {
|
276 |
+
if ($account <> '') {
|
277 |
+
if (strpos($account, 'twitter.com') !== false) {
|
278 |
+
preg_match('/twitter.com\/([@1-9a-z_-]+)/i', $account, $result);
|
279 |
+
if (isset($result[1]) && !empty($result[1])) {
|
280 |
+
return '@' . str_replace('@', '', $result[1]);
|
281 |
+
}
|
282 |
+
} else {
|
283 |
+
preg_match('/([@1-9a-z_-]+)/i', $account, $result);
|
284 |
+
if (isset($result[1]) && !empty($result[1])) {
|
285 |
+
return '@' . str_replace('@', '', $result[1]);
|
286 |
+
}
|
287 |
+
}
|
288 |
+
} else {
|
289 |
+
return '';
|
290 |
+
}
|
291 |
+
return false;
|
292 |
}
|
293 |
|
294 |
/**
|
298 |
private function getOpenGraph() {
|
299 |
$meta = "\n";
|
300 |
$image = '';
|
|
|
301 |
|
|
|
302 |
if (!isset($this->thumb_image) || $this->thumb_image == '') {
|
303 |
+
$images = $this->getImagesFromContent();
|
304 |
+
if (isset($images[0])) {
|
305 |
+
$this->thumb_image = $images[0]['src'];
|
|
|
306 |
}
|
307 |
}
|
308 |
|
309 |
if (!isset($this->thumb_video) || $this->thumb_video == '') {
|
310 |
+
$videos = $this->getVideosFromContent();
|
311 |
+
if (isset($videos[0])) {
|
312 |
+
$this->thumb_video = $videos[0];
|
313 |
+
}
|
314 |
}
|
315 |
|
316 |
+
if ($image == '' && $this->url == '') {
|
317 |
return;
|
318 |
}
|
319 |
//GET THE URL
|
320 |
+
$meta .= sprintf('<meta property="og:url" content="%s" />', apply_filters('sq_open_graph_url', $this->url)) . "\n";
|
321 |
+
if (isset($this->thumb_image) && $this->thumb_image <> '') {
|
322 |
$meta .= sprintf('<meta property="og:image" content="%s" />', $this->thumb_image) . "\n";
|
323 |
+
$meta .= sprintf('<meta property="og:image:width" content="%s" />', 500) . "\n";
|
324 |
}
|
325 |
|
326 |
if ((isset($this->thumb_video) && $this->thumb_video <> '')) {
|
329 |
|
330 |
$meta .= sprintf('<meta property="og:title" content="%s" />', $this->title) . "\n";
|
331 |
$meta .= sprintf('<meta property="og:description" content="%s" />', $this->description) . "\n";
|
332 |
+
$meta .= (($this->meta['blogname'] <> '') ? sprintf('<meta property="og:site_name" content="%s" />', apply_filters('sq_open_graph_site', $this->meta['blogname'])) . "\n" : '');
|
333 |
|
334 |
if (is_author()) {
|
335 |
$author = get_queried_object();
|
338 |
$meta .= sprintf('<meta property="profile:first_name" content="%s" />', get_the_author_meta('first_name', $author->ID)) . "\n";
|
339 |
$meta .= sprintf('<meta property="profile:last_name" content="%s" />', get_the_author_meta('last_name', $author->ID)) . "\n";
|
340 |
} elseif (!$this->isHomePage() && (is_single() || is_page())) {
|
|
|
341 |
if ((isset($this->thumb_video) && $this->thumb_video <> '')) {
|
342 |
+
$meta .= sprintf('<meta property="og:type" content="%s" />', 'video') . "\n";
|
343 |
} else {
|
344 |
+
$meta .= sprintf('<meta property="og:type" content="%s" />', 'article') . "\n";
|
345 |
$meta .= sprintf('<meta property="article:published_time" content="%s" />', get_the_time('c', $this->post->ID)) . "\n";
|
346 |
if ($this->keywords <> '') {
|
347 |
$keywords = preg_split('/[,]+/', $this->keywords);
|
356 |
$meta .= sprintf('<meta property="og:type" content="%s" />', 'website') . "\n";
|
357 |
}
|
358 |
|
359 |
+
return apply_filters('sq_open_graph_meta', $meta);
|
360 |
}
|
361 |
|
362 |
/**
|
365 |
* @return string
|
366 |
*/
|
367 |
private function setCanonical() {
|
|
|
|
|
|
|
368 |
|
369 |
if ($this->url) {
|
370 |
remove_action('wp_head', 'rel_canonical');
|
380 |
$meta = "";
|
381 |
if (!$this->isHomePage()) {
|
382 |
if (get_previous_posts_link()) {
|
383 |
+
$meta .= sprintf('<link rel="prev" href="%s" />', apply_filters('sq_prev_link', get_pagenum_link($paged - 1))) . "\n";
|
384 |
}
|
385 |
if (get_next_posts_link()) {
|
386 |
+
$meta .= sprintf('<link rel="next" href="%s" />', apply_filters('sq_next_link', get_pagenum_link($paged + 1))) . "\n";
|
387 |
}
|
388 |
}
|
389 |
|
390 |
+
return (($meta <> '') ? apply_filters('sq_prevnext_meta', $meta) . "\n" : '');
|
|
|
391 |
}
|
392 |
|
393 |
/**
|
397 |
*/
|
398 |
public function getCustomTitle() {
|
399 |
$title = '';
|
400 |
+
$sep = ' | ';
|
401 |
+
|
402 |
+
if (isset($this->title)) {
|
403 |
+
return $this->title;
|
404 |
+
}
|
405 |
|
406 |
//If its a post/page
|
407 |
if (!$this->isHomePage()) {
|
408 |
//If is category
|
409 |
if (is_category()) { //for category
|
410 |
$category = get_category(get_query_var('cat'), false);
|
411 |
+
$title = $category->cat_name;
|
412 |
if ($title == '') {
|
413 |
+
$title = $this->grabTitleFromPost();
|
414 |
}
|
415 |
if (is_paged()) {
|
416 |
+
$title .= $sep . __('Page', _SQ_PLUGIN_NAME_) . " " . get_query_var('paged');
|
417 |
}
|
418 |
} elseif (is_author()) { //for author
|
|
|
|
|
419 |
if ($title == '') {
|
420 |
+
$title = $this->grabTitleFromPost() . $sep . ucfirst($this->getAuthor('display_name'));
|
421 |
}
|
422 |
if ($title == '') {
|
423 |
+
$title = __('About') . " " . ucfirst($this->getAuthor('display_name'));
|
424 |
}
|
425 |
if (is_paged()) {
|
426 |
+
$title .= $sep . __('Page', _SQ_PLUGIN_NAME_) . " " . get_query_var('paged');
|
427 |
}
|
428 |
} elseif (is_tag()) { //for tags
|
429 |
if (is_paged()) {
|
430 |
$tag = get_query_var('tag');
|
431 |
+
$title = ucfirst(str_replace('-', ' ', $tag)) . $sep . __('Page', _SQ_PLUGIN_NAME_) . " " . get_query_var('paged');
|
432 |
+
}
|
433 |
+
}elseif (is_archive()) { //for archive and products
|
434 |
+
if (isset($this->post) && isset($this->post->ID)) {
|
435 |
+
$title = $this->grabTitleFromPost($this->post->ID);
|
436 |
+
|
437 |
+
//if woocommerce is installed and is a product category
|
438 |
+
if (function_exists('is_product_category') && is_product_category()){
|
439 |
+
global $wp_query;
|
440 |
+
$cat = $wp_query->get_queried_object();
|
441 |
+
if (!empty($cat)){
|
442 |
+
$title .= $sep . $cat->name;
|
443 |
+
}
|
444 |
+
}else{
|
445 |
+
$cat = get_the_terms( $this->post->ID, 'category' );
|
446 |
+
if (!empty($cat)){
|
447 |
+
$title .= $sep . $cat[0]->name;
|
448 |
+
}
|
449 |
+
}
|
450 |
+
}
|
451 |
+
|
452 |
+
if (is_paged()) {
|
453 |
+
$title .= $sep . __('Page', _SQ_PLUGIN_NAME_) . " " . get_query_var('paged');
|
454 |
}
|
455 |
} elseif (is_single() || is_page() || is_singular() || in_array(get_post_type(), $this->post_type)) {
|
456 |
+
if (isset($this->post) && isset($this->post->ID)) {
|
457 |
+
//is a post page
|
458 |
+
$title = $this->grabTitleFromPost($this->post->ID);
|
459 |
+
|
460 |
+
//if woocommerce is installed and is a product
|
461 |
+
if (function_exists('is_product') && is_product()){
|
462 |
+
$cat = get_the_terms( $this->post->ID, 'product_cat' );
|
463 |
+
if (!empty($cat) && count($cat) > 1){
|
464 |
+
$title .= $sep . $cat[0]->name;
|
465 |
+
}
|
466 |
+
}
|
467 |
+
}
|
468 |
+
|
469 |
+
|
470 |
}
|
471 |
}
|
472 |
|
473 |
//If title then clear it and truncate it
|
474 |
if ($title <> '') {
|
475 |
+
$title = $this->truncate($title, $this->min_title_length, $this->max_title_length);
|
476 |
}
|
477 |
|
478 |
/* Check if is a predefined Title for home page */
|
481 |
|
482 |
//If the home page is a static page that has custom snippet
|
483 |
if (is_page() && isset($this->post) && isset($this->post->ID) && $this->getAdvancedMeta($this->post->ID, 'title') <> '') {
|
484 |
+
$title = $this->getAdvancedMeta($this->post->ID, 'title');
|
485 |
+
} elseif (SQ_Tools::$options['sq_fp_title'] <> '') {
|
486 |
+
$title = SQ_Tools::$options['sq_fp_title'];
|
487 |
} else {
|
488 |
+
$title = $this->grabTitleFromPost();
|
489 |
if ($title <> "" && $this->meta['blogname'] <> '') {
|
490 |
+
$title .= $sep . $this->meta ['blogname'];
|
491 |
}
|
492 |
}
|
493 |
}
|
494 |
|
495 |
+
return apply_filters('sq_title', $title);
|
496 |
+
}
|
497 |
|
498 |
+
public function clearTitle($title) {
|
499 |
+
if ($title <> '') {
|
500 |
+
$title = SQ_Tools::i18n(trim(esc_html(ent2ncr(strip_tags($title)))));
|
501 |
+
}
|
502 |
return $title;
|
503 |
}
|
504 |
|
505 |
/**
|
506 |
* Get the image from content
|
507 |
* @global type $wp_query
|
508 |
+
* @param integer $id Post ID
|
509 |
* @return type
|
510 |
*/
|
511 |
+
public function getImagesFromContent($id = null) {
|
512 |
+
$images = array();
|
513 |
+
if (isset($id)) {
|
514 |
+
$post = get_post($id);
|
515 |
+
} else {
|
516 |
+
$post = $this->post;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
517 |
}
|
518 |
|
519 |
if ($post && isset($post->ID)) {
|
520 |
+
if ($url = $this->getAdvancedMeta($post->ID, 'ogimage')) {
|
521 |
+
$images[] = array(
|
522 |
+
'src' => esc_url($url),
|
523 |
+
'title' => $this->clearTitle($this->grabTitleFromPost($post->ID)),
|
524 |
+
'description' => $this->clearDescription($this->grabDescriptionFromPost($post->ID)),
|
525 |
+
);
|
526 |
+
}
|
527 |
if (has_post_thumbnail($post->ID)) {
|
528 |
+
$attachment = get_post(get_post_thumbnail_id($post->ID));
|
529 |
+
$url = wp_get_attachment_image_src($attachment->ID, 'full');
|
530 |
+
$images[] = array(
|
531 |
+
'src' => esc_url($url[0]),
|
532 |
+
'title' => $this->clearTitle($attachment->post_title),
|
533 |
+
'description' => $this->clearDescription($attachment->post_excerpt),
|
534 |
+
);
|
535 |
+
}
|
536 |
+
if (isset($post->post_content)) {
|
537 |
preg_match('/<img[^>]*src="([^"]*)"[^>]*>/i', $post->post_content, $match);
|
|
|
|
|
|
|
538 |
|
539 |
+
if (!empty($match)) {
|
540 |
+
preg_match('/alt="([^"]*)"/i', $match[0], $alt);
|
|
|
541 |
|
542 |
+
if (strpos($match[1], '//') === false) {
|
543 |
+
$match[1] = get_bloginfo('url') . $match[1];
|
544 |
+
}
|
545 |
+
|
546 |
+
$images[] = array(
|
547 |
+
'src' => esc_url($match[1]),
|
548 |
+
'title' => $this->clearTitle(!empty($alt[1]) ? $alt[1] : ''),
|
549 |
+
'description' => '',
|
550 |
+
);
|
551 |
+
}
|
552 |
}
|
553 |
}
|
554 |
+
|
555 |
+
return $images;
|
556 |
}
|
557 |
|
558 |
/**
|
559 |
* Get the video from content
|
560 |
+
* @param integer $id Post ID
|
561 |
* @return type
|
562 |
*/
|
563 |
+
public function getVideosFromContent($id = null) {
|
564 |
+
$videos = array();
|
565 |
+
|
566 |
+
if (isset($id)) {
|
567 |
+
$post = get_post($id);
|
568 |
+
} else {
|
569 |
+
$post = $this->post;
|
570 |
}
|
571 |
|
572 |
+
if ($post && isset($post->ID)) {
|
573 |
+
if (isset($post->post_content)) {
|
574 |
+
preg_match('/(?:http(?:s)?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:(?:watch)?\?(?:.*&)?v(?:i)?=|(?:embed|v|vi|user)\/))([^\?&\"\'>\s]+)/si', $post->post_content, $match);
|
575 |
|
576 |
+
if (isset($match[0])) {
|
577 |
+
if (strpos($match[0], '//') !== false && strpos($match[0], 'http') === false) {
|
578 |
+
$match[0] = 'http:' . $match[0];
|
579 |
+
}
|
580 |
+
$videos[] = esc_url($match[0]);
|
581 |
}
|
|
|
582 |
|
583 |
+
preg_match('/src=["|\']([^"\']*(.mpg|.mpeg|.mp4|.mov|.wmv|.asf|.avi|.ra|.ram|.rm|.flv)["|\'])/i', $post->post_content, $match);
|
|
|
584 |
|
585 |
+
if (isset($match[1])) {
|
586 |
+
$videos[] = esc_url($match[1]);
|
587 |
+
}
|
588 |
+
}
|
589 |
}
|
590 |
|
591 |
+
return $videos;
|
|
|
|
|
|
|
|
|
|
|
|
|
592 |
}
|
593 |
|
594 |
/**
|
597 |
* @return string
|
598 |
*/
|
599 |
private function getCustomDescription() {
|
600 |
+
|
601 |
+
$sep = ' | ';
|
602 |
$description = '';
|
603 |
|
604 |
//If not homepage
|
606 |
//If is a category
|
607 |
if (is_category()) { //for categories
|
608 |
$category = get_category(get_query_var('cat'), false);
|
609 |
+
$description = $category->category_description;
|
610 |
if ($description == '') {
|
611 |
+
$description = $category->cat_name;
|
612 |
}
|
613 |
if ($description == '') {
|
614 |
$description = $this->grabDescriptionFromPost();
|
615 |
}
|
616 |
|
617 |
if (is_paged()) {
|
618 |
+
$description .= $sep . __('Page', _SQ_PLUGIN_NAME_) . " " . get_query_var('paged');
|
619 |
}
|
620 |
|
621 |
if ($this->isHomePage() && $description <> '') {
|
622 |
if ($this->meta['blogname'] <> '') {
|
623 |
+
$description .= $sep . $this->meta['blogname'];
|
624 |
}
|
625 |
}
|
626 |
+
|
627 |
} elseif (is_author()) { //for author
|
628 |
+
$description = $this->getAuthor('user_description');
|
629 |
if ($description == '') {
|
630 |
+
$description = $this->grabDescriptionFromPost() . $sep . $this->getAuthor('display_name');
|
|
|
631 |
}
|
632 |
if (is_paged()) {
|
633 |
+
$description .= $sep . __('Page', _SQ_PLUGIN_NAME_) . " " . get_query_var('paged');
|
634 |
}
|
635 |
} elseif (is_tag()) { //for tags
|
636 |
+
$description = tag_description();
|
637 |
if ($description == '') {
|
638 |
+
$tag = single_tag_title('', false);
|
639 |
+
$description = ucfirst($tag) . $sep . $this->grabDescriptionFromPost();
|
640 |
}
|
641 |
if (is_paged()) {
|
642 |
+
$description .= $sep . __('Page', _SQ_PLUGIN_NAME_) . " " . get_query_var('paged');
|
643 |
}
|
644 |
+
} elseif (is_archive()) { //for archive and products
|
645 |
+
|
646 |
if (isset($this->post) && isset($this->post->ID)) {
|
647 |
$description = $this->grabDescriptionFromPost($this->post->ID);
|
648 |
+
|
649 |
+
//if woocommerce is installed and is a product category
|
650 |
+
if (function_exists('is_product_category') && is_product_category()){
|
651 |
+
global $wp_query;
|
652 |
+
$cat = $wp_query->get_queried_object();
|
653 |
+
if (!empty($cat)){
|
654 |
+
$description .= $sep . $cat->name ;
|
655 |
+
}
|
656 |
+
|
657 |
+
}else{
|
658 |
+
$cat = get_the_terms( $this->post->ID, 'category' );
|
659 |
+
if (!empty($cat)){
|
660 |
+
$description .= $sep . $cat[0]->name;
|
661 |
+
}
|
662 |
+
}
|
663 |
+
|
664 |
+
}
|
665 |
+
|
666 |
+
if (is_paged()) {
|
667 |
+
$description .= $sep . __('Page', _SQ_PLUGIN_NAME_) . " " . get_query_var('paged');
|
668 |
+
}
|
669 |
+
} elseif (is_single() || is_page() || is_singular() || $this->checkPostsPage() || in_array(get_post_type(), $this->post_type)) {
|
670 |
+
if (isset($this->post) && isset($this->post->ID)) {
|
671 |
+
//is a post page
|
672 |
+
$description .= $this->grabDescriptionFromPost($this->post->ID);
|
673 |
+
|
674 |
+
//if woocommerce is installed and is a product
|
675 |
+
if (function_exists('is_product') && is_product()){
|
676 |
+
$cat = get_the_terms( $this->post->ID, 'product_cat' );
|
677 |
+
if (!empty($cat) && count($cat) > 1){
|
678 |
+
$description .= $sep . $cat[0]->name;
|
679 |
+
}
|
680 |
+
}
|
681 |
+
|
682 |
}
|
683 |
}
|
684 |
}
|
689 |
|
690 |
//If the home page is a static page that has custom snippet
|
691 |
if (is_page() && isset($this->post) && isset($this->post->ID) && $this->getAdvancedMeta($this->post->ID, 'description') <> '') {
|
692 |
+
$description = $this->getAdvancedMeta($this->post->ID, 'description');
|
693 |
} elseif (SQ_Tools::$options ['sq_fp_description'] <> '') {
|
694 |
$description = strip_tags(SQ_Tools::$options['sq_fp_description']);
|
695 |
} else {
|
699 |
|
700 |
$description = (($description <> '') ? $description : $this->title);
|
701 |
if ($description <> '') {
|
|
|
702 |
|
703 |
+
$this->description = apply_filters('sq_description', $description);
|
704 |
if ($this->description <> '') { //prevent blank description
|
705 |
+
return sprintf("<meta name=\"description\" content=\"%s\" />", $this->description);
|
|
|
|
|
706 |
}
|
707 |
}
|
708 |
|
709 |
+
return '';
|
710 |
}
|
711 |
|
712 |
+
public function clearDescription($description) {
|
713 |
+
if ($description <> '') {
|
714 |
+
$search = array("'<script[^>]*?>.*?<\/script>'si", // strip out javascript
|
715 |
+
"/<form.*?<\/form>/si",
|
716 |
+
"/<iframe.*?<\/iframe>/si");
|
717 |
|
718 |
+
if (function_exists('preg_replace')) {
|
719 |
+
$description = preg_replace($search, '', $description);
|
720 |
+
}
|
721 |
|
722 |
+
$description = SQ_Tools::i18n(trim(esc_html(ent2ncr(strip_tags($description)))));
|
723 |
+
}
|
|
|
724 |
|
725 |
+
return $description;
|
726 |
}
|
727 |
|
728 |
/**
|
731 |
* @return string
|
732 |
*/
|
733 |
private function getCustomKeyword() {
|
|
|
734 |
$keywords = '';
|
735 |
|
736 |
if ($this->checkPostsPage() && SQ_Tools::$options['sq_auto_description'] == 1) {
|
750 |
}
|
751 |
|
752 |
if (isset($keywords) && !empty($keywords) && !(is_home() && is_paged())) {
|
753 |
+
$this->keywords = apply_filters('sq_keywords', str_replace('"', '', $keywords));
|
754 |
|
755 |
return sprintf("<meta name=\"keywords\" content=\"%s\" />", $this->keywords);
|
756 |
}
|
764 |
* @return string
|
765 |
*/
|
766 |
private function getCopyright() {
|
767 |
+
$meta = '';
|
768 |
+
|
769 |
+
$name = $this->getAuthor();
|
770 |
if (!$name) {
|
771 |
$name = $this->meta['blogname'];
|
772 |
}
|
773 |
|
774 |
if ($name <> '') {
|
775 |
+
$meta = sprintf("<meta name=\"dcterms.rightsHolder\" content=\"%s\" />" . "\n", apply_filters('sq_copyright', $meta));
|
776 |
}
|
777 |
|
778 |
+
return apply_filters('sq_copyright_meta', $meta);
|
779 |
}
|
780 |
|
781 |
/**
|
784 |
* @return string
|
785 |
*/
|
786 |
private function getGooglePlusMeta() {
|
787 |
+
$meta = '';
|
788 |
$author = SQ_Tools::$options['sq_google_plus'];
|
789 |
+
|
790 |
+
if (strpos($author, 'plus.google.com') === false && is_numeric($author)) {
|
791 |
+
$author = 'https://plus.google.com/' . $author;
|
|
|
|
|
|
|
792 |
}
|
793 |
|
794 |
+
if ($author <> '' && !class_exists('ABH_Classes_ObjController')) {
|
795 |
+
$meta = '<link rel="publisher" href="' . $author . '" />' . "\n";
|
|
|
|
|
|
|
|
|
796 |
}
|
797 |
|
798 |
+
return apply_filters('sq_publisher_meta', $meta);
|
799 |
}
|
800 |
|
801 |
/**
|
804 |
* @return string
|
805 |
*/
|
806 |
private function getFavicon() {
|
807 |
+
$meta = '';
|
|
|
808 |
$rnd = '';
|
809 |
|
810 |
+
if (current_user_can('manage_options')) {
|
811 |
+
$rnd = '?' . md5(SQ_Tools::$options['favicon']);
|
|
|
|
|
812 |
}
|
813 |
|
814 |
+
if (SQ_Tools::$options['favicon'] <> '' && file_exists(_SQ_CACHE_DIR_ . SQ_Tools::$options['favicon'])) {
|
815 |
+
$meta .= "\n";
|
816 |
+
|
817 |
+
$favicon = get_bloginfo('wpurl') . '/favicon.icon' . $rnd;
|
818 |
+
$meta .= sprintf("<link rel=\"shortcut icon\" href=\"%s\" />" . "\n", $favicon);
|
819 |
+
$meta .= sprintf("<link rel=\"apple-touch-icon\" href=\"%s\" />" . "\n", get_bloginfo('wpurl') . '/touch-icon.png' . $rnd);
|
820 |
|
821 |
+
$appleSizes = preg_split('/[,]+/', _SQ_MOBILE_ICON_SIZES);
|
822 |
+
foreach ($appleSizes as $size) {
|
823 |
+
$favicon = get_bloginfo('wpurl') . '/touch-icon' . $size . '.png' . $rnd;
|
824 |
+
$meta .= sprintf("<link rel=\"apple-touch-icon\" sizes=\"" . $size . "x" . $size . "\" href=\"%s\" />" . "\n", $favicon);
|
825 |
+
}
|
826 |
}
|
827 |
+
return apply_filters('sq_publisher_meta', $meta);
|
828 |
}
|
829 |
|
830 |
/**
|
834 |
*/
|
835 |
private function getLanguage() {
|
836 |
$meta = '';
|
837 |
+
$language = get_bloginfo('language');
|
838 |
+
$hreflang = SQ_ObjController::getController('SQ_Ranking', false)->getLanguage();
|
839 |
|
840 |
+
if ($hreflang <> '') {
|
841 |
+
$url = get_bloginfo('url');
|
842 |
+
$meta .= sprintf("<link rel=\"alternate\" hreflang=\"%s\" href=\"$url\" />", $hreflang) . "\n";
|
|
|
843 |
}
|
844 |
|
|
|
|
|
845 |
if ($language <> '') {
|
846 |
+
$meta .= sprintf("<meta name=\"dc.language\" content=\"%s\" />", $language) . "\n";
|
847 |
}
|
848 |
|
849 |
+
return apply_filters('sq_language_meta', $meta);
|
850 |
}
|
851 |
|
852 |
/**
|
855 |
* @return string
|
856 |
*/
|
857 |
private function getDublinCore() {
|
|
|
858 |
$date = null;
|
859 |
$meta = '';
|
860 |
|
861 |
+
$name = $this->getAuthor();
|
862 |
if (!$name) {
|
863 |
$name = $this->meta['blogname'];
|
864 |
}
|
865 |
|
866 |
if ($name <> '') {
|
867 |
+
$meta .= sprintf("<meta name=\"dc.publisher\" content=\"%s\" />", $name) . "\n";
|
868 |
}
|
869 |
|
870 |
+
$meta .= sprintf('<meta name="dc.title" content="%s" />', $this->title) . "\n";
|
871 |
+
$meta .= sprintf('<meta name="dc.description" content="%s" />', $this->description) . "\n";
|
872 |
|
873 |
if ($this->isHomePage()) {
|
874 |
+
$date = date('Y-m-d', strtotime(get_lastpostmodified('gmt')));
|
875 |
+
} elseif (is_single() && isset($this->post->post_date)) {
|
876 |
$date = date('Y-m-d', strtotime($this->post->post_date));
|
877 |
}
|
878 |
|
879 |
+
if (isset($date)) {
|
880 |
+
$meta .= sprintf("<meta name=\"dc.date.issued\" content=\"%s\" />", $date) . "\n";
|
|
|
|
|
881 |
}
|
882 |
|
883 |
+
return apply_filters('sq_dublin_meta', $meta);
|
884 |
}
|
885 |
|
886 |
/**
|
889 |
* @return string
|
890 |
*/
|
891 |
private function getXMLSitemap() {
|
892 |
+
$meta = '';
|
893 |
+
|
894 |
+
$xml_url = SQ_ObjController::getController('SQ_Sitemaps')->getXmlUrl('sitemap');
|
895 |
|
896 |
if ($xml_url <> '') {
|
897 |
+
$meta = sprintf("<link rel=\"alternate\" type=\"application/rss+xml\" " . (($this->title <> '') ? "title=\"%s\"" : "") . " href=\"%s\" />", $this->title, $xml_url) . "\n";
|
898 |
}
|
899 |
|
900 |
+
return apply_filters('sq_sitemap_meta', $meta);
|
901 |
}
|
902 |
|
903 |
/**
|
908 |
private function getGoogleWT() {
|
909 |
$sq_google_wt = SQ_Tools::$options['sq_google_wt'];
|
910 |
|
911 |
+
if ($this->isHomePage() && $sq_google_wt <> '') {
|
912 |
return sprintf("<meta name=\"google-site-verification\" content=\"%s\" />", $sq_google_wt) . "\n";
|
913 |
}
|
914 |
|
926 |
if ($sq_google_analytics <> '') {
|
927 |
SQ_ObjController::getController('SQ_DisplayController', false)
|
928 |
->loadMedia('https://www.google-analytics.com/analytics.js');
|
929 |
+
return sprintf("<script>
|
|
|
930 |
//<![CDATA[
|
931 |
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
|
932 |
+
ga('create', '%s', 'auto'); ga('require', 'linkid', 'linkid.js'); ga('send', 'pageview');
|
|
|
933 |
//]]>
|
934 |
</script>", $sq_google_analytics) . "\n";
|
935 |
}
|
945 |
private function getFacebookIns() {
|
946 |
$sq_facebook_insights = SQ_Tools::$options ['sq_facebook_insights'];
|
947 |
|
948 |
+
if ($this->isHomePage() && $sq_facebook_insights <> '') {
|
949 |
return sprintf("<meta property=\"fb:admins\" content=\"%s\" />", $sq_facebook_insights) . "\n";
|
950 |
}
|
951 |
|
960 |
private function getPinterest() {
|
961 |
$sq_pinterest = SQ_Tools::$options['sq_pinterest'];
|
962 |
|
963 |
+
if ($this->isHomePage() && $sq_pinterest <> '') {
|
964 |
return sprintf("<meta name=\"p:domain_verify\" content=\"%s\" />", $sq_pinterest) . "\n";
|
965 |
}
|
966 |
|
975 |
private function getAlexaT() {
|
976 |
$sq_alexa = SQ_Tools::$options['sq_alexa'];
|
977 |
|
978 |
+
if ($this->isHomePage() && $sq_alexa <> '') {
|
979 |
return sprintf("<meta name=\"alexaVerifyID\" content=\"%s\" />", $sq_alexa) . "\n";
|
980 |
}
|
981 |
|
990 |
private function getBingWT() {
|
991 |
$sq_bing_wt = SQ_Tools::$options['sq_bing_wt'];
|
992 |
|
993 |
+
if ($this->isHomePage() && $sq_bing_wt <> '') {
|
994 |
return sprintf("<meta name=\"msvalidate.01\" content=\"%s\" />", $sq_bing_wt) . "\n";
|
995 |
}
|
996 |
|
997 |
return false;
|
998 |
}
|
999 |
|
1000 |
+
/**
|
1001 |
+
* Get the JsonLD meta for this site
|
1002 |
+
* @return string
|
1003 |
+
*/
|
1004 |
+
private function getJsonLD() {
|
1005 |
+
$meta = '';
|
1006 |
+
$sep = ",\n";
|
1007 |
+
|
1008 |
+
if ($this->isHomePage()) {
|
1009 |
+
if (isset(SQ_Tools::$options['sq_jsonld'][SQ_Tools::$options['sq_jsonld_type']])) {
|
1010 |
+
$meta .= '"@type":"' . SQ_Tools::$options['sq_jsonld_type'] . '"' . $sep;
|
1011 |
+
$meta .= '"url": "' . $this->url . '"';
|
1012 |
+
foreach (SQ_Tools::$options['sq_jsonld'][SQ_Tools::$options['sq_jsonld_type']] as $key => $value) {
|
1013 |
+
if ($value <> '') {
|
1014 |
+
if (SQ_Tools::$options['sq_jsonld_type'] == 'Person' && $key == 'logo') {
|
1015 |
+
$key = 'image';
|
1016 |
+
}
|
1017 |
+
if (SQ_Tools::$options['sq_jsonld_type'] == 'Organization' && $key == 'contactType') {
|
1018 |
+
continue;
|
1019 |
+
}
|
1020 |
+
if (SQ_Tools::$options['sq_jsonld_type'] == 'Organization' && $key == 'telephone') {
|
1021 |
+
$meta .= $sep . '"contactPoint": {"@type": "ContactPoint", "telephone": "' . $value . '", "contactType": "' . SQ_Tools::$options['sq_jsonld'][SQ_Tools::$options['sq_jsonld_type']]['contactType'] . '"}';
|
1022 |
+
}
|
1023 |
+
$meta .= ($meta <> '' ? $sep : '') . '"' . $key . '":"' . $value . '"';
|
1024 |
+
}
|
1025 |
+
}
|
1026 |
+
}
|
1027 |
+
|
1028 |
+
if ($meta <> '') {
|
1029 |
+
$social = '';
|
1030 |
+
if (isset(SQ_Tools::$options['sq_twitter_account'])) {
|
1031 |
+
$social .= ($social <> '' ? "," : '') . '"' . SQ_Tools::$options['sq_twitter_account'] . '"';
|
1032 |
+
}
|
1033 |
+
if (isset(SQ_Tools::$options['sq_facebook_account'])) {
|
1034 |
+
$social .= ($social <> '' ? "," : '') . '"' . SQ_Tools::$options['sq_facebook_account'] . '"';
|
1035 |
+
}
|
1036 |
+
if (isset(SQ_Tools::$options['sq_google_plus'])) {
|
1037 |
+
$social .= ($social <> '' ? "," : '') . '"' . SQ_Tools::$options['sq_google_plus'] . '"';
|
1038 |
+
}
|
1039 |
+
if (isset(SQ_Tools::$options['sq_linkedin_account'])) {
|
1040 |
+
$social .= ($social <> '' ? "," : '') . '"' . SQ_Tools::$options['sq_linkedin_account'] . '"';
|
1041 |
+
}
|
1042 |
+
|
1043 |
+
$search = $sep . '"potentialAction": {"@type": "SearchAction","target": "' . get_bloginfo('url') . '?s={search_string}", "query-input": "required name=search_string"}';
|
1044 |
+
|
1045 |
+
if ($social <> '') {
|
1046 |
+
$social = $sep . '"sameAs": [' . $social . ']';
|
1047 |
+
}
|
1048 |
+
|
1049 |
+
$meta = '{ "@context": "http://schema.org"' . $sep . $meta . $search . $social . '}';
|
1050 |
+
}
|
1051 |
+
} elseif (is_single()) {
|
1052 |
+
$meta .= '"@type": "Article"' . $sep;
|
1053 |
+
if (isset($this->title))
|
1054 |
+
$meta .= '"name": "' . $this->title . '"' . $sep;
|
1055 |
+
if (isset($this->description))
|
1056 |
+
$meta .= '"headline": "' . $this->description . '"' . $sep;
|
1057 |
+
$meta .= '"url": "' . $this->url . '"' . $sep;
|
1058 |
+
if (isset($this->thumb_image) && $this->thumb_image <> '')
|
1059 |
+
$meta .= '"thumbnailUrl": "' . $this->thumb_image . '"' . $sep;
|
1060 |
+
if (isset($this->post->post_date))
|
1061 |
+
$meta .= '"dateCreated": "' . date('c', strtotime($this->post->post_date)) . '"' . $sep;
|
1062 |
+
$meta .= '"author": {"@type": "Person", "url": "' . $this->getAuthor('user_url') . '", "name": "' . $this->getAuthor('display_name') . '"}' . $sep;
|
1063 |
+
$meta .= '"keywords": ["' . str_replace(',', '","', $this->grabKeywordsFromPost()) . '"]';
|
1064 |
+
|
1065 |
+
$meta = '{ "@context": "http://schema.org"' . $sep . $meta . '}';
|
1066 |
+
}elseif (is_author()) {
|
1067 |
+
$meta .= '"@type": "Person"' . $sep;
|
1068 |
+
$meta .= '"name": "' . $this->getAuthor('display_name') . '"' . $sep;
|
1069 |
+
$meta .= '"url": "' . $this->getAuthor('user_url') . '"';
|
1070 |
+
|
1071 |
+
$meta = '{ "@context": "http://schema.org"' . $sep . $meta . '}';
|
1072 |
+
}
|
1073 |
+
|
1074 |
+
if ($meta <> '') {
|
1075 |
+
$meta = "\n" . '<script type="application/ld+json">' . "\n" . $meta . "\n" . '</script>';
|
1076 |
+
}
|
1077 |
+
|
1078 |
+
return apply_filters('sq_sjon_ld_meta', $meta);
|
1079 |
+
}
|
1080 |
+
|
1081 |
+
/**
|
1082 |
+
* *******************************************************************
|
1083 |
* ******************************************************************** */
|
1084 |
|
1085 |
/**
|
1087 |
*
|
1088 |
* @return string
|
1089 |
*/
|
1090 |
+
public function grabTitleFromPost($id = null) {
|
1091 |
global $wp_query;
|
1092 |
$post = null;
|
1093 |
$title = '';
|
1119 |
}
|
1120 |
}
|
1121 |
|
1122 |
+
return $title;
|
|
|
|
|
1123 |
}
|
1124 |
|
1125 |
/**
|
1175 |
*
|
1176 |
* @return array
|
1177 |
*/
|
1178 |
+
public function grabKeywordsFromPost($id = null) {
|
1179 |
global $wp_query;
|
1180 |
|
1181 |
+
$this->max_keywords = ($this->max_keywords > 0 ? ($this->max_keywords - 1) : 0);
|
1182 |
+
if ($this->max_keywords == 0) {
|
1183 |
return;
|
1184 |
}
|
1185 |
|
1202 |
}
|
1203 |
}
|
1204 |
|
1205 |
+
if (count($keywords) <= $this->max_keywords) {
|
1206 |
if ($advkeywords = $this->getAdvancedMeta($post->ID, 'keywords')) {
|
1207 |
$keywords[] = SQ_Tools::i18n($advkeywords);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1208 |
}
|
1209 |
}
|
1210 |
+
if (sizeof($keywords) > $this->max_keywords) {
|
1211 |
+
$keywords = array_slice($keywords, 0, $this->max_keywords);
|
1212 |
}
|
1213 |
} else {
|
1214 |
if (is_404()) {
|
1228 |
}
|
1229 |
}
|
1230 |
|
1231 |
+
if (sizeof($keywords) > $this->max_keywords) {
|
1232 |
+
$keywords = array_slice($keywords, 0, $this->max_keywords);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1233 |
}
|
1234 |
}
|
1235 |
+
if (count($keywords) <= $this->max_keywords) {
|
1236 |
foreach ($wp_query->posts as $post) {
|
1237 |
$id = (is_attachment()) ? ($post->post_parent) : ($post->ID);
|
1238 |
|
1265 |
$keywords[] = SQ_Tools::i18n($advkeywords);
|
1266 |
}
|
1267 |
|
1268 |
+
return $this->getUniqueKeywords($keywords);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1269 |
}
|
1270 |
|
1271 |
/**
|
1275 |
*/
|
1276 |
public function getCanonicalUrl() {
|
1277 |
global $wp_query;
|
1278 |
+
|
1279 |
+
if (isset($this->url)) {
|
1280 |
+
return $this->url;
|
1281 |
+
}
|
1282 |
+
|
1283 |
+
if (!isset($wp_query) || is_404() || is_search()) {
|
1284 |
return false;
|
1285 |
}
|
1286 |
|
1287 |
+
$haspost = (count($wp_query->posts) > 0);
|
1288 |
$has_ut = function_exists('user_trailingslashit');
|
1289 |
|
1290 |
if (get_query_var('m') <> '') {
|
1311 |
$link = get_permalink($post->ID);
|
1312 |
$link = $this->getPaged($link);
|
1313 |
} elseif (is_author() && $haspost) {
|
1314 |
+
$link = $this->getAuthor('user_url');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1315 |
} elseif (is_category() && $haspost) {
|
1316 |
$link = $this->getPaged(get_category_link(get_query_var('cat')));
|
1317 |
} else if (is_tag() && $haspost) {
|
1346 |
return false;
|
1347 |
}
|
1348 |
|
1349 |
+
return apply_filters('sq_canonical', $link);
|
1350 |
}
|
1351 |
|
1352 |
+
public function getAuthor($what = 'user_nicename') {
|
1353 |
+
if (!isset($this->author)) {
|
1354 |
+
if (is_author()) {
|
1355 |
+
$this->author = get_userdata(get_query_var('author'));
|
1356 |
+
} elseif (is_single() && isset($this->post->post_author)) {
|
1357 |
+
$this->author = get_userdata((int) $this->post->post_author)->data;
|
1358 |
+
}
|
1359 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
1360 |
|
1361 |
+
if (isset($this->author)) {
|
1362 |
+
if ($what == 'user_url' && $this->author->$what == '') {
|
1363 |
+
return get_author_posts_url($this->author->ID, $this->author->user_nicename);
|
1364 |
+
}if (isset($this->author->$what)) {
|
1365 |
+
return $this->author->$what;
|
1366 |
}
|
1367 |
}
|
1368 |
+
|
1369 |
return false;
|
1370 |
}
|
1371 |
|
1394 |
* @return bool
|
1395 |
*/
|
1396 |
private function checkFrontPage() {
|
1397 |
+
return is_page() && get_option('show_on_front') == 'page' && isset($this->post->ID) && $this->post->ID == get_option('page_on_front');
|
|
|
1398 |
}
|
1399 |
|
1400 |
/**
|
1403 |
* @return bool
|
1404 |
*/
|
1405 |
private function checkPostsPage() {
|
1406 |
+
return is_home() && get_option('show_on_front') == 'page' && isset($this->post->ID) && $this->post->ID == get_option('page_for_posts');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1407 |
}
|
1408 |
|
1409 |
public function truncate($text, $min, $max) {
|
1419 |
}
|
1420 |
}
|
1421 |
$text = substr($text, 0, $max);
|
1422 |
+
return trim(stripcslashes($text));
|
|
|
1423 |
}
|
1424 |
|
1425 |
public function _truncate($text) {
|
1428 |
$text = str_replace(']]>', ']]>', $text);
|
1429 |
$text = @preg_replace('|\[(.+?)\](.+?\[/\\1\])?|s', '', $text);
|
1430 |
$text = strip_tags($text);
|
|
|
1431 |
|
1432 |
+
return trim(stripcslashes($text));
|
1433 |
}
|
1434 |
|
1435 |
/**
|
1451 |
|
1452 |
if (is_array($all) && count($all) > 0) {
|
1453 |
$all = array_unique($all);
|
1454 |
+
if (sizeof($all) > $this->max_keywords) {
|
1455 |
+
$all = array_slice($all, 0, $this->max_keywords);
|
1456 |
}
|
1457 |
|
1458 |
return implode(',', $all);
|
1477 |
return '';
|
1478 |
}
|
1479 |
|
|
|
1480 |
switch ($meta) {
|
1481 |
case 'title':
|
1482 |
+
$field = '_sq_fp_title';
|
1483 |
break;
|
1484 |
case 'description':
|
1485 |
+
$field = '_sq_fp_description';
|
1486 |
break;
|
1487 |
case 'keyword':
|
1488 |
+
$field = '_sq_fp_keywords';
|
1489 |
break;
|
1490 |
case 'ogimage':
|
1491 |
+
$field = '_sq_fp_ogimage';
|
1492 |
break;
|
1493 |
default:
|
1494 |
+
$field = '_sq_fp_title';
|
1495 |
}
|
1496 |
|
1497 |
if ($field <> '' && isset($this->meta[$post_id][$field])) {
|
1498 |
return $this->meta[$post_id][$field];
|
1499 |
}
|
1500 |
|
1501 |
+
// Get the custom Squirrly meta
|
1502 |
+
//////////////////////////////////////////
|
1503 |
+
$fields = array('_sq_fp_title' => '', '_sq_fp_description' => '', '_sq_fp_keywords' => '', '_sq_fp_ogimage' => '');
|
1504 |
|
1505 |
$sql = "SELECT `meta_key`, `meta_value`
|
1506 |
FROM `" . $wpdb->postmeta . "`
|
1543 |
return '';
|
1544 |
}
|
1545 |
|
1546 |
+
//check yoast
|
1547 |
switch ($meta) {
|
1548 |
case 'title':
|
1549 |
$field = '_yoast_wpseo_title';
|
1591 |
return false;
|
1592 |
}
|
1593 |
|
1594 |
+
/**
|
1595 |
+
* ROBOTSTXT
|
1596 |
+
*/
|
1597 |
+
// add sitemap location in robots.txt generated by WP
|
1598 |
+
public function robots($content = '') {
|
1599 |
+
global $blog_id;
|
1600 |
+
|
1601 |
+
/** display robots.txt */
|
1602 |
+
header('Status: 200 OK', true, 200);
|
1603 |
+
header('Content-type: text/plain; charset=' . get_bloginfo('charset'));
|
1604 |
+
|
1605 |
+
|
1606 |
+
echo "\n# Squirrly SEO Robots";
|
1607 |
+
|
1608 |
+
if (get_option('blog_public') != 1) {
|
1609 |
+
echo "\n# Squirrly Sitemaps is disabled. Please see Site Visibility on Settings > Reading.";
|
1610 |
+
} else {
|
1611 |
+
if (SQ_Tools::$options['sq_auto_sitemap'] == 1) {
|
1612 |
+
foreach ((array) SQ_Tools::$options['sq_sitemap'] as $name => $sitemap) {
|
1613 |
+
if ($name == 'sitemap-product' && !SQ_ObjController::getModel('SQ_BlockSettingsSeo')->isEcommerce()) {
|
1614 |
+
continue;
|
1615 |
+
}
|
1616 |
+
if ($sitemap[1] == 1 || $sitemap[1] == 2) {
|
1617 |
+
echo "\nSitemap: " . trailingslashit(get_bloginfo('url')) . $sitemap[0];
|
1618 |
+
}
|
1619 |
+
}
|
1620 |
+
}
|
1621 |
+
|
1622 |
+
if (empty(SQ_Tools::$options['sq_sitemap']))
|
1623 |
+
echo "\n# No Squirrly SEO Robots found. ";
|
1624 |
+
}
|
1625 |
+
echo "\n\n";
|
1626 |
+
|
1627 |
+
if (!empty(SQ_Tools::$options['sq_robots_security'])) {
|
1628 |
+
foreach ((array) SQ_Tools::$options['sq_robots_security'] as $robot_txt)
|
1629 |
+
echo $robot_txt . "\n";
|
1630 |
+
}
|
1631 |
+
echo "\n\n";
|
1632 |
+
|
1633 |
+
echo $content;
|
1634 |
+
exit;
|
1635 |
+
}
|
1636 |
+
|
1637 |
}
|
models/SQ_Ico.php
CHANGED
@@ -1,12 +1,5 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
/*
|
4 |
-
Copyright 2011-2013 Chris Jean & iThemes
|
5 |
-
Licensed under GPLv2 or above
|
6 |
-
|
7 |
-
Version 1.0.2
|
8 |
-
*/
|
9 |
-
|
10 |
class Model_SQ_Ico {
|
11 |
|
12 |
/**
|
@@ -100,6 +93,25 @@ class Model_SQ_Ico {
|
|
100 |
return true;
|
101 |
}
|
102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
/**
|
104 |
* Generate the final ICO data by creating a file header and adding the image data.
|
105 |
*
|
@@ -211,7 +223,7 @@ class Model_SQ_Ico {
|
|
211 |
*/
|
212 |
function _load_image_file($file) {
|
213 |
// Run a cheap check to verify that it is an image file.
|
214 |
-
if (false === ( $size = getimagesize($file) ))
|
215 |
return false;
|
216 |
|
217 |
if (false === ( $file_data = file_get_contents($file) ))
|
1 |
<?php
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
class Model_SQ_Ico {
|
4 |
|
5 |
/**
|
93 |
return true;
|
94 |
}
|
95 |
|
96 |
+
// public function save_ico(&$file) {
|
97 |
+
// $dir = null;
|
98 |
+
//
|
99 |
+
// $file = wp_upload_bits($file['name'], null, file_get_contents($file['tmp']));
|
100 |
+
//
|
101 |
+
// if (!isset($file['error']) || $file['error'] == '')
|
102 |
+
// if (isset($file['url']) && $file['url'] <> '') {
|
103 |
+
// $file['filename'] = basename($file['url']);
|
104 |
+
// return $file;
|
105 |
+
// }
|
106 |
+
// $file = false;
|
107 |
+
// }
|
108 |
+
|
109 |
+
function remove_ico($file) {
|
110 |
+
if (file_exists($file)) {
|
111 |
+
unlink($file);
|
112 |
+
}
|
113 |
+
}
|
114 |
+
|
115 |
/**
|
116 |
* Generate the final ICO data by creating a file header and adding the image data.
|
117 |
*
|
223 |
*/
|
224 |
function _load_image_file($file) {
|
225 |
// Run a cheap check to verify that it is an image file.
|
226 |
+
if (false === ( $size = @getimagesize($file) ))
|
227 |
return false;
|
228 |
|
229 |
if (false === ( $file_data = file_get_contents($file) ))
|
models/SQ_Menu.php
CHANGED
@@ -117,253 +117,8 @@ class Model_SQ_Menu {
|
|
117 |
$this->meta[6] = null;
|
118 |
/* add the box content with WP */
|
119 |
add_meta_box($this->meta[0], $this->meta[1], $this->meta[2], $this->meta[3], $this->meta[4], $this->meta[5]);
|
120 |
-
//add_meta_box('post'._SQ_PLUGIN_NAME_, __(ucfirst(_SQ_PLUGIN_NAME_),_SQ_PLUGIN_NAME_), array($this, 'showMenu'), 'post', 'side', 'high');
|
121 |
}
|
122 |
}
|
123 |
}
|
124 |
|
125 |
-
/**
|
126 |
-
* Check the google code saved at settings
|
127 |
-
*
|
128 |
-
* @return string
|
129 |
-
*/
|
130 |
-
public function checkGoogleWTCode($code) {
|
131 |
-
if ($code <> '') {
|
132 |
-
if (strpos($code, 'content') !== false) {
|
133 |
-
preg_match('/content\\s*=\\s*[\'\"]([^\'\"]+)[\'\"]/i', $code, $result);
|
134 |
-
if (isset($result[1]) && !empty($result[1]))
|
135 |
-
$code = $result[1];
|
136 |
-
}
|
137 |
-
|
138 |
-
if (strpos($code, '"') !== false) {
|
139 |
-
preg_match('/[\'\"]([^\'\"]+)[\'\"]/i', $code, $result);
|
140 |
-
if (isset($result[1]) && !empty($result[1]))
|
141 |
-
$code = $result[1];
|
142 |
-
}
|
143 |
-
|
144 |
-
if ($code == '')
|
145 |
-
SQ_Error::setError(__("The code for Google Webmaster Tool is incorrect.", _SQ_PLUGIN_NAME_));
|
146 |
-
}
|
147 |
-
return $code;
|
148 |
-
}
|
149 |
-
|
150 |
-
/**
|
151 |
-
* Check the google code saved at settings
|
152 |
-
*
|
153 |
-
* @return string
|
154 |
-
*/
|
155 |
-
public function checkGoogleAnalyticsCode($code) {
|
156 |
-
//echo $code;
|
157 |
-
if ($code <> '') {
|
158 |
-
if (strpos($code, '_gaq.push') !== false) {
|
159 |
-
preg_match('/_gaq.push\(\[[\'\"]_setAccount[\'\"],\\s?[\'\"]([^\'\"]+)[\'\"]\]\)/i', $code, $result);
|
160 |
-
if (isset($result[1]) && !empty($result[1]))
|
161 |
-
$code = $result[1];
|
162 |
-
}
|
163 |
-
|
164 |
-
if (strpos($code, '"') !== false) {
|
165 |
-
preg_match('/[\'\"]([^\'\"]+)[\'\"]/i', $code, $result);
|
166 |
-
if (isset($result[1]) && !empty($result[1]))
|
167 |
-
$code = $result[1];
|
168 |
-
}
|
169 |
-
|
170 |
-
if (strpos($code, 'UA-') === false) {
|
171 |
-
$code = '';
|
172 |
-
SQ_Error::setError(__("The code for Google Analytics is incorrect.", _SQ_PLUGIN_NAME_));
|
173 |
-
}
|
174 |
-
}
|
175 |
-
return $code;
|
176 |
-
}
|
177 |
-
|
178 |
-
/**
|
179 |
-
* Check the Facebook code saved at settings
|
180 |
-
*
|
181 |
-
* @return string
|
182 |
-
*/
|
183 |
-
public function checkFavebookInsightsCode($code) {
|
184 |
-
if ($code <> '') {
|
185 |
-
if (strpos($code, 'content') !== false) {
|
186 |
-
preg_match('/content\\s*=\\s*[\'\"]([^\'\"]+)[\'\"]/i', $code, $result);
|
187 |
-
if (isset($result[1]) && !empty($result[1]))
|
188 |
-
$code = $result[1];
|
189 |
-
}
|
190 |
-
|
191 |
-
if (strpos($code, '"') !== false) {
|
192 |
-
preg_match('/[\'\"]([^\'\"]+)[\'\"]/i', $code, $result);
|
193 |
-
if (isset($result[1]) && !empty($result[1]))
|
194 |
-
$code = $result[1];
|
195 |
-
}
|
196 |
-
|
197 |
-
if ($code == '')
|
198 |
-
SQ_Error::setError(__("The code for Facebook is incorrect.", _SQ_PLUGIN_NAME_));
|
199 |
-
}
|
200 |
-
return $code;
|
201 |
-
}
|
202 |
-
|
203 |
-
/**
|
204 |
-
* Check the Pinterest code saved at settings
|
205 |
-
*
|
206 |
-
* @return string
|
207 |
-
*/
|
208 |
-
public function checkPinterestCode($code) {
|
209 |
-
if ($code <> '') {
|
210 |
-
if (strpos($code, 'content') !== false) {
|
211 |
-
preg_match('/content\\s*=\\s*[\'\"]([^\'\"]+)[\'\"]/i', $code, $result);
|
212 |
-
if (isset($result[1]) && !empty($result[1]))
|
213 |
-
$code = $result[1];
|
214 |
-
}
|
215 |
-
|
216 |
-
if (strpos($code, '"') !== false) {
|
217 |
-
preg_match('/[\'\"]([^\'\"]+)[\'\"]/i', $code, $result);
|
218 |
-
if (isset($result[1]) && !empty($result[1]))
|
219 |
-
$code = $result[1];
|
220 |
-
}
|
221 |
-
|
222 |
-
if ($code == '')
|
223 |
-
SQ_Error::setError(__("The code for Pinterest is incorrect.", _SQ_PLUGIN_NAME_));
|
224 |
-
}
|
225 |
-
return $code;
|
226 |
-
}
|
227 |
-
|
228 |
-
/**
|
229 |
-
* Check the Bing code saved at settings
|
230 |
-
*
|
231 |
-
* @return string
|
232 |
-
*/
|
233 |
-
public function checkBingWTCode($code) {
|
234 |
-
if ($code <> '') {
|
235 |
-
if (strpos($code, 'content') !== false) {
|
236 |
-
preg_match('/content\\s*=\\s*[\'\"]([^\'\"]+)[\'\"]/i', $code, $result);
|
237 |
-
if (isset($result[1]) && !empty($result[1]))
|
238 |
-
$code = $result[1];
|
239 |
-
}
|
240 |
-
|
241 |
-
if (strpos($code, '"') !== false) {
|
242 |
-
preg_match('/[\'\"]([^\'\"]+)[\'\"]/i', $code, $result);
|
243 |
-
if (isset($result[1]) && !empty($result[1]))
|
244 |
-
$code = $result[1];
|
245 |
-
}
|
246 |
-
|
247 |
-
if ($code == '')
|
248 |
-
SQ_Error::setError(__("The code for Bing is incorrect.", _SQ_PLUGIN_NAME_));
|
249 |
-
}
|
250 |
-
return $code;
|
251 |
-
}
|
252 |
-
|
253 |
-
/**
|
254 |
-
* Add the image to the root path
|
255 |
-
*
|
256 |
-
* @param string $file
|
257 |
-
* @param string $path
|
258 |
-
* @return array [name (the name of the file), favicon (the path of the ico), message (the returned message)]
|
259 |
-
*
|
260 |
-
*/
|
261 |
-
public function addFavicon($file, $path = ABSPATH) {
|
262 |
-
|
263 |
-
$out = array();
|
264 |
-
$out['name'] = strtolower(basename($file['name']));
|
265 |
-
$out['tmp'] = _SQ_CACHE_DIR_ . strtolower(basename($file['name']));
|
266 |
-
$out['favicon'] = $path . "/" . 'favicon.ico';
|
267 |
-
$file_err = $file['error'];
|
268 |
-
|
269 |
-
/* get the file extension */
|
270 |
-
$file_name = explode('.', $file['name']);
|
271 |
-
$file_type = strtolower($file_name[count($file_name) - 1]);
|
272 |
-
|
273 |
-
/* if the file has a name */
|
274 |
-
if (!empty($file['name'])) {
|
275 |
-
/* Check the extension */
|
276 |
-
$file_type = strtolower($file_type);
|
277 |
-
$files = array('ico', 'jpeg', 'jpg', 'gif', 'png');
|
278 |
-
$key = in_array($file_type, $files);
|
279 |
-
|
280 |
-
if (!$key) {
|
281 |
-
SQ_Error::setError(__("File type error: Only ICO, JPEG, JPG, GIF or PNG files are allowed.", _SQ_PLUGIN_NAME_));
|
282 |
-
return;
|
283 |
-
}
|
284 |
-
|
285 |
-
/* Check for error messages */
|
286 |
-
if (!$this->checkFunctions()) {
|
287 |
-
SQ_Error::setError(__("GD error: The GD library must be installed on your server.", _SQ_PLUGIN_NAME_));
|
288 |
-
return;
|
289 |
-
} else {
|
290 |
-
/* Delete the previous file if exists */
|
291 |
-
if (is_file($out['tmp'])) {
|
292 |
-
if (!unlink($out['tmp'])) {
|
293 |
-
SQ_Error::setError(__("Delete error: Could not delete the old favicon.", _SQ_PLUGIN_NAME_));
|
294 |
-
return;
|
295 |
-
}
|
296 |
-
}
|
297 |
-
|
298 |
-
/* Upload the file */
|
299 |
-
if (!move_uploaded_file($file['tmp_name'], $out['tmp'])) {
|
300 |
-
SQ_Error::setError(__("Upload error: Could not upload the favicon.", _SQ_PLUGIN_NAME_));
|
301 |
-
return;
|
302 |
-
}
|
303 |
-
|
304 |
-
/* Change the permision */
|
305 |
-
if (!chmod($out['tmp'], 0755)) {
|
306 |
-
SQ_Error::setError(__("Permission error: Could not change the favicon permissions.", _SQ_PLUGIN_NAME_));
|
307 |
-
return;
|
308 |
-
}
|
309 |
-
|
310 |
-
if ($file_type <> 'ico') {
|
311 |
-
/* Transform the image into icon */
|
312 |
-
|
313 |
-
switch ($file_type) {
|
314 |
-
case "jpeg":
|
315 |
-
case "jpg":
|
316 |
-
$im = @imagecreatefromjpeg($out['tmp']);
|
317 |
-
break;
|
318 |
-
case "gif":
|
319 |
-
$im = @imagecreatefromgif($out['tmp']);
|
320 |
-
break;
|
321 |
-
case "png":
|
322 |
-
$im = @imagecreatefrompng($out['tmp']);
|
323 |
-
break;
|
324 |
-
}
|
325 |
-
|
326 |
-
/* Save the file */
|
327 |
-
if ($im) {
|
328 |
-
$ico = SQ_ObjController::getModel('SQ_Ico');
|
329 |
-
$ico->set_image($out['tmp'], array(32, 32));
|
330 |
-
$ico->save_ico($out['favicon']);
|
331 |
-
} else {
|
332 |
-
SQ_Error::setError(__("ICO Error: Could not create the ICO from file. Try with another file type.", _SQ_PLUGIN_NAME_));
|
333 |
-
}
|
334 |
-
} else {
|
335 |
-
copy($out['tmp'], $out['favicon']);
|
336 |
-
}
|
337 |
-
|
338 |
-
$out['message'] = __("The favicon has been updated.", _SQ_PLUGIN_NAME_);
|
339 |
-
|
340 |
-
return $out;
|
341 |
-
}
|
342 |
-
}
|
343 |
-
}
|
344 |
-
|
345 |
-
private function checkFunctions() {
|
346 |
-
$required_functions = array(
|
347 |
-
'getimagesize',
|
348 |
-
'imagecreatefromstring',
|
349 |
-
'imagecreatetruecolor',
|
350 |
-
'imagecolortransparent',
|
351 |
-
'imagecolorallocatealpha',
|
352 |
-
'imagealphablending',
|
353 |
-
'imagesavealpha',
|
354 |
-
'imagesx',
|
355 |
-
'imagesy',
|
356 |
-
'imagecopyresampled',
|
357 |
-
);
|
358 |
-
|
359 |
-
foreach ($required_functions as $function) {
|
360 |
-
if (!function_exists($function)) {
|
361 |
-
SQ_Error::setError("The PHP_ICO class was unable to find the $function function, which is part of the GD library. Ensure that the system has the GD library installed and that PHP has access to it through a PHP interface, such as PHP's GD module. Since this function was not found, the library will be unable to create ICO files.");
|
362 |
-
return false;
|
363 |
-
}
|
364 |
-
}
|
365 |
-
|
366 |
-
return true;
|
367 |
-
}
|
368 |
-
|
369 |
}
|
117 |
$this->meta[6] = null;
|
118 |
/* add the box content with WP */
|
119 |
add_meta_box($this->meta[0], $this->meta[1], $this->meta[2], $this->meta[3], $this->meta[4], $this->meta[5]);
|
|
|
120 |
}
|
121 |
}
|
122 |
}
|
123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
}
|
models/SQ_Post.php
CHANGED
@@ -66,7 +66,7 @@ class Model_SQ_Post {
|
|
66 |
'date' => $post->post_date_gmt);
|
67 |
}
|
68 |
} else {
|
69 |
-
$responce['error']
|
70 |
}
|
71 |
return json_encode($responce);
|
72 |
}
|
@@ -307,7 +307,7 @@ class Model_SQ_Post {
|
|
307 |
|
308 |
if ($posts = $wpdb->get_row("SELECT count(`post_id`) as count
|
309 |
FROM `" . $wpdb->postmeta . "`
|
310 |
-
WHERE (`meta_key` = '
|
311 |
|
312 |
return $posts->count;
|
313 |
}
|
@@ -329,7 +329,7 @@ class Model_SQ_Post {
|
|
329 |
|
330 |
if ($posts = $wpdb->get_results("SELECT `post_id`, `meta_value`
|
331 |
FROM `" . $wpdb->postmeta . "`
|
332 |
-
WHERE (`meta_key` = '
|
333 |
. $filter .
|
334 |
'ORDER BY `' . $ord . '`')) {
|
335 |
|
@@ -351,7 +351,7 @@ class Model_SQ_Post {
|
|
351 |
|
352 |
if ($row = $wpdb->get_row("SELECT `post_id`, `meta_value`
|
353 |
FROM `" . $wpdb->postmeta . "`
|
354 |
-
WHERE (`meta_key` = '
|
355 |
ORDER BY `meta_id` DESC")) {
|
356 |
|
357 |
return json_decode($row->meta_value);
|
@@ -368,7 +368,7 @@ class Model_SQ_Post {
|
|
368 |
public function saveKeyword($post_id, $args) {
|
369 |
$args->update = current_time('timestamp');
|
370 |
|
371 |
-
$meta[] = array('key' => '
|
372 |
'value' => json_encode($args));
|
373 |
|
374 |
$this->saveAdvMeta($post_id, $meta);
|
66 |
'date' => $post->post_date_gmt);
|
67 |
}
|
68 |
} else {
|
69 |
+
$responce['error'] = __('Squirrly could not find any results for: ') . ' "' . stripslashes($q) . '"';
|
70 |
}
|
71 |
return json_encode($responce);
|
72 |
}
|
307 |
|
308 |
if ($posts = $wpdb->get_row("SELECT count(`post_id`) as count
|
309 |
FROM `" . $wpdb->postmeta . "`
|
310 |
+
WHERE (`meta_key` = '_sq_post_keyword')")) {
|
311 |
|
312 |
return $posts->count;
|
313 |
}
|
329 |
|
330 |
if ($posts = $wpdb->get_results("SELECT `post_id`, `meta_value`
|
331 |
FROM `" . $wpdb->postmeta . "`
|
332 |
+
WHERE (`meta_key` = '_sq_post_keyword')"
|
333 |
. $filter .
|
334 |
'ORDER BY `' . $ord . '`')) {
|
335 |
|
351 |
|
352 |
if ($row = $wpdb->get_row("SELECT `post_id`, `meta_value`
|
353 |
FROM `" . $wpdb->postmeta . "`
|
354 |
+
WHERE (`meta_key` = '_sq_post_keyword' AND `post_id`=" . (int) $post_id . ")
|
355 |
ORDER BY `meta_id` DESC")) {
|
356 |
|
357 |
return json_decode($row->meta_value);
|
368 |
public function saveKeyword($post_id, $args) {
|
369 |
$args->update = current_time('timestamp');
|
370 |
|
371 |
+
$meta[] = array('key' => '_sq_post_keyword',
|
372 |
'value' => json_encode($args));
|
373 |
|
374 |
$this->saveAdvMeta($post_id, $meta);
|
models/SQ_Sitemaps.php
ADDED
@@ -0,0 +1,443 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/**
|
4 |
+
* Squirrly SEO - Sitemap Model
|
5 |
+
*
|
6 |
+
* Used to get the sitemap format for each type
|
7 |
+
*
|
8 |
+
* @class Model_SQ_Sitemaps
|
9 |
+
*/
|
10 |
+
class Model_SQ_Sitemaps {
|
11 |
+
|
12 |
+
var $args = array();
|
13 |
+
var $frequency;
|
14 |
+
var $type;
|
15 |
+
|
16 |
+
public function __construct() {
|
17 |
+
//For sitemap ping
|
18 |
+
$this->args['timeout'] = 5;
|
19 |
+
|
20 |
+
$this->frequency = array();
|
21 |
+
$this->frequency['daily'] = array('sitemap-home' => array(1, 'daily'), 'sitemap-product' => array(0.8, 'weekly'), 'sitemap-post' => array(0.8, 'daily'), 'sitemap-page' => array(0.6, 'weekly'), 'sitemap-category' => array(0.5, 'weekly'), 'sitemap-post_tag' => array(0.5, 'daily'), 'sitemap-archive' => array(0.3, 'monthly'), 'sitemap-author' => array(0.3, 'weekly'), 'sitemap-custom-tax' => array(0.3, 'weekly'), 'sitemap-custom-post' => array(0.8, 'daily'));
|
22 |
+
$this->frequency['weekly'] = array('sitemap-home' => array(1, 'weekly'), 'sitemap-product' => array(0.8, 'weekly'), 'sitemap-post' => array(0.8, 'weekly'), 'sitemap-page' => array(0.6, 'monthly'), 'sitemap-category' => array(0.3, 'monthly'), 'sitemap-post_tag' => array(0.5, 'weekly'), 'sitemap-archive' => array(0.3, 'monthly'), 'sitemap-author' => array(0.3, 'weekly'), 'sitemap-custom-tax' => array(0.3, 'weekly'), 'sitemap-custom-post' => array(0.8, 'weekly'));
|
23 |
+
$this->frequency['monthly'] = array('sitemap-home' => array(1, 'monthly'), 'sitemap-product' => array(0.8, 'weekly'), 'sitemap-post' => array(0.8, 'monthly'), 'sitemap-page' => array(0.6, 'monthly'), 'sitemap-category' => array(0.3, 'monthly'), 'sitemap-post_tag' => array(0.5, 'monthly'), 'sitemap-archive' => array(0.3, 'monthly'), 'sitemap-author' => array(0.3, 'monthly'), 'sitemap-custom-tax' => array(0.3, 'monthly'), 'sitemap-custom-post' => array(0.8, 'monthly'));
|
24 |
+
$this->frequency['yearly'] = array('sitemap-home' => array(1, 'monthly'), 'sitemap-product' => array(0.8, 'weekly'), 'sitemap-post' => array(0.8, 'monthly'), 'sitemap-page' => array(0.6, 'yearly'), 'sitemap-category' => array(0.3, 'yearly'), 'sitemap-post_tag' => array(0.5, 'monthly'), 'sitemap-archive' => array(0.3, 'yearly'), 'sitemap-author' => array(0.3, 'yearly'), 'sitemap-custom-tax' => array(0.3, 'yearly'), 'sitemap-custom-post' => array(0.8, 'monthly'));
|
25 |
+
}
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Add the Sitemap Index
|
29 |
+
* @global type $polylang
|
30 |
+
* @return type
|
31 |
+
*/
|
32 |
+
public function getHomeLink() {
|
33 |
+
$homes = array();
|
34 |
+
$homes['contains'] = array();
|
35 |
+
global $polylang;
|
36 |
+
|
37 |
+
if (isset($polylang)) {
|
38 |
+
foreach ($polylang->get_languages_list() as $term) {
|
39 |
+
$xml = array();
|
40 |
+
$xml['loc'] = esc_url($polylang->get_home_url($term));
|
41 |
+
$xml['lastmod'] = trim(mysql2date('Y-m-d\TH:i:s+00:00', $this->lastModified(), false));
|
42 |
+
$xml['changefreq'] = $this->frequency[SQ_Tools::$options['sq_sitemap_frequency']]['sitemap-home'][1];
|
43 |
+
$xml['priority'] = $this->frequency[SQ_Tools::$options['sq_sitemap_frequency']]['sitemap-home'][0];
|
44 |
+
$homes[] = $xml;
|
45 |
+
}
|
46 |
+
} else {
|
47 |
+
$xml = array();
|
48 |
+
$xml['loc'] = home_url();
|
49 |
+
$xml['lastmod'] = trim(mysql2date('Y-m-d\TH:i:s+00:00', $this->lastModified(), false));
|
50 |
+
$xml['changefreq'] = $this->frequency[SQ_Tools::$options['sq_sitemap_frequency']]['sitemap-home'][1];
|
51 |
+
$xml['priority'] = $this->frequency[SQ_Tools::$options['sq_sitemap_frequency']]['sitemap-home'][0];
|
52 |
+
if ($post_id = get_option('page_on_front')) {
|
53 |
+
if (SQ_Tools::$options['sq_sitemap_show']['images'] == 1) {
|
54 |
+
if ($images = SQ_ObjController::getModel('SQ_Frontend')->getImagesFromContent($post_id)) {
|
55 |
+
array_push($homes['contains'], 'image');
|
56 |
+
$xml['image:image'] = array();
|
57 |
+
foreach ($images as $image) {
|
58 |
+
if (empty($image['src']))
|
59 |
+
continue;
|
60 |
+
|
61 |
+
|
62 |
+
$xml['image:image'][] = array(
|
63 |
+
'image:loc' => $image['src'],
|
64 |
+
'image:title' => $image['title'],
|
65 |
+
'image:caption' => $image['description'],
|
66 |
+
);
|
67 |
+
}
|
68 |
+
}
|
69 |
+
}
|
70 |
+
}
|
71 |
+
$homes[] = $xml;
|
72 |
+
unset($xml);
|
73 |
+
}
|
74 |
+
|
75 |
+
return $homes;
|
76 |
+
}
|
77 |
+
|
78 |
+
/**
|
79 |
+
* Add posts/pages in sitemap
|
80 |
+
* @return type
|
81 |
+
*/
|
82 |
+
public function getListPosts() {
|
83 |
+
$posts = array();
|
84 |
+
$posts['contains'] = array();
|
85 |
+
if (have_posts()) {
|
86 |
+
while (have_posts()) {
|
87 |
+
the_post();
|
88 |
+
|
89 |
+
//do not incude password protected pages in sitemap
|
90 |
+
if (post_password_required()) {
|
91 |
+
continue;
|
92 |
+
}
|
93 |
+
|
94 |
+
$post = get_post();
|
95 |
+
|
96 |
+
$xml = array();
|
97 |
+
$xml['loc'] = esc_url(get_permalink());
|
98 |
+
$xml['lastmod'] = trim(mysql2date('Y-m-d\TH:i:s+00:00', $this->lastModified(), false));
|
99 |
+
$xml['changefreq'] = $this->frequency[SQ_Tools::$options['sq_sitemap_frequency']][$this->type][1];
|
100 |
+
$xml['priority'] = $this->frequency[SQ_Tools::$options['sq_sitemap_frequency']][$this->type][0];
|
101 |
+
|
102 |
+
if (SQ_Tools::$options['sq_sitemap_show']['images'] == 1) {
|
103 |
+
if ($images = SQ_ObjController::getModel('SQ_Frontend')->getImagesFromContent($post->ID)) {
|
104 |
+
array_push($posts['contains'], 'image');
|
105 |
+
$xml['image:image'] = array();
|
106 |
+
foreach ($images as $image) {
|
107 |
+
if (empty($image['src']))
|
108 |
+
continue;
|
109 |
+
|
110 |
+
$xml['image:image'][] = array(
|
111 |
+
'image:loc' => $image['src'],
|
112 |
+
'image:title' => $image['title'],
|
113 |
+
'image:caption' => $image['description'],
|
114 |
+
);
|
115 |
+
}
|
116 |
+
}
|
117 |
+
}
|
118 |
+
|
119 |
+
if (SQ_Tools::$options['sq_sitemap_show']['videos'] == 1) {
|
120 |
+
$images = SQ_ObjController::getModel('SQ_Frontend')->getImagesFromContent($post->ID);
|
121 |
+
if (isset($images[0]['src']) && $videos = SQ_ObjController::getModel('SQ_Frontend')->getVideosFromContent($post->ID)) {
|
122 |
+
array_push($posts['contains'], 'video');
|
123 |
+
$xml['video:video'] = array();
|
124 |
+
|
125 |
+
foreach ($videos as $video) {
|
126 |
+
if ($video == '')
|
127 |
+
continue;
|
128 |
+
|
129 |
+
$xml['video:video'][$post->ID] = array(
|
130 |
+
'video:player_loc' => htmlentities($video),
|
131 |
+
'video:thumbnail_loc' => htmlentities($images[0]['src']),
|
132 |
+
'video:title' => SQ_ObjController::getModel('SQ_Frontend')->grabTitleFromPost($post->ID),
|
133 |
+
'video:description' => SQ_ObjController::getModel('SQ_Frontend')->grabDescriptionFromPost($post->ID),
|
134 |
+
);
|
135 |
+
|
136 |
+
//set the first keyword for this video
|
137 |
+
$keywords = SQ_ObjController::getModel('SQ_Frontend')->grabKeywordsFromPost($post->ID);
|
138 |
+
$keywords = preg_split('/,/', $keywords);
|
139 |
+
if (is_array($keywords)) {
|
140 |
+
$xml['video:video'][$post->ID]['video:tag'] = $keywords[0];
|
141 |
+
}
|
142 |
+
}
|
143 |
+
}
|
144 |
+
}
|
145 |
+
$posts[] = $xml;
|
146 |
+
unset($xml);
|
147 |
+
}
|
148 |
+
}
|
149 |
+
|
150 |
+
return $posts;
|
151 |
+
}
|
152 |
+
|
153 |
+
/**
|
154 |
+
* Add the post news in sitemap
|
155 |
+
* If the site is registeres for google news
|
156 |
+
* @return type
|
157 |
+
*/
|
158 |
+
public function getListNews() {
|
159 |
+
$posts = array();
|
160 |
+
$posts['contains'] = array();
|
161 |
+
|
162 |
+
if (have_posts()) {
|
163 |
+
while (have_posts()) {
|
164 |
+
the_post();
|
165 |
+
$post = get_post();
|
166 |
+
|
167 |
+
$xml = array();
|
168 |
+
|
169 |
+
$xml['loc'] = esc_url(get_permalink());
|
170 |
+
$language = convert_chars(strip_tags(get_bloginfo('language')));
|
171 |
+
$language = substr($language, 0, strpos($language, '-'));
|
172 |
+
if ($language == '')
|
173 |
+
$language = 'en';
|
174 |
+
|
175 |
+
$xml['news:news'][$post->ID] = array(
|
176 |
+
'news:publication' => array(
|
177 |
+
'news:name' => $this->sanitizeString(get_bloginfo('name')),
|
178 |
+
'news:language' => $language
|
179 |
+
)
|
180 |
+
);
|
181 |
+
$xml['news:news'][$post->ID]['news:publication_date'] = trim(mysql2date('Y-m-d\TH:i:s+00:00', $this->lastModified(), false));
|
182 |
+
$xml['news:news'][$post->ID]['news:title'] = $this->sanitizeString(get_the_title());
|
183 |
+
$xml['news:news'][$post->ID]['news:keywords'] = (string) SQ_ObjController::getModel('SQ_Frontend')->grabKeywordsFromPost($post->ID);
|
184 |
+
|
185 |
+
|
186 |
+
if (SQ_Tools::$options['sq_sitemap_show']['images'] == 1) {
|
187 |
+
if ($images = SQ_ObjController::getModel('SQ_Frontend')->getImagesFromContent($post->ID)) {
|
188 |
+
array_push($posts['contains'], 'image');
|
189 |
+
$xml['image:image'] = array();
|
190 |
+
foreach ($images as $image) {
|
191 |
+
if (empty($image['src']))
|
192 |
+
continue;
|
193 |
+
|
194 |
+
$xml['image:image'][] = array(
|
195 |
+
'image:loc' => $image['src'],
|
196 |
+
'image:title' => $image['title'],
|
197 |
+
'image:caption' => $image['description'],
|
198 |
+
);
|
199 |
+
}
|
200 |
+
}
|
201 |
+
}
|
202 |
+
|
203 |
+
if (SQ_Tools::$options['sq_sitemap_show']['videos'] == 1) {
|
204 |
+
$images = SQ_ObjController::getModel('SQ_Frontend')->getImagesFromContent($post->ID);
|
205 |
+
if (isset($images[0]['src']) && $videos = SQ_ObjController::getModel('SQ_Frontend')->getVideosFromContent($post->ID)) {
|
206 |
+
array_push($posts['contains'], 'video');
|
207 |
+
$xml['video:video'] = array();
|
208 |
+
foreach ($videos as $video) {
|
209 |
+
if ($video == '')
|
210 |
+
continue;
|
211 |
+
|
212 |
+
$xml['video:video'][$post->ID] = array(
|
213 |
+
'video:player_loc' => $video,
|
214 |
+
'video:thumbnail_loc' => $images[0]['src'],
|
215 |
+
'video:title' => SQ_ObjController::getModel('SQ_Frontend')->grabTitleFromPost($post->ID),
|
216 |
+
'video:description' => SQ_ObjController::getModel('SQ_Frontend')->grabDescriptionFromPost($post->ID),
|
217 |
+
);
|
218 |
+
|
219 |
+
//set the first keyword for this video
|
220 |
+
$keywords = SQ_ObjController::getModel('SQ_Frontend')->grabKeywordsFromPost($post->ID);
|
221 |
+
$keywords = preg_split('/,/', $keywords);
|
222 |
+
if (is_array($keywords)) {
|
223 |
+
$xml['video:video'][$post->ID]['video:tag'] = $keywords[0];
|
224 |
+
}
|
225 |
+
}
|
226 |
+
}
|
227 |
+
}
|
228 |
+
$posts[] = $xml;
|
229 |
+
unset($xml);
|
230 |
+
}
|
231 |
+
}
|
232 |
+
|
233 |
+
return $posts;
|
234 |
+
}
|
235 |
+
|
236 |
+
/**
|
237 |
+
* Add the Taxonomies in sitemap
|
238 |
+
* @param type $type
|
239 |
+
* @return type
|
240 |
+
*/
|
241 |
+
public function getListTerms($type = null) {
|
242 |
+
if (!isset($type)) {
|
243 |
+
$type = $this->type;
|
244 |
+
}
|
245 |
+
|
246 |
+
$terms = $array = array();
|
247 |
+
$array['contains'] = array();
|
248 |
+
if ($type == 'sitemap-custom-tax') {
|
249 |
+
$taxonomies = $this->excludeTypes(get_taxonomies(), array('category', 'post_tag', 'nav_menu', 'link_category', 'post_format'));
|
250 |
+
if (!empty($taxonomies)) {
|
251 |
+
$taxonomies = array_unique($taxonomies);
|
252 |
+
}
|
253 |
+
foreach ($taxonomies as $taxonomy) {
|
254 |
+
$array = array_merge($array, $this->getListTerms($taxonomy));
|
255 |
+
}
|
256 |
+
} else {
|
257 |
+
$terms = get_terms(str_replace('sitemap-', '', $type));
|
258 |
+
}
|
259 |
+
|
260 |
+
if (!isset(SQ_Tools::$options['sq_sitemap'][$type])) {
|
261 |
+
$type = 'sitemap-custom-tax';
|
262 |
+
}
|
263 |
+
|
264 |
+
if (!empty($terms)) {
|
265 |
+
foreach ($terms AS $term) {
|
266 |
+
$xml = array();
|
267 |
+
|
268 |
+
$xml['loc'] = esc_url(get_term_link($term, $term->taxonomy));
|
269 |
+
$xml['lastmod'] = date('Y-m-d\TH:i:s+00:00', $term->lastmod);
|
270 |
+
$xml['changefreq'] = $this->frequency[SQ_Tools::$options['sq_sitemap_frequency']][$type][1];
|
271 |
+
$xml['priority'] = $this->frequency[SQ_Tools::$options['sq_sitemap_frequency']][$type][0];
|
272 |
+
|
273 |
+
$array[] = $xml;
|
274 |
+
}
|
275 |
+
}
|
276 |
+
return $array;
|
277 |
+
}
|
278 |
+
|
279 |
+
/**
|
280 |
+
* Add the authors in sitemap
|
281 |
+
* @return type
|
282 |
+
*/
|
283 |
+
public function getListAuthors() {
|
284 |
+
$authors = $array = array();
|
285 |
+
$authors = apply_filters('sq-sitemap-authors', $this->type);
|
286 |
+
|
287 |
+
if (!empty($authors)) {
|
288 |
+
foreach ($authors AS $author) {
|
289 |
+
$xml = array();
|
290 |
+
|
291 |
+
$xml['loc'] = get_author_posts_url($author->ID, $author->user_nicename);
|
292 |
+
if (isset($author->lastmod) && $author->lastmod <> '')
|
293 |
+
$xml['lastmod'] = date('Y-m-d\TH:i:s+00:00', strtotime($author->lastmod));
|
294 |
+
$xml['changefreq'] = $this->frequency[SQ_Tools::$options['sq_sitemap_frequency']][$this->type][1];
|
295 |
+
$xml['priority'] = $this->frequency[SQ_Tools::$options['sq_sitemap_frequency']][$this->type][0];
|
296 |
+
|
297 |
+
$array[] = $xml;
|
298 |
+
}
|
299 |
+
}
|
300 |
+
return $array;
|
301 |
+
}
|
302 |
+
|
303 |
+
/**
|
304 |
+
* Add the archive in sitemap
|
305 |
+
* @return type
|
306 |
+
*/
|
307 |
+
public function getListArchive() {
|
308 |
+
$array = array();
|
309 |
+
$archives = apply_filters('sq-sitemap-archive', $this->type);
|
310 |
+
if (!empty($archives)) {
|
311 |
+
foreach ($archives as $archive) {
|
312 |
+
$xml = array();
|
313 |
+
|
314 |
+
$xml['loc'] = get_month_link($archive->year, $archive->month);
|
315 |
+
if (isset($archive->lastmod) && $archive->lastmod <> '')
|
316 |
+
$xml['lastmod'] = date('Y-m-d\TH:i:s+00:00', strtotime($archive->lastmod));
|
317 |
+
|
318 |
+
$xml['changefreq'] = $this->frequency[SQ_Tools::$options['sq_sitemap_frequency']][$this->type][1];
|
319 |
+
$xml['priority'] = $this->frequency[SQ_Tools::$options['sq_sitemap_frequency']][$this->type][0];
|
320 |
+
|
321 |
+
$array[] = $xml;
|
322 |
+
}
|
323 |
+
}
|
324 |
+
|
325 |
+
return $array;
|
326 |
+
}
|
327 |
+
|
328 |
+
private function sanitizeString($string) {
|
329 |
+
return esc_html(ent2ncr(strip_tags($string)));
|
330 |
+
}
|
331 |
+
|
332 |
+
/**
|
333 |
+
* Get the last modified date for the specific post/page
|
334 |
+
*
|
335 |
+
* @global WP_Post $post
|
336 |
+
* @param string $sitemap
|
337 |
+
* @param string $term
|
338 |
+
* @return string
|
339 |
+
*/
|
340 |
+
public function lastModified($sitemap = 'post_type', $term = '') {
|
341 |
+
if ('post_type' == $sitemap) :
|
342 |
+
|
343 |
+
global $post;
|
344 |
+
|
345 |
+
if (isset($post->ID)) {
|
346 |
+
// if blog page look for last post date
|
347 |
+
if ($post->post_type == 'page' && $this->is_home($post->ID))
|
348 |
+
return get_lastmodified('GMT', 'post');
|
349 |
+
|
350 |
+
if (empty($this->postmodified[$post->ID])) {
|
351 |
+
$postmodified = get_post_modified_time('Y-m-d H:i:s', true, $post->ID);
|
352 |
+
$options = get_option('post_types');
|
353 |
+
|
354 |
+
if (!empty($options[$post->post_type]['update_lastmod_on_comments']))
|
355 |
+
$lastcomment = get_comments(array(
|
356 |
+
'status' => 'approve',
|
357 |
+
'number' => 1,
|
358 |
+
'post_id' => $post->ID,
|
359 |
+
));
|
360 |
+
|
361 |
+
if (isset($lastcomment[0]->comment_date_gmt))
|
362 |
+
if (mysql2date('U', $lastcomment[0]->comment_date_gmt) > mysql2date('U', $postmodified))
|
363 |
+
$postmodified = $lastcomment[0]->comment_date_gmt;
|
364 |
+
|
365 |
+
$this->postmodified[$post->ID] = $postmodified;
|
366 |
+
}
|
367 |
+
}
|
368 |
+
return $this->postmodified[$post->ID];
|
369 |
+
|
370 |
+
elseif (!empty($term)) :
|
371 |
+
|
372 |
+
if (is_object($term)) {
|
373 |
+
if (!isset($this->termmodified[$term->term_id])) {
|
374 |
+
// get the latest post in this taxonomy item, to use its post_date as lastmod
|
375 |
+
$posts = get_posts(array(
|
376 |
+
'post_type' => 'any',
|
377 |
+
'numberposts' => 1,
|
378 |
+
'no_found_rows' => true,
|
379 |
+
'update_post_meta_cache' => false,
|
380 |
+
'update_post_term_cache' => false,
|
381 |
+
'update_cache' => false,
|
382 |
+
'tax_query' => array(
|
383 |
+
array(
|
384 |
+
'taxonomy' => $term->taxonomy,
|
385 |
+
'field' => 'slug',
|
386 |
+
'terms' => $term->slug
|
387 |
+
)
|
388 |
+
)
|
389 |
+
)
|
390 |
+
);
|
391 |
+
$this->termmodified[$term->term_id] = isset($posts[0]->post_date_gmt) ? $posts[0]->post_date_gmt : '';
|
392 |
+
}
|
393 |
+
return $this->termmodified[$term->term_id];
|
394 |
+
} else {
|
395 |
+
$obj = get_taxonomy($term);
|
396 |
+
return get_lastdate('gmt', $obj->object_type);
|
397 |
+
}
|
398 |
+
|
399 |
+
else :
|
400 |
+
|
401 |
+
return '0000-00-00 00:00:00';
|
402 |
+
|
403 |
+
endif;
|
404 |
+
}
|
405 |
+
|
406 |
+
/**
|
407 |
+
* Check if the current page is the home page
|
408 |
+
* @global type $polylang
|
409 |
+
* @param type $id
|
410 |
+
* @return type
|
411 |
+
*/
|
412 |
+
public function is_home($id) {
|
413 |
+
$home = array();
|
414 |
+
$id = get_option('page_for_posts');
|
415 |
+
|
416 |
+
if (!empty($id)) {
|
417 |
+
global $polylang;
|
418 |
+
if (isset($polylang)) {
|
419 |
+
$home = $polylang->get_translations('post', $id);
|
420 |
+
} else {
|
421 |
+
$home = array($id);
|
422 |
+
}
|
423 |
+
}
|
424 |
+
|
425 |
+
return in_array($id, $home);
|
426 |
+
}
|
427 |
+
|
428 |
+
/**
|
429 |
+
* Excude types from array
|
430 |
+
* @param array $types
|
431 |
+
* @param array $exclude
|
432 |
+
* @return array
|
433 |
+
*/
|
434 |
+
public function excludeTypes($types, $exclude) {
|
435 |
+
foreach ($exclude as $value) {
|
436 |
+
if (in_array($value, $types)) {
|
437 |
+
unset($types[$value]);
|
438 |
+
}
|
439 |
+
}
|
440 |
+
return $types;
|
441 |
+
}
|
442 |
+
|
443 |
+
}
|
readme.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== SEO by SQUIRRLY ===
|
2 |
Contributors: cifi, calinvingan, florinmuresan
|
3 |
Tags: seo,seo optimization,seo content,seo plugin,wordpress seo,plugin,content seo,search engine optimization,xml,sitemap,keyword,keyword research,post,posts,page,squirrly,tag,image,images,photos,flickr,statistics,stats,google,content,title,description,favicon,mobile,canonical,author,google plus,analytics,admin,seo correction,seo title,seo meta,meta,google,twitter,news,blog,e-commerce,ecommerce,woocommerce,feed,feeds,marketing,multisite,buddypress,social,social media,url,automatic,iphone
|
4 |
-
Requires at least: 3.
|
5 |
Tested up to: 4.2
|
6 |
-
Stable tag:
|
7 |
Donate link: https://www.squirrly.co
|
8 |
|
9 |
SEO Plugin By Squirrly is for the NON-SEO experts. Get Excellent Seo with Better Content, Ranking and Analytics. For Both Humans and Search Bots.
|
@@ -137,6 +137,30 @@ Type a keyword to the right of the screen and start using Squirrly Seo. Enjoy!
|
|
137 |
|
138 |
|
139 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
= 3.4.4 =
|
141 |
* Updated the Twitter Card information
|
142 |
* Compatible with WP 4.1.1
|
@@ -271,7 +295,6 @@ Type a keyword to the right of the screen and start using Squirrly Seo. Enjoy!
|
|
271 |
* Fixed the Favicon issue for PNG images
|
272 |
|
273 |
|
274 |
-
|
275 |
== Credits ==
|
276 |
Florin Muresan - CEO at Squirrly
|
277 |
Calin Vingan - CTO at Squirrly
|
@@ -401,5 +424,5 @@ It all depends on how you have setup your wordpress until now. Some people use S
|
|
401 |
|
402 |
== Upgrade Notice ==
|
403 |
|
404 |
-
=
|
405 |
-
|
1 |
=== SEO by SQUIRRLY ===
|
2 |
Contributors: cifi, calinvingan, florinmuresan
|
3 |
Tags: seo,seo optimization,seo content,seo plugin,wordpress seo,plugin,content seo,search engine optimization,xml,sitemap,keyword,keyword research,post,posts,page,squirrly,tag,image,images,photos,flickr,statistics,stats,google,content,title,description,favicon,mobile,canonical,author,google plus,analytics,admin,seo correction,seo title,seo meta,meta,google,twitter,news,blog,e-commerce,ecommerce,woocommerce,feed,feeds,marketing,multisite,buddypress,social,social media,url,automatic,iphone
|
4 |
+
Requires at least: 3.5
|
5 |
Tested up to: 4.2
|
6 |
+
Stable tag: 3.4.4
|
7 |
Donate link: https://www.squirrly.co
|
8 |
|
9 |
SEO Plugin By Squirrly is for the NON-SEO experts. Get Excellent Seo with Better Content, Ranking and Analytics. For Both Humans and Search Bots.
|
137 |
|
138 |
|
139 |
== Changelog ==
|
140 |
+
|
141 |
+
= 5.0.0 =
|
142 |
+
* Changed Squirrly look
|
143 |
+
* Compatible with WP eCommerce plugin
|
144 |
+
* Made SEO improvements for Woocommerce plugin
|
145 |
+
* Interactive learning for the entire Squirrly SEO plugin
|
146 |
+
* Faster post save for long text and remote images
|
147 |
+
* Settings and SEO check improved
|
148 |
+
* Added robots.txt for multisites with security
|
149 |
+
* Added sitemap for multisites
|
150 |
+
* Added sitemap for images and videos for each article
|
151 |
+
* Added the Json LD in Structured Data META
|
152 |
+
* Added the social linked Data for Json LD and publisher
|
153 |
+
* Added the favicon.ico for multisites
|
154 |
+
* Added the icos for apple devices
|
155 |
+
* Added the SEO progress in post editor
|
156 |
+
* Added the SEO Star option in Dashboard
|
157 |
+
* Fixed bugs for multisites and made it compatible with WP 4.2
|
158 |
+
* Fixed the snippet title and description special chars
|
159 |
+
* Fixed the custom fields variable in post editor
|
160 |
+
* Fixed the site icon and added the site icon for multisites
|
161 |
+
* Fixed Sitemap for default permalink option
|
162 |
+
|
163 |
+
|
164 |
= 3.4.4 =
|
165 |
* Updated the Twitter Card information
|
166 |
* Compatible with WP 4.1.1
|
295 |
* Fixed the Favicon issue for PNG images
|
296 |
|
297 |
|
|
|
298 |
== Credits ==
|
299 |
Florin Muresan - CEO at Squirrly
|
300 |
Calin Vingan - CTO at Squirrly
|
424 |
|
425 |
== Upgrade Notice ==
|
426 |
|
427 |
+
= 5.0.0 =
|
428 |
+
5.0.0 is an important update. Different Squirrly look. Compatible with eCommerce plugins. Added interactive learning features. Added robots.txt and sitemap.xml for multisites. Added the JSON-LD. Option to show Squirrly for selected Post Types and more.
|
squirrly.php
CHANGED
@@ -8,12 +8,12 @@
|
|
8 |
Plugin URI: http://www.squirrly.co
|
9 |
Description: SEO Plugin By Squirrly is for the NON-SEO experts. Get Excellent Seo with Better Content, Ranking and Analytics. For Both Humans and Search Bots.<BR> <a href="http://my.squirrly.co/user" target="_blank"><strong>Check your profile</strong></a>
|
10 |
Author: cifi, calinvingan, florinmuresan
|
11 |
-
Version:
|
12 |
Author URI: http://www.squirrly.co
|
13 |
*/
|
14 |
|
15 |
/* SET THE CURRENT VERSION ABOVE AND BELOW */
|
16 |
-
define('SQ_VERSION', '
|
17 |
/* Call config files */
|
18 |
if (file_exists(dirname(__FILE__) . '/config/config.php')) {
|
19 |
require(dirname(__FILE__) . '/config/config.php');
|
@@ -58,6 +58,4 @@ if (file_exists(dirname(__FILE__) . '/config/config.php')) {
|
|
58 |
*/
|
59 |
register_activation_hook(__FILE__, array(SQ_ObjController::getController('SQ_Tools', false), 'sq_activate'));
|
60 |
register_deactivation_hook(__FILE__, array(SQ_ObjController::getController('SQ_Tools', false), 'sq_deactivate'));
|
61 |
-
}
|
62 |
-
|
63 |
-
|
8 |
Plugin URI: http://www.squirrly.co
|
9 |
Description: SEO Plugin By Squirrly is for the NON-SEO experts. Get Excellent Seo with Better Content, Ranking and Analytics. For Both Humans and Search Bots.<BR> <a href="http://my.squirrly.co/user" target="_blank"><strong>Check your profile</strong></a>
|
10 |
Author: cifi, calinvingan, florinmuresan
|
11 |
+
Version: 5.0.0
|
12 |
Author URI: http://www.squirrly.co
|
13 |
*/
|
14 |
|
15 |
/* SET THE CURRENT VERSION ABOVE AND BELOW */
|
16 |
+
define('SQ_VERSION', '5.0.0');
|
17 |
/* Call config files */
|
18 |
if (file_exists(dirname(__FILE__) . '/config/config.php')) {
|
19 |
require(dirname(__FILE__) . '/config/config.php');
|
58 |
*/
|
59 |
register_activation_hook(__FILE__, array(SQ_ObjController::getController('SQ_Tools', false), 'sq_activate'));
|
60 |
register_deactivation_hook(__FILE__, array(SQ_ObjController::getController('SQ_Tools', false), 'sq_deactivate'));
|
61 |
+
}
|
|
|
|
themes/default/SQ_BlocStatus.php
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
|
|
themes/default/SQ_BlockAccount.php
CHANGED
@@ -2,40 +2,33 @@
|
|
2 |
<?php SQ_ObjController::getBlock('SQ_BlockSupport')->init(); ?>
|
3 |
|
4 |
<?php if (SQ_Tools::$options['sq_api'] <> '') { ?>
|
5 |
-
<
|
6 |
<span class="sq_icon"></span>
|
7 |
<div id="sq_settings_title" ><?php _e('Squirrly account information', _SQ_PLUGIN_NAME_); ?> </div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
<div id="sq_settings_body" style="min-height: 400px;">
|
9 |
-
<?php if (SQ_Tools::$options['
|
10 |
-
<div id="
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
<p id="sq_survey_msg"><textarea class="sq_small_input" name="sq_survey_message" cols="60" rows="10"></textarea></p>
|
17 |
-
<div id="sq_survey_error"></div>
|
18 |
-
<p><div id="sq_survey_close" ><?php echo __('[stop showing this message]', _SQ_PLUGIN_NAME_) ?></div> <input id="sq_survey_submit" type="button" value="<?php _e('Send Reply', _SQ_PLUGIN_NAME_) ?>"> </p>
|
19 |
-
</li>
|
20 |
-
</ul>
|
21 |
-
</div>
|
22 |
<?php } ?>
|
23 |
-
<?php
|
24 |
-
if (SQ_Tools::$options['sq_api'] <> '') {
|
25 |
-
echo '<fieldset style="background: none; border: none; box-shadow: none;"><div id="sq_userinfo"></div></fieldset>
|
26 |
-
<script type="text/javascript">
|
27 |
-
jQuery(document).ready(function() {
|
28 |
-
sq_getUserStatus("' . _SQ_API_URL_ . '", "' . SQ_Tools::$options['sq_api'] . '");
|
29 |
-
});
|
30 |
-
</script>';
|
31 |
-
}
|
32 |
-
?>
|
33 |
-
<div id="sq_settings_title" style="text-align: right">
|
34 |
-
<input id="sq_goto_dashboard" type="button" value="<?php _e('Go to dashboard', _SQ_PLUGIN_NAME_) ?> »" />
|
35 |
-
</div>
|
36 |
|
37 |
</div>
|
38 |
-
</form>
|
39 |
|
40 |
-
|
41 |
-
|
|
|
|
|
|
2 |
<?php SQ_ObjController::getBlock('SQ_BlockSupport')->init(); ?>
|
3 |
|
4 |
<?php if (SQ_Tools::$options['sq_api'] <> '') { ?>
|
5 |
+
<div>
|
6 |
<span class="sq_icon"></span>
|
7 |
<div id="sq_settings_title" ><?php _e('Squirrly account information', _SQ_PLUGIN_NAME_); ?> </div>
|
8 |
+
<div id="sq_settings_title" style="text-align: right">
|
9 |
+
<input id="sq_goto_dashboard" type="button" value="<?php _e('Go to dashboard', _SQ_PLUGIN_NAME_) ?> »" />
|
10 |
+
<br style="clear: both;">
|
11 |
+
</div>
|
12 |
+
</div>
|
13 |
+
<?php } ?>
|
14 |
+
<div id="sq_helpaccountside" class="sq_helpside"></div>
|
15 |
+
<div id="sq_left">
|
16 |
+
|
17 |
+
<?php if (SQ_Tools::$options['sq_api'] <> '') { ?>
|
18 |
<div id="sq_settings_body" style="min-height: 400px;">
|
19 |
+
<?php if (SQ_Tools::$options['sq_api'] <> '') { ?>
|
20 |
+
<fieldset style="background: none; border: none; box-shadow: none;"><div id="sq_userinfo" class="sq_loading"></div></fieldset>
|
21 |
+
<script type="text/javascript">
|
22 |
+
jQuery(document).ready(function () {
|
23 |
+
sq_getUserStatus();
|
24 |
+
});
|
25 |
+
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
</div>
|
|
|
29 |
|
30 |
+
<?php } ?>
|
31 |
+
|
32 |
+
</div>
|
33 |
+
<div id="sq_sidehelp"></div>
|
34 |
+
</div>
|
themes/default/SQ_BlockAffiliate.php
CHANGED
@@ -1,105 +1,103 @@
|
|
1 |
<div id="sq_settings" >
|
2 |
<?php SQ_ObjController::getBlock('SQ_BlockSupport')->init(); ?>
|
3 |
-
<
|
4 |
<span class="sq_icon"></span>
|
5 |
<div id="sq_settings_title" ><?php _e('Join Squirrly today!', _SQ_PLUGIN_NAME_); ?> </div>
|
6 |
-
<div id="
|
7 |
-
<?php
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
<fieldset>
|
15 |
-
<legend>
|
16 |
-
<span class="sq_legend_title"><?php _e('Join Squirrly today!', _SQ_PLUGIN_NAME_); ?></span>
|
17 |
-
<span><?php echo sprintf(__('%sHow I Started Making Money With the Squirrly Affiliate Program%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/affiliate_program_squirrly-pagblog-article_id62228.html" target="_blank">', '</a>'); ?></span>
|
18 |
-
|
19 |
-
<span><p class="sq_settings_affiliate_bigtitle">
|
20 |
-
<?php _e('Affiliate Benefits', _SQ_PLUGIN_NAME_); ?>
|
21 |
-
</p>
|
22 |
-
<ul class="sq_settings_affiliate_info">
|
23 |
-
<li>
|
24 |
-
<div>
|
25 |
-
<span><?php echo sprintf(__('- Recurring 45%s commission', _SQ_PLUGIN_NAME_), '%'); ?></span>
|
26 |
-
</div>
|
27 |
-
</li>
|
28 |
-
<li>
|
29 |
-
<div>
|
30 |
-
<span><?php _e('- No cost', _SQ_PLUGIN_NAME_); ?></span>
|
31 |
-
</div>
|
32 |
-
</li>
|
33 |
-
<li>
|
34 |
-
<div>
|
35 |
-
<span><?php _e('- Monthly payments in your Paypal account', _SQ_PLUGIN_NAME_); ?></span>
|
36 |
-
</div>
|
37 |
-
</li>
|
38 |
-
</ul></span>
|
39 |
-
</legend>
|
40 |
-
<div>
|
41 |
-
<p class="sq_settings_affiliate_bigbutton" style="margin-bottom:35px;">
|
42 |
-
<?php
|
43 |
-
if (SQ_Tools::$options['sq_api'] <> '')
|
44 |
-
if (SQ_Tools::$options['sq_affiliate_link'] <> '') {
|
45 |
-
echo '<span>' . SQ_Tools::$options['sq_affiliate_link'] . '</span>';
|
46 |
-
echo '<span class="sq_settings_info">' . __('To redirect users to your site, just change "squirrly.co" with your domain.', _SQ_PLUGIN_NAME_) . '</span>';
|
47 |
-
} else {
|
48 |
-
?><input type="submit" name="sq_affiliate_link" value="<?php _e('Generate affiliate link', _SQ_PLUGIN_NAME_) ?> »" /><?php
|
49 |
-
}
|
50 |
-
?>
|
51 |
-
</p>
|
52 |
-
|
53 |
-
<?php
|
54 |
-
if (SQ_Tools::$options['sq_api'] <> '') {
|
55 |
-
if (SQ_Tools::$options['sq_affiliate_link'] <> '') {
|
56 |
-
echo __('Your affiliate account is set and ready to go. Above you have the affiliate link. ', _SQ_PLUGIN_NAME_);
|
57 |
-
echo '<br />';
|
58 |
-
echo sprintf(__('Check your affiliate page: %sAffiliate page%s', _SQ_PLUGIN_NAME_), '<a href="' . _SQ_DASH_URL_ . 'login/?token=' . SQ_Tools::$options['sq_api'] . '&redirect_to=' . _SQ_DASH_URL_ . 'user/affiliate' . '" target="_blank" style="font-weight:bold">', '</a>');
|
59 |
-
} else {
|
60 |
-
echo sprintf(__('%sTerms of Use for our Affiliate Program%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/partnertermsofuse-pag68354.html" target="_blank" style="font-weight:bold">', '</a>');
|
61 |
-
}
|
62 |
-
} else {
|
63 |
-
echo __('After you connect to Squirrly you can begin to use your free Squirrly affiliate link immediately!', _SQ_PLUGIN_NAME_);
|
64 |
-
}
|
65 |
-
?>
|
66 |
-
</div>
|
67 |
|
68 |
-
</fieldset>
|
69 |
-
<?php if (SQ_Tools::$options['sq_affiliate_link'] <> '') { ?>
|
70 |
<fieldset>
|
71 |
-
<legend
|
72 |
-
<span class="sq_legend_title"><?php _e('Squirrly
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
</legend>
|
74 |
<div>
|
75 |
-
<
|
76 |
<?php
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
echo '<textarea style="width: 500px; height: 45px;" onclick="this.focus(); this.select();"><a href="' . SQ_Tools::$options['sq_affiliate_link'] . '" target="_blank" title="Seo Plugin by Squirrly"><img src="' . $sq_affiliate_image . '" /></a></textarea>';
|
85 |
-
echo '</span></li>';
|
86 |
}
|
87 |
?>
|
88 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
</div>
|
90 |
|
91 |
</fieldset>
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
105 |
</div>
|
1 |
<div id="sq_settings" >
|
2 |
<?php SQ_ObjController::getBlock('SQ_BlockSupport')->init(); ?>
|
3 |
+
<div>
|
4 |
<span class="sq_icon"></span>
|
5 |
<div id="sq_settings_title" ><?php _e('Join Squirrly today!', _SQ_PLUGIN_NAME_); ?> </div>
|
6 |
+
<div id="sq_settings_title" >
|
7 |
+
<input id="sq_goto_dashboard" type="button" value="<?php _e('Go to dashboard', _SQ_PLUGIN_NAME_) ?> »" />
|
8 |
+
</div>
|
9 |
+
</div>
|
10 |
+
<div id="sq_helpaffiliateside" class="sq_helpside"></div>
|
11 |
+
<div id="sq_left">
|
12 |
+
<form id="sq_settings_affiliate_form" name="settings" action="" method="post" enctype="multipart/form-data">
|
13 |
+
<div id="sq_settings_body">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
|
|
|
|
|
15 |
<fieldset>
|
16 |
+
<legend>
|
17 |
+
<span class="sq_legend_title"><?php _e('Join Squirrly today!', _SQ_PLUGIN_NAME_); ?></span>
|
18 |
+
<span><?php echo sprintf(__('%sHow I Started Making Money With the Squirrly Affiliate Program%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/affiliate_program_squirrly-pagblog-article_id62228.html" target="_blank">', '</a>'); ?></span>
|
19 |
+
|
20 |
+
<span><p class="sq_settings_affiliate_bigtitle">
|
21 |
+
<?php _e('Affiliate Benefits', _SQ_PLUGIN_NAME_); ?>
|
22 |
+
</p>
|
23 |
+
<ul class="sq_settings_affiliate_info">
|
24 |
+
<li>
|
25 |
+
<div>
|
26 |
+
<span><?php echo sprintf(__('- Recurring 45%s commission', _SQ_PLUGIN_NAME_), '%'); ?></span>
|
27 |
+
</div>
|
28 |
+
</li>
|
29 |
+
<li>
|
30 |
+
<div>
|
31 |
+
<span><?php _e('- No cost', _SQ_PLUGIN_NAME_); ?></span>
|
32 |
+
</div>
|
33 |
+
</li>
|
34 |
+
<li>
|
35 |
+
<div>
|
36 |
+
<span><?php _e('- Monthly payments in your Paypal account', _SQ_PLUGIN_NAME_); ?></span>
|
37 |
+
</div>
|
38 |
+
</li>
|
39 |
+
</ul></span>
|
40 |
</legend>
|
41 |
<div>
|
42 |
+
<p class="sq_settings_affiliate_bigbutton" style="margin-bottom:35px;">
|
43 |
<?php
|
44 |
+
if (SQ_Tools::$options['sq_api'] <> '') {
|
45 |
+
if (SQ_Tools::$options['sq_affiliate_link'] <> '') {
|
46 |
+
echo '<span>' . SQ_Tools::$options['sq_affiliate_link'] . '</span>';
|
47 |
+
echo '<span class="sq_settings_info">' . __('To redirect users to your site, just change "squirrly.co" with your domain.', _SQ_PLUGIN_NAME_) . '</span>';
|
48 |
+
} else {
|
49 |
+
?><input type="submit" name="sq_affiliate_link" value="<?php _e('Generate affiliate link', _SQ_PLUGIN_NAME_) ?> »" /><?php
|
50 |
+
}
|
|
|
|
|
51 |
}
|
52 |
?>
|
53 |
+
</p>
|
54 |
+
|
55 |
+
<?php
|
56 |
+
if (SQ_Tools::$options['sq_api'] <> '') {
|
57 |
+
if (SQ_Tools::$options['sq_affiliate_link'] <> '') {
|
58 |
+
echo __('Your affiliate account is set and ready to go. Above you have the affiliate link. ', _SQ_PLUGIN_NAME_);
|
59 |
+
echo '<br />';
|
60 |
+
echo sprintf(__('Check your affiliate page: %sAffiliate page%s', _SQ_PLUGIN_NAME_), '<a href="' . _SQ_DASH_URL_ . 'login/?token=' . SQ_Tools::$options['sq_api'] . '&redirect_to=' . _SQ_DASH_URL_ . 'user/affiliate' . '" target="_blank" style="font-weight:bold">', '</a>');
|
61 |
+
}
|
62 |
+
} else {
|
63 |
+
echo __('After you connect to Squirrly you can begin to use your free Squirrly affiliate link immediately!', _SQ_PLUGIN_NAME_);
|
64 |
+
}
|
65 |
+
?>
|
66 |
</div>
|
67 |
|
68 |
</fieldset>
|
69 |
+
<?php if (SQ_Tools::$options['sq_affiliate_link'] <> '') { ?>
|
70 |
+
<fieldset>
|
71 |
+
<legend class="sq_legend_big" style=" min-height: 1200px">
|
72 |
+
<span class="sq_legend_title"><?php _e('Squirrly banners you can use', _SQ_PLUGIN_NAME_); ?></span>
|
73 |
+
</legend>
|
74 |
+
<div>
|
75 |
+
<ul class="sq_settings_affiliate_info">
|
76 |
+
<?php
|
77 |
+
$sq_affiliate_images[] = _SQ_THEME_URL_ . 'img/banners/banner1.jpg';
|
78 |
+
$sq_affiliate_images[] = _SQ_THEME_URL_ . 'img/banners/banner1.png';
|
79 |
+
$sq_affiliate_images[] = _SQ_THEME_URL_ . 'img/banners/banner2.jpg';
|
80 |
+
$sq_affiliate_images[] = _SQ_THEME_URL_ . 'img/banners/banner2.png';
|
81 |
+
|
82 |
+
foreach ($sq_affiliate_images as $sq_affiliate_image) {
|
83 |
+
echo '<li><a href="' . SQ_Tools::$options['sq_affiliate_link'] . '" target="_blank"><img src="' . $sq_affiliate_image . '" alt="Seo Plugin by Squirrly" /></a>';
|
84 |
+
echo '<span class="sq_affiliate_banner" >';
|
85 |
+
echo '<textarea style="width: 500px; height: 45px;" onclick="this.focus(); this.select();"><a href="' . SQ_Tools::$options['sq_affiliate_link'] . '" target="_blank" title="Seo Plugin by Squirrly"><img src="' . $sq_affiliate_image . '" /></a></textarea>';
|
86 |
+
echo '</span></li>';
|
87 |
+
}
|
88 |
+
?>
|
89 |
+
</ul>
|
90 |
+
</div>
|
91 |
+
|
92 |
+
</fieldset>
|
93 |
+
<?php } ?>
|
94 |
+
</div>
|
95 |
+
<br style="clear: both;"/>
|
96 |
+
<div id="sq_settings_title" style="text-align: right">
|
97 |
+
<a href="?page=sq_dashboard" id="sq_goto_newpost" style="display:none" /><?php _e('<< START HERE >>', _SQ_PLUGIN_NAME_) ?></a>
|
98 |
+
</div>
|
99 |
+
<input type="hidden" name="action" value="sq_settings_affiliate" />
|
100 |
+
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce(_SQ_NONCE_ID_); ?>" />
|
101 |
+
</form>
|
102 |
+
</div>
|
103 |
</div>
|
themes/default/SQ_BlockAnalytics.php
CHANGED
@@ -46,15 +46,23 @@
|
|
46 |
}
|
47 |
} elseif (is_object($task->value)) {
|
48 |
if ($task->name === 'Links') {
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
<li>
|
53 |
<div class="sq_analytics_values_title">' . __('Moz Inbound Links') . '</div>
|
54 |
<div class="sq_analytics_values_value">' . $task->value->mozLinks . '</div>
|
55 |
<div class="sq_rank_sprite sq_rank_seomoz_inbound"></div>
|
56 |
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
</ul>';
|
|
|
58 |
} elseif ($task->name === 'Authority') {
|
59 |
$task->value->mozAuthority = number_format_i18n($task->value->mozAuthority);
|
60 |
$task->value->mozRank = number_format_i18n($task->value->mozRank);
|
@@ -76,13 +84,12 @@
|
|
76 |
<div class = "sq_analytics_values_title">' . __('Google Page Rank') . '</div>
|
77 |
<div class = "sq_analytics_values_value">' . $task->value->googleRank . '</div>
|
78 |
<div class = "sq_rank_sprite sq_rank_google_pagerank"></div>
|
79 |
-
</li>' : '') .
|
80 |
-
|
81 |
-
((isset($task->value->auditScore)) ?
|
82 |
'<li>
|
83 |
-
<div class = "sq_analytics_values_title">' . __('
|
84 |
-
<div class = "sq_analytics_values_value">' . $task->value->
|
85 |
-
<div class = "sq_rank_sprite
|
86 |
</li>' : '') . '
|
87 |
</ul>';
|
88 |
} elseif ($task->name === 'Shares') {
|
@@ -277,7 +284,7 @@
|
|
277 |
</div>
|
278 |
|
279 |
<script>
|
280 |
-
jQuery('.sq_analytics_tasks_video_cover').unbind('click').bind('click', function() {
|
281 |
jQuery(this).html('<object width="280" height="158"><param name="movie" value="https://www.youtube.com/v/' + jQuery(this).attr('rel') + ((jQuery(this).attr('rel').indexOf('?') != -1) ? '&' : '?') + 'version=3&hl=en_US&autoplay=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="https://www.youtube.com/v/' + jQuery(this).attr('rel') + ((jQuery(this).attr('rel').indexOf('?') != -1) ? '&' : '?') + 'version=3&hl=en_US&autoplay=1" type="application/x-shockwave-flash" width="280" height="158" allowscriptaccess="always" allowfullscreen="true"></embed></object>');
|
282 |
});
|
283 |
</script>
|
46 |
}
|
47 |
} elseif (is_object($task->value)) {
|
48 |
if ($task->name === 'Links') {
|
49 |
+
if (isset($task->value->mozLinks)) {
|
50 |
+
$task->value->mozLinks = number_format_i18n($task->value->mozLinks);
|
51 |
+
$replace .= '<ul class="sq_analytics_values" >
|
52 |
<li>
|
53 |
<div class="sq_analytics_values_title">' . __('Moz Inbound Links') . '</div>
|
54 |
<div class="sq_analytics_values_value">' . $task->value->mozLinks . '</div>
|
55 |
<div class="sq_rank_sprite sq_rank_seomoz_inbound"></div>
|
56 |
</li>
|
57 |
+
' .
|
58 |
+
((isset($task->value->ahrefsLinks)) ?
|
59 |
+
'<li>
|
60 |
+
<div class="sq_analytics_values_title">' . __('Ahrefs Inbound Links') . '</div>
|
61 |
+
<div class="sq_analytics_values_value">' . $task->value->ahrefsLinks . '</div>
|
62 |
+
<div class="sq_rank_sprite sq_rank_ahrefs_rank"></div>
|
63 |
+
</li>' : '') . '
|
64 |
</ul>';
|
65 |
+
}
|
66 |
} elseif ($task->name === 'Authority') {
|
67 |
$task->value->mozAuthority = number_format_i18n($task->value->mozAuthority);
|
68 |
$task->value->mozRank = number_format_i18n($task->value->mozRank);
|
84 |
<div class = "sq_analytics_values_title">' . __('Google Page Rank') . '</div>
|
85 |
<div class = "sq_analytics_values_value">' . $task->value->googleRank . '</div>
|
86 |
<div class = "sq_rank_sprite sq_rank_google_pagerank"></div>
|
87 |
+
</li>' : '') .
|
88 |
+
((isset($task->value->ahrefsRank)) ?
|
|
|
89 |
'<li>
|
90 |
+
<div class = "sq_analytics_values_title">' . __('Ahrefs Rank') . '</div>
|
91 |
+
<div class = "sq_analytics_values_value">' . $task->value->ahrefsRank . '</div>
|
92 |
+
<div class = "sq_rank_sprite sq_rank_ahrefs_rank"></div>
|
93 |
</li>' : '') . '
|
94 |
</ul>';
|
95 |
} elseif ($task->name === 'Shares') {
|
284 |
</div>
|
285 |
|
286 |
<script>
|
287 |
+
jQuery('.sq_analytics_tasks_video_cover').unbind('click').bind('click', function () {
|
288 |
jQuery(this).html('<object width="280" height="158"><param name="movie" value="https://www.youtube.com/v/' + jQuery(this).attr('rel') + ((jQuery(this).attr('rel').indexOf('?') != -1) ? '&' : '?') + 'version=3&hl=en_US&autoplay=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="https://www.youtube.com/v/' + jQuery(this).attr('rel') + ((jQuery(this).attr('rel').indexOf('?') != -1) ? '&' : '?') + 'version=3&hl=en_US&autoplay=1" type="application/x-shockwave-flash" width="280" height="158" allowscriptaccess="always" allowfullscreen="true"></embed></object>');
|
289 |
});
|
290 |
</script>
|
themes/default/SQ_BlockAudit.php
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
<div class="sq_dashboard_box">
|
2 |
-
<div class="sq_dashboard_audit" onclick="window.open('<?php echo _SQ_DASH_URL_ ?>user/audit/<?php echo SQ_Tools::$options['sq_api'] . md5(strtolower(get_bloginfo('url'))) ?>', '_blank');"><span id="sq_audit_error" style="display: none;"><?php _e('Your site audit is not yet ready. It may take up to 7 days to audit your blog.', _SQ_PLUGIN_NAME_); ?></span></div>
|
3 |
-
</div>
|
4 |
-
<script type="text/javascript">
|
5 |
-
jQuery(document).ready(function() {
|
6 |
-
sq_checkAudit("<?php echo _SQ_DASH_URL_ ?>", "<?php echo SQ_Tools::$options['sq_api'] . md5(strtolower(get_bloginfo('url'))) ?>"); //Check the seo audit for this page
|
7 |
-
});
|
8 |
-
|
9 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
themes/default/SQ_BlockDashboard.php
CHANGED
@@ -1,54 +1,94 @@
|
|
1 |
-
<div id="
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
|
|
6 |
|
7 |
-
<div class="
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
|
|
|
|
|
|
|
|
12 |
</div>
|
|
|
|
|
13 |
|
14 |
-
|
15 |
|
16 |
-
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
</div>
|
19 |
-
|
20 |
</div>
|
21 |
</div>
|
22 |
-
<script type="text/javascript">
|
23 |
-
//Dashboard
|
24 |
-
jQuery("#sq_dashboard").find('.sq_dashboard_assistant').bind('click', function() {
|
25 |
-
<?php
|
26 |
-
global $current_user;
|
27 |
-
$recent_posts = wp_get_recent_posts(array('post_status' => 'publish', 'author' => $current_user->ID));
|
28 |
-
if (!empty($recent_posts)) {
|
29 |
-
foreach ($recent_posts as $recent) {
|
30 |
-
echo 'location.href = "post.php?post=' . $recent["ID"] . '&action=edit";';
|
31 |
-
break;
|
32 |
-
}
|
33 |
-
} else {
|
34 |
-
echo 'location.href = "post-new.php";';
|
35 |
-
}
|
36 |
-
?>
|
37 |
-
});
|
38 |
-
jQuery("#sq_dashboard").find('.sq_dashboard_analytics').bind('click', function() {
|
39 |
-
<?php
|
40 |
-
if (SQ_ObjController::getModel('SQ_Post')->countKeywords() > 0) {
|
41 |
-
echo 'location.href = "admin.php?page=sq_posts";';
|
42 |
-
} else {
|
43 |
-
echo 'alert("' . __('To see the analytics for your posts, you have to start optimizing your articles using Squirrly. That will enable tracking, and we\'ll be able to send you valuable data about your post.', _SQ_PLUGIN_NAME_) . '");';
|
44 |
-
}
|
45 |
-
?>
|
46 |
-
});
|
47 |
-
|
48 |
-
jQuery("#sq_dashboard").find('.sq_dashboard_research').bind('click', function() {
|
49 |
-
location.href = "post-new.php#sq_research=1";
|
50 |
-
});
|
51 |
-
</script>
|
52 |
-
|
53 |
-
<?php
|
54 |
-
|
1 |
+
<div id="sq_settings" >
|
2 |
+
<?php SQ_ObjController::getBlock('SQ_BlockSupport')->init(); ?>
|
3 |
+
<?php if (SQ_Tools::$options['sq_api'] == '') { ?>
|
4 |
+
<span class="sq_icon"></span>
|
5 |
+
<div id="sq_settings_title" ><?php _e('Connect to Squirrly.co', _SQ_PLUGIN_NAME_); ?> </div>
|
6 |
+
<div id="sq_settings_login"><?php SQ_ObjController::getBlock('SQ_Blocklogin')->init(); ?></div>
|
7 |
|
8 |
+
<div class="sq_login_link"><?php _e('Connect to Squirrly and start optimizing your site', _SQ_PLUGIN_NAME_); ?></div>
|
9 |
+
<input id="sq_goto_dashboard" style="display:none; margin: 0 auto; width: 500px; padding: 0px 10px;" type="button" value="«<?php _e('START HERE', _SQ_PLUGIN_NAME_) ?> »" />
|
10 |
+
|
11 |
+
<?php
|
12 |
+
} else {
|
13 |
+
?>
|
14 |
+
<div>
|
15 |
+
<span class="sq_icon"></span>
|
16 |
+
<div id="sq_settings_title" ><?php _e('Squirrly dashboard', _SQ_PLUGIN_NAME_); ?> </div>
|
17 |
</div>
|
18 |
+
<div id="sq_helpdashboardside" class="sq_helpside"></div>
|
19 |
+
<div id="sq_helpdashboardcontent" class="sq_helpcontent"></div>
|
20 |
|
21 |
+
<?php } ?>
|
22 |
|
23 |
+
<div class="sq_helpcontent" style="display: none; clear: left; <?php echo (SQ_Tools::$options['sq_api'] == '') ? 'text-align: center;' : '' ?>">
|
24 |
+
<div style="width: 700px; display: inline-block;">
|
25 |
+
<div style="font-size: 24px; margin: 30px 0; color: #999;">All Squirrly Features</div>
|
26 |
+
<ul class="sq_slidelist">
|
27 |
+
<li>
|
28 |
+
<a href="javascript:void(0);" rel="44987512" style="background-image: url('//image.slidesharecdn.com/kr-150222110827-conversion-gate01/95/squirrly-keyword-research-1-638.jpg?cb=1424624994')"></a>
|
29 |
+
<div>Squirrly Keyword Research</div>
|
30 |
+
</li>
|
31 |
+
<li>
|
32 |
+
<a href="javascript:void(0);" rel="44987943" style="background-image: url('//image.slidesharecdn.com/sla-150222112751-conversion-gate01/95/squirrly-live-assistant-1-638.jpg?cb=1424626190')"></a>
|
33 |
+
<div>Squirrly Live Assistant</div>
|
34 |
+
</li>
|
35 |
+
<li>
|
36 |
+
<a href="javascript:void(0);" rel="44987925" style="background-image: url('//image.slidesharecdn.com/snippet1-150222112635-conversion-gate01/95/squirrly-snippet-tool-1-638.jpg?cb=1424626028')"></a>
|
37 |
+
<div>Squirrly Snippet Tool</div>
|
38 |
+
</li>
|
39 |
+
<li>
|
40 |
+
<a href="javascript:void(0);" rel="45020680" style="background-image: url('//image.slidesharecdn.com/analytics-150223081607-conversion-gate02/95/squirrly-performance-analytics-1-638.jpg?cb=1424701102')"></a>
|
41 |
+
<div>Squirrly Performance Analyticsl</div>
|
42 |
+
</li>
|
43 |
+
<li>
|
44 |
+
<a href="javascript:void(0);" rel="45062956" style="background-image: url('//image.slidesharecdn.com/firstpage-150224040740-conversion-gate01/95/squirrly-first-page-optimization-1-638.jpg?cb=1427713684')"></a>
|
45 |
+
<div>Squirrly First Page Optimization</div>
|
46 |
+
</li>
|
47 |
+
<li>
|
48 |
+
<a href="javascript:void(0);" rel="45117764" style="background-image: url('//image.slidesharecdn.com/socialoption-150225050457-conversion-gate02/95/squirrly-open-graph-and-twitter-card-1-638.jpg?cb=1427713066')"></a>
|
49 |
+
<div>Squirrly Open Graph and Twitter Card</div>
|
50 |
+
</li>
|
51 |
+
<li>
|
52 |
+
<a href="javascript:void(0);" rel="45142191" style="background-image: url('//image.slidesharecdn.com/check-150225143101-conversion-gate02/95/squirrly-check-for-seo-errors-1-638.jpg?cb=1427713151')"></a>
|
53 |
+
<div>Squirrly Check for SEO errors</div>
|
54 |
+
</li>
|
55 |
+
<li>
|
56 |
+
<a href="javascript:void(0);" rel="46171871" style="background-image: url('//image.slidesharecdn.com/sitemap-150323092133-conversion-gate01/95/squirrly-sitemap-xml-1-638.jpg?cb=1427713209')"></a>
|
57 |
+
<div>Squirrly Sitemap XML</div>
|
58 |
+
</li>
|
59 |
+
<li>
|
60 |
+
<a href="javascript:void(0);" rel="46209176" style="background-image: url('//image.slidesharecdn.com/favicon-150324035827-conversion-gate01/95/squirrly-faviconico-1-638.jpg?cb=1427713276')"></a>
|
61 |
+
<div>Squirrly Favicon.ico</div>
|
62 |
+
</li>
|
63 |
+
<li>
|
64 |
+
<a href="javascript:void(0);" rel="46213739" style="background-image: url('//image.slidesharecdn.com/jsonld-150324055711-conversion-gate01/95/squirrly-jsonld-structured-data-1-638.jpg?cb=1427713334')"></a>
|
65 |
+
<div>Squirrly Json-LD Structured Data</div>
|
66 |
+
</li>
|
67 |
+
<li>
|
68 |
+
<a href="javascript:void(0);" rel="46218043" style="background-image: url('//image.slidesharecdn.com/tracking-150324074838-conversion-gate01/95/squirrly-tracking-tools-1-638.jpg?cb=1427713384')"></a>
|
69 |
+
<div>Squirrly Tracking Tools</div>
|
70 |
+
</li>
|
71 |
+
<li>
|
72 |
+
<a href="javascript:void(0);" rel="46219965" style="background-image: url('//image.slidesharecdn.com/types-150324083302-conversion-gate01/95/squirrly-settings-for-posts-and-pages-1-638.jpg?cb=1427713476')"></a>
|
73 |
+
<div>Squirrly Settings for Posts and Pages</div>
|
74 |
+
</li>
|
75 |
+
<li>
|
76 |
+
<a href="javascript:void(0);" rel="46220852" style="background-image: url('//image.slidesharecdn.com/ranking-150324085252-conversion-gate01/95/squirrly-google-rank-option-1-638.jpg?cb=1427713539')"></a>
|
77 |
+
<div>Squirrly Google Rank Option</div>
|
78 |
+
</li>
|
79 |
+
<li>
|
80 |
+
<a href="javascript:void(0);" rel="46222827" style="background-image: url('//image.slidesharecdn.com/success-150324093815-conversion-gate01/95/measure-your-success-option-from-squirrly-1-638.jpg?cb=1427713584')"></a>
|
81 |
+
<div>Measure Your Success Option from Squirrly</div>
|
82 |
+
</li>
|
83 |
+
<li>
|
84 |
+
<a href="javascript:void(0);" rel="46256414" style="background-image: url('//image.slidesharecdn.com/robots-150325031929-conversion-gate01/95/squirrly-robotstxt-1-638.jpg?cb=1427713635')"></a>
|
85 |
+
<div>Squirrly Robots.txt</div>
|
86 |
+
</li>
|
87 |
+
<li>
|
88 |
+
<a href="javascript:void(0);" rel="46440187" style="background-image: url('//image.slidesharecdn.com/audit-150330042921-conversion-gate01/95/squirrly-site-audit-1-638.jpg?cb=1427707809')"></a>
|
89 |
+
<div>Squirrly Site Audit</div>
|
90 |
+
</li>
|
91 |
+
</ul>
|
92 |
</div>
|
|
|
93 |
</div>
|
94 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
themes/default/SQ_BlockHelp.php
DELETED
@@ -1,36 +0,0 @@
|
|
1 |
-
<div id="sq_settings" >
|
2 |
-
<span class="sq_icon"></span>
|
3 |
-
<div id="sq_settings_title" ><?php _e('Connect to Squirrly.co', _SQ_PLUGIN_NAME_); ?> </div>
|
4 |
-
<?php
|
5 |
-
if (SQ_Tools::$options['sq_api'] == '') {
|
6 |
-
echo '<div id="sq_settings_login">';
|
7 |
-
SQ_ObjController::getBlock('SQ_Blocklogin')->init();
|
8 |
-
echo '</div>';
|
9 |
-
}
|
10 |
-
|
11 |
-
|
12 |
-
global $current_user;
|
13 |
-
$recent_posts = wp_get_recent_posts(array('post_status' => 'publish', 'author' => $current_user->ID));
|
14 |
-
if (!empty($recent_posts)) {
|
15 |
-
foreach ($recent_posts as $recent) {
|
16 |
-
$link = 'post.php?post=' . $recent["ID"] . '&action=edit";';
|
17 |
-
break;
|
18 |
-
}
|
19 |
-
} else {
|
20 |
-
$link = 'post-new.php';
|
21 |
-
}
|
22 |
-
?>
|
23 |
-
|
24 |
-
<div id="sq_settings_howto">
|
25 |
-
<div id="sq_settings_howto_title" ><?php _e('Get Excellent SEO with Better Content and SEO Stats. For Both Humans and Search Bots.', _SQ_PLUGIN_NAME_); ?></div>
|
26 |
-
<div id="sq_settings_howto_body">
|
27 |
-
<p><iframe width="640" height="480" src="//www.youtube.com/embed/mEjrE7TuDDc" frameborder="0" allowfullscreen></iframe></p>
|
28 |
-
<div id="sq_settings_howto_title" ><?php _e('Squirrly SEO Plugin is for the NON-SEO expert. ', _SQ_PLUGIN_NAME_); ?></div>
|
29 |
-
<p><span><?php _e('See all the Squirrly SEO features at: ', _SQ_PLUGIN_NAME_); ?><a href="http://bit.ly/1lV9dX6" target="_blank"><strong>Squirrly Features</strong></a></span></p>
|
30 |
-
</div>
|
31 |
-
</div>
|
32 |
-
<div class="sq_login_link"><?php _e('Connect to Squirrly and start optimizing your site', _SQ_PLUGIN_NAME_); ?></div>
|
33 |
-
<div id="sq_settings_title" style="text-align: right">
|
34 |
-
<a href="<?php echo $link ?>" id="sq_goto_newpost" <?php echo ((SQ_Tools::$options['sq_api'] <> '') ? '' : 'style="display:none"') ?> /><?php _e('<< START HERE >>', _SQ_PLUGIN_NAME_) ?></a>
|
35 |
-
</div>
|
36 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
themes/default/SQ_BlockSettings.php
ADDED
@@ -0,0 +1,290 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="sq_settings">
|
2 |
+
<?php SQ_ObjController::getBlock('SQ_BlockSupport')->init(); ?>
|
3 |
+
<div>
|
4 |
+
<span class="sq_icon"></span>
|
5 |
+
<div id="sq_settings_title" ><?php _e('Settings', _SQ_PLUGIN_NAME_); ?> </div>
|
6 |
+
<div id="sq_settings_title" >
|
7 |
+
<input type="submit" name="sq_update" value="<?php _e('Save settings', _SQ_PLUGIN_NAME_) ?> »" />
|
8 |
+
</div>
|
9 |
+
</div>
|
10 |
+
<div id="sq_helpsettingscontent" class="sq_helpcontent"></div>
|
11 |
+
<div id="sq_helpsettingsside" class="sq_helpside"></div>
|
12 |
+
<div id="sq_left">
|
13 |
+
<form id="sq_settings_form" name="settings" action="" method="post" enctype="multipart/form-data">
|
14 |
+
<div id="sq_settings_body">
|
15 |
+
<fieldset>
|
16 |
+
<legend class="sq_legend_medium">
|
17 |
+
<span class="sq_legend_title"><?php _e('Post/Page Edit', _SQ_PLUGIN_NAME_); ?></span>
|
18 |
+
<span><?php echo sprintf(__('%sThe right method in working with Squirrly, SEO plugin%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/the-right-premises-in-working-with-squirrly-wordpress-seo-plugin" target="_blank">', '</a>'); ?></span>
|
19 |
+
<span><?php echo sprintf(__('%sGetting inspired with Squirrly WordPress SEO plugin%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/getting-inspired-with-squirrly-wordpress-seo-plugin" target="_blank">', '</a>'); ?></span>
|
20 |
+
|
21 |
+
<span><?php echo sprintf(__('%sThere is a New SEO Live Assistant from Squirrly%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/there-is-a-new-seo-live-assistant-from-squirrly" target="_blank">', '</a>'); ?></span>
|
22 |
+
<span><?php echo sprintf(__('%sHow to create Human friendly content with the WordPress SEO plugin?%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/how-to-create-human-friendly-content-with-the-a-wordpress-seo-plugin" target="_blank">', '</a>'); ?></span>
|
23 |
+
|
24 |
+
</legend>
|
25 |
+
|
26 |
+
<div>
|
27 |
+
<div id="sq_post_type_option" class="withborder">
|
28 |
+
<p style="font-weight: bold;"><?php _e('Load Squirrly Live Assistant for', _SQ_PLUGIN_NAME_); ?>:</p>
|
29 |
+
<ul id="sq_post_types">
|
30 |
+
<li class="sq_selectall"><input type="checkbox" id="sq_selectall"/>Select All</li>
|
31 |
+
<li><input type="checkbox" class="sq_post_types" name="sq_post_types[]" value="post" <?php echo (in_array('post', SQ_Tools::$options['sq_post_types']) ? 'checked="checked"' : ''); ?>><?php _e('Posts', _SQ_PLUGIN_NAME_); ?></li>
|
32 |
+
<li><input type="checkbox" class="sq_post_types" name="sq_post_types[]" value="page" <?php echo (in_array('page', SQ_Tools::$options['sq_post_types']) ? 'checked="checked"' : ''); ?>><?php _e('Pages', _SQ_PLUGIN_NAME_); ?></li>
|
33 |
+
<?php if (in_array('product', get_post_types())) { //check for ecommerce product ?>
|
34 |
+
<li><input type="checkbox" class="sq_post_types" name="sq_post_types[]" value="product" <?php echo (in_array('product', SQ_Tools::$options['sq_post_types']) ? 'checked="checked"' : ''); ?>><?php _e('Products', _SQ_PLUGIN_NAME_); ?></li>
|
35 |
+
<?php } ?>
|
36 |
+
<?php
|
37 |
+
$types = get_post_types();
|
38 |
+
foreach (array('post', 'page', 'revision', 'nav_menu_item', 'product', 'shop_order', 'shop_coupon') as $exclude) {
|
39 |
+
if (in_array($exclude, $types)) {
|
40 |
+
unset($types[$exclude]);
|
41 |
+
}
|
42 |
+
}
|
43 |
+
foreach ($types as $type) {
|
44 |
+
$type_data = get_post_type_object($type);
|
45 |
+
if (!isset($type_data->show_ui) || $type_data->show_ui != 1) {
|
46 |
+
unset($types[$type]);
|
47 |
+
} else {
|
48 |
+
//echo '<pre>' . print_r($type_data, true) . '</pre>';
|
49 |
+
?>
|
50 |
+
<li><input type="checkbox" class="sq_post_types" name="sq_post_types[]" value="<?php echo $type ?>" <?php echo (in_array($type, SQ_Tools::$options['sq_post_types']) ? 'checked="checked"' : ''); ?>><?php echo $type_data->labels->name; ?></li>
|
51 |
+
<?php
|
52 |
+
}
|
53 |
+
}
|
54 |
+
?>
|
55 |
+
</ul>
|
56 |
+
</div>
|
57 |
+
<br />
|
58 |
+
<div class="sq_option_content">
|
59 |
+
<div class="sq_switch">
|
60 |
+
<input id="sq_keyword_help1" type="radio" class="sq_switch-input" name="sq_keyword_help" value="1" <?php echo ((SQ_Tools::$options['sq_keyword_help'] == 1) ? "checked" : '') ?> />
|
61 |
+
<label for="sq_keyword_help1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
62 |
+
<input id="sq_keyword_help0" type="radio" class="sq_switch-input" name="sq_keyword_help" value="0" <?php echo ((SQ_Tools::$options['sq_keyword_help'] == 0) ? "checked" : '') ?> />
|
63 |
+
<label for="sq_keyword_help0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
64 |
+
<span class="sq_switch-selection"></span>
|
65 |
+
</div>
|
66 |
+
<span><?php _e('Show <strong>Squirrly Tooltips</strong> posting a new article (e.g. "Enter a keyword").', _SQ_PLUGIN_NAME_); ?></span>
|
67 |
+
</div>
|
68 |
+
|
69 |
+
<div class="sq_option_content">
|
70 |
+
<div class="sq_switch">
|
71 |
+
<input id="sq_keyword_information1" type="radio" class="sq_switch-input" name="sq_keyword_information" value="1" <?php echo ((SQ_Tools::$options['sq_keyword_information'] == 1) ? "checked" : '') ?> />
|
72 |
+
<label for="sq_keyword_information1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
73 |
+
<input id="sq_keyword_information0" type="radio" class="sq_switch-input" name="sq_keyword_information" value="0" <?php echo ((SQ_Tools::$options['sq_keyword_information'] == 0) ? "checked" : '') ?> />
|
74 |
+
<label for="sq_keyword_information0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
75 |
+
<span class="sq_switch-selection"></span>
|
76 |
+
</div>
|
77 |
+
<span><?php _e('Always show <strong>Keyword Research</strong> about the selected keyword.', _SQ_PLUGIN_NAME_); ?></span>
|
78 |
+
</div>
|
79 |
+
|
80 |
+
|
81 |
+
<div class="sq_option_content">
|
82 |
+
<div class="sq_switch">
|
83 |
+
<input id="sq_sla1" type="radio" class="sq_switch-input" name="sq_sla" value="1" <?php echo ((SQ_Tools::$options['sq_sla'] == 1) ? "checked" : '') ?> />
|
84 |
+
<label for="sq_sla1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
85 |
+
<input id="sq_sla0" type="radio" class="sq_switch-input" name="sq_sla" value="0" <?php echo ((SQ_Tools::$options['sq_sla'] == 0) ? "checked" : '') ?> />
|
86 |
+
<label for="sq_sla0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
87 |
+
<span class="sq_switch-selection"></span>
|
88 |
+
</div>
|
89 |
+
<span><?php _e('Use <strong> the NEW version of the SEO Live Assistant</strong>.', _SQ_PLUGIN_NAME_); ?></span>
|
90 |
+
</div>
|
91 |
+
<p></p>
|
92 |
+
<div class="sq_option_content withbordertop">
|
93 |
+
<div class="sq_switch">
|
94 |
+
<input id="sq_keywordtag1" type="radio" class="sq_switch-input" name="sq_keywordtag" value="1" <?php echo ((SQ_Tools::$options['sq_keywordtag'] == 1) ? "checked" : '') ?> />
|
95 |
+
<label for="sq_keywordtag1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
96 |
+
<input id="sq_keywordtag0" type="radio" class="sq_switch-input" name="sq_keywordtag" value="0" <?php echo ((SQ_Tools::$options['sq_keywordtag'] == 0) ? "checked" : '') ?> />
|
97 |
+
<label for="sq_keywordtag0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
98 |
+
<span class="sq_switch-selection"></span>
|
99 |
+
</div>
|
100 |
+
<span><?php _e('Add the Post tags in <strong>META keyword</strong>.', _SQ_PLUGIN_NAME_); ?></span>
|
101 |
+
</div>
|
102 |
+
|
103 |
+
<div class="sq_option_content">
|
104 |
+
<div class="sq_switch">
|
105 |
+
<input id="sq_local_images1" type="radio" class="sq_switch-input" name="sq_local_images" value="1" <?php echo ((SQ_Tools::$options['sq_local_images'] == 1) ? "checked" : '') ?> />
|
106 |
+
<label for="sq_local_images1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
107 |
+
<input id="sq_local_images0" type="radio" class="sq_switch-input" name="sq_local_images" value="0" <?php echo ((SQ_Tools::$options['sq_local_images'] == 0) ? "checked" : '') ?> />
|
108 |
+
<label for="sq_local_images0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
109 |
+
<span class="sq_switch-selection"></span>
|
110 |
+
</div>
|
111 |
+
<span><?php _e('Download <strong>remote images</strong> in your <strong>Media Library</strong> for the new posts.', _SQ_PLUGIN_NAME_); ?></span>
|
112 |
+
</div>
|
113 |
+
|
114 |
+
|
115 |
+
</div>
|
116 |
+
</fieldset>
|
117 |
+
|
118 |
+
<fieldset>
|
119 |
+
<legend>
|
120 |
+
<span class="sq_legend_title"><?php _e('Google Rank Options', _SQ_PLUGIN_NAME_); ?></span>
|
121 |
+
<span><?php echo sprintf(__('%sCountry targeting%s', _SQ_PLUGIN_NAME_), '<a href="https://support.google.com/webmasters/answer/62399?hl=en" target="_blank">', '</a>'); ?></span>
|
122 |
+
</legend>
|
123 |
+
<div>
|
124 |
+
<div class="sq_option_content">
|
125 |
+
<p>
|
126 |
+
<span ><?php _e('Select the google extension for which Squirrly will check the google rank', _SQ_PLUGIN_NAME_); ?></span>
|
127 |
+
</p>
|
128 |
+
<div class="abh_select withborder">
|
129 |
+
<select id="sq_google_country" name="sq_google_country">
|
130 |
+
<option value="com"><?php _e('Default', _SQ_PLUGIN_NAME_); ?> - Google.com (http://www.google.com/)</option>
|
131 |
+
<option value="as"><?php _e('American Samoa', _SQ_PLUGIN_NAME_); ?> (http://www.google.as/)</option>
|
132 |
+
<option value=".off.ai"><?php _e('Anguilla', _SQ_PLUGIN_NAME_); ?> (http://www.google.off.ai/)</option>
|
133 |
+
<option value="com.ag"><?php _e('Antigua and Barbuda', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.ag/)</option>
|
134 |
+
<option value="com.ar"><?php _e('Argentina', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.ar/)</option>
|
135 |
+
<option value="com.au"><?php _e('Australia', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.au/)</option>
|
136 |
+
<option value="at"><?php _e('Austria', _SQ_PLUGIN_NAME_); ?> (http://www.google.at/)</option>
|
137 |
+
<option value="az"><?php _e('Azerbaijan', 'seo-rank-reporter'); ?> (http://www.google.az/)</option>
|
138 |
+
<option value="be"><?php _e('Belgium', _SQ_PLUGIN_NAME_); ?> (http://www.google.be/)</option>
|
139 |
+
<option value="com.br"><?php _e('Brazil', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.br/)</option>
|
140 |
+
<option value="vg"><?php _e('British Virgin Islands', _SQ_PLUGIN_NAME_); ?> (http://www.google.vg/)</option>
|
141 |
+
<option value="bi"><?php _e('Burundi', _SQ_PLUGIN_NAME_); ?> (http://www.google.bi/)</option>
|
142 |
+
<option value="ca"><?php _e('Canada', _SQ_PLUGIN_NAME_); ?> (http://www.google.ca/)</option>
|
143 |
+
<option value="td"><?php _e('Chad', _SQ_PLUGIN_NAME_); ?> (http://www.google.td/)</option>
|
144 |
+
<option value="cl"><?php _e('Chile', _SQ_PLUGIN_NAME_); ?> (http://www.google.cl/)</option>
|
145 |
+
<option value="com.co"><?php _e('Colombia', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.co/)</option>
|
146 |
+
<option value="co.cr"><?php _e('Costa Rica', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.cr/)</option>
|
147 |
+
<option value="ci"><?php _e('Côte d\'Ivoire', _SQ_PLUGIN_NAME_); ?> (http://www.google.ci/)</option>
|
148 |
+
<option value="com.cu"><?php _e('Cuba', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.cu/)</option>
|
149 |
+
<option value="cz"><?php _e('Czech Republic', _SQ_PLUGIN_NAME_); ?> (http://www.google.cz/)</option>
|
150 |
+
<option value="cd"><?php _e('Dem. Rep. of the Congo', _SQ_PLUGIN_NAME_); ?> (http://www.google.cd/)</option>
|
151 |
+
<option value="dk"><?php _e('Denmark', _SQ_PLUGIN_NAME_); ?> (http://www.google.dk/)</option>
|
152 |
+
<option value="dj"><?php _e('Djibouti', _SQ_PLUGIN_NAME_); ?> (http://www.google.dj/)</option>
|
153 |
+
<option value="com.do"><?php _e('Dominican Republic', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.do/)</option>
|
154 |
+
<option value="com.ec"><?php _e('Ecuador', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.ec/)</option>
|
155 |
+
<option value="com.sv"><?php _e('El Salvador', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.sv/)</option>
|
156 |
+
<option value="fm"><?php _e('Federated States of Micronesia', _SQ_PLUGIN_NAME_); ?> (http://www.google.fm/)</option>
|
157 |
+
<option value="com.fj"><?php _e('Fiji', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.fj/)</option>
|
158 |
+
<option value="fi"><?php _e('Finland', _SQ_PLUGIN_NAME_); ?> (http://www.google.fi/)</option>
|
159 |
+
<option value="fr"><?php _e('France', _SQ_PLUGIN_NAME_); ?> (http://www.google.fr/)</option>
|
160 |
+
<option value="gm"><?php _e('The Gambia', _SQ_PLUGIN_NAME_); ?> (http://www.google.gm/)</option>
|
161 |
+
<option value="ge"><?php _e('Georgia', _SQ_PLUGIN_NAME_); ?> (http://www.google.ge/)</option>
|
162 |
+
<option value="de"><?php _e('Germany', _SQ_PLUGIN_NAME_); ?> (http://www.google.de/)</option>
|
163 |
+
<option value="com.gi"><?php _e('Gibraltar', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.gi/)</option>
|
164 |
+
<option value="com.gr"><?php _e('Greece', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.gr/)</option>
|
165 |
+
<option value="gl"><?php _e('Greenland', _SQ_PLUGIN_NAME_); ?> (http://www.google.gl/)</option>
|
166 |
+
<option value="gg"><?php _e('Guernsey', _SQ_PLUGIN_NAME_); ?> (http://www.google.gg/)</option>
|
167 |
+
<option value="hn"><?php _e('Honduras', _SQ_PLUGIN_NAME_); ?> (http://www.google.hn/)</option>
|
168 |
+
<option value="com.hk"><?php _e('Hong Kong', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.hk/)</option>
|
169 |
+
<option value="co.hu"><?php _e('Hungary', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.hu/)</option>
|
170 |
+
<option value="co.in"><?php _e('India', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.in/)</option>
|
171 |
+
<option value="ie"><?php _e('Ireland', _SQ_PLUGIN_NAME_); ?> (http://www.google.ie/)</option>
|
172 |
+
<option value="co.im"><?php _e('Isle of Man', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.im/)</option>
|
173 |
+
<option value="co.il"><?php _e('Israel', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.il/)</option>
|
174 |
+
<option value="it"><?php _e('Italy', _SQ_PLUGIN_NAME_); ?> (http://www.google.it/)</option>
|
175 |
+
<option value="com.jm"><?php _e('Jamaica', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.jm/)</option>
|
176 |
+
<option value="co.jp"><?php _e('Japan', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.jp/)</option>
|
177 |
+
<option value="co.je"><?php _e('Jersey', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.je/)</option>
|
178 |
+
<option value="kz"><?php _e('Kazakhstan', _SQ_PLUGIN_NAME_); ?> (http://www.google.kz/)</option>
|
179 |
+
<option value="co.kr"><?php _e('Korea', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.kr/)</option>
|
180 |
+
<option value="lv"><?php _e('Latvia', _SQ_PLUGIN_NAME_); ?> (http://www.google.lv/)</option>
|
181 |
+
<option value="co.ls"><?php _e('Lesotho', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.ls/)</option>
|
182 |
+
<option value="li"><?php _e('Liechtenstein', _SQ_PLUGIN_NAME_); ?> (http://www.google.li/)</option>
|
183 |
+
<option value="lt"><?php _e('Lithuania', _SQ_PLUGIN_NAME_); ?> (http://www.google.lt/)</option>
|
184 |
+
<option value="lu"><?php _e('Luxembourg', _SQ_PLUGIN_NAME_); ?> (http://www.google.lu/)</option>
|
185 |
+
<option value="mw"><?php _e('Malawi', _SQ_PLUGIN_NAME_); ?> (http://www.google.mw/)</option>
|
186 |
+
<option value="com.my"><?php _e('Malaysia', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.my/)</option>
|
187 |
+
<option value="com.mt"><?php _e('Malta', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.mt/)</option>
|
188 |
+
<option value="mu"><?php _e('Mauritius', _SQ_PLUGIN_NAME_); ?> (http://www.google.mu/)</option>
|
189 |
+
<option value="com.mx"><?php _e('México', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.mx/)</option>
|
190 |
+
<option value="ms"><?php _e('Montserrat', _SQ_PLUGIN_NAME_); ?> (http://www.google.ms/)</option>
|
191 |
+
<option value="com.na"><?php _e('Namibia', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.na/)</option>
|
192 |
+
<option value="com.np"><?php _e('Nepal', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.np/)</option>
|
193 |
+
<option value="nl"><?php _e('Netherlands', _SQ_PLUGIN_NAME_); ?> (http://www.google.nl/)</option>
|
194 |
+
<option value="co.nz"><?php _e('New Zealand', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.nz/)</option>
|
195 |
+
<option value="com.ni"><?php _e('Nicaragua', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.ni/)</option>
|
196 |
+
<option value="com.nf"><?php _e('Norfolk Island', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.nf/)</option>
|
197 |
+
<option value="com.pk"><?php _e('Pakistan', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.pk/)</option>
|
198 |
+
<option value="com.pa"><?php _e('Panamá', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.pa/)</option>
|
199 |
+
<option value="com.py"><?php _e('Paraguay', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.py/)</option>
|
200 |
+
<option value="com.pe"><?php _e('Perú', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.pe/)</option>
|
201 |
+
<option value="com.ph"><?php _e('Philippines', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.ph/)</option>
|
202 |
+
<option value="pn"><?php _e('Pitcairn Islands', _SQ_PLUGIN_NAME_); ?> (http://www.google.pn/)</option>
|
203 |
+
<option value="pl"><?php _e('Poland', _SQ_PLUGIN_NAME_); ?> (http://www.google.pl/)</option>
|
204 |
+
<option value="pt"><?php _e('Portugal', _SQ_PLUGIN_NAME_); ?> (http://www.google.pt/)</option>
|
205 |
+
<option value="com.pr"><?php _e('Puerto Rico', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.pr/)</option>
|
206 |
+
<option value="cg"><?php _e('Rep. of the Congo', _SQ_PLUGIN_NAME_); ?> (http://www.google.cg/)</option>
|
207 |
+
<option value="ro"><?php _e('Romania', _SQ_PLUGIN_NAME_); ?> (http://www.google.ro/)</option>
|
208 |
+
<option value="ru"><?php _e('Russia', _SQ_PLUGIN_NAME_); ?> (http://www.google.ru/)</option>
|
209 |
+
<option value="rw"><?php _e('Rwanda', _SQ_PLUGIN_NAME_); ?> (http://www.google.rw/)</option>
|
210 |
+
<option value="sh"><?php _e('Saint Helena', _SQ_PLUGIN_NAME_); ?> (http://www.google.sh/)</option>
|
211 |
+
<option value="sm"><?php _e('San Marino', _SQ_PLUGIN_NAME_); ?> (http://www.google.sm/)</option>
|
212 |
+
<option value="com.sg"><?php _e('Singapore', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.sg/)</option>
|
213 |
+
<option value="sk"><?php _e('Slovakia', _SQ_PLUGIN_NAME_); ?> (http://www.google.sk/)</option>
|
214 |
+
<option value="co.za"><?php _e('South Africa', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.za/)</option>
|
215 |
+
<option value="es"><?php _e('Spain', _SQ_PLUGIN_NAME_); ?> (http://www.google.es/)</option>
|
216 |
+
<option value="se"><?php _e('Sweden', _SQ_PLUGIN_NAME_); ?> (http://www.google.se/)</option>
|
217 |
+
<option value="ch"><?php _e('Switzerland', _SQ_PLUGIN_NAME_); ?> (http://www.google.ch/)</option>
|
218 |
+
<option value="com.tw"><?php _e('Taiwan', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.tw/)</option>
|
219 |
+
<option value="co.th"><?php _e('Thailand', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.th/)</option>
|
220 |
+
<option value="tt"><?php _e('Trinidad and Tobago', _SQ_PLUGIN_NAME_); ?> (http://www.google.tt/)</option>
|
221 |
+
<option value="com.tr"><?php _e('Turkey', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.tr/)</option>
|
222 |
+
<option value="com.ua"><?php _e('Ukraine', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.ua/)</option>
|
223 |
+
<option value="ae"><?php _e('United Arab Emirates', _SQ_PLUGIN_NAME_); ?> (http://www.google.ae/)</option>
|
224 |
+
<option value="co.uk"><?php _e('United Kingdom', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.uk/)</option>
|
225 |
+
<option value="com.uy"><?php _e('Uruguay', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.uy/)</option>
|
226 |
+
<option value="uz"><?php _e('Uzbekistan', _SQ_PLUGIN_NAME_); ?> (http://www.google.uz/)</option>
|
227 |
+
<option value="vu"><?php _e('Vanuatu', _SQ_PLUGIN_NAME_); ?> (http://www.google.vu/)</option>
|
228 |
+
<option value="co.ve"><?php _e('Venezuela', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.ve/)</option>
|
229 |
+
</select>
|
230 |
+
</div>
|
231 |
+
<p>
|
232 |
+
<span><?php echo sprintf(__('Select how many pages to be checked by google rank every hour. %s5 pages (recommended)%s', _SQ_PLUGIN_NAME_), '<br /><span style="color:#aaa;font-size:12px;">', '</span>'); ?></span>
|
233 |
+
</p>
|
234 |
+
<div class="withborder">
|
235 |
+
<select id="sq_google_ranksperhour" name="sq_google_ranksperhour">
|
236 |
+
<?php for ($i = 0; $i < 30; $i++) { ?>
|
237 |
+
<option value="<?php echo $i ?>" <?php echo ((SQ_Tools::$options['sq_google_ranksperhour'] == $i) ? "selected='selected'" : '') ?>><?php echo $i ?> <?php _e('pages', _SQ_PLUGIN_NAME_); ?></option>
|
238 |
+
<?php } ?>
|
239 |
+
</select>
|
240 |
+
|
241 |
+
</div>
|
242 |
+
|
243 |
+
<div class="sq_option_content">
|
244 |
+
<div class="sq_switch">
|
245 |
+
<input id="sq_google_country_strict1" type="radio" class="sq_switch-input" name="sq_google_country_strict" value="1" <?php echo ((SQ_Tools::$options['sq_google_country_strict'] == 1) ? "checked" : '') ?> />
|
246 |
+
<label for="sq_google_country_strict1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
247 |
+
<input id="sq_google_country_strict0" type="radio" class="sq_switch-input" name="sq_google_country_strict" value="0" <?php echo ((SQ_Tools::$options['sq_google_country_strict'] == 0) ? "checked" : '') ?> />
|
248 |
+
<label for="sq_google_country_strict0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
249 |
+
<span class="sq_switch-selection"></span>
|
250 |
+
</div>
|
251 |
+
<span><?php _e('Restricts search results to results originating in the above particular country.', _SQ_PLUGIN_NAME_); ?></span>
|
252 |
+
</div>
|
253 |
+
|
254 |
+
</div>
|
255 |
+
</div>
|
256 |
+
</fieldset>
|
257 |
+
|
258 |
+
<fieldset id="sq_measure_success">
|
259 |
+
<legend style="height: 310px;">
|
260 |
+
<span class="sq_legend_title"><?php _e('Measure Your Success', _SQ_PLUGIN_NAME_); ?></span>
|
261 |
+
<span><?php echo sprintf(__('%sBest practices to help Google find, crawl, and index your site%s', _SQ_PLUGIN_NAME_), '<a href="https://support.google.com/webmasters/answer/35769?hl=en" target="_blank">', '</a>'); ?></span>
|
262 |
+
<span><?php echo sprintf(__('%sBing Webmaster Tools Help & How-To Center%s', _SQ_PLUGIN_NAME_), '<a href="http://www.bing.com/webmaster/help/help-center-661b2d18" target="_blank">', '</a>'); ?></span>
|
263 |
+
|
264 |
+
</legend>
|
265 |
+
<div>
|
266 |
+
<p class="withborder withcode">
|
267 |
+
<span class="sq_icon sq_icon_googlewt"></span>
|
268 |
+
<?php echo sprintf(__('Google META verification code for %sWebmaster Tool%s:', _SQ_PLUGIN_NAME_), '<a href="http://maps.google.com/webmasters/" target="_blank">', '</a>'); ?><br><strong><input type="text" name="sq_google_wt" value="<?php echo ((SQ_Tools::$options['sq_google_wt'] <> '') ? SQ_Tools::$options['sq_google_wt'] : '') ?>" size="15" /> (e.g. <meta name="google-site-verification" content="XXXXXXXXXXXXXXXXXX" />)</strong>
|
269 |
+
</p>
|
270 |
+
<p class="withborder withcode" >
|
271 |
+
<span class="sq_icon sq_icon_bingwt" ></span>
|
272 |
+
<?php echo sprintf(__('Bing META code (for %sWebmaster Tool%s ):', _SQ_PLUGIN_NAME_), '<a href="http://www.bing.com/toolbox/webmaster/" target="_blank">', '</a>'); ?><br><strong> <input type="text" name="sq_bing_wt" value="<?php echo ((SQ_Tools::$options['sq_bing_wt'] <> '') ? SQ_Tools::$options['sq_bing_wt'] : '') ?>" size="15" /> (e.g. <meta name="msvalidate.01" content="XXXXXXXXXXXXXXXXXX" />)</strong>
|
273 |
+
</p>
|
274 |
+
<p class="withborder withcode" >
|
275 |
+
<span class="sq_icon sq_icon_alexat" ></span>
|
276 |
+
<?php echo sprintf(__('Alexa META code (for %sAlexa Tool%s ):', _SQ_PLUGIN_NAME_), '<a href="http://www.alexa.com/pro/subscription/signup?tsver=0&puid=200" target="_blank">', '</a>'); ?><br><strong><input type="text" name="sq_alexa" value="<?php echo ((SQ_Tools::$options['sq_alexa'] <> '') ? SQ_Tools::$options['sq_alexa'] : '') ?>" size="15" /> (e.g. <meta name="alexaVerifyID" content="XXXXXXXXXXXXXXXXXX" />)</strong>
|
277 |
+
</p>
|
278 |
+
</div>
|
279 |
+
</fieldset>
|
280 |
+
|
281 |
+
<div id="sq_settings_submit">
|
282 |
+
<input type="hidden" name="action" value="sq_settings_update" />
|
283 |
+
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce(_SQ_NONCE_ID_); ?>" />
|
284 |
+
<input type="submit" name="sq_update" value="<?php _e('Save settings', _SQ_PLUGIN_NAME_) ?> »" />
|
285 |
+
</div>
|
286 |
+
</div>
|
287 |
+
</form>
|
288 |
+
</div>
|
289 |
+
|
290 |
+
</div>
|
themes/default/SQ_BlockSettingsSeo.php
ADDED
@@ -0,0 +1,501 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<div id="sq_settings">
|
2 |
+
<?php SQ_ObjController::getBlock('SQ_BlockSupport')->init(); ?>
|
3 |
+
<div>
|
4 |
+
<span class="sq_icon"></span>
|
5 |
+
<div id="sq_settings_title" ><?php _e('SEO', _SQ_PLUGIN_NAME_); ?> </div>
|
6 |
+
<div id="sq_settings_title" >
|
7 |
+
<input type="submit" name="sq_update" value="<?php _e('Save SEO', _SQ_PLUGIN_NAME_) ?> »" />
|
8 |
+
<?php if (SQ_Tools::$options['ignore_warn'] == 0) { ?>
|
9 |
+
<div class="sq_checkissues"><?php _e('Check for SEO issues in your site', _SQ_PLUGIN_NAME_); ?></div>
|
10 |
+
<?php } ?>
|
11 |
+
</div>
|
12 |
+
</div>
|
13 |
+
<div id="sq_helpsettingsseocontent" class="sq_helpcontent"></div>
|
14 |
+
<div id="sq_helpsettingsseoside" class="sq_helpside"></div>
|
15 |
+
|
16 |
+
<div id="sq_left">
|
17 |
+
<form id="sq_settings_form" name="settings" action="" method="post" enctype="multipart/form-data">
|
18 |
+
<div id="sq_settings_body">
|
19 |
+
<fieldset>
|
20 |
+
<legend style="height: 370px;">
|
21 |
+
<span class="sq_legend_title"><?php _e('Let Squirrly SEO optimize this blog', _SQ_PLUGIN_NAME_); ?></span>
|
22 |
+
<span><?php echo sprintf(__('%sIs Squirrly SEO better then WordPress SEO by Yoast?%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/why_is_squirrly_seo_better_then_wordpress_seo_by_yoast-pagblog-article_id61980-html" target="_blank"><strong>', '</strong></a>'); ?></span>
|
23 |
+
|
24 |
+
<span><?php _e('Activate the built-in SEO settings from Squirrly by switching Yes below. <strong>Works well with Multisites and Ecommerce.</strong>', _SQ_PLUGIN_NAME_); ?></span><br />
|
25 |
+
<div class="sq_option_content">
|
26 |
+
<div class="sq_switch">
|
27 |
+
<input id="sq_use_on" type="radio" class="sq_switch-input" name="sq_use" value="1" <?php echo ((SQ_Tools::$options['sq_use'] == 1) ? "checked" : '') ?> />
|
28 |
+
<label for="sq_use_on" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
29 |
+
<input id="sq_use_off" type="radio" class="sq_switch-input" name="sq_use" value="0" <?php echo ((!SQ_Tools::$options['sq_use']) ? "checked" : '') ?> />
|
30 |
+
<label for="sq_use_off" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
31 |
+
<span class="sq_switch-selection"></span>
|
32 |
+
</div>
|
33 |
+
</div>
|
34 |
+
</legend>
|
35 |
+
<div>
|
36 |
+
<ul id="sq_settings_sq_use" class="sq_settings_info">
|
37 |
+
<span><?php _e('What does Squirrly automatically do for SEO?', _SQ_PLUGIN_NAME_); ?></span>
|
38 |
+
<li>
|
39 |
+
<?php
|
40 |
+
$auto_option = false;
|
41 |
+
if (SQ_Tools::$options['sq_auto_canonical'] == 1)
|
42 |
+
$auto_option = true;
|
43 |
+
?>
|
44 |
+
<div class="sq_option_content sq_option_content_small">
|
45 |
+
<div class="sq_switch sq_seo_switch_condition" style="<?php echo ((SQ_Tools::$options['sq_use'] == 0) ? 'display:none;' : ''); ?>">
|
46 |
+
<input id="sq_auto_canonical1" type="radio" class="sq_switch-input" name="sq_auto_canonical" value="1" <?php echo ($auto_option ? "checked" : '') ?> />
|
47 |
+
<label for="sq_auto_canonical1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
48 |
+
<input id="sq_auto_canonical0" type="radio" class="sq_switch-input" name="sq_auto_canonical" value="0" <?php echo (!$auto_option ? "checked" : '') ?> />
|
49 |
+
<label for="sq_auto_canonical0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
50 |
+
<span class="sq_switch-selection"></span>
|
51 |
+
</div>
|
52 |
+
<span><?php echo sprintf(__('adds <strong>%scanonical link%s</strong>, <strong>%srel="prev" and rel="next"%s</strong> metas in Header', _SQ_PLUGIN_NAME_), '<a href="https://support.google.com/webmasters/answer/139066" target="_blank">', '</a>', '<a href="https://support.google.com/webmasters/answer/1663744" target="_blank">', '</a>'); ?></span>
|
53 |
+
</div>
|
54 |
+
</li>
|
55 |
+
|
56 |
+
<li>
|
57 |
+
<?php
|
58 |
+
$auto_option = false;
|
59 |
+
if (SQ_Tools::$options['sq_auto_meta'] == 1)
|
60 |
+
$auto_option = true;
|
61 |
+
?>
|
62 |
+
<div class="sq_option_content sq_option_content_small">
|
63 |
+
<div class="sq_switch sq_seo_switch_condition" style="<?php echo ((SQ_Tools::$options['sq_use'] == 0) ? 'display:none;' : ''); ?>">
|
64 |
+
<input id="sq_auto_meta1" type="radio" class="sq_switch-input" name="sq_auto_meta" value="1" <?php echo ($auto_option ? "checked" : '') ?> />
|
65 |
+
<label for="sq_auto_meta1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
66 |
+
<input id="sq_auto_meta0" type="radio" class="sq_switch-input" name="sq_auto_meta" value="0" <?php echo (!$auto_option ? "checked" : '') ?> />
|
67 |
+
<label for="sq_auto_meta0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
68 |
+
<span class="sq_switch-selection"></span>
|
69 |
+
</div>
|
70 |
+
<span><?php _e('adds the required METAs (<strong>dublincore, google hreflang</strong>, etc.)', _SQ_PLUGIN_NAME_); ?></span>
|
71 |
+
</div>
|
72 |
+
</li>
|
73 |
+
<li>
|
74 |
+
<?php
|
75 |
+
$auto_option = false;
|
76 |
+
if (SQ_Tools::$options['sq_auto_sitemap'] == 1)
|
77 |
+
$auto_option = true;
|
78 |
+
?>
|
79 |
+
<div class="sq_option_content sq_option_content_small">
|
80 |
+
<div class="sq_switch sq_seo_switch_condition" style="<?php echo ((SQ_Tools::$options['sq_use'] == 0) ? 'display:none;' : ''); ?>">
|
81 |
+
<input id="sq_auto_sitemap1" type="radio" class="sq_switch-input" name="sq_auto_sitemap" value="1" <?php echo ($auto_option ? "checked" : '') ?> />
|
82 |
+
<label for="sq_auto_sitemap1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
83 |
+
<input id="sq_auto_sitemap0" type="radio" class="sq_switch-input" name="sq_auto_sitemap" value="0" <?php echo (!$auto_option ? "checked" : '') ?> />
|
84 |
+
<label for="sq_auto_sitemap0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
85 |
+
<span class="sq_switch-selection"></span>
|
86 |
+
</div>
|
87 |
+
<span><?php echo sprintf(__('adds the <strong>%sXML Sitemap%s</strong> for search engines: %s', _SQ_PLUGIN_NAME_), '<a href="https://support.google.com/webmasters/answer/156184?rd=1" target="_blank">', '</a>', '<strong><a href="' . SQ_ObjController::getController('SQ_Sitemaps')->getXmlUrl('sitemap') . '" target="_blank">' . SQ_ObjController::getController('SQ_Sitemaps')->getXmlUrl('sitemap') . '</a></strong>'); ?></span>
|
88 |
+
</div>
|
89 |
+
</li>
|
90 |
+
<li>
|
91 |
+
<?php
|
92 |
+
$auto_option = false;
|
93 |
+
if (SQ_Tools::$options['sq_auto_favicon'] == 1)
|
94 |
+
$auto_option = true;
|
95 |
+
?>
|
96 |
+
<div class="sq_option_content sq_option_content_small">
|
97 |
+
<div class="sq_switch sq_seo_switch_condition" style="<?php echo ((SQ_Tools::$options['sq_use'] == 0) ? 'display:none;' : ''); ?>">
|
98 |
+
<input id="sq_auto_favicon1" type="radio" class="sq_switch-input" name="sq_auto_favicon" value="1" <?php echo ($auto_option ? "checked" : '') ?> />
|
99 |
+
<label for="sq_auto_favicon1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
100 |
+
<input id="sq_auto_favicon0" type="radio" class="sq_switch-input" name="sq_auto_favicon" value="0" <?php echo (!$auto_option ? "checked" : '') ?> />
|
101 |
+
<label for="sq_auto_favicon0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
102 |
+
<span class="sq_switch-selection"></span>
|
103 |
+
</div>
|
104 |
+
<span><?php echo sprintf(__('adds the <strong>%sfavicon.ico%s</strong> and the <strong>%sicons for pads and phones%s</strong>', _SQ_PLUGIN_NAME_), '<a href="https://en.wikipedia.org/wiki/Favicon" target="_blank">', '</a>', '<a href="https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariWebContent/ConfiguringWebApplications/ConfiguringWebApplications.html" target="_blank">', '</a>'); ?></span>
|
105 |
+
</div>
|
106 |
+
</li>
|
107 |
+
<li>
|
108 |
+
<?php
|
109 |
+
$auto_option = false;
|
110 |
+
if (SQ_Tools::$options['sq_auto_jsonld'] == 1)
|
111 |
+
$auto_option = true;
|
112 |
+
?>
|
113 |
+
<div class="sq_option_content sq_option_content_small">
|
114 |
+
<div class="sq_switch sq_seo_switch_condition" style="<?php echo ((SQ_Tools::$options['sq_use'] == 0) ? 'display:none;' : ''); ?>">
|
115 |
+
<input id="sq_auto_jsonld1" type="radio" class="sq_switch-input" name="sq_auto_jsonld" value="1" <?php echo ($auto_option ? "checked" : '') ?> />
|
116 |
+
<label for="sq_auto_jsonld1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
117 |
+
<input id="sq_auto_jsonld0" type="radio" class="sq_switch-input" name="sq_auto_jsonld" value="0" <?php echo (!$auto_option ? "checked" : '') ?> />
|
118 |
+
<label for="sq_auto_jsonld0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
119 |
+
<span class="sq_switch-selection"></span>
|
120 |
+
</div>
|
121 |
+
<span><?php echo sprintf(__('adds the <strong>%sJson-LD%s</strong> metas for Semantic SEO', _SQ_PLUGIN_NAME_), '<a href="https://en.wikipedia.org/wiki/JSON-LD" target="_blank">', '</a>'); ?></span>
|
122 |
+
</div>
|
123 |
+
</li>
|
124 |
+
<p class="sq_option_info" style="padding-left:10px; color: darkgrey;"> <?php _e('Note! By switching the <strong>Json-LD</strong>, <strong>XML Sitemap</strong> and <strong>Favicon</strong> on, you open new options below', _SQ_PLUGIN_NAME_); ?></p>
|
125 |
+
</ul>
|
126 |
+
<div style="text-align: center;">
|
127 |
+
<div class="sq_checkissues"><?php _e('Check for SEO issues in your site', _SQ_PLUGIN_NAME_); ?></div>
|
128 |
+
</div>
|
129 |
+
</div>
|
130 |
+
</fieldset>
|
131 |
+
<fieldset id="sq_title_description_keywords" <?php echo ((SQ_Tools::$options['sq_use'] == 0) ? 'style="display:none;"' : ''); ?> <?php echo ((SQ_Tools::$options['sq_fp_title'] == '' || SQ_Tools::$options['sq_auto_seo'] == 1) ? '' : 'class="sq_custom_title"'); ?>>
|
132 |
+
<legend class="sq_legend_medium">
|
133 |
+
<span class="sq_legend_title"><?php _e('First page optimization', _SQ_PLUGIN_NAME_); ?></span>
|
134 |
+
<span><?php echo sprintf(__('%sThe best SEO approach to Meta information%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/the-best-seo-approach-to-meta-information" target="_blank">', '</a>'); ?></span>
|
135 |
+
|
136 |
+
<span><?php _e('Add meta <strong>title</strong> in Home Page', _SQ_PLUGIN_NAME_); ?></span>
|
137 |
+
<?php
|
138 |
+
$auto_option = false;
|
139 |
+
if (SQ_Tools::$options['sq_auto_title'] == 1)
|
140 |
+
$auto_option = true;
|
141 |
+
?>
|
142 |
+
<div class="sq_option_content sq_option_content">
|
143 |
+
<div class="sq_switch sq_seo_switch_condition" style="<?php echo ((SQ_Tools::$options['sq_use'] == 0) ? 'display:none;' : ''); ?>">
|
144 |
+
<input id="sq_auto_title1" type="radio" class="sq_switch-input" name="sq_auto_title" value="1" <?php echo ($auto_option ? "checked" : '') ?> />
|
145 |
+
<label for="sq_auto_title1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
146 |
+
<input id="sq_auto_title0" type="radio" class="sq_switch-input" name="sq_auto_title" value="0" <?php echo (!$auto_option ? "checked" : '') ?> />
|
147 |
+
<label for="sq_auto_title0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
148 |
+
<span class="sq_switch-selection"></span>
|
149 |
+
</div>
|
150 |
+
</div>
|
151 |
+
|
152 |
+
<span><?php _e('Add meta <strong>description</strong> and <strong>keywords</strong> in Home Page', _SQ_PLUGIN_NAME_); ?></span>
|
153 |
+
<?php
|
154 |
+
$auto_option = false;
|
155 |
+
if (SQ_Tools::$options['sq_auto_description'] == 1)
|
156 |
+
$auto_option = true;
|
157 |
+
?>
|
158 |
+
<div class="sq_option_content sq_option_content">
|
159 |
+
<div class="sq_switch sq_seo_switch_condition" style="<?php echo ((SQ_Tools::$options['sq_use'] == 0) ? 'display:none;' : ''); ?>">
|
160 |
+
<input id="sq_auto_description1" type="radio" class="sq_switch-input" name="sq_auto_description" value="1" <?php echo ($auto_option ? "checked" : '') ?> />
|
161 |
+
<label for="sq_auto_description1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
162 |
+
<input id="sq_auto_description0" type="radio" class="sq_switch-input" name="sq_auto_description" value="0" <?php echo (!$auto_option ? "checked" : '') ?> />
|
163 |
+
<label for="sq_auto_description0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
164 |
+
<span class="sq_switch-selection"></span>
|
165 |
+
</div>
|
166 |
+
|
167 |
+
</div>
|
168 |
+
|
169 |
+
</legend>
|
170 |
+
|
171 |
+
<div>
|
172 |
+
<?php
|
173 |
+
$auto_option = false;
|
174 |
+
if (SQ_Tools::$options['sq_fp_title'] == '')
|
175 |
+
$auto_option = true;
|
176 |
+
|
177 |
+
if ($pageId = get_option('page_on_front')) {
|
178 |
+
if (SQ_ObjController::getModel('SQ_Frontend')->getAdvancedMeta($pageId, 'title') <> '') {
|
179 |
+
SQ_Tools::$options['sq_fp_title'] = SQ_ObjController::getModel('SQ_Frontend')->getAdvancedMeta($pageId, 'title');
|
180 |
+
SQ_Tools::$options['sq_fp_description'] = SQ_ObjController::getModel('SQ_Frontend')->getAdvancedMeta($pageId, 'description');
|
181 |
+
if (!SQ_Tools::$options['sq_fp_keywords'] = SQ_ObjController::getModel('SQ_Frontend')->getAdvancedMeta($pageId, 'keyword')) {
|
182 |
+
$json = SQ_ObjController::getModel('SQ_Post')->getKeyword($pageId);
|
183 |
+
if (isset($json) && isset($json->keyword) && $json->keyword <> '') {
|
184 |
+
SQ_Tools::$options['sq_fp_keywords'] = $json->keyword;
|
185 |
+
}
|
186 |
+
}
|
187 |
+
}
|
188 |
+
}
|
189 |
+
?>
|
190 |
+
<input id="sq_customize" type="hidden" name="sq_auto_seo" value="0">
|
191 |
+
|
192 |
+
<div id="sq_customize_settings">
|
193 |
+
<p class="withborder">
|
194 |
+
<span style="width: 65px;display: inline-block; vertical-align: top;"><?php _e('Title:', _SQ_PLUGIN_NAME_); ?></span><input type="text" name="sq_fp_title" value="<?php echo ((SQ_Tools::$options['sq_fp_title'] <> '') ? SQ_Tools::$options['sq_fp_title'] : '') ?>" size="75" /><span id="sq_title_info" />
|
195 |
+
<span id="sq_fp_title_length"></span><span class="sq_settings_info"><?php _e('Tips: Length 10-75 chars', _SQ_PLUGIN_NAME_); ?></span>
|
196 |
+
</p>
|
197 |
+
<p class="withborder">
|
198 |
+
<span style="width: 65px;display: inline-block; vertical-align: top;"><?php _e('Description:', _SQ_PLUGIN_NAME_); ?></span><textarea name="sq_fp_description" cols="70" rows="3" ><?php echo ((SQ_Tools::$options['sq_fp_description'] <> '') ? SQ_Tools::$options['sq_fp_description'] : '') ?></textarea><span id="sq_description_info" />
|
199 |
+
<span id="sq_fp_description_length"></span><span class="sq_settings_info"><?php _e('Tips: Length 70-165 chars', _SQ_PLUGIN_NAME_); ?></span>
|
200 |
+
</p>
|
201 |
+
<p class="withborder">
|
202 |
+
<span style="width: 65px;display: inline-block; vertical-align: top;"><?php _e('Keywords:', _SQ_PLUGIN_NAME_); ?></span><input type="text" name="sq_fp_keywords" value="<?php echo ((SQ_Tools::$options['sq_fp_keywords'] <> '') ? SQ_Tools::$options['sq_fp_keywords'] : '') ?>" size="70" />
|
203 |
+
<span id="sq_fp_keywords_length"></span><span class="sq_settings_info"><?php _e('Tips: 2-4 keywords', _SQ_PLUGIN_NAME_); ?></span>
|
204 |
+
</p>
|
205 |
+
</div>
|
206 |
+
|
207 |
+
<span class="sq_option_info"><?php _e('First Page Preview (Title, Description, Keywords)', _SQ_PLUGIN_NAME_); ?></span>
|
208 |
+
<div id="sq_snippet">
|
209 |
+
<div id="sq_snippet_name"><?php _e('Squirrly Snippet', _SQ_PLUGIN_NAME_) ?></div>
|
210 |
+
|
211 |
+
<ul id="sq_snippet_ul">
|
212 |
+
<li id="sq_snippet_title"></li>
|
213 |
+
<li id="sq_snippet_url"></li>
|
214 |
+
<li id="sq_snippet_description"></li>
|
215 |
+
</ul>
|
216 |
+
|
217 |
+
<div id="sq_snippet_disclaimer" ><?php _e('If you don\'t see any changes in custom optimization, check if another SEO plugin affects Squirrly SEO', _SQ_PLUGIN_NAME_) ?></div>
|
218 |
+
</div>
|
219 |
+
</div>
|
220 |
+
</fieldset>
|
221 |
+
<fieldset id="sq_social_media" style="<?php echo ((SQ_Tools::$options['sq_use'] == 0) ? 'display:none;' : ''); ?>">
|
222 |
+
<legend class="sq_legend_medium">
|
223 |
+
<span class="sq_legend_title"><?php _e('Social Media Options', _SQ_PLUGIN_NAME_); ?></span>
|
224 |
+
<span><?php echo sprintf(__('%sHow to pop out in Social Media with your links%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/how-to-pop-out-in-social-media-with-your-links." target="_blank">', '</a>'); ?></span>
|
225 |
+
<span><?php echo sprintf(__('%sGet busy with Facebook’s new Search Engine functions%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/get-busy-with-facebooks-new-search-engine-functions" target="_blank">', '</a>'); ?></span>
|
226 |
+
<span><?php echo sprintf(__('%sHow I Added Twitter Cards in My WordPress for Better Inbound Marketing%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/inbound_marketing_twitter_cards-pagblog-article_id62232.html" target="_blank">', '</a>'); ?></span>
|
227 |
+
</legend>
|
228 |
+
|
229 |
+
<div>
|
230 |
+
<ul id="sq_settings_sq_use" class="sq_settings_info">
|
231 |
+
<span><?php _e('What does Squirrly automatically do for Social Media?', _SQ_PLUGIN_NAME_); ?></span>
|
232 |
+
<li id="sq_option_facebook">
|
233 |
+
<?php
|
234 |
+
$auto_option = false;
|
235 |
+
if (SQ_Tools::$options['sq_auto_facebook'] == 1)
|
236 |
+
$auto_option = true;
|
237 |
+
?>
|
238 |
+
<div class="sq_option_img" ></div>
|
239 |
+
<div class="sq_option_content sq_option_content_small">
|
240 |
+
|
241 |
+
<div class="sq_switch sq_seo_switch_condition" style="<?php echo ((SQ_Tools::$options['sq_use'] == 0) ? 'display:none;' : ''); ?>">
|
242 |
+
<input id="sq_auto_facebook1" type="radio" class="sq_switch-input" name="sq_auto_facebook" value="1" <?php echo ($auto_option ? "checked" : '') ?> />
|
243 |
+
<label for="sq_auto_facebook1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
244 |
+
<input id="sq_auto_facebook0" type="radio" class="sq_switch-input" name="sq_auto_facebook" value="0" <?php echo (!$auto_option ? "checked" : '') ?> />
|
245 |
+
<label for="sq_auto_facebook0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
246 |
+
<span class="sq_switch-selection"></span>
|
247 |
+
</div>
|
248 |
+
<span><?php echo __('Add the <strong>Social Open Graph objects</strong> for a good looking share. ', _SQ_PLUGIN_NAME_) . ' <a href="https://developers.facebook.com/tools/debug/og/object?q=' . urlencode(get_bloginfo('wpurl')) . '" target="_blank" title="Facebook Object Validator">Check here</a>'; ?></span>
|
249 |
+
</div>
|
250 |
+
</li>
|
251 |
+
<span class="withborder" style="min-height: 0;"></span>
|
252 |
+
<li id="sq_option_twitter">
|
253 |
+
<?php
|
254 |
+
$auto_option = false;
|
255 |
+
if (SQ_Tools::$options['sq_auto_twitter'] == 1)
|
256 |
+
$auto_option = true;
|
257 |
+
?>
|
258 |
+
<div class="sq_option_img" ></div>
|
259 |
+
<div class="sq_option_content sq_option_content_small">
|
260 |
+
|
261 |
+
|
262 |
+
<div class="sq_switch sq_seo_switch_condition" style="<?php echo ((SQ_Tools::$options['sq_use'] == 0) ? 'display:none;' : ''); ?>">
|
263 |
+
<input id="sq_auto_twitter1" type="radio" class="sq_switch-input" name="sq_auto_twitter" value="1" <?php echo ($auto_option ? "checked" : '') ?> />
|
264 |
+
<label for="sq_auto_twitter1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
265 |
+
<input id="sq_auto_twitter0" type="radio" class="sq_switch-input" name="sq_auto_twitter" value="0" <?php echo (!$auto_option ? "checked" : '') ?> />
|
266 |
+
<label for="sq_auto_twitter0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
267 |
+
<span class="sq_switch-selection"></span>
|
268 |
+
</div>
|
269 |
+
<span><?php echo __('Add the <strong>Twitter card</strong> in your tweets. ', _SQ_PLUGIN_NAME_) . ' <a href="https://dev.twitter.com/docs/cards/validation/validator" target="_blank" title="Twitter Card Validator">Check here</a> to validate your site'; ?></span>
|
270 |
+
<span style="color: #f7681a; margin-top: 9px; text-align: center; <?php echo ((SQ_Tools::$options['sq_twitter_account'] <> '') ? 'display:none' : '') ?>"><?php echo __('You need to add your <strong>Twitter account</strong> below', _SQ_PLUGIN_NAME_); ?></span>
|
271 |
+
|
272 |
+
</div>
|
273 |
+
</li>
|
274 |
+
|
275 |
+
</ul>
|
276 |
+
</div>
|
277 |
+
</fieldset>
|
278 |
+
<fieldset id="sq_social_media_accounts" style="<?php echo ((SQ_Tools::$options['sq_use'] == 0) ? 'display:none;' : ''); ?>">
|
279 |
+
<legend class="sq_legend_medium">
|
280 |
+
<span class="sq_legend_title"><?php _e('Social Media Accounts', _SQ_PLUGIN_NAME_); ?></span>
|
281 |
+
<span><?php echo sprintf(__('Twitter account is mandatory for <strong>Twitter Card Validation</strong>', _SQ_PLUGIN_NAME_)); ?></span>
|
282 |
+
<span><?php echo sprintf(__('Add all your social accounts for <strong>JSON-LD Semantic SEO</strong>', _SQ_PLUGIN_NAME_)); ?></span>
|
283 |
+
<span><?php echo sprintf(__('%sSpecify your social profiles to Google%s', _SQ_PLUGIN_NAME_), '<a href="https://developers.google.com/structured-data/customize/social-profiles" target="_blank">', '</a>'); ?></span>
|
284 |
+
</legend>
|
285 |
+
|
286 |
+
<div>
|
287 |
+
<ul id="sq_settings_sq_use" class="sq_settings_info">
|
288 |
+
<li>
|
289 |
+
<p class="withborder withcode">
|
290 |
+
<span class="sq_icon sq_icon_twitter"></span>
|
291 |
+
<?php _e('Your Twitter Account:', _SQ_PLUGIN_NAME_); ?><br /><strong><input type="text" name="sq_twitter_account" value="<?php echo ((SQ_Tools::$options['sq_twitter_account'] <> '') ? SQ_Tools::$options['sq_twitter_account'] : '') ?>" size="60" placeholder="https://twitter.com/" /> (e.g. https://twitter.com/XXXXXXXXXXXXXXXXXX)</strong>
|
292 |
+
</p>
|
293 |
+
</li>
|
294 |
+
<li>
|
295 |
+
<p class="withborder withcode">
|
296 |
+
<span class="sq_icon sq_icon_googleplus"></span>
|
297 |
+
<?php _e('Google Plus Profile:', _SQ_PLUGIN_NAME_); ?><br /><strong><input type="text" name="sq_google_plus" value="<?php echo ((SQ_Tools::$options['sq_google_plus'] <> '') ? SQ_Tools::$options['sq_google_plus'] : '') ?>" size="60" placeholder="https://plus.google.com/" /> (e.g. https://plus.google.com/+XXXXXXXXXXXXXXXXXX)</strong>
|
298 |
+
</p>
|
299 |
+
</li>
|
300 |
+
<li>
|
301 |
+
<p class="withborder withcode">
|
302 |
+
<span class="sq_icon sq_icon_facebook"></span>
|
303 |
+
<?php _e('Facebook Profile:', _SQ_PLUGIN_NAME_); ?><br /><strong><input type="text" name="sq_facebook_account" value="<?php echo ((SQ_Tools::$options['sq_facebook_account'] <> '') ? SQ_Tools::$options['sq_facebook_account'] : '') ?>" size="60" placeholder="https://www.facebook.com/" /> (e.g. https://www.facebook.com/XXXXXXXXXXXXXXXXXX)</strong>
|
304 |
+
</p>
|
305 |
+
</li>
|
306 |
+
<li>
|
307 |
+
<p class="withborder withcode">
|
308 |
+
<span class="sq_icon sq_icon_linkedin"></span>
|
309 |
+
<?php _e('Linkedin Profile:', _SQ_PLUGIN_NAME_); ?><br /><strong><input type="text" name="sq_linkedin_account" value="<?php echo ((SQ_Tools::$options['sq_linkedin_account'] <> '') ? SQ_Tools::$options['sq_linkedin_account'] : '') ?>" size="60" placeholder="https://www.linkedin.com/" /> (e.g. https://www.linkedin.com/XXXX/XXXXXXXXXXXXXXXXXX)</strong>
|
310 |
+
</p>
|
311 |
+
</li>
|
312 |
+
</ul>
|
313 |
+
</div>
|
314 |
+
</fieldset>
|
315 |
+
<fieldset id="sq_sitemap" style="<?php echo ((SQ_Tools::$options['sq_use'] == 0 || SQ_Tools::$options['sq_auto_sitemap'] == 0) ? 'display:none;' : ''); ?>">
|
316 |
+
<legend class="sq_legend_medium">
|
317 |
+
<span class="sq_legend_title"><?php _e('XML Sitemap for Google', _SQ_PLUGIN_NAME_); ?></span>
|
318 |
+
<span><?php echo __('Squirrly Sitemap is the fastest way to tell Google about your site links. <strong>Supports Multisites, Google News, Images, Videos, Custom Post Types, Custom Taxonomies and Ecommerce products</strong>', _SQ_PLUGIN_NAME_) ?></span>
|
319 |
+
<span><?php echo sprintf(__('%s10 Vital To Dos to Feed Your SEO Content Machine After You Post Articles%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/10_vital_to_dos_to_feed_your_seo_content_machine_after_you_post_articles-pagblog-article_id62194-html" target="_blank">', '</a>'); ?></span>
|
320 |
+
<span><?php echo sprintf(__('%s7 To Do’s after publishing on Your WordPress Blog%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/7-to-dos-after-publishing-on-your-wordpress-blog" target="_blank">', '</a>'); ?></span>
|
321 |
+
</legend>
|
322 |
+
|
323 |
+
<div>
|
324 |
+
<ul id="sq_sitemap_option" class="sq_settings_info">
|
325 |
+
<span><?php _e('XML Sitemap Options', _SQ_PLUGIN_NAME_); ?></span>
|
326 |
+
<div class="sq_option_content sq_option_content_small">
|
327 |
+
<div class="sq_switch sq_seo_switch_condition" style="<?php echo ((SQ_Tools::$options['sq_use'] == 0) ? 'display:none;' : ''); ?>">
|
328 |
+
<input id="sq_sitemap_ping1" type="radio" class="sq_switch-input" name="sq_sitemap_ping" value="1" <?php echo ($auto_option ? "checked" : '') ?> />
|
329 |
+
<label for="sq_sitemap_ping1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
330 |
+
<input id="sq_sitemap_ping0" type="radio" class="sq_switch-input" name="sq_sitemap_ping" value="0" <?php echo (!$auto_option ? "checked" : '') ?> />
|
331 |
+
<label for="sq_sitemap_ping0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
332 |
+
<span class="sq_switch-selection"></span>
|
333 |
+
</div>
|
334 |
+
<span><?php echo __('Ping your sitemap to Google and Bing when a new post is published', _SQ_PLUGIN_NAME_); ?></span>
|
335 |
+
</div>
|
336 |
+
<li>
|
337 |
+
<p><?php _e('Build Sitemaps for', _SQ_PLUGIN_NAME_); ?>:</p>
|
338 |
+
<ul id="sq_sitemap_buid">
|
339 |
+
<li class="sq_selectall"><input type="checkbox" id="sq_selectall"/>Select All</li>
|
340 |
+
<li><input type="checkbox" class="sq_sitemap" name="sq_sitemap[]" value="sitemap-news" <?php echo ((SQ_Tools::$options['sq_sitemap']['sitemap-news'][1] == 1) ? 'checked="checked"' : ''); ?>><?php _e('Google News', _SQ_PLUGIN_NAME_); ?></li>
|
341 |
+
<li><input type="checkbox" class="sq_sitemap" name="sq_sitemap[]" value="sitemap-category" <?php echo ((SQ_Tools::$options['sq_sitemap']['sitemap-category'][1] == 1) ? 'checked="checked"' : ''); ?>><?php _e('Categories', _SQ_PLUGIN_NAME_); ?></li>
|
342 |
+
<?php if (SQ_ObjController::getModel('SQ_BlockSettingsSeo')->isEcommerce()) { //check for ecommerce product ?><li><input type="checkbox" class="sq_sitemap" name="sq_sitemap[]" value="sitemap-product" <?php echo ((SQ_Tools::$options['sq_sitemap']['sitemap-product'][1] == 1) ? 'checked="checked"' : ''); ?>><?php _e('Products', _SQ_PLUGIN_NAME_); ?></li><?php } ?>
|
343 |
+
<li><input type="checkbox" class="sq_sitemap" name="sq_sitemap[]" value="sitemap-post" <?php echo ((SQ_Tools::$options['sq_sitemap']['sitemap-post'][1] == 1) ? 'checked="checked"' : ''); ?>><?php _e('Posts', _SQ_PLUGIN_NAME_); ?></li>
|
344 |
+
<li><input type="checkbox" class="sq_sitemap" name="sq_sitemap[]" value="sitemap-post_tag" <?php echo ((SQ_Tools::$options['sq_sitemap']['sitemap-post_tag'][1] == 1) ? 'checked="checked"' : ''); ?>><?php _e('Tags', _SQ_PLUGIN_NAME_); ?></li>
|
345 |
+
<li><input type="checkbox" class="sq_sitemap" name="sq_sitemap[]" value="sitemap-page" <?php echo ((SQ_Tools::$options['sq_sitemap']['sitemap-page'][1] == 1) ? 'checked="checked"' : ''); ?>><?php _e('Pages', _SQ_PLUGIN_NAME_); ?></li>
|
346 |
+
<li><input type="checkbox" class="sq_sitemap" name="sq_sitemap[]" value="sitemap-archive" <?php echo ((SQ_Tools::$options['sq_sitemap']['sitemap-archive'][1] == 1) ? 'checked="checked"' : ''); ?>><?php _e('Archive', _SQ_PLUGIN_NAME_); ?></li>
|
347 |
+
<li><input type="checkbox" class="sq_sitemap" name="sq_sitemap[]" value="sitemap-custom-tax" <?php echo ((SQ_Tools::$options['sq_sitemap']['sitemap-custom-tax'][1] == 1) ? 'checked="checked"' : ''); ?>><?php _e('Custom Taxonomies', _SQ_PLUGIN_NAME_); ?></li>
|
348 |
+
<li><input type="checkbox" class="sq_sitemap" name="sq_sitemap[]" value="sitemap-custom-post" <?php echo ((SQ_Tools::$options['sq_sitemap']['sitemap-custom-post'][1] == 1) ? 'checked="checked"' : ''); ?>><?php _e('Custom Posts', _SQ_PLUGIN_NAME_); ?></li>
|
349 |
+
</ul>
|
350 |
+
</li>
|
351 |
+
<li>
|
352 |
+
<p><?php _e('Include in Sitemaps', _SQ_PLUGIN_NAME_); ?>:</p>
|
353 |
+
<ul id="sq_sitemap_include">
|
354 |
+
<li><input type="checkbox" class="sq_sitemap_show" name="sq_sitemap_show[]" value="images" <?php echo ((SQ_Tools::$options['sq_sitemap_show']['images'] == 1) ? 'checked="checked"' : ''); ?>><?php _e('<strong>Images</strong> from posts/pages', _SQ_PLUGIN_NAME_); ?></li>
|
355 |
+
<li><input type="checkbox" class="sq_sitemap_show" name="sq_sitemap_show[]" value="videos" <?php echo ((SQ_Tools::$options['sq_sitemap_show']['videos'] == 1) ? 'checked="checked"' : ''); ?>><?php _e('<strong>Videos</strong> (embeded and local media)', _SQ_PLUGIN_NAME_); ?></li>
|
356 |
+
</ul>
|
357 |
+
</li>
|
358 |
+
<li>
|
359 |
+
<p><?php _e('How often do you update your site?', _SQ_PLUGIN_NAME_); ?></p>
|
360 |
+
<select name="sq_sitemap_frequency">
|
361 |
+
<option value="daily" <?php echo ((SQ_Tools::$options['sq_sitemap_frequency'] == 'daily') ? 'selected="selected"' : ''); ?>><?php _e('every day', _SQ_PLUGIN_NAME_); ?></option>
|
362 |
+
<option value="weekly" <?php echo ((SQ_Tools::$options['sq_sitemap_frequency'] == 'weekly') ? 'selected="selected"' : ''); ?>><?php _e('1-3 times per week', _SQ_PLUGIN_NAME_); ?></option>
|
363 |
+
<option value="monthly" <?php echo ((SQ_Tools::$options['sq_sitemap_frequency'] == 'monthly') ? 'selected="selected"' : ''); ?>><?php _e('1-3 times per month', _SQ_PLUGIN_NAME_); ?></option>
|
364 |
+
<option value="yearly" <?php echo ((SQ_Tools::$options['sq_sitemap_frequency'] == 'yearly') ? 'selected="selected"' : ''); ?>><?php _e('1-3 times per year', _SQ_PLUGIN_NAME_); ?></option>
|
365 |
+
</select>
|
366 |
+
</li>
|
367 |
+
</ul>
|
368 |
+
</div>
|
369 |
+
</fieldset>
|
370 |
+
<a name="sq_favicon_anchor"></a>
|
371 |
+
<fieldset id="sq_favicon" style="<?php echo ((SQ_Tools::$options['sq_use'] == 0 || SQ_Tools::$options['sq_auto_favicon'] == 0) ? 'display:none;' : ''); ?>">
|
372 |
+
<legend class="sq_legend_small">
|
373 |
+
<span class="sq_legend_title"><?php _e('Change the Website Icon', _SQ_PLUGIN_NAME_); ?></span>
|
374 |
+
<span><?php _e('Now, even tablet & smartphone browsers make use of your icons. This makes having a good favicon even more important.', _SQ_PLUGIN_NAME_); ?> </span>
|
375 |
+
<span><?php echo sprintf(__('You can use %shttp://convertico.com/%s to convert your photo to icon and upload it here after that.', _SQ_PLUGIN_NAME_), '<a href="http://convertico.com/" target="_blank">', '</a>'); ?></span>
|
376 |
+
|
377 |
+
</legend>
|
378 |
+
<div>
|
379 |
+
<?php echo ((defined('SQ_MESSAGE_FAVICON')) ? '<span class="sq_message sq_error" style="display: block; padding: 11px 0;">' . SQ_MESSAGE_FAVICON . '</span>' : '') ?>
|
380 |
+
<p>
|
381 |
+
<?php _e('Upload file:', _SQ_PLUGIN_NAME_); ?><br /><br />
|
382 |
+
<?php if (SQ_Tools::$options['favicon'] <> '' && file_exists(_SQ_CACHE_DIR_ . SQ_Tools::$options['favicon'])) { ?> <img src="<?php echo get_bloginfo('url') . '/favicon.icon' . '?' . time() ?>" style="float: left; margin-top: 1px;width: 32px;height: 32px;" /><?php } ?>
|
383 |
+
<input type="file" name="favicon" id="favicon" style="float: left;" />
|
384 |
+
<input type="submit" name="sq_update" value="<?php _e('Upload', _SQ_PLUGIN_NAME_) ?>" style="float: left; margin-top: 0;" />
|
385 |
+
<br />
|
386 |
+
</p>
|
387 |
+
|
388 |
+
<span class="sq_settings_info"><?php _e('If you don\'t see the new icon in your browser, empty the browser cache and refresh the page.', _SQ_PLUGIN_NAME_); ?></span>
|
389 |
+
|
390 |
+
</div>
|
391 |
+
<div></div>
|
392 |
+
<div>
|
393 |
+
<span><?php echo __('File types: JPG, JPEG, GIF and PNG.', _SQ_PLUGIN_NAME_); ?></span>
|
394 |
+
<br /><br />
|
395 |
+
<span><strong style="color:#f7681a"><?php echo __('Does not physically create the favicon.ico file. The best option for Multisites.', _SQ_PLUGIN_NAME_) ?></strong></span>
|
396 |
+
</div>
|
397 |
+
</fieldset>
|
398 |
+
<fieldset id="sq_jsonld" style="<?php echo ((SQ_Tools::$options['sq_use'] == 0 || SQ_Tools::$options['sq_auto_jsonld'] == 0) ? 'display:none;' : ''); ?>">
|
399 |
+
<legend class="sq_legend_medium" style="height: 525px;">
|
400 |
+
<span class="sq_legend_title"><?php _e('JSON-LD for Semantic SEO', _SQ_PLUGIN_NAME_); ?></span>
|
401 |
+
<span><?php echo __('Squirrly will automatically add the JSON-LD Structured Data in your site.', _SQ_PLUGIN_NAME_) ?></span>
|
402 |
+
<span><?php echo sprintf(__('%sJSON-LD\'s Big Day at Google%s', _SQ_PLUGIN_NAME_), '<a href="http://www.seoskeptic.com/json-ld-big-day-at-google/" target="_blank">', '</a>'); ?></span>
|
403 |
+
<span><?php echo sprintf(__('%sGoogle Testing Tool%s', _SQ_PLUGIN_NAME_), '<a href="https://developers.google.com/structured-data/testing-tool/" target="_blank">', '</a>'); ?></span>
|
404 |
+
<span><?php echo sprintf(__('%sSpecify your social profiles to Google%s', _SQ_PLUGIN_NAME_), '<a href="https://developers.google.com/structured-data/customize/social-profiles" target="_blank">', '</a>'); ?></span>
|
405 |
+
</legend>
|
406 |
+
|
407 |
+
<div>
|
408 |
+
<ul id="sq_jsonld_option" class="sq_settings_info">
|
409 |
+
<li class="withborder">
|
410 |
+
<p style="line-height: 30px;"><?php _e('Your site type:', _SQ_PLUGIN_NAME_); ?>
|
411 |
+
<select name="sq_jsonld_type" class="sq_jsonld_type">
|
412 |
+
<option value="Organization" <?php echo ((SQ_Tools::$options['sq_jsonld_type'] == 'Organization') ? 'selected="selected"' : ''); ?>><?php _e('Organization', _SQ_PLUGIN_NAME_); ?></option>
|
413 |
+
<option value="Person" <?php echo ((SQ_Tools::$options['sq_jsonld_type'] == 'Person') ? 'selected="selected"' : ''); ?>><?php _e('Personal', _SQ_PLUGIN_NAME_); ?></option>
|
414 |
+
</select>
|
415 |
+
</p>
|
416 |
+
</li>
|
417 |
+
<li class="withborder">
|
418 |
+
<p>
|
419 |
+
<span class="sq_jsonld_types sq_jsonld_Organization" style="display: block;float: left; <?php echo ((SQ_Tools::$options['sq_jsonld_type'] == 'Person') ? 'display:none' : ''); ?>"><?php _e('Your Organization Name:', _SQ_PLUGIN_NAME_); ?></span>
|
420 |
+
<span class="sq_jsonld_types sq_jsonld_Person" style="width: 105px;display: block;float: left; <?php echo ((SQ_Tools::$options['sq_jsonld_type'] == 'Organization') ? 'display:none' : ''); ?>"><?php _e('Your Name:', _SQ_PLUGIN_NAME_); ?></span>
|
421 |
+
<strong><input type="text" name="sq_jsonld_name" value="<?php echo ((SQ_Tools::$options['sq_jsonld'][SQ_Tools::$options['sq_jsonld_type']]['name'] <> '') ? SQ_Tools::$options['sq_jsonld'][SQ_Tools::$options['sq_jsonld_type']]['name'] : '') ?>" size="60" style="width: 300px;" /></strong>
|
422 |
+
</p>
|
423 |
+
<p class="sq_jsonld_types sq_jsonld_Person" <?php echo ((SQ_Tools::$options['sq_jsonld_type'] == 'Organization') ? 'style="display:none"' : ''); ?>>
|
424 |
+
<span style="width: 105px;display: block;float: left;"><?php _e('Job Title:', _SQ_PLUGIN_NAME_); ?></span>
|
425 |
+
<strong><input type="text" name="sq_jsonld_jobTitle" value="<?php echo ((SQ_Tools::$options['sq_jsonld']['Person']['jobTitle'] <> '') ? SQ_Tools::$options['sq_jsonld']['Person']['jobTitle'] : '') ?>" size="60" style="width: 300px;" /></strong>
|
426 |
+
</p>
|
427 |
+
<p>
|
428 |
+
<span class="sq_jsonld_types sq_jsonld_Organization" style="width: 105px; display: block;float: left; <?php echo ((SQ_Tools::$options['sq_jsonld_type'] == 'Person') ? 'display:none' : ''); ?>"><?php _e('Logo Url:', _SQ_PLUGIN_NAME_); ?></span>
|
429 |
+
<span class="sq_jsonld_types sq_jsonld_Person" style="width: 105px;display: block;float: left; <?php echo ((SQ_Tools::$options['sq_jsonld_type'] == 'Organization') ? 'display:none' : ''); ?>"><?php _e('Image Url:', _SQ_PLUGIN_NAME_); ?></span>
|
430 |
+
<strong><input type="text" name="sq_jsonld_logo" value="<?php echo ((SQ_Tools::$options['sq_jsonld'][SQ_Tools::$options['sq_jsonld_type']]['logo'] <> '') ? SQ_Tools::$options['sq_jsonld'][SQ_Tools::$options['sq_jsonld_type']]['logo'] : '') ?>" size="60" style="width: 247px;" /><input id="sq_json_imageselect" type="button" class="sq_button" value="<?php echo __('Select Image', _SQ_PLUGIN_NAME_) ?>"/></strong>
|
431 |
+
</p>
|
432 |
+
<p>
|
433 |
+
<span style="width: 105px;display: block;float: left;"><?php _e('Contact Phone:', _SQ_PLUGIN_NAME_); ?></span>
|
434 |
+
<strong><input type="text" name="sq_jsonld_telephone" value="<?php echo ((SQ_Tools::$options['sq_jsonld'][SQ_Tools::$options['sq_jsonld_type']]['telephone'] <> '') ? SQ_Tools::$options['sq_jsonld'][SQ_Tools::$options['sq_jsonld_type']]['telephone'] : '') ?>" size="60" style="width: 350px;" /></strong>
|
435 |
+
</p>
|
436 |
+
<p class="sq_jsonld_types sq_jsonld_Organization" <?php echo ((SQ_Tools::$options['sq_jsonld_type'] == 'Person') ? 'style="display:none"' : ''); ?>>
|
437 |
+
<span style="width: 105px;display: block;float: left;"><?php _e('Contact Type:', _SQ_PLUGIN_NAME_); ?></span>
|
438 |
+
<select name="sq_jsonld_contactType" class="sq_jsonld_contactType">
|
439 |
+
<option value="customer service" <?php echo ((SQ_Tools::$options['sq_jsonld']['Organization']['contactType'] == 'customer service') ? 'selected="selected"' : ''); ?>><?php _e('Customer Service', _SQ_PLUGIN_NAME_); ?></option>
|
440 |
+
<option value="technical support" <?php echo ((SQ_Tools::$options['sq_jsonld']['Organization']['contactType'] == 'technical support') ? 'selected="selected"' : ''); ?>><?php _e('Technical Support', _SQ_PLUGIN_NAME_); ?></option>
|
441 |
+
<option value="billing support" <?php echo ((SQ_Tools::$options['sq_jsonld']['Organization']['contactType'] == 'billing support') ? 'selected="selected"' : ''); ?>><?php _e('Billing Support', _SQ_PLUGIN_NAME_); ?></option>
|
442 |
+
<option value="bill payment" <?php echo ((SQ_Tools::$options['sq_jsonld']['Organization']['contactType'] == 'bill payment') ? 'selected="selected"' : ''); ?>><?php _e('Bill Payment', _SQ_PLUGIN_NAME_); ?></option>
|
443 |
+
<option value="sales" <?php echo ((SQ_Tools::$options['sq_jsonld']['Organization']['contactType'] == 'sales') ? 'selected="selected"' : ''); ?>><?php _e('Sales', _SQ_PLUGIN_NAME_); ?></option>
|
444 |
+
<option value="reservations" <?php echo ((SQ_Tools::$options['sq_jsonld']['Organization']['contactType'] == 'reservations') ? 'selected="selected"' : ''); ?>><?php _e('Reservations', _SQ_PLUGIN_NAME_); ?></option>
|
445 |
+
<option value="credit card support" <?php echo ((SQ_Tools::$options['sq_jsonld']['Organization']['contactType'] == 'credit card support') ? 'selected="selected"' : ''); ?>><?php _e('Credit Card Support', _SQ_PLUGIN_NAME_); ?></option>
|
446 |
+
<option value="emergency" <?php echo ((SQ_Tools::$options['sq_jsonld']['Organization']['contactType'] == 'emergency') ? 'selected="selected"' : ''); ?>><?php _e('Emergency', _SQ_PLUGIN_NAME_); ?></option>
|
447 |
+
<option value="baggage tracking" <?php echo ((SQ_Tools::$options['sq_jsonld']['Organization']['contactType'] == 'baggage tracking') ? 'selected="selected"' : ''); ?>><?php _e('Baggage Tracking', _SQ_PLUGIN_NAME_); ?></option>
|
448 |
+
<option value="roadside assistance" <?php echo ((SQ_Tools::$options['sq_jsonld']['Organization']['contactType'] == 'roadside assistance') ? 'selected="selected"' : ''); ?>><?php _e('Roadside Assistance', _SQ_PLUGIN_NAME_); ?></option>
|
449 |
+
<option value="package tracking" <?php echo ((SQ_Tools::$options['sq_jsonld']['Organization']['contactType'] == 'package tracking') ? 'selected="selected"' : ''); ?>><?php _e('Package Tracking', _SQ_PLUGIN_NAME_); ?></option>
|
450 |
+
</select>
|
451 |
+
</p>
|
452 |
+
|
453 |
+
<p>
|
454 |
+
<span style="width: 105px;display: block;float: left;"><?php _e('Short Description:', _SQ_PLUGIN_NAME_); ?></span>
|
455 |
+
<strong><textarea name="sq_jsonld_description" size="60" style="width: 350px; height: 70px;" /><?php echo ((SQ_Tools::$options['sq_jsonld'][SQ_Tools::$options['sq_jsonld_type']]['description'] <> '') ? SQ_Tools::$options['sq_jsonld'][SQ_Tools::$options['sq_jsonld_type']]['description'] : '') ?></textarea></strong>
|
456 |
+
</p>
|
457 |
+
<p><input type="button" class="sq_social_link" style="margin-left:120px;background-color: #15b14a;color: white;padding: 5px; cursor: pointer;" value="<?php _e('Add your social accounts for Json-LD', _SQ_PLUGIN_NAME_) ?>" /></p>
|
458 |
+
</li>
|
459 |
+
<li style="position: relative; font-size: 14px;color: #f7681a;"><div class="sq_option_img" ></div><?php echo __('How will the search results look once google grab your data.', _SQ_PLUGIN_NAME_) ?></li>
|
460 |
+
|
461 |
+
</ul>
|
462 |
+
</div>
|
463 |
+
</fieldset>
|
464 |
+
<fieldset id="sq_tracking" >
|
465 |
+
<legend style="height: 310px ;">
|
466 |
+
<span class="sq_legend_title"><?php _e('Tracking Tools', _SQ_PLUGIN_NAME_); ?></span>
|
467 |
+
<span><?php echo sprintf(__('%sLink your Google+ profile to the content you create%s', _SQ_PLUGIN_NAME_), '<a href="https://plus.google.com/authorship" target="_blank">', '</a>'); ?></span>
|
468 |
+
<span><?php echo sprintf(__('%sStarBox, the author box that’s pushing content marketing to the stars%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/starbox-the-author-box-thats-pushing-content-marketing-to-the-stars" target="_blank">', '</a>'); ?></span>
|
469 |
+
<span><?php echo sprintf(__('%sHow to Get the Most Out of Google Analytics%s', _SQ_PLUGIN_NAME_), '<a href="http://mashable.com/2012/01/04/google-analytics-guide/" target="_blank">', '</a>'); ?></span>
|
470 |
+
<span><?php echo sprintf(__('%sA Beginner’s Guide to Facebook Insights%s', _SQ_PLUGIN_NAME_), '<a href="http://mashable.com/2010/09/03/facebook-insights-guide/" target="_blank">', '</a>'); ?></span>
|
471 |
+
|
472 |
+
</legend>
|
473 |
+
<div>
|
474 |
+
|
475 |
+
<p class="withborder withcode">
|
476 |
+
<span class="sq_icon sq_icon_googleanalytics"></span>
|
477 |
+
<?php echo sprintf(__('Google %sAnalytics ID%s:', _SQ_PLUGIN_NAME_), '<a href="http://maps.google.com/analytics/" target="_blank">', '</a>'); ?><br><strong><input type="text" name="sq_google_analytics" value="<?php echo ((SQ_Tools::$options['sq_google_analytics'] <> '') ? SQ_Tools::$options['sq_google_analytics'] : '') ?>" size="15" placeholder="UA-XXXXXXX-XX" /> (e.g. UA-XXXXXXX-XX)</strong>
|
478 |
+
</p>
|
479 |
+
<p class="withborder withcode" >
|
480 |
+
<span class="sq_icon sq_icon_facebookinsights"></span>
|
481 |
+
<?php echo sprintf(__('Facebook Admin ID (for %sInsights%s ):', _SQ_PLUGIN_NAME_), '<a href="http://www.facebook.com/insights/" target="_blank">', '</a>'); ?><br><strong> <input type="text" name="sq_facebook_insights" value="<?php echo ((SQ_Tools::$options['sq_facebook_insights'] <> '') ? SQ_Tools::$options['sq_facebook_insights'] : '') ?>" size="15" placeholder="<?php echo __('Facebook ID or https://www.facebook.com/YourProfileName', _SQ_PLUGIN_NAME_) ?>" /> (e.g. <meta property="fb:admins" content="XXXXXXXXXXXXXXXXXX" />)</strong>
|
482 |
+
</p>
|
483 |
+
<p class="withborder withcode" >
|
484 |
+
<span class="sq_icon sq_icon_pinterest"></span>
|
485 |
+
<?php echo sprintf(__('Pinterest META code:', _SQ_PLUGIN_NAME_), '<a href="#" target="_blank">', '</a>'); ?><br><strong> <input type="text" name="sq_pinterest" value="<?php echo ((SQ_Tools::$options['sq_pinterest'] <> '') ? SQ_Tools::$options['sq_pinterest'] : '') ?>" size="15" /> (e.g. <meta name="p:domain_verify" content="XXXXXXXXXXXXXXXXXX" />)</strong>
|
486 |
+
</p>
|
487 |
+
</div>
|
488 |
+
</fieldset>
|
489 |
+
|
490 |
+
|
491 |
+
<div id="sq_settings_submit">
|
492 |
+
<input type="hidden" name="action" value="sq_settingsseo_update" />
|
493 |
+
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce(_SQ_NONCE_ID_); ?>" />
|
494 |
+
<input type="submit" name="sq_update" value="<?php _e('Save SEO', _SQ_PLUGIN_NAME_) ?> »" />
|
495 |
+
</div>
|
496 |
+
</div>
|
497 |
+
</form>
|
498 |
+
|
499 |
+
</div>
|
500 |
+
|
501 |
+
</div>
|
themes/default/SQ_Blocklogin.php
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
<div id="sq_autologin" align="center">
|
18 |
<div class="sq_error"></div>
|
19 |
<span id="sq_register"><?php _e('Enter your email', _SQ_PLUGIN_NAME_); ?></span><span id="sq_register_wait"></span>
|
20 |
-
<div id="sq_register_email" ><label for="sq_email"><?php _e('Your
|
21 |
<input type="text" id="sq_email" name="sq_email" value="<?php
|
22 |
$current_user = wp_get_current_user();
|
23 |
echo $current_user->user_email;
|
@@ -46,8 +46,6 @@
|
|
46 |
</script>
|
47 |
</div>
|
48 |
<div id="sq_login_success" style="display: none;">
|
49 |
-
<div class="sq_header"><?php _e('Congratulations!
|
50 |
-
<img src="<?php echo _SQ_STATIC_API_URL_ ?>default/img/squirrly_wordpress.png" />
|
51 |
-
|
52 |
|
53 |
</div>
|
17 |
<div id="sq_autologin" align="center">
|
18 |
<div class="sq_error"></div>
|
19 |
<span id="sq_register"><?php _e('Enter your email', _SQ_PLUGIN_NAME_); ?></span><span id="sq_register_wait"></span>
|
20 |
+
<div id="sq_register_email" ><label for="sq_email"><?php _e('Your Email:', _SQ_PLUGIN_NAME_); ?></label>
|
21 |
<input type="text" id="sq_email" name="sq_email" value="<?php
|
22 |
$current_user = wp_get_current_user();
|
23 |
echo $current_user->user_email;
|
46 |
</script>
|
47 |
</div>
|
48 |
<div id="sq_login_success" style="display: none;">
|
49 |
+
<div class="sq_header"><?php _e('Congratulations! You are ready to use all the features from Squirrly', _SQ_PLUGIN_NAME_); ?><div><img src="<?php echo _SQ_THEME_URL_ . 'img/settings/squirrly.png' ?>"></div></div>
|
|
|
|
|
50 |
|
51 |
</div>
|
themes/default/SQ_Blocksearch.php
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
<div id="sq_preloading"
|
2 |
<div class="sq_box" style="display: none">
|
3 |
<div class="sq_header" ><?php _e('Optimize for Keyword', _SQ_PLUGIN_NAME_); ?></div>
|
4 |
<div id="sq_blocksearch">
|
1 |
+
<div id="sq_preloading" ><script>document.write('<?php _e('Waiting for your editor to load .. ', _SQ_PLUGIN_NAME_); ?>');</script><noscript><?php _e('Javascript is disabled! You need to activate the javascript in order to use Squirrly SEO.', _SQ_PLUGIN_NAME_); ?></noscript></div>
|
2 |
<div class="sq_box" style="display: none">
|
3 |
<div class="sq_header" ><?php _e('Optimize for Keyword', _SQ_PLUGIN_NAME_); ?></div>
|
4 |
<div id="sq_blocksearch">
|
themes/default/SQ_Menu.php
DELETED
@@ -1,536 +0,0 @@
|
|
1 |
-
<div id="sq_settings">
|
2 |
-
<form id="sq_settings_form" name="settings" action="" method="post" enctype="multipart/form-data">
|
3 |
-
<span class="sq_icon"></span>
|
4 |
-
<div id="sq_settings_title" ><?php _e('Squirrly settings', _SQ_PLUGIN_NAME_); ?> </div>
|
5 |
-
<div id="sq_settings_title" >
|
6 |
-
<input type="submit" name="sq_update" value="<?php _e('Save settings', _SQ_PLUGIN_NAME_) ?> »" />
|
7 |
-
<input id="sq_goto_dashboard" type="button" value="<?php _e('Go to dashboard', _SQ_PLUGIN_NAME_) ?> »" />
|
8 |
-
</div>
|
9 |
-
<div id="sq_settings_body">
|
10 |
-
<fieldset>
|
11 |
-
<legend>
|
12 |
-
<span class="sq_legend_title"><?php _e('Let Squirrly automatically optimize my blog', _SQ_PLUGIN_NAME_); ?></span>
|
13 |
-
<span class="sq_option_disclamer"><?php _e('<strong>For SEO Setting you can use "All In One SEO", "Wordpress SEO by Yoast", or other such plugins.</strong>', _SQ_PLUGIN_NAME_); ?></span>
|
14 |
-
|
15 |
-
<span><?php _e('If you want, you can also use the built-in settings from Squirrly (useful for beginners), by switching Yes below.', _SQ_PLUGIN_NAME_); ?></span>
|
16 |
-
<div class="sq_option_content">
|
17 |
-
<div class="sq_switch">
|
18 |
-
<input id="sq_use_on" type="radio" class="sq_switch-input" name="sq_use" value="1" <?php echo (($view->options['sq_use'] == 1) ? "checked" : '') ?> />
|
19 |
-
<label for="sq_use_on" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
20 |
-
<input id="sq_use_off" type="radio" class="sq_switch-input" name="sq_use" value="0" <?php echo ((!$view->options['sq_use']) ? "checked" : '') ?> />
|
21 |
-
<label for="sq_use_off" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
22 |
-
<span class="sq_switch-selection"></span>
|
23 |
-
</div>
|
24 |
-
</div>
|
25 |
-
</legend>
|
26 |
-
<div>
|
27 |
-
<ul id="sq_settings_sq_use" class="sq_settings_info">
|
28 |
-
<span><?php _e('What does Squirrly automatically do for SEO?', _SQ_PLUGIN_NAME_); ?></span>
|
29 |
-
<li>
|
30 |
-
<?php
|
31 |
-
$auto_option = false;
|
32 |
-
if ($view->options['sq_auto_canonical'] == 1)
|
33 |
-
$auto_option = true;
|
34 |
-
?>
|
35 |
-
<div class="sq_option_content sq_option_content_small">
|
36 |
-
<div class="sq_switch sq_seo_switch_condition" style="<?php echo (($view->options['sq_use'] == 0) ? 'display:none;' : ''); ?>">
|
37 |
-
<input id="sq_auto_canonical1" type="radio" class="sq_switch-input" name="sq_auto_canonical" value="1" <?php echo ($auto_option ? "checked" : '') ?> />
|
38 |
-
<label for="sq_auto_canonical1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
39 |
-
<input id="sq_auto_canonical0" type="radio" class="sq_switch-input" name="sq_auto_canonical" value="0" <?php echo (!$auto_option ? "checked" : '') ?> />
|
40 |
-
<label for="sq_auto_canonical0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
41 |
-
<span class="sq_switch-selection"></span>
|
42 |
-
</div>
|
43 |
-
<span><?php echo sprintf(__('Add <strong>%scanonical link%s</strong>, <strong>%srel="prev" and rel="next"%s</strong> metas', _SQ_PLUGIN_NAME_), '<a href="https://support.google.com/webmasters/answer/139066" target="_blank">', '</a>', '<a href="https://support.google.com/webmasters/answer/1663744" target="_blank">', '</a>'); ?></span>
|
44 |
-
</div>
|
45 |
-
</li>
|
46 |
-
<li>
|
47 |
-
<?php
|
48 |
-
$auto_option = false;
|
49 |
-
if ($view->options['sq_auto_sitemap'] == 1)
|
50 |
-
$auto_option = true;
|
51 |
-
?>
|
52 |
-
<div class="sq_option_content sq_option_content_small">
|
53 |
-
<div class="sq_switch sq_seo_switch_condition" style="<?php echo (($view->options['sq_use'] == 0) ? 'display:none;' : ''); ?>">
|
54 |
-
<input id="sq_auto_sitemap1" type="radio" class="sq_switch-input" name="sq_auto_sitemap" value="1" <?php echo ($auto_option ? "checked" : '') ?> />
|
55 |
-
<label for="sq_auto_sitemap1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
56 |
-
<input id="sq_auto_sitemap0" type="radio" class="sq_switch-input" name="sq_auto_sitemap" value="0" <?php echo (!$auto_option ? "checked" : '') ?> />
|
57 |
-
<label for="sq_auto_sitemap0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
58 |
-
<span class="sq_switch-selection"></span>
|
59 |
-
</div>
|
60 |
-
<span><?php echo sprintf(__('Add the <strong>%sXML Sitemap%s</strong> for search engines', _SQ_PLUGIN_NAME_), '<a href="https://support.google.com/webmasters/answer/156184?rd=1" target="_blank">', '</a>'); ?>: <strong>Or use <a href="https://wordpress.org/plugins/google-sitemap-generator/" target="_blank">Google XML Sitemaps Plugin</a></strong></span>
|
61 |
-
</div>
|
62 |
-
</li>
|
63 |
-
<li>
|
64 |
-
<?php
|
65 |
-
$auto_option = false;
|
66 |
-
if ($view->options['sq_auto_meta'] == 1)
|
67 |
-
$auto_option = true;
|
68 |
-
?>
|
69 |
-
<div class="sq_option_content sq_option_content_small">
|
70 |
-
<div class="sq_switch sq_seo_switch_condition" style="<?php echo (($view->options['sq_use'] == 0) ? 'display:none;' : ''); ?>">
|
71 |
-
<input id="sq_auto_meta1" type="radio" class="sq_switch-input" name="sq_auto_meta" value="1" <?php echo ($auto_option ? "checked" : '') ?> />
|
72 |
-
<label for="sq_auto_meta1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
73 |
-
<input id="sq_auto_meta0" type="radio" class="sq_switch-input" name="sq_auto_meta" value="0" <?php echo (!$auto_option ? "checked" : '') ?> />
|
74 |
-
<label for="sq_auto_meta0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
75 |
-
<span class="sq_switch-selection"></span>
|
76 |
-
</div>
|
77 |
-
<span><?php _e('Add the required METAs for home page (<strong>icon, author, language, dc publisher</strong>, etc.)', _SQ_PLUGIN_NAME_); ?></span>
|
78 |
-
</div>
|
79 |
-
</li>
|
80 |
-
<li>
|
81 |
-
<?php
|
82 |
-
$auto_option = false;
|
83 |
-
if ($view->options['sq_auto_favicon'] == 1)
|
84 |
-
$auto_option = true;
|
85 |
-
?>
|
86 |
-
<div class="sq_option_content sq_option_content_small">
|
87 |
-
<div class="sq_switch sq_seo_switch_condition" style="<?php echo (($view->options['sq_use'] == 0) ? 'display:none;' : ''); ?>">
|
88 |
-
<input id="sq_auto_favicon1" type="radio" class="sq_switch-input" name="sq_auto_favicon" value="1" <?php echo ($auto_option ? "checked" : '') ?> />
|
89 |
-
<label for="sq_auto_favicon1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
90 |
-
<input id="sq_auto_favicon0" type="radio" class="sq_switch-input" name="sq_auto_favicon" value="0" <?php echo (!$auto_option ? "checked" : '') ?> />
|
91 |
-
<label for="sq_auto_favicon0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
92 |
-
<span class="sq_switch-selection"></span>
|
93 |
-
</div>
|
94 |
-
<span><?php _e('Add the <strong>favicon</strong> and the <strong>icon for Apple devices</strong>.', _SQ_PLUGIN_NAME_); ?></span>
|
95 |
-
</div>
|
96 |
-
</li>
|
97 |
-
|
98 |
-
|
99 |
-
</ul>
|
100 |
-
</div>
|
101 |
-
</fieldset>
|
102 |
-
<fieldset id="sq_social_media" style="<?php echo (($view->options['sq_use'] == 0) ? 'display:none;' : ''); ?>">
|
103 |
-
<legend>
|
104 |
-
<span class="sq_legend_title"><?php _e('Social Media Options', _SQ_PLUGIN_NAME_); ?></span>
|
105 |
-
<span><?php echo sprintf(__('%sHow to pop out in Social Media with your links%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/how-to-pop-out-in-social-media-with-your-links." target="_blank">', '</a>'); ?></span>
|
106 |
-
<span><?php echo sprintf(__('%sGet busy with Facebook’s new Search Engine functions%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/get-busy-with-facebooks-new-search-engine-functions" target="_blank">', '</a>'); ?></span>
|
107 |
-
<span><?php echo sprintf(__('%sHow I Added Twitter Cards in My WordPress for Better Inbound Marketing%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/inbound_marketing_twitter_cards-pagblog-article_id62232.html" target="_blank">', '</a>'); ?></span>
|
108 |
-
</legend>
|
109 |
-
|
110 |
-
<div>
|
111 |
-
<ul id="sq_settings_sq_use" class="sq_settings_info">
|
112 |
-
<span><?php _e('What does Squirrly automatically do for Social Media?', _SQ_PLUGIN_NAME_); ?></span>
|
113 |
-
<li>
|
114 |
-
<?php
|
115 |
-
$auto_option = false;
|
116 |
-
if ($view->options['sq_auto_facebook'] == 1)
|
117 |
-
$auto_option = true;
|
118 |
-
?>
|
119 |
-
<div class="sq_option_content sq_option_content_small">
|
120 |
-
<div class="sq_switch sq_seo_switch_condition" style="<?php echo (($view->options['sq_use'] == 0) ? 'display:none;' : ''); ?>">
|
121 |
-
<input id="sq_auto_facebook1" type="radio" class="sq_switch-input" name="sq_auto_facebook" value="1" <?php echo ($auto_option ? "checked" : '') ?> />
|
122 |
-
<label for="sq_auto_facebook1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
123 |
-
<input id="sq_auto_facebook0" type="radio" class="sq_switch-input" name="sq_auto_facebook" value="0" <?php echo (!$auto_option ? "checked" : '') ?> />
|
124 |
-
<label for="sq_auto_facebook0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
125 |
-
<span class="sq_switch-selection"></span>
|
126 |
-
</div>
|
127 |
-
<span><?php echo __('Add the <strong>Social Open Graph objects</strong> for a good looking share. ', _SQ_PLUGIN_NAME_) . ' <a href="https://developers.facebook.com/tools/debug/og/object?q=' . urlencode(get_bloginfo('wpurl')) . '" target="_blank" title="Facebook Object Validator">Check here</a>'; ?></span>
|
128 |
-
</div>
|
129 |
-
</li>
|
130 |
-
<li>
|
131 |
-
<?php
|
132 |
-
$auto_option = false;
|
133 |
-
if ($view->options['sq_auto_twitter'] == 1)
|
134 |
-
$auto_option = true;
|
135 |
-
?>
|
136 |
-
<div class="sq_option_content sq_option_content_small">
|
137 |
-
<div class="sq_switch sq_seo_switch_condition" style="<?php echo (($view->options['sq_use'] == 0) ? 'display:none;' : ''); ?>">
|
138 |
-
<input id="sq_auto_twitter1" type="radio" class="sq_switch-input" name="sq_auto_twitter" value="1" <?php echo ($auto_option ? "checked" : '') ?> />
|
139 |
-
<label for="sq_auto_twitter1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
140 |
-
<input id="sq_auto_twitter0" type="radio" class="sq_switch-input" name="sq_auto_twitter" value="0" <?php echo (!$auto_option ? "checked" : '') ?> />
|
141 |
-
<label for="sq_auto_twitter0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
142 |
-
<span class="sq_switch-selection"></span>
|
143 |
-
</div>
|
144 |
-
<span><?php echo __('Add the <strong>Twitter card</strong> in your tweets. ', _SQ_PLUGIN_NAME_) . ' <a href="https://dev.twitter.com/docs/cards/validation/validator" target="_blank" title="Twitter Card Validator">Check here</a> <em>(Select Summary > Validate URLs)</em>'; ?></span>
|
145 |
-
</div>
|
146 |
-
<div>
|
147 |
-
<span id="sq_twitter_account" style=" <?php echo (!$auto_option ? 'display:none;' : ''); ?>" ><?php _e('Your twitter account: ', _SQ_PLUGIN_NAME_); ?><input type="text" name="sq_twitter_account" value="<?php echo (($view->options['sq_twitter_account'] <> '') ? $view->options['sq_twitter_account'] : '') ?>" size="30" style="width:150px;" placeholder="@" /> </span>
|
148 |
-
</div>
|
149 |
-
</li>
|
150 |
-
</ul>
|
151 |
-
</div>
|
152 |
-
</fieldset>
|
153 |
-
<fieldset id="sq_title_description_keywords" <?php echo (($view->options['sq_use'] == 0) ? 'style="display:none;"' : ''); ?> <?php echo (($view->options['sq_fp_title'] == '' || $view->options['sq_auto_seo'] == 1) ? '' : 'class="sq_custom_title"'); ?>>
|
154 |
-
<legend class="sq_legend_medium">
|
155 |
-
<span class="sq_legend_title"><?php _e('First page optimization', _SQ_PLUGIN_NAME_); ?></span>
|
156 |
-
<span><?php echo sprintf(__('%sThe best SEO approach to Meta information%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/the-best-seo-approach-to-meta-information" target="_blank">', '</a>'); ?></span>
|
157 |
-
|
158 |
-
<span><?php _e('Add meta <strong>title</strong> in Home Page', _SQ_PLUGIN_NAME_); ?></span>
|
159 |
-
<?php
|
160 |
-
$auto_option = false;
|
161 |
-
if ($view->options['sq_auto_title'] == 1)
|
162 |
-
$auto_option = true;
|
163 |
-
?>
|
164 |
-
<div class="sq_option_content sq_option_content">
|
165 |
-
<div class="sq_switch sq_seo_switch_condition" style="<?php echo (($view->options['sq_use'] == 0) ? 'display:none;' : ''); ?>">
|
166 |
-
<input id="sq_auto_title1" type="radio" class="sq_switch-input" name="sq_auto_title" value="1" <?php echo ($auto_option ? "checked" : '') ?> />
|
167 |
-
<label for="sq_auto_title1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
168 |
-
<input id="sq_auto_title0" type="radio" class="sq_switch-input" name="sq_auto_title" value="0" <?php echo (!$auto_option ? "checked" : '') ?> />
|
169 |
-
<label for="sq_auto_title0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
170 |
-
<span class="sq_switch-selection"></span>
|
171 |
-
</div>
|
172 |
-
</div>
|
173 |
-
|
174 |
-
<span><?php _e('Add meta <strong>description</strong> and <strong>keywords</strong> in Home Page', _SQ_PLUGIN_NAME_); ?></span>
|
175 |
-
<?php
|
176 |
-
$auto_option = false;
|
177 |
-
if ($view->options['sq_auto_description'] == 1)
|
178 |
-
$auto_option = true;
|
179 |
-
?>
|
180 |
-
<div class="sq_option_content sq_option_content">
|
181 |
-
<div class="sq_switch sq_seo_switch_condition" style="<?php echo (($view->options['sq_use'] == 0) ? 'display:none;' : ''); ?>">
|
182 |
-
<input id="sq_auto_description1" type="radio" class="sq_switch-input" name="sq_auto_description" value="1" <?php echo ($auto_option ? "checked" : '') ?> />
|
183 |
-
<label for="sq_auto_description1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
184 |
-
<input id="sq_auto_description0" type="radio" class="sq_switch-input" name="sq_auto_description" value="0" <?php echo (!$auto_option ? "checked" : '') ?> />
|
185 |
-
<label for="sq_auto_description0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
186 |
-
<span class="sq_switch-selection"></span>
|
187 |
-
</div>
|
188 |
-
|
189 |
-
</div>
|
190 |
-
|
191 |
-
</legend>
|
192 |
-
|
193 |
-
<div>
|
194 |
-
<?php
|
195 |
-
$auto_option = false;
|
196 |
-
if ($view->options['sq_fp_title'] == '')
|
197 |
-
$auto_option = true;
|
198 |
-
|
199 |
-
if ($pageId = get_option('page_on_front')) {
|
200 |
-
if (SQ_ObjController::getModel('SQ_Frontend')->getAdvancedMeta($pageId, 'title') <> '') {
|
201 |
-
$view->options['sq_fp_title'] = SQ_ObjController::getModel('SQ_Frontend')->getAdvancedMeta($pageId, 'title');
|
202 |
-
$view->options['sq_fp_description'] = SQ_ObjController::getModel('SQ_Frontend')->getAdvancedMeta($pageId, 'description');
|
203 |
-
if (!$view->options['sq_fp_keywords'] = SQ_ObjController::getModel('SQ_Frontend')->getAdvancedMeta($pageId, 'keyword')) {
|
204 |
-
$json = SQ_ObjController::getModel('SQ_Post')->getKeyword($pageId);
|
205 |
-
if (isset($json) && isset($json->keyword) && $json->keyword <> '') {
|
206 |
-
$view->options['sq_fp_keywords'] = $json->keyword;
|
207 |
-
}
|
208 |
-
}
|
209 |
-
}
|
210 |
-
}
|
211 |
-
?>
|
212 |
-
<input id="sq_customize" type="hidden" name="sq_auto_seo" value="0">
|
213 |
-
|
214 |
-
<div id="sq_customize_settings">
|
215 |
-
<p class="withborder">
|
216 |
-
<?php _e('Title:', _SQ_PLUGIN_NAME_); ?><input type="text" name="sq_fp_title" value="<?php echo (($view->options['sq_fp_title'] <> '') ? $view->options['sq_fp_title'] : '') ?>" size="75" /><span id="sq_title_info" />
|
217 |
-
<span id="sq_fp_title_length"></span><span class="sq_settings_info"><?php _e('Tips: Length 10-75 chars', _SQ_PLUGIN_NAME_); ?></span>
|
218 |
-
</p>
|
219 |
-
<p class="withborder">
|
220 |
-
<?php _e('Description:', _SQ_PLUGIN_NAME_); ?><textarea name="sq_fp_description" cols="70" rows="3" ><?php echo (($view->options['sq_fp_description'] <> '') ? $view->options['sq_fp_description'] : '') ?></textarea><span id="sq_description_info" />
|
221 |
-
<span id="sq_fp_description_length"></span><span class="sq_settings_info"><?php _e('Tips: Length 70-165 chars', _SQ_PLUGIN_NAME_); ?></span>
|
222 |
-
</p>
|
223 |
-
<p class="withborder">
|
224 |
-
<?php _e('Keywords:', _SQ_PLUGIN_NAME_); ?><input type="text" name="sq_fp_keywords" value="<?php echo (($view->options['sq_fp_keywords'] <> '') ? $view->options['sq_fp_keywords'] : '') ?>" size="70" />
|
225 |
-
<span id="sq_fp_keywords_length"></span><span class="sq_settings_info"><?php _e('Tips: 2-4 keywords', _SQ_PLUGIN_NAME_); ?></span>
|
226 |
-
</p>
|
227 |
-
</div>
|
228 |
-
|
229 |
-
<span class="sq_option_info"><?php _e('You First Page Preview (Title, Description, Keywords)', _SQ_PLUGIN_NAME_); ?></span>
|
230 |
-
<div id="sq_snippet">
|
231 |
-
<div id="sq_snippet_name"><?php _e('Squirrly Snippet', _SQ_PLUGIN_NAME_) ?></div>
|
232 |
-
|
233 |
-
<ul id="sq_snippet_ul">
|
234 |
-
<li id="sq_snippet_title"></li>
|
235 |
-
<li id="sq_snippet_url"></li>
|
236 |
-
<li id="sq_snippet_description"></li>
|
237 |
-
<li id="sq_snippet_source"><a href="http://www.google.com/webmasters/tools/richsnippets?url=<?php echo urlencode(get_bloginfo('wpurl')) ?>" target="_blank"><?php _e('Check with google ...', _SQ_PLUGIN_NAME_) ?></a></li>
|
238 |
-
</ul>
|
239 |
-
|
240 |
-
<div id="sq_snippet_disclaimer" ><?php _e('If you don\'t see any changes in custom optimization, check if another SEO plugin affects Squirrly SEO', _SQ_PLUGIN_NAME_) ?></div>
|
241 |
-
</div>
|
242 |
-
</div>
|
243 |
-
</fieldset>
|
244 |
-
<fieldset>
|
245 |
-
<legend class="sq_legend_medium">
|
246 |
-
<span class="sq_legend_title"><?php _e('Squirrly Options', _SQ_PLUGIN_NAME_); ?></span>
|
247 |
-
<span><?php echo sprintf(__('%sThe right premises in working with Squirrly, WordPress SEO plugin%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/the-right-premises-in-working-with-squirrly-wordpress-seo-plugin" target="_blank">', '</a>'); ?></span>
|
248 |
-
<span><?php echo sprintf(__('%sGetting inspired with Squirrly WordPress SEO plugin%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/getting-inspired-with-squirrly-wordpress-seo-plugin" target="_blank">', '</a>'); ?></span>
|
249 |
-
|
250 |
-
<span><?php echo sprintf(__('%sThere is a New SEO Live Assistant from Squirrly%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/there-is-a-new-seo-live-assistant-from-squirrly" target="_blank">', '</a>'); ?></span>
|
251 |
-
<span><?php echo sprintf(__('%sHow to create Human friendly content with the WordPress SEO plugin?%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/how-to-create-human-friendly-content-with-the-a-wordpress-seo-plugin" target="_blank">', '</a>'); ?></span>
|
252 |
-
|
253 |
-
</legend>
|
254 |
-
|
255 |
-
<div>
|
256 |
-
<div class="sq_option_content" >
|
257 |
-
<div class="sq_switch">
|
258 |
-
<input id="ignore_warn_yes" class="sq_switch-input" type="radio" name="ignore_warn" value="0" <?php echo (($view->options['ignore_warn'] == 0) ? "checked" : '') ?> />
|
259 |
-
<label for="ignore_warn_yes" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
260 |
-
<input id="sq_ignore_warn" class="sq_switch-input" type="radio" name="ignore_warn" value="1" <?php echo (($view->options['ignore_warn'] == 1) ? "checked" : '') ?> />
|
261 |
-
<label for="sq_ignore_warn" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
262 |
-
<span class="sq_switch-selection"></span>
|
263 |
-
</div>
|
264 |
-
<span><?php _e('Let Squirrly warn me if there are errors related to SEO settings', _SQ_PLUGIN_NAME_); ?></span>
|
265 |
-
</div>
|
266 |
-
|
267 |
-
<div class="sq_option_content">
|
268 |
-
<div class="sq_switch">
|
269 |
-
<input id="sq_keyword_help1" type="radio" class="sq_switch-input" name="sq_keyword_help" value="1" <?php echo (($view->options['sq_keyword_help'] == 1) ? "checked" : '') ?> />
|
270 |
-
<label for="sq_keyword_help1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
271 |
-
<input id="sq_keyword_help0" type="radio" class="sq_switch-input" name="sq_keyword_help" value="0" <?php echo (($view->options['sq_keyword_help'] == 0) ? "checked" : '') ?> />
|
272 |
-
<label for="sq_keyword_help0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
273 |
-
<span class="sq_switch-selection"></span>
|
274 |
-
</div>
|
275 |
-
<span><?php _e('Show <strong>"Enter a keyword"</strong> bubble when posting a new article.', _SQ_PLUGIN_NAME_); ?></span>
|
276 |
-
</div>
|
277 |
-
|
278 |
-
<div class="sq_option_content">
|
279 |
-
<div class="sq_switch">
|
280 |
-
<input id="sq_keyword_information1" type="radio" class="sq_switch-input" name="sq_keyword_information" value="1" <?php echo (($view->options['sq_keyword_information'] == 1) ? "checked" : '') ?> />
|
281 |
-
<label for="sq_keyword_information1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
282 |
-
<input id="sq_keyword_information0" type="radio" class="sq_switch-input" name="sq_keyword_information" value="0" <?php echo (($view->options['sq_keyword_information'] == 0) ? "checked" : '') ?> />
|
283 |
-
<label for="sq_keyword_information0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
284 |
-
<span class="sq_switch-selection"></span>
|
285 |
-
</div>
|
286 |
-
<span><?php _e('Always show <strong>Keyword Informations</strong> about the selected keyword.', _SQ_PLUGIN_NAME_); ?></span>
|
287 |
-
</div>
|
288 |
-
|
289 |
-
|
290 |
-
<div class="sq_option_content">
|
291 |
-
<div class="sq_switch">
|
292 |
-
<input id="sq_sla1" type="radio" class="sq_switch-input" name="sq_sla" value="1" <?php echo (($view->options['sq_sla'] == 1) ? "checked" : '') ?> />
|
293 |
-
<label for="sq_sla1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
294 |
-
<input id="sq_sla0" type="radio" class="sq_switch-input" name="sq_sla" value="0" <?php echo (($view->options['sq_sla'] == 0) ? "checked" : '') ?> />
|
295 |
-
<label for="sq_sla0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
296 |
-
<span class="sq_switch-selection"></span>
|
297 |
-
</div>
|
298 |
-
<span><?php _e('Use <strong> the NEW version of the SEO Live Assistant</strong>.', _SQ_PLUGIN_NAME_); ?></span>
|
299 |
-
</div>
|
300 |
-
|
301 |
-
<div class="sq_option_content">
|
302 |
-
<div class="sq_switch">
|
303 |
-
<input id="sq_keywordtag1" type="radio" class="sq_switch-input" name="sq_keywordtag" value="1" <?php echo (($view->options['sq_keywordtag'] == 1) ? "checked" : '') ?> />
|
304 |
-
<label for="sq_keywordtag1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
305 |
-
<input id="sq_keywordtag0" type="radio" class="sq_switch-input" name="sq_keywordtag" value="0" <?php echo (($view->options['sq_keywordtag'] == 0) ? "checked" : '') ?> />
|
306 |
-
<label for="sq_keywordtag0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
307 |
-
<span class="sq_switch-selection"></span>
|
308 |
-
</div>
|
309 |
-
<span><?php _e('Add the Post tags in meta keyword.', _SQ_PLUGIN_NAME_); ?></span>
|
310 |
-
</div>
|
311 |
-
|
312 |
-
<div class="sq_option_content">
|
313 |
-
<div class="sq_switch">
|
314 |
-
<input id="sq_local_images1" type="radio" class="sq_switch-input" name="sq_local_images" value="1" <?php echo (($view->options['sq_local_images'] == 1) ? "checked" : '') ?> />
|
315 |
-
<label for="sq_local_images1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
316 |
-
<input id="sq_local_images0" type="radio" class="sq_switch-input" name="sq_local_images" value="0" <?php echo (($view->options['sq_local_images'] == 0) ? "checked" : '') ?> />
|
317 |
-
<label for="sq_local_images0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
318 |
-
<span class="sq_switch-selection"></span>
|
319 |
-
</div>
|
320 |
-
<span><?php _e('Download <strong>remote images</strong> in your <strong>Media Library</strong> for the new posts.', _SQ_PLUGIN_NAME_); ?></span>
|
321 |
-
</div>
|
322 |
-
|
323 |
-
|
324 |
-
<div class="sq_option_content">
|
325 |
-
<p class=" withbordertop">
|
326 |
-
<span><?php _e('Select the google extension for which Squirrly will check the google rank', _SQ_PLUGIN_NAME_); ?></span>
|
327 |
-
</p>
|
328 |
-
<div class="abh_select">
|
329 |
-
<select id="sq_google_country" name="sq_google_country">
|
330 |
-
<option value="com"><?php _e('Default', _SQ_PLUGIN_NAME_); ?> - Google.com (http://www.google.com/)</option>
|
331 |
-
<option value="as"><?php _e('American Samoa', _SQ_PLUGIN_NAME_); ?> (http://www.google.as/)</option>
|
332 |
-
<option value=".off.ai"><?php _e('Anguilla', _SQ_PLUGIN_NAME_); ?> (http://www.google.off.ai/)</option>
|
333 |
-
<option value="com.ag"><?php _e('Antigua and Barbuda', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.ag/)</option>
|
334 |
-
<option value="com.ar"><?php _e('Argentina', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.ar/)</option>
|
335 |
-
<option value="com.au"><?php _e('Australia', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.au/)</option>
|
336 |
-
<option value="at"><?php _e('Austria', _SQ_PLUGIN_NAME_); ?> (http://www.google.at/)</option>
|
337 |
-
<option value="az"><?php _e('Azerbaijan', 'seo-rank-reporter'); ?> (http://www.google.az/)</option>
|
338 |
-
<option value="be"><?php _e('Belgium', _SQ_PLUGIN_NAME_); ?> (http://www.google.be/)</option>
|
339 |
-
<option value="com.br"><?php _e('Brazil', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.br/)</option>
|
340 |
-
<option value="vg"><?php _e('British Virgin Islands', _SQ_PLUGIN_NAME_); ?> (http://www.google.vg/)</option>
|
341 |
-
<option value="bi"><?php _e('Burundi', _SQ_PLUGIN_NAME_); ?> (http://www.google.bi/)</option>
|
342 |
-
<option value="ca"><?php _e('Canada', _SQ_PLUGIN_NAME_); ?> (http://www.google.ca/)</option>
|
343 |
-
<option value="td"><?php _e('Chad', _SQ_PLUGIN_NAME_); ?> (http://www.google.td/)</option>
|
344 |
-
<option value="cl"><?php _e('Chile', _SQ_PLUGIN_NAME_); ?> (http://www.google.cl/)</option>
|
345 |
-
<option value="com.co"><?php _e('Colombia', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.co/)</option>
|
346 |
-
<option value="co.cr"><?php _e('Costa Rica', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.cr/)</option>
|
347 |
-
<option value="ci"><?php _e('Côte d\'Ivoire', _SQ_PLUGIN_NAME_); ?> (http://www.google.ci/)</option>
|
348 |
-
<option value="com.cu"><?php _e('Cuba', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.cu/)</option>
|
349 |
-
<option value="cz"><?php _e('Czech Republic', _SQ_PLUGIN_NAME_); ?> (http://www.google.cz/)</option>
|
350 |
-
<option value="cd"><?php _e('Dem. Rep. of the Congo', _SQ_PLUGIN_NAME_); ?> (http://www.google.cd/)</option>
|
351 |
-
<option value="dk"><?php _e('Denmark', _SQ_PLUGIN_NAME_); ?> (http://www.google.dk/)</option>
|
352 |
-
<option value="dj"><?php _e('Djibouti', _SQ_PLUGIN_NAME_); ?> (http://www.google.dj/)</option>
|
353 |
-
<option value="com.do"><?php _e('Dominican Republic', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.do/)</option>
|
354 |
-
<option value="com.ec"><?php _e('Ecuador', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.ec/)</option>
|
355 |
-
<option value="com.sv"><?php _e('El Salvador', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.sv/)</option>
|
356 |
-
<option value="fm"><?php _e('Federated States of Micronesia', _SQ_PLUGIN_NAME_); ?> (http://www.google.fm/)</option>
|
357 |
-
<option value="com.fj"><?php _e('Fiji', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.fj/)</option>
|
358 |
-
<option value="fi"><?php _e('Finland', _SQ_PLUGIN_NAME_); ?> (http://www.google.fi/)</option>
|
359 |
-
<option value="fr"><?php _e('France', _SQ_PLUGIN_NAME_); ?> (http://www.google.fr/)</option>
|
360 |
-
<option value="gm"><?php _e('The Gambia', _SQ_PLUGIN_NAME_); ?> (http://www.google.gm/)</option>
|
361 |
-
<option value="ge"><?php _e('Georgia', _SQ_PLUGIN_NAME_); ?> (http://www.google.ge/)</option>
|
362 |
-
<option value="de"><?php _e('Germany', _SQ_PLUGIN_NAME_); ?> (http://www.google.de/)</option>
|
363 |
-
<option value="com.gi"><?php _e('Gibraltar', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.gi/)</option>
|
364 |
-
<option value="com.gr"><?php _e('Greece', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.gr/)</option>
|
365 |
-
<option value="gl"><?php _e('Greenland', _SQ_PLUGIN_NAME_); ?> (http://www.google.gl/)</option>
|
366 |
-
<option value="gg"><?php _e('Guernsey', _SQ_PLUGIN_NAME_); ?> (http://www.google.gg/)</option>
|
367 |
-
<option value="hn"><?php _e('Honduras', _SQ_PLUGIN_NAME_); ?> (http://www.google.hn/)</option>
|
368 |
-
<option value="com.hk"><?php _e('Hong Kong', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.hk/)</option>
|
369 |
-
<option value="co.hu"><?php _e('Hungary', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.hu/)</option>
|
370 |
-
<option value="co.in"><?php _e('India', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.in/)</option>
|
371 |
-
<option value="ie"><?php _e('Ireland', _SQ_PLUGIN_NAME_); ?> (http://www.google.ie/)</option>
|
372 |
-
<option value="co.im"><?php _e('Isle of Man', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.im/)</option>
|
373 |
-
<option value="co.il"><?php _e('Israel', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.il/)</option>
|
374 |
-
<option value="it"><?php _e('Italy', _SQ_PLUGIN_NAME_); ?> (http://www.google.it/)</option>
|
375 |
-
<option value="com.jm"><?php _e('Jamaica', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.jm/)</option>
|
376 |
-
<option value="co.jp"><?php _e('Japan', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.jp/)</option>
|
377 |
-
<option value="co.je"><?php _e('Jersey', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.je/)</option>
|
378 |
-
<option value="kz"><?php _e('Kazakhstan', _SQ_PLUGIN_NAME_); ?> (http://www.google.kz/)</option>
|
379 |
-
<option value="co.kr"><?php _e('Korea', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.kr/)</option>
|
380 |
-
<option value="lv"><?php _e('Latvia', _SQ_PLUGIN_NAME_); ?> (http://www.google.lv/)</option>
|
381 |
-
<option value="co.ls"><?php _e('Lesotho', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.ls/)</option>
|
382 |
-
<option value="li"><?php _e('Liechtenstein', _SQ_PLUGIN_NAME_); ?> (http://www.google.li/)</option>
|
383 |
-
<option value="lt"><?php _e('Lithuania', _SQ_PLUGIN_NAME_); ?> (http://www.google.lt/)</option>
|
384 |
-
<option value="lu"><?php _e('Luxembourg', _SQ_PLUGIN_NAME_); ?> (http://www.google.lu/)</option>
|
385 |
-
<option value="mw"><?php _e('Malawi', _SQ_PLUGIN_NAME_); ?> (http://www.google.mw/)</option>
|
386 |
-
<option value="com.my"><?php _e('Malaysia', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.my/)</option>
|
387 |
-
<option value="com.mt"><?php _e('Malta', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.mt/)</option>
|
388 |
-
<option value="mu"><?php _e('Mauritius', _SQ_PLUGIN_NAME_); ?> (http://www.google.mu/)</option>
|
389 |
-
<option value="com.mx"><?php _e('México', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.mx/)</option>
|
390 |
-
<option value="ms"><?php _e('Montserrat', _SQ_PLUGIN_NAME_); ?> (http://www.google.ms/)</option>
|
391 |
-
<option value="com.na"><?php _e('Namibia', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.na/)</option>
|
392 |
-
<option value="com.np"><?php _e('Nepal', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.np/)</option>
|
393 |
-
<option value="nl"><?php _e('Netherlands', _SQ_PLUGIN_NAME_); ?> (http://www.google.nl/)</option>
|
394 |
-
<option value="co.nz"><?php _e('New Zealand', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.nz/)</option>
|
395 |
-
<option value="com.ni"><?php _e('Nicaragua', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.ni/)</option>
|
396 |
-
<option value="com.nf"><?php _e('Norfolk Island', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.nf/)</option>
|
397 |
-
<option value="com.pk"><?php _e('Pakistan', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.pk/)</option>
|
398 |
-
<option value="com.pa"><?php _e('Panamá', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.pa/)</option>
|
399 |
-
<option value="com.py"><?php _e('Paraguay', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.py/)</option>
|
400 |
-
<option value="com.pe"><?php _e('Perú', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.pe/)</option>
|
401 |
-
<option value="com.ph"><?php _e('Philippines', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.ph/)</option>
|
402 |
-
<option value="pn"><?php _e('Pitcairn Islands', _SQ_PLUGIN_NAME_); ?> (http://www.google.pn/)</option>
|
403 |
-
<option value="pl"><?php _e('Poland', _SQ_PLUGIN_NAME_); ?> (http://www.google.pl/)</option>
|
404 |
-
<option value="pt"><?php _e('Portugal', _SQ_PLUGIN_NAME_); ?> (http://www.google.pt/)</option>
|
405 |
-
<option value="com.pr"><?php _e('Puerto Rico', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.pr/)</option>
|
406 |
-
<option value="cg"><?php _e('Rep. of the Congo', _SQ_PLUGIN_NAME_); ?> (http://www.google.cg/)</option>
|
407 |
-
<option value="ro"><?php _e('Romania', _SQ_PLUGIN_NAME_); ?> (http://www.google.ro/)</option>
|
408 |
-
<option value="ru"><?php _e('Russia', _SQ_PLUGIN_NAME_); ?> (http://www.google.ru/)</option>
|
409 |
-
<option value="rw"><?php _e('Rwanda', _SQ_PLUGIN_NAME_); ?> (http://www.google.rw/)</option>
|
410 |
-
<option value="sh"><?php _e('Saint Helena', _SQ_PLUGIN_NAME_); ?> (http://www.google.sh/)</option>
|
411 |
-
<option value="sm"><?php _e('San Marino', _SQ_PLUGIN_NAME_); ?> (http://www.google.sm/)</option>
|
412 |
-
<option value="com.sg"><?php _e('Singapore', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.sg/)</option>
|
413 |
-
<option value="sk"><?php _e('Slovakia', _SQ_PLUGIN_NAME_); ?> (http://www.google.sk/)</option>
|
414 |
-
<option value="co.za"><?php _e('South Africa', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.za/)</option>
|
415 |
-
<option value="es"><?php _e('Spain', _SQ_PLUGIN_NAME_); ?> (http://www.google.es/)</option>
|
416 |
-
<option value="se"><?php _e('Sweden', _SQ_PLUGIN_NAME_); ?> (http://www.google.se/)</option>
|
417 |
-
<option value="ch"><?php _e('Switzerland', _SQ_PLUGIN_NAME_); ?> (http://www.google.ch/)</option>
|
418 |
-
<option value="com.tw"><?php _e('Taiwan', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.tw/)</option>
|
419 |
-
<option value="co.th"><?php _e('Thailand', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.th/)</option>
|
420 |
-
<option value="tt"><?php _e('Trinidad and Tobago', _SQ_PLUGIN_NAME_); ?> (http://www.google.tt/)</option>
|
421 |
-
<option value="com.tr"><?php _e('Turkey', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.tr/)</option>
|
422 |
-
<option value="com.ua"><?php _e('Ukraine', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.ua/)</option>
|
423 |
-
<option value="ae"><?php _e('United Arab Emirates', _SQ_PLUGIN_NAME_); ?> (http://www.google.ae/)</option>
|
424 |
-
<option value="co.uk"><?php _e('United Kingdom', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.uk/)</option>
|
425 |
-
<option value="com.uy"><?php _e('Uruguay', _SQ_PLUGIN_NAME_); ?> (http://www.google.com.uy/)</option>
|
426 |
-
<option value="uz"><?php _e('Uzbekistan', _SQ_PLUGIN_NAME_); ?> (http://www.google.uz/)</option>
|
427 |
-
<option value="vu"><?php _e('Vanuatu', _SQ_PLUGIN_NAME_); ?> (http://www.google.vu/)</option>
|
428 |
-
<option value="co.ve"><?php _e('Venezuela', _SQ_PLUGIN_NAME_); ?> (http://www.google.co.ve/)</option>
|
429 |
-
</select>
|
430 |
-
</div>
|
431 |
-
<br />
|
432 |
-
<div class="sq_option_content">
|
433 |
-
<div class="sq_switch">
|
434 |
-
<input id="sq_google_country_strict1" type="radio" class="sq_switch-input" name="sq_google_country_strict" value="1" <?php echo (($view->options['sq_google_country_strict'] == 1) ? "checked" : '') ?> />
|
435 |
-
<label for="sq_google_country_strict1" class="sq_switch-label sq_switch-label-off"><?php _e('Yes', _SQ_PLUGIN_NAME_); ?></label>
|
436 |
-
<input id="sq_google_country_strict0" type="radio" class="sq_switch-input" name="sq_google_country_strict" value="0" <?php echo (($view->options['sq_google_country_strict'] == 0) ? "checked" : '') ?> />
|
437 |
-
<label for="sq_google_country_strict0" class="sq_switch-label sq_switch-label-on"><?php _e('No', _SQ_PLUGIN_NAME_); ?></label>
|
438 |
-
<span class="sq_switch-selection"></span>
|
439 |
-
</div>
|
440 |
-
<span><?php _e('Restricts search results to results originating in the above particular country.', _SQ_PLUGIN_NAME_); ?></span>
|
441 |
-
</div>
|
442 |
-
|
443 |
-
</div>
|
444 |
-
</div>
|
445 |
-
</fieldset>
|
446 |
-
<a name="sq_favicon_anchor"></a>
|
447 |
-
<fieldset id="sq_favicon" style="<?php echo (($view->options['sq_auto_favicon'] == 0) ? 'display:none;' : ''); ?>">
|
448 |
-
<legend>
|
449 |
-
<span class="sq_legend_title"><?php _e('Change the Website Icon', _SQ_PLUGIN_NAME_); ?></span>
|
450 |
-
<span><?php _e('Now even the tablets and smartphone browsers also make use of your icons. This has led to an increasesd importance to having a good favicon.', _SQ_PLUGIN_NAME_); ?> </span>
|
451 |
-
<span><?php echo sprintf(__('You can use %shttp://convertico.com/%s to convert your photo to icon and upload it here after that.', _SQ_PLUGIN_NAME_), '<a href="http://convertico.com/" target="_blank">', '</a>'); ?></span>
|
452 |
-
|
453 |
-
</legend>
|
454 |
-
<div>
|
455 |
-
<p>
|
456 |
-
<?php _e('File types: JPG, JPEG, GIF and PNG.', _SQ_PLUGIN_NAME_); ?>
|
457 |
-
</p>
|
458 |
-
<?php echo ((defined('SQ_MESSAGE_FAVICON')) ? '<span class="sq_message sq_error" style="display: block; padding: 11px 0;">' . SQ_MESSAGE_FAVICON . '</span>' : '') ?>
|
459 |
-
<p>
|
460 |
-
<?php _e('Upload file:', _SQ_PLUGIN_NAME_); ?><br />
|
461 |
-
<?php if (file_exists(ABSPATH . '/favicon.ico')) { ?>
|
462 |
-
<img src="<?php echo get_bloginfo('url') . '/favicon.ico' . '?' . time() ?>" style="float: left; margin-top: 5px; width: 20px; height: 20px;" />
|
463 |
-
<?php } ?>
|
464 |
-
<input type="file" name="favicon" id="favicon" style="float: left;" />
|
465 |
-
<input type="submit" name="sq_update" value="<?php _e('Upload', _SQ_PLUGIN_NAME_) ?>" style="float: left; margin-top: 0;" />
|
466 |
-
|
467 |
-
</p>
|
468 |
-
|
469 |
-
<span class="sq_settings_info"><?php _e('If you don\'t see the new icon in your browser, empty the browser cache and refresh the page.', _SQ_PLUGIN_NAME_); ?></span>
|
470 |
-
</div>
|
471 |
-
</fieldset>
|
472 |
-
<fieldset >
|
473 |
-
<legend class="sq_legend_medium">
|
474 |
-
<span class="sq_legend_title"><?php _e('Tracking Tools', _SQ_PLUGIN_NAME_); ?></span>
|
475 |
-
<span><?php echo sprintf(__('%sLink your Google+ profile to the content you create%s', _SQ_PLUGIN_NAME_), '<a href="https://plus.google.com/authorship" target="_blank">', '</a>'); ?></span>
|
476 |
-
<span><?php echo sprintf(__('%sStarBox, the author box that’s pushing content marketing to the stars%s', _SQ_PLUGIN_NAME_), '<a href="http://www.squirrly.co/starbox-the-author-box-thats-pushing-content-marketing-to-the-stars" target="_blank">', '</a>'); ?></span>
|
477 |
-
<span><?php echo sprintf(__('%sHow to Get the Most Out of Google Analytics%s', _SQ_PLUGIN_NAME_), '<a href="http://mashable.com/2012/01/04/google-analytics-guide/" target="_blank">', '</a>'); ?></span>
|
478 |
-
<span><?php echo sprintf(__('%sA Beginner’s Guide to Facebook Insights%s', _SQ_PLUGIN_NAME_), '<a href="http://mashable.com/2010/09/03/facebook-insights-guide/" target="_blank">', '</a>'); ?></span>
|
479 |
-
|
480 |
-
</legend>
|
481 |
-
<div>
|
482 |
-
<p class="withborder withcode">
|
483 |
-
<span class="sq_icon sq_icon_googleplus"></span>
|
484 |
-
<?php _e('Google Plus URL:', _SQ_PLUGIN_NAME_); ?><br /><strong><input type="text" name="sq_google_plus" value="<?php echo (($view->options['sq_google_plus'] <> '') ? $view->options['sq_google_plus'] : '') ?>" size="60" /> (e.g. https://plus.google.com/00000000000000/posts)</strong>
|
485 |
-
</p>
|
486 |
-
<p class="withborder withcode">
|
487 |
-
<span class="sq_icon sq_icon_googleanalytics"></span>
|
488 |
-
<?php echo sprintf(__('Google %sAnalytics ID%s:', _SQ_PLUGIN_NAME_), '<a href="http://maps.google.com/analytics/" target="_blank">', '</a>'); ?><br><strong><input type="text" name="sq_google_analytics" value="<?php echo (($view->options['sq_google_analytics'] <> '') ? $view->options['sq_google_analytics'] : '') ?>" size="15" /> (e.g. UA-XXXXXXX-XX)</strong>
|
489 |
-
</p>
|
490 |
-
<p class="withborder withcode" >
|
491 |
-
<span class="sq_icon sq_icon_facebookinsights"></span>
|
492 |
-
<?php echo sprintf(__('Facebook META code (for %sInsights%s ):', _SQ_PLUGIN_NAME_), '<a href="http://www.facebook.com/insights/" target="_blank">', '</a>'); ?><br><strong><meta property="fb:admins" content=" <input type="text" name="sq_facebook_insights" value="<?php echo (($view->options['sq_facebook_insights'] <> '') ? $view->options['sq_facebook_insights'] : '') ?>" size="15" /> " /></strong>
|
493 |
-
</p>
|
494 |
-
<p class="withborder withcode" >
|
495 |
-
<span class="sq_icon sq_icon_pinterest"></span>
|
496 |
-
<?php echo sprintf(__('Pinterest META code:', _SQ_PLUGIN_NAME_), '<a href="#" target="_blank">', '</a>'); ?><br><strong><meta name="p:domain_verify" content=" <input type="text" name="sq_pinterest" value="<?php echo (($view->options['sq_pinterest'] <> '') ? $view->options['sq_pinterest'] : '') ?>" size="15" /> " /></strong>
|
497 |
-
</p>
|
498 |
-
</div>
|
499 |
-
</fieldset>
|
500 |
-
<fieldset >
|
501 |
-
<legend>
|
502 |
-
<span class="sq_legend_title"><?php _e('Search Engines Tools', _SQ_PLUGIN_NAME_); ?></span>
|
503 |
-
<span><?php echo sprintf(__('%sBest practices to help Google find, crawl, and index your site%s', _SQ_PLUGIN_NAME_), '<a href="https://support.google.com/webmasters/answer/35769?hl=en" target="_blank">', '</a>'); ?></span>
|
504 |
-
<span><?php echo sprintf(__('%sBing Webmaster Tools Help & How-To Center%s', _SQ_PLUGIN_NAME_), '<a href="http://www.bing.com/webmaster/help/help-center-661b2d18" target="_blank">', '</a>'); ?></span>
|
505 |
-
|
506 |
-
</legend>
|
507 |
-
<div>
|
508 |
-
<p class="withborder withcode">
|
509 |
-
<span class="sq_icon sq_icon_googlewt"></span>
|
510 |
-
<?php echo sprintf(__('Google META verification code for %sWebmaster Tool%s:', _SQ_PLUGIN_NAME_), '<a href="http://maps.google.com/webmasters/" target="_blank">', '</a>'); ?><br><strong><meta name="google-site-verification" content=" <input type="text" name="sq_google_wt" value="<?php echo (($view->options['sq_google_wt'] <> '') ? $view->options['sq_google_wt'] : '') ?>" size="15" /> " /></strong>
|
511 |
-
</p>
|
512 |
-
<p class="withborder withcode" >
|
513 |
-
<span class="sq_icon sq_icon_bingwt" ></span>
|
514 |
-
<?php echo sprintf(__('Bing META code (for %sWebmaster Tool%s ):', _SQ_PLUGIN_NAME_), '<a href="http://www.bing.com/toolbox/webmaster/" target="_blank">', '</a>'); ?><br><strong><meta name="msvalidate.01" content=" <input type="text" name="sq_bing_wt" value="<?php echo (($view->options['sq_bing_wt'] <> '') ? $view->options['sq_bing_wt'] : '') ?>" size="15" /> " /></strong>
|
515 |
-
</p>
|
516 |
-
<p class="withborder withcode" >
|
517 |
-
<span class="sq_icon sq_icon_alexat" ></span>
|
518 |
-
<?php echo sprintf(__('Alexa META code (for %sAlexa Tool%s ):', _SQ_PLUGIN_NAME_), '<a href="http://www.alexa.com/pro/subscription/signup?tsver=0&puid=200" target="_blank">', '</a>'); ?><br><strong><meta name="alexaVerifyID" content=" <input type="text" name="sq_alexa" value="<?php echo (($view->options['sq_alexa'] <> '') ? $view->options['sq_alexa'] : '') ?>" size="15" /> /></strong>
|
519 |
-
</p>
|
520 |
-
</div>
|
521 |
-
</fieldset>
|
522 |
-
|
523 |
-
<div id="sq_settings_submit">
|
524 |
-
<input type="hidden" name="action" value="sq_settings_update" />
|
525 |
-
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce(_SQ_NONCE_ID_); ?>" />
|
526 |
-
<input type="submit" name="sq_update" value="<?php _e('Save settings', _SQ_PLUGIN_NAME_) ?> »" />
|
527 |
-
</div>
|
528 |
-
</div>
|
529 |
-
</form>
|
530 |
-
<script type="text/javascript">
|
531 |
-
var sq_blogurl = "<?php echo get_bloginfo('url') ?>";
|
532 |
-
var __snippetshort = "<?php echo __('Too short', _SQ_PLUGIN_NAME_) ?>";
|
533 |
-
var __snippetlong = "<?php echo __('Too long', _SQ_PLUGIN_NAME_) ?>";
|
534 |
-
jQuery('#sq_settings').find('select[name=sq_google_country]').val('<?php echo $view->options['sq_google_country']; ?>');
|
535 |
-
</script>
|
536 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
themes/default/SQ_notices.php
CHANGED
@@ -5,9 +5,22 @@ if ($type == 'errors_count') {
|
|
5 |
<span class='awaiting-mod count-<?php echo $message; ?>'>
|
6 |
<span class='sq_count pending-count'><?php echo $message; ?></span>
|
7 |
</span>
|
8 |
-
<?php }
|
|
|
9 |
<div id="<?php echo $id ?>" class="<?php echo $type; ?> sq_message">
|
10 |
<p><strong><?php echo $message; ?></strong></p>
|
11 |
</div>
|
12 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
}
|
5 |
<span class='awaiting-mod count-<?php echo $message; ?>'>
|
6 |
<span class='sq_count pending-count'><?php echo $message; ?></span>
|
7 |
</span>
|
8 |
+
<?php } elseif ($type == 'sq_error') { ?>
|
9 |
+
<style>.sq_nohelp{display: none;}</style>
|
10 |
<div id="<?php echo $id ?>" class="<?php echo $type; ?> sq_message">
|
11 |
<p><strong><?php echo $message; ?></strong></p>
|
12 |
</div>
|
13 |
<?php
|
14 |
+
} elseif ($type == 'sq_success') {
|
15 |
+
?>
|
16 |
+
<div id="<?php echo $id ?>" class="<?php echo $type; ?> sq_message">
|
17 |
+
<p><strong><?php echo $message; ?></strong></p>
|
18 |
+
</div>
|
19 |
+
<?php
|
20 |
+
} elseif ($type == 'sq_helpnotice') {
|
21 |
+
?>
|
22 |
+
<div id="<?php echo $id ?>" class="<?php echo $type; ?> sq_message sq_helpnotice">
|
23 |
+
<p><strong><?php echo $message; ?></strong></p>
|
24 |
+
</div>
|
25 |
+
<?php
|
26 |
}
|
themes/default/css/sq_blockaccount.css
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.update-nag, .updated, .show-settings, .screen-meta-toggle{
|
2 |
+
display: none !important;
|
3 |
+
}
|
4 |
+
|
5 |
+
|
6 |
+
@media only screen and (max-width: 1030px){
|
7 |
+
.sq_helpside {
|
8 |
+
clear: both;
|
9 |
+
float: left;
|
10 |
+
width: 808px;
|
11 |
+
height: 275px;
|
12 |
+
margin: 0;
|
13 |
+
padding: 0;
|
14 |
+
}
|
15 |
+
|
16 |
+
.sq_helpside > div {
|
17 |
+
float: left;
|
18 |
+
width: 175px;
|
19 |
+
border: 1px solid #ccc;
|
20 |
+
background-color: #fcfcfc;
|
21 |
+
padding: 10px;
|
22 |
+
margin: 10px 5px 10px 0;
|
23 |
+
height: 240px;
|
24 |
+
margin-bottom: 10px;
|
25 |
+
}
|
26 |
+
}
|
themes/default/css/sq_blockaudit.css
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
#cl_settings_body .sq_button{display:inline-block;background-color:#FFF;line-height:35px;color:#504310;font-size:18px;text-shadow:0.1em 0.1em #FFFF52;background:#FFD424;cursor:pointer;border:1px solid #F7A504;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;font-weight:bold;padding:0px 10px;margin:6px 0 5px 6px;width:250px;text-align:center;text-decoration:none}#sq_settings_body a.sq_button{padding:8px 11px;text-transform:none;text-decoration:none}#sq_settings #sq_option_audit{display:inline-block}#sq_settings #sq_option_audit_link,#sq_settings #sq_option_audit_notready{display:block;width:100%;text-align:center}#sq_settings #sq_audit_date{display:inline-block;margin:0px 0 0 7px;color:#ccc;font-size:15px;text-align:center}
|
|
themes/default/css/sq_blockdashboard.css
ADDED
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.update-nag, .updated, .show-settings, .screen-meta-toggle{
|
2 |
+
display: none !important;
|
3 |
+
}
|
4 |
+
|
5 |
+
.sq_helpside{
|
6 |
+
margin-top: 10px;
|
7 |
+
}
|
8 |
+
|
9 |
+
#sq_helpdashboardcontent{
|
10 |
+
float: left;
|
11 |
+
width: 700px;
|
12 |
+
}
|
13 |
+
|
14 |
+
#sq_settings ul.sq_slidelist{
|
15 |
+
max-width: 700px;
|
16 |
+
}
|
17 |
+
|
18 |
+
#sq_settings ul.sq_slidelist li{
|
19 |
+
position: relative;
|
20 |
+
background: white;
|
21 |
+
height: 250px;
|
22 |
+
min-height: 225px;
|
23 |
+
position: relative;
|
24 |
+
-moz-osx-font-smoothing: grayscale;
|
25 |
+
-webkit-font-smoothing: antialiased;
|
26 |
+
display: inline-block;
|
27 |
+
margin: 0 10px 40px 10px;
|
28 |
+
max-width: 100%;
|
29 |
+
min-width: 327px;
|
30 |
+
width: 327px;
|
31 |
+
vertical-align: top;
|
32 |
+
float: left;
|
33 |
+
border: 1px solid #ccc;
|
34 |
+
}
|
35 |
+
|
36 |
+
#sq_settings ul.sq_slidelist li a{
|
37 |
+
background-position: center center;
|
38 |
+
background-repeat: no-repeat;
|
39 |
+
background-size: cover;
|
40 |
+
display: block;
|
41 |
+
height: 225px;
|
42 |
+
}
|
43 |
+
|
44 |
+
#sq_settings ul.sq_slidelist li div{
|
45 |
+
background: white;
|
46 |
+
-webkit-border-radius: 2px;
|
47 |
+
-moz-border-radius: 2px;
|
48 |
+
border-top: 1px dashed #ccc;
|
49 |
+
border-radius: 2px;
|
50 |
+
bottom: -5px;
|
51 |
+
cursor: pointer;
|
52 |
+
font-size: 15px;
|
53 |
+
height: 35px;
|
54 |
+
padding: 10px 0 4px 0;
|
55 |
+
margin: 0 0 5px 0;
|
56 |
+
overflow: hidden;
|
57 |
+
position: absolute;
|
58 |
+
text-align: center;
|
59 |
+
-webkit-transition: bottom,0.3s;
|
60 |
+
-moz-transition: bottom,0.3s;
|
61 |
+
-ms-transition: bottom,0.3s;
|
62 |
+
-o-transition: bottom,0.3s;
|
63 |
+
transition: bottom,0.3s;
|
64 |
+
width: 100%;
|
65 |
+
}
|
66 |
+
|
67 |
+
#sq_settings ul.sq_slidelist li span{
|
68 |
+
position: absolute;
|
69 |
+
top: -6px;
|
70 |
+
right: -7px;
|
71 |
+
font-size: 11px;
|
72 |
+
height: 5px;
|
73 |
+
width: 5px;
|
74 |
+
padding: 5px;
|
75 |
+
line-height: 5px;
|
76 |
+
background-color: #f9f9f9;
|
77 |
+
color: #999;
|
78 |
+
border-radius: 10px;
|
79 |
+
border: 1px solid #ccc;
|
80 |
+
z-index: 10;
|
81 |
+
cursor: pointer;
|
82 |
+
}
|
83 |
+
|
84 |
+
|
85 |
+
@media only screen and (max-width: 1160px){
|
86 |
+
#sq_helpdashboardcontent{
|
87 |
+
width: 575px;
|
88 |
+
}
|
89 |
+
}
|
90 |
+
|
91 |
+
@media only screen and (max-width: 1030px){
|
92 |
+
#sq_helpdashboardcontent{
|
93 |
+
width: 803px;
|
94 |
+
}
|
95 |
+
|
96 |
+
.sq_helpside {
|
97 |
+
clear: both;
|
98 |
+
float: left;
|
99 |
+
width: 808px;
|
100 |
+
height: 275px;
|
101 |
+
margin: 0;
|
102 |
+
padding: 0;
|
103 |
+
}
|
104 |
+
|
105 |
+
.sq_helpside > div {
|
106 |
+
float: left;
|
107 |
+
width: 175px;
|
108 |
+
border: 1px solid #ccc;
|
109 |
+
background-color: #fcfcfc;
|
110 |
+
padding: 10px;
|
111 |
+
margin: 10px 5px 10px 0;
|
112 |
+
height: 240px;
|
113 |
+
margin-bottom: 10px;
|
114 |
+
}
|
115 |
+
|
116 |
+
|
117 |
+
}
|
themes/default/css/sq_blockresearch.css
CHANGED
@@ -1 +1,443 @@
|
|
1 |
-
.sq_beta{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.sq_beta{
|
2 |
+
display: none !important;
|
3 |
+
}
|
4 |
+
|
5 |
+
.sq_limit_exceeded{
|
6 |
+
clear: both !important;
|
7 |
+
margin: 0 auto;
|
8 |
+
text-align: center;
|
9 |
+
}
|
10 |
+
.sq_limit_exceeded a{
|
11 |
+
text-decoration: none;
|
12 |
+
display: block;
|
13 |
+
width: 200px;
|
14 |
+
clear: both;
|
15 |
+
background-color: #1cab09;
|
16 |
+
font-size: 15px;
|
17 |
+
font-weight: bold;
|
18 |
+
color: white;
|
19 |
+
margin: 10px auto 0 auto;
|
20 |
+
padding: 11px;
|
21 |
+
position: relative;
|
22 |
+
text-shadow: 1px 1px #555;
|
23 |
+
cursor: pointer;
|
24 |
+
}
|
25 |
+
|
26 |
+
#sq_research_tab:before,
|
27 |
+
#sq_research:before{
|
28 |
+
display: block;
|
29 |
+
border: none;
|
30 |
+
content: " ";
|
31 |
+
background: transparent url('../img/sprite.png') repeat-x;
|
32 |
+
background-position: 0 -360px;
|
33 |
+
width: 100%;
|
34 |
+
height: 5px;
|
35 |
+
border-radius: 2px 2px 0 0;
|
36 |
+
opacity: 0.3;
|
37 |
+
}
|
38 |
+
#sq_research_tab:hover:before,
|
39 |
+
#sq_research:hover:before{
|
40 |
+
opacity: 0.8;
|
41 |
+
}
|
42 |
+
#sq_research{
|
43 |
+
position: relative;
|
44 |
+
padding: 0px 0 5px 0;
|
45 |
+
margin: 20px 1px;
|
46 |
+
background-color: #fcfcfc;
|
47 |
+
min-width: 460px;
|
48 |
+
box-shadow: 0px 1px 2px -1px #444;
|
49 |
+
-moz-box-shadow: 0px 1px 2px -1px #444;
|
50 |
+
-webkit-box-shadow: 0px 1px 2px -1px #444;
|
51 |
+
|
52 |
+
}
|
53 |
+
#sq_research_tab{
|
54 |
+
position: relative;
|
55 |
+
padding: 0px 0 5px 0;
|
56 |
+
margin: 20px 1px;
|
57 |
+
background-color: #fcfcfc;
|
58 |
+
min-width: 460px;
|
59 |
+
cursor: pointer;
|
60 |
+
box-shadow: 0px 1px 2px -1px #444;
|
61 |
+
-moz-box-shadow: 0px 1px 2px -1px #444;
|
62 |
+
-webkit-box-shadow: 0px 1px 2px -1px #444;
|
63 |
+
}
|
64 |
+
|
65 |
+
#sq_research_tab #sq_research_tab_title{
|
66 |
+
display: block;
|
67 |
+
text-align: left;
|
68 |
+
font-size: 18px;
|
69 |
+
font-weight: normal;
|
70 |
+
line-height: 30px;
|
71 |
+
color: #333;
|
72 |
+
margin: 0 0 10px 0;
|
73 |
+
padding: 10px 0 10px 10px;
|
74 |
+
height: 16px;
|
75 |
+
}
|
76 |
+
.sq_arrow_down{
|
77 |
+
float: right;
|
78 |
+
width: 35px;
|
79 |
+
height: 20px;
|
80 |
+
margin-top: 14px;
|
81 |
+
margin-right: 10px;
|
82 |
+
background: transparent url('../img/sprite.png?rev=1') no-repeat;
|
83 |
+
background-position: -221px -50px;
|
84 |
+
cursor: pointer;
|
85 |
+
}
|
86 |
+
.sq_arrow_up{
|
87 |
+
float: right;
|
88 |
+
width: 35px;
|
89 |
+
height: 20px;
|
90 |
+
margin-top: 14px;
|
91 |
+
margin-right: 10px;
|
92 |
+
background: transparent url('../img/sprite.png?rev=1') no-repeat;
|
93 |
+
background-position: -262px -50px;
|
94 |
+
cursor: pointer;
|
95 |
+
}
|
96 |
+
#sq_research #sq_research_title{
|
97 |
+
display: block;
|
98 |
+
text-align: left;
|
99 |
+
font-size: 18px;
|
100 |
+
font-weight: normal;
|
101 |
+
line-height: 30px;
|
102 |
+
color: #333;
|
103 |
+
border-bottom: 1px dashed #d1d1d1;
|
104 |
+
margin: 0 0 10px 0;
|
105 |
+
padding: 10px 0 20px 10px;
|
106 |
+
height: 16px;
|
107 |
+
}
|
108 |
+
#sq_research #sq_research_body{
|
109 |
+
display: block;
|
110 |
+
font-size: 12px;
|
111 |
+
color: #333;
|
112 |
+
line-height: 16px;
|
113 |
+
text-align: left;
|
114 |
+
padding: 10px 0 2px 10px;
|
115 |
+
}
|
116 |
+
|
117 |
+
#sq_research .sq_keywords_research_add{
|
118 |
+
background-color: transparent;
|
119 |
+
color: #20bc49;
|
120 |
+
font-size: 12px;
|
121 |
+
font-weight: bold;
|
122 |
+
text-shadow: 1px 1px white;
|
123 |
+
box-shadow: 1px 1px 0px 0px white;
|
124 |
+
border: 1px solid #20bc49;
|
125 |
+
padding: 5px 6px;
|
126 |
+
margin-left: 0px;
|
127 |
+
margin-top: 0px;
|
128 |
+
cursor: pointer;
|
129 |
+
}
|
130 |
+
|
131 |
+
#sq_research .sq_keywords_research_submit{
|
132 |
+
background-color: #20bc49;
|
133 |
+
color: white;
|
134 |
+
font-size: 12px;
|
135 |
+
font-weight: bold;
|
136 |
+
text-shadow: 1px 1px #333;
|
137 |
+
box-shadow: 1px 1px 0px 0px white;
|
138 |
+
border: 1px solid #20bc49;
|
139 |
+
padding: 5px 6px;
|
140 |
+
margin-left: 10px;
|
141 |
+
margin-top: 0px;
|
142 |
+
cursor: pointer;
|
143 |
+
}
|
144 |
+
|
145 |
+
#sq_research .sq_keywords_research_clear{
|
146 |
+
background-color: transparent;
|
147 |
+
color: #20bc49;
|
148 |
+
font-size: 11px;
|
149 |
+
font-weight: bold;
|
150 |
+
text-shadow: 1px 1px white;
|
151 |
+
box-shadow: 1px 1px 0px 0px white;
|
152 |
+
border: 1px solid #20bc49;
|
153 |
+
padding: 4px 5px;
|
154 |
+
margin-left: 15px;
|
155 |
+
margin-top: 0px;
|
156 |
+
cursor: pointer;
|
157 |
+
}
|
158 |
+
|
159 |
+
#sq_research .sq_research_selectit{
|
160 |
+
padding: 4px 11px;
|
161 |
+
font-size: 12px;
|
162 |
+
font-weight: bold;
|
163 |
+
color: white;
|
164 |
+
cursor: pointer;
|
165 |
+
background-color: #20bc49;
|
166 |
+
text-shadow: 1px 1px #555;
|
167 |
+
|
168 |
+
border-radius: 3px;
|
169 |
+
-webkit-border-radius: 3px;
|
170 |
+
-moz-border-radius: 3px;
|
171 |
+
}
|
172 |
+
#sq_research .sq_keywords_research_clear{
|
173 |
+
float: right;
|
174 |
+
margin-right: 10px;
|
175 |
+
margin-top: 2px;
|
176 |
+
}
|
177 |
+
#sq_research .sq_keyword_research{
|
178 |
+
float: left;
|
179 |
+
width: 390px;
|
180 |
+
margin-top: 2px;
|
181 |
+
line-height: 16px;
|
182 |
+
border-radius: 2px;
|
183 |
+
-webkit-border-radius: 2px;
|
184 |
+
-moz-border-radius: 2px;
|
185 |
+
padding: 5px;
|
186 |
+
font-size: 14px;
|
187 |
+
font-weight: bold;
|
188 |
+
color: #15b14a;
|
189 |
+
}
|
190 |
+
|
191 |
+
#sq_research_body #sq_keywords_research{
|
192 |
+
display: table;
|
193 |
+
width: 100%;
|
194 |
+
}
|
195 |
+
#sq_research_body #sq_keywords_research > li{
|
196 |
+
display: table;
|
197 |
+
width: 100%;
|
198 |
+
border-bottom: 1px solid #dedede;
|
199 |
+
padding-bottom: 13px;
|
200 |
+
margin-bottom: 10px;
|
201 |
+
}
|
202 |
+
|
203 |
+
#sq_research_body .sq_searching{
|
204 |
+
width: 100% !important;
|
205 |
+
height: 30px;
|
206 |
+
margin-top: 10px;
|
207 |
+
background: transparent url('../img/editor/sq_searching.gif') no-repeat center;
|
208 |
+
}
|
209 |
+
|
210 |
+
#sq_research_body #sq_keywords_research > li > div{
|
211 |
+
float: left;
|
212 |
+
}
|
213 |
+
#sq_research_body #sq_keywords_research > li > div:first-child{
|
214 |
+
margin-top: 7px;
|
215 |
+
margin-right: 5px;
|
216 |
+
font-size: 15px;
|
217 |
+
font-weight: bold;
|
218 |
+
color: #999;
|
219 |
+
}
|
220 |
+
|
221 |
+
#sq_research_body ul.sq_progressbar li{
|
222 |
+
float: left;
|
223 |
+
padding: 0 2px;
|
224 |
+
}
|
225 |
+
|
226 |
+
#sq_research_body input[type=text]{
|
227 |
+
float: left;
|
228 |
+
width: 255px;
|
229 |
+
padding: 5px;
|
230 |
+
font-size: 14px;
|
231 |
+
font-weight: bold;
|
232 |
+
color: #333;
|
233 |
+
background-color: #e2ffd6;
|
234 |
+
|
235 |
+
}
|
236 |
+
|
237 |
+
#sq_research_body .sq_research_selectit{
|
238 |
+
float: left;
|
239 |
+
}
|
240 |
+
#sq_research_body .sq_keywords_info{
|
241 |
+
margin-left: 10px;
|
242 |
+
display: table;
|
243 |
+
width: 230px;
|
244 |
+
}
|
245 |
+
|
246 |
+
#sq_research_body #sq_research_help{
|
247 |
+
clear: both;
|
248 |
+
}
|
249 |
+
#sq_research #sq_research_close{
|
250 |
+
position: absolute;
|
251 |
+
background-color: #e5d8cd;
|
252 |
+
right: -6px;
|
253 |
+
top: -3px;
|
254 |
+
font-size: 13px;
|
255 |
+
font-weight: bold;
|
256 |
+
color: #333;
|
257 |
+
width: 8px;
|
258 |
+
line-height: 16px;
|
259 |
+
padding: 0px 5px 3px;
|
260 |
+
border-radius: 10px;
|
261 |
+
-webkit-border-radius: 10px;
|
262 |
+
-moz-border-radius: 10px;
|
263 |
+
border: 1px solid darkOliveGreen;
|
264 |
+
cursor: pointer;
|
265 |
+
z-index: 2;
|
266 |
+
}
|
267 |
+
|
268 |
+
|
269 |
+
/* FOR THE RECOMMENDED KEYWORDS IN RESEARCH*/
|
270 |
+
#sq_research_body .sq_top_keywords{
|
271 |
+
clear: both !important;
|
272 |
+
float: none !important;
|
273 |
+
width: calc(100% - 40px) !important;
|
274 |
+
margin: 0 auto !important;
|
275 |
+
padding-top: 15px;
|
276 |
+
}
|
277 |
+
#sq_research_body .sq_top_keywords table{
|
278 |
+
border-collapse:collapse;
|
279 |
+
}
|
280 |
+
#sq_research_body .sq_top_keywords > table{
|
281 |
+
position: relative;
|
282 |
+
background-color: #f7f7f7;
|
283 |
+
width: 100%;
|
284 |
+
}
|
285 |
+
#sq_research_body .sq_top_keywords > table{
|
286 |
+
border: 1px solid #eee;
|
287 |
+
}
|
288 |
+
#sq_research_body .sq_top_keywords > table > tbody > tr {
|
289 |
+
background-color: #fff;
|
290 |
+
}
|
291 |
+
#sq_research_body .sq_top_keywords > table > tr > th,
|
292 |
+
#sq_research_body .sq_top_keywords > table > tbody > tr > th,
|
293 |
+
#sq_research_body .sq_top_keywords > table > tr > td,
|
294 |
+
#sq_research_body .sq_top_keywords > table > tbody > tr > td{
|
295 |
+
|
296 |
+
border: 1px dashed #f1f1f1;
|
297 |
+
padding: 3px 10px;
|
298 |
+
color: #414141;
|
299 |
+
font-family: Arial, Helvetica, sans-serif;
|
300 |
+
font-size: 14px;
|
301 |
+
line-height: 1.4em;
|
302 |
+
}
|
303 |
+
|
304 |
+
#sq_research_body .sq_top_keywords > table > tr > th{
|
305 |
+
text-align: center;
|
306 |
+
font-weight: bold;
|
307 |
+
color: #ccc;
|
308 |
+
}
|
309 |
+
#sq_research_body .sq_top_keywords_rank{
|
310 |
+
font-size: 14px;
|
311 |
+
font-weight: bold;
|
312 |
+
margin-left: 5px;
|
313 |
+
}
|
314 |
+
#sq_research_body .sq_top_keywords_rank strong{
|
315 |
+
font-size: 14px;
|
316 |
+
margin: 0 5px;
|
317 |
+
border: 1px solid red;
|
318 |
+
background-color: white;
|
319 |
+
border-radius: 50px;
|
320 |
+
-webkit-border-radius: 50px;
|
321 |
+
-moz-border-radius: 50px;
|
322 |
+
padding: 3px 7px;
|
323 |
+
text-shadow: 1px 1px white;
|
324 |
+
color: red;
|
325 |
+
font-family: 'Megalopolis',Arial,Helvetica,Sans-Serif;
|
326 |
+
text-align: center;
|
327 |
+
}
|
328 |
+
|
329 |
+
#sq_research_body .sq_research_showinfo{
|
330 |
+
display: inline-block;
|
331 |
+
background: transparent url('../img/sprite.png') no-repeat;
|
332 |
+
background-position: 0px -48px;
|
333 |
+
margin: 3px 0 0 5px;
|
334 |
+
cursor: pointer;
|
335 |
+
font-weight: bold;
|
336 |
+
color: brown;
|
337 |
+
width: 25px;
|
338 |
+
height: 25px;
|
339 |
+
}
|
340 |
+
#sq_research_body .sq_research_showinfo:hover{
|
341 |
+
background-position: 0px -71px;
|
342 |
+
}
|
343 |
+
|
344 |
+
#sq_research_body .sq_top_keywords_info{
|
345 |
+
display: none;
|
346 |
+
|
347 |
+
background-color: #F7F7F7;
|
348 |
+
width: 220px;
|
349 |
+
|
350 |
+
padding: 5px;
|
351 |
+
position: absolute;
|
352 |
+
|
353 |
+
right: -230px;
|
354 |
+
top: 0px;
|
355 |
+
text-align: center;
|
356 |
+
border: 1px solid #CCCCCC;
|
357 |
+
border-radius: 2px;
|
358 |
+
-webkit-border-radius: 2px;
|
359 |
+
-moz-border-radius: 2px;
|
360 |
+
box-shadow: 0 0 10px 0 #999999;
|
361 |
+
-moz-box-shadow:0 0 10px 0 #999999;
|
362 |
+
-webkit-box-shadow:0 0 10px 0 #999999;
|
363 |
+
z-index: 10;
|
364 |
+
}
|
365 |
+
#sq_research_body .sq_to_keywords_info table{
|
366 |
+
margin: 0 auto;
|
367 |
+
}
|
368 |
+
#sq_research_body .sq_top_keywords_info td{
|
369 |
+
border-bottom: 1px dashed #D8D8D8;
|
370 |
+
padding: 4px 10px;
|
371 |
+
color: #414141;
|
372 |
+
text-align: left;
|
373 |
+
font-size: 12px;
|
374 |
+
}
|
375 |
+
#sq_research_body .sq_top_keywords_info td .sq_top_keywords_rank{
|
376 |
+
font-size: 12px;
|
377 |
+
font-weight: normal;
|
378 |
+
}
|
379 |
+
#sq_research_body .sq_input_noback{
|
380 |
+
background: transparent;
|
381 |
+
border: 0px;
|
382 |
+
}
|
383 |
+
|
384 |
+
/******************Multilanguage *********************/
|
385 |
+
ul.sq_research_lang{
|
386 |
+
position: absolute;
|
387 |
+
display: block;
|
388 |
+
top: 4px;
|
389 |
+
right: 100px;
|
390 |
+
width: 117px;
|
391 |
+
height: 30px;
|
392 |
+
margin-top: 9px;
|
393 |
+
padding: 0;
|
394 |
+
}
|
395 |
+
|
396 |
+
ul.sq_research_lang li.sq_research_lang{
|
397 |
+
float: left;
|
398 |
+
background: transparent url('../img/sprite.png') no-repeat;
|
399 |
+
background-position: 0px -48px;
|
400 |
+
|
401 |
+
margin-right: 5px;
|
402 |
+
width: 18px;
|
403 |
+
height: 13px;
|
404 |
+
cursor: pointer;
|
405 |
+
}
|
406 |
+
|
407 |
+
ul.sq_research_lang li.selected{
|
408 |
+
border: 1px solid darkgreen;
|
409 |
+
border-radius: 2px;
|
410 |
+
margin-top: -2px;
|
411 |
+
margin-left: -2px;
|
412 |
+
}
|
413 |
+
|
414 |
+
li#sq_research_lang_us{
|
415 |
+
background-position: -10px -234px;
|
416 |
+
}
|
417 |
+
li#sq_research_lang_uk{
|
418 |
+
background-position: -32px -234px;
|
419 |
+
}
|
420 |
+
li#sq_research_lang_ca{
|
421 |
+
background-position: -54px -234px;
|
422 |
+
}
|
423 |
+
li#sq_research_lang_de{
|
424 |
+
background-position: -76px -234px;
|
425 |
+
}
|
426 |
+
li#sq_research_lang_fr{
|
427 |
+
background-position: -99px -234px;
|
428 |
+
}
|
429 |
+
li#sq_research_lang_it{
|
430 |
+
background-position: -121px -234px;
|
431 |
+
}
|
432 |
+
li#sq_research_lang_es{
|
433 |
+
background-position: -143px -234px;
|
434 |
+
}
|
435 |
+
li#sq_research_lang_ru{
|
436 |
+
background-position: -209px -234px;
|
437 |
+
}
|
438 |
+
li#sq_research_lang_br{
|
439 |
+
background-position: -165px -234px;
|
440 |
+
}
|
441 |
+
li#sq_research_lang_au{
|
442 |
+
background-position: -187px -234px;
|
443 |
+
}
|
themes/default/css/sq_blocksearch.css
CHANGED
@@ -1 +1,1004 @@
|
|
1 |
-
#sq_blocksearch input,#sq_blocksearch textarea,#sq_blocksearch{font-family:Arial, Helvetica, sans-serif}#sq_tinymce_inactive{padding:20px !important;font-size:16px}#sq_blocksearch ::-webkit-scrollbar{width:18px;height:15px}#sq_blocksearch ::-webkit-scrollbar-button:start:decrement,#sq_blocksearch ::-webkit-scrollbar-button:end:increment{height:1px;display:block;background-color:#EFF7FF}#sq_blocksearch ::-webkit-scrollbar-track{border-left:6px solid transparent;border-right:1px solid transparent;background-clip:padding-box}#sq_blocksearch ::-webkit-scrollbar-thumb:vertical{min-height:28px;padding-top:100px;border-left:6px solid transparent;border-right:1px solid transparent;border-top:0 solid transparent;border-bottom:0 solid transparent;background-clip:padding-box;background-color:rgba(0, 0, 0, 0.2);-webkit-box-shadow:inset 1px 1px 0 rgba(0, 0, 0, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.07)}#sq_search_second{text-align:center}#sq_blocksearch .sq_keyword{background-color:lightslategray;position:relative;text-align:center;height:auto;width:100%;z-index:1001}#sq_blocksearch .sq_keyword #sq_keyword_help{position:absolute;background-color:brown;font-size:24px;font-weight:bold;color:white;top:-24px;left:-238px;width:204px;height:auto;padding:20px 10px;line-height:22px;border-radius:1px;-webkit-border-radius:1px;-moz-border-radius:1px;box-shadow:0px 0px 9px 0px #000;-moz-box-shadow:0 0 9px 0px #000;-webkit-box-shadow:0 0 9px 0px #000}#sq_blocksearch .sq_keyword #sq_keyword_help span{position:absolute;right:-25px;top:34px;width:0;height:0;border-top:13px solid transparent;border-bottom:9px solid transparent;border-left:25px solid brown}#sq_blocksearch .sq_keyword #sq_keyword_help p{line-height:13px;margin-top:5px;font-size:11px;color:#d1d1d1}#sq_blocksearch #sq_keyword,#sq_blocksearch #sq_keyword_second{display:inline-block;margin:16px 2px;width:85%;line-height:26px;height:30px;padding:0 5px;font-size:15px;font-weight:bold;background-color:#e2ffd6;color:darkgreen}#sq_blocksearch #sq_keyword_check,#sq_blocksearch #sq_keyword_second_check{display:inline-block;line-height:26px;width:26px;height:30px;background-color:#89e46a;font-size:15px;font-weight:bold;color:white;margin:0px;padding:0px;border:none;cursor:pointer}#sq_blocksearch .sq_search_notrelevant{line-height:30px;width:125px}.sq_search > a{display:block;width:100%;text-align:center;margin:4px auto 0 auto;padding:0;text-decoration:underline;font-size:14px;color:#21759B}#sq_blocksearch #sq_types{height:26px;padding:5px 0;background-color:#fcfcfc;box-shadow:0px 1px 3px -2px #888;-moz-box-shadow:0px 1px 3px -2px #888;-webkit-box-shadow:0px 1px 3px -2px #888}#sq_blocksearch #sq_types ul{margin:0}#sq_blocksearch #sq_types ul li{float:left;background:transparent url('../img/sprite.png') no-repeat;margin:0 0 0 17px;cursor:pointer;font-weight:bold;color:brown;width:26px;height:25px}#sq_blocksearch #sq_types #sq_type_img{background-position:0px 0px}#sq_blocksearch #sq_types #sq_type_twitter{background-position:-27px 0px}#sq_blocksearch #sq_types #sq_type_news{background-position:-137px 0px}#sq_blocksearch #sq_types #sq_type_blog{background-position:-54px 0px}#sq_blocksearch #sq_types #sq_type_wiki{background-position:-84px 0px}#sq_blocksearch #sq_types #sq_type_local{background-position:-164px 0px}#sq_blocksearch #sq_types #sq_type_img:hover{background-position:0px -25px}#sq_blocksearch #sq_types #sq_type_twitter:hover{background-position:-27px -25px}#sq_blocksearch #sq_types #sq_type_news:hover{background-position:-137px -24px}#sq_blocksearch #sq_types #sq_type_blog:hover{background-position:-54px -25px}#sq_blocksearch #sq_types #sq_type_wiki:hover{background-position:-84px -25px}#sq_blocksearch #sq_types #sq_type_local:hover{background-position:-164px -25px}#sq_blocksearch .sq_search{display:block;overflow-y:auto;max-height:310px;overflow-x:hidden;clear:both}#sq_blocksearch .sq_search ul{padding:0 0px 0 4px;margin:0;list-style:none;clear:both}#sq_blocksearch .sq_search ul li.sq_search_li{display:block;width:95%;font-size:12px;font-weight:normal;padding:5px 5px;margin:7px auto;background-color:#FFF;border:1px solid #DDD;border-radius:1px;-webkit-border-radius:1px;-moz-border-radius:1px;box-shadow:0 1px 0 #A8A8A8;-webkit-box-shadow:0 1px 0 #A8A8A8;-moz-box-shadow:0 1px 0 #A8A8A8}#sq_blocksearch .sq_search .sq_attribution{clear:both;margin:0;text-shadow:1px 1px white;height:25px}#sq_blocksearch .sq_search ul li.sq_search_li:hover .sq_attribution > ul{display:block}#sq_blocksearch .sq_search li.sq_search_li .sq_attribution > ul{display:none;background-color:#F1F1F1;height:17px;padding:2px 2px;margin:0;text-align:center;text-shadow:1px 1px white}#sq_blocksearch .sq_search li.sq_search_li .sq_attribution > ul > li{font-size:11px;font-family:"Lucida Grande",Arial, Helvetica, sans-serif;font-weight:normal;color:brown;float:left;width:66px;margin-right:5px;padding-right:5px;border-right:1px solid #CCC;cursor:pointer}#sq_blocksearch .sq_search li.sq_search_li .sq_attribution > ul > li:last-child{border-right:0px !important}#sq_blocksearch .sq_search ul .sq_info{clear:both;font-size:10px;font-family:"Lucida Grande",Arial, Helvetica, sans-serif;color:#AAA;padding:3px 0 0;float:right}#sq_blocksearch .sq_search .sq_info ul li{float:left;margin-right:5px;padding-right:5px;border-right:1px solid #CCC}#sq_blocksearch .sq_search .sq_info ul li:last-child{border-right-width:0px !important}#sq_blocksearch .sq_search ul li.sq_search_img_li{position:relative;float:left;background-color:white;width:54px;height:54px;padding:2px;margin:0 3px 6px 0;border:1px solid #BBB;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;box-shadow:0 0 4px #CCC;-moz-box-shadow:0 0 4px #CCC;-webkit-box-shadow:0 0 4px #CCC;transition-property:border-color;transition-duration:.33s;-moz-transition-property:border-color;-moz-transition-duration:.33s;-webkit-transition-property:border-color;-webkit-transition-duration:.33s;cursor:pointer}#sq_blocksearch .sq_search ul li.sq_search_img_li:hover{border-color:#333}#sq_blocksearch .sq_search ul li.sq_search_img_li > img{clip:rect(5px, 64px, 59px, 10px);position:absolute;margin-top:-5px;margin-left:-10px;max-height:75px}#sq_blocksearch #sq_search_img_filter{width:100%;background-color:#fcfcfc;height:22px;text-align:center;padding:4px 0px;border-top:1px solid #ccc}#sq_blocksearch #sq_search_img_filter label#sq_search_img_nolicence_label{position:relative;font-size:13px;color:#333;text-shadow:1px 1px white}#sq_blocksearch #sq_search_img_filter label span{position:absolute;display:block;width:28px;height:25px;left:-29px;top:-4px;background:transparent url('../img/sprite.png') no-repeat;background-position:-166px -47px}#sq_blocksearch #sq_search_img_filter label.checked span{background-position:-190px -47px}.sq_zoomImg_img{width:auto;height:54px}.sq_zoomImg{position:absolute;visibility:visible}.sq_zoomImg_Inner{background-color:#fff;border:1px solid #d9d9d9;-moz-box-shadow:0 4px 16px rgba(0,0,0,0.2);-webkit-box-shadow:0 4px 16px rgba(0,0,0,0.2);box-shadow:0 4px 16px rgba(0,0,0,0.2);color:#555;padding:5px;position:relative}.sq_zoomImg_frame img{border:1px solid #d9d9d9;display:block;margin:auto;max-width:115px;max-height:115px}#sq_blocksearch .sq_search li.sq_search_img_li .sq_attribute{position:absolute;font-family:Arial, sans-serif;font-size:8px;color:#999;bottom:-3px;right:-3px;background:white;border:grey;border-radius:10px;-moz-border-radius:10px;-webkit-border-radius:10px;z-index:1;padding:0 5px}#sq_blocksearch .sq_search ul li.search_category{clear:both;font-size:14px;color:#464646;width:100%;height:16px;border:none}#sq_blocksearch .sq_search ul li.sq_search_twitter_li .sq_author_avatar{float:left;width:36px;height:36px;margin:3px 10px 0 0px}#sq_blocksearch .sq_search ul li.sq_search_twitter_li .sq_quote_content{font-size:10px;margin-left:46px}#sq_blocksearch .sq_search ul li.sq_search_twitter_li .sq_quote_author{color:#555;font-size:12px;line-height:15px}#sq_blocksearch .sq_search ul li.sq_search_twitter_li .sq_author_name{line-height:17px;margin-right:5px;color:#555;font-size:12px;font-weight:normal;text-align:left}#sq_blocksearch .sq_search ul li.sq_search_twitter_li .sq_quote_text{margin-left:0}#sq_blocksearch .sq_search ul li.sq_search_blog_li .sq_news_title{font-size:12px;font-weight:700;color:#333;line-height:18px;margin:0 0 5px 0}#sq_blocksearch .sq_search ul li.sq_search_blog_li .sq_news_text{font-size:12px;color:#333;line-height:15px;text-align:left}#sq_blog_preview{position:relative;border:1px solid #e5e5e5;padding:0px;margin-bottom:15px;background-color:#fcfcfc}#sq_blog_preview:before{display:block;border:none;content:" ";background:transparent url('../img/sprite.png') repeat-x;background-position:0 -361px;width:100%;height:5px;border-radius:2px 2px 0 0;opacity:0.3}#sq_blog_preview #sq_blog_preview_partner{position:absolute;top:15px;right:20px}#sq_blog_preview #sq_blog_preview_partner a{background-color:#333;text-decoration:none;color:white;font-size:22px;font-weight:bold;margin-left:5px;padding:0 3px;border:1px solid #333}#sq_blog_preview #sq_blog_preview_title{display:block;font-size:18px;font-weight:normal;line-height:30px;color:#333;border-bottom:1px dashed #d1d1d1;margin:0 0 10px 0;padding:10px 0 20px 10px;height:16px}#sq_blog_preview #sq_blog_preview_body{display:block;font-size:12px;color:#333;line-height:16px;text-align:left;padding:0 0 0 10px;max-height:300px;overflow-y:auto;overflow-x:hidden}#sq_blog_preview #sq_blog_preview_body p{position:relative;background-color:transparent;font-family:'PT Serif', Arial, Helvetica, sans-serif;font-size:14px;color:#1F0909;font-weight:normal;line-height:24px;padding:0;margin:0;margin-bottom:16px;text-align:left;white-space:normal;color:#333333}#sq_blog_preview #sq_blog_preview_body .sq_mark{background-color:#FFED5F;color:black;padding:0 3px 0;font-size:14px;line-height:20px;box-shadow:0 0 5px #FFF6AC;-moz-box-shadow:0 0 5px #FFF6AC;-webkit-box-shadow:0 0 5px #FFF6AC}#sq_blog_preview #sq_blog_preview_body .sq_blog_option{position:absolute;display:none;background-color:#f5f5f5;font-size:11px;color:red;bottom:0px;right:5px;cursor:pointer;z-index:1}#sq_blog_preview #sq_blog_preview_body p:hover{background-color:#f5f5f5}#sq_blog_preview #sq_blog_preview_body p:hover .sq_blog_option{display:block;-webkit-animation:fadeIn 0.3s;-moz-animation:fadeIn 0.3s;-ms-animation:fadeIn 0.3s}#sq_blocksearch{position:relative}#sq_blocksearch .sq_search ul li.sq_search_wiki_li .sq_wiki_title{font-size:12px;font-weight:700;color:#333;line-height:18px;margin:0 0 5px 0}#sq_blocksearch .sq_search ul li.sq_search_local_li .sq_local_title{font-size:12px;font-weight:700;color:#333;line-height:18px;margin:0 0 5px 0}#sq_blocksearch #sq_suggestion,#sq_blocksearch #sq_suggestion_help{clear:both;display:table;position:relative;background-color:white;width:100% !important;height:75px;padding:10px 0 10px 0}#sq_blocksearch .sq_gsuggestion_height{height:175px !important}#sq_blocksearch #sq_suggestion .sq_gsuggestion{margin:0;padding:0}#sq_blocksearch #sq_suggestion .sq_gsuggestion .sq_item_gsuggestion{clear:both;float:none;height:auto;line-height:13px;font-size:12px;font-weight:bold;color:#2c6e2c;text-align:left;cursor:pointer;margin:0;padding:6px 12px}#sq_blocksearch #sq_suggestion .sq_gsuggestion .sq_item_active{background-color:#f1f1f1}#sq_blocksearch #sq_suggestion ul li{height:20px;font-size:13px;float:left;text-align:center}#sq_blocksearch #sq_suggestion input#sq_selectit{width:200px;background-color:#1cab09;font-size:12px;font-weight:bold;color:white;margin:10px auto 0 auto;padding:5px;position:relative;text-shadow:1px 1px #555;cursor:pointer}#sq_blocksearch #sq_suggestion ul li span{display:inline-block;height:20px;font-weight:bold;margin-left:5px}#sq_blocksearch #sq_suggestion_help{height:60px}#sq_blocksearch #sq_suggestion_help ul li{height:20px;text-align:center;color:darkGreen;font-size:14px;font-weight:bold}#sq_blocksearch #sq_suggestion_help ul li.sq_research_link,#sq_suggestion .sq_research_link{font-size:13px;font-weight:bold;color:#21759B;margin-top:5px;text-decoration:underline;text-align:center;cursor:pointer;text-decoration:none}#sq_blocksearch .sq_keyword #sq_suggestion_rank{margin-top:-5px}#sq_blocksearch #sq_suggestion ul.sq_progressbar{height:15px;line-height:18px;padding:0;margin:0 auto;width:250px}#sq_blocksearch #sq_suggestion ul.sq_progressbar li:nth-child(1n){width:50px;text-align:right;color:red}#sq_blocksearch #sq_suggestion ul.sq_progressbar li:nth-child(2n){width:132px}#sq_blocksearch #sq_suggestion ul.sq_progressbar li:nth-child(3n){width:50px;text-align:left;color:darkgreen}#sq_blocksearch #sq_suggestion ul.sq_smalldetails{clear:both;width:220px;margin:0 auto 10px auto}#sq_blocksearch #sq_suggestion ul.sq_smalldetails li{height:15px;font-size:10px;color:gray;margin:0 4px;padding:0;float:none}#sq_blocksearch #sq_suggestion div.sq_smalldetails{width:240px;margin:0 auto;font-size:11px;font-weight:bold;color:brown;text-align:center}#sq_blocksearch #sq_suggestion .sq_keywords_info{display:table;width:230px}#sq_blocksearch #sq_suggestion .sq_keywords_info{clear:both;width:190px;z-index:1;background-color:#F7F7F7;border:1px solid #CCC;padding:5px;margin:0 auto;text-align:center;border-radius:1px;-webkit-border-radius:1px;-moz-border-radius:1px}#sq_blocksearch #sq_suggestion .sq_keywords_info table{margin:0 auto}#sq_blocksearch #sq_suggestion .sq_keywords_info td{border-bottom:1px dashed #D8D8D8;padding:4px 10px;color:#414141;font-size:14px;text-align:left;font-family:Arial, Helvetica, sans-serif;font-size:12px;line-height:1.4em}#sq_blocksearch #sq_suggestion_close,#sq_blocksearch #sq_search_close,#sq_blog_preview #sq_blog_preview_close{position:absolute;background-color:#f1f1f1;right:-6px;top:-3px;font-size:13px;font-weight:bold;color:#333;width:8px;line-height:16px;padding:0px 5px 3px;border-radius:10px;-webkit-border-radius:10px;-moz-border-radius:10px;border:1px solid darkOliveGreen;cursor:pointer;z-index:2}#sq_blocksearch #sq_search_close{top:-13px}#sq_blocksearch .sq_show_mgs{clear:both;display:block;padding:7px;margin-top:10px;border-top:1px dashed #D1D1D1}#sq_suggestion .sq_show_mgs{max-width:200px;margin:20px auto 0 auto;border-top:none}#sq_suggestion .sq_searching{width:100% !important;margin-top:30px;background:transparent url('../img/sq_searching.gif') no-repeat center;background-size:180px auto}#sq_blocksearch .sq_more{clear:both;position:relative;width:100%;height:17px;text-align:center;padding:0;margin:0;margin-bottom:5px}#sq_blocksearch .sq_more span{display:block;width:0;height:0;border-left:20px solid transparent;border-right:20px solid transparent;border-top:12px solid green;padding:0;margin:0 auto;cursor:pointer}#publishing-action{float:left !important;width:100%}#sq_publish_alert{text-align:left;font-size:12px;font-weight:bold;color:red;text-shadow:1px 1px white;margin:0 0 5px 0;padding:0}#sq_publish_alert #sq_publish_alert_yes{display:block;float:left;clear:both;margin:7px 0px 0 8px;padding:6px 35px;font-size:12px;font-weight:bold;color:white;cursor:pointer;background-color:#1cab09;text-shadow:1px 1px #555;background:-moz-linear-gradient(top, #1cab09, darkgreen);background:-webkit-gradient(linear, left top, left bottom, from(#1cab09), to(darkgreen));border-radius:2px;-webkit-border-radius:2px;-moz-border-radius:2px}#sq_publish_alert #sq_publish_alert_yes:hover{border:1px solid #777;margin:6px -1px -1px 7px}#sq_subscription{font-size:13px;font-weight:bold;color:red;padding:0px !important;text-align:center;width:275px;margin:0 auto 15px auto;background-color:#fff;box-shadow:0px 0px 6px 0px #888;-moz-box-shadow:0px 0px 6px 0px #888;-webkit-box-shadow:0px 0px 6px 0px #888}#sq_subscription .sq_renew{padding:10px;line-height:20px}#sq_subscription .sq_renew a{display:block;font-size:16px;background-color:green;color:white;font-weight:bold;margin:10px;padding:6px;text-decoration:none;border-radius:7px}#sq_subscription > a{display:block;margin:0;padding:0;height:300px}#sq_options_feedback .sq_options_feedback_popup li{clear:both}#sq_facebook_b{padding:6px 0;clear:both}#sq_facebook_b > span{display:block;float:left;font-weight:bold;color:darkgreen}#sq_facebook_b .sq_facebook_title{width:100%;font-size:16px;text-align:center;margin:5px auto}#sq_facebook_b .sq_facebook_image{width:100px;margin:3px 7px 5px 24px}#sq_facebook_b .sq_facebook_image img{width:100px}#sq_facebook_b .sq_facebook_frame{margin-top:35px}#sq_coupon{position:relative;background-image:none;background-color:#ED6612;border:2px solid #F1F2F4;border-radius:5px;padding:0px;margin:0 0 10px 0;background-color:#F3F8FD;height:auto;width:100%}#sq_coupon #sq_coupon_close{position:absolute;background-color:#E5D8CD;right:-6px;top:-3px;font-size:13px;font-weight:bold;color:#333;line-height:16px;width:8px;height:12px;padding:0px 5px 6px;border-radius:10px;border:1px solid darkOliveGreen;cursor:pointer;z-index:2}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#sq_blocksearch input,
|
2 |
+
#sq_blocksearch textarea,
|
3 |
+
#sq_blocksearch{
|
4 |
+
font-family: Arial, Helvetica, sans-serif;
|
5 |
+
}
|
6 |
+
|
7 |
+
|
8 |
+
#sq_tinymce_inactive{
|
9 |
+
padding: 20px !important;
|
10 |
+
font-size: 16px;
|
11 |
+
}
|
12 |
+
|
13 |
+
#sq_blocksearch ::-webkit-scrollbar {
|
14 |
+
width: 18px;
|
15 |
+
height: 15px;
|
16 |
+
}
|
17 |
+
#sq_blocksearch ::-webkit-scrollbar-button:start:decrement,
|
18 |
+
#sq_blocksearch ::-webkit-scrollbar-button:end:increment {
|
19 |
+
height: 1px;
|
20 |
+
display: block;
|
21 |
+
background-color: #EFF7FF;
|
22 |
+
}
|
23 |
+
#sq_blocksearch ::-webkit-scrollbar-track {
|
24 |
+
border-left: 6px solid transparent;
|
25 |
+
border-right: 1px solid transparent;
|
26 |
+
background-clip: padding-box;
|
27 |
+
}
|
28 |
+
#sq_blocksearch ::-webkit-scrollbar-thumb:vertical {
|
29 |
+
min-height: 28px;
|
30 |
+
padding-top: 100px;
|
31 |
+
border-left: 6px solid transparent;
|
32 |
+
border-right: 1px solid transparent;
|
33 |
+
border-top: 0 solid transparent;
|
34 |
+
border-bottom: 0 solid transparent;
|
35 |
+
background-clip: padding-box;
|
36 |
+
background-color: rgba(0, 0, 0, 0.2);
|
37 |
+
-webkit-box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.07);
|
38 |
+
}
|
39 |
+
|
40 |
+
/***************** FOR KEYWORD ****************/
|
41 |
+
#sq_search_second{
|
42 |
+
text-align: center;
|
43 |
+
}
|
44 |
+
|
45 |
+
#sq_blocksearch .sq_keyword {
|
46 |
+
background-color: lightslategray;
|
47 |
+
position: relative;
|
48 |
+
text-align: center;
|
49 |
+
height: auto;
|
50 |
+
width: 100%;
|
51 |
+
z-index: 1001;
|
52 |
+
}
|
53 |
+
#sq_blocksearch .sq_keyword #sq_keyword_help{
|
54 |
+
position: absolute;
|
55 |
+
background-color: brown;
|
56 |
+
font-size: 24px;
|
57 |
+
font-weight: bold;
|
58 |
+
color: white;
|
59 |
+
top: -24px;
|
60 |
+
left: -238px;
|
61 |
+
width: 204px;
|
62 |
+
height: auto;
|
63 |
+
padding: 20px 10px;
|
64 |
+
line-height: 22px;
|
65 |
+
border-radius: 1px;
|
66 |
+
-webkit-border-radius: 1px;
|
67 |
+
-moz-border-radius: 1px;
|
68 |
+
box-shadow: 0px 0px 9px 0px #000;
|
69 |
+
-moz-box-shadow:0 0 9px 0px #000;
|
70 |
+
-webkit-box-shadow:0 0 9px 0px #000;
|
71 |
+
}
|
72 |
+
#sq_blocksearch .sq_keyword #sq_keyword_help span{
|
73 |
+
position: absolute;
|
74 |
+
right: -25px;
|
75 |
+
top: 34px;
|
76 |
+
width: 0;
|
77 |
+
height: 0;
|
78 |
+
border-top: 13px solid transparent;
|
79 |
+
border-bottom: 9px solid transparent;
|
80 |
+
border-left: 25px solid brown;
|
81 |
+
}
|
82 |
+
#sq_blocksearch .sq_keyword #sq_keyword_help p{
|
83 |
+
line-height: 13px;
|
84 |
+
margin-top: 5px;
|
85 |
+
font-size: 11px;
|
86 |
+
color: #d1d1d1;
|
87 |
+
}
|
88 |
+
|
89 |
+
#sq_blocksearch #sq_keyword,
|
90 |
+
#sq_blocksearch #sq_keyword_second{
|
91 |
+
display: inline-block;
|
92 |
+
margin: 16px 2px;
|
93 |
+
width: 85%;
|
94 |
+
line-height: 26px;
|
95 |
+
height: 30px;
|
96 |
+
padding: 0 5px;
|
97 |
+
font-size: 15px;
|
98 |
+
font-weight: bold;
|
99 |
+
background-color: #f9f9f9;
|
100 |
+
color: #15b14a;
|
101 |
+
}
|
102 |
+
#sq_blocksearch #sq_keyword_second{
|
103 |
+
}
|
104 |
+
#sq_blocksearch #sq_keyword_check,
|
105 |
+
#sq_blocksearch #sq_keyword_second_check{
|
106 |
+
display: inline-block;
|
107 |
+
line-height: 26px;
|
108 |
+
width: 26px;
|
109 |
+
height: 30px;
|
110 |
+
background-color: #51cb7b;
|
111 |
+
font-size: 15px;
|
112 |
+
font-weight: bold;
|
113 |
+
color: white;
|
114 |
+
margin: 0px;
|
115 |
+
padding: 0px;
|
116 |
+
border: none;
|
117 |
+
cursor: pointer;
|
118 |
+
}
|
119 |
+
|
120 |
+
#sq_blocksearch .sq_search_notrelevant{
|
121 |
+
line-height: 30px;
|
122 |
+
width: 125px;
|
123 |
+
}
|
124 |
+
|
125 |
+
.sq_search > a{
|
126 |
+
display: block;
|
127 |
+
width: 100%;
|
128 |
+
text-align: center;
|
129 |
+
margin: 4px auto 0 auto;
|
130 |
+
padding: 0;
|
131 |
+
text-decoration: underline;
|
132 |
+
font-size: 14px;
|
133 |
+
color: #21759B;
|
134 |
+
}
|
135 |
+
|
136 |
+
/***************** FOR SEARCH TYPES ****************/
|
137 |
+
#sq_blocksearch #sq_types{
|
138 |
+
height: 26px;
|
139 |
+
padding: 5px 0;
|
140 |
+
background-color: #fcfcfc;
|
141 |
+
box-shadow:0px 1px 3px -2px #888;
|
142 |
+
-moz-box-shadow:0px 1px 3px -2px #888;
|
143 |
+
-webkit-box-shadow:0px 1px 3px -2px #888;
|
144 |
+
}
|
145 |
+
#sq_blocksearch #sq_types ul{
|
146 |
+
margin: 0;
|
147 |
+
}
|
148 |
+
#sq_blocksearch #sq_types ul li{
|
149 |
+
float: left;
|
150 |
+
background: transparent url('../img/sprite.png') no-repeat;
|
151 |
+
margin: 0 0 0 17px;
|
152 |
+
cursor: pointer;
|
153 |
+
font-weight: bold;
|
154 |
+
color: brown;
|
155 |
+
width: 26px;
|
156 |
+
height: 25px;
|
157 |
+
}
|
158 |
+
#sq_blocksearch #sq_types #sq_type_img{
|
159 |
+
background-position: 0px 0px;
|
160 |
+
}
|
161 |
+
#sq_blocksearch #sq_types #sq_type_twitter{
|
162 |
+
background-position: -27px 0px;
|
163 |
+
}
|
164 |
+
#sq_blocksearch #sq_types #sq_type_news{
|
165 |
+
background-position: -137px 0px;
|
166 |
+
}
|
167 |
+
|
168 |
+
#sq_blocksearch #sq_types #sq_type_blog{
|
169 |
+
background-position: -54px 0px;
|
170 |
+
}
|
171 |
+
#sq_blocksearch #sq_types #sq_type_wiki{
|
172 |
+
background-position: -84px 0px;
|
173 |
+
}
|
174 |
+
#sq_blocksearch #sq_types #sq_type_local{
|
175 |
+
background-position: -164px 0px;
|
176 |
+
}
|
177 |
+
#sq_blocksearch #sq_types #sq_type_img:hover{
|
178 |
+
background-position: 0px -25px;
|
179 |
+
}
|
180 |
+
#sq_blocksearch #sq_types #sq_type_twitter:hover{
|
181 |
+
background-position: -27px -25px;
|
182 |
+
}
|
183 |
+
#sq_blocksearch #sq_types #sq_type_news:hover{
|
184 |
+
background-position: -137px -24px;
|
185 |
+
}
|
186 |
+
#sq_blocksearch #sq_types #sq_type_blog:hover{
|
187 |
+
background-position: -54px -25px;
|
188 |
+
}
|
189 |
+
#sq_blocksearch #sq_types #sq_type_wiki:hover{
|
190 |
+
background-position: -84px -25px;
|
191 |
+
}
|
192 |
+
#sq_blocksearch #sq_types #sq_type_local:hover{
|
193 |
+
background-position: -164px -25px;
|
194 |
+
}
|
195 |
+
|
196 |
+
/* The search resul box */
|
197 |
+
#sq_blocksearch .sq_search {
|
198 |
+
display: block;
|
199 |
+
overflow-y: auto;
|
200 |
+
max-height: 310px;
|
201 |
+
overflow-x: hidden;
|
202 |
+
clear: both;
|
203 |
+
}
|
204 |
+
#sq_blocksearch .sq_search ul{
|
205 |
+
padding: 0 0px 0 4px;
|
206 |
+
margin: 0;
|
207 |
+
list-style: none;
|
208 |
+
clear: both;
|
209 |
+
}
|
210 |
+
|
211 |
+
|
212 |
+
#sq_blocksearch #sq_types #sq_type_twitter{
|
213 |
+
/*display: none; Upgrade request to 1.1*/
|
214 |
+
}
|
215 |
+
/*************** FOR ALL TYPES *****************/
|
216 |
+
#sq_blocksearch .sq_search ul li.sq_search_li{
|
217 |
+
display: block;
|
218 |
+
width: 95%;
|
219 |
+
|
220 |
+
font-size: 12px;
|
221 |
+
font-weight: normal;
|
222 |
+
|
223 |
+
padding: 5px 5px;
|
224 |
+
margin: 7px auto;
|
225 |
+
|
226 |
+
background-color: #FFF;
|
227 |
+
border: 1px solid #DDD;
|
228 |
+
border-radius: 1px;
|
229 |
+
-webkit-border-radius: 1px;
|
230 |
+
-moz-border-radius: 1px;
|
231 |
+
|
232 |
+
box-shadow: 0 1px 0 #A8A8A8;
|
233 |
+
-webkit-box-shadow: 0 1px 0 #A8A8A8;
|
234 |
+
-moz-box-shadow: 0 1px 0 #A8A8A8;
|
235 |
+
}
|
236 |
+
#sq_blocksearch .sq_search .sq_attribution{
|
237 |
+
|
238 |
+
clear: both;
|
239 |
+
margin: 0;
|
240 |
+
text-shadow: 1px 1px white;
|
241 |
+
height: 25px;
|
242 |
+
|
243 |
+
}
|
244 |
+
#sq_blocksearch .sq_search ul li.sq_search_li:hover .sq_attribution > ul{
|
245 |
+
display: block;
|
246 |
+
}
|
247 |
+
#sq_blocksearch .sq_search li.sq_search_li .sq_attribution > ul{
|
248 |
+
display: none;
|
249 |
+
background-color: #F1F1F1;
|
250 |
+
height: 17px;
|
251 |
+
|
252 |
+
padding: 2px 2px;
|
253 |
+
margin: 0;
|
254 |
+
|
255 |
+
text-align: center;
|
256 |
+
text-shadow: 1px 1px white;
|
257 |
+
}
|
258 |
+
#sq_blocksearch .sq_search li.sq_search_li .sq_attribution > ul > li{
|
259 |
+
font-size: 11px;
|
260 |
+
font-family: "Lucida Grande",Arial, Helvetica, sans-serif;
|
261 |
+
font-weight: normal;
|
262 |
+
color: brown;
|
263 |
+
|
264 |
+
float: left;
|
265 |
+
width: 66px;
|
266 |
+
|
267 |
+
margin-right: 5px;
|
268 |
+
padding-right: 5px;
|
269 |
+
border-right: 1px solid #CCC;
|
270 |
+
cursor: pointer;
|
271 |
+
}
|
272 |
+
#sq_blocksearch .sq_search li.sq_search_li .sq_attribution > ul > li:last-child{
|
273 |
+
border-right: 0px !important;
|
274 |
+
}
|
275 |
+
|
276 |
+
|
277 |
+
|
278 |
+
#sq_blocksearch .sq_search ul .sq_info{
|
279 |
+
clear: both;
|
280 |
+
|
281 |
+
font-size: 10px;
|
282 |
+
font-family: "Lucida Grande",Arial, Helvetica, sans-serif;
|
283 |
+
color: #AAA;
|
284 |
+
|
285 |
+
padding: 3px 0 0;
|
286 |
+
float: right;
|
287 |
+
}
|
288 |
+
#sq_blocksearch .sq_search .sq_info ul li{
|
289 |
+
float: left;
|
290 |
+
|
291 |
+
margin-right: 5px;
|
292 |
+
padding-right: 5px;
|
293 |
+
border-right: 1px solid #CCC;
|
294 |
+
|
295 |
+
}
|
296 |
+
#sq_blocksearch .sq_search .sq_info ul li:last-child{
|
297 |
+
border-right-width: 0px !important;
|
298 |
+
}
|
299 |
+
|
300 |
+
|
301 |
+
|
302 |
+
/***************** FOR IMAGES ****************/
|
303 |
+
#sq_blocksearch .sq_search ul li.sq_search_img_li{
|
304 |
+
position: relative;
|
305 |
+
float: left;
|
306 |
+
|
307 |
+
background-color: white;
|
308 |
+
width: 54px;
|
309 |
+
height: 54px;
|
310 |
+
|
311 |
+
padding: 2px;
|
312 |
+
margin: 0 3px 6px 0;
|
313 |
+
|
314 |
+
border: 1px solid #BBB;
|
315 |
+
border-radius: 3px;
|
316 |
+
-moz-border-radius: 3px;
|
317 |
+
-webkit-border-radius: 3px;
|
318 |
+
|
319 |
+
box-shadow: 0 0 4px #CCC;
|
320 |
+
-moz-box-shadow:0 0 4px #CCC;
|
321 |
+
-webkit-box-shadow:0 0 4px #CCC;
|
322 |
+
|
323 |
+
transition-property: border-color;
|
324 |
+
transition-duration: .33s;
|
325 |
+
-moz-transition-property: border-color;
|
326 |
+
-moz-transition-duration: .33s;
|
327 |
+
-webkit-transition-property: border-color;
|
328 |
+
-webkit-transition-duration: .33s;
|
329 |
+
|
330 |
+
cursor: pointer;
|
331 |
+
|
332 |
+
}
|
333 |
+
#sq_blocksearch .sq_search ul li.sq_search_img_li:hover{
|
334 |
+
border-color: #333;
|
335 |
+
}
|
336 |
+
#sq_blocksearch .sq_search ul li.sq_search_img_li > img{
|
337 |
+
clip: rect(5px, 64px, 59px, 10px);
|
338 |
+
position: absolute;
|
339 |
+
|
340 |
+
margin-top: -5px;
|
341 |
+
margin-left: -10px;
|
342 |
+
max-height: 75px;
|
343 |
+
}
|
344 |
+
|
345 |
+
#sq_blocksearch #sq_search_img_filter{
|
346 |
+
width: 100%;
|
347 |
+
background-color: #fcfcfc;
|
348 |
+
height: 22px;
|
349 |
+
text-align: center;
|
350 |
+
padding: 4px 0px;
|
351 |
+
border-top: 1px solid #ccc;
|
352 |
+
}
|
353 |
+
|
354 |
+
#sq_blocksearch #sq_search_img_filter label#sq_search_img_nolicence_label{
|
355 |
+
position: relative;
|
356 |
+
font-size: 13px;
|
357 |
+
color: #333;
|
358 |
+
text-shadow: 1px 1px white;
|
359 |
+
}
|
360 |
+
|
361 |
+
#sq_blocksearch #sq_search_img_filter label span{
|
362 |
+
position: absolute;
|
363 |
+
display: block;
|
364 |
+
width: 28px;
|
365 |
+
height: 25px;
|
366 |
+
left: -29px;
|
367 |
+
top: -4px;
|
368 |
+
background: transparent url('../img/sprite.png') no-repeat;
|
369 |
+
background-position: -166px -47px;
|
370 |
+
}
|
371 |
+
|
372 |
+
#sq_blocksearch #sq_search_img_filter label.checked span{
|
373 |
+
background-position: -190px -47px;
|
374 |
+
}
|
375 |
+
.sq_zoomImg_img{
|
376 |
+
width: auto;
|
377 |
+
height: 54px;
|
378 |
+
}
|
379 |
+
|
380 |
+
.sq_zoomImg{
|
381 |
+
position: absolute;
|
382 |
+
visibility: visible;
|
383 |
+
}
|
384 |
+
|
385 |
+
.sq_zoomImg_Inner{
|
386 |
+
background-color: #fff;
|
387 |
+
border: 1px solid #d9d9d9;
|
388 |
+
-moz-box-shadow: 0 4px 16px rgba(0,0,0,0.2);
|
389 |
+
-webkit-box-shadow: 0 4px 16px rgba(0,0,0,0.2);
|
390 |
+
box-shadow: 0 4px 16px rgba(0,0,0,0.2);
|
391 |
+
color: #555;
|
392 |
+
padding: 5px;
|
393 |
+
position: relative;
|
394 |
+
}
|
395 |
+
.sq_zoomImg_frame{
|
396 |
+
|
397 |
+
}
|
398 |
+
|
399 |
+
.sq_zoomImg_frame img{
|
400 |
+
border: 1px solid #d9d9d9;
|
401 |
+
display: block;
|
402 |
+
margin: auto;
|
403 |
+
max-width: 115px;
|
404 |
+
max-height: 115px;
|
405 |
+
}
|
406 |
+
|
407 |
+
#sq_blocksearch .sq_search li.sq_search_img_li .sq_attribute{
|
408 |
+
position: absolute;
|
409 |
+
font-family: Arial, sans-serif;
|
410 |
+
font-size: 8px;
|
411 |
+
color: #999;
|
412 |
+
bottom: -3px;
|
413 |
+
right: -3px;
|
414 |
+
background: white;
|
415 |
+
border: grey;
|
416 |
+
border-radius: 10px;
|
417 |
+
-moz-border-radius: 10px;
|
418 |
+
-webkit-border-radius: 10px;
|
419 |
+
z-index: 1;
|
420 |
+
padding: 0 5px;
|
421 |
+
}
|
422 |
+
|
423 |
+
/***************** FOR IMAGES CATEGORIES ****************/
|
424 |
+
#sq_blocksearch .sq_search ul li.search_category{
|
425 |
+
clear: both;
|
426 |
+
font-size: 14px;
|
427 |
+
color: #464646;
|
428 |
+
|
429 |
+
width: 100%;
|
430 |
+
height: 16px;
|
431 |
+
|
432 |
+
border: none;
|
433 |
+
}
|
434 |
+
|
435 |
+
|
436 |
+
/***************** FOR TWITTER ****************/
|
437 |
+
#sq_blocksearch .sq_search ul li.sq_search_twitter_li .sq_author_avatar{
|
438 |
+
float: left;
|
439 |
+
width: 36px;
|
440 |
+
height: 36px;
|
441 |
+
margin: 3px 10px 0 0px;
|
442 |
+
}
|
443 |
+
#sq_blocksearch .sq_search ul li.sq_search_twitter_li .sq_quote_content{
|
444 |
+
font-size: 10px;
|
445 |
+
margin-left: 46px;
|
446 |
+
}
|
447 |
+
#sq_blocksearch .sq_search ul li.sq_search_twitter_li .sq_quote_author{
|
448 |
+
color: #555;
|
449 |
+
font-size: 12px;
|
450 |
+
line-height: 15px;
|
451 |
+
}
|
452 |
+
#sq_blocksearch .sq_search ul li.sq_search_twitter_li .sq_author_name{
|
453 |
+
line-height: 17px;
|
454 |
+
margin-right: 5px;
|
455 |
+
color: #555;
|
456 |
+
font-size: 12px;
|
457 |
+
font-weight: normal;
|
458 |
+
text-align: left;
|
459 |
+
}
|
460 |
+
#sq_blocksearch .sq_search ul li.sq_search_twitter_li .sq_quote_text{
|
461 |
+
margin-left: 0;
|
462 |
+
}
|
463 |
+
|
464 |
+
|
465 |
+
|
466 |
+
|
467 |
+
/***************** FOR BLOG ****************/
|
468 |
+
#sq_blocksearch .sq_search ul li.sq_search_blog_li .sq_news_content{}
|
469 |
+
#sq_blocksearch .sq_search ul li.sq_search_blog_li .sq_news_title{
|
470 |
+
font-size: 12px;
|
471 |
+
font-weight: 700;
|
472 |
+
color: #333;
|
473 |
+
|
474 |
+
line-height: 18px;
|
475 |
+
margin: 0 0 5px 0;
|
476 |
+
}
|
477 |
+
|
478 |
+
#sq_blocksearch .sq_search ul li.sq_search_blog_li .sq_news_text{
|
479 |
+
font-size: 12px;
|
480 |
+
color: #333;
|
481 |
+
|
482 |
+
line-height: 15px;
|
483 |
+
text-align: left;
|
484 |
+
}
|
485 |
+
#sq_blog_preview{
|
486 |
+
position: relative;
|
487 |
+
border: 1px solid #e5e5e5;
|
488 |
+
|
489 |
+
padding: 0px;
|
490 |
+
margin-bottom: 15px;
|
491 |
+
background-color: #fcfcfc;
|
492 |
+
|
493 |
+
}
|
494 |
+
|
495 |
+
#sq_blog_preview:before{
|
496 |
+
display: block;
|
497 |
+
border: none;
|
498 |
+
content: " ";
|
499 |
+
background: transparent url('../img/sprite.png') repeat-x;
|
500 |
+
background-position: 0 -361px;
|
501 |
+
width: 100%;
|
502 |
+
height: 5px;
|
503 |
+
border-radius: 2px 2px 0 0;
|
504 |
+
opacity: 0.3;
|
505 |
+
}
|
506 |
+
|
507 |
+
#sq_blog_preview #sq_blog_preview_partner{
|
508 |
+
position: absolute;
|
509 |
+
top: 15px;
|
510 |
+
right: 20px;
|
511 |
+
}
|
512 |
+
#sq_blog_preview #sq_blog_preview_partner a{
|
513 |
+
background-color: #333;
|
514 |
+
text-decoration: none;
|
515 |
+
|
516 |
+
color: white;
|
517 |
+
font-size: 22px;
|
518 |
+
font-weight: bold;
|
519 |
+
|
520 |
+
margin-left: 5px;
|
521 |
+
padding: 0 3px;
|
522 |
+
border: 1px solid #333;
|
523 |
+
}
|
524 |
+
#sq_blog_preview #sq_blog_preview_title{
|
525 |
+
display: block;
|
526 |
+
font-size: 18px;
|
527 |
+
font-weight: normal;
|
528 |
+
line-height: 30px;
|
529 |
+
color: #333;
|
530 |
+
border-bottom: 1px dashed #d1d1d1;
|
531 |
+
margin: 0 0 10px 0;
|
532 |
+
padding: 10px 0 20px 10px;
|
533 |
+
}
|
534 |
+
#sq_blog_preview #sq_blog_preview_body{
|
535 |
+
display: block;
|
536 |
+
font-size: 12px;
|
537 |
+
color: #333;
|
538 |
+
line-height: 16px;
|
539 |
+
text-align: left;
|
540 |
+
|
541 |
+
padding: 0 0 0 10px;
|
542 |
+
max-height: 300px;
|
543 |
+
overflow-y: auto;
|
544 |
+
overflow-x: hidden;
|
545 |
+
}
|
546 |
+
#sq_blog_preview #sq_blog_preview_body p{
|
547 |
+
position: relative;
|
548 |
+
background-color: transparent;
|
549 |
+
font-family: 'PT Serif', Arial, Helvetica, sans-serif;
|
550 |
+
font-size: 14px;
|
551 |
+
color: #1F0909;
|
552 |
+
font-weight: normal;
|
553 |
+
|
554 |
+
line-height: 24px;
|
555 |
+
|
556 |
+
padding: 0;
|
557 |
+
margin: 0;
|
558 |
+
margin-bottom: 16px;
|
559 |
+
|
560 |
+
text-align: left;
|
561 |
+
white-space: normal;
|
562 |
+
color: #333333;
|
563 |
+
}
|
564 |
+
#sq_blog_preview #sq_blog_preview_body .sq_mark{
|
565 |
+
background-color: #FFED5F;
|
566 |
+
|
567 |
+
color: black;
|
568 |
+
padding: 0 3px 0;
|
569 |
+
font-size: 14px;
|
570 |
+
line-height: 20px;
|
571 |
+
|
572 |
+
box-shadow: 0 0 5px #FFF6AC;
|
573 |
+
-moz-box-shadow:0 0 5px #FFF6AC;
|
574 |
+
-webkit-box-shadow:0 0 5px #FFF6AC;
|
575 |
+
}
|
576 |
+
#sq_blog_preview #sq_blog_preview_body .sq_blog_option{
|
577 |
+
position: absolute;
|
578 |
+
display: none;
|
579 |
+
background-color: #f5f5f5;
|
580 |
+
|
581 |
+
font-size: 11px;
|
582 |
+
color: red;
|
583 |
+
|
584 |
+
bottom: 0px;
|
585 |
+
right: 5px;
|
586 |
+
|
587 |
+
cursor: pointer;
|
588 |
+
z-index: 1;
|
589 |
+
}
|
590 |
+
#sq_blog_preview #sq_blog_preview_body p:hover{
|
591 |
+
background-color: #f5f5f5;
|
592 |
+
}
|
593 |
+
#sq_blog_preview #sq_blog_preview_body p:hover .sq_blog_option{
|
594 |
+
display: block;
|
595 |
+
-webkit-animation: fadeIn 0.3s;
|
596 |
+
-moz-animation: fadeIn 0.3s;
|
597 |
+
-ms-animation: fadeIn 0.3s;
|
598 |
+
}
|
599 |
+
|
600 |
+
|
601 |
+
#sq_blocksearch{
|
602 |
+
position: relative;
|
603 |
+
}
|
604 |
+
|
605 |
+
/***************** FOR WIKI ****************/
|
606 |
+
|
607 |
+
#sq_blocksearch .sq_search ul li.sq_search_wiki_li .sq_wiki_content{}
|
608 |
+
#sq_blocksearch .sq_search ul li.sq_search_wiki_li .sq_wiki_title{
|
609 |
+
font-size: 12px;
|
610 |
+
font-weight: 700;
|
611 |
+
color: #333;
|
612 |
+
|
613 |
+
line-height: 18px;
|
614 |
+
margin: 0 0 5px 0;
|
615 |
+
}
|
616 |
+
|
617 |
+
/***************** FOR LOCAL ****************/
|
618 |
+
#sq_blocksearch .sq_search ul li.sq_search_local_li .sq_local_title{
|
619 |
+
font-size: 12px;
|
620 |
+
font-weight: 700;
|
621 |
+
color: #333;
|
622 |
+
|
623 |
+
line-height: 18px;
|
624 |
+
margin: 0 0 5px 0;
|
625 |
+
}
|
626 |
+
|
627 |
+
/***************** FOR SUGGESTION ****************/
|
628 |
+
#sq_blocksearch #sq_suggestion,
|
629 |
+
#sq_blocksearch #sq_suggestion_help{
|
630 |
+
clear: both;
|
631 |
+
display: table;
|
632 |
+
position: relative;
|
633 |
+
background-color: white;
|
634 |
+
width: 100% !important;
|
635 |
+
height: 75px;
|
636 |
+
padding: 10px 0 10px 0;
|
637 |
+
}
|
638 |
+
|
639 |
+
#sq_blocksearch .sq_gsuggestion_height{
|
640 |
+
height: 175px !important;
|
641 |
+
}
|
642 |
+
|
643 |
+
#sq_blocksearch #sq_suggestion .sq_gsuggestion{
|
644 |
+
margin: 0;
|
645 |
+
padding: 0;
|
646 |
+
}
|
647 |
+
|
648 |
+
#sq_blocksearch #sq_suggestion .sq_gsuggestion .sq_item_gsuggestion{
|
649 |
+
clear: both;
|
650 |
+
float: none;
|
651 |
+
height: auto;
|
652 |
+
line-height: 13px;
|
653 |
+
font-size: 12px;
|
654 |
+
font-weight: bold;
|
655 |
+
color: #2c6e2c;
|
656 |
+
text-align: left;
|
657 |
+
cursor: pointer;
|
658 |
+
margin: 0;
|
659 |
+
padding: 6px 12px;
|
660 |
+
}
|
661 |
+
|
662 |
+
#sq_blocksearch #sq_suggestion .sq_gsuggestion .sq_item_active{
|
663 |
+
background-color: #f1f1f1;
|
664 |
+
}
|
665 |
+
|
666 |
+
|
667 |
+
#sq_blocksearch #sq_suggestion ul li{
|
668 |
+
height: 20px;
|
669 |
+
font-size: 13px;
|
670 |
+
float: left;
|
671 |
+
text-align: center;
|
672 |
+
}
|
673 |
+
#sq_blocksearch #sq_suggestion input#sq_selectit{
|
674 |
+
width: 200px;
|
675 |
+
background-color: #1cab09;
|
676 |
+
font-size: 12px;
|
677 |
+
font-weight: bold;
|
678 |
+
color: white;
|
679 |
+
|
680 |
+
margin: 10px auto 0 auto;
|
681 |
+
padding: 5px;
|
682 |
+
|
683 |
+
position: relative;
|
684 |
+
text-shadow: 1px 1px #555;
|
685 |
+
cursor: pointer;
|
686 |
+
}
|
687 |
+
|
688 |
+
#sq_blocksearch #sq_suggestion ul li span{
|
689 |
+
display: inline-block;
|
690 |
+
height: 20px;
|
691 |
+
font-weight: bold;
|
692 |
+
margin-left: 5px;
|
693 |
+
}
|
694 |
+
#sq_blocksearch #sq_suggestion_help{
|
695 |
+
|
696 |
+
height: 60px;
|
697 |
+
}
|
698 |
+
|
699 |
+
#sq_blocksearch #sq_suggestion_help ul li{
|
700 |
+
height: 20px;
|
701 |
+
text-align: center;
|
702 |
+
color: darkGreen;
|
703 |
+
font-size: 14px;
|
704 |
+
font-weight: bold;
|
705 |
+
}
|
706 |
+
#sq_blocksearch #sq_suggestion_help ul li.sq_research_link,
|
707 |
+
#sq_suggestion .sq_research_link{
|
708 |
+
font-size: 13px;
|
709 |
+
font-weight: bold;
|
710 |
+
color: #21759B;
|
711 |
+
margin-top: 5px;
|
712 |
+
text-decoration: underline;
|
713 |
+
text-align: center;
|
714 |
+
cursor: pointer;
|
715 |
+
text-decoration: none;
|
716 |
+
}
|
717 |
+
#sq_blocksearch .sq_keyword #sq_suggestion_rank{
|
718 |
+
margin-top: -5px;
|
719 |
+
}
|
720 |
+
#sq_blocksearch #sq_suggestion ul.sq_progressbar{
|
721 |
+
height: 15px;
|
722 |
+
line-height: 18px;
|
723 |
+
padding: 0;
|
724 |
+
margin: 0 auto;
|
725 |
+
width: 250px;
|
726 |
+
}
|
727 |
+
#sq_blocksearch #sq_suggestion ul.sq_progressbar li:nth-child(1n){
|
728 |
+
width: 50px;
|
729 |
+
text-align: right;
|
730 |
+
color: red;
|
731 |
+
}
|
732 |
+
#sq_blocksearch #sq_suggestion ul.sq_progressbar li:nth-child(2n){
|
733 |
+
width: 132px;
|
734 |
+
}
|
735 |
+
#sq_blocksearch #sq_suggestion ul.sq_progressbar li:nth-child(3n){
|
736 |
+
width: 50px;
|
737 |
+
text-align: left;
|
738 |
+
color: darkgreen;
|
739 |
+
}
|
740 |
+
#sq_blocksearch #sq_suggestion ul.sq_smalldetails{
|
741 |
+
clear: both;
|
742 |
+
width: 220px;
|
743 |
+
margin: 0 auto 10px auto;
|
744 |
+
}
|
745 |
+
#sq_blocksearch #sq_suggestion ul.sq_smalldetails li{
|
746 |
+
height: 15px;
|
747 |
+
font-size: 10px;
|
748 |
+
color: gray;
|
749 |
+
margin: 0 4px;
|
750 |
+
padding: 0;
|
751 |
+
float: none;
|
752 |
+
}
|
753 |
+
#sq_blocksearch #sq_suggestion div.sq_smalldetails{
|
754 |
+
width: 240px;
|
755 |
+
margin: 0 auto;
|
756 |
+
font-size: 11px;
|
757 |
+
font-weight: bold;
|
758 |
+
color: brown;
|
759 |
+
text-align: center;
|
760 |
+
}
|
761 |
+
|
762 |
+
#sq_blocksearch #sq_suggestion .sq_keywords_info{
|
763 |
+
display: table;
|
764 |
+
width: 230px;
|
765 |
+
}
|
766 |
+
|
767 |
+
#sq_blocksearch #sq_suggestion .sq_keywords_info{
|
768 |
+
clear: both;
|
769 |
+
width: 190px;
|
770 |
+
z-index: 1;
|
771 |
+
background-color: #F7F7F7;
|
772 |
+
|
773 |
+
border: 1px solid #CCC;
|
774 |
+
padding: 5px;
|
775 |
+
margin: 0 auto;
|
776 |
+
|
777 |
+
text-align: center;
|
778 |
+
|
779 |
+
border-radius: 1px;
|
780 |
+
-webkit-border-radius: 1px;
|
781 |
+
-moz-border-radius: 1px;
|
782 |
+
}
|
783 |
+
#sq_blocksearch #sq_suggestion .sq_keywords_info table{
|
784 |
+
margin: 0 auto;
|
785 |
+
}
|
786 |
+
#sq_blocksearch #sq_suggestion .sq_keywords_info td{
|
787 |
+
border-bottom: 1px dashed #D8D8D8;
|
788 |
+
padding: 4px 10px;
|
789 |
+
color: #414141;
|
790 |
+
font-size: 14px;
|
791 |
+
text-align: left;
|
792 |
+
font-family: Arial, Helvetica, sans-serif;
|
793 |
+
font-size: 12px;
|
794 |
+
line-height: 1.4em;
|
795 |
+
|
796 |
+
}
|
797 |
+
|
798 |
+
/**** CLOSE BUTTONS ****/
|
799 |
+
#sq_blocksearch #sq_suggestion_close,
|
800 |
+
#sq_blocksearch #sq_search_close,
|
801 |
+
#sq_blog_preview #sq_blog_preview_close{
|
802 |
+
position: absolute;
|
803 |
+
background-color: #f1f1f1;
|
804 |
+
right: -6px;
|
805 |
+
top: -3px;
|
806 |
+
font-size: 13px;
|
807 |
+
font-weight: bold;
|
808 |
+
color: #333;
|
809 |
+
width: 8px;
|
810 |
+
line-height: 16px;
|
811 |
+
padding: 0px 5px 3px;
|
812 |
+
border-radius: 10px;
|
813 |
+
-webkit-border-radius: 10px;
|
814 |
+
-moz-border-radius: 10px;
|
815 |
+
border: 1px solid darkOliveGreen;
|
816 |
+
cursor: pointer;
|
817 |
+
z-index: 2;
|
818 |
+
}
|
819 |
+
#sq_blocksearch #sq_search_close{
|
820 |
+
top: -13px;
|
821 |
+
}
|
822 |
+
|
823 |
+
#sq_blocksearch .sq_show_mgs{
|
824 |
+
clear: both;
|
825 |
+
display: block;
|
826 |
+
padding: 7px;
|
827 |
+
margin-top: 10px;
|
828 |
+
border-top: 1px dashed #D1D1D1;
|
829 |
+
}
|
830 |
+
|
831 |
+
#sq_suggestion .sq_show_mgs{
|
832 |
+
max-width: 200px;
|
833 |
+
margin: 20px auto 0 auto;
|
834 |
+
border-top: none;
|
835 |
+
}
|
836 |
+
|
837 |
+
#sq_suggestion .sq_searching{
|
838 |
+
width: 100% !important;
|
839 |
+
margin-top: 30px;
|
840 |
+
background: transparent url('../img/editor/sq_searching.gif') no-repeat center;
|
841 |
+
background-size: 180px auto;
|
842 |
+
}
|
843 |
+
|
844 |
+
#sq_blocksearch .sq_more{
|
845 |
+
clear: both;
|
846 |
+
position: relative;
|
847 |
+
width: 100%;
|
848 |
+
height: 17px;
|
849 |
+
text-align: center;
|
850 |
+
padding: 0;
|
851 |
+
margin: 0;
|
852 |
+
margin-bottom: 5px;
|
853 |
+
}
|
854 |
+
|
855 |
+
#sq_blocksearch .sq_more span{
|
856 |
+
display: block;
|
857 |
+
width: 0;
|
858 |
+
height: 0;
|
859 |
+
border-left: 20px solid transparent;
|
860 |
+
border-right: 20px solid transparent;
|
861 |
+
border-top: 12px solid #20bc49;
|
862 |
+
padding: 0;
|
863 |
+
margin: 0 auto;
|
864 |
+
cursor: pointer;
|
865 |
+
}
|
866 |
+
#publishing-action{
|
867 |
+
float:left !important;
|
868 |
+
width: 100%;
|
869 |
+
}
|
870 |
+
#sq_publish_alert{
|
871 |
+
text-align: left;
|
872 |
+
font-size: 12px;
|
873 |
+
font-weight: bold;
|
874 |
+
color: red;
|
875 |
+
text-shadow: 1px 1px white;
|
876 |
+
margin: 0 0 5px 0;
|
877 |
+
padding: 0;
|
878 |
+
}
|
879 |
+
|
880 |
+
#sq_publish_alert #sq_publish_alert_yes{
|
881 |
+
display: block;
|
882 |
+
float: left;
|
883 |
+
clear: both;
|
884 |
+
margin: 7px 0px 0 8px;
|
885 |
+
padding: 6px 35px;
|
886 |
+
font-size: 12px;
|
887 |
+
font-weight: bold;
|
888 |
+
color: white;
|
889 |
+
cursor: pointer;
|
890 |
+
background-color: #1cab09;
|
891 |
+
text-shadow: 1px 1px #555;
|
892 |
+
background: -moz-linear-gradient(top, #1cab09, darkgreen);
|
893 |
+
background: -webkit-gradient(linear, left top, left bottom, from(#1cab09), to(darkgreen));
|
894 |
+
border-radius: 2px;
|
895 |
+
-webkit-border-radius: 2px;
|
896 |
+
-moz-border-radius: 2px;
|
897 |
+
}
|
898 |
+
|
899 |
+
#sq_publish_alert #sq_publish_alert_yes:hover{
|
900 |
+
border: 1px solid #777;
|
901 |
+
margin: 6px -1px -1px 7px;
|
902 |
+
}
|
903 |
+
|
904 |
+
/****************************FOR EXPIRED SUBSCRIPTIONS ***************/
|
905 |
+
#sq_subscription{
|
906 |
+
font-size: 13px;
|
907 |
+
font-weight: bold;
|
908 |
+
color: red;
|
909 |
+
padding: 0px !important;
|
910 |
+
text-align: center;
|
911 |
+
width: 275px;
|
912 |
+
margin: 0 auto 15px auto;
|
913 |
+
background-color: #fff;
|
914 |
+
box-shadow: 0px 0px 6px 0px #888;
|
915 |
+
-moz-box-shadow: 0px 0px 6px 0px #888;
|
916 |
+
-webkit-box-shadow: 0px 0px 6px 0px #888;
|
917 |
+
}
|
918 |
+
#sq_subscription .sq_renew{
|
919 |
+
padding: 10px;
|
920 |
+
line-height: 20px;
|
921 |
+
}
|
922 |
+
#sq_subscription .sq_renew a{
|
923 |
+
display: block;
|
924 |
+
font-size: 16px;
|
925 |
+
background-color: #20bc49;
|
926 |
+
color: white;
|
927 |
+
font-weight: bold;
|
928 |
+
margin: 10px;
|
929 |
+
padding: 6px;
|
930 |
+
text-decoration: none;
|
931 |
+
border-radius: 7px;
|
932 |
+
}
|
933 |
+
#sq_subscription > a{
|
934 |
+
display: block;
|
935 |
+
margin: 0;
|
936 |
+
padding: 0;
|
937 |
+
height: 300px;
|
938 |
+
}
|
939 |
+
#sq_options_feedback .sq_options_feedback_popup li{
|
940 |
+
clear: both;
|
941 |
+
}
|
942 |
+
|
943 |
+
/************************** FACEBOOK *********************************/
|
944 |
+
#sq_facebook_b {
|
945 |
+
padding: 6px 0;
|
946 |
+
clear: both;
|
947 |
+
}
|
948 |
+
|
949 |
+
#sq_facebook_b > span{
|
950 |
+
display: block;
|
951 |
+
float: left;
|
952 |
+
|
953 |
+
font-weight: bold;
|
954 |
+
color: darkgreen;
|
955 |
+
}
|
956 |
+
#sq_facebook_b .sq_facebook_title{
|
957 |
+
width: 100%;
|
958 |
+
font-size: 16px;
|
959 |
+
text-align: center;
|
960 |
+
margin: 5px auto;
|
961 |
+
}
|
962 |
+
#sq_facebook_b .sq_facebook_image{
|
963 |
+
width: 100px;
|
964 |
+
margin: 3px 7px 5px 24px;
|
965 |
+
}
|
966 |
+
#sq_facebook_b .sq_facebook_image img{
|
967 |
+
width: 100px;
|
968 |
+
}
|
969 |
+
#sq_facebook_b .sq_facebook_frame{
|
970 |
+
margin-top: 35px;
|
971 |
+
}
|
972 |
+
/*********************************************************************/
|
973 |
+
|
974 |
+
/****************************FOR COUPONS ***************/
|
975 |
+
#sq_coupon{
|
976 |
+
position: relative;
|
977 |
+
background-image: none;
|
978 |
+
background-color: #ED6612;
|
979 |
+
border: 2px solid #F1F2F4;
|
980 |
+
border-radius: 5px;
|
981 |
+
padding: 0px;
|
982 |
+
margin: 0 0 10px 0;
|
983 |
+
background-color: #F3F8FD;
|
984 |
+
height: auto;
|
985 |
+
width: 100%;
|
986 |
+
}
|
987 |
+
#sq_coupon #sq_coupon_close{
|
988 |
+
position: absolute;
|
989 |
+
background-color: #E5D8CD;
|
990 |
+
right: -6px;
|
991 |
+
top: -3px;
|
992 |
+
font-size: 13px;
|
993 |
+
font-weight: bold;
|
994 |
+
color: #333;
|
995 |
+
line-height: 16px;
|
996 |
+
width: 8px;
|
997 |
+
height: 12px;
|
998 |
+
padding: 0px 5px 6px;
|
999 |
+
border-radius: 10px;
|
1000 |
+
border: 1px solid darkOliveGreen;
|
1001 |
+
cursor: pointer;
|
1002 |
+
z-index: 2;
|
1003 |
+
}
|
1004 |
+
/*********************************************************************/
|
themes/default/css/sq_blockseo.css
CHANGED
@@ -1 +1,500 @@
|
|
1 |
-
#sq_blockseo{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#sq_blockseo{
|
2 |
+
position: relative;
|
3 |
+
}
|
4 |
+
|
5 |
+
#sq_blockseo .sq_overlay{
|
6 |
+
position: absolute;
|
7 |
+
width: 100%;
|
8 |
+
background-color: #333;
|
9 |
+
text-align: center;
|
10 |
+
margin-bottom: 0;
|
11 |
+
vertical-align: middle;
|
12 |
+
opacity: 0.6;
|
13 |
+
z-index: 2;
|
14 |
+
line-height: 0;
|
15 |
+
bottom: 0;
|
16 |
+
top: 1px;
|
17 |
+
text-shadow: 2px 2px black;
|
18 |
+
cursor: pointer;
|
19 |
+
}
|
20 |
+
|
21 |
+
progress.sq_blockseo_progress,
|
22 |
+
progress.sq_blockseo_topprogress{
|
23 |
+
width: 100%;;
|
24 |
+
height: 3px;
|
25 |
+
margin: 0;
|
26 |
+
padding: 0;
|
27 |
+
display: block;
|
28 |
+
-webkit-appearance: none;
|
29 |
+
border: none;
|
30 |
+
box-shadow: none;
|
31 |
+
}
|
32 |
+
progress.sq_blockseo_topprogress{
|
33 |
+
position: fixed;
|
34 |
+
top: 0px;
|
35 |
+
z-index: 100003;
|
36 |
+
}
|
37 |
+
/* This rule sets the appearance of the progress bar background */
|
38 |
+
progress.sq_blockseo_progress::-webkit-progress-bar,
|
39 |
+
progress.sq_blockseo_topprogress::-webkit-progress-bar{
|
40 |
+
background: transparent;
|
41 |
+
border-radius: 0px;
|
42 |
+
}
|
43 |
+
|
44 |
+
/* This rule sets the appearance of the progress bar meter */
|
45 |
+
progress.sq_blockseo_progress::-webkit-progress-value {
|
46 |
+
background-color: #20bc49;
|
47 |
+
border-radius: 0px;
|
48 |
+
box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.4);
|
49 |
+
background-size: 276px;
|
50 |
+
-webkit-animation: move 5s linear 0 infinite;
|
51 |
+
animation: move 5s linear 0 infinite;
|
52 |
+
background-image: linear-gradient(90deg, red 0%, orange 30%, orange 50%, #20bc49 100%);
|
53 |
+
}
|
54 |
+
progress.sq_blockseo_topprogress::-webkit-progress-value {
|
55 |
+
background-color: #5ba4cf;
|
56 |
+
border-radius: 0px;
|
57 |
+
box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.4);
|
58 |
+
background-size: 100%;
|
59 |
+
-webkit-animation: move 5s linear 0 infinite;
|
60 |
+
animation: move 5s linear 0 infinite;
|
61 |
+
}
|
62 |
+
progress.sq_blockseo_100progress::-webkit-progress-value {
|
63 |
+
background-color: #20bc49;
|
64 |
+
}
|
65 |
+
|
66 |
+
@keyframes move {
|
67 |
+
0% {background-position: 0px 0px, 0 0, 0 0}
|
68 |
+
100% {background-position: -100px 0px, 0 0, 0 0}
|
69 |
+
}
|
70 |
+
|
71 |
+
@-webkit-keyframes move {
|
72 |
+
0% {background-position: 0px 0px, 0 0, 0 0}
|
73 |
+
100% {background-position: -100px 0px, 0 0, 0 0}
|
74 |
+
}
|
75 |
+
|
76 |
+
#sq_blockseo input,
|
77 |
+
#sq_blockseo textarea
|
78 |
+
#sq_blockseo {
|
79 |
+
font-family: Arial, Helvetica, sans-serif;
|
80 |
+
}
|
81 |
+
#sq_blockseo .sq_tasks{
|
82 |
+
padding: 2px 0px;
|
83 |
+
}
|
84 |
+
|
85 |
+
#sq_blockseo .sq_tasks .sq_help{
|
86 |
+
display: none;
|
87 |
+
}
|
88 |
+
|
89 |
+
|
90 |
+
|
91 |
+
#sq_blockseo .sq_tasks ul li{
|
92 |
+
position: relative;
|
93 |
+
display: block;
|
94 |
+
background-color: #fff;
|
95 |
+
font-family: "Lucida Grande",Arial, Helvetica, sans-serif;
|
96 |
+
font-size: 11px;
|
97 |
+
font-weight: normal;
|
98 |
+
padding: 5px 40px 5px 5px;
|
99 |
+
margin: 5px 7px;
|
100 |
+
box-shadow: 0px 0px 2px 0px #888;
|
101 |
+
-moz-box-shadow: 0px 0px 2px 0px #888;
|
102 |
+
-webkit-box-shadow: 0px 0px 2px 0px #888;
|
103 |
+
}
|
104 |
+
|
105 |
+
#sq_blockseo .sq_tasks ul li.sq_tasks_category{
|
106 |
+
color: #999;
|
107 |
+
|
108 |
+
background-color: transparent;
|
109 |
+
padding: 0;
|
110 |
+
margin: 13px 0px 0 5px;
|
111 |
+
|
112 |
+
border: 0px !important;
|
113 |
+
box-shadow: none !important;
|
114 |
+
-moz-box-shadow:none !important;
|
115 |
+
-webkit-box-shadow:none !important;
|
116 |
+
}
|
117 |
+
|
118 |
+
#sq_blockseo .sq_tasks ul li.checked{
|
119 |
+
background-color: #20bc49;
|
120 |
+
color: white;
|
121 |
+
text-shadow: 1px 1px #777;
|
122 |
+
}
|
123 |
+
|
124 |
+
#sq_blockseo .sq_tasks ul li .sq_seo_priority{
|
125 |
+
display: none;
|
126 |
+
position: absolute;
|
127 |
+
|
128 |
+
height: 25px;
|
129 |
+
width: 30px;
|
130 |
+
right: 23px;
|
131 |
+
|
132 |
+
top: 4px;
|
133 |
+
}
|
134 |
+
#sq_blockseo .sq_tasks ul li .sq_seo_locked{
|
135 |
+
background: transparent url(../img/sprite.png) no-repeat;
|
136 |
+
background-position: -87px -50px;
|
137 |
+
|
138 |
+
display: block;
|
139 |
+
position: absolute;
|
140 |
+
|
141 |
+
height: 20px;
|
142 |
+
width: 20px;
|
143 |
+
right: 23px;
|
144 |
+
|
145 |
+
top: 4px;
|
146 |
+
cursor: pointer;
|
147 |
+
}
|
148 |
+
#sq_blockseo .sq_tasks ul li .sq_seo_priority_val05{}
|
149 |
+
|
150 |
+
#sq_blockseo .sq_tasks ul li .sq_seo_priority_val08{}
|
151 |
+
#sq_blockseo .sq_tasks ul li .sq_seo_priority_essential{
|
152 |
+
background: transparent url(../img/sprite.png) no-repeat;
|
153 |
+
background-position: -45px -49px;
|
154 |
+
cursor: pointer;
|
155 |
+
}
|
156 |
+
|
157 |
+
#sq_blockseo .sq_tasks ul li .arrow:after{
|
158 |
+
content: none;
|
159 |
+
background-color: transparent;
|
160 |
+
}
|
161 |
+
#sq_blockseo .sq_tasks ul li .arrow{
|
162 |
+
display: block;
|
163 |
+
position: absolute;
|
164 |
+
background: transparent url(../img/sprite.png) no-repeat;
|
165 |
+
background-position: -146px -76px;
|
166 |
+
right: 5px;
|
167 |
+
top: 6px;
|
168 |
+
bottom: auto;
|
169 |
+
left: auto;
|
170 |
+
height: 16px;
|
171 |
+
width: 16px;
|
172 |
+
overflow: visible;
|
173 |
+
z-index: 1;
|
174 |
+
cursor: pointer;
|
175 |
+
}
|
176 |
+
|
177 |
+
#sq_blockseo .sq_tasks ul li.checked .arrow{
|
178 |
+
background-position: -121px -76px;
|
179 |
+
}
|
180 |
+
|
181 |
+
#sq_blockseo .sq_tasks ul li .arrow:hover{
|
182 |
+
background-position: -146px -76px;
|
183 |
+
z-index: 2;
|
184 |
+
}
|
185 |
+
|
186 |
+
#sq_blockseo .sq_tasks ul li .arrow:hover .sq_help{
|
187 |
+
display: table;
|
188 |
+
position: absolute;
|
189 |
+
background: #737373;
|
190 |
+
|
191 |
+
font-weight: normal;
|
192 |
+
font-size: 12px;
|
193 |
+
color: #F9F9F9;
|
194 |
+
|
195 |
+
left: -240px;
|
196 |
+
top: 28px;
|
197 |
+
height: 50px;
|
198 |
+
width: 250px;
|
199 |
+
padding: 10px 5px;
|
200 |
+
|
201 |
+
overflow: hidden;
|
202 |
+
z-index: 5;
|
203 |
+
|
204 |
+
border: 1px solid #CCC;
|
205 |
+
border-radius: 0 0 5px 5px;
|
206 |
+
-webkit-border-radius: 0 0 5px 5px;
|
207 |
+
-moz-border-radius: 0 0 5px 5px;
|
208 |
+
|
209 |
+
text-shadow: 1px 1px black;
|
210 |
+
|
211 |
+
}
|
212 |
+
|
213 |
+
#sq_blockseo .sq_tasks ul li.sq_density_high,
|
214 |
+
#sq_blockseo .sq_tasks ul li.sq_density_title_high,
|
215 |
+
#sq_blockseo .sq_tasks ul li.sq_over_density_high{
|
216 |
+
background-color: red !important;
|
217 |
+
color: white !important;
|
218 |
+
}
|
219 |
+
|
220 |
+
#sq_blockseo .sq_tasks ul li.sq_density_low,
|
221 |
+
#sq_blockseo .sq_tasks ul li.sq_density_title_low,
|
222 |
+
#sq_blockseo .sq_tasks ul li.sq_over_density_low{
|
223 |
+
}
|
224 |
+
|
225 |
+
#sq_blockseo .sq_tasks ul li.sq_locked{
|
226 |
+
color: lightgray;
|
227 |
+
background-color: #F8F8F8;
|
228 |
+
}
|
229 |
+
|
230 |
+
#sq_blockseo .sq_error{
|
231 |
+
padding: 15px;
|
232 |
+
}
|
233 |
+
|
234 |
+
body ul.sq_notification{
|
235 |
+
position: fixed;
|
236 |
+
background-color: #20bc49;
|
237 |
+
text-align: center;
|
238 |
+
width: 100%;
|
239 |
+
height: auto;
|
240 |
+
top: 28px;
|
241 |
+
padding: 0;
|
242 |
+
margin: 0;
|
243 |
+
list-style: none !important;
|
244 |
+
box-shadow: 0px 4px 4px -3px #333;
|
245 |
+
-moz-box-shadow: 0px 4px 4px -3px #333;
|
246 |
+
-webkit-box-shadow: 0px 4px 4px -3px #333;
|
247 |
+
z-index: 100001;
|
248 |
+
}
|
249 |
+
body ul.sq_notification_front{
|
250 |
+
z-index: 100002;
|
251 |
+
}
|
252 |
+
|
253 |
+
body ul.sq_density_high,
|
254 |
+
body ul.sq_density_title_high{
|
255 |
+
background-color: red !important;
|
256 |
+
}
|
257 |
+
|
258 |
+
body ul.sq_density_high li,
|
259 |
+
body ul.sq_density_title_high li{
|
260 |
+
color: white !important;
|
261 |
+
}
|
262 |
+
|
263 |
+
body ul.sq_density_low,
|
264 |
+
body ul.sq_density_title_low{
|
265 |
+
background-color: red !important;
|
266 |
+
}
|
267 |
+
|
268 |
+
body ul.sq_density_low li,
|
269 |
+
body ul.sq_density_title_low li{
|
270 |
+
color: white !important;
|
271 |
+
}
|
272 |
+
|
273 |
+
body ul.sq_notification li{
|
274 |
+
position: relative;
|
275 |
+
font-family: "Lucida Grande",Arial, Helvetica, sans-serif;
|
276 |
+
font-size: 15px;
|
277 |
+
font-weight: normal;
|
278 |
+
color: white;
|
279 |
+
text-shadow: 1px 1px #777;
|
280 |
+
line-height: 16px;
|
281 |
+
list-style: none !important;
|
282 |
+
width: 380px;
|
283 |
+
height: auto;
|
284 |
+
margin: 0 auto;
|
285 |
+
padding: 10px 0 10px 0px;
|
286 |
+
text-align: left;
|
287 |
+
}
|
288 |
+
|
289 |
+
body ul.sq_notification li .arrow{
|
290 |
+
position: absolute;
|
291 |
+
top: 8px;
|
292 |
+
left: -33px;
|
293 |
+
width: 25px;
|
294 |
+
height: 25px;
|
295 |
+
float: left;
|
296 |
+
margin: 0px 10px 0 0;
|
297 |
+
background: transparent url('../img/sprite.png') no-repeat;
|
298 |
+
background-position: -140px -49px;
|
299 |
+
}
|
300 |
+
|
301 |
+
body ul.sq_notification li .arrow::after{
|
302 |
+
background-color: transparent !important;
|
303 |
+
}
|
304 |
+
|
305 |
+
body ul.sq_complete{
|
306 |
+
position: fixed;
|
307 |
+
background-color: #20bc49;
|
308 |
+
text-align: center;
|
309 |
+
width: 100%;
|
310 |
+
height: auto;
|
311 |
+
top: 28px;
|
312 |
+
padding: 0;
|
313 |
+
margin: 0;
|
314 |
+
list-style: none !important;
|
315 |
+
box-shadow: 0px 4px 4px -3px #333;
|
316 |
+
-moz-box-shadow: 0px 4px 4px -3px #333;
|
317 |
+
-webkit-box-shadow: 0px 4px 4px -3px #333;
|
318 |
+
z-index: 100000003;
|
319 |
+
}
|
320 |
+
|
321 |
+
body ul.sq_complete li{
|
322 |
+
position: relative;
|
323 |
+
font-family: "Lucida Grande",Arial, Helvetica, sans-serif;
|
324 |
+
font-size: 15px;
|
325 |
+
font-weight: normal;
|
326 |
+
color: white;
|
327 |
+
text-shadow: 1px 1px #777;
|
328 |
+
line-height: 16px;
|
329 |
+
list-style: none !important;
|
330 |
+
width: 336px;
|
331 |
+
height: auto;
|
332 |
+
margin: 0 auto;
|
333 |
+
padding: 22px 0;
|
334 |
+
text-align: left;
|
335 |
+
}
|
336 |
+
|
337 |
+
body ul.sq_complete li span{
|
338 |
+
background: transparent url('../img/editor/complete.png') no-repeat;
|
339 |
+
background-size: 45px;
|
340 |
+
position: absolute;
|
341 |
+
top: 0px;
|
342 |
+
left: -75px;
|
343 |
+
width: 50px;
|
344 |
+
height: 59px;
|
345 |
+
float: left;
|
346 |
+
margin: 4px 5px 0 0;
|
347 |
+
}
|
348 |
+
|
349 |
+
@media only screen and (max-width: 850px){
|
350 |
+
|
351 |
+
#sq_blocksearch .sq_search ul li.sq_search_img_li{
|
352 |
+
margin: 0 2px 9px 20px;
|
353 |
+
padding: 6px;
|
354 |
+
}
|
355 |
+
|
356 |
+
progress.sq_blockseo_progress::-webkit-progress-value {
|
357 |
+
background-size: 705px;
|
358 |
+
}
|
359 |
+
}
|
360 |
+
|
361 |
+
@media only screen and (max-width: 500px){
|
362 |
+
progress.sq_blockseo_progress::-webkit-progress-value {
|
363 |
+
background-size: 460px;
|
364 |
+
}
|
365 |
+
}
|
366 |
+
/* overwrite the snippet reset background button */
|
367 |
+
#sq_snippet #sq_snippet_ul li#sq_snippet_reset {
|
368 |
+
background-color: #F1F1F1 !important;
|
369 |
+
font-weight: normal;
|
370 |
+
border: 1px solid #999;
|
371 |
+
color: #777;
|
372 |
+
text-shadow: none;
|
373 |
+
height: 8px;
|
374 |
+
}
|
375 |
+
|
376 |
+
.sq_request_synonyms{
|
377 |
+
color:lightcoral;
|
378 |
+
text-decoration:underline;
|
379 |
+
cursor: pointer;
|
380 |
+
}
|
381 |
+
.sq_request_synonyms_oo{
|
382 |
+
color:lightcyan;
|
383 |
+
text-decoration:underline;
|
384 |
+
cursor: pointer;
|
385 |
+
}
|
386 |
+
|
387 |
+
/****** FOR TITLE SUGGESTION ******/
|
388 |
+
#titlediv #sq_wp_title_suggestion:before{
|
389 |
+
display: block;
|
390 |
+
content: " ";
|
391 |
+
background: transparent url('../img/sprite.png') repeat-x;
|
392 |
+
background-position: 0 -360px;
|
393 |
+
width: 100%;
|
394 |
+
height: 5px;
|
395 |
+
border-radius: 2px 2px 0 0;
|
396 |
+
opacity: 0.3;
|
397 |
+
}
|
398 |
+
#titlediv #sq_wp_title_suggestion:hover:before{
|
399 |
+
opacity: 0.8;
|
400 |
+
}
|
401 |
+
|
402 |
+
#titlediv #sq_wp_title_suggestion,
|
403 |
+
#titlediv #sq_wp_title_suggestion_help{
|
404 |
+
clear: both;
|
405 |
+
display: table;
|
406 |
+
position: relative;
|
407 |
+
background-color: white;
|
408 |
+
width: 100%;
|
409 |
+
height: 50px;
|
410 |
+
padding: 0px 0;
|
411 |
+
margin: 9px 0 0 0;
|
412 |
+
}
|
413 |
+
|
414 |
+
#titlediv #sq_wp_title_suggestion #sq_wp_title_name{
|
415 |
+
position: absolute;
|
416 |
+
right: 20px;
|
417 |
+
top: -8px;
|
418 |
+
background-color: linen;
|
419 |
+
border: 1px solid #ddd;
|
420 |
+
font-size: 10px;
|
421 |
+
padding: 0px 10px;
|
422 |
+
}
|
423 |
+
|
424 |
+
#titlediv .sq_gsuggestion_height{
|
425 |
+
height: 175px !important;
|
426 |
+
}
|
427 |
+
#titlediv #sq_wp_title_suggestion .sq_show_mgs{
|
428 |
+
display: block;
|
429 |
+
line-height: 50px;
|
430 |
+
}
|
431 |
+
#titlediv #sq_wp_title_suggestion .sq_gsuggestion{
|
432 |
+
margin: 5px 0;
|
433 |
+
padding: 0;
|
434 |
+
}
|
435 |
+
|
436 |
+
#titlediv #sq_wp_title_suggestion .sq_gsuggestion .sq_item_gsuggestion{
|
437 |
+
clear: both;
|
438 |
+
float: none;
|
439 |
+
height: auto;
|
440 |
+
line-height: 20px;
|
441 |
+
font-size: 14px;
|
442 |
+
font-weight: bold;
|
443 |
+
color: #999;
|
444 |
+
text-align: left;
|
445 |
+
cursor: pointer;
|
446 |
+
margin: 0;
|
447 |
+
padding: 6px 12px;
|
448 |
+
}
|
449 |
+
|
450 |
+
#titlediv #sq_wp_title_suggestion .sq_gsuggestion .sq_item_active{
|
451 |
+
background-color: #f1f1f1;
|
452 |
+
}
|
453 |
+
|
454 |
+
|
455 |
+
#titlediv #sq_wp_title_suggestion ul li{
|
456 |
+
height: 20px;
|
457 |
+
font-size: 13px;
|
458 |
+
float: left;
|
459 |
+
text-align: center;
|
460 |
+
}
|
461 |
+
#titlediv #sq_wp_title_suggestion input#sq_selectit{
|
462 |
+
width: 200px;
|
463 |
+
background-color: #1cab09;
|
464 |
+
font-size: 12px;
|
465 |
+
font-weight: bold;
|
466 |
+
color: white;
|
467 |
+
|
468 |
+
margin: 10px auto 0 auto;
|
469 |
+
padding: 5px;
|
470 |
+
|
471 |
+
position: relative;
|
472 |
+
text-shadow: 1px 1px #555;
|
473 |
+
cursor: pointer;
|
474 |
+
}
|
475 |
+
|
476 |
+
#titlediv #sq_wp_title_suggestion ul li span{
|
477 |
+
display: inline-block;
|
478 |
+
height: 20px;
|
479 |
+
font-weight: bold;
|
480 |
+
margin-left: 5px;
|
481 |
+
}
|
482 |
+
|
483 |
+
#titlediv #sq_wp_title_suggestion #sq_title_suggestion_close{
|
484 |
+
position: absolute;
|
485 |
+
background-color: #f1f1f1;
|
486 |
+
right: -6px;
|
487 |
+
top: -6px;
|
488 |
+
font-size: 13px;
|
489 |
+
font-weight: bold;
|
490 |
+
color: #333;
|
491 |
+
width: 8px;
|
492 |
+
line-height: 16px;
|
493 |
+
padding: 0px 5px 3px;
|
494 |
+
border-radius: 10px;
|
495 |
+
-webkit-border-radius: 10px;
|
496 |
+
-moz-border-radius: 10px;
|
497 |
+
border: 1px solid darkOliveGreen;
|
498 |
+
cursor: pointer;
|
499 |
+
z-index: 2;
|
500 |
+
}
|
themes/default/css/sq_blocksettings.css
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.update-nag, .updated, .show-settings, .screen-meta-toggle{
|
2 |
+
display: none !important;
|
3 |
+
}
|
4 |
+
|
5 |
+
#sq_helpsettingscontent{
|
6 |
+
float: left;
|
7 |
+
clear: left;
|
8 |
+
width: 550px;
|
9 |
+
}
|
10 |
+
|
11 |
+
.sq_helpside > div{
|
12 |
+
min-height: 241px;
|
13 |
+
}
|
14 |
+
|
15 |
+
#sq_settings #sq_post_type_option{
|
16 |
+
margin: 0;
|
17 |
+
}
|
18 |
+
#sq_settings #sq_post_types{
|
19 |
+
width: 98%;
|
20 |
+
margin: 0;
|
21 |
+
padding: 10px 0 5px 10px;
|
22 |
+
display: table;
|
23 |
+
border: 1px solid #e1e1e1;
|
24 |
+
background-color: #fbfbde;
|
25 |
+
}
|
26 |
+
#sq_settings #sq_post_types li{
|
27 |
+
float: left;
|
28 |
+
margin-right: 12px;
|
29 |
+
width: 46%;
|
30 |
+
}
|
31 |
+
|
32 |
+
#sq_settings #sq_post_types li.sq_selectall{
|
33 |
+
float: none;
|
34 |
+
font-weight: bold;
|
35 |
+
margin-bottom: 15px;
|
36 |
+
}
|
37 |
+
|
themes/default/css/sq_blocksettingsseo.css
ADDED
@@ -0,0 +1,175 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.update-nag, .updated, .show-settings, .screen-meta-toggle{
|
2 |
+
display: none !important;
|
3 |
+
}
|
4 |
+
|
5 |
+
#sq_helpsettingsseocontent{
|
6 |
+
float: left;
|
7 |
+
clear: left;
|
8 |
+
width: 550px;
|
9 |
+
}
|
10 |
+
|
11 |
+
|
12 |
+
.sq_checkissues{
|
13 |
+
display: inline-block;
|
14 |
+
background-color: #ff9b00;
|
15 |
+
line-height: 37px;
|
16 |
+
color: white;
|
17 |
+
font-size: 17px;
|
18 |
+
text-shadow: 0.1em 0.1em #ff9b00;
|
19 |
+
cursor: pointer;
|
20 |
+
border: 1px solid #F7A504;
|
21 |
+
font-weight: bold;
|
22 |
+
padding: 0px 10px;
|
23 |
+
margin: 18px auto;
|
24 |
+
min-width: 170px;
|
25 |
+
height: 39px;
|
26 |
+
text-align: center;
|
27 |
+
text-decoration: none;
|
28 |
+
box-shadow: 1px 1px 1px 0 #777777;
|
29 |
+
}
|
30 |
+
|
31 |
+
.sq_helpside > div{
|
32 |
+
min-height: 241px;
|
33 |
+
}
|
34 |
+
|
35 |
+
|
36 |
+
#sq_settings #sq_settings_title .sq_checkissues{
|
37 |
+
display: block;
|
38 |
+
float: left;
|
39 |
+
line-height: 25px;
|
40 |
+
padding: 5px 10px;
|
41 |
+
margin: 6px 0 0 10px;
|
42 |
+
height: 25px;
|
43 |
+
}
|
44 |
+
#sq_settings .sq_option_img{
|
45 |
+
float: left;
|
46 |
+
vertical-align: middle;
|
47 |
+
margin: 0 10px 15px 0;
|
48 |
+
width: 200px;
|
49 |
+
cursor: pointer;
|
50 |
+
}
|
51 |
+
#sq_settings #sq_option_facebook,
|
52 |
+
#sq_settings #sq_option_twitter{
|
53 |
+
position: relative;
|
54 |
+
clear: both;
|
55 |
+
}
|
56 |
+
|
57 |
+
#sq_settings #sq_option_facebook .sq_option_img{
|
58 |
+
background: transparent url('../img/settings/facebook_tmb.png') no-repeat;
|
59 |
+
height: 170px;
|
60 |
+
}
|
61 |
+
|
62 |
+
@-webkit-keyframes fadeIn {
|
63 |
+
from { opacity: 0; }
|
64 |
+
to { opacity: 1; }
|
65 |
+
}
|
66 |
+
|
67 |
+
@keyframes fadeIn {
|
68 |
+
from { opacity: 0; }
|
69 |
+
to { opacity: 1; }
|
70 |
+
}
|
71 |
+
|
72 |
+
|
73 |
+
#sq_settings #sq_option_facebook .sq_option_img:hover:after{
|
74 |
+
-webkit-animation: fadeIn 1s;
|
75 |
+
animation: fadeIn 1s;
|
76 |
+
-moz-transition: display 0.5s ease;
|
77 |
+
-webkit-transition: display 0.5s ease;
|
78 |
+
content: "";
|
79 |
+
top: -150px;
|
80 |
+
left: -30%;
|
81 |
+
position: absolute;
|
82 |
+
width: 520px;
|
83 |
+
height: 520px;
|
84 |
+
background: transparent url('../img/settings/facebook.png') no-repeat;
|
85 |
+
z-index: 100;
|
86 |
+
|
87 |
+
}
|
88 |
+
|
89 |
+
#sq_settings #sq_option_facebook .sq_option_content{
|
90 |
+
clear: none;
|
91 |
+
float: left;
|
92 |
+
max-width: 57%;
|
93 |
+
margin-top: 13%;
|
94 |
+
}
|
95 |
+
|
96 |
+
#sq_settings #sq_option_twitter .sq_option_img{
|
97 |
+
background: transparent url('../img/settings/twitter_tmb.png') no-repeat;
|
98 |
+
height: 128px;
|
99 |
+
}
|
100 |
+
|
101 |
+
#sq_settings #sq_option_twitter .sq_option_img:hover:after{
|
102 |
+
-webkit-animation: fadeIn 1s;
|
103 |
+
animation: fadeIn 1s;
|
104 |
+
-moz-transition: display 0.2s ease;
|
105 |
+
-webkit-transition: display 0.2s ease;
|
106 |
+
content: "";
|
107 |
+
top: -150px;
|
108 |
+
left: -30%;
|
109 |
+
position: absolute;
|
110 |
+
width: 520px;
|
111 |
+
height: 334px;
|
112 |
+
background: transparent url('../img/settings/twitter.png') no-repeat;
|
113 |
+
z-index: 100;
|
114 |
+
|
115 |
+
}
|
116 |
+
|
117 |
+
#sq_settings #sq_option_twitter .sq_option_content{
|
118 |
+
clear: none;
|
119 |
+
float: left;
|
120 |
+
max-width: 57%;
|
121 |
+
margin-top: 7%;
|
122 |
+
}
|
123 |
+
|
124 |
+
#sq_settings #sq_option_twitter .sq_option_account{
|
125 |
+
float: left;
|
126 |
+
width: 57%;
|
127 |
+
margin-top: 22px;
|
128 |
+
}
|
129 |
+
|
130 |
+
#sq_settings #sq_sitemap_option{
|
131 |
+
margin: 0;
|
132 |
+
}
|
133 |
+
#sq_settings #sq_sitemap_buid,
|
134 |
+
#sq_settings #sq_sitemap_include{
|
135 |
+
width: 98%;
|
136 |
+
margin: 0;
|
137 |
+
padding: 10px 0 5px 10px;
|
138 |
+
display: table;
|
139 |
+
border: 1px solid #e1e1e1;
|
140 |
+
}
|
141 |
+
#sq_settings #sq_sitemap_buid li,
|
142 |
+
#sq_settings #sq_sitemap_include li{
|
143 |
+
float: left;
|
144 |
+
margin-right: 12px;
|
145 |
+
width: 46%;
|
146 |
+
}
|
147 |
+
|
148 |
+
#sq_settings #sq_sitemap_buid li.sq_selectall,
|
149 |
+
#sq_settings #sq_sitemap_include li.sq_selectall{
|
150 |
+
float: none;
|
151 |
+
font-weight: bold;
|
152 |
+
margin-bottom: 15px;
|
153 |
+
}
|
154 |
+
|
155 |
+
#sq_settings #sq_jsonld_option .sq_option_img{
|
156 |
+
background: transparent url('../img/settings/googlejsonld_tmb.png') no-repeat;
|
157 |
+
height: 128px;
|
158 |
+
}
|
159 |
+
|
160 |
+
#sq_settings #sq_jsonld_option .sq_option_img:hover:after{
|
161 |
+
-webkit-animation: fadeIn 1s;
|
162 |
+
animation: fadeIn 1s;
|
163 |
+
-moz-transition: display 0.2s ease;
|
164 |
+
-webkit-transition: display 0.2s ease;
|
165 |
+
content: "";
|
166 |
+
top: -100px;
|
167 |
+
left: 0%;
|
168 |
+
border: 1px solid #ddd;
|
169 |
+
position: absolute;
|
170 |
+
width: 520px;
|
171 |
+
height: 276px;
|
172 |
+
background: transparent url('../img/settings/googlejsonld.png') no-repeat;
|
173 |
+
z-index: 100;
|
174 |
+
|
175 |
+
}
|
themes/default/css/sq_frontend.css
CHANGED
@@ -1 +1,126 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**** FOR ALL *****/
|
2 |
+
.sq_quote_content,
|
3 |
+
.sq_blog_content,
|
4 |
+
.sq_wiki_content,
|
5 |
+
.sq_local_content{
|
6 |
+
position: relative;
|
7 |
+
clear: both;
|
8 |
+
|
9 |
+
background: white;
|
10 |
+
font-size: 14px;
|
11 |
+
color: #333;
|
12 |
+
|
13 |
+
max-width: 500px;
|
14 |
+
margin: 5px auto 5px auto;
|
15 |
+
padding: 13px;
|
16 |
+
|
17 |
+
-webkit-transition: .1s border-color;
|
18 |
+
-moz-transition: .1s border-color;
|
19 |
+
transition: .1s border-color;
|
20 |
+
|
21 |
+
-webkit-border-radius: 5px;
|
22 |
+
-moz-border-radius: 5px;
|
23 |
+
border-radius: 5px;
|
24 |
+
border: 1px solid #DDD;
|
25 |
+
|
26 |
+
-webkit-box-shadow: 0 1px 0 #DDD;
|
27 |
+
-moz-box-shadow: 0 1px 0 #ddd;
|
28 |
+
box-shadow: 0 1px 0 #DDD;
|
29 |
+
}
|
30 |
+
|
31 |
+
/**** FOR TWEETS *****/
|
32 |
+
.sq_quote_content p{
|
33 |
+
line-height: 0px !important;
|
34 |
+
margin: 0px !important;
|
35 |
+
padding: 0px !important;
|
36 |
+
}
|
37 |
+
.sq_author_avatar{
|
38 |
+
display: block;
|
39 |
+
float: left;
|
40 |
+
|
41 |
+
width: 48px;
|
42 |
+
height: 48px;
|
43 |
+
padding: 1px;
|
44 |
+
margin: 0;
|
45 |
+
border: 1px solid #DDD;
|
46 |
+
}
|
47 |
+
.sq_quote_text{
|
48 |
+
margin-left: 62px;
|
49 |
+
line-height: 1.5em;
|
50 |
+
padding-left: 21px;
|
51 |
+
background: url("../img/front/avatar-margin.png") left top no-repeat;
|
52 |
+
min-height: 52px;
|
53 |
+
font-family: "Georgia",serif;
|
54 |
+
font-size: 16px;
|
55 |
+
}
|
56 |
+
|
57 |
+
|
58 |
+
/**** FOR BLOG *****/
|
59 |
+
.sq_blog_content p{
|
60 |
+
line-height: 0px !important;
|
61 |
+
margin: 0px !important;
|
62 |
+
padding: 0px !important;
|
63 |
+
}
|
64 |
+
a.sq_news{
|
65 |
+
display: block;
|
66 |
+
font-family: "Helvetica",sans-serif;
|
67 |
+
font-weight: 700;
|
68 |
+
color: #0074B7;
|
69 |
+
|
70 |
+
font-size: 14px;
|
71 |
+
|
72 |
+
line-height: 1.4em;
|
73 |
+
margin-bottom: 5px;
|
74 |
+
text-decoration: none;
|
75 |
+
}
|
76 |
+
.sq_news_text{
|
77 |
+
font-size: 12px;
|
78 |
+
color: #333;
|
79 |
+
}
|
80 |
+
|
81 |
+
/**** FOR BLOG *****/
|
82 |
+
.sq_wiki_content p{
|
83 |
+
line-height: 0px !important;
|
84 |
+
margin: 0px !important;
|
85 |
+
padding: 0px !important;
|
86 |
+
}
|
87 |
+
a.sq_wiki{
|
88 |
+
display: block;
|
89 |
+
font-family: "Helvetica",sans-serif;
|
90 |
+
font-weight: 700;
|
91 |
+
color: #0074B7;
|
92 |
+
|
93 |
+
font-size: 14px;
|
94 |
+
|
95 |
+
line-height: 1.4em;
|
96 |
+
margin-bottom: 5px;
|
97 |
+
text-decoration: none;
|
98 |
+
}
|
99 |
+
.sq_wiki_text{
|
100 |
+
font-size: 12px;
|
101 |
+
color: #333;
|
102 |
+
}
|
103 |
+
|
104 |
+
/**** FOR LOCAL *****/
|
105 |
+
.sq_local_content p{
|
106 |
+
line-height: 0px !important;
|
107 |
+
margin: 0px !important;
|
108 |
+
padding: 0px !important;
|
109 |
+
}
|
110 |
+
a.sq_local{
|
111 |
+
display: block;
|
112 |
+
font-family: "Helvetica",sans-serif;
|
113 |
+
font-weight: 700;
|
114 |
+
color: #0074B7;
|
115 |
+
|
116 |
+
font-size: 14px;
|
117 |
+
|
118 |
+
line-height: 1.4em;
|
119 |
+
margin-bottom: 5px;
|
120 |
+
text-decoration: none;
|
121 |
+
}
|
122 |
+
.sq_local_text{
|
123 |
+
font-size: 12px;
|
124 |
+
color: #333;
|
125 |
+
}
|
126 |
+
|
themes/default/css/sq_global.css
CHANGED
@@ -1 +1,414 @@
|
|
1 |
-
.sq_message{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.sq_message{
|
2 |
+
line-height: 19px;
|
3 |
+
padding: 0px 0;
|
4 |
+
font-size: 13px;
|
5 |
+
text-align: center;
|
6 |
+
margin: -1px 15px 0 5px;
|
7 |
+
border-width: 1px;
|
8 |
+
border-style: solid;
|
9 |
+
-webkit-border-bottom-right-radius: 3px;
|
10 |
+
-webkit-border-bottom-left-radius: 3px;
|
11 |
+
border-bottom-right-radius: 3px;
|
12 |
+
border-bottom-left-radius: 3px;
|
13 |
+
background-color: #FFFBCC;
|
14 |
+
border-color: #E6DB55;
|
15 |
+
}
|
16 |
+
.sq_notices{
|
17 |
+
font-size: 13px;
|
18 |
+
color: #555;
|
19 |
+
}
|
20 |
+
.sq_error{
|
21 |
+
position: relative;
|
22 |
+
width: auto !important;
|
23 |
+
text-align: center;
|
24 |
+
font-size: 14px;
|
25 |
+
font-weight: bold;
|
26 |
+
color: brown;
|
27 |
+
margin: 5px 0 0 0;
|
28 |
+
padding: 0 10px;
|
29 |
+
}
|
30 |
+
|
31 |
+
.sq_success{
|
32 |
+
position: relative;
|
33 |
+
width: auto !important;
|
34 |
+
text-align: center;
|
35 |
+
font-size: 16px;
|
36 |
+
font-weight: bold;
|
37 |
+
color: white;
|
38 |
+
margin: 5px 0 0 0;
|
39 |
+
padding: 10px;
|
40 |
+
background-color: #20bc49;
|
41 |
+
}
|
42 |
+
|
43 |
+
.sq_absolute{
|
44 |
+
position: fixed;
|
45 |
+
top: 28px;
|
46 |
+
z-index: 10000;
|
47 |
+
text-align: center;
|
48 |
+
}
|
49 |
+
|
50 |
+
.sq_savenotice{
|
51 |
+
width: 70%;
|
52 |
+
}
|
53 |
+
|
54 |
+
.sq_absolute span{
|
55 |
+
width: 50% !important;
|
56 |
+
display: inline-block;
|
57 |
+
}
|
58 |
+
|
59 |
+
.sq_error strong{
|
60 |
+
line-height: 25px;
|
61 |
+
}
|
62 |
+
|
63 |
+
.sq_helpnotice{
|
64 |
+
display: none;
|
65 |
+
position: relative;
|
66 |
+
background-color: lightyellow;
|
67 |
+
color: #999;
|
68 |
+
}
|
69 |
+
.sq_helpnotice p{
|
70 |
+
margin: 3px;
|
71 |
+
}
|
72 |
+
.sq_helpnotice strong{
|
73 |
+
display: block;
|
74 |
+
font-size: 14px;
|
75 |
+
max-width: 90%;
|
76 |
+
|
77 |
+
}
|
78 |
+
.sq_helpnotice a{
|
79 |
+
color: lightgray;
|
80 |
+
margin-left: 10px;
|
81 |
+
text-decoration: none;
|
82 |
+
}
|
83 |
+
|
84 |
+
.sq_helpnotice .sq_button{
|
85 |
+
display: inline-block;
|
86 |
+
background-color: #FFF;
|
87 |
+
line-height: 25px;
|
88 |
+
color: #504310;
|
89 |
+
font-size: 14px;
|
90 |
+
text-shadow: 0.1em 0.1em #FFFF52;
|
91 |
+
background: #FFD424;
|
92 |
+
cursor: pointer;
|
93 |
+
border: 1px solid #F7A504;
|
94 |
+
-moz-border-radius: 4px;
|
95 |
+
-webkit-border-radius: 4px;
|
96 |
+
border-radius: 4px;
|
97 |
+
font-weight: bold;
|
98 |
+
padding: 0px 25px;
|
99 |
+
margin: 6px 0 5px 6px;
|
100 |
+
width: auto;
|
101 |
+
text-align: center;
|
102 |
+
text-decoration: none;
|
103 |
+
}
|
104 |
+
|
105 |
+
.sq_notice_author{
|
106 |
+
position: absolute;
|
107 |
+
color: #a8a8a8;
|
108 |
+
font-size: 10px;
|
109 |
+
line-height: 15px;
|
110 |
+
top: 0px;
|
111 |
+
right: 2px;
|
112 |
+
text-shadow: none;
|
113 |
+
}
|
114 |
+
|
115 |
+
.sq_loading {
|
116 |
+
height: 60px;
|
117 |
+
background: transparent url('../img/loading.gif') no-repeat center !important;
|
118 |
+
}
|
119 |
+
|
120 |
+
@-webkit-keyframes play {
|
121 |
+
from { background-position: 0px; }
|
122 |
+
to { background-position: -400px; }
|
123 |
+
}
|
124 |
+
|
125 |
+
@-moz-keyframes play {
|
126 |
+
from { background-position: 0px; }
|
127 |
+
to { background-position: -400px; }
|
128 |
+
}
|
129 |
+
|
130 |
+
@-ms-keyframes play {
|
131 |
+
from { background-position: 0px; }
|
132 |
+
to { background-position: -400px; }
|
133 |
+
}
|
134 |
+
|
135 |
+
@-o-keyframes play {
|
136 |
+
from { background-position: 0px; }
|
137 |
+
to { background-position: -400px; }
|
138 |
+
}
|
139 |
+
|
140 |
+
@keyframes play {
|
141 |
+
from { background-position: 0px; }
|
142 |
+
to { background-position: -400px; }
|
143 |
+
}
|
144 |
+
.sq_minloading{
|
145 |
+
position: relative;
|
146 |
+
opacity: 0.5;
|
147 |
+
}
|
148 |
+
.sq_minloading:before {
|
149 |
+
position: absolute;
|
150 |
+
right: calc(50% - 10px);
|
151 |
+
top: calc(50% - 8px);
|
152 |
+
display: block;
|
153 |
+
float: right;
|
154 |
+
line-height: 30px;
|
155 |
+
content: "";
|
156 |
+
padding: 0px 0px;
|
157 |
+
margin: 0 0 0 5px;
|
158 |
+
height: 16px;
|
159 |
+
width: 20px;
|
160 |
+
background: transparent url('../img/minloading.png') no-repeat;
|
161 |
+
|
162 |
+
-webkit-animation: play 1s steps(10) infinite;
|
163 |
+
-moz-animation: play 1s steps(10) infinite;
|
164 |
+
-ms-animation: play 1s steps(10) infinite;
|
165 |
+
-o-animation: play 1s steps(10) infinite;
|
166 |
+
animation: play 1s steps(10) infinite;
|
167 |
+
}
|
168 |
+
#sq_preloading {
|
169 |
+
text-align: center;
|
170 |
+
font-size: 15px;
|
171 |
+
line-height: 24px;
|
172 |
+
color: gray;
|
173 |
+
}
|
174 |
+
|
175 |
+
noscript{
|
176 |
+
color: red;
|
177 |
+
}
|
178 |
+
|
179 |
+
#adminmenu li.current a .awaiting-mod{
|
180 |
+
background: inherit;
|
181 |
+
}
|
182 |
+
|
183 |
+
.sq_beta{
|
184 |
+
font-size: 11px;
|
185 |
+
color: darkRed;
|
186 |
+
vertical-align: top;
|
187 |
+
line-height: 16px;
|
188 |
+
display: inline-block;
|
189 |
+
margin: 0 0 0 5px;
|
190 |
+
border: 1px solid darkRed;
|
191 |
+
padding: 0 3px;
|
192 |
+
}
|
193 |
+
|
194 |
+
.sq_tooltip{
|
195 |
+
display: inline;
|
196 |
+
position: relative;
|
197 |
+
}
|
198 |
+
|
199 |
+
.sq_tooltip:hover:after{
|
200 |
+
background: #333;
|
201 |
+
background: rgba(0,0,0,.8);
|
202 |
+
border-radius: 5px;
|
203 |
+
bottom: 26px;
|
204 |
+
color: #fff;
|
205 |
+
font-size: 14px;
|
206 |
+
content: attr(title);
|
207 |
+
left: 20%;
|
208 |
+
padding: 5px 15px;
|
209 |
+
position: absolute;
|
210 |
+
z-index: 98;
|
211 |
+
width: 250px;
|
212 |
+
}
|
213 |
+
|
214 |
+
.sq_tooltip:hover:before{
|
215 |
+
border: solid;
|
216 |
+
border-color: #333 transparent;
|
217 |
+
border-width: 6px 6px 0 6px;
|
218 |
+
bottom: 20px;
|
219 |
+
content: "";
|
220 |
+
left: 30px;
|
221 |
+
position: absolute;
|
222 |
+
z-index: 99;
|
223 |
+
}
|
224 |
+
/********************* SNIPPET *****************************/
|
225 |
+
#sq_settings #sq_snippet{
|
226 |
+
max-width: 550px;
|
227 |
+
}
|
228 |
+
#sq_settings #sq_snippet #sq_snippet_ul{
|
229 |
+
min-height: 65px;
|
230 |
+
}
|
231 |
+
#sq_snippet{
|
232 |
+
position: relative;
|
233 |
+
margin: 20px 0;
|
234 |
+
|
235 |
+
position: relative;
|
236 |
+
margin: 20px 1px;
|
237 |
+
box-shadow: 0px 1px 2px -1px #444;
|
238 |
+
-moz-box-shadow: 0px 1px 2px -1px #444;
|
239 |
+
-webkit-box-shadow: 0px 1px 2px -1px #444;
|
240 |
+
}
|
241 |
+
#sq_snippet:before{
|
242 |
+
display: block;
|
243 |
+
content: " ";
|
244 |
+
background: transparent url('../img/sprite.png') repeat-x;
|
245 |
+
background-position: 0 -360px;
|
246 |
+
width: 100%;
|
247 |
+
height: 5px;
|
248 |
+
border-radius: 2px 2px 0 0;
|
249 |
+
opacity: 0.3;
|
250 |
+
}
|
251 |
+
#sq_snippet:hover:before{
|
252 |
+
opacity: 0.8;
|
253 |
+
}
|
254 |
+
#sq_snippet #sq_snippet_ul{
|
255 |
+
background-color: white;
|
256 |
+
width: auto;
|
257 |
+
padding: 15px;
|
258 |
+
margin: 0 0 20px 0;
|
259 |
+
min-height: 40px;
|
260 |
+
}
|
261 |
+
#sq_snippet #sq_snippet_ul li{
|
262 |
+
font-family: arial, sans-serif;
|
263 |
+
font-size: 13px;
|
264 |
+
font-weight: normal;
|
265 |
+
|
266 |
+
line-height: 10px;
|
267 |
+
margin: 0;
|
268 |
+
padding: 0;
|
269 |
+
}
|
270 |
+
#sq_snippet #sq_snippet_ul li#sq_snippet_update,
|
271 |
+
#sq_snippet #sq_snippet_ul li#sq_snippet_customize,
|
272 |
+
#sq_snippet #sq_snippet_ul li#sq_snippet_reset{
|
273 |
+
background-color: #ff9b00;
|
274 |
+
min-width: 40px;
|
275 |
+
height: 10px;
|
276 |
+
color: white;
|
277 |
+
font-size: 12px;
|
278 |
+
font-weight: bold;
|
279 |
+
text-shadow: nonw;
|
280 |
+
box-shadow: 1px 1px 0px 0px white;
|
281 |
+
border: none;
|
282 |
+
border-radius: 5px;
|
283 |
+
padding: 7px 8px;
|
284 |
+
cursor: pointer;
|
285 |
+
float: right;
|
286 |
+
margin: 13px 3px;
|
287 |
+
text-align: center;
|
288 |
+
}
|
289 |
+
#sq_settings #sq_snippet #sq_snippet_ul li#sq_snippet_update{
|
290 |
+
margin: 1px;
|
291 |
+
}
|
292 |
+
|
293 |
+
#sq_settings #sq_snippet_image{
|
294 |
+
min-height: 30px;
|
295 |
+
}
|
296 |
+
|
297 |
+
#sq_snippet #sq_snippet_ul #sq_snippet_title,
|
298 |
+
#sq_snippet #sq_snippet_ul #sq_snippet_title_value{
|
299 |
+
color: #12c;
|
300 |
+
text-decoration: none;
|
301 |
+
cursor: pointer;
|
302 |
+
line-height: 16px;
|
303 |
+
font-size: 14px;
|
304 |
+
font-weight: normal;
|
305 |
+
}
|
306 |
+
#sq_snippet #sq_snippet_ul #sq_snippet_title {
|
307 |
+
max-width: 450px;
|
308 |
+
overflow: hidden;
|
309 |
+
white-space: nowrap;
|
310 |
+
text-overflow: ellipsis;
|
311 |
+
}
|
312 |
+
|
313 |
+
#sq_snippet #sq_snippet_ul #sq_snippet_title_value{
|
314 |
+
max-width: 480px;
|
315 |
+
}
|
316 |
+
|
317 |
+
#sq_snippet #sq_snippet_ul #sq_snippet_title_value input{
|
318 |
+
font-size: 12px;
|
319 |
+
width: 410px;
|
320 |
+
height: 20px;
|
321 |
+
margin: 2px 0;
|
322 |
+
background-color: lightgoldenrodyellow;
|
323 |
+
}
|
324 |
+
#sq_snippet #sq_snippet_ul #sq_snippet_url,
|
325 |
+
#sq_snippet #sq_snippet_ul #sq_snippet_url a{
|
326 |
+
color: #093;
|
327 |
+
height: 16px;
|
328 |
+
line-height: 14px;
|
329 |
+
overflow: visible;
|
330 |
+
text-decoration: none;
|
331 |
+
}
|
332 |
+
|
333 |
+
#sq_snippet #sq_snippet_ul #sq_snippet_description,
|
334 |
+
#sq_snippet #sq_snippet_ul #sq_snippet_description_value{
|
335 |
+
color: #222;
|
336 |
+
font-size: 12px;
|
337 |
+
line-height: 16px;
|
338 |
+
margin-top: 4px;
|
339 |
+
max-width: 480px;
|
340 |
+
overflow: hidden;
|
341 |
+
}
|
342 |
+
#sq_snippet #sq_snippet_ul #sq_snippet_description_value textarea{
|
343 |
+
font-size: 12px;
|
344 |
+
width: 410px;
|
345 |
+
height: 40px;
|
346 |
+
margin: 2px 0;
|
347 |
+
background-color: lightgoldenrodyellow;
|
348 |
+
}
|
349 |
+
#sq_snippet #sq_snippet_name{
|
350 |
+
position: absolute;
|
351 |
+
right: 0;
|
352 |
+
top: -8px;
|
353 |
+
background-color: linen;
|
354 |
+
border: 1px solid #ddd;
|
355 |
+
font-size: 10px;
|
356 |
+
padding: 0px 10px;
|
357 |
+
}
|
358 |
+
#sq_snippet #sq_snippet_disclaimer{
|
359 |
+
position: absolute;
|
360 |
+
left: 0;
|
361 |
+
bottom: -17px;
|
362 |
+
color: #999;
|
363 |
+
font-size: 10px;
|
364 |
+
padding: 0px 3px;
|
365 |
+
}
|
366 |
+
#sq_snippet #sq_snippet_ul #sq_snippet_source{
|
367 |
+
position: absolute;
|
368 |
+
bottom: 1px;
|
369 |
+
right: 2px;
|
370 |
+
}
|
371 |
+
#sq_snippet #sq_snippet_ul #sq_snippet_source a{
|
372 |
+
font-size: 10px;
|
373 |
+
color: lightslategray;
|
374 |
+
text-decoration: none;
|
375 |
+
}
|
376 |
+
|
377 |
+
#sq_snippet .sq_meta_info{
|
378 |
+
display: inline-block;
|
379 |
+
font-size: 11px;
|
380 |
+
color: gray;
|
381 |
+
margin: 4px 3px;
|
382 |
+
vertical-align: top;
|
383 |
+
}
|
384 |
+
|
385 |
+
#sq_snippet #sq_snippet_ul li#sq_snippet_keywords{
|
386 |
+
margin: 10px 0 0 0;
|
387 |
+
color: blue;
|
388 |
+
font-size: 10px;
|
389 |
+
cursor: pointer;
|
390 |
+
}
|
391 |
+
|
392 |
+
#sq_snippet #sq_upload{
|
393 |
+
margin:10px 0 5px 0;
|
394 |
+
}
|
395 |
+
|
396 |
+
#sq_snippet #ogimage_preview{
|
397 |
+
margin: 10px 0;
|
398 |
+
max-height: 300px;
|
399 |
+
max-width: 400px;
|
400 |
+
clear: both;
|
401 |
+
display: block;
|
402 |
+
}
|
403 |
+
|
404 |
+
#sq_snippet #sq_uploadstats{
|
405 |
+
margin: 8px 0;
|
406 |
+
color: red;
|
407 |
+
}
|
408 |
+
|
409 |
+
@media only screen and (max-width: 1024px){
|
410 |
+
#sq_snippet #sq_snippet_ul #sq_snippet_title {
|
411 |
+
clear: both;
|
412 |
+
}
|
413 |
+
}
|
414 |
+
/**************************************************/
|
themes/default/css/sq_menu.css
CHANGED
@@ -1 +1,890 @@
|
|
1 |
-
#sq_settings{font-family:Arial, sans-serif;position:relative}#sq_settings .sq_icon{display:block;float:left;margin:10px 11px 0 0;height:40px;width:33px;background:transparent url('../img/sprite.png') no-repeat;background-position:-47px -155px}#sq_settings #sq_settings_title{font-size:36px;font-weight:normal;line-height:49px;color:#333;margin:0 15px 3px 0;padding-top:5px;padding-bottom:0px;height:auto;vertical-align:bottom;text-shadow:1px 1px white}#sq_settings #sq_settings_title a,#sq_settings #sq_settings_title input{display:block;float:left;font-size:15px;font-weight:bold;color:white;background-color:green;border:1px solid white;line-height:25px;padding:5px 10px;margin:6px 0 0 0px;text-decoration:none;cursor:pointer}#sq_settings .sq_login_link,#sq_settings #sq_goto_newpost,#sq_settings #sq_goto_dashboard,#sq_settings #sq_settings_title #sq_goto_newpost,#sq_settings #sq_settings_title #sq_goto_dashboard{display:inline-block;background-color:#FFF;line-height:35px;color:#504310;font-size:15px;text-shadow:0.1em 0.1em #FFFF52;background:#FFD424;cursor:pointer;border:1px solid #F7A504;font-weight:bold;padding:0px 10px;margin:6px 0 5px 6px;width:250px;text-align:center;text-decoration:none}#sq_settings .sq_login_link{margin:0 auto;width:500px;display:block}#sq_settings #sq_goto_newpost,#sq_settings #sq_goto_dashboard{display:block;font-size:18px;height:20px;margin:6px auto;padding:5px 10px;height:35px}#sq_settings #sq_login_success{text-align:center;font-size:18px;padding:14px 0;margin:15px auto;color:#008000}#sq_settings #sq_login_success img{margin:30px auto 8px auto}#sq_settings #sq_login_success ul{padding:0;margin:0}#sq_settings #sq_login_success li{text-align:left;font-size:13px;padding:10px;margin:0 7px}#sq_settings_login{width:100% !important}#sq_settings_login #sq_blocklogin label{width:80px}#sq_settings_login .sq_box{max-width:540px;min-width:500px;background:#f0f0f0 url('../img/settings_login.jpg') 0px 0px no-repeat;border:1px solid #ddd;font-size:1.1em;margin:70px auto;padding:1em;font-family:Arial,Verdana,Helvetica,sans-serif;box-shadow:0 5px 9px -5px #222;text-align:center}#sq_settings_login .sq_login_done{background:#f0f0f0 url('../img/settings_login_done.jpg') 0px 0px no-repeat}#sq_settings_login .sq_box .sq_header{color:#11a5c1;font-size:28px;font-weight:bold;margin:0;padding:5px 0;line-height:29px;text-shadow:1px 2px white}#sq_settings_login .sq_login_done .sq_header{font-size:24px}#sq_settings_login #sq_blocklogin ul li{width:500px !important}#sq_settings_login #sq_blocklogin ul li input[type=text],#sq_settings_login #sq_blocklogin ul li input[type=password]{min-width:250px}#sq_settings_login #sq_blocklogin #sq_register_email{width:500px}#sq_settings_login #sq_blocklogin #sq_register_email input[type=text]{min-width:250px}#sq_settings .sq_settings_affiliate_bigtitle{font-size:26px !important;margin:0;padding:5px 0}#sq_settings .sq_settings_affiliate_bigbutton{margin-bottom:35px;text-align:center}#sq_settings .sq_settings_affiliate_bigbutton input{padding:15px !important;font-size:18px !important;cursor:pointer}#sq_settings .sq_settings_affiliate_bigbutton span{display:block;font-size:18px;color:green;font-weight:bold;margin:20px 0 0 0}#sq_settings .sq_settings_affiliate_info{margin-bottom:35px}#sq_settings .sq_settings_affiliate_info li{margin-left:16px;font-weight:bold;font-size:14px;line-height:20px}#sq_settings .sq_affiliate_banner{display:block;margin-bottom:20px;font-weight:normal;font-size:12px;line-height:20px}#sq_settings .sq_settings_info{text-align:left}#sq_settings #sq_settings_howto{font-family:'Segoe UI', Arial, sans-serif;position:relative;background:#F3F8FD url('../img/header_stars.png') no-repeat;background-position:center 90px;border:2px solid #F1F2F4;padding:10px;margin:10px auto 20px auto;min-height:650px;width:740px;text-align:center}#sq_settings #sq_settings_howto #sq_settings_howto_title{display:block;width:100%;font-size:28px;font-weight:bold;line-height:39px;color:#11A5C1;margin:0 0 10px 0;padding-bottom:5px;text-align:center;text-shadow:1px 1px white;height:auto}#sq_settings #sq_settings_howto #sq_settings_howto_body{font-size:20px;line-height:27px;color:#A8A8A8;padding:5px;text-shadow:1px 1px white}#sq_settings #sq_settings_howto #sq_settings_howto_body p span{display:block;font-size:17px;color:#333}#sq_settings #sq_settings_howto #sq_settings_button{display:block;text-align:center;float:right;font-size:17px;font-weight:bold;color:white;background:#ED6612 url('../img/settings_edit.png') 5px 7px no-repeat;border:1px solid #D45C14;margin:10px 75px;padding:5px 15px 5px 34px;text-decoration:none;text-shadow:1px 1px #BF4509}#sq_settings #sq_settings_title #sq_settings_howto_close{display:inline-block;font-size:12px;color:blue;font-weight:normal;line-height:30px;cursor:pointer}#sq_settings .sq_user_title{color:#1d9ed4 !important;font-size:26px;margin:0;padding:5px 0 !important;text-align:left}#sq_settings #sq_user_stats_list li{margin:0;padding:3px 0 3px 24px;line-height:25px;font-size:14px}#sq_settings #sq_user_stats_list li strong{color:green;font-size:16px}#sq_settings #sq_user_info .sq_settings_info{color:#333;padding-top:15px;text-align:left}#sq_settings #sq_user_info .sq_settings_info a{font-weight:bold}#sq_settings #sq_user_info .sq_button a{clear:both;display:block;float:right;font-size:15px;font-weight:bold;color:white;background-color:green;border:1px solid white;line-height:25px;padding:5px 10px;margin:20px 0 0 20px;text-decoration:none;text-shadow:1px 1px #333;cursor:pointer}#sq_settings #sq_userinfo{color:#333;font-size:14px;font-weight:normal;min-height:500px;margin:0 15px 5px 0;padding:0px;text-shadow:1px 1px white}#sq_settings #sq_userinfo li{padding:10px}.sq_userinfo fieldset{float:none !important}.sq_userinfo fieldset > div{width:auto !important}#sq_settings #sq_settings_body{display:block;font-size:12px;color:#333;line-height:16px;text-align:left;margin-top:20px}#sq_settings_body #sq_settings_left,#sq_settings_body #sq_settings_right{float:left}#sq_settings_body #sq_settings_submit{clear:both}#sq_settings_body fieldset{float:left;clear:both;width:900px;background:#fcfcfc;border:1px solid #ddd;font-size:1.1em;margin:10px auto;padding:0;font-family:Arial,Verdana,Helvetica,sans-serif;text-shadow:1px 1px white;box-shadow:0 5px 9px -6px #222}#sq_settings_body fieldset > div{float:left;padding:20px 0 0 0px;width:550px}#sq_settings_body fieldset legend{float:left;width:280px;height:300px;background:#161a16 repeat-x top left;border:none;font-weight:normal;font-size:14px;margin:0 10px 0 0;padding:25px;line-height:20px;text-align:left;color:#fff;text-shadow:none}#sq_settings_body fieldset legend.sq_legend_medium{height:401px}#sq_settings_body fieldset legend.sq_legend_big{height:810px}#sq_settings_body fieldset legend > span{display:block;font-size:13px;color:#ccc;margin:25px 0 10px 0;clear:both;text-shadow:1px 1px #000}#sq_settings_body fieldset legend .sq_legend_title{font-weight:lighter;color:#f9f9f9;font-size:23px;line-height:30px;margin-top:0}#sq_settings_body fieldset legend > span a{color:#5dabcf;font-size:14px;font-weight:normal;text-decoration:none}#sq_settings_body fieldset legend .sq_option_content{width:123px;margin:0 auto}#sq_settings_body span.sq_settings_info{clear:both;display:block;font-size:10px;padding-right:10px;width:100%;text-align:right}#sq_settings_body ul.sq_settings_info > span{display:block;color:#777;font-size:16px;font-weight:bold;margin-bottom:22px;list-style:none}#sq_settings_body ul.sq_settings_info li{margin:17px 10px;font-size:11px;font-weight:normal;color:#777}#sq_settings_body fieldset p{vertical-align:top;margin:5px 0 5px 0;padding:0 0 0.5em 0;font-weight:normal;font-size:15px}#sq_settings_body fieldset .withborder{clear:both;vertical-align:top;min-height:40px;margin:7px 0 10px 0;padding:0 0 10px 0;font-weight:normal;font-size:12px;border-bottom:1px dashed #CCC}#sq_settings_body fieldset .withbordertop{border-top:1px dashed #CCC;padding-top:15px}#sq_settings_body fieldset .withcode{min-height:85px}#sq_settings_body fieldset .withcode strong{display:block;font-size:10px;color:#333;margin-left:15px;margin-top:10px}#sq_settings_body fieldset .withcode input[type=text]{width:170px;font-size:10px;margin:0;border:1px solid green}#sq_settings_body fieldset #sq_twitter_account{display:block;font-weight:bold;font-size:13px;color:darksalmon;margin:15px auto;width:350px}#sq_settings_body fieldset .sq_icon{display:block;float:left;background:transparent url('../img/sprite.png') no-repeat;margin:0 10px 0 0;color:brown;width:55px;height:50px}#sq_settings_body fieldset .sq_icon_googleplus{background-position:-221px -100px}#sq_settings_body fieldset .sq_icon_googlewt{background-position:-112px -100px}#sq_settings_body fieldset .sq_icon_googleanalytics{background-position:0px -100px}#sq_settings_body fieldset .sq_icon_facebookinsights{background-position:-59px -100px}#sq_settings_body fieldset .sq_icon_bingwt{background-position:-165px -100px}#sq_settings_body fieldset .sq_icon_alexat{background-position:-270px -100px}#sq_settings_body fieldset .sq_icon_pinterest{background-position:-320px -100px}#sq_settings_body fieldset p input,#sq_settings_body fieldset p textarea{margin-left:15px;padding:4px;border:1px solid green;max-width:415px}#sq_settings_body input[type=submit]{font-size:15px;font-weight:bold;line-height:30px;padding:1px 10px;margin-left:11px;margin-top:5px;background-color:green;border:none;color:white}#sq_settings_body .customize,#sq_settings_body ._customize{font-size:12px;font-weight:bold;color:blue;cursor:pointer}#sq_settings_body ._customize{margin-top:10px}#sq_settings_body .sq_custom_title legend{height:415px}@media only screen and (max-width: 1800px){#sq_settings_body #sq_settings_left,#sq_settings_body #sq_settings_right{float:none}#sq_settings_body #sq_settings_left fieldset,#sq_settings_body #sq_settings_right fieldset{margin:10px auto 20px auto}}.sq_option_content{clear:both;padding:6px 0;height:30px}.sq_option_content > span{position:relative;padding-top:3px;display:block;vertical-align:middle;line-height:16px;font-size:12px;text-shadow:1px 1px #FFF}.sq_switch{float:left;position:relative;margin:0px 9px 0 0;height:26px;width:120px;border:1px solid #e2ffd6;background:rgba(0, 0, 0, 0.25);-webkit-box-shadow:inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);box-shadow:inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1)}.sq_switch-label{position:relative;z-index:2;float:left;width:58px;line-height:26px;font-size:11px;color:rgba(255, 255, 255, 0.35);text-align:center;text-shadow:0 1px 1px rgba(0, 0, 0, 0.45);cursor:pointer}.sq_switch-label:active{font-weight:bold}.sq_switch-label-off{padding-left:2px}.sq_switch-label-on{padding-right:2px}.sq_switch-input{display:none !important}.sq_switch-input:checked + .sq_switch-label{font-weight:bold;color:rgba(0, 0, 0, 0.65);text-shadow:0px 1px rgba(255, 255, 255, 0.25);-webkit-transition:0.15s ease-out;-moz-transition:0.15s ease-out;-o-transition:0.15s ease-out;transition:0.15s ease-out}.sq_switch-input:checked + .sq_switch-label-on ~ .sq_switch-selection{left:60px;background:lightgray}.sq_switch-selection{display:block;position:absolute;z-index:1;top:2px;left:2px;width:58px;height:22px;background:#89e46a;background-image:-webkit-linear-gradient(top, #9dd993, #89e46a);background-image:-moz-linear-gradient(top, #9dd993, #89e46a);background-image:-o-linear-gradient(top, #9dd993, #89e46a);-webkit-box-shadow:inset 0 1px rgba(255, 255, 255, 0.5), 0 0 2px rgba(0, 0, 0, 0.2);box-shadow:inset 0 1px rgba(255, 255, 255, 0.5), 0 0 2px rgba(0, 0, 0, 0.2);-webkit-transition:left 0.15s ease-out;-moz-transition:left 0.15s ease-out;-o-transition:left 0.15s ease-out;transition:left 0.15s ease-out}.sq_option_content_small{clear:both;padding:0px 0;height:20px}.sq_option_content span.sq_option_info{display:block;font-size:15px;margin-top:30px}.sq_option_content > span.sq_option_info_small{line-height:20px;font-size:12px;color:#777}.sq_option_content_small .sq_switch{margin:0px 9px 0 0;height:18px;width:60px}.sq_option_content_small .sq_switch-label{width:28px;line-height:17px;font-size:9px}.sq_option_content_small .sq_switch-input:checked + .sq_switch-label-on ~ .sq_switch-selection{left:31px}.sq_option_content_small .sq_switch-selection{top:1px;left:1px;width:28px;height:16px}.sq_option_content_small > span{font-size:12px !important}#sq_dashboard{font-family:Arial, sans-serif;position:relative;max-width:925px}#sq_dashboard .sq_icon,#sq_posts .sq_icon{display:block;float:left;margin:10px 11px 0 0;height:40px;width:33px;background:transparent url('../img/sprite.png') no-repeat;background-position:-47px -155px}#sq_dashboard #sq_dashboard_title,#sq_posts #sq_posts_title{font-size:36px;font-weight:normal;line-height:50px;color:#444444;margin:0;padding:5px;height:auto}#sq_dashboard #sq_dashboard_subtitle,#sq_posts #sq_posts_subtitle{font-size:18px;font-weight:normal;line-height:24px;color:#777;margin:0 0 20px 45px;padding-bottom:3px;height:auto}#sq_posts .wp-list-table td{vertical-align:middle}#sq_dashboard .sq_dashboard_box{width:900px;margin:10px auto 10px 0px;padding:0;background-color:transparent;box-shadow:0 5px 9px -6px #222}#sq_dashboard .sq_dashboard_box > div{width:900px;height:295px;border:1px solid #ddd;cursor:pointer}#sq_dashboard .sq_dashboard_assistant{background:transparent url('../img/dashboard_assistant.png') no-repeat}#sq_dashboard .sq_dashboard_analytics{background:transparent url('../img/dashboard_analytics.png') no-repeat}#sq_dashboard .sq_dashboard_audit{background:transparent url('../img/dashboard_audit.png') no-repeat}#sq_dashboard .sq_dashboard_research{background:transparent url('../img/dashboard_research.png') no-repeat}#sq_dashboard .sq_dashboard_audit #sq_audit_date{color:white;float:left;margin-top:254px;margin-left:26px;font-size:18px}#sq_dashboard .sq_dashboard_audit #sq_audit_error{color:white;float:left;max-width:277px;line-height:23px;margin-top:242px;margin-left:26px;font-size:16px}#sq_settings #sq_survey{display:block;width:600px;margin:40px auto;color:#777;font-size:16px;line-height:23px}#sq_settings #sq_survey .sq_survey_title{font-size:35px}#sq_settings #sq_survey ul{padding:0;margin:15px 0}#sq_settings #sq_survey li textarea{width:100%}#sq_settings #sq_survey li #sq_survey_submit{background-color:green;font-size:12px;font-weight:bold;color:white;width:100px;margin:0px auto 5px auto;padding:5px;position:relative;text-shadow:1px 1px #555;cursor:pointer}#sq_settings #sq_survey li #sq_survey_close{float:right;font-size:12px;cursor:pointer}@media only screen and (max-width: 1050px){#sq_settings_body fieldset{width:800px}#sq_settings_body fieldset legend{width:190px;height:auto;min-height:300px}#sq_settings_body fieldset > div{width:540px}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#sq_settings {
|
2 |
+
font-family: Arial, sans-serif;
|
3 |
+
position: relative;
|
4 |
+
}
|
5 |
+
|
6 |
+
#sq_settings .sq_icon{
|
7 |
+
display: block;
|
8 |
+
float: left;
|
9 |
+
margin: 10px 11px 0 0;
|
10 |
+
height: 40px;
|
11 |
+
width: 33px;
|
12 |
+
background: transparent url('../img/sprite.png') no-repeat;
|
13 |
+
background-position: -47px -155px;
|
14 |
+
}
|
15 |
+
#sq_settings #sq_settings_title{
|
16 |
+
display: table;
|
17 |
+
font-size: 36px;
|
18 |
+
font-weight: normal;
|
19 |
+
line-height: 49px;
|
20 |
+
color: #333;
|
21 |
+
margin: 0 15px 3px 0;
|
22 |
+
padding-top: 5px;
|
23 |
+
padding-bottom: 0px;
|
24 |
+
height: auto;
|
25 |
+
vertical-align: bottom;
|
26 |
+
text-shadow: 1px 1px white;
|
27 |
+
}
|
28 |
+
|
29 |
+
#sq_settings #sq_settings_title a,
|
30 |
+
#sq_settings #sq_settings_title input{
|
31 |
+
display: block;
|
32 |
+
float: left;
|
33 |
+
font-size: 15px;
|
34 |
+
font-weight: bold;
|
35 |
+
color: white;
|
36 |
+
background-color: #15b14a;
|
37 |
+
border: 1px solid white;
|
38 |
+
|
39 |
+
line-height: 25px;
|
40 |
+
padding: 5px 10px;
|
41 |
+
margin: 6px 0 0 0px;
|
42 |
+
text-decoration: none;
|
43 |
+
cursor: pointer;
|
44 |
+
}
|
45 |
+
|
46 |
+
#sq_settings .sq_login_link,
|
47 |
+
#sq_settings #sq_goto_newpost,
|
48 |
+
#sq_settings #sq_goto_dashboard,
|
49 |
+
#sq_settings #sq_settings_title #sq_goto_newpost,
|
50 |
+
#sq_settings #sq_settings_title #sq_goto_dashboard{
|
51 |
+
display: inline-block;
|
52 |
+
background-color: #FFF;
|
53 |
+
line-height: 35px;
|
54 |
+
color: #504310;
|
55 |
+
font-size: 15px;
|
56 |
+
text-shadow: 0.1em 0.1em #FFFF52;
|
57 |
+
background: #FFD424;
|
58 |
+
cursor: pointer;
|
59 |
+
border: 1px solid #F7A504;
|
60 |
+
|
61 |
+
font-weight: bold;
|
62 |
+
padding: 0px 10px;
|
63 |
+
margin: 6px 0 5px 6px;
|
64 |
+
width: 250px;
|
65 |
+
text-align: center;
|
66 |
+
text-decoration: none;
|
67 |
+
}
|
68 |
+
#sq_settings .sq_login_link{
|
69 |
+
margin: 0 auto;
|
70 |
+
width: 500px;
|
71 |
+
display: block;
|
72 |
+
}
|
73 |
+
#sq_settings #sq_goto_newpost,
|
74 |
+
#sq_settings #sq_goto_dashboard{
|
75 |
+
display: block;
|
76 |
+
font-size: 18px;
|
77 |
+
height: 20px;
|
78 |
+
margin: 6px auto;
|
79 |
+
padding: 5px 10px;
|
80 |
+
height: 35px;
|
81 |
+
|
82 |
+
}
|
83 |
+
|
84 |
+
#sq_settings #sq_login_success{
|
85 |
+
text-align: center;
|
86 |
+
font-size: 18px;
|
87 |
+
padding: 14px 0;
|
88 |
+
margin: 15px auto;
|
89 |
+
color: #008000;
|
90 |
+
}
|
91 |
+
#sq_settings #sq_login_success img{
|
92 |
+
margin: 30px auto 8px auto;
|
93 |
+
}
|
94 |
+
#sq_settings #sq_login_success ul{
|
95 |
+
padding: 0;
|
96 |
+
margin: 0;
|
97 |
+
}
|
98 |
+
#sq_settings #sq_login_success li{
|
99 |
+
text-align: left;
|
100 |
+
font-size: 13px;
|
101 |
+
padding: 10px;
|
102 |
+
margin: 0 7px;
|
103 |
+
}
|
104 |
+
|
105 |
+
/**************************** LOGIN **********************************/
|
106 |
+
#sq_settings_login{
|
107 |
+
width: 100% !important;
|
108 |
+
}
|
109 |
+
#sq_settings_login #sq_blocklogin label{
|
110 |
+
width: 80px;
|
111 |
+
}
|
112 |
+
#sq_settings_login .sq_box{
|
113 |
+
max-width: 540px;
|
114 |
+
min-width: 500px;
|
115 |
+
background: #f0f0f0 url('../img/settings/login.jpg') 0px 0px no-repeat;
|
116 |
+
border: 1px solid #ddd;
|
117 |
+
font-size: 1.1em;
|
118 |
+
margin: 70px auto;
|
119 |
+
padding: 1em;
|
120 |
+
font-family: Arial,Verdana,Helvetica,sans-serif;
|
121 |
+
box-shadow: 0 5px 9px -5px #222;
|
122 |
+
text-align: center;
|
123 |
+
|
124 |
+
}
|
125 |
+
#sq_settings_login .sq_login_done{
|
126 |
+
background: #f0f0f0 url('../img/settings/login_done.jpg') 0px 0px no-repeat;
|
127 |
+
}
|
128 |
+
#sq_settings_login .sq_box .sq_header{
|
129 |
+
color: #11a5c1;
|
130 |
+
font-size: 28px;
|
131 |
+
font-weight: bold;
|
132 |
+
margin: 0;
|
133 |
+
padding: 5px 0;
|
134 |
+
line-height: 29px;
|
135 |
+
text-shadow: 1px 2px white;
|
136 |
+
}
|
137 |
+
#sq_settings_login .sq_login_done .sq_header{
|
138 |
+
font-size: 24px;
|
139 |
+
}
|
140 |
+
|
141 |
+
#sq_settings_login #sq_blocklogin ul li{
|
142 |
+
width: 500px !important;
|
143 |
+
}
|
144 |
+
#sq_settings_login #sq_blocklogin ul li input[type=text],
|
145 |
+
#sq_settings_login #sq_blocklogin ul li input[type=password]{
|
146 |
+
min-width: 250px;
|
147 |
+
}
|
148 |
+
|
149 |
+
#sq_settings_login #sq_blocklogin #sq_register_email{
|
150 |
+
width: 500px;
|
151 |
+
}
|
152 |
+
#sq_settings_login #sq_blocklogin #sq_register_email input[type=text]{
|
153 |
+
min-width: 250px;
|
154 |
+
}
|
155 |
+
|
156 |
+
/**************************** AFFILIATE **********************************/
|
157 |
+
#sq_settings .sq_settings_affiliate_bigtitle{
|
158 |
+
font-size: 26px !important;
|
159 |
+
margin: 0;
|
160 |
+
padding: 5px 0;
|
161 |
+
}
|
162 |
+
|
163 |
+
#sq_settings .sq_settings_affiliate_bigbutton{
|
164 |
+
margin-bottom:35px;
|
165 |
+
text-align: center;
|
166 |
+
}
|
167 |
+
#sq_settings .sq_settings_affiliate_bigbutton input{
|
168 |
+
padding: 15px !important;
|
169 |
+
font-size: 18px !important;
|
170 |
+
cursor: pointer;
|
171 |
+
}
|
172 |
+
#sq_settings .sq_settings_affiliate_bigbutton span{
|
173 |
+
display: block;
|
174 |
+
font-size: 18px;
|
175 |
+
color: #20bc49;
|
176 |
+
font-weight: bold;
|
177 |
+
margin: 20px 0 0 0;
|
178 |
+
}
|
179 |
+
#sq_settings .sq_settings_affiliate_info{
|
180 |
+
margin-bottom: 35px;
|
181 |
+
}
|
182 |
+
#sq_settings .sq_settings_affiliate_info li{
|
183 |
+
margin-left: 16px;
|
184 |
+
font-weight: bold;
|
185 |
+
font-size: 14px;
|
186 |
+
line-height: 20px;
|
187 |
+
}
|
188 |
+
#sq_settings .sq_affiliate_banner{
|
189 |
+
display:block;
|
190 |
+
margin-bottom:20px;
|
191 |
+
font-weight: normal;
|
192 |
+
font-size: 12px;
|
193 |
+
line-height: 20px;
|
194 |
+
}
|
195 |
+
#sq_settings .sq_settings_info{
|
196 |
+
text-align: left;
|
197 |
+
}
|
198 |
+
|
199 |
+
/****************************HOW TO **********************************/
|
200 |
+
#sq_settings #sq_settings_howto{
|
201 |
+
font-family: 'Segoe UI', Arial, sans-serif;
|
202 |
+
position: relative;
|
203 |
+
background: #F3F8FD url('../img/settings/header_stars.png') no-repeat;
|
204 |
+
background-position: center 90px;
|
205 |
+
border: 2px solid #F1F2F4;
|
206 |
+
padding: 10px;
|
207 |
+
margin: 10px auto 20px auto;
|
208 |
+
min-height: 650px;
|
209 |
+
width: 740px;
|
210 |
+
text-align: center;
|
211 |
+
}
|
212 |
+
#sq_settings #sq_settings_howto #sq_settings_howto_title{
|
213 |
+
display: block;
|
214 |
+
width: 100%;
|
215 |
+
font-size: 28px;
|
216 |
+
font-weight: bold;
|
217 |
+
line-height: 39px;
|
218 |
+
color: #11A5C1;
|
219 |
+
margin: 0 0 10px 0;
|
220 |
+
padding-bottom: 5px;
|
221 |
+
text-align: center;
|
222 |
+
text-shadow: 1px 1px white;
|
223 |
+
height: auto;
|
224 |
+
}
|
225 |
+
#sq_settings #sq_settings_howto #sq_settings_howto_body{
|
226 |
+
font-size: 20px;
|
227 |
+
line-height: 27px;
|
228 |
+
color: #A8A8A8;
|
229 |
+
padding: 5px;
|
230 |
+
text-shadow: 1px 1px white;
|
231 |
+
}
|
232 |
+
#sq_settings #sq_settings_howto #sq_settings_howto_body p span{
|
233 |
+
display: block;
|
234 |
+
font-size: 17px;
|
235 |
+
color: #333;
|
236 |
+
}
|
237 |
+
|
238 |
+
#sq_settings #sq_settings_title #sq_settings_howto_close{
|
239 |
+
display: inline-block;
|
240 |
+
font-size: 12px;
|
241 |
+
color: blue;
|
242 |
+
font-weight: normal;
|
243 |
+
line-height: 30px;
|
244 |
+
cursor: pointer;
|
245 |
+
}
|
246 |
+
|
247 |
+
/************************* STATUS ****************************/
|
248 |
+
#sq_settings .sq_user_title{
|
249 |
+
color: #1d9ed4 !important;
|
250 |
+
font-size: 26px;
|
251 |
+
margin: 0;
|
252 |
+
padding: 5px 0 !important;
|
253 |
+
text-align: left;
|
254 |
+
}
|
255 |
+
#sq_settings #sq_user_stats_list li{
|
256 |
+
margin: 0;
|
257 |
+
padding: 3px 0 3px 24px;
|
258 |
+
line-height: 25px;
|
259 |
+
font-size: 14px;
|
260 |
+
}
|
261 |
+
#sq_settings #sq_user_stats_list li strong{
|
262 |
+
color: #20bc49;
|
263 |
+
font-size: 16px;
|
264 |
+
}
|
265 |
+
#sq_settings #sq_user_info .sq_settings_info{
|
266 |
+
color: #333;
|
267 |
+
padding-top: 15px;
|
268 |
+
text-align: left;
|
269 |
+
}
|
270 |
+
#sq_settings #sq_user_info .sq_settings_info a{
|
271 |
+
font-weight: bold;
|
272 |
+
}
|
273 |
+
#sq_settings #sq_user_info .sq_button a{
|
274 |
+
clear: both;
|
275 |
+
display: block;
|
276 |
+
float: right;
|
277 |
+
font-size: 15px;
|
278 |
+
font-weight: bold;
|
279 |
+
color: white;
|
280 |
+
background-color: #20bc49;
|
281 |
+
border: 1px solid white;
|
282 |
+
line-height: 25px;
|
283 |
+
padding: 5px 10px;
|
284 |
+
margin: 20px 0 0 20px;
|
285 |
+
text-decoration: none;
|
286 |
+
text-shadow: 1px 1px #333;
|
287 |
+
cursor: pointer;
|
288 |
+
}
|
289 |
+
/**************************************************************/
|
290 |
+
#sq_settings #sq_userinfo{
|
291 |
+
color: #333;
|
292 |
+
font-size: 14px;
|
293 |
+
font-weight: normal;
|
294 |
+
min-height: 500px;
|
295 |
+
margin: 0 15px 5px 0;
|
296 |
+
padding: 0px;
|
297 |
+
text-shadow: 1px 1px white;
|
298 |
+
}
|
299 |
+
#sq_settings #sq_userinfo li{
|
300 |
+
padding: 10px;
|
301 |
+
}
|
302 |
+
.sq_userinfo fieldset{
|
303 |
+
float: none !important;
|
304 |
+
}
|
305 |
+
|
306 |
+
|
307 |
+
/**************************************************************/
|
308 |
+
#sq_settings #sq_settings_body{
|
309 |
+
display: block;
|
310 |
+
font-size: 12px;
|
311 |
+
color: #333;
|
312 |
+
line-height: 16px;
|
313 |
+
text-align: left;
|
314 |
+
margin-top: 0px;
|
315 |
+
}
|
316 |
+
#sq_settings_body #sq_settings_left,
|
317 |
+
#sq_settings_body #sq_settings_right{
|
318 |
+
float: left;
|
319 |
+
}
|
320 |
+
#sq_settings_body #sq_settings_submit{
|
321 |
+
|
322 |
+
clear: both;
|
323 |
+
}
|
324 |
+
|
325 |
+
#sq_settings_body fieldset{
|
326 |
+
float: left;
|
327 |
+
clear: both;
|
328 |
+
width: 900px;
|
329 |
+
|
330 |
+
background: #fcfcfc;
|
331 |
+
border: 1px solid #ddd;
|
332 |
+
font-size: 1.1em;
|
333 |
+
margin: 10px auto;
|
334 |
+
padding: 0;
|
335 |
+
|
336 |
+
font-family: Arial,Verdana,Helvetica,sans-serif;
|
337 |
+
|
338 |
+
text-shadow: 1px 1px white;
|
339 |
+
box-shadow: 0 5px 9px -6px #222;
|
340 |
+
}
|
341 |
+
#sq_settings_body fieldset > div{
|
342 |
+
float: left;
|
343 |
+
padding: 20px 0 0 0px;
|
344 |
+
width: 550px;
|
345 |
+
}
|
346 |
+
#sq_settings_body fieldset legend{
|
347 |
+
float: left;
|
348 |
+
width: 280px;
|
349 |
+
height: 365px;
|
350 |
+
background: #161a16 repeat-x top left;
|
351 |
+
border: none;
|
352 |
+
font-weight: normal;
|
353 |
+
font-size: 14px;
|
354 |
+
margin: 0 10px 0 0;
|
355 |
+
padding: 25px;
|
356 |
+
line-height: 20px;
|
357 |
+
text-align: left;
|
358 |
+
color: #fff;
|
359 |
+
text-shadow: none;
|
360 |
+
}
|
361 |
+
#sq_settings_body fieldset legend.sq_legend_small{
|
362 |
+
min-height: 250px;
|
363 |
+
height: auto;
|
364 |
+
}
|
365 |
+
#sq_settings_body fieldset legend.sq_legend_medium{
|
366 |
+
min-height: 430px;
|
367 |
+
height: auto;
|
368 |
+
}
|
369 |
+
#sq_settings_body fieldset legend.sq_legend_big{
|
370 |
+
min-height: 750px;
|
371 |
+
height: auto;
|
372 |
+
}
|
373 |
+
#sq_settings_body fieldset legend > span {
|
374 |
+
display: block;
|
375 |
+
font-size: 14px;
|
376 |
+
color: #ccc;
|
377 |
+
margin: 25px 0 10px 0;
|
378 |
+
clear: both;
|
379 |
+
}
|
380 |
+
|
381 |
+
#sq_settings_body fieldset legend > span strong{
|
382 |
+
color: #FFD6AD;
|
383 |
+
}
|
384 |
+
|
385 |
+
#sq_settings_body fieldset legend .sq_legend_title{
|
386 |
+
font-weight: lighter;
|
387 |
+
color: #f9f9f9;
|
388 |
+
font-size: 23px;
|
389 |
+
line-height: 30px;
|
390 |
+
margin-top: 0;
|
391 |
+
}
|
392 |
+
|
393 |
+
#sq_settings_body fieldset legend > span a{
|
394 |
+
color: #5dabcf;
|
395 |
+
font-size: 14px;
|
396 |
+
font-weight: normal;
|
397 |
+
text-decoration: none;
|
398 |
+
text-shadow: 1px 1px #555;
|
399 |
+
}
|
400 |
+
#sq_settings_body fieldset legend .sq_option_content{
|
401 |
+
width: 123px;
|
402 |
+
margin: 0 auto;
|
403 |
+
}
|
404 |
+
|
405 |
+
#sq_settings_body span.sq_settings_info {
|
406 |
+
clear: both;
|
407 |
+
display: block;
|
408 |
+
font-size: 10px;
|
409 |
+
padding-right: 10px;
|
410 |
+
width: 100%;
|
411 |
+
text-align: center;
|
412 |
+
}
|
413 |
+
#sq_settings_body ul.sq_settings_info > span{
|
414 |
+
display: block;
|
415 |
+
color: #777;
|
416 |
+
font-size: 16px;
|
417 |
+
font-weight: bold;
|
418 |
+
margin-bottom: 22px;
|
419 |
+
list-style: none;
|
420 |
+
}
|
421 |
+
#sq_settings_body ul.sq_settings_info > li {
|
422 |
+
margin: 15px 10px;
|
423 |
+
font-size: 12px;
|
424 |
+
font-weight: normal;
|
425 |
+
color: #777;
|
426 |
+
}
|
427 |
+
|
428 |
+
#sq_settings_body fieldset p{
|
429 |
+
vertical-align: top;
|
430 |
+
margin: 5px 0 5px 0;
|
431 |
+
padding: 0 0 0.5em 0;
|
432 |
+
font-weight: normal;
|
433 |
+
font-size: 15px;
|
434 |
+
line-height: 23px;
|
435 |
+
}
|
436 |
+
|
437 |
+
#sq_settings_body fieldset .withborder{
|
438 |
+
clear: both;
|
439 |
+
vertical-align: top;
|
440 |
+
min-height: 40px;
|
441 |
+
|
442 |
+
margin: 7px 0 10px 0;
|
443 |
+
padding: 0 0 10px 0;
|
444 |
+
|
445 |
+
font-weight: normal;
|
446 |
+
font-size: 12px;
|
447 |
+
border-bottom: 1px dashed #CCC;
|
448 |
+
}
|
449 |
+
#sq_settings_body fieldset .withbordertop{
|
450 |
+
border-top: 1px dashed #CCC;
|
451 |
+
padding-top: 15px;
|
452 |
+
}
|
453 |
+
#sq_settings_body fieldset .withcode{
|
454 |
+
min-height: 85px;
|
455 |
+
}
|
456 |
+
#sq_settings_body fieldset .withcode strong{
|
457 |
+
display: block;
|
458 |
+
font-size: 10px;
|
459 |
+
color: #999;
|
460 |
+
margin: 10px 0 0px 65px;
|
461 |
+
}
|
462 |
+
#sq_settings_body fieldset .withcode input[type=text]{
|
463 |
+
display: block;
|
464 |
+
width: 360px;
|
465 |
+
font-size: 12px;
|
466 |
+
margin: 0 0 4px 0;
|
467 |
+
border: 1px solid #20bc49;
|
468 |
+
background-color: lightgoldenrodyellow;
|
469 |
+
}
|
470 |
+
|
471 |
+
#sq_settings_body fieldset #sq_twitter_account{
|
472 |
+
display: block;
|
473 |
+
font-weight: bold;
|
474 |
+
font-size: 13px;
|
475 |
+
color: #f7681a;
|
476 |
+
margin: 15px auto;
|
477 |
+
width: 350px;
|
478 |
+
}
|
479 |
+
|
480 |
+
#sq_settings_body fieldset .sq_icon {
|
481 |
+
display: block;
|
482 |
+
float: left;
|
483 |
+
background: transparent url('../img/sprite.png') no-repeat;
|
484 |
+
margin: 0 10px 0 0;
|
485 |
+
color: brown;
|
486 |
+
width: 55px;
|
487 |
+
height: 50px;
|
488 |
+
}
|
489 |
+
#sq_settings_body fieldset .sq_icon_googleplus {
|
490 |
+
background-position: -152px -279px;
|
491 |
+
width: 74px;
|
492 |
+
height: 70px;
|
493 |
+
}
|
494 |
+
#sq_settings_body fieldset .sq_icon_twitter {
|
495 |
+
background-position: -371px -279px;
|
496 |
+
width: 74px;
|
497 |
+
height: 70px;
|
498 |
+
}
|
499 |
+
#sq_settings_body fieldset .sq_icon_facebook {
|
500 |
+
background-position: -5px -279px;
|
501 |
+
width: 74px;
|
502 |
+
height: 70px;
|
503 |
+
}
|
504 |
+
#sq_settings_body fieldset .sq_icon_linkedin {
|
505 |
+
background-position: -78px -279px;
|
506 |
+
width: 74px;
|
507 |
+
height: 70px;
|
508 |
+
}
|
509 |
+
|
510 |
+
#sq_settings_body fieldset .sq_icon_googlewt {
|
511 |
+
background-position: -112px -100px;
|
512 |
+
}
|
513 |
+
#sq_settings_body fieldset .sq_icon_googleanalytics {
|
514 |
+
background-position: 0px -100px;
|
515 |
+
}
|
516 |
+
#sq_settings_body fieldset .sq_icon_facebookinsights {
|
517 |
+
background-position: -59px -100px;
|
518 |
+
}
|
519 |
+
#sq_settings_body fieldset .sq_icon_bingwt {
|
520 |
+
background-position: -165px -100px;
|
521 |
+
}
|
522 |
+
#sq_settings_body fieldset .sq_icon_alexat{
|
523 |
+
background-position: -270px -100px;
|
524 |
+
}
|
525 |
+
#sq_settings_body fieldset .sq_icon_pinterest {
|
526 |
+
background-position: -320px -100px;
|
527 |
+
}
|
528 |
+
|
529 |
+
#sq_settings_body fieldset p input,
|
530 |
+
#sq_settings_body fieldset p textarea,
|
531 |
+
#sq_settings_body fieldset p select{
|
532 |
+
margin-left: 15px;
|
533 |
+
padding: 4px;
|
534 |
+
border: 1px solid #20bc49;
|
535 |
+
background-color: lightgoldenrodyellow;
|
536 |
+
max-width: 415px;
|
537 |
+
}
|
538 |
+
|
539 |
+
#sq_settings_body input[type=submit]{
|
540 |
+
font-size: 15px;
|
541 |
+
font-weight: bold;
|
542 |
+
line-height: 30px;
|
543 |
+
padding: 1px 10px;
|
544 |
+
margin-left: 11px;
|
545 |
+
margin-top: 5px;
|
546 |
+
background-color: #15b14a;
|
547 |
+
border: none;
|
548 |
+
color: white;
|
549 |
+
}
|
550 |
+
|
551 |
+
#sq_settings_body .customize,
|
552 |
+
#sq_settings_body ._customize{
|
553 |
+
font-size: 12px;
|
554 |
+
font-weight: bold;
|
555 |
+
color: blue;
|
556 |
+
cursor: pointer;
|
557 |
+
}
|
558 |
+
#sq_settings_body ._customize{
|
559 |
+
margin-top: 10px;
|
560 |
+
}
|
561 |
+
|
562 |
+
#sq_settings_body .sq_custom_title legend{
|
563 |
+
height: 415px;
|
564 |
+
}
|
565 |
+
|
566 |
+
@media only screen and (max-width: 1800px){
|
567 |
+
|
568 |
+
|
569 |
+
#sq_settings_body #sq_settings_left,
|
570 |
+
#sq_settings_body #sq_settings_right{
|
571 |
+
float: none;
|
572 |
+
|
573 |
+
}
|
574 |
+
#sq_settings_body #sq_settings_left fieldset,
|
575 |
+
#sq_settings_body #sq_settings_right fieldset{
|
576 |
+
margin: 10px auto 20px auto;
|
577 |
+
}
|
578 |
+
}
|
579 |
+
|
580 |
+
/************************** SWITCH ******************************/
|
581 |
+
.sq_option_content{
|
582 |
+
clear: both;
|
583 |
+
padding: 6px 0;
|
584 |
+
height: 30px;
|
585 |
+
}
|
586 |
+
.sq_option_content > span{
|
587 |
+
position: relative;
|
588 |
+
padding-top: 3px;
|
589 |
+
display: block;
|
590 |
+
vertical-align: middle;
|
591 |
+
line-height: 16px;
|
592 |
+
font-size: 12px;
|
593 |
+
text-shadow: 1px 1px #FFF;
|
594 |
+
}
|
595 |
+
|
596 |
+
.sq_switch {
|
597 |
+
float: left;
|
598 |
+
position: relative;
|
599 |
+
margin: 0px 9px 0 0;
|
600 |
+
|
601 |
+
height: 26px;
|
602 |
+
width: 120px;
|
603 |
+
border: 1px solid #e2ffd6;
|
604 |
+
background: rgba(0, 0, 0, 0.25);
|
605 |
+
-webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
|
606 |
+
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px rgba(255, 255, 255, 0.1);
|
607 |
+
}
|
608 |
+
.sq_switch-label {
|
609 |
+
position: relative;
|
610 |
+
z-index: 2;
|
611 |
+
float: left;
|
612 |
+
width: 58px;
|
613 |
+
line-height: 26px;
|
614 |
+
font-size: 11px;
|
615 |
+
color: rgba(255, 255, 255, 0.35);
|
616 |
+
text-align: center;
|
617 |
+
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.45);
|
618 |
+
cursor: pointer;
|
619 |
+
}
|
620 |
+
.sq_switch-label:active {
|
621 |
+
font-weight: bold;
|
622 |
+
|
623 |
+
}
|
624 |
+
.sq_switch-label-off {
|
625 |
+
padding-left: 2px;
|
626 |
+
}
|
627 |
+
.sq_switch-label-on {
|
628 |
+
padding-right: 2px;
|
629 |
+
}
|
630 |
+
|
631 |
+
.sq_switch-input {
|
632 |
+
display: none !important;
|
633 |
+
}
|
634 |
+
.sq_switch-input:checked + .sq_switch-label {
|
635 |
+
font-weight: bold;
|
636 |
+
color: rgba(0, 0, 0, 0.65);
|
637 |
+
text-shadow: 0px 1px rgba(255, 255, 255, 0.25);
|
638 |
+
-webkit-transition: 0.15s ease-out;
|
639 |
+
-moz-transition: 0.15s ease-out;
|
640 |
+
-o-transition: 0.15s ease-out;
|
641 |
+
transition: 0.15s ease-out;
|
642 |
+
}
|
643 |
+
.sq_switch-input:checked + .sq_switch-label-on ~ .sq_switch-selection {
|
644 |
+
/* Note: left: 50% doesn't transition in WebKit */
|
645 |
+
left: 60px;
|
646 |
+
background: lightgray;
|
647 |
+
}
|
648 |
+
.sq_switch-selection {
|
649 |
+
display: block;
|
650 |
+
position: absolute;
|
651 |
+
z-index: 1;
|
652 |
+
top: 2px;
|
653 |
+
left: 2px;
|
654 |
+
width: 58px;
|
655 |
+
height: 22px;
|
656 |
+
background: #51cb7b;
|
657 |
+
background-image: -webkit-linear-gradient(top, #9dd993, #51cb7b);
|
658 |
+
background-image: -moz-linear-gradient(top, #9dd993, #51cb7b);
|
659 |
+
background-image: -o-linear-gradient(top, #9dd993, #51cb7b);
|
660 |
+
-webkit-box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 0 2px rgba(0, 0, 0, 0.2);
|
661 |
+
box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 0 2px rgba(0, 0, 0, 0.2);
|
662 |
+
-webkit-transition: left 0.15s ease-out;
|
663 |
+
-moz-transition: left 0.15s ease-out;
|
664 |
+
-o-transition: left 0.15s ease-out;
|
665 |
+
transition: left 0.15s ease-out;
|
666 |
+
|
667 |
+
}
|
668 |
+
|
669 |
+
.sq_option_content_small{
|
670 |
+
clear: both;
|
671 |
+
padding: 0px 0;
|
672 |
+
max-height: 25px;
|
673 |
+
}
|
674 |
+
.sq_option_content_small a{
|
675 |
+
text-decoration: none;
|
676 |
+
color: #0573E8;
|
677 |
+
}
|
678 |
+
|
679 |
+
.sq_option_content span.sq_option_info{
|
680 |
+
display: block;
|
681 |
+
font-size: 15px;
|
682 |
+
margin-top: 30px;
|
683 |
+
}
|
684 |
+
.sq_option_content > span.sq_option_info_small{
|
685 |
+
line-height: 20px;
|
686 |
+
font-size: 12px;
|
687 |
+
color: #777;
|
688 |
+
}
|
689 |
+
.sq_option_content_small .sq_switch {
|
690 |
+
margin: 0px 9px 0 0;
|
691 |
+
height: 18px;
|
692 |
+
width: 60px;
|
693 |
+
}
|
694 |
+
.sq_option_content_small .sq_switch-label {
|
695 |
+
width: 28px;
|
696 |
+
line-height: 17px;
|
697 |
+
font-size: 9px;
|
698 |
+
}
|
699 |
+
.sq_option_content_small .sq_switch-input:checked + .sq_switch-label-on ~ .sq_switch-selection {
|
700 |
+
/* Note: left: 50% doesn't transition in WebKit */
|
701 |
+
left: 31px;
|
702 |
+
}
|
703 |
+
.sq_option_content_small .sq_switch-selection {
|
704 |
+
top: 1px;
|
705 |
+
left: 1px;
|
706 |
+
width: 28px;
|
707 |
+
height: 16px;
|
708 |
+
}
|
709 |
+
.sq_option_content_small > span{
|
710 |
+
font-size: 12px !important;
|
711 |
+
}
|
712 |
+
|
713 |
+
/***************************** DASHBOARD *************************************************/
|
714 |
+
#sq_dashboard {
|
715 |
+
font-family: Arial, sans-serif;
|
716 |
+
position: relative;
|
717 |
+
max-width: 925px;
|
718 |
+
}
|
719 |
+
#sq_dashboard .sq_icon,
|
720 |
+
#sq_posts .sq_icon{
|
721 |
+
display: block;
|
722 |
+
float: left;
|
723 |
+
margin: 10px 11px 0 0;
|
724 |
+
height: 40px;
|
725 |
+
width: 33px;
|
726 |
+
background: transparent url('../img/sprite.png') no-repeat;
|
727 |
+
background-position: -47px -155px;
|
728 |
+
}
|
729 |
+
|
730 |
+
#sq_dashboard #sq_dashboard_title,
|
731 |
+
#sq_posts #sq_posts_title{
|
732 |
+
font-size: 36px;
|
733 |
+
font-weight: normal;
|
734 |
+
line-height: 50px;
|
735 |
+
color: #444444;
|
736 |
+
margin: 0;
|
737 |
+
padding: 5px;
|
738 |
+
height: auto;
|
739 |
+
}
|
740 |
+
|
741 |
+
#sq_dashboard #sq_dashboard_subtitle,
|
742 |
+
#sq_posts #sq_posts_subtitle{
|
743 |
+
font-size: 18px;
|
744 |
+
font-weight: normal;
|
745 |
+
line-height: 24px;
|
746 |
+
color: #777;
|
747 |
+
margin: 0 0 20px 45px;
|
748 |
+
padding-bottom: 3px;
|
749 |
+
height: auto;
|
750 |
+
}
|
751 |
+
|
752 |
+
|
753 |
+
#sq_posts .wp-list-table td{
|
754 |
+
vertical-align: middle;
|
755 |
+
}
|
756 |
+
|
757 |
+
#sq_dashboard .sq_dashboard_box{
|
758 |
+
width: 900px;
|
759 |
+
margin: 10px auto 10px 0px;
|
760 |
+
padding: 0;
|
761 |
+
background-color: transparent;
|
762 |
+
box-shadow: 0 5px 9px -6px #222;
|
763 |
+
}
|
764 |
+
|
765 |
+
#sq_dashboard .sq_dashboard_box > div{
|
766 |
+
width: 900px;
|
767 |
+
height: 295px;
|
768 |
+
border: 1px solid #ddd;
|
769 |
+
cursor: pointer;
|
770 |
+
}
|
771 |
+
|
772 |
+
#sq_dashboard .sq_dashboard_assistant{
|
773 |
+
background: transparent url('../img/dashboard_assistant.png') no-repeat;
|
774 |
+
}
|
775 |
+
#sq_dashboard .sq_dashboard_analytics{
|
776 |
+
background: transparent url('../img/dashboard_analytics.png') no-repeat;
|
777 |
+
}
|
778 |
+
#sq_dashboard .sq_dashboard_audit{
|
779 |
+
background: transparent url('../img/dashboard_audit.png') no-repeat;
|
780 |
+
}
|
781 |
+
#sq_dashboard .sq_dashboard_research{
|
782 |
+
background: transparent url('../img/dashboard_research.png') no-repeat;
|
783 |
+
}
|
784 |
+
|
785 |
+
#sq_dashboard .sq_dashboard_audit #sq_audit_date{
|
786 |
+
color: white;
|
787 |
+
float: left;
|
788 |
+
margin-top: 254px;
|
789 |
+
margin-left: 26px;
|
790 |
+
font-size: 18px;
|
791 |
+
}
|
792 |
+
|
793 |
+
#sq_dashboard .sq_dashboard_audit #sq_audit_error {
|
794 |
+
color: white;
|
795 |
+
float: left;
|
796 |
+
max-width: 277px;
|
797 |
+
line-height: 23px;
|
798 |
+
margin-top: 242px;
|
799 |
+
margin-left: 26px;
|
800 |
+
font-size: 16px;
|
801 |
+
}
|
802 |
+
|
803 |
+
/************************** SURVEY ****************************************/
|
804 |
+
#sq_settings #sq_survey{
|
805 |
+
display: block;
|
806 |
+
max-width: 600px;
|
807 |
+
margin: 40px auto;
|
808 |
+
color: #777;
|
809 |
+
font-size: 16px;
|
810 |
+
line-height: 23px;
|
811 |
+
}
|
812 |
+
|
813 |
+
#sq_settings #sq_survey .sq_survey_title{
|
814 |
+
font-size: 35px;
|
815 |
+
}
|
816 |
+
|
817 |
+
#sq_settings #sq_survey ul{
|
818 |
+
padding: 0;
|
819 |
+
margin: 15px 0;
|
820 |
+
}
|
821 |
+
|
822 |
+
#sq_settings #sq_survey li textarea{
|
823 |
+
width: 100%;
|
824 |
+
}
|
825 |
+
|
826 |
+
#sq_settings #sq_survey li #sq_survey_submit{
|
827 |
+
background-color: #20bc49;
|
828 |
+
font-size: 12px;
|
829 |
+
font-weight: bold;
|
830 |
+
color: white;
|
831 |
+
width: 100px;
|
832 |
+
margin: 0px auto 5px auto;
|
833 |
+
padding: 5px;
|
834 |
+
position: relative;
|
835 |
+
text-shadow: 1px 1px #555;
|
836 |
+
cursor: pointer;
|
837 |
+
}
|
838 |
+
|
839 |
+
#sq_settings #sq_survey li #sq_survey_close{
|
840 |
+
float: right;
|
841 |
+
font-size: 12px;
|
842 |
+
cursor: pointer;
|
843 |
+
}
|
844 |
+
|
845 |
+
#sq_left{
|
846 |
+
float: left;
|
847 |
+
clear: left;
|
848 |
+
}
|
849 |
+
|
850 |
+
|
851 |
+
.sq_helpside{
|
852 |
+
float: right;
|
853 |
+
clear: right;
|
854 |
+
width: 240px;
|
855 |
+
min-height: 100%;
|
856 |
+
margin: 10px;
|
857 |
+
padding: 0;
|
858 |
+
overflow: hidden;
|
859 |
+
}
|
860 |
+
|
861 |
+
.sq_helpside > div{
|
862 |
+
border: 1px solid #ccc;
|
863 |
+
background-color: #fcfcfc;
|
864 |
+
padding: 10px;
|
865 |
+
min-height: 150px;
|
866 |
+
margin-bottom: 10px;
|
867 |
+
box-shadow: 0px 1px 1px 0 #ccc;
|
868 |
+
}
|
869 |
+
|
870 |
+
|
871 |
+
@media only screen and (max-width: 1050px){
|
872 |
+
#sq_settings_body fieldset{
|
873 |
+
width: 800px;
|
874 |
+
}
|
875 |
+
|
876 |
+
#sq_settings_body fieldset legend{
|
877 |
+
width: 190px;
|
878 |
+
height: auto;
|
879 |
+
min-height: 250px;
|
880 |
+
}
|
881 |
+
|
882 |
+
|
883 |
+
#sq_settings_body fieldset > div{
|
884 |
+
width: 540px;
|
885 |
+
}
|
886 |
+
|
887 |
+
|
888 |
+
|
889 |
+
}
|
890 |
+
|
themes/default/css/sq_post.css
CHANGED
@@ -1 +1,398 @@
|
|
1 |
-
#postsquirrly{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#postsquirrly{
|
2 |
+
background-color: transparent;
|
3 |
+
background-image: none;
|
4 |
+
border: none;
|
5 |
+
margin: 0 0 10px 0;
|
6 |
+
padding: 2px;
|
7 |
+
box-shadow: none;
|
8 |
+
-moz-box-shadow: none;
|
9 |
+
-webkit-box-shadow: none;
|
10 |
+
}
|
11 |
+
.sq_push{
|
12 |
+
position: absolute;
|
13 |
+
top: -7px;
|
14 |
+
left: 30px;
|
15 |
+
font-size: 10px;
|
16 |
+
margin: 0;
|
17 |
+
border: 1px solid #333;
|
18 |
+
background-color: darkred;
|
19 |
+
border-radius: 50px;
|
20 |
+
-webkit-border-radius: 50px;
|
21 |
+
-moz-border-radius: 50px;
|
22 |
+
padding: 0px 1px;
|
23 |
+
width: 14px;
|
24 |
+
text-shadow: 1px 1px #333;
|
25 |
+
color: #fff;
|
26 |
+
font-family: 'Megalopolis',Arial,Helvetica,Sans-Serif;
|
27 |
+
text-align: center;
|
28 |
+
}
|
29 |
+
|
30 |
+
#sq_options_dasboard .sq_push{
|
31 |
+
left: 36px;
|
32 |
+
}
|
33 |
+
|
34 |
+
#postsquirrly div,
|
35 |
+
#postsquirrly p,
|
36 |
+
#postsquirrly td,
|
37 |
+
#postsquirrly .inside {
|
38 |
+
margin: 0;
|
39 |
+
padding: 0;
|
40 |
+
}
|
41 |
+
|
42 |
+
#postsquirrly .hndle,#postsquirrly .handlediv{
|
43 |
+
display: none;
|
44 |
+
}
|
45 |
+
|
46 |
+
#postsquirrly .sq_header{
|
47 |
+
color: #a0a0a0;
|
48 |
+
font-size: 14px;
|
49 |
+
font-weight: normal;
|
50 |
+
|
51 |
+
padding: 4px 10px;
|
52 |
+
margin: 0;
|
53 |
+
|
54 |
+
border-bottom: 1px dashed #d1d1d1;
|
55 |
+
|
56 |
+
box-shadow: 0px 1px 2px -1px #ccc;
|
57 |
+
-moz-box-shadow:0px 1px 2px -1px #ccc;
|
58 |
+
-webkit-box-shadow:0px 1px 2px -1px #ccc;
|
59 |
+
}
|
60 |
+
|
61 |
+
#postsquirrly .sq_box{
|
62 |
+
background-color: #fcfcfc;
|
63 |
+
margin-bottom: 15px;
|
64 |
+
|
65 |
+
box-shadow: 0px 1px 2px -1px #444;
|
66 |
+
-moz-box-shadow: 0px 1px 2px -1px #444;
|
67 |
+
-webkit-box-shadow: 0px 1px 2px -1px #444;
|
68 |
+
}
|
69 |
+
|
70 |
+
#postsquirrly .sq_box:before{
|
71 |
+
display: block;
|
72 |
+
content: " ";
|
73 |
+
background: transparent url('../img/sprite.png') repeat-x;
|
74 |
+
background-position: 0 -360px;
|
75 |
+
width: 100%;
|
76 |
+
height: 5px;
|
77 |
+
border-radius: 2px 2px 0 0;
|
78 |
+
opacity: 0.3;
|
79 |
+
}
|
80 |
+
|
81 |
+
#postsquirrly .sq_box:hover:before{
|
82 |
+
opacity: 0.8;
|
83 |
+
}
|
84 |
+
|
85 |
+
#postsquirrly .sq_box:hover .sq_header{
|
86 |
+
color: #444;
|
87 |
+
}
|
88 |
+
|
89 |
+
/* FOR LOADING*/
|
90 |
+
#sq_blocklogin{
|
91 |
+
background-color: lightYellow;
|
92 |
+
}
|
93 |
+
#sq_blocklogin input,
|
94 |
+
#sq_blocklogin textarea
|
95 |
+
#sq_blocklogin {
|
96 |
+
|
97 |
+
font-family: Arial, Helvetica, sans-serif;
|
98 |
+
font-size: 14px;
|
99 |
+
height: 30px;
|
100 |
+
padding: 6px;
|
101 |
+
}
|
102 |
+
#sq_blocklogin #sq_login{
|
103 |
+
cursor: pointer;
|
104 |
+
background-color: #20bc49;
|
105 |
+
color: white;
|
106 |
+
border: none;
|
107 |
+
min-width: 100px;
|
108 |
+
min-height: 35px;
|
109 |
+
border-radius: 10px;
|
110 |
+
-moz-border-radius: 10px;
|
111 |
+
-webkit-border-radius: 10px;
|
112 |
+
}
|
113 |
+
#sq_blocklogin label{
|
114 |
+
margin-top: 0px;
|
115 |
+
margin-right: 2px;
|
116 |
+
width: 72px;
|
117 |
+
display: inline-block;
|
118 |
+
}
|
119 |
+
#sq_blocklogin ul li{
|
120 |
+
position: relative;
|
121 |
+
display: table;
|
122 |
+
width: 260px;
|
123 |
+
|
124 |
+
font-family: "Lucida Grande",Arial, Helvetica, sans-serif;
|
125 |
+
font-size: 12px;
|
126 |
+
padding: 4px 0px 4px 5px;
|
127 |
+
margin: 5px 0px;
|
128 |
+
line-height: 16px;
|
129 |
+
text-shadow: 1px 1px white;
|
130 |
+
text-align: center;
|
131 |
+
}
|
132 |
+
|
133 |
+
#sq_blocklogin .sq_info{
|
134 |
+
font-size: 13px;
|
135 |
+
text-align: center;
|
136 |
+
}
|
137 |
+
#sq_blocklogin .sq_error{
|
138 |
+
font-size: 12px;
|
139 |
+
text-align: center;
|
140 |
+
color: red;
|
141 |
+
margin-top: 5px;
|
142 |
+
margin-bottom: 5px;
|
143 |
+
}
|
144 |
+
#sq_blocklogin #sq_register{
|
145 |
+
margin: 5px 0;
|
146 |
+
font-size: 16px;
|
147 |
+
font-weight: bold;
|
148 |
+
}
|
149 |
+
#sq_blocklogin #sq_register_wait{
|
150 |
+
display: inline-block;
|
151 |
+
margin-left: 2px;
|
152 |
+
}
|
153 |
+
#sq_blocklogin #sq_autologin{
|
154 |
+
padding: 20px 10px 5px 10px;
|
155 |
+
}
|
156 |
+
|
157 |
+
#sq_blocklogin #sq_autologin #sq_loginimage{
|
158 |
+
display: block;
|
159 |
+
background-color: #20bc49;
|
160 |
+
height: auto;
|
161 |
+
width: 100px;
|
162 |
+
font-size: 15px;
|
163 |
+
color: white;
|
164 |
+
font-weight: bold;
|
165 |
+
margin: 13px;
|
166 |
+
padding: 10px 0;
|
167 |
+
text-decoration: none;
|
168 |
+
border-radius: 10px;
|
169 |
+
-moz-border-radius: 10px;
|
170 |
+
-webkit-border-radius: 10px;
|
171 |
+
cursor: pointer;
|
172 |
+
}
|
173 |
+
#sq_blocklogin #sq_register_email{
|
174 |
+
text-align: center;
|
175 |
+
width: 250px;
|
176 |
+
height: 45px;
|
177 |
+
margin: 0px auto;
|
178 |
+
margin-top: 14px;
|
179 |
+
margin-bottom: 11px;
|
180 |
+
}
|
181 |
+
#sq_blocklogin #sq_register_email #sq_email{
|
182 |
+
width: 160px !important ;
|
183 |
+
border: 2px solid #20bc49;
|
184 |
+
}
|
185 |
+
|
186 |
+
#sq_blocklogin #sq_signin{
|
187 |
+
color: #11a5c1;
|
188 |
+
margin: 5px;
|
189 |
+
cursor: pointer;
|
190 |
+
}
|
191 |
+
/*******************************************/
|
192 |
+
#sq_options{
|
193 |
+
float: right;
|
194 |
+
position: relative;
|
195 |
+
height: 40px;
|
196 |
+
margin: 0;
|
197 |
+
padding: 0;
|
198 |
+
z-index: 1003;
|
199 |
+
}
|
200 |
+
#postsquirrly #sq_options{
|
201 |
+
float: none;
|
202 |
+
}
|
203 |
+
|
204 |
+
#sq_options > ul{
|
205 |
+
margin: 10px 0;
|
206 |
+
}
|
207 |
+
#sq_options > ul > li{
|
208 |
+
position: relative;
|
209 |
+
width: 100px;
|
210 |
+
float: right;
|
211 |
+
|
212 |
+
color: #444444;
|
213 |
+
font-family: Segoe UI;
|
214 |
+
font-size: 14px;
|
215 |
+
|
216 |
+
margin: 0 auto;
|
217 |
+
padding: 0px 0 0 0px;
|
218 |
+
cursor: pointer;
|
219 |
+
}
|
220 |
+
#sq_options li#sq_options_support{
|
221 |
+
margin-left: 27px;
|
222 |
+
width: 105px;
|
223 |
+
}
|
224 |
+
#sq_options_support .sq_text,
|
225 |
+
#sq_options_dasboard .sq_text a{
|
226 |
+
display: block;
|
227 |
+
float: left;
|
228 |
+
|
229 |
+
font-family: Segoe UI;
|
230 |
+
font-size: 12px;
|
231 |
+
color: #333;
|
232 |
+
text-decoration: none;
|
233 |
+
|
234 |
+
padding: 3px 5px;
|
235 |
+
border: 1px solid #ccc;
|
236 |
+
border-radius: 5px;
|
237 |
+
|
238 |
+
background: white;
|
239 |
+
background: -moz-linear-gradient(top, white, #f5f5f5);
|
240 |
+
background: -webkit-gradient(linear, left top, left bottom, from(white), to(#f5f5f5));
|
241 |
+
}
|
242 |
+
#sq_options .sq_icon{
|
243 |
+
display: block;
|
244 |
+
float: left;
|
245 |
+
|
246 |
+
margin-top: -8px;
|
247 |
+
margin-left: 3px;
|
248 |
+
|
249 |
+
background: transparent url('../img/sprite.png') no-repeat;
|
250 |
+
}
|
251 |
+
#sq_options > ul > li#sq_options_feedback{
|
252 |
+
width: 30px;
|
253 |
+
margin-left: 2px;
|
254 |
+
}
|
255 |
+
#sq_options_feedback .sq_label_feedback_smiley{
|
256 |
+
display: block;
|
257 |
+
height: 37px;
|
258 |
+
width: 37px;
|
259 |
+
background: transparent url('../img/sprite.png') no-repeat;
|
260 |
+
border: none;
|
261 |
+
cursor: pointer;
|
262 |
+
}
|
263 |
+
#sq_options_feedback .sq_feedback_smiley{
|
264 |
+
display: none;
|
265 |
+
}
|
266 |
+
#sq_options_feedback .sq_label_feedback_0{background-position: -102px -154px !important;}
|
267 |
+
#sq_options_feedback .sq_label_feedback_1{background-position: -148px -154px !important;}
|
268 |
+
#sq_options_feedback .sq_label_feedback_2{background-position: -194px -154px !important;}
|
269 |
+
#sq_options_feedback .sq_label_feedback_3{background-position: -240px -154px !important;}
|
270 |
+
#sq_options_feedback .sq_label_feedback_4{background-position: -284px -154px !important;}
|
271 |
+
|
272 |
+
#sq_options_feedback .sq_icon{
|
273 |
+
height: 37px;
|
274 |
+
width: 35px;
|
275 |
+
background-position: -194px -154px;
|
276 |
+
}
|
277 |
+
#sq_options_support .sq_icon{
|
278 |
+
height: 37px;
|
279 |
+
width: 30px;
|
280 |
+
background-position: -5px -154px;
|
281 |
+
}
|
282 |
+
#sq_options_dasboard .sq_icon{
|
283 |
+
height: 39px;
|
284 |
+
width: 40px;
|
285 |
+
background-position: -40px -154px;
|
286 |
+
}
|
287 |
+
#sq_options_support .sq_options_support_popup,
|
288 |
+
#sq_options_feedback .sq_options_feedback_popup{
|
289 |
+
display: table;
|
290 |
+
min-width: 245px;
|
291 |
+
position: absolute;
|
292 |
+
z-index: 1002;
|
293 |
+
background-color: white;
|
294 |
+
padding: 5px;
|
295 |
+
margin-top: 0px;
|
296 |
+
|
297 |
+
top: 33px;
|
298 |
+
border: 1px solid #CCC;
|
299 |
+
border-radius: 0 7px 7px 7px;
|
300 |
+
-moz-border-radius: 0 7px 7px 7px;
|
301 |
+
-webkit-border-radius: 0 7px 7px 7px;
|
302 |
+
box-shadow: 1px 4px 6px -1px #888;
|
303 |
+
-moz-box-shadow:1px 4px 6px -1px #888;
|
304 |
+
-webkit-box-shadow:1px 4px 6px -1px #888;
|
305 |
+
cursor: default;
|
306 |
+
}
|
307 |
+
#sq_options_support .sq_options_support_popup{
|
308 |
+
left: -50px;
|
309 |
+
}
|
310 |
+
#sq_options_feedback .sq_options_feedback_popup{
|
311 |
+
left: -101px;
|
312 |
+
}
|
313 |
+
|
314 |
+
#sq_options_support .sq_options_support_popup li,
|
315 |
+
#sq_options_feedback .sq_options_feedback_popup li{
|
316 |
+
color: #333;
|
317 |
+
line-height: 16px;
|
318 |
+
font-size: 13px;
|
319 |
+
font-weight: normal;
|
320 |
+
margin: 0;
|
321 |
+
padding: 3px 5px;
|
322 |
+
}
|
323 |
+
#sq_options_support #sq_options_support_error,
|
324 |
+
#sq_options_feedback #sq_options_feedback_error{
|
325 |
+
margin: 6px 0;
|
326 |
+
}
|
327 |
+
#sq_options_feedback .sq_small_input{
|
328 |
+
width: 240px;
|
329 |
+
}
|
330 |
+
#sq_options_support .sq_small_input{
|
331 |
+
width: 225px;
|
332 |
+
}
|
333 |
+
#sq_options_support .sq_options_support_popup #sq_support_submit,
|
334 |
+
#sq_options_feedback .sq_options_feedback_popup #sq_feedback_submit{
|
335 |
+
background-color: #20bc49;
|
336 |
+
font-size: 12px;
|
337 |
+
font-weight: bold;
|
338 |
+
color: white;
|
339 |
+
|
340 |
+
width: 100px;
|
341 |
+
margin: 10px auto 5px auto;
|
342 |
+
padding: 5px;
|
343 |
+
position: relative;
|
344 |
+
text-shadow: 1px 1px #555;
|
345 |
+
cursor: pointer;
|
346 |
+
}
|
347 |
+
|
348 |
+
#sq_options_support #sq_options_close,
|
349 |
+
#sq_options_feedback #sq_options_feedback_close{
|
350 |
+
position: absolute;
|
351 |
+
background-color: #e5d8cd;
|
352 |
+
right: -6px;
|
353 |
+
top: -3px;
|
354 |
+
font-size: 13px;
|
355 |
+
font-weight: bold;
|
356 |
+
color: #333;
|
357 |
+
width: 8px;
|
358 |
+
line-height: 16px;
|
359 |
+
padding: 0px 5px 3px;
|
360 |
+
border-radius: 10px;
|
361 |
+
border: 1px solid darkOliveGreen;
|
362 |
+
cursor: pointer;
|
363 |
+
z-index: 2;
|
364 |
+
}
|
365 |
+
|
366 |
+
/************************** FACEBOOK *********************************/
|
367 |
+
#sq_options_feedback .sq_options_feedback_popup li{
|
368 |
+
clear: both;
|
369 |
+
}
|
370 |
+
|
371 |
+
#sq_facebook_b {
|
372 |
+
padding: 6px 0;
|
373 |
+
clear: both;
|
374 |
+
}
|
375 |
+
#sq_facebook_b > span{
|
376 |
+
display: block;
|
377 |
+
float: left;
|
378 |
+
|
379 |
+
font-weight: bold;
|
380 |
+
color: darkgreen;
|
381 |
+
}
|
382 |
+
#sq_facebook_b .sq_facebook_title{
|
383 |
+
width: 100%;
|
384 |
+
font-size: 16px;
|
385 |
+
text-align: center;
|
386 |
+
margin: 5px auto;
|
387 |
+
}
|
388 |
+
#sq_facebook_b .sq_facebook_image{
|
389 |
+
width: 100px;
|
390 |
+
margin: 3px 7px 5px 24px;
|
391 |
+
}
|
392 |
+
#sq_facebook_b .sq_facebook_image img{
|
393 |
+
width: 100px;
|
394 |
+
}
|
395 |
+
#sq_facebook_b .sq_facebook_frame{
|
396 |
+
margin-top: 35px;
|
397 |
+
}
|
398 |
+
|
themes/default/css/sq_postslist.css
CHANGED
@@ -1 +1,622 @@
|
|
1 |
-
#postmiddlesquirrly{display:block}#sq_posts{margin:15px 15px 0 0}th#sq_rank_column{color:brown;width:125px}#sq_posts th.column-title{width:250px}#sq_posts th.column-type{width:70px}#sq_posts th.column-traffic{width:100px}#sq_posts th.column-rank{width:150px}#sq_posts th.column-keywords{width:100px}#sq_posts th.column-date{width:90px}td.sq_rank_column .sq_rank_column_row{text-align:center;position:relative;width:100%;min-height:80px}td.sq_rank_column .sq_rank_column_row .sq_optimize{font-size:12px;color:lightcoral;cursor:pointer}td.sq_rank_column .sq_rank_column_row .sq_no_rank{color:#999}td.sq_rank_column .sq_rank_column_row .sq_chart_title{position:absolute;font-size:9px;color:#cfcfcf;top:33px;text-align:center;width:100%}td.sq_rank_column .sq_rank_column_row:hover .sq_chart_title{color:darkgoldenrod}td.column-rank .sq_rank_column_button,td.sq_rank_column .sq_rank_column_button{display:block;margin:10px auto;background-color:#89e46a;font-size:13px;font-weight:bold;color:white;line-height:16px;text-shadow:none;padding:7px 0px;border-radius:0px;-webkit-border-radius:0px;-moz-border-radius:0px;border:none;box-shadow:0px 0px 2px 0px white;cursor:pointer;width:100px;text-align:center;z-index:2}td.column-rank .sq_rank_column_button{padding:3px 0px;font-size:11px;width:90px;line-height:14px;background-color:lightgrey}.sq_rank_layout_content .sq_rank_zone_header .sq_rank_zone_title{background-position:-60px -74px}.sq_post_rank_row{position:relative;padding:0px 0 5px 0 !important;margin:0px !important;border-left:1px solid #999;border-right:1px solid #999;background-color:#fff;min-width:460px;overflow:visible !important;box-shadow:0px 5px 6px -4px #000;-moz-box-shadow:0px 5px 6px -4px #000;-webkit-box-shadow:0px 5px 6px -4px #000}.sq_post_rank_row:before{display:block;border:none;content:" ";background:transparent url('../img/sprite.png') repeat-x;background-position:0 -360px;width:100%;height:5px;border-radius:2px 2px 0 0}.sq_post_rank_row .sq_post_rank_title{display:block;text-align:left;font-size:18px;font-weight:normal;line-height:30px;color:#333;margin:0 0 10px 0;padding:10px 0 10px 10px;height:16px}.sq_post_rank_row .sq_separator{display:block;clear:both;background:transparent url("../img/sprite.png") repeat-x;background-position:0px -367px;width:100%;height:3px;margin:2px auto 30px auto}.sq_post_rank_row .sq_post_rank_close{position:absolute;background-color:#e5d8cd;right:-7px;top:-7px;font-size:13px;font-weight:bold;color:#333;width:8px;line-height:16px;padding:0px 5px 3px;border-radius:10px;-webkit-border-radius:10px;-moz-border-radius:10px;border:1px solid darkOliveGreen;cursor:pointer;z-index:2}.sq_post_rank_row .sq_post_rank_refresh{position:absolute;right:30px;top:18px;font-size:12px;font-weight:bold;color:white;line-height:16px;padding:2px 9px;background-color:#57c332;text-shadow:1px 1px #333;border:1px solid #89e46a;box-shadow:0px 0px 2px 0px #57c332;cursor:pointer;z-index:2}#sq_analytics .sq_first_header_column{width:122px}#sq_analytics .sq_second_column{width:528px}#sq_analytics .sq_second_column span{width:100%}#sq_analytics .sq_third_column{position:relative;overflow:visible;width:300px;text-align:center}#sq_analytics .sq_analytics_task_completed{display:block;top:-22px;float:left;position:relative;line-height:40px;width:auto;height:auto;min-width:50px;min-height:40px;margin:0 20px;padding:10px;text-align:center;font-size:30px;color:#fff;box-shadow:1px 1px 2px 0px #999;filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=1, OffY=1, Color='#999');-ms-filter:"progid:DXImageTransform.Microsoft.Shadow(Strength=1, Direction=270, Color='#999')";border-radius:5px 5px 5px 0;-moz-border-radius:5px 5px 5px 0;-webkit-border-radius:5px 5px 5px 0}#sq_analytics .sq_analytics_tasks .sq_analytics_task_completed{display:block;width:100px;height:65px;font-size:20px;color:#fff;text-shadow:1px 1px #555;line-height:29px;vertical-align:middle}#sq_analytics .sq_analytics_task_completed:before{content:"";width:0;height:0;position:absolute;bottom:-13px;left:0;border-width:0 0 14px 25px;border-style:solid;z-index:2}#sq_analytics .sq_analytics_task_completed:after{content:"";width:0;height:0;position:absolute;bottom:-15px;left:0;border-collapse:collapse;border-width:0 0 15px 28px;border-style:solid;border-color:transparent transparent transparent #999}#sq_analytics .sq_audit_task_completed_green{color:#fff;background:#1e9a04}#sq_analytics .sq_audit_task_completed_green_text{color:#1e9a04}#sq_analytics .sq_audit_task_completed_green:before{border-color:transparent transparent transparent #1e9a04}#sq_analytics .sq_audit_task_completed_yellow{color:#fff;background:#f6a304}#sq_analytics .sq_audit_task_completed_yellow_text{color:#f6a304}#sq_analytics .sq_audit_task_completed_yellow:before{border-color:transparent transparent transparent #f6a304}#sq_analytics .sq_audit_task_completed_red{color:#fff;background:#bb0d0c}#sq_analytics .sq_audit_task_completed_red_text{color:#bb0d0c}#sq_analytics .sq_audit_task_completed_red:before{border-color:transparent transparent transparent #bb0d0c}#sq_analytics div.sq_analytics_groups{width:80%;margin:0 auto 50px auto}#sq_analytics .sq_analytics_list > li{margin-top:40px}#sq_analytics .sq_analytics_list td{border:none;vertical-align:top;overflow:visible}#sq_analytics .sq_analytics_list .sq_analytics_tasks_header{height:50px;overflow:visible}#sq_analytics .sq_analytics_list .sq_analytics_tasks_header .sq_analytics_tasks_header_title{float:left;font-size:36px;line-height:16px}#sq_analytics .sq_analytics_list .sq_analytics_tasks_header .sq_analytics_task_completed{margin:0 21px !important;padding:10px}#sq_analytics .sq_analytics_list .sq_analytics_tasks_header .sq_analytics_task_completed:before{right:4px;left:auto}#sq_analytics .sq_analytics_list .sq_analytics_tasks_header .sq_analytics_task_completed:after{bottom:-15px;right:2px;left:auto;border-width:0 0 15px 26px}.sq_analytics_tasks_pass{display:block;background:transparent url("../img/sprite.png") repeat-x;background-position:-5px -380px;height:84px;width:97px;margin-right:20px}.sq_analytics_tasks_fail{display:block;background:transparent url("../img/sprite.png") repeat-x;background-position:-103px -380px;height:84px;width:97px;margin-right:20px}#sq_analytics .sq_analytics_tasks_row{width:100%;position:relative;margin-top:30px}#sq_analytics .sq_analytics_tasks_row > table{width:100%}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_title{font-size:24px;line-height:28px;color:#a8a8a8;padding-right:10px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value{font-size:24px;line-height:28px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value_pass a{font-size:15px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value_fail a{font-size:15px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value_pass{color:#1e9a04}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value_fail{color:#f7681a}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description{padding-top:20px;max-width:540px;font-size:16px;line-height:21px;color:#a8a8a8}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description span{display:block;margin-bottom:15px;margin-left:0}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description span.sq_analytics_tasks_alias{margin-bottom:10px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_tasks_value{font-size:15px;line-height:21px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description a{text-decoration:none}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description ul li{margin-left:10px;margin-top:7px;font-size:14px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_tip,#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_fix{font-size:14px;line-height:19px;color:#333333}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_tip a,#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_fix a{text-decoration:none;font-weight:bold;color:orange}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_fix strong{color:#f7681a}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_values{width:330px;margin:30px auto 0 auto}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_values li > div{float:left;margin-right:10px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_values li{clear:both;height:30px;line-height:20px;border-bottom:1px dashed #eee}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_values li .sq_analytics_values_title{font-size:16px;width:195px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_values li .sq_analytics_values_value{font-weight:bold;width:75px;text-align:right}#sq_analytics .sq_list_error_title,#sq_analytics .sq_list_success_title{display:block;font-size:20px;color:#333;height:31px;width:90% !important;margin-top:30px;padding-left:30px;border-bottom:5px solid #ccc;box-shadow:0px 1px 0 0 #999;filter:progid:DXImageTransform.Microsoft.dropshadow(OffX=0, OffY=1, Color='#999');-ms-filter:"progid:DXImageTransform.Microsoft.Shadow(Strength=1, Direction=270, Color='#999')";border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;background:transparent url("../img/list_icon.png") no-repeat 1px 3px}#sq_analytics .sq_list_error,#sq_analytics .sq_list_success{display:block;font-size:15px;font-weight:normal;color:#333;margin-left:0px;margin-top:5px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_list_success span{margin-bottom:10px}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value .sq_list_error,#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value .sq_list_success{font-style:italic}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_video_cover{background:#333 url("../img/sprite.png") no-repeat;background-position:-208px -375px;width:280px;height:158px;border:2px solid #000;border-radius:5px;margin:0 auto;cursor:pointer}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_video a{display:block;width:280px;text-align:center;font-size:15px;margin-top:3px;margin:0 5px}#sq_analytics .sq_analytics_tasks_row .sq_chart_text{position:absolute;font-size:14px;line-height:20px;color:#cfcfcf;top:80px;text-align:center;width:93%}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_side{text-align:center}#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_side .sq_analytics_tasks_side_text{display:block;font-size:14px;line-height:21px;color:#cfcfcf;text-align:center}#sq_analytics .sq_rank_sprite{float:left;display:block;margin:1px 0 0 0;background:transparent url('../img/sprite.png') no-repeat;background-position:20px 0px;width:20px;height:20px}#sq_analytics .sq_rank_flag_big{display:block;float:none;margin:0 auto 6px auto;background-position:-7px -279px;width:72px;height:70px}#sq_analytics .sq_rank_flag_facebook{background-position:-10px -253px}#sq_analytics .sq_rank_flag_facebook_big{background-position:-7px -279px}#sq_analytics .sq_rank_flag_facebook_like{background-position:-212px -253px}#sq_analytics .sq_rank_flag_twitter{background-position:-53px -253px}#sq_analytics .sq_rank_flag_twitter_big{background-position:-372px -279px}#sq_analytics .sq_rank_flag_googleplus{background-position:-31px -253px}#sq_analytics .sq_rank_flag_googleplus_big{background-position:-153px -279px}#sq_analytics .sq_rank_flag_stumbleupon{background-position:-190px -253px}#sq_analytics .sq_rank_flag_stumbleupon_big{background-position:-299px -279px}#sq_analytics .sq_rank_flag_linkedin{background-position:-231px -253px}#sq_analytics .sq_rank_flag_linkedin_big{background-position:-80px -279px}#sq_analytics .sq_rank_flag_reddit{background-position:-250px -253px}#sq_analytics .sq_rank_flag_reddit_big{background-position:-226px -279px}#sq_analytics .sq_rank_seomoz_inbound{background-position:-97px -253px}#sq_analytics .sq_rank_seomoz_authority{background-position:-119px -253px}#sq_analytics .sq_rank_seomoz_rank{background-position:-273px -253px}#sq_analytics .sq_rank_google_pagerank{background-position:-273px -253px}#sq_analytics .sq_rank_squirrly_rank{background-position:-314px -253px}.sq_rank_custom_meta{display:block;font-size:13px;width:16px;height:16px;margin:0;padding:0;cursor:pointer;float:right}.sq_rank_customtitle{background-position:-308px -75px}.sq_rank_customdescription{background-position:-326px -75px}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#postmiddlesquirrly{
|
2 |
+
display: block;
|
3 |
+
}
|
4 |
+
#sq_posts{
|
5 |
+
margin: 15px 15px 0 0;
|
6 |
+
}
|
7 |
+
th#sq_rank_column {
|
8 |
+
color: brown;
|
9 |
+
width: 125px;
|
10 |
+
}
|
11 |
+
td.sq_rank_column {
|
12 |
+
|
13 |
+
}
|
14 |
+
|
15 |
+
#sq_posts th.column-title{
|
16 |
+
width: 30%;
|
17 |
+
}
|
18 |
+
|
19 |
+
#sq_posts th.column-type{
|
20 |
+
width: 70px;
|
21 |
+
}
|
22 |
+
|
23 |
+
#sq_posts th.column-traffic{
|
24 |
+
width: 100px;
|
25 |
+
}
|
26 |
+
|
27 |
+
#sq_posts th.column-rank{
|
28 |
+
width: 150px;
|
29 |
+
}
|
30 |
+
|
31 |
+
#sq_posts th.column-keywords{
|
32 |
+
width: 100px;
|
33 |
+
}
|
34 |
+
|
35 |
+
#sq_posts th.column-date{
|
36 |
+
width: 90px;
|
37 |
+
}
|
38 |
+
|
39 |
+
td.sq_rank_column .sq_rank_column_row{
|
40 |
+
text-align: center;
|
41 |
+
position: relative;
|
42 |
+
width: 100%;
|
43 |
+
min-height: 25px;
|
44 |
+
}
|
45 |
+
|
46 |
+
td.sq_rank_column .sq_rank_column_row .sq_optimize{
|
47 |
+
font-size: 12px;
|
48 |
+
color: lightcoral;
|
49 |
+
cursor: pointer;
|
50 |
+
}
|
51 |
+
td.sq_rank_column .sq_rank_column_row .sq_no_rank{
|
52 |
+
color: #999;
|
53 |
+
}
|
54 |
+
|
55 |
+
td.sq_rank_column .sq_rank_column_row .sq_chart_title{
|
56 |
+
position: absolute;
|
57 |
+
font-size: 9px;
|
58 |
+
color: #cfcfcf;
|
59 |
+
top: 33px;
|
60 |
+
text-align: center;
|
61 |
+
width: 100%;
|
62 |
+
}
|
63 |
+
|
64 |
+
td.sq_rank_column .sq_rank_column_row:hover .sq_chart_title{
|
65 |
+
color: darkgoldenrod;
|
66 |
+
}
|
67 |
+
|
68 |
+
td.column-rank .sq_rank_column_button,
|
69 |
+
td.sq_rank_column .sq_rank_column_button{
|
70 |
+
display: block;
|
71 |
+
margin: 10px auto;
|
72 |
+
background-color: #15b14a;
|
73 |
+
font-size: 13px;
|
74 |
+
font-weight: bold;
|
75 |
+
color: white;
|
76 |
+
line-height: 16px;
|
77 |
+
text-shadow: none;
|
78 |
+
padding: 7px 0px;
|
79 |
+
border-radius: 0px;
|
80 |
+
-webkit-border-radius: 0px;
|
81 |
+
-moz-border-radius: 0px;
|
82 |
+
border: none;
|
83 |
+
box-shadow: 0px 0px 2px 0px white;
|
84 |
+
cursor: pointer;
|
85 |
+
width: 100px;
|
86 |
+
text-align: center;
|
87 |
+
z-index: 2;
|
88 |
+
}
|
89 |
+
|
90 |
+
td.column-rank .sq_rank_column_button{
|
91 |
+
padding: 3px 0px;
|
92 |
+
font-size: 11px;
|
93 |
+
width: 90px;
|
94 |
+
line-height: 14px;
|
95 |
+
background-color: lightgrey;
|
96 |
+
}
|
97 |
+
|
98 |
+
.sq_rank_layout_content .sq_rank_zone_header .sq_rank_zone_title{
|
99 |
+
background-position: -60px -74px;
|
100 |
+
}
|
101 |
+
|
102 |
+
|
103 |
+
|
104 |
+
/************************** Details ****************************/
|
105 |
+
/**************************************************************/
|
106 |
+
.sq_post_rank_row {
|
107 |
+
position: relative;
|
108 |
+
padding: 0px 0 5px 0 !important;
|
109 |
+
margin: 0px !important;
|
110 |
+
border-left: 1px solid #999;
|
111 |
+
border-right: 1px solid #999;
|
112 |
+
background-color: #fff;
|
113 |
+
min-width: 460px;
|
114 |
+
overflow: visible !important;
|
115 |
+
box-shadow: 0px 5px 6px -4px #000 !important;
|
116 |
+
-moz-box-shadow: 0px 5px 6px -4px #000 !important;
|
117 |
+
-webkit-box-shadow: 0px 5px 6px -4px #000 !important;
|
118 |
+
}
|
119 |
+
|
120 |
+
.sq_post_rank_row:before{
|
121 |
+
display: block;
|
122 |
+
border: none;
|
123 |
+
content: " ";
|
124 |
+
background: transparent url('../img/sprite.png') repeat-x;
|
125 |
+
background-position: 0 -360px;
|
126 |
+
width: 100%;
|
127 |
+
height: 5px;
|
128 |
+
border-radius: 2px 2px 0 0;
|
129 |
+
}
|
130 |
+
|
131 |
+
.sq_post_rank_row .sq_post_rank_title{
|
132 |
+
display: block;
|
133 |
+
text-align: left;
|
134 |
+
font-size: 18px;
|
135 |
+
font-weight: normal;
|
136 |
+
line-height: 30px;
|
137 |
+
color: #333;
|
138 |
+
margin: 0 0 10px 0;
|
139 |
+
padding: 10px 0 10px 10px;
|
140 |
+
height: 16px;
|
141 |
+
}
|
142 |
+
.sq_post_rank_row .sq_separator{
|
143 |
+
display: block;
|
144 |
+
clear: both;
|
145 |
+
background: transparent url("../img/sprite.png") repeat-x;
|
146 |
+
background-position: 0px -367px;
|
147 |
+
width: 100%;
|
148 |
+
height: 3px;
|
149 |
+
margin: 2px auto 30px auto;
|
150 |
+
}
|
151 |
+
|
152 |
+
.sq_post_rank_row .sq_post_rank_close{
|
153 |
+
position: absolute;
|
154 |
+
background-color: #e5d8cd;
|
155 |
+
right: -7px;
|
156 |
+
top: -7px;
|
157 |
+
font-size: 13px;
|
158 |
+
font-weight: bold;
|
159 |
+
color: #333;
|
160 |
+
width: 8px;
|
161 |
+
line-height: 16px;
|
162 |
+
padding: 0px 5px 3px;
|
163 |
+
border-radius: 10px;
|
164 |
+
-webkit-border-radius: 10px;
|
165 |
+
-moz-border-radius: 10px;
|
166 |
+
border: 1px solid darkOliveGreen;
|
167 |
+
cursor: pointer;
|
168 |
+
z-index: 2;
|
169 |
+
}
|
170 |
+
|
171 |
+
.sq_post_rank_row .sq_post_rank_refresh{
|
172 |
+
position: absolute;
|
173 |
+
right: 30px;
|
174 |
+
top: 18px;
|
175 |
+
font-size: 12px;
|
176 |
+
font-weight: bold;
|
177 |
+
color: white;
|
178 |
+
line-height: 16px;
|
179 |
+
padding: 2px 9px;
|
180 |
+
background-color: #15b14a;
|
181 |
+
text-shadow: 1px 1px #333;
|
182 |
+
border: 1px solid #20bc49;
|
183 |
+
box-shadow: 0px 0px 2px 0px #57c332;
|
184 |
+
cursor: pointer;
|
185 |
+
z-index: 2;
|
186 |
+
|
187 |
+
}
|
188 |
+
/******************************/
|
189 |
+
#sq_analytics .sq_first_header_column{
|
190 |
+
width: 122px;
|
191 |
+
}
|
192 |
+
#sq_analytics .sq_second_column{
|
193 |
+
width: 528px;
|
194 |
+
}
|
195 |
+
#sq_analytics .sq_second_column span{
|
196 |
+
width: 100%;
|
197 |
+
}
|
198 |
+
#sq_analytics .sq_third_column{
|
199 |
+
position: relative;
|
200 |
+
overflow: visible;
|
201 |
+
width: 300px;
|
202 |
+
text-align: center;
|
203 |
+
}
|
204 |
+
|
205 |
+
#sq_analytics .sq_analytics_task_completed {
|
206 |
+
display: block;
|
207 |
+
top: -22px;
|
208 |
+
float: left;
|
209 |
+
position: relative;
|
210 |
+
line-height: 40px;
|
211 |
+
width: auto;
|
212 |
+
height: auto;
|
213 |
+
min-width: 50px;
|
214 |
+
min-height: 40px;
|
215 |
+
margin: 0 20px;
|
216 |
+
padding: 10px;
|
217 |
+
text-align: center;
|
218 |
+
font-size: 30px;
|
219 |
+
color: #fff;
|
220 |
+
box-shadow: 1px 1px 2px 0px #999;
|
221 |
+
filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=1, OffY=1, Color='#999');
|
222 |
+
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=1, Direction=270, Color='#999')";
|
223 |
+
border-radius: 5px 5px 5px 0;
|
224 |
+
-moz-border-radius: 5px 5px 5px 0;
|
225 |
+
-webkit-border-radius: 5px 5px 5px 0;
|
226 |
+
}
|
227 |
+
#sq_analytics .sq_analytics_tasks .sq_analytics_task_completed{
|
228 |
+
display: block;
|
229 |
+
width: 100px;
|
230 |
+
height: 65px;
|
231 |
+
font-size: 20px;
|
232 |
+
color: #fff;
|
233 |
+
text-shadow: 1px 1px #555;
|
234 |
+
line-height: 29px;
|
235 |
+
vertical-align: middle;
|
236 |
+
}
|
237 |
+
/* creates the larger triangle */
|
238 |
+
#sq_analytics .sq_analytics_task_completed:before {
|
239 |
+
content: "";
|
240 |
+
width: 0;
|
241 |
+
height: 0;
|
242 |
+
position: absolute;
|
243 |
+
bottom: -13px;
|
244 |
+
left: 0;
|
245 |
+
border-width: 0 0 14px 25px;
|
246 |
+
border-style: solid;
|
247 |
+
z-index: 2;
|
248 |
+
}
|
249 |
+
|
250 |
+
/* creates the larger triangle*/
|
251 |
+
#sq_analytics .sq_analytics_task_completed:after {
|
252 |
+
content: "";
|
253 |
+
width: 0;
|
254 |
+
height: 0;
|
255 |
+
position: absolute;
|
256 |
+
bottom: -15px;
|
257 |
+
left: 0;
|
258 |
+
border-collapse:collapse;
|
259 |
+
border-width: 0 0 15px 28px;
|
260 |
+
border-style: solid;
|
261 |
+
border-color: transparent transparent transparent #999;
|
262 |
+
}
|
263 |
+
|
264 |
+
#sq_analytics .sq_audit_task_completed_green{
|
265 |
+
color: #fff;
|
266 |
+
background: #15b14a;
|
267 |
+
}
|
268 |
+
#sq_analytics .sq_audit_task_completed_green_text{
|
269 |
+
color: #20bc49;
|
270 |
+
}
|
271 |
+
#sq_analytics .sq_audit_task_completed_green:before {
|
272 |
+
border-color: transparent transparent transparent #20bc49;
|
273 |
+
}
|
274 |
+
|
275 |
+
#sq_analytics .sq_audit_task_completed_yellow{
|
276 |
+
color: #fff;
|
277 |
+
background: #f6a304;
|
278 |
+
}
|
279 |
+
#sq_analytics .sq_audit_task_completed_yellow_text{
|
280 |
+
color: #f6a304;
|
281 |
+
}
|
282 |
+
#sq_analytics .sq_audit_task_completed_yellow:before {
|
283 |
+
border-color: transparent transparent transparent #f6a304;
|
284 |
+
}
|
285 |
+
|
286 |
+
#sq_analytics .sq_audit_task_completed_red{
|
287 |
+
color: #fff;
|
288 |
+
background: #bb0d0c;
|
289 |
+
}
|
290 |
+
#sq_analytics .sq_audit_task_completed_red_text{
|
291 |
+
color: #bb0d0c;
|
292 |
+
}
|
293 |
+
#sq_analytics .sq_audit_task_completed_red:before {
|
294 |
+
border-color: transparent transparent transparent #bb0d0c;
|
295 |
+
}
|
296 |
+
|
297 |
+
/*************************************************************/
|
298 |
+
#sq_analytics div.sq_analytics_groups{
|
299 |
+
width: 95%;
|
300 |
+
margin: 0 auto 50px auto;
|
301 |
+
}
|
302 |
+
#sq_analytics .sq_analytics_list > li{
|
303 |
+
margin-top: 40px;
|
304 |
+
}
|
305 |
+
#sq_analytics .sq_analytics_list td{
|
306 |
+
border: none;
|
307 |
+
vertical-align: top;
|
308 |
+
overflow: visible;
|
309 |
+
}
|
310 |
+
#sq_analytics .sq_analytics_list .sq_analytics_tasks_header {
|
311 |
+
height: 50px;
|
312 |
+
overflow: visible;
|
313 |
+
}
|
314 |
+
#sq_analytics .sq_analytics_list .sq_analytics_tasks_header .sq_analytics_tasks_header_title{
|
315 |
+
float: left;
|
316 |
+
font-size: 36px;
|
317 |
+
line-height: 16px;
|
318 |
+
}
|
319 |
+
#sq_analytics .sq_analytics_list .sq_analytics_tasks_header .sq_analytics_task_completed {
|
320 |
+
margin: 0 21px !important;
|
321 |
+
padding: 10px;
|
322 |
+
}
|
323 |
+
/* creates the larger triangle */
|
324 |
+
#sq_analytics .sq_analytics_list .sq_analytics_tasks_header .sq_analytics_task_completed:before {
|
325 |
+
right: 4px;
|
326 |
+
left: auto;
|
327 |
+
}
|
328 |
+
|
329 |
+
/* creates the larger triangle */
|
330 |
+
#sq_analytics .sq_analytics_list .sq_analytics_tasks_header .sq_analytics_task_completed:after {
|
331 |
+
bottom: -15px;
|
332 |
+
right: 2px;
|
333 |
+
left: auto;
|
334 |
+
border-width: 0 0 15px 26px;
|
335 |
+
}
|
336 |
+
|
337 |
+
.sq_analytics_tasks_pass{
|
338 |
+
display: block;
|
339 |
+
background: transparent url("../img/sprite.png") repeat-x;
|
340 |
+
background-position: -5px -380px;
|
341 |
+
height: 84px;
|
342 |
+
width: 97px;
|
343 |
+
margin-right: 20px;
|
344 |
+
}
|
345 |
+
|
346 |
+
.sq_analytics_tasks_fail{
|
347 |
+
display: block;
|
348 |
+
background: transparent url("../img/sprite.png") repeat-x;
|
349 |
+
background-position: -103px -380px;
|
350 |
+
height: 84px;
|
351 |
+
width: 97px;
|
352 |
+
margin-right: 20px;
|
353 |
+
}
|
354 |
+
#sq_analytics .sq_analytics_tasks_row{
|
355 |
+
width: 100%;
|
356 |
+
position: relative;
|
357 |
+
margin-top: 30px;
|
358 |
+
}
|
359 |
+
#sq_analytics .sq_analytics_tasks_row > table{
|
360 |
+
width: 100%;
|
361 |
+
}
|
362 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_title{
|
363 |
+
font-size: 24px;
|
364 |
+
line-height: 28px;
|
365 |
+
color: #a8a8a8;
|
366 |
+
padding-right: 10px;
|
367 |
+
}
|
368 |
+
|
369 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value{
|
370 |
+
font-size: 24px;
|
371 |
+
line-height: 28px;
|
372 |
+
}
|
373 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value_pass a{
|
374 |
+
font-size: 15px;
|
375 |
+
}
|
376 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value_fail a{
|
377 |
+
font-size: 15px;
|
378 |
+
}
|
379 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value_pass{
|
380 |
+
color: #20bc49;
|
381 |
+
}
|
382 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value_fail{
|
383 |
+
color: #f7681a;
|
384 |
+
}
|
385 |
+
|
386 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description{
|
387 |
+
padding-top: 20px;
|
388 |
+
max-width: 540px;
|
389 |
+
font-size: 16px;
|
390 |
+
line-height: 21px;
|
391 |
+
color: #a8a8a8;
|
392 |
+
}
|
393 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description span{
|
394 |
+
display: block;
|
395 |
+
margin-bottom: 15px;
|
396 |
+
margin-left: 0;
|
397 |
+
}
|
398 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description span.sq_analytics_tasks_alias{
|
399 |
+
margin-bottom: 10px;
|
400 |
+
}
|
401 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_tasks_value{
|
402 |
+
font-size: 15px;
|
403 |
+
line-height: 21px;
|
404 |
+
}
|
405 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description a{
|
406 |
+
text-decoration: none;
|
407 |
+
}
|
408 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description ul li{
|
409 |
+
margin-left: 10px;
|
410 |
+
margin-top: 7px;
|
411 |
+
font-size: 14px;
|
412 |
+
}
|
413 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_tip,
|
414 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_fix{
|
415 |
+
font-size: 14px;
|
416 |
+
line-height: 19px;
|
417 |
+
color: #333333;
|
418 |
+
}
|
419 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_tip a,
|
420 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_fix a{
|
421 |
+
text-decoration: none;
|
422 |
+
font-weight: bold;
|
423 |
+
color: orange;
|
424 |
+
}
|
425 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_fix strong{
|
426 |
+
color: #f7681a;
|
427 |
+
}
|
428 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_values{
|
429 |
+
width: 330px;
|
430 |
+
margin: 30px auto 0 auto;
|
431 |
+
}
|
432 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_values li > div{
|
433 |
+
float: left;
|
434 |
+
margin-right: 10px;
|
435 |
+
}
|
436 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_values li{
|
437 |
+
clear: both;
|
438 |
+
height: 30px;
|
439 |
+
line-height: 20px;
|
440 |
+
border-bottom: 1px dashed #eee;
|
441 |
+
}
|
442 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_values li .sq_analytics_values_title{
|
443 |
+
font-size: 16px;
|
444 |
+
width: 195px;
|
445 |
+
}
|
446 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_analytics_values li .sq_analytics_values_value{
|
447 |
+
font-weight: bold;
|
448 |
+
width: 75px;
|
449 |
+
text-align: right;
|
450 |
+
}
|
451 |
+
|
452 |
+
#sq_analytics .sq_list_error_title,
|
453 |
+
#sq_analytics .sq_list_success_title{
|
454 |
+
display: block;
|
455 |
+
font-size: 20px;
|
456 |
+
color: #333;
|
457 |
+
height: 31px;
|
458 |
+
width: 90% !important;
|
459 |
+
margin-top: 30px;
|
460 |
+
padding-left: 30px;
|
461 |
+
border-bottom: 5px solid #ccc;
|
462 |
+
box-shadow: 0px 1px 0 0 #999;
|
463 |
+
filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=0, OffY=1, Color='#999');
|
464 |
+
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=1, Direction=270, Color='#999')";
|
465 |
+
border-radius: 4px;
|
466 |
+
-moz-border-radius: 4px;
|
467 |
+
-webkit-border-radius: 4px;
|
468 |
+
background: transparent url("../img/list_icon.png") no-repeat 1px 3px;
|
469 |
+
}
|
470 |
+
|
471 |
+
#sq_analytics .sq_list_error,
|
472 |
+
#sq_analytics .sq_list_success{
|
473 |
+
display: block;
|
474 |
+
font-size: 15px;
|
475 |
+
font-weight: normal;
|
476 |
+
color: #333;
|
477 |
+
margin-left: 0px;
|
478 |
+
margin-top: 5px;
|
479 |
+
}
|
480 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_description .sq_list_success span{
|
481 |
+
margin-bottom: 10px;
|
482 |
+
}
|
483 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value .sq_list_error,
|
484 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_value .sq_list_success{
|
485 |
+
font-style: italic;
|
486 |
+
}
|
487 |
+
|
488 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_video_cover{
|
489 |
+
background: #333 url("../img/sprite.png") no-repeat;
|
490 |
+
background-position: -208px -375px;
|
491 |
+
width: 280px;
|
492 |
+
height: 158px;
|
493 |
+
border: 2px solid #000;
|
494 |
+
border-radius: 5px;
|
495 |
+
margin: 0 auto;
|
496 |
+
cursor: pointer;
|
497 |
+
}
|
498 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_video a{
|
499 |
+
display: block;
|
500 |
+
width: 280px;
|
501 |
+
text-align: center;
|
502 |
+
font-size: 15px;
|
503 |
+
margin-top: 3px;
|
504 |
+
margin: 0 5px;
|
505 |
+
}
|
506 |
+
|
507 |
+
#sq_analytics .sq_analytics_tasks_row .sq_chart_text{
|
508 |
+
position: absolute;
|
509 |
+
font-size: 14px;
|
510 |
+
line-height: 20px;
|
511 |
+
color: #cfcfcf;
|
512 |
+
top: 80px;
|
513 |
+
text-align: center;
|
514 |
+
width: 93%;
|
515 |
+
}
|
516 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_side{
|
517 |
+
text-align: center;
|
518 |
+
}
|
519 |
+
#sq_analytics .sq_analytics_tasks_row .sq_analytics_tasks_side .sq_analytics_tasks_side_text{
|
520 |
+
display: block;
|
521 |
+
font-size: 14px;
|
522 |
+
line-height: 21px;
|
523 |
+
color: #cfcfcf;
|
524 |
+
text-align: center;
|
525 |
+
}
|
526 |
+
/**********************/
|
527 |
+
#sq_analytics .sq_rank_sprite{
|
528 |
+
float: left;
|
529 |
+
display: block;
|
530 |
+
|
531 |
+
margin: 1px 0 0 0;
|
532 |
+
background: transparent url('../img/sprite.png') no-repeat;
|
533 |
+
background-position: 20px 0px;
|
534 |
+
width: 20px;
|
535 |
+
height: 20px;
|
536 |
+
}
|
537 |
+
#sq_analytics .sq_rank_flag_big{
|
538 |
+
display: block;
|
539 |
+
float: none;
|
540 |
+
margin: 0 auto 6px auto;
|
541 |
+
background-position: -7px -279px;
|
542 |
+
width: 72px;
|
543 |
+
height: 70px;
|
544 |
+
}
|
545 |
+
#sq_analytics .sq_rank_flag_facebook{
|
546 |
+
background-position: -10px -253px;
|
547 |
+
}
|
548 |
+
#sq_analytics .sq_rank_flag_facebook_big{
|
549 |
+
background-position: -7px -279px;
|
550 |
+
}
|
551 |
+
#sq_analytics .sq_rank_flag_facebook_like{
|
552 |
+
background-position: -212px -253px;
|
553 |
+
}
|
554 |
+
#sq_analytics .sq_rank_flag_twitter{
|
555 |
+
background-position: -53px -253px;
|
556 |
+
}
|
557 |
+
#sq_analytics .sq_rank_flag_twitter_big{
|
558 |
+
background-position: -372px -279px;
|
559 |
+
}
|
560 |
+
#sq_analytics .sq_rank_flag_googleplus{
|
561 |
+
background-position: -31px -253px;
|
562 |
+
}
|
563 |
+
#sq_analytics .sq_rank_flag_googleplus_big{
|
564 |
+
background-position: -153px -279px;
|
565 |
+
}
|
566 |
+
#sq_analytics .sq_rank_flag_stumbleupon{
|
567 |
+
background-position: -190px -253px;
|
568 |
+
}
|
569 |
+
#sq_analytics .sq_rank_flag_stumbleupon_big{
|
570 |
+
background-position: -299px -279px;
|
571 |
+
}
|
572 |
+
#sq_analytics .sq_rank_flag_linkedin{
|
573 |
+
background-position: -231px -253px;
|
574 |
+
}
|
575 |
+
#sq_analytics .sq_rank_flag_linkedin_big{
|
576 |
+
background-position: -80px -279px;
|
577 |
+
}
|
578 |
+
#sq_analytics .sq_rank_flag_reddit{
|
579 |
+
background-position: -250px -253px;
|
580 |
+
}
|
581 |
+
#sq_analytics .sq_rank_flag_reddit_big{
|
582 |
+
background-position: -226px -279px;
|
583 |
+
}
|
584 |
+
|
585 |
+
#sq_analytics .sq_rank_seomoz_inbound{
|
586 |
+
background-position: -97px -253px;
|
587 |
+
}
|
588 |
+
#sq_analytics .sq_rank_seomoz_authority{
|
589 |
+
background-position: -119px -253px;
|
590 |
+
}
|
591 |
+
#sq_analytics .sq_rank_seomoz_rank{
|
592 |
+
background-position: -273px -253px;
|
593 |
+
}
|
594 |
+
#sq_analytics .sq_rank_google_pagerank{
|
595 |
+
background-position: -273px -253px;
|
596 |
+
}
|
597 |
+
#sq_analytics .sq_rank_squirrly_rank{
|
598 |
+
background-position: -314px -253px;
|
599 |
+
}
|
600 |
+
#sq_analytics .sq_rank_ahrefs_rank{
|
601 |
+
background-position: -333px -253px;
|
602 |
+
}
|
603 |
+
/*********************** Custom meta ***************************/
|
604 |
+
.sq_rank_custom_meta{
|
605 |
+
display: block;
|
606 |
+
font-size: 13px;
|
607 |
+
width: 16px;
|
608 |
+
height: 16px;
|
609 |
+
margin: 0;
|
610 |
+
padding: 0;
|
611 |
+
cursor: pointer;
|
612 |
+
float: right;
|
613 |
+
|
614 |
+
}
|
615 |
+
|
616 |
+
.sq_rank_customtitle{
|
617 |
+
background-position: -308px -75px;
|
618 |
+
}
|
619 |
+
|
620 |
+
.sq_rank_customdescription{
|
621 |
+
background-position: -326px -75px;
|
622 |
+
}
|
themes/default/css/sq_sitemap.xsl
ADDED
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<xsl:stylesheet version="2.0" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
3 |
+
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
|
4 |
+
<xsl:template match="/">
|
5 |
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
6 |
+
<head>
|
7 |
+
<title>Squirrly SEO Sitemap</title>
|
8 |
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
9 |
+
<style>*{margin:0;padding:0}body{font-family:Helvetica,Arial,sans-serif;font-size:14px;color:#545353;color:#005A92;background:#B0BEC7;padding:20px}#content{margin:0 auto;max-width:1200px;background:#fff;padding:20px 30px;-webkit-box-shadow:2px 2px 5px 1px rgba(0,0,0,0.2);box-shadow:2px 2px 5px 1px rgba(0,0,0,0.2);-webkit-border-radius:5px;border-radius:5px}h1{font-size:20px;line-height:24px;font-weight:700;color:#1556B2;color:#005A92;padding-left:31px;margin:0 0 20px;display:inline-block}h1 a{font:inherit;color:inherit;text-decoration:none}h1 .ss_link{visibility:hidden;font-size:9px;display:block;text-align:right;margin-top:-5px}h1:hover .ss_link{visibility:visible;text-decoration:underline}.expl{margin:10px 3px;line-height:1.3em}.expl a{color:#1556B2;font-weight:700;text-decoration:none}.expl a:hover{text-decoration:underline}table.tablesorter{background-color:#CDCDCD;margin:20px 0 15px;font-size:8pt;width:100%;text-align:left;border:none;border-collapse:collapse;border-bottom:1px solid #005A92}table.tablesorter thead tr th,table.tablesorter tfoot tr th{background-color:#F5FAFA;font-size:8pt;padding:4px 20px 4px 10px}table.tablesorter thead tr .headerSortDown,table.tablesorter thead tr .headerSortUp{background-color:#B0BEC7;background-color:#e6EEEE}table.tablesorter thead tr .header{background-image:url(../images/bg.gif);background-repeat:no-repeat;background-position:center right;cursor:pointer;border-bottom:1px solid #005A92}table.tablesorter thead tr .headerSortUp{background-image:url(../images/asc.gif)}table.tablesorter thead tr .headerSortDown{background-image:url(../images/desc.gif)}table.tablesorter tbody td{color:#005A92;padding: 7px 5px;;vertical-align:top}table.tablesorter tbody tr{background-color:#FFF}table.tablesorter tbody tr.odd{background-color:#EFF2F3}table.tablesorter tbody tr:hover{background-color:#D8E1E8}table.tablesorter tbody a{color:#444;color:#005A92;text-decoration:none}table.tablesorter tbody a:hover{text-decoration:underline}table.tablesorter tbody tr:hover td,table.tablesorter tbody tr:hover a{color:#000}#Footer{margin:50px 0 10px;text-align:right;font-size:.8em} td a{max-height: 40px;overflow: hidden;display: block;float: left;margin-right: 10px;vertical-align: middle;}</style>
|
10 |
+
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
|
11 |
+
<script type="text/javascript"><![CDATA[
|
12 |
+
(function($){$.extend({tablesorter:new
|
13 |
+
function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",cssChildRow:"expand-child",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,sortLocaleCompare:true,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:'/\.|\,/g',onRenderHeader:null,selectorHeaders:'thead th',debug:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms");}this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s);}else{alert(s);}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug="";}if(table.tBodies.length==0)return;var rows=table.tBodies[0].rows;if(rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i<l;i++){var p=false;if($.metadata&&($($headers[i]).metadata()&&$($headers[i]).metadata().sorter)){p=getParserById($($headers[i]).metadata().sorter);}else if((table.config.headers[i]&&table.config.headers[i].sorter)){p=getParserById(table.config.headers[i].sorter);}if(!p){p=detectParserForColumn(table,rows,-1,i);}if(table.config.debug){parsersDebug+="column:"+i+" parser:"+p.id+"\n";}list.push(p);}}if(table.config.debug){log(parsersDebug);}return list;};function detectParserForColumn(table,rows,rowIndex,cellIndex){var l=parsers.length,node=false,nodeValue=false,keepLooking=true;while(nodeValue==''&&keepLooking){rowIndex++;if(rows[rowIndex]){node=getNodeFromRowAndCellIndex(rows,rowIndex,cellIndex);nodeValue=trimAndGetNodeText(table.config,node);if(table.config.debug){log('Checking if value was empty on row:'+rowIndex);}}else{keepLooking=false;}}for(var i=1;i<l;i++){if(parsers[i].is(nodeValue,table,node)){return parsers[i];}}return parsers[0];}function getNodeFromRowAndCellIndex(rows,rowIndex,cellIndex){return rows[rowIndex].cells[cellIndex];}function trimAndGetNodeText(config,node){return $.trim(getElementText(config,node));}function getParserById(name){var l=parsers.length;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==name.toLowerCase()){return parsers[i];}}return false;}function buildCache(table){if(table.config.debug){var cacheTime=new Date();}var totalRows=(table.tBodies[0]&&table.tBodies[0].rows.length)||0,totalCells=(table.tBodies[0].rows[0]&&table.tBodies[0].rows[0].cells.length)||0,parsers=table.config.parsers,cache={row:[],normalized:[]};for(var i=0;i<totalRows;++i){var c=$(table.tBodies[0].rows[i]),cols=[];if(c.hasClass(table.config.cssChildRow)){cache.row[cache.row.length-1]=cache.row[cache.row.length-1].add(c);continue;}cache.row.push(c);for(var j=0;j<totalCells;++j){cols.push(parsers[j].format(getElementText(table.config,c[0].cells[j]),table,c[0].cells[j]));}cols.push(cache.normalized.length);cache.normalized.push(cols);cols=null;};if(table.config.debug){benchmark("Building cache for "+totalRows+" rows:",cacheTime);}return cache;};function getElementText(config,node){var text="";if(!node)return"";if(!config.supportsTextContent)config.supportsTextContent=node.textContent||false;if(config.textExtraction=="simple"){if(config.supportsTextContent){text=node.textContent;}else{if(node.childNodes[0]&&node.childNodes[0].hasChildNodes()){text=node.childNodes[0].innerHTML;}else{text=node.innerHTML;}}}else{if(typeof(config.textExtraction)=="function"){text=config.textExtraction(node);}else{text=$(node).text();}}return text;}function appendToTable(table,cache){if(table.config.debug){var appendTime=new Date()}var c=cache,r=c.row,n=c.normalized,totalRows=n.length,checkCell=(n[0].length-1),tableBody=$(table.tBodies[0]),rows=[];for(var i=0;i<totalRows;i++){var pos=n[i][checkCell];rows.push(r[pos]);if(!table.config.appender){var l=r[pos].length;for(var j=0;j<l;j++){tableBody[0].appendChild(r[pos][j]);}}}if(table.config.appender){table.config.appender(table,rows);}rows=null;if(table.config.debug){benchmark("Rebuilt table:",appendTime);}applyWidget(table);setTimeout(function(){$(table).trigger("sortEnd");},0);};function buildHeaders(table){if(table.config.debug){var time=new Date();}var meta=($.metadata)?true:false;var header_index=computeTableHeaderCellIndexes(table);$tableHeaders=$(table.config.selectorHeaders,table).each(function(index){this.column=header_index[this.parentNode.rowIndex+"-"+this.cellIndex];this.order=formatSortingOrder(table.config.sortInitialOrder);this.count=this.order;if(checkHeaderMetadata(this)||checkHeaderOptions(table,index))this.sortDisabled=true;if(checkHeaderOptionsSortingLocked(table,index))this.order=this.lockedOrder=checkHeaderOptionsSortingLocked(table,index);if(!this.sortDisabled){var $th=$(this).addClass(table.config.cssHeader);if(table.config.onRenderHeader)table.config.onRenderHeader.apply($th);}table.config.headerList[index]=this;});if(table.config.debug){benchmark("Built headers:",time);log($tableHeaders);}return $tableHeaders;};function computeTableHeaderCellIndexes(t){var matrix=[];var lookup={};var thead=t.getElementsByTagName('THEAD')[0];var trs=thead.getElementsByTagName('TR');for(var i=0;i<trs.length;i++){var cells=trs[i].cells;for(var j=0;j<cells.length;j++){var c=cells[j];var rowIndex=c.parentNode.rowIndex;var cellId=rowIndex+"-"+c.cellIndex;var rowSpan=c.rowSpan||1;var colSpan=c.colSpan||1
|
14 |
+
var firstAvailCol;if(typeof(matrix[rowIndex])=="undefined"){matrix[rowIndex]=[];}for(var k=0;k<matrix[rowIndex].length+1;k++){if(typeof(matrix[rowIndex][k])=="undefined"){firstAvailCol=k;break;}}lookup[cellId]=firstAvailCol;for(var k=rowIndex;k<rowIndex+rowSpan;k++){if(typeof(matrix[k])=="undefined"){matrix[k]=[];}var matrixrow=matrix[k];for(var l=firstAvailCol;l<firstAvailCol+colSpan;l++){matrixrow[l]="x";}}}}return lookup;}function checkCellColSpan(table,rows,row){var arr=[],r=table.tHead.rows,c=r[row].cells;for(var i=0;i<c.length;i++){var cell=c[i];if(cell.colSpan>1){arr=arr.concat(checkCellColSpan(table,headerArr,row++));}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell);}}}return arr;};function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true;};return false;}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true;};return false;}function checkHeaderOptionsSortingLocked(table,i){if((table.config.headers[i])&&(table.config.headers[i].lockedOrder))return table.config.headers[i].lockedOrder;return false;}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i<l;i++){getWidgetById(c[i]).format(table);}}function getWidgetById(name){var l=widgets.length;for(var i=0;i<l;i++){if(widgets[i].id.toLowerCase()==name.toLowerCase()){return widgets[i];}}};function formatSortingOrder(v){if(typeof(v)!="Number"){return(v.toLowerCase()=="desc")?1:0;}else{return(v==1)?1:0;}}function isValueInArray(v,a){var l=a.length;for(var i=0;i<l;i++){if(a[i][0]==v){return true;}}return false;}function setHeadersCss(table,$headers,list,css){$headers.removeClass(css[0]).removeClass(css[1]);var h=[];$headers.each(function(offset){if(!this.sortDisabled){h[this.column]=$(this);}});var l=list.length;for(var i=0;i<l;i++){h[list[i][0]].addClass(css[list[i][1]]);}}function fixColumnWidth(table,$headers){var c=table.config;if(c.widthFixed){var colgroup=$('<colgroup>');$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($('<col>').css('width',$(this).width()));});$(table).prepend(colgroup);};}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i<l;i++){var s=sortList[i],o=c.headerList[s[0]];o.count=s[1];o.count++;}}function multisort(table,sortList,cache){if(table.config.debug){var sortTime=new Date();}var dynamicExp="var sortWrapper = function(a,b) {",l=sortList.length;for(var i=0;i<l;i++){var c=sortList[i][0];var order=sortList[i][1];var s=(table.config.parsers[c].type=="text")?((order==0)?makeSortFunction("text","asc",c):makeSortFunction("text","desc",c)):((order==0)?makeSortFunction("numeric","asc",c):makeSortFunction("numeric","desc",c));var e="e"+i;dynamicExp+="var "+e+" = "+s;dynamicExp+="if("+e+") { return "+e+"; } ";dynamicExp+="else { ";}var orgOrderCol=cache.normalized[0].length-1;dynamicExp+="return a["+orgOrderCol+"]-b["+orgOrderCol+"];";for(var i=0;i<l;i++){dynamicExp+="}; ";}dynamicExp+="return 0; ";dynamicExp+="}; ";if(table.config.debug){benchmark("Evaling expression:"+dynamicExp,new Date());}eval(dynamicExp);cache.normalized.sort(sortWrapper);if(table.config.debug){benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime);}return cache;};function makeSortFunction(type,direction,index){var a="a["+index+"]",b="b["+index+"]";if(type=='text'&&direction=='asc'){return"("+a+" == "+b+" ? 0 : ("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : ("+a+" < "+b+") ? -1 : 1 )));";}else if(type=='text'&&direction=='desc'){return"("+a+" == "+b+" ? 0 : ("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : ("+b+" < "+a+") ? -1 : 1 )));";}else if(type=='numeric'&&direction=='asc'){return"("+a+" === null && "+b+" === null) ? 0 :("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : "+a+" - "+b+"));";}else if(type=='numeric'&&direction=='desc'){return"("+a+" === null && "+b+" === null) ? 0 :("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : "+b+" - "+a+"));";}};function makeSortText(i){return"((a["+i+"] < b["+i+"]) ? -1 : ((a["+i+"] > b["+i+"]) ? 1 : 0));";};function makeSortTextDesc(i){return"((b["+i+"] < a["+i+"]) ? -1 : ((b["+i+"] > a["+i+"]) ? 1 : 0));";};function makeSortNumeric(i){return"a["+i+"]-b["+i+"];";};function makeSortNumericDesc(i){return"b["+i+"]-a["+i+"];";};function sortText(a,b){if(table.config.sortLocaleCompare)return a.localeCompare(b);return((a<b)?-1:((a>b)?1:0));};function sortTextDesc(a,b){if(table.config.sortLocaleCompare)return b.localeCompare(a);return((b<a)?-1:((b>a)?1:0));};function sortNumeric(a,b){return a-b;};function sortNumericDesc(a,b){return b-a;};function getCachedSortType(parsers,i){return parsers[i].type;};this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies)return;var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$.data(this,"tablesorter",config);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){$this.trigger("sortStart");var $cell=$(this);var i=this.column;this.order=this.count++%2;if(this.lockedOrder)this.order=this.lockedOrder;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j<a.length;j++){if(a[j][0]!=i){config.sortList.push(a[j]);}}}config.sortList.push([i,this.order]);}else{if(isValueInArray(i,config.sortList)){for(var j=0;j<config.sortList.length;j++){var s=config.sortList[j],o=config.headerList[s[0]];if(s[0]==i){o.count=s[1];o.count++;s[1]=o.count%2;}}}else{config.sortList.push([i,this.order]);}};setTimeout(function(){setHeadersCss($this[0],$headers,config.sortList,sortCSS);appendToTable($this[0],multisort($this[0],config.sortList,cache));},1);return false;}}).mousedown(function(){if(config.cancelSelection){this.onselectstart=function(){return false};return false;}});$this.bind("update",function(){var me=this;setTimeout(function(){me.config.parsers=buildParserCache(me,$headers);cache=buildCache(me);},1);}).bind("updateCell",function(e,cell){var config=this.config;var pos=[(cell.parentNode.rowIndex-1),cell.cellIndex];cache.normalized[pos[0]][pos[1]]=config.parsers[pos[1]].format(getElementText(config,cell),cell);}).bind("sorton",function(e,list){$(this).trigger("sortStart");config.sortList=list;var sortList=config.sortList;updateHeaderSortCount(this,sortList);setHeadersCss(this,$headers,sortList,sortCSS);appendToTable(this,multisort(this,sortList,cache));}).bind("appendCache",function(){appendToTable(this,cache);}).bind("applyWidgetId",function(e,id){getWidgetById(id).format(this);}).bind("applyWidgets",function(){applyWidget(this);});if($.metadata&&($(this).metadata()&&$(this).metadata().sortlist)){config.sortList=$(this).metadata().sortlist;}if(config.sortList.length>0){$this.trigger("sorton",[config.sortList]);}applyWidget(this);});};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==parser.id.toLowerCase()){a=false;}}if(a){parsers.push(parser);};};this.addWidget=function(widget){widgets.push(widget);};this.formatFloat=function(s){var i=parseFloat(s);return(isNaN(i))?0:i;};this.formatInt=function(s){var i=parseInt(s);return(isNaN(i))?0:i;};this.isDigit=function(s,config){return/^[-+]?\d*$/.test($.trim(s.replace(/[,.']/g,'')));};this.clearTableBody=function(table){if($.browser.msie){function empty(){while(this.firstChild)this.removeChild(this.firstChild);}empty.apply(table.tBodies[0]);}else{table.tBodies[0].innerHTML="";}};}});$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:"text",is:function(s){return true;},format:function(s){return $.trim(s.toLocaleLowerCase());},type:"text"});ts.addParser({id:"digit",is:function(s,table){var c=table.config;return $.tablesorter.isDigit(s,c);},format:function(s){return $.tablesorter.formatFloat(s);},type:"numeric"});ts.addParser({id:"currency",is:function(s){return/^[£$€?.]/.test(s);},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/[£$€]/g),""));},type:"numeric"});ts.addParser({id:"ipAddress",is:function(s){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s);},format:function(s){var a=s.split("."),r="",l=a.length;for(var i=0;i<l;i++){var item=a[i];if(item.length==2){r+="0"+item;}else{r+=item;}}return $.tablesorter.formatFloat(r);},type:"numeric"});ts.addParser({id:"url",is:function(s){return/^(https?|ftp|file):\/\/$/.test(s);},format:function(s){return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//),''));},type:"text"});ts.addParser({id:"isoDate",is:function(s){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s);},format:function(s){return $.tablesorter.formatFloat((s!="")?new Date(s.replace(new RegExp(/-/g),"/")).getTime():"0");},type:"numeric"});ts.addParser({id:"percent",is:function(s){return/\%$/.test($.trim(s));},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g),""));},type:"numeric"});ts.addParser({id:"usLongDate",is:function(s){return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/));},format:function(s){return $.tablesorter.formatFloat(new Date(s).getTime());},type:"numeric"});ts.addParser({id:"shortDate",is:function(s){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s);},format:function(s,table){var c=table.config;s=s.replace(/\-/g,"/");if(c.dateFormat=="us"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2");}else if(c.dateFormat=="uk"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1");}else if(c.dateFormat=="dd/mm/yy"||c.dateFormat=="dd-mm-yy"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3");}return $.tablesorter.formatFloat(new Date(s).getTime());},type:"numeric"});ts.addParser({id:"time",is:function(s){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s);},format:function(s){return $.tablesorter.formatFloat(new Date("2000/01/01 "+s).getTime());},type:"numeric"});ts.addParser({id:"metadata",is:function(s){return false;},format:function(s,table,cell){var c=table.config,p=(!c.parserMetadataName)?'sortValue':c.parserMetadataName;return $(cell).metadata()[p];},type:"numeric"});ts.addWidget({id:"zebra",format:function(table){if(table.config.debug){var time=new Date();}var $tr,row=-1,odd;$("tr:visible",table.tBodies[0]).each(function(i){$tr=$(this);if(!$tr.hasClass(table.config.cssChildRow))row++;odd=(row%2==0);$tr.removeClass(table.config.widgetZebra.css[odd?0:1]).addClass(table.config.widgetZebra.css[odd?1:0])});if(table.config.debug){$.tablesorter.benchmark("Applying Zebra widget",time);}}});})(jQuery);
|
15 |
+
$(document).ready(function() {
|
16 |
+
$("#sitemap").tablesorter( { sortList: [[1,0]],widgets: ['zebra'] } );
|
17 |
+
});
|
18 |
+
]]></script>
|
19 |
+
</head>
|
20 |
+
<body>
|
21 |
+
<div id="content">
|
22 |
+
<h1 style="padding-left:0;">
|
23 |
+
<a href="?feed=sitemap">Squirrly SEO Sitemap - Go to Index</a>
|
24 |
+
</h1>
|
25 |
+
|
26 |
+
<p class="expl">
|
27 |
+
This sitemap contains <xsl:value-of select="count(sitemap:urlset/sitemap:url)"/> URLs.
|
28 |
+
</p>
|
29 |
+
<table id="sitemap" cellpadding="3" class="tablesorter">
|
30 |
+
<thead>
|
31 |
+
<tr>
|
32 |
+
<th width="1%"></th>
|
33 |
+
<th width="70%">URL</th>
|
34 |
+
<th width="10%">Priority</th>
|
35 |
+
<th width="10%">Change Freq.</th>
|
36 |
+
<th width="10%">Last Change</th>
|
37 |
+
</tr>
|
38 |
+
</thead>
|
39 |
+
<tbody>
|
40 |
+
<xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'"/>
|
41 |
+
<xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
|
42 |
+
|
43 |
+
<xsl:for-each select="sitemap:urlset/sitemap:url">
|
44 |
+
|
45 |
+
<tr>
|
46 |
+
<td>
|
47 |
+
<xsl:if test="count(image:image/image:loc) > 0">
|
48 |
+
|
49 |
+
<xsl:variable name="loc">
|
50 |
+
<xsl:value-of select="image:image/image:loc"/>
|
51 |
+
</xsl:variable>
|
52 |
+
<a href="{$loc}">
|
53 |
+
<img src="{$loc}" width="50" valign="middle"/>
|
54 |
+
</a>
|
55 |
+
|
56 |
+
</xsl:if>
|
57 |
+
</td>
|
58 |
+
<td>
|
59 |
+
|
60 |
+
|
61 |
+
|
62 |
+
<xsl:variable name="itemURL">
|
63 |
+
<xsl:value-of select="sitemap:loc"/>
|
64 |
+
</xsl:variable>
|
65 |
+
<a href="{$itemURL}">
|
66 |
+
<xsl:value-of select="sitemap:loc"/>
|
67 |
+
</a>
|
68 |
+
</td>
|
69 |
+
<td>
|
70 |
+
<xsl:if test="sitemap:priority">
|
71 |
+
<xsl:value-of select="concat(sitemap:priority*100,'%')"/>
|
72 |
+
</xsl:if>
|
73 |
+
</td>
|
74 |
+
<td>
|
75 |
+
<xsl:if test="sitemap:changefreq">
|
76 |
+
<xsl:value-of select="concat(translate(substring(sitemap:changefreq, 1, 1),concat($lower, $upper),concat($upper, $lower)),substring(sitemap:changefreq, 2))"/>
|
77 |
+
</xsl:if>
|
78 |
+
</td>
|
79 |
+
<td>
|
80 |
+
<xsl:if test="sitemap:lastmod">
|
81 |
+
<xsl:value-of select="concat(substring(sitemap:lastmod,0,11),concat(' ', substring(sitemap:lastmod,12,5)))"/>
|
82 |
+
</xsl:if>
|
83 |
+
</td>
|
84 |
+
|
85 |
+
</tr>
|
86 |
+
</xsl:for-each>
|
87 |
+
</tbody>
|
88 |
+
</table>
|
89 |
+
<p id="Footer" class="expl">Generated by
|
90 |
+
<a href="https://wordpress.org/plugins/squirrly-seo/" target="_blank" title="SEO Plugin By Squirrly">Squirrly SEO Plugin</a>
|
91 |
+
</p>
|
92 |
+
</div>
|
93 |
+
</body>
|
94 |
+
</html>
|
95 |
+
</xsl:template>
|
96 |
+
|
97 |
+
</xsl:stylesheet>
|
themes/default/css/sq_sitemapindex.xsl
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<xsl:stylesheet version="2.0" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
3 |
+
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
|
4 |
+
<xsl:template match="/">
|
5 |
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
6 |
+
<head>
|
7 |
+
<title>Squirrly SEO Sitemap </title>
|
8 |
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
9 |
+
<style>*{margin:0;padding:0}body{font-family:Helvetica,Arial,sans-serif;font-size:14px;color:#545353;color:#005A92;background:#B0BEC7;padding:20px}#content{margin:0 auto;max-width:1200px;background:#fff;padding:20px 30px;-webkit-box-shadow:2px 2px 5px 1px rgba(0,0,0,0.2);box-shadow:2px 2px 5px 1px rgba(0,0,0,0.2);-webkit-border-radius:5px;border-radius:5px}h1{font-size:20px;line-height:24px;font-weight:700;color:#1556B2;color:#005A92;padding-left:31px;margin:0 0 20px;display:inline-block}h1 a{font:inherit;color:inherit;text-decoration:none}h1 .ss_link{visibility:hidden;font-size:9px;display:block;text-align:right;margin-top:-5px}h1:hover .ss_link{visibility:visible;text-decoration:underline}.expl{margin:10px 3px;line-height:1.3em}.expl a{color:#1556B2;font-weight:700;text-decoration:none}.expl a:hover{text-decoration:underline}table.tablesorter{background-color:#CDCDCD;margin:20px 0 15px;font-size:8pt;width:100%;text-align:left;border:none;border-collapse:collapse;border-bottom:1px solid #005A92}table.tablesorter thead tr th,table.tablesorter tfoot tr th{background-color:#F5FAFA;font-size:8pt;padding:4px 20px 4px 10px}table.tablesorter thead tr .headerSortDown,table.tablesorter thead tr .headerSortUp{background-color:#B0BEC7;background-color:#e6EEEE}table.tablesorter thead tr .header{background-image:url(../images/bg.gif);background-repeat:no-repeat;background-position:center right;cursor:pointer;border-bottom:1px solid #005A92}table.tablesorter thead tr .headerSortUp{background-image:url(../images/asc.gif)}table.tablesorter thead tr .headerSortDown{background-image:url(../images/desc.gif)}table.tablesorter tbody td{color:#005A92;padding: 7px 5px;;vertical-align:top}table.tablesorter tbody tr{background-color:#FFF}table.tablesorter tbody tr.odd{background-color:#EFF2F3}table.tablesorter tbody tr:hover{background-color:#D8E1E8}table.tablesorter tbody a{color:#444;color:#005A92;text-decoration:none}table.tablesorter tbody a:hover{text-decoration:underline}table.tablesorter tbody tr:hover td,table.tablesorter tbody tr:hover a{color:#000}#Footer{margin:50px 0 10px;text-align:right;font-size:.8em}</style>
|
10 |
+
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
|
11 |
+
<script type="text/javascript"><![CDATA[
|
12 |
+
(function($){$.extend({tablesorter:new
|
13 |
+
function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",cssChildRow:"expand-child",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,sortLocaleCompare:true,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:'/\.|\,/g',onRenderHeader:null,selectorHeaders:'thead th',debug:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms");}this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s);}else{alert(s);}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug="";}if(table.tBodies.length==0)return;var rows=table.tBodies[0].rows;if(rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i<l;i++){var p=false;if($.metadata&&($($headers[i]).metadata()&&$($headers[i]).metadata().sorter)){p=getParserById($($headers[i]).metadata().sorter);}else if((table.config.headers[i]&&table.config.headers[i].sorter)){p=getParserById(table.config.headers[i].sorter);}if(!p){p=detectParserForColumn(table,rows,-1,i);}if(table.config.debug){parsersDebug+="column:"+i+" parser:"+p.id+"\n";}list.push(p);}}if(table.config.debug){log(parsersDebug);}return list;};function detectParserForColumn(table,rows,rowIndex,cellIndex){var l=parsers.length,node=false,nodeValue=false,keepLooking=true;while(nodeValue==''&&keepLooking){rowIndex++;if(rows[rowIndex]){node=getNodeFromRowAndCellIndex(rows,rowIndex,cellIndex);nodeValue=trimAndGetNodeText(table.config,node);if(table.config.debug){log('Checking if value was empty on row:'+rowIndex);}}else{keepLooking=false;}}for(var i=1;i<l;i++){if(parsers[i].is(nodeValue,table,node)){return parsers[i];}}return parsers[0];}function getNodeFromRowAndCellIndex(rows,rowIndex,cellIndex){return rows[rowIndex].cells[cellIndex];}function trimAndGetNodeText(config,node){return $.trim(getElementText(config,node));}function getParserById(name){var l=parsers.length;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==name.toLowerCase()){return parsers[i];}}return false;}function buildCache(table){if(table.config.debug){var cacheTime=new Date();}var totalRows=(table.tBodies[0]&&table.tBodies[0].rows.length)||0,totalCells=(table.tBodies[0].rows[0]&&table.tBodies[0].rows[0].cells.length)||0,parsers=table.config.parsers,cache={row:[],normalized:[]};for(var i=0;i<totalRows;++i){var c=$(table.tBodies[0].rows[i]),cols=[];if(c.hasClass(table.config.cssChildRow)){cache.row[cache.row.length-1]=cache.row[cache.row.length-1].add(c);continue;}cache.row.push(c);for(var j=0;j<totalCells;++j){cols.push(parsers[j].format(getElementText(table.config,c[0].cells[j]),table,c[0].cells[j]));}cols.push(cache.normalized.length);cache.normalized.push(cols);cols=null;};if(table.config.debug){benchmark("Building cache for "+totalRows+" rows:",cacheTime);}return cache;};function getElementText(config,node){var text="";if(!node)return"";if(!config.supportsTextContent)config.supportsTextContent=node.textContent||false;if(config.textExtraction=="simple"){if(config.supportsTextContent){text=node.textContent;}else{if(node.childNodes[0]&&node.childNodes[0].hasChildNodes()){text=node.childNodes[0].innerHTML;}else{text=node.innerHTML;}}}else{if(typeof(config.textExtraction)=="function"){text=config.textExtraction(node);}else{text=$(node).text();}}return text;}function appendToTable(table,cache){if(table.config.debug){var appendTime=new Date()}var c=cache,r=c.row,n=c.normalized,totalRows=n.length,checkCell=(n[0].length-1),tableBody=$(table.tBodies[0]),rows=[];for(var i=0;i<totalRows;i++){var pos=n[i][checkCell];rows.push(r[pos]);if(!table.config.appender){var l=r[pos].length;for(var j=0;j<l;j++){tableBody[0].appendChild(r[pos][j]);}}}if(table.config.appender){table.config.appender(table,rows);}rows=null;if(table.config.debug){benchmark("Rebuilt table:",appendTime);}applyWidget(table);setTimeout(function(){$(table).trigger("sortEnd");},0);};function buildHeaders(table){if(table.config.debug){var time=new Date();}var meta=($.metadata)?true:false;var header_index=computeTableHeaderCellIndexes(table);$tableHeaders=$(table.config.selectorHeaders,table).each(function(index){this.column=header_index[this.parentNode.rowIndex+"-"+this.cellIndex];this.order=formatSortingOrder(table.config.sortInitialOrder);this.count=this.order;if(checkHeaderMetadata(this)||checkHeaderOptions(table,index))this.sortDisabled=true;if(checkHeaderOptionsSortingLocked(table,index))this.order=this.lockedOrder=checkHeaderOptionsSortingLocked(table,index);if(!this.sortDisabled){var $th=$(this).addClass(table.config.cssHeader);if(table.config.onRenderHeader)table.config.onRenderHeader.apply($th);}table.config.headerList[index]=this;});if(table.config.debug){benchmark("Built headers:",time);log($tableHeaders);}return $tableHeaders;};function computeTableHeaderCellIndexes(t){var matrix=[];var lookup={};var thead=t.getElementsByTagName('THEAD')[0];var trs=thead.getElementsByTagName('TR');for(var i=0;i<trs.length;i++){var cells=trs[i].cells;for(var j=0;j<cells.length;j++){var c=cells[j];var rowIndex=c.parentNode.rowIndex;var cellId=rowIndex+"-"+c.cellIndex;var rowSpan=c.rowSpan||1;var colSpan=c.colSpan||1
|
14 |
+
var firstAvailCol;if(typeof(matrix[rowIndex])=="undefined"){matrix[rowIndex]=[];}for(var k=0;k<matrix[rowIndex].length+1;k++){if(typeof(matrix[rowIndex][k])=="undefined"){firstAvailCol=k;break;}}lookup[cellId]=firstAvailCol;for(var k=rowIndex;k<rowIndex+rowSpan;k++){if(typeof(matrix[k])=="undefined"){matrix[k]=[];}var matrixrow=matrix[k];for(var l=firstAvailCol;l<firstAvailCol+colSpan;l++){matrixrow[l]="x";}}}}return lookup;}function checkCellColSpan(table,rows,row){var arr=[],r=table.tHead.rows,c=r[row].cells;for(var i=0;i<c.length;i++){var cell=c[i];if(cell.colSpan>1){arr=arr.concat(checkCellColSpan(table,headerArr,row++));}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell);}}}return arr;};function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true;};return false;}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true;};return false;}function checkHeaderOptionsSortingLocked(table,i){if((table.config.headers[i])&&(table.config.headers[i].lockedOrder))return table.config.headers[i].lockedOrder;return false;}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i<l;i++){getWidgetById(c[i]).format(table);}}function getWidgetById(name){var l=widgets.length;for(var i=0;i<l;i++){if(widgets[i].id.toLowerCase()==name.toLowerCase()){return widgets[i];}}};function formatSortingOrder(v){if(typeof(v)!="Number"){return(v.toLowerCase()=="desc")?1:0;}else{return(v==1)?1:0;}}function isValueInArray(v,a){var l=a.length;for(var i=0;i<l;i++){if(a[i][0]==v){return true;}}return false;}function setHeadersCss(table,$headers,list,css){$headers.removeClass(css[0]).removeClass(css[1]);var h=[];$headers.each(function(offset){if(!this.sortDisabled){h[this.column]=$(this);}});var l=list.length;for(var i=0;i<l;i++){h[list[i][0]].addClass(css[list[i][1]]);}}function fixColumnWidth(table,$headers){var c=table.config;if(c.widthFixed){var colgroup=$('<colgroup>');$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($('<col>').css('width',$(this).width()));});$(table).prepend(colgroup);};}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i<l;i++){var s=sortList[i],o=c.headerList[s[0]];o.count=s[1];o.count++;}}function multisort(table,sortList,cache){if(table.config.debug){var sortTime=new Date();}var dynamicExp="var sortWrapper = function(a,b) {",l=sortList.length;for(var i=0;i<l;i++){var c=sortList[i][0];var order=sortList[i][1];var s=(table.config.parsers[c].type=="text")?((order==0)?makeSortFunction("text","asc",c):makeSortFunction("text","desc",c)):((order==0)?makeSortFunction("numeric","asc",c):makeSortFunction("numeric","desc",c));var e="e"+i;dynamicExp+="var "+e+" = "+s;dynamicExp+="if("+e+") { return "+e+"; } ";dynamicExp+="else { ";}var orgOrderCol=cache.normalized[0].length-1;dynamicExp+="return a["+orgOrderCol+"]-b["+orgOrderCol+"];";for(var i=0;i<l;i++){dynamicExp+="}; ";}dynamicExp+="return 0; ";dynamicExp+="}; ";if(table.config.debug){benchmark("Evaling expression:"+dynamicExp,new Date());}eval(dynamicExp);cache.normalized.sort(sortWrapper);if(table.config.debug){benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime);}return cache;};function makeSortFunction(type,direction,index){var a="a["+index+"]",b="b["+index+"]";if(type=='text'&&direction=='asc'){return"("+a+" == "+b+" ? 0 : ("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : ("+a+" < "+b+") ? -1 : 1 )));";}else if(type=='text'&&direction=='desc'){return"("+a+" == "+b+" ? 0 : ("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : ("+b+" < "+a+") ? -1 : 1 )));";}else if(type=='numeric'&&direction=='asc'){return"("+a+" === null && "+b+" === null) ? 0 :("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : "+a+" - "+b+"));";}else if(type=='numeric'&&direction=='desc'){return"("+a+" === null && "+b+" === null) ? 0 :("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : "+b+" - "+a+"));";}};function makeSortText(i){return"((a["+i+"] < b["+i+"]) ? -1 : ((a["+i+"] > b["+i+"]) ? 1 : 0));";};function makeSortTextDesc(i){return"((b["+i+"] < a["+i+"]) ? -1 : ((b["+i+"] > a["+i+"]) ? 1 : 0));";};function makeSortNumeric(i){return"a["+i+"]-b["+i+"];";};function makeSortNumericDesc(i){return"b["+i+"]-a["+i+"];";};function sortText(a,b){if(table.config.sortLocaleCompare)return a.localeCompare(b);return((a<b)?-1:((a>b)?1:0));};function sortTextDesc(a,b){if(table.config.sortLocaleCompare)return b.localeCompare(a);return((b<a)?-1:((b>a)?1:0));};function sortNumeric(a,b){return a-b;};function sortNumericDesc(a,b){return b-a;};function getCachedSortType(parsers,i){return parsers[i].type;};this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies)return;var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$.data(this,"tablesorter",config);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){$this.trigger("sortStart");var $cell=$(this);var i=this.column;this.order=this.count++%2;if(this.lockedOrder)this.order=this.lockedOrder;if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j<a.length;j++){if(a[j][0]!=i){config.sortList.push(a[j]);}}}config.sortList.push([i,this.order]);}else{if(isValueInArray(i,config.sortList)){for(var j=0;j<config.sortList.length;j++){var s=config.sortList[j],o=config.headerList[s[0]];if(s[0]==i){o.count=s[1];o.count++;s[1]=o.count%2;}}}else{config.sortList.push([i,this.order]);}};setTimeout(function(){setHeadersCss($this[0],$headers,config.sortList,sortCSS);appendToTable($this[0],multisort($this[0],config.sortList,cache));},1);return false;}}).mousedown(function(){if(config.cancelSelection){this.onselectstart=function(){return false};return false;}});$this.bind("update",function(){var me=this;setTimeout(function(){me.config.parsers=buildParserCache(me,$headers);cache=buildCache(me);},1);}).bind("updateCell",function(e,cell){var config=this.config;var pos=[(cell.parentNode.rowIndex-1),cell.cellIndex];cache.normalized[pos[0]][pos[1]]=config.parsers[pos[1]].format(getElementText(config,cell),cell);}).bind("sorton",function(e,list){$(this).trigger("sortStart");config.sortList=list;var sortList=config.sortList;updateHeaderSortCount(this,sortList);setHeadersCss(this,$headers,sortList,sortCSS);appendToTable(this,multisort(this,sortList,cache));}).bind("appendCache",function(){appendToTable(this,cache);}).bind("applyWidgetId",function(e,id){getWidgetById(id).format(this);}).bind("applyWidgets",function(){applyWidget(this);});if($.metadata&&($(this).metadata()&&$(this).metadata().sortlist)){config.sortList=$(this).metadata().sortlist;}if(config.sortList.length>0){$this.trigger("sorton",[config.sortList]);}applyWidget(this);});};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==parser.id.toLowerCase()){a=false;}}if(a){parsers.push(parser);};};this.addWidget=function(widget){widgets.push(widget);};this.formatFloat=function(s){var i=parseFloat(s);return(isNaN(i))?0:i;};this.formatInt=function(s){var i=parseInt(s);return(isNaN(i))?0:i;};this.isDigit=function(s,config){return/^[-+]?\d*$/.test($.trim(s.replace(/[,.']/g,'')));};this.clearTableBody=function(table){if($.browser.msie){function empty(){while(this.firstChild)this.removeChild(this.firstChild);}empty.apply(table.tBodies[0]);}else{table.tBodies[0].innerHTML="";}};}});$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:"text",is:function(s){return true;},format:function(s){return $.trim(s.toLocaleLowerCase());},type:"text"});ts.addParser({id:"digit",is:function(s,table){var c=table.config;return $.tablesorter.isDigit(s,c);},format:function(s){return $.tablesorter.formatFloat(s);},type:"numeric"});ts.addParser({id:"currency",is:function(s){return/^[£$€?.]/.test(s);},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/[£$€]/g),""));},type:"numeric"});ts.addParser({id:"ipAddress",is:function(s){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s);},format:function(s){var a=s.split("."),r="",l=a.length;for(var i=0;i<l;i++){var item=a[i];if(item.length==2){r+="0"+item;}else{r+=item;}}return $.tablesorter.formatFloat(r);},type:"numeric"});ts.addParser({id:"url",is:function(s){return/^(https?|ftp|file):\/\/$/.test(s);},format:function(s){return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//),''));},type:"text"});ts.addParser({id:"isoDate",is:function(s){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s);},format:function(s){return $.tablesorter.formatFloat((s!="")?new Date(s.replace(new RegExp(/-/g),"/")).getTime():"0");},type:"numeric"});ts.addParser({id:"percent",is:function(s){return/\%$/.test($.trim(s));},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g),""));},type:"numeric"});ts.addParser({id:"usLongDate",is:function(s){return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/));},format:function(s){return $.tablesorter.formatFloat(new Date(s).getTime());},type:"numeric"});ts.addParser({id:"shortDate",is:function(s){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s);},format:function(s,table){var c=table.config;s=s.replace(/\-/g,"/");if(c.dateFormat=="us"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2");}else if(c.dateFormat=="uk"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1");}else if(c.dateFormat=="dd/mm/yy"||c.dateFormat=="dd-mm-yy"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3");}return $.tablesorter.formatFloat(new Date(s).getTime());},type:"numeric"});ts.addParser({id:"time",is:function(s){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s);},format:function(s){return $.tablesorter.formatFloat(new Date("2000/01/01 "+s).getTime());},type:"numeric"});ts.addParser({id:"metadata",is:function(s){return false;},format:function(s,table,cell){var c=table.config,p=(!c.parserMetadataName)?'sortValue':c.parserMetadataName;return $(cell).metadata()[p];},type:"numeric"});ts.addWidget({id:"zebra",format:function(table){if(table.config.debug){var time=new Date();}var $tr,row=-1,odd;$("tr:visible",table.tBodies[0]).each(function(i){$tr=$(this);if(!$tr.hasClass(table.config.cssChildRow))row++;odd=(row%2==0);$tr.removeClass(table.config.widgetZebra.css[odd?0:1]).addClass(table.config.widgetZebra.css[odd?1:0])});if(table.config.debug){$.tablesorter.benchmark("Applying Zebra widget",time);}}});})(jQuery);
|
15 |
+
$(document).ready(function() {
|
16 |
+
$("#sitemap").tablesorter( { sortList: [[0,0]],widgets: ['zebra'] } );
|
17 |
+
});
|
18 |
+
]]></script>
|
19 |
+
</head>
|
20 |
+
<body>
|
21 |
+
<div id="content">
|
22 |
+
<h1 style="padding-left:0;">Squirrly SEO Sitemap Index</h1>
|
23 |
+
|
24 |
+
<p class="expl">
|
25 |
+
This sitemap consists of <xsl:value-of select="count(sitemap:sitemapindex/sitemap:sitemap)"/> part(s).
|
26 |
+
</p>
|
27 |
+
<table id="sitemapindex" cellpadding="3" class="tablesorter">
|
28 |
+
<thead>
|
29 |
+
<tr>
|
30 |
+
<th width="80%">URL</th>
|
31 |
+
<th width="20%">Last Change</th>
|
32 |
+
</tr>
|
33 |
+
</thead>
|
34 |
+
<tbody>
|
35 |
+
<xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'"/>
|
36 |
+
<xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
|
37 |
+
<xsl:for-each select="sitemap:sitemapindex/sitemap:sitemap">
|
38 |
+
<tr>
|
39 |
+
<td>
|
40 |
+
<xsl:variable name="itemURL">
|
41 |
+
<xsl:value-of select="sitemap:loc"/>
|
42 |
+
</xsl:variable>
|
43 |
+
<a href="{$itemURL}">
|
44 |
+
<xsl:value-of select="sitemap:loc"/>
|
45 |
+
</a>
|
46 |
+
</td>
|
47 |
+
<td>
|
48 |
+
<xsl:value-of select="concat(substring(sitemap:lastmod,0,11),concat(' ', substring(sitemap:lastmod,12,5)))"/>
|
49 |
+
</td>
|
50 |
+
</tr>
|
51 |
+
</xsl:for-each>
|
52 |
+
</tbody>
|
53 |
+
</table>
|
54 |
+
<p id="Footer" class="expl">Generated by
|
55 |
+
<a href="https://wordpress.org/plugins/squirrly-seo/" target="_blank" title="SEO Plugin By Squirrly">Squirrly SEO Plugin</a>
|
56 |
+
</p>
|
57 |
+
</div>
|
58 |
+
</body>
|
59 |
+
</html>
|
60 |
+
</xsl:template>
|
61 |
+
</xsl:stylesheet>
|
themes/default/img/avatar-margin.png
DELETED
Binary file
|
themes/default/img/banners/banner1.jpg
CHANGED
Binary file
|
themes/default/img/banners/banner2.jpg
CHANGED
Binary file
|
themes/default/img/banners/banner3.png
DELETED
Binary file
|
themes/default/img/complete.png
DELETED
Binary file
|
themes/default/img/dashboard_analytics.png
DELETED
Binary file
|
themes/default/img/dashboard_assistant.png
DELETED
Binary file
|
themes/default/img/dashboard_audit.png
DELETED
Binary file
|
themes/default/img/dashboard_research.png
DELETED
Binary file
|
themes/default/img/editor/complete.png
ADDED
Binary file
|
themes/default/img/editor/heading.png
ADDED
Binary file
|
themes/default/img/{sq_searching.gif → editor/sq_searching.gif}
RENAMED
File without changes
|
themes/default/img/front/avatar-margin.png
ADDED
Binary file
|
themes/default/img/header_back.png
DELETED
Binary file
|
themes/default/img/header_stars.png
DELETED
Binary file
|
themes/default/img/heading.png
DELETED
Binary file
|
themes/default/img/loading.gif
CHANGED
Binary file
|
themes/default/img/menu_icon_16.png
DELETED
Binary file
|
themes/default/img/minloading.gif
CHANGED
Binary file
|
themes/default/img/minloading.png
ADDED
Binary file
|
themes/default/img/settings/facebook.png
ADDED
Binary file
|
themes/default/img/settings/facebook_tmb.png
ADDED
Binary file
|
themes/default/img/settings/googlejsonld.png
ADDED
Binary file
|
themes/default/img/settings/googlejsonld_tmb.png
ADDED
Binary file
|
themes/default/img/settings/header_stars.png
ADDED
Binary file
|
themes/default/img/{settings_login.jpg → settings/login.jpg}
RENAMED
File without changes
|
themes/default/img/{settings_login_done.jpg → settings/login_done.jpg}
RENAMED
File without changes
|
themes/default/img/settings/menu_icon_16.png
ADDED
Binary file
|
themes/default/img/settings/squirrly.png
ADDED
Binary file
|
themes/default/img/settings/twitter.png
ADDED
Binary file
|
themes/default/img/settings/twitter_tmb.png
ADDED
Binary file
|
themes/default/img/settings_edit.png
DELETED
Binary file
|
themes/default/img/settings_howto.jpg
DELETED
Binary file
|
themes/default/img/sprite.png
CHANGED
Binary file
|
themes/default/img/status/backgroundv2.jpg
DELETED
Binary file
|
themes/default/img/status/squirrly_cheers.png
DELETED
Binary file
|
themes/default/js/sq_blockaudit.js
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
|
2 |
-
function sq_checkAudit(sq_dash_url,sq_token){jQuery.getJSON(sq_dash_url+'api/?callback=?',{action:'check_audit',token:sq_token},function(data){if(typeof data.audit!=='undefined'&&typeof data.error!=='undefined'){if(data.audit===true&&data.error===false){if(typeof data.datetime!=='undefined'&&jQuery('sq_audit_date').length===0){jQuery("#sq_dashboard").find('.sq_dashboard_audit').append('<span id="sq_audit_date">Last update: '+data.datetime+'</span>');}
|
3 |
-
jQuery("#sq_dashboard").find('.sq_dashboard_audit').bind('click',function(){var href=sq_dash_url+'user/audit/'+sq_token;var win=window.open(href,'_blank');win.focus();});}else{jQuery("#sq_dashboard").find('#sq_audit_error').show();jQuery("#sq_dashboard").find('.sq_dashboard_audit').bind('click',function(){alert(jQuery("#sq_dashboard").find('#sq_audit_error').html());});}}else{jQuery("#sq_dashboard").find('.sq_audit_error').html('Could not connect to server!');jQuery("#sq_dashboard").find('.sq_audit_error').show();}});}
|
|
|
|
|
|
themes/default/js/sq_blockdashboard.js
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(document).ready(function () {
|
2 |
+
if (jQuery('#sq_settings_login').length > 0) {
|
3 |
+
jQuery('#sq_settings_login').after(jQuery('.sq_helpcontent'));
|
4 |
+
}
|
5 |
+
jQuery('.sq_helpcontent').show();
|
6 |
+
jQuery('.sq_slidelist a').bind('click', function () {
|
7 |
+
var li = jQuery(this).parent('li');
|
8 |
+
li.addClass('sq_loading');
|
9 |
+
li.find('a').hide();
|
10 |
+
li.find('div').hide();
|
11 |
+
if (li.find('iframe').length == 0) {
|
12 |
+
li.append('<iframe src="//www.slideshare.net/slideshow/embed_code/' + li.find('a').attr('rel') + '" width="327" height="250" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="display:none; max-width: 100%; max-height: 100%;" allowfullscreen> </iframe>');
|
13 |
+
}
|
14 |
+
li.find('iframe').show();
|
15 |
+
li.append('<span>x</span>');
|
16 |
+
|
17 |
+
li.find('span').bind('click', function () {
|
18 |
+
var li = jQuery(this).parent('li');
|
19 |
+
li.find('a').show();
|
20 |
+
li.find('div').show();
|
21 |
+
li.find('iframe').hide();
|
22 |
+
jQuery(this).remove();
|
23 |
+
});
|
24 |
+
});
|
25 |
+
|
26 |
+
});
|
themes/default/js/sq_blocklogin.js
CHANGED
@@ -1,24 +1,231 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
2 |
-
if(
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
jQuery('#
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if (jQuery('#sq_blocklogin').length > 0) {
|
2 |
+
sq_blocklogin();
|
3 |
+
} else {
|
4 |
+
jQuery(document).ready(function () {
|
5 |
+
sq_blocklogin();
|
6 |
+
});
|
7 |
+
}
|
8 |
+
var sq_blocklogin = function () {
|
9 |
+
jQuery('#sq_email').bind('keypress', function (event) {
|
10 |
|
11 |
+
if (event.keyCode === 13)
|
12 |
+
sq_autoLogin();
|
13 |
+
|
14 |
+
return event.keyCode !== 13;
|
15 |
+
});
|
16 |
+
|
17 |
+
jQuery('#sq_user').bind('keypress', function (event) {
|
18 |
+
|
19 |
+
if (event.keyCode === 13)
|
20 |
+
jQuery('#sq_login').trigger('click');
|
21 |
+
|
22 |
+
return event.keyCode !== 13;
|
23 |
+
});
|
24 |
+
|
25 |
+
jQuery('#sq_password').bind('keypress', function (event) {
|
26 |
+
|
27 |
+
if (event.keyCode === 13)
|
28 |
+
jQuery('#sq_login').trigger('click');
|
29 |
+
|
30 |
+
return event.keyCode !== 13;
|
31 |
+
});
|
32 |
+
|
33 |
+
jQuery('#sq_signin').bind('click', function (event) {
|
34 |
+
jQuery('#sq_autologin').hide();
|
35 |
+
jQuery('#sq_blocklogin').find('ul').show();
|
36 |
+
|
37 |
+
//jQuery('#sq_blocklogin').find('.sq_message').html(response.info).show();
|
38 |
+
jQuery('#sq_user').val(jQuery('#sq_email').val());
|
39 |
+
jQuery('#sq_email').focus();
|
40 |
+
});
|
41 |
+
|
42 |
+
jQuery('#sq_signup').bind('click', function (event) {
|
43 |
+
jQuery('#sq_autologin').show();
|
44 |
+
jQuery('#sq_blocklogin').find('ul').hide();
|
45 |
+
|
46 |
+
//jQuery('#sq_blocklogin').find('.sq_message').html(response.info).show();
|
47 |
+
//jQuery('#sq_user').val(jQuery('#sq_email').val());
|
48 |
+
jQuery('#sq_email').focus();
|
49 |
+
});
|
50 |
+
|
51 |
+
jQuery('#sq_login').bind('click', function () {
|
52 |
+
jQuery('#sq_login').addClass('sq_minloading');
|
53 |
+
jQuery('#sq_login').attr("disabled", "disabled");
|
54 |
+
jQuery('#sq_login').val('');
|
55 |
+
|
56 |
+
jQuery.getJSON(
|
57 |
+
sqQuery.ajaxurl,
|
58 |
+
{
|
59 |
+
action: 'sq_login',
|
60 |
+
user: jQuery('#sq_user').val(),
|
61 |
+
password: jQuery('#sq_password').val(),
|
62 |
+
nonce: sqQuery.nonce
|
63 |
+
}
|
64 |
+
).success(function (response) {
|
65 |
+
if (typeof response.error !== 'undefined')
|
66 |
+
if (response.error === 'invalid_token') {
|
67 |
+
|
68 |
+
jQuery.getJSON(
|
69 |
+
sqQuery.ajaxurl,
|
70 |
+
{
|
71 |
+
action: 'sq_reset',
|
72 |
+
nonce: sqQuery.nonce
|
73 |
+
}
|
74 |
+
).success(function (response) {
|
75 |
+
if (typeof response.reset !== 'undefined')
|
76 |
+
if (response.reset === 'success')
|
77 |
+
location.reload();
|
78 |
+
});
|
79 |
+
}
|
80 |
+
jQuery('#sq_login').removeAttr("disabled");
|
81 |
+
jQuery('#sq_login').val('Login');
|
82 |
+
jQuery('#sq_login').removeClass('sq_minloading');
|
83 |
+
if (typeof response.token !== 'undefined') {
|
84 |
+
__token = response.token;
|
85 |
+
sq_reload(response);
|
86 |
+
} else
|
87 |
+
if (typeof response.error !== 'undefined')
|
88 |
+
jQuery('#sq_blocklogin').find('.sq_error').html(response.error);
|
89 |
+
|
90 |
+
}).error(function (response) {
|
91 |
+
if (response.status === 200 && response.responseText.indexOf('{') > 0) {
|
92 |
+
response.responseText = response.responseText.substr(response.responseText.indexOf('{'), response.responseText.lastIndexOf('}'));
|
93 |
+
try {
|
94 |
+
response = jQuery.parseJSON(response.responseText);
|
95 |
+
jQuery('#sq_login').removeAttr("disabled");
|
96 |
+
jQuery('#sq_login').val('Login');
|
97 |
+
jQuery('#sq_login').removeClass('sq_minloading');
|
98 |
+
|
99 |
+
if (typeof response.token !== 'undefined') {
|
100 |
+
__token = response.token;
|
101 |
+
sq_reload(response);
|
102 |
+
} else
|
103 |
+
if (typeof response.error !== 'undefined')
|
104 |
+
jQuery('#sq_blocklogin').find('.sq_error').html(response.error);
|
105 |
+
|
106 |
+
} catch (e) {
|
107 |
+
}
|
108 |
+
|
109 |
+
} else {
|
110 |
+
jQuery('#sq_login').removeAttr("disabled");
|
111 |
+
jQuery('#sq_login').val('Login');
|
112 |
+
jQuery('#sq_login').removeClass('sq_minloading');
|
113 |
+
jQuery('#sq_blocklogin').find('.sq_error').html(__error_login);
|
114 |
+
}
|
115 |
+
});
|
116 |
+
});
|
117 |
+
}
|
118 |
+
|
119 |
+
var sq_autoLogin = function () {
|
120 |
+
if (!checkEmail(jQuery('#sq_email').val())) {
|
121 |
+
jQuery('#sq_blocklogin').find('.sq_error').html(__invalid_email);
|
122 |
+
jQuery('#sq_register_email').show();
|
123 |
+
jQuery('#sq_register').html(__try_again);
|
124 |
+
return false;
|
125 |
+
}
|
126 |
+
|
127 |
+
jQuery('#sq_register').html(__connecting);
|
128 |
+
jQuery('#sq_register_wait').addClass('sq_minloading');
|
129 |
+
jQuery('#sq_blocklogin').find('.sq_message').hide();
|
130 |
+
|
131 |
+
|
132 |
+
jQuery.getJSON(
|
133 |
+
sqQuery.ajaxurl,
|
134 |
+
{
|
135 |
+
action: 'sq_register',
|
136 |
+
email: jQuery('#sq_email').val(),
|
137 |
+
nonce: sqQuery.nonce
|
138 |
+
}
|
139 |
+
).success(function (response) {
|
140 |
+
|
141 |
+
jQuery('#sq_register_wait').removeClass('sq_minloading');
|
142 |
+
if (typeof response.token !== 'undefined') {
|
143 |
+
__token = response.token;
|
144 |
+
if (typeof response.success !== 'undefined') {
|
145 |
+
jQuery('#sq_login_success').html(response.success);
|
146 |
+
}
|
147 |
+
//window.sq_main.load();
|
148 |
+
sq_reload(response);
|
149 |
+
} else {
|
150 |
+
if (typeof response.info !== 'undefined') {
|
151 |
+
jQuery('#sq_autologin').hide();
|
152 |
+
jQuery('#sq_blocklogin').find('ul').show();
|
153 |
+
|
154 |
+
jQuery('#sq_blocklogin').find('.sq_message').html(response.info).show();
|
155 |
+
jQuery('#sq_user').val(jQuery('#sq_email').val());
|
156 |
+
jQuery('#sq_password').focus();
|
157 |
+
} else {
|
158 |
+
if (typeof response.error !== 'undefined') {
|
159 |
+
jQuery('#sq_blocklogin').find('.sq_error').html(response.error);
|
160 |
+
jQuery('#sq_register_email').show();
|
161 |
+
jQuery('#sq_register').html(__try_again);
|
162 |
+
}
|
163 |
+
}
|
164 |
+
|
165 |
+
}
|
166 |
+
|
167 |
+
}).error(function (response) {
|
168 |
+
if (response.status === 200 && response.responseText.indexOf('{') > 0) {
|
169 |
+
response.responseText = response.responseText.substr(response.responseText.indexOf('{'), response.responseText.lastIndexOf('}'));
|
170 |
+
try {
|
171 |
+
response = jQuery.parseJSON(response.responseText);
|
172 |
+
if (typeof response.info !== 'undefined') {
|
173 |
+
jQuery('#sq_autologin').hide();
|
174 |
+
jQuery('#sq_blocklogin').find('ul').show();
|
175 |
+
|
176 |
+
jQuery('#sq_blocklogin').find('.sq_message').html(response.info).show();
|
177 |
+
jQuery('#sq_user').val(jQuery('#sq_email').val());
|
178 |
+
jQuery('#sq_password').focus();
|
179 |
+
} else {
|
180 |
+
if (typeof response.error !== 'undefined') {
|
181 |
+
jQuery('#sq_blocklogin').find('.sq_error').html(response.error);
|
182 |
+
jQuery('#sq_register_email').show();
|
183 |
+
jQuery('#sq_register').html(__try_again);
|
184 |
+
}
|
185 |
+
}
|
186 |
+
} catch (e) {
|
187 |
+
}
|
188 |
+
|
189 |
+
} else {
|
190 |
+
|
191 |
+
jQuery('#sq_register_wait').removeClass('sq_minloading');
|
192 |
+
jQuery('#sq_blocklogin').find('.sq_error').html(__error_login);
|
193 |
+
jQuery('#sq_register_email').show();
|
194 |
+
jQuery('#sq_register').html(__try_again);
|
195 |
+
}
|
196 |
+
});
|
197 |
+
}
|
198 |
+
|
199 |
+
var sq_reload = function (response) {
|
200 |
+
if (typeof response.success !== 'undefined') {
|
201 |
+
jQuery('#sq_login_success').html(response.success);
|
202 |
+
}
|
203 |
+
if (jQuery('#content-html').length > 0) {
|
204 |
+
jQuery('#sq_blocklogin').remove();
|
205 |
+
location.reload();
|
206 |
+
} else {
|
207 |
+
if (jQuery('#sq_blocklogin').length === 0)
|
208 |
+
jQuery('#sq_settings').prepend('<div id="sq_blocklogin">');
|
209 |
+
jQuery('#sq_blocklogin').addClass('sq_login_done');
|
210 |
+
jQuery('#sq_blocklogin').html(jQuery('#sq_login_success'));
|
211 |
+
|
212 |
+
jQuery('#sq_blocklogin').append(jQuery('#sq_goto_dashboard'));
|
213 |
+
jQuery('#sq_login_success').show();
|
214 |
+
jQuery('#sq_goto_dashboard').show();
|
215 |
+
jQuery('.sq_login_link').after(jQuery('#sq_goto_dashboard').clone());
|
216 |
+
jQuery('.sq_login_link').remove();
|
217 |
+
}
|
218 |
+
}
|
219 |
+
|
220 |
+
var checkEmail = function (email) {
|
221 |
+
var emailRegEx = /^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i;
|
222 |
+
|
223 |
+
if (email !== '')
|
224 |
+
if (emailRegEx.test(email)) {
|
225 |
+
return true;
|
226 |
+
} else {
|
227 |
+
return false;
|
228 |
+
}
|
229 |
+
|
230 |
+
return true;
|
231 |
+
}
|
themes/default/js/sq_blocksettings.js
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if (jQuery('#sq_settings').length > 0) {
|
2 |
+
sq_blocksettings();
|
3 |
+
} else {
|
4 |
+
jQuery(document).ready(function () {
|
5 |
+
sq_blocksettings();
|
6 |
+
});
|
7 |
+
}
|
8 |
+
|
9 |
+
var sq_blocksettings = function () {
|
10 |
+
jQuery('#sq_selectall').click(function (event) { //on click
|
11 |
+
if (this.checked) { // check select status
|
12 |
+
jQuery('#sq_post_type_option input').each(function () { //loop through each checkbox
|
13 |
+
this.checked = true; //select all checkboxes with class "checkbox1"
|
14 |
+
});
|
15 |
+
} else {
|
16 |
+
jQuery('#sq_post_type_option input').each(function () { //loop through each checkbox
|
17 |
+
this.checked = false; //deselect all checkboxes with class "checkbox1"
|
18 |
+
});
|
19 |
+
}
|
20 |
+
});
|
21 |
+
|
22 |
+
}
|
23 |
+
//Submit the settings
|
24 |
+
var sq_submitSettings = function () {
|
25 |
+
|
26 |
+
var sq_post_types = [];
|
27 |
+
var serialize = jQuery('#sq_settings').find('input[class=sq_post_types]').serializeArray()
|
28 |
+
jQuery(serialize).each(function () {
|
29 |
+
sq_post_types.push(jQuery(this).attr('value'));
|
30 |
+
});
|
31 |
+
|
32 |
+
jQuery.getJSON(
|
33 |
+
sqQuery.ajaxurl,
|
34 |
+
{
|
35 |
+
action: 'sq_settings_update',
|
36 |
+
sq_post_types: sq_post_types,
|
37 |
+
sq_keyword_help: jQuery('#sq_settings').find('input[name=sq_keyword_help]:checked').val(),
|
38 |
+
sq_keyword_information: jQuery('#sq_settings').find('input[name=sq_keyword_information]:checked').val(),
|
39 |
+
// --
|
40 |
+
sq_google_country: jQuery('#sq_settings').find('select[name=sq_google_country] option:selected').val(),
|
41 |
+
sq_google_country_strict: jQuery('#sq_settings').find('input[name=sq_google_country_strict]:checked').val(),
|
42 |
+
sq_google_ranksperhour: jQuery('#sq_settings').find('select[name=sq_google_ranksperhour] option:selected').val(),
|
43 |
+
// --
|
44 |
+
sq_sla: jQuery('#sq_settings').find('input[name=sq_sla]:checked').val(),
|
45 |
+
sq_keywordtag: jQuery('#sq_settings').find('input[name=sq_keywordtag]:checked').val(),
|
46 |
+
sq_local_images: jQuery('#sq_settings').find('input[name=sq_local_images]:checked').val(),
|
47 |
+
// --
|
48 |
+
sq_google_wt: jQuery('#sq_settings').find('input[name=sq_google_wt]').val(),
|
49 |
+
sq_bing_wt: jQuery('#sq_settings').find('input[name=sq_bing_wt]').val(),
|
50 |
+
sq_alexa: jQuery('#sq_settings').find('input[name=sq_alexa]').val(),
|
51 |
+
// --
|
52 |
+
nonce: sqQuery.nonce
|
53 |
+
}
|
54 |
+
).success(function () {
|
55 |
+
showSaved(2000);
|
56 |
+
});
|
57 |
+
|
58 |
+
}
|
themes/default/js/sq_blocksettingsseo.js
ADDED
@@ -0,0 +1,302 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if (jQuery('#sq_settings').length > 0) {
|
2 |
+
sq_blocksettingsseo();
|
3 |
+
} else {
|
4 |
+
jQuery(document).ready(function () {
|
5 |
+
sq_blocksettingsseo();
|
6 |
+
});
|
7 |
+
}
|
8 |
+
|
9 |
+
var sq_blocksettingsseo = function () {
|
10 |
+
|
11 |
+
///////////////////////////////
|
12 |
+
var snippet_timeout;
|
13 |
+
//switch click
|
14 |
+
jQuery('#sq_settings_form').find('input[name=sq_auto_title],input[name=sq_auto_description]').bind('click', function () {
|
15 |
+
sq_getSnippet();
|
16 |
+
});
|
17 |
+
|
18 |
+
//Custom title/description
|
19 |
+
jQuery('#sq_customize').bind('click', function () {
|
20 |
+
jQuery('#sq_customize_settings').show();
|
21 |
+
jQuery('#sq_snippet_disclaimer').show();
|
22 |
+
jQuery('#sq_title_description_keywords').addClass('sq_custom_title');
|
23 |
+
});
|
24 |
+
|
25 |
+
jQuery('.sq_checkissues').bind('click', function () {
|
26 |
+
location.href = '?page=sq_seo&action=sq_checkissues&nonce=' + jQuery('#sq_settings_form').find('input[name=nonce]').val();
|
27 |
+
});
|
28 |
+
|
29 |
+
//Listen the title field imput for snippet preview
|
30 |
+
jQuery('#sq_settings').find('input[name=sq_fp_title]').bind('keyup', function () {
|
31 |
+
if (snippet_timeout) {
|
32 |
+
clearTimeout(snippet_timeout);
|
33 |
+
}
|
34 |
+
|
35 |
+
snippet_timeout = setTimeout(function () {
|
36 |
+
sq_submitSettings();
|
37 |
+
sq_getSnippet();
|
38 |
+
}, 1000);
|
39 |
+
|
40 |
+
sq_trackLength(jQuery(this), 'title');
|
41 |
+
});
|
42 |
+
|
43 |
+
//Listen the description field imput for snippet preview
|
44 |
+
jQuery('#sq_settings').find('textarea[name=sq_fp_description]').bind('keyup', function () {
|
45 |
+
if (snippet_timeout) {
|
46 |
+
clearTimeout(snippet_timeout);
|
47 |
+
}
|
48 |
+
|
49 |
+
snippet_timeout = setTimeout(function () {
|
50 |
+
sq_submitSettings();
|
51 |
+
sq_getSnippet();
|
52 |
+
}, 1000);
|
53 |
+
|
54 |
+
sq_trackLength(jQuery(this), 'description');
|
55 |
+
});
|
56 |
+
|
57 |
+
jQuery('#sq_settings').find('input[name=sq_fp_keywords]').bind('keyup', function () {
|
58 |
+
if (snippet_timeout) {
|
59 |
+
clearTimeout(snippet_timeout);
|
60 |
+
}
|
61 |
+
|
62 |
+
snippet_timeout = setTimeout(function () {
|
63 |
+
sq_submitSettings();
|
64 |
+
}, 1000);
|
65 |
+
|
66 |
+
});
|
67 |
+
|
68 |
+
//Squirrly On/Off
|
69 |
+
if (jQuery('#sq_settings').find('input[name=sq_auto_seo]').length > 0) {
|
70 |
+
sq_getSnippet();
|
71 |
+
}
|
72 |
+
|
73 |
+
//Listen the favicon switch
|
74 |
+
jQuery('#sq_auto_favicon1').bind('click', function () {
|
75 |
+
jQuery('#sq_favicon').slideDown('fast');
|
76 |
+
});
|
77 |
+
jQuery('#sq_auto_favicon0').bind('click', function () {
|
78 |
+
jQuery('#sq_favicon').slideUp('fast');
|
79 |
+
});
|
80 |
+
|
81 |
+
//Listen the favicon switch
|
82 |
+
jQuery('#sq_auto_sitemap1').bind('click', function () {
|
83 |
+
jQuery('#sq_sitemap').slideDown('fast');
|
84 |
+
});
|
85 |
+
jQuery('#sq_auto_sitemap0').bind('click', function () {
|
86 |
+
jQuery('#sq_sitemap').slideUp('fast');
|
87 |
+
});
|
88 |
+
jQuery('#sq_auto_jsonld1').bind('click', function () {
|
89 |
+
jQuery('#sq_jsonld').slideDown('fast');
|
90 |
+
});
|
91 |
+
jQuery('#sq_auto_jsonld0').bind('click', function () {
|
92 |
+
jQuery('#sq_jsonld').slideUp('fast');
|
93 |
+
});
|
94 |
+
|
95 |
+
jQuery('.sq_social_link').bind('click', function () {
|
96 |
+
var previewtop = jQuery('#sq_social_media_accounts').offset().top - 100;
|
97 |
+
jQuery('html,body').animate({scrollTop: previewtop}, 1000);
|
98 |
+
});
|
99 |
+
|
100 |
+
//If select all options in sitemap
|
101 |
+
jQuery('#sq_selectall').click(function () { //on click
|
102 |
+
if (this.checked) { // check select status
|
103 |
+
jQuery('#sq_sitemap_buid input').each(function () { //loop through each checkbox
|
104 |
+
this.checked = true; //select all checkboxes with class "checkbox1"
|
105 |
+
});
|
106 |
+
} else {
|
107 |
+
jQuery('#sq_sitemap_buid input').each(function () { //loop through each checkbox
|
108 |
+
this.checked = false; //deselect all checkboxes with class "checkbox1"
|
109 |
+
});
|
110 |
+
}
|
111 |
+
});
|
112 |
+
|
113 |
+
//Listen the Squirrly Auto seo switch ON
|
114 |
+
jQuery('#sq_use_on').bind('click', function () {
|
115 |
+
jQuery('#sq_settings .sq_seo_switch_condition').show();
|
116 |
+
jQuery('#sq_title_description_keywords').slideDown('fast');
|
117 |
+
jQuery('#sq_social_media').slideDown('fast');
|
118 |
+
|
119 |
+
if (jQuery('#sq_settings').find('input[name=sq_auto_sitemap]:checked').val() == 1) {
|
120 |
+
jQuery('#sq_sitemap').slideDown('fast');
|
121 |
+
}
|
122 |
+
|
123 |
+
if (jQuery('#sq_settings').find('input[name=sq_auto_favicon]:checked').val() == 1) {
|
124 |
+
jQuery('#sq_favicon').slideDown('fast');
|
125 |
+
}
|
126 |
+
|
127 |
+
if (jQuery('#sq_settings').find('input[name=sq_jsonld]:checked').val() == 1) {
|
128 |
+
jQuery('#sq_jsonld').slideDown('fast');
|
129 |
+
}
|
130 |
+
|
131 |
+
if (parseInt(jQuery('.sq_count').html()) > 0) {
|
132 |
+
var notif = (parseInt(jQuery('.sq_count').html()) - 1);
|
133 |
+
if (notif > 0) {
|
134 |
+
jQuery('.sq_count').html(notif);
|
135 |
+
} else {
|
136 |
+
jQuery('.sq_count').html(notif);
|
137 |
+
jQuery('.sq_count').hide();
|
138 |
+
}
|
139 |
+
}
|
140 |
+
jQuery('#sq_fix_auto').slideUp('show');
|
141 |
+
|
142 |
+
|
143 |
+
});
|
144 |
+
//Listen the Squirrly Auto seo switch OFF
|
145 |
+
jQuery('#sq_use_off').bind('click', function () {
|
146 |
+
jQuery('#sq_settings .sq_seo_switch_condition').hide();
|
147 |
+
jQuery('#sq_title_description_keywords').slideUp('fast');
|
148 |
+
|
149 |
+
jQuery('#sq_social_media').slideUp('fast');
|
150 |
+
jQuery('#sq_favicon').slideUp('fast');
|
151 |
+
jQuery('#sq_sitemap').slideUp('fast');
|
152 |
+
jQuery('#sq_jsonld').slideUp('fast');
|
153 |
+
|
154 |
+
|
155 |
+
if (parseInt(jQuery('.sq_count').html()) >= 0) {
|
156 |
+
var notif = (parseInt(jQuery('.sq_count').html()) + 1);
|
157 |
+
if (notif > 0) {
|
158 |
+
jQuery('.sq_count').html(notif).show();
|
159 |
+
}
|
160 |
+
}
|
161 |
+
jQuery('#sq_fix_auto').slideDown('show');
|
162 |
+
});
|
163 |
+
|
164 |
+
///////////////////////////////
|
165 |
+
////////////////////FIX ACTIONS
|
166 |
+
//FIX Google settings
|
167 |
+
jQuery('#sq_google_index1').bind('click', function () {
|
168 |
+
if (parseInt(jQuery('.sq_count').html()) > 0) {
|
169 |
+
var notif = (parseInt(jQuery('.sq_count').html()) - 1);
|
170 |
+
if (notif > 0) {
|
171 |
+
jQuery('.sq_count').html(notif);
|
172 |
+
} else {
|
173 |
+
jQuery('.sq_count').html(notif);
|
174 |
+
jQuery('.sq_count').hide();
|
175 |
+
}
|
176 |
+
}
|
177 |
+
jQuery('#sq_fix_private').slideUp('show');
|
178 |
+
|
179 |
+
});
|
180 |
+
jQuery('#sq_google_index0').bind('click', function () {
|
181 |
+
if (parseInt(jQuery('.sq_count').html()) >= 0) {
|
182 |
+
var notif = (parseInt(jQuery('.sq_count').html()) + 1);
|
183 |
+
if (notif > 0) {
|
184 |
+
jQuery('.sq_count').html(notif).show();
|
185 |
+
}
|
186 |
+
}
|
187 |
+
jQuery('#sq_fix_private').slideDown('show');
|
188 |
+
});
|
189 |
+
|
190 |
+
//JsonLD switch types
|
191 |
+
jQuery('.sq_jsonld_type').bind('change', function () {
|
192 |
+
jQuery('.sq_jsonld_types').hide();
|
193 |
+
jQuery('.sq_jsonld_' + jQuery('#sq_settings').find('select[name=sq_jsonld_type] option:selected').val()).show();
|
194 |
+
|
195 |
+
});
|
196 |
+
//////////////////////////////////////////
|
197 |
+
|
198 |
+
//Upload image from library
|
199 |
+
jQuery('#sq_json_imageselect').bind('click', function (event) {
|
200 |
+
var frame;
|
201 |
+
|
202 |
+
event.preventDefault();
|
203 |
+
|
204 |
+
// If the media frame already exists, reopen it.
|
205 |
+
if (frame) {
|
206 |
+
frame.open();
|
207 |
+
return;
|
208 |
+
}
|
209 |
+
|
210 |
+
// Create a new media frame
|
211 |
+
frame = wp.media({
|
212 |
+
title: 'Select or Upload Media Of Your Chosen Persuasion',
|
213 |
+
button: {
|
214 |
+
text: 'Use this media'
|
215 |
+
},
|
216 |
+
multiple: false // Set to true to allow multiple files to be selected
|
217 |
+
});
|
218 |
+
|
219 |
+
|
220 |
+
// When an image is selected in the media frame...
|
221 |
+
frame.on('select', function () {
|
222 |
+
|
223 |
+
// Get media attachment details from the frame state
|
224 |
+
var attachment = frame.state().get('selection').first().toJSON();
|
225 |
+
|
226 |
+
// Send the attachment URL to our custom image input field.
|
227 |
+
jQuery('input[name=sq_jsonld_logo]').val(attachment.url);
|
228 |
+
|
229 |
+
});
|
230 |
+
|
231 |
+
// Finally, open the modal on click
|
232 |
+
frame.open();
|
233 |
+
});
|
234 |
+
}
|
235 |
+
|
236 |
+
//Submit the settings
|
237 |
+
var sq_submitSettings = function () {
|
238 |
+
var sq_sitemap = [];
|
239 |
+
var serialize = jQuery('#sq_settings').find('input[class=sq_sitemap]').serializeArray()
|
240 |
+
jQuery(serialize).each(function () {
|
241 |
+
sq_sitemap.push(jQuery(this).attr('value'));
|
242 |
+
});
|
243 |
+
|
244 |
+
var sq_sitemap_show = [];
|
245 |
+
var serialize = jQuery('#sq_settings').find('input[class=sq_sitemap_show]').serializeArray()
|
246 |
+
jQuery(serialize).each(function () {
|
247 |
+
sq_sitemap_show.push(jQuery(this).attr('value'));
|
248 |
+
});
|
249 |
+
|
250 |
+
jQuery.getJSON(
|
251 |
+
sqQuery.ajaxurl,
|
252 |
+
{
|
253 |
+
action: 'sq_settingsseo_update',
|
254 |
+
// --
|
255 |
+
sq_use: jQuery('#sq_settings').find('input[name=sq_use]:checked').val(),
|
256 |
+
sq_auto_title: jQuery('#sq_settings').find('input[name=sq_auto_title]:checked').val(),
|
257 |
+
sq_auto_description: jQuery('#sq_settings').find('input[name=sq_auto_description]:checked').val(),
|
258 |
+
sq_auto_canonical: jQuery('#sq_settings').find('input[name=sq_auto_canonical]:checked').val(),
|
259 |
+
sq_auto_meta: jQuery('#sq_settings').find('input[name=sq_auto_meta]:checked').val(),
|
260 |
+
sq_auto_favicon: jQuery('#sq_settings').find('input[name=sq_auto_favicon]:checked').val(),
|
261 |
+
sq_auto_facebook: jQuery('#sq_settings').find('input[name=sq_auto_facebook]:checked').val(),
|
262 |
+
sq_auto_twitter: jQuery('#sq_settings').find('input[name=sq_auto_twitter]:checked').val(),
|
263 |
+
sq_twitter_account: jQuery('#sq_settings').find('input[name=sq_twitter_account]').val(),
|
264 |
+
sq_facebook_account: jQuery('#sq_settings').find('input[name=sq_facebook_account]').val(),
|
265 |
+
sq_google_plus: jQuery('#sq_settings').find('input[name=sq_google_plus]').val(),
|
266 |
+
sq_linkedin_account: jQuery('#sq_settings').find('input[name=sq_linkedin_account]').val(),
|
267 |
+
//--
|
268 |
+
sq_auto_sitemap: jQuery('#sq_settings').find('input[name=sq_auto_sitemap]:checked').val(),
|
269 |
+
sq_sitemap: sq_sitemap,
|
270 |
+
sq_sitemap_show: sq_sitemap_show,
|
271 |
+
sq_sitemap_frequency: jQuery('#sq_settings').find('select[name=sq_sitemap_frequency] option:selected').val(),
|
272 |
+
sq_sitemap_ping: jQuery('#sq_settings').find('input[name=sq_sitemap_ping]:checked').val(),
|
273 |
+
// --
|
274 |
+
sq_auto_jsonld: jQuery('#sq_settings').find('input[name=sq_auto_jsonld]:checked').val(),
|
275 |
+
sq_jsonld_type: jQuery('#sq_settings').find('select[name=sq_jsonld_type] option:selected').val(),
|
276 |
+
sq_jsonld_name: jQuery('#sq_settings').find('input[name=sq_jsonld_name]').val(),
|
277 |
+
sq_jsonld_jobTitle: jQuery('#sq_settings').find('input[name=sq_jsonld_jobTitle]').val(),
|
278 |
+
sq_jsonld_logo: jQuery('#sq_settings').find('input[name=sq_jsonld_logo]').val(),
|
279 |
+
sq_jsonld_telephone: jQuery('#sq_settings').find('input[name=sq_jsonld_telephone]').val(),
|
280 |
+
sq_jsonld_contactType: jQuery('#sq_settings').find('select[name=sq_jsonld_contactType] option:selected').val(),
|
281 |
+
sq_jsonld_description: jQuery('#sq_settings').find('textarea[name=sq_jsonld_description]').val(),
|
282 |
+
//--
|
283 |
+
sq_auto_seo: jQuery('#sq_settings').find('input[name=sq_auto_seo]:checked').val(),
|
284 |
+
sq_fp_title: jQuery('#sq_settings').find('input[name=sq_fp_title]').val(),
|
285 |
+
sq_fp_description: jQuery('#sq_settings').find('textarea[name=sq_fp_description]').val(),
|
286 |
+
sq_fp_keywords: jQuery('#sq_settings').find('input[name=sq_fp_keywords]').val(),
|
287 |
+
// --
|
288 |
+
ignore_warn: jQuery('#sq_settings').find('input[name=ignore_warn]:checked').val(),
|
289 |
+
// --
|
290 |
+
sq_google_analytics: jQuery('#sq_settings').find('input[name=sq_google_analytics]').val(),
|
291 |
+
sq_facebook_insights: jQuery('#sq_settings').find('input[name=sq_facebook_insights]').val(),
|
292 |
+
sq_pinterest: jQuery('#sq_settings').find('input[name=sq_pinterest]').val(),
|
293 |
+
// --
|
294 |
+
|
295 |
+
nonce: sqQuery.nonce
|
296 |
+
}
|
297 |
+
).success(function () {
|
298 |
+
showSaved(2000);
|
299 |
+
});
|
300 |
+
;
|
301 |
+
|
302 |
+
}
|
themes/default/js/sq_blocksupport.js
CHANGED
@@ -1,16 +1,241 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
2 |
-
|
3 |
-
|
4 |
-
var sq_facebook_b='<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2FSquirrly.co&send=false&layout=button_count&width=90&show_faces=false&font=arial&colorscheme=light&action=like&height=21&appId=384403641631593" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>';
|
5 |
-
|
6 |
-
jQuery(
|
7 |
-
jQuery('
|
8 |
-
jQuery(
|
9 |
-
|
10 |
-
jQuery(
|
11 |
-
jQuery('
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
jQuery('#
|
16 |
-
jQuery('
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
if (jQuery('#sq_options').length > 0) {
|
2 |
+
sq_blocksupport();
|
3 |
+
} else {
|
4 |
+
jQuery(document).ready(function () {
|
5 |
+
sq_blocksupport();
|
6 |
+
});
|
7 |
+
}
|
8 |
|
9 |
+
var sq_blocksupport = function () {
|
10 |
+
if (typeof sq_facebook_b === 'undefined')
|
11 |
+
var sq_facebook_b = '<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2FSquirrly.co&send=false&layout=button_count&width=90&show_faces=false&font=arial&colorscheme=light&action=like&height=21&appId=384403641631593" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>';
|
12 |
+
|
13 |
+
jQuery('#sq_options_support').find('span').bind('click', function () {
|
14 |
+
jQuery('.sq_options_support_popup').show();
|
15 |
+
jQuery('.sq_options_feedback_popup').hide();
|
16 |
+
});
|
17 |
+
jQuery('#sq_options_close').bind('click', function () {
|
18 |
+
jQuery('.sq_options_support_popup').hide();
|
19 |
+
});
|
20 |
+
|
21 |
+
|
22 |
+
jQuery('#sq_options_feedback').find('span').bind('click', function () {
|
23 |
+
jQuery('.sq_options_feedback_popup').show();
|
24 |
+
jQuery("#sq_options_feedback").find('.sq_push').hide();
|
25 |
+
jQuery('.sq_options_support_popup').hide();
|
26 |
+
});
|
27 |
+
jQuery("#sq_options_feedback_close").bind('click', function () {
|
28 |
+
jQuery('.sq_options_feedback_popup').hide();
|
29 |
+
});
|
30 |
+
|
31 |
+
jQuery("#sq_feedback_0").bind('click', function () {
|
32 |
+
jQuery('#sq_feedback_msg').show();
|
33 |
+
// for(i=0;i<5;i++) jQuery('#sq_options_feedback').find('.sq_icon').removeClass('sq_label_feedback_' + i);
|
34 |
+
// jQuery('#sq_options_feedback').find('.sq_icon').addClass('sq_label_feedback_0');
|
35 |
+
});
|
36 |
+
jQuery("#sq_feedback_1").bind('click', function () {
|
37 |
+
jQuery('#sq_feedback_msg').show();
|
38 |
+
// for(i=0;i<5;i++) jQuery('#sq_options_feedback').find('.sq_icon').removeClass('sq_label_feedback_' + i);
|
39 |
+
// jQuery('#sq_options_feedback').find('.sq_icon').addClass('sq_label_feedback_1');
|
40 |
+
});
|
41 |
+
jQuery("#sq_feedback_2").bind('click', function () {
|
42 |
+
jQuery("#sq_feedback_submit").trigger('click');
|
43 |
+
for (i = 0; i < 5; i++)
|
44 |
+
jQuery('#sq_options_feedback').find('.sq_icon').removeClass('sq_label_feedback_' + i);
|
45 |
+
jQuery('#sq_options_feedback').find('.sq_icon').addClass('sq_label_feedback_2');
|
46 |
+
|
47 |
+
if (jQuery("#sq_facebook_b").length === 0)
|
48 |
+
jQuery("#sq_options_feedback_error").after('<div id="sq_facebook_b"><span class="sq_facebook_title">We\'re also on facebook</span><span class="sq_facebook_image"><a href="http://www.facebook.com/Squirrly.co" target="_blank"><img src="http://static.api.squirrly.co/default/img/social/squirrly_facebook.png"></a></span> <span class="sq_facebook_frame">' + sq_facebook_b + '</span></div>');
|
49 |
+
|
50 |
+
});
|
51 |
+
jQuery("#sq_feedback_3").bind('click', function () {
|
52 |
+
jQuery("#sq_feedback_submit").trigger('click');
|
53 |
+
for (i = 0; i < 5; i++)
|
54 |
+
jQuery('#sq_options_feedback').find('.sq_icon').removeClass('sq_label_feedback_' + i);
|
55 |
+
jQuery('#sq_options_feedback').find('.sq_icon').addClass('sq_label_feedback_3');
|
56 |
+
|
57 |
+
if (jQuery("#sq_facebook_b").length === 0)
|
58 |
+
jQuery("#sq_options_feedback_error").after('<div id="sq_facebook_b"><span class="sq_facebook_title">We\'re also on facebook</span><span class="sq_facebook_image"><a href="http://www.facebook.com/Squirrly.co" target="_blank"><img src="http://static.api.squirrly.co/default/img/social/squirrly_facebook.png"></a></span> <span class="sq_facebook_frame">' + sq_facebook_b + '</span></div>');
|
59 |
+
|
60 |
+
});
|
61 |
+
jQuery("#sq_feedback_4").bind('click', function () {
|
62 |
+
jQuery("#sq_feedback_submit").trigger('click');
|
63 |
+
for (i = 0; i < 5; i++)
|
64 |
+
jQuery('#sq_options_feedback').find('.sq_icon').removeClass('sq_label_feedback_' + i);
|
65 |
+
jQuery('#sq_options_feedback').find('.sq_icon').addClass('sq_label_feedback_4');
|
66 |
+
|
67 |
+
if (jQuery("#sq_facebook_b").length === 0)
|
68 |
+
jQuery("#sq_options_feedback_error").after('<div id="sq_facebook_b"><span class="sq_facebook_title">We\'re also on facebook</span><span class="sq_facebook_image"><a href="http://www.facebook.com/Squirrly.co" target="_blank"><img src="http://static.api.squirrly.co/default/img/social/squirrly_facebook.png"></a></span> <span class="sq_facebook_frame">' + sq_facebook_b + '</span></div>');
|
69 |
+
|
70 |
+
});
|
71 |
+
|
72 |
+
jQuery("#sq_feedback_submit").bind('click', function () {
|
73 |
+
jQuery('#sq_feedback_msg').hide();
|
74 |
+
jQuery('#sq_options_feedback_error').html('<p class="sq_minloading" style="margin:0 auto; padding:2px;"></p>');
|
75 |
+
jQuery('#sq_feedback_submit').attr("disabled", "disabled");
|
76 |
+
|
77 |
+
|
78 |
+
document.cookie = "sq_feedback_face=" + jQuery("input[name=sq_feedback_face]:radio:checked").val() + "; expires=" + (60 * 12) + "; path=/";
|
79 |
+
|
80 |
+
jQuery.getJSON(
|
81 |
+
sqQuery.ajaxurl,
|
82 |
+
{
|
83 |
+
action: 'sq_feedback',
|
84 |
+
feedback: jQuery("input[name=sq_feedback_face]:radio:checked").val(),
|
85 |
+
message: jQuery("textarea[name=sq_feedback_message]").val(),
|
86 |
+
nonce: sqQuery.nonce
|
87 |
+
}
|
88 |
+
).success(function (response) {
|
89 |
+
jQuery('#sq_feedback_submit').removeAttr("disabled");
|
90 |
+
jQuery('#sq_feedback_submit').val('Send feedback');
|
91 |
+
jQuery("textarea[name=sq_feedback_message]").val('');
|
92 |
+
|
93 |
+
if (typeof response.message !== 'undefined') {
|
94 |
+
jQuery('#sq_options_feedback_error').removeClass('sq_error').addClass('sq_message').html(response.message);
|
95 |
+
} else
|
96 |
+
jQuery('#sq_options_feedback_error').removeClass('sq_error').html('');
|
97 |
+
|
98 |
+
|
99 |
+
|
100 |
+
}).error(function (response) {
|
101 |
+
if (response.status === 200 && response.responseText.indexOf('{') > 0) {
|
102 |
+
response.responseText = response.responseText.substr(response.responseText.indexOf('{'), response.responseText.lastIndexOf('}'));
|
103 |
+
try {
|
104 |
+
response = jQuery.parseJSON(response.responseText);
|
105 |
+
jQuery('#sq_feedback_submit').removeAttr("disabled");
|
106 |
+
jQuery('#sq_feedback_submit').val('Send feedback');
|
107 |
+
jQuery("textarea[name=sq_feedback_message]").val('');
|
108 |
+
|
109 |
+
if (typeof response.message !== 'undefined') {
|
110 |
+
jQuery('#sq_options_feedback_error').removeClass('sq_error').addClass('sq_message').html(response.message);
|
111 |
+
} else
|
112 |
+
jQuery('#sq_options_feedback_error').removeClass('sq_error').html('');
|
113 |
+
} catch (e) {
|
114 |
+
}
|
115 |
+
|
116 |
+
} else {
|
117 |
+
jQuery('#sq_feedback_submit').removeAttr("disabled");
|
118 |
+
jQuery('#sq_feedback_submit').val('Send feedback');
|
119 |
+
jQuery('#sq_feedback_submit').removeClass('sq_minloading');
|
120 |
+
jQuery('#sq_options_feedback_error').addClass('sq_error').removeClass('sq_message').html('Could not send the feedback');
|
121 |
+
}
|
122 |
+
});
|
123 |
+
});
|
124 |
+
|
125 |
+
jQuery("#sq_support_submit").bind('click', function () {
|
126 |
+
jQuery('#sq_options_support_error').html('<p class="sq_minloading" style="margin:0 auto; padding:2px;"></p>');
|
127 |
+
jQuery('#sq_support_submit').attr("disabled", "disabled");
|
128 |
+
|
129 |
+
jQuery.getJSON(
|
130 |
+
sqQuery.ajaxurl,
|
131 |
+
{
|
132 |
+
action: 'sq_support',
|
133 |
+
message: jQuery("textarea[name=sq_support_message]").val(),
|
134 |
+
nonce: sqQuery.nonce
|
135 |
+
}
|
136 |
+
).success(function (response) {
|
137 |
+
jQuery('#sq_support_submit').removeAttr("disabled");
|
138 |
+
jQuery("textarea[name=sq_support_message]").val('');
|
139 |
+
|
140 |
+
if (typeof response.message !== 'undefined') {
|
141 |
+
jQuery('#sq_options_support_error').removeClass('sq_error').addClass('sq_message').html(response.message);
|
142 |
+
} else
|
143 |
+
jQuery('#sq_options_support_error').removeClass('sq_error').html('');
|
144 |
+
|
145 |
+
|
146 |
+
|
147 |
+
}).error(function (response) {
|
148 |
+
if (response.status === 200 && response.responseText.indexOf('{') > 0) {
|
149 |
+
response.responseText = response.responseText.substr(response.responseText.indexOf('{'), response.responseText.lastIndexOf('}'));
|
150 |
+
try {
|
151 |
+
response = jQuery.parseJSON(response.responseText);
|
152 |
+
jQuery('#sq_support_submit').removeAttr("disabled");
|
153 |
+
jQuery("textarea[name=sq_support_message]").val('');
|
154 |
+
|
155 |
+
if (typeof response.message !== 'undefined') {
|
156 |
+
jQuery('#sq_options_support_error').removeClass('sq_error').addClass('sq_message').html(response.message);
|
157 |
+
} else
|
158 |
+
jQuery('#sq_options_support_error').removeClass('sq_error').html('');
|
159 |
+
} catch (e) {
|
160 |
+
}
|
161 |
+
|
162 |
+
} else {
|
163 |
+
jQuery('#sq_support_submit').removeAttr("disabled");
|
164 |
+
jQuery('#sq_support_submit').val('Send feedback');
|
165 |
+
jQuery('#sq_support_submit').removeClass('sq_minloading');
|
166 |
+
jQuery('#sq_options_support_error').addClass('sq_error').removeClass('sq_message').html('Could not send the feedback');
|
167 |
+
}
|
168 |
+
});
|
169 |
+
});
|
170 |
+
|
171 |
+
|
172 |
+
/////////////////For Survey
|
173 |
+
jQuery("#sq_survey_submit").bind('click', function () {
|
174 |
+
jQuery('#sq_survey_error').html('<p class="sq_minloading" style="margin:0 auto; padding:2px;"></p>');
|
175 |
+
jQuery('#sq_survey_submit').attr("disabled", "disabled");
|
176 |
+
|
177 |
+
jQuery.getJSON(
|
178 |
+
sqQuery.ajaxurl,
|
179 |
+
{
|
180 |
+
action: 'sq_support',
|
181 |
+
subject: 'Survey message',
|
182 |
+
message: jQuery("textarea[name=sq_survey_message]").val(),
|
183 |
+
nonce: sqQuery.nonce
|
184 |
+
}
|
185 |
+
).success(function (response) {
|
186 |
+
jQuery('#sq_survey_submit').removeAttr("disabled");
|
187 |
+
jQuery("textarea[name=sq_survey_message]").val('');
|
188 |
+
|
189 |
+
if (typeof response.message !== 'undefined') {
|
190 |
+
jQuery('#sq_survey_error').removeClass('sq_error').addClass('sq_message').html(response.message);
|
191 |
+
} else
|
192 |
+
jQuery('#sq_survey_error').removeClass('sq_error').html('');
|
193 |
+
|
194 |
+
if (typeof response.success !== 'undefined') {
|
195 |
+
jQuery.getJSON(
|
196 |
+
sqQuery.ajaxurl,
|
197 |
+
{
|
198 |
+
action: 'sq_hide_survey',
|
199 |
+
sq_hide_survey: '1',
|
200 |
+
nonce: sqQuery.nonce
|
201 |
+
}
|
202 |
+
);
|
203 |
+
}
|
204 |
+
|
205 |
+
}).error(function (response) {
|
206 |
+
if (response.status === 200 && response.responseText.indexOf('{') > 0) {
|
207 |
+
response.responseText = response.responseText.substr(response.responseText.indexOf('{'), response.responseText.lastIndexOf('}'));
|
208 |
+
try {
|
209 |
+
response = jQuery.parseJSON(response.responseText);
|
210 |
+
jQuery('#sq_survey_submit').removeAttr("disabled");
|
211 |
+
jQuery("textarea[name=sq_survey_message]").val('');
|
212 |
+
|
213 |
+
if (typeof response.message !== 'undefined') {
|
214 |
+
jQuery('#sq_survey_error').removeClass('sq_error').addClass('sq_message').html(response.message);
|
215 |
+
} else
|
216 |
+
jQuery('#sq_survey_error').removeClass('sq_error').html('');
|
217 |
+
} catch (e) {
|
218 |
+
}
|
219 |
+
|
220 |
+
} else {
|
221 |
+
jQuery('#sq_survey_submit').removeAttr("disabled");
|
222 |
+
jQuery('#sq_survey_submit').val('Send feedback');
|
223 |
+
jQuery('#sq_survey_submit').removeClass('sq_minloading');
|
224 |
+
jQuery('#sq_survey_error').addClass('sq_error').removeClass('sq_message').html('Could not send your message');
|
225 |
+
}
|
226 |
+
});
|
227 |
+
});
|
228 |
+
|
229 |
+
jQuery("#sq_survey_close").bind('click', function () {
|
230 |
+
jQuery.getJSON(
|
231 |
+
sqQuery.ajaxurl,
|
232 |
+
{
|
233 |
+
action: 'sq_hide_survey',
|
234 |
+
sq_hide_survey: '1',
|
235 |
+
nonce: sqQuery.nonce
|
236 |
+
}
|
237 |
+
).success(function () {
|
238 |
+
jQuery('#sq_survey').hide();
|
239 |
+
});
|
240 |
+
});
|
241 |
+
}
|
themes/default/js/sq_menu.js
CHANGED
@@ -1,38 +1,345 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
jQuery(
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
jQuery(
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
jQuery(
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
var ctl_setThemeColors = function (background, button, text) {
|
2 |
+
jQuery('#sq_settings legend').css('background-color', background);
|
3 |
+
jQuery('#sq_settings input[type="submit"]').css('background-color', button);
|
4 |
+
jQuery('#sq_settings input[type="submit"]').css('color', text);
|
5 |
+
jQuery('#sq_settings legend > span').css('color', text);
|
6 |
+
jQuery('#sq_settings legend label').css('color', text);
|
7 |
+
jQuery('#sq_settings_body fieldset legend > span a').css('color', text);
|
8 |
|
9 |
+
}
|
10 |
+
|
11 |
+
if (jQuery('#sq_settings').length > 0) {
|
12 |
+
sq_blockmenu();
|
13 |
+
} else {
|
14 |
+
jQuery(document).ready(function () {
|
15 |
+
sq_blockmenu();
|
16 |
+
});
|
17 |
+
}
|
18 |
+
|
19 |
+
var sq_blockmenu = function () {
|
20 |
+
///////////////////////////////
|
21 |
+
|
22 |
+
//Go to dashboard listener
|
23 |
+
jQuery("#sq_goto_dashboard").bind('click', function () {
|
24 |
+
location.href = "?page=sq_dashboard";
|
25 |
+
});
|
26 |
+
|
27 |
+
jQuery('input[name=sq_update]').bind('click', function () {
|
28 |
+
jQuery('#sq_settings_form').submit();
|
29 |
+
});
|
30 |
+
|
31 |
+
//Go to settings listener
|
32 |
+
jQuery("#sq_goto_seo").bind('click', function () {
|
33 |
+
location.href = "?page=sq_seo";
|
34 |
+
});
|
35 |
+
|
36 |
+
//Go to settings listener
|
37 |
+
jQuery("#sq_goto_settings").bind('click', function () {
|
38 |
+
location.href = "?page=sq_settings";
|
39 |
+
});
|
40 |
+
|
41 |
+
//Set the squirrly seo style according to wp colors
|
42 |
+
var colorwait = setInterval(function () {
|
43 |
+
if (jQuery('#adminmenuback').is(':visible')) {
|
44 |
+
clearInterval(colorwait);
|
45 |
+
|
46 |
+
ctl_setThemeColors(jQuery('#adminmenuback').css('background-color')
|
47 |
+
, jQuery('#adminmenu li.current a.menu-top').css('background-color')
|
48 |
+
, jQuery('#adminmenu a').css('color'));
|
49 |
+
}
|
50 |
+
|
51 |
+
}, 100);
|
52 |
+
|
53 |
+
//switch click
|
54 |
+
jQuery('#sq_settings_form').find('input[type=radio]').bind('change', function () {
|
55 |
+
sq_submitSettings();
|
56 |
+
});
|
57 |
+
|
58 |
+
//Custom title/description
|
59 |
+
jQuery('#sq_customize').bind('click', function () {
|
60 |
+
jQuery('#sq_customize_settings').show();
|
61 |
+
jQuery('#sq_snippet_disclaimer').show();
|
62 |
+
jQuery('#sq_title_description_keywords').addClass('sq_custom_title');
|
63 |
+
});
|
64 |
+
|
65 |
+
//Login
|
66 |
+
jQuery('.sq_login_link').bind('click', function () {
|
67 |
+
var previewtop = jQuery('#sq_settings_login').offset().top - 100;
|
68 |
+
jQuery('html,body').animate({scrollTop: previewtop}, 1000);
|
69 |
+
});
|
70 |
+
|
71 |
+
}
|
72 |
+
|
73 |
+
//Show the title length in post editor
|
74 |
+
var sq_trackLength = function (field, type) {
|
75 |
+
var min = 0;
|
76 |
+
var max = 0;
|
77 |
+
if (typeof field === 'undefined')
|
78 |
+
return;
|
79 |
+
|
80 |
+
if (type === 'title' || type === 'wp_title') {
|
81 |
+
min = 10;
|
82 |
+
max = 75;
|
83 |
+
} else
|
84 |
+
if (type === 'description') {
|
85 |
+
min = 70;
|
86 |
+
max = 165;
|
87 |
+
}
|
88 |
+
if (min > 0 && min > field.val().length)
|
89 |
+
jQuery('#sq_' + type + '_info').html(__snippetshort);
|
90 |
+
else
|
91 |
+
if (max > 0 && max < field.val().length)
|
92 |
+
jQuery('#sq_' + type + '_info').html(__snippetlong);
|
93 |
+
else
|
94 |
+
if (max > 0) {
|
95 |
+
jQuery('#sq_' + type + '_info').html(field.val().length + '/' + max);
|
96 |
+
}
|
97 |
+
}
|
98 |
+
|
99 |
+
//get the snippet in settings and post editor
|
100 |
+
var sq_getSnippet = function (url, show_url) {
|
101 |
+
if (jQuery('#sq_snippet').length == 0) {
|
102 |
+
return;
|
103 |
+
}
|
104 |
+
|
105 |
+
if (typeof url === 'undefined') {
|
106 |
+
url = '';
|
107 |
+
}
|
108 |
+
if (typeof show_url === 'undefined') {
|
109 |
+
show_url = '';
|
110 |
+
}
|
111 |
+
jQuery('#sq_snippet_ul').addClass('sq_minloading');
|
112 |
+
|
113 |
+
jQuery('#sq_snippet_title').html('');
|
114 |
+
jQuery('#sq_snippet_url').html('');
|
115 |
+
jQuery('#sq_snippet_description').html('');
|
116 |
+
jQuery('#sq_snippet_keywords').hide();
|
117 |
+
jQuery('#sq_snippet').show();
|
118 |
+
jQuery('#sq_snippet_update').hide();
|
119 |
+
jQuery('#sq_snippet_customize').hide();
|
120 |
+
jQuery('#ogimage_preview').hide();
|
121 |
+
|
122 |
+
setTimeout(function () {
|
123 |
+
jQuery.getJSON(
|
124 |
+
sqQuery.ajaxurl,
|
125 |
+
{
|
126 |
+
action: 'sq_get_snippet',
|
127 |
+
url: url,
|
128 |
+
nonce: sqQuery.nonce
|
129 |
+
}
|
130 |
+
).success(function (response) {
|
131 |
+
jQuery('#sq_snippet_ul').removeClass('sq_minloading');
|
132 |
+
jQuery('#sq_snippet_update').show();
|
133 |
+
jQuery('#sq_snippet_customize').show();
|
134 |
+
jQuery('#sq_snippet_keywords').show();
|
135 |
+
jQuery('#ogimage_preview').show();
|
136 |
+
|
137 |
+
if (response) {
|
138 |
+
jQuery('#sq_snippet_title').html(response.title);
|
139 |
+
if (show_url !== '')
|
140 |
+
jQuery('#sq_snippet_url').html('<a href="' + url + '" target="_blank">' + show_url + '</a>');
|
141 |
+
else
|
142 |
+
jQuery('#sq_snippet_url').html(response.url);
|
143 |
+
|
144 |
+
jQuery('#sq_snippet_description').html(response.description);
|
145 |
+
}
|
146 |
+
}).error(function () {
|
147 |
+
jQuery('#sq_snippet_ul').removeClass('sq_minloading');
|
148 |
+
jQuery('#sq_snippet_update').show();
|
149 |
+
}).complete(function () {
|
150 |
+
jQuery('#sq_snippet_ul').removeClass('sq_minloading');
|
151 |
+
jQuery('#sq_snippet_update').show();
|
152 |
+
});
|
153 |
+
}, 500);
|
154 |
+
}
|
155 |
+
|
156 |
+
//Show user status in Squirrly > Account info
|
157 |
+
var sq_getUserStatus = function () {
|
158 |
+
jQuery('#sq_userinfo').addClass('sq_loading');
|
159 |
+
jQuery('#sq_userstatus').addClass('sq_loading');
|
160 |
+
|
161 |
+
jQuery.getJSON(
|
162 |
+
__api_url + 'sq/user/status/?callback=?',
|
163 |
+
{
|
164 |
+
token: __token,
|
165 |
+
lang: (document.getElementsByTagName("html")[0].getAttribute("lang") || window.navigator.language)
|
166 |
+
}
|
167 |
+
).success(function (response) {
|
168 |
+
checkResponse(response);
|
169 |
+
|
170 |
+
jQuery('#sq_userinfo').removeClass('sq_loading').removeClass('sq_error');
|
171 |
+
jQuery('#sq_userstatus').removeClass('sq_loading').removeClass('sq_error');
|
172 |
+
if (typeof response.info !== 'undefined' && response.info !== '') {
|
173 |
+
jQuery('#sq_userinfo').html(response.info);
|
174 |
+
}
|
175 |
+
if (typeof response.stats !== 'undefined' && response.stats !== '') {
|
176 |
+
jQuery('#sq_userstatus').html(response.stats);
|
177 |
+
}
|
178 |
+
if (typeof response.data !== 'undefined' && typeof response.data.user_registered_date !== 'undefined') {
|
179 |
+
var currentDate = new Date();
|
180 |
+
var day = currentDate.getDate();
|
181 |
+
if (day.toString().length === 1)
|
182 |
+
day = '0' + day.toString();
|
183 |
+
var month = currentDate.getMonth() + 1;
|
184 |
+
if (month.toString().length === 1)
|
185 |
+
month = '0' + month.toString();
|
186 |
+
var year = currentDate.getFullYear();
|
187 |
+
var currDate = year + '-' + month + '-' + day;
|
188 |
+
var passed = ((new Date(currDate).getTime() - new Date(response.data.user_registered_date).getTime()) / (24 * 60 * 60 * 1000));
|
189 |
+
;
|
190 |
+
if (passed <= 3 && jQuery('#sq_survey').length > 0)
|
191 |
+
jQuery('#sq_survey').show();
|
192 |
+
}
|
193 |
+
}).error(function () {
|
194 |
+
// jQuery('#sq_userinfo').removeClass('sq_loading');
|
195 |
+
jQuery('#sq_userinfo').html('');
|
196 |
+
jQuery('#sq_userstatus').html('');
|
197 |
+
});
|
198 |
+
jQuery('#sq_survey').show();
|
199 |
+
}
|
200 |
+
|
201 |
+
//Recheck the user rank in Squirrly > Performance analytics
|
202 |
+
var sq_recheckRank = function (post_id) {
|
203 |
+
jQuery('.sq_rank_column_button_recheck').hide();
|
204 |
+
jQuery('#sq_rank_value' + post_id).html('').addClass('sq_loading');
|
205 |
+
jQuery.getJSON(
|
206 |
+
sqQuery.ajaxurl,
|
207 |
+
{
|
208 |
+
action: 'sq_recheck',
|
209 |
+
post_id: post_id,
|
210 |
+
nonce: sqQuery.nonce
|
211 |
+
}
|
212 |
+
).success(function (response) {
|
213 |
+
if (typeof response.rank !== 'undefined') {
|
214 |
+
jQuery('#sq_rank_value' + post_id).html(response.rank).removeClass('sq_loading');
|
215 |
+
} else {
|
216 |
+
jQuery('#sq_rank_value' + post_id).html('Error').removeClass('sq_loading');
|
217 |
+
}
|
218 |
+
setTimeout(function () {
|
219 |
+
jQuery('.sq_rank_column_button_recheck').show();
|
220 |
+
}, 10000)
|
221 |
+
|
222 |
+
|
223 |
+
}).error(function () {
|
224 |
+
jQuery('#sq_rank_value' + post_id).html('Error').removeClass('sq_loading');
|
225 |
+
jQuery('.sq_rank_column_button_recheck').show();
|
226 |
+
});
|
227 |
+
}
|
228 |
+
|
229 |
+
//Show user status in Squirrly > Account info
|
230 |
+
var sq_getSlides = function (category) {
|
231 |
+
if (jQuery('#sq_help' + category + 'slides').length == 0) {
|
232 |
+
return;
|
233 |
+
}
|
234 |
+
|
235 |
+
jQuery.getJSON(
|
236 |
+
__api_url + 'sq/help/slides?callback=?',
|
237 |
+
{
|
238 |
+
category: category,
|
239 |
+
lang: (document.getElementsByTagName("html")[0].getAttribute("lang") || window.navigator.language)
|
240 |
+
}
|
241 |
+
).success(function (response) {
|
242 |
+
jQuery('#sq_help' + category + 'slides').removeClass('sq_loading').removeClass('sq_error');
|
243 |
+
if (typeof response.html !== 'undefined' && response.html !== '') {
|
244 |
+
jQuery('#sq_help' + category + 'slides').html(response.html).show();
|
245 |
+
}
|
246 |
+
});
|
247 |
+
}
|
248 |
+
|
249 |
+
var sq_getHelp = function (category, zone) {
|
250 |
+
var loadingAjax = true;
|
251 |
+
|
252 |
+
if (zone == 'content' && jQuery('#sq_help' + category + zone).length == 0) {
|
253 |
+
sq_getHelp(category, 'side');
|
254 |
+
return;
|
255 |
+
} else {
|
256 |
+
if (jQuery('#sq_help' + category + zone).length == 0) {
|
257 |
+
return;
|
258 |
+
}
|
259 |
+
}
|
260 |
+
|
261 |
+
jQuery('#sq_help' + category + zone).addClass('sq_loading');
|
262 |
+
jQuery.getJSON(
|
263 |
+
__api_url + 'sq/help/?callback=?',
|
264 |
+
{
|
265 |
+
token: __token,
|
266 |
+
user_url: __blog_url,
|
267 |
+
category: category,
|
268 |
+
zone: zone,
|
269 |
+
lang: (document.getElementsByTagName("html")[0].getAttribute("lang") || window.navigator.language)
|
270 |
+
}
|
271 |
+
).success(function (response) {
|
272 |
+
checkResponse(response);
|
273 |
+
loadingAjax = false;
|
274 |
+
|
275 |
+
jQuery('#sq_help' + category + zone).removeClass('sq_loading').removeClass('sq_error');
|
276 |
+
if (typeof response.html !== 'undefined' && response.html !== '') {
|
277 |
+
jQuery('#sq_help' + category + zone).html(response.html).show();
|
278 |
+
if (typeof response.remained_here !== 'undefined') {
|
279 |
+
var active_help = category;
|
280 |
+
if (response.remained_here > 0) {
|
281 |
+
if (category === 'settingsseo') {
|
282 |
+
active_help = 'settings';
|
283 |
+
}
|
284 |
+
} else {
|
285 |
+
active_help = '';
|
286 |
+
}
|
287 |
+
|
288 |
+
jQuery.getJSON(
|
289 |
+
sqQuery.ajaxurl,
|
290 |
+
{
|
291 |
+
action: 'sq_active_help',
|
292 |
+
active_help: active_help,
|
293 |
+
nonce: sqQuery.nonce
|
294 |
+
});
|
295 |
+
}
|
296 |
+
}
|
297 |
+
if (typeof response.side !== 'undefined' && response.side !== '') {
|
298 |
+
jQuery('#sq_help' + category + 'side').html(response.side).show();
|
299 |
+
}
|
300 |
+
}).error(function () {
|
301 |
+
loadingAjax = false;
|
302 |
+
jQuery('#sq_help' + category + zone).removeClass('sq_loading');
|
303 |
+
jQuery('#sq_help' + category + 'content').html('Lost connection with the server. Please make sure you whitelisted the IP from https://api.squirrly.co').show();
|
304 |
+
});
|
305 |
+
|
306 |
+
setTimeout(function () {
|
307 |
+
if (loadingAjax) {
|
308 |
+
jQuery('#sq_help' + category + zone).removeClass('sq_loading').addClass('sq_error').show();
|
309 |
+
jQuery('#sq_help' + category + 'content').html('Lost connection with the server. Please make sure you whitelisted the IP from https://api.squirrly.co');
|
310 |
+
}
|
311 |
+
}, 10000);
|
312 |
+
|
313 |
+
}
|
314 |
+
var checkResponse = function (response) {
|
315 |
+
if (typeof response.error !== 'undefined') {
|
316 |
+
if (response.error === 'invalid_token') {
|
317 |
+
jQuery.getJSON(
|
318 |
+
sqQuery.ajaxurl,
|
319 |
+
{
|
320 |
+
action: 'sq_reset', nonce: sqQuery.nonce
|
321 |
+
}
|
322 |
+
).success(function (response) {
|
323 |
+
if (typeof response.reset !== 'undefined')
|
324 |
+
if (response.reset === 'success')
|
325 |
+
location.href = "?page=sq_dashboard";
|
326 |
+
});
|
327 |
+
}
|
328 |
+
}
|
329 |
+
}
|
330 |
+
|
331 |
+
var showSaved = function (time) {
|
332 |
+
jQuery("#sq_settings").prepend('<div class="sq_savenotice sq_absolute" ><span class="sq_success">Saved!</span></div>');
|
333 |
+
|
334 |
+
if (typeof sq_help_reload == 'function') {
|
335 |
+
sq_help_reload();
|
336 |
+
}
|
337 |
+
|
338 |
+
if (typeof time !== 'undefined') {
|
339 |
+
setTimeout(function () {
|
340 |
+
jQuery('.sq_savenotice').hide();
|
341 |
+
|
342 |
+
|
343 |
+
}, time);
|
344 |
+
}
|
345 |
+
}
|
themes/default/js/tinymce.js
CHANGED
@@ -1,2 +1,21 @@
|
|
|
|
|
|
|
|
1 |
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function () {
|
2 |
+
tinymce.create('tinymce.plugins.Heading', {
|
3 |
+
init: function (ed, url) {
|
4 |
|
5 |
+
ed.addButton('heading', {
|
6 |
+
title: 'heading.button',
|
7 |
+
image: url + '/../img/editor/heading.png',
|
8 |
+
onclick: function () {
|
9 |
+
if (ed.selection.getContent() !== '') {
|
10 |
+
ed.execCommand('mceReplaceContent', false, '<h2>' + ed.selection.getContent() + '</h2>');
|
11 |
+
ed.execCommand('mceCleanup', false);
|
12 |
+
}
|
13 |
+
}
|
14 |
+
});
|
15 |
+
},
|
16 |
+
createControl: function (n, cm) {
|
17 |
+
return null;
|
18 |
+
}
|
19 |
+
});
|
20 |
+
tinymce.PluginManager.add('heading', tinymce.plugins.Heading);
|
21 |
+
})();
|
uninstall.php
CHANGED
@@ -12,5 +12,4 @@ require(dirname(__FILE__) . '/config/config.php');
|
|
12 |
|
13 |
/* Delete the record from database */
|
14 |
delete_option(SQ_OPTION);
|
15 |
-
delete_user_option(SQ_META);
|
16 |
|
12 |
|
13 |
/* Delete the record from database */
|
14 |
delete_option(SQ_OPTION);
|
|
|
15 |
|