-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·56 lines (37 loc) · 1.49 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
<?php get_header(); ?>
<!-- featured image -->
<div class="band">
<div class="featured container">
<?php if (function_exists('slideshow')) { slideshow($output = true, $gallery_id = false, $post_id = false, $params = array()); } ?>
</div><!--end container -->
</div><!-- end band -->
<!-- main content -->
<div class="main content band">
<div class="primary content container">
<div class="ten columns">
<!-- Start the Loop -->
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<article>
<h4><a href="<?php the_permalink() ?>"><?php the_category(); ?></a></h4>
<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
<?php the_author_posts_link() ?> <?php the_time('F jS, Y') ?>
<a href="<?php the_permalink() ?>">
<?php if ( function_exists('has_post_thumbnail') &&
has_post_thumbnail($post->ID)) {
$thumbnail =
wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), full );
?>
<img src="<?php echo $thumbnail[0]; ?>"alt="" />
<?php }else{ ?>
<img src="<?php echo get_template_directory_uri(); ?>/images/knog1.jpg" alt="knog light">
<?php } ?>
</a><!-- end permalink -->
<?php the_content(); ?><!--more-->
</article>
<?php endwhile; else: ?>
<p>Sorry, no posts matched your criteria.</p>
<?php endif; ?>
<?php if(function_exists('tw_pagination')) tw_pagination(); ?>
</div><!-- end ten columns -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>