| Server IP : 178.63.100.251 / Your IP : 216.73.216.228 Web Server : LiteSpeed System : Linux dobby.thevpsserver.com 4.18.0-553.16.1.lve.el8.x86_64 #1 SMP Tue Aug 13 17:45:03 UTC 2024 x86_64 User : truewayi ( 1855) PHP Version : 7.4.33 Disable Function : show_source,system,shell_exec,passthru,exec,popen,proc_open MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/truewayi/public_html/wp-content/themes/omexo/learnpress/ |
Upload File : |
<?php
/**
* Template for displaying content of course without header and footer
*
* @author ThimPress
* @package LearnPress/Templates
* @version 4.0.0
*/
defined('ABSPATH') || exit();
/**
* If course has set password
*/
if (post_password_required()) {
echo get_the_password_form();
return;
}
/**
* LP Hook
*/
do_action('learn-press/before-single-course');
// if (class_exists('LP_Addon_Course_Review_Preload')) {
function lp_course_review(){
$course_rate_res = learn_press_get_course_rate(get_the_ID(), false);
$course_rate = $course_rate_res['rated'];
$total = $course_rate_res['total'];
$ratings = learn_press_get_course_rate_total(get_the_ID());
echo learn_press_course_review_template('rating-stars.php', array('rated' => $course_rate));
var_dump($ratings > 1 ? 'Ratings' : 'Rating');
}
// }
?>
<div class="lp-curse-single-wrap">
<div class="container">
<div class="row">
<div class="col-lg-8">
<div class="lp-course-single-top-content">
<h1><?php the_title();?></h1>
<ul>
<li><?php the_author();?></li>
<li><?php
if ( ! get_the_terms( get_the_ID(), 'course_category' ) ) {
esc_html_e( 'Uncategorized', 'learnpress' );
} else {
echo get_the_term_list( get_the_ID(), 'course_category', '', '<span>|</span>' );
}
?></li>
<li><?php if (class_exists('LP_Addon_Course_Review_Preload')){
lp_course_review();}?></li>
</ul>
</div>
<div class="lp-course-details-content">
<?php
learn_press_get_template('custom/course-info');
learn_press_get_template('custom/tab');
?>
</div>
</div>
<div class="col-lg-4">
<h1>Sidebar Here</h1>
<?php
LP()->template('course')->courses_loop_item_price();
$course = \LP_Global::course();
$enrolled = $course->get_users_enrolled();
$lessons = $course->get_curriculum_items('lp_lesson') ? count($course->get_curriculum_items('lp_lesson')) : 0;
$quiz = $course->get_curriculum_items('lp_quiz') ? count($course->get_curriculum_items('lp_quiz')) : 0;
var_dump($lessons);
?>
</div>
</div>
</div>
</div>
<?php