Ejemplo n.º 1
0
function show_context($term, $text)
{
    bb_log_deprecated('function', __FUNCTION__, 'bb_show_context');
    return bb_show_context($term, $text);
}
function bb_post_text_context($post_text)
{
    return bb_show_context($GLOBALS['q'], $post_text);
}
Ejemplo n.º 3
0
if ($relevant) {
    ?>
<h2>Релевантные сообщения</h2>
<ol class="results">
<?php 
    foreach ($relevant as $bb_post) {
        ?>
<li><h4><a href="<?php 
        post_link();
        ?>
"><?php 
        topic_title($bb_post->topic_id);
        ?>
</a></h4>
<p><?php 
        echo bb_show_context($q, $bb_post->post_text);
        ?>
</p>
<p><small>Отправлено <?php 
        echo bb_datetime_format_i18n(bb_get_post_time(array('format' => 'timestamp')));
        ?>
</small></p>
</li>
<?php 
    }
    ?>
</ol>
<?php 
}
?>
Ejemplo n.º 4
0
        alt_class('relevant');
        ?>
>
			<a class="result" href="<?php 
        post_link($topic->post_id);
        ?>
"><?php 
        echo bb_show_topic_context($q, get_topic_title());
        ?>
</a>
			<span class="freshness"><?php 
        printf(__('Posted by <a href="%1$s">%2$s</a> on %3$s'), get_user_profile_link($topic->topic_id), get_topic_author(), bb_datetime_format_i18n(get_topic_start_time(array('format' => 'timestamp'))));
        ?>
</span>
			<p><?php 
        echo bb_show_context($q, $topic->post_text);
        ?>
</p>
		</li>
<?php 
    }
    ?>
	</ol>
</div>
<?php 
}
?>

<?php 
if ($q && !$recent && !$relevant) {
    ?>