Created
March 5, 2018 11:22
-
-
Save avillegasn/5d6c7e6ad76e3b9991aa9473af349ec5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
save: function( props ) { | |
var attributes = props.attributes; | |
var alignment = props.attributes.alignment; | |
return ( | |
el( 'div', { className: props.className }, | |
attributes.mediaURL && | |
el( 'div', { className: 'nelio-testimonial-image', style: { backgroundImage: 'url('+attributes.mediaURL+')' } }, | |
el( 'img', { src: attributes.mediaURL } ), | |
), | |
el( 'div', { className: 'nelio-testimonial-content', style: { textAlign: attributes.alignment } }, | |
attributes.testimonial && el( 'p', {}, attributes.testimonial ), | |
el( 'p', { className: 'nelio-testimonial-name' }, attributes.name ), | |
attributes.position && el( 'p', { className: 'nelio-testimonial-position' }, attributes.position ) | |
) | |
) | |
); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment