page-projects.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. /**
  3. * Template Name: Projects Page
  4. *
  5. * @package WordPress
  6. * @subpackage AmS 2016
  7. * @since AmS 2016 1.0
  8. */
  9. get_header();
  10. if (have_posts()) : while (have_posts()) : the_post(); ?>
  11. <div id="projects-page" class="content-wrapper">
  12. <div class="beam">
  13. <div class="container clearfix">
  14. <div class="row">
  15. <div class="col-lg-12">
  16. <h1>Tag der Archi&shy;tek&shy;tur <?php the_title(); ?></h1>
  17. </div>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="container text-muted">
  22. <div class="row">
  23. <div class="col-lg-12">
  24. <?php the_content(); ?>
  25. </div>
  26. </div>
  27. <?php endwhile; endif;
  28. $args = array(
  29. 'post_type' => 'page',
  30. 'posts_per_page' => -1,
  31. 'post_parent' => $post->ID,
  32. 'order' => 'ASC',
  33. 'orderby' => 'menu_order'
  34. );
  35. query_posts($args); ?>
  36. <div class="row">
  37. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  38. <div class="col-lg-6">
  39. <div class="card card-block">
  40. <a href="<?php echo esc_url(get_permalink()); ?>"><h4 class="card-title"><?php the_title(); ?></h4></a>
  41. <p class="card-text"><?php the_content(); ?></p>
  42. </div>
  43. </div>
  44. <?php endwhile; endif; ?>
  45. </div>
  46. </div>
  47. </div>
  48. <div id="projects-page" class="content-wrapper">
  49. <div class="container clearfix">
  50. </div>
  51. </div>
  52. <?php get_footer(); ?>