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('Publication date').': '.
api_get_local_time(
$term['date'],
null,
null,
false,
true,
true
);
$socialMenuBlock = '';
$allowSocial = api_get_setting('allow_social_tool') === 'true';
if ($allowSocial) {
// Block Social Menu
$socialMenuBlock = SocialManager::show_social_menu('personal-data');
}
$tpl = new Template(null);
$actions = Display::url(
Display::return_icon('back.png', get_lang('Back'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH).'social/personal_data.php'
);
$tpl->assign('actions', Display::toolbarAction('toolbar', [$actions]));
// Block Social Avatar
SocialManager::setSocialUserBlock($tpl, api_get_user_id(), 'messages');
if (api_get_setting('allow_social_tool') === 'true') {
$tpl->assign('social_menu_block', $socialMenuBlock);
} else {
$tpl->assign('social_menu_block', '');
}
$tpl->assign('term', $term);
$socialLayout = $tpl->get_template('social/terms.tpl');
$tpl->display($socialLayout);