HEX
Server: Apache
System: Linux web2213.uni5.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64
User: clinicamaciel (596848)
PHP: 7.3.33
Disabled: apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,eval,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv
Upload Files
File: /home/clinicamaciel/www/wp-content/themes/chocorocco/plugins/essential-grid/essential-grid.php
<?php
/* Essential Grid support functions
------------------------------------------------------------------------------- */


// Theme init priorities:
// 9 - register other filters (for installer, etc.)
if (!function_exists('chocorocco_essential_grid_theme_setup9')) {
	add_action( 'after_setup_theme', 'chocorocco_essential_grid_theme_setup9', 9 );
	function chocorocco_essential_grid_theme_setup9() {
		if (chocorocco_exists_essential_grid()) {
			add_action( 'wp_enqueue_scripts', 							'chocorocco_essential_grid_frontend_scripts', 1100 );
			add_filter( 'chocorocco_filter_merge_styles',					'chocorocco_essential_grid_merge_styles' );
		}
		if (is_admin()) {
			add_filter( 'chocorocco_filter_tgmpa_required_plugins',		'chocorocco_essential_grid_tgmpa_required_plugins' );
		}
	}
}

// Check if plugin installed and activated
if ( !function_exists( 'chocorocco_exists_essential_grid' ) ) {
	function chocorocco_exists_essential_grid() {
		return defined('EG_PLUGIN_PATH');
	}
}

// Filter to add in the required plugins list
if ( !function_exists( 'chocorocco_essential_grid_tgmpa_required_plugins' ) ) {
	
	function chocorocco_essential_grid_tgmpa_required_plugins($list=array()) {
		if (in_array('essential-grid', chocorocco_storage_get('required_plugins'))) {
			$path = chocorocco_get_file_dir('plugins/essential-grid/essential-grid.zip');
			$list[] = array(
						'name' 		=> esc_html__('Essential Grid', 'chocorocco'),
						'slug' 		=> 'essential-grid',
                        'version'	=> '3.0.7',
						'source'	=> !empty($path) ? $path : 'upload://essential-grid.zip',
						'required' 	=> false
			);
		}
		return $list;
	}
}
	
// Enqueue plugin's custom styles
if ( !function_exists( 'chocorocco_essential_grid_frontend_scripts' ) ) {
	
	function chocorocco_essential_grid_frontend_scripts() {
		if (chocorocco_is_on(chocorocco_get_theme_option('debug_mode')) && chocorocco_get_file_dir('plugins/essential-grid/essential-grid.css')!='')
			wp_enqueue_style( 'chocorocco-essential-grid',  chocorocco_get_file_url('plugins/essential-grid/essential-grid.css'), array(), null );
	}
}
	
// Merge custom styles
if ( !function_exists( 'chocorocco_essential_grid_merge_styles' ) ) {
	
	function chocorocco_essential_grid_merge_styles($list) {
		$list[] = 'plugins/essential-grid/essential-grid.css';
		return $list;
	}
}
?>