<?php declare(strict_types=1); ?>

<!-- Page title -->
<?php if (isset($pageTitle)): ?>
<div class="row">
  <div class="col">
    <h1 class="page-title"><?php echo $tfValidator->escapeForXss($pageTitle); ?></h1>
  </div>
</div>
<?php endif; ?>

<!-- Tag select control -->
<?php if (isset($selectFiltersForm)): ?>
<div class="row">
  <div class="col col-md-5 col-lg-3 mx-auto select-filters clearfix">
    <?php echo $selectFiltersForm; ?>
  </div>
</div>
<?php endif; ?>

<!-- Top pagination control -->
<?php if (isset($pagination)): ?>
<div class="row">
  <div class="col d-flex justify-content-end pagination-top clearfix">
    <?php echo $pagination; ?>
  </div>
</div>
<?php endif; ?>

<!-- Main content of page -->
<?php if (isset($tfMainContent)): ?>
<div class="row">
  <div class="col main-content clearfix">
    <?php echo $tfMainContent; ?>
  </div>
</div>
<?php endif; ?>

<!-- Bottom pagination control -->
<?php if (isset($pagination)): ?>
<div class="row">
  <div class="col d-flex justify-content-end pagination-bottom clearfix">
    <?php echo $pagination; ?>
  </div>
</div>
<?php endif; ?>