<?php
global $handler;
$handler->printHeader();
?>
<div class="header">
<div class="line-bg"></div>
<div class="container-null">
<img class="logo" src="<?php path(); ?>img/logo.png" />
<div class="newsletter">
<form method="post" action="<?php bloginfo('wpurl'); ?>/wp-content/plugins/newsletter/do/subscribe.php" onsubmit="return newsletter_check(this)">
<h2>Newsletter</h2>
<img class="arrow" src="<?php path(); ?>img/pfeil.png" />
<input id="email" type="email" name="ne" />
<button class="button">anmelden</button>
</form>
</div>
<div class="navi">
<li><a href="<?php bloginfo('url'); ?>">Startseite</a></li>
<?php
wp_nav_menu(array(
'theme_location' => 'primary-menu',
'container' => '',
'menu_class' => '',
'items_wrap' => '%3$s',
'depth' => 2
));
?>
</div>
<?php
global $contact;
if (isset($contact) && $contact) {
?>
<div class="slider">
<div id="map-canvas"></div>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script>
var map;
function initialize() {
var mapOptions = {
zoom: 15,
center: new google.maps.LatLng(50.50282, 8.61561),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById('map-canvas'),
mapOptions);
var marker = new google.maps.Marker({
position: new google.maps.LatLng(50.50282, 8.61561),
map: map,
title: 'Gaststaette Kunstmuehle'
});
}
google.maps.event.addDomListener(window, 'load', initialize);
</script>
</div>
<?php } else {
?>
<div class="slider">
<div id="slider">
<?php
$arr = array('post_type' => 'slider');
$num = 0;
query_posts($arr);
$sarr = array();
if (have_posts()) {
while (have_posts()) {
the_post();
global $post;
$url = get_post_meta($post->ID, 'surl', true);
echo '<a href="'.$url.'"><img title="#caption-' . $num . '" src="' . wp_get_attachment_url(get_post_thumbnail_id($post->ID)) . '" alt="' . get_the_title() . '"></a>';
$num++;
$sarr[] = array(get_the_title(), get_the_content());
}
}
?>
</div>
<?php
foreach ($sarr as $key => $val) {
echo '<div class="nivo-html-caption" id="caption-' . $key . '">';
echo '<h2>' . $val[0] . '</h2> <h3>' . $val[1] . '</h3></div>';
}
wp_reset_query();
?>
</div>
<?php } ?>
</div>
</div>
<div class="netzwerk">
<div class="container-null">
<form id="searchform" method="get" action="<?php echo esc_url(home_url('/')); ?>">
<a href="https://www.facebook.com/kunstmuehle" class="facebook"></a>
<span>Suche</span>
<input type="text" name="s" />
</form>
</div>
</div>
<div class="content container-null">
<div class="con">