{"id":10,"date":"2023-09-05T17:09:52","date_gmt":"2023-09-05T15:09:52","guid":{"rendered":"https:\/\/test.ipr.ch\/?page_id=10"},"modified":"2023-09-07T14:15:28","modified_gmt":"2023-09-07T12:15:28","slug":"page1-2","status":"publish","type":"page","link":"https:\/\/test.ipr.ch\/en\/page1-2\/","title":{"rendered":"page1"},"content":{"rendered":"<p>ceci est la page no 1 &#8211; <strong><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=\"English\" onclick=\"event.preventDefault()\">\n\t\t\t<img loading=\"lazy\" decoding=\"async\" class=\"trp-flag-image\" src=\"https:\/\/test.ipr.ch\/wp-content\/plugins\/translatepress-multilingual\/assets\/images\/flags\/en_US.png\" width=\"18\" height=\"12\" alt=\"en_US\" title=\"English\"> English\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=\"English\" onclick=\"event.preventDefault()\">\n\t\t\t<img loading=\"lazy\" decoding=\"async\" class=\"trp-flag-image\" src=\"https:\/\/test.ipr.ch\/wp-content\/plugins\/translatepress-multilingual\/assets\/images\/flags\/en_US.png\" width=\"18\" height=\"12\" alt=\"en_US\" title=\"English\"> English\t\t<\/a>\n                    <a href=\"https:\/\/test.ipr.ch\/wp-json\/wp\/v2\/pages\/10\/\" title=\"Fran\u00e7ais\">\n            <img loading=\"lazy\" decoding=\"async\" class=\"trp-flag-image\" src=\"https:\/\/test.ipr.ch\/wp-content\/plugins\/translatepress-multilingual\/assets\/images\/flags\/fr_FR.png\" width=\"18\" height=\"12\" alt=\"fr_FR\" title=\"Fran\u00e7ais\"> Fran\u00e7ais        <\/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><\/strong><\/p>\n\n\n\n<p>\/<\/p>\n\n\n<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=\"English\" onclick=\"event.preventDefault()\">\n\t\t\t<img loading=\"lazy\" decoding=\"async\" class=\"trp-flag-image\" src=\"https:\/\/test.ipr.ch\/wp-content\/plugins\/translatepress-multilingual\/assets\/images\/flags\/en_US.png\" width=\"18\" height=\"12\" alt=\"en_US\" title=\"English\"> English\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=\"English\" onclick=\"event.preventDefault()\">\n\t\t\t<img loading=\"lazy\" decoding=\"async\" class=\"trp-flag-image\" src=\"https:\/\/test.ipr.ch\/wp-content\/plugins\/translatepress-multilingual\/assets\/images\/flags\/en_US.png\" width=\"18\" height=\"12\" alt=\"en_US\" title=\"English\"> English\t\t<\/a>\n                    <a href=\"https:\/\/test.ipr.ch\/wp-json\/wp\/v2\/pages\/10\/\" title=\"Fran\u00e7ais\">\n            <img loading=\"lazy\" decoding=\"async\" class=\"trp-flag-image\" src=\"https:\/\/test.ipr.ch\/wp-content\/plugins\/translatepress-multilingual\/assets\/images\/flags\/fr_FR.png\" width=\"18\" height=\"12\" alt=\"fr_FR\" title=\"Fran\u00e7ais\"> Fran\u00e7ais        <\/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>","protected":false},"excerpt":{"rendered":"<p>ceci est la page no 1 &#8211; \/<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-10","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/test.ipr.ch\/en\/wp-json\/wp\/v2\/pages\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/test.ipr.ch\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/test.ipr.ch\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/test.ipr.ch\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/test.ipr.ch\/en\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":3,"href":"https:\/\/test.ipr.ch\/en\/wp-json\/wp\/v2\/pages\/10\/revisions"}],"predecessor-version":[{"id":77,"href":"https:\/\/test.ipr.ch\/en\/wp-json\/wp\/v2\/pages\/10\/revisions\/77"}],"wp:attachment":[{"href":"https:\/\/test.ipr.ch\/en\/wp-json\/wp\/v2\/media?parent=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}