anitize_text_field( $item_el_style ); $value = $value_off . ";" . $value_on; if ( $condition != '' ) $condition = preg_replace( '/$\R?^/m', "#bt_cc_nl#", $condition ); $output = wptexturize( do_shortcode( '[bt_cc_item ' . 'name="' . $name . '" ' . 'description="' . $description . '" ' . 'type="' . $type . '" ' . 'value="' . $value . '" ' . 'initial_value="' . $initial_value . '" ' . 'condition="' . $condition . '" ' . 'item_el_id="' . $item_el_id . '" ' . 'item_el_class="' . $item_el_class . '" ' . 'item_el_style="' . $item_el_style . '" ' . ']' ) ); return $output; } } // [bt_cc_raw_html] class bt_cc_raw_html { static function init() { add_shortcode( 'bt_cc_raw_html', array( __CLASS__, 'handle_shortcode' ) ); } static function handle_shortcode( $atts, $content ) { extract( shortcode_atts( array( 'raw_html' => '', ), $atts, 'bt_cc_raw_html' ) ); $output = base64_decode( $raw_html ); return do_shortcode($output); } } // [bt_cc_separator] class bt_cc_separator { static function init() { add_shortcode( 'bt_cc_separator', array( __CLASS__, 'handle_shortcode' ) ); } static function handle_shortcode( $atts, $content ) { extract( shortcode_atts( array( 'top_spacing' => '', 'bottom_spacing' => '', 'border_style' => '', 'item_el_id' => '', 'item_el_class' => '', 'item_el_style' => '' ), $atts, 'bt_cc_separator' ) ); $class = array( 'bt_cc_separator' ); $item_id_attr = ''; if ( $item_el_id == '' ) { $item_el_id = uniqid( 'bt_cc_separator' ); } else { $item_el_id = $item_el_id; } $item_id_attr = 'id="' . $item_el_id . '"'; if ( $item_el_class != '' ) { $class[] = $item_el_class; } $item_style_attr = ''; if ( $item_el_style != '' ) { $item_style_attr = 'style="' . $item_el_style . '"'; } if ( $top_spacing != '' ) { $class[] = 'bt_cc_top_spacing' . '_' . $top_spacing; } if ( $bottom_spacing != '' ) { $class[] = 'bt_cc_bottom_spacing' . '_' . $bottom_spacing; } if ( $border_style != '' ) { $class[] = 'bt_cc_border_style' . '_' . $border_style; } $output = '
'; return $output; } } bt_cost_calculator::init(); bt_cc_item::init(); bt_cc_multiply::init(); bt_cc_group::init(); bt_cc_text::init(); bt_cc_select::init(); bt_cc_slider::init(); bt_cc_switch::init(); bt_cc_raw_html::init(); bt_cc_separator::init(); /* * * * * * * * * * * * RC / VC MAPPING * * * * * * * * * * * */ function bt_quote_map_sc() { $time_array = array(); $time_array[ '' ] = ''; for ( $i = 0; $i <= 23; $i++ ) { if ( $i < 10 ) $i = '0' . $i; $time_array[ $i . ':00' ] = $i . ':00'; } $args = array('post_type' => 'wpcf7_contact_form', 'posts_per_page' => -1); $forms_data = array(); if ( $data = get_posts( $args ) ) { $forms_data[ esc_html__( 'No contact form', 'bt-cost-calculator' ) ] = ''; foreach( $data as $key ){ $forms_data[ $key -> post_title ] = $key -> ID; } } else { $forms_data[ '0' ] = esc_html__( 'No Contact Form found', 'bt-cost-calculator' ); } $bt_quote_params = array( array( 'param_name' => 'accent_color', 'type' => 'colorpicker', 'heading' => __( 'Accent Color', 'bt-cost-calculator' ) ), array( 'param_name' => 'total_text', 'type' => 'textfield', 'heading' => __( 'Total Title', 'bt-cost-calculator' ), 'value' => __( 'Total', 'bt-cost-calculator' ) ), array( 'param_name' => 'currency', 'type' => 'textfield', 'heading' => __( 'Currency', 'bt-cost-calculator' ) ), array( 'param_name' => 'currency_after', 'type' => 'checkbox', 'value' => array( 'Yes' => 'yes' ), 'heading' => __( 'Currency After Total', 'bt-cost-calculator' ) ), array( 'param_name' => 'show_next', 'type' => 'checkbox', 'value' => array( 'Yes' => 'yes' ), 'heading' => __( 'Display Next Button and Contact Form', 'bt-cost-calculator' ), 'group' => __( 'Contact-Form', 'bt-cost-calculator' ) ), array( 'param_name' => 'next_text', 'type' => 'textfield', 'heading' => __( 'Next Button Text', 'bt-cost-calculator' ), 'group' => __( 'Contact-Form', 'bt-cost-calculator' ), 'description' => __( 'Leave blank to use default value (Next)', 'bt-cost-calculator' ) ), array( 'param_name' => 'cf7_id', 'type' => 'dropdown', 'value' => $forms_data, 'heading' => __( 'Contact form 7 Id', 'bt-cost-calculator' ), 'preview' => true, 'group' => __( 'Contact-Form', 'bt-cost-calculator' ), 'description' => __( 'Leave blank to use default contact form (settings below)', 'bt-cost-calculator' ) ), array( 'param_name' => 'admin_email', 'type' => 'textfield', 'heading' => __( 'Admin Email', 'bt-cost-calculator' ), 'preview' => true, 'group' => __( 'Contact-Form', 'bt-cost-calculator' ) ), array( 'param_name' => 'subject', 'type' => 'textfield', 'heading' => __( 'Email Subject', 'bt-cost-calculator' ), 'group' => __( 'Contact-Form', 'bt-cost-calculator' ) ), array( 'param_name' => 'email_client', 'type' => 'checkbox', 'value' => array( 'Yes' => 'yes' ), 'heading' => __( 'Send Email to Client', 'bt-cost-calculator' ), 'group' => __( 'Contact-Form', 'bt-cost-calculator' ) ), array( 'param_name' => 'email_confirmation', 'type' => 'checkbox', 'value' => array( 'Show confirmation checkbox for sending email to client' => 'yes' ), 'heading' => __( 'Email Confirmation', 'bt-cost-calculator' ), 'group' => __( 'Contact-Form', 'bt-cost-calculator' ) ), array( 'param_name' => 'url_confirmation', 'type' => 'textfield', 'heading' => __( 'Optional redirection URL for confirmation', 'bt-cost-calculator' ), 'description' => __( 'User will be redirected to this URL after submit', 'bt-cost-calculator' ), 'preview' => true, 'group' => __( 'Contact-Form', 'bt-cost-calculator' ) ), array( 'param_name' => 'm_name', 'type' => 'checkbox', 'value' => array( 'Yes' => 'Mandatory' ), 'heading' => __( 'Mandatory Name', 'bt-cost-calculator' ), 'group' => __( 'Contact-Form', 'bt-cost-calculator' ) ), array( 'param_name' => 'm_email', 'type' => 'checkbox', 'value' => array( 'Yes' => 'Mandatory' ), 'heading' => __( 'Mandatory Email', 'bt-cost-calculator' ), 'group' => __( 'Contact-Form', 'bt-cost-calculator' ) ), array( 'param_name' => 'm_phone', 'type' => 'checkbox', 'value' => array( 'Yes' => 'Mandatory' ), 'heading' => __( 'Mandatory Phone', 'bt-cost-calculator' ), 'group' => __( 'Contact-Form', 'bt-cost-calculator' ) ), array( 'param_name' => 'm_address', 'type' => 'checkbox', 'value' => array( 'Yes' => 'Mandatory' ), 'heading' => __( 'Mandatory Address', 'bt-cost-calculator' ), 'group' => __( 'Contact-Form', 'bt-cost-calculator' ) ), array( 'param_name' => 'm_message', 'type' => 'checkbox', 'value' => array( 'Yes' => 'Mandatory' ), 'heading' => __( 'Mandatory Message', 'bt-cost-calculator' ), 'group' => __( 'Contact-Form', 'bt-cost-calculator' ) ), array( 'param_name' => 'show_booking', 'type' => 'checkbox', 'value' => array( 'Yes' => 'yes' ), 'heading' => __( 'Show Date/Time Inputs', 'bt-cost-calculator' ), 'group' => __( 'Contact-Form', 'bt-cost-calculator' ) ), array( 'param_name' => 'm_date', 'type' => 'checkbox', 'value' => array( 'Yes' => 'Mandatory' ), 'heading' => __( 'Mandatory Preferred Date', 'bt-cost-calculator' ), 'group' => __( 'Contact-Form', 'bt-cost-calculator' ) ), array( 'param_name' => 'm_time', 'type' => 'checkbox', 'value' => array( 'Yes' => 'Mandatory' ), 'heading' => __( 'Mandatory Preferred Time', 'bt-cost-calculator' ), 'group' => __( 'Contact-Form', 'bt-cost-calculator' ) ), array( 'param_name' => 'time_start', 'type' => 'dropdown', 'heading' => __( 'Time Input Start', 'bt-cost-calculator' ), 'value' => $time_array, 'group' => __( 'Contact-Form', 'bt-cost-calculator' )), array( 'param_name' => 'time_end', 'type' => 'dropdown', 'heading' => __( 'Time Input End', 'bt-cost-calculator' ), 'value' => $time_array, 'group' => __( 'Contact-Form', 'bt-cost-calculator' )), array( 'param_name' => 'time_format', 'type' => 'dropdown', 'default' => '24', 'heading' => __( 'Time Input Format', 'bt-cost-calculator' ), 'group' => __( 'Contact-Form', 'bt-cost-calculator' ), 'value' => array( __( '24-hour clock', 'bt-cost-calculator' ) => '24', __( '12-hour (AM/PM) clock', 'bt-cost-calculator' ) => '12' ) ), array( 'param_name' => 'time_text', 'type' => 'textfield', 'heading' => __( 'Time Input Title', 'bt-cost-calculator' ), 'value' => __( 'Preferred Service Time', 'bt-cost-calculator' ), 'group' => __( 'Contact-Form', 'bt-cost-calculator' ) ), array( 'param_name' => 'date_text', 'type' => 'textfield', 'heading' => __( 'Date Input Title', 'bt-cost-calculator' ), 'value' => __( 'Preferred Service Date', 'bt-cost-calculator' ), 'group' => __( 'Contact-Form', 'bt-cost-calculator' ) ), array( 'param_name' => 'rec_site_key', 'type' => 'textfield', 'heading' => __( 'reCAPTCHA Site key', 'bt-cost-calculator' ), 'group' => __( 'reCAPTCHA', 'bt-cost-calculator' ) ), array( 'param_name' => 'rec_secret_key', 'type' => 'textfield', 'heading' => __( 'reCAPTCHA Secret key', 'bt-cost-calculator' ), 'group' => __( 'reCAPTCHA', 'bt-cost-calculator' ) ), array( 'param_name' => 'paypal_email', 'type' => 'textfield', 'heading' => __( 'Your PayPal account email address', 'bt-cost-calculator' ), 'group' => __( 'PayPal', 'bt-cost-calculator' ) ), array( 'param_name' => 'paypal_cart_name', 'type' => 'textfield', 'heading' => __( 'Shopping cart name', 'bt-cost-calculator' ), 'group' => __( 'PayPal', 'bt-cost-calculator' ) ), array( 'param_name' => 'paypal_currency', 'type' => 'textfield', 'heading' => __( 'Currency code (USD, EUR, GBP, CAD, JPY)', 'bt-cost-calculator' ), 'group' => __( 'PayPal', 'bt-cost-calculator' ) ), array( 'param_name' => 'el_class', 'type' => 'textfield', 'heading' => __( 'Extra Class Name(s)', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ) ), array( 'param_name' => 'el_style', 'type' => 'textfield', 'heading' => __( 'Inline Style', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ) ) ); $bt_cc_item_params = array( array( 'param_name' => 'name', 'type' => 'textfield', 'heading' => __( 'Name', 'bt-cost-calculator' ), 'holder' => 'div' ), array( 'param_name' => 'description', 'type' => 'textfield', 'heading' => __( 'Description', 'bt-cost-calculator' ), 'holder' => 'div' ), array( 'param_name' => 'type', 'type' => 'dropdown', 'heading' => __( 'Input Type', 'bt-cost-calculator' ), 'holder' => 'div', 'value' => array( __( 'Text', 'bt-cost-calculator' ) => 'text', __( 'Select', 'bt-cost-calculator' ) => 'select', __( 'Slider', 'bt-cost-calculator' ) => 'slider', __( 'Switch', 'bt-cost-calculator' ) => 'switch' ) ), array( 'param_name' => 'value', 'type' => 'textarea', 'heading' => __( 'Value', 'bt-cost-calculator' ), 'description' => __( 'Unit_value for Text / name;value;description separated by new line for Select / min;max;step;unit_value;offset_value for Slider / value_off;value_on for Switch', 'bt-cost-calculator' ) ), array( 'param_name' => 'initial_value', 'type' => 'textfield', 'heading' => __( 'Initial value or select list index', 'bt-cost-calculator' ), 'description' => __( 'Value for Text / index for Select ( index 0 for Select... item in list ) / value between min and max values for Slider / off or on value for Switch', 'bt-cost-calculator' ) , 'preview' => true), array( 'param_name' => 'images', 'type' => 'attach_images', 'heading' => __( 'Images for Select input type', 'bt-cost-calculator' ) ), array( 'param_name' => 'img_height', 'type' => 'textfield', 'heading' => __( 'Images Height in px', 'bt-cost-calculator' ) ), array( 'param_name' => 'condition', 'type' => 'textarea', 'heading' => __( 'Change Event Condition', 'bt-cost-calculator' ), 'description' => __( 'Clause operator (e.g. ==0 or >0);target element id;action (e.g. fadeTo(\'slow\',0.2));lock target (lock/unlock) separated by new line', 'bt-cost-calculator' ) ), array( 'param_name' => 'item_el_id', 'type' => 'textfield', 'heading' => __( 'Custom Id Attribute', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_class', 'type' => 'textfield', 'heading' => __( 'Extra Class Name(s)', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_style', 'type' => 'textfield', 'heading' => __( 'Inline Style', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ) ); $bt_cc_multiply_params = array(); $bt_cc_group_params = array( array( 'param_name' => 'eval', 'type' => 'textarea', 'heading' => __( 'JS pseudo code', 'bt-cost-calculator' ), 'description' => __( '$1, $2, etc. can be used to reference values of items inside this group; always use return to return the value', 'bt-cost-calculator' ) ), array( 'param_name' => 'paypal_label', 'type' => 'textfield', 'heading' => __( 'PayPal Label', 'bt-cost-calculator' ), 'description' => __( 'If label is not entered, this group will not be included in PayPal payment', 'bt-cost-calculator' ) ), array( 'param_name' => 'item_el_id', 'type' => 'textfield', 'heading' => __( 'Custom Id Attribute', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_class', 'type' => 'textfield', 'heading' => __( 'Extra Class Name(s)', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_style', 'type' => 'textfield', 'heading' => __( 'Inline Style', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ) ); $bt_cc_text_params = array( array( 'param_name' => 'name', 'type' => 'textfield', 'heading' => __( 'Name', 'bt-cost-calculator' ), 'holder' => 'div' ), array( 'param_name' => 'description', 'type' => 'textfield', 'heading' => __( 'Description', 'bt-cost-calculator' ), 'holder' => 'div' ), array( 'param_name' => 'value', 'type' => 'textfield', 'heading' => __( 'Unit', 'bt-cost-calculator' ), 'description' => __( 'Unit value', 'bt-cost-calculator' ) ), array( 'param_name' => 'initial_value', 'type' => 'textfield', 'heading' => __( 'Initial value', 'bt-cost-calculator' ), 'description' => __( 'Initial value', 'bt-cost-calculator' ) , 'preview' => true), array( 'param_name' => 'condition', 'type' => 'textarea', 'heading' => __( 'Change Event Condition', 'bt-cost-calculator' ), 'description' => __( 'Clause operator (e.g. ==0 or >0);target element id;action (e.g. fadeTo(\'slow\',0.2));lock target (lock/unlock) separated by new line', 'bt-cost-calculator' ) ), array( 'param_name' => 'item_el_id', 'type' => 'textfield', 'heading' => __( 'Custom Id Attribute', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_class', 'type' => 'textfield', 'heading' => __( 'Extra Class Name(s)', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_style', 'type' => 'textfield', 'heading' => __( 'Inline Style', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ) ); $bt_cc_select_params = array( array( 'param_name' => 'name', 'type' => 'textfield', 'heading' => __( 'Name', 'bt-cost-calculator' ), 'holder' => 'div' ), array( 'param_name' => 'description', 'type' => 'textfield', 'heading' => __( 'Description', 'bt-cost-calculator' ), 'holder' => 'div' ), array( 'param_name' => 'value', 'type' => 'textarea', 'heading' => __( 'Value', 'bt-cost-calculator' ), 'description' => __( 'name;value;description separated by new line', 'bt-cost-calculator' ) ), array( 'param_name' => 'initial_value', 'type' => 'textfield', 'heading' => __( 'Initial select list index', 'bt-cost-calculator' ), 'description' => __( 'Initial selected index ( index 0 for Select... item in list )', 'bt-cost-calculator' ) , 'preview' => true), array( 'param_name' => 'images', 'type' => 'attach_images', 'heading' => __( 'Images for Select list', 'bt-cost-calculator' ) ), array( 'param_name' => 'img_height', 'type' => 'textfield', 'heading' => __( 'Images Height in px', 'bt-cost-calculator' ) ), array( 'param_name' => 'condition', 'type' => 'textarea', 'heading' => __( 'Change Event Condition', 'bt-cost-calculator' ), 'description' => __( 'Clause operator (e.g. ==0 or >0);target element id;action (e.g. fadeTo(\'slow\',0.2));lock target (lock/unlock) separated by new line', 'bt-cost-calculator' ) ), array( 'param_name' => 'item_el_id', 'type' => 'textfield', 'heading' => __( 'Custom Id Attribute', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_class', 'type' => 'textfield', 'heading' => __( 'Extra Class Name(s)', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_style', 'type' => 'textfield', 'heading' => __( 'Inline Style', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ) ); $bt_cc_slider_params = array( array( 'param_name' => 'name', 'type' => 'textfield', 'heading' => __( 'Name', 'bt-cost-calculator' ), 'holder' => 'div' ), array( 'param_name' => 'description', 'type' => 'textfield', 'heading' => __( 'Description', 'bt-cost-calculator' ), 'holder' => 'div' ), array( 'param_name' => 'value_min', 'type' => 'textfield', 'heading' => __( 'Min Value', 'bt-cost-calculator' ), 'description' => __( 'Min value', 'bt-cost-calculator' ) ), array( 'param_name' => 'value_max', 'type' => 'textfield', 'heading' => __( 'Max Value', 'bt-cost-calculator' ), 'description' => __( 'Max value', 'bt-cost-calculator' ) ), array( 'param_name' => 'value_step', 'type' => 'textfield', 'heading' => __( 'Step', 'bt-cost-calculator' ), 'description' => __( 'Step value', 'bt-cost-calculator' ) ), array( 'param_name' => 'value_unit', 'type' => 'textfield', 'heading' => __( 'Unit', 'bt-cost-calculator' ), 'description' => __( 'Unit value', 'bt-cost-calculator' ) ), array( 'param_name' => 'value_offset', 'type' => 'textfield', 'heading' => __( 'Offset', 'bt-cost-calculator' ), 'description' => __( 'Offset value', 'bt-cost-calculator' ) ), array( 'param_name' => 'initial_value', 'type' => 'textfield', 'heading' => __( 'Initial value', 'bt-cost-calculator' ), 'description' => __( 'Value between min and max values', 'bt-cost-calculator' ) , 'preview' => true), array( 'param_name' => 'condition', 'type' => 'textarea', 'heading' => __( 'Change Event Condition', 'bt-cost-calculator' ), 'description' => __( 'Clause operator (e.g. ==0 or >0);target element id;action (e.g. fadeTo(\'slow\',0.2));lock target (lock/unlock) separated by new line', 'bt-cost-calculator' ) ), array( 'param_name' => 'item_el_id', 'type' => 'textfield', 'heading' => __( 'Custom Id Attribute', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_class', 'type' => 'textfield', 'heading' => __( 'Extra Class Name(s)', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_style', 'type' => 'textfield', 'heading' => __( 'Inline Style', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ) ); $bt_cc_switch_params = array( array( 'param_name' => 'name', 'type' => 'textfield', 'heading' => __( 'Name', 'bt-cost-calculator' ), 'holder' => 'div' ), array( 'param_name' => 'description', 'type' => 'textfield', 'heading' => __( 'Description', 'bt-cost-calculator' ), 'holder' => 'div' ), array( 'param_name' => 'value_off', 'type' => 'textfield', 'heading' => __( 'Value Off', 'bt-cost-calculator' ), 'description' => __( 'Value when switched off', 'bt-cost-calculator' ) ), array( 'param_name' => 'value_on', 'type' => 'textfield', 'heading' => __( 'Value On', 'bt-cost-calculator' ), 'description' => __( 'Value when switched on', 'bt-cost-calculator' ) ), array( 'param_name' => 'initial_value', 'type' => 'textfield', 'heading' => __( 'Initial value', 'bt-cost-calculator' ), 'description' => __( 'Value off or value on', 'bt-cost-calculator' ) , 'preview' => true), array( 'param_name' => 'condition', 'type' => 'textarea', 'heading' => __( 'Change Event Condition', 'bt-cost-calculator' ), 'description' => __( 'Clause operator (e.g. ==0 or >0);target element id;action (e.g. fadeTo(\'slow\',0.2));lock target (lock/unlock) separated by new line', 'bt-cost-calculator' ) ), array( 'param_name' => 'item_el_id', 'type' => 'textfield', 'heading' => __( 'Custom Id Attribute', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_class', 'type' => 'textfield', 'heading' => __( 'Extra Class Name(s)', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_style', 'type' => 'textfield', 'heading' => __( 'Inline Style', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ) ); if ( function_exists( 'bt_rc_map' ) ) { bt_rc_map( 'bt_cost_calculator', array( 'name' => __( 'Cost Calculator', 'bt-cost-calculator' ), 'description' => __( 'Cost calculator container', 'bt-cost-calculator' ), 'container' => 'vertical', 'icon' => 'bt_bb_icon_bt_bb_cost_calculator', 'accept' => array( 'bt_cc_item' => true, 'bt_cc_multiply' => true, 'bt_cc_group' => true, 'bt_hr' => true, 'bt_header' => true, 'bt_text' => true, 'bt_bb_separator' => true, 'bt_bb_headline' => true, 'bt_bb_text' => true, 'bt_bb_raw_content' => true, 'bt_cc_text' => true, 'bt_cc_select' => true, 'bt_cc_slider' => true, 'bt_cc_switch' => true), 'toggle' => true, 'params' => $bt_quote_params )); bt_rc_map( 'bt_cc_item', array( 'name' => __( 'Cost Calculator Item (Deprecated)', 'bt-cost-calculator' ), 'description' => __( 'Single cost calculator element (all in one)', 'bt-cost-calculator' ), 'icon' => 'bt_bb_icon_bt_bb_cost_calculator_item', 'as_child' => array( 'only' => 'bt_cost_calculator,bt_cc_multiply,bt_cc_group' ), 'params' => $bt_cc_item_params )); bt_rc_map( 'bt_cc_multiply', array( 'name' => __( 'Cost Calculator Multiply', 'bt-cost-calculator' ), 'description' => __( 'Cost calculator multiply container', 'bt-cost-calculator' ), 'icon' => 'bt_bb_icon_bt_bb_cost_calculator_multiply', 'container' => 'vertical', 'accept' => array( 'bt_cc_item' => true, 'bt_cc_text' => true, 'bt_cc_select' => true, 'bt_cc_slider' => true, 'bt_cc_switch' => true ), 'show_settings_on_create' => false, 'as_child' => array( 'only' => 'bt_cost_calculator' ), 'params' => $bt_cc_multiply_params )); bt_rc_map( 'bt_cc_group', array( 'name' => __( 'Cost Calculator Group', 'bt-cost-calculator' ), 'description' => __( 'Cost calculator group container', 'bt-cost-calculator' ), 'container' => 'vertical', 'icon' => 'bt_bb_icon_bt_bb_cost_calculator_group', 'accept' => array( 'bt_cc_item' => true, 'bt_hr' => true, 'bt_header' => true, 'bt_text' => true, 'bt_bb_separator' => true, 'bt_bb_headline' => true, 'bt_bb_text' => true , 'bt_cc_text' => true, 'bt_cc_select' => true, 'bt_cc_slider' => true, 'bt_cc_switch' => true, 'bt_bb_raw_content' => true ), 'show_settings_on_create' => true, 'as_child' => array( 'only' => 'bt_cost_calculator' ), 'params' => $bt_cc_group_params )); bt_rc_map( 'bt_cc_text', array( 'name' => __( 'Cost Calculator Text', 'bt-cost-calculator' ), 'description' => __( 'Cost calculator text input', 'bt-cost-calculator' ), 'icon' => 'bt_bb_icon_bt_bb_cost_calculator_text', 'show_settings_on_create' => true, 'as_child' => array( 'only' => 'bt_cost_calculator,bt_cc_multiply,bt_cc_group' ), 'params' => $bt_cc_text_params )); bt_rc_map( 'bt_cc_select', array( 'name' => __( 'Cost Calculator Select', 'bt-cost-calculator' ), 'description' => __( 'Cost calculator select list', 'bt-cost-calculator' ), 'icon' => 'bt_bb_icon_bt_bb_cost_calculator_select', 'show_settings_on_create' => true, 'as_child' => array( 'only' => 'bt_cost_calculator,bt_cc_multiply,bt_cc_group' ), 'params' => $bt_cc_select_params )); bt_rc_map( 'bt_cc_slider', array( 'name' => __( 'Cost Calculator Slider', 'bt-cost-calculator' ), 'description' => __( 'Cost calculator slider', 'bt-cost-calculator' ), 'icon' => 'bt_bb_icon_bt_bb_cost_calculator_slider', 'show_settings_on_create' => true, 'as_child' => array( 'only' => 'bt_cost_calculator,bt_cc_multiply,bt_cc_group' ), 'params' => $bt_cc_slider_params )); bt_rc_map( 'bt_cc_switch', array( 'name' => __( 'Cost Calculator Switch', 'bt-cost-calculator' ), 'description' => __( 'Cost calculator switch checkbox', 'bt-cost-calculator' ), 'icon' => 'bt_bb_icon_bt_bb_cost_calculator_switch', 'show_settings_on_create' => true, 'as_child' => array( 'only' => 'bt_cost_calculator,bt_cc_multiply,bt_cc_group' ), 'params' => $bt_cc_switch_params )); } if ( function_exists( 'vc_map' ) ) { if ( class_exists( 'WPBakeryShortCodesContainer' ) ) { class WPBakeryShortCode_bt_cost_calculator extends WPBakeryShortCodesContainer { } } if ( class_exists( 'WPBakeryShortCodesContainer' ) ) { class WPBakeryShortCode_bt_cc_multiply extends WPBakeryShortCodesContainer { } } if ( class_exists( 'WPBakeryShortCodesContainer' ) ) { class WPBakeryShortCode_bt_cc_group extends WPBakeryShortCodesContainer { } } $data = array(); $data['name'] = __( 'Cost Calculator', 'bt-cost-calculator' ); $data['base'] = 'bt_cost_calculator'; $data['as_parent'] = array( 'except' => 'vc_row,vc_column,vc_row_inner,vc_column_inner,bt_cost_calculator' ); $data['content_element'] = true; $data['js_view'] = 'VcColumnView'; $data['category'] = 'Content'; $data['icon'] = 'bt_quote_icon'; $data['admin_enqueue_css'] = array( plugins_url( 'vc_style.css', __FILE__ ) ); $data['admin_enqueue_js'] = array( plugins_url( 'vc_js.js', __FILE__ ) ); $data['description'] = __( 'Cost calculator container', 'bt-cost-calculator' ); $data['params'] = $bt_quote_params; vc_map( $data ); $data = array(); $data['name'] = __( 'Cost Calculator Multiply', 'bt-cost-calculator' ); $data['base'] = 'bt_cc_multiply'; $data['as_parent'] = array( 'except' => 'vc_row,vc_column' ); $data['as_child'] = array( 'only' => 'bt_cost_calculator' ); $data['content_element'] = true; $data['js_view'] = 'VcColumnView'; $data['category'] = 'Content'; $data['icon'] = 'bt_quote_icon_multiply'; $data['admin_enqueue_css'] = array( plugins_url( 'vc_style.css', __FILE__ ) ); $data['description'] = __( 'Cost calculator multiply container', 'bt-cost-calculator' ); $data['params'] = $bt_cc_multiply_params; vc_map( $data ); $data = array(); $data['name'] = __( 'Cost Calculator Group', 'bt-cost-calculator' ); $data['base'] = 'bt_cc_group'; $data['as_parent'] = array( 'except' => 'vc_row,vc_column' ); $data['as_child'] = array( 'only' => 'bt_cost_calculator' ); $data['content_element'] = true; $data['js_view'] = 'VcColumnView'; $data['category'] = 'Content'; $data['icon'] = 'bt_quote_icon_group'; $data['admin_enqueue_css'] = array( plugins_url( 'vc_style.css', __FILE__ ) ); $data['description'] = __( 'Cost calculator group container', 'bt-cost-calculator' ); $data['params'] = $bt_cc_group_params; vc_map( $data ); $data = array(); $data['name'] = __( 'Cost Calculator Item (Deprecated)', 'bt-cost-calculator' ); $data['base'] = 'bt_cc_item'; $data['content_element'] = true; $data['js_view'] = 'BTCCItem'; $data['category'] = 'Content'; $data['as_child'] = array( 'only' => 'bt_cost_calculator,bt_cc_multiply,bt_cc_group' ); $data['icon'] = 'bt_quote_icon_item'; $data['admin_enqueue_css'] = array( plugins_url( 'vc_style.css', __FILE__ ) ); $data['description'] = __( 'Cost calculator item', 'bt-cost-calculator' ); $data['params'] = $bt_cc_item_params; vc_map( $data ); $data = array(); $data['name'] = __( 'Cost Calculator Text', 'bt-cost-calculator' ); $data['base'] = 'bt_cc_text'; $data['content_element'] = true; $data['js_view'] = 'BTCCItem'; $data['category'] = 'Content'; $data['as_child'] = array( 'only' => 'bt_cost_calculator,bt_cc_multiply,bt_cc_group' ); $data['icon'] = 'bt_quote_icon_item'; $data['admin_enqueue_css'] = array( plugins_url( 'vc_style.css', __FILE__ ) ); $data['description'] = __( 'Cost calculator text control', 'bt-cost-calculator' ); $data['params'] = $bt_cc_text_params; vc_map( $data ); $data = array(); $data['name'] = __( 'Cost Calculator Select', 'bt-cost-calculator' ); $data['base'] = 'bt_cc_select'; $data['content_element'] = true; $data['js_view'] = 'BTCCItem'; $data['category'] = 'Content'; $data['as_child'] = array( 'only' => 'bt_cost_calculator,bt_cc_multiply,bt_cc_group' ); $data['icon'] = 'bt_quote_icon_item'; $data['admin_enqueue_css'] = array( plugins_url( 'vc_style.css', __FILE__ ) ); $data['description'] = __( 'Cost calculator select control', 'bt-cost-calculator' ); $data['params'] = $bt_cc_select_params; vc_map( $data ); $data = array(); $data['name'] = __( 'Cost Calculator Slider', 'bt-cost-calculator' ); $data['base'] = 'bt_cc_slider'; $data['content_element'] = true; $data['js_view'] = 'BTCCItem'; $data['category'] = 'Content'; $data['as_child'] = array( 'only' => 'bt_cost_calculator,bt_cc_multiply,bt_cc_group' ); $data['icon'] = 'bt_quote_icon_item'; $data['admin_enqueue_css'] = array( plugins_url( 'vc_style.css', __FILE__ ) ); $data['description'] = __( 'Cost calculator slider control', 'bt-cost-calculator' ); $data['params'] = $bt_cc_slider_params; vc_map( $data ); $data = array(); $data['name'] = __( 'Cost Calculator Switch', 'bt-cost-calculator' ); $data['base'] = 'bt_cc_switch'; $data['content_element'] = true; $data['js_view'] = 'BTCCItem'; $data['category'] = 'Content'; $data['as_child'] = array( 'only' => 'bt_cost_calculator,bt_cc_multiply,bt_cc_group' ); $data['icon'] = 'bt_quote_icon_item'; $data['admin_enqueue_css'] = array( plugins_url( 'vc_style.css', __FILE__ ) ); $data['description'] = __( 'Cost calculator switch control', 'bt-cost-calculator' ); $data['params'] = $bt_cc_switch_params; vc_map( $data ); } /*$micro_builder = new BT_Micro_Builder( array( 'post_type' => 'cost-calculator', 'root_id' => 'bt_cost_calculator_builder' ) );*/ BT_CC_Root::$builder->map( 'bt_cost_calculator', array( 'name' => __( 'Cost Calculator', 'bt-cost-calculator' ), 'description' => __( 'Cost calculator container', 'bt-cost-calculator' ), 'container' => 'vertical', 'accept' => array( 'bt_cc_item' => true, 'bt_cc_multiply' => true, 'bt_cc_group' => true, 'bt_hr' => true, 'bt_header' => true, 'bt_text' => true, 'bt_bb_separator' => true, 'bt_bb_headline' => true, 'bt_bb_text' => true , 'bt_cc_text' => true, 'bt_cc_select' => true, 'bt_cc_slider' => true, 'bt_cc_switch' => true, 'bt_cc_raw_html' => true, 'bt_cc_separator' => true), 'toggle' => true, 'root' => true, 'params' => $bt_quote_params )); BT_CC_Root::$builder->map( 'bt_cc_multiply', array( 'name' => __( 'Cost Calculator Multiply', 'bt-cost-calculator' ), 'description' => __( 'Cost calculator multiply container', 'bt-cost-calculator' ), 'container' => 'vertical', 'icon' => 'bt_bb_icon_bt_cc_multiply', 'accept' => array( 'bt_cc_item' => true, 'bt_cc_text' => true, 'bt_cc_select' => true, 'bt_cc_slider' => true, 'bt_cc_switch' => true, 'bt_cc_raw_html' => true, 'bt_cc_separator' => true ), 'show_settings_on_create' => false, 'params' => $bt_cc_multiply_params )); $bt_cc_group_params = array( array( 'param_name' => 'eval', 'type' => 'textarea_object', 'heading' => __( 'JS pseudo code', 'bt-cost-calculator' ), 'description' => __( '$1, $2, etc. can be used to reference values of items inside this group; always use return to return the value', 'bt-cost-calculator' ) ), array( 'param_name' => 'paypal_label', 'type' => 'textfield', 'heading' => __( 'PayPal Label', 'bt-cost-calculator' ), 'description' => __( 'If label is not entered, this group will not be included in PayPal payment', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_id', 'type' => 'textfield', 'heading' => __( 'Custom Id Attribute', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_class', 'type' => 'textfield', 'heading' => __( 'Extra Class Name(s)', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_style', 'type' => 'textfield', 'heading' => __( 'Inline Style', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ) ); BT_CC_Root::$builder->map( 'bt_cc_group', array( 'name' => __( 'Cost Calculator Group', 'bt-cost-calculator' ), 'description' => __( 'Cost calculator group container', 'bt-cost-calculator' ), 'container' => 'vertical', 'icon' => 'bt_bb_icon_bt_cc_group', 'accept' => array( 'bt_cost_calculator' => false, 'bt_cc_multiply' => false, 'bt_cc_group' => false, 'bt_row' => false, 'bt_row_inner' => false, 'bt_column' => false, 'bt_column_inner' => false ), 'accept_all' => true, 'show_settings_on_create' => true, 'params' => $bt_cc_group_params )); $bt_cc_text_params = array( array( 'param_name' => 'name', 'type' => 'textfield', 'heading' => __( 'Name', 'bt-cost-calculator' ), 'holder' => 'div' ), array( 'param_name' => 'description', 'type' => 'textfield', 'heading' => __( 'Description', 'bt-cost-calculator' ), 'holder' => 'div' ), array( 'param_name' => 'value', 'type' => 'textfield', 'heading' => __( 'Unit', 'bt-cost-calculator' ), 'description' => __( 'Unit value', 'bt-cost-calculator' ) ), array( 'param_name' => 'initial_value', 'type' => 'textfield', 'heading' => __( 'Initial value', 'bt-cost-calculator' ), 'description' => __( 'Initial value', 'bt-cost-calculator' ) , 'preview' => true), array( 'param_name' => 'condition', 'type' => 'textarea_object', 'heading' => __( 'Change Event Condition', 'bt-cost-calculator' ), 'description' => __( 'Clause operator (e.g. ==0 or >0);target element id;action (e.g. fadeTo(\'slow\',0.2));lock target (lock/unlock) separated by new line', 'bt-cost-calculator' ) ), array( 'param_name' => 'item_el_id', 'type' => 'textfield', 'heading' => __( 'Custom Id Attribute', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_class', 'type' => 'textfield', 'heading' => __( 'Extra Class Name(s)', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_style', 'type' => 'textfield', 'heading' => __( 'Inline Style', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ) ); BT_CC_Root::$builder->map( 'bt_cc_text', array( 'name' => __( 'Cost Calculator Text', 'bt-cost-calculator' ), 'description' => __( 'Cost calculator text input', 'bt-cost-calculator' ), 'icon' => 'bt_bb_icon_bt_cc_text', 'show_settings_on_create' => true, 'params' => $bt_cc_text_params )); $bt_cc_select_params = array( array( 'param_name' => 'name', 'type' => 'textfield', 'heading' => __( 'Name', 'bt-cost-calculator' ), 'holder' => 'div' ), array( 'param_name' => 'description', 'type' => 'textfield', 'heading' => __( 'Description', 'bt-cost-calculator' ), 'holder' => 'div' ), array( 'param_name' => 'value', 'type' => 'textarea', 'heading' => __( 'Value', 'bt-cost-calculator' ), 'description' => __( 'name;value;description separated by new line', 'bt-cost-calculator' ) ), array( 'param_name' => 'initial_value', 'type' => 'textfield', 'heading' => __( 'Initial select list index', 'bt-cost-calculator' ), 'description' => __( 'Initial selected index ( index 0 for Select... item in list )', 'bt-cost-calculator' ) , 'preview' => true), array( 'param_name' => 'images', 'type' => 'attach_images', 'heading' => __( 'Images for Select list', 'bt-cost-calculator' ) ), array( 'param_name' => 'img_height', 'type' => 'textfield', 'heading' => __( 'Images Height in px', 'bt-cost-calculator' ) ), array( 'param_name' => 'condition', 'type' => 'textarea_object', 'heading' => __( 'Change Event Condition', 'bt-cost-calculator' ), 'description' => __( 'Clause operator (e.g. ==0 or >0);target element id;action (e.g. fadeTo(\'slow\',0.2));lock target (lock/unlock) separated by new line', 'bt-cost-calculator' ) ), array( 'param_name' => 'item_el_id', 'type' => 'textfield', 'heading' => __( 'Custom Id Attribute', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_class', 'type' => 'textfield', 'heading' => __( 'Extra Class Name(s)', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_style', 'type' => 'textfield', 'heading' => __( 'Inline Style', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ) ); BT_CC_Root::$builder->map( 'bt_cc_select', array( 'name' => __( 'Cost Calculator Select', 'bt-cost-calculator' ), 'description' => __( 'Cost calculator select list', 'bt-cost-calculator' ), 'icon' => 'bt_bb_icon_bt_cc_select', 'show_settings_on_create' => true, 'params' => $bt_cc_select_params )); $bt_cc_slider_params = array( array( 'param_name' => 'name', 'type' => 'textfield', 'heading' => __( 'Name', 'bt-cost-calculator' ), 'holder' => 'div' ), array( 'param_name' => 'description', 'type' => 'textfield', 'heading' => __( 'Description', 'bt-cost-calculator' ), 'holder' => 'div' ), array( 'param_name' => 'value_min', 'type' => 'textfield', 'heading' => __( 'Min Value', 'bt-cost-calculator' ), 'description' => __( 'Min value', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'value_max', 'type' => 'textfield', 'heading' => __( 'Max Value', 'bt-cost-calculator' ), 'description' => __( 'Max value', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'value_step', 'type' => 'textfield', 'heading' => __( 'Step', 'bt-cost-calculator' ), 'description' => __( 'Step value', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'value_unit', 'type' => 'textfield', 'heading' => __( 'Unit', 'bt-cost-calculator' ), 'description' => __( 'Unit value', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'value_offset', 'type' => 'textfield', 'heading' => __( 'Offset', 'bt-cost-calculator' ), 'description' => __( 'Offset value', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'initial_value', 'type' => 'textfield', 'heading' => __( 'Initial value', 'bt-cost-calculator' ), 'description' => __( 'Value between min and max values', 'bt-cost-calculator' ) , 'preview' => true), array( 'param_name' => 'condition', 'type' => 'textarea_object', 'heading' => __( 'Change Event Condition', 'bt-cost-calculator' ), 'description' => __( 'Clause operator (e.g. ==0 or >0);target element id;action (e.g. fadeTo(\'slow\',0.2));lock target (lock/unlock) separated by new line', 'bt-cost-calculator' ) ), array( 'param_name' => 'item_el_id', 'type' => 'textfield', 'heading' => __( 'Custom Id Attribute', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_class', 'type' => 'textfield', 'heading' => __( 'Extra Class Name(s)', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_style', 'type' => 'textfield', 'heading' => __( 'Inline Style', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ) ); BT_CC_Root::$builder->map( 'bt_cc_slider', array( 'name' => __( 'Cost Calculator Slider', 'bt-cost-calculator' ), 'description' => __( 'Cost calculator slider', 'bt-cost-calculator' ), 'icon' => 'bt_bb_icon_bt_cc_slider', 'show_settings_on_create' => true, 'params' => $bt_cc_slider_params )); $bt_cc_switch_params = array( array( 'param_name' => 'name', 'type' => 'textfield', 'heading' => __( 'Name', 'bt-cost-calculator' ), 'holder' => 'div' ), array( 'param_name' => 'description', 'type' => 'textfield', 'heading' => __( 'Description', 'bt-cost-calculator' ), 'holder' => 'div' ), array( 'param_name' => 'value_off', 'type' => 'textfield', 'heading' => __( 'Value Off', 'bt-cost-calculator' ), 'description' => __( 'Value when switched off', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'value_on', 'type' => 'textfield', 'heading' => __( 'Value On', 'bt-cost-calculator' ), 'description' => __( 'Value when switched on', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'initial_value', 'type' => 'textfield', 'heading' => __( 'Initial value', 'bt-cost-calculator' ), 'description' => __( 'Value off or value on', 'bt-cost-calculator' ) , 'preview' => true), array( 'param_name' => 'condition', 'type' => 'textarea_object', 'heading' => __( 'Change Event Condition', 'bt-cost-calculator' ), 'description' => __( 'Clause operator (e.g. ==0 or >0);target element id;action (e.g. fadeTo(\'slow\',0.2));lock target (lock/unlock) separated by new line', 'bt-cost-calculator' ) ), array( 'param_name' => 'item_el_id', 'type' => 'textfield', 'heading' => __( 'Custom Id Attribute', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_class', 'type' => 'textfield', 'heading' => __( 'Extra Class Name(s)', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_style', 'type' => 'textfield', 'heading' => __( 'Inline Style', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ) ); BT_CC_Root::$builder->map( 'bt_cc_switch', array( 'name' => __( 'Cost Calculator Switch', 'bt-cost-calculator' ), 'description' => __( 'Cost calculator switch checkbox', 'bt-cost-calculator' ), 'icon' => 'bt_bb_icon_bt_cc_switch', 'show_settings_on_create' => true, 'params' => $bt_cc_switch_params )); $bt_cc_raw_html_params = array( array( 'param_name' => 'raw_html', 'type' => 'textarea_object', 'heading' => __( 'HTML', 'bt-cost-calculator' ) ), ); BT_CC_Root::$builder->map( 'bt_cc_raw_html', array( 'name' => __( 'Cost Calculator Raw HTML', 'bt-cost-calculator' ), 'description' => __( 'Cost calculator raw HTML', 'bt-cost-calculator' ), 'icon' => 'bt_bb_icon_bt_cc_raw_html', 'show_settings_on_create' => true, 'params' => $bt_cc_raw_html_params )); $bt_cc_separator_params = array( array( 'param_name' => 'top_spacing', 'type' => 'dropdown', 'heading' => esc_html__( 'Top Spacing', 'bt-cost-calculator' ), 'preview' => true, 'value' => array( __( 'No spacing', 'bt-cost-calculator' ) => '', __( 'Extra small', 'bt-cost-calculator' ) => 'extra_small', __( 'Small', 'bt-cost-calculator' ) => 'small', __( 'Normal', 'bt-cost-calculator' ) => 'normal', __( 'Medium', 'bt-cost-calculator' ) => 'medium', __( 'Large', 'bt-cost-calculator' ) => 'large', __( 'Extra large', 'bt-cost-calculator' ) => 'extra_large' ) ), array( 'param_name' => 'bottom_spacing', 'type' => 'dropdown', 'heading' => esc_html__( 'Bottom Spacing', 'bt-cost-calculator' ), 'preview' => true, 'value' => array( __( 'No spacing', 'bt-cost-calculator' ) => '', __( 'Extra small', 'bt-cost-calculator' ) => 'extra_small', __( 'Small', 'bt-cost-calculator' ) => 'small', __( 'Normal', 'bt-cost-calculator' ) => 'normal', __( 'Medium', 'bt-cost-calculator' ) => 'medium', __( 'Large', 'bt-cost-calculator' ) => 'large', __( 'Extra large', 'bt-cost-calculator' ) => 'extra_large' ) ), array( 'param_name' => 'border_style', 'type' => 'dropdown', 'heading' => esc_html__( 'Border Style', 'bt-cost-calculator' ), 'preview' => true, 'value' => array( __( 'None', 'bt-cost-calculator' ) => 'none', __( 'Solid', 'bt-cost-calculator' ) => 'solid', __( 'Dotted', 'bt-cost-calculator' ) => 'dotted', __( 'Dashed', 'bt-cost-calculator' ) => 'dashed' ) ), array( 'param_name' => 'item_el_id', 'type' => 'textfield', 'heading' => __( 'Custom Id Attribute', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_class', 'type' => 'textfield', 'heading' => __( 'Extra Class Name(s)', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ), array( 'param_name' => 'item_el_style', 'type' => 'textfield', 'heading' => __( 'Inline Style', 'bt-cost-calculator' ), 'group' => __( 'Design', 'bt-cost-calculator' ), 'preview' => true ) ); BT_CC_Root::$builder->map( 'bt_cc_separator', array( 'name' => __( 'Cost Calculator Separator', 'bt-cost-calculator' ), 'description' => __( 'Cost calculator separator', 'bt-cost-calculator' ), 'icon' => 'bt_bb_icon_bt_cc_separator', 'show_settings_on_create' => true, 'params' => $bt_cc_separator_params )); } add_action( 'plugins_loaded', 'bt_quote_map_sc' ); Страница не найдена | Markilux
 

Error 404.

We are sorry, page not found.