From cdb9c4c6695d65418319db9022a8db594a72e05f Mon Sep 17 00:00:00 2001 From: Tim Morris Date: Tue, 13 Sep 2016 12:01:23 -0400 Subject: [PATCH] search round 2 --- search.php | 2 +- templates/search.twig | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 templates/search.twig diff --git a/search.php b/search.php index 3574e17..8a12591 100755 --- a/search.php +++ b/search.php @@ -9,7 +9,7 @@ * @since Timber 0.1 */ -$templates = array( 'single.twig' ); +$templates = array( 'search.twig' ); $context = Timber::get_context(); $context['title'] = 'Search results for '. get_search_query(); diff --git a/templates/search.twig b/templates/search.twig new file mode 100644 index 0000000..de927ed --- /dev/null +++ b/templates/search.twig @@ -0,0 +1,27 @@ +{% extends "base.twig" %} + +{% block content %} +
+ {% if post.get_field('wpcf-hide-back-button') == 0 %} + + {% endif %} +
+
+
+ {% for result in posts %} + + {% endfor %} +
+
+
+ {% if post.get_field('wpcf-hide-back-button') == 0 %} + + {% endif %} +
+{% endblock %}