Function simmer_list_ingredients
Print or return an HTML list of ingredients for the current recipe.
Package: Simmer\Recipes\Items\Ingredients
Since: 1.0.0
Located at core/recipes/items/ingredients/template-functions.php
Since: 1.0.0
Located at core/recipes/items/ingredients/template-functions.php
array |
$args = array() |
<p>{ The custom arguments. Optional.</p> <pre><code>$type bool $show_heading Whether show the list heading. Default "true". $type string $heading The list heading text. Default "Ingredients". $type string $heading_type The heading tag. Default "h3". $type string $list_type The list tag. Default "ul". $type string $list_class The class(es) to apply to the list. Default "simmer-ingredients". $type string $item_type The list item tag. Default "li". $type string $item_class The class(es) to apply to the list items. Default "simmer-ingredient". $type string $none_message The message when there are no ingredients. Default "This recipe has no ingredients". $type string $none_class The class to apply to the "none" message. Default "simmer-info". $type bool $echo Whether to echo or return the generated list. Default "true". </code></pre> <p>}</p> |
string
|
$output The HTML list of ingredients. |