Version Description
Download this release
Release Info
Developer | jim912 |
Plugin | PS Auto Sitemap |
Version | 1.1.5 |
Comparing to | |
See all releases |
Code changes from version 1.1.4 to 1.1.5
- ps_auto_sitemap.php +43 -37
- readme.txt +5 -3
ps_auto_sitemap.php
CHANGED
@@ -4,26 +4,26 @@ Plugin Name: PS Auto Sitemap
|
|
4 |
Plugin URI: http://www.web-strategy.jp/wp_plugin/ps_auto_sitemap/
|
5 |
Description: Auto generator of a customizable and designed sitemap page.
|
6 |
Author: Hitoshi Omagari
|
7 |
-
Version: 1.1.
|
8 |
Author URI: http://www.web-strategy.jp/
|
9 |
*/
|
10 |
|
11 |
class ps_auto_sitemap {
|
12 |
|
13 |
var $sitemap_prepared_styles = array(
|
14 |
-
'simple'
|
15 |
-
'simple2'
|
16 |
-
'checker'
|
17 |
-
'marker'
|
18 |
-
'document'
|
19 |
-
'label'
|
20 |
-
'music'
|
21 |
-
'arrows'
|
22 |
-
'business'
|
23 |
-
'index'
|
24 |
-
'urban'
|
25 |
-
'under_score'
|
26 |
-
'cube'
|
27 |
);
|
28 |
|
29 |
var $option;
|
@@ -38,16 +38,16 @@ class ps_auto_sitemap {
|
|
38 |
global $wp_version;
|
39 |
$this->wp_version = $wp_version;
|
40 |
|
41 |
-
add_action( 'init', array( &$this, 'ps_auto_sitemap_init') );
|
42 |
-
add_action( 'publish_post', array( &$this, 'delete_sitemap_cache') );
|
43 |
-
add_action( 'publish_page', array( &$this, 'delete_sitemap_cache') );
|
44 |
-
add_filter( 'the_content', array( &$this, 'replace_sitemap_content') );
|
45 |
-
add_action( 'admin_menu', array( &$this, 'add_sitemap_setting_menu') );
|
46 |
-
add_action( 'wp_head', array( &$this, 'print_sitemap_prepare_css' ) );
|
47 |
if ( version_compare( $wp_version, '2.6', '>=' ) ) {
|
48 |
-
add_action( 'admin_print_styles', array( &$this, 'print_sitemap_admin_css' ) );
|
49 |
} else {
|
50 |
-
add_action( 'admin_head', array( &$this, 'print_sitemap_admin_css' ) );
|
51 |
}
|
52 |
}
|
53 |
|
@@ -187,7 +187,7 @@ class ps_auto_sitemap {
|
|
187 |
} else {
|
188 |
$cur_category = get_category( $cat_id );
|
189 |
if ( $cur_category->count ) {
|
190 |
-
$post_list .= '<span class="posts_in_category"><a href="' .
|
191 |
}
|
192 |
}
|
193 |
|
@@ -471,7 +471,7 @@ ORDER BY `posts`.`post_date` DESC";
|
|
471 |
<li><?php _e( 'Define the sitemap\'s ID at "<strong>PostID of the sitemap</strong>" field of the setings.', 'ps_auto_sitemap' ); ?></li>
|
472 |
</ol>
|
473 |
</div>
|
474 |
-
<div id="ps_sitemap_author">This plugin developed by <a href="http://www.
|
475 |
</div>
|
476 |
<?php
|
477 |
}
|
@@ -526,19 +526,19 @@ ORDER BY `posts`.`post_date` DESC";
|
|
526 |
|
527 |
function set_default_options() {
|
528 |
$option = array(
|
529 |
-
'home_list'
|
530 |
-
'post_tree'
|
531 |
-
'page_tree'
|
532 |
-
'post_id'
|
533 |
-
'disp_level'
|
534 |
-
'disp_first'
|
535 |
-
'disp_posts'
|
536 |
-
'ex_cat_ids'
|
537 |
-
'
|
538 |
-
'prepared_style'
|
539 |
-
'use_cache' =>
|
540 |
-
'suppress_link'
|
541 |
-
|
542 |
update_option( 'ps_sitemap', $option );
|
543 |
}
|
544 |
|
@@ -600,4 +600,10 @@ if ( ! function_exists( 'esc_html' ) ) {
|
|
600 |
function esc_html( $text ) {
|
601 |
return wp_specialchars( $text );
|
602 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
603 |
}
|
4 |
Plugin URI: http://www.web-strategy.jp/wp_plugin/ps_auto_sitemap/
|
5 |
Description: Auto generator of a customizable and designed sitemap page.
|
6 |
Author: Hitoshi Omagari
|
7 |
+
Version: 1.1.5
|
8 |
Author URI: http://www.web-strategy.jp/
|
9 |
*/
|
10 |
|
11 |
class ps_auto_sitemap {
|
12 |
|
13 |
var $sitemap_prepared_styles = array(
|
14 |
+
'simple' => 'Simple',
|
15 |
+
'simple2' => 'Simple2',
|
16 |
+
'checker' => 'Checker',
|
17 |
+
'marker' => 'Fluorescent marker',
|
18 |
+
'document' => 'Document tree',
|
19 |
+
'label' => 'Label',
|
20 |
+
'music' => 'Music',
|
21 |
+
'arrows' => 'Arrows',
|
22 |
+
'business' => 'Business',
|
23 |
+
'index' => 'Index',
|
24 |
+
'urban' => 'Urban',
|
25 |
+
'under_score' => 'Under score',
|
26 |
+
'cube' => 'Cube'
|
27 |
);
|
28 |
|
29 |
var $option;
|
38 |
global $wp_version;
|
39 |
$this->wp_version = $wp_version;
|
40 |
|
41 |
+
add_action( 'init' , array( &$this, 'ps_auto_sitemap_init') );
|
42 |
+
add_action( 'publish_post' , array( &$this, 'delete_sitemap_cache') );
|
43 |
+
add_action( 'publish_page' , array( &$this, 'delete_sitemap_cache') );
|
44 |
+
add_filter( 'the_content' , array( &$this, 'replace_sitemap_content') );
|
45 |
+
add_action( 'admin_menu' , array( &$this, 'add_sitemap_setting_menu') );
|
46 |
+
add_action( 'wp_head' , array( &$this, 'print_sitemap_prepare_css' ) );
|
47 |
if ( version_compare( $wp_version, '2.6', '>=' ) ) {
|
48 |
+
add_action( 'admin_print_styles' , array( &$this, 'print_sitemap_admin_css' ) );
|
49 |
} else {
|
50 |
+
add_action( 'admin_head' , array( &$this, 'print_sitemap_admin_css' ) );
|
51 |
}
|
52 |
}
|
53 |
|
187 |
} else {
|
188 |
$cur_category = get_category( $cat_id );
|
189 |
if ( $cur_category->count ) {
|
190 |
+
$post_list .= '<span class="posts_in_category"><a href="' . esc_url( add_query_arg( array( 'category' => $cat_id ), $_SERVER['REQUEST_URI'] ) ) . '"title="'. esc_attr( __( 'Show posts in this category.', 'ps_auto_sitemap' ) ) .'">' . esc_html( __( 'Show posts in this category.', 'ps_auto_sitemap' ) ) . '</a></span>' . "\n";
|
191 |
}
|
192 |
}
|
193 |
|
471 |
<li><?php _e( 'Define the sitemap\'s ID at "<strong>PostID of the sitemap</strong>" field of the setings.', 'ps_auto_sitemap' ); ?></li>
|
472 |
</ol>
|
473 |
</div>
|
474 |
+
<div id="ps_sitemap_author">This plugin developed by <a href="http://www.prime--strategy.co.jp/">Prime Strategy Co.,LTD.</a></div>
|
475 |
</div>
|
476 |
<?php
|
477 |
}
|
526 |
|
527 |
function set_default_options() {
|
528 |
$option = array(
|
529 |
+
'home_list' => '1',
|
530 |
+
'post_tree' => '1',
|
531 |
+
'page_tree' => '1',
|
532 |
+
'post_id' => '',
|
533 |
+
'disp_level' => '0',
|
534 |
+
'disp_first' => 'post',
|
535 |
+
'disp_posts' => 'combine',
|
536 |
+
'ex_cat_ids' => '',
|
537 |
+
'ex_post_ids' => '',
|
538 |
+
'prepared_style' => '',
|
539 |
+
'use_cache' => '1',
|
540 |
+
'suppress_link' => ''
|
541 |
+
);
|
542 |
update_option( 'ps_sitemap', $option );
|
543 |
}
|
544 |
|
600 |
function esc_html( $text ) {
|
601 |
return wp_specialchars( $text );
|
602 |
}
|
603 |
+
}
|
604 |
+
|
605 |
+
if ( ! function_exists( 'esc_url' ) ) {
|
606 |
+
function esc_url( $url, $protocols = null, $_context = 'display' ) {
|
607 |
+
return clean_url( $url, $protocols, $context );
|
608 |
+
}
|
609 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: jim912
|
|
3 |
Tags: sitemap, post, page, seo, cms
|
4 |
Requires at least: 2.3.1
|
5 |
Tested up to: 3.3
|
6 |
-
Stable tag: 1.1.
|
7 |
|
8 |
Auto generator of a customizable and designed sitemap page.
|
9 |
|
@@ -29,6 +29,9 @@ When you use WordPress as CMS of the Web site, you can expect the **effect of SE
|
|
29 |
* Use or not caching sitemap content.
|
30 |
|
31 |
= Latest change =
|
|
|
|
|
|
|
32 |
* **1.1.4**
|
33 |
* Compatible with WordPress 3.3
|
34 |
* bug fix: Notice error and Deprecated functions and arguments.
|
@@ -36,7 +39,6 @@ When you use WordPress as CMS of the Web site, you can expect the **effect of SE
|
|
36 |
* **1.1.3**
|
37 |
* bug fix: Fatal error has occurred in PHP4
|
38 |
|
39 |
-
[Change log]( http://www.web-strategy.jp/wp_plugin/ps_auto_sitemap/#change_log_en "Change log" )
|
40 |
|
41 |
== Installation ==
|
42 |
1. Unzip the downloaded package and upload into your WordPress plugins directory.
|
@@ -67,7 +69,7 @@ Or, if you tell us the theme and your selected style, we might help you.
|
|
67 |
== Links ==
|
68 |
"[PS Disable Auto Formatting](http://wordpress.org/extend/plugins/ps-disable-auto-formatting/ "WordPress editting support plugin")"Stops the automatic forming and the HTML tag removal in the html mode of WordPress, and generates a natural paragraph and changing line.
|
69 |
|
70 |
-
"[CMS service with WordPress](http://www.
|
71 |
|
72 |
== Special Thanks ==
|
73 |
= Translation: =
|
3 |
Tags: sitemap, post, page, seo, cms
|
4 |
Requires at least: 2.3.1
|
5 |
Tested up to: 3.3
|
6 |
+
Stable tag: 1.1.5
|
7 |
|
8 |
Auto generator of a customizable and designed sitemap page.
|
9 |
|
29 |
* Use or not caching sitemap content.
|
30 |
|
31 |
= Latest change =
|
32 |
+
* **1.1.5**
|
33 |
+
* bug fix: Notice error and Deprecated functions and arguments.
|
34 |
+
|
35 |
* **1.1.4**
|
36 |
* Compatible with WordPress 3.3
|
37 |
* bug fix: Notice error and Deprecated functions and arguments.
|
39 |
* **1.1.3**
|
40 |
* bug fix: Fatal error has occurred in PHP4
|
41 |
|
|
|
42 |
|
43 |
== Installation ==
|
44 |
1. Unzip the downloaded package and upload into your WordPress plugins directory.
|
69 |
== Links ==
|
70 |
"[PS Disable Auto Formatting](http://wordpress.org/extend/plugins/ps-disable-auto-formatting/ "WordPress editting support plugin")"Stops the automatic forming and the HTML tag removal in the html mode of WordPress, and generates a natural paragraph and changing line.
|
71 |
|
72 |
+
"[CMS service with WordPress](http://www.prime--strategy.co.jp/ "CMS service with WordPress")" provides you service that uses WordPress as a CMS.
|
73 |
|
74 |
== Special Thanks ==
|
75 |
= Translation: =
|