Pastoid

Support non-entry posts in Habari's main post loop

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

This paste was last updated on June 5, 2009 at 12:12 am.

In the theme's theme.php:raw

	public function act_display_home( $user_filters= array() )
	{
		$paramarray['fallback']= array(
			'home',
			'multiple',
		);
 
		$paramarray['posts'] = Posts::get(array(
			'content_type' => array('podcast', 'entry'), 
			'status' => Post::status('published'), 
			'page' => Controller::get_var('page')
		));
 
		return $this->act_display( $paramarray );
	}

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
www.bing.com 6
search.live.com 1
mibbit.com 1
Is this paste spam?
<Hide