access-denied-redirect.php
1 year ago
admin-toolbar.php
1 year ago
api-route.php
1 year ago
backend-menu.php
1 year ago
capability.php
1 year ago
content.php
1 year ago
identity.php
1 year ago
jwt.php
5 months ago
login-redirect.php
1 year ago
logout-redirect.php
1 year ago
metabox.php
1 year ago
not-found-redirect.php
1 year ago
policy.php
1 year ago
url.php
1 year ago
welcome.php
1 year ago
widget.php
1 year ago
policy.php
58 lines
| 1 | <?php /** @version 7.0.0 **/ ?> |
| 2 | |
| 3 | <?php if (defined('AAM_KEY')) { ?> |
| 4 | <div class="aam-feature" id="policy-content"> |
| 5 | <div class="row"> |
| 6 | <div class="col-xs-12"> |
| 7 | <p class="aam-info"> |
| 8 | <?php echo sprintf(AAM_Backend_View_Helper::preparePhrase('Manage access and security policies for [%s]. For more information check %sAccess & Security Policy%s page.', 'b'), AAM_Backend_AccessLevel::get_instance()->get_display_name(), '<a href="https://aamportal.com/reference/json-access-policy/?ref=plugin" target="_blank">', '</a>'); ?> |
| 9 | </p> |
| 10 | </div> |
| 11 | </div> |
| 12 | |
| 13 | <?php $service = AAM_Backend_AccessLevel::get_instance()->policies(); ?> |
| 14 | |
| 15 | <div class="row"> |
| 16 | <div class="col-xs-12"> |
| 17 | <div class="aam-overwrite" id="aam-policy-overwrite" style="display: <?php echo ($service->is_customized() ? 'block' : 'none'); ?>"> |
| 18 | <span><i class="icon-check"></i> <?php echo __('Policies are customized', 'advanced-access-manager'); ?></span> |
| 19 | <span><a href="#" id="policy_reset" class="btn btn-xs btn-primary"><?php echo __('Reset To Default', 'advanced-access-manager'); ?></a></span> |
| 20 | </div> |
| 21 | </div> |
| 22 | </div> |
| 23 | |
| 24 | <div class="row"> |
| 25 | <div class="col-xs-12"> |
| 26 | <table id="policy_list" class="table table-striped table-bordered"> |
| 27 | <thead> |
| 28 | <tr> |
| 29 | <th>ID</th> |
| 30 | <th width="80%"><?php echo __('Policy', 'advanced-access-manager'); ?></th> |
| 31 | <th><?php echo __('Actions', 'advanced-access-manager'); ?></th> |
| 32 | <th>Policy</th> |
| 33 | </tr> |
| 34 | </thead> |
| 35 | <tbody></tbody> |
| 36 | </table> |
| 37 | </div> |
| 38 | </div> |
| 39 | |
| 40 | <div class="modal fade" id="delete-policy-modal" tabindex="-1" role="dialog"> |
| 41 | <div class="modal-dialog" role="document"> |
| 42 | <div class="modal-content"> |
| 43 | <div class="modal-header"> |
| 44 | <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo __('Close', 'advanced-access-manager'); ?>"><span aria-hidden="true">×</span></button> |
| 45 | <h4 class="modal-title"><?php echo __('Delete Policy', 'advanced-access-manager'); ?></h4> |
| 46 | </div> |
| 47 | <div class="modal-body"> |
| 48 | <p class="text-center aam-confirm-message alert alert-danger" data-message="<?php echo __('You are about to delete the %s policy. Please confirm.', 'advanced-access-manager'); ?>"></p> |
| 49 | </div> |
| 50 | <div class="modal-footer"> |
| 51 | <button type="button" class="btn btn-danger" id="delete-policy-btn"><?php echo __('Delete Policy', 'advanced-access-manager'); ?></button> |
| 52 | <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __('Close', 'advanced-access-manager'); ?></button> |
| 53 | </div> |
| 54 | </div> |
| 55 | </div> |
| 56 | </div> |
| 57 | </div> |
| 58 | <?php } |