Skip to content
Merged
6 changes: 5 additions & 1 deletion templates/content-certificate.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

<form action="" method="POST">
<button class="llms-button-secondary" type="submit" name="llms_generate_cert">
<?php echo _e( 'Save', 'lifterlms' ); ?>
<?php echo _e( 'Download', 'lifterlms' ); ?>
<i class="fa fa-cloud-download" aria-hidden="true"></i>
</button>
<?php if ( get_post_type( $cert->get( 'id' ) ) === $cert->get( 'db_post_type' ) ) : ?>
Expand All @@ -54,6 +54,10 @@
</button>
<?php endif; ?>

<?php if ( $is_sharing_enabled ) : ?>
<input disabled="disabled" name="llms_sharing_permalink" value="<?php echo esc_url( get_permalink( get_the_ID() ) ); ?>">
<?php endif; ?>

<input type="hidden" name="certificate_id" value="<?php echo get_the_ID(); ?>">
<?php wp_nonce_field( 'llms-cert-actions', '_llms_cert_actions_nonce' ); ?>
</form>
Expand Down