addon-panel.php
1 year ago
current-subject.php
1 year ago
main-panel.php
1 year ago
security-audit.php
7 months ago
subject-panel-advanced.php
1 year ago
subject-panel.php
1 year ago
main-panel.php
38 lines
| 1 | <?php /** @version 7.0.0 **/ ?> |
| 2 | |
| 3 | <?php if (defined('AAM_KEY')) { ?> |
| 4 | <?php $features = AAM_Backend_Feature::retrieveList($params->type); ?> |
| 5 | <?php if (count($features)) { ?> |
| 6 | <?php if (count($features) > 1) { ?> |
| 7 | <div class="row"> |
| 8 | <div class="col-xs-12 col-md-4"> |
| 9 | <ul class="list-group" id="feature-list"> |
| 10 | <?php |
| 11 | foreach ($features as $i => $feature) { |
| 12 | echo '<li class="list-group-item' . (isset($feature->class) ? ' ' . esc_attr($feature->class) : '') . '" data-feature="' . esc_attr($feature->uid) . '">'; |
| 13 | echo esc_js($feature->title); |
| 14 | echo (empty($feature->notification) ? '' : ' <span class="badge">' . esc_js($feature->notification) . '</span>'); |
| 15 | echo '</li>'; |
| 16 | } |
| 17 | ?> |
| 18 | </ul> |
| 19 | </div> |
| 20 | <div class="col-xs-12 col-md-8"> |
| 21 | <?php |
| 22 | foreach ($features as $feature) { |
| 23 | echo call_user_func($feature->view); |
| 24 | } |
| 25 | ?> |
| 26 | </div> |
| 27 | </div> |
| 28 | <?php } else { |
| 29 | echo call_user_func(array_pop($features)->view); |
| 30 | } ?> |
| 31 | <?php } else { ?> |
| 32 | <div class="col-xs-12"> |
| 33 | <p class="aam-notification text-larger text-center"> |
| 34 | <?php echo __('You are not allowed to manage any of the existing services.', 'advanced-access-manager'); ?> |
| 35 | </p> |
| 36 | </div> |
| 37 | <?php } ?> |
| 38 | <?php } |