Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-38896 theme_bootstrapbase: Abbreviated weekdays in calendar/rende…

…rer.php + added @media css rule for calendar view.
commit 310845b92d530eeaf9e19911e6682363d420d874 1 parent cf5a329
@lazydaisy lazydaisy authored
View
14 calendar/renderer.php
@@ -461,13 +461,13 @@ public function show_month_detailed(calendar_information $calendar, moodle_url $
$dayweek = $startwday;
// Create an array of all the week days.
- $wdays = array(0 => '<strong>'. get_string('sunday', 'calendar'). '</strong>',
- 1 => '<strong>'. get_string('monday', 'calendar'). '</strong>',
- 2 => '<strong>'. get_string('tuesday', 'calendar'). '</strong>',
- 3 => '<strong>'. get_string('wednesday', 'calendar'). '</strong>',
- 4 => '<strong>'. get_string('thursday', 'calendar'). '</strong>',
- 5 => '<strong>'. get_string('friday', 'calendar'). '</strong>',
- 6 => '<strong>'. get_string('saturday', 'calendar'). '</strong>');
+ $wdays = array(0 => '<strong>'. get_string('sun', 'calendar'). '</strong>',
+ 1 => '<strong>'. get_string('mon', 'calendar'). '</strong>',
+ 2 => '<strong>'. get_string('tue', 'calendar'). '</strong>',
+ 3 => '<strong>'. get_string('wed', 'calendar'). '</strong>',
+ 4 => '<strong>'. get_string('thu', 'calendar'). '</strong>',
+ 5 => '<strong>'. get_string('fri', 'calendar'). '</strong>',
+ 6 => '<strong>'. get_string('sat', 'calendar'). '</strong>');
// Loop only if the day offset is greater than 0.
// This loop involves shifting the days around until the desired start day
View
7 theme/bootstrapbase/less/moodle/calendar.less
@@ -184,3 +184,10 @@
.block .content h3.eventskey {
margin-top: 0.5em;
}
+@media (min-width: 768px) {
+
+ #page-calender-view .container fluid {
+ min-width: 1024px;
+ }
+
+}
Please sign in to comment.
Something went wrong with that request. Please try again.