@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | $alt_option = get_option( 'dc_alt_text' ); |
| 71 | 71 | $text = dp_alt_products_text( $prod_text_option, $text_option, __( 'This product has been discontinued.', 'woocommerce-discontinued-products' ) ); |
| 72 | 72 | $alt = dp_alt_products_text( $prod_alt_option, $alt_option, __( 'You may be interested in:', 'woocommerce-discontinued-products' ) ); |
| 73 | - $notice = $no_alt ? '<h4 class="discontinued-notice">' . esc_html($text) . '</H4>' : '<h4 class="discontinued-notice">' . esc_html($text) . '</H4><h4 class="discontinued-notice-alt">' . esc_html($alt) . '</H4>'; |
|
| 73 | + $notice = $no_alt ? '<h4 class="discontinued-notice">' . esc_html( $text ) . '</H4>' : '<h4 class="discontinued-notice">' . esc_html( $text ) . '</H4><h4 class="discontinued-notice-alt">' . esc_html( $alt ) . '</H4>'; |
|
| 74 | 74 | return $notice; |
| 75 | 75 | } |
| 76 | 76 | } |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | function discontinued_template_loop_price( $price, $product ) { |
| 121 | 121 | $product_id = $product->get_id(); |
| 122 | 122 | if ( dp_is_discontinued( $product_id ) ) { |
| 123 | - if(is_admin()){ |
|
| 123 | + if ( is_admin() ) { |
|
| 124 | 124 | return 'Discontinued'; |
| 125 | 125 | } |
| 126 | 126 | $prod_text_option = get_post_meta( $product_id, '_discontinued_product_text', true ); |
@@ -120,7 +120,7 @@ |
||
| 120 | 120 | function discontinued_template_loop_price( $price, $product ) { |
| 121 | 121 | $product_id = $product->get_id(); |
| 122 | 122 | if ( dp_is_discontinued( $product_id ) ) { |
| 123 | - if(is_admin()){ |
|
| 123 | + if(is_admin()) { |
|
| 124 | 124 | return 'Discontinued'; |
| 125 | 125 | } |
| 126 | 126 | $prod_text_option = get_post_meta( $product_id, '_discontinued_product_text', true ); |