capability.phtml
9 years ago
login-redirect.phtml
9 years ago
menu.phtml
9 years ago
metabox.phtml
9 years ago
post.phtml
9 years ago
redirect.phtml
9 years ago
teaser.phtml
9 years ago
post.phtml
138 lines
| 1 | <?php if (defined('AAM_KEY')) { ?> |
| 2 | <div class="aam-feature" id="post-content"> |
| 3 | <?php if (!defined('AAM_PLUS_PACKAGE')) { ?> |
| 4 | <div class="row"> |
| 5 | <div class="col-xs-12"> |
| 6 | <p class="aam-notification"> |
| 7 | <?php echo sprintf(AAM_Backend_View_Helper::preparePhrase('You are allowed to manage access up to 10 posts, pages or custom post types but only on role, user or visitor levels. Consider to purchase [AAM Plus Package] extension to unlock this limitation. For more information about post access control check %sthis article%s.', 'b'), '<a href="https://aamplugin.com/help/how-to-manage-wordpress-post-and-category-access" target="_blank">', '</a>'); ?> |
| 8 | </p> |
| 9 | </div> |
| 10 | </div> |
| 11 | <?php } ?> |
| 12 | |
| 13 | <?php if (defined('AAM_PLUS_PACKAGE') || AAM_Backend_View::getSubject()->getUID() != 'default') { ?> |
| 14 | <?php $current = $this->getCurrentObject(); ?> |
| 15 | |
| 16 | <div class="aam-post-breadcrumb"> |
| 17 | <a href="#" data-level="root"><i class="icon-home"></i> <?php echo __('Root', AAM_KEY); ?></a> |
| 18 | <?php if ($current->id) { ?> |
| 19 | <span> |
| 20 | <i class="icon-angle-double-right"></i> |
| 21 | <?php echo ($current->type == 'post' ? $current->post->post_title : $current->term->name); ?> |
| 22 | </span> |
| 23 | <?php } ?> |
| 24 | </div> |
| 25 | |
| 26 | <div class="aam-overwrite hidden" id="post-overwritten"> |
| 27 | <span><i class="icon-check"></i> <?php echo __('Settings are customized', AAM_KEY); ?></span> |
| 28 | <span><a href="#" id="post-reset" class="btn btn-xs btn-primary"><?php echo __('Reset To Default', AAM_KEY); ?></a></span> |
| 29 | </div> |
| 30 | |
| 31 | <?php if ($current->id) { ?> |
| 32 | <input type="hidden" id="load-post-object" value="<?php echo ($current->type == 'post' ? $current->post->ID : $current->term->term_id); ?>" /> |
| 33 | <input type="hidden" id="load-post-object-type" value="<?php echo $current->type; ?>" /> |
| 34 | <?php } ?> |
| 35 | |
| 36 | <div class="aam-container"> |
| 37 | <table id="post-list" class="table table-striped table-bordered"> |
| 38 | <thead> |
| 39 | <tr> |
| 40 | <th>ID</th> |
| 41 | <th>Link</th> |
| 42 | <th width="5%"> </th> |
| 43 | <th width="75%"><?php echo __('Title', AAM_KEY); ?></th> |
| 44 | <th><?php echo __('Actions', AAM_KEY); ?></th> |
| 45 | </tr> |
| 46 | </thead> |
| 47 | <tbody></tbody> |
| 48 | </table> |
| 49 | |
| 50 | <div class="aam-slide-form" data-type="type"> |
| 51 | <?php echo apply_filters('aam-post-type-ui-filter', AAM_Backend_View::getInstance()->loadPartial('post-type.phtml')); ?> |
| 52 | <a href="#" class="btn btn-xs btn-primary post-back">≪ <?php echo __('Go Back', AAM_KEY); ?></a> |
| 53 | </div> |
| 54 | |
| 55 | <div class="aam-slide-form" data-type="term"> |
| 56 | <?php echo apply_filters('aam-term-type-ui-filter', AAM_Backend_View::getInstance()->loadPartial('term-type.phtml')); ?> |
| 57 | <a href="#" class="btn btn-xs btn-primary post-back">≪ <?php echo __('Go Back', AAM_KEY); ?></a> |
| 58 | </div> |
| 59 | |
| 60 | <div class="aam-slide-form" data-type="post"> |
| 61 | <table class="table table-striped table-bordered"> |
| 62 | <tbody> |
| 63 | <tr> |
| 64 | <td colspan="2" class="aam-table-group"> |
| 65 | <i class="icon-doc-text-inv"></i> <strong><?php echo __('Frontend', AAM_KEY); ?></strong> |
| 66 | </td> |
| 67 | </tr> |
| 68 | |
| 69 | <?php foreach($this->getAccessOptionList('frontend') as $option => $data) { ?> |
| 70 | <tr> |
| 71 | <td width="90%"> |
| 72 | <strong class="aam-block aam-highlight text-uppercase"><?php echo $data['title']; ?></strong> |
| 73 | <?php if (!empty($data['sub'])) { echo $data['sub']; } ?> |
| 74 | <p class="aam-hint" data-dynamic-post-label="<?php echo $data['descr']; ?>"></p> |
| 75 | </td> |
| 76 | <td> |
| 77 | <div class="aam-row-actions"> |
| 78 | <i class="aam-row-action text-muted icon-check-empty" data-property="frontend.<?php echo $option; ?>"></i> |
| 79 | </div> |
| 80 | </td> |
| 81 | </tr> |
| 82 | <?php } ?> |
| 83 | |
| 84 | <?php do_action('aam-post-access-option-action', 'post', 'frontend'); ?> |
| 85 | |
| 86 | <tr class="aam-backend-post-access"> |
| 87 | <td colspan="2" class="aam-table-group"> |
| 88 | <i class="icon-doc-text-inv"></i> <strong><?php echo __('Backend', AAM_KEY); ?></strong> |
| 89 | </td> |
| 90 | </tr> |
| 91 | |
| 92 | <?php foreach($this->getAccessOptionList('backend') as $option => $data) { ?> |
| 93 | <tr class="aam-backend-post-access"> |
| 94 | <td width="90%"> |
| 95 | <strong class="aam-block aam-highlight text-uppercase"><?php echo $data['title']; ?></strong> |
| 96 | <?php if (!empty($data['sub'])) { echo $data['sub']; } ?> |
| 97 | <p class="aam-hint" data-dynamic-post-label="<?php echo $data['descr']; ?>"></p> |
| 98 | </td> |
| 99 | <td> |
| 100 | <div class="aam-row-actions"> |
| 101 | <i class="aam-row-action text-muted icon-check-empty" data-property="backend.<?php echo $option; ?>"></i> |
| 102 | </div> |
| 103 | </td> |
| 104 | </tr> |
| 105 | <?php } ?> |
| 106 | |
| 107 | <?php do_action('aam-post-access-option-action', 'post', 'backend'); ?> |
| 108 | |
| 109 | </tbody> |
| 110 | </table> |
| 111 | |
| 112 | <a href="#" class="btn btn-xs btn-primary post-back">≪ <?php echo __('Go Back', AAM_KEY); ?></a> |
| 113 | </div> |
| 114 | </div> |
| 115 | <?php } ?> |
| 116 | |
| 117 | <div class="modal fade" id="password-modal" tabindex="-1" role="dialog"> |
| 118 | <div class="modal-dialog modal-sm" role="document"> |
| 119 | <div class="modal-content"> |
| 120 | <div class="modal-header"> |
| 121 | <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo __('Close', AAM_KEY); ?>"><span aria-hidden="true">×</span></button> |
| 122 | <h4 class="modal-title"><?php echo __('Change Password', AAM_KEY); ?></h4> |
| 123 | </div> |
| 124 | <div class="modal-body"> |
| 125 | <div class="form-group"> |
| 126 | <label for="new-role-name"><?php echo __('Password', AAM_KEY); ?></label> |
| 127 | <input type="text" class="form-control" id="password-value" placeholder="<?php echo __('Enter Password', AAM_KEY); ?>" /> |
| 128 | </div> |
| 129 | </div> |
| 130 | <div class="modal-footer"> |
| 131 | <button type="button" class="btn btn-success" id="change-password-btn"><?php echo __('Change', AAM_KEY); ?></button> |
| 132 | <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __('Close', AAM_KEY); ?></button> |
| 133 | </div> |
| 134 | </div> |
| 135 | </div> |
| 136 | </div> |
| 137 | </div> |
| 138 | <?php } |