-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive.php
More file actions
53 lines (51 loc) · 1.66 KB
/
Copy patharchive.php
File metadata and controls
53 lines (51 loc) · 1.66 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
<?php
/**
* The archive template file
*
* @package WordPress
* @subpackage MiradaNativa
*/
get_header();
$is_blog = get_post_type() === 'blog';
?>
<div id="primary" class="content-area">
<main class="site-content archive archive-<?= get_post_type(); ?>" role="main">
<?php $archive_title = get_the_archive_title(); ?>
<header class="archive-header has-text-align-center header-footer-group">
<div class="archive-header-inner section-inner medium">
<?php if ($is_blog) : ?>
<h1 class="archive-title"><?= pll__('Blog'); ?></h1>
<?php else : ?>
<h1 class="archive-title"><?= wp_kses_post($archive_title); ?></h1>
<?php endif; ?>
</div>
</header>
<?php if ($is_blog) {
get_template_part('template-parts/nav-blog');
} ?>
<?php if (have_posts()) : ?>
<div class="archive-content">
<?php while (have_posts()) {
the_post();
if (has_category('no-visible-ca') || has_category('no-visible')) {
continue;
} ?>
<article <?php post_class(); ?>>
<div class="post-inner thin">
<div class="entry-content">
<?php get_template_part('template-parts/content', get_post_type()); ?>
</div>
</div>
</article>
<?php } ?>
</div>
<?php else : ?>
<div class="no-results-form section-inner thin">
<p><?= pll__('No se ha encontrado contenido relacionado'); ?></p>
</div>
<?php endif;
get_template_part('template-parts/pagination'); ?>
</main>
<?php get_template_part('template-parts/footer-menus-widgets'); ?>
</div>
<?php get_footer();