Skip to content

Commit

Permalink
[#78] updating all twentytwentyfour references to goodbids-main
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-schmidt-viget committed Dec 20, 2023
1 parent 1fb502c commit e4580f9
Show file tree
Hide file tree
Showing 70 changed files with 462 additions and 415 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<!-- wp:query {"query":{"perPage":9,"pages":0,"offset":"0","postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true},"align":"wide","layout":{"type":"default"}} -->
<div class="wp-block-query alignwide">
<!-- wp:query-no-results -->
<!-- wp:pattern {"slug":"twentytwentyfour/hidden-no-results"} /-->
<!-- wp:pattern {"slug":"goodbids-main/hidden-no-results"} /-->
<!-- /wp:query-no-results -->

<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"0","right":"0"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"default"}} -->
Expand Down
42 changes: 21 additions & 21 deletions themes/goodbids-main/functions.php
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
<?php
/**
* Twenty Twenty-Four functions and definitions
* GoodBids Main functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Twenty Twenty-Four
* @since Twenty Twenty-Four 1.0
* @package GoodBids Main
* @since GoodBids Main 1.0
*/

/**
* Register block styles.
*/

if ( ! function_exists( 'twentytwentyfour_block_styles' ) ) :
if ( ! function_exists( 'goodbids_main_block_styles' ) ) :
/**
* Register custom block styles
*
* @since Twenty Twenty-Four 1.0
* @since GoodBids Main 1.0
* @return void
*/
function twentytwentyfour_block_styles() {
function goodbids_main_block_styles() {

register_block_style(
'core/details',
array(
'name' => 'arrow-icon-details',
'label' => __( 'Arrow icon', 'twentytwentyfour' ),
'label' => __( 'Arrow icon', 'goodbids_main' ),
/*
* Styles for the custom Arrow icon style of the Details block
*/
Expand All @@ -48,7 +48,7 @@ function twentytwentyfour_block_styles() {
'core/post-terms',
array(
'name' => 'pill',
'label' => __( 'Pill', 'twentytwentyfour' ),
'label' => __( 'Pill', 'goodbids-main' ),
/*
* Styles variation for post terms
* https://github.com/WordPress/gutenberg/issues/24956
Expand All @@ -71,7 +71,7 @@ function twentytwentyfour_block_styles() {
'core/list',
array(
'name' => 'checkmark-list',
'label' => __( 'Checkmark', 'twentytwentyfour' ),
'label' => __( 'Checkmark', 'goodbids-main' ),
/*
* Styles for the custom checkmark list block style
* https://github.com/WordPress/gutenberg/issues/51480
Expand All @@ -90,7 +90,7 @@ function twentytwentyfour_block_styles() {
'core/navigation-link',
array(
'name' => 'arrow-link',
'label' => __( 'With arrow', 'twentytwentyfour' ),
'label' => __( 'With arrow', 'goodbids-main' ),
/*
* Styles for the custom arrow nav link block style
*/
Expand All @@ -108,7 +108,7 @@ function twentytwentyfour_block_styles() {
'core/heading',
array(
'name' => 'asterisk',
'label' => __( 'With asterisk', 'twentytwentyfour' ),
'label' => __( 'With asterisk', 'goodbids-main' ),
'inline_style' => "
.is-style-asterisk:before {
content: '';
Expand Down Expand Up @@ -144,20 +144,20 @@ function twentytwentyfour_block_styles() {
}
endif;

add_action( 'init', 'twentytwentyfour_block_styles' );
add_action( 'init', 'goodbids_main_block_styles' );

/**
* Enqueue block stylesheets.
*/

if ( ! function_exists( 'twentytwentyfour_block_stylesheets' ) ) :
if ( ! function_exists( 'goodbids_main_block_stylesheets' ) ) :
/**
* Enqueue custom block stylesheets
*
* @since Twenty Twenty-Four 1.0
* @since GoodBids Main 1.0
* @return void
*/
function twentytwentyfour_block_stylesheets() {
function goodbids_main_block_stylesheets() {
/**
* The wp_enqueue_block_style() function allows us to enqueue a stylesheet
* for a specific block. These will only get loaded when the block is rendered
Expand All @@ -169,7 +169,7 @@ function twentytwentyfour_block_stylesheets() {
wp_enqueue_block_style(
'core/button',
array(
'handle' => 'twentytwentyfour-button-style-outline',
'handle' => 'goodbids_main-button-style-outline',
'src' => get_parent_theme_file_uri( 'assets/css/button-outline.css' ),
'ver' => wp_get_theme( get_template() )->get( 'Version' ),
'path' => get_parent_theme_file_path( 'assets/css/button-outline.css' ),
Expand All @@ -178,20 +178,20 @@ function twentytwentyfour_block_stylesheets() {
}
endif;

add_action( 'init', 'twentytwentyfour_block_stylesheets' );
add_action( 'init', 'goodbids_main_block_stylesheets' );

/**
* Register pattern categories.
*/

if ( ! function_exists( 'twentytwentyfour_pattern_categories' ) ) :
if ( ! function_exists( 'goodbids_main_pattern_categories' ) ) :
/**
* Register pattern categories
*
* @since Twenty Twenty-Four 1.0
* @since GoodBids Main 1.0
* @return void
*/
function twentytwentyfour_pattern_categories() {
function goodbids_main_pattern_categories() {

register_block_pattern_category(
'page',
Expand All @@ -203,7 +203,7 @@ function twentytwentyfour_pattern_categories() {
}
endif;

add_action( 'init', 'twentytwentyfour_pattern_categories' );
add_action( 'init', 'goodbids_main_pattern_categories' );

/**
* Disable remote block patterns.
Expand Down
2 changes: 1 addition & 1 deletion themes/goodbids-main/parts/footer.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!-- wp:pattern {"slug":"twentytwentyfour/footer"} /-->
<!-- wp:pattern {"slug":"goodbids-main/footer"} /-->
2 changes: 1 addition & 1 deletion themes/goodbids-main/parts/post-meta.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!-- wp:pattern {"slug":"twentytwentyfour/hidden-post-meta"} /-->
<!-- wp:pattern {"slug":"goodbids-main/hidden-post-meta"} /-->
2 changes: 1 addition & 1 deletion themes/goodbids-main/parts/sidebar.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!-- wp:pattern {"slug":"twentytwentyfour/hidden-sidebar"} /-->
<!-- wp:pattern {"slug":"goodbids-main/hidden-sidebar"} /-->
10 changes: 5 additions & 5 deletions themes/goodbids-main/patterns/banner-hero.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Title: Hero
* Slug: twentytwentyfour/banner-hero
* Slug: goodbids-main/banner-hero
* Categories: banner, call-to-action, featured
* Viewport width: 1400
*/
Expand All @@ -14,15 +14,15 @@
<div class="wp-block-group">

<!-- wp:heading {"textAlign":"center","fontSize":"x-large","level":1} -->
<h1 class="wp-block-heading has-text-align-center has-x-large-font-size"><?php echo esc_html_x( 'A commitment to innovation and sustainability', 'Heading of the hero section', 'twentytwentyfour' ); ?></h1>
<h1 class="wp-block-heading has-text-align-center has-x-large-font-size"><?php echo esc_html_x( 'A commitment to innovation and sustainability', 'Heading of the hero section', 'goodbids-main' ); ?></h1>
<!-- /wp:heading -->

<!-- wp:spacer {"height":"1.25rem"} -->
<div style="height:1.25rem" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->

<!-- wp:paragraph {"align":"center"} -->
<p class="has-text-align-center"><?php echo esc_html_x( 'Études is a pioneering firm that seamlessly merges creativity and functionality to redefine architectural excellence.', 'Content of the hero section', 'twentytwentyfour' ); ?></p>
<p class="has-text-align-center"><?php echo esc_html_x( 'Études is a pioneering firm that seamlessly merges creativity and functionality to redefine architectural excellence.', 'Content of the hero section', 'goodbids-main' ); ?></p>
<!-- /wp:paragraph -->

<!-- wp:spacer {"height":"1.25rem"} -->
Expand All @@ -33,7 +33,7 @@
<div class="wp-block-buttons">
<!-- wp:button -->
<div class="wp-block-button">
<a class="wp-block-button__link wp-element-button"><?php echo esc_html_x( 'About us', 'Button text of the hero section', 'twentytwentyfour' ); ?></a>
<a class="wp-block-button__link wp-element-button"><?php echo esc_html_x( 'About us', 'Button text of the hero section', 'goodbids-main' ); ?></a>
</div>
<!-- /wp:button -->
</div>
Expand All @@ -48,7 +48,7 @@

<!-- wp:image {"align":"wide","sizeSlug":"full","linkDestination":"none","className":"is-style-rounded"} -->
<figure class="wp-block-image alignwide size-full is-style-rounded">
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/building-exterior.webp" alt="<?php esc_attr_e( 'Building exterior in Toronto, Canada', 'twentytwentyfour' ); ?>" />
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/building-exterior.webp" alt="<?php esc_attr_e( 'Building exterior in Toronto, Canada', 'goodbids-main' ); ?>" />
</figure>
<!-- /wp:image -->
</div>
Expand Down
8 changes: 4 additions & 4 deletions themes/goodbids-main/patterns/banner-project-description.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Title: Project description
* Slug: twentytwentyfour/banner-project-description
* Slug: goodbids-main/banner-project-description
* Categories: featured, banner, about, portfolio
* Viewport width: 1400
*/
Expand All @@ -13,7 +13,7 @@
<!-- wp:column {"width":"40%"} -->
<div class="wp-block-column" style="flex-basis:40%">
<!-- wp:paragraph {"style":{"layout":{"selfStretch":"fixed","flexSize":"50%"}}} -->
<p><?php echo esc_html_x( 'Art Gallery — Overview', 'Sample title for a project or post', 'twentytwentyfour' ); ?></p>
<p><?php echo esc_html_x( 'Art Gallery — Overview', 'Sample title for a project or post', 'goodbids-main' ); ?></p>
<!-- /wp:paragraph -->
</div>
<!-- /wp:column -->
Expand All @@ -22,7 +22,7 @@
<div class="wp-block-column" style="flex-basis:60%">

<!-- wp:paragraph {"style":{"typography":{"lineHeight":"1.2"}},"fontSize":"x-large","fontFamily":"heading"} -->
<p class="has-heading-font-family has-x-large-font-size" style="line-height:1.2"><?php echo esc_html_x( 'This transformative project seeks to enhance the gallery\'s infrastructure, accessibility, and exhibition spaces while preserving its rich cultural heritage.', 'Sample descriptive text for a project or post.', 'twentytwentyfour' ); ?></p>
<p class="has-heading-font-family has-x-large-font-size" style="line-height:1.2"><?php echo esc_html_x( 'This transformative project seeks to enhance the gallery\'s infrastructure, accessibility, and exhibition spaces while preserving its rich cultural heritage.', 'Sample descriptive text for a project or post.', 'goodbids-main' ); ?></p>
<!-- /wp:paragraph -->

</div>
Expand All @@ -37,7 +37,7 @@

<!-- wp:image {"align":"wide","sizeSlug":"large","linkDestination":"none","className":"is-style-rounded"} -->
<figure class="wp-block-image alignwide size-large is-style-rounded">
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/hotel-facade.webp" alt="<?php esc_attr_e( 'Hyatt Regency San Francisco, San Francisco, United States', 'twentytwentyfour' ); ?>" />
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/hotel-facade.webp" alt="<?php esc_attr_e( 'Hyatt Regency San Francisco, San Francisco, United States', 'goodbids-main' ); ?>" />
</figure>
<!-- /wp:image -->
</div>
Expand Down
16 changes: 8 additions & 8 deletions themes/goodbids-main/patterns/cta-content-image-on-right.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Title: Call to action with image on right
* Slug: twentytwentyfour/cta-content-image-on-right
* Slug: goodbids-main/cta-content-image-on-right
* Categories: call-to-action, banner
* Viewport width: 1400
*/
Expand All @@ -14,21 +14,21 @@
<!-- wp:column {"verticalAlignment":"center","width":"50%"} -->
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:50%">
<!-- wp:heading -->
<h2 class="wp-block-heading"><?php echo esc_html_x( 'Enhance your architectural journey with the Études Architect app.', 'Sample heading', 'twentytwentyfour' ); ?></h2>
<h2 class="wp-block-heading"><?php echo esc_html_x( 'Enhance your architectural journey with the Études Architect app.', 'Sample heading', 'goodbids-main' ); ?></h2>
<!-- /wp:heading -->

<!-- wp:list {"style":{"typography":{"lineHeight":"1.75"}},"className":"is-style-checkmark-list"} -->
<ul class="is-style-checkmark-list" style="line-height:1.75">
<!-- wp:list-item -->
<li><?php echo esc_html_x( 'Collaborate with fellow architects.', 'Sample list item', 'twentytwentyfour' ); ?></li>
<li><?php echo esc_html_x( 'Collaborate with fellow architects.', 'Sample list item', 'goodbids-main' ); ?></li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li><?php echo esc_html_x( 'Showcase your projects.', 'Sample list item', 'twentytwentyfour' ); ?></li>
<li><?php echo esc_html_x( 'Showcase your projects.', 'Sample list item', 'goodbids-main' ); ?></li>
<!-- /wp:list-item -->

<!-- wp:list-item -->
<li><?php echo esc_html_x( 'Experience the world of architecture.', 'Sample list item', 'twentytwentyfour' ); ?></li>
<li><?php echo esc_html_x( 'Experience the world of architecture.', 'Sample list item', 'goodbids-main' ); ?></li>
<!-- /wp:list-item -->
</ul>
<!-- /wp:list -->
Expand All @@ -37,13 +37,13 @@
<div class="wp-block-buttons">
<!-- wp:button -->
<div class="wp-block-button">
<a class="wp-block-button__link wp-element-button"><?php echo esc_html_x( 'Download app', 'Button text of this section', 'twentytwentyfour' ); ?></a>
<a class="wp-block-button__link wp-element-button"><?php echo esc_html_x( 'Download app', 'Button text of this section', 'goodbids-main' ); ?></a>
</div>
<!-- /wp:button -->

<!-- wp:button {"className":"is-style-outline"} -->
<div class="wp-block-button is-style-outline">
<a class="wp-block-button__link wp-element-button"><?php echo esc_html_x( 'How it works', 'Button text of this section', 'twentytwentyfour' ); ?></a>
<a class="wp-block-button__link wp-element-button"><?php echo esc_html_x( 'How it works', 'Button text of this section', 'goodbids-main' ); ?></a>
</div>
<!-- /wp:button -->
</div>
Expand All @@ -55,7 +55,7 @@
<div class="wp-block-column is-vertically-aligned-center" style="flex-basis:50%">
<!-- wp:image {"aspectRatio":"4/3","scale":"cover","sizeSlug":"full","linkDestination":"none","className":"is-style-rounded"} -->
<figure class="wp-block-image size-full is-style-rounded">
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/abstract-geometric-art.webp" alt="<?php esc_attr_e( 'White abstract geometric artwork from Dresden, Germany', 'twentytwentyfour' ); ?>" style="aspect-ratio:4/3;object-fit:cover" />
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/abstract-geometric-art.webp" alt="<?php esc_attr_e( 'White abstract geometric artwork from Dresden, Germany', 'goodbids-main' ); ?>" style="aspect-ratio:4/3;object-fit:cover" />
</figure>
<!-- /wp:image -->
</div>
Expand Down
Loading

0 comments on commit e4580f9

Please sign in to comment.