| 1 |
<?php |
| 2 |
|
| 3 |
namespace Templately\Builder\Conditions; |
| 4 |
|
| 5 |
class General extends Condition { |
| 6 |
protected $sub_conditions = [ |
| 7 |
'archive', |
| 8 |
'singular' |
| 9 |
]; |
| 10 |
|
| 11 |
public function get_name(): string { |
| 12 |
return 'general'; |
| 13 |
} |
| 14 |
|
| 15 |
public function get_label(): string { |
| 16 |
return __( "General", 'templately' ); |
| 17 |
} |
| 18 |
|
| 19 |
public function get_type(): string { |
| 20 |
return 'general'; |
| 21 |
} |
| 22 |
|
| 23 |
public function get_all_label(): string { |
| 24 |
return esc_html__( 'Entire Site', 'templately' ); |
| 25 |
} |
| 26 |
} |