GRAYBYTE WORDPRESS FILE MANAGER5165

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/wpforms/pro/assets/js/admin/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/wpforms/pro/assets/js/admin//education.js
/* globals ajaxurl, wpforms_admin, wpforms_admin, WPFormsAdmin */

/**
 * WPForms Admin Education module.
 *
 * @since 1.5.6
 */

'use strict';

var WPFormsAdminEducation = window.WPFormsAdminEducation || ( function( document, window, $ ) {

	/**
	 * Public functions and properties.
	 *
	 * @since 1.5.6
	 *
	 * @type {object}
	 */
	var app = {

		/**
		 * Start the engine.
		 *
		 * @since 1.5.6
		 */
		init: function() {
			$( app.ready );
		},

		/**
		 * Document ready.
		 *
		 * @since 1.5.6
		 */
		ready: function() {
			app.events();
		},

		/**
		 * Register JS events.
		 *
		 * @since 1.5.6
		 */
		events: function() {

			app.dyk();
			app.hideEducation();
			app.activateEducation();
		},

		/**
		 * Did You Know? events.
		 *
		 * @since 1.6.3
		 */
		dyk: function() {

			// "Did You Know?" Click on the dismiss button.
			$( '.wpforms-dyk' ).on( 'click', '.dismiss', function( e ) {
				var $t = $( this ),
					$tr = $t.closest( '.wpforms-dyk' ),
					data = {
						action: 'wpforms_dyk_dismiss',
						nonce: wpforms_admin.nonce,
						page: $t.attr( 'data-page' ),
					};

				$tr.find( '.wpforms-dyk-fbox' ).addClass( 'out' );
				setTimeout( function() {
					$tr.remove();
				}, 300 );

				$.get( ajaxurl, data );
			} );
		},

		/**
		 * Activate plugin in education popup.
		 *
		 * @since 1.6.3
		 */
		activateEducation: function() {

			$( '.toggle-plugin' ).on( 'click', function( e ) {

				e.preventDefault();
				if ( $( this ).hasClass( 'inactive' ) ) {
					return;
				}
				$( this ).addClass( 'inactive' );

				var $button = $( this ),
					$form = $( this ).closest( '.wpforms-geolocation-form' ),
					buttonText = $button.text(),
					plugin = $button.attr( 'data-plugin' ),
					state = $button.hasClass( 'status-inactive' ) ? 'activate' : 'install',
					pluginType = $button.attr( 'data-type' );

				$button.html( WPFormsAdmin.settings.iconSpinner + buttonText );
				WPFormsAdmin.setAddonState(
					plugin,
					state,
					pluginType,
					function( res ) {

						if ( res.success ) {
							location.reload();
						} else {
							$form.append( '<div class="msg error" style="display: none">' + wpforms_admin[ pluginType + '_error' ] + '</div>' );
							$form.find( '.msg' ).slideDown();
						}
						$button.text( buttonText );
						setTimeout( function() {

							$button.removeClass( 'inactive' );
							$form.find( '.msg' ).slideUp( '', function() {
								$( this ).remove();
							} );
						}, 3000 );
					} );
			} );
		},

		/**
		 * Hide education message.
		 *
		 * @since 1.6.3
		 */
		hideEducation: function() {

			$( '.wpforms-education-hide' ).on( 'click', function( e ) {
				e.preventDefault();
				var container = $( this ).closest( '.postbox' );
				var data = {
					action: 'hide_education',
					nonce: $( this ).attr( 'data-nonce' ),
					plugin: $( this ).attr( 'data-plugin' ),
				};
				$.post(
					wpforms_admin.ajax_url,
					data,
					function( data ) {
						if ( data ) {
							container.slideUp();
						}
					} );
			} );
		},

	};

	return app;

}( document, window, jQuery ) );

// Initialize.
WPFormsAdminEducation.init();

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:24
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:24
giriqfky / giriqfky
0644
builder-education.js
8.674 KB
February 29 2024 08:11:15
giriqfky / giriqfky
0644
builder-education.min.js
4.085 KB
February 29 2024 08:11:15
giriqfky / giriqfky
0644
dashboard-widget.js
11.513 KB
February 29 2024 08:11:15
giriqfky / giriqfky
0644
dashboard-widget.min.js
5.607 KB
February 29 2024 08:11:15
giriqfky / giriqfky
0644
edit-entry.js
8.053 KB
February 29 2024 08:11:15
giriqfky / giriqfky
0644
edit-entry.min.js
3.606 KB
February 29 2024 08:11:15
giriqfky / giriqfky
0644
education.js
3.062 KB
February 29 2024 08:11:15
giriqfky / giriqfky
0644
education.min.js
1.518 KB
February 29 2024 08:11:15
giriqfky / giriqfky
0644
entries.js
2.509 KB
February 29 2024 08:11:15
giriqfky / giriqfky
0644
entries.min.js
1.188 KB
February 29 2024 08:11:15
giriqfky / giriqfky
0644
settings-access.js
10.052 KB
February 29 2024 08:11:15
giriqfky / giriqfky
0644
settings-access.min.js
4.049 KB
February 29 2024 08:11:15
giriqfky / giriqfky
0644
settings-education.js
7.98 KB
February 29 2024 08:11:15
giriqfky / giriqfky
0644
settings-education.min.js
3.686 KB
February 29 2024 08:11:15
giriqfky / giriqfky
0644
tools-entries-export.js
11.149 KB
February 29 2024 08:11:15
giriqfky / giriqfky
0644
tools-entries-export.min.js
6.102 KB
February 29 2024 08:11:15
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF