kizu (ki_zu) wrote in changelog,
kizu
ki_zu
changelog

[ljcom] r7588: LJSUP-4774: bugfix

Committer: rkomarov
LJSUP-4774: bugfix

U   trunk/bin/upgrading/s2layers/sup/themes.s2
Modified: trunk/bin/upgrading/s2layers/sup/themes.s2
===================================================================
--- trunk/bin/upgrading/s2layers/sup/themes.s2	2009-08-21 10:14:14 UTC (rev 7587)
+++ trunk/bin/upgrading/s2layers/sup/themes.s2	2009-08-24 01:51:20 UTC (rev 7588)
@@ -202,9 +202,24 @@
 set active_theme = "x3";
 set friends_show_date = true;
 set recent_show_upic = true;
-set text_read_comments = "# // # // #";
 set theme_designer = "ruthenia_alba";
 
+function CommentInfo::print() {
+    var Page p = get_page();
+    if ($.show_readlink) {
+        """<li class="comments"><a href="$.read_url" class="btn btn-comments"><span><span><span>$.count</span></span></span></a></li>""";
+    }
+    if ($.show_postlink) {
+        """<li class="postcomment">""";
+        if ($.maxcomments) {
+            print safe """<span class="btn btn-comment"><span><span><span>$*text_max_comments</span></span></span></span>""";
+        } else {
+            """<a href="$.post_url" class="btn btn-comment"><span><span><span>"""+($p.view == "friends" ? $*text_post_comment_friends : $*text_post_comment)+"</span></span></span></a>";
+        }
+        "</li>";
+    }
+}
+
 #NEWLAYER: sup/10y-penguins
 layerinfo "type" = "theme";
 layerinfo "name" = "Penguins";

Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments