-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
63 lines (42 loc) · 2.69 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
60
61
62
63
<?php
/**
* Index Template
*
* This is the index template. Technically, it is the "posts page" template. It is used when a visitor is on
* the page assigned to show a site's latest blog posts or on a category/tag/archive/taxonomy page if a more
* specific template is not available.
*
*/
get_header(); ?>
<div class="container" id="content">
<div class="row">
<div class="col-sm-12">
<?php if (!is_singular() ){ get_template_part( 'loop/loop-meta' ); } ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="entry">
<h2 <?php echo hybrid_get_attr( 'entry-title' ); ?>><a href="<?php the_permalink();?>" ><?php the_title();?></a></h2>
<div class="entry-byline">
<span <?php hybrid_attr( 'entry-author' ); ?>><?php the_author_posts_link(); ?></span>
<time <?php hybrid_attr( 'entry-published' ); ?>><?php echo get_the_date(); ?></time>
<?php comments_popup_link( number_format_i18n( 0 ) . ' Comments', number_format_i18n( 1 ) . ' Comment', '% Comments', 'comments-link', '' ); ?>
<?php edit_post_link(); ?>
</div><!-- .entry-byline -->
<a href="<?php the_permalink();?>" class="entry-image-link"><?php the_post_thumbnail(); ?></a>
<div class="entry-content">
<?php the_excerpt(); ?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php hybrid_post_terms( array( 'taxonomy' => 'category', 'text' => __( 'Posted in %s', 'hybrid-base' ) ) ); ?>
<?php hybrid_post_terms( array( 'taxonomy' => 'post_tag', 'text' => __( 'Tagged %s', 'hybrid-base' ), 'before' => '<br />' ) ); ?>
</footer><!-- .entry-footer -->
</div>
<?php endwhile; ?>
<?php get_template_part( 'loop/loop-nav' ); ?>
<?php else : ?>
<?php get_template_part( 'loop/loop-error' ); ?>
<?php endif; ?>
</div> <!--content-->
</div> <!-- /row -->
</div> <!-- /container -->
<?php get_footer(); ?>