-
Notifications
You must be signed in to change notification settings - Fork 2
/
create.php
36 lines (20 loc) · 928 Bytes
/
create.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
<?php get_header() ?>
<?php do_action( 'bp_before_create_blog_content' ) ?>
<div id="container">
<div id="lb-content">
<?php do_action( 'template_notices' ) ?>
<h3><?php _e( 'Create a Blog', 'buddypress' ) ?> <a class="button" href="<?php echo bp_get_root_domain() . '/' . BP_BLOGS_SLUG . '/' ?>"><?php _e( 'Blogs Directory', 'buddypress' ) ?></a></h3>
<?php do_action( 'bp_before_create_blog_content' ) ?>
<?php if ( bp_blog_signup_enabled() ) : ?>
<?php bp_show_blog_signup_form() ?>
<?php else: ?>
<div id="message" class="info">
<p><?php _e( 'Blog registration is currently disabled', 'buddypress' ); ?></p>
</div>
<?php endif; ?>
<?php do_action( 'bp_after_create_blog_content' ) ?>
</div><!-- #content -->
</div><!-- #container -->
<?php locate_template( array( 'sidebar.php' ), true ) ?>
<?php do_action( 'bp_after_create_blog_content' ) ?>
<?php get_footer() ?>