From ec106ddfe653ea6da6d65d537d38f19a9a7776e7 Mon Sep 17 00:00:00 2001 From: Thomas Mudrunka Date: Tue, 23 Aug 2011 19:05:33 +0200 Subject: [PATCH] Dalsi vylepseni HTML abstrakce - tentokrat --- index.php | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/index.php b/index.php index db9e514..a019ae4 100755 --- a/index.php +++ b/index.php @@ -128,6 +128,14 @@ class HTML { $options = $options ? " $options" : ''; return "$html"; } + + function head($title=false,$charset='UTF-8',$more='') { + $title = $title ? "\n$title" : ''; + $html= ''; + $html.= ''.$title.$more; + $html.= ''; + return $html; + } } /** @@ -146,11 +154,9 @@ class Sklad_HTML extends HTML { //TODO: Split into few more methods $message = strip_tags(@trim($_GET['message']),''); $instance = INSTANCE_ID != '' ? '/'.INSTANCE_ID : ''; //$title = T($title); //TODO - $html = << - - SōkoMan$title - + + $html = $this->head("SōkoMan$title"); + $html .= <<SōkoMan$instance$title