add Hooks

This commit is contained in:
2026-07-02 19:21:25 +07:00
parent 0dd68c3649
commit 3dc5a03484
5 changed files with 20 additions and 8 deletions
@@ -20,7 +20,7 @@
<!-- Project-wide CSS Variables & Custom Styles -->
<link rel="stylesheet" th:href="@{/css/custom.css}">
<!-- Admin Head Hook -->
<th:block th:utext="${@hookManager.doActionAndReturn('admin_head')}"></th:block>
<th:block th:utext="${hookManager.doActionAndReturn('admin_head')}"></th:block>
</head>
<body id="page-top">
@@ -361,7 +361,7 @@
<section layout:fragment="scripts"></section>
<!-- Admin Footer Hook -->
<th:block th:utext="${@hookManager.doActionAndReturn('admin_footer')}"></th:block>
<th:block th:utext="${hookManager.doActionAndReturn('admin_footer')}"></th:block>
</body>
@@ -7,7 +7,7 @@
<style th:utext="${themeCss}"></style>
<!-- wp_head hook -->
<th:block th:utext="${@hookManager.doActionAndReturn('wp_head')}"></th:block>
<th:block th:utext="${hookManager.doActionAndReturn('wp_head')}"></th:block>
</head>
<body>
<!-- Replace with Header Fragment -->
@@ -32,6 +32,6 @@
<footer th:replace="~{themes/__${activeTheme}__/footer :: footer}"></footer>
<!-- wp_footer hook -->
<th:block th:utext="${@hookManager.doActionAndReturn('wp_footer')}"></th:block>
<th:block th:utext="${hookManager.doActionAndReturn('wp_footer')}"></th:block>
</body>
</html>
@@ -7,7 +7,7 @@
<style th:utext="${themeCss}"></style>
<!-- wp_head hook -->
<th:block th:utext="${@hookManager.doActionAndReturn('wp_head')}"></th:block>
<th:block th:utext="${hookManager.doActionAndReturn('wp_head')}"></th:block>
</head>
<body style="background-color: #f8f9fa; font-family: sans-serif;">
<!-- Replace with Header Fragment -->
@@ -33,6 +33,6 @@
<footer th:replace="~{themes/__${activeTheme}__/footer :: footer}"></footer>
<!-- wp_footer hook -->
<th:block th:utext="${@hookManager.doActionAndReturn('wp_footer')}"></th:block>
<th:block th:utext="${hookManager.doActionAndReturn('wp_footer')}"></th:block>
</body>
</html>