# gdpr-framework/2.1.0/src/Installer/Steps/Consent.php

The GDPR Framework By Data443, version 2.1.0. 34 lines.

- Page: https://pluginprobe.com/plugins/gdpr-framework/2.1.0/code/src/Installer/Steps/Consent.php
- Raw: https://pluginprobe.com/plugins/gdpr-framework/2.1.0/raw/src/Installer/Steps/Consent.php
- Modified: 2022-03-03T17:26:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/gdpr-framework/2.1.0/code/src/Installer/Steps/Consent.php#L10-L20`.

```php
<?php

namespace Codelight\GDPR\Installer\Steps;

use Codelight\GDPR\Installer\InstallerStep;
use Codelight\GDPR\Installer\InstallerStepInterface;

class Consent extends InstallerStep implements InstallerStepInterface
{
    protected $slug = 'consent';

    protected $type = 'wizard';

    protected $template = 'installer/steps/consent';

    protected $activeSteps = 3;

    protected function renderContent()
    {
        global $gdpr;
        $isRegistrationOpen = get_option('users_can_register');
        $isCommentsEnabled = class_exists('Disable_Comments') ? false : true;
        $privacyToolsPageUrl = get_permalink($gdpr->Options->get('tools_page'));
        $hasGravityForms = class_exists('\GFForms');
        $hasCF7 = class_exists('\WPCF7');
        $hasFrm = class_exists('\FrmHooksController');
        $hasNinjaForms = class_exists('\Ninja_Forms');
        echo gdpr('view')->render(
            $this->template,
            compact('isRegistrationOpen', 'isCommentsEnabled', 'privacyToolsPageUrl', 'hasGravityForms', 'hasCF7', 'hasFrm', 'hasNinjaForms')
        );
    }
}

```
