Pastoid

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

This paste was last updated on March 1, 2010 at 10:54 pm.

Pasted Coderaw

<?php $theme->display( 'header' ); ?>
 
<div class="span-12 append-2 first" id="blog">
 
<h2>Posts tagged <em><?php echo $tag; ?></em></h2>
 
<ul>
<?php foreach ($posts as $post) { ?>
<li>
<?php echo $post->pubdate_out; ?> <a href="<?php echo $post->permalink; ?>" title="<?php echo $post->title; ?>"><?php echo $post->title_out; ?></a>
</li>
<?php } ?>
</ul>
 
Page: <?php $theme->prev_page_link(); ?> <?php $theme->page_selector( null, array ( 'leftSide' => 2, 'rightSide' => 2 ) ); ?> <?php $theme->next_page_link(); ?>
 
</div><!-- #blog -->
 
<div class="span-10 last" id="sidebar">
<?php $theme->display( 'generic.sidebar' ); ?>
</div>
 
<?php $theme->display( 'footer' ); ?>

Toggle wordwrap

Pasted Coderaw

<?php 
 
// Apply Format::autop() to post content... 
//Format::apply( 'autop', 'post_content_out' );
//Format::apply( 'autop', 'post_content_more' );
// Apply Format::autop() to comment content...
Format::apply( 'autop', 'comment_content_out' );
// Apply Format::tag_and_list() to post tags... 
Format::apply( 'tag_and_list', 'post_tags_out' );
// Apply Format::nice_date() to post date...
Format::apply( 'nice_date', 'post_pubdate_out', 'Y-m-d' );
Format::apply( 'nice_date', 'comment_date_out', 'Y-m-d H:i' );
 
Format::apply_with_hook_params( 'more', 'post_content_more', 'Read the whole thing', null, 2 );
Format::apply_with_hook_params( 'more', 'post_content_atom', 'Read the whole thing', null, 2 );
 
// We must tell Habari to use skippy as the custom theme class: 
define( 'THEME_CLASS', 'skippy2010' );
 
/**
 * skippy2010 theme
 */ 
class skippy2010 extends Theme
{
	public function add_template_vars() 
	{
		$this->assign( 'posts', Posts::get(  array( 'content_type' => 'entry', 'status' => Post::status('published') ) ) );
		if ( !$this->template_engine->assigned( 'plugins' ) ) {
			$this->assign( 'plugins', Posts::get( array( 'content_type' => 'plugin', 'status' => Post::status('published'), 'orderby' => 'title ASC' ) ) );
		}
		if( !$this->template_engine->assigned( 'pages' ) ) {
			$this->assign('pages', Posts::get( array( 'content_type' => 'page', 'status' => Post::status('published') ) ) );
		}
		if( !$this->template_engine->assigned( 'user' ) ) {
			$this->assign('user', User::identify() );
		}
		parent::add_template_vars();
	}
 
	public function filter_theme_call_header( $return, $theme )
	{
		Stack::add( 'template_header_javascript', Site::get_url('scripts') . '/jquery.js', 'jquery' );
		return $return;
	}
}
?>

Toggle wordwrap

Referring DomainHits
Unknown Referer 152
pastoid.com 3
Is this paste spam?
<Hide