Added a second IBM ad
Change-Id: I7ecc9f657bf2d53a214ded72d6932433a0f35d2f
Signed-off-by: Eric Poirier <eric@eclipse.org>
diff --git a/downloads/controller.downloads.php b/downloads/controller.downloads.php
index 3703603..849b9d2 100644
--- a/downloads/controller.downloads.php
+++ b/downloads/controller.downloads.php
@@ -124,19 +124,19 @@
<div class="row vertical-align-min-md">
<div class="col-xs-3 icon">
<!-- iframe/script/href/image tag -->
- <iframe src="//media.ibm.com/iframe?spacedesc=24428071_23181114_32x32_24428070_24428071&target=_blank&random=&@CPSC@=" width=32 height=32 scrolling="No" frameborder=0 marginheight=0 marginwidth=0>
- <script src="//media.ibm.com/jscript?spacedesc=24428071_23181114_32x32_24428070_24428071&ML_NIF=Y&target=_blank&random=&@CPSC@="></script>
+ <iframe src="<?php print $ad['iframe_url'];?>" width=32 height=32 scrolling="No" frameborder=0 marginheight=0 marginwidth=0>
+ <script src="<?php print $ad['script_url'];?>"></script>
<noscript>
- <a href="//media.ibm.com/click?spacedesc=24428071_23181114_32x32_24428070_24428071&ML_NIF=Y" target="_blank">
- <img src="//media.ibm.com/image?spacedesc=24428071_23181114_32x32_24428070_24428071&random=&ML_NIF=Y" width=32 height=32 alt="Click Here" border=0>
+ <a href="<?php print $ad['iframe_link'];?>" target="_blank">
+ <img src="<?php print $ad['iframe_img_url'];?>" width=32 height=32 alt="Click Here" border=0>
</a>
</noscript>
</iframe>
</div>
<div class="col-sm-13 text xs-sm-text-center">
<h3>
- <a href="//media.ibm.com/click?spacedesc=24428067_23181114_1x1_24428066_24428067" target="_blank"><?php print $ad['title'];?>
- <img src="//media.ibm.com/image?spacedesc=24428067_23181114_1x1_24428066_24428067&random=" width=1 height=1 alt=" " border=0>
+ <a href="<?php print $ad['img_link'];?>" target="_blank"><?php print $ad['title'];?>
+ <img src="<?php print $ad['img_url'];?>" width=1 height=1 alt=" " border=0>
</a>
</h3>
<p><?php print $ad['description'];?></p>
@@ -146,8 +146,8 @@
<div class="col-sm-15 downloadLink-content">
<div class="text-center">
<p>
- <a class="orange" href="//media.ibm.com/click?spacedesc=24428067_23181114_1x1_24428066_24428067" target="_blank">
- <img src="//media.ibm.com/image?spacedesc=24428067_23181114_1x1_24428066_24428067&random=" width="1" height="1" alt=" " border="0"><i class="fa fa-star"></i>
+ <a class="orange" href="<?php print $ad['img_link'];?>" target="_blank">
+ <img src="<?php print $ad['img_url'];?>" width="1" height="1" alt=" " border="0"><i class="fa fa-star"></i>
<br/>Promoted<br/>Download
</a><br/>
</p>
@@ -256,11 +256,30 @@
'description' => 'See Java Code Changes Instantly. Save Time. Reduce Stress. Finish Projects Faster!',
);
- $this->ads['ibm'] = array(
+ $this->ads['ibm_a'] = array(
'campaign' => 'PROMO_DOWNLOAD_IBM',
'image' => '/downloads/images/bluemix-logo-32x-promoted-download.png',
'title' => 'Eclipse Plugin for IBM Bluemix',
'description' => 'Bluemix, IBM’s digital innovation platform, is now seamlessly integrated into your dev tools.',
+ 'iframe_url' => '//media.ibm.com/iframe?spacedesc=24428071_23181114_32x32_24428070_24428071&target=_blank&random=&@CPSC@=',
+ 'script_url' => '//media.ibm.com/jscript?spacedesc=24428071_23181114_32x32_24428070_24428071&ML_NIF=Y&target=_blank&random=&@CPSC@=',
+ 'iframe_link' => '//media.ibm.com/click?spacedesc=24428071_23181114_32x32_24428070_24428071&ML_NIF=Y',
+ 'iframe_img_url'=>'//media.ibm.com/image?spacedesc=24428071_23181114_32x32_24428070_24428071&random=&ML_NIF=Y',
+ 'img_link'=>'//media.ibm.com/click?spacedesc=24428067_23181114_1x1_24428066_24428067',
+ 'img_url'=>'//media.ibm.com/image?spacedesc=24428067_23181114_1x1_24428066_24428067&random=',
+ );
+
+ $this->ads['ibm_b'] = array(
+ 'campaign' => 'PROMO_DOWNLOAD_IBM_B',
+ 'image' => '/downloads/images/bluemix-logo-32x-promoted-download.png',
+ 'title' => 'Deploy your app to IBM Bluemix',
+ 'description' => 'Bluemix is a cloud-based platform by IBM. Download and install this free Eclipse plugin for a seamless deployment experience.',
+ 'iframe_url' => '//media.ibm.com/iframe?spacedesc=26587161_23181114_32x32_26587160_26587161&target=_blank&random=&@CPSC@=',
+ 'script_url' => '//media.ibm.com/jscript?spacedesc=26587161_23181114_32x32_26587160_26587161&ML_NIF=Y&target=_blank&random=&@CPSC@=',
+ 'iframe_link' => '//media.ibm.com/click?spacedesc=26587161_23181114_32x32_26587160_26587161&ML_NIF=Y',
+ 'iframe_img_url'=>'//media.ibm.com/image?spacedesc=26587161_23181114_32x32_26587160_26587161&random=&ML_NIF=Y',
+ 'img_link'=>'//media.ibm.com/click?spacedesc=26587157_23181114_1x1_26587156_26587157',
+ 'img_url'=>'//media.ibm.com/image?spacedesc=26587157_23181114_1x1_26587156_26587157&random=',
);
}
@@ -381,8 +400,12 @@
$this->download_rows .= $promo;
$zebra = !$zebra;
}
- elseif ($count == 3 && (($random >= 50 && $random <= 83) || $random == 'ibm')) {
- $promo = $this->promotedDownloadIBM($this->ads['ibm'], 'promo');
+ elseif ($count == 3 && (($random >= 50 && $random <= 66) || $random == 'ibm_a')) {
+ $promo = $this->promotedDownloadIBM($this->ads['ibm_a'], 'promo');
+ $this->download_rows .= $promo;
+ }
+ elseif ($count == 3 && (($random >= 67 && $random <= 83) || $random == 'ibm_b')) {
+ $promo = $this->promotedDownloadIBM($this->ads['ibm_b'], 'promo');
$this->download_rows .= $promo;
}