@@ -95,9 +95,12 @@ |
||
| 95 | 95 | <input type="password" class="woocommerce-Input woocommerce-Input--text input-text form-control" name="password" id="reg_password" autocomplete="new-password"/> |
| 96 | 96 | </p> |
| 97 | 97 | |
| 98 | - <?php else : ?> |
|
| 98 | + <?php else { |
|
| 99 | + : ?> |
|
| 99 | 100 | |
| 100 | - <p><?php esc_html_e( 'A password will be sent to your email address.', 'spurs' ); ?></p> |
|
| 101 | + <p><?php esc_html_e( 'A password will be sent to your email address.', 'spurs' ); |
|
| 102 | +} |
|
| 103 | +?></p> |
|
| 101 | 104 | |
| 102 | 105 | <?php endif; ?> |
| 103 | 106 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | * called content-___.php (where ___ is the Post Format name) and that will be used instead. |
| 35 | 35 | */ |
| 36 | 36 | get_template_part( 'templates/loop/content', get_post_format() ); |
| 37 | - endwhile; ?> |
|
| 37 | + endwhile; ?> |
|
| 38 | 38 | </div> |
| 39 | 39 | </div> |
| 40 | 40 | </div> |
@@ -10,8 +10,8 @@ |
||
| 10 | 10 | // Exit if accessed directly. |
| 11 | 11 | defined( 'ABSPATH' ) || exit; |
| 12 | 12 | |
| 13 | -if (!is_front_page() && function_exists('yoast_breadcrumb')) { |
|
| 14 | - yoast_breadcrumb('<div id="breadcrumbs">', '</div>'); |
|
| 13 | +if ( ! is_front_page() && function_exists( 'yoast_breadcrumb' ) ) { |
|
| 14 | + yoast_breadcrumb( '<div id="breadcrumbs">', '</div>' ); |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | if ( have_posts() ) : ?> |
@@ -39,6 +39,8 @@ |
||
| 39 | 39 | </div> |
| 40 | 40 | </div> |
| 41 | 41 | <?php |
| 42 | -else : |
|
| 42 | +else { |
|
| 43 | + : |
|
| 43 | 44 | get_template_part( 'templates/loop/content', 'none' ); |
| 45 | +} |
|
| 44 | 46 | endif; |
@@ -38,8 +38,10 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | get_template_part( 'templates/loop/content', get_post_format() ); |
| 40 | 40 | endwhile; |
| 41 | - else : |
|
| 41 | + else { |
|
| 42 | + : |
|
| 42 | 43 | get_template_part( 'templates/loop/content', 'none' ); |
| 44 | + } |
|
| 43 | 45 | endif; |
| 44 | 46 | ?> |
| 45 | 47 | </div> |
@@ -23,15 +23,15 @@ |
||
| 23 | 23 | <?php spurs_posted_on(); ?> |
| 24 | 24 | <div class="categories pb-3"> |
| 25 | 25 | <?php |
| 26 | - $category = spurs_get_primary_term( 'category' ); |
|
| 27 | - if ( $category instanceof WP_Term ) { |
|
| 28 | - printf( |
|
| 29 | - '<a href="%1$s"><span class="category">%2$s</span></a>', |
|
| 30 | - get_term_link($category), |
|
| 31 | - esc_html( $category->name ) |
|
| 32 | - ); |
|
| 33 | - } |
|
| 34 | - ?> |
|
| 26 | + $category = spurs_get_primary_term( 'category' ); |
|
| 27 | + if ( $category instanceof WP_Term ) { |
|
| 28 | + printf( |
|
| 29 | + '<a href="%1$s"><span class="category">%2$s</span></a>', |
|
| 30 | + get_term_link($category), |
|
| 31 | + esc_html( $category->name ) |
|
| 32 | + ); |
|
| 33 | + } |
|
| 34 | + ?> |
|
| 35 | 35 | </div> |
| 36 | 36 | </div> |
| 37 | 37 | <?php endif; ?> |
@@ -11,7 +11,7 @@ discard block |
||
| 11 | 11 | global $post; |
| 12 | 12 | ?> |
| 13 | 13 | |
| 14 | -<article <?php post_class('card'); ?> id="post-<?php the_ID(); ?>"> |
|
| 14 | +<article <?php post_class( 'card' ); ?> id="post-<?php the_ID(); ?>"> |
|
| 15 | 15 | <div class="card-img-top img-wrapper"> |
| 16 | 16 | <a class="no-uppercase no-underline" href="<?php echo get_the_permalink(); ?>"> |
| 17 | 17 | <span class="bg-image" <?php bg( get_the_post_thumbnail_url(), false, true, 'height: 270px' ); ?>></span> |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | if ( $category instanceof WP_Term ) { |
| 28 | 28 | printf( |
| 29 | 29 | '<a href="%1$s"><span class="category">%2$s</span></a>', |
| 30 | - get_term_link($category), |
|
| 30 | + get_term_link( $category ), |
|
| 31 | 31 | esc_html( $category->name ) |
| 32 | 32 | ); |
| 33 | 33 | } |