| 1 |
<?php |
| 2 |
|
| 3 |
use Dev4Press\Plugin\SweepPress\Basic\Database; |
| 4 |
use Dev4Press\Plugin\SweepPress\Meta\Tracker; |
| 5 |
use function Dev4Press\v55\Functions\panel; |
| 6 |
|
| 7 |
if ( ! defined( 'ABSPATH' ) ) { |
| 8 |
exit; |
| 9 |
} |
| 10 |
|
| 11 |
?> |
| 12 |
<div class="d4p-content d4p-setup-wrapper"> |
| 13 |
<div class="d4p-update-info"> |
| 14 |
<?php |
| 15 |
|
| 16 |
Tracker::i()->prepare_plugins(); |
| 17 |
Tracker::i()->prepare_themes(); |
| 18 |
|
| 19 |
sweeppress_settings()->set( 'install', false, 'info' ); |
| 20 |
sweeppress_settings()->set( 'update', false, 'info', true ); |
| 21 |
|
| 22 |
sweeppress_settings()->set( 'database', Database::i()->total_wp( 'estimate' ), 'statistics', true ); |
| 23 |
|
| 24 |
?> |
| 25 |
|
| 26 |
<div class="d4p-install-block"> |
| 27 |
<h4> |
| 28 |
<?php esc_html_e( 'All Done', 'sweeppress' ); ?> |
| 29 |
</h4> |
| 30 |
<div> |
| 31 |
<?php esc_html_e( 'Installation completed.', 'sweeppress' ); ?> |
| 32 |
</div> |
| 33 |
</div> |
| 34 |
|
| 35 |
<div class="d4p-install-confirm"> |
| 36 |
<a class="button-primary" href="<?php echo esc_url( panel()->a()->panel_url( 'about' ) ); ?>&install"><?php esc_html_e( 'Click here to continue', 'sweeppress' ); ?></a> |
| 37 |
</div> |
| 38 |
</div> |
| 39 |
<?php echo sweeppress()->recommend( 'install' ); // phpcs:ignore WordPress.Security.EscapeOutput ?> |
| 40 |
</div> |