add p-name and u-url
authorChristian Weiske <cweiske@cweiske.de>
Wed, 10 Aug 2016 19:56:26 +0000 (21:56 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 10 Aug 2016 19:56:26 +0000 (21:56 +0200)
data/templates/post-like.htm
data/templates/post-reply.htm
www/comment.php

index f02d1fc..ede0db0 100644 (file)
@@ -11,7 +11,7 @@
     <img class="u-photo" src="{{author.imageurl}}" alt="" width="32" height="32" />
     {{author.name}}</a>
    {% endspaceless %}
-   likes
+   <a href="{{postUrl}}" class="u-url">likes</a>
    <a rel="u-like-of"
       href="{{attribute(json, 'like-of').0}}">{{attribute(json, 'like-of').0}}</a>.
   </p>
index 24c2769..e7deba7 100644 (file)
     <img class="u-photo" src="{{author.imageurl}}" alt="" width="32" height="32" />
     {{author.name}}</a>
    {% endspaceless %}
-   wrote the following reply to
+   <a href="{{postUrl}}" class="u-url">wrote</a>
+   the following reply to
    <a rel="in-reply-to u-in-reply-to"
       href="{{attribute(json, 'in-reply-to').0}}">{{attribute(json, 'in-reply-to').0}}</a>:
   </p>
-  <div class="e-content">{{htmlContent|raw}}</div>
+  <div class="e-content p-name">{{htmlContent|raw}}</div>
   <p>
    <a href="{{replyUrl}}">Reply to this comment</a>
   </p>
index 43dbd2e..beaad96 100644 (file)
@@ -38,8 +38,10 @@ $vars = array(
         'url'  => Urls::full(Urls::user($rowUser->user_id)),
         'imageurl' => Urls::userImg($rowUser),
     ),
+    'postUrl' => Urls::full(Urls::comment($rowComment->comment_id)),
     'replyUrl' => Urls::full(
-        '/reply.php?url=' . urlencode(Urls::full($rowComment->comment_id))
+        '/reply.php?url='
+        . urlencode(Urls::full(Urls::comment($rowComment->comment_id)))
     ),
 );