@@ -14,32 +14,32 @@ discard block |
||
14 | 14 | |
15 | 15 | <section class="error-404 not-found"> |
16 | 16 | <header class="page-header"> |
17 | - <h1 class="page-title"><?php esc_html_e( 'Oops! That page can’t be found.', 'lighthouse' ); ?></h1> |
|
17 | + <h1 class="page-title"><?php esc_html_e('Oops! That page can’t be found.', 'lighthouse'); ?></h1> |
|
18 | 18 | </header><!-- .page-header --> |
19 | 19 | |
20 | 20 | <div class="page-content"> |
21 | - <p><?php esc_html_e( 'It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'lighthouse' ); ?></p> |
|
21 | + <p><?php esc_html_e('It looks like nothing was found at this location. Maybe try one of the links below or a search?', 'lighthouse'); ?></p> |
|
22 | 22 | |
23 | 23 | <?php |
24 | 24 | get_search_form(); |
25 | 25 | |
26 | - the_widget( 'WP_Widget_Recent_Posts' ); |
|
26 | + the_widget('WP_Widget_Recent_Posts'); |
|
27 | 27 | |
28 | 28 | // Only show the widget if site has multiple categories. |
29 | - if ( lighthouse_categorized_blog() ) : |
|
29 | + if (lighthouse_categorized_blog()) : |
|
30 | 30 | ?> |
31 | 31 | |
32 | 32 | <div class="widget widget_categories"> |
33 | - <h2 class="widget-title"><?php esc_html_e( 'Most Used Categories', 'lighthouse' ); ?></h2> |
|
33 | + <h2 class="widget-title"><?php esc_html_e('Most Used Categories', 'lighthouse'); ?></h2> |
|
34 | 34 | <ul> |
35 | 35 | <?php |
36 | - wp_list_categories( array( |
|
36 | + wp_list_categories(array( |
|
37 | 37 | 'orderby' => 'count', |
38 | 38 | 'order' => 'DESC', |
39 | 39 | 'show_count' => 1, |
40 | 40 | 'title_li' => '', |
41 | 41 | 'number' => 10, |
42 | - ) ); |
|
42 | + )); |
|
43 | 43 | ?> |
44 | 44 | </ul> |
45 | 45 | </div><!-- .widget --> |
@@ -48,10 +48,10 @@ discard block |
||
48 | 48 | endif; |
49 | 49 | |
50 | 50 | /* translators: %1$s: smiley */ |
51 | - $archive_content = '<p>' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'lighthouse' ), convert_smilies( ':)' ) ) . '</p>'; |
|
52 | - the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content" ); |
|
51 | + $archive_content = '<p>'.sprintf(esc_html__('Try looking in the monthly archives. %1$s', 'lighthouse'), convert_smilies(':)')).'</p>'; |
|
52 | + the_widget('WP_Widget_Archives', 'dropdown=1', "after_title=</h2>$archive_content"); |
|
53 | 53 | |
54 | - the_widget( 'WP_Widget_Tag_Cloud' ); |
|
54 | + the_widget('WP_Widget_Tag_Cloud'); |
|
55 | 55 | ?> |
56 | 56 | |
57 | 57 | </div><!-- .page-content --> |
@@ -18,12 +18,12 @@ |
||
18 | 18 | <main id="main" class="site-main" role="main"> |
19 | 19 | |
20 | 20 | <?php |
21 | - while ( have_posts() ) : the_post(); |
|
21 | + while (have_posts()) : the_post(); |
|
22 | 22 | |
23 | - get_template_part( 'template-parts/content', 'page' ); |
|
23 | + get_template_part('template-parts/content', 'page'); |
|
24 | 24 | |
25 | 25 | // If comments are open or we have at least one comment, load up the comment template. |
26 | - if ( comments_open() || get_comments_number() ) : |
|
26 | + if (comments_open() || get_comments_number()) : |
|
27 | 27 | comments_template(); |
28 | 28 | endif; |
29 | 29 |
@@ -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 |
@@ -13,25 +13,25 @@ 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 | 19 | <?php |
20 | - the_archive_title( '<h1 class="page-title">', '</h1>' ); |
|
21 | - the_archive_description( '<div class="taxonomy-description">', '</div>' ); |
|
20 | + the_archive_title('<h1 class="page-title">', '</h1>'); |
|
21 | + the_archive_description('<div class="taxonomy-description">', '</div>'); |
|
22 | 22 | ?> |
23 | 23 | </header><!-- .page-header --> |
24 | 24 | |
25 | 25 | <?php |
26 | 26 | /* Start the Loop */ |
27 | - while ( have_posts() ) : the_post(); |
|
27 | + while (have_posts()) : the_post(); |
|
28 | 28 | |
29 | 29 | /* |
30 | 30 | * Include the Post-Format-specific template for the content. |
31 | 31 | * If you want to override this in a child theme, then include a file |
32 | 32 | * called content-___.php (where ___ is the Post Format name) and that will be used instead. |
33 | 33 | */ |
34 | - get_template_part( 'template-parts/content', get_post_format() ); |
|
34 | + get_template_part('template-parts/content', get_post_format()); |
|
35 | 35 | |
36 | 36 | endwhile; |
37 | 37 | |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | |
40 | 40 | else : |
41 | 41 | |
42 | - get_template_part( 'template-parts/content', 'none' ); |
|
42 | + get_template_part('template-parts/content', 'none'); |
|
43 | 43 | |
44 | 44 | endif; ?> |
45 | 45 |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The template for displaying archive pages. |
|
4 | - * |
|
5 | - * @link https://codex.wordpress.org/Template_Hierarchy |
|
6 | - * |
|
7 | - * @package Lighthouse |
|
8 | - */ |
|
3 | + * The template for displaying archive pages. |
|
4 | + * |
|
5 | + * @link https://codex.wordpress.org/Template_Hierarchy |
|
6 | + * |
|
7 | + * @package Lighthouse |
|
8 | + */ |
|
9 | 9 | |
10 | 10 | get_header(); ?> |
11 | 11 |
@@ -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,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> |
@@ -6,9 +6,9 @@ discard block |
||
6 | 6 | */ |
7 | 7 | get_header(); ?> |
8 | 8 | |
9 | -<?php while ( have_posts() ) : the_post(); |
|
10 | -$thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full'); |
|
11 | -$url = $thumb[0];?> |
|
9 | +<?php while (have_posts()) : the_post(); |
|
10 | +$thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); |
|
11 | +$url = $thumb[0]; ?> |
|
12 | 12 | |
13 | 13 | <section class="header-area" style="background-image:url('<?php echo $url; ?>'); background-color:<?php the_field('page_background_color'); ?>"> |
14 | 14 | <img class="img-responsive" src="<?php echo $url; ?>" style="visibility:hidden"> |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | <h1 class="page-title">Floor Everyone</h1> |
26 | 26 | </div> |
27 | 27 | <div class="floor-text load-fadeIn"><?php the_field('floor_everyone'); ?></div> |
28 | - <a class="btn-link" href="<?php echo esc_url( home_url( '/' ) ); ?>contact-us/"><button class="site-btn load-fadeInUp">Contact Us</button></a> |
|
28 | + <a class="btn-link" href="<?php echo esc_url(home_url('/')); ?>contact-us/"><button class="site-btn load-fadeInUp">Contact Us</button></a> |
|
29 | 29 | </section> |
30 | 30 | |
31 | 31 | <section class="academy-latest-post"> |
@@ -37,7 +37,7 @@ 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'); |
|
40 | + $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), 'blog-listing'); |
|
41 | 41 | $url = $thumb[0]; |
42 | 42 | ?> |
43 | 43 | <div class="thumbnail blog-item-img" style="background-image:url('<?php echo $url; ?>'); background-color:<?php the_field('post_background_color'); ?>"> |
@@ -57,7 +57,7 @@ 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'); |
|
60 | + $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), 'blog-listing'); |
|
61 | 61 | $url = $thumb[0]; |
62 | 62 | ?> |
63 | 63 | <div class="thumbnail blog-item-img" style="background-image:url('<?php echo $url; ?>'); background-color:<?php the_field('post_background_color'); ?>"> |
@@ -90,10 +90,10 @@ discard block |
||
90 | 90 | <img class="img-responsive load-fadeIn" src="<?php the_field('feature_image_above_coach_list'); ?>"> |
91 | 91 | </section> |
92 | 92 | |
93 | -<?php if( have_rows('coach_list') ): ?> |
|
93 | +<?php if (have_rows('coach_list')): ?> |
|
94 | 94 | <section class="coach-list"> |
95 | 95 | <ul class="coach_list"> |
96 | - <?php while( have_rows('main_coaches') ): the_row(); |
|
96 | + <?php while (have_rows('main_coaches')): the_row(); |
|
97 | 97 | $coach_name = get_sub_field('coach_name'); |
98 | 98 | $coach_photo = get_sub_field('coach_photo'); |
99 | 99 | $coach_biography = get_sub_field('coach_biography'); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | <?php endwhile; ?> |
111 | 111 | </ul> |
112 | 112 | <ul id="other-coach-box" class="coach_list"> |
113 | - <?php while( have_rows('coach_list') ): the_row(); |
|
113 | + <?php while (have_rows('coach_list')): the_row(); |
|
114 | 114 | $coach_name = get_sub_field('coach_name'); |
115 | 115 | $coach_photo = get_sub_field('coach_photo'); |
116 | 116 | $coach_biography = get_sub_field('coach_biography'); |
@@ -6,9 +6,9 @@ discard block |
||
6 | 6 | */ |
7 | 7 | get_header(); ?> |
8 | 8 | |
9 | -<?php while ( have_posts() ) : the_post(); |
|
10 | - $thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full'); |
|
11 | - $url = $thumb[0];?> |
|
9 | +<?php while (have_posts()) : the_post(); |
|
10 | + $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); |
|
11 | + $url = $thumb[0]; ?> |
|
12 | 12 | |
13 | 13 | <section class="header-area" style="background-image:url('<?php echo $url; ?>'); background-color:<?php the_field('page_background_color'); ?>"> |
14 | 14 | <img class="img-responsive" src="<?php echo $url; ?>" style="visibility:hidden"> |
@@ -24,13 +24,13 @@ discard block |
||
24 | 24 | <?php the_content(); ?> |
25 | 25 | </section> |
26 | 26 | |
27 | -<?php if( have_rows('achievements_local') ): ?> |
|
27 | +<?php if (have_rows('achievements_local')): ?> |
|
28 | 28 | <section class="achievements"> |
29 | 29 | <div class="title-area"> |
30 | 30 | <h1 class="page-title">Local</h1> |
31 | 31 | </div> |
32 | 32 | <ul id="accordion-local" class="achievements-list"> |
33 | - <?php while( have_rows('achievements_local') ): the_row(); |
|
33 | + <?php while (have_rows('achievements_local')): the_row(); |
|
34 | 34 | $years = get_sub_field('years'); |
35 | 35 | $texts = get_sub_field('texts'); |
36 | 36 | ?> |
@@ -44,13 +44,13 @@ discard block |
||
44 | 44 | </section> |
45 | 45 | <?php endif; ?> |
46 | 46 | |
47 | -<?php if( have_rows('achievements_local') ): ?> |
|
47 | +<?php if (have_rows('achievements_local')): ?> |
|
48 | 48 | <section class="achievements"> |
49 | 49 | <div class="title-area"> |
50 | 50 | <h1 class="page-title">Regional</h1> |
51 | 51 | </div> |
52 | 52 | <ul id="accordion-regional" class="achievements-list"> |
53 | - <?php while( have_rows('achievements_regional') ): the_row(); |
|
53 | + <?php while (have_rows('achievements_regional')): the_row(); |
|
54 | 54 | $years = get_sub_field('years'); |
55 | 55 | $texts = get_sub_field('texts'); |
56 | 56 | ?> |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Template Name: Divisions |
|
4 | - * |
|
5 | - * @package Lighthouse |
|
6 | - */ |
|
3 | + * Template Name: Divisions |
|
4 | + * |
|
5 | + * @package Lighthouse |
|
6 | + */ |
|
7 | 7 | get_header(); ?> |
8 | 8 | |
9 | 9 | <?php while ( have_posts() ) : the_post(); |
@@ -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> |
@@ -7,17 +7,17 @@ discard block |
||
7 | 7 | ?><!DOCTYPE html> |
8 | 8 | <html <?php language_attributes(); ?>> |
9 | 9 | <head> |
10 | - <meta charset="<?php bloginfo( 'charset' ); ?>"> |
|
10 | + <meta charset="<?php bloginfo('charset'); ?>"> |
|
11 | 11 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
12 | 12 | <link rel="profile" href="http://gmpg.org/xfn/11"> |
13 | - <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> |
|
13 | + <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"> |
|
14 | 14 | |
15 | 15 | <?php wp_head(); ?> |
16 | 16 | </head> |
17 | 17 | |
18 | 18 | <body <?php body_class(); ?>> |
19 | 19 | <div id="page" class="site"> |
20 | - <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'lighthouse' ); ?></a> |
|
20 | + <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e('Skip to content', 'lighthouse'); ?></a> |
|
21 | 21 | |
22 | 22 | <header id="masthead" class="site-header" role="banner"> |
23 | 23 | <div class="container"> |
@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | </div> |
39 | 39 | </div> |
40 | 40 | <div class="col-sm-12 col-md-2 col-lg-2 header-center-area"> |
41 | - <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"> |
|
42 | - <img src="<?php echo( get_header_image() ); ?>" alt="<?php echo( get_bloginfo( 'title' ) ); ?>" /> |
|
41 | + <a href="<?php echo esc_url(home_url('/')); ?>" rel="home"> |
|
42 | + <img src="<?php echo(get_header_image()); ?>" alt="<?php echo(get_bloginfo('title')); ?>" /> |
|
43 | 43 | </a> |
44 | 44 | |
45 | 45 | <div class="iv-module live-search"> |
@@ -52,9 +52,9 @@ discard block |
||
52 | 52 | <div class="container"> |
53 | 53 | <div class="row"> |
54 | 54 | <div class="col-md-12"> |
55 | - <form method="get" action="<?php echo esc_url( home_url( '/' ) );?>"> |
|
56 | - <label for="s"><?php _e('Type & hit enter to search', 'ivan_domain');?></label> |
|
57 | - <input type="search" name="s" id="s" placeholder="<?php echo esc_attr__('Type & hit enter to search', 'lighthouse');?>" /> |
|
55 | + <form method="get" action="<?php echo esc_url(home_url('/')); ?>"> |
|
56 | + <label for="s"><?php _e('Type & hit enter to search', 'ivan_domain'); ?></label> |
|
57 | + <input type="search" name="s" id="s" placeholder="<?php echo esc_attr__('Type & hit enter to search', 'lighthouse'); ?>" /> |
|
58 | 58 | <a class="submit-form" href="#"><i class="fa fa-search"></i></a> |
59 | 59 | <div class="clearfix"></div> |
60 | 60 | </form> |
@@ -81,9 +81,9 @@ discard block |
||
81 | 81 | <div class="container"> |
82 | 82 | <div class="row"> |
83 | 83 | <div class="col-md-12"> |
84 | - <form method="get" action="<?php echo esc_url( home_url( '/' ) );?>"> |
|
85 | - <label for="s"><?php _e('Type & hit enter', 'ivan_domain');?></label> |
|
86 | - <input type="search" name="s" id="s" placeholder="<?php echo esc_attr__('Type & hit enter', 'lighthouse');?>" /> |
|
84 | + <form method="get" action="<?php echo esc_url(home_url('/')); ?>"> |
|
85 | + <label for="s"><?php _e('Type & hit enter', 'ivan_domain'); ?></label> |
|
86 | + <input type="search" name="s" id="s" placeholder="<?php echo esc_attr__('Type & hit enter', 'lighthouse'); ?>" /> |
|
87 | 87 | <a class="submit-form" href="#"><i class="fa fa-search"></i></a> |
88 | 88 | <div class="clearfix"></div> |
89 | 89 | </form> |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | <div class="container"> |
113 | 113 | <div class="row"> |
114 | 114 | <main id="main" class="site-main" role="main"> |
115 | - <?php while ( have_posts() ) : the_post(); ?> |
|
115 | + <?php while (have_posts()) : the_post(); ?> |
|
116 | 116 | <section class="home-content"> |
117 | 117 | <?php the_content(); ?> |
118 | 118 | </section> |
@@ -130,9 +130,9 @@ discard block |
||
130 | 130 | |
131 | 131 | <footer id="colophon" class="site-footer" role="contentinfo"> |
132 | 132 | <div class="site-info"> |
133 | - <a href="<?php echo esc_url( __( 'https://wordpress.org/', 'lighthouse' ) ); ?>"><?php printf( esc_html__( 'Proudly powered by %s', 'lighthouse' ), 'WordPress' ); ?></a> |
|
133 | + <a href="<?php echo esc_url(__('https://wordpress.org/', 'lighthouse')); ?>"><?php printf(esc_html__('Proudly powered by %s', 'lighthouse'), 'WordPress'); ?></a> |
|
134 | 134 | <span class="sep"> | </span> |
135 | - <?php printf( esc_html__( 'Theme: %1$s by %2$s.', 'lighthouse' ), 'lighthouse', '<a href="http://injectedmotion.com" rel="designer">Injected Motion</a>' ); ?> |
|
135 | + <?php printf(esc_html__('Theme: %1$s by %2$s.', 'lighthouse'), 'lighthouse', '<a href="http://injectedmotion.com" rel="designer">Injected Motion</a>'); ?> |
|
136 | 136 | </div><!-- .site-info --> |
137 | 137 | </footer><!-- #colophon --> |
138 | 138 | </div><!-- #page --> |
@@ -6,7 +6,7 @@ |
||
6 | 6 | */ |
7 | 7 | get_header(); ?> |
8 | 8 | |
9 | -<?php while ( have_posts() ) : the_post(); ?> |
|
9 | +<?php while (have_posts()) : the_post(); ?> |
|
10 | 10 | |
11 | 11 | <div class="load-pulse" id="map-canvas"> </div> |
12 | 12 |
@@ -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(); ?> |
@@ -6,9 +6,9 @@ discard block |
||
6 | 6 | */ |
7 | 7 | get_header(); ?> |
8 | 8 | |
9 | -<?php while ( have_posts() ) : the_post(); |
|
10 | - $thumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full'); |
|
11 | - $url = $thumb[0];?> |
|
9 | +<?php while (have_posts()) : the_post(); |
|
10 | + $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full'); |
|
11 | + $url = $thumb[0]; ?> |
|
12 | 12 | |
13 | 13 | <section class="header-area" style="background-image:url('<?php echo $url; ?>'); background-color:<?php the_field('page_background_color'); ?>"> |
14 | 14 | <img class="img-responsive" src="<?php echo $url; ?>" style="visibility:hidden"> |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | <h1 class="page-title">VALHALL/TFS</h1> |
39 | 39 | </div> |
40 | 40 | <div class="profile-text load-fadeInUp"><?php the_field('profile_valhall_tfs'); ?></div> |
41 | -<a class="btn-link" href="<?php echo esc_url( home_url( '/' ) ); ?>court-booking/"><button class="site-btn load-fadeInUp">Book a Court</button></a> |
|
41 | +<a class="btn-link" href="<?php echo esc_url(home_url('/')); ?>court-booking/"><button class="site-btn load-fadeInUp">Book a Court</button></a> |
|
42 | 42 | </section> |
43 | 43 | |
44 | 44 | <section class="profile-academy"> |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | <h1 class="page-title">The Academy</h1> |
48 | 48 | </div> |
49 | 49 | <div class="profile-text load-fadeInUp"><?php the_field('profile_academy'); ?></div> |
50 | -<a class="btn-link" href="<?php echo esc_url( home_url( '/' ) ); ?>academy/"><button class="site-btn load-fadeInUp">Learn More</button></a> |
|
50 | +<a class="btn-link" href="<?php echo esc_url(home_url('/')); ?>academy/"><button class="site-btn load-fadeInUp">Learn More</button></a> |
|
51 | 51 | </section> |
52 | 52 | |
53 | 53 | <?php endwhile; // end of the loop. ?> |
@@ -1,9 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Template Name: Affinity |
|
4 | - * |
|
5 | - * @package Lighthouse |
|
6 | - */ |
|
3 | + * Template Name: Affinity |
|
4 | + * |
|
5 | + * @package Lighthouse |
|
6 | + */ |
|
7 | 7 | get_header(); ?> |
8 | 8 | |
9 | 9 | <?php while ( have_posts() ) : the_post(); |
@@ -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> |
@@ -47,20 +47,20 @@ discard block |
||
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 | 57 | $links = array(); |
58 | 58 | |
59 | - foreach ( $terms as $term ) { |
|
59 | + foreach ($terms as $term) { |
|
60 | 60 | $links[] = $term->name; |
61 | 61 | } |
62 | 62 | |
63 | - $tax_links = join( " ", str_replace(' ', '-', $links)); |
|
63 | + $tax_links = join(" ", str_replace(' ', '-', $links)); |
|
64 | 64 | $tax = strtolower($tax_links); |
65 | 65 | else : |
66 | 66 | $tax = ''; |
@@ -69,7 +69,7 @@ discard block |
||
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'); |
|
72 | + $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), 'blog-listing'); |
|
73 | 73 | $url = $thumb[0]; |
74 | 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'); ?>"> |
@@ -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; ?>"> |