<!DOCTYPE html>

<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8">
	<meta name="title" content="<?php echo $page_info->metatitle; ?>">
	<meta name="description" content="<?php echo $page_info->description; ?>">
	<meta name="keywords" content="<?php echo $page_info->tags; ?>">
	<meta name="generator" content="Pagemap <?php echo $system_data['system']['version']; ?>">
	<meta name="author" content="<?php echo $user_data['author']; ?>">
	<meta name="robots" content="<?php echo $page_info->searchable == 1 ? 'index, follow' : 'noindex, nofollow'; ?>">

	<base href="<?php echo $user_data['base url']; ?>">

	<title><?php echo $page_info->metatitle; ?> – <?php echo $user_data['site title']; ?></title>
	
	<link rel="first" title="<?php echo $page_info->first->title; ?>" href="<?php echo $page_info->first->href; ?>">
	<link rel="last" title="<?php echo $page_info->last->title; ?>" href="<?php echo $page_info->last->href; ?>">	
	<link rel="prev" title="<?php echo $page_info->previous->title; ?>" href="<?php echo $page_info->previous->href; ?>">	
	<link rel="next" title="<?php echo $page_info->next->title; ?>" href="<?php echo $page_info->next->href; ?>">	
	
	<link rel="shortcut icon" type="image/x-icon" href="<?php echo $system_data['folder']['backend']; ?>favicon.ico">
	<link rel="alternate" type="application/rss+xml" title="<?php echo $user_data['site title']; ?> (RSS 2.0 Feed)" href="<?php echo $user_data['rss url']; ?>">

	<link rel="stylesheet" type="text/css" media="all" href="<?php echo $system_data['folder']['frontend template']; ?>sources/standards.css">
	<link rel="stylesheet" type="text/css" media="all" href="<?php echo $system_data['folder']['frontend template']; ?>index.css">
	
	<link rel="morecss" href="<?php echo $system_data['folder']['frontend template']; ?>MoreCSS.css">
	<script type="text/javascript" charset="utf-8" src="<?php echo $system_data['folder']['plugins']; ?>morecss/MoreCSS.js"></script>
	
	<script type="text/javascript" src="<?php echo $system_data['folder']['frontend template']; ?>sources/lytebox/lytebox.js"></script>
	<link rel="stylesheet" href="<?php echo $system_data['folder']['frontend template']; ?>sources/lytebox/lytebox.css" type="text/css" media="screen">

	<?php echo $system_data['frontend']['header']; ?>
</head>

<body class="<?php echo $page_info->alias; ?> news-page">
	
	<div class="page-element">
		<!-- SIDEBAR -->
		<div id="sidebar">
			<?php
				// MODULE: languages
				$module_settings["languages"] = array(
					"css id" => 'language-selector'
				);
				
				include_module('languages');
				
				// MODULE: list-pages
				$module_settings['list-pages'] = array(
					'show info pages' => $user_data["show info pages"],
					'show sort headlines' => $user_data["show sort headlines"],
					'sort by' => $user_data["sort by"],
					'sort ascending' => $user_data["sort ascending"],
					'categories' => array(),
					'number of pages' => 0
				);

				include_module('list-pages');
				
				// MODULE: list-news
				$module_settings['list-news'] = array(
					'mode' => 'latest'
				);

				include_module('list-news');

				// MODULE: list-news
    			$module_settings['list-news'] = array(
    				'css class' => 'topics inside',
    				'mode' => 'topics',
    				'archive page' => 'weblog'
    			);

    			include_module('list-news');
    		?>
			
			<p id="support-link">
				<a href="http://getpagemap.com/">Powered by<br>Pagemap</a>
			</p>
		</div>
	
		<!-- CONTENT -->
		<div id="content">
			<h1><?php echo $page_info->title; ?></h1>
			<?php include_page($page_info->alias); ?>
		</div>
	</div>
	
	<!-- FOOTER -->
	<div class="page-element footer">
		<strong><?php echo txt('global', 'Schlüsselwörter'); ?>:</strong> <?php echo $page_info->tags; ?>
		<strong><?php echo txt('global', 'Zuletzt geändert'); ?>:</strong> <?php echo date($user_data["date format print"], intval($page_info->timestamp)); ?>
		
		<?php if($page_info->pages != '') { ?>
			<strong><?php echo txt('global', 'Seite'); ?>:</strong> <?php echo $page_info->position; ?> / <?php echo $page_info->pages; ?> &nbsp; 
			<a class="<?php if($page_info->previous->title == '') echo 'disabled'; ?>" style="font-family: Arial" href="<?php echo $page_info->previous->href; ?>" title="<?php echo $page_info->previous->title; ?>">◄</a>
			<a class="<?php if($page_info->next->title == '') echo 'disabled'; ?>" style="font-family: Arial" href="<?php echo $page_info->next->href; ?>" title="<?php echo $page_info->next->title; ?>">►</a>
		<?php } ?>
	</div>

	<div style="clear: both"></div>

	<?php echo $system_data['frontend']['footer']; ?>
</body>
</html>