Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
15 | public function __construct() { |
||
16 | $term = get_queried_object(); |
||
17 | |||
18 | $options = array(); |
||
19 | |||
20 | if ( ! empty( $term->slug ) ) { |
||
21 | $taxonomy = $term->taxonomy; |
||
22 | |||
23 | $options[] = 'archive/taxonomy-' . $taxonomy . '-' . $term->slug; |
||
24 | $options[] = 'taxonomy-' . $taxonomy . '-' . $term->slug; |
||
25 | |||
26 | $options[] = 'archive/taxonomy-' . $taxonomy; |
||
27 | $options[] = 'taxonomy-' . $taxonomy; |
||
28 | } |
||
29 | $options[] = 'archive/taxonomy'; |
||
30 | $options[] = 'taxonomy'; |
||
31 | |||
32 | $this->set_options( $options ); |
||
33 | } |
||
34 | } |
||
35 |