Mistři v programování na #hovnokod

PHP #778

I takhle se dá řešit přepínání stránek.

{if $actualPageStatic == 'homepage' }
            {include file="modulFront/Static/defaultPage.tpl"}
        {elseif $url.request_uri.0 == 'uklid'}
            {include file="modulFront/Static/cleanPage.tpl"}
        {elseif $url.request_uri.0 == 'zabezpeceni'}
            {include file="modulFront/Static/secure/defaultPage.tpl"}
        {elseif $url.request_uri.0 == 'cisteni-kobercu'}
            {include file="modulFront/Static/carpets/defaultPage.tpl"}
        {elseif $url.request_uri.0 == 'bezpecnost'}
            {include file="modulFront/Static/secure/defaultPage.tpl"}
        {elseif $url.request_uri.0 == 'reklama'}
            {include file="modulFront/Static/reklama/defaultPage.tpl"}
        {elseif $url.request_uri.0 == 'prodej'}
            {include file="modulFront/Static/prodej/defaultPage.tpl"}
        {elseif $url.request_uri.0 == 'kontakty'}
            {include file="modulFront/Static/kontakty/defaultPage.tpl"}
        {else}
            {* ******************* *}
            {$content}
            {* ******************* *}

            {* ******************* *}
            {include file='modulFront/contactForm.tpl'}
            {* ******************* *}
        {/if}

Anonymous,