public static function get_post_templates_path($post_template): string
    {
        $template = \str_replace(
            ['.php', '.'],
            ['', '/'],
            $post_template
        );

        return \trailingslashit(Config::get('theme.templates_directory')) . 'views/post-templates/' . $template . '.php';
    }
public static function get_post_templates_path($post_template): string
    {
        $template = \str_replace(
            ['.php', '.'],
            ['', '/'],
            $post_template
        );

        return \trailingslashit(Config::get('theme.templates_directory')) . 'views/post-templates/' . $template . '.php';
    }
public static function get_post_templates_path ( $ post_template ) : string { $ template = \ str_replace ( [ '.php' , '.' ] , [ '' , '/' ] , $ post_template ) ; return \ trailingslashit ( Config :: get ( 'theme.templates_directory' ) ) . 'views/post-templates/' . $ template . '.php' ; }
Returns the full include path for a given post template.

@param string $post_template The template to get the path for.
@return string
Returns the full include path for a given post template .