-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive-exercicio.php
More file actions
84 lines (71 loc) · 2.56 KB
/
Copy patharchive-exercicio.php
File metadata and controls
84 lines (71 loc) · 2.56 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php get_header(); ?>
<!-- Começa código da página -->
<!-- Carrossel Começa -->
<section class="carrossel carrossel-projetos">
<div class="noticia">
<section class="container sobre-inicio">
<div class="grid-7">
<h1>Exercícios <?php
if(htmlspecialchars($_GET["mat"]) == 'comunicacao-de-dados') echo 'CDD';
if(htmlspecialchars($_GET["mat"]) == 'linguagem-de-programacao-estruturada') echo 'LPE';
if(htmlspecialchars($_GET["mat"]) == 'programacao-paralela-e-distribuida') echo 'PPD';
?></h1>
<p>“É fazendo que se aprende a fazer aquilo que se deve aprender a fazer”.</p>
<p class="autor-frase-materia">- Aristóteles</p>
</div>
<div class="grid-5">
<div class="logo-sobre">
<img src="<?php echo get_template_directory_uri(); ?>/img/banner-docs.png" alt="Logo do site GoClasses">
</div>
</div>
</section>
</div>
</section>
<!-- Carrossel termina -->
<div class="post-types-container">
<nav>
<ul>
<li><a href="<?php echo get_post_type_archive_link( 'material_de_apoio' ) . '?mat=' . htmlspecialchars($_GET["mat"]); ?>">Material de Apoio</a></li>
<li><a href="<?php echo get_post_type_archive_link( 'exercicio' ) . '?mat=' . htmlspecialchars($_GET["mat"]); ?>">Exercícios</a></li>
<li><a href="<?php echo get_post_type_archive_link( 'projeto' ) . '?mat=' . htmlspecialchars($_GET["mat"]); ?>">Projetos</a></li>
</ul>
</nav>
</div>
<!-- post -->
<div class="container">
<div class="archive_plano_ensino">
<?php
$archiveConteudo = new WP_Query(array(
'post_type' => is_archive() ? get_queried_object()->name : false,
'category_name' => htmlspecialchars($_GET["mat"]),
'order' => 'ASC',
'orderby' => 'title',
'posts_per_page' => -1,
));
if($archiveConteudo->have_posts()){
while($archiveConteudo->have_posts()) {
$archiveConteudo->the_post();
?>
<div class="post-page">
<div class="grid-12">
<div class="info-index-material">
<a href="<?php
if(get_field('url_artigo')) {
the_field('url_artigo');
}
if(get_field('arquivo_download')) {
the_field('arquivo_download');
}
?>" target="_blank"><h2><?php the_title(); ?></h2></a>
</div>
</div>
</div>
<?php }} else { ?>
<div class="imagem-sem-conteudo">
<img src="<?php echo get_template_directory_uri(); ?>/img/no-data-amico.svg" alt="">
</div>
<?php } ?>
</div>
</div>
<!-- Fecha while -->
<?php get_footer(); ?>