View difference between Paste ID: wss8Fpdn and
SHOW:
|
|
- or go back to the newest paste.
1 | <?php | |
2 | ||
3 | // add register page message and login | |
4 | function add_register_page_alert() { | |
5 | if ( 'request-details' == bp_get_current_signup_step() ) : | |
6 | ||
7 | ?> | |
8 | <div class="private-demo-warning"> | |
9 | <div class="demo-notice-left"> | |
10 | <h2>Welcome to the Frisco Theme Demo</h2> | |
11 | <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> | |
12 | ||
13 | <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> | |
14 | </div> | |
15 | <div class="demo-notice-right"> | |
16 | <h4>Already registered?</h4> | |
17 | <form name="login-form" id="" class="standard-form" action="<?php echo site_url( 'wp-login.php', 'login_post' ) ?>" method="post"> | |
18 | <label><?php _e( 'Username', 'buddypress' ) ?><br /> | |
19 | <input type="text" name="log" id="" class="input" value="<?php if ( isset( $user_login) ) echo esc_attr(stripslashes($user_login)); ?>" tabindex="97" /></label> | |
20 | ||
21 | <label><?php _e( 'Password', 'buddypress' ) ?><br /> | |
22 | <input type="password" name="pwd" id="sidebar-user-pass" class="input" value="" tabindex="98" /></label> | |
23 | ||
24 | <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="sidebar-rememberme" value="forever" tabindex="99" /> <?php _e( 'Remember Me', 'buddypress' ) ?></label></p> | |
25 | ||
26 | <?php do_action( 'bp_sidebar_login_form' ) ?> | |
27 | <input type="submit" name="wp-submit" id="" value="<?php _e( 'Log In', 'buddypress' ); ?>" tabindex="100" /> | |
28 | <input type="hidden" name="testcookie" value="1" /> | |
29 | </form> | |
30 | ||
31 | </div> | |
32 | </div> | |
33 | <?php | |
34 | ||
35 | endif; | |
36 | } | |
37 | add_action ( 'bp_before_register_page', 'add_register_page_alert' ); | |
38 | ||
39 |