Pastoid

My Paste

The page you are looking at now is at this URL: http://pastoid.com/b2k

This paste was last updated on July 27, 2010 at 9:54 am.

page.testing.phpraw

<?php $theme->display ('header'); ?>
<!-- page.single -->
	<div class="page">
	<div id="primary">
		<dl>
<?php
		$results = Posts::get( array(
			'content_type' => 'entry',
			'status' => 'published',
			'limit' => 0,
 
			)
			);
$whichyear = 0;
$whichmonth = 0;
		foreach( $results as $result ) {
$resultyear = $result->pubdate->get( 'Y' );
$resultmonth = $result->pubdate->get( 'F' );
 
if ( $whichyear != $resultyear || $whichmonth != $resultmonth ) {
	$whichyear = $resultyear;
	$whichmonth = $resultmonth;
	echo "<dt style='padding-top:1em;width:120px;'>$whichmonth $whichyear</dt>\n";
}
//Utils::debug( $result ); die();
$result_link = "<a href='" . $result->permalink . "' title='" . $result->title ."'>" . $result->title . "</a>";
			echo "\t<dd style='padding-left:125px;'>" . $result_link . " [rating: " . $result->info->rateit_rating . " ] - " . $result->word_count . " words</dd>\n";
		}
 
?>
		</dl>
	</div>
 
        <hr>
 
	<div class="secondary">
 
<?php $theme->display ('sidebar'); ?>
 
	</div>
 
	<div class="clear"></div>
	</div>
<!-- /page.single -->
<?php $theme->display ( 'footer' ); ?>

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 12
Is this paste spam?
<Hide