-
Notifications
You must be signed in to change notification settings - Fork 2
/
buddypress.php
46 lines (39 loc) · 1.8 KB
/
buddypress.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
<?php
/**
* The template for displaying a BuddyPress page
*
* @package Layers
* @since Layers 1.0.4
*/
get_header(); ?>
<?php do_action( 'layers_before_buddypress_content' ); ?>
<div class="container content-main clearfix">
<div class="grid">
<?php if( have_posts() ) : ?>
<?php while( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(layers_center_column_class()); ?>>
<?php global $post, $layers_post_meta_to_display, $layers_page_title_shown; ?>
<?php if( !isset( $layers_page_title_shown ) ) { ?>
<header class="section-title large">
<?php if( 'post' == get_post_type() ) { ?>
<?php layers_post_meta( get_the_ID(), array( 'date' ) , 'h5', 'meta-info' ); ?>
<?php } // if post ?>
<h1 class="heading"><?php the_title(); ?></h1>
<?php do_action( 'layers_after_buddypress_title' ); ?>
</header>
<?php do_action( 'layers_after_buddypress_header' ); ?>
<?php } ?>
<?php the_content(); ?>
<?php wp_link_pages( array(
'link_before' => '<span>',
'link_after' => '</span>',
'before' => '<p class="inner-post-pagination">' . __('<span>Pages:</span>', 'ocmx'),
'after' => '</p>'
)); ?>
</article>
<?php endwhile; // while has_post(); ?>
<?php endif; // if has_post() ?>
</div>
</div>
<?php do_action( 'layers_after_buddypress_content' ); ?>
<?php get_footer(); ?>