{"id":659,"date":"2024-10-10T08:37:52","date_gmt":"2024-10-10T08:37:52","guid":{"rendered":"https:\/\/www.softestate.net\/?page_id=659"},"modified":"2024-10-10T08:48:34","modified_gmt":"2024-10-10T08:48:34","slug":"en-fr","status":"publish","type":"page","link":"https:\/\/www.softestate.net\/fr\/en-fr\/","title":{"rendered":"FR\/EN"},"content":{"rendered":"<div class=\"trp-block-container\"><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=\"French\" onclick=\"event.preventDefault()\">\n\t\t\t French\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=\"French\" onclick=\"event.preventDefault()\">\n\t\t\t French\t\t<\/a>\n                    <a href=\"https:\/\/www.softestate.net\/wp-json\/wp\/v2\/pages\/659\/\" title=\"English\">\n             English        <\/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><\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-659","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.softestate.net\/fr\/wp-json\/wp\/v2\/pages\/659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.softestate.net\/fr\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.softestate.net\/fr\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.softestate.net\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softestate.net\/fr\/wp-json\/wp\/v2\/comments?post=659"}],"version-history":[{"count":4,"href":"https:\/\/www.softestate.net\/fr\/wp-json\/wp\/v2\/pages\/659\/revisions"}],"predecessor-version":[{"id":665,"href":"https:\/\/www.softestate.net\/fr\/wp-json\/wp\/v2\/pages\/659\/revisions\/665"}],"wp:attachment":[{"href":"https:\/\/www.softestate.net\/fr\/wp-json\/wp\/v2\/media?parent=659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}