-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-material.php
More file actions
39 lines (29 loc) · 1.05 KB
/
Copy pathsingle-material.php
File metadata and controls
39 lines (29 loc) · 1.05 KB
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
<?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 class="botoes-navegacao">
<?php if(get_field('material_anterior')) { ?>
<a href="<?php the_field('material_anterior'); ?>" class="botao-red-cinza botao_materiais">Retornar</a>
<?php } ?>
<?php if(get_field('proximo_material')) { ?>
<a href="<?php the_field('proximo_material'); ?>" class="botao-red-cinza botao_materiais">Avançar</a>
<?php } ?>
</div>
</div>
<?php } ?>
<?php if(get_current_user_id() == get_the_author_meta('id')) { ?>
<a href="<?php echo get_edit_post_link(); ?>" class="edit_button">EDITAR</a>
<?php } ?>
</div>
</div>
</div>
<!-- Fecha while -->
<?php get_footer(); ?>