@@ -23,11 +23,14 @@ |
||
| 23 | 23 | |
| 24 | 24 | <?php if ( ! $load_address ) : ?> |
| 25 | 25 | <?php wc_get_template( 'myaccount/my-address.php' ); ?> |
| 26 | -<?php else : ?> |
|
| 26 | +<?php else { |
|
| 27 | + : ?> |
|
| 27 | 28 | |
| 28 | 29 | <form method="post"> |
| 29 | 30 | |
| 30 | - <h3><?php echo apply_filters( 'woocommerce_my_account_edit_address_title', $page_title, $load_address ); ?></h3><?php // @codingStandardsIgnoreLine ?> |
|
| 31 | + <h3><?php echo apply_filters( 'woocommerce_my_account_edit_address_title', $page_title, $load_address ); |
|
| 32 | +} |
|
| 33 | +?></h3><?php // @codingStandardsIgnoreLine ?> |
|
| 31 | 34 | |
| 32 | 35 | <div class="woocommerce-address-fields"> |
| 33 | 36 | <?php do_action( "woocommerce_before_edit_address_form_{$load_address}" ); ?> |
@@ -17,7 +17,8 @@ |
||
| 17 | 17 | |
| 18 | 18 | defined( 'ABSPATH' ) || exit; |
| 19 | 19 | |
| 20 | -if ( ! wc_coupons_enabled() ) { // @codingStandardsIgnoreLine. |
|
| 20 | +if ( ! wc_coupons_enabled() ) { |
|
| 21 | +// @codingStandardsIgnoreLine. |
|
| 21 | 22 | return; |
| 22 | 23 | } |
| 23 | 24 | |
@@ -182,7 +182,8 @@ |
||
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | $atts['target'] = ! empty( $item->target ) ? $item->target : ''; |
| 185 | - if ( '_blank' === $item->target && empty( $item->xfn ) ) { // Thanks to LukaszJaro, see https://github.com/understrap/understrap/issues/973 |
|
| 185 | + if ( '_blank' === $item->target && empty( $item->xfn ) ) { |
|
| 186 | +// Thanks to LukaszJaro, see https://github.com/understrap/understrap/issues/973 |
|
| 186 | 187 | $atts['rel'] = 'noopener noreferrer'; |
| 187 | 188 | } else { |
| 188 | 189 | $atts['rel'] = $item->xfn; |
@@ -33,9 +33,12 @@ |
||
| 33 | 33 | <?php |
| 34 | 34 | get_search_form(); |
| 35 | 35 | |
| 36 | - else : ?> |
|
| 36 | + else { |
|
| 37 | + : ?> |
|
| 37 | 38 | |
| 38 | - <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'spurs' ); ?></p> |
|
| 39 | + <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'spurs' ); |
|
| 40 | + } |
|
| 41 | + ?></p> |
|
| 39 | 42 | <?php |
| 40 | 43 | get_search_form(); |
| 41 | 44 | endif; ?> |
@@ -43,12 +43,17 @@ |
||
| 43 | 43 | <a rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" |
| 44 | 44 | title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"><?php bloginfo( 'name' ); ?></a> |
| 45 | 45 | </h1> |
| 46 | - <?php else : ?> |
|
| 47 | - <a class="navbar-brand" rel="home" href="<?php echo esc_url( home_url( '/' ) ); ?>" |
|
| 46 | + <?php else { |
|
| 47 | + : ?> |
|
| 48 | + <a class="navbar-brand" rel="home" href="<?php echo esc_url( home_url( '/' ) ); |
|
| 49 | +} |
|
| 50 | +?>" |
|
| 48 | 51 | title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"><?php bloginfo( 'name' ); ?></a> |
| 49 | 52 | <?php endif; |
| 50 | - else : |
|
| 53 | + else { |
|
| 54 | + : |
|
| 51 | 55 | the_custom_logo(); |
| 56 | + } |
|
| 52 | 57 | endif; // end custom logo ?> |
| 53 | 58 | |
| 54 | 59 | <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" |
@@ -70,7 +70,8 @@ discard block |
||
| 70 | 70 | $actions = wc_get_account_orders_actions( $order ); |
| 71 | 71 | |
| 72 | 72 | if ( ! empty( $actions ) ) { |
| 73 | - foreach ( $actions as $key => $action ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited |
|
| 73 | + foreach ( $actions as $key => $action ) { |
|
| 74 | +// phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited |
|
| 74 | 75 | echo '<a href="' . esc_url( $action['url'] ) . '" class="woocommerce-button button ' . sanitize_html_class( $key ) . '">' . esc_html( $action['name'] ) . '</a>'; |
| 75 | 76 | } |
| 76 | 77 | } |
@@ -104,11 +105,14 @@ discard block |
||
| 104 | 105 | endif; ?> |
| 105 | 106 | |
| 106 | 107 | <?php |
| 107 | - else : ?> |
|
| 108 | + else { |
|
| 109 | + : ?> |
|
| 108 | 110 | <div |
| 109 | 111 | class="woocommerce-message woocommerce-message--info woocommerce-Message woocommerce-Message--info woocommerce-info"> |
| 110 | 112 | <a class="woocommerce-Button button" |
| 111 | - href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); ?>"> |
|
| 113 | + href="<?php echo esc_url( apply_filters( 'woocommerce_return_to_shop_redirect', wc_get_page_permalink( 'shop' ) ) ); |
|
| 114 | + } |
|
| 115 | + ?>"> |
|
| 112 | 116 | <?php esc_html_e( 'Go to the shop', 'spurs' ); ?> |
| 113 | 117 | </a> |
| 114 | 118 | <?php esc_html_e( 'No order has been made yet.', 'spurs' ); ?> |
@@ -54,8 +54,11 @@ discard block |
||
| 54 | 54 | ?> |
| 55 | 55 | <?php if ( empty( $product_permalink ) ) : ?> |
| 56 | 56 | <?php echo $thumbnail . $product_name; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 57 | - <?php else : ?> |
|
| 58 | - <a href="<?php echo esc_url( $product_permalink ); ?>"> |
|
| 57 | + <?php else { |
|
| 58 | + : ?> |
|
| 59 | + <a href="<?php echo esc_url( $product_permalink ); |
|
| 60 | +} |
|
| 61 | +?>"> |
|
| 59 | 62 | <?php echo $thumbnail . $product_name; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> |
| 60 | 63 | </a> |
| 61 | 64 | <?php endif; ?> |
@@ -87,9 +90,12 @@ discard block |
||
| 87 | 90 | |
| 88 | 91 | <?php do_action( 'woocommerce_widget_shopping_cart_after_buttons' ); ?> |
| 89 | 92 | |
| 90 | -<?php else : ?> |
|
| 93 | +<?php else { |
|
| 94 | + : ?> |
|
| 91 | 95 | |
| 92 | - <p class="woocommerce-mini-cart__empty-message"><?php esc_html_e( 'No products in the cart.', 'spurs' ); ?></p> |
|
| 96 | + <p class="woocommerce-mini-cart__empty-message"><?php esc_html_e( 'No products in the cart.', 'spurs' ); |
|
| 97 | +} |
|
| 98 | +?></p> |
|
| 93 | 99 | |
| 94 | 100 | <?php endif; ?> |
| 95 | 101 | |
@@ -24,6 +24,8 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | get_template_part( 'templates/loop/content', 'search' ); |
| 26 | 26 | endwhile; |
| 27 | -else : |
|
| 27 | +else { |
|
| 28 | + : |
|
| 28 | 29 | get_template_part( 'templates/loop/content', 'none' ); |
| 30 | +} |
|
| 29 | 31 | endif; |
@@ -63,8 +63,10 @@ |
||
| 63 | 63 | ?> |
| 64 | 64 | </li> |
| 65 | 65 | <?php endwhile; |
| 66 | - else : |
|
| 66 | + else { |
|
| 67 | + : |
|
| 67 | 68 | get_template_part( 'templates/loop/content', 'none' ); |
| 69 | + } |
|
| 68 | 70 | endif; ?> |
| 69 | 71 | <!-- End Loop --> |
| 70 | 72 | </ul> |