'; return $html; } /** * Get the HNB paramter for performance Ads * @param $platformId * @param $size * @return bool */ public static function getHnbForPlatform($platformId, $size) { $hnb = array( // DE 1 => array( '728x90' => 1, '300x250' => 4, '250x250' => 6, '468x60' => 5, '160x600' => 3, '120x600' => 2, '168x28' => 13, '216x36' => 14, '300x50' => 15, '320x50' => 16 ), // AT 7 => array( '728x90' => 1, '300x250' => 2, '250x250' => 6, '468x60' => 3, '160x600' => 4, '120x600' => 5, '168x28' => 13, // not yet available in AT '216x36' => 14, // not yet available in AT '300x50' => 15, // not yet available in AT '320x50' => 16 // not yet available in AT ), // CH 6 => array( '728x90' => 1, '300x250' => 2, '250x250' => 6, '468x60' => 4, '160x600' => 3, '120x600' => 5, '168x28' => 13, // not yet available in CH '216x36' => 14, // not yet available in CH '300x50' => 15, // not yet available in CH '320x50' => 16 // not yet available in CH ), // UK 2 => array( '728x90' => 2, '300x250' => 3, '250x250' => 6, '468x60' => 1, '160x600' => 4, '120x600' => 5, '168x28' => 13, // not yet available in UK '216x36' => 14, // not yet available in UK '300x50' => 15, // not yet available in UK '320x50' => 16 // not yet available in UK ), // FR 3 => array( '728x90' => 2, '300x250' => 3, '250x250' => 6, '468x60' => 1, '160x600' => 4, '120x600' => 5, '168x28' => 13, '216x36' => 14, '300x50' => 15, '320x50' => 16, '300x600' => 17 // only available in FR ), // NL - currently not implemented 4 => array( '728x90' => 2, '300x250' => 3, '250x250' => 6, '468x60' => 1, '160x600' => 4, '120x600' => 5, '168x28' => 13, '216x36' => 14, '300x50' => 15, '320x50' => 16 ) ); if (isset($hnb[$platformId]) && isset($hnb[$platformId][$size])) { return $hnb[$platformId][$size]; } else { return false; } } }