Merge pull request #22017 from Bradley-D/feature/wpcs-inline-php
WPCS: inline PHP semicolon and spacing
This commit is contained in:
commit
2724fd76cd
|
@ -23,7 +23,7 @@ if ( $cross_sells ) : ?>
|
|||
|
||||
<div class="cross-sells">
|
||||
|
||||
<h2><?php _e( 'You may be interested in…', 'woocommerce' ) ?></h2>
|
||||
<h2><?php _e( 'You may be interested in…', 'woocommerce' ); ?></h2>
|
||||
|
||||
<?php woocommerce_product_loop_start(); ?>
|
||||
|
||||
|
|
|
@ -22,6 +22,6 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
}
|
||||
?>
|
||||
|
||||
<a href="<?php echo esc_url( wc_get_checkout_url() );?>" class="checkout-button button alt wc-forward">
|
||||
<a href="<?php echo esc_url( wc_get_checkout_url() ); ?>" class="checkout-button button alt wc-forward">
|
||||
<?php esc_html_e( 'Proceed to checkout', 'woocommerce' ); ?>
|
||||
</a>
|
||||
|
|
|
@ -27,7 +27,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<title><?php echo get_bloginfo( 'name', 'display' ); ?></title>
|
||||
</head>
|
||||
<body <?php echo is_rtl() ? 'rightmargin' : 'leftmargin'; ?>="0" marginwidth="0" topmargin="0" marginheight="0" offset="0">
|
||||
<div id="wrapper" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'?>">
|
||||
<div id="wrapper" dir="<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>">
|
||||
<table border="0" cellpadding="0" cellspacing="0" height="100%" width="100%">
|
||||
<tr>
|
||||
<td align="center" valign="top">
|
||||
|
|
|
@ -45,7 +45,7 @@ if ( is_user_logged_in() ) {
|
|||
<p class="form-row">
|
||||
<?php wp_nonce_field( 'woocommerce-login', 'woocommerce-login-nonce' ); ?>
|
||||
<button type="submit" class="button" name="login" value="<?php esc_attr_e( 'Login', 'woocommerce' ); ?>"><?php esc_html_e( 'Login', 'woocommerce' ); ?></button>
|
||||
<input type="hidden" name="redirect" value="<?php echo esc_url( $redirect ) ?>" />
|
||||
<input type="hidden" name="redirect" value="<?php echo esc_url( $redirect ); ?>" />
|
||||
<label class="woocommerce-form__label woocommerce-form__label-for-checkbox inline">
|
||||
<input class="woocommerce-form__input woocommerce-form__input-checkbox" name="rememberme" type="checkbox" id="rememberme" value="forever" /> <span><?php esc_html_e( 'Remember me', 'woocommerce' ); ?></span>
|
||||
</label>
|
||||
|
|
|
@ -37,7 +37,7 @@ do_action( 'woocommerce_before_account_downloads', $has_downloads ); ?>
|
|||
<?php else : ?>
|
||||
<div class="woocommerce-Message woocommerce-Message--info woocommerce-info">
|
||||
<a class="woocommerce-Button button" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>">
|
||||
<?php esc_html_e( 'Go shop', 'woocommerce' ) ?>
|
||||
<?php esc_html_e( 'Go shop', 'woocommerce' ); ?>
|
||||
</a>
|
||||
<?php esc_html_e( 'No downloads available yet.', 'woocommerce' ); ?>
|
||||
</div>
|
||||
|
|
|
@ -97,7 +97,7 @@ do_action( 'woocommerce_before_account_orders', $has_orders ); ?>
|
|||
<?php else : ?>
|
||||
<div class="woocommerce-message woocommerce-message--info woocommerce-Message woocommerce-Message--info woocommerce-info">
|
||||
<a class="woocommerce-Button button" href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>">
|
||||
<?php _e( 'Go shop', 'woocommerce' ) ?>
|
||||
<?php _e( 'Go shop', 'woocommerce' ); ?>
|
||||
</a>
|
||||
<?php _e( 'No order has been made yet.', 'woocommerce' ); ?>
|
||||
</div>
|
||||
|
|
|
@ -39,7 +39,7 @@ do_action( 'woocommerce_before_account_payment_methods', $has_methods ); ?>
|
|||
</thead>
|
||||
<?php foreach ( $saved_methods as $type => $methods ) : ?>
|
||||
<?php foreach ( $methods as $method ) : ?>
|
||||
<tr class="payment-method<?php echo ! empty( $method['is_default'] ) ? ' default-payment-method' : '' ?>">
|
||||
<tr class="payment-method<?php echo ! empty( $method['is_default'] ) ? ' default-payment-method' : ''; ?>">
|
||||
<?php foreach ( wc_get_account_payment_methods_columns() as $column_id => $column_name ) : ?>
|
||||
<td class="woocommerce-PaymentMethod woocommerce-PaymentMethod--<?php echo esc_attr( $column_id ); ?> payment-method-<?php echo esc_attr( $column_id ); ?>" data-title="<?php echo esc_attr( $column_name ); ?>">
|
||||
<?php
|
||||
|
|
|
@ -24,14 +24,14 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
<table class="shop_attributes">
|
||||
<?php if ( $display_dimensions && $product->has_weight() ) : ?>
|
||||
<tr>
|
||||
<th><?php _e( 'Weight', 'woocommerce' ) ?></th>
|
||||
<th><?php _e( 'Weight', 'woocommerce' ); ?></th>
|
||||
<td class="product_weight"><?php echo esc_html( wc_format_weight( $product->get_weight() ) ); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( $display_dimensions && $product->has_dimensions() ) : ?>
|
||||
<tr>
|
||||
<th><?php _e( 'Dimensions', 'woocommerce' ) ?></th>
|
||||
<th><?php _e( 'Dimensions', 'woocommerce' ); ?></th>
|
||||
<td class="product_dimensions"><?php echo esc_html( wc_format_dimensions( $product->get_dimensions( false ) ) ); ?></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -21,7 +21,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
exit; // Exit if accessed directly
|
||||
}
|
||||
?>
|
||||
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
|
||||
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
|
||||
|
||||
<div id="comment-<?php comment_ID(); ?>" class="comment_container">
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ if ( $upsells ) : ?>
|
|||
|
||||
<section class="up-sells upsells products">
|
||||
|
||||
<h2><?php esc_html_e( 'You may also like…', 'woocommerce' ) ?></h2>
|
||||
<h2><?php esc_html_e( 'You may also like…', 'woocommerce' ); ?></h2>
|
||||
|
||||
<?php woocommerce_product_loop_start(); ?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue