yokcel (yokcel) wrote in changelog,
yokcel
yokcel
changelog

[ljcom] r11693: LJSUP-11767: Add to page with entries by...

Committer: ybuhvalova
LJSUP-11767: Add to page with entries by tag title with tags names
U   trunk/bin/upgrading/s2layers/sup/layout.s2
Modified: trunk/bin/upgrading/s2layers/sup/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/sup/layout.s2	2012-04-11 10:56:30 UTC (rev 11692)
+++ trunk/bin/upgrading/s2layers/sup/layout.s2	2012-04-11 11:58:32 UTC (rev 11693)
@@ -1326,6 +1326,28 @@
 }
 
 function RecentPage::print_body {
+
+    if ($.tagfilter_active and $*show_title_on_tagpage) {
+
+        var string delim = $*text_entries_bytag_or;
+        if($.tagfilter_mode == "and"){
+            $delim = $*text_entries_bytag_and;
+        }
+       
+       var string tagpage_header = get_plural_phrase(size( $.tagfilter_tags), "text_entries_bytag");
+ 
+        """<h3 class="tag-page-header">$tagpage_header: """;
+            var int counter = 0;
+            foreach var Tag tag ($.tagfilter_tags) {
+                $counter++;
+                """$tag.name""";
+                if($counter < size($.tagfilter_tags)){
+                    """ $delim """;          
+                }
+            }
+        """</h3>""";
+    } 
+
     if ($*sticky_post!="" and $*exact_view == "recent_first") {
         var string corners1 = "";
         var string corners1_2 = "";

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