コード例 #1
0
/search"><input name="q" value="<?php 
echo WoW_Template::GetPageData('search_terms');
?>
" /></form></div>
<div class="topbar-buttons"></div>
</div>
<div class="main" id="main">
<div class="main-precontents" id="main-precontents"></div>
<div class="main-contents" id="main-contents">
<?php 
if (WoW_Template::GetPageAnnouncement() >= 0) {
    echo '<div id="announcement-' . WoW_Template::GetPageAnnouncement() . '"></div>';
}
?>

<?php 
if (WoW::IsRegisteredPage() && !WoW_Template::IsErrorPage()) {
    WoW_Template::LoadTemplate('block_set_page_template');
    // LOAD APPROPRIATE TEMPLATE FOR EACH REGISTERED PAGE HERE!
    WoW_Template::LoadTemplate('content_' . WoW_Template::GetPageIndex());
} else {
    WoW_Template::LoadTemplate('block_set_page_template_unknown');
    WoW_Template::LoadTemplate('content_error');
}
?>

<div class="clear"></div>

</div>
</div>