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
19 lines
726 B
PHP
19 lines
726 B
PHP
<?php
|
|
|
|
if(PAGE != 'news') {
|
|
return;
|
|
}
|
|
|
|
$query = $db->query('SELECT `thumb` FROM `' . TABLE_PREFIX . 'gallery` WHERE `id` = ' . $db->quote($config['gallery_image']));
|
|
if($query->rowCount() == 1):
|
|
$image = $query->fetch();
|
|
?>
|
|
<div id="GalleryBox" class="Themebox" style="background-image:url(<?php echo $template_path; ?>/images/themeboxes/gallery/gallerybox.gif);">
|
|
<a href="?subtopic=gallery&image=<?php echo $config['gallery_image']; ?>" >
|
|
<img id="GalleryContent" class="ThemeboxContent" src="<?php echo $image['thumb']; ?>" alt="Screenshot of the Day" />
|
|
</a>
|
|
<div class="Bottom" style="background-image:url(<?php echo $template_path; ?>/images/general/box-bottom.gif);"></div>
|
|
</div>
|
|
<br/><br/><br/>
|
|
<?php endif; ?>
|