{"id":36733,"date":"2022-11-24T04:04:55","date_gmt":"2022-11-24T04:04:55","guid":{"rendered":"https:\/\/staging.totara.fortyapp.com\/newsletter\/"},"modified":"2024-08-02T20:44:56","modified_gmt":"2024-08-02T20:44:56","slug":"boletin-informativo","status":"publish","type":"page","link":"https:\/\/staging.totara.fortyapp.com\/es\/boletin-informativo\/","title":{"rendered":"Bolet\u00edn informativo"},"content":{"rendered":"\n<div class='standard-header-container themeGreen ' style=\"\">\n  <div class='backgroundImageWrapper'>\n    <img decoding=\"async\"\n      class='backgroundImage' \n      loading=\"lazy\"\n      src=\"https:\/\/staging.totara.fortyapp.com\/wp-content\/themes\/totara\/assets\/images\/bg-standard-hero-green.png\"  \n      sizes=\"100vw\"\n      alt=\"Background pattern\"\n    \/>\n  <\/div>\n  <div class='wrapper'>\n    <div class='detailsWrapper'>\n      <div class='details'>\n                          <h1 class='title  '>Reg\u00edstrate para recibir el bolet\u00edn de Totara\n<\/h1>\n                              <\/div>\n    <\/div>\n    \n        \n  <\/div>\n<\/div>\n<div class='newsletter-hubspot-container themeGreen padding-'>\n  <div class='wrapper'>\n    \n    <div class='content-wrapper'>\n            <div class='form-wrapper grey-background-'>\n                                    <h2 class='title '>Mant\u00e9nte actualizado con las \u00faltimas noticias, actualizaciones de productos y eventos de Totara.<\/h2>\n                                                    <div id=\"hubspot-form-container\">\n            \n\t\t\t\t\t<script>\n\t\t\t\t\t\twindow.hsFormsOnReady = window.hsFormsOnReady || [];\n\t\t\t\t\t\twindow.hsFormsOnReady.push(()=>{\n\t\t\t\t\t\t\thbspt.forms.create({\n\t\t\t\t\t\t\t\tportalId: 3415253,\n\t\t\t\t\t\t\t\tformId: \"9fc3de6c-51b5-4d4f-950d-2f075125f5a5\",\n\t\t\t\t\t\t\t\ttarget: \"#hbspt-form-1775976764000-5210461627\",\n\t\t\t\t\t\t\t\tregion: \"na1\",\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t})});\n\t\t\t\t\t<\/script>\n\t\t\t\t\t<div class=\"hbspt-form\" id=\"hbspt-form-1775976764000-5210461627\"><\/div>          <\/div>\n          <div id=\"hubspot-fallback-message\" style=\"display: none; padding: 20px; background-color: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px;\">\n            <p style=\"margin: 0; font-size: 14px;\">\n              This form may be blocked by your browser&#8217;s privacy settings (e.g., Firefox Enhanced Tracking Protection). Please email us at <a href=\"mailto:marketing@totara.com\" style=\"color: #007ab8; text-decoration: none;\">marketing@totara.com<\/a>.\n            <\/p>\n          <\/div>\n                      <\/div>\n    <\/div>\n  <\/div>\n<\/div>\n\n<script>\n  \/\/If the form has a dynamic content field for hubspot automation workflows, it will grab that ACF value and plop it inside of the embedded iframe form\n  jQuery(document).ready(function ($) {\n    let formDetected = false;\n    let fallbackShown = false;\n\n    \/\/ Function to check for HubSpot form and show fallback if needed\n    function checkForHubSpotForm() {\n      const hubspotContainer = document.getElementById('hubspot-form-container');\n      const fallbackMessage = document.getElementById('hubspot-fallback-message');\n      \n      if (!hubspotContainer || !fallbackMessage || fallbackShown) {\n        return;\n      }\n\n      \/\/ Check for various HubSpot form elements\n      const hsForm = hubspotContainer.querySelector('.hs-form');\n      const hsIframe = hubspotContainer.querySelector('.hs-form-iframe');\n      const hsScript = hubspotContainer.querySelector('script[src*=\"js.hsforms.net\"]');\n      const hasHubSpotContent = hubspotContainer.innerHTML.trim().length > 0;\n\n      if (hsForm || hsIframe || hsScript) {\n        formDetected = true;\n      } else if (hasHubSpotContent && !formDetected) {\n        \/\/ If there's content but no recognizable HubSpot elements after timeout, show fallback\n        setTimeout(function() {\n          if (!formDetected && !fallbackShown) {\n            fallbackMessage.style.display = 'block';\n            hubspotContainer.style.display = 'none';\n            fallbackShown = true;\n          }\n        }, 2000);\n      } else if (!hasHubSpotContent) {\n        \/\/ If container is completely empty, show fallback immediately\n        fallbackMessage.style.display = 'block';\n        hubspotContainer.style.display = 'none';\n        fallbackShown = true;\n      }\n    }\n\n    \/\/ Initial check\n    setTimeout(checkForHubSpotForm, 1000);\n    \n    \/\/ Additional checks at intervals\n    setTimeout(checkForHubSpotForm, 3000);\n\n    setTimeout(function() {\n      const fieldElement = document.querySelector('input[name=lead_source_description]');\n      let iframe = document.querySelector('.hs-form-iframe');\n\n      if (iframe && iframe?.contentWindow) {\n        let iframeDocument = iframe.contentWindow.document;\n        let input = iframeDocument.querySelector('input[name=lead_source_description]');\n        if (input) {\n          input.value = 'Newsletter';\n        }\n      }\n    }, 5000);\n  });\n<\/script>","protected":false},"excerpt":{"rendered":"","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"content-type":"","footnotes":""},"tax\/tags":[],"tax\/topics":[],"class_list":["post-36733","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/staging.totara.fortyapp.com\/es\/wp-json\/wp\/v2\/pages\/36733","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.totara.fortyapp.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/staging.totara.fortyapp.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/staging.totara.fortyapp.com\/es\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.totara.fortyapp.com\/es\/wp-json\/wp\/v2\/comments?post=36733"}],"version-history":[{"count":2,"href":"https:\/\/staging.totara.fortyapp.com\/es\/wp-json\/wp\/v2\/pages\/36733\/revisions"}],"predecessor-version":[{"id":37748,"href":"https:\/\/staging.totara.fortyapp.com\/es\/wp-json\/wp\/v2\/pages\/36733\/revisions\/37748"}],"wp:attachment":[{"href":"https:\/\/staging.totara.fortyapp.com\/es\/wp-json\/wp\/v2\/media?parent=36733"}],"wp:term":[{"taxonomy":"tag","embeddable":true,"href":"https:\/\/staging.totara.fortyapp.com\/es\/wp-json\/wp\/v2\/tax\/tags?post=36733"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/staging.totara.fortyapp.com\/es\/wp-json\/wp\/v2\/tax\/topics?post=36733"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}