| Server IP : 208.122.213.31 / Your IP : 216.73.216.45 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/self/cwd/wp-content/plugins/age-gate/src/Resources/views/admin/ |
Upload File : |
<?php $this->layout('layouts/default'); ?>
<?php $data = \Asylum\Utility\Arr::undot($data); ?>
<div class="ag-row">
<?php foreach ($data['sections'] ?? [] as $key => $section) : ?>
<div class="ag-col">
<?php
switch ($key) {
case 'set_content':
/* translators: Indivdual content label */
$label = __('Restrict/Bypass indiviual content', 'age-gate');
break;
case 'set_age':
/* translators: Indivdual age label */
$label = __('Change age for indiviual content', 'age-gate');
break;
case 'reset':
case 'export':
case 'import':
/* translators: Permission label. %s name of the setting */
$label = sprintf(__('User can %s all settings', 'age-gate'), $key);
break;
default:
/* translators: Permission label. %s name of the setting */
$label = sprintf(__('Manage %s settings', 'age-gate'), $key);
break;
}
?>
<p><?php echo esc_html($label) ?></p>
<?php foreach ($data['roles'] as $slug => $role) : ?>
<?php if ($slug !== 'administrator') : ?>
<div>
<label class="ag-switch">
<input type="checkbox" name="ag_settings[<?php echo esc_attr($key); ?>][<?php echo esc_attr($slug) ?>]" value="1" <?php echo(($role['capabilities'][$section] ?? false) ? 'checked' : '') ?> />
<span class="ag-switch__slider"></span>
</label>
<?php echo esc_html($role['name']) ?>
</div>
<?php endif; ?>
<?php endforeach; ?>
</div>
<?php endforeach; ?>
</div>