Esempio n. 1
0
/**
 * Displays the topic link.
 *
 * @since  1.0.0
 * @access public
 * @param  int     $topic_id
 * @return void
 */
function mb_topic_link($topic_id = 0)
{
    echo mb_get_topic_link($topic_id);
}
Esempio n. 2
0
/**
 * Returns the forum last topic link.  This returns the last topic by activity, which is not
 * necessarily the newest topic created.
 *
 * @since  1.0.0
 * @access public
 * @param  int     $forum_id
 * @return string
 */
function mb_get_forum_last_topic_link($forum_id = 0)
{
    $forum_id = mb_get_forum_id($forum_id);
    $topic_id = mb_get_forum_last_topic_id($forum_id);
    $topic_link = $topic_id ? mb_get_topic_link($topic_id) : '';
    return apply_filters('mb_get_forum_last_topic_link', $topic_link, $forum_id);
}
Esempio n. 3
0
/**
 * Reply info meta box.  Displays relevant information about the reply.  This box doesn't have editable 
 * content in it.
 *
 * @since  1.0.0
 * @access public
 * @param  object  $post
 * @return void
 */
function mb_reply_info_meta_box($post)
{
    $reply_id = mb_get_reply_id($post->ID);
    $topic_id = mb_get_reply_topic_id($reply_id);
    $forum_id = mb_get_reply_forum_id($reply_id);
    $topic_object = get_post_type_object(mb_get_topic_post_type());
    $forum_object = get_post_type_object(mb_get_forum_post_type());
    ?>

	<p><?php 
    printf(__('Topic: %s', 'message-board'), mb_get_topic_link($topic_id));
    ?>
</p>
	<p><?php 
    printf(__('Forum: %s', 'message-board'), mb_get_forum_link($forum_id));
    ?>
</p>
<?php 
}