Ejemplo n.º 1
0
 static function feed_time($feed_time)
 {
     global $_lang;
     $time = time() - $feed_time;
     $time_desc = kekezu::time2Units($time, 'hour');
     if ($time_desc) {
         return $_lang['in'] . $time_desc . $_lang['before'];
     } else {
         return $_lang['just'];
     }
 }
<div class="record-ctrl">
<a href="javascript:$('#jcarousel_bid').jcarousel('scroll', '-=1');void(0);" ><i class="fa fa-caret-down"></i></a>
<a href="javascript:$('#jcarousel_bid').jcarousel('scroll', '+=1');void(0);"><i class="fa fa-caret-up"></i></a>
</div>
<h3 class="min-title">成交动态</h3>
</div>
<!-- home-record-header end -->
<div id="jcarousel_bid" class="home-record-body jcarousel-vertical">
<ul class="record-list">
<?php 
if (is_array($arrDynamicPlays)) {
    foreach ($arrDynamicPlays as $k => $v) {
        ?>
<li>
<?php 
        $timeDesc = kekezu::time2Units(time() - $v['feed_time'], 'hour');
        ?>
<p class="record-list-title">
<span class="time"><?php 
        if ($timeDesc) {
            echo $timeDesc;
            ?>
前<?php 
        } else {
            ?>
刚刚<?php 
        }
        ?>
</span>
<a href="<?php 
        echo $v['feed_username']['url'];