Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/cartflows   php

Repository URL to install this package:

Version: 1.6.11 

/ checkout / templates / wcf-template.php

<?php
/**
 * Flow
 *
 * @package CartFlows
 */

// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo( 'charset' ); ?>">
	<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
	<meta name="robots" content="noindex">
	<title><?php wp_title( '-', true, 'right' ); ?><?php bloginfo( 'name' ); ?></title>
	<link rel="profile" href="http://gmpg.org/xfn/11" />

	<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
	<div class="wrapper">
		<header class="header">
		</header>

		<div class="main-container">
			<div class="checkout-forms">
				<!-- CHECKOUT SHORTCODE -->
				<?php

					$checkout_html = do_shortcode( '[woocommerce_checkout]' );

				if (
						empty( $checkout_html ) ||
						trim( $checkout_html ) == '<div class="woocommerce"></div>'
					) {
					echo esc_html__( 'Your cart is currently empty.', 'cartflows' );
				} else {
					echo $checkout_html;
				}
				?>
				<!-- END CHECKOUT SHORTCODE -->
			</div>
		</div>

		<footer class="footer">
			<p><?php esc_html_e( 'Copyright &copy;', 'cartflows' ); ?> <?php
			echo gmdate( 'Y' );
			echo ' ' . get_bloginfo( 'name' );
			?>
			- <?php esc_html_e( 'All Rights Reserved', 'cartflows' ); ?></p>
		</footer>
	</div>

	<div class="wcf-hide">
	<?php wp_footer(); ?>
	</div>
</body>
</html>