File: D:/HostingSpaces/MDalebout3/dev.prdct.nl/wwwroot/wp-content/themes/theme/blocks/block-quote.php
<?php
/**
* Sublogo Block Template.
*
* @param array $block The block settings and attributes.
* @param string $content The block inner HTML (empty).
* @param bool $is_preview True during AJAX preview.
* @param (int|string) $post_id The post ID this block is saved to.
*/
// Create id attribute allowing for custom "anchor" value.
$id = 'top-title-' . $block['id'];
if( !empty($block['anchor']) ) {
$id = $block['anchor'];
}
// Create class attribute allowing for custom "className" and "align" values.
$className = 'top-title';
if( !empty($block['className']) ) {
$className .= ' ' . $block['className'];
}
if( !empty($block['align']) ) {
$className .= ' align' . $block['align'];
}
// Load values and assign defaults.
$toptitle = get_field('bq_top_title') ?: __('Title');
$toplink = get_field('bq_author') ?: __("Author");
?>
<section class="block-qoute">
<!-- <div class="section-inner">-->
<h2 class="bhc-heading"><?php echo $toptitle; ?></h2>
<div class="bcl-read-more">
<span class="link-title" style="color:#45B6AD;"><?php echo $toplink; ?></span>
</div>
<!-- </div>-->
</section>