34 lines
733 B
PHP
34 lines
733 B
PHP
<?php defined('SYSPATH') or die('No direct script access.');
|
|
|
|
class html extends html_Core {
|
|
|
|
public static function span_class($text, $class = false)
|
|
{
|
|
$html = '<span';
|
|
$html .= $class ? ' class="'.$class.'">' : '>';
|
|
$html .= $text;
|
|
$html .= '</span>';
|
|
return $html;
|
|
}
|
|
|
|
public static function span_box($text)
|
|
{
|
|
$html = '<span class="before"> </span>';
|
|
$html .= $text;
|
|
$html .= '<span class="after"> </span>';
|
|
return $html;
|
|
}
|
|
public static function tag($name, $content, $attributes = false)
|
|
{
|
|
$html = '<'. $name;
|
|
if($attributes)
|
|
{
|
|
$html .= $attributes;
|
|
}
|
|
$html .= '>';
|
|
$html .= $content;
|
|
$html .= '</'.$name.'>';
|
|
return $html;
|
|
}
|
|
}
|