mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
* redo page render following the logic of:
Response ─┬─> TextResponse ─> TextResponseImpl
└─> TemplateResponse ─> TemplateResponseImpl
* split up giant files, one per response path
* caching becomes a trait, implemented where necessary
* TextResponses (Ajax) can now be cached
* make use of previously defined php classes for js objects
* Tabs, Listview, Tooltip, Announcement, Markup, Book, ...
* \Aowow\Template\PageTemplate is the new class to be cached
* do not discard error messages generated after vars have been sent to template
and store in session for display at a later time
* implement tracking consent management
* move logic out of template into their respective endpoints
54 lines
1.2 KiB
PHP
54 lines
1.2 KiB
PHP
<?php
|
|
namespace Aowow\Template;
|
|
|
|
use \Aowow\Lang;
|
|
|
|
$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');
|
|
?>
|
|
<div class="text">
|
|
<?php
|
|
$this->brick('redButtons');
|
|
|
|
if ($this->h1Link):
|
|
echo ' <div class="h1-links"><small><a href="'.$this->h1Link.'" class="icon-rss">'.Lang::main('subscribe').'</a></small></div>';
|
|
endif;
|
|
|
|
if ($this->h1):
|
|
echo ' <h1>'.$this->h1.'</h1>';
|
|
endif;
|
|
|
|
$this->brick('mapper');
|
|
|
|
$this->brick('markup', ['markup' => $this->article]);
|
|
|
|
$this->brick('markup', ['markup' => $this->extraText]);
|
|
|
|
echo $this->extraHTML ?? '';
|
|
|
|
if ($this->tabsTitle):
|
|
echo ' <h2 class="clear">'.$this->tabsTitle.'</h2>';
|
|
endif;
|
|
?>
|
|
</div>
|
|
<?php
|
|
if ($this->lvTabs):
|
|
$this->brick('lvTabs');
|
|
?>
|
|
<div class="clear"></div>
|
|
<?php
|
|
endif;
|
|
?>
|
|
</div><!-- main-contents -->
|
|
</div><!-- main -->
|
|
|
|
<?php $this->brick('footer'); ?>
|