Files
aowow/template/pages/text-page-generic.tpl.php
Sarjuuk 226f521439 Template/Endpoints (Base)
* 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
2025-09-25 15:32:18 +02:00

46 lines
1.2 KiB
PHP

<?php
namespace Aowow\Template;
$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 ([$typeStr, $id] = $this->doResync):
?>
<div id="roster-status" class="profiler-message clear"></div>
<script type="text/javascript">//<![CDATA[
pr_updateStatus('<?=$typeStr; ?>', $WH.ge('roster-status'), <?=$id; ?>, 1);
pr_setRegionRealm($WH.gE($WH.ge('topbar'), 'form')[0], '<?=$this->region; ?>', '<?=$this->realm; ?>');
//]]></script>
<?php
endif;
if ($this->inputbox):
$this->brick(...$this->inputbox); // $templateName, [$templateVars]
else:
?>
<div class="text">
<?=($this->h1 ? ' <h1>'.$this->h1.'</h1>' : '');?>
<?php
$this->brick('markup', ['markup' => $this->article]);
$this->brick('markup', ['markup' => $this->extraText]);
echo $this->extraHTML ?? '';
?>
</div>
<?php
endif;
?>
</div><!-- main-contents -->
</div><!-- main -->
<?php $this->brick('footer'); ?>