<?php
	$plural_name = '';
	if( function_exists( 'ultimate_booking_pro_cs_get_option' ) ) :
		$plural_name	=	ultimate_booking_pro_cs_get_option( 'singular-service-text', esc_html__('Service', 'ultimate-booking-pro') );
	endif;

	vc_map( array(
		"name" => $plural_name,
		"base" => "dt_sc_service_item",
		"icon" => "dt_sc_service_item",
		"category" => esc_html__( 'Booking Manager', 'ultimate-booking-pro' ),
		"params" => array(

			# ID
			array(
				"type" => "textfield",
				"heading" => esc_html__( "Enter Service ID", "ultimate-booking-pro" ),
				"param_name" => "service_id",
				"value" => '',
				"description" => esc_html__( 'Enter IDs of services to display. More than one ids with comma(,) seperated. Leave empty to display all items.', 'ultimate-booking-pro' ),
			),

			# Type
			array(
				'type' => 'dropdown',
				'heading' => esc_html__('Type','ultimate-booking-pro'),
				'param_name' => 'type',
				'value' => array(
					esc_html__('Type - 1','ultimate-booking-pro') => 'type1',
					esc_html__('Type - 2','ultimate-booking-pro') => 'type2'
				)
			),

			# Excerpt?
			array(
				'type' => 'dropdown',
				'param_name' => 'excerpt',
				'value' => array(
					esc_html__('Yes','ultimate-booking-pro') => 'yes',
					esc_html__('No','ultimate-booking-pro') => 'no'
				),
				'heading' => esc_html__( 'Show Excerpt?', 'ultimate-booking-pro' ),
				'std' => 'no'
			),

			# Excerpt Length
			array(
				'type' => 'textfield',
				'heading' => esc_html__( 'Excerpt Length', 'ultimate-booking-pro' ),
				'param_name' => 'excerpt_length',
				'value' => 12
			),

			# Meta?
			array(
				'type' => 'dropdown',
				'param_name' => 'meta',
				'value' => array(
					esc_html__('Yes','ultimate-booking-pro') => 'yes',
					esc_html__('No','ultimate-booking-pro') => 'no'
				),
				'heading' => esc_html__( 'Show Meta?', 'ultimate-booking-pro' ),
				'std' => 'no'
			),

			# Button Text
			array(
				"type" => "textfield",
				"heading" => esc_html__( "Button Text", "ultimate-booking-pro" ),
				"param_name" => "button_text",
				"value" => esc_html__('View procedure details', 'ultimate-booking-pro'),
				"description" => esc_html__( 'Enter button text.', 'ultimate-booking-pro' ),
			)
	     )
	) );