Facebook_Like_by_Vivacity - Version 1.0.3

Version Notes

Change Log:
* Added Facebook Send Button.
* Added Facebook Comments Section.

Download this release

Release Info

Developer Team Vivacity
Extension Facebook_Like_by_Vivacity
Version 1.0.3
Comparing to
See all releases


Code changes from version 1.0.2 to 1.0.3

app/code/community/Vivacity/FacebookLike/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Vivacity_FacebookLike>
5
- <version>1.0.0</version>
6
  </Vivacity_FacebookLike>
7
  </modules>
8
  <global>
@@ -53,4 +53,4 @@
53
  </updates>
54
  </layout>
55
  </frontend>
56
- </config>
2
  <config>
3
  <modules>
4
  <Vivacity_FacebookLike>
5
+ <version>1.0.3</version>
6
  </Vivacity_FacebookLike>
7
  </modules>
8
  <global>
53
  </updates>
54
  </layout>
55
  </frontend>
56
+ </config>
app/code/community/Vivacity/FacebookLike/etc/system.xml CHANGED
@@ -44,21 +44,48 @@
44
  <show_in_website>1</show_in_website>
45
  <show_in_store>0</show_in_store>
46
  </fbappid>
47
- <fbface translate="label">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  <label>Show Faces</label>
49
  <frontend_type>select</frontend_type>
50
- <source_model>adminhtml/system_config_source_yesno</source_model>
51
- <sort_order>4</sort_order>
52
- <show_in_default>1</show_in_default>
53
  <show_in_website>1</show_in_website>
54
  <show_in_store>0</show_in_store>
55
  </fbface>
56
- <fblayout translate="label">
57
  <label>Button Layout</label>
58
  <frontend_type>select</frontend_type>
59
  <comment>standard,button_count or box_count</comment>
60
  <source_model>Vivacity_FacebookLike_Model_Layout</source_model>
61
- <sort_order>5</sort_order>
62
  <show_in_default>1</show_in_default>
63
  <show_in_website>1</show_in_website>
64
  <show_in_store>1</show_in_store>
@@ -68,15 +95,15 @@
68
  <label>Color Scheme</label>
69
  <frontend_type>select</frontend_type>
70
  <source_model>Vivacity_FacebookLike_Model_Fbcolorscheme</source_model>
71
- <sort_order>6</sort_order>
72
  <show_in_default>1</show_in_default>
73
  <show_in_website>1</show_in_website>
74
  <show_in_store>1</show_in_store>
75
  </fbcolorscheme>
76
- <datawidth translate="label">
77
  <label>Width</label>
78
  <frontend_type>text</frontend_type>
79
- <sort_order>7</sort_order>
80
  <show_in_default>1</show_in_default>
81
  <show_in_website>1</show_in_website>
82
  <show_in_store>1</show_in_store>
44
  <show_in_website>1</show_in_website>
45
  <show_in_store>0</show_in_store>
46
  </fbappid>
47
+ <fblike translate="label">
48
+ <label>Show Facebook Like Button</label>
49
+ <frontend_type>select</frontend_type>
50
+ <source_model>adminhtml/system_config_source_yesno</source_model>
51
+ <sort_order>4</sort_order>
52
+ <show_in_default>1</show_in_default>
53
+ <show_in_website>1</show_in_website>
54
+ <show_in_store>0</show_in_store>
55
+ </fblike>
56
+ <fbsend translate="label">
57
+ <label>Show Facebook Send Button</label>
58
+ <frontend_type>select</frontend_type>
59
+ <source_model>adminhtml/system_config_source_yesno</source_model>
60
+ <sort_order>5</sort_order>
61
+ <show_in_default>1</show_in_default>
62
+ <show_in_website>1</show_in_website>
63
+ <show_in_store>0</show_in_store>
64
+ </fbsend>
65
+ <fbcomments translate="label">
66
+ <label>Show Facebook Comments Section</label>
67
+ <frontend_type>select</frontend_type>
68
+ <source_model>adminhtml/system_config_source_yesno</source_model>
69
+ <sort_order>6</sort_order>
70
+ <show_in_default>1</show_in_default>
71
+ <show_in_website>1</show_in_website>
72
+ <show_in_store>0</show_in_store>
73
+ </fbcomments>
74
+ <fbface translate="label">
75
  <label>Show Faces</label>
76
  <frontend_type>select</frontend_type>
77
+ <source_model>adminhtml/system_config_source_yesno</source_model>
78
+ <sort_order>9</sort_order>
79
+ <show_in_default>1</show_in_default>
80
  <show_in_website>1</show_in_website>
81
  <show_in_store>0</show_in_store>
82
  </fbface>
83
+ <fblayout translate="label">
84
  <label>Button Layout</label>
85
  <frontend_type>select</frontend_type>
86
  <comment>standard,button_count or box_count</comment>
87
  <source_model>Vivacity_FacebookLike_Model_Layout</source_model>
88
+ <sort_order>10</sort_order>
89
  <show_in_default>1</show_in_default>
90
  <show_in_website>1</show_in_website>
91
  <show_in_store>1</show_in_store>
95
  <label>Color Scheme</label>
96
  <frontend_type>select</frontend_type>
97
  <source_model>Vivacity_FacebookLike_Model_Fbcolorscheme</source_model>
98
+ <sort_order>15</sort_order>
99
  <show_in_default>1</show_in_default>
100
  <show_in_website>1</show_in_website>
101
  <show_in_store>1</show_in_store>
102
  </fbcolorscheme>
103
+ <datawidth translate="label">
104
  <label>Width</label>
105
  <frontend_type>text</frontend_type>
106
+ <sort_order>20</sort_order>
107
  <show_in_default>1</show_in_default>
108
  <show_in_website>1</show_in_website>
109
  <show_in_store>1</show_in_store>
app/design/frontend/base/default/layout/facebooklike.xml CHANGED
@@ -11,5 +11,12 @@
11
  </action>
12
  </block>
13
  </reference>
 
 
 
 
 
 
 
14
  </catalog_product_view>
15
  </layout>
11
  </action>
12
  </block>
13
  </reference>
14
+ <reference name="content" >
15
+ <block type="review/product_view_list" name="product.info.product_additional_data">
16
+ <action method="setTemplate" ifconfig="facebooklike_options/all_settings/enabledisable">
17
+ <template>facebooklike/facebookcomment.phtml</template>
18
+ </action>
19
+ </block>
20
+ </reference>
21
  </catalog_product_view>
22
  </layout>
app/design/frontend/base/default/template/facebooklike/facebookcomment.phtml ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ $fbcolorscheme = Mage::getStoreConfig('facebooklike_options/all_settings/fbcolorscheme');
3
+
4
+ $fbappid = Mage::getStoreConfig('facebooklike_options/all_settings/fbappid');
5
+
6
+ $fblayout = Mage::getStoreConfig('facebooklike_options/all_settings/fblayout');
7
+
8
+ $fbface = Mage::getStoreConfig('facebooklike_options/all_settings/fbface');
9
+
10
+ $fblocale = Mage::app()->getLocale()->getLocaleCode();
11
+
12
+ $dbdatawidth = Mage::getStoreConfig('facebooklike_options/all_settings/datawidth');
13
+
14
+ $fbcomments = Mage::getStoreConfig('facebooklike_options/all_settings/fbcomments');
15
+
16
+ if($fbface==1){
17
+
18
+ $fbface='true';
19
+
20
+ }else{
21
+
22
+ $fbface='false';
23
+
24
+ }
25
+ $fbappid=($fbappid=='') ? '512993528731249' : $fbappid ;//If FB APP ID is not added
26
+ $dbdatawidth=($dbdatawidth=='') ? '450' : $dbdatawidth ;//default button width
27
+ ?>
28
+
29
+ <div id="fb-root"></div>
30
+ <script>(function(d, s, id) {
31
+ var js, fjs = d.getElementsByTagName(s)[0];
32
+ if (d.getElementById(id)) return;
33
+ js = d.createElement(s); js.id = id;
34
+ js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=<?php echo $fbappid;?>&version=v2.0";
35
+ fjs.parentNode.insertBefore(js, fjs);
36
+ }(document, 'script', 'facebook-jssdk'));</script>
37
+ <?php /* ?><fb:like layout="<?php echo $fblayout; ?>" show_faces="<?php echo $fbface; ?>" width="<?php echo $dbdatawidth;?>" color_scheme="<?php echo $fbcolorscheme;?>" ></fb:like> <?php */ ?>
38
+ <?php if($fbcomments) { ?>
39
+ <div class="fb-comments" data-href="<?php echo $currentUrl; ?>" data-numposts="5"></div>
40
+ <?php } ?>
app/design/frontend/base/default/template/facebooklike/facebooklike.phtml CHANGED
@@ -11,6 +11,11 @@ $fblocale = Mage::app()->getLocale()->getLocaleCode();
11
 
12
  $dbdatawidth = Mage::getStoreConfig('facebooklike_options/all_settings/datawidth');
13
 
 
 
 
 
 
14
  if($fbface==1){
15
 
16
  $fbface='true';
@@ -23,6 +28,7 @@ if($fbface==1){
23
  $fbappid=($fbappid=='') ? '512993528731249' : $fbappid ;//If FB APP ID is not added
24
  $dbdatawidth=($dbdatawidth=='') ? '450' : $dbdatawidth ;//default button width
25
  ?>
 
26
  <div id="fb-root"></div>
27
  <script>(function(d, s, id) {
28
  var js, fjs = d.getElementsByTagName(s)[0];
@@ -32,5 +38,9 @@ $dbdatawidth=($dbdatawidth=='') ? '450' : $dbdatawidth ;//default button width
32
  fjs.parentNode.insertBefore(js, fjs);
33
  }(document, 'script', 'facebook-jssdk'));</script>
34
  <?php /* ?><fb:like layout="<?php echo $fblayout; ?>" show_faces="<?php echo $fbface; ?>" width="<?php echo $dbdatawidth;?>" color_scheme="<?php echo $fbcolorscheme;?>" ></fb:like> <?php */ ?>
35
-
36
  <div class="fb-like" data-width="<?php echo $dbdatawidth;?>" data-layout="<?php echo $fblayout; ?>" data-action="like" data-show-faces="<?php echo $fbface; ?>"></div>
 
 
 
 
11
 
12
  $dbdatawidth = Mage::getStoreConfig('facebooklike_options/all_settings/datawidth');
13
 
14
+ $fblike = Mage::getStoreConfig('facebooklike_options/all_settings/fblike');
15
+
16
+ $fbsend = Mage::getStoreConfig('facebooklike_options/all_settings/fbsend');
17
+
18
+
19
  if($fbface==1){
20
 
21
  $fbface='true';
28
  $fbappid=($fbappid=='') ? '512993528731249' : $fbappid ;//If FB APP ID is not added
29
  $dbdatawidth=($dbdatawidth=='') ? '450' : $dbdatawidth ;//default button width
30
  ?>
31
+
32
  <div id="fb-root"></div>
33
  <script>(function(d, s, id) {
34
  var js, fjs = d.getElementsByTagName(s)[0];
38
  fjs.parentNode.insertBefore(js, fjs);
39
  }(document, 'script', 'facebook-jssdk'));</script>
40
  <?php /* ?><fb:like layout="<?php echo $fblayout; ?>" show_faces="<?php echo $fbface; ?>" width="<?php echo $dbdatawidth;?>" color_scheme="<?php echo $fbcolorscheme;?>" ></fb:like> <?php */ ?>
41
+ <?php if($fblike) { ?>
42
  <div class="fb-like" data-width="<?php echo $dbdatawidth;?>" data-layout="<?php echo $fblayout; ?>" data-action="like" data-show-faces="<?php echo $fbface; ?>"></div>
43
+ <?php } ?>
44
+ <?php if($fbsend) { ?>
45
+ <div class="fb-send" data-href="<?php echo $currentUrl; ?>" data-layout="button_count"></div>
46
+ <?php } ?>
package.xml CHANGED
@@ -1,18 +1,20 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Facebook_Like_by_Vivacity</name>
4
- <version>1.0.2</version>
5
  <stability>stable</stability>
6
- <license uri="http://www.gnu.org/copyleft/gpl.html">GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Adds "Facebook Like button" to your product detail page. </summary>
10
  <description>"Facebook Like Vivacity" extension provides users an easy &amp;amp; simple way to like any of your store products which then is posted on user's Facebook account wall, thus telling your friends and FaceBook connections about that product and its description.</description>
11
- <notes>Initial Release of Extension</notes>
 
 
12
  <authors><author><name>Team Vivacity</name><user>vivacityinfotech</user><email>vivacityinfotech.jaipur@gmail.com</email></author></authors>
13
- <date>2014-12-31</date>
14
- <time>17:50:48</time>
15
- <contents><target name="mageetc"><dir name="modules"><file name="Vivacity_FacebookLike.xml" hash="e8869ea63f7c6305de39a294deef443a"/></dir></target><target name="magecommunity"><dir name="Vivacity"><dir name="FacebookLike"><dir><dir name="etc"><file name="config.xml" hash="b27f6850d8b342570dcad233503b167b"/><file name="system.xml" hash="37c59acecb5c71584a58b1e527590d9f"/></dir><dir name="Helper"><file name="Data.php" hash="ab7954778cebab04b849b2a7d2a26e8b"/></dir><dir name="Model"><file name="Fbcolorscheme.php" hash="6ca3976387c8c63c7f4a2bfa3bb91b25"/><file name="Layout.php" hash="ef6f038a3654e0238b19770327ec74f7"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="facebooklike.xml" hash="b5542dd8ea085b94c5f3bb68d3e1f7ef"/></dir><dir name="template"><dir name="facebooklike"><file name="facebooklike.phtml" hash="589864e7a4d8137fdcc699aff1a63941"/><file name="head.phtml" hash="8d95e6895e5aafabe531f93844e90465"/></dir></dir></dir></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>2.0.1</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Facebook_Like_by_Vivacity</name>
4
+ <version>1.0.3</version>
5
  <stability>stable</stability>
6
+ <license>GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>Adds "Facebook Like button" to your product detail page. </summary>
10
  <description>"Facebook Like Vivacity" extension provides users an easy &amp;amp; simple way to like any of your store products which then is posted on user's Facebook account wall, thus telling your friends and FaceBook connections about that product and its description.</description>
11
+ <notes>Change Log:&#xD;
12
+ * Added Facebook Send Button.&#xD;
13
+ * Added Facebook Comments Section.</notes>
14
  <authors><author><name>Team Vivacity</name><user>vivacityinfotech</user><email>vivacityinfotech.jaipur@gmail.com</email></author></authors>
15
+ <date>2016-03-07</date>
16
+ <time>12:56:18</time>
17
+ <contents><target name="mageetc"><dir name="modules"><file name="Vivacity_FacebookLike.xml" hash="e8869ea63f7c6305de39a294deef443a"/></dir></target><target name="magecommunity"><dir name="Vivacity"><dir name="FacebookLike"><dir name="etc"><file name="config.xml" hash="65901a9d6edea2c35446e021465aea47"/><file name="system.xml" hash="8d0f9efd21fc8088f68d8d09120b4222"/></dir><dir name="Helper"><file name="Data.php" hash="ab7954778cebab04b849b2a7d2a26e8b"/></dir><dir name="Model"><file name="Fbcolorscheme.php" hash="6ca3976387c8c63c7f4a2bfa3bb91b25"/><file name="Layout.php" hash="ef6f038a3654e0238b19770327ec74f7"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="facebooklike.xml" hash="705aa09bcfd66e7d2e6e0ad212db3d32"/></dir><dir name="template"><dir name="facebooklike"><file name="facebookcomment.phtml" hash="175a337bdc5731b5e126bca301da722a"/><file name="facebooklike.phtml" hash="f4d384a7402511c6047280e4c50fb0d4"/><file name="head.phtml" hash="8d95e6895e5aafabe531f93844e90465"/></dir></dir></dir></dir></dir></target></contents>
18
  <compatible/>
19
  <dependencies><required><php><min>2.0.1</min><max>6.0.0</max></php></required></dependencies>
20
  </package>