Added ad container on member list search results
authorLaury GvR <laury@gaslightmedia.com>
Tue, 17 Oct 2017 15:43:19 +0000 (11:43 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Tue, 17 Oct 2017 15:44:28 +0000 (11:44 -0400)
Added ad container on member list search results. This will show
an ad group if the relevant search term is in REQUEST

scss/plugins/advanced-ads.scss [new file with mode: 0644]
sections/interior-page.php

diff --git a/scss/plugins/advanced-ads.scss b/scss/plugins/advanced-ads.scss
new file mode 100644 (file)
index 0000000..ce7f575
--- /dev/null
@@ -0,0 +1,6 @@
+#top-ad-container img {
+    margin: 0 auto;
+    float: none;
+    display: block;
+    margin-top: 10px;
+}
\ No newline at end of file
index d0556df..b10bf90 100644 (file)
@@ -1,5 +1,6 @@
                     <main class="page-inside">
                         <div id="content-wrapper">
+                            <div id="top-ad-container" class="row">
                                 <?php 
                                 switch ($_REQUEST['cities'][0] ) {
                                     case 37: // Gaylord
@@ -14,6 +15,7 @@
                                     default:
                                         break; // No ads
                                 } ?>
+                            </div>
                             <div class="row">
                                 <?php if(function_exists('bcn_display') && !is_front_page())
                                 {