You've already forked grav-plugin-listmonk
93 lines
2.7 KiB
YAML
93 lines
2.7 KiB
YAML
name: Listmonk
|
|
slug: listmonk
|
|
type: plugin
|
|
version: 0.1.0
|
|
description: Listmonk integration for GravCMS
|
|
icon: circle-o
|
|
author:
|
|
name: magdev
|
|
email: magdev3.0@gmail.com
|
|
keywords: grav, plugin, email, listmonk, newsletter
|
|
license: MIT
|
|
|
|
dependencies:
|
|
- { name: grav, version: '>=1.7.0' }
|
|
|
|
form:
|
|
validation: loose
|
|
fields:
|
|
tabs:
|
|
type: tabs
|
|
active: 1
|
|
class: subtle
|
|
|
|
fields:
|
|
options:
|
|
type: tab
|
|
title: PLUGIN_LISTMONK.OPTIONS
|
|
fields:
|
|
enabled:
|
|
type: toggle
|
|
label: PLUGIN_ADMIN.PLUGIN_STATUS
|
|
highlight: 1
|
|
default: 0
|
|
options:
|
|
1: PLUGIN_ADMIN.ENABLED
|
|
0: PLUGIN_ADMIN.DISABLED
|
|
validate:
|
|
type: bool
|
|
api.hostname:
|
|
type: text
|
|
label: PLUGIN_LISTMONK.HOSTNAME
|
|
help: PLUGIN_LISTMONK.HOSTNAME_HELP
|
|
placeholder: PLUGIN_LISTMONK.HOSTNAME_PLACEHOLDER
|
|
size: medium
|
|
validate:
|
|
type: string
|
|
api.username:
|
|
type: text
|
|
label: PLUGIN_LISTMONK.USERNAME
|
|
help: PLUGIN_LISTMONK.USERNAME_HELP
|
|
placeholder: PLUGIN_LISTMONK.USERNAME_PLACEHOLDER
|
|
size: small
|
|
validate:
|
|
type: string
|
|
api.token:
|
|
type: text
|
|
label: PLUGIN_LISTMONK.TOKEN
|
|
help: PLUGIN_LISTMONK.TOKEN_HELP
|
|
placeholder: PLUGIN_LISTMONK.TOKEN_PLACEHOLDER
|
|
size: medium
|
|
validate:
|
|
type: string
|
|
|
|
newsletter:
|
|
type: tab
|
|
title: PLUGIN_LISTMONK.NEWSLETTER
|
|
fields:
|
|
newsletter.list:
|
|
type: integer
|
|
label: PLUGIN_LISTMONK.NEWSLETTER_LIST_ID
|
|
help: PLUGIN_LISTMONK.NEWSLETTER_LIST_ID_HELP
|
|
size: small
|
|
validate:
|
|
type: number
|
|
min: 1
|
|
newsletter.subscriber.status:
|
|
type: select
|
|
multiple: false
|
|
size: medium
|
|
data-options@: 'Grav\Plugin\Listmonk\Model\NewsletterStatus::getNewsletterStatusList'
|
|
label: PLUGIN_LISTMONK.NEWSLETTER_STATUS
|
|
help: PLUGIN_LISTMONK.NEWSLETTER_STATUS_HELP
|
|
validate:
|
|
type: string
|
|
newsletter.subscriber.attributes:
|
|
type: textarea
|
|
size: large
|
|
label: PLUGIN_LISTMONK.NEWSLETTER_ATTRIBUTES
|
|
help: PLUGIN_LISTMONK.NEWSLETTER_ATTRIBUTES_HELP
|
|
placeholder: '{"attribute": "value"}'
|
|
validate:
|
|
type: string
|