Skip to content

Commit

Permalink
Revert seedlet changes
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Feb 1, 2022
1 parent cd5a6ef commit 7c82d6c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
6 changes: 6 additions & 0 deletions seedlet-blocks/functions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

/**
* Block Styles.
*/
require get_stylesheet_directory() . '/inc/block-styles.php';
38 changes: 38 additions & 0 deletions seedlet-blocks/inc/block-styles.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php
/**
* Seedlet Theme: Block Styles
*
* @package Seedlet
* @since 1.0.0
*/

if ( ! function_exists( 'seedlet_blocks_register_block_styles' ) ) :

function seedlet_blocks_register_block_styles() {

if ( function_exists( 'register_block_style' ) ) {

/**
* Register block styles
*/
register_block_style(
'core/latest-posts',
array(
'name' => 'seedlet-alternating-grid',
'label' => __( 'Alternating Grid', 'seedlet-blocks' ),
'style_handle' => 'seedlet-alternating-grid',
)
);
register_block_style(
'a8c/blog-posts',
array(
'name' => 'seedlet-alternating-grid',
'label' => __( 'Alternating Grid', 'seedlet-blocks' ),
'style_handle' => 'seedlet-alternating-grid',
)
);
}
}
endif;

add_action( 'after_setup_theme', 'seedlet_blocks_register_block_styles' );

0 comments on commit 7c82d6c

Please sign in to comment.