<?php
/**
 * Template Name: Laboratorio
 * This template is used for display Laboratorio Orafo pages
 *
 * @author Dueper Design
 * @package Dueper Theme
 */

get_header(); ?>

<?php while ( have_posts() ) : the_post(); ?>
  <header class="page-header">
    <h1 class="page-title"><?php _e('Laboratorio Orafo','blanka');?></h1>
    <?php $children = wp_list_pages(array(
      'child_of' => $post->post_parent,
      'title_li'    => '',
      'echo' => 0,
      'sort_column' => 'post_date',
      'sort_order' => 'DESC'
    )) ?>
    <?php if ( $children) : ?>
      <ul class="page-children-list">
        <?php echo $children; ?>
      </ul>
    <?php endif; ?>
  </header>
  <?php if( '' !== get_post()->post_content ) :?>
    <div class="container">
      <div class="text-wrapper">
        <?php the_content(); ?>
      </div><!--page-content-->
    </div><!--container-->
  <?php endif; ?>

  <?php get_template_part('inc/flexible-layout/index'); ?>

  <!-- DETACHABLE FIXED NAVIGATION -->
  <?php //get_template_part('inc/flexible-layout/_flex-nav'); ?>

<?php endwhile; ?>

<?php get_footer(); ?>
