<?php

/** @var array $params */

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

$link = reset($params['link']);
$image_src = reset($params['image_src']);
$title = reset($params['title']);

?>
<div class="epnab epnab-clearfix">
	<?php include 'include/disclosure.phtml'; ?>
    <a href="<?php echo esc_url( $link ) ?>"><img src="<?php echo esc_url( $image_src ) ?>" alt="<?php echo esc_attr__( $title ) ?>"></a>
    <p><?php echo esc_html__( $title ) ?><br/>
	<a href="<?php echo esc_url( $link ) ?>" id="epnab-button"><?php esc_html_e( 'Buy Now on eBay', 'epn-affiliate-banner' ); ?></a></p>
</div>