#!vm;utf-8 $response.setStatus(301) ##moved permanently $response.sendRedirect("https://jogos.uol.com.br/ultimas") ## #set($conteudo = { "filename" : "game-designers", "portal" : "UOL", "estacao" : "Jogos", "canal" : "Desafio", "titulo" : "Game Designers", "subtitulo" : "Você consegue identificar quem são os produtores de games abaixo?", "created" : 20120109160709, "updated" : 20120109164650 }) ## ## #set($conteudo.flash = { "swf" : "http://flash.uol.com.br/conteudo/desafio/jogos/flashpops_wide.swf", "width" : "786", "height" : "700", "flashVars" :"fileXML=$link.toString().replaceAll('.htm','.xml')", "desafio" : { "total" : 21 } }) ## ## #set($conteudo.tags = { "tag1" : "", "tag2" : "", "tag3" : "", "tag4" : "", "tag-local" : "" }) ## #set($conteudo.imagem = { "tipo" : "", "width" : "142", "height" : "100", "src" : "http://j.i.uol.com.br/jogos/2012/01/09/desafio-game-design-1326131534377_142x100.jpg", "credito" : "Reprodução", "titulo" : "", "link" : "", "chapeu" : "" }) ## ## Quantidade de Itens ... depedendo a altura muda .. PADRAO 21 ITENS #if( $conteudo.flash.desafio.total > 0 && $conteudo.flash.desafio.total <= 7 ) #set($conteudo.flash.height = "433") #elseif( $conteudo.flash.desafio.total> 7 && $conteudo.flash.desafio.total <= 14 ) #set($conteudo.flash.height = "566") #elseif( $conteudo.flash.desafio.total> 21 && $conteudo.flash.desafio.total <= 28 ) #set($conteudo.flash.height = "833") #elseif( $conteudo.flash.desafio.total> 28 && $conteudo.flash.desafio.total <= 35 ) #set($conteudo.flash.height = "966") #elseif( $conteudo.flash.desafio.total> 35 && $conteudo.flash.desafio.total <= 42 ) #set($conteudo.flash.height = "1099") #elseif( $conteudo.flash.desafio.total> 42 && $conteudo.flash.desafio.total <= 49 ) #set($conteudo.flash.height = "1232") #end ## ## Caso tenha mais que 85 caracteres no Subtitulo aumentamos a altura do Container #if($conteudo.subtitulo.length()> 85) #set($conteudo.flash.height = $math.add($conteudo.flash.height,25) ) #end ## #parse("/config.estacao.vm") #rparse("/config.canal.vm") ## #parse("$estacao.path/_includes/templates/quiz/desafio.tpl")