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
api-route.php
45 lines
| 1 | <?php /** @version 7.0.0 **/ ?> |
| 2 | |
| 3 | <?php if (defined('AAM_KEY')) { ?> |
| 4 | <?php |
| 5 | $access_level = AAM_Backend_AccessLevel::get_instance(); |
| 6 | $service = $access_level->api_routes(); |
| 7 | ?> |
| 8 | |
| 9 | <div class="aam-feature" id="route-content"> |
| 10 | <?php $access_level = AAM_Backend_AccessLevel::get_instance(); ?> |
| 11 | |
| 12 | <?php if (AAM::api()->config->get('core.settings.ui.tips')) { ?> |
| 13 | <div class="row"> |
| 14 | <div class="col-xs-12"> |
| 15 | <p class="aam-info"> |
| 16 | <?php echo sprintf(AAM_Backend_View_Helper::preparePhrase('Manage access to the RESTful API endpoints. With the premium %sadd-on%s, you can also enable the "restricted mode" to only whitelist allowed endpoints. To learn more, refer to our official documentation page %shere%s.'), '<a href="https://aamportal.com/premium?ref=plugin" target="_blank">', '</a>', '<a href="https://aamportal.com/article/underestimated-aspect-of-api-access-controls?ref=plugin" target="_blank">', '</a>'); ?> |
| 17 | </p> |
| 18 | </div> |
| 19 | </div> |
| 20 | <?php } ?> |
| 21 | |
| 22 | <div class="row"> |
| 23 | <div class="col-xs-12"> |
| 24 | <div class="aam-overwrite<?php echo ($service->is_customized() ? '' : ' hidden'); ?>" id="aam-route-overwrite"> |
| 25 | <span><i class="icon-check"></i> <?php echo __('Routes are customized', 'advanced-access-manager'); ?></span> |
| 26 | <span><a href="#" id="route-reset" class="btn btn-xs btn-primary"><?php echo __('Reset to default', 'advanced-access-manager'); ?></a></span> |
| 27 | </div> |
| 28 | </div> |
| 29 | </div> |
| 30 | |
| 31 | <?php echo apply_filters('aam_ui_api_route_mode_panel_filter', '', $service); ?> |
| 32 | |
| 33 | <table id="route-list" class="table table-striped table-bordered"> |
| 34 | <thead> |
| 35 | <tr> |
| 36 | <th>ID</th> |
| 37 | <th width="10%"><?php echo __('Method', 'advanced-access-manager'); ?></th> |
| 38 | <th width="80%"><?php echo __('Route', 'advanced-access-manager'); ?></th> |
| 39 | <th><?php echo __('Deny', 'advanced-access-manager'); ?></th> |
| 40 | </tr> |
| 41 | </thead> |
| 42 | <tbody></tbody> |
| 43 | </table> |
| 44 | </div> |
| 45 | <?php } |