__( 'Now', 'booking-manager' )
, 'today' => __( '00:00 Today', 'booking-manager' )
, 'week' => __( 'Start of current week', 'booking-manager' )
, 'month-start' => __( 'Start of current month', 'booking-manager' )
, 'month-end' => __( 'End of current month', 'booking-manager' )
, 'year-start' => __( 'Start of current year', 'booking-manager' )
, 'any' => __( 'The start of time', 'booking-manager' )
, 'date' => __( 'Specific date / time', 'booking-manager' )
);
WPBM_Settings_API::field_select_row_static( 'wpbm_ics_listing_from'
, array(
'type' => 'select'
, 'title' => __('From', 'booking-manager' )
, 'description' => ''
, 'description_tag' => 'span'
, 'label' => ''
, 'multiple' => false
, 'group' => $shortcode_section_key
, 'tr_class' => $shortcode_section_key . '_standard_section'
, 'class' => ''
, 'css' => 'margin-right:10px;'
, 'only_field' => true
, 'attr' => array()
, 'value' => 'today'
, 'options' => $wpbc_options
)
);
?>
'text'
, 'title' => __('Offset', 'booking-manager' )
, 'placeholder' => ''
, 'description' => ''
, 'description_tag' => 'span'
, 'group' => $shortcode_section_key
, 'tr_class' => $shortcode_section_key . '_standard_section'
, 'class' => 'wpbm_text_near_select'
, 'css' => 'width:7em;'
, 'only_field' => true
, 'attr' => array()
, 'value' => ''
)
);
WPBM_Settings_API::field_select_row_static( 'wpbm_ics_listing_from_offset_type'
, array(
'type' => 'select'
, 'title' => ''
, 'description' => ''
, 'description_tag' => 'span'
, 'label' => ''
, 'multiple' => false
, 'group' => $shortcode_section_key
, 'class' => 'wpbm_select_near_text wpbm_from_offset'
, 'css' => 'width:6em;'
, 'only_field' => true
, 'attr' => array()
, 'value' => date( 'Y' )
, 'options' => array(
'day' => __( 'days' ,'booking-manager' )
, 'hour' => __( 'hours' ,'booking-manager' )
, 'minute' => __( 'minutes' ,'booking-manager' )
, 'second' => __( 'seconds' ,'booking-manager' )
)
//, 'options' => array_combine( range( ( date('Y') - 1 ), ( date('Y') + 10 ) ), range( ( date('Y') - 1 ), ( date('Y') + 10 ) ) )
)
);
?>
__( 'Now', 'booking-manager' )
, 'today' => __( '00:00 Today', 'booking-manager' )
, 'week' => __( 'End of current week', 'booking-manager' )
, 'month-start' => __( 'Start of current month', 'booking-manager' )
, 'month-end' => __( 'End of current month', 'booking-manager' )
, 'year-end' => __( 'End of current year', 'booking-manager' )
, 'any' => __( 'The end of time', 'booking-manager' )
, 'date' => __( 'Specific date / time', 'booking-manager' )
);
WPBM_Settings_API::field_select_row_static( 'wpbm_ics_listing_until'
, array(
'type' => 'select'
, 'title' => __('Until', 'booking-manager' )
, 'description' => ''
, 'description_tag' => 'span'
, 'label' => ''
, 'multiple' => false
, 'group' => $shortcode_section_key
, 'tr_class' => $shortcode_section_key . '_standard_section'
, 'class' => ''
, 'css' => 'margin-right:10px;'
, 'only_field' => true
, 'attr' => array()
, 'value' => 'year-end'
, 'options' => $wpbc_options
)
);
?>
'text'
, 'title' => __('Offset', 'booking-manager' )
, 'placeholder' => ''
, 'description' => ''
, 'description_tag' => 'span'
, 'group' => $shortcode_section_key
, 'tr_class' => $shortcode_section_key . '_standard_section'
, 'class' => 'wpbm_text_near_select'
, 'css' => 'width:7em;'
, 'only_field' => true
, 'attr' => array()
, 'value' => ''
)
);
WPBM_Settings_API::field_select_row_static( 'wpbm_ics_listing_until_offset_type'
, array(
'type' => 'select'
, 'title' => ''
, 'description' => ''
, 'description_tag' => 'span'
, 'label' => ''
, 'multiple' => false
, 'group' => $shortcode_section_key
, 'class' => 'wpbm_select_near_text wpbm_until_offset'
, 'css' => 'width:6em;'
, 'only_field' => true
, 'attr' => array()
, 'value' => date( 'Y' )
, 'options' => array(
'day' => __( 'days' ,'booking-manager' )
, 'hour' => __( 'hours' ,'booking-manager' )
, 'minute' => __( 'minutes' ,'booking-manager' )
, 'second' => __( 'seconds' ,'booking-manager' )
)
//, 'options' => array_combine( range( ( date('Y') - 1 ), ( date('Y') + 10 ) ), range( ( date('Y') - 1 ), ( date('Y') + 10 ) ) )
)
);
?>
'select'
, 'title' => __('Maximum number', 'booking-manager' )
, 'description' => __('You can specify the maximum number of events.' , 'booking-manager' )
, 'description_tag' => 'span'
, 'label' => ''
, 'multiple' => false
, 'group' => $shortcode_section_key
, 'tr_class' => $shortcode_section_key . '_standard_section'
, 'class' => ''
, 'css' => ''
, '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 ) )
)
)
);
WPBM_Settings_API::field_select_row_static( 'wpbm_listing_is_all_dates_in'
, array(
'type' => 'select'
, 'title' => __( 'Event condition', 'booking-manager')
, 'description' => __( 'Show event, if all dates or only some date(s) within conditional paramters from / untill', 'booking-manager' )
, 'description_tag' => 'span'
, 'label' => ''
, 'multiple' => false
, 'group' => $shortcode_section_key
, 'tr_class' => $shortcode_section_key . '_standard_section'
, 'class' => ''
, 'css' => 'margin-right:10px;'
, 'only_field' => false
, 'attr' => array()
, 'value' => '0'
, 'options' => array(
'0' => __( 'Some date(s) in conditional interval', 'booking-manager' )
, '1' => __( 'Strict. All dates in conditional interval', 'booking-manager' )
)
)
);
?>