Revert "Blockbase: initial dotorg upload version"
This commit is contained in:
parent
36365090fc
commit
88c679cf1e
11 changed files with 6 additions and 134 deletions
|
@ -1,12 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Empty comments file to avoid theme check errors
|
||||
*
|
||||
* @package Blockbase
|
||||
* @since 1.0
|
||||
*
|
||||
*/
|
||||
|
||||
if ( is_singular() ) wp_enqueue_script( "comment-reply" );
|
||||
|
||||
return;
|
|
@ -1,11 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Empty footer file to pass theme check
|
||||
*
|
||||
* @package Blockbase
|
||||
* @since 1.0
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php wp_footer(); ?>
|
||||
</body>
|
|
@ -24,10 +24,6 @@ if ( ! function_exists( 'blockbase_support' ) ) :
|
|||
'/assets/ponyfill.css',
|
||||
)
|
||||
);
|
||||
|
||||
// Theme supports required to pass theme check.
|
||||
add_theme_support( "title-tag" );
|
||||
add_theme_support( "automatic-feed-links" );
|
||||
}
|
||||
add_action( 'after_setup_theme', 'blockbase_support' );
|
||||
endif;
|
||||
|
@ -84,22 +80,3 @@ function blockbase_fonts_url() {
|
|||
// Make a single request for the theme fonts.
|
||||
return esc_url_raw( 'https://fonts.googleapis.com/css2?' . implode( '&', $font_families ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* This function only exists to pass the theme-check.
|
||||
* It does not do anything.
|
||||
* Borrowed from aristath/q: https://themes.trac.wordpress.org/browser/q/0.1/functions.php?rev=137308
|
||||
*/
|
||||
function blockbase_theme_check_dummy_calls() {
|
||||
wp_list_comments();
|
||||
posts_nav_link();
|
||||
post_class();
|
||||
comments_template();
|
||||
comment_form();
|
||||
wp_link_pages();
|
||||
paginate_comments_links();
|
||||
the_tags();
|
||||
|
||||
global $content_width;
|
||||
$content_width = 1200;
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
<?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' ); ?>
|
|
@ -1,16 +0,0 @@
|
|||
<?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();
|
|
@ -33,8 +33,3 @@ License: CC0
|
|||
Source: https://www.artic.edu/artworks/38666/the-water-fan
|
||||
Included in theme screenshot.
|
||||
*/
|
||||
|
||||
/* CSS classes needed to pass theme check */
|
||||
.wp-caption, .wp-caption-text, .sticky, .screen-reader-text, .gallery-caption, .bypostauthor {
|
||||
|
||||
}
|
|
@ -7,5 +7,4 @@ node_modules
|
|||
*.map
|
||||
*wpcom*
|
||||
*.zip
|
||||
postcss.config.js
|
||||
*.xml
|
||||
postcss.config.js
|
|
@ -9,11 +9,6 @@ if ( ! function_exists( 'mayland_blocks_support' ) ) :
|
|||
'theme.css',
|
||||
)
|
||||
);
|
||||
|
||||
// Theme supports required to pass theme check.
|
||||
// NOTE: I'm not sure why having them in the parent theme wouldn't suffice, but they seem to be needed here.
|
||||
add_theme_support( 'title-tag' );
|
||||
add_theme_support( 'automatic-feed-links' );
|
||||
}
|
||||
add_action( 'after_setup_theme', 'mayland_blocks_support' );
|
||||
endif;
|
||||
|
@ -26,13 +21,3 @@ function mayland_blocks_scripts() {
|
|||
wp_enqueue_style( 'mayland-blocks-styles', get_stylesheet_directory_uri() . '/assets/theme.css', array( 'blockbase-ponyfill' ), wp_get_theme()->get( 'Version' ) );
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'mayland_blocks_scripts' );
|
||||
|
||||
/**
|
||||
* This function only exists to pass the theme-check.
|
||||
* It does not do anything.
|
||||
* Borrowed from aristath/q: https://themes.trac.wordpress.org/browser/q/0.1/functions.php?rev=137308
|
||||
*/
|
||||
function seedlet_blocks_theme_check_dummy_calls() {
|
||||
post_class();
|
||||
wp_link_pages();
|
||||
}
|
||||
|
|
|
@ -4,9 +4,7 @@ Theme URI: https://github.com/Automattic/themes/tree/master/mayland-blocks
|
|||
Author: Automattic
|
||||
Author URI: https://automattic.com/
|
||||
Description: Make your online portfolio wonderfully uncluttered with Mayland. Gracefully highlight your photography and other projects. Mayland is versatile enough to be your personal site too.
|
||||
Requires at least: 5.7
|
||||
Tested up to: 5.7
|
||||
Requires PHP: 7.4
|
||||
Requires at least: WordPress 4.9.6
|
||||
Version: 2.0.0
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: LICENSE
|
||||
|
@ -17,7 +15,3 @@ Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, feature
|
|||
This theme, like WordPress, is licensed under the GPL.
|
||||
Use it to make something cool, have fun, and share what you've learned with others.
|
||||
*/
|
||||
|
||||
/* CSS classes needed to pass theme check */
|
||||
.screen-reader-text { }
|
||||
|
||||
|
|
|
@ -10,11 +10,6 @@ function seedlet_blocks_editor_styles() {
|
|||
'/assets/theme.css',
|
||||
)
|
||||
);
|
||||
// Theme supports required to pass theme check.
|
||||
// NOTE: I'm not sure why having them in the parent theme wouldn't suffice, but they seem to be needed here.
|
||||
add_theme_support( 'title-tag' );
|
||||
add_theme_support( 'automatic-feed-links' );
|
||||
|
||||
}
|
||||
add_action( 'after_setup_theme', 'seedlet_blocks_editor_styles' );
|
||||
|
||||
|
@ -23,7 +18,7 @@ add_action( 'after_setup_theme', 'seedlet_blocks_editor_styles' );
|
|||
* Enqueue scripts and styles.
|
||||
*/
|
||||
function seedlet_blocks_scripts() {
|
||||
wp_enqueue_style( 'seedlet_blocks-styles', get_stylesheet_directory_uri() . '/assets/theme.css', array( 'blockbase-ponyfill' ), wp_get_theme()->get( 'Version' ) );
|
||||
wp_enqueue_style( 'seedlet_blocks-styles', get_stylesheet_directory_uri() . '/assets/theme.css', array('blockbase-ponyfill'), wp_get_theme()->get( 'Version' ) );
|
||||
}
|
||||
add_action( 'wp_enqueue_scripts', 'seedlet_blocks_scripts' );
|
||||
|
||||
|
@ -36,13 +31,3 @@ require get_stylesheet_directory() . '/inc/block-patterns.php';
|
|||
* Block Styles.
|
||||
*/
|
||||
require get_stylesheet_directory() . '/inc/block-styles.php';
|
||||
|
||||
/**
|
||||
* This function only exists to pass the theme-check.
|
||||
* It does not do anything.
|
||||
* Borrowed from aristath/q: https://themes.trac.wordpress.org/browser/q/0.1/functions.php?rev=137308
|
||||
*/
|
||||
function mayland_blocks_theme_check_dummy_calls() {
|
||||
post_class();
|
||||
wp_link_pages();
|
||||
}
|
||||
|
|
|
@ -4,9 +4,9 @@ Theme URI: https://github.com/Automattic/themes/seedlet-blocks
|
|||
Author: Automattic
|
||||
Author URI: https://automattic.com/
|
||||
Description: A simple, text-driven, single-column block-based theme.
|
||||
Requires at least: 5.7
|
||||
Tested up to: 5.7
|
||||
Requires PHP: 7.4
|
||||
Requires at least: 4.9.6
|
||||
Tested up to: 5.4.1
|
||||
Requires PHP: 7.3
|
||||
Version: 2.0
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: LICENSE
|
||||
|
@ -27,7 +27,3 @@ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
*/
|
||||
|
||||
/* CSS classes needed to pass theme check */
|
||||
.screen-reader-text { }
|
||||
|
||||
|
|
Loading…
Reference in a new issue