PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / trunk
Forumax – AI Powered Advanced Community Forum Plugin vtrunk
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 2.1.0 All 29 releases
bbp-core / assets / admin / js / admin-global.js

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

80 lines 3.4 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 $('body.bbpc-no-pro.bbpc-geo-roles .bbpc-geo-roles-opt').removeClass('st-pro-notice');
7
8 // Forumax pro notice.
9 function forumax_pro_notice() {
10 if ( $('body').hasClass('bbpc-no-pro') ) {
11 $('.st-pro-notice').on('click', function (e) {
12 e.preventDefault();
13 Swal.fire({
14 title: 'Opps...',
15 html: 'This is a PRO feature. You need to <a href="admin.php?page=forumax-pricing"><strong class="upgrade-link">Upgrade&nbsp;&nbsp;➤</strong></a> to the Premium Version to use this feature',
16 icon: "warning",
17 buttons: [false, "Close"],
18 dangerMode: true
19 })
20 });
21 } else {
22 // rmeove class if it has pro notice class
23 $('.csf-field').removeClass('st-pro-notice');
24 }
25 }
26 forumax_pro_notice();
27
28
29 // Forumax promax notice.
30 function forumax_promax_notice() {
31 if ( $('body').hasClass('bbpc-no-promax') ) {
32 $('.st-promax-notice').on('click', function (e) {
33 e.preventDefault();
34 Swal.fire({
35 title: 'Opps...',
36 html: 'This is a ProMax feature. You need to <a href="admin.php?page=forumax-pricing"><strong class="upgrade-link">Upgrade&nbsp;&nbsp;➤</strong></a> to the ProMax Version to use this feature',
37 icon: "warning",
38 buttons: [false, "Close"],
39 dangerMode: true
40 })
41 });
42 } else {
43 // rmeove class if it has promax notice class
44 $('.csf-field').removeClass('st-promax-notice');
45 }
46 }
47 forumax_promax_notice();
48
49 // Notification pro alert
50 $('.easydocs-notification.pro-notification-alert').on('click', function (e) {
51 e.preventDefault();
52 let href = $(this).attr('href')
53 let assets = eazydocs_local_object.EAZYDOCS_ASSETS;
54 Swal.fire({
55 title: 'Notification is a Premium feature',
56 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>',
57 icon: false,
58 buttons: false,
59 dangerMode: true,
60 showCloseButton: true,
61 confirmButtonText:
62 '<a href="admin.php?page=eazydocs-pricing">Upgrade to Premium</a>',
63 footer: '<a href="https://forumax.spider-themes.net/" target="_blank"> Learn More </a>',
64
65 customClass: {
66 title: 'upgrade-premium-heading',
67 confirmButton: 'upgrade-premium-button',
68 footer: 'notification-pro-footer-wrap',
69 },
70 confirmButtonColor: '#f1bd6c',
71 Borderless: true,
72
73 })
74 });
75
76 // Remove condition if it has pro notice class
77 $('.st-pro-notice').attr('data-condition', '');
78
79 })
80 })(jQuery);