From: Thomas Mudrunka Date: Tue, 23 Aug 2011 17:05:33 +0000 (+0200) Subject: Dalsi vylepseni HTML abstrakce - tentokrat X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=ec106ddfe653ea6da6d65d537d38f19a9a7776e7;hp=81ab8aef27da2a93a06296fd3b80cdba3376d956;p=mirrors%2FSokoMan.git Dalsi vylepseni HTML abstrakce - tentokrat --- 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