| 1 |
<?php |
| 2 |
/** |
| 3 |
* Template for displaying header of setup wizard. |
| 4 |
* |
| 5 |
* @author ThimPres |
| 6 |
* @package LearnPress/Admin/Views |
| 7 |
* @version 3.0.1 |
| 8 |
*/ |
| 9 |
|
| 10 |
defined( 'ABSPATH' ) || exit; |
| 11 |
|
| 12 |
$wizard = LP_Setup_Wizard::instance(); |
| 13 |
$current_step = $wizard->get_current_step(); |
| 14 |
$is_welcome_step = 'welcome' === $current_step; |
| 15 |
$body_classes = array( 'lp-setup', 'wp-core-ui', 'js' ); |
| 16 |
$body_classes[] = $is_welcome_step ? 'lp-setup--welcome' : 'lp-setup--wizard'; |
| 17 |
$body_classes[] = 'lp-setup-step--' . sanitize_html_class( $current_step ); |
| 18 |
?> |
| 19 |
<!DOCTYPE html> |
| 20 |
<html <?php language_attributes(); ?>> |
| 21 |
<head> |
| 22 |
<meta name="viewport" content="width=device-width"/> |
| 23 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> |
| 24 |
<title><?php esc_html_e( 'LearnPress › Setup Wizard', 'learnpress' ); ?></title> |
| 25 |
<?php |
| 26 |
|
| 27 |
$assets = LP_Admin_Assets::instance(); |
| 28 |
$assets->load_scripts(); |
| 29 |
wp_dequeue_script( 'lp-admin' ); |
| 30 |
|
| 31 |
wp_print_styles( 'buttons' ); |
| 32 |
wp_print_styles( 'common' ); |
| 33 |
wp_print_styles( 'forms' ); |
| 34 |
wp_print_styles( 'lp-admin' ); |
| 35 |
wp_print_styles( 'lp-setup-wizard' ); |
| 36 |
|
| 37 |
// Remove load Jquery |
| 38 |
global $wp_scripts; |
| 39 |
$wp_scripts->remove('common'); |
| 40 |
$wp_scripts->remove('jquery'); |
| 41 |
// End remove load Jquery |
| 42 |
|
| 43 |
do_action( 'admin_print_scripts' ); |
| 44 |
wp_print_scripts( 'lp-setup-wizard' ); |
| 45 |
?> |
| 46 |
</head> |
| 47 |
<body class="<?php echo esc_attr( implode( ' ', $body_classes ) ); ?>"> |
| 48 |
<div id="content"> |
| 49 |
<div class="logo"> |
| 50 |
<a href="javascript:void(0)"> |
| 51 |
<?php $logo_url = LP_PLUGIN_URL . 'assets/images/lp-logo-row.png'; ?> |
| 52 |
<img src="<?php echo esc_url( $logo_url ); ?>" alt="<?php esc_attr_e( 'LearnPress', 'learnpress' ); ?>"> |
| 53 |
</a> |
| 54 |
</div> |
| 55 |
|