| 1 |
<?php |
| 2 |
/** |
| 3 |
* Recipe instructions 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 |
|
| 13 |
{{block name="yoast/recipe-instructions" title="<?php esc_attr_e( 'Recipe instructions', 'wordpress-seo' ); ?>" description="<?php esc_attr_e( 'The steps of making the recipe, in the form of an ordered list with HowToStep and/or HowToSection items.', 'wordpress-seo' ); ?>" icon="<?php echo Icons::heroicons_book_open(); ?>" category="yoast-structured-data-blocks" parent=[ "yoast/recipe" ] supports={"multiple": false} }} |
| 14 |
<div class={{class-name}}> |
| 15 |
{{heading name="title" defaultHeadingLevel=3 placeholder="<?php esc_attr_e( 'Instructions title', 'wordpress-seo' ); ?>" default="<?php esc_attr_e( 'Instructions', 'wordpress-seo' ); ?>" }} |
| 16 |
{{rich-text name="instructions" tag="ol" multiline="li" placeholder="<?php esc_attr_e( 'Enter step', 'wordpress-seo' ); ?>" }} |
| 17 |
</div> |
| 18 |
|