{assign var=headerBricks value=$BricksManager->getBricksByArea('startpageHeader', $Site)} {foreach from=$headerBricks item=Brick} {assign var=id value=''} {if $Brick->getSetting('navText')} {if $Brick->getSetting('navTarget')} {assign var=id value={'id="'}|cat:{$Brick->getSetting('navTarget')|replace:' ':'-'|escape:"url"}|cat:'"' } {else} {assign var=id value={'id="'}|cat:{$Brick->getSetting('navText')|replace:' ':'-'|escape:"url"}|cat:'"' } {/if} {/if} {assign var=classes value=''} {if $Brick->getAttribute('classes')|count > 0} {assign var=classes value=''} {foreach from=$Brick->getAttribute('classes') item=css} {assign var=classes value=$classes|cat:' '|cat:'brick-container__'|cat:$css} {/foreach} {/if} {if $Brick->getSetting( 'brickFullWidth' )}
{$Brick->create()}
{else}
{$Brick->create()}
{/if} {/foreach}
{assign var=startpageContentBricks value=$BricksManager->getBricksByArea('startpageContent', $Site)}
{foreach from=$startpageContentBricks item=Brick} {assign var=id value=''} {if $Brick->getSetting('navText')} {if $Brick->getSetting('navTarget')} {assign var=id value={'id="'}|cat:{$Brick->getSetting('navTarget')|replace:' ':'-'|escape:"url"}|cat:'"' } {else} {assign var=id value={'id="'}|cat:{$Brick->getSetting('navText')|replace:' ':'-'|escape:"url"}|cat:'"' } {/if} {/if} {assign var=classes value=''} {if $Brick->getAttribute('classes')|count > 0} {assign var=classes value=''} {foreach from=$Brick->getAttribute('classes') item=css} {assign var=classes value=$classes|cat:' '|cat:'brick-container__'|cat:$css} {/foreach} {/if} {if $Brick->getSetting( 'brickFullWidth' )}
{$Brick->create()}
{else}
{$Brick->create()}
{/if} {/foreach}