@@ -1,4 +1,6 @@ discard block |
||
| 1 | -<?php if ( !defined( 'ABSPATH' ) ) exit; |
|
| 1 | +<?php if ( !defined( 'ABSPATH' ) ) { |
|
| 2 | + exit; |
|
| 3 | +} |
|
| 2 | 4 | $order_post_meta = !empty($post) ? get_post_meta( $post->ID, '_wpshop_order_status', true ) : ""; ?> |
| 3 | 5 | <div class="wps-table"> |
| 4 | 6 | <div class="wps-table-header wps-table-row"> |
@@ -56,11 +58,17 @@ discard block |
||
| 56 | 58 | <?php endif; ?> |
| 57 | 59 | </div> |
| 58 | 60 | <?php endforeach; |
| 59 | - else : |
|
| 61 | + else { |
|
| 62 | + : |
|
| 60 | 63 | if( !empty( $research ) ) : ?> |
| 61 | - <div class="wps-alert-info"><?php printf( __( 'No products corresponds to the search <strong>"%s"</strong>', 'wpshop'), $research ); ?></div> |
|
| 62 | - <?php else : |
|
| 63 | - $letter_display = ( strtoupper( $current_letter ) != 'ALL' ) ? $current_letter : __('ALL', 'wpshop' ); ?> |
|
| 64 | + <div class="wps-alert-info"><?php printf( __( 'No products corresponds to the search <strong>"%s"</strong>', 'wpshop'), $research ); |
|
| 65 | + } |
|
| 66 | + ?></div> |
|
| 67 | + <?php else { |
|
| 68 | + : |
|
| 69 | + $letter_display = ( strtoupper( $current_letter ) != 'ALL' ) ? $current_letter : __('ALL', 'wpshop' ); |
|
| 70 | +} |
|
| 71 | +?> |
|
| 64 | 72 | <div class="wps-alert-info"><?php printf( __( 'No products corresponds to the letter <strong>"%s"</strong> search', 'wpshop'), strtoupper( $letter_display ) ); ?></div> |
| 65 | 73 | <?php endif; |
| 66 | 74 | endif; ?> |