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()
]
);
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(
'vq_lms_settings_field_shortcode',
'Banner Shortcode',
......@@ -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)
{
$options = get_option('vq_lms_settings_options');
......
......@@ -34,6 +34,21 @@ add_shortcode('vq_course_banner', 'vq_render_course_banner');
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_edit_form_fields', 'edit_course_promo', 10, 2 );
add_action( 'created_vq_course_promo', 'save_course_promo', 10, 2 );
......@@ -100,11 +115,16 @@ function vq_lms_process_order()
}
$data = json_decode(stripslashes($_POST['data']), true);
if ($data['terms'] != 'on') {
echo "Terms & Conditions not accepted.";
die;
}
$code = "";
if(isset($data['pcode'])) {
$code = $data['pcode'];
}
print_r(json_decode($_POST));
if (count($data['data']) === 0) {
echo "Unable to process your request";
......@@ -510,7 +530,7 @@ function vq_render_course_banner($attr)
if (empty($fee) || $fee <= 0) {
$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');
......
......@@ -736,4 +736,317 @@
.bootstrap-iso h3.lms-excerpt{
text-align: center;
color: #fff;
}
\ No newline at end of file
}
.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%;
}
}
......@@ -10,7 +10,7 @@ $course_categories = get_terms( array(
?>
<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%;">
<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(
<h3><?php echo $page->post_content ?></h3>
</div>
</div>
<p style="color: #fff; padding: 50px 0;" class="text-center">Learning Management System</p>
</div>
</div>
<div class="learning-profile-bg">
......@@ -32,28 +33,30 @@ $course_categories = get_terms( array(
<h4><?php echo $page->post_excerpt ?></h4>
</div>
</div>
<?php foreach ($course_categories as $category){ ?>
<div class="col-sm-3">
<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-heading">
<h5><?php echo $category->name ?></h5>
<div class="bootstrap-iso">
<?php foreach ($course_categories as $category){ ?>
<div class="col-md-5th-1">
<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-heading">
<h5><?php echo $category->name ?></h5>
</div>
</div>
<div class="col-sm-12">
<div class="e-learning-heading descrip">
<p><?php echo substr($category->description, 0,150) . ' ...' ; ?></p>
</div>
</div>
<div class="col-sm-12">
<div class="text-center">
<a href="<?php echo get_permalink(get_page_by_path('lms-courses')) . $category->slug ?>" class="learn-button">Learn More</a>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<div class="col-sm-12">
<div class="e-learning-heading descrip">
<p><?php echo substr($category->description, 0,150) . ' ...' ; ?></p>
</div>
</div>
<div class="col-sm-12">
<div class="text-center">
<a href="<?php echo get_permalink(get_page_by_path('lms-courses')) . $category->slug ?>" class="learn-button">Learn More</a>
</div>
</div>
<div class="clear"></div>
</div>
<?php } ?>
</div>
<?php } ?>
</div>
</div>
</div>
......@@ -63,7 +66,7 @@ $course_categories = get_terms( array(
btnClr="#fff"
bgClr="#f89f18"
btnBg="#2898c4"
btnLink="lms-pricing"
btnLink="download-all"
btnTxt="Download Full List Of Courses"
txt="Not sure which course to take?"]'); ?>
......
......@@ -47,6 +47,13 @@ $page = get_page_by_path('lms-courses');
</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="container">
<div class="row">
......@@ -54,6 +61,8 @@ $page = get_page_by_path('lms-courses');
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-8">
......
......@@ -228,10 +228,16 @@
return;
}
if(!$("#accepted_terms").is(':checked')) {
alert('Please accept turns & conditions.');
return;
}
var data = {};
data.data = learners;
data.pcode = $("#pcode-value").val();
data.terms = $("#accepted_terms").val();
data.id = parseInt(pid);
......@@ -288,5 +294,13 @@
});
$("#accepted_terms").on('click', function() {
if($(this).is(':checked')) {
$("#lmsProcessPayment").prop('disabled', false);
} else {
$("#lmsProcessPayment").attr('disabled', true);
}
});
})(jQuery);
\ No newline at end of file
......@@ -46,6 +46,13 @@ while (have_posts()):
</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="row ldr" id="ldr">
<div class="loader"></div>
......@@ -95,6 +102,11 @@ while (have_posts()):
</div>
</div>
<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
payment</button>
</div>
......@@ -115,14 +127,15 @@ while (have_posts()):
<div class="col-sm-8 col-padding">
<input class="form-control text-feild" placeholder="Name"
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"
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"
maxlength="200" type="email" name="confirmEmail" required />
<input class="form-control text-feild" placeholder="Phone number"
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>
<a href="#" class="lms-courses-select-btn"><img class="add-icon" src="<?php echo plugin_dir_url(__FILE__);
......
......@@ -12,6 +12,13 @@ get_header();
</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="container">
<div class="row">
......
......@@ -56,6 +56,13 @@ get_header();
</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="row">
<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