configpress.phtml
8 years ago
content.phtml
8 years ago
core.phtml
8 years ago
tools.phtml
8 years ago
tools.phtml
74 lines
| 1 | <?php if (defined('AAM_KEY')) { ?> |
| 2 | <div class="aam-feature settings" id="settings-tools-content"> |
| 3 | <div role="tabpanel" class="tab-pane" id="utility-tools"> |
| 4 | <table class="table table-striped table-bordered"> |
| 5 | <tbody> |
| 6 | <tr> |
| 7 | <td> |
| 8 | <span class='aam-setting-title'><?php echo __('Export AAM Settings', AAM_KEY); ?></span> |
| 9 | <p class="aam-setting-description"> |
| 10 | <?php echo sprintf(__('Export selected AAM settings to the file. For more information about this feature check %sHow to export and import AAM settings%s article.', AAM_KEY), '<a href="https://aamplugin.com/help/how-to-export-and-import-aam-settings" target="_blank">', '</a>'); ?> |
| 11 | </p> |
| 12 | </td> |
| 13 | <td> |
| 14 | <a href="#" class="btn btn-success btn-block" id="export-aam">Export</a> |
| 15 | </td> |
| 16 | </tr> |
| 17 | <tr> |
| 18 | <td> |
| 19 | <span class='aam-setting-title'><?php echo __('Import AAM Settings', AAM_KEY); ?></span> |
| 20 | <p class="aam-setting-description"> |
| 21 | <?php echo __('Import AAM settings from the file.', AAM_KEY); ?> |
| 22 | </p> |
| 23 | </td> |
| 24 | <td> |
| 25 | <div class="hidden"><input type="file" id="aam-import-file" /></div> |
| 26 | <a href="#" class="btn btn-warning btn-block" id="import-aam">Import</a> |
| 27 | </td> |
| 28 | </tr> |
| 29 | <tr> |
| 30 | <td> |
| 31 | <span class='aam-setting-title'><?php echo __('Clear Cache', AAM_KEY); ?></span> |
| 32 | <p class="aam-setting-description"> |
| 33 | <?php echo __('Clear all AAM cache.', AAM_KEY); ?> |
| 34 | </p> |
| 35 | </td> |
| 36 | <td> |
| 37 | <a href="#" class="btn btn-primary btn-block" id="clear-cache">Clear</a> |
| 38 | </td> |
| 39 | </tr> |
| 40 | <tr> |
| 41 | <td> |
| 42 | <span class='aam-setting-title'><?php echo __('Clear All Settings', AAM_KEY); ?></span> |
| 43 | <p class="aam-setting-description"> |
| 44 | <?php echo __('Remove all the settings related to AAM from the database.', AAM_KEY); ?> |
| 45 | </p> |
| 46 | </td> |
| 47 | <td> |
| 48 | <a href="#clear-settings-modal" data-toggle="modal" class="btn btn-danger btn-block">Clear</a> |
| 49 | </td> |
| 50 | </tr> |
| 51 | </tbody> |
| 52 | </table> |
| 53 | </div> |
| 54 | |
| 55 | <div class="modal fade" id="clear-settings-modal" tabindex="-1" role="dialog"> |
| 56 | <div class="modal-dialog modal-sm" role="document"> |
| 57 | <div class="modal-content"> |
| 58 | <div class="modal-header"> |
| 59 | <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo __('Close', AAM_KEY); ?>"><span aria-hidden="true">×</span></button> |
| 60 | <h4 class="modal-title"><?php echo __('Clear all settings', AAM_KEY); ?></h4> |
| 61 | </div> |
| 62 | <div class="modal-body"> |
| 63 | <p class="text-center alert alert-danger text-larger"><?php echo __('All AAM settings will be removed.', AAM_KEY); ?></p> |
| 64 | </div> |
| 65 | <div class="modal-footer"> |
| 66 | <button type="button" class="btn btn-danger" id="clear-settings"><?php echo __('Clear', AAM_KEY); ?></button> |
| 67 | <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __('Cancel', AAM_KEY); ?></button> |
| 68 | </div> |
| 69 | </div> |
| 70 | </div> |
| 71 | </div> |
| 72 | </div> |
| 73 | <?php |
| 74 | } |