} ?> <?php } ?> </div> <!--NEWS FEED AVATAR--> <!--NEWS FEED CONTENT--> <div class="newsfeed-content"> <div class="newsfeed-content-top"> <?php // Put user header link if necessary if ($act->eventid) { echo '<div class="newsfeed-content-actor">'; echo '<strong><a class="actor-link" href="' . CUrlHelper::userLink($act->actor) . '">' . $actor->getDisplayName() . '</a></strong> <span class="com_icons com_icons12 com_icons-inline com_icons-rarr">»</span> <a href="' . CUrlHelper::eventLink($act->eventid) . '">' . $act->appTitle . '</a>'; if ($act->event_access == 1) { echo ' <span title="' . JText::_('COM_COMMUNITY_GROUPS_PRIVATE') . '" class="com_icons com_icons12 com_icons-inline com_icons-private jomNameTips">' . JText::_('COM_COMMUNITY_GROUPS_PRIVATE') . '</span>'; } echo '</div>'; } else { if ($act->groupid) { echo '<div class="newsfeed-content-actor">'; echo '<strong><a class="actor-link" href="' . CUrlHelper::userLink($act->actor) . '">' . $actor->getDisplayName() . '</a></strong> <span class="com_icons com_icons12 com_icons-inline com_icons-rarr">»</span> <a href="' . CUrlHelper::groupLink($act->groupid) . '">' . $act->appTitle . '</a>'; if ($act->group_access == 1) { echo ' <span title="' . JText::_('COM_COMMUNITY_GROUPS_PRIVATE') . '" class="com_icons com_icons12 com_icons-inline com_icons-private jomNameTips">' . JText::_('COM_COMMUNITY_GROUPS_PRIVATE') . '</span>'; } echo '</div>'; } else { if (!empty($act->target) && $act->target != $act->actor && $act->app == 'profile' && $act->target != $actorId) { // Actor doing something to target
echo CUrlHelper::userLink($user->id); ?> " data-joms-username class="joms-stream__user"><?php echo $user->getDisplayName(); ?> </a> <?php } else { echo $user->getDisplayName(); } if ($activity->get('eventid')) { $event = $this->event; ?> <span class="joms-stream__reference"> ▶ <a href="<?php echo CUrlHelper::eventLink($event->id); ?> "><?php echo $event->title; ?> </a> </span> <?php } else { if ($activity->get('groupid')) { $group = $this->group; ?> <span class="joms-stream__reference"> ▶ <a href="<?php echo CUrlHelper::groupLink($group->id); ?>
" border="0" alt=""/> <?php } ?> </div> <!--NEWS FEED AVATAR--> <!--NEWS FEED CONTENT--> <div class="newsfeed-content"> <div class="newsfeed-content-top"> <?php // Put user header link if necessary if ($apptype == 'group' && $act->eventid) { // For group event, show the arrow indicator (using <span class="com_icons com_icons12 com_icons-inline com_icons-rarr">»</span>) echo '<div class="newsfeed-content-actor"><a href="' . CUrlHelper::userLink($act->actor) . '">' . $actor->getDisplayName() . '</a> <span class="com_icons com_icons12 com_icons-inline com_icons-rarr">»</span> <a href="' . CUrlHelper::eventLink($act->eventid) . '">' . $act->appTitle . '</a></div>'; } else { ?> <div class="newsfeed-content-actor"> <strong><a class="actor-link" href="<?php echo CUrlHelper::userLink($act->actor); ?> "><?php echo $actor->getDisplayName(); ?> </a></strong> </div> <?php } // Order of replacement $order = array("\r\n", "\n", "\r");
defined('_JEXEC') or die; ?> <ul class ="cDetailList clrfix"> <li class="avatarWrap"> <a href="<?php echo $event->contentid ? CUrlHelper::groupeventLink($event->id, $event->contentid) : CUrlHelper::eventLink($event->id); ?> "><img style="width: 64px; height: auto" class="cAvatar" src="<?php echo $event->getThumbAvatar(); ?> " /></a> </li> <li class="detailWrap"> <strong><a href="<?php echo $event->contentid ? CUrlHelper::groupeventLink($event->id, $event->contentid) : CUrlHelper::eventLink($event->id); ?> "><?php echo strip_tags($event->title); ?> </a></strong> <small> <?php if (strlen(strip_tags($event->description))) { echo JHTML::_('string.truncate', strip_tags($event->description), $config->getInt('streamcontentlength')) . '<br />'; } ?> <?php echo $event->getStartDateHTML(); ?> <br />
<a href="<?php echo CRoute::_('index.php?option=com_community&view=profile&userid=' . $video->creator); ?> "><?php echo $video->getCreatorName(); ?> </a> <?php if ($video->groupid) { $group = JTable::getInstance('Group', 'CTable'); $group->load($video->groupid); echo JText::sprintf('COM_COMMUNITY_VIDEOS_FROM_GROUP', '<a href="' . CUrlHelper::groupLink($group->id) . '">' . $group->name . '</a>'); } elseif ($video->eventid) { $event = JTable::getInstance('Event', 'CTable'); $event->load($video->eventid); echo JText::sprintf('COM_COMMUNITY_VIDEOS_FROM_EVENT', '<a href="' . CUrlHelper::eventLink($event->id) . '">' . $event->title . '</a>'); } elseif ($params->get('activity_id')) { $targetUser = CFactory::getUser($params->get('target_id')); ?> ▶ <?php echo CLinkGeneratorHelper::getUserURL($targetUser->id, $targetUser->getDisplayName()); ?> <a href="<?php echo CUrlHelper::streamURI($params->get('activity_id'), $targetUser->id); ?> "><?php echo JText::_('COM_COMMUNITY_SINGULAR_STREAM'); ?> </a> <?php }
/** * Deprecated since 1.8 * Use CUrlHelper::groupLink instead. */ function cEventLink($id, $route = true) { return CUrlHelper::eventLink($id, $route); }
').remove(); jax.call('community','notification,ajaxRejectInvitation','<?php echo $row->id; ?> ', '<?php echo $row->eventid; ?> ');"> <?php echo JText::_('COM_COMMUNITY_EVENTS_REJECT'); ?> </a> <a class="jsIcon1 icon-go" style="text-indent: 0;" href="<?php echo CUrlHelper::eventLink($row->eventid); ?> " > <?php echo JText::_('COM_COMMUNITY_EVENTS_GO'); ?> </a> </span> </span> <span id="error-pending-<?php echo $row->id; ?> ">
$messageHTML = ''; $extraMessage = ''; if (strtolower($type) !== 'profile') { $id = $type . 'id'; if ($type == 'group' || $type == 'event') { $cTable = JTable::getInstance(ucfirst($type), 'CTable'); if ($cTable) { /* Make sure we had correct cTable */ $cTable->load($this->act->{$id}); if ($type == 'group') { $extraMessage = ', <a href="' . $cTable->getLink() . '">' . $cTable->name . '</a>'; $url = $cTable->getLink(); } if ($type == 'event') { $extraMessage = ', <a href="' . CUrlHelper::eventLink($cTable->id) . '">' . $cTable->title . '</a>'; $url = CUrlHelper::eventLink($cTable->id); } } else { $extraMessage = ''; } } $messageHTML = JText::sprintf('COM_COMMUNITY_PHOTOS_COVER_UPLOAD', strtolower(Jtext::_('COM_COMMUNITY_COVER_' . strtoupper($type)))) . $extraMessage; } else { $messageHTML = JText::_('COM_COMMUNITY_PHOTOS_COVER_UPLOAD_PROFILE'); } /** * Get cover path */ $coverPath = $params->get('attachment'); if (!file_exists($coverPath)) { $s3 = CStorage::getStorage('s3');
echo JText::sprintf('COM_COMMUNITY_ACTIVITY_PHOTO_PROFILE_SHARE_PLURAL', $count, CUrlHelper::userLink($target->id), $target->getDisplayName()); } else { echo JText::sprintf('COM_COMMUNITY_ACTIVITY_PHOTO_UPLOAD_TITLE_MANY', $count, $albumUrl, CStringHelper::escape($album->name)); } } } else { if ($act->groupid) { $group = JTable::getInstance('Group', 'CTable'); $group->load($act->groupid); $this->set('group', $group); echo JText::sprintf('COM_COMMUNITY_ACTIVITY_GROUP_PHOTO_UPLOAD_SINGLE', $albumUrl, CStringHelper::escape($album->name), CUrlHelper::groupLink($group->id), CStringHelper::escape($group->name)); } elseif ($act->eventid) { $event = JTable::getInstance('Event', 'CTable'); $event->load($act->eventid); $this->set('event', $event); echo JText::sprintf('COM_COMMUNITY_ACTIVITY_EVENT_PHOTOS_UPLOAD_SINGLE', $albumUrl, CStringHelper::escape($album->name), CUrlHelper::eventLink($event->id), CStringHelper::escape($event->title)); } else { if ($act->actor != $act->target && $act->target != 0) { $target = CFactory::getUser($act->target); echo JText::sprintf('COM_COMMUNITY_ACTIVITY_PHOTO_PROFILE_SHARE_SINGLE', CUrlHelper::userLink($target->id), $target->getDisplayName()); } else { echo JText::sprintf('COM_COMMUNITY_ACTIVITY_PHOTO_UPLOAD_TITLE', $albumUrl, CStringHelper::escape($album->name)); } } } } ?> <?php if (!$act->groupid) { ?>