-
Notifications
You must be signed in to change notification settings - Fork 135
/
content.php
48 lines (41 loc) · 1.19 KB
/
content.php
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
<?php
/**
* Single certificate main content.
*
* @package LifterLMS/Templates/Certificates
*
* @since 6.0.0
* @version 6.0.0
*
* @param LLMS_User_Certificate $certificate Certificate object.
*/
defined( 'ABSPATH' ) || exit;
?>
<div class="llms-certificate-wrapper">
<div id="certificate-<?php echo esc_attr( $certificate->get( 'id' ) ); ?>" <?php post_class( array( 'llms-certificate-container', 'cert-template-v2' ) ); ?>>
<?php llms_print_notices(); ?>
<?php
/**
* Output content prior to the main content of a single certificate.
*
* @since Unknown.
* @since 6.0.0 Added the `$certificate` parameter.
*
* @param LLMS_User_Certificate $certificate Certificate object.
*/
do_action( 'before_lifterlms_certificate_main_content', $certificate );
?>
<?php echo wp_kses_post( llms_get_certificate_content() ); ?>
<?php
/**
* Output content after to the main content of a single certificate.
*
* @since Unknown.
* @since 6.0.0 Added the `$certificate` parameter.
*
* @param LLMS_User_Certificate $certificate Certificate object.
*/
do_action( 'after_lifterlms_certificate_main_content', $certificate );
?>
</div>
</div>