Skip to content

Instantly share code, notes, and snippets.

@fervous
Created December 18, 2017 15:30
Show Gist options
  • Save fervous/4af9c72308bc416ca666f316e46ce89f to your computer and use it in GitHub Desktop.
Save fervous/4af9c72308bc416ca666f316e46ce89f to your computer and use it in GitHub Desktop.
wc vendors pro simple auctions edit timepicker
WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_simple_auctions_start_date', array(
'post_id' => $post_id,
'id' => '_auction_dates_from',
'label' => __( 'From', 'wcvendors-pro-simple-auctions' ),
'class' => 'wcv-datetimepicker',
'placeholder' => __( 'From…', 'placeholder', 'wcvendors-pro-simple-auctions' ). ' YYYY-MM-DD HH:MM',
'wrapper_start' => '<div class="wcv-cols-group wcv-horizontal-gutters"><div class="all-50 small-100 ">',
'wrapper_end' => '</div>',
'custom_attributes' => array(
'maxlenth' => '16',
'pattern' => '[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|1[0-9]|2[0-9]|3[01])[ ](0[0-9]|1[0-9]|2[0-4]):(0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])'
),
) )
);
WCVendors_Pro_Form_Helper::input( apply_filters( 'wcv_simple_auctions_end_date', array(
'post_id' => $post_id,
'id' => '_auction_dates_to',
'label' => __( 'To', 'wcvendors-pro-simple-auctions' ),
'class' => 'wcv-datetimepicker',
'placeholder' => __( 'To&hellip;', 'placeholder', 'wcvendors-pro-simple-auctions' ). ' YYYY-MM-DD HH:MM',
'wrapper_start' => '<div class="all-50 small-100">',
'wrapper_end' => '</div></div>',
'desc_tip' => true,
'custom_attributes' => array(
'maxlenth' => '16',
'pattern' => '[0-9]{4}-(0[1-9]|1[012])-(0[1-9]|1[0-9]|2[0-9]|3[01])[ ](0[0-9]|1[0-9]|2[0-4]):(0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9])'
),
) )
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment