widget

package
v0.0.0-...-8aeec60 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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 Archive

func Archive(h *wp.Handle, id string) string

func BuildconfigFn

func BuildconfigFn[K comparable, V any](m map[K]V, key string, a ...any) func(_ ...any) map[K]V

func Category

func Category(h *wp.Handle, id string) string

func CategoryDropdown

func CategoryDropdown(h *wp.Handle, args map[string]string, conf map[any]any, categories []models.TermsMy) string

func CategoryLi

func CategoryLi(h *wp.Handle, conf map[any]any, categories []models.TermsMy) string

func CategoryQueryName

func CategoryQueryName(h *wp.Handle) string

func CommonArgs

func CommonArgs() map[string]string

func DefaultRecentConf

func DefaultRecentConf() map[any]any

func DefaultRecentPostsArgs

func DefaultRecentPostsArgs() map[string]string
func DropdownCategories(h *wp.Handle, args map[string]string, conf map[any]any, categories []models.TermsMy) string

func Fn

func Fn(id string, fn func(*wp.Handle, string) string) func(h *wp.Handle) string

func IsCategory

func IsCategory(h *wp.Handle) (category models.TermsMy, r bool)

func Meta

func Meta(h *wp.Handle, id string) string

func ParseMetaArgs

func ParseMetaArgs(a ...any) map[string]string

func ParseRecentPostArgs

func ParseRecentPostArgs(a ...any) map[string]string

func ParseSearchArgs

func ParseSearchArgs(a ...any) map[string]string

func RecentCommentArgs

func RecentCommentArgs(a ...any) map[string]string

func RecentComments

func RecentComments(h *wp.Handle, id string) string

func RecentPostConf

func RecentPostConf(_ ...any) map[any]any

func RecentPosts

func RecentPosts(h *wp.Handle, id string) string
func Search(h *wp.Handle, id string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL