forked from chrswyatt/themebase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
52 lines (38 loc) · 1.07 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
<?php
/**
* ATTENTION: DO NOT MODIFY THIS FILE. Define a client directory in your settings file,
* then create /client_folder/templates/index.php for custom template
*/
if(tb_template_file('index.php')) return;
?>
<?php get_header(); ?>
<div id="content" role="main">
<?php
// begin - The Loop
if ( have_posts() ) :
// items are returned OPEN TAGS here
while ( have_posts() ) : the_post();
// title
the_title( '<h1>', '</h1>' );
// image
if( has_post_thumbnail() ) {
the_post_thumbnail( 'medium', array( 'class' => 'alignright', 'title' => get_the_title(), 'alt' => get_the_title() ) );
};
// content
the_content();
// End The Loop
endwhile;
// items are returned CLOSE TAGS here
// wp-page-numbers plugin
if( function_exists( 'wp_page_numbers' ) ) : wp_page_numbers(); endif;
// NO items returned
else :
// 404 content
get_template_part( 'content' , '404' );
// end - The Loop
endif;
// reset the query
wp_reset_query();
?>
</div>
<?php get_footer(); ?>