-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
45 lines (45 loc) · 1.95 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
<?php
/**
*
*/
?>
<?php get_header(); ?>
<section>
<div class="articles">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h2>
<div class="article-meta"><p><?php the_time('Y-m-d'); ?></p></div>
<div class="article-content">
<?php the_content('Read More ...'); ?>
</div>
</article>
<?php endwhile; // end of the loop. ?>
<?php else : ?>
<article>
<h2><a href="/">Nothing!</a>
</h2>
</article>
<?php endif; ?>
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<article>
<div class="page-previous"><?php next_posts_link('Previous'); ?></div>
<div class="page-next"><?php previous_posts_link('Next'); ?></div>
</article>
<?php endif; ?>
</div>
</section>
<script src="<?php echo get_template_directory_uri(); ?>/js/vendor/jquery-1.8.3.min.js"></script>
<script src="<?php echo get_template_directory_uri(); ?>/js/plugins.js"></script>
<script src="<?php echo get_template_directory_uri(); ?>/js/vendor/jquery.syntaxhighlighter.min.js"></script>
<script src="<?php echo get_template_directory_uri(); ?>/js/main.js"></script>
<script>
var _gaq=[['_setAccount','UA-22313242-1'],['_trackPageview']];
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
s.parentNode.insertBefore(g,s)}(document,'script'));
</script>
</body>
</html>