Files
Testing/blog/wp-content/plugins/secureprivacy/admin/partials/privacy-policy-partial.php
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

2311 lines
130 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Provide a admin area view for the plugin
*
* This file is used to markup the admin-facing aspects of the plugin.
*
* @link http://secureprivacy.ai/
* @since 1.0.0
*
* @package Secureprivacy
* @subpackage Secureprivacy/admin/partials
*/
?>
<style>
.hint-text {
font-size: 12px;
margin-left: 20px;
color: #999;
}
.answers label {
font-weight: normal;
}
#entityType-error, #rdoPaymentProcessors-error, #isAnalytics-error, #isAdvertisement-error, #isCustomerInteraction-error, #isSocial-error, #isKeepBackup-error{
position: absolute;
top: 20px;
padding: 5px;
}
#hasdpo-error {
position: absolute;
top: 45px;
padding: 5px;
}
.selectors {
font-weight:bold;
margin:15px 0px;
}
.pricvacy-policy-in-text .left-navigation {
background: #f8f8f8;
}
.pricvacy-policy-in-text table td {
padding: 0!important;
margin: 0!important;
border-right: none!important;
border-bottom: none!important;
border-top: none!important;
}
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
padding-top: 100px; /* Location of the box */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Modal Content */
.modal-content {
background-color: #fefefe;
margin: auto;
padding: 20px;
border: 1px solid #888;
width: 500px;
}
/* The Close Button */
.close {
color: #000 !important;
float: right !important;
font-size: 28px !important;
font-weight: bold !important;
line-height: 1px !important;
}
.close:hover,
.close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
.pricvacy-policy-in-text table {
padding: 0!important;
margin: 0!important;
border-spacing: 0;
}
.pricvacy-policy-in-text .left-navigation .left-navigation-scroll {
padding: 15px;
}
.left-navigation-scroll {
height: calc(100vh - 130px)!important;
}
.left-navigation-scroll ul {
margin: 0;
padding: 0;
}
.left-navigation-scroll ul>li {
background-position: left bottom;
line-height: normal;
padding: 0;
list-style-image: none;
list-style-type: none;
margin: 0;
}
.left-navigation ul li {
list-style: none;
}
.pricvacy-policy-in-text .privacy-policy-ui h4 {
padding-top: 10px!important;
padding-bottom: 0!important;
font-size: 14px!important;
font-weight: 600!important;
font-family: Raleway,sans-serif!important;
color: #474847!important;
margin: 0!important;
}
.pricvacy-policy-in-text .horizontalLinks {
color: #474847!important;
margin: 0 0 15px!important;
cursor: pointer!important;
padding: 10px!important;
border-radius: 4px!important;
display: block!important;
}
.pricvacy-policy-in-text .left-navigation a:hover {
text-decoration: none;
background: #a6deff!important;
}
.pricvacy-policy-in-text .privacy-policy-ui h1, .show-pricvacy-policy-in-styles .privacy-policy-ui h1 {
margin-bottom: 15px!important;
margin-top: 0!important;
font-family: Raleway,sans-serif!important;
font-weight: 600!important;
font-size: 20px!important;
color: #474847!important;
padding-top: 0!important;
padding-bottom: 10px!important;
border-bottom: 1px solid #ddd;
}
.pricvacy-policy-in-text .privacy-policy-ui p {
margin-bottom: 10px!important;
margin-top: 10px!important;
padding-top: 0!important;
padding-bottom: 0!important;
font-size: 14px!important;
line-height: 21.4px!important;
font-weight: 400!important;
}
.pricvacy-policy-in-text .privacy-policy-ui h3 {
padding-top: 15px!important;
padding-bottom: 0!important;
font-size: 16px!important;
font-weight: 600!important;
font-family: Raleway,sans-serif!important;
color: #474847!important;
margin: 0!important;
}
.pricvacy-policy-in-text .privacy-policy-ui {
padding: 15px 20px;
font-family: Raleway,sans-serif!important;
color: #474847;
background: #fff;
}
.pricvacy-policy-in-text .privacy-policy-ui ul li {
padding: 3px 0!important;
list-style: disc!important;
line-height: normal!important;
font-size: 14px!important;
font-weight: 400!important;
font-family: Raleway,sans-serif!important;
color: #474847!important;
margin: 0 0 0 25px!important;
}
.pricvacy-policy-in-text .privacy-policy-ui ul {
margin-left:30px;
}
</style>
<div class="wrap _s" id="page_settings_page" style="display:none;">
<div class="col-sm-9">
<div class="sp-tabs-bar">
<a href="<?php echo admin_url('admin.php?page=dashboard'); ?>" class="customisation"> Dashboard </a>
<a href="<?php echo admin_url('admin.php?page=settings'); ?>" class="customisation"> Settings </a>
<a href="<?php echo admin_url('admin.php?page=banners'); ?>" class="customisation"> Banners </a>
<a href="<?php echo admin_url('admin.php?page=priorConsent'); ?>" class="customisation"> Prior consent </a>
<!-- <a href="<?php echo admin_url('admin.php?page=privacyPolicy'); ?>" class="customisation active-c"> Privacy policy </a> -->
<a href="<?php echo admin_url('admin.php?page=consentTracking'); ?>" class="customisation"> Consent tracking </a>
</div>
<div class="clearfix"></div>
<div style="border: solid 1px #dddddd;padding: 15px;background: #fff;">
<div class="example-box-wrapper">
<ul id="nav_privacy_policy" class="nav-responsive nav nav-tabs">
<li class="active" id="li_tab_1">
<a href="javascript:void(0);" data-toggle="tab">Generator</a>
</li>
<li class="" id="li_tab_2">
<a href="javascript:void(0);" data-toggle="tab">Edit</a>
</li>
<li class="" id="li_tab_3">
<a href="javascript:void(0);" data-toggle="tab">How to use</a>
</li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="tab1">
<div class="alert alert-warning" style="display:none;overflow:hidden;margin-bottom:20px;" id="updrade_privacy_policy">
<span style="line-height:34px;">This feature can be purchased as an addon. <button class="pull-right btn btn-warning">Upgrade</a></span>
</div>
<form action="javascript:void(0);" id="privacy-policy-form">
<h4 class="settings-header" style="margin-bottom:20px;">Business information</h4>
<div class="form-horizontal bordered-row">
<div class="form-group">
<label class="col-sm-3 control-label">
Entity type
</label>
<div class="col-sm-6">
<label class="radio-inline">
<input type="radio" class="pull-left" value="businness" name="entityType">I am a Business</label>
<label class="radio-inline">
<input type="radio" class="pull-left" value="individual" name="entityType">I'm an Individual</label>
</div>
</div>
<div class="form-group" id="business_name" style="display:none;">
<label class="col-sm-3 control-label">
Name of your Business
</label>
<div class="col-sm-6">
<input id="websiteName" name="websiteName" class="form-control" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
Country
</label>
<div class="col-sm-6">
<select id="country" name="country" class="form-control" /> </select>
</div>
</div>
<div class="form-group" id="state_options" style="display:none;">
<label class="col-sm-3 control-label">
Select state
</label>
<div class="col-sm-6">
<select id="gState" name="gState" style="display:none;" class="form-control" /> </select>
<select id="usaState" name="usaState" class="form-control" style="display:none;" /> </select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
What personal information do you collect?
</label>
<div class="col-sm-6 answers">
<div id="div_informationCollected">
</div>
<div>
<label>
<input name="informationCollected_addMore" id="informationCollected_addMore"
type="checkbox"> Other
</label>
</div>
<div id="personal_info_other" style="display:none;" class="input-group">
<input class="form-control" name="otherValue" id="otherValue" placeholder="Other personal information..." type="text">
<div class="input-group-btn">
<button id="addInformationCollected" name="addInformationCollected" class="btn btn-default"
type="button">Add</button>
</div>
</div>
</div>
</div>
<div class="form-group" style="display:none;" id="personal_info_collected_email">
<label class="col-sm-3 control-label">
Do you send emails to your users?
</label>
<div class="col-sm-6">
<label class="radio-inline">
<input type="radio" class="pull-left" value="true" name="emailinformationCollected">Yes</label>
<label class="radio-inline">
<input type="radio" class="pull-left" value="false" name="emailinformationCollected">No</label>
</div>
</div>
<div class="form-group" style="display:none;" id="how_can_user_unsubscribe">
<label class="col-sm-3 control-label">
How can users unsubscribe from your emails?
</label>
<div class="col-sm-9 answers">
<div>
<label>
<input name="unsubscribeViaEmail" id="unsubscribeViaEmail" type="checkbox"> By clicking the Unsubscribe link or by following the instructions from each
email we send </label>
</div>
<div>
<label>
<input name="unsubscribeViaLink" id="unsubscribeViaLink" type="checkbox">By contacting us via email </label>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
What is the purpose of the collected data?
</label>
<div class="col-sm-9 answers">
<div id="div_collected_data"> </div>
<div>
<label>
<input name="collectedData_addMore" id="collectedData_addMore" type="checkbox">Other</label>
</div>
<div class="input-group" id="collectedData_other" style="width:400px;display:none;">
<input class="form-control" name="collectedDataValue" id="collectedDataValue" type="text">
<div class="input-group-btn">
<button class="btn btn-default" name="addcollectedData" id="addcollectedData"
type="button">Add</button>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
Do you use payment processors?
</label>
<div class="col-sm-9 answers">
<div>
<label class="radio-inline">
<input type="radio" class="pull-left" value="true" name="rdoPaymentProcessors">Yes
</label>
<label class="radio-inline">
<input type="radio" class="pull-left" value="false" name="rdoPaymentProcessors">No
</label>
</div>
<div id="all_payment_proccesor" style="display:none;">
<div class="selectors"> Select the payment processors </div>
<div class="col-sm-9 answers">
<div id="div_websiteQuestions_listOfProcessors"> </div>
<div>
<label>
<input name="addNewProcessor" id="addNewProcessor" type="checkbox">Other</label>
</div>
<div class="input-group" style="width:400px; display:none;" id="other_new_processor" >
<input class="form-control" name="newPaymentProcessor" id="newPaymentProcessor" type="text">
<div class="input-group-btn">
<button class="btn btn-default" name="addPaymentProcessor" id="addPaymentProcessor"
type="button">Add</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
Do you use Analytics?
</label>
<div class="col-sm-9 answers">
<div>
<label class="radio-inline">
<input type="radio" class="pull-left" value="true" name="isAnalytics">Yes
</label>
<label class="radio-inline">
<input type="radio" class="pull-left" value="false" name="isAnalytics">No
</label>
</div>
<div id="all_analytics" style="display:none">
<div class="selectors"> Select the tools you use for tracking and/or analytics </div>
<div class="col-sm-9 answers">
<div id="div_websiteQuestions_listOfAnalytics"> </div>
<div>
<label>
<input name="addNewAnalytics" id="addNewAnalytics" type="checkbox">Other</label>
</div>
<div class="input-group" style="width:400px;display:none;" id="other_analytics">
<input class="form-control" name="newAnalytics" id="newAnalytics" type="text">
<div class="input-group-btn">
<button class="btn btn-default" name="addNewAnatyticsTool" id="addNewAnatyticsTool"
type="button">Add</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
Do you show Ads on your website?
</label>
<div class="col-sm-9 answers">
<div>
<label class="radio-inline">
<input type="radio" class="pull-left" value="true" name="isAdvertisement">Yes
</label>
<label class="radio-inline">
<input type="radio" class="pull-left" value="false" name="isAdvertisement">No
</label>
</div>
<div id="all_advertisement" style="display:none">
<div class="selectors"> Select the tools you use for advertisement </div>
<div class="col-sm-9 answers">
<div id="div_websiteQuestions_listOfAdvertisement"> </div>
<div>
<label>
<input name="addNewAdvertisement" id="addNewAdvertisement" type="checkbox">Other</label>
</div>
<div class="input-group" id="other_advertisement" style="width:400px;display:none;">
<input class="form-control" name="newAdvertisement" id="newAdvertisement" type="text">
<div class="input-group-btn">
<button class="btn btn-default" name="addNewAdvertisementTool" id="addNewAdvertisementTool"
type="button">Add</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
Do you use customer interation tools?
</label>
<div class="col-sm-9 answers">
<div>
<label class="radio-inline">
<input type="radio" class="pull-left" value="true" name="isCustomerInteraction">Yes
</label>
<label class="radio-inline">
<input type="radio" class="pull-left" value="false" name="isCustomerInteraction">No
</label>
</div>
<div id="all_customer_interaction" style="display:none;">
<div class="selectors">Select the tools you use for customer interaction </div>
<div class="col-sm-9 answers">
<div id="div_websiteQuestions_listOfCutomerInteraction"> </div>
<div>
<label>
<input name="addNewCustomerInteraction" id="addNewCustomerInteraction" type="checkbox">Other</label>
</div>
<div class="input-group" id="other_customer_interaction" style="width:400px;display:none;">
<input class="form-control" name="newCustomerInteraction" id="newCustomerInteraction" type="text">
<div class="input-group-btn">
<button class="btn btn-default" name="addNewCustomerInteractionTool" id="addNewCustomerInteractionTool"
type="button">Add</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
Do you use social plugins?
</label>
<div class="col-sm-9 answers">
<div>
<label class="radio-inline">
<input type="radio" class="pull-left" value="true" name="isSocial">Yes
</label>
<label class="radio-inline">
<input type="radio" class="pull-left" value="false" name="isSocial">No
</label>
</div>
<div id="all_social" style="display:none;">
<div class="selectors"> Select the social media tools </div>
<div class="col-sm-9 answers">
<div id="div_websiteQuestions_listOfSocial"> </div>
<div>
<label>
<input name="addNewSocial" id="addNewSocial" type="checkbox">Other</label>
</div>
<div class="input-group" id="other_social" style="width:400px;display:none;">
<input class="form-control" name="newSocial" id="newSocial" type="text">
<div class="input-group-btn">
<button class="btn btn-default" name="addNewSocialTool" id="addNewSocialTool"
type="button">Add</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
Do you keep backups containing personal data?
</label>
<div class="col-sm-9 answers">
<div>
<label class="radio-inline">
<input type="radio" class="pull-left" value="true" name="isKeepBackup">Yes
</label>
<label class="radio-inline">
<input type="radio" class="pull-left" value="false" name="isKeepBackup">No
</label>
</div>
<div id="all_backup" style="display:none;">
<div class="selectors"> How many days do you keep the backup? </div>
<div class="col-sm-9 answers">
<div>
<input type="number" id="backupDays" name="backupDays" class="form-control">
</div>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
What security measures do you use?
</label>
<div class="col-sm-9 answers">
<div id="div_websiteQuestions_listOfSecurityMeasures"> </div>
<div>
<label>
<input name="addNewSecurityMeasures" id="addNewSecurityMeasures" type="checkbox">Other</label>
</div>
<div class="input-group" id="other_security_measures" style="width:400px;display:none">
<input class="form-control" name="newSecurityMeasures" id="newSecurityMeasures" type="text">
<div class="input-group-btn">
<button class="btn btn-default" name="addSecurityMeasuresTool" id="addSecurityMeasuresTool"
type="button">Add</button>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
Do you use sub-contractors?
</label>
<div class="col-sm-9 answers">
<input type="checkbox" class="pull-left" name="isHavingSubContractors">Yes
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
Do you have employees?
</label>
<div class="col-sm-9 answers">
<input type="checkbox" class="pull-left" name="isHavingEmployees">Yes
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
Can people access, update and delete their data through a user account page?
</label>
<div class="col-sm-9 answers">
<input type="checkbox" class="pull-left" name="isUpdateData">Yes
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
Do you want your Privacy Policy to be compliant with GDPR??
</label>
<div class="col-sm-9 answers">
<input type="checkbox" class="pull-left" name="isGDPRCompliant">Yes
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
How can users contact you for any questions regarding your Privacy Policy?
</label>
<div class="col-sm-6 answers">
<label>
<input type="checkbox" name="iscontactEmail" id="iscontactEmail"> Email Address</label> <br/>
<input type="text" style="margin-bottom:10px;display:none;" class="form-control" id="tbxcontactEmail" name="tbxcontactEmail" />
<label>
<input type="checkbox" name="iscontactPage" id="iscontactPage"> By visiting a page on our website</label><br/>
<input type="text" style="margin-bottom:10px;display:none;" class="form-control" id="tbxcontactPage" name="tbxcontactPage" />
<label>
<input type="checkbox" name="iscontactPhone" id="iscontactPhone"> By phone number</label><br/>
<input type="text" style="margin-bottom:10px;display:none;" class="form-control" id="tbxcontactPhone" name="tbxcontactPhone" />
<label>
<input type="checkbox" name="iscontactAddress" id="iscontactAddress">By sending post mail</label><br/>
<input type="text" style="margin-bottom:10px;display:none;" class="form-control" id="tbxcontactAddress" name="tbxcontactAddress" />
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
Data Protection Officer
</label>
<div class="col-sm-6 answers">
<label><input type="radio" value="true" name="hasdpo"> We have a DPO</label>
<input type="text" placeholder="Name of DPO" style="margin-bottom:10px;display:none;"class="form-control" id="dpoName" name="dpoName" />
<input type="text" placeholder="Email of DPO" style="margin-bottom:10px;display:none;" class="form-control" id="dpoEmail" name="dpoEmail" />
<br/>
<label>
<input type="radio" value="false" name="hasdpo"> We do not have a DPO</label>
<input type="text" class="form-control" style="margin-bottom:10px;display:none;" id="dpoName" name="dpoName" />
</div>
</div>
<div class="form-group">
<button id="btn_submit_generator" class="btn btn-success">Create new Privacy Policy</button>
</div>
</div>
</form>
</div>
<div class="tab-pane" id="tab2">
<div class="pricvacy-policy-in-text" id="privacy_policy_editor"> </div>
</div>
<div class="tab-pane" id="tab3">
<div class="form-horizontal bordered-row">
<div class="form-group">
<label class="col-sm-3 control-label">
Shortcode for pop up
</label>
<div class="col-sm-6">
<textarea style="width:100%;height: 86px;"><span id="sp-privacy-policy-embed-widget" class="sp-privacy-policy-preview" onclick="sp.openPrivacyPolicy();" style="display:none;background-color: #2e6da4; color:#ffffff;">Privacy Policy</span></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">
Shortcode to insert text
</label>
<div class="col-sm-6">
<textarea style="width:100%;height: 86px;"> <div sp-privacy-policy-text="direct-text"></div></textarea>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-3 information">
<div class="content-box">
<h3 class="content-box-header" style="background: #dddddd;">
Information
</h3>
<div class="content-box-wrapper support-articles">
<h2> Support</h2>
<a href="https://secureprivacysupport.zendesk.com/" target="_blank" class="btn btn-info">Get support</a>
<hr/>
<h2> Support articles</h2>
<div>
<a href="https://secureprivacysupport.zendesk.com/hc/en-us/articles/360013138852-How-to-add-privacy-policy-text-on-WordPress"
target="_blank" class="">How to add privacy policy text on WordPress</a>
</div>
<div>
<a href="https://secureprivacysupport.zendesk.com/hc/en-us/articles/360013137132-How-to-add-privacy-button-on-Wordpress-menu"
target="_blank" class="">How to add privacy button on Wordpress menu</a>
</div>
<div>
<a href="https://secureprivacysupport.zendesk.com/hc/en-us/articles/360012912712-What-is-prior-consent-and-how-to-implement-it-"
target="_blank" class="">What is ‘prior consent’ and how to implement it?</a>
</div>
<div>
<a href="https://secureprivacysupport.zendesk.com/hc/en-us/articles/360013137552-How-to-add-Prior-Consent-with-Google-Tag-Manager-GTM-"
target="_blank" class="">How to add Prior Consent with Google Tag Manager (GTM)?</a>
</div>
<div>
<a href="https://secureprivacysupport.zendesk.com/hc/en-us/articles/360015115112-Developer-guide-for-JavaScript-methods"
target="_blank" class="">Developer guide for JavaScript methods</a>
</div>
</div>
</div>
</div>
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<div class="row">
<div class="col-md-12">
<h3 style="line-height:30px;">Your privacy policy already exists. Do you want to create a new privacy policy?</h3>
</div>
</div>
<div class="row" style="margin-top:50px;">
<div class="col-md-6">
<button id="edit_privacy_policy" class="btn btn-block btn-primary btn-lg">Edit Privacy Policy</button>
</div>
<div class="col-md-6">
<button id="create_new_policy" class="btn btn-block btn-success btn-lg">Create New</button>
</div>
</div>
</div>
</div>
</div>
<form id="saveValueForm" action="options.php" method="post">
<?php
settings_fields( $this->plugin_name );
do_settings_sections( $this->plugin_name );
?>
</form>
<script>
//case of a fresh install
if (document.getElementById('outdated_notice_adminId').value === '' && document.getElementById('outdated_notice_sessionId').value === '') {
window.location.href = '<?php echo admin_url('admin.php?page=welcome'); ?>';
} else if (document.getElementById('outdated_notice_sessionId').value === '') {
window.location.href = '<?php echo admin_url('admin.php?page=login'); ?>';
} else {
document.getElementById('page_settings_page').style.display ='block';
}
getSupportedFeatures(window.document.getElementById('outdated_notice_planName').value);
(function ($) {
'use strict';
$("#updrade_privacy_policy button").on("click", function () {
window.sp_upgradePlan();
});
$.getScript("//cdn.ckeditor.com/4.9.2/standard/ckeditor.js", function (data, textStatus, jqxhr) {
if (window.sp_supportedFeatures.privacyPolicy === true) {
$("#updrade_privacy_policy").hide();
$("#nav_privacy_policy").show();
getPrivacyPolicy();
} else {
$('#privacy-policy-form :input').prop('disabled', true);
$("#updrade_privacy_policy").show();
$("#nav_privacy_policy").hide();
}
});
var websiteQuestions, informationCollected, collectedData, adminConsentSettings, bannerDisplayOptions, pluginDetails, privacyPolicyModal;
$(function () {
$("#privacy-policy-form").validate({
ignore: ":hidden",
rules: {
entityType: {
required: true,
},
rdoPaymentProcessors: {
required: true,
},
isAnalytics: {
required: true,
},
isAdvertisement: {
required: true,
},
isCustomerInteraction: {
required: true,
},
isSocial: {
required: true,
},
isKeepBackup: {
required: true,
},
backupDays: {
required: true,
},
hasdpo: {
required: true,
},
dpoName: {
required: true,
},
dpoEmail: {
required: true,
email: true
},
tbxcontactEmail: {
required: true,
email: true
},
tbxcontactPage: {
required: true,
},
tbxcontactPhone: {
required: true,
maxlength: 15
},
websiteName: {
required: true,
},
emailinformationCollected: {
required: true,
}
},
messages: {
userpassword: {
required: "Please provide a password",
minlength: "Your password must be at least 5 characters long"
},
useremail: "Please enter a valid email address"
},
errorElement : 'div',
submitHandler: function (form) {
submitPrivacyPolicy();
}
});
});
function resetForms() {
websiteQuestions = {
'isPrivacyPolicyExist': null,
'privacyPolicyPageURL': '',
'creationDate': new Date(),
'onapp': false,
'onmobile': false,
'websiteUrl': '',
'websiteName': '',
'mobileAppName': '',
'entityType': '',
'entityName': '',
'country': '',
'gState': '',
'usaState': '',
'isDPO': null,
'dpoName': '',
'dpoEmail': '',
'iscontactEmail': null,
'iscontactPage': null,
'iscontactPhone': null,
'iscontactAddress': null,
'contactEmail': '',
'contactPhone': '',
'contactPage': '',
'contactAddress': '',
'isPaymentProcessors': null,
'addNewProcessor': false,
'newPaymentProcessor': '',
'addNewAnalytics': false,
'newAnalytics': '',
'addNewAdvertisement': false,
'newAdvertisement': '',
'addNewCustomerInteraction': false,
'newCustomerInteraction': '',
'addNewSecurityMeasures': false,
'newSecurityMeasures': '',
'addNewSocial': false,
'newSocial': '',
'countAnalytics': 0,
'countSocialPlugins': 0,
'countAds': 0,
'countCustomerInteraction': 0,
'countPaymentProviders': 0,
'isKeepBackup': null,
'backupDays': 7,
'isHavingSubContractors': false,
'isHavingEmployees': false,
'isGDPRCompliant': false,
'isUpdateData': false,
'listOfSecurityMeasures': [
{
'value': 'Encryption',
'isChecked': false
},
{
'value': 'Anonymization',
'isChecked': false
},
{
'value': 'Redundancy',
'isChecked': false
},
{
'value': 'Backups',
'isChecked': false
}
],
'listOfProcessors': [{
'value': 'Apple Store In-App Payments',
'privacyPolicy': 'https://www.apple.com/legal/privacy/en-ww/',
'isChecked': false
},
{
'value': 'Google Play In-App Payments',
'privacyPolicy': 'https://policies.google.com/privacy?hl=en',
'isChecked': false
},
{
'value': 'Stripe',
'isChecked': false,
'privacyPolicy': 'https://stripe.com/hk/privacy'
},
{
'value': 'PayPal or Braintree',
'isChecked': false,
'privacyPolicy': 'https://www.paypal.com/in/webapps/mpp/ua/privacy-full'
}, {
'value': 'FastSpring',
'isChecked': false,
'privacyPolicy': 'https://fastspring.com/privacy/'
}, {
'value': 'Authorize.net',
'isChecked': false,
'privacyPolicy': 'https://www.authorize.net/about-us/privacy/'
}, {
'value': '2Checkout',
'isChecked': false,
'privacyPolicy': 'https://www.2checkout.com/policies/privacy-policy'
}
, {
'value': 'Sage Pay',
'isChecked': false,
'privacyPolicy': 'https://www.sagepay.co.uk/policies'
}
, {
'value': 'Square',
'isChecked': false,
'privacyPolicy': 'https://squareup.com/legal/privacy'
}, {
'value': 'Go Cardless',
'isChecked': false,
'privacyPolicy': 'https://gocardless.com/legal/privacy'
}, {
'value': 'Verifone',
'isChecked': false,
'privacyPolicy': 'https://www.verifone.com/en/us/legal'
}, {
'value': 'Elavon',
'isChecked': false,
'privacyPolicy': 'https://www.elavon.com/privacy-pledge.html'
}
],
'isAnalytics': 'false',
'listOfAnalytics': [],
'isAdvertisement': 'false',
'listOfAdvertisement': [],
'isCustomerInteraction': 'false',
'listOfCutomerInteraction': [],
'isSocial': 'false',
'listOfSocial': [],
}
informationCollected = {
'addMore': false,
'unsubscribeViaEmail': false,
'unsubscribeViaLink': false,
'isEmailQuestion': null,
'isEmailtousersSent': null,
'questions': [
{
'type': 'name',
'isChecked': false,
'value': 'First name and last name'
},
{
'type': 'phone',
'isChecked': false,
'value': 'Phone number'
},
{
'type': 'address',
'isChecked': false,
'value': 'Address, State, Province, ZIP/Postal code, City'
},
{
'type': 'location',
'isChecked': false,
'value': 'Location information'
}
]
};
collectedData = {
'addMore': false,
'questions': [
{
'type': 'email',
'isChecked': false,
'value': 'To operate and maintain our service'
},
{
'type': 'name',
'isChecked': false,
'value': 'To notify you about changes to our service'
},
{
'type': 'address',
'isChecked': false,
'value': 'To provide customer support'
},
{
'type': 'location1',
'isChecked': false,
'value': 'To gather analytical data to improve our service'
},
{
'type': 'location2',
'isChecked': false,
'value': 'To monitor the usage of our service'
},
{
'type': 'location3',
'isChecked': false,
'value': 'To detect, prevent and address technical issues'
},
{
'type': 'location4',
'isChecked': false,
'value': 'To provide you with news, special offers and general information about other goods or services we provide'
}
]
};
createform();
$.ajax({
url: window.sp_baseContext + '/api/adminsettings/display?Domain=' + $('#outdated_notice_domainId').val(),
type: "GET",
headers: {
"Authorization": window.getAuthToken()
},
contentType: 'application/json; charset=utf-8',
dataType: "json",
success: function (data) {
adminConsentSettings = data;
bannerDisplayOptions = JSON.parse(adminConsentSettings.DisplayOptions);
},
error: function (e, x, v) {
if (e.status === 401) {
window.location.href = '<?php echo admin_url('admin.php ? page = login'); ?>' + '&redirectTo=' + window.location.href + '&sessionExpired=true';
}
}
});
}
resetForms();
var countries = ["Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Anguilla", "Antigua & Barbuda", "Argentina", "Armenia", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia & Herzegovina", "Botswana", "Brazil", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Myanmar/Burma", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Colombia", "Comoros", "Congo", "Costa Rica", "Croatia", "Cuba", "Cyprus", "Czech Republic", "Democratic Republic of the Congo", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Fiji", "Finland", "France", "French Guiana", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Great Britain", "Greece", "Grenada", "Guadeloupe", "Guatemala", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Honduras", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Israel and the Occupied Territories", "Italy", "Ivory Coast (Cote d'Ivoire)", "Jamaica", "Japan", "Jordan", "Kazakhstan", "Kenya", "Kosovo", "Kuwait", "Kyrgyz Republic (Kyrgyzstan)", "Laos", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libya", "Liechtenstein", "Lithuania", "Luxembourg", "Republic of Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Moldova, Republic of", "Monaco", "Mongolia", "Montenegro", "Montserrat", "Morocco", "Mozambique", "Namibia", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Korea, Democratic Republic of (North Korea)", "Norway", "Oman", "Pacific Islands", "Pakistan", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Puerto Rico", "Qatar", "Reunion", "Romania", "Russian Federation", "Rwanda", "Saint Kitts and Nevis", "Saint Lucia", "Saint Vincent's & Grenadines", "Samoa", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore", "Slovak Republic (Slovakia)", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "Korea, Republic of (South Korea)", "South Sudan", "Spain", "Sri Lanka", "Sudan", "Suriname", "Swaziland", "Sweden", "Switzerland", "Syria", "Tajikistan", "Tanzania", "Thailand", "Timor Leste", "Togo", "Trinidad & Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks & Caicos Islands", "Uganda", "Ukraine", "United Arab Emirates", "United States of America (USA)", "Uruguay", "Uzbekistan", "Venezuela", "Vietnam", "Virgin Islands (UK)", "Virgin Islands (US)", "Yemen", "Zambia", "Zimbabwe"];
var germanStates = ["Baden-Württemberg", "Bavaria", "Berlin", "Brandenburg", "Bremen", "Hamburg", "Hesse", "Lower Saxony", "Mecklenburg-Vorpommern", "North Rhine-Westphalia", "Rhineland-Palatinate", "Saarland", "Saxony", "Saxony-Anhalt", "Schleswig-Holstein", "Thuringia"];
var usaStates = ["Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming"];
countries.forEach(element => {
$('#country').append(
$('<option></option>').val(element).html(element)
);
});
germanStates.forEach(element => {
$('#gState').append(
$('<option></option>').val(element).html(element)
);
});
usaStates.forEach(element => {
$('#usaState').append(
$('<option></option>').val(element).html(element)
);
});
$("#country").on("change", function () {
var isGermanState = false;
var isUsaStates = false;
if ('Germany' === $("#country").val()) {
isGermanState = true;
}
if ('United States of America (USA)' === $("#country").val()) {
isUsaStates = true;
}
if (isGermanState) {
$('#state_options').show();
$('#usaState').hide();
$('#gState').show();
}
if (isUsaStates) {
$('#state_options').show();
$('#usaState').show();
$('#gState').hide();
}
});
$("input[name='emailinformationCollected']").on("change", function () {
if ($("input[name='emailinformationCollected']:checked").val() === 'true') {
$('#how_can_user_unsubscribe').show();
} else {
$('#how_can_user_unsubscribe').hide();
}
});
$("#informationCollected_email").on("change", function () {
if ($("input[id='informationCollected_email']:checked").val() === 'on') {
$('#personal_info_collected_email').show();
} else {
$('#personal_info_collected_email').hide();
$('#how_can_user_unsubscribe').hide();
}
$("input[name='emailinformationCollected']").prop('checked', false);;
});
$("#informationCollected_addMore").on("change", function () {
if ($("input[id='informationCollected_addMore']:checked").val() === 'on') {
$('#personal_info_other').show();
} else {
$('#personal_info_other').hide();
}
});
$("#addInformationCollected").on("click", function () {
if ($("#otherValue").val().length > 0) {
informationCollected.questions.push({
'type': 'other',
'isChecked': true,
'value': $("#otherValue").val()
});
$('#div_informationCollected').append('<div><label><input text='+ $("#otherValue").val() +' name="informationCollected_' + $("#otherValue").val() + '" id="informationCollected_' + $("#otherValue").val() + '" type="checkbox"> ' + $("#otherValue").val() + ' </label></div>');
$("#otherValue").val('');
} else {
alert('Please enter a value');
}
});
$("#collectedData_addMore").on("change", function () {
if ($("input[id='collectedData_addMore']:checked").val() === 'on') {
$('#collectedData_other').show();
} else {
$('#collectedData_other').hide();
}
});
$("#addcollectedData").on("click", function () {
if ($("#collectedDataValue").val().length > 0) {
collectedData.questions.push({
'type': 'other',
'isChecked': true,
'value': $("#collectedDataValue").val()
});
$('#div_collected_data').append('<div><label><input text="'+$("#collectedDataValue").val()+'" name="collectedData_' + $("#collectedDataValue").val() + '" id="collectedData_' + $("#collectedDataValue").val() + '" type="checkbox"> ' + $("#collectedDataValue").val() + ' </label></div>');
$("#collectedDataValue").val('');
} else {
alert('Please enter a value');
}
});
$("input[name='rdoPaymentProcessors']").on("change", function () {
if ($("input[name='rdoPaymentProcessors']:checked").val() === 'true') {
$('#all_payment_proccesor').show();
} else {
$('#all_payment_proccesor').hide();
}
});
$("#addNewProcessor").on("change", function () {
if ($("input[id='addNewProcessor']:checked").val() === 'on') {
$('#other_new_processor').show();
} else {
$('#other_new_processor').hide();
}
});
$("#addPaymentProcessor").on("click", function () {
if ($("#newPaymentProcessor").val().length > 0) {
websiteQuestions.listOfProcessors.push({
'type': 'other',
'isChecked': true,
'value': $("#newPaymentProcessor").val()
});
$('#div_websiteQuestions_listOfProcessors').append('<div><label><input text="'+$("#newPaymentProcessor").val()+'" privacyPolicy="" name="listOfProcessors_' + $("#newPaymentProcessor").val() + '" id="listOfProcessors_' + $("#newPaymentProcessor").val() + '" type="checkbox"> ' + $("#newPaymentProcessor").val() + ' </label></div>');
$("#newPaymentProcessor").val('');
} else {
alert('Please enter a value');
}
});
$("input[name='isAnalytics']").on("change", function () {
if ($("input[name='isAnalytics']:checked").val() === 'true') {
$('#all_analytics').show();
} else {
$('#all_analytics').hide();
}
});
$("#addNewAnalytics").on("change", function () {
if ($("input[id='addNewAnalytics']:checked").val() === 'on') {
$('#other_analytics').show();
} else {
$('#other_analytics').hide();
}
});
$("#addNewAnatyticsTool").on("click", function () {
if ($("#newAnalytics").val().length > 0) {
websiteQuestions.listOfAnalytics.push({
'type': 'other',
'isChecked': true,
'value': $("#newAnalytics").val()
});
$('#div_websiteQuestions_listOfAnalytics').append('<div><label><input text="'+$("#newAnalytics").val()+'" name="listOfAnalytics_' + $("#newAnalytics").val() + '" id="listOfAnalytics_' + $("#newAnalytics").val() + '" type="checkbox"> ' + $("#newAnalytics").val() + ' </label></div>');
$("#newAnalytics").val('');
} else {
alert('Please enter a value');
}
});
$("input[name='isAdvertisement']").on("change", function () {
if ($("input[name='isAdvertisement']:checked").val() === 'true') {
$('#all_advertisement').show();
} else {
$('#all_advertisement').hide();
}
});
$("#addNewAdvertisement").on("change", function () {
if ($("input[id='addNewAdvertisement']:checked").val() === 'on') {
$('#other_advertisement').show();
} else {
$('#other_advertisement').hide();
}
});
$("#addNewAdvertisementTool").on("click", function () {
if ($("#newAdvertisement").val().length > 0) {
websiteQuestions.listOfAdvertisement.push({
'type': 'other',
'isChecked': true,
'value': $("#newAdvertisement").val()
});
$('#div_websiteQuestions_listOfAdvertisement').append('<div><label><input text="'+$("#newAdvertisement").val()+'" name="listOfAdvertisement_' + $("#newAdvertisement").val() + '" id="listOfAdvertisement_' + $("#newAdvertisement").val() + '" type="checkbox"> ' + $("#newAdvertisement").val() + ' </label></div>');
$("#newAdvertisement").val('');
} else {
alert('Please enter a value');
}
});
$("input[name='isCustomerInteraction']").on("change", function () {
if ($("input[name='isCustomerInteraction']:checked").val() === 'true') {
$('#all_customer_interaction').show();
} else {
$('#all_customer_interaction').hide();
}
});
$("#addNewCustomerInteraction").on("change", function () {
if ($("input[id='addNewCustomerInteraction']:checked").val() === 'on') {
$('#other_customer_interaction').show();
} else {
$('#other_customer_interaction').hide();
}
});
$("#addNewCustomerInteractionTool").on("click", function () {
if ($("#newCustomerInteraction").val().length > 0) {
websiteQuestions.listOfCutomerInteraction.push({
'type': 'other',
'isChecked': true,
'value': $("#newCustomerInteraction").val()
});
$('#div_websiteQuestions_listOfCutomerInteraction').append('<div><label><input text="'+$("#newCustomerInteraction").val()+'" name="listOfCutomerInteraction_' + $("#newCustomerInteraction").val() + '" id="listOfCutomerInteraction_' + $("#newCustomerInteraction").val() + '" type="checkbox"> ' + $("#newCustomerInteraction").val() + ' </label></div>');
$("#newCustomerInteraction").val('');
} else {
alert('Please enter a value');
}
});
$("input[name='isSocial']").on("change", function () {
if ($("input[name='isSocial']:checked").val() === 'true') {
$('#all_social').show();
} else {
$('#all_social').hide();
}
});
$("#addNewSocial").on("change", function () {
if ($("input[id='addNewSocial']:checked").val() === 'on') {
$('#other_social').show();
} else {
$('#other_social').hide();
}
});
$("#addNewSocialTool").on("click", function () {
if ($("#newSocial").val().length > 0) {
websiteQuestions.listOfSocial.push({
'type': 'other',
'isChecked': true,
'value': $("#newSocial").val()
});
$('#div_websiteQuestions_listOfSocial').append('<div><label><input text="'+$("#newSocial").val()+'" name="listOfSocial_' + $("#newSocial").val() + '" id="listOfSocial_' + $("#newSocial").val() + '" type="checkbox"> ' + $("#newSocial").val() + ' </label></div>');
$("#newSocial").val('');
} else {
alert('Please enter a value');
}
});
$("input[name='isKeepBackup']").on("change", function () {
if ($("input[name='isKeepBackup']:checked").val() === 'true') {
$('#all_backup').show();
} else {
$('#all_backup').hide();
}
});
$("input[name='addNewSecurityMeasures']").on("change", function () {
if ($("input[name='addNewSecurityMeasures']:checked").val() === 'on') {
$('#other_security_measures').show();
} else {
$('#other_security_measures').hide();
}
});
$("#addSecurityMeasuresTool").on("click", function () {
if ($("#newSecurityMeasures").val().length > 0) {
websiteQuestions.listOfSecurityMeasures.push({
'type': 'other',
'isChecked': true,
'value': $("#newSecurityMeasures").val()
});
$('#div_websiteQuestions_listOfSecurityMeasures').append('<div><label><input name="listOfSecurityMeasures_' + $("#newSecurityMeasures").val() + '" id="listOfSecurityMeasures_' + $("#newSecurityMeasures").val() + '" type="checkbox"> ' + $("#newSecurityMeasures").val() + ' </label></div>');
$("#newSecurityMeasures").val('');
} else {
alert('Please enter a value');
}
});
$("#li_tab_1").on("click", function () {
$('.tab-pane').removeClass('active');
$('#tab1').addClass('active');
});
$("#li_tab_2").on("click", function () {
if (window.sp_supportedFeatures.privacyPolicy === true) {
$('.tab-pane').removeClass('active');
$('#tab2').addClass('active');
}
});
$("#edit_privacy_policy").on("click", function () {
$('#li_tab_2').click();
$('#myModal').fadeOut();
});
$("#create_new_policy").on("click", function () {
$('#myModal').fadeOut();
});
$("#li_tab_3").on("click", function () {
if (window.sp_supportedFeatures.privacyPolicy === true) {
$('.tab-pane').removeClass('active');
$('#tab3').addClass('active');
}
});
$("input[name='iscontactEmail']").on("change", function () {
if ($("input[name='iscontactEmail']:checked").val() === 'on') {
$('#tbxcontactEmail').show();
} else {
$('#tbxcontactEmail').hide();
}
});
$("input[name='iscontactPage']").on("change", function () {
if ($("input[name='iscontactPage']:checked").val() === 'on') {
$('#tbxcontactPage').show();
} else {
$('#tbxcontactPage').hide();
}
});
$("input[name='iscontactPhone']").on("change", function () {
if ($("input[name='iscontactPhone']:checked").val() === 'on') {
$('#tbxcontactPhone').show();
} else {
$('#tbxcontactPhone').hide();
}
});
$("input[name='hasdpo']").on("change", function () {
if ($("input[name='hasdpo']:checked").val() === 'true') {
$('#dpoName').show();
$('#dpoEmail').show();
} else {
$('#dpoName').hide();
$('#dpoEmail').hide();
}
});
$("input[name='iscontactAddress']").on("change", function () {
if ($("input[name='iscontactAddress']:checked").val() === 'on') {
$('#tbxcontactAddress').show();
} else {
$('#tbxcontactAddress').hide();
}
});
$("input[name='entityType']").on("change", function () {
if ($("input[name='entityType']:checked").val() === 'businness') {
$('#business_name').show();
} else {
$('#business_name').hide();
}
});
function submitPrivacyPolicy() {
var privacyPolicyTemplate = '';
privacyPolicyTemplate += '<div>';
privacyPolicyTemplate += ' <div class="content-box" id="allPrivacyPolicyHTML">';
privacyPolicyTemplate += ' <table style="width: 100%;">';
privacyPolicyTemplate += ' <tr>';
privacyPolicyTemplate += ' <td class="left-navigation" style="width: 25%;vertical-align: top;">';
privacyPolicyTemplate += ' <div class="left-navigation-scroll">';
privacyPolicyTemplate += ' <ul>';
privacyPolicyTemplate += ' <li>';
privacyPolicyTemplate += ' <a targetnav="#section1" id="anchorsection1" class="horizontalLinks">What personal information we collect</a>';
privacyPolicyTemplate += ' </li>';
privacyPolicyTemplate += ' <li>';
privacyPolicyTemplate += ' <a targetnav="#section2" id="anchorsection2" class="horizontalLinks">Why we collect your personal Information</a>';
privacyPolicyTemplate += ' </li>';
privacyPolicyTemplate += ' <li>';
privacyPolicyTemplate += ' <a targetnav="#section3" id="anchorsection3" class="horizontalLinks">How we collect your personal data</a>';
privacyPolicyTemplate += ' </li>';
privacyPolicyTemplate += ' <li>';
privacyPolicyTemplate += ' <a targetnav="#section4" id="anchorsection4" class="horizontalLinks">Service Providers we use to collect data</a>';
privacyPolicyTemplate += ' </li>';
privacyPolicyTemplate += ' <li>';
privacyPolicyTemplate += ' <a targetnav="#section5" id="anchorsection5" class="horizontalLinks">Location and transfer of your personal information</a>';
privacyPolicyTemplate += ' </li>';
privacyPolicyTemplate += ' <li>';
privacyPolicyTemplate += ' <a targetnav="#section6" id="anchorsection6" class="horizontalLinks">Storage and deletion of your personal information</a>';
privacyPolicyTemplate += ' </li>';
privacyPolicyTemplate += ' <li>';
privacyPolicyTemplate += ' <a targetnav="#section7" id="anchorsection7" class="horizontalLinks">Your rights as the owner of personal information</a>';
privacyPolicyTemplate += ' </li>';
privacyPolicyTemplate += ' <li>';
privacyPolicyTemplate += ' <a targetnav="#section8" id="anchorsection8" class="horizontalLinks">Links to Third-Party Websites</a>';
privacyPolicyTemplate += ' </li>';
privacyPolicyTemplate += ' <li>';
privacyPolicyTemplate += ' <a targetnav="#section9" id="anchorsection9" class="horizontalLinks">Protecting your Child’s Privacy</a>';
privacyPolicyTemplate += ' </li>';
privacyPolicyTemplate += ' <li>';
privacyPolicyTemplate += ' <a targetnav="#section10" id="anchorsection10" class="horizontalLinks">Your Data Protection Rights Under GDPR</a>';
privacyPolicyTemplate += ' </li>';
privacyPolicyTemplate += ' <li>';
privacyPolicyTemplate += ' <a targetnav="#section11" id="anchorsection11" class="horizontalLinks">Changes to this Privacy Policy</a>';
privacyPolicyTemplate += ' </li>';
privacyPolicyTemplate += ' <li>';
privacyPolicyTemplate += ' <a targetnav="#section12" id="anchorsection12" class="horizontalLinks">Data Protection Officer</a>';
privacyPolicyTemplate += ' </li>';
privacyPolicyTemplate += ' </ul>';
privacyPolicyTemplate += ' </div>';
privacyPolicyTemplate += ' </td>';
privacyPolicyTemplate += ' <td class="right-content" style="width: 75%;vertical-align: top;border-left: solid 1px #ddd;">';
privacyPolicyTemplate += ' <div class="privacy-policy-ui">';
privacyPolicyTemplate += ' <div id="section0">';
privacyPolicyTemplate += ' <h1>Privacy Policy for ' + window.sp_domainPath + '</h1>';
privacyPolicyTemplate += ' <p>';
if ($("input[name='entityType']:checked").val() === 'businness') {
privacyPolicyTemplate += '<span>' + $('#websiteName').val() + ' is </span>';
} else {
privacyPolicyTemplate += '<span>We are</span>';
}
privacyPolicyTemplate += ' committed to protecting and respecting your privacy. This policy explains how we use any personal information that you provide';
privacyPolicyTemplate += ' to us through our';
privacyPolicyTemplate += ' <span> website' + window.sp_domainPath + '.</span>';
privacyPolicyTemplate += ' We last updated our Privacy Policy on ' + new Date().toLocaleString() + '.';
privacyPolicyTemplate += ' </p>';
privacyPolicyTemplate += ' </div>';
privacyPolicyTemplate += ' <div id="section1">';
privacyPolicyTemplate += ' <h3>What personal information we collect </h3>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' We collect the following personal information that you choose to provide us on our website:';
privacyPolicyTemplate += ' </p>';
privacyPolicyTemplate += ' <ul>';
$("#div_informationCollected input[type='checkbox']:checked").each(function () {
privacyPolicyTemplate += '<li>' + $(this).attr('text') + '</li>';
});
if ($("input[name='rdoPaymentProcessors']:checked").val() === 'true') {
privacyPolicyTemplate += ' <li>Payment Information</li>';
}
privacyPolicyTemplate += ' </ul>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' We may also collect personal information that you give us during your communication with us regarding our services, such';
privacyPolicyTemplate += ' as technical support threads. In addition to the above, we may need to use your personal information';
privacyPolicyTemplate += ' for audits and compliance with our legal obligations under applicable law.';
privacyPolicyTemplate += ' </p>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' We will never use your personal information for any other purposes.';
privacyPolicyTemplate += ' </p>';
privacyPolicyTemplate += ' </div>';
privacyPolicyTemplate += ' <div id="section2">';
privacyPolicyTemplate += ' <h3>';
privacyPolicyTemplate += ' Why we collect your personal Information';
privacyPolicyTemplate += ' </h3>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' We use your data for a number of purposes:';
privacyPolicyTemplate += ' </p>';
privacyPolicyTemplate += ' <ul>';
$("#div_collected_data input[type='checkbox']:checked").each(function () {
privacyPolicyTemplate += '<li>' + $(this).attr('text') + '</li>';
});
privacyPolicyTemplate += ' </ul>';
privacyPolicyTemplate += ' </div>';
privacyPolicyTemplate += ' <div id="section3">';
privacyPolicyTemplate += ' <h3>';
privacyPolicyTemplate += ' How we collect your personal data';
privacyPolicyTemplate += ' </h3>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' We use third party tools to facilitate, operate and manage our website. These tools uses cookies and other tracking technologies.';
privacyPolicyTemplate += ' Such tools are created and managed by parties outside our control. As such, we are not responsible';
privacyPolicyTemplate += ' for what information is actually captured by such third parties or how such third parties use and';
privacyPolicyTemplate += ' protect that information.';
privacyPolicyTemplate += ' </p>';
if (bannerDisplayOptions.showBannerCountries === 'all') {
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' The third party tools we use on our website will only insert cookies and other tracking technologies if consented by you.';
privacyPolicyTemplate += ' We track your consent once you click ‘Accept’ on our privacy banner. You can manage your permissions';
privacyPolicyTemplate += ' by clicking our Trust Badge below:';
privacyPolicyTemplate += ' </p>';
}
if (bannerDisplayOptions.showBannerCountries === 'eu') {
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' For EU visitors, the third party tools used on our website will only insert cookies and other tracking technologies if consented';
privacyPolicyTemplate += ' by you. We track your consent once you click ‘Accept’ on our privacy banner. You can manage your';
privacyPolicyTemplate += ' permissions by clicking our Trust Badge below:';
privacyPolicyTemplate += ' </p>';
}
if (bannerDisplayOptions.showBannerCountries === 'none') {
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' You can at manage your permissions by clicking our Trust Badge below:';
privacyPolicyTemplate += ' </p>';
}
privacyPolicyTemplate += ' <div class="text-center">';
privacyPolicyTemplate += ' [[sp_trust_badge]]';
privacyPolicyTemplate += ' </div>';
privacyPolicyTemplate += ' </div>';
if ($("input[name='isAnalytics']:checked").val() === 'true' || $("input[name='isAdvertisement']:checked").val() === 'true' || $("input[name='isCustomerInteraction']:checked").val() === 'true' || $("input[name='isCustomerInteraction']:checked").val() === 'true' || $("input[name='isSocial']:checked").val() === 'true' || $("input[name='rdoPaymentProcessors']:checked").val() === 'true') {
privacyPolicyTemplate += ' <div id="section4">';
privacyPolicyTemplate += ' <h3>';
privacyPolicyTemplate += ' Service Providers we use to collect data';
privacyPolicyTemplate += ' </h3>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' We employ third party companies and individuals ("Service Providers") to facilitate and make our website accessible to our';
privacyPolicyTemplate += ' visitors. These service providers have access to your personal information only to perform these';
privacyPolicyTemplate += ' tasks on our behalf and are obligated not to disclose or use it for any other purpose.';
privacyPolicyTemplate += ' </p>';
if ($("input[name='isAnalytics']:checked").val() === 'true') {
privacyPolicyTemplate += ' <div>';
privacyPolicyTemplate += ' <h4>4.1. Analytics</h4>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' We use a 3rd party analytical softwares to gather statistical information about our website visitors. The plugins we use';
privacyPolicyTemplate += ' include:';
privacyPolicyTemplate += ' </p>';
privacyPolicyTemplate += ' <ul>';
$("#div_websiteQuestions_listOfAnalytics input[type='checkbox']:checked").each(function () {
privacyPolicyTemplate += '<li>' + $(this).attr('text') + '</li>';
});
privacyPolicyTemplate += ' </ul>';
privacyPolicyTemplate += ' </div>';
}
if ($("input[name='isAdvertisement']:checked").val() === 'true') {
privacyPolicyTemplate += ' <div>';
privacyPolicyTemplate += ' <h4>4.2. Advertisement</h4>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' We use plugins to measure and personalize content. These plugins may share content you provide to 3rd party. The plugins';
privacyPolicyTemplate += ' we use include:';
privacyPolicyTemplate += ' </p>';
privacyPolicyTemplate += ' <ul>';
$("#div_websiteQuestions_listOfAdvertisement input[type='checkbox']:checked").each(function () {
privacyPolicyTemplate += '<li>' + $(this).attr('text') + '</li>';
});
privacyPolicyTemplate += ' </ul>';
privacyPolicyTemplate += ' </div>';
}
if ($("input[name='isCustomerInteraction']:checked").val() === 'true') {
privacyPolicyTemplate += ' <div>';
privacyPolicyTemplate += ' <h4>4.3. Customer interaction</h4>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' We communicate and interact with our customers. We may temporarily store your email to get back to your regarding your inquiries.';
privacyPolicyTemplate += ' No data is shared with 3rd party. The plugins we use include:';
privacyPolicyTemplate += ' </p>';
privacyPolicyTemplate += ' <ul>';
$("#div_websiteQuestions_listOfCutomerInteraction input[type='checkbox']:checked").each(function () {
privacyPolicyTemplate += '<li>' + $(this).attr('text') + '</li>';
});
privacyPolicyTemplate += ' </ul>';
privacyPolicyTemplate += ' </div>';
}
if ($("input[name='isSocial']:checked").val() === 'true') {
privacyPolicyTemplate += ' <div>';
privacyPolicyTemplate += ' <h4>4.4. Social media</h4>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' We use social media tools on our website to enable sharing from our website. These plugins may share content you provide';
privacyPolicyTemplate += ' to 3rd party. The plugins we use include:';
privacyPolicyTemplate += ' </p>';
privacyPolicyTemplate += ' <ul>';
$("#div_websiteQuestions_listOfSocial input[type='checkbox']:checked").each(function () {
privacyPolicyTemplate += '<li>' + $(this).attr('text') + '</li>';
});
privacyPolicyTemplate += ' </ul>';
privacyPolicyTemplate += ' </div>';
}
if ($("input[name='rdoPaymentProcessors']:checked").val() === 'true') {
privacyPolicyTemplate += ' <div>';
privacyPolicyTemplate += ' <h4>';
privacyPolicyTemplate += ' 4.5. Payments';
privacyPolicyTemplate += ' </h4>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' We provide paid products and/or services on our Websiteincluding third-party services for payment processing (e.g. payment';
privacyPolicyTemplate += ' processors). We will not store or collect your payment card details. That information is provided';
privacyPolicyTemplate += ' directly to our third-party payment processors whose use of your personal information is governed';
privacyPolicyTemplate += ' by their Privacy Policy. These payment processors adhere to the standards set by PCI-DSS as managed';
privacyPolicyTemplate += ' by the PCI Security Standards Council, which is a joint effort of brands like Visa, Mastercard,';
privacyPolicyTemplate += ' American Express and Discover. PCI-DSS requirements help ensure the secure handling of payment';
privacyPolicyTemplate += ' information. The payment processors we work with are:';
privacyPolicyTemplate += ' </p>';
privacyPolicyTemplate += ' <ul>';
$("#div_websiteQuestions_listOfProcessors input[type='checkbox']:checked").each(function () {
privacyPolicyTemplate += '<li>' + $(this).attr('text') + ', their Privacy Policy can be viewed <a target="_blank" href="' + $(this).attr('privacyPolicy') + '">here.</a></li>';
});
privacyPolicyTemplate += ' </ul>';
privacyPolicyTemplate += ' </div>';
privacyPolicyTemplate += ' </div>';
}
}
privacyPolicyTemplate += ' <div id="section5" *ngIf="adminConsentSettings">';
privacyPolicyTemplate += ' <h3>';
privacyPolicyTemplate += ' Location and transfer of your personal information';
privacyPolicyTemplate += ' </h3>';
if (($("input[name='isAnalytics']:checked").val() === 'true' || $("input[name='isAdvertisement']:checked").val() === 'true' || $("input[name='isCustomerInteraction']:checked").val() === 'true' || $("input[name='isCustomerInteraction']:checked").val() === 'true' || $("input[name='isSocial']:checked").val() === 'true' || $("input[name='rdoPaymentProcessors']:checked").val() === 'true') && bannerDisplayOptions.showBannerCountries !== 'eu') {
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' We use third party service providers including';
$("#div_websiteQuestions_listOfAnalytics input[type='checkbox']:checked").each(function () {
privacyPolicyTemplate += ' <span>' + $(this).attr('text') + '</span> ';
});
privacyPolicyTemplate += ' All such service providers are contractually bound to keep your personal information secure and confidential and to use it';
privacyPolicyTemplate += ' only for the above purposes, consistent with this Privacy Policy. You understand and accept that';
privacyPolicyTemplate += ' data protection legislation applicable to such service providers may not be as protective as that';
privacyPolicyTemplate += ' in your country of residence. By accepting this Privacy Policy, you consent to such use of your';
privacyPolicyTemplate += ' personal information by these third party service providers. We will take all steps reasonably';
privacyPolicyTemplate += ' necessary to ensure that your data is treated securely and in accordance with this Privacy Policy';
privacyPolicyTemplate += ' and no transfer of your Personal Data will take place to an organization or a country unless there';
privacyPolicyTemplate += ' are adequate controls in place including the security of your data and other personal information.';
privacyPolicyTemplate += ' </p>';
}
if (($("input[name='isAnalytics']:checked").val() === 'true' || $("input[name='isAdvertisement']:checked").val() === 'true' || $("input[name='isCustomerInteraction']:checked").val() === 'true' || $("input[name='isCustomerInteraction']:checked").val() === 'true' || $("input[name='isSocial']:checked").val() === 'true' || $("input[name='rdoPaymentProcessors']:checked").val() === 'true') && bannerDisplayOptions.showBannerCountries === 'eu') {
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' We use third party services provides including';
$("#div_websiteQuestions_listOfAnalytics input[type='checkbox']:checked").each(function () {
privacyPolicyTemplate += ' <span>' + $(this).attr('text') + '</span> ';
});
privacyPolicyTemplate += ' Some of the third party service providers are located or use servers outside the EU. All';
privacyPolicyTemplate += ' such service providers are contractually bound to keep your personal information secure and confidential';
privacyPolicyTemplate += ' and to use it only for the above purposes, consistent with this Privacy Policy. You understand';
privacyPolicyTemplate += ' and accept that data protection legislation applicable to such non-EU service providers may not';
privacyPolicyTemplate += ' be as protective as that in your country of residence. By accepting this Privacy Policy, you consent';
privacyPolicyTemplate += ' to such use of your personal information by these third party service providers. We will take all';
privacyPolicyTemplate += ' steps reasonably necessary to ensure that your data is treated securely and in accordance with';
privacyPolicyTemplate += ' this Privacy Policy and no transfer of your Personal Data will take place to an organization or';
privacyPolicyTemplate += ' a country unless there are adequate controls in place including the security of your data and other';
privacyPolicyTemplate += ' personal information.';
privacyPolicyTemplate += ' </p>';
}
if ($("input[name='isAnalytics']:checked").val() === 'false' && $("input[name='isAdvertisement']:checked").val() === 'false' && $("input[name='isCustomerInteraction']:checked").val() === 'false' && $("input[name='isCustomerInteraction']:checked").val() === 'false' && $("input[name='isSocial']:checked").val() === 'false' && $("input[name='rdoPaymentProcessors']:checked").val() === 'false') {
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' Your information, including personal data, may be transferred to — and maintained on — computers located outside of your';
privacyPolicyTemplate += ' state, province, country or other governmental jurisdiction where the data protection laws may';
privacyPolicyTemplate += ' differ than those from your jurisdiction. We will take all steps reasonably necessary to ensure';
privacyPolicyTemplate += ' that your data is treated securely and in accordance with this Privacy Policy and no transfer of';
privacyPolicyTemplate += ' your Personal Data will take place to an organization or a country unless there are adequate controls';
privacyPolicyTemplate += ' in place including the security of your data and other personal information. In addition to the';
privacyPolicyTemplate += ' above, we may have need to use your your personal information with a third party to allow a merger,';
privacyPolicyTemplate += ' acquisition, or sale of all or a portion of our assets, provided that the use of your personal';
privacyPolicyTemplate += ' information by that third party remains consistent with this Privacy Policy. Finally, we may pass';
privacyPolicyTemplate += ' your personal information to government authorities as required by applicable law.';
privacyPolicyTemplate += ' </p>';
}
privacyPolicyTemplate += ' </div>';
privacyPolicyTemplate += ' <div id="section6">';
privacyPolicyTemplate += ' <h3>';
privacyPolicyTemplate += ' Storage and deletion of your personal information';
privacyPolicyTemplate += ' </h3>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' We will retain usage data for internal analysis purposes. Usage data is generally retained for a shorter period of time,';
privacyPolicyTemplate += ' except when this data is used to strengthen the security or to improve the functionality of our';
privacyPolicyTemplate += ' service, or we are legally obligated to retain this data for longer time periods. We will store';
privacyPolicyTemplate += ' your personal information for the period of providing our services to you. After that, we will';
privacyPolicyTemplate += ' erase all your personal information that we have, except when we need to keep such information';
privacyPolicyTemplate += ' for a longer period to comply with applicable law or resolve disputes.';
privacyPolicyTemplate += ' </p>';
if (websiteQuestions.countAnalytics > 0) {
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' We will retain usage data for internal analysis purposes. Usage data is generally retained for a shorter period of time,';
privacyPolicyTemplate += ' except when this data is used to strengthen the security or to improve the functionality of our';
privacyPolicyTemplate += ' service, or we are legally obligated to retain this data for longer time periods.';
privacyPolicyTemplate += ' </p>';
}
if ($("input[name='isKeepBackup']:checked").val() === 'true') {
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' Following the deletion of your personal information from our database, the related backup data will be deleted, generally';
privacyPolicyTemplate += ' within ' + $('#backupDays').val() + ' days.';
privacyPolicyTemplate += ' </p>';
}
privacyPolicyTemplate += ' </div>';
privacyPolicyTemplate += ' <div id="section7">';
privacyPolicyTemplate += ' <h3>';
privacyPolicyTemplate += ' Security of your personal information';
privacyPolicyTemplate += ' </h3>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' We take appropriate technical measures for keeping your personal information confidential and protected against accidental';
privacyPolicyTemplate += ' or unlawful destruction or loss, alteration, unauthorised disclosure or access. We use technical';
privacyPolicyTemplate += ' safeguards measures including ';
$("#div_websiteQuestions_listOfSecurityMeasures input[type='checkbox']:checked").each(function () {
privacyPolicyTemplate += '<span style="text-transform: lowercase;">' +$(this).attr('text') + '</span>, ';
});
privacyPolicyTemplate += ' </p>';
if ($("input[id='isHavingEmployees']:checked").val() === 'on' && $("input[id='isHavingSubContractors']:checked").val() !== 'on') {
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' Finally, our employees are contractually bound to keep your personal information secure and confidential, consistent with';
privacyPolicyTemplate += ' this Privacy Policy, and are kept up-to-date on our security and privacy practices.';
privacyPolicyTemplate += ' </p>';
}
if ($("input[id='isHavingEmployees']:checked").val() === 'on' && $("input[id='isHavingSubContractors']:checked").val() === 'on') {
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' Finally, our sub-contractors and employees are contractually bound to keep your personal information secure and confidential,';
privacyPolicyTemplate += ' consistent with this Privacy Policy, and are kept up-to-date on our security and privacy practices.';
privacyPolicyTemplate += ' </p>';
}
if ($("input[id='isHavingEmployees']:checked").val() !== 'on' && $("input[id='isHavingSubContractors']:checked").val() === 'on') {
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' Finally, our sub-contractors are contractually bound to keep your personal information secure and confidential, consistent';
privacyPolicyTemplate += ' with this Privacy Policy, and are kept up-to-date on our security and privacy practices.';
privacyPolicyTemplate += ' </p>';
}
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' The security of your personal information also depends on your protection of your user account. Please use a unique and strong';
privacyPolicyTemplate += ' password, and keep your login credentials secret. Also, be sure to log out after having used our';
privacyPolicyTemplate += ' services from a shared computer.';
privacyPolicyTemplate += ' </p>';
privacyPolicyTemplate += ' </div>';
privacyPolicyTemplate += ' <div id="section8">';
privacyPolicyTemplate += ' <h3>';
privacyPolicyTemplate += ' Your rights as the owner of personal information';
privacyPolicyTemplate += ' </h3>';
if ($("input[id='isHavingEmployees']:checked").val() === 'on' && $("input[name='hasdpo']:checked").val() === 'false') {
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' You can access, update and delete your personal information through your user account page. Any questions and requests regarding';
privacyPolicyTemplate += ' this Privacy Policy or the information we have about you should be directed to';
privacyPolicyTemplate += ' <br/>';
privacyPolicyTemplate += ' <br/>';
if ($('#tbxcontactEmail').val().length > 0) {
privacyPolicyTemplate += ' <span>' + $('#tbxcontactEmail').val();
privacyPolicyTemplate += ' <br/>';
privacyPolicyTemplate += ' </span>';
}
if ($('#tbxcontactPhone').val().length > 0) {
privacyPolicyTemplate += ' <span>' + $('#tbxcontactEmail').val();
privacyPolicyTemplate += ' <br/>';
privacyPolicyTemplate += ' </span>';
}
if ($('#tbxcontactAddress').val().length > 0) {
privacyPolicyTemplate += ' <span>' + $('#tbxcontactAddress').val();
privacyPolicyTemplate += ' <br/>';
privacyPolicyTemplate += ' </span>';
}
if ($('#tbxcontactPage').val().length > 0) {
privacyPolicyTemplate += ' <span> <a href="' + $('#tbxcontactPage').val() + '" target="_blank" > ' + $('#tbxcontactPage').val() + '</a>';
privacyPolicyTemplate += ' <br/>';
privacyPolicyTemplate += ' </span>';
}
privacyPolicyTemplate += ' </p>';
}
if ($("input[id='isHavingEmployees']:checked").val() === 'on' && $("input[name='hasdpo']:checked").val() === 'true') {
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' You can access, update and delete your personal information through your user account page. Any questions and requests regarding';
privacyPolicyTemplate += ' this Privacy Policy or the information we have about you should be directed to our DPO at {{websiteQuestions.dpoEmail}}';
privacyPolicyTemplate += ' for privacy-related matters. For other matters, please contact us at';
privacyPolicyTemplate += ' <br/>';
privacyPolicyTemplate += ' <br/>';
if ($('#tbxcontactEmail').val().length > 0) {
privacyPolicyTemplate += ' <span>' + $('#tbxcontactEmail').val();
privacyPolicyTemplate += ' <br/>';
privacyPolicyTemplate += ' </span>';
}
if ($('#tbxcontactPhone').val().length > 0) {
privacyPolicyTemplate += ' <span>' + $('#tbxcontactEmail').val();;
privacyPolicyTemplate += ' <br/>';
privacyPolicyTemplate += ' </span>';
}
if ($('#tbxcontactAddress').val().length > 0) {
privacyPolicyTemplate += ' <span>' + $('#tbxcontactAddress').val();;
privacyPolicyTemplate += ' <br/>';
privacyPolicyTemplate += ' </span>';
}
if ($('#tbxcontactPage').val().length > 0) {
privacyPolicyTemplate += ' <span> <a href="' + $('#tbxcontactPage').val() + '" target="_blank" > ' + $('#tbxcontactPage').val() + '</a>';
privacyPolicyTemplate += ' <br/>';
privacyPolicyTemplate += ' </span>';
}
privacyPolicyTemplate += ' </p>';
}
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' We will stop using your personal information without undue delay, unless such use is necessary to comply with our legal obligations';
privacyPolicyTemplate += ' under applicable law. You understand and accept that such a decision may significantly limit your';
privacyPolicyTemplate += ' use of certain features or functions of our services. If you would like personal information that';
privacyPolicyTemplate += ' you provided to us to be transferred to another service provider of your choice, you may obtain';
privacyPolicyTemplate += ' a copy of such information from us in a structured, commonly used, machine-readable format that';
privacyPolicyTemplate += ' supports re-use. If you would like us to transfer such information to the service provider directly,';
privacyPolicyTemplate += ' we will do so if this is technically feasible. To exercise this right to data portability, contact';
privacyPolicyTemplate += ' us as described above.';
privacyPolicyTemplate += ' </p>';
privacyPolicyTemplate += ' </div>';
privacyPolicyTemplate += ' <div id="section9">';
privacyPolicyTemplate += ' <h3>';
privacyPolicyTemplate += ' Links to Third-Party Websites';
privacyPolicyTemplate += ' </h3>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' Our service may contain links to other sites that are not operated by us. If you click on a third party link, you will be';
privacyPolicyTemplate += ' directed to that third party\'s site. We strongly advise you to review the Privacy Policy of every';
privacyPolicyTemplate += ' site you visit. We have no control over and assume no responsibility for the content, privacy policies';
privacyPolicyTemplate += ' or practices of any third party sites or services.';
privacyPolicyTemplate += ' </p>';
privacyPolicyTemplate += ' </div>';
privacyPolicyTemplate += ' <div id="section10">';
privacyPolicyTemplate += ' <h3>';
privacyPolicyTemplate += ' Protecting your Child’s Privacy';
privacyPolicyTemplate += ' </h3>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' Our Service does not address anyone under the age of 18 ("Children"). We do not knowingly collect personally identifiable';
privacyPolicyTemplate += ' information from anyone under the age of 18. If you are a parent or guardian and you are aware';
privacyPolicyTemplate += ' that your children has provided us with Personal Data, please contact us. If we become aware that';
privacyPolicyTemplate += ' we have collected personal data from children without verification of parental consent, we take';
privacyPolicyTemplate += ' steps to remove that information from our servers.';
privacyPolicyTemplate += ' </p>';
privacyPolicyTemplate += ' </div>';
if ($("input[id='isGDPRCompliant']:checked").val() === 'on') {
privacyPolicyTemplate += ' <div id="section11">';
privacyPolicyTemplate += ' <h3>';
privacyPolicyTemplate += ' Information Regarding Your Data Protection Rights Under General Data Protection Regulation (GDPR)';
privacyPolicyTemplate += ' </h3>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' For the purpose of this Privacy Policy, we are a Data Controller of your personal information. If you are from the European';
privacyPolicyTemplate += ' Economic Area (EEA), our legal basis for collecting and using your personal information, as described';
privacyPolicyTemplate += ' in this Privacy Policy, depends on the information we collect and the specific context in which';
privacyPolicyTemplate += ' we collect it. We may process your personal information because:';
privacyPolicyTemplate += ' </p>';
privacyPolicyTemplate += ' <ul>';
privacyPolicyTemplate += ' <li>We need to perform a contract with you, such as when you create a Policy with us </li>';
privacyPolicyTemplate += ' <li>You have given us permission to do so </li>';
privacyPolicyTemplate += ' <li>The processing is in our legitimate interests and it\'s not overridden by your rights </li>';
privacyPolicyTemplate += ' <li *ngIf="websiteQuestions.countPaymentProviders">For payment processing purposes </li>';
privacyPolicyTemplate += ' <li>To comply with the law </li>';
privacyPolicyTemplate += ' </ul>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' If you are a resident of the European Economic Area (EEA), you have certain data protection rights. In certain circumstances,';
privacyPolicyTemplate += ' you have the following data protection rights:';
privacyPolicyTemplate += ' </p>';
privacyPolicyTemplate += ' <ul>';
privacyPolicyTemplate += ' <li>The right to access, update or to delete the personal information we have on you</li>';
privacyPolicyTemplate += ' <li>The right of rectification</li>';
privacyPolicyTemplate += ' <li>The right to object </li>';
privacyPolicyTemplate += ' <li>The right of restriction </li>';
privacyPolicyTemplate += ' <li>The right to data portability </li>';
privacyPolicyTemplate += ' <li>The right to withdraw consent </li>';
privacyPolicyTemplate += ' </ul>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' Please note that we may ask you to verify your identity before responding to such requests.';
privacyPolicyTemplate += ' </p>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' You have the right to complain to a Data Protection Authority about our collection and use of your personal information.';
privacyPolicyTemplate += ' For more information, please contact your local data protection authority in the European Economic';
privacyPolicyTemplate += ' Area (EEA).';
privacyPolicyTemplate += ' </p>';
privacyPolicyTemplate += ' </div>';
}
privacyPolicyTemplate += ' <div id="section12">';
privacyPolicyTemplate += ' <h3>';
privacyPolicyTemplate += ' Changes to this Privacy Policy';
privacyPolicyTemplate += ' </h3>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' From time to time we may update this Privacy Policy. If we do, we will update the “last updated”sections at the top of the';
privacyPolicyTemplate += ' Privacy Policy. If we make material changes to this policy, we may notify you on our website, by';
privacyPolicyTemplate += ' a blog post, by email, or by any method we determine. Your continued use of this website or our';
privacyPolicyTemplate += ' service and/or continued provision of information to us will be subject to the terms of the then-current';
privacyPolicyTemplate += ' Privacy Policy.';
privacyPolicyTemplate += ' </p>';
privacyPolicyTemplate += ' </div>';
if ($("input[name='hasdpo']:checked").val() === 'true') {
privacyPolicyTemplate += ' <div id="section13">';
privacyPolicyTemplate += ' <h3>';
privacyPolicyTemplate += ' Data Protection Officer';
privacyPolicyTemplate += ' </h3>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' We appoint the Data Protection Officer on the basis of professional qualities and, in particular, expert knowledge of data';
privacyPolicyTemplate += ' protection law and practices. The Data Protection Officer is tasked with ensuring that we always';
privacyPolicyTemplate += ' comply with our responsibilities under applicable data protection legislation. Contact details';
privacyPolicyTemplate += ' of the Data Protection Officer:';
privacyPolicyTemplate += ' <br/>';
privacyPolicyTemplate += ' <br/>';
privacyPolicyTemplate += ' <span> ' + $('#dpoName').val();
privacyPolicyTemplate += ' <br/>';
privacyPolicyTemplate += ' </span>';
privacyPolicyTemplate += ' <span> ' + $('#dpoEmail').val();
privacyPolicyTemplate += ' <br/>';
privacyPolicyTemplate += ' </span>';
if ($("input[name='iscontactPhone']:checked").val() === 'on') {
privacyPolicyTemplate += ' <span> ' + $('#tbxcontactPhone').val();;
privacyPolicyTemplate += ' <br/>';
privacyPolicyTemplate += ' </span>';
}
if ($("input[name='iscontactAddress']:checked").val() === 'on') {
privacyPolicyTemplate += ' <span> ' + $('#tbxcontactAddress').val();;
privacyPolicyTemplate += ' <br/>';
privacyPolicyTemplate += ' </span>';
}
if ($("input[name='iscontactPage']:checked").val() === 'on') {
privacyPolicyTemplate += ' <a target="_blank" href="'+ $('#tbxcontactPage').val() +'"> ' + $('#tbxcontactPage').val();
privacyPolicyTemplate += ' </a><br/>';
}
privacyPolicyTemplate += ' </p>';
privacyPolicyTemplate += ' </div>';
}
if ($("input[name='hasdpo']:checked").val() === 'false') {
privacyPolicyTemplate += ' <div id="section13">';
privacyPolicyTemplate += ' <h3>';
privacyPolicyTemplate += ' Contact us';
privacyPolicyTemplate += ' </h3>';
privacyPolicyTemplate += ' <p>';
privacyPolicyTemplate += ' If you have any questions about our Privacy Practices or this Policy, please contact us at';
privacyPolicyTemplate += ' <br/>';
if ($("input[name='iscontactEmail']:checked").val() === 'on') {
privacyPolicyTemplate += ' <span> ' + $('#tbxcontactEmail').val();;
privacyPolicyTemplate += ' <br/>';
privacyPolicyTemplate += ' </span>';
}
if ($("input[name='iscontactPhone']:checked").val() === 'on') {
privacyPolicyTemplate += ' <span> ' + $('#tbxcontactPhone').val();;
privacyPolicyTemplate += ' <br/>';
privacyPolicyTemplate += ' </span>';
}
if ($("input[name='iscontactAddress']:checked").val() === 'on') {
privacyPolicyTemplate += ' <span> ' + $('#tbxcontactAddress').val();;
privacyPolicyTemplate += ' <br/>';
privacyPolicyTemplate += ' </span>';
}
if ($("input[name='iscontactPage']:checked").val() === 'on') {
privacyPolicyTemplate += ' <a target="_blank" href="'+ $('#tbxcontactPage').val() +'"> ' + $('#tbxcontactPage').val();
privacyPolicyTemplate += ' </a><br/>';
}
privacyPolicyTemplate += ' </p>';
privacyPolicyTemplate += ' </div>';
}
privacyPolicyTemplate += ' </div>';
privacyPolicyTemplate += ' </td>';
privacyPolicyTemplate += ' </tr>';
privacyPolicyTemplate += ' </table>';
privacyPolicyTemplate += ' </div>';
privacyPolicyTemplate += ' </div>';
if (CKEDITOR.instances.privacy_policy_editor && CKEDITOR.instances) {
CKEDITOR.instances.privacy_policy_editor.destroy();
}
$('#privacy_policy_editor').html('');
$('#privacy_policy_editor').html(privacyPolicyTemplate);
CKEDITOR.replace('privacy_policy_editor', {
height:'500px'
});
$('#btn_submit_generator').text('Saving...');
$('#btn_submit_generator').prop("disabled", true);
if (privacyPolicyModal && privacyPolicyModal.Domain && privacyPolicyModal.Domain.length > 1) {
updatePrivacyPolicy();
} else {
createPrivacyPolicy();
}
}
function createform() {
var collectedData_questions = '';
var informationCollected_questions = '';
var websiteQuestions_listOfProcessors = '';
var websiteQuestions_listOfAnalytics = '';
var websiteQuestions_listOfAdvertisement = '';
var websiteQuestions_listOfSocial = '';
var websiteQuestions_listOfCutomerInteraction = '';
var websiteQuestions_listOfSecurityMeasures = '';
$.ajax({
url: window.sp_baseContext + '/api/plugins/website',
type: "POST",
data: JSON.stringify({
'Url': window.sp_domainPath
}),
contentType: 'application/json; charset=utf-8',
dataType: "json",
success: function (response, textStatus, xhr) {
if (response && xhr.status === 200) {
pluginDetails = response;
pluginDetails.forEach(element => {
if (element.Category === 'site_analytics') {
websiteQuestions.listOfAnalytics.push({
'value': element.Name,
'isChecked': true
});
websiteQuestions.countAnalytics++;
}
if (element.Category === 'advertising') {
websiteQuestions.listOfAdvertisement.push({
'value': element.Name,
'isChecked': true
});
websiteQuestions.countAds++;
}
if (element.Category === 'customer_interaction') {
websiteQuestions.listOfCutomerInteraction.push({
'value': element.Name,
'isChecked': true
});
websiteQuestions.countCustomerInteraction++;
}
if (element.Category === 'social_media') {
websiteQuestions.listOfSocial.push({
'value': element.Name,
'isChecked': true
});
websiteQuestions.countSocialPlugins++;
}
});
if (websiteQuestions.listOfAnalytics.length > 0) {
websiteQuestions.isAnalytics = 'true';
for (var i = 0; i < websiteQuestions.listOfAnalytics.length; i++) {
var element = websiteQuestions.listOfAnalytics[i];
websiteQuestions_listOfAnalytics += '<div><label><input text="'+element.value+'" name="listOfAnalytics_' + element.type + '" id="listOfAnalytics_' + element.type + '" type="checkbox"> ' + element.value + ' </label></div>';
}
$('#div_websiteQuestions_listOfAnalytics').html(websiteQuestions_listOfAnalytics);
}
if (websiteQuestions.listOfAdvertisement.length > 0) {
websiteQuestions.isAdvertisement = 'true';
for (var i = 0; i < websiteQuestions.listOfAdvertisement.length; i++) {
var element = websiteQuestions.listOfAdvertisement[i];
websiteQuestions_listOfAdvertisement += '<div><label><input text="'+ element.value +'" name="listOfAdvertisement_' + element.type + '" id="listOfAdvertisement_' + element.type + '" type="checkbox"> ' + element.value + ' </label></div>';
}
$('#div_websiteQuestions_listOfAdvertisement').html(websiteQuestions_listOfAdvertisement);
}
if (websiteQuestions.listOfCutomerInteraction.length > 0) {
websiteQuestions.isCustomerInteraction = 'true';
for (var i = 0; i < websiteQuestions.listOfCutomerInteraction.length; i++) {
var element = websiteQuestions.listOfCutomerInteraction[i];
websiteQuestions_listOfCutomerInteraction += '<div><label><input text="'+ element.value +'" name="listOfCutomerInteraction_' + element.type + '" id="listOfCutomerInteraction_' + element.type + '" type="checkbox"> ' + element.value + ' </label></div>';
}
$('#div_websiteQuestions_listOfCutomerInteraction').html(websiteQuestions_listOfCutomerInteraction);
}
if (websiteQuestions.listOfSocial.length > 0) {
websiteQuestions.isSocial = 'true';
for (var i = 0; i < websiteQuestions.listOfSocial.length; i++) {
var element = websiteQuestions.listOfSocial[i];
websiteQuestions_listOfSocial += '<div><label><input text="'+ element.value +'" name="listOfSocial_' + element.type + '" id="listOfSocial_' + element.type + '" type="checkbox"> ' + element.value + ' </label></div>';
}
$('#div_websiteQuestions_listOfSocial').html(websiteQuestions_listOfSocial);
}
}
},
error: function (e) {
alert(e.responseJSON.ResponseStatus.Message);
}
})
for (var i = 0; i < collectedData.questions.length; i++) {
var element = collectedData.questions[i];
collectedData_questions += '<div><label><input text="'+element.value+'" name="collectedData_' + element.type + '" id="collectedData_' + element.type + '" type="checkbox"> ' + element.value + ' </label></div>';
}
$('#div_collected_data').html(collectedData_questions);
informationCollected_questions = '<label><input text="Email Address" name="informationCollected_email" id="informationCollected_email" type="checkbox"> Email Address </label>';
for (var i = 0; i < informationCollected.questions.length; i++) {
var element = informationCollected.questions[i];
informationCollected_questions += '<div><label><input text="'+element.value+'" name="informationCollected_' + element.type + '" id="informationCollected_' + element.type + '" type="checkbox"> ' + element.value + ' </label></div>';
}
$('#div_informationCollected').html(informationCollected_questions);
for (var i = 0; i < websiteQuestions.listOfProcessors.length; i++) {
var element = websiteQuestions.listOfProcessors[i];
websiteQuestions_listOfProcessors += '<div><label><input text="'+element.value+'" privacyPolicy="'+element.privacyPolicy+'" name="listOfProcessors_' + element.value + '" id="listOfProcessors_' + element.value + '" type="checkbox"> ' + element.value + ' </label></div>';
}
$('#div_websiteQuestions_listOfProcessors').html(websiteQuestions_listOfProcessors);
for (var i = 0; i < websiteQuestions.listOfSecurityMeasures.length; i++) {
var element = websiteQuestions.listOfSecurityMeasures[i];
websiteQuestions_listOfSecurityMeasures += '<div><label><input text="' + element.value + '" name="listOfSecurityMeasures_' + element.type + '" id="listOfSecurityMeasures_' + element.type + '" type="checkbox"> ' + element.value + ' </label></div>';
}
$('#div_websiteQuestions_listOfSecurityMeasures').html(websiteQuestions_listOfSecurityMeasures);
}
function createPrivacyPolicy() {
privacyPolicyModal = {
"Version": 1.0,
"CreationDate": new Date(),
"Domain": $('#outdated_notice_domainId').val(),
"UserPreferences": $('#privacy_policy_editor').html(),
"PrivacyPolicyDetails": [
{
"Localization": "en",
"Sections": [
{
"Name": "InformationCollected",
"SectionText": JSON.stringify(informationCollected)
},
{
"Name": "WebsiteQuestions",
"SectionText": JSON.stringify(websiteQuestions)
},
{
"Name": "CollectedData",
"SectionText": JSON.stringify(collectedData)
}
]
}
],
"PluginDetails": [
{
"Localization": "en",
"PluginName": "",
"PluginDescription": JSON.stringify(pluginDetails)
}
]
};
$.ajax({
url: window.sp_baseContext + '/api/privacypolicy',
type: "POST",
headers: {
"Authorization": window.getAuthToken()
},
data: JSON.stringify(privacyPolicyModal),
contentType: 'application/json; charset=utf-8',
dataType: "json",
success: function (data) {
$('#btn_submit_generator').text('Submit');
$('#btn_submit_generator').prop("disabled", false);
$('#li_tab_2').click();
},
error: function (e,x,v) {
$('#btn_submit_generator').text('Submit');
$('#btn_submit_generator').prop("disabled", false);
if (e.status === 401) {
window.location.href = '<?php echo admin_url('admin.php?page=login'); ?>' + '&redirectTo=' + window.location.href + '&sessionExpired=true';
}
}
});
}
function updatePrivacyPolicy() {
privacyPolicyModal.UserPreferences = $('#privacy_policy_editor').html();
privacyPolicyModal.PrivacyPolicyDetails[0].Sections[0].SectionText = JSON.stringify(informationCollected);
privacyPolicyModal.PrivacyPolicyDetails[0].Sections[1].SectionText = JSON.stringify(websiteQuestions);
privacyPolicyModal.PrivacyPolicyDetails[0].Sections[2].SectionText = JSON.stringify(collectedData);
$.ajax({
url: window.sp_baseContext + '/api/privacypolicy',
type: "PUT",
headers: {
"Authorization": window.getAuthToken()
},
data: JSON.stringify(privacyPolicyModal),
contentType: 'application/json; charset=utf-8',
dataType: "json",
success: function (data) {
$('#btn_submit_generator').text('Submit');
$('#btn_submit_generator').prop("disabled", false);
$.ajax({
url: window.sp_baseContext + '/api/privacypolicy?Domain=' + $('#outdated_notice_domainId').val(),
type: "GET",
headers: {
"Authorization": window.getAuthToken()
},
contentType: 'application/json; charset=utf-8',
dataType: "json",
success: function (data) {
privacyPolicyModal = data[0];
if (privacyPolicyModal.UserPreferences.length > 1) {
$('#privacy_policy_editor').html(privacyPolicyModal.UserPreferences);
if (CKEDITOR.instances.privacy_policy_editor && CKEDITOR.instances) {
CKEDITOR.instances.privacy_policy_editor.destroy();
}
CKEDITOR.replace('privacy_policy_editor', {
height:'500px'
});
$('#li_tab_2').click();
}
},
error: function (e,x,v) {
}
});
},
error: function (e,x,v) {
$('#btn_submit_generator').text('Submit');
$('#btn_submit_generator').prop("disabled", false);
if (e.status === 401) {
window.location.href = '<?php echo admin_url('admin.php?page=login'); ?>' + '&redirectTo=' + window.location.href + '&sessionExpired=true';
}
}
});
}
function getPrivacyPolicy() {
$.ajax({
url: window.sp_baseContext + '/api/privacypolicy?Domain=' + $('#outdated_notice_domainId').val(),
type: "GET",
headers: {
"Authorization": window.getAuthToken()
},
contentType: 'application/json; charset=utf-8',
dataType: "json",
success: function (data) {
privacyPolicyModal = data[0];
if (privacyPolicyModal.UserPreferences.length > 1) {
// document.getElementById('myModal').style.display = "block";
$('#privacy_policy_editor').html(privacyPolicyModal.UserPreferences);
CKEDITOR.replace('privacy_policy_editor', {
height:'500px'
});
}
},
error: function (e,x,v) {
if (e.status === 401) {
window.location.href = '<?php echo admin_url('admin.php?page=login'); ?>' + '&redirectTo=' + window.location.href + '&sessionExpired=true';
}
}
});
}
window.resetPlan(false);
})(jQuery);
</script>