Changeset 12943 for trunk/wp-includes/general-template.php
- Timestamp:
- 02/04/2010 04:06:58 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r12917 r12943 1074 1074 /* translators: Calendar caption: 1: month name, 2: 4-digit year */ 1075 1075 $calendar_caption = _x('%1$s %2$s', 'calendar caption'); 1076 echo '<table id="wp-calendar" summary="' . esc_attr__('Calendar') . '">1076 echo '<table id="wp-calendar"> 1077 1077 <caption>' . sprintf($calendar_caption, $wp_locale->get_month($thismonth), date('Y', $unixmonth)) . '</caption> 1078 1078 <thead> … … 1088 1088 $day_name = (true == $initial) ? $wp_locale->get_weekday_initial($wd) : $wp_locale->get_weekday_abbrev($wd); 1089 1089 $wd = esc_attr($wd); 1090 echo "\n\t\t<th abbr=\"$wd\"scope=\"col\" title=\"$wd\">$day_name</th>";1090 echo "\n\t\t<th scope=\"col\" title=\"$wd\">$day_name</th>"; 1091 1091 } 1092 1092 … … 1099 1099 1100 1100 if ( $previous ) { 1101 echo "\n\t\t".'<td abbr="' . $wp_locale->get_month($previous->month) . '"colspan="3" id="prev"><a href="' .1101 echo "\n\t\t".'<td colspan="3" id="prev"><a href="' . 1102 1102 get_month_link($previous->year, $previous->month) . '" title="' . sprintf(__('View posts for %1$s %2$s'), $wp_locale->get_month($previous->month), 1103 1103 date('Y', mktime(0, 0 , 0, $previous->month, 1, $previous->year))) . '">« ' . $wp_locale->get_month_abbrev($wp_locale->get_month($previous->month)) . '</a></td>'; … … 1109 1109 1110 1110 if ( $next ) { 1111 echo "\n\t\t".'<td abbr="' . $wp_locale->get_month($next->month) . '"colspan="3" id="next"><a href="' .1111 echo "\n\t\t".'<td colspan="3" id="next"><a href="' . 1112 1112 get_month_link($next->year, $next->month) . '" title="' . esc_attr( sprintf(__('View posts for %1$s %2$s'), $wp_locale->get_month($next->month) , 1113 1113 date('Y', mktime(0, 0 , 0, $next->month, 1, $next->year))) ) . '">' . $wp_locale->get_month_abbrev($wp_locale->get_month($next->month)) . ' »</a></td>';
Note: See TracChangeset
for help on using the changeset viewer.