| 1 |
<?php |
| 2 |
|
| 3 |
namespace AgeGate\Admin\Settings; |
| 4 |
|
| 5 |
trait Tools |
| 6 |
{ |
| 7 |
protected function getToolsFields() |
| 8 |
{ |
| 9 |
return [ |
| 10 |
[ |
| 11 |
'title' => 'Disable Age Gate', |
| 12 |
'subtitle' => '', |
| 13 |
'fields' => [ |
| 14 |
'disable_age_gate' => [ |
| 15 |
'type' => 'checkbox', |
| 16 |
'label' => __('Disable Age Gate', 'age-gate'), |
| 17 |
'default' => false, |
| 18 |
'subtext' => __('Disable all Age Gates to users', 'age-gate'), |
| 19 |
], |
| 20 |
] |
| 21 |
], |
| 22 |
[ |
| 23 |
'title' => 'Developer options', |
| 24 |
'subtitle' => '', |
| 25 |
'fields' => [ |
| 26 |
|
| 27 |
'feedback' => [ |
| 28 |
'type' => 'checkbox', |
| 29 |
'label' => __('Send feedback', 'age-gate'), |
| 30 |
'default' => false, |
| 31 |
'subtext' => __('Occasionally send settings information to the developers', 'age-gate'), |
| 32 |
], |
| 33 |
] |
| 34 |
], |
| 35 |
]; |
| 36 |
} |
| 37 |
} |
| 38 |
|