-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
73 lines (50 loc) · 2.09 KB
/
index.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 get_header(); ?>
<section class="main-column">
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<div <?php post_class(); ?> id="<?php the_ID(); ?>">
<h2 class="post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<div class="post-column clearfix">
<?php if ( has_post_thumbnail()) : ?>
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
<?php the_post_thumbnail('thumbnail'); ?>
</a>
<?php endif; ?>
<div class="excerpt">
<?php the_excerpt(); ?>
</div>
</div>
<div class="post-info clearfix">
<span class="post-time"><time datetime="<?php the_time('H:i') ?>"><?php the_time(get_option('time_format')); ?></time></span>
<span class="sep sep1">-</span>
<span class="post-date"><time datetime="<?php the_time('c'); ?>"><?php the_time(get_option('date_format')); ?></time></span>
<span class="sep sep4">-</span>
<span class="post-author"><a href="<?php echo get_author_posts_url(get_the_author_meta( 'ID' )); ?>"><?php the_author_meta('display_name'); ?></a></span>
<span class="sep sep6">-</span>
<span class="post-categories"><?php the_category(' '); ?></span>
</div>
</div> <!-- .post -->
<?php endwhile; else : ?>
<article class="post">
<header>
<h1 class="post-title">Page Not Found</h1>
</header>
<section class="entry">
<p>Looks like the page you're looking for isn't here anymore. </p><p>Try using the search box below.</p>
</section>
<footer>
<form method="get" id="searchform" action="<?php echo home_url() ; ?>/">
<input type="text" value="Search" onclick="value=''" name="s" id="s" />
<input type="submit" id="searchsubmit" value="Search" />
</form>
<footer>
</article>
<?php endif; ?>
<nav class="page-nav">
<ul class="clearfix">
<li class="left"><?php previous_posts_link() ?></li>
<li class="right"><?php next_posts_link() ?></li>
</ul>
</nav>
</section>
<?php get_sidebar(); ?>
<?php get_footer(); ?>