new html generating class
This commit is contained in:
parent
ab1f4a62e8
commit
e8dc594895
@ -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
2
html/autoload.inc
Normal file
@ -0,0 +1,2 @@
|
||||
<?php
|
||||
\SYSTEM\autoload::registerFolder(dirname(__FILE__),'SYSTEM\HTML');
|
||||
8
html/html.php
Normal file
8
html/html.php
Normal 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>';}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user