<?php
if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); }
/*
 * Templatation.com
 *
 * Pricing Block with image for VC
 *
 */


function tt_lc_pricing_shortcode_fn_vc() {

	vc_map(
		array(
			"icon" => 'tt-vc-block',
			"name" => esc_html__("LC Pricing", 'logiscargo'),
			"base" => "tt_lc_pricing_shortcode",
			'description' => esc_html__( 'Pricing tables.', 'logiscargo' ),
			"category" => esc_html__('Logiscargo', 'logiscargo'),
			"params" => array(
                array(
                    'type'        => 'textfield',
                    'heading'     => esc_html__( 'Block title', 'logiscargo' ),
                    'param_name'  => 'title',
                    'value'       => '',
                    'admin_label' => true
                ),
                array(
                    'type'        => 'textfield',
                    'heading'     => esc_html__( 'Currency', 'logiscargo' ),
                    'param_name'  => 'currency',
                    'value'       => '',
                    'description' => esc_html__( 'Currency symbol (for example: $).', 'logiscargo' ),
                ),
                array(
                    'type'        => 'textfield',
                    'heading'     => esc_html__( 'Price', 'logiscargo' ),
                    'param_name'  => 'price',
                    'value'       => '',
                    'admin_label' => true
                ),
                array(
                    'type'        => 'textfield',
                    'heading'     => esc_html__( 'Price subtext', 'logiscargo' ),
                    'description'     => esc_html__( 'This text appears beside the price, like /Per KM etc. Leave blank to disable.', 'logiscargo' ),
                    'param_name'  => 'price_sub',
                    'value'       => '',
                ),
                array(
                    "type" => "textarea_html",
                    "class" => "",
                    "heading" => esc_html__("Content",'logiscargo'),
                    "param_name" => "content",
                    "value" => "",
                ),
                array(
                    'type'        => 'textfield',
                    'heading'     => esc_html__( 'Button text', 'logiscargo' ),
                    'param_name'  => 'button_text',
                    'value'       => ''
                ),
                array(
                    'type' => 'textfield',
                    'heading' => esc_html__( 'Button link', 'logiscargo' ),
                    'param_name' => 'button_link',
                    'value' => '',
                    'description' => esc_html__( 'Add link to button', 'logiscargo' ),
                )
			)
		)
	);
	
}
add_action( 'vc_before_init', 'tt_lc_pricing_shortcode_fn_vc' );

if(class_exists('WPBakeryShortCode')) {
	class WPBakeryShortCode_tt_lc_pricing_shortcode extends WPBakeryShortCode {
	}
}