@@ -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 | |
@@ -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 | |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The template for displaying 404 pages (not found). |
|
| 4 | - * |
|
| 5 | - * @link https://codex.wordpress.org/Creating_an_Error_404_Page |
|
| 6 | - * |
|
| 7 | - * @package Lighthouse |
|
| 8 | - */ |
|
| 3 | + * The template for displaying 404 pages (not found). |
|
| 4 | + * |
|
| 5 | + * @link https://codex.wordpress.org/Creating_an_Error_404_Page |
|
| 6 | + * |
|
| 7 | + * @package Lighthouse |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | get_header(); ?> |
| 11 | 11 | |
@@ -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 | |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The header for our theme. |
|
| 4 | - * |
|
| 5 | - * This is the template that displays all of the <head> section and everything up until <div id="content"> |
|
| 6 | - * |
|
| 7 | - * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials |
|
| 8 | - * |
|
| 9 | - * @package Lighthouse |
|
| 10 | - */ |
|
| 3 | + * The header for our theme. |
|
| 4 | + * |
|
| 5 | + * This is the template that displays all of the <head> section and everything up until <div id="content"> |
|
| 6 | + * |
|
| 7 | + * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials |
|
| 8 | + * |
|
| 9 | + * @package Lighthouse |
|
| 10 | + */ |
|
| 11 | 11 | |
| 12 | 12 | ?><!DOCTYPE html> |
| 13 | 13 | <html <?php language_attributes(); ?>> |
@@ -1,11 +1,11 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Template part for displaying page content in page.php. |
|
| 4 | - * |
|
| 5 | - * @link https://codex.wordpress.org/Template_Hierarchy |
|
| 6 | - * |
|
| 7 | - * @package Lighthouse |
|
| 8 | - */ |
|
| 3 | + * Template part for displaying page content in page.php. |
|
| 4 | + * |
|
| 5 | + * @link https://codex.wordpress.org/Template_Hierarchy |
|
| 6 | + * |
|
| 7 | + * @package Lighthouse |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | ?> |
| 11 | 11 | |
@@ -1,16 +1,16 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * The template for displaying all pages. |
|
| 4 | - * |
|
| 5 | - * This is the template that displays all pages by default. |
|
| 6 | - * Please note that this is the WordPress construct of pages |
|
| 7 | - * and that other 'pages' on your WordPress site may use a |
|
| 8 | - * different template. |
|
| 9 | - * |
|
| 10 | - * @link https://codex.wordpress.org/Template_Hierarchy |
|
| 11 | - * |
|
| 12 | - * @package Lighthouse |
|
| 13 | - */ |
|
| 3 | + * The template for displaying all pages. |
|
| 4 | + * |
|
| 5 | + * This is the template that displays all pages by default. |
|
| 6 | + * Please note that this is the WordPress construct of pages |
|
| 7 | + * and that other 'pages' on your WordPress site may use a |
|
| 8 | + * different template. |
|
| 9 | + * |
|
| 10 | + * @link https://codex.wordpress.org/Template_Hierarchy |
|
| 11 | + * |
|
| 12 | + * @package Lighthouse |
|
| 13 | + */ |
|
| 14 | 14 | |
| 15 | 15 | get_header(); ?> |
| 16 | 16 | |
@@ -1,11 +1,11 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Custom template tags for this theme. |
|
| 4 | - * |
|
| 5 | - * Eventually, some of the functionality here could be replaced by core features. |
|
| 6 | - * |
|
| 7 | - * @package Lighthouse |
|
| 8 | - */ |
|
| 3 | + * Custom template tags for this theme. |
|
| 4 | + * |
|
| 5 | + * Eventually, some of the functionality here could be replaced by core features. |
|
| 6 | + * |
|
| 7 | + * @package Lighthouse |
|
| 8 | + */ |
|
| 9 | 9 | |
| 10 | 10 | if ( ! function_exists( 'lighthouse_posted_on' ) ) : |
| 11 | 11 | /** |
@@ -125,16 +125,16 @@ discard block |
||
| 125 | 125 | */ |
| 126 | 126 | //Left menu |
| 127 | 127 | function lighthouse_header_menu_left() { |
| 128 | - if ( has_nav_menu( 'header-menu-left' ) ) { |
|
| 129 | - wp_nav_menu( |
|
| 130 | - array( |
|
| 131 | - 'theme_location' => 'header-menu-left', |
|
| 132 | - 'menu' => '', |
|
| 133 | - 'container' => 'div', |
|
| 134 | - 'container_id' => 'header-menu-left-id', |
|
| 135 | - 'container_class' => 'header-menu-left-cl', |
|
| 136 | - 'menu_id' => 'header-menu-id', |
|
| 137 | - 'menu_class' => 'header-menu-cl', |
|
| 128 | + if ( has_nav_menu( 'header-menu-left' ) ) { |
|
| 129 | + wp_nav_menu( |
|
| 130 | + array( |
|
| 131 | + 'theme_location' => 'header-menu-left', |
|
| 132 | + 'menu' => '', |
|
| 133 | + 'container' => 'div', |
|
| 134 | + 'container_id' => 'header-menu-left-id', |
|
| 135 | + 'container_class' => 'header-menu-left-cl', |
|
| 136 | + 'menu_id' => 'header-menu-id', |
|
| 137 | + 'menu_class' => 'header-menu-cl', |
|
| 138 | 138 | 'echo' => true, |
| 139 | 139 | 'fallback_cb' => '', |
| 140 | 140 | 'before' => '', |
@@ -144,23 +144,23 @@ discard block |
||
| 144 | 144 | 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', |
| 145 | 145 | 'depth' => 0, |
| 146 | 146 | 'walker' => '' |
| 147 | - ) |
|
| 148 | - ); |
|
| 149 | - } |
|
| 147 | + ) |
|
| 148 | + ); |
|
| 149 | + } |
|
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | //Right menu |
| 153 | 153 | function lighthouse_header_menu_right() { |
| 154 | - if ( has_nav_menu( 'header-menu-right' ) ) { |
|
| 155 | - wp_nav_menu( |
|
| 156 | - array( |
|
| 157 | - 'theme_location' => 'header-menu-right', |
|
| 158 | - 'menu' => '', |
|
| 159 | - 'container' => 'div', |
|
| 160 | - 'container_id' => 'header-menu-right-id', |
|
| 161 | - 'container_class' => 'header-menu-right-cl', |
|
| 162 | - 'menu_id' => 'header-menu-id', |
|
| 163 | - 'menu_class' => 'header-menu-cl', |
|
| 154 | + if ( has_nav_menu( 'header-menu-right' ) ) { |
|
| 155 | + wp_nav_menu( |
|
| 156 | + array( |
|
| 157 | + 'theme_location' => 'header-menu-right', |
|
| 158 | + 'menu' => '', |
|
| 159 | + 'container' => 'div', |
|
| 160 | + 'container_id' => 'header-menu-right-id', |
|
| 161 | + 'container_class' => 'header-menu-right-cl', |
|
| 162 | + 'menu_id' => 'header-menu-id', |
|
| 163 | + 'menu_class' => 'header-menu-cl', |
|
| 164 | 164 | 'echo' => true, |
| 165 | 165 | 'fallback_cb' => '', |
| 166 | 166 | 'before' => '', |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>', |
| 171 | 171 | 'depth' => 0, |
| 172 | 172 | 'walker' => '' |
| 173 | - ) |
|
| 174 | - ); |
|
| 175 | - } |
|
| 173 | + ) |
|
| 174 | + ); |
|
| 175 | + } |
|
| 176 | 176 | } |
| 177 | 177 | \ No newline at end of file |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Template Name: Contact |
|
| 4 | - * |
|
| 5 | - * @package Lighthouse |
|
| 6 | - */ |
|
| 3 | + * Template Name: Contact |
|
| 4 | + * |
|
| 5 | + * @package Lighthouse |
|
| 6 | + */ |
|
| 7 | 7 | get_header(); ?> |
| 8 | 8 | |
| 9 | 9 | <?php while ( have_posts() ) : the_post(); ?> |