source: trunk/Application/View.php@ 88

Last change on this file since 88 was 88, checked in by chronos, 6 years ago
  • Added: Viewport HTML tag for mobile devices.
File size: 1.2 KB
Line 
1<?php
2
3class BaseView extends View
4{
5 function ShowPage($Content)
6 {
7 global $ReleaseTime, $Revision;
8
9 $Output = '<?xml version="1.0" encoding="'.$this->System->Config['Web']['Charset'].'"?>'."\n".
10 '<!DOCTYPE html>'.
11 '<html>'.
12 '<head>'.
13 '<meta http-equiv="Content-Language" content="cs"/>'.
14 '<meta http-equiv="content-type" content="text/html; charset='.$this->System->Config['Web']['Charset'].'" />'.
15 '<meta name="robots" content="all" />'.
16 '<meta name="viewport" content="width=device-width, initial-scale=1">'.
17 '<title>'.$this->System->Config['Web']['Title'].'</title>'.
18 '<link rel="StyleSheet" href="'.$this->System->Link('/style/style.css').'" type="text/css" media="all"/>'.
19 '</head><body>';
20 $Output .= $Content;
21 $Output .= '<br/><div style="text-align: center; font-size: small;">Verze: '.$Revision.' ('.HumanDate($ReleaseTime).')'.
22 ' &nbsp; <a href="http://svn.zdechov.net/trac/estetistic/browser/trunk">Zdrojový kód</a> &nbsp; '.
23 '<a href="http://svn.zdechov.net/trac/estetistic/log/trunk?verbose=on">Historie změn</a></div>';
24 $Output .= '</body></html>';
25 echo($Output);
26 }
27
28 function GetOutput($Page)
29 {
30 $Output = $this->ShowPage($Page->Show());
31 return($Output);
32 }
33}
34
Note: See TracBrowser for help on using the repository browser.