{* *}{strip} {* *} {if $content === $smarty.const.CONTENT_MESSAGE_NO_PAGE|default:''} {requestUri except='*' nopages=TRUE assign=uri} {echoVar from=root_dir assign=root} {* *} {if $uri == $root|cat:'contact'} {include 'other/contact.htm' assign=v} {header200} {elseif $uri == $root|cat:'categories'} {include 'products.htm' assign=v} {header200} {elseif $uri == $root|cat:'instructions'} {include 'other/instructions.htm' assign=v} {header200} {elseif $uri == $root|cat:'setup'} {include 'other/setup.htm' assign=v} {elseif $uri == $root|cat:'sitemap'} {include 'sitemap.htm' assign=v} {header200} {* *} {else} {include 'missing_template.htm' assign=v} {/if} {$content = $v scope=global} {else} {* *} {$v = $smarty.const.CONTENT_MESSAGE_NO_MODULE|default:''} {$v = preg_replace('/([~#:\+\[\]\{\}\(\)\?\.\$\^\|\\\\])/u', '\\\\$1', $v)} {$v = '~^'|cat:($v|replace:'*':'[a-z0-9_]+')|cat:'$~iu'} {if preg_match($v, $content)} {* *} {include 'missing_template.htm' assign=v} {$content = $v scope=global} {* *} {elseif preg_match('/^.!-- хелпер шаблона указал не обслуживать файл шаблона с именем /iu', $content)} {include 'missing_template.htm' assign=v} {$content = $v scope=global} {elseif preg_match('/^.!-- хелпер шаблона указал на неподготовленный файл /iu', $content)} {include 'missing_template.htm' assign=v} {$content = $v scope=global} {/if} {/if} {/strip}