PluginProbe
The GDPR Framework By Data443 / trunk
The GDPR Framework By Data443 vtrunk
2.5.0 2.4.0 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.3 1.0.33 1.0.34 1.0.35 1.0.36 1.0.37 1.0.39 1.0.4 1.0.40 1.0.41 1.0.42 1.0.43 1.0.44 1.0.45 1.0.46 All 41 releases
gdpr-framework / src / Components / AdvancedIntegration / AdminTabAdvancedIntegration.php

AdminTabAdvancedIntegration.php in The GDPR Framework By Data443 trunk, at src/Components/AdvancedIntegration/AdminTabAdvancedIntegration.php

43 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Codelight\GDPR\Components\AdvancedIntegration;
4
5 if ( ! defined( 'ABSPATH' ) ) exit;
6
7 use Codelight\GDPR\Admin\AdminTab;
8
9 class AdminTabAdvancedIntegration extends AdminTab
10 {
11 /* @var string */
12 protected $slug = 'advanced-integration';
13
14 /* @var PolicyGenerator */
15 protected $policyGenerator;
16
17 public function __construct()
18 {
19 $this->title = _x('Data Hound', '(Admin)', 'gdpr-framework');
20
21 add_action('gdpr/admin/action/AdvancedIntegration/generate', [$this, 'generateAdvancedIntegration']);
22 }
23
24 public function init()
25 {
26 $this->registerSettingSection(
27 'gdpr_section_privacy_policy',
28 _x('Data Hound', '(Admin)', 'gdpr-framework'),
29 [$this, 'renderHeader']
30 );
31 }
32
33 public function renderHeader()
34 {
35 echo gdpr('view')->render('admin/advanced-integration/header');
36 }
37
38 public function renderSubmitButton()
39 {
40 // leave an empty method to prevent the placement of the default save button
41 }
42 }
43