$check) { register_setting(WP_GDPR_C_SLUG . '_general', WP_GDPR_C_PREFIX . '_general_' . $id, 'intval'); } if (!Helper::isEnabled('enable_privacy_policy_extern', 'settings')) { register_setting(WP_GDPR_C_SLUG . '_settings', WP_GDPR_C_PREFIX . '_settings_privacy_policy_page', 'intval'); } register_setting(WP_GDPR_C_SLUG . '_settings', WP_GDPR_C_PREFIX . '_settings_privacy_policy_text', array('sanitize_callback' => array(Helper::getInstance(), 'sanitizeData'))); register_setting(WP_GDPR_C_SLUG . '_settings', WP_GDPR_C_PREFIX . '_settings_enable_privacy_policy_extern', 'intval'); if (Helper::isEnabled('enable_privacy_policy_extern', 'settings')) { register_setting(WP_GDPR_C_SLUG . '_settings', WP_GDPR_C_PREFIX . '_settings_privacy_policy_link', array('sanitize_callback' => array(Helper::getInstance(), 'sanitizeData'))); } register_setting(WP_GDPR_C_SLUG . '_settings', WP_GDPR_C_PREFIX . '_settings_enable_access_request', 'intval'); if (Helper::isEnabled('enable_access_request', 'settings')) { register_setting(WP_GDPR_C_SLUG . '_settings', WP_GDPR_C_PREFIX . '_settings_access_request_page', 'intval'); register_setting(WP_GDPR_C_SLUG . '_settings', WP_GDPR_C_PREFIX . '_settings_access_request_form_checkbox_text'); register_setting(WP_GDPR_C_SLUG . '_settings', WP_GDPR_C_PREFIX . '_settings_delete_request_form_explanation_text'); } register_setting(WP_GDPR_C_SLUG . '_settings', WP_GDPR_C_PREFIX . '_settings_consents_modal_title'); register_setting(WP_GDPR_C_SLUG . '_settings', WP_GDPR_C_PREFIX . '_settings_consents_modal_explanation_text'); register_setting(WP_GDPR_C_SLUG . '_settings', WP_GDPR_C_PREFIX . '_settings_consents_bar_explanation_text'); register_setting(WP_GDPR_C_SLUG . '_settings', WP_GDPR_C_PREFIX . '_settings_consents_bar_color', array('default' => '#000000')); register_setting(WP_GDPR_C_SLUG . '_settings', WP_GDPR_C_PREFIX . '_settings_consents_bar_text_color', array('default' => '#FFFFFF')); register_setting(WP_GDPR_C_SLUG . '_settings', WP_GDPR_C_PREFIX . '_settings_consents_bar_button_color_primary', array('default' => '#FFFFFF')); register_setting(WP_GDPR_C_SLUG . '_settings', WP_GDPR_C_PREFIX . '_settings_consents_bar_button_color_secondary', array('default' => '#000000')); } public function addAdminMenu() { $pluginData = Helper::getPluginData(); add_submenu_page( 'tools.php', $pluginData['Name'], $pluginData['Name'], 'manage_options', str_replace('-', '_', WP_GDPR_C_SLUG), array($this, 'generatePage') ); } public function generatePage() { $type = (isset($_REQUEST['type'])) ? esc_html($_REQUEST['type']) : false; $pluginData = Helper::getPluginData(); $enableAccessRequest = Helper::isEnabled('enable_access_request', 'settings'); $adminUrl = Helper::getPluginAdminUrl(); ?>

getTotal(array( 'ip_address' => array( 'value' => '127.0.0.1', 'compare' => '!=' ), 'processed' => array( 'value' => 0 ) )); ?> 1) { printf('%d', $totalDeleteRequests); } ?>
exists($id)) { self::renderManageRequestPage($id); } else { self::renderRequestsPage(); } break; case 'checklist' : self::renderChecklistPage(); break; case 'settings' : self::renderSettingsPage(); break; default : self::renderIntegrationsPage(); break; } ?>

%s', '//www.wpgdprc.com/', 'www.wpgdprc.com') ); ?>

%s', __('Support forum', WP_GDPR_C_SLUG)) ); ?>

%s: %s

', strtoupper(__('Note', WP_GDPR_C_SLUG)), __('We think you might have a mail plugin installed.', WP_GDPR_C_SLUG) ); ?>

%s: %s

', strtoupper(__('Note', WP_GDPR_C_SLUG)), sprintf( __('Enabling this will allow you to use external Privacy Policy instances', WP_GDPR_C_SLUG) ) ); ?>

%s: %s

', strtoupper( __( 'Note', WP_GDPR_C_SLUG ) ), sprintf( __( 'Currently you do not have a privacy policy page selected', WP_GDPR_C_SLUG ) ) ); ?>
'publish,private,draft', 'show_option_none' => __('Select an option', WP_GDPR_C_SLUG), 'name' => $optionNamePrivacyPolicyPage, 'selected' => $privacyPolicyPage )); ?>

%s: %s

', strtoupper(__('Note', WP_GDPR_C_SLUG)), sprintf( __('Enabling this will create one private page containing the necessary shortcode: %s. You can determine when and how to publish this page yourself.', WP_GDPR_C_SLUG), '[wpgdprc_access_request_form]' ) ); ?>
'publish,private,draft', 'show_option_none' => __('Select an option', WP_GDPR_C_SLUG), 'name' => $optionNameAccessRequestPage, 'selected' => $accessRequestPage )); ?>
%s

', get_edit_post_link($accessRequestPage), __('Click here to edit this page', WP_GDPR_C_SLUG)); ?>

%s: %s

', strtoupper(__('Note', WP_GDPR_C_SLUG)), sprintf( __('Let your visitors re-access their settings by placing a link to the modal with the shortcode %s or add the "%s" class to a menu item.', WP_GDPR_C_SLUG), sprintf( '[wpgdprc_consents_settings_link]%s[/wpgdprc_consents_settings_link]', __('My settings', WP_GDPR_C_SLUG) ), 'wpgdprc-consents-settings-link' ) ); ?>
getTitle(); $description = (isset($_POST['description'])) ? stripslashes(wp_kses($_POST['description'], Helper::getAllowedHTMLTags(''))) : $consent->getDescription(); $snippet = (isset($_POST['snippet'])) ? stripslashes($_POST['snippet']) : $consent->getSnippet(); $wrap = (isset($_POST['wrap']) && array_key_exists($_POST['wrap'], Consent::getPossibleCodeWraps())) ? esc_html($_POST['wrap']) : $consent->getWrap(); $placement = (isset($_POST['placement']) && array_key_exists($_POST['placement'], Consent::getPossiblePlacements())) ? esc_html($_POST['placement']) : $consent->getPlacement(); $required = (isset($_POST['required'])) ? 1 : 0; $consent->setTitle($title); $consent->setDescription($description); $consent->setSnippet($snippet); $consent->setWrap($wrap); $consent->setPlacement($placement); $consent->setRequired($required); $consent->setActive($active); $id = $consent->save(); if (!empty($id)) { Helper::showAdminNotice('wpgdprc-consent-updated'); } } ?>

%s: %s
', strtoupper(__('Head', WP_GDPR_C_SLUG)), __('Snippet will be added to the HEAD section.', WP_GDPR_C_SLUG) ); printf( '%s: %s', strtoupper(__('Footer', WP_GDPR_C_SLUG)), __('Snippet will be added to the FOOTER section.', WP_GDPR_C_SLUG) ); ?>

getTotal(); $numberOfPages = ceil($total / $limit); $consents = Consent::getInstance()->getList(array(), $limit, $offset); ?>

getTitle(); ?>
getId()); ?> %s', Consent::getActionUrl($consent->getId()), ((!empty($title)) ? $title : __('(no title)', WP_GDPR_C_SLUG)) ); ?> getRequired()) ? __('Yes', WP_GDPR_C_SLUG) : __('No', WP_GDPR_C_SLUG); ?> getDateModified(); ?> getDateCreated(); ?> %s', Consent::getActionUrl($consent->getId()), __('Edit', WP_GDPR_C_SLUG) ), sprintf( '%s', Consent::getActionUrl($consent->getId(), 'delete'), __('Remove', WP_GDPR_C_SLUG) ) ); ?> getActive()) ? __('Yes', WP_GDPR_C_SLUG) : __('No', WP_GDPR_C_SLUG); ?>
str_replace( 999999999, '%#%', Helper::getPluginAdminUrl('consents', array('paged' => 999999999)) ), 'format' => '?paged=%#%', 'current' => max(1, $paged), 'total' => $numberOfPages, 'prev_text' => '‹', 'next_text' => '›', 'before_page_number' => '', 'after_page_number' => '' )); printf('%s', sprintf(__('%d of %d results found', WP_GDPR_C_SLUG), count($consents), $total)); ?>

array( 'value' => $accessRequest->getId(), ), ); $paged = (isset($_REQUEST['paged'])) ? absint($_REQUEST['paged']) : 1; $limit = 20; $offset = ($paged - 1) * $limit; $total = DeleteRequest::getInstance()->getTotal($filters); $numberOfPages = ceil($total / $limit); $requests = DeleteRequest::getInstance()->getList($filters, $limit, $offset); if (!empty($requests)) : ?>

%s: %s', __('WordPress Users', WP_GDPR_C_SLUG), 'Anonymises first and last name, display name, nickname and email address.', WP_GDPR_C_SLUG); ?>
%s: %s', __('WordPress Comments', WP_GDPR_C_SLUG), 'Anonymises author name, email address and IP address.', WP_GDPR_C_SLUG); ?>
%s: %s', __('WooCommerce', WP_GDPR_C_SLUG), 'Anonymises billing and shipping details per order.', WP_GDPR_C_SLUG); ?>

%s: %s

', strtoupper(__('Note', WP_GDPR_C_SLUG)), sprintf(__('Requests are automatically anonymised after %d days.', WP_GDPR_C_SLUG), 30) ); ?>
getId()); ?> getNiceTypeLabel(); ?> getIpAddress(); ?> getDateCreated(); ?> getDataId() !== 0 && !$request->isAnonymised()) { printf('%s', $request->getManageUrl(), __('View', WP_GDPR_C_SLUG)); } else { _e('N/A', WP_GDPR_C_SLUG); } ?> getProcessed() && !$request->isAnonymised()) { printf('', $request->getId()); } else { echo ' '; } ?>
str_replace( 999999999, '%#%', Helper::getPluginAdminUrl('requests', array('paged' => 999999999)) ), 'format' => '?paged=%#%', 'current' => max(1, $paged), 'total' => $numberOfPages, 'prev_text' => '‹', 'next_text' => '›', 'before_page_number' => '', 'after_page_number' => '' )); printf('%s', sprintf(__('%d of %d results found', WP_GDPR_C_SLUG), count($requests), $total)); ?>

getTotal(); $numberOfPages = ceil($total / $limit); $requests = AccessRequest::getInstance()->getList(array(), $limit, $offset); if (!empty($requests)) : ?>
%s: %s

', strtoupper(__('Note', WP_GDPR_C_SLUG)), sprintf(__('Requests are automatically anonymised after %d days.', WP_GDPR_C_SLUG), 30) ); ?>
getAmountByAccessRequestId($request->getId(), false); $amountOfDeleteRequests = DeleteRequest::getInstance()->getAmountByAccessRequestId($request->getId()); ?>
getId()); ?> 0) { printf( '%s', Helper::getPluginAdminUrl('requests', array('id' => $request->getId())), __('Manage', WP_GDPR_C_SLUG) ); } ?> getEmailAddress(); ?> getIpAddress(); ?> getDateCreated(); ?> getExpired()) ? __('Expired', WP_GDPR_C_SLUG) : __('Active', WP_GDPR_C_SLUG); ?>
str_replace( 999999999, '%#%', Helper::getPluginAdminUrl('requests', array('paged' => 999999999)) ), 'format' => '?paged=%#%', 'current' => max(1, $paged), 'total' => $numberOfPages, 'prev_text' => '‹', 'next_text' => '›', 'before_page_number' => '', 'after_page_number' => '' )); printf('%s', sprintf(__('%d of %d results found', WP_GDPR_C_SLUG), count($requests), $total)); ?>