@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | $name = (string) $name; |
135 | 135 | if ( '' !== $name ){ |
136 | 136 | $template = "{$slug}-{$name}.php"; |
137 | - }else{ |
|
137 | + } else{ |
|
138 | 138 | $template = "{$slug}.php"; |
139 | 139 | } |
140 | 140 | $original_name = $template; |
@@ -142,15 +142,15 @@ discard block |
||
142 | 142 | |
143 | 143 | if ( '' == locate_template( array( $template ) ) && file_exists( $path.'templates/'.$template) ) { |
144 | 144 | $template = $path.'templates/'.$template; |
145 | - }elseif(file_exists( get_stylesheet_directory().'/'.$template)){ |
|
145 | + } elseif(file_exists( get_stylesheet_directory().'/'.$template)){ |
|
146 | 146 | $template = get_stylesheet_directory().'/'.$template; |
147 | - }else{ |
|
147 | + } else{ |
|
148 | 148 | $template = false; |
149 | 149 | } |
150 | 150 | |
151 | 151 | if(false !== $template){ |
152 | 152 | load_template( $template, false ); |
153 | - }else { |
|
153 | + } else { |
|
154 | 154 | echo wp_kses_post('<p>No '.$original_name.' can be found.</p>'); |
155 | 155 | } |
156 | 156 | } |
@@ -126,7 +126,7 @@ |
||
126 | 126 | public function post_types_slugs_filter($post_types){ |
127 | 127 | if(is_array($post_types)){ |
128 | 128 | $post_types = array_merge($post_types,$this->post_type_slugs); |
129 | - }else{ |
|
129 | + } else{ |
|
130 | 130 | $post_types = $this->post_type_slugs; |
131 | 131 | } |
132 | 132 | return $post_types; |
@@ -32,9 +32,12 @@ |
||
32 | 32 | |
33 | 33 | </div> |
34 | 34 | |
35 | - <?php else : ?> |
|
35 | + <?php else { |
|
36 | + : ?> |
|
36 | 37 | |
37 | - <?php get_template_part( 'partials/content', 'none' ); ?> |
|
38 | + <?php get_template_part( 'partials/content', 'none' ); |
|
39 | +} |
|
40 | +?> |
|
38 | 41 | |
39 | 42 | <?php endif; ?> |
40 | 43 |