-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
40 lines (35 loc) · 1.59 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
<?php get_header(); ?>
<?php include (TEMPLATEPATH . "/sidebar.php"); ?>
<?php include (TEMPLATEPATH . "/navigation.php"); ?>
<!-- LOOP1 -->
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post one"<?php echo (is_category() || is_tag())? 'style="border-bottom: 1px solid #e0e0e0 !important; border-top: none !important;"' : ''; ?>>
<?php
if ( has_post_thumbnail() ) { ?>
<div class="sepia">
<?php
$imgsrcparam = array(
'alt' => trim(strip_tags( $post->post_excerpt )),
'title' => trim(strip_tags( $post->post_title )),
);
$thumbID = get_the_post_thumbnail( $post->ID, 'one', $imgsrcparam ); ?>
<div class="preview"><a href="<?php the_permalink() ?>"><?php echo "$thumbID"; ?></a></div>
</div><!-- .sepia -->
<?php } ?>
<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php the_content( 'read more', false ); ?>
<div class="time"><?php the_time('M, d'); ?></div>
</div>
<?php endwhile; ?>
<?php else : ?>
<?php endif; ?>
<!-- #LOOP1 -->
<div class="aside"<?php echo (is_category() || is_tag())? 'style="border-bottom: 1px solid #e0e0e0 !important; border-top: none !important;"' : ''; ?>>
<h3>Navigation</h3>
<p>Please use the navigation to move within this section.</p>
<p><?php next_posts_link('Next'); ?>
<?php previous_posts_link('Prev'); ?>
</p>
</div>
<?php get_footer(); ?>