Pastoid

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

This paste was last updated on March 10, 2009 at 2:43 pm.

Pasted Coderaw

	public function types($post) {
		if($post[0]->content_type== 1) {
			$style= ' class="current"';
		} else {
			$style='';
		}
 
		echo '<li><a href="' . Site::get_url('habari') . '" title="Home"' . $style .'>Overview</a></li>' . "\n";
		foreach( Post::list_active_post_types() as $type => $id ) {
			$where= '';
			$count= '';
			if( $id > 2 ) {
				$count= count(Posts::get(array('content_type' => $type )));
				if( $post[0]->content_type == $id ) {
					$where= 'class="current"';	
				} else {
					$where= '';
				}
				echo '<li><a href="' . Site::get_url('habari') . '/' . $type . 's" title="' . ucfirst($type) . 's" ' . $where . '>' . ucfirst($type) . 's (' . $count . ')</a></li>' . "\n";
			}
		}
			if( $user->id < 3 ) {
				echo '<li><a href="' . URL::get('admin') . '" title="admin area">Control Center</a></li>';
			}
	}

Toggle wordwrap

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