| @@ -203,21 +203,13 @@ | ||
| 203 | 203 | <?php $subscrpt_offer_percent = \SpringDevs\Subscription\Admin\CancellationFlow::offer_percent(); ?> |
| 204 | 204 | <div class="subscrpt-feedback-modal__body" data-subscrpt-offer-step> |
| 205 | 205 | <p class="subscrpt-feedback-modal__intro"> |
| 206 | 206 | <?php |
| 207 | - if ( 'fixed' === \SpringDevs\Subscription\Admin\CancellationFlow::offer_type() ) { | |
| 208 | - printf( | |
| 209 | - /* translators: %s: formatted discount amount. */ | |
| 210 | - esc_html__( 'Stay with us and take %s off your next order.', 'subscription' ), | |
| 211 | - wp_kses_post( wc_price( \SpringDevs\Subscription\Admin\CancellationFlow::offer_amount() ) ) | |
| 212 | - ); | |
| 213 | - } else { | |
| 214 | - printf( | |
| 215 | - /* translators: %s: discount percentage. */ | |
| 216 | - esc_html__( 'Stay with us and take %s%% off your next order.', 'subscription' ), | |
| 217 | - esc_html( (string) $subscrpt_offer_percent ) | |
| 218 | - ); | |
| 219 | - } | |
| 207 | + printf( | |
| 208 | + /* translators: %s: discount percentage. */ | |
| 209 | + esc_html__( 'Stay with us and take %s%% off your next order.', 'subscription' ), | |
| 210 | + esc_html( (string) $subscrpt_offer_percent ) | |
| 211 | + ); | |
| 220 | 212 | ?> |
| 221 | 213 | </p> |
| 222 | 214 | <p class="subscrpt-feedback-modal__offer-note" data-subscrpt-offer-result hidden></p> |
| 223 | 215 | </div> |