Skip to content
3 changes: 2 additions & 1 deletion src/wp-content/themes/twentytwentyfour/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package Twenty Twenty-Four
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
* Categories: banner, call-to-action, featured
* Viewport width: 1400
* Description: A hero section with a title, a paragraph, a CTA button, and an image.
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}}},"layout":{"type":"constrained","contentSize":"","wideSize":""}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@
* Categories: featured, banner, about, portfolio
* Viewport width: 1400
* Description: Project description section with title, paragraph, and an image.
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:group {"align":"full","style":{"spacing":{"margin":{"top":"0","bottom":"0"},"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}}},"backgroundColor":"accent-2","layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull has-accent-2-background-color has-background" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)">
<!-- wp:columns {"align":"wide"} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
* Categories: call-to-action, banner
* Viewport width: 1400
* Description: A title, paragraph, two CTA buttons, and an image for a general CTA section.
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50","right":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
* Categories: call-to-action, services
* Viewport width: 1400
* Description: A pricing section with a title, a paragraph and three pricing levels.
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'Pricing Table', 'Name for the pricing pattern', 'twentytwentyfour' ); ?>"},"align":"full","style":{"spacing":{"margin":{"top":"0","bottom":"0"},"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} -->
Expand Down
5 changes: 5 additions & 0 deletions src/wp-content/themes/twentytwentyfour/patterns/cta-rsvp.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
* Categories: call-to-action, featured
* Viewport width: 1100
* Description: A large RSVP heading sideways, a description, and a CTA button.
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:group {"metadata":{"name":"<?php echo esc_html_x( 'RSVP', 'Name of RSVP pattern', 'twentytwentyfour' ); ?>"},"align":"full","style":{"spacing":{"margin":{"top":"0","bottom":"0"},"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50","right":"var:preset|spacing|50"}}},"backgroundColor":"accent-5","layout":{"type":"constrained"}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
* Categories: call-to-action, banner, featured, services
* Viewport width: 1400
* Description: An image, title, paragraph and a CTA button to describe services.
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50","right":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}}},"backgroundColor":"accent-5","layout":{"type":"constrained"}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
* Categories: call-to-action
* Keywords: newsletter, subscribe, button
* Description: Subscribers CTA section with a title, a paragraph and a CTA button.
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50","right":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
* Categories: footer
* Block Types: core/template-part/footer
* Description: A footer section with a centered logo, navigation, and WordPress credits.
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|40","bottom":"var:preset|spacing|50"}}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"center"}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
* Categories: footer
* Block Types: core/template-part/footer
* Description: A footer section with a colophon and 3 columns.
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:group {"align":"wide","layout":{"type":"constrained"}} -->
Expand Down
5 changes: 5 additions & 0 deletions src/wp-content/themes/twentytwentyfour/patterns/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
* Categories: footer
* Block Types: core/template-part/footer
* Description: A footer section with a colophon and 4 columns.
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:group {"style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
* Slug: twentytwentyfour/gallery-full-screen-image
* Categories: gallery, portfolio
* Description: A cover image section that covers the entire width.
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:cover {"url":"<?php echo esc_url( get_template_directory_uri() ); ?>/assets/images/art-gallery.webp","hasParallax":true,"dimRatio":0,"overlayColor":"base","minHeight":100,"minHeightUnit":"vh","isDark":false,"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","bottom":"var:preset|spacing|50","right":"var:preset|spacing|50","left":"var:preset|spacing|50"}}},"layout":{"type":"constrained"}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@
* Keywords: project, images, media, masonry, columns
* Viewport width: 1400
* Description: A gallery section with 2 columns and offset images.
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:group {"metadata":{"name":"Portfolio Images"},"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|50","left":"var:preset|spacing|50","top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)">
<!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"0","left":"var:preset|spacing|40"},"margin":{"top":"0","bottom":"0"}}}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@
* Keywords: project, images, media, masonry, columns
* Viewport width: 1400
* Description: A gallery section with 3 columns and offset images.
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:group {"metadata":{"name":"Portfolio Images"},"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|50","left":"var:preset|spacing|50","top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
<div class="wp-block-group alignfull" style="margin-top:0;margin-bottom:0;padding-top:var(--wp--preset--spacing--50);padding-right:var(--wp--preset--spacing--50);padding-bottom:var(--wp--preset--spacing--50);padding-left:var(--wp--preset--spacing--50)">
<!-- wp:columns {"align":"wide","style":{"spacing":{"blockGap":{"top":"0","left":"var:preset|spacing|40"},"margin":{"top":"0","bottom":"0"}}}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
* Keywords: project, images, media, masonry, columns
* Viewport width: 1400
* Description: A gallery section with 4 columns and offset images.
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"right":"var:preset|spacing|50","left":"var:preset|spacing|50","top":"var:preset|spacing|50","bottom":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"},"metadata":{"name":"Portfolio Images"}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
* Categories: gallery, featured, portfolio
* Viewport width: 1600
* Description: A gallery section with a project layout with 2 images.
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:group {"align":"full","style":{"spacing":{"padding":{"top":"var:preset|spacing|50","right":"var:preset|spacing|50","bottom":"var:preset|spacing|50","left":"var:preset|spacing|50"},"margin":{"top":"0","bottom":"0"}},"elements":{"link":{"color":{"text":"var:preset|color|base-2"}}}},"backgroundColor":"contrast","textColor":"base-2","layout":{"type":"constrained"}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
* Title: 404
* Slug: twentytwentyfour/hidden-404
* Inserter: no
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:heading {"level":1} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
* Title: Comments
* Slug: twentytwentyfour/hidden-comments
* Inserter: no
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:comments {"className":"wp-block-comments-query-loop"} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
* Title: No results
* Slug: twentytwentyfour/hidden-no-results
* Inserter: no
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:paragraph -->
<p><?php echo esc_html_x( 'No posts were found.', 'Message explaining that there are no results returned from a search', 'twentytwentyfour' ); ?></p>
<!-- /wp:paragraph -->
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
* Title: Portfolio hero
* Slug: twentytwentyfour/hidden-portfolio-hero
* Inserter: no
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:spacer {"height":"var:preset|spacing|50","style":{"layout":{}}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
* Title: Post meta
* Slug: twentytwentyfour/hidden-post-meta
* Inserter: no
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:group {"layout":{"type":"constrained"}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
* Title: Post navigation
* Slug: twentytwentyfour/hidden-post-navigation
* Inserter: no
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:group {"tagName":"nav","ariaLabel":"<?php esc_attr_e( 'Posts', 'twentytwentyfour' ); ?>","style":{"spacing":{"padding":{"bottom":"var:preset|spacing|40","top":"var:preset|spacing|40"}}},"layout":{"type":"flex","flexWrap":"nowrap","justifyContent":"space-between"}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@
* Slug: twentytwentyfour/hidden-posts-heading
* Categories: hidden
* Inserter: no
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:heading {"level":1,"align":"wide","style":{"spacing":{"padding":{"top":"var:preset|spacing|50"}}}} -->
<h1 class="wp-block-heading alignwide" style="padding-top:var(--wp--preset--spacing--50)"><?php esc_html_e( 'Posts', 'twentytwentyfour' ); ?></h1>
<!-- /wp:heading -->
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
* Title: Search
* Slug: twentytwentyfour/hidden-search
* Inserter: no
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:search {"label":"<?php echo esc_attr_x( 'Search', 'search form label', 'twentytwentyfour' ); ?>","showLabel":false,"buttonText":"<?php echo esc_attr_x( 'Search', 'search button text', 'twentytwentyfour' ); ?>","fontSize":"medium"} /-->
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
* Title: Sidebar
* Slug: twentytwentyfour/hidden-sidebar
* Inserter: no
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:group {"style":{"spacing":{"blockGap":"36px","padding":{"right":"0","left":"0"}}},"layout":{"type":"default"}} -->
<div class="wp-block-group" style="padding-right:0;padding-left:0">
<!-- wp:group {"style":{"spacing":{"margin":{"top":"0","bottom":"0"}}},"layout":{"type":"constrained"}} -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
* Post Types: page, wp_template
* Viewport width: 1400
* Description: A business about page with a hero section, a text section, a services section, a team section, a clients section, a FAQ section, and a CTA section.
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:pattern {"slug":"twentytwentyfour/text-title-left-image-right"} /-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@
* Post Types: page, wp_template
* Viewport width: 1400
* Description: A blogging home page with a hero section, a text section, a blog section, and a CTA section.
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:pattern {"slug":"twentytwentyfour/text-centered-statement-small"} /-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
* Post Types: page, wp_template
* Viewport width: 1400
* Description: A business home page with a hero section, a text section, a services section, a team section, a clients section, a FAQ section, and a CTA section.
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:pattern {"slug":"twentytwentyfour/banner-hero"} /-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
* Post Types: page, wp_template
* Viewport width: 1400
* Description: A portfolio home page that features a gallery.
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:pattern {"slug":"twentytwentyfour/hidden-portfolio-hero"} /-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@
* Post Types: page, wp_template
* Viewport width: 1400
* Description: A portfolio home page with a description and a 4-column post section with only feature images.
*
* @package WordPress
* @subpackage Twenty_Twenty_Four
* @since Twenty Twenty-Four 1.0
*/

?>

<!-- wp:pattern {"slug":"twentytwentyfour/hidden-portfolio-hero"} /-->
Expand Down
Loading
Loading