foreach ($posts as $post) {
$postView = new Horde_View(array('templatePath' => HORDE_TEMPLATES . '/block'));
$postView->actorImgUrl = $profiles[(string)$post['actor_id']]['pic_square'];
- $postView->actorProfileLink = Horde::externalUrl($profiles[(string)$post['actor_id']]['url'], true) . $profiles[(string)$post['actor_id']]['name'] . '</a>';
+ $postView->actorProfileLink = Horde::externalUrl($profiles[(string)$post['actor_id']]['url'], true);
+ $postView->actorName = $profiles[(string)$post['actor_id']]['name'];
$postView->message = empty($post['message']) ? '' : $post['message'];
$postView->attachment = empty($post['attachment']) ? null : $post['attachment'];
$postView->likes = $post['likes'];
*/
?>
<div class="hordeSmStreamstory">
- <div class="fbstreampic"><img style="float:left;" src="<?php echo $this->actorImgUrl ?>" /></div>
- <div class="hodreSmStreambody">
- <?php echo $this->actorProfileLink ?><br />
+ <div class="hordeSmAvatar"><img width="48px" height="48px" src="<?php echo $this->actorImgUrl ?>" alt="<?php echo $this->actorName ?>" /></div>
+ <div class="hordeSmStreambody">
+ <?php echo $this->actorProfileLink . $this->actorName?></a><br />
<?php echo empty($this->message) ? '' : $this->message;?>
- <?php if(!empty($this->attachment)):?>
+ <?php if(!empty($this->attachment) &&
+ (!empty($this->attachment['description']) ||
+ !empty($this->attachment['media']) ||
+ !empty($this->attachment['caption']))):?>
<div class="fbattachment">
<?php if (!empty($this->attachment['media']) && count($this->attachment['media'])):?>
<div class="fbmedia<?php echo count($this->attachment['media']) > 1 ? ' fbmediawide' : ''?>">