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
content.php
29 lines
| 1 | <?php /** @version 7.0.0 **/ ?> |
| 2 | |
| 3 | <?php if (defined('AAM_KEY')) { ?> |
| 4 | <div class="aam-feature settings" id="settings-content-content"> |
| 5 | <table class="table table-striped table-bordered"> |
| 6 | <tbody> |
| 7 | <?php $list = $this->getList(); ?> |
| 8 | |
| 9 | <?php if (count($list)) { ?> |
| 10 | <?php foreach($list as $id => $option) { ?> |
| 11 | <tr> |
| 12 | <td> |
| 13 | <span class='aam-setting-title'><?php echo esc_js($option['title']); ?></span> |
| 14 | <p class="aam-setting-description"> |
| 15 | <?php echo esc_js($option['description']); ?> |
| 16 | </p> |
| 17 | </td> |
| 18 | <td class="text-center"> |
| 19 | <input data-toggle="toggle" name="<?php echo esc_attr($id); ?>" id="utility-<?php echo esc_attr($id); ?>" <?php echo ($option['value'] ? 'checked' : ''); ?> type="checkbox" data-on="<?php echo __('Enabled', 'advanced-access-manager'); ?>" data-off="<?php echo __('Disabled', 'advanced-access-manager'); ?>" data-size="small" /> |
| 20 | </td> |
| 21 | </tr> |
| 22 | <?php } ?> |
| 23 | <?php } else { ?> |
| 24 | <p class="alert alert-info text-center"><?php echo __('There are no settings associated with content service.', 'advanced-access-manager'); ?></p> |
| 25 | <?php } ?> |
| 26 | </tbody> |
| 27 | </table> |
| 28 | </div> |
| 29 | <?php } |