Changes from branches/2.8/wp-includes/general-template.php at r11890 to trunk/wp-includes/general-template.php at r11548
- File:
-
- 1 edited
-
trunk/wp-includes/general-template.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/general-template.php
r11890 r11548 1024 1024 /* translators: Calendar caption: 1: month name, 2: 4-digit year */ 1025 1025 $calendar_caption = _x('%1$s %2$s', 'calendar caption'); 1026 echo '<table id="wp-calendar" summary="' . esc_attr__('Calendar') . '">1026 echo '<table id="wp-calendar" summary="' . __('Calendar') . '"> 1027 1027 <caption>' . sprintf($calendar_caption, $wp_locale->get_month($thismonth), date('Y', $unixmonth)) . '</caption> 1028 1028 <thead> … … 1037 1037 foreach ( $myweek as $wd ) { 1038 1038 $day_name = (true == $initial) ? $wp_locale->get_weekday_initial($wd) : $wp_locale->get_weekday_abbrev($wd); 1039 $wd = esc_attr($wd);1040 1039 echo "\n\t\t<th abbr=\"$wd\" scope=\"col\" title=\"$wd\">$day_name</th>"; 1041 1040 } … … 1060 1059 if ( $next ) { 1061 1060 echo "\n\t\t".'<td abbr="' . $wp_locale->get_month($next->month) . '" colspan="3" id="next"><a href="' . 1062 get_month_link($next->year, $next->month) . '" title="' . esc_attr( sprintf(__('View posts for %1$s %2$s'), $wp_locale->get_month($next->month),1063 date('Y', mktime(0, 0 , 0, $next->month, 1, $next->year))) ). '">' . $wp_locale->get_month_abbrev($wp_locale->get_month($next->month)) . ' »</a></td>';1061 get_month_link($next->year, $next->month) . '" title="' . sprintf(__('View posts for %1$s %2$s'), $wp_locale->get_month($next->month), 1062 date('Y', mktime(0, 0 , 0, $next->month, 1, $next->year))) . '">' . $wp_locale->get_month_abbrev($wp_locale->get_month($next->month)) . ' »</a></td>'; 1064 1063 } else { 1065 1064 echo "\n\t\t".'<td colspan="3" id="next" class="pad"> </td>'; … … 1118 1117 $pad = calendar_week_mod(date('w', $unixmonth)-$week_begins); 1119 1118 if ( 0 != $pad ) 1120 echo "\n\t\t".'<td colspan="'. esc_attr($pad).'" class="pad"> </td>';1119 echo "\n\t\t".'<td colspan="'.$pad.'" class="pad"> </td>'; 1121 1120 1122 1121 $daysinmonth = intval(date('t', $unixmonth)); … … 1132 1131 1133 1132 if ( in_array($day, $daywithpost) ) // any posts today? 1134 echo '<a href="' . get_day_link($thisyear, $thismonth, $day) . "\" title=\" " . esc_attr($ak_titles_for_day[$day]) . "\">$day</a>";1133 echo '<a href="' . get_day_link($thisyear, $thismonth, $day) . "\" title=\"$ak_titles_for_day[$day]\">$day</a>"; 1135 1134 else 1136 1135 echo $day; … … 1143 1142 $pad = 7 - calendar_week_mod(date('w', mktime(0, 0 , 0, $thismonth, $day, $thisyear))-$week_begins); 1144 1143 if ( $pad != 0 && $pad != 7 ) 1145 echo "\n\t\t".'<td class="pad" colspan="'. esc_attr($pad).'"> </td>';1144 echo "\n\t\t".'<td class="pad" colspan="'.$pad.'"> </td>'; 1146 1145 1147 1146 echo "\n\t</tr>\n\t</tbody>\n\t</table>";
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)