GRAYBYTE WORDPRESS FILE MANAGER7766

Server IP : 68.65.123.43 / Your IP : 216.73.216.162
System : Linux server266.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/inteuuod/public_html/wp-content/plugins/wpforms-lite/includes/functions/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/inteuuod/public_html/wp-content/plugins/wpforms-lite/includes/functions//education.php
<?php
/**
 * Helpers functions for the Education pages.
 *
 * @since 1.8.2.2
 */

/**
 * Get the button.
 *
 * @since 1.8.2.2
 * @since 1.9.6.1 Add $license_level parameter.
 *
 * @param string $action        Action to perform.
 * @param bool   $plugin_allow  Is plugin allowed.
 * @param string $path          Plugin file.
 * @param string $url           URL for download plugin.
 * @param array  $utm           UTM parameters.
 * @param string $license_level License level.
 */
function wpforms_edu_get_button( $action, $plugin_allow, $path, $url, $utm, $license_level = '' ) {

	// If the user is not allowed to use the plugin, show the upgrade button.
	if ( ! $plugin_allow ) {
		wpforms_edu_get_upgrade_button( $utm, [], $license_level );

		return;
	}

	$status      = 'inactive';
	$data_plugin = $path;
	$title       = esc_html__( 'Activate', 'wpforms-lite' );
	$can_install = wpforms_can_install( 'addon' );

	if ( $action === 'install' ) {
		$status      = 'download';
		$data_plugin = $url;
		$title       = esc_html__( 'Install & Activate', 'wpforms-lite' );
	}

	?>

	<?php if ( $action === 'install' && ! $can_install ) : ?>
		<div class="wpforms-notice wpforms-error">
			<p><?php esc_html_e( 'Plugin installation is disabled for this site.', 'wpforms-lite' ); ?></p>
		</div>
	<?php else : ?>
		<button
			class="status-<?php echo esc_attr( $status ); ?> wpforms-btn wpforms-btn-lg wpforms-btn-blue wpforms-education-toggle-plugin-btn"
			data-type="addon"
			data-action="<?php echo esc_attr( $action ); ?>"
			data-plugin="<?php echo esc_attr( $data_plugin ); ?>">
			<i></i><?php echo esc_html( $title ); ?>
	<?php endif; ?>
	<?php
}

/**
 * Get the upgrade button.
 *
 * @since 1.8.2.2
 * @since 1.9.6.1 Add $license_level parameter.
 *
 * @param array  $utm           UTM parameters.
 * @param array  $classes       Classes.
 * @param string $license_level License level.
 */
function wpforms_edu_get_upgrade_button( $utm, $classes = [], $license_level = '' ) {

	$utm_medium  = isset( $utm['medium'] ) ? $utm['medium'] : '';
	$utm_content = isset( $utm['content'] ) ? $utm['content'] : '';

	$default_classes   = [ 'wpforms-btn', 'wpforms-btn-lg', 'wpforms-btn-orange' ];
	$default_classes[] = ! wpforms()->is_pro() ? 'wpforms-upgrade-modal' : '';

	$btn_classes = array_merge( $default_classes, (array) $classes );

	$upgrade_button_label = esc_html__( 'Upgrade to WPForms Pro', 'wpforms-lite' );

	if ( ! empty( $license_level ) && is_string( $license_level ) ) {
		$upgrade_button_label = sprintf(
			/* translators: %s: License name. */
			esc_html__( 'Upgrade to WPForms %s', 'wpforms-lite' ),
			esc_html( ucfirst( $license_level ) )
		);
	}
	?>
	<a
		href="<?php echo esc_url( wpforms_admin_upgrade_link( $utm_medium, $utm_content ) ); ?>"
		target="_blank"
		rel="noopener noreferrer"
		class="<?php echo esc_attr( implode( ' ', array_filter( $btn_classes ) ) ); ?>">
		<?php echo esc_html( $upgrade_button_label ); ?>
	</a>
	<?php
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:21
inteuuod / inteuuod
0755
.htaccess
0.41 KB
July 10 2025 04:32:21
inteuuod / inteuuod
0644
access.php
10.478 KB
June 05 2025 16:54:44
inteuuod / inteuuod
0644
builder.php
1.377 KB
June 17 2025 13:49:02
inteuuod / inteuuod
0644
checks.php
15.965 KB
June 17 2025 13:49:02
inteuuod / inteuuod
0644
colors.php
3.972 KB
November 28 2023 16:59:36
inteuuod / inteuuod
0644
data-presets.php
19.031 KB
February 16 2023 18:36:38
inteuuod / inteuuod
0644
date-time.php
2.824 KB
June 05 2025 16:54:44
inteuuod / inteuuod
0644
debug.php
5.229 KB
September 26 2024 15:36:36
inteuuod / inteuuod
0644
education.php
2.894 KB
June 17 2025 13:49:02
inteuuod / inteuuod
0644
escape-sanitize.php
13.899 KB
January 28 2025 17:46:12
inteuuod / inteuuod
0644
filesystem-media.php
6.6 KB
April 24 2025 14:53:30
inteuuod / inteuuod
0644
form-fields.php
16.983 KB
June 05 2025 16:54:44
inteuuod / inteuuod
0644
forms.php
13.321 KB
April 24 2025 14:53:30
inteuuod / inteuuod
0644
list.php
6.875 KB
June 13 2024 16:24:36
inteuuod / inteuuod
0644
payments.php
21.876 KB
April 24 2025 14:53:30
inteuuod / inteuuod
0644
plugins.php
2.375 KB
June 05 2025 16:54:44
inteuuod / inteuuod
0644
privacy.php
2.516 KB
February 27 2025 17:40:00
inteuuod / inteuuod
0644
providers.php
1.992 KB
June 05 2025 16:54:44
inteuuod / inteuuod
0644
utilities.php
8.538 KB
June 05 2025 16:54:44
inteuuod / inteuuod
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF