101 lines
4.7 KiB
PHP
101 lines
4.7 KiB
PHP
<?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
|
||
*/
|
||
?>
|
||
|
||
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
|
||
<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"> Privacy policy </a> -->
|
||
<a href="<?php echo admin_url('admin.php?page=consentTracking'); ?>" class="customisation"> Consent tracking </a>
|
||
<span id="loading_span" style="display:none;margin-top:15px;margin-right:15px;" class="pull-right bs-label bg-blue">Loading...</span>
|
||
</div>
|
||
<div class="clearfix"></div>
|
||
<div style="border: solid 1px #dddddd;padding: 15px;background: #fff;">
|
||
<form action="javascript:void(0);" id="account-form">
|
||
<div style="padding:50px;" class="text-center">
|
||
<button class="btn btn-success text-center btn-lg"> View Account details</button>
|
||
</div>
|
||
</form>
|
||
</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>
|
||
|
||
|
||
</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';
|
||
|
||
})(jQuery);
|
||
</script>
|