Commit 9d023cb2 by nadeem.qasmi

today fixes done.

parent 517ed9ad
Pipeline #498 passed with stage
in 0 seconds
...@@ -1081,6 +1081,12 @@ p:empty { display:none; } ...@@ -1081,6 +1081,12 @@ p:empty { display:none; }
width: 100%; width: 100%;
margin-top: 10px; margin-top: 10px;
} }
.bootstrap-iso .download-course-box:hover {
padding: 5px;
height: 75px;
width: 100%;
margin-top: 10px;
}
.bootstrap-iso .col-padding img{ .bootstrap-iso .col-padding img{
width: 100%; width: 100%;
...@@ -1116,6 +1122,12 @@ p:empty { display:none; } ...@@ -1116,6 +1122,12 @@ p:empty { display:none; }
width: 100%; width: 100%;
margin-top: 5px; margin-top: 5px;
} }
.bootstrap-iso .download-course-box:hover {
padding: 5px;
height: 75px;
width: 100%;
margin-top: 5px;
}
.bootstrap-iso .download-course-button { .bootstrap-iso .download-course-button {
padding-left: 3px; padding-left: 3px;
padding-right: 3px; padding-right: 3px;
...@@ -1178,6 +1190,12 @@ p:empty { display:none; } ...@@ -1178,6 +1190,12 @@ p:empty { display:none; }
width: 100%; width: 100%;
margin-top: 5px; margin-top: 5px;
} }
.bootstrap-iso .download-course-box:hover {
padding: 5px;
height: 75px;
width: 100%;
margin-top: 5px;
}
.bootstrap-iso .col-padding img{ .bootstrap-iso .col-padding img{
width: 100%; width: 100%;
...@@ -1229,6 +1247,12 @@ p:empty { display:none; } ...@@ -1229,6 +1247,12 @@ p:empty { display:none; }
width: 100%; width: 100%;
margin-top: 5px; margin-top: 5px;
} }
.bootstrap-iso .download-course-box:hover {
padding: 5px;
height: 75px;
width: 100%;
margin-top: 5px;
}
.bootstrap-iso .col-padding img{ .bootstrap-iso .col-padding img{
width: 100%; width: 100%;
......
.jq-toast-wrap,.jq-toast-wrap *{
margin:0;
padding:0;
z-index:100000!important;
}
.jq-toast-wrap{
display:block;position:fixed;
width:250px;
pointer-events:none!important;letter-spacing:normal;
z-index:100000!important;
}
.jq-toast-wrap.bottom-left{
bottom:20px;left:20px;
}
.jq-toast-wrap.bottom-right{
bottom:20px;right:40px
}
.jq-toast-wrap.top-left{
top:20px;left:20px
}
.jq-toast-wrap.top-right{
top:14%;
right:14px;
}
.jq-toast-single{
display:block;
width:100%;
padding:10px;
margin:0 0 5px;
border-radius:4px;
font-size:12px;
font-family:arial,sans-serif;
line-height:17px;position:relative;
pointer-events:all!important;
background-color:#444;color:#fff;
}
.jq-toast-single h2{
font-family:arial,sans-serif;
font-size:14px;margin:0 0 7px;
background:0 0;
color:inherit;
line-height:inherit;
letter-spacing:normal;
}
.jq-toast-single a{
color:#eee;
text-decoration:none;
font-weight:700;
border-bottom:1px solid #fff;
padding-bottom:3px;
font-size:12px;
}
.jq-toast-single ul{
margin:0 0 0 15px;
background:0 0;
padding:0;
}
.jq-toast-single ul li{
list-style-type:disc!important;
line-height:17px;
background:0 0;
margin:0;
padding:0;
letter-spacing:normal;
}
.close-jq-toast-single{
position:absolute;
top:3px;right:7px;
font-size:14px;
cursor:pointer;
}
.jq-toast-loader{
display:block;
position:absolute;
top:-2px;
height:5px;
width:0;
left:0;
border-radius:5px;
background:red;
}
.jq-toast-loaded{ width:100%; }
.jq-has-icon{
padding:10px 10px 10px 50px;
background-repeat:no-repeat;
background-position:10px;
}
.jq-icon-info{
background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGwSURBVEhLtZa9SgNBEMc9sUxxRcoUKSzSWIhXpFMhhYWFhaBg4yPYiWCXZxBLERsLRS3EQkEfwCKdjWJAwSKCgoKCcudv4O5YLrt7EzgXhiU3/4+b2ckmwVjJSpKkQ6wAi4gwhT+z3wRBcEz0yjSseUTrcRyfsHsXmD0AmbHOC9Ii8VImnuXBPglHpQ5wwSVM7sNnTG7Za4JwDdCjxyAiH3nyA2mtaTJufiDZ5dCaqlItILh1NHatfN5skvjx9Z38m69CgzuXmZgVrPIGE763Jx9qKsRozWYw6xOHdER+nn2KkO+Bb+UV5CBN6WC6QtBgbRVozrahAbmm6HtUsgtPC19tFdxXZYBOfkbmFJ1VaHA1VAHjd0pp70oTZzvR+EVrx2Ygfdsq6eu55BHYR8hlcki+n+kERUFG8BrA0BwjeAv2M8WLQBtcy+SD6fNsmnB3AlBLrgTtVW1c2QN4bVWLATaIS60J2Du5y1TiJgjSBvFVZgTmwCU+dAZFoPxGEEs8nyHC9Bwe2GvEJv2WXZb0vjdyFT4Cxk3e/kIqlOGoVLwwPevpYHT+00T+hWwXDf4AJAOUqWcDhbwAAAAASUVORK5CYII=);
background-color:#31708f;
color:#d9edf7;
border-color:#bce8f1;
}
.jq-icon-warning{
background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyIR9m2L7PRPIhDUIXgGtyKw575yz3lTNs6X4JXnjV+LKM/m3MydnTbtOKIjtz6VhCBq4vSm3ncdrD2lk0VgUXSVKjVDJXJzijW1RQdsU7F77He8u68koNZTz8Oz5yGa6J3H3lZ0xYgXBK2QymlWWA+RWnYhskLBv2vmE+hBMCtbA7KX5drWyRT/2JsqZ2IvfB9Y4bWDNMFbJRFmC9E74SoS0CqulwjkC0+5bpcV1CZ8NMej4pjy0U+doDQsGyo1hzVJttIjhQ7GnBtRFN1UarUlH8F3xict+HY07rEzoUGPlWcjRFRr4/gChZgc3ZL2d8oAAAAASUVORK5CYII=);
background-color:#8a6d3b;
color:#fcf8e3;
border-color:#faebcc;
}
.jq-icon-error{
background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAHOSURBVEhLrZa/SgNBEMZzh0WKCClSCKaIYOED+AAKeQQLG8HWztLCImBrYadgIdY+gIKNYkBFSwu7CAoqCgkkoGBI/E28PdbLZmeDLgzZzcx83/zZ2SSXC1j9fr+I1Hq93g2yxH4iwM1vkoBWAdxCmpzTxfkN2RcyZNaHFIkSo10+8kgxkXIURV5HGxTmFuc75B2RfQkpxHG8aAgaAFa0tAHqYFfQ7Iwe2yhODk8+J4C7yAoRTWI3w/4klGRgR4lO7Rpn9+gvMyWp+uxFh8+H+ARlgN1nJuJuQAYvNkEnwGFck18Er4q3egEc/oO+mhLdKgRyhdNFiacC0rlOCbhNVz4H9FnAYgDBvU3QIioZlJFLJtsoHYRDfiZoUyIxqCtRpVlANq0EU4dApjrtgezPFad5S19Wgjkc0hNVnuF4HjVA6C7QrSIbylB+oZe3aHgBsqlNqKYH48jXyJKMuAbiyVJ8KzaB3eRc0pg9VwQ4niFryI68qiOi3AbjwdsfnAtk0bCjTLJKr6mrD9g8iq/S/B81hguOMlQTnVyG40wAcjnmgsCNESDrjme7wfftP4P7SP4N3CJZdvzoNyGq2c/HWOXJGsvVg+RA/k2MC/wN6I2YA2Pt8GkAAAAASUVORK5CYII=);
background-color:#a94442;
color:#f2dede;
border-color:#ebccd1;
}
.jq-icon-success{
background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADsSURBVEhLY2AYBfQMgf///3P8+/evAIgvA/FsIF+BavYDDWMBGroaSMMBiE8VC7AZDrIFaMFnii3AZTjUgsUUWUDA8OdAH6iQbQEhw4HyGsPEcKBXBIC4ARhex4G4BsjmweU1soIFaGg/WtoFZRIZdEvIMhxkCCjXIVsATV6gFGACs4Rsw0EGgIIH3QJYJgHSARQZDrWAB+jawzgs+Q2UO49D7jnRSRGoEFRILcdmEMWGI0cm0JJ2QpYA1RDvcmzJEWhABhD/pqrL0S0CWuABKgnRki9lLseS7g2AlqwHWQSKH4oKLrILpRGhEQCw2LiRUIa4lwAAAABJRU5ErkJggg==);
color:#dff0d8;
background-color:#3c763d;
border-color:#d6e9c6;
}
\ No newline at end of file
"function"!=typeof Object.create&&(Object.create=function(t){function o(){}return o.prototype=t,new o}),function(t,o,i,s){"use strict";var n={_positionClasses:["bottom-left","bottom-right","top-right","top-left","bottom-center","top-center","mid-center"],_defaultIcons:["success","error","info","warning"],init:function(o,i){this.prepareOptions(o,t.toast.options),this.process()},prepareOptions:function(o,i){var s={};"string"==typeof o||o instanceof Array?s.text=o:s=o,this.options=t.extend({},i,s)},process:function(){this.setup(),this.addToDom(),this.position(),this.bindToast(),this.animate()},setup:function(){var o="";if(this._toastEl=this._toastEl||t("<div></div>",{class:"jq-toast-single"}),o+='<span class="jq-toast-loader"></span>',this.options.allowToastClose&&(o+='<span class="close-jq-toast-single">&times;</span>'),this.options.text instanceof Array){this.options.heading&&(o+='<h2 class="jq-toast-heading">'+this.options.heading+"</h2>"),o+='<ul class="jq-toast-ul">';for(var i=0;i<this.options.text.length;i++)o+='<li class="jq-toast-li" id="jq-toast-item-'+i+'">'+this.options.text[i]+"</li>";o+="</ul>"}else this.options.heading&&(o+='<h2 class="jq-toast-heading">'+this.options.heading+"</h2>"),o+=this.options.text;this._toastEl.html(o),!1!==this.options.bgColor&&this._toastEl.css("background-color",this.options.bgColor),!1!==this.options.textColor&&this._toastEl.css("color",this.options.textColor),this.options.textAlign&&this._toastEl.css("text-align",this.options.textAlign),!1!==this.options.icon&&(this._toastEl.addClass("jq-has-icon"),-1!==t.inArray(this.options.icon,this._defaultIcons)&&this._toastEl.addClass("jq-icon-"+this.options.icon)),!1!==this.options.class&&this._toastEl.addClass(this.options.class)},position:function(){"string"==typeof this.options.position&&-1!==t.inArray(this.options.position,this._positionClasses)?"bottom-center"===this.options.position?this._container.css({left:t(o).outerWidth()/2-this._container.outerWidth()/2,bottom:20}):"top-center"===this.options.position?this._container.css({left:t(o).outerWidth()/2-this._container.outerWidth()/2,top:20}):"mid-center"===this.options.position?this._container.css({left:t(o).outerWidth()/2-this._container.outerWidth()/2,top:t(o).outerHeight()/2-this._container.outerHeight()/2}):this._container.addClass(this.options.position):"object"==typeof this.options.position?this._container.css({top:this.options.position.top?this.options.position.top:"auto",bottom:this.options.position.bottom?this.options.position.bottom:"auto",left:this.options.position.left?this.options.position.left:"auto",right:this.options.position.right?this.options.position.right:"auto"}):this._container.addClass("bottom-left")},bindToast:function(){var t=this;this._toastEl.on("afterShown",function(){t.processLoader()}),this._toastEl.find(".close-jq-toast-single").on("click",function(o){o.preventDefault(),"fade"===t.options.showHideTransition?(t._toastEl.trigger("beforeHide"),t._toastEl.fadeOut(function(){t._toastEl.trigger("afterHidden")})):"slide"===t.options.showHideTransition?(t._toastEl.trigger("beforeHide"),t._toastEl.slideUp(function(){t._toastEl.trigger("afterHidden")})):(t._toastEl.trigger("beforeHide"),t._toastEl.hide(function(){t._toastEl.trigger("afterHidden")}))}),"function"==typeof this.options.beforeShow&&this._toastEl.on("beforeShow",function(){t.options.beforeShow(t._toastEl)}),"function"==typeof this.options.afterShown&&this._toastEl.on("afterShown",function(){t.options.afterShown(t._toastEl)}),"function"==typeof this.options.beforeHide&&this._toastEl.on("beforeHide",function(){t.options.beforeHide(t._toastEl)}),"function"==typeof this.options.afterHidden&&this._toastEl.on("afterHidden",function(){t.options.afterHidden(t._toastEl)}),"function"==typeof this.options.onClick&&this._toastEl.on("click",function(){t.options.onClick(t._toastEl)})},addToDom:function(){var o=t(".jq-toast-wrap");if(0===o.length?(o=t("<div></div>",{class:"jq-toast-wrap",role:"alert","aria-live":"polite"}),t("body").append(o)):this.options.stack&&!isNaN(parseInt(this.options.stack,10))||o.empty(),o.find(".jq-toast-single:hidden").remove(),o.append(this._toastEl),this.options.stack&&!isNaN(parseInt(this.options.stack),10)){var i=o.find(".jq-toast-single").length-this.options.stack;i>0&&t(".jq-toast-wrap").find(".jq-toast-single").slice(0,i).remove()}this._container=o},canAutoHide:function(){return!1!==this.options.hideAfter&&!isNaN(parseInt(this.options.hideAfter,10))},processLoader:function(){if(!this.canAutoHide()||!1===this.options.loader)return!1;var t=this._toastEl.find(".jq-toast-loader"),o=(this.options.hideAfter-400)/1e3+"s",i=this.options.loaderBg,s=t.attr("style")||"";s=s.substring(0,s.indexOf("-webkit-transition")),s+="-webkit-transition: width "+o+" ease-in; -o-transition: width "+o+" ease-in; transition: width "+o+" ease-in; background-color: "+i+";",t.attr("style",s).addClass("jq-toast-loaded")},animate:function(){t=this;if(this._toastEl.hide(),this._toastEl.trigger("beforeShow"),"fade"===this.options.showHideTransition.toLowerCase()?this._toastEl.fadeIn(function(){t._toastEl.trigger("afterShown")}):"slide"===this.options.showHideTransition.toLowerCase()?this._toastEl.slideDown(function(){t._toastEl.trigger("afterShown")}):this._toastEl.show(function(){t._toastEl.trigger("afterShown")}),this.canAutoHide()){var t=this;o.setTimeout(function(){"fade"===t.options.showHideTransition.toLowerCase()?(t._toastEl.trigger("beforeHide"),t._toastEl.fadeOut(function(){t._toastEl.trigger("afterHidden")})):"slide"===t.options.showHideTransition.toLowerCase()?(t._toastEl.trigger("beforeHide"),t._toastEl.slideUp(function(){t._toastEl.trigger("afterHidden")})):(t._toastEl.trigger("beforeHide"),t._toastEl.hide(function(){t._toastEl.trigger("afterHidden")}))},this.options.hideAfter)}},reset:function(o){"all"===o?t(".jq-toast-wrap").remove():this._toastEl.remove()},update:function(t){this.prepareOptions(t,this.options),this.setup(),this.bindToast()},close:function(){this._toastEl.find(".close-jq-toast-single").click()}};t.toast=function(t){var o=Object.create(n);return o.init(t,this),{reset:function(t){o.reset(t)},update:function(t){o.update(t)},close:function(){o.close()}}},t.toast.options={text:"",heading:"",showHideTransition:"fade",allowToastClose:!0,hideAfter:3e3,loader:!0,loaderBg:"#9EC600",stack:5,position:"bottom-left",bgColor:!1,textColor:!1,textAlign:"left",icon:!1,beforeShow:function(){},afterShown:function(){},beforeHide:function(){},afterHidden:function(){},onClick:function(){}}}(jQuery,window,document);
...@@ -10,4 +10,9 @@ function register_third_party_styles() { ...@@ -10,4 +10,9 @@ function register_third_party_styles() {
wp_enqueue_script('vq-chosen-js', plugin_dir_url(__FILE__) . '/chosen/chosen.jquery.min.js', 'jQuery',$version); wp_enqueue_script('vq-chosen-js', plugin_dir_url(__FILE__) . '/chosen/chosen.jquery.min.js', 'jQuery',$version);
wp_enqueue_script('vq-custom-js', plugin_dir_url(__FILE__) . '/custom-script.js', 'jQuery', $version); wp_enqueue_script('vq-custom-js', plugin_dir_url(__FILE__) . '/custom-script.js', 'jQuery', $version);
// toaster plugin
wp_enqueue_style('vq-toaster-css', plugin_dir_url(__FILE__) . '/chosen/jquery.toast.min.css','',$version);
wp_enqueue_script('vq-toaster-js', plugin_dir_url(__FILE__) . '/chosen/jquery.toast.min.js', 'jQuery',$version);
} }
\ No newline at end of file
...@@ -219,17 +219,74 @@ ...@@ -219,17 +219,74 @@
}); });
if (learnersWithNoCourse.length > 0) { if (learnersWithNoCourse.length > 0) {
alert("Please select courses with all learners.");
$.toast({
text: "Please select courses with all learners.", // Text that is to be shown in the toast
heading: '', // Optional heading to be shown on the toast
icon: 'error', // Type of toast icon
showHideTransition: 'fade', // fade, slide or plain
allowToastClose: true, // Boolean value true or false
hideAfter: 4000, // false to make it sticky or number representing the miliseconds as time after which toast needs to be hidden
stack: 5, // false if there should be only one toast at a time or a number representing the maximum number of toasts to be shown at a time
position: 'top-right', // bottom-left or bottom-right or bottom-center or top-left or top-right or top-center or mid-center or an object representing the left, right, top, bottom values
textAlign: 'left', // Text alignment i.e. left, right or center
loader: false, // Whether to show loader or not. True by default
loaderBg: '#9EC600', // Background color of the toast loader
beforeShow: function () {}, // will be triggered before the toast is shown
afterShown: function () {}, // will be triggered after the toat has been shown
beforeHide: function () {}, // will be triggered before the toast gets hidden
afterHidden: function () {} // will be triggered after the toast has been hidden
});
return; return;
} }
if (learnersMismatchEmails.length > 0) { if (learnersMismatchEmails.length > 0) {
alert("Confirm email mismatched.");
$.toast({
text: "Confirm email mismatched.", // Text that is to be shown in the toast
heading: '', // Optional heading to be shown on the toast
icon: 'error', // Type of toast icon
showHideTransition: 'fade', // fade, slide or plain
allowToastClose: true, // Boolean value true or false
hideAfter: 4000, // false to make it sticky or number representing the miliseconds as time after which toast needs to be hidden
stack: 5, // false if there should be only one toast at a time or a number representing the maximum number of toasts to be shown at a time
position: 'top-right', // bottom-left or bottom-right or bottom-center or top-left or top-right or top-center or mid-center or an object representing the left, right, top, bottom values
textAlign: 'left', // Text alignment i.e. left, right or center
loader: false, // Whether to show loader or not. True by default
loaderBg: '#9EC600', // Background color of the toast loader
beforeShow: function () {}, // will be triggered before the toast is shown
afterShown: function () {}, // will be triggered after the toat has been shown
beforeHide: function () {}, // will be triggered before the toast gets hidden
afterHidden: function () {} // will be triggered after the toast has been hidden
});
return; return;
} }
if(!$("#accepted_terms").is(':checked')) { if(!$("#accepted_terms").is(':checked')) {
alert('Please accept turns & conditions.');
$.toast({
text: "Please accept the Terms and Conditions.", // Text that is to be shown in the toast
heading: '', // Optional heading to be shown on the toast
icon: 'error', // Type of toast icon
showHideTransition: 'fade', // fade, slide or plain
allowToastClose: true, // Boolean value true or false
hideAfter: 4000, // false to make it sticky or number representing the miliseconds as time after which toast needs to be hidden
stack: 5, // false if there should be only one toast at a time or a number representing the maximum number of toasts to be shown at a time
position: 'top-right', // bottom-left or bottom-right or bottom-center or top-left or top-right or top-center or mid-center or an object representing the left, right, top, bottom values
textAlign: 'left', // Text alignment i.e. left, right or center
loader: false, // Whether to show loader or not. True by default
loaderBg: '#9EC600', // Background color of the toast loader
beforeShow: function () {}, // will be triggered before the toast is shown
afterShown: function () {}, // will be triggered after the toat has been shown
beforeHide: function () {}, // will be triggered before the toast gets hidden
afterHidden: function () {} // will be triggered after the toast has been hidden
});
return; return;
} }
......
...@@ -6,7 +6,7 @@ get_header(); ...@@ -6,7 +6,7 @@ get_header();
<div class="container"> <div class="container">
<div class="row"> <div class="row">
<div class="e-learning-heading"> <div class="e-learning-heading">
<h2>Thanks!</h2> <h2>Thank YOu!</h2>
</div> </div>
</div> </div>
</div> </div>
...@@ -16,7 +16,7 @@ get_header(); ...@@ -16,7 +16,7 @@ get_header();
<div class="row"> <div class="row">
<div class="col-sm-12"> <div class="col-sm-12">
<div class="thankyou-heading"> <div class="thankyou-heading">
<h2>Kindly check the provided email, You shall soon get a download link for the courses.</h2> <h2><?php echo(get_the_content()); ?></h2>
</div> </div>
</div> </div>
</div> </div>
......
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