public function index()
{
$posts = Post::type($this->type)->get();
if ($this->type == 'post') {
$title = trans('cms.posts');
} else {
$title = trans('cms.pages');
}
$this->layout->title = $title;
$this->layout->content = View::make($this->link_type . '.' . $this->current_theme . '.posts.index')->with('posts', $posts);
}