-
Notifications
You must be signed in to change notification settings - Fork 135
/
content-legacy.php
56 lines (48 loc) · 1.73 KB
/
content-legacy.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
49
50
51
52
53
54
55
56
<?php
/**
* Single certificate main content.
*
* This is the legacy template for certificates built prior to version 6.
*
* @package LifterLMS/Templates/Certificates
*
* @since 6.0.0
* @version 6.0.0
*
* @param LLMS_User_Certificate $certificate Certificate object.
*/
defined( 'ABSPATH' ) || exit;
$image = llms_get_certificate_image( $certificate->get( 'id' ) );
?>
<div class="llms-certificate-container" style="width:<?php echo esc_attr( $image['width'] ); ?>px; height:<?php echo esc_attr( $image['height'] ); ?>px;">
<img src="<?php echo esc_url( $image['src'] ); ?>" style="margin-bottom:-<?php echo esc_attr( $image['height'] ); ?>px;" alt="<?php esc_html_e( 'Certificate Background', 'lifterlms' ); ?>" class="certificate-background">
<div id="certificate-<?php echo esc_attr( $certificate->get( 'id' ) ); ?>" <?php post_class(); ?>>
<div class="llms-summary">
<?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 );
?>
<h1><?php echo esc_html( llms_get_certificate_title() ); ?></h1>
<?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>
</div>