Version Description
(2017-09-27) = * Checked : WordPress version 4.8.2 operation check. * Updated : Stop setting the default value. * Fixed : availableLanguage and area_served array setting ( Organization )
Download this release
Release Info
Developer | miiitaka |
Plugin | Markup (JSON-LD) structured in schema.org |
Version | 4.1.3 |
Comparing to | |
See all releases |
Code changes from version 4.1.2 to 4.1.3
- css/style.css +11 -7
- includes/admin/wp-structuring-admin-type-article.php +7 -10
- includes/admin/wp-structuring-admin-type-blog-posting.php +7 -10
- includes/admin/wp-structuring-admin-type-local-business.php +18 -13
- includes/admin/wp-structuring-admin-type-news-article.php +7 -10
- includes/admin/wp-structuring-admin-type-organization.php +9 -15
- includes/admin/wp-structuring-admin-type-person.php +6 -9
- includes/admin/wp-structuring-admin-type-website.php +7 -12
- includes/meta/wp-structuring-meta-organization.php +10 -4
- readme.txt +7 -2
- wp-structuring-markup.php +4 -4
css/style.css
CHANGED
@@ -147,13 +147,17 @@
|
|
147 |
|
148 |
/** Media Uploader */
|
149 |
.schema-admin-media-button {
|
150 |
-
|
151 |
-
|
152 |
-
padding:
|
153 |
}
|
154 |
|
155 |
-
.schema-admin-media-button
|
156 |
-
|
157 |
-
|
158 |
-
|
|
|
|
|
|
|
|
|
159 |
}
|
147 |
|
148 |
/** Media Uploader */
|
149 |
.schema-admin-media-button {
|
150 |
+
border: 0;
|
151 |
+
font-size: 12px;
|
152 |
+
padding: 6px 8px 2px 8px;
|
153 |
}
|
154 |
|
155 |
+
.schema-admin-media-button:before {
|
156 |
+
font-size: 16px;
|
157 |
+
height: 16px;
|
158 |
+
width: 16px;
|
159 |
+
}
|
160 |
+
|
161 |
+
.schema-admin-media-button:hover {
|
162 |
+
cursor: pointer;
|
163 |
}
|
includes/admin/wp-structuring-admin-type-article.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Schema.org Type Article
|
4 |
*
|
5 |
* @author Kazuya Takami
|
6 |
-
* @version 4.1.
|
7 |
* @since 1.1.0
|
8 |
* @see wp-structuring-admin-db.php
|
9 |
* @link http://schema.org/Article
|
@@ -32,7 +32,7 @@ class Structuring_Markup_Type_Article {
|
|
32 |
/**
|
33 |
* Form Layout Render
|
34 |
*
|
35 |
-
* @version 4.1.
|
36 |
* @since 1.1.0
|
37 |
* @param array $option
|
38 |
*/
|
@@ -82,7 +82,6 @@ class Structuring_Markup_Type_Article {
|
|
82 |
$html .= '<tr><th>@type :</th><td><small>"Organization"</small></td></tr>';
|
83 |
$html .= '<tr><th><label for="name">Organization Name :</label></th><td>';
|
84 |
$html .= '<input type="text" name="option[' . "name" . ']" id="name" class="regular-text" value="' . esc_attr( $option['name'] ) . '">';
|
85 |
-
$html .= '<small>Default : bloginfo("name")</small>';
|
86 |
$html .= '</td></tr>';
|
87 |
$html .= '</table>';
|
88 |
echo $html;
|
@@ -92,15 +91,13 @@ class Structuring_Markup_Type_Article {
|
|
92 |
$html .= '<tr><th>@type :</th><td><small>"ImageObject"</small></td></tr>';
|
93 |
$html .= '<tr><th><label for="logo">url :</label></th><td>';
|
94 |
$html .= '<input type="text" name="option[' . "logo" . ']" id="logo" class="regular-text" value="' . esc_attr( $option['logo'] ) . '">';
|
95 |
-
$html .= '<button id="media-upload" class="
|
96 |
$html .= '</td></tr>';
|
97 |
$html .= '<tr><th><label for="logo-width">width :</label></th><td>';
|
98 |
-
$html .= '<input type="number" name="option[' . "logo-width" . ']" id="logo-width" min="0" value="' . esc_attr( $option['logo-width'] ) . '">px';
|
99 |
-
$html .= '<small>height <= 600px.</small>';
|
100 |
$html .= '</td></tr>';
|
101 |
$html .= '<tr><th><label for="logo-height">height :</label></th><td>';
|
102 |
-
$html .= '<input type="number" name="option[' . "logo-height" . ']" id="logo-height" min="0" value="' . esc_attr( $option['logo-height'] ) . '">px';
|
103 |
-
$html .= '<small>height <= 60px.</small>';
|
104 |
$html .= '</td></tr>';
|
105 |
$html .= '</table>';
|
106 |
echo $html;
|
@@ -112,12 +109,12 @@ class Structuring_Markup_Type_Article {
|
|
112 |
/**
|
113 |
* Return the default options array
|
114 |
*
|
115 |
-
* @since 4.1.
|
116 |
* @version 2.2.0
|
117 |
* @return array $args
|
118 |
*/
|
119 |
private function get_default_options () {
|
120 |
-
$args['name'] =
|
121 |
$args['content_image'] = '';
|
122 |
$args['logo'] = '';
|
123 |
$args['logo-height'] = 0;
|
3 |
* Schema.org Type Article
|
4 |
*
|
5 |
* @author Kazuya Takami
|
6 |
+
* @version 4.1.3
|
7 |
* @since 1.1.0
|
8 |
* @see wp-structuring-admin-db.php
|
9 |
* @link http://schema.org/Article
|
32 |
/**
|
33 |
* Form Layout Render
|
34 |
*
|
35 |
+
* @version 4.1.3
|
36 |
* @since 1.1.0
|
37 |
* @param array $option
|
38 |
*/
|
82 |
$html .= '<tr><th>@type :</th><td><small>"Organization"</small></td></tr>';
|
83 |
$html .= '<tr><th><label for="name">Organization Name :</label></th><td>';
|
84 |
$html .= '<input type="text" name="option[' . "name" . ']" id="name" class="regular-text" value="' . esc_attr( $option['name'] ) . '">';
|
|
|
85 |
$html .= '</td></tr>';
|
86 |
$html .= '</table>';
|
87 |
echo $html;
|
91 |
$html .= '<tr><th>@type :</th><td><small>"ImageObject"</small></td></tr>';
|
92 |
$html .= '<tr><th><label for="logo">url :</label></th><td>';
|
93 |
$html .= '<input type="text" name="option[' . "logo" . ']" id="logo" class="regular-text" value="' . esc_attr( $option['logo'] ) . '">';
|
94 |
+
$html .= '<button id="media-upload" class="dashicons-before dashicons-admin-media schema-admin-media-button"></button>';
|
95 |
$html .= '</td></tr>';
|
96 |
$html .= '<tr><th><label for="logo-width">width :</label></th><td>';
|
97 |
+
$html .= '<input type="number" name="option[' . "logo-width" . ']" id="logo-width" min="0" value="' . esc_attr( $option['logo-width'] ) . '" placeholder="width <= 600px.">px';
|
|
|
98 |
$html .= '</td></tr>';
|
99 |
$html .= '<tr><th><label for="logo-height">height :</label></th><td>';
|
100 |
+
$html .= '<input type="number" name="option[' . "logo-height" . ']" id="logo-height" min="0" value="' . esc_attr( $option['logo-height'] ) . '" placeholder="height <= 60px.">px';
|
|
|
101 |
$html .= '</td></tr>';
|
102 |
$html .= '</table>';
|
103 |
echo $html;
|
109 |
/**
|
110 |
* Return the default options array
|
111 |
*
|
112 |
+
* @since 4.1.3
|
113 |
* @version 2.2.0
|
114 |
* @return array $args
|
115 |
*/
|
116 |
private function get_default_options () {
|
117 |
+
$args['name'] = '';
|
118 |
$args['content_image'] = '';
|
119 |
$args['logo'] = '';
|
120 |
$args['logo-height'] = 0;
|
includes/admin/wp-structuring-admin-type-blog-posting.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Schema.org Type BlogPosting
|
4 |
*
|
5 |
* @author Kazuya Takami
|
6 |
-
* @version 4.1.
|
7 |
* @since 1.2.0
|
8 |
* @see wp-structuring-admin-db.php
|
9 |
* @link http://schema.org/BlogPosting
|
@@ -32,7 +32,7 @@ class Structuring_Markup_Type_Blog_Posting {
|
|
32 |
/**
|
33 |
* Form Layout Render
|
34 |
*
|
35 |
-
* @version 4.1.
|
36 |
* @since 1.2.0
|
37 |
* @param array $option
|
38 |
*/
|
@@ -82,7 +82,6 @@ class Structuring_Markup_Type_Blog_Posting {
|
|
82 |
$html .= '<tr><th>@type :</th><td><small>"Organization"</small></td></tr>';
|
83 |
$html .= '<tr><th><label for="name">Organization Name :</label></th><td>';
|
84 |
$html .= '<input type="text" name="option[' . "name" . ']" id="name" class="regular-text" value="' . esc_attr( $option['name'] ) . '">';
|
85 |
-
$html .= '<small>Default : bloginfo("name")</small>';
|
86 |
$html .= '</td></tr>';
|
87 |
$html .= '</table>';
|
88 |
echo $html;
|
@@ -92,15 +91,13 @@ class Structuring_Markup_Type_Blog_Posting {
|
|
92 |
$html .= '<tr><th>@type :</th><td><small>"ImageObject"</small></td></tr>';
|
93 |
$html .= '<tr><th><label for="logo">url :</label></th><td>';
|
94 |
$html .= '<input type="text" name="option[' . "logo" . ']" id="logo" class="regular-text" value="' . esc_attr( $option['logo'] ) . '">';
|
95 |
-
$html .= '<button id="media-upload" class="
|
96 |
$html .= '</td></tr>';
|
97 |
$html .= '<tr><th><label for="logo-width">width :</label></th><td>';
|
98 |
-
$html .= '<input type="number" name="option[' . "logo-width" . ']" id="logo-width" min="0" value="' . esc_attr( $option['logo-width'] ) . '">px';
|
99 |
-
$html .= '<small>height <= 600px.</small>';
|
100 |
$html .= '</td></tr>';
|
101 |
$html .= '<tr><th><label for="logo-height">height :</label></th><td>';
|
102 |
-
$html .= '<input type="number" name="option[' . "logo-height" . ']" id="logo-height" min="0" value="' . esc_attr( $option['logo-height'] ) . '">px';
|
103 |
-
$html .= '<small>height <= 60px.</small>';
|
104 |
$html .= '</td></tr>';
|
105 |
$html .= '</table>';
|
106 |
echo $html;
|
@@ -112,12 +109,12 @@ class Structuring_Markup_Type_Blog_Posting {
|
|
112 |
/**
|
113 |
* Return the default options array
|
114 |
*
|
115 |
-
* @version
|
116 |
* @since 2.2.0
|
117 |
* @return array $args
|
118 |
*/
|
119 |
private function get_default_options () {
|
120 |
-
$args['name'] =
|
121 |
$args['content_image'] = '';
|
122 |
$args['logo'] = '';
|
123 |
$args['logo-height'] = 0;
|
3 |
* Schema.org Type BlogPosting
|
4 |
*
|
5 |
* @author Kazuya Takami
|
6 |
+
* @version 4.1.3
|
7 |
* @since 1.2.0
|
8 |
* @see wp-structuring-admin-db.php
|
9 |
* @link http://schema.org/BlogPosting
|
32 |
/**
|
33 |
* Form Layout Render
|
34 |
*
|
35 |
+
* @version 4.1.3
|
36 |
* @since 1.2.0
|
37 |
* @param array $option
|
38 |
*/
|
82 |
$html .= '<tr><th>@type :</th><td><small>"Organization"</small></td></tr>';
|
83 |
$html .= '<tr><th><label for="name">Organization Name :</label></th><td>';
|
84 |
$html .= '<input type="text" name="option[' . "name" . ']" id="name" class="regular-text" value="' . esc_attr( $option['name'] ) . '">';
|
|
|
85 |
$html .= '</td></tr>';
|
86 |
$html .= '</table>';
|
87 |
echo $html;
|
91 |
$html .= '<tr><th>@type :</th><td><small>"ImageObject"</small></td></tr>';
|
92 |
$html .= '<tr><th><label for="logo">url :</label></th><td>';
|
93 |
$html .= '<input type="text" name="option[' . "logo" . ']" id="logo" class="regular-text" value="' . esc_attr( $option['logo'] ) . '">';
|
94 |
+
$html .= '<button id="media-upload" class="dashicons-before dashicons-admin-media schema-admin-media-button"></button>';
|
95 |
$html .= '</td></tr>';
|
96 |
$html .= '<tr><th><label for="logo-width">width :</label></th><td>';
|
97 |
+
$html .= '<input type="number" name="option[' . "logo-width" . ']" id="logo-width" min="0" value="' . esc_attr( $option['logo-width'] ) . '" placeholder="width <= 600px.">px';
|
|
|
98 |
$html .= '</td></tr>';
|
99 |
$html .= '<tr><th><label for="logo-height">height :</label></th><td>';
|
100 |
+
$html .= '<input type="number" name="option[' . "logo-height" . ']" id="logo-height" min="0" value="' . esc_attr( $option['logo-height'] ) . '" placeholder="height <= 60px.">px';
|
|
|
101 |
$html .= '</td></tr>';
|
102 |
$html .= '</table>';
|
103 |
echo $html;
|
109 |
/**
|
110 |
* Return the default options array
|
111 |
*
|
112 |
+
* @version 4.1.3
|
113 |
* @since 2.2.0
|
114 |
* @return array $args
|
115 |
*/
|
116 |
private function get_default_options () {
|
117 |
+
$args['name'] = '';
|
118 |
$args['content_image'] = '';
|
119 |
$args['logo'] = '';
|
120 |
$args['logo-height'] = 0;
|
includes/admin/wp-structuring-admin-type-local-business.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Schema.org Type LocalBusiness
|
4 |
*
|
5 |
* @author Kazuya Takami
|
6 |
-
* @version
|
7 |
* @since 2.3.3
|
8 |
* @see wp-structuring-admin-db.php
|
9 |
* @link http://schema.org/LocalBusiness
|
@@ -15,7 +15,8 @@ class Structuring_Markup_Type_LocalBusiness {
|
|
15 |
/**
|
16 |
* Variable definition.
|
17 |
*
|
18 |
-
* @
|
|
|
19 |
*/
|
20 |
/** LocalBusiness Type defined. */
|
21 |
private $business_type_array = array(
|
@@ -209,7 +210,7 @@ class Structuring_Markup_Type_LocalBusiness {
|
|
209 |
/**
|
210 |
* Form Layout Render
|
211 |
*
|
212 |
-
* @version
|
213 |
* @since 2.3.3
|
214 |
* @param array $option
|
215 |
*/
|
@@ -217,10 +218,10 @@ class Structuring_Markup_Type_LocalBusiness {
|
|
217 |
/** Local Business Type */
|
218 |
$html = '<table class="schema-admin-table">';
|
219 |
$html .= '<caption>Local Business</caption>';
|
220 |
-
$html .= $this->set_form_select( 'business_type', 'Local Business Type', $option['business_type']
|
221 |
-
$html .= $this->set_form_text( 'image', 'An image of the business', $option['image'], true
|
222 |
-
$html .= $this->set_form_text( 'name', 'Business Name', $option['name'], true
|
223 |
-
$html .= $this->set_form_text( 'url', 'Url', $option['url'], true
|
224 |
$html .= $this->set_form_text( 'telephone', 'Telephone', $option['telephone'], false, 'e.g. : +1-880-555-1212' );
|
225 |
$html .= '</table>';
|
226 |
echo $html;
|
@@ -321,15 +322,15 @@ class Structuring_Markup_Type_LocalBusiness {
|
|
321 |
/**
|
322 |
* Return the default options array
|
323 |
*
|
324 |
-
* @since
|
325 |
* @version 2.5.0
|
326 |
* @return array $args
|
327 |
*/
|
328 |
private function get_default_options () {
|
329 |
$args['business_type'] = 'local_business';
|
330 |
-
$args['name'] =
|
331 |
-
$args['image'] =
|
332 |
-
$args['url'] =
|
333 |
$args['telephone'] = '';
|
334 |
$args['food_active'] = '';
|
335 |
$args['menu'] = '';
|
@@ -366,7 +367,7 @@ class Structuring_Markup_Type_LocalBusiness {
|
|
366 |
/**
|
367 |
* Return the form text
|
368 |
*
|
369 |
-
* @version
|
370 |
* @since 2.3.0
|
371 |
* @param string $id
|
372 |
* @param string $display
|
@@ -389,7 +390,11 @@ class Structuring_Markup_Type_LocalBusiness {
|
|
389 |
if ( $required ) {
|
390 |
$format .= ' required';
|
391 |
}
|
392 |
-
$
|
|
|
|
|
|
|
|
|
393 |
|
394 |
return (string) sprintf( $format, $id, $display, $id, $id, $value, $note );
|
395 |
}
|
3 |
* Schema.org Type LocalBusiness
|
4 |
*
|
5 |
* @author Kazuya Takami
|
6 |
+
* @version 4.1.3
|
7 |
* @since 2.3.3
|
8 |
* @see wp-structuring-admin-db.php
|
9 |
* @link http://schema.org/LocalBusiness
|
15 |
/**
|
16 |
* Variable definition.
|
17 |
*
|
18 |
+
* @version 2.3.0
|
19 |
+
* @since 2.3.0
|
20 |
*/
|
21 |
/** LocalBusiness Type defined. */
|
22 |
private $business_type_array = array(
|
210 |
/**
|
211 |
* Form Layout Render
|
212 |
*
|
213 |
+
* @version 4.1.3
|
214 |
* @since 2.3.3
|
215 |
* @param array $option
|
216 |
*/
|
218 |
/** Local Business Type */
|
219 |
$html = '<table class="schema-admin-table">';
|
220 |
$html .= '<caption>Local Business</caption>';
|
221 |
+
$html .= $this->set_form_select( 'business_type', 'Local Business Type', $option['business_type'] );
|
222 |
+
$html .= $this->set_form_text( 'image', 'An image of the business', $option['image'], true );
|
223 |
+
$html .= $this->set_form_text( 'name', 'Business Name', $option['name'], true );
|
224 |
+
$html .= $this->set_form_text( 'url', 'Url', $option['url'], true );
|
225 |
$html .= $this->set_form_text( 'telephone', 'Telephone', $option['telephone'], false, 'e.g. : +1-880-555-1212' );
|
226 |
$html .= '</table>';
|
227 |
echo $html;
|
322 |
/**
|
323 |
* Return the default options array
|
324 |
*
|
325 |
+
* @since 4.1.3
|
326 |
* @version 2.5.0
|
327 |
* @return array $args
|
328 |
*/
|
329 |
private function get_default_options () {
|
330 |
$args['business_type'] = 'local_business';
|
331 |
+
$args['name'] = '';
|
332 |
+
$args['image'] = '';
|
333 |
+
$args['url'] = '';
|
334 |
$args['telephone'] = '';
|
335 |
$args['food_active'] = '';
|
336 |
$args['menu'] = '';
|
367 |
/**
|
368 |
* Return the form text
|
369 |
*
|
370 |
+
* @version 4.1.3
|
371 |
* @since 2.3.0
|
372 |
* @param string $id
|
373 |
* @param string $display
|
390 |
if ( $required ) {
|
391 |
$format .= ' required';
|
392 |
}
|
393 |
+
if ( $note === "" ) {
|
394 |
+
$format .= '></td></tr>';
|
395 |
+
} else {
|
396 |
+
$format .= '><small>%s</small></td></tr>';
|
397 |
+
}
|
398 |
|
399 |
return (string) sprintf( $format, $id, $display, $id, $id, $value, $note );
|
400 |
}
|
includes/admin/wp-structuring-admin-type-news-article.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Schema.org Type News Article
|
4 |
*
|
5 |
* @author Kazuya Takami
|
6 |
-
* @version 4.1.
|
7 |
* @since 1.0.0
|
8 |
* @see wp-structuring-admin-db.php
|
9 |
* @link http://schema.org/NewsArticle
|
@@ -32,7 +32,7 @@ class Structuring_Markup_Type_NewsArticle {
|
|
32 |
/**
|
33 |
* Form Layout Render
|
34 |
*
|
35 |
-
* @version 4.1.
|
36 |
* @since 1.0.0
|
37 |
* @param array $option
|
38 |
*/
|
@@ -82,7 +82,6 @@ class Structuring_Markup_Type_NewsArticle {
|
|
82 |
$html .= '<tr><th>@type :</th><td><small>"Organization"</small></td></tr>';
|
83 |
$html .= '<tr><th><label for="name">Organization Name :</label></th><td>';
|
84 |
$html .= '<input type="text" name="option[' . "name" . ']" id="name" class="regular-text" value="' . esc_attr( $option['name'] ) . '">';
|
85 |
-
$html .= '<small>Default : bloginfo("name")</small>';
|
86 |
$html .= '</td></tr>';
|
87 |
$html .= '</table>';
|
88 |
echo $html;
|
@@ -92,15 +91,13 @@ class Structuring_Markup_Type_NewsArticle {
|
|
92 |
$html .= '<tr><th>@type :</th><td><small>"ImageObject"</small></td></tr>';
|
93 |
$html .= '<tr><th><label for="logo">url :</label></th><td>';
|
94 |
$html .= '<input type="text" name="option[' . "logo" . ']" id="logo" class="regular-text" value="' . esc_attr( $option['logo'] ) . '">';
|
95 |
-
$html .= '<button id="media-upload" class="
|
96 |
$html .= '</td></tr>';
|
97 |
$html .= '<tr><th><label for="logo-width">width :</label></th><td>';
|
98 |
-
$html .= '<input type="number" name="option[' . "logo-width" . ']" id="logo-width" min="0" value="' . esc_attr( $option['logo-width'] ) . '">px';
|
99 |
-
$html .= '<small>height <= 600px.</small>';
|
100 |
$html .= '</td></tr>';
|
101 |
$html .= '<tr><th><label for="logo-height">height :</label></th><td>';
|
102 |
-
$html .= '<input type="number" name="option[' . "logo-height" . ']" id="logo-height" min="0" value="' . esc_attr( $option['logo-height'] ) . '">px';
|
103 |
-
$html .= '<small>height <= 60px.</small>';
|
104 |
$html .= '</td></tr>';
|
105 |
$html .= '</table>';
|
106 |
echo $html;
|
@@ -112,12 +109,12 @@ class Structuring_Markup_Type_NewsArticle {
|
|
112 |
/**
|
113 |
* Return the default options array
|
114 |
*
|
115 |
-
* @since 4.1.
|
116 |
* @version 2.2.0
|
117 |
* @return array $args
|
118 |
*/
|
119 |
private function get_default_options () {
|
120 |
-
$args['name'] =
|
121 |
$args['content_image'] = '';
|
122 |
$args['logo'] = '';
|
123 |
$args['logo-height'] = 0;
|
3 |
* Schema.org Type News Article
|
4 |
*
|
5 |
* @author Kazuya Takami
|
6 |
+
* @version 4.1.3
|
7 |
* @since 1.0.0
|
8 |
* @see wp-structuring-admin-db.php
|
9 |
* @link http://schema.org/NewsArticle
|
32 |
/**
|
33 |
* Form Layout Render
|
34 |
*
|
35 |
+
* @version 4.1.3
|
36 |
* @since 1.0.0
|
37 |
* @param array $option
|
38 |
*/
|
82 |
$html .= '<tr><th>@type :</th><td><small>"Organization"</small></td></tr>';
|
83 |
$html .= '<tr><th><label for="name">Organization Name :</label></th><td>';
|
84 |
$html .= '<input type="text" name="option[' . "name" . ']" id="name" class="regular-text" value="' . esc_attr( $option['name'] ) . '">';
|
|
|
85 |
$html .= '</td></tr>';
|
86 |
$html .= '</table>';
|
87 |
echo $html;
|
91 |
$html .= '<tr><th>@type :</th><td><small>"ImageObject"</small></td></tr>';
|
92 |
$html .= '<tr><th><label for="logo">url :</label></th><td>';
|
93 |
$html .= '<input type="text" name="option[' . "logo" . ']" id="logo" class="regular-text" value="' . esc_attr( $option['logo'] ) . '">';
|
94 |
+
$html .= '<button id="media-upload" class="dashicons-before dashicons-admin-media schema-admin-media-button"></button>';
|
95 |
$html .= '</td></tr>';
|
96 |
$html .= '<tr><th><label for="logo-width">width :</label></th><td>';
|
97 |
+
$html .= '<input type="number" name="option[' . "logo-width" . ']" id="logo-width" min="0" value="' . esc_attr( $option['logo-width'] ) . '" placeholder="width <= 600px.">px';
|
|
|
98 |
$html .= '</td></tr>';
|
99 |
$html .= '<tr><th><label for="logo-height">height :</label></th><td>';
|
100 |
+
$html .= '<input type="number" name="option[' . "logo-height" . ']" id="logo-height" min="0" value="' . esc_attr( $option['logo-height'] ) . '" placeholder="height <= 60px.">px';
|
|
|
101 |
$html .= '</td></tr>';
|
102 |
$html .= '</table>';
|
103 |
echo $html;
|
109 |
/**
|
110 |
* Return the default options array
|
111 |
*
|
112 |
+
* @since 4.1.3
|
113 |
* @version 2.2.0
|
114 |
* @return array $args
|
115 |
*/
|
116 |
private function get_default_options () {
|
117 |
+
$args['name'] = '';
|
118 |
$args['content_image'] = '';
|
119 |
$args['logo'] = '';
|
120 |
$args['logo-height'] = 0;
|
includes/admin/wp-structuring-admin-type-organization.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Schema.org Type Organization
|
4 |
*
|
5 |
* @author Kazuya Takami
|
6 |
-
* @version 4.1.
|
7 |
* @since 1.0.0
|
8 |
* @see wp-structuring-admin-db.php
|
9 |
* @link https://schema.org/Organization
|
@@ -65,7 +65,7 @@ class Structuring_Markup_Type_Organization {
|
|
65 |
/**
|
66 |
* Form Layout Render
|
67 |
*
|
68 |
-
* @version
|
69 |
* @since 1.0.0
|
70 |
* @param array $option
|
71 |
*/
|
@@ -75,16 +75,13 @@ class Structuring_Markup_Type_Organization {
|
|
75 |
$html .= '<caption>Logos</caption>';
|
76 |
$html .= '<tr><th class="require"><label for="name">Organization Name :</label></th><td>';
|
77 |
$html .= '<input type="text" name="option[' . "name" . ']" id="name" class="regular-text" required value="' . esc_attr( $option['name'] ) . '">';
|
78 |
-
$html .= '<small>Default : bloginfo("name")</small>';
|
79 |
$html .= '</td></tr>';
|
80 |
$html .= '<tr><th class="require"><label for="url">url :</label></th><td>';
|
81 |
$html .= '<input type="text" name="option[' . "url" . ']" id="url" class="regular-text" required value="' . esc_attr( $option['url'] ) . '">';
|
82 |
-
$html .= '<small>Default : bloginfo("url")</small>';
|
83 |
$html .= '</td></tr>';
|
84 |
$html .= '<tr><th class="require"><label for="logo">logo :</label></th><td>';
|
85 |
$html .= '<input type="text" name="option[' . "logo" . ']" id="logo" class="regular-text" required value="' . esc_attr( $option['logo'] ) . '">';
|
86 |
-
$html .= '<button id="media-upload" class="
|
87 |
-
$html .= '<small>Default : bloginfo("url") + "/images/logo.png"</small>';
|
88 |
$html .= '</td></tr>';
|
89 |
$html .= '</table>';
|
90 |
echo $html;
|
@@ -100,8 +97,7 @@ class Structuring_Markup_Type_Organization {
|
|
100 |
$html .= '>Enabled';
|
101 |
$html .= '</td></tr>';
|
102 |
$html .= '<tr><th><label for="telephone">telephone :</label></th><td>';
|
103 |
-
$html .= '<input type="text" name="option[' . "telephone" . ']" id="telephone" class="regular-text" value="' . esc_attr( $option['telephone'] ) . '">';
|
104 |
-
$html .= '<small>e.g. : +1-880-555-1212</small>';
|
105 |
$html .= '</td></tr>';
|
106 |
$html .= '<tr><th><label for="contact_type">contactType :</label></th><td>';
|
107 |
$html .= '<select id="contact_type" name="option[' . "contact_type" . ']">';
|
@@ -113,11 +109,9 @@ class Structuring_Markup_Type_Organization {
|
|
113 |
$html .= '>' . $value['display'] . '</option>';
|
114 |
}
|
115 |
$html .= '</select>';
|
116 |
-
$html .= '<small>Default : "customer service"</small>';
|
117 |
$html .= '</td></tr>';
|
118 |
$html .= '<tr><th><label for="email">email :</label></th><td>';
|
119 |
-
$html .= '<input type="email" name="option[' . "email" . ']" id="email" class="regular-text" value="' . esc_attr( $option['email'] ) . '">';
|
120 |
-
$html .= '<small>e.g. : info@example.com</small>';
|
121 |
$html .= '</td></tr>';
|
122 |
$html .= '<tr><th><label for="area_served">areaServed :</label></th><td>';
|
123 |
$html .= '<input type="text" name="option[' . "area_served" . ']" id="area_served" class="regular-text" value="' . esc_attr( $option['area_served'] ) . '">';
|
@@ -160,14 +154,14 @@ class Structuring_Markup_Type_Organization {
|
|
160 |
/**
|
161 |
* Return the default options array
|
162 |
*
|
163 |
-
* @version 4.1.
|
164 |
* @since 1.0.0
|
165 |
* @return array $args
|
166 |
*/
|
167 |
private function get_default_options () {
|
168 |
-
$args['name'] =
|
169 |
-
$args['url'] =
|
170 |
-
$args['logo'] =
|
171 |
$args['contact_point'] = '';
|
172 |
$args['telephone'] = '';
|
173 |
$args['contact_type'] = 'customer_service';
|
3 |
* Schema.org Type Organization
|
4 |
*
|
5 |
* @author Kazuya Takami
|
6 |
+
* @version 4.1.3
|
7 |
* @since 1.0.0
|
8 |
* @see wp-structuring-admin-db.php
|
9 |
* @link https://schema.org/Organization
|
65 |
/**
|
66 |
* Form Layout Render
|
67 |
*
|
68 |
+
* @version 4.1.3
|
69 |
* @since 1.0.0
|
70 |
* @param array $option
|
71 |
*/
|
75 |
$html .= '<caption>Logos</caption>';
|
76 |
$html .= '<tr><th class="require"><label for="name">Organization Name :</label></th><td>';
|
77 |
$html .= '<input type="text" name="option[' . "name" . ']" id="name" class="regular-text" required value="' . esc_attr( $option['name'] ) . '">';
|
|
|
78 |
$html .= '</td></tr>';
|
79 |
$html .= '<tr><th class="require"><label for="url">url :</label></th><td>';
|
80 |
$html .= '<input type="text" name="option[' . "url" . ']" id="url" class="regular-text" required value="' . esc_attr( $option['url'] ) . '">';
|
|
|
81 |
$html .= '</td></tr>';
|
82 |
$html .= '<tr><th class="require"><label for="logo">logo :</label></th><td>';
|
83 |
$html .= '<input type="text" name="option[' . "logo" . ']" id="logo" class="regular-text" required value="' . esc_attr( $option['logo'] ) . '">';
|
84 |
+
$html .= '<button id="media-upload" class="dashicons-before dashicons-admin-media schema-admin-media-button"></button>';
|
|
|
85 |
$html .= '</td></tr>';
|
86 |
$html .= '</table>';
|
87 |
echo $html;
|
97 |
$html .= '>Enabled';
|
98 |
$html .= '</td></tr>';
|
99 |
$html .= '<tr><th><label for="telephone">telephone :</label></th><td>';
|
100 |
+
$html .= '<input type="text" name="option[' . "telephone" . ']" id="telephone" class="regular-text" value="' . esc_attr( $option['telephone'] ) . '" placeholder="e.g. : +1-880-555-1212">';
|
|
|
101 |
$html .= '</td></tr>';
|
102 |
$html .= '<tr><th><label for="contact_type">contactType :</label></th><td>';
|
103 |
$html .= '<select id="contact_type" name="option[' . "contact_type" . ']">';
|
109 |
$html .= '>' . $value['display'] . '</option>';
|
110 |
}
|
111 |
$html .= '</select>';
|
|
|
112 |
$html .= '</td></tr>';
|
113 |
$html .= '<tr><th><label for="email">email :</label></th><td>';
|
114 |
+
$html .= '<input type="email" name="option[' . "email" . ']" id="email" class="regular-text" value="' . esc_attr( $option['email'] ) . '" placeholder="e.g. : info@example.com">';
|
|
|
115 |
$html .= '</td></tr>';
|
116 |
$html .= '<tr><th><label for="area_served">areaServed :</label></th><td>';
|
117 |
$html .= '<input type="text" name="option[' . "area_served" . ']" id="area_served" class="regular-text" value="' . esc_attr( $option['area_served'] ) . '">';
|
154 |
/**
|
155 |
* Return the default options array
|
156 |
*
|
157 |
+
* @version 4.1.3
|
158 |
* @since 1.0.0
|
159 |
* @return array $args
|
160 |
*/
|
161 |
private function get_default_options () {
|
162 |
+
$args['name'] = '';
|
163 |
+
$args['url'] = '';
|
164 |
+
$args['logo'] = '';
|
165 |
$args['contact_point'] = '';
|
166 |
$args['telephone'] = '';
|
167 |
$args['contact_type'] = 'customer_service';
|
includes/admin/wp-structuring-admin-type-person.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Schema.org Type Person
|
4 |
*
|
5 |
* @author Kazuya Takami
|
6 |
-
* @version
|
7 |
* @since 2.4.0
|
8 |
* @see wp-structuring-admin-db.php
|
9 |
* @link https://schema.org/Person
|
@@ -52,7 +52,7 @@ class Structuring_Markup_Type_Person {
|
|
52 |
/**
|
53 |
* Form Layout Render
|
54 |
*
|
55 |
-
* @version
|
56 |
* @since 2.4.0
|
57 |
* @param array $option
|
58 |
*/
|
@@ -62,11 +62,9 @@ class Structuring_Markup_Type_Person {
|
|
62 |
$html .= '<caption>Basic Settings</caption>';
|
63 |
$html .= '<tr><th class="require"><label for="name">Name :</label></th><td>';
|
64 |
$html .= '<input type="text" name="option[' . "name" . ']" id="name" class="regular-text" required value="' . esc_attr( $option['name'] ) . '">';
|
65 |
-
$html .= '<small>Default : bloginfo("name")</small>';
|
66 |
$html .= '</td></tr>';
|
67 |
$html .= '<tr><th class="require"><label for="url">url :</label></th><td>';
|
68 |
$html .= '<input type="text" name="option[' . "url" . ']" id="url" class="regular-text" required value="' . esc_attr( $option['url'] ) . '">';
|
69 |
-
$html .= '<small>Default : bloginfo("url")</small>';
|
70 |
$html .= '</td></tr>';
|
71 |
$html .= '</table>';
|
72 |
echo $html;
|
@@ -75,8 +73,7 @@ class Structuring_Markup_Type_Person {
|
|
75 |
$html = '<table class="schema-admin-table">';
|
76 |
$html .= '<caption>Place Settings</caption>';
|
77 |
$html .= '<tr><th class="require"><label for="addressCountry">addressCountry :</label></th><td>';
|
78 |
-
$html .= '<input type="text" name="option[' . "addressCountry" . ']" id="addressCountry" class="regular-text" required value="' . esc_attr( $option['addressCountry'] ) . '">';
|
79 |
-
$html .= '<small>e.g. Japan</small>';
|
80 |
$html .= '</td></tr>';
|
81 |
$html .= '</table>';
|
82 |
echo $html;
|
@@ -99,13 +96,13 @@ class Structuring_Markup_Type_Person {
|
|
99 |
/**
|
100 |
* Return the default options array
|
101 |
*
|
102 |
-
* @since
|
103 |
* @version 2.4.0
|
104 |
* @return array $args
|
105 |
*/
|
106 |
private function get_default_options () {
|
107 |
-
$args['name'] =
|
108 |
-
$args['url'] =
|
109 |
$args['addressCountry'] = '';
|
110 |
|
111 |
foreach ( $this->social_array as $value ) {
|
3 |
* Schema.org Type Person
|
4 |
*
|
5 |
* @author Kazuya Takami
|
6 |
+
* @version 4.1.3
|
7 |
* @since 2.4.0
|
8 |
* @see wp-structuring-admin-db.php
|
9 |
* @link https://schema.org/Person
|
52 |
/**
|
53 |
* Form Layout Render
|
54 |
*
|
55 |
+
* @version 4.1.3
|
56 |
* @since 2.4.0
|
57 |
* @param array $option
|
58 |
*/
|
62 |
$html .= '<caption>Basic Settings</caption>';
|
63 |
$html .= '<tr><th class="require"><label for="name">Name :</label></th><td>';
|
64 |
$html .= '<input type="text" name="option[' . "name" . ']" id="name" class="regular-text" required value="' . esc_attr( $option['name'] ) . '">';
|
|
|
65 |
$html .= '</td></tr>';
|
66 |
$html .= '<tr><th class="require"><label for="url">url :</label></th><td>';
|
67 |
$html .= '<input type="text" name="option[' . "url" . ']" id="url" class="regular-text" required value="' . esc_attr( $option['url'] ) . '">';
|
|
|
68 |
$html .= '</td></tr>';
|
69 |
$html .= '</table>';
|
70 |
echo $html;
|
73 |
$html = '<table class="schema-admin-table">';
|
74 |
$html .= '<caption>Place Settings</caption>';
|
75 |
$html .= '<tr><th class="require"><label for="addressCountry">addressCountry :</label></th><td>';
|
76 |
+
$html .= '<input type="text" name="option[' . "addressCountry" . ']" id="addressCountry" class="regular-text" required value="' . esc_attr( $option['addressCountry'] ) . '" placeholder="e.g. Japan">';
|
|
|
77 |
$html .= '</td></tr>';
|
78 |
$html .= '</table>';
|
79 |
echo $html;
|
96 |
/**
|
97 |
* Return the default options array
|
98 |
*
|
99 |
+
* @since 4.1.3
|
100 |
* @version 2.4.0
|
101 |
* @return array $args
|
102 |
*/
|
103 |
private function get_default_options () {
|
104 |
+
$args['name'] = '';
|
105 |
+
$args['url'] = '';
|
106 |
$args['addressCountry'] = '';
|
107 |
|
108 |
foreach ( $this->social_array as $value ) {
|
includes/admin/wp-structuring-admin-type-website.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Schema.org Type WebSite
|
4 |
*
|
5 |
* @author Kazuya Takami
|
6 |
-
* @version
|
7 |
* @since 1.0.0
|
8 |
* @see wp-structuring-admin-db.php
|
9 |
* @link https://schema.org/WebSite
|
@@ -33,7 +33,7 @@ class Structuring_Markup_Type_Website {
|
|
33 |
/**
|
34 |
* Form Layout Render
|
35 |
*
|
36 |
-
* @version
|
37 |
* @since 2.3.3
|
38 |
* @param array $option
|
39 |
*/
|
@@ -42,15 +42,12 @@ class Structuring_Markup_Type_Website {
|
|
42 |
$html .= '<caption>Basic Setting</caption>';
|
43 |
$html .= '<tr><th class="require"><label for="name">name :</label></th><td>';
|
44 |
$html .= '<input type="text" name="option[' . "name" . ']" id="name" class="regular-text" required value="' . esc_attr( $option['name'] ) . '">';
|
45 |
-
$html .= '<small>Default : bloginfo("name")</small>';
|
46 |
$html .= '</td></tr>';
|
47 |
$html .= '<tr><th><label for="alternateName">alternateName :</label></th><td>';
|
48 |
$html .= '<input type="text" name="option[' . "alternateName" . ']" id="alternateName" class="regular-text" value="' . esc_attr( $option['alternateName'] ) . '">';
|
49 |
-
$html .= '<small>Default : bloginfo("name")</small>';
|
50 |
$html .= '</td></tr>';
|
51 |
$html .= '<tr><th class="require"><label for="url">url :</label></th><td>';
|
52 |
$html .= '<input type="text" name="option[' . "url" . ']" id="url" class="regular-text" required value="' . esc_attr( $option['url'] ) . '">';
|
53 |
-
$html .= '<small>Default : bloginfo("url")</small>';
|
54 |
$html .= '</td></tr>';
|
55 |
$html .= '</table>';
|
56 |
echo $html;
|
@@ -66,7 +63,6 @@ class Structuring_Markup_Type_Website {
|
|
66 |
$html .= '</td></tr>';
|
67 |
$html .= '<tr><th><label for="target">target :</label></th><td>';
|
68 |
$html .= '<input type="text" name="option[' . "target" . ']" id="target" class="regular-text" value="' . esc_attr( $option['target'] ) . '">';
|
69 |
-
$html .= '<small>Default : bloginfo("url") + /?s=</small>';
|
70 |
$html .= '</td></tr>';
|
71 |
$html .= '</table>';
|
72 |
echo $html;
|
@@ -82,7 +78,6 @@ class Structuring_Markup_Type_Website {
|
|
82 |
$html .= '</td></tr>';
|
83 |
$html .= '<tr><th><label for="target_app">target :</label></th><td>';
|
84 |
$html .= '<input type="text" name="option[' . "target_app" . ']" id="target_app" class="regular-text" value="' . esc_attr( $option['target_app'] ) . '">';
|
85 |
-
$html .= '<small>e.g. android-app://com.example/https/query.example.com/search/?q=</small>';
|
86 |
$html .= '</td></tr>';
|
87 |
$html .= '</table>';
|
88 |
echo $html;
|
@@ -94,18 +89,18 @@ class Structuring_Markup_Type_Website {
|
|
94 |
/**
|
95 |
* Return the default options array
|
96 |
*
|
97 |
-
* @version
|
98 |
* @since 1.0.0
|
99 |
* @return array $args
|
100 |
*/
|
101 |
private function get_default_options () {
|
102 |
$args = array();
|
103 |
|
104 |
-
$args['name'] =
|
105 |
-
$args['alternateName'] =
|
106 |
-
$args['url'] =
|
107 |
$args['potential_action'] = '';
|
108 |
-
$args['target'] =
|
109 |
$args['potential_action_app'] = '';
|
110 |
$args['target_app'] = '';
|
111 |
|
3 |
* Schema.org Type WebSite
|
4 |
*
|
5 |
* @author Kazuya Takami
|
6 |
+
* @version 4.1.3
|
7 |
* @since 1.0.0
|
8 |
* @see wp-structuring-admin-db.php
|
9 |
* @link https://schema.org/WebSite
|
33 |
/**
|
34 |
* Form Layout Render
|
35 |
*
|
36 |
+
* @version 4.1.3
|
37 |
* @since 2.3.3
|
38 |
* @param array $option
|
39 |
*/
|
42 |
$html .= '<caption>Basic Setting</caption>';
|
43 |
$html .= '<tr><th class="require"><label for="name">name :</label></th><td>';
|
44 |
$html .= '<input type="text" name="option[' . "name" . ']" id="name" class="regular-text" required value="' . esc_attr( $option['name'] ) . '">';
|
|
|
45 |
$html .= '</td></tr>';
|
46 |
$html .= '<tr><th><label for="alternateName">alternateName :</label></th><td>';
|
47 |
$html .= '<input type="text" name="option[' . "alternateName" . ']" id="alternateName" class="regular-text" value="' . esc_attr( $option['alternateName'] ) . '">';
|
|
|
48 |
$html .= '</td></tr>';
|
49 |
$html .= '<tr><th class="require"><label for="url">url :</label></th><td>';
|
50 |
$html .= '<input type="text" name="option[' . "url" . ']" id="url" class="regular-text" required value="' . esc_attr( $option['url'] ) . '">';
|
|
|
51 |
$html .= '</td></tr>';
|
52 |
$html .= '</table>';
|
53 |
echo $html;
|
63 |
$html .= '</td></tr>';
|
64 |
$html .= '<tr><th><label for="target">target :</label></th><td>';
|
65 |
$html .= '<input type="text" name="option[' . "target" . ']" id="target" class="regular-text" value="' . esc_attr( $option['target'] ) . '">';
|
|
|
66 |
$html .= '</td></tr>';
|
67 |
$html .= '</table>';
|
68 |
echo $html;
|
78 |
$html .= '</td></tr>';
|
79 |
$html .= '<tr><th><label for="target_app">target :</label></th><td>';
|
80 |
$html .= '<input type="text" name="option[' . "target_app" . ']" id="target_app" class="regular-text" value="' . esc_attr( $option['target_app'] ) . '">';
|
|
|
81 |
$html .= '</td></tr>';
|
82 |
$html .= '</table>';
|
83 |
echo $html;
|
89 |
/**
|
90 |
* Return the default options array
|
91 |
*
|
92 |
+
* @version 4.1.3
|
93 |
* @since 1.0.0
|
94 |
* @return array $args
|
95 |
*/
|
96 |
private function get_default_options () {
|
97 |
$args = array();
|
98 |
|
99 |
+
$args['name'] = '';
|
100 |
+
$args['alternateName'] = '';
|
101 |
+
$args['url'] = '';
|
102 |
$args['potential_action'] = '';
|
103 |
+
$args['target'] = '';
|
104 |
$args['potential_action_app'] = '';
|
105 |
$args['target_app'] = '';
|
106 |
|
includes/meta/wp-structuring-meta-organization.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Schema.org Type Organization
|
4 |
*
|
5 |
* @author Kazuya Takami
|
6 |
-
* @version 4.
|
7 |
* @since 4.0.0
|
8 |
* @link https://schema.org/Organization
|
9 |
* @link https://developers.google.com/search/docs/guides/enhance-site
|
@@ -13,7 +13,7 @@ class Structuring_Markup_Meta_Organization {
|
|
13 |
/**
|
14 |
* Setting schema.org Organization
|
15 |
*
|
16 |
-
* @version 4.
|
17 |
* @since 4.0.0
|
18 |
* @param array $options
|
19 |
* @return array $args
|
@@ -40,7 +40,10 @@ class Structuring_Markup_Meta_Organization {
|
|
40 |
$contact_point_data['email'] = isset( $options['email'] ) ? esc_html( $options['email'] ) : "";
|
41 |
}
|
42 |
if ( !empty( $options['area_served'] ) ) {
|
43 |
-
$
|
|
|
|
|
|
|
44 |
}
|
45 |
if ( isset( $options['contact_point_1'] ) && $options['contact_point_1'] === 'on' ) {
|
46 |
$contact_point_data['contactOption'][] = 'HearingImpairedSupported';
|
@@ -49,7 +52,10 @@ class Structuring_Markup_Meta_Organization {
|
|
49 |
$contact_point_data['contactOption'][] = 'TollFree';
|
50 |
}
|
51 |
if ( !empty( $options['available_language'] ) ) {
|
52 |
-
$
|
|
|
|
|
|
|
53 |
}
|
54 |
|
55 |
$contact_point["contactPoint"] = array( $contact_point_data );
|
3 |
* Schema.org Type Organization
|
4 |
*
|
5 |
* @author Kazuya Takami
|
6 |
+
* @version 4.1.3
|
7 |
* @since 4.0.0
|
8 |
* @link https://schema.org/Organization
|
9 |
* @link https://developers.google.com/search/docs/guides/enhance-site
|
13 |
/**
|
14 |
* Setting schema.org Organization
|
15 |
*
|
16 |
+
* @version 4.1.3
|
17 |
* @since 4.0.0
|
18 |
* @param array $options
|
19 |
* @return array $args
|
40 |
$contact_point_data['email'] = isset( $options['email'] ) ? esc_html( $options['email'] ) : "";
|
41 |
}
|
42 |
if ( !empty( $options['area_served'] ) ) {
|
43 |
+
$array = explode( ',', esc_html( $options['area_served'] ) );
|
44 |
+
for ( $i = 0; $i < count( $array ); $i++ ) {
|
45 |
+
$contact_point_data['areaServed'][] = isset( $options['area_served'] ) ? $array[$i] : "";
|
46 |
+
}
|
47 |
}
|
48 |
if ( isset( $options['contact_point_1'] ) && $options['contact_point_1'] === 'on' ) {
|
49 |
$contact_point_data['contactOption'][] = 'HearingImpairedSupported';
|
52 |
$contact_point_data['contactOption'][] = 'TollFree';
|
53 |
}
|
54 |
if ( !empty( $options['available_language'] ) ) {
|
55 |
+
$array = explode( ',', esc_html( $options['available_language'] ) );
|
56 |
+
for ( $i = 0; $i < count( $array ); $i++ ) {
|
57 |
+
$contact_point_data['availableLanguage'][] = isset( $options['available_language'] ) ? $array[$i] : "";
|
58 |
+
}
|
59 |
}
|
60 |
|
61 |
$contact_point["contactPoint"] = array( $contact_point_data );
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
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.8.
|
6 |
-
Stable tag: 4.1.
|
7 |
|
8 |
Allows you to include schema.org JSON-LD syntax markup on your website
|
9 |
|
@@ -54,6 +54,11 @@ if ( shortcode_exists( 'wp-structuring-markup-breadcrumb' ) ) {
|
|
54 |
|
55 |
== Changelog ==
|
56 |
|
|
|
|
|
|
|
|
|
|
|
57 |
= 4.1.2 (2017-08-23) =
|
58 |
* Checked : WordPress version 4.8.1 operation check.
|
59 |
|
2 |
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.8.2
|
6 |
+
Stable tag: 4.1.3
|
7 |
|
8 |
Allows you to include schema.org JSON-LD syntax markup on your website
|
9 |
|
54 |
|
55 |
== Changelog ==
|
56 |
|
57 |
+
= 4.1.3 (2017-09-27) =
|
58 |
+
* Checked : WordPress version 4.8.2 operation check.
|
59 |
+
* Updated : Stop setting the default value.
|
60 |
+
* Fixed : availableLanguage and area_served array setting ( Organization )
|
61 |
+
|
62 |
= 4.1.2 (2017-08-23) =
|
63 |
* Checked : WordPress version 4.8.1 operation check.
|
64 |
|
wp-structuring-markup.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Markup (JSON-LD) structured in schema.org
|
4 |
Plugin URI: https://github.com/miiitaka/wp-structuring-markup
|
5 |
Description: Allows you to include schema.org JSON-LD syntax markup on your website
|
6 |
-
Version: 4.1.
|
7 |
Author: Kazuya Takami
|
8 |
Author URI: https://www.terakoya.work/
|
9 |
License: GPLv2 or later
|
@@ -18,7 +18,7 @@ new Structuring_Markup();
|
|
18 |
* Schema.org Basic Class
|
19 |
*
|
20 |
* @author Kazuya Takami
|
21 |
-
* @version 4.1.
|
22 |
* @since 1.0.0
|
23 |
*/
|
24 |
class Structuring_Markup {
|
@@ -26,10 +26,10 @@ class Structuring_Markup {
|
|
26 |
/**
|
27 |
* Variable definition version.
|
28 |
*
|
29 |
-
* @version 4.1.
|
30 |
* @since 1.3.0
|
31 |
*/
|
32 |
-
private $version = '4.1.
|
33 |
|
34 |
/**
|
35 |
* Variable definition Text Domain.
|
3 |
Plugin Name: Markup (JSON-LD) structured in schema.org
|
4 |
Plugin URI: https://github.com/miiitaka/wp-structuring-markup
|
5 |
Description: Allows you to include schema.org JSON-LD syntax markup on your website
|
6 |
+
Version: 4.1.3
|
7 |
Author: Kazuya Takami
|
8 |
Author URI: https://www.terakoya.work/
|
9 |
License: GPLv2 or later
|
18 |
* Schema.org Basic Class
|
19 |
*
|
20 |
* @author Kazuya Takami
|
21 |
+
* @version 4.1.3
|
22 |
* @since 1.0.0
|
23 |
*/
|
24 |
class Structuring_Markup {
|
26 |
/**
|
27 |
* Variable definition version.
|
28 |
*
|
29 |
+
* @version 4.1.3
|
30 |
* @since 1.3.0
|
31 |
*/
|
32 |
+
private $version = '4.1.3';
|
33 |
|
34 |
/**
|
35 |
* Variable definition Text Domain.
|