Version Notes
Minor modification after the first Release Version.
Download this release
Release Info
Developer | Mirage Design |
Extension | Miragedesign_Pinterest |
Version | 1.0.2 |
Comparing to | |
See all releases |
Code changes from version 1.0.1 to 1.0.2
app/code/community/Miragedesign/Pinterest/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Miragedesign_Pinterest>
|
5 |
-
<version>1.0.
|
6 |
</Miragedesign_Pinterest>
|
7 |
</modules>
|
8 |
<frontend>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<Miragedesign_Pinterest>
|
5 |
+
<version>1.0.2</version>
|
6 |
</Miragedesign_Pinterest>
|
7 |
</modules>
|
8 |
<frontend>
|
app/design/frontend/base/default/template/miragedesign/pinterest_button.phtml
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Miragedesign Web Development
|
4 |
+
*
|
5 |
+
* @category Miragedesign
|
6 |
+
* @package Miragedesign_Pinterest
|
7 |
+
* @copyright Copyright (c) 2011 Mirage Design (http://miragedesign.net)
|
8 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
9 |
+
*/
|
10 |
+
?>
|
11 |
+
<?php if ($this->getIsEnabled()) :?>
|
12 |
+
<?php
|
13 |
+
$_product = $this->getProduct();
|
14 |
+
$productUrl = $this->getProductUrl();
|
15 |
+
$productImage = $this->getProductImage();
|
16 |
+
$productDescription = $this->getProductDescription();
|
17 |
+
|
18 |
+
/*Get the current product count on Pinterest*/
|
19 |
+
$pinterestCount = $this->getPinterestCount();
|
20 |
+
?>
|
21 |
+
<a href="http://pinterest.com/pin/create/button/?url=<?php echo $productUrl; ?>&media=<?php echo $productImage; ?>&description=<?php echo $productDescription; ?>" class="pin-it-button" count-layout="<?php echo $pinterestCount; ?>"><?php echo $this->helper('pinterest')->__('Pin It'); ?></a>
|
22 |
+
<script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script>
|
23 |
+
<a title="Send this page to Twitter!" href="http://twitter.com/home?status=Check out the <?php echo $this->htmlEscape($_product->getName()) ?> at <?php echo $_product->getProductUrl() ?> @foodoAU" target="_blank"><img src="YOUR BUTTON HERE" alt="Follow foodoAU on Twitter" /></a>
|
24 |
+
<a href="http://www.facebook.com/sharer.php?u=<?php echo $_product->getProductUrl() ?>&t=Check+this+out" target="_blank" title="Share on Facebook"><img src="YOUR BUTTON HERE" alt="Share on Facebook"></a>
|
25 |
+
<a href="http://www.google.com/buzz/post?url=<?php echo $_product->getProductUrl() ?>&title=<?php echo $this->htmlEscape($_product->getName()) ?>&srcURL=YOUR URL&srcTitle=YOUR SITE NAME" target="_blank" rel="nofollow external" title="Google Buzz This"><img src="YOUR BUTTON" alt="Google Buzz This!" /></a>
|
26 |
+
<?php endif; ?>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Miragedesign_Pinterest</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
@@ -25,8 +25,8 @@ And much more features are comming!
|
|
25 |
</notes>
|
26 |
<authors><author><name>Mirage Design</name><user>ngocdb</user><email>ngocdbcn@gmail.com</email></author></authors>
|
27 |
<date>2012-03-06</date>
|
28 |
-
<time>
|
29 |
-
<contents><target name="magecommunity"><dir name="Miragedesign"><dir name="Pinterest"><dir name="Block"><file name="Button.php" hash="ed4856d6e7af423dc66d7d7aecfa7b7a"/></dir><dir name="Helper"><file name="Data.php" hash="0f3173f571a8dbeabf3e55a70ae57c95"/></dir><dir name="Model"><file name="Pincount.php" hash="e405b72545cabc196630ce099a82eb10"/><file name="Price.php" hash="c61c75334b6410649a92d33f22c60bd6"/></dir><dir name="etc"><file name="adminhtml.xml" hash="6ec7da759768d8ba1bceeffa15a5ff8d"/><file name="config.xml" hash="
|
30 |
<compatible/>
|
31 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
32 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Miragedesign_Pinterest</name>
|
4 |
+
<version>1.0.2</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
25 |
</notes>
|
26 |
<authors><author><name>Mirage Design</name><user>ngocdb</user><email>ngocdbcn@gmail.com</email></author></authors>
|
27 |
<date>2012-03-06</date>
|
28 |
+
<time>07:07:28</time>
|
29 |
+
<contents><target name="magecommunity"><dir name="Miragedesign"><dir name="Pinterest"><dir name="Block"><file name="Button.php" hash="ed4856d6e7af423dc66d7d7aecfa7b7a"/></dir><dir name="Helper"><file name="Data.php" hash="0f3173f571a8dbeabf3e55a70ae57c95"/></dir><dir name="Model"><file name="Pincount.php" hash="e405b72545cabc196630ce099a82eb10"/><file name="Price.php" hash="c61c75334b6410649a92d33f22c60bd6"/></dir><dir name="etc"><file name="adminhtml.xml" hash="6ec7da759768d8ba1bceeffa15a5ff8d"/><file name="config.xml" hash="88af4547febaf40861993b0363c0d9b1"/><file name="system.xml" hash="428d6baa79e6bbfc08f0024bd272c5cf"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="miragedesign"><file name="pinterest.xml" hash="43561da1c7f77cba4b8f5810d5495ad3"/></dir></dir><dir name="template"><dir name="miragedesign"><file name="pinterest_button.phtml" hash="ec5417f5f0e897d991e69e1d66bc2d53"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="Miragedesign_Pinterest.csv" hash="f80229646ce5a4bf8951f4d9243cad2e"/></dir></target><target name="mageetc"><dir name="modules"><file name="Miragedesign_Pinterest.xml" hash="3448b63aef6988ef012fecfec37c6c53"/></dir></target></contents>
|
30 |
<compatible/>
|
31 |
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
32 |
</package>
|