Skip to content

Commit

Permalink
fix set view path
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi committed Sep 7, 2023
1 parent ba53ce6 commit afc04ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CoreServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ public static function setThemePath(string $path): void
{
$viewPath = 'zeus::themes.' . config('zeus.theme') . '.' . $path;

if (! view()->exists($viewPath . '.home')) {
$folder = resource_path('views/vendor/zeus/themes/' . config('zeus.theme') . '/' . $path);

if (! is_dir($folder)) {
$viewPath = 'zeus::themes.zeus.' . $path;
}

Expand Down

0 comments on commit afc04ce

Please sign in to comment.