<?php $term_id = isset(get_queried_object()->term_id) ? get_queried_object()->term_id : null; ?>
<div id="shop-sidebar"
  class="sticky-side-menu <?= Inoby_Config::show_shop_sidebar("false") ? '' : 'hidden-shop-sidebar' ?>">
  <div class="mobile-header">
    <h3><?= __("Filtrovať produkty", "rootscope") ?></h3>
  </div>
  <form id="products-filter">
    <div class="fields">
      <?php rc_shop_filter($term_id); ?>
    </div>

    <input type="hidden" name="tx_n" value="<?= $term_id ? get_queried_object()->taxonomy : null ?>">
    <input type="hidden" name="tx_v" value="<?= $term_id ?>">
    <input type="hidden" name="paged" value="<?= get_query_var("paged") ? get_query_var("paged") : 1 ?>">
    <input type="hidden" name="disable_auto_apply_filter" value="false">

    <?php
  // tento button sa zobrazi len na mobile - (product/archive.ts, product/filter.scss)
  ?>
    <button class="button filter-trigger"><?= __("Filtrovať", "inoby") ?></button>
  </form>


  <button class="button color products-filter-init"><?= __("Filtrovať produkty", "rootscope") ?></button>
</div>