|
Salutare.
Vreau sa pun pe site-ul meu butonul +1 de la google si cel de like de la facebook. Nu am sa va intreb cum se face ci de imi apare de doua ori fiecare buton. :| Incerc sa integrez aceste doua butoane pe partea dreapta a siteului iar adresa fisierului pe care l-am modificat este /app/design/frontend/default/TEMA_MEA/template/callouts. In callouts am modificat left_col.phtml.
Asa arata fisierul original, ca si la voi banuiesc
?> <div class="block block-banner"> <div class="block-content"> <?php if(strtolower(substr($this->getLinkUrl(),0,4))==='http'): ?> <a href="<?php echo $this->getLinkUrl() ?>" title="<?php echo $this->__($this->getImgAlt()) ?>"> <?php elseif($this->getLinkUrl()): ?> <a href="<?php echo $this->getUrl($this->getLinkUrl()) ?>" title="<?php echo $this->__($this->getImgAlt()) ?>"> <?php endif; ?> <img src="<?php echo $this->getSkinUrl($this->getImgSrc()) ?>"<?php if(!$this->getLinkUrl()): ?> title="<?php echo $this->__($this->getImgAlt()) ?>"<?php endif; ?> alt="<?php echo $this->__($this->getImgAlt()) ?>" /> <?php if($this->getLinkUrl()): ?> </a> <?php endif ?> </div> </div>
iar eu am adaugat
<div class="g-plusone" data-annotation="inline" data-width="300"></div> (Buton de google) <div class="fb-like" data-href="http://www.magazin-supraveghere.ro" data-send="true" data-layout="button_count" data-width="450" data-show-faces="true"></div> (Buton de Facebook)
cam asa arata codul meu acum
?> <div class="block block-banner"> <div class="g-plusone" data-annotation="inline" data-width="300"></div> <div class="fb-like" data-href="http://www.magazin-supraveghere.ro" data-send="true" data-layout="button_count" data-width="450" data-show-faces="true"></div> <div class="block-content"> <?php if(strtolower(substr($this->getLinkUrl(),0,4))==='http'): ?> <a href="<?php echo $this->getLinkUrl() ?>" title="<?php echo $this->__($this->getImgAlt()) ?>"> <?php elseif($this->getLinkUrl()): ?> <a href="<?php echo $this->getUrl($this->getLinkUrl()) ?>" title="<?php echo $this->__($this->getImgAlt()) ?>"> <?php endif; ?> <img src="<?php echo $this->getSkinUrl($this->getImgSrc()) ?>"<?php if(!$this->getLinkUrl()): ?> title="<?php echo $this->__($this->getImgAlt()) ?>"<?php endif; ?> alt="<?php echo $this->__($this->getImgAlt()) ?>" /> <?php if($this->getLinkUrl()): ?> </a> <?php endif ?> </div> </div>
Dupa cum vedeti codul pentru acele doua butoane este scris sub primul <div>
Aveti atasata si imaginea care ma nemultumeste :(
As vrea ca aceste doua butoane de google si facebook sa apara unul sub altul fie sus, deasupra imaginii “call us” fie sub aceasta imagine “call us”
Un pic de ajutor ? Incepator in arta Magento
Image Attachments
Click thumbnail to see full-size image
|