{"id":3447,"date":"2026-03-25T12:21:01","date_gmt":"2026-03-25T11:21:01","guid":{"rendered":"https:\/\/sepaf.testa.software\/training\/events\/"},"modified":"2026-10-07T09:42:50","modified_gmt":"2026-10-07T08:42:50","slug":"events","status":"publish","type":"page","link":"https:\/\/sepaf.testa.software\/en\/training\/events\/","title":{"rendered":"Events"},"content":{"rendered":"<p><div class=\"et_d4_element et_pb_section et_pb_section_0 et_pb_with_background  et_pb_css_mix_blend_mode et_section_regular et_block_section\" >\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_d4_element et_pb_row et_pb_row_0 et_pb_equal_columns et_pb_gutters3  et_pb_css_mix_blend_mode et_block_row\">\n\t\t\t\t<div class=\"et_d4_element et_pb_column_4_4 et_pb_column et_pb_column_0  et_pb_css_mix_blend_mode et-last-child et_block_column\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_module et_d4_element et_pb_text et_pb_text_1  et_pb_text_align_left et_pb_bg_layout_light\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_text_inner\"><h1>Events<\/h1>\n<p>The Society organizes events, gatherings, \u201cmeetings,\u201d and conferences for its members and the general public to share the latest industry news and present studies and publications of interest. We also publicize other events of interest to the community. <\/p><\/div>\n\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t<\/div><div class=\"et_d4_element et_pb_section et_pb_section_1  et_pb_css_mix_blend_mode et_section_regular et_block_section\" >\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_d4_element et_pb_row et_pb_row_1  et_pb_css_mix_blend_mode et_block_row\">\n\t\t\t\t<div class=\"et_d4_element et_pb_column_4_4 et_pb_column et_pb_column_1  et_pb_css_mix_blend_mode et-last-child et_block_column\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_module et_d4_element ava_event_list ava_event_list_0\">\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t<div class=\"et_pb_module_inner\">\n\t\t\t\t\t<style>\n.ava-both-wrap { display:flex; gap:24px; align-items:flex-start; padding:1rem; flex-wrap:wrap; }\n.ava-both-wrap .ava-search-bar { flex:1 1 100%; }\n.ava-both-list { flex:1 1 0; overflow-y:auto; max-height:600px; }\n.ava-both-calendar { flex:1 1 0; min-width:0; }\n@media (max-width:768px) {\n    .ava-both-wrap { flex-direction:column; }\n    .ava-both-list  { flex:none; max-width:100%; max-height:none; order:1; }\n    .ava-both-calendar { order:2; width:100%; }\n}\n.ava-both-list .ava-events-list { margin:0; padding:0; list-style:none; }\n.ava-both-list .ava-event-item.is-hidden { display:none; }\n.ava-both-list .ava-no-events { padding:10px 12px; color:#888; font-style:italic; }\n.ava-calendar-legend { display:flex; gap:1.5em; margin-top:1em; flex-wrap:wrap; font-size:.9em; }\n.ava-calendar-legend span { display:inline-flex; align-items:center; gap:.4em; }\n.ava-calendar-legend .dot { width:12px; height:12px; border-radius:50%; display:inline-block; }\n<\/style>\n\n<div class=\"ava-both-wrap\">\n    <div id=\"ava-events-1\"\n         class=\"ava-both-list ava-events-wrapper\"\n         data-mode=\"list\"\n         data-per-page=\"0\">\n        <ul class=\"ava-events-list ava-events-list--list\">\n                            <li class=\"ava-event-item\"\n            data-type=\"event\"\n            data-title=\"(demo) xvii (inter)national congress on legal and forensic psychology   event\"\n            data-date-start=\"2027-03-01\"\n    >\n            <div class=\"ava-event-item__badge-wrap\" aria-hidden=\"true\">\n            <div class=\"ava-event-item__badge\">\n                <span class=\"ava-event-item__badge-type\">mar<\/span>\n                                    <span class=\"ava-event-item__badge-day\">1<\/span>\n                            <\/div>\n            <span class=\"ava-event-item__badge-year\">2027<\/span>\n        <\/div>\n    \n    <div class=\"ava-event-item__body\">\n                     <p class='ava-event-item__type'>event<\/p>\n                \n                    <p class='ava-event-item__mode'>Presencial<\/p>\n        \n        \n        <h3 class=\"ava-event-item__title\">\n                            <a href=\"https:\/\/sepaf.testa.software\/en\/project\/template-evento\/?evento_id=36\">(demo) XVII (Inter)National Congress on Legal and Forensic Psychology<\/a>\n                    <\/h3>\n\n        \n                    <a href=\"https:\/\/sepaf.testa.software\/en\/project\/template-evento\/?evento_id=36\" class=\"ava-event-item__link\">\n                Access            <\/a>\n            <\/div>\n<\/li>\n                            <li class=\"ava-event-item\"\n            data-type=\"event\"\n            data-title=\"xxx symposium of the spanish society of forensic psychiatry   event\"\n            data-date-start=\"2026-10-23\"\n    >\n            <div class=\"ava-event-item__badge-wrap\" aria-hidden=\"true\">\n            <div class=\"ava-event-item__badge\">\n                <span class=\"ava-event-item__badge-type\">oct<\/span>\n                                    <span class=\"ava-event-item__badge-day\">23<\/span>\n                            <\/div>\n            <span class=\"ava-event-item__badge-year\">2026<\/span>\n        <\/div>\n    \n    <div class=\"ava-event-item__body\">\n                     <p class='ava-event-item__type'>event<\/p>\n                \n                    <p class='ava-event-item__mode'>Presencial<\/p>\n        \n        \n        <h3 class=\"ava-event-item__title\">\n                            <a href=\"https:\/\/sepaf.testa.software\/en\/project\/template-evento\/?evento_id=33\">XXX Symposium of the Spanish Society of Forensic Psychiatry<\/a>\n                    <\/h3>\n\n        \n                    <a href=\"https:\/\/sepaf.testa.software\/en\/project\/template-evento\/?evento_id=33\" class=\"ava-event-item__link\">\n                Access            <\/a>\n            <\/div>\n<\/li>\n                    <\/ul>\n\n        <p class=\"ava-no-events\" style=\"display:none;\">\n            No events in this period.        <\/p>\n    <\/div>\n\n    <div class=\"ava-both-calendar\">\n        <div id=\"ava-cal-2\"><\/div>\n        <div class=\"ava-calendar-legend\">\n                            <span><span class=\"dot\" style=\"background:#e05c2a;\"><\/span>Events<\/span>\n                    <\/div>\n    <\/div>\n<\/div>\n\n<!-- Placeholder para el sistema unificado de filtro (search + paginacion) -->\n<div class=\"ava-list-filter-placeholder\"\n    data-list-id=\"ava-events-1\"\n    data-config=\"avaEventListFilter\"\n    data-row-selector=\".ava-event-item\"\n    data-search-class=\"ava-events-search\"\n    data-page-class=\"ava-events-page\"\n    data-filter-attr=\"type\"\n    data-filter-mode=\"single\"\n    data-show-category-filter=\"0\"\n    data-show-search-bar=\"1\"\n    data-show-pagination=\"1\"\n    data-per-page=\"0\">\n<\/div>\n\n\n<script>\n(function () {\n    var allEvents = [{\"id\":\"event_36\",\"type\":\"event\",\"title\":\"(demo) XVII (Inter)National Congress on Legal and Forensic Psychology\",\"start\":\"2027-03-01\",\"end\":\"2027-03-07\",\"place\":\"\",\"price\":\"\",\"description\":\"\",\"url\":\"https:\\\/\\\/sepaf.testa.software\\\/en\\\/project\\\/template-evento\\\/?evento_id=36\",\"backgroundColor\":\"#e05c2a\",\"borderColor\":\"#e05c2a\"},{\"id\":\"event_33\",\"type\":\"event\",\"title\":\"XXX Symposium of the Spanish Society of Forensic Psychiatry\",\"start\":\"2026-10-23\",\"end\":\"2026-10-23\",\"place\":\"\",\"price\":\"\",\"description\":\"\",\"url\":\"https:\\\/\\\/sepaf.testa.software\\\/en\\\/project\\\/template-evento\\\/?evento_id=33\",\"backgroundColor\":\"#e05c2a\",\"borderColor\":\"#e05c2a\"}];\n\n    \/**\n     * Filtra los <li> ya renderizados segun el rango visible del calendario.\n     * No reconstruimos DOM: solo alternamos una clase CSS para que el HTML\n     * de la card sea identico al del modo \"list\".\n     *\/\n    function applyRangeFilter(listEl, rangeStart, rangeEnd) {\n        var items = listEl.querySelectorAll('.ava-event-item');\n        var visibleCount = 0;\n\n        items.forEach(function (li) {\n            var ds = li.getAttribute('data-date-start');\n            if (!ds) {\n                li.classList.add('is-hidden');\n                return;\n            }\n            \/\/ Comparacion lexica YYYY-MM-DD (UTC) contra el rango del calendario.\n            var inRange = ds >= rangeStart && ds < rangeEnd;\n            \/\/ Mostrar todos los eventos\n            if (true || inRange) {\n                li.classList.remove('is-hidden');\n                visibleCount++;\n            } else {\n                li.classList.add('is-hidden');\n            }\n        });\n\n        var emptyRangeMsg = listEl.querySelector('.ava-no-events');\n        if (emptyRangeMsg) {\n            emptyRangeMsg.style.display = visibleCount === 0 ? 'block' : 'none';\n        }\n    }\n\n    function initBothView() {\n        var calEl  = document.getElementById(\"ava-cal-2\");\n        var listEl = document.getElementById(\"ava-events-1\");\n        if (!calEl || !listEl || typeof FullCalendar === 'undefined') return;\n\n        var calendar = new FullCalendar.Calendar(calEl, {\n            initialView:      'dayGridMonth',\n            locale:           'en',\n            height:           'auto',\n            displayEventTime: false,\n            headerToolbar: {\n                left:   'prev,next today',\n                right:  'title'\n            },\n            events: allEvents,\n            datesSet: function (info) {\n                \/\/ Filtramos por el mes logico que FullCalendar esta mostrando\n                \/\/ (currentStart\/currentEnd), NO por el rango visible (info.start\/info.end),\n                \/\/ para que la lista SOLO muestre los eventos del MES en curso\n                \/\/ y no los dias \"de relleno\" de los meses anterior\/siguiente.\n                var s = info.view.currentStart.toISOString().slice(0, 10);\n                var e = info.view.currentEnd.toISOString().slice(0, 10);\n                applyRangeFilter(listEl, s, e);\n            },\n            eventClick: function (info) {\n                if (info.event.url) {\n                    info.jsEvent.preventDefault();\n                    window.location.href = info.event.url;\n                }\n            },\n        });\n        calendar.render();\n        var view = calendar.view;\n        \/\/ Mismo criterio que en datesSet: filtrar por MES (currentStart\/currentEnd),\n        \/\/ no por el rango visible (activeStart\/activeEnd) que incluye dias del mes\n        \/\/ anterior\/siguiente de \"relleno\" del grid.\n        var s0 = view.currentStart.toISOString().slice(0, 10);\n        var e0 = view.currentEnd.toISOString().slice(0, 10);\n        applyRangeFilter(listEl, s0, e0);\n    }\n\n    if (document.readyState === 'loading') {\n        document.addEventListener('DOMContentLoaded', initBothView);\n    } else {\n        initBothView();\n    }\n})();\n<\/script>\n\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t<\/div>\n\t\t\t\t\n\t\t\t\t\n\t\t\t<\/div><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":2875,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_et_pb_use_builder":"on","_et_pb_old_content":"","_et_gb_content_width":"","footnotes":""},"class_list":["post-3447","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/sepaf.testa.software\/en\/wp-json\/wp\/v2\/pages\/3447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sepaf.testa.software\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sepaf.testa.software\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sepaf.testa.software\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sepaf.testa.software\/en\/wp-json\/wp\/v2\/comments?post=3447"}],"version-history":[{"count":4,"href":"https:\/\/sepaf.testa.software\/en\/wp-json\/wp\/v2\/pages\/3447\/revisions"}],"predecessor-version":[{"id":3451,"href":"https:\/\/sepaf.testa.software\/en\/wp-json\/wp\/v2\/pages\/3447\/revisions\/3451"}],"up":[{"embeddable":true,"href":"https:\/\/sepaf.testa.software\/en\/wp-json\/wp\/v2\/pages\/2875"}],"wp:attachment":[{"href":"https:\/\/sepaf.testa.software\/en\/wp-json\/wp\/v2\/media?parent=3447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}