Version Notes
Stable 1.2.5
Download this release
Release Info
Developer | Interactone |
Extension | Interactone_Pinit |
Version | 1.2.5 |
Comparing to | |
See all releases |
Code changes from version 1.1.1 to 1.2.5
- app/code/community/Interactone/Pinit/Helper/Data.php +6 -0
- app/code/community/Interactone/Pinit/etc/config.xml +38 -0
- app/code/community/Interactone/Pinit/etc/system.xml +41 -0
- app/design/frontend/base/default/template/interactone/pinit.phtml +18 -0
- app/locale/en_US/Interactone_Pinit.csv +0 -2
- package.xml +10 -10
app/code/community/Interactone/Pinit/Helper/Data.php
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Interactone_Pinit_Helper_Data extends Mage_Core_Helper_Abstract
|
4 |
+
{
|
5 |
+
|
6 |
+
}
|
app/code/community/Interactone/Pinit/etc/config.xml
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Interactone_Pinit>
|
5 |
+
<version>1.0</version>
|
6 |
+
</Interactone_Pinit>
|
7 |
+
</modules>
|
8 |
+
|
9 |
+
<global>
|
10 |
+
|
11 |
+
<blocks>
|
12 |
+
<Pinit>
|
13 |
+
<class>Interactone_Pinit_Block</class>
|
14 |
+
</Pinit>
|
15 |
+
</blocks>
|
16 |
+
<helpers>
|
17 |
+
<pinit>
|
18 |
+
<class>Interactone_Pinit_Helper</class>
|
19 |
+
</pinit>
|
20 |
+
</helpers>
|
21 |
+
</global>
|
22 |
+
|
23 |
+
<default>
|
24 |
+
<pinit>
|
25 |
+
<general>
|
26 |
+
<enabled>0</enabled>
|
27 |
+
<layout>button_count</layout>
|
28 |
+
<showfaces>false</showfaces>
|
29 |
+
<width>450</width>
|
30 |
+
<height>30</height>
|
31 |
+
<verb>like</verb>
|
32 |
+
<font></font>
|
33 |
+
<color>light</color>
|
34 |
+
</general>
|
35 |
+
|
36 |
+
</pinit>
|
37 |
+
</default>
|
38 |
+
</config>
|
app/code/community/Interactone/Pinit/etc/system.xml
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<interactone>
|
5 |
+
<label>InteractOne</label>
|
6 |
+
<sort_order>195</sort_order>
|
7 |
+
</interactone>
|
8 |
+
</tabs>
|
9 |
+
|
10 |
+
<sections>
|
11 |
+
<pinit translate="label" module="pinit">
|
12 |
+
<label>PIN IT Button</label>
|
13 |
+
<tab>interactone</tab>
|
14 |
+
<frontend_type>text</frontend_type>
|
15 |
+
<sort_order>71</sort_order>
|
16 |
+
<show_in_default>1</show_in_default>
|
17 |
+
<show_in_website>1</show_in_website>
|
18 |
+
<show_in_store>1</show_in_store>
|
19 |
+
<groups>
|
20 |
+
<general translate="label">
|
21 |
+
<label>General</label>
|
22 |
+
<sort_order>600</sort_order>
|
23 |
+
<show_in_default>1</show_in_default>
|
24 |
+
<show_in_website>1</show_in_website>
|
25 |
+
<show_in_store>1</show_in_store>
|
26 |
+
<fields>
|
27 |
+
<enabled translate="label">
|
28 |
+
<label>Enabled</label>
|
29 |
+
<frontend_type>select</frontend_type>
|
30 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
31 |
+
<sort_order>10</sort_order>
|
32 |
+
<show_in_default>1</show_in_default>
|
33 |
+
<show_in_website>1</show_in_website>
|
34 |
+
<show_in_store>1</show_in_store>
|
35 |
+
</enabled>
|
36 |
+
</fields>
|
37 |
+
</general>
|
38 |
+
</groups>
|
39 |
+
</pinit>
|
40 |
+
</sections>
|
41 |
+
</config>
|
app/design/frontend/base/default/template/interactone/pinit.phtml
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
$_product = Mage::registry('current_product');
|
3 |
+
if (Mage::getStoreConfig('pinit/general/enabled')) :
|
4 |
+
$piniturl='http://pinterest.com/pin/create/button/?'.
|
5 |
+
'url='.$this->helper('core/url')->getCurrentUrl().
|
6 |
+
'&media='.$this->helper('catalog/image')->init($_product, 'image')->resize(150).
|
7 |
+
'&description='."Pin%20it%20here" ;
|
8 |
+
?>
|
9 |
+
|
10 |
+
<a href="<?php echo $piniturl; ?>" class="pin-it-button" count-layout="horizontal">Pin It</a>
|
11 |
+
<script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js"></script>
|
12 |
+
|
13 |
+
|
14 |
+
<?php endif; ?>
|
15 |
+
|
16 |
+
|
17 |
+
|
18 |
+
|
app/locale/en_US/Interactone_Pinit.csv
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
"Enabled","Enabled"
|
2 |
-
"Media","Media"
|
|
|
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Interactone_Pinit</name>
|
4 |
-
<version>1.
|
5 |
<stability>stable</stability>
|
6 |
-
<license>OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
-
<description>
|
11 |
-
<notes>
|
12 |
-
<authors><author><name>Interactone</name><user>
|
13 |
-
<date>2012-02-
|
14 |
-
<time>
|
15 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Interactone_Pinit.xml" hash="b50e195846ef865fa7f3f4210d93329c"/></dir></target><target name="magelocale"><dir name="en_US"><file name="
|
16 |
<compatible/>
|
17 |
-
<dependencies
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Interactone_Pinit</name>
|
4 |
+
<version>1.2.5</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>PIN IT EXTENTION</summary>
|
10 |
+
<description>PIN IT EXTENTION FOR SOCIAL MARKETTING</description>
|
11 |
+
<notes>Stable 1.2.5</notes>
|
12 |
+
<authors><author><name>Interactone</name><user>iO_Support</user><email>support@interactone.com</email></author></authors>
|
13 |
+
<date>2012-02-07</date>
|
14 |
+
<time>18:08:26</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Interactone"><dir name="Pinit"><dir name="Helper"><file name="Data.php" hash="5fd59f287268a23268d68a4543ef1792"/></dir><dir name="etc"><file name="config.xml" hash="24d31f72fb13a03aa99874714a50964b"/><file name="system.xml" hash="5acf54b982593eac30c8b69829d4e405"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="interactone"><file name="pinit.phtml" hash="6e02e78bc37a01f8da91c7914d985830"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Interactone_Pinit.xml" hash="b50e195846ef865fa7f3f4210d93329c"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Interactone_Pint.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.0.0</min><max>6.0.0</max></php></required></dependencies>
|
18 |
</package>
|