Magazento_Facebook_Widgets - Version 1.0.9

Version Notes

The All-In-One Facebook Widgets 1.0.9 feauteres:
You can select the facepile source beetwen current site page and facebook fan page.

Download this release

Release Info

Developer Magento Core Team
Extension Magazento_Facebook_Widgets
Version 1.0.9
Comparing to
See all releases


Code changes from version 1.0.8 to 1.0.9

app/code/community/Magazento/Facebook/Adminhtml/Model/System/Config/Source/Url.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ class Magazento_Facebook_Adminhtml_Model_System_Config_Source_Url
3
+ {
4
+ public function toOptionArray()
5
+ {
6
+ return array(
7
+ array('value'=>'currentpage', 'label'=>Mage::helper('facebook')->__('Current site page')),
8
+ array('value'=>'fanpage', 'label'=>Mage::helper('facebook')->__('Facebook fanpage')),
9
+ );
10
+ }
11
+ }
app/code/community/Magazento/Facebook/etc/config.xml CHANGED
@@ -3,7 +3,7 @@
3
  <config>
4
  <modules>
5
  <Magazento_Facebook>
6
- <version>1.0.8</version>
7
  </Magazento_Facebook>
8
  </modules>
9
  <frontend>
@@ -165,6 +165,7 @@
165
  <rightcategorycolumn>0</rightcategorycolumn>
166
  <leftproductcolumn>0</leftproductcolumn>
167
  <rightproductcolumn>0</rightproductcolumn>
 
168
  <size>large</size>
169
  <width>190</width>
170
  <max_rows>10</max_rows>
3
  <config>
4
  <modules>
5
  <Magazento_Facebook>
6
+ <version>1.0.9</version>
7
  </Magazento_Facebook>
8
  </modules>
9
  <frontend>
165
  <rightcategorycolumn>0</rightcategorycolumn>
166
  <leftproductcolumn>0</leftproductcolumn>
167
  <rightproductcolumn>0</rightproductcolumn>
168
+ <url>currentpage</url>
169
  <size>large</size>
170
  <width>190</width>
171
  <max_rows>10</max_rows>
app/code/community/Magazento/Facebook/etc/system.xml CHANGED
@@ -678,6 +678,17 @@
678
  <show_in_website>1</show_in_website>
679
  <show_in_store>1</show_in_store>
680
  </rightproductcolumn>
 
 
 
 
 
 
 
 
 
 
 
681
  <size translate="lable">
682
  <label>Size</label>
683
  <comment><![CDATA[ Determines the size of the images and social context in the facepile. ]]>
678
  <show_in_website>1</show_in_website>
679
  <show_in_store>1</show_in_store>
680
  </rightproductcolumn>
681
+ <url translate="label">
682
+ <label>Url</label>
683
+ <comment><![CDATA[ Select URL source facepile to display friends. ]]>
684
+ </comment>
685
+ <frontend_type>select</frontend_type>
686
+ <source_model>Magazento_Facebook_Adminhtml_Model_System_Config_Source_Url</source_model>
687
+ <sort_order>65</sort_order>
688
+ <show_in_default>1</show_in_default>
689
+ <show_in_website>1</show_in_website>
690
+ <show_in_store>1</show_in_store>
691
+ </url>
692
  <size translate="lable">
693
  <label>Size</label>
694
  <comment><![CDATA[ Determines the size of the images and social context in the facepile. ]]>
app/design/frontend/default/default/template/magazento/facebook/facepile.phtml CHANGED
@@ -1,5 +1,5 @@
1
  <?php if (Mage::getStoreConfig('facebook/general/enabled')) : ?>
2
  <div id="fb-root"></div>
3
  <script src="http://connect.facebook.net/<?php echo Mage::app()->getLocale()->getDefaultLocale(); //en_US ?>/all.js#appId=<?php echo Mage::getStoreConfig('facebook/general/appid'); ?>&amp;xfbml=1"></script>
4
- <fb:facepile href="<?php echo $this->helper('core/url')->getCurrentUrl(); ?>" size="<?php echo Mage::getStoreConfig('facebook/facepile/size'); ?>" width="<?php echo Mage::getStoreConfig('facebook/facepile/width'); ?>" max_rows="<?php echo Mage::getStoreConfig('facebook/facepile/max_rows'); ?>"></fb:facepile>
5
- <?php endif; ?>
1
  <?php if (Mage::getStoreConfig('facebook/general/enabled')) : ?>
2
  <div id="fb-root"></div>
3
  <script src="http://connect.facebook.net/<?php echo Mage::app()->getLocale()->getDefaultLocale(); //en_US ?>/all.js#appId=<?php echo Mage::getStoreConfig('facebook/general/appid'); ?>&amp;xfbml=1"></script>
4
+ <fb:facepile href="<?php echo (Mage::getStoreConfig('facebook/facepile/url') == 'currentpage') ? $this->helper('core/url')->getCurrentUrl() : Mage::getStoreConfig('facebook/general/fb_page_url'); ?>" size="<?php echo Mage::getStoreConfig('facebook/facepile/size'); ?>" width="<?php echo Mage::getStoreConfig('facebook/facepile/width'); ?>" max_rows="<?php echo Mage::getStoreConfig('facebook/facepile/max_rows'); ?>"></fb:facepile>
5
+ <?php endif; ?>
package.xml CHANGED
@@ -1,19 +1,19 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Magazento_Facebook_Widgets</name>
4
- <version>1.0.8</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>All-In-One Facebook Widgets Integration</summary>
10
  <description>All-In-One Facebook Widgets Integration</description>
11
- <notes>The All-In-One Facebook Widgets 1.0.7 feauteres:
12
- Facebook like button allows to share page with product image.</notes>
13
  <authors><author><name>volgodark</name><user>auto-converted</user><email>volgodark@gmail.com</email></author></authors>
14
- <date>2011-07-05</date>
15
- <time>17:14:27</time>
16
- <contents><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="magazento_facebook.xml" hash="9af5310110e413209561b7f88429ac0a"/></dir><dir name="template"><dir name="magazento"><dir name="facebook"><file name="activity.phtml" hash="d4278e04bad4122cd614e21ca361a5dd"/><file name="comments.phtml" hash="db21f3759a0b9a2293b103d1c05b0a58"/><file name="facepile.phtml" hash="0607dcae9706c735ebc0642f5edb4f62"/><file name="like.phtml" hash="1cf9c203918cb567c230ffc18825436b"/><file name="likebox.phtml" hash="174993da918b8498a2adfd4df5c66eb4"/><file name="livestream.phtml" hash="bb3ce7ee21ede8b808e50bf57d667d2e"/><file name="opengraphtags.phtml" hash="da5e39941b4de58c6d777a90e3e33074"/><file name="recommendations.phtml" hash="cf5e5741902673a2cdc3a930028afff7"/><file name="send.phtml" hash="7bac808819c9e11e4eae1ff4491dcbae"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="magazento"><dir name="facebook"><file name="fb.css" hash="cc56a91057a06413284ed11c63d725ea"/><file name="promo.jpg" hash="88520d456df68c98130433b5184b8e7f"/></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Magazento"><dir name="Facebook"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Color.php" hash="f4ba3832ead854e6072ec80f68a80726"/><file name="Font.php" hash="6ce9fbea979f02285201c25cbc0260c5"/><file name="Layout.php" hash="26360f206d212c8a0c0e599542c0ea58"/><file name="Size.php" hash="0309dde39015803207494f0b48f68902"/><file name="Type.php" hash="1442f1c92f340698c846efdad8d8ba17"/><file name="Verb.php" hash="09d1040546f39d5e23dc971534dce0f4"/></dir></dir></dir></dir></dir><dir name="Block"><file name="Developer.php" hash="64f326c09669b920a8222669bae786c1"/></dir><dir name="etc"><file name="config.xml" hash="3d8c4849b19786c7d390808c14be434b"/><file name="system.xml" hash="19de571f5b0b87bc39566cad76540ced"/></dir><dir name="Helper"><file name="Data.php" hash="5695321065576db4feb4f5b716d661db"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magazento_Facebook.xml" hash="eff07e7edbfd8f6c049bcca3073dbca3"/></dir></target></contents>
17
  <compatible/>
18
  <dependencies/>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Magazento_Facebook_Widgets</name>
4
+ <version>1.0.9</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>All-In-One Facebook Widgets Integration</summary>
10
  <description>All-In-One Facebook Widgets Integration</description>
11
+ <notes>The All-In-One Facebook Widgets 1.0.9 feauteres:
12
+ You can select the facepile source beetwen current site page and facebook fan page.</notes>
13
  <authors><author><name>volgodark</name><user>auto-converted</user><email>volgodark@gmail.com</email></author></authors>
14
+ <date>2011-07-06</date>
15
+ <time>09:06:44</time>
16
+ <contents><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="magazento_facebook.xml" hash="9af5310110e413209561b7f88429ac0a"/></dir><dir name="template"><dir name="magazento"><dir name="facebook"><file name="activity.phtml" hash="d4278e04bad4122cd614e21ca361a5dd"/><file name="comments.phtml" hash="db21f3759a0b9a2293b103d1c05b0a58"/><file name="facepile.phtml" hash="43306fbf29cbdb42daed392524db7864"/><file name="like.phtml" hash="1cf9c203918cb567c230ffc18825436b"/><file name="likebox.phtml" hash="174993da918b8498a2adfd4df5c66eb4"/><file name="livestream.phtml" hash="bb3ce7ee21ede8b808e50bf57d667d2e"/><file name="opengraphtags.phtml" hash="da5e39941b4de58c6d777a90e3e33074"/><file name="recommendations.phtml" hash="cf5e5741902673a2cdc3a930028afff7"/><file name="send.phtml" hash="7bac808819c9e11e4eae1ff4491dcbae"/></dir></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="magazento"><dir name="facebook"><file name="fb.css" hash="cc56a91057a06413284ed11c63d725ea"/><file name="promo.jpg" hash="88520d456df68c98130433b5184b8e7f"/></dir></dir></dir></dir></dir></target><target name="magecommunity"><dir name="Magazento"><dir name="Facebook"><dir name="Adminhtml"><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><file name="Color.php" hash="f4ba3832ead854e6072ec80f68a80726"/><file name="Font.php" hash="6ce9fbea979f02285201c25cbc0260c5"/><file name="Layout.php" hash="26360f206d212c8a0c0e599542c0ea58"/><file name="Size.php" hash="0309dde39015803207494f0b48f68902"/><file name="Type.php" hash="1442f1c92f340698c846efdad8d8ba17"/><file name="Url.php" hash="2db80bb4fd18795520401c66df26a890"/><file name="Verb.php" hash="09d1040546f39d5e23dc971534dce0f4"/></dir></dir></dir></dir></dir><dir name="Block"><file name="Developer.php" hash="64f326c09669b920a8222669bae786c1"/></dir><dir name="etc"><file name="config.xml" hash="a36ddffc77e86f6a983ab08d43a461c4"/><file name="system.xml" hash="e4598f6e8184afb0f1e1b889a4f732aa"/></dir><dir name="Helper"><file name="Data.php" hash="5695321065576db4feb4f5b716d661db"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magazento_Facebook.xml" hash="eff07e7edbfd8f6c049bcca3073dbca3"/></dir></target></contents>
17
  <compatible/>
18
  <dependencies/>
19
  </package>