diff options
author | Eric Poirier | 2018-03-20 13:01:58 +0000 |
---|---|---|
committer | Eric Poirier | 2018-03-20 13:02:13 +0000 |
commit | 1540dc0473d507287c5383c554e336a60eb8df6f (patch) | |
tree | a81bbf5f403214d6b14eaf04238086f5aaba43b6 | |
parent | 729630492e0fd34eab0686d0dc5688ee106abade (diff) | |
download | membership-1540dc0473d507287c5383c554e336a60eb8df6f.tar.gz membership-1540dc0473d507287c5383c554e336a60eb8df6f.tar.xz membership-1540dc0473d507287c5383c554e336a60eb8df6f.zip |
Remove HTML ad
Signed-off-by: Eric Poirier <eric.poirier@eclipse-foundation.org>
-rw-r--r-- | promo/promos.php | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/promo/promos.php b/promo/promos.php index ef2d1cc..518afa0 100644 --- a/promo/promos.php +++ b/promo/promos.php @@ -87,30 +87,6 @@ function buildDonateAd() { return $retVal; } -function buildDownloadHtmlAd($array) { - - // Get the urls that have been specified in the html ad - // from the allPromos() function - if (empty($array['url'])) { - return ""; - } - - ob_start(); - ?> - <div class="ad-eclipsecon-schedule"> - <h3 class="header-short-underline">Upcoming Events</h3> - <a href="/go/<?php print $array['url']; ?>"> - <img src="/membership/promo/images/eclipsecon-ad-europe2017-400x400.png" alt="Eclipsecon Europe 2017"> - </a> - </div> - <?php - - $impression = new CampaignImpression($array['url'], 'Download Page', @gethostbyaddr($_SERVER['REMOTE_ADDR'])); - $impression->recordImpression(); - - return ob_get_clean(); -} - /** * Eclipse Advertisements * @@ -316,11 +292,6 @@ function chooseRandomPromo($adNo = NULL, $frontPage = NULL) { $selectedAd = array_rand_weighted($promos); } - // If the selected Ad is in HTML - if (!empty($selectedAd['format']) && $selectedAd['format'] == "html") { - return buildDownloadHtmlAd($selectedAd); - } - switch ($selectedAd['type']) { case 'paid': // THERE IS NO BREAK HERE ON PURPOSE WE WANT STRAT_AD CASE CODE TO RUN @@ -377,10 +348,6 @@ function chooseDownloadAd($adNo = NULL) { $selectedAd = array_rand_weighted($promos); } - // If the selected Ad is in HTML - if (!empty($selectedAd['format']) && $selectedAd['format'] == "html") { - return buildDownloadHtmlAd($selectedAd); - } return buildDownloadAd($selectedAd); } |