Skip to:
Content

bbPress.org

Ticket #1274: search.php.rej

File search.php.rej, 1.5 KB (added by chrishajer, 16 years ago)

search.php.rej after trying to apply 1274.2.diff

Line 
1***************
2*** 24,36 ****
3
4  <?php if ( $relevant ) : ?>
5  <div id="results-relevant" class="search-results">
6-       <h4><?php _e('Relevant posts')?></h4>
7        <ol>
8- <?php foreach ( $relevant as $bb_post ) : ?>
9                <li<?php alt_class( 'relevant' ); ?>>
10-                       <a href="<?php post_link(); ?>"><?php topic_title($bb_post->topic_id); ?></a>
11-                       <span class="freshness"><?php printf( __('Posted %s'), bb_datetime_format_i18n( bb_get_post_time( array( 'format' => 'timestamp' ) ) ) ); ?></span>
12-                       <p><?php post_text(); ?></p>
13                </li>
14  <?php endforeach; ?>
15        </ol>
16--- 24,36 ----
17
18  <?php if ( $relevant ) : ?>
19  <div id="results-relevant" class="search-results">
20+       <h4><?php _e( 'Relevant Topics' )?></h4>
21        <ol>
22+ <?php foreach ( $relevant as $topic ) : ?>
23                <li<?php alt_class( 'relevant' ); ?>>
24+                       <a class="result" href="<?php post_link( $topic->post_id ); ?>"><?php echo bb_show_topic_context( $q, get_topic_title() ); ?></a>
25+                       <span class="freshness"><?php printf( __( 'Last post <a href="%1$s">%2$s ago</a> by <a href="%3$s">%4$s</a>'), get_topic_last_post_link(), get_topic_time(), get_user_profile_link( $topic->topic_last_poster ), get_topic_last_poster() ); ?></span>
26+                       <p><?php echo bb_show_context( $q, $topic->post_text ); ?></p>
27                </li>
28  <?php endforeach; ?>
29        </ol>