Version Notes
Standalone capabilities, OpenGraphTags extension no longer required
Download this release
Release Info
Developer | Roy Toledo |
Extension | SocialShareFacebookComments |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.3 to 2.0.1
- app/code/community/SocialShare/FacebookComments/etc/config.xml +2 -2
- app/code/community/SocialShare/FacebookComments/etc/system.xml +1 -1
- app/design/frontend/{default/default/layout → base/default/layout/socialshare}/FacebookComments.xml +0 -0
- app/design/frontend/base/default/template/socialshare/fb_comments.phtml +21 -0
- app/design/frontend/default/default/template/socialshare/fb_comments.phtml +0 -5
- package.xml +8 -8
app/code/community/SocialShare/FacebookComments/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<SocialShare_FacebookComments>
|
5 |
-
<version>
|
6 |
</SocialShare_FacebookComments>
|
7 |
</modules>
|
8 |
|
@@ -10,7 +10,7 @@
|
|
10 |
<layout>
|
11 |
<updates>
|
12 |
<FacebookComments>
|
13 |
-
<file>FacebookComments.xml</file>
|
14 |
</FacebookComments>
|
15 |
</updates>
|
16 |
</layout>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<SocialShare_FacebookComments>
|
5 |
+
<version>2.0.0</version>
|
6 |
</SocialShare_FacebookComments>
|
7 |
</modules>
|
8 |
|
10 |
<layout>
|
11 |
<updates>
|
12 |
<FacebookComments>
|
13 |
+
<file>socialshare/FacebookComments.xml</file>
|
14 |
</FacebookComments>
|
15 |
</updates>
|
16 |
</layout>
|
app/code/community/SocialShare/FacebookComments/etc/system.xml
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
</socialshare>
|
8 |
</tabs>
|
9 |
<sections>
|
10 |
-
<facebookcomments translate="label" module="
|
11 |
<label>Facebook Comments</label>
|
12 |
<tab>socialshare</tab>
|
13 |
<frontend_type>text</frontend_type>
|
7 |
</socialshare>
|
8 |
</tabs>
|
9 |
<sections>
|
10 |
+
<facebookcomments translate="label" module="facebookcomments">
|
11 |
<label>Facebook Comments</label>
|
12 |
<tab>socialshare</tab>
|
13 |
<frontend_type>text</frontend_type>
|
app/design/frontend/{default/default/layout → base/default/layout/socialshare}/FacebookComments.xml
RENAMED
File without changes
|
app/design/frontend/base/default/template/socialshare/fb_comments.phtml
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/* Fallback in case other extensions are not installed */
|
3 |
+
if ( !Mage::getStoreConfig('opengraphtags/conf/active') && !Mage::getStoreConfig('socialshare/general/enabled') ):
|
4 |
+
?>
|
5 |
+
<!-- BEGIN Facebook Social Init Default -->
|
6 |
+
<div id="fb-root"></div>
|
7 |
+
<script>(function(d, s, id) {
|
8 |
+
var js, fjs = d.getElementsByTagName(s)[0];
|
9 |
+
if (d.getElementById(id)) return;
|
10 |
+
js = d.createElement(s); js.id = id;
|
11 |
+
js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1";
|
12 |
+
fjs.parentNode.insertBefore(js, fjs);
|
13 |
+
}(document, 'script', 'facebook-jssdk'));</script>
|
14 |
+
<!-- END Facebook Social Init Default -->
|
15 |
+
<?php endif; ?>
|
16 |
+
<!-- SocialShare - Facebook Comments -->
|
17 |
+
<div class="fbCommentsContainer" style="min-height:160px;">
|
18 |
+
<div class="fb-comments" data-href="<?php echo $this->helper('core/url')->getCurrentUrl();?>" data-num-posts="<?php echo Mage::getStoreConfig('facebookcomments/conf/posts'); ?>" data-width="<?php echo Mage::getStoreConfig('facebookcomments/conf/width'); ?>" data-colorscheme="<?php echo Mage::getStoreConfig('facebookcomments/conf/colorscheme'); ?>"></div>
|
19 |
+
</div>
|
20 |
+
<!-- SocialShare - Facebook Comments END -->
|
21 |
+
|
app/design/frontend/default/default/template/socialshare/fb_comments.phtml
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
<!-- SocialShare - Facebook Comments -->
|
2 |
-
<div class="fbCommentsContainer" style="min-height:160px;">
|
3 |
-
<div class="fb-comments" data-href="<?php echo $this->helper('core/url')->getCurrentUrl();?>" data-num-posts="<?php echo Mage::getStoreConfig('facebookcomments/conf/posts'); ?>" data-width="<?php echo Mage::getStoreConfig('facebookcomments/conf/width'); ?>" data-colorscheme="<?php echo Mage::getStoreConfig('facebookcomments/conf/colorscheme'); ?>"></div>
|
4 |
-
</div>
|
5 |
-
<!-- SocialShare - Facebook Comments END -->
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>SocialShareFacebookComments</name>
|
4 |
-
<version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
-
<description>
|
11 |
-
<notes>
|
12 |
<authors><author><name>Roy Toledo</name><user>Niknak</user><email>toledoroy@gmail.com</email></author></authors>
|
13 |
-
<date>
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="SocialShare"><dir name="FacebookComments"><dir name="Helper"><file name="Data.php" hash="50082b3fa2afa7d8a70cffb6bdee6664"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><dir name="Dropdown"><file name="Colorscheme.php" hash="8b332d27e2cfe88f3396598a0f33922d"/><file name="Position.php" hash="252f5f384c83ebb6f0334a067a822440"/></dir></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="9b6183b185498ff532e7be740aa6af23"/><file name="config.xml" hash="
|
16 |
<compatible/>
|
17 |
-
<dependencies><required><php><min>4.0.0</min><max>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>SocialShareFacebookComments</name>
|
4 |
+
<version>2.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license>OSL</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Easily Facebook Comments To Your Magento Store</summary>
|
10 |
+
<description>This extension adds Facebook comments to your product pages</description>
|
11 |
+
<notes>Standalone capabilities, OpenGraphTags extension no longer required </notes>
|
12 |
<authors><author><name>Roy Toledo</name><user>Niknak</user><email>toledoroy@gmail.com</email></author></authors>
|
13 |
+
<date>2015-10-16</date>
|
14 |
+
<time>13:45:11</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="SocialShare"><dir name="FacebookComments"><dir name="Helper"><file name="Data.php" hash="50082b3fa2afa7d8a70cffb6bdee6664"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><dir name="Dropdown"><file name="Colorscheme.php" hash="8b332d27e2cfe88f3396598a0f33922d"/><file name="Position.php" hash="252f5f384c83ebb6f0334a067a822440"/></dir></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="9b6183b185498ff532e7be740aa6af23"/><file name="config.xml" hash="bcf48273de7a49e474c1400514142376"/><file name="system.xml" hash="3b37903a8931712bc862f53ae9617972"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="socialshare"><file name="FacebookComments.xml" hash="8d230b077ab4fe2d4579d22bc721583b"/></dir></dir><dir name="template"><dir name="socialshare"><file name="fb_comments.phtml" hash="bc06fa62889148716f653f734b53721a"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="SocialShare_FacebookComments.xml" hash="43087a2d1453b10ad7bd133e715a39f0"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
+
<dependencies><required><php><min>4.0.0</min><max>8.0.0</max></php></required></dependencies>
|
18 |
</package>
|