madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[ljcom] r12915: LJSV-1557: Links in links list do not ha...

Committer: sbelyaev
LJSV-1557: Links in links list do not have rel=nofollow
U   trunk/bin/upgrading/s2layers/sup/layout.s2
Modified: trunk/bin/upgrading/s2layers/sup/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/sup/layout.s2	2012-11-19 08:54:42 UTC (rev 12914)
+++ trunk/bin/upgrading/s2layers/sup/layout.s2	2012-11-19 13:07:48 UTC (rev 12915)
@@ -802,6 +802,8 @@
     var Page p=get_page();
     var UserLink[] links = $p.linklist;
     var bool Open=false;
+    var string nofollow = "";
+    
     foreach var UserLink link ($links) {
         if ($link.is_heading) {
             if ($Open) {
@@ -826,7 +828,7 @@
             if ($link.title->starts_with("http://") and ($link.title->ends_with(".jpg") or $link.title->ends_with(".png") or $link.title->ends_with(".gif"))) {
                 """<dd class="img"><a href="$link.url"><img src="$link.title" alt="" /></a></dd>""";
             } else {
-                """<dd><a href="$link.url">$link.title</a></dd>""";
+                """<dd><a href="$link.url" $link.attributes>$link.title</a></dd>""";
             }
 
         }

Tags: ljcom, madeon, s2, sbelyaev
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