first commit
This commit is contained in:
22
blocks/sidebar-heading/sidebar-heading_register.php
Normal file
22
blocks/sidebar-heading/sidebar-heading_register.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
PG_Blocks_v2::register_block_type( array(
|
||||
'name' => 'leonpharmacy/sidebar-heading',
|
||||
'title' => __( 'Sidebar Heading', 'leonpharmacy' ),
|
||||
'category' => 'archive',
|
||||
'supports' => array('color' => array('background' => false,'text' => false,'gradients' => false,'link' => false,),'typography' => array('fontSize' => false,),'anchor' => false,'align' => false,),
|
||||
'base_url' => get_template_directory_uri(),
|
||||
'base_path' => get_template_directory(),
|
||||
'js_file' => 'blocks/sidebar-heading/sidebar-heading.js',
|
||||
'attributes' => array(
|
||||
'heading' => array(
|
||||
'type' => 'string',
|
||||
'default' => 'Heading'
|
||||
)
|
||||
),
|
||||
'example' => array(
|
||||
'heading' => 'Heading'
|
||||
),
|
||||
'dynamic' => false,
|
||||
'version' => '1.5'
|
||||
) );
|
Reference in New Issue
Block a user