PluginProbe
Filter Everything — WordPress & WooCommerce Filters / trunk
Filter Everything — WordPress & WooCommerce Filters vtrunk
1.9.6 1.9.5 1.9.4 1.9.3 1.9.2.2 1.9.2.1 trunk 1.2.1 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 1.4.1 1.4.4 1.4.5 1.4.8 1.4.9 1.5.0 1.5.1 1.6.0 1.6.1 1.6.2 1.6.3 All 51 releases
filter-everything / views / admin / review-popup.php

review-popup.php in Filter Everything — WordPress & WooCommerce Filters trunk, at views/admin/review-popup.php

61 lines 3.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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'); ?>">&#10005;</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">&#9733;</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">&#9733;</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