* 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
39 lines
1.3 KiB
PHP
39 lines
1.3 KiB
PHP
<?php
|
|
namespace Aowow\Template;
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<?php $this->brick('head'); ?>
|
|
</head>
|
|
|
|
<body<?=($this->user::isPremium() ? ' class="premium-logo"' : ''); ?>>
|
|
<div id="layers"></div>
|
|
<?php if ($this->headerLogo): ?>
|
|
<style type="text/css">
|
|
.header-logo {
|
|
background: url(<?=$this->headerLogo; ?>) no-repeat center 0 !important;
|
|
margin-bottom: 1px !important;
|
|
}
|
|
</style>
|
|
<?php endif; ?>
|
|
<div class="layout nosidebar" id="layout">
|
|
<div class="layout-inner" id="layout-inner">
|
|
<div class="header" id="header">
|
|
<div id="header-logo">
|
|
<a class="header-logo" href="."></a>
|
|
<h1><?=$this->concat('title', ' - '); ?></h1>
|
|
</div>
|
|
</div>
|
|
<div id="wrapper" class="wrapper">
|
|
<div class="toplinks linklist"><?php $this->brick('headerMenu'); ?></div>
|
|
<div class="toptabs" id="toptabs"></div>
|
|
<div class="topbar" id="topbar">
|
|
<div class="topbar-search"><form action="."><a href="javascript:;"></a><input name="search" size="35" id="livesearch-generic" value="<?=$this->search; ?>" /></form></div>
|
|
<div class="topbar-browse" id="topbar-browse"></div>
|
|
<div class="topbar-buttons" id="topbar-buttons"></div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
<?=$this->renderGlobalVars(12); ?>
|
|
</script>
|