Pastoid

Blocks/Areas

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

This paste was last updated on April 19, 2009 at 12:56 pm.

Pasted Coderaw

	public function area($area)
	{
		$blocks = array(
			'sidebar' => array(
				0 => array(
					'name'=>'Twitter',
					'theme_function'=>'twitter',
					'params'=>array(),
				),
			),
		);
		$this->area = $area;
 
		$begin = '';
		$begin = Plugins::filter('area_begin', $begin, $area, $this);
 
		foreach($blocks[$area] as $block) {
			$params = $block['params'];
			$this->block = $block['name'];
			call_user_func_array(array($this, $block['theme_function']), $params);
		}
		$this->area = '';
		$this->block = '';
 
		$end = '';
		$end = Plugins::filter('area_end', $end, $area, $this);
	}
 
 

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 9
search.live.com 2
drunkenmonkey.org 1
Is this paste spam?
<Hide