getAllValuesByItem($term['id']);
foreach ($values as $value) {
if (!empty($value['value'])) {
$term['content'] .= '
'.get_lang($value['display_text']).'
'.$value['value'].'
';
}
}
$term['date_text'] = get_lang('PublicationDate').': '.
api_get_local_time(
$term['date'],
null,
null,
false,
true,
true
);
$tpl = new Template(null);
$tpl->assign('term', $term);
$socialLayout = $tpl->get_template('user_portal/terms.tpl');
$tpl->display($socialLayout);