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-advanced-settings.phtml
135 lines
| 1 | <?php if (defined('AAM_KEY')) { ?> |
| 2 | <div class="modal fade" id="modal-teaser" tabindex="-1" role="dialog"> |
| 3 | <div class="modal-dialog" role="document"> |
| 4 | <div class="modal-content"> |
| 5 | <div class="modal-header"> |
| 6 | <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo __('Close', AAM_KEY); ?>"><span aria-hidden="true">×</span></button> |
| 7 | <h4 class="modal-title"><?php echo __('Teaser Message', AAM_KEY); ?></h4> |
| 8 | </div> |
| 9 | <div class="modal-body"> |
| 10 | <div class="form-group"> |
| 11 | <label><?php echo __('Simple text or valid HTML', AAM_KEY); ?></label> |
| 12 | <textarea class="form-control" placeholder="<?php echo __('Enter your teaser', AAM_KEY); ?>" rows="5" id="aam-teaser-message"></textarea> |
| 13 | </div> |
| 14 | </div> |
| 15 | <div class="modal-footer"> |
| 16 | <button type="button" class="btn btn-success extended-post-access-btn" data-modal="#modal-teaser" data-field="#aam-teaser-message"><?php echo __('Save', AAM_KEY); ?></button> |
| 17 | <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __('Close', AAM_KEY); ?></button> |
| 18 | </div> |
| 19 | </div> |
| 20 | </div> |
| 21 | </div> |
| 22 | |
| 23 | <div class="modal fade" id="modal-access-counter" tabindex="-1" role="dialog"> |
| 24 | <div class="modal-dialog modal-sm" role="document"> |
| 25 | <div class="modal-content"> |
| 26 | <div class="modal-header"> |
| 27 | <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo __('Close', AAM_KEY); ?>"><span aria-hidden="true">×</span></button> |
| 28 | <h4 class="modal-title"><?php echo __('Define Threshold', AAM_KEY); ?></h4> |
| 29 | </div> |
| 30 | <div class="modal-body"> |
| 31 | <div class="form-group"> |
| 32 | <label><?php echo __('Threshold', AAM_KEY); ?></label> |
| 33 | <input type="text" class="form-control" placeholder="<?php echo __('Enter digital number', AAM_KEY); ?>" id="aam-read-counter" /> |
| 34 | </div> |
| 35 | </div> |
| 36 | <div class="modal-footer"> |
| 37 | <button type="button" class="btn btn-success extended-post-access-btn" data-modal="#modal-access-counter" data-field="#aam-read-counter"><?php echo __('Update', AAM_KEY); ?></button> |
| 38 | <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __('Close', AAM_KEY); ?></button> |
| 39 | </div> |
| 40 | </div> |
| 41 | </div> |
| 42 | </div> |
| 43 | |
| 44 | <div class="modal fade" id="modal-password" tabindex="-1" role="dialog"> |
| 45 | <div class="modal-dialog modal-sm" role="document"> |
| 46 | <div class="modal-content"> |
| 47 | <div class="modal-header"> |
| 48 | <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo __('Close', AAM_KEY); ?>"><span aria-hidden="true">×</span></button> |
| 49 | <h4 class="modal-title"><?php echo __('Set Password', AAM_KEY); ?></h4> |
| 50 | </div> |
| 51 | <div class="modal-body"> |
| 52 | <div class="form-group"> |
| 53 | <label><?php echo __('Password', AAM_KEY); ?></label> |
| 54 | <input type="text" class="form-control" placeholder="<?php echo __('Enter Password', AAM_KEY); ?>" id="aam-access-password" /> |
| 55 | </div> |
| 56 | </div> |
| 57 | <div class="modal-footer"> |
| 58 | <button type="button" class="btn btn-success extended-post-access-btn" data-modal="#modal-password" data-field="#aam-access-password"><?php echo __('Update', AAM_KEY); ?></button> |
| 59 | <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __('Close', AAM_KEY); ?></button> |
| 60 | </div> |
| 61 | </div> |
| 62 | </div> |
| 63 | </div> |
| 64 | |
| 65 | <div class="modal fade" id="modal-redirect" tabindex="-1" role="dialog"> |
| 66 | <div class="modal-dialog" role="document"> |
| 67 | <div class="modal-content"> |
| 68 | <div class="modal-header"> |
| 69 | <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo __('Close', AAM_KEY); ?>"><span aria-hidden="true">×</span></button> |
| 70 | <h4 class="modal-title"><?php echo __('Define Redirect Rule', AAM_KEY); ?></h4> |
| 71 | </div> |
| 72 | <div class="modal-body"> |
| 73 | <p class="aam-info"><?php echo sprintf(AAM_Backend_View_Helper::preparePhrase('To learn more about REDIRECT option, please refer to our [%sHelp Section%s].', 'b'), '<a href="https://aamplugin.com/help#post-redirect" target="_blank">', '</a>'); ?></p> |
| 74 | <div class="form-group aam-outer-top-xs"> |
| 75 | <label><?php echo __('Enter Redirect Rule', AAM_KEY); ?></label> |
| 76 | <input type="text" class="form-control" placeholder="<?php echo __('Enter rule', AAM_KEY); ?>" id="aam-access-redirect" /> |
| 77 | </div> |
| 78 | </div> |
| 79 | <div class="modal-footer"> |
| 80 | <button type="button" class="btn btn-success extended-post-access-btn" data-modal="#modal-redirect" data-field="#aam-access-redirect"><?php echo __('Update', AAM_KEY); ?></button> |
| 81 | <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __('Close', AAM_KEY); ?></button> |
| 82 | </div> |
| 83 | </div> |
| 84 | </div> |
| 85 | </div> |
| 86 | |
| 87 | <div class="modal fade" id="modal-access-expires" tabindex="-1" role="dialog"> |
| 88 | <div class="modal-dialog" role="document"> |
| 89 | <div class="modal-content"> |
| 90 | <div class="modal-header"> |
| 91 | <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo __('Close', AAM_KEY); ?>"><span aria-hidden="true">×</span></button> |
| 92 | <h4 class="modal-title"><?php echo __('Set Expiration', AAM_KEY); ?></h4> |
| 93 | </div> |
| 94 | <div class="modal-body"> |
| 95 | <p class="aam-info"> |
| 96 | The expiration criteria expects to be given a string containing a valid <a href="http://php.net/manual/en/datetime.formats.php" target="_blank">date/time format or mathematical expression</a>. |
| 97 | Dates in the m/d/y or d-m-y formats are disambiguated by looking at the separator between the various components: if the separator is a slash (/), then the American m/d/y is assumed; whereas if the separator is a dash (-) or a dot (.), then the European d-m-y format is assumed. |
| 98 | To avoid potential ambiguity, it's best to use ISO 8601 (YYYY-MM-DD) dates whenever possible.<br/><br/> |
| 99 | Examples: +2 weeks (the access will expire in 2 weeks from now); +10 hours (the access will expire in 10 hours from now); January 1st 2018; 10/08/2019 |
| 100 | </p> |
| 101 | <div class="form-group"> |
| 102 | <label><?php echo __('Enter expiration critiria', AAM_KEY); ?></label> |
| 103 | <input type="text" class="form-control" placeholder="<?php echo __('Enter critiria', AAM_KEY); ?>" id="aam-expire-datetime" /> |
| 104 | </div> |
| 105 | </div> |
| 106 | <div class="modal-footer"> |
| 107 | <button type="button" class="btn btn-success extended-post-access-btn" data-modal="#modal-access-expires" data-field="#aam-expire-datetime"><?php echo __('Update', AAM_KEY); ?></button> |
| 108 | <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __('Close', AAM_KEY); ?></button> |
| 109 | </div> |
| 110 | </div> |
| 111 | </div> |
| 112 | </div> |
| 113 | |
| 114 | <div class="modal fade" id="modal-eproduct" tabindex="-1" role="dialog"> |
| 115 | <div class="modal-dialog" role="document"> |
| 116 | <div class="modal-content"> |
| 117 | <div class="modal-header"> |
| 118 | <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo __('Close', AAM_KEY); ?>"><span aria-hidden="true">×</span></button> |
| 119 | <h4 class="modal-title"><?php echo __('E-Commerce Setup', AAM_KEY); ?></h4> |
| 120 | </div> |
| 121 | <div class="modal-body"> |
| 122 | <?php |
| 123 | echo apply_filters( |
| 124 | 'aam-frontend-eproduct-setup', |
| 125 | '<p class="alert alert-warning text-center">' . sprintf(AAM_Backend_View_Helper::preparePhrase('Monetization is the premium feature that is available with %s[E-Commerce]%s extension.', 'b'), '<a href="https://aamplugin.com/extension/ecommerce" target="_blank">', '</a>') . '</p>' |
| 126 | ); |
| 127 | ?> |
| 128 | </div> |
| 129 | <div class="modal-footer"> |
| 130 | <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __('Close', AAM_KEY); ?></button> |
| 131 | </div> |
| 132 | </div> |
| 133 | </div> |
| 134 | </div> |
| 135 | <?php } |