All pastes #547887 Raw Edit

Stuff

public php v1 · immutable
·published 2007-06-07 15:12 UTC
rendered paste body
function widget_post_info( $args ) {extract($args);echo $before_widget;echo '<p>';bloginfo('description');echo '</p>';if(is_home()) {echo $before_title;_e( 'Archives' );echo $after_title;if( function_exists('get_theme_option')&& ( get_theme_option('archive_links') == 'monthly' || get_theme_option('archive_links') == 'both' ) ) {echo '      ';      wp_get_archives('type=monthly');      echo '';}}elseif(is_attachment()) {echo $before_title;_e( 'Attachment' );echo $after_title;?><p><?php_e( 'You are viewing the attatchment' );?> <?phpthe_title();?>. <?phpvl_get_comment_links('attatchment');?></p><?php}elseif(is_single()) {echo $before_title;_e( 'Post Information' );echo $after_title;?><p><?php_e( 'You are reading' );?> <?phpthe_title();?>. <?phpvl_get_comment_links('post');?></p><?php}elseif(is_404()) {echo $before_title;_e( 'Oops!' );echo $after_title;}elseif(is_day()) {echo $before_title;the_time('F jS');echo $after_title;?><p><?php_e('You are looking at posts ');_e('that were written on ');?><?php the_time('F jS, Y'); ?>.</p><?php}elseif(is_category()) {echo $before_title;single_cat_title();echo $after_title;?><p><?php_e('You are looking at posts ');_e('in the category ');?><?php single_cat_title(); ?>.</p><?php}elseif(is_page()) {echo $before_title;_e( 'Page Information' );echo $after_title;?><p><?php_e('You are reading ');?><?php the_title(); ?>. <?phpvl_get_comment_links( 'page' );?></p><?php}elseif(is_month()) {echo $before_title;the_time('F, Y');echo $after_title;?><p><?php_e('You are looking at posts ');_e('that were written');_e(' in the month of ');?><?php the_time('F'); ?><?php_e(' in the year ');?><?php the_time('Y'); ?>.</p><?php}elseif(is_year()) {echo $before_title;the_time('Y');echo $after_title;?><p><?php_e('You are looking at posts ');_e('that were written');_e(' in the year ');?><?php the_time('Y'); ?>.</p><?php}elseif(is_search()) {echo $before_title;_e( 'Search Results' );echo $after_title;?><p><?php_e('You searched for ');?><?php echo( htmlspecialchars( stripslashes( $_GET['s'] ) ) ); ?>.</p><?php}elseif(is_author()) {echo $before_title;_e( 'Author Archives' );echo $after_title;$id = 0;$post = &get_post($id);$author = get_userdata($post->post_author);?><p><?php_e('You are looking at posts ');_e('written by ');?>user_url; ?>"><?phpecho $author->user_nicename;?>.</p><?php}else if( function_exists( 'is_tag' ) && is_tag() ) {echo $before_title;_e( 'Tagged' );echo $after_title;?><p><?php_e('You are looking at posts ');_e('that have been tagged ');?><?php UTW_ShowCurrentTagSet('tagsetcommalist'); ?></p><?php}else {echo $before_title;the_title();}}