| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template for display error wrong permalink structure. |
| 4 |
* |
| 5 |
* @version 1.0.1 |
| 6 |
* @since 3.0.0 |
| 7 |
*/ |
| 8 |
|
| 9 |
if ( ! defined( 'ABSPATH' ) ) { |
| 10 |
exit; // Exit if accessed directly |
| 11 |
} |
| 12 |
|
| 13 |
if ( ! isset( $data ) || ! isset( $data['check'] ) || ! $data['check'] ) { |
| 14 |
return; |
| 15 |
} |
| 16 |
?> |
| 17 |
<div id="notice-install" class="lp-notice notice notice-info"> |
| 18 |
<p><?php echo sprintf( '<strong>%s</strong>', __( 'LearnPress LMS is ready to use.', 'learnpress' ) ); ?></p> |
| 19 |
<p> |
| 20 |
<a class="button button-primary" href="<?php echo admin_url( 'index.php?page=lp-setup' ); ?>"><?php _e( 'Quick Setup', 'learnpress' ); ?></a> |
| 21 |
<?php |
| 22 |
if ( isset( $data['allow_dismiss'] ) ) : |
| 23 |
?> |
| 24 |
<button type="button" class="notice-dismiss btn-lp-notice-dismiss" data-dismiss="lp-setup-wizard"> |
| 25 |
<span class="screen-reader-text">Dismiss this notice.</span> |
| 26 |
</button> |
| 27 |
<?php endif; ?> |
| 28 |
</p> |
| 29 |
</div> |
| 30 |
|