<?php
/**
 * Template Name: Projects Page
 *
 * @package WordPress
 * @subpackage AmS 2016
 * @since AmS 2016 1.0
 */

get_header();

if (have_posts()) : while (have_posts()) : the_post(); ?>

  <div id="projects-page" class="content-wrapper">
    <div class="beam">
      <div class="container clearfix">
        <div class="row">
          <div class="col-lg-12">
            <h1>Tag der Archi&shy;tek&shy;tur <?php the_title(); ?></h1>
          </div>
        </div>
      </div>
    </div>
    <div class="container text-muted">
      <div class="row">
        <div class="col-lg-12">
          <?php the_content(); ?>
        </div>
      </div>
<?php endwhile; endif;

$args = array(
  'post_type'      => 'page',
  'posts_per_page' => -1,
  'post_parent'    => $post->ID,
  'order'          => 'ASC',
  'orderby'        => 'menu_order'
);

query_posts($args); ?>
<div class="row">

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  <div class="col-lg-6">
    <div class="card card-block">
      <a href="<?php echo esc_url(get_permalink()); ?>"><h4 class="card-title"><?php the_title(); ?></h4></a>
      <p class="card-text"><?php the_content(); ?></p>
    </div>
  </div>
<?php endwhile; endif; ?>

  </div>

    </div>
  </div>




<div id="projects-page" class="content-wrapper">
<div class="container clearfix">

  </div>
</div>

<?php get_footer(); ?>