'; echo '
'; echo '
'; get_template_part( 'views/global-templates/left-sidebar-check' ); echo '
'; } } if ( ! function_exists( 'anzu_woocommerce_wrapper_end' ) ) { /** * Display the theme specific end of the page wrapper. */ function anzu_woocommerce_wrapper_end() { echo '
'; get_template_part( 'views/global-templates/right-sidebar-check' ); echo '
'; echo '
'; echo ''; } } if ( ! function_exists( 'anzu_wc_form_field_args' ) ) { /** * Filter hook function monkey patching form classes * Author: Adriano Monecchi http://stackoverflow.com/a/36724593/307826 * * @param string $args Form attributes. * @param string $key Not in use. * @param null $value Not in use. * * @return mixed */ function anzu_wc_form_field_args( $args, $key, $value = null ) { // Start field type switch case. switch ( $args['type'] ) { // Targets all select input type elements, except the country and state select input types. case 'select': /* * Add a class to the field's html element wrapper - woocommerce * input types (fields) are often wrapped within a

tag. */ $args['class'][] = 'form-group'; // Add a class to the form input itself. $args['input_class'] = array( 'form-control' ); // Add custom data attributes to the form input itself. $args['custom_attributes'] = array( 'data-plugin' => 'select2', 'data-allow-clear' => 'true', 'aria-hidden' => 'true', ); break; /* * By default WooCommerce will populate a select with the country names - $args * defined for this specific input type targets only the country select element. */ case 'country': $args['class'][] = 'form-group single-country'; break; /* * By default WooCommerce will populate a select with state names - $args defined * for this specific input type targets only the country select element. */ case 'state': $args['class'][] = 'form-group'; $args['custom_attributes'] = array( 'data-plugin' => 'select2', 'data-allow-clear' => 'true', 'aria-hidden' => 'true', ); break; case 'password': case 'text': case 'email': case 'tel': case 'number': $args['class'][] = 'form-group'; $args['input_class'] = array( 'form-control' ); break; case 'textarea': $args['input_class'] = array( 'form-control' ); break; case 'checkbox': $args['class'][] = 'form-group'; // Wrap the label in tag. $args['label'] = isset( $args['label'] ) ? '' . $args['label'] . '' : ''; // Add a class to the form input's