copypasta.dbQ.no
v1.0.1 (26.08.2009)
De siste 5 postene
1piratlink
15:53 21/02/2012
text
StoneHead
2CraftIRC til irssi
16:31 14/02/2012
bash
Mathsterk
3craftirc.pm
17:36 13/02/2012
perl
StoneHead
4Eggdrop logg craftir
17:03 13/02/2012
text
Mathsterk
5crap bot
18:44 08/02/2012
text
StoneHead
Tittel kode
Lagret av StoneHead
Tidspunkt 08/01/12 22:44
Kodespråk php
 
<?php
$_items = $this->getReviewsCollection()->getItems();
if (count($_items)) {
echo '<div class="test">';
echo "<div>"; // start på første indre div
foreach ($_items as $idx => $_review):
    if (($idx % 5==0) && $idx > 0) echo "</div><div>";
    printf('<li>%s <small class="date">%s</small></li>',
            $this->__('%s', $this->htmlEscape($_review->getNickname())),
            $this->__('%s', $this->formatDate($_review->getCreatedAt()), 'long')
            );
endforeach;
echo "</div>"; // div test
}
?>
Siden er utviklet av dbQ / Steinar Seljevold.
Alle tekst/kode (c) deres respektive eiere.
gratis shell hos shellpro - Lagre bilderim.dbq.no - Pastebincopypasta.dbq.no