| @@ -2,15 +2,42 @@ | ||
| 2 | 2 | /** |
| 3 | 3 | * Shared dashboard shell footer. |
| 4 | 4 | * |
| 5 | 5 | * @package GutSliderBlocks |
| 6 | + * | |
| 7 | + * @var bool $has_pro Whether the Pro plugin is active. | |
| 6 | 8 | */ |
| 7 | 9 | |
| 8 | 10 | if ( ! defined( 'ABSPATH' ) ) { |
| 9 | 11 | exit; |
| 10 | 12 | } |
| 13 | + | |
| 14 | +$gs_has_pro = isset( $has_pro ) ? (bool) $has_pro : defined( 'GUTSLIDER_PRO_VERSION' ); | |
| 11 | 15 | ?> |
| 12 | 16 | </main> |
| 17 | + | |
| 18 | + <footer class="gs-appfoot"> | |
| 19 | + <div class="gs-appfoot__inner"> | |
| 20 | + <span> | |
| 21 | + <?php | |
| 22 | + printf( | |
| 23 | + /* translators: %s: link to the review page. */ | |
| 24 | + esc_html__( 'Enjoying GutSlider? %s on WordPress.org.', 'slider-blocks' ), | |
| 25 | + '<a class="gs-appfoot__link" href="https://wordpress.org/support/plugin/slider-blocks/reviews/" target="_blank" rel="noopener noreferrer">' . esc_html__( 'Leave a review', 'slider-blocks' ) . '</a>' | |
| 26 | + ); | |
| 27 | + ?> | |
| 28 | + </span> | |
| 29 | + <span> | |
| 30 | + <?php | |
| 31 | + echo esc_html( | |
| 32 | + $gs_has_pro | |
| 33 | + ? sprintf( 'GutSlider Pro %s', GUTSLIDER_VERSION ) | |
| 34 | + : sprintf( 'GutSlider %s', GUTSLIDER_VERSION ) | |
| 35 | + ); | |
| 36 | + ?> | |
| 37 | + </span> | |
| 38 | + </div> | |
| 39 | + </footer> | |
| 13 | 40 | |
| 14 | 41 | <div class="gs-toasts" data-gs-toasts aria-live="polite" aria-atomic="true"></div> |
| 15 | 42 | |
| 16 | 43 | <div class="gs-savebar" data-gs-savebar aria-hidden="true"> |