Skip to content

Commit b3ff71d

Browse files
fix files download
1 parent 28dab66 commit b3ff71d

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

inc/functions.php

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,17 +1595,9 @@ function ppom_generate_html_for_files( $file_names, $input_type, $item ) {
15951595
$is_image_file = ppom_is_file_image( $file_path );
15961596
$ppom_file_thumb_url = $is_image_file ? $file_path : PPOM_URL . '/images/file.png';
15971597
$order_html .= '<tr><td class="ppom-files-display">';
1598-
1599-
if ( $is_image_file ) {
1600-
$order_html .= '<a target="_blank" href="' . esc_url( $ppom_file_url ) . '">';
1601-
}
1602-
1603-
$order_html .= '<img class="img-thumbnail" style="width:' . esc_attr( ppom_get_thumbs_size() ) . '" src="' . esc_url( $ppom_file_thumb_url ) . '">';
1604-
1605-
if ( $is_image_file ) {
1606-
$order_html .= '</a>';
1607-
}
1608-
1598+
$order_html .= '<a target="_blank" href="' . esc_url( $ppom_file_url ) . '">';
1599+
$order_html .= '<img class="img-thumbnail" style="width:' . esc_attr( ppom_get_thumbs_size() ) . '" src="' . esc_url( $ppom_file_thumb_url ) . '">';
1600+
$order_html .= '</a>';
16091601

16101602
// Requested by Kevin, hiding downloading file button after order on thank you page
16111603
// @since version 16.6

0 commit comments

Comments
 (0)