* renamed screenshots to gallery and movies to videos

This commit is contained in:
slawkens
2017-10-16 09:25:26 +02:00
parent 3fef1a6eec
commit dd572b00d0
23 changed files with 206 additions and 177 deletions

View File

@@ -17,7 +17,7 @@ defined('MYAAC') or die('Direct access not allowed!');
if(in_array(PAGE, array('news', 'newsarchive')))
echo 'news';
elseif(in_array(PAGE, array('creatures', 'spells', 'serverinfo', 'downloads', 'commands',
'movies', 'screenshots', 'experiencetable', 'faq')))
'videos', 'gallery', 'experiencetable', 'faq')))
echo 'library';
elseif(in_array(PAGE, array('online', 'characters', 'guilds', 'highscores', 'wars', 'lastkills', 'houses', 'bans',
'forum', 'team')))
@@ -134,9 +134,9 @@ defined('MYAAC') or die('Direct access not allowed!');
<span class="separator"></span>
<a href="<?php echo getLink('commands'); ?>">Commands</a>
<span class="separator"></span>
<a href="<?php echo getLink('movies'); ?>">Movies</a>
<a href="<?php echo getLink('videos'); ?>">Videos</a>
<span class="separator"></span>
<a href="<?php echo getLink('screenshots'); ?>">Screenshots</a>
<a href="<?php echo getLink('gallery'); ?>">Gallery</a>
<span class="separator"></span>
<a href="<?php echo getLink('experienceTable'); ?>">Experience Table</a>
<span class="separator"></span>

View File

@@ -712,7 +712,7 @@ img {
#Themeboxes #JobBox {
height: 164px;
}
#Themeboxes #ScreenshotBox #ScreenshotContent {
#Themeboxes #GalleryBox #GalleryContent {
position: relative;
height: 111px;
width: 170px;

View File

@@ -4,9 +4,10 @@ $config['lightborder'] = "#F1E0C6";
$config['vdarkborder'] = "#505050";
$config['news_title_color'] = "white";
$config['logo_monster'] = "Elder Beholder";
#List: newcomer,screenshots,premium,poll
$config['boxes'] = "newcomer,screenshots";
// separated by comma
// List: newcomer,gallery,premium,poll
$config['boxes'] = "newcomer,gallery";
$config['background_image'] = "background-artwork-860.jpg";
$config['logo_image'] = "tibia-logo-artwork-top.gif";
$config['screenshot'] = "demon";
$config['gallery_image'] = 1;
?>

View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@@ -560,19 +560,19 @@ if(isset($config['freehouses'])): ?>
endif;
?>
<a href="<?php echo getLink('screenshots'); ?>">
<div id='submenu_screenshots' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
<a href="<?php echo getLink('gallery'); ?>">
<div id='submenu_gallery' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
<div class='LeftChain' style='background-image:url(<?php echo $template_path; ?>/images/general/chain.gif);'></div>
<div id='ActiveSubmenuItemIcon_screenshots' class='ActiveSubmenuItemIcon' style='background-image:url(<?php echo $template_path; ?>/images/menu/icon-activesubmenu.gif);'></div>
<div class='SubmenuitemLabel'>Screenshots</div>
<div id='ActiveSubmenuItemIcon_gallery' class='ActiveSubmenuItemIcon' style='background-image:url(<?php echo $template_path; ?>/images/menu/icon-activesubmenu.gif);'></div>
<div class='SubmenuitemLabel'>Gallery</div>
<div class='RightChain' style='background-image:url(<?php echo $template_path; ?>/images/general/chain.gif);'></div>
</div>
</a>
<a href="<?php echo getLink('movies'); ?>">
<div id='submenu_movies' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
<a href="<?php echo getLink('videos'); ?>">
<div id='submenu_videos' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'>
<div class='LeftChain' style='background-image:url(<?php echo $template_path; ?>/images/general/chain.gif);'></div>
<div id='ActiveSubmenuItemIcon_movies' class='ActiveSubmenuItemIcon' style='background-image:url(<?php echo $template_path; ?>/images/menu/icon-activesubmenu.gif);'></div>
<div class='SubmenuitemLabel'>Movies</div>
<div id='ActiveSubmenuItemIcon_videos' class='ActiveSubmenuItemIcon' style='background-image:url(<?php echo $template_path; ?>/images/menu/icon-activesubmenu.gif);'></div>
<div class='SubmenuitemLabel'>Videos</div>
<div class='RightChain' style='background-image:url(<?php echo $template_path; ?>/images/general/chain.gif);'></div>
</div>
</a>
@@ -756,13 +756,19 @@ if($logged):
<div class="Bottom" style="background-image:url(<?php echo $template_path; ?>/images/general/box-bottom.gif);"></div>
</div>
<?php endif; ?>
<?php if(PAGE == 'news' && in_array("screenshots", $config['boxes'])): ?>
<div id="ScreenshotBox" class="Themebox" style="background-image:url(<?php echo $template_path; ?>/images/themeboxes/screenshot/screenshotbox.gif);">
<a href="?subtopic=screenshots&screenshot=<?php echo $config['screenshot']; ?>" >
<img id="ScreenshotContent" class="ThemeboxContent" src="images/screenshots/<?php echo $config['screenshot']; ?>_thumb.gif" alt="Screenshot of the Day" />
<?php
if(PAGE == 'news' && in_array("gallery", $config['boxes'])):
$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>
<?php endif; ?>
<?php endif; ?>
<?php if(PAGE == 'news' && in_array("poll", $config['boxes'])):
$poll = $db->query('SELECT id, question FROM '.$db->tableName(TABLE_PREFIX . 'polls') . ' WHERE end > ' . time() . ' ORDER BY end LIMIT 1');