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 kodev2
Lagret av StoneHead
Tidspunkt 08/01/12 23:20
Kodespråk php
 
<?php
$_items = $this->getReviewsCollection()->getItems();
if (count($_items)) {
    echo '<div class="test">'; // div test
    $_chucks = array_chunk($_items, 5); // størrelse på gruppene
    foreach ($_chucks as $_chuck) {
        echo "<div>"; // intern div
        foreach ($_chuck as $_review) {
            printf('<li>%s <small class="date">%s</small></li>\n',
                    $this->__('%s', $this->htmlEscape($_review->getNickname())),
                    $this->__('%s', $this->formatDate($_review->getCreatedAt()), 'long')
                    );
        }
        echo "</div>"; // slutt intern div
    }
    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