2023-02-11 15:51:07 +00:00
|
|
|
package actions
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/fthvgb1/wp-go/internal/theme"
|
|
|
|
"github.com/fthvgb1/wp-go/internal/theme/common"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
)
|
|
|
|
|
|
|
|
func ThemeHook(scene int) func(*gin.Context) {
|
|
|
|
return func(ctx *gin.Context) {
|
2023-02-14 11:47:47 +00:00
|
|
|
t := theme.GetTemplateName()
|
|
|
|
theme.Hook(t, common.NewHandle(ctx, scene, t))
|
2023-02-11 15:51:07 +00:00
|
|
|
}
|
|
|
|
}
|