function get_content() { $param['page'] = 1; $param['show'] = 20; // get recent 20 contents $condition = 'type = ' . BLOGPOST . ' AND author_id = ' . $_SESSION['user']['id']; $content = CNContent::get($param, $condition); return $content; }