package twentyseventeen
import (
"fmt"
"github.com/fthvgb1/wp-go/internal/theme/wp"
"github.com/fthvgb1/wp-go/internal/wpconfig"
)
func pushScripts(h *wp.Handle) {
h.PushCacheGroupHeadScript("head", 30, func(h *wp.Handle) string {
head := headScript
if "dark" == wpconfig.GetThemeModsVal(ThemeName, "colorscheme", "light") {
head = fmt.Sprintf("%s\n%s", headScript, ` `)
}
return head
})
h.PushGroupFooterScript(20, footerScript)
}
var headScript = `
`
var footerScript = `
`