-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-artigo.php
More file actions
42 lines (30 loc) · 999 Bytes
/
Copy pathsingle-artigo.php
File metadata and controls
42 lines (30 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php get_header(); ?>
<!-- Começa código da página -->
<div class="container single-post">
<div class="grid-12">
<div class="conteudo-single-post">
<?php while ( have_posts() ) {
the_post();
?>
<h1><?php the_title(); ?></h1>
<div class="single-post-content">
<?php the_content(); ?>
</div>
<div class="links_arquivos">
<?php
$url_artigo = get_field('url_artigo');
$arquivo_download = get_field('arquivo_download');
if($url_artigo) {
echo '<a href="' . $url_artigo . '" target="_blank" class="botao-red-cinza" id="arquivo_artigo">Abrir artigo</a>';
}
if($arquivo_download) {
echo '<a href="' . $arquivo_download . '" target="_blank" class="botao-red-cinza">Dowload artigo</a>';
}
?>
</div>
<?php } ?>
</div>
</div>
</div>
<!-- Fecha while -->
<?php get_footer(); ?>