HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/MDalebout3/prdct.nl/wwwroot/wp-content/themes/theme/blocks/block-newsletter.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 = 'content-link-' . $block['id'];
if( !empty($block['anchor']) ) {
    $id = $block['anchor'];
}

// Create class attribute allowing for custom "className" and "align" values.
$className = 'central-image';
if( !empty($block['className']) ) {
    $className .= ' ' . $block['className'];
}
if( !empty($block['align']) ) {
    $className .= ' align' . $block['align'];
}

// Load values and assign defaults.
$content_title = get_field('bn_title') ?: 'Content Title';
$content_subtitle = get_field('bn_subtitle') ?: 'Content SubTitle';
$content_content = get_field('bn_text') ?: 'Content Text';
$content_placeholder = get_field('bn_text_placeholder') ?: 'email';
$content_tm = get_field('bn_thank_you_message') ?: 'Thank you!';
?>

<section class="block-newletter" id="<?php echo $block['id'] ?>">
    <div class="section-inner">
        <div class="form-wrapper">
            <?php if ($content_subtitle == 'Content SubTitle') { } else { ?>
                <div class="bcl-subtitle"><?php echo $content_subtitle; ?></div>
            <?php } ?>
            <?php if ($content_title == 'Content Title') { } else { ?>
                <div class="bcl-title"><?php echo $content_title ?></div>
            <?php } ?>
            <?php if ($content_content == 'Content Text') { } else { ?>
                <div class="bcl-content-text"><?php echo $content_content; ?></div>
            <?php } ?>
            <form class="newsletter_subscribe">
                <input type="email" placeholder="<?php echo $content_placeholder ?>" name="email"><button type="submit"><svg xmlns="http://www.w3.org/2000/svg" width="29.215" height="12.298" viewBox="0 0 29.215 12.298"><g id="Group_285" data-name="Group 285" transform="translate(0 0.592)"><line id="Line_23" data-name="Line 23" x2="27.536" transform="translate(0 5.686)" fill="none" stroke="#fff" stroke-width="2"/><path id="Path_110" data-name="Path 110" d="M2676.622,2826l3.988,5.429-3.988,5.7" transform="translate(-2652.625 -2826)" fill="none" stroke="#fff" stroke-width="2"/></g></svg></button>
                <div class="thanks_newsletter"><?php echo $content_tm; ?></div>
            </form>
        </div>
    </div>
</section>