Commit f9297dcb authored by John James Jacoby's avatar John James Jacoby

Code formatting.

parent 25d22b28
......@@ -27,7 +27,7 @@ function swifter_show_blog_signup_form( $blogname = '', $blog_title = '', $error
if ( isset( $_POST[ 'submit' ] ) ) {
swifter_blogs_validate_blog_signup();
} else {
if ( !is_wp_error( $errors ) ) {
if ( ! is_wp_error( $errors ) ) {
$errors = new WP_Error();
}
......@@ -104,13 +104,13 @@ function swifter_blogs_signup_blog( $blogname = '', $blog_title = '', $errors =
<p class="error alert alert-warning"><?php echo $errmsg ?></p>
<?php } ?>
<?php if ( !is_subdomain_install() ) : ?>
<?php if ( ! is_subdomain_install() ) : ?>
<label for="blogname"> <?php esc_html_e( 'Site Name:', 'swifter' ); ?> </label>
<?php else : ?>
<label for="blogname"> <?php esc_html_e( 'Site Domain:', 'swifter' ); ?> </label>
<?php endif; ?>
<?php if ( !is_subdomain_install() ) : ?>
<?php if ( ! is_subdomain_install() ) : ?>
<div class="input-group input-group-md">
<span class="input-group-addon" id="sizing-addon1"><?php echo $current_site->domain . $current_site->path; ?></span>
......@@ -127,14 +127,14 @@ function swifter_blogs_signup_blog( $blogname = '', $blog_title = '', $errors =
<?php endif; ?>
<?php if ( !is_user_logged_in() ) : ?>
<?php if ( ! is_user_logged_in() ) : ?>
<div class="well well-sm">
<p> <strong><?php esc_html_e( 'Your address will be: ', 'swifter' ); ?></strong><br />
<span class="">
<?php if ( !is_subdomain_install() ) : ?>
<?php if ( ! is_subdomain_install() ) : ?>
<?php echo $current_site->domain . $current_site->path . __( 'blogname', 'swifter' ); ?>
<?php else : ?>
<?php echoesc_html_e( 'domain.', 'swifter' ) . $current_site->domain . $current_site->path; ?>
......@@ -187,7 +187,7 @@ function swifter_blogs_signup_blog( $blogname = '', $blog_title = '', $errors =
<div class="radio">
<label class="checkbox" for="blog_public_on">
<input type="radio" id="blog_public_on" name="blog_public" value="1" <?php if ( !isset( $_POST[ 'blog_public' ] ) || '1' == $_POST[ 'blog_public' ] ) { ?>checked="checked"<?php } ?> />
<input type="radio" id="blog_public_on" name="blog_public" value="1" <?php if ( ! isset( $_POST[ 'blog_public' ] ) || '1' == $_POST[ 'blog_public' ] ) { ?>checked="checked"<?php } ?> />
<strong><?php esc_html_e( 'Yes', 'swifter' ); ?></strong>
</label>
</div>
......@@ -223,13 +223,13 @@ function swifter_blogs_signup_blog( $blogname = '', $blog_title = '', $errors =
function swifter_blogs_validate_blog_signup() {
global $wpdb, $current_user, $blogname, $blog_title, $errors, $domain, $path, $current_site;
if ( !check_admin_referer( 'bp_blog_signup_form' ) ) {
if ( ! check_admin_referer( 'bp_blog_signup_form' ) ) {
return false;
}
$current_user = wp_get_current_user();
if ( !is_user_logged_in() ) {
if ( ! is_user_logged_in() ) {
die();
}
......
......@@ -106,7 +106,7 @@ function swifter_group_creation_tabs() {
$bp = buddypress();
// Bail if not creating a group
if ( !is_array( $bp->groups->group_creation_steps ) ) {
if ( ! is_array( $bp->groups->group_creation_steps ) ) {
return;
}
......@@ -160,7 +160,7 @@ function swifter_group_creation_progress() {
$bp = buddypress();
// Bail if not creating a group
if ( !is_array( $bp->groups->group_creation_steps ) ) {
if ( ! is_array( $bp->groups->group_creation_steps ) ) {
return;
}
......
......@@ -2,7 +2,7 @@
<form action="<?php echo bp_displayed_user_domain() . bp_get_settings_slug() . '/general'; ?>" method="post" class="standard-form" id="settings-form">
<?php if ( !is_super_admin() ) : ?>
<?php if ( ! is_super_admin() ) : ?>
<div class="panel panel-warning">
<div class="panel-heading">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment