| 1 |
<?php |
| 2 |
|
| 3 |
namespace Templately\Builder\Conditions; |
| 4 |
|
| 5 |
class Search extends Condition { |
| 6 |
public function get_type(): string { |
| 7 |
return 'archive'; |
| 8 |
} |
| 9 |
|
| 10 |
public function get_priority(): int { |
| 11 |
return 70; |
| 12 |
} |
| 13 |
|
| 14 |
public function get_label(): string { |
| 15 |
return __( 'Search', 'templately' ); |
| 16 |
} |
| 17 |
|
| 18 |
public function get_name(): string { |
| 19 |
return 'search'; |
| 20 |
} |
| 21 |
|
| 22 |
public function check( $args = [] ): bool { |
| 23 |
return is_search(); |
| 24 |
} |
| 25 |
} |