PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 1.2.4
Forumax – AI Powered Advanced Community Forum Plugin v1.2.4
2.5.0 2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 trunk 1.0.8 1.1.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 2.0.0 All 30 releases
bbp-core / assets / js / admin-global.js

admin-global.js in Forumax – AI Powered Advanced Community Forum Plugin 1.2.4, at assets/js/admin-global.js

57 lines 2.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (function($){
2 'use sticky'
3 $(document).ready(function() {
4
5 $('body.bbpc-no-pro .st-pro-notice ul li:last-child label input').attr('disabled', true);
6 // BBP Core pro notice.
7 function bbpc_pro_notice() {
8 if ( $('body').hasClass('bbpc-no-pro') ) {
9 $('.st-pro-notice').on('click', function (e) {
10 e.preventDefault();
11 Swal.fire({
12 title: 'Opps...',
13 html: 'This is a PRO feature. You need to <a href="admin.php?page=bbp-core-pricing"><strong class="upgrade-link">Upgrade&nbsp;&nbsp;➤</strong></a> to the Premium Version to use this feature',
14 icon: "warning",
15 buttons: [false, "Close"],
16 dangerMode: true
17 })
18 });
19 } else {
20 // rmeove class if it has pro notice class
21 $('.csf-field').removeClass('st-pro-notice');
22 }
23 }
24 bbpc_pro_notice();
25
26 // Notification pro alert
27 $('.easydocs-notification.pro-notification-alert').on('click', function (e) {
28 e.preventDefault();
29 let href = $(this).attr('href')
30 let assets = eazydocs_local_object.EAZYDOCS_ASSETS;
31 Swal.fire({
32 title: 'Notification is a Premium feature',
33 html: '<span class="pro-notification-body-text">You need to Upgrade the Premium Version to use this feature</span><video height="400px" autoplay="autoplay" loop="loop" src="'+assets+'/videos/noti.mp4"></video>',
34 icon: false,
35 buttons: false,
36 dangerMode: true,
37 showCloseButton: true,
38 confirmButtonText:
39 '<a href="admin.php?page=eazydocs-pricing">Upgrade to Premium</a>',
40 footer: '<a href="https://spider-themes.net/eazydocs/" target="_blank"> Learn More </a>',
41
42 customClass: {
43 title: 'upgrade-premium-heading',
44 confirmButton: 'upgrade-premium-button',
45 footer: 'notification-pro-footer-wrap',
46 },
47 confirmButtonColor: '#f1bd6c',
48 Borderless: true,
49
50 })
51 });
52
53 // Remove condition if it has pro notice class
54 $('.st-pro-notice').attr('data-condition', '');
55
56 })
57 })(jQuery);