';
}
function altr_render_core_media_text(array $block, string $content):string
{
if (!array_key_exists('attrs', $block) || !array_key_exists('className', $block['attrs']) || $block['attrs']['className'] !== 'ltr-logo'){
return JVB()->blocks()->render_core_media_text($block, $content);
}
$imgs = [
[
'title' => 'Edmonton tattoo artist Amy Miketon of Bombshell Tattoo & Art Galerie',
'img' => 'Amy Miketon Octopus',
'alt' => 'An Octopus hugging Legacy\'s triangle by Edmonton tattoo artist Amy Miketon of Bombshell Tattoos',
'slug' => 'amy-miketon'
],
[
'title' => 'Edmonton tattoo artist Dave Huns of Blvck Chapel',
'img' => 'Dave Huns Script',
'alt' => 'A signature script of the words "Legacy Tattoo Removal" by Edmonton tattoo artist Dave Huns of Blvck Chapel',
'slug' => 'dave-huns'
],
[
'title' => 'Edmonton tattoo artist Jon Squires of Homesick Tattoos',
'img' => 'Jon Squires Pinup',
'alt' => 'A two-headed pinup girl (with Madi and Heidi\'s heads) by Edmonton tattoo artist Jon Squires of Homesick Tattoos',
'slug' => 'jon-squires'
],
[
'title' => 'Sherwood Park tattoo artist Scott Rusnak',
'img' => 'Scott Rusnak Kitsune',
'slug' => 'scott-rusnak',
'alt' => 'A Japanese Kitsune by Sherwood Park tattoo artist Scott Rusnak'
]
];
$rand = rand(0, count($imgs) - 1);
return sprintf(
'
Legacy Tattoo Removal
See the Difference
',
get_home_url(null, '/tattoo-artist-logos/').'#'.$imgs[$rand]['slug'],
$imgs[$rand]['title'],
AJV_URL.'/assets/img/'.$imgs[$rand]['img'].'.png',
$imgs[$rand]['alt'],
);
}
function altr_prerender_core_quote(array $block, ?string $content, ?WP_Block $parent):?string
{
$innerHTML = $block['innerHTML'];
$handler = JVB()->blocks();
// Extract cite content first
$cite = $handler->extractElement($innerHTML, 'cite');
$citeHtml = ($cite === '') ? '' : '— '.$cite.'';
// Get the blockquote content
$content = $handler->innerBlocks($block);
// Remove the cite element from content if it exists
if ($cite !== '') {
$content = $handler->stripTagContents('cite', $content);
}
return '