Changeset 363 for trunk/b2-include/b2template.functions.php
- Timestamp:
- 09/09/2003 10:33:47 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/b2-include/b2template.functions.php
r356 r363 490 490 } 491 491 492 function the_title($before='', $after='' ) {492 function the_title($before='', $after='', $echo=true) { 493 493 $title = get_the_title(); 494 494 $title = convert_bbcode($title); … … 498 498 $title = convert_chars($before.$title.$after); 499 499 $title = apply_filters('the_title', $title); 500 echo $title; 500 if ($echo) 501 echo $title; 502 else 503 return $title; 501 504 } 502 505 } … … 998 1001 } 999 1002 1000 function the_category_ID( ) {1003 function the_category_ID($echo=true) { 1001 1004 global $post; 1002 echo $post->post_category; 1005 if ($echo) 1006 echo $post->post_category; 1007 else 1008 return $post->post_category; 1003 1009 } 1004 1010 … … 1326 1332 permalink_single(); 1327 1333 echo '"'."\n"; 1328 echo ' dc:title="'. addslashes(strip_tags(get_the_title())).'"'."\n";1334 echo ' dc:title="'.str_replace('--', '--', addslashes(strip_tags(get_the_title()))).'"'."\n"; 1329 1335 echo ' trackback:ping="'.trackback_url(0).'"'." />\n"; 1330 1336 echo '</rdf:RDF>';
Note: See TracChangeset
for help on using the changeset viewer.