onboarding-ld-exam.php
1.97 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
<?php
/**
* Onboarding Exam (ld-exam)Template. Displayed when no entities were added to help the user.
*
* @since 4.0.0
*
* @var string $screen_post_type
*
* @package LearnDash
*/
namespace LearnDash\Views\Onboarding;
use LearnDash_Custom_Label;
defined( 'ABSPATH' ) || exit;
?>
<section class="ld-onboarding-screen">
<div class="ld-onboarding-main">
<span class="dashicons dashicons-welcome-add-page"></span>
<h2>
<?php
printf(
// translators: placeholder: exams.
esc_html_x( 'You don\'t have any %s yet', 'placeholder: exams', 'learndash' ),
learndash_get_custom_label( 'exams' ) // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Method escapes output
);
?>
</h2>
<p>
<?php
printf(
// translators: placeholder: Exams, Course, Courses.
esc_html_x(
'%1$s are a great way to check if your learners are understanding the %2$s content and allow them to skip %3$s they already know.',
'placeholder: Exams, Course, Courses.',
'learndash'
),
learndash_get_custom_label( 'exams' ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Method escapes output
learndash_get_custom_label( 'course' ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Method escapes output
learndash_get_custom_label( 'courses' ) // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Method escapes output
);
?>
</p>
<a href="<?php echo esc_url( admin_url( 'post-new.php?post_type=' . learndash_get_post_type_slug( 'exam' ) ) ); ?>" class="button button-secondary">
<span class="dashicons dashicons-plus-alt"></span>
<?php
printf(
// translators: placeholder: Exam.
esc_html_x( 'Add your first %s', 'placeholder: Exam', 'learndash' ),
learndash_get_custom_label( 'exam' ) // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Method escapes output
);
?>
</a>
</div> <!-- .ld-onboarding-main -->
</section> <!-- .ld-onboarding-screen -->