<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Blog Single Post Render
 *
 * Extends base class to override single post template with Elementor layout.
 */
final class Sifency_Addons_TB_Blog_Single_Render extends Sifency_Single_Post_Render_Base {
	protected $post_type            = 'post';
	protected $canvas_path_template = 'post-type/blog/templates/sifency-single-canvas.php';
	protected $query_var_name       = 'sifency_template_id';
	protected $template_lookup_key  = 'post';

	public function override_single_template( $template ) {
		if ( ! is_single() || get_post_type() !== 'post' ) {
			return $template;
		}
		return parent::override_single_template( $template );
	}
}
