From a63ef8cf6328ee482752b11a375aef2110d89b5f Mon Sep 17 00:00:00 2001 From: dartcafe Date: Tue, 24 Oct 2017 12:15:00 +0200 Subject: Updates --- templates/goto.tmpl.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'templates') diff --git a/templates/goto.tmpl.php b/templates/goto.tmpl.php index 6abcdf03..60c45908 100644 --- a/templates/goto.tmpl.php +++ b/templates/goto.tmpl.php @@ -102,21 +102,23 @@ $pollUrl = $urlGenerator->linkToRouteAbsolute('polls.page.goto_poll', ['hash' => getType() == '0') { - print_unescaped(''); - foreach ($dates as $el) { + print_unescaped(''); + } else { + print_unescaped(''); + } + print_unescaped(''); + foreach ($dates as $el) { + if ($poll->getType() == '0') { $datavalue = strtotime($el->getDt()); - print_unescaped(''); + print_unescaped(''); print_unescaped('
' . $l->t(date('M', $datavalue)) . '
'); print_unescaped('
' . date('j', $datavalue) . '
'); print_unescaped('
' . $l->t(date('D', $datavalue)) . '
'); print_unescaped('
' . date('G:i', $datavalue) . ' UTC
'); print_unescaped(''); - } - } else { - print_unescaped(''); - foreach ($dates as $el) { - print_unescaped('' . preg_replace('/_\d+$/', '', $el->getText()) . ''); + } else { + print_unescaped('' . preg_replace('/_\d+$/', '', $el->getText()) . ''); } } print_unescaped(''); -- cgit v1.2.3