-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive.php
More file actions
89 lines (79 loc) · 2.34 KB
/
archive.php
File metadata and controls
89 lines (79 loc) · 2.34 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
get_header();
GLOBAL $webnus_options;
?>
<section id="headline">
<div class="container">
<h3><?php
if ( is_day() ) :
printf('<small>'. __( 'Daily Archives', 'WEBNUS_TEXT_DOMAIN' ) . ':</small> %s', get_the_date() );
elseif ( is_month() ) :
printf('<small>'. __( 'Monthly Archives', 'WEBNUS_TEXT_DOMAIN' ) . ':</small> %s', get_the_date( _x( 'F Y', 'monthly archives date format', 'WEBNUS_TEXT_DOMAIN' ) ) );
elseif ( is_year() ) :
printf('<small>'. __( 'Yearly Archives', 'WEBNUS_TEXT_DOMAIN' ) .':</small> %s', get_the_date( _x( 'Y', 'yearly archives date format', 'WEBNUS_TEXT_DOMAIN' ) ) );
elseif ( is_category() ):
printf( '%s', single_cat_title( '', false ) );
elseif ( is_tag() ):
printf('<small>'. __( 'Tag', 'WEBNUS_TEXT_DOMAIN' ) .':</small> %s', single_tag_title( '', false ) );
else :
echo $webnus_options->webnus_blog_page_title();
endif;
?></h3>
</div>
</section>
<section class="container" >
<hr class="vertical-space2">
<?php
if( 'left' == $webnus_options->webnus_blog_sidebar() || 'both' == $webnus_options->webnus_blog_sidebar() ):
get_sidebar('bleft');
endif;
?>
<!-- begin-main-content -->
<section class="<?php echo ( 'both' == $webnus_options->webnus_blog_sidebar() )? 'col-md-4 alpha omega':'col-md-8 omega'?>">
<?php
if(have_posts()):
while( have_posts() ): the_post();
if( 'both' == $webnus_options->webnus_blog_sidebar() )
{
get_template_part('parts/blogloop','bothsidebar');
}
else{
switch( $webnus_options->webnus_blog_template() )
{
case 1:
get_template_part('parts/blogloop');
break;
case 2:
get_template_part('parts/blogloop','type2');
break;
default:
get_template_part('parts/blogloop');
break;
}
}
endwhile;
else:
get_template_part('blogloop-none');
endif;
?>
<br class="clear">
<?php
if(function_exists('wp_pagenavi'))
{
wp_pagenavi();
}
?>
<div class="vertical-space3"></div>
</section>
<!-- end-main-content -->
<?php
if( 'right' == $webnus_options->webnus_blog_sidebar() || 'both' == $webnus_options->webnus_blog_sidebar() ):
get_sidebar('bright');
endif;
?>
<div class="vertical-space"></div>
</section>
</section>
<?php
get_footer();
?>