VK All in One Expansion Unit - Version 9.6.2.0

Version Description

[ Specification change ][ HTML SiteMap ] Add class name. [ bug fix ][ HTML SiteMap ] PHP undefined error

Download this release

Release Info

Developer kurudrive
Plugin Icon 128x128 VK All in One Expansion Unit
Version 9.6.2.0
Comparing to
See all releases

Code changes from version 9.6.1.0 to 9.6.2.0

Files changed (3) hide show
  1. inc/sitemap-page/sitemap-page.php +10 -6
  2. readme.txt +5 -1
  3. vkExUnit.php +1 -1
inc/sitemap-page/sitemap-page.php CHANGED
@@ -88,9 +88,12 @@ function vkExUnit_sitemap( $atts ) {
88
  /* Exclude Page ids by ExUnit Main Setting Page
89
  /*-------------------------------------------*/
90
  $options = veu_get_sitemap_options();
91
- $excludes = esc_attr( $options['excludeId'] );
92
- $excludes = str_replace( '', ',', $excludes );
93
- $excludes = mb_convert_kana( $excludes, 'kvrn' );
 
 
 
94
 
95
  /*-------------------------------------------*/
96
  /* Exclude Page ids by Page Edit meta box
@@ -161,7 +164,7 @@ function vkExUnit_sitemap( $atts ) {
161
  $postTypeName = $post_type_object->labels->name;
162
  $postTypeTopUrl = get_post_type_archive_link( $postType );
163
  }
164
- $sitemap_html .= '<h4><a href="' . $postTypeTopUrl . '">' . esc_html( $postTypeName ) . '</a></h4>' . PHP_EOL;
165
 
166
  /* Taxonomy name
167
  /*-------------------------------------------*/
@@ -174,11 +177,12 @@ function vkExUnit_sitemap( $atts ) {
174
 
175
  // 管理画面のUIに表示させているものだけに限定
176
  if ( $taxonomy_object->show_in_menu ) {
177
- $sitemap_html .= '<h5>' . $taxonomy_object->label . '</h5>' . PHP_EOL;
178
 
179
  /* Term
180
  /*-------------------------------------------*/
181
- $sitemap_html .= '<ul class="link-list">' . PHP_EOL;
 
182
  $args = array(
183
  'taxonomy' => $taxonomy_object->name,
184
  'title_li' => '',
88
  /* Exclude Page ids by ExUnit Main Setting Page
89
  /*-------------------------------------------*/
90
  $options = veu_get_sitemap_options();
91
+ $excludes = '';
92
+ if ( isset( $options['excludeId'] ) ) {
93
+ $excludes = esc_attr( $options['excludeId'] );
94
+ $excludes = str_replace( ',', ',', $excludes );
95
+ $excludes = mb_convert_kana( $excludes, 'kvrn' );
96
+ }
97
 
98
  /*-------------------------------------------*/
99
  /* Exclude Page ids by Page Edit meta box
164
  $postTypeName = $post_type_object->labels->name;
165
  $postTypeTopUrl = get_post_type_archive_link( $postType );
166
  }
167
+ $sitemap_html .= '<h4 class="sitemap-post-type-' . $postType . '"><a href="' . $postTypeTopUrl . '">' . esc_html( $postTypeName ) . '</a></h4>' . PHP_EOL;
168
 
169
  /* Taxonomy name
170
  /*-------------------------------------------*/
177
 
178
  // 管理画面のUIに表示させているものだけに限定
179
  if ( $taxonomy_object->show_in_menu ) {
180
+ $sitemap_html .= '<h5 class="sitemap-taxonomy-' . esc_attr( $taxonomy_object->name ) . '">' . wp_kses_post( $taxonomy_object->label ) . '</h5>' . PHP_EOL;
181
 
182
  /* Term
183
  /*-------------------------------------------*/
184
+
185
+ $sitemap_html .= '<ul class="sitemap-terms-' . esc_attr( $taxonomy_object->name ) . ' link-list ">' . PHP_EOL;
186
  $args = array(
187
  'taxonomy' => $taxonomy_object->name,
188
  'title_li' => '',
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
  Requires at least: 5.1.0
6
  Tested up to: 5.2.2
7
- Stable tag: 9.6.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -87,6 +87,10 @@ e.g.
87
 
88
  == Changelog ==
89
 
 
 
 
 
90
  = 9.6.1.0 =
91
  [ Add function ][ HTML SiteMap ] Exclude post type
92
  [ Specification change ][ HTML SiteMap ] Abolished hidden page setting on ExUnit Main Setting Page.
4
  Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
  Requires at least: 5.1.0
6
  Tested up to: 5.2.2
7
+ Stable tag: 9.6.2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
87
 
88
  == Changelog ==
89
 
90
+ = 9.6.2.0 =
91
+ [ Specification change ][ HTML SiteMap ] Add class name.
92
+ [ bug fix ][ HTML SiteMap ] PHP undefined error
93
+
94
  = 9.6.1.0 =
95
  [ Add function ][ HTML SiteMap ] Exclude post type
96
  [ Specification change ][ HTML SiteMap ] Abolished hidden page setting on ExUnit Main Setting Page.
vkExUnit.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: VK All in One Expansion Unit
4
  * Plugin URI: https://ex-unit.nagoya
5
  * Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
6
- * Version: 9.6.1.0
7
  * Author: Vektor,Inc.
8
  * Text Domain: vk-all-in-one-expansion-unit
9
  * Domain Path: /languages
3
  * Plugin Name: VK All in One Expansion Unit
4
  * Plugin URI: https://ex-unit.nagoya
5
  * Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
6
+ * Version: 9.6.2.0
7
  * Author: Vektor,Inc.
8
  * Text Domain: vk-all-in-one-expansion-unit
9
  * Domain Path: /languages