-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
executable file
·64 lines (56 loc) · 2.46 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
<?php
get_header();
if (have_posts()) :
?>
<h2><?php
if( is_category() ) {
single_cat_title();
} elseif ( is_tag() ) {
single_tag_title();
} elseif ( is_author() ) {
the_post();
echo 'Author Archives: ' . get_the_author();
rewind_posts();
} elseif ( is_day() ) {
echo 'Daily Archives: ' . get_the_date();
} elseif ( is_month() ) {
echo 'Monthly Archives: ' . get_the_date('F Y');
} elseif ( is_year() ) {
echo 'Yearly Archives: ' . get_the_date('Y');
} else {
echo 'Archives:';
}
?></h2>
<?php
while (have_posts()) :
the_post();
$patorseing_feature_img_url = wp_get_attachment_url(get_post_thumbnail_id(get_the_id())); ?>
<div class="w3-third" style="color: white;">
<div align="center">
<?php if($patorseing_feature_img_url == "") { ?>
<a href="<?php the_permalink(); ?>" style="cursor:pointer;"><img src="<?php echo esc_url(get_template_directory_uri().'/images/default.png'); ?>" class="img-responsive" style="border-style: dotted dashed solid double; border-width: 10px; border-color:white;"></a>
<?php } else { ?>
<a href="<?php the_permalink(); ?>" style="cursor:pointer;"><img src="<?php echo esc_url($patorseing_feature_img_url); ?>" class="img-responsive" style="border-style: dotted dashed solid double; border-width: 10px; border-color:white;"></a>
<?php } ?>
<a href="<?php the_permalink(); ?>" style="cursor:pointer;">
<div class="patorseing-post-box-hover">
<div class="patorseing-post-box-hover-center">
<div class="patorseing-post-box-hover-center1"><i class="patorseing-zoom-icon"></i></div>
</div>
</div>
</a>
<div class="clearfix"></div>
<div class="patorseing-box-name" style="font-family: 'Acme'; font-size:125%;">
<h6><?php echo get_the_date("j F, Y"); ?></h6>
<div class="patorseing-title" > <a href="<?php the_permalink(); ?>"><?php echo get_the_title(); ?></a> </div>
<div class="patorseing-hr" style="padding-bottom:20%;"><?php _e('Post By:','patorseing') ?> <span class="patorseing-postby-color"><a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"> <?php echo get_the_author(); ?></a></span><?php if ( get_comments_number() > 0 ) : ?> <?php _e('Comments:','patorseing') ?> <span class="patorseing-postby-color"><?php echo get_comments_number(); ?></span><?php endif; ?> </div>
</div>
</div>
</div>
<?
endwhile;
else :
echo '<p>No content found</p>';
endif;
get_footer();
?>