@@ -37,9 +37,11 @@ |
||
| 37 | 37 | |
| 38 | 38 | the_posts_navigation(); |
| 39 | 39 | |
| 40 | - else : |
|
| 40 | + else { |
|
| 41 | + : |
|
| 41 | 42 | |
| 42 | 43 | get_template_part( 'template-parts/content', 'none' ); |
| 44 | + } |
|
| 43 | 45 | |
| 44 | 46 | endif; ?> |
| 45 | 47 | |
@@ -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> |
@@ -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 |
@@ -12,7 +12,9 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | // Exit if accessed directly |
| 15 | -if( !defined('ABSPATH') ) exit; |
|
| 15 | +if( !defined('ABSPATH') ) { |
|
| 16 | + exit; |
|
| 17 | +} |
|
| 16 | 18 | |
| 17 | 19 | |
| 18 | 20 | // global |
@@ -65,8 +65,11 @@ |
||
| 65 | 65 | <li class="li-field-type"> |
| 66 | 66 | <?php if( acf_field_type_exists($field['type']) ): ?> |
| 67 | 67 | <?php echo acf_get_field_type_label($field['type']); ?> |
| 68 | - <?php else: ?> |
|
| 69 | - <b><?php _e('Error', 'acf'); ?></b> <?php _e('Field type does not exist', 'acf'); ?> |
|
| 68 | + <?php else { |
|
| 69 | + : ?> |
|
| 70 | + <b><?php _e('Error', 'acf'); |
|
| 71 | +} |
|
| 72 | +?></b> <?php _e('Field type does not exist', 'acf'); ?> |
|
| 70 | 73 | <?php endif; ?> |
| 71 | 74 | </li> |
| 72 | 75 | </ul> |