{* Smarty *}

Special Results

{capture assign='result_count'}{$specials|@count}{/capture} {foreach from=$specials item=special}
{$special.title}
Description
{$special.description}
Price
{$special.price}
Store Details
{if $associated_recipes[$special.id]|@count gt 0}Associated Recipes{else}No associated recipes.{/if} {foreach from=$associated_recipes[$special.id] item=recipe}
{$recipe.name}
Ingredients: {foreach from=$recipe.ingredients item=anIngredient name=specialingredients} {$anIngredient.name}{if !$smarty.foreach.specialingredients.last}, {/if} {/foreach}
{/foreach}
{if !$view_special}{/if} {if $user.isLoggedIn} {if isset($favorite.specials[$special.id])} [In Favorite Specials List] {else} [Add to Favorites] {/if} {/if}
{foreachelse} {if isset($smarty.get.q)} No matching results found. {/if} {/foreach}