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


PHP Url::comment方法代码示例

本文整理汇总了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 
}
开发者ID:szshenjian,项目名称:JIEWU,代码行数:32,代码来源:module.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 
}
开发者ID:jjonline,项目名称:J4,代码行数:47,代码来源:module.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 {
    }
}
开发者ID:Bigstars,项目名称:Wangjx.org,代码行数:31,代码来源:module.php

示例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'];
    ?>
&nbsp;:
        </div>
        <a class="light red-text text-lighten-2" href="<?php 
    echo $url;
    ?>
"><?php 
    echo $value['content'];
    ?>
</a>
开发者ID:ArronYR,项目名称:emlog-material-theme,代码行数:31,代码来源:newcomm.php

示例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>&nbsp;说:
	<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 
}
开发者ID:zhaozhiliang,项目名称:emblog531,代码行数:44,代码来源:module.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 
}
开发者ID:Yela528,项目名称:ylsc633,代码行数:48,代码来源:module.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 
}
开发者ID:MikeCoder,项目名称:mblog,代码行数:32,代码来源:module.php


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