This repository has been archived by the owner on May 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
114 lines (76 loc) · 4.2 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?php get_header(); ?>
<div id="content">
<div id="inner-content" class="wrap clearfix">
<div id="main" class="first clearfix" role="main">
<div id="page-header" class="clearfix">
<?php if (is_category()) { ?>
<h1 class="blog-title"><span><?php _e("BLOG TOPIC", "bonestheme"); ?></span></h1>
<h2><span><?php single_cat_title(); ?></span></h2>
<?php } elseif (is_tag()) { ?>
<h1 class="archive-title"><span><?php _e("BLOG TAG", "bonestheme"); ?></span></h1>
<h2><span><?php single_tag_title(); ?></span></h2>
<?php } elseif (is_author()) { ?>
<h1 class="archive-title"><span><?php _e("BLOG AUTHOR", "bonestheme"); ?></span></h1>
<h2><span><?php get_the_author_meta('display_name'); ?></span></h2>
<?php } elseif (is_day()) { ?>
<h1 class="blog-title"><span><?php _e("BLOG DATE", "bonestheme"); ?></span></h1>
<h2><span><?php the_time('l, F j, Y'); ?></span></h2>
<?php } elseif (is_month()) { ?>
<h1 class="blog-title"><span><?php _e("BLOG MONTH", "bonestheme"); ?></span></h1>
<h2><span><?php the_time('F Y'); ?></span></h2>
<?php } elseif (is_year()) { ?>
<h1 class="blog-title"><span><?php _e("BLOG YEAR", "bonestheme"); ?></span></h1>
<h2><span><?php the_time('Y'); ?></span></h2>
<?php } ?>
</div>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
<header class="article-header">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="divider"></div>
<p class="meta"><time datetime="<?php echo the_time('Y-m-j'); ?>" pubdate><?php the_time(get_option('date_format')); ?></time></p>
</header> <!-- end article header -->
<section class="post-content clearfix">
<?php
global $custom_metabox2; $custom_metabox2->the_meta();
$image_id = $custom_metabox2->get_the_value('image_id');
$title = get_the_title($image_id);
$alt = get_post_meta($image_id, '_wp_attachment_image_alt', true);
echo '<div><img src="';
if (is_mobile())
{
$thumb_attrs = wp_get_attachment_image_src( $image_id, 'fc-tiny');
} else
{
$thumb_attrs = wp_get_attachment_image_src( $image_id, 'fc-small');
}
echo $thumb_attrs[0] . '" class="img_header" title="' . $title . '" alt="' . $alt . '" /></div>';
?>
<div class="txt_wrap"><?php the_excerpt(); //the_content(); ?></div>
</section> <!-- end article section -->
<footer class="article-footer more_link_spacer clearfix">
<div class="divider"></div>
</footer> <!-- end article footer -->
</article> <!-- end article -->
<?php endwhile; ?>
<?php fc_page_navi(); // use the page navi function ?>
<?php else : ?>
<article id="post-not-found" class="hentry clearfix">
<header class="article-header">
<h1><?php _e("Oops, Post Not Found!", "bonestheme"); ?></h1>
</header>
<section class="post-content">
<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "bonestheme"); ?></p>
</section>
<footer class="article-footer">
<p><?php _e("This is the error message in the archive.php template.", "bonestheme"); ?></p>
</footer>
</article>
<?php endif; ?>
</div> <!-- end #main -->
<?php get_sidebar(); // sidebar 1 ?>
</div> <!-- end #inner-content -->
</div> <!-- end #content -->
<div id="footer-pad"></div> <!-- to position footer at bottom of page -->
</div> <!-- #page-wrapper end -->
<?php get_footer(); ?>