develop core Hooks, remain hooks is defined but not develop

This commit is contained in:
2026-07-02 19:11:03 +07:00
parent a7dbf52eea
commit 0dd68c3649
9 changed files with 15488 additions and 7 deletions
@@ -19,6 +19,8 @@
<!-- 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>
</head>
<body id="page-top">
@@ -358,6 +360,9 @@
<!-- Page-specific scripts injected by child templates -->
<section layout:fragment="scripts"></section>
<!-- Admin Footer Hook -->
<th:block th:utext="${@hookManager.doActionAndReturn('admin_footer')}"></th:block>
</body>
</html>
@@ -3,6 +3,11 @@
<head>
<meta charset="UTF-8">
<title>Default Theme</title>
<!-- Theme Customizer CSS Output -->
<style th:utext="${themeCss}"></style>
<!-- wp_head hook -->
<th:block th:utext="${@hookManager.doActionAndReturn('wp_head')}"></th:block>
</head>
<body>
<!-- Replace with Header Fragment -->
@@ -25,5 +30,8 @@
<!-- Replace with Footer Fragment -->
<footer th:replace="~{themes/__${activeTheme}__/footer :: footer}"></footer>
<!-- wp_footer hook -->
<th:block th:utext="${@hookManager.doActionAndReturn('wp_footer')}"></th:block>
</body>
</html>
@@ -3,6 +3,11 @@
<head>
<meta charset="UTF-8">
<title>Modern Theme</title>
<!-- Theme Customizer CSS Output -->
<style th:utext="${themeCss}"></style>
<!-- wp_head hook -->
<th:block th:utext="${@hookManager.doActionAndReturn('wp_head')}"></th:block>
</head>
<body style="background-color: #f8f9fa; font-family: sans-serif;">
<!-- Replace with Header Fragment -->
@@ -26,5 +31,8 @@
<!-- Replace with Footer Fragment -->
<footer th:replace="~{themes/__${activeTheme}__/footer :: footer}"></footer>
<!-- wp_footer hook -->
<th:block th:utext="${@hookManager.doActionAndReturn('wp_footer')}"></th:block>
</body>
</html>