adding obits search template for the results page
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 30 Mar 2017 13:16:09 +0000 (09:16 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 30 Mar 2017 13:16:09 +0000 (09:16 -0400)
obits-search-results.php [new file with mode: 0644]
sections/interior-page.php

diff --git a/obits-search-results.php b/obits-search-results.php
new file mode 100644 (file)
index 0000000..fc4603c
--- /dev/null
@@ -0,0 +1,5 @@
+<?php
+/*
+Template Name: Obits Search Template
+*/
+get_template_part('index');
\ No newline at end of file
index 8a8e7c1..448671a 100644 (file)
                                 } ?>
                                 <div class="row large-collapse">
                                     <?php get_template_part("parts/share-this"); ?>
-                                    <div class="small-12 medium-10 medium-centered columns">
+                                    <?php if (get_page_template_slug( $post->ID ) == "obits-search-results.php") { ?>
+                                        <div class="small-12 medium-centered columns">
+                                    <?php } else { ?>
+                                        <div class="small-12 medium-10 medium-centered columns">
+                                    <?php }  ?>
                                         <?php get_template_part('parts/main-content');?>
                                     </div>
                                 </div>