Moin Leute,
wie immer machen mir die Kleinigkeiten das Leben schwer. Ich wollte nämlich bei meiner Login-Form im Menu, zwischen dem Login und dem Restrieren-Button das Wort "oder" hinfügen. Leider weiß nicht ganz genau wie ich das anstellen kann, da ich warscheinlich irgendwelche Klammer ignoriere und daher wollte ich mal fragen wie man das richtig macht.
Die entsprechende PHP-Stelle:
PHP
// login form
$sidebarlogin_post_url = ( force_ssl_login() || force_ssl_admin() ) ? str_replace('http://', 'https://', sidebar_login_current_url() ) : sidebar_login_current_url();
$login_form_args = apply_filters( 'sidebar_login_form_args', array(
'echo' => true,
'redirect' => esc_attr( $redirect_to ),
'label_username' => $theusername,
'label_password' => $thepassword,
'label_remember' => $theremember,
'label_log_in' => __('Login', 'sblogin'),
'remember' => false,
'value_remember' => false
) );
wp_login_form( $login_form_args );
// Output other links
$links = '';
if ( get_option('users_can_register') && get_option('sidebarlogin_register_link') == '1' ) {
if ( ! is_multisite() ) {
$links .= '<li class="sidebarlogin_register"><a href="' . apply_filters( 'sidebar_login_register_url', site_url('registrieren', 'login') ) . '" rel="nofollow">' . $theregister . '</a></li>';
} else {
$links .= '<li class="sidebarlogin_register"><a href="' . apply_filters( 'sidebar_login_register_url', site_url('wp-signup.php', 'login') ) . '" rel="nofollow">' . $theregister . '</a></li>';
}
}
if ( get_option( 'sidebarlogin_forgotton_link' ) == '1' )
$links .= '<li><a href="' . apply_filters( 'sidebar_login_lostpassword_url', wp_lostpassword_url() ) . '" rel="nofollow">' . $thelostpass . '</a></li>';
if ($links)
echo '<ul class="sidebarlogin_otherlinks">' . $links . '</ul>';
}
// echo widget closing tag
echo $after_widget;
}
Alles anzeigen