Lines:
1 to 68 of 68
<?php // (C) Copyright Bobbing Wide 2013-2014, 2023 if ( !function_exists( "bw_datepicker_enqueue_script" ) ) { /* function bw_datepicker_enqueue_script() – Enqueue the datepicker script */ } if ( !function_exists( "bw_form_field_date" ) ) { /* function bw_form_field_date() – bw_form_field_date – format a date field */ } if ( !function_exists( "bw_timepicker_enqueue_script" ) ) { /* function bw_timepicker_enqueue_script() – Enqueue the time picker debug script if needed otherwise enqueue the minified (packed) one */ } if ( !function_exists( "bw_form_field_time" ) ) { /* function bw_form_field_time() – Implement bw_form_field_ hook for "time" */ } /** * If we want to use HM's CMB then we need to use something like this for the jQuery parameters * Note: Copied timePicker.js from Custom_Meta_Boxes * need the official version... jQuery(this).timePicker({ startTime: "00:00", endTime: "23:30", show24Hours: false, separator: ':', step: 30 }); */ /** class CMB_Time_Field extends CMB_Field { public function enqueue_scripts() { Quarent::enqueue_scripts(); wp_enqueue_style( 'cmb-jquery-ui', trailingslashit( CMB_URL ) . 'css/jquery-ui.css', '1.10.3' ); wp_enqueue_script( 'cmb-timepicker', trailingslashit( CMB_URL ) . 'js/jquery.timePicker.min.js', array( 'jquery', 'cmb-scripts' ) ); wp_enqueue_script( 'cmb-datetime', trailingslashit( CMB_URL ) . 'js/field.datetime.js', array( 'jquery', 'jquery-ui-core', 'jquery-ui-datepicker', 'cmb-scripts' ) ); } public function html() { ?> <input <?php $this->id_attr(); ?> <?php $this->boolean_attr(); ?> <?php $this->class_attr( 'cmb_text_small cmb_timepicker' ); ?> type="text" <?php $this->name_attr(); ?> value="<?php echo esc_attr( $this->value ); ?>"/> <?php } } */ if ( !function_exists( "bw_theme_field_date" ) ) { /* function bw_theme_field_date() – Theme a field of type ‘date’ */ } if ( !function_exists( "bw_theme_field_time" ) ) { /* function bw_theme_field_time() – Theme a field of type ‘time’ */ }
Called by
Invoked by
Calls
Call hooks
API Letters:
