{"id":5409,"date":"2022-12-13T12:00:48","date_gmt":"2022-12-13T11:00:48","guid":{"rendered":"https:\/\/fotomagico.com\/?page_id=5409"},"modified":"2022-12-13T12:01:20","modified_gmt":"2022-12-13T11:01:20","slug":"conmutador-de-idiomas","status":"publish","type":"page","link":"https:\/\/fotomagico.com\/es-es\/language-switcher\/","title":{"rendered":"Conmutador de idiomas"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"5409\" class=\"elementor elementor-5409\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-55de355 e-flex e-con-boxed e-con e-parent\" data-id=\"55de355\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-c55c019 elementor-widget elementor-widget-shortcode\" data-id=\"c55c019\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\"><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=\"Espa\u00f1ol\" onclick=\"event.preventDefault()\">\n\t\t\t Espa\u00f1ol\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=\"Espa\u00f1ol\" onclick=\"event.preventDefault()\">\n\t\t\t Espa\u00f1ol\t\t<\/a>\n                    <a href=\"https:\/\/fotomagico.com\/es-es\/wp-json\/wp\/v2\/pages\/5409#TRPLINKPROCESSED\" title=\"English\">\n             English        <\/a>\n\n            <a href=\"https:\/\/fotomagico.com\/es-es\/wp-json\/wp\/v2\/pages\/5409#TRPLINKPROCESSED\" title=\"\u7b80\u4f53\u4e2d\u6587\">\n             \u7b80\u4f53\u4e2d\u6587        <\/a>\n\n            <a href=\"https:\/\/fotomagico.com\/es-es\/wp-json\/wp\/v2\/pages\/5409#TRPLINKPROCESSED\" title=\"Fran\u00e7ais\">\n             Fran\u00e7ais        <\/a>\n\n            <a href=\"https:\/\/fotomagico.com\/es-es\/wp-json\/wp\/v2\/pages\/5409#TRPLINKPROCESSED\" title=\"Nederlands\">\n             Nederlands        <\/a>\n\n            <a href=\"https:\/\/fotomagico.com\/es-es\/wp-json\/wp\/v2\/pages\/5409#TRPLINKPROCESSED\" title=\"Deutsch\">\n             Deutsch        <\/a>\n\n            <a href=\"https:\/\/fotomagico.com\/es-es\/wp-json\/wp\/v2\/pages\/5409#TRPLINKPROCESSED\" title=\"Italiano\">\n             Italiano        <\/a>\n\n            <a href=\"https:\/\/fotomagico.com\/es-es\/wp-json\/wp\/v2\/pages\/5409#TRPLINKPROCESSED\" title=\"\u65e5\u672c\u8a9e\">\n             \u65e5\u672c\u8a9e        <\/a>\n\n            <a href=\"https:\/\/fotomagico.com\/es-es\/wp-json\/wp\/v2\/pages\/5409#TRPLINKPROCESSED\" title=\"\ud55c\uad6d\uc5b4\">\n             \ud55c\uad6d\uc5b4        <\/a>\n\n            <a href=\"https:\/\/fotomagico.com\/es-es\/wp-json\/wp\/v2\/pages\/5409#TRPLINKPROCESSED\" title=\"Portugu\u00eas\">\n             Portugu\u00eas        <\/a>\n\n            <a href=\"https:\/\/fotomagico.com\/es-es\/wp-json\/wp\/v2\/pages\/5409#TRPLINKPROCESSED\" title=\"Svenska\">\n             Svenska        <\/a>\n\n            <a href=\"https:\/\/fotomagico.com\/es-es\/wp-json\/wp\/v2\/pages\/5409#TRPLINKPROCESSED\" title=\"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430\">\n             \u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430        <\/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>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-5409","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/fotomagico.com\/es-es\/wp-json\/wp\/v2\/pages\/5409","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fotomagico.com\/es-es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/fotomagico.com\/es-es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/fotomagico.com\/es-es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fotomagico.com\/es-es\/wp-json\/wp\/v2\/comments?post=5409"}],"version-history":[{"count":4,"href":"https:\/\/fotomagico.com\/es-es\/wp-json\/wp\/v2\/pages\/5409\/revisions"}],"predecessor-version":[{"id":5413,"href":"https:\/\/fotomagico.com\/es-es\/wp-json\/wp\/v2\/pages\/5409\/revisions\/5413"}],"wp:attachment":[{"href":"https:\/\/fotomagico.com\/es-es\/wp-json\/wp\/v2\/media?parent=5409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}