Exemplo n.º 1
0
)</span>
<span id="topic_voices">(<?php 
printf(_n('%s voice', '%s voices', bb_get_topic_voices()), bb_get_topic_voices());
?>
)</span>

<ul class="topicmeta">
	<li><?php 
printf(__('Asked %1$s ago by %2$s'), get_topic_start_time(), get_topic_author());
?>
</li>
<?php 
if (1 < get_topic_posts()) {
    ?>
	<li><?php 
    printf(__('<a href="%1$s">Latest answer</a> from %2$s'), esc_attr(get_topic_last_post_link()), get_topic_last_poster());
    ?>
</li>
<?php 
}
if (bb_is_user_logged_in()) {
    ?>
	<li<?php 
    echo $class;
    ?>
 id="favorite-toggle"><?php 
    user_favorites_link();
    ?>
</li>
<?php 
}
Exemplo n.º 2
0
<?php 
if ($topic_id) {
    ?>
<div id="topic-info-side">
<h2>About This Topic</h2>

<ul class="topicmeta">
	<li><?php 
    printf(__('Started %1$s ago by %2$s'), get_topic_start_time(), get_topic_author());
    ?>
</li>
<?php 
    if (1 < get_topic_posts()) {
        ?>
	<li><?php 
        printf(__('<a href="%1$s">Latest reply</a> from %2$s'), attribute_escape(get_topic_last_post_link()), get_topic_last_poster());
        ?>
</li>
<?php 
    }
    if (bb_is_user_logged_in()) {
        $class = 0 === is_user_favorite(bb_get_current_user_info('id')) ? ' class="is-not-favorite"' : '';
        ?>
	<li<?php 
        echo $class;
        ?>
 id="favorite-toggle"><?php 
        user_favorites_link();
        ?>
</li>
<?php 
Exemplo n.º 3
0
		<?php 
if (is_topic()) {
    ?>
			<div class="widget">
				<h3>О теме</h3>
	        	<ul>
	            	<li><?php 
    printf('Отправлено %1$s назад', get_topic_start_time(), get_topic_author());
    ?>
</li>
	            	<li><?php 
    printf('%2$s', get_topic_start_time(), get_topic_author());
    ?>
</li>
	            	<li><?php 
    printf('<a href=\\"%1$s\\">Последнее сообщение</a> от %2$s', attribute_escape(get_topic_last_post_link()), get_topic_last_poster());
    ?>
</li>
					<?php 
    if (bb_is_user_logged_in()) {
        $class = 0 === is_user_favorite(bb_get_current_user_info('id')) ? ' class="is-not-favorite"' : '';
        ?>
	            		<li<?php 
        echo $class;
        ?>
 id="favorite-toggle"><?php 
        user_favorites_link();
        ?>
</li>
	            	<?php 
    }
function topic_last_poster($id = 0)
{
    $topic = get_topic(get_topic_id($id));
    echo apply_filters('topic_last_poster', get_topic_last_poster($id), $topic->topic_last_poster, $topic->topic_id);
    // $topic->topic_last_poster = user ID
}
Exemplo n.º 5
0
        ?>
</td>
	<td class="date num">
<?php 
        if (get_topic_start_time('U') < time() - 86400) {
            topic_start_time('Y/m/d\\<\\b\\r \\/\\>H:i:s');
        } else {
            printf(__('%s ago'), get_topic_start_time('since'));
        }
        ?>
	</td>
	<td class="freshness num"><a href="<?php 
        topic_last_post_link();
        ?>
" title="<?php 
        echo esc_attr(sprintf(__('Last post by %s'), get_topic_last_poster()));
        ?>
">
<?php 
        if (get_topic_time('U') < time() - 86400) {
            topic_time('Y/m/d\\<\\b\\r \\/\\>H:i:s');
        } else {
            printf(__('%s ago'), get_topic_time('since'));
        }
        ?>
	
	<?php 
        //topic_time( bb_get_datetime_formatstring_i18n() );
        ?>