Пример #1
0
        if (JRequest::getVar('task') == 'sent' && !empty($message->smallAvatar[0])) {
            echo $message->to_name[0];
        } else {
            $recipientsName = array();
            foreach ($message->recipients as $recipient) {
                $user = JXFactory::getUser($recipient);
                $recipientsName[] = $user->name;
            }
            echo implode(', ', $recipientsName);
        }
        ?>
							</span>
							<span class="small">
								<?php 
        $postdate = new JDate($message->posted_on);
        echo JXDate::formatLapse($postdate);
        ?>
							</span>
						</div>
					</li>
					<li class="inbox-delete">
						<a href="" class="close">&times;</a>
					</li>
				</ul>
				<div class="clear"></div>
			</li>
			<?php 
    }
    ?>
		</ul>
		<div class="clear"></div>
Пример #2
0
							<a href="<?php 
            echo $result->addhref;
            ?>
" target="_blank"><?php 
            echo $result->title;
            ?>
</a>
							<br/>
							<div class="message-meta small">
								<a class="meta-date" href="<?php 
            echo $result->href;
            ?>
" target="_blank">
							<?php 
            $date = new JDate($result->created);
            echo JXDate::formatLapse($date);
            ?>
								</a>
							</div>
						</div>
					</div>
				</div>
				<div class="clear"></div>
			</li>
		</ul>
	</div>
<?php 
            break;
            // case default
    }
    // end if $result->section
Пример #3
0
    $my->setParam('group_' . $comment->group_id . '_comment', $comment->id);
    $my->save();
}
?>
	<a href="<?php 
echo $user->getURL();
?>
"><?php 
echo $this->escape($user->name);
?>
</a> <?php 
echo StreamMessage::format($comment->comment);
?>
	<div class="comment-meta">
		<span><?php 
echo JXDate::formatLapse($commentDate);
?>
</span>
		<span style="<?php 
if ($commentLikeCount <= 0) {
    echo 'display: none;';
}
?>
">• <span class="comment-like"><?php 
echo $commentLikeCount;
?>
</span></span>
		<span class="comment-option" style="display:none;">
			<span>• <a href="#comment<?php 
echo !$comment->isLike($my->id) ? '' : 'un';
?>