Skip to content

Instantly share code, notes, and snippets.

@scofennell
Last active May 12, 2021 15:55
Show Gist options
  • Save scofennell/d2fe2d248c2f143a15498882cd82b3e3 to your computer and use it in GitHub Desktop.
Save scofennell/d2fe2d248c2f143a15498882cd82b3e3 to your computer and use it in GitHub Desktop.
bq style
<?php
function quote_cb( $attributes, $out ) {
$out = wpautop( $out );
$i = new Icon( 'quote-left', FALSE, array( 'block w-6' ) );
$mark = $i -> get();
$out = $this -> css_classify( $out, 'blockquote', array( 'flex', 'flex-col', 'space-y-5' ) );
$get_text_align_class = $this -> get_text_align_class( $attributes );
$out = "
<div class='flex items-stretch space-x-3 $get_text_align_class'>
<div class='flex-none w-7'>
<div class='flex h-full flex-col space-y-3'>
<div class='text-gray'>$mark</div>
<div class='h-full flex-grow flex justify-center'><div class='h-full border-l border-gray border-solid'></div></div>
</div>
</div>
<div class='flex-grow'>
$out
</div>
</div>
";
return $out;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment