';
echo '
';
echo Display::url(
prepare4display($forum->getTitle()),
'viewforum.php?'.api_get_cidreq().'&'.http_build_query([
'origin' => $origin,
'forum' => $forum->getIid(),
]),
['class' => false === $forumIsVisible ? 'text-muted' : null]
);
echo '
';
echo '
'.prepare4display($forum->getForumComment()).'
';
echo '
';
/* End new display forum */
// Set forum attachment data into $_SESSION
getAttachedFiles(
$forum->getIid(),
$thread->getIid(),
$post->getIid()
);
show_edit_post_form(
$post,
$thread,
$forum,
isset($_SESSION['formelements']) ? $_SESSION['formelements'] : ''
);
// Footer
if (isset($origin) && 'learnpath' === $origin) {
Display::display_reduced_footer();
} else {
Display::display_footer();
}