mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-08 20:49:13 -04:00
Redesign the way that we consider page types to create buckets of page
types, and a subtype for specifics. Currently the top level bucket collection, item, other Here are the core subtypes so far: collection: album, search, tag item: movie, photo other: login, reset, comment-fragment, comment It's legal to create new page_subtypes whenever you want. Use the appropriate page_type to get the coarse grain behavior that you want.
This commit is contained in:
@@ -47,7 +47,7 @@ class Comments_Controller extends REST_Controller {
|
||||
break;
|
||||
|
||||
case "html":
|
||||
$view = new Theme_View("comments.html", "page");
|
||||
$view = new Theme_View("comments.html", "other", "comment");
|
||||
$view->comments = $comments;
|
||||
print $view;
|
||||
break;
|
||||
@@ -130,7 +130,7 @@ class Comments_Controller extends REST_Controller {
|
||||
"created" => $comment->created,
|
||||
"text" => nl2br(html::purify($comment->text)))));
|
||||
} else {
|
||||
$view = new Theme_View("comment.html", "fragment");
|
||||
$view = new Theme_View("comment.html", "other", "comment-fragment");
|
||||
$view->comment = $comment;
|
||||
print $view;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user