__CLASS__, 'description' => __('Login/Logoff menu with register/lost password links if not logged on. (use only if registrations are enabled.','easel') ); $this->WP_Widget(__CLASS__, __('Control Panel','easel'), $widget_ops); } } function easel_show_control_panel() { global $user_login; if (!is_user_logged_in()) { ?> __('Username', 'easel'), 'label_password' => __('Password', 'easel') ); wp_login_form($args); ?>
easel_show_control_panel(); echo $after_widget; UnProtect(); } function update($new_instance, $old_instance) { $instance = $old_instance; $instance['title'] = strip_tags($new_instance['title']); return $instance; } function form($instance) { $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) ); $title = strip_tags($instance['title']); ?>