__( 'shadow-small', 'byakurai' ), 'shadow-middle' => __( 'shadow-middle', 'byakurai' ), 'shadow-big' => __( 'shadow-big', 'byakurai' ), 'shadow-dent' => __( 'shadow-dent', 'byakurai' ), 'borderstyle-double' => __( 'borderstyle-double', 'byakurai' ), 'box-crossingline-black' => __( 'box-crossingline-black', 'byakurai' ), 'Japanese-style-quotation-marks' => __( 'Japanese-style-quotation-marks', 'byakurai' ), 'square-bracket' => __( 'square-bracket', 'byakurai' ), ); foreach ( $byakurai_blocktype as $byakurai_bname ) { foreach ( $byakurai_addstyle as $byakurai_cssname => $byakurai_csslabel ) { register_block_style( $byakurai_bname, array( 'name' => $byakurai_cssname, 'label' => $byakurai_csslabel, 'style_handle' => 'byakurai-block-style', ) ); } } /*--- 見出し ---*/ $byakurai_addstyle = array( 'singleline-center' => __( 'singleline-center', 'byakurai' ), 'doubleline-center' => __( 'doubleline-center', 'byakurai' ), 'box-crossingline-black' => __( 'box-crossingline-black', 'byakurai' ), 'Japanese-style-quotation-marks' => __( 'Japanese-style-quotation-marks', 'byakurai' ), 'square-bracket' => __( 'square-bracket', 'byakurai' ), ); foreach ( $byakurai_addstyle as $byakurai_cssname => $byakurai_csslabel ) { register_block_style( 'core/heading', array( 'name' => $byakurai_cssname, 'label' => $byakurai_csslabel, 'style_handle' => 'byakurai-block-style', ) ); } /* --- クエリー ---*/ // ポストテンプレート! $byakurai_addstyle = array( 'post-template-shadow-small' => __( 'shadow-small', 'byakurai' ), 'post-template-shadow-middle' => __( 'shadow-middle', 'byakurai' ), 'post-template-shadow-big' => __( 'shadow-big', 'byakurai' ), 'post-template-shadow-dent' => __( 'shadow-dent', 'byakurai' ), ); foreach ( $byakurai_addstyle as $byakurai_cssname => $byakurai_csslabel ) { register_block_style( 'core/post-template', array( 'name' => $byakurai_cssname, 'label' => $byakurai_csslabel, 'style_handle' => 'byakurai-block-style', ) ); } // カテゴリ・タグ半円! register_block_style( 'core/post-terms', array( 'name' => 'post-terms-semicircle', 'label' => __( 'semicircle', 'byakurai' ), 'style_handle' => 'byakurai-block-style', ) ); // ページネーション! register_block_style( 'core/query-pagination', array( 'name' => 'mono-minimal', 'label' => __( 'mono-minimal', 'byakurai' ), 'style_handle' => 'byakurai-block-style', ) ); } add_action( 'init', 'byakurai_register_block_styles' );