From e07e241527e392b3c042b741a844198dc243cb10 Mon Sep 17 00:00:00 2001 From: dignajar Date: Wed, 20 Jan 2016 23:42:15 -0300 Subject: [PATCH] Cover image on themes --- bl-themes/future-imperfect/php/home.php | 7 +++++++ bl-themes/future-imperfect/php/page.php | 9 ++++++++- bl-themes/future-imperfect/php/post.php | 9 ++++++++- bl-themes/pure/php/home.php | 7 ++++++- bl-themes/pure/php/page.php | 12 ++++++++++-- bl-themes/pure/php/post.php | 10 +++++++++- 6 files changed, 48 insertions(+), 6 deletions(-) diff --git a/bl-themes/future-imperfect/php/home.php b/bl-themes/future-imperfect/php/home.php index 61ce98f2..9712a7b0 100644 --- a/bl-themes/future-imperfect/php/home.php +++ b/bl-themes/future-imperfect/php/home.php @@ -29,6 +29,13 @@ + + coverImage()) { + echo 'Cover Image'; + } + ?> + content(false) ?> diff --git a/bl-themes/future-imperfect/php/page.php b/bl-themes/future-imperfect/php/page.php index 1869e82a..3b7bc136 100644 --- a/bl-themes/future-imperfect/php/page.php +++ b/bl-themes/future-imperfect/php/page.php @@ -11,10 +11,17 @@ + + coverImage()) { + echo 'Cover Image'; + } + ?> + content() ?> - + \ No newline at end of file diff --git a/bl-themes/future-imperfect/php/post.php b/bl-themes/future-imperfect/php/post.php index 020a248b..a071c235 100644 --- a/bl-themes/future-imperfect/php/post.php +++ b/bl-themes/future-imperfect/php/post.php @@ -27,6 +27,13 @@ + + coverImage()) { + echo 'Cover Image'; + } + ?> + content() ?> @@ -48,4 +55,4 @@ - + \ No newline at end of file diff --git a/bl-themes/pure/php/home.php b/bl-themes/pure/php/home.php index d8f65503..798dd0e8 100644 --- a/bl-themes/pure/php/home.php +++ b/bl-themes/pure/php/home.php @@ -37,6 +37,11 @@
coverImage()) { + echo 'Cover Image'; + } + // Call the method with FALSE to get the first part of the post echo $Post->content(false) ?> @@ -56,4 +61,4 @@ +?> \ No newline at end of file diff --git a/bl-themes/pure/php/page.php b/bl-themes/pure/php/page.php index 7697c812..758b4edf 100644 --- a/bl-themes/pure/php/page.php +++ b/bl-themes/pure/php/page.php @@ -17,10 +17,18 @@
- content() ?> + coverImage()) { + echo 'Cover Image'; + } + + // Page content + echo $Page->content() + ?>
- + \ No newline at end of file diff --git a/bl-themes/pure/php/post.php b/bl-themes/pure/php/post.php index c09f440a..a349651f 100644 --- a/bl-themes/pure/php/post.php +++ b/bl-themes/pure/php/post.php @@ -34,7 +34,15 @@
- content() ?> + coverImage()) { + echo 'Cover Image'; + } + + // Call the method with FALSE to get the first part of the post + echo $Post->content(false) + ?>