Curator: rename the theme. (#5966)

* Rename the theme.

* Fix 404 page for curator

Co-authored-by: madhusudhand <madhusudhan.dollu@gmail.com>
This commit is contained in:
Jeff Ong 2022-05-05 04:28:57 -04:00 committed by GitHub
parent e64aaae409
commit 5093a91031
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 23 additions and 23 deletions

View file

@ -1,24 +1,24 @@
<?php
/**
* Cult functions and definitions
* Curator functions and definitions
*
* @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.
*
* @since Cult 1.0
* @since Curator 1.0
*
* @return void
*/
function cult_support() {
function curator_support() {
// Enqueue editor styles.
add_editor_style( 'style.css' );
@ -27,32 +27,32 @@ if ( ! function_exists( 'cult_support' ) ) :
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.
*
* @since Cult 1.0
* @since Curator 1.0
*
* @return void
*/
function cult_styles() {
function curator_styles() {
// Register theme stylesheet.
wp_register_style(
'cult-style',
'curator-style',
get_template_directory_uri() . '/style.css',
array(),
wp_get_theme()->get( 'Version' )
);
// Enqueue theme stylesheet.
wp_enqueue_style( 'cult-style' );
wp_enqueue_style( 'curator-style' );
}
endif;
add_action( 'wp_enqueue_scripts', 'cult_styles' );
add_action( 'wp_enqueue_scripts', 'curator_styles' );

View file

@ -1,16 +1,16 @@
<?php
/**
* Title: A 404 page
* Slug: cult/404
* Slug: curator/404
* Inserter: no
*/
?>
<!-- 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: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 -->

View file

@ -1,4 +1,4 @@
=== Cult ===
=== Curator ===
Contributors: Automattic
Requires at least: 5.8
Tested up to: 5.9
@ -17,8 +17,8 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
== 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
it under the terms of the GNU General Public License as published by

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

@ -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 URI: https://automattic.com/
Description:
@ -11,7 +11,7 @@ Version: 0.0.1
License: GNU General Public License v2 or later
License URI: https://raw.githubusercontent.com/Automattic/themes/trunk/LICENSE
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
*//*
* Font smoothing

View file

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