Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
90.00% covered (success)
90.00%
18 / 20
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2/**
3 * Blog Search Page block pattern.
4 *
5 * @package automattic/jetpack-search
6 */
7
8namespace Automattic\Jetpack\Search;
9
10if ( ! defined( 'ABSPATH' ) ) {
11    exit( 0 );
12}
13
14$content = Search_Blocks::pattern_content_from_template( 'jetpack-search-overlay.html' );
15if ( '' === $content ) {
16    return;
17}
18
19register_block_pattern(
20    'jetpack-search/blog-search-page',
21    array(
22        'title'       => __( 'Blog Search Page', 'jetpack-search-pkg' ),
23        'description' => __( 'A full-page search layout with sidebar filters and a result list powered by Jetpack Search.', 'jetpack-search-pkg' ),
24        'categories'  => array( 'jetpack-search' ),
25        'keywords'    => array(
26            __( 'search', 'jetpack-search-pkg' ),
27            __( 'blog', 'jetpack-search-pkg' ),
28            __( 'results', 'jetpack-search-pkg' ),
29            __( 'jetpack search', 'jetpack-search-pkg' ),
30        ),
31        'content'     => $content,
32    )
33);