container = $container; $this->database = $this->container->get( Database::class ); $this->views = $this->container->get( Views::class ); } public function init() { $this->is_fse_theme = $this->is_fse_theme(); if ( $this->is_fse_theme ) { // @todo: for FSE theme } if ( ! $this->is_fse_theme ) { add_filter( 'archive_template', [ $this, 'archive_template' ] ); add_filter( 'single_template', [ $this, 'single_template' ] ); } } /** * Render Thrive Header Markup * * Outputs the header section and starts the main container for the page content. * * @return void */ public function render_thrive_header() { // Retrieve and sanitize the header content allowing limited HTML $header_content = thrive_template()->render_theme_hf_section( THRIVE_HEADER_SECTION ); echo '