review.php
43 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Notice about plugin review. |
| 4 | * |
| 5 | * @var string $ajax_url URL for Admin Ajax. |
| 6 | * @var string $ajax_action Action for Admin Ajax. |
| 7 | * @package Flexible Checkout Fields |
| 8 | */ |
| 9 | |
| 10 | ?> |
| 11 | <div class="notice notice-success is-dismissible" |
| 12 | data-notice="fcf-admin-notice" |
| 13 | data-notice-url="<?php echo esc_attr( $ajax_url ); ?>" |
| 14 | data-notice-action="<?php echo esc_attr( $ajax_action ); ?>" |
| 15 | > |
| 16 | <h2> |
| 17 | <?php echo esc_html( __( 'Thanks for using the free version of Flexible Checkout Fields!', 'flexible-checkout-fields' ) ); ?> |
| 18 | </h2> |
| 19 | <p> |
| 20 | <?php |
| 21 | echo wp_kses_post( |
| 22 | sprintf( |
| 23 | /* translators: %1$s: dashicon, %2$s: break-line tag */ |
| 24 | __( 'We are glad that (with our little help %1$s) the shop is now better suited to the needs. We will be grateful for the rating and feedback. %2$sIt will take less than reading this and it will help us a lot!', 'flexible-checkout-fields' ), |
| 25 | '<span class="dashicons dashicons-heart"></span>', |
| 26 | '<br>' |
| 27 | ) |
| 28 | ); |
| 29 | ?> |
| 30 | </p> |
| 31 | <div> |
| 32 | <a href="<?php echo esc_url( apply_filters( 'flexible_checkout_fields/short_url', '#', 'fcf-settings-notice-review-button' ) ); ?>" |
| 33 | target="_blank" |
| 34 | class="button button-hero button-primary"> |
| 35 | <?php echo esc_html( __( 'Add review', 'flexible-checkout-fields' ) ); ?> |
| 36 | </a> |
| 37 | <button type="button" |
| 38 | class="button button-hero" data-notice-button> |
| 39 | <?php echo esc_html( __( 'I added review, do not show again', 'flexible-checkout-fields' ) ); ?> |
| 40 | </button> |
| 41 | </div> |
| 42 | </div> |
| 43 |