Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Use consistent pattern titles, slugs and file names (#672)
Browse files Browse the repository at this point in the history
* text-centered-statement

* Team and FAQ

* Feature grid, 3 columns

* Text with alternating images

* Remove Blogging Home from the text category

* Update page-01-business-home.php

* Update footer.php

* Offset galleries

* Hero

* 404

* Comments

* Remove some featured patterns

* Make full screen image pattern available in the inserter

* hidden-portfolio-hero

* Hidden patterns

* Update gallery-full-screen-image.php

* cta-content-image-on-right

* posts-offset-images-only-4-col

* Posts patterns

* Pricing

* project-description

* Another round

* More patterns

* Renaming templates and page patterns

* More renaming

* Minor title tweaks

* Add twentytwentyfour/page-home-gallery pattern

* Update page-home-portfolio.php

* Update template-home-portfolio.php
  • Loading branch information
richtabor authored Oct 16, 2023
1 parent 45a9227 commit 5164e22
Show file tree
Hide file tree
Showing 64 changed files with 210 additions and 199 deletions.
2 changes: 1 addition & 1 deletion parts/post-meta.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!-- wp:pattern {"slug":"twentytwentyfour/post-meta"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/hidden-post-meta"} /-->
2 changes: 1 addition & 1 deletion parts/sidebar.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!-- wp:pattern {"slug":"twentytwentyfour/sidebar"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/hidden-sidebar"} /-->
2 changes: 1 addition & 1 deletion patterns/hero.php → patterns/banner-hero.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Title: Hero
* Slug: twentytwentyfour/hero
* Slug: twentytwentyfour/banner-hero
* Categories: banner, call-to-action, featured
* Viewport width: 1400
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* Title: Project description
* Slug: twentytwentyfour/project-description
* Categories: featured, banner, about
* Slug: twentytwentyfour/banner-project-description
* Categories: featured, banner, about, portfolio
* Viewport width: 1400
*/
?>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* Title: Left Aligned Call to Action with Image
* Slug: twentytwentyfour/left-aligned-cta-image
* Categories: call-to-action
* Title: Call to action with image on right
* Slug: twentytwentyfour/cta-content-image-on-right
* Categories: call-to-action, banner
* Viewport width: 1400
*/
?>
Expand Down
2 changes: 1 addition & 1 deletion patterns/pricing.php → patterns/cta-pricing.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Title: Pricing
* Slug: twentytwentyfour/pricing
* Slug: twentytwentyfour/cta-pricing
* Categories: call-to-action, services
* Viewport width: 1400
*/
Expand Down
2 changes: 1 addition & 1 deletion patterns/rsvp.php → patterns/cta-rsvp.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Title: RSVP
* Slug: twentytwentyfour/rsvp
* Slug: twentytwentyfour/cta-rsvp
* Categories: call-to-action, featured
* Viewport width: 1100
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Title: Services - Call To Action
* Slug: twentytwentyfour/services-cta
* Title: Services call to action with image on left
* Slug: twentytwentyfour/cta-services-image-left
* Categories: call-to-action, banner, featured, services
* Viewport width: 1400
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Title: Centered Call To Action
* Slug: twentytwentyfour/text-centered-cta-subscribe
* Title: Centered call to action
* Slug: twentytwentyfour/cta-subscribe-centered
* Categories: call-to-action
* Keywords: newsletter, subscribe, button
*/
Expand Down
2 changes: 1 addition & 1 deletion patterns/footer.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Title: Footer with colophon, four columns
* Title: Footer with colophon, 4 columns
* Slug: twentytwentyfour/footer
* Categories: footer
* Block Types: core/template-part/footer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* Title: Full Screen Image
* Slug: twentytwentyfour/full-screen-image
* Inserter: no
* Title: Full screen image
* Slug: twentytwentyfour/gallery-full-screen-image
* Categories: gallery, portfolio
*/
?>

Expand All @@ -13,8 +13,8 @@
<div role="img" class="wp-block-cover__image-background has-parallax" style="background-position:50% 50%;background-image:url(<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/art-gallery.webp)">
</div>
<div class="wp-block-cover__inner-container">
<!-- wp:spacer {"height":"var:preset|spacing|60"} -->
<div style="height:var(--wp--preset--spacing--60)" aria-hidden="true" class="wp-block-spacer"></div>
<!-- wp:spacer {"height":"500px"} -->
<div style="height:500px" aria-hidden="true" class="wp-block-spacer"></div>
<!-- /wp:spacer -->
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* Title: Offset Image Grid, 2 Columns
* Slug: twentytwentyfour/gallery-offset-image-grid-2-col
* Categories: gallery, featured, portfolio
* Title: Offset gallery, 2 columns
* Slug: twentytwentyfour/gallery-offset-images-grid-2-col
* Categories: gallery, portfolio
* Keywords: project, images, media, masonry, columns
* Viewport width: 1400
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* Title: Offset Image Grid, 3 Columns
* Slug: twentytwentyfour/gallery-offset-image-grid-3-col
* Categories: gallery, featured, portfolio
* Title: Offset gallery, 3 columns
* Slug: twentytwentyfour/gallery-offset-images-grid-2-col
* Categories: gallery, portfolio
* Keywords: project, images, media, masonry, columns
* Viewport width: 1400
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Title: Offset Image Grid, 4 Columns
* Slug: twentytwentyfour/gallery-offset-image-grid-4-col
* Title: Offset gallery, 4 columns
* Slug: twentytwentyfour/gallery-offset-images-grid-4-col
* Categories: gallery, featured, portfolio
* Keywords: project, images, media, masonry, columns
* Viewport width: 1400
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Title: Project Layout
* Slug: twentytwentyfour/project-layout
* Title: Project layout
* Slug: twentytwentyfour/gallery-project-layout
* Categories: gallery, featured, portfolio
* Viewport width: 1600
*/
Expand Down
6 changes: 3 additions & 3 deletions patterns/hidden-404.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Title: A 404 page
* Slug: twentytwentyfour/404
* Title: 404
* Slug: twentytwentyfour/hidden-404
* Inserter: no
*/
?>
Expand All @@ -12,4 +12,4 @@
<!-- wp:paragraph -->
<p><?php echo esc_html_x( 'The page you are looking for does not exist, or it has been moved. Please try searching using the form below.', 'Message to convey that a webpage could not be found', 'twentytwentyfour' ); ?></p>
<!-- /wp:paragraph -->
<!-- wp:pattern {"slug":"twentytwentyfour/search"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/hidden-search"} /-->
2 changes: 1 addition & 1 deletion patterns/hidden-comments.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Title: Comments
* Slug: twentytwentyfour/comments
* Slug: twentytwentyfour/hidden-comments
* Inserter: no
*/
?>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Title: Hidden No Results Content
* Slug: twentytwentyfour/no-results-content
* Title: No results
* Slug: twentytwentyfour/hidden-no-results
* Inserter: no
*/
?>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php
/**
* Title: Heading on left
* Slug: twentytwentyfour/intro-text-left
* Categories: text
* Title: Portfolio hero
* Slug: twentytwentyfour/hidden-portfolio-hero
* Inserter: no
*/
?>
Expand Down
4 changes: 2 additions & 2 deletions patterns/hidden-post-meta.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Title: Post Meta
* Slug: twentytwentyfour/post-meta
* Title: Post meta
* Slug: twentytwentyfour/hidden-post-meta
* Inserter: no
*/
?>
Expand Down
4 changes: 2 additions & 2 deletions patterns/hidden-post-navigation.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php
/**
* Title: Post navigation
* slug: twentytwentyfour/post-navigation
* inserter: no
* Slug: twentytwentyfour/hidden-post-navigation
* Inserter: no
*/
?>

Expand Down
4 changes: 2 additions & 2 deletions patterns/hidden-search.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Title: Hidden Search form
* Slug: twentytwentyfour/search
* Title: Search
* Slug: twentytwentyfour/hidden-search
* Inserter: no
*/
?>
Expand Down
5 changes: 2 additions & 3 deletions patterns/hidden-sidebar.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php
/**
* Title: sidebar
* Slug: twentytwentyfour/sidebar
* Categories: hidden
* Title: Sidebar
* Slug: twentytwentyfour/hidden-sidebar
* Inserter: no
*/
?>
Expand Down
18 changes: 0 additions & 18 deletions patterns/page-01-business-home.php

This file was deleted.

19 changes: 0 additions & 19 deletions patterns/page-02-business-about.php

This file was deleted.

17 changes: 0 additions & 17 deletions patterns/page-03-portfolio-overview.php

This file was deleted.

14 changes: 0 additions & 14 deletions patterns/page-05-portfolio-home.php

This file was deleted.

19 changes: 19 additions & 0 deletions patterns/page-about-business.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php
/**
* Title: About
* Slug: twentytwentyfour/page-about-business
* Categories: page
* Keywords: starter
* Block Types: core/post-content
* Post Types: page, wp_template
* Viewport width: 1400
*/
?>

<!-- wp:pattern {"slug":"twentytwentyfour/text-title-left-image-right"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/text-project-details"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/cta-services-image-left"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/team-4-col"} /-->
<!-- wp:pattern {"slug":"clients-section"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/text-faq"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/cta-content-image-on-right"} /-->
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<?php
/**
* Title: Blogging Home
* Slug: twentytwentyfour/blogging-home
* Categories: text, page
* Title: Blogging home
* Slug: twentytwentyfour/page-home-blogging
* Categories: page
* Keywords: page, starter
* Post Types: page, wp_template
* Viewport width: 1400
*/
?>

<!-- wp:pattern {"slug":"twentytwentyfour/text-centered-title"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/text-centered-statement-small"} /-->

<!-- wp:group {"align":"wide","style":{"spacing":{"margin":{"top":"0","bottom":"0"},"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|40"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignwide" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--40);padding-bottom:var(--wp--preset--spacing--40)">
Expand Down Expand Up @@ -53,7 +53,7 @@
<!-- /wp:query-pagination -->

<!-- wp:query-no-results -->
<!-- wp:pattern {"slug":"twentytwentyfour/no-results-content"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/hidden-no-results"} /-->
<!-- /wp:query-no-results -->
</div>
<!-- /wp:query -->
Expand All @@ -80,4 +80,4 @@
</div>
<!-- /wp:group -->

<!-- wp:pattern {"slug":"twentytwentyfour/text-centered-cta-subscribe"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/cta-subscribe-centered"} /-->
18 changes: 18 additions & 0 deletions patterns/page-home-business.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php
/**
* Title: Business home
* Slug: twentytwentyfour/home-business
* Categories: page
* Keywords: starter
* Block Types: core/post-content
* Post Types: page, wp_template
* Viewport width: 1400
*/
?>

<!-- wp:pattern {"slug":"twentytwentyfour/banner-hero"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/text-feature-grid-3-col"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/text-alternating-images"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/testimonial-centered"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/posts-grid-2-col"} /-->
<!-- wp:pattern {"slug":"twentytwentyfour/cta-subscribe-centered"} /-->
Loading

0 comments on commit 5164e22

Please sign in to comment.