Merged v3 into master

This commit is contained in:
Pedro Reis 2019-01-08 11:10:57 +00:00
commit 20d55874a9
69 changed files with 1305 additions and 593 deletions

38
templates/README.MD Executable file
View file

@ -0,0 +1,38 @@
# Templates
Create a file caleld template-{template_name}.php. Make sure you include template
name, e.g.:
```
<?php
/**
* Template Name: Contact Page
*/
get_header();
?>
<main class="main" role="main">
<div class="container">
<?php while ( have_posts() ) : the_post(); ?>
<div class="row flex">
<div class="col col--xs-12 col--sm-12 col--md-8 col--lg-8">
<div class="content <?php the_field('colour'); ?>">
<?php the_content(); ?>
</div>
</div>
<div class="col col--xs-12 col--sm-12 col--md-4 col--lg-4">
<?php get_sidebar('university'); ?>
</div>
</div>
<?php endwhile; ?>
</div>
</main>
<?php get_footer(); ?>
```

View file

@ -1,31 +0,0 @@
<?php
/**
* Template Name: Demo page template
*/
get_header();
?>
<main class="main" role="main">
<div class="container">
<?php while (have_posts()) : the_post(); ?>
<article <?php post_class(); ?>>
<header role="heading">
<h3 class="post__title"><?php the_title(); ?></h3>
</header>
<?php the_content(); ?>
</article>
<?php endwhile; ?>
</div>
</main>
<?php get_footer(); ?>