This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Omphaloskepsis/centred-page.php

30 lines
451 B
PHP
Raw Normal View History

2018-03-21 18:19:20 +00:00
<?php
/*
2021-01-09 11:13:06 +00:00
* Template Name: Centred Page
*/
2018-03-21 18:19:20 +00:00
/**
2021-01-09 11:13:06 +00:00
*
*
* Displays a full-screen page with content in the center.
*
* @package WordPress
* @subpackage Omphaloskepsis
* @since Omphaloskepsis 1.0
*/
2018-03-21 18:19:20 +00:00
?>
<?php get_header(); ?>
<main id="centred-page" role="main">
2021-01-09 11:13:06 +00:00
<?php
while ( have_posts() ) :
the_post();
?>
2018-03-21 18:19:20 +00:00
<h1><?php echo get_the_title(); ?></h1>
<h2><?php the_content(); ?></h2>
<?php endwhile; ?>
</main>
<?php get_footer(); ?>