<?php 
$class = isset($args['class']) ? $args['class'] : '';
?>

<section class="section  dashboard-access-cta <?php echo $class;?>">
    <div class="container">
        <div class="box">
            <div class="row align-items-center">
                <div class="col-lg-6">
                    <div class="img-cont slide-right">
                        <img src="<?php echo get_field('affiliate_cta_image');?>" alt="cta" class="img-fluid">
                    </div>
                </div>
                <div class="col-lg-6">
                    <div class="text-cont slide-left">
                        <h2><?php echo get_field('affiliate_cta_heading');?></h2>
                        <p><?php echo get_field('affiliate_cta_text');?></p>
                        <?php $button = get_field('affiliate_cta_button')?>
                        <a href="<?php echo $button['url']?>" class="animated-cta-btn accent-btn" ><?php echo $button['title']?></a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>