| Server IP : 104.21.28.229 / Your IP : 216.73.216.142 Web Server : Apache/2 System : Linux hosting8537.lvs 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : mienphi ( 1014) PHP Version : 8.2.14 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/mienphi/public_html/wp-content/plugins/learnpress-certificates/templates/order/ |
Upload File : |
<?php
/***
* Order Certificate Item Details
*
* @version 1.0
* @since 3.1.4
*/
if ( ! isset( $item ) ) {
return;
}
if ( ! empty( $item['_lp_cert_id'] ) ) {
?>
<tr class="order-item-row" data-item_id="<?php echo $item['id']; ?>" data-id="<?php echo $item['_lp_cert_id']; ?>" data-remove_nonce="<?php echo wp_create_nonce( 'remove_order_item' ); ?>">
<td class="column-name">
<?php if ( isset( $order ) && 'pending' === $order->get_status() ) : ?>
<a class="remove-order-item" href="">
<span class="dashicons dashicons-trash"></span>
</a>
<?php endif; ?>
<?php
do_action( 'learn_press/before_order_details_item_title', $item );
$title_course = '';
if ( isset( $item['_lp_course_id_of_cert'] ) ) {
$title_course = get_the_title( $item['_lp_course_id_of_cert'] );
}
$link_item = '<a href="' . get_edit_post_link( $item['_lp_cert_id'] ) . '" target="_blank">' . sprintf( '%s %s - %s', __( 'Certificate:', 'learnpress-certificates' ), get_the_title( $item['_lp_cert_id'] ), $title_course ) . '</a>';
echo apply_filters( 'learn_press/order_detail_cert_item_link', $link_item, $item );
do_action( 'learn_press/after_order_details_cert_item_title', $item );
?>
</td>
<td class="column-price align-right">
<?php echo learn_press_format_price( isset( $item['total'] ) ? $item['total'] : 0, isset( $currency_symbol ) ? $currency_symbol : '$' ); ?>
</td>
<td class="column-quantity align-right">
<small class="times">×</small>
<?php echo isset( $item['quantity'] ) ? $item['quantity'] : 0; ?>
</td>
<td class="column-total align-right"><?php echo learn_press_format_price( isset( $item['total'] ) ? $item['total'] : 0, isset( $currency_symbol ) ? $currency_symbol : '$' ); ?></td>
</tr>
<?php
}