<?php
/**
 *  Text Block
 *
 * @package      ARBOR
 * @author       Mathias Rill
 * @since        3.0.0
 * @license      GPL-2.0+
**/


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


$link = get_field('button_link');

if( $link ): 
    $link_url = $link['url'];
    $link_title = $link['title'];
    $link_target = $link['target'] ? $link['target'] : '_self';

 endif; 

 ?>




<a href="<?php echo esc_url( $link_url ); ?>" class="btn btn-link btn" target="<?php echo esc_attr( $link_target ); ?>">

	<span class="link-text"><?php echo esc_html( $link_title ); ?></span>

	<div class="link-icon">
		<div class="icon--wrapper icon" role="img" aria-label="">

<svg xmlns="http://www.w3.org/2000/svg" width="27.06" height="21.708" viewBox="0 0 27.06 21.708">
  <g id="Gruppe_1485" data-name="Gruppe 1485" transform="translate(-1163.768 -528.923)">
    <path id="Pfad_621" data-name="Pfad 621" d="M14.064,0l-.475,13.58L0,13.564" transform="translate(1169.159 539.965) rotate(-45)" fill="none" stroke="#000" stroke-miterlimit="10" stroke-width="3"/>
    <path id="Pfad_742" data-name="Pfad 742" d="M73.5,0H48.768" transform="translate(1115 539.951)" fill="none" stroke="#000" stroke-width="3"/>
  </g>
</svg>


	</div>
</div>
</a>

