|
@@ 131-138 (lines=8) @@
|
| 128 |
|
); |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
public function enable() { |
| 132 |
|
|
| 133 |
|
/** @var Template_Hierarchy $hierarchy */ |
| 134 |
|
$hierarchy = $this['hierarchy']; |
| 135 |
|
$hierarchy->enable(); |
| 136 |
|
add_filter( 'template_include', array( $this, 'template_include' ) ); |
| 137 |
|
add_filter( 'get_search_form', array( $this, 'get_search_form' ), 9 ); |
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
public function disable() { |
| 141 |
|
|
|
@@ 140-147 (lines=8) @@
|
| 137 |
|
add_filter( 'get_search_form', array( $this, 'get_search_form' ), 9 ); |
| 138 |
|
} |
| 139 |
|
|
| 140 |
|
public function disable() { |
| 141 |
|
|
| 142 |
|
/** @var Template_Hierarchy $hierarchy */ |
| 143 |
|
$hierarchy = $this['hierarchy']; |
| 144 |
|
$hierarchy->disable(); |
| 145 |
|
remove_filter( 'template_include', array( $this, 'template_include' ) ); |
| 146 |
|
remove_filter( 'get_search_form', array( $this, 'get_search_form' ), 9 ); |
| 147 |
|
} |
| 148 |
|
|
| 149 |
|
/** |
| 150 |
|
* @param string $template |