themes how part of site settings
This commit is contained in:
@@ -35,6 +35,20 @@ if (! function_exists('stylist_theme_view')) {
|
||||
}
|
||||
}
|
||||
|
||||
if (! function_exists('stylist_frontend_view')) {
|
||||
function stylist_frontend_view(string $view, array $data = [], array $mergeData = []): View
|
||||
{
|
||||
return app(ThemeViewResolver::class)->makeForTheme(stylist()->frontend()->key(), $view, $data, $mergeData);
|
||||
}
|
||||
}
|
||||
|
||||
if (! function_exists('stylist_backend_view')) {
|
||||
function stylist_backend_view(string $view, array $data = [], array $mergeData = []): View
|
||||
{
|
||||
return app(ThemeViewResolver::class)->makeForTheme(stylist()->backend()->key(), $view, $data, $mergeData);
|
||||
}
|
||||
}
|
||||
|
||||
if (! function_exists('theme_asset')) {
|
||||
function theme_asset(string $path): string
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user