当前位置: 首页>>代码示例>>PHP>>正文


PHP CUrlHelper::eventLink方法代码示例

本文整理汇总了PHP中CUrlHelper::eventLink方法的典型用法代码示例。如果您正苦于以下问题:PHP CUrlHelper::eventLink方法的具体用法?PHP CUrlHelper::eventLink怎么用?PHP CUrlHelper::eventLink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CUrlHelper的用法示例。


在下文中一共展示了CUrlHelper::eventLink方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

                    }
                    ?>
		<?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
开发者ID:Simarpreet05,项目名称:joomla,代码行数:31,代码来源:activities.index.php

示例2:

    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);
        ?>
开发者ID:Jougito,项目名称:DynWeb,代码行数:31,代码来源:status.php

示例3: array

" 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");
开发者ID:SMARTRESPONSOR,项目名称:SMARTRESPONSOR,代码行数:31,代码来源:activities.apps.php

示例4: defined

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 />
开发者ID:joshjim27,项目名称:jobsglobal,代码行数:31,代码来源:activity.events.update.php

示例5: elseif

                    <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 
        }
开发者ID:joshjim27,项目名称:jobsglobal,代码行数:31,代码来源:list.php

示例6: cEventLink

/**
 * Deprecated since 1.8
 * Use CUrlHelper::groupLink instead. 
 */
function cEventLink($id, $route = true)
{
    return CUrlHelper::eventLink($id, $route);
}
开发者ID:bizanto,项目名称:Hooked,代码行数:8,代码来源:url.php

示例7:

').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;
    ?>
">
开发者ID:Simarpreet05,项目名称:joomla,代码行数:31,代码来源:notification.event.invitations.php

示例8: strtolower

$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');
开发者ID:Jougito,项目名称:DynWeb,代码行数:31,代码来源:activities.photos.cover.php

示例9: elseif

                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) {
    ?>
开发者ID:joshjim27,项目名称:jobsglobal,代码行数:31,代码来源:photos.php


注:本文中的CUrlHelper::eventLink方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。