| 1 |
<?php |
| 2 |
/** |
| 3 |
* Flow |
| 4 |
* |
| 5 |
* @package CartFlows |
| 6 |
*/ |
| 7 |
|
| 8 |
// Exit if accessed directly. |
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit; |
| 11 |
} |
| 12 |
?> |
| 13 |
<!DOCTYPE html> |
| 14 |
<html <?php language_attributes(); ?>> |
| 15 |
<head> |
| 16 |
<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>"> |
| 17 |
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> |
| 18 |
<meta name="robots" content="noindex"> |
| 19 |
<title><?php wp_title( '-', true, 'right' ); ?><?php bloginfo( 'name' ); ?></title> |
| 20 |
<link rel="profile" href="http://gmpg.org/xfn/11" /> |
| 21 |
|
| 22 |
<?php wp_head(); ?> |
| 23 |
</head> |
| 24 |
<body <?php body_class(); ?>> |
| 25 |
<div class="wrapper"> |
| 26 |
<header class="header"> |
| 27 |
</header> |
| 28 |
|
| 29 |
<div class="main-container"> |
| 30 |
<div class="checkout-forms"> |
| 31 |
<!-- CHECKOUT SHORTCODE --> |
| 32 |
<?php |
| 33 |
|
| 34 |
$checkout_html = do_shortcode( '[woocommerce_checkout]' ); |
| 35 |
|
| 36 |
if ( |
| 37 |
empty( $checkout_html ) || |
| 38 |
trim( $checkout_html ) == '<div class="woocommerce"></div>' |
| 39 |
) { |
| 40 |
echo esc_html__( 'Your cart is currently empty.', 'cartflows' ); |
| 41 |
} else { |
| 42 |
// Ignoring the escaping rule as we are echoing shortcode. |
| 43 |
echo $checkout_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped |
| 44 |
} |
| 45 |
?> |
| 46 |
<!-- END CHECKOUT SHORTCODE --> |
| 47 |
</div> |
| 48 |
</div> |
| 49 |
|
| 50 |
<footer class="footer"> |
| 51 |
<p><?php esc_html_e( 'Copyright ©', 'cartflows' ); ?> |
| 52 |
<?php |
| 53 |
echo esc_html( gmdate( 'Y' ) ); |
| 54 |
echo ' ' . esc_html( get_bloginfo( 'name' ) ); |
| 55 |
?> |
| 56 |
- <?php esc_html_e( 'All Rights Reserved', 'cartflows' ); ?></p> |
| 57 |
</footer> |
| 58 |
</div> |
| 59 |
|
| 60 |
<div class="wcf-hide"> |
| 61 |
<?php wp_footer(); ?> |
| 62 |
</div> |
| 63 |
</body> |
| 64 |
</html> |
| 65 |
|