function bp_adminbar_login_menu() { global $bp; if (!is_user_logged_in()) { echo '<li class="bp-login no-arrow"><a href="' . $bp->root_domain . '/wp-login.php?redirect_to=' . urlencode($bp->root_domain) . '">' . __('Log In', 'buddypress') . '</a></li>'; // Show "Sign Up" link if registrations are allowed if (get_site_option('registration') != 'none') { echo '<li class="bp-signup no-arrow"><a href="' . bp_signup_page(false) . '">' . __('Sign Up', 'buddypress') . '</a></li>'; } } }
function bp_core_widget_welcome($args) { global $current_blog; extract($args); $options = get_blog_option($current_blog->blog_id, 'bp_core_widget_welcome'); ?> <?php echo $before_widget; ?> <?php echo $before_title . $widget_name . $after_title; ?> <?php if ($options['title']) { ?> <h3><?php echo attribute_escape($options['title']); ?> </h3><?php } ?> <?php if ($options['text']) { ?> <p><?php echo attribute_escape($options['text']); ?> </p><?php } ?> <?php if (!is_user_logged_in()) { ?> <div class="create-account"><div class="visit generic-button"><a href="<?php bp_signup_page(); ?> " title="<?php _e('Create Account', 'buddypress'); ?> "><?php _e('Create Account', 'buddypress'); ?> </a></div></div> <?php } ?> <?php echo $after_widget; }
function bp_login_bar() { global $bp; if (!is_user_logged_in()) { ?> <form name="login-form" id="login-form" action="<?php echo $bp->root_domain . '/wp-login.php'; ?> " method="post"> <input type="text" name="log" id="user_login" value="<?php _e('Username', 'buddypress'); ?> " onfocus="if (this.value == '<?php _e('Username', 'buddypress'); ?> ') {this.value = '';}" onblur="if (this.value == '') {this.value = '<?php _e('Username', 'buddypress'); ?> ';}" /> <input type="password" name="pwd" id="user_pass" class="input" value="" /> <input type="checkbox" name="rememberme" id="rememberme" value="forever" title="<?php _e('Remember Me', 'buddypress'); ?> " /> <input type="submit" name="wp-submit" id="wp-submit" value="<?php _e('Log In', 'buddypress'); ?> "/> <input type="button" name="signup-submit" id="signup-submit" value="<?php _e('Sign Up', 'buddypress'); ?> " onclick="location.href='<?php echo bp_signup_page(); ?> '" /> <input type="hidden" name="redirect_to" value="http://<?php echo $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; ?> " /> <input type="hidden" name="testcookie" value="1" /> <?php do_action('bp_login_bar_logged_out'); ?> </form> <?php } else { ?> <div id="logout-link"> <?php bp_loggedinuser_avatar_thumbnail(20, 20); ?> <?php bp_loggedinuser_link(); ?> <?php if (function_exists('wp_logout_url')) { $logout_link = '/ <a href="' . wp_logout_url($bp->root_domain) . '">' . __('Log Out', 'buddypress') . '</a>'; } else { $logout_link = '/ <a href="' . $bp->root_domain . '/wp-login.php?action=logout&redirect_to=' . $bp->root_domain . '">' . __('Log Out', 'buddypress') . '</a>'; } echo apply_filters('bp_logout_link', $logout_link); ?> <?php do_action('bp_login_bar_logged_in'); ?> </div> <?php } }
<input type="checkbox" name="rememberme" id="rememberme" value="forever" title="<?php _e('Remember Me', TEMPLATE_DOMAIN); ?> " /> <input type="submit" name="wp-submit" id="wp-submit" value="<?php _e('Log In', TEMPLATE_DOMAIN); ?> "/> <?php if (bp_get_signup_allowed()) { ?> <input type="button" name="signup-submit" id="signup-submit" value="<?php _e('Sign Up', TEMPLATE_DOMAIN); ?> " onclick="location.href='<?php echo bp_signup_page(); ?> '" /> <?php } ?> <input type="hidden" name="redirect_to" value="<?php echo bp_root_domain(); ?> " /> <input type="hidden" name="testcookie" value="1" /> <?php do_action('bp_login_bar_logged_out'); ?> </form> <?php
<h3 class="kleo-pop-title"><?php _e("Log in with your credentials", "kleo_framework"); ?> </h3> <?php if (get_option('users_can_register')) { ?> <p> <em><?php _e("or", 'kleo_framework'); ?> </em> <a href="<?php if (function_exists('bp_is_active')) { bp_signup_page(); } else { echo get_bloginfo('url') . "/wp-login.php?action=register"; } ?> " class="new-account"><?php _e("Create an account", "kleo_framework"); ?> </a> </p> <?php } ?> </div>