<?php
class other_text {
static function text($text, $flag=false) {
if (is_array($text)) {
foreach ($text as $key => $val) {
$post[] = $val;
}
} else {
$post[] = $text;
}
self::display($post);
}
static function display($text) {
$doc = new design();
$doc->assign('post', $text);
$doc->display('other_text.tpl');
}
}
?>