new html generating class

This commit is contained in:
Ulf Gebhardt 2015-09-06 06:35:37 +02:00
parent ab1f4a62e8
commit e8dc594895
3 changed files with 11 additions and 0 deletions

View File

@ -20,4 +20,5 @@ require_once dirname(__FILE__).'/docu/autoload.inc';
require_once dirname(__FILE__).'/files/autoload.inc';
require_once dirname(__FILE__).'/cron/autoload.inc';
require_once dirname(__FILE__).'/sai/autoload.inc';
require_once dirname(__FILE__).'/html/autoload.inc';
require_once dirname(__FILE__).'/lib/autoload.inc';

2
html/autoload.inc Normal file
View File

@ -0,0 +1,2 @@
<?php
\SYSTEM\autoload::registerFolder(dirname(__FILE__),'SYSTEM\HTML');

8
html/html.php Normal file
View File

@ -0,0 +1,8 @@
<?php
namespace SYSTEM\HTML;
class html{
public static function link($href,$rel = 'stylesheet',$type = 'text/css'){
return '<link href="'.$href.'" rel="'.$rel.'" type="'.$type.'"/>';}
public static function script($src,$type = 'text/javascript',$rel = 'stylesheet', $language = 'JavaScript', $script = ''){
return '<script src="'.$src.'" language="'.$language.'" type="'.$type.'">'.$script.'</script>';}
}