Beispiel #1
0
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 
}
Beispiel #2
0
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 
}
Beispiel #3
0
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 {
    }
}
}
?>

<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>
Beispiel #5
0
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 
}
Beispiel #6
0
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><img alt="" src="http://www.gravatar.com/avatar/<?php 
        echo md5($value['mail']);
        ?>
" class="avatar avatar-32 photo" height="32" width="32"><?php 
        echo $value['name'];
        ?>
:<br> <a href="<?php 
        echo $url;
        ?>
" title="查看"><?php 
        echo $value['content'];
        ?>
</a></li>
	<?php 
    }
    ?>
  </ul>
</li>
<?php 
}
Beispiel #7
0
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 
}
Beispiel #8
0
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 
}