feat: AcfSocial / parseAcfSocial
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
fragment AcfSocial on GroupAbstractSocial_Fields {
|
||||
profiles {
|
||||
url
|
||||
}
|
||||
}
|
||||
11
wp-content/themes/moonshine/app/components/acf/AcfSocial.vue
Normal file
11
wp-content/themes/moonshine/app/components/acf/AcfSocial.vue
Normal file
@@ -0,0 +1,11 @@
|
||||
<script setup lang="ts">
|
||||
defineProps<{ social?: AcfSocialOutput }>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div v-if="social?.profiles" class="flex gap-1.5">
|
||||
<a v-for="({ url, icon }, key) in social.profiles" :key="key" :href="url" target="_blank" rel="noopener noreferrer" class="flex">
|
||||
<UIcon :name="icon" />
|
||||
</a>
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user