本文整理汇总了PHP中Url::comment方法的典型用法代码示例。如果您正苦于以下问题:PHP Url::comment方法的具体用法?PHP Url::comment怎么用?PHP Url::comment使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Url
的用法示例。
在下文中一共展示了Url::comment方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: widget_newcomm
function widget_newcomm($title)
{
global $CACHE;
$com_cache = $CACHE->readCache('comment');
?>
<li>
<h3><span><?php
echo $title;
?>
</span></h3>
<ul id="newcomment">
<?php
foreach ($com_cache as $value) {
$url = Url::comment($value['gid'], $value['page'], $value['cid']);
?>
<li id="comment"><?php
echo $value['name'];
?>
<br /><a href="<?php
echo $url;
?>
"><?php
echo $value['content'];
?>
</a></li>
<?php
}
?>
</ul>
</li>
<?php
}
示例2: widget_newcomm
function widget_newcomm($title)
{
global $CACHE;
$com_cache = $CACHE->readCache('comment');
?>
<div class="widget widget_newcomm">
<h3><?php
echo $title;
?>
</h3>
<ul class="widget_newcomm_ul">
<?php
foreach ($com_cache as $value) {
$url = Url::comment($value['gid'], $value['page'], $value['cid']);
?>
<li>
<a href="<?php
echo $url;
?>
">
<img src="<?php
echo J_getGravatar($value['mail']);
?>
" class="avator">
<strong><?php
echo $value['name'];
?>
</strong>
<span class="muted">
<?php
echo timeago($value['date']);
?>
说:
<br/>
<?php
echo comment2emoji($value['content']);
?>
</span>
</a>
</li>
<?php
}
?>
</ul>
</div>
<?php
}
示例3: widget_newcomm
function widget_newcomm($title)
{
global $CACHE;
$com_cache = $CACHE->readCache('comment');
if ($title == "by_miem") {
?>
<ul class="tab-panel tab-con3">
<ul id="newcomment">
<?php
foreach ($com_cache as $value) {
$url = Url::comment($value['gid'], $value['page'], $value['cid']);
?>
<li><a class="comment-name" rel="nofollow" href="<?php
echo $url;
?>
"><span class="c-name"><?php
echo $value['name'];
?>
说:</span><?php
echo $value['content'];
?>
</a></li>
<?php
}
?>
</ul>
</ul>
<?php
} else {
}
}
示例4: foreach
}
?>
<h5 class="light teal-text text-darken-2 center padding-horizontal">
<?php
echo $widgets_exist['newcomm']['title'];
?>
</h5>
<ul id="newcomment" class="collection">
<!-- 需要截断是在 li 上添加 class truncate -->
<?php
foreach ($com_cache as $value) {
?>
<?php
$url = Url::comment($value['gid'], $value['page'], $value['cid']);
?>
<li id="comment" class="collection-item waves-effect waves-teal truncate" style="display: block">
<div class="comment-author">
<?php
echo $value['name'];
?>
:
</div>
<a class="light red-text text-lighten-2" href="<?php
echo $url;
?>
"><?php
echo $value['content'];
?>
</a>
示例5: widget_newcomm
function widget_newcomm($title)
{
global $CACHE;
$com_cache = $CACHE->readCache('comment');
?>
<div class="widget">
<h3 class="widget-title"><?php
echo $title;
?>
</h3>
<ul class="sidebar-comments">
<?php
foreach ($com_cache as $value) {
$url = Url::comment($value['gid'], $value['page'], $value['cid']);
?>
<li><div class="rc_avatar"><a href="<?php
echo $url;
?>
"><img alt="<?php
echo $value['name'];
?>
" class="avatar" src="<?php
echo getGravatar($value['mail']);
?>
" height='32' width='32' /></a></div>
<a href="<?php
echo $url;
?>
"><?php
echo $value['name'];
?>
</a> 说:
<p><?php
echo $value['content'] = preg_replace("/\\[(([1-4]?[0-9])|50)\\]/", '<img src="' . TEMPLATE_URL . 'face/$1.gif">', $value['content']);
?>
</p></li>
<?php
}
?>
</ul>
</div>
<?php
}
示例6: widget_newcomm
function widget_newcomm($title)
{
global $CACHE;
$com_cache = $CACHE->readCache('comment');
?>
<li>
<ul id="newcomment">
<?php
foreach ($com_cache as $value) {
$url = Url::comment($value['gid'], $value['page'], $value['cid']);
?>
<dl>
<dt><img src="<?php
echo TEMPLATE_URL;
?>
style/images/s<?php
echo rand(1, 8);
?>
.jpg">
<dt>
<dd><?php
echo $value['name'];
?>
<time><?php
echo date("Y-m-d", $value['date']);
?>
</time>
</dd>
<dd>评论:</dd>
<dd><a href="<?php
echo $url;
?>
"><?php
echo $value['content'];
?>
</a></dd>
</dl>
<?php
}
?>
</ul>
</li>
<?php
}
示例7: widget_newcomm
function widget_newcomm($title)
{
global $CACHE;
$com_cache = $CACHE->readCache('comment');
?>
<aside class="widget clearfix widget_recent_comments" id="recent-comments">
<h3 class="widget-title"><?php
echo $title;
?>
</h3>
<ul id="recentcomments">
<?php
foreach ($com_cache as $value) {
$url = Url::comment($value['gid'], $value['page'], $value['cid']);
?>
<li class="recentcomments"><?php
echo $value['name'];
?>
<a href="<?php
echo $url;
?>
"><?php
echo $value['content'];
?>
</a></li>
<?php
}
?>
</ul>
</aside>
<?php
}