芝麻web文件管理V1.00
编辑当前文件:/home/r5772835/public_html/ycreate.jp/wp-content/themes/snow-monkey/app/setup/block-patterns.php
'sm-headers', 'label' => __( 'Headers', 'snow-monkey' ), ), array( 'name' => 'sm-features', 'label' => __( 'Features', 'snow-monkey' ), ), array( 'name' => 'sm-text-with-image', 'label' => __( 'Text with image', 'snow-monkey' ), ), array( 'name' => 'sm-gallery', 'label' => __( 'Gallery', 'snow-monkey' ), ), array( 'name' => 'sm-columns', 'label' => __( 'Columns', 'snow-monkey' ), ), ); foreach ( $block_pattern_categories as $block_pattern_categorie ) { register_block_pattern_category( $block_pattern_categorie['name'], array( 'label' => '[Snow Monkey] ' . $block_pattern_categorie['label'], ) ); } $block_patterns = array( 'snow-monkey/header-1' => array( // translators: %1$s: number 'title' => sprintf( __( 'Header %1$s', 'snow-monkey' ), 1 ), 'categories' => array( 'sm-headers' ), 'content' => Helper::render_block_pattern( 'header-1' ), ), 'snow-monkey/header-2' => array( // translators: %1$s: number 'title' => sprintf( __( 'Header %1$s', 'snow-monkey' ), 2 ), 'categories' => array( 'sm-headers' ), 'content' => Helper::render_block_pattern( 'header-2' ), ), 'snow-monkey/header-3' => array( // translators: %1$s: number 'title' => sprintf( __( 'Header %1$s', 'snow-monkey' ), 3 ), 'categories' => array( 'sm-headers' ), 'content' => Helper::render_block_pattern( 'header-3' ), ), 'snow-monkey/header-4' => array( // translators: %1$s: number 'title' => sprintf( __( 'Header %1$s', 'snow-monkey' ), 4 ), 'categories' => array( 'sm-headers' ), 'content' => Helper::render_block_pattern( 'header-4' ), ), 'snow-monkey/header-5' => array( // translators: %1$s: number 'title' => sprintf( __( 'Header %1$s', 'snow-monkey' ), 5 ), 'categories' => array( 'sm-headers' ), 'content' => Helper::render_block_pattern( 'header-5' ), ), 'snow-monkey/header-6' => array( // translators: %1$s: number 'title' => sprintf( __( 'Header %1$s', 'snow-monkey' ), 6 ), 'categories' => array( 'sm-headers' ), 'content' => Helper::render_block_pattern( 'header-6' ), ), 'snow-monkey/header-7' => array( // translators: %1$s: number 'title' => sprintf( __( 'Header %1$s', 'snow-monkey' ), 7 ), 'categories' => array( 'sm-headers' ), 'content' => Helper::render_block_pattern( 'header-7' ), ), 'snow-monkey/header-8' => array( // translators: %1$s: number 'title' => sprintf( __( 'Header %1$s', 'snow-monkey' ), 8 ), 'categories' => array( 'sm-headers' ), 'content' => Helper::render_block_pattern( 'header-8' ), ), 'snow-monkey/feature-1' => array( // translators: %1$s: number 'title' => sprintf( __( 'Feature %1$s', 'snow-monkey' ), 1 ), 'categories' => array( 'sm-features' ), 'content' => Helper::render_block_pattern( 'feature-1' ), ), 'snow-monkey/feature-2' => array( // translators: %1$s: number 'title' => sprintf( __( 'Feature %1$s', 'snow-monkey' ), 2 ), 'categories' => array( 'sm-features' ), 'content' => Helper::render_block_pattern( 'feature-2' ), ), 'snow-monkey/feature-3' => array( // translators: %1$s: number 'title' => sprintf( __( 'Feature %1$s', 'snow-monkey' ), 3 ), 'categories' => array( 'sm-features' ), 'content' => Helper::render_block_pattern( 'feature-3' ), ), 'snow-monkey/text-with-image-1' => array( // translators: %1$s: number 'title' => sprintf( __( 'Text with image %1$s', 'snow-monkey' ), 1 ), 'categories' => array( 'sm-text-with-image' ), 'content' => Helper::render_block_pattern( 'text-with-image-1' ), ), 'snow-monkey/text-with-image-2' => array( // translators: %1$s: number 'title' => sprintf( __( 'Text with image %1$s', 'snow-monkey' ), 2 ), 'categories' => array( 'sm-text-with-image' ), 'content' => Helper::render_block_pattern( 'text-with-image-2' ), ), 'snow-monkey/text-with-image-3' => array( // translators: %1$s: number 'title' => sprintf( __( 'Text with image %1$s', 'snow-monkey' ), 3 ), 'categories' => array( 'sm-text-with-image' ), 'content' => Helper::render_block_pattern( 'text-with-image-3' ), ), 'snow-monkey/gallery-1' => array( // translators: %1$s: number 'title' => sprintf( __( 'Gallery %1$s', 'snow-monkey' ), 1 ), 'categories' => array( 'sm-gallery' ), 'content' => Helper::render_block_pattern( 'gallery-1' ), ), 'snow-monkey/gallery-2' => array( // translators: %1$s: number 'title' => sprintf( __( 'Gallery %1$s', 'snow-monkey' ), 2 ), 'categories' => array( 'sm-gallery' ), 'content' => Helper::render_block_pattern( 'gallery-2' ), ), 'snow-monkey/gallery-3' => array( // translators: %1$s: number 'title' => sprintf( __( 'Gallery %1$s', 'snow-monkey' ), 3 ), 'categories' => array( 'sm-gallery' ), 'content' => Helper::render_block_pattern( 'gallery-3' ), ), 'snow-monkey/columns-1' => array( // translators: %1$s: number 'title' => sprintf( __( 'Columns %1$s', 'snow-monkey' ), 1 ), 'categories' => array( 'sm-columns' ), 'content' => Helper::render_block_pattern( 'columns-1' ), ), ); foreach ( $block_patterns as $block_pattern_name => $block_pattern_properties ) { register_block_pattern( $block_pattern_name, $block_pattern_properties ); } } );