@@ -1,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Template Name: Service |
|
4 | - * |
|
5 | - * @package Lighthouse |
|
6 | - */ |
|
3 | + * Template Name: Service |
|
4 | + * |
|
5 | + * @package Lighthouse |
|
6 | + */ |
|
7 | 7 | get_header(); ?> |
8 | 8 | |
9 | 9 | <?php while ( have_posts() ) : the_post(); |
@@ -37,9 +37,9 @@ discard block |
||
37 | 37 | <li class="blog-item shop-latest-item"> |
38 | 38 | <a href="<?php the_permalink() ?>" title="<?php the_title_attribute() ?>"> |
39 | 39 | <?php |
40 | - $thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'blog-listing'); |
|
41 | - $url = $thumb[0]; |
|
42 | - ?> |
|
40 | + $thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'blog-listing'); |
|
41 | + $url = $thumb[0]; |
|
42 | + ?> |
|
43 | 43 | <div class="thumbnail blog-item-img" style="background-image:url('<?php echo $url; ?>'); background-color:<?php the_field('post_background_color'); ?>"> |
44 | 44 | <img class="img-responsive" src="<?php echo $url; ?>"> |
45 | 45 | </div> |
@@ -57,9 +57,9 @@ discard block |
||
57 | 57 | <li class="blog-item shop-latest-item"> |
58 | 58 | <a href="<?php the_permalink() ?>" title="<?php the_title_attribute() ?>"> |
59 | 59 | <?php |
60 | - $thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'blog-listing'); |
|
61 | - $url = $thumb[0]; |
|
62 | - ?> |
|
60 | + $thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'blog-listing'); |
|
61 | + $url = $thumb[0]; |
|
62 | + ?> |
|
63 | 63 | <div class="thumbnail blog-item-img" style="background-image:url('<?php echo $url; ?>'); background-color:<?php the_field('post_background_color'); ?>"> |
64 | 64 | <img class="img-responsive" src="<?php echo $url; ?>"> |
65 | 65 | </div> |
@@ -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,9 +1,9 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Template Name: Blog |
|
4 | - * |
|
5 | - * @package Lighthouse |
|
6 | - */ |
|
3 | + * Template Name: Blog |
|
4 | + * |
|
5 | + * @package Lighthouse |
|
6 | + */ |
|
7 | 7 | get_header(); ?> |
8 | 8 | <div class="title-area"> |
9 | 9 | <h1 class="page-title">Blog</h1> |
@@ -41,37 +41,37 @@ discard block |
||
41 | 41 | } |
42 | 42 | } |
43 | 43 | echo '<li><a href="javascript:void(0)" title="" data-filter=".all" class="active">All</a></li>'; |
44 | - **/ ?> |
|
44 | + **/ ?> |
|
45 | 45 | </ul> |
46 | 46 | |
47 | 47 | |
48 | 48 | <div id="blogContent"> |
49 | 49 | <?php |
50 | - $args = array( 'post_type' => 'post', 'posts_per_page' => -1 ); |
|
51 | - $loop = new WP_Query( $args ); |
|
52 | - while ( $loop->have_posts() ) : $loop->the_post(); |
|
50 | + $args = array( 'post_type' => 'post', 'posts_per_page' => -1 ); |
|
51 | + $loop = new WP_Query( $args ); |
|
52 | + while ( $loop->have_posts() ) : $loop->the_post(); |
|
53 | 53 | |
54 | - $terms = get_the_terms( $post->ID, 'category' ); |
|
55 | - if ( $terms && ! is_wp_error( $terms ) ) : |
|
54 | + $terms = get_the_terms( $post->ID, 'category' ); |
|
55 | + if ( $terms && ! is_wp_error( $terms ) ) : |
|
56 | 56 | |
57 | - $links = array(); |
|
57 | + $links = array(); |
|
58 | 58 | |
59 | - foreach ( $terms as $term ) { |
|
60 | - $links[] = $term->name; |
|
61 | - } |
|
59 | + foreach ( $terms as $term ) { |
|
60 | + $links[] = $term->name; |
|
61 | + } |
|
62 | 62 | |
63 | - $tax_links = join( " ", str_replace(' ', '-', $links)); |
|
64 | - $tax = strtolower($tax_links); |
|
65 | - else : |
|
66 | - $tax = ''; |
|
67 | - endif; ?> |
|
63 | + $tax_links = join( " ", str_replace(' ', '-', $links)); |
|
64 | + $tax = strtolower($tax_links); |
|
65 | + else : |
|
66 | + $tax = ''; |
|
67 | + endif; ?> |
|
68 | 68 | |
69 | 69 | <div class="all blog-item <?php echo $tax; ?>"> |
70 | 70 | <a href="<?php the_permalink() ?>" title="<?php the_title_attribute() ?>"> |
71 | 71 | <?php |
72 | - $thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'blog-listing'); |
|
73 | - $url = $thumb[0]; |
|
74 | - ?> |
|
72 | + $thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'blog-listing'); |
|
73 | + $url = $thumb[0]; |
|
74 | + ?> |
|
75 | 75 | <div class="thumbnail blog-item-img load-fadeInUp" style="background-image:url('<?php echo $url; ?>'); background-color:<?php the_field('post_background_color'); ?>"> |
76 | 76 | <img class="img-responsive" src="<?php echo $url; ?>"> |
77 | 77 | </div> |
@@ -62,8 +62,10 @@ |
||
62 | 62 | |
63 | 63 | $tax_links = join( " ", str_replace(' ', '-', $links)); |
64 | 64 | $tax = strtolower($tax_links); |
65 | - else : |
|
66 | - $tax = ''; |
|
65 | + else { |
|
66 | + : |
|
67 | + $tax = ''; |
|
68 | + } |
|
67 | 69 | endif; ?> |
68 | 70 | |
69 | 71 | <div class="all blog-item <?php echo $tax; ?>"> |
@@ -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; |
@@ -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 |
@@ -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,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 |