forked from dimensionmedia/buddystrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
78 lines (56 loc) · 2.65 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php get_header(); ?>
<div id="content" class="span8">
<?php do_action( 'bp_before_blog_home' ); ?>
<?php do_action( 'template_notices' ); ?>
<div class="page" id="blog-latest" role="main">
<?php if ( have_posts() ) : ?>
<?php bp_dtheme_content_nav( 'nav-above' ); ?>
<?php while (have_posts()) : the_post(); ?>
<?php do_action( 'bp_before_blog_post' ); ?>
<div class="row" id="post-<?php the_ID(); ?>">
<div class="span8">
<div class="row">
<div class="span8">
<h2 class="posttitle"><strong><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php _e( 'Permanent Link to', 'buddypress' ); ?> <?php the_title_attribute(); ?>"><?php the_title(); ?></a></strong></h2>
</div>
</div>
<div class="row">
<div class="span2">
<a href="#" class="thumbnail">
<img src="http://placehold.it/260x180" alt="">
</a>
</div>
<div class="span6">
<?php the_content( __( '<p><a class="btn" href="#">Read more</a></p>', 'buddypress' ) ); ?>
</div>
</div>
<div class="row">
<div class="span8">
<p></p>
<p>
<i class="icon-user"></i> <?php printf( _x( 'by %s', 'by ', 'buddypress' ), bp_core_get_userlink( $post->post_author ) ); ?>
| <i class="icon-calendar"></i> <?php printf( __( '%1$s <span>in %2$s</span>', 'buddypress' ), get_the_date(), get_the_category_list( ', ' ) ); ?>
| <i class="icon-comment"></i> <?php comments_popup_link( __( 'No Comments »', 'buddypress' ), __( '1 Comment »', 'buddypress' ), __( '% Comments »', 'buddypress' ) ); ?>
<?php if ( is_sticky() ) : ?>
| <i class="icon-share activity sticky-post"></i> <?php _ex( 'Featured', 'Sticky post', 'buddypress' ); ?>
<?php endif; ?>
<?php the_tags( '| <i class="icon-tags"></i> <span class="tags">' . __( 'Tags: ', 'buddypress' ), ', ', '</span>' ); ?>
</p>
</div>
</div>
</div>
</div>
<hr/>
<?php do_action( 'bp_after_blog_post' ); ?>
<?php endwhile; ?>
<?php bp_dtheme_content_nav( 'nav-below' ); ?>
<?php else : ?>
<h2 class="center"><?php _e( 'Not Found', 'buddypress' ); ?></h2>
<p class="center"><?php _e( 'Sorry, but you are looking for something that isn\'t here.', 'buddypress' ); ?></p>
<?php get_search_form(); ?>
<?php endif; ?>
</div>
<?php do_action( 'bp_after_blog_home' ); ?>
</div><!-- #content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>