
{block mobilemenuScript}
<script data-cookieconsent="ignore">
   wpj.mobilemenu = {
      config: {
         endpoint: "{path('graphqliteRoute')}",
         additionalMenu: false,
         itemAdditionalContent: false,
         showSubSectionTitle: false,
         printShortName: false,
         itemShowAllIcon: false,
         itemShowAllWithCategoryName: false,
         itemBackWithCategoryName: false,
         {if !empty($activeCategory.category)}
         activeSection: {($activeCategory.category.visibleChildren->isEmpty())
         ? ($activeCategory.category.parent) ? $activeCategory.category.parent.id : 'null'
         : $activeCategory.category.id
         },
         activeSectionParents: {$activeCategory.category.parents|array_keys|json_encode},
         {/if}
      },
      translations: {
         back: "{t}Zpět{/t}",
         allInSection: "{t}Vše v kategorii{/t}",
         close: "{t}Zavřít{/t}",
      }
   }
</script>
{/block}
<div id="js-menu"></div>
