示例#1
0
文件: topic.php 项目: billerby/Surdeg
					<div class="meta">
						<?php 
printf(__('%s ago'), bb_get_post_time());
?>
 | <?php 
post_author_link();
?>
 (<?php 
post_author_title();
?>
)
						
						<?php 
if (bb_current_user_can('view_by_ip')) {
    echo ' | ';
    post_ip_link();
}
?>
						
						<?php 
if (bb_current_user_can('edit_favorites')) {
    ?>
							| <span id="favorite-toggle"><?php 
    user_favorites_link(array('mid' => __('Add To Favourites', 'guangzhou'), array('pre' => __('Favourite'))));
    ?>
</span>
						<?php 
}
?>
					</div>
示例#2
0
function mass_edit_list_posts()
{
    global $bb_posts, $bb_post;
    if ($bb_posts) {
        foreach ($bb_posts as $bb_post) {
            ?>
	<li<?php 
            alt_class('post');
            ?>
>
		<div class="threadauthor">
			<p><strong><?php 
            poster_id_link();
            ?>
</strong><br />
				<small><?php 
            poster_id_type();
            ?>
</small></p>
		</div>
		<div class="threadpost">
			<div class="post"><?php 
            post_text();
            ?>
</div>
			<div class="poststuff">
				<?php 
            printf(__('Posted: %1$s in <a href="%2$s">%3$s</a>'), bb_get_post_time(), get_topic_link($bb_post->topic_id), get_topic_title($bb_post->topic_id));
            ?>
 IP: <?php 
            post_ip_link();
            ?>
 <?php 
            post_edit_link();
            ?>
 <?php 
            post_delete_link();
            ?>
</div>
			</div>
	</li><?php 
        }
    }
}