forked from disgogo/flexmarket
-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
67 lines (43 loc) · 1.53 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php get_header(); ?>
<!-- Page -->
<div id="page-wrapper">
<div class="header-section">
<div class="outercontainer">
<div class="container">
<div class="clear padding30"></div>
<?php if (have_posts()) : ?>
<?php get_template_part('archive', 'haveposts'); ?>
<?php else : ?>
<?php get_template_part('archive', 'none'); ?>
<?php endif; ?>
<div class="clear"></div>
<div class="pull-right">
<?php
$total_pages = $wp_query->max_num_pages;
if ($total_pages > 1){
$current_page = max(1, get_query_var('paged'));
echo '<div class="pagination">';
echo paginate_links(array(
'base' => get_pagenum_link(1) . '%_%',
'format' => 'page/%#%',
'current' => $current_page,
'total' => $total_pages,
'type' => 'list'
));
echo '</div>';
}
?>
</div>
<?php wp_reset_query(); ?>
</div><!-- / span9 -->
<div id="sidebar" class="span4">
<?php get_sidebar(); ?>
</div>
</div><!-- / row-fluid -->
<div class="padding20"></div>
</div><!-- / container -->
</div><!-- / outercontainer -->
</div><!-- / content-section -->
</div><!-- / page-wrapper -->
<?php get_template_part('footer', 'widget'); ?>
<?php get_footer(); ?>