PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 1.2.8
Forumax – AI Powered Advanced Community Forum Plugin v1.2.8
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 / js / admin-global.js

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

58 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 $('body.bbpc-no-pro.bbpc-geo-roles .bbpc-geo-roles-opt').removeClass('st-pro-notice');
7 // BBP Core pro notice.
8 function bbpc_pro_notice() {
9 if ( $('body').hasClass('bbpc-no-pro') ) {
10 $('.st-pro-notice').on('click', function (e) {
11 e.preventDefault();
12 Swal.fire({
13 title: 'Opps...',
14 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',
15 icon: "warning",
16 buttons: [false, "Close"],
17 dangerMode: true
18 })
19 });
20 } else {
21 // rmeove class if it has pro notice class
22 $('.csf-field').removeClass('st-pro-notice');
23 }
24 }
25 bbpc_pro_notice();
26
27 // Notification pro alert
28 $('.easydocs-notification.pro-notification-alert').on('click', function (e) {
29 e.preventDefault();
30 let href = $(this).attr('href')
31 let assets = eazydocs_local_object.EAZYDOCS_ASSETS;
32 Swal.fire({
33 title: 'Notification is a Premium feature',
34 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>',
35 icon: false,
36 buttons: false,
37 dangerMode: true,
38 showCloseButton: true,
39 confirmButtonText:
40 '<a href="admin.php?page=eazydocs-pricing">Upgrade to Premium</a>',
41 footer: '<a href="https://spider-themes.net/eazydocs/" target="_blank"> Learn More </a>',
42
43 customClass: {
44 title: 'upgrade-premium-heading',
45 confirmButton: 'upgrade-premium-button',
46 footer: 'notification-pro-footer-wrap',
47 },
48 confirmButtonColor: '#f1bd6c',
49 Borderless: true,
50
51 })
52 });
53
54 // Remove condition if it has pro notice class
55 $('.st-pro-notice').attr('data-condition', '');
56
57 })
58 })(jQuery);