Pastoid

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

This paste was last updated on March 24, 2010 at 11:58 pm.

Pasted Coderaw

<?php
	public function action_block_content_adblock($block, $theme)
	{
		$criteria = array(
			'status' => Post::status('published'), 
			'content_type' => 'ad',
			'limit' => 1,
			'tag' => array(),
		);
 
		$block->posts = array();
 
		if(isset($theme->post)) {
			foreach($theme->post->tags as $tag) {
				$criteria['tag'][] = $tag;
			}
			if(count($theme->post->tags) > 0) {
				$block->posts = Posts::get($criteria);
			}
		}
 
		$block->criteria = $criteria;
	}
?>

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 4
drunkenmonkey.org 1
Is this paste spam?
<Hide