Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // add register page message and login
- function add_register_page_alert() {
- if ( 'request-details' == bp_get_current_signup_step() ) :
- ?>
- <div class="private-demo-warning">
- <div class="demo-notice-left">
- <h2>Welcome to the Frisco Theme Demo</h2>
- <p><strong>Huh, a private demo?</strong> Yes, you must create an account to demo this theme. The best way to try out a BuddyPress theme is to be signed in as a regular user and actually <em>use</em> the site. Keeping the demo private also ensures our hosting resources are only utilized by good citizens of the internet like yourself. You will receive <strong>an automated activation email</strong> immediately upon completing sign up below, so <strong>use a valid email address</strong>. </p>
- <p><a href="http://friscotheme.com/" title="Go to http://friscotheme.com/" class="button">No thanks, back to homepage</a> or <strong>continue below</strong>.</p>
- </div>
- <div class="demo-notice-right">
- <h4>Already registered?</h4>
- <form name="login-form" id="" class="standard-form" action="<?php echo site_url( 'wp-login.php', 'login_post' ) ?>" method="post">
- <label><?php _e( 'Username', 'buddypress' ) ?><br />
- <input type="text" name="log" id="" class="input" value="<?php if ( isset( $user_login) ) echo esc_attr(stripslashes($user_login)); ?>" tabindex="97" /></label>
- <label><?php _e( 'Password', 'buddypress' ) ?><br />
- <input type="password" name="pwd" id="sidebar-user-pass" class="input" value="" tabindex="98" /></label>
- <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="sidebar-rememberme" value="forever" tabindex="99" /> <?php _e( 'Remember Me', 'buddypress' ) ?></label></p>
- <?php do_action( 'bp_sidebar_login_form' ) ?>
- <input type="submit" name="wp-submit" id="" value="<?php _e( 'Log In', 'buddypress' ); ?>" tabindex="100" />
- <input type="hidden" name="testcookie" value="1" />
- </form>
- </div>
- </div>
- <?php
- endif;
- }
- add_action ( 'bp_before_register_page', 'add_register_page_alert' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement