diff options
author | dartcafe <github@dartcafe.de> | 2017-10-24 13:15:00 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2017-10-24 13:15:00 +0300 |
commit | a63ef8cf6328ee482752b11a375aef2110d89b5f (patch) | |
tree | 0284b75d173d85238d643536ede38998244e66ae /templates | |
parent | e73c6be16e433996d17629d5a0c56e9d46fba0db (diff) |
Updates
Diffstat (limited to 'templates')
-rw-r--r-- | templates/goto.tmpl.php | 18 |
1 files changed, 10 insertions, 8 deletions
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' => <thead> <?php if ($poll->getType() == '0') { - print_unescaped('<tr id="time-slots-header"><th class="first_header_cell" colspan="3"></th>'); - foreach ($dates as $el) { + print_unescaped('<tr id="time-slots-header">'); + } else { + print_unescaped('<tr id="vote-options-header">'); + } + print_unescaped('<th class="first_header_cell" colspan="3"></th>'); + foreach ($dates as $el) { + if ($poll->getType() == '0') { $datavalue = strtotime($el->getDt()); - print_unescaped('<th id="slot-' . $datavalue . '" title="' . $el->getDt() . ' '.date_default_timezone_get().'" class="time-slot" data-value="' . $datavalue . '" value="' . $el->getDt() . '">'); + print_unescaped('<th id="slot-' . $datavalue . '" title="' . $el->getDt() . ' ' . date_default_timezone_get() . '" class="time-slot" data-value="' . $datavalue . '" value="' . $el->getDt() . '">'); print_unescaped('<div class="month">' . $l->t(date('M', $datavalue)) . '</div>'); print_unescaped('<div class="day">' . date('j', $datavalue) . '</div>'); print_unescaped('<div class="dayow">' . $l->t(date('D', $datavalue)) . '</div>'); print_unescaped('<div class="time">' . date('G:i', $datavalue) . ' UTC</div>'); print_unescaped('</th>'); - } - } else { - print_unescaped('<tr id="vote-options-header"><th class="first_header_cell" colspan="3"></th>'); - foreach ($dates as $el) { - print_unescaped('<th title="' . preg_replace('/_\d+$/', '', $el->getText()) . '" class="vote-option">' . preg_replace('/_\d+$/', '', $el->getText()) . '</th>'); + } else { + print_unescaped('<th title="' . preg_replace('/_\d+$/', '', $el->getText()) . '" class="vote-option">' . preg_replace('/_\d+$/', '', $el->getText()) . '</th>'); } } print_unescaped('</tr>'); |