Documentation ¶
Index ¶
- Variables
- func Archive(h *wp.Handle, id string) string
- func BuildconfigFn[K comparable, V any](m map[K]V, key string, a ...any) func(_ ...any) map[K]V
- func Category(h *wp.Handle, id string) string
- func CategoryDropdown(h *wp.Handle, args map[string]string, conf map[any]any, ...) string
- func CategoryLi(h *wp.Handle, conf map[any]any, categories []models.TermsMy) string
- func CategoryQueryName(h *wp.Handle) string
- func CommonArgs() map[string]string
- func DefaultRecentConf() map[any]any
- func DefaultRecentPostsArgs() map[string]string
- func DropdownCategories(h *wp.Handle, args map[string]string, conf map[any]any, ...) string
- func Fn(id string, fn func(*wp.Handle, string) string) func(h *wp.Handle) string
- func IsCategory(h *wp.Handle) (category models.TermsMy, r bool)
- func Meta(h *wp.Handle, id string) string
- func ParseMetaArgs(a ...any) map[string]string
- func ParseRecentPostArgs(a ...any) map[string]string
- func ParseSearchArgs(a ...any) map[string]string
- func RecentCommentArgs(a ...any) map[string]string
- func RecentComments(h *wp.Handle, id string) string
- func RecentPostConf(_ ...any) map[any]any
- func RecentPosts(h *wp.Handle, id string) string
- func Search(h *wp.Handle, id string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var GetArchiveArgs = reload.BuildValFnWithAnyParams("widget_archive-args", archiveArgsFn)
View Source
var GetArchiveConf = BuildconfigFn(archivesConfig, "widget_archives", int64(2))
View Source
var GetCategoryArgs = reload.BuildValFnWithAnyParams("widget-category-args", categoryArgsFn)
View Source
var GetCategoryConf = BuildconfigFn(categoryConfig, "widget_categories", int64(2))
View Source
var GetMetaArgs = reload.BuildValFnWithAnyParams("widget-meta-args", ParseMetaArgs)
View Source
var GetRecentCommentArgs = reload.BuildValFnWithAnyParams("widget-recent-comment-args", RecentCommentArgs)
View Source
var GetRecentCommentConf = BuildconfigFn(recentCommentConf, "widget_recent-comments", int64(2))
View Source
var GetRecentPostArgs = reload.BuildValFnWithAnyParams("widget-recent-posts-args", ParseRecentPostArgs)
View Source
var GetRecentPostConf = reload.BuildValFnWithAnyParams("widget-recent-posts-conf", RecentPostConf)
View Source
var GetSearchArgs = reload.BuildValFnWithAnyParams("widget-search-args", ParseSearchArgs)
Functions ¶
func BuildconfigFn ¶
func BuildconfigFn[K comparable, V any](m map[K]V, key string, a ...any) func(_ ...any) map[K]V
func CategoryDropdown ¶
func CategoryLi ¶
func CategoryQueryName ¶
func CommonArgs ¶
func DefaultRecentConf ¶
func DefaultRecentPostsArgs ¶
func DropdownCategories ¶
func ParseMetaArgs ¶
func ParseRecentPostArgs ¶
func ParseSearchArgs ¶
func RecentCommentArgs ¶
func RecentPostConf ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.