Changeset 3
- Timestamp:
- 12/26/2004 10:14:22 AM (21 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bb-includes/formatting-functions.php
r2 r3 62 62 $text = preg_replace('|<(/?li.*?)>|', '<$1>', $text); 63 63 $text = preg_replace('|<(/?blockquote.*?)>|', '<$1>', $text); 64 $text = preg_replace('|<(/?code.*?)>|', '<$1>', $text); 64 65 return $text; 65 66 } -
trunk/bb-includes/template-functions.php
r2 r3 20 20 ++$bb_alt[$key]; 21 21 if ( $bb_alt[$key] % 2 ) echo ' class="alt"'; 22 } 23 24 function is_front() { 25 if ( '/index.php' == $_SERVER['PHP_SELF'] ) 26 return true; 27 else 28 return false; 29 } 30 31 function is_forum() { 32 if ( '/forum.php' == $_SERVER['PHP_SELF'] ) 33 return true; 34 else 35 return false; 36 } 37 38 function is_topic() { 39 if ( '/topic.php' == $_SERVER['PHP_SELF'] ) 40 return true; 41 else 42 return false; 43 } 44 45 function bb_title() { 46 global $topic, $forum; 47 $title = ''; 48 if ( is_topic() ) 49 $title = get_topic_title(). ' « '; 50 if ( is_forum() ) 51 $title = get_forum_name() . ' « '; 52 $title .= get_option('name'); 53 echo $title; 22 54 } 23 55 … … 87 119 function topic_title() { 88 120 global $topic; 89 echo apply_filters('topic_title', $topic->topic_title); 121 echo apply_filters('topic_title', get_topic_title() ); 122 } 123 124 function get_topic_title() { 125 global $topic; 126 return $topic->topic_title; 90 127 } 91 128 -
trunk/bb-templates/header.php
r2 r3 2 2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> 3 3 <head> 4 <title><?php echo $bb->name; ?> <?php $more_title;?></title>4 <title><?php bb_title() ?></title> 5 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 6 6 </head> -
trunk/bb-templates/topic.php
r2 r3 21 21 <div class="threadpost"> 22 22 <div class="post"><?php post_text(); ?></div> 23 <div class="poststuff">Posted: <?php post_time(); ?> {$viewIP} {$allowed}<a href="#post-<?php post_id(); ?>">#</a></div>23 <div class="poststuff">Posted: <?php post_time(); ?> <a href="#post-<?php post_id(); ?>">#</a></div> 24 24 </div> 25 25 </li>
Note: See TracChangeset
for help on using the changeset viewer.