<?php echo apply_filters('rcp_registration_header_logged_in', __('Register New Account', 'rcp')); ?> </h3> <?php } else { ?> <h3 class="rcp_header"> <?php echo apply_filters('rcp_registration_header_logged_out', __('Upgrade Your Subscription', 'rcp')); ?> </h3> <?php } // show any error messages after form submission rcp_show_error_messages('register'); ?> <form id="rcp_registration_form" class="rcp_form" method="POST" action="<?php echo esc_url(rcp_get_current_url()); ?> "> <div class="rcp_description"><?php echo wpautop(wptexturize(rcp_get_subscription_description($rcp_level))); ?> </div> <?php if (!is_user_logged_in()) { ?>
<?php global $rcp_login_form_args; ?> <?php if (!is_user_logged_in()) { ?> <?php rcp_show_error_messages('login'); ?> <form id="rcp_login_form" class="rcp_form" method="POST" action="<?php echo esc_url(rcp_get_current_url()); ?> "> <fieldset class="rcp_login_data"> <p> <label for="rcp_user_Login"><?php _e('Username', 'rcp'); ?> </label> <input name="rcp_user_login" id="rcp_user_login" class="required" type="text"/> </p> <p> <label for="rcp_user_pass"><?php _e('Password', 'rcp'); ?> </label>
$display_name = $current_user->display_name; if (isset($_GET['updated']) && $_GET['updated'] == 'true') { ?> <p class="rcp_success"><span><strong><?php _e('Success', 'rcp'); ?> :</strong> <?php _e('Your profile has been updated.', 'rcp'); ?> </span></p> <?php } ?> <?php rcp_show_error_messages(); ?> <form id="rcp_profile_editor_form" class="rcp_form" action="<?php echo rcp_get_current_url(); ?> " method="post"> <fieldset> <?php do_action('rcp_profile_editor_before', $current_user->ID); ?> <legend><?php _e('Change your Name', 'rcp'); ?> </legend> <p id="rcp_profile_first_name_wrap"> <label for="rcp_first_name"><?php
<?php if (!is_user_logged_in()) { ?> <?php rcp_show_error_messages('lostpassword'); ?> <form id="rcp_lostpassword_form" class="rcp_form" method="POST" action="<?php echo esc_url(add_query_arg('rcp_action', 'lostpassword')); ?> "> <?php do_action('rcp_before_lostpassword_form_fields'); ?> <fieldset class="rcp_lostpassword_data"> <p> <label for="rcp_user_login"><?php _e('Username or E-mail:', 'rcp'); ?> </label> <input name="rcp_user_login" id="rcp_user_login" class="required" type="text"/> </p> <?php do_action('rcp_lostpassword_form_fields_before_submit'); ?> <p> <input type="hidden" name="rcp_action" value="lostpassword"/>
function after_register() { $_GET['level'] = get_usermeta($_GET['id'], 'reg_type'); $levels = rcp_get_subscription_levels('active'); $gateways = rcp_get_enabled_payment_gateways(); rcp_show_error_messages('register'); ?> <form id="rcp_registration_form" class="rcp_form" method="POST" action="<?php echo esc_url(rcp_get_current_url()); if (isset($_GET['id'])) { echo '?id=' . $_GET['id']; } ?> "> <div class="saloginwrapper"> <h2 class="section-title"><span>Successful Registration!</span></h2> <div class="clear"></div> <ul id="rcp_subscription_levels" style="display:none;"> <?php foreach ($levels as $key => $level) { ?> <?php if (rcp_show_subscription_level($level->id)) { ?> <li id="rcp_subscription_level_<?php echo $level->id; ?> " class="rcp_subscription_level"> <input type="radio" class="required rcp_level" <?php if (isset($_GET['level']) && $_GET['level'] == $level->id) { echo 'checked="checked"'; } ?> name="rcp_level" rel="<?php echo esc_attr($level->price); ?> " value="<?php echo esc_attr(absint($level->id)); ?> " <?php if ($level->duration == 0) { echo 'data-duration="forever"'; } ?> /> <span class="rcp_subscription_level_name"><?php echo rcp_get_subscription_name($level->id); ?> </span><span class="rcp_separator"> - </span><span class="rcp_price" rel="<?php echo esc_attr($level->price); ?> "><?php echo $level->price > 0 ? rcp_currency_filter($level->price) : __('free', 'rcp'); ?> <span class="rcp_separator"> - </span></span> <span class="rcp_level_duration"><?php echo $level->duration > 0 ? $level->duration . ' ' . rcp_filter_duration_unit($level->duration_unit, $level->duration) : __('unlimited', 'rcp'); ?> </span> <div class="rcp_level_description"> <?php echo rcp_get_subscription_description($level->id); ?> </div> </li> <?php } ?> <?php } ?> </ul> <?php $gateways = rcp_get_enabled_payment_gateways(); if (count($gateways) > 1) { $display = rcp_has_paid_levels() ? '' : ' style="display: none;"'; ?> <fieldset class="rcp_gateways_fieldset"> <p> <label><?php _e('Choose Your Payment Method', 'rcp'); ?> </label> </p> <p id="rcp_payment_gateways"<?php echo $display; ?> > <select name="rcp_gateway" id="rcp_gateway" style="float:left; position:relative;"> <?php foreach ($gateways as $key => $gateway) { ?> <option value="<?php echo esc_attr($key); ?> "><?php echo esc_html($gateway); ?> </option> <?php } ?> </select> </p> </fieldset> <?php } ?> <?php do_action('rcp_before_registration_submit_field', $levels); ?> <p id="rcp_submit_wrap"> <input type="hidden" name="rcp_register_nonce" value="<?php echo wp_create_nonce('rcp-register-nonce'); ?> "/> <input type="submit" name="rcp_submit_registration" id="rcp_submit" value="<?php echo apply_filters('rcp_registration_register_button', __('Register', 'rcp')); ?> "/> </p> <div class="clear"></div> </div></form> <?php }
*/ global $current_user, $rcp_load_css; $rcp_load_css = true; if ( is_user_logged_in() ): $user_id = get_current_user_id(); $first_name = get_user_meta( $user_id, 'first_name', true ); $last_name = get_user_meta( $user_id, 'last_name', true ); $display_name = $current_user->display_name; if ( isset( $_GET['updated'] ) && $_GET['updated'] == 'true' ): ?> <p class="rcp_success"><span><strong><?php _e( 'Success', 'rcp'); ?>:</strong> <?php _e( 'Your profile has been updated.', 'rcp' ); ?></span></p> <?php endif; ?> <?php rcp_show_error_messages(); ?> <form id="rcp_profile_editor_form" class="rcp_form" action="<?php echo rcp_get_current_url(); ?>" method="post"> <fieldset> <?php do_action( 'rcp_profile_editor_before', $current_user->ID ); ?> <legend><?php _e( 'Change your Name', 'rcp' ); ?></legend> <p id="rcp_profile_first_name_wrap"> <label for="rcp_first_name"><?php _e( 'First Name', 'rcp' ); ?></label> <input name="rcp_first_name" id="rcp_first_name" class="text rcp-input" type="text" value="<?php echo $first_name; ?>" /> </p> <p id="rcp_profile_first_name_wrap"> <label for="rcp_last_name"><?php _e( 'Last Name', 'rcp' ); ?></label> <input name="rcp_last_name" id="rcp_last_name" class="text rcp-input" type="text" value="<?php echo $last_name; ?>" /> </p> <p id="rcp_profile_display_name_wrap"> <label for="rcp_display_name"><?php _e( 'Display Name', 'rcp' ); ?></label> <select name="rcp_display_name">