From b1458adea75fb94e395f6045a2e191faf90b6fac Mon Sep 17 00:00:00 2001 From: Dan Head Date: Mon, 30 Apr 2018 21:33:39 +0100 Subject: [PATCH] Add page layout --- theme/functions.php | 1 + theme/index.php | 2 +- theme/page.php | 38 ++++++++++++++++++++++++++++++++++++++ theme/single.php | 2 +- 4 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 theme/page.php diff --git a/theme/functions.php b/theme/functions.php index 8e1127d..d0c9ed9 100644 --- a/theme/functions.php +++ b/theme/functions.php @@ -21,6 +21,7 @@ function windycoys_nav() { function windycoys_the_tags() { $tags = get_the_tags(); + if (!$tags) return false; // Suppress NewsNow tag foreach($tags as $key=>$tag) { if($tag->name === "newsnow") { diff --git a/theme/index.php b/theme/index.php index c7c5437..7a6bc15 100644 --- a/theme/index.php +++ b/theme/index.php @@ -20,7 +20,7 @@
- »', 'windycoys' ) ); ?> + »', 'windycoys')); ?>
diff --git a/theme/page.php b/theme/page.php new file mode 100644 index 0000000..842eb06 --- /dev/null +++ b/theme/page.php @@ -0,0 +1,38 @@ + +
+ + +
+
+

+ + + +

+
+ »', 'windycoys')); ?> +
+
+
+ + +
+
+

Sorry, there is no article to display

+
+ Go back home +
+
+
+ +
+ +
+ +
+ + diff --git a/theme/single.php b/theme/single.php index 50ea4b0..c8ee568 100644 --- a/theme/single.php +++ b/theme/single.php @@ -20,7 +20,7 @@
- »', 'windycoys' ) ); ?> + »', 'windycoys')); ?>