mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Template
* merge text-page-generic into list-page-generic
This commit is contained in:
@@ -429,7 +429,7 @@ class GenericPage
|
||||
$this->pageTemplate['activeTab'] = $this->tabId;
|
||||
|
||||
header("HTTP/1.0 404 Not Found", true, 404);
|
||||
$this->display('text-page-generic');
|
||||
$this->display('list-page-generic');
|
||||
exit();
|
||||
}
|
||||
|
||||
@@ -447,7 +447,7 @@ class GenericPage
|
||||
Util::arraySumByKey($this->mysql, DB::Aowow()->getStatistics(), DB::World()->getStatistics());
|
||||
|
||||
header("HTTP/1.0 404 Not Found", true, 404);
|
||||
$this->display('text-page-generic');
|
||||
$this->display('list-page-generic');
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ if (!defined('AOWOW_REVISION'))
|
||||
|
||||
class MorePage extends GenericPage
|
||||
{
|
||||
protected $tpl = 'text-page-generic';
|
||||
protected $tpl = 'list-page-generic';
|
||||
protected $path = [2];
|
||||
protected $tabId = 2;
|
||||
protected $mode = CACHE_TYPE_NONE;
|
||||
|
||||
@@ -91,7 +91,7 @@ class ScreenshotPage extends GenericPage
|
||||
header('Location: ?screenshot=thankyou&'.$this->destType.'.'.$this->destTypeId, true, 302);
|
||||
die();
|
||||
case 'thankyou':
|
||||
$this->tpl = 'text-page-generic';
|
||||
$this->tpl = 'list-page-generic';
|
||||
$this->handleThankyou();
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -9,20 +9,63 @@
|
||||
|
||||
$this->brick('pageTemplate');
|
||||
|
||||
$this->brick('mapper');
|
||||
|
||||
if (!empty($this->name) || !empty($this->h1Links) || !empty($this->extraHTML)):
|
||||
echo '<div class="text">' .
|
||||
(!empty($this->h1Links) ? '<div class="h1-links">'.$this->h1Links.'</div>' : null) .
|
||||
(!empty($this->name) ? '<h1>'.$this->name.'</h1>' : null) .
|
||||
(!empty($this->extraHTML) ? $this->extraHTML : null) .
|
||||
'</div>';
|
||||
endif;
|
||||
|
||||
$this->brick('lvTabs');
|
||||
if (isset($this->notFound)):
|
||||
?>
|
||||
<div class="pad3"></div>
|
||||
|
||||
<div class="clear"></div>
|
||||
<div class="inputbox">
|
||||
<h1><?=$this->notFound['title'];?></h1>
|
||||
<div id="inputbox-error"><?=$this->notFound['msg'];?></div>
|
||||
<?php
|
||||
else:
|
||||
?>
|
||||
<div class="text">
|
||||
<?php
|
||||
if (!empty($this->h1Links)):
|
||||
echo ' <div class="h1-links">'.$this->h1Links.'</div>';
|
||||
endif;
|
||||
|
||||
if (!empty($this->name)):
|
||||
echo ' <h1>'.$this->name.'</h1>';
|
||||
endif;
|
||||
|
||||
$this->brick('mapper');
|
||||
|
||||
$this->brick('article');
|
||||
|
||||
if (isset($this->extraText)):
|
||||
?>
|
||||
<div id="text-generic" class="left"></div>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
Markup.printHtml("<?=Util::jsEscape($this->extraText);?>", "text-generic", {
|
||||
allow: Markup.CLASS_ADMIN,
|
||||
dbpage: true
|
||||
});
|
||||
//]]></script>
|
||||
|
||||
<div class="pad2"></div>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
if (isset($this->extraHTML)):
|
||||
echo $this->extraHTML;
|
||||
endif;
|
||||
|
||||
endif;
|
||||
|
||||
if (!empty($this->tabsTitle)):
|
||||
echo ' <h2 class="clear">'.$this->tabsTitle.'</h2>';
|
||||
endif;
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
if (!empty($this->lvTabs)):
|
||||
$this->brick('lvTabs');
|
||||
?>
|
||||
<div class="clear"></div>
|
||||
<?php
|
||||
endif;
|
||||
?>
|
||||
</div><!-- main-contents -->
|
||||
</div><!-- main -->
|
||||
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
<?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('pageTemplate');
|
||||
|
||||
if (isset($this->notFound)):
|
||||
?>
|
||||
<div class="pad3"></div>
|
||||
|
||||
<div class="inputbox">
|
||||
<h1><?=$this->notFound['title'];?></h1>
|
||||
<div id="inputbox-error"><?=$this->notFound['msg'];?></div>
|
||||
<?php
|
||||
else:
|
||||
?>
|
||||
<div class="text">
|
||||
<h1><?=$this->name;?></h1>
|
||||
|
||||
<?php
|
||||
$this->brick('article');
|
||||
|
||||
if (isset($this->extraText)):
|
||||
?>
|
||||
<div id="text-generic" class="left"></div>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
Markup.printHtml("<?=Util::jsEscape($this->extraText);?>", "text-generic", {
|
||||
allow: Markup.CLASS_ADMIN,
|
||||
dbpage: true
|
||||
});
|
||||
//]]></script>
|
||||
|
||||
<div class="pad2"></div>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
if (isset($this->extraHTML)):
|
||||
echo $this->extraHTML;
|
||||
endif;
|
||||
|
||||
endif;
|
||||
?>
|
||||
</div>
|
||||
</div><!-- main-contents -->
|
||||
</div><!-- main -->
|
||||
|
||||
<?php $this->brick('footer'); ?>
|
||||
Reference in New Issue
Block a user