<?php
/**
 * @var EOD_Financial $fd
 * @var string $target
 * @var string $years
 * @var array $args
 */
?>

<?= $args['before_widget'] ?>

<?php if (!empty($title)){ ?>
    <?= $args['before_title'] . $title . $args['after_title']; ?>
<?php } ?>

    <div class="eod_widget_fundamental">
        <?php
        echo eod_load_template("template/financials.php", array(
            'fd'               => $fd,
            'years'            => $years,
            'target'           => $target,
            'key'              => str_replace('.', '_', strtolower($target))
        ));
        ?>
    </div>

<?= $args['after_widget']; ?>