AbstractPageTemplate.php
2 years ago
AbstractTemplate.php
2 years ago
AbstractTemplateCompatibility.php
2 years ago
AbstractTemplatePart.php
2 years ago
ArchiveProductTemplatesCompatibility.php
2 years ago
CartTemplate.php
2 years ago
CheckoutHeaderTemplate.php
2 years ago
CheckoutTemplate.php
2 years ago
ClassicTemplatesCompatibility.php
2 years ago
ComingSoonTemplate.php
2 years ago
MiniCartTemplate.php
2 years ago
OrderConfirmationTemplate.php
2 years ago
ProductAttributeTemplate.php
2 years ago
ProductCatalogTemplate.php
2 years ago
ProductCategoryTemplate.php
2 years ago
ProductFiltersOverlayTemplate.php
1 year ago
ProductFiltersTemplate.php
1 year ago
ProductSearchResultsTemplate.php
1 year ago
ProductTagTemplate.php
2 years ago
SingleProductTemplate.php
2 years ago
SingleProductTemplateCompatibility.php
2 years ago
AbstractTemplate.php
39 lines
| 1 | <?php |
| 2 | namespace Automattic\WooCommerce\Blocks\Templates; |
| 3 | |
| 4 | /** |
| 5 | * AbstractTemplate class. |
| 6 | * |
| 7 | * Shared logic for templates. |
| 8 | * |
| 9 | * @internal |
| 10 | */ |
| 11 | abstract class AbstractTemplate { |
| 12 | |
| 13 | /** |
| 14 | * The slug of the template. |
| 15 | * |
| 16 | * @var string |
| 17 | */ |
| 18 | const SLUG = ''; |
| 19 | |
| 20 | /** |
| 21 | * Initialization method. |
| 22 | */ |
| 23 | abstract public function init(); |
| 24 | |
| 25 | /** |
| 26 | * Should return the title of the template. |
| 27 | * |
| 28 | * @return string |
| 29 | */ |
| 30 | abstract public function get_template_title(); |
| 31 | |
| 32 | /** |
| 33 | * Should return the description of the template. |
| 34 | * |
| 35 | * @return string |
| 36 | */ |
| 37 | abstract public function get_template_description(); |
| 38 | } |
| 39 |