hallo freunde kann mir bitte jemand helfen?
Ich benutze das plugin SIDEBARLOGIN und möchte das das ganze zentreirt wird!
momentan ist nach dem login alles linksbündig
mein problem ist das dass alles in der mitte stehen soll ! hier mal mein code:
PHP
function widget_sidebarLogin($args) {
extract($args);
// Get user info
global $user_level,$user_identity,$user_ID,$user_login;
get_currentuserinfo();
if ('' != $user_ID) {
// User is logged in
echo $before_widget . $before_title . "Hallo ".$user_identity . $after_title;
echo '
<ul class="pagenav">
<li class="page_item"><a href="'.get_bloginfo('wpurl').'/wp-admin">User Bereich</a></li>
<li class="page_item"><a href="'.get_bloginfo('wpurl').'/wp-admin/profile.php">User Profil</a></li>
<li class="page_item"><a href="'.get_bloginfo('wpurl').'/wp-login.php?action=logout&redirect_to=http://'.$_SERVER["SERVER_NAME"].$_SERVER['REQUEST_URI'].'">Logout</a></li>
</ul>
';
} else {
// User is NOT logged in!!!
echo $before_widget . $before_title . "Login" . $after_title;
// Show any errors
$sbl_errors=$_POST['sbl_errors'];
if ( !empty( $sbl_errors ) ) {
if ( is_array( $sbl_errors ) ) {
$newerrors = "\n";
foreach ( $sbl_errors as $error ) $newerrors .= ' ' . $error . "<br />\n";
$sbl_errors = $newerrors;
}
echo '<div id="login_error">' . apply_filters('login_errors', $sbl_errors) . "</div>\n";
}
// login form
echo '<form action="';
// Get url for CURRENT page
echo "http://".$_SERVER["SERVER_NAME"].$_SERVER['REQUEST_URI'];
echo '" method="post" >';
?>
<p><label for="user_login"><?php _e('Username:') ?><br/><input name="log" value="<?php echo attribute_escape(stripslashes($_POST['user_login'])); ?>" class="mid" id="user_login" type="text" /></label></p>
<p><label for="user_pass"><?php _e('Password:') ?><br/><input name="pwd" class="mid" id="user_pass" type="password" /></label></p>
<p><label for="rememberme"><input name="rememberme" class="checkbox" id="rememberme" value="forever" type="checkbox" /> <?php _e('Remember me'); ?></label></p>
<p class="submit"><input type="submit" name="wp-submit" id="wp-submit" value="<?php _e('Login'); ?> »" />
<input type="hidden" name="sidebarLogin_posted" value="1" /></p>
</form>
<?php
// Output other links
echo '<ul class="sidebarLogin_otherlinks">';
if (get_option('users_can_register')) :
?>
<li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=register"><?php _e('Register') ?></a></li>
<li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=lostpassword" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a></li>
<?php else : ?>
<li><a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=lostpassword" title="<?php _e('Password Lost and Found') ?>"><?php _e('Lost your password?') ?></a></li>
<?php endif; ?>
</ul>
<?php
Alles anzeigen
Ich Hoffe ihr könnt mir helfen! danke!