‹ ›
__('TimeLine', 'booking') , 'text_css' => 'line-height: 18px;vertical-align: text-top;' // , 'hint' => array( 'title' => __('Manage bookings' ,'booking') , 'position' => 'top' ) , 'onclick' => $js . "jQuery('.wpbc_sc_container__shortcode_" . $shortcode_name . " .wpbc_sc_container__shortcode_section__general').show();" , 'font_icon' => 'menu_icon icon-1x wpbc_icn_rotate_90 wpbc_icn_align_vertical_bottom NOwpbc-bi-bar-chart-steps0 NOwpbc-bi-diagram-3' , 'default' => true ) ); // wpbc_bs_display_tab( array( // 'title' => __('View Options', 'booking') // // , 'hint' => array( 'title' => __('Manage bookings' ,'booking') , 'position' => 'top' ) // , 'onclick' => $js . "jQuery('.wpbc_sc_container__shortcode_" . $shortcode_name . " .wpbc_sc_container__shortcode_section__options').show();" // , 'font_icon' => 'wpbc_icn_adjust' // , 'default' => false // ) ); wpbc_bs_display_tab( array( 'title' => __('Advanced', 'booking') // , 'hint' => array( 'title' => __('Manage bookings' ,'booking') , 'position' => 'top' ) , 'onclick' => $js . "jQuery('.wpbc_sc_container__shortcode_" . $shortcode_name . " .wpbc_sc_container__shortcode_section__other').show();" , 'font_icon' => 'wpbc_icn_tune' , 'default' => false ) ); wpbc_bs_toolbar_tabs_html_container_end(); } /** * Shortcode Fields: View Mode: * * @param $id * @param $group_key * * @return void */ function wpbc_shortcode_config_fields__view_mode_timeline( $id , $group_key ){ $view_days_optiopns = array(); if ( class_exists( 'wpdev_bk_personal' ) ) { $view_days_optiopns[ 1 ] = array( 'title' => __('Day', 'booking' ), 'attr' => array( 'class' => 'wpbc_bookingtimeline_matrix' ) ); $view_days_optiopns[ 7 ] = array( 'title' => __( 'Week', 'booking' ), 'attr' => array( 'class' => 'wpbc_bookingtimeline_matrix' ) ); } $view_days_optiopns[ 30 ] = array( 'title' => __( 'Month', 'booking' ), 'attr' => array( 'class' => 'wpbc_bookingtimeline_single wpbc_bookingtimeline_matrix' ) ); if ( class_exists( 'wpdev_bk_personal' ) ) { $view_days_optiopns[ 60 ] = array( 'title' => __( '2 Months', 'booking' ), 'attr' => array( 'class' => 'wpbc_bookingtimeline_matrix' ) ); } $view_days_optiopns[ 90 ] = array( 'title' => __( '3 Months', 'booking' ), 'attr' => array( 'class' => 'wpbc_bookingtimeline_single' ) ); $view_days_optiopns[ 365 ] = array( 'title' => __( 'Year', 'booking' ), 'attr' => array( 'class' => 'wpbc_bookingtimeline_single' ) ); WPBC_Settings_API::field_radio_row_static( $id . '_months_num_in_row' , array( 'type' => 'radio' , 'title' => __('View mode', 'booking') , 'description' => __('Select type of view format.' ,'booking') , 'description_tag' => 'span' , 'label' => '' , 'multiple' => false , 'group' => $group_key , 'tr_class' => $group_key . '_standard_section wpbc_sub_settings_grayed0 ' . $id . '_wpbc_sc_view_mode' , 'class' => '' , 'css' => 'margin-right:10px;' , 'only_field' => false , 'attr' => array() , 'value' => 30 , 'options' => $view_days_optiopns ) ); } /** * Shortcode Field: Label - text of label for the select box. * * @param $id * @param $group_key * * @return void */ function wpbc_shortcode_config_fields__text_label_timeline($id , $group_key ){ WPBC_Settings_API::field_text_row_static( $id , array( 'type' => 'text' , 'placeholder' => __( 'Example', 'booking' ). ': ' .__( 'All Bookings', 'booking' ) , 'title' => __( 'Label', 'booking' ) , 'description' => __( 'Title', 'booking' ) . ' (' . __( 'optional', 'booking' ) . ').' , 'description_tag' => 'span' , 'label' => '' , 'class' => '' , 'css' => 'width0:5em;' , 'tr_class' => '' , 'group' => $group_key , 'tr_class' => $group_key . '_standard_section wpbc_sub_settings_grayed0' , 'only_field' => false , 'attr' => array() , 'value' => '' ) ); } /** * Shortcode Field: Select-box - "Number of days to scroll" * * @param $id * @param $group_key * * @return void */ function wpbc_shortcode_config_fields__select_days_months_to_scroll( $id , $group_key ){ WPBC_Settings_API::field_select_row_static( $id. '_scroll_days' , array( 'type' => 'select' , 'title' => __('Number of days to scroll', 'booking') , 'description' => __(' Select number of days to scroll after loading' ,'booking') , 'description_tag' => 'span' , 'label' => '' , 'multiple' => false , 'group' => $group_key , 'tr_class' => $group_key . '_standard_section wpbc_bookingtimeline_scroll_day wpbc_sub_settings_grayed0' , 'class' => '' , 'css' => 'margin-right:10px;' , 'only_field' => false , 'attr' => array() , 'value' => 0 , 'options' => array_combine( range( -90, 90 ), range( -90, 90 ) ) ) ); WPBC_Settings_API::field_select_row_static( $id . '_scroll_month' , array( 'type' => 'select' , 'title' => __('Number of months to scroll', 'booking') , 'description' => __('Select number of months to scroll after loading' ,'booking') , 'description_tag' => 'span' , 'label' => '' , 'multiple' => false , 'group' => $group_key , 'tr_class' => $group_key . '_standard_section wpbc_bookingtimeline_scroll_month wpbc_sub_settings_grayed0' , 'class' => '' , 'css' => 'margin-right:10px;' , 'only_field' => false , 'attr' => array() , 'value' => 0 , 'options' => array_combine( range( -12, 12 ), range( -12, 12 ) ) ) ); } /** * Shortcode Fields: Start Date: 2024-02-21 * * @param $id * @param $group_key * * @return void */ function wpbc_shortcode_config_fields__start_date_timeline( $id , $group_key ){ //////////////////////////////////////////////////////////////////// // Start Month //////////////////////////////////////////////////////////////////// ?>
'checkbox' , 'title' => '' , 'description' => '' , 'description_tag' => 'span' , 'label' => '' , 'class' => '' , 'css' => '' , 'tr_class' => '' , 'attr' => array() , 'group' => $group_key , 'only_field' => true , 'is_new_line' => false , 'value' => false ) ); WPBC_Settings_API::field_select_row_static( $id . '_year' , array( 'type' => 'select' , 'title' => '' , 'description' => '' , 'description_tag' => 'span' , 'label' => '' , 'multiple' => false , 'group' => $group_key , 'class' => '' , 'css' => 'width:5em;' , 'only_field' => true , 'attr' => array() , 'value' => gmdate( 'Y' ) , 'options' => array_combine( range( ( gmdate('Y') - 1 ), ( gmdate('Y') + 10 ) ), range( ( gmdate('Y') - 1 ), ( gmdate('Y') + 10 ) ) ) ) ); ?> / 'select' , 'title' => '' , 'description' => '' , 'description_tag' => 'span' , 'label' => '' , 'multiple' => false , 'group' => $group_key , 'class' => '' , 'css' => 'width:4em;' , 'only_field' => true , 'attr' => array() , 'value' => gmdate('n') , 'options' => array_combine( range( 1, 12 ), range( 1, 12 ) ) ) ); ?> / 'select' , 'title' => '' , 'description' => '' , 'description_tag' => 'span' , 'label' => '' , 'multiple' => false , 'group' => $group_key , 'class' => '' , 'css' => 'width:4em;' , 'only_field' => true , 'attr' => array() , 'value' => gmdate('j') , 'options' => array_combine( range( 1, 31 ), range( 1, 31 ) ) ) ); ?>
'select' , 'title' => '' , 'description' => '' , 'description_tag' => 'span' , 'label' => '' , 'multiple' => false , 'group' => $group_key , 'class' => '' , 'css' => 'width:4em;' , 'only_field' => true , 'attr' => array() , 'value' => 0 , 'options' => array_combine( range( 0, 23 ), range( 0, 23 ) ) ) ); ?> 'select' , 'title' => '' , 'description' => '' , 'description_tag' => 'span' , 'label' => '' , 'multiple' => false , 'group' => $group_key , 'class' => '' , 'css' => 'width:4em;' , 'only_field' => true , 'attr' => array() , 'value' => 24 , 'options' => array_combine( range( 1, 24 ), range( 1, 24 ) ) ) ); ?>