Skip to content

Commit

Permalink
Merge pull request #64 from lara-zeus/fix-set-path
Browse files Browse the repository at this point in the history
fix set view path
  • Loading branch information
atmonshi authored Sep 7, 2023
2 parents ba53ce6 + afc04ce commit 08c98bb
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 08c98bb

Please sign in to comment.