{include file="public/_header.html"}
{if isStaff() && getParam('site_shutdown')}
{language text='Mod_Site.website_is_offline'}
{/if}
{if $bHideHeader}
{Messenger::Alert oUser=$oCurrUser} {if $bAllowLangPack && !$aCurrUser}
{/if} {Menu::MainMenu location="header" template="MainHeader"} {if !pluginInstalled('chat')} {else} {/if} {if $aCurrUser} {/if} {if $bAllowLangPack && !$aCurrUser} {/if}
{language text="live_chat"} | {language text='Mod_Chat.flashchat'} | {language text='Mod_Chat.instant_messenger'} | {if getParam('allow_bookmarking')} {language text='main_bookmark'}
{else} {language text='bookmark_us'} {/if}
| {language text="logout"} | {language text="up.language"}:
{if $bAllowLangPack && !$aCurrUser}
{/if}
{if $sLogoFile}{img src="`$sStylePath``$sLogoFile`" alt=""}{/if}  {Ads::ShowAds place=1}

{* START main menu *}
{Menu::MainMenu location="main" template="MainMenu"} {if !empty($plugin_main_links) } {section name=I loop=$plugin_main_links} {/section} {/if}
{* END main menu *} {else}
{Ads::ShowAds place=2}

{/if} {* START content *}
{include file=$sTplName}
{Ads::ShowAds place=2}
{if !empty($plugin_content)}{$plugin_content}{/if}
{* END content *} {if $bHideHeader}
{language text="terms_amp_conditions"} | {language text="help"} | {language text="contact_us"} | {language text="invite"} | {language text="rss.feeds"} | {language text="about_us"} | {language text="get_involved"} {if getParam('sub_system')}| {language text="subscribe"}{/if} | {language text="archive"}
{Menu::MainMenu location="bottom" template="MainFooter"} {if !empty($plugin_bottom_links) } {section name=I loop=$plugin_bottom_links} {if $plugin_bottom_links[I].count != 1} | {/if} {$plugin_bottom_links[I].name} {/section} {/if}

*** {$sSiteName} ***
{else} {/if}
{if $bRemoveBrand}
{str_replace text="`powered_by_phpfox_version_sphpfoxve`" sPhpFoxVersion="`$sPhpFoxVersion`" }
{/if}
{if !getParam('debug')} {/if}