2023-09-19 09:58:18 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import { TemplateDetails } from './types';
|
|
|
|
|
|
|
|
export const TYPES = {
|
|
|
|
cart: 'cart',
|
|
|
|
checkout: 'checkout',
|
|
|
|
};
|
|
|
|
export const PLACEHOLDERS = {
|
|
|
|
cart: 'cart',
|
|
|
|
checkout: 'checkout',
|
|
|
|
};
|
|
|
|
|
|
|
|
export const TEMPLATES: TemplateDetails = {
|
|
|
|
cart: {
|
|
|
|
type: TYPES.cart,
|
|
|
|
// Title shows up in the list view in the site editor.
|
2023-12-12 22:12:36 +00:00
|
|
|
title: __( 'Cart Shortcode', 'woocommerce' ),
|
2023-09-19 09:58:18 +00:00
|
|
|
// Description in the site editor.
|
|
|
|
description: __(
|
|
|
|
'Renders the classic cart shortcode.',
|
2023-12-12 22:12:36 +00:00
|
|
|
'woocommerce'
|
2023-09-19 09:58:18 +00:00
|
|
|
),
|
|
|
|
placeholder: PLACEHOLDERS.cart,
|
|
|
|
},
|
|
|
|
checkout: {
|
|
|
|
type: TYPES.checkout,
|
2023-12-12 22:12:36 +00:00
|
|
|
title: __( 'Checkout Cart', 'woocommerce' ),
|
2023-09-19 09:58:18 +00:00
|
|
|
description: __(
|
|
|
|
'Renders the classic checkout shortcode.',
|
2023-12-12 22:12:36 +00:00
|
|
|
'woocommerce'
|
2023-09-19 09:58:18 +00:00
|
|
|
),
|
|
|
|
placeholder: PLACEHOLDERS.checkout,
|
|
|
|
},
|
|
|
|
};
|