main
8 years ago
metabox
8 years ago
partial
8 years ago
settings
8 years ago
widget
8 years ago
extensions.phtml
8 years ago
index.phtml
8 years ago
main-panel.phtml
8 years ago
main-panel.phtml
31 lines
| 1 | <?php if (defined('AAM_KEY')) { ?> |
| 2 | <?php $features = AAM_Backend_Feature::retriveList($type); ?> |
| 3 | <div class="row"> |
| 4 | <?php if (count($features)) { ?> |
| 5 | <div class="col-xs-12 col-md-4"> |
| 6 | <ul class="list-group" id="feature-list"> |
| 7 | <?php |
| 8 | foreach ($features as $i => $feature) { |
| 9 | echo '<li class="list-group-item' . (isset($feature->class) ? ' ' . $feature->class : '') . '" data-feature="' . $feature->uid . '">'; |
| 10 | echo $feature->title; |
| 11 | echo (empty($feature->notification) ? '' : ' <span class="badge">' . $feature->notification . '</span>'); |
| 12 | echo '</li>'; |
| 13 | } |
| 14 | ?> |
| 15 | </ul> |
| 16 | </div> |
| 17 | <div class="col-xs-12 col-md-8"> |
| 18 | <?php |
| 19 | foreach ($features as $feature) { |
| 20 | echo $feature->view->getContent(); |
| 21 | } |
| 22 | do_action('aam-content-action'); |
| 23 | ?> |
| 24 | </div> |
| 25 | <?php } else { ?> |
| 26 | <div class="col-xs-12"> |
| 27 | <p class="aam-notification text-center"><?php echo __('You are not allowed to manage any of the existing features.', 'AAM_KEY'); ?></p> |
| 28 | </div> |
| 29 | <?php } ?> |
| 30 | </div> |
| 31 | <?php } |