From 46a503e38310674787f469bb555e217b39f2eb0b Mon Sep 17 00:00:00 2001 From: Daniel Thee Roperto Date: Mon, 12 Sep 2016 18:32:16 +1000 Subject: [PATCH] Issue #28 - Inverted warning bar texts -- focus on countdown. --- renderer.php | 4 ++-- views/warningbar.css | 2 +- views/warningbar.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/renderer.php b/renderer.php index b6d023a..ebb84d7 100644 --- a/renderer.php +++ b/renderer.php @@ -168,7 +168,7 @@ class auth_outage_renderer extends plugin_renderer_base { * Renders the warning bar. * @param outage $outage The outage to show in the warning bar. * @return string HTML of the warning bar. - * @SuppressWarnings("unused") because $message is used inside require(...) + * @SuppressWarnings("unused") because $countdown is used inside require(...) */ public function renderoutagebar(outage $outage) { global $CFG; @@ -176,7 +176,7 @@ class auth_outage_renderer extends plugin_renderer_base { $start = userdate($outage->starttime, get_string('strftimedatetimeshort')); $stop = userdate($outage->stoptime, get_string('strftimedatetimeshort')); - $message = get_string( + $countdown = get_string( $outage->is_ongoing() ? 'messageoutageongoing' : 'messageoutagewarning', 'auth_outage', ['start' => $start, 'stop' => $stop] diff --git a/views/warningbar.css b/views/warningbar.css index 67a68b6..8258bdd 100644 --- a/views/warningbar.css +++ b/views/warningbar.css @@ -22,7 +22,7 @@ If you need to make chances here, remember to update your settings inside Moodle color: #a00000; } -.auth_outage_warningbar_box_title { +.auth_outage_warningbar_box_countdown { font-size: 200%; font-weight: bold; margin: 10px 0; diff --git a/views/warningbar.php b/views/warningbar.php index 3638823..e41f1d8 100644 --- a/views/warningbar.php +++ b/views/warningbar.php @@ -36,9 +36,9 @@ echo html_writer::tag('style',
-
get_title(); ?>
+
- + get_title(); ?> [