'1',
'name' => esc_html__( 'General', 'all-in-one-reservation' ),
'title' => esc_html__( 'General Settings', 'all-in-one-reservation' ),
'desc' => esc_html__( 'Time, Format, slot etc. settings', 'all-in-one-reservation' ),
'filter' => 'aior_add_in_general_settings',
);
self::create_rs_tab( $nav_args );
add_filter(
'aior_add_in_general_settings',
function () {
$rf_data = Aior_Reservation_Form::get_settings();
$aior_builder = new Aior_Builder();
?>
add_field(
array(
'type' => 'select',
'name' => 'layout_type',
'class' => 'form-control aior_layout_type',
'option' => array(
'Design 1' => 'design1',
'Design 2' => 'design2',
),
'value' => $layout_type,
)
);
?>
add_field(
array(
'type' => 'select',
'name' => 'booking_type',
'class' => 'form-control aior_booking_type',
'option' => array(
'Registered Booking' => 'registered',
'Guest Booking' => 'guest',
),
'value' => $booking_type,
)
);
?>
add_field(
array(
'type' => 'select',
'name' => 'clock_hours',
'class' => 'form-control aior_clock_hours',
'option' => array(
'12 Hours' => 'hh:mm p',
'24 Hours' => 'HH:mm',
),
'value' => $clock_hours,
)
);
?>
add_field(
array(
'type' => 'number',
'name' => 'time_slot',
'class' => 'form-control aior_time_slot',
'value' => $time_slot,
'default' => 30,
'min' => 1,
'placeholder' => 30,
)
);
?>
add_field(
array(
'type' => 'number',
'name' => 'max_guest',
'class' => 'form-control',
'value' => $max_guest,
'default' => 10,
'min' => 1,
'placeholder' => 10,
)
);
?>
add_field(
array(
'type' => 'number',
'name' => 'max_end_days',
'class' => 'form-control',
'value' => $max_end_days,
'min' => 1,
'placeholder' => 45,
)
);
?>
add_field(
array(
'type' => 'select',
'name' => 'date_format',
'class' => 'form-control aior_date_format',
'value' => $date_format,
'option' => array(
esc_html__( 'Select Date Format', 'all-in-one-reservation' ) => '',
'm/d/yy' => 'm/d/yy',
'dd/mm/yy' => 'dd/mm/yy',
'm-d-yy' => 'm-d-yy',
'm-d-y' => 'm-d-y',
'mm-dd-yy' => 'mm-dd-yy',
'd M, y' => 'd M, y',
'd MM, yy' => 'd MM, yy',
'D, dd MM, yy' => 'D, dd MM, yy',
'D, dd MM, y' => 'D, dd MM, y',
'D, d M, yy' => 'D, d M, yy',
'DD, dd MM, yy' => 'DD, dd MM, yy',
),
)
);
?>
'' );
$site_pages = array_merge( $site_page_default, $site_pages_arr );
$front_page = isset( $rf_data['front_page'] ) && ! empty( $rf_data['front_page'] ) ? $rf_data['front_page'] : get_option( 'aior_pay' );
$aior_builder->add_field(
array(
'type' => 'select',
'name' => 'front_page',
'class' => 'form-control',
'value' => $front_page,
'option' => $site_pages,
'defualt' => $front_page,
)
);
?>
[aior_pay]
add_field(
array(
'type' => 'select',
'name' => 'cancel_page',
'class' => 'form-control',
'value' => $cancel_page,
'option' => $site_pages,
'defualt' => $cancel_page,
)
);
?>
[aior_cancel_page]
add_field(
array(
'type' => 'select',
'name' => 'payment_success',
'class' => 'form-control',
'value' => $payment_success,
'option' => $site_pages,
'defualt' => $payment_success,
)
);
?>
[aior_pay_success]
add_field(
array(
'type' => 'select',
'name' => 'appointment_action',
'class' => 'form-control',
'value' => $appointment_action,
'option' => array(
esc_html__( 'Pending', 'all-in-one-reservation' ) => '1',
esc_html__( 'Approved', 'all-in-one-reservation' ) => '2',
),
)
);
?>
add_field(
array(
'type' => 'date',
'name' => 'prevent_before_date',
'class' => 'form-control',
'value' => $prevent_before_date,
)
);
?>
add_field(
array(
'type' => 'date',
'name' => 'prevent_after_date',
'class' => 'form-control',
'value' => $prevent_after_date,
)
);
?>
add_field(
array(
'type' => 'number',
'name' => 'appointment_limit',
'class' => 'form-control',
'value' => $appointment_limit,
'default' => 0,
'min' => 0,
)
);
?>
add_field(
array(
'type' => 'select',
'name' => 'enable_payment',
'id' => 'enable_payment',
'class' => 'form-control',
'value' => $enable_payment,
'option' => array(
esc_html__( 'Disable', 'all-in-one-reservation' ) => '0',
esc_html__( 'Enable', 'all-in-one-reservation' ) => '1',
),
)
);
?>
add_field(
array(
'type' => 'checkbox',
'name' => 'payment_gateway',
'id' => 'payment_gateway',
'class' => 'form-control',
'value' => $payment_gateway,
'option' => $is_payment_gateway,
)
);
?>
add_field(
array(
'type' => 'select',
'name' => 'enable_comment',
'class' => 'form-control',
'value' => $enable_comment,
'option' => array(
esc_html__( 'Disable', 'all-in-one-reservation' ) => 0,
esc_html__( 'Enable', 'all-in-one-reservation' ) => 1,
),
)
);
?>
add_field(
array(
'type' => 'select',
'name' => 'enable_social_share',
'class' => 'form-control',
'id' => 'enable_social_share',
'value' => $enable_social_share,
'option' => array(
esc_html__( 'Disable', 'all-in-one-reservation' ) => 0,
esc_html__( 'Enable', 'all-in-one-reservation' ) => 1,
),
)
);
?>
add_field(
array(
'type' => 'checkbox',
'name' => 'show_social_share_icon',
'class' => 'form-control',
'value' => $show_social_share_icon,
'option' => array(
esc_html__( 'Facebook', 'all-in-one-reservation' ) => 1,
esc_html__( 'Twitter', 'all-in-one-reservation' ) => 2,
esc_html__( 'LinkedIn', 'all-in-one-reservation' ) => 4,
esc_html__( 'Reddit', 'all-in-one-reservation' ) => 5,
esc_html__( 'Digg', 'all-in-one-reservation' ) => 6,
esc_html__( 'Tumblr', 'all-in-one-reservation' ) => 7,
esc_html__( 'StubleUpon', 'all-in-one-reservation' ) => 8,
esc_html__( 'Delicious', 'all-in-one-reservation' ) => 9,
esc_html__( 'Evernote', 'all-in-one-reservation' ) => 10,
esc_html__( 'WordPress', 'all-in-one-reservation' ) => 11,
esc_html__( 'Pocket', 'all-in-one-reservation' ) => 12,
esc_html__( 'Pinterest', 'all-in-one-reservation' ) => 13,
),
)
);
?>