Markup (JSON-LD) structured in schema.org - Version 3.1.1

Version Description

Download this release

Release Info

Developer miiitaka
Plugin Icon 128x128 Markup (JSON-LD) structured in schema.org
Version 3.1.1
Comparing to
See all releases

Code changes from version 3.1.0 to 3.1.1

includes/wp-structuring-admin-type-site-navigation.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Schema.org Site Navigation Element
4
+ *
5
+ * @author Kazuya Takami
6
+ * @version 3.1.0
7
+ * @since 3.1.0
8
+ * @see wp-structuring-admin-db.php
9
+ * @link https://schema.org/SiteNavigationElement
10
+ */
11
+ class Structuring_Markup_Type_Site_Navigation {
12
+
13
+ /**
14
+ * Constructor Define.
15
+ *
16
+ * @version 3.1.0
17
+ * @since 3.1.0
18
+ * @param array $option
19
+ */
20
+ public function __construct ( array $option ) {
21
+ /** Default Value Set */
22
+ if ( empty( $option ) ) {
23
+ $option = $this->get_default_options( $option );
24
+ }
25
+ $this->page_render( $option );
26
+ }
27
+
28
+ /**
29
+ * Form Layout Render
30
+ *
31
+ * @version 3.1.0
32
+ * @since 3.1.0
33
+ * @param array $option
34
+ */
35
+ private function page_render ( array $option ) {
36
+ $html = '<table class="schema-admin-table">';
37
+ $html .= '<caption>Basic Setting</caption>';
38
+ $html .= '<tr><th class="require"><label for="menu_name">Menu Name :</label></th><td>';
39
+ $html .= '<input type="text" name="option[' . "menu_name" . ']" id="menu_name" class="regular-text" required value="' . esc_attr( $option['menu_name'] ) . '">';
40
+ $html .= '<small>Menu ID, name, or slug</small>';
41
+ $html .= '</td></tr>';
42
+ $html .= '</table>';
43
+ echo $html;
44
+
45
+ echo '<p>Setting Knowledge : <a href="https://schema.org/SiteNavigationElement" target="_blank">https://schema.org/SiteNavigationElement</a></p>';
46
+ submit_button();
47
+ }
48
+
49
+ /**
50
+ * Return the default options array
51
+ *
52
+ * @version 3.1.0
53
+ * @since 3.1.0
54
+ * @param array $args
55
+ * @return array $args
56
+ */
57
+ private function get_default_options ( array $args ) {
58
+ $args['menu_name'] = '';
59
+
60
+ return (array) $args;
61
+ }
62
+ }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: miiitaka
3
  Tags: schema, schema.org, json, json-ld, seo, post, posts, google, shortcode, breadcrumb
4
  Requires at least: 4.3.1
5
  Tested up to: 4.6.1
6
- Stable tag: 3.1.0
7
 
8
  Allows you to include schema.org JSON-LD syntax markup on your website
9
 
3
  Tags: schema, schema.org, json, json-ld, seo, post, posts, google, shortcode, breadcrumb
4
  Requires at least: 4.3.1
5
  Tested up to: 4.6.1
6
+ Stable tag: 3.1.1
7
 
8
  Allows you to include schema.org JSON-LD syntax markup on your website
9
 
wp-structuring-markup.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Markup (JSON-LD) structured in schema.org
4
  Plugin URI: https://wordpress.org/plugins/wp-structuring-markup/
5
  Description: Allows you to include schema.org JSON-LD syntax markup on your website
6
- Version: 3.1.0
7
  Author: Kazuya Takami
8
  Author URI: http://programp.com/
9
  License: GPLv2 or later
@@ -26,11 +26,11 @@ class Structuring_Markup {
26
  /**
27
  * Variable definition.
28
  *
29
- * @version 3.1.0
30
  * @since 1.3.0
31
  */
32
  private $text_domain = 'wp-structuring-markup';
33
- private $version = '3.1.0';
34
 
35
  /**
36
  * Constructor Define.
3
  Plugin Name: Markup (JSON-LD) structured in schema.org
4
  Plugin URI: https://wordpress.org/plugins/wp-structuring-markup/
5
  Description: Allows you to include schema.org JSON-LD syntax markup on your website
6
+ Version: 3.1.1
7
  Author: Kazuya Takami
8
  Author URI: http://programp.com/
9
  License: GPLv2 or later
26
  /**
27
  * Variable definition.
28
  *
29
+ * @version 3.1.1
30
  * @since 1.3.0
31
  */
32
  private $text_domain = 'wp-structuring-markup';
33
+ private $version = '3.1.1';
34
 
35
  /**
36
  * Constructor Define.