
<script  language='javascript' type='text/javascript'>
	
	if(window.location.href.indexOf('wp-') === -1){
    setTimeout(() => {

		console.log('RPS Print Load');
        let e = document.getElementsByClassName('entry-meta')[0];
        let bt = document.createElement('button');
        bt.innerText = 'PDF';
        bt.id = 'btnImprimir';
        bt.onclick = CriaPDF;
        if(e) e.appendChild(bt);

    }, 500);
}
	
    function CriaPDF() {
        var conteudo = document.querySelector('[id^=post-]').innerHTML;
        var style = '<style>';
        // style = style + '.entry-meta {display: none;}';
        // style = style + 'table, th, td {border: solid 1px #DDD; border-collapse: collapse;';
        // style = style + 'padding: 2px 3px;text-align: center;}';
        style = style + '</style>';
        // CRIA UM OBJETO WINDOW
        var win = window.open('', '', 'height=700,width=700');
        win.document.write('<html><head>');
        win.document.write('<title>Verbete</title>'); // <title> CABEÇALHO DO PDF.
        win.document.write(style); // INCLUI UM ESTILO NA TAB HEAD
        win.document.write('</head>');
        win.document.write('<body>');
        win.document.write(conteudo); // O CONTEUDO DA TABELA DENTRO DA TAG BODY
        win.document.write('</body></html>');
        win.document.close(); // FECHA A JANELA
        win.print(); // IMPRIME O CONTEUDO
    }
</script>

<script  language='javascript' type='text/javascript'>
	
	if(window.location.href.indexOf('wp-') === -1){
    setTimeout(() => {

		console.log('RPS Print Load');
        let e = document.getElementsByClassName('entry-meta')[0];
        let bt = document.createElement('button');
        bt.innerText = 'PDF';
        bt.id = 'btnImprimir';
        bt.onclick = CriaPDF;
        if(e) e.appendChild(bt);

    }, 500);
}
	
    function CriaPDF() {
        var conteudo = document.querySelector('[id^=post-]').innerHTML;
        var style = '<style>';
        // style = style + '.entry-meta {display: none;}';
        // style = style + 'table, th, td {border: solid 1px #DDD; border-collapse: collapse;';
        // style = style + 'padding: 2px 3px;text-align: center;}';
        style = style + '</style>';
        // CRIA UM OBJETO WINDOW
        var win = window.open('', '', 'height=700,width=700');
        win.document.write('<html><head>');
        win.document.write('<title>Verbete</title>'); // <title> CABEÇALHO DO PDF.
        win.document.write(style); // INCLUI UM ESTILO NA TAB HEAD
        win.document.write('</head>');
        win.document.write('<body>');
        win.document.write(conteudo); // O CONTEUDO DA TABELA DENTRO DA TAG BODY
        win.document.write('</body></html>');
        win.document.close(); // FECHA A JANELA
        win.print(); // IMPRIME O CONTEUDO
    }
</script>
{"id":28,"date":"2014-09-21T20:34:30","date_gmt":"2014-09-21T20:34:30","guid":{"rendered":"http:\/\/localhost:8200\/theologica\/?page_id=28"},"modified":"2016-06-13T11:38:35","modified_gmt":"2016-06-13T14:38:35","slug":"contato","status":"publish","type":"page","link":"https:\/\/teologicalatinoamericana.com\/?page_id=28","title":{"rendered":"Contato"},"content":{"rendered":"<p>Teologica Latino America &lt;tla@teologicalatinoamericana.com&gt;<\/p>\n<p>Teologica &lt;teologica@teologicalatinoamericana.com&gt;<\/p>\n<p>Theologica &lt;theologica@faculdadejesuita.edu.br&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Teologica Latino America &lt;tla@teologicalatinoamericana.com&gt; Teologica &lt;teologica@teologicalatinoamericana.com&gt; Theologica &lt;theologica@faculdadejesuita.edu.br&gt;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":6,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-28","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/teologicalatinoamericana.com\/index.php?rest_route=\/wp\/v2\/pages\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/teologicalatinoamericana.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/teologicalatinoamericana.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/teologicalatinoamericana.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/teologicalatinoamericana.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=28"}],"version-history":[{"count":3,"href":"https:\/\/teologicalatinoamericana.com\/index.php?rest_route=\/wp\/v2\/pages\/28\/revisions"}],"predecessor-version":[{"id":1269,"href":"https:\/\/teologicalatinoamericana.com\/index.php?rest_route=\/wp\/v2\/pages\/28\/revisions\/1269"}],"wp:attachment":[{"href":"https:\/\/teologicalatinoamericana.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}