HEX
Server: Apache/2
System: Linux ws03 5.14.0-570.44.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Sep 17 10:32:11 EDT 2025 x86_64
User: keesdewit (1017)
PHP: 8.3.30
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/keesdewit/public_html/wp-content/themes/enfold/config-gravityforms/config.php
<?php
/**
 * @since ???
 */
if( ! defined( 'ABSPATH' ) ) {  exit;  }    // Exit if accessed directly


if( ! class_exists( 'GFForms' ) )
{
	return;
}


if( ! function_exists( 'avia_add_gravity_scripts' ) )
{
	function avia_add_gravity_scripts()
	{
		$vn = avia_get_theme_version();
		$min_css = avia_minify_extension( 'css' );

		wp_register_style( 'avia-gravity', get_template_directory_uri() . "/config-gravityforms/gravity-mod{$min_css}.css", array(), $vn, 'screen' );

		wp_enqueue_style( 'avia-gravity' );
	}

	add_action( 'wp_enqueue_scripts', 'avia_add_gravity_scripts', 500 );
}


if( ! function_exists( 'avia_add_gf_button_to_editor' ) )
{
	/**
	 * add the gravityforms button to the ajax popup editor
	 *
	 * @param boolean $is_post_edit_page
	 * @return boolean
	 */
	function avia_add_gf_button_to_editor( $is_post_edit_page )
	{
		if( ! empty( $_POST['ajax_fetch'] ) )
		{
			$is_post_edit_page = true;
		}

		return $is_post_edit_page;
	}

	add_filter( 'gform_display_add_form_button', 'avia_add_gf_button_to_editor', 10, 1 );
}