* 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
18 lines
441 B
PHP
18 lines
441 B
PHP
<?php
|
|
namespace Aowow\Template;
|
|
?>
|
|
|
|
<?php
|
|
if ($this->headIcons):
|
|
foreach ($this->headIcons as $k => $v):
|
|
echo '<div id="h1-icon-'.$k."\" class=\"h1-icon\"></div>\n";
|
|
endforeach;
|
|
?>
|
|
<script type="text/javascript">//<![CDATA[
|
|
<?php
|
|
foreach ($this->headIcons as $k => $v):
|
|
echo "\$WH.ge('h1-icon-".$k."').appendChild(Icon.create('".$this->escJS($v)."', 1));\n";
|
|
endforeach;
|
|
?>
|
|
//]]></script>
|
|
<?php endif; ?>
|