(function($){
'use sticky'
$(document).ready(function() {
$('body.bbpc-no-pro .st-pro-notice ul li:last-child label input').attr('disabled', true);
$('body.bbpc-no-pro.bbpc-geo-roles .bbpc-geo-roles-opt').removeClass('st-pro-notice');
// Forumax pro notice.
function forumax_pro_notice() {
if ( $('body').hasClass('bbpc-no-pro') ) {
$('.st-pro-notice').on('click', function (e) {
e.preventDefault();
Swal.fire({
title: 'Opps...',
html: 'This is a PRO feature. You need to Upgrade ➤ to the Premium Version to use this feature',
icon: "warning",
buttons: [false, "Close"],
dangerMode: true
})
});
} else {
// rmeove class if it has pro notice class
$('.csf-field').removeClass('st-pro-notice');
}
}
forumax_pro_notice();
// Forumax promax notice.
function forumax_promax_notice() {
if ( $('body').hasClass('bbpc-no-promax') ) {
$('.st-promax-notice').on('click', function (e) {
e.preventDefault();
Swal.fire({
title: 'Opps...',
html: 'This is a ProMax feature. You need to Upgrade ➤ to the ProMax Version to use this feature',
icon: "warning",
buttons: [false, "Close"],
dangerMode: true
})
});
} else {
// rmeove class if it has promax notice class
$('.csf-field').removeClass('st-promax-notice');
}
}
forumax_promax_notice();
// Notification pro alert
$('.easydocs-notification.pro-notification-alert').on('click', function (e) {
e.preventDefault();
let href = $(this).attr('href')
let assets = eazydocs_local_object.EAZYDOCS_ASSETS;
Swal.fire({
title: 'Notification is a Premium feature',
html: 'You need to Upgrade the Premium Version to use this feature',
icon: false,
buttons: false,
dangerMode: true,
showCloseButton: true,
confirmButtonText:
'Upgrade to Premium',
footer: ' Learn More ',
customClass: {
title: 'upgrade-premium-heading',
confirmButton: 'upgrade-premium-button',
footer: 'notification-pro-footer-wrap',
},
confirmButtonColor: '#f1bd6c',
Borderless: true,
})
});
// Remove condition if it has pro notice class
$('.st-pro-notice').attr('data-condition', '');
})
})(jQuery);