init
This commit is contained in:
24
wp-content/themes/flatsome/inc/builder/shortcodes/block.php
Normal file
24
wp-content/themes/flatsome/inc/builder/shortcodes/block.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
add_ux_builder_shortcode( 'block', array(
|
||||
'name' => __( 'Block', 'flatsome' ),
|
||||
'category' => __( 'Layout', 'flatsome' ),
|
||||
'compile' => false,
|
||||
'thumbnail' => flatsome_ux_builder_thumbnail( 'block' ),
|
||||
'template_shortcode' => "[{tag}{options}]\n\n",
|
||||
'external' => true,
|
||||
|
||||
'options' => array(
|
||||
'id' => array(
|
||||
'type' => 'select',
|
||||
'heading' => __( 'Block', 'flatsome' ),
|
||||
'full_width' => true,
|
||||
'config' => array(
|
||||
'placeholder' => __( 'Select', 'flatsome' ),
|
||||
'postSelect' => array(
|
||||
'post_type' => array( 'blocks' )
|
||||
),
|
||||
)
|
||||
),
|
||||
),
|
||||
) );
|
Reference in New Issue
Block a user