</div> <div class='panel-body'><div class='label label-success'>" . nice_format($post->getTime(), true). "</div><small>".$langBlogPostUser.display_user($post->getAuthor(), false, false)."</small><br><br>".standard_text_escape($post->getContent())."</div> <div class='panel-footer'> <div class='row'> <div class='col-sm-6'>$rating_content</div> <div class='col-sm-6 text-right'>$sharing_content</div> </div> </div> </div>"; if ($comments_enabled) { if ($post->getCommenting() == 1) { commenting_add_js(); //add js files needed for comments $comm = new Commenting('blogpost', $post->getId()); if ($blog_type == 'course_blog') { $tool_content .= $comm->put($course_code, $is_editor, $uid, true); } elseif ($blog_type == 'perso_blog') { $tool_content .= $comm->put(NULL, $is_blog_editor, $uid, true); } } } } else { Session::Messages($langBlogPostNotFound); redirect_to_home_page("modules/blog/index.php?$url_params"); } } //show all blog posts if ($action == "showBlog") {
$main_content .= "<div id='descr_content'>$description</div>"; } else { $main_content .= "<p class='not_visible'> - $langThisCourseDescriptionIsEmpty - </p>"; } if (!empty($keywords)) { $main_content .= "<p id='keywords'><b>$langCourseKeywords</b> $keywords</p>"; } $main_content .= "</div>"; if (!empty($addon)) { $main_content .= "<div class='course_info'><h1>$langCourseAddon</h1><p>$addon</p></div>"; } if (setting_get(SETTING_COURSE_COMMENT_ENABLE, $course_id) == 1) { commenting_add_js(); $comm = new Commenting('course', $course_id); $main_content .= $comm->put($course_code, $is_editor, $uid); } if (setting_get(SETTING_COURSE_RATING_ENABLE, $course_id) == 1) { $rating = new Rating('fivestar', 'course', $course_id); $rating_content = $rating->put($is_editor, $uid, $course_id); } if (is_sharing_allowed($course_id)) { if (setting_get(SETTING_COURSE_SHARING_ENABLE, $course_id) == 1) { $social_content = print_sharing_links($urlServer."courses/$course_code", $currentCourseName); } } $panel_footer = ""; if(isset($rating_content) || isset($social_content)) { $panel_footer .= " <div class='panel-footer'> <div class='row'>";