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 f02d1fcf13c7911740c1188337cb0cd9fa455372..ede0db0ae9f63ce6b2a0b56236046ffb84de0528 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 24c2769b1ff9c5f05ce99759a7f6cef33b8e6fd5..e7deba7cd4df63fbe3271a9fb7b40aea41524803 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 43dbd2eb76495eea0f7eb4147f46d145da8f5d8c..beaad9646510f850394067e7d1e54ab1ab2a4e8e 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)))
     ),
 );