Location: PHPKode > scripts > Better WP Security > better-wp-security/functions/meta.php
<?php

class BWPS_Widget_Meta extends WP_Widget {
	
	function BWPS_Widget_Meta() {
		$widget_ops = array('classname' => 'widget_meta', 'description' => __( "Log in/out, admin, feed and WordPress links") );
		$this->WP_Widget('meta', __('Meta'), $widget_ops);
	}

	function widget( $args, $instance ) {
		global $BWPS;
		
		$opts = $BWPS->getOptions();
		
		extract($args);
		$title = apply_filters('widget_title', empty($instance['title']) ? __('Meta') : $instance['title'], $instance, $this->id_base);

		echo $before_widget;
		if ( $title )
			echo $before_title . $title . $after_title;
?>
			<ul>
			<?php
				if ( ! is_user_logged_in() ) {
					if ( get_option('users_can_register') )
						$link = '<li><a rel="nofollow" href="' . site_url($opts['hidebe_register_slug']) . '">' . __('Register') . '</a></li>';
					else
						$link = '';
					} else {
						$link = '<li><a rel="nofollow" href="' . site_url($opts['hidebe_admin_slug']) . '">' . __('Site Admin') . '</a></li>';
					}
				echo apply_filters('register', $link);
				
				if ( ! is_user_logged_in() ) {
					$link = '<li><a rel="nofollow" href="' . site_url($opts['hidebe_login_slug']) . '">' . __('Log in') . '</a></li>';
				} else {
					$link = '<li><a rel="nofollow" href="' . esc_url(wp_logout_url(site_url())) . '">' . __('Log out') . '</a></li>';
				}
				echo apply_filters('loginout', $link);
			?>
			<li><a rel="nofollow" href="<?php bloginfo('rss2_url'); ?>" title="<?php echo esc_attr(__('Syndicate this site using RSS 2.0')); ?>"><?php _e('Entries <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
			<li><a rel="nofollow" href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php echo esc_attr(__('The latest comments to all posts in RSS')); ?>"><?php _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>'); ?></a></li>
			<li><a rel="nofollow" href="http://wordpress.org/" title="<?php echo esc_attr(__('Powered by WordPress, state-of-the-art semantic personal publishing platform.')); ?>">WordPress.org</a></li>
			<?php wp_meta(); ?>
			</ul>
<?php
		echo $after_widget;
	}
	
	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']);
?>
			<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:'); ?></label> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></p>
<?php
	}

}
Return current item: Better WP Security