|
|
|
'select'
, 'title' => __( 'Import condition', 'booking' )
, 'description' => __( 'Whether import events for dates, that already booked in specific booking resource', 'booking' )
, 'description_tag' => 'span'
, 'label' => ''
, 'multiple' => false
, 'group' => $group_key
, 'tr_class' => $group_key . '_standard_section'
, 'class' => ''
, 'css' => 'margin-right:10px;'
, 'only_field' => false
, 'attr' => array()
, 'value' => ''
, 'options' => array(
'' => __( 'Import in any case', 'booking' )
, 'if_dates_free' => __( 'Import only, if days are available', 'booking' )
)
)
);
}
/**
* Shortcode Field: Select-box - "Import Conditions"
*
* @param $id
* @param $group_key
*
* @return void
*/
function wpbc_shortcode_config_fields__booking_ics_import__conditions_events( $id , $group_key ){
WPBC_Settings_API::field_select_row_static( $id
, array(
'type' => 'select'
, 'title' => __( 'Event condition', 'booking' )
, 'description' => __( 'Import booking, if all dates or only some date(s) within conditional parameters from / until', 'booking' )
, 'description_tag' => 'span'
, 'label' => ''
, 'multiple' => false
, 'group' => $group_key
, 'tr_class' => $group_key . '_standard_section'
, 'class' => ''
, 'css' => 'margin-right:10px;'
, 'only_field' => false
, 'attr' => array()
, 'value' => '1'
, 'options' => array(
'0' => __( 'Some date(s) in conditional interval', 'booking' )
, '1' => __( 'Strict. All dates in conditional interval', 'booking' )
)
)
);
}
/**
* Shortcode Field: Select-box - "Max Number"
*
* @param $id
* @param $group_key
*
* @return void
*/
function wpbc_shortcode_config_fields__booking_ics_import__conditions_max_num( $id , $group_key ){
WPBC_Settings_API::field_select_row_static( $id
, array(
'type' => 'select'
, 'title' => __( 'Maximum number', 'booking' )
, 'description' => __( 'You can specify the maximum number of events.', 'booking' )
, 'description_tag' => 'span'
, 'label' => ''
, 'multiple' => false
, 'group' => $group_key
, 'tr_class' => $group_key . '_standard_section'
, 'class' => ''
, 'css' => 'margin-right:10px;'
, 'only_field' => false
, 'attr' => array()
, 'value' => 0
, 'options' => array_combine(
array_merge( array( '0' ), range( 500, 10 , 10 ) )
, array_merge( array( ' - ' ), range( 500, 10 , 10 ) )
)
)
);
}
/**
* Shortcode Field: Select-box - "silence"
*
* @param $id
* @param $group_key
*
* @return void
*/
function wpbc_shortcode_config_fields__booking_ics_import__silence( $id , $group_key ){
WPBC_Settings_API::field_select_row_static( $id
, array(
'type' => 'select'
, 'title' => __( 'Display Import Status', 'booking' )
, 'description' => ''//__( 'You can specify the maximum number of events.', 'booking' )
, 'description_tag' => 'span'
, 'label' => ''
, 'multiple' => false
, 'group' => $group_key
, 'tr_class' => $group_key . '_standard_section'
, 'class' => ''
, 'css' => 'margin-right:10px;'
, 'only_field' => false
, 'attr' => array()
, 'value' => 0
, 'options' => array(
'' => __( 'Show the number of imported bookings', 'booking' )
, '1' => __( 'Do not display any messages regarding the import', 'booking' )
)
)
);
}