<?xml version="1.0" encoding="UTF-8"?>
<item xmlns="http://omeka.org/schemas/omeka-xml/v5" itemId="791" public="1" featured="0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://omeka.org/schemas/omeka-xml/v5 http://omeka.org/schemas/omeka-xml/v5/omeka-xml-5-0.xsd" uri="https://archiwum-galeriafoksal.pl/items/show/791?output=omeka-xml" accessDate="2026-06-30T04:22:06+00:00">
  <itemType itemTypeId="8">
    <name>Wydarzenie</name>
    <description>A non-persistent, time-based occurrence. Metadata for an event provides descriptive information that is the basis for discovery of the purpose, location, duration, and responsible agents associated with an event. Examples include an exhibition, webcast, conference, workshop, open day, performance, battle, trial, wedding, tea party, conflagration.</description>
  </itemType>
  <elementSetContainer>
    <elementSet elementSetId="1">
      <name>Dublin Core</name>
      <description>The Dublin Core metadata element set is common to all Omeka records, including items, files, and collections. For more information see, http://dublincore.org/documents/dces/.</description>
      <elementContainer>
        <element elementId="50">
          <name>Title</name>
          <description>A name given to the resource</description>
          <elementTextContainer>
            <elementText elementTextId="4405">
              <text>Wydarznie</text>
            </elementText>
          </elementTextContainer>
        </element>
      </elementContainer>
    </elementSet>
  </elementSetContainer>
</item>
<script>
jQuery(document).ready(function($) {
    // Sprawdzamy ścieżkę URL (np. /items/browse czy /kontakt)
    var currentPath = window.location.pathname;

    // WARUNEK: Jeśli ścieżka to "/" lub pusta, tylko wtedy odpalamy menu
    if (currentPath === "/" || currentPath === "" || currentPath.indexOf("index.php") !== -1) {
        
        // 1. Dynamicznie wstrzykujemy style blokujące krzyżyk i otwierające menu
        $("<style id='foksal-menu-styles'>")
            .prop("type", "text/css")
            .html("#nav-modal { display: block !important; opacity: 1 !important; visibility: visible !important; } #nav-modal .close-button, #nav-toggle.active { display: none !important; }")
            .appendTo("head");

        // 2. Dodajemy klasę open do struktury
        $("#nav-modal").addClass("open");

        // 3. Obsługa bezpiecznego zamykania przy kliknięciu
        $("#nav-modal .navigation a").on("click", function(e) {
            var url = $(this).attr("href");
            
            if (url && url !== "#" && !url.startsWith("#")) {
                e.preventDefault();

                // Natychmiast usuwamy style i ukrywamy menu przed przejściem dalej
                $("#foksal-menu-styles").remove();
                $("#nav-modal").css({
                    "display": "none",
                    "opacity": "0",
                    "visibility": "hidden"
                }).removeClass("open");
                
                $("#nav-toggle").removeClass("active").attr("aria-expanded", "false");

                setTimeout(function() {
                    window.location.href = url;
                }, 10);
            }
        });
    }
});
</script>