mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00

* added networks (facebook and twitter) and highscores (top 5) boxes to tibiacom template, configurable in templates/tibiacom/config.php * fixed polls box in tibiacom template * (internal) moved tibiacom boxes to separate directory * (internal) renamed constant TICKET -> TICKER
22 lines
1.1 KiB
PHP
22 lines
1.1 KiB
PHP
<?php
|
|
|
|
if(PAGE != 'news') {
|
|
return;
|
|
}
|
|
|
|
$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
|
|
}
|
|
?>
|