@@ -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 |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | public function post_types_slugs_filter($post_types){ |
145 | 145 | if(is_array($post_types)){ |
146 | 146 | $post_types = array_merge($post_types,$this->post_type_slugs); |
147 | - }else{ |
|
147 | + } else{ |
|
148 | 148 | $post_types = $this->post_type_slugs; |
149 | 149 | } |
150 | 150 | return $post_types; |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | public function post_types_filter($post_types){ |
157 | 157 | if(is_array($post_types) && is_array($this->post_types)){ |
158 | 158 | $post_types = array_merge($post_types,$this->post_types); |
159 | - }elseif(is_array($this->post_types)){ |
|
159 | + } elseif(is_array($this->post_types)){ |
|
160 | 160 | $post_types = $this->post_types; |
161 | 161 | } |
162 | 162 | return $post_types; |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | public function post_types_singular_filter($post_types_singular){ |
169 | 169 | if(is_array($post_types_singular) && is_array($this->post_types_singular)){ |
170 | 170 | $post_types_singular = array_merge($post_types_singular,$this->post_types_singular); |
171 | - }elseif(is_array($this->post_types_singular)){ |
|
171 | + } elseif(is_array($this->post_types_singular)){ |
|
172 | 172 | $post_types_singular = $this->post_types_singular; |
173 | 173 | } |
174 | 174 | return $post_types_singular; |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | public function taxonomies_filter($taxonomies){ |
181 | 181 | if(is_array($taxonomies) && is_array($this->taxonomies)){ |
182 | 182 | $taxonomies = array_merge($taxonomies,$this->taxonomies); |
183 | - }elseif(is_array($this->taxonomies)){ |
|
183 | + } elseif(is_array($this->taxonomies)){ |
|
184 | 184 | $taxonomies = $this->taxonomies; |
185 | 185 | } |
186 | 186 | return $taxonomies; |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | public function taxonomies_plural_filter($taxonomies_plural){ |
193 | 193 | if(is_array($taxonomies_plural) && is_array($this->taxonomies_plural)){ |
194 | 194 | $taxonomies_plural = array_merge($taxonomies_plural,$this->taxonomies_plural); |
195 | - }elseif(is_array($this->taxonomies_plural)){ |
|
195 | + } elseif(is_array($this->taxonomies_plural)){ |
|
196 | 196 | $taxonomies_plural = $this->taxonomies_plural; |
197 | 197 | } |
198 | 198 | return $taxonomies_plural; |
@@ -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 | } |