mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
* added featured article to tibiacom template (you can add them with add news button)
* 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
This commit is contained in:
18
templates/tibiacom/boxes/gallery.php
Normal file
18
templates/tibiacom/boxes/gallery.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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; ?>
|
Reference in New Issue
Block a user