function post_meta($post, $class, $prefix=null, $separator='<br/>') {
$this->output('<span class="'.$class.'-meta">');
if (isset($prefix))
$this->output($prefix);
$order=explode('^', @$post['meta_order']);
foreach ($order as $element)
switch ($element) {
case 'what':
$this->post_meta_what($post, $class);
break;
case 'when':
$this->post_meta_when($post, $class);
break;
case 'where':
$this->post_meta_where($post, $class);
break;
case 'who':
$this->post_meta_who($post, $class);
break;
}
$this->post_meta_flags($post, $class);
if (!empty($post['what_2'])) {
$this->output($separator);
foreach ($order as $element)
switch ($element) {
case 'what':
$this->output('<span class="'.$class.'-what">'.$post['what_2'].'</span>');
break;
case 'when':
$this->output_split(@$post['when_2'], $class.'-when');
break;
case 'who':
$this->output_split(@$post['who_2'], $class.'-who');
break;
}
}
/* ======== add [start] ======== */
/*
echo '<PRE>';
echo print_r($post,true);
echo '</PRE>';
*/
if($post['raw']['type'] == 'Q') {
require_once QA_INCLUDE_DIR.'qa-db-metas.php';
$extra = qa_db_postmeta_get($post['raw']['postid'], 'qa_q_extra');
if(isset($extra) && $extra != '')
$this->output('<span class="extra_on_list"> - ('.$extra.')</span>');
}
/* ======== add [end] ======== */
$this->output('</span>');
}