diff --git a/wp-content/themes/customizr-pro-child/functions.php b/wp-content/themes/customizr-pro-child/functions.php
index bf143c7..f1a839b 100644
--- a/wp-content/themes/customizr-pro-child/functions.php
+++ b/wp-content/themes/customizr-pro-child/functions.php
@@ -8,4 +8,49 @@
// END ENQUEUE PARENT ACTION
/*---Move Product Title*/
remove_action( 'woocommerce_before_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );
-add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );
\ No newline at end of file
+add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_product_thumbnail', 10 );
+
+/**
+ * @return array
+ *
+function child_thumb_size() {
+ $sizeinfo = array( 'width' => 240, 'height' => 180, 'crop' => false );
+ return $sizeinfo;
+}
+add_filter( 'tc_thumb_size', 'child_thumb_size');
+add_filter( 'tc_thumb_fpc_size', 'child_thumb_size');
+ */
+
+/**
+ *
+function child_theme_setup() {
+ add_image_size('tc-thumb', 240, 180, false);
+}
+add_action( 'after_setup_theme', 'child_theme_setup', 10, 2);
+update_option( 'thumbnail_size_w', 240 );
+update_option( 'thumbnail_size_h', 180 );
+update_option( 'thumbnail_crop', 0 );
+ */
+
+/**
+ *
+add_filter('tc_fp_link_url' , 'my_custom_fp_links', 10 ,2);
+//If you are using the featured pages Unlimited Plugin or the Customizr Pro theme, uncomment this line :
+add_filter('fpc_link_url' , 'my_custom_fp_links', 10 ,2);
+
+function my_custom_fp_links( $original_link , $fp_id ) {
+
+ //assigns a custom link by page id
+ $custom_link = array(
+ //page id => 'Custom link'
+ 59 => 'https://newswheel.vta.org/category/headways/',
+ 29 => 'https://newswheel.vta.org/category/from-the-hub/',
+ 129 => 'https://newswheel.vta.org/category/announcements/',
+ 25 => 'https://newswheel.vta.org/category/safety/'
+ );
+
+ foreach ($custom_link as $page_id => $link) {
+ if ( get_permalink($page_id) == $original_link )
+ return $link;
+ }
+ */
diff --git a/wp-content/themes/customizr-pro-child/style.css b/wp-content/themes/customizr-pro-child/style.css
index eccf78e..9eb7a9c 100644
--- a/wp-content/themes/customizr-pro-child/style.css
+++ b/wp-content/themes/customizr-pro-child/style.css
@@ -67,3 +67,10 @@ h2.woocommerce-loop-product__title {
font-size: 12pt !important;
color: red;
}
+
+/**
+ * Fix post thumbnails scaling issue
+ */
+figure.tc-grid-figure.has-thumb.effect-4 {
+ height: unset !important;
+}
\ No newline at end of file
diff --git a/wp-content/themes/customizr-pro-child/woocommerce/archive-product.php b/wp-content/themes/customizr-pro-child/woocommerce/archive-product.php
index ada4a8f..41b6c89 100644
--- a/wp-content/themes/customizr-pro-child/woocommerce/archive-product.php
+++ b/wp-content/themes/customizr-pro-child/woocommerce/archive-product.php
@@ -10,121 +10,98 @@
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
- * @see https://docs.woocommerce.com/document/template-structure/
- * @author WooThemes
- * @package WooCommerce/Templates
- * @version 2.0.0
+ * @see https://docs.woocommerce.com/document/template-structure/
+ * @package WooCommerce/Templates
+ * @version 3.4.0
*/
-if ( ! defined( 'ABSPATH' ) ) {
- exit; // Exit if accessed directly
-}
+defined( 'ABSPATH' ) || exit;
+
+get_header( 'shop' );
-get_header( 'shop' ); ?>
+/**
+ * Hook: woocommerce_before_main_content.
+ *
+ * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
+ * @hooked woocommerce_breadcrumb - 20
+ * @hooked WC_Structured_Data::generate_website_data() - 30
+ */
+do_action( 'woocommerce_before_main_content' );
+
+?>
+
+
-
-
+ /**
+ * Hook: woocommerce_before_shop_loop.
+ *
+ * @hooked wc_print_notices - 10
+ * @hooked woocommerce_result_count - 20
+ * @hooked woocommerce_catalog_ordering - 30
+ */
+ do_action( 'woocommerce_before_shop_loop' );
-
+ woocommerce_product_loop_start();
-
+ if ( wc_get_loop_prop( 'total' ) ) {
+ while ( have_posts() ) {
+ the_post();
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- woocommerce_product_loop_start( false ), 'after' => woocommerce_product_loop_end( false ) ) ) ) : ?>
-
-
-
-
+ do_action( 'woocommerce_shop_loop' );
+
+ wc_get_template_part( 'content', 'product' );
+ }
+ }
+
+ woocommerce_product_loop_end();
+
+ /**
+ * Hook: woocommerce_after_shop_loop.
+ *
+ * @hooked woocommerce_pagination - 10
+ */
+ do_action( 'woocommerce_after_shop_loop' );
+} else {
+ /**
+ * Hook: woocommerce_no_products_found.
+ *
+ * @hooked wc_no_products_found - 10
+ */
+ do_action( 'woocommerce_no_products_found' );
+}
-
+/**
+ * Hook: woocommerce_after_main_content.
+ *
+ * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
+ */
+do_action( 'woocommerce_after_main_content' );
-
+/**
+ * Hook: woocommerce_sidebar.
+ *
+ * @hooked woocommerce_get_sidebar - 10
+ */
+do_action( 'woocommerce_sidebar' );
-
+get_footer( 'shop' );
diff --git a/wp-content/themes/customizr-pro-child/woocommerce/auth/form-grant-access.php b/wp-content/themes/customizr-pro-child/woocommerce/auth/form-grant-access.php
index c7338d7..1a58595 100644
--- a/wp-content/themes/customizr-pro-child/woocommerce/auth/form-grant-access.php
+++ b/wp-content/themes/customizr-pro-child/woocommerce/auth/form-grant-access.php
@@ -22,11 +22,11 @@
-
+
-' . esc_html( $app_name ) . '', '' . esc_html( $scope ) . '' ); ?>
+' . esc_html( $app_name ) . '', '' . esc_html( $scope ) . '' ); ?>
diff --git a/wp-content/themes/customizr-pro-child/woocommerce/auth/form-login.php b/wp-content/themes/customizr-pro-child/woocommerce/auth/form-login.php
index 13b292f..8aa5330 100644
--- a/wp-content/themes/customizr-pro-child/woocommerce/auth/form-login.php
+++ b/wp-content/themes/customizr-pro-child/woocommerce/auth/form-login.php
@@ -10,38 +10,43 @@
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
- * @see https://docs.woocommerce.com/document/template-structure/
- * @author WooThemes
+ * @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce/Templates/Auth
- * @version 2.4.0
+ * @version 3.4.0
*/
-if ( ! defined( 'ABSPATH' ) ) {
- exit;
-}
+defined( 'ABSPATH' ) || exit;
-?>
+do_action( 'woocommerce_auth_page_header' ); ?>
-
-
-
+
+
+
- cancel and return to %1$s', 'woocommerce' ), wc_clean( $app_name ), esc_url( $return_url ) ); ?>
+
+ cancel and return to %1$s', 'woocommerce' ), esc_html( wc_clean( $app_name ) ), esc_url( $return_url ) ) );
+ ?>
+
diff --git a/wp-content/themes/customizr-pro-child/woocommerce/cart/cart-item-data.php b/wp-content/themes/customizr-pro-child/woocommerce/cart/cart-item-data.php
index a65242c..98f3296 100644
--- a/wp-content/themes/customizr-pro-child/woocommerce/cart/cart-item-data.php
+++ b/wp-content/themes/customizr-pro-child/woocommerce/cart/cart-item-data.php
@@ -21,7 +21,7 @@
?>
- - :
-
+ - :
+
diff --git a/wp-content/themes/customizr-pro-child/woocommerce/cart/cart-shipping.php b/wp-content/themes/customizr-pro-child/woocommerce/cart/cart-shipping.php
index bc8c05d..c3a8844 100644
--- a/wp-content/themes/customizr-pro-child/woocommerce/cart/cart-shipping.php
+++ b/wp-content/themes/customizr-pro-child/woocommerce/cart/cart-shipping.php
@@ -15,7 +15,7 @@
* @see https://docs.woocommerce.com/document/template-structure/
* @author WooThemes
* @package WooCommerce/Templates
- * @version 3.1.0
+ * @version 3.2.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
@@ -44,10 +44,16 @@
printf( '%3$s ', $index, esc_attr( $method->id ), wc_cart_totals_shipping_method_label( $method ) );
do_action( 'woocommerce_after_shipping_rate', $method, $index );
?>
- customer->has_calculated_shipping() ) : ?>
-
-
-
+ customer->has_calculated_shipping() ) : ?>
+
+
+
diff --git a/wp-content/themes/customizr-pro-child/woocommerce/cart/cart-totals.php b/wp-content/themes/customizr-pro-child/woocommerce/cart/cart-totals.php
index 3084cee..517c803 100644
--- a/wp-content/themes/customizr-pro-child/woocommerce/cart/cart-totals.php
+++ b/wp-content/themes/customizr-pro-child/woocommerce/cart/cart-totals.php
@@ -65,7 +65,7 @@
- cart->tax_display_cart ) :
+ cart->display_prices_including_tax() ) :
$taxable_address = WC()->customer->get_taxable_address();
$estimated_text = WC()->customer->is_customer_outside_base() && ! WC()->customer->has_calculated_shipping()
? sprintf( ' ' . __( '(estimated for %s)', 'woocommerce' ) . '', WC()->countries->estimated_for_prefix( $taxable_address[0] ) . WC()->countries->countries[ $taxable_address[0] ] )
diff --git a/wp-content/themes/customizr-pro-child/woocommerce/cart/cart.php b/wp-content/themes/customizr-pro-child/woocommerce/cart/cart.php
index d458113..1d5cb22 100644
--- a/wp-content/themes/customizr-pro-child/woocommerce/cart/cart.php
+++ b/wp-content/themes/customizr-pro-child/woocommerce/cart/cart.php
@@ -11,14 +11,11 @@
* the readme will list any important changes.
*
* @see https://docs.woocommerce.com/document/template-structure/
- * @author WooThemes
* @package WooCommerce/Templates
- * @version 3.1.0
+ * @version 3.4.0
*/
-if ( ! defined( 'ABSPATH' ) ) {
- exit;
-}
+defined( 'ABSPATH' ) || exit;
wc_print_notices();
@@ -32,10 +29,10 @@
| |
|
- |
- |
- |
- |
+ |
+ |
+ |
+ |
@@ -53,9 +50,10 @@
×',
- esc_url( WC()->cart->get_remove_url( $cart_item_key ) ),
+ esc_url( wc_get_cart_remove_url( $cart_item_key ) ),
__( 'Remove this item', 'woocommerce' ),
esc_attr( $product_id ),
esc_attr( $_product->get_sku() )
@@ -64,61 +62,64 @@
|
- get_image(), $cart_item, $cart_item_key );
-
- if ( ! $product_permalink ) {
- echo $thumbnail;
- } else {
- printf( '%s', esc_url( $product_permalink ), $thumbnail );
- }
- ?>
+ get_image(), $cart_item, $cart_item_key );
+
+ if ( ! $product_permalink ) {
+ echo wp_kses_post( $thumbnail );
+ } else {
+ printf( '%s', esc_url( $product_permalink ), wp_kses_post( $thumbnail ) );
+ }
+ ?>
|
- get_name(), $cart_item, $cart_item_key ) . ' ';
- } else {
- echo apply_filters( 'woocommerce_cart_item_name', sprintf( '%s', esc_url( $product_permalink ), $_product->get_name() ), $cart_item, $cart_item_key );
- }
-
- // Meta data
- echo WC()->cart->get_item_data( $cart_item );
-
- // Backorder notification
- if ( $_product->backorders_require_notification() && $_product->is_on_backorder( $cart_item['quantity'] ) ) {
- echo ' ' . esc_html__( 'Available on backorder', 'woocommerce' ) . ' ';
- }
- ?>
+ get_name(), $cart_item, $cart_item_key ) . ' ' );
+ } else {
+ echo wp_kses_post( apply_filters( 'woocommerce_cart_item_name', sprintf( '%s', esc_url( $product_permalink ), $_product->get_name() ), $cart_item, $cart_item_key ) );
+ }
+
+ do_action( 'woocommerce_after_cart_item_name', $cart_item, $cart_item_key );
+
+ // Meta data.
+ echo wc_get_formatted_cart_item_data( $cart_item ); // PHPCS: XSS ok.
+
+ // Backorder notification.
+ if ( $_product->backorders_require_notification() && $_product->is_on_backorder( $cart_item['quantity'] ) ) {
+ echo wp_kses_post( apply_filters( 'woocommerce_cart_item_backorder_notification', '' . esc_html__( 'Available on backorder', 'woocommerce' ) . ' ' ) );
+ }
+ ?>
|
cart->get_product_price( $_product ), $cart_item, $cart_item_key );
+ echo apply_filters( 'woocommerce_cart_item_price', WC()->cart->get_product_price( $_product ), $cart_item, $cart_item_key ); // PHPCS: XSS ok.
?>
|
- is_sold_individually() ) {
- $product_quantity = sprintf( '1 ', $cart_item_key );
- } else {
- $product_quantity = woocommerce_quantity_input( array(
- 'input_name' => "cart[{$cart_item_key}][qty]",
- 'input_value' => $cart_item['quantity'],
- 'max_value' => $_product->get_max_purchase_quantity(),
- 'min_value' => '0',
- ), $_product, false );
- }
-
- echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item );
- ?>
+ is_sold_individually() ) {
+ $product_quantity = sprintf( '1 ', $cart_item_key );
+ } else {
+ $product_quantity = woocommerce_quantity_input( array(
+ 'input_name' => "cart[{$cart_item_key}][qty]",
+ 'input_value' => $cart_item['quantity'],
+ 'max_value' => $_product->get_max_purchase_quantity(),
+ 'min_value' => '0',
+ 'product_name' => $_product->get_name(),
+ ), $_product, false );
+ }
+
+ echo apply_filters( 'woocommerce_cart_item_quantity', $product_quantity, $cart_item_key, $cart_item ); // PHPCS: XSS ok.
+ ?>
|
cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key );
+ echo apply_filters( 'woocommerce_cart_item_subtotal', WC()->cart->get_product_subtotal( $_product, $cart_item['quantity'] ), $cart_item, $cart_item_key ); // PHPCS: XSS ok.
?>
|
@@ -134,16 +135,16 @@
-
+
-
+
-
+
@@ -156,12 +157,12 @@
diff --git a/wp-content/themes/customizr-pro-child/woocommerce/cart/mini-cart.php b/wp-content/themes/customizr-pro-child/woocommerce/cart/mini-cart.php
index f1dd6e1..dc18c2a 100644
--- a/wp-content/themes/customizr-pro-child/woocommerce/cart/mini-cart.php
+++ b/wp-content/themes/customizr-pro-child/woocommerce/cart/mini-cart.php
@@ -15,7 +15,7 @@
* @see https://docs.woocommerce.com/document/template-structure/
* @author WooThemes
* @package WooCommerce/Templates
- * @version 3.1.0
+ * @version 3.3.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
@@ -42,21 +42,22 @@
×',
- esc_url( WC()->cart->get_remove_url( $cart_item_key ) ),
+ '×',
+ esc_url( wc_get_cart_remove_url( $cart_item_key ) ),
__( 'Remove this item', 'woocommerce' ),
esc_attr( $product_id ),
+ esc_attr( $cart_item_key ),
esc_attr( $_product->get_sku() )
), $cart_item_key );
?>
- is_visible() ) : ?>
-
+
+
-
+
- cart->get_item_data( $cart_item ); ?>
+
' . sprintf( '%s × %s', $cart_item['quantity'], $product_price ) . '', $cart_item, $cart_item_key ); ?>
diff --git a/wp-content/themes/customizr-pro-child/woocommerce/cart/shipping-calculator.php b/wp-content/themes/customizr-pro-child/woocommerce/cart/shipping-calculator.php
index 08e7cf2..87635a9 100644
--- a/wp-content/themes/customizr-pro-child/woocommerce/cart/shipping-calculator.php
+++ b/wp-content/themes/customizr-pro-child/woocommerce/cart/shipping-calculator.php
@@ -10,76 +10,74 @@
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
- * @see https://docs.woocommerce.com/document/template-structure/
- * @author WooThemes
- * @package WooCommerce/Templates
- * @version 2.0.8
+ * @see https://docs.woocommerce.com/document/template-structure/
+ * @package WooCommerce/Templates
+ * @version 3.4.0
*/
-if ( ! defined( 'ABSPATH' ) ) {
- exit; // Exit if accessed directly
-}
+defined( 'ABSPATH' ) || exit;
if ( 'no' === get_option( 'woocommerce_enable_shipping_calc' ) || ! WC()->cart->needs_shipping() ) {
return;
}
-?>
+wp_enqueue_script( 'wc-country-select' );
-
+do_action( 'woocommerce_before_shipping_calculator' ); ?>
diff --git a/wp-content/themes/customizr-pro-child/woocommerce/checkout/form-coupon.php b/wp-content/themes/customizr-pro-child/woocommerce/checkout/form-coupon.php
index d9c7129..f530f94 100644
--- a/wp-content/themes/customizr-pro-child/woocommerce/checkout/form-coupon.php
+++ b/wp-content/themes/customizr-pro-child/woocommerce/checkout/form-coupon.php
@@ -10,34 +10,32 @@
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
- * @see https://docs.woocommerce.com/document/template-structure/
- * @author WooThemes
+ * @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce/Templates
- * @version 2.2
+ * @version 3.4.4
*/
-if ( ! defined( 'ABSPATH' ) ) {
- exit; // Exit if accessed directly
-}
+defined( 'ABSPATH' ) || exit;
-if ( ! wc_coupons_enabled() ) {
+if ( ! wc_coupons_enabled() ) { // @codingStandardsIgnoreLine.
return;
}
-if ( empty( WC()->cart->applied_coupons ) ) {
- $info_message = apply_filters( 'woocommerce_checkout_coupon_message', __( 'Have a coupon?', 'woocommerce' ) . ' ' . __( 'Click here to enter your code', 'woocommerce' ) . '' );
- wc_print_notice( $info_message, 'notice' );
-}
?>
+
+ ' . __( 'Click here to enter your code', 'woocommerce' ) . '' ), 'notice' ); ?>
+
+
+