@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Template Name: Home |
|
| 4 | - * |
|
| 5 | - * @package Lighthouse |
|
| 6 | - */ |
|
| 3 | + * Template Name: Home |
|
| 4 | + * |
|
| 5 | + * @package Lighthouse |
|
| 6 | + */ |
|
| 7 | 7 | ?><!DOCTYPE html> |
| 8 | 8 | <html <?php language_attributes(); ?>> |
| 9 | 9 | <head> |
@@ -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 | |
@@ -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 | |
@@ -1,14 +1,14 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The template for displaying comments. |
|
| 4 | - * |
|
| 5 | - * This is the template that displays the area of the page that contains both the current comments |
|
| 6 | - * and the comment form. |
|
| 7 | - * |
|
| 8 | - * @link https://codex.wordpress.org/Template_Hierarchy |
|
| 9 | - * |
|
| 10 | - * @package Lighthouse |
|
| 11 | - */ |
|
| 3 | + * The template for displaying comments. |
|
| 4 | + * |
|
| 5 | + * This is the template that displays the area of the page that contains both the current comments |
|
| 6 | + * and the comment form. |
|
| 7 | + * |
|
| 8 | + * @link https://codex.wordpress.org/Template_Hierarchy |
|
| 9 | + * |
|
| 10 | + * @package Lighthouse |
|
| 11 | + */ |
|
| 12 | 12 | |
| 13 | 13 | /* |
| 14 | 14 | * If the current post is protected by a password and |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Lighthouse Theme Customizer. |
|
| 4 | - * |
|
| 5 | - * @package Lighthouse |
|
| 6 | - */ |
|
| 3 | + * Lighthouse Theme Customizer. |
|
| 4 | + * |
|
| 5 | + * @package Lighthouse |
|
| 6 | + */ |
|
| 7 | 7 | |
| 8 | 8 | /** |
| 9 | 9 | * Add postMessage support for site title and description for the Theme Customizer. |
@@ -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 | } |
@@ -33,9 +33,9 @@ |
||
| 33 | 33 | while ( have_posts() ) { |
| 34 | 34 | the_post(); |
| 35 | 35 | if ( is_search() ) : |
| 36 | - get_template_part( 'template-parts/content', 'search' ); |
|
| 36 | + get_template_part( 'template-parts/content', 'search' ); |
|
| 37 | 37 | else : |
| 38 | - get_template_part( 'template-parts/content', get_post_format() ); |
|
| 38 | + get_template_part( 'template-parts/content', get_post_format() ); |
|
| 39 | 39 | endif; |
| 40 | 40 | } |
| 41 | 41 | } |
@@ -1,19 +1,19 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Sample implementation of the Custom Header feature. |
|
| 4 | - * |
|
| 5 | - * You can add an optional custom header image to header.php like so ... |
|
| 6 | - * |
|
| 3 | + * Sample implementation of the Custom Header feature. |
|
| 4 | + * |
|
| 5 | + * You can add an optional custom header image to header.php like so ... |
|
| 6 | + * |
|
| 7 | 7 | <?php if ( get_header_image() ) : ?> |
| 8 | 8 | <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"> |
| 9 | 9 | <img src="<?php header_image(); ?>" width="<?php echo esc_attr( get_custom_header()->width ); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" alt=""> |
| 10 | 10 | </a> |
| 11 | 11 | <?php endif; // End header image check. ?> |
| 12 | - * |
|
| 13 | - * @link https://developer.wordpress.org/themes/functionality/custom-headers/ |
|
| 14 | - * |
|
| 15 | - * @package Lighthouse |
|
| 16 | - */ |
|
| 12 | + * |
|
| 13 | + * @link https://developer.wordpress.org/themes/functionality/custom-headers/ |
|
| 14 | + * |
|
| 15 | + * @package Lighthouse |
|
| 16 | + */ |
|
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * Set up the WordPress core custom header feature. |
@@ -63,11 +63,14 @@ |
||
| 63 | 63 | } |
| 64 | 64 | <?php |
| 65 | 65 | // If the user has set a custom color for the text use that. |
| 66 | - else : |
|
| 66 | + else { |
|
| 67 | + : |
|
| 67 | 68 | ?> |
| 68 | 69 | .site-title a, |
| 69 | 70 | .site-description { |
| 70 | - color: #<?php echo esc_attr( $header_text_color ); ?>; |
|
| 71 | + color: #<?php echo esc_attr( $header_text_color ); |
|
| 72 | + } |
|
| 73 | + ?>; |
|
| 71 | 74 | } |
| 72 | 75 | <?php endif; ?> |
| 73 | 76 | </style> |
@@ -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 | - * Custom functions that act independently of the theme templates. |
|
| 4 | - * |
|
| 5 | - * Eventually, some of the functionality here could be replaced by core features. |
|
| 6 | - * |
|
| 7 | - * @package Lighthouse |
|
| 8 | - */ |
|
| 3 | + * Custom functions that act independently of the theme templates. |
|
| 4 | + * |
|
| 5 | + * Eventually, some of the functionality here could be replaced by core features. |
|
| 6 | + * |
|
| 7 | + * @package Lighthouse |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | /** |
| 11 | 11 | * Adds custom classes to the array of body classes. |