1{* $Id$ *} 2<div style="text-align: center"> 3 {if $client} 4 {capture name=disparam} 5 {if $display == '728*90_as'} 6 google_ad_width = 728; 7 google_ad_height = 90; 8 google_ad_format = "728x90_as"; 9 {elseif $display == '970*90_as'} 10 google_ad_width = 970; 11 google_ad_height = 90; 12 google_ad_format = "970x90_as"; 13 {elseif $display == '468*60_as'} 14 google_ad_width = 468; 15 google_ad_height = 60; 16 google_ad_format = "468x60_as"; 17 {elseif $display == '300*250_as'} 18 google_ad_width = 300; 19 google_ad_height = 250; 20 google_ad_format = "300x250_as"; 21 {elseif $display == '160*600_as'} 22 google_ad_width = 160; 23 google_ad_height = 600; 24 google_ad_format = "160x600_as"; 25 {elseif $display == '120*600_as'} 26 google_ad_width = 120; 27 google_ad_height = 600; 28 google_ad_format = "120x600_as"; 29 {elseif $display == '336*280_as'} 30 google_ad_width = 336; 31 google_ad_height = 280; 32 google_ad_format = "336x280_as"; 33 {elseif $display == '250*250_as'} 34 google_ad_width = 250; 35 google_ad_height = 250; 36 google_ad_format = "250x250_as"; 37 {elseif $display == '234*60_as'} 38 google_ad_width = 234; 39 google_ad_height = 60; 40 google_ad_format = "234x60_as"; 41 {elseif $display == '180*150_as'} 42 google_ad_width = 180; 43 google_ad_height = 150; 44 google_ad_format = "180x150_as"; 45 {elseif $display == '125*125_as'} 46 google_ad_width = 125; 47 google_ad_height = 125; 48 google_ad_format = "125x125_as"; 49 {elseif $display == '120*140_as'} 50 google_ad_width = 120; 51 google_ad_height = 140; 52 google_ad_format = "120x140_as"; 53 {elseif $display == '120*240_as'} 54 google_ad_width = 120; 55 google_ad_height = 240; 56 google_ad_format = "120x240_as"; 57 {elseif $display == '200*200_as'} 58 google_ad_width = 200; 59 google_ad_height = 200; 60 google_ad_format = "200x200_as"; 61 {/if} 62 {/capture} 63 {if $smarty.capture.disparam} 64 <script type="text/javascript"> 65 {$smarty.capture.disparam} 66 google_ad_client = "{$client}"; 67 google_ad_type = "text_image"; 68 google_ad_channel ="{$ad_channel}"; 69 google_color_border = "{$color_border}"; 70 google_color_bg = "{$color_bg}"; 71 google_color_link = "{$color_link}"; 72 google_color_url = "{$color_url}"; 73 google_color_text = "{$color_text}"; 74 </script> 75 <script type="text/javascript" 76 src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> 77 </script> 78 {else} 79 {tr}Display type unknown, you have to enter the banner type{/tr} 80 {/if} 81 {else} 82 {tr}You forgot your Google ad_client number !{/tr} 83 {/if} 84</div> 85