@@ -23,9 +23,12 @@ |
||
| 23 | 23 | <p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'lsx' ); ?></p> |
| 24 | 24 | <?php get_search_form(); ?> |
| 25 | 25 | |
| 26 | - <?php else : ?> |
|
| 26 | + <?php else { |
|
| 27 | + : ?> |
|
| 27 | 28 | |
| 28 | - <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); ?></p> |
|
| 29 | + <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lsx' ); |
|
| 30 | +} |
|
| 31 | +?></p> |
|
| 29 | 32 | <?php get_search_form(); ?> |
| 30 | 33 | |
| 31 | 34 | <?php endif; ?> |
@@ -70,14 +70,20 @@ discard block |
||
| 70 | 70 | <h1 class="entry-title"> |
| 71 | 71 | <?php if ( has_post_thumbnail() ) : ?> |
| 72 | 72 | <a href="<?php echo esc_url( $archive_link ); ?>" class="format-link has-thumb fa fa-<?php echo esc_attr( $format ); ?>"></a> |
| 73 | - <?php else : ?> |
|
| 74 | - <a href="<?php echo esc_url( $archive_link ); ?>" class="format-link fa fa-<?php echo esc_attr( $format ); ?>"></a> |
|
| 73 | + <?php else { |
|
| 74 | + : ?> |
|
| 75 | + <a href="<?php echo esc_url( $archive_link ); |
|
| 76 | +} |
|
| 77 | +?>" class="format-link fa fa-<?php echo esc_attr( $format ); ?>"></a> |
|
| 75 | 78 | <?php endif; ?> |
| 76 | 79 | |
| 77 | 80 | <?php if ( has_post_format( array( 'link' ) ) ) : ?> |
| 78 | 81 | <a href="<?php echo esc_url( lsx_get_my_url() ); ?>" rel="bookmark"><?php the_title(); ?> <span class="fa fa-external-link"></span></a> |
| 79 | - <?php else : ?> |
|
| 80 | - <a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a> |
|
| 82 | + <?php else { |
|
| 83 | + : ?> |
|
| 84 | + <a href="<?php the_permalink(); |
|
| 85 | +} |
|
| 86 | +?>" rel="bookmark"><?php the_title(); ?></a> |
|
| 81 | 87 | <?php endif; ?> |
| 82 | 88 | |
| 83 | 89 | <?php if ( is_sticky() ) : ?> |
@@ -103,11 +109,13 @@ discard block |
||
| 103 | 109 | <?php the_content(); ?> |
| 104 | 110 | </div><!-- .entry-content --> |
| 105 | 111 | |
| 106 | - <?php else : ?> |
|
| 112 | + <?php else { |
|
| 113 | + : ?> |
|
| 107 | 114 | |
| 108 | 115 | <div class="entry-content"> |
| 109 | 116 | <?php |
| 110 | 117 | the_content(); |
| 118 | +} |
|
| 111 | 119 | |
| 112 | 120 | wp_link_pages( array( |
| 113 | 121 | 'before' => '<div class="lsx-postnav-wrapper"><div class="lsx-postnav">', |
@@ -20,7 +20,10 @@ |
||
| 20 | 20 | <div class="col-sm-12"> |
| 21 | 21 | <?php lsx_footer_top(); ?> |
| 22 | 22 | |
| 23 | - <p class="credit <?php if ( has_nav_menu( 'social' ) || has_nav_menu( 'footer' ) ) echo 'credit-float'; ?>"> |
|
| 23 | + <p class="credit <?php if ( has_nav_menu( 'social' ) || has_nav_menu( 'footer' ) ) { |
|
| 24 | + echo 'credit-float'; |
|
| 25 | +} |
|
| 26 | +?>"> |
|
| 24 | 27 | <?php |
| 25 | 28 | printf( |
| 26 | 29 | /* Translators: 1: current year, 2: blog name */ |
@@ -31,9 +31,12 @@ |
||
| 31 | 31 | |
| 32 | 32 | <?php lsx_paging_nav(); ?> |
| 33 | 33 | |
| 34 | - <?php else : ?> |
|
| 34 | + <?php else { |
|
| 35 | + : ?> |
|
| 35 | 36 | |
| 36 | - <?php get_template_part( 'partials/content', 'none' ); ?> |
|
| 37 | + <?php get_template_part( 'partials/content', 'none' ); |
|
| 38 | +} |
|
| 39 | +?> |
|
| 37 | 40 | |
| 38 | 41 | <?php endif; ?> |
| 39 | 42 | |
@@ -93,14 +93,17 @@ |
||
| 93 | 93 | |
| 94 | 94 | $class_names = join( ' ', $classes ); |
| 95 | 95 | |
| 96 | - if ( $args->has_children ) |
|
| 97 | - $class_names .= ' dropdown'; |
|
| 96 | + if ( $args->has_children ) { |
|
| 97 | + $class_names .= ' dropdown'; |
|
| 98 | + } |
|
| 98 | 99 | |
| 99 | - if ( in_array( 'current-menu-item', $classes ) ) |
|
| 100 | - $class_names .= ' active'; |
|
| 100 | + if ( in_array( 'current-menu-item', $classes ) ) { |
|
| 101 | + $class_names .= ' active'; |
|
| 102 | + } |
|
| 101 | 103 | |
| 102 | - if ( in_array( 'current-menu-parent', $classes ) ) |
|
| 103 | - $class_names .= ' active'; |
|
| 104 | + if ( in_array( 'current-menu-parent', $classes ) ) { |
|
| 105 | + $class_names .= ' active'; |
|
| 106 | + } |
|
| 104 | 107 | |
| 105 | 108 | //Check if this is ment to be a "social" type menu |
| 106 | 109 | $class_names = $class_names ? ' class="' . esc_attr( $class_names ) . '"' : ''; |
@@ -31,9 +31,12 @@ |
||
| 31 | 31 | |
| 32 | 32 | <?php lsx_paging_nav(); ?> |
| 33 | 33 | |
| 34 | - <?php else : ?> |
|
| 34 | + <?php else { |
|
| 35 | + : ?> |
|
| 35 | 36 | |
| 36 | - <?php get_template_part( 'partials/content', 'none' ); ?> |
|
| 37 | + <?php get_template_part( 'partials/content', 'none' ); |
|
| 38 | +} |
|
| 39 | +?> |
|
| 37 | 40 | |
| 38 | 41 | <?php endif; ?> |
| 39 | 42 | |
@@ -72,8 +72,12 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | <dl class="customer_details"> |
| 74 | 74 | <?php |
| 75 | - if ( $order->billing_email ) echo '<dt>' . esc_html__( 'Email:', 'lsx' ) . '</dt><dd>' . $order->billing_email . '</dd>'; |
|
| 76 | - if ( $order->billing_phone ) echo '<dt>' . esc_html__( 'Telephone:', 'lsx' ) . '</dt><dd>' . $order->billing_phone . '</dd>'; |
|
| 75 | + if ( $order->billing_email ) { |
|
| 76 | + echo '<dt>' . esc_html__( 'Email:', 'lsx' ) . '</dt><dd>' . $order->billing_email . '</dd>'; |
|
| 77 | + } |
|
| 78 | + if ( $order->billing_phone ) { |
|
| 79 | + echo '<dt>' . esc_html__( 'Telephone:', 'lsx' ) . '</dt><dd>' . $order->billing_phone . '</dd>'; |
|
| 80 | + } |
|
| 77 | 81 | |
| 78 | 82 | // Additional customer details hook |
| 79 | 83 | do_action( 'woocommerce_order_details_after_customer_details', $order ); |
@@ -230,9 +234,12 @@ discard block |
||
| 230 | 234 | |
| 231 | 235 | <?php // @codingStandardsIgnoreEnd ?> |
| 232 | 236 | |
| 233 | - <?php else : ?> |
|
| 237 | + <?php else { |
|
| 238 | + : ?> |
|
| 234 | 239 | |
| 235 | - <div class="alert alert-danger"><?php esc_html_e( 'Invalid order.', 'lsx' ); ?></div> |
|
| 240 | + <div class="alert alert-danger"><?php esc_html_e( 'Invalid order.', 'lsx' ); |
|
| 241 | +} |
|
| 242 | +?></div> |
|
| 236 | 243 | |
| 237 | 244 | <?php endif; ?> |
| 238 | 245 | |