Jump to content

Inserimento codice informativa privacy


Recommended Posts

Salve, 

Avrei la necessità di inserire l'informativa sulla privacy sul modulo blogcomment

ho provato ad inserire il codice come riportato sotto ma l'informativa non viene visualizzata.

come posso risolvere?

*}
<div class="comment_respond clearfix m_bottom_50" id="respond">
    <h3 class="comment_reply_title" id="reply-title">
        {l s='Leave a Reply' mod='wbblog'}
        <small>
            <a href="/wp_showcase/wp-supershot/?p=38#respond" id="cancel-comment-reply-link" rel="nofollow" style="display:none;">
                {l s='Cancel reply' mod='wbblog'}
            </a>
        </small>
    </h3>
    <form class="comment_form" action="" method="post" id="wbblogs_commentfrom" role="form" data-toggle="validator">
    	<div class="form-group wbblogs_message"></div>
    	<div class="form-group wbblog_name_parent">
    	  <label for="wbblog_name">{l s='Your Name:' mod='wbblog'}</label>
    	  <input type="text"  id="wbblog_name" name="wbblog_name" class="form-control wbblog_name" required>
    	</div>
    	<div class="form-group wbblog_email_parent">
    	  <label for="wbblog_email">{l s='Your Email:' mod='wbblog'}</label>
    	  <input type="email"  id="wbblog_email" name="wbblog_email" class="form-control wbblog_email" required>
    	</div>
    	<div class="form-group wbblog_website_parent">
    	  <label for="wbblog_website">{l s='Website Url:' mod='wbblog'}</label>
    	  <input type="url"  id="wbblog_website" name="wbblog_website" class="form-control wbblog_website">
    	</div>
    	<div class="form-group wbblog_subject_parent">
    	  <label for="wbblog_subject">{l s='Subject:' mod='wbblog'}</label>
    	  <input type="text"  id="wbblog_subject" name="wbblog_subject" class="form-control wbblog_subject" required>
    	</div>
    	<div class="form-group wbblog_content_parent">
    	  <label for="wbblog_content">{l s='Comment:' mod='wbblog'}</label>
    	  <textarea rows="15" cols="" id="wbblog_content" name="wbblog_content" class="form-control wbblog_content" required></textarea>
    	</div>
    	<input type="hidden" class="wbblog_id_parent" id="wbblog_id_parent" name="wbblog_id_parent" value="0">
    	<input type="hidden" class="wbblog_id_post" id="wbblog_id_post" name="wbblog_id_post" value="{$wbblogpost.id_wbposts}">
		{hook h='displayGDPRConsent' id_module=$id_module}
    	<input type="submit" class="btn btn-primary wbblog_submit_btn" value="Invia">
    </form>
</div>
</div>
{wbblog_js name="single_comment_form"}
<script type="text/javascript">
// disabled
$('.wbblog_submit_btn').on("click",function(e) {
	e.preventDefault();
	if(!$(this).hasClass("disabled")){
		var data = new Object();
		$('[id^="wbblog_"]').each(function()
		{
			id = $(this).prop("id").replace("wbblog_", "");
			data[id] = $(this).val();
		});
		function logErrprMessage(element, index, array) {
		  $('.wbblogs_message').append('<span class="wbblogs_error">'+element+'</span>');
		}
		function wbremove() {
		  $('.wbblogs_error').remove();
		  $('.wbblogs_success').remove();
		}
		function logSuccessMessage(element, index, array) {
		  $('.wbblogs_message').append('<span class="wbblogs_success">'+element+'</span>');
		}
		$.ajax({
			url: xprt_base_dir + 'modules/wbblog/ajax.php',
			data: data,
			type:'post',
			dataType: 'json',
			beforeSend: function(){
				wbremove();
				$(".wbblog_submit_btn").val("Attendere prego..");
				$(".wbblog_submit_btn").addClass("disabled");
			},
			complete: function(){
				$(".wbblog_submit_btn").val("Invia");
				$(".wbblog_submit_btn").removeClass("disabled");	
			},
			success: function(data){
				wbremove();
				if(typeof data.success != 'undefined'){
					data.success.forEach(logSuccessMessage);
				}
				if(typeof data.error != 'undefined'){
					data.error.forEach(logErrprMessage);
				}
			},
			error: function(data){
				wbremove();
				$('.wbblogs_message').append('<span class="error">Qualcosa non va ! Per favore riprova. </span>');
			},
		});	
	}
});
</script>
{/wbblog_js}

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...