From 00c9709fd9763542e848f6278db8ba26af5c9886 Mon Sep 17 00:00:00 2001
From: Max
Date: Mon, 15 Oct 2018 23:46:42 +0200
Subject: Initial commit.
---
inc/woocommerce.php | 140 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 140 insertions(+)
create mode 100644 inc/woocommerce.php
(limited to 'inc/woocommerce.php')
diff --git a/inc/woocommerce.php b/inc/woocommerce.php
new file mode 100644
index 0000000..3cd8e9b
--- /dev/null
+++ b/inc/woocommerce.php
@@ -0,0 +1,140 @@
+';
+ echo '
';
+ echo '
';
+ get_template_part( 'global-templates/left-sidebar-check' );
+ echo '';
+ }
+}
+if ( ! function_exists( 'understrap_woocommerce_wrapper_end' ) ) {
+function understrap_woocommerce_wrapper_end() {
+ echo '';
+ get_template_part( 'global-templates/right-sidebar-check' );
+ echo '
';
+ echo '
';
+ echo '';
+ }
+}
+
+
+/**
+ * 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
+ */
+if ( ! function_exists ( 'understrap_wc_form_field_args' ) ) {
+ function understrap_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