| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
namespace Codelight\GDPR\Installer\Steps; |
| 5 |
|
| 6 |
|
| 7 |
use Codelight\GDPR\Installer\InstallerStep; |
| 8 |
use Codelight\GDPR\Installer\InstallerStepInterface; |
| 9 |
|
| 10 |
class PolicyContents extends InstallerStep implements InstallerStepInterface |
| 11 |
{ |
| 12 |
protected $slug = 'policy-contents'; |
| 13 |
|
| 14 |
protected $type = 'wizard'; |
| 15 |
|
| 16 |
protected $template = 'installer/steps/policy-contents'; |
| 17 |
|
| 18 |
protected $activeSteps = 2; |
| 19 |
|
| 20 |
protected function renderContent() |
| 21 |
{ |
| 22 |
global $gdpr; |
| 23 |
$policyUrl = get_permalink($gdpr->Options->get('policy_page')); |
| 24 |
add_filter( 'gdpr_custom_policy_link', 'gdprfPrivacyPolicyurl' ); |
| 25 |
$policyUrl = apply_filters( 'gdpr_custom_policy_link',$policyUrl); |
| 26 |
$editPolicyUrl = get_edit_post_link($gdpr->Options->get('policy_page')); |
| 27 |
$policyGenerated = $gdpr->Options->get('policy_generated'); |
| 28 |
|
| 29 |
echo gdpr('view')->render( |
| 30 |
$this->template, |
| 31 |
compact('policyUrl', 'editPolicyUrl', 'policyGenerated') |
| 32 |
); |
| 33 |
} |
| 34 |
} |
| 35 |
|