<?php
/**
 * Copyright © 2013-2017 Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

// @codingStandardsIgnoreFile

/* @var $block \Magento\Wishlist\Block\Link */
?>

<div class="top-wishlist">
	<a  data-bind="scope: 'wishlist'" <?php /* @escapeNotVerified */ echo $block->getLinkAttributes() ?>>
		<span class="wishlist-icon icon-heart theme-header-icon"></span>
        <!-- ko if: wishlist().counter -->
        <span class="wishlist-count" data-bind="text: wishlist().counter"></span>
        <!-- /ko -->
	</a>
	<?php echo $block->getChildHtml(); ?>
</div>
<script type="text/x-magento-init">
    {
        "*": {
            "Magento_Ui/js/core/app": {
                "components": {
                    "wishlist": {
                        "component": "Magento_Wishlist/js/view/wishlist"
                    }
                }
            }
        }
    }

</script>
