balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

date-time-picker.php (3374B)


      1 <?php
      2 /**
      3  * Redux Pro Date/Time Picker Sample config.
      4  *
      5  * For full documentation, please visit: http:https://devs.redux.io/
      6  *
      7  * @package Redux Pro
      8  */
      9 
     10 defined( 'ABSPATH' ) || exit;
     11 
     12 Redux::set_section(
     13 	$opt_name,
     14 	array(
     15 		'title'      => esc_html__( 'Date / Time Picker', 'your-textdomain-here' ),
     16 		'desc'       => esc_html__( 'For full documentation on this field, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/premium/date-time-picker.html" target="_blank">https://devs.redux.io/premium/date-time-picker.html</a>',
     17 		'subsection' => true,
     18 		'fields'     => array(
     19 			array(
     20 				'id'           => 'opt-date-time-single',
     21 				'type'         => 'datetime',
     22 				'title'        => esc_html__( 'Single Date / Time input', 'your-textdomain-here' ),
     23 				'subtitle'     => esc_html__( 'Display when the split argument is set to false', 'your-textdomain-here' ),
     24 				'desc'         => 'The separator argument is set to the @ symbol.  Control-type is set to \'slider\'',
     25 				'split'        => false,
     26 				'control-type' => 'slider',
     27 				'separator'    => ' @ ',
     28 			),
     29 			array(
     30 				'id'            => 'opt-date-time-split',
     31 				'type'          => 'datetime',
     32 				'title'         => esc_html__( 'Split Date / Time input', 'your-textdomain-here' ),
     33 				'subtitle'      => esc_html__( 'Display when the split argument is set to true.', 'your-textdomain-here' ),
     34 				'desc'          => 'The \'timezone-list\' argument is set to display labels instead of time offsets.',
     35 				'split'         => true,
     36 				'control-type'  => 'slider',
     37 				'timezone-list' => array(
     38 					array(
     39 						'value' => 'EST',
     40 						'label' => 'Eastern',
     41 					),
     42 					array(
     43 						'value' => 'CST',
     44 						'label' => 'Central',
     45 					),
     46 					array(
     47 						'value' => 'GMT',
     48 						'label' => 'Moutain',
     49 					),
     50 					array(
     51 						'value' => 'PST',
     52 						'label' => 'Pacific',
     53 					),
     54 				),
     55 			),
     56 			array(
     57 				'id'          => 'opt-date-time-date-only',
     58 				'type'        => 'datetime',
     59 				'title'       => esc_html__( 'Date only input', 'your-textdomain-here' ),
     60 				'subtitle'    => esc_html__( 'Popup shows only the date picker.', 'your-textdomain-here' ),
     61 				'desc'        => 'The \'time-picker\' argument is set to false.',
     62 				'time-picker' => false,
     63 				'placeholder' => 'Date only',
     64 			),
     65 			array(
     66 				'id'          => 'opt-date-time-time-only',
     67 				'type'        => 'datetime',
     68 				'title'       => esc_html__( 'Time only input', 'your-textdomain-here' ),
     69 				'subtitle'    => esc_html__( 'Popup shows only the time picker.', 'your-textdomain-here' ),
     70 				'desc'        => 'The \'date-picker\' argument is set to false.',
     71 				'date-picker' => false,
     72 				'placeholder' => 'Time only',
     73 			),
     74 			array(
     75 				'id'            => 'opt-date-time-minmax',
     76 				'type'          => 'datetime',
     77 				'title'         => esc_html__( 'Min Max demo', 'your-textdomain-here' ),
     78 				'subtitle'      => esc_html__( 'Both time and date have min and max values.', 'your-textdomain-here' ),
     79 				'desc'          => 'The selectable date range is 30 days from the current day.  The selectable time range is between 8:20 AM and 4:40 PM',
     80 				'split'         => true,
     81 				'time-format'   => 'hh:mm TT',
     82 				'hour-min'      => 8,
     83 				'hour-max'      => 16,
     84 				'minute-min'    => 20,
     85 				'minute-max'    => 40,
     86 				'num-of-months' => 2,
     87 				'date-min'      => 0,
     88 				'date-max'      => 30,
     89 			),
     90 		),
     91 	)
     92 );