flywebservices_pinit - Version 0.1.0

Version Notes

Simply adds the Pinit javascript to the header code.

Download this release

Release Info

Developer Fly Webservices
Extension flywebservices_pinit
Version 0.1.0
Comparing to
See all releases


Version 0.1.0

app/code/community/FlyWebservices/Pinit/Block/About.php ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class FlyWebservices_Pinit_Block_About
4
+ extends Mage_Adminhtml_Block_Abstract
5
+ implements Varien_Data_Form_Element_Renderer_Interface
6
+ {
7
+
8
+ /**
9
+ * Render fieldset html
10
+ *
11
+ * @param Varien_Data_Form_Element_Abstract $element
12
+ * @return string
13
+ */
14
+ public function render(Varien_Data_Form_Element_Abstract $element)
15
+ {
16
+ $html = <<<HTML
17
+ <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=38C3P9J3WEJWL" target="_blank">
18
+ <img src="https://www.paypalobjects.com/en_US/NL/i/btn/btn_donateCC_LG.gif" border="0" alt="PayPal - The safer, easier way to pay online!">
19
+ <img alt="" border="0" src="https://www.paypalobjects.com/nl_NL/i/scr/pixel.gif" width="1" height="1">
20
+ </a>
21
+ HTML;
22
+ return $html;
23
+ }
24
+ }
app/code/community/FlyWebservices/Pinit/Helper/Data.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ *
4
+ * Edition :- Community
5
+ * Developed By :- Fly Webservices
6
+ *
7
+ */
8
+ class FlyWebservices_Pinit_Helper_Data extends Mage_Core_Helper_Abstract
9
+ {
10
+
11
+ }
app/code/community/FlyWebservices/Pinit/etc/config.xml ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <FlyWebservices_Pinit>
5
+ <version>0.1.0</version>
6
+ </FlyWebservices_Pinit>
7
+ </modules>
8
+ <global>
9
+ <blocks>
10
+ <pinit>
11
+ <class>FlyWebservices_Pinit_Block</class>
12
+ </pinit>
13
+ </blocks>
14
+ <resources>
15
+ <pinit_setup>
16
+ <setup>
17
+ <module>FlyWebservices_Pinit</module>
18
+ </setup>
19
+ <connection>
20
+ <use>core_setup</use>
21
+ </connection>
22
+ </pinit_setup>
23
+ <pinit_write>
24
+ <connection>
25
+ <use>core_write</use>
26
+ </connection>
27
+ </pinit_write>
28
+ <pinit_read>
29
+ <connection>
30
+ <use>core_read</use>
31
+ </connection>
32
+ </pinit_read>
33
+ </resources>
34
+ </global>
35
+ <frontend>
36
+ <layout>
37
+ <updates>
38
+ <pinit>
39
+ <file>pinit.xml</file>
40
+ </pinit>
41
+ </updates>
42
+ </layout>
43
+ </frontend>
44
+ <adminhtml>
45
+ <acl>
46
+ <resources>
47
+ <admin>
48
+ <children>
49
+ <system>
50
+ <children>
51
+ <config>
52
+ <children>
53
+ <pinit>
54
+ <title>Fly Webservices</title>
55
+ </pinit>
56
+ </children>
57
+ </config>
58
+ </children>
59
+ </system>
60
+ </children>
61
+ </admin>
62
+ </resources>
63
+ </acl>
64
+ </adminhtml>
65
+ </config>
app/code/community/FlyWebservices/Pinit/etc/system.xml ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <config>
3
+ <tabs>
4
+ <fly_extensions>
5
+ <label>Fly Webservices</label>
6
+ <sort_order>999</sort_order>
7
+ </fly_extensions>
8
+ </tabs>
9
+ <sections>
10
+ <pinit translate="label" >
11
+ <label>Support</label>
12
+ <tab>fly_extensions</tab>
13
+ <frontend_type>text</frontend_type>
14
+ <sort_order>90</sort_order>
15
+ <show_in_default>1</show_in_default>
16
+ <show_in_website>1</show_in_website>
17
+ <show_in_store>1</show_in_store>
18
+ <groups>
19
+ <about translate="label">
20
+ <label>Developer</label>
21
+ <frontend_type>text</frontend_type>
22
+ <sort_order>0</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
+ <info translate="label">
28
+ <frontend_model>pinit/about</frontend_model>
29
+ <sort_order>1</sort_order>
30
+ <show_in_default>1</show_in_default>
31
+ <show_in_website>1</show_in_website>
32
+ <show_in_store>1</show_in_store>
33
+ </info>
34
+ </fields>
35
+ </about>
36
+ </groups>
37
+ </pinit>
38
+ </sections>
39
+ </config>
app/design/frontend/default/default/layout/pinit.xml ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <layout version="0.1.0">
3
+ <catalog_product_view>
4
+ <reference name="head">
5
+ <block type="core/text" name="jquery">
6
+ <action method="setText"><text><![CDATA[<script type="text/javascript">(function(d){ var f = d.getElementsByTagName('SCRIPT')[0], p = d.createElement('SCRIPT'); p.type = 'text/javascript'; p.setAttribute('data-pin-hover', true); p.async = true; p.src = '//assets.pinterest.com/js/pinit.js'; f.parentNode.insertBefore(p, f);}(document));</script><style>a[data-pin-log=button_pinit_floating] { z-index:999; }</style>]]></text></action>
7
+ </block>
8
+ </reference>
9
+ </catalog_product_view>
10
+ </layout>
app/etc/modules/FlyWebservices_Pinit.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <FlyWebservices_Pinit>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ </FlyWebservices_Pinit>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>flywebservices_pinit</name>
4
+ <version>0.1.0</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>
8
+ <extends/>
9
+ <summary>This extension will be add Pinit (Pinterest) hovering button to the main photo on the product details page.</summary>
10
+ <description>This extension will be add Pinit (Pinterest) hovering button to the main photo on the product details page.</description>
11
+ <notes>Simply adds the Pinit javascript to the header code.</notes>
12
+ <authors><author><name>Fly Webservices</name><user>flyweb</user><email>info@flywebservices.nl</email></author></authors>
13
+ <date>2013-11-04</date>
14
+ <time>13:32:14</time>
15
+ <contents><target name="mageetc"><dir name="modules"><file name="FlyWebservices_Pinit.xml" hash="fd9e9a48b7be6acf76d066ea8d0a12ed"/></dir></target><target name="magecommunity"><dir name="FlyWebservices"><dir name="Pinit"><dir name="Block"><file name="About.php" hash="7669bda6ec1bfce1f024a4e6887fadc1"/></dir><dir name="etc"><file name="config.xml" hash="e66a86ce38ec2ed4c2bb7e51dadfdc59"/><file name="system.xml" hash="6b2c4ac8f1cf0d7eefd0b3a3c9608e89"/></dir><dir name="Helper"><file name="Data.php" hash="20c18148b8f7ff8240aea01af81cc2fb"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="pinit.xml" hash="7e88d06f91fad8033d68ca7784408314"/></dir></dir></dir></dir></target></contents>
16
+ <compatible/>
17
+ <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
18
+ </package>