trAvis - MANAGER
Edit File: plus-cf7-form.js
(function(a){"use strict";a(document).ready(function(){plus_cf7_form()})})(jQuery);function plus_cf7_form(){var e=jQuery;e(".theplus-contact-form").each(function(){var f=0;if(!e(this).hasClass("tp-form-loaded")){e(".wpcf7-form-control.wpcf7-radio .wpcf7-list-item",this).each(function(){var a=e(this).find(".wpcf7-list-item-label").text();e(this).find(".wpcf7-list-item-label").remove();var b=e("input[type=\"radio\"]",this);b.parent().is("label")&&b.unwrap();var c=e(this).find("input[type=\"radio\"]").attr("name");e(this).append("<label class=\"input__radio_btn\" for=\""+c+f+"\">"+a+"<div class=\"fas fa-check toggle-button__icon\"></div></label>"),e(this).find("input[type=\"radio\"]").attr("id",c+f),e(this).find("input[type=\"radio\"]").addClass("input-radio-check"),e(this).parents(".wpcf7-form-control-wrap").addClass("plus-checkbox"),f++});var f=0;e(".wpcf7-form-control.wpcf7-checkbox .wpcf7-list-item",this).each(function(){var a=e(this).find(".wpcf7-list-item-label").text();e(this).find(".wpcf7-list-item-label").remove();var b=e("input[type=\"checkbox\"]",this);b.parent().is("label")&&b.unwrap(),e(this).append("<label class=\"input__checkbox_btn\" for=\"plus-checkbox"+f+"\"><div class=\"fas fa-check toggle-button__icon\"></div>"+a+"</label>"),e(this).find("input[type=\"checkbox\"]").attr("id","plus-checkbox"+f),e(this).find("input[type=\"checkbox\"]").addClass("input-checkbox-check"),e(this).parents(".wpcf7-form-control-wrap").addClass("plus-checkbox"),f++}),e(".wpcf7-form-control.wpcf7-acceptance .wpcf7-list-item",this).each(function(){var a=e(this).find(".wpcf7-list-item-label").html();e(this).find(".wpcf7-list-item-label").remove();var b=e("input[type=\"checkbox\"]",this);b.parent().is("label")&&b.unwrap(),e(this).append("<label class=\"input__checkbox_btn\" for=\"plus-checkbox"+f+"\"><div class=\"fas fa-check toggle-button__icon\"></div>"+a+"</label>"),e(this).find("input[type=\"checkbox\"]").attr("id","plus-checkbox"+f),e(this).find("input[type=\"checkbox\"]").addClass("input-checkbox-check"),e(this).parents(".wpcf7-form-control-wrap").addClass("plus-checkbox"),f++}),e(".wpcf7-form-control-wrap input[type='file']",this).each(function(){var a=e(this).attr("name");e(this).attr("id",a+f),e(this).attr("data-multiple-caption","{count} files selected"),e(this).parents(".wpcf7-form-control-wrap").append("<label class=\"input__file_btn\" for=\""+a+f+"\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"17\" viewBox=\"0 0 20 17\"><path d=\"M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z\"></path></svg><span>Choose a file\u2026</span></label>"),e(this).parents(".wpcf7-form-control-wrap").addClass("cf7-style-file"),f++}),e(this).addClass("tp-form-loaded")}})}