Files
2026-04-30 14:38:11 +02:00

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">&nbsp;</span>';
$html .= $text;
$html .= '<span class="after">&nbsp;</span>';
return $html;
}
public static function tag($name, $content, $attributes = false)
{
$html = '<'. $name;
if($attributes)
{
$html .= $attributes;
}
$html .= '>';
$html .= $content;
$html .= '</'.$name.'>';
return $html;
}
}