Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Custom Gutenberg bloc with Roots Sage & Blade
{{--
Title: Témoignage
Description: test
Category: formatting
Icon: admin-comments
Keywords: testimonial quote
--}}
<blockquote data-{{$block['id']}} class="{{$block['classes']}}">
<p>{{the_field('testimonial')}}</p>
<cite>
<img src="{{get_field('picture')['url']}}" alt="{{get_field('picture')['alt']}}" />
<span>{{the_field('author')}}</span>
</cite>
@include('components.btn', get_field('link'))
</blockquote>
<style type="text/css">
[data-{{$block['id']}}] {
background: {{get_field('color')}};
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.