<?php
$storeup_kses_array = array(
	'a'        => array(
		'data-id'  => true,
		'href'     => true,
		'class'    => true,
		'title'    => true,
		'data-tab' => true,
	),
	'h1'       => array( 'class' => true ),
	'h2'       => array( 'class' => true ),
	'h3'       => array( 'class' => true ),
	'h4'       => array( 'class' => true ),
	'h5'       => array( 'class' => true ),
	'h6'       => array( 'class' => true ),
	'p'        => array( 'class' => true ),
	'em'       => array(),
	'i'        => array( 'class' => true ),
	'span'     => array(),
	'small'    => array(),
	'strike'   => array(),
	'div'      => array(
		'data-price' => true,
		'id'         => true,
		'class'      => true,
		'style'      => true,
	),
	'select'   => array(
		'class'      => true,
		'name'       => true,
		'id'         => true,
		'data-price' => true,
	),
	'option'   => array(
		'value'    => true,
		'selected' => true,
	),
	'button'   => array(
		'name'  => true,
		'id'    => true,
		'class' => true,
		'type'  => true,
		'value' => true,
	),
	'li'       => array(
		'class' => true,
		'style' => true,
	),
	'ul'       => array(
		'class' => true,
		'style' => true,
	),
	'span'     => array( 'class' => true ),
	'heading'  => array(),
	'input'    => array(
		'checked' => true,
		'type'    => true,
		'class'   => true,
		'name'    => true,
		'id'      => true,
		'value'   => true,
		'style'   => true,
		'size'    => true,
	),
	'label'    => array(
		'for'   => true,
		'class' => true,
	),
	'form'     => array(
		'action'         => true,
		'accept'         => true,
		'accept-charset' => true,
		'class'          => true,
		'id'             => true,
		'enctype'        => true,
		'method'         => true,
		'name'           => true,
		'target'         => true,
	),
	'textarea' => array(
		'class' => true,
		'name'  => true,
		'id'    => true,
		'cols'  => true,
		'rows'  => true,
	),
	'strong'   => array(),
);

// Add Cash payment option in Booking form
add_action( 'storeup_payment_gateways', 'storeup_cash_method', 1 );
function storeup_cash_method() {
	if ( 'on' !== get_option( 'storeup_cash_disable' ) ) {
		echo '<option value="cash">' . esc_html__( 'Cash on Site', 'storeup' ) . '</option>';
	}
}
