login-redirect.phtml
8 years ago
post-access-form.phtml
8 years ago
post-advanced-settings.phtml
8 years ago
post-type.phtml
8 years ago
redirect.phtml
8 years ago
role-inheritance.phtml
8 years ago
term-type.phtml
8 years ago
post-access-form.phtml
118 lines
| 1 | <?php if (!defined('AAM_KEY')) { exit; } ?> |
| 2 | |
| 3 | <?php $frontendOptions = AAM_Backend_Feature_Main_Post::getAccessOptionList('frontend'); ?> |
| 4 | <?php $backendOptions = AAM_Backend_Feature_Main_Post::getAccessOptionList('backend'); ?> |
| 5 | <?php $apiOptions = AAM_Backend_Feature_Main_Post::getAccessOptionList('api'); ?> |
| 6 | |
| 7 | <div class="panel-group" id="post-access-accordion" role="tablist" aria-multiselectable="true"> |
| 8 | <?php if (count($frontendOptions) && AAM_Core_Config::get('frontend-access-control', true)) { ?> |
| 9 | <div class="panel panel-success"> |
| 10 | <div class="panel-heading" role="tab" id="heading-post-frontend-access-settings"> |
| 11 | <h4 class="panel-title"> |
| 12 | <a role="button" data-toggle="collapse" data-parent="#post-access-accordion" href="#post-frontend-access-settings" aria-expanded="true" aria-controls="post-frontend-access-settings"> |
| 13 | <i class="icon-doc-text-inv"></i> <strong><?php echo __('Frontend Access Settings', AAM_KEY); ?></strong> |
| 14 | </a> |
| 15 | </h4> |
| 16 | </div> |
| 17 | <div id="post-frontend-access-settings" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading-post-frontend-access-settings"> |
| 18 | <div class="panel-body"> |
| 19 | <table class="table table-striped table-bordered"> |
| 20 | <tbody> |
| 21 | <?php foreach ($frontendOptions as $option => $data) { ?> |
| 22 | <tr> |
| 23 | <td width="90%"> |
| 24 | <strong class="aam-block aam-highlight text-uppercase"><?php echo $data['title']; ?></strong> |
| 25 | <?php if (!empty($data['sub'])) { ?> |
| 26 | <small><?php echo $data['sub']; ?>: <b id="<?php echo $data['preview']; ?>" data-ref="<?php echo $data['option']; ?>" class="option-preview">...</b> <a href="#<?php echo $data['modal']; ?>" data-toggle="modal" class="advanced-post-option" data-ref="<?php echo $data['option']; ?>" data-preview="#<?php echo $data['preview']; ?>"><?php echo __('change', AAM_KEY); ?></a></small> |
| 27 | <?php } ?> |
| 28 | <p class="aam-hint" data-dynamic-post-label="<?php echo $data['descr']; ?>"></p> |
| 29 | </td> |
| 30 | <td> |
| 31 | <div class="aam-row-actions"> |
| 32 | <i class="aam-row-action text-muted icon-check-empty" data-property="frontend.<?php echo $option; ?>"></i> |
| 33 | </div> |
| 34 | </td> |
| 35 | </tr> |
| 36 | <?php } ?> |
| 37 | </tbody> |
| 38 | </table> |
| 39 | </div> |
| 40 | </div> |
| 41 | </div> |
| 42 | <?php } ?> |
| 43 | |
| 44 | <?php if (count($backendOptions) && AAM_Core_Config::get('backend-access-control', true)) { ?> |
| 45 | <div class="panel panel-info"> |
| 46 | <div class="panel-heading" role="tab" id="heading-post-backend-access-settings"> |
| 47 | <h4 class="panel-title"> |
| 48 | <a role="button" data-toggle="collapse" data-parent="#post-access-accordion" href="#post-backend-access-settings" aria-expanded="false" aria-controls="post-backend-access-settings"> |
| 49 | <i class="icon-doc-text-inv"></i> <strong><?php echo __('Backend Access Settings', AAM_KEY); ?></strong> |
| 50 | </a> |
| 51 | </h4> |
| 52 | </div> |
| 53 | <div id="post-backend-access-settings" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading-post-backend-access-settings"> |
| 54 | <div class="panel-body"> |
| 55 | <table class="table table-striped table-bordered"> |
| 56 | <tbody> |
| 57 | <?php foreach ($backendOptions as $option => $data) { ?> |
| 58 | <tr> |
| 59 | <td width="90%"> |
| 60 | <strong class="aam-block aam-highlight text-uppercase"><?php echo $data['title']; ?></strong> |
| 61 | <?php if (!empty($data['sub'])) { ?> |
| 62 | <small><?php echo $data['sub']; ?>: <b id="<?php echo $data['preview']; ?>" data-ref="<?php echo $data['option']; ?>" class="option-preview">...</b> <a href="#modal-<?php echo str_replace('.', '-', $data['option']); ?>" data-toggle="modal" class="advanced-post-option" data-ref="<?php echo $data['option']; ?>" data-preview="#<?php echo $data['preview']; ?>"><?php echo __('change', AAM_KEY); ?></a></small> |
| 63 | <?php } ?> |
| 64 | <p class="aam-hint" data-dynamic-post-label="<?php echo $data['descr']; ?>"></p> |
| 65 | </td> |
| 66 | <td> |
| 67 | <div class="aam-row-actions"> |
| 68 | <i class="aam-row-action text-muted icon-check-empty" data-property="backend.<?php echo $option; ?>"></i> |
| 69 | </div> |
| 70 | </td> |
| 71 | </tr> |
| 72 | <?php } ?> |
| 73 | </tbody> |
| 74 | </table> |
| 75 | </div> |
| 76 | </div> |
| 77 | </div> |
| 78 | <?php } ?> |
| 79 | |
| 80 | <?php if (count($apiOptions) && AAM_Core_Config::get('api-access-control', true)) { ?> |
| 81 | <div class="panel panel-warning"> |
| 82 | <div class="panel-heading" role="tab" id="heading-post-api-access-settings"> |
| 83 | <h4 class="panel-title"> |
| 84 | <a role="button" data-toggle="collapse" data-parent="#post-access-accordion" href="#post-api-access-settings" aria-expanded="false" aria-controls="post-backend-access-settings"> |
| 85 | <i class="icon-doc-text-inv"></i> <strong><?php echo __('API Access Settings', AAM_KEY); ?></strong> |
| 86 | </a> |
| 87 | </h4> |
| 88 | </div> |
| 89 | <div id="post-api-access-settings" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading-post-api-access-settings"> |
| 90 | <div class="panel-body"> |
| 91 | <table class="table table-striped table-bordered"> |
| 92 | <tbody> |
| 93 | <?php foreach ($apiOptions as $option => $data) { ?> |
| 94 | <tr> |
| 95 | <td width="90%"> |
| 96 | <strong class="aam-block aam-highlight text-uppercase"><?php echo $data['title']; ?></strong> |
| 97 | <?php if (!empty($data['sub'])) { ?> |
| 98 | <small> |
| 99 | <?php echo $data['sub']; ?>: <b id="<?php echo $data['preview']; ?>" data-ref="<?php echo $data['option']; ?>" class="option-preview">...</b> |
| 100 | <a href="#<?php echo $data['modal']; ?>" data-toggle="modal" class="advanced-post-option" data-ref="<?php echo $data['option']; ?>" data-preview="#<?php echo $data['preview']; ?>"><?php echo __('change', AAM_KEY); ?></a> |
| 101 | </small> |
| 102 | <?php } ?> |
| 103 | <p class="aam-hint" data-dynamic-post-label="<?php echo $data['descr']; ?>"></p> |
| 104 | </td> |
| 105 | <td> |
| 106 | <div class="aam-row-actions"> |
| 107 | <i class="aam-row-action text-muted icon-check-empty" data-property="api.<?php echo $option; ?>"></i> |
| 108 | </div> |
| 109 | </td> |
| 110 | </tr> |
| 111 | <?php } ?> |
| 112 | </tbody> |
| 113 | </table> |
| 114 | </div> |
| 115 | </div> |
| 116 | </div> |
| 117 | <?php } ?> |
| 118 | </div> |