<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title><?php wp_title(''); ?></title>
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div class="site">
<header>
<h1><a href="<?php echo home_url('/') ?>"><?php bloginfo( 'name' ); ?></a></h1>
<p><?php bloginfo( 'description' ); ?></p>
<?php get_template_part('inc/navi'); ?>
</header>
<footer>
<p>Copyright 2010 - <?php echo date("Y"); ?></p>
</footer>
</div>
<?php wp_footer(); ?>
</body>
</html>
<?php if(is_page() && !is_page(9)){ ?>
<aside>
<h4>Haben Sie Fragen?</h4>
<p>Nehmen Sie Kontakt auf.</p>
<p>Zur <a href="<?php the_permalink(9); ?>">Kontaktseite</a> </p>
</aside>
<?php } ?>
<?php if(is_single()){ ?>
<aside>
<?php wp_list_categories(); ?>
</aside>
<?php } ?>
<?php if(is_front_page()){ ?>
<aside>
Herzlich Willkommen, Traveller in Time and Webspace.
</aside>
<?php } ?>
<nav>
<?php wp_page_menu(); ?>
</nav>
<?php get_header(); ?>
<main>
<div class="loop">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php get_template_part('inc/content'); ?>
<?php endwhile; else : ?>
<?php get_template_part('inc/content','error'); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</main>
<?php get_footer(); ?>
<?php get_header(); ?>
<main>
<div class="loop">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php get_template_part('inc/content','page'); ?>
<?php endwhile; else : ?>
<?php get_template_part('inc/content','error'); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</main>
<?php get_footer(); ?>
<?php get_header(); ?>
<main>
<div class="loop">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php get_template_part('inc/content'); ?>
<?php endwhile; else : ?>
<?php get_template_part('inc/content','error'); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
</main>
<?php get_footer(); ?>
<article <?php post_class(); ?>>
<h2>
<a href="<?php the_permalink(); ?>"> <?php the_title(); ?></a>
</h2>
<p>Veröffentlicht von <?php the_author(); ?> am: <?php the_time('d.m.Y'); ?></p>
<?php the_content(); ?>
</article>
<article <?php post_class(); ?>>
<h2>
Standardseite: <?php the_title(); ?>
</h2>
<?php the_content(); ?>
</article>
<article>
Sorry nichts gefunden.
</article>
/*
Theme Name: Einfaches Theme
Version: 1.0
Description: Ein einfaches WP Theme
Author: Michael Albers
Author URI: https://www.pastorpixel.de/
*/
*{
box-sizing: border-box;
}
body{
font-family: Arial, sans-serif;
}
header{
background-color: #5df8cf;
padding: 1em;
}
main{
padding: 1em 0;
}
article{
padding: 1em;
background-color: #eee;
margin-bottom: 1em;
}
aside{
background: #C0C0C0;
padding: 1em;
}
footer{
background: #A9A9A9;
padding: 1em;
}
@media screen and (min-width:600px){
.site{
max-width: 1000px;
margin: 0 auto;
}
.loop{
float:left;
width: 60%;
}
aside{
float: right;
width:36%
}
footer{
clear: both;
}
}