[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * Block Styles 4 * 5 * @link https://developer.wordpress.org/reference/functions/register_block_style/ 6 * 7 * @package WordPress 8 * @subpackage Twenty_Twenty_One 9 * @since Twenty Twenty-One 1.0 10 */ 11 12 if ( function_exists( 'register_block_style' ) ) { 13 /** 14 * Register block styles. 15 * 16 * @since Twenty Twenty-One 1.0 17 * 18 * @return void 19 */ 20 function twenty_twenty_one_register_block_styles() { 21 // Columns: Overlap. 22 register_block_style( 23 'core/columns', 24 array( 25 'name' => 'twentytwentyone-columns-overlap', 26 'label' => esc_html__( 'Overlap', 'twentytwentyone' ), 27 ) 28 ); 29 30 // Cover: Borders. 31 register_block_style( 32 'core/cover', 33 array( 34 'name' => 'twentytwentyone-border', 35 'label' => esc_html__( 'Borders', 'twentytwentyone' ), 36 ) 37 ); 38 39 // Group: Borders. 40 register_block_style( 41 'core/group', 42 array( 43 'name' => 'twentytwentyone-border', 44 'label' => esc_html__( 'Borders', 'twentytwentyone' ), 45 ) 46 ); 47 48 // Image: Borders. 49 register_block_style( 50 'core/image', 51 array( 52 'name' => 'twentytwentyone-border', 53 'label' => esc_html__( 'Borders', 'twentytwentyone' ), 54 ) 55 ); 56 57 // Image: Frame. 58 register_block_style( 59 'core/image', 60 array( 61 'name' => 'twentytwentyone-image-frame', 62 'label' => esc_html__( 'Frame', 'twentytwentyone' ), 63 ) 64 ); 65 66 // Latest Posts: Dividers. 67 register_block_style( 68 'core/latest-posts', 69 array( 70 'name' => 'twentytwentyone-latest-posts-dividers', 71 'label' => esc_html__( 'Dividers', 'twentytwentyone' ), 72 ) 73 ); 74 75 // Latest Posts: Borders. 76 register_block_style( 77 'core/latest-posts', 78 array( 79 'name' => 'twentytwentyone-latest-posts-borders', 80 'label' => esc_html__( 'Borders', 'twentytwentyone' ), 81 ) 82 ); 83 84 // Media & Text: Borders. 85 register_block_style( 86 'core/media-text', 87 array( 88 'name' => 'twentytwentyone-border', 89 'label' => esc_html__( 'Borders', 'twentytwentyone' ), 90 ) 91 ); 92 93 // Separator: Thick. 94 register_block_style( 95 'core/separator', 96 array( 97 'name' => 'twentytwentyone-separator-thick', 98 'label' => esc_html__( 'Thick', 'twentytwentyone' ), 99 ) 100 ); 101 102 // Social icons: Dark gray color. 103 register_block_style( 104 'core/social-links', 105 array( 106 'name' => 'twentytwentyone-social-icons-color', 107 'label' => esc_html__( 'Dark gray', 'twentytwentyone' ), 108 ) 109 ); 110 } 111 add_action( 'init', 'twenty_twenty_one_register_block_styles' ); 112 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated : Thu Nov 21 08:20:01 2024 | Cross-referenced by PHPXref |