Commit 6d016e3f by Muhammad Usman

feedback fixes

parent 9848ea4a
Pipeline #371 passed with stage
in 0 seconds
...@@ -229,6 +229,20 @@ function vq_lms_settings_init() ...@@ -229,6 +229,20 @@ function vq_lms_settings_init()
] ]
); );
add_settings_field(
'vq_lms_settings_field_intro_price',
'Intro Price',
'vq_lms_settings_field_intro_price_cb',
'vq_lms_settings',
'vq_lms_settings_section_developers',
[
'label_for' => 'vq_lms_settings_field_intro_price',
'class' => 'vq_lms_settings_row',
'vq_lms_settings_custom_data' => 'custom',
]
);
add_settings_field( add_settings_field(
'vq_lms_settings_field_shortcode', 'vq_lms_settings_field_shortcode',
'Banner Shortcode', 'Banner Shortcode',
...@@ -282,6 +296,20 @@ function vq_lms_settings_section_developers_cb($args) ...@@ -282,6 +296,20 @@ function vq_lms_settings_section_developers_cb($args)
} }
function vq_lms_settings_field_intro_price_cb($args) {
$options = get_option('vq_lms_settings_options');
?>
<input type="text"
name="vq_lms_settings_options[<?php echo esc_attr($args['label_for']); ?>]"
value="<?php echo $options[$args['label_for']]; ?>"
>
<p class="description">
<?php esc_html_e('Your entered price will be listed as intro price (special offer).', 'vq_lms_settings'); ?>
</p>
<?php
}
function vq_lms_settings_field_price_cb($args) function vq_lms_settings_field_price_cb($args)
{ {
$options = get_option('vq_lms_settings_options'); $options = get_option('vq_lms_settings_options');
......
...@@ -34,6 +34,21 @@ add_shortcode('vq_course_banner', 'vq_render_course_banner'); ...@@ -34,6 +34,21 @@ add_shortcode('vq_course_banner', 'vq_render_course_banner');
add_shortcode('vq_lms_inquiry_form', 'vq_render_inquiry_form'); add_shortcode('vq_lms_inquiry_form', 'vq_render_inquiry_form');
add_filter('the_title','change_title');
function change_title($data) {
global $post;
$title = get_post_meta($post->ID, 'lms_title', true);
if ($title != null) {
$data = $title;
}
return $data;
}
add_action( 'vq_course_promo_add_form_fields', 'add_course_promo', 10, 2 ); add_action( 'vq_course_promo_add_form_fields', 'add_course_promo', 10, 2 );
add_action( 'vq_course_promo_edit_form_fields', 'edit_course_promo', 10, 2 ); add_action( 'vq_course_promo_edit_form_fields', 'edit_course_promo', 10, 2 );
add_action( 'created_vq_course_promo', 'save_course_promo', 10, 2 ); add_action( 'created_vq_course_promo', 'save_course_promo', 10, 2 );
...@@ -100,11 +115,16 @@ function vq_lms_process_order() ...@@ -100,11 +115,16 @@ function vq_lms_process_order()
} }
$data = json_decode(stripslashes($_POST['data']), true); $data = json_decode(stripslashes($_POST['data']), true);
if ($data['terms'] != 'on') {
echo "Terms & Conditions not accepted.";
die;
}
$code = ""; $code = "";
if(isset($data['pcode'])) { if(isset($data['pcode'])) {
$code = $data['pcode']; $code = $data['pcode'];
} }
print_r(json_decode($_POST));
if (count($data['data']) === 0) { if (count($data['data']) === 0) {
echo "Unable to process your request"; echo "Unable to process your request";
...@@ -510,7 +530,7 @@ function vq_render_course_banner($attr) ...@@ -510,7 +530,7 @@ function vq_render_course_banner($attr)
if (empty($fee) || $fee <= 0) { if (empty($fee) || $fee <= 0) {
$settings = get_option('vq_lms_settings_options'); $settings = get_option('vq_lms_settings_options');
$fee = $settings['vq_lms_settings_field_general_price']; $fee = $settings['vq_lms_settings_field_intro_price'];
} }
$banner = file_get_contents(__DIR__ . '/admin/includes/large-banner.html'); $banner = file_get_contents(__DIR__ . '/admin/includes/large-banner.html');
......
...@@ -737,3 +737,316 @@ ...@@ -737,3 +737,316 @@
text-align: center; text-align: center;
color: #fff; color: #fff;
} }
.bootstrap-iso .lms-breadcrumbs {
background-color: #ececec;
padding: 20px;
}
.bootstrap-iso .lms-breadcrumbs p{
font-size: 18px;
border-bottom: 1px dotted #000;
display: inline-block;
}
.bootstrap-iso .col-xs-5th-1, .bootstrap-iso .col-xs-5th-2, .bootstrap-iso .col-xs-5th-3, .bootstrap-iso .col-xs-5th-4 {
float: left;
}
.bootstrap-iso .col-xs-5th-5 {
float: left;
width: 100%;
}
.bootstrap-iso .col-xs-5th-4 {
width: 80%;
}
.bootstrap-iso .col-xs-5th-3 {
width: 60%;
}
.bootstrap-iso .col-xs-5th-2 {
width: 40%;
}
.bootstrap-iso .col-xs-5th-1 {
width: 20%;
margin-left: 10px;
}
.bootstrap-iso .col-xs-5th-pull-5 {
right: 100%;
}
.bootstrap-iso .col-xs-5th-pull-4 {
right: 80%;
}
.bootstrap-iso .col-xs-5th-pull-3 {
right: 60%;
}
.bootstrap-iso .col-xs-5th-pull-2 {
right: 40%;
}
.bootstrap-iso .col-xs-5th-pull-1 {
right: 20%;
}
.bootstrap-iso .col-xs-5th-pull-0 {
right: auto;
}
.bootstrap-iso .col-xs-5th-push-5 {
left: 100%;
}
.bootstrap-iso .col-xs-5th-push-4 {
left: 80%;
}
.bootstrap-iso .col-xs-5th-push-3 {
left: 60%;
}
.bootstrap-iso .col-xs-5th-push-2 {
left: 40%;
}
.bootstrap-iso .col-xs-5th-push-1 {
left: 20%;
}
.bootstrap-iso .col-xs-5th-push-0 {
left: auto;
}
.bootstrap-iso .col-xs-5th-offset-5 {
margin-left: 100%;
}
.bootstrap-iso .col-xs-5th-offset-4 {
margin-left: 80%;
}
.bootstrap-iso .col-xs-5th-offset-3 {
margin-left: 60%;
}
.bootstrap-iso .col-xs-5th-offset-2 {
margin-left: 40%;
}
.bootstrap-iso .col-xs-5th-offset-1 {
margin-left: 20%;
}
.bootstrap-iso .col-xs-5th-offset-0 {
margin-left: 0%;
}
@media (min-width: 768px) {
.bootstrap-iso .col-sm-5th-1, .bootstrap-iso .col-sm-5th-2, .bootstrap-iso .col-sm-5th-3, .bootstrap-iso .col-sm-5th-4 {
float: left;
}
.bootstrap-iso .col-sm-5th-5 {
float: left;
width: 100%;
}
.bootstrap-iso .col-sm-5th-4 {
width: 80%;
}
.bootstrap-iso .col-sm-5th-3 {
width: 60%;
}
.bootstrap-iso .col-sm-5th-2 {
width: 40%;
}
.bootstrap-iso .col-sm-5th-1 {
width: 20%;
margin-left: 15px;
}
.bootstrap-iso .col-sm-5th-pull-5 {
right: 100%;
}
.bootstrap-iso .col-sm-5th-pull-4 {
right: 80%;
}
.bootstrap-iso .col-sm-5th-pull-3 {
right: 60%;
}
.bootstrap-iso .col-sm-5th-pull-2 {
right: 40%;
}
.bootstrap-iso .col-sm-5th-pull-1 {
right: 20%;
}
.bootstrap-iso .col-sm-5th-pull-0 {
right: auto;
}
.bootstrap-iso .col-sm-5th-push-5 {
left: 100%;
}
.bootstrap-iso .col-sm-5th-push-4 {
left: 80%;
}
.bootstrap-iso .col-sm-5th-push-3 {
left: 60%;
}
.bootstrap-iso .col-sm-5th-push-2 {
left: 40%;
}
.bootstrap-iso .col-sm-5th-push-1 {
left: 20%;
}
.bootstrap-iso .col-sm-5th-push-0 {
left: auto;
}
.bootstrap-iso .col-sm-5th-offset-5 {
margin-left: 100%;
}
.bootstrap-iso .col-sm-5th-offset-4 {
margin-left: 80%;
}
.bootstrap-iso .col-sm-5th-offset-3 {
margin-left: 60%;
}
.bootstrap-iso .col-sm-5th-offset-2 {
margin-left: 40%;
}
.bootstrap-iso .col-sm-5th-offset-1 {
margin-left: 20%;
}
.bootstrap-iso .col-sm-5th-offset-0 {
margin-left: 0%;
}
}
@media (min-width: 992px) {
.bootstrap-iso .col-md-5th-1, .bootstrap-iso .col-md-5th-2, .bootstrap-iso .col-md-5th-3, .bootstrap-iso .col-md-5th-4 {
float: left;
}
.bootstrap-iso .col-md-5th-5 {
float: left;
width: 100%;
}
.bootstrap-iso .col-md-5th-4 {
width: 80%;
}
.bootstrap-iso .col-md-5th-3 {
width: 60%;
}
.bootstrap-iso .col-md-5th-2 {
width: 40%;
}
.bootstrap-iso .col-md-5th-1 {
margin-left: 20px;
width: 20%;
}
.bootstrap-iso .col-md-5th-pull-5 {
right: 100%;
}
.bootstrap-iso .col-md-5th-pull-4 {
right: 80%;
}
.bootstrap-iso .col-md-5th-pull-3 {
right: 60%;
}
.bootstrap-iso .col-md-5th-pull-2 {
right: 40%;
}
.bootstrap-iso .col-md-5th-pull-1 {
right: 20%;
}
.bootstrap-iso .col-md-5th-pull-0 {
right: auto;
}
.bootstrap-iso .col-md-5th-push-5 {
left: 100%;
}
.bootstrap-iso .col-md-5th-push-4 {
left: 80%;
}
.bootstrap-iso .col-md-5th-push-3 {
left: 60%;
}
.bootstrap-iso .col-md-5th-push-2 {
left: 40%;
}
.bootstrap-iso .col-md-5th-push-1 {
left: 20%;
}
.bootstrap-iso .col-md-5th-push-0 {
left: auto;
}
.bootstrap-iso .col-md-5th-offset-5 {
margin-left: 100%;
}
.bootstrap-iso .col-md-5th-offset-4 {
margin-left: 80%;
}
.bootstrap-iso .col-md-5th-offset-3 {
margin-left: 60%;
}
.bootstrap-iso .col-md-5th-offset-2 {
margin-left: 40%;
}
.bootstrap-iso .col-md-5th-offset-1 {
margin-left: 20%;
}
.bootstrap-iso .col-md-5th-offset-0 {
margin-left: 0%;
}
}
@media (min-width: 1200px) {
.bootstrap-iso .col-lg-5th-1, .bootstrap-iso .col-lg-5th-2, .bootstrap-iso .col-lg-5th-3, .bootstrap-iso .col-lg-5th-4 {
float: left;
}
.bootstrap-iso .col-lg-5th-5 {
float: left;
width: 100%;
}
.bootstrap-iso .col-lg-5th-4 {
width: 80%;
}
.bootstrap-iso .col-lg-5th-3 {
width: 60%;
}
.bootstrap-iso .col-lg-5th-2 {
width: 40%;
}
.bootstrap-iso .col-lg-5th-1 {
width: 20%;
margin-left: 20px;
}
.bootstrap-iso .col-lg-5th-pull-5 {
right: 100%;
}
.bootstrap-iso .col-lg-5th-pull-4 {
right: 80%;
}
.bootstrap-iso .col-lg-5th-pull-3 {
right: 60%;
}
.bootstrap-iso .col-lg-5th-pull-2 {
right: 40%;
}
.bootstrap-iso .col-lg-5th-pull-1 {
right: 20%;
}
.bootstrap-iso .col-lg-5th-pull-0 {
right: auto;
}
.bootstrap-iso .col-lg-5th-push-5 {
left: 100%;
}
.bootstrap-iso .col-lg-5th-push-4 {
left: 80%;
}
.bootstrap-iso .col-lg-5th-push-3 {
left: 60%;
}
.bootstrap-iso .col-lg-5th-push-2 {
left: 40%;
}
.bootstrap-iso .col-lg-5th-push-1 {
left: 20%;
}
.bootstrap-iso .col-lg-5th-push-0 {
left: auto;
}
.bootstrap-iso .col-lg-5th-offset-5 {
margin-left: 100%;
}
.bootstrap-iso .col-lg-5th-offset-4 {
margin-left: 80%;
}
.bootstrap-iso .col-lg-5th-offset-3 {
margin-left: 60%;
}
.bootstrap-iso .col-lg-5th-offset-2 {
margin-left: 40%;
}
.bootstrap-iso .col-lg-5th-offset-1 {
margin-left: 20%;
}
.bootstrap-iso .col-lg-5th-offset-0 {
margin-left: 0%;
}
}
<?php <?php
if( 'POST' === $_SERVER['REQUEST_METHOD'] && isset($_POST['download_submit']) && $_POST['post_action'] === 'download-all') { if ( 'POST' === $_SERVER['REQUEST_METHOD'] && isset( $_POST['download_submit'] ) && $_POST['post_action'] === 'download-all' ) {
$fname = $_POST['dl_firstName']; $fname = $_POST['dl_firstName'];
$lname = $_POST['dl_lastName']; $lname = $_POST['dl_lastName'];
$company = $_POST['dl_company']; $company = $_POST['dl_company'];
...@@ -16,51 +16,51 @@ if( 'POST' === $_SERVER['REQUEST_METHOD'] && isset($_POST['download_submit']) && ...@@ -16,51 +16,51 @@ if( 'POST' === $_SERVER['REQUEST_METHOD'] && isset($_POST['download_submit']) &&
$postContent .= '<strong>Email: ' . $email . '</strong><br>'; $postContent .= '<strong>Email: ' . $email . '</strong><br>';
$postContent .= '<strong>Contact Number: ' . $cNumber . '</strong><br>'; $postContent .= '<strong>Contact Number: ' . $cNumber . '</strong><br>';
$postContent .= '<strong>Job Title: ' . $jobTitle . '</strong><br>'; $postContent .= '<strong>Job Title: ' . $jobTitle . '</strong><br>';
$postContent .= '<strong>Country: ' . $country. '</strong><br>'; $postContent .= '<strong>Country: ' . $country . '</strong><br>';
$courseName = array(); $courseName = array();
foreach($dlCourses as $course) { foreach ( $dlCourses as $course ) {
$courses = new WP_Query(array('post_type' => 'vq_course')); $courses = new WP_Query( array( 'post_type' => 'vq_course' ) );
while($courses->have_posts()) { while ( $courses->have_posts() ) {
$courses->the_post(); $courses->the_post();
if($course == get_the_ID()){ if ( $course == get_the_ID() ) {
$courseName[] = get_the_title(); $courseName[] = get_the_title();
} }
} }
} }
$postContent .= '<strong>Courses: ['. implode(', ', $courseName) .'] </strong>'; $postContent .= '<strong>Courses: [' . implode( ', ', $courseName ) . '] </strong>';
$newDownloadRequest = array( $newDownloadRequest = array(
'post_title' => $fname. ' ' . $lname, 'post_title' => $fname . ' ' . $lname,
'post_type' => 'vq_lms_drequest', 'post_type' => 'vq_lms_drequest',
'post_status' => 'publish', 'post_status' => 'publish',
'post_content' => $postContent 'post_content' => $postContent
); );
$pid = wp_insert_post($newDownloadRequest); $pid = wp_insert_post( $newDownloadRequest );
update_post_meta($pid, 'dl_firstName', $fname); update_post_meta( $pid, 'dl_firstName', $fname );
update_post_meta($pid, 'dl_lastName', $lname); update_post_meta( $pid, 'dl_lastName', $lname );
update_post_meta($pid, 'dl_company', $company); update_post_meta( $pid, 'dl_company', $company );
update_post_meta($pid, 'dl_email', $email); update_post_meta( $pid, 'dl_email', $email );
update_post_meta($pid, 'dl_contactNumber', $cNumber); update_post_meta( $pid, 'dl_contactNumber', $cNumber );
update_post_meta($pid, 'dl_jobTitle', $jobTitle); update_post_meta( $pid, 'dl_jobTitle', $jobTitle );
update_post_meta($pid, 'dl_country', $country); update_post_meta( $pid, 'dl_country', $country );
update_post_meta($pid, 'dl_courses', json_encode($courses)); update_post_meta( $pid, 'dl_courses', json_encode( $courses ) );
header('Location: ' . '/thank-you-download'); header( 'Location: ' . '/thank-you-download' );
} }
get_header(); get_header();
$page = get_page_by_path('download-all'); $page = get_page_by_path( 'download-all' );
$settings = $options = get_option('vq_lms_settings_options'); $settings = $options = get_option( 'vq_lms_settings_options' );
$video = $settings['vq_lms_settings_field_video']; $video = $settings['vq_lms_settings_field_video'];
$courses = new WP_Query(array('post_type' => 'vq_course')); $courses = new WP_Query( array( 'post_type' => 'vq_course' ) );
$selected_id = isset($_GET['course']) ? $_GET['course'] : -1; $selected_id = isset( $_GET['course'] ) ? $_GET['course'] : - 1;
?> ?>
<div class="bootstrap-iso"> <div class="bootstrap-iso">
<div class="e-learning-banner" style="background-image: url(<?php echo get_the_post_thumbnail_url($page); ?>)"> <div class="e-learning-banner"
style="background-image: url(<?php echo get_the_post_thumbnail_url( $page ); ?>)">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="e-learning-heading"> <div class="e-learning-heading">
...@@ -69,6 +69,13 @@ $selected_id = isset($_GET['course']) ? $_GET['course'] : -1; ...@@ -69,6 +69,13 @@ $selected_id = isset($_GET['course']) ? $_GET['course'] : -1;
</div> </div>
</div> </div>
</div> </div>
<div class="lms-breadcrumbs">
<div class="container">
<div class="row">
<p><a href="<?php echo "/lms"?>">LMS</a> > <?php echo $page->post_title; ?></p>
</div>
</div>
</div>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
...@@ -76,25 +83,30 @@ $selected_id = isset($_GET['course']) ? $_GET['course'] : -1; ...@@ -76,25 +83,30 @@ $selected_id = isset($_GET['course']) ? $_GET['course'] : -1;
<h2 class="text-center" style="margin-top: 0; font-weight: bold;">Download Now</h2> <h2 class="text-center" style="margin-top: 0; font-weight: bold;">Download Now</h2>
<div class="col-md-12 form-group"> <div class="col-md-12 form-group">
<input type="text" class="form-control" name="dl_firstName" placeholder="First Name" required> <input type="text" class="form-control" name="dl_firstName" placeholder="First Name"
required>
</div> </div>
<div class="col-md-12 form-group"> <div class="col-md-12 form-group">
<input type="text" class="form-control" name="dl_lastName" placeholder="Last Name" required> <input type="text" class="form-control" name="dl_lastName" placeholder="Last Name" required>
</div> </div>
<div class="col-md-12 form-group"> <div class="col-md-12 form-group">
<input type="text" class="form-control" name="dl_company" placeholder="Company Name" required> <input type="text" class="form-control" name="dl_company" placeholder="Company Name"
required>
</div> </div>
<div class="col-md-12 form-group"> <div class="col-md-12 form-group">
<input type="text" class="form-control" name="dl_email" placeholder="Email Address" required> <input type="text" class="form-control" name="dl_email" placeholder="Email Address"
required>
</div> </div>
<div class="col-md-12 form-group"> <div class="col-md-12 form-group">
<input type="text" class="form-control" name="dl_contactNumber" placeholder="Contact Number" required> <input type="text" class="form-control" name="dl_contactNumber" placeholder="Contact Number"
required>
</div> </div>
<div class="col-md-12 form-group"> <div class="col-md-12 form-group">
<input type="text" class="form-control" name="dl_jobTitle" placeholder="Job Title" required> <input type="text" class="form-control" name="dl_jobTitle" placeholder="Job Title" required>
</div> </div>
<div class="col-md-12 form-group"> <div class="col-md-12 form-group">
<select class="form-control chosen-select" name="dl_country" data-placeholder="Select Country"> <select class="form-control chosen-select" name="dl_country"
data-placeholder="Select Country">
<option value="AF">Afghanistan</option> <option value="AF">Afghanistan</option>
<option value="AX">Åland Islands</option> <option value="AX">Åland Islands</option>
<option value="AL">Albania</option> <option value="AL">Albania</option>
...@@ -347,15 +359,18 @@ $selected_id = isset($_GET['course']) ? $_GET['course'] : -1; ...@@ -347,15 +359,18 @@ $selected_id = isset($_GET['course']) ? $_GET['course'] : -1;
</select> </select>
</div> </div>
<div class="col-md-12 form-group"> <div class="col-md-12 form-group">
<select class="form-control chosen-select" name="dl_course[]" multiple data-placeholder="Select Courses"> <select class="form-control chosen-select" name="dl_course[]" multiple
data-placeholder="Select Courses">
<?php <?php
while($courses->have_posts()) { while ( $courses->have_posts() ) {
$courses->the_post(); $courses->the_post();
?> ?>
<option value="<?php the_ID(); ?>" <?php if(get_the_ID() == $selected_id) echo ' selected'; ?>><?php the_title(); ?></option> <option value="<?php the_ID(); ?>" <?php if ( get_the_ID() == $selected_id ) {
echo ' selected';
} ?>><?php the_title(); ?></option>
<?php <?php
} }
$page = get_page_by_path('download-all'); $page = get_page_by_path( 'download-all' );
?> ?>
</select> </select>
</div> </div>
...@@ -364,7 +379,7 @@ $selected_id = isset($_GET['course']) ? $_GET['course'] : -1; ...@@ -364,7 +379,7 @@ $selected_id = isset($_GET['course']) ? $_GET['course'] : -1;
</div> </div>
<div class="clear"></div> <div class="clear"></div>
<?php wp_nonce_field( 'new_song_nonce' ); ?> <?php wp_nonce_field( 'new_song_nonce' ); ?>
<input type="hidden" id="post_action" name="post_action" value="download-all" /> <input type="hidden" id="post_action" name="post_action" value="download-all"/>
</form> </form>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
...@@ -380,7 +395,9 @@ $selected_id = isset($_GET['course']) ? $_GET['course'] : -1; ...@@ -380,7 +395,9 @@ $selected_id = isset($_GET['course']) ? $_GET['course'] : -1;
</div> </div>
<div class="col-sm-4"> <div class="col-sm-4">
<div class="text-center"> <div class="text-center">
<img class="icon" src="<?php plugin_dir_url(__FILE__); ?>imgaes/learning-management-icon.png" alt=""/> <img class="icon"
src="<?php plugin_dir_url( __FILE__ ); ?>imgaes/learning-management-icon.png"
alt=""/>
</div> </div>
</div> </div>
<div class="col-sm-8"> <div class="col-sm-8">
...@@ -392,7 +409,7 @@ $selected_id = isset($_GET['course']) ? $_GET['course'] : -1; ...@@ -392,7 +409,7 @@ $selected_id = isset($_GET['course']) ? $_GET['course'] : -1;
</div> </div>
</div> </div>
</div> </div>
<?php <?php
get_footer(); get_footer();
?> ?>
\ No newline at end of file
...@@ -10,7 +10,7 @@ $course_categories = get_terms( array( ...@@ -10,7 +10,7 @@ $course_categories = get_terms( array(
?> ?>
<div class="bootstrap-iso"> <div class="bootstrap-iso">
<div class="e-learning-banner" style="position: relative; background-image: url(<?php echo get_the_post_thumbnail_url($page); ?>)"> <div class="e-learning-banner" style="position: relative; background-image: url(<?php echo get_the_post_thumbnail_url($page); ?>);padding-bottom: 0;">
<a href="https://www.learn.apexgloballearning.com/" class="" style="position: absolute; top: -1%; right: 9%;"> <a href="https://www.learn.apexgloballearning.com/" class="" style="position: absolute; top: -1%; right: 9%;">
<img style="width: 80%;" src="<?php echo plugin_dir_url(__FILE__); ?>imgaes/E-learning-login.png" alt=""> <img style="width: 80%;" src="<?php echo plugin_dir_url(__FILE__); ?>imgaes/E-learning-login.png" alt="">
...@@ -22,6 +22,7 @@ $course_categories = get_terms( array( ...@@ -22,6 +22,7 @@ $course_categories = get_terms( array(
<h3><?php echo $page->post_content ?></h3> <h3><?php echo $page->post_content ?></h3>
</div> </div>
</div> </div>
<p style="color: #fff; padding: 50px 0;" class="text-center">Learning Management System</p>
</div> </div>
</div> </div>
<div class="learning-profile-bg"> <div class="learning-profile-bg">
...@@ -32,8 +33,9 @@ $course_categories = get_terms( array( ...@@ -32,8 +33,9 @@ $course_categories = get_terms( array(
<h4><?php echo $page->post_excerpt ?></h4> <h4><?php echo $page->post_excerpt ?></h4>
</div> </div>
</div> </div>
<div class="bootstrap-iso">
<?php foreach ($course_categories as $category){ ?> <?php foreach ($course_categories as $category){ ?>
<div class="col-sm-3"> <div class="col-md-5th-1">
<div class="learning-profile-box"> <div class="learning-profile-box">
<div class="e-learning-course-1" style="background-image: url(<?php echo wp_get_attachment_url(get_term_meta($category->term_id, 'vq_course_taxonomy-image-id', true)) ?>)"> <div class="e-learning-course-1" style="background-image: url(<?php echo wp_get_attachment_url(get_term_meta($category->term_id, 'vq_course_taxonomy-image-id', true)) ?>)">
<div class="e-learning-heading"> <div class="e-learning-heading">
...@@ -57,13 +59,14 @@ $course_categories = get_terms( array( ...@@ -57,13 +59,14 @@ $course_categories = get_terms( array(
</div> </div>
</div> </div>
</div> </div>
</div>
<?php echo do_shortcode('[vq_short_banner <?php echo do_shortcode('[vq_short_banner
txtClr="#fff" txtClr="#fff"
btnClr="#fff" btnClr="#fff"
bgClr="#f89f18" bgClr="#f89f18"
btnBg="#2898c4" btnBg="#2898c4"
btnLink="lms-pricing" btnLink="download-all"
btnTxt="Download Full List Of Courses" btnTxt="Download Full List Of Courses"
txt="Not sure which course to take?"]'); ?> txt="Not sure which course to take?"]'); ?>
......
...@@ -47,6 +47,13 @@ $page = get_page_by_path('lms-courses'); ...@@ -47,6 +47,13 @@ $page = get_page_by_path('lms-courses');
</div> </div>
</div> </div>
</div> </div>
<div class="lms-breadcrumbs">
<div class="container">
<div class="row">
<p><a href="<?php echo "/lms"?>">LMS</a> > <?php echo $term->name; ?></p>
</div>
</div>
</div>
<div class="learning-profile-bg"> <div class="learning-profile-bg">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
...@@ -54,6 +61,8 @@ $page = get_page_by_path('lms-courses'); ...@@ -54,6 +61,8 @@ $page = get_page_by_path('lms-courses');
</div> </div>
</div> </div>
</div> </div>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-sm-8"> <div class="col-sm-8">
......
...@@ -228,10 +228,16 @@ ...@@ -228,10 +228,16 @@
return; return;
} }
if(!$("#accepted_terms").is(':checked')) {
alert('Please accept turns & conditions.');
return;
}
var data = {}; var data = {};
data.data = learners; data.data = learners;
data.pcode = $("#pcode-value").val(); data.pcode = $("#pcode-value").val();
data.terms = $("#accepted_terms").val();
data.id = parseInt(pid); data.id = parseInt(pid);
...@@ -288,5 +294,13 @@ ...@@ -288,5 +294,13 @@
}); });
$("#accepted_terms").on('click', function() {
if($(this).is(':checked')) {
$("#lmsProcessPayment").prop('disabled', false);
} else {
$("#lmsProcessPayment").attr('disabled', true);
}
});
})(jQuery); })(jQuery);
\ No newline at end of file
...@@ -46,6 +46,13 @@ while (have_posts()): ...@@ -46,6 +46,13 @@ while (have_posts()):
</div> </div>
</div> </div>
</div> </div>
<div class="lms-breadcrumbs">
<div class="container">
<div class="row">
<p><a href="<?php echo "/lms"?>">LMS</a> > <?php echo get_the_title(); ?></p>
</div>
</div>
</div>
<div class="container"> <div class="container">
<div class="row ldr" id="ldr"> <div class="row ldr" id="ldr">
<div class="loader"></div> <div class="loader"></div>
...@@ -95,6 +102,11 @@ while (have_posts()): ...@@ -95,6 +102,11 @@ while (have_posts()):
</div> </div>
</div> </div>
<div class="col-sm-12"> <div class="col-sm-12">
<label for=""> <input type="checkbox" id="accepted_terms" name="terms_condition">
<span style="font-weight: normal; font-size: 14px; margin-left: 5px;">I have read and understood the <a
href="http://apexgloballearning.com/refund-and-cancellation-policy/" >Terms & Conditions</a></span>.</label>
</div>
<div class="col-sm-12">
<button type="submit" id="lmsProcessPayment" class="payment-course-button">Proceed to <button type="submit" id="lmsProcessPayment" class="payment-course-button">Proceed to
payment</button> payment</button>
</div> </div>
...@@ -115,14 +127,15 @@ while (have_posts()): ...@@ -115,14 +127,15 @@ while (have_posts()):
<div class="col-sm-8 col-padding"> <div class="col-sm-8 col-padding">
<input class="form-control text-feild" placeholder="Name" <input class="form-control text-feild" placeholder="Name"
maxlength="200" type="string" name="fname" required pattern="[a-zA-Z]+[ ][a-zA-Z]+"/> maxlength="200" type="string" name="fname" required pattern="[a-zA-Z]+[ ][a-zA-Z]+"/>
<small style="font-size: 12px;">format: FirstName LastName</small> <small style="font-size: 12px;">format: John Smith</small>
<input class="form-control text-feild" placeholder="Email" <input class="form-control text-feild" placeholder="Email"
maxlength="200" type="email" name="email" required /> maxlength="200" type="email" name="email" required />
<small style="font-size: 12px;">format: john@example.com</small>
<input class="form-control text-feild" placeholder="Confirm Email" <input class="form-control text-feild" placeholder="Confirm Email"
maxlength="200" type="email" name="confirmEmail" required /> maxlength="200" type="email" name="confirmEmail" required />
<input class="form-control text-feild" placeholder="Phone number" <input class="form-control text-feild" placeholder="Phone number"
maxlength="200" type="string" name="phone" pattern="\+\d{2,3}\s\d*" required /> maxlength="200" type="string" name="phone" pattern="\+\d{2,3}\s\d*" required />
<small style="font-size: 12px;">format: +xx xxxxxxx</small> <small style="font-size: 12px;">format: +12 3456789</small>
<div class="lms-all-course-holder"> <div class="lms-all-course-holder">
</div> </div>
<a href="#" class="lms-courses-select-btn"><img class="add-icon" src="<?php echo plugin_dir_url(__FILE__); <a href="#" class="lms-courses-select-btn"><img class="add-icon" src="<?php echo plugin_dir_url(__FILE__);
......
...@@ -12,6 +12,13 @@ get_header(); ...@@ -12,6 +12,13 @@ get_header();
</div> </div>
</div> </div>
</div> </div>
<div class="lms-breadcrumbs">
<div class="container">
<div class="row">
<p><a href="<?php echo "/lms"?>">LMS</a> > <?php echo get_the_title(); ?></p>
</div>
</div>
</div>
<div class="learning-profile-bg"> <div class="learning-profile-bg">
<div class="container"> <div class="container">
<div class="row"> <div class="row">
......
...@@ -56,6 +56,13 @@ get_header(); ...@@ -56,6 +56,13 @@ get_header();
</div> </div>
</div> </div>
</div> </div>
<div class="lms-breadcrumbs">
<div class="container">
<div class="row">
<p><a href="<?php echo "/lms"?>">LMS</a> > <?php echo get_the_title(); ?></p>
</div>
</div>
</div>
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment