Remove block style registration (#5368)
* Remove block style registration * update variations * Revert seedlet changes
This commit is contained in:
parent
f02c2ac38e
commit
1483ab4a9f
16 changed files with 0 additions and 395 deletions
|
@ -182,11 +182,6 @@ function blockbase_core_navigation_render_fallback() {
|
|||
}
|
||||
add_filter( 'block_core_navigation_render_fallback', 'blockbase_core_navigation_render_fallback' );
|
||||
|
||||
/**
|
||||
* Block Styles.
|
||||
*/
|
||||
require get_template_directory() . '/inc/block-styles.php';
|
||||
|
||||
/**
|
||||
* Block Patterns.
|
||||
*/
|
||||
|
|
|
@ -1,64 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Blockbase Theme: Block Styles
|
||||
*
|
||||
* @package Blockbase
|
||||
* @since 1.2.8
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'blockbase_register_block_styles' ) ) :
|
||||
|
||||
function blockbase_register_block_styles() {
|
||||
|
||||
if ( function_exists( 'register_block_style' ) ) {
|
||||
|
||||
/**
|
||||
* Register block styles
|
||||
*/
|
||||
|
||||
//Post meta styles with icons
|
||||
register_block_style(
|
||||
'core/post-author',
|
||||
array(
|
||||
'name' => 'post-author-icon',
|
||||
'label' => __( 'With icon', 'blockbase' ),
|
||||
'style_handle' => 'post-author-icon',
|
||||
)
|
||||
);
|
||||
register_block_style(
|
||||
'core/post-date',
|
||||
array(
|
||||
'name' => 'post-date-icon',
|
||||
'label' => __( 'With icon', 'blockbase' ),
|
||||
'style_handle' => 'post-date-icon',
|
||||
)
|
||||
);
|
||||
register_block_style(
|
||||
'core/post-terms',
|
||||
array(
|
||||
'name' => 'post-tag-icon',
|
||||
'label' => __( 'With tag icon', 'blockbase' ),
|
||||
'style_handle' => 'post-tag-icon',
|
||||
)
|
||||
);
|
||||
register_block_style(
|
||||
'core/post-terms',
|
||||
array(
|
||||
'name' => 'post-category-icon',
|
||||
'label' => __( 'With category icon', 'blockbase' ),
|
||||
'style_handle' => 'post-category-icon',
|
||||
)
|
||||
);
|
||||
register_block_style(
|
||||
'core/search',
|
||||
array(
|
||||
'name' => 'small-search',
|
||||
'label' => __( 'Small', 'blockbase' ),
|
||||
'style_handle' => 'small-search',
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
endif;
|
||||
|
||||
add_action( 'after_setup_theme', 'blockbase_register_block_styles' );
|
|
@ -12,8 +12,3 @@ if ( ! function_exists( 'quadrat_support' ) ) :
|
|||
}
|
||||
add_action( 'after_setup_theme', 'quadrat_support' );
|
||||
endif;
|
||||
|
||||
/**
|
||||
* Block Styles.
|
||||
*/
|
||||
require get_stylesheet_directory() . '/inc/block-styles.php';
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Quadrat Theme: Block Styles
|
||||
*
|
||||
* @package Seedlet
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'quadrat_register_block_styles' ) ) :
|
||||
|
||||
function quadrat_register_block_styles() {
|
||||
|
||||
if ( function_exists( 'register_block_style' ) ) {
|
||||
|
||||
/**
|
||||
* Register block styles
|
||||
*/
|
||||
register_block_style(
|
||||
'core/cover',
|
||||
array(
|
||||
'name' => 'quadrat-cover-diamond',
|
||||
'label' => __( 'Diamond', 'quadrat' ),
|
||||
'style_handle' => 'quadrat-cover-diamond',
|
||||
)
|
||||
);
|
||||
|
||||
register_block_style(
|
||||
'core/query',
|
||||
array(
|
||||
'name' => 'quadrat-diamond-posts',
|
||||
'label' => __( 'Diamond Posts', 'quadrat' ),
|
||||
'style_handle' => 'quadrat-diamond-posts',
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
endif;
|
||||
|
||||
add_action( 'after_setup_theme', 'quadrat_register_block_styles' );
|
|
@ -12,8 +12,3 @@ if ( ! function_exists( 'quadrat_support' ) ) :
|
|||
}
|
||||
add_action( 'after_setup_theme', 'quadrat_support' );
|
||||
endif;
|
||||
|
||||
/**
|
||||
* Block Styles.
|
||||
*/
|
||||
require get_stylesheet_directory() . '/inc/block-styles.php';
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Quadrat Theme: Block Styles
|
||||
*
|
||||
* @package Seedlet
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'quadrat_register_block_styles' ) ) :
|
||||
|
||||
function quadrat_register_block_styles() {
|
||||
|
||||
if ( function_exists( 'register_block_style' ) ) {
|
||||
|
||||
/**
|
||||
* Register block styles
|
||||
*/
|
||||
register_block_style(
|
||||
'core/cover',
|
||||
array(
|
||||
'name' => 'quadrat-cover-diamond',
|
||||
'label' => __( 'Diamond', 'quadrat' ),
|
||||
'style_handle' => 'quadrat-cover-diamond',
|
||||
)
|
||||
);
|
||||
|
||||
register_block_style(
|
||||
'core/query',
|
||||
array(
|
||||
'name' => 'quadrat-diamond-posts',
|
||||
'label' => __( 'Diamond Posts', 'quadrat' ),
|
||||
'style_handle' => 'quadrat-diamond-posts',
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
endif;
|
||||
|
||||
add_action( 'after_setup_theme', 'quadrat_register_block_styles' );
|
|
@ -12,8 +12,3 @@ if ( ! function_exists( 'quadrat_support' ) ) :
|
|||
}
|
||||
add_action( 'after_setup_theme', 'quadrat_support' );
|
||||
endif;
|
||||
|
||||
/**
|
||||
* Block Styles.
|
||||
*/
|
||||
require get_stylesheet_directory() . '/inc/block-styles.php';
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Quadrat Theme: Block Styles
|
||||
*
|
||||
* @package Seedlet
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'quadrat_register_block_styles' ) ) :
|
||||
|
||||
function quadrat_register_block_styles() {
|
||||
|
||||
if ( function_exists( 'register_block_style' ) ) {
|
||||
|
||||
/**
|
||||
* Register block styles
|
||||
*/
|
||||
register_block_style(
|
||||
'core/cover',
|
||||
array(
|
||||
'name' => 'quadrat-cover-diamond',
|
||||
'label' => __( 'Diamond', 'quadrat' ),
|
||||
'style_handle' => 'quadrat-cover-diamond',
|
||||
)
|
||||
);
|
||||
|
||||
register_block_style(
|
||||
'core/query',
|
||||
array(
|
||||
'name' => 'quadrat-diamond-posts',
|
||||
'label' => __( 'Diamond Posts', 'quadrat' ),
|
||||
'style_handle' => 'quadrat-diamond-posts',
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
endif;
|
||||
|
||||
add_action( 'after_setup_theme', 'quadrat_register_block_styles' );
|
|
@ -12,8 +12,3 @@ if ( ! function_exists( 'quadrat_support' ) ) :
|
|||
}
|
||||
add_action( 'after_setup_theme', 'quadrat_support' );
|
||||
endif;
|
||||
|
||||
/**
|
||||
* Block Styles.
|
||||
*/
|
||||
require get_stylesheet_directory() . '/inc/block-styles.php';
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Quadrat Theme: Block Styles
|
||||
*
|
||||
* @package Seedlet
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'quadrat_register_block_styles' ) ) :
|
||||
|
||||
function quadrat_register_block_styles() {
|
||||
|
||||
if ( function_exists( 'register_block_style' ) ) {
|
||||
|
||||
/**
|
||||
* Register block styles
|
||||
*/
|
||||
register_block_style(
|
||||
'core/cover',
|
||||
array(
|
||||
'name' => 'quadrat-cover-diamond',
|
||||
'label' => __( 'Diamond', 'quadrat' ),
|
||||
'style_handle' => 'quadrat-cover-diamond',
|
||||
)
|
||||
);
|
||||
|
||||
register_block_style(
|
||||
'core/query',
|
||||
array(
|
||||
'name' => 'quadrat-diamond-posts',
|
||||
'label' => __( 'Diamond Posts', 'quadrat' ),
|
||||
'style_handle' => 'quadrat-diamond-posts',
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
endif;
|
||||
|
||||
add_action( 'after_setup_theme', 'quadrat_register_block_styles' );
|
|
@ -12,8 +12,3 @@ if ( ! function_exists( 'quadrat_support' ) ) :
|
|||
}
|
||||
add_action( 'after_setup_theme', 'quadrat_support' );
|
||||
endif;
|
||||
|
||||
/**
|
||||
* Block Styles.
|
||||
*/
|
||||
require get_stylesheet_directory() . '/inc/block-styles.php';
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Quadrat Theme: Block Styles
|
||||
*
|
||||
* @package Seedlet
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'quadrat_register_block_styles' ) ) :
|
||||
|
||||
function quadrat_register_block_styles() {
|
||||
|
||||
if ( function_exists( 'register_block_style' ) ) {
|
||||
|
||||
/**
|
||||
* Register block styles
|
||||
*/
|
||||
register_block_style(
|
||||
'core/cover',
|
||||
array(
|
||||
'name' => 'quadrat-cover-diamond',
|
||||
'label' => __( 'Diamond', 'quadrat' ),
|
||||
'style_handle' => 'quadrat-cover-diamond',
|
||||
)
|
||||
);
|
||||
|
||||
register_block_style(
|
||||
'core/query',
|
||||
array(
|
||||
'name' => 'quadrat-diamond-posts',
|
||||
'label' => __( 'Diamond Posts', 'quadrat' ),
|
||||
'style_handle' => 'quadrat-diamond-posts',
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
endif;
|
||||
|
||||
add_action( 'after_setup_theme', 'quadrat_register_block_styles' );
|
|
@ -12,8 +12,3 @@ if ( ! function_exists( 'quadrat_support' ) ) :
|
|||
}
|
||||
add_action( 'after_setup_theme', 'quadrat_support' );
|
||||
endif;
|
||||
|
||||
/**
|
||||
* Block Styles.
|
||||
*/
|
||||
require get_stylesheet_directory() . '/inc/block-styles.php';
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Quadrat Theme: Block Styles
|
||||
*
|
||||
* @package Seedlet
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'quadrat_register_block_styles' ) ) :
|
||||
|
||||
function quadrat_register_block_styles() {
|
||||
|
||||
if ( function_exists( 'register_block_style' ) ) {
|
||||
|
||||
/**
|
||||
* Register block styles
|
||||
*/
|
||||
register_block_style(
|
||||
'core/cover',
|
||||
array(
|
||||
'name' => 'quadrat-cover-diamond',
|
||||
'label' => __( 'Diamond', 'quadrat' ),
|
||||
'style_handle' => 'quadrat-cover-diamond',
|
||||
)
|
||||
);
|
||||
|
||||
register_block_style(
|
||||
'core/query',
|
||||
array(
|
||||
'name' => 'quadrat-diamond-posts',
|
||||
'label' => __( 'Diamond Posts', 'quadrat' ),
|
||||
'style_handle' => 'quadrat-diamond-posts',
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
endif;
|
||||
|
||||
add_action( 'after_setup_theme', 'quadrat_register_block_styles' );
|
|
@ -1,10 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Block Styles.
|
||||
*/
|
||||
require get_stylesheet_directory() . '/inc/block-styles.php';
|
||||
|
||||
/**
|
||||
* Add class to body if post/page has a featured image.
|
||||
*/
|
||||
|
|
|
@ -1,57 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* Skatepark Theme: Block Styles
|
||||
*
|
||||
* @package Skatepark
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
if ( ! function_exists( 'skatepark_register_block_styles' ) ) :
|
||||
|
||||
function skatepark_register_block_styles() {
|
||||
|
||||
if ( function_exists( 'register_block_style' ) ) {
|
||||
|
||||
/**
|
||||
* Register block styles
|
||||
*/
|
||||
register_block_style(
|
||||
'core/heading',
|
||||
array(
|
||||
'name' => 'skatepark-heading-border',
|
||||
'label' => __( 'Top Border', 'skatepark' ),
|
||||
'style_handle' => 'skatepark-heading-border',
|
||||
)
|
||||
);
|
||||
|
||||
register_block_style(
|
||||
'core/image',
|
||||
array(
|
||||
'name' => 'skatepark-aside-caption',
|
||||
'label' => __( 'Aside caption', 'skatepark' ),
|
||||
'style_handle' => 'skatepark-aside-caption',
|
||||
)
|
||||
);
|
||||
|
||||
register_block_style(
|
||||
'core/quote',
|
||||
array(
|
||||
'name' => 'side-quote',
|
||||
'label' => __( 'Side quote', 'skatepark' ),
|
||||
'style_handle' => 'side-quote',
|
||||
)
|
||||
);
|
||||
|
||||
register_block_style(
|
||||
'core/quote',
|
||||
array(
|
||||
'name' => 'testimonial-quote',
|
||||
'label' => __( 'Testimonial', 'skatepark' ),
|
||||
'style_handle' => 'testimonial-quote',
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
endif;
|
||||
|
||||
add_action( 'after_setup_theme', 'skatepark_register_block_styles' );
|
Loading…
Reference in a new issue