Navigation Menu

Skip to content

Commit

Permalink
MDL-38896 theme_bootstrapbase: Abbreviated weekdays in calendar/rende…
Browse files Browse the repository at this point in the history
…rer.php + added @media css rule for calendar view.
  • Loading branch information
Mary Evans committed Apr 26, 2013
1 parent cf5a329 commit 310845b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
14 changes: 7 additions & 7 deletions calendar/renderer.php
Expand Up @@ -461,13 +461,13 @@ public function show_month_detailed(calendar_information $calendar, moodle_url $
$dayweek = $startwday; $dayweek = $startwday;


// Create an array of all the week days. // Create an array of all the week days.
$wdays = array(0 => '<strong>'. get_string('sunday', 'calendar'). '</strong>', $wdays = array(0 => '<strong>'. get_string('sun', 'calendar'). '</strong>',
1 => '<strong>'. get_string('monday', 'calendar'). '</strong>', 1 => '<strong>'. get_string('mon', 'calendar'). '</strong>',
2 => '<strong>'. get_string('tuesday', 'calendar'). '</strong>', 2 => '<strong>'. get_string('tue', 'calendar'). '</strong>',
3 => '<strong>'. get_string('wednesday', 'calendar'). '</strong>', 3 => '<strong>'. get_string('wed', 'calendar'). '</strong>',
4 => '<strong>'. get_string('thursday', 'calendar'). '</strong>', 4 => '<strong>'. get_string('thu', 'calendar'). '</strong>',
5 => '<strong>'. get_string('friday', 'calendar'). '</strong>', 5 => '<strong>'. get_string('fri', 'calendar'). '</strong>',
6 => '<strong>'. get_string('saturday', 'calendar'). '</strong>'); 6 => '<strong>'. get_string('sat', 'calendar'). '</strong>');


// Loop only if the day offset is greater than 0. // Loop only if the day offset is greater than 0.
// This loop involves shifting the days around until the desired start day // This loop involves shifting the days around until the desired start day
Expand Down
7 changes: 7 additions & 0 deletions theme/bootstrapbase/less/moodle/calendar.less
Expand Up @@ -184,3 +184,10 @@
.block .content h3.eventskey { .block .content h3.eventskey {
margin-top: 0.5em; margin-top: 0.5em;
} }
@media (min-width: 768px) {

#page-calender-view .container fluid {
min-width: 1024px;
}

}

0 comments on commit 310845b

Please sign in to comment.