| 1 |
<?php |
| 2 |
|
| 3 |
namespace Codelight\GDPR\Components\Support; |
| 4 |
|
| 5 |
use Codelight\GDPR\Admin\AdminTab; |
| 6 |
|
| 7 |
class AdminTabSupport extends AdminTab |
| 8 |
{ |
| 9 |
protected $slug = 'support'; |
| 10 |
|
| 11 |
public function __construct() |
| 12 |
{ |
| 13 |
$this->title = _x('Support', '(Admin)', 'gdpr-framework'); |
| 14 |
} |
| 15 |
|
| 16 |
public function init() |
| 17 |
{ |
| 18 |
$this->registerSettingSection( |
| 19 |
'gdpr-section-support', |
| 20 |
_x('Support', '(Admin)', 'gdpr-framework'), |
| 21 |
[$this, 'renderTab'] |
| 22 |
); |
| 23 |
} |
| 24 |
|
| 25 |
public function renderTab() |
| 26 |
{ |
| 27 |
echo gdpr('view')->render('admin/support/contents'); |
| 28 |
} |
| 29 |
|
| 30 |
public function renderSubmitButton() |
| 31 |
{ |
| 32 |
// Intentionally left blank |
| 33 |
} |
| 34 |
} |
| 35 |
|