| 1 |
<?php |
| 2 |
/** |
| 3 |
* Review request popup (free build only) — see src/Admin/ReviewRequest.php. |
| 4 |
* |
| 5 |
* Deliberately minimal, App-Store style: it interrupts someone in the middle |
| 6 |
* of admin work, so one question, five stars, one button, two quiet ways out |
| 7 |
* and a support link for the people who are here because something is wrong. |
| 8 |
* |
| 9 |
* @var string $review_nonce |
| 10 |
*/ |
| 11 |
|
| 12 |
use FilterEverything\Filter\ReviewRequest; |
| 13 |
|
| 14 |
if (!defined('ABSPATH')) { |
| 15 |
exit; |
| 16 |
} |
| 17 |
?> |
| 18 |
<div id="flrt-review-popup-overlay" data-nonce="<?php echo esc_attr($review_nonce); ?>"> |
| 19 |
<div class="flrt-review-popup-wrapper"> |
| 20 |
<div class="flrt-review-popup-modal"> |
| 21 |
<div class="flrt-review-popup-close-btn" aria-label="<?php echo esc_attr__('Close', 'filter-everything'); ?>">✕</div> |
| 22 |
|
| 23 |
<div class="flrt-review-popup-card"> |
| 24 |
<div class="flrt-review-popup-card-title"> |
| 25 |
<?php |
| 26 |
echo esc_html__('Enjoying', 'filter-everything') |
| 27 |
. '<br>' |
| 28 |
. esc_html__('Filter Everything?', 'filter-everything'); |
| 29 |
?> |
| 30 |
</div> |
| 31 |
<div class="flrt-review-popup-stars"> |
| 32 |
<?php for ($flrt_star = 0; $flrt_star < 5; $flrt_star++) : ?><a class="flrt-review-popup-star" href="<?php echo esc_url(ReviewRequest::REVIEW_URL); ?>" target="_blank" rel="noopener">★</a><?php endfor; ?> |
| 33 |
</div> |
| 34 |
<div class="flrt-review-popup-card-text"><?php echo esc_html__('Rate us on WordPress.org and help the plugin grow', 'filter-everything'); ?></div> |
| 35 |
</div> |
| 36 |
|
| 37 |
<a class="flrt-review-popup-rate-btn" href="<?php echo esc_url(ReviewRequest::REVIEW_URL); ?>" target="_blank" rel="noopener"><?php echo esc_html__('Rate Filter Everything', 'filter-everything'); ?> <span class="flrt-review-popup-rate-btn-star">★</span><span class="flrt-review-popup-rate-btn-ext" aria-hidden="true"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" focusable="false"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg></span></a> |
| 38 |
|
| 39 |
<div class="flrt-review-popup-dismiss-row"> |
| 40 |
<span class="flrt-review-popup-later"><?php echo esc_html__('Maybe later', 'filter-everything'); ?></span> |
| 41 |
<span class="flrt-review-popup-dismiss-dot"></span> |
| 42 |
<span class="flrt-review-popup-never"><?php echo esc_html__("Don't show this again", 'filter-everything'); ?></span> |
| 43 |
</div> |
| 44 |
|
| 45 |
<div class="flrt-review-popup-support-line"> |
| 46 |
<?php |
| 47 |
echo wp_kses( |
| 48 |
sprintf( |
| 49 |
/* translators: %1$s: opening link tag to the support forum, %2$s: closing link tag */ |
| 50 |
__("Something not working right? %1\$sContact support%2\$s — we'd rather fix it first.", 'filter-everything'), |
| 51 |
'<a href="' . esc_url(ReviewRequest::SUPPORT_URL) . '" target="_blank" rel="noopener">', |
| 52 |
'</a>' |
| 53 |
), |
| 54 |
['a' => ['href' => [], 'target' => [], 'rel' => []]] |
| 55 |
); |
| 56 |
?> |
| 57 |
</div> |
| 58 |
</div> |
| 59 |
</div> |
| 60 |
</div> |
| 61 |
|