HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpbiancoarte/wp-content/plugins/hiroshi-core/inc/subscribe-popup/helper.php
<?php

if ( ! function_exists( 'hiroshi_core_get_subscribe_popup' ) ) {
	/**
	 * Loads subscribe popup HTML
	 */
	function hiroshi_core_get_subscribe_popup() {
		if ( 'yes' === hiroshi_core_get_option_value( 'admin', 'qodef_enable_subscribe_popup' ) && ! empty( hiroshi_core_get_option_value( 'admin', 'qodef_subscribe_popup_contact_form' ) ) ) {
			hiroshi_core_load_subscribe_popup_template();
		}
	}

	// Get subscribe popup HTML
	add_action( 'hiroshi_action_before_wrapper_close_tag', 'hiroshi_core_get_subscribe_popup' );
}

if ( ! function_exists( 'hiroshi_core_load_subscribe_popup_template' ) ) {
	/**
	 * Loads HTML template with params
	 */
	function hiroshi_core_load_subscribe_popup_template() {
		$params                     = array();
		$params['title']            = hiroshi_core_get_option_value( 'admin', 'qodef_subscribe_popup_title' );
		$params['subtitle']         = hiroshi_core_get_option_value( 'admin', 'qodef_subscribe_popup_subtitle' );
		$background_image           = hiroshi_core_get_option_value( 'admin', 'qodef_subscribe_popup_background_image' );
		$params['content_style']    = ! empty( $background_image ) ? 'background-image: url(' . esc_url( wp_get_attachment_url( $background_image ) ) . ')' : '';
		$params['contact_form']     = hiroshi_core_get_option_value( 'admin', 'qodef_subscribe_popup_contact_form' );
		$params['enable_prevent']   = hiroshi_core_get_option_value( 'admin', 'qodef_enable_subscribe_popup_prevent' );
		$params['prevent_behavior'] = hiroshi_core_get_option_value( 'admin', 'qodef_subscribe_popup_prevent_behavior' );

		$holder_classes           = array();
		$holder_classes[]         = ! empty( $params['prevent_behavior'] ) ? 'qodef-sp-prevent-' . $params['prevent_behavior'] : 'qodef-sp-prevent-session';
		$params['holder_classes'] = implode( ' ', $holder_classes );

		echo hiroshi_core_get_template_part( 'subscribe-popup', 'templates/subscribe-popup', '', $params );
	}
}