title: Magento: Add Pinterest "Pin it" button to product detail page
body: <p>I'm trying to add the <a href="http://pinterest.com/about/goodies/" rel="nofollow">"Pin it" button from Pinterest</a> to the pruduct detail pages in our website.</p>
  
  <p>So far I've tried:</p>
  
  <pre><code>&lt;a href="http://pinterest.com/pin/create/button/?url=&lt;?php echo trim(Mage::registry('current_product')-&gt;getProductUrl()) ?&gt;&amp;media;=&lt;?php echo $this-&gt;helper('catalog/image')-&gt;init($_product, 'small_image')-&gt;resize(265) ?&gt;&amp;description;=&lt;?php echo Mage::registry('current_product')-&gt;getName(); ?&gt;" class="pin-it-button" count-layout="none"&gt;Pin It&lt;/a&gt;
  &lt;script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;a href="http://pinterest.com/pin/create/button/?url=&lt;?php echo trim(Mage::registry(\'current_product\')-&gt;getProductUrl()) ?&gt;&amp;media;=&lt;?php echo Mage::helper('catalog/image')-&gt;init(Mage::registry('current_product'), 'small_image')-&gt;resize(900,900);?&gt;&amp;description;=&lt;?php echo Mage::registry('current_product')-&gt;getName(); ?&gt;" class="pin-it-button" count-layout="none"&gt;Pin It&lt;/a&gt;
  &lt;script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>With any of these I can get the pruduct's URL and the product's name, but I can not get the product's image. So the post does not work (it needs all 3 items to work: URL, Media and Description)</p>
  
  <p>When I try this:</p>
  
  <pre><code>&lt;a href="http://pinterest.com/pin/create/button/?url=http://eberjey.com&amp;media;=&lt;?php echo Mage::helper('catalog/image')-&gt;init(Mage::registry('current_product'), 'small_image')-&gt;resize(900,900);?&gt;&amp;description;=&lt;?php echo Mage::registry('current_product')-&gt;getName(); ?&gt;" class="pin-it-button" count-layout="none"&gt;Pin It&lt;/a&gt;
  &lt;script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I can post the product's image, but the URL is not dynamic (I'm just using the absolute URL to the website).</p>
  
  <p>Any ideas on how I could implement this button in my product detail pages?</p>