From 04a254d94a2dcebbfe767adad241d92eb913d4b2 Mon Sep 17 00:00:00 2001 From: marijus Date: Wed, 15 Oct 2014 22:23:38 +0200 Subject: [PATCH] some work on single photo view comments --- mod/photos.php | 3 ++- view/tpl/photo_item.tpl | 41 +++++++++++++++++++++++------------------ view/tpl/photo_view.tpl | 4 ++++ 3 files changed, 29 insertions(+), 19 deletions(-) diff --git a/mod/photos.php b/mod/photos.php index 41aae0ec3..56e63237e 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -1087,7 +1087,7 @@ function photos_content(&$a) { } if($can_post || $can_comment) { - $comments .= replace_macros($cmnt_tpl,array( + $commentbox = replace_macros($cmnt_tpl,array( '$return_path' => '', '$jsreload' => $return_url, '$type' => 'wall-comment', @@ -1129,6 +1129,7 @@ function photos_content(&$a) { '$like' => $like_e, '$dislike' => $dislike_e, '$comments' => $comments, + '$commentbox' => $commentbox, '$paginate' => $paginate, )); diff --git a/view/tpl/photo_item.tpl b/view/tpl/photo_item.tpl index e7d25fd55..16f9a76c2 100755 --- a/view/tpl/photo_item.tpl +++ b/view/tpl/photo_item.tpl @@ -1,22 +1,27 @@ -
-
- - {{$name}} -
+
+
+
+
+ + {{$name}} +
+
+
+
+ {{$name}} +
+
{{$ago}}
+
+
+
{{$title}}
+
{{$body}}
+
+ {{$drop}} +
-
- {{$name}} -
{{$ago}}
-
-
-
{{$title}}
-
{{$body}}
-
- {{$drop}} -
-
- {{$comment}} + {{$comment}} -
+
+
diff --git a/view/tpl/photo_view.tpl b/view/tpl/photo_view.tpl index f895b3129..4a9c0dfe8 100755 --- a/view/tpl/photo_view.tpl +++ b/view/tpl/photo_view.tpl @@ -92,6 +92,10 @@ {{$comments}} +
+ {{$commentbox}} +
+
{{if $nextlink}}{{/if}}