Skip to content

Commit

Permalink
Merge pull request #170 from klickreflex/main
Browse files Browse the repository at this point in the history
Add Pinterest as option to social media channels
  • Loading branch information
robdekort committed Nov 2, 2021
2 parents b59a94e + 49ba16e commit 81081b1
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 21 deletions.
1 change: 1 addition & 0 deletions dev/resources/svg/pinterest.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 39 additions & 21 deletions resources/blueprints/globals/social_media.yaml
Expand Up @@ -12,6 +12,23 @@ sections:
handle: social_media
field:
sets:
email:
display: Email
fields:
-
handle: handle
field:
input_type: text
type: text
localizable: true
listable: hidden
display: Email
validate: required
-
handle: prefix
field:
type: hidden
default: 'mailto:'
facebook:
display: Facebook
fields:
Expand All @@ -30,8 +47,8 @@ sections:
field:
type: hidden
default: 'https://www.facebook.com/'
email:
display: Email
github:
display: GitHub
fields:
-
handle: handle
Expand All @@ -40,13 +57,14 @@ sections:
type: text
localizable: true
listable: hidden
display: Email
prepend: 'https://www.github.com/'
display: Handle
validate: required
-
handle: prefix
field:
type: hidden
default: 'mailto:'
default: 'https://www.github.com/'
instagram:
display: Instagram
fields:
Expand Down Expand Up @@ -83,8 +101,8 @@ sections:
field:
type: hidden
default: 'https://www.linkedin.com/'
twitter:
display: Twitter
Pinterest:
display: Pinterest
fields:
-
handle: handle
Expand All @@ -93,16 +111,16 @@ sections:
type: text
localizable: true
listable: hidden
prepend: 'https://www.twitter.com/'
display: Handle
prepend: 'https://www.pinterest.com/'
display: URL
validate: required
-
handle: prefix
field:
type: hidden
default: 'https://www.twitter.com/'
vimeo:
display: Vimeo
default: 'https://www.pinterest.com/'
twitter:
display: Twitter
fields:
-
handle: handle
Expand All @@ -111,16 +129,16 @@ sections:
type: text
localizable: true
listable: hidden
prepend: 'https://www.vimeo.com/'
prepend: 'https://www.twitter.com/'
display: Handle
validate: required
-
handle: prefix
field:
type: hidden
default: 'https://www.vimeo.com/'
youtube:
display: YouTube
default: 'https://www.twitter.com/'
vimeo:
display: Vimeo
fields:
-
handle: handle
Expand All @@ -129,16 +147,16 @@ sections:
type: text
localizable: true
listable: hidden
prepend: 'https://www.youtube.com/'
prepend: 'https://www.vimeo.com/'
display: Handle
validate: required
-
handle: prefix
field:
type: hidden
default: 'https://www.youtube.com/'
github:
display: GitHub
default: 'https://www.vimeo.com/'
youtube:
display: YouTube
fields:
-
handle: handle
Expand All @@ -147,14 +165,14 @@ sections:
type: text
localizable: true
listable: hidden
prepend: 'https://www.github.com/'
prepend: 'https://www.youtube.com/'
display: Handle
validate: required
-
handle: prefix
field:
type: hidden
default: 'https://www.github.com/'
default: 'https://www.youtube.com/'
type: replicator
listable: hidden
localizable: true
Expand Down

0 comments on commit 81081b1

Please sign in to comment.