AbstractPageTemplate.php
1 year ago
AbstractTemplate.php
10 months ago
AbstractTemplateCompatibility.php
1 year ago
AbstractTemplatePart.php
2 years ago
AbstractTemplateWithFallback.php
7 months ago
ArchiveProductTemplatesCompatibility.php
1 year ago
CartTemplate.php
10 months ago
CheckoutHeaderTemplate.php
2 years ago
CheckoutTemplate.php
10 months ago
ClassicTemplatesCompatibility.php
1 year ago
ComingSoonSocialLinksTemplate.php
1 year ago
ComingSoonTemplate.php
1 year ago
ExternalProductAddToCartWithOptionsTemplate.php
1 year ago
GroupedProductAddToCartWithOptionsTemplate.php
1 year ago
MiniCartTemplate.php
2 years ago
OrderConfirmationTemplate.php
1 year ago
ProductAttributeTemplate.php
7 months ago
ProductBrandTemplate.php
7 months ago
ProductCatalogTemplate.php
7 months ago
ProductCategoryTemplate.php
7 months ago
ProductSearchResultsTemplate.php
7 months ago
ProductTagTemplate.php
7 months ago
SimpleProductAddToCartWithOptionsTemplate.php
1 year ago
SingleProductTemplate.php
2 months ago
SingleProductTemplateCompatibility.php
10 months ago
VariableProductAddToCartWithOptionsTemplate.php
1 year ago
CheckoutHeaderTemplate.php
48 lines
| 1 | <?php |
| 2 | namespace Automattic\WooCommerce\Blocks\Templates; |
| 3 | |
| 4 | /** |
| 5 | * CheckoutHeader Template class. |
| 6 | * |
| 7 | * @internal |
| 8 | */ |
| 9 | class CheckoutHeaderTemplate extends AbstractTemplatePart { |
| 10 | |
| 11 | /** |
| 12 | * The slug of the template. |
| 13 | * |
| 14 | * @var string |
| 15 | */ |
| 16 | const SLUG = 'checkout-header'; |
| 17 | |
| 18 | /** |
| 19 | * The template part area where the template part belongs. |
| 20 | * |
| 21 | * @var string |
| 22 | */ |
| 23 | public $template_area = 'header'; |
| 24 | |
| 25 | /** |
| 26 | * Initialization method. |
| 27 | */ |
| 28 | public function init() {} |
| 29 | |
| 30 | /** |
| 31 | * Returns the title of the template. |
| 32 | * |
| 33 | * @return string |
| 34 | */ |
| 35 | public function get_template_title() { |
| 36 | return _x( 'Checkout Header', 'Template name', 'woocommerce' ); |
| 37 | } |
| 38 | |
| 39 | /** |
| 40 | * Returns the description of the template. |
| 41 | * |
| 42 | * @return string |
| 43 | */ |
| 44 | public function get_template_description() { |
| 45 | return __( 'Template used to display the simplified Checkout header.', 'woocommerce' ); |
| 46 | } |
| 47 | } |
| 48 |