Refactor Footer Template Logic: Commented out the fallback logic for footer templates in the PageController to streamline rendering. Updated the site layout to check for non-empty rendered footer content, enhancing the footer display logic. Cleaned up the home template by removing unnecessary characters and ensuring proper formatting.
This commit is contained in:
@@ -34,7 +34,7 @@ $favicon_path = setting('site_favicon');
|
||||
@yield('content')
|
||||
|
||||
{{-- Dynamic Footer Template or Static Footer --}}
|
||||
@if(isset($renderedFooter) && $renderedFooter)
|
||||
@if(isset($renderedFooter) && !empty(trim($renderedFooter)))
|
||||
{!! $renderedFooter !!}
|
||||
@else
|
||||
@include('partials.footer')
|
||||
|
||||
Reference in New Issue
Block a user