관리-도구
편집 파일: course_screen_a.php
<?php require_once(COURSE_PLUGIN_DIR_PATH . 'views/course_header.php'); $b_image = $lecture_ob->cfCourse_get_gravatar_image($email, 40); $sresultm = self::getSections($c_id); $progress = self::getUserProgress($mem_id, $c_id, $s_id, $o_id); $watched = (($progress == true) ? "checked" : ""); ?> <style> .custom-b-color { color: <?= $cstyle->color ?> !important; } .custom-a-btncolor { color: <?= $cstyle->btnbackgroundColor ?> !important; } .custom-a-btnbcolor { background-color: <?= $cstyle->btnColor ?> !important; background: <?= $cstyle->btnColor ?> !important; } .custom-b-secbackgroundColor { background-color: <?= $cstyle->secbackgroundColor ?> !important; } .custom-b-fullsection { background-color: <?= $cstyle->fulsecbackgroundColor ?> !important; } .custom-b-headerbackgroundColor { background-color: <?= $cstyle->headerbackgroundColor ?> !important; background: <?= $cstyle->headerbackgroundColor ?> !important; /* background-color: !important; */ } @media (max-width: 400px) { .cf-course-mark-asc { font-size: 0.765em; } } @media (max-width: 500px) { .cf-coursea-buttons { /* width: 100%; */ align-self: center; } } .sub_button { border: 0px; } .fab { padding: 5px; font-size: 50px; width: 60px; text-align: center; text-decoration: none; margin: 5px 2px; } .fab:hover { opacity: 0.7; } .fa-facebook { background: #3B5998; color: white; } .fa-twitter { background: #55ACEE; color: white; } .fa-linkedin { background: #007bb5; color: white; } .fa-google { background: #dd4b39; color: white; } .fa-instagram { background: #125688; color: white; } .fa-telegram { background: #45bbff; color: white; } </style> <div id="cf-course-main-screen"> <div class="cf-course-ms custom-b-fullsection"> <div class="cf-course-ms-i"> <?php if ($default_header == 1) : ?> <div class="cf-course-ms-head pt-1 bg-dark custom-b-headerbackgroundColor" id="cf-course-ms-head"> <div class="cf-course-ms-h mx-3" id="cf-course-ms-head-div"> <div class="d-flex justify-content-between align-content-center align-items-center "> <?php if ($bimg_height == $bimg_width || $bimg_height > $bimg_width) { $image_w_h = "width:47px;height:47px;border-radius:50px"; } else if ($bimg_height < $bimg_width || $bimg_height > $bimg_width) { $image_w_h = "width:100px;height:47px"; } else { $image_w_h = "width:47px;height:47px;border-radius:50px"; } ?> <div class="cf-course-brand--img" style="<?= $image_w_h; ?>"> <?php if (!empty($brand_image)) { echo '<img src="' . $brand_image . '" class="img-fluid" />'; } ?> </div> <div class="text-white ms-1 ms-sm-4 d-lg-block d-none"> <?php if (isset($_GET['cf_vid']) && isset($o_id)) : echo self::getLectureHeader($o_id, 1, "all"); else : echo '<div class="cf-course-slti px-1 px-sm-0"> <span class="cf-course-clttext custom-b-color"> ' . $course_name . ' <span> </div>'; endif; ?> </div> <div class="me-1 me-sm-3"> <div class="d-flex justify-content-center align-content-center align-items-center "> <div class="cf-course-second cf-course-circle"> <strong></strong> </div> <div class="cf-course-com-itop ms-2"> <div class="position-relative"> <div class="text-white cf-course-dropdown-progress" data-bs-toggle="collapse"> <?= $ctext->text36; ?><i class="fas fa-angle-down ps-1"></i> </div> <div class="collapse cf-course-header-dropdown cf-course-progress-dropdown" id="cf-course-header-dropdown1" style="left:-42px;top:34px"> <div class="dropdown-divider "></div> <span class="dropdown-item p-2 d-inline-block"> <span id="cf-course-a-mem-p" class="cf-course-memebr-progress"><?= $totol_progress ?> </span> of <?= $alllecture_count ?> complete.</span> </div> </div> </div> <div class="cf-course-com-itop py-2 ms-1 ms-sm-3"> <div class="position-relative"> <a class="cf-course-img" title="Go Back" href="<?= $cr['membership_url'] ?>"> <img src="<?= $b_image ?>" classs="img-thumbnail" alt="image of <?= $name; ?>" /> </a> </div> </div> </div> </div> </div> </div> </div> <?php endif; ?> <div class="d-flex"> <div class="cf-course-msl" id="cf-course-msl-c"> <div class="cf-course-ms-l-c"> <div id="cf-course-content-play-s"> <?php if (isset($option_type) && $option_type == "quiz") : echo '<div class="cf-course-ml-cs">'; 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" >'; 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" >'; 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 custom-b-color "> <?= $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-coursea-buttons"> <?php if ($prev_order_n > 1) { ?> <a href="<?= $prev_lecture_url; ?>" class=" btn btn-primary btn-sm cf-course-mark-asc custom-a-btnbcolor custom-a-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="btn btn-primary btn-sm cf-course-mark-asc cf-course--st-cnext custom-a-btnbcolor custom-a-btncolor" data-href="<?= $next_lecture_url; ?>" data-watched="<?= $watched; ?>" data-cid="<?= $c_id; ?>" data-mid="<?= $mem_id; ?>" data-sid="<?= $s_id; ?>" data-oid="<?= $o_id; ?>" data-onid="<?= $o_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="mx-2 cf-course--vid-n"> <a class="btn btn-primary custom-a-btnbcolor custom-a-btncolor btn-sm text-white cf-course--ci-vid cf-course--ci-vidblock"> <i class="fas fa-arrows-alt-h"></i></a> <a class="btn btn-primary custom-a-btnbcolor custom-a-btncolor btn-sm text-white cf-course--ci-vid cf-course--ci-vidnone"> <i class="fas fa-compress-alt"></i></a> </div> <div class="mx-2 cf-course--vid-n"> <a class="btn btn-primary custom-a-btnbcolor custom-a-btncolor btn-sm text-white cf-course--fu-vid cf-course--fu-vidblock"> <i class="fas fa-expand-arrows-alt"></i></a> <a class="btn btn-primary custom-a-btnbcolor custom-a-btncolor btn-sm text-white cf-course--fu-vid 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->text32; ?></h5> </div> <div class="cf_course_drip_model-body py-3 cf_course_sub_asquizz-model custom-b-color"><?= $ctext->text30; ?>?</div> <div class="modal-footer"> <button type="button" class="btn btn-sm btn-primary custom-a-btnbcolor custom-a-btncolor cf-course-clos e-drip-btn"><?= $ctext->text9; ?></button> <button type="button" class="btn btn-sm btn-primary custom-a-btnbcolor custom-a-btncolor cf-course-close-drip-btn-aq"><?= $ctext->text9; ?></button> <button type="button" class="btn btn-sm btn-success custom-a-btnbcolor custom-a-btncolor" id="cf-course-submit--asqiuz--btn"><?= $ctext->text31; ?></button> </div> </div> </div> </div> <div class="cf-course-msl-c-c "> <div class="cf-course-ml-c"> <div class="cf-course-mls px-sm-2 px-md-3"> <?php if (isset($option_type) && isset($o_id)) : echo self::getOptionsContent($o_id, $s_id, $c_id, 1, $assign_stud_ob, "title", $mem_id, $ctext); endif; ?> <div class="cf-course-sldecon p-sm-3"> <div class="cf-course-sldcont"> <div class="cfcourse-tab-menu "> <ul> <li id="cf-course-msl-ft-btn" class="cf-course-tab-a custom-a-btnbcolor custom-a-btncolor cf-course-tabs-a-1" data-id="1"><?= $ctext->text1; ?></li> <li id="cf-course-second-t" class="cf-course-tab-a custom-a-btnbcolor custom-a-btncolor cf-course-active-a cf-course-tabs-a-2" data-id="2"><?= $ctext->text2; ?></li> <?php if (isset($option_type)) : ?> <li class="cf-course-tab-a cf-course-tabs-a-3 custom-a-btnbcolor custom-a-btncolor" id="cf-course-tabs-a-3" data-id="3"><?= $ctext->text3; ?></li> <?php endif; ?> <?php if (isset($option_type) && $option_type == "lecture" && ($l_type == "y" || $l_type == "vm" || $l_type == "vu")) : ?> <li class="cf-course-tab-a cf-course-tabs-a-4 custom-a-btnbcolor custom-a-btncolor" id="cf-course-tabs-a-4" data-id="4"><?= $ctext->text4; ?></li> <?php endif; ?> </ul> </div> <!--end of tab-menu--> <div class="cfcourse-tabs cfcourse-tabs-1" data-id="tab1" id="cf-course-msl-f-tabs"> <div class="cf-course-content p-sm-3 p-0"> <div class="cf-course-mr-s" id="cf-course-mr-mobs-c"> <div class="cf-course-mr-s-c" id="cf-course-msr-s-mm"> <?php echo self::getallSectionDataMo($sresultm, $c_id, $mem_id, $o_id, $s_id, $theme, $person, $cr['drip_on_off'], $ctext, $theme); ?> </div> </div> </div> </div> <div class="cfcourse-tabs cfcourse-tabs-2 c--cf--over-t cf-course-tab-active" data-id="tab2" id="cf-course-msl-s-tabs"> <?php if (isset($option_type) && isset($o_id)) : echo self::getOptionsContent($o_id, $s_id, $c_id, 1, $assign_stud_ob, "desc", $mem_id, $ctext); endif; ?> <div class="cf-course-content px-3"> <h5 class="font-weight-bold custom-b-color"><?= $ctext->text18; ?></h5> </div> <hr> <div class="cf-course-dess px-3 pt-2 "> <div class="row"> <div class="col-md-4"> <div><span class="cf-course-label-6 custom-b-color"><?= $ctext->text19; ?>: </span><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"; } ?> </span></div> <div class="custom-b-color"><span class="cf-course-label-6 "><?= $ctext->text20; ?>: </span><span> <?= $this->getCourseCategory($cr['category']); ?></span></div> <div class="custom-b-color"><span class="cf-course-label-6"><?= $ctext->text21; ?>: </span><span> <?= $t_l['t_l']; ?></span></div> </div> <div class="col-md-8"> <div class="custom-b-color"><span class="cf-course-label-6"><?= $ctext->text22; ?>: </span><span> <?= $t_q['t_q']; ?> </span></div> <div class="custom-b-color"><span class="cf-course-label-6"><?= $ctext->text23; ?>: </span><span> <?= $t_a['t_a']; ?></span></div> <div class="custom-b-color"><span class="cf-course-label-6"><?= $ctext->text29; ?>: </span><span> <?= $t_t['t_t']; ?></span></div> </div> </div> </div> <hr> <h6 class="cf-course-label-6 px-3 custom-b-color"><?= $ctext->text24; ?></h6> <?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 custom-a-btnbcolor custom-a-btncolor cf-course-assign-ada-btn">' . $ctext->text39 . '</a>'; } else { $class = ''; $button = ''; } ?> <div class="px-3 pt-1 cf-course-read-more-des position-relative custom-b-color"> <div class=" <?= $class; ?> "><?= $c_des; ?> </div> <?= $button; ?> </div> </div> <!--end of tab one--> <div class="cfcourse-tabs pb-5 cfcourse-tabs-3" id="cfcourse-tabs-3" data-id="tab3"> <div class="cf-course-content"> <?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="text-center py-3 custom-b-color"><?= $ctext->text14; ?></h3> <div class="cf-course-discus b--cf--discuss c--cf--discuss d--cf--discuss e--cf--discuss"> <div class="cf-course-dis-pn mx-auto"> <?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="reply" id="cf-course-reply" value="no" /> <input type="hidden" name="from" value="u!^rr" /> <input type="hidden" name="theme" value="<?= $theme; ?>" /> <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 custom-a-btnbcolor custom-a-btncolor btn-sm d-inline-block"><?= $ctext->text9; ?></button> <button type="submit" class="cf--c--sb cf--c--post-comment custom-a-btnbcolor custom-a-btncolor 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 custom-b-color"><?= $ctext->text11; ?></div> <?php if ($g_comment_enable == false || $g_comment_enable == -1) { if ($l_comment_enable == 0) { $rows = $lecture_ob->getContentCommentRow($o_id); if ($rows > 0) { ?> <div class="cf-course-comments-con p-1" id="cf-course-comments-con"> <div id="cf-course-to--comm-"> <?php // echo $lecture_ob->getAllComment( $o_id, $mem_id, $last_id=0,'all', "no","today" ); echo $lecture_ob->getContentCommentA($o_id, $mem_id, $last_id = 0, "all") ?> </div> </div> <?php } else { ?> <div class="cf-course-comments-con p-1" id="cf-course-comments-con"> <div id="cf-course-to--comm-"> </div> <div class="p-2 text-center"> <p class=" text-center cf--no-comment custom-b-color"><?= $ctext->text12; ?></p> </div> </div> <?php } } else { ?> <div class="p-2 text-center custom-b-color"><?= $ctext->text27; ?></div> <?php } } else { ?> <div class="p-2 text-center custom-b-color"><?= $ctext->text27; ?></div> <?php } ?> </div> </div> </div> <?php endif; ?> </div> </div> <!--end of tab two--> <?php if (isset($option_type) && $option_type == "lecture" && ($l_type == "y" || $l_type == "vm" || $l_type == "vu")) : ?> <div class="cfcourse-tabs cfcourse-tabs-4 pb-5" id="cfcourse-tabs-4" data-id="tab4"> <div class="cf-course-content cf-course-all-notes p-3"> <h3 class="text-center font-weight-bolder custom-b-color"><?= $ctext->text5; ?></h3> <?php if (isset($option_type)) : ?> <div class="p-1 text-center"> <button class="btn btn-primary btn-sm custom-a-btnbcolor custom-a-btncolor" id="cf-course-notes-times"><?= $ctext->text8; ?> <span class=" d-inline-block px-2 py-1 badge badge-primary cf-course-notes-times">00:00</span> </button> </div> <div class="cf-course-lnotes"> <form action="" method="post" 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="a_action" value="save" /> <input type="hidden" name="theme" value="<?= $theme; ?>" /> <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 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-danger btn-sm custom-a-btnbcolor custom-a-btncolor" id="cf-course-notes-cancel"><?= $ctext->text9; ?></button> <button type="submit" class=" cf--c--sb btn text-white btn-sm custom-a-btnbcolor custom-a-btncolor" id="cf-course-notes-add-b"><?= $ctext->text10; ?></button> </div> </div> </form> </div> <hr /> <div class="cf-course-notes-c"> <div class="cf-course-notes mx-auto" id="cf-course-notes"> <?php echo $lecture_ob->getContentNotesA($o_id, $mem_id, $last_id = 0, 'all'); ?> </div> </div> <?php else : ?> <h5 class="text-center font-weight-bold custom-b-color my-2"><?= $ctext->text26; ?></h5> <?php endif; ?> </div> </div> <!--end of tab three--> <?php endif; ?> </div> <!--end of container--> </div> </div> </div> </div> </div> </div> <div class="cf-course-msr" id="cf-course-msr-c"> <div class="cf-course-ms-r-c '<?= ($theme == "c" ? "" : "border") ?>'" style="height:100%;"> <div class="cf-course-mr-sec"> <div class="cf-course-mr-s"> <div class="cf-course-msr-ct d--cf--crse-ti card-header d-flex justify-content-between"> <?php if ($progress_perc >= 100) { ?> <div class="cf-cirt-download pt-3 ps-1"> <button type="button" class="btn btn-primary btn-sm text-white "><i class="fas fa-certificate"></i> Download Certificate </button> </div> <div class="cf-cirt-share pt-3 ps-1"> <button type="submit" class="btn btn-primary btn-sm text-white" id="open_modal" 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> <?php } ?> </div> <div class="cf-course-msr-c pt-2 pb-2 ps-1"> <h5 class="custom-b-color"> <?= $ctext->text38; ?></h5> </div> <div class="cf-course-mr-s-c" id="cf-course-mr-sec-con"> <div class="" id="cf-course-mr-pcl-c"> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> <!-- Modal --> <!-- The cf_course_drip_model --> <?php require_once(COURSE_PLUGIN_DIR_PATH . 'views/course_footer.php'); ?>