| 1 |
<?php |
| 2 |
/** |
| 3 |
* Recipe cooking time block schema template. |
| 4 |
* |
| 5 |
* @package Yoast\WP\SEO\Schema_Templates |
| 6 |
*/ |
| 7 |
|
| 8 |
use Yoast\WP\SEO\Schema_Templates\Assets\Icons; |
| 9 |
|
| 10 |
// phpcs:disable WordPress.Security.EscapeOutput -- Reason: The Icons contains safe svg. |
| 11 |
?> |
| 12 |
{{block name="yoast/cooking-time" title="<?php esc_attr_e( 'Recipe cooking time', 'wordpress-seo' ); ?>" category="yoast-structured-data-blocks" parent=[ "yoast/recipe" ] description="<?php esc_html_e( 'The time it takes to actually cook the dish.', 'wordpress-seo' ); ?>" icon="<?php echo Icons::heroicons_clock(); ?>" supports={"multiple": false} }} |
| 13 |
<div class={{class-name}}> |
| 14 |
{{heading name="title" default-heading-level=3 tags=[ "h2", "h3", "h4", "h5", "h6", "strong" ] default="<?php esc_attr_e( 'Cooking time', 'wordpress-seo' ); ?>" }} |
| 15 |
{{duration name="cooking-time" }} |
| 16 |
</div> |
| 17 |
|