
* Overwrite existing array instead of concatenating * Brought in child build process * refactored Seedlet Blocks to be a child of Blank-Canvas-Blocks * Font, template and configuration changes to align with Seedlet. * inverted font parings to be correct * Make post titles a link * Add entry meta in the footer * Add entry meta to seedlet blocks * Add post meta to singular * Add author bio on singular template * Remove the troublesome 'theme' metadata * Add author bios and a footer credit * Added Seedlet Block Dev server deploy action * Include SB-BCB BCB in deploy action * Separated names of steps * make Mayland a bcb child, change typography variables * rebuilt theme.json file with new build tools * removed alignments css * defined layout for the theme * fixed hover states for buttons on bcb * updated color variables for mayland * move the google font definitions to theme.json * Corrected Button style definitions and removed duplication of collections in child theme.json file * added new post meta template part * added template part to json, changed font sizes * overriden icons * changed color to meta links * added post tags to meta * added template part to index template too * Adding SCSS build + watch workflow to Seedlet Blocks (#3575) * Adding SCSS build + watch workflow to Seedlet Blocks * Fix seedlet-bcb site title (#3576) * Added site title block themes from original Seedlet theme * Adjusted links to match Seedlet. (#3578) * Refactored build scripts to standardize (#3579) * Refactored build scripts to standardize. 'start' and 'build' script targets. * Added a start:child script target Co-authored-by: Ben Dwyer <ben@scruffian.com> * Changed target of the dev branch * Update template parts syntax in seedlet blocks * remove theme slugs from templates * Make the pony fill a dependency of mayland blocks so that it loads first * Seedlet Blocks: Update blocks .scss file names to adhere to the SASS naming convention for partials * Remove _ from the import * Fix/seedlet bcb pullquote (#3580) * Adjust styles for Seedlet BCB to match Seedlet * Added font family to citation custom styles. * Made margins above citation configurable. * Inheriting Line Height so it can be set via styles. * Added ponyfill as theme style dependency so child theme would win CSS specificity battle ties Co-authored-by: Jeff Ong <jeff.ong@automattic.com> * rebuilt theme.json and theme.css from last merge * Blank Canvas Blocks: Remove unnecessary priority parameter from ponyfill css load (#3603) * Add/bcb index query (#3604) * Add site-logo to BCB header and centered it * Add index template (with header and footer) with query loop Co-authored-by: Kjell Reigstad <kjell@kjellr.com> * Style seedlet bcb latest post Block (#3597) * Added latest post block styling * Register latest post block pattern from Seedlet * Added latest post block styles Co-authored-by: Jeff Ong <jeff.ong@automattic.com> * Fix bad merge. * Check in compiled styles. * Fix link colors in the editor. * removed supports that are on the parent theme (#3594) * Cherry pick changes to seedlet. * Remove unrelated mayland blocks change. Co-authored-by: Jason Crist <jcrist@pbking.com> Co-authored-by: Ben Dwyer <ben@scruffian.com> Co-authored-by: Maggie Cabrera <maggie.cabrera@automattic.com> Co-authored-by: Daniel Dudzic <daniel.dudzic@automattic.com> Co-authored-by: Kjell Reigstad <kjell@kjellr.com>
34 lines
927 B
PHP
34 lines
927 B
PHP
<?php
|
|
/**
|
|
* Seedlet Theme: Block Patterns
|
|
*
|
|
* @package Seedlet
|
|
* @since 1.0.0
|
|
*/
|
|
if ( ! function_exists( 'seedlet_blocks_register_block_patterns' ) ) :
|
|
|
|
function seedlet_blocks_register_block_patterns() {
|
|
|
|
if ( function_exists( 'register_block_pattern_category' ) ) {
|
|
register_block_pattern_category(
|
|
'seedlet-blocks',
|
|
array( 'label' => __( 'Seedlet', 'seedlet-blocks' ) )
|
|
);
|
|
}
|
|
|
|
if ( function_exists( 'register_block_pattern' ) ) {
|
|
|
|
register_block_pattern(
|
|
'seedlet-blocks/latest-posts-alternating-grid',
|
|
array(
|
|
'title' => __( 'Alternating Grid of Latest Posts', 'seedlet-blocks' ),
|
|
'categories' => array( 'seedlet-blocks' ),
|
|
'content' => '<!-- wp:latest-posts {"displayPostContent":true,"columns":5,"className":"is-style-seedlet-alternating-grid"} /-->',
|
|
)
|
|
);
|
|
|
|
}
|
|
}
|
|
endif;
|
|
|
|
add_action( 'after_setup_theme', 'seedlet_blocks_register_block_patterns', 12 );
|