{"id":687,"date":"2024-03-16T11:19:04","date_gmt":"2024-03-16T11:19:04","guid":{"rendered":"http:\/\/www.consmg.com\/wp\/?page_id=687"},"modified":"2024-03-26T21:58:16","modified_gmt":"2024-03-26T21:58:16","slug":"colibri-wp","status":"publish","type":"page","link":"http:\/\/www.consmg.com\/wp\/","title":{"rendered":"Front Page"},"content":{"rendered":"<div data-colibri-id=\"687-c1\" class=\"style-244 style-local-687-c1 position-relative\">\n  <!---->\n  <div data-colibri-component=\"section\" data-colibri-id=\"687-c2\" id=\"contact\" class=\"h-section h-section-global-spacing d-flex align-items-lg-center align-items-md-center align-items-center style-245 style-local-687-c2 position-relative\">\n    <div class=\"background-wrapper\">\n      <div class=\"background-layer background-layer-media-container-lg\">\n        <!---->\n        <div class=\"overlay-layer\">\n          <div class=\"overlay-image-layer\" style=\"background-color: rgb(32, 42, 84); opacity: 0.5;\"><\/div>\n        <\/div>\n      <\/div>\n      <div class=\"background-layer background-layer-media-container-md\">\n        <!---->\n        <div class=\"overlay-layer\">\n          <div class=\"overlay-image-layer\" style=\"background-color: rgb(32, 42, 84); opacity: 0.5;\"><\/div>\n        <\/div>\n      <\/div>\n      <div class=\"background-layer background-layer-media-container\">\n        <!---->\n        <div class=\"overlay-layer\">\n          <div class=\"overlay-image-layer\" style=\"background-color: rgb(32, 42, 84); opacity: 0.5;\"><\/div>\n        <\/div>\n      <\/div>\n    <\/div>\n    <!---->\n    <div class=\"h-section-grid-container h-section-boxed-container\">\n      <!---->\n      <div data-colibri-id=\"687-c3\" class=\"h-row-container gutters-row-lg-2 gutters-row-md-2 gutters-row-2 gutters-row-v-lg-2 gutters-row-v-md-2 gutters-row-v-2 style-246 style-local-687-c3 position-relative\">\n        <!---->\n        <div class=\"h-row justify-content-lg-center justify-content-md-center justify-content-center align-items-lg-stretch align-items-md-stretch align-items-stretch gutters-col-lg-2 gutters-col-md-2 gutters-col-2 gutters-col-v-lg-2 gutters-col-v-md-2 gutters-col-v-2\">\n          <!---->\n          <div class=\"h-column h-column-container d-flex h-col-lg-auto h-col-md-auto h-col-auto style-247-outer style-local-687-c4-outer\">\n            <div data-colibri-id=\"687-c4\" class=\"d-flex h-flex-basis h-column__inner h-px-lg-0 h-px-md-0 h-px-0 v-inner-lg-0 v-inner-md-0 v-inner-0 style-247 style-local-687-c4 position-relative\">\n              <!---->\n              <!---->\n              <div class=\"w-100 h-y-container h-column__content h-column__v-align flex-basis-100 align-self-lg-start align-self-md-start align-self-start\">\n                <!---->\n                <div data-colibri-id=\"687-c5\" class=\"h-row-container gutters-row-lg-0 gutters-row-md-0 gutters-row-0 gutters-row-v-lg-0 gutters-row-v-md-0 gutters-row-v-0 style-248 style-local-687-c5 position-relative\">\n                  <!---->\n                  <div class=\"h-row justify-content-lg-center justify-content-md-center justify-content-center align-items-lg-stretch align-items-md-stretch align-items-stretch gutters-col-lg-0 gutters-col-md-0 gutters-col-0 gutters-col-v-lg-0 gutters-col-v-md-0 gutters-col-v-0\">\n                    <!---->\n                    <div class=\"h-column h-column-container d-flex h-col-lg-auto h-col-md-auto h-col-auto style-249-outer style-local-687-c6-outer\">\n                      <div data-colibri-id=\"687-c6\" class=\"d-flex h-flex-basis h-column__inner h-px-lg-0 h-px-md-0 h-px-0 v-inner-lg-0 v-inner-md-0 v-inner-0 style-249 style-local-687-c6 position-relative\">\n                        <!---->\n                        <!---->\n                        <div class=\"w-100 h-y-container h-column__content h-column__v-align flex-basis-100 align-self-lg-center align-self-md-center align-self-center\">\n                          <!---->\n                          <div data-colibri-id=\"687-c7\" class=\"h-global-transition-all h-heading style-250 style-local-687-c7 position-relative h-element\">\n                            <!---->\n                            <div class=\"h-heading__outer style-250 style-local-687-c7\">\n                              <!---->\n                              <!---->\n                              <h4 class=\"\">\u00bftienes un proyecto?<\/h4>\n                            <\/div>\n                          <\/div>\n                          <div data-colibri-id=\"687-c8\" class=\"h-global-transition-all h-heading style-252 style-local-687-c8 position-relative h-element\">\n                            <!---->\n                            <div class=\"h-heading__outer style-252 style-local-687-c8\">\n                              <!---->\n                              <!---->\n                              <h5 class=\"\">\u00a1Hablemos! en Construcciones Mancebo Gonzalez S.L. lo hacemos realidad.<\/h5>\n                            <\/div>\n                          <\/div>\n                        <\/div>\n                      <\/div>\n                    <\/div>\n                    <div class=\"h-column h-column-container d-flex h-col-lg-auto h-col-md-auto h-col-auto style-254-outer style-local-687-c9-outer\">\n                      <div data-colibri-id=\"687-c9\" class=\"d-flex h-flex-basis h-column__inner h-px-lg-0 h-px-md-0 h-px-0 v-inner-lg-0 v-inner-md-0 v-inner-0 style-254 style-local-687-c9 position-relative\">\n                        <!---->\n                        <!---->\n                        <div class=\"w-100 h-y-container h-column__content h-column__v-align flex-basis-100 align-self-lg-center align-self-md-center align-self-center\">\n                          <!---->\n                          <div data-colibri-id=\"687-c10\" class=\"style-255 style-local-687-c10 position-relative h-element\">\n                            <!---->\n                            <div class=\"h-global-transition-all h-global-transition h-global-transition-all h-contact-form-shortcode\">Ponte en contacto con nosotros \n\n    <form id=\"formulario-contacto\" action=\"<?php echo esc_url( admin_url('admin-post.php') ); ?>\" method=\"post\">\n        <input type=\"hidden\" name=\"action\" value=\"procesar_formulario_contacto\">\n        \n        <p><label for=\"nombre\">Nombre:<\/label><br>\n        <input type=\"text\" name=\"nombre\" required><\/p>\n        \n        <p><label for=\"email\">Correo electr\u00f3nico:<\/label><br>\n        <input type=\"email\" name=\"email\" required><\/p>\n        \n        <p><label for=\"mensaje\">Mensaje:<\/label><br>\n        <textarea name=\"mensaje\" required><\/textarea><\/p>\n        \n        <p><input type=\"submit\" value=\"Enviar\"><\/p>\n    <\/form>\n\n    <?php\n    return ob_get_clean();\n}\nadd_shortcode('formulario_contacto', 'formulario_contacto_shortcode');\n\n\/\/ Funci\u00f3n para procesar el formulario de contacto\nfunction procesar_formulario_contacto() {\n    $nombre = sanitize_text_field( $_POST['nombre'] );\n    $email = sanitize_email( $_POST['email'] );\n    $mensaje = sanitize_text_field( $_POST['mensaje'] );\n\n    \/\/ Env\u00eda el correo electr\u00f3nico\n    $to = 'jorgeconsmg@gmail.com';\n    $subject = 'Nuevo mensaje de contacto';\n    $body = \"Nombre: $nombre\\n\\nCorreo electr\u00f3nico: $email\\n\\nMensaje: $mensaje\";\n    $headers = array('Content-Type: text\/html; charset=UTF-8');\n\n    wp_mail( $to, $subject, $body, $headers );\n\n    \/\/ Redirecciona al usuario despu\u00e9s de enviar el formulario\n    wp_redirect( home_url() );\n    exit;\n}\nadd_action('admin_post_procesar_formulario_contacto', 'procesar_formulario_contacto');\nadd_action('admin_post_nopriv_procesar_formulario_contacto', 'procesar_formulario_contacto');\n<\/div>\n                          <\/div>\n                        <\/div>\n                      <\/div>\n                    <\/div>\n                  <\/div>\n                <\/div>\n              <\/div>\n            <\/div>\n          <\/div>\n        <\/div>\n      <\/div>\n    <\/div>\n  <\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>\u00bftienes un proyecto? \u00a1Hablemos! en Construcciones Mancebo Gonzalez S.L. lo hacemos realidad.<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-templates\/homepage.php","meta":{"footnotes":""},"class_list":["post-687","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.consmg.com\/wp\/index.php?rest_route=\/wp\/v2\/pages\/687","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.consmg.com\/wp\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.consmg.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.consmg.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.consmg.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=687"}],"version-history":[{"count":5,"href":"http:\/\/www.consmg.com\/wp\/index.php?rest_route=\/wp\/v2\/pages\/687\/revisions"}],"predecessor-version":[{"id":890,"href":"http:\/\/www.consmg.com\/wp\/index.php?rest_route=\/wp\/v2\/pages\/687\/revisions\/890"}],"wp:attachment":[{"href":"http:\/\/www.consmg.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}