first commit
This commit is contained in:
21
blocks/contact-block/contact-block_register.php
Normal file
21
blocks/contact-block/contact-block_register.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
PG_Blocks_v2::register_block_type( array(
|
||||
'name' => 'leonpharmacy/contact-block',
|
||||
'title' => __( 'Contact Page', 'leonpharmacy' ),
|
||||
'category' => 'Leon Pharmacy Blocks',
|
||||
'enqueue_editor_style' => get_template_directory_uri() . '/assets/css/tailwind_for_wp_editor.css',
|
||||
'render_template' => 'blocks/contact-block/contact-block.php',
|
||||
'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/contact-block/contact-block.js',
|
||||
'attributes' => array(
|
||||
|
||||
),
|
||||
'example' => array(
|
||||
|
||||
),
|
||||
'dynamic' => true,
|
||||
'version' => '1.5'
|
||||
) );
|
Reference in New Issue
Block a user