@@ -7,11 +7,11 @@ |
||
7 | 7 | * @package Lighthouse |
8 | 8 | */ |
9 | 9 | |
10 | -if ( ! is_active_sidebar( 'sidebar-1' ) ) { |
|
10 | +if ( ! is_active_sidebar('sidebar-1')) { |
|
11 | 11 | return; |
12 | 12 | } |
13 | 13 | ?> |
14 | 14 | |
15 | 15 | <aside id="secondary" class="widget-area" role="complementary"> |
16 | - <?php dynamic_sidebar( 'sidebar-1' ); ?> |
|
16 | + <?php dynamic_sidebar('sidebar-1'); ?> |
|
17 | 17 | </aside><!-- #secondary --> |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The sidebar containing the main widget area. |
|
4 | - * |
|
5 | - * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials |
|
6 | - * |
|
7 | - * @package Lighthouse |
|
8 | - */ |
|
3 | + * The sidebar containing the main widget area. |
|
4 | + * |
|
5 | + * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials |
|
6 | + * |
|
7 | + * @package Lighthouse |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | if ( ! is_active_sidebar( 'sidebar-1' ) ) { |
11 | 11 | return; |
@@ -12,38 +12,38 @@ |
||
12 | 12 | ?><!DOCTYPE html> |
13 | 13 | <html <?php language_attributes(); ?>> |
14 | 14 | <head> |
15 | -<meta charset="<?php bloginfo( 'charset' ); ?>"> |
|
15 | +<meta charset="<?php bloginfo('charset'); ?>"> |
|
16 | 16 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
17 | 17 | <link rel="profile" href="http://gmpg.org/xfn/11"> |
18 | -<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> |
|
18 | +<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"> |
|
19 | 19 | |
20 | 20 | <?php wp_head(); ?> |
21 | 21 | </head> |
22 | 22 | |
23 | 23 | <body <?php body_class(); ?>> |
24 | 24 | <div id="page" class="site"> |
25 | - <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'lighthouse' ); ?></a> |
|
25 | + <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e('Skip to content', 'lighthouse'); ?></a> |
|
26 | 26 | |
27 | 27 | <header id="masthead" class="site-header" role="banner"> |
28 | 28 | <div class="site-branding"> |
29 | 29 | <?php |
30 | - if ( is_front_page() && is_home() ) : ?> |
|
31 | - <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> |
|
30 | + if (is_front_page() && is_home()) : ?> |
|
31 | + <h1 class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></h1> |
|
32 | 32 | <?php else : ?> |
33 | - <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p> |
|
33 | + <p class="site-title"><a href="<?php echo esc_url(home_url('/')); ?>" rel="home"><?php bloginfo('name'); ?></a></p> |
|
34 | 34 | <?php |
35 | 35 | endif; |
36 | 36 | |
37 | - $description = get_bloginfo( 'description', 'display' ); |
|
38 | - if ( $description || is_customize_preview() ) : ?> |
|
37 | + $description = get_bloginfo('description', 'display'); |
|
38 | + if ($description || is_customize_preview()) : ?> |
|
39 | 39 | <p class="site-description"><?php echo $description; /* WPCS: xss ok. */ ?></p> |
40 | 40 | <?php |
41 | 41 | endif; ?> |
42 | 42 | </div><!-- .site-branding --> |
43 | 43 | |
44 | 44 | <nav id="site-navigation" class="main-navigation" role="navigation"> |
45 | - <button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Primary Menu', 'lighthouse' ); ?></button> |
|
46 | - <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_id' => 'primary-menu' ) ); ?> |
|
45 | + <button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e('Primary Menu', 'lighthouse'); ?></button> |
|
46 | + <?php wp_nav_menu(array('theme_location' => 'primary', 'menu_id' => 'primary-menu')); ?> |
|
47 | 47 | </nav><!-- #site-navigation --> |
48 | 48 | </header><!-- #masthead --> |
49 | 49 |
@@ -29,8 +29,11 @@ |
||
29 | 29 | <?php |
30 | 30 | if ( is_front_page() && is_home() ) : ?> |
31 | 31 | <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1> |
32 | - <?php else : ?> |
|
33 | - <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p> |
|
32 | + <?php else { |
|
33 | + : ?> |
|
34 | + <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); |
|
35 | +} |
|
36 | +?>" rel="home"><?php bloginfo( 'name' ); ?></a></p> |
|
34 | 37 | <?php |
35 | 38 | endif; |
36 | 39 |
@@ -12,13 +12,13 @@ discard block |
||
12 | 12 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
13 | 13 | <header class="entry-header"> |
14 | 14 | <?php |
15 | - if ( is_single() ) { |
|
16 | - the_title( '<h1 class="entry-title">', '</h1>' ); |
|
15 | + if (is_single()) { |
|
16 | + the_title('<h1 class="entry-title">', '</h1>'); |
|
17 | 17 | } else { |
18 | - the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); |
|
18 | + the_title('<h2 class="entry-title"><a href="'.esc_url(get_permalink()).'" rel="bookmark">', '</a></h2>'); |
|
19 | 19 | } |
20 | 20 | |
21 | - if ( 'post' === get_post_type() ) : ?> |
|
21 | + if ('post' === get_post_type()) : ?> |
|
22 | 22 | <div class="entry-meta"> |
23 | 23 | <?php lighthouse_posted_on(); ?> |
24 | 24 | </div><!-- .entry-meta --> |
@@ -28,16 +28,16 @@ discard block |
||
28 | 28 | |
29 | 29 | <div class="entry-content"> |
30 | 30 | <?php |
31 | - the_content( sprintf( |
|
31 | + the_content(sprintf( |
|
32 | 32 | /* translators: %s: Name of current post. */ |
33 | - wp_kses( __( 'Continue reading %s <span class="meta-nav">→</span>', 'lighthouse' ), array( 'span' => array( 'class' => array() ) ) ), |
|
34 | - the_title( '<span class="screen-reader-text">"', '"</span>', false ) |
|
35 | - ) ); |
|
33 | + wp_kses(__('Continue reading %s <span class="meta-nav">→</span>', 'lighthouse'), array('span' => array('class' => array()))), |
|
34 | + the_title('<span class="screen-reader-text">"', '"</span>', false) |
|
35 | + )); |
|
36 | 36 | |
37 | - wp_link_pages( array( |
|
38 | - 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'lighthouse' ), |
|
37 | + wp_link_pages(array( |
|
38 | + 'before' => '<div class="page-links">'.esc_html__('Pages:', 'lighthouse'), |
|
39 | 39 | 'after' => '</div>', |
40 | - ) ); |
|
40 | + )); |
|
41 | 41 | ?> |
42 | 42 | </div><!-- .entry-content --> |
43 | 43 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Template part for displaying posts. |
|
4 | - * |
|
5 | - * @link https://codex.wordpress.org/Template_Hierarchy |
|
6 | - * |
|
7 | - * @package Lighthouse |
|
8 | - */ |
|
3 | + * Template part for displaying posts. |
|
4 | + * |
|
5 | + * @link https://codex.wordpress.org/Template_Hierarchy |
|
6 | + * |
|
7 | + * @package Lighthouse |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | ?> |
11 | 11 |
@@ -11,17 +11,17 @@ discard block |
||
11 | 11 | |
12 | 12 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
13 | 13 | <header class="entry-header"> |
14 | - <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?> |
|
14 | + <?php the_title('<h1 class="entry-title">', '</h1>'); ?> |
|
15 | 15 | </header><!-- .entry-header --> |
16 | 16 | |
17 | 17 | <div class="entry-content"> |
18 | 18 | <?php |
19 | 19 | the_content(); |
20 | 20 | |
21 | - wp_link_pages( array( |
|
22 | - 'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'lighthouse' ), |
|
21 | + wp_link_pages(array( |
|
22 | + 'before' => '<div class="page-links">'.esc_html__('Pages:', 'lighthouse'), |
|
23 | 23 | 'after' => '</div>', |
24 | - ) ); |
|
24 | + )); |
|
25 | 25 | ?> |
26 | 26 | </div><!-- .entry-content --> |
27 | 27 | |
@@ -30,8 +30,8 @@ discard block |
||
30 | 30 | edit_post_link( |
31 | 31 | sprintf( |
32 | 32 | /* translators: %s: Name of current post */ |
33 | - esc_html__( 'Edit %s', 'lighthouse' ), |
|
34 | - the_title( '<span class="screen-reader-text">"', '"</span>', false ) |
|
33 | + esc_html__('Edit %s', 'lighthouse'), |
|
34 | + the_title('<span class="screen-reader-text">"', '"</span>', false) |
|
35 | 35 | ), |
36 | 36 | '<span class="edit-link">', |
37 | 37 | '</span>' |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Template part for displaying a message that posts cannot be found. |
|
4 | - * |
|
5 | - * @link https://codex.wordpress.org/Template_Hierarchy |
|
6 | - * |
|
7 | - * @package Lighthouse |
|
8 | - */ |
|
3 | + * Template part for displaying a message that posts cannot be found. |
|
4 | + * |
|
5 | + * @link https://codex.wordpress.org/Template_Hierarchy |
|
6 | + * |
|
7 | + * @package Lighthouse |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | ?> |
11 | 11 |
@@ -11,24 +11,24 @@ |
||
11 | 11 | |
12 | 12 | <section class="no-results not-found"> |
13 | 13 | <header class="page-header"> |
14 | - <h1 class="page-title"><?php esc_html_e( 'Nothing Found', 'lighthouse' ); ?></h1> |
|
14 | + <h1 class="page-title"><?php esc_html_e('Nothing Found', 'lighthouse'); ?></h1> |
|
15 | 15 | </header><!-- .page-header --> |
16 | 16 | |
17 | 17 | <div class="page-content"> |
18 | 18 | <?php |
19 | - if ( is_home() && current_user_can( 'publish_posts' ) ) : ?> |
|
19 | + if (is_home() && current_user_can('publish_posts')) : ?> |
|
20 | 20 | |
21 | - <p><?php printf( wp_kses( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'lighthouse' ), array( 'a' => array( 'href' => array() ) ) ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p> |
|
21 | + <p><?php printf(wp_kses(__('Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'lighthouse'), array('a' => array('href' => array()))), esc_url(admin_url('post-new.php'))); ?></p> |
|
22 | 22 | |
23 | - <?php elseif ( is_search() ) : ?> |
|
23 | + <?php elseif (is_search()) : ?> |
|
24 | 24 | |
25 | - <p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'lighthouse' ); ?></p> |
|
25 | + <p><?php esc_html_e('Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'lighthouse'); ?></p> |
|
26 | 26 | <?php |
27 | 27 | get_search_form(); |
28 | 28 | |
29 | 29 | else : ?> |
30 | 30 | |
31 | - <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lighthouse' ); ?></p> |
|
31 | + <p><?php esc_html_e('It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lighthouse'); ?></p> |
|
32 | 32 | <?php |
33 | 33 | get_search_form(); |
34 | 34 |
@@ -26,9 +26,12 @@ |
||
26 | 26 | <?php |
27 | 27 | get_search_form(); |
28 | 28 | |
29 | - else : ?> |
|
29 | + else { |
|
30 | + : ?> |
|
30 | 31 | |
31 | - <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lighthouse' ); ?></p> |
|
32 | + <p><?php esc_html_e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'lighthouse' ); |
|
33 | + } |
|
34 | + ?></p> |
|
32 | 35 | <?php |
33 | 36 | get_search_form(); |
34 | 37 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Template part for displaying results in search pages. |
|
4 | - * |
|
5 | - * @link https://codex.wordpress.org/Template_Hierarchy |
|
6 | - * |
|
7 | - * @package Lighthouse |
|
8 | - */ |
|
3 | + * Template part for displaying results in search pages. |
|
4 | + * |
|
5 | + * @link https://codex.wordpress.org/Template_Hierarchy |
|
6 | + * |
|
7 | + * @package Lighthouse |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | ?> |
11 | 11 |
@@ -11,9 +11,9 @@ |
||
11 | 11 | |
12 | 12 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
13 | 13 | <header class="entry-header"> |
14 | - <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?> |
|
14 | + <?php the_title(sprintf('<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h2>'); ?> |
|
15 | 15 | |
16 | - <?php if ( 'post' === get_post_type() ) : ?> |
|
16 | + <?php if ('post' === get_post_type()) : ?> |
|
17 | 17 | <div class="entry-meta"> |
18 | 18 | <?php lighthouse_posted_on(); ?> |
19 | 19 | </div><!-- .entry-meta --> |
@@ -13,22 +13,22 @@ discard block |
||
13 | 13 | <main id="main" class="site-main" role="main"> |
14 | 14 | |
15 | 15 | <?php |
16 | - if ( have_posts() ) : ?> |
|
16 | + if (have_posts()) : ?> |
|
17 | 17 | |
18 | 18 | <header class="page-header"> |
19 | - <h1 class="page-title"><?php printf( esc_html__( 'Search Results for: %s', 'lighthouse' ), '<span>' . get_search_query() . '</span>' ); ?></h1> |
|
19 | + <h1 class="page-title"><?php printf(esc_html__('Search Results for: %s', 'lighthouse'), '<span>'.get_search_query().'</span>'); ?></h1> |
|
20 | 20 | </header><!-- .page-header --> |
21 | 21 | |
22 | 22 | <?php |
23 | 23 | /* Start the Loop */ |
24 | - while ( have_posts() ) : the_post(); |
|
24 | + while (have_posts()) : the_post(); |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Run the loop for the search to output the results. |
28 | 28 | * If you want to overload this in a child theme then include a file |
29 | 29 | * called content-search.php and that will be used instead. |
30 | 30 | */ |
31 | - get_template_part( 'template-parts/content', 'search' ); |
|
31 | + get_template_part('template-parts/content', 'search'); |
|
32 | 32 | |
33 | 33 | endwhile; |
34 | 34 | |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | else : |
38 | 38 | |
39 | - get_template_part( 'template-parts/content', 'none' ); |
|
39 | + get_template_part('template-parts/content', 'none'); |
|
40 | 40 | |
41 | 41 | endif; ?> |
42 | 42 |
@@ -34,8 +34,10 @@ |
||
34 | 34 | the_post(); |
35 | 35 | if ( is_search() ) : |
36 | 36 | get_template_part( 'template-parts/content', 'search' ); |
37 | - else : |
|
37 | + else { |
|
38 | + : |
|
38 | 39 | get_template_part( 'template-parts/content', get_post_format() ); |
40 | + } |
|
39 | 41 | endif; |
40 | 42 | } |
41 | 43 | } |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The template for displaying search results pages. |
|
4 | - * |
|
5 | - * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result |
|
6 | - * |
|
7 | - * @package Lighthouse |
|
8 | - */ |
|
3 | + * The template for displaying search results pages. |
|
4 | + * |
|
5 | + * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#search-result |
|
6 | + * |
|
7 | + * @package Lighthouse |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | get_header(); ?> |
11 | 11 |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * the visitor has not yet entered the password we will |
16 | 16 | * return early without loading the comments. |
17 | 17 | */ |
18 | -if ( post_password_required() ) { |
|
18 | +if (post_password_required()) { |
|
19 | 19 | return; |
20 | 20 | } |
21 | 21 | ?> |
@@ -24,24 +24,24 @@ discard block |
||
24 | 24 | |
25 | 25 | <?php |
26 | 26 | // You can start editing here -- including this comment! |
27 | - if ( have_comments() ) : ?> |
|
27 | + if (have_comments()) : ?> |
|
28 | 28 | <h2 class="comments-title"> |
29 | 29 | <?php |
30 | 30 | printf( // WPCS: XSS OK. |
31 | - esc_html( _nx( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'lighthouse' ) ), |
|
32 | - number_format_i18n( get_comments_number() ), |
|
33 | - '<span>' . get_the_title() . '</span>' |
|
31 | + esc_html(_nx('One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'lighthouse')), |
|
32 | + number_format_i18n(get_comments_number()), |
|
33 | + '<span>'.get_the_title().'</span>' |
|
34 | 34 | ); |
35 | 35 | ?> |
36 | 36 | </h2> |
37 | 37 | |
38 | - <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> |
|
38 | + <?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : // Are there comments to navigate through? ?> |
|
39 | 39 | <nav id="comment-nav-above" class="navigation comment-navigation" role="navigation"> |
40 | - <h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'lighthouse' ); ?></h2> |
|
40 | + <h2 class="screen-reader-text"><?php esc_html_e('Comment navigation', 'lighthouse'); ?></h2> |
|
41 | 41 | <div class="nav-links"> |
42 | 42 | |
43 | - <div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', 'lighthouse' ) ); ?></div> |
|
44 | - <div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'lighthouse' ) ); ?></div> |
|
43 | + <div class="nav-previous"><?php previous_comments_link(esc_html__('Older Comments', 'lighthouse')); ?></div> |
|
44 | + <div class="nav-next"><?php next_comments_link(esc_html__('Newer Comments', 'lighthouse')); ?></div> |
|
45 | 45 | |
46 | 46 | </div><!-- .nav-links --> |
47 | 47 | </nav><!-- #comment-nav-above --> |
@@ -49,20 +49,20 @@ discard block |
||
49 | 49 | |
50 | 50 | <ol class="comment-list"> |
51 | 51 | <?php |
52 | - wp_list_comments( array( |
|
52 | + wp_list_comments(array( |
|
53 | 53 | 'style' => 'ol', |
54 | 54 | 'short_ping' => true, |
55 | - ) ); |
|
55 | + )); |
|
56 | 56 | ?> |
57 | 57 | </ol><!-- .comment-list --> |
58 | 58 | |
59 | - <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // Are there comments to navigate through? ?> |
|
59 | + <?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : // Are there comments to navigate through? ?> |
|
60 | 60 | <nav id="comment-nav-below" class="navigation comment-navigation" role="navigation"> |
61 | - <h2 class="screen-reader-text"><?php esc_html_e( 'Comment navigation', 'lighthouse' ); ?></h2> |
|
61 | + <h2 class="screen-reader-text"><?php esc_html_e('Comment navigation', 'lighthouse'); ?></h2> |
|
62 | 62 | <div class="nav-links"> |
63 | 63 | |
64 | - <div class="nav-previous"><?php previous_comments_link( esc_html__( 'Older Comments', 'lighthouse' ) ); ?></div> |
|
65 | - <div class="nav-next"><?php next_comments_link( esc_html__( 'Newer Comments', 'lighthouse' ) ); ?></div> |
|
64 | + <div class="nav-previous"><?php previous_comments_link(esc_html__('Older Comments', 'lighthouse')); ?></div> |
|
65 | + <div class="nav-next"><?php next_comments_link(esc_html__('Newer Comments', 'lighthouse')); ?></div> |
|
66 | 66 | |
67 | 67 | </div><!-- .nav-links --> |
68 | 68 | </nav><!-- #comment-nav-below --> |
@@ -73,9 +73,9 @@ discard block |
||
73 | 73 | |
74 | 74 | |
75 | 75 | // If comments are closed and there are comments, let's leave a little note, shall we? |
76 | - if ( ! comments_open() && get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) : ?> |
|
76 | + if ( ! comments_open() && get_comments_number() && post_type_supports(get_post_type(), 'comments')) : ?> |
|
77 | 77 | |
78 | - <p class="no-comments"><?php esc_html_e( 'Comments are closed.', 'lighthouse' ); ?></p> |
|
78 | + <p class="no-comments"><?php esc_html_e('Comments are closed.', 'lighthouse'); ?></p> |
|
79 | 79 | <?php |
80 | 80 | endif; |
81 | 81 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The template for displaying all single posts. |
|
4 | - * |
|
5 | - * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post |
|
6 | - * |
|
7 | - * @package Lighthouse |
|
8 | - */ |
|
3 | + * The template for displaying all single posts. |
|
4 | + * |
|
5 | + * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post |
|
6 | + * |
|
7 | + * @package Lighthouse |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | get_header(); ?> |
11 | 11 |
@@ -13,14 +13,14 @@ |
||
13 | 13 | <main id="main" class="site-main" role="main"> |
14 | 14 | |
15 | 15 | <?php |
16 | - while ( have_posts() ) : the_post(); |
|
16 | + while (have_posts()) : the_post(); |
|
17 | 17 | |
18 | - get_template_part( 'template-parts/content', get_post_format() ); |
|
18 | + get_template_part('template-parts/content', get_post_format()); |
|
19 | 19 | |
20 | 20 | the_post_navigation(); |
21 | 21 | |
22 | 22 | // If comments are open or we have at least one comment, load up the comment template. |
23 | - if ( comments_open() || get_comments_number() ) : |
|
23 | + if (comments_open() || get_comments_number()) : |
|
24 | 24 | comments_template(); |
25 | 25 | endif; |
26 | 26 |