Compare commits
2 Commits
2ea52f1752
...
5665e0021b
Author | SHA1 | Date | |
---|---|---|---|
5665e0021b | |||
|
a3b1e054d0 |
|
@ -61,10 +61,6 @@
|
||||||
<meta name="generator" content="WordPress 6.0.2" />
|
<meta name="generator" content="WordPress 6.0.2" />
|
||||||
<style>.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
|
<style>.recentcomments a{display:inline !important;padding:0 !important;margin:0 !important;}</style>
|
||||||
|
|
||||||
{{if .customBackground}}
|
|
||||||
{{.customBackground|unescaped}}
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
{{template "common/head" .}}
|
{{template "common/head" .}}
|
||||||
{{block "head" .}}
|
{{block "head" .}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
|
@ -129,7 +129,4 @@
|
||||||
{{else}}
|
{{else}}
|
||||||
{{template "layout/empty"}}
|
{{template "layout/empty"}}
|
||||||
{{end }}
|
{{end }}
|
||||||
{{end}}
|
|
||||||
{{ define "footer"}}
|
|
||||||
<script src='/wp-includes/js/comment-reply.min.js?ver=6.0.2' id='comment-reply-js'></script>
|
|
||||||
{{end}}
|
{{end}}
|
|
@ -161,7 +161,4 @@
|
||||||
</symbol>
|
</symbol>
|
||||||
</defs>
|
</defs>
|
||||||
</svg>
|
</svg>
|
||||||
|
|
||||||
{{block "footerx" .}}
|
|
||||||
{{end}}
|
|
||||||
{{end}}
|
{{end}}
|
|
@ -129,8 +129,3 @@
|
||||||
{{end }}
|
{{end }}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
|
||||||
{{ define "footerx"}}
|
|
||||||
<script src='/wp-includes/js/comment-reply.min.js?ver=6.0.2' id='comment-reply-js'></script>
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
|
|
|
@ -101,6 +101,12 @@ func (d *DetailHandle) ContextPost() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *DetailHandle) Render() {
|
func (d *DetailHandle) Render() {
|
||||||
|
if d.Post.CommentStatus == "open" && wpconfig.GetOption("thread_comments") == "1" {
|
||||||
|
d.PushGroupFooterScript(30, func(h *Handle) string {
|
||||||
|
return `<script src='/wp-includes/js/comment-reply.min.js' id='comment-reply-js'></script>`
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
d.PushHandleFn(constraints.Ok, NewHandleFn(func(h *Handle) {
|
d.PushHandleFn(constraints.Ok, NewHandleFn(func(h *Handle) {
|
||||||
d.PasswordProject()
|
d.PasswordProject()
|
||||||
d.RenderComment()
|
d.RenderComment()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user