object
9 years ago
partial
9 years ago
contact.phtml
9 years ago
extension.phtml
9 years ago
index.phtml
9 years ago
main-panel.phtml
9 years ago
metabox.phtml
9 years ago
security.phtml
9 years ago
utility.phtml
9 years ago
extension.phtml
139 lines
| 1 | <?php if (defined('AAM_KEY')) { ?> |
| 2 | <div class="aam-feature" id="extension-content"> |
| 3 | <div class="row"> |
| 4 | <div class="col-xs-12"> |
| 5 | <p class="aam-info"> |
| 6 | <?php echo AAM_Backend_View_Helper::preparePhrase('By purchasing any extension below you obtain a license that does not expire but is limited to one website. However, the license can be used for unlimited number of test or development environments where URL is either [localhost] or starts with [dev.], [staging.], [test.] or [demo.] Contact us immediately if you have troubles installing license on your website. [Money back guaranteed] within 30 day from the time of purchase.', 'i', 'i', 'i', 'i', 'i', 'b'); ?><br/> |
| 7 | </p> |
| 8 | </div> |
| 9 | </div> |
| 10 | |
| 11 | <label for="extension-key"><?php echo __('Install/Update Extension', AAM_KEY); ?> <a href="#install-extension-modal" data-toggle="modal"><i class="icon-help-circled"></i></a></label> |
| 12 | <div class="row"> |
| 13 | <div class="col-xs-8"> |
| 14 | <div class="form-group"> |
| 15 | <input type="text" class="form-control" id="extension-key" placeholder="<?php echo __('License Key', AAM_KEY); ?>" /> |
| 16 | </div> |
| 17 | </div> |
| 18 | <div class="col-xs-4"> |
| 19 | <button class="btn btn-primary btn-block" id="install-extension"><i class="icon-download-cloud"></i> <?php echo __('Submit', AAM_KEY); ?></button> |
| 20 | </div> |
| 21 | </div> |
| 22 | |
| 23 | <?php $commercial = $this->getList('commercial'); ?> |
| 24 | <?php $free = $this->getList('GNU'); ?> |
| 25 | |
| 26 | <div> |
| 27 | <ul class="nav nav-tabs" role="tablist"> |
| 28 | <?php if(count($commercial)) { ?><li role="presentation" class="active"><a href="#premium-extensions" aria-controls="premium-extensions" role="tab" data-toggle="tab"><i class='icon-basket'></i> <?php echo __('Premium', AAM_KEY); ?></a></li><?php } ?> |
| 29 | <?php if(count($free)) { ?><li role="presentation" <?php echo (!count($commercial) ? 'class="active"' : ''); ?>><a href="#free-extensions" aria-controls="free-extensions" role="tab" data-toggle="tab"><i class='icon-download-cloud'></i> <?php echo __('Free', AAM_KEY); ?></a></li><?php } ?> |
| 30 | <li style="float:right;"><a href="#" id="update-check" data-toggle="tooltip" title="<?php echo __('Check For Updates', AAM_KEY); ?>"><small><i class="icon-arrows-cw"></i> <?php echo __('Check', AAM_KEY); ?></small></a></li> |
| 31 | </ul> |
| 32 | |
| 33 | <!-- Tab panes --> |
| 34 | <div class="tab-content"> |
| 35 | <div role="tabpanel" class="tab-pane<?php echo (count($commercial) ? ' active' : ''); ?>" id="premium-extensions"> |
| 36 | <table class="table table-striped table-bordered"> |
| 37 | <tbody> |
| 38 | <?php foreach ($commercial as $product) { ?> |
| 39 | <tr> |
| 40 | <td> |
| 41 | <span class='aam-setting-title'><?php echo $product['title'], (!empty($product['new']) ? ' <span class="badge">NEW</span> ' : ''), (!empty($product['version']) ? ' <small class="text-muted">v' . $product['version'] . '</small>' : ''), ' - ' . ($product['price'] . ' <small>' . $product['currency'] . '</small>'); ?></span> |
| 42 | <?php if (!empty($product['license'])) { ?><small class="aam-license-key"><b>License Key:</b> <?php echo $product['license']; ?></small><?php } ?> |
| 43 | <p class="aam-extension-description"> |
| 44 | <?php echo $product['description']; ?> |
| 45 | </p> |
| 46 | </td> |
| 47 | <td> |
| 48 | <?php if ($product['status'] == AAM_Extension_Repository::STATUS_INSTALLED) { ?> |
| 49 | <span class="aam-extension-installed"><i class="icon-check"></i> <?php echo __('Installed', AAM_KEY); ?></span> |
| 50 | <?php } elseif ($product['status'] == AAM_Extension_Repository::STATUS_UPDATE) { ?> |
| 51 | <a href="#" class="btn btn-sm btn-warning btn-block aam-update-extension" data-product="<?php echo $product['id']; ?>"><i class="icon-arrows-cw"></i> <?php echo __('Update', AAM_KEY); ?></a> |
| 52 | <?php } elseif ($product['status'] == AAM_Extension_Repository::STATUS_INACTIVE) { ?> |
| 53 | <span class="aam-extension-inactive"><i class="icon-stop"></i> <?php echo __('Inactive', AAM_KEY); ?></span> |
| 54 | <?php } else { ?> |
| 55 | <a href="<?php echo $product['storeURL']; ?>" target="_blank" class="btn btn-sm btn-success btn-block"><i class="icon-basket"></i> <?php echo __('Purchase', AAM_KEY); ?></a> |
| 56 | <?php } ?> |
| 57 | </td> |
| 58 | </tr> |
| 59 | <?php } ?> |
| 60 | </tbody> |
| 61 | </table> |
| 62 | </div> |
| 63 | <div role="tabpanel" class="tab-pane" id="free-extensions"> |
| 64 | <table class="table table-striped table-bordered"> |
| 65 | <tbody> |
| 66 | <?php foreach ($free as $product) { ?> |
| 67 | <tr> |
| 68 | <td> |
| 69 | <span class='aam-setting-title'><?php echo $product['title'], (!empty($product['version']) ? ' <small class="text-muted">v' . $product['version'] . '</small>' : ''), ' - ' . ('<span class="text-success">' . __('Free', AAM_KEY) . '</span>'); ?></span> |
| 70 | <p class="aam-extension-description"> |
| 71 | <?php echo $product['description']; ?> |
| 72 | </p> |
| 73 | </td> |
| 74 | <td> |
| 75 | <?php if ($product['status'] == AAM_Extension_Repository::STATUS_INSTALLED) { ?> |
| 76 | <span class="aam-extension-installed"><i class="icon-check"></i> <?php echo __('Installed', AAM_KEY); ?></span> |
| 77 | <?php } elseif ($product['status'] == AAM_Extension_Repository::STATUS_UPDATE) { ?> |
| 78 | <a href="#" class="btn btn-sm btn-warning btn-block aam-update-extension" data-product="<?php echo $product['id']; ?>"><i class="icon-arrows-cw"></i> <?php echo __('Update', AAM_KEY); ?></a> |
| 79 | <?php } else { ?> |
| 80 | <a href="#" class="btn btn-sm btn-success btn-block aam-download-extension" data-license="<?php echo $product['license']; ?>"><i class="icon-download-cloud"></i> <?php echo __('Download', AAM_KEY); ?></a> |
| 81 | <?php } ?> |
| 82 | </td> |
| 83 | </tr> |
| 84 | <?php } ?> |
| 85 | </tbody> |
| 86 | </table> |
| 87 | </div> |
| 88 | </div> |
| 89 | </div> |
| 90 | |
| 91 | <div class="modal fade" id="extension-notification-modal" tabindex="-1" role="dialog"> |
| 92 | <div class="modal-dialog" role="document"> |
| 93 | <div class="modal-content"> |
| 94 | <div class="modal-header"> |
| 95 | <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo __('Close', AAM_KEY); ?>"><span aria-hidden="true">×</span></button> |
| 96 | <h4 class="modal-title"><?php echo __('Notification', AAM_KEY); ?></h4> |
| 97 | </div> |
| 98 | <div class="modal-body"> |
| 99 | <p class="aam-notification"> |
| 100 | <strong><span id="installation-error"></span></strong> <?php echo __('Extension requires manual installation. Please follow few simple steps below.', AAM_KEY); ?> |
| 101 | </p> |
| 102 | |
| 103 | <ul class="aam-outer-top-xs aam-numeric-list"> |
| 104 | <li><?php echo AAM_Backend_View_Helper::preparePhrase('Click [Download] button below and save the zip archive on your computer', 'b'); ?>;</li> |
| 105 | <li><?php echo AAM_Backend_View_Helper::preparePhrase('Connect to your website via FTP and navigate to [wp-content] folder', 'b'); ?>;</li> |
| 106 | <li><?php echo AAM_Backend_View_Helper::preparePhrase('Create [aam/extension] folder inside [wp-content] and make sure it is writable by your server', 'b', 'b'); ?>;</li> |
| 107 | <li><?php echo AAM_Backend_View_Helper::preparePhrase('Unzip downloaded archive and upload the folder inside the [wp-content/aam/extension] folder', 'b'); ?>.</li> |
| 108 | </ul> |
| 109 | </div> |
| 110 | <div class="modal-footer"> |
| 111 | <button type="button" class="btn btn-success" id="download-extension"><?php echo __('Download', AAM_KEY); ?></button> |
| 112 | <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __('Cancel', AAM_KEY); ?></button> |
| 113 | </div> |
| 114 | </div> |
| 115 | </div> |
| 116 | </div> |
| 117 | |
| 118 | <div class="modal fade" id="install-extension-modal" tabindex="-1" role="dialog"> |
| 119 | <div class="modal-dialog" role="document"> |
| 120 | <div class="modal-content"> |
| 121 | <div class="modal-header"> |
| 122 | <button type="button" class="close" data-dismiss="modal" aria-label="<?php echo __('Close', AAM_KEY); ?>"><span aria-hidden="true">×</span></button> |
| 123 | <h4 class="modal-title"><?php echo __('Install Extension', AAM_KEY); ?></h4> |
| 124 | </div> |
| 125 | <div class="modal-body aam-info-modal"> |
| 126 | <p> |
| 127 | <?php echo __('Insert license key that you recieved after the payment (find the email example below). It might take up to 2 hours to process the payment. Please remember that license key is limited only to one life domain.', AAM_KEY); ?> |
| 128 | <br /> <br /> |
| 129 | <img src="https://aamplugin.com/media/img/email-confirmation.jpg" class="img-responsive" /> |
| 130 | </p> |
| 131 | </div> |
| 132 | <div class="modal-footer"> |
| 133 | <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo __('Close', AAM_KEY); ?></button> |
| 134 | </div> |
| 135 | </div> |
| 136 | </div> |
| 137 | </div> |
| 138 | </div> |
| 139 | <?php } |