| 1 |
<?php |
| 2 |
|
| 3 |
namespace Templately\Builder\Types; |
| 4 |
|
| 5 |
class Post extends BaseTemplate { |
| 6 |
public static function get_type(): string { |
| 7 |
return 'wp-post'; |
| 8 |
} |
| 9 |
|
| 10 |
public static function get_title(): string { |
| 11 |
return __( 'Post', 'templately' ); |
| 12 |
} |
| 13 |
|
| 14 |
public static function get_plural_title(): string { |
| 15 |
return __( 'Posts', 'templately' ); |
| 16 |
} |
| 17 |
|
| 18 |
public static function get_properties(): array { |
| 19 |
$properties = parent::get_properties(); |
| 20 |
|
| 21 |
$properties['support_wp_page_templates'] = true; |
| 22 |
$properties['cpt'] = 'post'; |
| 23 |
$properties['builder'] = false; |
| 24 |
|
| 25 |
return $properties; |
| 26 |
} |
| 27 |
} |