mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
56 lines
1.5 KiB
PHP
56 lines
1.5 KiB
PHP
<?php $this->brick('header'); ?>
|
|
|
|
<div class="main" id="main">
|
|
<div class="main-precontents" id="main-precontents"></div>
|
|
<div class="main-contents" id="main-contents">
|
|
|
|
<?php
|
|
$this->brick('announcement');
|
|
|
|
$this->brick('mapper');
|
|
?>
|
|
|
|
<script type="text/javascript">//<![CDATA[
|
|
g_initPath(<?php echo json_encode($this->path, JSON_NUMERIC_CHECK); ?>);
|
|
//]]></script>
|
|
|
|
<?php
|
|
if (!empty($this->name) || !empty($this->h1Links)):
|
|
echo '<div class="text">' .
|
|
(!empty($this->h1Links) ? '<div class="h1-links">'.$this->h1Links.'</div>' : null) .
|
|
(!empty($this->name) ? ' <h1>'.$this->name.'</h1>' : null) .
|
|
'</div>';
|
|
endif;
|
|
|
|
if (!empty($this->lvData)):
|
|
if (count($this->lvData) > 1):
|
|
echo '<div id="tabs-generic"></div>';
|
|
endif;
|
|
?>
|
|
<div id="lv-generic" class="listview"></div>
|
|
<script type="text/javascript">//<![CDATA[
|
|
<?php
|
|
if (count($this->lvData) > 1):
|
|
echo 'var myTabs = new Tabs({parent: $WH.ge(\'tabs-generic\')})';
|
|
endif;
|
|
|
|
foreach ($this->lvData as $lv):
|
|
if (isset($lv['file'])):
|
|
$this->lvBrick($lv['file'], ['data' => $lv['data'], 'params' => $lv['params']]);
|
|
endif;
|
|
endforeach;
|
|
|
|
if (count($this->lvData) > 1):
|
|
echo 'myTabs.flush();';
|
|
endif;
|
|
?>
|
|
//]]></script>
|
|
<div class="clear"></div>
|
|
<?php
|
|
endif;
|
|
?>
|
|
</div><!-- main-contents -->
|
|
</div><!-- main -->
|
|
|
|
<?php $this->brick('footer'); ?>
|