添加首页和底部 blade hook

This commit is contained in:
Edward Yang 2023-02-11 21:08:07 +08:00
parent f2d7f76ab9
commit 23f46124cd
2 changed files with 21 additions and 0 deletions

View File

@ -3,9 +3,15 @@
@section('content') @section('content')
<div class="modules-box"> <div class="modules-box">
@hook('footer.modules.before')
@foreach($modules as $module) @foreach($modules as $module)
@include($module['view_path'], $module) @include($module['view_path'], $module)
@endforeach @endforeach
@hook('footer.modules.after')
</div> </div>
@endsection @endsection

View File

@ -3,6 +3,8 @@
$locale = locale(); $locale = locale();
@endphp @endphp
@hook('footer.services.before')
@if ($footer_content['services']['enable']) @if ($footer_content['services']['enable'])
<div class="services-wrap"> <div class="services-wrap">
<div class="container"> <div class="container">
@ -22,6 +24,9 @@
</div> </div>
</div> </div>
@endif @endif
@hook('footer.services.after')
<div class="container"> <div class="container">
<div class="footer-content"> <div class="footer-content">
<div class="row"> <div class="row">
@ -51,6 +56,9 @@
</ul> </ul>
</div> </div>
@endfor @endfor
@hook('footer.contact.before')
@hookwrapper('footer.contact')
<div class="col-12 col-md-3 footer-content-contact"> <div class="col-12 col-md-3 footer-content-contact">
<h6 class="text-uppercase text-dark mb-3">{{ __('common.contact_us') }}</h6> <h6 class="text-uppercase text-dark mb-3">{{ __('common.contact_us') }}</h6>
<ul class="list-unstyled"> <ul class="list-unstyled">
@ -65,9 +73,14 @@
@endif @endif
</ul> </ul>
</div> </div>
@endhookwrapper
@hook('footer.contact.after')
</div> </div>
</div> </div>
</div> </div>
@hookwrapper('footer.copyright')
<div class="footer-bottom"> <div class="footer-bottom">
<div class="container"> <div class="container">
<div class="row align-items-center"> <div class="row align-items-center">
@ -82,4 +95,6 @@
</div> </div>
</div> </div>
</div> </div>
@endhookwrapper
</footer> </footer>