{* *}{strip} {* *} {if $content === $smarty.const.CONTENT_MESSAGE_NO_PAGE|default:''} {$uri = $smarty.server.REQUEST_URI|default:''|lower} {$uri = preg_replace('/^([^\?#]*)[\?#].*?$/iu', '$1', $uri)} {$root = $root_dir|default:''|lower} {* *} {if $uri == $root|cat:'about'} {include 'other-pages/about.htm' assign=v} {elseif $uri == $root|cat:'categories'} {include 'other-pages/categorized.htm' assign=v} {elseif $uri == $root|cat:'sitemap'} {include 'sitemap.htm' assign=v} {* *} {else} {include 'missing_template.htm' assign=v} {/if} {$content = $v scope=global} {else} {* *} {$v = preg_replace('/([~#:\+\[\]\{\}\(\)\?\.\$\^\|\\\\])/u', '\\\\$1', $smarty.const.CONTENT_MESSAGE_NO_MODULE|default:'')} {$v = '~^'|cat:($v|replace:'*':'[a-z0-9_]+')|cat:'$~iu'} {if preg_match($v, $content)} {include 'missing_template.htm' assign=v} {$content = $v scope=global} {/if} {/if} {/strip}