rename chuck-theme

This commit is contained in:
Chuck Dries 2023-07-26 19:23:21 -07:00
parent 54703be7d5
commit bc874f7159
No known key found for this signature in database
GPG Key ID: A00B7AEAE1DC5BE6
20 changed files with 18 additions and 19 deletions

View File

@ -5,7 +5,6 @@
"./chucks-responsive-flex-container"
],
"themes": [
"./chuck-theme",
"./transsocial-theme"
]
}

View File

@ -1 +0,0 @@
<!-- wp:pattern {"slug":"chucktheme/footer"} /-->

View File

@ -1,10 +1,10 @@
<?php
/**
* chucktheme's functions and definitions
* transsocial-theme's functions and definitions
*
* @package chucktheme
* @since chucktheme 1.0
* @package transsocial-theme
* @since transsocial-theme 1.0
*/
/**
@ -17,7 +17,7 @@ if (!isset($content_width)) {
}
if (!function_exists('chucktheme_setup')) :
if (!function_exists('transsocial-theme_setup')) :
/**
* Sets up theme defaults and registers support for various
@ -27,14 +27,14 @@ if (!function_exists('chucktheme_setup')) :
* hook, which runs before the init hook. The init hook is too late
* for some features, such as indicating support post thumbnails.
*/
function chucktheme_setup()
function transsocial-theme_setup()
{
// /**
// * Make theme available for translation.
// * Translations can be placed in the /languages/ directory.
// */
// load_theme_textdomain( 'chucktheme', get_template_directory() . '/languages' );
// load_theme_textdomain( 'transsocial-theme', get_template_directory() . '/languages' );
// /**
// * Add default posts and comments RSS feed links to <head>.
@ -50,8 +50,8 @@ if (!function_exists('chucktheme_setup')) :
// * Add support for two custom navigation menus.
// */
// register_nav_menus( array(
// 'primary' => __( 'Primary Menu', 'chucktheme' ),
// 'secondary' => __( 'Secondary Menu', 'chucktheme' ),
// 'primary' => __( 'Primary Menu', 'transsocial-theme' ),
// 'secondary' => __( 'Secondary Menu', 'transsocial-theme' ),
// ) );
// /**
@ -83,13 +83,13 @@ if (!function_exists('chucktheme_setup')) :
// return preg_replace($pattern, $replacement, $blockContent);
// }, 10, 2);
}
endif; // chucktheme_setup
add_action('after_setup_theme', 'chucktheme_setup');
endif; // transsocial-theme_setup
add_action('after_setup_theme', 'transsocial-theme_setup');
if (!function_exists('chucktheme_enqueue')) :
function chucktheme_enqueue()
if (!function_exists('transsocial-theme_enqueue')) :
function transsocial-theme_enqueue()
{
wp_enqueue_style('style', get_stylesheet_uri());
}
endif;
add_action('wp_enqueue_scripts', 'chucktheme_enqueue');
add_action('wp_enqueue_scripts', 'transsocial-theme_enqueue');

View File

@ -0,0 +1 @@
<!-- wp:pattern {"slug":"transsocial-theme/footer"} /-->

View File

@ -1,7 +1,7 @@
<?php
/**
* Title: footer
* Slug: chucktheme/footer
* Slug: transsocial-theme/footer
* Categories: hidden
* Inserter: no
*/
@ -31,7 +31,7 @@
<!-- /wp:group -->
<!-- wp:image {"id":40,"sizeSlug":"large","linkDestination":"none","style":{"layout":{"selfStretch":"fixed","flexSize":"250px"}}} -->
<figure class="wp-block-image size-large"><img src="<?php echo esc_url( get_stylesheet_directory_uri() ); ?>/assets/images/transsocial-logo-ts-palm-colors-version-2-1024x568.png" alt="<?php echo esc_attr_e( 'TransSOCIAL Logo', 'chucktheme' ); ?>" class="wp-image-40"/></figure>
<figure class="wp-block-image size-large"><img src="<?php echo esc_url( get_theme_file_uri( 'assets/images/transsocial-logo-ts-palm-colors-version-2-1024x568.png' ) ); ?>" alt="<?php echo esc_attr_e( 'TransSOCIAL Logo', 'transsocial-theme' ); ?>" class="wp-image-40"/></figure>
<!-- /wp:image --></div>
<!-- /wp:group --></div>
<!-- /wp:group --></div>

View File

@ -1,5 +1,5 @@
/*
Theme Name: chucktheme
Theme Name: transsocial-theme
Author: Chuck Dries
Author URI: https://chuckdries.com
Description: A simple but vibrant theme for TransSOCIAL
@ -9,7 +9,7 @@ Requires PHP: The oldest PHP version supported, in X.X format, only the number.
Version: 0.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chucktheme
Text Domain: transsocial-theme
Tags:
*/