HEX
Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.2.34
System: Linux atalantini.com 3.10.0-1127.13.1.el7.x86_64 #1 SMP Tue Jun 23 15:46:38 UTC 2020 x86_64
User: root (0)
PHP: 7.2.34
Disabled: NONE
Upload Files
File: /var/www/html/toniolo/wp-content/plugins/jet-theme-core/includes/frontend.php
<?php
namespace Jet_Theme_Core;

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}

class Frontend_Manager {
	/**
	 * @param $template_id
	 * @param $location
	 */
	public function render_default_template_content( $render_status, $template_id, $location ) {

		if ( ! $template_id ) {
			return false;
		}

		$content_type = jet_theme_core()->templates->get_template_content_type( $template_id );

		if ( 'default' !== $content_type ) {
			return false;
		}

		// Define elementor location render instance
		$block_editor_location = new \Jet_Theme_Core\Locations\Render\Block_Editor_Render( [
			'template_id' => $template_id,
			'location'    => $location,
		] );

		$render_status = $block_editor_location->render();

		return $render_status;
	}

	/**
	 * Frontend constructor.
	 */
	public function __construct() {
		add_filter( 'jet-theme-core/location/render/default-location-content', array( $this, 'render_default_template_content' ), 10, 3 );
	}

}