Савинцев Егор 🚶 (savintsev_egor) wrote in changelog,
Савинцев Егор 🚶
savintsev_egor
changelog

[livejournal] r18402: LJSUP-7758: AntiSpam S2

Committer: esavintcev
LJSUP-7758: AntiSpam S2
U   trunk/bin/upgrading/s2layers/punquin/layout.s2
Modified: trunk/bin/upgrading/s2layers/punquin/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/punquin/layout.s2	2011-02-24 11:02:38 UTC (rev 18401)
+++ trunk/bin/upgrading/s2layers/punquin/layout.s2	2011-02-24 11:20:43 UTC (rev 18402)
@@ -216,6 +216,9 @@
   property string datetime_comments_format {
         des = "Date and time format for comments";
   }
+  property use text_showspam;
+  property use text_hidespam;
+  property use text_spam_comment;
 }
 set text_gotop = "Go to Top";
 set text_left_comments = "(";
@@ -664,6 +667,18 @@
         print safe "$*text_left_comments";
         if ($.show_readlink) {
             $this->print_readlink();
+            if ($p.view == "entry") {
+                if (clean_url($*img_btwn_comments) != "") {
+                    """ <img src="$*img_btwn_comments" alt="" /> """;
+                } else {
+                    print safe "$*text_btwn_comments";
+                }
+                if ($p.showspam) {
+                    print safe """<a href=\"$.read_spam_url\">$*text_hidespam</a> """;
+                } else {
+                    print safe """<a href=\"$.read_spam_url\">$*text_showspam</a>""";
+                }
+            }
         }
         if ($.show_postlink and $.show_readlink) {
             if (clean_url($*img_btwn_comments) != "") {

Tags: livejournal, s2, savintsev_egor
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