本文整理汇总了PHP中hwdMediaShareHelperRoute::getUserRoute方法的典型用法代码示例。如果您正苦于以下问题:PHP hwdMediaShareHelperRoute::getUserRoute方法的具体用法?PHP hwdMediaShareHelperRoute::getUserRoute怎么用?PHP hwdMediaShareHelperRoute::getUserRoute使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类hwdMediaShareHelperRoute
的用法示例。
在下文中一共展示了hwdMediaShareHelperRoute::getUserRoute方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
if ($this->params->get('global_list_meta_thumbnail') != 'hide') {
?>
<div class="media-item-format-<?php
echo $this->elementType;
?>
">
<img src="<?php
echo JHtml::_('hwdicon.overlay', $this->elementType, $item);
?>
" alt="<?php
echo $this->elementName;
?>
" />
</div>
<a href="<?php
echo JRoute::_(hwdMediaShareHelperRoute::getUserRoute($item->slug));
?>
">
<img src="<?php
echo JRoute::_(hwdMediaShareDownloads::thumbnail($item, $this->elementType));
?>
" border="0" alt="<?php
echo $this->escape($item->title);
?>
" style="max-width:100%;" />
</a>
<?php
}
?>
</div>
<!-- Clears Item and Information -->
示例2: getLink
public function getLink()
{
return JRoute::_(hwdMediaShareHelperRoute::getUserRoute($this->profile->id));
}
示例3: echo
</div>
<div class="span3">
<ul class="unstyled">
<li class="article-info-term"><?php
echo JText::_('COM_HWDMS_DETAILS');
?>
</li>
<li class="media-info-count"> <?php
echo JText::_('COM_HWDMS_MEDIA');
?>
(<?php
echo (int) $this->album->nummedia;
?>
)</li>
<li class="media-info-createdby"> <?php
echo JText::sprintf('COM_HWDMS_CREATED_BY', '<a href="' . JRoute::_(hwdMediaShareHelperRoute::getUserRoute($this->album->created_user_id)) . '">' . htmlspecialchars($this->album->author, ENT_COMPAT, 'UTF-8') . '</a>');
?>
</li>
<li class="media-info-created"> <?php
echo JText::sprintf('COM_HWDMS_CREATED_ON', JHtml::_('date', $this->album->created, $this->params->get('global_list_date_format')));
?>
</li>
<li class="media-info-hits"> <?php
echo JText::_('COM_HWDMS_VIEWS');
?>
(<?php
echo (int) $this->album->hits;
?>
)</li>
<li class="media-info-like"> <a href="<?php
echo JRoute::_('index.php?option=com_hwdmediashare&task=album.like&id=' . $this->album->id . '&return=' . $this->return . '&tmpl=component');
示例4: echo
?>
<?php
if ($this->params->get('global_list_meta_created') != 'hide') {
?>
<td class="list-date"><?php
echo JHtml::_('date', $item->created, JText::_('DATE_FORMAT_LC2'));
?>
</td>
<?php
}
?>
<?php
if ($this->params->get('global_list_meta_author') != 'hide') {
?>
<td class="list-author"><a href="<?php
echo JRoute::_(hwdMediaShareHelperRoute::getUserRoute($item->created_user_id));
?>
"><?php
echo $this->escape($item->author);
?>
</a></td>
<?php
}
?>
<?php
if ($this->params->get('global_list_meta_hits') != 'hide') {
?>
<td class="list-hits"><?php
echo (int) $item->hits;
?>
</td>