aowow/template/bricks/footer.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

49 lines
1.7 KiB
PHP

<?php
namespace Aowow\Template;
use \Aowow\Lang;
?>
<div class="footer">
<?php
if ($this->pageStats):
echo " <table style=\"margin:auto;\">\n";
if ($x = $this->pageStats['sql']):
echo ' <tr><td style="text-align:left;">'.Lang::main('numSQL') .'</td><td>'.$x['count']."</td></tr>\n";
echo ' <tr><td style="text-align:left;">'.Lang::main('timeSQL').'</td><td>'.$x['time']."</td></tr>\n";
endif;
if ($x = $this->pageStats['time']):
echo ' <tr><td style="text-align:left;">Page generated in</td><td>'.$x."</td></tr>\n";
endif;
if ($this->pageStats['cache'] && $this->pageStats['cache'][0] == CACHE_MODE_FILECACHE):
echo " <tr><td style=\"text-align:left;\">Stored in filecache</td><td>".$this->pageStats['cache'][1]."</td></tr>\n";
elseif ($this->pageStats['cache'] && $this->pageStats['cache'][0] == CACHE_MODE_MEMCACHED):
echo " <tr><td style=\"text-align:left;\">Stored in Memcached</td><td>".$this->pageStats['cache'][1]."</td></tr>\n";
endif;
echo " </table>\n";
endif;
?>
</div>
</div><!-- #wrapper .nosidebar -->
</div><!-- #layout-inner -->
</div><!-- #layout .nosidebar -->
<noscript>
<div id="noscript-bg"></div>
<div id="noscript-text"><?=Lang::main('noJScript'); ?></div>
</noscript>
<?=$this->localizedBrickIf($this->consentFooter, 'consent'); ?>
<?php if ($this->dbProfiles): ?>
<script type="text/javascript">
window.open("/", "SqlLog", "width=1800,height=200,top=100,left=100,status=no,location=no,toolbar=no,menubar=no")?.document?.write('<?=$this->dbProfiles;?>');
</script>
<?php endif; ?>
</body>
</html>