Changeset 895 for trunk/wp-includes/template-functions-general.php
- Timestamp:
- 02/20/2004 01:42:39 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-general.php
r894 r895 36 36 37 37 switch($show) { 38 case "url":39 $output = $siteurl. "/".$blogfilename;40 break; 41 case "description":38 case 'url': 39 $output = $siteurl.'/'.$blogfilename; 40 break; 41 case 'description': 42 42 $output = $blogdescription; 43 43 break; 44 case "rdf_url":44 case 'rdf_url': 45 45 $output = $siteurl.'/wp-rdf.php'; 46 46 if ($do_perma) { … … 48 48 } 49 49 break; 50 case "rss_url":50 case 'rss_url': 51 51 $output = $siteurl.'/wp-rss.php'; 52 52 if ($do_perma) { … … 54 54 } 55 55 break; 56 case "rss2_url":56 case 'rss2_url': 57 57 $output = $siteurl.'/wp-rss2.php'; 58 58 if ($do_perma) { … … 60 60 } 61 61 break; 62 case "atom_url":62 case 'atom_url': 63 63 $output = $siteurl.'/wp-atom.php'; 64 64 if ($do_perma) { … … 66 66 } 67 67 break; 68 case "comments_rss2_url":68 case 'comments_rss2_url': 69 69 $output = $siteurl.'/wp-commentsrss2.php'; 70 70 if ($do_perma) { … … 72 72 } 73 73 break; 74 case "pingback_url":74 case 'pingback_ur'": 75 75 $output = $siteurl.'/xmlrpc.php'; 76 76 break; 77 case "admin_email":77 case 'admin_email': 78 78 $output = $admin_email; 79 79 break; 80 case "name":80 case 'name': 81 81 default: 82 82 $output = $blogname; … … 214 214 if ('' != $limit) { 215 215 $limit = (int) $limit; 216 $limit = " LIMIT $limit";216 $limit = ' LIMIT '.$limit; 217 217 } 218 218 // this is what will separate dates on weekly archive links … … 248 248 $url = get_month_link($arcresult->year, $arcresult->month); 249 249 if ($show_post_count) { 250 $text = sprintf( "%s %d", $month[zeroise($arcresult->month,2)], $arcresult->year);251 $after = " ($arcresult->posts)";250 $text = sprintf('%s %d', $month[zeroise($arcresult->month,2)], $arcresult->year); 251 $after = ' ('.$arcresult->posts.')'; 252 252 } else { 253 $text = sprintf( "%s %d", $month[zeroise($arcresult->month,2)], $arcresult->year);253 $text = sprintf('%s %d', $month[zeroise($arcresult->month,2)], $arcresult->year); 254 254 } 255 255 echo get_archives_link($url, $text, $format, $before, $after); … … 280 280 $arc_week_start = date_i18n($archive_week_start_date_format, $arc_week['start']); 281 281 $arc_week_end = date_i18n($archive_week_end_date_format, $arc_week['end']); 282 $url = sprintf( "%s/%s%sm%s%s%sw%s%d", $siteurl, $blogfilename, $querystring_start,282 $url = sprintf('%s/%s%sm%s%s%sw%s%d', $siteurl, $blogfilename, $querystring_start, 283 283 $querystring_equal, $arc_year, $querystring_separator, 284 284 $querystring_equal, $arcresult->week); … … 460 460 echo '<td id="today">'; 461 461 else 462 echo "<td>";462 echo '<td>'; 463 463 464 464 if (in_array($day, $daywithpost)) { // any posts today? … … 483 483 global $allowedtags; 484 484 foreach($allowedtags as $tag => $attributes) { 485 $allowed .= "<$tag";485 $allowed .= '<'.$tag; 486 486 if (0 < count($attributes)) { 487 487 foreach ($attributes as $attribute => $limits) { 488 $allowed .= " $attribute=\"\"";489 } 490 } 491 $allowed .= "> ";488 $allowed .= ' '.$attribute.'=""'; 489 } 490 } 491 $allowed .= '> '; 492 492 } 493 493 return htmlentities($allowed); … … 498 498 function the_date_xml() { 499 499 global $post; 500 echo mysql2date( "Y-m-d",$post->post_date);500 echo mysql2date('Y-m-d',$post->post_date); 501 501 //echo ""+$post->post_date; 502 502 }
Note: See TracChangeset
for help on using the changeset viewer.