Make WordPress Themes

source: blockstrap/0.0.9/inc/header-block-patterns.php @ 178431

Last change on this file since 178431 was 178431, checked in by themedropbox, 3 years ago

New version of BlockStrap - 0.0.9

File size: 744 bytes
Line 
1<?php
2/**
3 * Header block patterns
4 *
5 * @package BlockStrap
6 * @since 1.2.0
7 */
8
9/*
10 * Register Block Pattern Category.
11 */
12if ( function_exists( 'register_block_pattern_category' ) ) {
13        register_block_pattern_category(
14                'blockstrap-site-header',
15                array( 'label' => esc_html__( 'Site headers', 'blockstrap' ) )
16        );
17}
18
19/**
20 * Register Block Patterns.
21 */
22if ( function_exists( 'register_block_pattern' ) ) {
23
24        register_block_pattern(
25                'blockstrap/header-default',
26                array(
27                        'title'      => esc_html__( 'Default Header', 'blockstrap' ),
28                        'categories' => array( 'site-header' ),
29                        'content'    => defined( 'BLOCKSTRAP_BLOCKS_VERSION' ) ? apply_filters(
30                                'bs_pattern_header_default',
31                                ''
32                        ) : '<!-- wp:site-title /-->',
33                )
34        );
35
36}
Note: See TracBrowser for help on using the repository browser.