Merge pull request #9671 from mitogh/master

Remove PHP and HTML mixing from pure HTML for easier reading
This commit is contained in:
Claudio Sanches 2015-11-21 22:50:28 -02:00
commit 3b5f2710e7
2 changed files with 12 additions and 3 deletions

View File

@ -23,8 +23,14 @@ wc_print_notices();
?>
<p class="cart-empty"><?php _e( 'Your cart is currently empty.', 'woocommerce' ) ?></p>
<p class="cart-empty">
<?php _e( 'Your cart is currently empty.', 'woocommerce' ) ?>
</p>
<?php do_action( 'woocommerce_cart_is_empty' ); ?>
<p class="return-to-shop"><a class="button wc-backward" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>"><?php _e( 'Return To Shop', 'woocommerce' ) ?></a></p>
<p class="return-to-shop">
<a class="button wc-backward" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>">
<?php _e( 'Return To Shop', 'woocommerce' ) ?>
</a>
</p>

View File

@ -20,5 +20,8 @@
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
?>
echo '<a href="' . esc_url( wc_get_checkout_url() ) . '" class="checkout-button button alt wc-forward">' . __( 'Proceed to Checkout', 'woocommerce' ) . '</a>';
<a href="<?php echo esc_url( wc_get_checkout_url() ) ;?>" class="checkout-button button alt wc-forward">
<?php echo __( 'Proceed to Checkout', 'woocommerce' ); ?>
</a>