PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
| Dir : /home/oligap/www/wp-content/themes/woodmart/inc/integrations/visual-composer/maps/ |
| Server: Linux cloud.virginhosting.lk 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64 IP: 128.140.68.198 |
| Dir : /home/oligap/www/wp-content/themes/woodmart/inc/integrations/visual-composer/maps/menu-price.php |
<?php if ( ! defined( 'WOODMART_THEME_DIR' ) ) exit( 'No direct script access allowed' );
/**
* ------------------------------------------------------------------------------------------------
* Menu price elements map
* ------------------------------------------------------------------------------------------------
*/
if( ! function_exists( 'woodmart_vc_map_menu_price' ) ) {
function woodmart_vc_map_menu_price() {
if ( ! shortcode_exists( 'woodmart_menu_price' ) ) {
return;
}
vc_map( array(
'name' => esc_html__( 'Menu price', 'woodmart' ),
'base' => 'woodmart_menu_price',
'class' => '',
'category' => woodmart_get_tab_title_category_for_wpb( esc_html__( 'Theme elements', 'woodmart' ) ),
'description' => esc_html__( 'Showcase your menu', 'woodmart' ),
'icon' => WOODMART_ASSETS . '/images/vc-icon/menu-price.svg',
'params' => array(
/**
* Content
*/
array(
'type' => 'woodmart_title_divider',
'holder' => 'div',
'title' => esc_html__( 'Content', 'woodmart' ),
'param_name' => 'content_divider'
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Title', 'woodmart' ),
'param_name' => 'title',
'holder' => 'div',
'edit_field_class' => 'vc_col-sm-6 vc_column',
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Description', 'woodmart' ),
'param_name' => 'description',
'edit_field_class' => 'vc_col-sm-6 vc_column',
),
array(
'type' => 'textfield',
'heading' => esc_html__( 'Price', 'woodmart' ),
'param_name' => 'price',
'edit_field_class' => 'vc_col-sm-6 vc_column',
),
array(
'type' => 'vc_link',
'heading' => esc_html__( 'Link', 'woodmart'),
'param_name' => 'link',
'hint' => esc_html__( 'Enter URL if you want this box to have a link.', 'woodmart' ),
'edit_field_class' => 'vc_col-sm-6 vc_column',
),
array(
'type' => 'attach_image',
'heading' => esc_html__( 'Image', 'woodmart' ),
'param_name' => 'img_id',
'hint' => esc_html__( 'Select images from media library.', 'woodmart' ),
'edit_field_class' => 'vc_col-sm-6 vc_column',
),
/**
* Extra
*/
array(
'type' => 'woodmart_title_divider',
'holder' => 'div',
'title' => esc_html__( 'Extra options', 'woodmart' ),
'param_name' => 'extra_divider'
),
( function_exists( 'vc_map_add_css_animation' ) ) ? vc_map_add_css_animation( true ) : '',
array(
'type' => 'textfield',
'heading' => esc_html__( 'Extra class name', 'woodmart' ),
'param_name' => 'el_class',
'hint' => esc_html__( 'If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'woodmart' )
)
)
) );
}
add_action( 'vc_before_init', 'woodmart_vc_map_menu_price' );
}