本文整理汇总了PHP中K2HelperUtilities::writtenBy方法的典型用法代码示例。如果您正苦于以下问题:PHP K2HelperUtilities::writtenBy方法的具体用法?PHP K2HelperUtilities::writtenBy怎么用?PHP K2HelperUtilities::writtenBy使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类K2HelperUtilities
的用法示例。
在下文中一共展示了K2HelperUtilities::writtenBy方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
echo $item->link;
?>
"><?php
echo $item->title;
?>
</a>
<?php
}
?>
<?php
if ($params->get('itemAuthor')) {
?>
<div class="moduleItemAuthor">
<?php
echo K2HelperUtilities::writtenBy($item->authorGender);
?>
<?php
if (isset($item->authorLink)) {
?>
<a rel="author" title="<?php
echo K2HelperUtilities::cleanHtml($item->author);
?>
" href="<?php
echo $item->authorLink;
?>
"><?php
echo $item->author;
?>
</a>
示例2:
</span>
<?php
}
?>
</h3>
<?php
}
?>
<?php
if ($this->item->params->get('catItemAuthor')) {
?>
<!-- Item Author -->
<span class="catItemAuthor">
<?php
echo K2HelperUtilities::writtenBy($this->item->author->profile->gender);
?>
<?php
if (isset($this->item->author->link) && $this->item->author->link) {
?>
<a rel="author" href="<?php
echo $this->item->author->link;
?>
"><?php
echo $this->item->author->name;
?>
</a>
<?php
} else {
?>
示例3: if
<?php if($this->item->params->get('catItemFeaturedNotice') && $this->item->featured): ?>
<!-- Featured flag -->
<span>
<sup>
<?php echo JText::_('Featured'); ?>
</sup>
</span>
<?php endif; ?>
</h3>
<?php endif; ?>
<?php if($this->item->params->get('catItemAuthor')): ?>
<!-- Item Author -->
<span class="catItemAuthor">
<?php echo K2HelperUtilities::writtenBy($this->item->author->profile->gender); ?> <a href="<?php echo $this->item->author->link; ?>"><?php echo $this->item->author->name; ?></a>
</span>
<?php endif; ?>
</div>
<!-- Plugins: AfterDisplayTitle -->
<?php echo $this->item->event->AfterDisplayTitle; ?>
<!-- K2 Plugins: K2AfterDisplayTitle -->
<?php echo $this->item->event->K2AfterDisplayTitle; ?>
<?php if($this->item->params->get('catItemRating')): ?>
<!-- Item Rating -->
<div class="catItemRatingBlock">
<span><?php echo JText::_('Rate this item'); ?></span>