<?php
/**
 * Copyright © 2016 Ihor Vansach (ihor@magefan.com). All rights reserved.
 * See LICENSE.txt for license details (http://opensource.org/licenses/osl-3.0.php).
 *
 * Glory to Ukraine! Glory to the heroes!
 */
?>
<?php
/**
 * Blog post list toolbar template
 *
 * @var $block \Magefan\Blog\Block\Post\PostList\Toolbar
 */
?>
<?php if ($block->getCollection()->getSize()) : ?>
	<?php $woj = $block->getWidgetOptionsJson() ?>
    <?php $pagerHtml = trim($block->getPagerHtml()) ?>
    <?php if ($pagerHtml) : ?>
    <div class="toolbar toolbar-blog-posts" <?php if ($woj) echo 'data-mage-init="'.$woj.'"' ?>>
        <?php echo $pagerHtml ?>
    </div>
    <?php endif ?>
<?php endif ?>
