
<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":3124,"date":"2024-05-02T07:16:53","date_gmt":"2024-05-02T10:16:53","guid":{"rendered":"https:\/\/teologicalatinoamericana.com\/?page_id=3124"},"modified":"2024-05-02T07:16:53","modified_gmt":"2024-05-02T10:16:53","slug":"histoire-de-lencyclopedie","status":"publish","type":"page","link":"https:\/\/teologicalatinoamericana.com\/?page_id=3124","title":{"rendered":"Histoire de l&#8217;Encyclop\u00e9die"},"content":{"rendered":"<p>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>.<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":0,"menu_order":2,"comment_status":"open","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-3124","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/teologicalatinoamericana.com\/index.php?rest_route=\/wp\/v2\/pages\/3124","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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/teologicalatinoamericana.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3124"}],"version-history":[{"count":1,"href":"https:\/\/teologicalatinoamericana.com\/index.php?rest_route=\/wp\/v2\/pages\/3124\/revisions"}],"predecessor-version":[{"id":3125,"href":"https:\/\/teologicalatinoamericana.com\/index.php?rest_route=\/wp\/v2\/pages\/3124\/revisions\/3125"}],"wp:attachment":[{"href":"https:\/\/teologicalatinoamericana.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}