Browse Source

Empty core required template files.

Jeff Ong 4 years ago
parent
commit
1e2f0a163a
5 changed files with 59 additions and 1 deletions
  1. 10 0
      blockbase/comments.php
  2. 11 0
      blockbase/footer.php
  3. 20 0
      blockbase/header.php
  4. 16 0
      blockbase/index.php
  5. 2 1
      dotorg-exclude.txt

+ 10 - 0
blockbase/comments.php

@@ -0,0 +1,10 @@
+<?php
+/**
+ * Empty comments file to avoid theme check errors
+ * 
+ * @package Blockbase
+ * @since 1.0
+ * 
+ */
+
+ return;

+ 11 - 0
blockbase/footer.php

@@ -0,0 +1,11 @@
+<?php
+/**
+ * Empty comments file to pass theme check
+ *
+ * @package Blockbase
+ * @since 1.0
+ */
+?>
+
+<?php wp_footer(); ?>
+</body>

+ 20 - 0
blockbase/header.php

@@ -0,0 +1,20 @@
+<?php
+/**
+ * Boilerplate header for initial themecheck.
+ * 
+ * @package Blockbase
+ * @since 1.0
+ * 
+ */
+?>
+
+<!DOCTYPE html>
+<html <?php language_attributes(); ?>>
+<head>
+	<meta charset="<?php bloginfo( 'charset' ); ?>">
+	<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1">
+	<link rel="profile" href="http://gmpg.org/xfn/11">
+	<?php wp_head(); ?>
+</head>
+<body <?php body_class(); ?>>
+<?php do_action( 'wp_body_open' ); ?>

+ 16 - 0
blockbase/index.php

@@ -0,0 +1,16 @@
+<?php
+/**
+ * Fallback if Gutenberg plugin is not installed.
+ *
+ * @package  
+ * @since 1.0
+ * 
+ */
+
+get_header();
+
+if ( current_user_can( 'activate_plugins' ) ) {
+	echo esc_html__( 'This theme requires the Gutenberg plugin to be installed.', 'blockbase' );
+}
+
+get_footer();

+ 2 - 1
dotorg-exclude.txt

@@ -7,4 +7,5 @@ node_modules
 *.map
 *wpcom*
 *.zip
-postcss.config.js
+postcss.config.js
+*.xml