init
This commit is contained in:
63
user/localhost/config/plugins/comments.yaml
Normal file
63
user/localhost/config/plugins/comments.yaml
Normal file
@@ -0,0 +1,63 @@
|
||||
enabled: true
|
||||
enable_on_routes:
|
||||
- /blog
|
||||
disable_on_routes:
|
||||
- /blog/blog-post-to-ignore
|
||||
- /ignore-this-route
|
||||
form:
|
||||
name: comments
|
||||
fields:
|
||||
-
|
||||
name: name
|
||||
label: PLUGIN_COMMENTS.NAME_LABEL
|
||||
placeholder: PLUGIN_COMMENTS.NAME_PLACEHOLDER
|
||||
autocomplete: 'on'
|
||||
type: text
|
||||
validate:
|
||||
required: true
|
||||
-
|
||||
name: email
|
||||
label: PLUGIN_COMMENTS.EMAIL_LABEL
|
||||
placeholder: PLUGIN_COMMENTS.EMAIL_PLACEHOLDER
|
||||
type: email
|
||||
validate:
|
||||
required: true
|
||||
-
|
||||
name: text
|
||||
label: PLUGIN_COMMENTS.MESSAGE_LABEL
|
||||
placeholder: PLUGIN_COMMENTS.MESSAGE_PLACEHOLDER
|
||||
type: textarea
|
||||
validate:
|
||||
required: true
|
||||
-
|
||||
name: date
|
||||
type: hidden
|
||||
process:
|
||||
fillWithCurrentDateTime: true
|
||||
-
|
||||
name: title
|
||||
type: hidden
|
||||
evaluateDefault: grav.page.header.title
|
||||
-
|
||||
name: lang
|
||||
type: hidden
|
||||
evaluateDefault: grav.language.getLanguage
|
||||
-
|
||||
name: path
|
||||
type: hidden
|
||||
evaluateDefault: grav.uri.path
|
||||
buttons:
|
||||
-
|
||||
type: submit
|
||||
value: PLUGIN_COMMENTS.SUBMIT_COMMENT_BUTTON_TEXT
|
||||
process:
|
||||
-
|
||||
email:
|
||||
subject: PLUGIN_COMMENTS.EMAIL_NEW_COMMENT_SUBJECT
|
||||
body: '{% include ''forms/data.html.twig'' %}'
|
||||
-
|
||||
addComment: null
|
||||
-
|
||||
message: PLUGIN_COMMENTS.THANK_YOU_MESSAGE
|
||||
-
|
||||
reset: true
|
||||
30
user/localhost/config/plugins/email.yaml
Normal file
30
user/localhost/config/plugins/email.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
enabled: true
|
||||
from: hello@boyatzon.ch
|
||||
from_name: 'Site Boyatzon.ch'
|
||||
to: hello@boyatzon.ch
|
||||
to_name: Boyatzon.ch
|
||||
queue:
|
||||
enabled: false
|
||||
flush_frequency: '* * * * *'
|
||||
flush_msg_limit: 10
|
||||
flush_time_limit: 100
|
||||
mailer:
|
||||
engine: smtp
|
||||
smtp:
|
||||
server: mail.infomaniak.com
|
||||
port: 587
|
||||
encryption: tls
|
||||
user: hello@boyatzon.ch
|
||||
password: 'DRshqR9_#/361'
|
||||
auth_mode: login
|
||||
sendmail:
|
||||
bin: '/usr/sbin/sendmail -bs'
|
||||
content_type: text/html
|
||||
debug: true
|
||||
charset: null
|
||||
cc: null
|
||||
cc_name: null
|
||||
bcc: null
|
||||
reply_to: null
|
||||
reply_to_name: null
|
||||
body: null
|
||||
1
user/localhost/config/security.yaml
Normal file
1
user/localhost/config/security.yaml
Normal file
@@ -0,0 +1 @@
|
||||
salt: NrM5o6sK2QtB9n
|
||||
Reference in New Issue
Block a user