Last active
August 29, 2015 14:08
-
-
Save paulocoutinhox/1ef008284feffe669418 to your computer and use it in GitHub Desktop.
Mudando o tema para exibir o vídeo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 - cadastrar o curso e definir os atributos especiais para aquele tipo de produto (url do video[video_url], horas, autor) | |
2 - ir no arquivo app/design/frontend/[nome-do-tema]/default/default/template/catalog/product/view.phtml | |
e adicionar no html o bloco de código html do sistema de cursos atual que exibe o vídeo: | |
<div class="right-programa"> | |
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="563" height="317" id="huraExternalPlayer" bgcolor="#FFFFFF"> | |
<param name="movie" value="http://cursos.umbarato.com/themes/cursos/swf/player.swf"> | |
<param name="FlashVars" value="url=<?php echo($_helper->productAttribute($_product, $_product->getName(), 'video_url')); ?>&autoPlay=false&autoLoadYouTubePreviewImage=true&"> | |
<param name="allowFullScreen" value="true"> | |
<embed src="http://cursos.umbarato.com/themes/cursos/swf/player.swf" flashvars="url=<?php echo($_helper->productAttribute($_product, $_product->getName(), 'video_url')); ?>&autoPlay=false&autoLoadYouTubePreviewImage=true&" width="563" height="317" allowfullscreen="true" name="huraExternalPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"> | |
</object> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment