| Server IP : 62.72.47.131 / Your IP : 216.73.217.34 Web Server : Apache/2.4.66 (Debian) System : Linux 975cdb959a49 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : ( 501) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/plugins/nextend-facebook-connect/admin/templates/ |
Upload File : |
<?php
$state = NextendSocialLogin::$settings->get('review_state');
if ((0 < $state && $state < 5) || $state == 6) {
// Rated 1, 2, 3, 4 OR 6
return;
}
?>
<?php if ($state == -1): ?>
<div class="nsl-box-review nsl-box-review-step-1" data-stars="0">
<div class="nsl-box-review-bigstar"></div>
<div class="nsl-box-review-label" data-star="0"><?php _e('Rate your experience!', 'nextend-facebook-connect'); ?></div>
<div class="nsl-box-review-label" data-star="1"><?php _e('Hated it', 'nextend-facebook-connect'); ?></div>
<div class="nsl-box-review-label" data-star="2"><?php _e('Disliked it', 'nextend-facebook-connect'); ?></div>
<div class="nsl-box-review-label" data-star="3"><?php _e('It was ok', 'nextend-facebook-connect'); ?></div>
<div class="nsl-box-review-label" data-star="4"><?php _e('Liked it', 'nextend-facebook-connect'); ?></div>
<div class="nsl-box-review-label" data-star="5"><?php _e('Loved it', 'nextend-facebook-connect'); ?></div>
<div class="nsl-box-review-stars-container">
<div tabindex="0"
role="button"
aria-label="<?php esc_attr_e('Rate 1 star', 'nextend-facebook-connect'); ?>"
class="nsl-box-review-star"
data-star="1"
data-href="<?php echo esc_attr(NextendSocialLoginAdmin::trackUrl('https://social-login.nextendweb.com/suggestion/', 'dashboard-review-1')); ?>"></div>
<div tabindex="0"
role="button"
aria-label="<?php esc_attr_e('Rate 2 stars', 'nextend-facebook-connect'); ?>"
class="nsl-box-review-star"
data-star="2"
data-href="<?php echo esc_attr(NextendSocialLoginAdmin::trackUrl('https://social-login.nextendweb.com/suggestion/', 'dashboard-review-2')); ?>"></div>
<div tabindex="0"
role="button"
aria-label="<?php esc_attr_e('Rate 3 stars', 'nextend-facebook-connect'); ?>"
class="nsl-box-review-star"
data-star="3"
data-href="<?php echo esc_attr(NextendSocialLoginAdmin::trackUrl('https://social-login.nextendweb.com/satisfaction-feedback/', 'dashboard-review-3')); ?>"></div>
<div tabindex="0"
role="button"
aria-label="<?php esc_attr_e('Rate 4 stars', 'nextend-facebook-connect'); ?>"
class="nsl-box-review-star"
data-star="4"
data-href="<?php echo esc_attr(NextendSocialLoginAdmin::trackUrl('https://social-login.nextendweb.com/satisfaction-feedback/', 'dashboard-review-4')); ?>"></div>
<div tabindex="0"
role="button"
aria-label="<?php esc_attr_e('Rate 5 stars', 'nextend-facebook-connect'); ?>"
class="nsl-box-review-star"
data-star="5"></div>
</div>
</div>
<?php endif; ?>
<div class="nsl-box-review nsl-box-review-star-5" <?php if ($state != 5): ?>style="display:none;"<?php endif; ?>>
<h3><?php _e('Please Leave a Review', 'nextend-facebook-connect'); ?></h3>
<div class="nsl-box-review-star-5-description"><?php _e('If you are happy with <b>Nextend Social Login</b> and can take a minute please leave us a review. It will be a tremendous help for us!', 'nextend-facebook-connect'); ?></div>
<div class="nsl-box-review-star-5-primary">
<a href="<?php echo esc_attr(NextendSocialLoginAdmin::trackUrl('https://nextendweb.com/redirect/nsl-review.html', 'dashboard-review-5')); ?>" target="_blank" class="button button-primary"><?php _e('Ok, you deserve it', 'nextend-facebook-connect'); ?></a>
</div>
<div tabindex="0"
role="button"
aria-label="<?php esc_attr_e('Close review box', 'nextend-facebook-connect'); ?>"
class="nsl-box-review-star-5-close"></div>
</div>
<script>
(function ($) {
$(document).ready(function () {
var $box = $('.nsl-box-review-step-1'),
$box5 = $('.nsl-box-review-star-5'),
updateReviewState = function (state) {
$.post(ajaxurl, {
'action': 'nsl_save_review_state',
'review_state': state,
'_ajax_nonce': <?php echo wp_json_encode(wp_create_nonce('nsl_save_review_state')); ?>
});
},
activateStar = function ($star) {
const star = parseInt($star.data('star'), 10);
if (star < 5) {
const win = window.open($star.data('href'), '_blank');
$box.remove();
updateReviewState(star);
if (win) {
win.focus();
}
} else {
updateReviewState(5);
$box.remove();
$box5.css('display', '');
}
};
$box.find('.nsl-box-review-star').on({
mouseenter: function () {
$box.attr('data-stars', $(this).data('star'));
},
focus: function () {
$box.attr('data-stars', $(this).data('star'));
},
click: function (e) {
e.preventDefault();
activateStar($(this));
},
keydown: function (e) {
if (e.key === 'Enter') {
e.preventDefault();
activateStar($(this));
}
}
});
$box.find('.nsl-box-review-stars-container').on({
mouseleave: function () {
$box.attr('data-stars', 0);
},
focusout: function (e) {
if (!$(this).find(':focus').length) {
$box.attr('data-stars', 0);
}
}
});
$box5.find('a, .nsl-box-review-star-5-close').on({
click: function () {
$box5.remove();
updateReviewState(6);
}
});
});
})(jQuery);
</script>