mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
Move tibiacom boxes to Twig templates
Yes they are looking and working same as before ;)
This commit is contained in:
@@ -7,15 +7,7 @@ if(PAGE !== 'news') {
|
||||
$poll = $db->query('SELECT `id`, `question` FROM `z_polls` WHERE end > ' . time() . ' ORDER BY `end` LIMIT 1');
|
||||
if($poll->rowCount() > 0) {
|
||||
$poll = $poll->fetch();
|
||||
?>
|
||||
<div id="CurrentPollBox" class="Themebox"
|
||||
style="background-image:url(<?php echo $template_path; ?>/images/themeboxes/current-poll/currentpollbox.gif);">
|
||||
<div id="CurrentPollText"><?php echo $poll['question']; ?></div>
|
||||
<a class="ThemeboxButton" href="<?php echo getLink('polls') . '/' . $poll['id']; ?>" onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" style="background-image:url(<?php echo $template_path; ?>/images/global/buttons/sbutton.gif);"><div class="BigButtonOver" style="background-image:url(<?php echo $template_path; ?>/images/global/buttons/sbutton_over.gif);"></div><div class="ButtonText" style="background-image:url(<?php echo $template_path; ?>/images/global/buttons/_sbutton_votenow.gif);"></div>
|
||||
</a>
|
||||
<div class="Bottom"
|
||||
style="background-image:url(<?php echo $template_path; ?>/images/general/box-bottom.gif);"></div>
|
||||
</div>
|
||||
<?php
|
||||
$twig->display('poll.html.twig', array(
|
||||
'poll' => $poll
|
||||
));
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user