{"id":53877,"date":"2022-05-31T06:47:34","date_gmt":"2022-05-31T04:47:34","guid":{"rendered":"https:\/\/www.lausitzer-museenland.de\/?page_id=53877"},"modified":"2022-05-31T06:47:59","modified_gmt":"2022-05-31T04:47:59","slug":"language-switcher","status":"publish","type":"page","link":"https:\/\/www.lausitzer-museenland.de\/pl\/language-switcher\/","title":{"rendered":"Prze\u0142\u0105cznik j\u0119zyk\u00f3w"},"content":{"rendered":"<div class=\"trp_language_switcher_shortcode\">\n<div class=\"trp-language-switcher trp-language-switcher-container\" data-no-translation >\n    <div class=\"trp-ls-shortcode-current-language\">\n        <a href=\"#\" class=\"trp-ls-shortcode-disabled-language trp-ls-disabled-language\" title=\"Polski\" onclick=\"event.preventDefault()\">\n\t\t\t<img class=\"trp-flag-image\" src=\"https:\/\/www.lausitzer-museenland.de\/wp-content\/plugins\/translatepress-multilingual\/assets\/images\/flags\/pl_PL.png\" width=\"18\" height=\"12\" alt=\"pl_PL\" title=\"Polski\"> Polski\t\t<\/a>\n    <\/div>\n    <div class=\"trp-ls-shortcode-language\">\n                <a href=\"#\" class=\"trp-ls-shortcode-disabled-language trp-ls-disabled-language\"  title=\"Polski\" onclick=\"event.preventDefault()\">\n\t\t\t<img class=\"trp-flag-image\" src=\"https:\/\/www.lausitzer-museenland.de\/wp-content\/plugins\/translatepress-multilingual\/assets\/images\/flags\/pl_PL.png\" width=\"18\" height=\"12\" alt=\"pl_PL\" title=\"Polski\"> Polski\t\t<\/a>\n                    <a href=\"https:\/\/www.lausitzer-museenland.de\/pl\/wp-json\/wp\/v2\/pages\/53877#TRPLINKPROCESSED\" title=\"Deutsch\">\n            <img class=\"trp-flag-image\" src=\"https:\/\/www.lausitzer-museenland.de\/wp-content\/plugins\/translatepress-multilingual\/assets\/images\/flags\/de_DE.png\" width=\"18\" height=\"12\" alt=\"de_DE\" title=\"Deutsch\"> Deutsch        <\/a>\n\n            <a href=\"https:\/\/www.lausitzer-museenland.de\/pl\/wp-json\/wp\/v2\/pages\/53877#TRPLINKPROCESSED\" title=\"English (UK)\">\n            <img class=\"trp-flag-image\" src=\"https:\/\/www.lausitzer-museenland.de\/wp-content\/plugins\/translatepress-multilingual\/assets\/images\/flags\/en_GB.png\" width=\"18\" height=\"12\" alt=\"en_GB\" title=\"English (UK)\"> English (UK)        <\/a>\n\n            <a href=\"https:\/\/www.lausitzer-museenland.de\/pl\/wp-json\/wp\/v2\/pages\/53877#TRPLINKPROCESSED\" title=\"\u010ce\u0161tina\">\n            <img class=\"trp-flag-image\" src=\"https:\/\/www.lausitzer-museenland.de\/wp-content\/plugins\/translatepress-multilingual\/assets\/images\/flags\/cs_CZ.png\" width=\"18\" height=\"12\" alt=\"cs_CZ\" title=\"\u010ce\u0161tina\"> \u010ce\u0161tina        <\/a>\n\n            <a href=\"https:\/\/www.lausitzer-museenland.de\/pl\/wp-json\/wp\/v2\/pages\/53877#TRPLINKPROCESSED\" title=\"Serbski\">\n            <img class=\"trp-flag-image\" src=\"https:\/\/www.lausitzer-museenland.de\/wp-content\/uploads\/2022\/04\/dsb.png\" width=\"18\" height=\"12\" alt=\"dsb\" title=\"Serbski\"> Serbski        <\/a>\n\n        <\/div>\n    <script type=\"application\/javascript\">\n        \/\/ need to have the same with set from JS on both divs. Otherwise it can push stuff around in HTML\n        var trp_ls_shortcodes = document.querySelectorAll('.trp_language_switcher_shortcode .trp-language-switcher');\n        if ( trp_ls_shortcodes.length > 0) {\n            \/\/ get the last language switcher added\n            var trp_el = trp_ls_shortcodes[trp_ls_shortcodes.length - 1];\n\n            var trp_shortcode_language_item = trp_el.querySelector( '.trp-ls-shortcode-language' )\n            \/\/ set width\n            var trp_ls_shortcode_width                                               = trp_shortcode_language_item.offsetWidth + 16;\n            trp_shortcode_language_item.style.width                                  = trp_ls_shortcode_width + 'px';\n            trp_el.querySelector( '.trp-ls-shortcode-current-language' ).style.width = trp_ls_shortcode_width + 'px';\n\n            \/\/ We're putting this on display: none after we have its width.\n            trp_shortcode_language_item.style.display = 'none';\n        }\n    <\/script>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Switch Language<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Prze\u0142\u0105cz j\u0119zyk<\/p>","protected":false},"author":1001,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.lausitzer-museenland.de\/pl\/wp-json\/wp\/v2\/pages\/53877"}],"collection":[{"href":"https:\/\/www.lausitzer-museenland.de\/pl\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.lausitzer-museenland.de\/pl\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.lausitzer-museenland.de\/pl\/wp-json\/wp\/v2\/users\/1001"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lausitzer-museenland.de\/pl\/wp-json\/wp\/v2\/comments?post=53877"}],"version-history":[{"count":2,"href":"https:\/\/www.lausitzer-museenland.de\/pl\/wp-json\/wp\/v2\/pages\/53877\/revisions"}],"predecessor-version":[{"id":53879,"href":"https:\/\/www.lausitzer-museenland.de\/pl\/wp-json\/wp\/v2\/pages\/53877\/revisions\/53879"}],"wp:attachment":[{"href":"https:\/\/www.lausitzer-museenland.de\/pl\/wp-json\/wp\/v2\/media?parent=53877"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}