help.php
2.8 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
<?php
/**
* Template page for LearnDash in-app help page.
*
* @package LearnDash_Settings_Page_Help
*
* @var array<string, array<string, string>> $categories
*/
if ( ! defined( 'ABSPATH' ) ) {
exit();
}
?>
<div class="wrap learndash-support">
<div class="logo">
<img
src="<?php echo esc_url( LEARNDASH_LMS_PLUGIN_URL . '/assets/images/support/learndash-logo.svg' ); ?>"
alt="LearnDash"
>
</div>
<div class="hero">
<h1><?php esc_html_e( 'Support', 'learndash' ); ?></h1>
<p class="tagline"><?php esc_html_e( 'We\'re here to help you succeed.', 'learndash' ); ?></h2>
</div>
<div class="search box">
<h2><?php esc_html_e( 'Got a question?', 'learndash' ); ?></h2>
<div class="fields">
<div class="form-wrapper">
<form
method="POST"
name="search"
id="search-form"
>
<input
type="text"
name="keyword"
placeholder="<?php esc_html_e( 'Search Our Knowledge Base', 'learndash' ); ?>"
>
<button
type="submit"
class="submit-button"
>
<span class="dashicons dashicons-search submit"></span>
</button>
</form>
</div>
</div>
</div>
<div class="answers box">
<div class="headline-wrapper">
<div class="headline">
<h2><?php esc_html_e( 'Find The Answers', 'learndash' ); ?></h2>
<p class="description">
<?php
esc_html_e(
'We\'ve categorized our documentation
to help your most pressing questions.',
'learndash'
)
?>
</p>
</div>
<div class="buttons">
<p><?php esc_html_e( 'Can\'t find what you\'re looking for?', 'learndash' ); ?></p>
<a
class="button create-ticket"
href="https://account.learndash.com/?tab=support"
target="_blank"
rel="noreferrer noopener"
>
<?php esc_html_e( 'Create A Support Ticket', 'learndash' ); ?>
</a>
</div>
</div>
<div class="grid">
<?php // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound?>
<?php foreach ( $categories as $category_id => $category ) : ?>
<div
class="item"
id="item-<?php echo esc_attr( $category['id'] ); ?>"
data-id="<?php echo esc_attr( $category['id'] ); ?>"
>
<div class="label-wrapper">
<span class="icon">
<?php // phpcs:ignore Generic.Files.LineLength.TooLong?>
<img src="<?php echo esc_url( LEARNDASH_LMS_PLUGIN_URL . '/assets/images/support/' . $category['icon'] . '.png' ); ?>" alt="" >
</span>
<h3><?php echo esc_html( $category['label'] ); ?></h3>
<span class="icon icon-external dashicons dashicons-external"></span>
</div>
<?php if ( ! empty( $category['description'] ) ) : ?>
<p class="description"><?php echo esc_html( $category['description'] ); ?></p>
<?php endif; ?>
</div>
<?php endforeach; ?>
</div>
</div>
</div>