/** * Scripts within the Gutenberg post editor. * Add styling options to core Heading Block. * * @package AMPWPTools * @subpackage Accelerate by AMP Publisher * @since 1.0 * @version 1.0 */ var __ = wp.i18n.__; wp.blocks.registerBlockStyle( 'core/heading', { name: 'tbk-default' , label: __( 'Sitewide Default' ) } ); wp.blocks.registerBlockStyle( 'core/heading', { name: 'tbk-basic' , label: __( 'Basic' ) } ); wp.blocks.registerBlockStyle( 'core/heading', { name: 'tbk-lines' , label: __( 'Lines' ) } ); wp.blocks.registerBlockStyle( 'core/heading', { name: 'tbk-doubles' , label: __( 'Double Lines' ) } ); wp.blocks.registerBlockStyle( 'core/heading', { name: 'tbk-rounds' , label: __( 'Rounds' ) } ); wp.blocks.registerBlockStyle( 'core/heading', { name: 'tbk-dblrounds' , label: __( 'Double Rounds' ) } ); wp.blocks.registerBlockStyle( 'core/heading', { name: 'tbk-hashed' , label: __( 'Hash Bars V1' ) } ); wp.blocks.registerBlockStyle( 'core/heading', { name: 'tbk-hashed1' , label: __( 'Hash Bars V2' ) } ); wp.blocks.registerBlockStyle( 'core/heading', { name: 'tbk-hashed2' , label: __( 'Hash Bars V3' ) } ); wp.blocks.registerBlockStyle( 'core/heading', { name: 'tbk-hashed3' , label: __( 'Hash Bars V4' ) } );