afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2010-03-02 04:32 pm

[dw-free] Styles: add CSS class when calendar is horizontal

[commit: http://hg.dwscoalition.org/dw-free/rev/c085de60a5d3]

http://bugs.dwscoalition.org/show_bug.cgi?id=2360

Add a wrapper div with class "calendar-horizontal" around horizontal
calendars.

Patch by [personal profile] ninetydegrees.

Files modified:
  • bin/upgrading/s2layers/core2.s2
--------------------------------------------------------------------------------
diff -r 0b30744ab665 -r c085de60a5d3 bin/upgrading/s2layers/core2.s2
--- a/bin/upgrading/s2layers/core2.s2	Tue Mar 02 10:29:53 2010 -0600
+++ b/bin/upgrading/s2layers/core2.s2	Tue Mar 02 16:32:01 2010 +0000
@@ -3716,6 +3716,7 @@ function print_module_calendar() {
 
     if ($*module_calendar_opts_type=="horizontal") {
         open_module("calendar","", "");
+        "<div class='calendar-horizontal'>";
         print $mon->month_format("%%month%%", true);
         foreach var YearWeek week ($mon.weeks) {
             foreach var YearDay day ($week.days) {
@@ -3728,6 +3729,7 @@ function print_module_calendar() {
             }
         }
         print $mon->month_format("%%yyyy%%", true);
+        "</div>";
         close_module();
     }
     else {
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org