Skip to content

Commit

Permalink
feat: integrate card default-2 with social-links
Browse files Browse the repository at this point in the history
  • Loading branch information
Arukuen committed Oct 26, 2024
1 parent f6a8104 commit c92aa4f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/block/card/variations.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import ImageFaded from './images/faded.svg'
* External dependencies
*/
import { i18n, isPro } from 'stackable'
import { substituteIfDisabled } from '~stackable/util'

/**
* WordPress dependencies
Expand Down Expand Up @@ -105,7 +106,7 @@ const variations = applyFilters(
bottom: 0,
left: 0,
},
}, [
}, [ substituteIfDisabled( [ 'stackable/button-group|social-buttons', 'stackable/button-group|icon-button' ],
[ 'stackable/button-group', {
columnSpacing: {
top: 0,
Expand All @@ -132,6 +133,15 @@ const variations = applyFilters(
className: 'is-style-plain',
} ],
] ],
[ 'core/social-links',
{
align: 'right',
},
[
[ 'core/social-link', { service: 'facebook' } ],
[ 'core/social-link', { service: 'twitter' } ],
],
] ),
] ],
] ],
],
Expand Down

0 comments on commit c92aa4f

Please sign in to comment.