{"id":825,"date":"2017-11-10T14:13:33","date_gmt":"2017-11-10T16:13:33","guid":{"rendered":"http:\/\/teologiaecapelania.com.br\/?page_id=825"},"modified":"2017-11-10T14:15:56","modified_gmt":"2017-11-10T16:15:56","slug":"renovacao","status":"publish","type":"page","link":"https:\/\/teologiaecapelania.com.br\/en\/carterinhas\/renovacao\/","title":{"rendered":"RENOVATION"},"content":{"rendered":"<h2><span style=\"color: #339966;\">RENEWAL<\/span><\/h2>\n<h5><span style=\"color: #808080;\"><span style=\"color: #ff0000;\">Attention:<\/span>\u00a0To make the renewal, please enter your details in the form below.<\/span><\/h5>\n<p style=\"text-align: center;\">\r\n<!-- START JS for Form ID: 824 -->\r\n<script type=\"text\/javascript\">\r\njQuery(document).ready(function($) {\r\n\r\n    jQuery(\"#preloader-swinvs\").fadeOut(500, function() {\r\n        jQuery(\"#ecf-form-swinvs\").fadeIn(300);\r\n    });\r\n\r\n    Ladda.bind('.ladda-button');\r\n\r\n    $(function() {\r\n\r\n        \r\n        \/* Validation *\/\r\n        $(\"#form-swinvs\").validate({\r\n            \/* Rules for form validation *\/\r\n            rules: {\r\n                name0:{required: true},email1:{required: true,email: true},text2:{required: true},text3:{required: true},text4:{required: true},message5:{required: false,minlength: 10},\r\n\r\n                            },\r\n            \/* Messages for form validation *\/\r\n            messages: {\r\n                name0:{required: \"Campo \u00e9 obrigat\u00f3rio!\"},email1:{required: \"Campo \u00e9 obrigat\u00f3rio!\"},text2:{required: \"Campo \u00e9 obrigat\u00f3rio!\"},text3:{required: \"Campo \u00e9 obrigat\u00f3rio!\"},text4:{required: \"Campo \u00e9 obrigat\u00f3rio!\"},message5:{required: \"Campo \u00e9 obrigat\u00f3rio!\"}            },\r\n            \/* Do not change code below *\/\r\n            errorPlacement: function(error, element) {\r\n                error.insertAfter(element.parent());\r\n            },\r\n\r\n            submitHandler: function(form) {\r\n                                ecf_onsubmit(jQuery('.form-swinvs'));\r\n\r\n                \r\n            },\r\n\r\n            invalidHandler: function(form) {\r\n                Ladda.stopAll();\r\n            },\r\n\r\n            onkeyup: false,\r\n            onfocusout: false,\r\n            onclick: false\r\n\r\n        });\r\n    });\r\n\r\n\r\n    \/* Form Submit ( Ajax ) *\/\r\n    function ecf_onsubmit(form) {\r\n\r\n        if (form.attr('action') == '#') {\r\n\r\n            data = {};\r\n            eldat = [];\r\n            data['action'] = 'ecf_deliver_mail';\r\n            data['formid'] = '824';\r\n            data['security'] = 'f09062da83';\r\n\r\n\r\n            \r\n            jQuery('input, textarea', form).each(function(key) {\r\n\r\n                items = {};\r\n\r\n                if (typeof $(this).data('type') === 'undefined') {\r\n                    return true;\r\n                }\r\n\r\n\r\n                \r\n                items['type'] = $(this).data('type');\r\n                items['label'] = $(this).data('label');\r\n                items['value'] = this.value;\r\n                items['name'] = this.name;\r\n\r\n                eldat.push(items);\r\n\r\n            });\r\n\r\n\r\n                        data['allelmnt'] = JSON.stringify(eldat);\r\n\r\n            submitForm();\r\n\r\n            return false;\r\n\r\n        }\r\n\r\n    }\r\n\r\n    \/* Start submitForm\t *\/\r\n    function submitForm() {\r\n\r\n        jQuery.ajax({\r\n            url: 'https:\/\/teologiaecapelania.com.br\/wp-admin\/admin-ajax.php',\r\n            type: 'POST',\r\n            dataType: 'json',\r\n            data: data,\r\n            success: function(data) {\r\n\r\n                if (data.Ok == true) {\r\n\r\n                    $(\"#form-swinvs\").get(0).reset();\r\n\r\n                    if (data.msg == 'redirect') {\r\n                        window.location = \"http:\/\/teologiaecapelania.com.br\/pagamento-da-renovacao\/\";\r\n                    } else {\r\n                        notifyme('Dados enviados com sucesso!', 'n', 'success',\r\n                            'left middle');\r\n                    }\r\n\r\n                } else {\r\n                    $(\"#form-swinvs\").get(0).reset();\r\n                    notifyme(data.msg, 'n', 'error', 'left middle');\r\n                }\r\n\r\n                Ladda.stopAll();\r\n\r\n            }\r\n        });\r\n\r\n        \r\n    }\r\n\r\n\r\n    \/* Notify *\/\r\n    function notifyme(msg, b, typ, pos) {\r\n        if (b == 'n') {\r\n            b = 'cf-submittedswinvs';\r\n        } else {\r\n            b = 'atcswinvs';\r\n        }\r\n\r\n        $(\"#\" + b).gnotify(msg, {\r\n            style: \"nbootstrap\",\r\n            elementPosition: pos,\r\n            className: typ\r\n        });\r\n\r\n        msg = null;\r\n        typ = null;\r\n\r\n    }\r\n\r\n});\r\n<\/script>\r\n<!-- END JS for Form ID: 824 -->\r\n\r\n<!-- START Form Markup for Form ID: 824 -->\r\n<div id=\"preloader-swinvs\" class=\"ecfpreloader\"><\/div>\r\n<div id=\"ecf-form-swinvs\" class=\"ecf-body\" style=\"display:none;\">\r\n    <form method=\"post\" enctype=\"multipart\/form-data\" action=\"#\" id=\"form-swinvs\"\r\n        class=\"ecf-form form-swinvs\">\r\n                <fieldset>\r\n            <section><label class=\"label\">Nome completo<\/label><label class=\"input\"><input data-type=\"name\" data-label=\"Nome completo\" id=\"name0\" type=\"text\" name=\"name0\" placeholder=&quot;Digite o seu nome&quot;\/><\/label><\/section><section><label class=\"label\">Email<\/label><label class=\"input\"><input data-type=\"email\" data-label=\"Email\" id=\"email1\" type=\"text\" name=\"email1\" placeholder=&quot;Digite o seu email&quot;\/><\/label><\/section><section><label class=\"label\">Telefone (99) 99999-9999<\/label><label class=\"input\"><input data-type=\"text\" data-label=\"Telefone (99) 99999-9999\" id=\"text2\" type=\"text\" name=\"text2\" placeholder=&quot;Digite seu telefone ex: (99) 99999-9999&quot;\/><\/label><\/section><section><label class=\"label\">Credencial<\/label><label class=\"input\"><input data-type=\"text\" data-label=\"Credencial\" id=\"text3\" type=\"text\" name=\"text3\" placeholder=&quot;Informe sua credencial corretamente&quot;\/><\/label><\/section><section><label class=\"label\">Confirma\u00e7\u00e3o de endere\u00e7o (Rua\/Av., n\u00b0, complemento se houver)<\/label><label class=\"input\"><input data-type=\"text\" data-label=\"Confirma\u00e7\u00e3o de endere\u00e7o (Rua\/Av., n\u00b0, complemento se houver)\" id=\"text4\" type=\"text\" name=\"text4\" placeholder=&quot;Informe o endere\u00e7o para entrega (Rua\/Av., n\u00b0, complemento se houver)&quot;\/><\/label><\/section><section><label class=\"label\">Coment\u00e1rio (se houver)<\/label><label class=\"textarea\"><textarea data-type=\"message\" data-label=\"Coment\u00e1rio (se houver)\" id=\"message5\" name=\"message5\" rows=\"7\" ><\/textarea><\/label><\/section>        <\/fieldset>\r\n        <footer>\r\n            <button data-style=\"slide-down\" id=\"cf-submittedswinvs\" class=\"ecfbutton ladda-button\"\r\n                type=\"submit\" name=\"cf-submittedswinvs\"><span\r\n                    class=\"ladda-label\">SEND<\/span><\/button>\r\n        <\/footer>\r\n    <\/form>\r\n\r\n    \r\n<\/div>\r\n<!-- END Form Markup for Form ID: 824 -->","protected":false},"excerpt":{"rendered":"<p>RENEWAL Attention:\u00a0To make the renewal, please enter your details in the form below.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":29,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-825","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/teologiaecapelania.com.br\/en\/wp-json\/wp\/v2\/pages\/825","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/teologiaecapelania.com.br\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/teologiaecapelania.com.br\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/teologiaecapelania.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/teologiaecapelania.com.br\/en\/wp-json\/wp\/v2\/comments?post=825"}],"version-history":[{"count":2,"href":"https:\/\/teologiaecapelania.com.br\/en\/wp-json\/wp\/v2\/pages\/825\/revisions"}],"predecessor-version":[{"id":827,"href":"https:\/\/teologiaecapelania.com.br\/en\/wp-json\/wp\/v2\/pages\/825\/revisions\/827"}],"up":[{"embeddable":true,"href":"https:\/\/teologiaecapelania.com.br\/en\/wp-json\/wp\/v2\/pages\/29"}],"wp:attachment":[{"href":"https:\/\/teologiaecapelania.com.br\/en\/wp-json\/wp\/v2\/media?parent=825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}