-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloop.php
More file actions
46 lines (41 loc) · 1.67 KB
/
loop.php
File metadata and controls
46 lines (41 loc) · 1.67 KB
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
<div class="panel-group col-md-10 col-lg-10" id="posts-list">
<?php if (have_posts()): $i = 0; while (have_posts()) : the_post(); $i++;?>
<!-- article -->
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
<a data-toggle="collapse" data-parent="#posts-list" href="<?php echo('#post-'.$i) ?>">
<?php the_title(); ?>
</a>
<!-- <a href="<?php the_permalink(); ?>">
<span class="fa fa-external-link-square"></span>
</a> -->
</h3>
</div>
<div id="<?php echo('post-'.$i) ?>" class="panel-collapse collapse <?php if ($i == 1){echo('in');} ?>">
<div class="panel-body">
<?php
//if (is_search() || is_archive())
// the_excerpt();
//else
the_content();
?>
<?php $withcomments = "1"; comments_template(); ?>
</div>
</div>
<div class="panel-footer">
<span class="date"><?php the_date('', '<span class="fa fa-calendar-o"></span> ', ' |'); ?></span>
<!-- <span class="fa fa-folder-o"></span> <span class="cat"><?php the_category(','); ?></span> -->
<span class="tags"><?php the_tags( '<span class="fa fa-tags"></span> ', ', ', ' |' ); ?></span>
<span><?php edit_post_link('Edit Post','<span class="fa fa-edit"></span> ', ' |'); ?></span>
<span class="comments"><?php if (comments_open( get_the_ID() ) ) _e('<span class="fa fa-comments-o"></span> '); comments_popup_link( 'Leave your thoughts', '1 Comment', '% Comments'); ?></span>
</div>
</div>
<!-- /article -->
<?php endwhile; ?>
<?php else: ?>
<!-- article -->
<p><?php _e( 'Sorry, nothing to display.'); ?></p>
<!-- /article -->
<?php endif; ?>
</div>