--- ../git/horde/kronolith/templates/index/week.inc 2011-02-22 17:57:00.000000000 +0100 +++ kronolith/templates/index/week.inc 2011-09-15 16:31:25.000000000 +0200 @@ -52,7 +52,7 @@ <table class="kronolithView kronolithViewDay"> <tbody id="kronolithViewWeekBody"> <?php for ($i = 0; $i < 24; $i++): ?> - <tr<?php if ($i < 9 || $i > 19) echo ' class="kronolithNight"' ?>> + <tr<?php if ($i < ($prefs->getValue('day_hour_start') / $prefs->getValue('slots_per_hour')) || $i > ($prefs->getValue('day_hour_end') / $prefs->getValue('slots_per_hour'))) echo ' class="kronolithNight"' ?>> <td class="kronolithFirstCol"><span><?php echo $ampm ? ($i % 12 ? ($i % 12): 12) : $i ?>:00</span></td> <td<?php if ($w == 6 || $w == 0) echo ' class="kronolithWeekend"' ?>> </td> <td<?php if ($w == 5 || $w == 6) echo ' class="kronolithWeekend"' ?>> </td> --- ../git/horde/kronolith/templates/index/day.inc 2011-02-22 17:57:00.000000000 +0100 +++ kronolith/templates/index/day.inc 2011-09-15 16:35:33.000000000 +0200 @@ -37,7 +37,7 @@ <table class="kronolithView kronolithViewDay"> <tbody id="kronolithViewDayBody"> <?php for ($i = 0; $i < 24; $i++): ?> - <tr<?php if ($i < 9 || $i > 19) echo ' class="kronolithNight"' ?>> + <tr<?php if ($i < ($prefs->getValue('day_hour_start') / $prefs->getValue('slots_per_hour')) || $i > ($prefs->getValue('day_hour_end') / $prefs->getValue('slots_per_hour'))) echo ' class="kronolithNight"' ?>> <td class="kronolithFirstCol"><span><?php echo $ampm ? ($i % 12 ? ($i % 12): 12) : $i ?>:00</span></td> <td> </td> </tr>