| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template variables: |
| 4 |
* |
| 5 |
* @var $controllers array Widgets/Addons Settings |
| 6 |
*/ |
| 7 |
|
| 8 |
// Do not allow directly accessing this file. |
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit( 'This script cannot be accessed directly.' ); |
| 11 |
} |
| 12 |
?> |
| 13 |
<div class="rtsb-shipping-method"> |
| 14 |
|
| 15 |
<table class="rtsb_woocommerce_shipping_methods"> |
| 16 |
<?php |
| 17 |
WC()->cart->calculate_totals(); |
| 18 |
if ( WC()->cart && WC()->cart->needs_shipping() && WC()->cart->show_shipping() ) : |
| 19 |
?> |
| 20 |
<?php do_action( 'woocommerce_review_order_before_shipping' ); ?> |
| 21 |
<?php if ( ! empty( $controllers['show_title'] ) ) { ?> |
| 22 |
<tr> |
| 23 |
<td> |
| 24 |
<?php |
| 25 |
$htmltag = ! empty( $controllers['title_html_tag'] ) ? $controllers['title_html_tag'] : 'h2'; |
| 26 |
$title_text = ! empty( $controllers['title_text'] ) ? $controllers['title_text'] : esc_html__( 'Shipping', 'shopbuilder' ); |
| 27 |
printf( '<%1$s class="shipping-method-title">%2$s</%1$s>', esc_html( $htmltag ), $title_text ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 28 |
?> |
| 29 |
</td> |
| 30 |
</tr> |
| 31 |
<?php } ?> |
| 32 |
<?php wc_cart_totals_shipping_html(); ?> |
| 33 |
|
| 34 |
<?php do_action( 'woocommerce_review_order_after_shipping' ); ?> |
| 35 |
|
| 36 |
<?php |
| 37 |
endif; |
| 38 |
?> |
| 39 |
</table> |
| 40 |
|
| 41 |
</div> |
| 42 |
|
| 43 |
|