notice.php
41 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Free shipping notice. |
| 4 | * This template can be overridden by copying it to yourtheme/flexible-shipping/free-shipping/notice.php |
| 5 | * |
| 6 | * @author Octolize |
| 7 | * @var string $notice_text |
| 8 | * @var string $zero_value |
| 9 | * @var bool $show_progress_bar |
| 10 | * @var float $percentage |
| 11 | * @var string $free_shipping_threshold |
| 12 | * @var string $button_url |
| 13 | * @var string $button_label |
| 14 | */ |
| 15 | |
| 16 | ?> |
| 17 | <div class="fs-free-shipping-notice-and-button-wrapper"> |
| 18 | <div class="fs-free-shipping-notice-text-and-progress-bar-wrapper"> |
| 19 | <div class="fs-free-shipping-notice-contents"> |
| 20 | <div class="fs-free-shipping-notice-text"> |
| 21 | <?php echo wp_kses_post( $notice_text ); ?> |
| 22 | </div> |
| 23 | <?php if ( $show_progress_bar ) : ?> |
| 24 | <div class="fs-free-shipping-notice-progress-bar-wrapper"> |
| 25 | <div class="fs-free-shipping-notice-opening-value"><?php echo wp_kses_post( $zero_value ); ?></div> |
| 26 | <div class="fs-free-shipping-notice-progress-bar"><span |
| 27 | style="width:<?php echo esc_attr( $percentage ); ?>%;"></span></div> |
| 28 | <div |
| 29 | class="fs-free-shipping-notice-closing-value"><?php echo wp_kses_post( $free_shipping_threshold ); ?></div> |
| 30 | </div> |
| 31 | <?php endif; ?> |
| 32 | </div> |
| 33 | </div> |
| 34 | <?php if ( ! empty( $button_label ) && ! empty( $button_url ) ) : ?> |
| 35 | <div class="fs-free-shipping-notice-continue-shopping-button-wrapper"> |
| 36 | <a class="button flexible-shipping-free-shipping-button" |
| 37 | href="<?php echo esc_url( $button_url ); ?>"><?php echo esc_html( $button_label ); ?></a> |
| 38 | </div> |
| 39 | <?php endif; ?> |
| 40 | </div> |
| 41 |