facebooklike - Version 0.1.0

Version Notes

This extension will show facebook like widget

Download this release

Release Info

Developer BluethinkIT
Extension facebooklike
Version 0.1.0
Comparing to
See all releases


Version 0.1.0

app/code/community/Bluethink/Facebooklike/Helper/Data.php ADDED
@@ -0,0 +1,4 @@
 
 
 
 
1
+ <?php
2
+ class Bluethink_Facebooklike_Helper_Data extends Mage_Core_Helper_Abstract{
3
+
4
+ }
app/code/community/Bluethink/Facebooklike/etc/config.xml ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Bluethink_Facebooklike>
5
+ <version>1.0.0</version>
6
+ </Bluethink_Facebooklike>
7
+ </modules>
8
+ <frontend>
9
+ <layout>
10
+ <updates>
11
+ <facebooklike>
12
+ <file>facebooklike.xml</file>
13
+ </facebooklike>
14
+ </updates>
15
+ </layout>
16
+ </frontend>
17
+
18
+
19
+
20
+ <adminhtml>
21
+ <acl>
22
+ <resources>
23
+ <all>
24
+ <title>Allow Everything</title>
25
+ </all>
26
+ <admin>
27
+ <children>
28
+ <system>
29
+ <children>
30
+ <config>
31
+ <children>
32
+ <facebook_option>
33
+ <title>Facebook Like</title>
34
+ <sort_order>50</sort_order>
35
+ </facebook_option>
36
+ </children>
37
+ </config>
38
+ </children>
39
+ </system>
40
+ <Bluethink_Facebooklike>
41
+ <title>Facebook Like</title>
42
+ <sort_order>10</sort_order>
43
+ </Bluethink_Facebooklike>
44
+ </children>
45
+ </admin>
46
+ </resources>
47
+ </acl>
48
+ </adminhtml>
49
+
50
+
51
+ <global>
52
+ <helpers>
53
+ <facebooklike>
54
+ <class>Bluethink_Facebooklike_Helper</class>
55
+ </facebooklike>
56
+ </helpers>
57
+ </global>
58
+
59
+
60
+ </config>
app/code/community/Bluethink/Facebooklike/etc/system.xml ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+
3
+ <config>
4
+
5
+ <tabs>
6
+ <bluethink>
7
+ <label>Bluethink</label>
8
+ <sort_order>1</sort_order>
9
+ </bluethink>
10
+ </tabs>
11
+
12
+ <sections>
13
+
14
+ <facebook_option>
15
+ <class>separator-top</class>
16
+ <label>Facebook Like Setting</label>
17
+ <tab>bluethink</tab>
18
+ <show_in_default>1</show_in_default>
19
+ <show_in_website>1</show_in_website>
20
+ <show_in_store>1</show_in_store>
21
+ <groups>
22
+ <facebooklike>
23
+ <label>Facebook Like</label>
24
+ <frontend_type>text</frontend_type>
25
+ <show_in_default>1</show_in_default>
26
+ <show_in_website>1</show_in_website>
27
+ <show_in_store>1</show_in_store>
28
+ <fields>
29
+ <status translate="label">
30
+ <label>Is Enable</label>
31
+ <frontend_type>select</frontend_type>
32
+ <source_model>adminhtml/system_config_source_yesno</source_model>
33
+ <sort_order>1</sort_order>
34
+ <show_in_default>1</show_in_default>
35
+ <show_in_website>1</show_in_website>
36
+ <show_in_store>0</show_in_store>
37
+ </status>
38
+ </fields>
39
+ <fields>
40
+ <facebook_url translate="label">
41
+ <label>Facebook URL</label>
42
+ <frontend_type>text</frontend_type>
43
+ <sort_order>4</sort_order>
44
+ <show_in_default>1</show_in_default>
45
+ <show_in_website>1</show_in_website>
46
+ <show_in_store>0</show_in_store>
47
+ <comment>https://www.facebook.com/BluethinkIT</comment>
48
+ </facebook_url>
49
+ </fields>
50
+
51
+ </facebooklike>
52
+ </groups>
53
+ </facebook_option>
54
+
55
+
56
+ </sections>
57
+ </config>
app/design/frontend/default/default/layout/facebooklike.xml ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" ?>
2
+ <layout>
3
+ <default>
4
+ <!-- this file call from right side -->
5
+ <reference name="right">
6
+ <block type="core/template" name="facebooklike" template="facebooklike/facebooklike.phtml"/>
7
+ </reference>
8
+ <reference name="right">
9
+ <remove name="cart_sidebar"/>
10
+ </reference>
11
+ </default>
12
+ </layout>
app/design/frontend/default/default/template/facebooklike/facebooklike.phtml ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $status = Mage::getStoreConfig('facebook_option/facebooklike/status');
3
+ $facebookUrl = Mage::getStoreConfig('facebook_option/facebooklike/facebook_url');
4
+ ?>
5
+ <?php if($status==1){ ?>
6
+ <aside id="meta" class="widget">
7
+ <div id="fb-root"></div>
8
+ <script>(function(d, s, id) {
9
+ var js, fjs = d.getElementsByTagName(s)[0];
10
+ if (d.getElementById(id)) return;
11
+ js = d.createElement(s); js.id = id;
12
+ js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
13
+ fjs.parentNode.insertBefore(js, fjs);
14
+ }(document, 'script', 'facebook-jssdk'));</script>
15
+
16
+ <div class="fb-like-box" data-href="<?php echo $facebookUrl; ?>" data-width="200" data-height="315" data-show-faces="true" data-stream="false" data-header="false"></div>
17
+ </aside>
18
+ <?php } ?>
app/etc/modules/Bluethink_Facebooklike.xml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Bluethink_Facebooklike>
5
+ <active>true</active>
6
+ <codePool>community</codePool>
7
+ </Bluethink_Facebooklike>
8
+ </modules>
9
+ </config>
package.xml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <package>
3
+ <name>facebooklike</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</license>
7
+ <channel>community</channel>
8
+ <extends/>
9
+ <summary>This extension will show facebook like widget on the right section of the page.</summary>
10
+ <description>&lt;p&gt;This extension will show you facebook like widget on the right section of the page.&lt;/p&gt;&#xD;
11
+ &#xD;
12
+ &lt;h2&gt; Features &lt;/h2&gt;&#xD;
13
+ &lt;p&gt;No core file changed.&lt;/p&gt;&#xD;
14
+ &lt;p&gt;A small useful extension to show facebook like on the our website. &lt;/p&gt;&#xD;
15
+ &lt;p&gt; Works on Magento 1.6 and above. &lt;/p&gt;&#xD;
16
+ &#xD;
17
+ &lt;h2&gt; Configuration: &lt;/h2&gt;&#xD;
18
+ &lt;p&gt; Admin -&gt; System -&gt; Configuration -&gt; facebook Like Setting -&gt; Facebook URL &#xD;
19
+ &lt;p /&gt; Please put facebook URl like https://www.facebook.com/BluethinkIT &lt;/p&gt;&#xD;
20
+ &lt;h1&gt; &#xD;
21
+ </description>
22
+ <notes>This extension will show facebook like widget</notes>
23
+ <authors><author><name>BluethinkIT</name><user>Bluethink</user><email>pramodgupta.bt@gmail.com</email></author></authors>
24
+ <date>2014-09-25</date>
25
+ <time>14:34:04</time>
26
+ <contents><target name="magecommunity"><dir name="Bluethink"><dir name="Facebooklike"><dir name="Helper"><file name="Data.php" hash="d6fa3e9ca179605879c9b0df24d000b6"/></dir><dir name="etc"><file name="config.xml" hash="886a0d0d4dead0146481aa4b65a0180b"/><file name="system.xml" hash="0e311b5050853dbe875c16e1044ea096"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Bluethink_Facebooklike.xml" hash="d39fb23059a14b1c86807c8024b6e890"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="facebooklike.xml" hash="bbc8127c631771a1810114f8b743e19b"/></dir><dir name="template"><dir name="facebooklike"><file name="facebooklike.phtml" hash="5adc54f2ab4ae4de49a245f8cfd428ef"/></dir></dir></dir></dir></dir></target></contents>
27
+ <compatible/>
28
+ <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
29
+ </package>