cron-setting.php
4 months ago
custom-directory.php
1 month ago
directory-navigation.php
2 weeks ago
exclude-settings.php
4 months ago
external-database.php
2 months ago
login-data.php
2 days ago
mail-setting.php
4 months ago
plugins-update.php
1 year ago
process-lock.php
1 year ago
scan.php
2 weeks ago
start.php
1 year ago
symlink-uploads.php
1 year ago
update.php
1 year ago
cron-setting.php
33 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * This file is currently being called for the both FREE and PRO version: |
| 5 | * src/views/clone/ajax/scan.php:64 |
| 6 | * |
| 7 | * @var \WPStaging\Backend\Modules\Jobs\Scan $scan |
| 8 | * @var stdClass $options |
| 9 | * @var boolean $isPro |
| 10 | * |
| 11 | * @see \WPStaging\Backend\Modules\Jobs\Scan::start For details on $options. |
| 12 | */ |
| 13 | |
| 14 | // Settings Enabled by default |
| 15 | use WPStaging\Framework\Facades\UI\Checkbox; |
| 16 | |
| 17 | $settingsEnabled = true; |
| 18 | $isCronEnabled = true; |
| 19 | // If plugin is not pro disable this Option |
| 20 | if (!$isPro) { |
| 21 | $settingsEnabled = false; |
| 22 | }?> |
| 23 | <div class="wpstg--advanced-settings--checkbox"> |
| 24 | <label for="wpstg_enable_cron"><?php esc_html_e('Enable Cron Jobs', 'wp-staging'); ?></label> |
| 25 | <?php Checkbox::render('wpstg_enable_cron', 'wpstg_enable_cron', 'true', $isCronEnabled, ['isDisabled' => !$settingsEnabled]); ?> |
| 26 | <span class="wpstg--tooltip"> |
| 27 | <img class="wpstg--dashicons" src="<?php echo esc_url($scan->getInfoIcon()); ?>" alt="info" /> |
| 28 | <span class="wpstg--tooltiptext"> |
| 29 | <?php esc_html_e('Will enable WordPress cron on the staging site.', 'wp-staging'); ?> |
| 30 | </span> |
| 31 | </span> |
| 32 | </div> |
| 33 |