| 1 |
<?php |
| 2 |
|
| 3 |
namespace Templately\Builder\Types; |
| 4 |
|
| 5 |
class DocsSingle extends Single { |
| 6 |
public static function get_type(): string { |
| 7 |
return 'docs_single'; |
| 8 |
} |
| 9 |
|
| 10 |
public static function get_title(): string { |
| 11 |
return __( 'Doc Single', 'templately' ); |
| 12 |
} |
| 13 |
|
| 14 |
public static function get_plural_title(): string { |
| 15 |
return __( 'Docs Single', 'templately' ); |
| 16 |
} |
| 17 |
|
| 18 |
public static function get_properties( $import_settings = [] ): array { |
| 19 |
$properties = parent::get_properties(); |
| 20 |
|
| 21 |
$properties['condition'] = 'include/singular/docs'; |
| 22 |
$properties['builder'] = post_type_exists( 'docs' ); |
| 23 |
|
| 24 |
return $properties; |
| 25 |
} |
| 26 |
} |
| 27 |
|