관리-도구
편집 파일: course_screen_c.php
<?php require_once(COURSE_PLUGIN_DIR_PATH . 'views/course_header.php'); $b_image = $lecture_ob->cfCourse_get_gravatar_image($email, 74); $section = self::getSections($c_id); $progress = self::getUserProgress($mem_id, $c_id, $s_id, $o_id); $watched = (($progress == true) ? "checked" : ""); if ($new_theme == "d") { $theme_order = ""; } else { $theme_order = "order-md-last order-first"; } if ($new_theme == "d") { ?> <style> .c--cf .nav_top { width: 100%; border-right: 1px solid #ccc; } .custome-c-color { color: <?= $cstyle->color ?> !important; } .custom-c-btnbcolor { color: <?= $cstyle->btnbackgroundColor ?> !important; } .custom-c-btncolor { background-color: <?= $cstyle->btnColor ?> !important; } .custom-c-fullsection { background-color: <?= $cstyle->fulsecbackgroundColor ?> !important; } .custom-c-headerbackgroundColor { background-color: <?= $cstyle->headerbackgroundColor ?> !important; background: <?= $cstyle->headerbackgroundColor ?> !important; } @media (min-width: 1024px) { .c--cf .nav_top { width: 102%; } } </style> <?php } ?> <style> .custome-c-color { color: <?= $cstyle->color ?> !important; } .custom-c-btncolor { color: <?= $cstyle->btnbackgroundColor ?> !important; } .custom-c-btnbcolor { background-color: <?= $cstyle->btnColor ?> !important; } .custom-b-secbackgroundColor { background-color: <?= $cstyle->secbackgroundColor ?> !important; } .custom-c-fullsection { background-color: <?= $cstyle->fulsecbackgroundColor ?> !important; } .custom-c-headerbackgroundColor { background-color: <?= $cstyle->headerbackgroundColor ?> !important; /* background-color: !important; */ } </style> <div class="c--cf wrapper d-flex align-items-stretch custom-<?= $theme; ?>-fullsection"> <nav id="sidebar" class="<?= $theme_order; ?> sidebar"> <div class="sidebar-inner" style="background-color:#fff;"> <div class="nav_top custom-<?= $theme; ?>-headerbackgroundColor"> <div class="cdesktop-nav"> <div class="home"><a href="<?= $membership_url; ?>" data-bs-toggle="tooltip" data-placement="right" title="Home"><i class="fa fa-home" aria-hidden="true"></i></a></div> <div class="home"><a href="?logout=1" data-bs-toggle="tooltip" data-placement="right" title="Logout"><i class="fas fa-sign-out-alt" aria-hidden="true"></i></a></div> <div class="home cf--copen-navbar"><a href="javascript:void(0)" id="cf--copen-navbar"><i class=" fas fa-stream" aria-hidden="true"></i></a></div> </div> <div class="cmobile-cnav"> <?php if ($prev_order_n > 1) { ?> <div class="cmobile-nav"><a href="<?= $prev_lecture_url; ?>" class="continue cf-course-mark-asc custom-<?= $theme; ?>-btnbcolor custom-<?= $theme; ?>-btncolor" data-bs-toggle="tooltip" data-placement="top" title="Previous Lecture"><i class="fa fa-angle-left"></i></a></div> <?php } ?> <div class="cmobile-nav"><a href="javascript:void(0)" class="continue cf-course-mark-asc cf-course--st-cnext custom-<?= $theme; ?>-btnbcolor custom-<?= $theme; ?>-btncolor" data-href="<?= $next_lecture_url; ?>" data-watched="<?= $watched; ?>" data-cid="<?= $c_id; ?>" data-mid="<?= $mem_id; ?>" data-sid="<?= $s_id; ?>" data-oid="<?= $next_lecture['option_id']; ?>" data-type="<?= $option_type ?>" data-bs-toggle="tooltip" data-placement="top" title="Next Lecture"><i class="fa fa-angle-right"></i> </a></div> </div> </div> <div class="cf-c-leftside custom-<?= $theme; ?>-fullsection"> <div class="pt-2 ps-2"> <h3 class="text-dark custome-<?= $theme; ?>-color"> <?= $course_name; ?></h3> </div> <hr /> <div class="progress-section mx-auto progressbar text-center"> <progress id="c-cf--progress" value="<?= $progress_perc ?>" max="100"> <?= $progress_perc ?>% </progress> <span class="d-inline-block text-center custome-<?= $theme; ?>-color"><span id="c-cf--progress-int"><?= $progress_perc ?>%</span> <?= $ctext->text94; ?> </div> <?php if ($progress_perc >= 100) { ?> <div class="card-header d-flex justify-content-between"> <div class="mx-2 cf-cirt-download text-center"> <button type="button" class="btn btn-primary btn-sm text-white "><i class="fas fa-certificate"></i> Download Certificate </button> <br><br> </div> <div class="cf-cirt-share pt-3 ps-1"> <button type="submit" class="btn btn-primary btn-sm text-white" data-bs-toggle="modal" data-bs-target=".bd-example-modal-lg"><i class="fas fa-certificate"></i> Share Certificate </button> <div class="modal fade bd-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg" style="width: 450px;"> <div class="modal-content"> <div class="modal-header"> <h5 class="text-dark">Please select the website to share</h5> <button type="button" class="close" data-bs-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <div class="modal_icons" id="modal_icons"> <form method="post" action="" id="certificate-form"> <input type="hidden" name="export_cert_for_down" id="export-cert-date" /> <input type="hidden" name="export_cert_for_share" id="export-cert-date-share" value="share" /> <button type="submit" name="submit_button_fb" class="sub_button fab fa-facebook"></button> <button type="submit" name="submit_button_twitter" class="sub_button fab fa-twitter"></button> <button type="submit" name="submit_button_linkedin" class="sub_button fab fa-linkedin"></button> <button type="submit" name="submit_button_google" class="sub_button fab fa-google"></button> <button type="submit" name="submit_button_instagram" class="sub_button fab fa-instagram"></button> <button type="submit" name="submit_button_telegram" class="sub_button fab fa-telegram"></button> </form> </div> </div> </div> </div> </div> </div> </div> <?php } ?> <div id="cf-coursec-pc"> <div id="cf-coursec-desktop" class="cf-course-mr-s-c"> <ul class="list-unstyled components"> <?php $scount = 1; $drip_count = 0; $add_days = 0; while ($sections = $section->fetch_object()) { $drip_count++; $sid = $sections->id; $title = htmlspecialchars(stripslashes($sections->title)); $sactive = 'c--cf-sactive'; if ($scount == 1) { $nsactive = 'c--cf-sactive'; } else { $nsactive = ''; } if ($person == "s") { self::addDripFeedData($mem_id, $c_id); } //Drip Feeding $result_drip = self::showDripLocks($mem_id, $c_id, $sid); if ($result_drip->num_rows > 0 && $row = $result_drip->fetch_assoc()) { $drip_days = $row['drip_days']; $created_at = $row['created_at']; } else { $drip_days = 0; $created_at = date("Y-m-d", time()); } $add_times_ser = date("Y-m-d", time()); //to pick date from Server.. $open_modal = ""; $drip_on_off = $cr['drip_on_off']; $lock_content = true; if (isset($drip_on_off)) { if ($drip_on_off == 1 || $drip_on_off == "1") //showing locks system only if drip is on via admin. { if ($drip_count == 1) { $htmCon_lock = ''; $drip_collapse = "collapse"; $lock_content = true; } else { if ($created_at <= $add_times_ser) { $htmCon_lock = '<i class="fa fa-unlock"></i>'; $drip_collapse = "collapse"; $lock_content = true; } else { $htmCon_lock = '<i class="fa fa-lock"></i>'; $drip_collapse = ""; $open_modal = "cf-course-open-model"; $add_days = $add_days + $drip_days; $lock_content = false; } } } //drip on off ends if condition } //Drip Feeding ?> <li> <a href="javascript:void(0)" class=" <?= $sactive . " " . $nsactive . " " . $open_modal; ?>" data-days="<?= $add_days; ?>"> <span class="c--cf-section"><?= isset($htmCon_lock) ? $htmCon_lock : ''; ?> <?= $ctext->text25; ?> <?= $scount; ?>: </span> <span> <?= $title; ?></span></a> <ul class="list-unstyled c-cf-submenu"> <?php $scount++; $count = 1; if ($lock_content) { $content = self::getCourseContent($c_id, $sid); if ($content) { while ($contents = $content->fetch_object()) { $oid = $contents->id; $ctitle = htmlspecialchars(stripslashes($contents->title)); $ctype = $contents->option_type; $ctype_font = ''; $cactive = ($o_id == $oid) ? 'c--cf-cactive' : ""; if ($ctype == "quiz") { $ctype_font .= '<i class="fas fa-book-reader" aria-hidden="true"></i>'; } else if ($ctype == "lecture") { $ctype_font .= '<i class="fas fa-play-circle" aria-hidden="true"></i>'; } else if ($ctype == "assign" || $ctype == "test") { $ctype_font .= '<i class="fas fa-book-reader" aria-hidden="true"></i>'; } $ctype = $ctype == 'assign' ? 'assignment' : $ctype; if (isset($_GET['page']) && $_GET['page'] == 'cfcourse_preview') { $lecture_url = $course_show_url . "?page=cfcourse_preview&id=$c_id&content=$oid&type=$ctype"; } else { $lecture_url = $course_show_url . "?id=$c_id&content=$oid&type=$ctype"; } $progress1 = self::getUserProgress($mem_id, $c_id, $sid, $oid); $watched1 = ($progress1 == true) ? "checked" : ""; ?> <li tabindex="-1" class="<?= $cactive; ?>"> <a href="<?= $lecture_url; ?>" class="<?= $cactive; ?> custome-<?= $theme; ?>-color"> <input type="checkbox" data-bs-toggle="tooltip" title="Mark as complete" class="cf-course-msrs-lch text-dark" <?= $watched1; ?> id="cf-course-sl-checkbox-<?= $oid; ?>" data-c_id="<?= $c_id; ?>" data-m_id="<?= $mem_id; ?>" data-s_id="<?= $sid; ?>" data-op_id="<?= $oid; ?>"> <?= $ctype_font ?> <?= $ctitle ?></a> </li> <?php } } } ?> </ul> </li> <?php } ?> </ul> </div> </div> </div> </div> </nav> <!-- === Page Content === --> <div id="content"> <div class="inner_content custom-<?= $theme; ?>-headerbackgroundColor"> <?php if ($prev_order_n > 1) { ?> <a href="<?= $prev_lecture_url; ?>" class="continue cf-course-mark-asc custom-<?= $theme; ?>-btnbcolor custom-<?= $theme; ?>-btncolor" data-bs-toggle="tooltip" data-placement="top" title="<?= $ctext->text99; ?>"><i class="fa fa-angle-left"></i> <?= $ctext->text95; ?> </a> <?php } ?> <a href="javascript:void(0)" class="continue cf-course-mark-asc cf-course--st-cnext custom-<?= $theme; ?>-btnbcolor custom-<?= $theme; ?>-btncolor" data-href="<?= $next_lecture_url; ?>" data-watched="<?= $watched; ?>" data-cid="<?= $c_id; ?>" data-mid="<?= $mem_id; ?>" data-sid="<?= $s_id; ?>" data-onid="<?= $o_id; ?>" data-oid="<?= $next_lecture['option_id']; ?>" data-type="<?= $next_lecture['option_type'] ?>" data-bs-toggle="tooltip" data-placement="top" title="<?= $ctext->text98; ?>"> <?= $ctext->text96; ?> <i class="fa fa-angle-right"></i> </a> </div> <div class="inner_meta custom-<?= $theme; ?>-fullsection"> <div class="custom-menu"> <button type="button" id="sidebarCollapse" class="custome-<?= $theme; ?>-color"><?= $content_typei . " " . $content_title; ?> </button> </div> <div class="videobox-outer"> <div class="text-center"> <div class="videobox"> <div class="responsive-video"> <div class="cf-course-videobox-a" id="cf-course-content-play-s"> <?php if (isset($option_type) && $option_type == "quiz") : echo '<div class="cf-course-ml-cs border" >'; require_once(COURSE_PLUGIN_DIR_PATH . 'views/include_stud_quiz.php'); echo '</div>'; elseif (isset($option_type) && $option_type == "assignment") : echo '<div class="cf-course-ml-cs border">'; require_once(COURSE_PLUGIN_DIR_PATH . 'views/include_stud_assignment.php'); echo "</div>"; elseif (isset($option_type) && $option_type == "test") : echo '<div class="cf-course-ml-cs border" >'; require_once(COURSE_PLUGIN_DIR_PATH . 'views/include_stud_test.php'); echo "</div>"; elseif (isset($option_type) && $option_type == "lecture") : echo '<div class="cf-course-ml-cs" id="cf-course-ml-all--video">'; require_once(COURSE_PLUGIN_DIR_PATH . 'views/include_stud_lecture.php'); echo "</div>"; else : ?> <div class="cf-course-ml-cs"> <div class="cf-course-show-lect"> <div class="cf-course-ml-show-cfvideo cf-course-ml-show-blck"> <div class="cf-course-msl-cfvideo cf-course-ml-show-cont mx-auto w-100 w-xl-75 px-sm-4 "> <?php if (!empty($course_video)) : echo $course_video; elseif (!empty($course_image)) : echo $course_image; else : ?> <div class="cf-course-ml-show-document pt-2 p-sm-5"> <div class="cf-course-msl-document text-white pt-2 p-sm-5"> <div class="cf-course-down-doc text-center p-sm-2 p-xl-5"> <div class="font-weight-bolder "> <?= $course_name; ?> </div> </div> </div> </div> <?php endif; ?> </div> </div> </div> </div> <?php endif; ?> <!-- class cf-course-ml-cs ends here --> <div class="d p-2" style="background-color:#000000;"> <div class="d-flex justify-content-center"> <div class="mx-2 cf-course--vid-n"> <a class="btn cf--c--sb text-white btn-sm cf-cexpend cf-cexpend-block"> <i class="fas fa-arrows-alt-h"></i> </a> <a class="btn cf--c--sb text-white btn-sm cf-cexpend cf-cexpend-none"> <i class="fas fa-compress-alt"></i> </a> </div> <div class="mx-2 cf-course--vid-n"> <a class="btn cf--c--sb text-white cf-course--fu-vid btn-sm cf-course--fu-vidblock"><i class="fas fa-expand-arrows-alt"></i></a> <a class="btn cf--c--sb text-white cf-course--fu-vid btn-sm cf-course--fu-vidnone"> <i class="fas fa-compress-arrows-alt"></i> </a> </div> </div> </div> <div id="mycf_course_drip_submit_model" class="cf_course_drip_model" style="border-radius:5px"> <!-- cf_course_drip_model content --> <div class="cf_course_drip_model-content"> <div class="alert position-relative pb-0 mb-0 alert-info"> <span class="cf-course-close-drip cf-course-close-drip-btn">×</span> <span class="cf-course-close-drip cf-course-close-drip-btn-aq">×</span> <h5><?= $ctext->text36; ?></h5> </div> <div class="cf_course_drip_model-body py-3 cf_course_sub_asquizz-model"><?= $ctext->text30; ?>?</div> <div class="modal-footer"> <button type="button" class="btn btn-sm btn-primary cf-course-close-drip-btn"><?= $ctext->text9; ?></button> <button type="button" class="btn btn-sm btn-primary cf-course-close-drip-btn-aq"><?= $ctext->text9; ?></button> <button type="button" class="btn btn-sm btn-success " id="cf-course-submit--asqiuz--btn"><?= $ctext->text31; ?></button> </div> </div> </div> </div> </div> </div> </div> <div class="text-center my-4"> <a href="javascript:void(0)" class="continue cf-course-mark-asc cf-course--st-cnext custom-<?= $theme; ?>-btnbcolor custom-<?= $theme; ?>-btncolor" data-href="<?= $next_lecture_url; ?>" data-watched="<?= $watched; ?>" data-cid="<?= $c_id; ?>" data-mid="<?= $mem_id; ?>" data-sid="<?= $s_id; ?>" data-oid="<?= $next_lecture['option_id']; ?>" data-type="<?= $option_type ?>" data-bs-toggle="tooltip" data-placement="top" title="<?= $ctext->text98; ?>" data-onid="<?= $o_id; ?>"><?= $ctext->text96; ?> <i class="fa fa-angle-right"></i> </a> </div> </div> <div class="impression_wrapper_outer"> <div class="" id="impression_wrapper_c"> <div class="impression_wrapper"> <div class="d-flex justify-content-start align-items-center nav nav-tabs impression_wrapper_in" role="tablist"> <div class="badge1 c--cf-navactive" data-bs-toggle="tab" href="#nav-home-tab" role="tab" aria-controls="nav-home-tab" aria-selected="true"><?= $ctext->text97; ?></div> <div class="badge1" data-bs-toggle="tab" href="#nav-profile-tab" role="tab" aria-controls="nav-profile-tab" aria-selected="false"><?= $ctext->text14; ?></div> <div class="badge1" data-bs-toggle="tab" href="#nav-contact-tab" role="tab" aria-controls="nav-contact-tab" aria-selected="false"><?= $ctext->text4; ?></div> </div> <div class="tab-content" id="nav-tabContent"> <div class="tab-pane fade show active" id="nav-home-tab" role="tabpanel" aria-labelledby="nav-home-tab"> <div class="cf-course-description-a"> <?php if (isset($option_type) && isset($o_id)) : $con_desc = self::getContentDescription($o_id, $c_id); $con_details = self::getContentDetails($o_id, $c_id); $help_cont = self::getHelpContentData($o_id); $cosdlen = strip_tags($con_desc); if (strlen($cosdlen) > 500) { $class1 = "cf-course-assign-ada-ans-h"; $button1 = '<a href="javascript:void(0)" class="d-inline-block cf-course-assign-ada-btn">' . $ctext->text39 . '</a>'; } else { $class1 = ''; $button1 = ''; } if ($option_type == "lecture") { $about_t = $ctext->text17; } else if ($option_type == "assignment") { $about_t = $ctext->text56; } else if ($option_type == "quiz") { $about_t = $ctext->text55; } elseif ($option_type == "test") { $about_t = $ctext->text54; } else { $about_t = $ctext->text53; } else : $about_t = $ctext->text17; endif; ?> <div class="cf-course-content pt-1"> <h3 class="custome-<?= $theme; ?>-color"><?= $about_t; ?>: </h3> <img src="<?= $p_dir_url; ?>/assets/image/bluedivider.png" alt="" class="img-fluid"> </div> <div class="cf-course-sltdec cf-course-read-more-des position-relative c--cf-l-des py-2 px-3"> <div class="cf-couse-slcon text-dark py-2 <?= $class1; ?> custome-<?= $theme; ?>-color c--cf-l-des"> <?= $con_desc; ?> </div> <?= $button1; ?> </div> <?php if ($help_cont->num_rows > 0) { echo '<div class="cf-course-msrs-lctexd mt-4"><h5>' . $ctext->text65 . '</h5>'; while ($h_ds = $help_cont->fetch_assoc()) { $link = htmlentities($h_ds["link"]); $text = htmlentities($h_ds["text"]); echo '<div class="cf-course-lex p-1">'; if ($h_ds['resource_type'] == "d") : echo '<a href="' . $link . '" download class="text-primary"> <i class="fas fa-download"></i> ' . $text . ' </a>'; elseif ($h_ds['resource_type'] == "v") : echo '<a href="' . $link . '" target="_blank" class="text-success"> <i class="fas fa-eye"></i> ' . $text . ' </a>'; elseif ($h_ds['resource_type'] == "l") : echo '<a href="' . $link . '" target="_blank" class="text-info"> <i class="fas fa-link"> </i> ' . $text . ' </a>'; endif; echo '</div>'; } echo '</div>'; } ?> <?php if ($con_details['option_type'] == "assign" || $con_details['option_type'] == "test") { $astst = $con_details['option_type'] == "assign" ? $ctext->text23 : $ctext->text29; $assingment_details = $assign_stud_ob->get_assign_details_by_id($o_id); $inst_video_url = $assingment_details['inst_video_url']; $inst_instructions = $assingment_details['inst_instructions']; $inst_resourses_url = $assingment_details['inst_resourses_url']; $solu_video_url = $assingment_details['solu_video_url']; $solu_down_resource = $assingment_details['solu_down_resource']; $training_ob = $this->loader->load("training_control"); if (stristr($inst_video_url, "youtu")) { $vid = $training_ob->getYoutubeVimeoId($inst_video_url, "y"); $ivu = '<iframe style="width:80%;height:200px" src="https://www.youtube.com/embed/' . $vid . '" title="YouTube video player" frameborder="0" allowfullscreen></iframe>'; } else if (stristr($inst_video_url, "vimeo")) { $vid = $training_ob->getYoutubeVimeoId($inst_video_url, "vm"); $ivu = '<iframe style="width:80%;height:200px" src="https://player.vimeo.com/video/' . $vid . '" width="100%" frameborder="0" allow="fullscreen; picture-in-picture" allowfullscreen></iframe>'; } else { $ivu = '<video style="width:80%;height:200px" controls> <source src="' . $inst_video_url . '" type="video/mp4"> <source src="' . $inst_video_url . '" type="video/ogg"> Your browser does not support the video tag. </video>'; } $ivu = (!empty($inst_video_url)) ? '<h4 class="py-2">' . $ctext->text100 . '</h4>' . $ivu : ""; if (stristr($solu_video_url, "youtu")) { $vid = $training_ob->getYoutubeVimeoId($solu_video_url, "y"); $svu = '<iframe style="width:80%;height:200px" src="https://www.youtube.com/embed/' . $vid . '" title="YouTube video player" frameborder="0" allowfullscreen></iframe>'; } else if (stristr($solu_video_url, "vimeo")) { $vid = $training_ob->getYoutubeVimeoId($solu_video_url, "vm"); $svu = '<iframe style="width:80%;height:200px" src="https://player.vimeo.com/video/' . $vid . '" width="100%" frameborder="0" allow="fullscreen; picture-in-picture" allowfullscreen></iframe>'; } else { $svu = ' <video style="width:80%;height:200px" controls> <source src="' . $solu_video_url . '" type="video/mp4"> <source src="' . $solu_video_url . '" type="video/ogg"> Your browser does not support the video tag. </video>'; } $svu = (!empty($solu_video_url)) ? '<h4 class="py-2">' . $ctext->text62 . '</h4>' . $svu : ""; $i_res_u = ' <h5 class="py-2 mt-2">' . $ctext->text60 . '</h5><a class="btn btn-primary" href="' . $inst_resourses_url . '" download>' . $ctext->text63 . '</a>'; $i_res_u = (!empty($inst_resourses_url)) ? $i_res_u : ""; $s_res_u = ' <h3 class="py-2 mt-2">' . $ctext->text61 . '</h3><a class="btn btn-primary" href="' . $solu_down_resource . '" download>' . $ctext->text63 . '</a>'; $s_res_u = (!empty($solu_down_resource)) ? $s_res_u : ""; echo '<div class=" mx-auto my-3"> <div class="row"> <div class="col-md-12"> <h3>' . $ctext->text64 . ' ' . $astst . '</h3> <img src="' . $p_dir_url . '/assets/image/bluedivider.png" alt="" class="img-fluid"></div> </div> <div class="row">'; if (!empty($inst_instructions)) { echo '<div class="col-md-12 cf-couse-slcon">' . $inst_instructions . '</div>'; } if (!empty($ivu)) { echo '<div class="col-md-6">' . $ivu . '</div>'; } if (!empty($svu)) { echo '<div class="col-md-6">' . $svu . '</div>'; } echo '</div>'; echo '<div class="row">'; if (!empty($i_res_u)) { echo '<div class="col-md-6">' . $i_res_u . '</div>'; } if (!empty($s_res_u)) { echo '<div class="col-md-6">' . $s_res_u . '</div>'; } echo '</div>'; echo '</div>'; } ?> <hr /> <div class="row"> <div class="col-lg-5 col-md-5 col-sm-12"> <h3 class="custome-<?= $theme; ?>-color"><?= $ctext->text18; ?>: </h3> <img src="<?= $p_dir_url; ?>/assets/image/bluedivider.png" alt="" class="img-fluid"> <ul> <li class="custome-<?= $theme; ?>-color"> <p> <span class="cf-course-label-6"><?= $ctext->text19; ?> : </span> <?php if ($cr['level'] == "INT") { echo $ctext->text57; } else if ($cr['level'] == "BEG") { echo $ctext->text58; } else if ($cr['level'] == "EXP") { echo $ctext->text59; } else { echo "ALL"; } ?> </p> </li> <li> <p class="custome-<?= $theme; ?>-color"><span class="cf-course-label-6 "><?= $ctext->text20; ?> : </span><?= $this->getCourseCategory($cr['category']); ?></p> </li> <li class="custome-<?= $theme; ?>-color"> <p><span class="cf-course-label-6"><?= $ctext->text48; ?> : </span><?= $t_l['t_l']; ?> </p> </li> <li class="custome-<?= $theme; ?>-color"> <p><span class="cf-course-label-6"><?= $ctext->text22; ?> : </span><?= $t_q['t_q']; ?> </p> </li> <li class="custome-<?= $theme; ?>-color"> <p><span class="cf-course-label-6"><?= $ctext->text23; ?> : </span><?= $t_a['t_a']; ?> </p> </li> <li class="custome-<?= $theme; ?>-color"> <p><span class="cf-course-label-6"><?= $ctext->text29; ?> : </span><?= $t_t['t_t']; ?> </p> </li> </ul> </div> <div class="col-lg-7 col-md-7 col-sm-12"> <h3 class="custome-<?= $theme; ?>-color"><?= $ctext->text24; ?>: </h3> <img src="<?= $p_dir_url; ?>/assets/image/bluedivider.png" alt="" class="img-fluid"> <?php $des_len = strip_tags($c_des); if (strlen($des_len) > 500) { $class = "cf-course-assign-ada-ans-h"; $button = '<a href="javascript:void(0)" class="d-inline-block cf-course-assign-ada-btn">' . $ctext->text39 . '</a>'; } else { $class = ''; $button = ''; } ?> <div class="px-3 pt-1 cf-course-read-more-des position-relative"> <div class=" <?= $class; ?> custome-<?= $theme; ?>-color "><?= $c_des; ?> </div> <?= $button; ?> </div> </div> </div> </div> </div> <div class="tab-pane fade" id="nav-profile-tab" role="tabpanel" aria-labelledby="nav-profile-tab"> <h4 class="custome-<?= $theme; ?>-color"><?= $ctext->text11; ?></h4> <div class="cf-course-content"> <div class="cf-course-other-desc-a"> <?php if (isset($option_type)) : $g_comment_enable = get_option('disable_comment'); $status = $lecture_ob->getStatusOfContent($o_id, "comment"); $l_comment_enable = $status['status']; ?> <h3 class="custome-<?= $theme; ?>-color"><?= $ctext->text14; ?>: </h3> <img src="<?= $p_dir_url; ?>/assets/image/bluedivider.png" alt="" class="img-fluid"> <div class="cf-course-discus mt-5"> <div class="cf-course-dis-pn"> <?php if ($l_comment_enable == 0) : ?> <?php if ($g_comment_enable == 0) : ?> <div class="cf-course-dis-form "> <form class="cf-course-add-comment"> <input type="hidden" name="mid" value="<?= $mem_idenc; ?>" /> <input type="hidden" name="oid" value="<?= $o_idenc; ?>" /> <input type="hidden" name="param" id="cf-course-cparam" value="save" /> <input type="hidden" name="comment_id" id="cf-course-com-id" value="" /> <input type="hidden" name="cf-course-sid" value="<?= $s_idenc; ?>" /> <input type="hidden" name="cf-course-cid" value="<?= $c_idenc; ?>" /> <input type="hidden" name="type" value="<?= $option_type; ?>" /> <input type="hidden" name="url" value="<?= $cr['show_url']; ?>" /> <input type="hidden" name="theme" value="<?= $theme; ?>" /> <input type="hidden" name="reply" id="cf-course-reply" value="no" /> <input type="hidden" name="from" value="u!^rr" /> <input type="hidden" name="cfc_comment_nonce" id="cf-course--nonce" value="<?= cf_create_nonce('cfc_comment_nonce'); ?>"> <div class="cf--c--c"> <div id="cf-course-comment-text" tabindex="0" data-placeholder="<?= $ctext->text15; ?>" contenteditable class="cf-course-com-text cf--com-in-text cf-course-text-input"></div> <span class="cf-course-focus-border"></span> </div> <div class="cf--c--s py-2 float-right" id="cf--cm--sbtn" style="visibility: visible;"> <button type="button" class="cf--c--sb cf--c--cancel-comment btn-sm d-inline-block"><?= $ctext->text9; ?></button> <button type="submit" class="cf--c--sb cf--c--post-comment btn-sm d-inline-block" disabled><?= $ctext->text13; ?></button> </div> </form> </div> <?php endif; ?> <?php endif; ?> <div class="cf-course-commts pt-1 pt-sm-3"> <div class="cf-course--separator b--cf--sepr c--cf--sepr d--cf--sepr e--cf--sepr"><?= $ctext->text11; ?></div> <?php if ($g_comment_enable == false || $g_comment_enable == -1) { if ($l_comment_enable == 0) { ?> <div class="cf-course-comments-con p-1" id="cf-course-comments-con"> <div id="cf-course-to--comm-"> <?php echo $com_row = $lecture_ob->getContentCommentB($o_id, $mem_id, $last_id = 0, "all"); ?> </div> </div> <?php } else { ?> <div class="p-2 text-center"><?= $ctext->text27; ?></div> <?php } } else { ?> <div class="p-2 text-center"><?= $ctext->text27; ?></div> <?php } ?> </div> </div> </div> <?php endif; ?> </div> </div> </div> <div class="tab-pane fade" id="nav-contact-tab" role="tabpanel" aria-labelledby="nav-contact-tab"> <div class="cf-course-content cf-course-all-notes p-3"> <h3 class="custome-<?= $theme; ?>-color"><?= $ctext->text4; ?>: </h3> <img src="<?= $p_dir_url; ?>/assets/image/bluedivider.png" alt="" class="img-fluid"> <h3 class="text-center font-weight-bolder"><?= $ctext->text7; ?></h3> <?php if (isset($option_type)) : ?> <div class="p-1 text-center"> <button class="btn cf--c--sb btn-sm text-white" id="cf-course-notes-times"><?= $ctext->text8; ?> <span class=" d-inline-block px-2 py-1 badge text-white cf--c--sb cf-course-notes-times">00:00</span> </button> </div> <div class="cf-course-lnotes"> <form action="" class="cf-course-notes-form"> <input type="hidden" name="cf-course-l-memId" value="<?= $mem_idenc; ?>" /> <input type="hidden" class="cf-course-l-ntime" name="cf-course-l-ntime" value="" /> <input type="hidden" name="cf-course-oid" value="<?= $o_idenc; ?>" /> <input type="hidden" name="cf-course-sid" value="<?= $s_idenc; ?>" /> <input type="hidden" name="cf-course-cid" value="<?= $c_idenc; ?>" /> <input type="hidden" name="type" value="<?= $option_type; ?>" /> <input type="hidden" name="url" value="<?= $cr['show_url']; ?>" /> <input type="hidden" name="theme" value="<?= $theme; ?>" /> <input type="hidden" name="a_action" value="save" /> <input type="hidden" name="cfc_notes_nonce" id="cf-course-notes-nonce" value="<?= cf_create_nonce('cfc_notes_nonce'); ?>"> <div class="mb-3"> <label for="cf-course-lec-n" class="font-weight-bolder"><?= $ctext->text4; ?></label> <span class=" d-inline-block px-2 py-1 badge badge-primary cf-course-notes-ti">30:20</span> <textarea rows="4" name="cf-course-l-notes" id="cf-course-notes-add" class="form-control cf-course-notes-add"></textarea> </div> <div class="mb-3"> <div class="float-right p-2"> <button type="button" class="btn btn-sm text-white cf--c--sb" id="cf-course-notes-cancel"><?= $ctext->text9; ?></button> <button type="submit" class=" cf--c--sb btn text-white btn-sm" id="cf-course-notes-add-b"><?= $ctext->text10; ?></button> </div> </div> </form> </div> <hr /> <div class="cf-course-feed-box-a"> <div class="cf-course-notes-c"> <div class="cf-course-notes mx-auto" id="cf-course-notes"> <?php echo $lecture_ob->getContentNotesB($o_id, $mem_id, $last_id = 0, 'all'); ?> </div> </div> </div> <?php else : ?> <h5 class="text-center font-weight-bold my-2 custome-<?= $theme; ?>-color"><?= $ctext->text26; ?></h5> <?php endif; ?> </div> </div> </div> </div> </div> <div class="cf-course-mr-s-c col-md-4" id="cf-course-mr-sec-con" style="height: 100vh;"> <div class="sidebar" id="cf-coursec-mobile"> </div> </div> </div> </div> </div> </div> <!-- End Sections --> <?php require_once(COURSE_PLUGIN_DIR_PATH . 'views/course_footer.php'); ?>