Edit File by line
/home/barbar84/www/wp-inclu.../theme-co...
File: sidebar.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* @package WordPress
[2] Fix | Delete
* @subpackage Theme_Compat
[3] Fix | Delete
* @deprecated 3.0.0
[4] Fix | Delete
*
[5] Fix | Delete
* This file is here for backward compatibility with old themes and will be removed in a future version.
[6] Fix | Delete
*/
[7] Fix | Delete
_deprecated_file(
[8] Fix | Delete
/* translators: %s: Template name. */
[9] Fix | Delete
sprintf( __( 'Theme without %s' ), basename( __FILE__ ) ),
[10] Fix | Delete
'3.0.0',
[11] Fix | Delete
null,
[12] Fix | Delete
/* translators: %s: Template name. */
[13] Fix | Delete
sprintf( __( 'Please include a %s template in your theme.' ), basename( __FILE__ ) )
[14] Fix | Delete
);
[15] Fix | Delete
?>
[16] Fix | Delete
<div id="sidebar" role="complementary">
[17] Fix | Delete
<ul>
[18] Fix | Delete
<?php
[19] Fix | Delete
/* Widgetized sidebar, if you have the plugin installed. */
[20] Fix | Delete
if ( ! function_exists( 'dynamic_sidebar' ) || ! dynamic_sidebar() ) :
[21] Fix | Delete
?>
[22] Fix | Delete
<li>
[23] Fix | Delete
<?php get_search_form(); ?>
[24] Fix | Delete
</li>
[25] Fix | Delete
[26] Fix | Delete
<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
[27] Fix | Delete
<li><h2><?php _e( 'Author' ); ?></h2>
[28] Fix | Delete
<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
[29] Fix | Delete
</li>
[30] Fix | Delete
-->
[31] Fix | Delete
[32] Fix | Delete
<?php
[33] Fix | Delete
if ( is_404() || is_category() || is_day() || is_month() ||
[34] Fix | Delete
is_year() || is_search() || is_paged() ) :
[35] Fix | Delete
?>
[36] Fix | Delete
<li>
[37] Fix | Delete
[38] Fix | Delete
<?php if ( is_404() ) : /* If this is a 404 page */ ?>
[39] Fix | Delete
<?php elseif ( is_category() ) : /* If this is a category archive */ ?>
[40] Fix | Delete
<p>
[41] Fix | Delete
<?php
[42] Fix | Delete
printf(
[43] Fix | Delete
/* translators: %s: Category name. */
[44] Fix | Delete
__( 'You are currently browsing the archives for the %s category.' ),
[45] Fix | Delete
single_cat_title( '', false )
[46] Fix | Delete
);
[47] Fix | Delete
?>
[48] Fix | Delete
</p>
[49] Fix | Delete
[50] Fix | Delete
<?php elseif ( is_day() ) : /* If this is a daily archive */ ?>
[51] Fix | Delete
<p>
[52] Fix | Delete
<?php
[53] Fix | Delete
printf(
[54] Fix | Delete
/* translators: 1: Site link, 2: Archive date. */
[55] Fix | Delete
__( 'You are currently browsing the %1$s blog archives for the day %2$s.' ),
[56] Fix | Delete
sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ),
[57] Fix | Delete
get_the_time( __( 'l, F jS, Y' ) )
[58] Fix | Delete
);
[59] Fix | Delete
?>
[60] Fix | Delete
</p>
[61] Fix | Delete
[62] Fix | Delete
<?php elseif ( is_month() ) : /* If this is a monthly archive */ ?>
[63] Fix | Delete
<p>
[64] Fix | Delete
<?php
[65] Fix | Delete
printf(
[66] Fix | Delete
/* translators: 1: Site link, 2: Archive month. */
[67] Fix | Delete
__( 'You are currently browsing the %1$s blog archives for %2$s.' ),
[68] Fix | Delete
sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ),
[69] Fix | Delete
get_the_time( __( 'F, Y' ) )
[70] Fix | Delete
);
[71] Fix | Delete
?>
[72] Fix | Delete
</p>
[73] Fix | Delete
[74] Fix | Delete
<?php elseif ( is_year() ) : /* If this is a yearly archive */ ?>
[75] Fix | Delete
<p>
[76] Fix | Delete
<?php
[77] Fix | Delete
printf(
[78] Fix | Delete
/* translators: 1: Site link, 2: Archive year. */
[79] Fix | Delete
__( 'You are currently browsing the %1$s blog archives for the year %2$s.' ),
[80] Fix | Delete
sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ),
[81] Fix | Delete
get_the_time( 'Y' )
[82] Fix | Delete
);
[83] Fix | Delete
?>
[84] Fix | Delete
</p>
[85] Fix | Delete
[86] Fix | Delete
<?php elseif ( is_search() ) : /* If this is a search result */ ?>
[87] Fix | Delete
<p>
[88] Fix | Delete
<?php
[89] Fix | Delete
printf(
[90] Fix | Delete
/* translators: 1: Site link, 2: Search query. */
[91] Fix | Delete
__( 'You have searched the %1$s blog archives for <strong>&#8216;%2$s&#8217;</strong>. If you are unable to find anything in these search results, you can try one of these links.' ),
[92] Fix | Delete
sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) ),
[93] Fix | Delete
esc_html( get_search_query() )
[94] Fix | Delete
);
[95] Fix | Delete
?>
[96] Fix | Delete
</p>
[97] Fix | Delete
[98] Fix | Delete
<?php elseif ( isset( $_GET['paged'] ) && ! empty( $_GET['paged'] ) ) : /* If this set is paginated */ ?>
[99] Fix | Delete
<p>
[100] Fix | Delete
<?php
[101] Fix | Delete
printf(
[102] Fix | Delete
/* translators: %s: Site link. */
[103] Fix | Delete
__( 'You are currently browsing the %s blog archives.' ),
[104] Fix | Delete
sprintf( '<a href="%1$s/">%2$s</a>', get_bloginfo( 'url' ), get_bloginfo( 'name' ) )
[105] Fix | Delete
);
[106] Fix | Delete
?>
[107] Fix | Delete
</p>
[108] Fix | Delete
[109] Fix | Delete
<?php endif; ?>
[110] Fix | Delete
[111] Fix | Delete
</li>
[112] Fix | Delete
<?php endif; ?>
[113] Fix | Delete
</ul>
[114] Fix | Delete
<ul role="navigation">
[115] Fix | Delete
<?php wp_list_pages( 'title_li=<h2>' . __( 'Pages' ) . '</h2>' ); ?>
[116] Fix | Delete
[117] Fix | Delete
<li><h2><?php _e( 'Archives' ); ?></h2>
[118] Fix | Delete
<ul>
[119] Fix | Delete
<?php wp_get_archives( array( 'type' => 'monthly' ) ); ?>
[120] Fix | Delete
</ul>
[121] Fix | Delete
</li>
[122] Fix | Delete
[123] Fix | Delete
<?php
[124] Fix | Delete
wp_list_categories(
[125] Fix | Delete
array(
[126] Fix | Delete
'show_count' => 1,
[127] Fix | Delete
'title_li' => '<h2>' . __( 'Categories' ) . '</h2>',
[128] Fix | Delete
)
[129] Fix | Delete
);
[130] Fix | Delete
?>
[131] Fix | Delete
</ul>
[132] Fix | Delete
<ul>
[133] Fix | Delete
<?php if ( is_home() || is_page() ) { /* If this is the frontpage */ ?>
[134] Fix | Delete
<?php wp_list_bookmarks(); ?>
[135] Fix | Delete
[136] Fix | Delete
<li><h2><?php _e( 'Meta' ); ?></h2>
[137] Fix | Delete
<ul>
[138] Fix | Delete
<?php wp_register(); ?>
[139] Fix | Delete
<li><?php wp_loginout(); ?></li>
[140] Fix | Delete
<?php wp_meta(); ?>
[141] Fix | Delete
</ul>
[142] Fix | Delete
</li>
[143] Fix | Delete
<?php } ?>
[144] Fix | Delete
[145] Fix | Delete
<?php endif; /* ! dynamic_sidebar() */ ?>
[146] Fix | Delete
</ul>
[147] Fix | Delete
</div>
[148] Fix | Delete
[149] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function