kizu (ki_zu) wrote in changelog,
kizu
ki_zu
changelog

[ljcom] r7598: LJSUP-4788L adding Cardboard theme to Mi...

Committer: rkomarov
LJSUP-4788L adding Cardboard theme to Minimalism

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-26 09:13:24 UTC (rev 7597)
+++ trunk/bin/upgrading/s2layers/sup/themes.s2	2009-08-26 09:14:19 UTC (rev 7598)
@@ -431,3 +431,54 @@
         "</li>";
     }
 }
+
+
+#NEWLAYER: sup/10y-cardboard
+layerinfo "type" = "theme";
+layerinfo "name" = "10y-Cardboard";
+layerinfo "redist_uniq" = "sup/10y-cardboard";
+set theme_css = "10y-cardboard.css";
+set active_theme = "";
+set friends_show_date = true;
+
+function _summary(Entry[] entries) {
+    var Page p=get_page();
+"""
+    <ul>
+""";
+    foreach var Entry e ($entries) {
+        """<li>""";
+            if (($p.journal.username == $e.journal.username) and $p.view == "recent" and $p.journal_type == "C") {
+                print _user_print($e.poster,"microformatted");
+                """ — """;
+            } elseif ($p.journal.username != $e.journal.username or $p.view == "friends") {
+                print _user_print($e.journal,"microformatted");
+                """ — """;
+            }
+            """<a href="#post-$e.journal.username-$e.itemid">""";
+                print ($e.subject != "") ? striphtml($e.subject) : $*text_nosubject;
+            """</a>""";
+                print ($e.comments.count > 0 ? """ <a href="$e.permalink_url" class="btn-comments"><span>$e.comments.count</span></a>""":"");
+        """</li>""";
+    }
+"""
+    </ul>
+""";
+    }
+
+function CommentInfo::print() {
+    var Page p = get_page();
+    var string text_count = get_plural_phrase($.count,"text_read_comments");
+    if ($.show_readlink) {
+        """<li class="comments"><a href="$.read_url" class="btn btn-comments"><span>$text_count</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>";
+    }
+}

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