<?php
	$link_sx = get_field('link_sx_gold');
	$link_dx = get_field('link_dx_gold');
?>

<?php if($link_sx || $link_dx):?>
  <section class="home-section home-gold double-link">
    <div class="link-wrapper">
    	<?php if($link_sx) echo '<a class="btn btn-primary boxed" href="'.$link_sx['url'].'" target="'.$link_sx['target'].'"><span>'.$link_sx['title'].'</span></a>';?>
    </div>
    <div class="link-wrapper">
    	<?php if($link_dx) echo '<a class="btn btn-primary boxed" href="'.$link_dx['url'].'" target="'.$link_dx['target'].'"><span>'.$link_dx['title'].'</span></a>';?>
    </div>
  </section>
<?php else: ?>
  <section class="home-section home-gold">
    <?php if($link_sx) echo '<div class="link-wrapper"><a class="btn btn-primary boxed" href="'.$link_sx['url'].'" target="'.$link_sx['target'].'"><span>'.$link_sx['title'].'</span></a>';?>
    <?php if($link_dx) echo '<div class="link-wrapper"><a class="btn btn-primary boxed" href="'.$link_dx['url'].'" target="'.$link_dx['target'].'"><span>'.$link_dx['title'].'</span></a>';?>
  </section>
<?php endif; ?>
