init
This commit is contained in:
24
wp-content/themes/flatsome/inc/builder/shortcodes/gap.php
Normal file
24
wp-content/themes/flatsome/inc/builder/shortcodes/gap.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
add_ux_builder_shortcode( 'gap', array(
|
||||
'name' => __( 'Gap' ),
|
||||
'thumbnail' => flatsome_ux_builder_thumbnail( 'gap' ),
|
||||
'info' => '{{ height }}',
|
||||
'allow_in' => array('text_box'),
|
||||
'wrap' => false,
|
||||
|
||||
'options' => array(
|
||||
|
||||
'height' => array(
|
||||
'type' => 'scrubfield',
|
||||
'responsive' => true,
|
||||
'heading' => __( 'Height' ),
|
||||
'default' => '30px',
|
||||
'min' => 0,
|
||||
'on_change' => array(
|
||||
'style' => 'padding-top: {{ value }}'
|
||||
),
|
||||
),
|
||||
'advanced_options' => require( __DIR__ . '/commons/advanced.php'),
|
||||
),
|
||||
) );
|
Reference in New Issue
Block a user