-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.php
59 lines (59 loc) · 2.77 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<title><?php bloginfo( 'name' ); ?><?php wp_title( '—' ); ?></title>
<?php if ( is_singular() && get_option( 'thread_comments') ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="container">
<div id="header">
<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo( 'name' ); ?></a></h1>
<p id="description"><?php bloginfo( 'description' ); ?></p>
<?php if ( has_nav_menu( 'menu' ) ) : wp_nav_menu(); else : ?>
<ul><?php wp_list_pages( 'title_li=&depth=-1' ); ?></ul>
<?php endif; ?>
</div><!-- header -->
<div id="content">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div <?php post_class(); ?>>
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php the_content(); ?>
<?php if ( !is_singular() && get_the_title() == '' ) : ?>
<a href="<?php the_permalink(); ?>">(more...)</a>
<?php endif; ?>
<?php if ( is_singular() ) : ?>
<div class="pagination"><?php wp_link_pages(); ?></div>
<?php endif; ?>
<div class="clear"> </div>
</div><!-- post_class() -->
<?php if ( is_singular() ) : ?>
<div class="meta">
<p>Posted by <?php the_author_posts_link(); ?>
on <a href="<?php the_permalink(); ?>"><?php the_date(); ?></a>
in <?php the_category( ', ' ); ?><?php the_tags( ', ' ); ?></p>
</div><!-- meta -->
<?php comments_template(); ?>
<?php endif; ?>
<?php endwhile; else: ?>
<div class="hentry"><h2>Sorry, the page you requested cannot be found</h2></div>
<?php endif; ?>
<?php if ( is_active_sidebar( 'widgets' ) ) : ?>
<div class="widgets"><?php dynamic_sidebar( 'widgets' ); ?></div>
<?php endif; ?>
<?php if ( is_singular() || is_404() ) : ?>
<div class="left"><a href="<?php bloginfo( 'url' ); ?>">« Home page</a></div>
<?php else : ?>
<div class="left"><?php next_posts_link( '« Older posts' ); ?></div>
<div class="right"><?php previous_posts_link( 'Newer posts »' ); ?></div>
<?php endif; ?>
<div class="clear"> </div>
</div><!-- content -->
</div><!-- container -->
<?php wp_footer(); ?>
</body>
</html>