-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
52 lines (35 loc) · 1.22 KB
/
archive.php
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
<?php
frenchpress_add_inline_style( frenchpress_style_loop() );
get_header();
echo "<main id=main class=site-main>";
if ( have_posts() ) :
if ( ! apply_filters( 'frenchpress_title_in_header', false ) ) :
?>
<header class=page-header>
<?php
$skip_the_rest = apply_filters( 'frenchpress_archive_header', false );
if ( ! $skip_the_rest ) :
the_archive_title( '<h1 class=title>', '</h1>' );
the_archive_description( '<div class=taxonomy-description>', '</div>' );
endif;
?>
</header>
<?php
endif;
echo "<div class=loop>";
/* Start the Loop */
while ( have_posts() ) : the_post();
/* specific content templates can be made like: content-custom_post_type.php or content-post_format.php (post format only applies to "post" type) */
// $type = get_post_type();
// if ( 'post' === $type ) $type = get_post_format();// post format support removed
get_template_part( 'template-parts/content', get_post_type() );
endwhile;
echo "</div>";// loop
echo frenchpress_posts_nav();
else :
get_template_part( 'template-parts/content', 'none' );
endif;
do_action('frenchpress_main_bottom');
echo '</main>';
if (!empty($GLOBALS['frenchpress']->sidebar)) echo $GLOBALS['frenchpress']->sidebar;
get_footer();