core/Container/Term_Meta_Container.php 1 location
|
@@ 87-94 (lines=8) @@
|
| 84 |
|
* |
| 85 |
|
* @return bool True if the container is allowed to be attached |
| 86 |
|
**/ |
| 87 |
|
public function is_valid_attach_for_request() { |
| 88 |
|
$request_taxonomy = isset( $_GET['taxonomy'] ) ? $_GET['taxonomy'] : ''; |
| 89 |
|
if ( ! empty( $request_taxonomy ) && in_array( $request_taxonomy, $this->settings['taxonomy'] ) ) { |
| 90 |
|
return true; |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
return false; |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
/** |
| 97 |
|
* Check container attachment rules against object id |
core/Container/Theme_Options_Container.php 1 location
|
@@ 142-149 (lines=8) @@
|
| 139 |
|
/** |
| 140 |
|
* Whether this container is currently viewed. |
| 141 |
|
**/ |
| 142 |
|
public function should_activate() { |
| 143 |
|
$request_page = isset( $_GET['page'] ) ? $_GET['page'] : ''; |
| 144 |
|
if ( ! empty( $request_page ) && $request_page === $this->settings['file'] ) { |
| 145 |
|
return true; |
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
return false; |
| 149 |
|
} |
| 150 |
|
|
| 151 |
|
/** |
| 152 |
|
* Output the container markup |