@@ -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 |
@@ -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 | } |
@@ -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 | } |
@@ -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 | } |
@@ -57,9 +57,11 @@ |
||
57 | 57 | |
58 | 58 | the_posts_navigation(); |
59 | 59 | |
60 | - else : |
|
60 | + else { |
|
61 | + : |
|
61 | 62 | |
62 | 63 | get_template_part( 'template-parts/content', 'none' ); |
64 | + } |
|
63 | 65 | |
64 | 66 | endif; ?> |
65 | 67 |
@@ -11,7 +11,10 @@ discard block |
||
11 | 11 | Domain Path: /lang |
12 | 12 | */ |
13 | 13 | |
14 | -if( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
|
14 | +if( ! defined( 'ABSPATH' ) ) { |
|
15 | + exit; |
|
16 | +} |
|
17 | +// Exit if accessed directly |
|
15 | 18 | |
16 | 19 | if( ! class_exists('acf') ) : |
17 | 20 | |
@@ -168,11 +171,15 @@ discard block |
||
168 | 171 | function init() { |
169 | 172 | |
170 | 173 | // bail early if a plugin called get_field early |
171 | - if( !did_action('plugins_loaded') ) return; |
|
174 | + if( !did_action('plugins_loaded') ) { |
|
175 | + return; |
|
176 | + } |
|
172 | 177 | |
173 | 178 | |
174 | 179 | // bail early if already init |
175 | - if( acf_get_setting('init') ) return; |
|
180 | + if( acf_get_setting('init') ) { |
|
181 | + return; |
|
182 | + } |
|
176 | 183 | |
177 | 184 | |
178 | 185 | // only run once |
@@ -85,8 +85,7 @@ |
||
85 | 85 | if( is_wp_error($request) || wp_remote_retrieve_response_code($request) != 200) |
86 | 86 | { |
87 | 87 | acf_add_admin_notice(__('<b>Error</b>. Could not load add-ons list', 'acf'), 'error'); |
88 | - } |
|
89 | - else |
|
88 | + } else |
|
90 | 89 | { |
91 | 90 | $this->view['json'] = json_decode( $request['body'], true ); |
92 | 91 | } |
@@ -436,7 +436,9 @@ |
||
436 | 436 | |
437 | 437 | |
438 | 438 | // validate field group |
439 | - if( empty($field_group) ) continue; |
|
439 | + if( empty($field_group) ) { |
|
440 | + continue; |
|
441 | + } |
|
440 | 442 | |
441 | 443 | |
442 | 444 | // load fields |