コード例 #1
0
ファイル: comment.php プロジェクト: JeffreyBue/jb
<?php 
do_action('bp_before_activity_comment');
?>

<li id="acomment-<?php 
bp_activity_comment_id();
?>
">
	<div class="acomment-avatar">
		<a href="<?php 
bp_activity_comment_user_link();
?>
">
			<?php 
bp_activity_avatar(array('type' => 'thumb', 'user_id' => bp_get_activity_comment_user_id()));
?>
		</a>
	</div>

	<div class="acomment-meta">
		<?php 
/* translators: 1: user profile link, 2: user name, 3: activity permalink, 4: activity timestamp */
printf(__('<a href="%1$s">%2$s</a> replied <a href="%3$s" class="activity-time-since"><span class="time-since">%4$s</span></a>', 'buddypress'), bp_get_activity_comment_user_link(), bp_get_activity_comment_name(), bp_get_activity_thread_permalink(), bp_get_activity_comment_date_recorded());
?>
	</div>

	<div class="acomment-content"><?php 
bp_activity_comment_content();
?>
</div>
コード例 #2
0
/**
 * Gets the author link for the activity comment currently being displayed
 *
 * @since 1.5.0
 *
 * @uses bp_core_get_user_domain()
 * @uses bp_get_activity_comment_user_id()
 * @uses apply_filters() To call the 'bp_activity_comment_user_link' hook
 *
 * @return string $user_link The URL of the activity comment author's profile
 */
function bp_get_activity_comment_user_link()
{
    $user_link = bp_core_get_user_domain(bp_get_activity_comment_user_id());
    return apply_filters('bp_activity_comment_user_link', $user_link);
}
コード例 #3
0
<?php 
do_action('bp_before_activity_comment');
?>

<li id="acomment-<?php 
bp_activity_comment_id();
?>
">
	<div class="acomment-avatar">
		<a href="<?php 
bp_activity_comment_user_link();
?>
">
			<?php 
bp_activity_avatar('type=thumb&user_id=' . bp_get_activity_comment_user_id());
?>
		</a>
	</div>

	<div class="acomment-meta">
		<?php 
/* translators: 1: user profile link, 2: user name, 3: activity permalink, 3: activity timestamp */
printf(__('<a href="%1$s">%2$s</a> replied <a href="%3$s" class="activity-time-since"><span class="time-since">%4$s</span></a>', 'buddypress'), bp_get_activity_comment_user_link(), bp_get_activity_comment_name(), bp_get_activity_thread_permalink(), bp_get_activity_comment_date_recorded());
?>
	</div>

	<div class="acomment-content"><?php 
bp_activity_comment_content();
?>
</div>
コード例 #4
0
 function activity_comments_print_link()
 {
     $link = bpModFrontend::get_link(array('type' => 'activity_comment', 'author_id' => bp_get_activity_comment_user_id(), 'id' => bp_get_activity_comment_id(), 'id2' => bp_get_activity_id(), 'custom_class' => 'bpm-no-images bp-secondary-action'));
     echo $link;
 }
コード例 #5
0
/**
 * Return the author link for the activity comment currently being displayed.
 *
 * @since BuddyPress (1.5.0)
 *
 * @uses bp_core_get_user_domain()
 * @uses bp_get_activity_comment_user_id()
 * @uses apply_filters() To call the 'bp_activity_comment_user_link' hook
 *
 * @return string $user_link The URL of the activity comment author's profile.
 */
function bp_get_activity_comment_user_link()
{
    $user_link = bp_core_get_user_domain(bp_get_activity_comment_user_id());
    /**
     * Filters the author link for the activity comment currently being displayed.
     *
     * @since BuddyPress (1.5.0)
     *
     * @param string $user_link Link for the author of the activity comment currently being displayed.
     */
    return apply_filters('bp_activity_comment_user_link', $user_link);
}
コード例 #6
0
 * @package myfossil
 * @subpackage theme
 */
do_action('bp_before_activity_comment');
?>

<div id="acomment-<?php 
bp_activity_comment_id();
?>
" class="acomment activity-entry">

    <div class="activity-heading">

        <div class="acomment-meta">
            <?php 
bp_activity_avatar('class=avatar&type=thumb&user_id=' . bp_get_activity_comment_user_id() . '&width=30&height=30');
?>
            <?php 
/* translators: 1: user profile link, 2: user name, 3: activity permalink, 4: activity timestamp */
printf(__('<a href="%1$s">%2$s</a> replied <a href="%3$s" class="activity-time-since"><span class="time-since">%4$s</span></a>', 'buddypress'), bp_get_activity_comment_user_link(), bp_get_activity_comment_name(), bp_get_activity_comment_permalink(), bp_get_activity_comment_date_recorded());
?>
        </div>
    </div>

    <div class="activity-body">

        <div class="acomment-content">
            <?php 
bp_activity_comment_content();
?>
        </div>
コード例 #7
0
ファイル: comment.php プロジェクト: tamriel-foundry/apoc2
/**
 * Apocrypha Theme Single Activity Comment
 * Andrew Clayton
 * Version 2.0
 * 10-11-2014
 */
?>

<li id="acomment-<?php 
bp_activity_comment_id();
?>
" class="activity-comment">
	<div class="acomment-avatar">
		<?php 
echo apoc_get_avatar(array('user_id' => bp_get_activity_comment_user_id(), 'size' => 50));
?>
	</div>

	<div class="acomment-body">
		<header class="activity-header">
			<?php 
printf(__('<a href="%1$s">%2$s</a> replied <a href="%3$s" class="activity-time-since"><span class="time-since">%4$s</span></a>', 'buddypress'), bp_get_activity_comment_user_link(), bp_get_activity_comment_name(), bp_get_activity_thread_permalink(), bp_get_activity_comment_date_recorded());
?>
			
			<?php 
if (bp_activity_user_can_delete()) {
    ?>
		
			<div class="actions">
				<a href="<?php 
コード例 #8
0
?>

<li id="acomment-<?php 
bp_activity_comment_id();
?>
" class="well well-sm">

	<div class="acomment-content text-left"><?php 
bp_activity_comment_content();
?>
</div>

	<div class="acomment-meta text-right">
		<?php 
/* translators: 1: user profile link, 2: user name, 3: activity permalink, 4: activity timestamp */
printf(__('<a href="%1$s">%2$s</a> replied <a href="%3$s" class="activity-time-since"><span class="time-since">%4$s</span></a>', 'firmasite'), bp_get_activity_comment_user_link(), bp_activity_avatar('type=thumb&width=20&user_id=' . bp_get_activity_comment_user_id()) . bp_get_activity_comment_name(), bp_get_activity_thread_permalink(), bp_get_activity_comment_date_recorded());
?>
	</div>
    
	<div class="acomment-options text-right">

		<?php 
if (is_user_logged_in() && bp_activity_can_comment_reply(bp_activity_current_comment())) {
    ?>

			<a href="#acomment-<?php 
    bp_activity_comment_id();
    ?>
" class="acomment-reply bp-primary-action text-success btn-xs" id="acomment-reply-<?php 
    bp_activity_id();
    ?>