projects
/
WP-Themes
/
michigantrailmaps.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1157343
)
Adding ads to the member search result page for certain cities
author
Laury GvR
<laury@gaslightmedia.com>
Mon, 16 Oct 2017 21:13:11 +0000
(17:13 -0400)
committer
Laury GvR
<laury@gaslightmedia.com>
Mon, 16 Oct 2017 21:13:11 +0000
(17:13 -0400)
sections/interior-page.php
patch
|
blob
|
history
diff --git
a/sections/interior-page.php
b/sections/interior-page.php
index
8364a2f
..
d0556df
100644
(file)
--- a/
sections/interior-page.php
+++ b/
sections/interior-page.php
@@
-1,5
+1,19
@@
<main class="page-inside">
<div id="content-wrapper">
+ <?php
+ switch ($_REQUEST['cities'][0] ) {
+ case 37: // Gaylord
+ echo do_shortcode("[the_ad id='1182']");
+ break;
+ case 89: // Petoskey
+ echo do_shortcode("[the_ad id='1180']");
+ break;
+ case 106: // Traverse City
+ echo do_shortcode("[the_ad id='1186']");
+ break;
+ default:
+ break; // No ads
+ } ?>
<div class="row">
<?php if(function_exists('bcn_display') && !is_front_page())
{