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

Version Description

Download this release

Release Info

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

Code changes from version 1.0.0 to 1.0.1

wp-structuring-admin-post.php CHANGED
@@ -102,7 +102,7 @@ class Structuring_Markup_Admin_Post {
102
  */
103
  private function page_render( array $options, $mode, $status ) {
104
  $html = '';
105
- $html .= '<link rel="stylesheet" href="' . plugin_dir_url( __FILE__ ) . 'css/style.css">';
106
  $html .= '<div class="wrap">';
107
  $html .= '<h1>Schema.org Post</h1>';
108
  echo $html;
@@ -157,7 +157,7 @@ class Structuring_Markup_Admin_Post {
157
  $html = '</td></tr></table><hr>';
158
  echo $html;
159
 
160
- require_once( 'wp-structuring-admin-type-website.php' );
161
  new Structuring_Markup_Type_Website( $options['option'] );
162
  break;
163
  case 'organization':
@@ -168,7 +168,7 @@ class Structuring_Markup_Admin_Post {
168
  $html = '</td></tr></table><hr>';
169
  echo $html;
170
 
171
- require_once ( 'wp-structuring-admin-type-organization.php' );
172
  new Structuring_Markup_Type_Organization( $options['option'] );
173
  break;
174
  case 'news_article':
@@ -176,7 +176,7 @@ class Structuring_Markup_Admin_Post {
176
  $html = '</td></tr></table><hr>';
177
  echo $html;
178
 
179
- require_once ( 'wp-structuring-admin-type-news-article.php' );
180
  new Structuring_Markup_Type_NewsArticle();
181
  break;
182
  }
102
  */
103
  private function page_render( array $options, $mode, $status ) {
104
  $html = '';
105
+ $html .= '<link rel="stylesheet" href="' . WP_STRUCTURING_PLUGIN_DIR . 'css/style.css">';
106
  $html .= '<div class="wrap">';
107
  $html .= '<h1>Schema.org Post</h1>';
108
  echo $html;
157
  $html = '</td></tr></table><hr>';
158
  echo $html;
159
 
160
+ require_once( WP_STRUCTURING_PLUGIN_DIR . 'wp-structuring-admin-type-website.php' );
161
  new Structuring_Markup_Type_Website( $options['option'] );
162
  break;
163
  case 'organization':
168
  $html = '</td></tr></table><hr>';
169
  echo $html;
170
 
171
+ require_once ( WP_STRUCTURING_PLUGIN_DIR . 'wp-structuring-admin-type-organization.php' );
172
  new Structuring_Markup_Type_Organization( $options['option'] );
173
  break;
174
  case 'news_article':
176
  $html = '</td></tr></table><hr>';
177
  echo $html;
178
 
179
+ require_once ( WP_STRUCTURING_PLUGIN_DIR . 'wp-structuring-admin-type-news-article.php' );
180
  new Structuring_Markup_Type_NewsArticle();
181
  break;
182
  }
wp-structuring-markup.php CHANGED
@@ -9,7 +9,8 @@ Author URI: http://programp.com/
9
  License: GPLv2 or later
10
  Text Domain: wp-structuring-markup
11
  */
12
- require_once( 'wp-structuring-admin-db.php' );
 
13
 
14
  new Structuring_Markup();
15
 
@@ -75,7 +76,7 @@ class Structuring_Markup {
75
  * @since 1.0.0
76
  */
77
  public function list_page_render() {
78
- require_once( 'wp-structuring-admin-list.php' );
79
  new Structuring_Markup_Admin_List();
80
  }
81
 
@@ -85,7 +86,7 @@ class Structuring_Markup {
85
  * @since 1.0.0
86
  */
87
  public function post_page_render() {
88
- require_once( 'wp-structuring-admin-post.php' );
89
  new Structuring_Markup_Admin_Post();
90
  }
91
 
@@ -95,7 +96,7 @@ class Structuring_Markup {
95
  * @since 1.0.0
96
  */
97
  public function display_page_render() {
98
- require_once( 'wp-structuring-display.php' );
99
  new Structuring_Markup_Display();
100
  }
101
  }
9
  License: GPLv2 or later
10
  Text Domain: wp-structuring-markup
11
  */
12
+ define( 'WP_STRUCTURING_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
13
+ require_once( WP_STRUCTURING_PLUGIN_DIR . 'wp-structuring-admin-db.php' );
14
 
15
  new Structuring_Markup();
16
 
76
  * @since 1.0.0
77
  */
78
  public function list_page_render() {
79
+ require_once( WP_STRUCTURING_PLUGIN_DIR . 'wp-structuring-admin-list.php' );
80
  new Structuring_Markup_Admin_List();
81
  }
82
 
86
  * @since 1.0.0
87
  */
88
  public function post_page_render() {
89
+ require_once( WP_STRUCTURING_PLUGIN_DIR . 'wp-structuring-admin-post.php' );
90
  new Structuring_Markup_Admin_Post();
91
  }
92
 
96
  * @since 1.0.0
97
  */
98
  public function display_page_render() {
99
+ require_once( WP_STRUCTURING_PLUGIN_DIR . 'wp-structuring-display.php' );
100
  new Structuring_Markup_Display();
101
  }
102
  }