-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
73 lines (60 loc) · 1.95 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
68
69
70
71
72
73
<?php
/**
* @package WordPress
* @subpackage Oakland
* @since Oakland 1.0
*
* Archives Page Template
* Created by CMSMasters
*
*/
get_header();
?>
<!-- _________________________ Start Content _________________________ -->
<section id="content">
<div class="entry-summary">
<section class="blog portfolio_container one_block">
<?php
if (get_query_var('paged')) {
$paged = get_query_var('paged');
} elseif (get_query_var('page')) {
$paged = get_query_var('page');
} else {
$paged = 1;
}
if (!have_posts()) :
echo '<h2>' .
__('No posts found', 'cmsmasters') .
'</h2>';
else :
while (have_posts()) : the_post();
if (get_post_type() == 'post') {
if (get_post_format() != '') {
get_template_part('theme/postTypes/blog/page/sidebar/' . get_post_format());
} else {
get_template_part('theme/postTypes/blog/page/sidebar/standard');
}
} elseif (get_post_type() == 'portfolio') {
$project_format = get_post_meta(get_the_ID(), 'pt_format', true);
if (!$project_format) {
$project_format = 'slider';
}
$selected_numbercolumns_sidebar = 'one_block';
get_template_part('theme/postTypes/portfolio/page/sidebar/' . $project_format);
}
endwhile;
if (function_exists('wp_pagenavi')) {
wp_pagenavi();
}
endif;
?>
</section>
</div>
</section>
<!-- _________________________ Finish Content _________________________ -->
<!-- _________________________ Start Sidebar _________________________ -->
<section id="sidebar">
<?php get_sidebar(); ?>
</section>
<!-- _________________________ Finish Sidebar _________________________ -->
<?php get_footer(); ?>