Right now there is a share button for my product designer in the designer.tpl
I would like that button on the frontpage in my sidebar.tpl how do I get it there.
Here´s the code from the designer.tpl
[{capture append=“oxidBlock_content”}]
[{capture assign=“pageScript”}]
function snw_showTaxInfo(){
}
function sendDesignerImageToFacebook(){
document.getElementById("snw_designer").snw_createSnapshot("onDesignerImageStored");
}
function onDesignerImageStored(result,error){
if(result){
var picture = result.url;
var infos = document.getElementById("snw_designer").snw_getInfos();
var title = infos.product.name;
var fb = "http://www.facebook.com/sharer.php?u=";
var picurl = "[{$oView->getPreviewPictureUrl()}]" + picture;
var dlink = "[{$oViewConf->getSelfLink()}]cl=designer&fnc=showFacebookFrame&title="+title+"&img="+picurl;
window.open(fb+escape(dlink),"Facebook", "width=550,height=320,left=100,top=100");
}
}
[{/capture}]
[{oxscript add=$pageScript}]
[{$designer}]
[{include file=“page/shirtnetwork/designer_description.tpl”}]
[{/capture}]
[{capture append=“oxidBlock_sidebar”}]
[{oxifcontent ident=“designerhelp” object=“oCont”}]
<div id=“designerHelpBox” class=“box”>
<h3>[{$oCont->oxcontents__oxtitle->value}]</h3>
<div class=“content”>[{$oCont->oxcontents__oxcontent->value}]</div>
</div>
[{/oxifcontent}]
[{oxifcontent ident=“facebooklikedesigner” object=“oCont”}]
<div id=“designerFbBox” class=“box”>
<h3>[{$oCont->oxcontents__oxtitle->value}]</h3>
<div class=“content”>
[{$oCont->oxcontents__oxcontent->value}]
<img onclick=“sendDesignerImageToFacebook()” src="[{$oViewConf->getImageUrl()}]facebook_icon.gif" alt="[{$oCont->oxcontents__oxtitle->value}]" style=“cursor:pointer;cursor:hand;” />
</div>
</div>
[{/oxifcontent}]
[{/capture}]
[{include file=“layout/page.tpl” sidebar=“Left”}]