Version Description
- 15.01.2019 =
- NEW : The ability to add media sitemap.
- NEW : The ability to add canonical links to pages and posts.
Download this release
Release Info
Developer | bestwebsoft |
Plugin | Google Sitemap by BestWebSoft |
Version | 3.1.7 |
Comparing to | |
See all releases |
Code changes from version 3.1.6 to 3.1.7
- google-sitemap-plugin.php +771 -222
- image_sitemap.xsl +160 -0
- includes/class-gglstmp-settings.php +230 -169
- languages/google-sitemap-plugin-cs_CZ.mo +0 -0
- languages/google-sitemap-plugin-cs_CZ.po +119 -103
- languages/google-sitemap-plugin-es_ES.mo +0 -0
- languages/google-sitemap-plugin-es_ES.po +122 -106
- languages/google-sitemap-plugin-ru_RU.mo +0 -0
- languages/google-sitemap-plugin-ru_RU.po +122 -106
- languages/google-sitemap-plugin-uk.mo +0 -0
- languages/google-sitemap-plugin-uk.po +122 -106
- readme.txt +12 -2
- screenshot-1.png +0 -0
- screenshot-2.png +0 -0
- screenshot-3.png +0 -0
- sitemap-index.xsl +1 -1
- video_sitemap.xsl +163 -0
google-sitemap-plugin.php
CHANGED
@@ -6,13 +6,13 @@ Description: Generate and add XML sitemap to WordPress website. Help search engi
|
|
6 |
Author: BestWebSoft
|
7 |
Text Domain: google-sitemap-plugin
|
8 |
Domain Path: /languages
|
9 |
-
Version: 3.1.
|
10 |
Author URI: https://bestwebsoft.com/
|
11 |
License: GPLv2 or later
|
12 |
*/
|
13 |
|
14 |
/*
|
15 |
-
© Copyright
|
16 |
|
17 |
This program is free software; you can redistribute it and/or modify
|
18 |
it under the terms of the GNU General Public License, version 2, as
|
@@ -30,53 +30,56 @@ License: GPLv2 or later
|
|
30 |
|
31 |
if ( ! function_exists( 'gglstmp_admin_menu' ) ) {
|
32 |
function gglstmp_admin_menu() {
|
33 |
-
|
34 |
-
|
35 |
-
$settings = add_menu_page(
|
36 |
-
__( 'Google Sitemap Settings', 'google-sitemap-plugin' ), /* $page_title */
|
37 |
-
'Google Sitemap', /* $menu_title */
|
38 |
-
'manage_options', /* $capability */
|
39 |
-
'google-sitemap-plugin.php', /* $menu_slug */
|
40 |
-
'gglstmp_settings_page', /* $callable_function */
|
41 |
-
'none' /* $icon_url */
|
42 |
-
);
|
43 |
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
|
53 |
-
|
54 |
-
|
55 |
-
__( '
|
56 |
-
__( '
|
57 |
'manage_options', /* $capability */
|
58 |
-
'google-sitemap-
|
59 |
'gglstmp_settings_page' /* $callable_function */
|
60 |
);
|
61 |
-
}
|
62 |
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
|
|
71 |
|
72 |
-
|
73 |
-
|
74 |
-
'
|
75 |
-
'
|
76 |
-
'
|
77 |
-
|
|
|
|
|
78 |
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
}
|
81 |
}
|
82 |
|
@@ -90,7 +93,7 @@ if ( ! function_exists( 'gglstmp_plugins_loaded' ) ) {
|
|
90 |
/* Function adds language files */
|
91 |
if ( ! function_exists( 'gglstmp_init' ) ) {
|
92 |
function gglstmp_init() {
|
93 |
-
global $gglstmp_plugin_info;
|
94 |
|
95 |
if ( empty( $gglstmp_plugin_info ) ) {
|
96 |
if ( ! function_exists( 'get_plugin_data' ) ) {
|
@@ -119,25 +122,51 @@ if ( ! function_exists( 'gglstmp_init' ) ) {
|
|
119 |
if ( file_exists( $robots_txt_url ) ) {
|
120 |
$robots_content = file_get_contents( $robots_txt_url );
|
121 |
$robots_content .= "\n";
|
122 |
-
$public
|
123 |
header( 'Content-Type: text/plain; charset=utf-8' );
|
124 |
echo apply_filters( 'robots_txt', $robots_content, $public );
|
125 |
exit;
|
126 |
}
|
127 |
}
|
128 |
|
129 |
-
|
|
|
|
|
|
|
|
|
|
|
130 |
$blog_id = get_current_blog_id();
|
131 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
} else {
|
133 |
-
$
|
134 |
}
|
135 |
|
136 |
-
|
137 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
}
|
139 |
|
140 |
-
if ( isset( $
|
141 |
gglstmp_schedule_sitemap( false, false, true );
|
142 |
}
|
143 |
}
|
@@ -191,8 +220,8 @@ if ( ! function_exists( 'gglstmp_register_settings' ) ) {
|
|
191 |
$options_default = gglstmp_get_options_default();
|
192 |
$gglstmp_options = array_merge( $options_default, $gglstmp_options );
|
193 |
/**
|
194 |
-
|
195 |
-
|
196 |
if ( ! isset( $gglstmp_options['plugin_option_version'] ) || version_compare( str_replace( 'pro-', '', $gglstmp_options['plugin_option_version'] ), '3.1.0', '<' ) ) {
|
197 |
unset( $gglstmp_options['sitemap'] );
|
198 |
gglstmp_activate();
|
@@ -215,17 +244,19 @@ if ( ! function_exists( 'gglstmp_get_options_default' ) ) {
|
|
215 |
global $gglstmp_plugin_info;
|
216 |
|
217 |
$options_default = array(
|
218 |
-
'plugin_option_version'
|
219 |
-
'first_install'
|
220 |
-
'display_settings_notice'
|
221 |
-
'suggest_feature_banner'
|
222 |
-
'post_type'
|
223 |
-
'taxonomy'
|
224 |
-
'limit'
|
225 |
-
'sitemap_cron_delay'
|
226 |
-
'sitemaps'
|
227 |
-
'alternate_language'
|
|
|
228 |
);
|
|
|
229 |
return $options_default;
|
230 |
}
|
231 |
}
|
@@ -233,12 +264,15 @@ if ( ! function_exists( 'gglstmp_get_options_default' ) ) {
|
|
233 |
/**
|
234 |
* @since 3.1.1
|
235 |
* Update sitemap on permalink structure update.
|
236 |
-
*
|
237 |
-
* @
|
|
|
|
|
238 |
*/
|
239 |
if ( ! function_exists( 'gglstmp_rewrite_rules' ) ) {
|
240 |
function gglstmp_rewrite_rules( $rules ) {
|
241 |
gglstmp_schedule_sitemap();
|
|
|
242 |
return $rules;
|
243 |
}
|
244 |
}
|
@@ -246,9 +280,11 @@ if ( ! function_exists( 'gglstmp_rewrite_rules' ) ) {
|
|
246 |
/**
|
247 |
* @since 3.1.0
|
248 |
* Schedules sitemap preparing task for specified blog.
|
249 |
-
*
|
250 |
-
* @param
|
251 |
-
* @
|
|
|
|
|
252 |
*/
|
253 |
if ( ! function_exists( 'gglstmp_schedule_sitemap' ) ) {
|
254 |
function gglstmp_schedule_sitemap( $blog_id = false, $no_cron = false, $now = false ) {
|
@@ -285,8 +321,10 @@ if ( ! function_exists( 'gglstmp_edited_term' ) ) {
|
|
285 |
* A single sitemap file will be created if the limit isn't reached,
|
286 |
* otherwise sitemap file for each part of array of items will be created. Blog index file would be created also.
|
287 |
* If multisite network is used, network index file will be created also.
|
288 |
-
*
|
289 |
-
* @
|
|
|
|
|
290 |
*/
|
291 |
if ( ! function_exists( 'gglstmp_prepare_sitemap' ) ) {
|
292 |
function gglstmp_prepare_sitemap( $blog_id = false ) {
|
@@ -294,11 +332,12 @@ if ( ! function_exists( 'gglstmp_prepare_sitemap' ) ) {
|
|
294 |
|
295 |
$old_blog = $wpdb->blogid;
|
296 |
|
297 |
-
$
|
298 |
-
$
|
299 |
-
$
|
300 |
-
$
|
301 |
-
$
|
|
|
302 |
|
303 |
if ( $is_multisite && ! empty( $blog_id ) ) {
|
304 |
switch_to_blog( absint( $blog_id ) );
|
@@ -351,8 +390,8 @@ if ( ! function_exists( 'gglstmp_prepare_sitemap' ) ) {
|
|
351 |
|
352 |
/* get all taxonomies */
|
353 |
$taxonomies = array(
|
354 |
-
'category' => __( 'Post categories','google-sitemap-plugin' ),
|
355 |
-
'post_tag' => __( 'Post tags','google-sitemap-plugin' )
|
356 |
);
|
357 |
|
358 |
foreach ( $taxonomies as $key => $taxonomy_name ) {
|
@@ -362,16 +401,16 @@ if ( ! function_exists( 'gglstmp_prepare_sitemap' ) ) {
|
|
362 |
}
|
363 |
|
364 |
/* add home page */
|
365 |
-
$show_on_front
|
366 |
-
$frontpage_id
|
367 |
$frontpage_is_added = false;
|
368 |
|
369 |
if ( ! empty( $post_types ) ) {
|
370 |
-
$post_status_string = "p.`post_status` IN ('" . implode( "','", (array)$post_status ) . "')";
|
371 |
|
372 |
$excluded_posts_string = $post_types_string = '';
|
373 |
|
374 |
-
$post_types_string = "AND p.`post_type` IN ('" . implode( "','", (array)$post_types ) . "')";
|
375 |
|
376 |
if ( ! empty( $excluded_posts ) ) {
|
377 |
$excluded_posts_string = "AND p.`ID` NOT IN (" . implode( ",", $excluded_posts ) . ")";
|
@@ -409,14 +448,68 @@ if ( ! function_exists( 'gglstmp_prepare_sitemap' ) ) {
|
|
409 |
foreach ( $posts as $post ) {
|
410 |
$priority = 0.8;
|
411 |
if ( $show_on_front && $frontpage_id == $post->ID ) {
|
412 |
-
$priority
|
413 |
$frontpage_is_added = true;
|
414 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
415 |
$elements[] = array(
|
416 |
-
'url'
|
417 |
-
'date'
|
418 |
-
'frequency'
|
419 |
-
'priority'
|
420 |
);
|
421 |
|
422 |
}
|
@@ -425,10 +518,10 @@ if ( ! function_exists( 'gglstmp_prepare_sitemap' ) ) {
|
|
425 |
|
426 |
if ( ! $frontpage_is_added ) {
|
427 |
$elements[] = array(
|
428 |
-
'url'
|
429 |
-
'date'
|
430 |
-
'frequency'
|
431 |
-
'priority'
|
432 |
);
|
433 |
}
|
434 |
|
@@ -438,12 +531,12 @@ if ( ! function_exists( 'gglstmp_prepare_sitemap' ) ) {
|
|
438 |
|
439 |
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
|
440 |
foreach ( $terms as $term_value ) {
|
441 |
-
$modified
|
442 |
$elements[] = array(
|
443 |
-
'url'
|
444 |
-
'date'
|
445 |
-
'frequency'
|
446 |
-
'priority'
|
447 |
);
|
448 |
}
|
449 |
}
|
@@ -454,46 +547,69 @@ if ( ! function_exists( 'gglstmp_prepare_sitemap' ) ) {
|
|
454 |
$existing_files = gglstmp_get_sitemap_files();
|
455 |
array_map( "unlink", $existing_files );
|
456 |
|
457 |
-
$gglstmp_options['sitemaps']
|
458 |
$gglstmp_options['link_count'] = count( $elements );
|
459 |
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
if (
|
464 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
465 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
466 |
} else {
|
467 |
-
|
468 |
-
|
469 |
-
gglstmp_create_sitemap( $
|
|
|
|
|
|
|
|
|
|
|
|
|
470 |
}
|
471 |
}
|
472 |
|
473 |
-
if ( $is_multisite
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
$existing_files = gglstmp_get_sitemap_files( 0 );
|
478 |
array_map( "unlink", $existing_files );
|
479 |
-
|
480 |
-
if ( count( $elements ) > $gglstmp_options['limit'] ) {
|
481 |
-
/* creating subsite sitemap only when limit is exhausted or external sitemap is added */
|
482 |
-
gglstmp_create_sitemap_index();
|
483 |
-
}
|
484 |
-
|
485 |
-
/* create main network sitemap index file. Only for subfolder structure, as index sitemap cannot contain sitemaps located on different domain/subdomain */
|
486 |
-
gglstmp_create_sitemap_index( 0 );
|
487 |
-
} elseif( count( $elements ) > $gglstmp_options['limit'] ) {
|
488 |
-
/* external sitemap is added as custom link on a sinle site */
|
489 |
-
gglstmp_create_sitemap_index();
|
490 |
}
|
|
|
|
|
491 |
}
|
492 |
-
|
493 |
/**
|
494 |
* Options update is necessary because 'gglstmp_create_sitemap' and 'gglstmp_create_sitemap_index' functions
|
495 |
* have modified $gglstmp_options global variable by calling 'gglstmp_save_sitemap_info' function
|
496 |
*/
|
|
|
497 |
update_option( 'gglstmp_options', $gglstmp_options );
|
498 |
if ( $is_multisite ) {
|
499 |
switch_to_blog( $old_blog );
|
@@ -512,25 +628,28 @@ if ( ! function_exists( 'gglstmp_prepare_sitemap' ) ) {
|
|
512 |
* On single subsite of multisite network, $blog_id == 1:
|
513 |
* a) $part_num isn't set: "sitemap_1.xml"
|
514 |
* b) $part_num is set and equals 2: "sitemap_1_2.xml".
|
515 |
-
*
|
516 |
-
* @param
|
517 |
-
* @
|
|
|
|
|
518 |
*/
|
519 |
if ( ! function_exists( 'gglstmp_create_sitemap' ) ) {
|
520 |
function gglstmp_create_sitemap( $elements, $part_num = 0 ) {
|
521 |
global $blog_id, $mltlngg_languages, $mltlngg_enabled_languages, $gglstmp_options;
|
522 |
|
523 |
-
$xml
|
524 |
-
$home_url
|
525 |
-
$xml_stylesheet_path
|
526 |
-
$xml_stylesheet_path
|
527 |
-
$xslt
|
528 |
$xml->appendChild( $xslt );
|
529 |
-
$urlset = $xml->appendChild( $xml->createElementNS( 'http://www.sitemaps.org/schemas/sitemap/0.9','urlset' ) );
|
530 |
|
531 |
/* Used to check compatibility and work with the plugin Multilanguage*/
|
|
|
532 |
$compatibility = false;
|
533 |
-
if( ! empty( $gglstmp_options['alternate_language'] ) &&
|
534 |
$compatibility = true;
|
535 |
}
|
536 |
|
@@ -542,8 +661,8 @@ if ( ! function_exists( 'gglstmp_create_sitemap' ) ) {
|
|
542 |
foreach ( $mltlngg_enabled_languages as $language ) {
|
543 |
foreach ( $mltlngg_languages as $item ) {
|
544 |
if ( $language['name'] == $item[2] ) {
|
545 |
-
$language['lang']
|
546 |
-
$enabled_languages[$item[2]] = $language;
|
547 |
}
|
548 |
}
|
549 |
}
|
@@ -558,7 +677,7 @@ if ( ! function_exists( 'gglstmp_create_sitemap' ) ) {
|
|
558 |
if ( $compatibility ) {
|
559 |
foreach ( $enabled_languages as $language ) {
|
560 |
$args_links["lang"] = $language["locale"];
|
561 |
-
$args_links["url"]
|
562 |
|
563 |
$url = $urlset->appendChild( $xml->createElement( 'url' ) );
|
564 |
$loc = $url->appendChild( $xml->createElement( 'loc' ) );
|
@@ -566,7 +685,7 @@ if ( ! function_exists( 'gglstmp_create_sitemap' ) ) {
|
|
566 |
|
567 |
foreach ( $enabled_languages as $language ) {
|
568 |
$args_links["lang"] = $language["locale"];
|
569 |
-
$link
|
570 |
$link->setAttribute( "rel", "alternate" );
|
571 |
$link->setAttribute( "hreflang", $language['lang'] );
|
572 |
$link->setAttribute( "href", $lang_link( $args_links ) );
|
@@ -600,10 +719,301 @@ if ( ! function_exists( 'gglstmp_create_sitemap' ) ) {
|
|
600 |
|
601 |
$part_num = ( absint( $part_num ) > 0 ) ? '_' . absint( $part_num ) : '';
|
602 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
603 |
if ( is_multisite() ) {
|
604 |
-
$filename = '
|
605 |
} else {
|
606 |
-
$filename = '
|
607 |
}
|
608 |
$xml->save( ABSPATH . $filename );
|
609 |
gglstmp_save_sitemap_info( $filename );
|
@@ -613,13 +1023,14 @@ if ( ! function_exists( 'gglstmp_create_sitemap' ) ) {
|
|
613 |
/**
|
614 |
* @since 3.1.0
|
615 |
* Function creates xml sitemap index file.
|
616 |
-
*
|
617 |
-
* @
|
|
|
|
|
618 |
*/
|
619 |
if ( ! function_exists( 'gglstmp_create_sitemap_index' ) ) {
|
620 |
-
function gglstmp_create_sitemap_index( $blog_id = false ) {
|
621 |
-
global $wpdb;
|
622 |
-
|
623 |
/* index sitemap for network supports only subfolder multisite installation */
|
624 |
if ( 0 === $blog_id && is_multisite() && is_subdomain_install() ) {
|
625 |
return;
|
@@ -628,27 +1039,34 @@ if ( ! function_exists( 'gglstmp_create_sitemap_index' ) ) {
|
|
628 |
$blog_id = ( false === $blog_id ) ? get_current_blog_id() : absint( $blog_id );
|
629 |
|
630 |
if ( ! is_multisite() || 0 === $blog_id ) {
|
631 |
-
$
|
|
|
|
|
|
|
|
|
632 |
} else {
|
633 |
-
$
|
|
|
|
|
|
|
|
|
634 |
}
|
635 |
|
636 |
-
$elements
|
637 |
-
|
638 |
-
$index_file = ABSPATH . $index_filename;
|
639 |
|
640 |
if ( file_exists( $index_file ) ) {
|
641 |
unlink( $index_file );
|
642 |
}
|
643 |
|
644 |
-
$xmlindex
|
645 |
$site_url = ( 0 === $blog_id ) ? network_site_url( '/' ) : site_url( '/' );
|
646 |
|
647 |
$xml_stylesheet_path = ( defined( 'WP_CONTENT_DIR' ) ) ? $site_url . basename( WP_CONTENT_DIR ) : $site_url . 'wp-content';
|
648 |
$xml_stylesheet_path .= ( defined( 'WP_PLUGIN_DIR' ) ) ? '/' . basename( WP_PLUGIN_DIR ) . '/google-sitemap-plugin/sitemap-index.xsl' : '/plugins/google-sitemap-plugin/sitemap-index.xsl';
|
649 |
|
650 |
$xmlindex->appendChild( $xmlindex->createProcessingInstruction( 'xml-stylesheet', "type=\"text/xsl\" href=\"$xml_stylesheet_path\"" ) );
|
651 |
-
$sitemapindex = $xmlindex->appendChild( $xmlindex->createElementNS( 'http://www.sitemaps.org/schemas/sitemap/0.9','sitemapindex' ) );
|
652 |
foreach ( $elements as $element ) {
|
653 |
$sitemap = $sitemapindex->appendChild( $xmlindex->createElement( 'sitemap' ) );
|
654 |
$loc = $sitemap->appendChild( $xmlindex->createElement( 'loc' ) );
|
@@ -675,18 +1093,20 @@ if ( ! function_exists( 'gglstmp_create_sitemap_index' ) ) {
|
|
675 |
/**
|
676 |
* @since 3.1.0
|
677 |
* Function gets the elements from the blogs options and returns an array of elements to include to the index sitemap file.
|
678 |
-
*
|
679 |
-
* @
|
|
|
|
|
680 |
*/
|
681 |
if ( ! function_exists( 'gglstmp_get_index_elements' ) ) {
|
682 |
function gglstmp_get_index_elements( $blog_id = false, $include_index = false ) {
|
683 |
global $wpdb;
|
684 |
$index_elements = $external_index_elements = array();
|
685 |
-
$is_multisite
|
686 |
if ( $is_multisite && 0 === $blog_id ) {
|
687 |
/* building main network index */
|
688 |
$old_blog = $wpdb->blogid;
|
689 |
-
$blogids
|
690 |
foreach ( $blogids as $id ) {
|
691 |
switch_to_blog( $id );
|
692 |
$blog_options = get_option( 'gglstmp_options' );
|
@@ -717,6 +1137,7 @@ if ( ! function_exists( 'gglstmp_get_index_elements' ) ) {
|
|
717 |
}
|
718 |
}
|
719 |
}
|
|
|
720 |
return $index_elements;
|
721 |
}
|
722 |
}
|
@@ -724,11 +1145,13 @@ if ( ! function_exists( 'gglstmp_get_index_elements' ) ) {
|
|
724 |
/**
|
725 |
* @since 3.1.0
|
726 |
* Function returns all the corresponding existing sitemap files.
|
727 |
-
*
|
728 |
-
*
|
729 |
-
*
|
730 |
-
*
|
731 |
-
*
|
|
|
|
|
732 |
*/
|
733 |
if ( ! function_exists( 'gglstmp_get_sitemap_files' ) ) {
|
734 |
function gglstmp_get_sitemap_files( $blog_id = false ) {
|
@@ -740,20 +1163,21 @@ if ( ! function_exists( 'gglstmp_get_sitemap_files' ) ) {
|
|
740 |
}
|
741 |
if ( 'all' === $blog_id ) {
|
742 |
/* all existing sitemap files */
|
743 |
-
$mask = "sitemap*.xml";
|
744 |
} elseif ( 0 === $blog_id ) {
|
745 |
/* main network index */
|
746 |
-
$mask = "sitemap.xml";
|
747 |
} else {
|
748 |
/* all subsite sitemap files */
|
749 |
-
$mask = "sitemap_{$blog_id}*.xml";
|
750 |
}
|
751 |
} else {
|
752 |
-
$mask = "sitemap*.xml";
|
753 |
}
|
754 |
|
755 |
-
if ( isset( $mask ) )
|
756 |
$files = glob( ABSPATH . $mask );
|
|
|
757 |
|
758 |
return $files;
|
759 |
}
|
@@ -761,8 +1185,10 @@ if ( ! function_exists( 'gglstmp_get_sitemap_files' ) ) {
|
|
761 |
|
762 |
/**
|
763 |
* Function checks the availability of the sitemap file by the provided URL.
|
764 |
-
*
|
765 |
-
* @
|
|
|
|
|
766 |
*/
|
767 |
if ( ! function_exists( 'gglstmp_check_sitemap' ) ) {
|
768 |
function gglstmp_check_sitemap( $url ) {
|
@@ -778,25 +1204,27 @@ if ( ! function_exists( 'gglstmp_check_sitemap' ) ) {
|
|
778 |
/**
|
779 |
* @since 3.1.0
|
780 |
* Function checks the availability of the sitemap file by the provided URL.
|
781 |
-
*
|
782 |
-
* @param
|
783 |
-
*
|
784 |
-
*
|
785 |
-
*
|
|
|
|
|
786 |
*/
|
787 |
if ( ! function_exists( 'gglstmp_save_sitemap_info' ) ) {
|
788 |
function gglstmp_save_sitemap_info( $filename = 'sitemap.xml', $is_index = false ) {
|
789 |
global $gglstmp_options;
|
790 |
$xml_url = home_url( '/' ) . $filename;
|
791 |
$xml_path = ABSPATH . $filename;
|
792 |
-
$is_index =
|
793 |
|
794 |
$sitemap_data = array(
|
795 |
-
'is_index'
|
796 |
-
'file'
|
797 |
-
'path'
|
798 |
-
'loc'
|
799 |
-
'lastmod'
|
800 |
);
|
801 |
|
802 |
if ( file_exists( $xml_path ) ) {
|
@@ -819,7 +1247,7 @@ if ( ! function_exists( 'gglstmp_get_sitemap_info' ) ) {
|
|
819 |
}
|
820 |
}
|
821 |
|
822 |
-
if ( ! function_exists
|
823 |
function gglstmp_client() {
|
824 |
global $gglstmp_plugin_info;
|
825 |
|
@@ -830,11 +1258,15 @@ if ( ! function_exists ( 'gglstmp_client' ) ) {
|
|
830 |
$client = new Google_Client();
|
831 |
$client->setClientId( '37374817621-7ujpfn4ai4q98q4nb0gaaq5ga7j7u0ka.apps.googleusercontent.com' );
|
832 |
$client->setClientSecret( 'GMefWPZdRIWk3J7USu6_Kf6_' );
|
833 |
-
$client->setScopes( array(
|
|
|
|
|
|
|
834 |
$client->setRedirectUri( 'urn:ietf:wg:oauth:2.0:oob' );
|
835 |
$client->setAccessType( 'offline' );
|
836 |
$client->setDeveloperKey( 'AIzaSyBRFiI5TGKKeteDoDa8T8GkJGxRFa1IMxE' );
|
837 |
$client->setApplicationName( $gglstmp_plugin_info['Name'] );
|
|
|
838 |
return $client;
|
839 |
}
|
840 |
}
|
@@ -846,7 +1278,7 @@ if ( ! function_exists( 'gglstmp_plugin_status' ) ) {
|
|
846 |
'plugin' => '',
|
847 |
'plugin_info' => array(),
|
848 |
);
|
849 |
-
foreach ( (array)$plugins as $plugin ) {
|
850 |
if ( array_key_exists( $plugin, $all_plugins ) ) {
|
851 |
if (
|
852 |
( $is_network && is_plugin_active_for_network( $plugin ) ) ||
|
@@ -854,12 +1286,12 @@ if ( ! function_exists( 'gglstmp_plugin_status' ) ) {
|
|
854 |
) {
|
855 |
$result['status'] = 'actived';
|
856 |
$result['plugin'] = $plugin;
|
857 |
-
$result['plugin_info'] = $all_plugins[$plugin];
|
858 |
break;
|
859 |
} else {
|
860 |
$result['status'] = 'deactivated';
|
861 |
$result['plugin'] = $plugin;
|
862 |
-
$result['plugin_info'] = $all_plugins[$plugin];
|
863 |
}
|
864 |
|
865 |
}
|
@@ -867,31 +1299,37 @@ if ( ! function_exists( 'gglstmp_plugin_status' ) ) {
|
|
867 |
if ( empty( $result['status'] ) ) {
|
868 |
$result['status'] = 'not_installed';
|
869 |
}
|
|
|
870 |
return $result;
|
871 |
}
|
872 |
}
|
873 |
|
874 |
/* Display setting page */
|
875 |
-
if ( ! function_exists
|
876 |
function gglstmp_settings_page() {
|
877 |
global $gglstmp_plugin_info, $gglstmp_list_table;
|
878 |
require_once( dirname( __FILE__ ) . '/includes/pro_banners.php' ); ?>
|
879 |
-
|
880 |
<?php if ( 'google-sitemap-plugin.php' == $_GET['page'] ) { /* Showing settings tab */
|
881 |
require_once( dirname( __FILE__ ) . '/includes/class-gglstmp-settings.php' );
|
882 |
$page = new Gglstmp_Settings_Tabs( plugin_basename( __FILE__ ) ); ?>
|
883 |
-
|
884 |
-
|
|
|
|
|
|
|
|
|
885 |
<?php $page->display_content();
|
886 |
} else { ?>
|
887 |
-
|
888 |
<?php _e( 'Custom Links', 'google-sitemap-plugin' ); ?>
|
889 |
-
|
890 |
-
|
|
|
891 |
<?php gglstmp_pro_block( "gglstmp_custom_links_block", false );
|
892 |
bws_plugin_reviews_block( $gglstmp_plugin_info['Name'], 'google-sitemap-plugin' );
|
893 |
} ?>
|
894 |
-
|
895 |
<?php }
|
896 |
}
|
897 |
|
@@ -900,11 +1338,12 @@ if ( ! function_exists( 'gglstmp_robots_add_sitemap' ) ) {
|
|
900 |
if ( '0' != $public ) {
|
901 |
$home_url = get_option( 'home' );
|
902 |
$filename = ( is_multisite() ) ? "sitemap_" . get_current_blog_id() . ".xml" : "sitemap.xml";
|
903 |
-
$line
|
904 |
if ( file_exists( ABSPATH . $filename ) && false === strpos( $output, $line ) ) {
|
905 |
$output .= "\n" . $line . "\n";
|
906 |
}
|
907 |
}
|
|
|
908 |
return $output;
|
909 |
}
|
910 |
}
|
@@ -925,7 +1364,7 @@ if ( ! function_exists( 'gglstmp_get_site_info' ) ) {
|
|
925 |
global $gglstmp_options;
|
926 |
|
927 |
$instruction_url = 'https://docs.google.com/document/d/1VOJx_OaasVskCqi9fsAbUmxfsckoagPU5Py97yjha9w/';
|
928 |
-
$home_url
|
929 |
$wmt_sites_array = $wmt_sitemaps_arr = array();
|
930 |
|
931 |
$return = '<table id="gglstmp_manage_table"><tr><th>' . __( 'Website', 'google-sitemap-plugin' ) . '</th>
|
@@ -962,12 +1401,12 @@ if ( ! function_exists( 'gglstmp_get_site_info' ) ) {
|
|
962 |
$return .= '<tr><th>' . __( 'Sitemap Status', 'google-sitemap-plugin' ) . '</th>';
|
963 |
|
964 |
if ( is_multisite() ) {
|
965 |
-
$blog_id
|
966 |
-
$xml_file
|
967 |
$url_sitemap = home_url( '/' ) . $xml_file;
|
968 |
} else {
|
969 |
-
$xml_file
|
970 |
-
$url_sitemap
|
971 |
}
|
972 |
|
973 |
if ( ! empty( $url_sitemap ) ) {
|
@@ -987,7 +1426,7 @@ if ( ! function_exists( 'gglstmp_get_site_info' ) ) {
|
|
987 |
}
|
988 |
}
|
989 |
} catch ( Google_Service_Exception $e ) {
|
990 |
-
$error
|
991 |
$sv_error = isset( $error[0]['message'] ) ? $error[0]['message'] : __( 'Unexpected error', 'google-sitemap-plugin' );
|
992 |
} catch ( Google_IO_Exception $e ) {
|
993 |
$sv_error = $e->getMessage();
|
@@ -1004,6 +1443,7 @@ if ( ! function_exists( 'gglstmp_get_site_info' ) ) {
|
|
1004 |
$return .= '<tr><th></th><td>' . __( "Manual verification required.", 'google-sitemap-plugin' ) . ' <a target="_blank" href="' . $instruction_url . '">' . __( 'Learn More', 'google-sitemap-plugin' ) . '</a></td></tr>';
|
1005 |
}
|
1006 |
$return .= '</table>';
|
|
|
1007 |
return $return;
|
1008 |
}
|
1009 |
}
|
@@ -1014,7 +1454,7 @@ if ( ! function_exists( 'gglstmp_delete_site' ) ) {
|
|
1014 |
global $gglstmp_options;
|
1015 |
|
1016 |
$home_url = home_url( '/' );
|
1017 |
-
$return
|
1018 |
<td><a href="' . $home_url . '" target="_blank">' . $home_url . '</a></td></tr>';
|
1019 |
|
1020 |
try {
|
@@ -1025,7 +1465,8 @@ if ( ! function_exists( 'gglstmp_delete_site' ) ) {
|
|
1025 |
} catch ( Google_Service_Exception $e ) {
|
1026 |
} catch ( Google_IO_Exception $e ) {
|
1027 |
} catch ( Google_Auth_Exception $e ) {
|
1028 |
-
} catch ( Exception $e ) {
|
|
|
1029 |
}
|
1030 |
|
1031 |
$webmasters->sites->delete( $home_url );
|
@@ -1036,7 +1477,7 @@ if ( ! function_exists( 'gglstmp_delete_site' ) ) {
|
|
1036 |
update_option( 'gglstmp_options', $gglstmp_options );
|
1037 |
|
1038 |
} catch ( Google_Service_Exception $e ) {
|
1039 |
-
$error
|
1040 |
$sv_error = isset( $error[0]['message'] ) ? $error[0]['message'] : __( 'Unexpected error', 'google-sitemap-plugin' );
|
1041 |
} catch ( Google_IO_Exception $e ) {
|
1042 |
$sv_error = $e->getMessage();
|
@@ -1053,6 +1494,7 @@ if ( ! function_exists( 'gglstmp_delete_site' ) ) {
|
|
1053 |
}
|
1054 |
}
|
1055 |
$return .= '</table>';
|
|
|
1056 |
return $return;
|
1057 |
}
|
1058 |
}
|
@@ -1063,7 +1505,7 @@ if ( ! function_exists( 'gglstmp_add_site' ) ) {
|
|
1063 |
global $gglstmp_options;
|
1064 |
|
1065 |
$instruction_url = 'https://docs.google.com/document/d/1VOJx_OaasVskCqi9fsAbUmxfsckoagPU5Py97yjha9w/';
|
1066 |
-
$home_url
|
1067 |
|
1068 |
$return = '<table id="gglstmp_manage_table"><tr><th>' . __( 'Website', 'google-sitemap-plugin' ) . '</th>
|
1069 |
<td><a href="' . $home_url . '" target="_blank">' . $home_url . '</a></td></tr>';
|
@@ -1072,7 +1514,7 @@ if ( ! function_exists( 'gglstmp_add_site' ) ) {
|
|
1072 |
$return .= '<tr><th>' . __( 'Status', 'google-sitemap-plugin' ) . '</th>
|
1073 |
<td class="gglstmp_success">' . __( 'Added', 'google-sitemap-plugin' ) . '</td></tr>';
|
1074 |
} catch ( Google_Service_Exception $e ) {
|
1075 |
-
$error
|
1076 |
$wmt_error = isset( $error[0]['message'] ) ? $error[0]['message'] : __( 'Unexpected error', 'google-sitemap-plugin' );
|
1077 |
} catch ( Google_IO_Exception $e ) {
|
1078 |
$wmt_error = $e->getMessage();
|
@@ -1098,7 +1540,7 @@ if ( ! function_exists( 'gglstmp_add_site' ) ) {
|
|
1098 |
$gglstmp_sv_get_token_request = new Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest;
|
1099 |
$gglstmp_sv_get_token_request->setSite( $gglstmp_sv_get_token_request_site );
|
1100 |
$gglstmp_sv_get_token_request->setVerificationMethod( 'META' );
|
1101 |
-
$getToken
|
1102 |
$gglstmp_options['site_vererification_code'] = htmlspecialchars( $getToken['token'] );
|
1103 |
if ( preg_match( '|^<meta name="google-site-verification" content="(.*)" />$|', $gglstmp_options['site_vererification_code'] ) ) {
|
1104 |
update_option( 'gglstmp_options', $gglstmp_options );
|
@@ -1110,7 +1552,7 @@ if ( ! function_exists( 'gglstmp_add_site' ) ) {
|
|
1110 |
<td>' . __( 'Received, but has not been added to the site', 'google-sitemap-plugin' ) . '</td></tr>';
|
1111 |
}
|
1112 |
} catch ( Google_Service_Exception $e ) {
|
1113 |
-
$error
|
1114 |
$sv_error = isset( $error[0]['message'] ) ? $error[0]['message'] : __( 'Unexpected error', 'google-sitemap-plugin' );
|
1115 |
} catch ( Google_IO_Exception $e ) {
|
1116 |
$sv_error = $e->getMessage();
|
@@ -1141,7 +1583,7 @@ if ( ! function_exists( 'gglstmp_add_site' ) ) {
|
|
1141 |
$return .= '<tr><th>' . __( 'Verification Status', 'google-sitemap-plugin' ) . '</th>
|
1142 |
<td class="gglstmp_success">' . __( 'Verified', 'google-sitemap-plugin' ) . '</td></tr>';
|
1143 |
} catch ( Google_Service_Exception $e ) {
|
1144 |
-
$error
|
1145 |
$sv_error = isset( $error[0]['message'] ) ? $error[0]['message'] : __( 'Unexpected error', 'google-sitemap-plugin' );
|
1146 |
} catch ( Google_IO_Exception $e ) {
|
1147 |
$sv_error = $e->getMessage();
|
@@ -1165,7 +1607,7 @@ if ( ! function_exists( 'gglstmp_add_site' ) ) {
|
|
1165 |
$is_multisite = is_multisite();
|
1166 |
|
1167 |
if ( $is_multisite ) {
|
1168 |
-
$blog_id
|
1169 |
$sitemap_filename = "sitemap_{$blog_id}.xml";
|
1170 |
} else {
|
1171 |
$sitemap_filename = 'sitemap.xml';
|
@@ -1176,14 +1618,14 @@ if ( ! function_exists( 'gglstmp_add_site' ) ) {
|
|
1176 |
! empty( $gglstmp_options['sitemaps'][ $sitemap_filename ]['path'] ) &&
|
1177 |
file_exists( $gglstmp_options['sitemaps'][ $sitemap_filename ]['path'] )
|
1178 |
) {
|
1179 |
-
$sitemap_url
|
1180 |
$check_result = gglstmp_check_sitemap( $sitemap_url );
|
1181 |
if ( ! is_wp_error( $check_result ) && 200 == $check_result['code'] ) {
|
1182 |
try {
|
1183 |
$webmasters->sitemaps->submit( $home_url, $sitemap_url );
|
1184 |
$return .= '<td class="gglstmp_success">' . __( 'Added', 'google-sitemap-plugin' ) . '</td></tr>';
|
1185 |
} catch ( Google_Service_Exception $e ) {
|
1186 |
-
$error
|
1187 |
$wmt_error = isset( $error[0]['message'] ) ? $error[0]['message'] : __( 'Unexpected error', 'google-sitemap-plugin' );
|
1188 |
} catch ( Google_IO_Exception $e ) {
|
1189 |
$wmt_error = $e->getMessage();
|
@@ -1221,6 +1663,7 @@ if ( ! function_exists( 'gglstmp_add_site' ) ) {
|
|
1221 |
}
|
1222 |
|
1223 |
$return .= '</table>';
|
|
|
1224 |
return $return;
|
1225 |
}
|
1226 |
}
|
@@ -1280,6 +1723,7 @@ if ( ! function_exists( 'gglstmp_action_links' ) ) {
|
|
1280 |
array_unshift( $links, $settings_link );
|
1281 |
}
|
1282 |
}
|
|
|
1283 |
return $links;
|
1284 |
}
|
1285 |
}
|
@@ -1294,11 +1738,12 @@ if ( ! function_exists( 'gglstmp_links' ) ) {
|
|
1294 |
$links[] = '<a href="https://support.bestwebsoft.com/hc/en-us/sections/200538869" target="_blank">' . __( 'FAQ', 'google-sitemap-plugin' ) . '</a>';
|
1295 |
$links[] = '<a href="https://support.bestwebsoft.com">' . __( 'Support', 'google-sitemap-plugin' ) . '</a>';
|
1296 |
}
|
|
|
1297 |
return $links;
|
1298 |
}
|
1299 |
}
|
1300 |
|
1301 |
-
if ( ! function_exists
|
1302 |
function gglstmp_plugin_banner() {
|
1303 |
global $hook_suffix, $gglstmp_plugin_info, $gglstmp_options;
|
1304 |
|
@@ -1324,9 +1769,9 @@ if ( ! function_exists ( 'gglstmp_plugin_banner' ) ) {
|
|
1324 |
if ( ! function_exists( 'gglstmp_add_tabs' ) ) {
|
1325 |
function gglstmp_add_tabs() {
|
1326 |
$screen = get_current_screen();
|
1327 |
-
$args
|
1328 |
-
'id'
|
1329 |
-
'section'
|
1330 |
);
|
1331 |
bws_help_tab( $screen, $args );
|
1332 |
}
|
@@ -1335,7 +1780,9 @@ if ( ! function_exists( 'gglstmp_add_tabs' ) ) {
|
|
1335 |
/**
|
1336 |
* Fires when the new blog has been added or during the blog activation, marking as not spam or as not archived.
|
1337 |
* @since 1.2.9
|
1338 |
-
*
|
|
|
|
|
1339 |
* @return void
|
1340 |
*/
|
1341 |
if ( ! function_exists( 'gglstmp_add_sitemap' ) ) {
|
@@ -1362,18 +1809,41 @@ if ( ! function_exists( 'gglstmp_add_sitemap' ) ) {
|
|
1362 |
/**
|
1363 |
* Fires when the blog has been deleted or blog status has been changed to 'spam', 'deactivated(deleted)' or 'archived'.
|
1364 |
* @since 1.2.9
|
1365 |
-
*
|
|
|
|
|
1366 |
* @return void
|
1367 |
*/
|
1368 |
if ( ! function_exists( 'gglstmp_delete_sitemap' ) ) {
|
1369 |
-
function gglstmp_delete_sitemap( $blog_id ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1370 |
|
1371 |
/* remove blog sitemap files */
|
1372 |
-
|
1373 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1374 |
|
1375 |
/* update network index file */
|
1376 |
-
|
|
|
|
|
1377 |
}
|
1378 |
}
|
1379 |
|
@@ -1409,6 +1879,76 @@ if ( ! function_exists( 'gglstmp_delete_settings' ) ) {
|
|
1409 |
}
|
1410 |
}
|
1411 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1412 |
register_activation_hook( __FILE__, 'gglstmp_activate' );
|
1413 |
|
1414 |
add_action( 'admin_menu', 'gglstmp_admin_menu' );
|
@@ -1425,15 +1965,15 @@ add_action( 'transition_post_status', 'gglstmp_check_post_status', 10, 3 );
|
|
1425 |
add_action( 'save_post', 'gglstmp_update_sitemap', 10, 2 );
|
1426 |
add_action( 'trashed_post', 'gglstmp_update_sitemap' );
|
1427 |
|
1428 |
-
add_action( 'gglstmp_sitemap_cron','gglstmp_prepare_sitemap' );
|
1429 |
|
1430 |
/* rebuild sitemap on permalink structure change, on taxonomy term add/edit/delete */
|
1431 |
-
add_action( 'permalink_structure_changed','gglstmp_schedule_sitemap', 10, 0 );
|
1432 |
-
add_action( 'created_term','gglstmp_edited_term', 10, 3 );
|
1433 |
-
add_action( 'edited_term','gglstmp_edited_term', 10, 3 );
|
1434 |
-
add_action( 'delete_term','gglstmp_edited_term', 10, 3 );
|
1435 |
|
1436 |
-
add_filter( 'rewrite_rules_array','gglstmp_rewrite_rules', PHP_INT_MAX, 1 );
|
1437 |
|
1438 |
add_action( 'wp_head', 'gglstmp_add_verification_code' );
|
1439 |
|
@@ -1452,4 +1992,13 @@ add_action( 'delete_blog', 'gglstmp_delete_sitemap' );
|
|
1452 |
add_action( 'deactivate_blog', 'gglstmp_delete_sitemap' );
|
1453 |
add_action( 'make_delete_blog', 'gglstmp_delete_sitemap' );
|
1454 |
add_action( 'archive_blog', 'gglstmp_delete_sitemap' );
|
1455 |
-
add_action( 'make_spam_blog', 'gglstmp_delete_sitemap' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
Author: BestWebSoft
|
7 |
Text Domain: google-sitemap-plugin
|
8 |
Domain Path: /languages
|
9 |
+
Version: 3.1.7
|
10 |
Author URI: https://bestwebsoft.com/
|
11 |
License: GPLv2 or later
|
12 |
*/
|
13 |
|
14 |
/*
|
15 |
+
© Copyright 2019 BestWebSoft ( https://support.bestwebsoft.com )
|
16 |
|
17 |
This program is free software; you can redistribute it and/or modify
|
18 |
it under the terms of the GNU General Public License, version 2, as
|
30 |
|
31 |
if ( ! function_exists( 'gglstmp_admin_menu' ) ) {
|
32 |
function gglstmp_admin_menu() {
|
33 |
+
if ( ! is_plugin_active( 'google-sitemap-pro/google-sitemap-pro.php' ) ) {
|
34 |
+
global $gglstmp_options, $wp_version, $submenu, $gglstmp_plugin_info;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
+
$settings = add_menu_page(
|
37 |
+
__( 'Google Sitemap Settings', 'google-sitemap-plugin' ), /* $page_title */
|
38 |
+
'Google Sitemap', /* $menu_title */
|
39 |
+
'manage_options', /* $capability */
|
40 |
+
'google-sitemap-plugin.php', /* $menu_slug */
|
41 |
+
'gglstmp_settings_page', /* $callable_function */
|
42 |
+
'none' /* $icon_url */
|
43 |
+
);
|
44 |
|
45 |
+
add_submenu_page(
|
46 |
+
'google-sitemap-plugin.php', /* $parent_slug */
|
47 |
+
__( 'Google Sitemap Settings', 'google-sitemap-plugin' ), /* $page_title */
|
48 |
+
__( 'Settings', 'google-sitemap-plugin' ), /* $menu_title */
|
49 |
'manage_options', /* $capability */
|
50 |
+
'google-sitemap-plugin.php', /* $menu_slug */
|
51 |
'gglstmp_settings_page' /* $callable_function */
|
52 |
);
|
|
|
53 |
|
54 |
+
if ( ! bws_hide_premium_options_check( $gglstmp_options ) ) {
|
55 |
+
add_submenu_page( 'google-sitemap-plugin.php', /* $parent_slug */
|
56 |
+
__( 'Custom Links', 'google-sitemap-plugin' ), /* $page_title */
|
57 |
+
__( 'Custom Links', 'google-sitemap-plugin' ), /* $menu_title */
|
58 |
+
'manage_options', /* $capability */
|
59 |
+
'google-sitemap-custom-links.php', /* $menu_slug */
|
60 |
+
'gglstmp_settings_page' /* $callable_function */
|
61 |
+
);
|
62 |
+
}
|
63 |
|
64 |
+
add_submenu_page(
|
65 |
+
'google-sitemap-plugin.php', /* $parent_slug */
|
66 |
+
'BWS Panel', /* $page_title */
|
67 |
+
'BWS Panel', /* $menu_title */
|
68 |
+
'manage_options', /* $capability */
|
69 |
+
'gglstmp-bws-panel', /* $menu_slug */
|
70 |
+
'bws_add_menu_render' /* $callable_function */
|
71 |
+
);
|
72 |
|
73 |
+
if ( isset( $submenu['google-sitemap-plugin.php'] ) ) {
|
74 |
+
$submenu['google-sitemap-plugin.php'][] = array(
|
75 |
+
'<span style="color:#d86463"> ' . __( 'Upgrade to Pro', 'google-sitemap-plugin' ) . '</span>',
|
76 |
+
'manage_options',
|
77 |
+
'https://bestwebsoft.com/products/wordpress/plugins/google-sitemap/?k=28d4cf0b4ab6f56e703f46f60d34d039&pn=83&v=' . $gglstmp_plugin_info["Version"] . '&wp_v=' . $wp_version
|
78 |
+
);
|
79 |
+
}
|
80 |
+
|
81 |
+
add_action( "load-{$settings}", 'gglstmp_add_tabs' );
|
82 |
+
}
|
83 |
}
|
84 |
}
|
85 |
|
93 |
/* Function adds language files */
|
94 |
if ( ! function_exists( 'gglstmp_init' ) ) {
|
95 |
function gglstmp_init() {
|
96 |
+
global $gglstmp_plugin_info, $gglstmp_options;
|
97 |
|
98 |
if ( empty( $gglstmp_plugin_info ) ) {
|
99 |
if ( ! function_exists( 'get_plugin_data' ) ) {
|
122 |
if ( file_exists( $robots_txt_url ) ) {
|
123 |
$robots_content = file_get_contents( $robots_txt_url );
|
124 |
$robots_content .= "\n";
|
125 |
+
$public = get_option( 'blog_public' );
|
126 |
header( 'Content-Type: text/plain; charset=utf-8' );
|
127 |
echo apply_filters( 'robots_txt', $robots_content, $public );
|
128 |
exit;
|
129 |
}
|
130 |
}
|
131 |
|
132 |
+
/* Verification of the existence of an sitemaps. Calling up the sitemap creation function */
|
133 |
+
$gglstmp_media_from_bd = get_option( 'gglstmp_options' );
|
134 |
+
$gglstmp_media_sitemap = isset( $_POST['gglstmp_media_sitemap'] ) ? $_POST['gglstmp_media_sitemap'] : $gglstmp_media_from_bd['media_sitemap'];
|
135 |
+
|
136 |
+
/* delete all sitemaps, update option 'media_sitemap' */
|
137 |
+
if ( isset( $_POST['gglstmp_media_sitemap'] ) ) { // if true => option has been change
|
138 |
$blog_id = get_current_blog_id();
|
139 |
+
gglstmp_delete_sitemap( $blog_id, true );
|
140 |
+
|
141 |
+
$gglstmp_options['media_sitemap'] = $gglstmp_media_sitemap;
|
142 |
+
update_option( 'gglstmp_options', $gglstmp_options );
|
143 |
+
}
|
144 |
+
|
145 |
+
if ( 1 == $gglstmp_options['media_sitemap'] ) {
|
146 |
+
$sitemaps_type = [ 'video_sitemap', 'image_sitemap', 'sitemap' ];
|
147 |
} else {
|
148 |
+
$sitemaps_type = [ 'sitemap' ];
|
149 |
}
|
150 |
|
151 |
+
/* check for file existence and call refresh function */
|
152 |
+
if ( is_multisite() ) {
|
153 |
+
$blog_id = get_current_blog_id();
|
154 |
+
foreach ( $sitemaps_type as $sitemap ) {
|
155 |
+
$filename = "{$sitemap}_{$blog_id}.xml";
|
156 |
+
if ( ! file_exists( ABSPATH . $filename ) ) {
|
157 |
+
$sitemap_recreate = true;
|
158 |
+
}
|
159 |
+
}
|
160 |
+
} else {
|
161 |
+
foreach ( $sitemaps_type as $sitemap ) {
|
162 |
+
$filename = "{$sitemap}.xml";
|
163 |
+
if ( ! file_exists( ABSPATH . $filename ) ) {
|
164 |
+
$sitemap_recreate = true;
|
165 |
+
}
|
166 |
+
}
|
167 |
}
|
168 |
|
169 |
+
if ( isset( $sitemap_recreate ) ) {
|
170 |
gglstmp_schedule_sitemap( false, false, true );
|
171 |
}
|
172 |
}
|
220 |
$options_default = gglstmp_get_options_default();
|
221 |
$gglstmp_options = array_merge( $options_default, $gglstmp_options );
|
222 |
/**
|
223 |
+
* Register uninstall hook
|
224 |
+
*/
|
225 |
if ( ! isset( $gglstmp_options['plugin_option_version'] ) || version_compare( str_replace( 'pro-', '', $gglstmp_options['plugin_option_version'] ), '3.1.0', '<' ) ) {
|
226 |
unset( $gglstmp_options['sitemap'] );
|
227 |
gglstmp_activate();
|
244 |
global $gglstmp_plugin_info;
|
245 |
|
246 |
$options_default = array(
|
247 |
+
'plugin_option_version' => $gglstmp_plugin_info['Version'],
|
248 |
+
'first_install' => strtotime( "now" ),
|
249 |
+
'display_settings_notice' => 1,
|
250 |
+
'suggest_feature_banner' => 1,
|
251 |
+
'post_type' => array( 'page', 'post' ),
|
252 |
+
'taxonomy' => array(),
|
253 |
+
'limit' => 50000,
|
254 |
+
'sitemap_cron_delay' => 600, /* delay in seconds to next cron */
|
255 |
+
'sitemaps' => array(),
|
256 |
+
'alternate_language' => 0,
|
257 |
+
'media_sitemap' => 0
|
258 |
);
|
259 |
+
|
260 |
return $options_default;
|
261 |
}
|
262 |
}
|
264 |
/**
|
265 |
* @since 3.1.1
|
266 |
* Update sitemap on permalink structure update.
|
267 |
+
*
|
268 |
+
* @param array $rules array of existing rules. No modification is needed.
|
269 |
+
*
|
270 |
+
* @return array $rules
|
271 |
*/
|
272 |
if ( ! function_exists( 'gglstmp_rewrite_rules' ) ) {
|
273 |
function gglstmp_rewrite_rules( $rules ) {
|
274 |
gglstmp_schedule_sitemap();
|
275 |
+
|
276 |
return $rules;
|
277 |
}
|
278 |
}
|
280 |
/**
|
281 |
* @since 3.1.0
|
282 |
* Schedules sitemap preparing task for specified blog.
|
283 |
+
*
|
284 |
+
* @param mixed $blog_id (int)The blog id the sitemap is created for. Default is false - for current blog.
|
285 |
+
* @param bool $no_cron Set if sitemap creation would be executed using cron. Default is false.
|
286 |
+
*
|
287 |
+
* @return void
|
288 |
*/
|
289 |
if ( ! function_exists( 'gglstmp_schedule_sitemap' ) ) {
|
290 |
function gglstmp_schedule_sitemap( $blog_id = false, $no_cron = false, $now = false ) {
|
321 |
* A single sitemap file will be created if the limit isn't reached,
|
322 |
* otherwise sitemap file for each part of array of items will be created. Blog index file would be created also.
|
323 |
* If multisite network is used, network index file will be created also.
|
324 |
+
*
|
325 |
+
* @param mixed $blog_id (int)The blog id the sitemap is created for. Default is false - for current blog.
|
326 |
+
*
|
327 |
+
* @return void
|
328 |
*/
|
329 |
if ( ! function_exists( 'gglstmp_prepare_sitemap' ) ) {
|
330 |
function gglstmp_prepare_sitemap( $blog_id = false ) {
|
332 |
|
333 |
$old_blog = $wpdb->blogid;
|
334 |
|
335 |
+
$counter = 0;
|
336 |
+
$part_num = 1;
|
337 |
+
$elements = array();
|
338 |
+
$image_elements = array();
|
339 |
+
$video_elements = array();
|
340 |
+
$is_multisite = is_multisite();
|
341 |
|
342 |
if ( $is_multisite && ! empty( $blog_id ) ) {
|
343 |
switch_to_blog( absint( $blog_id ) );
|
390 |
|
391 |
/* get all taxonomies */
|
392 |
$taxonomies = array(
|
393 |
+
'category' => __( 'Post categories', 'google-sitemap-plugin' ),
|
394 |
+
'post_tag' => __( 'Post tags', 'google-sitemap-plugin' )
|
395 |
);
|
396 |
|
397 |
foreach ( $taxonomies as $key => $taxonomy_name ) {
|
401 |
}
|
402 |
|
403 |
/* add home page */
|
404 |
+
$show_on_front = ! ! ( 'page' == get_option( 'show_on_front' ) );
|
405 |
+
$frontpage_id = get_option( 'page_on_front' );
|
406 |
$frontpage_is_added = false;
|
407 |
|
408 |
if ( ! empty( $post_types ) ) {
|
409 |
+
$post_status_string = "p.`post_status` IN ('" . implode( "','", (array) $post_status ) . "')";
|
410 |
|
411 |
$excluded_posts_string = $post_types_string = '';
|
412 |
|
413 |
+
$post_types_string = "AND p.`post_type` IN ('" . implode( "','", (array) $post_types ) . "')";
|
414 |
|
415 |
if ( ! empty( $excluded_posts ) ) {
|
416 |
$excluded_posts_string = "AND p.`ID` NOT IN (" . implode( ",", $excluded_posts ) . ")";
|
448 |
foreach ( $posts as $post ) {
|
449 |
$priority = 0.8;
|
450 |
if ( $show_on_front && $frontpage_id == $post->ID ) {
|
451 |
+
$priority = 1.0;
|
452 |
$frontpage_is_added = true;
|
453 |
}
|
454 |
+
|
455 |
+
if ( $gglstmp_options['media_sitemap'] ) {
|
456 |
+
/* Prepear video_list and image_list data for sitemap */
|
457 |
+
$video_list = get_attached_media( 'video', $post );
|
458 |
+
$image_list = get_attached_media( 'image', $post );
|
459 |
+
/* Add image to list */
|
460 |
+
$image_item = [];
|
461 |
+
if ( ! empty( $image_list ) ) {
|
462 |
+
$image_count = 0;
|
463 |
+
foreach ( $image_list as $image ) {
|
464 |
+
$image_count ++;
|
465 |
+
if ( $image_count > 1000 ) {
|
466 |
+
break;
|
467 |
+
}
|
468 |
+
$attachment_metadata = wp_get_attachment_metadata( $image->ID );
|
469 |
+
|
470 |
+
$explode_metadata = explode( '/', $attachment_metadata['file'] );
|
471 |
+
array_pop( $explode_metadata );
|
472 |
+
$image_upload_date = implode( ' ', $explode_metadata );
|
473 |
+
|
474 |
+
$image_guid = basename( $image->guid );
|
475 |
+
$check_img_exists = gglstmp_if_file_exists( $image_guid, $image_upload_date );
|
476 |
+
if ( $check_img_exists ) {
|
477 |
+
$image_item[] = $image->guid;
|
478 |
+
}
|
479 |
+
}
|
480 |
+
/* Add array image_elements of one post */
|
481 |
+
$image_elements[] = array(
|
482 |
+
'url' => get_permalink( $post ),
|
483 |
+
'image_list_url' => $image_item
|
484 |
+
);
|
485 |
+
}
|
486 |
+
/* Add video to list */
|
487 |
+
$video_item = [];
|
488 |
+
if ( ! empty( $video_list ) ) {
|
489 |
+
$video_count = 0;
|
490 |
+
foreach ( $video_list as $video ) {
|
491 |
+
$video_count ++;
|
492 |
+
if ( $video_count > 1000 ) {
|
493 |
+
break;
|
494 |
+
}
|
495 |
+
$video_info[] = $video->guid;
|
496 |
+
$video_info[] = $video->post_title;
|
497 |
+
$video_item[] = $video_info;
|
498 |
+
}
|
499 |
+
/* Add array video_elements of one post */
|
500 |
+
$video_elements[] = array(
|
501 |
+
'url' => get_permalink( $post ),
|
502 |
+
'video_list_url' => $video_item
|
503 |
+
);
|
504 |
+
}
|
505 |
+
}
|
506 |
+
|
507 |
+
/* Data for default sitemap */
|
508 |
$elements[] = array(
|
509 |
+
'url' => get_permalink( $post ),
|
510 |
+
'date' => date( 'Y-m-d\TH:i:sP', strtotime( $post->post_modified ) ),
|
511 |
+
'frequency' => 'monthly',
|
512 |
+
'priority' => $priority
|
513 |
);
|
514 |
|
515 |
}
|
518 |
|
519 |
if ( ! $frontpage_is_added ) {
|
520 |
$elements[] = array(
|
521 |
+
'url' => home_url( '/' ),
|
522 |
+
'date' => date( 'Y-m-d\TH:i:sP', time() ),
|
523 |
+
'frequency' => 'monthly',
|
524 |
+
'priority' => 1.0
|
525 |
);
|
526 |
}
|
527 |
|
531 |
|
532 |
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
|
533 |
foreach ( $terms as $term_value ) {
|
534 |
+
$modified = $wpdb->get_var( "SELECT `post_modified` FROM $wpdb->posts, $wpdb->term_relationships WHERE `post_status` = 'publish' AND `term_taxonomy_id` = " . $term_value->term_taxonomy_id . " AND $wpdb->posts.ID= $wpdb->term_relationships.object_id ORDER BY `post_modified` DESC" );
|
535 |
$elements[] = array(
|
536 |
+
'url' => get_term_link( (int) $term_value->term_id, $taxonomy ),
|
537 |
+
'date' => date( 'Y-m-d\TH:i:sP', strtotime( $modified ) ),
|
538 |
+
'frequency' => 'monthly',
|
539 |
+
'priority' => 0.8
|
540 |
);
|
541 |
}
|
542 |
}
|
547 |
$existing_files = gglstmp_get_sitemap_files();
|
548 |
array_map( "unlink", $existing_files );
|
549 |
|
550 |
+
$gglstmp_options['sitemaps'] = array();
|
551 |
$gglstmp_options['link_count'] = count( $elements );
|
552 |
|
553 |
+
/* create sitemap */
|
554 |
+
if ( $gglstmp_options['media_sitemap'] ) {
|
555 |
+
/* standard sitemap with link */
|
556 |
+
if ( count( $elements ) <= $gglstmp_options['limit'] ) {
|
557 |
+
$part_num = 0;
|
558 |
+
gglstmp_create_sitemap( $elements, $part_num );
|
559 |
+
} else {
|
560 |
+
$parts = array_chunk( $elements, $gglstmp_options['limit'] );
|
561 |
+
foreach ( $parts as $part_num => $part_elements ) {
|
562 |
+
gglstmp_create_sitemap( $part_elements, $part_num + 1 );
|
563 |
+
}
|
564 |
}
|
565 |
+
/* checking image_sitemap */
|
566 |
+
if ( count( $image_elements ) <= $gglstmp_options['limit'] ) {
|
567 |
+
$image_part_num = 0;
|
568 |
+
gglstmp_create_image_sitemap( $image_elements, $image_part_num );
|
569 |
+
} else {
|
570 |
+
$parts_image = array_chunk( $image_elements, $gglstmp_options['limit'] );
|
571 |
+
foreach ( $parts_image as $image_part_num => $part_image_elements ) {
|
572 |
+
gglstmp_create_image_sitemap( $part_image_elements, $image_part_num + 1 );
|
573 |
+
}
|
574 |
+
}
|
575 |
+
/* checking video_sitemap */
|
576 |
+
if ( count( $video_elements ) <= $gglstmp_options['limit'] ) {
|
577 |
+
$video_part_num = 0;
|
578 |
+
gglstmp_create_video_sitemap( $video_elements, $video_part_num );
|
579 |
+
} else {
|
580 |
+
$parts_video = array_chunk( $video_elements, $gglstmp_options['limit'] );
|
581 |
+
foreach ( $parts_video as $video_part_num => $part_video_elements ) {
|
582 |
+
gglstmp_create_video_sitemap( $part_video_elements, $video_part_num + 1 );
|
583 |
+
}
|
584 |
+
}
|
585 |
+
gglstmp_create_sitemap_index();
|
586 |
} else {
|
587 |
+
if ( count( $elements ) <= $gglstmp_options['limit'] ) {
|
588 |
+
$part_num = 0;
|
589 |
+
gglstmp_create_sitemap( $elements, $part_num );
|
590 |
+
} else {
|
591 |
+
$parts = array_chunk( $elements, $gglstmp_options['limit'] );
|
592 |
+
foreach ( $parts as $part_num => $part_elements ) {
|
593 |
+
gglstmp_create_sitemap( $part_elements, $part_num + 1 );
|
594 |
+
}
|
595 |
+
gglstmp_create_sitemap_index();
|
596 |
}
|
597 |
}
|
598 |
|
599 |
+
if ( $is_multisite ) {
|
600 |
+
/* removing main index file */
|
601 |
+
$existing_files = gglstmp_get_sitemap_files( 0 );
|
602 |
+
if ( ! $gglstmp_options['media_sitemap'] ) {
|
|
|
603 |
array_map( "unlink", $existing_files );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
604 |
}
|
605 |
+
/* Create main network sitemap index file. Only for subfolder structure, as index sitemap cannot contain sitemaps located on different domain/subdomain. */
|
606 |
+
gglstmp_create_sitemap_index( 0 );
|
607 |
}
|
|
|
608 |
/**
|
609 |
* Options update is necessary because 'gglstmp_create_sitemap' and 'gglstmp_create_sitemap_index' functions
|
610 |
* have modified $gglstmp_options global variable by calling 'gglstmp_save_sitemap_info' function
|
611 |
*/
|
612 |
+
|
613 |
update_option( 'gglstmp_options', $gglstmp_options );
|
614 |
if ( $is_multisite ) {
|
615 |
switch_to_blog( $old_blog );
|
628 |
* On single subsite of multisite network, $blog_id == 1:
|
629 |
* a) $part_num isn't set: "sitemap_1.xml"
|
630 |
* b) $part_num is set and equals 2: "sitemap_1_2.xml".
|
631 |
+
*
|
632 |
+
* @param array $elements An array of elements to include to the sitemap.
|
633 |
+
* @param int $part_num (optional) Indicates the number of the part of elements. It is included to the sitemap filename.
|
634 |
+
*
|
635 |
+
* @return void
|
636 |
*/
|
637 |
if ( ! function_exists( 'gglstmp_create_sitemap' ) ) {
|
638 |
function gglstmp_create_sitemap( $elements, $part_num = 0 ) {
|
639 |
global $blog_id, $mltlngg_languages, $mltlngg_enabled_languages, $gglstmp_options;
|
640 |
|
641 |
+
$xml = new DomDocument( '1.0', 'utf-8' );
|
642 |
+
$home_url = site_url( '/' );
|
643 |
+
$xml_stylesheet_path = ( defined( 'WP_CONTENT_DIR' ) ) ? $home_url . basename( WP_CONTENT_DIR ) : $home_url . 'wp-content';
|
644 |
+
$xml_stylesheet_path .= ( defined( 'WP_PLUGIN_DIR' ) ) ? '/' . basename( WP_PLUGIN_DIR ) . '/google-sitemap-plugin/sitemap.xsl' : '/plugins/google-sitemap-plugin/sitemap.xsl';
|
645 |
+
$xslt = $xml->createProcessingInstruction( 'xml-stylesheet', "type=\"text/xsl\" href=\"$xml_stylesheet_path\"" );
|
646 |
$xml->appendChild( $xslt );
|
647 |
+
$urlset = $xml->appendChild( $xml->createElementNS( 'http://www.sitemaps.org/schemas/sitemap/0.9', 'urlset' ) );
|
648 |
|
649 |
/* Used to check compatibility and work with the plugin Multilanguage*/
|
650 |
+
$count_lang = empty( $mltlngg_enabled_languages ) ? '' : count( $mltlngg_enabled_languages );
|
651 |
$compatibility = false;
|
652 |
+
if ( ! empty( $gglstmp_options['alternate_language'] ) && ( '' != $count_lang ) ) {
|
653 |
$compatibility = true;
|
654 |
}
|
655 |
|
661 |
foreach ( $mltlngg_enabled_languages as $language ) {
|
662 |
foreach ( $mltlngg_languages as $item ) {
|
663 |
if ( $language['name'] == $item[2] ) {
|
664 |
+
$language['lang'] = $item[0];
|
665 |
+
$enabled_languages[ $item[2] ] = $language;
|
666 |
}
|
667 |
}
|
668 |
}
|
677 |
if ( $compatibility ) {
|
678 |
foreach ( $enabled_languages as $language ) {
|
679 |
$args_links["lang"] = $language["locale"];
|
680 |
+
$args_links["url"] = $element["url"];
|
681 |
|
682 |
$url = $urlset->appendChild( $xml->createElement( 'url' ) );
|
683 |
$loc = $url->appendChild( $xml->createElement( 'loc' ) );
|
685 |
|
686 |
foreach ( $enabled_languages as $language ) {
|
687 |
$args_links["lang"] = $language["locale"];
|
688 |
+
$link = $url->appendChild( $xml->createElement( 'xhtml:link' ) );
|
689 |
$link->setAttribute( "rel", "alternate" );
|
690 |
$link->setAttribute( "hreflang", $language['lang'] );
|
691 |
$link->setAttribute( "href", $lang_link( $args_links ) );
|
719 |
|
720 |
$part_num = ( absint( $part_num ) > 0 ) ? '_' . absint( $part_num ) : '';
|
721 |
|
722 |
+
|
723 |
+
if ( $gglstmp_options['media_sitemap'] ) {
|
724 |
+
if ( is_multisite() ) {
|
725 |
+
$filename = 'default_sitemap_' . absint( $blog_id ) . $part_num . '.xml';
|
726 |
+
} else {
|
727 |
+
$filename = 'default_sitemap' . $part_num . '.xml';
|
728 |
+
}
|
729 |
+
} else {
|
730 |
+
if ( is_multisite() ) {
|
731 |
+
$filename = 'sitemap_' . absint( $blog_id ) . $part_num . '.xml';
|
732 |
+
} else {
|
733 |
+
$filename = 'sitemap' . $part_num . '.xml';
|
734 |
+
}
|
735 |
+
}
|
736 |
+
|
737 |
+
$xml->save( ABSPATH . $filename );
|
738 |
+
gglstmp_save_sitemap_info( $filename );
|
739 |
+
}
|
740 |
+
}
|
741 |
+
|
742 |
+
if ( ! function_exists( 'gglstmp_create_image_sitemap' ) ) {
|
743 |
+
function gglstmp_create_image_sitemap( $elements, $part_num = 0 ) {
|
744 |
+
global $blog_id, $mltlngg_languages, $mltlngg_enabled_languages, $gglstmp_options;
|
745 |
+
|
746 |
+
$xml = new DomDocument( '1.0', 'utf-8' );
|
747 |
+
$home_url = site_url( '/' );
|
748 |
+
$xml_stylesheet_path = ( defined( 'WP_CONTENT_DIR' ) ) ? $home_url . basename( WP_CONTENT_DIR ) : $home_url . 'wp-content';
|
749 |
+
$xml_stylesheet_path .= ( defined( 'WP_PLUGIN_DIR' ) ) ? '/' . basename( WP_PLUGIN_DIR ) . '/google-sitemap-plugin/image_sitemap.xsl' : '/plugins/google-sitemap-plugin/image_sitemap.xsl'; // добавить путь с xsl файлу оформления sitemap
|
750 |
+
$xslt = $xml->createProcessingInstruction( 'xml-stylesheet', "type=\"text/xsl\" href=\"$xml_stylesheet_path\"" );
|
751 |
+
$xml->appendChild( $xslt );
|
752 |
+
$urlset = $xml->appendChild( $xml->createElementNS( 'http://www.sitemaps.org/schemas/sitemap/0.9', 'urlset' ) );
|
753 |
+
|
754 |
+
/* Add namespace for image_sitemap */
|
755 |
+
$img_spacename = $xml->createAttribute( 'xmlns:image' );
|
756 |
+
$img_spacename->value = 'http://www.google.com/schemas/sitemap-image/1.1';
|
757 |
+
$urlset->appendChild( $img_spacename );
|
758 |
+
|
759 |
+
/* Used to check compatibility and work with the plugin Multilanguage */
|
760 |
+
$count_lang = empty( $mltlngg_enabled_languages ) ? '' : count( $mltlngg_enabled_languages );
|
761 |
+
$compatibility = false;
|
762 |
+
if ( ! empty( $gglstmp_options['alternate_language'] ) && ( '' != $count_lang ) ) {
|
763 |
+
$compatibility = true;
|
764 |
+
}
|
765 |
+
|
766 |
+
/* Create an array with active languages and add a value for hreflang */
|
767 |
+
$enabled_languages = array();
|
768 |
+
if ( $compatibility ) {
|
769 |
+
$urlset->setAttributeNS( 'http://www.w3.org/2000/xmlns/', 'xmlns:xhtml', 'http://www.w3.org/1999/xhtml' );
|
770 |
+
|
771 |
+
foreach ( $mltlngg_enabled_languages as $language ) {
|
772 |
+
foreach ( $mltlngg_languages as $item ) {
|
773 |
+
if ( $language['name'] == $item[2] ) {
|
774 |
+
$language['lang'] = $item[0];
|
775 |
+
$enabled_languages[ $item[2] ] = $language;
|
776 |
+
}
|
777 |
+
}
|
778 |
+
}
|
779 |
+
|
780 |
+
if ( function_exists( 'mltlngg_get_lang_link' ) ) {
|
781 |
+
$lang_link = 'mltlngg_get_lang_link';
|
782 |
+
}
|
783 |
+
$args_links = array();
|
784 |
+
}
|
785 |
+
|
786 |
+
foreach ( $elements as $element ) {
|
787 |
+
if ( $compatibility ) {
|
788 |
+
foreach ( $enabled_languages as $language ) {
|
789 |
+
$args_links["lang"] = $language["locale"];
|
790 |
+
$args_links["url"] = $element["url"];
|
791 |
+
|
792 |
+
$url = $urlset->appendChild( $xml->createElement( 'url' ) );
|
793 |
+
$loc = $url->appendChild( $xml->createElement( 'loc' ) );
|
794 |
+
$loc->appendChild( $xml->createTextNode( $lang_link( $args_links ) ) );
|
795 |
+
|
796 |
+
foreach ( $enabled_languages as $language ) {
|
797 |
+
$args_links["lang"] = $language["locale"];
|
798 |
+
$link = $url->appendChild( $xml->createElement( 'xhtml:link' ) );
|
799 |
+
$link->setAttribute( "rel", "alternate" );
|
800 |
+
$link->setAttribute( "hreflang", $language['lang'] );
|
801 |
+
$link->setAttribute( "href", $lang_link( $args_links ) );
|
802 |
+
}
|
803 |
+
|
804 |
+
if ( isset( $element['image_list_url'] ) ) {
|
805 |
+
foreach ( $element['image_list_url'] as $image_it ) {
|
806 |
+
$image = $url->appendChild( $xml->createElement( 'image:image' ) );
|
807 |
+
$imagecont = $image->appendChild( $xml->createElement( 'image:loc' ) );
|
808 |
+
$imagecont->appendChild( $xml->createTextNode( $image_it ) );
|
809 |
+
}
|
810 |
+
}
|
811 |
+
}
|
812 |
+
} else {
|
813 |
+
$url = $urlset->appendChild( $xml->createElement( 'url' ) );
|
814 |
+
$loc = $url->appendChild( $xml->createElement( 'loc' ) );
|
815 |
+
$loc->appendChild( $xml->createTextNode( $element['url'] ) );
|
816 |
+
|
817 |
+
if ( isset( $element['image_list_url'] ) ) {
|
818 |
+
foreach ( $element['image_list_url'] as $image_it ) {
|
819 |
+
$image = $url->appendChild( $xml->createElement( 'image:image' ) );
|
820 |
+
$imagecont = $image->appendChild( $xml->createElement( 'image:loc' ) );
|
821 |
+
$imagecont->appendChild( $xml->createTextNode( $image_it ) );
|
822 |
+
}
|
823 |
+
}
|
824 |
+
}
|
825 |
+
}
|
826 |
+
|
827 |
+
$xml->formatOutput = true;
|
828 |
+
|
829 |
+
if ( ! is_writable( ABSPATH ) ) {
|
830 |
+
@chmod( ABSPATH, 0755 );
|
831 |
+
}
|
832 |
+
|
833 |
+
$part_num = ( absint( $part_num ) > 0 ) ? '_' . absint( $part_num ) : '';
|
834 |
+
|
835 |
+
if ( is_multisite() ) {
|
836 |
+
$filename = 'image_sitemap_' . absint( $blog_id ) . $part_num . '.xml';
|
837 |
+
} else {
|
838 |
+
$filename = 'image_sitemap' . $part_num . '.xml';
|
839 |
+
}
|
840 |
+
$xml->save( ABSPATH . $filename );
|
841 |
+
gglstmp_save_sitemap_info( $filename );
|
842 |
+
}
|
843 |
+
}
|
844 |
+
|
845 |
+
if ( ! function_exists( 'gglstmp_if_file_exists' ) ) {
|
846 |
+
function gglstmp_if_file_exists( $filename, $time_dir = null, $format = '', $echo = true, $dir = '', $show_if_not_exists = '' ) {
|
847 |
+
$error = false;
|
848 |
+
$path = '';
|
849 |
+
$abspath = ltrim( ABSPATH, '/' );
|
850 |
+
|
851 |
+
if ( ! is_bool( $dir ) ) {
|
852 |
+
$dir = trim( trim( str_replace( $abspath, '', $dir ) ), '/' );
|
853 |
+
}
|
854 |
+
|
855 |
+
if ( false === $dir || empty( $dir ) ) {
|
856 |
+
$uploads = wp_upload_dir( $time_dir );
|
857 |
+
if ( isset( $uploads['error'] ) && ! empty( $uploads['error'] ) ) {
|
858 |
+
$error = true;
|
859 |
+
} else {
|
860 |
+
$path = $uploads['path'];
|
861 |
+
$dir = str_replace( $abspath, '', $path );
|
862 |
+
}
|
863 |
+
} elseif ( true === $dir ) {
|
864 |
+
// If $dir is set to true, then $filename is already the full path
|
865 |
+
$path = dirname( $filename );
|
866 |
+
$filename = basename( $filename );
|
867 |
+
$dir = str_replace( ABSPATH, '', $path );
|
868 |
+
} else {
|
869 |
+
$path = ABSPATH . $dir;
|
870 |
+
}
|
871 |
+
|
872 |
+
$full_path = $path . '/' . $filename;
|
873 |
+
|
874 |
+
$exists = ( $error || empty( $filename ) ) ? false : file_exists( $full_path );
|
875 |
+
|
876 |
+
if ( empty( $format ) ) {
|
877 |
+
$format = $exists;
|
878 |
+
$echo = false;
|
879 |
+
} else {
|
880 |
+
if ( ! $exists ) {
|
881 |
+
$format = $show_if_not_exists;
|
882 |
+
}
|
883 |
+
|
884 |
+
if ( $format ) {
|
885 |
+
$pathparts = pathinfo( $full_path );
|
886 |
+
$tags = array(
|
887 |
+
'%file_directory%' => $pathparts['dirname'],
|
888 |
+
'%file_extension%' => isset( $pathparts['extension'] ) ? $pathparts['extension'] : '',
|
889 |
+
'%file_name%' => $pathparts['basename'],
|
890 |
+
'%file_path%' => $full_path,
|
891 |
+
'%file_url%' => site_url() . '/' . $dir . '/' . $filename
|
892 |
+
);
|
893 |
+
|
894 |
+
foreach ( $tags as $tag => $new ) {
|
895 |
+
$format = str_replace( $tag, $new, $format );
|
896 |
+
}
|
897 |
+
}
|
898 |
+
}
|
899 |
+
|
900 |
+
if ( $echo ) {
|
901 |
+
echo $format;
|
902 |
+
}
|
903 |
+
|
904 |
+
return $format;
|
905 |
+
}
|
906 |
+
}
|
907 |
+
|
908 |
+
if ( ! function_exists( 'gglstmp_create_video_sitemap' ) ) {
|
909 |
+
function gglstmp_create_video_sitemap( $elements, $part_num = 0 ) {
|
910 |
+
global $blog_id, $mltlngg_languages, $mltlngg_enabled_languages, $gglstmp_options;
|
911 |
+
|
912 |
+
$xml = new DomDocument( '1.0', 'utf-8' );
|
913 |
+
$home_url = site_url( '/' );
|
914 |
+
$xml_stylesheet_path = ( defined( 'WP_CONTENT_DIR' ) ) ? $home_url . basename( WP_CONTENT_DIR ) : $home_url . 'wp-content';
|
915 |
+
$xml_stylesheet_path .= ( defined( 'WP_PLUGIN_DIR' ) ) ? '/' . basename( WP_PLUGIN_DIR ) . '/google-sitemap-plugin/video_sitemap.xsl' : '/plugins/google-sitemap-plugin/video_sitemap.xsl';
|
916 |
+
$xslt = $xml->createProcessingInstruction( 'xml-stylesheet', "type=\"text/xsl\" href=\"$xml_stylesheet_path\"" );
|
917 |
+
$xml->appendChild( $xslt );
|
918 |
+
$urlset = $xml->appendChild( $xml->createElementNS( 'http://www.sitemaps.org/schemas/sitemap/0.9', 'urlset' ) );
|
919 |
+
|
920 |
+
/* Add namespace for video_sitemap */
|
921 |
+
$video_spacename = $xml->createAttribute( 'xmlns:video' );
|
922 |
+
$video_spacename->value = 'http://www.google.com/schemas/sitemap-video/1.1';
|
923 |
+
$urlset->appendChild( $video_spacename );
|
924 |
+
|
925 |
+
/* Used to check compatibility and work with the plugin Multilanguage */
|
926 |
+
$count_lang = empty( $mltlngg_enabled_languages ) ? '' : count( $mltlngg_enabled_languages );
|
927 |
+
$compatibility = false;
|
928 |
+
if ( ! empty( $gglstmp_options['alternate_language'] ) && ( '' != $count_lang ) ) {
|
929 |
+
$compatibility = true;
|
930 |
+
}
|
931 |
+
|
932 |
+
/* Create an array with active languages and add a value for hreflang */
|
933 |
+
$enabled_languages = array();
|
934 |
+
if ( $compatibility ) {
|
935 |
+
$urlset->setAttributeNS( 'http://www.w3.org/2000/xmlns/', 'xmlns:xhtml', 'http://www.w3.org/1999/xhtml' );
|
936 |
+
|
937 |
+
foreach ( $mltlngg_enabled_languages as $language ) {
|
938 |
+
foreach ( $mltlngg_languages as $item ) {
|
939 |
+
if ( $language['name'] == $item[2] ) {
|
940 |
+
$language['lang'] = $item[0];
|
941 |
+
$enabled_languages[ $item[2] ] = $language;
|
942 |
+
}
|
943 |
+
}
|
944 |
+
}
|
945 |
+
|
946 |
+
if ( function_exists( 'mltlngg_get_lang_link' ) ) {
|
947 |
+
$lang_link = 'mltlngg_get_lang_link';
|
948 |
+
}
|
949 |
+
$args_links = array();
|
950 |
+
}
|
951 |
+
|
952 |
+
foreach ( $elements as $element ) {
|
953 |
+
if ( $compatibility ) {
|
954 |
+
foreach ( $enabled_languages as $language ) {
|
955 |
+
$args_links["lang"] = $language["locale"];
|
956 |
+
$args_links["url"] = $element["url"];
|
957 |
+
|
958 |
+
$url = $urlset->appendChild( $xml->createElement( 'url' ) );
|
959 |
+
$loc = $url->appendChild( $xml->createElement( 'loc' ) );
|
960 |
+
$loc->appendChild( $xml->createTextNode( $lang_link( $args_links ) ) );
|
961 |
+
|
962 |
+
foreach ( $enabled_languages as $language ) {
|
963 |
+
$args_links["lang"] = $language["locale"];
|
964 |
+
$link = $url->appendChild( $xml->createElement( 'xhtml:link' ) );
|
965 |
+
$link->setAttribute( "rel", "alternate" );
|
966 |
+
$link->setAttribute( "hreflang", $language['lang'] );
|
967 |
+
$link->setAttribute( "href", $lang_link( $args_links ) );
|
968 |
+
}
|
969 |
+
|
970 |
+
if ( isset( $element['video_list_url'] ) ) {
|
971 |
+
foreach ( $element['video_list_url'] as $video_it ) {
|
972 |
+
$video = $url->appendChild( $xml->createElement( 'video:video' ) );
|
973 |
+
|
974 |
+
/*video url*/
|
975 |
+
$videocont = $video->appendChild( $xml->createElement( 'video:url' ) );
|
976 |
+
$videocont->appendChild( $xml->createTextNode( $video_it[0] ) );
|
977 |
+
|
978 |
+
/*video title*/
|
979 |
+
$videotitle = $video->appendChild( $xml->createElement( 'video:title' ) );
|
980 |
+
$videotitle->appendChild( $xml->createTextNode( $video_it[1] ) );
|
981 |
+
}
|
982 |
+
}
|
983 |
+
}
|
984 |
+
} else {
|
985 |
+
$url = $urlset->appendChild( $xml->createElement( 'url' ) );
|
986 |
+
$loc = $url->appendChild( $xml->createElement( 'loc' ) );
|
987 |
+
$loc->appendChild( $xml->createTextNode( $element['url'] ) );
|
988 |
+
|
989 |
+
if ( isset( $element['video_list_url'] ) ) {
|
990 |
+
foreach ( $element['video_list_url'] as $video_it ) {
|
991 |
+
$video = $url->appendChild( $xml->createElement( 'video:video' ) );
|
992 |
+
|
993 |
+
/*video url*/
|
994 |
+
$videocont = $video->appendChild( $xml->createElement( 'video:url' ) );
|
995 |
+
$videocont->appendChild( $xml->createTextNode( $video_it[0] ) );
|
996 |
+
|
997 |
+
/*video title*/
|
998 |
+
$videotitle = $video->appendChild( $xml->createElement( 'video:title' ) );
|
999 |
+
$videotitle->appendChild( $xml->createTextNode( $video_it[1] ) );
|
1000 |
+
}
|
1001 |
+
}
|
1002 |
+
}
|
1003 |
+
}
|
1004 |
+
|
1005 |
+
$xml->formatOutput = true;
|
1006 |
+
|
1007 |
+
if ( ! is_writable( ABSPATH ) ) {
|
1008 |
+
@chmod( ABSPATH, 0755 );
|
1009 |
+
}
|
1010 |
+
|
1011 |
+
$part_num = ( absint( $part_num ) > 0 ) ? '_' . absint( $part_num ) : '';
|
1012 |
+
|
1013 |
if ( is_multisite() ) {
|
1014 |
+
$filename = 'video_sitemap_' . absint( $blog_id ) . $part_num . '.xml';
|
1015 |
} else {
|
1016 |
+
$filename = 'video_sitemap' . $part_num . '.xml';
|
1017 |
}
|
1018 |
$xml->save( ABSPATH . $filename );
|
1019 |
gglstmp_save_sitemap_info( $filename );
|
1023 |
/**
|
1024 |
* @since 3.1.0
|
1025 |
* Function creates xml sitemap index file.
|
1026 |
+
*
|
1027 |
+
* @param mixed $blog_id (optional) Sets if the index file is created for network (0) or for single subsite (false: current blog id).
|
1028 |
+
*
|
1029 |
+
* @return void
|
1030 |
*/
|
1031 |
if ( ! function_exists( 'gglstmp_create_sitemap_index' ) ) {
|
1032 |
+
function gglstmp_create_sitemap_index( $blog_id = false, $index_type = '' ) {
|
1033 |
+
global $wpdb, $gglstmp_options;
|
|
|
1034 |
/* index sitemap for network supports only subfolder multisite installation */
|
1035 |
if ( 0 === $blog_id && is_multisite() && is_subdomain_install() ) {
|
1036 |
return;
|
1039 |
$blog_id = ( false === $blog_id ) ? get_current_blog_id() : absint( $blog_id );
|
1040 |
|
1041 |
if ( ! is_multisite() || 0 === $blog_id ) {
|
1042 |
+
if ( '' === $index_type ) {
|
1043 |
+
$index_filename = "sitemap.xml";
|
1044 |
+
} else {
|
1045 |
+
$index_filename = "{$index_type}_sitemap.xml";
|
1046 |
+
}
|
1047 |
} else {
|
1048 |
+
if ( '' === $index_type ) {
|
1049 |
+
$index_filename = "sitemap_{$blog_id}.xml";
|
1050 |
+
} else {
|
1051 |
+
$index_filename = "{$index_type}_sitemap_{$blog_id}.xml";
|
1052 |
+
}
|
1053 |
}
|
1054 |
|
1055 |
+
$elements = gglstmp_get_index_elements( $blog_id, $index_type );
|
1056 |
+
$index_file = ABSPATH . $index_filename;
|
|
|
1057 |
|
1058 |
if ( file_exists( $index_file ) ) {
|
1059 |
unlink( $index_file );
|
1060 |
}
|
1061 |
|
1062 |
+
$xmlindex = new DomDocument( '1.0', 'utf-8' );
|
1063 |
$site_url = ( 0 === $blog_id ) ? network_site_url( '/' ) : site_url( '/' );
|
1064 |
|
1065 |
$xml_stylesheet_path = ( defined( 'WP_CONTENT_DIR' ) ) ? $site_url . basename( WP_CONTENT_DIR ) : $site_url . 'wp-content';
|
1066 |
$xml_stylesheet_path .= ( defined( 'WP_PLUGIN_DIR' ) ) ? '/' . basename( WP_PLUGIN_DIR ) . '/google-sitemap-plugin/sitemap-index.xsl' : '/plugins/google-sitemap-plugin/sitemap-index.xsl';
|
1067 |
|
1068 |
$xmlindex->appendChild( $xmlindex->createProcessingInstruction( 'xml-stylesheet', "type=\"text/xsl\" href=\"$xml_stylesheet_path\"" ) );
|
1069 |
+
$sitemapindex = $xmlindex->appendChild( $xmlindex->createElementNS( 'http://www.sitemaps.org/schemas/sitemap/0.9', 'sitemapindex' ) );
|
1070 |
foreach ( $elements as $element ) {
|
1071 |
$sitemap = $sitemapindex->appendChild( $xmlindex->createElement( 'sitemap' ) );
|
1072 |
$loc = $sitemap->appendChild( $xmlindex->createElement( 'loc' ) );
|
1093 |
/**
|
1094 |
* @since 3.1.0
|
1095 |
* Function gets the elements from the blogs options and returns an array of elements to include to the index sitemap file.
|
1096 |
+
*
|
1097 |
+
* @param mixed $blog_id (optional) Sets the range of elements to return. false - current subsite, 0 - network index, (int) - id of the subsite
|
1098 |
+
*
|
1099 |
+
* @return array $include_index (optional) Sets if index element should be also included.
|
1100 |
*/
|
1101 |
if ( ! function_exists( 'gglstmp_get_index_elements' ) ) {
|
1102 |
function gglstmp_get_index_elements( $blog_id = false, $include_index = false ) {
|
1103 |
global $wpdb;
|
1104 |
$index_elements = $external_index_elements = array();
|
1105 |
+
$is_multisite = is_multisite();
|
1106 |
if ( $is_multisite && 0 === $blog_id ) {
|
1107 |
/* building main network index */
|
1108 |
$old_blog = $wpdb->blogid;
|
1109 |
+
$blogids = $wpdb->get_col( "SELECT `blog_id` FROM $wpdb->blogs" );
|
1110 |
foreach ( $blogids as $id ) {
|
1111 |
switch_to_blog( $id );
|
1112 |
$blog_options = get_option( 'gglstmp_options' );
|
1137 |
}
|
1138 |
}
|
1139 |
}
|
1140 |
+
|
1141 |
return $index_elements;
|
1142 |
}
|
1143 |
}
|
1145 |
/**
|
1146 |
* @since 3.1.0
|
1147 |
* Function returns all the corresponding existing sitemap files.
|
1148 |
+
*
|
1149 |
+
* @param mixed $blog_id (optional, default: false) "all" || false || (int)blog_id. Specifies the range of xml files to return.
|
1150 |
+
* "all" - all availabe sitemap .xml files.
|
1151 |
+
* false - sitemaps of current blog.
|
1152 |
+
* blog_id - sitemaps of specified blog, 0 - network index file.
|
1153 |
+
*
|
1154 |
+
* @return array $files An array of filenames of existing files of the specified type.
|
1155 |
*/
|
1156 |
if ( ! function_exists( 'gglstmp_get_sitemap_files' ) ) {
|
1157 |
function gglstmp_get_sitemap_files( $blog_id = false ) {
|
1163 |
}
|
1164 |
if ( 'all' === $blog_id ) {
|
1165 |
/* all existing sitemap files */
|
1166 |
+
$mask = "*sitemap*.xml";
|
1167 |
} elseif ( 0 === $blog_id ) {
|
1168 |
/* main network index */
|
1169 |
+
$mask = "*sitemap.xml";
|
1170 |
} else {
|
1171 |
/* all subsite sitemap files */
|
1172 |
+
$mask = "*sitemap_{$blog_id}*.xml";
|
1173 |
}
|
1174 |
} else {
|
1175 |
+
$mask = "*sitemap*.xml";
|
1176 |
}
|
1177 |
|
1178 |
+
if ( isset( $mask ) ) {
|
1179 |
$files = glob( ABSPATH . $mask );
|
1180 |
+
}
|
1181 |
|
1182 |
return $files;
|
1183 |
}
|
1185 |
|
1186 |
/**
|
1187 |
* Function checks the availability of the sitemap file by the provided URL.
|
1188 |
+
*
|
1189 |
+
* @param string $url The url of the xml sitemap file to check.
|
1190 |
+
*
|
1191 |
+
* @return array $result An array with the code and message of the external url check. 200 == $result['code'] if success.
|
1192 |
*/
|
1193 |
if ( ! function_exists( 'gglstmp_check_sitemap' ) ) {
|
1194 |
function gglstmp_check_sitemap( $url ) {
|
1204 |
/**
|
1205 |
* @since 3.1.0
|
1206 |
* Function checks the availability of the sitemap file by the provided URL.
|
1207 |
+
*
|
1208 |
+
* @param string $filename The filename to save to the options.
|
1209 |
+
* @param string $is_index Indicates if the file is an index sitemap.
|
1210 |
+
* false if is regular sitemap
|
1211 |
+
* 'index' if is sitemap index
|
1212 |
+
*
|
1213 |
+
* @return void
|
1214 |
*/
|
1215 |
if ( ! function_exists( 'gglstmp_save_sitemap_info' ) ) {
|
1216 |
function gglstmp_save_sitemap_info( $filename = 'sitemap.xml', $is_index = false ) {
|
1217 |
global $gglstmp_options;
|
1218 |
$xml_url = home_url( '/' ) . $filename;
|
1219 |
$xml_path = ABSPATH . $filename;
|
1220 |
+
$is_index = ! ! $is_index ? 1 : 0;
|
1221 |
|
1222 |
$sitemap_data = array(
|
1223 |
+
'is_index' => $is_index,
|
1224 |
+
'file' => $filename,
|
1225 |
+
'path' => $xml_path,
|
1226 |
+
'loc' => $xml_url,
|
1227 |
+
'lastmod' => date( 'Y-m-d\TH:i:sP', filemtime( $xml_path ) )
|
1228 |
);
|
1229 |
|
1230 |
if ( file_exists( $xml_path ) ) {
|
1247 |
}
|
1248 |
}
|
1249 |
|
1250 |
+
if ( ! function_exists( 'gglstmp_client' ) ) {
|
1251 |
function gglstmp_client() {
|
1252 |
global $gglstmp_plugin_info;
|
1253 |
|
1258 |
$client = new Google_Client();
|
1259 |
$client->setClientId( '37374817621-7ujpfn4ai4q98q4nb0gaaq5ga7j7u0ka.apps.googleusercontent.com' );
|
1260 |
$client->setClientSecret( 'GMefWPZdRIWk3J7USu6_Kf6_' );
|
1261 |
+
$client->setScopes( array(
|
1262 |
+
'https://www.googleapis.com/auth/webmasters',
|
1263 |
+
'https://www.googleapis.com/auth/siteverification'
|
1264 |
+
) );
|
1265 |
$client->setRedirectUri( 'urn:ietf:wg:oauth:2.0:oob' );
|
1266 |
$client->setAccessType( 'offline' );
|
1267 |
$client->setDeveloperKey( 'AIzaSyBRFiI5TGKKeteDoDa8T8GkJGxRFa1IMxE' );
|
1268 |
$client->setApplicationName( $gglstmp_plugin_info['Name'] );
|
1269 |
+
|
1270 |
return $client;
|
1271 |
}
|
1272 |
}
|
1278 |
'plugin' => '',
|
1279 |
'plugin_info' => array(),
|
1280 |
);
|
1281 |
+
foreach ( (array) $plugins as $plugin ) {
|
1282 |
if ( array_key_exists( $plugin, $all_plugins ) ) {
|
1283 |
if (
|
1284 |
( $is_network && is_plugin_active_for_network( $plugin ) ) ||
|
1286 |
) {
|
1287 |
$result['status'] = 'actived';
|
1288 |
$result['plugin'] = $plugin;
|
1289 |
+
$result['plugin_info'] = $all_plugins[ $plugin ];
|
1290 |
break;
|
1291 |
} else {
|
1292 |
$result['status'] = 'deactivated';
|
1293 |
$result['plugin'] = $plugin;
|
1294 |
+
$result['plugin_info'] = $all_plugins[ $plugin ];
|
1295 |
}
|
1296 |
|
1297 |
}
|
1299 |
if ( empty( $result['status'] ) ) {
|
1300 |
$result['status'] = 'not_installed';
|
1301 |
}
|
1302 |
+
|
1303 |
return $result;
|
1304 |
}
|
1305 |
}
|
1306 |
|
1307 |
/* Display setting page */
|
1308 |
+
if ( ! function_exists( 'gglstmp_settings_page' ) ) {
|
1309 |
function gglstmp_settings_page() {
|
1310 |
global $gglstmp_plugin_info, $gglstmp_list_table;
|
1311 |
require_once( dirname( __FILE__ ) . '/includes/pro_banners.php' ); ?>
|
1312 |
+
<div class="wrap">
|
1313 |
<?php if ( 'google-sitemap-plugin.php' == $_GET['page'] ) { /* Showing settings tab */
|
1314 |
require_once( dirname( __FILE__ ) . '/includes/class-gglstmp-settings.php' );
|
1315 |
$page = new Gglstmp_Settings_Tabs( plugin_basename( __FILE__ ) ); ?>
|
1316 |
+
<h1>Google Sitemap <?php _e( 'Settings', 'google-sitemap-plugin' ); ?></h1>
|
1317 |
+
<noscript>
|
1318 |
+
<div class="error below-h2"><p>
|
1319 |
+
<strong><?php _e( "Please enable JavaScript in your browser.", 'google-sitemap-plugin' ); ?></strong>
|
1320 |
+
</p></div>
|
1321 |
+
</noscript>
|
1322 |
<?php $page->display_content();
|
1323 |
} else { ?>
|
1324 |
+
<h1>
|
1325 |
<?php _e( 'Custom Links', 'google-sitemap-plugin' ); ?>
|
1326 |
+
<button disabled="disabled"
|
1327 |
+
class="page-title-action add-new-h2"><?php _e( 'Add New', 'google-sitemap-plugin' ); ?></button>
|
1328 |
+
</h1>
|
1329 |
<?php gglstmp_pro_block( "gglstmp_custom_links_block", false );
|
1330 |
bws_plugin_reviews_block( $gglstmp_plugin_info['Name'], 'google-sitemap-plugin' );
|
1331 |
} ?>
|
1332 |
+
</div>
|
1333 |
<?php }
|
1334 |
}
|
1335 |
|
1338 |
if ( '0' != $public ) {
|
1339 |
$home_url = get_option( 'home' );
|
1340 |
$filename = ( is_multisite() ) ? "sitemap_" . get_current_blog_id() . ".xml" : "sitemap.xml";
|
1341 |
+
$line = "Sitemap: " . $home_url . "/" . $filename;
|
1342 |
if ( file_exists( ABSPATH . $filename ) && false === strpos( $output, $line ) ) {
|
1343 |
$output .= "\n" . $line . "\n";
|
1344 |
}
|
1345 |
}
|
1346 |
+
|
1347 |
return $output;
|
1348 |
}
|
1349 |
}
|
1364 |
global $gglstmp_options;
|
1365 |
|
1366 |
$instruction_url = 'https://docs.google.com/document/d/1VOJx_OaasVskCqi9fsAbUmxfsckoagPU5Py97yjha9w/';
|
1367 |
+
$home_url = home_url( '/' );
|
1368 |
$wmt_sites_array = $wmt_sitemaps_arr = array();
|
1369 |
|
1370 |
$return = '<table id="gglstmp_manage_table"><tr><th>' . __( 'Website', 'google-sitemap-plugin' ) . '</th>
|
1401 |
$return .= '<tr><th>' . __( 'Sitemap Status', 'google-sitemap-plugin' ) . '</th>';
|
1402 |
|
1403 |
if ( is_multisite() ) {
|
1404 |
+
$blog_id = get_current_blog_id();
|
1405 |
+
$xml_file = 'sitemap_' . $blog_id . '.xml';
|
1406 |
$url_sitemap = home_url( '/' ) . $xml_file;
|
1407 |
} else {
|
1408 |
+
$xml_file = 'sitemap.xml';
|
1409 |
+
$url_sitemap = home_url( '/' ) . $xml_file;
|
1410 |
}
|
1411 |
|
1412 |
if ( ! empty( $url_sitemap ) ) {
|
1426 |
}
|
1427 |
}
|
1428 |
} catch ( Google_Service_Exception $e ) {
|
1429 |
+
$error = $e->getErrors();
|
1430 |
$sv_error = isset( $error[0]['message'] ) ? $error[0]['message'] : __( 'Unexpected error', 'google-sitemap-plugin' );
|
1431 |
} catch ( Google_IO_Exception $e ) {
|
1432 |
$sv_error = $e->getMessage();
|
1443 |
$return .= '<tr><th></th><td>' . __( "Manual verification required.", 'google-sitemap-plugin' ) . ' <a target="_blank" href="' . $instruction_url . '">' . __( 'Learn More', 'google-sitemap-plugin' ) . '</a></td></tr>';
|
1444 |
}
|
1445 |
$return .= '</table>';
|
1446 |
+
|
1447 |
return $return;
|
1448 |
}
|
1449 |
}
|
1454 |
global $gglstmp_options;
|
1455 |
|
1456 |
$home_url = home_url( '/' );
|
1457 |
+
$return = '<table id="gglstmp_manage_table"><tr><th>' . __( 'Website', 'google-sitemap-plugin' ) . '</th>
|
1458 |
<td><a href="' . $home_url . '" target="_blank">' . $home_url . '</a></td></tr>';
|
1459 |
|
1460 |
try {
|
1465 |
} catch ( Google_Service_Exception $e ) {
|
1466 |
} catch ( Google_IO_Exception $e ) {
|
1467 |
} catch ( Google_Auth_Exception $e ) {
|
1468 |
+
} catch ( Exception $e ) {
|
1469 |
+
}
|
1470 |
}
|
1471 |
|
1472 |
$webmasters->sites->delete( $home_url );
|
1477 |
update_option( 'gglstmp_options', $gglstmp_options );
|
1478 |
|
1479 |
} catch ( Google_Service_Exception $e ) {
|
1480 |
+
$error = $e->getErrors();
|
1481 |
$sv_error = isset( $error[0]['message'] ) ? $error[0]['message'] : __( 'Unexpected error', 'google-sitemap-plugin' );
|
1482 |
} catch ( Google_IO_Exception $e ) {
|
1483 |
$sv_error = $e->getMessage();
|
1494 |
}
|
1495 |
}
|
1496 |
$return .= '</table>';
|
1497 |
+
|
1498 |
return $return;
|
1499 |
}
|
1500 |
}
|
1505 |
global $gglstmp_options;
|
1506 |
|
1507 |
$instruction_url = 'https://docs.google.com/document/d/1VOJx_OaasVskCqi9fsAbUmxfsckoagPU5Py97yjha9w/';
|
1508 |
+
$home_url = home_url( '/' );
|
1509 |
|
1510 |
$return = '<table id="gglstmp_manage_table"><tr><th>' . __( 'Website', 'google-sitemap-plugin' ) . '</th>
|
1511 |
<td><a href="' . $home_url . '" target="_blank">' . $home_url . '</a></td></tr>';
|
1514 |
$return .= '<tr><th>' . __( 'Status', 'google-sitemap-plugin' ) . '</th>
|
1515 |
<td class="gglstmp_success">' . __( 'Added', 'google-sitemap-plugin' ) . '</td></tr>';
|
1516 |
} catch ( Google_Service_Exception $e ) {
|
1517 |
+
$error = $e->getErrors();
|
1518 |
$wmt_error = isset( $error[0]['message'] ) ? $error[0]['message'] : __( 'Unexpected error', 'google-sitemap-plugin' );
|
1519 |
} catch ( Google_IO_Exception $e ) {
|
1520 |
$wmt_error = $e->getMessage();
|
1540 |
$gglstmp_sv_get_token_request = new Google_Service_SiteVerification_SiteVerificationWebResourceGettokenRequest;
|
1541 |
$gglstmp_sv_get_token_request->setSite( $gglstmp_sv_get_token_request_site );
|
1542 |
$gglstmp_sv_get_token_request->setVerificationMethod( 'META' );
|
1543 |
+
$getToken = $site_verification->webResource->getToken( $gglstmp_sv_get_token_request );
|
1544 |
$gglstmp_options['site_vererification_code'] = htmlspecialchars( $getToken['token'] );
|
1545 |
if ( preg_match( '|^<meta name="google-site-verification" content="(.*)" />$|', $gglstmp_options['site_vererification_code'] ) ) {
|
1546 |
update_option( 'gglstmp_options', $gglstmp_options );
|
1552 |
<td>' . __( 'Received, but has not been added to the site', 'google-sitemap-plugin' ) . '</td></tr>';
|
1553 |
}
|
1554 |
} catch ( Google_Service_Exception $e ) {
|
1555 |
+
$error = $e->getErrors();
|
1556 |
$sv_error = isset( $error[0]['message'] ) ? $error[0]['message'] : __( 'Unexpected error', 'google-sitemap-plugin' );
|
1557 |
} catch ( Google_IO_Exception $e ) {
|
1558 |
$sv_error = $e->getMessage();
|
1583 |
$return .= '<tr><th>' . __( 'Verification Status', 'google-sitemap-plugin' ) . '</th>
|
1584 |
<td class="gglstmp_success">' . __( 'Verified', 'google-sitemap-plugin' ) . '</td></tr>';
|
1585 |
} catch ( Google_Service_Exception $e ) {
|
1586 |
+
$error = $e->getErrors();
|
1587 |
$sv_error = isset( $error[0]['message'] ) ? $error[0]['message'] : __( 'Unexpected error', 'google-sitemap-plugin' );
|
1588 |
} catch ( Google_IO_Exception $e ) {
|
1589 |
$sv_error = $e->getMessage();
|
1607 |
$is_multisite = is_multisite();
|
1608 |
|
1609 |
if ( $is_multisite ) {
|
1610 |
+
$blog_id = get_current_blog_id();
|
1611 |
$sitemap_filename = "sitemap_{$blog_id}.xml";
|
1612 |
} else {
|
1613 |
$sitemap_filename = 'sitemap.xml';
|
1618 |
! empty( $gglstmp_options['sitemaps'][ $sitemap_filename ]['path'] ) &&
|
1619 |
file_exists( $gglstmp_options['sitemaps'][ $sitemap_filename ]['path'] )
|
1620 |
) {
|
1621 |
+
$sitemap_url = $gglstmp_options['sitemaps'][ $sitemap_filename ]['loc'];
|
1622 |
$check_result = gglstmp_check_sitemap( $sitemap_url );
|
1623 |
if ( ! is_wp_error( $check_result ) && 200 == $check_result['code'] ) {
|
1624 |
try {
|
1625 |
$webmasters->sitemaps->submit( $home_url, $sitemap_url );
|
1626 |
$return .= '<td class="gglstmp_success">' . __( 'Added', 'google-sitemap-plugin' ) . '</td></tr>';
|
1627 |
} catch ( Google_Service_Exception $e ) {
|
1628 |
+
$error = $e->getErrors();
|
1629 |
$wmt_error = isset( $error[0]['message'] ) ? $error[0]['message'] : __( 'Unexpected error', 'google-sitemap-plugin' );
|
1630 |
} catch ( Google_IO_Exception $e ) {
|
1631 |
$wmt_error = $e->getMessage();
|
1663 |
}
|
1664 |
|
1665 |
$return .= '</table>';
|
1666 |
+
|
1667 |
return $return;
|
1668 |
}
|
1669 |
}
|
1723 |
array_unshift( $links, $settings_link );
|
1724 |
}
|
1725 |
}
|
1726 |
+
|
1727 |
return $links;
|
1728 |
}
|
1729 |
}
|
1738 |
$links[] = '<a href="https://support.bestwebsoft.com/hc/en-us/sections/200538869" target="_blank">' . __( 'FAQ', 'google-sitemap-plugin' ) . '</a>';
|
1739 |
$links[] = '<a href="https://support.bestwebsoft.com">' . __( 'Support', 'google-sitemap-plugin' ) . '</a>';
|
1740 |
}
|
1741 |
+
|
1742 |
return $links;
|
1743 |
}
|
1744 |
}
|
1745 |
|
1746 |
+
if ( ! function_exists( 'gglstmp_plugin_banner' ) ) {
|
1747 |
function gglstmp_plugin_banner() {
|
1748 |
global $hook_suffix, $gglstmp_plugin_info, $gglstmp_options;
|
1749 |
|
1769 |
if ( ! function_exists( 'gglstmp_add_tabs' ) ) {
|
1770 |
function gglstmp_add_tabs() {
|
1771 |
$screen = get_current_screen();
|
1772 |
+
$args = array(
|
1773 |
+
'id' => 'gglstmp',
|
1774 |
+
'section' => '200538869'
|
1775 |
);
|
1776 |
bws_help_tab( $screen, $args );
|
1777 |
}
|
1780 |
/**
|
1781 |
* Fires when the new blog has been added or during the blog activation, marking as not spam or as not archived.
|
1782 |
* @since 1.2.9
|
1783 |
+
*
|
1784 |
+
* @param int $blog_id Blog ID
|
1785 |
+
*
|
1786 |
* @return void
|
1787 |
*/
|
1788 |
if ( ! function_exists( 'gglstmp_add_sitemap' ) ) {
|
1809 |
/**
|
1810 |
* Fires when the blog has been deleted or blog status has been changed to 'spam', 'deactivated(deleted)' or 'archived'.
|
1811 |
* @since 1.2.9
|
1812 |
+
*
|
1813 |
+
* @param int $blog_id Blog ID
|
1814 |
+
*
|
1815 |
* @return void
|
1816 |
*/
|
1817 |
if ( ! function_exists( 'gglstmp_delete_sitemap' ) ) {
|
1818 |
+
function gglstmp_delete_sitemap( $blog_id, $gglstmp_del_init = false ) {
|
1819 |
+
global $gglstmp_options;
|
1820 |
+
|
1821 |
+
if ( $gglstmp_options['media_sitemap'] ) {
|
1822 |
+
$masks = [ 'sitemap' ];
|
1823 |
+
} else {
|
1824 |
+
$masks = [ 'video_sitemap', 'image_sitemap', 'sitemap' ];
|
1825 |
+
}
|
1826 |
|
1827 |
/* remove blog sitemap files */
|
1828 |
+
if ( is_multisite() ) {
|
1829 |
+
foreach ( $masks as $mask ) {
|
1830 |
+
$mask_file = "{$mask}_{$blog_id}*.xml";
|
1831 |
+
array_map( "unlink", glob( ABSPATH . "$mask_file" ) );
|
1832 |
+
}
|
1833 |
+
if ( $gglstmp_del_init ) {
|
1834 |
+
array_map( "unlink", glob( ABSPATH . "sitemap.xml" ) );
|
1835 |
+
}
|
1836 |
+
} else {
|
1837 |
+
foreach ( $masks as $mask ) {
|
1838 |
+
$mask_file = "{$mask}*.xml";
|
1839 |
+
array_map( "unlink", glob( ABSPATH . "$mask_file" ) );
|
1840 |
+
}
|
1841 |
+
}
|
1842 |
|
1843 |
/* update network index file */
|
1844 |
+
if ( ! $gglstmp_del_init ) {
|
1845 |
+
gglstmp_create_sitemap_index( 0 );
|
1846 |
+
}
|
1847 |
}
|
1848 |
}
|
1849 |
|
1879 |
}
|
1880 |
}
|
1881 |
|
1882 |
+
/* Functionality for canonical link */
|
1883 |
+
if ( ! function_exists( 'gglstmp_canonical_tag' ) ) {
|
1884 |
+
function gglstmp_canonical_tag() {
|
1885 |
+
if ( is_front_page() ) {
|
1886 |
+
$canonical_url = '<link rel="canonical" href="' . trailingslashit( home_url() ) . '"/>';
|
1887 |
+
$canonical_url .= "\n\n";
|
1888 |
+
echo apply_filters( 'gglstmp_canonical_tag', $canonical_url );
|
1889 |
+
}
|
1890 |
+
if ( is_singular() ) {
|
1891 |
+
global $post;
|
1892 |
+
$gglstmp_meta_canonical = get_post_meta( $post->ID, '_gglstmp_meta_canonical_tag', true );//get the key id _gglstmp_meta_canonical_tag
|
1893 |
+
if ( $gglstmp_meta_canonical ) {
|
1894 |
+
//calls the custom meta text
|
1895 |
+
$canonical_url = '<link rel="canonical" href="' . $gglstmp_meta_canonical . '"/>';
|
1896 |
+
$canonical_url .= "\n\n";
|
1897 |
+
echo apply_filters( 'gglstmp_canonical_tag', $canonical_url );
|
1898 |
+
} else {
|
1899 |
+
$canonical_url = '<link rel="canonical" href="' . get_permalink() . '"/>';
|
1900 |
+
$canonical_url .= "\n\n";
|
1901 |
+
echo apply_filters( 'gglstmp_canonical_tag', $canonical_url );
|
1902 |
+
}
|
1903 |
+
}
|
1904 |
+
}
|
1905 |
+
}
|
1906 |
+
|
1907 |
+
if ( ! function_exists( 'gglstmp_add_custom_canonical_url' ) ) {
|
1908 |
+
function gglstmp_add_custom_canonical_url( $post ) {
|
1909 |
+
add_meta_box(
|
1910 |
+
'Meta Box',
|
1911 |
+
__( 'Google-Sitemap-plugin Canonical Settings', 'google-sitemap-plugin' ),
|
1912 |
+
'gglstmp_custom_meta_box_content_canonical_url',
|
1913 |
+
'page',
|
1914 |
+
'normal',
|
1915 |
+
'high'
|
1916 |
+
);
|
1917 |
+
|
1918 |
+
add_meta_box(
|
1919 |
+
'Meta Box',
|
1920 |
+
__( 'Google-Sitemap-plugin Canonical Settings', 'google-sitemap-plugin' ),
|
1921 |
+
'gglstmp_custom_meta_box_content_canonical_url',
|
1922 |
+
'post',
|
1923 |
+
'normal',
|
1924 |
+
'high'
|
1925 |
+
);
|
1926 |
+
}
|
1927 |
+
}
|
1928 |
+
|
1929 |
+
if ( ! function_exists( 'gglstmp_save_custom_canonical_tag_box' ) ) {
|
1930 |
+
function gglstmp_save_custom_canonical_tag_box() {
|
1931 |
+
global $post;
|
1932 |
+
// Get our form field
|
1933 |
+
if ( isset( $_POST['gglstmp-meta-canonical-url'] ) ) {
|
1934 |
+
$gglstmp_meta_canonical = esc_attr( $_POST['gglstmp-meta-canonical-url'] );
|
1935 |
+
// Update post meta canonical url
|
1936 |
+
update_post_meta( $post->ID, '_gglstmp_meta_canonical_tag', $gglstmp_meta_canonical );
|
1937 |
+
}
|
1938 |
+
}
|
1939 |
+
}
|
1940 |
+
|
1941 |
+
if ( ! function_exists( 'gglstmp_custom_meta_box_content_canonical_url' ) ) {
|
1942 |
+
// Content for the custom meta box
|
1943 |
+
function gglstmp_custom_meta_box_content_canonical_url( $post ) {
|
1944 |
+
// Get post Custom Canonical Url
|
1945 |
+
$gglstmp_meta_canonical = get_post_meta( $post->ID, '_gglstmp_meta_canonical_tag', true );
|
1946 |
+
$custom_canon_url = __( 'Canonical Url:', 'google-sitemap-plugin' );
|
1947 |
+
echo "<p><label>$custom_canon_url</label></p>";
|
1948 |
+
echo '<p><input style="width:99%;" class="meta-text" type="text" name="gglstmp-meta-canonical-url" value="' . $gglstmp_meta_canonical . '" /></p>';
|
1949 |
+
}
|
1950 |
+
}
|
1951 |
+
|
1952 |
register_activation_hook( __FILE__, 'gglstmp_activate' );
|
1953 |
|
1954 |
add_action( 'admin_menu', 'gglstmp_admin_menu' );
|
1965 |
add_action( 'save_post', 'gglstmp_update_sitemap', 10, 2 );
|
1966 |
add_action( 'trashed_post', 'gglstmp_update_sitemap' );
|
1967 |
|
1968 |
+
add_action( 'gglstmp_sitemap_cron', 'gglstmp_prepare_sitemap' );
|
1969 |
|
1970 |
/* rebuild sitemap on permalink structure change, on taxonomy term add/edit/delete */
|
1971 |
+
add_action( 'permalink_structure_changed', 'gglstmp_schedule_sitemap', 10, 0 );
|
1972 |
+
add_action( 'created_term', 'gglstmp_edited_term', 10, 3 );
|
1973 |
+
add_action( 'edited_term', 'gglstmp_edited_term', 10, 3 );
|
1974 |
+
add_action( 'delete_term', 'gglstmp_edited_term', 10, 3 );
|
1975 |
|
1976 |
+
add_filter( 'rewrite_rules_array', 'gglstmp_rewrite_rules', PHP_INT_MAX, 1 );
|
1977 |
|
1978 |
add_action( 'wp_head', 'gglstmp_add_verification_code' );
|
1979 |
|
1992 |
add_action( 'deactivate_blog', 'gglstmp_delete_sitemap' );
|
1993 |
add_action( 'make_delete_blog', 'gglstmp_delete_sitemap' );
|
1994 |
add_action( 'archive_blog', 'gglstmp_delete_sitemap' );
|
1995 |
+
add_action( 'make_spam_blog', 'gglstmp_delete_sitemap' );
|
1996 |
+
|
1997 |
+
/* Functionality for canonical link */
|
1998 |
+
remove_action( 'wp_head', 'rel_canonical' );
|
1999 |
+
add_action( 'wp_head', 'gglstmp_canonical_tag' );
|
2000 |
+
// Create custom meta box
|
2001 |
+
add_action( 'add_meta_boxes', 'gglstmp_add_custom_canonical_url' );
|
2002 |
+
// Save meta box content
|
2003 |
+
add_action( 'save_post', 'gglstmp_save_custom_canonical_tag_box' );
|
2004 |
+
// Add a custom meta box to a post
|
image_sitemap.xsl
ADDED
@@ -0,0 +1,160 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<xsl:stylesheet version="2.0"
|
3 |
+
xmlns:html="http://www.w3.org/TR/REC-html40"
|
4 |
+
xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9"
|
5 |
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
6 |
+
xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
|
7 |
+
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
|
8 |
+
<xsl:template match="/">
|
9 |
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
10 |
+
<head>
|
11 |
+
<title>XML Image Sitemap</title>
|
12 |
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
13 |
+
<style type="text/css">
|
14 |
+
body {
|
15 |
+
font-family:"Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana;
|
16 |
+
font-size: 13px;
|
17 |
+
}
|
18 |
+
|
19 |
+
#header {
|
20 |
+
text-align: center;
|
21 |
+
padding-top: 14px;
|
22 |
+
padding-bottom: 29px;
|
23 |
+
}
|
24 |
+
|
25 |
+
h1 {
|
26 |
+
font-weight: normal;
|
27 |
+
font-size: 24px;
|
28 |
+
line-height: 20px;
|
29 |
+
color: #333333;
|
30 |
+
}
|
31 |
+
|
32 |
+
h2 {
|
33 |
+
font-weight: normal;
|
34 |
+
font-size: 13px;
|
35 |
+
color: #aaaaaa;
|
36 |
+
line-height: 10px;
|
37 |
+
}
|
38 |
+
|
39 |
+
#content {
|
40 |
+
background: #f8f8f8;
|
41 |
+
border-top: 1px solid #dddddd;
|
42 |
+
padding-top: 50px;
|
43 |
+
}
|
44 |
+
|
45 |
+
#content a:visited,
|
46 |
+
#content tr:hover a:visited {
|
47 |
+
color: #68009c;
|
48 |
+
}
|
49 |
+
|
50 |
+
table {
|
51 |
+
margin: 0 auto;
|
52 |
+
text-align: left;
|
53 |
+
}
|
54 |
+
|
55 |
+
#content tr:hover a {
|
56 |
+
color: #6e6e6e;
|
57 |
+
}
|
58 |
+
|
59 |
+
td {
|
60 |
+
color: #6e6e6e;
|
61 |
+
font-size: 12px;
|
62 |
+
border-bottom: 1px solid #dddddd;
|
63 |
+
border-right: 1px solid #fff;
|
64 |
+
padding: 25px 95px;
|
65 |
+
vertical-align: middle;
|
66 |
+
}
|
67 |
+
|
68 |
+
th {
|
69 |
+
color: #333333;
|
70 |
+
font-size: 12px;
|
71 |
+
border-bottom: 1px solid #dddddd;
|
72 |
+
padding: 5px 50px 17px 5px;
|
73 |
+
text-align: center;
|
74 |
+
}
|
75 |
+
|
76 |
+
tr:nth-child(even) {
|
77 |
+
background-color: #e6f0d3;
|
78 |
+
}
|
79 |
+
|
80 |
+
tr:not(:first-child):hover {
|
81 |
+
background: #ebebeb;
|
82 |
+
}
|
83 |
+
|
84 |
+
#footer {
|
85 |
+
background: #f8f8f8;
|
86 |
+
font-size: 13px;
|
87 |
+
color: #aaaaaa;
|
88 |
+
padding: 54px 0 20px;
|
89 |
+
text-align: center;
|
90 |
+
}
|
91 |
+
|
92 |
+
a {
|
93 |
+
color: #2384c6;
|
94 |
+
}
|
95 |
+
|
96 |
+
a:hover {
|
97 |
+
color: #6e6e6e;
|
98 |
+
text-decoration: none;
|
99 |
+
}
|
100 |
+
|
101 |
+
.thumbnail {
|
102 |
+
max-width: 100px;
|
103 |
+
max-height: 100px;
|
104 |
+
}
|
105 |
+
</style>
|
106 |
+
</head>
|
107 |
+
<body>
|
108 |
+
<div id="header">
|
109 |
+
<h1>XML Image Sitemap</h1>
|
110 |
+
<h2>This is a XML Image Sitemap which is supposed to be processed by <a href="http://www.google.com">Google search engine</a>.</h2>
|
111 |
+
</div>
|
112 |
+
<div id="content">
|
113 |
+
<table cellpadding="5" cellspacing="0">
|
114 |
+
<tr id="table-header">
|
115 |
+
<th>URL</th>
|
116 |
+
<th>Image URL</th>
|
117 |
+
<th>Thumbnail</th>
|
118 |
+
</tr>
|
119 |
+
<xsl:for-each select="sitemap:urlset/sitemap:url">
|
120 |
+
<xsl:for-each select="image:image">
|
121 |
+
<tr>
|
122 |
+
<!--<xsl:if test="position() mod 2 != 1">
|
123 |
+
<xsl:attribute name="class">high</xsl:attribute>
|
124 |
+
</xsl:if>-->
|
125 |
+
<td>
|
126 |
+
<xsl:variable name="itemURL">
|
127 |
+
<xsl:value-of select="../sitemap:loc"/>
|
128 |
+
</xsl:variable>
|
129 |
+
<a href="{$itemURL}">
|
130 |
+
<xsl:value-of select="substring(../sitemap:loc, 0, 70)"/>
|
131 |
+
</a>
|
132 |
+
</td>
|
133 |
+
<td>
|
134 |
+
<xsl:variable name="itemURL">
|
135 |
+
<xsl:value-of select="image:loc"/>
|
136 |
+
</xsl:variable>
|
137 |
+
<a href="{$itemURL}">
|
138 |
+
<xsl:value-of select="substring(image:loc, 0, 100)"/>
|
139 |
+
</a>
|
140 |
+
</td>
|
141 |
+
<td>
|
142 |
+
<xsl:variable name="itemURL">
|
143 |
+
<xsl:value-of select="image:loc"/>
|
144 |
+
</xsl:variable>
|
145 |
+
<a href="{$itemURL}">
|
146 |
+
<img class='thumbnail' src="{$itemURL}" />
|
147 |
+
</a>
|
148 |
+
</td>
|
149 |
+
</tr>
|
150 |
+
</xsl:for-each>
|
151 |
+
</xsl:for-each>
|
152 |
+
</table>
|
153 |
+
</div>
|
154 |
+
<div id="footer">
|
155 |
+
Generated with <a href="https://bestwebsoft.com/products/wordpress/plugins/google-sitemap/">Google Sitemap</a> plugin by <a href="https://bestwebsoft.com">BestWebSoft</a>
|
156 |
+
</div>
|
157 |
+
</body>
|
158 |
+
</html>
|
159 |
+
</xsl:template>
|
160 |
+
</xsl:stylesheet>
|
includes/class-gglstmp-settings.php
CHANGED
@@ -11,6 +11,7 @@ if ( ! class_exists( 'Gglstmp_Settings_Tabs' ) ) {
|
|
11 |
$htaccess_active = false,
|
12 |
$robots, $htaccess, $client, $blog_prefix,
|
13 |
$manage_info = '';
|
|
|
14 |
/**
|
15 |
* Constructor.
|
16 |
*
|
@@ -24,38 +25,41 @@ if ( ! class_exists( 'Gglstmp_Settings_Tabs' ) ) {
|
|
24 |
global $gglstmp_options, $gglstmp_plugin_info;
|
25 |
|
26 |
$tabs = array(
|
27 |
-
'settings'
|
28 |
-
'display'
|
29 |
-
'misc'
|
30 |
-
'license'
|
31 |
);
|
32 |
|
33 |
parent::__construct( array(
|
34 |
-
'plugin_basename'
|
35 |
-
'plugins_info'
|
36 |
-
'prefix'
|
37 |
-
'default_options'
|
38 |
-
'options'
|
39 |
-
'tabs'
|
40 |
-
'wp_slug'
|
41 |
-
'pro_page'
|
42 |
'bws_license_plugin' => 'google-sitemap-pro/google-sitemap-pro.php',
|
43 |
-
'link_key'
|
44 |
-
'link_pn'
|
45 |
) );
|
46 |
|
47 |
$this->robots = get_option( 'gglstmp_robots' );
|
48 |
|
49 |
/* Check htaccess plugin */
|
50 |
if ( $this->is_multisite && ! is_subdomain_install() ) {
|
51 |
-
$all_plugins
|
52 |
-
$this->htaccess
|
|
|
|
|
|
|
53 |
$this->htaccess_options = false;
|
54 |
if ( 'actived' == $this->htaccess['status'] ) {
|
55 |
global $htccss_options;
|
56 |
register_htccss_settings();
|
57 |
$this->htaccess_options = &$htccss_options;
|
58 |
-
$this->htaccess_active
|
59 |
if ( function_exists( 'htccss_check_xml_access' ) ) {
|
60 |
$htaccess_check = htccss_check_xml_access();
|
61 |
if ( $htaccess_check != $this->htaccess_options['allow_xml'] ) {
|
@@ -67,7 +71,7 @@ if ( ! class_exists( 'Gglstmp_Settings_Tabs' ) ) {
|
|
67 |
}
|
68 |
|
69 |
if ( function_exists( 'curl_init' ) ) {
|
70 |
-
$this->client
|
71 |
$this->blog_prefix = '_' . get_current_blog_id();
|
72 |
if ( ! isset( $_SESSION[ 'gglstmp_authorization_code' . $this->blog_prefix ] ) && isset( $this->options['authorization_code'] ) ) {
|
73 |
$_SESSION[ 'gglstmp_authorization_code' . $this->blog_prefix ] = $this->options['authorization_code'];
|
@@ -77,14 +81,22 @@ if ( ! class_exists( 'Gglstmp_Settings_Tabs' ) ) {
|
|
77 |
}
|
78 |
}
|
79 |
|
80 |
-
add_filter( get_parent_class( $this ) . '_additional_restore_options', array(
|
81 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
}
|
83 |
|
84 |
/**
|
85 |
* Save plugin options to the database
|
86 |
* @access public
|
|
|
87 |
* @param void
|
|
|
88 |
* @return array The action results
|
89 |
*/
|
90 |
public function save_options() {
|
@@ -98,11 +110,12 @@ if ( ! class_exists( 'Gglstmp_Settings_Tabs' ) ) {
|
|
98 |
$this->client->authenticate( $_POST['gglstmp_authorization_code'] );
|
99 |
$this->options['authorization_code'] = $_SESSION[ 'gglstmp_authorization_code' . $this->blog_prefix ] = $this->client->getAccessToken();
|
100 |
update_option( 'gglstmp_options', $this->options );
|
101 |
-
} catch ( Exception $e ) {
|
|
|
102 |
} elseif ( isset( $_POST['gglstmp_menu_add'] ) || isset( $_POST['gglstmp_menu_delete'] ) || isset( $_POST['gglstmp_menu_info'] ) ) {
|
103 |
if ( $this->client->getAccessToken() ) {
|
104 |
-
$webmasters
|
105 |
-
$site_verification
|
106 |
if ( isset( $_POST['gglstmp_menu_info'] ) ) {
|
107 |
$this->manage_info .= gglstmp_get_site_info( $webmasters, $site_verification );
|
108 |
} elseif ( isset( $_POST['gglstmp_menu_add'] ) ) {
|
@@ -115,7 +128,7 @@ if ( ! class_exists( 'Gglstmp_Settings_Tabs' ) ) {
|
|
115 |
|
116 |
if ( $this->htaccess_active && $this->htaccess_options && function_exists( 'htccss_generate_htaccess' ) ) {
|
117 |
$gglstmp_allow_xml = ( isset( $_POST['gglstmp_allow_xml'] ) && ! empty( $_POST['gglstmp_allow_xml'] ) ) ? 1 : 0;
|
118 |
-
if ( $gglstmp_allow_xml != $this->htaccess_options['allow_xml']
|
119 |
$this->htaccess_options['allow_xml'] = $gglstmp_allow_xml;
|
120 |
update_site_option( 'htccss_options', $this->htaccess_options );
|
121 |
htccss_generate_htaccess();
|
@@ -129,7 +142,7 @@ if ( ! class_exists( 'Gglstmp_Settings_Tabs' ) ) {
|
|
129 |
}
|
130 |
|
131 |
$this->options['post_type'] = $post_types;
|
132 |
-
$this->options['taxonomy']
|
133 |
|
134 |
if ( isset( $_POST['gglstmp_limit'] ) ) {
|
135 |
if ( $this->options['limit'] != absint( $_POST['gglstmp_limit'] ) ) {
|
@@ -140,10 +153,11 @@ if ( ! class_exists( 'Gglstmp_Settings_Tabs' ) ) {
|
|
140 |
}
|
141 |
|
142 |
if ( ( empty( $this->options['alternate_language'] ) && isset( $_POST['gglstmp_alternate_language'] ) ) || ( ! empty( $this->options['alternate_language'] ) && ! isset( $_POST['gglstmp_alternate_language'] ) ) ) {
|
143 |
-
|
144 |
}
|
145 |
|
146 |
-
$this->robots
|
|
|
147 |
$this->options['alternate_language'] = isset( $_POST['gglstmp_alternate_language'] ) ? 1 : 0;
|
148 |
|
149 |
update_option( 'gglstmp_robots', $this->robots );
|
@@ -163,21 +177,24 @@ if ( ! class_exists( 'Gglstmp_Settings_Tabs' ) ) {
|
|
163 |
*
|
164 |
*/
|
165 |
public function tab_settings() { ?>
|
166 |
-
|
167 |
<?php $this->help_phrase();
|
168 |
global $wp_version;
|
169 |
if ( ! $this->all_plugins ) {
|
170 |
-
if ( ! function_exists( 'get_plugins' ) )
|
171 |
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
172 |
-
|
|
|
173 |
} ?>
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
|
|
|
|
181 |
<?php printf(
|
182 |
_x( "Enable to add a sitemap file path to the %s file.", '%robots.txt file link%', 'google-sitemap-plugin' ),
|
183 |
'<a href="' . home_url( '/robots.txt' ) . '" target="_blank">robots.txt</a>'
|
@@ -193,121 +210,152 @@ if ( ! class_exists( 'Gglstmp_Settings_Tabs' ) ) {
|
|
193 |
);
|
194 |
if ( file_exists( ABSPATH . 'robots.txt' ) ) {
|
195 |
$tooltip_text .= "<br />" . __( 'Also, please add the following code to the beginning of your ".htaccess" file:', 'google-sitemap-plugin' ) . "<br />" .
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
}
|
204 |
echo bws_add_help_box( $tooltip_text, 'bws-hide-for-mobile bws-auto-width' ); ?>
|
205 |
-
|
206 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
207 |
<?php if ( $this->is_multisite && ! is_subdomain_install() ) {
|
208 |
-
$attr_checked
|
209 |
$htaccess_plugin_notice = __( 'This option will be applied to all websites in the network.', 'google-sitemap-plugin' );
|
210 |
if ( 'deactivated' == $this->htaccess['status'] ) {
|
211 |
-
$attr_disabled
|
212 |
$htaccess_plugin_notice = '<a href="' . network_admin_url( '/plugins.php' ) . '">' . __( 'Activate', 'google-sitemap-plugin' ) . '</a>';
|
213 |
} elseif ( 'not_installed' == $this->htaccess['status'] ) {
|
214 |
-
$attr_disabled
|
215 |
$htaccess_plugin_notice = '<a href="https://bestwebsoft.com/products/wordpress/plugins/htaccess/?k=bc745b0c9d4b19ba95ae2c861418e0df&pn=106&v=' . $this->plugins_info["Version"] . '&wp_v=' . $wp_version . '">' . __( 'Install Now', 'google-sitemap-plugin' ) . '</a>';
|
216 |
}
|
217 |
if ( ! empty( $this->htaccess_options['allow_xml'] ) && empty( $attr_disabled ) ) {
|
218 |
$attr_checked = 'checked="checked"';
|
219 |
} ?>
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
|
|
|
|
|
|
224 |
<?php echo bws_add_help_box( __( 'The following string will be added to your .htaccess file', 'google-sitemap-plugin' ) . ': <code>RewriteRule ([^/]+\.xml)$ $1 [L]</code>' ); ?>
|
225 |
-
|
226 |
-
|
227 |
<?php } ?>
|
228 |
-
|
229 |
<?php if ( ! $this->hide_pro_tabs ) { ?>
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
|
|
|
|
235 |
<?php gglstmp_frequency_block(); ?>
|
236 |
-
|
237 |
-
|
238 |
<?php $this->bws_pro_block_links(); ?>
|
239 |
-
|
240 |
<?php } ?>
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
|
|
|
|
|
|
|
|
248 |
<?php _e( 'Decrease the limit if your sitemap exceeds file size limit.', 'google-sitemap-plugin' ); ?>
|
249 |
<?php _e( 'When the limit is reached, the sitemap will be splitted into multiple files.', 'google-sitemap-plugin' ); ?>
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
<?php if ( ! $this->client ) { ?>
|
257 |
<?php _e( "This hosting does not support сURL, so you cannot add a sitemap file automatically.", 'google-sitemap-plugin' ); ?>
|
258 |
<?php } else { ?>
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
287 |
} ?>
|
288 |
-
|
289 |
-
<?php _e( 'You can also add your sitemap to Google Webmaster Tools manually.', 'google-sitemap-plugin' );
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
}
|
302 |
-
} else {
|
303 |
$disabled = ' disabled="disabled"';
|
304 |
-
$link
|
305 |
-
}
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
|
|
|
|
|
|
|
|
|
|
311 |
<?php }
|
312 |
|
313 |
/**
|
@@ -321,42 +369,53 @@ if ( ! class_exists( 'Gglstmp_Settings_Tabs' ) ) {
|
|
321 |
'category' => __( 'Post category', 'google-sitemap-plugin' ),
|
322 |
'post_tag' => __( 'Post tag', 'google-sitemap-plugin' )
|
323 |
); ?>
|
324 |
-
|
325 |
<?php $this->help_phrase(); ?>
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
<?php foreach ( $post_types as $post_type => $post_type_object ) { ?>
|
333 |
-
|
|
|
|
|
|
|
|
|
|
|
334 |
<?php } ?>
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
<?php foreach ( $taxonomies as $key => $value ) { ?>
|
344 |
-
|
|
|
|
|
|
|
|
|
345 |
<?php } ?>
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
<?php if ( ! $this->hide_pro_tabs ) { ?>
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
|
|
|
|
356 |
<?php gglstmp_extra_block(); ?>
|
357 |
-
|
358 |
<?php $this->bws_pro_block_links(); ?>
|
359 |
-
|
360 |
<?php }
|
361 |
}
|
362 |
|
@@ -368,7 +427,7 @@ if ( ! class_exists( 'Gglstmp_Settings_Tabs' ) ) {
|
|
368 |
|
369 |
if ( $this->is_multisite ) {
|
370 |
$blog_id = get_current_blog_id();
|
371 |
-
$mask
|
372 |
} else {
|
373 |
$mask = "sitemap*.xml";
|
374 |
}
|
@@ -386,14 +445,14 @@ if ( ! class_exists( 'Gglstmp_Settings_Tabs' ) ) {
|
|
386 |
}
|
387 |
|
388 |
public function display_custom_messages( $save_results ) {
|
389 |
-
|
390 |
if ( $this->is_multisite ) {
|
391 |
-
$blog_id
|
392 |
$xml_file = 'sitemap_' . $blog_id . '.xml';
|
393 |
} else {
|
394 |
$xml_file = 'sitemap.xml';
|
395 |
}
|
396 |
-
$xml_url
|
397 |
|
398 |
if ( isset( $xml_file ) && file_exists( ABSPATH . $xml_file ) ) {
|
399 |
|
@@ -406,9 +465,9 @@ if ( ! class_exists( 'Gglstmp_Settings_Tabs' ) ) {
|
|
406 |
);
|
407 |
|
408 |
if ( ! $this->is_multisite ) {
|
409 |
-
|
410 |
} else {
|
411 |
-
|
412 |
}
|
413 |
|
414 |
if ( ! is_wp_error( $status ) && '200' != $status['code'] ) {
|
@@ -424,16 +483,16 @@ if ( ! class_exists( 'Gglstmp_Settings_Tabs' ) ) {
|
|
424 |
$home_dir .= '/';
|
425 |
}
|
426 |
$replace = $home_dir . '$1'; ?>
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
printf( __( "Can't access XML files. Try to add the following rule %s to your %s file which is located in the root of your website to resolve this error. Find the following line %s and paste the code just after it.", 'google-sitemap-plugin' ),
|
431 |
'<code>RewriteRule ([^/]+\.xml)$ ' . $replace . ' [L]</code>',
|
432 |
'<strong>.htaccess</strong>',
|
433 |
'<strong>"RewriteBase /"</strong>'
|
434 |
); ?>
|
435 |
-
|
436 |
-
|
437 |
<?php }
|
438 |
|
439 |
} else {
|
@@ -442,9 +501,11 @@ if ( ! class_exists( 'Gglstmp_Settings_Tabs' ) ) {
|
|
442 |
|
443 |
if ( class_exists( 'Google_Client' ) && version_compare( Google_Client::LIBVER, '1.1.3', '!=' ) ) {
|
444 |
/* Google Client library of some other product is used! */ ?>
|
445 |
-
|
446 |
-
|
447 |
-
|
|
|
|
|
448 |
<?php }
|
449 |
}
|
450 |
}
|
11 |
$htaccess_active = false,
|
12 |
$robots, $htaccess, $client, $blog_prefix,
|
13 |
$manage_info = '';
|
14 |
+
|
15 |
/**
|
16 |
* Constructor.
|
17 |
*
|
25 |
global $gglstmp_options, $gglstmp_plugin_info;
|
26 |
|
27 |
$tabs = array(
|
28 |
+
'settings' => array( 'label' => __( 'Settings', 'google-sitemap-plugin' ) ),
|
29 |
+
'display' => array( 'label' => __( 'Structure', 'google-sitemap-plugin' ) ),
|
30 |
+
'misc' => array( 'label' => __( 'Misc', 'google-sitemap-plugin' ) ),
|
31 |
+
'license' => array( 'label' => __( 'License Key', 'google-sitemap-plugin' ) )
|
32 |
);
|
33 |
|
34 |
parent::__construct( array(
|
35 |
+
'plugin_basename' => $plugin_basename,
|
36 |
+
'plugins_info' => $gglstmp_plugin_info,
|
37 |
+
'prefix' => 'gglstmp',
|
38 |
+
'default_options' => gglstmp_get_options_default(),
|
39 |
+
'options' => $gglstmp_options,
|
40 |
+
'tabs' => $tabs,
|
41 |
+
'wp_slug' => 'google-sitemap-plugin',
|
42 |
+
'pro_page' => 'admin.php?page=google-sitemap-pro.php',
|
43 |
'bws_license_plugin' => 'google-sitemap-pro/google-sitemap-pro.php',
|
44 |
+
'link_key' => '28d4cf0b4ab6f56e703f46f60d34d039',
|
45 |
+
'link_pn' => '83'
|
46 |
) );
|
47 |
|
48 |
$this->robots = get_option( 'gglstmp_robots' );
|
49 |
|
50 |
/* Check htaccess plugin */
|
51 |
if ( $this->is_multisite && ! is_subdomain_install() ) {
|
52 |
+
$all_plugins = get_plugins();
|
53 |
+
$this->htaccess = gglstmp_plugin_status( array(
|
54 |
+
'htaccess/htaccess.php',
|
55 |
+
'htaccess-pro/htaccess-pro.php'
|
56 |
+
), $all_plugins, false );
|
57 |
$this->htaccess_options = false;
|
58 |
if ( 'actived' == $this->htaccess['status'] ) {
|
59 |
global $htccss_options;
|
60 |
register_htccss_settings();
|
61 |
$this->htaccess_options = &$htccss_options;
|
62 |
+
$this->htaccess_active = true;
|
63 |
if ( function_exists( 'htccss_check_xml_access' ) ) {
|
64 |
$htaccess_check = htccss_check_xml_access();
|
65 |
if ( $htaccess_check != $this->htaccess_options['allow_xml'] ) {
|
71 |
}
|
72 |
|
73 |
if ( function_exists( 'curl_init' ) ) {
|
74 |
+
$this->client = gglstmp_client();
|
75 |
$this->blog_prefix = '_' . get_current_blog_id();
|
76 |
if ( ! isset( $_SESSION[ 'gglstmp_authorization_code' . $this->blog_prefix ] ) && isset( $this->options['authorization_code'] ) ) {
|
77 |
$_SESSION[ 'gglstmp_authorization_code' . $this->blog_prefix ] = $this->options['authorization_code'];
|
81 |
}
|
82 |
}
|
83 |
|
84 |
+
add_filter( get_parent_class( $this ) . '_additional_restore_options', array(
|
85 |
+
$this,
|
86 |
+
'additional_restore_options'
|
87 |
+
) );
|
88 |
+
add_filter( get_parent_class( $this ) . '_display_custom_messages', array(
|
89 |
+
$this,
|
90 |
+
'display_custom_messages'
|
91 |
+
) );
|
92 |
}
|
93 |
|
94 |
/**
|
95 |
* Save plugin options to the database
|
96 |
* @access public
|
97 |
+
*
|
98 |
* @param void
|
99 |
+
*
|
100 |
* @return array The action results
|
101 |
*/
|
102 |
public function save_options() {
|
110 |
$this->client->authenticate( $_POST['gglstmp_authorization_code'] );
|
111 |
$this->options['authorization_code'] = $_SESSION[ 'gglstmp_authorization_code' . $this->blog_prefix ] = $this->client->getAccessToken();
|
112 |
update_option( 'gglstmp_options', $this->options );
|
113 |
+
} catch ( Exception $e ) {
|
114 |
+
}
|
115 |
} elseif ( isset( $_POST['gglstmp_menu_add'] ) || isset( $_POST['gglstmp_menu_delete'] ) || isset( $_POST['gglstmp_menu_info'] ) ) {
|
116 |
if ( $this->client->getAccessToken() ) {
|
117 |
+
$webmasters = new Google_Service_Webmasters( $this->client );
|
118 |
+
$site_verification = new Google_Service_SiteVerification( $this->client );
|
119 |
if ( isset( $_POST['gglstmp_menu_info'] ) ) {
|
120 |
$this->manage_info .= gglstmp_get_site_info( $webmasters, $site_verification );
|
121 |
} elseif ( isset( $_POST['gglstmp_menu_add'] ) ) {
|
128 |
|
129 |
if ( $this->htaccess_active && $this->htaccess_options && function_exists( 'htccss_generate_htaccess' ) ) {
|
130 |
$gglstmp_allow_xml = ( isset( $_POST['gglstmp_allow_xml'] ) && ! empty( $_POST['gglstmp_allow_xml'] ) ) ? 1 : 0;
|
131 |
+
if ( $gglstmp_allow_xml != $this->htaccess_options['allow_xml'] ) {
|
132 |
$this->htaccess_options['allow_xml'] = $gglstmp_allow_xml;
|
133 |
update_site_option( 'htccss_options', $this->htaccess_options );
|
134 |
htccss_generate_htaccess();
|
142 |
}
|
143 |
|
144 |
$this->options['post_type'] = $post_types;
|
145 |
+
$this->options['taxonomy'] = $taxonomies;
|
146 |
|
147 |
if ( isset( $_POST['gglstmp_limit'] ) ) {
|
148 |
if ( $this->options['limit'] != absint( $_POST['gglstmp_limit'] ) ) {
|
153 |
}
|
154 |
|
155 |
if ( ( empty( $this->options['alternate_language'] ) && isset( $_POST['gglstmp_alternate_language'] ) ) || ( ! empty( $this->options['alternate_language'] ) && ! isset( $_POST['gglstmp_alternate_language'] ) ) ) {
|
156 |
+
$sitemapcreate = true;
|
157 |
}
|
158 |
|
159 |
+
$this->robots = $_POST['gglstmp_checkbox'];
|
160 |
+
$this->options['media_sitemap'] = $_POST['gglstmp_media_sitemap'];
|
161 |
$this->options['alternate_language'] = isset( $_POST['gglstmp_alternate_language'] ) ? 1 : 0;
|
162 |
|
163 |
update_option( 'gglstmp_robots', $this->robots );
|
177 |
*
|
178 |
*/
|
179 |
public function tab_settings() { ?>
|
180 |
+
<h3 class="bws_tab_label"><?php _e( 'Google Sitemap Settings', 'google-sitemap-plugin' ); ?></h3>
|
181 |
<?php $this->help_phrase();
|
182 |
global $wp_version;
|
183 |
if ( ! $this->all_plugins ) {
|
184 |
+
if ( ! function_exists( 'get_plugins' ) ) {
|
185 |
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
186 |
+
}
|
187 |
+
$this->all_plugins = get_plugins();
|
188 |
} ?>
|
189 |
+
<hr>
|
190 |
+
<table class="form-table gglstmp_settings_form">
|
191 |
+
<tr>
|
192 |
+
<th>Robots.txt</th>
|
193 |
+
<td>
|
194 |
+
<input type="hidden" name="gglstmp_checkbox" value="0">
|
195 |
+
<input type='checkbox' name="gglstmp_checkbox"
|
196 |
+
value="1" <?php checked( $this->robots, 1 ); ?> />
|
197 |
+
<span class="bws_info">
|
198 |
<?php printf(
|
199 |
_x( "Enable to add a sitemap file path to the %s file.", '%robots.txt file link%', 'google-sitemap-plugin' ),
|
200 |
'<a href="' . home_url( '/robots.txt' ) . '" target="_blank">robots.txt</a>'
|
210 |
);
|
211 |
if ( file_exists( ABSPATH . 'robots.txt' ) ) {
|
212 |
$tooltip_text .= "<br />" . __( 'Also, please add the following code to the beginning of your ".htaccess" file:', 'google-sitemap-plugin' ) . "<br />" .
|
213 |
+
"<pre><code>" .
|
214 |
+
"<IfModule mod_rewrite.c><br />" .
|
215 |
+
"RewriteEngine On<br />" .
|
216 |
+
"RewriteBase /<br />" .
|
217 |
+
"RewriteRule robots\.txt$ index.php?gglstmp_robots=1<br />" .
|
218 |
+
"</IfModule>" .
|
219 |
+
"</code></pre>";
|
220 |
}
|
221 |
echo bws_add_help_box( $tooltip_text, 'bws-hide-for-mobile bws-auto-width' ); ?>
|
222 |
+
</td>
|
223 |
+
</tr>
|
224 |
+
<tr>
|
225 |
+
<th><?php _e( 'Media Sitemap', 'google-sitemap-plugin' ); ?></th>
|
226 |
+
<td>
|
227 |
+
<input type="hidden" name="gglstmp_media_sitemap" value="0">
|
228 |
+
<input type='checkbox' name="gglstmp_media_sitemap"
|
229 |
+
value="1" <?php checked( $this->options['media_sitemap'], 1 ); ?>/>
|
230 |
+
<span class="bws_info"><?php _e( 'Enable to add a media sitemap (video & image)', 'google-sitemap-plugin' ); ?></span>
|
231 |
+
</td>
|
232 |
+
</tr>
|
233 |
<?php if ( $this->is_multisite && ! is_subdomain_install() ) {
|
234 |
+
$attr_checked = $attr_disabled = '';
|
235 |
$htaccess_plugin_notice = __( 'This option will be applied to all websites in the network.', 'google-sitemap-plugin' );
|
236 |
if ( 'deactivated' == $this->htaccess['status'] ) {
|
237 |
+
$attr_disabled = 'disabled="disabled"';
|
238 |
$htaccess_plugin_notice = '<a href="' . network_admin_url( '/plugins.php' ) . '">' . __( 'Activate', 'google-sitemap-plugin' ) . '</a>';
|
239 |
} elseif ( 'not_installed' == $this->htaccess['status'] ) {
|
240 |
+
$attr_disabled = 'disabled="disabled"';
|
241 |
$htaccess_plugin_notice = '<a href="https://bestwebsoft.com/products/wordpress/plugins/htaccess/?k=bc745b0c9d4b19ba95ae2c861418e0df&pn=106&v=' . $this->plugins_info["Version"] . '&wp_v=' . $wp_version . '">' . __( 'Install Now', 'google-sitemap-plugin' ) . '</a>';
|
242 |
}
|
243 |
if ( ! empty( $this->htaccess_options['allow_xml'] ) && empty( $attr_disabled ) ) {
|
244 |
$attr_checked = 'checked="checked"';
|
245 |
} ?>
|
246 |
+
<tr id="gglstmp_allow_xml_block">
|
247 |
+
<th><?php printf( __( '%s Plugin', 'google-sitemap-plugin' ), 'Htaccess' ); ?></th>
|
248 |
+
<td>
|
249 |
+
<input <?php printf( "%s %s", $attr_checked, $attr_disabled ); ?> type="checkbox"
|
250 |
+
name="gglstmp_allow_xml"
|
251 |
+
value="1"/> <span
|
252 |
+
class="bws_info"><?php printf( __( 'Enable to allow XML files access using %s plugin.', 'google-sitemap-plugin' ), 'Htaccess' ); ?><?php echo $htaccess_plugin_notice; ?></span>
|
253 |
<?php echo bws_add_help_box( __( 'The following string will be added to your .htaccess file', 'google-sitemap-plugin' ) . ': <code>RewriteRule ([^/]+\.xml)$ $1 [L]</code>' ); ?>
|
254 |
+
</td>
|
255 |
+
</tr>
|
256 |
<?php } ?>
|
257 |
+
</table>
|
258 |
<?php if ( ! $this->hide_pro_tabs ) { ?>
|
259 |
+
<div class="bws_pro_version_bloc">
|
260 |
+
<div class="bws_pro_version_table_bloc">
|
261 |
+
<button type="submit" name="bws_hide_premium_options"
|
262 |
+
class="notice-dismiss bws_hide_premium_options"
|
263 |
+
title="<?php _e( 'Close', 'google-sitemap-plugin' ); ?>"></button>
|
264 |
+
<div class="bws_table_bg"></div>
|
265 |
+
<table class="form-table bws_pro_version">
|
266 |
<?php gglstmp_frequency_block(); ?>
|
267 |
+
</table>
|
268 |
+
</div>
|
269 |
<?php $this->bws_pro_block_links(); ?>
|
270 |
+
</div>
|
271 |
<?php } ?>
|
272 |
+
<table class="form-table gglstmp_settings_form">
|
273 |
+
<tr>
|
274 |
+
<th><?php _e( 'URLs Limit', 'google-sitemap-plugin' ); ?></th>
|
275 |
+
<td>
|
276 |
+
<input type="number" name="gglstmp_limit" min="1000" max="50000"
|
277 |
+
value="<?php echo absint( $this->options['limit'] ); ?>"/>
|
278 |
+
<div class="bws_info">
|
279 |
+
<?php _e( "A sitemap file can't contain more than 50,000 URLs and must be no larger than 50 MB uncompressed.", 'google-sitemap-plugin' ); ?>
|
280 |
+
<a
|
281 |
+
href="https://support.google.com/webmasters/answer/183668?ref_topic=4581190#general-guidelines"
|
282 |
+
target="_blank"><?php _e( 'Learn More', 'google-sitemap-plugin' ); ?></a><br/>
|
283 |
<?php _e( 'Decrease the limit if your sitemap exceeds file size limit.', 'google-sitemap-plugin' ); ?>
|
284 |
<?php _e( 'When the limit is reached, the sitemap will be splitted into multiple files.', 'google-sitemap-plugin' ); ?>
|
285 |
+
</div>
|
286 |
+
</td>
|
287 |
+
</tr>
|
288 |
+
<tr>
|
289 |
+
<th><?php _e( 'Google Webmaster Tools', 'google-sitemap-plugin' ); ?></th>
|
290 |
+
<td>
|
291 |
<?php if ( ! $this->client ) { ?>
|
292 |
<?php _e( "This hosting does not support сURL, so you cannot add a sitemap file automatically.", 'google-sitemap-plugin' ); ?>
|
293 |
<?php } else { ?>
|
294 |
+
<?php if ( ! isset( $_POST['gglstmp_logout'] ) && $this->client->getAccessToken() ) { ?>
|
295 |
+
<input class="button-secondary bws_no_bind_notice" name="gglstmp_logout" type="submit"
|
296 |
+
value="<?php _e( 'Logout from Google Webmaster Tools', 'google-sitemap-plugin' ); ?>"/>
|
297 |
+
</td>
|
298 |
+
</tr>
|
299 |
+
<tr>
|
300 |
+
<th><?php _e( 'Manage Website with Google Webmaster Tools', 'google-sitemap-plugin' ); ?></th>
|
301 |
+
<td>
|
302 |
+
<input class="button-secondary bws_no_bind_notice" type='submit' name='gglstmp_menu_add'
|
303 |
+
value="<?php _e( 'Add', 'google-sitemap-plugin' ); ?>"/>
|
304 |
+
<input class="button-secondary bws_no_bind_notice" type='submit' name='gglstmp_menu_delete'
|
305 |
+
value="<?php _e( 'Delete', 'google-sitemap-plugin' ); ?>"/>
|
306 |
+
<input class="button-secondary bws_no_bind_notice" type='submit' name='gglstmp_menu_info'
|
307 |
+
value="<?php _e( 'Get Info', 'google-sitemap-plugin' ); ?>"/>
|
308 |
+
<div class="bws_info">
|
309 |
+
<?php _e( "Add, delete or get info about this website using your Google Webmaster Tools account.", 'google-sitemap-plugin' ); ?>
|
310 |
+
</div>
|
311 |
+
<?php echo $this->manage_info;
|
312 |
+
} else {
|
313 |
+
$gglstmp_state = mt_rand();
|
314 |
+
$this->client->setState( $gglstmp_state );
|
315 |
+
$_SESSION[ 'gglstmp_state' . $this->blog_prefix ] = $this->client;
|
316 |
+
$gglstmp_auth_url = $this->client->createAuthUrl(); ?>
|
317 |
+
<a id="gglstmp_authorization_button" class="button-secondary button"
|
318 |
+
href="<?php echo $gglstmp_auth_url; ?>" target="_blank"
|
319 |
+
onclick="window.open(this.href,'','top='+(screen.height/2-560/2)+',left='+(screen.width/2-640/2)+',width=640,height=560,resizable=0,scrollbars=0,menubar=0,toolbar=0,status=1,location=0').focus(); return false;"><?php _e( 'Get Authorization Code', 'google-sitemap-plugin' ); ?></a>
|
320 |
+
<div id="gglstmp_authorization_form">
|
321 |
+
<input id="gglstmp_authorization_code" class="bws_no_bind_notice"
|
322 |
+
name="gglstmp_authorization_code" type="text" maxlength="100"
|
323 |
+
autocomplete="off"/>
|
324 |
+
<input id="gglstmp_authorize" class="button-secondary button bws_no_bind_notice"
|
325 |
+
name="gglstmp_authorize" type="submit"
|
326 |
+
value="<?php _e( 'Authorize', 'google-sitemap-plugin' ); ?>"/>
|
327 |
+
</div>
|
328 |
+
<?php if ( isset( $_POST['gglstmp_authorization_code'] ) && isset( $_POST['gglstmp_authorize'] ) ) { ?>
|
329 |
+
<div id="gglstmp_authorize_error"><?php _e( 'Invalid authorization code. Please try again.', 'google-sitemap-plugin' ); ?></div>
|
330 |
+
<?php }
|
331 |
+
}
|
332 |
} ?>
|
333 |
+
<div class="bws_info">
|
334 |
+
<?php _e( 'You can also add your sitemap to Google Webmaster Tools manually.', 'google-sitemap-plugin' ); ?>
|
335 |
+
<a target="_blank"
|
336 |
+
href="https://docs.google.com/document/d/1VOJx_OaasVskCqi9fsAbUmxfsckoagPU5Py97yjha9w/"><?php _e( 'Read the instruction', 'google-sitemap-plugin' ); ?></a>
|
337 |
+
</div>
|
338 |
+
</td>
|
339 |
+
</tr>
|
340 |
+
<tr>
|
341 |
+
<th><?php _e( 'Alternate Language Pages', 'google-sitemap-plugin' ); ?></th>
|
342 |
+
<td>
|
343 |
+
<?php $disabled = $link = '';
|
344 |
+
if ( array_key_exists( 'multilanguage/multilanguage.php', $this->all_plugins ) || array_key_exists( 'multilanguage-pro/multilanguage-pro.php', $this->all_plugins ) ) {
|
345 |
+
if ( ! is_plugin_active( 'multilanguage/multilanguage.php' ) && ! is_plugin_active( 'multilanguage-pro/multilanguage-pro.php' ) ) {
|
|
|
|
|
346 |
$disabled = ' disabled="disabled"';
|
347 |
+
$link = '<a href="' . admin_url( 'plugins.php' ) . '">' . __( 'Activate', 'google-sitemap-plugin' ) . '</a>';
|
348 |
+
}
|
349 |
+
} else {
|
350 |
+
$disabled = ' disabled="disabled"';
|
351 |
+
$link = '<a href="https://bestwebsoft.com/products/wordpress/plugins/multilanguage/?k=84702fda886c65861801c52644d1ee11&pn=83&v=' . $this->plugins_info["Version"] . '&wp_v=' . $wp_version . '" target="_blank">' . __( 'Install Now', 'google-sitemap-plugin' ) . '</a>';
|
352 |
+
} ?>
|
353 |
+
<input type="checkbox" name="gglstmp_alternate_language" value="1" <?php echo $disabled;
|
354 |
+
checked( $this->options['alternate_language'] ) ?> />
|
355 |
+
<span class="bws_info"> <?php _e( "Enable to add alternate language pages using Multilanguage plugin.", 'google-sitemap-plugin' ); ?><?php echo $link; ?></span>
|
356 |
+
</td>
|
357 |
+
</tr>
|
358 |
+
</table>
|
359 |
<?php }
|
360 |
|
361 |
/**
|
369 |
'category' => __( 'Post category', 'google-sitemap-plugin' ),
|
370 |
'post_tag' => __( 'Post tag', 'google-sitemap-plugin' )
|
371 |
); ?>
|
372 |
+
<h3 class="bws_tab_label"><?php _e( 'Sitemap Structure', 'google-sitemap-plugin' ); ?></h3>
|
373 |
<?php $this->help_phrase(); ?>
|
374 |
+
<hr>
|
375 |
+
<table class="form-table gglstmp_settings_form">
|
376 |
+
<tr>
|
377 |
+
<th><?php _e( 'Post Types', 'google-sitemap-plugin' ); ?></th>
|
378 |
+
<td>
|
379 |
+
<fieldset>
|
380 |
<?php foreach ( $post_types as $post_type => $post_type_object ) { ?>
|
381 |
+
<label><input
|
382 |
+
type="checkbox" <?php if ( in_array( $post_type, $this->options['post_type'] ) ) {
|
383 |
+
echo 'checked="checked"';
|
384 |
+
} ?> name="gglstmp_post_types[]" value="<?php echo $post_type; ?>"/><span
|
385 |
+
style="text-transform: capitalize; padding-left: 5px;"><?php echo $post_type_object->labels->name; ?></span></label>
|
386 |
+
<br/>
|
387 |
<?php } ?>
|
388 |
+
</fieldset>
|
389 |
+
<span class="bws_info"><?php _e( 'Enable to add post type links to the sitemap.', 'google-sitemap-plugin' ); ?></span>
|
390 |
+
</td>
|
391 |
+
</tr>
|
392 |
+
<tr>
|
393 |
+
<th><?php _e( 'Taxonomies', 'google-sitemap-plugin' ); ?></th>
|
394 |
+
<td>
|
395 |
+
<fieldset>
|
396 |
<?php foreach ( $taxonomies as $key => $value ) { ?>
|
397 |
+
<label><input
|
398 |
+
type="checkbox" <?php if ( in_array( $key, $this->options['taxonomy'] ) ) {
|
399 |
+
echo 'checked="checked"';
|
400 |
+
} ?> name="gglstmp_taxonomies[]" value="<?php echo $key; ?>"/><span
|
401 |
+
style="padding-left: 5px;"><?php echo $value; ?></span></label><br/>
|
402 |
<?php } ?>
|
403 |
+
</fieldset>
|
404 |
+
<span class="bws_info"><?php _e( 'Enable to taxonomy links to the sitemap.', 'google-sitemap-plugin' ); ?></span>
|
405 |
+
</td>
|
406 |
+
</tr>
|
407 |
+
</table>
|
408 |
<?php if ( ! $this->hide_pro_tabs ) { ?>
|
409 |
+
<div class="bws_pro_version_bloc">
|
410 |
+
<div class="bws_pro_version_table_bloc">
|
411 |
+
<button type="submit" name="bws_hide_premium_options"
|
412 |
+
class="notice-dismiss bws_hide_premium_options"
|
413 |
+
title="<?php _e( 'Close', 'google-sitemap-plugin' ); ?>"></button>
|
414 |
+
<div class="bws_table_bg"></div>
|
415 |
<?php gglstmp_extra_block(); ?>
|
416 |
+
</div>
|
417 |
<?php $this->bws_pro_block_links(); ?>
|
418 |
+
</div>
|
419 |
<?php }
|
420 |
}
|
421 |
|
427 |
|
428 |
if ( $this->is_multisite ) {
|
429 |
$blog_id = get_current_blog_id();
|
430 |
+
$mask = "sitemap_{$blog_id}*.xml";
|
431 |
} else {
|
432 |
$mask = "sitemap*.xml";
|
433 |
}
|
445 |
}
|
446 |
|
447 |
public function display_custom_messages( $save_results ) {
|
448 |
+
global $gglstmp_options;
|
449 |
if ( $this->is_multisite ) {
|
450 |
+
$blog_id = get_current_blog_id();
|
451 |
$xml_file = 'sitemap_' . $blog_id . '.xml';
|
452 |
} else {
|
453 |
$xml_file = 'sitemap.xml';
|
454 |
}
|
455 |
+
$xml_url = home_url( '/' . $xml_file );
|
456 |
|
457 |
if ( isset( $xml_file ) && file_exists( ABSPATH . $xml_file ) ) {
|
458 |
|
465 |
);
|
466 |
|
467 |
if ( ! $this->is_multisite ) {
|
468 |
+
$status = gglstmp_check_sitemap( home_url( "/sitemap.xml" ) );
|
469 |
} else {
|
470 |
+
$status = gglstmp_check_sitemap( home_url( "/sitemap_{$blog_id}.xml" ) );
|
471 |
}
|
472 |
|
473 |
if ( ! is_wp_error( $status ) && '200' != $status['code'] ) {
|
483 |
$home_dir .= '/';
|
484 |
}
|
485 |
$replace = $home_dir . '$1'; ?>
|
486 |
+
<div class="error below-h2">
|
487 |
+
<p>
|
488 |
+
<strong><?php _e( 'Error', 'google-sitemap-plugin' ); ?>:</strong> <?php
|
489 |
printf( __( "Can't access XML files. Try to add the following rule %s to your %s file which is located in the root of your website to resolve this error. Find the following line %s and paste the code just after it.", 'google-sitemap-plugin' ),
|
490 |
'<code>RewriteRule ([^/]+\.xml)$ ' . $replace . ' [L]</code>',
|
491 |
'<strong>.htaccess</strong>',
|
492 |
'<strong>"RewriteBase /"</strong>'
|
493 |
); ?>
|
494 |
+
</p>
|
495 |
+
</div>
|
496 |
<?php }
|
497 |
|
498 |
} else {
|
501 |
|
502 |
if ( class_exists( 'Google_Client' ) && version_compare( Google_Client::LIBVER, '1.1.3', '!=' ) ) {
|
503 |
/* Google Client library of some other product is used! */ ?>
|
504 |
+
<div class="updated bws-notice inline">
|
505 |
+
<p><strong><?php _e( 'Note', 'google-sitemap-plugin' ); ?>
|
506 |
+
: </strong><?php _e( 'Another plugin is providing Google Client functionality and may interrupt proper plugin work.', 'google-sitemap-plugin' ); ?>
|
507 |
+
</p>
|
508 |
+
</div>
|
509 |
<?php }
|
510 |
}
|
511 |
}
|
languages/google-sitemap-plugin-cs_CZ.mo
CHANGED
Binary file
|
languages/google-sitemap-plugin-cs_CZ.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Google Sitemap - BWS\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2018-
|
6 |
-
"PO-Revision-Date: 2018-
|
7 |
"Last-Translator: Mik013\n"
|
8 |
"Language-Team: Mik013\n"
|
9 |
"Language: cs_CZ\n"
|
@@ -17,226 +17,242 @@ msgstr ""
|
|
17 |
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
|
18 |
"X-Poedit-SearchPath-0: .\n"
|
19 |
|
20 |
-
#: google-sitemap-plugin.php:
|
21 |
-
#: includes/class-gglstmp-settings.php:
|
22 |
msgid "Google Sitemap Settings"
|
23 |
msgstr "Nastavení Google Sitemap"
|
24 |
|
25 |
-
#: google-sitemap-plugin.php:
|
26 |
-
#: google-sitemap-plugin.php:
|
27 |
-
#: includes/class-gglstmp-settings.php:
|
28 |
msgid "Settings"
|
29 |
msgstr "Nastavení"
|
30 |
|
31 |
-
#: google-sitemap-plugin.php:
|
32 |
-
#: google-sitemap-plugin.php:
|
33 |
msgid "Custom Links"
|
34 |
msgstr "Uživatelské odkazy"
|
35 |
|
36 |
-
#: google-sitemap-plugin.php:
|
37 |
msgid "Upgrade to Pro"
|
38 |
msgstr "Aktualizovat na Pro"
|
39 |
|
40 |
-
#: google-sitemap-plugin.php:
|
41 |
msgid "Post categories"
|
42 |
msgstr "Rubriky příspěvků"
|
43 |
|
44 |
-
#: google-sitemap-plugin.php:
|
45 |
msgid "Post tags"
|
46 |
msgstr "Štítky příspěvků"
|
47 |
|
48 |
-
#: google-sitemap-plugin.php:
|
49 |
msgid "Please enable JavaScript in your browser."
|
50 |
msgstr "Prosím, povolte JavaScript ve vašem prohlížeči."
|
51 |
|
52 |
-
#: google-sitemap-plugin.php:
|
53 |
msgid "Add New"
|
54 |
msgstr "Přidat nový"
|
55 |
|
56 |
-
#: google-sitemap-plugin.php:
|
57 |
-
#: google-sitemap-plugin.php:
|
58 |
msgid "Website"
|
59 |
msgstr "Webová stránka"
|
60 |
|
61 |
-
#: google-sitemap-plugin.php:
|
62 |
-
#: google-sitemap-plugin.php:
|
63 |
-
#: google-sitemap-plugin.php:
|
64 |
msgid "Status"
|
65 |
msgstr "Stav"
|
66 |
|
67 |
-
#: google-sitemap-plugin.php:
|
68 |
-
#: google-sitemap-plugin.php:
|
69 |
msgid "Not added"
|
70 |
msgstr "Nepřidáno"
|
71 |
|
72 |
-
#: google-sitemap-plugin.php:
|
73 |
-
#: google-sitemap-plugin.php:
|
74 |
msgid "Added"
|
75 |
msgstr "Přidáno"
|
76 |
|
77 |
-
#: google-sitemap-plugin.php:
|
78 |
-
#: google-sitemap-plugin.php:
|
79 |
msgid "Verification Status"
|
80 |
msgstr "Stav ověření"
|
81 |
|
82 |
-
#: google-sitemap-plugin.php:
|
83 |
msgid "Verified"
|
84 |
msgstr "Ověřeno"
|
85 |
|
86 |
-
#: google-sitemap-plugin.php:
|
87 |
msgid "Not verified"
|
88 |
msgstr "Nevěřeno"
|
89 |
|
90 |
-
#: google-sitemap-plugin.php:
|
91 |
msgid "Sitemap Status"
|
92 |
msgstr "Stav sitemap.xml"
|
93 |
|
94 |
-
#: google-sitemap-plugin.php:
|
95 |
msgid "Added with errors."
|
96 |
msgstr "Přidáno s chybami."
|
97 |
|
98 |
-
#: google-sitemap-plugin.php:
|
99 |
msgid "View errors in Google Webmaster Tools"
|
100 |
msgstr "Zobrazit chyby v Google Webmaster Tools"
|
101 |
|
102 |
-
#: google-sitemap-plugin.php:
|
103 |
msgid "Sitemap URL"
|
104 |
msgstr "URL sitemap.xml"
|
105 |
|
106 |
-
#: google-sitemap-plugin.php:
|
107 |
-
#: google-sitemap-plugin.php:
|
108 |
-
#: google-sitemap-plugin.php:
|
109 |
-
#: google-sitemap-plugin.php:
|
110 |
-
#: includes/class-gglstmp-settings.php:
|
111 |
msgid "Error"
|
112 |
msgstr "Chyba"
|
113 |
|
114 |
-
#: google-sitemap-plugin.php:
|
115 |
msgid "Please check the sitemap file manually."
|
116 |
msgstr "Zkontrolujte soubor sitemap.xml manuálně."
|
117 |
|
118 |
-
#: google-sitemap-plugin.php:
|
119 |
-
#: google-sitemap-plugin.php:
|
120 |
-
#: google-sitemap-plugin.php:
|
121 |
-
#: includes/class-gglstmp-settings.php:
|
122 |
msgid "Learn More"
|
123 |
msgstr "Více informací"
|
124 |
|
125 |
-
#: google-sitemap-plugin.php:
|
126 |
-
#: google-sitemap-plugin.php:
|
127 |
-
#: google-sitemap-plugin.php:
|
128 |
msgid "Unexpected error"
|
129 |
msgstr "Neočekávaná chyba"
|
130 |
|
131 |
-
#: google-sitemap-plugin.php:
|
132 |
-
#: google-sitemap-plugin.php:
|
133 |
msgid "Manual verification required."
|
134 |
msgstr "Je vyžadováno ruční ověření."
|
135 |
|
136 |
-
#: google-sitemap-plugin.php:
|
137 |
msgid "Deleted"
|
138 |
msgstr "Odstraněno"
|
139 |
|
140 |
-
#: google-sitemap-plugin.php:
|
141 |
-
#: google-sitemap-plugin.php:
|
142 |
msgid "Verification Code"
|
143 |
msgstr "Ověřovací kód"
|
144 |
|
145 |
-
#: google-sitemap-plugin.php:
|
146 |
msgid "Received and added to the site"
|
147 |
msgstr "Přijato a přidáno na web"
|
148 |
|
149 |
-
#: google-sitemap-plugin.php:
|
150 |
msgid "Received, but has not been added to the site"
|
151 |
msgstr "Přijato avšak nepřidáno na web"
|
152 |
|
153 |
-
#: google-sitemap-plugin.php:
|
154 |
msgid "Please add the sitemap file manually."
|
155 |
msgstr "Přidejte soubor sitemap.xml manuálně."
|
156 |
|
157 |
-
#: google-sitemap-plugin.php:
|
158 |
msgid "Error 404"
|
159 |
msgstr "Chyba 404"
|
160 |
|
161 |
-
#: google-sitemap-plugin.php:
|
162 |
#, php-format
|
163 |
msgid "The sitemap file %s not found."
|
164 |
msgstr "Soubor sitemap.xml %s nebyl nalezen."
|
165 |
|
166 |
-
#: google-sitemap-plugin.php:
|
167 |
msgid "The sitemap file not found."
|
168 |
msgstr "Soubor sitemap.xml nebyl nalezen."
|
169 |
|
170 |
-
#: google-sitemap-plugin.php:
|
171 |
msgid "FAQ"
|
172 |
msgstr ""
|
173 |
"Časté dotazy <acronym title=\\\"Frequently asked questions\\\">(FAQ)</"
|
174 |
"acronym>"
|
175 |
|
176 |
-
#: google-sitemap-plugin.php:
|
177 |
msgid "Support"
|
178 |
msgstr "Podpora"
|
179 |
|
180 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
msgid "Structure"
|
182 |
msgstr "Struktura"
|
183 |
|
184 |
-
#: includes/class-gglstmp-settings.php:
|
185 |
msgid "Misc"
|
186 |
msgstr "Různé"
|
187 |
|
188 |
-
#: includes/class-gglstmp-settings.php:
|
189 |
msgid "License Key"
|
190 |
msgstr "Licenční klíč"
|
191 |
|
192 |
-
#: includes/class-gglstmp-settings.php:
|
193 |
msgid "Settings saved."
|
194 |
msgstr "Nastavení uloženo."
|
195 |
|
196 |
-
#: includes/class-gglstmp-settings.php:
|
197 |
msgid ""
|
198 |
"Also, please add the following code to the beginning of your \".htaccess\" "
|
199 |
"file:"
|
200 |
msgstr "Také přidejte následující kód na začátek souboru \".htaccess\":"
|
201 |
|
202 |
-
#: includes/class-gglstmp-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
203 |
msgid "This option will be applied to all websites in the network."
|
204 |
msgstr "Tato volba bude použita pro všechny weby v síti."
|
205 |
|
206 |
-
#: includes/class-gglstmp-settings.php:
|
207 |
-
#: includes/class-gglstmp-settings.php:
|
208 |
msgid "Activate"
|
209 |
msgstr "Aktivovat"
|
210 |
|
211 |
-
#: includes/class-gglstmp-settings.php:
|
212 |
-
#: includes/class-gglstmp-settings.php:
|
213 |
msgid "Install Now"
|
214 |
msgstr "Instalovat nyní"
|
215 |
|
216 |
-
#: includes/class-gglstmp-settings.php:
|
217 |
#, php-format
|
218 |
msgid "%s Plugin"
|
219 |
msgstr "%s Plugin"
|
220 |
|
221 |
-
#: includes/class-gglstmp-settings.php:
|
222 |
#, php-format
|
223 |
msgid "Enable to allow XML files access using %s plugin."
|
224 |
msgstr "Povolte přístup ke XML souborům pomocí %s pluginu."
|
225 |
|
226 |
-
#: includes/class-gglstmp-settings.php:
|
227 |
msgid "The following string will be added to your .htaccess file"
|
228 |
msgstr "Následující řetězec bude přidán do vašeho .htaccess souboru"
|
229 |
|
230 |
-
#: includes/class-gglstmp-settings.php:
|
231 |
-
#: includes/class-gglstmp-settings.php:
|
232 |
msgid "Close"
|
233 |
msgstr "Zavřít"
|
234 |
|
235 |
-
#: includes/class-gglstmp-settings.php:
|
236 |
msgid "URLs Limit"
|
237 |
msgstr "Limit URL adres"
|
238 |
|
239 |
-
#: includes/class-gglstmp-settings.php:
|
240 |
msgid ""
|
241 |
"A sitemap file can't contain more than 50,000 URLs and must be no larger "
|
242 |
"than 50 MB uncompressed."
|
@@ -244,21 +260,21 @@ msgstr ""
|
|
244 |
"Soubor sitemap.xml nesmí obsahovat více než 50 000 URL adres a v "
|
245 |
"nekomprimované podobě nesmí být větší než 50 MB."
|
246 |
|
247 |
-
#: includes/class-gglstmp-settings.php:
|
248 |
msgid "Decrease the limit if your sitemap exceeds file size limit."
|
249 |
msgstr ""
|
250 |
"Snižte limit, pokud váš soubor sitemap.xml překročí limit velikosti souboru."
|
251 |
|
252 |
-
#: includes/class-gglstmp-settings.php:
|
253 |
msgid ""
|
254 |
"When the limit is reached, the sitemap will be splitted into multiple files."
|
255 |
msgstr "Po dosažení limitu bude soubor sitemap.xml rozdělen na více souborů."
|
256 |
|
257 |
-
#: includes/class-gglstmp-settings.php:
|
258 |
msgid "Google Webmaster Tools"
|
259 |
msgstr "Google Webmaster Tools"
|
260 |
|
261 |
-
#: includes/class-gglstmp-settings.php:
|
262 |
msgid ""
|
263 |
"This hosting does not support сURL, so you cannot add a sitemap file "
|
264 |
"automatically."
|
@@ -266,27 +282,27 @@ msgstr ""
|
|
266 |
"Váš hosting nepodporuje cURL, takže nemůžete přidat soubor sitemap.xml (do "
|
267 |
"Google?) automaticky."
|
268 |
|
269 |
-
#: includes/class-gglstmp-settings.php:
|
270 |
msgid "Logout from Google Webmaster Tools"
|
271 |
msgstr "Odhlásit se z Google Webmaster Tools"
|
272 |
|
273 |
-
#: includes/class-gglstmp-settings.php:
|
274 |
msgid "Manage Website with Google Webmaster Tools"
|
275 |
msgstr "Spravovat web s Google Webmaster Tools"
|
276 |
|
277 |
-
#: includes/class-gglstmp-settings.php:
|
278 |
msgid "Add"
|
279 |
msgstr "Přidat"
|
280 |
|
281 |
-
#: includes/class-gglstmp-settings.php:
|
282 |
msgid "Delete"
|
283 |
msgstr "Smazat"
|
284 |
|
285 |
-
#: includes/class-gglstmp-settings.php:
|
286 |
msgid "Get Info"
|
287 |
msgstr "Získat informace"
|
288 |
|
289 |
-
#: includes/class-gglstmp-settings.php:
|
290 |
msgid ""
|
291 |
"Add, delete or get info about this website using your Google Webmaster Tools "
|
292 |
"account."
|
@@ -294,72 +310,72 @@ msgstr ""
|
|
294 |
"Přidat, odstranit nebo zobrazit informace o tomto webu pomocí účtu Google "
|
295 |
"Webmaster Tools."
|
296 |
|
297 |
-
#: includes/class-gglstmp-settings.php:
|
298 |
msgid "Get Authorization Code"
|
299 |
msgstr "Získat autorizační kód"
|
300 |
|
301 |
-
#: includes/class-gglstmp-settings.php:
|
302 |
msgid "Authorize"
|
303 |
msgstr "Schválit"
|
304 |
|
305 |
-
#: includes/class-gglstmp-settings.php:
|
306 |
msgid "Invalid authorization code. Please try again."
|
307 |
msgstr "Neplatný autorizační kód. Zkuste to znovu."
|
308 |
|
309 |
-
#: includes/class-gglstmp-settings.php:
|
310 |
msgid "You can also add your sitemap to Google Webmaster Tools manually."
|
311 |
msgstr "Můžete také přidat soubor sitemap.xml na Google Webmaster Tools ručně."
|
312 |
|
313 |
-
#: includes/class-gglstmp-settings.php:
|
314 |
msgid "Read the instruction"
|
315 |
msgstr "Přečíst si instrukce"
|
316 |
|
317 |
-
#: includes/class-gglstmp-settings.php:
|
318 |
msgid "Alternate Language Pages"
|
319 |
msgstr ""
|
320 |
|
321 |
-
#: includes/class-gglstmp-settings.php:
|
322 |
msgid "Enable to add alternate language pages using Multilanguage plugin."
|
323 |
msgstr ""
|
324 |
|
325 |
-
#: includes/class-gglstmp-settings.php:
|
326 |
msgid "Post category"
|
327 |
msgstr "Kategorie příspěvku"
|
328 |
|
329 |
-
#: includes/class-gglstmp-settings.php:
|
330 |
msgid "Post tag"
|
331 |
msgstr "Štítek příspěvku"
|
332 |
|
333 |
-
#: includes/class-gglstmp-settings.php:
|
334 |
msgid "Sitemap Structure"
|
335 |
msgstr "Struktura sitemap.xml"
|
336 |
|
337 |
-
#: includes/class-gglstmp-settings.php:
|
338 |
msgid "Post Types"
|
339 |
msgstr "Typy příspěvků"
|
340 |
|
341 |
-
#: includes/class-gglstmp-settings.php:
|
342 |
msgid "Enable to add post type links to the sitemap."
|
343 |
msgstr "Do souboru sitemap.xml přidat typy příspěvků."
|
344 |
|
345 |
-
#: includes/class-gglstmp-settings.php:
|
346 |
msgid "Taxonomies"
|
347 |
msgstr "Taxonomie"
|
348 |
|
349 |
-
#: includes/class-gglstmp-settings.php:
|
350 |
msgid "Enable to taxonomy links to the sitemap."
|
351 |
msgstr "Do souboru sitemap.xml přidat taxonomie."
|
352 |
|
353 |
-
#: includes/class-gglstmp-settings.php:
|
354 |
#, php-format
|
355 |
msgid "%s is in the site root directory."
|
356 |
msgstr "%s je v kořenovém adresáři webu."
|
357 |
|
358 |
-
#: includes/class-gglstmp-settings.php:
|
359 |
msgid "The Sitemap file"
|
360 |
msgstr "Soubor sitemap.xml"
|
361 |
|
362 |
-
#: includes/class-gglstmp-settings.php:
|
363 |
#, php-format
|
364 |
msgid ""
|
365 |
"Can't access XML files. Try to add the following rule %s to your %s file "
|
@@ -371,11 +387,11 @@ msgstr ""
|
|
371 |
"adresáři vašeho webu. Vyhledejte následující řádek %s a kód vložte hned za "
|
372 |
"ním."
|
373 |
|
374 |
-
#: includes/class-gglstmp-settings.php:
|
375 |
msgid "Note"
|
376 |
msgstr "Poznámka"
|
377 |
|
378 |
-
#: includes/class-gglstmp-settings.php:
|
379 |
msgid ""
|
380 |
"Another plugin is providing Google Client functionality and may interrupt "
|
381 |
"proper plugin work."
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Google Sitemap - BWS\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-12-25 16:52+0200\n"
|
6 |
+
"PO-Revision-Date: 2018-12-25 16:52+0200\n"
|
7 |
"Last-Translator: Mik013\n"
|
8 |
"Language-Team: Mik013\n"
|
9 |
"Language: cs_CZ\n"
|
17 |
"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
|
18 |
"X-Poedit-SearchPath-0: .\n"
|
19 |
|
20 |
+
#: google-sitemap-plugin.php:37 google-sitemap-plugin.php:47
|
21 |
+
#: includes/class-gglstmp-settings.php:180
|
22 |
msgid "Google Sitemap Settings"
|
23 |
msgstr "Nastavení Google Sitemap"
|
24 |
|
25 |
+
#: google-sitemap-plugin.php:48 google-sitemap-plugin.php:1316
|
26 |
+
#: google-sitemap-plugin.php:1722 google-sitemap-plugin.php:1736
|
27 |
+
#: includes/class-gglstmp-settings.php:28
|
28 |
msgid "Settings"
|
29 |
msgstr "Nastavení"
|
30 |
|
31 |
+
#: google-sitemap-plugin.php:56 google-sitemap-plugin.php:57
|
32 |
+
#: google-sitemap-plugin.php:1325
|
33 |
msgid "Custom Links"
|
34 |
msgstr "Uživatelské odkazy"
|
35 |
|
36 |
+
#: google-sitemap-plugin.php:75 includes/pro_banners.php:27
|
37 |
msgid "Upgrade to Pro"
|
38 |
msgstr "Aktualizovat na Pro"
|
39 |
|
40 |
+
#: google-sitemap-plugin.php:393
|
41 |
msgid "Post categories"
|
42 |
msgstr "Rubriky příspěvků"
|
43 |
|
44 |
+
#: google-sitemap-plugin.php:394
|
45 |
msgid "Post tags"
|
46 |
msgstr "Štítky příspěvků"
|
47 |
|
48 |
+
#: google-sitemap-plugin.php:1319
|
49 |
msgid "Please enable JavaScript in your browser."
|
50 |
msgstr "Prosím, povolte JavaScript ve vašem prohlížeči."
|
51 |
|
52 |
+
#: google-sitemap-plugin.php:1327
|
53 |
msgid "Add New"
|
54 |
msgstr "Přidat nový"
|
55 |
|
56 |
+
#: google-sitemap-plugin.php:1370 google-sitemap-plugin.php:1457
|
57 |
+
#: google-sitemap-plugin.php:1510
|
58 |
msgid "Website"
|
59 |
msgstr "Webová stránka"
|
60 |
|
61 |
+
#: google-sitemap-plugin.php:1381 google-sitemap-plugin.php:1385
|
62 |
+
#: google-sitemap-plugin.php:1474 google-sitemap-plugin.php:1490
|
63 |
+
#: google-sitemap-plugin.php:1514 google-sitemap-plugin.php:1528
|
64 |
msgid "Status"
|
65 |
msgstr "Stav"
|
66 |
|
67 |
+
#: google-sitemap-plugin.php:1382 google-sitemap-plugin.php:1414
|
68 |
+
#: google-sitemap-plugin.php:1491
|
69 |
msgid "Not added"
|
70 |
msgstr "Nepřidáno"
|
71 |
|
72 |
+
#: google-sitemap-plugin.php:1386 google-sitemap-plugin.php:1417
|
73 |
+
#: google-sitemap-plugin.php:1515 google-sitemap-plugin.php:1626
|
74 |
msgid "Added"
|
75 |
msgstr "Přidáno"
|
76 |
|
77 |
+
#: google-sitemap-plugin.php:1388 google-sitemap-plugin.php:1571
|
78 |
+
#: google-sitemap-plugin.php:1583 google-sitemap-plugin.php:1597
|
79 |
msgid "Verification Status"
|
80 |
msgstr "Stav ověření"
|
81 |
|
82 |
+
#: google-sitemap-plugin.php:1390 google-sitemap-plugin.php:1584
|
83 |
msgid "Verified"
|
84 |
msgstr "Ověřeno"
|
85 |
|
86 |
+
#: google-sitemap-plugin.php:1392
|
87 |
msgid "Not verified"
|
88 |
msgstr "Nevěřeno"
|
89 |
|
90 |
+
#: google-sitemap-plugin.php:1401 google-sitemap-plugin.php:1605
|
91 |
msgid "Sitemap Status"
|
92 |
msgstr "Stav sitemap.xml"
|
93 |
|
94 |
+
#: google-sitemap-plugin.php:1419
|
95 |
msgid "Added with errors."
|
96 |
msgstr "Přidáno s chybami."
|
97 |
|
98 |
+
#: google-sitemap-plugin.php:1419
|
99 |
msgid "View errors in Google Webmaster Tools"
|
100 |
msgstr "Zobrazit chyby v Google Webmaster Tools"
|
101 |
|
102 |
+
#: google-sitemap-plugin.php:1422
|
103 |
msgid "Sitemap URL"
|
104 |
msgstr "URL sitemap.xml"
|
105 |
|
106 |
+
#: google-sitemap-plugin.php:1425 google-sitemap-plugin.php:1441
|
107 |
+
#: google-sitemap-plugin.php:1493 google-sitemap-plugin.php:1530
|
108 |
+
#: google-sitemap-plugin.php:1568 google-sitemap-plugin.php:1599
|
109 |
+
#: google-sitemap-plugin.php:1639 google-sitemap-plugin.php:1659
|
110 |
+
#: includes/class-gglstmp-settings.php:488
|
111 |
msgid "Error"
|
112 |
msgstr "Chyba"
|
113 |
|
114 |
+
#: google-sitemap-plugin.php:1425
|
115 |
msgid "Please check the sitemap file manually."
|
116 |
msgstr "Zkontrolujte soubor sitemap.xml manuálně."
|
117 |
|
118 |
+
#: google-sitemap-plugin.php:1425 google-sitemap-plugin.php:1443
|
119 |
+
#: google-sitemap-plugin.php:1533 google-sitemap-plugin.php:1572
|
120 |
+
#: google-sitemap-plugin.php:1602 google-sitemap-plugin.php:1642
|
121 |
+
#: includes/class-gglstmp-settings.php:282 includes/pro_banners.php:47
|
122 |
msgid "Learn More"
|
123 |
msgstr "Více informací"
|
124 |
|
125 |
+
#: google-sitemap-plugin.php:1430 google-sitemap-plugin.php:1481
|
126 |
+
#: google-sitemap-plugin.php:1518 google-sitemap-plugin.php:1556
|
127 |
+
#: google-sitemap-plugin.php:1587 google-sitemap-plugin.php:1629
|
128 |
msgid "Unexpected error"
|
129 |
msgstr "Neočekávaná chyba"
|
130 |
|
131 |
+
#: google-sitemap-plugin.php:1443 google-sitemap-plugin.php:1533
|
132 |
+
#: google-sitemap-plugin.php:1602
|
133 |
msgid "Manual verification required."
|
134 |
msgstr "Je vyžadováno ruční ověření."
|
135 |
|
136 |
+
#: google-sitemap-plugin.php:1475
|
137 |
msgid "Deleted"
|
138 |
msgstr "Odstraněno"
|
139 |
|
140 |
+
#: google-sitemap-plugin.php:1548 google-sitemap-plugin.php:1551
|
141 |
+
#: google-sitemap-plugin.php:1567
|
142 |
msgid "Verification Code"
|
143 |
msgstr "Ověřovací kód"
|
144 |
|
145 |
+
#: google-sitemap-plugin.php:1549
|
146 |
msgid "Received and added to the site"
|
147 |
msgstr "Přijato a přidáno na web"
|
148 |
|
149 |
+
#: google-sitemap-plugin.php:1552
|
150 |
msgid "Received, but has not been added to the site"
|
151 |
msgstr "Přijato avšak nepřidáno na web"
|
152 |
|
153 |
+
#: google-sitemap-plugin.php:1642
|
154 |
msgid "Please add the sitemap file manually."
|
155 |
msgstr "Přidejte soubor sitemap.xml manuálně."
|
156 |
|
157 |
+
#: google-sitemap-plugin.php:1647
|
158 |
msgid "Error 404"
|
159 |
msgstr "Chyba 404"
|
160 |
|
161 |
+
#: google-sitemap-plugin.php:1649
|
162 |
#, php-format
|
163 |
msgid "The sitemap file %s not found."
|
164 |
msgstr "Soubor sitemap.xml %s nebyl nalezen."
|
165 |
|
166 |
+
#: google-sitemap-plugin.php:1659
|
167 |
msgid "The sitemap file not found."
|
168 |
msgstr "Soubor sitemap.xml nebyl nalezen."
|
169 |
|
170 |
+
#: google-sitemap-plugin.php:1738
|
171 |
msgid "FAQ"
|
172 |
msgstr ""
|
173 |
"Časté dotazy <acronym title=\\\"Frequently asked questions\\\">(FAQ)</"
|
174 |
"acronym>"
|
175 |
|
176 |
+
#: google-sitemap-plugin.php:1739
|
177 |
msgid "Support"
|
178 |
msgstr "Podpora"
|
179 |
|
180 |
+
#: google-sitemap-plugin.php:1911 google-sitemap-plugin.php:1920
|
181 |
+
msgid "Google-Sitemap-plugin Canonical Settings"
|
182 |
+
msgstr ""
|
183 |
+
|
184 |
+
#: google-sitemap-plugin.php:1946
|
185 |
+
msgid "Canonical Url:"
|
186 |
+
msgstr ""
|
187 |
+
|
188 |
+
#: includes/class-gglstmp-settings.php:29
|
189 |
msgid "Structure"
|
190 |
msgstr "Struktura"
|
191 |
|
192 |
+
#: includes/class-gglstmp-settings.php:30
|
193 |
msgid "Misc"
|
194 |
msgstr "Různé"
|
195 |
|
196 |
+
#: includes/class-gglstmp-settings.php:31
|
197 |
msgid "License Key"
|
198 |
msgstr "Licenční klíč"
|
199 |
|
200 |
+
#: includes/class-gglstmp-settings.php:170
|
201 |
msgid "Settings saved."
|
202 |
msgstr "Nastavení uloženo."
|
203 |
|
204 |
+
#: includes/class-gglstmp-settings.php:212
|
205 |
msgid ""
|
206 |
"Also, please add the following code to the beginning of your \".htaccess\" "
|
207 |
"file:"
|
208 |
msgstr "Také přidejte následující kód na začátek souboru \".htaccess\":"
|
209 |
|
210 |
+
#: includes/class-gglstmp-settings.php:225
|
211 |
+
msgid "Media Sitemap"
|
212 |
+
msgstr ""
|
213 |
+
|
214 |
+
#: includes/class-gglstmp-settings.php:230
|
215 |
+
msgid "Enable to add a media sitemap (video & image)"
|
216 |
+
msgstr ""
|
217 |
+
|
218 |
+
#: includes/class-gglstmp-settings.php:235
|
219 |
msgid "This option will be applied to all websites in the network."
|
220 |
msgstr "Tato volba bude použita pro všechny weby v síti."
|
221 |
|
222 |
+
#: includes/class-gglstmp-settings.php:238
|
223 |
+
#: includes/class-gglstmp-settings.php:347
|
224 |
msgid "Activate"
|
225 |
msgstr "Aktivovat"
|
226 |
|
227 |
+
#: includes/class-gglstmp-settings.php:241
|
228 |
+
#: includes/class-gglstmp-settings.php:351
|
229 |
msgid "Install Now"
|
230 |
msgstr "Instalovat nyní"
|
231 |
|
232 |
+
#: includes/class-gglstmp-settings.php:247
|
233 |
#, php-format
|
234 |
msgid "%s Plugin"
|
235 |
msgstr "%s Plugin"
|
236 |
|
237 |
+
#: includes/class-gglstmp-settings.php:252
|
238 |
#, php-format
|
239 |
msgid "Enable to allow XML files access using %s plugin."
|
240 |
msgstr "Povolte přístup ke XML souborům pomocí %s pluginu."
|
241 |
|
242 |
+
#: includes/class-gglstmp-settings.php:253
|
243 |
msgid "The following string will be added to your .htaccess file"
|
244 |
msgstr "Následující řetězec bude přidán do vašeho .htaccess souboru"
|
245 |
|
246 |
+
#: includes/class-gglstmp-settings.php:263
|
247 |
+
#: includes/class-gglstmp-settings.php:413 includes/pro_banners.php:21
|
248 |
msgid "Close"
|
249 |
msgstr "Zavřít"
|
250 |
|
251 |
+
#: includes/class-gglstmp-settings.php:274
|
252 |
msgid "URLs Limit"
|
253 |
msgstr "Limit URL adres"
|
254 |
|
255 |
+
#: includes/class-gglstmp-settings.php:279
|
256 |
msgid ""
|
257 |
"A sitemap file can't contain more than 50,000 URLs and must be no larger "
|
258 |
"than 50 MB uncompressed."
|
260 |
"Soubor sitemap.xml nesmí obsahovat více než 50 000 URL adres a v "
|
261 |
"nekomprimované podobě nesmí být větší než 50 MB."
|
262 |
|
263 |
+
#: includes/class-gglstmp-settings.php:283
|
264 |
msgid "Decrease the limit if your sitemap exceeds file size limit."
|
265 |
msgstr ""
|
266 |
"Snižte limit, pokud váš soubor sitemap.xml překročí limit velikosti souboru."
|
267 |
|
268 |
+
#: includes/class-gglstmp-settings.php:284
|
269 |
msgid ""
|
270 |
"When the limit is reached, the sitemap will be splitted into multiple files."
|
271 |
msgstr "Po dosažení limitu bude soubor sitemap.xml rozdělen na více souborů."
|
272 |
|
273 |
+
#: includes/class-gglstmp-settings.php:289
|
274 |
msgid "Google Webmaster Tools"
|
275 |
msgstr "Google Webmaster Tools"
|
276 |
|
277 |
+
#: includes/class-gglstmp-settings.php:292
|
278 |
msgid ""
|
279 |
"This hosting does not support сURL, so you cannot add a sitemap file "
|
280 |
"automatically."
|
282 |
"Váš hosting nepodporuje cURL, takže nemůžete přidat soubor sitemap.xml (do "
|
283 |
"Google?) automaticky."
|
284 |
|
285 |
+
#: includes/class-gglstmp-settings.php:296
|
286 |
msgid "Logout from Google Webmaster Tools"
|
287 |
msgstr "Odhlásit se z Google Webmaster Tools"
|
288 |
|
289 |
+
#: includes/class-gglstmp-settings.php:300
|
290 |
msgid "Manage Website with Google Webmaster Tools"
|
291 |
msgstr "Spravovat web s Google Webmaster Tools"
|
292 |
|
293 |
+
#: includes/class-gglstmp-settings.php:303
|
294 |
msgid "Add"
|
295 |
msgstr "Přidat"
|
296 |
|
297 |
+
#: includes/class-gglstmp-settings.php:305 includes/pro_banners.php:138
|
298 |
msgid "Delete"
|
299 |
msgstr "Smazat"
|
300 |
|
301 |
+
#: includes/class-gglstmp-settings.php:307
|
302 |
msgid "Get Info"
|
303 |
msgstr "Získat informace"
|
304 |
|
305 |
+
#: includes/class-gglstmp-settings.php:309
|
306 |
msgid ""
|
307 |
"Add, delete or get info about this website using your Google Webmaster Tools "
|
308 |
"account."
|
310 |
"Přidat, odstranit nebo zobrazit informace o tomto webu pomocí účtu Google "
|
311 |
"Webmaster Tools."
|
312 |
|
313 |
+
#: includes/class-gglstmp-settings.php:319
|
314 |
msgid "Get Authorization Code"
|
315 |
msgstr "Získat autorizační kód"
|
316 |
|
317 |
+
#: includes/class-gglstmp-settings.php:326
|
318 |
msgid "Authorize"
|
319 |
msgstr "Schválit"
|
320 |
|
321 |
+
#: includes/class-gglstmp-settings.php:329
|
322 |
msgid "Invalid authorization code. Please try again."
|
323 |
msgstr "Neplatný autorizační kód. Zkuste to znovu."
|
324 |
|
325 |
+
#: includes/class-gglstmp-settings.php:334
|
326 |
msgid "You can also add your sitemap to Google Webmaster Tools manually."
|
327 |
msgstr "Můžete také přidat soubor sitemap.xml na Google Webmaster Tools ručně."
|
328 |
|
329 |
+
#: includes/class-gglstmp-settings.php:336
|
330 |
msgid "Read the instruction"
|
331 |
msgstr "Přečíst si instrukce"
|
332 |
|
333 |
+
#: includes/class-gglstmp-settings.php:341
|
334 |
msgid "Alternate Language Pages"
|
335 |
msgstr ""
|
336 |
|
337 |
+
#: includes/class-gglstmp-settings.php:355
|
338 |
msgid "Enable to add alternate language pages using Multilanguage plugin."
|
339 |
msgstr ""
|
340 |
|
341 |
+
#: includes/class-gglstmp-settings.php:369
|
342 |
msgid "Post category"
|
343 |
msgstr "Kategorie příspěvku"
|
344 |
|
345 |
+
#: includes/class-gglstmp-settings.php:370
|
346 |
msgid "Post tag"
|
347 |
msgstr "Štítek příspěvku"
|
348 |
|
349 |
+
#: includes/class-gglstmp-settings.php:372
|
350 |
msgid "Sitemap Structure"
|
351 |
msgstr "Struktura sitemap.xml"
|
352 |
|
353 |
+
#: includes/class-gglstmp-settings.php:377
|
354 |
msgid "Post Types"
|
355 |
msgstr "Typy příspěvků"
|
356 |
|
357 |
+
#: includes/class-gglstmp-settings.php:389
|
358 |
msgid "Enable to add post type links to the sitemap."
|
359 |
msgstr "Do souboru sitemap.xml přidat typy příspěvků."
|
360 |
|
361 |
+
#: includes/class-gglstmp-settings.php:393
|
362 |
msgid "Taxonomies"
|
363 |
msgstr "Taxonomie"
|
364 |
|
365 |
+
#: includes/class-gglstmp-settings.php:404
|
366 |
msgid "Enable to taxonomy links to the sitemap."
|
367 |
msgstr "Do souboru sitemap.xml přidat taxonomie."
|
368 |
|
369 |
+
#: includes/class-gglstmp-settings.php:462
|
370 |
#, php-format
|
371 |
msgid "%s is in the site root directory."
|
372 |
msgstr "%s je v kořenovém adresáři webu."
|
373 |
|
374 |
+
#: includes/class-gglstmp-settings.php:463
|
375 |
msgid "The Sitemap file"
|
376 |
msgstr "Soubor sitemap.xml"
|
377 |
|
378 |
+
#: includes/class-gglstmp-settings.php:489
|
379 |
#, php-format
|
380 |
msgid ""
|
381 |
"Can't access XML files. Try to add the following rule %s to your %s file "
|
387 |
"adresáři vašeho webu. Vyhledejte následující řádek %s a kód vložte hned za "
|
388 |
"ním."
|
389 |
|
390 |
+
#: includes/class-gglstmp-settings.php:505
|
391 |
msgid "Note"
|
392 |
msgstr "Poznámka"
|
393 |
|
394 |
+
#: includes/class-gglstmp-settings.php:506
|
395 |
msgid ""
|
396 |
"Another plugin is providing Google Client functionality and may interrupt "
|
397 |
"proper plugin work."
|
languages/google-sitemap-plugin-es_ES.mo
CHANGED
Binary file
|
languages/google-sitemap-plugin-es_ES.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Google Sitemap\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2018-
|
6 |
-
"PO-Revision-Date: 2018-
|
7 |
"Last-Translator: bestwebsoft.com <plugins@bestwebsoft.com>\n"
|
8 |
"Language-Team: BestWebSoft <wp@bestwebsoft.com>\n"
|
9 |
"Language: es_ES\n"
|
@@ -17,358 +17,374 @@ msgstr ""
|
|
17 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
18 |
"X-Poedit-SearchPath-0: .\n"
|
19 |
|
20 |
-
#: google-sitemap-plugin.php:
|
21 |
-
#: includes/class-gglstmp-settings.php:
|
22 |
msgid "Google Sitemap Settings"
|
23 |
msgstr "Ajustes de Google Sitemap"
|
24 |
|
25 |
-
#: google-sitemap-plugin.php:
|
26 |
-
#: google-sitemap-plugin.php:
|
27 |
-
#: includes/class-gglstmp-settings.php:
|
28 |
msgid "Settings"
|
29 |
msgstr "Configuración"
|
30 |
|
31 |
-
#: google-sitemap-plugin.php:
|
32 |
-
#: google-sitemap-plugin.php:
|
33 |
msgid "Custom Links"
|
34 |
msgstr ""
|
35 |
|
36 |
-
#: google-sitemap-plugin.php:
|
37 |
msgid "Upgrade to Pro"
|
38 |
msgstr ""
|
39 |
|
40 |
-
#: google-sitemap-plugin.php:
|
41 |
msgid "Post categories"
|
42 |
msgstr ""
|
43 |
|
44 |
-
#: google-sitemap-plugin.php:
|
45 |
msgid "Post tags"
|
46 |
msgstr ""
|
47 |
|
48 |
-
#: google-sitemap-plugin.php:
|
49 |
msgid "Please enable JavaScript in your browser."
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: google-sitemap-plugin.php:
|
53 |
msgid "Add New"
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: google-sitemap-plugin.php:
|
57 |
-
#: google-sitemap-plugin.php:
|
58 |
msgid "Website"
|
59 |
msgstr ""
|
60 |
|
61 |
-
#: google-sitemap-plugin.php:
|
62 |
-
#: google-sitemap-plugin.php:
|
63 |
-
#: google-sitemap-plugin.php:
|
64 |
msgid "Status"
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: google-sitemap-plugin.php:
|
68 |
-
#: google-sitemap-plugin.php:
|
69 |
msgid "Not added"
|
70 |
msgstr ""
|
71 |
|
72 |
-
#: google-sitemap-plugin.php:
|
73 |
-
#: google-sitemap-plugin.php:
|
74 |
msgid "Added"
|
75 |
msgstr ""
|
76 |
|
77 |
-
#: google-sitemap-plugin.php:
|
78 |
-
#: google-sitemap-plugin.php:
|
79 |
msgid "Verification Status"
|
80 |
msgstr ""
|
81 |
|
82 |
-
#: google-sitemap-plugin.php:
|
83 |
msgid "Verified"
|
84 |
msgstr ""
|
85 |
|
86 |
-
#: google-sitemap-plugin.php:
|
87 |
msgid "Not verified"
|
88 |
msgstr ""
|
89 |
|
90 |
-
#: google-sitemap-plugin.php:
|
91 |
msgid "Sitemap Status"
|
92 |
msgstr ""
|
93 |
|
94 |
-
#: google-sitemap-plugin.php:
|
95 |
msgid "Added with errors."
|
96 |
msgstr ""
|
97 |
|
98 |
-
#: google-sitemap-plugin.php:
|
99 |
msgid "View errors in Google Webmaster Tools"
|
100 |
msgstr ""
|
101 |
|
102 |
-
#: google-sitemap-plugin.php:
|
103 |
msgid "Sitemap URL"
|
104 |
msgstr "Sitemap URL"
|
105 |
|
106 |
-
#: google-sitemap-plugin.php:
|
107 |
-
#: google-sitemap-plugin.php:
|
108 |
-
#: google-sitemap-plugin.php:
|
109 |
-
#: google-sitemap-plugin.php:
|
110 |
-
#: includes/class-gglstmp-settings.php:
|
111 |
msgid "Error"
|
112 |
msgstr ""
|
113 |
|
114 |
-
#: google-sitemap-plugin.php:
|
115 |
msgid "Please check the sitemap file manually."
|
116 |
msgstr ""
|
117 |
|
118 |
-
#: google-sitemap-plugin.php:
|
119 |
-
#: google-sitemap-plugin.php:
|
120 |
-
#: google-sitemap-plugin.php:
|
121 |
-
#: includes/class-gglstmp-settings.php:
|
122 |
msgid "Learn More"
|
123 |
msgstr "Aprende más"
|
124 |
|
125 |
-
#: google-sitemap-plugin.php:
|
126 |
-
#: google-sitemap-plugin.php:
|
127 |
-
#: google-sitemap-plugin.php:
|
128 |
msgid "Unexpected error"
|
129 |
msgstr ""
|
130 |
|
131 |
-
#: google-sitemap-plugin.php:
|
132 |
-
#: google-sitemap-plugin.php:
|
133 |
msgid "Manual verification required."
|
134 |
msgstr ""
|
135 |
|
136 |
-
#: google-sitemap-plugin.php:
|
137 |
msgid "Deleted"
|
138 |
msgstr ""
|
139 |
|
140 |
-
#: google-sitemap-plugin.php:
|
141 |
-
#: google-sitemap-plugin.php:
|
142 |
msgid "Verification Code"
|
143 |
msgstr ""
|
144 |
|
145 |
-
#: google-sitemap-plugin.php:
|
146 |
msgid "Received and added to the site"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#: google-sitemap-plugin.php:
|
150 |
msgid "Received, but has not been added to the site"
|
151 |
msgstr ""
|
152 |
|
153 |
-
#: google-sitemap-plugin.php:
|
154 |
msgid "Please add the sitemap file manually."
|
155 |
msgstr ""
|
156 |
|
157 |
-
#: google-sitemap-plugin.php:
|
158 |
msgid "Error 404"
|
159 |
msgstr ""
|
160 |
|
161 |
-
#: google-sitemap-plugin.php:
|
162 |
#, php-format
|
163 |
msgid "The sitemap file %s not found."
|
164 |
msgstr ""
|
165 |
|
166 |
-
#: google-sitemap-plugin.php:
|
167 |
msgid "The sitemap file not found."
|
168 |
msgstr ""
|
169 |
|
170 |
-
#: google-sitemap-plugin.php:
|
171 |
msgid "FAQ"
|
172 |
msgstr "FAQ"
|
173 |
|
174 |
-
#: google-sitemap-plugin.php:
|
175 |
msgid "Support"
|
176 |
msgstr "Soporte"
|
177 |
|
178 |
-
#:
|
179 |
-
msgid "
|
|
|
|
|
|
|
|
|
180 |
msgstr ""
|
181 |
|
182 |
#: includes/class-gglstmp-settings.php:29
|
183 |
-
msgid "
|
184 |
msgstr ""
|
185 |
|
186 |
#: includes/class-gglstmp-settings.php:30
|
|
|
|
|
|
|
|
|
187 |
msgid "License Key"
|
188 |
msgstr ""
|
189 |
|
190 |
-
#: includes/class-gglstmp-settings.php:
|
191 |
msgid "Settings saved."
|
192 |
msgstr ""
|
193 |
|
194 |
-
#: includes/class-gglstmp-settings.php:
|
195 |
#, fuzzy, php-format
|
196 |
msgctxt "%robots.txt file link%"
|
197 |
msgid "Enable to add a sitemap file path to the %s file."
|
198 |
msgstr "añadir sitemap archivo de la ruta en"
|
199 |
|
200 |
-
#: includes/class-gglstmp-settings.php:
|
201 |
#, php-format
|
202 |
msgctxt "%reading settings page link%"
|
203 |
msgid "\"Search Engine Visibility\" option have to be unmarked on the %s."
|
204 |
msgstr ""
|
205 |
|
206 |
-
#: includes/class-gglstmp-settings.php:
|
207 |
#, fuzzy
|
208 |
msgctxt "...on the reading settings page."
|
209 |
msgid "Reading Settings page"
|
210 |
msgstr "страницу настроек"
|
211 |
|
212 |
-
#: includes/class-gglstmp-settings.php:
|
213 |
msgid ""
|
214 |
"Also, please add the following code to the beginning of your \".htaccess\" "
|
215 |
"file:"
|
216 |
msgstr ""
|
217 |
|
218 |
-
#: includes/class-gglstmp-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
219 |
msgid "This option will be applied to all websites in the network."
|
220 |
msgstr ""
|
221 |
|
222 |
-
#: includes/class-gglstmp-settings.php:
|
223 |
-
#: includes/class-gglstmp-settings.php:
|
224 |
msgid "Activate"
|
225 |
msgstr ""
|
226 |
|
227 |
-
#: includes/class-gglstmp-settings.php:
|
228 |
-
#: includes/class-gglstmp-settings.php:
|
229 |
msgid "Install Now"
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: includes/class-gglstmp-settings.php:
|
233 |
#, php-format
|
234 |
msgid "%s Plugin"
|
235 |
msgstr ""
|
236 |
|
237 |
-
#: includes/class-gglstmp-settings.php:
|
238 |
#, php-format
|
239 |
msgid "Enable to allow XML files access using %s plugin."
|
240 |
msgstr ""
|
241 |
|
242 |
-
#: includes/class-gglstmp-settings.php:
|
243 |
msgid "The following string will be added to your .htaccess file"
|
244 |
msgstr "La siguiente cuerda se añadirá al su archivo .htaccess"
|
245 |
|
246 |
-
#: includes/class-gglstmp-settings.php:
|
247 |
-
#: includes/class-gglstmp-settings.php:
|
248 |
msgid "Close"
|
249 |
msgstr "Cerrar"
|
250 |
|
251 |
-
#: includes/class-gglstmp-settings.php:
|
252 |
msgid "URLs Limit"
|
253 |
msgstr ""
|
254 |
|
255 |
-
#: includes/class-gglstmp-settings.php:
|
256 |
msgid ""
|
257 |
"A sitemap file can't contain more than 50,000 URLs and must be no larger "
|
258 |
"than 50 MB uncompressed."
|
259 |
msgstr ""
|
260 |
|
261 |
-
#: includes/class-gglstmp-settings.php:
|
262 |
msgid "Decrease the limit if your sitemap exceeds file size limit."
|
263 |
msgstr ""
|
264 |
|
265 |
-
#: includes/class-gglstmp-settings.php:
|
266 |
msgid ""
|
267 |
"When the limit is reached, the sitemap will be splitted into multiple files."
|
268 |
msgstr ""
|
269 |
|
270 |
-
#: includes/class-gglstmp-settings.php:
|
271 |
msgid "Google Webmaster Tools"
|
272 |
msgstr ""
|
273 |
|
274 |
-
#: includes/class-gglstmp-settings.php:
|
275 |
msgid ""
|
276 |
"This hosting does not support сURL, so you cannot add a sitemap file "
|
277 |
"automatically."
|
278 |
msgstr ""
|
279 |
|
280 |
-
#: includes/class-gglstmp-settings.php:
|
281 |
msgid "Logout from Google Webmaster Tools"
|
282 |
msgstr ""
|
283 |
|
284 |
-
#: includes/class-gglstmp-settings.php:
|
285 |
msgid "Manage Website with Google Webmaster Tools"
|
286 |
msgstr ""
|
287 |
|
288 |
-
#: includes/class-gglstmp-settings.php:
|
289 |
msgid "Add"
|
290 |
msgstr ""
|
291 |
|
292 |
-
#: includes/class-gglstmp-settings.php:
|
293 |
msgid "Delete"
|
294 |
msgstr ""
|
295 |
|
296 |
-
#: includes/class-gglstmp-settings.php:
|
297 |
msgid "Get Info"
|
298 |
msgstr ""
|
299 |
|
300 |
-
#: includes/class-gglstmp-settings.php:
|
301 |
msgid ""
|
302 |
"Add, delete or get info about this website using your Google Webmaster Tools "
|
303 |
"account."
|
304 |
msgstr ""
|
305 |
|
306 |
-
#: includes/class-gglstmp-settings.php:
|
307 |
msgid "Get Authorization Code"
|
308 |
msgstr "Obtener el código de autorización"
|
309 |
|
310 |
-
#: includes/class-gglstmp-settings.php:
|
311 |
msgid "Authorize"
|
312 |
msgstr "Autorizar"
|
313 |
|
314 |
-
#: includes/class-gglstmp-settings.php:
|
315 |
msgid "Invalid authorization code. Please try again."
|
316 |
msgstr ""
|
317 |
|
318 |
-
#: includes/class-gglstmp-settings.php:
|
319 |
msgid "You can also add your sitemap to Google Webmaster Tools manually."
|
320 |
msgstr ""
|
321 |
|
322 |
-
#: includes/class-gglstmp-settings.php:
|
323 |
msgid "Read the instruction"
|
324 |
msgstr ""
|
325 |
|
326 |
-
#: includes/class-gglstmp-settings.php:
|
327 |
msgid "Alternate Language Pages"
|
328 |
msgstr ""
|
329 |
|
330 |
-
#: includes/class-gglstmp-settings.php:
|
331 |
msgid "Enable to add alternate language pages using Multilanguage plugin."
|
332 |
msgstr ""
|
333 |
|
334 |
-
#: includes/class-gglstmp-settings.php:
|
335 |
msgid "Post category"
|
336 |
msgstr ""
|
337 |
|
338 |
-
#: includes/class-gglstmp-settings.php:
|
339 |
msgid "Post tag"
|
340 |
msgstr ""
|
341 |
|
342 |
-
#: includes/class-gglstmp-settings.php:
|
343 |
msgid "Sitemap Structure"
|
344 |
msgstr ""
|
345 |
|
346 |
-
#: includes/class-gglstmp-settings.php:
|
347 |
msgid "Post Types"
|
348 |
msgstr ""
|
349 |
|
350 |
-
#: includes/class-gglstmp-settings.php:
|
351 |
msgid "Enable to add post type links to the sitemap."
|
352 |
msgstr ""
|
353 |
|
354 |
-
#: includes/class-gglstmp-settings.php:
|
355 |
msgid "Taxonomies"
|
356 |
msgstr ""
|
357 |
|
358 |
-
#: includes/class-gglstmp-settings.php:
|
359 |
msgid "Enable to taxonomy links to the sitemap."
|
360 |
msgstr ""
|
361 |
|
362 |
-
#: includes/class-gglstmp-settings.php:
|
363 |
#, php-format
|
364 |
msgid "%s is in the site root directory."
|
365 |
msgstr ""
|
366 |
|
367 |
-
#: includes/class-gglstmp-settings.php:
|
368 |
msgid "The Sitemap file"
|
369 |
msgstr "El archivo de Sitemap"
|
370 |
|
371 |
-
#: includes/class-gglstmp-settings.php:
|
372 |
#, php-format
|
373 |
msgid ""
|
374 |
"Can't access XML files. Try to add the following rule %s to your %s file "
|
@@ -376,11 +392,11 @@ msgid ""
|
|
376 |
"following line %s and paste the code just after it."
|
377 |
msgstr ""
|
378 |
|
379 |
-
#: includes/class-gglstmp-settings.php:
|
380 |
msgid "Note"
|
381 |
msgstr ""
|
382 |
|
383 |
-
#: includes/class-gglstmp-settings.php:
|
384 |
msgid ""
|
385 |
"Another plugin is providing Google Client functionality and may interrupt "
|
386 |
"proper plugin work."
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Google Sitemap\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-12-25 16:52+0200\n"
|
6 |
+
"PO-Revision-Date: 2018-12-25 16:52+0200\n"
|
7 |
"Last-Translator: bestwebsoft.com <plugins@bestwebsoft.com>\n"
|
8 |
"Language-Team: BestWebSoft <wp@bestwebsoft.com>\n"
|
9 |
"Language: es_ES\n"
|
17 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
18 |
"X-Poedit-SearchPath-0: .\n"
|
19 |
|
20 |
+
#: google-sitemap-plugin.php:37 google-sitemap-plugin.php:47
|
21 |
+
#: includes/class-gglstmp-settings.php:180
|
22 |
msgid "Google Sitemap Settings"
|
23 |
msgstr "Ajustes de Google Sitemap"
|
24 |
|
25 |
+
#: google-sitemap-plugin.php:48 google-sitemap-plugin.php:1316
|
26 |
+
#: google-sitemap-plugin.php:1722 google-sitemap-plugin.php:1736
|
27 |
+
#: includes/class-gglstmp-settings.php:28
|
28 |
msgid "Settings"
|
29 |
msgstr "Configuración"
|
30 |
|
31 |
+
#: google-sitemap-plugin.php:56 google-sitemap-plugin.php:57
|
32 |
+
#: google-sitemap-plugin.php:1325
|
33 |
msgid "Custom Links"
|
34 |
msgstr ""
|
35 |
|
36 |
+
#: google-sitemap-plugin.php:75 includes/pro_banners.php:27
|
37 |
msgid "Upgrade to Pro"
|
38 |
msgstr ""
|
39 |
|
40 |
+
#: google-sitemap-plugin.php:393
|
41 |
msgid "Post categories"
|
42 |
msgstr ""
|
43 |
|
44 |
+
#: google-sitemap-plugin.php:394
|
45 |
msgid "Post tags"
|
46 |
msgstr ""
|
47 |
|
48 |
+
#: google-sitemap-plugin.php:1319
|
49 |
msgid "Please enable JavaScript in your browser."
|
50 |
msgstr ""
|
51 |
|
52 |
+
#: google-sitemap-plugin.php:1327
|
53 |
msgid "Add New"
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: google-sitemap-plugin.php:1370 google-sitemap-plugin.php:1457
|
57 |
+
#: google-sitemap-plugin.php:1510
|
58 |
msgid "Website"
|
59 |
msgstr ""
|
60 |
|
61 |
+
#: google-sitemap-plugin.php:1381 google-sitemap-plugin.php:1385
|
62 |
+
#: google-sitemap-plugin.php:1474 google-sitemap-plugin.php:1490
|
63 |
+
#: google-sitemap-plugin.php:1514 google-sitemap-plugin.php:1528
|
64 |
msgid "Status"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: google-sitemap-plugin.php:1382 google-sitemap-plugin.php:1414
|
68 |
+
#: google-sitemap-plugin.php:1491
|
69 |
msgid "Not added"
|
70 |
msgstr ""
|
71 |
|
72 |
+
#: google-sitemap-plugin.php:1386 google-sitemap-plugin.php:1417
|
73 |
+
#: google-sitemap-plugin.php:1515 google-sitemap-plugin.php:1626
|
74 |
msgid "Added"
|
75 |
msgstr ""
|
76 |
|
77 |
+
#: google-sitemap-plugin.php:1388 google-sitemap-plugin.php:1571
|
78 |
+
#: google-sitemap-plugin.php:1583 google-sitemap-plugin.php:1597
|
79 |
msgid "Verification Status"
|
80 |
msgstr ""
|
81 |
|
82 |
+
#: google-sitemap-plugin.php:1390 google-sitemap-plugin.php:1584
|
83 |
msgid "Verified"
|
84 |
msgstr ""
|
85 |
|
86 |
+
#: google-sitemap-plugin.php:1392
|
87 |
msgid "Not verified"
|
88 |
msgstr ""
|
89 |
|
90 |
+
#: google-sitemap-plugin.php:1401 google-sitemap-plugin.php:1605
|
91 |
msgid "Sitemap Status"
|
92 |
msgstr ""
|
93 |
|
94 |
+
#: google-sitemap-plugin.php:1419
|
95 |
msgid "Added with errors."
|
96 |
msgstr ""
|
97 |
|
98 |
+
#: google-sitemap-plugin.php:1419
|
99 |
msgid "View errors in Google Webmaster Tools"
|
100 |
msgstr ""
|
101 |
|
102 |
+
#: google-sitemap-plugin.php:1422
|
103 |
msgid "Sitemap URL"
|
104 |
msgstr "Sitemap URL"
|
105 |
|
106 |
+
#: google-sitemap-plugin.php:1425 google-sitemap-plugin.php:1441
|
107 |
+
#: google-sitemap-plugin.php:1493 google-sitemap-plugin.php:1530
|
108 |
+
#: google-sitemap-plugin.php:1568 google-sitemap-plugin.php:1599
|
109 |
+
#: google-sitemap-plugin.php:1639 google-sitemap-plugin.php:1659
|
110 |
+
#: includes/class-gglstmp-settings.php:488
|
111 |
msgid "Error"
|
112 |
msgstr ""
|
113 |
|
114 |
+
#: google-sitemap-plugin.php:1425
|
115 |
msgid "Please check the sitemap file manually."
|
116 |
msgstr ""
|
117 |
|
118 |
+
#: google-sitemap-plugin.php:1425 google-sitemap-plugin.php:1443
|
119 |
+
#: google-sitemap-plugin.php:1533 google-sitemap-plugin.php:1572
|
120 |
+
#: google-sitemap-plugin.php:1602 google-sitemap-plugin.php:1642
|
121 |
+
#: includes/class-gglstmp-settings.php:282 includes/pro_banners.php:47
|
122 |
msgid "Learn More"
|
123 |
msgstr "Aprende más"
|
124 |
|
125 |
+
#: google-sitemap-plugin.php:1430 google-sitemap-plugin.php:1481
|
126 |
+
#: google-sitemap-plugin.php:1518 google-sitemap-plugin.php:1556
|
127 |
+
#: google-sitemap-plugin.php:1587 google-sitemap-plugin.php:1629
|
128 |
msgid "Unexpected error"
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: google-sitemap-plugin.php:1443 google-sitemap-plugin.php:1533
|
132 |
+
#: google-sitemap-plugin.php:1602
|
133 |
msgid "Manual verification required."
|
134 |
msgstr ""
|
135 |
|
136 |
+
#: google-sitemap-plugin.php:1475
|
137 |
msgid "Deleted"
|
138 |
msgstr ""
|
139 |
|
140 |
+
#: google-sitemap-plugin.php:1548 google-sitemap-plugin.php:1551
|
141 |
+
#: google-sitemap-plugin.php:1567
|
142 |
msgid "Verification Code"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: google-sitemap-plugin.php:1549
|
146 |
msgid "Received and added to the site"
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: google-sitemap-plugin.php:1552
|
150 |
msgid "Received, but has not been added to the site"
|
151 |
msgstr ""
|
152 |
|
153 |
+
#: google-sitemap-plugin.php:1642
|
154 |
msgid "Please add the sitemap file manually."
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: google-sitemap-plugin.php:1647
|
158 |
msgid "Error 404"
|
159 |
msgstr ""
|
160 |
|
161 |
+
#: google-sitemap-plugin.php:1649
|
162 |
#, php-format
|
163 |
msgid "The sitemap file %s not found."
|
164 |
msgstr ""
|
165 |
|
166 |
+
#: google-sitemap-plugin.php:1659
|
167 |
msgid "The sitemap file not found."
|
168 |
msgstr ""
|
169 |
|
170 |
+
#: google-sitemap-plugin.php:1738
|
171 |
msgid "FAQ"
|
172 |
msgstr "FAQ"
|
173 |
|
174 |
+
#: google-sitemap-plugin.php:1739
|
175 |
msgid "Support"
|
176 |
msgstr "Soporte"
|
177 |
|
178 |
+
#: google-sitemap-plugin.php:1911 google-sitemap-plugin.php:1920
|
179 |
+
msgid "Google-Sitemap-plugin Canonical Settings"
|
180 |
+
msgstr ""
|
181 |
+
|
182 |
+
#: google-sitemap-plugin.php:1946
|
183 |
+
msgid "Canonical Url:"
|
184 |
msgstr ""
|
185 |
|
186 |
#: includes/class-gglstmp-settings.php:29
|
187 |
+
msgid "Structure"
|
188 |
msgstr ""
|
189 |
|
190 |
#: includes/class-gglstmp-settings.php:30
|
191 |
+
msgid "Misc"
|
192 |
+
msgstr ""
|
193 |
+
|
194 |
+
#: includes/class-gglstmp-settings.php:31
|
195 |
msgid "License Key"
|
196 |
msgstr ""
|
197 |
|
198 |
+
#: includes/class-gglstmp-settings.php:170
|
199 |
msgid "Settings saved."
|
200 |
msgstr ""
|
201 |
|
202 |
+
#: includes/class-gglstmp-settings.php:199
|
203 |
#, fuzzy, php-format
|
204 |
msgctxt "%robots.txt file link%"
|
205 |
msgid "Enable to add a sitemap file path to the %s file."
|
206 |
msgstr "añadir sitemap archivo de la ruta en"
|
207 |
|
208 |
+
#: includes/class-gglstmp-settings.php:204
|
209 |
#, php-format
|
210 |
msgctxt "%reading settings page link%"
|
211 |
msgid "\"Search Engine Visibility\" option have to be unmarked on the %s."
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: includes/class-gglstmp-settings.php:208
|
215 |
#, fuzzy
|
216 |
msgctxt "...on the reading settings page."
|
217 |
msgid "Reading Settings page"
|
218 |
msgstr "страницу настроек"
|
219 |
|
220 |
+
#: includes/class-gglstmp-settings.php:212
|
221 |
msgid ""
|
222 |
"Also, please add the following code to the beginning of your \".htaccess\" "
|
223 |
"file:"
|
224 |
msgstr ""
|
225 |
|
226 |
+
#: includes/class-gglstmp-settings.php:225
|
227 |
+
msgid "Media Sitemap"
|
228 |
+
msgstr ""
|
229 |
+
|
230 |
+
#: includes/class-gglstmp-settings.php:230
|
231 |
+
msgid "Enable to add a media sitemap (video & image)"
|
232 |
+
msgstr ""
|
233 |
+
|
234 |
+
#: includes/class-gglstmp-settings.php:235
|
235 |
msgid "This option will be applied to all websites in the network."
|
236 |
msgstr ""
|
237 |
|
238 |
+
#: includes/class-gglstmp-settings.php:238
|
239 |
+
#: includes/class-gglstmp-settings.php:347
|
240 |
msgid "Activate"
|
241 |
msgstr ""
|
242 |
|
243 |
+
#: includes/class-gglstmp-settings.php:241
|
244 |
+
#: includes/class-gglstmp-settings.php:351
|
245 |
msgid "Install Now"
|
246 |
msgstr ""
|
247 |
|
248 |
+
#: includes/class-gglstmp-settings.php:247
|
249 |
#, php-format
|
250 |
msgid "%s Plugin"
|
251 |
msgstr ""
|
252 |
|
253 |
+
#: includes/class-gglstmp-settings.php:252
|
254 |
#, php-format
|
255 |
msgid "Enable to allow XML files access using %s plugin."
|
256 |
msgstr ""
|
257 |
|
258 |
+
#: includes/class-gglstmp-settings.php:253
|
259 |
msgid "The following string will be added to your .htaccess file"
|
260 |
msgstr "La siguiente cuerda se añadirá al su archivo .htaccess"
|
261 |
|
262 |
+
#: includes/class-gglstmp-settings.php:263
|
263 |
+
#: includes/class-gglstmp-settings.php:413 includes/pro_banners.php:21
|
264 |
msgid "Close"
|
265 |
msgstr "Cerrar"
|
266 |
|
267 |
+
#: includes/class-gglstmp-settings.php:274
|
268 |
msgid "URLs Limit"
|
269 |
msgstr ""
|
270 |
|
271 |
+
#: includes/class-gglstmp-settings.php:279
|
272 |
msgid ""
|
273 |
"A sitemap file can't contain more than 50,000 URLs and must be no larger "
|
274 |
"than 50 MB uncompressed."
|
275 |
msgstr ""
|
276 |
|
277 |
+
#: includes/class-gglstmp-settings.php:283
|
278 |
msgid "Decrease the limit if your sitemap exceeds file size limit."
|
279 |
msgstr ""
|
280 |
|
281 |
+
#: includes/class-gglstmp-settings.php:284
|
282 |
msgid ""
|
283 |
"When the limit is reached, the sitemap will be splitted into multiple files."
|
284 |
msgstr ""
|
285 |
|
286 |
+
#: includes/class-gglstmp-settings.php:289
|
287 |
msgid "Google Webmaster Tools"
|
288 |
msgstr ""
|
289 |
|
290 |
+
#: includes/class-gglstmp-settings.php:292
|
291 |
msgid ""
|
292 |
"This hosting does not support сURL, so you cannot add a sitemap file "
|
293 |
"automatically."
|
294 |
msgstr ""
|
295 |
|
296 |
+
#: includes/class-gglstmp-settings.php:296
|
297 |
msgid "Logout from Google Webmaster Tools"
|
298 |
msgstr ""
|
299 |
|
300 |
+
#: includes/class-gglstmp-settings.php:300
|
301 |
msgid "Manage Website with Google Webmaster Tools"
|
302 |
msgstr ""
|
303 |
|
304 |
+
#: includes/class-gglstmp-settings.php:303
|
305 |
msgid "Add"
|
306 |
msgstr ""
|
307 |
|
308 |
+
#: includes/class-gglstmp-settings.php:305 includes/pro_banners.php:138
|
309 |
msgid "Delete"
|
310 |
msgstr ""
|
311 |
|
312 |
+
#: includes/class-gglstmp-settings.php:307
|
313 |
msgid "Get Info"
|
314 |
msgstr ""
|
315 |
|
316 |
+
#: includes/class-gglstmp-settings.php:309
|
317 |
msgid ""
|
318 |
"Add, delete or get info about this website using your Google Webmaster Tools "
|
319 |
"account."
|
320 |
msgstr ""
|
321 |
|
322 |
+
#: includes/class-gglstmp-settings.php:319
|
323 |
msgid "Get Authorization Code"
|
324 |
msgstr "Obtener el código de autorización"
|
325 |
|
326 |
+
#: includes/class-gglstmp-settings.php:326
|
327 |
msgid "Authorize"
|
328 |
msgstr "Autorizar"
|
329 |
|
330 |
+
#: includes/class-gglstmp-settings.php:329
|
331 |
msgid "Invalid authorization code. Please try again."
|
332 |
msgstr ""
|
333 |
|
334 |
+
#: includes/class-gglstmp-settings.php:334
|
335 |
msgid "You can also add your sitemap to Google Webmaster Tools manually."
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: includes/class-gglstmp-settings.php:336
|
339 |
msgid "Read the instruction"
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: includes/class-gglstmp-settings.php:341
|
343 |
msgid "Alternate Language Pages"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: includes/class-gglstmp-settings.php:355
|
347 |
msgid "Enable to add alternate language pages using Multilanguage plugin."
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: includes/class-gglstmp-settings.php:369
|
351 |
msgid "Post category"
|
352 |
msgstr ""
|
353 |
|
354 |
+
#: includes/class-gglstmp-settings.php:370
|
355 |
msgid "Post tag"
|
356 |
msgstr ""
|
357 |
|
358 |
+
#: includes/class-gglstmp-settings.php:372
|
359 |
msgid "Sitemap Structure"
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: includes/class-gglstmp-settings.php:377
|
363 |
msgid "Post Types"
|
364 |
msgstr ""
|
365 |
|
366 |
+
#: includes/class-gglstmp-settings.php:389
|
367 |
msgid "Enable to add post type links to the sitemap."
|
368 |
msgstr ""
|
369 |
|
370 |
+
#: includes/class-gglstmp-settings.php:393
|
371 |
msgid "Taxonomies"
|
372 |
msgstr ""
|
373 |
|
374 |
+
#: includes/class-gglstmp-settings.php:404
|
375 |
msgid "Enable to taxonomy links to the sitemap."
|
376 |
msgstr ""
|
377 |
|
378 |
+
#: includes/class-gglstmp-settings.php:462
|
379 |
#, php-format
|
380 |
msgid "%s is in the site root directory."
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: includes/class-gglstmp-settings.php:463
|
384 |
msgid "The Sitemap file"
|
385 |
msgstr "El archivo de Sitemap"
|
386 |
|
387 |
+
#: includes/class-gglstmp-settings.php:489
|
388 |
#, php-format
|
389 |
msgid ""
|
390 |
"Can't access XML files. Try to add the following rule %s to your %s file "
|
392 |
"following line %s and paste the code just after it."
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: includes/class-gglstmp-settings.php:505
|
396 |
msgid "Note"
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: includes/class-gglstmp-settings.php:506
|
400 |
msgid ""
|
401 |
"Another plugin is providing Google Client functionality and may interrupt "
|
402 |
"proper plugin work."
|
languages/google-sitemap-plugin-ru_RU.mo
CHANGED
Binary file
|
languages/google-sitemap-plugin-ru_RU.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Google Sitemap\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2018-
|
6 |
-
"PO-Revision-Date: 2018-
|
7 |
"Last-Translator: bestwebsoft.com <plugins@bestwebsoft.com>\n"
|
8 |
"Language-Team: BestWebSoft <plugin@bestwebsoft.com>\n"
|
9 |
"Language: ru_RU\n"
|
@@ -18,198 +18,206 @@ msgstr ""
|
|
18 |
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
|
21 |
-
#: google-sitemap-plugin.php:
|
22 |
-
#: includes/class-gglstmp-settings.php:
|
23 |
msgid "Google Sitemap Settings"
|
24 |
msgstr "Настройки Google Sitemap"
|
25 |
|
26 |
-
#: google-sitemap-plugin.php:
|
27 |
-
#: google-sitemap-plugin.php:
|
28 |
-
#: includes/class-gglstmp-settings.php:
|
29 |
msgid "Settings"
|
30 |
msgstr "Настройки"
|
31 |
|
32 |
-
#: google-sitemap-plugin.php:
|
33 |
-
#: google-sitemap-plugin.php:
|
34 |
msgid "Custom Links"
|
35 |
msgstr "Пользовательские ссылки"
|
36 |
|
37 |
-
#: google-sitemap-plugin.php:
|
38 |
msgid "Upgrade to Pro"
|
39 |
msgstr "Обновить до Pro"
|
40 |
|
41 |
-
#: google-sitemap-plugin.php:
|
42 |
msgid "Post categories"
|
43 |
msgstr "Рубрики записей"
|
44 |
|
45 |
-
#: google-sitemap-plugin.php:
|
46 |
msgid "Post tags"
|
47 |
msgstr "Метки записей"
|
48 |
|
49 |
-
#: google-sitemap-plugin.php:
|
50 |
msgid "Please enable JavaScript in your browser."
|
51 |
msgstr "Пожалуйста, включите поддержку JavaScript в вашем браузере."
|
52 |
|
53 |
-
#: google-sitemap-plugin.php:
|
54 |
msgid "Add New"
|
55 |
msgstr "Добавить ссылку"
|
56 |
|
57 |
-
#: google-sitemap-plugin.php:
|
58 |
-
#: google-sitemap-plugin.php:
|
59 |
msgid "Website"
|
60 |
msgstr "Сайт"
|
61 |
|
62 |
-
#: google-sitemap-plugin.php:
|
63 |
-
#: google-sitemap-plugin.php:
|
64 |
-
#: google-sitemap-plugin.php:
|
65 |
msgid "Status"
|
66 |
msgstr "Статус"
|
67 |
|
68 |
-
#: google-sitemap-plugin.php:
|
69 |
-
#: google-sitemap-plugin.php:
|
70 |
msgid "Not added"
|
71 |
msgstr "Не добавлено"
|
72 |
|
73 |
-
#: google-sitemap-plugin.php:
|
74 |
-
#: google-sitemap-plugin.php:
|
75 |
msgid "Added"
|
76 |
msgstr "Добавлено"
|
77 |
|
78 |
-
#: google-sitemap-plugin.php:
|
79 |
-
#: google-sitemap-plugin.php:
|
80 |
msgid "Verification Status"
|
81 |
msgstr "Статус проверки"
|
82 |
|
83 |
-
#: google-sitemap-plugin.php:
|
84 |
msgid "Verified"
|
85 |
msgstr "Проверено"
|
86 |
|
87 |
-
#: google-sitemap-plugin.php:
|
88 |
msgid "Not verified"
|
89 |
msgstr "Не проверено"
|
90 |
|
91 |
-
#: google-sitemap-plugin.php:
|
92 |
msgid "Sitemap Status"
|
93 |
msgstr "Статус Sitemap"
|
94 |
|
95 |
-
#: google-sitemap-plugin.php:
|
96 |
msgid "Added with errors."
|
97 |
msgstr "Добавлено с ошибками."
|
98 |
|
99 |
-
#: google-sitemap-plugin.php:
|
100 |
msgid "View errors in Google Webmaster Tools"
|
101 |
msgstr "Просмотреть ошибки в Google Webmaster Tools"
|
102 |
|
103 |
-
#: google-sitemap-plugin.php:
|
104 |
msgid "Sitemap URL"
|
105 |
msgstr "Sitemap URL"
|
106 |
|
107 |
-
#: google-sitemap-plugin.php:
|
108 |
-
#: google-sitemap-plugin.php:
|
109 |
-
#: google-sitemap-plugin.php:
|
110 |
-
#: google-sitemap-plugin.php:
|
111 |
-
#: includes/class-gglstmp-settings.php:
|
112 |
msgid "Error"
|
113 |
msgstr "Ошибка"
|
114 |
|
115 |
-
#: google-sitemap-plugin.php:
|
116 |
msgid "Please check the sitemap file manually."
|
117 |
msgstr "Пожалуйста, проверьте файл Sitemap вручную."
|
118 |
|
119 |
-
#: google-sitemap-plugin.php:
|
120 |
-
#: google-sitemap-plugin.php:
|
121 |
-
#: google-sitemap-plugin.php:
|
122 |
-
#: includes/class-gglstmp-settings.php:
|
123 |
msgid "Learn More"
|
124 |
msgstr "Подробнее"
|
125 |
|
126 |
-
#: google-sitemap-plugin.php:
|
127 |
-
#: google-sitemap-plugin.php:
|
128 |
-
#: google-sitemap-plugin.php:
|
129 |
msgid "Unexpected error"
|
130 |
msgstr "Неожиданная ошибка"
|
131 |
|
132 |
-
#: google-sitemap-plugin.php:
|
133 |
-
#: google-sitemap-plugin.php:
|
134 |
msgid "Manual verification required."
|
135 |
msgstr "Требуется ручная проверка."
|
136 |
|
137 |
-
#: google-sitemap-plugin.php:
|
138 |
msgid "Deleted"
|
139 |
msgstr "Удален"
|
140 |
|
141 |
-
#: google-sitemap-plugin.php:
|
142 |
-
#: google-sitemap-plugin.php:
|
143 |
msgid "Verification Code"
|
144 |
msgstr "Код подтверждения"
|
145 |
|
146 |
-
#: google-sitemap-plugin.php:
|
147 |
msgid "Received and added to the site"
|
148 |
msgstr "Получен и добавлен на сайт"
|
149 |
|
150 |
-
#: google-sitemap-plugin.php:
|
151 |
msgid "Received, but has not been added to the site"
|
152 |
msgstr "Получен, но не добавлен на сайт"
|
153 |
|
154 |
-
#: google-sitemap-plugin.php:
|
155 |
msgid "Please add the sitemap file manually."
|
156 |
msgstr "Пожалуйста, добавьте файл Sitemap вручную."
|
157 |
|
158 |
-
#: google-sitemap-plugin.php:
|
159 |
msgid "Error 404"
|
160 |
msgstr "Ошибка 404"
|
161 |
|
162 |
-
#: google-sitemap-plugin.php:
|
163 |
#, php-format
|
164 |
msgid "The sitemap file %s not found."
|
165 |
msgstr "Файл sitemap %s не найден."
|
166 |
|
167 |
-
#: google-sitemap-plugin.php:
|
168 |
msgid "The sitemap file not found."
|
169 |
msgstr "Файл sitemap не найден."
|
170 |
|
171 |
-
#: google-sitemap-plugin.php:
|
172 |
msgid "FAQ"
|
173 |
msgstr "FAQ"
|
174 |
|
175 |
-
#: google-sitemap-plugin.php:
|
176 |
msgid "Support"
|
177 |
msgstr "Тех.поддержка"
|
178 |
|
179 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
msgid "Structure"
|
181 |
msgstr "Структура"
|
182 |
|
183 |
-
#: includes/class-gglstmp-settings.php:
|
184 |
msgid "Misc"
|
185 |
msgstr "Разное"
|
186 |
|
187 |
-
#: includes/class-gglstmp-settings.php:
|
188 |
msgid "License Key"
|
189 |
msgstr "Лицензионный ключ"
|
190 |
|
191 |
-
#: includes/class-gglstmp-settings.php:
|
192 |
msgid "Settings saved."
|
193 |
msgstr "Настройки сохранены."
|
194 |
|
195 |
-
#: includes/class-gglstmp-settings.php:
|
196 |
#, php-format
|
197 |
msgctxt "%robots.txt file link%"
|
198 |
msgid "Enable to add a sitemap file path to the %s file."
|
199 |
msgstr "Включите, чтобы добавить путь файла Sitemap в файл %s."
|
200 |
|
201 |
-
#: includes/class-gglstmp-settings.php:
|
202 |
#, php-format
|
203 |
msgctxt "%reading settings page link%"
|
204 |
msgid "\"Search Engine Visibility\" option have to be unmarked on the %s."
|
205 |
msgstr "Опция \"Видимость для поисковых систем\" дожна быть не отмечена на %s."
|
206 |
|
207 |
-
#: includes/class-gglstmp-settings.php:
|
208 |
msgctxt "...on the reading settings page."
|
209 |
msgid "Reading Settings page"
|
210 |
msgstr "странице настроек чтения"
|
211 |
|
212 |
-
#: includes/class-gglstmp-settings.php:
|
213 |
msgid ""
|
214 |
"Also, please add the following code to the beginning of your \".htaccess\" "
|
215 |
"file:"
|
@@ -217,44 +225,52 @@ msgstr ""
|
|
217 |
"Так же, пожалуйста, добавьте следующий код в начало вашего файла \".htaccess"
|
218 |
"\":"
|
219 |
|
220 |
-
#: includes/class-gglstmp-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
msgid "This option will be applied to all websites in the network."
|
222 |
msgstr "Эта опция будет применена ко всем сайтам в сети."
|
223 |
|
224 |
-
#: includes/class-gglstmp-settings.php:
|
225 |
-
#: includes/class-gglstmp-settings.php:
|
226 |
msgid "Activate"
|
227 |
msgstr "Активировать"
|
228 |
|
229 |
-
#: includes/class-gglstmp-settings.php:
|
230 |
-
#: includes/class-gglstmp-settings.php:
|
231 |
msgid "Install Now"
|
232 |
msgstr "Установить Сейчас"
|
233 |
|
234 |
-
#: includes/class-gglstmp-settings.php:
|
235 |
#, php-format
|
236 |
msgid "%s Plugin"
|
237 |
msgstr "%s плагин"
|
238 |
|
239 |
-
#: includes/class-gglstmp-settings.php:
|
240 |
#, php-format
|
241 |
msgid "Enable to allow XML files access using %s plugin."
|
242 |
msgstr "Включите, чтобы разрешить доступ к файлам XML с помощью плагина %s."
|
243 |
|
244 |
-
#: includes/class-gglstmp-settings.php:
|
245 |
msgid "The following string will be added to your .htaccess file"
|
246 |
msgstr "В ваш .htaccess файл будет добавлена следующая строка"
|
247 |
|
248 |
-
#: includes/class-gglstmp-settings.php:
|
249 |
-
#: includes/class-gglstmp-settings.php:
|
250 |
msgid "Close"
|
251 |
msgstr "Закрыть"
|
252 |
|
253 |
-
#: includes/class-gglstmp-settings.php:
|
254 |
msgid "URLs Limit"
|
255 |
msgstr "Лимит ссылок"
|
256 |
|
257 |
-
#: includes/class-gglstmp-settings.php:
|
258 |
msgid ""
|
259 |
"A sitemap file can't contain more than 50,000 URLs and must be no larger "
|
260 |
"than 50 MB uncompressed."
|
@@ -262,22 +278,22 @@ msgstr ""
|
|
262 |
"Файл sitemap не может содержать более 50000 ссылок и не должен превышать "
|
263 |
"50MB в несжатом состоянии."
|
264 |
|
265 |
-
#: includes/class-gglstmp-settings.php:
|
266 |
msgid "Decrease the limit if your sitemap exceeds file size limit."
|
267 |
msgstr ""
|
268 |
"Уменьшите значение если размер файла sitemap превышает допустимое значение."
|
269 |
|
270 |
-
#: includes/class-gglstmp-settings.php:
|
271 |
msgid ""
|
272 |
"When the limit is reached, the sitemap will be splitted into multiple files."
|
273 |
msgstr ""
|
274 |
"Файл sitemap будет разбит на несколько частей при достижении лимита ссылок."
|
275 |
|
276 |
-
#: includes/class-gglstmp-settings.php:
|
277 |
msgid "Google Webmaster Tools"
|
278 |
msgstr "Google Webmaster Tools"
|
279 |
|
280 |
-
#: includes/class-gglstmp-settings.php:
|
281 |
msgid ""
|
282 |
"This hosting does not support сURL, so you cannot add a sitemap file "
|
283 |
"automatically."
|
@@ -285,27 +301,27 @@ msgstr ""
|
|
285 |
"Ваш хостинг не поддерживает сURL, поэтому вы не можете добавить sitemap "
|
286 |
"автоматически."
|
287 |
|
288 |
-
#: includes/class-gglstmp-settings.php:
|
289 |
msgid "Logout from Google Webmaster Tools"
|
290 |
msgstr "Выйти из Google Webmaster Tools"
|
291 |
|
292 |
-
#: includes/class-gglstmp-settings.php:
|
293 |
msgid "Manage Website with Google Webmaster Tools"
|
294 |
msgstr "Управляйте веб-сайтом с помощью Google Webmaster Tools"
|
295 |
|
296 |
-
#: includes/class-gglstmp-settings.php:
|
297 |
msgid "Add"
|
298 |
msgstr "Добавить"
|
299 |
|
300 |
-
#: includes/class-gglstmp-settings.php:
|
301 |
msgid "Delete"
|
302 |
msgstr "Удалить"
|
303 |
|
304 |
-
#: includes/class-gglstmp-settings.php:
|
305 |
msgid "Get Info"
|
306 |
msgstr "Получить информацию"
|
307 |
|
308 |
-
#: includes/class-gglstmp-settings.php:
|
309 |
msgid ""
|
310 |
"Add, delete or get info about this website using your Google Webmaster Tools "
|
311 |
"account."
|
@@ -313,74 +329,74 @@ msgstr ""
|
|
313 |
"Добавьте, удалите или получите информацию об этом сайте с помощью своей "
|
314 |
"учетной записи Google Webmaster Tools."
|
315 |
|
316 |
-
#: includes/class-gglstmp-settings.php:
|
317 |
msgid "Get Authorization Code"
|
318 |
msgstr "Получить код авторизации"
|
319 |
|
320 |
-
#: includes/class-gglstmp-settings.php:
|
321 |
msgid "Authorize"
|
322 |
msgstr "Авторизироваться"
|
323 |
|
324 |
-
#: includes/class-gglstmp-settings.php:
|
325 |
msgid "Invalid authorization code. Please try again."
|
326 |
msgstr "Недействительный код авторизации. Пожалуйста, попробуйте еще раз."
|
327 |
|
328 |
-
#: includes/class-gglstmp-settings.php:
|
329 |
msgid "You can also add your sitemap to Google Webmaster Tools manually."
|
330 |
msgstr "Вы также можете вручную добавить sitemap в Google Webmaster Tools."
|
331 |
|
332 |
-
#: includes/class-gglstmp-settings.php:
|
333 |
msgid "Read the instruction"
|
334 |
msgstr "Читать инструкцию"
|
335 |
|
336 |
-
#: includes/class-gglstmp-settings.php:
|
337 |
msgid "Alternate Language Pages"
|
338 |
msgstr "Страницы альтернативных языков"
|
339 |
|
340 |
-
#: includes/class-gglstmp-settings.php:
|
341 |
msgid "Enable to add alternate language pages using Multilanguage plugin."
|
342 |
msgstr ""
|
343 |
"Включите, чтобы добавить страницы альтернативных языков используя плагин "
|
344 |
"Multilanguage."
|
345 |
|
346 |
-
#: includes/class-gglstmp-settings.php:
|
347 |
msgid "Post category"
|
348 |
msgstr "Рубрика записей"
|
349 |
|
350 |
-
#: includes/class-gglstmp-settings.php:
|
351 |
msgid "Post tag"
|
352 |
msgstr "Метка записей"
|
353 |
|
354 |
-
#: includes/class-gglstmp-settings.php:
|
355 |
msgid "Sitemap Structure"
|
356 |
msgstr "Структура Sitemap"
|
357 |
|
358 |
-
#: includes/class-gglstmp-settings.php:
|
359 |
msgid "Post Types"
|
360 |
msgstr "Типы записей"
|
361 |
|
362 |
-
#: includes/class-gglstmp-settings.php:
|
363 |
msgid "Enable to add post type links to the sitemap."
|
364 |
msgstr "Включите, чтобы добавить ссылки типов записей в sitemap."
|
365 |
|
366 |
-
#: includes/class-gglstmp-settings.php:
|
367 |
msgid "Taxonomies"
|
368 |
msgstr "Таксономии"
|
369 |
|
370 |
-
#: includes/class-gglstmp-settings.php:
|
371 |
msgid "Enable to taxonomy links to the sitemap."
|
372 |
msgstr "Включите, чтобы добавить ссылки таксономий в sitemap."
|
373 |
|
374 |
-
#: includes/class-gglstmp-settings.php:
|
375 |
#, php-format
|
376 |
msgid "%s is in the site root directory."
|
377 |
msgstr "%s находится в корневом каталоге сайта."
|
378 |
|
379 |
-
#: includes/class-gglstmp-settings.php:
|
380 |
msgid "The Sitemap file"
|
381 |
msgstr "Файл Sitemap"
|
382 |
|
383 |
-
#: includes/class-gglstmp-settings.php:
|
384 |
#, php-format
|
385 |
msgid ""
|
386 |
"Can't access XML files. Try to add the following rule %s to your %s file "
|
@@ -392,11 +408,11 @@ msgstr ""
|
|
392 |
"корневом каталоге сайта. Найдите следующую строку %s и вставь этот код после "
|
393 |
"нее."
|
394 |
|
395 |
-
#: includes/class-gglstmp-settings.php:
|
396 |
msgid "Note"
|
397 |
msgstr "Примечание"
|
398 |
|
399 |
-
#: includes/class-gglstmp-settings.php:
|
400 |
msgid ""
|
401 |
"Another plugin is providing Google Client functionality and may interrupt "
|
402 |
"proper plugin work."
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Google Sitemap\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-12-25 16:52+0200\n"
|
6 |
+
"PO-Revision-Date: 2018-12-25 16:52+0200\n"
|
7 |
"Last-Translator: bestwebsoft.com <plugins@bestwebsoft.com>\n"
|
8 |
"Language-Team: BestWebSoft <plugin@bestwebsoft.com>\n"
|
9 |
"Language: ru_RU\n"
|
18 |
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
|
21 |
+
#: google-sitemap-plugin.php:37 google-sitemap-plugin.php:47
|
22 |
+
#: includes/class-gglstmp-settings.php:180
|
23 |
msgid "Google Sitemap Settings"
|
24 |
msgstr "Настройки Google Sitemap"
|
25 |
|
26 |
+
#: google-sitemap-plugin.php:48 google-sitemap-plugin.php:1316
|
27 |
+
#: google-sitemap-plugin.php:1722 google-sitemap-plugin.php:1736
|
28 |
+
#: includes/class-gglstmp-settings.php:28
|
29 |
msgid "Settings"
|
30 |
msgstr "Настройки"
|
31 |
|
32 |
+
#: google-sitemap-plugin.php:56 google-sitemap-plugin.php:57
|
33 |
+
#: google-sitemap-plugin.php:1325
|
34 |
msgid "Custom Links"
|
35 |
msgstr "Пользовательские ссылки"
|
36 |
|
37 |
+
#: google-sitemap-plugin.php:75 includes/pro_banners.php:27
|
38 |
msgid "Upgrade to Pro"
|
39 |
msgstr "Обновить до Pro"
|
40 |
|
41 |
+
#: google-sitemap-plugin.php:393
|
42 |
msgid "Post categories"
|
43 |
msgstr "Рубрики записей"
|
44 |
|
45 |
+
#: google-sitemap-plugin.php:394
|
46 |
msgid "Post tags"
|
47 |
msgstr "Метки записей"
|
48 |
|
49 |
+
#: google-sitemap-plugin.php:1319
|
50 |
msgid "Please enable JavaScript in your browser."
|
51 |
msgstr "Пожалуйста, включите поддержку JavaScript в вашем браузере."
|
52 |
|
53 |
+
#: google-sitemap-plugin.php:1327
|
54 |
msgid "Add New"
|
55 |
msgstr "Добавить ссылку"
|
56 |
|
57 |
+
#: google-sitemap-plugin.php:1370 google-sitemap-plugin.php:1457
|
58 |
+
#: google-sitemap-plugin.php:1510
|
59 |
msgid "Website"
|
60 |
msgstr "Сайт"
|
61 |
|
62 |
+
#: google-sitemap-plugin.php:1381 google-sitemap-plugin.php:1385
|
63 |
+
#: google-sitemap-plugin.php:1474 google-sitemap-plugin.php:1490
|
64 |
+
#: google-sitemap-plugin.php:1514 google-sitemap-plugin.php:1528
|
65 |
msgid "Status"
|
66 |
msgstr "Статус"
|
67 |
|
68 |
+
#: google-sitemap-plugin.php:1382 google-sitemap-plugin.php:1414
|
69 |
+
#: google-sitemap-plugin.php:1491
|
70 |
msgid "Not added"
|
71 |
msgstr "Не добавлено"
|
72 |
|
73 |
+
#: google-sitemap-plugin.php:1386 google-sitemap-plugin.php:1417
|
74 |
+
#: google-sitemap-plugin.php:1515 google-sitemap-plugin.php:1626
|
75 |
msgid "Added"
|
76 |
msgstr "Добавлено"
|
77 |
|
78 |
+
#: google-sitemap-plugin.php:1388 google-sitemap-plugin.php:1571
|
79 |
+
#: google-sitemap-plugin.php:1583 google-sitemap-plugin.php:1597
|
80 |
msgid "Verification Status"
|
81 |
msgstr "Статус проверки"
|
82 |
|
83 |
+
#: google-sitemap-plugin.php:1390 google-sitemap-plugin.php:1584
|
84 |
msgid "Verified"
|
85 |
msgstr "Проверено"
|
86 |
|
87 |
+
#: google-sitemap-plugin.php:1392
|
88 |
msgid "Not verified"
|
89 |
msgstr "Не проверено"
|
90 |
|
91 |
+
#: google-sitemap-plugin.php:1401 google-sitemap-plugin.php:1605
|
92 |
msgid "Sitemap Status"
|
93 |
msgstr "Статус Sitemap"
|
94 |
|
95 |
+
#: google-sitemap-plugin.php:1419
|
96 |
msgid "Added with errors."
|
97 |
msgstr "Добавлено с ошибками."
|
98 |
|
99 |
+
#: google-sitemap-plugin.php:1419
|
100 |
msgid "View errors in Google Webmaster Tools"
|
101 |
msgstr "Просмотреть ошибки в Google Webmaster Tools"
|
102 |
|
103 |
+
#: google-sitemap-plugin.php:1422
|
104 |
msgid "Sitemap URL"
|
105 |
msgstr "Sitemap URL"
|
106 |
|
107 |
+
#: google-sitemap-plugin.php:1425 google-sitemap-plugin.php:1441
|
108 |
+
#: google-sitemap-plugin.php:1493 google-sitemap-plugin.php:1530
|
109 |
+
#: google-sitemap-plugin.php:1568 google-sitemap-plugin.php:1599
|
110 |
+
#: google-sitemap-plugin.php:1639 google-sitemap-plugin.php:1659
|
111 |
+
#: includes/class-gglstmp-settings.php:488
|
112 |
msgid "Error"
|
113 |
msgstr "Ошибка"
|
114 |
|
115 |
+
#: google-sitemap-plugin.php:1425
|
116 |
msgid "Please check the sitemap file manually."
|
117 |
msgstr "Пожалуйста, проверьте файл Sitemap вручную."
|
118 |
|
119 |
+
#: google-sitemap-plugin.php:1425 google-sitemap-plugin.php:1443
|
120 |
+
#: google-sitemap-plugin.php:1533 google-sitemap-plugin.php:1572
|
121 |
+
#: google-sitemap-plugin.php:1602 google-sitemap-plugin.php:1642
|
122 |
+
#: includes/class-gglstmp-settings.php:282 includes/pro_banners.php:47
|
123 |
msgid "Learn More"
|
124 |
msgstr "Подробнее"
|
125 |
|
126 |
+
#: google-sitemap-plugin.php:1430 google-sitemap-plugin.php:1481
|
127 |
+
#: google-sitemap-plugin.php:1518 google-sitemap-plugin.php:1556
|
128 |
+
#: google-sitemap-plugin.php:1587 google-sitemap-plugin.php:1629
|
129 |
msgid "Unexpected error"
|
130 |
msgstr "Неожиданная ошибка"
|
131 |
|
132 |
+
#: google-sitemap-plugin.php:1443 google-sitemap-plugin.php:1533
|
133 |
+
#: google-sitemap-plugin.php:1602
|
134 |
msgid "Manual verification required."
|
135 |
msgstr "Требуется ручная проверка."
|
136 |
|
137 |
+
#: google-sitemap-plugin.php:1475
|
138 |
msgid "Deleted"
|
139 |
msgstr "Удален"
|
140 |
|
141 |
+
#: google-sitemap-plugin.php:1548 google-sitemap-plugin.php:1551
|
142 |
+
#: google-sitemap-plugin.php:1567
|
143 |
msgid "Verification Code"
|
144 |
msgstr "Код подтверждения"
|
145 |
|
146 |
+
#: google-sitemap-plugin.php:1549
|
147 |
msgid "Received and added to the site"
|
148 |
msgstr "Получен и добавлен на сайт"
|
149 |
|
150 |
+
#: google-sitemap-plugin.php:1552
|
151 |
msgid "Received, but has not been added to the site"
|
152 |
msgstr "Получен, но не добавлен на сайт"
|
153 |
|
154 |
+
#: google-sitemap-plugin.php:1642
|
155 |
msgid "Please add the sitemap file manually."
|
156 |
msgstr "Пожалуйста, добавьте файл Sitemap вручную."
|
157 |
|
158 |
+
#: google-sitemap-plugin.php:1647
|
159 |
msgid "Error 404"
|
160 |
msgstr "Ошибка 404"
|
161 |
|
162 |
+
#: google-sitemap-plugin.php:1649
|
163 |
#, php-format
|
164 |
msgid "The sitemap file %s not found."
|
165 |
msgstr "Файл sitemap %s не найден."
|
166 |
|
167 |
+
#: google-sitemap-plugin.php:1659
|
168 |
msgid "The sitemap file not found."
|
169 |
msgstr "Файл sitemap не найден."
|
170 |
|
171 |
+
#: google-sitemap-plugin.php:1738
|
172 |
msgid "FAQ"
|
173 |
msgstr "FAQ"
|
174 |
|
175 |
+
#: google-sitemap-plugin.php:1739
|
176 |
msgid "Support"
|
177 |
msgstr "Тех.поддержка"
|
178 |
|
179 |
+
#: google-sitemap-plugin.php:1911 google-sitemap-plugin.php:1920
|
180 |
+
msgid "Google-Sitemap-plugin Canonical Settings"
|
181 |
+
msgstr "Google Sitemap: канонические ссылки "
|
182 |
+
|
183 |
+
#: google-sitemap-plugin.php:1946
|
184 |
+
msgid "Canonical Url:"
|
185 |
+
msgstr "Канонический Url"
|
186 |
+
|
187 |
+
#: includes/class-gglstmp-settings.php:29
|
188 |
msgid "Structure"
|
189 |
msgstr "Структура"
|
190 |
|
191 |
+
#: includes/class-gglstmp-settings.php:30
|
192 |
msgid "Misc"
|
193 |
msgstr "Разное"
|
194 |
|
195 |
+
#: includes/class-gglstmp-settings.php:31
|
196 |
msgid "License Key"
|
197 |
msgstr "Лицензионный ключ"
|
198 |
|
199 |
+
#: includes/class-gglstmp-settings.php:170
|
200 |
msgid "Settings saved."
|
201 |
msgstr "Настройки сохранены."
|
202 |
|
203 |
+
#: includes/class-gglstmp-settings.php:199
|
204 |
#, php-format
|
205 |
msgctxt "%robots.txt file link%"
|
206 |
msgid "Enable to add a sitemap file path to the %s file."
|
207 |
msgstr "Включите, чтобы добавить путь файла Sitemap в файл %s."
|
208 |
|
209 |
+
#: includes/class-gglstmp-settings.php:204
|
210 |
#, php-format
|
211 |
msgctxt "%reading settings page link%"
|
212 |
msgid "\"Search Engine Visibility\" option have to be unmarked on the %s."
|
213 |
msgstr "Опция \"Видимость для поисковых систем\" дожна быть не отмечена на %s."
|
214 |
|
215 |
+
#: includes/class-gglstmp-settings.php:208
|
216 |
msgctxt "...on the reading settings page."
|
217 |
msgid "Reading Settings page"
|
218 |
msgstr "странице настроек чтения"
|
219 |
|
220 |
+
#: includes/class-gglstmp-settings.php:212
|
221 |
msgid ""
|
222 |
"Also, please add the following code to the beginning of your \".htaccess\" "
|
223 |
"file:"
|
225 |
"Так же, пожалуйста, добавьте следующий код в начало вашего файла \".htaccess"
|
226 |
"\":"
|
227 |
|
228 |
+
#: includes/class-gglstmp-settings.php:225
|
229 |
+
msgid "Media Sitemap"
|
230 |
+
msgstr "Media Sitemap"
|
231 |
+
|
232 |
+
#: includes/class-gglstmp-settings.php:230
|
233 |
+
msgid "Enable to add a media sitemap (video & image)"
|
234 |
+
msgstr "Включите, чтобы добавить медиа карту сайта (видео и картинки)."
|
235 |
+
|
236 |
+
#: includes/class-gglstmp-settings.php:235
|
237 |
msgid "This option will be applied to all websites in the network."
|
238 |
msgstr "Эта опция будет применена ко всем сайтам в сети."
|
239 |
|
240 |
+
#: includes/class-gglstmp-settings.php:238
|
241 |
+
#: includes/class-gglstmp-settings.php:347
|
242 |
msgid "Activate"
|
243 |
msgstr "Активировать"
|
244 |
|
245 |
+
#: includes/class-gglstmp-settings.php:241
|
246 |
+
#: includes/class-gglstmp-settings.php:351
|
247 |
msgid "Install Now"
|
248 |
msgstr "Установить Сейчас"
|
249 |
|
250 |
+
#: includes/class-gglstmp-settings.php:247
|
251 |
#, php-format
|
252 |
msgid "%s Plugin"
|
253 |
msgstr "%s плагин"
|
254 |
|
255 |
+
#: includes/class-gglstmp-settings.php:252
|
256 |
#, php-format
|
257 |
msgid "Enable to allow XML files access using %s plugin."
|
258 |
msgstr "Включите, чтобы разрешить доступ к файлам XML с помощью плагина %s."
|
259 |
|
260 |
+
#: includes/class-gglstmp-settings.php:253
|
261 |
msgid "The following string will be added to your .htaccess file"
|
262 |
msgstr "В ваш .htaccess файл будет добавлена следующая строка"
|
263 |
|
264 |
+
#: includes/class-gglstmp-settings.php:263
|
265 |
+
#: includes/class-gglstmp-settings.php:413 includes/pro_banners.php:21
|
266 |
msgid "Close"
|
267 |
msgstr "Закрыть"
|
268 |
|
269 |
+
#: includes/class-gglstmp-settings.php:274
|
270 |
msgid "URLs Limit"
|
271 |
msgstr "Лимит ссылок"
|
272 |
|
273 |
+
#: includes/class-gglstmp-settings.php:279
|
274 |
msgid ""
|
275 |
"A sitemap file can't contain more than 50,000 URLs and must be no larger "
|
276 |
"than 50 MB uncompressed."
|
278 |
"Файл sitemap не может содержать более 50000 ссылок и не должен превышать "
|
279 |
"50MB в несжатом состоянии."
|
280 |
|
281 |
+
#: includes/class-gglstmp-settings.php:283
|
282 |
msgid "Decrease the limit if your sitemap exceeds file size limit."
|
283 |
msgstr ""
|
284 |
"Уменьшите значение если размер файла sitemap превышает допустимое значение."
|
285 |
|
286 |
+
#: includes/class-gglstmp-settings.php:284
|
287 |
msgid ""
|
288 |
"When the limit is reached, the sitemap will be splitted into multiple files."
|
289 |
msgstr ""
|
290 |
"Файл sitemap будет разбит на несколько частей при достижении лимита ссылок."
|
291 |
|
292 |
+
#: includes/class-gglstmp-settings.php:289
|
293 |
msgid "Google Webmaster Tools"
|
294 |
msgstr "Google Webmaster Tools"
|
295 |
|
296 |
+
#: includes/class-gglstmp-settings.php:292
|
297 |
msgid ""
|
298 |
"This hosting does not support сURL, so you cannot add a sitemap file "
|
299 |
"automatically."
|
301 |
"Ваш хостинг не поддерживает сURL, поэтому вы не можете добавить sitemap "
|
302 |
"автоматически."
|
303 |
|
304 |
+
#: includes/class-gglstmp-settings.php:296
|
305 |
msgid "Logout from Google Webmaster Tools"
|
306 |
msgstr "Выйти из Google Webmaster Tools"
|
307 |
|
308 |
+
#: includes/class-gglstmp-settings.php:300
|
309 |
msgid "Manage Website with Google Webmaster Tools"
|
310 |
msgstr "Управляйте веб-сайтом с помощью Google Webmaster Tools"
|
311 |
|
312 |
+
#: includes/class-gglstmp-settings.php:303
|
313 |
msgid "Add"
|
314 |
msgstr "Добавить"
|
315 |
|
316 |
+
#: includes/class-gglstmp-settings.php:305 includes/pro_banners.php:138
|
317 |
msgid "Delete"
|
318 |
msgstr "Удалить"
|
319 |
|
320 |
+
#: includes/class-gglstmp-settings.php:307
|
321 |
msgid "Get Info"
|
322 |
msgstr "Получить информацию"
|
323 |
|
324 |
+
#: includes/class-gglstmp-settings.php:309
|
325 |
msgid ""
|
326 |
"Add, delete or get info about this website using your Google Webmaster Tools "
|
327 |
"account."
|
329 |
"Добавьте, удалите или получите информацию об этом сайте с помощью своей "
|
330 |
"учетной записи Google Webmaster Tools."
|
331 |
|
332 |
+
#: includes/class-gglstmp-settings.php:319
|
333 |
msgid "Get Authorization Code"
|
334 |
msgstr "Получить код авторизации"
|
335 |
|
336 |
+
#: includes/class-gglstmp-settings.php:326
|
337 |
msgid "Authorize"
|
338 |
msgstr "Авторизироваться"
|
339 |
|
340 |
+
#: includes/class-gglstmp-settings.php:329
|
341 |
msgid "Invalid authorization code. Please try again."
|
342 |
msgstr "Недействительный код авторизации. Пожалуйста, попробуйте еще раз."
|
343 |
|
344 |
+
#: includes/class-gglstmp-settings.php:334
|
345 |
msgid "You can also add your sitemap to Google Webmaster Tools manually."
|
346 |
msgstr "Вы также можете вручную добавить sitemap в Google Webmaster Tools."
|
347 |
|
348 |
+
#: includes/class-gglstmp-settings.php:336
|
349 |
msgid "Read the instruction"
|
350 |
msgstr "Читать инструкцию"
|
351 |
|
352 |
+
#: includes/class-gglstmp-settings.php:341
|
353 |
msgid "Alternate Language Pages"
|
354 |
msgstr "Страницы альтернативных языков"
|
355 |
|
356 |
+
#: includes/class-gglstmp-settings.php:355
|
357 |
msgid "Enable to add alternate language pages using Multilanguage plugin."
|
358 |
msgstr ""
|
359 |
"Включите, чтобы добавить страницы альтернативных языков используя плагин "
|
360 |
"Multilanguage."
|
361 |
|
362 |
+
#: includes/class-gglstmp-settings.php:369
|
363 |
msgid "Post category"
|
364 |
msgstr "Рубрика записей"
|
365 |
|
366 |
+
#: includes/class-gglstmp-settings.php:370
|
367 |
msgid "Post tag"
|
368 |
msgstr "Метка записей"
|
369 |
|
370 |
+
#: includes/class-gglstmp-settings.php:372
|
371 |
msgid "Sitemap Structure"
|
372 |
msgstr "Структура Sitemap"
|
373 |
|
374 |
+
#: includes/class-gglstmp-settings.php:377
|
375 |
msgid "Post Types"
|
376 |
msgstr "Типы записей"
|
377 |
|
378 |
+
#: includes/class-gglstmp-settings.php:389
|
379 |
msgid "Enable to add post type links to the sitemap."
|
380 |
msgstr "Включите, чтобы добавить ссылки типов записей в sitemap."
|
381 |
|
382 |
+
#: includes/class-gglstmp-settings.php:393
|
383 |
msgid "Taxonomies"
|
384 |
msgstr "Таксономии"
|
385 |
|
386 |
+
#: includes/class-gglstmp-settings.php:404
|
387 |
msgid "Enable to taxonomy links to the sitemap."
|
388 |
msgstr "Включите, чтобы добавить ссылки таксономий в sitemap."
|
389 |
|
390 |
+
#: includes/class-gglstmp-settings.php:462
|
391 |
#, php-format
|
392 |
msgid "%s is in the site root directory."
|
393 |
msgstr "%s находится в корневом каталоге сайта."
|
394 |
|
395 |
+
#: includes/class-gglstmp-settings.php:463
|
396 |
msgid "The Sitemap file"
|
397 |
msgstr "Файл Sitemap"
|
398 |
|
399 |
+
#: includes/class-gglstmp-settings.php:489
|
400 |
#, php-format
|
401 |
msgid ""
|
402 |
"Can't access XML files. Try to add the following rule %s to your %s file "
|
408 |
"корневом каталоге сайта. Найдите следующую строку %s и вставь этот код после "
|
409 |
"нее."
|
410 |
|
411 |
+
#: includes/class-gglstmp-settings.php:505
|
412 |
msgid "Note"
|
413 |
msgstr "Примечание"
|
414 |
|
415 |
+
#: includes/class-gglstmp-settings.php:506
|
416 |
msgid ""
|
417 |
"Another plugin is providing Google Client functionality and may interrupt "
|
418 |
"proper plugin work."
|
languages/google-sitemap-plugin-uk.mo
CHANGED
Binary file
|
languages/google-sitemap-plugin-uk.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Google Sitemap\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2018-
|
6 |
-
"PO-Revision-Date: 2018-
|
7 |
"Last-Translator: bestwebsoft.com <plugins@bestwebsoft.com>\n"
|
8 |
"Language-Team: BestWebSoft <plugin@bestwebsoft.com>\n"
|
9 |
"Language: uk\n"
|
@@ -18,199 +18,207 @@ msgstr ""
|
|
18 |
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
|
21 |
-
#: google-sitemap-plugin.php:
|
22 |
-
#: includes/class-gglstmp-settings.php:
|
23 |
msgid "Google Sitemap Settings"
|
24 |
msgstr "Налаштування Google Sitemap"
|
25 |
|
26 |
-
#: google-sitemap-plugin.php:
|
27 |
-
#: google-sitemap-plugin.php:
|
28 |
-
#: includes/class-gglstmp-settings.php:
|
29 |
msgid "Settings"
|
30 |
msgstr "Налаштування"
|
31 |
|
32 |
-
#: google-sitemap-plugin.php:
|
33 |
-
#: google-sitemap-plugin.php:
|
34 |
msgid "Custom Links"
|
35 |
msgstr "Користувацькі посилання"
|
36 |
|
37 |
-
#: google-sitemap-plugin.php:
|
38 |
msgid "Upgrade to Pro"
|
39 |
msgstr "Оновитися на Pro"
|
40 |
|
41 |
-
#: google-sitemap-plugin.php:
|
42 |
msgid "Post categories"
|
43 |
msgstr "Категорії записів"
|
44 |
|
45 |
-
#: google-sitemap-plugin.php:
|
46 |
msgid "Post tags"
|
47 |
msgstr "Позначки записів"
|
48 |
|
49 |
-
#: google-sitemap-plugin.php:
|
50 |
msgid "Please enable JavaScript in your browser."
|
51 |
msgstr "Будь ласка, увімкніть JavaScript у вашому браузері."
|
52 |
|
53 |
-
#: google-sitemap-plugin.php:
|
54 |
msgid "Add New"
|
55 |
msgstr "Додати посилання"
|
56 |
|
57 |
-
#: google-sitemap-plugin.php:
|
58 |
-
#: google-sitemap-plugin.php:
|
59 |
msgid "Website"
|
60 |
msgstr "Сайт"
|
61 |
|
62 |
-
#: google-sitemap-plugin.php:
|
63 |
-
#: google-sitemap-plugin.php:
|
64 |
-
#: google-sitemap-plugin.php:
|
65 |
msgid "Status"
|
66 |
msgstr "Статус"
|
67 |
|
68 |
-
#: google-sitemap-plugin.php:
|
69 |
-
#: google-sitemap-plugin.php:
|
70 |
msgid "Not added"
|
71 |
msgstr "Не додано"
|
72 |
|
73 |
-
#: google-sitemap-plugin.php:
|
74 |
-
#: google-sitemap-plugin.php:
|
75 |
msgid "Added"
|
76 |
msgstr "Додано"
|
77 |
|
78 |
-
#: google-sitemap-plugin.php:
|
79 |
-
#: google-sitemap-plugin.php:
|
80 |
msgid "Verification Status"
|
81 |
msgstr "Статус перевірки"
|
82 |
|
83 |
-
#: google-sitemap-plugin.php:
|
84 |
msgid "Verified"
|
85 |
msgstr "Перевірено"
|
86 |
|
87 |
-
#: google-sitemap-plugin.php:
|
88 |
msgid "Not verified"
|
89 |
msgstr "Не перевірено"
|
90 |
|
91 |
-
#: google-sitemap-plugin.php:
|
92 |
msgid "Sitemap Status"
|
93 |
msgstr "Статус Sitemap"
|
94 |
|
95 |
-
#: google-sitemap-plugin.php:
|
96 |
msgid "Added with errors."
|
97 |
msgstr "Додано з помилками."
|
98 |
|
99 |
-
#: google-sitemap-plugin.php:
|
100 |
msgid "View errors in Google Webmaster Tools"
|
101 |
msgstr "Подивитися помилки у Google Webmaster Tools"
|
102 |
|
103 |
-
#: google-sitemap-plugin.php:
|
104 |
msgid "Sitemap URL"
|
105 |
msgstr "Sitemap URL"
|
106 |
|
107 |
-
#: google-sitemap-plugin.php:
|
108 |
-
#: google-sitemap-plugin.php:
|
109 |
-
#: google-sitemap-plugin.php:
|
110 |
-
#: google-sitemap-plugin.php:
|
111 |
-
#: includes/class-gglstmp-settings.php:
|
112 |
msgid "Error"
|
113 |
msgstr "Помилка"
|
114 |
|
115 |
-
#: google-sitemap-plugin.php:
|
116 |
msgid "Please check the sitemap file manually."
|
117 |
msgstr "Будь ласка, перевірте файл sitemap вручну."
|
118 |
|
119 |
-
#: google-sitemap-plugin.php:
|
120 |
-
#: google-sitemap-plugin.php:
|
121 |
-
#: google-sitemap-plugin.php:
|
122 |
-
#: includes/class-gglstmp-settings.php:
|
123 |
msgid "Learn More"
|
124 |
msgstr "Дізнатись більше"
|
125 |
|
126 |
-
#: google-sitemap-plugin.php:
|
127 |
-
#: google-sitemap-plugin.php:
|
128 |
-
#: google-sitemap-plugin.php:
|
129 |
msgid "Unexpected error"
|
130 |
msgstr "Неочікуванна помилка"
|
131 |
|
132 |
-
#: google-sitemap-plugin.php:
|
133 |
-
#: google-sitemap-plugin.php:
|
134 |
msgid "Manual verification required."
|
135 |
msgstr "Потрібна ручна перевірка."
|
136 |
|
137 |
-
#: google-sitemap-plugin.php:
|
138 |
msgid "Deleted"
|
139 |
msgstr "Видалено"
|
140 |
|
141 |
-
#: google-sitemap-plugin.php:
|
142 |
-
#: google-sitemap-plugin.php:
|
143 |
msgid "Verification Code"
|
144 |
msgstr "Код підтвердження"
|
145 |
|
146 |
-
#: google-sitemap-plugin.php:
|
147 |
msgid "Received and added to the site"
|
148 |
msgstr "Отриман і додан на сайт"
|
149 |
|
150 |
-
#: google-sitemap-plugin.php:
|
151 |
msgid "Received, but has not been added to the site"
|
152 |
msgstr "Отриман, але не додан на сайт"
|
153 |
|
154 |
-
#: google-sitemap-plugin.php:
|
155 |
msgid "Please add the sitemap file manually."
|
156 |
msgstr "Будь ласка, додайте файл Sitemap вручну."
|
157 |
|
158 |
-
#: google-sitemap-plugin.php:
|
159 |
msgid "Error 404"
|
160 |
msgstr "Помилка 404"
|
161 |
|
162 |
-
#: google-sitemap-plugin.php:
|
163 |
#, php-format
|
164 |
msgid "The sitemap file %s not found."
|
165 |
msgstr "Файл sitemap %s не знайдено."
|
166 |
|
167 |
-
#: google-sitemap-plugin.php:
|
168 |
msgid "The sitemap file not found."
|
169 |
msgstr "Файл sitemap не знайдено."
|
170 |
|
171 |
-
#: google-sitemap-plugin.php:
|
172 |
msgid "FAQ"
|
173 |
msgstr "FAQ"
|
174 |
|
175 |
-
#: google-sitemap-plugin.php:
|
176 |
msgid "Support"
|
177 |
msgstr "Підтримка"
|
178 |
|
179 |
-
#:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
msgid "Structure"
|
181 |
msgstr "Структура"
|
182 |
|
183 |
-
#: includes/class-gglstmp-settings.php:
|
184 |
msgid "Misc"
|
185 |
msgstr "Різне"
|
186 |
|
187 |
-
#: includes/class-gglstmp-settings.php:
|
188 |
msgid "License Key"
|
189 |
msgstr "Ліцензійний ключ"
|
190 |
|
191 |
-
#: includes/class-gglstmp-settings.php:
|
192 |
msgid "Settings saved."
|
193 |
msgstr "Налаштування збережено."
|
194 |
|
195 |
-
#: includes/class-gglstmp-settings.php:
|
196 |
#, php-format
|
197 |
msgctxt "%robots.txt file link%"
|
198 |
msgid "Enable to add a sitemap file path to the %s file."
|
199 |
msgstr "Увімкніть, щоб додати шлях до файлу Sitemap в файл %s."
|
200 |
|
201 |
-
#: includes/class-gglstmp-settings.php:
|
202 |
#, php-format
|
203 |
msgctxt "%reading settings page link%"
|
204 |
msgid "\"Search Engine Visibility\" option have to be unmarked on the %s."
|
205 |
msgstr ""
|
206 |
"Опція \"Видимість для пошукових систем\" повинна бути не відзначена на %s."
|
207 |
|
208 |
-
#: includes/class-gglstmp-settings.php:
|
209 |
msgctxt "...on the reading settings page."
|
210 |
msgid "Reading Settings page"
|
211 |
msgstr "сторінці налаштувань читання"
|
212 |
|
213 |
-
#: includes/class-gglstmp-settings.php:
|
214 |
msgid ""
|
215 |
"Also, please add the following code to the beginning of your \".htaccess\" "
|
216 |
"file:"
|
@@ -218,44 +226,52 @@ msgstr ""
|
|
218 |
"Також, будь ласка, додайте наступний код у початок вашого файлу \".htaccess"
|
219 |
"\":"
|
220 |
|
221 |
-
#: includes/class-gglstmp-settings.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
msgid "This option will be applied to all websites in the network."
|
223 |
msgstr "Ця опція буде застосована до всіх сайтів в мережі."
|
224 |
|
225 |
-
#: includes/class-gglstmp-settings.php:
|
226 |
-
#: includes/class-gglstmp-settings.php:
|
227 |
msgid "Activate"
|
228 |
msgstr "Активувати"
|
229 |
|
230 |
-
#: includes/class-gglstmp-settings.php:
|
231 |
-
#: includes/class-gglstmp-settings.php:
|
232 |
msgid "Install Now"
|
233 |
msgstr "Встановити зараз"
|
234 |
|
235 |
-
#: includes/class-gglstmp-settings.php:
|
236 |
#, php-format
|
237 |
msgid "%s Plugin"
|
238 |
msgstr "%s плагін"
|
239 |
|
240 |
-
#: includes/class-gglstmp-settings.php:
|
241 |
#, php-format
|
242 |
msgid "Enable to allow XML files access using %s plugin."
|
243 |
msgstr "Увімкніть, щоб дозволити доступ до файлів XML за допомогою плагіна %s."
|
244 |
|
245 |
-
#: includes/class-gglstmp-settings.php:
|
246 |
msgid "The following string will be added to your .htaccess file"
|
247 |
msgstr "До вашого .htaccess файл буде додано наступну строку"
|
248 |
|
249 |
-
#: includes/class-gglstmp-settings.php:
|
250 |
-
#: includes/class-gglstmp-settings.php:
|
251 |
msgid "Close"
|
252 |
msgstr "Закрити"
|
253 |
|
254 |
-
#: includes/class-gglstmp-settings.php:
|
255 |
msgid "URLs Limit"
|
256 |
msgstr "Ліміт посилань"
|
257 |
|
258 |
-
#: includes/class-gglstmp-settings.php:
|
259 |
msgid ""
|
260 |
"A sitemap file can't contain more than 50,000 URLs and must be no larger "
|
261 |
"than 50 MB uncompressed."
|
@@ -263,22 +279,22 @@ msgstr ""
|
|
263 |
"Файл sitemap не може містити більш 50000 посилань і не повинен перевищувати "
|
264 |
"50MB в нестислому стані."
|
265 |
|
266 |
-
#: includes/class-gglstmp-settings.php:
|
267 |
msgid "Decrease the limit if your sitemap exceeds file size limit."
|
268 |
msgstr ""
|
269 |
"Зменшіть значення якщо розмір файлу sitemap перевищує допустиме значення."
|
270 |
|
271 |
-
#: includes/class-gglstmp-settings.php:
|
272 |
msgid ""
|
273 |
"When the limit is reached, the sitemap will be splitted into multiple files."
|
274 |
msgstr ""
|
275 |
"Файл sitemap буде розбитий на кілька частин при досягненні ліміту посилань."
|
276 |
|
277 |
-
#: includes/class-gglstmp-settings.php:
|
278 |
msgid "Google Webmaster Tools"
|
279 |
msgstr "Google Webmaster Tools"
|
280 |
|
281 |
-
#: includes/class-gglstmp-settings.php:
|
282 |
msgid ""
|
283 |
"This hosting does not support сURL, so you cannot add a sitemap file "
|
284 |
"automatically."
|
@@ -286,27 +302,27 @@ msgstr ""
|
|
286 |
"Ваш хостінг не підтримує сURL, отже ви не можете додати файл Sitemap "
|
287 |
"автоматично."
|
288 |
|
289 |
-
#: includes/class-gglstmp-settings.php:
|
290 |
msgid "Logout from Google Webmaster Tools"
|
291 |
msgstr "Вийти з Google Webmaster Tools"
|
292 |
|
293 |
-
#: includes/class-gglstmp-settings.php:
|
294 |
msgid "Manage Website with Google Webmaster Tools"
|
295 |
msgstr "Керуйте веб-сайтом за допомогою Google Webmaster Tools"
|
296 |
|
297 |
-
#: includes/class-gglstmp-settings.php:
|
298 |
msgid "Add"
|
299 |
msgstr "Додати"
|
300 |
|
301 |
-
#: includes/class-gglstmp-settings.php:
|
302 |
msgid "Delete"
|
303 |
msgstr "Видалити"
|
304 |
|
305 |
-
#: includes/class-gglstmp-settings.php:
|
306 |
msgid "Get Info"
|
307 |
msgstr "Отримати інформацію"
|
308 |
|
309 |
-
#: includes/class-gglstmp-settings.php:
|
310 |
msgid ""
|
311 |
"Add, delete or get info about this website using your Google Webmaster Tools "
|
312 |
"account."
|
@@ -314,74 +330,74 @@ msgstr ""
|
|
314 |
"Додайте, видаліть або отримайте інформацію про цей сайт за допомогою свого "
|
315 |
"облікового запису Google Webmaster Tools."
|
316 |
|
317 |
-
#: includes/class-gglstmp-settings.php:
|
318 |
msgid "Get Authorization Code"
|
319 |
msgstr "Отримати код авторизації"
|
320 |
|
321 |
-
#: includes/class-gglstmp-settings.php:
|
322 |
msgid "Authorize"
|
323 |
msgstr "Авторизуватись"
|
324 |
|
325 |
-
#: includes/class-gglstmp-settings.php:
|
326 |
msgid "Invalid authorization code. Please try again."
|
327 |
msgstr "Невірний код авторизації. Будь ласка спробуйте ще раз."
|
328 |
|
329 |
-
#: includes/class-gglstmp-settings.php:
|
330 |
msgid "You can also add your sitemap to Google Webmaster Tools manually."
|
331 |
msgstr "Ви також можете додати sitemap в Google Webmaster Tools вручну."
|
332 |
|
333 |
-
#: includes/class-gglstmp-settings.php:
|
334 |
msgid "Read the instruction"
|
335 |
msgstr "Читати інструкцію"
|
336 |
|
337 |
-
#: includes/class-gglstmp-settings.php:
|
338 |
msgid "Alternate Language Pages"
|
339 |
msgstr "Сторінки альтернативних мов"
|
340 |
|
341 |
-
#: includes/class-gglstmp-settings.php:
|
342 |
msgid "Enable to add alternate language pages using Multilanguage plugin."
|
343 |
msgstr ""
|
344 |
"Увімкніть, щоб додати сторінки альтернативних мов використовуючи плагін "
|
345 |
"Multilanguage."
|
346 |
|
347 |
-
#: includes/class-gglstmp-settings.php:
|
348 |
msgid "Post category"
|
349 |
msgstr "Категорія записів"
|
350 |
|
351 |
-
#: includes/class-gglstmp-settings.php:
|
352 |
msgid "Post tag"
|
353 |
msgstr "Позначка записів"
|
354 |
|
355 |
-
#: includes/class-gglstmp-settings.php:
|
356 |
msgid "Sitemap Structure"
|
357 |
msgstr "Структура Sitemap"
|
358 |
|
359 |
-
#: includes/class-gglstmp-settings.php:
|
360 |
msgid "Post Types"
|
361 |
msgstr "Типи записів"
|
362 |
|
363 |
-
#: includes/class-gglstmp-settings.php:
|
364 |
msgid "Enable to add post type links to the sitemap."
|
365 |
msgstr "Увімкніть, щоб додати посилання типів записів в sitemap."
|
366 |
|
367 |
-
#: includes/class-gglstmp-settings.php:
|
368 |
msgid "Taxonomies"
|
369 |
msgstr "Таксономії"
|
370 |
|
371 |
-
#: includes/class-gglstmp-settings.php:
|
372 |
msgid "Enable to taxonomy links to the sitemap."
|
373 |
msgstr "Увімкніть, щоб додати посилання таксономій в sitemap."
|
374 |
|
375 |
-
#: includes/class-gglstmp-settings.php:
|
376 |
#, php-format
|
377 |
msgid "%s is in the site root directory."
|
378 |
msgstr "%s знаходиться в кореневому каталозі сайту."
|
379 |
|
380 |
-
#: includes/class-gglstmp-settings.php:
|
381 |
msgid "The Sitemap file"
|
382 |
msgstr "Файл Sitemap"
|
383 |
|
384 |
-
#: includes/class-gglstmp-settings.php:
|
385 |
#, php-format
|
386 |
msgid ""
|
387 |
"Can't access XML files. Try to add the following rule %s to your %s file "
|
@@ -393,11 +409,11 @@ msgstr ""
|
|
393 |
"кореневому каталозi сайту. Знайдiть наступну строку %s та додайте цей код "
|
394 |
"пiсля неї."
|
395 |
|
396 |
-
#: includes/class-gglstmp-settings.php:
|
397 |
msgid "Note"
|
398 |
msgstr "Примітка"
|
399 |
|
400 |
-
#: includes/class-gglstmp-settings.php:
|
401 |
msgid ""
|
402 |
"Another plugin is providing Google Client functionality and may interrupt "
|
403 |
"proper plugin work."
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Google Sitemap\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2018-12-25 16:53+0200\n"
|
6 |
+
"PO-Revision-Date: 2018-12-25 16:53+0200\n"
|
7 |
"Last-Translator: bestwebsoft.com <plugins@bestwebsoft.com>\n"
|
8 |
"Language-Team: BestWebSoft <plugin@bestwebsoft.com>\n"
|
9 |
"Language: uk\n"
|
18 |
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
19 |
"X-Poedit-SearchPath-0: .\n"
|
20 |
|
21 |
+
#: google-sitemap-plugin.php:37 google-sitemap-plugin.php:47
|
22 |
+
#: includes/class-gglstmp-settings.php:180
|
23 |
msgid "Google Sitemap Settings"
|
24 |
msgstr "Налаштування Google Sitemap"
|
25 |
|
26 |
+
#: google-sitemap-plugin.php:48 google-sitemap-plugin.php:1316
|
27 |
+
#: google-sitemap-plugin.php:1722 google-sitemap-plugin.php:1736
|
28 |
+
#: includes/class-gglstmp-settings.php:28
|
29 |
msgid "Settings"
|
30 |
msgstr "Налаштування"
|
31 |
|
32 |
+
#: google-sitemap-plugin.php:56 google-sitemap-plugin.php:57
|
33 |
+
#: google-sitemap-plugin.php:1325
|
34 |
msgid "Custom Links"
|
35 |
msgstr "Користувацькі посилання"
|
36 |
|
37 |
+
#: google-sitemap-plugin.php:75 includes/pro_banners.php:27
|
38 |
msgid "Upgrade to Pro"
|
39 |
msgstr "Оновитися на Pro"
|
40 |
|
41 |
+
#: google-sitemap-plugin.php:393
|
42 |
msgid "Post categories"
|
43 |
msgstr "Категорії записів"
|
44 |
|
45 |
+
#: google-sitemap-plugin.php:394
|
46 |
msgid "Post tags"
|
47 |
msgstr "Позначки записів"
|
48 |
|
49 |
+
#: google-sitemap-plugin.php:1319
|
50 |
msgid "Please enable JavaScript in your browser."
|
51 |
msgstr "Будь ласка, увімкніть JavaScript у вашому браузері."
|
52 |
|
53 |
+
#: google-sitemap-plugin.php:1327
|
54 |
msgid "Add New"
|
55 |
msgstr "Додати посилання"
|
56 |
|
57 |
+
#: google-sitemap-plugin.php:1370 google-sitemap-plugin.php:1457
|
58 |
+
#: google-sitemap-plugin.php:1510
|
59 |
msgid "Website"
|
60 |
msgstr "Сайт"
|
61 |
|
62 |
+
#: google-sitemap-plugin.php:1381 google-sitemap-plugin.php:1385
|
63 |
+
#: google-sitemap-plugin.php:1474 google-sitemap-plugin.php:1490
|
64 |
+
#: google-sitemap-plugin.php:1514 google-sitemap-plugin.php:1528
|
65 |
msgid "Status"
|
66 |
msgstr "Статус"
|
67 |
|
68 |
+
#: google-sitemap-plugin.php:1382 google-sitemap-plugin.php:1414
|
69 |
+
#: google-sitemap-plugin.php:1491
|
70 |
msgid "Not added"
|
71 |
msgstr "Не додано"
|
72 |
|
73 |
+
#: google-sitemap-plugin.php:1386 google-sitemap-plugin.php:1417
|
74 |
+
#: google-sitemap-plugin.php:1515 google-sitemap-plugin.php:1626
|
75 |
msgid "Added"
|
76 |
msgstr "Додано"
|
77 |
|
78 |
+
#: google-sitemap-plugin.php:1388 google-sitemap-plugin.php:1571
|
79 |
+
#: google-sitemap-plugin.php:1583 google-sitemap-plugin.php:1597
|
80 |
msgid "Verification Status"
|
81 |
msgstr "Статус перевірки"
|
82 |
|
83 |
+
#: google-sitemap-plugin.php:1390 google-sitemap-plugin.php:1584
|
84 |
msgid "Verified"
|
85 |
msgstr "Перевірено"
|
86 |
|
87 |
+
#: google-sitemap-plugin.php:1392
|
88 |
msgid "Not verified"
|
89 |
msgstr "Не перевірено"
|
90 |
|
91 |
+
#: google-sitemap-plugin.php:1401 google-sitemap-plugin.php:1605
|
92 |
msgid "Sitemap Status"
|
93 |
msgstr "Статус Sitemap"
|
94 |
|
95 |
+
#: google-sitemap-plugin.php:1419
|
96 |
msgid "Added with errors."
|
97 |
msgstr "Додано з помилками."
|
98 |
|
99 |
+
#: google-sitemap-plugin.php:1419
|
100 |
msgid "View errors in Google Webmaster Tools"
|
101 |
msgstr "Подивитися помилки у Google Webmaster Tools"
|
102 |
|
103 |
+
#: google-sitemap-plugin.php:1422
|
104 |
msgid "Sitemap URL"
|
105 |
msgstr "Sitemap URL"
|
106 |
|
107 |
+
#: google-sitemap-plugin.php:1425 google-sitemap-plugin.php:1441
|
108 |
+
#: google-sitemap-plugin.php:1493 google-sitemap-plugin.php:1530
|
109 |
+
#: google-sitemap-plugin.php:1568 google-sitemap-plugin.php:1599
|
110 |
+
#: google-sitemap-plugin.php:1639 google-sitemap-plugin.php:1659
|
111 |
+
#: includes/class-gglstmp-settings.php:488
|
112 |
msgid "Error"
|
113 |
msgstr "Помилка"
|
114 |
|
115 |
+
#: google-sitemap-plugin.php:1425
|
116 |
msgid "Please check the sitemap file manually."
|
117 |
msgstr "Будь ласка, перевірте файл sitemap вручну."
|
118 |
|
119 |
+
#: google-sitemap-plugin.php:1425 google-sitemap-plugin.php:1443
|
120 |
+
#: google-sitemap-plugin.php:1533 google-sitemap-plugin.php:1572
|
121 |
+
#: google-sitemap-plugin.php:1602 google-sitemap-plugin.php:1642
|
122 |
+
#: includes/class-gglstmp-settings.php:282 includes/pro_banners.php:47
|
123 |
msgid "Learn More"
|
124 |
msgstr "Дізнатись більше"
|
125 |
|
126 |
+
#: google-sitemap-plugin.php:1430 google-sitemap-plugin.php:1481
|
127 |
+
#: google-sitemap-plugin.php:1518 google-sitemap-plugin.php:1556
|
128 |
+
#: google-sitemap-plugin.php:1587 google-sitemap-plugin.php:1629
|
129 |
msgid "Unexpected error"
|
130 |
msgstr "Неочікуванна помилка"
|
131 |
|
132 |
+
#: google-sitemap-plugin.php:1443 google-sitemap-plugin.php:1533
|
133 |
+
#: google-sitemap-plugin.php:1602
|
134 |
msgid "Manual verification required."
|
135 |
msgstr "Потрібна ручна перевірка."
|
136 |
|
137 |
+
#: google-sitemap-plugin.php:1475
|
138 |
msgid "Deleted"
|
139 |
msgstr "Видалено"
|
140 |
|
141 |
+
#: google-sitemap-plugin.php:1548 google-sitemap-plugin.php:1551
|
142 |
+
#: google-sitemap-plugin.php:1567
|
143 |
msgid "Verification Code"
|
144 |
msgstr "Код підтвердження"
|
145 |
|
146 |
+
#: google-sitemap-plugin.php:1549
|
147 |
msgid "Received and added to the site"
|
148 |
msgstr "Отриман і додан на сайт"
|
149 |
|
150 |
+
#: google-sitemap-plugin.php:1552
|
151 |
msgid "Received, but has not been added to the site"
|
152 |
msgstr "Отриман, але не додан на сайт"
|
153 |
|
154 |
+
#: google-sitemap-plugin.php:1642
|
155 |
msgid "Please add the sitemap file manually."
|
156 |
msgstr "Будь ласка, додайте файл Sitemap вручну."
|
157 |
|
158 |
+
#: google-sitemap-plugin.php:1647
|
159 |
msgid "Error 404"
|
160 |
msgstr "Помилка 404"
|
161 |
|
162 |
+
#: google-sitemap-plugin.php:1649
|
163 |
#, php-format
|
164 |
msgid "The sitemap file %s not found."
|
165 |
msgstr "Файл sitemap %s не знайдено."
|
166 |
|
167 |
+
#: google-sitemap-plugin.php:1659
|
168 |
msgid "The sitemap file not found."
|
169 |
msgstr "Файл sitemap не знайдено."
|
170 |
|
171 |
+
#: google-sitemap-plugin.php:1738
|
172 |
msgid "FAQ"
|
173 |
msgstr "FAQ"
|
174 |
|
175 |
+
#: google-sitemap-plugin.php:1739
|
176 |
msgid "Support"
|
177 |
msgstr "Підтримка"
|
178 |
|
179 |
+
#: google-sitemap-plugin.php:1911 google-sitemap-plugin.php:1920
|
180 |
+
msgid "Google-Sitemap-plugin Canonical Settings"
|
181 |
+
msgstr "Google Sitemap: канонічні посилання"
|
182 |
+
|
183 |
+
#: google-sitemap-plugin.php:1946
|
184 |
+
msgid "Canonical Url:"
|
185 |
+
msgstr "Канонічний Url"
|
186 |
+
|
187 |
+
#: includes/class-gglstmp-settings.php:29
|
188 |
msgid "Structure"
|
189 |
msgstr "Структура"
|
190 |
|
191 |
+
#: includes/class-gglstmp-settings.php:30
|
192 |
msgid "Misc"
|
193 |
msgstr "Різне"
|
194 |
|
195 |
+
#: includes/class-gglstmp-settings.php:31
|
196 |
msgid "License Key"
|
197 |
msgstr "Ліцензійний ключ"
|
198 |
|
199 |
+
#: includes/class-gglstmp-settings.php:170
|
200 |
msgid "Settings saved."
|
201 |
msgstr "Налаштування збережено."
|
202 |
|
203 |
+
#: includes/class-gglstmp-settings.php:199
|
204 |
#, php-format
|
205 |
msgctxt "%robots.txt file link%"
|
206 |
msgid "Enable to add a sitemap file path to the %s file."
|
207 |
msgstr "Увімкніть, щоб додати шлях до файлу Sitemap в файл %s."
|
208 |
|
209 |
+
#: includes/class-gglstmp-settings.php:204
|
210 |
#, php-format
|
211 |
msgctxt "%reading settings page link%"
|
212 |
msgid "\"Search Engine Visibility\" option have to be unmarked on the %s."
|
213 |
msgstr ""
|
214 |
"Опція \"Видимість для пошукових систем\" повинна бути не відзначена на %s."
|
215 |
|
216 |
+
#: includes/class-gglstmp-settings.php:208
|
217 |
msgctxt "...on the reading settings page."
|
218 |
msgid "Reading Settings page"
|
219 |
msgstr "сторінці налаштувань читання"
|
220 |
|
221 |
+
#: includes/class-gglstmp-settings.php:212
|
222 |
msgid ""
|
223 |
"Also, please add the following code to the beginning of your \".htaccess\" "
|
224 |
"file:"
|
226 |
"Також, будь ласка, додайте наступний код у початок вашого файлу \".htaccess"
|
227 |
"\":"
|
228 |
|
229 |
+
#: includes/class-gglstmp-settings.php:225
|
230 |
+
msgid "Media Sitemap"
|
231 |
+
msgstr "Media Sitemap"
|
232 |
+
|
233 |
+
#: includes/class-gglstmp-settings.php:230
|
234 |
+
msgid "Enable to add a media sitemap (video & image)"
|
235 |
+
msgstr "Активуйте щоб додати медіа карту сайта (відео і картинки)."
|
236 |
+
|
237 |
+
#: includes/class-gglstmp-settings.php:235
|
238 |
msgid "This option will be applied to all websites in the network."
|
239 |
msgstr "Ця опція буде застосована до всіх сайтів в мережі."
|
240 |
|
241 |
+
#: includes/class-gglstmp-settings.php:238
|
242 |
+
#: includes/class-gglstmp-settings.php:347
|
243 |
msgid "Activate"
|
244 |
msgstr "Активувати"
|
245 |
|
246 |
+
#: includes/class-gglstmp-settings.php:241
|
247 |
+
#: includes/class-gglstmp-settings.php:351
|
248 |
msgid "Install Now"
|
249 |
msgstr "Встановити зараз"
|
250 |
|
251 |
+
#: includes/class-gglstmp-settings.php:247
|
252 |
#, php-format
|
253 |
msgid "%s Plugin"
|
254 |
msgstr "%s плагін"
|
255 |
|
256 |
+
#: includes/class-gglstmp-settings.php:252
|
257 |
#, php-format
|
258 |
msgid "Enable to allow XML files access using %s plugin."
|
259 |
msgstr "Увімкніть, щоб дозволити доступ до файлів XML за допомогою плагіна %s."
|
260 |
|
261 |
+
#: includes/class-gglstmp-settings.php:253
|
262 |
msgid "The following string will be added to your .htaccess file"
|
263 |
msgstr "До вашого .htaccess файл буде додано наступну строку"
|
264 |
|
265 |
+
#: includes/class-gglstmp-settings.php:263
|
266 |
+
#: includes/class-gglstmp-settings.php:413 includes/pro_banners.php:21
|
267 |
msgid "Close"
|
268 |
msgstr "Закрити"
|
269 |
|
270 |
+
#: includes/class-gglstmp-settings.php:274
|
271 |
msgid "URLs Limit"
|
272 |
msgstr "Ліміт посилань"
|
273 |
|
274 |
+
#: includes/class-gglstmp-settings.php:279
|
275 |
msgid ""
|
276 |
"A sitemap file can't contain more than 50,000 URLs and must be no larger "
|
277 |
"than 50 MB uncompressed."
|
279 |
"Файл sitemap не може містити більш 50000 посилань і не повинен перевищувати "
|
280 |
"50MB в нестислому стані."
|
281 |
|
282 |
+
#: includes/class-gglstmp-settings.php:283
|
283 |
msgid "Decrease the limit if your sitemap exceeds file size limit."
|
284 |
msgstr ""
|
285 |
"Зменшіть значення якщо розмір файлу sitemap перевищує допустиме значення."
|
286 |
|
287 |
+
#: includes/class-gglstmp-settings.php:284
|
288 |
msgid ""
|
289 |
"When the limit is reached, the sitemap will be splitted into multiple files."
|
290 |
msgstr ""
|
291 |
"Файл sitemap буде розбитий на кілька частин при досягненні ліміту посилань."
|
292 |
|
293 |
+
#: includes/class-gglstmp-settings.php:289
|
294 |
msgid "Google Webmaster Tools"
|
295 |
msgstr "Google Webmaster Tools"
|
296 |
|
297 |
+
#: includes/class-gglstmp-settings.php:292
|
298 |
msgid ""
|
299 |
"This hosting does not support сURL, so you cannot add a sitemap file "
|
300 |
"automatically."
|
302 |
"Ваш хостінг не підтримує сURL, отже ви не можете додати файл Sitemap "
|
303 |
"автоматично."
|
304 |
|
305 |
+
#: includes/class-gglstmp-settings.php:296
|
306 |
msgid "Logout from Google Webmaster Tools"
|
307 |
msgstr "Вийти з Google Webmaster Tools"
|
308 |
|
309 |
+
#: includes/class-gglstmp-settings.php:300
|
310 |
msgid "Manage Website with Google Webmaster Tools"
|
311 |
msgstr "Керуйте веб-сайтом за допомогою Google Webmaster Tools"
|
312 |
|
313 |
+
#: includes/class-gglstmp-settings.php:303
|
314 |
msgid "Add"
|
315 |
msgstr "Додати"
|
316 |
|
317 |
+
#: includes/class-gglstmp-settings.php:305 includes/pro_banners.php:138
|
318 |
msgid "Delete"
|
319 |
msgstr "Видалити"
|
320 |
|
321 |
+
#: includes/class-gglstmp-settings.php:307
|
322 |
msgid "Get Info"
|
323 |
msgstr "Отримати інформацію"
|
324 |
|
325 |
+
#: includes/class-gglstmp-settings.php:309
|
326 |
msgid ""
|
327 |
"Add, delete or get info about this website using your Google Webmaster Tools "
|
328 |
"account."
|
330 |
"Додайте, видаліть або отримайте інформацію про цей сайт за допомогою свого "
|
331 |
"облікового запису Google Webmaster Tools."
|
332 |
|
333 |
+
#: includes/class-gglstmp-settings.php:319
|
334 |
msgid "Get Authorization Code"
|
335 |
msgstr "Отримати код авторизації"
|
336 |
|
337 |
+
#: includes/class-gglstmp-settings.php:326
|
338 |
msgid "Authorize"
|
339 |
msgstr "Авторизуватись"
|
340 |
|
341 |
+
#: includes/class-gglstmp-settings.php:329
|
342 |
msgid "Invalid authorization code. Please try again."
|
343 |
msgstr "Невірний код авторизації. Будь ласка спробуйте ще раз."
|
344 |
|
345 |
+
#: includes/class-gglstmp-settings.php:334
|
346 |
msgid "You can also add your sitemap to Google Webmaster Tools manually."
|
347 |
msgstr "Ви також можете додати sitemap в Google Webmaster Tools вручну."
|
348 |
|
349 |
+
#: includes/class-gglstmp-settings.php:336
|
350 |
msgid "Read the instruction"
|
351 |
msgstr "Читати інструкцію"
|
352 |
|
353 |
+
#: includes/class-gglstmp-settings.php:341
|
354 |
msgid "Alternate Language Pages"
|
355 |
msgstr "Сторінки альтернативних мов"
|
356 |
|
357 |
+
#: includes/class-gglstmp-settings.php:355
|
358 |
msgid "Enable to add alternate language pages using Multilanguage plugin."
|
359 |
msgstr ""
|
360 |
"Увімкніть, щоб додати сторінки альтернативних мов використовуючи плагін "
|
361 |
"Multilanguage."
|
362 |
|
363 |
+
#: includes/class-gglstmp-settings.php:369
|
364 |
msgid "Post category"
|
365 |
msgstr "Категорія записів"
|
366 |
|
367 |
+
#: includes/class-gglstmp-settings.php:370
|
368 |
msgid "Post tag"
|
369 |
msgstr "Позначка записів"
|
370 |
|
371 |
+
#: includes/class-gglstmp-settings.php:372
|
372 |
msgid "Sitemap Structure"
|
373 |
msgstr "Структура Sitemap"
|
374 |
|
375 |
+
#: includes/class-gglstmp-settings.php:377
|
376 |
msgid "Post Types"
|
377 |
msgstr "Типи записів"
|
378 |
|
379 |
+
#: includes/class-gglstmp-settings.php:389
|
380 |
msgid "Enable to add post type links to the sitemap."
|
381 |
msgstr "Увімкніть, щоб додати посилання типів записів в sitemap."
|
382 |
|
383 |
+
#: includes/class-gglstmp-settings.php:393
|
384 |
msgid "Taxonomies"
|
385 |
msgstr "Таксономії"
|
386 |
|
387 |
+
#: includes/class-gglstmp-settings.php:404
|
388 |
msgid "Enable to taxonomy links to the sitemap."
|
389 |
msgstr "Увімкніть, щоб додати посилання таксономій в sitemap."
|
390 |
|
391 |
+
#: includes/class-gglstmp-settings.php:462
|
392 |
#, php-format
|
393 |
msgid "%s is in the site root directory."
|
394 |
msgstr "%s знаходиться в кореневому каталозі сайту."
|
395 |
|
396 |
+
#: includes/class-gglstmp-settings.php:463
|
397 |
msgid "The Sitemap file"
|
398 |
msgstr "Файл Sitemap"
|
399 |
|
400 |
+
#: includes/class-gglstmp-settings.php:489
|
401 |
#, php-format
|
402 |
msgid ""
|
403 |
"Can't access XML files. Try to add the following rule %s to your %s file "
|
409 |
"кореневому каталозi сайту. Знайдiть наступну строку %s та додайте цей код "
|
410 |
"пiсля неї."
|
411 |
|
412 |
+
#: includes/class-gglstmp-settings.php:505
|
413 |
msgid "Note"
|
414 |
msgstr "Примітка"
|
415 |
|
416 |
+
#: includes/class-gglstmp-settings.php:506
|
417 |
msgid ""
|
418 |
"Another plugin is providing Google Client functionality and may interrupt "
|
419 |
"proper plugin work."
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: bestwebsoft
|
|
3 |
Donate link: https://bestwebsoft.com/donate/
|
4 |
Tags: add pages to sitemap, add posts to sitemap, add sitemap, google, google sitemap, google sitemap plugin, sitemap file path, update sitemap, google webmaster tools, site map, sitemaps, webmaster tools
|
5 |
Requires at least: 3.9
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 3.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -32,6 +32,8 @@ https://www.youtube.com/watch?v=CgYXKRXpj_0
|
|
32 |
* Custom post types
|
33 |
* Custom taxonomies
|
34 |
* Add a path to your sitemap file in robots.txt automatically
|
|
|
|
|
35 |
* Set the maximum number of URLs in one sitemap file
|
36 |
* Connect your Google Webmaster Tools account to:
|
37 |
* Add website
|
@@ -147,6 +149,10 @@ Please make sure that the problem hasn't been discussed yet on our forum (<https
|
|
147 |
|
148 |
== Changelog ==
|
149 |
|
|
|
|
|
|
|
|
|
150 |
= V3.1.6 - 26.04.2018 =
|
151 |
* Update : Compatibility with PHP versions lower than 5.5 has been added.
|
152 |
|
@@ -348,6 +354,10 @@ Please make sure that the problem hasn't been discussed yet on our forum (<https
|
|
348 |
|
349 |
== Upgrade Notice ==
|
350 |
|
|
|
|
|
|
|
|
|
351 |
= V3.1.6 =
|
352 |
* The compatibility with PHP versions lower than 5.5 version updated.
|
353 |
|
3 |
Donate link: https://bestwebsoft.com/donate/
|
4 |
Tags: add pages to sitemap, add posts to sitemap, add sitemap, google, google sitemap, google sitemap plugin, sitemap file path, update sitemap, google webmaster tools, site map, sitemaps, webmaster tools
|
5 |
Requires at least: 3.9
|
6 |
+
Tested up to: 5.0.3
|
7 |
+
Stable tag: 3.1.7
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
32 |
* Custom post types
|
33 |
* Custom taxonomies
|
34 |
* Add a path to your sitemap file in robots.txt automatically
|
35 |
+
* Add media sitemap [NEW]
|
36 |
+
* Add canonical URLs to pages and posts [NEW]
|
37 |
* Set the maximum number of URLs in one sitemap file
|
38 |
* Connect your Google Webmaster Tools account to:
|
39 |
* Add website
|
149 |
|
150 |
== Changelog ==
|
151 |
|
152 |
+
= V3.1.7 - 15.01.2019 =
|
153 |
+
* NEW : The ability to add media sitemap.
|
154 |
+
* NEW : The ability to add canonical links to pages and posts.
|
155 |
+
|
156 |
= V3.1.6 - 26.04.2018 =
|
157 |
* Update : Compatibility with PHP versions lower than 5.5 has been added.
|
158 |
|
354 |
|
355 |
== Upgrade Notice ==
|
356 |
|
357 |
+
= V3.1.7 =
|
358 |
+
* Functionality expanded
|
359 |
+
* New features added
|
360 |
+
|
361 |
= V3.1.6 =
|
362 |
* The compatibility with PHP versions lower than 5.5 version updated.
|
363 |
|
screenshot-1.png
CHANGED
Binary file
|
screenshot-2.png
CHANGED
Binary file
|
screenshot-3.png
CHANGED
Binary file
|
sitemap-index.xsl
CHANGED
@@ -128,7 +128,7 @@
|
|
128 |
</table>
|
129 |
</div>
|
130 |
<div id="footer">
|
131 |
-
Generated with <a href="https://bestwebsoft.com/products/wordpress/plugins/google-sitemap/">Google Sitemap
|
132 |
</div>
|
133 |
</body>
|
134 |
</html>
|
128 |
</table>
|
129 |
</div>
|
130 |
<div id="footer">
|
131 |
+
Generated with <a href="https://bestwebsoft.com/products/wordpress/plugins/google-sitemap/">Google Sitemap</a> plugin by <a href="https://bestwebsoft.com">BestWebSoft</a>
|
132 |
</div>
|
133 |
</body>
|
134 |
</html>
|
video_sitemap.xsl
ADDED
@@ -0,0 +1,163 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<xsl:stylesheet version="2.0"
|
3 |
+
xmlns:html="http://www.w3.org/TR/REC-html40"
|
4 |
+
xmlns:sitemap="http://www.sitemaps.org/schemas/sitemap/0.9"
|
5 |
+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
6 |
+
xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
|
7 |
+
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
|
8 |
+
<xsl:template match="/">
|
9 |
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
10 |
+
<head>
|
11 |
+
<title>XML Video Sitemap</title>
|
12 |
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
13 |
+
<style type="text/css">
|
14 |
+
body {
|
15 |
+
font-family:"Lucida Grande","Lucida Sans Unicode",Tahoma,Verdana;
|
16 |
+
font-size: 13px;
|
17 |
+
}
|
18 |
+
|
19 |
+
#header {
|
20 |
+
text-align: center;
|
21 |
+
padding-top: 14px;
|
22 |
+
padding-bottom: 29px;
|
23 |
+
}
|
24 |
+
|
25 |
+
h1 {
|
26 |
+
font-weight: normal;
|
27 |
+
font-size: 24px;
|
28 |
+
line-height: 20px;
|
29 |
+
color: #333333;
|
30 |
+
}
|
31 |
+
|
32 |
+
h2 {
|
33 |
+
font-weight: normal;
|
34 |
+
font-size: 13px;
|
35 |
+
color: #aaaaaa;
|
36 |
+
line-height: 10px;
|
37 |
+
}
|
38 |
+
|
39 |
+
#content {
|
40 |
+
background: #f8f8f8;
|
41 |
+
border-top: 1px solid #dddddd;
|
42 |
+
padding-top: 50px;
|
43 |
+
}
|
44 |
+
|
45 |
+
#content a:visited,
|
46 |
+
#content tr:hover a:visited {
|
47 |
+
color: #68009c;
|
48 |
+
}
|
49 |
+
|
50 |
+
table {
|
51 |
+
margin: 0 auto;
|
52 |
+
text-align: left;
|
53 |
+
}
|
54 |
+
|
55 |
+
tr#table-header:hover {
|
56 |
+
background: none;
|
57 |
+
}
|
58 |
+
|
59 |
+
tr:hover {
|
60 |
+
background: #ebebeb;
|
61 |
+
}
|
62 |
+
|
63 |
+
#content tr:hover a {
|
64 |
+
color: #6e6e6e;
|
65 |
+
}
|
66 |
+
|
67 |
+
td {
|
68 |
+
color: #6e6e6e;
|
69 |
+
font-size: 12px;
|
70 |
+
border-bottom: 1px solid #dddddd;
|
71 |
+
border-right: 1px solid #fff;
|
72 |
+
padding: 25px 65px;
|
73 |
+
}
|
74 |
+
|
75 |
+
th {
|
76 |
+
color: #333333;
|
77 |
+
font-size: 12px;
|
78 |
+
border-bottom: 1px solid #dddddd;
|
79 |
+
padding: 5px 50px 17px 5px;
|
80 |
+
text-align: center;
|
81 |
+
}
|
82 |
+
|
83 |
+
tr:nth-child(even) {
|
84 |
+
background-color: #e6f0d3;
|
85 |
+
}
|
86 |
+
|
87 |
+
tr:not(:first-child):hover {
|
88 |
+
background: #ebebeb;
|
89 |
+
}
|
90 |
+
|
91 |
+
a {
|
92 |
+
color: #2384c6;
|
93 |
+
}
|
94 |
+
|
95 |
+
a:hover {
|
96 |
+
color: #6e6e6e;
|
97 |
+
text-decoration: none;
|
98 |
+
}
|
99 |
+
|
100 |
+
tr td:not(:first-child) a, span {
|
101 |
+
display: block;
|
102 |
+
}
|
103 |
+
|
104 |
+
#footer {
|
105 |
+
background: #f8f8f8;
|
106 |
+
font-size: 13px;
|
107 |
+
color: #aaaaaa;
|
108 |
+
padding: 54px 0 20px;
|
109 |
+
text-align: center;
|
110 |
+
}
|
111 |
+
</style>
|
112 |
+
</head>
|
113 |
+
<body>
|
114 |
+
<div id="header">
|
115 |
+
<h1>XML Video Sitemap</h1>
|
116 |
+
<h2>This is a XML Video Sitemap which is supposed to be processed by <a href="http://www.google.com">Google search engine</a>.</h2>
|
117 |
+
</div>
|
118 |
+
<div id="content">
|
119 |
+
<table cellpadding="5" cellspacing="0">
|
120 |
+
<tr id="table-header">
|
121 |
+
<th>URL</th>
|
122 |
+
<th>Video URL</th>
|
123 |
+
<th>Video Title</th>
|
124 |
+
</tr>
|
125 |
+
<xsl:for-each select="sitemap:urlset/sitemap:url">
|
126 |
+
<xsl:for-each select="video:video">
|
127 |
+
<tr>
|
128 |
+
<!--<xsl:if test="position() mod 2 != 1">
|
129 |
+
<xsl:attribute name="class">high</xsl:attribute>
|
130 |
+
</xsl:if>-->
|
131 |
+
<td>
|
132 |
+
<xsl:variable name="itemURL">
|
133 |
+
<xsl:value-of select="../sitemap:loc"/>
|
134 |
+
</xsl:variable>
|
135 |
+
<a href="{$itemURL}">
|
136 |
+
<xsl:value-of select="substring(../sitemap:loc, 0, 70)"/>
|
137 |
+
</a>
|
138 |
+
</td>
|
139 |
+
<td>
|
140 |
+
<xsl:variable name="itemURL">
|
141 |
+
<xsl:value-of select="video:url"/>
|
142 |
+
</xsl:variable>
|
143 |
+
<a href="{$itemURL}">
|
144 |
+
<xsl:value-of select="substring(video:url, 0, 70)"/>
|
145 |
+
</a>
|
146 |
+
</td>
|
147 |
+
<td>
|
148 |
+
<span>
|
149 |
+
<xsl:value-of select="substring(video:title, 0, 70)"/>
|
150 |
+
</span>
|
151 |
+
</td>
|
152 |
+
</tr>
|
153 |
+
</xsl:for-each>
|
154 |
+
</xsl:for-each>
|
155 |
+
</table>
|
156 |
+
</div>
|
157 |
+
<div id="footer">
|
158 |
+
Generated with <a href="https://bestwebsoft.com/products/wordpress/plugins/google-sitemap/">Google Sitemap</a> plugin by <a href="https://bestwebsoft.com">BestWebSoft</a>
|
159 |
+
</div>
|
160 |
+
</body>
|
161 |
+
</html>
|
162 |
+
</xsl:template>
|
163 |
+
</xsl:stylesheet>
|