configpress.php
1 year ago
content.php
1 year ago
core.php
1 year ago
multisite.php
1 year ago
security.php
1 year ago
service.php
1 year ago
security.php
32 lines
| 1 | <?php /** @version 7.0.0 **/ ?> |
| 2 | |
| 3 | <?php if (defined('AAM_KEY')) { ?> |
| 4 | <div class="aam-feature settings" id="settings-security-content"> |
| 5 | <table class="table table-striped table-bordered"> |
| 6 | <tbody> |
| 7 | <?php foreach($this->getList() as $id => $option) { ?> |
| 8 | <tr> |
| 9 | <td> |
| 10 | <span class='aam-setting-title'><?php echo esc_js($option['title']); ?></span> |
| 11 | <p class="aam-setting-description"> |
| 12 | <?php echo $option['description']; // The values are already properly evaluated so esc_js is not needed ?> |
| 13 | </p> |
| 14 | </td> |
| 15 | <td class="text-center"> |
| 16 | <input |
| 17 | data-toggle="toggle" |
| 18 | name="<?php echo esc_attr($id); ?>" |
| 19 | id="utility-<?php echo esc_attr($id); ?>" |
| 20 | <?php echo ($option['value'] ? 'checked' : ''); ?> |
| 21 | type="checkbox" |
| 22 | data-on="<?php echo __('Enabled', 'advanced-access-manager'); ?>" |
| 23 | data-off="<?php echo __('Disabled', 'advanced-access-manager'); ?>" |
| 24 | data-size="small" |
| 25 | /> |
| 26 | </td> |
| 27 | </tr> |
| 28 | <?php } ?> |
| 29 | </tbody> |
| 30 | </table> |
| 31 | </div> |
| 32 | <?php } |