wizard-1.php
3.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?php
/**
* Setup wizard template of page 1
*
* @package LearnDash_Design_Wizard
*
* @var array<string, mixed> $templates
* @var LearnDash_Design_Wizard $design_wizard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit();
}
?>
<div class="design-wizard">
<div class="sidebar">
<div class="logo">
<?php // phpcs:ignore Generic.Files.LineLength.TooLong?>
<img src="<?php echo esc_url( \LEARNDASH_LMS_PLUGIN_URL . '/assets/images/learndash.svg' ); ?>"
alt="LearnDash" >
</div>
<div class="header">
<h1 class="title">
<?php esc_html_e( 'Choose a template', 'learndash' ); ?>
</h1>
<p class="description">
<?php
esc_html_e(
'Our setup wizard will help you
get the most out of your store.',
'learndash'
);
?>
</p>
</div>
</div>
<div class="content">
<div class="header">
<div class="exit">
<span class="text"><?php esc_html_e( 'Exit to Setup', 'learndash' ); ?></span>
<?php // phpcs:ignore Generic.Files.LineLength.TooLong?>
<img src="<?php echo esc_url( \LEARNDASH_LMS_PLUGIN_URL . '/assets/images/design-wizard/svg/exit.svg' ); ?>" >
</div>
</div>
<div class="templates">
<?php // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound?>
<?php foreach ( $templates as $template_details ) : ?>
<?php
SFWD_LMS::get_view(
'design-wizard/template',
compact( 'template_details', 'design_wizard' ),
true
);
?>
<?php endforeach; ?>
</div>
<div class="footer">
<div class="back">
<?php // phpcs:ignore Generic.Files.LineLength.TooLong?>
<img class="icon" src="<?php echo esc_url( \LEARNDASH_LMS_PLUGIN_URL . '/assets/images/design-wizard/svg/back.svg' ); ?>" >
<span class="text"><?php esc_html_e( 'Back', 'learndash' ); ?></span>
</div>
<div class="steps">
<ol class="list">
<li class="active"><span class="number">1</span> <span
class="text"><?php esc_html_e( 'Choose a template', 'learndash' ); ?></span></li>
<li><span class="number">2</span> <span
class="text"><?php esc_html_e( 'Fonts', 'learndash' ); ?></span></li>
<li><span class="number">3</span> <span
class="text"><?php esc_html_e( 'Colors', 'learndash' ); ?></span></li>
</ol>
</div>
<div class="buttons">
<a
href="#"
class="button next-button"
><?php esc_html_e( 'Next', 'learndash' ); ?></a>
</div>
</div>
</div>
<div class="preview-wrapper">
<div class="background"></div>
<div class="preview">
<div class="text-wrapper"><?php esc_html_e( 'Loading', 'learndash' ); ?>...</div>
<div class="buttons-wrapper">
<div class="close">
<span class="icon dashicons dashicons-no-alt"></span>
<span class="text"><?php esc_html_e( 'Close', 'learndash' ); ?></span>
</div>
<div class="clear"></div>
</div>
<div class="iframe-wrapper">
<iframe
class="ld-site-preview"
id="ld-site-preview"
src=""
frameborder="0"
></iframe>
</div>
</div>
</div>
<div id="ld_dw_initial_confirm">
<?php
$learndash_dw_confirm_message = sprintf(
__(
'<strong>Notice:</strong> This is an optional step and not required to run LearnDash.
<p>If you already have a theme configured on your site, you can skip this process.</p>',
'learndash'
)
);
echo wp_kses_post( $learndash_dw_confirm_message );
?>
</div>
</div>