-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive.php
More file actions
executable file
·57 lines (52 loc) · 1.95 KB
/
Copy patharchive.php
File metadata and controls
executable file
·57 lines (52 loc) · 1.95 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
<?php
/**
* Archive Template
*
* The archive template is the default template used for archives pages without a more specific template.
*/
get_header(); // Loads the header.php template.
do_action( 'before_content' );
do_action( 'templ_before_container_breadcrumb' );
global $wp_query, $posts;
?>
<section id="content" class="large-9 small-12 columns">
<?php do_action( 'open_content' );
do_action( 'templ_inside_container_breadcrumb' );
?>
<div class="infinite list hfeed">
<?php get_template_part( 'loop-meta' ); // Loads the loop-meta.php template.
apply_filters('tmpl_before-content-archive',supreme_sidebar_before_content() ); // Loads the sidebar-before-content.
do_action( 'before_loop_archive' );
if ( have_posts() ) :
while ( have_posts() ) : the_post();
do_action( 'before_entry' ); ?>
<!-- article start -->
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php
if($post->post_type =='post'){
get_template_part( 'content', 'blog');
}else{
get_template_part( 'content', get_post_format());
}
?>
</div>
<!-- article end -->
<?php
do_action( 'after_entry' );
endwhile;
wp_reset_query();
else:
apply_filters('supreme-loop-error',get_template_part( 'loop-error' )); // Loads the loop-error.php template.
endif;
do_action( 'after_loop_archive' );
apply_filters('tmpl_after-content-archive',supreme_sidebar_after_content()); // after-content-sidebar use remove filter to don't display it ?>
</div>
<!-- .hfeed -->
<?php
do_action( 'close_content' );
apply_filters('supreme_archive_loop_navigation',supreme_loop_navigation($post)); // Loads the loop-nav.php template. ?>
</section>
<!-- #content -->
<?php do_action( 'after_content' );
apply_filters('supreme-post-listing-sidebar',supreme_post_listing_sidebar());// load the side bar of listing page
get_footer(); // Loads the footer.php template. ?>