Skip to content

Commit

Permalink
Center logo on signup page.
Browse files Browse the repository at this point in the history
The logo is now centered on the following pages:
1. login_page
2. signup_page
3. signup
  • Loading branch information
vboctor committed Feb 25, 2012
1 parent 37c2b0a commit fd34163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/html_api.php
Expand Up @@ -463,7 +463,7 @@ function html_top_banner() {
if( !is_blank( $t_page ) && file_exists( $t_page ) && !is_dir( $t_page ) ) {
include( $t_page );
} else if( $t_show_logo ) {
if( is_page_name( 'login_page' ) ) {
if ( is_page_name( 'login_page' ) || is_page_name( 'signup_page' ) || is_page_name( 'signup' ) ) {
$t_align = 'center';
} else {
$t_align = 'left';
Expand Down

2 comments on commit fd34163

@atrol
Copy link
Member

@atrol atrol commented on fd34163 Feb 25, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO lost_pwd_page should also be added to this list of pages.

@vboctor
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, good catch. I just checked in the fix and refactored it into a re-usable method that can be used from other places, e.g. custom headers, etc.

Please sign in to comment.