?> " src="<?php echo $user->getThumbAvatar(); ?> " alt="<?php echo $user->getDisplayName(); ?> "> </a> <?php } ?> </div> <div class="joms-stream__meta"> <?php echo CLikesHelper::generateHTML($act, $likedContent); ?> <span class="joms-stream__time"> <small><?php echo $createdTime; ?> </small> </span> </div> <?php $my = CFactory::getUser(); if ($my->id > 0) { $this->load('activities.stream.options'); } ?> </div>
public function ajaxShowOthers($id) { $my = CFactory::getUser(); if ($my->id == 0) { $this->ajaxBlockUnregister(); } $act = JTable::getInstance('Activity', 'CTable'); $act->load($id); $params = new CParameter($act->params); $users = CLikesHelper::getActor($params); array_shift($users); foreach ($users as $key => $user) { $users[$key] = CFactory::getUser($user); } $tmpl = new CTemplate(); $tmpl->set('users', $users); $html = $tmpl->fetch('ajax.stream.showothers'); $json = array(); $json['html'] = $html; die(json_encode($json)); }