Changeset 894
- Timestamp:
- 02/20/2004 01:14:33 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-general.php
r885 r894 366 366 <tr>'; 367 367 foreach ($weekday as $wd) { 368 echo "\n\t\t<th abbr= '$wd' scope='col' title='$wd'>" . substr($wd, 0, $daylength) . '</th>';368 echo "\n\t\t<th abbr=\"$wd\" scope=\"col\" title=\"$wd\">" . substr($wd, 0, $daylength) . '</th>'; 369 369 } 370 370 … … 406 406 AND YEAR(post_date) = $thisyear 407 407 AND post_status = 'publish' 408 AND post_date < '" . date( "Y-m-d H:i:s", (time() + ($time_difference * 3600)))."'", ARRAY_N);408 AND post_date < '" . date('Y-m-d H:i:s', (time() + ($time_difference * 3600))).'\'', ARRAY_N); 409 409 if ($dayswithposts) { 410 410 foreach ($dayswithposts as $daywith) { … … 417 417 418 418 419 if (strstr($_SERVER[ "HTTP_USER_AGENT"], "MSIE") ||420 strstr(strtolower($_SERVER[ "HTTP_USER_AGENT"]), "camino") ||421 strstr(strtolower($_SERVER[ "HTTP_USER_AGENT"]), "safari")) {419 if (strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE') || 420 strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'camino') || 421 strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'safari')) { 422 422 $ak_title_separator = "\n"; 423 423 } else { 424 $ak_title_separator = ", ";424 $ak_title_separator = ', '; 425 425 } 426 426 … … 435 435 if ($ak_post_titles) { 436 436 foreach ($ak_post_titles as $ak_post_title) { 437 if (empty($ak_titles_for_day[ "day_".$ak_post_title->dom])) {438 $ak_titles_for_day[ "day_".$ak_post_title->dom] = '';437 if (empty($ak_titles_for_day['day_'.$ak_post_title->dom])) { 438 $ak_titles_for_day['day_'.$ak_post_title->dom] = ''; 439 439 } 440 440 if (empty($ak_titles_for_day["$ak_post_title->dom"])) { // first one … … 449 449 // See how much we should pad in the beginning 450 450 $pad = intval(date('w', $unixmonth)); 451 if (0 != $pad) echo "\n\t\t <td colspan='$pad' class='pad'> </td>";451 if (0 != $pad) echo "\n\t\t".'<td colspan="'.$pad.'" class="pad"> </td>'; 452 452 453 453 $daysinmonth = intval(date('t', $unixmonth)); … … 475 475 $pad = 7 - date('w', mktime(0, 0 , 0, $thismonth, $day, $thisyear)); 476 476 if ($pad != 0 && $pad != 7) 477 echo "\n\t\t <td class='pad' colspan='$pad'> </td>";477 echo "\n\t\t".'<td class="pad" colspan="'.$pad.'"> </td>'; 478 478 479 479 echo "\n\t</tr>\n\t</tbody>\n\t</table>";
Note: See TracChangeset
for help on using the changeset viewer.