{assign var="discover_menu_exists" value=false} {foreach from=$blocks key=id item=block} {if not empty($block->template)} {if $id != "mbMenu" && $id != "mbSpecials" && $id != "mbIdentification"} {include file=$block->template|@get_extent:$id } {/if} {if $discover_menu_exists == false && ($id == "mbSpecials" or $id == "mbMenu")}
  • {'Discover'|@translate}
      {if not empty($blocks.mbMenu->template)} {include file=$blocks.mbMenu->template} {/if} {if not empty($blocks.mbSpecials->template)} {if not empty($blocks.mbMenu->template)}
    • {/if} {include file=$blocks.mbSpecials->template} {/if}
  • {assign var="discover_menu_exists" value=true} {/if} {else} {$block->raw_content} {/if} {/foreach} {* use foreach again for plugin compatibility, no idea why $blocks.mbIdentification->template breaks SocialConnect, for example *} {foreach from=$blocks key=id item=block} {if not empty($block->template) && $id == "mbIdentification"} {include file=$block->template|@get_extent:$id } {/if} {/foreach}