/** * Get image comments section. * * @param Model_Image $image * @param string $route * @return View_Generic_Comments */ public function section_image_comments(Model_Image $image, $route = 'gallery_image_comment') { $section = new View_Generic_Comments($image->comments(self::$user)); $section->delete = Route::url($route, array('id' => '%d', 'commentaction' => 'delete')) . '?token=' . Security::csrf(); $section->private = false; return $section; }