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

        $path = \trailingslashit(Config::get('theme.templates_directory')) . 'partials/' . $partial . '.php';

        return $path;
    }
public static function get_path_to_partial($partial): string
    {
        $partial = \str_replace(
            ['.php', '.'],
            ['', '/'],
            $partial
        );

        $path = \trailingslashit(Config::get('theme.templates_directory')) . 'partials/' . $partial . '.php';

        return $path;
    }
public static function get_path_to_partial ( $ partial ) : string { $ partial = \ str_replace ( [ '.php' , '.' ] , [ '' , '/' ] , $ partial ) ; $ path = \ trailingslashit ( Config :: get ( 'theme.templates_directory' ) ) . 'partials/' . $ partial . '.php' ; return $ path ; }
Transforms a partial name and returns the path to the partial relative to theme root.

@param  string $partial The partial name.
@return string
Transforms a partial name and returns the path to the partial relative to theme root .