Parcourir la source

Merge pull request #2975 from Automattic/update/rename-blank-page-to-blank-canvas

Rename "Blank Page" theme to "Blank Canvas"
Kjell Reigstad il y a 4 ans
Parent
commit
38f4d9a546

+ 2 - 2
blank-page/footer.php → blank-canvas/footer.php

@@ -6,7 +6,7 @@
  *
  * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
  *
- * @package Blank Page
+ * @package Blank Canvas
  * @since 1.0
  */
 
@@ -14,7 +14,7 @@
 
 	</div><!-- #content -->
 
-	<footer id="colophon" class="site-footer default-max-width" role="contentinfo" aria-label="<?php esc_attr_e( 'Footer', 'blank-page' ); ?>">
+	<footer id="colophon" class="site-footer default-max-width" role="contentinfo" aria-label="<?php esc_attr_e( 'Footer', 'blank-canvas' ); ?>">
 
 		<div class="site-info">
 			<?php $blog_info = get_bloginfo( 'name' ); ?>

+ 17 - 17
blank-page/functions.php → blank-canvas/functions.php

@@ -1,15 +1,15 @@
 <?php
 /**
- * Blank Page functions and definitions
+ * Blank Canvas functions and definitions
  *
  * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  *
  * @package WordPress
- * @subpackage Blank Page
+ * @subpackage Blank Canvas
  * @since 1.0
  */
 
-if ( ! function_exists( 'blank_page_setup' ) ) :
+if ( ! function_exists( 'blank_canvas_setup' ) ) :
 	/**
 	 * Sets up theme defaults and registers support for various WordPress features.
 	 *
@@ -17,7 +17,7 @@ if ( ! function_exists( 'blank_page_setup' ) ) :
 	 * runs before the init hook. The init hook is too late for some features, such
 	 * as indicating support for post thumbnails.
 	 */
-	function blank_page_setup() {
+	function blank_canvas_setup() {
 		// Add support for editor styles.
 		add_theme_support( 'editor-styles' );
 
@@ -36,27 +36,27 @@ if ( ! function_exists( 'blank_page_setup' ) ) :
 			'editor-color-palette',
 			array(
 				array(
-					'name'  => __( 'Primary', 'blank-page' ),
+					'name'  => __( 'Primary', 'blank-canvas' ),
 					'slug'  => 'primary',
 					'color' => $primary,
 				),
 				array(
-					'name'  => __( 'Secondary', 'blank-page' ),
+					'name'  => __( 'Secondary', 'blank-canvas' ),
 					'slug'  => 'secondary',
 					'color' => $secondary,
 				),
 				array(
-					'name'  => __( 'Foreground', 'blank-page' ),
+					'name'  => __( 'Foreground', 'blank-canvas' ),
 					'slug'  => 'foreground',
 					'color' => $foreground,
 				),
 				array(
-					'name'  => __( 'Tertiary', 'blank-page' ),
+					'name'  => __( 'Tertiary', 'blank-canvas' ),
 					'slug'  => 'tertiary',
 					'color' => $tertiary,
 				),
 				array(
-					'name'  => __( 'Background', 'blank-page' ),
+					'name'  => __( 'Background', 'blank-canvas' ),
 					'slug'  => 'background',
 					'color' => $background,
 				),
@@ -64,12 +64,12 @@ if ( ! function_exists( 'blank_page_setup' ) ) :
 		);
 	}
 endif;
-add_action( 'after_setup_theme', 'blank_page_setup', 11 );
+add_action( 'after_setup_theme', 'blank_canvas_setup', 11 );
 
 /**
  * Remove Seedlet theme features.
  */
-function blank_page_remove_parent_theme_features() {
+function blank_canvas_remove_parent_theme_features() {
 
 	// Theme Support
 	remove_theme_support( 'custom-header' );
@@ -81,14 +81,14 @@ function blank_page_remove_parent_theme_features() {
 	unregister_nav_menu( 'footer' );
 	unregister_nav_menu( 'social' );
 }
-add_action( 'after_setup_theme', 'blank_page_remove_parent_theme_features', 10 );
+add_action( 'after_setup_theme', 'blank_canvas_remove_parent_theme_features', 10 );
 
-function blank_page_dequeue_parent_scripts() {
+function blank_canvas_dequeue_parent_scripts() {
 	// Naviation assets
 	wp_dequeue_script( 'seedlet-primary-navigation-script' );
 	wp_dequeue_style( 'seedlet-style-navigation' );
 }
-add_action( 'wp_enqueue_scripts', 'blank_page_dequeue_parent_scripts', 11 );
+add_action( 'wp_enqueue_scripts', 'blank_canvas_dequeue_parent_scripts', 11 );
 
 /**
  * Remove Meta Footer Items.
@@ -122,7 +122,7 @@ endif;
 /**
  * Enqueue scripts and styles.
  */
-function blank_page_enqueue() {
-	wp_enqueue_style( 'blank-page-styles', get_stylesheet_uri() );
+function blank_canvas_enqueue() {
+	wp_enqueue_style( 'blank-canvas-styles', get_stylesheet_uri() );
 }
-add_action( 'wp_enqueue_scripts', 'blank_page_enqueue', 11 );
+add_action( 'wp_enqueue_scripts', 'blank_canvas_enqueue', 11 );

+ 2 - 2
blank-page/header.php → blank-canvas/header.php

@@ -6,7 +6,7 @@
  *
  * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
  *
- * @package Blank Page
+ * @package Blank Canvas
  * @since 1.0
  */
 $blog_info    = get_bloginfo( 'name' );
@@ -26,7 +26,7 @@ $header_class = $show_title ? 'site-title' : 'screen-reader-text';
 <body <?php body_class(); ?>>
 <?php wp_body_open(); ?>
 <div id="page" class="site">
-	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'blank-page' ); ?></a>
+	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'blank-canvas' ); ?></a>
 
 	<header id="masthead" class="<?php echo $header_classes; ?>" role="banner">
 		<?php if ( has_custom_logo() && $show_title && ! is_singular() ) : ?>

+ 0 - 0
blank-page/inc/wpcom-colors-utils.php → blank-canvas/inc/wpcom-colors-utils.php


+ 0 - 0
blank-page/inc/wpcom-colors.php → blank-canvas/inc/wpcom-colors.php


+ 0 - 0
blank-page/inc/wpcom-editor-colors.php → blank-canvas/inc/wpcom-editor-colors.php


+ 1 - 1
blank-page/page.php → blank-canvas/page.php

@@ -4,7 +4,7 @@
  *
  * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
  *
- * @package Blank Page
+ * @package Blank Canvas
  * @since 1.0.0
  */
 

+ 4 - 4
blank-page/readme.txt → blank-canvas/readme.txt

@@ -1,4 +1,4 @@
-=== Blank Page ===
+=== Blank Canvas ===
 Contributors: Automattic
 Requires at least: 5.0
 Tested up to: 5.6
@@ -10,7 +10,7 @@ A blank starting point for building your site.
 
 == Description ==
 
-Blank Page is a blank starting point for building your site. 
+Blank Canvas is a blank starting point for building your site. 
 
 == Changelog ==
 
@@ -19,8 +19,8 @@ Blank Page is a blank starting point for building your site.
 
 == Copyright ==
 
-Blank Page WordPress Theme, (C) 2020 Automattic, Inc.
-Blank Page is distributed under the terms of the GNU GPL.
+Blank Canvas WordPress Theme, (C) 2020 Automattic, Inc.
+Blank Canvas is distributed under the terms of the GNU GPL.
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by

+ 0 - 0
blank-page/screenshot.png → blank-canvas/screenshot.png


+ 1 - 1
blank-page/single.php → blank-canvas/single.php

@@ -4,7 +4,7 @@
  *
  * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
  *
- * @package Blank Page
+ * @package Blank Canvas
  * @since 1.0.0
  */
 

+ 5 - 6
blank-page/style.css → blank-canvas/style.css

@@ -1,6 +1,6 @@
 /*
-Theme Name: Blank Page
-Theme URI: https://github.com/Automattic/themes/blankie
+Theme Name: Blank Canvas
+Theme URI: https://github.com/Automattic/themes/blank-canvas
 Author: Automattic
 Author URI: https://automattic.com/
 Description: A blank starting point for building your site.
@@ -11,11 +11,11 @@ Version: 1.0
 License: GNU General Public License v2 or later
 License URI: LICENSE
 Template: seedlet
-Text Domain: blank-page
+Text Domain: blank-canvas
 Tags: one-column, accessibility-ready, custom-colors, editor-style, featured-images, rtl-language-support, sticky-post, translation-ready
 
-Blank Page WordPress Theme, (C) 2021 Automattic, Inc.
-Blank Page is distributed under the terms of the GNU GPL.
+Blank Canvas WordPress Theme, (C) 2021 Automattic, Inc.
+Blank Canvas is distributed under the terms of the GNU GPL.
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
@@ -67,7 +67,6 @@ body:not(.single):not(.page) .site-content {
 	}
 }
 
-
 /* Remove the top border from the entry-footer. */
 
 .site-main > article > .entry-footer {

+ 3 - 3
blank-page/template-parts/content/content-singular.php → blank-canvas/template-parts/content/content-singular.php

@@ -4,7 +4,7 @@
  *
  * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  *
- * @package Blank Page
+ * @package Blank Canvas
  * @since 1.0
  */
 
@@ -20,7 +20,7 @@
 			sprintf(
 				wp_kses(
 					/* translators: %s: Name of current post. Only visible to screen readers */
-					__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'blank-page' ),
+					__( 'Continue reading<span class="screen-reader-text"> "%s"</span>', 'blank-canvas' ),
 					array(
 						'span' => array(
 							'class' => array(),
@@ -33,7 +33,7 @@
 
 		wp_link_pages(
 			array(
-				'before' => '<div class="page-links">' . __( 'Pages:', 'blank-page' ),
+				'before' => '<div class="page-links">' . __( 'Pages:', 'blank-canvas' ),
 				'after'  => '</div>',
 			)
 		);

+ 0 - 0
blank-page/variables.css → blank-canvas/variables.css