Replacing "woo commerce" namespace with "understrap"
This commit is contained in:
parent
e5e91cead6
commit
f54acbfd96
|
@ -25,7 +25,7 @@ wc_print_notices();
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<p class="cart-empty">
|
<p class="cart-empty">
|
||||||
<?php _e( 'Your cart is currently empty.', 'woocommerce' ) ?>
|
<?php _e( 'Your cart is currently empty.', 'understrap' ) ?>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<?php do_action( 'woocommerce_cart_is_empty' ); ?>
|
<?php do_action( 'woocommerce_cart_is_empty' ); ?>
|
||||||
|
@ -33,7 +33,7 @@ wc_print_notices();
|
||||||
<?php if ( wc_get_page_id( 'shop' ) > 0 ) : ?>
|
<?php if ( wc_get_page_id( 'shop' ) > 0 ) : ?>
|
||||||
<p class="return-to-shop">
|
<p class="return-to-shop">
|
||||||
<a class="btn btn-outline-primary" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>">
|
<a class="btn btn-outline-primary" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>">
|
||||||
<?php _e( 'Return To Shop', 'woocommerce' ) ?>
|
<?php _e( 'Return To Shop', 'understrap' ) ?>
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -33,10 +33,10 @@ do_action( 'woocommerce_before_cart' ); ?>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="product-remove"> </th>
|
<th class="product-remove"> </th>
|
||||||
<th class="product-thumbnail"> </th>
|
<th class="product-thumbnail"> </th>
|
||||||
<th class="product-name"><?php _e( 'Product', 'woocommerce' ); ?></th>
|
<th class="product-name"><?php _e( 'Product', 'understrap' ); ?></th>
|
||||||
<th class="product-price"><?php _e( 'Price', 'woocommerce' ); ?></th>
|
<th class="product-price"><?php _e( 'Price', 'understrap' ); ?></th>
|
||||||
<th class="product-quantity"><?php _e( 'Quantity', 'woocommerce' ); ?></th>
|
<th class="product-quantity"><?php _e( 'Quantity', 'understrap' ); ?></th>
|
||||||
<th class="product-subtotal"><?php _e( 'Total', 'woocommerce' ); ?></th>
|
<th class="product-subtotal"><?php _e( 'Total', 'understrap' ); ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -57,7 +57,7 @@ do_action( 'woocommerce_before_cart' ); ?>
|
||||||
echo apply_filters( 'woocommerce_cart_item_remove_link', sprintf(
|
echo apply_filters( 'woocommerce_cart_item_remove_link', sprintf(
|
||||||
'<a href="%s" class="remove" title="%s" data-product_id="%s" data-product_sku="%s">×</a>',
|
'<a href="%s" class="remove" title="%s" data-product_id="%s" data-product_sku="%s">×</a>',
|
||||||
esc_url( WC()->cart->get_remove_url( $cart_item_key ) ),
|
esc_url( WC()->cart->get_remove_url( $cart_item_key ) ),
|
||||||
__( 'Remove this item', 'woocommerce' ),
|
__( 'Remove this item', 'understrap' ),
|
||||||
esc_attr( $product_id ),
|
esc_attr( $product_id ),
|
||||||
esc_attr( $_product->get_sku() )
|
esc_attr( $_product->get_sku() )
|
||||||
), $cart_item_key );
|
), $cart_item_key );
|
||||||
|
@ -76,7 +76,7 @@ do_action( 'woocommerce_before_cart' ); ?>
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="product-name" data-title="<?php _e( 'Product', 'woocommerce' ); ?>">
|
<td class="product-name" data-title="<?php _e( 'Product', 'understrap' ); ?>">
|
||||||
<?php
|
<?php
|
||||||
if ( ! $product_permalink ) {
|
if ( ! $product_permalink ) {
|
||||||
echo apply_filters( 'woocommerce_cart_item_name', $_product->get_title(), $cart_item, $cart_item_key ) . ' ';
|
echo apply_filters( 'woocommerce_cart_item_name', $_product->get_title(), $cart_item, $cart_item_key ) . ' ';
|
||||||
|
@ -89,18 +89,18 @@ do_action( 'woocommerce_before_cart' ); ?>
|
||||||
|
|
||||||
// Backorder notification
|
// Backorder notification
|
||||||
if ( $_product->backorders_require_notification() && $_product->is_on_backorder( $cart_item['quantity'] ) ) {
|
if ( $_product->backorders_require_notification() && $_product->is_on_backorder( $cart_item['quantity'] ) ) {
|
||||||
echo '<p class="backorder_notification">' . esc_html__( 'Available on backorder', 'woocommerce' ) . '</p>';
|
echo '<p class="backorder_notification">' . esc_html__( 'Available on backorder', 'understrap' ) . '</p>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="product-price" data-title="<?php _e( 'Price', 'woocommerce' ); ?>">
|
<td class="product-price" data-title="<?php _e( 'Price', 'understrap' ); ?>">
|
||||||
<?php
|
<?php
|
||||||
echo apply_filters( 'woocommerce_cart_item_price', WC()->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 );
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="product-quantity" data-title="<?php _e( 'Quantity', 'woocommerce' ); ?>">
|
<td class="product-quantity" data-title="<?php _e( 'Quantity', 'understrap' ); ?>">
|
||||||
<?php
|
<?php
|
||||||
if ( $_product->is_sold_individually() ) {
|
if ( $_product->is_sold_individually() ) {
|
||||||
$product_quantity = sprintf( '1 <input type="hidden" name="cart[%s][qty]" value="1" />', $cart_item_key );
|
$product_quantity = sprintf( '1 <input type="hidden" name="cart[%s][qty]" value="1" />', $cart_item_key );
|
||||||
|
@ -117,7 +117,7 @@ do_action( 'woocommerce_before_cart' ); ?>
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td class="product-subtotal" data-title="<?php _e( 'Total', 'woocommerce' ); ?>">
|
<td class="product-subtotal" data-title="<?php _e( 'Total', 'understrap' ); ?>">
|
||||||
<?php
|
<?php
|
||||||
echo apply_filters( 'woocommerce_cart_item_subtotal', WC()->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 );
|
||||||
?>
|
?>
|
||||||
|
@ -135,13 +135,13 @@ do_action( 'woocommerce_before_cart' ); ?>
|
||||||
<?php if ( wc_coupons_enabled() ) { ?>
|
<?php if ( wc_coupons_enabled() ) { ?>
|
||||||
<div class="coupon">
|
<div class="coupon">
|
||||||
|
|
||||||
<label for="coupon_code"><?php _e( 'Coupon:', 'woocommerce' ); ?></label> <input type="text" name="coupon_code" class="input-text" id="coupon_code" value="" placeholder="<?php esc_attr_e( 'Coupon code', 'woocommerce' ); ?>" /> <input type="submit" class=" btn btn-outline-primary" name="apply_coupon" value="<?php esc_attr_e( 'Apply Coupon', 'woocommerce' ); ?>" />
|
<label for="coupon_code"><?php _e( 'Coupon:', 'understrap' ); ?></label> <input type="text" name="coupon_code" class="input-text" id="coupon_code" value="" placeholder="<?php esc_attr_e( 'Coupon code', 'understrap' ); ?>" /> <input type="submit" class=" btn btn-outline-primary" name="apply_coupon" value="<?php esc_attr_e( 'Apply Coupon', 'understrap' ); ?>" />
|
||||||
|
|
||||||
<?php do_action( 'woocommerce_cart_coupon' ); ?>
|
<?php do_action( 'woocommerce_cart_coupon' ); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<input type="submit" class="btn btn-outline-primary" name="update_cart" value="<?php esc_attr_e( 'Update Cart', 'woocommerce' ); ?>" />
|
<input type="submit" class="btn btn-outline-primary" name="update_cart" value="<?php esc_attr_e( 'Update Cart', 'understrap' ); ?>" />
|
||||||
|
|
||||||
<?php do_action( 'woocommerce_cart_actions' ); ?>
|
<?php do_action( 'woocommerce_cart_actions' ); ?>
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
echo apply_filters( 'woocommerce_cart_item_remove_link', sprintf(
|
echo apply_filters( 'woocommerce_cart_item_remove_link', sprintf(
|
||||||
'<a href="%s" class="remove" title="%s" data-product_id="%s" data-product_sku="%s">×</a>',
|
'<a href="%s" class="remove" title="%s" data-product_id="%s" data-product_sku="%s">×</a>',
|
||||||
esc_url( WC()->cart->get_remove_url( $cart_item_key ) ),
|
esc_url( WC()->cart->get_remove_url( $cart_item_key ) ),
|
||||||
__( 'Remove this item', 'woocommerce' ),
|
__( 'Remove this item', 'understrap' ),
|
||||||
esc_attr( $product_id ),
|
esc_attr( $product_id ),
|
||||||
esc_attr( $_product->get_sku() )
|
esc_attr( $_product->get_sku() )
|
||||||
), $cart_item_key );
|
), $cart_item_key );
|
||||||
|
@ -69,7 +69,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
|
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
|
|
||||||
<li class="empty"><?php _e( 'No products in the cart.', 'woocommerce' ); ?></li>
|
<li class="empty"><?php _e( 'No products in the cart.', 'understrap' ); ?></li>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
@ -77,13 +77,13 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
|
|
||||||
<?php if ( ! WC()->cart->is_empty() ) : ?>
|
<?php if ( ! WC()->cart->is_empty() ) : ?>
|
||||||
|
|
||||||
<p class="total"><strong><?php _e( 'Subtotal', 'woocommerce' ); ?>:</strong> <?php echo WC()->cart->get_cart_subtotal(); ?></p>
|
<p class="total"><strong><?php _e( 'Subtotal', 'understrap' ); ?>:</strong> <?php echo WC()->cart->get_cart_subtotal(); ?></p>
|
||||||
|
|
||||||
<?php do_action( 'woocommerce_widget_shopping_cart_before_buttons' ); ?>
|
<?php do_action( 'woocommerce_widget_shopping_cart_before_buttons' ); ?>
|
||||||
|
|
||||||
<p class="buttons">
|
<p class="buttons">
|
||||||
<a href="<?php echo esc_url( wc_get_cart_url() ); ?>" class="btn btn-outline-primary"><?php _e( 'View Cart', 'woocommerce' ); ?></a>
|
<a href="<?php echo esc_url( wc_get_cart_url() ); ?>" class="btn btn-outline-primary"><?php _e( 'View Cart', 'understrap' ); ?></a>
|
||||||
<a href="<?php echo esc_url( wc_get_checkout_url() ); ?>" class="btn btn-primary"><?php _e( 'Checkout', 'woocommerce' ); ?></a>
|
<a href="<?php echo esc_url( wc_get_checkout_url() ); ?>" class="btn btn-primary"><?php _e( 'Checkout', 'understrap' ); ?></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -24,5 +24,5 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<a href="<?php echo esc_url( wc_get_checkout_url() ) ;?>" class="btn btn-primary btn-lg btn-block">
|
<a href="<?php echo esc_url( wc_get_checkout_url() ) ;?>" class="btn btn-primary btn-lg btn-block">
|
||||||
<?php echo __( 'Proceed to Checkout', 'woocommerce' ); ?>
|
<?php echo __( 'Proceed to Checkout', 'understrap' ); ?>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -25,7 +25,7 @@ if ( ! wc_coupons_enabled() ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( empty( WC()->cart->applied_coupons ) ) {
|
if ( empty( WC()->cart->applied_coupons ) ) {
|
||||||
$info_message = apply_filters( 'woocommerce_checkout_coupon_message', __( 'Have a coupon?', 'woocommerce' ) . ' <a href="#" class="showcoupon">' . __( 'Click here to enter your code', 'woocommerce' ) . '</a>' );
|
$info_message = apply_filters( 'woocommerce_checkout_coupon_message', __( 'Have a coupon?', 'understrap' ) . ' <a href="#" class="showcoupon">' . __( 'Click here to enter your code', 'understrap' ) . '</a>' );
|
||||||
wc_print_notice( $info_message, 'notice' );
|
wc_print_notice( $info_message, 'notice' );
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
@ -33,11 +33,11 @@ if ( empty( WC()->cart->applied_coupons ) ) {
|
||||||
<form class="checkout_coupon" method="post" style="display:none">
|
<form class="checkout_coupon" method="post" style="display:none">
|
||||||
|
|
||||||
<p class="form-row form-row-first">
|
<p class="form-row form-row-first">
|
||||||
<input type="text" name="coupon_code" class="form-control" placeholder="<?php esc_attr_e( 'Coupon code', 'woocommerce' ); ?>" id="coupon_code" value="" />
|
<input type="text" name="coupon_code" class="form-control" placeholder="<?php esc_attr_e( 'Coupon code', 'understrap' ); ?>" id="coupon_code" value="" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="form-row form-row-last">
|
<p class="form-row form-row-last">
|
||||||
<input type="submit" class="btn btn-outline-primary" name="apply_coupon" value="<?php esc_attr_e( 'Apply Coupon', 'woocommerce' ); ?>" />
|
<input type="submit" class="btn btn-outline-primary" name="apply_coupon" value="<?php esc_attr_e( 'Apply Coupon', 'understrap' ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
|
|
@ -26,9 +26,9 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
<table class="shop_table">
|
<table class="shop_table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="product-name"><?php _e( 'Product', 'woocommerce' ); ?></th>
|
<th class="product-name"><?php _e( 'Product', 'understrap' ); ?></th>
|
||||||
<th class="product-quantity"><?php _e( 'Qty', 'woocommerce' ); ?></th>
|
<th class="product-quantity"><?php _e( 'Qty', 'understrap' ); ?></th>
|
||||||
<th class="product-total"><?php _e( 'Totals', 'woocommerce' ); ?></th>
|
<th class="product-total"><?php _e( 'Totals', 'understrap' ); ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -76,7 +76,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) );
|
wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo '<li>' . apply_filters( 'woocommerce_no_available_payment_methods_message', __( 'Sorry, it seems that there are no available payment methods for your location. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) ) . '</li>';
|
echo '<li>' . apply_filters( 'woocommerce_no_available_payment_methods_message', __( 'Sorry, it seems that there are no available payment methods for your location. Please contact us if you require assistance or wish to make alternate arrangements.', 'understrap' ) ) . '</li>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -32,15 +32,15 @@ if ( ! is_ajax() ) {
|
||||||
wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) );
|
wc_get_template( 'checkout/payment-method.php', array( 'gateway' => $gateway ) );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
echo '<li>' . apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_country() ? __( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'woocommerce' ) : __( 'Please fill in your details above to see available payment methods.', 'woocommerce' ) ) . '</li>';
|
echo '<li>' . apply_filters( 'woocommerce_no_available_payment_methods_message', WC()->customer->get_country() ? __( 'Sorry, it seems that there are no available payment methods for your state. Please contact us if you require assistance or wish to make alternate arrangements.', 'understrap' ) : __( 'Please fill in your details above to see available payment methods.', 'understrap' ) ) . '</li>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<div class="form-row place-order">
|
<div class="form-row place-order">
|
||||||
<noscript>
|
<noscript>
|
||||||
<?php _e( 'Since your browser does not support JavaScript, or it is disabled, please ensure you click the <em>Update Totals</em> button before placing your order. You may be charged more than the amount stated above if you fail to do so.', 'woocommerce' ); ?>
|
<?php _e( 'Since your browser does not support JavaScript, or it is disabled, please ensure you click the <em>Update Totals</em> button before placing your order. You may be charged more than the amount stated above if you fail to do so.', 'understrap' ); ?>
|
||||||
<br/><input type="submit" class="btn btn-primary" name="woocommerce_checkout_update_totals" value="<?php esc_attr_e( 'Update totals', 'woocommerce' ); ?>" />
|
<br/><input type="submit" class="btn btn-primary" name="woocommerce_checkout_update_totals" value="<?php esc_attr_e( 'Update totals', 'understrap' ); ?>" />
|
||||||
</noscript>
|
</noscript>
|
||||||
|
|
||||||
<?php wc_get_template( 'checkout/terms.php' ); ?>
|
<?php wc_get_template( 'checkout/terms.php' ); ?>
|
||||||
|
|
|
@ -32,11 +32,11 @@ if ( is_user_logged_in() ) {
|
||||||
<?php if ( $message ) echo wpautop( wptexturize( $message ) ); ?>
|
<?php if ( $message ) echo wpautop( wptexturize( $message ) ); ?>
|
||||||
|
|
||||||
<p class="form-row form-row-first">
|
<p class="form-row form-row-first">
|
||||||
<label for="username"><?php _e( 'Username or email', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="username"><?php _e( 'Username or email', 'understrap' ); ?> <span class="required">*</span></label>
|
||||||
<input type="text" class="input-text form-control" name="username" id="username" />
|
<input type="text" class="input-text form-control" name="username" id="username" />
|
||||||
</p>
|
</p>
|
||||||
<p class="form-row form-row-last">
|
<p class="form-row form-row-last">
|
||||||
<label for="password"><?php _e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="password"><?php _e( 'Password', 'understrap' ); ?> <span class="required">*</span></label>
|
||||||
<input class="input-text form-control" type="password" name="password" id="password" />
|
<input class="input-text form-control" type="password" name="password" id="password" />
|
||||||
</p>
|
</p>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
@ -45,14 +45,14 @@ if ( is_user_logged_in() ) {
|
||||||
|
|
||||||
<p class="form-row">
|
<p class="form-row">
|
||||||
<?php wp_nonce_field( 'woocommerce-login' ); ?>
|
<?php wp_nonce_field( 'woocommerce-login' ); ?>
|
||||||
<input type="submit" class="btn btn-outline-primary" name="login" value="<?php esc_attr_e( 'Login', 'woocommerce' ); ?>" />
|
<input type="submit" class="btn btn-outline-primary" name="login" value="<?php esc_attr_e( 'Login', 'understrap' ); ?>" />
|
||||||
<input type="hidden" name="redirect" value="<?php echo esc_url( $redirect ) ?>" />
|
<input type="hidden" name="redirect" value="<?php echo esc_url( $redirect ) ?>" />
|
||||||
<label for="rememberme" class="inline">
|
<label for="rememberme" class="inline">
|
||||||
<input name="rememberme" type="checkbox" id="rememberme" value="forever" /> <?php _e( 'Remember me', 'woocommerce' ); ?>
|
<input name="rememberme" type="checkbox" id="rememberme" value="forever" /> <?php _e( 'Remember me', 'understrap' ); ?>
|
||||||
</label>
|
</label>
|
||||||
</p>
|
</p>
|
||||||
<p class="lost_password">
|
<p class="lost_password">
|
||||||
<a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?', 'woocommerce' ); ?></a>
|
<a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?', 'understrap' ); ?></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
|
|
@ -21,5 +21,5 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="quantity">
|
<div class="quantity">
|
||||||
<input type="number" step="<?php echo esc_attr( $step ); ?>" min="<?php echo esc_attr( $min_value ); ?>" max="<?php echo esc_attr( $max_value ); ?>" name="<?php echo esc_attr( $input_name ); ?>" value="<?php echo esc_attr( $input_value ); ?>" title="<?php echo esc_attr_x( 'Qty', 'Product quantity input tooltip', 'woocommerce' ) ?>" class="input-text qty text form-control" size="4" pattern="<?php echo esc_attr( $pattern ); ?>" inputmode="<?php echo esc_attr( $inputmode ); ?>" />
|
<input type="number" step="<?php echo esc_attr( $step ); ?>" min="<?php echo esc_attr( $min_value ); ?>" max="<?php echo esc_attr( $max_value ); ?>" name="<?php echo esc_attr( $input_name ); ?>" value="<?php echo esc_attr( $input_value ); ?>" title="<?php echo esc_attr_x( 'Qty', 'Product quantity input tooltip', 'understrap' ) ?>" class="input-text qty text form-control" size="4" pattern="<?php echo esc_attr( $pattern ); ?>" inputmode="<?php echo esc_attr( $inputmode ); ?>" />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -56,7 +56,7 @@ do_action( 'woocommerce_before_account_downloads', $has_downloads ); ?>
|
||||||
if ( is_numeric( $download['downloads_remaining'] ) ) {
|
if ( is_numeric( $download['downloads_remaining'] ) ) {
|
||||||
echo esc_html( $download['downloads_remaining'] );
|
echo esc_html( $download['downloads_remaining'] );
|
||||||
} else {
|
} else {
|
||||||
_e( '∞', 'woocommerce' );
|
_e( '∞', 'understrap' );
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ do_action( 'woocommerce_before_account_downloads', $has_downloads ); ?>
|
||||||
<?php if ( ! empty( $download['access_expires'] ) ) : ?>
|
<?php if ( ! empty( $download['access_expires'] ) ) : ?>
|
||||||
<time datetime="<?php echo date( 'Y-m-d', strtotime( $download['access_expires'] ) ); ?>" title="<?php echo esc_attr( strtotime( $download['access_expires'] ) ); ?>"><?php echo date_i18n( get_option( 'date_format' ), strtotime( $download['access_expires'] ) ); ?></time>
|
<time datetime="<?php echo date( 'Y-m-d', strtotime( $download['access_expires'] ) ); ?>" title="<?php echo esc_attr( strtotime( $download['access_expires'] ) ); ?>"><?php echo date_i18n( get_option( 'date_format' ), strtotime( $download['access_expires'] ) ); ?></time>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<?php _e( 'Never', 'woocommerce' ); ?>
|
<?php _e( 'Never', 'understrap' ); ?>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php elseif ( 'download-actions' === $column_id ) : ?>
|
<?php elseif ( 'download-actions' === $column_id ) : ?>
|
||||||
|
@ -72,7 +72,7 @@ do_action( 'woocommerce_before_account_downloads', $has_downloads ); ?>
|
||||||
$actions = array(
|
$actions = array(
|
||||||
'download' => array(
|
'download' => array(
|
||||||
'url' => $download['download_url'],
|
'url' => $download['download_url'],
|
||||||
'name' => __( 'Download', 'woocommerce' )
|
'name' => __( 'Download', 'understrap' )
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -95,9 +95,9 @@ do_action( 'woocommerce_before_account_downloads', $has_downloads ); ?>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<div class="woocommerce-Message woocommerce-Message--info woocommerce-info">
|
<div class="woocommerce-Message woocommerce-Message--info woocommerce-info">
|
||||||
<a class="btn btn-outline-primary" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>">
|
<a class="btn btn-outline-primary" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>">
|
||||||
<?php esc_html_e( 'Go Shop', 'woocommerce' ) ?>
|
<?php esc_html_e( 'Go Shop', 'understrap' ) ?>
|
||||||
</a>
|
</a>
|
||||||
<?php esc_html_e( 'No downloads available yet.', 'woocommerce' ); ?>
|
<?php esc_html_e( 'No downloads available yet.', 'understrap' ); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|
|
@ -27,33 +27,33 @@ do_action( 'woocommerce_before_edit_account_form' ); ?>
|
||||||
<?php do_action( 'woocommerce_edit_account_form_start' ); ?>
|
<?php do_action( 'woocommerce_edit_account_form_start' ); ?>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--first form-row form-row-first">
|
<p class="woocommerce-FormRow woocommerce-FormRow--first form-row form-row-first">
|
||||||
<label for="account_first_name"><?php _e( 'First name', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="account_first_name"><?php _e( 'First name', 'understrap' ); ?> <span class="required">*</span></label>
|
||||||
<input type="text" class="woocommerce-Input woocommerce-Input--text input-text form-control" name="account_first_name" id="account_first_name" value="<?php echo esc_attr( $user->first_name ); ?>" />
|
<input type="text" class="woocommerce-Input woocommerce-Input--text input-text form-control" name="account_first_name" id="account_first_name" value="<?php echo esc_attr( $user->first_name ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--last form-row form-row-last">
|
<p class="woocommerce-FormRow woocommerce-FormRow--last form-row form-row-last">
|
||||||
<label for="account_last_name"><?php _e( 'Last name', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="account_last_name"><?php _e( 'Last name', 'understrap' ); ?> <span class="required">*</span></label>
|
||||||
<input type="text" class="woocommerce-Input woocommerce-Input--text input-text form-control" name="account_last_name" id="account_last_name" value="<?php echo esc_attr( $user->last_name ); ?>" />
|
<input type="text" class="woocommerce-Input woocommerce-Input--text input-text form-control" name="account_last_name" id="account_last_name" value="<?php echo esc_attr( $user->last_name ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
||||||
<label for="account_email"><?php _e( 'Email address', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="account_email"><?php _e( 'Email address', 'understrap' ); ?> <span class="required">*</span></label>
|
||||||
<input type="email" class="woocommerce-Input woocommerce-Input--email input-text form-control" name="account_email" id="account_email" value="<?php echo esc_attr( $user->user_email ); ?>" />
|
<input type="email" class="woocommerce-Input woocommerce-Input--email input-text form-control" name="account_email" id="account_email" value="<?php echo esc_attr( $user->user_email ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend><?php _e( 'Password Change', 'woocommerce' ); ?></legend>
|
<legend><?php _e( 'Password Change', 'understrap' ); ?></legend>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
||||||
<label for="password_current"><?php _e( 'Current Password (leave blank to leave unchanged)', 'woocommerce' ); ?></label>
|
<label for="password_current"><?php _e( 'Current Password (leave blank to leave unchanged)', 'understrap' ); ?></label>
|
||||||
<input type="password" class="woocommerce-Input woocommerce-Input--password input-text form-control" name="password_current" id="password_current" />
|
<input type="password" class="woocommerce-Input woocommerce-Input--password input-text form-control" name="password_current" id="password_current" />
|
||||||
</p>
|
</p>
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
||||||
<label for="password_1"><?php _e( 'New Password (leave blank to leave unchanged)', 'woocommerce' ); ?></label>
|
<label for="password_1"><?php _e( 'New Password (leave blank to leave unchanged)', 'understrap' ); ?></label>
|
||||||
<input type="password" class="woocommerce-Input woocommerce-Input--password input-text form-control" name="password_1" id="password_1" />
|
<input type="password" class="woocommerce-Input woocommerce-Input--password input-text form-control" name="password_1" id="password_1" />
|
||||||
</p>
|
</p>
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
||||||
<label for="password_2"><?php _e( 'Confirm New Password', 'woocommerce' ); ?></label>
|
<label for="password_2"><?php _e( 'Confirm New Password', 'understrap' ); ?></label>
|
||||||
<input type="password" class="woocommerce-Input woocommerce-Input--password input-text form-control" name="password_2" id="password_2" />
|
<input type="password" class="woocommerce-Input woocommerce-Input--password input-text form-control" name="password_2" id="password_2" />
|
||||||
</p>
|
</p>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
@ -63,7 +63,7 @@ do_action( 'woocommerce_before_edit_account_form' ); ?>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<?php wp_nonce_field( 'save_account_details' ); ?>
|
<?php wp_nonce_field( 'save_account_details' ); ?>
|
||||||
<input type="submit" class="btn btn-outline-primary" name="save_account_details" value="<?php esc_attr_e( 'Save changes', 'woocommerce' ); ?>" />
|
<input type="submit" class="btn btn-outline-primary" name="save_account_details" value="<?php esc_attr_e( 'Save changes', 'understrap' ); ?>" />
|
||||||
<input type="hidden" name="action" value="save_account_details" />
|
<input type="hidden" name="action" value="save_account_details" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$page_title = ( $load_address === 'billing' ) ? __( 'Billing Address', 'woocommerce' ) : __( 'Shipping Address', 'woocommerce' );
|
$page_title = ( $load_address === 'billing' ) ? __( 'Billing Address', 'understrap' ) : __( 'Shipping Address', 'understrap' );
|
||||||
|
|
||||||
do_action( 'woocommerce_before_edit_account_address_form' ); ?>
|
do_action( 'woocommerce_before_edit_account_address_form' ); ?>
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@ do_action( 'woocommerce_before_edit_account_address_form' ); ?>
|
||||||
<?php do_action( "woocommerce_after_edit_address_form_{$load_address}" ); ?>
|
<?php do_action( "woocommerce_after_edit_address_form_{$load_address}" ); ?>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<input type="submit" class="btn btn-outline-primary" name="save_address" value="<?php esc_attr_e( 'Save Address', 'woocommerce' ); ?>" />
|
<input type="submit" class="btn btn-outline-primary" name="save_address" value="<?php esc_attr_e( 'Save Address', 'understrap' ); ?>" />
|
||||||
<?php wp_nonce_field( 'woocommerce-edit_address' ); ?>
|
<?php wp_nonce_field( 'woocommerce-edit_address' ); ?>
|
||||||
<input type="hidden" name="action" value="edit_address" />
|
<input type="hidden" name="action" value="edit_address" />
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -34,18 +34,18 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<h2><?php _e( 'Login', 'woocommerce' ); ?></h2>
|
<h2><?php _e( 'Login', 'understrap' ); ?></h2>
|
||||||
|
|
||||||
<form method="post" class="login">
|
<form method="post" class="login">
|
||||||
|
|
||||||
<?php do_action( 'woocommerce_login_form_start' ); ?>
|
<?php do_action( 'woocommerce_login_form_start' ); ?>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
||||||
<label for="username"><?php _e( 'Username or email address', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="username"><?php _e( 'Username or email address', 'understrap' ); ?> <span class="required">*</span></label>
|
||||||
<input type="text" class="woocommerce-Input woocommerce-Input--text input-text form-control" name="username" id="username" value="<?php if ( ! empty( $_POST['username'] ) ) echo esc_attr( $_POST['username'] ); ?>" />
|
<input type="text" class="woocommerce-Input woocommerce-Input--text input-text form-control" name="username" id="username" value="<?php if ( ! empty( $_POST['username'] ) ) echo esc_attr( $_POST['username'] ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
||||||
<label for="password"><?php _e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="password"><?php _e( 'Password', 'understrap' ); ?> <span class="required">*</span></label>
|
||||||
<input class="woocommerce-Input woocommerce-Input--text input-text form-control" type="password" name="password" id="password" />
|
<input class="woocommerce-Input woocommerce-Input--text input-text form-control" type="password" name="password" id="password" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -53,13 +53,13 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
|
|
||||||
<p class="form-row">
|
<p class="form-row">
|
||||||
<?php wp_nonce_field( 'woocommerce-login', 'woocommerce-login-nonce' ); ?>
|
<?php wp_nonce_field( 'woocommerce-login', 'woocommerce-login-nonce' ); ?>
|
||||||
<input type="submit" class="btn btn-outline-primary" name="login" value="<?php esc_attr_e( 'Login', 'woocommerce' ); ?>" />
|
<input type="submit" class="btn btn-outline-primary" name="login" value="<?php esc_attr_e( 'Login', 'understrap' ); ?>" />
|
||||||
<label for="rememberme" class="inline">
|
<label for="rememberme" class="inline">
|
||||||
<input class="woocommerce-Input woocommerce-Input--checkbox" name="rememberme" type="checkbox" id="rememberme" value="forever" /> <?php _e( 'Remember me', 'woocommerce' ); ?>
|
<input class="woocommerce-Input woocommerce-Input--checkbox" name="rememberme" type="checkbox" id="rememberme" value="forever" /> <?php _e( 'Remember me', 'understrap' ); ?>
|
||||||
</label>
|
</label>
|
||||||
</p>
|
</p>
|
||||||
<p class="woocommerce-LostPassword lost_password">
|
<p class="woocommerce-LostPassword lost_password">
|
||||||
<a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?', 'woocommerce' ); ?></a>
|
<a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?', 'understrap' ); ?></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<?php do_action( 'woocommerce_login_form_end' ); ?>
|
<?php do_action( 'woocommerce_login_form_end' ); ?>
|
||||||
|
@ -72,7 +72,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
|
|
||||||
<div class="u-column2 col-2">
|
<div class="u-column2 col-2">
|
||||||
|
|
||||||
<h2><?php _e( 'Register', 'woocommerce' ); ?></h2>
|
<h2><?php _e( 'Register', 'understrap' ); ?></h2>
|
||||||
|
|
||||||
<form method="post" class="register">
|
<form method="post" class="register">
|
||||||
|
|
||||||
|
@ -81,35 +81,35 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
<?php if ( 'no' === get_option( 'woocommerce_registration_generate_username' ) ) : ?>
|
<?php if ( 'no' === get_option( 'woocommerce_registration_generate_username' ) ) : ?>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
||||||
<label for="reg_username"><?php _e( 'Username', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="reg_username"><?php _e( 'Username', 'understrap' ); ?> <span class="required">*</span></label>
|
||||||
<input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="username" id="reg_username" value="<?php if ( ! empty( $_POST['username'] ) ) echo esc_attr( $_POST['username'] ); ?>" />
|
<input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="username" id="reg_username" value="<?php if ( ! empty( $_POST['username'] ) ) echo esc_attr( $_POST['username'] ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
||||||
<label for="reg_email"><?php _e( 'Email address', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="reg_email"><?php _e( 'Email address', 'understrap' ); ?> <span class="required">*</span></label>
|
||||||
<input type="email" class="woocommerce-Input woocommerce-Input--text input-text" name="email" id="reg_email" value="<?php if ( ! empty( $_POST['email'] ) ) echo esc_attr( $_POST['email'] ); ?>" />
|
<input type="email" class="woocommerce-Input woocommerce-Input--text input-text" name="email" id="reg_email" value="<?php if ( ! empty( $_POST['email'] ) ) echo esc_attr( $_POST['email'] ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<?php if ( 'no' === get_option( 'woocommerce_registration_generate_password' ) ) : ?>
|
<?php if ( 'no' === get_option( 'woocommerce_registration_generate_password' ) ) : ?>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
|
||||||
<label for="reg_password"><?php _e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="reg_password"><?php _e( 'Password', 'understrap' ); ?> <span class="required">*</span></label>
|
||||||
<input type="password" class="woocommerce-Input woocommerce-Input--text input-text" name="password" id="reg_password" />
|
<input type="password" class="woocommerce-Input woocommerce-Input--text input-text" name="password" id="reg_password" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<!-- Spam Trap -->
|
<!-- Spam Trap -->
|
||||||
<div style="<?php echo ( ( is_rtl() ) ? 'right' : 'left' ); ?>: -999em; position: absolute;"><label for="trap"><?php _e( 'Anti-spam', 'woocommerce' ); ?></label><input type="text" name="email_2" id="trap" tabindex="-1" autocomplete="off" /></div>
|
<div style="<?php echo ( ( is_rtl() ) ? 'right' : 'left' ); ?>: -999em; position: absolute;"><label for="trap"><?php _e( 'Anti-spam', 'understrap' ); ?></label><input type="text" name="email_2" id="trap" tabindex="-1" autocomplete="off" /></div>
|
||||||
|
|
||||||
<?php do_action( 'woocommerce_register_form' ); ?>
|
<?php do_action( 'woocommerce_register_form' ); ?>
|
||||||
<?php do_action( 'register_form' ); ?>
|
<?php do_action( 'register_form' ); ?>
|
||||||
|
|
||||||
<p class="woocomerce-FormRow form-row">
|
<p class="woocomerce-FormRow form-row">
|
||||||
<?php wp_nonce_field( 'woocommerce-register', 'woocommerce-register-nonce' ); ?>
|
<?php wp_nonce_field( 'woocommerce-register', 'woocommerce-register-nonce' ); ?>
|
||||||
<input type="submit" class="woocommerce-Button button" name="register" value="<?php esc_attr_e( 'Register', 'woocommerce' ); ?>" />
|
<input type="submit" class="woocommerce-Button button" name="register" value="<?php esc_attr_e( 'Register', 'understrap' ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<?php do_action( 'woocommerce_register_form_end' ); ?>
|
<?php do_action( 'woocommerce_register_form_end' ); ?>
|
||||||
|
|
|
@ -24,10 +24,10 @@ wc_print_notices(); ?>
|
||||||
|
|
||||||
<form method="post" class="woocommerce-ResetPassword lost_reset_password">
|
<form method="post" class="woocommerce-ResetPassword lost_reset_password">
|
||||||
|
|
||||||
<p><?php echo apply_filters( 'woocommerce_lost_password_message', __( 'Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.', 'woocommerce' ) ); ?></p>
|
<p><?php echo apply_filters( 'woocommerce_lost_password_message', __( 'Lost your password? Please enter your username or email address. You will receive a link to create a new password via email.', 'understrap' ) ); ?></p>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--first form-row form-row-first">
|
<p class="woocommerce-FormRow woocommerce-FormRow--first form-row form-row-first">
|
||||||
<label for="user_login"><?php _e( 'Username or email', 'woocommerce' ); ?></label>
|
<label for="user_login"><?php _e( 'Username or email', 'understrap' ); ?></label>
|
||||||
<input class="woocommerce-Input woocommerce-Input--text input-text form-control" type="text" name="user_login" id="user_login" />
|
<input class="woocommerce-Input woocommerce-Input--text input-text form-control" type="text" name="user_login" id="user_login" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ wc_print_notices(); ?>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow form-row">
|
<p class="woocommerce-FormRow form-row">
|
||||||
<input type="hidden" name="wc_reset_password" value="true" />
|
<input type="hidden" name="wc_reset_password" value="true" />
|
||||||
<input type="submit" class="btn btn-outline-primary" value="<?php esc_attr_e( 'Reset Password', 'woocommerce' ); ?>" />
|
<input type="submit" class="btn btn-outline-primary" value="<?php esc_attr_e( 'Reset Password', 'understrap' ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<?php wp_nonce_field( 'lost_password' ); ?>
|
<?php wp_nonce_field( 'lost_password' ); ?>
|
||||||
|
|
|
@ -24,14 +24,14 @@ wc_print_notices(); ?>
|
||||||
|
|
||||||
<form method="post" class="woocommerce-ResetPassword lost_reset_password">
|
<form method="post" class="woocommerce-ResetPassword lost_reset_password">
|
||||||
|
|
||||||
<p><?php echo apply_filters( 'woocommerce_reset_password_message', __( 'Enter a new password below.', 'woocommerce') ); ?></p>
|
<p><?php echo apply_filters( 'woocommerce_reset_password_message', __( 'Enter a new password below.', 'understrap') ); ?></p>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--first form-row form-row-first">
|
<p class="woocommerce-FormRow woocommerce-FormRow--first form-row form-row-first">
|
||||||
<label for="password_1"><?php _e( 'New password', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="password_1"><?php _e( 'New password', 'understrap' ); ?> <span class="required">*</span></label>
|
||||||
<input type="password" class="woocommerce-Input woocommerce-Input--text input-text form-control" name="password_1" id="password_1" />
|
<input type="password" class="woocommerce-Input woocommerce-Input--text input-text form-control" name="password_1" id="password_1" />
|
||||||
</p>
|
</p>
|
||||||
<p class="woocommerce-FormRow woocommerce-FormRow--last form-row form-row-last">
|
<p class="woocommerce-FormRow woocommerce-FormRow--last form-row form-row-last">
|
||||||
<label for="password_2"><?php _e( 'Re-enter new password', 'woocommerce' ); ?> <span class="required">*</span></label>
|
<label for="password_2"><?php _e( 'Re-enter new password', 'understrap' ); ?> <span class="required">*</span></label>
|
||||||
<input type="password" class="woocommerce-Input woocommerce-Input--text input-text form-control" name="password_2" id="password_2" />
|
<input type="password" class="woocommerce-Input woocommerce-Input--text input-text form-control" name="password_2" id="password_2" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ wc_print_notices(); ?>
|
||||||
|
|
||||||
<p class="woocommerce-FormRow form-row">
|
<p class="woocommerce-FormRow form-row">
|
||||||
<input type="hidden" name="wc_reset_password" value="true" />
|
<input type="hidden" name="wc_reset_password" value="true" />
|
||||||
<input type="submit" class="btn btn-outline-primary" value="<?php esc_attr_e( 'Save', 'woocommerce' ); ?>" />
|
<input type="submit" class="btn btn-outline-primary" value="<?php esc_attr_e( 'Save', 'understrap' ); ?>" />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<?php wp_nonce_field( 'reset_password' ); ?>
|
<?php wp_nonce_field( 'reset_password' ); ?>
|
||||||
|
|
|
@ -10,10 +10,10 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$my_orders_columns = apply_filters( 'woocommerce_my_account_my_orders_columns', array(
|
$my_orders_columns = apply_filters( 'woocommerce_my_account_my_orders_columns', array(
|
||||||
'order-number' => __( 'Order', 'woocommerce' ),
|
'order-number' => __( 'Order', 'understrap' ),
|
||||||
'order-date' => __( 'Date', 'woocommerce' ),
|
'order-date' => __( 'Date', 'understrap' ),
|
||||||
'order-status' => __( 'Status', 'woocommerce' ),
|
'order-status' => __( 'Status', 'understrap' ),
|
||||||
'order-total' => __( 'Total', 'woocommerce' ),
|
'order-total' => __( 'Total', 'understrap' ),
|
||||||
'order-actions' => ' ',
|
'order-actions' => ' ',
|
||||||
) );
|
) );
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@ $customer_orders = get_posts( apply_filters( 'woocommerce_my_account_my_orders_q
|
||||||
|
|
||||||
if ( $customer_orders ) : ?>
|
if ( $customer_orders ) : ?>
|
||||||
|
|
||||||
<h2><?php echo apply_filters( 'woocommerce_my_account_my_orders_title', __( 'Recent Orders', 'woocommerce' ) ); ?></h2>
|
<h2><?php echo apply_filters( 'woocommerce_my_account_my_orders_title', __( 'Recent Orders', 'understrap' ) ); ?></h2>
|
||||||
|
|
||||||
<table class="shop_table shop_table_responsive my_account_orders table-hover table-striped">
|
<table class="shop_table shop_table_responsive my_account_orders table-hover table-striped">
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ if ( $customer_orders ) : ?>
|
||||||
|
|
||||||
<?php elseif ( 'order-number' === $column_id ) : ?>
|
<?php elseif ( 'order-number' === $column_id ) : ?>
|
||||||
<a href="<?php echo esc_url( $order->get_view_order_url() ); ?>">
|
<a href="<?php echo esc_url( $order->get_view_order_url() ); ?>">
|
||||||
<?php echo _x( '#', 'hash before order number', 'woocommerce' ) . $order->get_order_number(); ?>
|
<?php echo _x( '#', 'hash before order number', 'understrap' ) . $order->get_order_number(); ?>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<?php elseif ( 'order-date' === $column_id ) : ?>
|
<?php elseif ( 'order-date' === $column_id ) : ?>
|
||||||
|
@ -62,22 +62,22 @@ if ( $customer_orders ) : ?>
|
||||||
<?php echo wc_get_order_status_name( $order->get_status() ); ?>
|
<?php echo wc_get_order_status_name( $order->get_status() ); ?>
|
||||||
|
|
||||||
<?php elseif ( 'order-total' === $column_id ) : ?>
|
<?php elseif ( 'order-total' === $column_id ) : ?>
|
||||||
<?php echo sprintf( _n( '%s for %s item', '%s for %s items', $item_count, 'woocommerce' ), $order->get_formatted_order_total(), $item_count ); ?>
|
<?php echo sprintf( _n( '%s for %s item', '%s for %s items', $item_count, 'understrap' ), $order->get_formatted_order_total(), $item_count ); ?>
|
||||||
|
|
||||||
<?php elseif ( 'order-actions' === $column_id ) : ?>
|
<?php elseif ( 'order-actions' === $column_id ) : ?>
|
||||||
<?php
|
<?php
|
||||||
$actions = array(
|
$actions = array(
|
||||||
'pay' => array(
|
'pay' => array(
|
||||||
'url' => $order->get_checkout_payment_url(),
|
'url' => $order->get_checkout_payment_url(),
|
||||||
'name' => __( 'Pay', 'woocommerce' )
|
'name' => __( 'Pay', 'understrap' )
|
||||||
),
|
),
|
||||||
'view' => array(
|
'view' => array(
|
||||||
'url' => $order->get_view_order_url(),
|
'url' => $order->get_view_order_url(),
|
||||||
'name' => __( 'View', 'woocommerce' )
|
'name' => __( 'View', 'understrap' )
|
||||||
),
|
),
|
||||||
'cancel' => array(
|
'cancel' => array(
|
||||||
'url' => $order->get_cancel_order_url( wc_get_page_permalink( 'myaccount' ) ),
|
'url' => $order->get_cancel_order_url( wc_get_page_permalink( 'myaccount' ) ),
|
||||||
'name' => __( 'Cancel', 'woocommerce' )
|
'name' => __( 'Cancel', 'understrap' )
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,7 @@ do_action( 'woocommerce_before_account_orders', $has_orders ); ?>
|
||||||
|
|
||||||
<?php elseif ( 'order-number' === $column_id ) : ?>
|
<?php elseif ( 'order-number' === $column_id ) : ?>
|
||||||
<a href="<?php echo esc_url( $order->get_view_order_url() ); ?>">
|
<a href="<?php echo esc_url( $order->get_view_order_url() ); ?>">
|
||||||
<?php echo _x( '#', 'hash before order number', 'woocommerce' ) . $order->get_order_number(); ?>
|
<?php echo _x( '#', 'hash before order number', 'understrap' ) . $order->get_order_number(); ?>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<?php elseif ( 'order-date' === $column_id ) : ?>
|
<?php elseif ( 'order-date' === $column_id ) : ?>
|
||||||
|
@ -58,22 +58,22 @@ do_action( 'woocommerce_before_account_orders', $has_orders ); ?>
|
||||||
<?php echo wc_get_order_status_name( $order->get_status() ); ?>
|
<?php echo wc_get_order_status_name( $order->get_status() ); ?>
|
||||||
|
|
||||||
<?php elseif ( 'order-total' === $column_id ) : ?>
|
<?php elseif ( 'order-total' === $column_id ) : ?>
|
||||||
<?php echo sprintf( _n( '%s for %s item', '%s for %s items', $item_count, 'woocommerce' ), $order->get_formatted_order_total(), $item_count ); ?>
|
<?php echo sprintf( _n( '%s for %s item', '%s for %s items', $item_count, 'understrap' ), $order->get_formatted_order_total(), $item_count ); ?>
|
||||||
|
|
||||||
<?php elseif ( 'order-actions' === $column_id ) : ?>
|
<?php elseif ( 'order-actions' === $column_id ) : ?>
|
||||||
<?php
|
<?php
|
||||||
$actions = array(
|
$actions = array(
|
||||||
'pay' => array(
|
'pay' => array(
|
||||||
'url' => $order->get_checkout_payment_url(),
|
'url' => $order->get_checkout_payment_url(),
|
||||||
'name' => __( 'Pay', 'woocommerce' )
|
'name' => __( 'Pay', 'understrap' )
|
||||||
),
|
),
|
||||||
'view' => array(
|
'view' => array(
|
||||||
'url' => $order->get_view_order_url(),
|
'url' => $order->get_view_order_url(),
|
||||||
'name' => __( 'View', 'woocommerce' )
|
'name' => __( 'View', 'understrap' )
|
||||||
),
|
),
|
||||||
'cancel' => array(
|
'cancel' => array(
|
||||||
'url' => $order->get_cancel_order_url( wc_get_page_permalink( 'myaccount' ) ),
|
'url' => $order->get_cancel_order_url( wc_get_page_permalink( 'myaccount' ) ),
|
||||||
'name' => __( 'Cancel', 'woocommerce' )
|
'name' => __( 'Cancel', 'understrap' )
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -104,11 +104,11 @@ do_action( 'woocommerce_before_account_orders', $has_orders ); ?>
|
||||||
<?php if ( 1 < $customer_orders->max_num_pages ) : ?>
|
<?php if ( 1 < $customer_orders->max_num_pages ) : ?>
|
||||||
<div class="woocommerce-Pagination">
|
<div class="woocommerce-Pagination">
|
||||||
<?php if ( 1 !== $current_page ) : ?>
|
<?php if ( 1 !== $current_page ) : ?>
|
||||||
<a class="woocommerce-Button woocommerce-Button--previous button" href="<?php echo esc_url( wc_get_endpoint_url( 'orders', $current_page - 1 ) ); ?>"><?php _e( 'Previous', 'woocommerce' ); ?></a>
|
<a class="woocommerce-Button woocommerce-Button--previous button" href="<?php echo esc_url( wc_get_endpoint_url( 'orders', $current_page - 1 ) ); ?>"><?php _e( 'Previous', 'understrap' ); ?></a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if ( $current_page !== intval( $customer_orders->max_num_pages ) ) : ?>
|
<?php if ( $current_page !== intval( $customer_orders->max_num_pages ) ) : ?>
|
||||||
<a class="woocommerce-Button woocommerce-Button--next btn btn-outline-primary" href="<?php echo esc_url( wc_get_endpoint_url( 'orders', $current_page + 1 ) ); ?>"><?php _e( 'Next', 'woocommerce' ); ?></a>
|
<a class="woocommerce-Button woocommerce-Button--next btn btn-outline-primary" href="<?php echo esc_url( wc_get_endpoint_url( 'orders', $current_page + 1 ) ); ?>"><?php _e( 'Next', 'understrap' ); ?></a>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
@ -116,9 +116,9 @@ do_action( 'woocommerce_before_account_orders', $has_orders ); ?>
|
||||||
<?php else : ?>
|
<?php else : ?>
|
||||||
<div class="woocommerce-Message woocommerce-Message--info woocommerce-info">
|
<div class="woocommerce-Message woocommerce-Message--info woocommerce-info">
|
||||||
<a class="btn btn-outline-primary" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>">
|
<a class="btn btn-outline-primary" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>">
|
||||||
<?php _e( 'Go Shop', 'woocommerce' ) ?>
|
<?php _e( 'Go Shop', 'understrap' ) ?>
|
||||||
</a>
|
</a>
|
||||||
<?php _e( 'No order has been made yet.', 'woocommerce' ); ?>
|
<?php _e( 'No order has been made yet.', 'understrap' ); ?>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
|
|
@ -33,13 +33,13 @@ $average = $product->get_average_rating();
|
||||||
if ( $rating_count > 0 ) : ?>
|
if ( $rating_count > 0 ) : ?>
|
||||||
|
|
||||||
<div class="woocommerce-product-rating" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
|
<div class="woocommerce-product-rating" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
|
||||||
<div class="star-rating text-primary" title="<?php printf( __( 'Rated %s out of 5', 'woocommerce' ), $average ); ?>">
|
<div class="star-rating text-primary" title="<?php printf( __( 'Rated %s out of 5', 'understrap' ), $average ); ?>">
|
||||||
<span style="width:<?php echo ( ( $average / 5 ) * 100 ); ?>%">
|
<span style="width:<?php echo ( ( $average / 5 ) * 100 ); ?>%">
|
||||||
<strong itemprop="ratingValue" class="rating"><?php echo esc_html( $average ); ?></strong> <?php printf( __( 'out of %s5%s', 'woocommerce' ), '<span itemprop="bestRating">', '</span>' ); ?>
|
<strong itemprop="ratingValue" class="rating"><?php echo esc_html( $average ); ?></strong> <?php printf( __( 'out of %s5%s', 'understrap' ), '<span itemprop="bestRating">', '</span>' ); ?>
|
||||||
<?php printf( _n( 'based on %s customer rating', 'based on %s customer ratings', $rating_count, 'woocommerce' ), '<span itemprop="ratingCount" class="rating">' . $rating_count . '</span>' ); ?>
|
<?php printf( _n( 'based on %s customer rating', 'based on %s customer ratings', $rating_count, 'understrap' ), '<span itemprop="ratingCount" class="rating">' . $rating_count . '</span>' ); ?>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<?php if ( comments_open() ) : ?><a href="#reviews" class="woocommerce-review-link" rel="nofollow">(<?php printf( _n( '%s customer review', '%s customer reviews', $review_count, 'woocommerce' ), '<span itemprop="reviewCount" class="count">' . $review_count . '</span>' ); ?>)</a><?php endif ?>
|
<?php if ( comments_open() ) : ?><a href="#reviews" class="woocommerce-review-link" rel="nofollow">(<?php printf( _n( '%s customer review', '%s customer reviews', $review_count, 'understrap' ), '<span itemprop="reviewCount" class="count">' . $review_count . '</span>' ); ?>)</a><?php endif ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
@ -25,8 +25,8 @@ $rating = intval( get_comment_meta( $comment->comment_ID, 'rating', true ) );
|
||||||
|
|
||||||
if ( $rating && get_option( 'woocommerce_enable_review_rating' ) === 'yes' ) { ?>
|
if ( $rating && get_option( 'woocommerce_enable_review_rating' ) === 'yes' ) { ?>
|
||||||
|
|
||||||
<div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating" class="star-rating text-primary" title="<?php echo sprintf( esc_attr__( 'Rated %d out of 5', 'woocommerce' ), esc_attr( $rating ) ) ?>">
|
<div itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating" class="star-rating text-primary" title="<?php echo sprintf( esc_attr__( 'Rated %d out of 5', 'understrap' ), esc_attr( $rating ) ) ?>">
|
||||||
<span style="width:<?php echo ( esc_attr( $rating ) / 5 ) * 100; ?>%"><strong itemprop="ratingValue"><?php echo esc_attr( $rating ); ?></strong> <?php esc_attr_e( 'out of 5', 'woocommerce' ); ?></span>
|
<span style="width:<?php echo ( esc_attr( $rating ) / 5 ) * 100; ?>%"><strong itemprop="ratingValue"><?php echo esc_attr( $rating ); ?></strong> <?php esc_attr_e( 'out of 5', 'understrap' ); ?></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php }
|
<?php }
|
||||||
|
|
Reference in New Issue