admin
11 months ago
core
11 months ago
class-activator.php
11 months ago
class-assets.php
11 months ago
class-builder-page.php
1 year ago
class-deactivator.php
3 years ago
class-debug-info.php
2 years ago
class-feed-ajax.php
1 year ago
class-feed-block.php
1 year ago
class-feed-deserializer.php
11 months ago
class-feed-old.php
4 years ago
class-feed-page.php
11 months ago
class-feed-serializer.php
2 years ago
class-feed-shortcode.php
2 years ago
class-feed-widget.php
4 years ago
class-plugin-overview-ajax.php
1 year ago
class-plugin-overview.php
11 months ago
class-plugin-settings.php
10 months ago
class-plugin-support.php
1 year ago
class-plugin.php
11 months ago
class-post-types.php
3 years ago
class-reviews-cron.php
1 year ago
class-settings-save.php
1 year ago
class-view.php
10 months ago
index.php
4 years ago
page-setting-advance.php
1 year ago
page-setting-fig.php
1 year ago
page-setting-support.php
4 years ago
page-setting-advance.php
84 lines
| 1 | <?php |
| 2 | $grw_revupd_cron = get_option('grw_revupd_cron') == '1'; |
| 3 | $grw_debug_mode = get_option('grw_debug_mode') == '1'; |
| 4 | ?> |
| 5 | <form method="post" action="<?php echo esc_url(admin_url('admin-post.php?action=grw_settings_save&grw_tab=advance')); ?>"> |
| 6 | |
| 7 | <div class="grw-field"> |
| 8 | <div class="grw-field-label"> |
| 9 | <label>Reviews update daily schedule is <b><?php echo $grw_revupd_cron ? 'enabled' : 'disabled' ?></b></label> |
| 10 | </div> |
| 11 | <div class="wp-review-field-option"> |
| 12 | <?php wp_nonce_field('grw-wpnonce_revupd_cron', 'grw-form_nonce_revupd_cron'); ?> |
| 13 | <input type="submit" value="<?php echo $grw_revupd_cron ? 'Disable' : 'Enable'; ?>" name="revupd_cron" class="button" /> |
| 14 | </div> |
| 15 | </div> |
| 16 | |
| 17 | <div class="grw-field"> |
| 18 | <div class="grw-field-label"> |
| 19 | <label>Re-create the database tables of the plugin (service option)</label> |
| 20 | </div> |
| 21 | <div class="wp-review-field-option"> |
| 22 | <?php wp_nonce_field('grw-wpnonce_create_db', 'grw-form_nonce_create_db'); ?> |
| 23 | <input type="submit" value="Re-create Database" name="create_db" onclick="return confirm('Are you sure you want to re-create database tables?')" class="button" /> |
| 24 | </div> |
| 25 | </div> |
| 26 | <div class="grw-field"> |
| 27 | <div class="grw-field-label"> |
| 28 | <label><b>Please be careful</b>: this removes all settings, reviews, feeds and install the plugin from scratch</label> |
| 29 | </div> |
| 30 | <div class="wp-review-field-option"> |
| 31 | <?php wp_nonce_field('grw-wpnonce_create_db', 'grw-form_nonce_create_db'); ?> |
| 32 | <input type="submit" value="Install from scratch" name="install" onclick="return confirm('It will delete all current feeds, are you sure you want to install from scratch the plugin?')" class="button" /> |
| 33 | <p><label><input type="checkbox" id="install_multisite" name="install_multisite"> For all sites (WP Multisite)</label></p> |
| 34 | </div> |
| 35 | </div> |
| 36 | <div class="grw-field"> |
| 37 | <div class="grw-field-label"> |
| 38 | <label><b>Please be careful</b>: this removes all plugin-specific settings, reviews and feeds</label> |
| 39 | </div> |
| 40 | <div class="wp-review-field-option"> |
| 41 | <?php wp_nonce_field('grw-wpnonce_reset_all', 'grw-form_nonce_reset_all'); ?> |
| 42 | <input type="submit" value="Delete All Data" name="reset_all" onclick="return confirm('Are you sure you want to reset all plugin data including feeds?')" class="button" /> |
| 43 | <p><label><input type="checkbox" id="reset_all_multisite" name="reset_all_multisite"> For all sites (WP Multisite)</label></p> |
| 44 | </div> |
| 45 | </div> |
| 46 | <div class="grw-field"> |
| 47 | <div class="grw-field-label"> |
| 48 | <label>Remove duplicate reviews</label> |
| 49 | </div> |
| 50 | <div class="wp-review-field-option"> |
| 51 | <?php wp_nonce_field('grw-wpnonce_del_dup_revs', 'grw-form_nonce_del_dup_revs'); ?> |
| 52 | <input type="submit" name="del_dup_revs" value="Remove duplicate reviews" class="button" /> |
| 53 | </div> |
| 54 | </div> |
| 55 | <div class="grw-field"> |
| 56 | <div class="grw-field-label"> |
| 57 | <label>Execute db update manually</label> |
| 58 | </div> |
| 59 | <div class="wp-review-field-option"> |
| 60 | <?php wp_nonce_field('grw-wpnonce_update_db', 'grw-form_nonce_update_db'); ?> |
| 61 | <input type="submit" name="update_db" class="button" /> |
| 62 | <input type="text" name="update_db_ver" style="width:94px;height:22px" placeholder="version" /> |
| 63 | </div> |
| 64 | </div> |
| 65 | <div id="debug_info" class="grw-field"> |
| 66 | <div class="grw-field-label"> |
| 67 | <label>Debug information</label> |
| 68 | </div> |
| 69 | <div class="wp-review-field-option"> |
| 70 | <input type="button" value="Copy Debug Information" name="reset_all" onclick="window.grw_debug_info.select();document.execCommand('copy');window.grw_debug_msg.innerHTML='Debug Information copied, please paste it to your email to support';" class="button" /> |
| 71 | <textarea id="grw_debug_info" style="display:block;width:30em;height:250px;margin-top:10px" onclick="window.grw_debug_info.select();document.execCommand('copy');window.grw_debug_msg.innerHTML='Debug Information copied, please paste it to your email to support';" readonly><?php $this->debug_info->render(); ?></textarea> |
| 72 | <p id="grw_debug_msg"></p> |
| 73 | </div> |
| 74 | </div> |
| 75 | <div class="grw-field" style="display:none"> |
| 76 | <div class="grw-field-label"> |
| 77 | <label>Debug mode is currently <b><?php echo $grw_debug_mode ? 'enabled' : 'disabled' ?></b></label> |
| 78 | </div> |
| 79 | <div class="wp-review-field-option"> |
| 80 | <?php wp_nonce_field('grw-wpnonce_debug_mode', 'grw-form_nonce_debug_mode'); ?> |
| 81 | <input type="submit" name="debug_mode" class="button" value="<?php echo $grw_debug_mode ? 'Disable' : 'Enable'; ?>" /> |
| 82 | </div> |
| 83 | </div> |
| 84 | </form> |