siteconf_location

package module
v0.0.0-...-b6b0ba1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 17 Imported by: 1

README

siteconf-location

Provide Location field to Site Settiings

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FieldPrefix = fmt.Sprintf("%x", sha1.Sum([]byte(pkg)))
)

Functions

func Get

func Get(site *core.Site) (loc tzdb.Location, ok bool)

func GetC

func GetC(ctx *core.Context) (loc tzdb.Location)

func GetOrSys

func GetOrSys(site *core.Site) tzdb.Location

func GetOrSysC

func GetOrSysC(ctx *core.Context) (loc tzdb.Location)

Types

type LocationKeyType

type LocationKeyType uint8
const LocationKey LocationKeyType = 0

func (LocationKeyType) String

func (this LocationKeyType) String() string

type Plugin

type Plugin struct {
	plug.EventDispatcher
	db.DBNames
	admin_plugin.AdminNames

	SitesRegisterKey string
}

func (*Plugin) Init

func (p *Plugin) Init(options *plug.Options)

func (*Plugin) OnRegister

func (p *Plugin) OnRegister(options *plug.Options)

func (*Plugin) RequireOptions

func (p *Plugin) RequireOptions() []string

type SiteConfigLocation

type SiteConfigLocation struct {
	fragment.SingletonFormFragmentModel
	Location tzdb.LocationCity
}

Jump to

Keyboard shortcuts

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