public function types($post) {
if($post[0]->content_type== 1) {
$style= ' class="current"';
} else {
$style='';
}
echo '
Overview' . "\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 '' . ucfirst($type) . 's (' . $count . ')' . "\n";
}
}
if( $user->id < 3 ) {
echo 'Control Center';
}
}