From 23f46124cd7e97c4c3c5469308416377c9e88183 Mon Sep 17 00:00:00 2001 From: Edward Yang Date: Sat, 11 Feb 2023 21:08:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A6=96=E9=A1=B5=E5=92=8C?= =?UTF-8?q?=E5=BA=95=E9=83=A8=20blade=20hook?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/default/home.blade.php | 6 ++++++ themes/default/layout/footer.blade.php | 15 +++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/themes/default/home.blade.php b/themes/default/home.blade.php index 51c175e4..4af8d1b6 100644 --- a/themes/default/home.blade.php +++ b/themes/default/home.blade.php @@ -3,9 +3,15 @@ @section('content')
+ + @hook('footer.modules.before') + @foreach($modules as $module) @include($module['view_path'], $module) @endforeach + + @hook('footer.modules.after') +
@endsection diff --git a/themes/default/layout/footer.blade.php b/themes/default/layout/footer.blade.php index eafb71f0..785d04c8 100644 --- a/themes/default/layout/footer.blade.php +++ b/themes/default/layout/footer.blade.php @@ -3,6 +3,8 @@ $locale = locale(); @endphp + @hook('footer.services.before') + @if ($footer_content['services']['enable'])
@@ -22,6 +24,9 @@
@endif + + @hook('footer.services.after') +
+ + @hookwrapper('footer.copyright') + @endhookwrapper +