浏览代码

Curator: rename the theme. (#5966)

* Rename the theme.

* Fix 404 page for curator

Co-authored-by: madhusudhand <madhusudhan.dollu@gmail.com>
Jeff Ong 3 年之前
父节点
当前提交
5093a91031

+ 0 - 0
cult/assets/fonts/Petrona-Italic.ttf → curator/assets/fonts/Petrona-Italic.ttf


+ 0 - 0
cult/assets/fonts/Petrona.ttf → curator/assets/fonts/Petrona.ttf


+ 0 - 0
cult/assets/fonts/WorkSans-Italic.ttf → curator/assets/fonts/WorkSans-Italic.ttf


+ 0 - 0
cult/assets/fonts/WorkSans.ttf → curator/assets/fonts/WorkSans.ttf


+ 13 - 13
cult/functions.php → curator/functions.php

@@ -1,24 +1,24 @@
 <?php
 <?php
 /**
 /**
- * Cult functions and definitions
+ * Curator functions and definitions
  *
  *
  * @link https://developer.wordpress.org/themes/basics/theme-functions/
  * @link https://developer.wordpress.org/themes/basics/theme-functions/
  *
  *
- * @package Cult
- * @since Cult 1.0
+ * @package Curator
+ * @since Curator 1.0
  */
  */
 
 
 
 
-if ( ! function_exists( 'cult_support' ) ) :
+if ( ! function_exists( 'curator_support' ) ) :
 
 
 	/**
 	/**
 	 * Sets up theme defaults and registers support for various WordPress features.
 	 * Sets up theme defaults and registers support for various WordPress features.
 	 *
 	 *
-	 * @since Cult 1.0
+	 * @since Curator 1.0
 	 *
 	 *
 	 * @return void
 	 * @return void
 	 */
 	 */
-	function cult_support() {
+	function curator_support() {
 
 
 		// Enqueue editor styles.
 		// Enqueue editor styles.
 		add_editor_style( 'style.css' );
 		add_editor_style( 'style.css' );
@@ -27,32 +27,32 @@ if ( ! function_exists( 'cult_support' ) ) :
 
 
 endif;
 endif;
 
 
-add_action( 'after_setup_theme', 'cult_support' );
+add_action( 'after_setup_theme', 'curator_support' );
 
 
-if ( ! function_exists( 'cult_styles' ) ) :
+if ( ! function_exists( 'curator_styles' ) ) :
 
 
 	/**
 	/**
 	 * Enqueue styles.
 	 * Enqueue styles.
 	 *
 	 *
-	 * @since Cult 1.0
+	 * @since Curator 1.0
 	 *
 	 *
 	 * @return void
 	 * @return void
 	 */
 	 */
-	function cult_styles() {
+	function curator_styles() {
 
 
 		// Register theme stylesheet.
 		// Register theme stylesheet.
 		wp_register_style(
 		wp_register_style(
-			'cult-style',
+			'curator-style',
 			get_template_directory_uri() . '/style.css',
 			get_template_directory_uri() . '/style.css',
 			array(),
 			array(),
 			wp_get_theme()->get( 'Version' )
 			wp_get_theme()->get( 'Version' )
 		);
 		);
 
 
 		// Enqueue theme stylesheet.
 		// Enqueue theme stylesheet.
-		wp_enqueue_style( 'cult-style' );
+		wp_enqueue_style( 'curator-style' );
 
 
 	}
 	}
 
 
 endif;
 endif;
 
 
-add_action( 'wp_enqueue_scripts', 'cult_styles' );
+add_action( 'wp_enqueue_scripts', 'curator_styles' );

+ 0 - 0
cult/index.php → curator/index.php


+ 0 - 0
cult/parts/footer.html → curator/parts/footer.html


+ 0 - 0
cult/parts/header.html → curator/parts/header.html


+ 0 - 0
cult/parts/post-meta.html → curator/parts/post-meta.html


+ 3 - 3
cult/patterns/404.php → curator/patterns/404.php

@@ -1,16 +1,16 @@
 <?php
 <?php
 /**
 /**
  * Title: A 404 page
  * Title: A 404 page
- * Slug: cult/404
+ * Slug: curator/404
  * Inserter: no
  * Inserter: no
  */
  */
 
 
 ?>
 ?>
 
 
 <!-- wp:heading {"textAlign":"center","level":1,"fontSize":"medium"} -->
 <!-- wp:heading {"textAlign":"center","level":1,"fontSize":"medium"} -->
-<h1 class="has-text-align-center has-medium-font-size" id="oops-that-page-can-t-be-found"><?php echo esc_html__( 'Oops! That page can&rsquo;t be found.', 'cult' ); ?></h1>
+<h1 class="has-text-align-center has-medium-font-size" id="oops-that-page-can-t-be-found"><?php echo esc_html__( 'Oops! That page can&rsquo;t be found.', 'curator' ); ?></h1>
 <!-- /wp:heading -->
 <!-- /wp:heading -->
 
 
 <!-- wp:paragraph -->
 <!-- wp:paragraph -->
-<p><?php echo  esc_html__( 'It looks like nothing was found at this location. Maybe try a search?', 'cult' ); ?></p>
+<p><?php echo  esc_html__( 'It looks like nothing was found at this location. Maybe try a search?', 'curator' ); ?></p>
 <!-- /wp:paragraph -->
 <!-- /wp:paragraph -->

+ 3 - 3
cult/readme.txt → curator/readme.txt

@@ -1,4 +1,4 @@
-=== Cult ===
+=== Curator ===
 Contributors: Automattic
 Contributors: Automattic
 Requires at least: 5.8
 Requires at least: 5.8
 Tested up to: 5.9
 Tested up to: 5.9
@@ -17,8 +17,8 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
 
 
 == Copyright ==
 == Copyright ==
 
 
-Cult WordPress Theme, (C) 2022 Automattic
-Cult is distributed under the terms of the GNU GPL.
+Curator WordPress Theme, (C) 2022 Automattic
+Curator is distributed under the terms of the GNU GPL.
 
 
 This program is free software: you can redistribute it and/or modify
 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
 it under the terms of the GNU General Public License as published by

+ 0 - 0
cult/screenshot.png → curator/screenshot.png


+ 3 - 3
cult/style.css → curator/style.css

@@ -1,6 +1,6 @@
 /*
 /*
-Theme Name: Cult
-Theme URI: https://wordpress.com/theme/cult
+Theme Name: Curator
+Theme URI: https://wordpress.com/theme/curator
 Author: Automattic
 Author: Automattic
 Author URI: https://automattic.com/
 Author URI: https://automattic.com/
 Description: 
 Description: 
@@ -11,7 +11,7 @@ Version: 0.0.1
 License: GNU General Public License v2 or later
 License: GNU General Public License v2 or later
 License URI: https://raw.githubusercontent.com/Automattic/themes/trunk/LICENSE
 License URI: https://raw.githubusercontent.com/Automattic/themes/trunk/LICENSE
 Template: 
 Template: 
-Text Domain: cult
+Text Domain: curator
 Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks
 Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, rtl-language-support, theme-options, threaded-comments, translation-ready, wide-blocks
 *//*
 *//*
  * Font smoothing
  * Font smoothing

+ 1 - 1
cult/templates/404.html → curator/templates/404.html

@@ -3,7 +3,7 @@
 <!-- wp:group {"tagName":"main","layout":{"inherit":true}} -->
 <!-- wp:group {"tagName":"main","layout":{"inherit":true}} -->
 <main class="wp-block-group">
 <main class="wp-block-group">
 
 
-	<!-- wp:pattern {"slug":"cult/404"} /-->
+	<!-- wp:pattern {"slug":"curator/404"} /-->
 	<!-- wp:search {"label":""} /-->
 	<!-- wp:search {"label":""} /-->
 
 
 </main>
 </main>

+ 0 - 0
cult/templates/archive.html → curator/templates/archive.html


+ 0 - 0
cult/templates/blank.html → curator/templates/blank.html


+ 0 - 0
cult/templates/footer-only.html → curator/templates/footer-only.html


+ 0 - 0
cult/templates/header-footer-only.html → curator/templates/header-footer-only.html


+ 0 - 0
cult/templates/index.html → curator/templates/index.html


+ 0 - 0
cult/templates/page.html → curator/templates/page.html


+ 0 - 0
cult/templates/search.html → curator/templates/search.html


+ 0 - 0
cult/templates/single.html → curator/templates/single.html


+ 0 - 0
cult/theme.json → curator/theme.json