source: t29-www/lib/ajax-template.php @ 580

Last change on this file since 580 was 390, checked in by sven, 6 years ago
  • Vor/Zurück-Link bei Lernprojekten aktiviert
  • Anzeige fehlender englischer Übersetzungen wieder aktiviert (aufgehübscht; mit Infobox)
File size: 1.1 KB
Line 
1<?php
2/**
3 * technikum29v6 Page Template, ajax version
4 * Initially written 09.05.2013, Sven Koeppel
5 *
6 **/
7
8class t29AJAXTemplate {
9        public $conf;
10
11        function __construct($conf_array) {
12                $this->conf = $conf_array;
13               
14                // ask t29Host for configuration fillup
15                $this->conf['host']->fillup_template_conf($this->conf);
16               
17                // setup html title
18                $this->conf['html_title'] = '';
19                if(isset($this->conf['titel']) && !empty($this->conf['titel']))
20                        $this->conf['html_title'] = $this->conf['titel'] . ' - ';
21        }
22
23        function print_page() {
24                register_shutdown_function(function() {
25                        ?>
26                        <!-- crafted ajaxified t29 template version -->
27                        </div><!-- content -->
28                        </body></html>
29                        <?php
30                });
31?>
32<!doctype html>
33<html class="no-js">
34<head>
35  <meta charset="utf-8">
36  <title><?php echo $this->conf['html_title']; ?></title>
37  <meta name="author" content="technikum29-Team">
38  <meta name="generator" content="<?php print $this->conf['host']; ?>">
39  <meta name="t29.cache" content="no">
40  <meta name="t29.ajax" content="true">
41</head>
42<body class="ajax">
43<div class="content ajax">
44<?php
45
46        } // end of print_page().
47} // end of class
Note: See TracBrowser for help on using the repository browser.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License