New ads for IBM
Signed-off-by: Eric Poirier <eric@eclipse.org>
diff --git a/downloads/controller.downloads.php b/downloads/controller.downloads.php
index 15bf683..8c9a21d 100644
--- a/downloads/controller.downloads.php
+++ b/downloads/controller.downloads.php
@@ -260,11 +260,44 @@
'campaign' => 'PROMO_DOWNLOAD_IBM_B',
'image' => '/downloads/images/bluemix-logo-32x-promoted-download.png',
'title' => 'Deploy your app to IBM Bluemix',
- 'description' => "Love Eclipse? Want to move to Cloud? Bluemix + Eclipse make it easy. Sign up to begin building today!",
- 'script_url' => '//bs.serving-sys.com/BurstingPipe/adServer.bs?cn=rsb&c=28&pli=17255646&PluID=0&w=32&h=32&ord=[timestamp]',
- 'iframe_link' => '//bs.serving-sys.com/BurstingPipe/adServer.bs?cn=brd&FlightID=17255646&Page=&PluID=0&Pos=1663007610',
- 'iframe_img_url'=>'//bs.serving-sys.com/BurstingPipe/adServer.bs?cn=bsr&FlightID=17255646&Page=&PluID=0&Pos=1663007610',
- 'img_link'=>'//bs.serving-sys.com/BurstingPipe/adServer.bs?cn=tf&c=20&mc=click&pli=17277852&PluID=0&ord=[timestamp]',
+ 'description' => "Love Eclipse? Want to move to Cloud? Bluemix + Eclipse make it easy. Sign up to begin building today!",
+ 'script_url' => '//bs.serving-sys.com/BurstingPipe/adServer.bs?cn=rsb&c=28&pli=17255646&PluID=0&w=32&h=32&ord=[timestamp]',
+ 'iframe_link' => '//bs.serving-sys.com/BurstingPipe/adServer.bs?cn=brd&FlightID=17255646&Page=&PluID=0&Pos=1663007610',
+ 'iframe_img_url' => '//bs.serving-sys.com/BurstingPipe/adServer.bs?cn=bsr&FlightID=17255646&Page=&PluID=0&Pos=1663007610',
+ 'img_link' => '//bs.serving-sys.com/BurstingPipe/adServer.bs?cn=tf&c=20&mc=click&pli=17277852&PluID=0&ord=[timestamp]',
+ );
+
+ $this->ads['ibm_d'] = array(
+ 'campaign' => 'PROMO_DOWNLOAD_IBM_D',
+ 'image' => '/downloads/images/bluemix-logo-32x-promoted-download.png',
+ 'title' => 'Use your Eclipse IDE to build in the cloud',
+ 'description' => "Love Eclipse? Want to move to Cloud? Bluemix + Eclipse make it easy. Sign up to begin building today!",
+ 'script_url' => '//bs.serving-sys.com/BurstingPipe/adServer.bs?cn=rsb&c=28&pli=17822140&PluID=0&w=32&h=32&ord=[timestamp]',
+ 'iframe_link' => '//bs.serving-sys.com/BurstingPipe/adServer.bs?cn=brd&FlightID=17822140&Page=&PluID=0&Pos=2019636108',
+ 'iframe_img_url'=> '//bs.serving-sys.com/BurstingPipe/adServer.bs?cn=bsr&FlightID=17822140&Page=&PluID=0&Pos=2019636108',
+ 'img_link' => '//bs.serving-sys.com/BurstingPipe/adServer.bs?cn=tf&c=19&mc=imp&pli=17816180&PluID=0&ord=[timestamp]&rtu=-1',
+ );
+
+ $this->ads['ibm_e'] = array(
+ 'campaign' => 'PROMO_DOWNLOAD_IBM_E',
+ 'image' => '/downloads/images/bluemix-logo-32x-promoted-download.png',
+ 'title' => 'Eclipse IDE + IBM Bluemix = your app in the cloud.',
+ 'description' => "Sign up, Build & Push for Free",
+ 'script_url' => '//bs.serving-sys.com/BurstingPipe/adServer.bs?cn=rsb&c=28&pli=17822139&PluID=0&w=32&h=32&ord=[timestamp]',
+ 'iframe_link' => '//bs.serving-sys.com/BurstingPipe/adServer.bs?cn=brd&FlightID=17822139&Page=&PluID=0&Pos=403705173',
+ 'iframe_img_url' => '//bs.serving-sys.com/BurstingPipe/adServer.bs?cn=brd&FlightID=17822139&Page=&PluID=0&Pos=403705173',
+ 'img_link' => '//bs.serving-sys.com/BurstingPipe/adServer.bs?cn=tf&c=19&mc=imp&pli=17816181&PluID=0&ord=[timestamp]&rtu=-1',
+ );
+
+ $this->ads['ibm_f'] = array(
+ 'campaign' => 'PROMO_DOWNLOAD_IBM_F',
+ 'image' => '/downloads/images/bluemix-logo-32x-promoted-download.png',
+ 'title' => 'Use Eclipse IDE to Move Onto The Next-Gen Cloud',
+ 'description' => "Sign Up For a Free Account to Build, Run and Manage Your Apps",
+ 'script_url' => '//bs.serving-sys.com/BurstingPipe/adServer.bs?cn=rsb&c=28&pli=17822141&PluID=0&w=32&h=32&ord=[timestamp]',
+ 'iframe_link' => '//bs.serving-sys.com/BurstingPipe/adServer.bs?cn=brd&FlightID=17822141&Page=&PluID=0&Pos=649771322',
+ 'iframe_img_url' => '//bs.serving-sys.com/BurstingPipe/adServer.bs?cn=brd&FlightID=17822141&Page=&PluID=0&Pos=649771322',
+ 'img_link' => '//bs.serving-sys.com/BurstingPipe/adServer.bs?cn=tf&c=19&mc=imp&pli=17816179&PluID=0&ord=[timestamp]&rtu=-1',
);
}
@@ -379,11 +412,26 @@
}
// 2 spaces for IBM
- elseif ($count == 2 && (($random >= 21 && $random <= 60) || $random == 'ibm_b')) {
+ elseif ($count == 2 && (($random >= 21 && $random <= 30) || $random == 'ibm_b')) {
$promo = $this->promotedDownloadIBM($this->ads['ibm_b'], 'promo');
$this->download_rows .= $promo;
}
+ elseif ($count == 2 && (($random >= 31 && $random <= 40) || $random == 'ibm_d')) {
+ $promo = $this->promotedDownloadIBM($this->ads['ibm_d'], 'promo');
+ $this->download_rows .= $promo;
+ }
+
+ elseif ($count == 2 && (($random >= 41 && $random <= 50) || $random == 'ibm_e')) {
+ $promo = $this->promotedDownloadIBM($this->ads['ibm_e'], 'promo');
+ $this->download_rows .= $promo;
+ }
+
+ elseif ($count == 2 && (($random >= 51 && $random <= 60) || $random == 'ibm_f')) {
+ $promo = $this->promotedDownloadIBM($this->ads['ibm_f'], 'promo');
+ $this->download_rows .= $promo;
+ }
+
// 2 empty spaces
elseif ($count == 2 && (($random >= 61 && $random <= 100) || $random == 'empty')) {
$promo = $this->promotedDownload(array(), $zebra);