コード例 #1
0
ファイル: topic.php プロジェクト: achorg/DH-Answers
)</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 
}
コード例 #2
0
ファイル: sidebar.php プロジェクト: billerby/Surdeg
<?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 
コード例 #3
0
ファイル: footer.php プロジェクト: laiello/cartonbank
		<?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 
    }
コード例 #4
0
function topic_last_post_link($id = 0)
{
    echo apply_filters('topic_last_post_link', get_topic_last_post_link($id), $id);
}
コード例 #5
0
ファイル: profile.php プロジェクト: nxtclass/NXTClass-Plugin
>
	<a href="<?php 
        topic_link();
        ?>
"><?php 
        topic_title();
        ?>
</a> -
	<?php 
        printf(__('Started: %s ago'), get_topic_start_time());
        ?>
 |

	<span class="freshness"><?php 
        if (get_topic_start_time('timestamp') < get_topic_time('timestamp')) {
            printf(__('Most recent reply: <a href="%1$s">%2$s ago</a>'), get_topic_last_post_link(), get_topic_time());
        } else {
            _e('No replies since');
        }
        ?>
</span>
</li>
<?php 
    }
    ?>
</ol>
<?php 
} else {
    if ($page) {
        ?>
<p><?php