@@ -25,14 +25,17 @@ discard block |
||
25 | 25 | if ( ! empty( $main_picture_id ) ) : |
26 | 26 | if ( 'image' === $atts['mime_type'] ) : |
27 | 27 | echo wp_get_attachment_image( $main_picture_id, $atts['size'] ); |
28 | - else : |
|
28 | + else { |
|
29 | + : |
|
29 | 30 | ?> |
30 | 31 | <div class="document default-icon-container"> |
31 | 32 | <i class="icon fas fa-paperclip" aria-hidden="true"></i> |
32 | 33 | </div> |
33 | 34 | <?php |
34 | 35 | endif; |
35 | - else : |
|
36 | + } |
|
37 | + else { |
|
38 | + : |
|
36 | 39 | if ( 'image' === $atts['mime_type'] ) : |
37 | 40 | ?> |
38 | 41 | <div class="default default-icon-container"> |
@@ -47,6 +50,7 @@ discard block |
||
47 | 50 | </div> |
48 | 51 | <?php |
49 | 52 | endif; |
53 | + } |
|
50 | 54 | ?> |
51 | 55 | <input type="hidden" name="<?php echo esc_attr( $atts['field_name'] ); ?>" /> |
52 | 56 | <?php endif; ?> |
@@ -20,12 +20,15 @@ discard block |
||
20 | 20 | <?php |
21 | 21 | if ( 'image' === $data['mime_type'] ) : |
22 | 22 | echo wp_get_attachment_image( $main_picture_id, 'full' ); |
23 | - else : |
|
23 | + else { |
|
24 | + : |
|
24 | 25 | ?> |
25 | 26 | <div class="document"> |
26 | 27 | <i class="icon fas fa-paperclip" aria-hidden="true"></i> |
27 | 28 | |
28 | - <?php $document_name = get_attached_file( $main_picture_id ); ?> |
|
29 | + <?php $document_name = get_attached_file( $main_picture_id ); |
|
30 | + } |
|
31 | + ?> |
|
29 | 32 | <p> |
30 | 33 | <span><?php echo esc_html( basename( $document_name ) ); ?></span> |
31 | 34 | <?php esc_html_e( 'Preview not available', 'wpeo-upload' ); ?> |
@@ -43,12 +46,15 @@ discard block |
||
43 | 46 | <?php |
44 | 47 | if ( 'image' === $data['mime_type'] ) : |
45 | 48 | echo wp_get_attachment_image( $id, 'full' ); |
46 | - else : |
|
49 | + else { |
|
50 | + : |
|
47 | 51 | ?> |
48 | 52 | <div class="document"> |
49 | 53 | <i class="icon fas fa-paperclip" aria-hidden="true"></i> |
50 | 54 | |
51 | - <?php $document_name = get_attached_file( $id ); ?> |
|
55 | + <?php $document_name = get_attached_file( $id ); |
|
56 | + } |
|
57 | + ?> |
|
52 | 58 | <p> |
53 | 59 | <span><?php echo esc_html( basename( $document_name ) ); ?></span> |
54 | 60 | <?php esc_html_e( 'Preview not available', 'wpeo-upload' ); ?> |
@@ -26,10 +26,13 @@ |
||
26 | 26 | |
27 | 27 | require( \eoxia\Config_Util::$init['eo-framework']->wpeo_upload->path . '/view/' . $atts['display_type'] . '/list-item.view.php' ); |
28 | 28 | endforeach; |
29 | - else : |
|
29 | + else { |
|
30 | + : |
|
30 | 31 | if ( 0 != $atts['id'] ) : |
31 | 32 | ?> |
32 | - <li><?php echo esc_html_e( 'No file attached', 'wpeo-upload' ); ?></li> |
|
33 | + <li><?php echo esc_html_e( 'No file attached', 'wpeo-upload' ); |
|
34 | + } |
|
35 | + ?></li> |
|
33 | 36 | <?php |
34 | 37 | endif; |
35 | 38 | endif; |
@@ -26,12 +26,15 @@ |
||
26 | 26 | </li> |
27 | 27 | <?php |
28 | 28 | endforeach; |
29 | -else : |
|
29 | +else { |
|
30 | + : |
|
30 | 31 | ?> |
31 | 32 | <li class="autocomplete-result"> |
32 | 33 | <div class="autocomplete-result-container"> |
33 | 34 | <span class="autocomplete-result-title">Aucun résultat</span> |
34 | - <span class="autocomplete-result-subtitle">Avec le terme de recherche: <?php echo esc_html( $term ); ?></span> |
|
35 | + <span class="autocomplete-result-subtitle">Avec le terme de recherche: <?php echo esc_html( $term ); |
|
36 | +} |
|
37 | +?></span> |
|
35 | 38 | </li> |
36 | 39 | <?php |
37 | 40 | endif; |
@@ -34,12 +34,15 @@ |
||
34 | 34 | </li> |
35 | 35 | <?php |
36 | 36 | endforeach; |
37 | -else : |
|
37 | +else { |
|
38 | + : |
|
38 | 39 | ?> |
39 | 40 | <li class="autocomplete-result"> |
40 | 41 | <div class="autocomplete-result-container"> |
41 | 42 | <span class="autocomplete-result-title">Aucun résultat</span> |
42 | - <span class="autocomplete-result-subtitle">Avec le terme de recherche: <?php echo esc_html( $term ); ?></span> |
|
43 | + <span class="autocomplete-result-subtitle">Avec le terme de recherche: <?php echo esc_html( $term ); |
|
44 | +} |
|
45 | +?></span> |
|
43 | 46 | </li> |
44 | 47 | <?php |
45 | 48 | endif; |
@@ -28,12 +28,15 @@ |
||
28 | 28 | </li> |
29 | 29 | <?php |
30 | 30 | endforeach; |
31 | -else : |
|
31 | +else { |
|
32 | + : |
|
32 | 33 | ?> |
33 | 34 | <li class="autocomplete-result"> |
34 | 35 | <div class="autocomplete-result-container"> |
35 | 36 | <span class="autocomplete-result-title">Aucun résultat</span> |
36 | - <span class="autocomplete-result-subtitle">Avec le terme de recherche: <?php echo esc_html( $term ); ?></span> |
|
37 | + <span class="autocomplete-result-subtitle">Avec le terme de recherche: <?php echo esc_html( $term ); |
|
38 | +} |
|
39 | +?></span> |
|
37 | 40 | </li> |
38 | 41 | <?php |
39 | 42 | endif; |
@@ -469,8 +469,7 @@ |
||
469 | 469 | |
470 | 470 | $segment->$segment_detail_key->merge(); |
471 | 471 | } |
472 | - } |
|
473 | - else { |
|
472 | + } else { |
|
474 | 473 | $segment = $this->set_document_meta( $segment_detail_key, $segment_detail_value, $segment ); |
475 | 474 | } |
476 | 475 |
@@ -80,8 +80,11 @@ |
||
80 | 80 | </form> |
81 | 81 | </div> |
82 | 82 | <div class="wpeo-update-general-message" ></div> |
83 | -<?php else : ?> |
|
84 | - <h1><?php esc_html_e( 'Update manager', 'eoxia' ); ?></h1> |
|
83 | +<?php else { |
|
84 | + : ?> |
|
85 | + <h1><?php esc_html_e( 'Update manager', 'eoxia' ); |
|
86 | +} |
|
87 | +?></h1> |
|
85 | 88 | <?php esc_html_e( 'No updates available for current version', 'eoxia' ); ?> |
86 | 89 | <strong><a href="<?php echo esc_attr( admin_url( 'admin.php?page=' . $dashboard_url ) ); ?>"><?php echo esc_html_e( 'Back to main application', 'eoxia' ); ?></a></strong> |
87 | 90 | <?php endif; ?> |
@@ -31,8 +31,10 @@ |
||
31 | 31 | ?> |
32 | 32 | Paiement en boutique |
33 | 33 | <?php |
34 | - else : |
|
34 | + else { |
|
35 | + : |
|
35 | 36 | echo esc_html( $order->data['payment_method'] ); |
37 | + } |
|
36 | 38 | endif; |
37 | 39 | ?> |
38 | 40 | </strong> |