# section one goes in the top of Page::print_custom_head() before the """ # mini cal # original images 20x20 pixels # background image for days with posts var string cal_active_bg = ""; # background image for days without posts var string cal_inactive_bg = ""; # year page # background image for days with posts var string ncal_active_bg = ""; # background image for days without posts var string ncal_inactive_bg = ""; var string cal_active = "background-color: $*comp_bgcolor;"; var string cal_inactive = "background-color: $*comp_bgcolor;"; var string ncal_active = "background-color: $*calendar_active;"; var string ncal_inactive = "background-color: $*calendar_inactive;"; $cal_active_bg = $cal_active_bg ? "background-image: url($cal_active_bg);" : ""; $cal_inactive_bg = $cal_inactive_bg ? "background-image: url($cal_inactive_bg);" : ""; $ncal_active_bg = $ncal_active_bg ? "background-image: url($ncal_active_bg);" : ""; $ncal_inactive_bg = $ncal_inactive_bg ? "background-image: url($ncal_inactive_bg);" : ""; # end section one
/* section two goes into the css declarations of Page::print_custom_head() */ /* mini cal */ .calendarInactive { $cal_inactive_bg background-repeat: no-repeat; background-position: center; $cal_inactive font-size: 9px; letter-spacing: 2px; color: $*calendar_fgcolor; text-align: center; } .calendarActive { $cal_active_bg background-repeat: no-repeat; background-position: center; color: $*calendar_link; $cal_active font-size: 9px; letter-spacing: 2px; text-align: center; } /* year page */ .NcalendarInactive { $ncal_inactive_bg background-repeat: no-repeat; background-position: center; color: $*calendar_fgcolor; $ncal_inactive font-size: 9px; letter-spacing: 2px; } .NcalendarActive { $ncal_active_bg background-repeat: no-repeat; background-position: center; color: $*calendar_link; $ncal_active font-size: 9px; letter-spacing: 2px; } /* end section two */
# this is a totally different function that handles the different css classes for the year page function YearWeek::print () { "<tr>"; if ($.pre_empty) { "<td colspan='$.pre_empty'> </td>"; } foreach var YearDay d ($.days) { if ($d.num_entries) { "<td width='26' valign='top' class='NcalendarActive'>"; } else { "<td width='26' valign='top' class='NcalendarInactive'>"; } "<b>$d.day</b>"; "<div align='center'>"; if ($d.num_entries) { """<a href="$d.url" class="NcalendarLink">$d.num_entries</a>"""; } else { " "; } "</div></td>"; } if ($.post_empty) { "<td colspan='$.post_empty' width='30'> </td>"; } "</tr>"; } # end totally different function
updated mini cal background image thingy
-
Custumizing the new spam button in the comment link bar
Hi everyone. LJ recently added a "spam" button in the comment linkbar. I use a tutorial to display my own images instead of the standard LJ buttons,…
-
Wanted: navigation bar square at the top, but with rounded corners at the bottom
Hello everyone! I hope that someone with a better understanding of coding tables might be able to help me out here. I'm using a component layout…
-
Entry links to images.
I've been using the tutorials, but I can't seem to fix this.. On my links for my entries, I can't seem to find Track this, so I can apply a picture…
- Post a new comment
- 15 comments
- Post a new comment
- 15 comments
-
Custumizing the new spam button in the comment link bar
Hi everyone. LJ recently added a "spam" button in the comment linkbar. I use a tutorial to display my own images instead of the standard LJ buttons,…
-
Wanted: navigation bar square at the top, but with rounded corners at the bottom
Hello everyone! I hope that someone with a better understanding of coding tables might be able to help me out here. I'm using a component layout…
-
Entry links to images.
I've been using the tutorials, but I can't seem to fix this.. On my links for my entries, I can't seem to find Track this, so I can apply a picture…