thousands separator

This commit is contained in:
Claude 2013-01-09 20:22:18 +01:00
parent f24d0d3779
commit 70c71ef162
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
<td class="first"><a href="<?php echo site_url("view/".$paste['pid']); ?>"><?php echo $paste['title']; ?></a></td>
<td><?php echo $paste['name']; ?></td>
<td><?php echo $paste['lang']; ?></td>
<td><?php echo $paste['hits']; ?></td>
<td><?php echo number_format($paste['hits'], 0, '.', "'"); ?></td>
<td><?php $p = explode(",", timespan($paste['created'], time())); echo $p[0]; ?> ago.</td>
</tr>

View File

@ -8,7 +8,7 @@
<div class="info">
<h1 class="pagetitle right"><?php echo $title; ?></h1>
<div class="meta">
<span class="detail by">By <?php echo $name; ?>, <?php $p = explode(',', timespan($created, time())); echo $p[0]?> ago, written in <?php echo $lang; ?>, viewed <?php echo $hits; ?> times.</span>
<span class="detail by">By <?php echo $name; ?>, <?php $p = explode(',', timespan($created, time())); echo $p[0]?> ago, written in <?php echo $lang; ?>, viewed <?php echo number_format($hits, 0, '.', "'"); ?> times.</span>
<?php if(isset($inreply)){?><span class="detail by">This paste is a reply to <a href="<?php echo $inreply['url']?>"><?php echo $inreply['title']; ?></a> by <?php echo $inreply['name']; ?></span><?php }?>
<div class="spacer"></div>
<span class="detail"><span class="item">URL </span><a href="<?php echo $url; ?>"><?php echo $url; ?></a></span>