alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[ljcom] r10517: LJSUP-8689: Donate button

Committer: afedorov
LJSUP-8689: Donate button

U   trunk/bin/upgrading/s2layers/voxhtml/layout.s2
Modified: trunk/bin/upgrading/s2layers/voxhtml/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/voxhtml/layout.s2	2011-05-18 04:16:24 UTC (rev 10516)
+++ trunk/bin/upgrading/s2layers/voxhtml/layout.s2	2011-05-18 07:42:57 UTC (rev 10517)
@@ -2148,12 +2148,18 @@
     };
 
     foreach var string link_key ($.link_keyseq) {
-        $link = $this->get_link($link_key);
-        if (defined $link) {
-            $url = $link.url;
-            $text = $link_caption{$link_key} != "" ? $link_caption{$link_key} : $link.caption;
-            print safe """<li class="asset-meta-comments item asset-meta-no-comments"><a href="$url">$text</a></li>""";  
-            $link->print_raw();
+        if ($link_key == "give_button") {
+            print safe """<li class="asset-meta-comments item asset-meta-no-comments">""";
+            print $this->get_give_button("string");
+            print safe """</li>""";
+        } else {
+            $link = $this->get_link($link_key);
+            if (defined $link) {
+                $url = $link.url;
+                $text = $link_caption{$link_key} != "" ? $link_caption{$link_key} : $link.caption;
+                print safe """<li class="asset-meta-comments item asset-meta-no-comments"><a href="$url">$text</a></li>""";  
+                $link->print_raw();
+            }
         }
     }
     print """<li class="asset-meta-comments item asset-meta-no-comments"><a href="$.permalink_url">$*text_permalink</a></li>""";

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