Moin Leute,;)
ich melde mich auch mal wieder zurück, mit einem neuen Problem. In der letzten Zeit habe an meiner Login-Form weiter gebastelt, allerdings ist mir dabei aufgefallen, dass die Widget nicht in eine Box gefasst ist. Das für mich ein großes Problem, da die Login-Form im 2 Catmenu ist und sie so die ganze Breite einimmt. Normal würde ich einfach das hier sagen: width: 60%; allerdings geht das natürlich nicht, wenn die die Widget gar nicht in einer Box ist. Daher wollte ich fragen wie man so eine Box/Class zu der Widget hinzufügen kann.
Der obere Teil der Haupt-PHP:
<?php
/**
* Plugin Name: WP Sidebar Login
* Plugin URI: http://onlinewebapplication.com/2012/07/wp-sidebar-login.html
* Description: This plugin used to easily add an ajax enabled wordpress login widget to your site's sidebar.
* Version: 2.13
* Author: Pankaj Jha
* Author URI: http://onlinewebapplication.com/
* License: GNU General Public License, v2 (or newer)
* License URI: http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
/* Copyright 2011 Pankaj Jha (onlinewebapplication.com)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation using version 2 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
load_plugin_textdomain('sblogin', false , 'wp-sidebar-login/I18n/');
if (is_admin()) include( WP_PLUGIN_DIR . '/wp-sidebar-login/admin.php' );
/*Compatible with WordPress 3.6*/
/* Call via function */
function sidebarlogin( $args = '' ) {
if (!is_array($args)) parse_str($args, $args);
$defaults = array(
'before_widget'=>'',
'after_widget'=>'',
'before_title'=>'<h5>',
'after_title'=>'</h2>'
);
$args = array_merge($defaults, $args);
widget_wp_sidebarlogin($args);
}
/* The widget */
function widget_wp_sidebarlogin($args) {
global $user_ID, $current_user;
/* To add more extend i.e when terms came from themes - suggested by dev.xiligroup.com */
/* 2.1 version Issue fixed in 2.0 */
$defaults = array(
'thelogin'=>'',
'thewelcome'=>'',
'theusername'=>__('Username:','sblogin'),
'thepassword'=>__('Password:','sblogin'),
'theremember'=>__('Remember me','sblogin'),
'theregister'=>__('Register','sblogin'),
'thepasslostandfound'=>__('Password Lost and Found','sblogin'),
'thelostpass'=> __('Lost your password?','sblogin'),
'thelogout'=> __('Logout','sblogin')
);
$args = array_merge($defaults, $args);
extract($args);
get_currentuserinfo();
if ($user_ID != '') {
Alles anzeigen
Das Plugin: https://wordpress.org/plugins/wp-sidebar-login
Meine Webseite: http://progames.bplaced.net